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 + - MIN( DISTINCT 82 ) * - 61 + - COUNT( + + 77 ) col0
----
5001

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + - MIN ( DISTINCT 82 ) * - 61 + - COUNT ( + + 77 ) col0
----
5001

query I rowsort
SELECT + - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT + 69 * + 37 + - COUNT( * ) col0
----
2552

skipif mysql # not compatible
query I rowsort label-2
SELECT + 69 * + 37 + - COUNT ( * ) col0
----
2552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT CASE - + 60 WHEN + + ( 26 ) THEN NULL ELSE 40 + + COUNT( * ) END
----
41

skipif mysql # not compatible
query I rowsort label-4
SELECT CASE - + 60 WHEN + + ( 26 ) THEN NULL ELSE 40 + + COUNT ( * ) END
----
41

query I rowsort
SELECT DISTINCT + 60 * - 94 + + - 86
----
-5726

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

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

query I rowsort
SELECT + NULLIF ( + 17, 86 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8
SELECT ALL - CASE - 49 WHEN + - 39 * - - CAST( NULL AS SIGNED ) + - + 69 THEN + CAST( NULL AS SIGNED ) * 94 * + 3 + + 30 WHEN 75 THEN + 86 WHEN + CAST( + CAST( + 2 AS SIGNED ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL - CASE - 49 WHEN + - 39 * - - CAST ( NULL AS INTEGER ) + - + 69 THEN + CAST ( NULL AS INTEGER ) * 94 * + 3 + + 30 WHEN 75 THEN + 86 WHEN + CAST ( + CAST ( + 2 AS INTEGER ) AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL - 16 * + 36 + + + CAST( NULL AS SIGNED ) / + 73 * + - 97 + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 16 * + 36 + + + CAST ( NULL AS INTEGER ) / + 73 * + - 97 + 57 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT - 82 * - 57 - 88 DIV + COALESCE ( - + 96, + 22 ) AS col0
----
4674

skipif mysql # not compatible
query I rowsort label-10
SELECT - 82 * - 57 - 88 / + COALESCE ( - + 96, + 22 ) AS col0
----
4674

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-12
SELECT ALL CAST( + CASE + 56 WHEN + - 78 THEN + - CAST( + 91 AS SIGNED ) * 64 + COUNT( * ) END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL CAST ( + CASE + 56 WHEN + - 78 THEN + - CAST ( + 91 AS INTEGER ) * 64 + COUNT ( * ) END AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT DISTINCT - 45 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - 45 / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL + ( - - 63 ) * - 16 * - - COUNT( * ) * - - 8 * + 0 * - - 60 + - CASE + + ( - 16 ) WHEN + + 90 * 10 THEN NULL WHEN + + 3 THEN 21 + - 76 + - 53 + 14 + + + 29 * + 45 + + COUNT( ALL - 97 ) * - 69 * + 23 END * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + ( - - 63 ) * - 16 * - - COUNT ( * ) * - - 8 * + 0 * - - 60 + - CASE + + ( - 16 ) WHEN + + 90 * 10 THEN NULL WHEN + + 3 THEN 21 + - 76 + - 53 + 14 + + + 29 * + 45 + + COUNT ( ALL - 97 ) * - 69 * + 23 END * 59 AS col0
----
NULL

query I rowsort
SELECT - 97 * - + 79
----
7663

query I rowsort
SELECT ALL - 27 * + 40
----
-1080

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

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + 72 - + COUNT ( * ) AS col2
----
71

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

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

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

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

query I rowsort
SELECT + 43 * + ( - 92 ) AS col0
----
-3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-21
SELECT - COUNT( * ) + COUNT( * ) * - 3 AS col0, + ( + + 85 ) + - CASE - ( - ( - 1 ) ) WHEN - - ( - MIN( ALL + + 6 ) ) * - 42 * - COUNT( * ) THEN + 17 WHEN + + CASE - 27 WHEN CAST( 69 AS DECIMAL ) THEN + + 74 / 23 - + 16 END THEN NULL ELSE CAST( NULL AS SIGNED ) END * + 72
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-21
SELECT - COUNT ( * ) + COUNT ( * ) * - 3 AS col0, + ( + + 85 ) + - CASE - ( - ( - 1 ) ) WHEN - - ( - MIN ( ALL + + 6 ) ) * - 42 * - COUNT ( * ) THEN + 17 WHEN + + CASE - 27 WHEN CAST ( 69 AS REAL ) THEN + + 74 / 23 - + 16 END THEN NULL ELSE CAST ( NULL AS INTEGER ) END * + 72
----
-4
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT - CAST( + 79 AS SIGNED ) * 68 AS col0
----
-5372

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - CAST ( + 79 AS INTEGER ) * 68 AS col0
----
-5372

query I rowsort
SELECT 76 * - 67
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL - 64 * + CASE + + 73 WHEN - 32 + + - COUNT( * ) * + - 70 THEN NULL ELSE - 63 END AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL - 64 * + CASE + + 73 WHEN - 32 + + - COUNT ( * ) * + - 70 THEN NULL ELSE - 63 END AS col2
----
4032

query I rowsort
SELECT 48 col1
----
48

query I rowsort
SELECT 66 * - - 74 AS col0
----
4884

query I rowsort
SELECT 1 * + - 41
----
-41

query I rowsort
SELECT + - 68
----
-68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT - 10 * - CAST( + 12 AS SIGNED ) - - + 93 - - + 29 * - 40 + - 43 * - + 69 * 34 col2
----
99931

skipif mysql # not compatible
query I rowsort label-31
SELECT - 10 * - CAST ( + 12 AS INTEGER ) - - + 93 - - + 29 * - 40 + - 43 * - + 69 * 34 col2
----
99931

query I rowsort
SELECT ALL 0 * + 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT + SUM( ALL - + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-33
SELECT + SUM ( ALL - + 90 ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT 93 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-34
SELECT 93 / + 26
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT DISTINCT - SUM( 24 ) + + 89 DIV + 83 - + + 56
----
-79

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT - SUM ( 24 ) + + 89 / + 83 - + + 56
----
-79

query I rowsort
SELECT NULLIF ( - 23, - ( - ( + 6 ) ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT + COALESCE ( + - COUNT( * ), 78 ) - 10 col1
----
-11

skipif mysql # not compatible
query I rowsort label-38
SELECT + COALESCE ( + - COUNT ( * ), 78 ) - 10 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL + 57 * MIN( ALL 25 ) * + 12 + - 31
----
17069

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + 57 * MIN ( ALL 25 ) * + 12 + - 31
----
17069

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-41
SELECT - + COUNT( + 80 ) DIV + COUNT( DISTINCT + ( + - 29 ) ) + + 22
----
21

skipif mysql # not compatible
query I rowsort label-41
SELECT - + COUNT ( + 80 ) / + COUNT ( DISTINCT + ( + - 29 ) ) + + 22
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-42
SELECT CAST( + - 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-42
SELECT CAST ( + - 71 AS INTEGER ) AS col2
----
-71

query I rowsort
SELECT ALL - 33 + + + 13
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT COUNT( - 66 ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-44
SELECT COUNT ( - 66 ) + - 52
----
-51

query I rowsort
SELECT DISTINCT - - ( 55 ) AS col2
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT ALL - 41 DIV + 48 + 31 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - 41 / + 48 + 31 AS col2
----
31

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

query I rowsort
SELECT ( - + 8 ) + - + 19 + + 13 + 48 AS col0
----
34

query II rowsort
SELECT ALL - 80 AS col1, 52
----
-80
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT DISTINCT 44 - - 4 - - - 6 DIV - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT 44 - - 4 - - - 6 / - COUNT ( * )
----
54

query I rowsort
SELECT ALL - 40 * + 80 * + 83 AS col2
----
-265600

query I rowsort
SELECT 61 + - 55 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL SUM( ALL + ( + 42 ) ) * - + 21
----
-882

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL SUM ( ALL + ( + 42 ) ) * - + 21
----
-882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT 32 * - - 86 * + CAST( + 50 AS SIGNED ) col2
----
137600

skipif mysql # not compatible
query I rowsort label-54
SELECT 32 * - - 86 * + CAST ( + 50 AS INTEGER ) col2
----
137600

query II rowsort
SELECT 7, 87 + - ( 74 ) AS col2
----
7
13

query I rowsort
SELECT 70 + + 40
----
110

query II rowsort
SELECT ALL 94, + 40 AS col1
----
94
40

query I rowsort
SELECT ALL - 41 * - 56 AS col1
----
2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-59
SELECT MAX( + 68 ) / CAST( NULL AS SIGNED ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT MAX ( + 68 ) / CAST ( NULL AS INTEGER ) + - 99
----
NULL

query I rowsort
SELECT 86 * - 16 * + 24
----
-33024

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT + 23 - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + 23 - + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT DISTINCT CASE - - 43 WHEN 81 THEN + 86 ELSE NULL END * + SUM( + - 66 ) * + CASE 3 WHEN 35 THEN NULL ELSE - - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT CASE - - 43 WHEN 81 THEN + 86 ELSE NULL END * + SUM ( + - 66 ) * + CASE 3 WHEN 35 THEN NULL ELSE - - 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL 37 * - COUNT( - 85 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL 37 * - COUNT ( - 85 ) AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT ALL + 5 DIV 98 * + 50 * + 32
----
0

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + 5 / 98 * + 50 * + 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT ALL + 96 DIV - + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL + 96 / - + 99 AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-67
SELECT 25 col1, 57 DIV - - 66
----
25
0

skipif mysql # not compatible
query II rowsort label-67
SELECT 25 col1, 57 / - - 66
----
25
0

query I rowsort
SELECT 1 + - 76 - + ( 50 ) AS col2
----
-125

query I rowsort
SELECT 11 * + 92 * + ( 43 )
----
43516

query I rowsort
SELECT ALL - 33 + + - 80
----
-113

query II rowsort
SELECT - 14 AS col2, 69
----
-14
69

query I rowsort
SELECT 70 + + 83
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - 14 - COUNT( * ) col0
----
-15

skipif mysql # not compatible
query I rowsort label-73
SELECT - 14 - COUNT ( * ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL - COUNT( * ) * + 74 * - 29 * - 48 + + + NULLIF ( 72, - 81 ) * - + 6 * - 82
----
-67584

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL - COUNT ( * ) * + 74 * - 29 * - 48 + + + NULLIF ( 72, - 81 ) * - + 6 * - 82
----
-67584

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT DISTINCT - + SUM( ALL + 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT - + SUM ( ALL + 60 ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT ALL - 97 + + + 30 - + 52 + 48 * + + 96 + 39 * 24 DIV + 50 AS col0
----
4507

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 97 + + + 30 - + 52 + 48 * + + 96 + 39 * 24 / + 50 AS col0
----
4507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-77
SELECT COUNT( ALL + 81 ) DIV 21 + - MAX( + ( + 84 ) ) + + 41 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-77
SELECT COUNT ( ALL + 81 ) / 21 + - MAX ( + ( + 84 ) ) + + 41 AS col1
----
-43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT - 7 * - + 12 + - + COUNT( * ) * 73 * CASE + COUNT( * ) WHEN - - 26 * 25 * - CAST( - 14 AS SIGNED ) THEN + 88 * + - 51 / - 56 * 71 * + 66 * - COUNT( * ) + + 54 WHEN 25 + - ( - - 20 ) + + 77 + - COUNT( * ) / COUNT( DISTINCT 89 ) THEN COALESCE ( + 3, 13 + ( - 75 ) * - 29 ) ELSE NULL END + 74 * 62 + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT - 7 * - + 12 + - + COUNT ( * ) * 73 * CASE + COUNT ( * ) WHEN - - 26 * 25 * - CAST ( - 14 AS INTEGER ) THEN + 88 * + - 51 / - 56 * 71 * + 66 * - COUNT ( * ) + + 54 WHEN 25 + - ( - - 20 ) + + 77 + - COUNT ( * ) / COUNT ( DISTINCT 89 ) THEN COALESCE ( + 3, 13 + ( - 75 ) * - 29 ) ELSE NULL END + 74 * 62 + 90 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL + ( + + 83 ) + - CAST( NULL AS SIGNED ) + - 2 + - NULLIF ( 93, 24 ) * - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + ( + + 83 ) + - CAST ( NULL AS INTEGER ) + - 2 + - NULLIF ( 93, 24 ) * - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-81
SELECT 18 * - 31 + + 60 + - 93 col0, COUNT( * ) DIV 5 * - ( + 9 ) * + 20
----
-591
0

skipif mysql # not compatible
query II rowsort label-81
SELECT 18 * - 31 + + 60 + - 93 col0, COUNT ( * ) / 5 * - ( + 9 ) * + 20
----
-591
0

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

skipif mysql # not compatible
query I rowsort label-82
SELECT - COUNT ( * ) * - 30 / - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-83
SELECT + 94 AS col0, - COUNT( * ) * - - MIN( 98 )
----
94
-98

skipif mysql # not compatible
query II rowsort label-83
SELECT + 94 AS col0, - COUNT ( * ) * - - MIN ( 98 )
----
94
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL + + COALESCE ( 87, + 9 DIV NULLIF ( + 61, 32 + 88 + + COUNT( * ) + - 97 ) * + - COUNT( * ) * - 7 + - + 40 - + COUNT( * ), - - 34 ) - - 28 + + - 58 - - 89 + - 67 * + 99 * 69 * + + 36 AS col0
----
-16476226

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL + + COALESCE ( 87, + 9 / NULLIF ( + 61, 32 + 88 + + COUNT ( * ) + - 97 ) * + - COUNT ( * ) * - 7 + - + 40 - + COUNT ( * ), - - 34 ) - - 28 + + - 58 - - 89 + - 67 * + 99 * 69 * + + 36 AS col0
----
-16476226

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT + SUM( DISTINCT - - 49 ) * - 80 AS col2
----
-3920

skipif mysql # not compatible
query I rowsort label-85
SELECT + SUM ( DISTINCT - - 49 ) * - 80 AS col2
----
-3920

query I rowsort
SELECT 87 * 19 * - 81 AS col0
----
-133893

query I rowsort
SELECT ALL - + 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT COUNT( * ) * + - 57 * 14
----
-798

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT COUNT ( * ) * + - 57 * 14
----
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-89
SELECT 41 * - MIN( 27 ) * + 18 * COALESCE ( + + 57, - - MAX( + 96 ) * 39 + 57 DIV - - 3 ) AS col2
----
-1135782

skipif mysql # not compatible
query I rowsort label-89
SELECT 41 * - MIN ( 27 ) * + 18 * COALESCE ( + + 57, - - MAX ( + 96 ) * 39 + 57 / - - 3 ) AS col2
----
-1135782

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-91
SELECT CASE + 59 WHEN - 52 + + 12 + + 94 * 66 THEN - 41 WHEN + - SUM( ALL + CAST( NULL AS SIGNED ) ) THEN 11 WHEN - 75 THEN NULL END - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT CASE + 59 WHEN - 52 + + 12 + + 94 * 66 THEN - 41 WHEN + - SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN 11 WHEN - 75 THEN NULL END - 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-92
SELECT 9 * 82 - - + CAST( + + COALESCE ( 48, + MAX( ALL - - 35 ) + + 29 ) AS SIGNED ) + - 85 + - 43 AS col2, CAST( NULL AS SIGNED )
----
658
NULL

skipif mysql # not compatible
query II rowsort label-92
SELECT 9 * 82 - - + CAST ( + + COALESCE ( 48, + MAX ( ALL - - 35 ) + + 29 ) AS INTEGER ) + - 85 + - 43 AS col2, CAST ( NULL AS INTEGER )
----
658
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT DISTINCT 60 * CASE - 54 WHEN - COUNT( * ) THEN NULL ELSE + 64 DIV + ( - 88 ) * - 41 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT 60 * CASE - 54 WHEN - COUNT ( * ) THEN NULL ELSE + 64 / + ( - 88 ) * - 41 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-95
SELECT ALL + COUNT( * ) * + - 53, 24 AS col2
----
-53
24

skipif mysql # not compatible
query II rowsort label-95
SELECT ALL + COUNT ( * ) * + - 53, 24 AS col2
----
-53
24

query I rowsort
SELECT DISTINCT 24 * + 65
----
1560

query I rowsort
SELECT ALL 83 + - + 1 col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-98
SELECT - 53 DIV 83, - 58 * SUM( ALL - 13 ) DIV + 93 + 57 AS col2
----
0
65

skipif mysql # not compatible
query II rowsort label-98
SELECT - 53 / 83, - 58 * SUM ( ALL - 13 ) / + 93 + 57 AS col2
----
0
65

onlyif mysql # DIV for integer division: 
query I rowsort label-99
SELECT - COALESCE ( 27, - - 85 DIV 95 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-99
SELECT - COALESCE ( 27, - - 85 / 95 ) AS col2
----
-27

query I rowsort
SELECT - COALESCE ( 10, + 50 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT + - MIN( - 63 ) DIV + 72 * - ( - 34 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT + - MIN ( - 63 ) / + 72 * - ( - 34 ) AS col0
----
0

query I rowsort
SELECT ALL + 82 + - 36
----
46

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT ( - - 7 ) col1, + SUM( ALL + - 25 )
----
7
-25

skipif mysql # not compatible
query II rowsort label-104
SELECT ( - - 7 ) col1, + SUM ( ALL + - 25 )
----
7
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-105
SELECT ALL - 1 + - CASE - - AVG ( + 51 ) WHEN - 13 THEN + + 7 + - CAST( NULL AS SIGNED ) - 84 END - + ( NULLIF ( 72, + 16 + - CAST( NULL AS SIGNED ) ) ) * - 62 * 55 AS col0, 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-105
SELECT ALL - 1 + - CASE - - AVG ( + 51 ) WHEN - 13 THEN + + 7 + - CAST ( NULL AS INTEGER ) - 84 END - + ( NULLIF ( 72, + 16 + - CAST ( NULL AS INTEGER ) ) ) * - 62 * 55 AS col0, 34 AS col1
----
NULL
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL + 43 + + + CAST( - 15 AS SIGNED ) + + 32 * MIN( DISTINCT 45 ) AS col1
----
1468

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + 43 + + + CAST ( - 15 AS INTEGER ) + + 32 * MIN ( DISTINCT 45 ) AS col1
----
1468

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-107
SELECT CASE - - 92 WHEN - CASE - 70 WHEN - + 90 - 41 THEN 12 END THEN - NULLIF ( - + 5, CAST( NULL AS DECIMAL ) ) * + COUNT( * ) + + 48 WHEN + 10 THEN - 56 * 71 + - - 83 - - 0 ELSE + COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-107
SELECT CASE - - 92 WHEN - CASE - 70 WHEN - + 90 - 41 THEN 12 END THEN - NULLIF ( - + 5, CAST ( NULL AS REAL ) ) * + COUNT ( * ) + + 48 WHEN + 10 THEN - 56 * 71 + - - 83 - - 0 ELSE + COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - 92 * - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-108
SELECT - 92 * - COUNT ( * ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-109
SELECT ALL + - COUNT( * ) * 26 + + - 40 DIV + + COALESCE ( - 6, COUNT( * ) * + - COUNT( * ) + CAST( NULL AS SIGNED ) + - - COUNT( * ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + - COUNT ( * ) * 26 + + - 40 / + + COALESCE ( - 6, COUNT ( * ) * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-110
SELECT 35 DIV 66 - - 20 + 11 + + - 72 * + CAST( 83 AS SIGNED ) AS col2, - 75
----
-5945
-75

skipif mysql # not compatible
query II rowsort label-110
SELECT 35 / 66 - - 20 + 11 + + - 72 * + CAST ( 83 AS INTEGER ) AS col2, - 75
----
-5945
-75

query I rowsort
SELECT - 45 - - 80 AS col2
----
35

query I rowsort
SELECT + + 30
----
30

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-114
SELECT ALL + - CAST( NULL AS DECIMAL ) * 79 * + - 54 * - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + - CAST ( NULL AS REAL ) * 79 * + - 54 * - 4 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 58 * 22, 68 AS col1
----
1276
68

query I rowsort
SELECT DISTINCT + 47 * + 95 + 27 AS col2
----
4492

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT ALL + - 54 * + + AVG ( - - CAST( NULL AS SIGNED ) ) + - 46 + + ( - + 64 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + - 54 * + + AVG ( - - CAST ( NULL AS INTEGER ) ) + - 46 + + ( - + 64 ) col2
----
NULL

query I rowsort
SELECT ALL + 15 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - 8 - 86 * + COUNT( + 24 ) / - COALESCE ( - - ( + COUNT( * ) ), - 5 - - NULLIF ( - + 21, - COUNT( * ) ) ) * - + 7 + - 41 + + + CASE - COUNT( * ) WHEN + COUNT( * ) + + + 39 + CASE - 51 WHEN + ( - 35 ) THEN - 0 ELSE - COUNT( * ) + - 9 END + 15 * + NULLIF ( + ( COUNT( * ) ), - AVG ( ALL + 33 ) * 50 ) * + 91 THEN 75 * 80 WHEN 15 * 97 THEN NULL ELSE NULL END + 24 * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT - 8 - 86 * + COUNT ( + 24 ) / - COALESCE ( - - ( + COUNT ( * ) ), - 5 - - NULLIF ( - + 21, - COUNT ( * ) ) ) * - + 7 + - 41 + + + CASE - COUNT ( * ) WHEN + COUNT ( * ) + + + 39 + CASE - 51 WHEN + ( - 35 ) THEN - 0 ELSE - COUNT ( * ) + - 9 END + 15 * + NULLIF ( + ( COUNT ( * ) ), - AVG ( ALL + 33 ) * 50 ) * + 91 THEN 75 * 80 WHEN 15 * 97 THEN NULL ELSE NULL END + 24 * - 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT - 44 + - - CAST( + - 38 AS SIGNED ) + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-121
SELECT - 44 + - - CAST ( + - 38 AS INTEGER ) + COUNT ( * ) AS col0
----
-81

query I rowsort
SELECT ALL + ( + + 41 )
----
41

query I rowsort
SELECT + ( 26 ) * + 42 * - 4 AS col2
----
-4368

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT - 38 + + + 34 + 77 + + 93 + + CASE WHEN - COUNT( 97 ) = NULL THEN 34 + + 26 END + + 83 + - COUNT( * ) * + 84, MAX( - 75 ) AS col0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-125
SELECT - 38 + + + 34 + 77 + + 93 + + CASE WHEN - COUNT ( 97 ) = NULL THEN 34 + + 26 END + + 83 + - COUNT ( * ) * + 84, MAX ( - 75 ) AS col0
----
NULL
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-126
SELECT ALL + COUNT( * ), ( + 29 ) * 32 AS col2
----
1
928

skipif mysql # not compatible
query II rowsort label-126
SELECT ALL + COUNT ( * ), ( + 29 ) * 32 AS col2
----
1
928

query I rowsort
SELECT ALL 26 * + 96
----
2496

query I rowsort
SELECT ALL - 5 * 57 * - 76 AS col1
----
21660

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT DISTINCT 77 * - - 98 + - 59 DIV + 47 col0
----
7545

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT 77 * - - 98 + - 59 / + 47 col0
----
7545

query I rowsort
SELECT + 78 * - - 88
----
6864

query I rowsort
SELECT DISTINCT 52 * 64 * + 99 + + - ( + 20 ) * + 98 * + 78
----
176592

query I rowsort
SELECT ALL 42 + + 62 AS col2
----
104

query II rowsort
SELECT - ( + ( + 74 ) ), - 20 + + 88 AS col1
----
-74
68

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT SUM( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-134
SELECT SUM ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT + ( 74 ) + COUNT( * ) + - + 9 - + + 29 * - - 10
----
-224

skipif mysql # not compatible
query I rowsort label-135
SELECT + ( 74 ) + COUNT ( * ) + - + 9 - + + 29 * - - 10
----
-224

query I rowsort
SELECT DISTINCT + 34 + + 93 * + 42
----
3940

query I rowsort
SELECT + 18 + + - 49
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL ( - - 1 ) + + + 6 + - CASE + MAX( DISTINCT + - 52 ) WHEN - 1 * 72 THEN - 80 END * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL ( - - 1 ) + + + 6 + - CASE + MAX ( DISTINCT + - 52 ) WHEN - 1 * 72 THEN - 80 END * - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL + 72 + + COUNT( DISTINCT + + 92 )
----
73

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + 72 + + COUNT ( DISTINCT + + 92 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-141
SELECT ALL 11 AS col1, + CAST( NULL AS SIGNED )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-141
SELECT ALL 11 AS col1, + CAST ( NULL AS INTEGER )
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-142
SELECT + + 89 + 14 - + CAST( 95 AS SIGNED ) * - + COUNT( * ) + - 34
----
164

skipif mysql # not compatible
query I rowsort label-142
SELECT + + 89 + 14 - + CAST ( 95 AS INTEGER ) * - + COUNT ( * ) + - 34
----
164

query I rowsort
SELECT - + 26 * 28 + 52 + - 59 + 60 AS col0
----
-675

query I rowsort
SELECT ALL + NULLIF ( - - 45, - 7 * - + 41 - + - 47 + 15 + 21 / - + 79 - + - 78 / - - 4 * - 57 - + 63 * + 98 ) * 44
----
1980

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT + - 15 + + 32 + - + 14 + 20 AS col2, MIN( ALL - ( + 23 ) ) * + 35 AS col1
----
23
-805

skipif mysql # not compatible
query II rowsort label-145
SELECT + - 15 + + 32 + - + 14 + 20 AS col2, MIN ( ALL - ( + 23 ) ) * + 35 AS col1
----
23
-805

query I rowsort
SELECT ALL - 9 - + 87
----
-96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT ALL 19 DIV COALESCE ( - 23, - + 29 ) - - 58 - COALESCE ( - COUNT( * ), + COUNT( 31 ) ) DIV + + 76 * + 42 col2
----
58

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL 19 / COALESCE ( - 23, - + 29 ) - - 58 - COALESCE ( - COUNT ( * ), + COUNT ( 31 ) ) / + + 76 * + 42 col2
----
58

query I rowsort
SELECT DISTINCT 35 * 90 * 42
----
132300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT + - COALESCE ( 62, CAST( NULLIF ( + ( + 48 ), + - ( - ( 63 ) ) ) AS SIGNED ) + - SUM( ALL + 13 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-150
SELECT + - COALESCE ( 62, CAST ( NULLIF ( + ( + 48 ), + - ( - ( 63 ) ) ) AS INTEGER ) + - SUM ( ALL + 13 ) )
----
-62

query I rowsort
SELECT ALL + - ( + - 14 )
----
14

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

query I rowsort
SELECT + - 63 * + 80 AS col2
----
-5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-154
SELECT + 36 * CAST( + 50 AS SIGNED ) * 65 * - - COALESCE ( 82, - 6 + - 24 + ( - 72 ), + - 66 ) + MIN( ALL 70 ) DIV COUNT( * ) col2
----
9594070

skipif mysql # not compatible
query I rowsort label-154
SELECT + 36 * CAST ( + 50 AS INTEGER ) * 65 * - - COALESCE ( 82, - 6 + - 24 + ( - 72 ), + - 66 ) + MIN ( ALL 70 ) / COUNT ( * ) col2
----
9594070

onlyif mysql # aggregate syntax: 
query II rowsort label-155
SELECT ALL + 60 AS col2, SUM( + 82 ) * - + COUNT( * ) - 79 AS col1
----
60
-161

skipif mysql # not compatible
query II rowsort label-155
SELECT ALL + 60 AS col2, SUM ( + 82 ) * - + COUNT ( * ) - 79 AS col1
----
60
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT CASE + 90 WHEN - 77 THEN 44 - + + 27 / - - COUNT( * ) + - 54 * + 43 WHEN - 34 THEN + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT CASE + 90 WHEN - 77 THEN 44 - + + 27 / - - COUNT ( * ) + - 54 * + 43 WHEN - 34 THEN + 69 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-157
SELECT ALL + 36 * - NULLIF ( + - 8, ( 70 ) - 31 + - + CASE - 50 WHEN + - 95 THEN NULL WHEN + - SUM( ALL + - 65 ) THEN - COUNT( * ) END * - + 26 * + - CAST( + CAST( - + 93 AS SIGNED ) AS DECIMAL ) * 55 + 15 * CASE + - 72 WHEN - COALESCE ( 11, + 8 * 17 / COUNT( * ), - 89 ) - AVG ( + COALESCE ( + 60, + 34, 11 - 96, 55 ) ) * - 50 THEN NULL WHEN + 61 THEN 21 + 12 END ) AS col1
----
288

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + 36 * - NULLIF ( + - 8, ( 70 ) - 31 + - + CASE - 50 WHEN + - 95 THEN NULL WHEN + - SUM ( ALL + - 65 ) THEN - COUNT ( * ) END * - + 26 * + - CAST ( + CAST ( - + 93 AS INTEGER ) AS REAL ) * 55 + 15 * CASE + - 72 WHEN - COALESCE ( 11, + 8 * 17 / COUNT ( * ), - 89 ) - AVG ( + COALESCE ( + 60, + 34, 11 - 96, 55 ) ) * - 50 THEN NULL WHEN + 61 THEN 21 + 12 END ) AS col1
----
288

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT SUM( - + 22 ) * 66 AS col1
----
-1452

skipif mysql # not compatible
query I rowsort label-161
SELECT SUM ( - + 22 ) * 66 AS col1
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT 38 * + + 69 * 12 + - - MAX( ALL + 21 )
----
31485

skipif mysql # not compatible
query I rowsort label-162
SELECT 38 * + + 69 * 12 + - - MAX ( ALL + 21 )
----
31485

query I rowsort
SELECT ALL + 47 + - 20 AS col2
----
27

query I rowsort
SELECT 47 * + - 18 - + 3 * + 85
----
-1101

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL - 74 DIV + - 19 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - 74 / + - 19 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT 92 DIV - 8 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-166
SELECT 92 / - 8 AS col1
----
-11

query II rowsort
SELECT DISTINCT - 2 + + 99 AS col2, ( ( 96 ) )
----
97
96

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

skipif mysql # not compatible
query I rowsort label-168
SELECT 4 / - - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT ALL 88 * + 38
----
3344

query I rowsort
SELECT ALL ( - 93 ) + - + 86 AS col0
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-171
SELECT ALL 77 * + - COUNT( * ) * + COALESCE ( 9, - 10, - - 72 / - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) * - CASE 8 WHEN + 70 * - COUNT( * ) + - 42 THEN 68 * COUNT( * ) ELSE NULL END - 84 + - 0 * - + 40 * - 39 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL 77 * + - COUNT ( * ) * + COALESCE ( 9, - 10, - - 72 / - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) * - CASE 8 WHEN + 70 * - COUNT ( * ) + - 42 THEN 68 * COUNT ( * ) ELSE NULL END - 84 + - 0 * - + 40 * - 39 * + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT COUNT( 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-172
SELECT COUNT ( 31 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT 47 * - - 13 + + COUNT( * ) - 15
----
597

skipif mysql # not compatible
query I rowsort label-173
SELECT 47 * - - 13 + + COUNT ( * ) - 15
----
597

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT DISTINCT COUNT( + + NULLIF ( - + 13, + 15 - - - 59 + + NULLIF ( + - CAST( - + 38 AS SIGNED ), - 77 ) * ( CAST( NULL AS SIGNED ) ) * + 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT COUNT ( + + NULLIF ( - + 13, + 15 - - - 59 + + NULLIF ( + - CAST ( - + 38 AS INTEGER ), - 77 ) * ( CAST ( NULL AS INTEGER ) ) * + 59 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-177
SELECT DISTINCT 98 * + COUNT( * ) AS col2, + CASE NULLIF ( 55, - - MIN( ALL 71 ) + + - 67 + + - COALESCE ( 69, + 51 * + + AVG ( DISTINCT 19 ) + - - 41 + - 48 + + 36 * - 59 + + - 1 ) + - 46 ) WHEN 7 + - 72 + 49 + - - 83 * ( COALESCE ( 60, 39 ) ) THEN 90 * - 15 + + COALESCE ( - 63, 24 + ( 17 ), - 11 / + COALESCE ( + CAST( - 11 AS DECIMAL ), - 11 ) + 59 ) END
----
98
NULL

skipif mysql # not compatible
query II rowsort label-177
SELECT DISTINCT 98 * + COUNT ( * ) AS col2, + CASE NULLIF ( 55, - - MIN ( ALL 71 ) + + - 67 + + - COALESCE ( 69, + 51 * + + AVG ( DISTINCT 19 ) + - - 41 + - 48 + + 36 * - 59 + + - 1 ) + - 46 ) WHEN 7 + - 72 + 49 + - - 83 * ( COALESCE ( 60, 39 ) ) THEN 90 * - 15 + + COALESCE ( - 63, 24 + ( 17 ), - 11 / + COALESCE ( + CAST ( - 11 AS REAL ), - 11 ) + 59 ) END
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - 67 * COUNT( * ) * + + 11 AS col0
----
-737

skipif mysql # not compatible
query I rowsort label-178
SELECT - 67 * COUNT ( * ) * + + 11 AS col0
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT 96 + - MIN( ALL - 36 )
----
132

skipif mysql # not compatible
query I rowsort label-179
SELECT 96 + - MIN ( ALL - 36 )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL - MIN( DISTINCT + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - MIN ( DISTINCT + 62 )
----
-62

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

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

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

skipif mysql # not compatible
query I rowsort label-182
SELECT + COUNT ( * ) / - ( - - 95 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT + 43 + - COUNT( + - 56 )
----
42

skipif mysql # not compatible
query I rowsort label-183
SELECT + 43 + - COUNT ( + - 56 )
----
42

query I rowsort
SELECT ALL - 73 + + ( + 27 ) AS col2
----
-46

query I rowsort
SELECT + 1 * - 55 + - 27 + + COALESCE ( - 88, + - 39, - 49 ) - + 24 * - 21
----
334

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

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

query I rowsort
SELECT ALL - 78 + - + 9 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-188
SELECT ALL 73 + - MIN( + 91 ) AS col1, COUNT( * ) + + 16 * ( COUNT( * ) ) col0
----
-18
17

skipif mysql # not compatible
query II rowsort label-188
SELECT ALL 73 + - MIN ( + 91 ) AS col1, COUNT ( * ) + + 16 * ( COUNT ( * ) ) col0
----
-18
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT CAST( - + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) - - 60 * + - 27 * + 88 * + ( + - 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT CAST ( - + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - - 60 * + - 27 * + 88 * + ( + - 42 ) AS col0
----
NULL

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

query I rowsort
SELECT 95 - - + 15
----
110

query I rowsort
SELECT ALL 66 + - 78 * + + 92 * + 85 * + - 42 AS col0
----
25618386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT CAST( + MIN( DISTINCT - 28 ) AS SIGNED ) * 61
----
-1708

skipif mysql # not compatible
query I rowsort label-193
SELECT CAST ( + MIN ( DISTINCT - 28 ) AS INTEGER ) * 61
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT - 63 * + - NULLIF ( ( 20 ), - COUNT( * ) ) + 41 + - 20
----
1281

skipif mysql # not compatible
query I rowsort label-194
SELECT - 63 * + - NULLIF ( ( 20 ), - COUNT ( * ) ) + 41 + - 20
----
1281

query II rowsort
SELECT + 98 AS col2, 81 * + 4 AS col0
----
98
324

query II rowsort
SELECT DISTINCT - 47 AS col2, + 39 AS col0
----
-47
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-197
SELECT CASE 82 WHEN - MIN( DISTINCT + 94 ) + - SUM( - 0 ) + + 0 * + + 81 + - 70 * + CAST( NULL AS SIGNED ) DIV 86 * - CASE - - MAX( DISTINCT - 15 ) WHEN - 29 THEN + 96 + - - 74 ELSE 78 END + - - MAX( - - 32 ) THEN NULL ELSE + COUNT( * ) END + - - COUNT( * ) DIV - 15 * + 72 * MIN( ALL - NULLIF ( 56, 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-197
SELECT CASE 82 WHEN - MIN ( DISTINCT + 94 ) + - SUM ( - 0 ) + + 0 * + + 81 + - 70 * + CAST ( NULL AS INTEGER ) / 86 * - CASE - - MAX ( DISTINCT - 15 ) WHEN - 29 THEN + 96 + - - 74 ELSE 78 END + - - MAX ( - - 32 ) THEN NULL ELSE + COUNT ( * ) END + - - COUNT ( * ) / - 15 * + 72 * MIN ( ALL - NULLIF ( 56, 42 ) )
----
1

query I rowsort
SELECT ALL - ( + - 13 ) * + - 47
----
-611

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

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL 7 + - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + + 20 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 33 col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT ALL 59 * - + SUM( 55 ) col2, + 21
----
-3245
21

skipif mysql # not compatible
query II rowsort label-201
SELECT ALL 59 * - + SUM ( 55 ) col2, + 21
----
-3245
21

query I rowsort
SELECT 20 * - 34 AS col0
----
-680

query I rowsort
SELECT 91 + + 47 * - 94 AS col0
----
-4327

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL - CASE + 32 WHEN 35 + + + 7 - + 53 - + 92 * - 46 * - + COUNT( * ) * 59 - - + 25 THEN - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL - CASE + 32 WHEN 35 + + + 7 - + 53 - + 92 * - 46 * - + COUNT ( * ) * 59 - - + 25 THEN - 32 END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT COUNT( ALL - CASE + 63 WHEN + - ( - - ( 45 ) ) THEN NULL WHEN - 92 THEN NULL ELSE + 12 END )
----
1

skipif mysql # not compatible
query I rowsort label-208
SELECT COUNT ( ALL - CASE + 63 WHEN + - ( - - ( 45 ) ) THEN NULL WHEN - 92 THEN NULL ELSE + 12 END )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-209
SELECT COUNT( DISTINCT - 65 ) * + 29, + 75 + 11 col0
----
29
86

skipif mysql # not compatible
query II rowsort label-209
SELECT COUNT ( DISTINCT - 65 ) * + 29, + 75 + 11 col0
----
29
86

query I rowsort
SELECT + 58 * - + 38
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT 93 + - + 39 - 0 * - 15 - + 57 - 94 * 85 + 89 * COUNT( * )
----
-7904

skipif mysql # not compatible
query I rowsort label-211
SELECT 93 + - + 39 - 0 * - 15 - + 57 - 94 * 85 + 89 * COUNT ( * )
----
-7904

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( - 71, + 30, - + 47 )
----
-71

query II rowsort
SELECT ALL + 87 AS col2, 39 AS col0
----
87
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-215
SELECT - CASE + ( + + COUNT( * ) ) WHEN - 88 * 64 + - + 37 + - CAST( NULL AS SIGNED ) * CASE COALESCE ( - 84, - CAST( NULL AS SIGNED ), - - COUNT( * ), + 17 ) WHEN + - 59 / 64 THEN 57 + + 27 ELSE NULL END * 74 THEN NULL WHEN + CASE + 96 WHEN 37 THEN COALESCE ( - COUNT( * ), - + 50, + + 79 ) * COALESCE ( - COALESCE ( + 52, SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 88, - 48 ) / - 62, - 45 ) END THEN 98 END / ( 64 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT - CASE + ( + + COUNT ( * ) ) WHEN - 88 * 64 + - + 37 + - CAST ( NULL AS INTEGER ) * CASE COALESCE ( - 84, - CAST ( NULL AS INTEGER ), - - COUNT ( * ), + 17 ) WHEN + - 59 / 64 THEN 57 + + 27 ELSE NULL END * 74 THEN NULL WHEN + CASE + 96 WHEN 37 THEN COALESCE ( - COUNT ( * ), - + 50, + + 79 ) * COALESCE ( - COALESCE ( + 52, SUM ( DISTINCT - CAST ( NULL AS REAL ) ) * + 88, - 48 ) / - 62, - 45 ) END THEN 98 END / ( 64 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + ( + + 79 ) * + 44 * MAX( DISTINCT - 90 ) AS col2
----
-312840

skipif mysql # not compatible
query I rowsort label-216
SELECT + ( + + 79 ) * + 44 * MAX ( DISTINCT - 90 ) AS col2
----
-312840

query I rowsort
SELECT 8 + - - 71 AS col0
----
79

query I rowsort
SELECT ALL + 26 * - 46 + + 92 AS col0
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + MIN( ALL - 42 ) + - - 68
----
26

skipif mysql # not compatible
query I rowsort label-219
SELECT + MIN ( ALL - 42 ) + - - 68
----
26

query I rowsort
SELECT 41 + - - 24
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT + COALESCE ( - 2, + 97 ) DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-221
SELECT + COALESCE ( - 2, + 97 ) / + - 61
----
0

query I rowsort
SELECT ALL + 77 + - 90 * 77
----
-6853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT - 41 + - 17 DIV 87 * - 84 + + 84 + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-223
SELECT - 41 + - 17 / 87 * - 84 + + 84 + - COUNT ( * )
----
42

query I rowsort
SELECT DISTINCT - 74 + + - 49
----
-123

query I rowsort
SELECT DISTINCT 97 * + - 85 + 75 * 95 * + 99 AS col2
----
697130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT DISTINCT 22 * + 15 + COUNT( * ) + - 35 * 65 DIV - - MAX( 57 )
----
292

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 22 * + 15 + COUNT ( * ) + - 35 * 65 / - - MAX ( 57 )
----
292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT COALESCE ( - 51, + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-227
SELECT COALESCE ( - 51, + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT COALESCE ( - 34, ( - + COALESCE ( - 63, + 49 + + 16 ) ), + + CASE - + 49 WHEN - + CASE 19 WHEN - - ( - ( 87 ) ) / + + 89 THEN - + NULLIF ( CASE + 83 WHEN 31 THEN + ( + 90 ) WHEN + + 0 * - 0 THEN 61 WHEN COUNT( * ) - + ( - 10 ) + + 71 THEN + 82 * AVG ( 36 ) ELSE NULL END, COUNT( * ) * + 46 + + 20 * 91 ) + - COALESCE ( 59 - - 7 * 49, - 54 * SUM( 99 ) ) ELSE - 16 - CAST( NULL AS SIGNED ) END THEN 65 - + 64 WHEN + 23 * 67 THEN NULL ELSE NULL END )
----
-34

skipif mysql # not compatible
query I rowsort label-228
SELECT COALESCE ( - 34, ( - + COALESCE ( - 63, + 49 + + 16 ) ), + + CASE - + 49 WHEN - + CASE 19 WHEN - - ( - ( 87 ) ) / + + 89 THEN - + NULLIF ( CASE + 83 WHEN 31 THEN + ( + 90 ) WHEN + + 0 * - 0 THEN 61 WHEN COUNT ( * ) - + ( - 10 ) + + 71 THEN + 82 * AVG ( 36 ) ELSE NULL END, COUNT ( * ) * + 46 + + 20 * 91 ) + - COALESCE ( 59 - - 7 * 49, - 54 * SUM ( 99 ) ) ELSE - 16 - CAST ( NULL AS INTEGER ) END THEN 65 - + 64 WHEN + 23 * 67 THEN NULL ELSE NULL END )
----
-34

query I rowsort
SELECT + 37 + 54 col2
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL - 71 * + 22 + + - 69 * - MAX( DISTINCT + + 81 ) * MIN( ALL + 67 ) AS col1
----
372901

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - 71 * + 22 + + - 69 * - MAX ( DISTINCT + + 81 ) * MIN ( ALL + 67 ) AS col1
----
372901

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT ALL + 66, ( + - COUNT( * ) ) * - - 11 AS col1
----
66
-11

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL + 66, ( + - COUNT ( * ) ) * - - 11 AS col1
----
66
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + CASE + 50 WHEN COUNT( * ) THEN COALESCE ( - + 71, - - 36 ) * 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + CASE + 50 WHEN COUNT ( * ) THEN COALESCE ( - + 71, - - 36 ) * 56 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 25 * + 78 * - 70 AS col0
----
-136500

query II rowsort
SELECT DISTINCT + 82, 22 * + 12 AS col0
----
82
264

query I rowsort
SELECT + ( 11 ) * + 33 * 64
----
23232

query I rowsort
SELECT + 41 + + 68 * - - 47 * + + 60 AS col0
----
191801

query II rowsort
SELECT ALL + 65 col0, 16 col2
----
65
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-240
SELECT 12 * - 21 + + + 16 + - 40 + COUNT( * ) + COUNT( * ) * CASE + CAST( NULL AS SIGNED ) WHEN + + 75 THEN 76 ELSE NULL END * + COUNT( * ) + - 85 AS col1, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-240
SELECT 12 * - 21 + + + 16 + - 40 + COUNT ( * ) + COUNT ( * ) * CASE + CAST ( NULL AS INTEGER ) WHEN + + 75 THEN 76 ELSE NULL END * + COUNT ( * ) + - 85 AS col1, + 39
----
NULL
39

query I rowsort
SELECT - 42 * - - 29 AS col2
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ( - MIN( + 15 ) ) * + 6 * - 91 - - 82 - + 73 AS col2
----
8199

skipif mysql # not compatible
query I rowsort label-242
SELECT ( - MIN ( + 15 ) ) * + 6 * - 91 - - 82 - + 73 AS col2
----
8199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT - 56 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-243
SELECT - 56 * - CAST ( NULL AS INTEGER )
----
NULL

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

query II rowsort
SELECT DISTINCT + 82 col1, 8
----
82
8

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

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

query I rowsort
SELECT ALL - + 12 * + - CASE + 57 WHEN + ( + - 54 ) THEN 83 * - ( + 59 ) ELSE NULL END + + + 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 1 * NULLIF ( + - 41, + 94 ) + - + 2 + 15 - + 73 - - - 17 + - 45 + - 26 * - 55
----
1267

query II rowsort
SELECT - - 33 AS col1, - ( + - 44 ) + - 73 AS col0
----
33
-29

query II rowsort
SELECT + 58 AS col0, 88 * + + 4 AS col0
----
58
352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT - + COALESCE ( - 86, + 31 * 66 DIV + - ( - - COUNT( * ) ) ) - + 1
----
85

skipif mysql # not compatible
query I rowsort label-251
SELECT - + COALESCE ( - 86, + 31 * 66 / + - ( - - COUNT ( * ) ) ) - + 1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT - 59 * - + 70 * 13 + + - CASE ( - + MIN( ALL 65 ) ) WHEN + COUNT( * ) THEN + + 77 * - - 28 * - - 43 + + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-252
SELECT - 59 * - + 70 * 13 + + - CASE ( - + MIN ( ALL 65 ) ) WHEN + COUNT ( * ) THEN + + 77 * - - 28 * - - 43 + + 54 END
----
NULL

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

query II rowsort
SELECT - 81 AS col0, 56
----
-81
56

query II rowsort
SELECT ALL 9, 38 AS col2
----
9
38

query I rowsort
SELECT - - 26 * + 96
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT + + 20 + + COUNT( * ) + 21 + + 7 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT + + 20 + + COUNT ( * ) + 21 + + 7 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT - + NULLIF ( - 45, + - 11 * COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-258
SELECT - + NULLIF ( - 45, + - 11 * COUNT ( * ) )
----
45

query I rowsort
SELECT ALL - + 41 + - 51 * 67
----
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + COUNT( DISTINCT 83 ) + - 19 - COUNT( * ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + COUNT ( DISTINCT 83 ) + - 19 - COUNT ( * ) col0
----
-19

query I rowsort
SELECT - ( + + 60 ) * 0 * - + 63 AS col1
----
0

query I rowsort
SELECT - 31 col1
----
-31

query I rowsort
SELECT - ( 89 ) + - 86
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - ( 72 ) + - ( 24 ) - + - 6 * - COUNT( * ) * - - 51 AS col0
----
-402

skipif mysql # not compatible
query I rowsort label-264
SELECT - ( 72 ) + - ( 24 ) - + - 6 * - COUNT ( * ) * - - 51 AS col0
----
-402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-265
SELECT + 55 * + + 33 DIV CAST( - - COALESCE ( CAST( NULL AS DECIMAL ), - COUNT( * ) ) AS SIGNED ) AS col2
----
-1815

skipif mysql # not compatible
query I rowsort label-265
SELECT + 55 * + + 33 / CAST ( - - COALESCE ( CAST ( NULL AS REAL ), - COUNT ( * ) ) AS INTEGER ) AS col2
----
-1815

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

skipif mysql # not compatible
query I rowsort label-266
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL - 88 * + 60
----
-5280

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT + 31 * COUNT( 43 )
----
31

skipif mysql # not compatible
query I rowsort label-269
SELECT + 31 * COUNT ( 43 )
----
31

onlyif mysql # aggregate syntax: 
query III rowsort label-270
SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT( * ) + - + 89
----
78
168
-88

skipif mysql # not compatible
query III rowsort label-270
SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT ( * ) + - + 89
----
78
168
-88

query I rowsort
SELECT DISTINCT - 6 * + + 29 AS col1
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-272
SELECT CAST( + 84 AS SIGNED ) AS col2, - 12 + + 98 AS col2
----
84
86

skipif mysql # not compatible
query II rowsort label-272
SELECT CAST ( + 84 AS INTEGER ) AS col2, - 12 + + 98 AS col2
----
84
86

query I rowsort
SELECT ALL + 85 col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-274
SELECT + 71 - COUNT( * ) AS col1, + 78
----
70
78

skipif mysql # not compatible
query II rowsort label-274
SELECT + 71 - COUNT ( * ) AS col1, + 78
----
70
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT + 98 * - - 10 DIV 69 DIV - 64 * - + 3 * - ( + + 13 ) * COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-275
SELECT + 98 * - - 10 / 69 / - 64 * - + 3 * - ( + + 13 ) * COUNT ( * ) + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT - COALESCE ( - 70, + + 14 ) * - 99 + + - 31 DIV - 41 AS col1
----
-6930

skipif mysql # not compatible
query I rowsort label-276
SELECT - COALESCE ( - 70, + + 14 ) * - 99 + + - 31 / - 41 AS col1
----
-6930

query I rowsort
SELECT - 59 * + 83 AS col2
----
-4897

query I rowsort
SELECT + 65 * - + 11
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ( - CASE - COUNT( * ) WHEN 29 THEN COUNT( * ) WHEN - 2 * + 96 THEN 48 / + 70 * + + 19 + - 66 + 37 / + - 5 / - + 59 + - - ( + - COUNT( * ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT ( - CASE - COUNT ( * ) WHEN 29 THEN COUNT ( * ) WHEN - 2 * + 96 THEN 48 / + 70 * + + 19 + - 66 + 37 / + - 5 / - + 59 + - - ( + - COUNT ( * ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + COUNT( * ) + + + SUM( ALL + 40 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-280
SELECT + COUNT ( * ) + + + SUM ( ALL + 40 ) col0
----
41

query I rowsort
SELECT ALL ( 37 ) * - 92 + - 48 col1
----
-3452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-282
SELECT + COUNT( * ) DIV + - MIN( ALL - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-282
SELECT + COUNT ( * ) / + - MIN ( ALL - 37 )
----
0

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

query I rowsort
SELECT DISTINCT + 26 * + 25 * 82 * - 26 * - - 19
----
-26330200

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL + + COALESCE ( + COUNT( * ), - - ( - 47 ) * - 64 + + 50 * + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL + + COALESCE ( + COUNT ( * ), - - ( - 47 ) * - 64 + + 50 * + 23 ) AS col2
----
1

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

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

query II rowsort
SELECT ALL + ( 1 ), 79 + 88 AS col2
----
1
167

query II rowsort
SELECT + - 37 * - 52 AS col1, 97 + - + NULLIF ( - 84, - + 26 * + - 37 )
----
1924
181

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT + 34 + - 69 AS col2, 85 * 88 + + MAX( ALL - + 45 ) AS col0
----
-35
7435

skipif mysql # not compatible
query II rowsort label-289
SELECT + 34 + - 69 AS col2, 85 * 88 + + MAX ( ALL - + 45 ) AS col0
----
-35
7435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT CAST( 15 AS SIGNED ) + + ( 74 )
----
89

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT CAST ( 15 AS INTEGER ) + + ( 74 )
----
89

query I rowsort
SELECT ALL + 49 + 80 + - 89 * + 40 AS col2
----
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL SUM( + + 85 ) + + 75 - 4 * + 27 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL SUM ( + + 85 ) + + 75 - 4 * + 27 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-293
SELECT - + CAST( + 43 AS SIGNED ) AS col1, 46
----
-43
46

skipif mysql # not compatible
query II rowsort label-293
SELECT - + CAST ( + 43 AS INTEGER ) AS col1, 46
----
-43
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-294
SELECT ALL - AVG ( DISTINCT - 44 ) + CAST( NULL AS SIGNED ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST( - - 95 AS SIGNED ) + MAX( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST( NULL AS SIGNED ) * - - 27
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-294
SELECT ALL - AVG ( DISTINCT - 44 ) + CAST ( NULL AS INTEGER ) + + 24 + - 21 * COALESCE ( + 65, + 81, - CAST ( - - 95 AS INTEGER ) + MAX ( DISTINCT + 95 ) * + 74 * + 67 ) + - 2 AS col1, - CAST ( NULL AS INTEGER ) * - - 27
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-295
SELECT DISTINCT 15 + - 31 - - 75 + + + 40 + - + 84 * - 64 + + + 39 DIV + NULLIF ( 54, + 65 ) + + - 62
----
5413

skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT 15 + - 31 - - 75 + + + 40 + - + 84 * - 64 + + + 39 / + NULLIF ( 54, + 65 ) + + - 62
----
5413

query I rowsort
SELECT ALL 19 * - 37 col1
----
-703

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT 40 + 73, COUNT( * ) * - - ( - 72 ) AS col1
----
113
-72

skipif mysql # not compatible
query II rowsort label-297
SELECT 40 + 73, COUNT ( * ) * - - ( - 72 ) AS col1
----
113
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT DISTINCT + COUNT( 3 ) * 72 + + - ( - 99 ) + 43 * 84 + + - 57 + - COUNT( * ) * 59 + + - 91 AS col1, 72 * + 95 + + 17 * + 55
----
3576
7775

skipif mysql # not compatible
query II rowsort label-298
SELECT DISTINCT + COUNT ( 3 ) * 72 + + - ( - 99 ) + 43 * 84 + + - 57 + - COUNT ( * ) * 59 + + - 91 AS col1, 72 * + 95 + + 17 * + 55
----
3576
7775

query I rowsort
SELECT ALL - 19 + 76 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT CAST( 27 AS SIGNED ) * + 85 col1
----
2295

skipif mysql # not compatible
query I rowsort label-300
SELECT CAST ( 27 AS INTEGER ) * + 85 col1
----
2295

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT 21 + - - 20 + + + NULLIF ( ( + 94 ), 10 ) * - COUNT( * ) * ( + - 13 ) col0
----
1263

skipif mysql # not compatible
query I rowsort label-302
SELECT 21 + - - 20 + + + NULLIF ( ( + 94 ), 10 ) * - COUNT ( * ) * ( + - 13 ) col0
----
1263

query II rowsort
SELECT - 92, - 34 AS col2
----
-92
-34

query I rowsort
SELECT DISTINCT - 2 - - + 26 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL - CASE + 35 WHEN - COUNT( DISTINCT - ( - 26 ) ) THEN 19 * + COUNT( * ) WHEN - 19 + + 29 + - - 96 / + 43 + 50 + - COUNT( * ) * - 96 * + ( 5 ) / + 66 * - - COUNT( * ) * NULLIF ( - + COUNT( * ), + - 26 + - 55 + 64 * + ( + 79 ) ) THEN - COUNT( * ) + 19 * + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - CASE + 35 WHEN - COUNT ( DISTINCT - ( - 26 ) ) THEN 19 * + COUNT ( * ) WHEN - 19 + + 29 + - - 96 / + 43 + 50 + - COUNT ( * ) * - 96 * + ( 5 ) / + 66 * - - COUNT ( * ) * NULLIF ( - + COUNT ( * ), + - 26 + - 55 + 64 * + ( + 79 ) ) THEN - COUNT ( * ) + 19 * + 49 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT ALL - 30 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL - 30 / + 51
----
0

query I rowsort
SELECT 94 * 30
----
2820

query I rowsort
SELECT 30 + 27
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT 1 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-309
SELECT 1 / + 81 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT DISTINCT - COALESCE ( 60, - COUNT( DISTINCT + 13 ) ) * - - CAST( NULL AS SIGNED ) - + 30 + + COUNT( * ) / AVG ( + - 91 ) - - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - COALESCE ( 60, - COUNT ( DISTINCT + 13 ) ) * - - CAST ( NULL AS INTEGER ) - + 30 + + COUNT ( * ) / AVG ( + - 91 ) - - + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT COUNT( * ) * 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-311
SELECT COUNT ( * ) * 94 AS col2
----
94

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT DISTINCT COALESCE ( 60, + + 94, + COUNT( * ) * + COUNT( * ) + + 70 ) + - ( + 63 ) - - 60
----
57

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT COALESCE ( 60, + + 94, + COUNT ( * ) * + COUNT ( * ) + + 70 ) + - ( + 63 ) - - 60
----
57

query I rowsort
SELECT ALL 35 + 63
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT + 37 * - + 79 - 14 + SUM( ALL 92 ) - COUNT( * ) + COUNT( DISTINCT + 93 )
----
-2845

skipif mysql # not compatible
query I rowsort label-317
SELECT + 37 * - + 79 - 14 + SUM ( ALL 92 ) - COUNT ( * ) + COUNT ( DISTINCT + 93 )
----
-2845

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT + MAX( + 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-318
SELECT + MAX ( + 67 ) col2
----
67

query I rowsort
SELECT ALL - 39 + - 34 + + 4 + + 14 col2
----
-55

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

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

query I rowsort
SELECT ALL - + 86 + 18 AS col1
----
-68

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

skipif mysql # not compatible
query I rowsort label-322
SELECT + SUM ( + 56 )
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-323
SELECT - CAST( NULL AS DECIMAL ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT - CAST ( NULL AS REAL ) * 20
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-324
SELECT - - 65 AS col0, - 6 DIV + ( 87 )
----
65
0

skipif mysql # not compatible
query II rowsort label-324
SELECT - - 65 AS col0, - 6 / + ( 87 )
----
65
0

query I rowsort
SELECT 24 - - 51 * 53 col0
----
2727

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-326
SELECT 79 * 91 col0, 55 * 61 DIV - COUNT( * ) * COUNT( * ) + + 45 * + 87
----
7189
560

skipif mysql # not compatible
query II rowsort label-326
SELECT 79 * 91 col0, 55 * 61 / - COUNT ( * ) * COUNT ( * ) + + 45 * + 87
----
7189
560

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT 14 * + MIN( - + 95 )
----
-1330

skipif mysql # not compatible
query I rowsort label-327
SELECT 14 * + MIN ( - + 95 )
----
-1330

query I rowsort
SELECT DISTINCT + 43 * + 53 * 27
----
61533

query I rowsort
SELECT ALL 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT COUNT( * ) - COUNT( * ) * 77 * + 8 * + + 12 * SUM( DISTINCT 8 )
----
-59135

skipif mysql # not compatible
query I rowsort label-330
SELECT COUNT ( * ) - COUNT ( * ) * 77 * + 8 * + + 12 * SUM ( DISTINCT 8 )
----
-59135

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT MIN( DISTINCT - 33 ) + + 80
----
47

skipif mysql # not compatible
query I rowsort label-331
SELECT MIN ( DISTINCT - 33 ) + + 80
----
47

query I rowsort
SELECT 4 * 69
----
276

query II rowsort
SELECT 39 * + 27, 63 AS col2
----
1053
63

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT 10 + + - 98 AS col2, + COUNT( * ) AS col0
----
-88
1

skipif mysql # not compatible
query II rowsort label-334
SELECT 10 + + - 98 AS col2, + COUNT ( * ) AS col0
----
-88
1

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT 46 DIV - 77 * - 56
----
0

skipif mysql # not compatible
query I rowsort label-335
SELECT 46 / - 77 * - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL - MAX( ALL + - 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL - MAX ( ALL + - 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT DISTINCT - MIN( + + 50 ) * 66 + - 17 AS col1
----
-3317

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT - MIN ( + + 50 ) * 66 + - 17 AS col1
----
-3317

query I rowsort
SELECT DISTINCT - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ALL 39 * + ( + 79 ) + COUNT( * ) + - 87 + + - 66 - - + 1 * 49
----
2978

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 39 * + ( + 79 ) + COUNT ( * ) + - 87 + + - 66 - - + 1 * 49
----
2978

query II rowsort
SELECT + COALESCE ( - 99, 83, - 54 ), + 71 AS col1
----
-99
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-341
SELECT + CAST( - 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-341
SELECT + CAST ( - 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT ALL + 24 * - + 2 + 14 + + 10 - + COUNT( * ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + 24 * - + 2 + 14 + + 10 - + COUNT ( * ) col1
----
-25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 95 * + 70 / - COUNT( * ) + - ( + 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 95 * + 70 / - COUNT ( * ) + - ( + 72 ) AS col1
----
NULL

query I rowsort
SELECT ALL + - ( 2 )
----
-2

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

query I rowsort
SELECT + - NULLIF ( + + 52, + 93 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT DISTINCT + - ( 48 ) - + - 37 * MIN( 0 )
----
-48

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + - ( 48 ) - + - 37 * MIN ( 0 )
----
-48

query I rowsort
SELECT ALL + + 71 - - 65
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-350
SELECT + + 66 * + 76 + + ( - - COUNT( * ) ) DIV + - 64 * + - 17 * + - 95
----
5016

skipif mysql # not compatible
query I rowsort label-350
SELECT + + 66 * + 76 + + ( - - COUNT ( * ) ) / + - 64 * + - 17 * + - 95
----
5016

query I rowsort
SELECT ALL 97 * 89
----
8633

query I rowsort
SELECT - 2 + - 71 * 91 + - 21 AS col2
----
-6484

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT ALL - 56 DIV 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - 56 / 38 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-354
SELECT ALL + 2 - + CASE + - CAST( - NULLIF ( 66, - 98 ) AS DECIMAL ) WHEN - 2 * - 53 + - + 83 THEN 17 + CAST( NULL AS SIGNED ) ELSE + - ( + 51 ) END + - 64 * 51
----
-3211

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + 2 - + CASE + - CAST ( - NULLIF ( 66, - 98 ) AS REAL ) WHEN - 2 * - 53 + - + 83 THEN 17 + CAST ( NULL AS INTEGER ) ELSE + - ( + 51 ) END + - 64 * 51
----
-3211

query I rowsort
SELECT DISTINCT - 47 * - 67 AS col2
----
3149

query I rowsort
SELECT DISTINCT ( - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT ALL - COUNT( * ) * + NULLIF ( + ( - + 8 ), + + 14 * - 62 ) * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL - COUNT ( * ) * + NULLIF ( + ( - + 8 ), + + 14 * - 62 ) * + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT + 31 * COUNT( - + 61 )
----
31

skipif mysql # not compatible
query I rowsort label-358
SELECT + 31 * COUNT ( - + 61 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT + 49 + + 27 + + 73 + - ( - 88 ) + + 7 * 48 + + - 61 - 7 * CAST( NULL AS SIGNED ) + - 69 / - + ( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT + 49 + + 27 + + 73 + - ( - 88 ) + + 7 * 48 + + - 61 - 7 * CAST ( NULL AS INTEGER ) + - 69 / - + ( + 27 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT - 19 DIV + - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-360
SELECT - 19 / + - 47 AS col2
----
0

query I rowsort
SELECT + 25 + - ( + ( 94 ) )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT ALL CASE - CAST( - 3 AS SIGNED ) WHEN - 87 THEN - + COUNT( DISTINCT - COALESCE ( + - 28, - + 10 ) ) WHEN - COUNT( * ) * - 96 * CAST( NULL AS SIGNED ) THEN NULL END + - - 29 * CASE 36 WHEN - MAX( DISTINCT + + 82 ) + - ( + 82 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL CASE - CAST ( - 3 AS INTEGER ) WHEN - 87 THEN - + COUNT ( DISTINCT - COALESCE ( + - 28, - + 10 ) ) WHEN - COUNT ( * ) * - 96 * CAST ( NULL AS INTEGER ) THEN NULL END + - - 29 * CASE 36 WHEN - MAX ( DISTINCT + + 82 ) + - ( + 82 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-363
SELECT + 89 DIV 8 * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-363
SELECT + 89 / 8 * - COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT DISTINCT 9 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-365
SELECT ALL CAST( + 24 AS SIGNED ) DIV - 95 + 72
----
72

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL CAST ( + 24 AS INTEGER ) / - 95 + 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT CAST( + - COALESCE ( - 10, COUNT( * ), - + 50 * 15 - + - 48, - + COUNT( * ) + + - SUM( CAST( NULL AS SIGNED ) ) + - 5 - + COALESCE ( - 94, 23 * 76 * - 16 + - 41 ) + - 94 / CAST( - COUNT( * ) AS SIGNED ) ) AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-366
SELECT CAST ( + - COALESCE ( - 10, COUNT ( * ), - + 50 * 15 - + - 48, - + COUNT ( * ) + + - SUM ( CAST ( NULL AS INTEGER ) ) + - 5 - + COALESCE ( - 94, 23 * 76 * - 16 + - 41 ) + - 94 / CAST ( - COUNT ( * ) AS INTEGER ) ) AS INTEGER ) AS col1
----
10

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

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

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

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

skipif mysql # not compatible
query II rowsort label-369
SELECT ( - ( COUNT ( * ) ) ) AS col2, 27 AS col1
----
-1
27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-371
SELECT + + ( + + 49 ) * + ( + 50 ) * + 45 / - - NULLIF ( 38, + 15 * + CAST( + CASE COUNT( * ) WHEN - + 45 - - 95 * + ( + 4 ) * + 32 - 52 + 40 THEN NULL ELSE 28 * + 83 - + - ( 81 ) END AS SIGNED ) + - + 86 ) * - COUNT( * ) * 39 * - CAST( NULL AS DECIMAL ) + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-371
SELECT + + ( + + 49 ) * + ( + 50 ) * + 45 / - - NULLIF ( 38, + 15 * + CAST ( + CASE COUNT ( * ) WHEN - + 45 - - 95 * + ( + 4 ) * + 32 - 52 + 40 THEN NULL ELSE 28 * + 83 - + - ( 81 ) END AS INTEGER ) + - + 86 ) * - COUNT ( * ) * 39 * - CAST ( NULL AS REAL ) + 29 AS col2
----
NULL

query I rowsort
SELECT + - 97 AS col1
----
-97

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

query II rowsort
SELECT + 72 col0, + 14
----
72
14

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL + 41 * + + 56 * 47 * + COUNT( * ) - + + 60 + 47 + ( + 1 ) AS col1
----
107900

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + 41 * + + 56 * 47 * + COUNT ( * ) - + + 60 + 47 + ( + 1 ) AS col1
----
107900

query I rowsort
SELECT DISTINCT + - 41
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-377
SELECT ALL + 66, - 81 + 60 - COUNT( * ) + + COUNT( * ) / - CASE - CAST( - - 91 AS SIGNED ) WHEN 71 THEN - 32 ELSE NULL END AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-377
SELECT ALL + 66, - 81 + 60 - COUNT ( * ) + + COUNT ( * ) / - CASE - CAST ( - - 91 AS INTEGER ) WHEN 71 THEN - 32 ELSE NULL END AS col1
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT - + ( 22 ) * - + MAX( + - 27 ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-378
SELECT - + ( 22 ) * - + MAX ( + - 27 ) AS col2
----
-594

query I rowsort
SELECT ALL + + 59 col1
----
59

query I rowsort
SELECT + + 23 + - + 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT 1 * - 90 + 53 * + COUNT( * ) * NULLIF ( + COUNT( * ), + - 3 ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-381
SELECT 1 * - 90 + 53 * + COUNT ( * ) * NULLIF ( + COUNT ( * ), + - 3 ) col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT - CAST( NULL AS SIGNED ) * MIN( ALL + 10 ) AS col1
----
NULL

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

query I rowsort
SELECT + 69 * - 12
----
-828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT DISTINCT + + NULLIF ( + COUNT( ALL + 36 ), - 72 * - ( - + MAX( - 0 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT + + NULLIF ( + COUNT ( ALL + 36 ), - 72 * - ( - + MAX ( - 0 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-386
SELECT ALL CAST( + 83 AS SIGNED ) * - 19
----
-1577

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL CAST ( + 83 AS INTEGER ) * - 19
----
-1577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT - - ( + 67 ) * - 33 + - 63 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT - - ( + 67 ) * - 33 + - 63 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-388
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, + 31 - 77
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-388
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + 31 - 77
----
NULL
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT DISTINCT CASE + 23 WHEN - + 79 THEN - MIN( ALL + - 12 ) - + - 88 + - 2 ELSE NULL END col0, ( ( + - 5 ) ) - NULLIF ( 66, + + 24 ) AS col1
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-389
SELECT DISTINCT CASE + 23 WHEN - + 79 THEN - MIN ( ALL + - 12 ) - + - 88 + - 2 ELSE NULL END col0, ( ( + - 5 ) ) - NULLIF ( 66, + + 24 ) AS col1
----
NULL
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT ALL CAST( ( + + COALESCE ( 9, - 6, + + COUNT( * ) / COUNT( * ) + - COUNT( * ) + + + AVG ( - + 94 ) * - 89 ) ) AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL CAST ( ( + + COALESCE ( 9, - 6, + + COUNT ( * ) / COUNT ( * ) + - COUNT ( * ) + + + AVG ( - + 94 ) * - 89 ) ) AS INTEGER )
----
9

query I rowsort
SELECT DISTINCT ( - 47 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-392
SELECT DISTINCT ( - - 69 ), MAX( DISTINCT + 82 ) DIV MAX( DISTINCT + NULLIF ( 19, + ( - - 21 ) ) ) + - 87 + - CAST( + - 95 AS SIGNED ) col1
----
69
12

skipif mysql # not compatible
query II rowsort label-392
SELECT DISTINCT ( - - 69 ), MAX ( DISTINCT + 82 ) / MAX ( DISTINCT + NULLIF ( 19, + ( - - 21 ) ) ) + - 87 + - CAST ( + - 95 AS INTEGER ) col1
----
69
12

query I rowsort
SELECT - 49 * - 62 AS col2
----
3038

query I rowsort
SELECT - CASE - 34 WHEN 25 - 4 THEN + 31 ELSE NULL END
----
NULL

query I rowsort
SELECT + 1 * - ( - 26 ) col0
----
26

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

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

query I rowsort
SELECT ALL - 26 + + - 74 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT - COUNT( * ), 28 * - 44 AS col2
----
-1
-1232

skipif mysql # not compatible
query II rowsort label-398
SELECT - COUNT ( * ), 28 * - 44 AS col2
----
-1
-1232

query I rowsort
SELECT - 53 + - 15 AS col1
----
-68

query II rowsort
SELECT 58, 19 AS col0
----
58
19

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

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

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

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

query I rowsort
SELECT 35 * 66
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - 24 + - + COUNT( * ) + + - 15
----
-40

skipif mysql # not compatible
query I rowsort label-404
SELECT - 24 + - + COUNT ( * ) + + - 15
----
-40

query II rowsort
SELECT DISTINCT - + 63 AS col2, + 51
----
-63
51

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT + MIN( + 0 ) * - COUNT( * ) + - - 93 * - 70 AS col0
----
-6510

skipif mysql # not compatible
query I rowsort label-406
SELECT + MIN ( + 0 ) * - COUNT ( * ) + - - 93 * - 70 AS col0
----
-6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT COUNT( * ) DIV - + 28 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-407
SELECT COUNT ( * ) / - + 28 + - 97
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-408
SELECT ALL + COALESCE ( + 3, - 90, 92 DIV 36 ) - - MAX( + + 4 )
----
7

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL + COALESCE ( + 3, - 90, 92 / 36 ) - - MAX ( + + 4 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + - ( + - MAX( DISTINCT - + 31 ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-409
SELECT + - ( + - MAX ( DISTINCT - + 31 ) ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL - CAST( NULLIF ( - - CASE - + ( - COUNT( * ) ) WHEN 58 + - + 62 - + CAST( NULL AS SIGNED ) * 53 * + 23 THEN - 82 WHEN + ( - 39 ) THEN + COUNT( * ) + - - 9 ELSE NULL END, - + 91 / 83 * - - 58 / + - 92 + - 14 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL - CAST ( NULLIF ( - - CASE - + ( - COUNT ( * ) ) WHEN 58 + - + 62 - + CAST ( NULL AS INTEGER ) * 53 * + 23 THEN - 82 WHEN + ( - 39 ) THEN + COUNT ( * ) + - - 9 ELSE NULL END, - + 91 / 83 * - - 58 / + - 92 + - 14 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-411
SELECT ALL - + COUNT( * ) col2, 55 AS col1, - 3 + - - 39 + - 16 + - 73
----
-1
55
-53

skipif mysql # not compatible
query III rowsort label-411
SELECT ALL - + COUNT ( * ) col2, 55 AS col1, - 3 + - - 39 + - 16 + - 73
----
-1
55
-53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT( * ) / - COUNT( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT( * ) + + 58 ) / - COALESCE ( COUNT( * ), + ( + - 33 ) - - - 32 - + + COUNT( * ) - + + COUNT( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-413
SELECT 84 + + NULLIF ( - CASE + - 45 WHEN + + COUNT ( * ) / - COUNT ( * ) THEN - 31 ELSE NULL END, 86 * 32 ) * - 7 * - 13 AS col1, + 71 + CASE + 48 WHEN + 79 THEN + + COALESCE ( - 5, - + COUNT ( * ) + + 58 ) / - COALESCE ( COUNT ( * ), + ( + - 33 ) - - - 32 - + + COUNT ( * ) - + + COUNT ( * ) + - 88 ) WHEN + 48 THEN NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT ALL 57 * - 60
----
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT - - 43 DIV + 80 + - + 54 DIV 83 + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-415
SELECT - - 43 / + 80 + - + 54 / 83 + 58 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT + 23 * + + COUNT( * ) DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-416
SELECT + 23 * + + COUNT ( * ) / + 68 AS col1
----
0

query I rowsort
SELECT ALL - 50 col0
----
-50

query I rowsort
SELECT DISTINCT - 64 * - 29
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL - MAX( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - MAX ( - 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT DISTINCT NULLIF ( + 6, - COUNT( * ) ) * - + 82 * + ( + + CASE + COUNT( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-420
SELECT DISTINCT NULLIF ( + 6, - COUNT ( * ) ) * - + 82 * + ( + + CASE + COUNT ( * ) WHEN - 18 / 37 THEN - 24 WHEN + 72 * - 70 * - - 4 * 26 + + 8 + ( - ( + + 54 ) ) THEN + 90 ELSE NULL END ) + + ( 77 ) AS col1, 73
----
NULL
73

query I rowsort
SELECT ALL - + 64 AS col1
----
-64

query I rowsort
SELECT DISTINCT + 84 * + + 68 * - CASE WHEN NULL = 35 THEN - 57 ELSE NULL END
----
NULL

query I rowsort
SELECT 85 + - 58
----
27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-425
SELECT ALL NULLIF ( - MIN( + ( - - 23 ) ), - 72 ) DIV - + 72 * + - 45 AS col1, + 3 - + 72 * + COUNT( * ) - + 94 AS col0
----
0
-163

skipif mysql # not compatible
query II rowsort label-425
SELECT ALL NULLIF ( - MIN ( + ( - - 23 ) ), - 72 ) / - + 72 * + - 45 AS col1, + 3 - + 72 * + COUNT ( * ) - + 94 AS col0
----
0
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 30 * CASE COUNT( * ) WHEN + 59 THEN NULL WHEN + + 5 THEN 97 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT 30 * CASE COUNT ( * ) WHEN + 59 THEN NULL WHEN + + 5 THEN 97 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 33 + 42 AS col0
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-429
SELECT ALL + 66 + + + CAST( NULL AS SIGNED ) - 43 * + - 21 * + 20 - + + COUNT( * ) + + 12 col2, + SUM( - 10 ) + + - ( - 3 ) AS col1
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-429
SELECT ALL + 66 + + + CAST ( NULL AS INTEGER ) - 43 * + - 21 * + 20 - + + COUNT ( * ) + + 12 col2, + SUM ( - 10 ) + + - ( - 3 ) AS col1
----
NULL
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-430
SELECT DISTINCT ( + COUNT( * ) ) * - + MIN( 87 ) - + CASE ( + + CASE + 19 WHEN - COUNT( * ) THEN - 83 + - - 65 ELSE NULL END ) WHEN - + 4 THEN - + 68 * + CAST( NULL AS SIGNED ) * - COUNT( * ) END * - 91 * 32 / + 40 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT ( + COUNT ( * ) ) * - + MIN ( 87 ) - + CASE ( + + CASE + 19 WHEN - COUNT ( * ) THEN - 83 + - - 65 ELSE NULL END ) WHEN - + 4 THEN - + 68 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END * - 91 * 32 / + 40 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 94 + - 13
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT ALL CAST( 52 AS SIGNED ) + - ( - ( - + 7 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL CAST ( 52 AS INTEGER ) + - ( - ( - + 7 ) ) AS col1
----
45

query I rowsort
SELECT DISTINCT + 12 + - 95 - + - 25 AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT COALESCE ( - 68, - ( - 80 ) DIV + 10 + 62 * + 34 * - 77, 27 ) * 71
----
-4828

skipif mysql # not compatible
query I rowsort label-434
SELECT COALESCE ( - 68, - ( - 80 ) / + 10 + 62 * + 34 * - 77, 27 ) * 71
----
-4828

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT 64 + 1, 89 * 95 * + MIN( ALL - + 22 ) AS col0
----
65
-186010

skipif mysql # not compatible
query II rowsort label-436
SELECT 64 + 1, 89 * 95 * + MIN ( ALL - + 22 ) AS col0
----
65
-186010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-437
SELECT - COALESCE ( + CAST( + 40 AS SIGNED ), - CAST( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) DIV 75 DIV - COUNT( * ) * + NULLIF ( + 90, - 46 * - COUNT( * ) * - ( COUNT( * ) ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-437
SELECT - COALESCE ( + CAST ( + 40 AS INTEGER ), - CAST ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) / 75 / - COUNT ( * ) * + NULLIF ( + 90, - 46 * - COUNT ( * ) * - ( COUNT ( * ) ) ) )
----
-40

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

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

query I rowsort
SELECT DISTINCT 78 AS col2
----
78

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

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

query I rowsort
SELECT - 44 * 24 * + 24
----
-25344

query I rowsort
SELECT DISTINCT + 20 * 3 + + 48 + 28
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT ALL + MAX( + + 70 ) * - 51
----
-3570

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL + MAX ( + + 70 ) * - 51
----
-3570

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

query I rowsort
SELECT DISTINCT - + 63 AS col1
----
-63

query I rowsort
SELECT + 44 * + 18 - + 11
----
781

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT - 60 * 44, + MAX( - 19 ) + 16 AS col0
----
-2640
-3

skipif mysql # not compatible
query II rowsort label-447
SELECT - 60 * 44, + MAX ( - 19 ) + 16 AS col0
----
-2640
-3

query I rowsort
SELECT DISTINCT - - 30
----
30

query I rowsort
SELECT ALL 4 * + 76
----
304

onlyif mysql # DIV for integer division: 
query II rowsort label-450
SELECT ALL - + 35 DIV 82, COALESCE ( 28, + + 58 ) AS col2
----
0
28

skipif mysql # not compatible
query II rowsort label-450
SELECT ALL - + 35 / 82, COALESCE ( 28, + + 58 ) AS col2
----
0
28

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

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

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

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

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

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

query I rowsort
SELECT - 68 * - 4 - + 26 AS col0
----
246

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT ALL - 59, COALESCE ( + 88, - + 22 * - - COALESCE ( + COUNT( * ), - + 45 * + 96 ) ) - + 61 AS col1
----
-59
27

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL - 59, COALESCE ( + 88, - + 22 * - - COALESCE ( + COUNT ( * ), - + 45 * + 96 ) ) - + 61 AS col1
----
-59
27

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT 98 * - COUNT( * ) * - + COUNT( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99
----
99

skipif mysql # not compatible
query I rowsort label-456
SELECT 98 * - COUNT ( * ) * - + COUNT ( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99
----
99

query II rowsort
SELECT DISTINCT - 72 AS col1, + 4 + 11 + + ( 49 ) * + + 0 * + 94 AS col1
----
-72
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT DISTINCT CAST( + 24 AS SIGNED ) + + CAST( NULL AS SIGNED ) / ( - 12 ) * AVG ( DISTINCT + CASE - 19 WHEN 84 THEN NULL ELSE + ( 87 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT CAST ( + 24 AS INTEGER ) + + CAST ( NULL AS INTEGER ) / ( - 12 ) * AVG ( DISTINCT + CASE - 19 WHEN 84 THEN NULL ELSE + ( 87 ) END ) AS col2
----
NULL

query I rowsort
SELECT ( + + 52 ) + - 63
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT ALL CASE - + 95 WHEN 78 + - 20 THEN + - COUNT( + + ( + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) WHEN + COUNT( * ) + ( - + 39 ) THEN NULL ELSE NULL END * + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL CASE - + 95 WHEN 78 + - 20 THEN + - COUNT ( + + ( + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) WHEN + COUNT ( * ) + ( - + 39 ) THEN NULL ELSE NULL END * + 55 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL ( - 50 ) + + + ( - 16 ) AS col1
----
-66

query II rowsort
SELECT ALL 43 AS col1, + 98
----
43
98

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

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

query I rowsort
SELECT DISTINCT 65 + + - 36 * + 21 * - - 54
----
-40759

onlyif mysql # DIV for integer division: 
query II rowsort label-467
SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 DIV 1 AS col0
----
52
-7024

skipif mysql # not compatible
query II rowsort label-467
SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 / 1 AS col0
----
52
-7024

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

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT - 54 AS col2, + 80 + ( - COUNT( * ) )
----
-54
79

skipif mysql # not compatible
query II rowsort label-469
SELECT - 54 AS col2, + 80 + ( - COUNT ( * ) )
----
-54
79

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT + 6 * 80 * - 85 * - 15 * + ( + + COUNT( * ) )
----
612000

skipif mysql # not compatible
query I rowsort label-470
SELECT + 6 * 80 * - 85 * - 15 * + ( + + COUNT ( * ) )
----
612000

query I rowsort
SELECT ALL 18 * 59 AS col2
----
1062

query I rowsort
SELECT + 24 - - 27 AS col2
----
51

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

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

query II rowsort
SELECT ALL 63 AS col2, ( 87 ) * 6 * - 63 * 31
----
63
-1019466

query I rowsort
SELECT ALL + 63 * - 16 col1
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT - + 55 DIV + + 53
----
-1

skipif mysql # not compatible
query I rowsort label-476
SELECT - + 55 / + + 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - 74 * - 67 * NULLIF ( - COUNT( * ), 3 + COUNT( * ) * 32 * - - 24 )
----
-4958

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - 74 * - 67 * NULLIF ( - COUNT ( * ), 3 + COUNT ( * ) * 32 * - - 24 )
----
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + + ( - NULLIF ( - + COUNT( * ), 11 ) ) + - - 87
----
88

skipif mysql # not compatible
query I rowsort label-478
SELECT + + ( - NULLIF ( - + COUNT ( * ), 11 ) ) + - - 87
----
88

query III rowsort
SELECT - + 5 - - 25 * - 12 AS col0, + 21, - 40 AS col0
----
-305
21
-40

query I rowsort
SELECT ALL - + 88 - 73 AS col0
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-481
SELECT - COALESCE ( + 76, - 76 * - - 90 * + 4 + - - 44 + - + CAST ( NULL AS INTEGER ) )
----
-76

query I rowsort
SELECT - - ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT ALL ( - ( - + 57 ) ) AS col2, ( ( 63 ) ) + + + 48 + + - COUNT( * ) + - - COUNT( * ) AS col1
----
57
111

skipif mysql # not compatible
query II rowsort label-483
SELECT ALL ( - ( - + 57 ) ) AS col2, ( ( 63 ) ) + + + 48 + + - COUNT ( * ) + - - COUNT ( * ) AS col1
----
57
111

query I rowsort
SELECT - 22 + 96 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL + - COALESCE ( - + COUNT( - - ( 49 ) ), NULLIF ( ( + - 98 ), + 60 - + + 22 ) + + 34 + - 47 - - 83 ) * + 22 * 53 AS col1
----
1166

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + - COALESCE ( - + COUNT ( - - ( 49 ) ), NULLIF ( ( + - 98 ), + 60 - + + 22 ) + + 34 + - 47 - - 83 ) * + 22 * 53 AS col1
----
1166

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

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

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

query I rowsort
SELECT - 62 + - 40 - - 6 + 47 - 80 AS col1
----
-129

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-490
SELECT - - 93 DIV - MAX( 72 ), - 8 AS col2
----
-1
-8

skipif mysql # not compatible
query II rowsort label-490
SELECT - - 93 / - MAX ( 72 ), - 8 AS col2
----
-1
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-491
SELECT + 20 AS col1, - COUNT( * ) * + 58
----
20
-58

skipif mysql # not compatible
query II rowsort label-491
SELECT + 20 AS col1, - COUNT ( * ) * + 58
----
20
-58

query I rowsort
SELECT - - 29 + + 66 + 52 * + 86 AS col2
----
4567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-493
SELECT - + 59 DIV COUNT( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-493
SELECT - + 59 / COUNT ( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

query I rowsort
SELECT COALESCE ( + ( - + 82 ), 21 ) AS col1
----
-82

query I rowsort
SELECT ALL + 39 * 5
----
195

query I rowsort
SELECT DISTINCT + 52 col2
----
52

query I rowsort
SELECT NULLIF ( + 19, - 51 )
----
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT ALL + 66 * 69 + 3 DIV - 36
----
4554

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL + 66 * 69 + 3 / - 36
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT + MAX( ALL + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-500
SELECT + MAX ( ALL + 72 ) AS col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL + MIN( 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + MIN ( 12 ) AS col1
----
12

query II rowsort
SELECT - 54 + + 23 AS col0, + ( + 23 )
----
-31
23

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT COUNT( DISTINCT - 52 ) * + ( 12 ) + 58
----
70

skipif mysql # not compatible
query I rowsort label-504
SELECT COUNT ( DISTINCT - 52 ) * + ( 12 ) + 58
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT + NULLIF ( + COALESCE ( + 45, + 52 ), + + COUNT( * ) ) * - 44 - - + 64 * + + 25
----
-380

skipif mysql # not compatible
query I rowsort label-505
SELECT + NULLIF ( + COALESCE ( + 45, + 52 ), + + COUNT ( * ) ) * - 44 - - + 64 * + + 25
----
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT + MAX( + 12 ) AS col0, 61 AS col1
----
12
61

skipif mysql # not compatible
query II rowsort label-506
SELECT + MAX ( + 12 ) AS col0, 61 AS col1
----
12
61

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT COUNT( ALL 36 )
----
1

skipif mysql # not compatible
query I rowsort label-507
SELECT COUNT ( ALL 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT ALL 42 * - NULLIF ( + 48, + + MAX( + 79 ) )
----
-2016

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL 42 * - NULLIF ( + 48, + + MAX ( + 79 ) )
----
-2016

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + 83 * - CASE + 41 WHEN 52 + 24 THEN - COUNT( * ) * - 24 END / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-512
SELECT + 83 * - CASE + 41 WHEN 52 + 24 THEN - COUNT ( * ) * - 24 END / + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-513
SELECT ALL - CAST( - + CAST( - - 4 AS SIGNED ) AS SIGNED ) * + 23 AS col0, - COUNT( - 30 ) col0
----
92
-1

skipif mysql # not compatible
query II rowsort label-513
SELECT ALL - CAST ( - + CAST ( - - 4 AS INTEGER ) AS INTEGER ) * + 23 AS col0, - COUNT ( - 30 ) col0
----
92
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT DISTINCT CAST( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT( * ) / + - 87 END, - - 28 ) + - - 42 ) AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT CAST ( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT ( * ) / + - 87 END, - - 28 ) + - - 42 ) AS INTEGER ) AS col1
----
-29

query II rowsort
SELECT DISTINCT 12 - - - 18 col0, - 39
----
-6
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT 41 - + MAX( DISTINCT 91 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT 41 - + MAX ( DISTINCT 91 ) AS col1
----
-50

query I rowsort
SELECT + 53 * + + 17 AS col2
----
901

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-519
SELECT + + CAST( - AVG ( ALL - 3 ) AS SIGNED ) * - 19 * - - 52 AS col1, 92 - + 56 * - + MAX( ALL + - ( + 28 ) ) - 90 * - + COUNT( * ) * - - 97
----
-2964
7254

skipif mysql # not compatible
query II rowsort label-519
SELECT + + CAST ( - AVG ( ALL - 3 ) AS INTEGER ) * - 19 * - - 52 AS col1, 92 - + 56 * - + MAX ( ALL + - ( + 28 ) ) - 90 * - + COUNT ( * ) * - - 97
----
-2964
7254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL CAST( NULL AS SIGNED ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL CAST ( NULL AS INTEGER ) / 78
----
NULL

query I rowsort
SELECT - - 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT DISTINCT + MAX( 63 ) + - 15
----
48

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT + MAX ( 63 ) + - 15
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-523
SELECT ALL + 30 * - - 71 + - - 66 - + - 97 * + NULLIF ( 2, + CAST( - CAST( - - 52 AS SIGNED ) AS SIGNED ) * - 40 + - ( 6 ) * + 86 )
----
2390

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 30 * - - 71 + - - 66 - + - 97 * + NULLIF ( 2, + CAST ( - CAST ( - - 52 AS INTEGER ) AS INTEGER ) * - 40 + - ( 6 ) * + 86 )
----
2390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-524
SELECT ALL + 19 + CAST( NULL AS DECIMAL ) + + 38 + - 34 / + - 87 / - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL + 19 + CAST ( NULL AS REAL ) + + 38 + - 34 / + - 87 / - - COUNT ( * ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-525
SELECT - 47 DIV - 83, + 9 * - - 97 AS col1
----
0
873

skipif mysql # not compatible
query II rowsort label-525
SELECT - 47 / - 83, + 9 * - - 97 AS col1
----
0
873

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

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

query I rowsort
SELECT + + 63 * - - 89
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT + COUNT( DISTINCT + + 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-528
SELECT + COUNT ( DISTINCT + + 83 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 43 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-530
SELECT DISTINCT + 37 DIV - 70 + 14 + + - MIN( + + 84 ) * + + 64 AS col1
----
-5362

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT + 37 / - 70 + 14 + + - MIN ( + + 84 ) * + + 64 AS col1
----
-5362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-531
SELECT ALL + - 86 DIV 21 + - 90 + - + COUNT( * ) AS col2, + COALESCE ( 52, + + COALESCE ( - 61, + ( - 39 ), COUNT( * ), + CAST( NULL AS SIGNED ) ) ) DIV - + 77 + + MIN( + + 96 )
----
-95
96

skipif mysql # not compatible
query II rowsort label-531
SELECT ALL + - 86 / 21 + - 90 + - + COUNT ( * ) AS col2, + COALESCE ( 52, + + COALESCE ( - 61, + ( - 39 ), COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) / - + 77 + + MIN ( + + 96 )
----
-95
96

query I rowsort
SELECT DISTINCT + 52 AS col1
----
52

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

query II rowsort
SELECT + 75, - 20 AS col2
----
75
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ALL + COUNT( - NULLIF ( 92, 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + COUNT ( - NULLIF ( 92, 47 ) )
----
1

query I rowsort
SELECT ALL - 35 * - 5 AS col2
----
175

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

skipif mysql # not compatible
query I rowsort label-537
SELECT + MIN ( - 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-538
SELECT DISTINCT - 53 * - + ( CAST( + 84 AS SIGNED ) ) * - ( - ( + 13 ) )
----
57876

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - 53 * - + ( CAST ( + 84 AS INTEGER ) ) * - ( - ( + 13 ) )
----
57876

query II rowsort
SELECT 23 + - + ( + 98 ) AS col0, 2 + - - 77
----
-75
79

query I rowsort
SELECT 81 * - 16 - 55 AS col0
----
-1351

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 29 * 69 * + - 41 * + MIN( DISTINCT + 32 ) AS col0
----
-2625312

skipif mysql # not compatible
query I rowsort label-541
SELECT 29 * 69 * + - 41 * + MIN ( DISTINCT + 32 ) AS col0
----
-2625312

query II rowsort
SELECT 46 col0, 80 AS col2
----
46
80

query I rowsort
SELECT ALL + 81 - + 41
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT ALL + CAST( NULL AS SIGNED ) * MAX( 68 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT DISTINCT 30 DIV - - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT 30 / - - 87 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT 74 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-546
SELECT 74 / - - 86
----
0

query I rowsort
SELECT ALL 64 * - 21 AS col0
----
-1344

query I rowsort
SELECT 51 col1
----
51

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

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT + 0 / + COUNT ( * ) AS col0
----
0

query II rowsort
SELECT - 81 * - 69 + + 73 AS col2, ( + + 41 ) * + 46 AS col2
----
5662
1886

query I rowsort
SELECT 50 * - + 30
----
-1500

query I rowsort
SELECT - - 53 AS col2
----
53

query I rowsort
SELECT ALL - 33 + + 61
----
28

query I rowsort
SELECT ALL + - 29 + + ( - 45 )
----
-74

query I rowsort
SELECT 30 * + 39 * - 93 * - - 55 AS col0
----
-5984550

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL - ( + 27 ) + COUNT( * ) * - - 78
----
51

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL - ( + 27 ) + COUNT ( * ) * - - 78
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL CASE - COALESCE ( 57, - + 81, + 46 + - 13 ) WHEN - 0 THEN NULL ELSE + 98 END + + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL CASE - COALESCE ( 57, - + 81, + 46 + - 13 ) WHEN - 0 THEN NULL ELSE + 98 END + + - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT - 40 - 7
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT 9 + - 51 DIV - + 19
----
11

skipif mysql # not compatible
query I rowsort label-559
SELECT 9 + - 51 / - + 19
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT - 65, - 21 - COUNT( * ) AS col1
----
-65
-22

skipif mysql # not compatible
query II rowsort label-560
SELECT - 65, - 21 - COUNT ( * ) AS col1
----
-65
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-561
SELECT DISTINCT 41 DIV + COUNT( 58 ), - 43 AS col2
----
41
-43

skipif mysql # not compatible
query II rowsort label-561
SELECT DISTINCT 41 / + COUNT ( 58 ), - 43 AS col2
----
41
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT COUNT( * ) + + - 95 - - ( - - 88 )
----
-6

skipif mysql # not compatible
query I rowsort label-562
SELECT COUNT ( * ) + + - 95 - - ( - - 88 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-563
SELECT ALL + 15 * ( + - CASE - + CAST( - - 67 AS DECIMAL ) WHEN - COUNT( * ) * - 90 + + COUNT( - - 23 ) THEN NULL ELSE - - 99 END ) + 44 AS col2, 86 - + 63 + + + 16
----
-1441
39

skipif mysql # not compatible
query II rowsort label-563
SELECT ALL + 15 * ( + - CASE - + CAST ( - - 67 AS REAL ) WHEN - COUNT ( * ) * - 90 + + COUNT ( - - 23 ) THEN NULL ELSE - - 99 END ) + 44 AS col2, 86 - + 63 + + + 16
----
-1441
39

query I rowsort
SELECT ALL - + 64 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-565
SELECT 52 * + 41 - - 8 + + 88 + + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1, + 13 * MIN( DISTINCT - 64 ) col2
----
NULL
-832

skipif mysql # not compatible
query II rowsort label-565
SELECT 52 * + 41 - - 8 + + 88 + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, + 13 * MIN ( DISTINCT - 64 ) col2
----
NULL
-832

query I rowsort
SELECT ALL - 46 - + - 90
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT DISTINCT 14 * - 71 AS col2, - COUNT( * )
----
-994
-1

skipif mysql # not compatible
query II rowsort label-567
SELECT DISTINCT 14 * - 71 AS col2, - COUNT ( * )
----
-994
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT ALL CASE + CAST( 62 AS SIGNED ) WHEN 43 * 82 * + 22 + + 92 + + 98 THEN + + COUNT( * ) * - - CAST( NULL AS SIGNED ) - + - NULLIF ( + - 50, + - 68 ) + - 53 * ( - 46 ) * - NULLIF ( ( + 96 ), 2 + - - 70 * + 23 ) * + - 55 + 22 + - 58 + - + 74 WHEN COUNT( * ) + NULLIF ( COUNT( * ), + - ( 86 ) ) - 52 THEN + ( + + MAX( - ( 89 ) ) ) ELSE - 71 END * 75 col2
----
-5325

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL CASE + CAST ( 62 AS INTEGER ) WHEN 43 * 82 * + 22 + + 92 + + 98 THEN + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) - + - NULLIF ( + - 50, + - 68 ) + - 53 * ( - 46 ) * - NULLIF ( ( + 96 ), 2 + - - 70 * + 23 ) * + - 55 + 22 + - 58 + - + 74 WHEN COUNT ( * ) + NULLIF ( COUNT ( * ), + - ( 86 ) ) - 52 THEN + ( + + MAX ( - ( 89 ) ) ) ELSE - 71 END * 75 col2
----
-5325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT 49 * + ( - NULLIF ( - ( + 73 ), CASE ( - - COUNT( * ) ) WHEN - COUNT( * ) * + COUNT( * ) + 55 + 25 + - 22 + + 96 / - + 48 THEN + + COALESCE ( 32, + 29 * - 40 ) * + 1 / - 37 ELSE NULL END + + 48 ) )
----
3577

skipif mysql # not compatible
query I rowsort label-570
SELECT 49 * + ( - NULLIF ( - ( + 73 ), CASE ( - - COUNT ( * ) ) WHEN - COUNT ( * ) * + COUNT ( * ) + 55 + 25 + - 22 + + 96 / - + 48 THEN + + COALESCE ( 32, + 29 * - 40 ) * + 1 / - 37 ELSE NULL END + + 48 ) )
----
3577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL 49 * - - CASE - 69 WHEN 2 + - + 71 THEN NULL WHEN - + 68 THEN + - CASE - 74 WHEN 27 * + 36 THEN NULL WHEN + - 73 + + - 89 THEN NULL ELSE + + ( COUNT( * ) ) END * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL 49 * - - CASE - 69 WHEN 2 + - + 71 THEN NULL WHEN - + 68 THEN + - CASE - 74 WHEN 27 * + 36 THEN NULL WHEN + - 73 + + - 89 THEN NULL ELSE + + ( COUNT ( * ) ) END * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT - 90 AS col2, 28 AS col0
----
-90
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-573
SELECT ALL - 49 - + 5 AS col2, - 66 * - MAX( - CASE + 17 WHEN + ( 12 ) / - + 60 + - 42 THEN NULL WHEN - - 3 THEN - - CAST( - 48 AS SIGNED ) END ) AS col1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-573
SELECT ALL - 49 - + 5 AS col2, - 66 * - MAX ( - CASE + 17 WHEN + ( 12 ) / - + 60 + - 42 THEN NULL WHEN - - 3 THEN - - CAST ( - 48 AS INTEGER ) END ) AS col1
----
-54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT COUNT( * ) * + 52 * + 8 AS col1
----
416

skipif mysql # not compatible
query I rowsort label-574
SELECT COUNT ( * ) * + 52 * + 8 AS col1
----
416

query I rowsort
SELECT 74 * 3
----
222

query I rowsort
SELECT 64 * + + 61
----
3904

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT DISTINCT 0 DIV 33 * 98
----
0

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT 0 / 33 * 98
----
0

query II rowsort
SELECT ALL - 9 AS col2, - COALESCE ( + + 68, - + 50 * + 38 ) col0
----
-9
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT NULLIF ( - ( + CASE 63 WHEN + 38 + - 22 * - CASE 19 WHEN - AVG ( 16 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 96 ELSE - 37 + 0 END + - 13 + - + 88 * - 74 - + ( 81 ) - - 50 * - COUNT( * ) - - 53 THEN 84 WHEN - COALESCE ( - COALESCE ( 75, - 35 ), 1 / + COALESCE ( - 71, - + 65 + + 12 + 20 * + + 68 ) / + 94 - - 5 + - 74 + 23 ) + 52 THEN COUNT( * ) * + 62 WHEN + AVG ( 79 ) THEN 90 + + 9 * - COUNT( * ) ELSE AVG ( - 31 ) END ), CAST( NULL AS SIGNED ) ) - + 5 * - CASE 96 * - ( 74 ) WHEN COUNT( * ) THEN COUNT( DISTINCT + NULLIF ( 67, - 72 * - 38 ) ) + - 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT NULLIF ( - ( + CASE 63 WHEN + 38 + - 22 * - CASE 19 WHEN - AVG ( 16 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 96 ELSE - 37 + 0 END + - 13 + - + 88 * - 74 - + ( 81 ) - - 50 * - COUNT ( * ) - - 53 THEN 84 WHEN - COALESCE ( - COALESCE ( 75, - 35 ), 1 / + COALESCE ( - 71, - + 65 + + 12 + 20 * + + 68 ) / + 94 - - 5 + - 74 + 23 ) + 52 THEN COUNT ( * ) * + 62 WHEN + AVG ( 79 ) THEN 90 + + 9 * - COUNT ( * ) ELSE AVG ( - 31 ) END ), CAST ( NULL AS INTEGER ) ) - + 5 * - CASE 96 * - ( 74 ) WHEN COUNT ( * ) THEN COUNT ( DISTINCT + NULLIF ( 67, - 72 * - 38 ) ) + - 8 END AS col2
----
NULL

query I rowsort
SELECT ALL + 14 * - 13
----
-182

query I rowsort
SELECT ( - 69 ) * - 51 AS col1
----
3519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT + 48 * + 73 / + CAST( NULL AS SIGNED ) + + - 66 - - ( 19 ) * + - 53 + - + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT + 48 * + 73 / + CAST ( NULL AS INTEGER ) + + - 66 - - ( 19 ) * + - 53 + - + 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT + 5 * + 91 * - - COUNT( * ) * - - 50 * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + 5 * + 91 * - - COUNT ( * ) * - - 50 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT ALL - 12 + - + CAST( 82 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - 12 + - + CAST ( 82 AS INTEGER ) AS col0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT 19 DIV + ( - 90 ) * 37
----
0

skipif mysql # not compatible
query I rowsort label-585
SELECT 19 / + ( - 90 ) * 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT + 85 * + ( + CAST( NULL AS SIGNED ) ) + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT + 85 * + ( + CAST ( NULL AS INTEGER ) ) + - 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-587
SELECT + CASE - + 66 WHEN + 77 THEN NULL ELSE + + CASE - 97 WHEN + 14 + - + 81 THEN + 84 WHEN + 42 THEN - + COUNT( * ) WHEN - COUNT( * ) + - + 32 THEN NULL END + ( - CAST( NULL AS SIGNED ) ) END AS col1, MAX( 45 ) + + ( - + COUNT( * ) ) - - SUM( ALL + CAST( + 23 AS SIGNED ) ) AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-587
SELECT + CASE - + 66 WHEN + 77 THEN NULL ELSE + + CASE - 97 WHEN + 14 + - + 81 THEN + 84 WHEN + 42 THEN - + COUNT ( * ) WHEN - COUNT ( * ) + - + 32 THEN NULL END + ( - CAST ( NULL AS INTEGER ) ) END AS col1, MAX ( 45 ) + + ( - + COUNT ( * ) ) - - SUM ( ALL + CAST ( + 23 AS INTEGER ) ) AS col0
----
NULL
67

query I rowsort
SELECT ALL - 63 + + - NULLIF ( 82, - 39 )
----
-145

query I rowsort
SELECT + 88 + + 45 * - 5 AS col1
----
-137

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT ( - - 32 ) DIV + - 21
----
-1

skipif mysql # not compatible
query I rowsort label-591
SELECT ( - - 32 ) / + - 21
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT DISTINCT + ( + + 10 ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT + ( + + 10 ) / + + 67
----
0

query I rowsort
SELECT 75 + + 98 AS col0
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-595
SELECT SUM( - - CAST( 6 AS SIGNED ) ) DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-595
SELECT SUM ( - - CAST ( 6 AS INTEGER ) ) / + + 88
----
0

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

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

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

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

query I rowsort
SELECT 67 + 65 AS col0
----
132

query I rowsort
SELECT ALL - - 13 + + 26
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT CASE + 92 WHEN 54 + + - 55 THEN NULL WHEN + 49 THEN CAST( NULL AS SIGNED ) / + 23 * - ( + AVG ( 46 ) ) END * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT CASE + 92 WHEN 54 + + - 55 THEN NULL WHEN + 49 THEN CAST ( NULL AS INTEGER ) / + 23 * - ( + AVG ( 46 ) ) END * CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 90 col0, - 4 * + + 54 AS col0
----
90
-216

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

skipif mysql # not compatible
query II rowsort label-602
SELECT DISTINCT COUNT ( * ) * 12, - 29 AS col0
----
12
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT DISTINCT + 8 - - - COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT + 8 - - - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
8

query I rowsort
SELECT ALL + NULLIF ( 0, + + 2 - - 67 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT DISTINCT 53 - - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT 53 - - COUNT ( * ) AS col0
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT ALL CASE - 49 WHEN + COUNT( * ) + + CAST( NULL AS SIGNED ) THEN NULL WHEN 76 THEN + COALESCE ( - 8, - 70 ) * + + CAST( NULL AS SIGNED ) * + 91 + - - 31 * ( - 62 ) / + - 77 + + 54 + - - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL CASE - 49 WHEN + COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 76 THEN + COALESCE ( - 8, - 70 ) * + + CAST ( NULL AS INTEGER ) * + 91 + - - 31 * ( - 62 ) / + - 77 + + 54 + - - 12 END
----
NULL

query I rowsort
SELECT - 37 - - 30 AS col2
----
-7

query I rowsort
SELECT - 55 * 71 * + 80
----
-312400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-610
SELECT 8 DIV + + CAST( - NULLIF ( - 70, + + COUNT( + - 86 ) ) AS SIGNED ) + + 2
----
2

skipif mysql # not compatible
query I rowsort label-610
SELECT 8 / + + CAST ( - NULLIF ( - 70, + + COUNT ( + - 86 ) ) AS INTEGER ) + + 2
----
2

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

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

query I rowsort
SELECT + ( - - ( - 46 ) ) * + 78 col1
----
-3588

query I rowsort
SELECT ALL 19 * 50 AS col1
----
950

query I rowsort
SELECT ALL 54 * + - ( + NULLIF ( + 4, + 31 ) ) AS col1
----
-216

query I rowsort
SELECT + CASE + + 99 WHEN - 39 THEN CASE + + 96 WHEN - AVG ( ALL - - 54 ) THEN NULL WHEN - 4 THEN NULL WHEN - 51 * 82 THEN + - 13 ELSE NULL END ELSE - 96 + - 99 END - - + 83 AS col1
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT + ( + 38 ) DIV + 46 + + COALESCE ( - NULLIF ( + 5, - 98 ), 19, 0 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-616
SELECT + ( + 38 ) / + 46 + + COALESCE ( - NULLIF ( + 5, - 98 ), 19, 0 ) AS col0
----
-5

query I rowsort
SELECT ALL 59 * 31
----
1829

query I rowsort
SELECT + 24 + - + 50
----
-26

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

skipif mysql # not compatible
query I rowsort label-619
SELECT + 41 / COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT COUNT( * ) * + 63 + + 58 * + 73 * 95 AS col1
----
402293

skipif mysql # not compatible
query I rowsort label-620
SELECT COUNT ( * ) * + 63 + + 58 * + 73 * 95 AS col1
----
402293

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT - ( - 91 ) * - MIN( ALL + - 3 ) * + + CAST( + - ( + 56 ) AS SIGNED )
----
-15288

skipif mysql # not compatible
query I rowsort label-622
SELECT - ( - 91 ) * - MIN ( ALL + - 3 ) * + + CAST ( + - ( + 56 ) AS INTEGER )
----
-15288

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL 0 * COUNT( * ) * - - 99 + + 87 + 4 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL 0 * COUNT ( * ) * - - 99 + + 87 + 4 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL + - COALESCE ( - COUNT( + + 82 ), - + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL + - COALESCE ( - COUNT ( + + 82 ), - + 52 )
----
1

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

query I rowsort
SELECT ALL - 0 + - 91 * - - 33 AS col2
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL + + 91 * MIN( + 78 )
----
7098

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + + 91 * MIN ( + 78 )
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL CASE + 13 WHEN + 90 THEN NULL WHEN - 35 * - + 56 THEN + + 33 / + 53 ELSE NULL END * - + 31 + + MAX( ALL - 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL CASE + 13 WHEN + 90 THEN NULL WHEN - 35 * - + 56 THEN + + 33 / + 53 ELSE NULL END * - + 31 + + MAX ( ALL - 12 ) AS col0
----
NULL

query II rowsort
SELECT - - 20 * - + 97 AS col1, 83 AS col2
----
-1940
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL + - CAST( - 65 AS SIGNED ) * + + MIN( DISTINCT 8 ) AS col2
----
520

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + - CAST ( - 65 AS INTEGER ) * + + MIN ( DISTINCT 8 ) AS col2
----
520

query I rowsort
SELECT - 94 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - ( + + MIN( DISTINCT - 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-632
SELECT - ( + + MIN ( DISTINCT - 32 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT - 75 - 97 * + 0 * - 56 - + COUNT( * ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-633
SELECT - 75 - 97 * + 0 * - 56 - + COUNT ( * ) col1
----
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL - COALESCE ( + 34, - CAST( + 1 AS SIGNED ) - + 31, - 28 * 41 ) - 8
----
-42

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - COALESCE ( + 34, - CAST ( + 1 AS INTEGER ) - + 31, - 28 * 41 ) - 8
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT ALL - - MIN( - 76 ) DIV 93 DIV - 11
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - - MIN ( - 76 ) / 93 / - 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT ALL + 24 - + 93 + + 42 * - 78 * + + 39 * - COUNT( * ) + + + COUNT( * ), - 54 * + 72 * + 35 AS col1
----
127696
-136080

skipif mysql # not compatible
query II rowsort label-637
SELECT ALL + 24 - + 93 + + 42 * - 78 * + + 39 * - COUNT ( * ) + + + COUNT ( * ), - 54 * + 72 * + 35 AS col1
----
127696
-136080

query I rowsort
SELECT DISTINCT + 36 AS col0
----
36

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

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

query I rowsort
SELECT ALL ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT + 96 + - - SUM( ALL - 56 ) + + MIN( + 14 )
----
54

skipif mysql # not compatible
query I rowsort label-641
SELECT + 96 + - - SUM ( ALL - 56 ) + + MIN ( + 14 )
----
54

query I rowsort
SELECT - 8 + - - 94
----
86

query I rowsort
SELECT ALL + 22 * - 88 AS col2
----
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT - COUNT( + 36 ) + - 18 col2, 86
----
-19
86

skipif mysql # not compatible
query II rowsort label-644
SELECT - COUNT ( + 36 ) + - 18 col2, 86
----
-19
86

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT ALL + 22 AS col2, + 76 * - + COUNT( * ) AS col0
----
22
-76

skipif mysql # not compatible
query II rowsort label-645
SELECT ALL + 22 AS col2, + 76 * - + COUNT ( * ) AS col0
----
22
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-646
SELECT COUNT( * ) DIV COUNT( * ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-646
SELECT COUNT ( * ) / COUNT ( * ) + 92
----
93

query I rowsort
SELECT ALL + 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT ALL + 29 AS col0, COALESCE ( + MIN( ALL + 80 ), - 5 - - COUNT( * ), + COUNT( * ) ) AS col2
----
29
80

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL + 29 AS col0, COALESCE ( + MIN ( ALL + 80 ), - 5 - - COUNT ( * ), + COUNT ( * ) ) AS col2
----
29
80

query I rowsort
SELECT ALL + 14 * + NULLIF ( - - 17, 31 )
----
238

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT DISTINCT 9 DIV 99 + + + ( - - 49 ) - CASE + 22 WHEN - 25 THEN - + 98 WHEN - 89 THEN NULL ELSE 79 * + 42 END DIV - 4
----
878

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT 9 / 99 + + + ( - - 49 ) - CASE + 22 WHEN - 25 THEN - + 98 WHEN - 89 THEN NULL ELSE 79 * + 42 END / - 4
----
878

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

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

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

skipif mysql # not compatible
query I rowsort label-652
SELECT + 24 / - 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT DISTINCT 47 DIV + - 76 * COUNT( + 32 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT 47 / + - 76 * COUNT ( + 32 ) col1
----
0

query II rowsort
SELECT ALL 27 * - 59 + 40, + 74 AS col1
----
-1553
74

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT + 39 DIV - ( + 90 ) + 99
----
99

skipif mysql # not compatible
query I rowsort label-655
SELECT + 39 / - ( + 90 ) + 99
----
99

query I rowsort
SELECT ALL + 18 AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT + ( SUM( ALL + 16 ) ), ( - - 87 ) AS col1
----
16
87

skipif mysql # not compatible
query II rowsort label-657
SELECT + ( SUM ( ALL + 16 ) ), ( - - 87 ) AS col1
----
16
87

query I rowsort
SELECT ALL 47 * - - 60 + - 31 + - - 44 AS col1
----
2833

onlyif mysql # aggregate syntax: 
query II rowsort label-659
SELECT ALL ( 70 ) * + - 46 col1, 7 * NULLIF ( - + 72, NULLIF ( + 86, + ( - 10 ) ) / - 39 * COUNT( ALL - 45 ) )
----
-3220
-504

skipif mysql # not compatible
query II rowsort label-659
SELECT ALL ( 70 ) * + - 46 col1, 7 * NULLIF ( - + 72, NULLIF ( + 86, + ( - 10 ) ) / - 39 * COUNT ( ALL - 45 ) )
----
-3220
-504

query I rowsort
SELECT ALL - 78 * ( + 87 ) + - + ( 40 ) + - + 29
----
-6855

query II rowsort
SELECT + - ( + 7 ) * - - 29 * + 1 AS col1, - 53
----
-203
-53

query I rowsort
SELECT - - 55 + - 47 AS col2
----
8

query I rowsort
SELECT DISTINCT + - 74 * + 5 + + - 31
----
-401

query I rowsort
SELECT - NULLIF ( 54, - - 76 + - - 8 * - 48 * - 71 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + 6 + 11 - - 31 * - COALESCE ( 13, + COUNT( * ) ) col0
----
-386

skipif mysql # not compatible
query I rowsort label-665
SELECT + 6 + 11 - - 31 * - COALESCE ( 13, + COUNT ( * ) ) col0
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL - + 75 * - + COUNT( * ) + - 94 + 22 * - 39 * + 4 + - - 67 + - + 29 * 43 - + - 87 col0
----
-4544

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL - + 75 * - + COUNT ( * ) + - 94 + 22 * - 39 * + 4 + - - 67 + - + 29 * 43 - + - 87 col0
----
-4544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + 20 + COUNT( * ) - MIN( DISTINCT 19 )
----
2

skipif mysql # not compatible
query I rowsort label-668
SELECT + 20 + COUNT ( * ) - MIN ( DISTINCT 19 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-669
SELECT + CAST( - - CAST( - - 20 AS SIGNED ) AS SIGNED ) + + 68
----
88

skipif mysql # not compatible
query I rowsort label-669
SELECT + CAST ( - - CAST ( - - 20 AS INTEGER ) AS INTEGER ) + + 68
----
88

query I rowsort
SELECT DISTINCT 6 col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-671
SELECT ALL - 63 * + CAST( 82 AS SIGNED ) + + - COALESCE ( - 42, + CAST( - - COUNT( DISTINCT 36 ) AS SIGNED ) ) - - 32 AS col2
----
-5092

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL - 63 * + CAST ( 82 AS INTEGER ) + + - COALESCE ( - 42, + CAST ( - - COUNT ( DISTINCT 36 ) AS INTEGER ) ) - - 32 AS col2
----
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL - 70 * + - COUNT( * ) + 18 + - - 82 * - + 20
----
-1552

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL - 70 * + - COUNT ( * ) + 18 + - - 82 * - + 20
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL + SUM( DISTINCT + + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL + SUM ( DISTINCT + + 42 ) AS col1
----
42

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

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

query II rowsort
SELECT - 84 AS col2, NULLIF ( - 93, - 39 )
----
-84
-93

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

query I rowsort
SELECT 7 + - + 53
----
-46

query I rowsort
SELECT ALL - + 54 * - - 91 col0
----
-4914

query I rowsort
SELECT DISTINCT - 8 * - + 91
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL 90 * 38 * + COUNT( * )
----
3420

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL 90 * 38 * + COUNT ( * )
----
3420

query I rowsort
SELECT 15 col2
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-682
SELECT DISTINCT + 45 + 78 / - + COALESCE ( 40, 40 * + 81 ) - + 48 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT + 45 + 78 / - + COALESCE ( 40, 40 * + 81 ) - + 48 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 91 + + 15 - 37 AS col1
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT ALL + 27 + + 97 * - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) * - 61 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + 27 + + 97 * - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - 61 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 55 + - + 57
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT 82 DIV - 29 + 42
----
40

skipif mysql # not compatible
query I rowsort label-686
SELECT 82 / - 29 + 42
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT - 46 + - COUNT( + 96 ) + + COUNT( * ) * - - 64
----
17

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT - 46 + - COUNT ( + 96 ) + + COUNT ( * ) * - - 64
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT ALL + COUNT( * ) + + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL + COUNT ( * ) + + - 77
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT + ( 18 ) DIV + 71 - 89 - 33
----
-122

skipif mysql # not compatible
query I rowsort label-689
SELECT + ( 18 ) / + 71 - 89 - 33
----
-122

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 46, + 20 - + - ( + 11 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL - 83 * - COALESCE ( - - COUNT( + 17 ), 39 ) * + 62 * 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - 83 * - COALESCE ( - - COUNT ( + 17 ), 39 ) * + 62 * 0 * COUNT ( * )
----
0

query I rowsort
SELECT 53 + - 37
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + MAX( + - 13 ) * + - 82 * - 19 * - + 40 AS col0
----
810160

skipif mysql # not compatible
query I rowsort label-694
SELECT + MAX ( + - 13 ) * + - 82 * - 19 * - + 40 AS col0
----
810160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT CAST( NULL AS SIGNED ) - 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT CAST ( NULL AS INTEGER ) - 78 col2
----
NULL

query I rowsort
SELECT ALL - - 74
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT - NULLIF ( - - COUNT( * ), AVG ( + 32 ) * - - 74 * 21 ) * + ( - 59 ) + - 30 AS col0, + 40
----
29
40

skipif mysql # not compatible
query II rowsort label-697
SELECT - NULLIF ( - - COUNT ( * ), AVG ( + 32 ) * - - 74 * 21 ) * + ( - 59 ) + - 30 AS col0, + 40
----
29
40

query I rowsort
SELECT ALL - - 31 AS col0
----
31

query I rowsort
SELECT ALL + 99 * - 28 * - 64 AS col0
----
177408

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL - 88 * - COUNT( * ) * - 68 - - 42
----
-5942

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL - 88 * - COUNT ( * ) * - 68 - - 42
----
-5942

query I rowsort
SELECT - - 29 col2
----
29

query I rowsort
SELECT 32 + 60 AS col2
----
92

query I rowsort
SELECT ALL 76 * - 97
----
-7372

query I rowsort
SELECT 22 * - 81 * + + 46 col1
----
-81972

query I rowsort
SELECT - 64 * - 25
----
1600

query I rowsort
SELECT ALL 79 + + 98
----
177

query I rowsort
SELECT DISTINCT ( - 75 ) + - 84
----
-159

query II rowsort
SELECT ALL 23, 44 col2
----
23
44

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

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT 84 + COUNT ( * ) AS col0
----
85

query I rowsort
SELECT 48 + - 14 AS col1
----
34

query I rowsort
SELECT 83 - 83
----
0

query I rowsort
SELECT ALL 36 * - 50 AS col1
----
-1800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL - MIN( - 55 ) + 4 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL - MIN ( - 55 ) + 4 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL + MIN( DISTINCT - - 85 ) + - 41 + + - 58 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL + MIN ( DISTINCT - - 85 ) + - 41 + + - 58 AS col2
----
-14

query I rowsort
SELECT ALL - 54 col0
----
-54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-719
SELECT DISTINCT - 25 AS col1, - COUNT( * ) + - 32
----
-25
-33

skipif mysql # not compatible
query II rowsort label-719
SELECT DISTINCT - 25 AS col1, - COUNT ( * ) + - 32
----
-25
-33

query I rowsort
SELECT 99 * + + 35
----
3465

query I rowsort
SELECT 2 + - 96 + + - 8
----
-102

query I rowsort
SELECT 79 + 74 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT ( + ( - ( 35 ) ) ) DIV - + 57 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-723
SELECT ( + ( - ( 35 ) ) ) / - + 57 * 40 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT ALL + 44 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL + 44 / + 86
----
0

query I rowsort
SELECT - 5 * - 28 * + 64 + + - 78 AS col2
----
8882

onlyif mysql # aggregate syntax: 
query II rowsort label-726
SELECT 56, - MAX( - 84 ) * 18 * + 70 * - 35 AS col0
----
56
-3704400

skipif mysql # not compatible
query II rowsort label-726
SELECT 56, - MAX ( - 84 ) * 18 * + 70 * - 35 AS col0
----
56
-3704400

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT 74 * - 38 + - - COUNT( * ) + - + 55
----
-2866

skipif mysql # not compatible
query I rowsort label-727
SELECT 74 * - 38 + - - COUNT ( * ) + - + 55
----
-2866

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT DISTINCT + + 17 * + NULLIF ( - COUNT( * ), + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT + + 17 * + NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - - 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT + COUNT( * ) + - - 30 * - 57 AS col2
----
-1709

skipif mysql # not compatible
query I rowsort label-731
SELECT + COUNT ( * ) + - - 30 * - 57 AS col2
----
-1709

query I rowsort
SELECT ALL - + 79 * - + 56
----
4424

query I rowsort
SELECT ALL - 92 * - 73 AS col2
----
6716

query II rowsort
SELECT ALL + + 99, + 69 * + - 82 + - NULLIF ( - 63, + 2 ) AS col0
----
99
-5595

query I rowsort
SELECT + - 67 AS col2
----
-67

query II rowsort
SELECT - 21 * + ( 51 ) + - 34 + + 74 AS col1, - 84
----
-1031
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-737
SELECT COUNT( * ) * - 92 + COALESCE ( 21, + 32 / - 48 / 61 - - 42, - 7 * + - NULLIF ( - 11, 4 ), 83, + COALESCE ( + + COUNT( * ), - + 73 ) * - 80 ) - CAST( NULL AS SIGNED ), + 21 + + - COUNT( * ) * - 1 - 11 AS col1
----
NULL
11

skipif mysql # not compatible
query II rowsort label-737
SELECT COUNT ( * ) * - 92 + COALESCE ( 21, + 32 / - 48 / 61 - - 42, - 7 * + - NULLIF ( - 11, 4 ), 83, + COALESCE ( + + COUNT ( * ), - + 73 ) * - 80 ) - CAST ( NULL AS INTEGER ), + 21 + + - COUNT ( * ) * - 1 - 11 AS col1
----
NULL
11

query I rowsort
SELECT - 47 col0
----
-47

query II rowsort
SELECT ALL + - 65 AS col0, + 34 AS col2
----
-65
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT - 48 DIV - 4 + - - 55 - 39 * COUNT( * ) * + 65 * 58 + 52 + 0
----
-146911

skipif mysql # not compatible
query I rowsort label-740
SELECT - 48 / - 4 + - - 55 - 39 * COUNT ( * ) * + 65 * 58 + 52 + 0
----
-146911

query I rowsort
SELECT + - 81 + - + 86
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT - COUNT( ALL 53 ) * + - ( 33 ) + - - 86
----
119

skipif mysql # not compatible
query I rowsort label-742
SELECT - COUNT ( ALL 53 ) * + - ( 33 ) + - - 86
----
119

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-744
SELECT - MAX( DISTINCT + + 77 ) * 10 + - 37, CAST( NULL AS SIGNED ) * - 82 / + - 23 + - COALESCE ( + - MAX( + 44 ), MIN( DISTINCT + 14 ) ) AS col1
----
-807
NULL

skipif mysql # not compatible
query II rowsort label-744
SELECT - MAX ( DISTINCT + + 77 ) * 10 + - 37, CAST ( NULL AS INTEGER ) * - 82 / + - 23 + - COALESCE ( + - MAX ( + 44 ), MIN ( DISTINCT + 14 ) ) AS col1
----
-807
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL + ( COALESCE ( + NULLIF ( + + 63, COUNT( * ) ), + - 36 ) ) + + 47 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + ( COALESCE ( + NULLIF ( + + 63, COUNT ( * ) ), + - 36 ) ) + + 47 AS col0
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT ALL - 27 + - 69 col2, ( - COUNT( * ) ) * 70
----
-96
-70

skipif mysql # not compatible
query II rowsort label-746
SELECT ALL - 27 + - 69 col2, ( - COUNT ( * ) ) * 70
----
-96
-70

query I rowsort
SELECT ALL 49 + - 7
----
42

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

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

query I rowsort
SELECT DISTINCT ( 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT - COUNT( * ) DIV COALESCE ( + + 44, 24 ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-750
SELECT - COUNT ( * ) / COALESCE ( + + 44, 24 ) * - + COUNT ( * )
----
0

query I rowsort
SELECT ALL 37 * + 61 * + 81
----
182817

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT 54 + - ( - 55 ) + 12 * + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT 54 + - ( - 55 ) + 12 * + COUNT ( * )
----
121

query II rowsort
SELECT 86 AS col1, - 8 AS col0
----
86
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL MAX( DISTINCT 95 ) + + 94 + - COUNT( * ) + 11 + - 29 * + 0 * - ( + 17 ) + + + 81 * + + 9 * + 27 * 1 AS col0
----
19882

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL MAX ( DISTINCT 95 ) + + 94 + - COUNT ( * ) + 11 + - 29 * + 0 * - ( + 17 ) + + + 81 * + + 9 * + 27 * 1 AS col0
----
19882

query I rowsort
SELECT + ( + + 97 ) * 79 + + 85 * + + 71 + 4 + + + 90
----
13792

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + MAX( DISTINCT 63 ) * + + 98
----
6174

skipif mysql # not compatible
query I rowsort label-758
SELECT + MAX ( DISTINCT 63 ) * + + 98
----
6174

onlyif mysql # aggregate syntax: 
query II rowsort label-759
SELECT ALL 44 AS col0, 78 * + CASE - 65 WHEN + SUM( DISTINCT - 69 ) THEN + + CASE + 59 WHEN 0 THEN NULL ELSE - 26 * + + 80 END END
----
44
NULL

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL 44 AS col0, 78 * + CASE - 65 WHEN + SUM ( DISTINCT - 69 ) THEN + + CASE + 59 WHEN 0 THEN NULL ELSE - 26 * + + 80 END END
----
44
NULL

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

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

query I rowsort
SELECT ALL + 29 - - ( COALESCE ( - 21, 32, - 21 ) ) + + ( + 44 ) col1
----
52

query I rowsort
SELECT + 41 * - NULLIF ( - - 74, - + 99 + - 92 ) AS col0
----
-3034

query II rowsort
SELECT ALL 55, ( + + 88 ) AS col2
----
55
88

onlyif mysql # DIV for integer division: 
query II rowsort label-764
SELECT ALL 10 AS col1, + 51 DIV 53 AS col1
----
10
0

skipif mysql # not compatible
query II rowsort label-764
SELECT ALL 10 AS col1, + 51 / 53 AS col1
----
10
0

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

skipif mysql # not compatible
query I rowsort label-765
SELECT ( + SUM ( + + 33 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT 20 DIV + + 80 + - 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-766
SELECT 20 / + + 80 + - 38 AS col2
----
-38

query II rowsort
SELECT DISTINCT + 60, 80 AS col1
----
60
80

query I rowsort
SELECT + - 93 * 1 AS col1
----
-93

query I rowsort
SELECT - - 87 * 3 + 6 - - 54 * - 74 AS col1
----
-3729

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + - NULLIF ( - 90, + + 28 * - 36 * + COUNT( ALL 20 ) * + + COUNT( * ) + SUM( - - 81 ) + 94 * 42 + 52 + - + 60 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-770
SELECT + - NULLIF ( - 90, + + 28 * - 36 * + COUNT ( ALL 20 ) * + + COUNT ( * ) + SUM ( - - 81 ) + 94 * 42 + 52 + - + 60 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL + + CASE + CASE - 40 WHEN - 52 THEN NULL ELSE - 22 END WHEN - + 27 THEN + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL + + CASE + CASE - 40 WHEN - 52 THEN NULL ELSE - 22 END WHEN - + 27 THEN + COUNT ( * ) END col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-773
SELECT - - 22 DIV + + 96 * - 94 - + COUNT( * ) - CASE - MIN( + 44 ) WHEN - 20 * - 95 + + 84 THEN - 13 WHEN + 33 THEN + ( - 36 ) ELSE + 73 END * - ( - CAST( - ( + 91 ) AS SIGNED ) )
----
6642

skipif mysql # not compatible
query I rowsort label-773
SELECT - - 22 / + + 96 * - 94 - + COUNT ( * ) - CASE - MIN ( + 44 ) WHEN - 20 * - 95 + + 84 THEN - 13 WHEN + 33 THEN + ( - 36 ) ELSE + 73 END * - ( - CAST ( - ( + 91 ) AS INTEGER ) )
----
6642

query I rowsort
SELECT ALL 9 * 96
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-775
SELECT NULLIF ( 21, - ( SUM( + - 1 ) ) DIV - 21 ) AS col2, 95 DIV 77 col1
----
21
1

skipif mysql # not compatible
query II rowsort label-775
SELECT NULLIF ( 21, - ( SUM ( + - 1 ) ) / - 21 ) AS col2, 95 / 77 col1
----
21
1

query I rowsort
SELECT + + 66 * 22 col0
----
1452

query I rowsort
SELECT + - 91 * - - 57 AS col0
----
-5187

query I rowsort
SELECT + COALESCE ( - - 96, + 62 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL - + 95 * + - MIN( ALL 87 ) + + 43
----
8308

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - + 95 * + - MIN ( ALL 87 ) + + 43
----
8308

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT - + 11 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT - + 11 / + 44
----
0

query I rowsort
SELECT ALL 47 * + - 52 + ( 30 ) + 81 AS col0
----
-2333

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

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

query II rowsort
SELECT + + 85 AS col0, 55 * 43 + - 59 + - 58
----
85
2248

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL COUNT( - 6 ) * 81 + - 19 * + 26 AS col1
----
-413

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL COUNT ( - 6 ) * 81 + - 19 * + 26 AS col1
----
-413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-786
SELECT - CASE + 97 WHEN + CAST( - - 31 AS SIGNED ) THEN - + CAST( + - 93 AS SIGNED ) * - 54 END * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT - CASE + 97 WHEN + CAST ( - - 31 AS INTEGER ) THEN - + CAST ( + - 93 AS INTEGER ) * - 54 END * - 31
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - - 11
----
946

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT 95 * - + NULLIF ( - 59, + + MIN( ALL + - 96 ) ) * - - CASE - COUNT( * ) WHEN + 78 * MIN( DISTINCT 80 ) * - 13 THEN - 69 + - COUNT( * ) - - 75 * + 71 * + - 3 / + ( - + AVG ( - + 23 ) ) + - COUNT( * ) * - 53 - - 94 + + - 78 * - 60 + - - ( - + 97 ) + 7 * - 87 * + + 14 * + 39 END + - 59 - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT 95 * - + NULLIF ( - 59, + + MIN ( ALL + - 96 ) ) * - - CASE - COUNT ( * ) WHEN + 78 * MIN ( DISTINCT 80 ) * - 13 THEN - 69 + - COUNT ( * ) - - 75 * + 71 * + - 3 / + ( - + AVG ( - + 23 ) ) + - COUNT ( * ) * - 53 - - 94 + + - 78 * - 60 + - - ( - + 97 ) + 7 * - 87 * + + 14 * + 39 END + - 59 - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT - COUNT( ALL 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-790
SELECT - COUNT ( ALL 54 )
----
-1

query I rowsort
SELECT ALL 93 * - 16 + 95
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - NULLIF ( ( + 12 ), - COUNT( * ) * + - 90 + - + 20 )
----
-12

skipif mysql # not compatible
query I rowsort label-792
SELECT - NULLIF ( ( + 12 ), - COUNT ( * ) * + - 90 + - + 20 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-793
SELECT ALL - COUNT( ALL 24 ) + - 15 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - COUNT ( ALL 24 ) + - 15 / - 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT DISTINCT ( + MIN( + - 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT ( + MIN ( + - 4 ) )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-795
SELECT DISTINCT + 42 DIV ( + CASE - 25 WHEN + 5 * 36 THEN - 7 + + AVG ( ALL - + 80 ) ELSE - COUNT( * ) END )
----
-42

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT + 42 / ( + CASE - 25 WHEN + 5 * 36 THEN - 7 + + AVG ( ALL - + 80 ) ELSE - COUNT ( * ) END )
----
-42

query I rowsort
SELECT ALL ( + - 12 ) * + 43 * 96 col2
----
-49536

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT + 41 DIV + - 2
----
-20

skipif mysql # not compatible
query I rowsort label-797
SELECT + 41 / + - 2
----
-20

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

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

query I rowsort
SELECT - NULLIF ( - 11, - + COALESCE ( - 94, + 18 * - 2 + + + 62 ) ) + + 6 + - 54
----
-37

query II rowsort
SELECT + 94 + - 34 col0, + 90
----
60
90

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT + 11 * 62 * COUNT( ALL 98 )
----
682

skipif mysql # not compatible
query I rowsort label-801
SELECT + 11 * 62 * COUNT ( ALL 98 )
----
682

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

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

query I rowsort
SELECT + 82 + + 87 AS col1
----
169

query I rowsort
SELECT DISTINCT + + 71 * + 88 * + - ( + - 81 ) AS col1
----
506088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-805
SELECT - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV + 53 + + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-805
SELECT - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / + 53 + + - 15
----
-15

query I rowsort
SELECT DISTINCT - - 2
----
2

query II rowsort
SELECT DISTINCT + ( - 13 ) + 50 + + 64 + + 95 AS col2, 87 * + 4
----
196
348

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT 38 + + 8 DIV + + 65 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-808
SELECT 38 + + 8 / + + 65 AS col0
----
38

query I rowsort
SELECT + + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT SUM( - 89 ) + - 33 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-810
SELECT SUM ( - 89 ) + - 33 AS col1
----
-122

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

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

query I rowsort
SELECT 28 * - 82 AS col2
----
-2296

query I rowsort
SELECT DISTINCT 43 + - ( - - 31 )
----
12

query I rowsort
SELECT ALL 70 + 45
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT 7 + CASE NULLIF ( 98, - 65 ) WHEN - CAST( NULL AS SIGNED ) THEN - 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT 7 + CASE NULLIF ( 98, - 65 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 13 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 83 AS col0
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT + - ( + COUNT( * ) ) + + - 20 col0
----
-21

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + - ( + COUNT ( * ) ) + + - 20 col0
----
-21

query I rowsort
SELECT ALL - 93 + - + 33 AS col0
----
-126

query I rowsort
SELECT + 10 - 87 col1
----
-77

query I rowsort
SELECT DISTINCT 79 + - - 48 + + 20
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT DISTINCT - COUNT( * ) AS col1, - 19 AS col2
----
-1
-19

skipif mysql # not compatible
query II rowsort label-822
SELECT DISTINCT - COUNT ( * ) AS col1, - 19 AS col2
----
-1
-19

query I rowsort
SELECT ALL - 27 - + - 88 AS col1
----
61

query I rowsort
SELECT 64 * 59 AS col0
----
3776

query I rowsort
SELECT 2 + COALESCE ( - 5, + 25 ) AS col2
----
-3

query I rowsort
SELECT ALL 78 - - - 0 AS col0
----
78

query I rowsort
SELECT ALL + 37 * + 87 AS col0
----
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL + COUNT( * ) - - - 41 * - - COALESCE ( COUNT( * ), 65 + 28 * 55 )
----
-40

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + COUNT ( * ) - - - 41 * - - COALESCE ( COUNT ( * ), 65 + 28 * 55 )
----
-40

query I rowsort
SELECT DISTINCT + 56 * 79 * + 84 AS col1
----
371616

query II rowsort
SELECT - 41 AS col2, - 43
----
-41
-43

query I rowsort
SELECT 11 * COALESCE ( - 21, - 1 - - 36 ) AS col2
----
-231

query I rowsort
SELECT ALL + 38 * - 23 * 76 * + + 41
----
-2723384

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT 97 AS col0, SUM( + 67 ) AS col2
----
97
67

skipif mysql # not compatible
query II rowsort label-833
SELECT 97 AS col0, SUM ( + 67 ) AS col2
----
97
67

query II rowsort
SELECT 89 * 13 * - 35 AS col2, + CASE - 72 WHEN - 40 THEN + + 60 END * + 94 + 56
----
-40495
NULL

query II rowsort
SELECT - 49 AS col2, 21
----
-49
21

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

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

query I rowsort
SELECT 37 * - + 86
----
-3182

query I rowsort
SELECT DISTINCT 11 AS col2
----
11

query I rowsort
SELECT - + NULLIF ( - 2, - 48 / - - 34 - + 28 - + - 75 + - - 43 ) AS col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL - 15 * + 65 + + - MAX( DISTINCT 97 ) * 83 AS col2
----
-9026

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL - 15 * + 65 + + - MAX ( DISTINCT 97 ) * 83 AS col2
----
-9026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT ALL - 4 DIV + - ( 48 ) - + COUNT( DISTINCT - - NULLIF ( + 89, - 50 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - 4 / + - ( 48 ) - + COUNT ( DISTINCT - - NULLIF ( + 89, - 50 ) ) AS col2
----
-1

query I rowsort
SELECT - ( 79 ) AS col0
----
-79

query I rowsort
SELECT ALL - + 6 + - 37
----
-43

query II rowsort
SELECT 22 + + 78 * + 65, + 77 + + COALESCE ( - - 5, - 63 ) + - + 84 AS col1
----
5092
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT 65 * ( + - 60 ) + - CAST( + 39 AS SIGNED ) + 12 - - 1
----
-3926

skipif mysql # not compatible
query I rowsort label-846
SELECT 65 * ( + - 60 ) + - CAST ( + 39 AS INTEGER ) + 12 - - 1
----
-3926

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT ( + + COALESCE ( - ( - 41 ), + ( - + 95 ) + + - 72 * + + 14, - COUNT( * ) * + 50 * - + 92 ) ) AS col2, + SUM( - 82 ) AS col2
----
41
-82

skipif mysql # not compatible
query II rowsort label-847
SELECT ( + + COALESCE ( - ( - 41 ), + ( - + 95 ) + + - 72 * + + 14, - COUNT ( * ) * + 50 * - + 92 ) ) AS col2, + SUM ( - 82 ) AS col2
----
41
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-848
SELECT 0 DIV + CAST( - + 29 AS SIGNED ) + + 79 DIV - 67 * - - COALESCE ( COUNT( DISTINCT - 77 ), + - 25 * + 65 + 50 + - COUNT( * ) + 84 ) + + 73 - + 20 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-848
SELECT 0 / + CAST ( - + 29 AS INTEGER ) + + 79 / - 67 * - - COALESCE ( COUNT ( DISTINCT - 77 ), + - 25 * + 65 + 50 + - COUNT ( * ) + 84 ) + + 73 - + 20 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT ALL + 89 DIV + + 62 col1
----
1

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL + 89 / + + 62 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT + COALESCE ( 80, COUNT( * ) ) DIV + 33 col2
----
2

skipif mysql # not compatible
query I rowsort label-850
SELECT + COALESCE ( 80, COUNT ( * ) ) / + 33 col2
----
2

query I rowsort
SELECT + - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL - COALESCE ( - COUNT( * ), - COUNT( * ) + - 92 + - 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - COALESCE ( - COUNT ( * ), - COUNT ( * ) + - 92 + - 71 ) AS col0
----
1

query I rowsort
SELECT - ( 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-854
SELECT + 22, + 19 * - CAST( 68 AS SIGNED ) + - ( ( + - 53 ) ) col0
----
22
-1239

skipif mysql # not compatible
query II rowsort label-854
SELECT + 22, + 19 * - CAST ( 68 AS INTEGER ) + - ( ( + - 53 ) ) col0
----
22
-1239

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT - MAX( ALL 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - MAX ( ALL 51 )
----
-51

query I rowsort
SELECT DISTINCT ( - 63 ) - + 32
----
-95

query I rowsort
SELECT ALL 73 * 26 AS col2
----
1898

query II rowsort
SELECT 67 * - - 37, + 70 AS col1
----
2479
70

query II rowsort
SELECT DISTINCT - ( - 98 ) AS col1, 38 AS col0
----
98
38

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

skipif mysql # not compatible
query I rowsort label-860
SELECT + COUNT ( ALL 72 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT ALL 37 * COUNT( * ), + 33 * ( - 89 ) AS col2
----
37
-2937

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL 37 * COUNT ( * ), + 33 * ( - 89 ) AS col2
----
37
-2937

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-863
SELECT ( + 22 ) + + - 54 - - NULLIF ( + 28, + 18 ) - + + 6, CASE - 76 WHEN - + 33 THEN 68 + - 54 WHEN CAST( - + 78 AS SIGNED ) * + - 30 THEN + 20 / 22 * - ( - - COUNT( * ) ) + - 38 ELSE NULL END + 32 AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-863
SELECT ( + 22 ) + + - 54 - - NULLIF ( + 28, + 18 ) - + + 6, CASE - 76 WHEN - + 33 THEN 68 + - 54 WHEN CAST ( - + 78 AS INTEGER ) * + - 30 THEN + 20 / 22 * - ( - - COUNT ( * ) ) + - 38 ELSE NULL END + 32 AS col0
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT - COUNT( - 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-864
SELECT - COUNT ( - 94 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT 37 * - SUM( + 79 ) AS col0
----
-2923

skipif mysql # not compatible
query I rowsort label-865
SELECT 37 * - SUM ( + 79 ) AS col0
----
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL - COALESCE ( - COUNT( * ), - 21, - 4 ) + 45 + 64 col1
----
110

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - COALESCE ( - COUNT ( * ), - 21, - 4 ) + 45 + 64 col1
----
110

query I rowsort
SELECT - 35 + - 98
----
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-868
SELECT DISTINCT CASE + 98 WHEN + 6 + 13 THEN - - 1 WHEN - 10 * - + 2 * + 3 THEN + CAST( NULL AS SIGNED ) ELSE NULL END, CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT CASE + 98 WHEN + 6 + 13 THEN - - 1 WHEN - 10 * - + 2 * + 3 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END, CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL + 75 + + SUM( ALL 51 ) * ( + ( + + 42 ) ) * - COUNT( * ) AS col2
----
-2067

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + 75 + + SUM ( ALL 51 ) * ( + ( + + 42 ) ) * - COUNT ( * ) AS col2
----
-2067

query I rowsort
SELECT - 19 + - + 63 AS col1
----
-82

query I rowsort
SELECT - - 90 col0
----
90

query I rowsort
SELECT - CASE - + 85 WHEN - 85 + 83 THEN - 87 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT + 76 * + NULLIF ( + COUNT( * ), - - 94 )
----
76

skipif mysql # not compatible
query I rowsort label-873
SELECT + 76 * + NULLIF ( + COUNT ( * ), - - 94 )
----
76

query I rowsort
SELECT - 46 + - - 75 AS col2
----
29

query II rowsort
SELECT ALL - 9 + + + 75 AS col1, ( 21 ) AS col1
----
66
21

query I rowsort
SELECT - - 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT DISTINCT COUNT( 92 ) + + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT COUNT ( 92 ) + + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT NULLIF ( + CASE 61 WHEN + COALESCE ( COALESCE ( COUNT( ALL 40 ), + ( 38 ) ), 14 ) * - + 11 * - - ( + + 89 ) THEN + 88 END, + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT NULLIF ( + CASE 61 WHEN + COALESCE ( COALESCE ( COUNT ( ALL 40 ), + ( 38 ) ), 14 ) * - + 11 * - - ( + + 89 ) THEN + 88 END, + - 70 )
----
NULL

query I rowsort
SELECT - - 54 + + 2 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT ALL - - SUM( ALL + + 61 ) + + + 42 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - - SUM ( ALL + + 61 ) + + + 42 AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT + 82 DIV COUNT( * ) + COUNT( * ) + + 93 + - 49 - 82
----
45

skipif mysql # not compatible
query I rowsort label-881
SELECT + 82 / COUNT ( * ) + COUNT ( * ) + + 93 + - 49 - 82
----
45

query I rowsort
SELECT ALL + - 65 AS col2
----
-65

query I rowsort
SELECT - 74 + - 18 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT - 79 DIV + + 69
----
-1

skipif mysql # not compatible
query I rowsort label-884
SELECT - 79 / + + 69
----
-1

query I rowsort
SELECT - ( - - NULLIF ( + 67, - - 24 * - 73 ) ) * - 6
----
402

query I rowsort
SELECT + - 85 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT + + COUNT( * ) * + + 18 + - 88 + - + 61 * NULLIF ( + COUNT( * ), + COUNT( * ) * ( - 32 ) ) + + + 93 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-887
SELECT + + COUNT ( * ) * + + 18 + - 88 + - + 61 * NULLIF ( + COUNT ( * ), + COUNT ( * ) * ( - 32 ) ) + + + 93 AS col0
----
-38

query I rowsort
SELECT ALL 86 * - + 26 * 4 - - 85 - + ( - 24 ) AS col0
----
-8835

query I rowsort
SELECT - - 27 * - 17 AS col0
----
-459

query I rowsort
SELECT DISTINCT + - 89 AS col1
----
-89

query I rowsort
SELECT - 72 + - 30 AS col2
----
-102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + NULLIF ( + - COUNT( * ), + COALESCE ( - AVG ( DISTINCT + 54 ), + 64 + - 55 / - 26 * - 43 * 17 * + 96 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + NULLIF ( + - COUNT ( * ), + COALESCE ( - AVG ( DISTINCT + 54 ), + 64 + - 55 / - 26 * - 43 * 17 * + 96 ) ) AS col0
----
-1

query I rowsort
SELECT + ( + + 86 ) + ( + 58 ) * - 54 AS col1
----
-3046

query I rowsort
SELECT NULLIF ( + 37, - 50 )
----
37

query I rowsort
SELECT CASE - + 50 WHEN - 11 THEN NULLIF ( 49, - AVG ( + 53 ) * + 92 + + 61 - - 99 ) * + CASE - 16 WHEN - 66 + + 16 THEN NULL WHEN + 44 THEN NULL ELSE 60 END END
----
NULL

query I rowsort
SELECT COALESCE ( - - 76, - + 26 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT MAX( - - NULLIF ( - + 69, 85 + + - 83 + - COALESCE ( + - 29, + + ( - 18 ), + 16 ) ) ), + 91 + - 55 * + 82 + - CASE + - 54 WHEN COALESCE ( + 29, 66 * + 88 + - + 30, + + AVG ( DISTINCT - 73 ) * + 55 + AVG ( + ( - 28 ) ) + 76 - 22 ) * + 61 + - 15 / + + 50 + COUNT( * ) * SUM( + 65 ) - 96 THEN + 28 ELSE - - 83 END - + - COUNT( * ) - + 91 * + 93 AS col2
----
-69
-12964

skipif mysql # not compatible
query II rowsort label-898
SELECT MAX ( - - NULLIF ( - + 69, 85 + + - 83 + - COALESCE ( + - 29, + + ( - 18 ), + 16 ) ) ), + 91 + - 55 * + 82 + - CASE + - 54 WHEN COALESCE ( + 29, 66 * + 88 + - + 30, + + AVG ( DISTINCT - 73 ) * + 55 + AVG ( + ( - 28 ) ) + 76 - 22 ) * + 61 + - 15 / + + 50 + COUNT ( * ) * SUM ( + 65 ) - 96 THEN + 28 ELSE - - 83 END - + - COUNT ( * ) - + 91 * + 93 AS col2
----
-69
-12964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT - SUM( + NULLIF ( + - 24, + CAST( NULL AS SIGNED ) + CASE WHEN NULL IS NOT NULL THEN - 52 ELSE NULL END - + - 42 ) ) * + SUM( DISTINCT - - 96 ) + COUNT( * ) AS col2
----
2305

skipif mysql # not compatible
query I rowsort label-899
SELECT - SUM ( + NULLIF ( + - 24, + CAST ( NULL AS INTEGER ) + CASE WHEN NULL IS NOT NULL THEN - 52 ELSE NULL END - + - 42 ) ) * + SUM ( DISTINCT - - 96 ) + COUNT ( * ) AS col2
----
2305

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT + 95 + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-900
SELECT + 95 + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT + CASE + COUNT( * ) WHEN 57 * - 21 THEN NULL WHEN + 59 THEN 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT + CASE + COUNT ( * ) WHEN 57 * - 21 THEN NULL WHEN + 59 THEN 38 END AS col2
----
NULL

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

query II rowsort
SELECT ALL + ( + ( + NULLIF ( - 69, + 5 / - - 26 ) ) ) * - + 91 * + 73 + 33 + - + 84 AS col0, + 47
----
458316
47

query I rowsort
SELECT + 59 * + 81 AS col0
----
4779

query II rowsort
SELECT DISTINCT 1 AS col2, - 37 * + ( + 82 )
----
1
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT DISTINCT COUNT( - 64 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-906
SELECT DISTINCT COUNT ( - 64 ) + + COUNT ( * )
----
2

query I rowsort
SELECT ALL 47 + - 2
----
45

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

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

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

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

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

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

query I rowsort
SELECT + 29 * + 91
----
2639

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

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - COUNT ( * ) + 12 AS col1
----
11

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

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

query I rowsort
SELECT + + 33 * - 80 AS col0
----
-2640

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT DISTINCT 9 DIV 38 - COUNT( * ) + + 87 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT 9 / 38 - COUNT ( * ) + + 87 AS col0
----
86

query I rowsort
SELECT ALL - 63 + 77 col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-918
SELECT ALL + + 38 * COALESCE ( + 41, + - CAST( MIN( DISTINCT + - 77 ) AS SIGNED ), - + 3 DIV COUNT( * ) * - 16 ) AS col2
----
1558

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL + + 38 * COALESCE ( + 41, + - CAST ( MIN ( DISTINCT + - 77 ) AS INTEGER ), - + 3 / COUNT ( * ) * - 16 ) AS col2
----
1558

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT + + 83 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-919
SELECT + + 83 / + 41
----
2

query I rowsort
SELECT + 6 * - + 28
----
-168

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

query II rowsort
SELECT - 33 AS col0, + 43 AS col2
----
-33
43

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - + NULLIF ( + - COUNT( * ), - 72 ) * - 95 * + 63 * - - 38 AS col0
----
-227430

skipif mysql # not compatible
query I rowsort label-923
SELECT - + NULLIF ( + - COUNT ( * ), - 72 ) * - 95 * + 63 * - - 38 AS col0
----
-227430

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT + 17 / - 3 + + CAST( - 66 AS SIGNED ) / 95 - NULLIF ( - 98, - 40 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT + 17 / - 3 + + CAST ( - 66 AS INTEGER ) / 95 - NULLIF ( - 98, - 40 ) - - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + - 78
----
-78

query I rowsort
SELECT ALL + 20 AS col2
----
20

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

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

query I rowsort
SELECT ALL + 78 * - 43
----
-3354

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-931
SELECT CAST( NULL AS SIGNED ) / 90 + + 68 * CAST( NULL AS SIGNED ) * - 1 * + 50 + - 61 AS col0, + 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-931
SELECT CAST ( NULL AS INTEGER ) / 90 + + 68 * CAST ( NULL AS INTEGER ) * - 1 * + 50 + - 61 AS col0, + 70
----
NULL
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-932
SELECT CAST( NULL AS SIGNED ), MAX( - 66 ) * + 63 + COUNT( * ) * - 32 AS col1
----
NULL
-4190

skipif mysql # not compatible
query II rowsort label-932
SELECT CAST ( NULL AS INTEGER ), MAX ( - 66 ) * + 63 + COUNT ( * ) * - 32 AS col1
----
NULL
-4190

query I rowsort
SELECT ALL + CASE + 7 WHEN 50 * - 34 THEN + - 56 - + 94 * - + 36 WHEN + 0 * + 34 + 59 THEN + + ( 93 ) + + 24 END * + - 21 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT - CAST( + COALESCE ( - COALESCE ( - + COUNT( * ), - 74 ), - - 82 ) AS SIGNED ) DIV + COUNT( - 14 ) + + ( CAST( + 11 AS SIGNED ) )
----
10

skipif mysql # not compatible
query I rowsort label-934
SELECT - CAST ( + COALESCE ( - COALESCE ( - + COUNT ( * ), - 74 ), - - 82 ) AS INTEGER ) / + COUNT ( - 14 ) + + ( CAST ( + 11 AS INTEGER ) )
----
10

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

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

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

query I rowsort
SELECT ALL + 36 * + NULLIF ( + 99, + + 73 ) + - - 69 + - 42 + - 77 * - 77 + + - 24 - - 9 + + - NULLIF ( 89, + 14 )
----
9416

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT ALL COUNT( * ) * - - 68 + + - 59 - + + 34
----
-25

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL COUNT ( * ) * - - 68 + + - 59 - + + 34
----
-25

query I rowsort
SELECT ALL + 79 * + 4 AS col2
----
316

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-941
SELECT ALL CAST( - - 62 AS SIGNED ) DIV - COALESCE ( - - 49, 62 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL CAST ( - - 62 AS INTEGER ) / - COALESCE ( - - 49, 62 ) + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT DISTINCT - CAST( COALESCE ( ( - + 62 ), + 0 - + - COUNT( DISTINCT 89 ) + + NULLIF ( - + COUNT( * ), 44 ) ) AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - CAST ( COALESCE ( ( - + 62 ), + 0 - + - COUNT ( DISTINCT 89 ) + + NULLIF ( - + COUNT ( * ), 44 ) ) AS INTEGER )
----
62

query I rowsort
SELECT ALL - 7 + - 17 AS col0
----
-24

query I rowsort
SELECT 7 + - 95 AS col0
----
-88

query I rowsort
SELECT 43 - - + 58
----
101

query II rowsort
SELECT ALL 5 AS col2, + 58 col1
----
5
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-947
SELECT - - COUNT( * ), 20 - 73 * + + 0 * + - 73 * 54 + + 84 + - 1 * 39 * - ( + CASE 42 WHEN + + COUNT( * ) THEN - + 97 - - CAST( NULL AS SIGNED ) * - - COUNT( * ) END ) * + 84 - 56 - + 36 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-947
SELECT - - COUNT ( * ), 20 - 73 * + + 0 * + - 73 * 54 + + 84 + - 1 * 39 * - ( + CASE 42 WHEN + + COUNT ( * ) THEN - + 97 - - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) END ) * + 84 - 56 - + 36 AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT ALL 98 + 7 DIV 94
----
98

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL 98 + 7 / 94
----
98

query I rowsort
SELECT 51 + 98 * - + 14 AS col1
----
-1321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT ALL + SUM( ALL CAST( NULL AS SIGNED ) ) / - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL + SUM ( ALL CAST ( NULL AS INTEGER ) ) / - 77
----
NULL

query I rowsort
SELECT 97 + - 33 AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT DISTINCT + 71 col2, COUNT( * ) + 92 AS col2
----
71
93

skipif mysql # not compatible
query II rowsort label-952
SELECT DISTINCT + 71 col2, COUNT ( * ) + 92 AS col2
----
71
93

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

skipif mysql # not compatible
query I rowsort label-953
SELECT + COUNT ( * ) * - 18 + 25 AS col0
----
7

query I rowsort
SELECT 89 + + ( 47 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT COUNT( + ( - 43 ) ) - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT COUNT ( + ( - 43 ) ) - 49 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT MAX( ALL + 70 ) + + SUM( DISTINCT + 72 ) AS col1, - 62
----
142
-62

skipif mysql # not compatible
query II rowsort label-956
SELECT MAX ( ALL + 70 ) + + SUM ( DISTINCT + 72 ) AS col1, - 62
----
142
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - SUM( ALL - 45 ) * 60
----
2700

skipif mysql # not compatible
query I rowsort label-957
SELECT - SUM ( ALL - 45 ) * 60
----
2700

query I rowsort
SELECT 97 * 64 + + 67
----
6275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-959
SELECT DISTINCT COUNT( * ) DIV - ( - 82 ) - 15 * 18 - - + 31 + + + ( SUM( 65 ) ) + + CASE - 77 WHEN - + 1 DIV 38 * + 19 THEN NULL WHEN + - 54 + 23 THEN + COUNT( * ) - - + 41 ELSE - + 77 * - + 3 + + 28 END
----
85

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT COUNT ( * ) / - ( - 82 ) - 15 * 18 - - + 31 + + + ( SUM ( 65 ) ) + + CASE - 77 WHEN - + 1 / 38 * + 19 THEN NULL WHEN + - 54 + 23 THEN + COUNT ( * ) - - + 41 ELSE - + 77 * - + 3 + + 28 END
----
85

query I rowsort
SELECT 99 * + 0 * ( - 38 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT ALL 27 DIV - MIN( + - 31 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL 27 / - MIN ( + - 31 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT ALL ( 45 ) DIV - 38 + - 12 + - + 18
----
-31

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL ( 45 ) / - 38 + - 12 + - + 18
----
-31

query II rowsort
SELECT - 13 AS col0, + 64 - + 11 AS col2
----
-13
53

query I rowsort
SELECT + 20 * - 56 * + + 14
----
-15680

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL - COUNT( - 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - COUNT ( - 78 ) AS col2
----
-1

query I rowsort
SELECT 73 + - 65 + - + 80 AS col2
----
-72

query I rowsort
SELECT + 67 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL COUNT( * ) * - 57 col2
----
-57

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL COUNT ( * ) * - 57 col2
----
-57

query I rowsort
SELECT + 97 * - 95 + + 45 * + - ( - 82 ) AS col2
----
-5525

query I rowsort
SELECT DISTINCT + 92 + + ( - 63 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL - 38 + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL - 38 + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT - ( COUNT( DISTINCT - 90 ) ) + - ( - COALESCE ( - 50, - 44 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT - ( COUNT ( DISTINCT - 90 ) ) + - ( - COALESCE ( - 50, - 44 ) ) AS col1
----
-51

query I rowsort
SELECT ALL + 48 * 6 * + - 72 AS col1
----
-20736

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT - 59 * - 7 + - 15 + COUNT( * )
----
399

skipif mysql # not compatible
query I rowsort label-974
SELECT - 59 * - 7 + - 15 + COUNT ( * )
----
399

query I rowsort
SELECT ALL ( 81 ) + + 21
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT - 21 + - + 99 + + MIN( DISTINCT + 33 ) + + 24 * + 56 + + NULLIF ( - + 11, - 69 ) DIV 2 * - 87 + + ( - 47 )
----
1645

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT - 21 + - + 99 + + MIN ( DISTINCT + 33 ) + + 24 * + 56 + + NULLIF ( - + 11, - 69 ) / 2 * - 87 + + ( - 47 )
----
1645

query I rowsort
SELECT 39 * - 77 * + 10 + - + 66 col0
----
-30096

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

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL - CAST ( NULL AS INTEGER ) * - 30
----
NULL

query I rowsort
SELECT 52 + 52
----
104

query I rowsort
SELECT DISTINCT - 30 * + 96 * - 47 AS col2
----
135360

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

skipif mysql # not compatible
query I rowsort label-981
SELECT - 52 / COUNT ( * ) * COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT DISTINCT - ( 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-983
SELECT DISTINCT + + 92 - - + COALESCE ( - COUNT( * ), + - COUNT( * ) DIV - + NULLIF ( + - 10, - CASE - - 83 WHEN + - 52 THEN NULL WHEN - - 40 THEN - 13 DIV + ( COUNT( * ) ) * + CAST( - 46 AS SIGNED ) ELSE NULL END * - MIN( 33 ) DIV COUNT( * ) DIV + COUNT( * ) + - CAST( NULL AS SIGNED ) - - - AVG ( ALL - + 45 ) - + CASE + ( 35 ) WHEN - - 5 THEN - 57 WHEN - + 91 THEN NULL WHEN + COUNT( * ) + 35 THEN + + COUNT( * ) END * - COUNT( * ) DIV - ( + CASE + 57 WHEN - 80 THEN NULL WHEN + 48 THEN - + 39 * + 76 - + - 86 - - + 92 * + 18 ELSE NULL END ) * - 71 ) * + + 49 + - NULLIF ( + + 18, - 86 ) + 56 * + 82 ) + ( COUNT( * ) ) * 28
----
119

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT + + 92 - - + COALESCE ( - COUNT ( * ), + - COUNT ( * ) / - + NULLIF ( + - 10, - CASE - - 83 WHEN + - 52 THEN NULL WHEN - - 40 THEN - 13 / + ( COUNT ( * ) ) * + CAST ( - 46 AS INTEGER ) ELSE NULL END * - MIN ( 33 ) / COUNT ( * ) / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - - AVG ( ALL - + 45 ) - + CASE + ( 35 ) WHEN - - 5 THEN - 57 WHEN - + 91 THEN NULL WHEN + COUNT ( * ) + 35 THEN + + COUNT ( * ) END * - COUNT ( * ) / - ( + CASE + 57 WHEN - 80 THEN NULL WHEN + 48 THEN - + 39 * + 76 - + - 86 - - + 92 * + 18 ELSE NULL END ) * - 71 ) * + + 49 + - NULLIF ( + + 18, - 86 ) + 56 * + 82 ) + ( COUNT ( * ) ) * 28
----
119

query I rowsort
SELECT - + 58 col1
----
-58

query II rowsort
SELECT ALL + ( 48 ) AS col2, 81 + + - 65 * 16 - ( + + 54 ) AS col2
----
48
-1013

query II rowsort
SELECT ALL 98 * + 40 col0, 98 AS col0
----
3920
98

query I rowsort
SELECT - + 68 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT 14 - - - MAX( + ( - 70 ) )
----
84

skipif mysql # not compatible
query I rowsort label-988
SELECT 14 - - - MAX ( + ( - 70 ) )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT DISTINCT + ( - CAST( - + 61 AS SIGNED ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT + ( - CAST ( - + 61 AS INTEGER ) ) AS col0
----
61

query I rowsort
SELECT ALL ( + 6 )
----
6

query I rowsort
SELECT 91 * - ( - 24 ) * - 37
----
-80808

query I rowsort
SELECT DISTINCT - NULLIF ( + + 59, 4 - - 13 ) * - COALESCE ( + - 44, - 68 )
----
-2596

onlyif mysql # DIV for integer division: 
query I rowsort label-993
SELECT 83 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-993
SELECT 83 / + 56
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - MAX( ALL + 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-995
SELECT - MAX ( ALL + 68 ) AS col2
----
-68

query I rowsort
SELECT ALL - 98 * 51 + - 83 * - 87 AS col1
----
2223

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

skipif mysql # not compatible
query I rowsort label-997
SELECT + 83 / COUNT ( * )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-998
SELECT - 43 DIV - - COUNT( * ) + 7 + 60
----
24

skipif mysql # not compatible
query I rowsort label-998
SELECT - 43 / - - COUNT ( * ) + 7 + 60
----
24

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

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

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

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + 21 * + + COUNT ( * ) + - 20 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - 82 * + + 11 + - - SUM( + 80 ) AS col1
----
-822

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - 82 * + + 11 + - - SUM ( + 80 ) AS col1
----
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT CASE 58 WHEN 5 THEN + + 37 WHEN + 6 THEN NULL WHEN - COUNT( * ) / + - 31 * SUM( DISTINCT 49 ) + + + 95 + 46 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT CASE 58 WHEN 5 THEN + + 37 WHEN + 6 THEN NULL WHEN - COUNT ( * ) / + - 31 * SUM ( DISTINCT 49 ) + + + 95 + 46 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 24 * + 59 col2
----
1416

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT + COUNT( * ) * + 64 * 46
----
2944

skipif mysql # not compatible
query I rowsort label-1004
SELECT + COUNT ( * ) * + 64 * 46
----
2944

query II rowsort
SELECT + NULLIF ( - 82, + 22 ), 39 AS col0
----
-82
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT COUNT( - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-1006
SELECT COUNT ( - 91 )
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1008
SELECT ALL + 97 AS col1, 81 * + NULLIF ( CAST( NULL AS SIGNED ), 86 ) - + 85
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL + 97 AS col1, 81 * + NULLIF ( CAST ( NULL AS INTEGER ), 86 ) - + 85
----
97
NULL

query I rowsort
SELECT + 94 - - + 12 AS col2
----
106

query I rowsort
SELECT DISTINCT 99 * + + 67 col0
----
6633

query I rowsort
SELECT + 28 * - 73 * - - 24 * 26
----
-1275456

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT DISTINCT + - COUNT( * ), + 9 AS col2
----
-1
9

skipif mysql # not compatible
query II rowsort label-1012
SELECT DISTINCT + - COUNT ( * ), + 9 AS col2
----
-1
9

query I rowsort
SELECT - 17 col0
----
-17

query I rowsort
SELECT DISTINCT 52 * + 46 - + 55 AS col0
----
2337

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + 16 + + + MIN( ALL - 18 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 16 + + + MIN ( ALL - 18 ) AS col1
----
-2

query II rowsort
SELECT ALL + 16 AS col1, 85 + 66
----
16
151

query I rowsort
SELECT - 13 * - + 36 * - ( - - 66 )
----
-30888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( + - 30 ) + + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( + - 30 ) + + 76 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 38 * - 12 AS col1
----
456

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1024
SELECT DISTINCT - - ( + ( 45 ) ) + + 28 AS col0, + CAST( NULL AS SIGNED ) col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT - - ( + ( 45 ) ) + + 28 AS col0, + CAST ( NULL AS INTEGER ) col0
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT - CASE + ( - 26 ) WHEN + CAST( NULL AS SIGNED ) THEN - 75 * ( - SUM( ALL CAST( ( - - 4 ) AS SIGNED ) ) ) * - 34 ELSE 30 + - COALESCE ( 82, - - 69 ) END * - 56 AS col0
----
-2912

skipif mysql # not compatible
query I rowsort label-1025
SELECT - CASE + ( - 26 ) WHEN + CAST ( NULL AS INTEGER ) THEN - 75 * ( - SUM ( ALL CAST ( ( - - 4 ) AS INTEGER ) ) ) * - 34 ELSE 30 + - COALESCE ( 82, - - 69 ) END * - 56 AS col0
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + 29 + - MIN( - + 34 )
----
63

skipif mysql # not compatible
query I rowsort label-1026
SELECT + 29 + - MIN ( - + 34 )
----
63

query I rowsort
SELECT + 55 + - 78 + + + 76
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + COUNT( * ) + + 57 * - - 5 AS col2
----
286

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + COUNT ( * ) + + 57 * - - 5 AS col2
----
286

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL 54 * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL 54 * - COUNT ( * )
----
-54

query I rowsort
SELECT DISTINCT ( 4 ) + - 90
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1032
SELECT ALL + 20 + COUNT( * ) + 26 * 56 * - 72 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + 20 + COUNT ( * ) + 26 * 56 * - 72 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT - MAX( 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1033
SELECT - MAX ( 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1034
SELECT DISTINCT - COUNT( * ) DIV 14 + 59 * + CAST( + 93 AS SIGNED ) + - CASE + 44 WHEN - 78 * COUNT( * ) THEN NULL ELSE + MIN( - 90 ) - 37 + + 97 - 58 + - 53 + - - CAST( 19 AS SIGNED ) END * - + 32 + 35, ( + + 78 ) AS col2
----
1618
78

skipif mysql # not compatible
query II rowsort label-1034
SELECT DISTINCT - COUNT ( * ) / 14 + 59 * + CAST ( + 93 AS INTEGER ) + - CASE + 44 WHEN - 78 * COUNT ( * ) THEN NULL ELSE + MIN ( - 90 ) - 37 + + 97 - 58 + - 53 + - - CAST ( 19 AS INTEGER ) END * - + 32 + 35, ( + + 78 ) AS col2
----
1618
78

query I rowsort
SELECT + 12 * - + 6 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL - 48 * - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - 48 * - COUNT ( * ) AS col2
----
48

query I rowsort
SELECT - 24 + + 66
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT CAST( + 17 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1038
SELECT CAST ( + 17 AS INTEGER ) AS col2
----
17

query I rowsort
SELECT DISTINCT + 85 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1040
SELECT DISTINCT - ( 36 ) DIV + 92 - + 67 DIV - 58 AS col1, 55 * - - 96 * - COUNT( * )
----
1
-5280

skipif mysql # not compatible
query II rowsort label-1040
SELECT DISTINCT - ( 36 ) / + 92 - + 67 / - 58 AS col1, 55 * - - 96 * - COUNT ( * )
----
1
-5280

query II rowsort
SELECT - 76 * + 71 * - 82 * + - 52 AS col1, - 10 - 67 AS col2
----
-23008544
-77

query I rowsort
SELECT ( - - 72 ) col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1043
SELECT ALL 50 / + 84 / + 75 - CAST( NULL AS SIGNED ) AS col0, 54 * + - 75
----
NULL
-4050

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL 50 / + 84 / + 75 - CAST ( NULL AS INTEGER ) AS col0, 54 * + - 75
----
NULL
-4050

query I rowsort
SELECT ALL 40 * + - 67 AS col2
----
-2680

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT + COUNT( * ) + - CASE + + 60 WHEN - + 79 + - 83 THEN - 57 + + CASE 41 WHEN + 90 THEN - + 84 + - 65 * - 80 ELSE - 52 * 29 / - 8 END * + 27 - + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT + COUNT ( * ) + - CASE + + 60 WHEN - + 79 + - 83 THEN - 57 + + CASE 41 WHEN + 90 THEN - + 84 + - 65 * - 80 ELSE - 52 * 29 / - 8 END * + 27 - + COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1046
SELECT + 61 DIV + + SUM( 97 ) * 54
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT + 61 / + + SUM ( 97 ) * 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT + CASE 67 WHEN + 89 * + 59 + - 74 - - - SUM( - - ( + 50 ) ) * 5 * - 17 THEN - 48 + - 43 / - 16 * + COUNT( * ) + - 92 WHEN 51 * + - COUNT( * ) THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT + CASE 67 WHEN + 89 * + 59 + - 74 - - - SUM ( - - ( + 50 ) ) * 5 * - 17 THEN - 48 + - 43 / - 16 * + COUNT ( * ) + - 92 WHEN 51 * + - COUNT ( * ) THEN + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT + - ( ( - + 30 ) ) + + 74 - - + 7 AS col2
----
111

query II rowsort
SELECT ALL - 53 * - - 74, ( + 90 ) * + + 3 - + 38 + - 70 * - 83 col0
----
-3922
6042

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT - ( + SUM( ALL ( + 83 ) ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1050
SELECT - ( + SUM ( ALL ( + 83 ) ) ) AS col0
----
-83

query I rowsort
SELECT + - 74
----
-74

query II rowsort
SELECT + + 15 * 48 AS col1, - 13 AS col1
----
720
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1053
SELECT + + MIN( DISTINCT + 61 ), 93 - - COUNT( * ) + 56 / COUNT( * ) / - CAST( NULL AS DECIMAL ) + - CAST( 84 AS SIGNED ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1053
SELECT + + MIN ( DISTINCT + 61 ), 93 - - COUNT ( * ) + 56 / COUNT ( * ) / - CAST ( NULL AS REAL ) + - CAST ( 84 AS INTEGER ) AS col0
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT + + 99 * + COUNT( * ) + + + 70 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + + 99 * + COUNT ( * ) + + + 70 AS col2
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1055
SELECT + 77 * 83 AS col0, ( - - 5 ) * + NULLIF ( + - 58, - 26 ) / - - ( + AVG ( ALL - CAST( NULL AS SIGNED ) ) ) + COUNT( DISTINCT + 79 ) * - 4 * - 6 + 14 + 82 * - 8 * - 20 * + 64 + - 99 + - - CASE - + ( 59 ) WHEN - 38 THEN + + 41 * + 59 WHEN + - ( 72 ) THEN - 90 END
----
6391
NULL

skipif mysql # not compatible
query II rowsort label-1055
SELECT + 77 * 83 AS col0, ( - - 5 ) * + NULLIF ( + - 58, - 26 ) / - - ( + AVG ( ALL - CAST ( NULL AS INTEGER ) ) ) + COUNT ( DISTINCT + 79 ) * - 4 * - 6 + 14 + 82 * - 8 * - 20 * + 64 + - 99 + - - CASE - + ( 59 ) WHEN - 38 THEN + + 41 * + 59 WHEN + - ( 72 ) THEN - 90 END
----
6391
NULL

query I rowsort
SELECT - 0 * - 59 - + + 19 AS col1
----
-19

query I rowsort
SELECT 48 col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT ALL CASE + 57 WHEN + CAST( NULL AS SIGNED ) THEN + 31 + - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL CASE + 57 WHEN + CAST ( NULL AS INTEGER ) THEN + 31 + - 14 END
----
NULL

query I rowsort
SELECT - ( 41 ) col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT + 43 DIV - + 30 + - - 55 + + ( + - ( 67 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 43 / - + 30 + - - 55 + + ( + - ( 67 ) )
----
-13

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

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

query I rowsort
SELECT DISTINCT + 33 * - 16 AS col0
----
-528

query II rowsort
SELECT ALL 11 col0, 34
----
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT DISTINCT 90 + + - 80 + SUM( ALL 43 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT 90 + + - 80 + SUM ( ALL 43 ) AS col2
----
53

query I rowsort
SELECT 21 * 75 * - 67 AS col2
----
-105525

query I rowsort
SELECT ALL - 88 - - 89
----
1

query II rowsort
SELECT - 73, - 65 * - COALESCE ( + 80, + 46 ) AS col0
----
-73
5200

query I rowsort
SELECT 37 * 21 col2
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT 11 + - 99 + COUNT( * ) * + - 29 + - 0 - 2 * - - ( 74 ) * + + COUNT( * )
----
-265

skipif mysql # not compatible
query I rowsort label-1069
SELECT 11 + - 99 + COUNT ( * ) * + - 29 + - 0 - 2 * - - ( 74 ) * + + COUNT ( * )
----
-265

onlyif mysql # DIV for integer division: 
query II rowsort label-1070
SELECT 46 - + 60 DIV + - 30, 27 AS col1
----
48
27

skipif mysql # not compatible
query II rowsort label-1070
SELECT 46 - + 60 / + - 30, 27 AS col1
----
48
27

query II rowsort
SELECT - 88 AS col2, 79 * + - 41
----
-88
-3239

query I rowsort
SELECT ALL - 17 * 63 AS col0
----
-1071

query II rowsort
SELECT + 98 AS col1, + 30 AS col0
----
98
30

query I rowsort
SELECT ALL + 26 * 32 * 0 col1
----
0

query I rowsort
SELECT 62 * 98
----
6076

query I rowsort
SELECT 32 - + - 34 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT 18 * - CASE 6 * 0 WHEN - ( + ( MIN( ALL + 87 ) ) ) THEN - ( - ( + 63 ) ) * 48 END + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT 18 * - CASE 6 * 0 WHEN - ( + ( MIN ( ALL + 87 ) ) ) THEN - ( - ( + 63 ) ) * 48 END + - 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT 51 * + COUNT( DISTINCT 98 )
----
51

skipif mysql # not compatible
query I rowsort label-1078
SELECT 51 * + COUNT ( DISTINCT 98 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT ALL MIN( 34 ) + - 68 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL MIN ( 34 ) + - 68 AS col2
----
-34

query I rowsort
SELECT + 26 * - 52 - 34 * 92 AS col1
----
-4480

query I rowsort
SELECT ALL + 82 + 65 * + 46 AS col2
----
3072

query I rowsort
SELECT DISTINCT - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT MAX( + 95 ) + - ( + 78 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1083
SELECT MAX ( + 95 ) + - ( + 78 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1084
SELECT ( CASE + 90 WHEN + 80 THEN + 20 * + 91 WHEN - COUNT( * ) * 0 THEN NULL WHEN COUNT( * ) * - 61 THEN NULL END ) * - SUM( ALL - CAST( 97 AS SIGNED ) * + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT ( CASE + 90 WHEN + 80 THEN + 20 * + 91 WHEN - COUNT ( * ) * 0 THEN NULL WHEN COUNT ( * ) * - 61 THEN NULL END ) * - SUM ( ALL - CAST ( 97 AS INTEGER ) * + 87 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT COUNT( * ) - + CAST( - COALESCE ( 15, 42, 60 / + 34 ) + 82 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-1086
SELECT COUNT ( * ) - + CAST ( - COALESCE ( 15, 42, 60 / + 34 ) + 82 AS INTEGER )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT ALL CASE 26 WHEN - CAST( + 32 AS SIGNED ) THEN + 50 - + 11 * COUNT( * ) WHEN + COUNT( DISTINCT - 69 ) - - 56 THEN ( + 22 ) ELSE - 51 END + 88 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL CASE 26 WHEN - CAST ( + 32 AS INTEGER ) THEN + 50 - + 11 * COUNT ( * ) WHEN + COUNT ( DISTINCT - 69 ) - - 56 THEN ( + 22 ) ELSE - 51 END + 88 AS col0
----
37

query I rowsort
SELECT DISTINCT 14 + + 26
----
40

query I rowsort
SELECT DISTINCT 90 - 31 * - 87
----
2787

query I rowsort
SELECT NULLIF ( + 54, + 3 ) + + 60
----
114

query I rowsort
SELECT 30 + 91
----
121

query I rowsort
SELECT 8 + - 74 AS col2
----
-66

query I rowsort
SELECT DISTINCT 36 - 63 AS col0
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1094
SELECT ( + CAST( NULL AS DECIMAL ) ) * 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT ( + CAST ( NULL AS REAL ) ) * 4 AS col1
----
NULL

query I rowsort
SELECT ALL 71 - - 89 * ( 91 ) AS col1
----
8170

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT ALL NULLIF ( 71, - 54 * - 57 ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL NULLIF ( 71, - 54 * - 57 ) / 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT CAST( NULL AS SIGNED ) / MIN( - 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT CAST ( NULL AS INTEGER ) / MIN ( - 18 ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - 35 ) * - 22 AS col2
----
770

query I rowsort
SELECT 52 + 92 * - 84 AS col2
----
-7676

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL MAX( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL MAX ( - 49 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT 62 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1103
SELECT 62 / 85 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT - 92 DIV COUNT( + 63 ) + 14
----
-78

skipif mysql # not compatible
query I rowsort label-1104
SELECT - 92 / COUNT ( + 63 ) + 14
----
-78

query I rowsort
SELECT 71 * + 32
----
2272

query I rowsort
SELECT NULLIF ( - 55, ( - 87 ) ) + - 37 AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1107
SELECT + 10 DIV + SUM( - 5 * 13 ) + 25 * SUM( DISTINCT 10 * 10 + - 7 )
----
2325

skipif mysql # not compatible
query I rowsort label-1107
SELECT + 10 / + SUM ( - 5 * 13 ) + 25 * SUM ( DISTINCT 10 * 10 + - 7 )
----
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT 87 + 4 DIV - 43 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1108
SELECT 87 + 4 / - 43 AS col0
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + COUNT( * ) + ( NULLIF ( + 23, + SUM( + 48 ) - - 72 ) )
----
24

skipif mysql # not compatible
query I rowsort label-1110
SELECT + COUNT ( * ) + ( NULLIF ( + 23, + SUM ( + 48 ) - - 72 ) )
----
24

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

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - - COUNT ( + 7 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT NULLIF ( 39, + 19 ) + MAX( 51 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1112
SELECT NULLIF ( 39, + 19 ) + MAX ( 51 ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL - + 78 * 26 + - ( - ( 98 ) ) DIV 66 AS col1
----
-2027

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - + 78 * 26 + - ( - ( 98 ) ) / 66 AS col1
----
-2027

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

query I rowsort
SELECT ALL 28 * + 55 + 29
----
1569

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

query I rowsort
SELECT - + 35 * + 36 + + 1
----
-1259

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL + + NULLIF ( 87, - AVG ( ALL CASE CAST( NULL AS SIGNED ) WHEN + 54 THEN 93 ELSE NULL END ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + + NULLIF ( 87, - AVG ( ALL CASE CAST ( NULL AS INTEGER ) WHEN + 54 THEN 93 ELSE NULL END ) ) AS col2
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - - MIN( DISTINCT + 81 ) * - 34 AS col2
----
-2754

skipif mysql # not compatible
query I rowsort label-1121
SELECT - - MIN ( DISTINCT + 81 ) * - 34 AS col2
----
-2754

query I rowsort
SELECT ALL + 94 * 67 AS col2
----
6298

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT DISTINCT - 16 DIV 22 * 62
----
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT - 16 / 22 * 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - 89 * - MIN( - 40 ) - - COUNT( * )
----
-3559

skipif mysql # not compatible
query I rowsort label-1125
SELECT - 89 * - MIN ( - 40 ) - - COUNT ( * )
----
-3559

query I rowsort
SELECT + 13 * - 38 AS col1
----
-494

query I rowsort
SELECT - 84 - - 89 * 16 AS col0
----
1340

query I rowsort
SELECT - NULLIF ( - - 53, COALESCE ( 63, 20 - + 19 ) ) AS col1
----
-53

query I rowsort
SELECT ALL 95 * - 10 AS col1
----
-950

query I rowsort
SELECT + 77 * - + 8 AS col2
----
-616

query I rowsort
SELECT DISTINCT + 44 * - + 82
----
-3608

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT + COUNT( * ) - + ( 17 )
----
-16

skipif mysql # not compatible
query I rowsort label-1133
SELECT + COUNT ( * ) - + ( 17 )
----
-16

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

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

query I rowsort
SELECT DISTINCT 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + 6 - - 74 + CASE + 18 WHEN - 86 * 48 THEN NULL WHEN 41 * COUNT( * ) THEN ( + COUNT( * ) ) / - 95 - COALESCE ( 20, + 36 + 83 ) * 54 END * 64 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 6 - - 74 + CASE + 18 WHEN - 86 * 48 THEN NULL WHEN 41 * COUNT ( * ) THEN ( + COUNT ( * ) ) / - 95 - COALESCE ( 20, + 36 + 83 ) * 54 END * 64 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + SUM( DISTINCT - 33 ) + 4 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1137
SELECT + SUM ( DISTINCT - 33 ) + 4 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + COUNT( * ) * - + 99 col2
----
-99

skipif mysql # not compatible
query I rowsort label-1138
SELECT + COUNT ( * ) * - + 99 col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT + 70 + + - COALESCE ( - 81, SUM( 87 ) - + 90 * 5 ) DIV - 47
----
69

skipif mysql # not compatible
query I rowsort label-1139
SELECT + 70 + + - COALESCE ( - 81, SUM ( 87 ) - + 90 * 5 ) / - 47
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT + SUM( + - 96 ) - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-1140
SELECT + SUM ( + - 96 ) - COUNT ( * )
----
-97

query I rowsort
SELECT - 52 - + 55 + 47 AS col1
----
-60

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + COUNT ( * ) / 32 + - 85 col1
----
-85

query I rowsort
SELECT + 7 + - 57
----
-50

query I rowsort
SELECT ALL - 22 * 42 + - 16
----
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT + - 11 DIV + + 12
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT + - 11 / + + 12
----
0

query I rowsort
SELECT ALL 99 * 81 AS col1
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + 80 * - 35 * - 84 + + COUNT( * )
----
235201

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 80 * - 35 * - 84 + + COUNT ( * )
----
235201

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + MAX( - - 78 ) * MAX( - NULLIF ( + 57, 3 ) ) + COUNT( * ) AS col0
----
-4445

skipif mysql # not compatible
query I rowsort label-1148
SELECT + MAX ( - - 78 ) * MAX ( - NULLIF ( + 57, 3 ) ) + COUNT ( * ) AS col0
----
-4445

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

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

query I rowsort
SELECT + + 72 col2
----
72

query I rowsort
SELECT - - 84 - + 48 * 93
----
-4380

query I rowsort
SELECT - - 44 * - + 7 + 94
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1153
SELECT NULLIF ( CAST( NULL AS DECIMAL ), + 69 * - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT NULLIF ( CAST ( NULL AS REAL ), + 69 * - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - 30
----
NULL

query I rowsort
SELECT ALL - 65 * 31 - + CASE 39 WHEN + 96 THEN 49 ELSE NULL END * - 35
----
NULL

query I rowsort
SELECT ALL - + 21 * + 90 * 17 AS col1
----
-32130

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

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

query I rowsort
SELECT - ( 1 ) - 2
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - 23 * COUNT( * ) + - ( 99 ) + + 22
----
-100

skipif mysql # not compatible
query I rowsort label-1159
SELECT - 23 * COUNT ( * ) + - ( 99 ) + + 22
----
-100

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

query I rowsort
SELECT - 60 + - + 65
----
-125

query I rowsort
SELECT + 66 + + 31 - - - 85 * + 1 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT - 78 DIV + 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1163
SELECT - 78 / + 59 AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1164
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, ( - 53 ) * + 54 AS col0
----
NULL
-2862

skipif mysql # not compatible
query II rowsort label-1164
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, ( - 53 ) * + 54 AS col0
----
NULL
-2862

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

query I rowsort
SELECT - 30 + 69 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT ALL 42 DIV - 2
----
-21

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL 42 / - 2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT - 47 DIV ( - 17 ) * - 30
----
-60

skipif mysql # not compatible
query I rowsort label-1168
SELECT - 47 / ( - 17 ) * - 30
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 82 + - NULLIF ( - COALESCE ( 10, 74 * - 7 ), - 58 ) + - 89
----
3

query I rowsort
SELECT ALL - 67 + + - 75 + + + 1 AS col1
----
-141

query I rowsort
SELECT - 94 * - 9 col2
----
846

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - MIN( DISTINCT 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1174
SELECT - MIN ( DISTINCT 7 ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT + CASE - CASE + 9 WHEN CASE - 48 WHEN 60 THEN 6 WHEN + MAX( 97 ) THEN NULL ELSE + SUM( 53 ) * 98 END THEN 73 * - 18 + + ( 44 ) / COALESCE ( 35, - CAST( - 60 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 27, - 14 * 24 ) ELSE 76 END WHEN - 81 * 65 THEN 58 WHEN 58 * 98 THEN NULL END + - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT + CASE - CASE + 9 WHEN CASE - 48 WHEN 60 THEN 6 WHEN + MAX ( 97 ) THEN NULL ELSE + SUM ( 53 ) * 98 END THEN 73 * - 18 + + ( 44 ) / COALESCE ( 35, - CAST ( - 60 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 27, - 14 * 24 ) ELSE 76 END WHEN - 81 * 65 THEN 58 WHEN 58 * 98 THEN NULL END + - 5 AS col1
----
NULL

query I rowsort
SELECT ALL 76 + - + 22
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL 34 + - 97 * - ( - COALESCE ( CAST( NULL AS SIGNED ), MAX( 25 ) ) ) col1
----
-2391

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 34 + - 97 * - ( - COALESCE ( CAST ( NULL AS INTEGER ), MAX ( 25 ) ) ) col1
----
-2391

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL - 95 * - ( + - ( + COUNT( DISTINCT 15 ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - 95 * - ( + - ( + COUNT ( DISTINCT 15 ) ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT DISTINCT + 41 + + 17 + + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT + 41 + + 17 + + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT DISTINCT + 92 * + 36
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL 70 + - SUM( 13 ) + 71
----
128

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 70 + - SUM ( 13 ) + 71
----
128

query I rowsort
SELECT ALL - 76 + + - 28 AS col2
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1183
SELECT - 53 + - 61 + 26 - SUM( ALL NULLIF ( - 37, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) ) ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 53 + - 61 + 26 - SUM ( ALL NULLIF ( - 37, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT - - COUNT( * ) DIV 68 + + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-1184
SELECT - - COUNT ( * ) / 68 + + 56 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT ALL COUNT( * ) DIV 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL COUNT ( * ) / 58 col0
----
0

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

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

query I rowsort
SELECT + - 43 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT - - 98 DIV + 45 + - 70 * 70
----
-4898

skipif mysql # not compatible
query I rowsort label-1188
SELECT - - 98 / + 45 + - 70 * 70
----
-4898

query I rowsort
SELECT DISTINCT - - 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT ALL + 49 DIV - - ( 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL + 49 / - - ( 43 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - + 82 AS col1
----
-82

query I rowsort
SELECT DISTINCT + 0 - 81 col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT - 74 DIV + + SUM( + + ( + 86 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT - 74 / + + SUM ( + + ( + 86 ) ) AS col0
----
0

query I rowsort
SELECT 13 * + 64 * 9 - + 66 AS col0
----
7422

query II rowsort
SELECT + 35, - 21 AS col0
----
35
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT - AVG ( DISTINCT - 55 ) * 79 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT - AVG ( DISTINCT - 55 ) * 79 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( - - 83, - 55 * 55 + - 14 ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT CAST( + COALESCE ( COUNT( * ), 82 / + CASE 68 WHEN ( 6 ) THEN NULL ELSE ( - ( + ( - ( + COUNT( * ) ) ) ) ) * - 4 END, - 14 * + NULLIF ( - 97, + 65 ), CASE 32 WHEN CAST( NULL AS SIGNED ) - COUNT( * ) THEN NULL WHEN - 24 / + 9 THEN + AVG ( 75 ) ELSE + CAST( 47 AS SIGNED ) END * - 81 - COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1198
SELECT CAST ( + COALESCE ( COUNT ( * ), 82 / + CASE 68 WHEN ( 6 ) THEN NULL ELSE ( - ( + ( - ( + COUNT ( * ) ) ) ) ) * - 4 END, - 14 * + NULLIF ( - 97, + 65 ), CASE 32 WHEN CAST ( NULL AS INTEGER ) - COUNT ( * ) THEN NULL WHEN - 24 / + 9 THEN + AVG ( 75 ) ELSE + CAST ( 47 AS INTEGER ) END * - 81 - COUNT ( * ) ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT + ( - 79 ) * - - 70 + + 24 * 22
----
-5002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL + CASE + + 90 WHEN + - 64 THEN + 39 * CAST( NULL AS SIGNED ) ELSE NULL END / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + CASE + + 90 WHEN + - 64 THEN + 39 * CAST ( NULL AS INTEGER ) ELSE NULL END / - 45
----
NULL

query I rowsort
SELECT 56 + - 90 * + + 76 + - 23
----
-6807

query I rowsort
SELECT 30 * 39 AS col1
----
1170

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL - 71 + SUM( + 42 ) - 70 + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - 71 + SUM ( + 42 ) - 70 + COUNT ( * )
----
-98

query I rowsort
SELECT 55 * + 49
----
2695

query I rowsort
SELECT ALL - 99 + 44 AS col2
----
-55

query I rowsort
SELECT - 79 col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1208
SELECT 45 + 92 AS col2, - 2 + 4 + - NULLIF ( - COUNT( * ) + 31, + CAST( 41 AS SIGNED ) )
----
137
-28

skipif mysql # not compatible
query II rowsort label-1208
SELECT 45 + 92 AS col2, - 2 + 4 + - NULLIF ( - COUNT ( * ) + 31, + CAST ( 41 AS INTEGER ) )
----
137
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT 81 * + - 50 DIV - + COUNT( * )
----
4050

skipif mysql # not compatible
query I rowsort label-1209
SELECT 81 * + - 50 / - + COUNT ( * )
----
4050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT 87 + + CASE 63 WHEN + 42 THEN NULL ELSE 42 END DIV - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-1210
SELECT 87 + + CASE 63 WHEN + 42 THEN NULL ELSE 42 END / - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT - 54 + + - 21 - COUNT( * ) + + - 52 * + 71 col0
----
-3768

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT - 54 + + - 21 - COUNT ( * ) + + - 52 * + 71 col0
----
-3768

query I rowsort
SELECT 71 - + 38 + 55 + + 47
----
135

query I rowsort
SELECT - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + 55 + + SUM( ALL 78 )
----
133

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + 55 + + SUM ( ALL 78 )
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT 90 + + 87 DIV + - 22 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1215
SELECT 90 + + 87 / + - 22 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL + + 34 - - + COUNT( * ) * + 0 + 52
----
86

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + + 34 - - + COUNT ( * ) * + 0 + 52
----
86

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

query I rowsort
SELECT 89 + 86
----
175

query I rowsort
SELECT - - ( - 95 ) AS col0
----
-95

query I rowsort
SELECT - 55 + + + 31
----
-24

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

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

query I rowsort
SELECT - - NULLIF ( + + COALESCE ( - 89, 95 + - 30, - 14 * + 87 + + 30 ), + 47 * + 46 )
----
-89

query I rowsort
SELECT DISTINCT + - 92 * - 95 * - 88
----
-769120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT ( CAST( 91 AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1224
SELECT ( CAST ( 91 AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT DISTINCT - - 80 * 75 AS col2
----
6000

query I rowsort
SELECT ALL - - 70 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1227
SELECT ALL - ( CASE 48 WHEN ( - 67 ) THEN CAST( NULL AS SIGNED ) END ) * NULLIF ( - 39, - 26 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - ( CASE 48 WHEN ( - 67 ) THEN CAST ( NULL AS INTEGER ) END ) * NULLIF ( - 39, - 26 * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - - CASE - 73 WHEN 55 + - + 3 THEN - 85 END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - + 7 * - COUNT( * ) + + CASE + 12 WHEN 31 THEN + 25 + - COUNT( * ) * + 53 ELSE NULL END + - 90 * COUNT( * ) * 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT - + 7 * - COUNT ( * ) + + CASE + 12 WHEN 31 THEN + 25 + - COUNT ( * ) * + 53 ELSE NULL END + - 90 * COUNT ( * ) * 9 AS col0
----
NULL

query I rowsort
SELECT + + 84 AS col2
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1233
SELECT 32 DIV 27 + - COALESCE ( - CASE - 54 WHEN 16 THEN + 77 WHEN 1 THEN NULL ELSE 69 DIV + 17 + 37 END, 73, - CAST( + 55 AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-1233
SELECT 32 / 27 + - COALESCE ( - CASE - 54 WHEN 16 THEN + 77 WHEN 1 THEN NULL ELSE 69 / + 17 + 37 END, 73, - CAST ( + 55 AS INTEGER ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + CASE + 38 WHEN + 97 THEN + COUNT( * ) ELSE - 42 END
----
-42

skipif mysql # not compatible
query I rowsort label-1234
SELECT + CASE + 38 WHEN + 97 THEN + COUNT ( * ) ELSE - 42 END
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT CAST( 25 AS SIGNED ) + + 74
----
99

skipif mysql # not compatible
query I rowsort label-1235
SELECT CAST ( 25 AS INTEGER ) + + 74
----
99

query I rowsort
SELECT + + 4 AS col1
----
4

query I rowsort
SELECT - 3 - + 76 AS col1
----
-79

query I rowsort
SELECT DISTINCT - - 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL + 3 + + 10 + - 41 + - - 36 * NULLIF ( + MIN( ALL 69 ), SUM( ALL + 9 ) * 96 )
----
2456

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + 3 + + 10 + - 41 + - - 36 * NULLIF ( + MIN ( ALL 69 ), SUM ( ALL + 9 ) * 96 )
----
2456

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT COUNT( * ) + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1240
SELECT COUNT ( * ) + 20 AS col1
----
21

query I rowsort
SELECT DISTINCT 66 * + CASE ( - 21 ) WHEN + 54 - 2 / + 44 THEN 86 ELSE NULL END
----
NULL

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

query I rowsort
SELECT ALL ( + 99 ) + 48
----
147

query I rowsort
SELECT DISTINCT ( + 73 ) * + + COALESCE ( - 17, 21 )
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT 36 + + + 84 * 40 * + - 12 - - + COUNT( * ) AS col2
----
-40283

skipif mysql # not compatible
query I rowsort label-1245
SELECT 36 + + + 84 * 40 * + - 12 - - + COUNT ( * ) AS col2
----
-40283

query I rowsort
SELECT 71 - + 10
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT - 76 * - + COUNT( * ) * + - ( + 54 ) + 81 * NULLIF ( + 92 * ( + 30 ), + MAX( 66 ) + - 24 )
----
219456

skipif mysql # not compatible
query I rowsort label-1247
SELECT - 76 * - + COUNT ( * ) * + - ( + 54 ) + 81 * NULLIF ( + 92 * ( + 30 ), + MAX ( 66 ) + - 24 )
----
219456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1248
SELECT 81 - + - 96 + - CAST( + - 43 AS SIGNED ) * + COUNT( * ) * 83
----
3746

skipif mysql # not compatible
query I rowsort label-1248
SELECT 81 - + - 96 + - CAST ( + - 43 AS INTEGER ) * + COUNT ( * ) * 83
----
3746

query I rowsort
SELECT DISTINCT 0 + - - 75 AS col2
----
75

query I rowsort
SELECT ALL - 68 + 52 + - 53
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT CAST( - 37 AS SIGNED ) + - 29 col0
----
-66

skipif mysql # not compatible
query I rowsort label-1251
SELECT CAST ( - 37 AS INTEGER ) + - 29 col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT DISTINCT 64 + - + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT 64 + - + COUNT ( * )
----
63

query I rowsort
SELECT ALL 23 - - 12
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT 90 + CAST( 51 AS SIGNED ) * - COALESCE ( + 69, COALESCE ( SUM( DISTINCT 82 ), + 87 ), - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
-3429

skipif mysql # not compatible
query I rowsort label-1255
SELECT 90 + CAST ( 51 AS INTEGER ) * - COALESCE ( + 69, COALESCE ( SUM ( DISTINCT 82 ), + 87 ), - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
-3429

query I rowsort
SELECT ALL 99 - 27 AS col0
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL + COUNT( * ) * - + CASE + MAX( - 42 ) WHEN + 70 THEN NULL WHEN 41 THEN - 76 + - 60 ELSE NULL END + 92 * 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + COUNT ( * ) * - + CASE + MAX ( - 42 ) WHEN + 70 THEN NULL WHEN 41 THEN - 76 + - 60 ELSE NULL END + 92 * 75 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT - - 99 + - 29 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT - COUNT( DISTINCT - + 48 ) * + - 61 col2, + 35 * 7 * SUM( + 11 ) + SUM( DISTINCT + 54 ) * - ( 29 )
----
61
1129

skipif mysql # not compatible
query II rowsort label-1262
SELECT - COUNT ( DISTINCT - + 48 ) * + - 61 col2, + 35 * 7 * SUM ( + 11 ) + SUM ( DISTINCT + 54 ) * - ( 29 )
----
61
1129

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

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 32 * + COUNT ( - 62 ) AS col1
----
32

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1266
SELECT - - CASE WHEN NULL NOT BETWEEN ( CASE - - 32 WHEN + COUNT( 9 ) THEN + 48 WHEN - COUNT( * ) * - 61 THEN NULL END ) AND ( - MIN( 85 ) ) THEN 25 + ( - 45 + 61 DIV 16 ) ELSE - 37 * - 21 END + 28 AS col2
----
805

skipif mysql # not compatible
query I rowsort label-1266
SELECT - - CASE WHEN NULL NOT BETWEEN ( CASE - - 32 WHEN + COUNT ( 9 ) THEN + 48 WHEN - COUNT ( * ) * - 61 THEN NULL END ) AND ( - MIN ( 85 ) ) THEN 25 + ( - 45 + 61 / 16 ) ELSE - 37 * - 21 END + 28 AS col2
----
805

query I rowsort
SELECT DISTINCT + 1 col0
----
1

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

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

query I rowsort
SELECT - - 52 * - 62
----
-3224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT - CAST( - + ( - CAST( + COALESCE ( - ( + SUM( + CAST( NULL AS SIGNED ) ) ), 46, + COUNT( * ) * COUNT( * ) ) AS SIGNED ) ) AS SIGNED ) * - 64 AS col2
----
2944

skipif mysql # not compatible
query I rowsort label-1270
SELECT - CAST ( - + ( - CAST ( + COALESCE ( - ( + SUM ( + CAST ( NULL AS INTEGER ) ) ), 46, + COUNT ( * ) * COUNT ( * ) ) AS INTEGER ) ) AS INTEGER ) * - 64 AS col2
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + 35 + - + 86 * + + ( + 89 ) * - COUNT( * )
----
7689

skipif mysql # not compatible
query I rowsort label-1271
SELECT + 35 + - + 86 * + + ( + 89 ) * - COUNT ( * )
----
7689

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT + COALESCE ( - COUNT( * ), - + 25, - MAX( ALL 35 ) + 1 ) + MAX( ALL + 9 )
----
8

skipif mysql # not compatible
query I rowsort label-1272
SELECT + COALESCE ( - COUNT ( * ), - + 25, - MAX ( ALL 35 ) + 1 ) + MAX ( ALL + 9 )
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT + MIN( DISTINCT + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT + MIN ( DISTINCT + 43 ) AS col2
----
43

query I rowsort
SELECT ALL 48 * - 96 + - 69
----
-4677

query I rowsort
SELECT - 31 * 94
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT ALL - CAST( + + 58 AS SIGNED ) * - 90 * COUNT( * ) + MAX( + 95 ) + 5 * + 99 + + 88
----
5898

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - CAST ( + + 58 AS INTEGER ) * - 90 * COUNT ( * ) + MAX ( + 95 ) + 5 * + 99 + + 88
----
5898

query I rowsort
SELECT ALL + 85 AS col0
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT + MIN( - - 33 ) * + NULLIF ( + - 30, - 90 ) * + 41 + 94 * - 38 AS col0
----
-44162

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT + MIN ( - - 33 ) * + NULLIF ( + - 30, - 90 ) * + 41 + 94 * - 38 AS col0
----
-44162

onlyif mysql # aggregate syntax: 
query II rowsort label-1281
SELECT ALL ( 43 ) * + 46 + - COUNT( * ) AS col0, - 35 + + CASE + ( COUNT( * ) ) WHEN - 39 / 88 THEN 63 WHEN 58 THEN NULL WHEN + COUNT( * ) / 96 THEN NULL END / 72 AS col1
----
1977
NULL

skipif mysql # not compatible
query II rowsort label-1281
SELECT ALL ( 43 ) * + 46 + - COUNT ( * ) AS col0, - 35 + + CASE + ( COUNT ( * ) ) WHEN - 39 / 88 THEN 63 WHEN 58 THEN NULL WHEN + COUNT ( * ) / 96 THEN NULL END / 72 AS col1
----
1977
NULL

query I rowsort
SELECT - 95 * - 45 AS col1
----
4275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT NULLIF ( + COUNT( * ), 41 / - - 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1284
SELECT NULLIF ( + COUNT ( * ), 41 / - - 52 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT ( - + 87 ) DIV - 51 + + + MIN( DISTINCT 55 )
----
56

skipif mysql # not compatible
query I rowsort label-1285
SELECT ( - + 87 ) / - 51 + + + MIN ( DISTINCT 55 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT NULLIF ( 57, COUNT( * ) - - 10 * + + 14 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1286
SELECT NULLIF ( 57, COUNT ( * ) - - 10 * + + 14 ) AS col2
----
57

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT + MIN ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + ( - - ( - 73 ) ) + - + MAX( 54 ) + + 45 + 81
----
-1

skipif mysql # not compatible
query I rowsort label-1288
SELECT + ( - - ( - 73 ) ) + - + MAX ( 54 ) + + 45 + 81
----
-1

query I rowsort
SELECT ALL 34 * - 10 * + ( - - 49 ) + - ( + 11 ) + - 62 * + 22 AS col0
----
-18035

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1291
SELECT ALL + 42 col0, 85 / - CASE + ( - 0 ) WHEN MIN( ALL ( 74 ) ) * - 92 THEN NULL WHEN 9 * 22 THEN + NULLIF ( - MAX( DISTINCT 34 ), 70 * 99 - + 21 * + 18 ) + COUNT( * ) ELSE NULL END
----
42
NULL

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL + 42 col0, 85 / - CASE + ( - 0 ) WHEN MIN ( ALL ( 74 ) ) * - 92 THEN NULL WHEN 9 * 22 THEN + NULLIF ( - MAX ( DISTINCT 34 ), 70 * 99 - + 21 * + 18 ) + COUNT ( * ) ELSE NULL END
----
42
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL 71 * + 15 - - - COUNT( * ) AS col1
----
1064

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL 71 * + 15 - - - COUNT ( * ) AS col1
----
1064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1294
SELECT + CAST( NULL AS DECIMAL ) * + ( - 63 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT + CAST ( NULL AS REAL ) * + ( - 63 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT MIN( DISTINCT + - 67 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-1295
SELECT MIN ( DISTINCT + - 67 ) col1
----
-67

query I rowsort
SELECT 37 * - 47 - + - 45
----
-1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT MIN( ALL - + CAST( + 65 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1297
SELECT MIN ( ALL - + CAST ( + 65 AS INTEGER ) )
----
-65

query I rowsort
SELECT ALL 17 * - 36
----
-612

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT + 87 DIV 63 * 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1299
SELECT + 87 / 63 * 5 AS col1
----
5

query I rowsort
SELECT + 99 * - 7
----
-693

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1302
SELECT + 45, + ( + + MAX( - 14 ) ) AS col2
----
45
-14

skipif mysql # not compatible
query II rowsort label-1302
SELECT + 45, + ( + + MAX ( - 14 ) ) AS col2
----
45
-14

query I rowsort
SELECT - + 86 + + 27
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL 77 DIV + 68 + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 77 / + 68 + 21 AS col1
----
22

query II rowsort
SELECT ALL 68 AS col1, - 64
----
68
-64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + + COUNT( DISTINCT COALESCE ( - + 10, + - 0 ) ) - + 57
----
-56

skipif mysql # not compatible
query I rowsort label-1307
SELECT + + COUNT ( DISTINCT COALESCE ( - + 10, + - 0 ) ) - + 57
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT ALL COALESCE ( + 84, CASE 93 WHEN - 26 * - + 58 + + 29 THEN 32 WHEN 31 THEN NULL END * COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL COALESCE ( + 84, CASE 93 WHEN - 26 * - + 58 + + 29 THEN 32 WHEN 31 THEN NULL END * COUNT ( * ) ) AS col0
----
84

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

query I rowsort
SELECT ALL ( + 95 ) * + 97
----
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT DISTINCT - - ( - 49 ) + - COUNT( + 0 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - - ( - 49 ) + - COUNT ( + 0 ) AS col2
----
-50

query I rowsort
SELECT ALL + + 87 * + 69 * + 32 AS col1
----
192096

query I rowsort
SELECT - - 10 * - + 77 col2
----
-770

query I rowsort
SELECT ALL - 46 + - COALESCE ( - + 86, + 2 + + 4 ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1315
SELECT ALL - - COUNT( * ) / CAST( NULL AS DECIMAL ) + - ( - CASE + + 15 WHEN 27 THEN 64 * + ( 36 ) - - 39 / + AVG ( 13 ) WHEN - 68 THEN NULL WHEN + CAST( + 88 AS SIGNED ) THEN 19 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - - COUNT ( * ) / CAST ( NULL AS REAL ) + - ( - CASE + + 15 WHEN 27 THEN 64 * + ( 36 ) - - 39 / + AVG ( 13 ) WHEN - 68 THEN NULL WHEN + CAST ( + 88 AS INTEGER ) THEN 19 END )
----
NULL

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

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

query I rowsort
SELECT + 19 + + 53
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ALL - 40 DIV 5 DIV + - CASE WHEN NOT 45 <= NULL THEN NULL ELSE + 5 END
----
1

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - 40 / 5 / + - CASE WHEN NOT 45 <= NULL THEN NULL ELSE + 5 END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT COUNT( * ) * - 23 * + NULLIF ( 20, + AVG ( + 96 ) * + 55 * 0 - COUNT( * ) ) + 31 col0
----
-429

skipif mysql # not compatible
query I rowsort label-1319
SELECT COUNT ( * ) * - 23 * + NULLIF ( 20, + AVG ( + 96 ) * + 55 * 0 - COUNT ( * ) ) + 31 col0
----
-429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1320
SELECT - 1 * - - CAST( MIN( - 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 1 * - - CAST ( MIN ( - 88 ) AS INTEGER )
----
88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1322
SELECT - COUNT( * ) DIV + 58 + 40 * 23
----
920

skipif mysql # not compatible
query I rowsort label-1322
SELECT - COUNT ( * ) / + 58 + 40 * 23
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT ALL CASE - 70 WHEN - 84 - - - 23 + + + 44 * 91 THEN NULL WHEN - 12 THEN COUNT( * ) + 6 / CAST( 70 * + 44 AS SIGNED ) END / ( - ( + 73 ) ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL CASE - 70 WHEN - 84 - - - 23 + + + 44 * 91 THEN NULL WHEN - 12 THEN COUNT ( * ) + 6 / CAST ( 70 * + 44 AS INTEGER ) END / ( - ( + 73 ) ) + + 33 AS col0
----
NULL

query I rowsort
SELECT ALL - 13 * 63
----
-819

query I rowsort
SELECT - 48 + + 19 + 17 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1326
SELECT - 65 + 55 * - - 89 * - 30 * + COUNT( * ) AS col2, 74 AS col0
----
-146915
74

skipif mysql # not compatible
query II rowsort label-1326
SELECT - 65 + 55 * - - 89 * - 30 * + COUNT ( * ) AS col2, 74 AS col0
----
-146915
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT DISTINCT 24 DIV - 14 - + 2 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT 24 / - 14 - + 2 / 69
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1328
SELECT ALL + NULLIF ( ( + + COUNT( * ) ), + + 83 + - 88 ) AS col1, - 71 AS col2
----
1
-71

skipif mysql # not compatible
query II rowsort label-1328
SELECT ALL + NULLIF ( ( + + COUNT ( * ) ), + + 83 + - 88 ) AS col1, - 71 AS col2
----
1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT 41 * + + COUNT( * ) + + 94 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-1329
SELECT 41 * + + COUNT ( * ) + + 94 AS col0
----
135

query I rowsort
SELECT ALL 99 * 22 - 99
----
2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT - CAST( - + CASE 53 WHEN + - COALESCE ( - 33, COALESCE ( 82, + 72, COUNT( * ) * COUNT( * ) ), + 17 ) + 14 * + ( CAST( NULL AS SIGNED ) + - 82 * 78 ) THEN - 64 / 93 ELSE 83 END AS SIGNED ) + - 20
----
63

skipif mysql # not compatible
query I rowsort label-1331
SELECT - CAST ( - + CASE 53 WHEN + - COALESCE ( - 33, COALESCE ( 82, + 72, COUNT ( * ) * COUNT ( * ) ), + 17 ) + 14 * + ( CAST ( NULL AS INTEGER ) + - 82 * 78 ) THEN - 64 / 93 ELSE 83 END AS INTEGER ) + - 20
----
63

query I rowsort
SELECT - NULLIF ( - 17, + 37 ) + - 99
----
-82

query I rowsort
SELECT ( 81 ) * + - 1 + + 2 AS col2
----
-79

query I rowsort
SELECT + 87 - - 24
----
111

query I rowsort
SELECT + COALESCE ( + + 16, + 22 ) * + - 83 + 16 AS col0
----
-1312

query I rowsort
SELECT ( + - 65 ) + + 24
----
-41

query I rowsort
SELECT 86 * + 17 col0
----
1462

query I rowsort
SELECT 22 * - 7 AS col2
----
-154

query I rowsort
SELECT 64 + + 26 AS col0
----
90

query II rowsort
SELECT + 58 + - 2 * - + ( 11 ) - - - 47 AS col1, + 34 * - 19
----
33
-646

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

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL MIN ( - 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1342
SELECT ALL CAST( NULL AS SIGNED ) + + - COUNT( * ) + + - 18 + - 57 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + + - 18 + - 57 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - - 87 AS col1
----
87

query I rowsort
SELECT ALL 50 * + 77 * - 80
----
-308000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT MAX( ALL 53 ) + - 96 - + - COUNT( * ) + - - 43 * 46 * + CASE - CASE 23 WHEN ( + COUNT( * ) ) THEN CASE 77 WHEN CASE - 47 WHEN + 97 THEN - COALESCE ( 70, - MAX( DISTINCT 78 ) / + 98 ) END THEN - COUNT( - 68 ) ELSE NULL END * 21 WHEN - COUNT( * ) THEN 74 + 0 END WHEN 53 THEN - 67 * COUNT( * ) WHEN + 89 THEN COUNT( + 86 ) + NULLIF ( - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), 10 * - 90 ) ELSE NULL END * CASE - 26 WHEN 0 THEN COUNT( * ) WHEN 37 + - 74 THEN NULL WHEN NULLIF ( 53, + 97 ) * - 62 + - 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT MAX ( ALL 53 ) + - 96 - + - COUNT ( * ) + - - 43 * 46 * + CASE - CASE 23 WHEN ( + COUNT ( * ) ) THEN CASE 77 WHEN CASE - 47 WHEN + 97 THEN - COALESCE ( 70, - MAX ( DISTINCT 78 ) / + 98 ) END THEN - COUNT ( - 68 ) ELSE NULL END * 21 WHEN - COUNT ( * ) THEN 74 + 0 END WHEN 53 THEN - 67 * COUNT ( * ) WHEN + 89 THEN COUNT ( + 86 ) + NULLIF ( - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), 10 * - 90 ) ELSE NULL END * CASE - 26 WHEN 0 THEN COUNT ( * ) WHEN 37 + - 74 THEN NULL WHEN NULLIF ( 53, + 97 ) * - 62 + - 80 THEN NULL END
----
NULL

query I rowsort
SELECT + 33 + 13
----
46

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

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

query I rowsort
SELECT DISTINCT - 8 + + 36
----
28

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

skipif mysql # not compatible
query I rowsort label-1349
SELECT - - MIN ( + 66 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT + 17 DIV + 21
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT + 17 / + 21
----
0

query I rowsort
SELECT ALL - 59 + 80
----
21

query I rowsort
SELECT 43 + 65 * - 78 * + 34
----
-172337

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT NULLIF ( - - NULLIF ( - + 7, + 12 ), - - 69 - - 99 - + 56 * - 3 / 16 ) + - COUNT( * ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT NULLIF ( - - NULLIF ( - + 7, + 12 ), - - 69 - - 99 - + 56 * - 3 / 16 ) + - COUNT ( * ) col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT - CAST( 2 AS SIGNED ) + - 4
----
-6

skipif mysql # not compatible
query I rowsort label-1354
SELECT - CAST ( 2 AS INTEGER ) + - 4
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT 5 * - COUNT( * ) * - - 24 AS col1, 42
----
-120
42

skipif mysql # not compatible
query II rowsort label-1355
SELECT 5 * - COUNT ( * ) * - - 24 AS col1, 42
----
-120
42

query I rowsort
SELECT DISTINCT - 64 AS col0
----
-64

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT 48 + 17 + + SUM( + 60 ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT 48 + 17 + + SUM ( + 60 ) AS col2
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-1360
SELECT 9, - SUM( - + 49 ) AS col0
----
9
49

skipif mysql # not compatible
query II rowsort label-1360
SELECT 9, - SUM ( - + 49 ) AS col0
----
9
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1361
SELECT ALL - 36 - + COALESCE ( 70, - COUNT( * ) * + 95, CASE 79 WHEN 47 THEN + MAX( DISTINCT 29 ) END + - 52 ) + 8 * + 12 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - 36 - + COALESCE ( 70, - COUNT ( * ) * + 95, CASE 79 WHEN 47 THEN + MAX ( DISTINCT 29 ) END + - 52 ) + 8 * + 12 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT ALL - COUNT( * ), - COUNT( DISTINCT - + 23 ) * - 71 AS col0
----
-1
71

skipif mysql # not compatible
query II rowsort label-1362
SELECT ALL - COUNT ( * ), - COUNT ( DISTINCT - + 23 ) * - 71 AS col0
----
-1
71

query I rowsort
SELECT DISTINCT - 27 * 43 AS col1
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT 13 - COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT 13 - COUNT ( * ) col1
----
12

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

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

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

skipif mysql # not compatible
query II rowsort label-1366
SELECT DISTINCT - 3 AS col2, COUNT ( * )
----
-3
1

query I rowsort
SELECT DISTINCT - 48 col1
----
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 96 DIV 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1369
SELECT 96 / 35 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL - COALESCE ( - 91, ( + + 16 ) + + MAX( + 42 ), - - 12 )
----
91

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - COALESCE ( - 91, ( + + 16 ) + + MAX ( + 42 ), - - 12 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1371
SELECT 96 col0, 10 + + 42 + + COUNT( * ) AS col0
----
96
53

skipif mysql # not compatible
query II rowsort label-1371
SELECT 96 col0, 10 + + 42 + + COUNT ( * ) AS col0
----
96
53

query I rowsort
SELECT ALL - ( - + 87 )
----
87

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

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - COUNT ( - 82 ) * - + 89 AS col1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT 86 DIV - + 68 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1374
SELECT 86 / - + 68 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL - NULLIF ( + SUM( ALL + + 7 ), 65 )
----
-7

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL - NULLIF ( + SUM ( ALL + + 7 ), 65 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1376
SELECT DISTINCT - 92 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT - 92 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - CASE + ( - 25 ) WHEN + + 87 / - 35 THEN - 65 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT DISTINCT - CAST( - 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - CAST ( - 12 AS INTEGER )
----
12

query I rowsort
SELECT 9 * - 24
----
-216

query I rowsort
SELECT DISTINCT - + 71 + - 61 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-1381
SELECT + COUNT( * ) * - - 79 - - 59 AS col0, + NULLIF ( - + 45, 11 * - 52 )
----
138
-45

skipif mysql # not compatible
query II rowsort label-1381
SELECT + COUNT ( * ) * - - 79 - - 59 AS col0, + NULLIF ( - + 45, 11 * - 52 )
----
138
-45

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

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

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

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

query I rowsort
SELECT 58 + 96
----
154

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

skipif mysql # not compatible
query II rowsort label-1385
SELECT ALL + COUNT ( * ), - CAST ( + 21 AS INTEGER ) col2
----
1
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + MIN( DISTINCT - 27 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-1387
SELECT + MIN ( DISTINCT - 27 ) col1
----
-27

query I rowsort
SELECT + - ( 65 ) * - 31 + + 53 col1
----
2068

query I rowsort
SELECT DISTINCT + - 66 + + 63
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1390
SELECT ALL ( + 34 ) * + COUNT( * ) AS col1, 49 / 72 + CASE WHEN AVG ( ALL - 73 ) NOT BETWEEN - 68 * - ( COUNT( * ) ) + + ( - 15 ) AND - COUNT( * ) + + 0 * 91 THEN NULL WHEN 31 - - 6 BETWEEN ( 7 * + AVG ( ALL - 45 / 91 ) ) AND ( - 16 ) THEN - 56 END - 88 AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-1390
SELECT ALL ( + 34 ) * + COUNT ( * ) AS col1, 49 / 72 + CASE WHEN AVG ( ALL - 73 ) NOT BETWEEN - 68 * - ( COUNT ( * ) ) + + ( - 15 ) AND - COUNT ( * ) + + 0 * 91 THEN NULL WHEN 31 - - 6 BETWEEN ( 7 * + AVG ( ALL - 45 / 91 ) ) AND ( - 16 ) THEN - 56 END - 88 AS col0
----
34
NULL

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

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

query II rowsort
SELECT 27 - + 75 + + 1 - - + 29 - - 32 + - + 44, 77 + + + 9 AS col2
----
-30
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL NULLIF ( + - 17, - NULLIF ( - COUNT( * ), 92 + - + 34 / + ( - COUNT( * ) ) ) ) * 20
----
-340

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL NULLIF ( + - 17, - NULLIF ( - COUNT ( * ), 92 + - + 34 / + ( - COUNT ( * ) ) ) ) * 20
----
-340

query I rowsort
SELECT ALL - 27 * - 42 AS col0
----
1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1395
SELECT ALL 55 - + MIN( ALL - - NULLIF ( - 95, + 88 + + + 1 ) ) AS col2, + CAST( + + AVG ( + 95 ) AS SIGNED )
----
150
95

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL 55 - + MIN ( ALL - - NULLIF ( - 95, + 88 + + + 1 ) ) AS col2, + CAST ( + + AVG ( + 95 ) AS INTEGER )
----
150
95

query II rowsort
SELECT + 49 col0, - 97
----
49
-97

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1398
SELECT - COALESCE ( - CASE COUNT( * ) WHEN - + NULLIF ( - - 28, COUNT( * ) ) THEN 88 DIV + 11 * + COALESCE ( 46 DIV + 28, - 54 + - 56 * 43, - 87 ) - 67 WHEN - ( 77 ) * 35 THEN NULL END, ( 30 ), - 31, 91 ) + 32 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1398
SELECT - COALESCE ( - CASE COUNT ( * ) WHEN - + NULLIF ( - - 28, COUNT ( * ) ) THEN 88 / + 11 * + COALESCE ( 46 / + 28, - 54 + - 56 * 43, - 87 ) - 67 WHEN - ( 77 ) * 35 THEN NULL END, ( 30 ), - 31, 91 ) + 32 AS col2
----
2

query I rowsort
SELECT 96 * - 74 * + 82 * + 22
----
-12815616

query I rowsort
SELECT - + 84
----
-84

query I rowsort
SELECT 84 - + + 15 col1
----
69

query II rowsort
SELECT DISTINCT + 22 * - + 68 AS col1, 66 AS col1
----
-1496
66

query I rowsort
SELECT DISTINCT - ( + 93 ) * 66
----
-6138

onlyif mysql # DIV for integer division: 
query I rowsort label-1404
SELECT ALL 36 DIV - 27 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL 36 / - 27 col1
----
-1

query II rowsort
SELECT ALL 48 - + 71, 18 AS col1
----
-23
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL - COUNT( ALL 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - COUNT ( ALL 12 )
----
-1

query I rowsort
SELECT + CASE ( 31 ) WHEN 20 THEN + + 62 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT ( - 41 ) * - MAX( - 1 ) - - CAST( + + COUNT( * ) AS SIGNED ) + - - 66 * - 22
----
-1492

skipif mysql # not compatible
query I rowsort label-1409
SELECT ( - 41 ) * - MAX ( - 1 ) - - CAST ( + + COUNT ( * ) AS INTEGER ) + - - 66 * - 22
----
-1492

query I rowsort
SELECT NULLIF ( - 63, - 99 )
----
-63

query I rowsort
SELECT ALL 94 * - 75 AS col1
----
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT + COUNT( ALL + 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1412
SELECT + COUNT ( ALL + 47 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + COUNT( * ) + - - 5 * + 99
----
496

skipif mysql # not compatible
query I rowsort label-1413
SELECT + COUNT ( * ) + - - 5 * + 99
----
496

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT ALL 3 * + 35 + + ( - + 20 ) + - - 42 DIV 35 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL 3 * + 35 + + ( - + 20 ) + - - 42 / 35 AS col2
----
86

query I rowsort
SELECT ALL - 78 * 83
----
-6474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1416
SELECT + MIN( COALESCE ( CAST( NULL AS SIGNED ), - - 25 ) ) + + + 36 + - + 6 - 88
----
-33

skipif mysql # not compatible
query I rowsort label-1416
SELECT + MIN ( COALESCE ( CAST ( NULL AS INTEGER ), - - 25 ) ) + + + 36 + - + 6 - 88
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL - 3 * - - 80 / - CASE + + MAX( DISTINCT + + 50 ) WHEN - 35 + - 80 THEN + - 70 WHEN + 80 THEN + 30 WHEN 96 THEN + 93 / - MAX( + 70 ) END + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - 3 * - - 80 / - CASE + + MAX ( DISTINCT + + 50 ) WHEN - 35 + - 80 THEN + - 70 WHEN + 80 THEN + 30 WHEN 96 THEN + 93 / - MAX ( + 70 ) END + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL 93 * - - SUM( ALL + 36 ) * + 80 + - COUNT( * )
----
267839

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL 93 * - - SUM ( ALL + 36 ) * + 80 + - COUNT ( * )
----
267839

query I rowsort
SELECT DISTINCT 83 * + 91 + + 43
----
7596

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL + CASE + 10 WHEN 79 / 9 * + COUNT( * ) + + + MAX( 79 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + + 67 END * - COALESCE ( - 22, 33, COALESCE ( COALESCE ( - 41, - 2, - COUNT( * ) ), + 61 - 18 ) ) + - COUNT( * ) AS col0
----
1473

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + CASE + 10 WHEN 79 / 9 * + COUNT ( * ) + + + MAX ( 79 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + + 67 END * - COALESCE ( - 22, 33, COALESCE ( COALESCE ( - 41, - 2, - COUNT ( * ) ), + 61 - 18 ) ) + - COUNT ( * ) AS col0
----
1473

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

query I rowsort
SELECT + + 94 * - + 60
----
-5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT - + CASE + COUNT( * ) WHEN - ( + - MAX( ALL + 78 ) ) THEN NULL ELSE - CASE + + 63 WHEN + 60 THEN NULL WHEN - CAST( 38 AS SIGNED ) THEN NULL WHEN MIN( + CAST( NULL AS SIGNED ) ) / + 85 THEN 60 ELSE 95 * 55 END END + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT - + CASE + COUNT ( * ) WHEN - ( + - MAX ( ALL + 78 ) ) THEN NULL ELSE - CASE + + 63 WHEN + 60 THEN NULL WHEN - CAST ( 38 AS INTEGER ) THEN NULL WHEN MIN ( + CAST ( NULL AS INTEGER ) ) / + 85 THEN 60 ELSE 95 * 55 END END + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1424
SELECT ALL + 83 DIV + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL + 83 / + - COUNT ( * )
----
-83

query I rowsort
SELECT - - 14 + 40 + 4 col0
----
58

query I rowsort
SELECT DISTINCT + + 6 * NULLIF ( - 19, - 9 + + 67 ) AS col2
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT ALL MAX( DISTINCT + - 92 ) DIV 10 * - ( 87 ) * 93 * + ( - 77 ) AS col0
----
-5607063

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL MAX ( DISTINCT + - 92 ) / 10 * - ( 87 ) * 93 * + ( - 77 ) AS col0
----
-5607063

query I rowsort
SELECT - ( 9 ) + + 36 AS col0
----
27

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

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

query I rowsort
SELECT DISTINCT + + 14 * + 1 + - + 48 AS col2
----
-34

query I rowsort
SELECT DISTINCT - 31 + - 97 * 49
----
-4784

query I rowsort
SELECT ALL NULLIF ( + - 77, - + 49 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT ALL - - COUNT( * ) - - 13
----
14

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - - COUNT ( * ) - - 13
----
14

query I rowsort
SELECT - + 92 * + NULLIF ( + 44, - 90 * + - 34 ) + - 2 * - + 92 * + 73 + - 95 AS col2
----
9289

query I rowsort
SELECT - + 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - 18 + - 46 * COUNT( ALL - - 91 )
----
-64

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 18 + - 46 * COUNT ( ALL - - 91 )
----
-64

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

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

query I rowsort
SELECT + - 37 + - 6
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 45 * + 18 - + 75 + - + COUNT( * ) AS col2
----
-886

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 45 * + 18 - + 75 + - + COUNT ( * ) AS col2
----
-886

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

query I rowsort
SELECT ALL - 54 - + 14 + + 16
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL NULLIF ( 99, SUM( ALL 18 ) / + + 86 + - 15 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL NULLIF ( 99, SUM ( ALL 18 ) / + + 86 + - 15 ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT - 42 + + 25 + - COALESCE ( 8, - 64, 63 DIV - ( + 91 ) + NULLIF ( + 39, - COALESCE ( 85, + 71 DIV - 48 ) + 79 ) ) * 44
----
-369

skipif mysql # not compatible
query I rowsort label-1443
SELECT - 42 + + 25 + - COALESCE ( 8, - 64, 63 / - ( + 91 ) + NULLIF ( + 39, - COALESCE ( 85, + 71 / - 48 ) + 79 ) ) * 44
----
-369

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT - COALESCE ( 15, 13 - 81 * - 99 ) DIV + 52 col0
----
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT - COALESCE ( 15, 13 - 81 * - 99 ) / + 52 col0
----
0

query I rowsort
SELECT ALL CASE - 33 WHEN - - COALESCE ( - 98, 25 ) THEN NULL WHEN - + 78 * - - 82 THEN NULLIF ( 40, + 79 - 42 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT DISTINCT ( + - CAST( + COALESCE ( - 35, AVG ( 75 ) * + 89 / - NULLIF ( CASE COUNT( * ) WHEN + 86 THEN - MAX( DISTINCT 0 ) / + 97 END, + ( + COUNT( * ) ) ) * 96 ) AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT ( + - CAST ( + COALESCE ( - 35, AVG ( 75 ) * + 89 / - NULLIF ( CASE COUNT ( * ) WHEN + 86 THEN - MAX ( DISTINCT 0 ) / + 97 END, + ( + COUNT ( * ) ) ) * 96 ) AS INTEGER ) ) AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1447
SELECT ALL + 9 DIV + 56 * 72
----
0

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL + 9 / + 56 * 72
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT + 91 * - MAX( + - 20 ) AS col2
----
1820

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT + 91 * - MAX ( + - 20 ) AS col2
----
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT + 71 DIV 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1450
SELECT + 71 / 39 AS col1
----
1

query I rowsort
SELECT + 88 + - 32
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT SUM( + 44 ) * + 10 * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT SUM ( + 44 ) * + 10 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT 68 DIV - 76 * - - ( + + 84 ) + COUNT( * ) * - - 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT 68 / - 76 * - - ( + + 84 ) + COUNT ( * ) * - - 54 AS col1
----
54

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

skipif mysql # not compatible
query I rowsort label-1454
SELECT + CAST ( NULL AS INTEGER ) / + 37
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1456
SELECT ALL 36 DIV - CAST( 54 AS SIGNED ) + + ( + CASE + 37 WHEN + 89 THEN - + 98 ELSE - 27 * + COUNT( * ) + - 88 END )
----
-115

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL 36 / - CAST ( 54 AS INTEGER ) + + ( + CASE + 37 WHEN + 89 THEN - + 98 ELSE - 27 * + COUNT ( * ) + - 88 END )
----
-115

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT DISTINCT 11 DIV - 93 + + 49 col1
----
49

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT 11 / - 93 + + 49 col1
----
49

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

query I rowsort
SELECT + 81 * 90
----
7290

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT + MIN( + + NULLIF ( 81, 16 ) ) * + 79 * - CAST( NULL AS SIGNED ) + COALESCE ( + 66, + - 96 * + 88 + 32, + 1 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT + MIN ( + + NULLIF ( 81, 16 ) ) * + 79 * - CAST ( NULL AS INTEGER ) + COALESCE ( + 66, + - 96 * + 88 + 32, + 1 ) col0
----
NULL

query I rowsort
SELECT - 60 * - 58
----
3480

query I rowsort
SELECT DISTINCT - 21 * 32
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT ALL - 18 * - COALESCE ( + 63, - - NULLIF ( - - ( + 73 ), 84 ) ) + + 1 * - ( + CAST( + 89 AS SIGNED ) ) * COUNT( * ) + ( 97 ) + - MIN( DISTINCT 17 ) * + 87
----
-337

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - 18 * - COALESCE ( + 63, - - NULLIF ( - - ( + 73 ), 84 ) ) + + 1 * - ( + CAST ( + 89 AS INTEGER ) ) * COUNT ( * ) + ( 97 ) + - MIN ( DISTINCT 17 ) * + 87
----
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - 32 * - COUNT( * ) - 90 + + 73 * + + COUNT( * ) - - ( - 23 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1469
SELECT - 32 * - COUNT ( * ) - 90 + + 73 * + + COUNT ( * ) - - ( - 23 ) AS col1
----
-8

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

query I rowsort
SELECT + - 82 * 60
----
-4920

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

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

query I rowsort
SELECT DISTINCT 5 * - ( ( + 35 ) ) AS col2
----
-175

query I rowsort
SELECT ALL + 89 * 52 * - 91 - - 72 AS col2
----
-421076

query I rowsort
SELECT + 7 + - 16 AS col0
----
-9

query I rowsort
SELECT 41 * + 57 - 15
----
2322

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

skipif mysql # not compatible
query I rowsort label-1477
SELECT + 20 + 83 * - COUNT ( * ) AS col1
----
-63

query I rowsort
SELECT - 62 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL + COUNT( * ) * - 68 * + + 0 * 90
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + COUNT ( * ) * - 68 * + + 0 * 90
----
0

query I rowsort
SELECT ALL 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT - - 81 * - + 33 + SUM( + 93 ) * - MAX( - 86 )
----
5325

skipif mysql # not compatible
query I rowsort label-1481
SELECT - - 81 * - + 33 + SUM ( + 93 ) * - MAX ( - 86 )
----
5325

query I rowsort
SELECT - 1 + + + 76 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1483
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - CAST( NULL AS DECIMAL ) + - + 39 + + - COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1483
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS REAL ) + - + 39 + + - COUNT ( * ) AS col2
----
NULL
NULL

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

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

query I rowsort
SELECT ALL + 23 * - + 80
----
-1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT + COUNT( DISTINCT + + ( - 58 ) ) * - 50 * + COUNT( ALL + 93 ) * - COUNT( * ) DIV - - 91 DIV COUNT( - + 50 ) - - COALESCE ( + 43, + 27 * + 71, 62 ) + - 85 * + 55 col0
----
-4632

skipif mysql # not compatible
query I rowsort label-1486
SELECT + COUNT ( DISTINCT + + ( - 58 ) ) * - 50 * + COUNT ( ALL + 93 ) * - COUNT ( * ) / - - 91 / COUNT ( - + 50 ) - - COALESCE ( + 43, + 27 * + 71, 62 ) + - 85 * + 55 col0
----
-4632

query I rowsort
SELECT DISTINCT + 5 * - 59 AS col1
----
-295

query II rowsort
SELECT ALL 17, + 34 col1
----
17
34

query II rowsort
SELECT - 18 AS col0, 63 * + 22 AS col2
----
-18
1386

query I rowsort
SELECT 74 + + ( 77 ) + - 72
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT ALL 71, - COUNT( * ) * ( - COUNT( * ) ) * COUNT( * ) + - 34 * + 69 + - - MAX( + + 23 ) col1
----
71
-2322

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL 71, - COUNT ( * ) * ( - COUNT ( * ) ) * COUNT ( * ) + - 34 * + 69 + - - MAX ( + + 23 ) col1
----
71
-2322

query I rowsort
SELECT 80 * + + 1 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + SUM( 62 ) + + CASE + + 33 WHEN 82 THEN NULL WHEN 47 * + + 94 + + 12 + CAST( NULL AS SIGNED ) * - + 35 THEN ( 60 ) END + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + SUM ( 62 ) + + CASE + + 33 WHEN 82 THEN NULL WHEN 47 * + + 94 + + 12 + CAST ( NULL AS INTEGER ) * - + 35 THEN ( 60 ) END + 68
----
NULL

query I rowsort
SELECT DISTINCT + 5 * - + ( 45 )
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL - COUNT( * ) + + 4 * - 32 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL - COUNT ( * ) + + 4 * - 32 AS col0
----
-129

query I rowsort
SELECT 96 - + 22 + + 0 * - ( + - ( + + 52 ) )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT DISTINCT 32 AS col0, + SUM( DISTINCT - 89 ) * + - 63 * - 61 AS col2
----
32
-342027

skipif mysql # not compatible
query II rowsort label-1497
SELECT DISTINCT 32 AS col0, + SUM ( DISTINCT - 89 ) * + - 63 * - 61 AS col2
----
32
-342027

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT DISTINCT - COUNT( * ) + - + 2 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT - COUNT ( * ) + - + 2 AS col2
----
-3

query I rowsort
SELECT ALL - 80 col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1500
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - + 10 / - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 10 / - 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 43 * + + 1
----
43

query I rowsort
SELECT ALL - CASE WHEN NULL NOT BETWEEN NULL AND - 54 THEN - 32 / - NULLIF ( 26, - 95 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT COUNT( * ) - - 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1503
SELECT COUNT ( * ) - - 76 AS col0
----
77

query I rowsort
SELECT ALL 5 * - 53
----
-265

query I rowsort
SELECT - 75 + + + 94 col1
----
19

query I rowsort
SELECT ALL + 66 + - - 97 * 42 AS col2
----
4140

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

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

query I rowsort
SELECT ALL + 81 * - - 35
----
2835

query II rowsort
SELECT DISTINCT - 74, COALESCE ( + ( 12 ), - 51, 55 ) AS col2
----
-74
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT - - CASE + 6 WHEN + ( - + 17 ) - - 26 - - MAX( 15 ) * - COUNT( * ) THEN - 16 / + 79 * - 13 + + 62 + COUNT( 53 + 98 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - - CASE + 6 WHEN + ( - + 17 ) - - 26 - - MAX ( 15 ) * - COUNT ( * ) THEN - 16 / + 79 * - 13 + + 62 + COUNT ( 53 + 98 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT ALL 50 / 77 - 57 + + CAST( NULL AS SIGNED ) + + 94 - + 94 + 86 - - 58 + - 33 * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL 50 / 77 - 57 + + CAST ( NULL AS INTEGER ) + + 94 - + 94 + 86 - - 58 + - 33 * - 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - - 92 * + ( 92 ) + + COUNT( * ) * - 90 + + - COUNT( 78 ) * 23
----
8351

skipif mysql # not compatible
query I rowsort label-1512
SELECT - - 92 * + ( 92 ) + + COUNT ( * ) * - 90 + + - COUNT ( 78 ) * 23
----
8351

query I rowsort
SELECT ALL 94 - 29
----
65

query I rowsort
SELECT DISTINCT - 98 - + 8 - - NULLIF ( - + 97, 97 * + - 25 + + ( 20 ) ) * + + 79 AS col0
----
-7769

query II rowsort
SELECT ALL - - 17, 97 * - 55 * + 56 AS col1
----
17
-298760

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT - 61 + + COALESCE ( 55, - COALESCE ( + 37, - MAX( DISTINCT - + 76 ) * - - COUNT( * ) * - + 88 ), 33 DIV + + 80 DIV 92 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1517
SELECT - 61 + + COALESCE ( 55, - COALESCE ( + 37, - MAX ( DISTINCT - + 76 ) * - - COUNT ( * ) * - + 88 ), 33 / + + 80 / 92 ) AS col0
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT - COUNT( * ) * + + 79 * + - 89 * + 90 + - 74 AS col0
----
632716

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - COUNT ( * ) * + + 79 * + - 89 * + 90 + - 74 AS col0
----
632716

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - CASE + + CASE + + 25 WHEN 90 THEN NULL WHEN - COUNT( * ) THEN COUNT( DISTINCT - 69 ) * - + AVG ( - 79 ) + + + 5 + + + 12 + 77 * + 47 ELSE NULL END WHEN 73 THEN 81 * 92 + 74 ELSE 38 END AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1523
SELECT - CASE + + CASE + + 25 WHEN 90 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( DISTINCT - 69 ) * - + AVG ( - 79 ) + + + 5 + + + 12 + 77 * + 47 ELSE NULL END WHEN 73 THEN 81 * 92 + 74 ELSE 38 END AS col0
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1524
SELECT ALL 13 col0, CASE ( + 17 ) WHEN + - 31 THEN NULL ELSE + 99 * + + 31 * AVG ( DISTINCT 44 ) - - ( - 39 ) END - CAST( NULL AS DECIMAL )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT ALL 13 col0, CASE ( + 17 ) WHEN + - 31 THEN NULL ELSE + 99 * + + 31 * AVG ( DISTINCT 44 ) - - ( - 39 ) END - CAST ( NULL AS REAL )
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT 6 * + + 23 + - 4 - + COUNT( * ) * - 85
----
219

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT 6 * + + 23 + - 4 - + COUNT ( * ) * - 85
----
219

query II rowsort
SELECT - 74 AS col0, 71
----
-74
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT - - CAST( - 33 AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1527
SELECT - - CAST ( - 33 AS INTEGER ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT ALL 84 * - 2 col0, 27 * - 80 + + COUNT( * ) * COUNT( * ) + - 5 AS col0
----
-168
-2164

skipif mysql # not compatible
query II rowsort label-1528
SELECT ALL 84 * - 2 col0, 27 * - 80 + + COUNT ( * ) * COUNT ( * ) + - 5 AS col0
----
-168
-2164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT SUM( ALL CAST( 92 AS SIGNED ) ) - CASE 62 WHEN - - ( + 79 ) THEN + 21 * + 21 + 41 - - 91 END * + 30 + CAST( + 92 + + MAX( ALL + 63 ) / + 56 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT SUM ( ALL CAST ( 92 AS INTEGER ) ) - CASE 62 WHEN - - ( + 79 ) THEN + 21 * + 21 + 41 - - 91 END * + 30 + CAST ( + 92 + + MAX ( ALL + 63 ) / + 56 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 74 * 33 col2, 16
----
2442
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT 80 DIV - - SUM( DISTINCT + 2 )
----
40

skipif mysql # not compatible
query I rowsort label-1531
SELECT 80 / - - SUM ( DISTINCT + 2 )
----
40

query I rowsort
SELECT 16 * + - 47 AS col1
----
-752

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

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

query I rowsort
SELECT 5 + 89
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL 35 + + SUM( - + 1 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 35 + + SUM ( - + 1 ) AS col0
----
34

query I rowsort
SELECT ALL + 56 * - 76
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL COUNT( * ) + - 7 + + 63 + + 30 * - ( - + ( - 93 ) ) * - 35 AS col2
----
97707

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL COUNT ( * ) + - 7 + + 63 + + 30 * - ( - + ( - 93 ) ) * - 35 AS col2
----
97707

query I rowsort
SELECT ALL + 47 + 51 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT SUM( ALL - 27 ) * + 25
----
-675

skipif mysql # not compatible
query I rowsort label-1539
SELECT SUM ( ALL - 27 ) * + 25
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1540
SELECT 31 + CAST( NULL AS SIGNED ) * - - 96 * 49 + - 22 * 47 * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT 31 + CAST ( NULL AS INTEGER ) * - - 96 * 49 + - 22 * 47 * 57 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 2 + + 76
----
74

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1543
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 43 * - ( - 76 ) - - - 62 * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL + CAST ( NULL AS REAL ) * - - 43 * - ( - 76 ) - - - 62 * - 10
----
NULL

query I rowsort
SELECT DISTINCT - 56 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1545
SELECT ALL - + NULLIF ( + - 96, - 18 + + + 38 - 72 * 3 / + - COUNT( * ) ), 34 AS col2
----
96
34

skipif mysql # not compatible
query II rowsort label-1545
SELECT ALL - + NULLIF ( + - 96, - 18 + + + 38 - 72 * 3 / + - COUNT ( * ) ), 34 AS col2
----
96
34

query I rowsort
SELECT ALL - - 26
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT ALL - - 86 * + + COALESCE ( ( - ( - 4 ) ), CAST( NULL AS SIGNED ) ) * - 3
----
-1032

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - - 86 * + + COALESCE ( ( - ( - 4 ) ), CAST ( NULL AS INTEGER ) ) * - 3
----
-1032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT COALESCE ( + COALESCE ( - 3, + 28, 96 ), + + COUNT( * ) * + 18 DIV + 26 + 15 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1548
SELECT COALESCE ( + COALESCE ( - 3, + 28, 96 ), + + COUNT ( * ) * + 18 / + 26 + 15 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT 55 * - 33 + + 57 - COUNT( * ) * + 40 col2
----
-1798

skipif mysql # not compatible
query I rowsort label-1549
SELECT 55 * - 33 + + 57 - COUNT ( * ) * + 40 col2
----
-1798

query I rowsort
SELECT 79 * - 78 * + 76
----
-468312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1551
SELECT - + ( 46 ) DIV + + 43 - + + CAST( SUM( ( - 69 ) ) AS SIGNED ) + 31 + + 75 + - 45 * - NULLIF ( + 38, 61 )
----
1884

skipif mysql # not compatible
query I rowsort label-1551
SELECT - + ( 46 ) / + + 43 - + + CAST ( SUM ( ( - 69 ) ) AS INTEGER ) + 31 + + 75 + - 45 * - NULLIF ( + 38, 61 )
----
1884

query I rowsort
SELECT + + NULLIF ( + 41, + 12 + + 69 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL - ( CASE - + ( - - 49 ) WHEN + 46 * + - COUNT( * ) * - - 74 THEN - 90 * - - 24 * - ( NULLIF ( - 96, 50 ) ) * CASE NULLIF ( - NULLIF ( 22, + 8 * COUNT( * ) + + COUNT( * ) ), + 12 ) * - 73 + 55 WHEN - 46 THEN - 45 WHEN + 74 THEN NULL END ELSE COALESCE ( - 94, MAX( DISTINCT ( 15 ) ) - + COUNT( * ) ) * 87 END ) AS col1
----
8178

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - ( CASE - + ( - - 49 ) WHEN + 46 * + - COUNT ( * ) * - - 74 THEN - 90 * - - 24 * - ( NULLIF ( - 96, 50 ) ) * CASE NULLIF ( - NULLIF ( 22, + 8 * COUNT ( * ) + + COUNT ( * ) ), + 12 ) * - 73 + 55 WHEN - 46 THEN - 45 WHEN + 74 THEN NULL END ELSE COALESCE ( - 94, MAX ( DISTINCT ( 15 ) ) - + COUNT ( * ) ) * 87 END ) AS col1
----
8178

query II rowsort
SELECT ALL - 11 * + + 79 * + 64 AS col2, - 57 AS col1
----
-55616
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1555
SELECT + ( + CAST( + SUM( 36 ) AS SIGNED ) ) AS col0
----
36

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

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

query I rowsort
SELECT ALL - 40 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT + 34 * SUM( - 59 )
----
-2006

skipif mysql # not compatible
query I rowsort label-1558
SELECT + 34 * SUM ( - 59 )
----
-2006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT ALL - - COALESCE ( - + 70, + COUNT( * ) - 94 + + 66, + CAST( 94 AS SIGNED ) - + + ( - + 32 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - - COALESCE ( - + 70, + COUNT ( * ) - 94 + + 66, + CAST ( 94 AS INTEGER ) - + + ( - + 32 ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1560
SELECT + + COUNT( - 63 ) DIV + - 24
----
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT + + COUNT ( - 63 ) / + - 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT ALL + - 77 + - + 21 DIV - - COUNT( * ) + + + 29 col1
----
-69

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL + - 77 + - + 21 / - - COUNT ( * ) + + + 29 col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT - COUNT( DISTINCT + - 16 ) * - ( + + 54 ) - + MIN( + 46 ) * - ( - 97 ) AS col0, - 64 + 89 + - COUNT( * ) + 38 AS col0
----
-4408
62

skipif mysql # not compatible
query II rowsort label-1562
SELECT - COUNT ( DISTINCT + - 16 ) * - ( + + 54 ) - + MIN ( + 46 ) * - ( - 97 ) AS col0, - 64 + 89 + - COUNT ( * ) + 38 AS col0
----
-4408
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT + 65 + CAST( - 57 AS SIGNED ) - + 39
----
-31

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 65 + CAST ( - 57 AS INTEGER ) - + 39
----
-31

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

skipif mysql # not compatible
query II rowsort label-1564
SELECT DISTINCT 65 AS col1, COUNT ( * )
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT + 33 + - + COALESCE ( + 2, 44 + 82 + + 19 * 1, - - CASE WHEN NULL IS NULL THEN COUNT( * ) END ) * - 71 + - + COUNT( * ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT + 33 + - + COALESCE ( + 2, 44 + 82 + + 19 * 1, - - CASE WHEN NULL IS NULL THEN COUNT ( * ) END ) * - 71 + - + COUNT ( * ) AS col0
----
174

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + 88 + + 67 + 90 * + 46 + COUNT( * ) AS col1
----
4296

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 88 + + 67 + 90 * + 46 + COUNT ( * ) AS col1
----
4296

query I rowsort
SELECT ALL 94 * - 37
----
-3478

query I rowsort
SELECT - NULLIF ( + + 49, 31 * + ( + 7 ) ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT + CAST( - 68 AS SIGNED ) - + 50
----
-118

skipif mysql # not compatible
query I rowsort label-1570
SELECT + CAST ( - 68 AS INTEGER ) - + 50
----
-118

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT ALL 36 AS col2, + COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-1572
SELECT ALL 36 AS col2, + COUNT ( * )
----
36
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT - 76 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT - 76 / + 82 AS col1
----
0

query II rowsort
SELECT 74 AS col0, 83 AS col2
----
74
83

query II rowsort
SELECT - 92 AS col0, 93 col0
----
-92
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1576
SELECT ALL CAST( - 69 AS SIGNED ) - - - COUNT( * ) * 74 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL CAST ( - 69 AS INTEGER ) - - - COUNT ( * ) * 74 AS col1
----
-143

query I rowsort
SELECT DISTINCT 98 col2
----
98

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

query I rowsort
SELECT DISTINCT + 17 * - 67
----
-1139

query I rowsort
SELECT - 93 * - + 83 AS col1
----
7719

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

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

query I rowsort
SELECT + 37 * 57 AS col0
----
2109

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

skipif mysql # not compatible
query I rowsort label-1583
SELECT + SUM ( + 1 )
----
1

query I rowsort
SELECT ALL - 14 * 36 AS col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT 9 * 39 + - NULLIF ( COUNT( * ), + 9 + - 56 + - CASE - + 22 WHEN 82 THEN NULL WHEN - + 53 * 86 THEN COUNT( * ) * - 90 * NULLIF ( 56, - COUNT( * ) + 88 ) END * + 2 ) + + COUNT( * ) AS col1
----
351

skipif mysql # not compatible
query I rowsort label-1585
SELECT 9 * 39 + - NULLIF ( COUNT ( * ), + 9 + - 56 + - CASE - + 22 WHEN 82 THEN NULL WHEN - + 53 * 86 THEN COUNT ( * ) * - 90 * NULLIF ( 56, - COUNT ( * ) + 88 ) END * + 2 ) + + COUNT ( * ) AS col1
----
351

query I rowsort
SELECT - - 3 - - + 35 AS col1
----
38

query I rowsort
SELECT + ( - 51 ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL + + MIN( ALL - + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + + MIN ( ALL - + 11 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT - + 54 DIV + 49 - 0 + 55
----
54

skipif mysql # not compatible
query I rowsort label-1589
SELECT - + 54 / + 49 - 0 + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT + 38 * + 6 - ( + - ( - COUNT( * ) ) ) AS col0
----
227

skipif mysql # not compatible
query I rowsort label-1590
SELECT + 38 * + 6 - ( + - ( - COUNT ( * ) ) ) AS col0
----
227

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT + - MIN( - 59 ) + + NULLIF ( + 58, 31 + + - 58 )
----
117

skipif mysql # not compatible
query I rowsort label-1592
SELECT + - MIN ( - 59 ) + + NULLIF ( + 58, 31 + + - 58 )
----
117

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL AVG ( ALL - 29 ) * + - 45 / - 13 + + ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * + 49 * - MAX( + 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL AVG ( ALL - 29 ) * + - 45 / - 13 + + ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * + 49 * - MAX ( + 33 ) AS col0
----
NULL

query II rowsort
SELECT ALL + + 79 AS col1, 22 + + 41
----
79
63

query II rowsort
SELECT DISTINCT + 24 AS col2, + 64 * 90
----
24
5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1597
SELECT + 71 * + 86 * + CASE + CASE - - 82 WHEN + 32 + - - 59 THEN NULL ELSE ( CAST( NULL AS SIGNED ) ) END WHEN ( - 4 ) THEN 89 - 95 ELSE 39 * + 10 END + COUNT( * ) AS col1
----
2381341

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 71 * + 86 * + CASE + CASE - - 82 WHEN + 32 + - - 59 THEN NULL ELSE ( CAST ( NULL AS INTEGER ) ) END WHEN ( - 4 ) THEN 89 - 95 ELSE 39 * + 10 END + COUNT ( * ) AS col1
----
2381341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1598
SELECT ALL - COUNT( * ) * 19 DIV + 24 + + + COUNT( * ) * 48 - - COALESCE ( + 90, + - COUNT( * ) + 41 * - 61 ) DIV + 30
----
51

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - COUNT ( * ) * 19 / + 24 + + + COUNT ( * ) * 48 - - COALESCE ( + 90, + - COUNT ( * ) + 41 * - 61 ) / + 30
----
51

query I rowsort
SELECT ALL 75 * + - 40 + 96
----
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT - + COUNT( * ) * - 49 col0
----
49

skipif mysql # not compatible
query I rowsort label-1600
SELECT - + COUNT ( * ) * - 49 col0
----
49

query I rowsort
SELECT ( + - COALESCE ( 34, + NULLIF ( + 27, + 97 ) + - + 28 ) ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT - 85 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT - 85 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + COALESCE ( 3, + COUNT( * ), 42 + 7 + NULLIF ( ( 11 ), + + CASE - 32 WHEN + 39 / + - 57 + + + 10 THEN NULL ELSE 15 + AVG ( 16 + - 44 ) END ) + - 41 * 95 )
----
3

skipif mysql # not compatible
query I rowsort label-1603
SELECT + COALESCE ( 3, + COUNT ( * ), 42 + 7 + NULLIF ( ( 11 ), + + CASE - 32 WHEN + 39 / + - 57 + + + 10 THEN NULL ELSE 15 + AVG ( 16 + - 44 ) END ) + - 41 * 95 )
----
3

query I rowsort
SELECT - 48 + - 95 AS col1
----
-143

query I rowsort
SELECT ALL + 45 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1606
SELECT ALL - 98 * ( - 48 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL - 98 * ( - 48 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT 77 * - - 14 + 62 col0
----
1140

onlyif mysql # DIV for integer division: 
query II rowsort label-1609
SELECT DISTINCT - NULLIF ( + ( + 12 ), + 88 + - 47 ) * - - ( + 97 ) * + 56 + + 3 DIV - 84 col2, - 36 AS col2
----
-65184
-36

skipif mysql # not compatible
query II rowsort label-1609
SELECT DISTINCT - NULLIF ( + ( + 12 ), + 88 + - 47 ) * - - ( + 97 ) * + 56 + + 3 / - 84 col2, - 36 AS col2
----
-65184
-36

query I rowsort
SELECT DISTINCT ( 22 )
----
22

query I rowsort
SELECT + 65 * 14 AS col2
----
910

onlyif mysql # DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT + 11 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + 11 / 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT - 94 + NULLIF ( + - COUNT( * ), - 56 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1613
SELECT - 94 + NULLIF ( + - COUNT ( * ), - 56 ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT - CAST( + + 78 AS SIGNED ) - - - 37 * 87 AS col1
----
-3297

skipif mysql # not compatible
query I rowsort label-1614
SELECT - CAST ( + + 78 AS INTEGER ) - - - 37 * 87 AS col1
----
-3297

query II rowsort
SELECT - 70 + + + 73 col1, - 78 + - ( 58 ) + + + 25 AS col0
----
3
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + MAX( - + 48 ) + - - 35
----
-13

skipif mysql # not compatible
query I rowsort label-1616
SELECT + MAX ( - + 48 ) + - - 35
----
-13

query I rowsort
SELECT DISTINCT ( - + 18 ) - 35 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - CASE + - COUNT( * ) WHEN - + COUNT( * ) + + 65 THEN + 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - CASE + - COUNT ( * ) WHEN - + COUNT ( * ) + + 65 THEN + 26 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT + SUM( - 32 ) - + 63 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + SUM ( - 32 ) - + 63 AS col1
----
-95

query I rowsort
SELECT ALL 10 * + + 33
----
330

query I rowsort
SELECT + 16 + + - 83 * - 55 + - 27 col2
----
4554

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

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT COUNT ( * ) * + 76 AS col0
----
76

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

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

query I rowsort
SELECT COALESCE ( + 8, + + 26 )
----
8

query I rowsort
SELECT NULLIF ( ( 17 ), + ( 11 ) * + 14 * - 90 ) col1
----
17

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1627
SELECT ALL + - CASE - 8 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) + + - 73 / + NULLIF ( + 36, 24 + - - 48 ) / COALESCE ( - + MIN( - 67 ), - CAST( NULL AS DECIMAL ), - + 55, + 98 ) + + 49 THEN + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + - CASE - 8 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) + + - 73 / + NULLIF ( + 36, 24 + - - 48 ) / COALESCE ( - + MIN ( - 67 ), - CAST ( NULL AS REAL ), - + 55, + 98 ) + + 49 THEN + 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + 57 * - COUNT( * ) * 1
----
-57

skipif mysql # not compatible
query I rowsort label-1628
SELECT + 57 * - COUNT ( * ) * 1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL - 36 DIV 24 + 99 col0
----
98

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - 36 / 24 + 99 col0
----
98

query I rowsort
SELECT + - 41 col0
----
-41

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT ALL - ( 8 ) + ( + + COUNT( + 84 ) ) AS col1, 39
----
-7
39

skipif mysql # not compatible
query II rowsort label-1634
SELECT ALL - ( 8 ) + ( + + COUNT ( + 84 ) ) AS col1, 39
----
-7
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT - 29 * - + CASE + SUM( + + 32 ) WHEN - 32 THEN - 50 * - - 15 * 22 / + NULLIF ( + - CASE 37 WHEN - + 97 THEN NULL WHEN - COUNT( * ) * - 46 THEN NULL ELSE + COUNT( * ) + 39 / 69 END, + ( 24 ) ) ELSE NULL END * + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 29 * - + CASE + SUM ( + + 32 ) WHEN - 32 THEN - 50 * - - 15 * 22 / + NULLIF ( + - CASE 37 WHEN - + 97 THEN NULL WHEN - COUNT ( * ) * - 46 THEN NULL ELSE + COUNT ( * ) + 39 / 69 END, + ( 24 ) ) ELSE NULL END * + 51 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1637
SELECT 59 * + CAST( NULL AS SIGNED ) AS col0, - 92 AS col1
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-1637
SELECT 59 * + CAST ( NULL AS INTEGER ) AS col0, - 92 AS col1
----
NULL
-92

query I rowsort
SELECT ALL - - 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL 57 + - 98 + CASE - COUNT( DISTINCT - - ( + + 88 ) ) WHEN + - NULLIF ( + 80, 10 ) * - + 60 THEN COUNT( * ) WHEN - 41 * - - 90 THEN NULL WHEN + 6 - 46 THEN + 47 * - 46 ELSE NULL END * - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL 57 + - 98 + CASE - COUNT ( DISTINCT - - ( + + 88 ) ) WHEN + - NULLIF ( + 80, 10 ) * - + 60 THEN COUNT ( * ) WHEN - 41 * - - 90 THEN NULL WHEN + 6 - 46 THEN + 47 * - 46 ELSE NULL END * - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT - COUNT( - - 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - COUNT ( - - 57 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-1641
SELECT DISTINCT - 61, MIN( 34 ) AS col2, + COUNT( * ) AS col2
----
-61
34
1

skipif mysql # not compatible
query III rowsort label-1641
SELECT DISTINCT - 61, MIN ( 34 ) AS col2, + COUNT ( * ) AS col2
----
-61
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + 33 + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + 33 + COUNT ( * )
----
34

query II rowsort
SELECT + 60 * - 4 - + 97, 35 AS col1
----
-337
35

query I rowsort
SELECT 9 - + - 56 AS col1
----
65

query I rowsort
SELECT ( + - 91 ) * + 20 * + + 54 * + 96
----
-9434880

query I rowsort
SELECT 25 * + - 32 AS col0
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT ALL + NULLIF ( 46, + ( + 68 ) ) DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + NULLIF ( 46, + ( + 68 ) ) / 90 AS col2
----
0

query II rowsort
SELECT ALL 20 AS col2, + 39
----
20
39

query I rowsort
SELECT 99 + - 18 AS col1
----
81

query I rowsort
SELECT 8 + - 3
----
5

query I rowsort
SELECT - 22 * + 35 * + + 78 * - COALESCE ( - 77, - 60 * 9 + + ( 16 ) + + 27 ) - + 84
----
-4624704

query I rowsort
SELECT 15 * ( - 64 ) * + - 90 AS col1
----
86400

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL MAX( DISTINCT - 89 ) * - + 39
----
3471

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL MAX ( DISTINCT - 89 ) * - + 39
----
3471

query I rowsort
SELECT DISTINCT 84 col0
----
84

query I rowsort
SELECT ALL + 98 * + + NULLIF ( + 31, + - 78 ) AS col0
----
3038

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

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

query II rowsort
SELECT ALL 46 AS col0, + COALESCE ( - 0, + 8 * + 3 * 95 ) AS col2
----
46
0

query I rowsort
SELECT 20 - 24 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT 24 DIV - + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT 24 / - + 25 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - 73 / - - CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT - + COUNT( * ) / CASE + 63 WHEN + 84 * + 73 THEN COUNT( 27 ) / - 16 * + 25 + 30 + 13 * + 74 * 76 * 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - + COUNT ( * ) / CASE + 63 WHEN + 84 * + 73 THEN COUNT ( 27 ) / - 16 * + 25 + 30 + 13 * + 74 * 76 * 11 ELSE NULL END
----
NULL

query I rowsort
SELECT - 28 + - 59 + + 78 * + 3
----
147

query I rowsort
SELECT DISTINCT 76 + + 17
----
93

query I rowsort
SELECT DISTINCT + - 8 + - 47 - - - 36 col1
----
-91

query I rowsort
SELECT 56 - + 32
----
24

query I rowsort
SELECT - + 71 AS col0
----
-71

query I rowsort
SELECT DISTINCT - NULLIF ( + 18, + 68 ) + - + ( - ( + - 79 ) )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT ALL 61 + 2 * - COUNT( * ), 70 AS col0
----
59
70

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL 61 + 2 * - COUNT ( * ), 70 AS col0
----
59
70

query I rowsort
SELECT 36 + - 59 - + 0 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL COUNT( DISTINCT 19 ) + + 22 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL COUNT ( DISTINCT 19 ) + + 22 AS col1
----
23

query I rowsort
SELECT ALL - + 83 AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1674
SELECT + 99 DIV 62 * + ( - - 11 ) - CASE 64 WHEN ( - COUNT( * ) ) + - 94 THEN NULL WHEN + ( - AVG ( + 79 ) ) * + + COUNT( * ) - - + 32 THEN NULL WHEN + 15 THEN NULL ELSE 26 * 20 END + + 60 + MIN( 56 - + 35 ) * 14
----
-155

skipif mysql # not compatible
query I rowsort label-1674
SELECT + 99 / 62 * + ( - - 11 ) - CASE 64 WHEN ( - COUNT ( * ) ) + - 94 THEN NULL WHEN + ( - AVG ( + 79 ) ) * + + COUNT ( * ) - - + 32 THEN NULL WHEN + 15 THEN NULL ELSE 26 * 20 END + + 60 + MIN ( 56 - + 35 ) * 14
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - - 59 * + COUNT( * ) - + - ( + 96 ) + + 57 + + 86 col1
----
298

skipif mysql # not compatible
query I rowsort label-1675
SELECT - - 59 * + COUNT ( * ) - + - ( + 96 ) + + 57 + + 86 col1
----
298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT ALL - - 3 + + 63 + - - COUNT( + 66 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL - - 3 + + 63 + - - COUNT ( + 66 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 77 + - 71 AS col1
----
6

query II rowsort
SELECT + + 20 AS col0, ( + 22 ) * - ( 73 )
----
20
-1606

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL + 55 - - - COALESCE ( 95, + 24 + - - MAX( - CASE WHEN NOT NULL <> ( NULL ) THEN - 27 ELSE 80 END ) - + 15, - COUNT( DISTINCT 35 ) + - + 3 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + 55 - - - COALESCE ( 95, + 24 + - - MAX ( - CASE WHEN NOT NULL <> ( NULL ) THEN - 27 ELSE 80 END ) - + 15, - COUNT ( DISTINCT 35 ) + - + 3 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - 94 * 77 + + COUNT( * ) + + 52
----
-7185

skipif mysql # not compatible
query I rowsort label-1680
SELECT - 94 * 77 + + COUNT ( * ) + + 52
----
-7185

query II rowsort
SELECT ALL + 28 * - 38 col0, + 96 AS col2
----
-1064
96

query I rowsort
SELECT 18 + 8 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1683
SELECT ALL 71 - + - 87 - - + ( COUNT( * ) ) * + 9 * + + 4 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
194
NULL

skipif mysql # not compatible
query II rowsort label-1683
SELECT ALL 71 - + - 87 - - + ( COUNT ( * ) ) * + 9 * + + 4 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
194
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT 89 DIV + - 43
----
-2

skipif mysql # not compatible
query I rowsort label-1684
SELECT 89 / + - 43
----
-2

query I rowsort
SELECT 25 * - + 11 AS col2
----
-275

query II rowsort
SELECT + 65 AS col0, 8 AS col2
----
65
8

query I rowsort
SELECT 34 * + 27
----
918

query I rowsort
SELECT 44 + 18
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1689
SELECT ALL - 79, NULLIF ( 84, - 57 * - + 63 * CAST( + 5 AS SIGNED ) + + CASE - 71 WHEN 84 THEN + 25 / - - ( + - 19 ) END ) col0
----
-79
84

skipif mysql # not compatible
query II rowsort label-1689
SELECT ALL - 79, NULLIF ( 84, - 57 * - + 63 * CAST ( + 5 AS INTEGER ) + + CASE - 71 WHEN 84 THEN + 25 / - - ( + - 19 ) END ) col0
----
-79
84

query I rowsort
SELECT DISTINCT - 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ( - + COUNT( * ) ) * NULLIF ( + - 37, - 35 )
----
37

skipif mysql # not compatible
query I rowsort label-1691
SELECT ( - + COUNT ( * ) ) * NULLIF ( + - 37, - 35 )
----
37

query III rowsort
SELECT 98, 61 AS col1, 38 AS col0
----
98
61
38

query I rowsort
SELECT 40 + + 7 + - 50 AS col2
----
-3

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

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

query II rowsort
SELECT ALL 41 AS col0, - 73 AS col2
----
41
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-1696
SELECT - 43 AS col1, + 74 * + - 84 * - + COUNT( * ) AS col1
----
-43
6216

skipif mysql # not compatible
query II rowsort label-1696
SELECT - 43 AS col1, + 74 * + - 84 * - + COUNT ( * ) AS col1
----
-43
6216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT COUNT( * ) + + 78 DIV - 95 + - - 74 - 29
----
46

skipif mysql # not compatible
query I rowsort label-1697
SELECT COUNT ( * ) + + 78 / - 95 + - - 74 - 29
----
46

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

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

query I rowsort
SELECT + 82 + 40 + + + ( + 89 ) + - - 24
----
235

onlyif mysql # aggregate syntax: 
query II rowsort label-1700
SELECT - 64 col1, + COUNT( * ) * 13 AS col0
----
-64
13

skipif mysql # not compatible
query II rowsort label-1700
SELECT - 64 col1, + COUNT ( * ) * 13 AS col0
----
-64
13

query I rowsort
SELECT ALL + 36 + - 3 AS col1
----
33

query I rowsort
SELECT ALL - + COALESCE ( + 64, - 88 ) + 38
----
-26

query I rowsort
SELECT - 48 + + 47 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT + MIN( DISTINCT - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-1704
SELECT + MIN ( DISTINCT - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL + + 56 * - MIN( - 91 ) + 98 AS col1
----
5194

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + + 56 * - MIN ( - 91 ) + 98 AS col1
----
5194

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT - 75 DIV 79 DIV + - 71 + 23 + + 54 * + + 88
----
4775

skipif mysql # not compatible
query I rowsort label-1706
SELECT - 75 / 79 / + - 71 + 23 + + 54 * + + 88
----
4775

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL - + 43 + - ( + 38 ) - COUNT( - 44 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - + 43 + - ( + 38 ) - COUNT ( - 44 ) AS col1
----
-82

query I rowsort
SELECT - + 95 * + 43 col2
----
-4085

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1710
SELECT - - 20 * - 23 AS col1, CASE WHEN COUNT( * ) NOT IN ( + 57 DIV 40, - MAX( ALL 41 ) ) THEN - - 5 ELSE + 35 END
----
-460
35

skipif mysql # not compatible
query II rowsort label-1710
SELECT - - 20 * - 23 AS col1, CASE WHEN COUNT ( * ) NOT IN ( + 57 / 40, - MAX ( ALL 41 ) ) THEN - - 5 ELSE + 35 END
----
-460
35

query I rowsort
SELECT DISTINCT + COALESCE ( + 19, - + 2 )
----
19

query I rowsort
SELECT + - 40 + - 63 col1
----
-103

query I rowsort
SELECT ALL + 99 col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1714
SELECT + 44, - CAST( NULL AS SIGNED ) AS col2, 77 AS col0
----
44
NULL
77

skipif mysql # not compatible
query III rowsort label-1714
SELECT + 44, - CAST ( NULL AS INTEGER ) AS col2, 77 AS col0
----
44
NULL
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1715
SELECT ALL - + 89 * 46 + + 15 - + + 3 - - CAST( NULL AS DECIMAL ) * + 3 * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL - + 89 * 46 + + 15 - + + 3 - - CAST ( NULL AS REAL ) * + 3 * + - 54
----
NULL

query I rowsort
SELECT DISTINCT + - 34
----
-34

query I rowsort
SELECT ALL + - 8 AS col2
----
-8

query I rowsort
SELECT ALL + + 88 * - + 81 * - 34
----
242352

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT + 7 * + CASE + 98 WHEN CAST( NULL AS SIGNED ) * - 11 + - COUNT( * ) + + - 52 THEN NULL WHEN - 63 + + 1 THEN 71 + 51 * 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT + 7 * + CASE + 98 WHEN CAST ( NULL AS INTEGER ) * - 11 + - COUNT ( * ) + + - 52 THEN NULL WHEN - 63 + + 1 THEN 71 + 51 * 23 ELSE NULL END
----
NULL

query I rowsort
SELECT + 52 * + - 7 - - + 53 AS col0
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT CASE - 31 WHEN + 69 + COUNT( * ) THEN NULL WHEN + - 15 THEN - COUNT( * ) * - 2 * - + 30 * + + 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT CASE - 31 WHEN + 69 + COUNT ( * ) THEN NULL WHEN + - 15 THEN - COUNT ( * ) * - 2 * - + 30 * + + 79 ELSE NULL END
----
NULL

query I rowsort
SELECT + 59 * ( - - 19 ) AS col1
----
1121

query I rowsort
SELECT - 71 * + + 89 AS col2
----
-6319

query I rowsort
SELECT - 30 + + - 1 + 83
----
52

query I rowsort
SELECT + 6 * - 33 AS col2
----
-198

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

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL 18 / + - COUNT ( * ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT + 23 DIV - 75 * 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT + 23 / - 75 * 42 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1729
SELECT DISTINCT 64 DIV + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT 64 / + COUNT ( * ) AS col0
----
64

query II rowsort
SELECT + 76 - 30 AS col0, ( + 3 ) AS col1
----
46
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT + 93 DIV + + 20 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1731
SELECT + 93 / + + 20 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1732
SELECT + ( - 33 ), - MAX( ALL 10 ) AS col1
----
-33
-10

skipif mysql # not compatible
query II rowsort label-1732
SELECT + ( - 33 ), - MAX ( ALL 10 ) AS col1
----
-33
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT COUNT( DISTINCT 12 )
----
1

skipif mysql # not compatible
query I rowsort label-1733
SELECT COUNT ( DISTINCT 12 )
----
1

query I rowsort
SELECT + 40 + - + 5 + 25 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1735
SELECT - CAST( NULL AS SIGNED ) - + - 6 AS col2, 43 * - 55 AS col0
----
NULL
-2365

skipif mysql # not compatible
query II rowsort label-1735
SELECT - CAST ( NULL AS INTEGER ) - + - 6 AS col2, 43 * - 55 AS col0
----
NULL
-2365

query I rowsort
SELECT ALL 49 + 41 + + - ( - 97 ) * + - 3 AS col2
----
-201

query I rowsort
SELECT ALL + 7 + - ( + 10 ) - - 85 + 28 + + - 13 + - - 69 AS col1
----
166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1738
SELECT ALL - NULLIF ( + + COUNT( * ), + CAST( NULL AS DECIMAL ) ) + + - 45 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - NULLIF ( + + COUNT ( * ), + CAST ( NULL AS REAL ) ) + + - 45 AS col2
----
-46

query II rowsort
SELECT DISTINCT - ( 22 ), - 47 + - 64 AS col0
----
-22
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT ALL + 4 + - 50 + 81 * COUNT( * ) DIV + + 34
----
-44

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 4 + - 50 + 81 * COUNT ( * ) / + + 34
----
-44

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

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

query II rowsort
SELECT ALL ( - - ( - + 39 ) ) col2, + ( 9 ) * 92 AS col2
----
-39
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT ALL - CAST( + + 4 AS SIGNED ) - 78
----
-82

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL - CAST ( + + 4 AS INTEGER ) - 78
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1744
SELECT - 49 - MAX( + NULLIF ( - - 99, - CAST( 22 AS SIGNED ) ) ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 49 - MAX ( + NULLIF ( - - 99, - CAST ( 22 AS INTEGER ) ) ) AS col2
----
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT DISTINCT COUNT( * ) * + - 66 * CAST( + 9 AS SIGNED ) + 97
----
-497

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT COUNT ( * ) * + - 66 * CAST ( + 9 AS INTEGER ) + 97
----
-497

query I rowsort
SELECT DISTINCT 6 AS col0
----
6

query II rowsort
SELECT DISTINCT COALESCE ( 52, - 3 + - ( - 51 ) ) col1, + 8 col1
----
52
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL - COUNT( * ) * + SUM( DISTINCT 81 ) + + + 73
----
-8

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT 81 ) + + + 73
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT - + CAST( - AVG ( ALL + 79 ) AS SIGNED ) + + - 31 + - + 21 * 82 AS col0
----
-1674

skipif mysql # not compatible
query I rowsort label-1749
SELECT - + CAST ( - AVG ( ALL + 79 ) AS INTEGER ) + + - 31 + - + 21 * 82 AS col0
----
-1674

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

query I rowsort
SELECT - - 42 * 86 AS col2
----
3612

query II rowsort
SELECT DISTINCT + 60 AS col0, 8 + - 78 * - 41 AS col0
----
60
3206

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT + 85 * - + 50 * + CASE 86 WHEN + CASE 71 WHEN + 21 / COUNT( * ) + 73 * - - 21 * 3 THEN - NULLIF ( - + COUNT( * ), 72 ) END THEN + COALESCE ( + - 65, - 86 + 14 ) + - 66 END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT + 85 * - + 50 * + CASE 86 WHEN + CASE 71 WHEN + 21 / COUNT ( * ) + 73 * - - 21 * 3 THEN - NULLIF ( - + COUNT ( * ), 72 ) END THEN + COALESCE ( + - 65, - 86 + 14 ) + - 66 END + 16
----
NULL

query I rowsort
SELECT - 60 - + + 6
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1755
SELECT 74 / - 19 * - - COUNT( * ) + + - CASE WHEN NOT ( 37 ) <= + 8 * + + 26 / - + 82 THEN NULL WHEN NOT - 31 IN ( + + COALESCE ( 68, 53 - + 47, 71 - + COUNT( 31 ) - CAST( NULL AS SIGNED ) * 30 ) + 28 / 31 ) THEN 1 + - 62 WHEN AVG ( - 99 ) * 62 IS NOT NULL THEN NULL END * CAST( 71 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT 74 / - 19 * - - COUNT ( * ) + + - CASE WHEN NOT ( 37 ) <= + 8 * + + 26 / - + 82 THEN NULL WHEN NOT - 31 IN ( + + COALESCE ( 68, 53 - + 47, 71 - + COUNT ( 31 ) - CAST ( NULL AS INTEGER ) * 30 ) + 28 / 31 ) THEN 1 + - 62 WHEN AVG ( - 99 ) * 62 IS NOT NULL THEN NULL END * CAST ( 71 AS REAL )
----
NULL

query I rowsort
SELECT 38 * 75 - - + 14 AS col1
----
2864

query I rowsort
SELECT - 47 * - - 2 * + + ( 67 )
----
-6298

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1759
SELECT DISTINCT - ( + 79 ) * + 29 col0, 44 * - COUNT( * )
----
-2291
-44

skipif mysql # not compatible
query II rowsort label-1759
SELECT DISTINCT - ( + 79 ) * + 29 col0, 44 * - COUNT ( * )
----
-2291
-44

query II rowsort
SELECT ALL + 63 AS col0, 54 * 40 * 37
----
63
79920

query II rowsort
SELECT 39 * + 35 + + + 80, + 70 AS col1
----
1445
70

query I rowsort
SELECT ALL 12 * + 53 AS col0
----
636

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1763
SELECT ALL 34 DIV + + CAST( + 58 AS SIGNED ) + + 8 * + 44 * + + 42
----
14784

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL 34 / + + CAST ( + 58 AS INTEGER ) + + 8 * + 44 * + + 42
----
14784

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + CASE 10 WHEN - - SUM( 26 ) THEN NULL WHEN 41 + 17 THEN NULL WHEN + 63 / + 12 + 20 THEN 66 + + 49 * + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT + CASE 10 WHEN - - SUM ( 26 ) THEN NULL WHEN 41 + 17 THEN NULL WHEN + 63 / + 12 + 20 THEN 66 + + 49 * + 37 END
----
NULL

query I rowsort
SELECT + 52 + + 35
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + COALESCE ( SUM( ALL - 32 ), + 24 - ( + 48 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-1768
SELECT + COALESCE ( SUM ( ALL - 32 ), + 24 - ( + 48 ) )
----
-32

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

skipif mysql # not compatible
query I rowsort label-1769
SELECT + MAX ( + + 71 )
----
71

query I rowsort
SELECT ( - - 90 ) AS col0
----
90

query I rowsort
SELECT - 16 * 36 * 17
----
-9792

query II rowsort
SELECT DISTINCT + ( - ( + 75 ) ), - 20 + 73 + - 93 AS col1
----
-75
-40

query I rowsort
SELECT DISTINCT + 76 * + 81 + - COALESCE ( + 73, - - 61, 1 ) + 9
----
6092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + 30 + + - 96 - + MAX( ALL - + 23 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1775
SELECT + 30 + + - 96 - + MAX ( ALL - + 23 ) AS col1
----
-43

query I rowsort
SELECT ALL - 33 + - 99
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ( + + COUNT( * ) ) + - 99 - 49 * 19 AS col0
----
-1029

skipif mysql # not compatible
query I rowsort label-1777
SELECT ( + + COUNT ( * ) ) + - 99 - 49 * 19 AS col0
----
-1029

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT MIN( DISTINCT 81 ) * + + 94 + 94, - COUNT( * ) AS col1
----
7708
-1

skipif mysql # not compatible
query II rowsort label-1778
SELECT MIN ( DISTINCT 81 ) * + + 94 + 94, - COUNT ( * ) AS col1
----
7708
-1

query I rowsort
SELECT + 88 * + + 19 col0
----
1672

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

skipif mysql # not compatible
query I rowsort label-1780
SELECT COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) * - 0 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1781
SELECT ALL 27 * + + COUNT( * ) * 42 / + CAST( NULL AS DECIMAL ) / - CAST( + 98 AS SIGNED ) / + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL 27 * + + COUNT ( * ) * 42 / + CAST ( NULL AS REAL ) / - CAST ( + 98 AS INTEGER ) / + 88 AS col1
----
NULL

query II rowsort
SELECT + 55 col2, 21
----
55
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT 31 + 30 + + COUNT( * ) DIV - 88 * + 62 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1783
SELECT 31 + 30 + + COUNT ( * ) / - 88 * + 62 AS col1
----
61

query II rowsort
SELECT 95 AS col0, 61 col2
----
95
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT - 80 + - 17 DIV - 89 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1785
SELECT - 80 + - 17 / - 89 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1786
SELECT ALL 50 - + CAST( NULL AS SIGNED ) * + 21 * - - NULLIF ( - 46, - COUNT( * ) ) * - COUNT( * ) + - 8 + - COUNT( * ) + - + 14 * - - 16 AS col1, + 54 AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1786
SELECT ALL 50 - + CAST ( NULL AS INTEGER ) * + 21 * - - NULLIF ( - 46, - COUNT ( * ) ) * - COUNT ( * ) + - 8 + - COUNT ( * ) + - + 14 * - - 16 AS col1, + 54 AS col0
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT + 81 * CASE SUM( DISTINCT - 84 ) WHEN - COUNT( * ) + + AVG ( ALL - + 7 ) THEN - 94 * - + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT + 81 * CASE SUM ( DISTINCT - 84 ) WHEN - COUNT ( * ) + + AVG ( ALL - + 7 ) THEN - 94 * - + 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL SUM( ALL - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL SUM ( ALL - - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ( - MAX( - - 93 ) ) + - 17 + - - COUNT( * ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-1789
SELECT ( - MAX ( - - 93 ) ) + - 17 + - - COUNT ( * ) AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL 7 * 77 - + + 99 + - CASE + + 32 WHEN - 44 THEN + - 51 * + 62 + 35 * COUNT( * ) + - 32 END + 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL 7 * 77 - + + 99 + - CASE + + 32 WHEN - 44 THEN + - 51 * + 62 + 35 * COUNT ( * ) + - 32 END + 10 col1
----
NULL

query I rowsort
SELECT + 46 + - + 59
----
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1792
SELECT ( 21 ) + + 72 - - ( - + 80 ) + - - 45 * - COALESCE ( + CAST( 41 AS SIGNED ), + - 26 DIV - 36 ) * - 0 + + 88 + - 69 col1
----
32

skipif mysql # not compatible
query I rowsort label-1792
SELECT ( 21 ) + + 72 - - ( - + 80 ) + - - 45 * - COALESCE ( + CAST ( 41 AS INTEGER ), + - 26 / - 36 ) * - 0 + + 88 + - 69 col1
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-1793
SELECT ALL + 46, 2 DIV - 87 AS col2
----
46
0

skipif mysql # not compatible
query II rowsort label-1793
SELECT ALL + 46, 2 / - 87 AS col2
----
46
0

query I rowsort
SELECT - 12 col2
----
-12

query I rowsort
SELECT + 4 * - 43 AS col2
----
-172

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1796
SELECT - + 36, + CAST( - + 26 AS SIGNED ) - 7 AS col2
----
-36
-33

skipif mysql # not compatible
query II rowsort label-1796
SELECT - + 36, + CAST ( - + 26 AS INTEGER ) - 7 AS col2
----
-36
-33

query I rowsort
SELECT 80 * + - 59 + - + 46
----
-4766

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT - ( - SUM( DISTINCT - 91 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1798
SELECT - ( - SUM ( DISTINCT - 91 ) ) AS col1
----
-91

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

skipif mysql # not compatible
query I rowsort label-1799
SELECT COUNT ( * ) * - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + MIN( ALL 12 ) * + 74 + - ( ( 50 ) ) AS col2
----
838

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + MIN ( ALL 12 ) * + 74 + - ( ( 50 ) ) AS col2
----
838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT 54 DIV + + MAX( 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT 54 / + + MAX ( 86 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT 27 DIV - - 94
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT 27 / - - 94
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT 47 + + COUNT( DISTINCT + 51 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT 47 + + COUNT ( DISTINCT + 51 ) AS col0
----
48

query I rowsort
SELECT ALL - 80 + - ( + 4 )
----
-84

query I rowsort
SELECT DISTINCT + 25 + - 20 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT - MIN( DISTINCT 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - MIN ( DISTINCT 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1808
SELECT ( - 3 ) DIV COUNT( - 46 ), ( 53 ) + + 76 AS col1
----
-3
129

skipif mysql # not compatible
query II rowsort label-1808
SELECT ( - 3 ) / COUNT ( - 46 ), ( 53 ) + + 76 AS col1
----
-3
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT - 5 DIV 56 - + ( 66 ) * - + 34
----
2244

skipif mysql # not compatible
query I rowsort label-1809
SELECT - 5 / 56 - + ( 66 ) * - + 34
----
2244

query I rowsort
SELECT - 17 * + 45 + - 88
----
-853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1811
SELECT ALL + 8 DIV COUNT( + 54 )
----
8

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL + 8 / COUNT ( + 54 )
----
8

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

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

query I rowsort
SELECT ALL - 44 + - - 82 * 96 AS col2
----
7828

query I rowsort
SELECT ALL - 35 * - 62
----
2170

query I rowsort
SELECT DISTINCT - 63 + + 60 + - 58 + - - NULLIF ( - + 35, + - 51 ) AS col1
----
-96

query I rowsort
SELECT ALL - 39 col2
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT + 19 - SUM( - + 24 )
----
43

skipif mysql # not compatible
query I rowsort label-1818
SELECT + 19 - SUM ( - + 24 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL - COUNT( * ) - 48 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL - COUNT ( * ) - 48 AS col1
----
-49

query I rowsort
SELECT DISTINCT - + 93
----
-93

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

query I rowsort
SELECT - 86 + - CASE + + 9 WHEN - 28 / + 49 THEN - - 82 END
----
NULL

query I rowsort
SELECT 15 * - 69 AS col2
----
-1035

onlyif mysql # DIV for integer division: 
query II rowsort label-1824
SELECT - - COALESCE ( 43, + 25 * - 52, - + 17 DIV 48 * + + 25 ), 96 AS col1
----
43
96

skipif mysql # not compatible
query II rowsort label-1824
SELECT - - COALESCE ( 43, + 25 * - 52, - + 17 / 48 * + + 25 ), 96 AS col1
----
43
96

query I rowsort
SELECT DISTINCT - ( - 23 ) AS col0
----
23

query I rowsort
SELECT ALL 52 - - 0 * 15 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT MAX( DISTINCT 17 ) * - + 68 AS col1
----
-1156

skipif mysql # not compatible
query I rowsort label-1827
SELECT MAX ( DISTINCT 17 ) * - + 68 AS col1
----
-1156

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

skipif mysql # not compatible
query I rowsort label-1828
SELECT - MAX ( - + 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1829
SELECT CAST( + + COALESCE ( - 43, + 44 - - COUNT( * ) ) AS SIGNED ) DIV - ( + 55 ) * 12 + + - 78 * + + 22 AS col1
----
-1716

skipif mysql # not compatible
query I rowsort label-1829
SELECT CAST ( + + COALESCE ( - 43, + 44 - - COUNT ( * ) ) AS INTEGER ) / - ( + 55 ) * 12 + + - 78 * + + 22 AS col1
----
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1830
SELECT 17 * - - CAST( NULL AS SIGNED ) + + MIN( ALL + + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT 17 * - - CAST ( NULL AS INTEGER ) + + MIN ( ALL + + 22 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - COUNT( * ) + - 11 + - 85 * - 89
----
7553

skipif mysql # not compatible
query I rowsort label-1832
SELECT - COUNT ( * ) + - 11 + - 85 * - 89
----
7553

query I rowsort
SELECT 52 col0
----
52

query I rowsort
SELECT ALL ( + ( 83 ) ) * - + 80 * + + 87 col1
----
-577680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT ALL - 11 + + + CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) * + 61 + - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - 11 + + + CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * + 61 + - 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT - COUNT( * ), - COUNT( * ) + + - 59 * 40 + - 32 AS col1
----
-1
-2393

skipif mysql # not compatible
query II rowsort label-1836
SELECT - COUNT ( * ), - COUNT ( * ) + + - 59 * 40 + - 32 AS col1
----
-1
-2393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1837
SELECT ALL 95 + COUNT( * ) - + 6 * + - CAST( - 23 AS SIGNED ) AS col2, - COUNT( * ) * + 80 AS col0
----
-42
-80

skipif mysql # not compatible
query II rowsort label-1837
SELECT ALL 95 + COUNT ( * ) - + 6 * + - CAST ( - 23 AS INTEGER ) AS col2, - COUNT ( * ) * + 80 AS col0
----
-42
-80

query I rowsort
SELECT 34 + + - 36 AS col1
----
-2

query I rowsort
SELECT ALL 6 + + - 40
----
-34

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

skipif mysql # not compatible
query I rowsort label-1840
SELECT - MIN ( ALL - 22 )
----
22

query I rowsort
SELECT 53 + + 86
----
139

query II rowsort
SELECT 75 * + 46 + - + 99 AS col2, - 18 * 16
----
3351
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT COALESCE ( - + 72, + 38, - 57 * - - CAST( - 50 AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1843
SELECT COALESCE ( - + 72, + 38, - 57 * - - CAST ( - 50 AS INTEGER ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT + MIN( ALL + COALESCE ( - 27, + + 19 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1844
SELECT + MIN ( ALL + COALESCE ( - 27, + + 19 ) ) AS col0
----
-27

query I rowsort
SELECT 43 + - 99 - + + 70 * + 10 + 78 AS col0
----
-678

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL 70 * + + COUNT( * ) + + COUNT( * ) + + 65
----
136

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL 70 * + + COUNT ( * ) + + COUNT ( * ) + + 65
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL + COUNT( * ) * - 81 * - 23 + - 72 AS col0
----
1791

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + COUNT ( * ) * - 81 * - 23 + - 72 AS col0
----
1791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT CAST( + - 17 AS SIGNED ) * - 46
----
782

skipif mysql # not compatible
query I rowsort label-1849
SELECT CAST ( + - 17 AS INTEGER ) * - 46
----
782

query I rowsort
SELECT ALL + 4 * - 52
----
-208

query I rowsort
SELECT ALL + ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + COUNT( * ) * + - 5 + + - 95
----
-100

skipif mysql # not compatible
query I rowsort label-1852
SELECT + COUNT ( * ) * + - 5 + + - 95
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT - CAST( - 37 AS SIGNED ) * COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1853
SELECT - CAST ( - 37 AS INTEGER ) * COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1854
SELECT ALL + COALESCE ( - 56, - ( + + 65 ) * 83 DIV + - 11 * + + COALESCE ( 77, - COUNT( * ) ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + COALESCE ( - 56, - ( + + 65 ) * 83 / + - 11 * + + COALESCE ( 77, - COUNT ( * ) ) ) AS col2
----
-56

query II rowsort
SELECT + 84, - ( - + 85 ) AS col2
----
84
85

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT ALL + NULLIF ( - ( - 68 ), - + 73 DIV + + 76 * 50 + + + 33 ) DIV - - 56
----
1

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + NULLIF ( - ( - 68 ), - + 73 / + + 76 * 50 + + + 33 ) / - - 56
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1859
SELECT - - 12 DIV - 56 * + COUNT( * ) * + COALESCE ( COUNT( * ), + 5 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT - - 12 / - 56 * + COUNT ( * ) * + COALESCE ( COUNT ( * ), + 5 ) AS col1
----
0

query I rowsort
SELECT - COALESCE ( 46, + 75 ) + 48
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT + 99 * - 61 * + + MAX( ALL 8 ) col2
----
-48312

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + 99 * - 61 * + + MAX ( ALL 8 ) col2
----
-48312

query I rowsort
SELECT - 56 * - - 59 AS col1
----
-3304

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT + 49 * + COUNT( DISTINCT 62 )
----
49

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT + 49 * + COUNT ( DISTINCT 62 )
----
49

query I rowsort
SELECT - ( 97 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT - - 11 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT - - 11 / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT ALL + NULLIF ( 60, - - COUNT( * ) ) + COALESCE ( - 38, + 49 ) col0, + 14
----
22
14

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL + NULLIF ( 60, - - COUNT ( * ) ) + COALESCE ( - 38, + 49 ) col0, + 14
----
22
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT CASE - + CAST( NULL AS SIGNED ) WHEN - 51 + 51 + 78 * 9 THEN 98 WHEN - AVG ( + 12 ) THEN NULL WHEN - + ( + + 48 ) THEN + 70 * + + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT CASE - + CAST ( NULL AS INTEGER ) WHEN - 51 + 51 + 78 * 9 THEN 98 WHEN - AVG ( + 12 ) THEN NULL WHEN - + ( + + 48 ) THEN + 70 * + + 26 END
----
NULL

query I rowsort
SELECT - 1 + - 50 + 74 AS col2
----
23

query I rowsort
SELECT ALL + 7 + 40
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT ALL COALESCE ( SUM( DISTINCT - ( 33 ) ), COUNT( * ) DIV - + COUNT( * ) - + 41 DIV - 51 - - + CASE 7 WHEN + 15 + + 82 THEN 0 END + + - 60, + 37 )
----
-33

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL COALESCE ( SUM ( DISTINCT - ( 33 ) ), COUNT ( * ) / - + COUNT ( * ) - + 41 / - 51 - - + CASE 7 WHEN + 15 + + 82 THEN 0 END + + - 60, + 37 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT + 77 DIV - 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 77 / - 57 AS col0
----
-1

query I rowsort
SELECT - 89 * 2 AS col1
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT DISTINCT - 34 DIV - + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - 34 / - + 94 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1876
SELECT ALL + CASE - COUNT( * ) WHEN - 77 THEN - 13 * - - COUNT( * ) * - COUNT( * ) / - 3 + CAST( NULL AS SIGNED ) - + 92 ELSE NULL END + 74 + - - 37 AS col2, 43 + + 5
----
NULL
48

skipif mysql # not compatible
query II rowsort label-1876
SELECT ALL + CASE - COUNT ( * ) WHEN - 77 THEN - 13 * - - COUNT ( * ) * - COUNT ( * ) / - 3 + CAST ( NULL AS INTEGER ) - + 92 ELSE NULL END + 74 + - - 37 AS col2, 43 + + 5
----
NULL
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1877
SELECT - CASE - COUNT( ALL - - 85 ) WHEN - COALESCE ( + COALESCE ( - ( + + COUNT( * ) ), COUNT( * ) + + 25 * ( + - MAX( - + 50 ) ) ), + - AVG ( + - 50 ) ) THEN + + 93 DIV + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE - + 45 END
----
45

skipif mysql # not compatible
query I rowsort label-1877
SELECT - CASE - COUNT ( ALL - - 85 ) WHEN - COALESCE ( + COALESCE ( - ( + + COUNT ( * ) ), COUNT ( * ) + + 25 * ( + - MAX ( - + 50 ) ) ), + - AVG ( + - 50 ) ) THEN + + 93 / + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE - + 45 END
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT - 41 DIV + + 22 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 41 / + + 22 col0
----
-1

query I rowsort
SELECT + 47 + + + 47 * - - 94
----
4465

query I rowsort
SELECT ALL 53 * - ( - + 85 ) AS col2
----
4505

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT DISTINCT 23, 76 + - 76 + 72 + - 83 + - COUNT( * ) - + - NULLIF ( 48, CASE + 65 WHEN + - 21 THEN + 12 WHEN - 94 * + 32 * + ( + - CASE - 21 WHEN - 8 / 21 + - 15 THEN + 51 - 8 END ) * - ( COUNT( * ) + + 46 ) + 43 THEN + 73 - - 24 ELSE - 92 * 42 END + + 72 / 14 ) * 26 * 68 AS col2
----
23
84852

skipif mysql # not compatible
query II rowsort label-1881
SELECT DISTINCT 23, 76 + - 76 + 72 + - 83 + - COUNT ( * ) - + - NULLIF ( 48, CASE + 65 WHEN + - 21 THEN + 12 WHEN - 94 * + 32 * + ( + - CASE - 21 WHEN - 8 / 21 + - 15 THEN + 51 - 8 END ) * - ( COUNT ( * ) + + 46 ) + 43 THEN + 73 - - 24 ELSE - 92 * 42 END + + 72 / 14 ) * 26 * 68 AS col2
----
23
84852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT DISTINCT + COUNT( * ) DIV - - NULLIF ( + ( + 69 ), - + ( 3 ) ) - 55
----
-55

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + COUNT ( * ) / - - NULLIF ( + ( + 69 ), - + ( 3 ) ) - 55
----
-55

query I rowsort
SELECT ALL 93 * 64 col1
----
5952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1884
SELECT ( + 53 ), - NULLIF ( + ( 5 ), - COALESCE ( 80, MIN( DISTINCT + + 40 ) ) * 41 ) DIV + 22 + 4 * - - 57 AS col0
----
53
228

skipif mysql # not compatible
query II rowsort label-1884
SELECT ( + 53 ), - NULLIF ( + ( 5 ), - COALESCE ( 80, MIN ( DISTINCT + + 40 ) ) * 41 ) / + 22 + 4 * - - 57 AS col0
----
53
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1885
SELECT + COUNT( * ), - 40 * - 68 DIV NULLIF ( - - 94, 3 ) DIV + 34 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-1885
SELECT + COUNT ( * ), - 40 * - 68 / NULLIF ( - - 94, 3 ) / + 34 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT + COUNT( * ) + + NULLIF ( - 38, + COUNT( + 83 ) / + COUNT( * ) - + 5 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1886
SELECT + COUNT ( * ) + + NULLIF ( - 38, + COUNT ( + 83 ) / + COUNT ( * ) - + 5 ) AS col2
----
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT DISTINCT COUNT( * ) * SUM( DISTINCT + 84 ) + - 54
----
30

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT COUNT ( * ) * SUM ( DISTINCT + 84 ) + - 54
----
30

query I rowsort
SELECT ALL + - 34 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1890
SELECT + 4 - - - MAX( + 40 ) + CASE - CAST( + 89 AS SIGNED ) WHEN - 24 THEN - COUNT( * ) END * 39 + 78 + - - 95 / - 79 * 89 / - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT + 4 - - - MAX ( + 40 ) + CASE - CAST ( + 89 AS INTEGER ) WHEN - 24 THEN - COUNT ( * ) END * 39 + 78 + - - 95 / - 79 * 89 / - 44 AS col1
----
NULL

query I rowsort
SELECT ALL 73 * + - 31 AS col1
----
-2263

query I rowsort
SELECT + + 50 * + + 73 - - 46 * - + 76 + - 45 * - 71 col1
----
3349

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT - 17 + - + NULLIF ( - SUM( + + 69 ), - COUNT( * ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 17 + - + NULLIF ( - SUM ( + + 69 ), - COUNT ( * ) ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + + COALESCE ( - 17, - 67 * - NULLIF ( 44, + 42 * - 12 + - 60 * - + 32 + 18 + + COUNT( * ) * + - 35 * - - MAX( DISTINCT - 53 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1894
SELECT + + COALESCE ( - 17, - 67 * - NULLIF ( 44, + 42 * - 12 + - 60 * - + 32 + 18 + + COUNT ( * ) * + - 35 * - - MAX ( DISTINCT - 53 ) ) )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT ALL + + 85 * - 51 * + + 19 / + 35 + - 0 + + - 32 + - + CAST( NULL AS SIGNED ) + + + 78 * - 36 / + MIN( ALL - - 53 ) + - 72 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + + 85 * - 51 * + + 19 / + 35 + - 0 + + - 32 + - + CAST ( NULL AS INTEGER ) + + + 78 * - 36 / + MIN ( ALL - - 53 ) + - 72 + 21
----
NULL

query I rowsort
SELECT + ( + + 88 ) col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT COUNT( * ) * - 21 + 0 - + 95 + 21
----
-95

skipif mysql # not compatible
query I rowsort label-1897
SELECT COUNT ( * ) * - 21 + 0 - + 95 + 21
----
-95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1899
SELECT + + ( + + COUNT( * ) ) * NULLIF ( - - 53, + MIN( + 30 ) / 7 ) * - COALESCE ( 94, - 93 + - + 66 * + COUNT( * ) * - 65 * - ( + - 90 ) + + COUNT( * ) * - COUNT( DISTINCT - 56 ) * - + 68 ), - CAST( + - 31 AS SIGNED ) * 1 col0
----
-4982
31

skipif mysql # not compatible
query II rowsort label-1899
SELECT + + ( + + COUNT ( * ) ) * NULLIF ( - - 53, + MIN ( + 30 ) / 7 ) * - COALESCE ( 94, - 93 + - + 66 * + COUNT ( * ) * - 65 * - ( + - 90 ) + + COUNT ( * ) * - COUNT ( DISTINCT - 56 ) * - + 68 ), - CAST ( + - 31 AS INTEGER ) * 1 col0
----
-4982
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT - COUNT( * ) * + + 52 DIV - + 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT - COUNT ( * ) * + + 52 / - + 60 col1
----
0

query I rowsort
SELECT + 93 * - NULLIF ( - COALESCE ( + 66, + + 79, + 38 * + 14 ), 75 ) + 99
----
6237

query I rowsort
SELECT ALL + 5 * + - 59 + + + 47
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL - 40 * + - MIN( - 40 ) - - 2 + + - 41 + COALESCE ( 15, + COUNT( 55 ) * - - 80 * + + 64 * - 67 ) AS col0
----
-1624

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL - 40 * + - MIN ( - 40 ) - - 2 + + - 41 + COALESCE ( 15, + COUNT ( 55 ) * - - 80 * + + 64 * - 67 ) AS col0
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT - + 48 * + - NULLIF ( - - 55, + - 67 ) * + + 40 + - 0 + + CASE 92 WHEN + - COUNT( * ) / + COUNT( * ) * - 76 + 2 * + 15 + - - COUNT( * ) + + + 79 / 78 - + 25 * 45 * + - 23 THEN NULL WHEN + 53 THEN NULL WHEN CASE - 29 WHEN 3 THEN + 16 WHEN + CAST( NULL AS SIGNED ) + - 98 THEN NULL ELSE 39 - - SUM( DISTINCT 66 + 90 ) END THEN 87 ELSE 15 END * COUNT( * ) * COUNT( * )
----
105615

skipif mysql # not compatible
query I rowsort label-1904
SELECT - + 48 * + - NULLIF ( - - 55, + - 67 ) * + + 40 + - 0 + + CASE 92 WHEN + - COUNT ( * ) / + COUNT ( * ) * - 76 + 2 * + 15 + - - COUNT ( * ) + + + 79 / 78 - + 25 * 45 * + - 23 THEN NULL WHEN + 53 THEN NULL WHEN CASE - 29 WHEN 3 THEN + 16 WHEN + CAST ( NULL AS INTEGER ) + - 98 THEN NULL ELSE 39 - - SUM ( DISTINCT 66 + 90 ) END THEN 87 ELSE 15 END * COUNT ( * ) * COUNT ( * )
----
105615

query I rowsort
SELECT - ( 20 ) + 15
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT + 89 + + 75 + + - 90 * COUNT( * ) + + - 27 * - MAX( ALL + 78 ), ( - 45 ) AS col1
----
2180
-45

skipif mysql # not compatible
query II rowsort label-1906
SELECT + 89 + + 75 + + - 90 * COUNT ( * ) + + - 27 * - MAX ( ALL + 78 ), ( - 45 ) AS col1
----
2180
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL - COALESCE ( COUNT( * ), - + COUNT( * ) ) + - - 65 * + 48 AS col0
----
3119

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL - COALESCE ( COUNT ( * ), - + COUNT ( * ) ) + - - 65 * + 48 AS col0
----
3119

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT - 65 + - SUM( ALL - ( + - 38 ) ) - + + 2 - + 3 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-1908
SELECT - 65 + - SUM ( ALL - ( + - 38 ) ) - + + 2 - + 3 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - SUM( - 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1909
SELECT - SUM ( - 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT - 18 + + 96 DIV + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1910
SELECT - 18 + + 96 / + COUNT ( * ) AS col0
----
78

query II rowsort
SELECT ALL - 49 - + 87, - 58 * 53 AS col0
----
-136
-3074

query I rowsort
SELECT - 35 * - ( - 73 ) AS col1
----
-2555

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - MAX( 97 ) + + ( + 67 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1913
SELECT - MAX ( 97 ) + + ( + 67 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT - COALESCE ( + 60, 71 + - + 80 * + 49 ) - 95 AS col0
----
-155

query I rowsort
SELECT 62 * + + 89 AS col0
----
5518

query I rowsort
SELECT ALL 99 * + - 80 * 38
----
-300960

query I rowsort
SELECT - 82 col2
----
-82

query I rowsort
SELECT 87 + - - 9 + - + 58 - 26 - 91
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1919
SELECT ALL - 86 DIV - + SUM( + + CAST( - 57 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - 86 / - + SUM ( + + CAST ( - 57 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( - + 2 ) * + + COUNT( * ) - - 99 + + 42 + - + 60 * + 85 - - + 58 AS col1
----
-4900

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( - + 2 ) * + + COUNT ( * ) - - 99 + + 42 + - + 60 * + 85 - - + 58 AS col1
----
-4900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT + 92 DIV + - 3 + - COUNT( * ) + 67 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 92 / + - 3 + - COUNT ( * ) + 67 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL 98 * + + 17 * - - 26 * + - CASE - 51 WHEN COUNT( - - COALESCE ( 57, + 96 ) ) THEN - 45 END / SUM( DISTINCT 67 ) - + - 96 * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL 98 * + + 17 * - - 26 * + - CASE - 51 WHEN COUNT ( - - COALESCE ( 57, + 96 ) ) THEN - 45 END / SUM ( DISTINCT 67 ) - + - 96 * + 38
----
NULL

query II rowsort
SELECT ALL - 86 * - 89 AS col1, 38 - 49
----
7654
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT SUM( + 17 ) DIV - + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1924
SELECT SUM ( + 17 ) / - + 20 AS col1
----
0

query I rowsort
SELECT + 96 col2
----
96

query I rowsort
SELECT DISTINCT + 23 * - 48 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL - 65 * MIN( - COALESCE ( 6, 32 + + 60, 41 ) ) AS col0
----
390

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - 65 * MIN ( - COALESCE ( 6, 32 + + 60, 41 ) ) AS col0
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ( NULLIF ( - COUNT( * ), + 74 + 49 ) ) * - 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1928
SELECT ( NULLIF ( - COUNT ( * ), + 74 + 49 ) ) * - 57 AS col1
----
57

query I rowsort
SELECT ALL + ( + 25 ) + + 43 * 43 * - 27
----
-49898

query I rowsort
SELECT DISTINCT - - 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL + SUM( + 71 ) * + 89 AS col0
----
6319

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + SUM ( + 71 ) * + 89 AS col0
----
6319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL + COALESCE ( + COUNT( * ), 1 * - 85 + - ( + 98 ) - - - 75 * + CAST( ( COALESCE ( + 97, + + 79 - 43 ) ) AS SIGNED ), - CASE - - NULLIF ( 91, + - 24 * - 57 + 80 + + 69 + - - ( - 72 ) / 17 ) WHEN + 58 + SUM( 76 ) * ( + 66 * CASE CASE 39 WHEN ( + 96 ) THEN NULL ELSE 49 END * 42 WHEN ( 85 ) THEN NULL ELSE + 5 END ) THEN 41 WHEN NULLIF ( 60, 18 ) / - COALESCE ( 3 * 21, COUNT( * ) ) THEN NULL ELSE NULL END * 27 )
----
1

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + COALESCE ( + COUNT ( * ), 1 * - 85 + - ( + 98 ) - - - 75 * + CAST ( ( COALESCE ( + 97, + + 79 - 43 ) ) AS INTEGER ), - CASE - - NULLIF ( 91, + - 24 * - 57 + 80 + + 69 + - - ( - 72 ) / 17 ) WHEN + 58 + SUM ( 76 ) * ( + 66 * CASE CASE 39 WHEN ( + 96 ) THEN NULL ELSE 49 END * 42 WHEN ( 85 ) THEN NULL ELSE + 5 END ) THEN 41 WHEN NULLIF ( 60, 18 ) / - COALESCE ( 3 * 21, COUNT ( * ) ) THEN NULL ELSE NULL END * 27 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT ( - - 62 ) + + 9 + COUNT( * ) * - CASE - - SUM( DISTINCT - 87 ) WHEN - + 56 * - 61 THEN NULL WHEN COUNT( DISTINCT - + 28 ) / - 28 + - COALESCE ( 34, + 13 ) / - + COUNT( * ) + - SUM( + 28 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT ( - - 62 ) + + 9 + COUNT ( * ) * - CASE - - SUM ( DISTINCT - 87 ) WHEN - + 56 * - 61 THEN NULL WHEN COUNT ( DISTINCT - + 28 ) / - 28 + - COALESCE ( 34, + 13 ) / - + COUNT ( * ) + - SUM ( + 28 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + 71 * + SUM( - 69 ) + - + 92 AS col0
----
-4991

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 71 * + SUM ( - 69 ) + - + 92 AS col0
----
-4991

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1935
SELECT COUNT( * ) DIV + ( + 34 ), NULLIF ( - SUM( + + 85 ), - + 77 ) AS col2
----
0
-85

skipif mysql # not compatible
query II rowsort label-1935
SELECT COUNT ( * ) / + ( + 34 ), NULLIF ( - SUM ( + + 85 ), - + 77 ) AS col2
----
0
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT MAX( 3 ) * - 1 + + - 78 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1936
SELECT MAX ( 3 ) * - 1 + + - 78 AS col0
----
-81

query I rowsort
SELECT 72 * + 72
----
5184

query I rowsort
SELECT DISTINCT 82 - + - 42 AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1939
SELECT - 11 col0, - CASE + 42 WHEN - 93 * 26 + - 5 THEN NULL WHEN + 53 / - CAST( NULL AS SIGNED ) * 15 THEN - 62 + - 65 WHEN 31 THEN COUNT( * ) END - + + CAST( NULL AS SIGNED ) + NULLIF ( - 97, 50 * + + 80 + - + 99 - 83 * + + 62 / 62 * - CAST( NULL AS DECIMAL ) )
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1939
SELECT - 11 col0, - CASE + 42 WHEN - 93 * 26 + - 5 THEN NULL WHEN + 53 / - CAST ( NULL AS INTEGER ) * 15 THEN - 62 + - 65 WHEN 31 THEN COUNT ( * ) END - + + CAST ( NULL AS INTEGER ) + NULLIF ( - 97, 50 * + + 80 + - + 99 - 83 * + + 62 / 62 * - CAST ( NULL AS REAL ) )
----
-11
NULL

query I rowsort
SELECT 59 * CASE - + 64 WHEN + - CASE - 28 WHEN 90 THEN 96 END THEN + ( - AVG ( ALL - - 2 ) ) END AS col1
----
NULL

query I rowsort
SELECT 62 * - 53 AS col1
----
-3286

query II rowsort
SELECT 7 col0, - 47 AS col1
----
7
-47

query II rowsort
SELECT DISTINCT - 0 * - 23 * - 97 * 60, + 83 + + 90 AS col0
----
0
173

query I rowsort
SELECT 97 * + 24 AS col1
----
2328

query II rowsort
SELECT 74 * + 55 * - 47, + 76 AS col2
----
-191290
76

query I rowsort
SELECT DISTINCT 69 * 26 AS col2
----
1794

query I rowsort
SELECT 87 * - 4
----
-348

query II rowsort
SELECT + 46 AS col2, 69 AS col1
----
46
69

query II rowsort
SELECT ALL - + 28 AS col1, 72
----
-28
72

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

skipif mysql # not compatible
query I rowsort label-1950
SELECT MAX ( + 1 )
----
1

query I rowsort
SELECT COALESCE ( 97, + 62 * 85 + - - 63 )
----
97

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

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

query I rowsort
SELECT ALL + - 23 + 98 * + 20
----
1937

onlyif mysql # aggregate syntax: 
query II rowsort label-1954
SELECT NULLIF ( - COUNT( * ), + AVG ( DISTINCT - NULLIF ( + - 93, - 61 ) ) ), 64 * + + 18 col1
----
-1
1152

skipif mysql # not compatible
query II rowsort label-1954
SELECT NULLIF ( - COUNT ( * ), + AVG ( DISTINCT - NULLIF ( + - 93, - 61 ) ) ), 64 * + + 18 col1
----
-1
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - COALESCE ( - + MAX( - 29 ), + 12, + + CASE - 79 WHEN + 63 - - COUNT( DISTINCT + 24 ) THEN NULL WHEN + 44 * + + 5 + MAX( 6 ) THEN NULL WHEN + + 58 THEN + 35 * - 90 * + ( COUNT( * ) ) ELSE NULL END ) + 71
----
42

skipif mysql # not compatible
query I rowsort label-1955
SELECT - COALESCE ( - + MAX ( - 29 ), + 12, + + CASE - 79 WHEN + 63 - - COUNT ( DISTINCT + 24 ) THEN NULL WHEN + 44 * + + 5 + MAX ( 6 ) THEN NULL WHEN + + 58 THEN + 35 * - 90 * + ( COUNT ( * ) ) ELSE NULL END ) + 71
----
42

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1958
SELECT - 22 * - ( 3 ) AS col2, 55 + + - COUNT( DISTINCT + 50 ) - 74 DIV 36 AS col1
----
66
52

skipif mysql # not compatible
query II rowsort label-1958
SELECT - 22 * - ( 3 ) AS col2, 55 + + - COUNT ( DISTINCT + 50 ) - 74 / 36 AS col1
----
66
52

query II rowsort
SELECT 55, 18 AS col0
----
55
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL - 29 + - - 49 * ( - 78 ) + - - COUNT( * ) AS col2
----
-3850

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - 29 + - - 49 * ( - 78 ) + - - COUNT ( * ) AS col2
----
-3850

query I rowsort
SELECT + 88 * - 82
----
-7216

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

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

query I rowsort
SELECT + 2 - 13 col2
----
-11

query II rowsort
SELECT 99, 1 AS col2
----
99
1

query II rowsort
SELECT ALL - 84 AS col0, 51 AS col0
----
-84
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL + + ( + + SUM( + 25 ) ) - - - 41
----
-16

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + + ( + + SUM ( + 25 ) ) - - - 41
----
-16

query II rowsort
SELECT + 77 AS col1, + 33 + - 25 AS col1
----
77
8

query I rowsort
SELECT + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - 38 * + CASE + + COUNT( 93 ) WHEN + 16 + + NULLIF ( 28, - ( - NULLIF ( 56, + 48 + COUNT( * ) ) ) + + 80 ) THEN - - 29 * 38 END + CASE + + 35 WHEN + 42 * - - 47 * - + 23 * - 94 THEN 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 38 * + CASE + + COUNT ( 93 ) WHEN + 16 + + NULLIF ( 28, - ( - NULLIF ( 56, + 48 + COUNT ( * ) ) ) + + 80 ) THEN - - 29 * 38 END + CASE + + 35 WHEN + 42 * - - 47 * - + 23 * - 94 THEN 28 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT NULLIF ( + 49, ( + 76 ) ) + + + CAST( - 33 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-1970
SELECT NULLIF ( + 49, ( + 76 ) ) + + + CAST ( - 33 AS INTEGER )
----
16

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

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

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

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

query I rowsort
SELECT ALL + ( 23 ) - + 14
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + COUNT( * ) - 11 * COUNT( * ) * 36 AS col1
----
-395

skipif mysql # not compatible
query I rowsort label-1974
SELECT + COUNT ( * ) - 11 * COUNT ( * ) * 36 AS col1
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT 23 * - 14 * + COUNT( * ) AS col1
----
-322

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT 23 * - 14 * + COUNT ( * ) AS col1
----
-322

query I rowsort
SELECT DISTINCT 35 * - 15 AS col1
----
-525

query I rowsort
SELECT + 58 * + + 99 * 46 AS col1
----
264132

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

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

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 52 + + + COUNT ( * ) * + + 32 AS col0
----
84

query I rowsort
SELECT + 58 - - 98 + - 9 * 1 AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT - CAST( NULL AS SIGNED ) / - ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT - CAST ( NULL AS INTEGER ) / - ( - 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1982
SELECT + CAST( 53 AS SIGNED ) DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-1982
SELECT + CAST ( 53 AS INTEGER ) / - 28
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1983
SELECT + CAST( 26 AS SIGNED ) + 24 DIV 93 * + 20 col1
----
26

skipif mysql # not compatible
query I rowsort label-1983
SELECT + CAST ( 26 AS INTEGER ) + 24 / 93 * + 20 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT + 14 * - MAX( DISTINCT + 54 )
----
-756

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + 14 * - MAX ( DISTINCT + 54 )
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT COUNT( * ) + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT COUNT ( * ) + - + 7
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1986
SELECT ALL COUNT( * ) + - - 34 * + - COALESCE ( - + ( + 18 ), MIN( 9 ) + - - 15 * + 9, - + 20 ) * - 89 + - 45 AS col2, + 8 + + ( 98 )
----
-54512
106

skipif mysql # not compatible
query II rowsort label-1986
SELECT ALL COUNT ( * ) + - - 34 * + - COALESCE ( - + ( + 18 ), MIN ( 9 ) + - - 15 * + 9, - + 20 ) * - 89 + - 45 AS col2, + 8 + + ( 98 )
----
-54512
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL + SUM( DISTINCT + 62 ) * 82 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL + SUM ( DISTINCT + 62 ) * 82 AS col0
----
5084

query I rowsort
SELECT DISTINCT ( 25 ) * - 96
----
-2400

query I rowsort
SELECT ALL 29 * 72
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT DISTINCT - - COUNT( * ) * 56 * 16 * + 49 + 80 - - + 90 * + 93 AS col0
----
52354

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT - - COUNT ( * ) * 56 * 16 * + 49 + 80 - - + 90 * + 93 AS col0
----
52354

query I rowsort
SELECT + COALESCE ( - 28, + 9 ) * + + 4
----
-112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - AVG ( - - 58 ) / - ( - 63 ) / + 47 + - - 94 - + - 18 - + - 71 * NULLIF ( + 38, ( - 80 ) * 84 + 30 - - COUNT( * ) + - MAX( + - 6 ) + - - 62 ) * CASE + 64 WHEN - 63 THEN - 46 * - SUM( - 10 ) * - 79 + AVG ( DISTINCT - 42 ) * COUNT( * ) END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT - AVG ( - - 58 ) / - ( - 63 ) / + 47 + - - 94 - + - 18 - + - 71 * NULLIF ( + 38, ( - 80 ) * 84 + 30 - - COUNT ( * ) + - MAX ( + - 6 ) + - - 62 ) * CASE + 64 WHEN - 63 THEN - 46 * - SUM ( - 10 ) * - 79 + AVG ( DISTINCT - 42 ) * COUNT ( * ) END - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 11 * 16 AS col2
----
-176

query I rowsort
SELECT ALL + - 3 * + 3 AS col2
----
-9

query I rowsort
SELECT + - 95 - + - ( 29 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-1998
SELECT + - 36 + COUNT( * ), 59 AS col2
----
-35
59

skipif mysql # not compatible
query II rowsort label-1998
SELECT + - 36 + COUNT ( * ), 59 AS col2
----
-35
59

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

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

query I rowsort
SELECT ALL + 62 * + 24
----
1488

query I rowsort
SELECT ALL + 90 * 89 AS col1
----
8010

query I rowsort
SELECT + 65 + 24 * - 29
----
-631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2003
SELECT ALL CAST( + MAX( ALL 18 ) AS SIGNED ), + 55 + - + 41 + + 22 * + - 61 + COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col2
----
18
-1329

skipif mysql # not compatible
query II rowsort label-2003
SELECT ALL CAST ( + MAX ( ALL 18 ) AS INTEGER ), + 55 + - + 41 + + 22 * + - 61 + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col2
----
18
-1329

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT + ( ( + - 89 ) ) + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2005
SELECT + ( ( + - 89 ) ) + COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT DISTINCT 82 + + - 25 AS col1
----
57

query I rowsort
SELECT ALL ( - - NULLIF ( 44, - 23 * + AVG ( DISTINCT 77 ) ) )
----
44

query I rowsort
SELECT DISTINCT ( 65 )
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - CASE COALESCE ( + 64, - - COALESCE ( - 60, + 75 + - ( + - 16 ), + 53 - + COUNT( * ) ), ( + 94 ) ) WHEN + 44 * - 55 - - 95 THEN - 56 / 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT - CASE COALESCE ( + 64, - - COALESCE ( - 60, + 75 + - ( + - 16 ), + 53 - + COUNT ( * ) ), ( + 94 ) ) WHEN + 44 * - 55 - - 95 THEN - 56 / 82 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT CAST( 82 AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT CAST ( 82 AS INTEGER ) AS col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2012
SELECT - COALESCE ( - 84, + 9, + COUNT( * ) DIV + 7 ) AS col2, 22 AS col0
----
84
22

skipif mysql # not compatible
query II rowsort label-2012
SELECT - COALESCE ( - 84, + 9, + COUNT ( * ) / + 7 ) AS col2, 22 AS col0
----
84
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT ALL ( + + 22 ) + - - COUNT( * ) col2, - NULLIF ( + - 31, + MAX( + 22 ) / - 96 + - + 31 + + 5 )
----
23
31

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL ( + + 22 ) + - - COUNT ( * ) col2, - NULLIF ( + - 31, + MAX ( + 22 ) / - 96 + - + 31 + + 5 )
----
23
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT + 75 * - CAST( + 76 AS SIGNED ) * + 1
----
-5700

skipif mysql # not compatible
query I rowsort label-2014
SELECT + 75 * - CAST ( + 76 AS INTEGER ) * + 1
----
-5700

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

query I rowsort
SELECT + + 22 * + 86
----
1892

query I rowsort
SELECT + + ( + 17 ) * 91
----
1547

query I rowsort
SELECT DISTINCT 56 + - 72
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2019
SELECT - + NULLIF ( + 53, + 34 + CASE + ( + 55 ) WHEN + 74 + - 19 THEN NULL WHEN 68 THEN NULL WHEN 30 THEN COUNT( ALL 14 ) * ( COUNT( * ) ) END * - CAST( NULL AS SIGNED ) ) AS col2, 13 AS col2
----
-53
13

skipif mysql # not compatible
query II rowsort label-2019
SELECT - + NULLIF ( + 53, + 34 + CASE + ( + 55 ) WHEN + 74 + - 19 THEN NULL WHEN 68 THEN NULL WHEN 30 THEN COUNT ( ALL 14 ) * ( COUNT ( * ) ) END * - CAST ( NULL AS INTEGER ) ) AS col2, 13 AS col2
----
-53
13

query I rowsort
SELECT + 43 * - 68 * 46
----
-134504

query I rowsort
SELECT ALL - - 80 * + 48
----
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT ALL + 66 DIV - 14 - - 83 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + 66 / - 14 - - 83 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT + - 96 * - 39 * - 85 + + 64 + - - 63 DIV - 52 AS col2
----
-318177

skipif mysql # not compatible
query I rowsort label-2023
SELECT + - 96 * - 39 * - 85 + + 64 + - - 63 / - 52 AS col2
----
-318177

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT + - ( + 31 ) * - 46 * - + ( - COALESCE ( - 62, + SUM( DISTINCT + 6 ) + - 1, + COALESCE ( + + COALESCE ( - 43, 20 + - COUNT( * ) ), 99, - 96 ) * + 39 - + ( 26 ) ) )
----
-88412

skipif mysql # not compatible
query I rowsort label-2024
SELECT + - ( + 31 ) * - 46 * - + ( - COALESCE ( - 62, + SUM ( DISTINCT + 6 ) + - 1, + COALESCE ( + + COALESCE ( - 43, 20 + - COUNT ( * ) ), 99, - 96 ) * + 39 - + ( 26 ) ) )
----
-88412

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2026
SELECT + - 46 + - + 27 DIV + 59, + 63 - - + 32 * + + CASE ( + + 23 ) WHEN + 92 * + COUNT( - 92 ) * + ( - 66 ) * + COUNT( * ) + - + 6 THEN COALESCE ( - SUM( - COALESCE ( - 69, - + 86 - - 87 * - + 15 ) ), - 49 ) * + 23 END col1
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-2026
SELECT + - 46 + - + 27 / + 59, + 63 - - + 32 * + + CASE ( + + 23 ) WHEN + 92 * + COUNT ( - 92 ) * + ( - 66 ) * + COUNT ( * ) + - + 6 THEN COALESCE ( - SUM ( - COALESCE ( - 69, - + 86 - - 87 * - + 15 ) ), - 49 ) * + 23 END col1
----
-46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + + COUNT( DISTINCT ( + 55 ) ) + - 19 + + ( + 55 ) * - 37 * - 11 AS col0
----
22367

skipif mysql # not compatible
query I rowsort label-2027
SELECT + + COUNT ( DISTINCT ( + 55 ) ) + - 19 + + ( + 55 ) * - 37 * - 11 AS col0
----
22367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2028
SELECT ALL - NULLIF ( ( + 79 ), + 34 DIV + CAST( NULL AS SIGNED ) + - - 28 + + - 26 + + 59 + + 93 * - 32 * - 25 * + SUM( ALL 63 ) + + ( - - 79 ) + CASE + - 9 WHEN + 44 THEN + - SUM( DISTINCT - - 46 ) ELSE CASE + 92 WHEN - + SUM( DISTINCT + 81 ) THEN NULL ELSE - 98 END END * + 60 ) DIV - 46 - 76
----
-75

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - NULLIF ( ( + 79 ), + 34 / + CAST ( NULL AS INTEGER ) + - - 28 + + - 26 + + 59 + + 93 * - 32 * - 25 * + SUM ( ALL 63 ) + + ( - - 79 ) + CASE + - 9 WHEN + 44 THEN + - SUM ( DISTINCT - - 46 ) ELSE CASE + 92 WHEN - + SUM ( DISTINCT + 81 ) THEN NULL ELSE - 98 END END * + 60 ) / - 46 - 76
----
-75

query I rowsort
SELECT DISTINCT + + 25
----
25

query II rowsort
SELECT ALL - 6, - 11 col0
----
-6
-11

query I rowsort
SELECT + + 49 col0
----
49

query I rowsort
SELECT ALL - - ( + + 62 ) col1
----
62

query II rowsort
SELECT DISTINCT - 94, - 21 * - 38 col2
----
-94
798

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

query II rowsort
SELECT ALL - 7 AS col2, 39 * 87
----
-7
3393

query III rowsort
SELECT 88 AS col2, 27 AS col0, - 41
----
88
27
-41

query II rowsort
SELECT 23 col1, 88 AS col0
----
23
88

query II rowsort
SELECT + 7 AS col1, + 32 AS col2
----
7
32

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

skipif mysql # not compatible
query I rowsort label-2039
SELECT 88 / COUNT ( * ) AS col2
----
88

query I rowsort
SELECT 62 + + - 28 AS col1
----
34

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2043
SELECT 78 DIV ( - 98 ) DIV - 12 * COUNT( * ) + + + CASE - - CASE + 52 WHEN 30 + + + 68 * + + 81 * + 28 THEN - 56 WHEN + 87 THEN NULL WHEN + - 40 * + 4 * + - 28 * 73 + - CASE WHEN ( NULL ) <= ( 87 ) THEN 18 * 80 DIV - 97 * - + 69 * 45 END + COUNT( * ) DIV 78 * - COALESCE ( - 6 * - ( 26 ) + - COUNT( * ), - COUNT( * ) ) THEN CASE 74 WHEN 54 - + 73 THEN NULL WHEN - COUNT( * ) * + 76 THEN + 61 END * + 35 ELSE NULL END WHEN 83 - 92 THEN NULL WHEN - 41 + 22 THEN + 16 ELSE - COUNT( * ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-2043
SELECT 78 / ( - 98 ) / - 12 * COUNT ( * ) + + + CASE - - CASE + 52 WHEN 30 + + + 68 * + + 81 * + 28 THEN - 56 WHEN + 87 THEN NULL WHEN + - 40 * + 4 * + - 28 * 73 + - CASE WHEN ( NULL ) <= ( 87 ) THEN 18 * 80 / - 97 * - + 69 * 45 END + COUNT ( * ) / 78 * - COALESCE ( - 6 * - ( 26 ) + - COUNT ( * ), - COUNT ( * ) ) THEN CASE 74 WHEN 54 - + 73 THEN NULL WHEN - COUNT ( * ) * + 76 THEN + 61 END * + 35 ELSE NULL END WHEN 83 - 92 THEN NULL WHEN - 41 + 22 THEN + 16 ELSE - COUNT ( * ) END col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL - 59 + + MAX( - ( 91 ) ) + 17 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - 59 + + MAX ( - ( 91 ) ) + 17 AS col2
----
-133

query I rowsort
SELECT ALL + 96 + + 68 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT + 87 + + COUNT( * ) * 66 col0
----
153

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + 87 + + COUNT ( * ) * 66 col0
----
153

query I rowsort
SELECT ALL 69 + - + 53 * 32 * + 18 AS col0
----
-30459

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT 3 DIV + 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT 3 / + 41 col1
----
0

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

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

query I rowsort
SELECT 83 + + 61 + - 87 - + 19 AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2051
SELECT ALL - 96 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - 96 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-97

query I rowsort
SELECT 28 - - 42 col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2053
SELECT - CASE CAST( NULL AS SIGNED ) WHEN - NULLIF ( ( 84 ), 92 ) THEN - 16 WHEN 78 * + 76 / - 97 * + 22 * - 37 / - + AVG ( + 65 ) THEN NULL END col0, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-2053
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN - NULLIF ( ( 84 ), 92 ) THEN - 16 WHEN 78 * + 76 / - 97 * + 22 * - 37 / - + AVG ( + 65 ) THEN NULL END col0, + 78
----
NULL
78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2055
SELECT - COUNT( * ) AS col2, + 53 + 81 * + 27
----
-1
2240

skipif mysql # not compatible
query II rowsort label-2055
SELECT - COUNT ( * ) AS col2, + 53 + 81 * + 27
----
-1
2240

query I rowsort
SELECT DISTINCT ( - - 60 ) * + - 56 + - 94 + - 34 AS col0
----
-3488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT DISTINCT + 63 - - 32 * CAST( + 35 AS SIGNED ) + + 51 AS col1
----
1234

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + 63 - - 32 * CAST ( + 35 AS INTEGER ) + + 51 AS col1
----
1234

query I rowsort
SELECT + 55 + + + ( ( + ( - - 33 ) ) ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query III rowsort label-2059
SELECT ALL + + 24 - + 52 col1, + 99 - - 22 AS col0, - MAX( - + ( - + 80 ) ) AS col0
----
-28
121
-80

skipif mysql # not compatible
query III rowsort label-2059
SELECT ALL + + 24 - + 52 col1, + 99 - - 22 AS col0, - MAX ( - + ( - + 80 ) ) AS col0
----
-28
121
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT 62 + - MAX( ALL + + 43 ) * + 7 * - 2 * - 29 AS col1
----
-17396

skipif mysql # not compatible
query I rowsort label-2061
SELECT 62 + - MAX ( ALL + + 43 ) * + 7 * - 2 * - 29 AS col1
----
-17396

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

skipif mysql # not compatible
query I rowsort label-2062
SELECT + 8 / - + 12 + - - 68
----
68

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

query II rowsort
SELECT - 95, ( + 31 ) AS col2
----
-95
31

query I rowsort
SELECT ALL - - 74 AS col1
----
74

query I rowsort
SELECT ALL - + 97 AS col0
----
-97

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

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

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

query I rowsort
SELECT COALESCE ( - 80, + + 19 ) * - 86 col1
----
6880

query I rowsort
SELECT ALL 47 + 11 AS col2
----
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2072
SELECT 4 + + 83 + + 58, - 22 * - 46 * + 40 + + 80 * + ( + + COUNT( * ) ) AS col0
----
145
40560

skipif mysql # not compatible
query II rowsort label-2072
SELECT 4 + + 83 + + 58, - 22 * - 46 * + 40 + + 80 * + ( + + COUNT ( * ) ) AS col0
----
145
40560

query I rowsort
SELECT DISTINCT 41 + - - 37 - + 10 - - 75 * - 12
----
-832

query I rowsort
SELECT DISTINCT 53 * + 1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2075
SELECT ALL 11 + + 86 AS col0, 93 * - - COUNT( * )
----
97
93

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL 11 + + 86 AS col0, 93 * - - COUNT ( * )
----
97
93

query I rowsort
SELECT ALL 70 + - 37
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT - CASE - ( - 4 ) WHEN + MIN( ALL - ( - 75 ) ) * + MIN( - 45 ) * - + COUNT( DISTINCT 23 ) / 89 / COUNT( * ) + - 44 THEN + 93 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - CASE - ( - 4 ) WHEN + MIN ( ALL - ( - 75 ) ) * + MIN ( - 45 ) * - + COUNT ( DISTINCT 23 ) / 89 / COUNT ( * ) + - 44 THEN + 93 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT DISTINCT 5 + - 98 + 46 * - CAST( 24 AS SIGNED ) + - COUNT( * ) + + - SUM( - + 44 ) * + 92 AS col0
----
2850

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT 5 + - 98 + 46 * - CAST ( 24 AS INTEGER ) + - COUNT ( * ) + + - SUM ( - + 44 ) * + 92 AS col0
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 3 + + COUNT( + 66 )
----
4

skipif mysql # not compatible
query I rowsort label-2079
SELECT 3 + + COUNT ( + 66 )
----
4

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT 6 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 13 + - 3 * + 6
----
-5

query I rowsort
SELECT 83 * + + 83
----
6889

query I rowsort
SELECT DISTINCT - COALESCE ( 33, - 66 ) - + 45 * - + 66
----
2937

query I rowsort
SELECT 32 * - 67 AS col1
----
-2144

query II rowsort
SELECT ALL - 92 - 52 AS col0, + 82 + - 97
----
-144
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL SUM( ALL 50 ), 38 * + CASE - + 39 WHEN - ( - + 81 ) * + 41 THEN + 7 * + ( - 51 ) WHEN - + 67 THEN NULL WHEN + 73 / + 62 THEN NULL END - - 56 col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL SUM ( ALL 50 ), 38 * + CASE - + 39 WHEN - ( - + 81 ) * + 41 THEN + 7 * + ( - 51 ) WHEN - + 67 THEN NULL WHEN + 73 / + 62 THEN NULL END - - 56 col0
----
50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), 14 * 49 + - 18, - + 23 )
----
668

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), 14 * 49 + - 18, - + 23 )
----
668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2088
SELECT DISTINCT 77 - NULLIF ( - - MIN( DISTINCT - 98 ), - 71 + - CASE - + MAX( - 14 ) WHEN + + 96 THEN 46 - + CAST( NULL AS SIGNED ) + 73 * + 4 ELSE NULL END ) + 90 - + COUNT( * ) - 43 + + 25, - 72 AS col0
----
246
-72

skipif mysql # not compatible
query II rowsort label-2088
SELECT DISTINCT 77 - NULLIF ( - - MIN ( DISTINCT - 98 ), - 71 + - CASE - + MAX ( - 14 ) WHEN + + 96 THEN 46 - + CAST ( NULL AS INTEGER ) + 73 * + 4 ELSE NULL END ) + 90 - + COUNT ( * ) - 43 + + 25, - 72 AS col0
----
246
-72

query I rowsort
SELECT 7 * - 10 * - - 15
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL + MIN( - + ( + - 56 ) )
----
56

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + MIN ( - + ( + - 56 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL + + SUM( - ( - 74 ) ) * 17 AS col1
----
1258

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + + SUM ( - ( - 74 ) ) * 17 AS col1
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ( MAX( DISTINCT - 84 ) ) * + 99 col2
----
-8316

skipif mysql # not compatible
query I rowsort label-2092
SELECT ( MAX ( DISTINCT - 84 ) ) * + 99 col2
----
-8316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2093
SELECT 17 - - - NULLIF ( + - SUM( - - 26 ), 19 ) + + 74 DIV - 22
----
40

skipif mysql # not compatible
query I rowsort label-2093
SELECT 17 - - - NULLIF ( + - SUM ( - - 26 ), 19 ) + + 74 / - 22
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT - 61 DIV + - 46
----
1

skipif mysql # not compatible
query I rowsort label-2094
SELECT - 61 / + - 46
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - - CASE - 49 WHEN + 26 * - + COUNT( 57 ) THEN + - 81 WHEN + 83 THEN - MIN( - 85 ) + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT - - CASE - 49 WHEN + 26 * - + COUNT ( 57 ) THEN + - 81 WHEN + 83 THEN - MIN ( - 85 ) + - 48 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT + COUNT( * ) DIV + 46 * + ( - + 5 ) - COALESCE ( - 76, - 91 ) - - 55 DIV + 53 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2097
SELECT + COUNT ( * ) / + 46 * + ( - + 5 ) - COALESCE ( - 76, - 91 ) - - 55 / + 53 AS col1
----
77

query I rowsort
SELECT DISTINCT + + COALESCE ( - 37, - - 36, + - 30 * + 42 * - 12 + - - 76 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2099
SELECT + 78 * - - CAST( NULL AS SIGNED ) * 55, 59 DIV - + 68 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2099
SELECT + 78 * - - CAST ( NULL AS INTEGER ) * 55, 59 / - + 68 AS col0
----
NULL
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + CASE - 94 WHEN COUNT( * ) THEN + 43 WHEN 15 THEN + + 53 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT + CASE - 94 WHEN COUNT ( * ) THEN + 43 WHEN 15 THEN + + 53 END col1
----
NULL

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

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

query I rowsort
SELECT ALL 75 * + 89 + 14 AS col0
----
6689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL COUNT( * ) * - 35 * - COALESCE ( - 48, 32 ) + ( - + 34 ) + + 58 - CAST( NULL AS SIGNED ) + + - 76 / ( + + COALESCE ( - - 98, + COALESCE ( - COUNT( * ), - 85 * 62 ) ) ) + - 48 * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL COUNT ( * ) * - 35 * - COALESCE ( - 48, 32 ) + ( - + 34 ) + + 58 - CAST ( NULL AS INTEGER ) + + - 76 / ( + + COALESCE ( - - 98, + COALESCE ( - COUNT ( * ), - 85 * 62 ) ) ) + - 48 * 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT DISTINCT 18 * + SUM( ALL - CAST( 96 AS SIGNED ) ) * - 59 + + ( - 77 ) + 42 * + COUNT( * ) + - 70 * + - 39 * - 61 * - 93
----
15589207

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT 18 * + SUM ( ALL - CAST ( 96 AS INTEGER ) ) * - 59 + + ( - 77 ) + 42 * + COUNT ( * ) + - 70 * + - 39 * - 61 * - 93
----
15589207

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

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

query I rowsort
SELECT + NULLIF ( + + 33, - 42 ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT + 34 + - - 61 * - MAX( DISTINCT + CAST( - 55 AS SIGNED ) )
----
3389

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 34 + - - 61 * - MAX ( DISTINCT + CAST ( - 55 AS INTEGER ) )
----
3389

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2109
SELECT + COALESCE ( 97, - CASE COUNT( * ) WHEN + COUNT( * ) + - - ( + 65 ) DIV - - COUNT( * ) THEN + + 82 WHEN - 15 THEN - 2 * - - NULLIF ( + 29, 42 * - - 59 ) END DIV + + 60 ) * 5 * 89, 33 * - 16 AS col2
----
43165
-528

skipif mysql # not compatible
query II rowsort label-2109
SELECT + COALESCE ( 97, - CASE COUNT ( * ) WHEN + COUNT ( * ) + - - ( + 65 ) / - - COUNT ( * ) THEN + + 82 WHEN - 15 THEN - 2 * - - NULLIF ( + 29, 42 * - - 59 ) END / + + 60 ) * 5 * 89, 33 * - 16 AS col2
----
43165
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT SUM( 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2110
SELECT SUM ( 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2111
SELECT ALL COUNT( 51 ) DIV - + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL COUNT ( 51 ) / - + 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2112
SELECT + ( - COALESCE ( 66, 20 + - + NULLIF ( - + NULLIF ( + MIN( - 30 ), + + 97 * - 42 ), + 24 ) * 8 DIV 75 DIV + + CAST( NULL AS SIGNED ) * + - 7 * + - ( - 28 ) + - 55 ) ) - + 36 - NULLIF ( - 23, MIN( - CAST( 16 AS SIGNED ) ) ) AS col2, + 40
----
-79
40

skipif mysql # not compatible
query II rowsort label-2112
SELECT + ( - COALESCE ( 66, 20 + - + NULLIF ( - + NULLIF ( + MIN ( - 30 ), + + 97 * - 42 ), + 24 ) * 8 / 75 / + + CAST ( NULL AS INTEGER ) * + - 7 * + - ( - 28 ) + - 55 ) ) - + 36 - NULLIF ( - 23, MIN ( - CAST ( 16 AS INTEGER ) ) ) AS col2, + 40
----
-79
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-2113
SELECT MAX ( 41 )
----
41

query I rowsort
SELECT + 45 * + 33
----
1485

query I rowsort
SELECT DISTINCT 51 * - 0 AS col1
----
0

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

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

query II rowsort
SELECT ALL + 38, - 99 AS col0
----
38
-99

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

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

query I rowsort
SELECT DISTINCT 15 * 25
----
375

query II rowsort
SELECT ALL - 63, 71 AS col2
----
-63
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + 10 - - MIN( - - 35 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 10 - - MIN ( - - 35 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL 79 - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL 79 - COUNT ( * )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT DISTINCT 67 AS col0, CAST( NULL AS SIGNED )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT 67 AS col0, CAST ( NULL AS INTEGER )
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + MAX( ALL - + 41 ) + - 82 + - - 72 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2124
SELECT + MAX ( ALL - + 41 ) + - 82 + - - 72 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL + 22 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + 22 / 57
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2127
SELECT ALL SUM( DISTINCT + - ( - + 86 ) ) DIV 59 * + + 79 + - - 99 col2, ( 93 ) - + 50 AS col2
----
178
43

skipif mysql # not compatible
query II rowsort label-2127
SELECT ALL SUM ( DISTINCT + - ( - + 86 ) ) / 59 * + + 79 + - - 99 col2, ( 93 ) - + 50 AS col2
----
178
43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT ALL + 45, 80 * - SUM( 11 ) AS col1
----
45
-880

skipif mysql # not compatible
query II rowsort label-2129
SELECT ALL + 45, 80 * - SUM ( 11 ) AS col1
----
45
-880

query I rowsort
SELECT ALL + 29 * 69
----
2001

query I rowsort
SELECT - 53 + ( 3 ) + - + 22 - + 50 AS col1
----
-122

query I rowsort
SELECT ( - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL - - 89 + - COUNT( * ) * + 1
----
88

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL - - 89 + - COUNT ( * ) * + 1
----
88

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

skipif mysql # not compatible
query I rowsort label-2134
SELECT + MAX ( 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2135
SELECT ALL ( - 26 ) DIV + - CAST( + 26 AS SIGNED ) + - MIN( 35 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL ( - 26 ) / + - CAST ( + 26 AS INTEGER ) + - MIN ( 35 ) AS col1
----
-34

query I rowsort
SELECT DISTINCT + 45 AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2137
SELECT DISTINCT 14 DIV + 92 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT 14 / + 92 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - ( - + 9 ) * - 38
----
-342

query I rowsort
SELECT ALL + COALESCE ( + 27, + 44 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT DISTINCT 51 DIV + + 82 * - + 38 - + 23 + + 99 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT 51 / + + 82 * - + 38 - + 23 + + 99 AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT ALL - 50 DIV COALESCE ( + COUNT( DISTINCT - 81 ), + - 96, - ( COUNT( * ) ) * - 18 + AVG ( ALL + 91 ) ) - + 53 + - 34 * 56 + + COUNT( * ) * 82
----
-1925

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - 50 / COALESCE ( + COUNT ( DISTINCT - 81 ), + - 96, - ( COUNT ( * ) ) * - 18 + AVG ( ALL + 91 ) ) - + 53 + - 34 * 56 + + COUNT ( * ) * 82
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT - ( 44 ) * - - COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2142
SELECT - ( 44 ) * - - COUNT ( * ) AS col0
----
-44

query I rowsort
SELECT + 28 * - 9
----
-252

query I rowsort
SELECT - ( 27 ) + + + 60 + - + 65 * - - 20
----
-1267

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT ALL 63 * - 8 - + + COUNT( ALL - 1 ) - + MIN( 41 ) - 92 AS col2, - 70 * + + MAX( 7 ) * + 69
----
-638
-33810

skipif mysql # not compatible
query II rowsort label-2145
SELECT ALL 63 * - 8 - + + COUNT ( ALL - 1 ) - + MIN ( 41 ) - 92 AS col2, - 70 * + + MAX ( 7 ) * + 69
----
-638
-33810

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT + MIN( - ( + 73 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT + MIN ( - ( + 73 ) ) AS col2
----
-73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT - 38 * 32 DIV - ( 40 )
----
30

skipif mysql # not compatible
query I rowsort label-2148
SELECT - 38 * 32 / - ( 40 )
----
30

query I rowsort
SELECT - 51 * - - 44 + - - 83 AS col1
----
-2161

query I rowsort
SELECT - + 55 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + - 73 DIV - 8 + - 75 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2151
SELECT + - 73 / - 8 + - 75 AS col1
----
-66

query I rowsort
SELECT + + 62 * 52 AS col0
----
3224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT - 13 * COUNT( * ) + + + COUNT( * ) DIV - 40 + - + 14 + + - 70
----
-97

skipif mysql # not compatible
query I rowsort label-2153
SELECT - 13 * COUNT ( * ) + + + COUNT ( * ) / - 40 + - + 14 + + - 70
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2154
SELECT 47 * + MAX( DISTINCT + - CAST( 2 AS SIGNED ) ) AS col1, 87
----
-94
87

skipif mysql # not compatible
query II rowsort label-2154
SELECT 47 * + MAX ( DISTINCT + - CAST ( 2 AS INTEGER ) ) AS col1, 87
----
-94
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - + CASE - MAX( - 44 ) WHEN COUNT( * ) + - + COUNT( * ) THEN 94 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT - + CASE - MAX ( - 44 ) WHEN COUNT ( * ) + - + COUNT ( * ) THEN 94 END col0
----
NULL

query I rowsort
SELECT ALL ( + 3 ) + + 14
----
17

query II rowsort
SELECT ALL 84 + - 42 col1, + 13 AS col2
----
42
13

query I rowsort
SELECT DISTINCT + 99 + + 40
----
139

query I rowsort
SELECT - 51 * + - 69 AS col0
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT COUNT( * ) - + - 89 * - + 89 * - - NULLIF ( - 12, 91 )
----
95053

skipif mysql # not compatible
query I rowsort label-2160
SELECT COUNT ( * ) - + - 89 * - + 89 * - - NULLIF ( - 12, 91 )
----
95053

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT 95 - - 45 + - - 65 + + 20 + - MIN( DISTINCT + - 47 ) * - 74 AS col0
----
-3253

skipif mysql # not compatible
query I rowsort label-2162
SELECT 95 - - 45 + - - 65 + + 20 + - MIN ( DISTINCT + - 47 ) * - 74 AS col0
----
-3253

query I rowsort
SELECT ALL ( + COALESCE ( 61, - 59 ) )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT ALL + COALESCE ( + 36, 57, 30 + - 68 ) DIV - 9
----
-4

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL + COALESCE ( + 36, 57, 30 + - 68 ) / - 9
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2165
SELECT + 17 DIV 88 * COALESCE ( + 91, CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT + 17 / 88 * COALESCE ( + 91, CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT ALL + CAST( NULL AS SIGNED ) + 40 + MAX( DISTINCT - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + CAST ( NULL AS INTEGER ) + 40 + MAX ( DISTINCT - 65 )
----
NULL

query I rowsort
SELECT DISTINCT + 95 * 95 * 91
----
821275

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2169
SELECT 97 - + COALESCE ( + COALESCE ( + - 56, + - 41, + 48 * - - 49 + - + CASE - COALESCE ( - 72, + 77, 82 ) WHEN 7 + 89 THEN + ( + 0 ) * + + 77 END + + 13 + + 14 DIV 35 * + CASE - 92 WHEN + + ( + 83 ) THEN + 43 - - - CASE - 39 WHEN - + COUNT( * ) + 88 + 75 THEN NULL WHEN 9 * + 72 + ( + 24 ) THEN - 41 END WHEN NULLIF ( - SUM( 62 ), + 3 + - 17 ) THEN NULL END - - 19 ), - 86 + + COUNT( - 45 + + 47 ) ) + 76 AS col0
----
229

skipif mysql # not compatible
query I rowsort label-2169
SELECT 97 - + COALESCE ( + COALESCE ( + - 56, + - 41, + 48 * - - 49 + - + CASE - COALESCE ( - 72, + 77, 82 ) WHEN 7 + 89 THEN + ( + 0 ) * + + 77 END + + 13 + + 14 / 35 * + CASE - 92 WHEN + + ( + 83 ) THEN + 43 - - - CASE - 39 WHEN - + COUNT ( * ) + 88 + 75 THEN NULL WHEN 9 * + 72 + ( + 24 ) THEN - 41 END WHEN NULLIF ( - SUM ( 62 ), + 3 + - 17 ) THEN NULL END - - 19 ), - 86 + + COUNT ( - 45 + + 47 ) ) + 76 AS col0
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT 6 - - COALESCE ( 57, 62 * 29 + + ( - ( COUNT( DISTINCT 9 ) ) ) * 75 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2170
SELECT 6 - - COALESCE ( 57, 62 * 29 + + ( - ( COUNT ( DISTINCT 9 ) ) ) * 75 ) AS col2
----
63

query I rowsort
SELECT ALL + 41 - - + 46 + + + 83 + + 91
----
261

query II rowsort
SELECT + 59 AS col1, + 59 AS col1
----
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2173
SELECT ALL - 78 - - 23 + + 48, + 83 + - + COUNT( * ) AS col1
----
-7
82

skipif mysql # not compatible
query II rowsort label-2173
SELECT ALL - 78 - - 23 + + 48, + 83 + - + COUNT ( * ) AS col1
----
-7
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT ALL - 58, 77 + COUNT( * ) + - 88 AS col1
----
-58
-10

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL - 58, 77 + COUNT ( * ) + - 88 AS col1
----
-58
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2175
SELECT 96 + - COUNT( - + ( - 78 ) ) DIV 79 * + CAST( + 84 AS SIGNED ) + - COUNT( * ) + - 87
----
8

skipif mysql # not compatible
query I rowsort label-2175
SELECT 96 + - COUNT ( - + ( - 78 ) ) / 79 * + CAST ( + 84 AS INTEGER ) + - COUNT ( * ) + - 87
----
8

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

skipif mysql # not compatible
query I rowsort label-2176
SELECT COUNT ( * ) * 61
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2177
SELECT DISTINCT - 70 AS col0, CAST( NULL AS SIGNED ) + - 8 + - + 68 col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-2177
SELECT DISTINCT - 70 AS col0, CAST ( NULL AS INTEGER ) + - 8 + - + 68 col1
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT 15 * - 57 * 92 + + MIN( + 87 ) + - + COUNT( * )
----
-78574

skipif mysql # not compatible
query I rowsort label-2178
SELECT 15 * - 57 * 92 + + MIN ( + 87 ) + - + COUNT ( * )
----
-78574

query I rowsort
SELECT ALL - 41 col0
----
-41

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

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

query I rowsort
SELECT 22 * - 15
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL - CASE + - 56 WHEN + 23 THEN 52 WHEN - 29 THEN + COUNT( * ) * + 84 * + - ( 7 ) + - COUNT( DISTINCT - 12 ) / + - 81 * + COUNT( - 12 ) + + - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - CASE + - 56 WHEN + 23 THEN 52 WHEN - 29 THEN + COUNT ( * ) * + 84 * + - ( 7 ) + - COUNT ( DISTINCT - 12 ) / + - 81 * + COUNT ( - 12 ) + + - 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT 31 + + COUNT( * ) - + + 59 * - COUNT( * ) * ( COUNT( * ) ) + 79 - + 66 AS col1, 30 AS col1
----
104
30

skipif mysql # not compatible
query II rowsort label-2183
SELECT 31 + + COUNT ( * ) - + + 59 * - COUNT ( * ) * ( COUNT ( * ) ) + 79 - + 66 AS col1, 30 AS col1
----
104
30

query II rowsort
SELECT ALL + 79 * 70 * 49 col2, + 91
----
270970
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2185
SELECT 12 * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT 12 * CAST ( NULL AS REAL ) col1
----
NULL

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

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

query I rowsort
SELECT ALL - 22 * 18 * 36 + - 57
----
-14313

query I rowsort
SELECT 16 * - 52 * 4
----
-3328

query I rowsort
SELECT ALL - + 85 + + 25 + + - 91
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL 25 + - + CAST( + 3 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL 25 + - + CAST ( + 3 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT 92 - - + 64
----
156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - + COUNT( * ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - + COUNT ( * ) + - 8
----
-9

query I rowsort
SELECT DISTINCT + + 48 + - 71
----
-23

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

query I rowsort
SELECT + - 23 * + 52 + 17 AS col1
----
-1179

query I rowsort
SELECT ALL + 70 + - 69 * 32 AS col2
----
-2138

query I rowsort
SELECT + 74 + 19 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT 61 * + 48 - CAST( 87 AS SIGNED ) AS col2
----
2841

skipif mysql # not compatible
query I rowsort label-2199
SELECT 61 * + 48 - CAST ( 87 AS INTEGER ) AS col2
----
2841

query I rowsort
SELECT 64 + ( + - 89 ) AS col1
----
-25

query I rowsort
SELECT - 57 - + 50
----
-107

query I rowsort
SELECT 10 + + 80
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL - COUNT( * ) + 33
----
32

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - COUNT ( * ) + 33
----
32

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

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

query I rowsort
SELECT ALL 89 * 75
----
6675

onlyif mysql # aggregate syntax: 
query II rowsort label-2206
SELECT ALL 44, 79 + + NULLIF ( + 71, + + 51 + + 47 ) + + - 43 + + COUNT( * ) * + 38 AS col1
----
44
145

skipif mysql # not compatible
query II rowsort label-2206
SELECT ALL 44, 79 + + NULLIF ( + 71, + + 51 + + 47 ) + + - 43 + + COUNT ( * ) * + 38 AS col1
----
44
145

query I rowsort
SELECT DISTINCT 6 - - 52 AS col1
----
58

query II rowsort
SELECT 53 AS col2, - 79 * - - 13
----
53
-1027

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT 6 + - - MIN( + + 50 ) + - 99 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2209
SELECT 6 + - - MIN ( + + 50 ) + - 99 AS col1
----
-43

query I rowsort
SELECT ALL 41 - 59 AS col2
----
-18

query I rowsort
SELECT 77 * + 66 col2
----
5082

query I rowsort
SELECT 13 * - - 62
----
806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2213
SELECT NULLIF ( 37, - 35 * + CASE - 20 WHEN + 26 * + 33 + + + 90 * 4 THEN - 73 WHEN + 82 + - ( - 40 ) THEN + CASE + CAST( NULL AS SIGNED ) WHEN CAST( - - 42 AS SIGNED ) * - ( COUNT( * ) ) THEN + - 83 WHEN - + COUNT( * ) THEN 1 END END + + 69 ) + - 69 col0
----
-32

skipif mysql # not compatible
query I rowsort label-2213
SELECT NULLIF ( 37, - 35 * + CASE - 20 WHEN + 26 * + 33 + + + 90 * 4 THEN - 73 WHEN + 82 + - ( - 40 ) THEN + CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( - - 42 AS INTEGER ) * - ( COUNT ( * ) ) THEN + - 83 WHEN - + COUNT ( * ) THEN 1 END END + + 69 ) + - 69 col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT 67 AS col0, ( - + COUNT( * ) ) * - + 5
----
67
5

skipif mysql # not compatible
query II rowsort label-2214
SELECT 67 AS col0, ( - + COUNT ( * ) ) * - + 5
----
67
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT 10 * 70 + + MIN( - 17 ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT 10 * 70 + + MIN ( - 17 ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT 37 * COUNT( * ) + + 58 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2216
SELECT 37 * COUNT ( * ) + + 58 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT SUM( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2217
SELECT SUM ( 20 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT ALL - NULLIF ( 47, - 79 * - + COUNT( * ) ) * + 92 * + CAST( + 96 AS SIGNED ) * + 89 + - - 58 + + 73
----
-36944125

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - NULLIF ( 47, - 79 * - + COUNT ( * ) ) * + 92 * + CAST ( + 96 AS INTEGER ) * + 89 + - - 58 + + 73
----
-36944125

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT 22 DIV - - 67 * - - 29
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT 22 / - - 67 * - - 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT ALL 75 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL 75 / + 80 AS col1
----
0

query I rowsort
SELECT 28 + + 10 AS col0
----
38

query I rowsort
SELECT DISTINCT 92 * + CASE 14 WHEN - 23 THEN 52 WHEN + 18 * 70 * + + 45 + 29 + - - 50 / + 82 + 87 - 49 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 92 * - 22 + - 55
----
1969

query I rowsort
SELECT ALL 27 * 29 AS col2
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT 2 DIV ( ( - 76 ) ) + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-2225
SELECT 2 / ( ( - 76 ) ) + - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT COUNT( - 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT COUNT ( - 67 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL - 53 * + + 16 + - - CAST( COUNT( * ) AS SIGNED ) + + 8
----
-839

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - 53 * + + 16 + - - CAST ( COUNT ( * ) AS INTEGER ) + + 8
----
-839

query I rowsort
SELECT + 42 + + 79 col1
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT - 56 DIV - COUNT( ALL - - 22 ) + + 42 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 56 / - COUNT ( ALL - - 22 ) + + 42 AS col0
----
98

query II rowsort
SELECT + 15 col2, 27 AS col0
----
15
27

query II rowsort
SELECT ALL + 20 col2, 65 + - - 39 + 88 AS col1
----
20
192

query I rowsort
SELECT - + 5 + - 7 + + 44 * + 47
----
2056

query I rowsort
SELECT - 45 * - 35
----
1575

query I rowsort
SELECT - - 79 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL + + 70 - - 24 + + COALESCE ( + - 88, 7 ) + + COUNT( * ) * MIN( DISTINCT - 1 ) + + - 56
----
-51

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + + 70 - - 24 + + COALESCE ( + - 88, 7 ) + + COUNT ( * ) * MIN ( DISTINCT - 1 ) + + - 56
----
-51

query I rowsort
SELECT DISTINCT ( + NULLIF ( - - 31, + 67 ) ) AS col0
----
31

query I rowsort
SELECT - + 78 * + - 20 AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - SUM( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2238
SELECT - SUM ( 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL + SUM( DISTINCT + 88 ) - - + 94
----
182

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + SUM ( DISTINCT + 88 ) - - + 94
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-2240
SELECT - COUNT( * ) * + 71 AS col0, + 52 + - 91 AS col2
----
-71
-39

skipif mysql # not compatible
query II rowsort label-2240
SELECT - COUNT ( * ) * + 71 AS col0, + 52 + - 91 AS col2
----
-71
-39

query I rowsort
SELECT ALL ( + 58 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2242
SELECT - COUNT( * ) DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT - COUNT ( * ) / 89 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT + 53 * + 59 * 11 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT + 53 * + 59 * 11 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT DISTINCT - MIN( - - 34 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT - MIN ( - - 34 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 23 - + 44 - 48 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + 29 * CASE COUNT( * ) WHEN - 90 * - - ( + 86 ) THEN NULL ELSE - 93 * - + 5 / + CASE + + NULLIF ( 99, - 11 ) WHEN ( + + 3 ) + - + 20 * 82 THEN COUNT( * ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT + 29 * CASE COUNT ( * ) WHEN - 90 * - - ( + 86 ) THEN NULL ELSE - 93 * - + 5 / + CASE + + NULLIF ( 99, - 11 ) WHEN ( + + 3 ) + - + 20 * 82 THEN COUNT ( * ) END END AS col2
----
NULL

query I rowsort
SELECT - CASE + + 48 WHEN - 44 + + 86 THEN NULL WHEN - 89 THEN + 98 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 31, - - 86 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2249
SELECT + 76 + CAST( NULL AS SIGNED ) col0, + 40 + - + 85 DIV + CAST( + NULLIF ( + - 20, + 44 * 27 * + 19 + + 57 + 4 DIV + + CASE + 74 WHEN 16 + + - CASE - 97 WHEN - - 61 THEN - 86 ELSE NULL END + - - 86 - - AVG ( + 82 ) THEN - MIN( ALL - 55 ) WHEN - - 12 - + 45 + + + 59 * 48 THEN COUNT( * ) * 27 + + - 64 WHEN + + 79 THEN CAST( NULL AS DECIMAL ) DIV 85 + 31 WHEN COUNT( 4 ) * - 4 THEN NULL ELSE NULL END ) AS SIGNED )
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2249
SELECT + 76 + CAST ( NULL AS INTEGER ) col0, + 40 + - + 85 / + CAST ( + NULLIF ( + - 20, + 44 * 27 * + 19 + + 57 + 4 / + + CASE + 74 WHEN 16 + + - CASE - 97 WHEN - - 61 THEN - 86 ELSE NULL END + - - 86 - - AVG ( + 82 ) THEN - MIN ( ALL - 55 ) WHEN - - 12 - + 45 + + + 59 * 48 THEN COUNT ( * ) * 27 + + - 64 WHEN + + 79 THEN CAST ( NULL AS REAL ) / 85 + 31 WHEN COUNT ( 4 ) * - 4 THEN NULL ELSE NULL END ) AS INTEGER )
----
NULL
44

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

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL 87 * + - 6 * 45 * + COUNT ( * ) * + 40 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 93 * + 87
----
8091

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT ALL ( - COUNT( * ) ), + 57 * + 65 * MAX( - 94 ) AS col2
----
-1
-348270

skipif mysql # not compatible
query II rowsort label-2252
SELECT ALL ( - COUNT ( * ) ), + 57 * + 65 * MAX ( - 94 ) AS col2
----
-1
-348270

query I rowsort
SELECT DISTINCT 34 * + 59
----
2006

query I rowsort
SELECT + 46 - + + 16 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT ALL 52 * + MAX( + - 41 ), 88 + - MAX( ALL + - 23 ) AS col1
----
-2132
111

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL 52 * + MAX ( + - 41 ), 88 + - MAX ( ALL + - 23 ) AS col1
----
-2132
111

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT - 57 * 56 DIV - 77
----
41

skipif mysql # not compatible
query I rowsort label-2256
SELECT - 57 * 56 / - 77
----
41

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

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

query I rowsort
SELECT - 88 * ( 44 ) - + 57
----
-3929

query I rowsort
SELECT ( 1 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL - 58 DIV 14 DIV - ( - 87 ) * + - 94 + 91 * 68 AS col1
----
6188

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - 58 / 14 / - ( - 87 ) * + - 94 + 91 * 68 AS col1
----
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2261
SELECT 16 DIV COUNT( * ) + - + 86 + 45 * - 35
----
-1645

skipif mysql # not compatible
query I rowsort label-2261
SELECT 16 / COUNT ( * ) + - + 86 + 45 * - 35
----
-1645

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL - 8 * + + 74 + ( - - 42 ) + COUNT( * )
----
-549

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - 8 * + + 74 + ( - - 42 ) + COUNT ( * )
----
-549

query I rowsort
SELECT + 27 * - 39
----
-1053

query II rowsort
SELECT + 86 + - 81 col1, - 13 AS col1
----
5
-13

query I rowsort
SELECT DISTINCT + 69 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2266
SELECT ALL - NULLIF ( + + 11, + ( + 99 ) ) * - COALESCE ( 18, + SUM( 27 ) * 44 + + 26 - - - 98 DIV - 32 + - 36 ) + + COUNT( * )
----
199

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - NULLIF ( + + 11, + ( + 99 ) ) * - COALESCE ( 18, + SUM ( 27 ) * 44 + + 26 - - - 98 / - 32 + - 36 ) + + COUNT ( * )
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT - 8 * 37 * 2 + + NULLIF ( + COUNT( * ), - 50 )
----
-591

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - 8 * 37 * 2 + + NULLIF ( + COUNT ( * ), - 50 )
----
-591

query I rowsort
SELECT + - COALESCE ( + - 97, - 84 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT - COUNT( * ) * - 36 + 80 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - COUNT ( * ) * - 36 + 80 AS col2
----
116

query I rowsort
SELECT DISTINCT + 65 * - ( + - ( + 44 ) ) - 81 + 30
----
2809

query I rowsort
SELECT ALL - 45 * 92
----
-4140

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

query I rowsort
SELECT ALL + - ( + 35 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2274
SELECT + COUNT( * ) * + CAST( + - 24 AS SIGNED ) + 68 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2274
SELECT + COUNT ( * ) * + CAST ( + - 24 AS INTEGER ) + 68 AS col2
----
44

query I rowsort
SELECT - 17 * + 94
----
-1598

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT ALL + - SUM( + 34 ) AS col2, SUM( + 61 ) + + 32 AS col2
----
-34
93

skipif mysql # not compatible
query II rowsort label-2276
SELECT ALL + - SUM ( + 34 ) AS col2, SUM ( + 61 ) + + 32 AS col2
----
-34
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + COUNT( * ) * + - 61 - - 56 + - 65 + + 68
----
-2

skipif mysql # not compatible
query I rowsort label-2277
SELECT + COUNT ( * ) * + - 61 - - 56 + - 65 + + 68
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - + 68 DIV 49
----
-1

skipif mysql # not compatible
query I rowsort label-2278
SELECT - + 68 / 49
----
-1

query I rowsort
SELECT DISTINCT + + 96 AS col1
----
96

query I rowsort
SELECT DISTINCT + - 35 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL 30 * - + 68 - + ( - 24 ) + + ( 97 ) + + COALESCE ( + CAST( NULL AS SIGNED ), - 10 ) + - 77 AS col1
----
-2006

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL 30 * - + 68 - + ( - 24 ) + + ( 97 ) + + COALESCE ( + CAST ( NULL AS INTEGER ), - 10 ) + - 77 AS col1
----
-2006

query I rowsort
SELECT - 92 - - + 31 col0
----
-61

query I rowsort
SELECT ALL + NULLIF ( - + 23, 65 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT ALL 38 * + 23 - + - 57 * + 69 - - 3 DIV 23 * - 39 AS col1
----
4807

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL 38 * + 23 - + - 57 * + 69 - - 3 / 23 * - 39 AS col1
----
4807

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT + NULLIF ( COUNT( * ), - 51 * 77 + + - MAX( 95 ) ) * - + COUNT( * ), COUNT( * ) * - 43 AS col1
----
-1
-43

skipif mysql # not compatible
query II rowsort label-2285
SELECT + NULLIF ( COUNT ( * ), - 51 * 77 + + - MAX ( 95 ) ) * - + COUNT ( * ), COUNT ( * ) * - 43 AS col1
----
-1
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT - 59 * - - 44 + + MIN( DISTINCT + 71 ) + + CASE + - 29 WHEN ( - - COUNT( * ) ) THEN 2 WHEN 28 THEN - 43 * + 29 + + 7 * + - 40 - 71 END, 37 * + + 51 AS col2
----
NULL
1887

skipif mysql # not compatible
query II rowsort label-2286
SELECT - 59 * - - 44 + + MIN ( DISTINCT + 71 ) + + CASE + - 29 WHEN ( - - COUNT ( * ) ) THEN 2 WHEN 28 THEN - 43 * + 29 + + 7 * + - 40 - 71 END, 37 * + + 51 AS col2
----
NULL
1887

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT + 59 + - COALESCE ( - - MAX( ALL - 17 ), 73 ) + - 78 * 56 AS col0, + ( + 81 )
----
-4292
81

skipif mysql # not compatible
query II rowsort label-2287
SELECT + 59 + - COALESCE ( - - MAX ( ALL - 17 ), 73 ) + - 78 * 56 AS col0, + ( + 81 )
----
-4292
81

query I rowsort
SELECT DISTINCT ( + + 47 ) AS col1
----
47

query I rowsort
SELECT ALL - 82 * - 25
----
2050

query I rowsort
SELECT - 30 * 85 * - 86 AS col1
----
219300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2291
SELECT ALL CAST( NULL AS SIGNED ), + 68 + 31 + 91 + - 74 AS col2
----
NULL
116

skipif mysql # not compatible
query II rowsort label-2291
SELECT ALL CAST ( NULL AS INTEGER ), + 68 + 31 + 91 + - 74 AS col2
----
NULL
116

query I rowsort
SELECT DISTINCT NULLIF ( + + 90, - - 45 - ( + 99 ) + 96 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2293
SELECT DISTINCT + 38 + - 91 + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT + 38 + - 91 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-54

query I rowsort
SELECT ALL ( + - 0 ) + + 84 - + 6
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT ALL CAST( - 41 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL CAST ( - 41 AS INTEGER ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2296
SELECT - 63 DIV - + MAX( DISTINCT 72 )
----
0

skipif mysql # not compatible
query I rowsort label-2296
SELECT - 63 / - + MAX ( DISTINCT 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + 22 + - + COUNT( * ) + + - 86
----
-65

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 22 + - + COUNT ( * ) + + - 86
----
-65

query I rowsort
SELECT ALL + 20 + - 90 AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT 21 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT 21 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 + + - 34
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT DISTINCT CAST( NULL AS SIGNED ) + 12 * 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 12 * 85 AS col1
----
NULL

query I rowsort
SELECT ALL 74 * + - 47
----
-3478

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

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

query I rowsort
SELECT ALL 92 + + 40
----
132

query I rowsort
SELECT DISTINCT + 7 + + - 76 + - - 0 + 24
----
-45

query I rowsort
SELECT - 61 + - ( 48 ) col1
----
-109

query I rowsort
SELECT ALL - - 35 AS col0
----
35

query I rowsort
SELECT DISTINCT - 16 * + 90 AS col2
----
-1440

query I rowsort
SELECT - 79 * 56 AS col2
----
-4424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT + 27 + + + CAST( NULL AS SIGNED ) * + + 70 * + 18 * + 42 * + 9 + 74 * 24 + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT + 27 + + + CAST ( NULL AS INTEGER ) * + + 70 * + 18 * + 42 * + 9 + 74 * 24 + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - COALESCE ( 68, COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2311
SELECT - COALESCE ( 68, COUNT ( * ) ) AS col1
----
-68

query I rowsort
SELECT DISTINCT - - 75 AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT DISTINCT - + 42 AS col0, COUNT( * ) + + CASE + + 53 WHEN 20 THEN - 42 END * 37 * - 95 * - + 92
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-2314
SELECT DISTINCT - + 42 AS col0, COUNT ( * ) + + CASE + + 53 WHEN 20 THEN - 42 END * 37 * - 95 * - + 92
----
-42
NULL

query I rowsort
SELECT ALL + 67 * - ( + - 83 ) + 11 + + 72
----
5644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT 39 + + - CASE 9 WHEN - 76 - CAST( NULL AS SIGNED ) THEN 50 - 94 END * - 64 * ( + - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT 39 + + - CASE 9 WHEN - 76 - CAST ( NULL AS INTEGER ) THEN 50 - 94 END * - 64 * ( + - 76 )
----
NULL

query II rowsort
SELECT ALL - 98 AS col1, + 53 AS col1
----
-98
53

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

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

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

skipif mysql # not compatible
query I rowsort label-2319
SELECT 88 / ( - + 61 ) * + - COUNT ( * )
----
1

query I rowsort
SELECT + 17 * 63 * 1 col0
----
1071

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2321
SELECT 26 * - 58, COALESCE ( ( 80 ), - 16 * + ( - CAST( NULL AS SIGNED ) ), + CAST( NULL AS SIGNED ) ) col2
----
-1508
80

skipif mysql # not compatible
query II rowsort label-2321
SELECT 26 * - 58, COALESCE ( ( 80 ), - 16 * + ( - CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) ) col2
----
-1508
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT SUM( ALL - - 15 ) * + CASE - 76 WHEN + 26 THEN 24 END + - + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT SUM ( ALL - - 15 ) * + CASE - 76 WHEN + 26 THEN 24 END + - + 46 col0
----
NULL

query I rowsort
SELECT DISTINCT 24 * ( - 29 )
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL MIN( - 59 ) + + 3 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL MIN ( - 59 ) + + 3 AS col1
----
-56

query I rowsort
SELECT ALL + CASE - 32 WHEN - 7 THEN NULL ELSE + 19 END + + + 21 AS col0
----
40

query I rowsort
SELECT NULLIF ( NULLIF ( + + ( 13 ), - 74 ), 18 ) * + 12 AS col1
----
156

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

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

query I rowsort
SELECT 21 - + + 35
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT 31 + - + CAST( NULL AS SIGNED ) / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT 31 + - + CAST ( NULL AS INTEGER ) / - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2330
SELECT ALL + 16 * COUNT( * ) AS col1, + ( 49 )
----
16
49

skipif mysql # not compatible
query II rowsort label-2330
SELECT ALL + 16 * COUNT ( * ) AS col1, + ( 49 )
----
16
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL + COUNT( * ) + + + 20 - - SUM( DISTINCT 82 ) - - 16 * CASE + 91 WHEN + 96 THEN NULL WHEN - - 62 - 87 THEN 75 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + COUNT ( * ) + + + 20 - - SUM ( DISTINCT 82 ) - - 16 * CASE + 91 WHEN + 96 THEN NULL WHEN - - 62 - 87 THEN 75 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 56 * + + COALESCE ( - 7, - 31 ), + 66 + + - 59 * - 74 AS col0
----
-392
4432

query II rowsort
SELECT 85 + - 29, - 17 AS col1
----
56
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2334
SELECT - 49 - + - 19 AS col0, + CAST( NULL AS SIGNED )
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-2334
SELECT - 49 - + - 19 AS col0, + CAST ( NULL AS INTEGER )
----
-30
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( - 56, - 4 ) AS col2
----
-56

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

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

query I rowsort
SELECT + 2 * + CASE - 80 WHEN - 47 THEN + 12 WHEN + 47 THEN NULL END + + ( - + 28 ) AS col0
----
NULL

query I rowsort
SELECT 5 * - + 53 + - 22 + - 76 AS col0
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT ALL + 12 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 12 / - 55
----
0

query II rowsort
SELECT 54 + - 58, - 14 AS col0
----
-4
-14

query I rowsort
SELECT ALL 69 * + 56
----
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT ALL - - 59 DIV + ( - 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - - 59 / + ( - 36 ) AS col1
----
-1

query I rowsort
SELECT ALL - ( - 15 ) col2
----
15

query I rowsort
SELECT - 52 * + + 26 AS col1
----
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL 91 * + + COUNT( * ) + + COUNT( * ) + + + 24 * + 9 AS col2
----
308

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL 91 * + + COUNT ( * ) + + COUNT ( * ) + + + 24 * + 9 AS col2
----
308

query I rowsort
SELECT DISTINCT + 60 - - 57
----
117

query I rowsort
SELECT ALL - - 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + + COALESCE ( - 0, 81 * 57 + + CASE - - 78 WHEN 3 + + + COALESCE ( - 51, - + 85, - MIN( - 17 ) ) + 7 THEN MIN( - 2 ) + + 94 ELSE NULL END, + 98 * 68 )
----
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT + + COALESCE ( - 0, 81 * 57 + + CASE - - 78 WHEN 3 + + + COALESCE ( - 51, - + 85, - MIN ( - 17 ) ) + 7 THEN MIN ( - 2 ) + + 94 ELSE NULL END, + 98 * 68 )
----
0

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

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

query I rowsort
SELECT + 18 * + ( + + 16 ) AS col2
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT ALL - COALESCE ( - + 79, 39 ) * + 93 col0, 91 + - CASE + + COUNT( * ) WHEN 61 THEN - 79 ELSE NULL END + + + 61 - - 65 / COUNT( * ) AS col0
----
7347
NULL

skipif mysql # not compatible
query II rowsort label-2351
SELECT ALL - COALESCE ( - + 79, 39 ) * + 93 col0, 91 + - CASE + + COUNT ( * ) WHEN 61 THEN - 79 ELSE NULL END + + + 61 - - 65 / COUNT ( * ) AS col0
----
7347
NULL

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

query I rowsort
SELECT + 75 * + 44 + 87 + + NULLIF ( 38, 79 )
----
3425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT + MIN( ALL - + 26 ) * - - 68 + + - MIN( + CAST( + 73 AS SIGNED ) ) col2
----
-1841

skipif mysql # not compatible
query I rowsort label-2354
SELECT + MIN ( ALL - + 26 ) * - - 68 + + - MIN ( + CAST ( + 73 AS INTEGER ) ) col2
----
-1841

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT DISTINCT SUM( - 70 ) + - ( 94 ) * - CAST( NULL AS SIGNED ) * + + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT SUM ( - 70 ) + - ( 94 ) * - CAST ( NULL AS INTEGER ) * + + 38 AS col1
----
NULL

query I rowsort
SELECT ALL 29 + + 85
----
114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL COALESCE ( 64, + + 34, - + NULLIF ( - 17, + 46 + 65 + + COUNT( * ) * - AVG ( + - 93 ) ) * - 69 + + + COUNT( * ) * 34 + + COUNT( * ) ) + - + 63 * + CASE + 30 WHEN 24 THEN - 28 - + 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL COALESCE ( 64, + + 34, - + NULLIF ( - 17, + 46 + 65 + + COUNT ( * ) * - AVG ( + - 93 ) ) * - 69 + + + COUNT ( * ) * 34 + + COUNT ( * ) ) + - + 63 * + CASE + 30 WHEN 24 THEN - 28 - + 42 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT + 11 + + - CAST( - 78 AS SIGNED ) + - 27 + - 31 + 8 + 64
----
103

skipif mysql # not compatible
query I rowsort label-2360
SELECT + 11 + + - CAST ( - 78 AS INTEGER ) + - 27 + - 31 + 8 + 64
----
103

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

query II rowsort
SELECT ALL 20, 43 AS col0
----
20
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - NULLIF ( + + 19, COUNT( * ) * - 18 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2363
SELECT - NULLIF ( + + 19, COUNT ( * ) * - 18 ) AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT 10 * + ( + CASE - - ( + NULLIF ( 13, - 4 + + 88 + - + CASE COUNT( * ) WHEN - + ( - 57 ) THEN 68 END * - + 48 + - 40 ) ) WHEN - + 65 THEN + + MIN( DISTINCT + + 97 ) + + MAX( ALL - - 51 ) WHEN 59 + - AVG ( DISTINCT 16 ) + - 40 THEN NULL ELSE + MAX( ALL + + 55 ) DIV + 63 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT 10 * + ( + CASE - - ( + NULLIF ( 13, - 4 + + 88 + - + CASE COUNT ( * ) WHEN - + ( - 57 ) THEN 68 END * - + 48 + - 40 ) ) WHEN - + 65 THEN + + MIN ( DISTINCT + + 97 ) + + MAX ( ALL - - 51 ) WHEN 59 + - AVG ( DISTINCT 16 ) + - 40 THEN NULL ELSE + MAX ( ALL + + 55 ) / + 63 END ) AS col1
----
0

query I rowsort
SELECT DISTINCT 25 AS col2
----
25

query I rowsort
SELECT ALL - 57 - - 24
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-2367
SELECT + 57 + ( + 67 ) AS col0, 65 + + + 72 + - + 7 * - 68 * - 86 * + COALESCE ( 62, + 85 DIV NULLIF ( 29, + 50 + - 16 ) )
----
124
-2537895

skipif mysql # not compatible
query II rowsort label-2367
SELECT + 57 + ( + 67 ) AS col0, 65 + + + 72 + - + 7 * - 68 * - 86 * + COALESCE ( 62, + 85 / NULLIF ( 29, + 50 + - 16 ) )
----
124
-2537895

query I rowsort
SELECT ALL 30 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - CASE + NULLIF ( + - 80, + + 51 + 8 * 89 ) WHEN - COUNT( * ) + - + 24 THEN NULL WHEN + + 35 THEN NULL WHEN 21 THEN - COUNT( 18 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT - CASE + NULLIF ( + - 80, + + 51 + 8 * 89 ) WHEN - COUNT ( * ) + - + 24 THEN NULL WHEN + + 35 THEN NULL WHEN 21 THEN - COUNT ( 18 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - COUNT( * ) + - 71 * ( - 62 ) col0
----
4401

skipif mysql # not compatible
query I rowsort label-2370
SELECT - COUNT ( * ) + - 71 * ( - 62 ) col0
----
4401

query I rowsort
SELECT ALL + 58 - + + 14
----
44

query I rowsort
SELECT - 70 * - + 98 AS col2
----
6860

query I rowsort
SELECT ALL + 66 * 56 + + + 74
----
3770

query I rowsort
SELECT + 9 + 56
----
65

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

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

query I rowsort
SELECT DISTINCT + 40 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2377
SELECT DISTINCT + COUNT( * ), COUNT( ALL - - 75 ), 7 DIV ( - NULLIF ( + 36, COUNT( ALL - 52 ) ) ) + - + 92 * - 75 col0
----
1
1
6900

skipif mysql # not compatible
query III rowsort label-2377
SELECT DISTINCT + COUNT ( * ), COUNT ( ALL - - 75 ), 7 / ( - NULLIF ( + 36, COUNT ( ALL - 52 ) ) ) + - + 92 * - 75 col0
----
1
1
6900

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

query I rowsort
SELECT DISTINCT - + 7 * + + 91
----
-637

onlyif mysql # aggregate syntax: 
query II rowsort label-2380
SELECT DISTINCT + 17 col0, COUNT( 15 ) + 61 AS col0
----
17
62

skipif mysql # not compatible
query II rowsort label-2380
SELECT DISTINCT + 17 col0, COUNT ( 15 ) + 61 AS col0
----
17
62

query I rowsort
SELECT DISTINCT - 73 * - - 1 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT - + 51 DIV COUNT( * ) * + + 34 * - 5 AS col2
----
8670

skipif mysql # not compatible
query I rowsort label-2382
SELECT - + 51 / COUNT ( * ) * + + 34 * - 5 AS col2
----
8670

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT - COUNT( * ) * 47 * + COUNT( * ) * 56 + 77 + - 18 * COUNT( * ) AS col0
----
-2573

skipif mysql # not compatible
query I rowsort label-2383
SELECT - COUNT ( * ) * 47 * + COUNT ( * ) * 56 + 77 + - 18 * COUNT ( * ) AS col0
----
-2573

query I rowsort
SELECT ALL + - ( 4 )
----
-4

query I rowsort
SELECT ALL + + 46 AS col0
----
46

query I rowsort
SELECT - NULLIF ( - 85, + 3 + + + 80 - - 55 * - 3 * 17 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT + - 26 * COUNT( * ) - + 67 + + 96
----
3

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + - 26 * COUNT ( * ) - + 67 + + 96
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2388
SELECT COALESCE ( + 60, + CAST( NULL AS SIGNED ) * - 39 + + 94 + - 61 + - + 66 - + - CAST( - - 14 AS SIGNED ) * - COALESCE ( + 54, 94 + + 56 ) DIV - 40 + + + 49 + - 38, 76 DIV - 51 ), + 2 AS col2
----
60
2

skipif mysql # not compatible
query II rowsort label-2388
SELECT COALESCE ( + 60, + CAST ( NULL AS INTEGER ) * - 39 + + 94 + - 61 + - + 66 - + - CAST ( - - 14 AS INTEGER ) * - COALESCE ( + 54, 94 + + 56 ) / - 40 + + + 49 + - 38, 76 / - 51 ), + 2 AS col2
----
60
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2389
SELECT - 39 * - + CAST( NULL AS DECIMAL ) * - 96 - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT - 39 * - + CAST ( NULL AS REAL ) * - 96 - - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL + - 82
----
-82

query I rowsort
SELECT ALL - 29 * + 37 + - - 76 + - 25 * + ( - 58 ) AS col1
----
453

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL + + MAX( ALL - + 22 ) * - + MIN( ALL 47 ) + 36 * 91
----
4310

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + + MAX ( ALL - + 22 ) * - + MIN ( ALL 47 ) + 36 * 91
----
4310

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT + SUM( + 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + SUM ( + 61 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2395
SELECT ALL + CAST( + 39 AS SIGNED ) AS col2, 66 * 0 + - 2 AS col0
----
39
-2

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL + CAST ( + 39 AS INTEGER ) AS col2, 66 * 0 + - 2 AS col0
----
39
-2

query I rowsort
SELECT DISTINCT - NULLIF ( - + 92, + 16 * - 41 ) * + 92 AS col0
----
8464

query I rowsort
SELECT ALL - 48 * + + 72 + - 66 AS col0
----
-3522

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - ( - ( - 11 ) ) * - - ( + 46 ) * NULLIF ( 36, - 76 / + - 38 * + + 60 * - 89 + + - 51 + 74 / + COUNT( * ) + + - 28 ) AS col0
----
-18216

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - ( - ( - 11 ) ) * - - ( + 46 ) * NULLIF ( 36, - 76 / + - 38 * + + 60 * - 89 + + - 51 + 74 / + COUNT ( * ) + + - 28 ) AS col0
----
-18216

onlyif mysql # aggregate syntax: 
query II rowsort label-2399
SELECT + COALESCE ( 20, COUNT( * ), - + 47 ) AS col1, - COALESCE ( + - 3, CASE 27 WHEN - - 36 THEN NULL ELSE 32 END - 72 + 92 ) AS col0
----
20
3

skipif mysql # not compatible
query II rowsort label-2399
SELECT + COALESCE ( 20, COUNT ( * ), - + 47 ) AS col1, - COALESCE ( + - 3, CASE 27 WHEN - - 36 THEN NULL ELSE 32 END - 72 + 92 ) AS col0
----
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT 52 * - 18 + - CAST( NULLIF ( + COALESCE ( - 61, + 72 * + 56, - 0 + 65 ), + 2 + 75 + - - 23 ) AS SIGNED ) + + + 60 - + - 32 + + 34 * 74 - - + 16 - + 66 - - 96 * + 3 * + 73 AS col1
----
22707

skipif mysql # not compatible
query I rowsort label-2400
SELECT 52 * - 18 + - CAST ( NULLIF ( + COALESCE ( - 61, + 72 * + 56, - 0 + 65 ), + 2 + 75 + - - 23 ) AS INTEGER ) + + + 60 - + - 32 + + 34 * 74 - - + 16 - + 66 - - 96 * + 3 * + 73 AS col1
----
22707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2401
SELECT ALL 60 col0, + ( + + MAX( CAST( + 58 AS SIGNED ) ) ) * CAST( NULL AS SIGNED ) + 10 + - - COUNT( * ) / - CAST( NULL AS SIGNED ) + + COUNT( * )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-2401
SELECT ALL 60 col0, + ( + + MAX ( CAST ( + 58 AS INTEGER ) ) ) * CAST ( NULL AS INTEGER ) + 10 + - - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT SUM( + + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2402
SELECT SUM ( + + 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT - COUNT( * ), + SUM( DISTINCT 53 ) + + - COUNT( * ) AS col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-2403
SELECT - COUNT ( * ), + SUM ( DISTINCT 53 ) + + - COUNT ( * ) AS col2
----
-1
52

query I rowsort
SELECT ALL ( - 46 ) AS col0
----
-46

query I rowsort
SELECT ALL 75 - - 25 * + ( 14 ) AS col1
----
425

query I rowsort
SELECT + 81 * + + 48
----
3888

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2407
SELECT ALL CAST( NULL AS DECIMAL ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2407
SELECT ALL CAST ( NULL AS REAL ), COUNT ( * ) AS col0
----
NULL
1

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

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

query II rowsort
SELECT - 45 * - + 79 AS col1, + 65
----
3555
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT + 51 * + CAST( 51 AS SIGNED ) AS col1
----
2601

skipif mysql # not compatible
query I rowsort label-2410
SELECT + 51 * + CAST ( 51 AS INTEGER ) AS col1
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT 57 * - - 67 * + - COUNT( * )
----
-3819

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 57 * - - 67 * + - COUNT ( * )
----
-3819

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT + - CAST( + + 81 AS SIGNED ) * + 51 + - COUNT( * ) AS col2
----
-4132

skipif mysql # not compatible
query I rowsort label-2414
SELECT + - CAST ( + + 81 AS INTEGER ) * + 51 + - COUNT ( * ) AS col2
----
-4132

query II rowsort
SELECT ALL - 35 AS col2, + 3 AS col2
----
-35
3

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

skipif mysql # not compatible
query I rowsort label-2416
SELECT + 11 + COUNT ( * ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT ALL + 46 DIV 56 * + 17 * + 92
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + 46 / 56 * + 17 * + 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + - 40 DIV - 8
----
5

skipif mysql # not compatible
query I rowsort label-2418
SELECT + - 40 / - 8
----
5

query I rowsort
SELECT ALL COALESCE ( + - 4, - 73 * 14 + + 81 )
----
-4

query I rowsort
SELECT + + 66 - - 4
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT + 73 * + 94 * COUNT( DISTINCT 2 ) * - 77 AS col0
----
-528374

skipif mysql # not compatible
query I rowsort label-2421
SELECT + 73 * + 94 * COUNT ( DISTINCT 2 ) * - 77 AS col0
----
-528374

query II rowsort
SELECT 26, + 56 AS col1
----
26
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT ALL 92 DIV 85 + + 48
----
49

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL 92 / 85 + + 48
----
49

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

query I rowsort
SELECT + - 88 * - - NULLIF ( + 71, + + 78 )
----
-6248

query I rowsort
SELECT + 14 + 88
----
102

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL 0 / + NULLIF ( + + 96, - 20 ) / + MIN( ALL + 33 ) + 54 + + 46 * - + 13 * + CAST( NULL AS SIGNED ) / 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL 0 / + NULLIF ( + + 96, - 20 ) / + MIN ( ALL + 33 ) + 54 + + 46 * - + 13 * + CAST ( NULL AS INTEGER ) / 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT ALL + - 84 DIV - 27 + - - MAX( + - 48 ) * 72 AS col0
----
-3453

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL + - 84 / - 27 + - - MAX ( + - 48 ) * 72 AS col0
----
-3453

query I rowsort
SELECT ALL + + 80 AS col0
----
80

query I rowsort
SELECT ALL + + 20 AS col2
----
20

query I rowsort
SELECT ALL - 84 * - 84 + + 76
----
7132

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT ALL + 54 DIV - ( ( + 53 ) ) * - + COUNT( * ) - + 59 * + + 28 + + ( + - 71 ) * + 19 - - 53 DIV + + 4 + + 66 * 58
----
841

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + 54 / - ( ( + 53 ) ) * - + COUNT ( * ) - + 59 * + + 28 + + ( + - 71 ) * + 19 - - 53 / + + 4 + + 66 * 58
----
841

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

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

query I rowsort
SELECT ALL + 56 + + 43 + - ( - - 0 ) + - 58 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - 56 * - - COUNT( * ) + 36 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2437
SELECT - 56 * - - COUNT ( * ) + 36 AS col2
----
-20

query I rowsort
SELECT 57 - + - 44 AS col1
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT DISTINCT + 84 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT + 84 / + 38
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT 93 * - 63 + - SUM( ALL - 86 ) DIV - 58 AS col1
----
-5860

skipif mysql # not compatible
query I rowsort label-2440
SELECT 93 * - 63 + - SUM ( ALL - 86 ) / - 58 AS col1
----
-5860

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - ( + COUNT( * ) ) - + + 79 - - 48 + + 75 + - - CASE 60 WHEN + - 18 THEN NULL ELSE - 91 - - 18 END / - + CASE + CASE + COALESCE ( ( + 44 ), NULLIF ( 76, + 79 ) / - - 53 + - 30 + - + 69 ) WHEN 77 THEN + COUNT( * ) * - 41 END WHEN + - COUNT( * ) THEN + + 43 * 29 WHEN 60 + 58 THEN - + 18 * - 47 / + 29 / + + 55 ELSE NULL END * + 31 * MAX( + 77 ) + - 50 + COALESCE ( - COUNT( ALL 45 ), 62 ) / 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - ( + COUNT ( * ) ) - + + 79 - - 48 + + 75 + - - CASE 60 WHEN + - 18 THEN NULL ELSE - 91 - - 18 END / - + CASE + CASE + COALESCE ( ( + 44 ), NULLIF ( 76, + 79 ) / - - 53 + - 30 + - + 69 ) WHEN 77 THEN + COUNT ( * ) * - 41 END WHEN + - COUNT ( * ) THEN + + 43 * 29 WHEN 60 + 58 THEN - + 18 * - 47 / + 29 / + + 55 ELSE NULL END * + 31 * MAX ( + 77 ) + - 50 + COALESCE ( - COUNT ( ALL 45 ), 62 ) / 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT - MIN( - ( 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - MIN ( - ( 46 ) )
----
46

query I rowsort
SELECT 41 + + 49
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT 47 DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-2444
SELECT 47 / - 25
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT + CAST( + 0 AS SIGNED ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) / - 84
----
0

query I rowsort
SELECT 56 + + 12 * - - 45
----
596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2447
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + COUNT( * ) / + + 54 * - + MAX( - 86 ) / + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - CAST ( NULL AS REAL ) * + COUNT ( * ) / + + 54 * - + MAX ( - 86 ) / + + 6 AS col1
----
NULL

query I rowsort
SELECT ALL - 94 * + 25
----
-2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2449
SELECT 82 * 37 AS col0, 46 + 68 + + SUM( DISTINCT + 72 ) + - - 86 + - COUNT( * ) DIV 27
----
3034
272

skipif mysql # not compatible
query II rowsort label-2449
SELECT 82 * 37 AS col0, 46 + 68 + + SUM ( DISTINCT + 72 ) + - - 86 + - COUNT ( * ) / 27
----
3034
272

query II rowsort
SELECT DISTINCT - 85 * + + 10, - 38 + + 13 AS col1
----
-850
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT 56 + MIN( ALL 21 ) DIV ( 58 )
----
56

skipif mysql # not compatible
query I rowsort label-2451
SELECT 56 + MIN ( ALL 21 ) / ( 58 )
----
56

query I rowsort
SELECT 65 + + - 55 + - 73 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL - 95 * + + 80 * CAST( + 72 AS SIGNED ) col1
----
-547200

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - 95 * + + 80 * CAST ( + 72 AS INTEGER ) col1
----
-547200

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + NULLIF ( - 36, - + 3 * - - MIN( ALL - + 46 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-2454
SELECT + NULLIF ( - 36, - + 3 * - - MIN ( ALL - + 46 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + CASE - + NULLIF ( - 18, - 69 ) WHEN + MIN( DISTINCT + 11 ) * + 93 THEN - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + CASE - + NULLIF ( - 18, - 69 ) WHEN + MIN ( DISTINCT + 11 ) * + 93 THEN - 78 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2456
SELECT DISTINCT + 17 DIV 59 AS col0, 83 * 58 + + + CAST( + 88 AS SIGNED )
----
0
4902

skipif mysql # not compatible
query II rowsort label-2456
SELECT DISTINCT + 17 / 59 AS col0, 83 * 58 + + + CAST ( + 88 AS INTEGER )
----
0
4902

query I rowsort
SELECT ALL - + 90 + - 31
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT - 18 + NULLIF ( 29, 53 ) DIV + 72 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 18 + NULLIF ( 29, 53 ) / + 72 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT + CASE - 76 WHEN 69 - - - MAX( 91 ) THEN - ( + 34 ) - + CASE + - 93 WHEN + 15 THEN + - 53 END * + - 66 END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + CASE - 76 WHEN 69 - - - MAX ( 91 ) THEN - ( + 34 ) - + CASE + - 93 WHEN + 15 THEN + - 53 END * + - 66 END + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - 45 + - 22 * - CASE - COUNT( * ) WHEN 30 * + 26 * + MAX( - 22 ) + - COUNT( * ) THEN - + 53 + 42 WHEN - 81 + COUNT( 12 ) - 38 * + + 41 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT - 45 + - 22 * - CASE - COUNT ( * ) WHEN 30 * + 26 * + MAX ( - 22 ) + - COUNT ( * ) THEN - + 53 + 42 WHEN - 81 + COUNT ( 12 ) - 38 * + + 41 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 15 + + - 51 * - - 91 * - 91 AS col1
----
422346

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + ( + 63 ) + + CASE - COUNT( * ) WHEN + 55 THEN - + 60 ELSE NULL END + 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT + ( + 63 ) + + CASE - COUNT ( * ) WHEN + 55 THEN - + 60 ELSE NULL END + 20 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT 39 + + + NULLIF ( 2, + - COALESCE ( - 79, - + 60 + - COUNT( * ) + - 11 - + 20 + - 87 * + + CAST( NULL AS SIGNED ), + 52 * + - CAST( - - 90 AS SIGNED ) / + 57 + 1 * - 10, 61 - - COUNT( * ) ) + - ( - 30 ) * ( CAST( NULL AS SIGNED ) ) / + + 9 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-2463
SELECT 39 + + + NULLIF ( 2, + - COALESCE ( - 79, - + 60 + - COUNT ( * ) + - 11 - + 20 + - 87 * + + CAST ( NULL AS INTEGER ), + 52 * + - CAST ( - - 90 AS INTEGER ) / + 57 + 1 * - 10, 61 - - COUNT ( * ) ) + - ( - 30 ) * ( CAST ( NULL AS INTEGER ) ) / + + 9 ) col2
----
41

query I rowsort
SELECT + 12 * - ( - 6 ) * + 17 AS col2
----
1224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL + CAST( 62 AS SIGNED ) + 17 * - + 12
----
-142

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + CAST ( 62 AS INTEGER ) + 17 * - + 12
----
-142

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

query I rowsort
SELECT ALL - ( - 18 ) + + 60 AS col0
----
78

query I rowsort
SELECT NULLIF ( - 55, - 99 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT DISTINCT - 29 + - + 94 AS col0, - CASE 25 WHEN - 32 THEN NULL ELSE - COUNT( * ) END + + + COUNT( 98 ) * - 10
----
-123
-9

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT - 29 + - + 94 AS col0, - CASE 25 WHEN - 32 THEN NULL ELSE - COUNT ( * ) END + + + COUNT ( 98 ) * - 10
----
-123
-9

query I rowsort
SELECT 77 * - 30
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT COALESCE ( - 49, 15, + COUNT( * ) ) + + 26 + - 59 + + 85 * 96 * + - 89 * + ( - COUNT( * ) ) AS col0
----
726158

skipif mysql # not compatible
query I rowsort label-2471
SELECT COALESCE ( - 49, 15, + COUNT ( * ) ) + + 26 + - 59 + + 85 * 96 * + - 89 * + ( - COUNT ( * ) ) AS col0
----
726158

query I rowsort
SELECT ALL - 96 + - - 44
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT 61 * - + 93 + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT 61 * - + 93 + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 2 AS col0
----
NULL

query I rowsort
SELECT 12 * 70 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL + 89 - 80 + SUM( DISTINCT 83 ) * 7
----
590

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + 89 - 80 + SUM ( DISTINCT 83 ) * 7
----
590

query II rowsort
SELECT ALL - 11 AS col1, 6 * - 75 * + - 62 * 96
----
-11
2678400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2477
SELECT + COUNT( * ), 2 DIV + + COUNT( * ) AS col2
----
1
2

skipif mysql # not compatible
query II rowsort label-2477
SELECT + COUNT ( * ), 2 / + + COUNT ( * ) AS col2
----
1
2

query I rowsort
SELECT 50 * - 82
----
-4100

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL COALESCE ( COUNT( * ), 63 + + 4 + 54 * - 0 + + 99 * - 64 * + + 7, - 88 * - 65 ) * - 87 col0
----
-87

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL COALESCE ( COUNT ( * ), 63 + + 4 + 54 * - 0 + + 99 * - 64 * + + 7, - 88 * - 65 ) * - 87 col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT ( + 22 ) * + 86 * - CAST( 72 AS SIGNED ) AS col1
----
-136224

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT ( + 22 ) * + 86 * - CAST ( 72 AS INTEGER ) AS col1
----
-136224

query II rowsort
SELECT + 17, 60 AS col2
----
17
60

query I rowsort
SELECT ( + 64 ) * + 35 col1
----
2240

query I rowsort
SELECT 76 * 54 AS col0
----
4104

query II rowsort
SELECT - 76 * 45 - + 18 AS col2, 85 AS col1
----
-3438
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT 82 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT 82 / 83
----
0

query I rowsort
SELECT 65 * + - 71
----
-4615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT ALL + COUNT( * ) DIV 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + COUNT ( * ) / 6 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2488
SELECT 72 DIV + + 18 * + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2488
SELECT 72 / + + 18 * + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2489
SELECT ALL COUNT( * ), 61 AS col1
----
1
61

skipif mysql # not compatible
query II rowsort label-2489
SELECT ALL COUNT ( * ), 61 AS col1
----
1
61

query I rowsort
SELECT - - 5 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT - 93 DIV - 8 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2491
SELECT - 93 / - 8 AS col1
----
11

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

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

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

query I rowsort
SELECT 54 + + 23 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL - COUNT( * ) + + - 81 - MIN( + + 10 ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - COUNT ( * ) + + - 81 - MIN ( + + 10 ) col0
----
-92

query I rowsort
SELECT DISTINCT - 56 col1
----
-56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2498
SELECT - 70, SUM( - CAST( - + 67 AS SIGNED ) ) DIV 22 AS col1
----
-70
3

skipif mysql # not compatible
query II rowsort label-2498
SELECT - 70, SUM ( - CAST ( - + 67 AS INTEGER ) ) / 22 AS col1
----
-70
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT CAST( NULL AS SIGNED ) + - 61 + - - 81 + - 27 + 57 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT CAST ( NULL AS INTEGER ) + - 61 + - - 81 + - 27 + 57 * - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT + ( - 86 ) * + NULLIF ( - 7, - - 79 * + ( 2 ) * + COUNT( * ) * - 96 ) col2
----
602

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT + ( - 86 ) * + NULLIF ( - 7, - - 79 * + ( 2 ) * + COUNT ( * ) * - 96 ) col2
----
602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL COUNT( * ) + + NULLIF ( - 98, + - 21 + 26 + - + CAST( NULL AS SIGNED ) )
----
-97

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL COUNT ( * ) + + NULLIF ( - 98, + - 21 + 26 + - + CAST ( NULL AS INTEGER ) )
----
-97

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

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

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

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

query I rowsort
SELECT - ( + 70 ) col1
----
-70

query I rowsort
SELECT DISTINCT - - 33 - 24 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2506
SELECT ALL + - 70 DIV - COALESCE ( - + 73, - CAST( NULL AS SIGNED ) ) * COUNT( * ) - 58 * + + 77 AS col1
----
-4466

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + - 70 / - COALESCE ( - + 73, - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - 58 * + + 77 AS col1
----
-4466

query I rowsort
SELECT - + ( + - 95 ) * 49 * 8 * 71
----
2644040

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT NULLIF ( + 58, + 79 * + COALESCE ( + + 56, 88 + + MIN( DISTINCT 33 ), + 57 + + - 12 ) ) * 66 * - 71 * - 12 + + COUNT( * )
----
3261457

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT NULLIF ( + 58, + 79 * + COALESCE ( + + 56, 88 + + MIN ( DISTINCT 33 ), + 57 + + - 12 ) ) * 66 * - 71 * - 12 + + COUNT ( * )
----
3261457

query I rowsort
SELECT ALL + ( ( NULLIF ( + 83, 25 * 7 - 49 + + - 41 / + 69 * - + 28 ) ) )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2510
SELECT ALL + COALESCE ( - 18, 60 * - COUNT( * ) ) DIV + ( 85 )
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + COALESCE ( - 18, 60 * - COUNT ( * ) ) / + ( 85 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT + 84 * + + COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT + 84 * + + COUNT ( * ) col0
----
84

query I rowsort
SELECT + COALESCE ( - 82, + 40 * + 99, - 6 ) AS col2
----
-82

query I rowsort
SELECT - 28 + + 86 + - 74 * - + 74
----
5534

query I rowsort
SELECT DISTINCT + 8 AS col1
----
8

query I rowsort
SELECT + 22 + - - 11 AS col1
----
33

query I rowsort
SELECT ALL + 21 col0
----
21

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

skipif mysql # not compatible
query I rowsort label-2517
SELECT + COUNT ( * ) * 85 / COUNT ( * ) + - + MAX ( ALL 78 ) + + ( - COUNT ( * ) ) AS col1
----
6

query I rowsort
SELECT + 74 + + + 60 AS col0
----
134

query I rowsort
SELECT + COALESCE ( - - 29, - 36 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2520
SELECT + ( - + 57 ) + - - ( - - 15 ) DIV + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2520
SELECT + ( - + 57 ) + - - ( - - 15 ) / + COUNT ( * ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT + ( - + 12 ) + CAST( 59 AS SIGNED ) * 17
----
991

skipif mysql # not compatible
query I rowsort label-2521
SELECT + ( - + 12 ) + CAST ( 59 AS INTEGER ) * 17
----
991

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

query I rowsort
SELECT ALL - 68 + - - 39 AS col1
----
-29

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

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

query I rowsort
SELECT + + 84 * - ( 60 ) AS col0
----
-5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT - - 77 * 88 + + - 83 * - CAST( NULL AS SIGNED ) / + + 13 + + 94 + 25 * - - CAST( + 23 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT - - 77 * 88 + + - 83 * - CAST ( NULL AS INTEGER ) / + + 13 + + 94 + 25 * - - CAST ( + 23 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 73 + ( + 26 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2528
SELECT DISTINCT 79 + - 5 + - 7 + - - 25 * - COUNT( * ) DIV + 72 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT 79 + - 5 + - 7 + - - 25 * - COUNT ( * ) / + 72 * - COUNT ( * )
----
67

query I rowsort
SELECT ALL 65 col2
----
65

query I rowsort
SELECT ALL - - 23 + + ( + 76 ) + - 46 + + 99 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - 90 + 55 + + ( COUNT( * ) ) + - 16 * 47 AS col2
----
-786

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - 90 + 55 + + ( COUNT ( * ) ) + - 16 * 47 AS col2
----
-786

query I rowsort
SELECT DISTINCT - + 47 * - - 96
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - - 51 * 77 * - - 63 + + MAX( DISTINCT - + NULLIF ( - 57, 8 ) ) + + ( 95 )
----
247553

skipif mysql # not compatible
query I rowsort label-2533
SELECT - - 51 * 77 * - - 63 + + MAX ( DISTINCT - + NULLIF ( - 57, 8 ) ) + + ( 95 )
----
247553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT - + 77 * CAST( - 81 AS SIGNED ) + SUM( DISTINCT 78 )
----
6315

skipif mysql # not compatible
query I rowsort label-2534
SELECT - + 77 * CAST ( - 81 AS INTEGER ) + SUM ( DISTINCT 78 )
----
6315

query I rowsort
SELECT - - 2 + - + 50
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL - 96 - + COALESCE ( + 58, - + 78, + 99 + - + 47 * 87, ( SUM( - 71 ) ) ) + - 72 + 90 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - 96 - + COALESCE ( + 58, - + 78, + 99 + - + 47 * 87, ( SUM ( - 71 ) ) ) + - 72 + 90 AS col0
----
-136

query II rowsort
SELECT DISTINCT + - 68 * - - 89 + + 36 * - 81, + ( 45 ) AS col1
----
-8968
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT SUM( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2538
SELECT SUM ( 43 )
----
43

query I rowsort
SELECT - 83 * 10 * + ( - 66 ) AS col0
----
54780

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

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

query I rowsort
SELECT ALL + 5 * - 68 col1
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - 92 + - - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 92 + - - COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT DISTINCT + - 93 - + 95
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT - MAX( ALL 6 ) * 18 * + ( + + 80 ) AS col1
----
-8640

skipif mysql # not compatible
query I rowsort label-2544
SELECT - MAX ( ALL 6 ) * 18 * + ( + + 80 ) AS col1
----
-8640

query I rowsort
SELECT - 58 + + 40 * + 65 AS col2
----
2542

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT - 29 * 50 DIV - - 93 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 29 * 50 / - - 93 AS col2
----
-15

query I rowsort
SELECT 98 * + CASE - 25 WHEN + 0 * - 49 / 74 + + 42 THEN - + 58 END * + + ( 59 ) - + 70 + + 62 - AVG ( ALL - - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + COALESCE ( 11, + MAX( + 55 ) ) col1
----
11

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + COALESCE ( 11, + MAX ( + 55 ) ) col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2549
SELECT CAST( NULL AS SIGNED ), 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2549
SELECT CAST ( NULL AS INTEGER ), 16 AS col1
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2550
SELECT + 6 * CAST( - 36 AS SIGNED ) + - 49 DIV - ( - 69 )
----
-216

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 6 * CAST ( - 36 AS INTEGER ) + - 49 / - ( - 69 )
----
-216

query II rowsort
SELECT ALL + NULLIF ( - 22, - + 27 - + 91 - + 39 * + 87 ) AS col0, + 67 * NULLIF ( + - 31, - + 97 ) AS col2
----
-22
-2077

query I rowsort
SELECT ( + - 68 ) col1
----
-68

query I rowsort
SELECT - 99 * - 25
----
2475

query I rowsort
SELECT DISTINCT 10 * 55 col2
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT - COALESCE ( - 74, 58, 16 ) * - SUM( DISTINCT + 21 ) + - COUNT( * ) + - - COUNT( * ) + ( - 70 ) / + - 16 + + CASE + 10 WHEN + NULLIF ( + CASE - COUNT( * ) WHEN 46 + + ( - + 99 ) THEN 82 + - + 78 * - 14 ELSE + + COUNT( * ) END, 58 + + - 41 + + 48 * 47 ) * 65 THEN + ( + CASE 88 WHEN - 58 THEN 66 WHEN - ( - 85 ) + + MAX( + 11 ) + - 70 * + 89 / - - 29 * 58 THEN 29 - COUNT( * ) END ) + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - COALESCE ( - 74, 58, 16 ) * - SUM ( DISTINCT + 21 ) + - COUNT ( * ) + - - COUNT ( * ) + ( - 70 ) / + - 16 + + CASE + 10 WHEN + NULLIF ( + CASE - COUNT ( * ) WHEN 46 + + ( - + 99 ) THEN 82 + - + 78 * - 14 ELSE + + COUNT ( * ) END, 58 + + - 41 + + 48 * 47 ) * 65 THEN + ( + CASE 88 WHEN - 58 THEN 66 WHEN - ( - 85 ) + + MAX ( + 11 ) + - 70 * + 89 / - - 29 * 58 THEN 29 - COUNT ( * ) END ) + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL 61 * 59 * 30 + - ( + COUNT( * ) ) AS col1
----
107969

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL 61 * 59 * 30 + - ( + COUNT ( * ) ) AS col1
----
107969

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2558
SELECT - 15 DIV + + COALESCE ( - CAST( NULL AS SIGNED ), + 89, 79 * 27 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 15 / + + COALESCE ( - CAST ( NULL AS INTEGER ), + 89, 79 * 27 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT + 21 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-2559
SELECT + 21 / 48
----
0

query I rowsort
SELECT - 32 * - - 2 AS col1
----
-64

query I rowsort
SELECT DISTINCT + - 63 AS col0
----
-63

query I rowsort
SELECT DISTINCT - + 73 * 53 + - - ( + - 42 ) AS col1
----
-3911

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL + CASE - 2 WHEN - 53 THEN NULL WHEN + + COUNT( * ) THEN NULL WHEN - + 63 * COALESCE ( + 16, + - COUNT( * ) ) + 52 THEN CAST( NULL AS SIGNED ) ELSE - CAST( NULL AS SIGNED ) END * - + CASE + + 97 WHEN 45 - - 90 THEN - 50 ELSE NULL END + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL + CASE - 2 WHEN - 53 THEN NULL WHEN + + COUNT ( * ) THEN NULL WHEN - + 63 * COALESCE ( + 16, + - COUNT ( * ) ) + 52 THEN CAST ( NULL AS INTEGER ) ELSE - CAST ( NULL AS INTEGER ) END * - + CASE + + 97 WHEN 45 - - 90 THEN - 50 ELSE NULL END + 59 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT CASE - 16 WHEN - ( - 42 ) / - + 52 * 93 + + CAST( NULL AS SIGNED ) * - CAST( + 19 AS SIGNED ) THEN NULL ELSE - + 72 * 95 + + + ( + 73 ) END
----
-6767

skipif mysql # not compatible
query I rowsort label-2565
SELECT CASE - 16 WHEN - ( - 42 ) / - + 52 * 93 + + CAST ( NULL AS INTEGER ) * - CAST ( + 19 AS INTEGER ) THEN NULL ELSE - + 72 * 95 + + + ( + 73 ) END
----
-6767

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL CASE + COUNT( * ) WHEN + - ( - + COUNT( * ) ) THEN NULL WHEN - 91 * - 25 + - 49 THEN 8 - - 2 + - COUNT( * ) WHEN + 45 / - 72 * - + 33 THEN - + COALESCE ( - COUNT( * ), - 87 + 95, + 71, - 19 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL CASE + COUNT ( * ) WHEN + - ( - + COUNT ( * ) ) THEN NULL WHEN - 91 * - 25 + - 49 THEN 8 - - 2 + - COUNT ( * ) WHEN + 45 / - 72 * - + 33 THEN - + COALESCE ( - COUNT ( * ), - 87 + 95, + 71, - 19 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + 80 - NULLIF ( + 0, - 14 - + 61 )
----
6960

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + - 6 - + ( + MIN( ALL - 55 ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2568
SELECT + - 6 - + ( + MIN ( ALL - 55 ) ) AS col0
----
49

query I rowsort
SELECT ALL 70 * - 71 + + 22
----
-4948

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

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

query I rowsort
SELECT ( 83 ) + - - 3 col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT 97 AS col0, + COUNT( * ) * + 70
----
97
70

skipif mysql # not compatible
query II rowsort label-2572
SELECT 97 AS col0, + COUNT ( * ) * + 70
----
97
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2573
SELECT ALL + 19 AS col0, - 61 DIV + COUNT( * ) AS col0
----
19
-61

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL + 19 AS col0, - 61 / + COUNT ( * ) AS col0
----
19
-61

query I rowsort
SELECT 63 + + + 21 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT 6 * - COUNT( * ) + + + 87 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2575
SELECT 6 * - COUNT ( * ) + + + 87 AS col1
----
81

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

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

query I rowsort
SELECT ( + 69 ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL - CASE 24 WHEN + 40 + - COUNT( * ) THEN + 85 ELSE - 29 END
----
29

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - CASE 24 WHEN + 40 + - COUNT ( * ) THEN + 85 ELSE - 29 END
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT ALL - - COUNT( * ) DIV 18 + + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - - COUNT ( * ) / 18 + + - 83
----
-83

query I rowsort
SELECT ALL - 30 * + 70 AS col2
----
-2100

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

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

query I rowsort
SELECT ALL - 39 * 26
----
-1014

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

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

query I rowsort
SELECT 66 * 99
----
6534

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

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

query I rowsort
SELECT 30 * + + 20 - - 77
----
677

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

query I rowsort
SELECT 59 + 5 AS col0
----
64

query II rowsort
SELECT ALL - 30 AS col2, 18 AS col1
----
-30
18

query I rowsort
SELECT 66 * - - 7 AS col2
----
462

query I rowsort
SELECT ALL - 67 + + - 10 AS col1
----
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2593
SELECT 24 AS col1, CASE - 99 WHEN + 39 THEN - CAST( NULL AS SIGNED ) END
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2593
SELECT 24 AS col1, CASE - 99 WHEN + 39 THEN - CAST ( NULL AS INTEGER ) END
----
24
NULL

query I rowsort
SELECT 81 - ( + 86 ) AS col1
----
-5

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

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

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

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

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

query I rowsort
SELECT 65 + + 33 + + - 41
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT 71 + - - CASE MIN( + + 82 ) WHEN AVG ( - + 20 ) * + 46 THEN + 80 + + CAST( + ( + 15 ) AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT 71 + - - CASE MIN ( + + 82 ) WHEN AVG ( - + 20 ) * + 46 THEN + 80 + + CAST ( + ( + 15 ) AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT ALL - 5 + + - 23
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT 68 * + MAX( ALL - 60 ) + - - 61 AS col2
----
-4019

skipif mysql # not compatible
query I rowsort label-2601
SELECT 68 * + MAX ( ALL - 60 ) + - - 61 AS col2
----
-4019

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT 16 * COUNT( * ) * + 66 * + - 42 AS col1, COUNT( * )
----
-44352
1

skipif mysql # not compatible
query II rowsort label-2602
SELECT 16 * COUNT ( * ) * + 66 * + - 42 AS col1, COUNT ( * )
----
-44352
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT + + COUNT( DISTINCT - 91 ), 37 AS col1
----
1
37

skipif mysql # not compatible
query II rowsort label-2603
SELECT + + COUNT ( DISTINCT - 91 ), 37 AS col1
----
1
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT ALL - 70 AS col0, COUNT( * ) + - 42 - 10 + - COUNT( * ) * + 50
----
-70
-101

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL - 70 AS col0, COUNT ( * ) + - 42 - 10 + - COUNT ( * ) * + 50
----
-70
-101

query I rowsort
SELECT ALL - ( - 23 ) * 81
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( * ) + 22
----
23

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( * ) + 22
----
23

query I rowsort
SELECT 60 * + 41 AS col2
----
2460

query I rowsort
SELECT + 62 + 22 + - 90
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - 71 + - COALESCE ( + + SUM( 76 ), - COUNT( ALL + - 53 ) ) AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-2609
SELECT - 71 + - COALESCE ( + + SUM ( 76 ), - COUNT ( ALL + - 53 ) ) AS col0
----
-147

query I rowsort
SELECT ALL - - 26 * - 38 * - ( 35 ) AS col2
----
34580

query I rowsort
SELECT 52 + + 73
----
125

query II rowsort
SELECT - 28 AS col2, 95 AS col0
----
-28
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - COUNT( * ) + + 90 * 87 - - 31 AS col1
----
7860

skipif mysql # not compatible
query I rowsort label-2613
SELECT - COUNT ( * ) + + 90 * 87 - - 31 AS col1
----
7860

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT - COALESCE ( + COUNT( * ), + 70 * + 43 * - 68 + - 80 + + COUNT( - - 8 ) + + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-2614
SELECT - COALESCE ( + COUNT ( * ), + 70 * + 43 * - 68 + - 80 + + COUNT ( - - 8 ) + + 24 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2615
SELECT DISTINCT + 52, - 64 DIV + 2 + + 46 AS col0
----
52
14

skipif mysql # not compatible
query II rowsort label-2615
SELECT DISTINCT + 52, - 64 / + 2 + + 46 AS col0
----
52
14

query I rowsort
SELECT ALL 71 * 50 + - 94 col0
----
3456

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

skipif mysql # not compatible
query I rowsort label-2617
SELECT - SUM ( + - 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT DISTINCT MIN( DISTINCT - - 50 ) * 9 DIV + COUNT( * ) AS col1
----
450

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT MIN ( DISTINCT - - 50 ) * 9 / + COUNT ( * ) AS col1
----
450

query I rowsort
SELECT DISTINCT 41 + - - 82 + - 16 * - + 54 * 77
----
66651

query I rowsort
SELECT ALL 76 + COALESCE ( + 6, 42 * ( - - 12 ) + + 13 + - 64 ) * - 19 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT MIN( DISTINCT + - 56 ) * - ( + - COUNT( * ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2621
SELECT MIN ( DISTINCT + - 56 ) * - ( + - COUNT ( * ) ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2622
SELECT ALL 81 + - 29, 37 - + COALESCE ( - 40, + 82 ) * - 85 + + - 68 + + NULLIF ( + CAST( NULL AS SIGNED ), - 79 + 42 ) * + 86 / + + 87 + + 61 + 85 * + - MIN( DISTINCT 49 ) / + - 85 + 94 AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-2622
SELECT ALL 81 + - 29, 37 - + COALESCE ( - 40, + 82 ) * - 85 + + - 68 + + NULLIF ( + CAST ( NULL AS INTEGER ), - 79 + 42 ) * + 86 / + + 87 + + 61 + 85 * + - MIN ( DISTINCT 49 ) / + - 85 + 94 AS col2
----
52
NULL

query I rowsort
SELECT ALL 40 + - 55 * - 18
----
1030

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2624
SELECT DISTINCT + 90 DIV - 27, + MAX( + + 45 ) AS col2
----
-3
45

skipif mysql # not compatible
query II rowsort label-2624
SELECT DISTINCT + 90 / - 27, + MAX ( + + 45 ) AS col2
----
-3
45

query I rowsort
SELECT ALL 28 * - 82 + - + 85 AS col0
----
-2381

query I rowsort
SELECT ALL 97 * - 33 + 58
----
-3143

onlyif mysql # DIV for integer division: 
query II rowsort label-2627
SELECT ALL 34 DIV + 60 AS col2, 39
----
0
39

skipif mysql # not compatible
query II rowsort label-2627
SELECT ALL 34 / + 60 AS col2, 39
----
0
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ( + MAX( - + 40 ) ) * 2 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2629
SELECT ( + MAX ( - + 40 ) ) * 2 AS col2
----
-80

query I rowsort
SELECT ALL - - 3
----
3

query I rowsort
SELECT ALL + + 52 AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT - - 78 DIV 9 * - + 2 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2632
SELECT - - 78 / 9 * - + 2 AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT - + 3 - + CAST( 19 AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2633
SELECT - + 3 - + CAST ( 19 AS INTEGER ) AS col1
----
-22

query II rowsort
SELECT - 76 * + 22, + 82 * + 11 + + + 46 col1
----
-1672
948

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - ( ( - 63 ) ) + - SUM( - 10 ) + + - 18 + COUNT( * ) - - 87 * + COALESCE ( + + 39, 43 )
----
3449

skipif mysql # not compatible
query I rowsort label-2636
SELECT - ( ( - 63 ) ) + - SUM ( - 10 ) + + - 18 + COUNT ( * ) - - 87 * + COALESCE ( + + 39, 43 )
----
3449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2637
SELECT 68 AS col1, 96 * - CASE + + CAST( NULL AS SIGNED ) WHEN - 23 THEN 88 + + 92 + 39 * + COUNT( * ) ELSE + - COUNT( * ) * + - 83 END col1, 81 AS col1
----
68
-7968
81

skipif mysql # not compatible
query III rowsort label-2637
SELECT 68 AS col1, 96 * - CASE + + CAST ( NULL AS INTEGER ) WHEN - 23 THEN 88 + + 92 + 39 * + COUNT ( * ) ELSE + - COUNT ( * ) * + - 83 END col1, 81 AS col1
----
68
-7968
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2638
SELECT + COUNT( ALL - 69 ) * - + 64 DIV + + 57 + - + 89 + - - COUNT( 85 ) * MIN( - CAST( 98 AS SIGNED ) ) AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-2638
SELECT + COUNT ( ALL - 69 ) * - + 64 / + + 57 + - + 89 + - - COUNT ( 85 ) * MIN ( - CAST ( 98 AS INTEGER ) ) AS col1
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - 82 + + CASE + 38 WHEN 90 * - 98 THEN + 13 * - 2 ELSE - 98 * 68 + + 73 END + - 72 - - 32 + - 62 * + 72 * + 81 * MIN( - ( + 20 ) ) * - AVG ( DISTINCT + CASE + 18 WHEN + NULLIF ( + 84, + 50 ) THEN NULL WHEN - 73 THEN - 90 END ) + - + COUNT( * ) / ( - ( + - COUNT( ALL 24 ) ) ) * - 82 * - 9 - - + COUNT( * ) + 41 + + 16 * - - 61 - - + ( - 86 ) * COUNT( * ) * 86 / + 99 * - MIN( ALL - 50 ) - COUNT( DISTINCT + 51 ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 82 + + CASE + 38 WHEN 90 * - 98 THEN + 13 * - 2 ELSE - 98 * 68 + + 73 END + - 72 - - 32 + - 62 * + 72 * + 81 * MIN ( - ( + 20 ) ) * - AVG ( DISTINCT + CASE + 18 WHEN + NULLIF ( + 84, + 50 ) THEN NULL WHEN - 73 THEN - 90 END ) + - + COUNT ( * ) / ( - ( + - COUNT ( ALL 24 ) ) ) * - 82 * - 9 - - + COUNT ( * ) + 41 + + 16 * - - 61 - - + ( - 86 ) * COUNT ( * ) * 86 / + 99 * - MIN ( ALL - 50 ) - COUNT ( DISTINCT + 51 ) * 43
----
NULL

query I rowsort
SELECT - COALESCE ( 18, - 6 + - 70 * + - 91, - + 16 ) AS col1
----
-18

query I rowsort
SELECT - 99 * 44 col1
----
-4356

query I rowsort
SELECT DISTINCT - 67 + - 1 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT 29 + + MIN( ALL + 23 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT 29 + + MIN ( ALL + 23 ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT + COUNT( * ) + + + 25 DIV + - 58 - + + 41 + + 54
----
14

skipif mysql # not compatible
query I rowsort label-2644
SELECT + COUNT ( * ) + + + 25 / + - 58 - + + 41 + + 54
----
14

query I rowsort
SELECT ALL + 49 + + 44 + + 53
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ALL 63 + - 85
----
-22

query I rowsort
SELECT ALL 22 + - 97 + 99 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + ( - MIN( + - 50 ) ) + + + 13 + - + 80 + + 57 + 91
----
131

skipif mysql # not compatible
query I rowsort label-2649
SELECT + ( - MIN ( + - 50 ) ) + + + 13 + - + 80 + + 57 + 91
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT 49 AS col2, CAST( - + 36 AS SIGNED ) AS col0
----
49
-36

skipif mysql # not compatible
query II rowsort label-2650
SELECT 49 AS col2, CAST ( - + 36 AS INTEGER ) AS col0
----
49
-36

query II rowsort
SELECT 84 AS col1, - 8 + - + 51 AS col1
----
84
-59

query I rowsort
SELECT ALL 28 - 44 col0
----
-16

query I rowsort
SELECT ALL 86 - - 42 AS col0
----
128

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

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

query I rowsort
SELECT + ( + + 46 ) * + 15
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - 74 * COUNT( * ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-2656
SELECT - 74 * COUNT ( * ) col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT DISTINCT + 23, + ( - + 22 ) * - + MAX( ALL + 20 ) + + + 67 * 9 AS col0
----
23
1043

skipif mysql # not compatible
query II rowsort label-2657
SELECT DISTINCT + 23, + ( - + 22 ) * - + MAX ( ALL + 20 ) + + + 67 * 9 AS col0
----
23
1043

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL 30 DIV + ( - + 45 ) - 27
----
-27

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL 30 / + ( - + 45 ) - 27
----
-27

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

query I rowsort
SELECT ( - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT 5 * - NULLIF ( + 65, - 16 ) - - + COUNT( ALL 66 ) AS col0
----
-324

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT 5 * - NULLIF ( + 65, - 16 ) - - + COUNT ( ALL 66 ) AS col0
----
-324

query II rowsort
SELECT DISTINCT + 42 AS col0, + 12 + + 36 + - - 24 AS col0
----
42
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL + ( - 35 ) * + COALESCE ( - COUNT( * ), - COUNT( * ), + 81 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + ( - 35 ) * + COALESCE ( - COUNT ( * ), - COUNT ( * ), + 81 ) AS col0
----
35

query I rowsort
SELECT + + 68 - - 61 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT + - NULLIF ( + 35, - CASE - - 67 WHEN + - 44 THEN + COUNT( 50 ) * + - COALESCE ( - 85, + - 23 ) * + - 18 * + + COUNT( * ) END / - 91 ) * - 96 * - 16 * ( + + 23 ) AS col2
----
-1236480

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + - NULLIF ( + 35, - CASE - - 67 WHEN + - 44 THEN + COUNT ( 50 ) * + - COALESCE ( - 85, + - 23 ) * + - 18 * + + COUNT ( * ) END / - 91 ) * - 96 * - 16 * ( + + 23 ) AS col2
----
-1236480

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT + + SUM( DISTINCT - 56 ) + 21 AS col1, - ( + 78 ) AS col1
----
-35
-78

skipif mysql # not compatible
query II rowsort label-2666
SELECT + + SUM ( DISTINCT - 56 ) + 21 AS col1, - ( + 78 ) AS col1
----
-35
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT - + 18 * - - SUM( DISTINCT - + 8 )
----
144

skipif mysql # not compatible
query I rowsort label-2667
SELECT - + 18 * - - SUM ( DISTINCT - + 8 )
----
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + 6 + SUM( + - 87 ) + - - 27 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2669
SELECT + 6 + SUM ( + - 87 ) + - - 27 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT + + 49 * + 25 * - 51 * 7 * MIN( + - 62 ) + COUNT( * ) * + - 38 AS col1, - COUNT( * )
----
27114112
-1

skipif mysql # not compatible
query II rowsort label-2670
SELECT + + 49 * + 25 * - 51 * 7 * MIN ( + - 62 ) + COUNT ( * ) * + - 38 AS col1, - COUNT ( * )
----
27114112
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT - - 9 * - COALESCE ( 33, + COUNT( * ) ) * ( + 51 ) - - 50 + + 6 AS col1, 41 * + - MIN( ALL + 27 ) AS col2
----
-15091
-1107

skipif mysql # not compatible
query II rowsort label-2671
SELECT - - 9 * - COALESCE ( 33, + COUNT ( * ) ) * ( + 51 ) - - 50 + + 6 AS col1, 41 * + - MIN ( ALL + 27 ) AS col2
----
-15091
-1107

query II rowsort
SELECT ALL + 58, 94 AS col1
----
58
94

query I rowsort
SELECT ALL + 48 col2
----
48

query I rowsort
SELECT DISTINCT + 61 * + + 32
----
1952

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - - 92 + 45 + + 37 + + - 49 * 49 * - + 18 * 52 * - 53 * - + COUNT( * ) AS col0
----
119108982

skipif mysql # not compatible
query I rowsort label-2675
SELECT - - 92 + 45 + + 37 + + - 49 * 49 * - + 18 * 52 * - 53 * - + COUNT ( * ) AS col0
----
119108982

query I rowsort
SELECT + - 22 * + 55
----
-1210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2677
SELECT + + 8 * - 90 * CAST( NULL AS SIGNED ) + + 31 + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2677
SELECT + + 8 * - 90 * CAST ( NULL AS INTEGER ) + + 31 + - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT - 81 AS col2, COUNT( - - 28 ) * - 18 + 51 + + - 4 AS col1
----
-81
29

skipif mysql # not compatible
query II rowsort label-2678
SELECT - 81 AS col2, COUNT ( - - 28 ) * - 18 + 51 + + - 4 AS col1
----
-81
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-2680
SELECT - COUNT( - 47 ) * CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ), + COUNT( * ) DIV - - 79 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2680
SELECT - COUNT ( - 47 ) * CAST ( - CAST ( NULL AS INTEGER ) AS REAL ), + COUNT ( * ) / - - 79 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + 8 * + COUNT( * ) * - 63 col2
----
-504

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + 8 * + COUNT ( * ) * - 63 col2
----
-504

query I rowsort
SELECT ALL - 53 + + - 62 AS col2
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT - ( - + SUM( + - ( - - 27 ) ) ) DIV + - 53
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT - ( - + SUM ( + - ( - - 27 ) ) ) / + - 53
----
0

query I rowsort
SELECT ALL + 81 + + 92 AS col2
----
173

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2685
SELECT ALL + 8 * - ( - - 41 ) / + 91 + - - 79 + CAST( NULL AS DECIMAL ) + + CASE - + 55 WHEN + 91 THEN NULL WHEN 55 * + + 10 + + 75 THEN - - ( + - 35 ) * + COALESCE ( - - 16, - 48 ) * + ( - CAST( + + 55 AS SIGNED ) ) END / - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + 8 * - ( - - 41 ) / + 91 + - - 79 + CAST ( NULL AS REAL ) + + CASE - + 55 WHEN + 91 THEN NULL WHEN 55 * + + 10 + + 75 THEN - - ( + - 35 ) * + COALESCE ( - - 16, - 48 ) * + ( - CAST ( + + 55 AS INTEGER ) ) END / - 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL 23 + + + MIN( ALL 12 )
----
35

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL 23 + + + MIN ( ALL 12 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2687
SELECT - 99 DIV + COUNT( ALL + - 60 ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-2687
SELECT - 99 / + COUNT ( ALL + - 60 ) col1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2688
SELECT - 5 DIV 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 5 / 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2689
SELECT - 16 * + ( 82 ) * COUNT( * ), + 90 AS col1, - 52 + + + 15 AS col2
----
-1312
90
-37

skipif mysql # not compatible
query III rowsort label-2689
SELECT - 16 * + ( 82 ) * COUNT ( * ), + 90 AS col1, - 52 + + + 15 AS col2
----
-1312
90
-37

query I rowsort
SELECT + 22 + 4 AS col0
----
26

query I rowsort
SELECT + 81 * + CASE ( - + 69 ) WHEN + 45 THEN - 65 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT - 69 - - CAST( NULL AS SIGNED ) + + + 0 - + 60 * + - 49 * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 69 - - CAST ( NULL AS INTEGER ) + + + 0 - + 60 * + - 49 * 63 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2694
SELECT ALL 80 DIV - 31, COUNT( * ) + CAST( NULL AS SIGNED ) + 14 DIV + 70 col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-2694
SELECT ALL 80 / - 31, COUNT ( * ) + CAST ( NULL AS INTEGER ) + 14 / + 70 col0
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT - 86 + + CASE 17 WHEN + + 39 + - - 43 THEN + MAX( - 37 ) + COUNT( * ) WHEN + 22 / 71 THEN NULL END + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT - 86 + + CASE 17 WHEN + + 39 + - - 43 THEN + MAX ( - 37 ) + COUNT ( * ) WHEN + 22 / 71 THEN NULL END + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT - ( - 68 ) - - 27 + - 94 * ( + 99 ) + + - 79 * - + COUNT( * ) col0
----
-9132

skipif mysql # not compatible
query I rowsort label-2696
SELECT - ( - 68 ) - - 27 + - 94 * ( + 99 ) + + - 79 * - + COUNT ( * ) col0
----
-9132

query I rowsort
SELECT 58 + 26 - 66 AS col2
----
18

onlyif mysql # aggregate syntax: 
query III rowsort label-2698
SELECT ALL - 84 * + + 53 * - ( 39 ) col2, - COUNT( * ), + + 21 * + 55 AS col1
----
173628
-1
1155

skipif mysql # not compatible
query III rowsort label-2698
SELECT ALL - 84 * + + 53 * - ( 39 ) col2, - COUNT ( * ), + + 21 * + 55 AS col1
----
173628
-1
1155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT - SUM( DISTINCT + - ( 34 ) ) * NULLIF ( 41, + 49 + + - 23 ) * - 36 + 34 + CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
-50149

skipif mysql # not compatible
query I rowsort label-2699
SELECT - SUM ( DISTINCT + - ( 34 ) ) * NULLIF ( 41, + 49 + + - 23 ) * - 36 + 34 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
-50149

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL 48 + + CASE COUNT( + 92 ) WHEN 27 THEN - COUNT( * ) - - + 75 WHEN - 40 - - + ( + 55 ) + + 63 THEN NULL END * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL 48 + + CASE COUNT ( + 92 ) WHEN 27 THEN - COUNT ( * ) - - + 75 WHEN - 40 - - + ( + 55 ) + + 63 THEN NULL END * + 57 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2701
SELECT ALL 92 * + CASE + 41 WHEN - 89 THEN 52 - + + 27 + - - 48 * - 88 + + 35 * + COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + 26 THEN - + 49 END + + 92 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL 92 * + CASE + 41 WHEN - 89 THEN 52 - + + 27 + - - 48 * - 88 + + 35 * + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + 26 THEN - + 49 END + + 92 * - 65 AS col2
----
NULL

query I rowsort
SELECT + 31 * - 27 * 85 * + - 89
----
6331905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT ALL - 1 + + CAST( AVG ( DISTINCT + 38 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL - 1 + + CAST ( AVG ( DISTINCT + 38 ) AS INTEGER )
----
37

query I rowsort
SELECT ALL - 32 + - - 48 * 36
----
1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2705
SELECT DISTINCT - + ( + - 48 ) * - CAST( NULL AS SIGNED ) + + - 55 * + COUNT( * ) / 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - + ( + - 48 ) * - CAST ( NULL AS INTEGER ) + + - 55 * + COUNT ( * ) / 17 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT + 97 DIV + + 47 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2707
SELECT + 97 / + + 47 AS col2
----
2

query II rowsort
SELECT ALL 37 + - 32 AS col1, - 87 + 44 AS col2
----
5
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT CASE 39 WHEN 37 * - 68 + 22 + + + COUNT( * ) + 65 THEN - 18 ELSE NULL END * + 57 * - 65 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT CASE 39 WHEN 37 * - 68 + 22 + + + COUNT ( * ) + 65 THEN - 18 ELSE NULL END * + 57 * - 65 * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT + COUNT( * ) * - 11 * 69 + - NULLIF ( + 77, + 70 ) AS col0
----
-836

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT + COUNT ( * ) * - 11 * 69 + - NULLIF ( + 77, + 70 ) AS col0
----
-836

query I rowsort
SELECT + - 45 col1
----
-45

query I rowsort
SELECT 32 - - + 82 AS col2
----
114

query I rowsort
SELECT 75 * - 24 + + - 35 - 94 + - 84 * - - 19 AS col0
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL + - 89 * - 28 * - - COUNT( ALL - COALESCE ( - 10, + 56 ) )
----
2492

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + - 89 * - 28 * - - COUNT ( ALL - COALESCE ( - 10, + 56 ) )
----
2492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ALL CAST( - 23 AS SIGNED ) + + 61
----
38

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL CAST ( - 23 AS INTEGER ) + + 61
----
38

query I rowsort
SELECT 93 col2
----
93

query I rowsort
SELECT ALL - 49 + + 18 - - - ( + 65 ) * + 23
----
-1526

query I rowsort
SELECT ALL 17 * + 94 AS col2
----
1598

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT 84 + + 37 * - COALESCE ( - COUNT( * ), + 96 + 79 DIV + 30 * + COUNT( * ) )
----
121

skipif mysql # not compatible
query I rowsort label-2720
SELECT 84 + + 37 * - COALESCE ( - COUNT ( * ), + 96 + 79 / + 30 * + COUNT ( * ) )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT - 59 * COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - 59 * COUNT ( * ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT 94 + ( - MAX( 62 ) )
----
32

skipif mysql # not compatible
query I rowsort label-2722
SELECT 94 + ( - MAX ( 62 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL 51 - 72 * - - MAX( 69 )
----
-4917

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL 51 - 72 * - - MAX ( 69 )
----
-4917

query I rowsort
SELECT 0 * - 43 AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT 19 DIV 88 DIV + ( - - ( + 21 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT 19 / 88 / + ( - - ( + 21 ) )
----
0

query I rowsort
SELECT 90 + + 41 AS col1
----
131

query I rowsort
SELECT 26 * NULLIF ( - 24, 56 )
----
-624

query I rowsort
SELECT DISTINCT - 42 * 62 * - 79 * + + 9
----
1851444

query I rowsort
SELECT - + 75 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT - 49 DIV NULLIF ( + 57, 80 )
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT - 49 / NULLIF ( + 57, 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL - 96 + 4 + 72 + - + COALESCE ( - 82, + - COUNT( * ) * 39 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - 96 + 4 + 72 + - + COALESCE ( - 82, + - COUNT ( * ) * 39 ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT 91 * - + SUM( - 95 ) + - CASE - + 5 WHEN - - 40 + + + 92 + 50 + + NULLIF ( + 90, - 0 ) * 79 THEN - 98 + - 93 WHEN + + ( + 48 ) * + 92 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT 91 * - + SUM ( - 95 ) + - CASE - + 5 WHEN - - 40 + + + 92 + 50 + + NULLIF ( + 90, - 0 ) * 79 THEN - 98 + - 93 WHEN + + ( + 48 ) * + 92 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT - - 94 DIV - COUNT( - - 60 ) + + 95 + + 8 - - 7 * 87 + - 86 AS col1
----
532

skipif mysql # not compatible
query I rowsort label-2734
SELECT - - 94 / - COUNT ( - - 60 ) + + 95 + + 8 - - 7 * 87 + - 86 AS col1
----
532

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT DISTINCT + 94 + - COUNT( * ) * - - 25 * - MAX( - + 76 ) * - 42 + - + 23 * - 90, + 77 * + - 39 + - - 85 AS col1
----
81964
-2918

skipif mysql # not compatible
query II rowsort label-2735
SELECT DISTINCT + 94 + - COUNT ( * ) * - - 25 * - MAX ( - + 76 ) * - 42 + - + 23 * - 90, + 77 * + - 39 + - - 85 AS col1
----
81964
-2918

query I rowsort
SELECT ALL + 72 * 96 AS col1
----
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - + ( MAX( + + 52 ) ) + - 19 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - + ( MAX ( + + 52 ) ) + - 19 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + 3 + + 55 + 71 * + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + 3 + + 55 + 71 * + - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT + 37 AS col1, + 22 - COUNT( * ) AS col2
----
37
21

skipif mysql # not compatible
query II rowsort label-2739
SELECT + 37 AS col1, + 22 - COUNT ( * ) AS col2
----
37
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT + COUNT( * ) * + 15 * + - 30 + + 85 + - MIN( + 68 ) + - 44 AS col2
----
-477

skipif mysql # not compatible
query I rowsort label-2740
SELECT + COUNT ( * ) * + 15 * + - 30 + + 85 + - MIN ( + 68 ) + - 44 AS col2
----
-477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2741
SELECT ALL CAST( NULL AS SIGNED ) * CAST( + - CASE - 31 WHEN + 56 THEN + COUNT( * ) END AS SIGNED ) AS col0, 32 AS col0
----
NULL
32

skipif mysql # not compatible
query II rowsort label-2741
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + - CASE - 31 WHEN + 56 THEN + COUNT ( * ) END AS INTEGER ) AS col0, 32 AS col0
----
NULL
32

query I rowsort
SELECT - 65 + + 65 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT + 78 * COUNT ( * ) AS col0
----
78

query I rowsort
SELECT ALL + 20 + - 29 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT + 29 * - - ( - NULLIF ( + 37, + + 62 + - CASE + 72 WHEN ( + 3 ) THEN NULL WHEN 88 THEN + COALESCE ( + 70, + 67 + - 93, 65 ) END ) ) + + CAST( NULL AS SIGNED ) + - + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT + 29 * - - ( - NULLIF ( + 37, + + 62 + - CASE + 72 WHEN ( + 3 ) THEN NULL WHEN 88 THEN + COALESCE ( + 70, + 67 + - 93, 65 ) END ) ) + + CAST ( NULL AS INTEGER ) + - + 24 AS col2
----
NULL

query I rowsort
SELECT ALL - + 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT 40 * 0 * + 13 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2747
SELECT 40 * 0 * + 13 + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - + 6 col2
----
-6

query I rowsort
SELECT DISTINCT - - 8 * + 40
----
320

query II rowsort
SELECT ALL - 14, 46 * - 92 AS col0
----
-14
-4232

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT 76 - + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT 76 - + + COUNT ( * )
----
75

query I rowsort
SELECT 56 * 63 AS col1
----
3528

query I rowsort
SELECT ALL 11 - 25 col1
----
-14

query II rowsort
SELECT 57 AS col2, + 53 * + 73 AS col0
----
57
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT COALESCE ( + 20, 63 ) + + + COUNT( * ) col0
----
21

skipif mysql # not compatible
query I rowsort label-2755
SELECT COALESCE ( + 20, 63 ) + + + COUNT ( * ) col0
----
21

query I rowsort
SELECT ALL 5 * 75 AS col1
----
375

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT - COUNT( * ) AS col1, 14 * + NULLIF ( - 84, - 42 * - - 97 + ( 68 ) )
----
-1
-1176

skipif mysql # not compatible
query II rowsort label-2757
SELECT - COUNT ( * ) AS col1, 14 * + NULLIF ( - 84, - 42 * - - 97 + ( 68 ) )
----
-1
-1176

query II rowsort
SELECT 91 + + 83 * + 65 * 25, + 98 AS col1
----
134966
98

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

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

query I rowsort
SELECT DISTINCT 10 * - 26
----
-260

query II rowsort
SELECT ALL 62, 31 AS col2
----
62
31

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

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

query I rowsort
SELECT DISTINCT 62 * + 33
----
2046

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT ALL 25 col1, 52 + + COUNT( * )
----
25
53

skipif mysql # not compatible
query II rowsort label-2765
SELECT ALL 25 col1, 52 + + COUNT ( * )
----
25
53

query II rowsort
SELECT 89 AS col1, 78
----
89
78

query I rowsort
SELECT ALL + - 65 + 18 + + 75 AS col0
----
28

query II rowsort
SELECT DISTINCT 42 + - 17 AS col1, - 51
----
25
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2769
SELECT ALL + 33, COUNT( * ) AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-2769
SELECT ALL + 33, COUNT ( * ) AS col2
----
33
1

query I rowsort
SELECT - - 45 * - ( + - 5 ) AS col0
----
225

query I rowsort
SELECT DISTINCT - - 52 + - + 57
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL CASE - 45 WHEN 92 - + 76 THEN - 23 WHEN + SUM( - 78 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL CASE - 45 WHEN 92 - + 76 THEN - 23 WHEN + SUM ( - 78 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 69 + + - 45 + + 90 * 34 + + 74 AS col2
----
3158

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT - MIN( - + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT - MIN ( - + 79 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2775
SELECT + 69 DIV + - 88 + ( 30 ) - COUNT( * ) * + 14 + - 33
----
-17

skipif mysql # not compatible
query I rowsort label-2775
SELECT + 69 / + - 88 + ( 30 ) - COUNT ( * ) * + 14 + - 33
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT + 93 * ( - + 81 ) + - 77 + - - 52 DIV 31
----
-7609

skipif mysql # not compatible
query I rowsort label-2776
SELECT + 93 * ( - + 81 ) + - 77 + - - 52 / 31
----
-7609

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2778
SELECT + + 82 AS col0, + 74 + - 29 DIV - 47 col2
----
82
74

skipif mysql # not compatible
query II rowsort label-2778
SELECT + + 82 AS col0, + 74 + - 29 / - 47 col2
----
82
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT ALL + COUNT( * ), CASE - + 53 WHEN - 14 * - 96 * - 88 + 94 - - 61 / + ( - - 85 ) THEN - 9 ELSE NULL END * - 28 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2779
SELECT ALL + COUNT ( * ), CASE - + 53 WHEN - 14 * - 96 * - 88 + 94 - - 61 / + ( - - 85 ) THEN - 9 ELSE NULL END * - 28 AS col2
----
1
NULL

query I rowsort
SELECT - - 43 * - + 2 + - + ( - + 89 ) AS col0
----
3

query II rowsort
SELECT ALL + + 76 AS col2, 70 AS col1
----
76
70

query I rowsort
SELECT ALL + + 59 AS col2
----
59

query II rowsort
SELECT ALL + 5 AS col1, + 10 * - + 99
----
5
-990

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2784
SELECT - CAST( NULL AS DECIMAL ) * 25 AS col1, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-2784
SELECT - CAST ( NULL AS REAL ) * 25 AS col1, 48
----
NULL
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT - ( + 38 ) * + 63 DIV + + ( - COALESCE ( COUNT( * ), - - AVG ( ALL + 28 ) ) ) AS col0
----
2394

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - ( + 38 ) * + 63 / + + ( - COALESCE ( COUNT ( * ), - - AVG ( ALL + 28 ) ) ) AS col0
----
2394

onlyif mysql # DIV for integer division: 
query II rowsort label-2786
SELECT DISTINCT + 66, 33 DIV 16 * + 13 DIV + 37 AS col0
----
66
0

skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT + 66, 33 / 16 * + 13 / + 37 AS col0
----
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT 58 * COUNT( * ) + + COALESCE ( - + 51, - COUNT( * ) ) + - 40 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2787
SELECT 58 * COUNT ( * ) + + COALESCE ( - + 51, - COUNT ( * ) ) + - 40 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT CASE - - 69 WHEN - + 34 + - 82 THEN + ( - ( + 44 ) ) * 38 + 52 / + 44 * - + 12 WHEN COUNT( * ) THEN NULL ELSE + + COALESCE ( + 1, - 28 ) * - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2788
SELECT CASE - - 69 WHEN - + 34 + - 82 THEN + ( - ( + 44 ) ) * 38 + 52 / + 44 * - + 12 WHEN COUNT ( * ) THEN NULL ELSE + + COALESCE ( + 1, - 28 ) * - COUNT ( * ) END
----
-1

query I rowsort
SELECT - 17 * 18
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT COUNT( - + 6 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2790
SELECT COUNT ( - + 6 ) col2
----
1

query I rowsort
SELECT ALL - 86 * 99
----
-8514

query I rowsort
SELECT + 46 + 39 * - 79 + + 19
----
-3016

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2794
SELECT - CASE - CAST( + 95 AS DECIMAL ) WHEN + + 4 + + + COALESCE ( + 82, + - 50 ) + - + 93 + - - COUNT( * ) * - NULLIF ( - - 62, + - 82 ) / - - 18 + + 54 - AVG ( ALL - 55 ) * + 33 THEN - - 95 * + - 69 + + ( NULLIF ( 67, + 83 + - 41 ) ) * + + 25 + ( - COUNT( * ) ) - 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT - CASE - CAST ( + 95 AS REAL ) WHEN + + 4 + + + COALESCE ( + 82, + - 50 ) + - + 93 + - - COUNT ( * ) * - NULLIF ( - - 62, + - 82 ) / - - 18 + + 54 - AVG ( ALL - 55 ) * + 33 THEN - - 95 * + - 69 + + ( NULLIF ( 67, + 83 + - 41 ) ) * + + 25 + ( - COUNT ( * ) ) - 31 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2795
SELECT DISTINCT CASE + 64 WHEN 19 THEN - NULLIF ( - CAST( - - 49 AS DECIMAL ), + 59 + 88 + + - CAST( NULL AS SIGNED ) * - COUNT( * ) ) END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT CASE + 64 WHEN 19 THEN - NULLIF ( - CAST ( - - 49 AS REAL ), + 59 + 88 + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) END + + 4
----
NULL

query I rowsort
SELECT - 10 + + 65
----
55

query I rowsort
SELECT - ( 52 ) AS col0
----
-52

query I rowsort
SELECT + 92 - 45 - 40 * - 80 AS col2
----
3247

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT + 9 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT + 9 / + 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + 73 + - + 41 ) + + CASE + 68 WHEN COUNT( * ) * - 18 - + ( + COUNT( * ) ) + - 1 + + + 99 * - - 26 THEN NULL ELSE - 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + 73 + - + 41 ) + + CASE + 68 WHEN COUNT ( * ) * - 18 - + ( + COUNT ( * ) ) + - 1 + + + 99 * - - 26 THEN NULL ELSE - 9 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT - NULLIF ( - + 29, COUNT( + 91 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2802
SELECT - NULLIF ( - + 29, COUNT ( + 91 ) ) AS col1
----
29

query I rowsort
SELECT + 56 + + - 56 * 77 + 40
----
-4216

query I rowsort
SELECT + - 16 + + + 99 * 79 + 21 * - 64 + - 55 + + 91 * + 38
----
9864

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT ALL COUNT( * ) * 71 AS col2, COUNT( * ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL COUNT ( * ) * 71 AS col2, COUNT ( * ) AS col1
----
71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT NULLIF ( + 45, - COUNT( * ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2806
SELECT NULLIF ( + 45, - COUNT ( * ) ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL CASE COUNT( * ) WHEN - - 96 + + 38 - - 8 + + + 48 * + 11 THEN 70 * - 8 + - + 59 * + 50 END + - COUNT( 21 ) - + COUNT( * ) - + - 96 * 45 + + + ( - + 16 ) / + + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL CASE COUNT ( * ) WHEN - - 96 + + 38 - - 8 + + + 48 * + 11 THEN 70 * - 8 + - + 59 * + 50 END + - COUNT ( 21 ) - + COUNT ( * ) - + - 96 * 45 + + + ( - + 16 ) / + + 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2808
SELECT ALL CAST( - 53 AS SIGNED ) + + 54 DIV - - 49
----
-52

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL CAST ( - 53 AS INTEGER ) + + 54 / - - 49
----
-52

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

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

query I rowsort
SELECT - + 75 + - 80 + 40 * 93 AS col2
----
3565

query I rowsort
SELECT - - 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + CASE 68 WHEN ( - + 94 ) THEN NULL WHEN - 47 THEN NULL ELSE COUNT( * ) - + + 89 * - 28 END + - 47 AS col0
----
2446

skipif mysql # not compatible
query I rowsort label-2812
SELECT + CASE 68 WHEN ( - + 94 ) THEN NULL WHEN - 47 THEN NULL ELSE COUNT ( * ) - + + 89 * - 28 END + - 47 AS col0
----
2446

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + + 89 * - + 3 * MAX( DISTINCT - 79 ) * + + 6 col1
----
126558

skipif mysql # not compatible
query I rowsort label-2813
SELECT + + 89 * - + 3 * MAX ( DISTINCT - 79 ) * + + 6 col1
----
126558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2814
SELECT + ( + - 73 ) / - CAST( 23 AS DECIMAL ) + + CAST( NULL AS SIGNED ) * + + 87 * COUNT( * ) + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT + ( + - 73 ) / - CAST ( 23 AS REAL ) + + CAST ( NULL AS INTEGER ) * + + 87 * COUNT ( * ) + - 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT + 62 * COUNT( * ) DIV + 66 + + + 73
----
73

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT + 62 * COUNT ( * ) / + 66 + + + 73
----
73

query I rowsort
SELECT ALL + - 70 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT - 13 + - COUNT( * ) + + 48 col1
----
34

skipif mysql # not compatible
query I rowsort label-2817
SELECT - 13 + - COUNT ( * ) + + 48 col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT + - 62 * - - COUNT( ALL + ( + ( - 22 ) ) )
----
-62

skipif mysql # not compatible
query I rowsort label-2818
SELECT + - 62 * - - COUNT ( ALL + ( + ( - 22 ) ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + + SUM( DISTINCT + + 1 ) * + MIN( DISTINCT - 79 ) * + NULLIF ( - - 21, MIN( + 57 ) + - 81 / + - 52 ) + + - 36 + + MAX( + - 86 )
----
-1781

skipif mysql # not compatible
query I rowsort label-2819
SELECT + + SUM ( DISTINCT + + 1 ) * + MIN ( DISTINCT - 79 ) * + NULLIF ( - - 21, MIN ( + 57 ) + - 81 / + - 52 ) + + - 36 + + MAX ( + - 86 )
----
-1781

query I rowsort
SELECT ALL + 39 col0
----
39

query I rowsort
SELECT - 94 + 21 AS col0
----
-73

query I rowsort
SELECT - 99 * + 74 AS col0
----
-7326

query II rowsort
SELECT - 58 * + - NULLIF ( + - 49, + 39 ), 27 AS col2
----
-2842
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + ( - 97 ) * - 1 - + - 47 + - + 56 + + + COUNT( * ) + + + 71
----
160

skipif mysql # not compatible
query I rowsort label-2824
SELECT + ( - 97 ) * - 1 - + - 47 + - + 56 + + + COUNT ( * ) + + + 71
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2825
SELECT ALL + NULLIF ( + 79, - CAST( NULL AS SIGNED ) ) DIV + + NULLIF ( - COUNT( * ), + 88 )
----
-79

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + NULLIF ( + 79, - CAST ( NULL AS INTEGER ) ) / + + NULLIF ( - COUNT ( * ), + 88 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT + COALESCE ( - 74, - 98 * COUNT( * ) * - 51 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + COALESCE ( - 74, - 98 * COUNT ( * ) * - 51 ) AS col2
----
-74

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

skipif mysql # not compatible
query I rowsort label-2827
SELECT - 63 * COUNT ( * )
----
-63

query I rowsort
SELECT 3 + 18 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL - 28 + - COUNT( ALL - 39 ) + + ( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - 28 + - COUNT ( ALL - 39 ) + + ( 29 )
----
0

query I rowsort
SELECT 19 + - 52 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT 90 * - COALESCE ( + - COUNT( * ), - 96 / COALESCE ( + + CASE + 62 WHEN - 69 * - - 67 THEN - 43 + - COUNT( * ) + - 89 - + 2 ELSE NULL END, - 8 ) + CASE - 77 WHEN - 80 THEN + ( - 33 ) + - COUNT( ALL 21 ) ELSE + 54 + - - MAX( 12 ) + 36 END - - 4 - MAX( ALL - 17 ) + 16 * + AVG ( - + 69 ), - 6 * - 94 / - 39 + + ( + - ( - NULLIF ( + 89, + NULLIF ( + 45, + - 55 ) ) ) ) - - 10 ) * + CASE + COUNT( * ) WHEN + 1 THEN NULL ELSE + - 90 + + SUM( + 95 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT 90 * - COALESCE ( + - COUNT ( * ), - 96 / COALESCE ( + + CASE + 62 WHEN - 69 * - - 67 THEN - 43 + - COUNT ( * ) + - 89 - + 2 ELSE NULL END, - 8 ) + CASE - 77 WHEN - 80 THEN + ( - 33 ) + - COUNT ( ALL 21 ) ELSE + 54 + - - MAX ( 12 ) + 36 END - - 4 - MAX ( ALL - 17 ) + 16 * + AVG ( - + 69 ), - 6 * - 94 / - 39 + + ( + - ( - NULLIF ( + 89, + NULLIF ( + 45, + - 55 ) ) ) ) - - 10 ) * + CASE + COUNT ( * ) WHEN + 1 THEN NULL ELSE + - 90 + + SUM ( + 95 ) END
----
NULL

query II rowsort
SELECT DISTINCT - 83 + - 59 + - 82, 7 AS col2
----
-224
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2833
SELECT ALL + COALESCE ( - 62, - - 95 DIV + MAX( + 55 ) + - CAST( NULL AS SIGNED ) * + COUNT( * ) * + 24 * - 57, + 35 ) + 13 + + 55 * 83 + - + 49 AS col0, + 80 - + 72 AS col2
----
4467
8

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL + COALESCE ( - 62, - - 95 / + MAX ( + 55 ) + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 24 * - 57, + 35 ) + 13 + + 55 * 83 + - + 49 AS col0, + 80 - + 72 AS col2
----
4467
8

onlyif mysql # DIV for integer division: 
query II rowsort label-2834
SELECT DISTINCT ( + 82 ) + + 70 DIV - 95, 88 * + 33 * 18 AS col2
----
82
52272

skipif mysql # not compatible
query II rowsort label-2834
SELECT DISTINCT ( + 82 ) + + 70 / - 95, 88 * + 33 * 18 AS col2
----
82
52272

query I rowsort
SELECT DISTINCT + 38 * - 93 AS col1
----
-3534

query I rowsort
SELECT ALL + 29 + - ( - 18 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT - 17 + COUNT( * ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - 17 + COUNT ( * ) col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT 96 * + + COALESCE ( + 97, + 81 + + - 90 + 51 ) * ( + - COUNT( * ) ) AS col1, + 21
----
-9312
21

skipif mysql # not compatible
query II rowsort label-2838
SELECT 96 * + + COALESCE ( + 97, + 81 + + - 90 + 51 ) * ( + - COUNT ( * ) ) AS col1, + 21
----
-9312
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - COALESCE ( 6, + 58 * + NULLIF ( - 58, + - 38 ) + + + COUNT( - 60 ) * - + COUNT( * ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2839
SELECT - COALESCE ( 6, + 58 * + NULLIF ( - 58, + - 38 ) + + + COUNT ( - 60 ) * - + COUNT ( * ) )
----
-6

query I rowsort
SELECT 27 + + 41 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT - + NULLIF ( - 0, - 9 + + CAST( + COUNT( * ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT - + NULLIF ( - 0, - 9 + + CAST ( + COUNT ( * ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - ( + CASE + ( - 28 ) WHEN + + CASE 0 WHEN + - COUNT( * ) THEN 70 / 24 * - 79 END + - 70 + 28 THEN + 44 + 13 END ) + - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT - ( + CASE + ( - 28 ) WHEN + + CASE 0 WHEN + - COUNT ( * ) THEN 70 / 24 * - 79 END + - 70 + 28 THEN + 44 + 13 END ) + - 9 AS col1
----
NULL

query II rowsort
SELECT ALL 99, 50 AS col2
----
99
50

query I rowsort
SELECT 75 * - COALESCE ( - 97, + 47 + + 68 * - 18, - 12 )
----
7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2845
SELECT - 31 * 2 * + CASE + COUNT( * ) WHEN + 44 * - COALESCE ( + 16, + 8 ) THEN + - 50 * 94 * - ( - + 78 ) * - CASE 80 WHEN 41 * - + COUNT( + + 54 ) + + 88 * + 16 * + - 77 + 99 THEN - COUNT( * ) / - - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 99 + + - 97 + - SUM( + 34 ) ELSE NULL END + - 86 + - 14 ELSE NULL END / - - CAST( NULL AS DECIMAL ), - 89 AS col2
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-2845
SELECT - 31 * 2 * + CASE + COUNT ( * ) WHEN + 44 * - COALESCE ( + 16, + 8 ) THEN + - 50 * 94 * - ( - + 78 ) * - CASE 80 WHEN 41 * - + COUNT ( + + 54 ) + + 88 * + 16 * + - 77 + 99 THEN - COUNT ( * ) / - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 99 + + - 97 + - SUM ( + 34 ) ELSE NULL END + - 86 + - 14 ELSE NULL END / - - CAST ( NULL AS REAL ), - 89 AS col2
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT DISTINCT MAX( - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT MAX ( - - 4 )
----
4

query I rowsort
SELECT ALL 14 * - 10
----
-140

query I rowsort
SELECT - + 52 AS col0
----
-52

query I rowsort
SELECT ALL 58 - + COALESCE ( + 47, - 16 ) col1
----
11

query I rowsort
SELECT + ( 2 ) * 62
----
124

query II rowsort
SELECT ALL 84 AS col0, 49 * - + 98 AS col0
----
84
-4802

query I rowsort
SELECT - NULLIF ( + - 98, + - 52 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT 75 + - MAX( ALL 46 )
----
29

skipif mysql # not compatible
query I rowsort label-2853
SELECT 75 + - MAX ( ALL 46 )
----
29

query I rowsort
SELECT ALL - ( + 72 )
----
-72

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

skipif mysql # not compatible
query I rowsort label-2855
SELECT - COUNT ( * ) * + 91 * - 74 AS col0
----
6734

query I rowsort
SELECT ALL - - 17
----
17

query II rowsort
SELECT + - 55 AS col2, - 56 AS col2
----
-55
-56

query I rowsort
SELECT ALL - 55 col1
----
-55

query I rowsort
SELECT ALL + 32 * - 52 AS col2
----
-1664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT ALL 52 + - 81 * CAST( 57 AS SIGNED ) AS col0
----
-4565

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL 52 + - 81 * CAST ( 57 AS INTEGER ) AS col0
----
-4565

query I rowsort
SELECT DISTINCT + NULLIF ( - - 4, + 1 ) + - - 7 * - 96 - - 40 AS col1
----
-628

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

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

query II rowsort
SELECT 84 + + 12 AS col0, 90 col0
----
96
90

query I rowsort
SELECT 19 * + NULLIF ( 85, - - 42 ) AS col2
----
1615

query I rowsort
SELECT ALL - 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT + MIN( DISTINCT - COALESCE ( - 60, - - CASE - 79 WHEN - + 87 THEN + + 74 ELSE - 48 END + 44, 80 ) ) * - 2 + - + 13 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-2866
SELECT + MIN ( DISTINCT - COALESCE ( - 60, - - CASE - 79 WHEN - + 87 THEN + + 74 ELSE - 48 END + 44, 80 ) ) * - 2 + - + 13 AS col0
----
-133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2867
SELECT 38 DIV - - 76 * COALESCE ( CAST( NULL AS SIGNED ), + 40 * 60, 70 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT 38 / - - 76 * COALESCE ( CAST ( NULL AS INTEGER ), + 40 * 60, 70 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL - CASE - 73 WHEN 16 THEN NULL WHEN + 12 THEN 37 + - CAST( NULL AS SIGNED ) ELSE NULL END + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - CASE - 73 WHEN 16 THEN NULL WHEN + 12 THEN 37 + - CAST ( NULL AS INTEGER ) ELSE NULL END + - 33 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT DISTINCT 4 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT 4 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT 35 * - + 84 * COUNT( * )
----
-2940

skipif mysql # not compatible
query I rowsort label-2870
SELECT 35 * - + 84 * COUNT ( * )
----
-2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT - 55 * + 35 + + 40 / + - CAST( NULL AS SIGNED ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT - 55 * + 35 + + 40 / + - CAST ( NULL AS INTEGER ) * + 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL + 97 + + 19 DIV - 27
----
97

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL + 97 + + 19 / - 27
----
97

query I rowsort
SELECT 11 - - 32 + + - 90 - + 30 AS col2
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT - COUNT( * ) + - 40 + - 77 col2
----
-118

skipif mysql # not compatible
query I rowsort label-2875
SELECT - COUNT ( * ) + - 40 + - 77 col2
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL - - COUNT( * ) - + - COUNT( * ) DIV MAX( - 77 ) + 12 - - - 69 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - - COUNT ( * ) - + - COUNT ( * ) / MAX ( - 77 ) + 12 - - - 69 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT + 84 * ( + 57 ) * + COUNT( - + 55 )
----
4788

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + 84 * ( + 57 ) * + COUNT ( - + 55 )
----
4788

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT 90 + - MIN( + ( - 38 ) ) * 88 AS col2, 39 * 42
----
3434
1638

skipif mysql # not compatible
query II rowsort label-2878
SELECT 90 + - MIN ( + ( - 38 ) ) * 88 AS col2, 39 * 42
----
3434
1638

query I rowsort
SELECT ALL - + 74 * - + 87 AS col0
----
6438

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT ALL + + COUNT( * ) - - + 3 AS col0, 47 + - + 87
----
4
-40

skipif mysql # not compatible
query II rowsort label-2880
SELECT ALL + + COUNT ( * ) - - + 3 AS col0, 47 + - + 87
----
4
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT DISTINCT - NULLIF ( - 65, + 66 * 32 - + 80 * ( 74 ) + + 78 + + 12 * + - 12 * + ( COUNT( * ) ) / + 78 * + CAST( NULL AS SIGNED ) * - + 71 + + 34 / 60 + + 81 ) * + 64 AS col1
----
4160

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - NULLIF ( - 65, + 66 * 32 - + 80 * ( 74 ) + + 78 + + 12 * + - 12 * + ( COUNT ( * ) ) / + 78 * + CAST ( NULL AS INTEGER ) * - + 71 + + 34 / 60 + + 81 ) * + 64 AS col1
----
4160

query I rowsort
SELECT DISTINCT - 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT 0 + MIN( ALL + - 37 ) * - - 42
----
-1554

skipif mysql # not compatible
query I rowsort label-2883
SELECT 0 + MIN ( ALL + - 37 ) * - - 42
----
-1554

query I rowsort
SELECT - 48 + 31 AS col2
----
-17

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

skipif mysql # not compatible
query I rowsort label-2885
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2886
SELECT - 32 * COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - 18 * - SUM( + 68 ) + - + 79 AS col1
----
1145

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - 18 * - SUM ( + 68 ) + - + 79 AS col1
----
1145

query I rowsort
SELECT ALL 41 * - 4
----
-164

query I rowsort
SELECT 94 + - ( + 44 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL 90 * + 68 + - COUNT( * ) * + 30 - COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL 90 * + 68 + - COUNT ( * ) * + 30 - COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 97 * - 26 + - NULLIF ( + 7, + 85 ), - 96 AS col1
----
2515
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT + 40 - NULLIF ( - 12, - + 31 * 50 * - COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 40 - NULLIF ( - 12, - + 31 * 50 * - COUNT ( * ) )
----
52

query II rowsort
SELECT 28 * 81 + - 5, 46 AS col1
----
2263
46

query I rowsort
SELECT CASE - - 84 WHEN - - 57 * + ( 6 ) - + 18 * - ( - + 49 ) THEN - 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT + 69 + - 27 + + COUNT( * ) col1, 2
----
43
2

skipif mysql # not compatible
query II rowsort label-2895
SELECT + 69 + - 27 + + COUNT ( * ) col1, 2
----
43
2

query I rowsort
SELECT - 64 * - 80 + - 98
----
5022

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

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

query I rowsort
SELECT DISTINCT + 80 col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT - 26 * + + COUNT( * ) DIV + 53 * + - COUNT( * ) + + 12
----
12

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - 26 * + + COUNT ( * ) / + 53 * + - COUNT ( * ) + + 12
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2900
SELECT ALL + 43 * CAST( NULL AS SIGNED ) + - - 9 AS col0, - 59 AS col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-2900
SELECT ALL + 43 * CAST ( NULL AS INTEGER ) + - - 9 AS col0, - 59 AS col1
----
NULL
-59

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

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

query I rowsort
SELECT + 33 + - 85 AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2903
SELECT ALL - ( 17 ) * - - 68 * - + CAST( - 79 AS SIGNED ) - - 60
----
-91264

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - ( 17 ) * - - 68 * - + CAST ( - 79 AS INTEGER ) - - 60
----
-91264

query I rowsort
SELECT + CASE - + ( - ( - - 86 ) ) WHEN 84 THEN - COALESCE ( 42, + 85 + + + 3 ) END AS col1
----
NULL

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

query II rowsort
SELECT ALL 7 * - COALESCE ( + 26, + - 35 ) - - 33, - 95 * - 80 AS col2
----
-149
7600

query I rowsort
SELECT + 27 * 9 * 2 * - 17 AS col2
----
-8262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT ALL 32 DIV - NULLIF ( - 20, - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL 32 / - NULLIF ( - 20, - + COUNT ( * ) )
----
1

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

skipif mysql # not compatible
query I rowsort label-2909
SELECT - COUNT ( * ) + 94 AS col1
----
93

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

skipif mysql # not compatible
query I rowsort label-2910
SELECT MAX ( + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL SUM( 10 ) - + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL SUM ( 10 ) - + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + 91 * CASE 70 WHEN + 81 + SUM( ALL + 39 ) THEN 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 91 * CASE 70 WHEN + 81 + SUM ( ALL + 39 ) THEN 83 END
----
NULL

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

query I rowsort
SELECT - ( + ( 68 ) ) + 76 * 68
----
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT DISTINCT CAST( - 53 AS SIGNED ) * 71 AS col2
----
-3763

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT CAST ( - 53 AS INTEGER ) * 71 AS col2
----
-3763

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT DISTINCT - 21 DIV SUM( - 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT - 21 / SUM ( - 46 ) AS col1
----
0

query I rowsort
SELECT ALL + 3 * 10
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT ALL + 31 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + 31 / 49
----
0

query I rowsort
SELECT - ( 25 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2921
SELECT - COALESCE ( 0, + 35 DIV - NULLIF ( + 40 * + 80, 81 ) ) + COALESCE ( + CAST( NULL AS SIGNED ), 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2921
SELECT - COALESCE ( 0, + 35 / - NULLIF ( + 40 * + 80, 81 ) ) + COALESCE ( + CAST ( NULL AS INTEGER ), 42 ) AS col1
----
42

query I rowsort
SELECT + 1 * NULLIF ( 19, 49 / - 97 )
----
19

query I rowsort
SELECT - 7 + 0 * 12
----
-7

query I rowsort
SELECT ALL NULLIF ( - 20, COALESCE ( 79, - 42 ) )
----
-20

query I rowsort
SELECT 6 col2
----
6

query I rowsort
SELECT - 83 + - 67 AS col0
----
-150

query I rowsort
SELECT 12 col1
----
12

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

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

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

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

query I rowsort
SELECT - 71 * + 69 AS col0
----
-4899

query I rowsort
SELECT ALL - 59 + - NULLIF ( 38, AVG ( - 44 ) )
----
-97

query I rowsort
SELECT DISTINCT - 14 + - CASE - NULLIF ( - 82, AVG ( DISTINCT + 30 ) ) WHEN 0 THEN + 69 WHEN 95 THEN NULL ELSE NULL END * + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + MAX( + 16 ) + 73 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + MAX ( + 16 ) + 73 AS col2
----
89

query I rowsort
SELECT ALL - 32 + + 99
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL ( - CASE - 39 WHEN - COUNT( DISTINCT ( + 12 ) ) - 95 THEN COUNT( * ) + - COALESCE ( 17 + - COUNT( * ), + 34 + 83 ) WHEN AVG ( DISTINCT 60 ) - 68 * 63 THEN 91 + CAST( NULL AS SIGNED ) WHEN - 11 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL ( - CASE - 39 WHEN - COUNT ( DISTINCT ( + 12 ) ) - 95 THEN COUNT ( * ) + - COALESCE ( 17 + - COUNT ( * ), + 34 + 83 ) WHEN AVG ( DISTINCT 60 ) - 68 * 63 THEN 91 + CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT + 9 / CAST( NULL AS SIGNED ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + 9 / CAST ( NULL AS INTEGER ) + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2937
SELECT + 93 DIV MAX( DISTINCT 80 )
----
1

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 93 / MAX ( DISTINCT 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - 5 * + MIN( DISTINCT - 92 ) AS col1
----
460

skipif mysql # not compatible
query I rowsort label-2938
SELECT - 5 * + MIN ( DISTINCT - 92 ) AS col1
----
460

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL + 99 DIV + 84 - 28 * 70 AS col0
----
-1959

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + 99 / + 84 - 28 * 70 AS col0
----
-1959

query I rowsort
SELECT + NULLIF ( 33, - 41 * 0 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL - 61 DIV + 19 - + 99
----
-102

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - 61 / + 19 - + 99
----
-102

query I rowsort
SELECT + CASE - 13 WHEN 98 THEN NULL ELSE 61 END
----
61

query I rowsort
SELECT ALL + 70 * 95 AS col1
----
6650

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

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

query I rowsort
SELECT ALL 92 * 15
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT 70 * SUM( + 10 * + 7 ) + - 77
----
4823

skipif mysql # not compatible
query I rowsort label-2947
SELECT 70 * SUM ( + 10 * + 7 ) + - 77
----
4823

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

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

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

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

query I rowsort
SELECT - 47 * 97 + 47 AS col2
----
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ( - MAX( 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-2951
SELECT ( - MAX ( 21 ) )
----
-21

query I rowsort
SELECT ALL + 34 * - 83 - 31 AS col1
----
-2853

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + CASE - 58 WHEN + 20 * 17 THEN 22 / - 7 ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT + CASE - 58 WHEN + 20 * 17 THEN 22 / - 7 ELSE COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + 15 * 16 - MAX( + ( + 79 ) ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-2954
SELECT + 15 * 16 - MAX ( + ( + 79 ) ) AS col0
----
161

query I rowsort
SELECT ALL + - 54 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL + MIN( + 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + MIN ( + 98 ) col0
----
98

query I rowsort
SELECT + - 31 + 54
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT + ( + 35 ) + MIN( 53 )
----
88

skipif mysql # not compatible
query I rowsort label-2959
SELECT + ( + 35 ) + MIN ( 53 )
----
88

query I rowsort
SELECT ALL 81 * 95
----
7695

query I rowsort
SELECT + 50 * 84 AS col2
----
4200

query I rowsort
SELECT - NULLIF ( 76, 32 ) col2
----
-76

query I rowsort
SELECT + 8 + 68 * 74 col2
----
5040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT + - CAST( 68 AS SIGNED ) - + 25 col1
----
-93

skipif mysql # not compatible
query I rowsort label-2964
SELECT + - CAST ( 68 AS INTEGER ) - + 25 col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + + 79 DIV 14
----
5

skipif mysql # not compatible
query I rowsort label-2965
SELECT + + 79 / 14
----
5

query I rowsort
SELECT - + 73 * 82
----
-5986

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

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

query I rowsort
SELECT DISTINCT 65 * + 52 AS col2
----
3380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT - + CASE 70 WHEN 90 - - 84 THEN - COUNT( * ) * CAST( 45 / - 47 AS SIGNED ) WHEN + 15 THEN + 44 * COUNT( DISTINCT 14 ) + - MAX( ALL 93 + 32 / ( + 11 ) ) * CAST( NULL AS SIGNED ) WHEN 12 THEN 9 ELSE + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT - + CASE 70 WHEN 90 - - 84 THEN - COUNT ( * ) * CAST ( 45 / - 47 AS INTEGER ) WHEN + 15 THEN + 44 * COUNT ( DISTINCT 14 ) + - MAX ( ALL 93 + 32 / ( + 11 ) ) * CAST ( NULL AS INTEGER ) WHEN 12 THEN 9 ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL + + 31 + 6 * COUNT( ALL 49 * - 75 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + + 31 + 6 * COUNT ( ALL 49 * - 75 ) AS col1
----
37

query I rowsort
SELECT + 53 * 34
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT NULLIF ( COUNT( * ), + COUNT( * ) ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT NULLIF ( COUNT ( * ), + COUNT ( * ) ) + - 65
----
NULL

query I rowsort
SELECT ALL 27 * 57 col1
----
1539

query I rowsort
SELECT 53 * - 35
----
-1855

query I rowsort
SELECT DISTINCT - - 19 + - ( 52 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ALL + + 56 DIV - 25 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL + + 56 / - 25 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL + 58 + ( ( - COUNT( * ) ) ) col1
----
57

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + 58 + ( ( - COUNT ( * ) ) ) col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 54 + CASE COUNT( * ) WHEN - 6 THEN + ( 74 ) + - 16 WHEN + 13 THEN 95 * 60 - 30 * + 89 END / + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 54 + CASE COUNT ( * ) WHEN - 6 THEN + ( 74 ) + - 16 WHEN + 13 THEN 95 * 60 - 30 * + 89 END / + 61 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT 20 * 38 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT 20 * 38 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT CAST( + 58 AS SIGNED ) + - 89 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2980
SELECT CAST ( + 58 AS INTEGER ) + - 89 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT 9 + + - CASE 71 WHEN 23 + + 0 THEN - 70 WHEN COUNT( * ) THEN - 38 - CASE 93 WHEN + 42 THEN SUM( + 35 ) * - COALESCE ( - CASE 52 WHEN + ( - 73 ) THEN + 81 * 95 WHEN + SUM( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END, 76 * 27, - COUNT( * ) ) - + 40 * - 77 WHEN 86 + 95 THEN NULL ELSE + 74 END END * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT 9 + + - CASE 71 WHEN 23 + + 0 THEN - 70 WHEN COUNT ( * ) THEN - 38 - CASE 93 WHEN + 42 THEN SUM ( + 35 ) * - COALESCE ( - CASE 52 WHEN + ( - 73 ) THEN + 81 * 95 WHEN + SUM ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END, 76 * 27, - COUNT ( * ) ) - + 40 * - 77 WHEN 86 + 95 THEN NULL ELSE + 74 END END * + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT - 25 DIV + 39 + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2982
SELECT - 25 / + 39 + ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL CASE + 55 WHEN - COUNT( * ) + - ( 51 + - 45 ) * 39 THEN NULL ELSE 81 END - - 20 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL CASE + 55 WHEN - COUNT ( * ) + - ( 51 + - 45 ) * 39 THEN NULL ELSE 81 END - - 20 AS col0
----
101

query I rowsort
SELECT 29 + + 9 + + 78
----
116

query I rowsort
SELECT 35 * - 54 AS col2
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT + COUNT( ( + 88 ) ) * NULLIF ( + 23 * - 45 - + 58, + 88 )
----
-1093

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT + COUNT ( ( + 88 ) ) * NULLIF ( + 23 * - 45 - + 58, + 88 )
----
-1093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2987
SELECT DISTINCT + ( MAX( ALL CAST( + 63 AS SIGNED ) ) ) - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT + ( MAX ( ALL CAST ( + 63 AS INTEGER ) ) ) - COUNT ( * )
----
62

query I rowsort
SELECT 48 * - ( 18 ) AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + 80 * + COUNT( * ) * 29 + + 78 * 85 AS col0
----
8950

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 80 * + COUNT ( * ) * 29 + + 78 * 85 AS col0
----
8950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT ALL - CASE - 48 WHEN CAST( 8 AS SIGNED ) + + CAST( 92 AS SIGNED ) THEN NULL WHEN - 63 THEN + 53 * - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - CASE - 48 WHEN CAST ( 8 AS INTEGER ) + + CAST ( 92 AS INTEGER ) THEN NULL WHEN - 63 THEN + 53 * - 18 END
----
NULL

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

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

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

query I rowsort
SELECT 38 * - - 38
----
1444

query I rowsort
SELECT 39 * + 91 + ( ( 5 ) + + 36 ) * 33 AS col1
----
4902

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT - + MAX( ALL - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT - + MAX ( ALL - 31 )
----
31

query I rowsort
SELECT ALL + 74 * - - 44 AS col1
----
3256

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT + ( + - 95 ) DIV + 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2997
SELECT + ( + - 95 ) / + 48 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + - 67 * NULLIF ( + COUNT( * ), 51 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + - 67 * NULLIF ( + COUNT ( * ), 51 ) AS col1
----
-67

query I rowsort
SELECT ALL - 5 + + 32
----
27

query I rowsort
SELECT DISTINCT + 47 * NULLIF ( 28, 19 + + 93 )
----
1316

query I rowsort
SELECT + 92 * 61 AS col2
----
5612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT + + 63 * + CASE 52 WHEN + 18 THEN NULL WHEN CAST( - 83 AS SIGNED ) * + CAST( NULL AS SIGNED ) + + 15 THEN 95 - - 33 * 96 ELSE NULL END + - 96 * - MAX( + 53 * - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT + + 63 * + CASE 52 WHEN + 18 THEN NULL WHEN CAST ( - 83 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 15 THEN 95 - - 33 * 96 ELSE NULL END + - 96 * - MAX ( + 53 * - 18 )
----
NULL

query I rowsort
SELECT DISTINCT - 55 + - 45 AS col1
----
-100

query I rowsort
SELECT 68 * + 21 col0
----
1428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT DISTINCT ( - - CASE 57 WHEN COUNT( * ) / 14 THEN 49 WHEN 71 * NULLIF ( NULLIF ( - 80, COUNT( 94 ) ), + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 37 THEN + 65 * - 90 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT ( - - CASE 57 WHEN COUNT ( * ) / 14 THEN 49 WHEN 71 * NULLIF ( NULLIF ( - 80, COUNT ( 94 ) ), + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 37 THEN + 65 * - 90 ELSE NULL END ) col1
----
NULL

query I rowsort
SELECT ALL ( - 28 ) + 44 * - 97
----
-4296

query I rowsort
SELECT 75 + + 53 AS col0
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT - COALESCE ( - + CAST( NULL AS SIGNED ), + 99, 23, CASE 31 WHEN COUNT( * ) THEN - 89 WHEN - MAX( DISTINCT ( + 40 ) ) THEN NULL END ) * 89
----
-8811

skipif mysql # not compatible
query I rowsort label-3008
SELECT - COALESCE ( - + CAST ( NULL AS INTEGER ), + 99, 23, CASE 31 WHEN COUNT ( * ) THEN - 89 WHEN - MAX ( DISTINCT ( + 40 ) ) THEN NULL END ) * 89
----
-8811

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT ALL - 62 + + - 24 DIV - 37 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - 62 + + - 24 / - 37 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT 99 * CAST( NULL AS SIGNED ) / + 84 + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT 99 * CAST ( NULL AS INTEGER ) / + 84 + 77 AS col2
----
NULL

query I rowsort
SELECT + ( + 76 ) - 69 AS col0
----
7

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

query I rowsort
SELECT ALL - COALESCE ( 79, 20, 92 ) AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3014
SELECT DISTINCT COALESCE ( - + COUNT( * ), + CAST( + CASE + CAST( NULL AS SIGNED ) WHEN + 50 * - CAST( NULL AS DECIMAL ) THEN + 16 WHEN SUM( DISTINCT - 44 ) THEN 29 + 18 END AS SIGNED ) ) * 16
----
-16

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT COALESCE ( - + COUNT ( * ), + CAST ( + CASE + CAST ( NULL AS INTEGER ) WHEN + 50 * - CAST ( NULL AS REAL ) THEN + 16 WHEN SUM ( DISTINCT - 44 ) THEN 29 + 18 END AS INTEGER ) ) * 16
----
-16

query I rowsort
SELECT 39 + 24 AS col0
----
63

query I rowsort
SELECT ALL ( - NULLIF ( - - 81, 57 + 90 ) ) * 75 AS col0
----
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-3017
SELECT ( 89 ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT ( 89 ) / + 97
----
0

query I rowsort
SELECT DISTINCT 43 col2
----
43

query I rowsort
SELECT DISTINCT 81 * 65
----
5265

onlyif mysql # aggregate syntax: 
query II rowsort label-3020
SELECT ALL 96 AS col2, SUM( - NULLIF ( + 64, + 89 * 72 - 79 * - 12 ) ) * 50 AS col1
----
96
-3200

skipif mysql # not compatible
query II rowsort label-3020
SELECT ALL 96 AS col2, SUM ( - NULLIF ( + 64, + 89 * 72 - 79 * - 12 ) ) * 50 AS col1
----
96
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT DISTINCT - 24 DIV - 55 col0
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT - 24 / - 55 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT 48 DIV + 12 col0
----
4

skipif mysql # not compatible
query I rowsort label-3022
SELECT 48 / + 12 col0
----
4

query I rowsort
SELECT 19 * - + 0 * 51 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT - 21 AS col1
----
-21

query I rowsort
SELECT ALL + 35 * + - 61 AS col2
----
-2135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT DISTINCT + 2 * 62 + - + 83 + 83 DIV + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + 2 * 62 + - + 83 + 83 / + COUNT ( * )
----
124

query I rowsort
SELECT ALL - 19 * + + 75 + + 52 AS col0
----
-1373

query II rowsort
SELECT DISTINCT - 13 AS col1, 27 AS col2
----
-13
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + COUNT( * ) * + 23 * - 58 + - COUNT( * ) AS col1
----
-1335

skipif mysql # not compatible
query I rowsort label-3030
SELECT + COUNT ( * ) * + 23 * - 58 + - COUNT ( * ) AS col1
----
-1335

query I rowsort
SELECT ( - 23 ) + + + ( 60 ) AS col1
----
37

query I rowsort
SELECT ALL + 17 * - 87
----
-1479

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

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

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

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

query I rowsort
SELECT 80 * + 3
----
240

query I rowsort
SELECT + + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT MAX( - COALESCE ( - 71, 77 ) )
----
71

skipif mysql # not compatible
query I rowsort label-3037
SELECT MAX ( - COALESCE ( - 71, 77 ) )
----
71

query I rowsort
SELECT DISTINCT + 51 + - - 54 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3039
SELECT ALL - + MAX( + 89 ) + + 30 + ( CAST( - 68 AS SIGNED ) + 10 * + 5 ) * + 21
----
-437

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL - + MAX ( + 89 ) + + 30 + ( CAST ( - 68 AS INTEGER ) + 10 * + 5 ) * + 21
----
-437

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

skipif mysql # not compatible
query I rowsort label-3040
SELECT COUNT ( * ) + + 58 AS col2
----
59

query I rowsort
SELECT - + 71 * + 84 * 36 AS col2
----
-214704

query I rowsort
SELECT - - 13 + 12 * + 24 * 46 AS col0
----
13261

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

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

query I rowsort
SELECT ALL - - 48 + + 10 + 41 + + 95 * 75
----
7224

query I rowsort
SELECT ALL + - 85 + + 7 AS col0
----
-78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT ALL - - 72 * + 23 / CAST( 57 AS SIGNED ) + - NULLIF ( COUNT( ALL - 70 ), COUNT( * ) ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL - - 72 * + 23 / CAST ( 57 AS INTEGER ) + - NULLIF ( COUNT ( ALL - 70 ), COUNT ( * ) ) * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT + SUM( DISTINCT + ( - 95 ) ) + 17
----
-78

skipif mysql # not compatible
query I rowsort label-3048
SELECT + SUM ( DISTINCT + ( - 95 ) ) + 17
----
-78

query I rowsort
SELECT DISTINCT COALESCE ( - + 79, 80 ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), - - 65, CAST( - 48 AS SIGNED ) + 33 )
----
65

skipif mysql # not compatible
query I rowsort label-3050
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), - - 65, CAST ( - 48 AS INTEGER ) + 33 )
----
65

query I rowsort
SELECT - 82 - 88 + + + 77 col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT - COUNT( 43 ) - - 7 - + 32
----
-26

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - COUNT ( 43 ) - - 7 - + 32
----
-26

query I rowsort
SELECT ALL + 10 * - + 43
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + 17 + - CASE - 96 WHEN + NULLIF ( + 45, 7 / 93 ) THEN NULL WHEN + COUNT( * ) THEN + 64 + COUNT( * ) END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT + 17 + - CASE - 96 WHEN + NULLIF ( + 45, 7 / 93 ) THEN NULL WHEN + COUNT ( * ) THEN + 64 + COUNT ( * ) END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 25 ) col2
----
25

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT + COUNT( * ) * 34, - 58 AS col0
----
34
-58

skipif mysql # not compatible
query II rowsort label-3057
SELECT + COUNT ( * ) * 34, - 58 AS col0
----
34
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + NULLIF ( + + 61, 77 * - 16 ) - + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3059
SELECT + NULLIF ( + + 61, 77 * - 16 ) - + COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - NULLIF ( + - COUNT( * ), - + 66 * 35 )
----
1

skipif mysql # not compatible
query I rowsort label-3060
SELECT - NULLIF ( + - COUNT ( * ), - + 66 * 35 )
----
1

query I rowsort
SELECT - 98 + 26
----
-72

query I rowsort
SELECT ALL 69 * - 55 * + 51
----
-193545

query I rowsort
SELECT + 80 * - 59
----
-4720

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT ALL 86 * 71 DIV - + 1
----
-6106

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL 86 * 71 / - + 1
----
-6106

query I rowsort
SELECT + 92 + + 57 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - MAX( ALL 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-3066
SELECT - MAX ( ALL 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT + 68 + + - MAX( ALL + 33 ) + + 13 * - 56
----
-693

skipif mysql # not compatible
query I rowsort label-3067
SELECT + 68 + + - MAX ( ALL + 33 ) + + 13 * - 56
----
-693

query I rowsort
SELECT ALL 33 * 5 AS col2
----
165

query I rowsort
SELECT DISTINCT + 58 * ( - 63 ) + + 90
----
-3564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT ALL - CAST( + - 70 AS SIGNED ) * + - 89 + + 91 AS col0
----
-6139

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - CAST ( + - 70 AS INTEGER ) * + - 89 + + 91 AS col0
----
-6139

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

query I rowsort
SELECT ( - + 62 ) * + 80 + 38 AS col0
----
-4922

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3074
SELECT ALL CAST( NULL AS DECIMAL ) * + + 10 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL CAST ( NULL AS REAL ) * + + 10 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT + CASE + - 34 WHEN - CAST( - + 80 AS SIGNED ) * + 11 THEN + 40 WHEN AVG ( + 56 ) * + 76 THEN 62 END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT + CASE + - 34 WHEN - CAST ( - + 80 AS INTEGER ) * + 11 THEN + 40 WHEN AVG ( + 56 ) * + 76 THEN 62 END * 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT + 21 * + 65 + + + CAST( + 27 AS SIGNED ) col1
----
1392

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 21 * + 65 + + + CAST ( + 27 AS INTEGER ) col1
----
1392

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT DISTINCT 5 DIV - 77 * 13
----
0

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT 5 / - 77 * 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT + 74 DIV 81 * + - 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT + 74 / 81 * + - 26 AS col2
----
0

query I rowsort
SELECT - 44 + + 47
----
3

query I rowsort
SELECT ALL - 90 * 56 * - 23 + - 38 AS col2
----
115882

query I rowsort
SELECT ALL 37 * - 15 + 89 + - 21 * 6 AS col2
----
-592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3082
SELECT + - CAST( NULL AS SIGNED ) * + 48 AS col0, + 40 * - 88
----
NULL
-3520

skipif mysql # not compatible
query II rowsort label-3082
SELECT + - CAST ( NULL AS INTEGER ) * + 48 AS col0, + 40 * - 88
----
NULL
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT - 11 * - + ( CASE CASE + 13 WHEN + 27 * 78 THEN - 91 + - 29 WHEN 60 THEN + 1 * 72 END WHEN 3 * - COUNT( * ) THEN NULL WHEN 58 THEN NULL WHEN - 83 / - 0 THEN NULL ELSE 88 END ) * COUNT( * ) - 60
----
908

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - 11 * - + ( CASE CASE + 13 WHEN + 27 * 78 THEN - 91 + - 29 WHEN 60 THEN + 1 * 72 END WHEN 3 * - COUNT ( * ) THEN NULL WHEN 58 THEN NULL WHEN - 83 / - 0 THEN NULL ELSE 88 END ) * COUNT ( * ) - 60
----
908

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - CASE + 86 WHEN - 55 + - COUNT( 3 ) * 98 THEN - 56 - - COUNT( * ) * ( ( MIN( ALL + 76 ) ) ) ELSE 1 END * - 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3084
SELECT - CASE + 86 WHEN - 55 + - COUNT ( 3 ) * 98 THEN - 56 - - COUNT ( * ) * ( ( MIN ( ALL + 76 ) ) ) ELSE 1 END * - 93 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT + + CAST( + 77 AS SIGNED ) * NULLIF ( - 81, 49 ) + + 18 AS col2
----
-6219

skipif mysql # not compatible
query I rowsort label-3085
SELECT + + CAST ( + 77 AS INTEGER ) * NULLIF ( - 81, 49 ) + + 18 AS col2
----
-6219

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

query I rowsort
SELECT DISTINCT + + 39 AS col1
----
39

query I rowsort
SELECT ALL + 60 * - - 21 - 62 - - ( - 14 ) AS col2
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - - COUNT( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-3089
SELECT - - COUNT ( - 46 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT - + 40 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT - + 40 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL ( NULLIF ( + + 35, + 6 + - COUNT( * ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL ( NULLIF ( + + 35, + 6 + - COUNT ( * ) ) )
----
35

query I rowsort
SELECT - 58 + 0
----
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 95 * + 24 * + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 95 * + 24 * + + 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - 22 * - MAX( DISTINCT + 22 )
----
484

skipif mysql # not compatible
query I rowsort label-3096
SELECT - 22 * - MAX ( DISTINCT + 22 )
----
484

query I rowsort
SELECT - 81 + - + 88 AS col1
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT - 75 DIV + + 2 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3098
SELECT - 75 / + + 2 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL CAST( + SUM( - 54 ) AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL CAST ( + SUM ( - 54 ) AS INTEGER ) AS col0
----
-54

query I rowsort
SELECT + 57 * + - 17
----
-969

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

skipif mysql # not compatible
query I rowsort label-3101
SELECT - MIN ( + + 5 )
----
-5

query I rowsort
SELECT ALL ( 2 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL 39 + + ( 46 ) + + ( CASE - 74 WHEN + ( + COUNT( * ) ) / + ( 0 - - 28 ) - 92 THEN - 53 * 55 END ) + 48 / + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 39 + + ( 46 ) + + ( CASE - 74 WHEN + ( + COUNT ( * ) ) / + ( 0 - - 28 ) - 92 THEN - 53 * 55 END ) + 48 / + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL + NULLIF ( 21, + ( + COUNT( * ) ) ) + + 26
----
47

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + NULLIF ( 21, + ( + COUNT ( * ) ) ) + + 26
----
47

query II rowsort
SELECT ALL - 44 + - 90 + - 39, + 22 AS col0
----
-173
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + 89 + + 18 * + 68 + 32 + COUNT( * )
----
1346

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + 89 + + 18 * + 68 + 32 + COUNT ( * )
----
1346

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

query I rowsort
SELECT - 85 * - + 78
----
6630

query I rowsort
SELECT + 91 * 77 AS col2
----
7007

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ALL + 36 DIV + - 82 + + + 35
----
35

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 36 / + - 82 + + + 35
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3112
SELECT + 77 DIV + + ( COUNT( * ) ) * - - COUNT( - + ( + 0 ) ) - 32 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3112
SELECT + 77 / + + ( COUNT ( * ) ) * - - COUNT ( - + ( + 0 ) ) - 32 AS col1
----
45

query I rowsort
SELECT ( - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT + 54 AS col0, + MIN( 20 ) * + 87 * + 58 AS col0
----
54
100920

skipif mysql # not compatible
query II rowsort label-3114
SELECT + 54 AS col0, + MIN ( 20 ) * + 87 * + 58 AS col0
----
54
100920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT CAST( - MIN( ALL + 96 ) AS SIGNED ) - - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( - MIN ( ALL + 96 ) AS INTEGER ) - - 96 AS col2
----
0

query I rowsort
SELECT ALL - + 55 AS col2
----
-55

query I rowsort
SELECT DISTINCT 60 * - 66 AS col0
----
-3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT DISTINCT - NULLIF ( + 65, + 78 * + - CAST( - 55 AS SIGNED ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT - NULLIF ( + 65, + 78 * + - CAST ( - 55 AS INTEGER ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT 73 * 13 - + 4 * ( + COUNT( DISTINCT ( 56 ) ) ) AS col0
----
945

skipif mysql # not compatible
query I rowsort label-3119
SELECT 73 * 13 - + 4 * ( + COUNT ( DISTINCT ( 56 ) ) ) AS col0
----
945

query I rowsort
SELECT ALL - + 87 AS col0
----
-87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + 22 * - 42 + + 80 + - COALESCE ( 78, 23 + COUNT( * ) )
----
-922

skipif mysql # not compatible
query I rowsort label-3122
SELECT + 22 * - 42 + + 80 + - COALESCE ( 78, 23 + COUNT ( * ) )
----
-922

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT + 44 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT + 44 / - 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3124
SELECT 42 * - + 58 * + 95 AS col0, - 3 + CAST( 99 AS SIGNED ) AS col2
----
-231420
96

skipif mysql # not compatible
query II rowsort label-3124
SELECT 42 * - + 58 * + 95 AS col0, - 3 + CAST ( 99 AS INTEGER ) AS col2
----
-231420
96

query I rowsort
SELECT ALL - + 71 AS col0
----
-71

query I rowsort
SELECT + 11 + 68 AS col2
----
79

query I rowsort
SELECT COALESCE ( + 76, + 51 + - + 13 * + 94, 21 + 83 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT ALL - - COUNT( - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - - COUNT ( - 55 ) AS col1
----
1

query I rowsort
SELECT 22 * 17 * - 12
----
-4488

query I rowsort
SELECT DISTINCT 58 * + - 96
----
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT ALL - CAST( NULL AS SIGNED ) * - ( + ( - 68 ) ) * + 8 * + 35 * + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( + ( - 68 ) ) * + 8 * + 35 * + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT 57 + + 88 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT 57 + + 88 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3133
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 39 * SUM( 73 ), NULLIF ( - - 77, ( + CASE + NULLIF ( + 80, COALESCE ( 62, 2 / 39, COUNT( * ) ) - 66 ) WHEN 82 THEN - 26 * NULLIF ( - 53, ( 63 ) * 6 ) ELSE NULL END ) ) AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3133
SELECT DISTINCT CAST ( NULL AS REAL ) + - 39 * SUM ( 73 ), NULLIF ( - - 77, ( + CASE + NULLIF ( + 80, COALESCE ( 62, 2 / 39, COUNT ( * ) ) - 66 ) WHEN 82 THEN - 26 * NULLIF ( - 53, ( 63 ) * 6 ) ELSE NULL END ) ) AS col0
----
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT DISTINCT + 2 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT + 2 / + 28
----
0

query I rowsort
SELECT DISTINCT + 93 + + 72
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT 63 DIV - 30 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3136
SELECT 63 / - 30 AS col0
----
-2

query I rowsort
SELECT ALL + 76 + - 39 * + 40 AS col2
----
-1484

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT DISTINCT + 3 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT + 3 / - 58
----
0

query II rowsort
SELECT ALL - 48 + 74 AS col2, 56 AS col1
----
26
56

query I rowsort
SELECT 44 + - 83 AS col0
----
-39

query I rowsort
SELECT 82 * - + 69
----
-5658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3142
SELECT ALL + 85 * + - 26, CAST( - COUNT( * ) AS SIGNED ) - - 34 + + 11 + 45 col1
----
-2210
89

skipif mysql # not compatible
query II rowsort label-3142
SELECT ALL + 85 * + - 26, CAST ( - COUNT ( * ) AS INTEGER ) - - 34 + + 11 + 45 col1
----
-2210
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT COUNT( 23 ) - - + MAX( ALL + - 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-3143
SELECT COUNT ( 23 ) - - + MAX ( ALL + - 40 )
----
-39

query I rowsort
SELECT ALL + 76 + + 9
----
85

query II rowsort
SELECT 17, + 54 AS col2
----
17
54

query I rowsort
SELECT ALL - 13 + ( + 68 ) + 79 * - 86 AS col0
----
-6739

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT 69 + + COUNT( * ) * 39
----
108

skipif mysql # not compatible
query I rowsort label-3147
SELECT 69 + + COUNT ( * ) * 39
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT DISTINCT - 60 AS col0, COUNT( * ) + 85 + + - 53
----
-60
33

skipif mysql # not compatible
query II rowsort label-3148
SELECT DISTINCT - 60 AS col0, COUNT ( * ) + 85 + + - 53
----
-60
33

query I rowsort
SELECT DISTINCT - 28 - - 81 + - 27 * ( + 62 ) * - 0 - 6
----
47

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

query I rowsort
SELECT DISTINCT + 47 - + 37 + - - 51 AS col2
----
61

query I rowsort
SELECT DISTINCT - - 53
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + COUNT( * ) - - + SUM( DISTINCT - - 87 ) + + MIN( DISTINCT + 45 ) * - - 30 * COUNT( - 17 * 76 ) * 61 AS col1
----
82438

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + COUNT ( * ) - - + SUM ( DISTINCT - - 87 ) + + MIN ( DISTINCT + 45 ) * - - 30 * COUNT ( - 17 * 76 ) * 61 AS col1
----
82438

query I rowsort
SELECT DISTINCT - ( 76 ) AS col0
----
-76

query II rowsort
SELECT ALL - + 76, - 73 AS col1
----
-76
-73

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

query I rowsort
SELECT ALL ( + - ( - 27 ) ) - - - 86 AS col0
----
-59

query II rowsort
SELECT 37 * + 92 + + 48 * + 63, 12 AS col2
----
6428
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + 42 + 71 + + 9 * + 6 / CASE - 44 WHEN + 41 * + ( 65 ) THEN 75 END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 42 + 71 + + 9 * + 6 / CASE - 44 WHEN + 41 * + ( 65 ) THEN 75 END * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3161
SELECT ALL 12 * + - 50, - COUNT( DISTINCT + - COALESCE ( - 16, - 40, - 12 ) ) AS col2
----
-600
-1

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL 12 * + - 50, - COUNT ( DISTINCT + - COALESCE ( - 16, - 40, - 12 ) ) AS col2
----
-600
-1

query I rowsort
SELECT - 51 * + + 8 col1
----
-408

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

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

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

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

query I rowsort
SELECT ALL - - 34 AS col0
----
34

query II rowsort
SELECT DISTINCT - 88 AS col1, 21 * - 11 col0
----
-88
-231

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

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

skipif mysql # not compatible
query I rowsort label-3168
SELECT + ( + 78 ) / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - + 61, 66 AS col0
----
-61
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT ALL - + COUNT( * ), + 25 + + 99 AS col1
----
-1
124

skipif mysql # not compatible
query II rowsort label-3170
SELECT ALL - + COUNT ( * ), + 25 + + 99 AS col1
----
-1
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT COALESCE ( + COUNT( * ), + CAST( + + 5 AS SIGNED ) ) + 95 + + 47 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-3171
SELECT COALESCE ( + COUNT ( * ), + CAST ( + + 5 AS INTEGER ) ) + 95 + + 47 AS col0
----
143

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3173
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 17 AS col1, 55 * ( - - 37 ) AS col0
----
NULL
2035

skipif mysql # not compatible
query II rowsort label-3173
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 17 AS col1, 55 * ( - - 37 ) AS col0
----
NULL
2035

query I rowsort
SELECT ALL - 93 col1
----
-93

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

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

query I rowsort
SELECT 67 * 95 * 26
----
165490

query II rowsort
SELECT ALL 46 + - + 87 col1, + 44 AS col1
----
-41
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL ( + - 32 ) DIV 77 * + - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL ( + - 32 ) / 77 * + - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL 63 + + - COUNT( * ) + + + 69 * + - 47 * CASE ( - SUM( ALL - CASE 35 WHEN 16 + + 3 THEN + 18 - - 24 ELSE NULL END ) ) WHEN 75 THEN 63 - 37 * + 98 WHEN 4 THEN NULL ELSE NULL END + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL 63 + + - COUNT ( * ) + + + 69 * + - 47 * CASE ( - SUM ( ALL - CASE 35 WHEN 16 + + 3 THEN + 18 - - 24 ELSE NULL END ) ) WHEN 75 THEN 63 - 37 * + 98 WHEN 4 THEN NULL ELSE NULL END + 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT DISTINCT CAST( + CAST( - 58 AS SIGNED ) AS SIGNED ) + - - 86 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT CAST ( + CAST ( - 58 AS INTEGER ) AS INTEGER ) + - - 86 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL 39 * COALESCE ( - 92, - 59 * 17 + - COUNT( * ) ) * 31 AS col1
----
-111228

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL 39 * COALESCE ( - 92, - 59 * 17 + - COUNT ( * ) ) * 31 AS col1
----
-111228

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL CASE - 52 WHEN + 64 THEN - 94 / COUNT( ALL 21 ) END + 13 * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL CASE - 52 WHEN + 64 THEN - 94 / COUNT ( ALL 21 ) END + 13 * 36 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 + 70 - + 28 + 60 AS col0
----
95

query I rowsort
SELECT DISTINCT 51 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL MAX( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL MAX ( DISTINCT + 7 )
----
7

query I rowsort
SELECT ALL 3 * - 12
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT COUNT( * ) * CASE - 39 WHEN - 36 THEN - AVG ( 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT COUNT ( * ) * CASE - 39 WHEN - 36 THEN - AVG ( 77 ) END
----
NULL

query I rowsort
SELECT 79 + - 4 AS col2
----
75

query I rowsort
SELECT DISTINCT 38 * + + 24 AS col1
----
912

query II rowsort
SELECT ALL 97 + + 31 col0, 5
----
128
5

query II rowsort
SELECT 98 + 54 col1, - 15 * + 56
----
152
-840

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

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

query I rowsort
SELECT ALL 61 - - + 43 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT ALL + CAST( NULL AS SIGNED ) / - 85 / + - 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + CAST ( NULL AS INTEGER ) / - 85 / + - 65 col2
----
NULL

query I rowsort
SELECT DISTINCT - 5 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - COUNT( DISTINCT + 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3196
SELECT - COUNT ( DISTINCT + 59 ) AS col0
----
-1

query I rowsort
SELECT ALL + 85 * + - 83 * + 0
----
0

query I rowsort
SELECT - - 80 * - 64 col0
----
-5120

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT ALL + + COALESCE ( + 98, + ( ( + 63 ) ), + 63 * 50 + - 81 ) DIV 24
----
4

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + + COALESCE ( + 98, + ( ( + 63 ) ), + 63 * 50 + - 81 ) / 24
----
4

query I rowsort
SELECT + + 69 - - 88 + 79
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - SUM( - 26 ) * 47 * - + 69 * + COUNT( * )
----
-84318

skipif mysql # not compatible
query I rowsort label-3201
SELECT - SUM ( - 26 ) * 47 * - + 69 * + COUNT ( * )
----
-84318

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

skipif mysql # not compatible
query I rowsort label-3202
SELECT - COUNT ( * ) * 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT - 30 DIV + COUNT( * ) - + 25 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 30 / + COUNT ( * ) - + 25 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT + - MAX( ALL - CAST( NULL AS SIGNED ) ) / - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) / - 65 AS col2
----
NULL

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

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

query I rowsort
SELECT - - ( + ( + + 93 ) ) - 60 AS col0
----
33

query I rowsort
SELECT ALL + - 34 * - - 47 * + + 92
----
-147016

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + ( - COALESCE ( + 38, - + MAX( ( 13 ) ) ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + ( - COALESCE ( + 38, - + MAX ( ( 13 ) ) ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL + + COUNT( * ) * 50 + - 15 - + - COALESCE ( - - 53, 99 + 95 + - 71, 8 * + 3 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL + + COUNT ( * ) * 50 + - 15 - + - COALESCE ( - - 53, 99 + 95 + - 71, 8 * + 3 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT - - 92 + - - COUNT( * ) + + 88 * - 72
----
-6243

skipif mysql # not compatible
query I rowsort label-3213
SELECT - - 92 + - - COUNT ( * ) + + 88 * - 72
----
-6243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT + 29 - - - COALESCE ( ( COUNT( * ) ), - - 27 DIV + 92 + + 45, + 68 + 42 ) * + 1
----
28

skipif mysql # not compatible
query I rowsort label-3214
SELECT + 29 - - - COALESCE ( ( COUNT ( * ) ), - - 27 / + 92 + + 45, + 68 + 42 ) * + 1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT - + 90 * 57 * + COUNT( * ) * + 34 + - + 89
----
-174509

skipif mysql # not compatible
query I rowsort label-3215
SELECT - + 90 * 57 * + COUNT ( * ) * + 34 + - + 89
----
-174509

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + CASE 60 WHEN + + COUNT( * ) THEN - - 71 * + 99 - + COUNT( 59 ) END - - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT + CASE 60 WHEN + + COUNT ( * ) THEN - - 71 * + 99 - + COUNT ( 59 ) END - - 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT + CASE + MIN( DISTINCT + - 70 ) WHEN 37 + + 14 THEN - ( - + 15 ) * 83 + COUNT( * ) DIV - 73 ELSE + 11 + + 4 END DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT + CASE + MIN ( DISTINCT + - 70 ) WHEN 37 + + 14 THEN - ( - + 15 ) * 83 + COUNT ( * ) / - 73 ELSE + 11 + + 4 END / - 58
----
0

query I rowsort
SELECT DISTINCT 5 * - 43
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL SUM( + 85 ) * NULLIF ( 81, - - MIN( DISTINCT + 27 ) ) + 98 - + 39 + - 94 * 22
----
4876

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL SUM ( + 85 ) * NULLIF ( 81, - - MIN ( DISTINCT + 27 ) ) + 98 - + 39 + - 94 * 22
----
4876

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - COUNT( * ) + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3220
SELECT - COUNT ( * ) + 43 AS col0
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT + 4 + COUNT( * ) - 71 * + NULLIF ( + COUNT( * ), - 64 + - + 85 - + 87 * 93 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3222
SELECT + 4 + COUNT ( * ) - 71 * + NULLIF ( + COUNT ( * ), - 64 + - + 85 - + 87 * 93 ) AS col1
----
-66

query I rowsort
SELECT DISTINCT + ( + 55 ) * - ( - 98 )
----
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL CASE + + 7 WHEN + ( + 47 ) THEN + SUM( + 34 ) - + COUNT( * ) * - 60 WHEN 0 THEN NULL WHEN 71 THEN NULL WHEN - 94 * 78 THEN - 68 END * 29 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL CASE + + 7 WHEN + ( + 47 ) THEN + SUM ( + 34 ) - + COUNT ( * ) * - 60 WHEN 0 THEN NULL WHEN 71 THEN NULL WHEN - 94 * 78 THEN - 68 END * 29 + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT 48 * + NULLIF ( - - COUNT( 43 ), AVG ( ALL - 61 ) ) * + 83 + - 87
----
3897

skipif mysql # not compatible
query I rowsort label-3225
SELECT 48 * + NULLIF ( - - COUNT ( 43 ), AVG ( ALL - 61 ) ) * + 83 + - 87
----
3897

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT COUNT( * ) AS col2, 11 * + 53
----
1
583

skipif mysql # not compatible
query II rowsort label-3226
SELECT COUNT ( * ) AS col2, 11 * + 53
----
1
583

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

query I rowsort
SELECT DISTINCT 97 - - 34
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3229
SELECT ALL 56 / - - ( CAST( NULL AS SIGNED ) ) col2, - 70 + + 49 AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3229
SELECT ALL 56 / - - ( CAST ( NULL AS INTEGER ) ) col2, - 70 + + 49 AS col0
----
NULL
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3230
SELECT + 62 * CAST( 24 AS SIGNED ) col2, + 57
----
1488
57

skipif mysql # not compatible
query II rowsort label-3230
SELECT + 62 * CAST ( 24 AS INTEGER ) col2, + 57
----
1488
57

query II rowsort
SELECT ALL 67, - 39 col2
----
67
-39

query I rowsort
SELECT DISTINCT 61 - - 40
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT 44 - NULLIF ( - 79, CASE + 3 WHEN + - 20 + + 90 THEN - ( COUNT( * ) ) * - 33 END ) - + 79 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT 44 - NULLIF ( - 79, CASE + 3 WHEN + - 20 + + 90 THEN - ( COUNT ( * ) ) * - 33 END ) - + 79 AS col0
----
44

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

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

query II rowsort
SELECT - 45, + 30 * - + 89 AS col2
----
-45
-2670

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT + 14 + - 34 DIV + 14 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3236
SELECT + 14 + - 34 / + 14 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT + 83 - + - 75 + 33 / - + 92 * + 33 / + 57 * - + CASE 23 WHEN 49 * + 56 - 49 * - 40 THEN NULL WHEN - 85 * - 91 THEN - 32 END + + 84 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 83 - + - 75 + 33 / - + 92 * + 33 / + 57 * - + CASE 23 WHEN 49 * + 56 - 49 * - 40 THEN NULL WHEN - 85 * - 91 THEN - 32 END + + 84 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 40 AS col2, - 8 AS col1
----
40
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + 27 + - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3239
SELECT + 27 + - + COUNT ( * )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT + - 6 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3240
SELECT + - 6 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT + + 32 + - - 77 DIV - + 20 + + COUNT( * ) + + 27 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3241
SELECT + + 32 + - - 77 / - + 20 + + COUNT ( * ) + + 27 AS col0
----
57

query I rowsort
SELECT + 54 * - - 55
----
2970

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT ALL 91, - COUNT( * ) + - + 32 AS col0
----
91
-33

skipif mysql # not compatible
query II rowsort label-3243
SELECT ALL 91, - COUNT ( * ) + - + 32 AS col0
----
91
-33

query II rowsort
SELECT ALL COALESCE ( - - 83, - - 45 ) AS col1, + 25 + + - 86 AS col1
----
83
-61

query I rowsort
SELECT ALL + - ( - - 38 )
----
-38

query II rowsort
SELECT + 86, - 99 AS col0
----
86
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3247
SELECT ALL - - 69 / 10 + - NULLIF ( - 67, - 96 / + SUM( - 27 ) ) + CAST( NULL AS SIGNED ) + - 40 * - 52 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - - 69 / 10 + - NULLIF ( - 67, - 96 / + SUM ( - 27 ) ) + CAST ( NULL AS INTEGER ) + - 40 * - 52 + 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3248
SELECT 28, + CAST( + ( 43 ) AS SIGNED ) + 36 AS col1
----
28
79

skipif mysql # not compatible
query II rowsort label-3248
SELECT 28, + CAST ( + ( 43 ) AS INTEGER ) + 36 AS col1
----
28
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT - + 32 * - 27 + 11 + - + 42 * - COUNT( * )
----
917

skipif mysql # not compatible
query I rowsort label-3249
SELECT - + 32 * - 27 + 11 + - + 42 * - COUNT ( * )
----
917

query I rowsort
SELECT + - 76
----
-76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT + 57 DIV 23 * - 94 * - COUNT( DISTINCT + + 87 ) AS col0
----
188

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 57 / 23 * - 94 * - COUNT ( DISTINCT + + 87 ) AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT 41 / - 21 * - 13 + 91 + - + NULLIF ( - CASE - 86 WHEN - 38 THEN NULL WHEN 56 THEN + 34 WHEN 60 THEN NULL ELSE NULL END, MIN( + 55 ) ) * COALESCE ( - 94, + 46 ) + - 34 * - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT 41 / - 21 * - 13 + 91 + - + NULLIF ( - CASE - 86 WHEN - 38 THEN NULL WHEN 56 THEN + 34 WHEN 60 THEN NULL ELSE NULL END, MIN ( + 55 ) ) * COALESCE ( - 94, + 46 ) + - 34 * - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT MIN( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-3254
SELECT MIN ( DISTINCT + 5 )
----
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT ALL 65 DIV 89 * COALESCE ( - 43, 2 + 56 + + AVG ( ALL - + 29 ) * - 88 - 10 * - 57 DIV 15 ) DIV + 48 + + 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL 65 / 89 * COALESCE ( - 43, 2 + 56 + + AVG ( ALL - + 29 ) * - 88 - 10 * - 57 / 15 ) / + 48 + + 78 AS col1
----
78

query I rowsort
SELECT - 28 * 34 * + 23 * - 45
----
985320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3258
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 4 * + + 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 4 * + + 30 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - COALESCE ( 40, 13 - - 64, + COALESCE ( + COUNT( * ), 25 * 86 + - + 90 * - 80 ) ) * 70
----
-2800

skipif mysql # not compatible
query I rowsort label-3259
SELECT - COALESCE ( 40, 13 - - 64, + COALESCE ( + COUNT ( * ), 25 * 86 + - + 90 * - 80 ) ) * 70
----
-2800

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

skipif mysql # not compatible
query I rowsort label-3260
SELECT + SUM ( - 95 )
----
-95

query I rowsort
SELECT ALL + ( + - 21 )
----
-21

query I rowsort
SELECT - NULLIF ( - 65, + 1 ) * - + 88 - + - 68 AS col2
----
-5652

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3263
SELECT + 92 + - - 39 AS col1, + 35 DIV + - COALESCE ( + SUM( DISTINCT 81 ), + COUNT( 93 ) ) * - ( COUNT( * ) ) + CASE + 55 + ( 63 ) WHEN 36 + - 4 THEN 17 ELSE - 75 * + 38 + ( - ( 99 ) + - 27 ) * + 60 END AS col2
----
131
-10410

skipif mysql # not compatible
query II rowsort label-3263
SELECT + 92 + - - 39 AS col1, + 35 / + - COALESCE ( + SUM ( DISTINCT 81 ), + COUNT ( 93 ) ) * - ( COUNT ( * ) ) + CASE + 55 + ( 63 ) WHEN 36 + - 4 THEN 17 ELSE - 75 * + 38 + ( - ( 99 ) + - 27 ) * + 60 END AS col2
----
131
-10410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT + CASE + - SUM( - 95 ) WHEN + 63 THEN COALESCE ( - - 72, - CAST( + 56 AS SIGNED ), + - 15 ) * - ( 9 ) WHEN 46 THEN NULL WHEN + 11 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT + CASE + - SUM ( - 95 ) WHEN + 63 THEN COALESCE ( - - 72, - CAST ( + 56 AS INTEGER ), + - 15 ) * - ( 9 ) WHEN 46 THEN NULL WHEN + 11 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 9, 77 )
----
9

query I rowsort
SELECT COALESCE ( - 53, + 34 * + 37 ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT ALL - COALESCE ( + COALESCE ( 15, CAST( NULL AS SIGNED ) + + 68, COUNT( * ) * COUNT( * ) ), + - COUNT( * ) * - + 62 * COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - COALESCE ( + COALESCE ( 15, CAST ( NULL AS INTEGER ) + + 68, COUNT ( * ) * COUNT ( * ) ), + - COUNT ( * ) * - + 62 * COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3268
SELECT DISTINCT + 44 - 90 AS col1, NULLIF ( + + 25, - - 90 + ( - COUNT( * ) ) ) - 89
----
-46
-64

skipif mysql # not compatible
query II rowsort label-3268
SELECT DISTINCT + 44 - 90 AS col1, NULLIF ( + + 25, - - 90 + ( - COUNT ( * ) ) ) - 89
----
-46
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3269
SELECT ALL 50 * + + COUNT( * ) * 29 * 54 * + 69 AS col1, CAST( NULL AS SIGNED ) AS col1
----
5402700
NULL

skipif mysql # not compatible
query II rowsort label-3269
SELECT ALL 50 * + + COUNT ( * ) * 29 * 54 * + 69 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
5402700
NULL

query I rowsort
SELECT 79 + 50
----
129

query I rowsort
SELECT DISTINCT - 72 * - 54 * + + 4 AS col0
----
15552

query II rowsort
SELECT 98 * 41 AS col1, 80 AS col0
----
4018
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - 54 * COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - 54 * COUNT ( * )
----
-54

query I rowsort
SELECT - 74 col0
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT + 12 * + - SUM( ALL + 5 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3276
SELECT + 12 * + - SUM ( ALL + 5 ) AS col0
----
-60

query I rowsort
SELECT + 81 + - - 16 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL COUNT( DISTINCT - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL COUNT ( DISTINCT - 12 ) AS col2
----
1

query I rowsort
SELECT ALL - ( 38 ) + - - 21 + - + 27 AS col0
----
-44

query I rowsort
SELECT - 48 * + + 34 AS col0
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT 87 * - + SUM( DISTINCT + 34 ) AS col2
----
-2958

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT 87 * - + SUM ( DISTINCT + 34 ) AS col2
----
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT DISTINCT - 64 + + CASE WHEN NOT 56 NOT BETWEEN + 2 AND NULL THEN 18 WHEN NOT NULLIF ( + 33, + 33 ) NOT IN ( 32 + 37 ) THEN + COALESCE ( + 3, CAST( NULL AS SIGNED ) - 47, + 94 * 73 + 13 ) * + 53 ELSE - 57 + + 16 END + 57 * 83 col0
----
4626

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT - 64 + + CASE WHEN NOT 56 NOT BETWEEN + 2 AND NULL THEN 18 WHEN NOT NULLIF ( + 33, + 33 ) NOT IN ( 32 + 37 ) THEN + COALESCE ( + 3, CAST ( NULL AS INTEGER ) - 47, + 94 * 73 + 13 ) * + 53 ELSE - 57 + + 16 END + 57 * 83 col0
----
4626

query I rowsort
SELECT ALL 1 * - 49 * - 35
----
1715

query I rowsort
SELECT DISTINCT + 84 + - 50 + 31 + + 27
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT NULLIF ( COUNT( * ), - + 39 / + + NULLIF ( 17, COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3285
SELECT NULLIF ( COUNT ( * ), - + 39 / + + NULLIF ( 17, COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT - 28 + + 23 * - 64 AS col2
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + MIN( ALL - - 56 ) * - 20 * + 36
----
-40320

skipif mysql # not compatible
query I rowsort label-3287
SELECT + MIN ( ALL - - 56 ) * - 20 * + 36
----
-40320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3288
SELECT ALL + 39 * + CAST( + ( - SUM( DISTINCT + 46 ) ) AS SIGNED ) + - ( - 7 ) DIV 96
----
-1794

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + 39 * + CAST ( + ( - SUM ( DISTINCT + 46 ) ) AS INTEGER ) + - ( - 7 ) / 96
----
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3289
SELECT - - CASE + - NULLIF ( - + CAST( + 39 AS SIGNED ), + 34 ) WHEN + 75 THEN COUNT( * ) * + - 46 * + - 94 WHEN - 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT - - CASE + - NULLIF ( - + CAST ( + 39 AS INTEGER ), + 34 ) WHEN + 75 THEN COUNT ( * ) * + - 46 * + - 94 WHEN - 75 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT + ( COALESCE ( - - 82, - 98 * + CAST( + COUNT( * ) AS SIGNED ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-3290
SELECT + ( COALESCE ( - - 82, - 98 * + CAST ( + COUNT ( * ) AS INTEGER ) ) )
----
82

query I rowsort
SELECT DISTINCT - 9 AS col2
----
-9

query I rowsort
SELECT ALL + 90 + + 13 * + 96
----
1338

query I rowsort
SELECT ALL 33 * + 25
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL + 15 + - 76 - - COUNT( * ) + - 28 * - 49
----
1312

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + 15 + - 76 - - COUNT ( * ) + - 28 * - 49
----
1312

query I rowsort
SELECT ( + 13 ) - - 75
----
88

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

query II rowsort
SELECT DISTINCT - 89 AS col1, + 78 AS col1
----
-89
78

query I rowsort
SELECT ALL - 57 * + 69
----
-3933

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT 63 * - 0 DIV - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT 63 * - 0 / - 14 AS col1
----
0

query II rowsort
SELECT DISTINCT - 99, 79 * 1 AS col2
----
-99
79

query I rowsort
SELECT DISTINCT - 48 * - 60
----
2880

query I rowsort
SELECT + 87 col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT 78 AS col2, SUM( - - 76 )
----
78
76

skipif mysql # not compatible
query II rowsort label-3303
SELECT 78 AS col2, SUM ( - - 76 )
----
78
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT COUNT( * ) * 37 * + 64 * - 2 + + 52 - + 77 + - + 34 DIV - CASE - - 96 WHEN - 48 THEN + ( COUNT( * ) ) ELSE + 76 END * 30
----
-4761

skipif mysql # not compatible
query I rowsort label-3304
SELECT COUNT ( * ) * 37 * + 64 * - 2 + + 52 - + 77 + - + 34 / - CASE - - 96 WHEN - 48 THEN + ( COUNT ( * ) ) ELSE + 76 END * 30
----
-4761

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT COUNT( + 49 ) * + + ( + 78 ) * + 97
----
7566

skipif mysql # not compatible
query I rowsort label-3305
SELECT COUNT ( + 49 ) * + + ( + 78 ) * + 97
----
7566

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT + MAX( DISTINCT 73 ) * - 62 + + SUM( - 70 ), 66 * - + 51 * - 49 + - COUNT( * ) AS col1
----
-4596
164933

skipif mysql # not compatible
query II rowsort label-3306
SELECT + MAX ( DISTINCT 73 ) * - 62 + + SUM ( - 70 ), 66 * - + 51 * - 49 + - COUNT ( * ) AS col1
----
-4596
164933

query I rowsort
SELECT DISTINCT - 40 * 56 AS col1
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL + 85 * + CASE - 84 WHEN + COUNT( ALL - + 39 ) THEN 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL + 85 * + CASE - 84 WHEN + COUNT ( ALL - + 39 ) THEN 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT 86 - - CASE - 9 WHEN MIN( DISTINCT - + ( 99 ) ) THEN - 68 * - 19 / - COUNT( ALL 95 ) + 27 + 81 ELSE NULL END + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT 86 - - CASE - 9 WHEN MIN ( DISTINCT - + ( 99 ) ) THEN - 68 * - 19 / - COUNT ( ALL 95 ) + 27 + 81 ELSE NULL END + + 64 AS col0
----
NULL

query I rowsort
SELECT ALL 45 * - 93
----
-4185

query II rowsort
SELECT + 55 AS col1, - 48 AS col0
----
55
-48

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

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

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

query I rowsort
SELECT ALL - 86 * - 6 AS col1
----
516

query I rowsort
SELECT ALL - ( + - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT 7 * + - ( - - COUNT( ALL + 99 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3316
SELECT 7 * + - ( - - COUNT ( ALL + 99 ) )
----
-7

query I rowsort
SELECT 78 + - + 4
----
74

query I rowsort
SELECT - 79 * 89
----
-7031

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT - 45 + - 59 + + COUNT( * ) AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-3320
SELECT - 45 + - 59 + + COUNT ( * ) AS col2
----
-103

query I rowsort
SELECT ALL - + 27 + + 67
----
40

query I rowsort
SELECT DISTINCT 94 + + - 68
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT 67 + - COUNT( * ) * + 69
----
-2

skipif mysql # not compatible
query I rowsort label-3323
SELECT 67 + - COUNT ( * ) * + 69
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + 68 - + + SUM( DISTINCT + 54 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3324
SELECT + 68 - + + SUM ( DISTINCT + 54 ) AS col2
----
14

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL 78 + COUNT( * ) + 98
----
177

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL 78 + COUNT ( * ) + 98
----
177

query I rowsort
SELECT 37 + 70 + 68 + + 87 - 28 * 28 * + 54
----
-42074

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT ALL 49 AS col2, NULLIF ( + + 31, + ( + AVG ( - 3 ) ) ) DIV - - 41 + + 6 + - - 31
----
49
37

skipif mysql # not compatible
query II rowsort label-3329
SELECT ALL 49 AS col2, NULLIF ( + + 31, + ( + AVG ( - 3 ) ) ) / - - 41 + + 6 + - - 31
----
49
37

query I rowsort
SELECT ALL 5 * + 50 - + + 40 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - 75 + - 22 * + 96 * + COUNT( * )
----
-2187

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 75 + - 22 * + 96 * + COUNT ( * )
----
-2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT NULLIF ( CAST( NULL AS SIGNED ), - 81 * COUNT( DISTINCT - + 5 ) ) * + 37 + 71 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - 81 * COUNT ( DISTINCT - + 5 ) ) * + 37 + 71 + + 30
----
NULL

query I rowsort
SELECT ALL - 2 col2
----
-2

query I rowsort
SELECT 37 * + + 91
----
3367

query I rowsort
SELECT 73 * - + 58 AS col2
----
-4234

query I rowsort
SELECT ALL 5 * + 88 * + ( + 99 ) AS col1
----
43560

query I rowsort
SELECT CASE - 7 WHEN - 93 THEN NULL ELSE - + 57 * - 39 END AS col2
----
2223

query II rowsort
SELECT ALL - 18 AS col2, 40
----
-18
40

query II rowsort
SELECT + 87 col0, 81 AS col0
----
87
81

query I rowsort
SELECT + 63 * 6 * + 95
----
35910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT + COUNT( - + CASE + - 81 WHEN ( + + 88 ) THEN NULL ELSE - COALESCE ( + 7, + 76, + 44 + - 10 ) END ) * - 83 + CAST( NULL AS SIGNED ) * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT + COUNT ( - + CASE + - 81 WHEN ( + + 88 ) THEN NULL ELSE - COALESCE ( + 7, + 76, + 44 + - 10 ) END ) * - 83 + CAST ( NULL AS INTEGER ) * 28 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 34 AS col1
----
34

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

skipif mysql # not compatible
query I rowsort label-3343
SELECT + SUM ( - 24 )
----
-24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + SUM( + 23 ) * - NULLIF ( 11, + 91 ) * + + 30 + - + COUNT( * ) - 59
----
-7650

skipif mysql # not compatible
query I rowsort label-3345
SELECT + SUM ( + 23 ) * - NULLIF ( 11, + 91 ) * + + 30 + - + COUNT ( * ) - 59
----
-7650

onlyif mysql # DIV for integer division: 
query II rowsort label-3346
SELECT ALL + 27 AS col2, 41 DIV + - 13
----
27
-3

skipif mysql # not compatible
query II rowsort label-3346
SELECT ALL + 27 AS col2, 41 / + - 13
----
27
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + COALESCE ( 86, + NULLIF ( - COUNT( * ), - COUNT( * ) ), - COUNT( * ) * - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-3347
SELECT + COALESCE ( 86, + NULLIF ( - COUNT ( * ), - COUNT ( * ) ), - COUNT ( * ) * - COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT COUNT( * ) AS col1, COUNT( * ) - + 92 + ( - - 71 ) AS col0
----
1
-20

skipif mysql # not compatible
query II rowsort label-3348
SELECT COUNT ( * ) AS col1, COUNT ( * ) - + 92 + ( - - 71 ) AS col0
----
1
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT COALESCE ( - + CAST( + 88 AS SIGNED ), + - CASE - + ( - 45 ) WHEN + - 40 * - 88 * + + 71 * COUNT( * ) * + 43 THEN 1 WHEN COUNT( * ) THEN NULL END * + COUNT( DISTINCT ( + ( + 69 ) ) ) - + COUNT( * ), 88 * 67 ) * 3 - + COUNT( * ) * 78 AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-3349
SELECT COALESCE ( - + CAST ( + 88 AS INTEGER ), + - CASE - + ( - 45 ) WHEN + - 40 * - 88 * + + 71 * COUNT ( * ) * + 43 THEN 1 WHEN COUNT ( * ) THEN NULL END * + COUNT ( DISTINCT ( + ( + 69 ) ) ) - + COUNT ( * ), 88 * 67 ) * 3 - + COUNT ( * ) * 78 AS col1
----
-342

query I rowsort
SELECT ALL + 52 col0
----
52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT - 79 + 18 + - ( - CASE + - 25 WHEN - MIN( + 54 ) THEN 51 ELSE + 87 DIV - 22 + + 56 END ) + - 53 * + 53 * + NULLIF ( 94, 59 ) AS col2
----
-264054

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 79 + 18 + - ( - CASE + - 25 WHEN - MIN ( + 54 ) THEN 51 ELSE + 87 / - 22 + + 56 END ) + - 53 * + 53 * + NULLIF ( 94, 59 ) AS col2
----
-264054

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT SUM( ALL - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3353
SELECT SUM ( ALL - 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL + 25 + NULLIF ( + + 27, - + COUNT( * ) + + MIN( ALL - CASE - 60 WHEN + - 70 + - ( - + 99 ) - + + 90 THEN NULL WHEN 39 THEN + CASE 16 WHEN 47 + + CAST( NULL AS SIGNED ) THEN 12 ELSE NULL END ELSE NULL END ) ) * + 51 AS col2
----
1402

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + 25 + NULLIF ( + + 27, - + COUNT ( * ) + + MIN ( ALL - CASE - 60 WHEN + - 70 + - ( - + 99 ) - + + 90 THEN NULL WHEN 39 THEN + CASE 16 WHEN 47 + + CAST ( NULL AS INTEGER ) THEN 12 ELSE NULL END ELSE NULL END ) ) * + 51 AS col2
----
1402

onlyif mysql # DIV for integer division: 
query I rowsort label-3355
SELECT - - 69 DIV - COALESCE ( - 14, + 45 * 38 * ( + 88 ) + + - 23 * + + COALESCE ( - 98, 43 * 96, + 41 * AVG ( ALL - 88 DIV 49 ), - ( 79 ) + 73 ) ) + 88 * - 78 AS col2
----
-6860

skipif mysql # not compatible
query I rowsort label-3355
SELECT - - 69 / - COALESCE ( - 14, + 45 * 38 * ( + 88 ) + + - 23 * + + COALESCE ( - 98, 43 * 96, + 41 * AVG ( ALL - 88 / 49 ), - ( 79 ) + 73 ) ) + 88 * - 78 AS col2
----
-6860

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

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL COUNT ( * ) + 19 AS col1
----
20

query I rowsort
SELECT - + NULLIF ( - 26, + 17 ) AS col1
----
26

query I rowsort
SELECT - - 51 AS col1
----
51

query II rowsort
SELECT 79, 15 + + - 95 col1
----
79
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - MIN( ALL + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-3360
SELECT - MIN ( ALL + 16 )
----
-16

query I rowsort
SELECT ALL + 23 + + 65 AS col2
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3362
SELECT - 19 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT - 19 * CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT CASE + 75 WHEN + MAX( DISTINCT 43 ) THEN NULLIF ( - 4, + + 27 * - COUNT( * ) / 61 - - 96 * 77 ) * - 67 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT CASE + 75 WHEN + MAX ( DISTINCT 43 ) THEN NULLIF ( - 4, + + 27 * - COUNT ( * ) / 61 - - 96 * 77 ) * - 67 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 37 * - + ( + 89 ) AS col2
----
3293

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

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + COUNT ( DISTINCT - 33 ) * 72 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT + 29 * + - MAX( + 67 ) AS col0
----
-1943

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + 29 * + - MAX ( + 67 ) AS col0
----
-1943

query I rowsort
SELECT - - 44 AS col2
----
44

query I rowsort
SELECT - + 7 - + + 52 AS col1
----
-59

query I rowsort
SELECT - 70 + + 42 AS col1
----
-28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT - NULLIF ( + 25, MIN( ALL 30 ) * - COALESCE ( + - 9, + - ( - COUNT( * ) ) ) ) * - - COUNT( * ) * CASE 57 WHEN - SUM( CAST( NULL AS SIGNED ) ) + + 80 * - 57 THEN NULL WHEN + 27 + ( + NULLIF ( 62, - COUNT( * ) ) ) THEN NULL ELSE + 88 END
----
-2200

skipif mysql # not compatible
query I rowsort label-3372
SELECT - NULLIF ( + 25, MIN ( ALL 30 ) * - COALESCE ( + - 9, + - ( - COUNT ( * ) ) ) ) * - - COUNT ( * ) * CASE 57 WHEN - SUM ( CAST ( NULL AS INTEGER ) ) + + 80 * - 57 THEN NULL WHEN + 27 + ( + NULLIF ( 62, - COUNT ( * ) ) ) THEN NULL ELSE + 88 END
----
-2200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT ALL CAST( - ( - 10 ) AS SIGNED ) col2
----
10

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL CAST ( - ( - 10 ) AS INTEGER ) col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( 23 AS SIGNED ) * COALESCE ( 92, COUNT( * ), COUNT( * ) ) * + + COUNT( * ) - + 25 * - COUNT( * )
----
2141

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( 23 AS INTEGER ) * COALESCE ( 92, COUNT ( * ), COUNT ( * ) ) * + + COUNT ( * ) - + 25 * - COUNT ( * )
----
2141

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

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

query I rowsort
SELECT ALL COALESCE ( 73, + 73 ) * + 76 * + NULLIF ( 36, - 13 + - 6 ) AS col2
----
199728

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + COALESCE ( + 38, + MIN( ALL 49 ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + COALESCE ( + 38, + MIN ( ALL 49 ) ) AS col1
----
38

query I rowsort
SELECT DISTINCT + 30 AS col1
----
30

query I rowsort
SELECT + NULLIF ( - 38, + 39 / + 50 ) AS col0
----
-38

query I rowsort
SELECT - 80 + 64 * - NULLIF ( - - 89, - 4 * + 55 / - 13 ) + + - 12 - + 33 col0
----
-5821

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT ( COALESCE ( + COALESCE ( 40, + ( + 61 ) DIV + - 97 ), - COUNT( * ) + + 61, 63 ) ) col1
----
40

skipif mysql # not compatible
query I rowsort label-3382
SELECT ( COALESCE ( + COALESCE ( 40, + ( + 61 ) / + - 97 ), - COUNT ( * ) + + 61, 63 ) ) col1
----
40

query I rowsort
SELECT + 1 * + 60 + + ( + 80 ) AS col1
----
140

query I rowsort
SELECT + 62 - - 61 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT - CASE 59 WHEN 16 THEN - 23 + + 47 + + - 23 * + ( - COUNT( * ) ) + - - 84 + + + 72 * + 19 - + ( - 8 ) * + 13 WHEN + 56 * + 77 - COUNT( ALL + 13 ) THEN - AVG ( ALL 27 ) / - 12 END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT - CASE 59 WHEN 16 THEN - 23 + + 47 + + - 23 * + ( - COUNT ( * ) ) + - - 84 + + + 72 * + 19 - + ( - 8 ) * + 13 WHEN + 56 * + 77 - COUNT ( ALL + 13 ) THEN - AVG ( ALL 27 ) / - 12 END * COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 14 * - - 69 + + 97 AS col2
----
1063

query I rowsort
SELECT ALL - 30 * 55 * 55 + 44 * - 20
----
-91630

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL - 81 * - - 15 + - 88 + + + ( CASE + AVG ( DISTINCT + + 67 ) WHEN + + 60 * + - 77 * + 61 + + 88 THEN NULLIF ( + COUNT( * ), + 26 + 30 ) + + 5 WHEN 7 + + SUM( DISTINCT + 69 + 18 ) * - 75 THEN NULL WHEN 14 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - 81 * - - 15 + - 88 + + + ( CASE + AVG ( DISTINCT + + 67 ) WHEN + + 60 * + - 77 * + 61 + + 88 THEN NULLIF ( + COUNT ( * ), + 26 + 30 ) + + 5 WHEN 7 + + SUM ( DISTINCT + 69 + 18 ) * - 75 THEN NULL WHEN 14 THEN NULL END )
----
NULL

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

query I rowsort
SELECT DISTINCT + 42 * + 67 + + + 14 AS col0
----
2828

query I rowsort
SELECT DISTINCT + 6 * - - 89 + 50 + + + ( - 94 ) + + - 67 AS col0
----
423

query I rowsort
SELECT ALL + NULLIF ( - 7, + + 54 * - 84 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT - + 48 * + COUNT( * ) + MAX( - 41 ) * - - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT - + 48 * + COUNT ( * ) + MAX ( - 41 ) * - - COUNT ( * )
----
-89

query I rowsort
SELECT DISTINCT + - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - 55 * + - 71 * + MIN( - + 50 ) * + CASE + - COUNT( * ) WHEN - 76 THEN NULL WHEN - 82 * - + AVG ( - 56 ) / 3 + 15 THEN 48 WHEN + 79 + - 78 THEN NULL END * - ( ( + 49 ) + - 16 ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT - 55 * + - 71 * + MIN ( - + 50 ) * + CASE + - COUNT ( * ) WHEN - 76 THEN NULL WHEN - 82 * - + AVG ( - 56 ) / 3 + 15 THEN 48 WHEN + 79 + - 78 THEN NULL END * - ( ( + 49 ) + - 16 ) + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + CASE - + 52 WHEN + 8 / - 59 * 6 + + + 20 + + - 61 * - - ( + + 17 ) - 67 * - + ( 30 ) THEN COUNT( * ) + COUNT( * ) END + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + CASE - + 52 WHEN + 8 / - 59 * 6 + + + 20 + + - 61 * - - ( + + 17 ) - 67 * - + ( 30 ) THEN COUNT ( * ) + COUNT ( * ) END + + 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3399
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) / - - 60 - 24 * + + 89 AS col1, 14 * - 31 AS col2
----
NULL
-434

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) / - - 60 - 24 * + + 89 AS col1, 14 * - 31 AS col2
----
NULL
-434

query I rowsort
SELECT + - 72 + COALESCE ( + - ( - + 3 ), - 31 )
----
-69

query I rowsort
SELECT + + 13 * - 49 col0
----
-637

query II rowsort
SELECT + + 97 + + 69 col0, - 67
----
166
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3403
SELECT ALL + 91 - ( ( + 17 ) ) + + 18 DIV - + 54 * + CAST( - 57 AS SIGNED ) * 38
----
74

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + 91 - ( ( + 17 ) ) + + 18 / - + 54 * + CAST ( - 57 AS INTEGER ) * 38
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT COUNT( * ) * 32 + + 68
----
100

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT COUNT ( * ) * 32 + + 68
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-3406
SELECT - 66 - 84, 10 DIV 84 * - - 2 AS col2
----
-150
0

skipif mysql # not compatible
query II rowsort label-3406
SELECT - 66 - 84, 10 / 84 * - - 2 AS col2
----
-150
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT - 71 * - 29 col1, 47 + + - CASE 40 WHEN - 81 / - + 30 + 84 THEN 43 * + + MIN( DISTINCT + 63 ) / + 82 + + 94 * - 9 END * + 85 AS col1
----
2059
NULL

skipif mysql # not compatible
query II rowsort label-3407
SELECT - 71 * - 29 col1, 47 + + - CASE 40 WHEN - 81 / - + 30 + 84 THEN 43 * + + MIN ( DISTINCT + 63 ) / + 82 + + 94 * - 9 END * + 85 AS col1
----
2059
NULL

query I rowsort
SELECT + 10 + - 65 * + 72 * - 32
----
149770

query I rowsort
SELECT 66 * 82
----
5412

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3410
SELECT DISTINCT + 26 * + 4 DIV - COUNT( * ) col1, + 58 DIV + + 62
----
-104
0

skipif mysql # not compatible
query II rowsort label-3410
SELECT DISTINCT + 26 * + 4 / - COUNT ( * ) col1, + 58 / + + 62
----
-104
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3411
SELECT 92 + + - 36 DIV - 41 AS col2, + 70 AS col1
----
92
70

skipif mysql # not compatible
query II rowsort label-3411
SELECT 92 + + - 36 / - 41 AS col2, + 70 AS col1
----
92
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT ALL + 99 * NULLIF ( - + 10, + NULLIF ( + + 94, + 28 ) - - MAX( ALL + + ( + 63 ) ) ) AS col0, 13 - + 53 * - 70
----
-990
3723

skipif mysql # not compatible
query II rowsort label-3412
SELECT ALL + 99 * NULLIF ( - + 10, + NULLIF ( + + 94, + 28 ) - - MAX ( ALL + + ( + 63 ) ) ) AS col0, 13 - + 53 * - 70
----
-990
3723

query I rowsort
SELECT DISTINCT + 27 * + 63 AS col0
----
1701

query II rowsort
SELECT + 48 AS col0, - 69 AS col1
----
48
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - 9 + + - 35 + + 91 - - - COUNT( * ) * 5 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - 9 + + - 35 + + 91 - - - COUNT ( * ) * 5 AS col2
----
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT 36 * 79 + - + 94 + + 48 * ( + 98 ) col2, COUNT( * ) + - + COUNT( * ) * + ( 14 )
----
7454
-13

skipif mysql # not compatible
query II rowsort label-3417
SELECT 36 * 79 + - + 94 + + 48 * ( + 98 ) col2, COUNT ( * ) + - + COUNT ( * ) * + ( 14 )
----
7454
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT + 6 AS col1, + ( - - COALESCE ( - 55, - COUNT( * ), - + 96 * 82 ) )
----
6
-55

skipif mysql # not compatible
query II rowsort label-3418
SELECT + 6 AS col1, + ( - - COALESCE ( - 55, - COUNT ( * ), - + 96 * 82 ) )
----
6
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT 23 DIV - + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT 23 / - + 81 AS col0
----
0

query I rowsort
SELECT ALL + 37 + - 71 * - 66
----
4723

query II rowsort
SELECT 26 AS col0, 59
----
26
59

query I rowsort
SELECT ALL - 9 + - + 49
----
-58

query I rowsort
SELECT 7 * - 24
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT ALL 38 DIV - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL 38 / - 56 AS col1
----
0

query I rowsort
SELECT 28 * 24 + + NULLIF ( - 47, 98 * + - 50 )
----
625

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

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

query I rowsort
SELECT - 22 * 9 + 0 AS col1
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3428
SELECT CASE + 37 WHEN + ( + - ( + + COUNT( + + 5 ) ) ) THEN NULL ELSE CAST( + + 58 AS SIGNED ) END DIV ( + COUNT( * ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3428
SELECT CASE + 37 WHEN + ( + - ( + + COUNT ( + + 5 ) ) ) THEN NULL ELSE CAST ( + + 58 AS INTEGER ) END / ( + COUNT ( * ) ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT + + COUNT( * ) AS col2, 19 + + ( - SUM( ALL 79 ) ) + + + 67 AS col0
----
1
7

skipif mysql # not compatible
query II rowsort label-3429
SELECT + + COUNT ( * ) AS col2, 19 + + ( - SUM ( ALL 79 ) ) + + + 67 AS col0
----
1
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT CASE 38 WHEN CASE + CAST( NULL AS SIGNED ) WHEN COALESCE ( - 80, - + 68 + - 26 / - - 93 ) THEN NULL WHEN + 79 THEN 36 ELSE NULL END + ( - - COALESCE ( 50, + ( 20 ) ) ) THEN NULL WHEN ( + ( NULLIF ( 81, 26 ) ) ) THEN - 96 + + COUNT( * ) ELSE NULL END + + 49 * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT CASE 38 WHEN CASE + CAST ( NULL AS INTEGER ) WHEN COALESCE ( - 80, - + 68 + - 26 / - - 93 ) THEN NULL WHEN + 79 THEN 36 ELSE NULL END + ( - - COALESCE ( 50, + ( 20 ) ) ) THEN NULL WHEN ( + ( NULLIF ( 81, 26 ) ) ) THEN - 96 + + COUNT ( * ) ELSE NULL END + + 49 * + 9 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 56 - - 27
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT + - 66 AS col1, 94 / + - CASE + CASE 48 WHEN - 38 THEN NULL WHEN + 32 THEN - 90 * - 92 ELSE NULL END WHEN - + 59 * - 91 + - 80 THEN - MAX( DISTINCT COALESCE ( 57, 53 ) ) WHEN - COUNT( * ) / 75 THEN 41 END * 89 AS col1
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-3432
SELECT + - 66 AS col1, 94 / + - CASE + CASE 48 WHEN - 38 THEN NULL WHEN + 32 THEN - 90 * - 92 ELSE NULL END WHEN - + 59 * - 91 + - 80 THEN - MAX ( DISTINCT COALESCE ( 57, 53 ) ) WHEN - COUNT ( * ) / 75 THEN 41 END * 89 AS col1
----
-66
NULL

query I rowsort
SELECT 87 * + 8 + 61 AS col2
----
757

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3434
SELECT 25 * - + 51 + - CAST( NULL AS SIGNED ) AS col1, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-3434
SELECT 25 * - + 51 + - CAST ( NULL AS INTEGER ) AS col1, - 97
----
NULL
-97

query I rowsort
SELECT ALL - 23 * - + 36 col1
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT COUNT( * ) * - 60 * COUNT( * ) * 74 AS col2
----
-4440

skipif mysql # not compatible
query I rowsort label-3436
SELECT COUNT ( * ) * - 60 * COUNT ( * ) * 74 AS col2
----
-4440

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT - MIN( DISTINCT - - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - MIN ( DISTINCT - - 42 ) AS col2
----
-42

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3440
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0, 12 DIV 99
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3440
SELECT DISTINCT + CAST ( NULL AS REAL ) col0, 12 / 99
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL 67 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 67 / 61
----
1

query I rowsort
SELECT ( - 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COUNT( * ) * - + 16 + + ( - COUNT( ALL - - 44 ) ) + + 73 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COUNT ( * ) * - + 16 + + ( - COUNT ( ALL - - 44 ) ) + + 73 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - 55 * - COUNT( * ) + - 91
----
-36

skipif mysql # not compatible
query I rowsort label-3444
SELECT - 55 * - COUNT ( * ) + - 91
----
-36

query I rowsort
SELECT 14 * + 81 AS col1
----
1134

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

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - 80 / COUNT ( * ) * - 1
----
80

query I rowsort
SELECT - - COALESCE ( 87, + + 68 * - - 50, + 86 )
----
87

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT ALL 28 DIV - 54 * 83
----
0

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL 28 / - 54 * 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT - 94 * MAX( DISTINCT - 43 )
----
4042

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - 94 * MAX ( DISTINCT - 43 )
----
4042

query I rowsort
SELECT ALL + 40 + 9 + + 57 + + 69
----
175

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

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - SUM ( - 5 ) + - + ( + COUNT ( * ) ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - 68 + + 18 + COUNT( 79 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - 68 + + 18 + COUNT ( 79 ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT 1 * + NULLIF ( + 45, 91 ) * 58 - SUM( ALL + 98 )
----
2512

skipif mysql # not compatible
query I rowsort label-3454
SELECT 1 * + NULLIF ( + 45, 91 ) * 58 - SUM ( ALL + 98 )
----
2512

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL MIN( + + 96 ) + + 37 * - - 62 + - 1
----
2389

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL MIN ( + + 96 ) + + 37 * - - 62 + - 1
----
2389

query I rowsort
SELECT ( - + 2 ) + 83 + + + 49 * + 26 * - 99
----
-126045

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

skipif mysql # not compatible
query I rowsort label-3457
SELECT 91 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT 26 * COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3458
SELECT 26 * COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL - 5 + + 50 - - MAX( DISTINCT 83 ) * - 93 + 95 * - 20 + - 29 AS col2
----
-9603

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL - 5 + + 50 - - MAX ( DISTINCT 83 ) * - 93 + 95 * - 20 + - 29 AS col2
----
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT 49 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) + + + 67 * - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT 49 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + + + 67 * - 18 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL + CAST( NULL AS SIGNED ) * - 66 + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL + CAST ( NULL AS INTEGER ) * - 66 + - 62 AS col0
----
NULL

query I rowsort
SELECT 41 * 25 * - ( + 6 ) + 91
----
-6059

query I rowsort
SELECT ALL - 65 * 39 * + 18 + - + 99
----
-45729

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT - SUM( DISTINCT 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT - SUM ( DISTINCT 6 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3465
SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT( * ) col0
----
-79
83

skipif mysql # not compatible
query II rowsort label-3465
SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT ( * ) col0
----
-79
83

query I rowsort
SELECT NULLIF ( - 98, - + 77 ) * - - 44 AS col1
----
-4312

query II rowsort
SELECT - 22 * - ( - 6 ) + + 94 AS col1, + 0
----
-38
0

query I rowsort
SELECT 47 - + ( - - 24 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL - COUNT( - - NULLIF ( - 83, + 81 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - COUNT ( - - NULLIF ( - 83, + 81 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT SUM( - + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3470
SELECT SUM ( - + 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + 26 * - ( - - 95 ) - + - 10 + + COUNT( * ) * + 38 + + + 89 + - 25 + - COUNT( * ) * + ( - 64 ) * + - 43 * ( 70 ) * + 39 AS col2
----
-7515318

skipif mysql # not compatible
query I rowsort label-3471
SELECT + 26 * - ( - - 95 ) - + - 10 + + COUNT ( * ) * + 38 + + + 89 + - 25 + - COUNT ( * ) * + ( - 64 ) * + - 43 * ( 70 ) * + 39 AS col2
----
-7515318

query I rowsort
SELECT ALL - 52 - 21 + - 23 AS col0
----
-96

query II rowsort
SELECT 80 * - + 56 * - - 79 * - 82 AS col0, + ( - 71 ) + - ( - 12 )
----
29021440
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT DISTINCT - + 76 - + COALESCE ( + 34, + 27 * - - 19 + - 72 DIV + 25 * + 86 ) * - 0 DIV - 79 * + - 37 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - + 76 - + COALESCE ( + 34, + 27 * - - 19 + - 72 / + 25 * + 86 ) * - 0 / - 79 * + - 37 AS col2
----
-76

query I rowsort
SELECT ALL - - 29 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT - 3 + + 3 * - CAST( ( + 95 ) AS SIGNED )
----
-288

skipif mysql # not compatible
query I rowsort label-3476
SELECT - 3 + + 3 * - CAST ( ( + 95 ) AS INTEGER )
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT - 12 * - - CAST( NULL AS SIGNED ) * 55 * + ( + - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT - 12 * - - CAST ( NULL AS INTEGER ) * 55 * + ( + - 44 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3478
SELECT DISTINCT + CASE COUNT( * ) WHEN + MIN( - 27 ) + + CASE + - COUNT( * ) WHEN + ( + + 81 ) - + - 81 + 85 - + COUNT( * ) + + 9 * 48 * - + 25 * + CASE + COUNT( * ) WHEN 31 THEN + 30 * 17 END + - 50 THEN 56 END THEN 58 + 12 WHEN 12 THEN NULL ELSE - 84 DIV + 83 - 51 * - COUNT( * ) END * 54
----
2700

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + CASE COUNT ( * ) WHEN + MIN ( - 27 ) + + CASE + - COUNT ( * ) WHEN + ( + + 81 ) - + - 81 + 85 - + COUNT ( * ) + + 9 * 48 * - + 25 * + CASE + COUNT ( * ) WHEN 31 THEN + 30 * 17 END + - 50 THEN 56 END THEN 58 + 12 WHEN 12 THEN NULL ELSE - 84 / + 83 - 51 * - COUNT ( * ) END * 54
----
2700

query I rowsort
SELECT ALL 56 * 5 AS col2
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT - + ( + 24 ) + NULLIF ( + 67, 66 * - 70 + 79 ) + + 84 * - COUNT( - 42 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-3480
SELECT - + ( + 24 ) + NULLIF ( + 67, 66 * - 70 + 79 ) + + 84 * - COUNT ( - 42 ) col1
----
-41

query I rowsort
SELECT + + 56 + 89 * - 96 - - 46 * + 50
----
-6188

query I rowsort
SELECT ALL - 50 * ( + 92 )
----
-4600

query I rowsort
SELECT + 62 * 23
----
1426

query I rowsort
SELECT - 15 + 66
----
51

query I rowsort
SELECT ALL 11 + - 10
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL CASE + 75 WHEN + 9 + + COUNT( * ) THEN NULL ELSE - - ( + - NULLIF ( - NULLIF ( CASE + 85 WHEN - 26 + + 86 THEN - 45 WHEN - 70 THEN - 0 - - - 10 * 90 END, 85 ), + 30 ) ) / 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL CASE + 75 WHEN + 9 + + COUNT ( * ) THEN NULL ELSE - - ( + - NULLIF ( - NULLIF ( CASE + 85 WHEN - 26 + + 86 THEN - 45 WHEN - 70 THEN - 0 - - - 10 * 90 END, 85 ), + 30 ) ) / 81 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT DISTINCT - 26 + + - MAX( ALL - 92 ) + - - 77 DIV + + 16
----
70

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT - 26 + + - MAX ( ALL - 92 ) + - - 77 / + + 16
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL NULLIF ( + 85, - 63 ) + - - 62 + 19 * - COUNT( * ) * 81 AS col0
----
-1392

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL NULLIF ( + 85, - 63 ) + - - 62 + 19 * - COUNT ( * ) * 81 AS col0
----
-1392

query I rowsort
SELECT + 69 + - 15
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL 75 + + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL 75 + + COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT - 81 + - - COUNT( * ) * + SUM( 51 ) * + COUNT( * ) + + 74 - 0 * - 29 + 19
----
63

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 81 + - - COUNT ( * ) * + SUM ( 51 ) * + COUNT ( * ) + + 74 - 0 * - 29 + 19
----
63

query I rowsort
SELECT + 86 + + - 16 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL CASE + 2 WHEN - COUNT( * ) * 62 THEN NULL WHEN + ( + 27 ) + - 46 - + 1 * - 26 THEN NULL ELSE COUNT( * ) * - 48 + - 6 * + COUNT( * ) + - + 54 + 47 END + - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL CASE + 2 WHEN - COUNT ( * ) * 62 THEN NULL WHEN + ( + 27 ) + - 46 - + 1 * - 26 THEN NULL ELSE COUNT ( * ) * - 48 + - 6 * + COUNT ( * ) + - + 54 + 47 END + - COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + 39 + + - 14 + + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3494
SELECT + 39 + + - 14 + + - COUNT ( * )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT + CASE + + 71 WHEN + - 88 THEN NULL WHEN 65 * 96 + - CAST( + - COUNT( * ) AS SIGNED ) THEN - 9 * - - ( + 68 ) * COALESCE ( - + SUM( DISTINCT 94 ), + 94 ) + - 70 + - 88 * + 40 * 25 END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT + CASE + + 71 WHEN + - 88 THEN NULL WHEN 65 * 96 + - CAST ( + - COUNT ( * ) AS INTEGER ) THEN - 9 * - - ( + 68 ) * COALESCE ( - + SUM ( DISTINCT 94 ), + 94 ) + - 70 + - 88 * + 40 * 25 END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 3 + + 28
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL COUNT( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL COUNT ( - 52 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT + 20 * - CAST( NULL AS SIGNED ) * + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT + 20 * - CAST ( NULL AS INTEGER ) * + + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT COUNT ( * ) * + 52
----
52

query I rowsort
SELECT ( + - ( + + 10 ) )
----
-10

query I rowsort
SELECT + ( + ( - 15 ) )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT + 67 DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 67 / 51
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT ( - - COALESCE ( - - COALESCE ( - CAST( + 72 AS SIGNED ), + NULLIF ( + CASE 7 WHEN + ( + CASE 21 WHEN - 62 THEN - 72 * - + COUNT( * ) WHEN + 25 THEN NULL END ) THEN 14 WHEN COUNT( * ) THEN NULL END, - 8 ), 1 ), SUM( - 23 ), 33 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3503
SELECT ( - - COALESCE ( - - COALESCE ( - CAST ( + 72 AS INTEGER ), + NULLIF ( + CASE 7 WHEN + ( + CASE 21 WHEN - 62 THEN - 72 * - + COUNT ( * ) WHEN + 25 THEN NULL END ) THEN 14 WHEN COUNT ( * ) THEN NULL END, - 8 ), 1 ), SUM ( - 23 ), 33 ) )
----
-72

query I rowsort
SELECT ALL + - 77 AS col0
----
-77

query I rowsort
SELECT DISTINCT + + 95
----
95

query I rowsort
SELECT ALL + NULLIF ( - - 66, 70 )
----
66

query I rowsort
SELECT ALL + - 43 col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3508
SELECT - ( + + AVG ( ALL - 36 ) ) * - 73 / 38 * + 82 * - CAST( NULL AS DECIMAL ) + - COUNT( * ) + ( + CASE - COUNT( * ) WHEN - 57 THEN + ( + + COUNT( ALL + - 74 ) ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT - ( + + AVG ( ALL - 36 ) ) * - 73 / 38 * + 82 * - CAST ( NULL AS REAL ) + - COUNT ( * ) + ( + CASE - COUNT ( * ) WHEN - 57 THEN + ( + + COUNT ( ALL + - 74 ) ) END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 41 * + 99 col1
----
4059

query I rowsort
SELECT ALL + + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT + + 63 * - + 54 + + CASE WHEN NOT + ( SUM( DISTINCT + 28 ) ) > - 51 THEN NULL WHEN NOT + 13 IN ( - 33 ) THEN + 53 + - 80 END * + 76 * COUNT( * ) + 58 * + 32
----
-3598

skipif mysql # not compatible
query I rowsort label-3511
SELECT + + 63 * - + 54 + + CASE WHEN NOT + ( SUM ( DISTINCT + 28 ) ) > - 51 THEN NULL WHEN NOT + 13 IN ( - 33 ) THEN + 53 + - 80 END * + 76 * COUNT ( * ) + 58 * + 32
----
-3598

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - + 35 * + + 48 * 56 * - 83 * + COUNT( * ) + - - 36 AS col2
----
7808676

skipif mysql # not compatible
query I rowsort label-3512
SELECT - + 35 * + + 48 * 56 * - 83 * + COUNT ( * ) + - - 36 AS col2
----
7808676

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + 49 * - 64 * + - MIN( DISTINCT - 22 ) AS col1
----
-68992

skipif mysql # not compatible
query I rowsort label-3513
SELECT + 49 * - 64 * + - MIN ( DISTINCT - 22 ) AS col1
----
-68992

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - COUNT( * ) * 34 * 82 - + + 31 + ( + 7 ) * - - 49 AS col1
----
-2476

skipif mysql # not compatible
query I rowsort label-3514
SELECT - COUNT ( * ) * 34 * 82 - + + 31 + ( + 7 ) * - - 49 AS col1
----
-2476

query II rowsort
SELECT + - 51 AS col1, 73 + - 10 col1
----
-51
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - COUNT( * ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1
----
0

query II rowsort
SELECT ALL + 54, 44 AS col2
----
54
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3518
SELECT - CAST( - 23 AS SIGNED ) DIV + - 41
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT - CAST ( - 23 AS INTEGER ) / + - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL 86 * COUNT( * ) + - 92 + - + 86 + + MIN( 26 )
----
-66

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL 86 * COUNT ( * ) + - 92 + - + 86 + + MIN ( 26 )
----
-66

query I rowsort
SELECT DISTINCT 23 * + + 67 + + - 51 * - 41
----
3632

query I rowsort
SELECT + - 90
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT - - 8 DIV - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3522
SELECT - - 8 / - COUNT ( * ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT DISTINCT - + 19 * 10 / - - CASE - ( + ( - 37 ) ) WHEN + 83 * - - 17 THEN - + 65 WHEN + 38 THEN NULL END + - 35 + 27 + + CAST( - - 51 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT - + 19 * 10 / - - CASE - ( + ( - 37 ) ) WHEN + 83 * - - 17 THEN - + 65 WHEN + 38 THEN NULL END + - 35 + 27 + + CAST ( - - 51 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 93 * + 4
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL SUM( - 25 ) * - 89 + + 9
----
2234

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL SUM ( - 25 ) * - 89 + + 9
----
2234

query II rowsort
SELECT - 76 AS col2, - 7 AS col2
----
-76
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT - ( - - 62 ) DIV + - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT - ( - - 62 ) / + - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - 87 * NULLIF ( + - ( + SUM( - + 91 ) ), - AVG ( + 19 ) ) AS col0
----
-7917

skipif mysql # not compatible
query I rowsort label-3528
SELECT - 87 * NULLIF ( + - ( + SUM ( - + 91 ) ), - AVG ( + 19 ) ) AS col0
----
-7917

query I rowsort
SELECT + 63 * 74 * + - 22 * + 56 AS col0
----
-5743584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL COUNT( * ) * - 89 col1
----
-89

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL COUNT ( * ) * - 89 col1
----
-89

query I rowsort
SELECT - 27 * 92 AS col0
----
-2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3533
SELECT ALL - 5 * - + 79 col0, + COALESCE ( MIN( ALL - + 84 ), - CAST( NULL AS SIGNED ) DIV + + CAST( NULL AS SIGNED ) - COUNT( * ) ) AS col0
----
395
-84

skipif mysql # not compatible
query II rowsort label-3533
SELECT ALL - 5 * - + 79 col0, + COALESCE ( MIN ( ALL - + 84 ), - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) AS col0
----
395
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - NULLIF ( + 31, - 9 + + ( - - ( + 67 ) ) - AVG ( DISTINCT + 75 ) * + + COUNT( * ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3534
SELECT - NULLIF ( + 31, - 9 + + ( - - ( + 67 ) ) - AVG ( DISTINCT + 75 ) * + + COUNT ( * ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - CASE - + 47 WHEN - CASE 17 WHEN + COUNT( * ) * + 38 + + 97 + - 91 * - + ( 33 ) / + - 51 + 16 * - - 98 + + + COUNT( * ) * - - 28 + COALESCE ( COUNT( ( 44 ) ), - 90, + 10, 72 * + CASE 5 WHEN 53 THEN - ( COUNT( * ) ) * ( + 44 * - 66 ) + SUM( 21 ) ELSE 55 END ) THEN NULL ELSE 74 * COUNT( * ) END THEN NULL WHEN 88 THEN - 87 WHEN + 23 THEN NULL ELSE - 19 END AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3535
SELECT - CASE - + 47 WHEN - CASE 17 WHEN + COUNT ( * ) * + 38 + + 97 + - 91 * - + ( 33 ) / + - 51 + 16 * - - 98 + + + COUNT ( * ) * - - 28 + COALESCE ( COUNT ( ( 44 ) ), - 90, + 10, 72 * + CASE 5 WHEN 53 THEN - ( COUNT ( * ) ) * ( + 44 * - 66 ) + SUM ( 21 ) ELSE 55 END ) THEN NULL ELSE 74 * COUNT ( * ) END THEN NULL WHEN 88 THEN - 87 WHEN + 23 THEN NULL ELSE - 19 END AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT ALL CAST( - 35 AS SIGNED ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL CAST ( - 35 AS INTEGER ) AS col2
----
-35

query I rowsort
SELECT - 67 + + - 70 AS col0
----
-137

query I rowsort
SELECT - 43 + + 90
----
47

query I rowsort
SELECT + 61 * - 9 AS col0
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + 20 + + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 20 + + - COUNT ( * )
----
19

query I rowsort
SELECT ALL 88 * 28
----
2464

query II rowsort
SELECT DISTINCT + - 32 col2, 37 + - 52 AS col0
----
-32
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL ( + 89 ) * + + 60 * - 15 * + - COUNT( * )
----
80100

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL ( + 89 ) * + + 60 * - 15 * + - COUNT ( * )
----
80100

query I rowsort
SELECT ALL + CASE - - 42 WHEN + - 46 + - 24 THEN + - 19 ELSE NULL END * - - 75 + + + 85 AS col1
----
NULL

query I rowsort
SELECT + + 69 + 59 + - 52 - + 84 - - 95 / - + 56 * + - 40 + - + 1 + + - CASE - - 63 WHEN + + 47 THEN + 37 + 34 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT + 94 DIV - 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 94 / - 70 AS col2
----
-1

query II rowsort
SELECT + 33 * - - 33 - + 74 + 60 AS col0, 54 * ( 70 ) + 78 - - + 31
----
1075
3889

query I rowsort
SELECT 79 - + + 94
----
-15

query II rowsort
SELECT + 30 AS col1, + 59 AS col1
----
30
59

query I rowsort
SELECT ALL + 92 + - 60 AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT DISTINCT - + COUNT( * ) AS col1, + 74
----
-1
74

skipif mysql # not compatible
query II rowsort label-3551
SELECT DISTINCT - + COUNT ( * ) AS col1, + 74
----
-1
74

query I rowsort
SELECT + 83 * 49 + + - 46 + - 98
----
3923

onlyif mysql # DIV for integer division: 
query I rowsort label-3553
SELECT DISTINCT 62 + - COALESCE ( + 17, - 27 * + - 11 DIV + + 40, - 60 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT 62 + - COALESCE ( + 17, - 27 * + - 11 / + + 40, - 60 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + SUM( 34 ) * 89 AS col2
----
3026

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + SUM ( 34 ) * 89 AS col2
----
3026

query I rowsort
SELECT DISTINCT - 10 + ( + - 61 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3556
SELECT ALL - CAST( - 10 AS SIGNED ) + + MAX( - 61 ) AS col2, + 38 * - 16 * + 27 AS col0
----
-51
-16416

skipif mysql # not compatible
query II rowsort label-3556
SELECT ALL - CAST ( - 10 AS INTEGER ) + + MAX ( - 61 ) AS col2, + 38 * - 16 * + 27 AS col0
----
-51
-16416

query II rowsort
SELECT + 54, 61 AS col2
----
54
61

query I rowsort
SELECT ( + ( + 91 ) ) * 71 + 54 - + 80 AS col1
----
6435

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + 81 * - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + 81 * - COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT 17 DIV - + SUM( ALL 51 )
----
0

skipif mysql # not compatible
query I rowsort label-3560
SELECT 17 / - + SUM ( ALL 51 )
----
0

query I rowsort
SELECT 20 + + 9 + - 73 AS col2
----
-44

query I rowsort
SELECT DISTINCT 82 col0
----
82

query I rowsort
SELECT 1 * NULLIF ( - 69, + 97 ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT + COUNT( * ) DIV + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + COUNT ( * ) / + ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT 17 + - - COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-3565
SELECT 17 + - - COUNT ( * ) col1
----
18

query I rowsort
SELECT ALL + ( - + 9 ) * + 67 * + 50
----
-30150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT 97 DIV - + MAX( DISTINCT ( - 4 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3567
SELECT 97 / - + MAX ( DISTINCT ( - 4 ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT 32 DIV + + ( 50 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT 32 / + + ( 50 ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT 42 + + COUNT( * ), - COUNT( * ) AS col2
----
43
-1

skipif mysql # not compatible
query II rowsort label-3569
SELECT 42 + + COUNT ( * ), - COUNT ( * ) AS col2
----
43
-1

query I rowsort
SELECT ALL 56 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL - COUNT( * ) * 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL - COUNT ( * ) * 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL + COUNT( * ) * + 5 * 51 col2
----
255

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + COUNT ( * ) * + 5 * 51 col2
----
255

query I rowsort
SELECT DISTINCT + + 32 * 62 + - + 4 * + 97 + 94 + + 77 AS col0
----
1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT + CAST( + + 82 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3574
SELECT + CAST ( + + 82 AS INTEGER ) AS col1
----
82

query I rowsort
SELECT ALL 2 col2
----
2

query I rowsort
SELECT - 65 * + + 73 AS col0
----
-4745

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT - 57 + COUNT( * ) + 71 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - 57 + COUNT ( * ) + 71 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3578
SELECT + COUNT( * ) DIV + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT + COUNT ( * ) / + 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL - MAX( ALL - 58 ) + - 81 col0
----
-23

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - MAX ( ALL - 58 ) + - 81 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL - NULLIF ( + - COUNT( * ), 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - NULLIF ( + - COUNT ( * ), 31 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT + CAST( + 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3581
SELECT + CAST ( + 93 AS INTEGER ) AS col1
----
93

query I rowsort
SELECT ALL 11 * - 35 - ( + CASE + + 45 WHEN + 57 THEN NULL ELSE - 1 END ) + + - 30 AS col1
----
-414

query I rowsort
SELECT DISTINCT 51 + + - 21 AS col0
----
30

query I rowsort
SELECT + - 4 AS col0
----
-4

query I rowsort
SELECT ALL ( - 40 ) + 78 * + - 0 AS col2
----
-40

query I rowsort
SELECT + NULLIF ( 90, 34 * - 48 + - + 34 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + 56 * - 83 - + + MAX( DISTINCT - 47 )
----
-4601

skipif mysql # not compatible
query I rowsort label-3587
SELECT + 56 * - 83 - + + MAX ( DISTINCT - 47 )
----
-4601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT - ( + + SUM( DISTINCT - 69 ) ) * + CAST( + + 27 AS SIGNED )
----
1863

skipif mysql # not compatible
query I rowsort label-3588
SELECT - ( + + SUM ( DISTINCT - 69 ) ) * + CAST ( + + 27 AS INTEGER )
----
1863

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL - 46 AS col2, + 81 * - SUM( + 65 ) + - 47 - + COUNT( * ) - - 6 + - 95 * - + COALESCE ( - 72, 15 )
----
-46
-12147

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL - 46 AS col2, + 81 * - SUM ( + 65 ) + - 47 - + COUNT ( * ) - - 6 + - 95 * - + COALESCE ( - 72, 15 )
----
-46
-12147

query II rowsort
SELECT + 21 AS col1, 93
----
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT - 84 * + + 56 + + ( + - COUNT( * ) )
----
-4705

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 84 * + + 56 + + ( + - COUNT ( * ) )
----
-4705

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - MIN( DISTINCT - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - MIN ( DISTINCT - 91 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT ALL - 36, COUNT( * ) * + - 9 + 79 AS col2
----
-36
70

skipif mysql # not compatible
query II rowsort label-3593
SELECT ALL - 36, COUNT ( * ) * + - 9 + 79 AS col2
----
-36
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL + CAST( + - 56 AS SIGNED ) * 4 col1
----
-224

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + CAST ( + - 56 AS INTEGER ) * 4 col1
----
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT ALL 88 AS col1, MAX( ALL + 65 ) AS col1
----
88
65

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL 88 AS col1, MAX ( ALL + 65 ) AS col1
----
88
65

query II rowsort
SELECT - 45, 46 col1
----
-45
46

query II rowsort
SELECT 18 AS col0, 33 AS col1
----
18
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - MAX( ALL + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-3598
SELECT - MAX ( ALL + 36 )
----
-36

query I rowsort
SELECT 26 * ( 60 ) AS col0
----
1560

query I rowsort
SELECT 61 * + 11
----
671

query I rowsort
SELECT ALL - 88 + 54
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT - + 93 AS col1, - COUNT( * ) + - - 32 + + 50 col2
----
-93
81

skipif mysql # not compatible
query II rowsort label-3602
SELECT - + 93 AS col1, - COUNT ( * ) + - - 32 + + 50 col2
----
-93
81

query I rowsort
SELECT 80 + + - 14
----
66

query II rowsort
SELECT - + 24 AS col2, + 5
----
-24
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT - 67 DIV - 27 + 95 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 67 / - 27 + 95 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT COUNT( ALL + - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-3606
SELECT COUNT ( ALL + - 86 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL 12 * + - 75 + + + 99 + + 97 + + CAST( - CAST( - - 47 AS SIGNED ) AS SIGNED ) * - - 91 * + 88 AS col2
----
-377080

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL 12 * + - 75 + + + 99 + + 97 + + CAST ( - CAST ( - - 47 AS INTEGER ) AS INTEGER ) * - - 91 * + 88 AS col2
----
-377080

query II rowsort
SELECT - 76, 12 AS col1
----
-76
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT ALL - 86 * ( + + 81 ) / - 21 - - - 16 + - 32 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL - 86 * ( + + 81 ) / - 21 - - - 16 + - 32 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3610
SELECT + COALESCE ( COUNT( * ), + + 16 DIV - 90 - 92 + - 80 + + - 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3610
SELECT + COALESCE ( COUNT ( * ), + + 16 / - 90 - 92 + - 80 + + - 8 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - COALESCE ( COUNT( DISTINCT - + 16 ), + ( + + SUM( DISTINCT - 50 ) ) - + 60 ) * + - 51
----
51

skipif mysql # not compatible
query I rowsort label-3611
SELECT - COALESCE ( COUNT ( DISTINCT - + 16 ), + ( + + SUM ( DISTINCT - 50 ) ) - + 60 ) * + - 51
----
51

query I rowsort
SELECT + + 46 * + - 20
----
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT ALL + + CASE + 59 WHEN + 63 THEN NULL WHEN - 21 THEN - + 61 WHEN 78 THEN - + COUNT( * ) * - 65 + - 16 END AS col1, - 27 - - + NULLIF ( + + 92, + 22 + + 89 )
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3613
SELECT ALL + + CASE + 59 WHEN + 63 THEN NULL WHEN - 21 THEN - + 61 WHEN 78 THEN - + COUNT ( * ) * - 65 + - 16 END AS col1, - 27 - - + NULLIF ( + + 92, + 22 + + 89 )
----
NULL
65

query I rowsort
SELECT DISTINCT + - 80
----
-80

query I rowsort
SELECT DISTINCT + - 69 * 85 * + 82 + + 26 - 14 AS col1
----
-480918

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT CASE - 35 WHEN - + ( - COUNT( * ) ) - - 94 * 18 THEN - 35 END AS col0, + 79 * + - ( + MIN( + 57 ) ) + 2 * - COALESCE ( - - 16, - + COUNT( * ) ) AS col0
----
NULL
-4535

skipif mysql # not compatible
query II rowsort label-3616
SELECT CASE - 35 WHEN - + ( - COUNT ( * ) ) - - 94 * 18 THEN - 35 END AS col0, + 79 * + - ( + MIN ( + 57 ) ) + 2 * - COALESCE ( - - 16, - + COUNT ( * ) ) AS col0
----
NULL
-4535

query I rowsort
SELECT DISTINCT 63 * + 24 AS col0
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT DISTINCT - COUNT( ALL - + 16 ) / + CAST( NULL AS SIGNED ) + - CASE + + 98 WHEN - 96 / COUNT( * ) THEN + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT - COUNT ( ALL - + 16 ) / + CAST ( NULL AS INTEGER ) + - CASE + + 98 WHEN - 96 / COUNT ( * ) THEN + 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT + 87 + + 31 - 63 * - COUNT( DISTINCT 67 ) AS col2, 24 * - + SUM( + 24 ) * 89 + + + 69 + + 17 + - 91 * + 27
----
181
-53635

skipif mysql # not compatible
query II rowsort label-3619
SELECT + 87 + + 31 - 63 * - COUNT ( DISTINCT 67 ) AS col2, 24 * - + SUM ( + 24 ) * 89 + + + 69 + + 17 + - 91 * + 27
----
181
-53635

query I rowsort
SELECT ALL 98 * 72
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT MAX( - - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3621
SELECT MAX ( - - 39 )
----
39

query I rowsort
SELECT ALL - 46 * - + ( + + 39 )
----
1794

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT - 51 DIV - - 79 * + ( + 53 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 51 / - - 79 * + ( + 53 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT + 56 DIV + 4
----
14

skipif mysql # not compatible
query I rowsort label-3624
SELECT + 56 / + 4
----
14

query I rowsort
SELECT 83 * + 92 + - - 2 AS col2
----
7638

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT COUNT( * ) * + - 46 - + ( + 57 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-3626
SELECT COUNT ( * ) * + - 46 - + ( + 57 ) AS col1
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT + 44 + CAST( NULL AS SIGNED ) + + 55 + + 60 + - ( + ( - 31 ) ) * + 69 * - - 77 * + + 72 * - COUNT( * ) + - 65, - 24 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-3627
SELECT + 44 + CAST ( NULL AS INTEGER ) + + 55 + + 60 + - ( + ( - 31 ) ) * + 69 * - - 77 * + + 72 * - COUNT ( * ) + - 65, - 24 AS col1
----
NULL
-24

query I rowsort
SELECT + ( - 99 ) AS col2
----
-99

query I rowsort
SELECT - NULLIF ( - 52, - + 21 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL 85 + + CAST( - NULLIF ( - 46, - 27 ) AS SIGNED )
----
131

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL 85 + + CAST ( - NULLIF ( - 46, - 27 ) AS INTEGER )
----
131

query I rowsort
SELECT + 67 + 8
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT + + MAX( DISTINCT + 17 ) * - COUNT( * ) + 16 * 71 AS col0, + COUNT( * ) AS col1
----
1119
1

skipif mysql # not compatible
query II rowsort label-3632
SELECT + + MAX ( DISTINCT + 17 ) * - COUNT ( * ) + 16 * 71 AS col0, + COUNT ( * ) AS col1
----
1119
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT DISTINCT COUNT( * ) * 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT COUNT ( * ) * 43 AS col2
----
43

query I rowsort
SELECT ALL - 87 + 47
----
-40

query I rowsort
SELECT - - 95 AS col2
----
95

query I rowsort
SELECT - - 76 + + 20 + 88 + 40 * + + 4 + - 44
----
300

query I rowsort
SELECT + + 7 * + - 15 AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3638
SELECT - ( + - 84 ) + + COUNT( - 13 ) AS col2, + 11 + CAST( NULL AS DECIMAL ) * 57 AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-3638
SELECT - ( + - 84 ) + + COUNT ( - 13 ) AS col2, + 11 + CAST ( NULL AS REAL ) * 57 AS col1
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL 44 + 92 * ( COUNT( DISTINCT + 1 ) )
----
136

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL 44 + 92 * ( COUNT ( DISTINCT + 1 ) )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT + CASE - 91 WHEN + + 66 + + 18 + 75 THEN NULL WHEN - ( + 66 ) THEN - 62 * 83 + COUNT( * ) + - 20 / - 50 + + - 12 + - 59 * + + 97 * + 51 - + - 78 + - 31 - 69 + 93 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT + CASE - 91 WHEN + + 66 + + 18 + 75 THEN NULL WHEN - ( + 66 ) THEN - 62 * 83 + COUNT ( * ) + - 20 / - 50 + + - 12 + - 59 * + + 97 * + 51 - + - 78 + - 31 - 69 + 93 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3641
SELECT ALL ( - + NULLIF ( - NULLIF ( 79, - CAST( NULL AS DECIMAL ) * - 0 ), - COUNT( * ) ) ) * - - 88 + - 1
----
6951

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL ( - + NULLIF ( - NULLIF ( 79, - CAST ( NULL AS REAL ) * - 0 ), - COUNT ( * ) ) ) * - - 88 + - 1
----
6951

query I rowsort
SELECT DISTINCT + 94 + 93 col1
----
187

query I rowsort
SELECT ALL + 61 - + 25
----
36

query I rowsort
SELECT - - ( CASE + 75 WHEN + 92 THEN NULL ELSE - 47 END )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT - - ( - - 92 ) * - + COUNT( DISTINCT + 3 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3645
SELECT - - ( - - 92 ) * - + COUNT ( DISTINCT + 3 ) AS col0
----
-92

query I rowsort
SELECT + - 95 * 26 + - 98 AS col1
----
-2568

query I rowsort
SELECT + + 6 * + - 53 col1
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - + COUNT( * ) * - 51 * + - 37 * + + 67 AS col2
----
-126429

skipif mysql # not compatible
query I rowsort label-3648
SELECT - + COUNT ( * ) * - 51 * + - 37 * + + 67 AS col2
----
-126429

query I rowsort
SELECT DISTINCT + - 69 AS col2
----
-69

query I rowsort
SELECT ALL + 20 * - - 6
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - COUNT( * ) * COUNT( ALL + 10 ) + - 60 + - 20 * + - 59 * + 49 + + ( - 2 ) - + 42 + + 37 + - 99
----
57653

skipif mysql # not compatible
query I rowsort label-3651
SELECT - COUNT ( * ) * COUNT ( ALL + 10 ) + - 60 + - 20 * + - 59 * + 49 + + ( - 2 ) - + 42 + + 37 + - 99
----
57653

query I rowsort
SELECT ALL - 50 * - + 89
----
4450

query II rowsort
SELECT - 28 + ( - 90 ) AS col2, - 35 * - 61
----
-118
2135

query I rowsort
SELECT DISTINCT - 77 * + 96 AS col0
----
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT + CAST( 77 AS SIGNED ) col0
----
77

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT + CAST ( 77 AS INTEGER ) col0
----
77

query I rowsort
SELECT ( + + 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3657
SELECT DISTINCT + MAX( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT + MAX ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 96 * - 77 + 91 + + ( 57 ) + 77
----
-7167

query II rowsort
SELECT + NULLIF ( - 41, + 9 + + + 4 / - 8 ), 73 AS col2
----
-41
73

query I rowsort
SELECT - 45 * - + 68
----
3060

query I rowsort
SELECT + 50 + + + 61
----
111

query I rowsort
SELECT ( + 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT NULLIF ( - 49, - COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3663
SELECT NULLIF ( - 49, - COUNT ( * ) )
----
-49

query I rowsort
SELECT ALL 56 * + ( - 56 ) + - 65 AS col2
----
-3201

query I rowsort
SELECT ALL - 8 * + + 7 + + 63
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3666
SELECT + COALESCE ( 6, + - 30 * - - 51 - - 14, COUNT( * ) DIV + + 19 + - 38 + + 50 + + + 24 + + 73 + 81 * - - 94 + - COUNT( * ) + + 77 DIV ( + SUM( ALL ( + 23 ) ) ) + - - 61 + - CAST( NULL AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-3666
SELECT + COALESCE ( 6, + - 30 * - - 51 - - 14, COUNT ( * ) / + + 19 + - 38 + + 50 + + + 24 + + 73 + 81 * - - 94 + - COUNT ( * ) + + 77 / ( + SUM ( ALL ( + 23 ) ) ) + - - 61 + - CAST ( NULL AS INTEGER ) )
----
6

query I rowsort
SELECT ALL 99 * + + 93 * 76 + - - 45
----
699777

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT DISTINCT 10 AS col0, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT 10 AS col0, COUNT ( * )
----
10
1

query I rowsort
SELECT ALL 49 * 28
----
1372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT 41 * + 44 * + - CASE - 62 WHEN 3 * - - 35 + - + COALESCE ( + MAX( DISTINCT - 26 ), - MAX( + ( 76 ) ) + - - CAST( NULL AS SIGNED ) + - 51 + - 88 ) + - COUNT( * ) * - 32 + 59 + + 26 THEN + + 26 * + 78 ELSE NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT 41 * + 44 * + - CASE - 62 WHEN 3 * - - 35 + - + COALESCE ( + MAX ( DISTINCT - 26 ), - MAX ( + ( 76 ) ) + - - CAST ( NULL AS INTEGER ) + - 51 + - 88 ) + - COUNT ( * ) * - 32 + 59 + + 26 THEN + + 26 * + 78 ELSE NULL END * 7
----
NULL

query I rowsort
SELECT + 49 * - 3
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT - 58 DIV - 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 58 / - 58 AS col1
----
1

query I rowsort
SELECT DISTINCT ( 85 ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3674
SELECT ALL + CAST( + 40 AS SIGNED ) - + - 66, 25 AS col1
----
106
25

skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL + CAST ( + 40 AS INTEGER ) - + - 66, 25 AS col1
----
106
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL - CASE + - 39 WHEN - 56 THEN + 82 - + - 8 WHEN - CAST( - 15 AS SIGNED ) + - 71 + + 35 * - 27 * - + 99 THEN NULL WHEN - 69 * + 43 THEN + 6 * - 37 ELSE NULL END * - 99 + 47 + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - CASE + - 39 WHEN - 56 THEN + 82 - + - 8 WHEN - CAST ( - 15 AS INTEGER ) + - 71 + + 35 * - 27 * - + 99 THEN NULL WHEN - 69 * + 43 THEN + 6 * - 37 ELSE NULL END * - 99 + 47 + - 52
----
NULL

query II rowsort
SELECT - + COALESCE ( - 58, 80 ) AS col0, 15 AS col2
----
58
15

query I rowsort
SELECT - 91 + - 6
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT 58 + - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3678
SELECT 58 + - COUNT ( * ) AS col0
----
57

query I rowsort
SELECT - 74 - - 73 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL COUNT( * ) * + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL COUNT ( * ) * + - 97
----
-97

query I rowsort
SELECT ALL - + 85 AS col1
----
-85

query II rowsort
SELECT 27 + 91 * 74, 39 col2
----
6761
39

query I rowsort
SELECT ALL - + 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - SUM( DISTINCT 87 ) * 91 * - - 96 + + 17 * + 44 AS col2
----
-759284

skipif mysql # not compatible
query I rowsort label-3684
SELECT - SUM ( DISTINCT 87 ) * 91 * - - 96 + + 17 * + 44 AS col2
----
-759284

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT ALL + ( + 65 ) DIV - - 46 col2
----
1

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + ( + 65 ) / - - 46 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3686
SELECT 26 DIV + 8 AS col2, - COUNT( * ) AS col2
----
3
-1

skipif mysql # not compatible
query II rowsort label-3686
SELECT 26 / + 8 AS col2, - COUNT ( * ) AS col2
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - COUNT( + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - COUNT ( + 32 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT DISTINCT + 1 + + 12 DIV 72 * + 77
----
1

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + 1 + + 12 / 72 * + 77
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT ( - + 75 ) * COALESCE ( 90, 48 DIV - 96 ) * - 60
----
405000

skipif mysql # not compatible
query I rowsort label-3689
SELECT ( - + 75 ) * COALESCE ( 90, 48 / - 96 ) * - 60
----
405000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT CAST( NULL AS SIGNED ) / 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT CAST ( NULL AS INTEGER ) / 99 AS col1
----
NULL

query I rowsort
SELECT 52 * - 78 AS col0
----
-4056

query II rowsort
SELECT 65 * - 83 + - - 44 + + ( - 44 ) + - + 72 AS col2, 92
----
-5467
92

query I rowsort
SELECT DISTINCT + ( 70 ) * + - 84 * - ( + 87 ) AS col1
----
511560

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL + 56 + + COUNT( * ) + - - 31 + + - COUNT( * ) + - - COUNT( * ) * - 70 * + 11 AS col1
----
-683

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + 56 + + COUNT ( * ) + - - 31 + + - COUNT ( * ) + - - COUNT ( * ) * - 70 * + 11 AS col1
----
-683

query I rowsort
SELECT - 96 * - - 96 + + + 26
----
-9190

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3696
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 65, - 83 AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-3696
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 65, - 83 AS col1
----
NULL
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT ALL - ( MIN( DISTINCT - 33 ) ) * + 7 col2, 82
----
231
82

skipif mysql # not compatible
query II rowsort label-3697
SELECT ALL - ( MIN ( DISTINCT - 33 ) ) * + 7 col2, 82
----
231
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + 84 + COUNT( ALL - 33 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + 84 + COUNT ( ALL - 33 ) AS col1
----
85

query II rowsort
SELECT DISTINCT + 11 * - - 66, - 5 AS col1
----
726
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT 67 - 18 DIV + 77
----
67

skipif mysql # not compatible
query I rowsort label-3700
SELECT 67 - 18 / + 77
----
67

query I rowsort
SELECT 41 + + 35 AS col2
----
76

query I rowsort
SELECT + 51 * 65 - - - 31 - 46
----
3238

query I rowsort
SELECT - ( - 40 )
----
40

query II rowsort
SELECT - 27, + 68 AS col0
----
-27
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL ( - CASE - 82 WHEN - 13 * + 73 + 33 + 23 * - 18 THEN - CASE 67 WHEN + COALESCE ( - + 57, 23 + + COUNT( * ) + - - 65 + + COUNT( * ) / - + 67 + - 23 * 25 / + - 34 * 19 * + 29 ) THEN ( - 92 ) / 90 END WHEN - 36 * 51 + + 52 * + 63 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL ( - CASE - 82 WHEN - 13 * + 73 + 33 + 23 * - 18 THEN - CASE 67 WHEN + COALESCE ( - + 57, 23 + + COUNT ( * ) + - - 65 + + COUNT ( * ) / - + 67 + - 23 * 25 / + - 34 * 19 * + 29 ) THEN ( - 92 ) / 90 END WHEN - 36 * 51 + + 52 * + 63 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - + 18 - - 50 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - + 18 - - 50 * COUNT ( * )
----
32

query II rowsort
SELECT ALL 71 AS col1, 85 AS col2
----
71
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT ALL + CAST( + 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + CAST ( + 56 AS INTEGER ) AS col2
----
56

query I rowsort
SELECT 99 * + 99 + + - 26 AS col0
----
9775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3710
SELECT - COUNT( * ) + - + 31 + - CAST( - - 44 AS SIGNED ) + NULLIF ( 1, + ( MIN( DISTINCT + 17 ) ) * - + 25 + - 11 ) AS col0, + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-3710
SELECT - COUNT ( * ) + - + 31 + - CAST ( - - 44 AS INTEGER ) + NULLIF ( 1, + ( MIN ( DISTINCT + 17 ) ) * - + 25 + - 11 ) AS col0, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
-75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + 55 + - + 76 * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + 55 + - + 76 * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT ALL + 37, COUNT( * ) * - + 91 + 27 * 76 AS col2
----
37
1961

skipif mysql # not compatible
query II rowsort label-3712
SELECT ALL + 37, COUNT ( * ) * - + 91 + 27 * 76 AS col2
----
37
1961

query I rowsort
SELECT - + 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT - 50 * - + 40 AS col1, + 29 * ( - MAX( 48 ) )
----
2000
-1392

skipif mysql # not compatible
query II rowsort label-3714
SELECT - 50 * - + 40 AS col1, + 29 * ( - MAX ( 48 ) )
----
2000
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - MAX( DISTINCT + - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3715
SELECT - MAX ( DISTINCT + - 41 )
----
41

query I rowsort
SELECT + ( - 49 ) + 51
----
2

query II rowsort
SELECT ALL - 14, 93 AS col0
----
-14
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3718
SELECT + 98 * ( - + MAX( DISTINCT - - 34 ) ) / - 99 + + MAX( ALL - 91 ) + + 71 + + CAST( NULL AS DECIMAL ) + + - COUNT( DISTINCT 35 ) + - 85 * - 23 * 88 + + 7 / - + 42 AS col0, - 38 + + - 40
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-3718
SELECT + 98 * ( - + MAX ( DISTINCT - - 34 ) ) / - 99 + + MAX ( ALL - 91 ) + + 71 + + CAST ( NULL AS REAL ) + + - COUNT ( DISTINCT 35 ) + - 85 * - 23 * 88 + + 7 / - + 42 AS col0, - 38 + + - 40
----
NULL
-78

query II rowsort
SELECT - 34 AS col0, - 6 AS col2
----
-34
-6

query I rowsort
SELECT + 72 + + 91
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + 16 * + COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 16 * + COUNT ( * ) col0
----
16

query II rowsort
SELECT ALL 95 AS col0, 33 * + + ( - 56 )
----
95
-1848

query I rowsort
SELECT DISTINCT + ( - ( - 97 ) ) * 49
----
4753

query I rowsort
SELECT - + ( - - 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT DISTINCT - CAST( + - CASE + 66 WHEN - MIN( - 98 ) THEN 33 + - ( 95 ) * - + 26 WHEN + + 95 * + 29 / ( - + 34 ) + + 78 THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT - CAST ( + - CASE + 66 WHEN - MIN ( - 98 ) THEN 33 + - ( 95 ) * - + 26 WHEN + + 95 * + 29 / ( - + 34 ) + + 78 THEN NULL END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 41, - ( - + 21 ) col1
----
41
21

query II rowsort
SELECT 36 AS col0, ( + - 9 )
----
36
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL NULLIF ( - COUNT( * ), - MAX( - 73 ) ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL NULLIF ( - COUNT ( * ), - MAX ( - 73 ) ) + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT COUNT( * ) * + COALESCE ( + 55, + 89, + ( - + 17 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3729
SELECT COUNT ( * ) * + COALESCE ( + 55, + 89, + ( - + 17 ) ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT CAST( CASE + 5 WHEN - 98 * + - NULLIF ( + 27, + - NULLIF ( 96, - 30 ) + + - 22 ) + + ( - COUNT( * ) ) + + COUNT( * ) + 95 + + CASE 20 WHEN + 59 THEN - COUNT( * ) * + 7 * - COALESCE ( 61, 65 + ( - ( COUNT( * ) ) ), - 55 ) ELSE NULL END + 13 * 11 * - NULLIF ( + COUNT( * ) * 73 + COUNT( ALL 44 ), ( - 84 ) * 54 + 15 * + 93 ) THEN NULL ELSE + 71 END AS SIGNED ) * + 70
----
4970

skipif mysql # not compatible
query I rowsort label-3730
SELECT CAST ( CASE + 5 WHEN - 98 * + - NULLIF ( + 27, + - NULLIF ( 96, - 30 ) + + - 22 ) + + ( - COUNT ( * ) ) + + COUNT ( * ) + 95 + + CASE 20 WHEN + 59 THEN - COUNT ( * ) * + 7 * - COALESCE ( 61, 65 + ( - ( COUNT ( * ) ) ), - 55 ) ELSE NULL END + 13 * 11 * - NULLIF ( + COUNT ( * ) * 73 + COUNT ( ALL 44 ), ( - 84 ) * 54 + 15 * + 93 ) THEN NULL ELSE + 71 END AS INTEGER ) * + 70
----
4970

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT COUNT( - 65 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3731
SELECT COUNT ( - 65 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT - 70 * - + SUM( - 76 ) + ( 59 ) * + 96 AS col0
----
344

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - 70 * - + SUM ( - 76 ) + ( 59 ) * + 96 AS col0
----
344

query I rowsort
SELECT + CASE + 18 WHEN 19 THEN 45 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT MIN( DISTINCT - 0 ), 70 AS col0
----
0
70

skipif mysql # not compatible
query II rowsort label-3734
SELECT MIN ( DISTINCT - 0 ), 70 AS col0
----
0
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT MIN( 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3735
SELECT MIN ( 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT - 44 * - SUM( DISTINCT + COALESCE ( - CASE - - 23 WHEN - + NULLIF ( + 46, + + 66 / + + COALESCE ( + + ( - CASE + 39 WHEN - 12 - NULLIF ( - - 77, - 99 / 98 + 2 ) THEN NULL WHEN + + 11 + 74 THEN - 63 WHEN 87 THEN 61 ELSE 49 END ), - 50 ) * + 82 ) THEN NULL WHEN 50 * + 70 + 31 THEN - 75 ELSE 93 END, - ( 27 ) * - 70 ) ) AS col1
----
-4092

skipif mysql # not compatible
query I rowsort label-3736
SELECT - 44 * - SUM ( DISTINCT + COALESCE ( - CASE - - 23 WHEN - + NULLIF ( + 46, + + 66 / + + COALESCE ( + + ( - CASE + 39 WHEN - 12 - NULLIF ( - - 77, - 99 / 98 + 2 ) THEN NULL WHEN + + 11 + 74 THEN - 63 WHEN 87 THEN 61 ELSE 49 END ), - 50 ) * + 82 ) THEN NULL WHEN 50 * + 70 + 31 THEN - 75 ELSE 93 END, - ( 27 ) * - 70 ) ) AS col1
----
-4092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT - 61 + MIN( - 78 ) DIV 81 + 50 col2
----
-11

skipif mysql # not compatible
query I rowsort label-3737
SELECT - 61 + MIN ( - 78 ) / 81 + 50 col2
----
-11

query I rowsort
SELECT + 85 * + 25 + + 88 AS col2
----
2213

query I rowsort
SELECT + 8 * + - 95 AS col2
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL - 26 * MIN( DISTINCT - 99 ) AS col0
----
2574

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 26 * MIN ( DISTINCT - 99 ) AS col0
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT + 25 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT + 25 / - 44 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT DISTINCT 49 DIV - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT 49 / - + 39
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( + 99, - - 41 ) AS col1
----
99

query I rowsort
SELECT DISTINCT + + 20 * 48
----
960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3745
SELECT ALL + - ( - 24 ) * + CAST( NULL AS DECIMAL ) * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + - ( - 24 ) * + CAST ( NULL AS REAL ) * 60 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + + MIN( - 16 ) - 11 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3746
SELECT + + MIN ( - 16 ) - 11 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT - - 62 * COUNT( * ), 29 AS col0
----
62
29

skipif mysql # not compatible
query II rowsort label-3747
SELECT - - 62 * COUNT ( * ), 29 AS col0
----
62
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - + COUNT( * ) * + ( - - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3748
SELECT - + COUNT ( * ) * + ( - - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - COALESCE ( - - COUNT( * ), + 43 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3749
SELECT - COALESCE ( - - COUNT ( * ), + 43 ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - 96 DIV - 43 col2
----
2

skipif mysql # not compatible
query I rowsort label-3750
SELECT - 96 / - 43 col2
----
2

query II rowsort
SELECT - 9 - - 79 col1, 19 AS col1
----
70
19

query I rowsort
SELECT ALL - 77 col0
----
-77

query I rowsort
SELECT - 23 - 88 * - 48 col1
----
4201

query I rowsort
SELECT DISTINCT - - 36 + + 86
----
122

query I rowsort
SELECT - + 42
----
-42

query I rowsort
SELECT ALL - 97 + + - 35 AS col2
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3757
SELECT - - SUM( DISTINCT - 63 ) + + 53 - 9 * - 9, - 1 - - 45 DIV - 40 + - COUNT( * ) + - - ( 7 ) - - 33 col0
----
71
37

skipif mysql # not compatible
query II rowsort label-3757
SELECT - - SUM ( DISTINCT - 63 ) + + 53 - 9 * - 9, - 1 - - 45 / - 40 + - COUNT ( * ) + - - ( 7 ) - - 33 col0
----
71
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3758
SELECT - + CAST( - + 79 AS SIGNED ) DIV + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3758
SELECT - + CAST ( - + 79 AS INTEGER ) / + COUNT ( * )
----
79

query I rowsort
SELECT - 28 + + + 8 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT + COUNT( * ) - - - 10 * + 27 + + CAST( + NULLIF ( - COUNT( * ), + 88 / - ( 17 ) + + COUNT( * ) - + - 36 ) AS SIGNED ) - + 60
----
-330

skipif mysql # not compatible
query I rowsort label-3760
SELECT + COUNT ( * ) - - - 10 * + 27 + + CAST ( + NULLIF ( - COUNT ( * ), + 88 / - ( 17 ) + + COUNT ( * ) - + - 36 ) AS INTEGER ) - + 60
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL + COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + COUNT ( * ) * - - 9
----
9

query I rowsort
SELECT - 4 + + 61 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + 10 - + - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3763
SELECT + 10 - + - COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT + COUNT( * ) * + + 12
----
12

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + COUNT ( * ) * + + 12
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT ALL 92 + + 59 + 16 * - 53 * - + 7 + + 77 - 43 + + - COUNT( * ) AS col2, - 27 AS col0
----
6120
-27

skipif mysql # not compatible
query II rowsort label-3765
SELECT ALL 92 + + 59 + 16 * - 53 * - + 7 + + 77 - 43 + + - COUNT ( * ) AS col2, - 27 AS col0
----
6120
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT - SUM( - - 4 ) + 39 AS col1, + COUNT( * ) * + MIN( - COALESCE ( + 61, - 96 + 33, 62 ) ) * MAX( - 83 ) + - 78
----
35
4985

skipif mysql # not compatible
query II rowsort label-3766
SELECT - SUM ( - - 4 ) + 39 AS col1, + COUNT ( * ) * + MIN ( - COALESCE ( + 61, - 96 + 33, 62 ) ) * MAX ( - 83 ) + - 78
----
35
4985

query I rowsort
SELECT ALL + 29 * - 39
----
-1131

query I rowsort
SELECT DISTINCT + 74 col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT ALL + 16 AS col0, - COUNT( * ) AS col2
----
16
-1

skipif mysql # not compatible
query II rowsort label-3769
SELECT ALL + 16 AS col0, - COUNT ( * ) AS col2
----
16
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3770
SELECT ALL + COUNT( * ) DIV - 59 + - 65, 40 AS col0
----
-65
40

skipif mysql # not compatible
query II rowsort label-3770
SELECT ALL + COUNT ( * ) / - 59 + - 65, 40 AS col0
----
-65
40

onlyif mysql # DIV for integer division: 
query II rowsort label-3771
SELECT + 90, 11 DIV - 79 AS col1
----
90
0

skipif mysql # not compatible
query II rowsort label-3771
SELECT + 90, 11 / - 79 AS col1
----
90
0

query I rowsort
SELECT DISTINCT + 3 AS col0
----
3

query I rowsort
SELECT + ( ( + 9 ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT + 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 20 + - COUNT ( * )
----
19

query I rowsort
SELECT ALL 26 * + 49 AS col0
----
1274

query I rowsort
SELECT ( + + 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT DISTINCT - CASE 96 WHEN + 17 + + 1 THEN NULL ELSE - 9 * + 3 - - COALESCE ( - - 23, ( 6 ) + - 99 - - + 65 - - 99 * + + 74, - 7 / - - COUNT( * ) + - SUM( + 95 ) ) / CASE - CAST( - 15 AS SIGNED ) WHEN - ( + + CAST( - 66 AS SIGNED ) ) THEN - SUM( DISTINCT - ( - 20 ) ) END END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT - CASE 96 WHEN + 17 + + 1 THEN NULL ELSE - 9 * + 3 - - COALESCE ( - - 23, ( 6 ) + - 99 - - + 65 - - 99 * + + 74, - 7 / - - COUNT ( * ) + - SUM ( + 95 ) ) / CASE - CAST ( - 15 AS INTEGER ) WHEN - ( + + CAST ( - 66 AS INTEGER ) ) THEN - SUM ( DISTINCT - ( - 20 ) ) END END * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT 55 * - 83 - - - 31 + COUNT( * ) AS col2
----
-4595

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT 55 * - 83 - - - 31 + COUNT ( * ) AS col2
----
-4595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL 90 * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL 90 * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT 94 DIV - 75 * - 31 DIV + 23 + + 75
----
76

skipif mysql # not compatible
query I rowsort label-3780
SELECT 94 / - 75 * - 31 / + 23 + + 75
----
76

query I rowsort
SELECT DISTINCT + 35 * + 97
----
3395

query II rowsort
SELECT ALL + + 61 AS col1, + 4 * + 71
----
61
284

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3783
SELECT + 35 * - 56 * + - 13 / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT + 35 * - 56 * + - 13 / CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT + + 91 - CAST( NULL AS SIGNED ) / 12 + + 65 * 72 * + - 5 * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT + + 91 - CAST ( NULL AS INTEGER ) / 12 + + 65 * 72 * + - 5 * + 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3785
SELECT + 73 AS col1, 54 - CAST( CASE + 44 WHEN + 49 THEN - 11 * - 60 - - 93 END AS SIGNED ) + - - ( 53 ) * - - 93
----
73
NULL

skipif mysql # not compatible
query II rowsort label-3785
SELECT + 73 AS col1, 54 - CAST ( CASE + 44 WHEN + 49 THEN - 11 * - 60 - - 93 END AS INTEGER ) + - - ( 53 ) * - - 93
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + + COUNT( * ) + + COUNT( * ) + + - 18 + - + 7 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3786
SELECT + + COUNT ( * ) + + COUNT ( * ) + + - 18 + - + 7 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3787
SELECT ALL - 53 / 91 + - 72 + + CAST( NULL AS SIGNED ) + - 84 * + 68 * - - COUNT( * ) + - + 26 col0, 64 - + 50 AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL - 53 / 91 + - 72 + + CAST ( NULL AS INTEGER ) + - 84 * + 68 * - - COUNT ( * ) + - + 26 col0, 64 - + 50 AS col0
----
NULL
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT - COUNT( * ) + - + CAST( - 20 AS SIGNED ) + + COUNT( * ) + + - 72 + - 86
----
-138

skipif mysql # not compatible
query I rowsort label-3788
SELECT - COUNT ( * ) + - + CAST ( - 20 AS INTEGER ) + + COUNT ( * ) + + - 72 + - 86
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3789
SELECT DISTINCT CAST( - 45 AS SIGNED ) DIV 30 AS col1, CASE + - 33 WHEN + 2 * + + 31 - + - 29 THEN 46 + - 9 - + - COUNT( * ) + - + 79 * - 68 DIV + + COUNT( * ) WHEN + 11 THEN NULL ELSE - 86 + COUNT( * ) * - 81 END AS col0
----
-1
-167

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT CAST ( - 45 AS INTEGER ) / 30 AS col1, CASE + - 33 WHEN + 2 * + + 31 - + - 29 THEN 46 + - 9 - + - COUNT ( * ) + - + 79 * - 68 / + + COUNT ( * ) WHEN + 11 THEN NULL ELSE - 86 + COUNT ( * ) * - 81 END AS col0
----
-1
-167

query I rowsort
SELECT + 93 + - + 15 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT ALL 68 DIV - - 52
----
1

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 68 / - - 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL NULLIF ( + 96, + CASE + + 27 WHEN 45 THEN + 50 - 89 * + COUNT( * ) ELSE NULL END ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL NULLIF ( + 96, + CASE + + 27 WHEN 45 THEN + 50 - 89 * + COUNT ( * ) ELSE NULL END ) AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT - - 6 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - - 6 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT + CAST( - - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-3794
SELECT + CAST ( - - 83 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT - 68 + + 88 * CASE 17 WHEN + 72 * - COUNT( * ) THEN MAX( ALL + 58 ) WHEN - 30 THEN - 69 - - + 99 - - 64 / - + 55 ELSE NULL END + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT - 68 + + 88 * CASE 17 WHEN + 72 * - COUNT ( * ) THEN MAX ( ALL + 58 ) WHEN - 30 THEN - 69 - - + 99 - - 64 / - + 55 ELSE NULL END + 82
----
NULL

query I rowsort
SELECT - 57 + + - 12 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT - CAST( + - 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT - CAST ( + - 27 AS INTEGER ) AS col1
----
27

query I rowsort
SELECT DISTINCT 69 * 49 * 99 col0
----
334719

query I rowsort
SELECT ALL - 69 + - 24 + - 4
----
-97

query I rowsort
SELECT - 98 * + 42
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL COALESCE ( + 65, 85 + - CASE + + CASE - 0 WHEN - 12 THEN NULL WHEN - 67 THEN + - 76 + 18 END WHEN + ( 2 ) * ( CASE WHEN - 13 NOT IN ( 10 / + + 81 * 71 * 81, 66 + - - 47 * 86 ) THEN + 67 * CAST( - 72 / - CASE 40 WHEN ( + MAX( 63 ) ) + + 78 THEN NULL WHEN 33 + 50 THEN NULL ELSE 59 END AS SIGNED ) ELSE NULL END ) * - 67 + COUNT( DISTINCT + 39 ) THEN - 45 * + 53 + 80 END, 75 )
----
65

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL COALESCE ( + 65, 85 + - CASE + + CASE - 0 WHEN - 12 THEN NULL WHEN - 67 THEN + - 76 + 18 END WHEN + ( 2 ) * ( CASE WHEN - 13 NOT IN ( 10 / + + 81 * 71 * 81, 66 + - - 47 * 86 ) THEN + 67 * CAST ( - 72 / - CASE 40 WHEN ( + MAX ( 63 ) ) + + 78 THEN NULL WHEN 33 + 50 THEN NULL ELSE 59 END AS INTEGER ) ELSE NULL END ) * - 67 + COUNT ( DISTINCT + 39 ) THEN - 45 * + 53 + 80 END, 75 )
----
65

query I rowsort
SELECT DISTINCT - 88 + - 48
----
-136

query I rowsort
SELECT - 81 col2
----
-81

query I rowsort
SELECT DISTINCT 82 AS col2
----
82

query I rowsort
SELECT 25 * - - 24 * - - 74 * - + 74 AS col1
----
-3285600

query I rowsort
SELECT 61 * + 28 AS col1
----
1708

query I rowsort
SELECT 35 - + - 76
----
111

query I rowsort
SELECT 44 - - - 29
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT 80 DIV + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3809
SELECT 80 / + 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 51 * - 91 * - COUNT( * )
----
4641

skipif mysql # not compatible
query I rowsort label-3810
SELECT 51 * - 91 * - COUNT ( * )
----
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MAX( ALL - + 64 ) * + 76 + - 36
----
-4900

skipif mysql # not compatible
query I rowsort label-3811
SELECT MAX ( ALL - + 64 ) * + 76 + - 36
----
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT - NULLIF ( - 0, - 54 * - SUM( ALL + + 74 ) + - COALESCE ( + 5, - 39 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT - NULLIF ( - 0, - 54 * - SUM ( ALL + + 74 ) + - COALESCE ( + 5, - 39 ) )
----
0

query I rowsort
SELECT ALL - 98 * - ( + 86 ) col2
----
8428

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT ALL 79 DIV NULLIF ( + + ( - COALESCE ( - + 42, - 81 ) ), - 89 + - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL 79 / NULLIF ( + + ( - COALESCE ( - + 42, - 81 ) ), - 89 + - 80 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT + 76 * - - 39 + - 85 DIV - 44 AS col2
----
2965

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 76 * - - 39 + - 85 / - 44 AS col2
----
2965

query I rowsort
SELECT DISTINCT - NULLIF ( - 2, - 87 - - + 13 + ( - 89 ) ) col0
----
2

query II rowsort
SELECT ALL - ( COALESCE ( - 7, 73 ) ), + 1 AS col0
----
7
1

query I rowsort
SELECT DISTINCT - - 54 AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT - 57 DIV + 31 + - - 41
----
40

skipif mysql # not compatible
query I rowsort label-3819
SELECT - 57 / + 31 + - - 41
----
40

query I rowsort
SELECT DISTINCT - - 67
----
67

query I rowsort
SELECT ALL - + 95 col1
----
-95

query I rowsort
SELECT DISTINCT - + 34 AS col0
----
-34

query I rowsort
SELECT + - 71 AS col2
----
-71

query I rowsort
SELECT ALL - + 52
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3825
SELECT DISTINCT 56 + + 89 AS col1, COALESCE ( 73, - MAX( 15 ) * - - 81, 90 ) - 37 AS col1
----
145
36

skipif mysql # not compatible
query II rowsort label-3825
SELECT DISTINCT 56 + + 89 AS col1, COALESCE ( 73, - MAX ( 15 ) * - - 81, 90 ) - 37 AS col1
----
145
36

query I rowsort
SELECT ALL - 5 + 17
----
12

query II rowsort
SELECT ALL + 41 + 30, NULLIF ( - 3, - 46 ) * + 36 + - 78 AS col1
----
71
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + ( 1 ) + - + 97 + 57 + + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + ( 1 ) + - + 97 + 57 + + COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT 81 - + - 67 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - COUNT( + - 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - COUNT ( + - 77 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT 71 * + 30 AS col1, NULLIF ( + + COUNT( * ), + - MAX( - NULLIF ( + 57, + 11 ) ) ) + - 27 - CASE + 39 WHEN - - 55 + - 27 * + + 44 THEN 8 WHEN + + 64 THEN 57 END AS col2
----
2130
NULL

skipif mysql # not compatible
query II rowsort label-3831
SELECT 71 * + 30 AS col1, NULLIF ( + + COUNT ( * ), + - MAX ( - NULLIF ( + 57, + 11 ) ) ) + - 27 - CASE + 39 WHEN - - 55 + - 27 * + + 44 THEN 8 WHEN + + 64 THEN 57 END AS col2
----
2130
NULL

query I rowsort
SELECT DISTINCT + 47 + - + 29 * - 23 * + 72
----
48071

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL COALESCE ( - COUNT( * ), + 3 ) + - 31 * COALESCE ( + - 41, + + ( 5 ) )
----
1270

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL COALESCE ( - COUNT ( * ), + 3 ) + - 31 * COALESCE ( + - 41, + + ( 5 ) )
----
1270

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT ALL 68 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL 68 / 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3835
SELECT COALESCE ( - ( - - CAST( NULL AS SIGNED ) ), - - CASE WHEN + 96 IS NOT NULL THEN NULL ELSE - 85 DIV + + 25 END * COALESCE ( 65, + + 86 * - + 77 * CAST( NULL AS SIGNED ) * - - 62 + + 61 - - COUNT( * ) DIV - 13 * - SUM( - + ( - - NULLIF ( - 92, + + 93 * - + 44 * - 88 ) ) ) - - + 26 DIV - 0 ) + - 53, - ( + 5 ) ) - 78
----
-83

skipif mysql # not compatible
query I rowsort label-3835
SELECT COALESCE ( - ( - - CAST ( NULL AS INTEGER ) ), - - CASE WHEN + 96 IS NOT NULL THEN NULL ELSE - 85 / + + 25 END * COALESCE ( 65, + + 86 * - + 77 * CAST ( NULL AS INTEGER ) * - - 62 + + 61 - - COUNT ( * ) / - 13 * - SUM ( - + ( - - NULLIF ( - 92, + + 93 * - + 44 * - 88 ) ) ) - - + 26 / - 0 ) + - 53, - ( + 5 ) ) - 78
----
-83

query I rowsort
SELECT ALL ( + 43 ) - 1
----
42

query II rowsort
SELECT - 79 AS col0, - 93 col2
----
-79
-93

query I rowsort
SELECT 35 + 67
----
102

query I rowsort
SELECT 70 * + 52
----
3640

query I rowsort
SELECT ALL 50 * - 2 AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT CAST( NULL AS SIGNED ) + + COUNT( + - ( - - 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( + - ( - - 89 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3842
SELECT 80 - - 49 + + 8 + - 10 DIV + + 87 + - 74, + 67 AS col0
----
63
67

skipif mysql # not compatible
query II rowsort label-3842
SELECT 80 - - 49 + + 8 + - 10 / + + 87 + - 74, + 67 AS col0
----
63
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - 39 - + COUNT( DISTINCT 51 )
----
-40

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 39 - + COUNT ( DISTINCT 51 )
----
-40

query I rowsort
SELECT 86 * + 2 AS col2
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT - 26 + CAST( - 57 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3845
SELECT - 26 + CAST ( - 57 AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT COUNT( * ) * 22
----
22

skipif mysql # not compatible
query I rowsort label-3846
SELECT COUNT ( * ) * 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT ALL - - CAST( NULL AS SIGNED ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 32
----
NULL

query I rowsort
SELECT + - 94 AS col0
----
-94

query I rowsort
SELECT ALL + 25 + - 5 * - + 36 AS col2
----
205

query I rowsort
SELECT DISTINCT - 67 + 42
----
-25

query I rowsort
SELECT ALL + 45 + + - 45 * + 34
----
-1485

query I rowsort
SELECT ALL - 34 + 40 * + 70 + - + 77
----
2689

query I rowsort
SELECT 17 + - + NULLIF ( + 85, + 20 / - 59 / + 72 / + + 67 ) * - 59 AS col2
----
5032

query I rowsort
SELECT + 46 * - 20 + + 31 AS col2
----
-889

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3855
SELECT 79 * - 11 + 48 + - COUNT( * ) - + + 7, - CAST( NULL AS DECIMAL ) / 7 * - COALESCE ( - 40, 34 - 85 ) AS col2
----
-829
NULL

skipif mysql # not compatible
query II rowsort label-3855
SELECT 79 * - 11 + 48 + - COUNT ( * ) - + + 7, - CAST ( NULL AS REAL ) / 7 * - COALESCE ( - 40, 34 - 85 ) AS col2
----
-829
NULL

query I rowsort
SELECT 93 - + - 87 AS col0
----
180

query I rowsort
SELECT - 62 * + 70 + - 47 + NULLIF ( + 10, 81 - - 75 * + - 38 ) - 20
----
-4397

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3858
SELECT CASE + 46 WHEN + 35 - 79 * - 3 + 44 * + AVG ( + 34 ) THEN - COALESCE ( + 74, - 86, - COUNT( * ), - ( COUNT( * ) ) * - 32 * - SUM( 27 ) * - 78 - + 91 + - + 0 ) END * + 38 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT CASE + 46 WHEN + 35 - 79 * - 3 + 44 * + AVG ( + 34 ) THEN - COALESCE ( + 74, - 86, - COUNT ( * ), - ( COUNT ( * ) ) * - 32 * - SUM ( 27 ) * - 78 - + 91 + - + 0 ) END * + 38 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( + + 50 ) - - - 25 + - 30 * - - 17 + + 11 AS col0
----
-474

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3860
SELECT - 21, 6 DIV - - 85 + - COUNT( * ) AS col2
----
-21
-1

skipif mysql # not compatible
query II rowsort label-3860
SELECT - 21, 6 / - - 85 + - COUNT ( * ) AS col2
----
-21
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT DISTINCT 23 col1, COUNT( * ) + 45 AS col2
----
23
46

skipif mysql # not compatible
query II rowsort label-3861
SELECT DISTINCT 23 col1, COUNT ( * ) + 45 AS col2
----
23
46

query I rowsort
SELECT + COALESCE ( - 69, 78 ) + + 23
----
-46

query I rowsort
SELECT + 21 + 12
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT - COALESCE ( - COUNT( * ), + - 7, 67 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3864
SELECT - COALESCE ( - COUNT ( * ), + - 7, 67 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT DISTINCT 32 DIV - 91 * + - 14 * COUNT( * ) * 75
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT 32 / - 91 * + - 14 * COUNT ( * ) * 75
----
0

query I rowsort
SELECT ALL 97 * + 94
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT + COUNT( * ) + - 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3867
SELECT + COUNT ( * ) + - 43 AS col1
----
-42

query II rowsort
SELECT ALL 67 * - 31 AS col0, NULLIF ( - - 50, + 69 ) AS col2
----
-2077
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + 79 + - MAX( + + 93 ) + - 30 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3869
SELECT + 79 + - MAX ( + + 93 ) + - 30 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - SUM( - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3870
SELECT - SUM ( - 92 ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3871
SELECT + CASE 16 WHEN - + 89 + + 58 THEN NULL WHEN + - NULLIF ( + ( - + 73 ), - CASE + CASE - COUNT( * ) WHEN 3 THEN + 66 WHEN 5 THEN NULL WHEN - 48 * - 88 * - + 6 THEN NULL ELSE + 97 * ( - + 24 ) + - 55 + + 14 END WHEN - CAST( NULL AS DECIMAL ) + + COALESCE ( 89, + + 67, - 96 ) THEN + 95 + - COALESCE ( 65, + 48 ) ELSE NULL END ) THEN NULL WHEN 60 THEN + 2 END * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + CASE 16 WHEN - + 89 + + 58 THEN NULL WHEN + - NULLIF ( + ( - + 73 ), - CASE + CASE - COUNT ( * ) WHEN 3 THEN + 66 WHEN 5 THEN NULL WHEN - 48 * - 88 * - + 6 THEN NULL ELSE + 97 * ( - + 24 ) + - 55 + + 14 END WHEN - CAST ( NULL AS REAL ) + + COALESCE ( 89, + + 67, - 96 ) THEN + 95 + - COALESCE ( 65, + 48 ) ELSE NULL END ) THEN NULL WHEN 60 THEN + 2 END * - 15 AS col0
----
NULL

query I rowsort
SELECT ALL 61 * + 37
----
2257

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( ALL - 28 ) * + 69
----
69

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( ALL - 28 ) * + 69
----
69

query I rowsort
SELECT + 25 - - 0
----
25

query II rowsort
SELECT + - 35 * + 35 AS col2, + 72
----
-1225
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + 16 * + + COALESCE ( + 70, - 94 + - 71 * + + 40 + COALESCE ( - COUNT( * ), 69 * + ( COUNT( * ) ) + + 91 * + 9 ), + - COUNT( * ) + - COUNT( * ), + 39 ) + 60 + + 25 + - SUM( ALL - 86 ) AS col0
----
1291

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + 16 * + + COALESCE ( + 70, - 94 + - 71 * + + 40 + COALESCE ( - COUNT ( * ), 69 * + ( COUNT ( * ) ) + + 91 * + 9 ), + - COUNT ( * ) + - COUNT ( * ), + 39 ) + 60 + + 25 + - SUM ( ALL - 86 ) AS col0
----
1291

query II rowsort
SELECT DISTINCT + - 72, 46 + - 11 * - + 71 AS col1
----
-72
827

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT 90 * - 80 + + + MIN( ALL 71 ) + NULLIF ( + - 37, + - COUNT( * ) * + NULLIF ( 6, + 94 - - 8 ) ) + 47 + 36
----
-7083

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT 90 * - 80 + + + MIN ( ALL 71 ) + NULLIF ( + - 37, + - COUNT ( * ) * + NULLIF ( 6, + 94 - - 8 ) ) + 47 + 36
----
-7083

query I rowsort
SELECT - 60 * - - 25 - + - 86 * - - ( - 73 )
----
-7778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT ALL - 30 * + - CAST( 12 AS SIGNED ) + - 19 + 25
----
366

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - 30 * + - CAST ( 12 AS INTEGER ) + - 19 + 25
----
366

onlyif mysql # aggregate syntax: 
query II rowsort label-3881
SELECT DISTINCT + + 39, CASE - ( 4 ) WHEN + 45 THEN 95 + + + COUNT( * ) * - 5 + ( + 51 ) WHEN - 40 + 98 + - 8 * + - 34 * + 94 * - + 54 * 95 - 34 THEN + 22 * - 32 + - - 98 ELSE NULL END * 38 + - 55 + - - CASE - ( 12 ) WHEN + 85 THEN - COUNT( * ) END * 66 * + 43 AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-3881
SELECT DISTINCT + + 39, CASE - ( 4 ) WHEN + 45 THEN 95 + + + COUNT ( * ) * - 5 + ( + 51 ) WHEN - 40 + 98 + - 8 * + - 34 * + 94 * - + 54 * 95 - 34 THEN + 22 * - 32 + - - 98 ELSE NULL END * 38 + - 55 + - - CASE - ( 12 ) WHEN + 85 THEN - COUNT ( * ) END * 66 * + 43 AS col1
----
39
NULL

query II rowsort
SELECT + 20 AS col0, 62
----
20
62

onlyif mysql # DIV for integer division: 
query II rowsort label-3883
SELECT + 37 AS col1, - 42 DIV - + 95 AS col1
----
37
0

skipif mysql # not compatible
query II rowsort label-3883
SELECT + 37 AS col1, - 42 / - + 95 AS col1
----
37
0

query II rowsort
SELECT 42, 33 * - 87 + - - 10 AS col2
----
42
-2861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL + + 27 * MIN( 53 ) + - COALESCE ( - + 87, + 61 * - CAST( NULL AS SIGNED ) )
----
1518

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + + 27 * MIN ( 53 ) + - COALESCE ( - + 87, + 61 * - CAST ( NULL AS INTEGER ) )
----
1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3886
SELECT - + ( + 92 ) + - 13 - + 16 DIV + COALESCE ( COUNT( * ), - 97, - 20 ) AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-3886
SELECT - + ( + 92 ) + - 13 - + 16 / + COALESCE ( COUNT ( * ), - 97, - 20 ) AS col1
----
-121

query II rowsort
SELECT 48 AS col1, - 20 AS col1
----
48
-20

query I rowsort
SELECT - - 28 + 5
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL - - 36 * + 63 * - COUNT( 67 ) * - 3 + - 92 * + 32
----
3860

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - - 36 * + 63 * - COUNT ( 67 ) * - 3 + - 92 * + 32
----
3860

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT - 62 DIV + 53 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3890
SELECT - 62 / + 53 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT MAX( DISTINCT - + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-3891
SELECT MAX ( DISTINCT - + 50 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3892
SELECT ALL - 7 * COUNT( * ) - + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - - 2 * - 78 AS col1, - 57 * - 73 * - + ( COUNT( * ) ) + 71 * - 39 + + 66
----
NULL
-6864

skipif mysql # not compatible
query II rowsort label-3892
SELECT ALL - 7 * COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - - 2 * - 78 AS col1, - 57 * - 73 * - + ( COUNT ( * ) ) + 71 * - 39 + + 66
----
NULL
-6864

query I rowsort
SELECT + + 34 AS col1
----
34

query I rowsort
SELECT ALL + + 17 * 22 - - 22 + + 65 - 90 AS col1
----
371

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT MAX( ALL 67 ), 13 * - - 88 AS col1
----
67
1144

skipif mysql # not compatible
query II rowsort label-3895
SELECT MAX ( ALL 67 ), 13 * - - 88 AS col1
----
67
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT SUM( ALL + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3896
SELECT SUM ( ALL + 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL + 39 * - NULLIF ( - CAST( NULL AS SIGNED ), 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + 39 * - NULLIF ( - CAST ( NULL AS INTEGER ), 0 )
----
NULL

query I rowsort
SELECT DISTINCT 62 * ( - 18 )
----
-1116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3899
SELECT ALL + CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT ( 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL + 39 * - COUNT( * ) * 26 AS col0
----
-1014

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 39 * - COUNT ( * ) * 26 AS col0
----
-1014

query I rowsort
SELECT DISTINCT - 67 + ( 53 ) - - 76 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT - ( - + 23 ) + + 61 DIV - 67 - - ( + + 18 )
----
41

skipif mysql # not compatible
query I rowsort label-3903
SELECT - ( - + 23 ) + + 61 / - 67 - - ( + + 18 )
----
41

query I rowsort
SELECT - ( 93 ) col1
----
-93

query II rowsort
SELECT ALL 20 + + - 31, - ( - 68 ) + - - 89 AS col1
----
-11
157

query I rowsort
SELECT + 8 - + 8 - 90 + + 46 + - 57
----
-101

onlyif mysql # DIV for integer division: 
query II rowsort label-3907
SELECT ALL 14 DIV + + 94 AS col0, - 14 * - - 24
----
0
-336

skipif mysql # not compatible
query II rowsort label-3907
SELECT ALL 14 / + + 94 AS col0, - 14 * - - 24
----
0
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - COALESCE ( - MIN( + 17 ), + 34 )
----
17

skipif mysql # not compatible
query I rowsort label-3908
SELECT - COALESCE ( - MIN ( + 17 ), + 34 )
----
17

query I rowsort
SELECT ALL - 4 + + 61 + 2
----
59

query I rowsort
SELECT DISTINCT 49 * + 28 AS col2
----
1372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3911
SELECT ALL 61 + + ( + - 36 ) * + + ( - - NULLIF ( NULLIF ( - + CAST( NULL AS DECIMAL ), + + 42 / + COUNT( * ) ), 41 ) ), 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3911
SELECT ALL 61 + + ( + - 36 ) * + + ( - - NULLIF ( NULLIF ( - + CAST ( NULL AS REAL ), + + 42 / + COUNT ( * ) ), 41 ) ), 24 AS col1
----
NULL
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3912
SELECT ALL 5 DIV - 67 + - 91, - 20 * COUNT( DISTINCT 22 ) AS col1
----
-91
-20

skipif mysql # not compatible
query II rowsort label-3912
SELECT ALL 5 / - 67 + - 91, - 20 * COUNT ( DISTINCT 22 ) AS col1
----
-91
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3913
SELECT DISTINCT COUNT( * ) * - - 91 AS col2, + 15
----
91
15

skipif mysql # not compatible
query II rowsort label-3913
SELECT DISTINCT COUNT ( * ) * - - 91 AS col2, + 15
----
91
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + NULLIF ( 72, - + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-3914
SELECT + NULLIF ( 72, - + COUNT ( * ) )
----
72

query I rowsort
SELECT + - 79 * 91 AS col1
----
-7189

query I rowsort
SELECT + 88 col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - + ( + 97 ) DIV + - 39 + - COUNT( * ) * - + 50 - 0 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - + ( + 97 ) / + - 39 + - COUNT ( * ) * - + 50 - 0 AS col2
----
52

query I rowsort
SELECT + 51 * + 21 * - 18
----
-19278

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL - 91 - - - ( + - 21 ) * - CASE + + ( - - 29 ) WHEN 27 + 40 THEN + COALESCE ( - 86, 8 * + 63 ) WHEN COUNT( * ) THEN NULL ELSE 63 END
----
-1414

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - 91 - - - ( + - 21 ) * - CASE + + ( - - 29 ) WHEN 27 + 40 THEN + COALESCE ( - 86, 8 * + 63 ) WHEN COUNT ( * ) THEN NULL ELSE 63 END
----
-1414

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT COUNT( * ) + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3920
SELECT COUNT ( * ) + - 3 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL + + 87 - - + 4 + - ( + MIN( DISTINCT + 61 ) ) * + 7 * + 65
----
-27664

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL + + 87 - - + 4 + - ( + MIN ( DISTINCT + 61 ) ) * + 7 * + 65
----
-27664

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 5 * COUNT( * ) * + 76
----
380

skipif mysql # not compatible
query I rowsort label-3922
SELECT 5 * COUNT ( * ) * + 76
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + 87 + + - MAX( + 54 )
----
33

skipif mysql # not compatible
query I rowsort label-3923
SELECT + 87 + + - MAX ( + 54 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3924
SELECT + MAX( ALL + 12 ) DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT + MAX ( ALL + 12 ) / + 95
----
0

query I rowsort
SELECT ALL - + 70 AS col1
----
-70

query I rowsort
SELECT - - 74 * 94 + + + 72
----
7028

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3927
SELECT ALL - COUNT( * ) AS col0, - CASE - - COUNT( - + 26 ) WHEN - 43 / - 61 THEN NULL WHEN - 3 + + 43 THEN NULL ELSE - NULLIF ( CASE + + ( - 41 ) WHEN 56 * + + 39 * 23 * - 14 THEN - ( CASE - 7 WHEN + + 42 THEN + 63 WHEN - 35 THEN NULL END ) + - 78 - - COALESCE ( CAST( + 9 AS DECIMAL ), COUNT( * ), 92 ) * - 18 END, 61 ) END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3927
SELECT ALL - COUNT ( * ) AS col0, - CASE - - COUNT ( - + 26 ) WHEN - 43 / - 61 THEN NULL WHEN - 3 + + 43 THEN NULL ELSE - NULLIF ( CASE + + ( - 41 ) WHEN 56 * + + 39 * 23 * - 14 THEN - ( CASE - 7 WHEN + + 42 THEN + 63 WHEN - 35 THEN NULL END ) + - 78 - - COALESCE ( CAST ( + 9 AS REAL ), COUNT ( * ), 92 ) * - 18 END, 61 ) END AS col2
----
-1
NULL

query I rowsort
SELECT 45 * + 32
----
1440

query I rowsort
SELECT 43 * 74 + - + 72 + 19 + + 22 * - - 73 + 80 AS col2
----
4815

onlyif mysql # DIV for integer division: 
query II rowsort label-3930
SELECT ALL - 7 * 42 DIV 50 AS col0, + 27 * 72
----
-5
1944

skipif mysql # not compatible
query II rowsort label-3930
SELECT ALL - 7 * 42 / 50 AS col0, + 27 * 72
----
-5
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3931
SELECT DISTINCT 39 * + COUNT( 62 ), - 55 DIV 13 AS col1
----
39
-4

skipif mysql # not compatible
query II rowsort label-3931
SELECT DISTINCT 39 * + COUNT ( 62 ), - 55 / 13 AS col1
----
39
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT 64 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-3932
SELECT 64 / + 35
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3933
SELECT ( 53 ) * + + CASE + ( + + ( + 80 ) ) WHEN + - 38 - - 28 THEN - 30 * + 56 ELSE NULL END - - + 80 * 76 + - 90 AS col2, - 46 - + 32 + - CASE + NULLIF ( 88, 2 ) WHEN - 44 THEN 27 WHEN - - 7 + - 80 - MIN( ALL + + 80 ) THEN - CASE + - 69 WHEN - 19 * + 94 THEN 14 * + 52 END END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3933
SELECT ( 53 ) * + + CASE + ( + + ( + 80 ) ) WHEN + - 38 - - 28 THEN - 30 * + 56 ELSE NULL END - - + 80 * 76 + - 90 AS col2, - 46 - + 32 + - CASE + NULLIF ( 88, 2 ) WHEN - 44 THEN 27 WHEN - - 7 + - 80 - MIN ( ALL + + 80 ) THEN - CASE + - 69 WHEN - 19 * + 94 THEN 14 * + 52 END END AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL - 7 * + CAST( + - CASE + 38 WHEN 68 THEN - + 36 * - 11 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL - 7 * + CAST ( + - CASE + 38 WHEN 68 THEN - + 36 * - 11 ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + 53 * SUM( DISTINCT 52 ) * 15
----
41340

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + 53 * SUM ( DISTINCT 52 ) * 15
----
41340

query I rowsort
SELECT 80 + - 85 * 9 AS col1
----
-685

query I rowsort
SELECT 86 * + 70
----
6020

query I rowsort
SELECT DISTINCT + 35 + + - 11
----
24

query II rowsort
SELECT 38, ( + 30 ) AS col2
----
38
30

query I rowsort
SELECT ALL + 17 + + 95 AS col0
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT DISTINCT - MIN( 57 ) + + 81 + - 32, + 83 - + 45 AS col1
----
-8
38

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT - MIN ( 57 ) + + 81 + - 32, + 83 - + 45 AS col1
----
-8
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT 14 + ( - NULLIF ( + SUM( - - 20 ), - - 66 * - 42 + + 30 * - 55 * COALESCE ( - - 99, + - ( 67 ) ) ) ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3942
SELECT 14 + ( - NULLIF ( + SUM ( - - 20 ), - - 66 * - 42 + + 30 * - 55 * COALESCE ( - - 99, + - ( 67 ) ) ) ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT - COUNT( - + CAST( - 27 AS SIGNED ) ) * - 85 * - + 51 + + - COUNT( * ) AS col1
----
-4336

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - COUNT ( - + CAST ( - 27 AS INTEGER ) ) * - 85 * - + 51 + + - COUNT ( * ) AS col1
----
-4336

query I rowsort
SELECT ALL - 18 + - 66
----
-84

query I rowsort
SELECT DISTINCT + 63 + + + 34 * - 79 AS col1
----
-2623

query I rowsort
SELECT ALL 8 * + 7 AS col0
----
56

query II rowsort
SELECT - 61, + ( 93 ) col1
----
-61
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3948
SELECT ALL 62, - COUNT( * ) * + 71 DIV + - 16 - - MIN( 45 ) AS col2
----
62
49

skipif mysql # not compatible
query II rowsort label-3948
SELECT ALL 62, - COUNT ( * ) * + 71 / + - 16 - - MIN ( 45 ) AS col2
----
62
49

query I rowsort
SELECT - ( 98 ) AS col2
----
-98

query II rowsort
SELECT 96 AS col2, - 85 AS col0
----
96
-85

query I rowsort
SELECT - 69 * + 20 + + COALESCE ( - 41, - 51 + - 92 )
----
-1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT - 78 + - + CAST( NULL AS SIGNED ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT - 78 + - + CAST ( NULL AS INTEGER ) * + 16
----
NULL

query I rowsort
SELECT + - 61 AS col1
----
-61

query I rowsort
SELECT DISTINCT - - 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - COUNT( * ) * - 42
----
42

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COUNT ( * ) * - 42
----
42

query I rowsort
SELECT ALL + ( - NULLIF ( + ( - 19 ), + 81 ) ) * + + 68
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT - - ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - - ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT - MAX( ( - 60 ) ) DIV 46 - + 40 - 79 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-3958
SELECT - MAX ( ( - 60 ) ) / 46 - + 40 - 79 AS col2
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT DISTINCT 23 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT 23 / - 70
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3960
SELECT + COUNT( * ) DIV + 91 - 19 * - - 78 AS col0, - 6
----
-1482
-6

skipif mysql # not compatible
query II rowsort label-3960
SELECT + COUNT ( * ) / + 91 - 19 * - - 78 AS col0, - 6
----
-1482
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL COALESCE ( + COUNT( DISTINCT - 67 ), - 47 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL COALESCE ( + COUNT ( DISTINCT - 67 ), - 47 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT COALESCE ( + - 78, 42 DIV - - ( 92 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-3962
SELECT COALESCE ( + - 78, 42 / - - ( 92 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + 85 * 55 * - + COUNT( * )
----
-4675

skipif mysql # not compatible
query I rowsort label-3963
SELECT + 85 * 55 * - + COUNT ( * )
----
-4675

query I rowsort
SELECT DISTINCT 64 * + + 71 AS col2
----
4544

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - - MAX( DISTINCT - + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - - MAX ( DISTINCT - + 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 40 + + COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3966
SELECT 40 + + COUNT ( * ) AS col2
----
41

query II rowsort
SELECT 54 * + 56 AS col0, - 80
----
3024
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT 16 * COALESCE ( - 94, NULLIF ( - - MIN( + - 57 ), - 42 * + 66 ) ) AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT 16 * COALESCE ( - 94, NULLIF ( - - MIN ( + - 57 ), - 42 * + 66 ) ) AS col2
----
-1504

query I rowsort
SELECT 86 col0
----
86

query I rowsort
SELECT ALL - 5 col1
----
-5

query I rowsort
SELECT DISTINCT 9 + + + 19
----
28

query II rowsort
SELECT DISTINCT 86 + + 5 AS col1, 89
----
91
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3973
SELECT ( - 45 ) + - + CAST( NULL AS SIGNED ) - - COUNT( * ) / 88, + 95 + - ( - 97 ) AS col0
----
NULL
192

skipif mysql # not compatible
query II rowsort label-3973
SELECT ( - 45 ) + - + CAST ( NULL AS INTEGER ) - - COUNT ( * ) / 88, + 95 + - ( - 97 ) AS col0
----
NULL
192

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT 5 * 33 AS col0, - ( + - COUNT( * ) ) AS col0
----
165
1

skipif mysql # not compatible
query II rowsort label-3974
SELECT 5 * 33 AS col0, - ( + - COUNT ( * ) ) AS col0
----
165
1

query I rowsort
SELECT ALL - 76 * + ( + 88 ) col1
----
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT CASE COUNT( * ) WHEN + 83 * - COUNT( * ) THEN NULL ELSE + + COUNT( * ) END + - 11 * + 33 + - + 7
----
-369

skipif mysql # not compatible
query I rowsort label-3976
SELECT CASE COUNT ( * ) WHEN + 83 * - COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) END + - 11 * + 33 + - + 7
----
-369

query I rowsort
SELECT ALL 85 + + 84 * - + 47 AS col2
----
-3863

query I rowsort
SELECT ALL 2 * + - 20
----
-40

query I rowsort
SELECT 20 * + - 61 AS col0
----
-1220

query I rowsort
SELECT ALL - 35 col1
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT - 70 + + + CAST( - 69 AS SIGNED )
----
-139

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 70 + + + CAST ( - 69 AS INTEGER )
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - 84 + + COUNT( DISTINCT + - CASE + 33 WHEN - 87 + + + 23 THEN + CASE 59 WHEN - 81 THEN + 17 * - 64 + + 60 ELSE NULL END ELSE 56 END ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-3982
SELECT - 84 + + COUNT ( DISTINCT + - CASE + 33 WHEN - 87 + + + 23 THEN + CASE 59 WHEN - 81 THEN + 17 * - 64 + + 60 ELSE NULL END ELSE 56 END ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT - 67 - - COALESCE ( - 31, - 24 DIV + - 20 )
----
-98

skipif mysql # not compatible
query I rowsort label-3983
SELECT - 67 - - COALESCE ( - 31, - 24 / + - 20 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + COALESCE ( - 7, COUNT( * ) * + - 81 - - 32 * - COUNT( * ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + COALESCE ( - 7, COUNT ( * ) * + - 81 - - 32 * - COUNT ( * ) ) AS col0
----
-7

query II rowsort
SELECT - + ( 91 ) col0, + 34 * - 52 * + 23 AS col2
----
-91
-40664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT - - 96 + + CAST( + 19 AS SIGNED ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-3986
SELECT - - 96 + + CAST ( + 19 AS INTEGER ) AS col2
----
115

query I rowsort
SELECT ALL - + 41 * - 84 * + + 71
----
244524

query I rowsort
SELECT ALL - + 16 * 8 - + 79
----
-207

query I rowsort
SELECT ALL + - 25 AS col2
----
-25

query I rowsort
SELECT ALL + - 52 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3991
SELECT + CASE - COUNT( * ) WHEN 15 * + 3 * + 17 + + CAST( NULL AS SIGNED ) + + 44 THEN - 18 ELSE 75 * + 69 - + 20 END
----
5155

skipif mysql # not compatible
query I rowsort label-3991
SELECT + CASE - COUNT ( * ) WHEN 15 * + 3 * + 17 + + CAST ( NULL AS INTEGER ) + + 44 THEN - 18 ELSE 75 * + 69 - + 20 END
----
5155

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ALL + 37 * - 5 + 76 * + - CASE - 97 WHEN 78 THEN 34 * 22 + ( - 77 ) * + 24 + - 86 * + 79 + - - 82 + CASE MIN( - ( 80 ) ) WHEN + MIN( DISTINCT + + 10 ) THEN 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + 37 * - 5 + 76 * + - CASE - 97 WHEN 78 THEN 34 * 22 + ( - 77 ) * + 24 + - 86 * + 79 + - - 82 + CASE MIN ( - ( 80 ) ) WHEN + MIN ( DISTINCT + + 10 ) THEN 26 END END
----
NULL

query I rowsort
SELECT ( - - 33 ) * + + 56 + 97 + 20
----
1965

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT ALL + 89 DIV - + 4 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + 89 / - + 4 AS col1
----
-22

query I rowsort
SELECT DISTINCT 53 * 24 + + 78 * 77 AS col2
----
7278

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - MIN( - - 88 ) * + + 51 AS col2
----
-4488

skipif mysql # not compatible
query I rowsort label-3996
SELECT - MIN ( - - 88 ) * + + 51 AS col2
----
-4488

query I rowsort
SELECT ALL 28 * - 59 + - + 47 AS col1
----
-1699

query I rowsort
SELECT DISTINCT 62 * 95 * - 10
----
-58900

onlyif mysql # aggregate syntax: 
query II rowsort label-3999
SELECT ALL 97 * - COUNT( + - ( 61 ) ) * - 40 + + 45, + 3 AS col1
----
3925
3

skipif mysql # not compatible
query II rowsort label-3999
SELECT ALL 97 * - COUNT ( + - ( 61 ) ) * - 40 + + 45, + 3 AS col1
----
3925
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT + COUNT( * ) * + 64 * + CASE - 42 WHEN - 71 THEN + COUNT( + COALESCE ( + CAST( - 21 AS SIGNED ), - 99 ) ) ELSE + - 14 END
----
-896

skipif mysql # not compatible
query I rowsort label-4000
SELECT + COUNT ( * ) * + 64 * + CASE - 42 WHEN - 71 THEN + COUNT ( + COALESCE ( + CAST ( - 21 AS INTEGER ), - 99 ) ) ELSE + - 14 END
----
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT 17 * - - 82 * - 39 + 24 DIV - 85 * + 71
----
-54366

skipif mysql # not compatible
query I rowsort label-4001
SELECT 17 * - - 82 * - 39 + 24 / - 85 * + 71
----
-54366

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT MAX( ALL + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4002
SELECT MAX ( ALL + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL + 76 * - + 66 + MAX( ALL - - 65 ) * - + 77 * - - 47 AS col1
----
-240251

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL + 76 * - + 66 + MAX ( ALL - - 65 ) * - + 77 * - - 47 AS col1
----
-240251

query I rowsort
SELECT ALL 61 * + + 6 AS col1
----
366

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4005
SELECT DISTINCT 52, ( + 37 ) + + COALESCE ( + COUNT( * ), 4, + - COUNT( * ) DIV + 2 + - 57 + COUNT( * ) * + + COUNT( DISTINCT + ( + - 67 ) ) + 16, + + 76 ) AS col0
----
52
38

skipif mysql # not compatible
query II rowsort label-4005
SELECT DISTINCT 52, ( + 37 ) + + COALESCE ( + COUNT ( * ), 4, + - COUNT ( * ) / + 2 + - 57 + COUNT ( * ) * + + COUNT ( DISTINCT + ( + - 67 ) ) + 16, + + 76 ) AS col0
----
52
38

query I rowsort
SELECT ALL 55 - + - 26
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT + NULLIF ( - - 23, + 36 ) * + 74 + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT + NULLIF ( - - 23, + 36 ) * + 74 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - 43 * + + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4008
SELECT - 43 * + + COUNT ( * ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT - - 61 + + 24 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT - - 61 + + 24 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT CAST( + 88 AS SIGNED ) col0
----
88

skipif mysql # not compatible
query I rowsort label-4011
SELECT CAST ( + 88 AS INTEGER ) col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT + + CAST( + 37 AS SIGNED ) * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4012
SELECT + + CAST ( + 37 AS INTEGER ) * COUNT ( * )
----
37

query II rowsort
SELECT DISTINCT 69 * + CASE - 54 WHEN - - 22 THEN - + 90 * NULLIF ( + 99, 6 ) - + + 30 ELSE NULL END * + 17 * + 67 col1, 66 * - 93
----
NULL
-6138

query I rowsort
SELECT DISTINCT + ( + 15 ) * 83 - - - 30
----
1215

query I rowsort
SELECT - + 77
----
-77

query I rowsort
SELECT + 70 * - 5
----
-350

query I rowsort
SELECT + 84 - - 44
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT - - 59 DIV + 38
----
1

skipif mysql # not compatible
query I rowsort label-4018
SELECT - - 59 / + 38
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4019
SELECT ALL + 54 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + 54 / - 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT + + CAST( NULL AS SIGNED ) * + 86 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT + + CAST ( NULL AS INTEGER ) * + 86 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 97 - - + 48 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - MIN( DISTINCT 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4022
SELECT - MIN ( DISTINCT 66 ) AS col0
----
-66

query I rowsort
SELECT - - 73 * 25 AS col0
----
1825

onlyif mysql # DIV for integer division: 
query I rowsort label-4024
SELECT - - ( + + 94 ) + - - 61 DIV 44
----
95

skipif mysql # not compatible
query I rowsort label-4024
SELECT - - ( + + 94 ) + - - 61 / 44
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4025
SELECT DISTINCT COUNT( DISTINCT 37 ) / + - 81 + - + AVG ( + CAST( NULL AS SIGNED ) ) AS col1, ( NULLIF ( + + 57, 40 ) ) AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-4025
SELECT DISTINCT COUNT ( DISTINCT 37 ) / + - 81 + - + AVG ( + CAST ( NULL AS INTEGER ) ) AS col1, ( NULLIF ( + + 57, 40 ) ) AS col0
----
NULL
57

query I rowsort
SELECT DISTINCT + 8 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT ALL + 83 DIV + 39 + - COUNT( DISTINCT 18 ) + + + ( + - 72 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + 83 / + 39 + - COUNT ( DISTINCT 18 ) + + + ( + - 72 ) AS col0
----
-71

query I rowsort
SELECT DISTINCT + 98 col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT DISTINCT - MAX( + + 36 ) / - 74 * + 35 + - COUNT( * ) * 98 * - SUM( + ( 62 ) ) * - COUNT( * ) + + - 36 + + - CAST( NULL AS SIGNED ) + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - MAX ( + + 36 ) / - 74 * + 35 + - COUNT ( * ) * 98 * - SUM ( + ( 62 ) ) * - COUNT ( * ) + + - 36 + + - CAST ( NULL AS INTEGER ) + - 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT + 42 DIV - 65 + - SUM( DISTINCT + 6 ) - + 17 col0
----
-23

skipif mysql # not compatible
query I rowsort label-4030
SELECT + 42 / - 65 + - SUM ( DISTINCT + 6 ) - + 17 col0
----
-23

query II rowsort
SELECT ALL + 44 AS col2, - 52 + + + 34 - 68 AS col1
----
44
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - CASE + - 29 WHEN + 37 * 87 + + 46 - COUNT( * ) * - 27 THEN ( - 47 ) ELSE + - 47 END * 1 + + 6 - - 59
----
112

skipif mysql # not compatible
query I rowsort label-4032
SELECT - CASE + - 29 WHEN + 37 * 87 + + 46 - COUNT ( * ) * - 27 THEN ( - 47 ) ELSE + - 47 END * 1 + + 6 - - 59
----
112

query I rowsort
SELECT - ( - + 65 ) * - + 13 * + - 45 AS col0
----
38025

query I rowsort
SELECT ( - 40 )
----
-40

query I rowsort
SELECT + 92 * + + COALESCE ( + 85, 41 )
----
7820

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4036
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4037
SELECT + 9 DIV + 69, + 58 DIV - 17 AS col1
----
0
-3

skipif mysql # not compatible
query II rowsort label-4037
SELECT + 9 / + 69, + 58 / - 17 AS col1
----
0
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4038
SELECT - CAST( NULL AS SIGNED ) * + 69, 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4038
SELECT - CAST ( NULL AS INTEGER ) * + 69, 3 AS col0
----
NULL
3

query I rowsort
SELECT DISTINCT + ( 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT ALL + 32 * + 18 - COUNT( * ) + + COUNT( * ) AS col1, MIN( + 26 ) AS col0
----
576
26

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL + 32 * + 18 - COUNT ( * ) + + COUNT ( * ) AS col1, MIN ( + 26 ) AS col0
----
576
26

query I rowsort
SELECT ( 8 ) AS col1
----
8

query I rowsort
SELECT ALL + ( - + 59 ) col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT - 73 DIV - 12 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4043
SELECT - 73 / - 12 AS col0
----
6

query I rowsort
SELECT + ( - - 11 )
----
11

query I rowsort
SELECT - 37 + + 77 * + 32 + - 12 * 83 - 23 + - 97 * + 72 AS col0
----
-5576

onlyif mysql # DIV for integer division: 
query II rowsort label-4046
SELECT + 43 DIV + 22, + 13 AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-4046
SELECT + 43 / + 22, + 13 AS col1
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL 49 * - MIN( ALL + - 48 )
----
2352

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 49 * - MIN ( ALL + - 48 )
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL COUNT( * ) * + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL COUNT ( * ) * + - 42
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT - 13 + + - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 13 + + - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 31 * - ( - - 64 )
----
1984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT 60 * - 57 + - 56 * - NULLIF ( + 73, + CAST( NULL AS SIGNED ) ) * - + 60 col2
----
-248700

skipif mysql # not compatible
query I rowsort label-4051
SELECT 60 * - 57 + - 56 * - NULLIF ( + 73, + CAST ( NULL AS INTEGER ) ) * - + 60 col2
----
-248700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4052
SELECT DISTINCT + COUNT( ALL 18 ) * - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT + COUNT ( ALL 18 ) * - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 88 - + 61
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4054
SELECT ALL 29 AS col2, 10 - CAST( NULL AS SIGNED ) col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL 29 AS col2, 10 - CAST ( NULL AS INTEGER ) col0
----
29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4055
SELECT 65 AS col1, - 73 * CAST( NULL AS SIGNED )
----
65
NULL

skipif mysql # not compatible
query II rowsort label-4055
SELECT 65 AS col1, - 73 * CAST ( NULL AS INTEGER )
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - 29 + - 3 + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4056
SELECT - 29 + - 3 + COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT - ( - - 32 )
----
-32

query II rowsort
SELECT 2, 73 AS col1
----
2
73

query I rowsort
SELECT + 82 + - 62 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT COUNT( * ) - + 39 + 31
----
-7

skipif mysql # not compatible
query I rowsort label-4060
SELECT COUNT ( * ) - + 39 + 31
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4061
SELECT 46 * + - CAST( NULL AS SIGNED ) + + COUNT( * ) * 27, - 85 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-4061
SELECT 46 * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 27, - 85 AS col1
----
NULL
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( - 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( - 55 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4063
SELECT ALL - 5, 10 + + COUNT( * ) AS col2
----
-5
11

skipif mysql # not compatible
query II rowsort label-4063
SELECT ALL - 5, 10 + + COUNT ( * ) AS col2
----
-5
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT ALL - 58 + + - 68 DIV - - 70 * + 46 * 90 * 4 + + + 74 - 47 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - 58 + + - 68 / - - 70 * + 46 * 90 * 4 + + + 74 - 47 AS col2
----
-31

query II rowsort
SELECT DISTINCT 64 AS col1, - 9 col1
----
64
-9

query I rowsort
SELECT ALL - + 73 + + + 97
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT NULLIF ( + 89, - - 37 + + COUNT( * ) * COALESCE ( 18, + 30 * - - 85 + 13 ) + - 42 - - ( - 51 ) ) / - ( CASE 54 WHEN + - 32 * - - COUNT( * ) + COUNT( DISTINCT + 29 ) + 74 / + 29 + + + 5 + + COUNT( * ) THEN NULL WHEN + + 9 + + COALESCE ( + - COUNT( * ), 9 * 33 + + COALESCE ( COUNT( * ), - 70 + - ( - 15 ), + 21 + + ( - 38 + - 86 * COALESCE ( + 17 + + 74 / + COUNT( * ), COUNT( * ), 74, - 28 ) ) ) ) + - 90 THEN CASE 3 WHEN 13 THEN 63 END WHEN - 25 - SUM( DISTINCT - ( 79 ) ) * + CASE 57 WHEN 76 * 16 + 22 / - 25 THEN + ( 66 ) * + 91 ELSE NULL END THEN NULL ELSE NULL END ) + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT NULLIF ( + 89, - - 37 + + COUNT ( * ) * COALESCE ( 18, + 30 * - - 85 + 13 ) + - 42 - - ( - 51 ) ) / - ( CASE 54 WHEN + - 32 * - - COUNT ( * ) + COUNT ( DISTINCT + 29 ) + 74 / + 29 + + + 5 + + COUNT ( * ) THEN NULL WHEN + + 9 + + COALESCE ( + - COUNT ( * ), 9 * 33 + + COALESCE ( COUNT ( * ), - 70 + - ( - 15 ), + 21 + + ( - 38 + - 86 * COALESCE ( + 17 + + 74 / + COUNT ( * ), COUNT ( * ), 74, - 28 ) ) ) ) + - 90 THEN CASE 3 WHEN 13 THEN 63 END WHEN - 25 - SUM ( DISTINCT - ( 79 ) ) * + CASE 57 WHEN 76 * 16 + 22 / - 25 THEN + ( 66 ) * + 91 ELSE NULL END THEN NULL ELSE NULL END ) + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - ( 38 ) + + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - ( 38 ) + + + COUNT ( * )
----
-37

query I rowsort
SELECT ALL + 28 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + COUNT( * ) * + NULLIF ( - 85, MAX( DISTINCT + 8 ) * 9 ) + - 30
----
-115

skipif mysql # not compatible
query I rowsort label-4070
SELECT + COUNT ( * ) * + NULLIF ( - 85, MAX ( DISTINCT + 8 ) * 9 ) + - 30
----
-115

query I rowsort
SELECT ALL 14 + - - 35 AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-4072
SELECT 54 * - 25 * + + 66 AS col2, 25 * 28 + 12 - - 6 DIV - 59 AS col0
----
-89100
712

skipif mysql # not compatible
query II rowsort label-4072
SELECT 54 * - 25 * + + 66 AS col2, 25 * 28 + 12 - - 6 / - 59 AS col0
----
-89100
712

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT 90 * - ( - + COUNT( * ) ) + 13 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-4073
SELECT 90 * - ( - + COUNT ( * ) ) + 13 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL - CASE 6 WHEN + + ( - - COALESCE ( 30, - ( + AVG ( + + 46 ) ) ) ) / - + MIN( - ( + 79 ) ) - 70 + - 11 * - COUNT( * ) - - - 16 THEN NULL WHEN - CAST( COUNT( DISTINCT + + 36 ) AS SIGNED ) + 79 THEN 20 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - CASE 6 WHEN + + ( - - COALESCE ( 30, - ( + AVG ( + + 46 ) ) ) ) / - + MIN ( - ( + 79 ) ) - 70 + - 11 * - COUNT ( * ) - - - 16 THEN NULL WHEN - CAST ( COUNT ( DISTINCT + + 36 ) AS INTEGER ) + 79 THEN 20 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL - COUNT( * ) - + + CAST( + - 71 AS SIGNED ) * 81 AS col0
----
5750

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL - COUNT ( * ) - + + CAST ( + - 71 AS INTEGER ) * 81 AS col0
----
5750

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + COUNT( * ) * + + 29
----
29

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + COUNT ( * ) * + + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL + 54 * - - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + 54 * - - COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT + COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT + COUNT ( * ) * + 52
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT DISTINCT - MIN( ALL - - 1 ) AS col1, 25 * - 67 - - 88 + 41 AS col2
----
-1
-1546

skipif mysql # not compatible
query II rowsort label-4079
SELECT DISTINCT - MIN ( ALL - - 1 ) AS col1, 25 * - 67 - - 88 + 41 AS col2
----
-1
-1546

query I rowsort
SELECT ALL - 27 * - - 35
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT - SUM( DISTINCT + 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - SUM ( DISTINCT + 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4082
SELECT ALL + 47 / 67 - COUNT( * ) + + COUNT( - + 52 ) + + CASE - 73 WHEN 75 THEN - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) / + 24 THEN + COUNT( * ) + 21 - + 48 * - - 54 WHEN + 25 THEN NULL END / - + CASE - COUNT( * ) WHEN 13 THEN NULL ELSE - 64 + - - NULLIF ( 21, - CASE - 23 WHEN + - 33 THEN 21 WHEN + 17 THEN - - 67 END ) END AS col2, 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL + 47 / 67 - COUNT ( * ) + + COUNT ( - + 52 ) + + CASE - 73 WHEN 75 THEN - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / + 24 THEN + COUNT ( * ) + 21 - + 48 * - - 54 WHEN + 25 THEN NULL END / - + CASE - COUNT ( * ) WHEN 13 THEN NULL ELSE - 64 + - - NULLIF ( 21, - CASE - 23 WHEN + - 33 THEN 21 WHEN + 17 THEN - - 67 END ) END AS col2, 10 AS col1
----
NULL
10

query I rowsort
SELECT ALL ( + 47 ) + + + 86 AS col1
----
133

query I rowsort
SELECT ALL 30 + - 34 + 80 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT COUNT( + 78 ) * ( - 13 ) + - 58 * COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4085
SELECT COUNT ( + 78 ) * ( - 13 ) + - 58 * COUNT ( * )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT ALL - - 34 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - - 34 / 82
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4087
SELECT ALL - 87 + - 17 AS col1, + 45 DIV - COUNT( + 82 ) AS col1
----
-104
-45

skipif mysql # not compatible
query II rowsort label-4087
SELECT ALL - 87 + - 17 AS col1, + 45 / - COUNT ( + 82 ) AS col1
----
-104
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - 61 + CASE 7 WHEN ( - + ( - + COUNT( * ) ) ) * - + ( - COUNT( DISTINCT - - ( - 47 ) ) ) * 42 + + ( + 88 ) THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN + 42 / + + 77 - + 63 + + - 16 * + 85 - 79 * 41 THEN NULL ELSE + COUNT( * ) * 42 + + + 43 END + 89 + - - 39 * - - 50 AS col0
----
2063

skipif mysql # not compatible
query I rowsort label-4088
SELECT - 61 + CASE 7 WHEN ( - + ( - + COUNT ( * ) ) ) * - + ( - COUNT ( DISTINCT - - ( - 47 ) ) ) * 42 + + ( + 88 ) THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN + 42 / + + 77 - + 63 + + - 16 * + 85 - 79 * 41 THEN NULL ELSE + COUNT ( * ) * 42 + + + 43 END + 89 + - - 39 * - - 50 AS col0
----
2063

query I rowsort
SELECT - 79 * + 80 + 62
----
-6258

query I rowsort
SELECT ALL - + ( - - 71 ) + - - 97 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL COUNT( * ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL COUNT ( * ) + - 15
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT COUNT( * ) * 34 * 84 AS col2
----
2856

skipif mysql # not compatible
query I rowsort label-4092
SELECT COUNT ( * ) * 34 * 84 AS col2
----
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT ALL + CASE + 35 WHEN - - 77 + - 94 + - COUNT( * ) + - 27 + - 72 * - 86 * + CAST( + + 73 AS SIGNED ) THEN NULL ELSE + 76 END
----
76

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + CASE + 35 WHEN - - 77 + - 94 + - COUNT ( * ) + - 27 + - 72 * - 86 * + CAST ( + + 73 AS INTEGER ) THEN NULL ELSE + 76 END
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - COALESCE ( + COUNT( * ), - - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4094
SELECT - COALESCE ( + COUNT ( * ), - - 1 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT CAST( - 9 AS SIGNED ) - - 19
----
10

skipif mysql # not compatible
query I rowsort label-4095
SELECT CAST ( - 9 AS INTEGER ) - - 19
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT - MIN( DISTINCT 16 ) * - + 20 * + - 37
----
-11840

skipif mysql # not compatible
query I rowsort label-4096
SELECT - MIN ( DISTINCT 16 ) * - + 20 * + - 37
----
-11840

query I rowsort
SELECT 5 + 23
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4098
SELECT - 67 AS col1, + 20 * + + 13 + - AVG ( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-4098
SELECT - 67 AS col1, + 20 * + + 13 + - AVG ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col1
----
-67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL 74 * 31 * + MIN( 5 )
----
11470

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL 74 * 31 * + MIN ( 5 )
----
11470

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT MAX( DISTINCT - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4100
SELECT MAX ( DISTINCT - 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + COUNT( ALL + + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4101
SELECT + COUNT ( ALL + + 38 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT SUM( - ( - 91 ) ) AS col0, COALESCE ( - + 41, - 38 * - + COUNT( * ) + 15 ) AS col0
----
91
-41

skipif mysql # not compatible
query II rowsort label-4103
SELECT SUM ( - ( - 91 ) ) AS col0, COALESCE ( - + 41, - 38 * - + COUNT ( * ) + 15 ) AS col0
----
91
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-4104
SELECT 68 DIV - 32 - + 13, + 49 AS col2
----
-15
49

skipif mysql # not compatible
query II rowsort label-4104
SELECT 68 / - 32 - + 13, + 49 AS col2
----
-15
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL 38 * CAST( 41 AS SIGNED ) col2
----
1558

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL 38 * CAST ( 41 AS INTEGER ) col2
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4106
SELECT COUNT( * ) * + CASE - - CAST( NULL AS SIGNED ) WHEN + 78 THEN + - 55 - + - 17 ELSE NULL END AS col2, 78 DIV - COUNT( * ) - 78
----
NULL
-156

skipif mysql # not compatible
query II rowsort label-4106
SELECT COUNT ( * ) * + CASE - - CAST ( NULL AS INTEGER ) WHEN + 78 THEN + - 55 - + - 17 ELSE NULL END AS col2, 78 / - COUNT ( * ) - 78
----
NULL
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT 85 - 33 * - 4 AS col0, + COALESCE ( + 27, - COUNT( * ) )
----
217
27

skipif mysql # not compatible
query II rowsort label-4107
SELECT 85 - 33 * - 4 AS col0, + COALESCE ( + 27, - COUNT ( * ) )
----
217
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT COUNT( ALL + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4108
SELECT COUNT ( ALL + 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL - MAX( ALL + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - MAX ( ALL + 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT COUNT( ALL + CASE + + 68 WHEN + + 37 THEN NULL WHEN + 31 THEN 19 * - 7 + - 4 ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT COUNT ( ALL + CASE + + 68 WHEN + + 37 THEN NULL WHEN + 31 THEN 19 * - 7 + - 4 ELSE NULL END ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4111
SELECT + 91, - CAST( - 52 AS SIGNED ) AS col2
----
91
52

skipif mysql # not compatible
query II rowsort label-4111
SELECT + 91, - CAST ( - 52 AS INTEGER ) AS col2
----
91
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT DISTINCT - CASE + 0 WHEN 32 THEN - 17 - - 6 * + ( + 21 ) / - - CAST( NULL AS SIGNED ) * COUNT( * ) * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT - CASE + 0 WHEN 32 THEN - 17 - - 6 * + ( + 21 ) / - - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT ALL - 87 DIV - 13
----
6

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - 87 / - 13
----
6

query I rowsort
SELECT + NULLIF ( 84, 60 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT MIN( 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4115
SELECT MIN ( 76 ) AS col2
----
76

query I rowsort
SELECT - 84 - - 45 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT SUM( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4117
SELECT SUM ( DISTINCT + 7 )
----
7

query I rowsort
SELECT + 23 + - 85 - - 38 * + ( - 9 )
----
-404

query I rowsort
SELECT DISTINCT + - 69 + 52
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + COALESCE ( - 45, + COUNT( * ) + + 71 * + 23 ) + 38 + 20 + - - NULLIF ( 6, 65 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4120
SELECT + COALESCE ( - 45, + COUNT ( * ) + + 71 * + 23 ) + 38 + 20 + - - NULLIF ( 6, 65 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL + CASE + MAX( ALL - + 9 ) WHEN - + 81 THEN NULL WHEN 13 THEN + - COUNT( * ) END + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + CASE + MAX ( ALL - + 9 ) WHEN - + 81 THEN NULL WHEN 13 THEN + - COUNT ( * ) END + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - 50 + - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4122
SELECT - 50 + - COUNT ( * ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4123
SELECT - 48 AS col0, NULLIF ( + - NULLIF ( + 0, + + 15 ), + 23 * + + 66 * COUNT( * ) ) * + 39 * + ( 7 ) DIV - 55 + + 84 - - SUM( - 83 )
----
-48
1

skipif mysql # not compatible
query II rowsort label-4123
SELECT - 48 AS col0, NULLIF ( + - NULLIF ( + 0, + + 15 ), + 23 * + + 66 * COUNT ( * ) ) * + 39 * + ( 7 ) / - 55 + + 84 - - SUM ( - 83 )
----
-48
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4124
SELECT ALL 59 col2, + 95 DIV + - 26
----
59
-3

skipif mysql # not compatible
query II rowsort label-4124
SELECT ALL 59 col2, + 95 / + - 26
----
59
-3

query II rowsort
SELECT ALL - 91 + - - ( 5 ) AS col2, 79
----
-86
79

query II rowsort
SELECT - - 86 col1, - 95 AS col0
----
86
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT DISTINCT COALESCE ( COUNT( * ), COALESCE ( + + 42, - 41 ), 68 * - 95 - + 78 * + + 82 * 85 * + CAST( 16 AS SIGNED ) + - 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT COALESCE ( COUNT ( * ), COALESCE ( + + 42, - 41 ), 68 * - 95 - + 78 * + + 82 * 85 * + CAST ( 16 AS INTEGER ) + - 47 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT ALL - 42 + - MAX( DISTINCT 34 ) AS col0, MAX( - 11 )
----
-76
-11

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL - 42 + - MAX ( DISTINCT 34 ) AS col0, MAX ( - 11 )
----
-76
-11

query I rowsort
SELECT - - 36 + + + 45
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT DISTINCT 49, 28 * COUNT( * ) + 22 + + - 16 AS col1
----
49
34

skipif mysql # not compatible
query II rowsort label-4130
SELECT DISTINCT 49, 28 * COUNT ( * ) + 22 + + - 16 AS col1
----
49
34

query I rowsort
SELECT - + 61 + + 47
----
-14

query I rowsort
SELECT ALL + 81 - + ( 39 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4133
SELECT - 66 DIV - + 67 + - 60 AS col0, - COUNT( * ) * 19
----
-60
-19

skipif mysql # not compatible
query II rowsort label-4133
SELECT - 66 / - + 67 + - 60 AS col0, - COUNT ( * ) * 19
----
-60
-19

query I rowsort
SELECT + 36 * - 85
----
-3060

query I rowsort
SELECT + 49 + - 30 * - 50
----
1549

query I rowsort
SELECT ALL 64 col1
----
64

query I rowsort
SELECT DISTINCT - 72 * 80 * 28
----
-161280

query I rowsort
SELECT DISTINCT + 17 - + 59 - + - 4 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL - MAX( ALL 85 ) * + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - MAX ( ALL 85 ) * + COUNT ( * ) AS col2
----
-85

query II rowsort
SELECT DISTINCT ( - 85 ) col1, + 77 + - + 14 AS col2
----
-85
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT - ( - - COUNT( * ) ) + + - 92 - + ( 84 ) * - 2 + + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4141
SELECT - ( - - COUNT ( * ) ) + + - 92 - + ( 84 ) * - 2 + + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
74

query II rowsort
SELECT - 21 * + 87 AS col2, 21 col2
----
-1827
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + 14 + + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4143
SELECT + 14 + + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT - 67 DIV MIN( ALL + 58 ) - + 33 - + - SUM( 78 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 67 / MIN ( ALL + 58 ) - + 33 - + - SUM ( 78 ) AS col0
----
44

query I rowsort
SELECT ( + ( 63 ) )
----
63

query I rowsort
SELECT 64 * + + 94 + COALESCE ( - + 74, + - 35 ) * - 17 AS col1
----
7274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4147
SELECT ALL 73 * + + COALESCE ( 65, - + MAX( DISTINCT + 39 ) DIV + + 38, COUNT( * ) ) + - 75 * + MAX( + - 33 )
----
7220

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL 73 * + + COALESCE ( 65, - + MAX ( DISTINCT + 39 ) / + + 38, COUNT ( * ) ) + - 75 * + MAX ( + - 33 )
----
7220

query I rowsort
SELECT + 8 + 48 * + 6 + - 74 * - 62 AS col2
----
4884

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL + 58 * + SUM( 8 ) + + CASE - - 94 WHEN + 14 * + 97 THEN NULLIF ( 45, - 17 ) + + COUNT( * ) END / + + 40 / - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + 58 * + SUM ( 8 ) + + CASE - - 94 WHEN + 14 * + 97 THEN NULLIF ( 45, - 17 ) + + COUNT ( * ) END / + + 40 / - 60 AS col1
----
NULL

query I rowsort
SELECT 92 * 3 + 36
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-4151
SELECT ( + + 99 ), + ( - 15 ) - COUNT( * ) - - 23 + - + 95 + 82 * ( + + 44 ) AS col0
----
99
3520

skipif mysql # not compatible
query II rowsort label-4151
SELECT ( + + 99 ), + ( - 15 ) - COUNT ( * ) - - 23 + - + 95 + 82 * ( + + 44 ) AS col0
----
99
3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT ALL AVG ( - ( + + 77 ) ) * - + CASE - COUNT( * ) WHEN 21 + - 41 THEN + + 34 / + CAST( + - COALESCE ( - - 91, + - MAX( + 2 ) + - 1, 28 + + 68 ) AS SIGNED ) WHEN - + 22 + + 37 * - 43 + - + 60 * - 97 THEN NULLIF ( - 13, 18 ) * - COALESCE ( + - 22, 98 + SUM( + 17 ) ) END + - 88 + - 0 * 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL AVG ( - ( + + 77 ) ) * - + CASE - COUNT ( * ) WHEN 21 + - 41 THEN + + 34 / + CAST ( + - COALESCE ( - - 91, + - MAX ( + 2 ) + - 1, 28 + + 68 ) AS INTEGER ) WHEN - + 22 + + 37 * - 43 + - + 60 * - 97 THEN NULLIF ( - 13, 18 ) * - COALESCE ( + - 22, 98 + SUM ( + 17 ) ) END + - 88 + - 0 * 50 col2
----
NULL

query I rowsort
SELECT + 31 * 44 * - 37
----
-50468

query I rowsort
SELECT + 37 + + + 92 + + - 43 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + COUNT( - 91 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT + COUNT ( - 91 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT + CAST( + 76 AS SIGNED ) * + COUNT( * ) * 65 + + 44
----
4984

skipif mysql # not compatible
query I rowsort label-4156
SELECT + CAST ( + 76 AS INTEGER ) * + COUNT ( * ) * 65 + + 44
----
4984

query I rowsort
SELECT ALL - + 34 * + 90 + + + NULLIF ( - 51, - + 74 )
----
-3111

query I rowsort
SELECT + 21 * + 11 col2
----
231

query I rowsort
SELECT - + ( - - 43 ) + - + 68 col2
----
-111

query I rowsort
SELECT 1 * - 84 + - - 38 col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL 78 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL 78 / - 58
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT ALL + 95 * + 48 + + + 75 + MIN( 95 ) * COUNT( + 42 ) DIV + COUNT( * ) - - 95
----
4825

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + 95 * + 48 + + + 75 + MIN ( 95 ) * COUNT ( + 42 ) / + COUNT ( * ) - - 95
----
4825

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT + - ( 33 ) AS col0, - NULLIF ( + + CASE - 3 WHEN + 75 THEN + + COUNT( * ) ELSE NULL END, 91 + 55 + 46 / - - 35 ) * - MIN( ALL 37 ) col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-4163
SELECT + - ( 33 ) AS col0, - NULLIF ( + + CASE - 3 WHEN + 75 THEN + + COUNT ( * ) ELSE NULL END, 91 + 55 + 46 / - - 35 ) * - MIN ( ALL 37 ) col1
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - COUNT( * ) * 25 * 81 + - + 83 - + - COUNT( + COALESCE ( + 62, - + 39 ) ) * + 80 * + 50 * - 33 - 89 + 64 AS col2
----
-134133

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - COUNT ( * ) * 25 * 81 + - + 83 - + - COUNT ( + COALESCE ( + 62, - + 39 ) ) * + 80 * + 50 * - 33 - 89 + 64 AS col2
----
-134133

query I rowsort
SELECT + 71 * 69 * - 83 * - 64 + - - 45 * - 52 AS col2
----
26021148

query I rowsort
SELECT ALL + - 40
----
-40

query I rowsort
SELECT - 27 col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT + COUNT( * ) * + - 95 + - - COUNT( * ) + + - 3, 87 * + 70 col0
----
-97
6090

skipif mysql # not compatible
query II rowsort label-4168
SELECT + COUNT ( * ) * + - 95 + - - COUNT ( * ) + + - 3, 87 * + 70 col0
----
-97
6090

query I rowsort
SELECT - + 74 * + 52 + - - 84
----
-3764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4170
SELECT DISTINCT + 58 * - 92 * - 29 - + CAST( NULL AS SIGNED ), - 34 * - COUNT( * ) * + + 63 AS col2
----
NULL
2142

skipif mysql # not compatible
query II rowsort label-4170
SELECT DISTINCT + 58 * - 92 * - 29 - + CAST ( NULL AS INTEGER ), - 34 * - COUNT ( * ) * + + 63 AS col2
----
NULL
2142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT - + 24 * + + COUNT( * ) * + - 23 + ( - - 16 ) * - NULLIF ( + CAST( NULL AS SIGNED ), + COALESCE ( + COALESCE ( 92, + - 82 ), + 50 + - COUNT( * ) - - CAST( + 72 AS SIGNED ), - 36 * - + 86 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT - + 24 * + + COUNT ( * ) * + - 23 + ( - - 16 ) * - NULLIF ( + CAST ( NULL AS INTEGER ), + COALESCE ( + COALESCE ( 92, + - 82 ), + 50 + - COUNT ( * ) - - CAST ( + 72 AS INTEGER ), - 36 * - + 86 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - CASE - COUNT( * ) WHEN + + 55 * 11 THEN NULL WHEN - 62 THEN + 45 * 67 - + ( + 39 ) * 6 / - 34 + COUNT( * ) + COALESCE ( - 68, + 58 + - 70, - + SUM( + - 97 ) ) + + 24 + - + 77 + + CASE 5 WHEN + + 46 / + 85 + - 42 THEN NULL ELSE + 59 * ( + - 9 ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - CASE - COUNT ( * ) WHEN + + 55 * 11 THEN NULL WHEN - 62 THEN + 45 * 67 - + ( + 39 ) * 6 / - 34 + COUNT ( * ) + COALESCE ( - 68, + 58 + - 70, - + SUM ( + - 97 ) ) + + 24 + - + 77 + + CASE 5 WHEN + + 46 / + 85 + - 42 THEN NULL ELSE + 59 * ( + - 9 ) END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - + 13 * + SUM( - 1 ) * + + 43 * 90 - - 29 AS col2
----
50339

skipif mysql # not compatible
query I rowsort label-4173
SELECT - + 13 * + SUM ( - 1 ) * + + 43 * 90 - - 29 AS col2
----
50339

query I rowsort
SELECT ALL NULLIF ( - 39, + 16 + 74 ) * - + 5 col0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT - ( 26 ) DIV - + 51 * + 71
----
0

skipif mysql # not compatible
query I rowsort label-4175
SELECT - ( 26 ) / - + 51 * + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4176
SELECT ALL CASE + + 60 WHEN + SUM( - 24 ) / - 93 THEN + - COALESCE ( + + 33, - - COUNT( * ) * COALESCE ( 52, + - 33, + 55 ) + + 57, + COUNT( * ) ) + - 74 + - 52 WHEN - 60 * - 50 + - CAST( NULL AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL CASE + + 60 WHEN + SUM ( - 24 ) / - 93 THEN + - COALESCE ( + + 33, - - COUNT ( * ) * COALESCE ( 52, + - 33, + 55 ) + + 57, + COUNT ( * ) ) + - 74 + - 52 WHEN - 60 * - 50 + - CAST ( NULL AS REAL ) THEN NULL END
----
NULL

query I rowsort
SELECT - 74 + - 85
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4178
SELECT DISTINCT ( - + MAX( + CASE + - 6 WHEN + CAST( 19 AS SIGNED ) THEN - + 72 + - 75 ELSE NULL END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT ( - + MAX ( + CASE + - 6 WHEN + CAST ( 19 AS INTEGER ) THEN - + 72 + - 75 ELSE NULL END ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT - 27 DIV - 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-4179
SELECT - 27 / - 33 col1
----
0

query I rowsort
SELECT DISTINCT - 23 * - 94
----
2162

query II rowsort
SELECT ALL + ( + 2 ) * + 48, - 71 AS col1
----
96
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4182
SELECT 14 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT 14 / - 96 AS col0
----
0

query I rowsort
SELECT ALL + CASE - 59 WHEN - 89 + - - 69 + + 89 THEN + 29 END + - 14 * + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL COUNT( 37 ) + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL COUNT ( 37 ) + 2 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT ALL - CAST( + 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - CAST ( + 71 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( * ) * + 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) * + 66 AS col1
----
66

query I rowsort
SELECT ALL 19 + + + 71 AS col1
----
90

query I rowsort
SELECT 29 - + 10
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT COUNT( * ) * ( + 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4189
SELECT COUNT ( * ) * ( + 0 ) col1
----
0

query I rowsort
SELECT ALL - ( + + 91 )
----
-91

query I rowsort
SELECT DISTINCT + 97 + - - 69 col2
----
166

query I rowsort
SELECT ALL 85 - - 38
----
123

query I rowsort
SELECT - ( 3 ) - 73
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL 24 * - + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL 24 * - + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT - + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT - + ( COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + 14 * - 84 col2
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + 21 + + 1 - + COUNT( * ) * COUNT( * ) * - 64
----
86

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 21 + + 1 - + COUNT ( * ) * COUNT ( * ) * - 64
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + 4 * NULLIF ( + + COUNT( * ), + 31 ) * + 52 col2
----
208

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 4 * NULLIF ( + + COUNT ( * ), + 31 ) * + 52 col2
----
208

query I rowsort
SELECT ALL - + ( + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + SUM( DISTINCT - + 77 ) * + COUNT( * ) * - COUNT( 83 ) + 97 + + + 18 + + 88 + - 58
----
222

skipif mysql # not compatible
query I rowsort label-4200
SELECT + SUM ( DISTINCT - + 77 ) * + COUNT ( * ) * - COUNT ( 83 ) + 97 + + + 18 + + 88 + - 58
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT 84 - - 99 + + 26 DIV - - 50 * 96 * + 41
----
183

skipif mysql # not compatible
query I rowsort label-4201
SELECT 84 - - 99 + + 26 / - - 50 * 96 * + 41
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4202
SELECT ALL 88 DIV ( + COUNT( * ) ), - 17 AS col1
----
88
-17

skipif mysql # not compatible
query II rowsort label-4202
SELECT ALL 88 / ( + COUNT ( * ) ), - 17 AS col1
----
88
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 71 * + - 20 + - 98 + + 86 AS col2
----
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-4205
SELECT 64 + - 26 DIV + - 53 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4205
SELECT 64 + - 26 / + - 53 AS col2
----
64

query I rowsort
SELECT ( - 64 ) + + 58 AS col2
----
-6

query I rowsort
SELECT 14 * + 37
----
518

query II rowsort
SELECT ALL 66 AS col2, 81 AS col1
----
66
81

query I rowsort
SELECT 95 + 94 - - 91
----
280

query I rowsort
SELECT DISTINCT 23 AS col0
----
23

query I rowsort
SELECT ALL + 0 * - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT + SUM( + + 16 ) + + 52 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT + SUM ( + + 16 ) + + 52 AS col2
----
68

onlyif mysql # aggregate syntax: 
query III rowsort label-4213
SELECT ALL - 28 + - + 34 AS col1, SUM( ALL + + 48 ) AS col1, + 5 * + 95 * + 0
----
-62
48
0

skipif mysql # not compatible
query III rowsort label-4213
SELECT ALL - 28 + - + 34 AS col1, SUM ( ALL + + 48 ) AS col1, + 5 * + 95 * + 0
----
-62
48
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4214
SELECT - 84, + COUNT( * ) DIV + ( 81 ) AS col1
----
-84
0

skipif mysql # not compatible
query II rowsort label-4214
SELECT - 84, + COUNT ( * ) / + ( 81 ) AS col1
----
-84
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT ALL + CAST( + + 52 AS SIGNED ) + 42 * + - 38 AS col1
----
-1544

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + CAST ( + + 52 AS INTEGER ) + 42 * + - 38 AS col1
----
-1544

query I rowsort
SELECT 42 * 52
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4217
SELECT 27 AS col0, + 18 / - CAST( NULL AS SIGNED ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4217
SELECT 27 AS col0, + 18 / - CAST ( NULL AS INTEGER ) AS col0
----
27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4218
SELECT ALL + COUNT( DISTINCT - CAST( - + 50 AS SIGNED ) ) + + 27, + 90 AS col2
----
28
90

skipif mysql # not compatible
query II rowsort label-4218
SELECT ALL + COUNT ( DISTINCT - CAST ( - + 50 AS INTEGER ) ) + + 27, + 90 AS col2
----
28
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT + 51 AS col2, + MAX( + 90 ) - + 96
----
51
-6

skipif mysql # not compatible
query II rowsort label-4219
SELECT + 51 AS col2, + MAX ( + 90 ) - + 96
----
51
-6

query I rowsort
SELECT 68 * + - ( 66 ) AS col1
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL - 38 * + SUM( 69 ) AS col0
----
-2622

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - 38 * + SUM ( 69 ) AS col0
----
-2622

query I rowsort
SELECT 39 + + 86 AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + 95 * COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + 95 * COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4224
SELECT + - ( 53 ) * 56 + - 47 + COALESCE ( + + 14, - 27 * 99 + - 68 ) * - 26 DIV + COUNT( * ), 86 - - 41 AS col2
----
-3379
127

skipif mysql # not compatible
query II rowsort label-4224
SELECT + - ( 53 ) * 56 + - 47 + COALESCE ( + + 14, - 27 * 99 + - 68 ) * - 26 / + COUNT ( * ), 86 - - 41 AS col2
----
-3379
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT - + SUM( ALL - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - + SUM ( ALL - 59 ) AS col1
----
59

query II rowsort
SELECT ALL - 94 AS col0, + 97
----
-94
97

query I rowsort
SELECT DISTINCT - + 78 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT 71 * - - 11 + SUM( - + 13 ) + + 86 AS col2
----
854

skipif mysql # not compatible
query I rowsort label-4228
SELECT 71 * - - 11 + SUM ( - + 13 ) + + 86 AS col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + COALESCE ( + COUNT( * ), + - COUNT( * ), - + SUM( ALL - 35 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT + COALESCE ( + COUNT ( * ), + - COUNT ( * ), - + SUM ( ALL - 35 ) ) AS col0
----
1

query I rowsort
SELECT 30 + + 47
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT ALL - MAX( - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - MAX ( - 35 )
----
35

query I rowsort
SELECT + ( + 93 ) AS col1
----
93

query II rowsort
SELECT + ( 27 ), + ( + ( - 82 ) ) AS col1
----
27
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT - 46 * COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-4234
SELECT - 46 * COUNT ( * )
----
-46

query I rowsort
SELECT ALL 85 * - 61
----
-5185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4236
SELECT + - COALESCE ( NULLIF ( - + 40, + 49 DIV + - 30 ), - - 13 + - 12 DIV - 95 * 66 ), CAST( + 28 AS SIGNED ) + + - SUM( DISTINCT + 57 ) AS col1
----
40
-29

skipif mysql # not compatible
query II rowsort label-4236
SELECT + - COALESCE ( NULLIF ( - + 40, + 49 / + - 30 ), - - 13 + - 12 / - 95 * 66 ), CAST ( + 28 AS INTEGER ) + + - SUM ( DISTINCT + 57 ) AS col1
----
40
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + - ( - + ( + 67 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + - ( - + ( + 67 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 74 * - - 4
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - NULLIF ( + COUNT( * ), - 16 + 54 + - CASE - COUNT( * ) WHEN - 16 THEN - + 79 * 16 / + ( + 65 ) * - + 0 END )
----
-1

skipif mysql # not compatible
query I rowsort label-4239
SELECT - NULLIF ( + COUNT ( * ), - 16 + 54 + - CASE - COUNT ( * ) WHEN - 16 THEN - + 79 * 16 / + ( + 65 ) * - + 0 END )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4240
SELECT + 15 DIV 14 * + - COUNT( * ) AS col2, - 45
----
-1
-45

skipif mysql # not compatible
query II rowsort label-4240
SELECT + 15 / 14 * + - COUNT ( * ) AS col2, - 45
----
-1
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT DISTINCT 44 DIV + - ( 21 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT 44 / + - ( 21 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT DISTINCT ( + 92 ) + + 68 col2, + COUNT( * ) * COUNT( * ) + - + 93
----
160
-92

skipif mysql # not compatible
query II rowsort label-4242
SELECT DISTINCT ( + 92 ) + + 68 col2, + COUNT ( * ) * COUNT ( * ) + - + 93
----
160
-92

query I rowsort
SELECT ALL 29 col1
----
29

query I rowsort
SELECT + 44 - - - 47 + + - 10
----
-13

query I rowsort
SELECT ALL + 69 * + - 8
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + MAX( DISTINCT 55 ) + - 47 * - - 66 + + - 20
----
-3067

skipif mysql # not compatible
query I rowsort label-4246
SELECT + MAX ( DISTINCT 55 ) + - 47 * - - 66 + + - 20
----
-3067

onlyif mysql # aggregate syntax: 
query II rowsort label-4247
SELECT DISTINCT ( - - COUNT( * ) ) + 14 + - + CASE - - ( + - 82 ) WHEN 36 THEN NULL WHEN 18 + 46 + - - 45 THEN - + 11 * + + 26 END, + 37 / - CASE - 14 WHEN - 79 THEN 87 * + 7 + + 97 ELSE NULL END + - + 42 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4247
SELECT DISTINCT ( - - COUNT ( * ) ) + 14 + - + CASE - - ( + - 82 ) WHEN 36 THEN NULL WHEN 18 + 46 + - - 45 THEN - + 11 * + + 26 END, + 37 / - CASE - 14 WHEN - 79 THEN 87 * + 7 + + 97 ELSE NULL END + - + 42 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4248
SELECT ALL CAST( NULL AS DECIMAL ) + - 32 * + - 53 + + - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL CAST ( NULL AS REAL ) + - 32 * + - 53 + + - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - ( - 29 ) + - - 28 + + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4249
SELECT - ( - 29 ) + - - 28 + + COUNT ( * ) AS col0
----
58

query I rowsort
SELECT DISTINCT 37 * + ( 93 ) AS col0
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - COUNT( * ) + - ( - 92 ) + - 77
----
14

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( * ) + - ( - 92 ) + - 77
----
14

query II rowsort
SELECT ALL 66 - - 19 AS col1, 6
----
85
6

query I rowsort
SELECT + 95 * + 95 AS col2
----
9025

query I rowsort
SELECT DISTINCT + 97 * 96 * 82
----
763584

query I rowsort
SELECT - - 69 * + - 21
----
-1449

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT ALL - 58 DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - 58 / + + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT + 76 DIV + 46 + 5 * - 6 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4257
SELECT + 76 / + 46 + 5 * - 6 AS col0
----
-29

query I rowsort
SELECT + 90 - NULLIF ( + ( - 6 ), + 65 ) + + 30 * 1 * - 27 * - - 55 AS col1
----
-44454

onlyif mysql # DIV for integer division: 
query I rowsort label-4259
SELECT + - 9 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4259
SELECT + - 9 / - 89 AS col0
----
0

query I rowsort
SELECT - 64 * - 41 - 53 AS col0
----
2571

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - 72 * - + 5 - + - COUNT( * )
----
361

skipif mysql # not compatible
query I rowsort label-4261
SELECT - 72 * - + 5 - + - COUNT ( * )
----
361

query I rowsort
SELECT - 30 * - 76 + + ( 15 )
----
2295

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT + 73 * 74 DIV + 32 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + 73 * 74 / + 32 AS col1
----
168

query I rowsort
SELECT - 44 * - - 18 AS col2
----
-792

query I rowsort
SELECT ALL + - ( + + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT SUM( - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4266
SELECT SUM ( - 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4267
SELECT COUNT( * ) AS col0, - 92 - + 29 DIV COUNT( * )
----
1
-121

skipif mysql # not compatible
query II rowsort label-4267
SELECT COUNT ( * ) AS col0, - 92 - + 29 / COUNT ( * )
----
1
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT 46 * COUNT( * ) + 47
----
93

skipif mysql # not compatible
query I rowsort label-4268
SELECT 46 * COUNT ( * ) + 47
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT ALL 45 * - + 98 + + - 54 * COUNT( * ) * + 69 - - + 16 DIV - COUNT( * )
----
-8152

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL 45 * - + 98 + + - 54 * COUNT ( * ) * + 69 - - + 16 / - COUNT ( * )
----
-8152

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT - ( - 40 ) * - MIN( DISTINCT + 94 ) + - 45 - - - 22 - COUNT( DISTINCT + + 85 ) + + 25
----
-3803

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT - ( - 40 ) * - MIN ( DISTINCT + 94 ) + - 45 - - - 22 - COUNT ( DISTINCT + + 85 ) + + 25
----
-3803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT ALL + 48 * - 33 + CAST( + - 48 AS SIGNED ) + + 39
----
-1593

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + 48 * - 33 + CAST ( + - 48 AS INTEGER ) + + 39
----
-1593

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT - MAX( DISTINCT + ( - 55 ) ), + ( - - 84 ) AS col2
----
55
84

skipif mysql # not compatible
query II rowsort label-4272
SELECT - MAX ( DISTINCT + ( - 55 ) ), + ( - - 84 ) AS col2
----
55
84

query I rowsort
SELECT ALL ( + + 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT DISTINCT - 82 + - - COALESCE ( + 98, + COUNT( * ) ) + - COUNT( * ) * - 70 - + 31 * + 49 + + - 93 - + 64
----
-1590

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT - 82 + - - COALESCE ( + 98, + COUNT ( * ) ) + - COUNT ( * ) * - 70 - + 31 * + 49 + + - 93 - + 64
----
-1590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT + 44 + 69 - - CAST( + - 92 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 44 + 69 - - CAST ( + - 92 AS INTEGER )
----
21

query I rowsort
SELECT ALL 56 * - 54
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT MAX( + - NULLIF ( + 37, + - 99 + + - 13 ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4277
SELECT MAX ( + - NULLIF ( + 37, + - 99 + + - 13 ) ) AS col0
----
-37

query I rowsort
SELECT ALL + 10 + + + 5 AS col2
----
15

query I rowsort
SELECT + 14 * - 29
----
-406

query II rowsort
SELECT ALL 39 AS col1, - 16
----
39
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4281
SELECT - 26 + - - 35 + + 78 AS col1, COALESCE ( - - 86, + NULLIF ( - + 16, - 55 ), 13 * + MAX( DISTINCT 56 ) + - - COALESCE ( COALESCE ( + - 42, + 50 ), - 25 ) + - - 69 + + - 22 + - 48 + - MAX( - - 79 ) * - 49 * 59 * + 6 )
----
87
86

skipif mysql # not compatible
query II rowsort label-4281
SELECT - 26 + - - 35 + + 78 AS col1, COALESCE ( - - 86, + NULLIF ( - + 16, - 55 ), 13 * + MAX ( DISTINCT 56 ) + - - COALESCE ( COALESCE ( + - 42, + 50 ), - 25 ) + - - 69 + + - 22 + - 48 + - MAX ( - - 79 ) * - 49 * 59 * + 6 )
----
87
86

query II rowsort
SELECT 82 col0, 75 col1
----
82
75

query II rowsort
SELECT ALL 93, 36 AS col2
----
93
36

query I rowsort
SELECT DISTINCT 13 - 19 * + + 76 + - 37
----
-1468

query I rowsort
SELECT DISTINCT + 93 * - 87 AS col2
----
-8091

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT ALL 90 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL 90 / 94
----
0

query I rowsort
SELECT ALL 48 - - 75 AS col1
----
123

query I rowsort
SELECT - ( 37 ) AS col2
----
-37

query I rowsort
SELECT + 72 + + + 29
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - COUNT( + 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4290
SELECT - COUNT ( + 53 ) AS col1
----
-1

query I rowsort
SELECT + 21 + + - 12 AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT - 51 AS col1, ( + 10 ) + 77 * COUNT( * ) * - 28
----
-51
-2146

skipif mysql # not compatible
query II rowsort label-4292
SELECT - 51 AS col1, ( + 10 ) + 77 * COUNT ( * ) * - 28
----
-51
-2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT + COUNT( ( ( - + 79 ) ) ) + ( - 43 ) + - COALESCE ( - + 89, - COUNT( 7 ), - 57 ) / + - 66 * + + ( + 82 ) * CAST( NULL AS SIGNED ) * - - CASE + COUNT( * ) WHEN - - 55 * - 58 THEN 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( ( ( - + 79 ) ) ) + ( - 43 ) + - COALESCE ( - + 89, - COUNT ( 7 ), - 57 ) / + - 66 * + + ( + 82 ) * CAST ( NULL AS INTEGER ) * - - CASE + COUNT ( * ) WHEN - - 55 * - 58 THEN 21 END
----
NULL

query II rowsort
SELECT + 90 AS col1, - 29 * + 50 col0
----
90
-1450

query I rowsort
SELECT ALL + - 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + - 21 + - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4296
SELECT + - 21 + - COUNT ( * ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4297
SELECT + 24 * + - CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED ) - 62 + - - COALESCE ( + 82, - + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 24 * + - CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER ) - 62 + - - COALESCE ( + 82, - + 75 ) AS col1
----
NULL

query I rowsort
SELECT + + 46 + - 45 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT 80 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT 80 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 32 * 16 + - + 43 AS col2
----
469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4301
SELECT ALL + COALESCE ( - + 56, + CAST( NULL AS SIGNED ) * + COUNT( * ) ) DIV - 98 + ( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL + COALESCE ( - + 56, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) / - 98 + ( + 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT - COUNT( * ) DIV - 51 + - - 92
----
92

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - COUNT ( * ) / - 51 + - - 92
----
92

query II rowsort
SELECT DISTINCT + - 76 AS col0, ( 59 )
----
-76
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT ALL - - COALESCE ( 32, + - 67, - 3 DIV 62 ) DIV - 73 DIV + - COUNT( * ) + 17 + - 60 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - - COALESCE ( 32, + - 67, - 3 / 62 ) / - 73 / + - COUNT ( * ) + 17 + - 60 AS col0
----
-43

query I rowsort
SELECT - 51 + + 32
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL - 62 / - 93 + - - CAST( NULL AS SIGNED ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - 62 / - 93 + - - CAST ( NULL AS INTEGER ) + 96
----
NULL

query II rowsort
SELECT - 80, - 2 AS col1
----
-80
-2

query I rowsort
SELECT - 64 + 57
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT + 4 * + 85 + + 26 col1, 79 * COUNT( * )
----
366
79

skipif mysql # not compatible
query II rowsort label-4309
SELECT + 4 * + 85 + + 26 col1, 79 * COUNT ( * )
----
366
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT ALL + - 36 DIV + CASE + 74 WHEN 27 THEN 35 + + 9 DIV - 11 + - 82 WHEN - + COUNT( * ) THEN NULL ELSE - MIN( ALL - ( - 45 ) ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + - 36 / + CASE + 74 WHEN 27 THEN 35 + + 9 / - 11 + - 82 WHEN - + COUNT ( * ) THEN NULL ELSE - MIN ( ALL - ( - 45 ) ) END AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4311
SELECT ALL + COUNT( * ) DIV + 90 * + - 60 + - 70 DIV + 31 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + COUNT ( * ) / + 90 * + - 60 + - 70 / + 31 AS col0
----
-2

query I rowsort
SELECT + ( ( 88 ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4313
SELECT 8 DIV - + 87 AS col2, - MIN( ALL - 41 )
----
0
41

skipif mysql # not compatible
query II rowsort label-4313
SELECT 8 / - + 87 AS col2, - MIN ( ALL - 41 )
----
0
41

query I rowsort
SELECT ALL + ( + 26 ) + - - 9 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4315
SELECT ALL SUM( + + CAST( - 77 AS SIGNED ) ) DIV - 11 DIV + + COUNT( * ) - - - 63 + - 9 * - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL SUM ( + + CAST ( - 77 AS INTEGER ) ) / - 11 / + + COUNT ( * ) - - - 63 + - 9 * - - COUNT ( * )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT ALL - CAST( + COALESCE ( + + 71, + 12, + + COALESCE ( + ( MIN( DISTINCT + + 73 ) ), 55 * + 77, ( - - 78 ) ) ) AS SIGNED ) * + + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - CAST ( + COALESCE ( + + 71, + 12, + + COALESCE ( + ( MIN ( DISTINCT + + 73 ) ), 55 * + 77, ( - - 78 ) ) ) AS INTEGER ) * + + COUNT ( * ) AS col1
----
-71

query I rowsort
SELECT DISTINCT - ( - - 60 ) + + - ( - 53 ) - 71
----
-78

query I rowsort
SELECT 37 col1
----
37

query I rowsort
SELECT 23 - - 4 + 8
----
35

query I rowsort
SELECT 68 * + + 11 AS col0
----
748

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4321
SELECT ALL 49 - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL 49 - + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT 58 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT 58 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 66 * + 88 AS col1
----
5808

query I rowsort
SELECT 74 + 33 + - 31
----
76

query I rowsort
SELECT - NULLIF ( - + 13, 21 - - - 44 + - 75 - - + 46 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4326
SELECT ALL MAX( 85 ) AS col2, - 20 * + COUNT( * )
----
85
-20

skipif mysql # not compatible
query II rowsort label-4326
SELECT ALL MAX ( 85 ) AS col2, - 20 * + COUNT ( * )
----
85
-20

query I rowsort
SELECT 15 * + 61
----
915

query I rowsort
SELECT ALL - NULLIF ( - - 61, - 86 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL CASE - + COUNT( * ) WHEN - + 59 THEN 79 WHEN + - 62 / 57 THEN NULL END + + 13 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL CASE - + COUNT ( * ) WHEN - + 59 THEN 79 WHEN + - 62 / 57 THEN NULL END + + 13 * 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4331
SELECT ALL + CAST( NULL AS SIGNED ) + 3 + - ( 55 ) + + 28 / + + 96 * - + 57 AS col2, 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL + CAST ( NULL AS INTEGER ) + 3 + - ( 55 ) + + 28 / + + 96 * - + 57 AS col2, 1 AS col2
----
NULL
1

query I rowsort
SELECT - 65 * + 82 * - 50 AS col1
----
266500

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT 84 * - 68 * + COUNT( * ) AS col0
----
-5712

skipif mysql # not compatible
query I rowsort label-4333
SELECT 84 * - 68 * + COUNT ( * ) AS col0
----
-5712

query I rowsort
SELECT - 53 col1
----
-53

query I rowsort
SELECT ALL - 79 + + 26 + - + 46 - - - 43 * - 17 AS col1
----
632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4336
SELECT 74 * - 97 * - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4336
SELECT 74 * - 97 * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT - 38 DIV - 85 + - + 18
----
-18

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 38 / - 85 + - + 18
----
-18

query II rowsort
SELECT ALL 54 + + 55, - 49 + - 69 AS col1
----
109
-118

query I rowsort
SELECT DISTINCT - 30 * + + 83 AS col1
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL COUNT( - 53 ) + + NULLIF ( - + 23, - - ( - - 46 ) ) - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL COUNT ( - 53 ) + + NULLIF ( - + 23, - - ( - - 46 ) ) - COUNT ( * ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT COALESCE ( + 58, CAST( 40 AS SIGNED ) ) - - ( 91 )
----
149

skipif mysql # not compatible
query I rowsort label-4341
SELECT COALESCE ( + 58, CAST ( 40 AS INTEGER ) ) - - ( 91 )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT - COUNT( - 93 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - COUNT ( - 93 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - 42 * + 68 - + + CASE - COUNT( * ) WHEN - 69 + - 18 THEN - + 91 + + 50 * 37 * 58 END / 51 * + ( + + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT - 42 * + 68 - + + CASE - COUNT ( * ) WHEN - 69 + - 18 THEN - + 91 + + 50 * 37 * 58 END / 51 * + ( + + 52 )
----
NULL

query I rowsort
SELECT 23 + - 72
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT ( - COALESCE ( + + 46, NULLIF ( + ( - - 1 ), - 65 ) DIV + COUNT( * ) * + 21 * - 88 ) ) + + - NULLIF ( + 16, + - ( - - 88 ) + COUNT( * ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4345
SELECT ( - COALESCE ( + + 46, NULLIF ( + ( - - 1 ), - 65 ) / + COUNT ( * ) * + 21 * - 88 ) ) + + - NULLIF ( + 16, + - ( - - 88 ) + COUNT ( * ) ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT CAST( NULL AS SIGNED ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT CAST ( NULL AS INTEGER ) * 24
----
NULL

query I rowsort
SELECT 20 * - + 27 + 28
----
-512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT DISTINCT + 93 * + + 60 * - 19 DIV COUNT( - 72 ) * - 36 * - 71 AS col1
----
-270987120

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + 93 * + + 60 * - 19 / COUNT ( - 72 ) * - 36 * - 71 AS col1
----
-270987120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT ALL CAST( NULL AS SIGNED ) / CAST( + - 72 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL CAST ( NULL AS INTEGER ) / CAST ( + - 72 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL MAX( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL MAX ( DISTINCT + 22 )
----
22

query I rowsort
SELECT DISTINCT 78 * 19
----
1482

query I rowsort
SELECT ALL - 48 * + 33
----
-1584

query I rowsort
SELECT 77 + - 88 AS col0
----
-11

query I rowsort
SELECT DISTINCT + 30 * 8
----
240

query II rowsort
SELECT - 56 + - - 12 * 85 + 27 + - 86 AS col2, 66 AS col2
----
905
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - - SUM( + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4356
SELECT - - SUM ( + 65 ) AS col1
----
65

query I rowsort
SELECT ( - + 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT + 57 * + COUNT( * ) + + + COUNT( * ) * - - COUNT( 73 )
----
58

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT + 57 * + COUNT ( * ) + + + COUNT ( * ) * - - COUNT ( 73 )
----
58

query I rowsort
SELECT - - 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + COUNT( * ) + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + COUNT ( * ) + 67 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT - + COUNT( * ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - + COUNT ( * ) + - 64
----
-65

query I rowsort
SELECT DISTINCT + - 36 * - 7
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL - 44 + - MIN( DISTINCT + + 24 ) * + 54 / - 11 * - 70 * + 63 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - 44 + - MIN ( DISTINCT + + 24 ) * + 54 / - 11 * - 70 * + 63 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + 6 + + 5 - + + 80 + + - CASE + NULLIF ( MAX( + 91 ), - 37 ) WHEN + 75 * COUNT( * ) * + COUNT( ALL - - ( + 52 ) ) THEN - ( + 44 ) ELSE NULL END + - - 49 * + + 35 * 6 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT + 6 + + 5 - + + 80 + + - CASE + NULLIF ( MAX ( + 91 ), - 37 ) WHEN + 75 * COUNT ( * ) * + COUNT ( ALL - - ( + 52 ) ) THEN - ( + 44 ) ELSE NULL END + - - 49 * + + 35 * 6 * - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL - COUNT( * ) + 13 * + + 82 AS col1
----
1065

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - COUNT ( * ) + 13 * + + 82 AS col1
----
1065

query I rowsort
SELECT - COALESCE ( 54, 94 * + 71 * + 57, - 72 ) AS col0
----
-54

query I rowsort
SELECT + + ( - 17 ) AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT - + CAST( NULL AS SIGNED ) / + 17 * + - CAST( NULL AS SIGNED ) * 44 - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT - + CAST ( NULL AS INTEGER ) / + 17 * + - CAST ( NULL AS INTEGER ) * 44 - + 39
----
NULL

query II rowsort
SELECT ALL + 19, 99 + 79 AS col0
----
19
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT + 81 * + - MIN( + NULLIF ( 54, - 58 ) )
----
-4374

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + 81 * + - MIN ( + NULLIF ( 54, - 58 ) )
----
-4374

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT DISTINCT - 26 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - 26 / + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + + SUM( + - 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + + SUM ( + - 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + 21 + - 53 * + 22 * + COUNT( ALL + + 22 )
----
-1145

skipif mysql # not compatible
query I rowsort label-4373
SELECT + 21 + - 53 * + 22 * + COUNT ( ALL + + 22 )
----
-1145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT NULLIF ( CAST( + 0 AS SIGNED ), + 54 + - - 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4374
SELECT NULLIF ( CAST ( + 0 AS INTEGER ), + 54 + - - 61 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT CASE + 27 WHEN COUNT( * ) - - + 46 + + - 93 * + ( - - 15 ) * - 19 * 82 * 49 THEN NULL WHEN - 57 * - 86 * 53 + - CAST( 33 AS SIGNED ) + + 58 - + 60 THEN - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT CASE + 27 WHEN COUNT ( * ) - - + 46 + + - 93 * + ( - - 15 ) * - 19 * 82 * 49 THEN NULL WHEN - 57 * - 86 * 53 + - CAST ( 33 AS INTEGER ) + + 58 - + 60 THEN - + 52 END
----
NULL

query I rowsort
SELECT - 9 * 15 AS col0
----
-135

query I rowsort
SELECT + COALESCE ( - + ( + 32 ), - 40 + + + 80 + - + 99 * - 66 ) col1
----
-32

query I rowsort
SELECT DISTINCT 38 * + 28 * 56
----
59584

query I rowsort
SELECT ALL + 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT SUM( 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4380
SELECT SUM ( 80 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 29 AS col0, 61 * - 72 + + 4
----
29
-4388

query I rowsort
SELECT ALL + NULLIF ( - 39, - 74 - + + ( - 97 ) * + - COALESCE ( + + 68, 8, 62 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + CASE - 57 WHEN + 36 * + 26 * - + COUNT( ALL - - 71 ) / 11 * - 52 THEN 63 * - 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT + CASE - 57 WHEN + 36 * + 26 * - + COUNT ( ALL - - 71 ) / 11 * - 52 THEN 63 * - 35 END AS col1
----
NULL

query I rowsort
SELECT ALL 37 * - 82
----
-3034

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT + COUNT( * ) * + COUNT( * ) AS col0, + 90 * + + 75
----
1
6750

skipif mysql # not compatible
query II rowsort label-4386
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0, + 90 * + + 75
----
1
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + 0 * - - MIN( - 69 ) + - ( - + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4387
SELECT + 0 * - - MIN ( - 69 ) + - ( - + 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT MIN( - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4388
SELECT MIN ( - 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT MIN( ALL - + 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4389
SELECT MIN ( ALL - + 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL 31 + COUNT( + 4 )
----
32

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL 31 + COUNT ( + 4 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4391
SELECT ALL 90 + - 26 + + 89 - - 31 DIV - - 77 * COUNT( * ) AS col1, 63 AS col1
----
153
63

skipif mysql # not compatible
query II rowsort label-4391
SELECT ALL 90 + - 26 + + 89 - - 31 / - - 77 * COUNT ( * ) AS col1, 63 AS col1
----
153
63

query I rowsort
SELECT + 13 * 34 AS col1
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + COUNT( - 79 ) - - 2 + + - 95 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4393
SELECT + COUNT ( - 79 ) - - 2 + + - 95 AS col2
----
-92

query I rowsort
SELECT - + 52 AS col1
----
-52

query I rowsort
SELECT ALL + 28 + 20
----
48

query II rowsort
SELECT DISTINCT 97 AS col2, CASE + - 74 WHEN + 9 THEN + - ( + 90 ) END / + 18
----
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT - COUNT( * ) DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - COUNT ( * ) / + 19 AS col1
----
0

query I rowsort
SELECT - + ( - - 39 ) + - + 37
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4399
SELECT DISTINCT 69 * ( + 8 ) + 18 + + + 47 + + 33 / - - NULLIF ( AVG ( + - 24 ), + COUNT( * ) ) * + NULLIF ( + 77, + 57 - + 72 * - - 29 ) + 61 + - - CAST( NULL AS SIGNED ) + 30 * COUNT( * ) AS col0, + COUNT( * ) + - 46 / + 56 * + - 35 * 99 + CAST( NULL AS SIGNED ) + - 50
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4399
SELECT DISTINCT 69 * ( + 8 ) + 18 + + + 47 + + 33 / - - NULLIF ( AVG ( + - 24 ), + COUNT ( * ) ) * + NULLIF ( + 77, + 57 - + 72 * - - 29 ) + 61 + - - CAST ( NULL AS INTEGER ) + 30 * COUNT ( * ) AS col0, + COUNT ( * ) + - 46 / + 56 * + - 35 * 99 + CAST ( NULL AS INTEGER ) + - 50
----
NULL
NULL

query II rowsort
SELECT 4 AS col0, - 6
----
4
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT ALL + - 42 + 34 DIV + 25
----
-41

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + - 42 + 34 / + 25
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + CASE - 49 WHEN + ( 99 ) + - + 11 + - 31 THEN NULL WHEN + 12 + + 97 + - - COUNT( * ) * + COUNT( * ) THEN + 88 END * + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT + CASE - 49 WHEN + ( 99 ) + - + 11 + - 31 THEN NULL WHEN + 12 + + 97 + - - COUNT ( * ) * + COUNT ( * ) THEN + 88 END * + 22 AS col2
----
NULL

query I rowsort
SELECT - + 70 AS col0
----
-70

query I rowsort
SELECT NULLIF ( + 51, 47 )
----
51

query I rowsort
SELECT - 40 + + 58
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT - + 60, MIN( DISTINCT - 99 ) AS col0
----
-60
-99

skipif mysql # not compatible
query II rowsort label-4406
SELECT - + 60, MIN ( DISTINCT - 99 ) AS col0
----
-60
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT ALL - CASE - 44 WHEN 33 * + 58 * 88 + + + 92 THEN COUNT( DISTINCT + - 54 ) * + 38 + + ( + + 27 ) * COALESCE ( COALESCE ( + - NULLIF ( - ( - 45 ), 88 + 11 / - 4 - 68 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ), ( + 22 ), - ( - MAX( DISTINCT - 63 ) ) ), CASE + + 43 WHEN - + 82 / ( + 86 ) * - 43 * + - 19 + - 50 + 85 + + COUNT( * ) + + 60 + 29 THEN NULL WHEN - AVG ( ALL + 10 ) * - 75 THEN 62 WHEN + 82 THEN NULL END, + COUNT( * ) ) * COUNT( * ) ELSE NULL END * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - CASE - 44 WHEN 33 * + 58 * 88 + + + 92 THEN COUNT ( DISTINCT + - 54 ) * + 38 + + ( + + 27 ) * COALESCE ( COALESCE ( + - NULLIF ( - ( - 45 ), 88 + 11 / - 4 - 68 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ), ( + 22 ), - ( - MAX ( DISTINCT - 63 ) ) ), CASE + + 43 WHEN - + 82 / ( + 86 ) * - 43 * + - 19 + - 50 + 85 + + COUNT ( * ) + + 60 + 29 THEN NULL WHEN - AVG ( ALL + 10 ) * - 75 THEN 62 WHEN + 82 THEN NULL END, + COUNT ( * ) ) * COUNT ( * ) ELSE NULL END * - 17 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4408
SELECT COUNT( 49 ), MAX( + CAST( 14 AS SIGNED ) ) + - - 11 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-4408
SELECT COUNT ( 49 ), MAX ( + CAST ( 14 AS INTEGER ) ) + - - 11 AS col2
----
1
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4409
SELECT 85 AS col0, - CAST( NULL AS SIGNED ) * - 12 + - + 59 + COUNT( * )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-4409
SELECT 85 AS col0, - CAST ( NULL AS INTEGER ) * - 12 + - + 59 + COUNT ( * )
----
85
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT - 22 DIV 67 - - 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 22 / 67 - - 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT - 92 * + + 12 * + SUM( + + 98 ) AS col2
----
-108192

skipif mysql # not compatible
query I rowsort label-4411
SELECT - 92 * + + 12 * + SUM ( + + 98 ) AS col2
----
-108192

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - 9 - - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4412
SELECT - 9 - - COUNT ( * ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT CAST( - - ( + + 32 ) AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4413
SELECT CAST ( - - ( + + 32 ) AS INTEGER ) AS col0
----
32

query I rowsort
SELECT ( - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL - COALESCE ( COALESCE ( COUNT( * ), + COALESCE ( + 64, 52 + - + 99 ), + 88 + + 36 ), + - 55 ) * + 1
----
-1

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - COALESCE ( COALESCE ( COUNT ( * ), + COALESCE ( + 64, 52 + - + 99 ), + 88 + + 36 ), + - 55 ) * + 1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT - 79 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT - 79 / + 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4417
SELECT + 32 - + CAST( NULL AS SIGNED ) AS col2, 34 + - - 29 + + - 68 * + 37 col2
----
NULL
-2453

skipif mysql # not compatible
query II rowsort label-4417
SELECT + 32 - + CAST ( NULL AS INTEGER ) AS col2, 34 + - - 29 + + - 68 * + 37 col2
----
NULL
-2453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4418
SELECT + 49 DIV CAST( + COUNT( * ) AS SIGNED ) * + 81 * COUNT( * ), COUNT( * ) AS col0
----
3969
1

skipif mysql # not compatible
query II rowsort label-4418
SELECT + 49 / CAST ( + COUNT ( * ) AS INTEGER ) * + 81 * COUNT ( * ), COUNT ( * ) AS col0
----
3969
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL NULLIF ( + 48, - 60 ) * 11 + + ( + 0 ) * - COUNT( * ) * + 68
----
528

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL NULLIF ( + 48, - 60 ) * 11 + + ( + 0 ) * - COUNT ( * ) * + 68
----
528

query I rowsort
SELECT - 96 + + 46
----
-50

query I rowsort
SELECT + ( 45 )
----
45

query I rowsort
SELECT - ( 21 ) + - 64 * + 91
----
-5845

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4423
SELECT + 78 - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT + 78 - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) - 20 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL 84 * + + ( NULLIF ( - CAST( NULL AS SIGNED ), - 7 ) ) * + + 82 * + + 16 * + 23 + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL 84 * + + ( NULLIF ( - CAST ( NULL AS INTEGER ), - 7 ) ) * + + 82 * + + 16 * + 23 + - 86 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL 83 * 65 * - 91 + + CAST( - 59 AS SIGNED ) + + COUNT( * ) * - ( - 22 ) * + 60 + - 5 - + 83 + ( - 89 )
----
-489861

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL 83 * 65 * - 91 + + CAST ( - 59 AS INTEGER ) + + COUNT ( * ) * - ( - 22 ) * + 60 + - 5 - + 83 + ( - 89 )
----
-489861

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - ( + SUM( ALL 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-4426
SELECT - ( + SUM ( ALL 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - - 71 * - 25 + + 27 + + ( - - 56 ) * + CASE + 20 WHEN - - 68 THEN + - 35 / 90 END / - 99 * - 66 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - - 71 * - 25 + + 27 + + ( - - 56 ) * + CASE + 20 WHEN - - 68 THEN + - 35 / 90 END / - 99 * - 66 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 8 * 10
----
-80

query I rowsort
SELECT + 74 * + 47 col1
----
3478

query I rowsort
SELECT DISTINCT + 75 * + - 30 AS col2
----
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4431
SELECT + 54 + - - 26 + 37 AS col1, 30 + - + CAST( NULL AS SIGNED )
----
117
NULL

skipif mysql # not compatible
query II rowsort label-4431
SELECT + 54 + - - 26 + 37 AS col1, 30 + - + CAST ( NULL AS INTEGER )
----
117
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4432
SELECT ALL - CAST( 98 AS SIGNED ) DIV - ( ( - - ( 45 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - CAST ( 98 AS INTEGER ) / - ( ( - - ( 45 ) ) )
----
2

query I rowsort
SELECT + 68 + - 91
----
-23

query I rowsort
SELECT DISTINCT + 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL + COUNT( * ) * + 76 * ( - 39 )
----
-2964

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + COUNT ( * ) * + 76 * ( - 39 )
----
-2964

query I rowsort
SELECT DISTINCT - 98 * + 6 AS col1
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL 87 * SUM( ALL - 21 ) * - 15 * + - 75 AS col0
----
-2055375

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL 87 * SUM ( ALL - 21 ) * - 15 * + - 75 AS col0
----
-2055375

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT MIN( + 8 ) + - - NULLIF ( + 22, + 41 ) + - 46 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4438
SELECT MIN ( + 8 ) + - - NULLIF ( + 22, + 41 ) + - 46 AS col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4439
SELECT - ( + MAX( + 20 ) ) DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT - ( + MAX ( + 20 ) ) / + 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT NULLIF ( - NULLIF ( - COUNT( * ), + 82 + + 89 ), + 65 ) + 21 + 73 DIV + 43
----
23

skipif mysql # not compatible
query I rowsort label-4440
SELECT NULLIF ( - NULLIF ( - COUNT ( * ), + 82 + + 89 ), + 65 ) + 21 + 73 / + 43
----
23

query I rowsort
SELECT 59 - - - 31
----
28

query I rowsort
SELECT 62 * + + 82 * ( - + 61 )
----
-310124

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT 52 * - COUNT( DISTINCT - 35 ) * COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4443
SELECT 52 * - COUNT ( DISTINCT - 35 ) * COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT + COUNT( * ) DIV - NULLIF ( - ( CASE + 41 WHEN - COUNT( * ) THEN - COUNT( * ) * - - 61 * - COALESCE ( 53, + 72 ) + - COUNT( * ) WHEN 86 * + - 69 THEN NULL ELSE COUNT( * ) + - COUNT( * ) + 28 END ), - - 10 ) + - - SUM( + - 65 ) * 49 + + 57 + - + 88 + 62 + 45 DIV - 15 col1
----
-3157

skipif mysql # not compatible
query I rowsort label-4444
SELECT + COUNT ( * ) / - NULLIF ( - ( CASE + 41 WHEN - COUNT ( * ) THEN - COUNT ( * ) * - - 61 * - COALESCE ( 53, + 72 ) + - COUNT ( * ) WHEN 86 * + - 69 THEN NULL ELSE COUNT ( * ) + - COUNT ( * ) + 28 END ), - - 10 ) + - - SUM ( + - 65 ) * 49 + + 57 + - + 88 + 62 + 45 / - 15 col1
----
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT COUNT( * ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-4445
SELECT COUNT ( * ) * + 44
----
44

query I rowsort
SELECT DISTINCT - 71 + - ( 86 ) AS col2
----
-157

query I rowsort
SELECT 67 * - 14
----
-938

query I rowsort
SELECT ALL - 89 + 2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL + 26 + 27 + + COUNT( * ) * - 63 * + 54 + + + 3
----
-3346

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + 26 + 27 + + COUNT ( * ) * - 63 * + 54 + + + 3
----
-3346

query I rowsort
SELECT DISTINCT - 71 * 90
----
-6390

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL COUNT( * ) + + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL COUNT ( * ) + + 7 AS col1
----
8

query II rowsort
SELECT 92 * - 51 * - 73 AS col2, + 40
----
342516
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + - MIN( ALL - - 73 ) - + - 65 * 49 + - COUNT( * )
----
3111

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + - MIN ( ALL - - 73 ) - + - 65 * 49 + - COUNT ( * )
----
3111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4454
SELECT - COALESCE ( COUNT( * ), + 56 DIV - 86 ) * ( 61 ) - + 57
----
-118

skipif mysql # not compatible
query I rowsort label-4454
SELECT - COALESCE ( COUNT ( * ), + 56 / - 86 ) * ( 61 ) - + 57
----
-118

query I rowsort
SELECT + 86 * + 42
----
3612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-4456
SELECT CAST ( 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL + SUM( DISTINCT + + 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + SUM ( DISTINCT + + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + COUNT( * ) - + COALESCE ( + 59, - MAX( ALL + ( - 57 ) ) * - ( - - 25 ) + 19, NULLIF ( - - 12, - + 92 * - 25 * - 28 ) * + - 71 * + 34 ) + - 37
----
-95

skipif mysql # not compatible
query I rowsort label-4458
SELECT + COUNT ( * ) - + COALESCE ( + 59, - MAX ( ALL + ( - 57 ) ) * - ( - - 25 ) + 19, NULLIF ( - - 12, - + 92 * - 25 * - 28 ) * + - 71 * + 34 ) + - 37
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL + + 95 - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + + 95 - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT DISTINCT - 59, - COUNT( ALL + 77 ) AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-4460
SELECT DISTINCT - 59, - COUNT ( ALL + 77 ) AS col1
----
-59
-1

query I rowsort
SELECT ( - - 63 )
----
63

query II rowsort
SELECT - 11 col0, + 53 AS col2
----
-11
53

query I rowsort
SELECT DISTINCT - 2 * - 17
----
34

query I rowsort
SELECT - 32 * + + 33
----
-1056

query I rowsort
SELECT - - 56
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT 83 AS col2, - COUNT( * )
----
83
-1

skipif mysql # not compatible
query II rowsort label-4466
SELECT 83 AS col2, - COUNT ( * )
----
83
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT - CAST( - - 46 AS SIGNED ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-4467
SELECT - CAST ( - - 46 AS INTEGER ) col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT DISTINCT 90 col2, + COUNT( * ) col1
----
90
1

skipif mysql # not compatible
query II rowsort label-4468
SELECT DISTINCT 90 col2, + COUNT ( * ) col1
----
90
1

query II rowsort
SELECT ALL + 89 AS col1, - 94 AS col0
----
89
-94

query I rowsort
SELECT CASE - ( + + 13 ) WHEN - 83 THEN - 15 ELSE NULL END * + 4 + ( - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT + 47 * + - MIN( + 79 ) AS col0
----
-3713

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + 47 * + - MIN ( + 79 ) AS col0
----
-3713

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT 77 DIV 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT 77 / 89 AS col2
----
0

query I rowsort
SELECT ALL 63 * + 98 + - - 2
----
6176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT NULLIF ( - - COUNT( * ), - - 13 ) - + 76 * - ( - CAST( - - 22 AS SIGNED ) ) AS col1
----
-1671

skipif mysql # not compatible
query I rowsort label-4474
SELECT NULLIF ( - - COUNT ( * ), - - 13 ) - + 76 * - ( - CAST ( - - 22 AS INTEGER ) ) AS col1
----
-1671

query I rowsort
SELECT 87 * - + 50 * + + 79 col0
----
-343650

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT 58 + + + COUNT( * ) * - + 75
----
-17

skipif mysql # not compatible
query I rowsort label-4476
SELECT 58 + + + COUNT ( * ) * - + 75
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 75 * + 4 + - CASE + + 20 WHEN - + COUNT( * ) / + 6 + + - 97 THEN - - 73 * - COUNT( * ) + - 7 ELSE NULL END * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 75 * + 4 + - CASE + + 20 WHEN - + COUNT ( * ) / + 6 + + - 97 THEN - - 73 * - COUNT ( * ) + - 7 ELSE NULL END * 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + ( COUNT( * ) ) * + COUNT( * ) - 69 * + COALESCE ( COUNT( * ), - 98, - + 96 ) + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4478
SELECT + ( COUNT ( * ) ) * + COUNT ( * ) - 69 * + COALESCE ( COUNT ( * ), - 98, - + 96 ) + COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT DISTINCT 37 * + 55 * + 60
----
122100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4480
SELECT COUNT( * ) / - - 57 + 29 + - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT COUNT ( * ) / - - 57 + 29 + - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL COUNT( * ) * 26 + + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL COUNT ( * ) * 26 + + + COUNT ( * )
----
27

query I rowsort
SELECT 92 - 6
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT ALL - CAST( + 19 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - CAST ( + 19 AS INTEGER ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT CASE + ( + ( COUNT( * ) ) ) WHEN 28 + COUNT( - - 78 ) THEN + 24 WHEN - - 54 THEN - 5 ELSE NULL END * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT CASE + ( + ( COUNT ( * ) ) ) WHEN 28 + COUNT ( - - 78 ) THEN + 24 WHEN - - 54 THEN - 5 ELSE NULL END * + 68
----
NULL

query II rowsort
SELECT ALL - 16 - + 34 col2, + 41 * - 98 AS col0
----
-50
-4018

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT - + 36 + + ( ( - 39 ) ) + + 2 DIV 72 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4486
SELECT - + 36 + + ( ( - 39 ) ) + + 2 / 72 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT - + 31 * - COUNT( * ) * - - 80 + - CAST( NULL AS SIGNED ) + - + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT - + 31 * - COUNT ( * ) * - - 80 + - CAST ( NULL AS INTEGER ) + - + 13 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 58 col2
----
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4490
SELECT - 50 * + + NULLIF ( - + ( - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ), + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT - 50 * + + NULLIF ( - + ( - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ), + 18 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 65 * 29 + 50
----
1935

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - COUNT( ALL - + 77 ) * 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4492
SELECT - COUNT ( ALL - + 77 ) * 56 AS col2
----
-56

query I rowsort
SELECT - 77 + 94 + + 94
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT - - 9 DIV - - 53 * + 58
----
0

skipif mysql # not compatible
query I rowsort label-4494
SELECT - - 9 / - - 53 * + 58
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT - + 4 * + + MAX( DISTINCT + 11 ) * + - COUNT( * ), 97 AS col1
----
44
97

skipif mysql # not compatible
query II rowsort label-4495
SELECT - + 4 * + + MAX ( DISTINCT + 11 ) * + - COUNT ( * ), 97 AS col1
----
44
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4496
SELECT ALL - CASE + 86 WHEN - NULLIF ( - 57, - NULLIF ( - SUM( 65 ), ( - 9 ) ) * + - 7 - - 30 ) * + 45 + + + 33 THEN NULL WHEN SUM( DISTINCT + 41 ) + + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + + 54 - 65 + - ( - AVG ( DISTINCT + 81 ) ) * - - 65 * - 50 * 7 + - + ( MAX( DISTINCT + 91 ) ) + 88 + + + 85 * - 26 * - 17 THEN + ( COUNT( * ) ) WHEN + - 48 / COUNT( * ) THEN COALESCE ( 85, - CAST( NULL AS SIGNED ), - 14, - - MAX( + 35 ) * ( + - 80 ) ) - 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL - CASE + 86 WHEN - NULLIF ( - 57, - NULLIF ( - SUM ( 65 ), ( - 9 ) ) * + - 7 - - 30 ) * + 45 + + + 33 THEN NULL WHEN SUM ( DISTINCT + 41 ) + + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + + 54 - 65 + - ( - AVG ( DISTINCT + 81 ) ) * - - 65 * - 50 * 7 + - + ( MAX ( DISTINCT + 91 ) ) + 88 + + + 85 * - 26 * - 17 THEN + ( COUNT ( * ) ) WHEN + - 48 / COUNT ( * ) THEN COALESCE ( 85, - CAST ( NULL AS INTEGER ), - 14, - - MAX ( + 35 ) * ( + - 80 ) ) - 24 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4497
SELECT - + 35 * - 4 AS col0, 90 * 44 * 75 + + 88 + + - 61 DIV - - 80 * - 7 * - 84 AS col0
----
140
297088

skipif mysql # not compatible
query II rowsort label-4497
SELECT - + 35 * - 4 AS col0, 90 * 44 * 75 + + 88 + + - 61 / - - 80 * - 7 * - 84 AS col0
----
140
297088

query I rowsort
SELECT - + NULLIF ( 35, + 31 * 5 ) AS col2
----
-35

query I rowsort
SELECT - 52 + + ( - 88 )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL 5 + - 55 + - - 40 + - CASE + COUNT( - 59 ) WHEN + + COUNT( * ) THEN NULL WHEN - AVG ( + 71 ) THEN + - 44 WHEN + 13 THEN + 29 * - 8 + + 44 END * - - 30 * - + 66 - 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL 5 + - 55 + - - 40 + - CASE + COUNT ( - 59 ) WHEN + + COUNT ( * ) THEN NULL WHEN - AVG ( + 71 ) THEN + - 44 WHEN + 13 THEN + 29 * - 8 + + 44 END * - - 30 * - + 66 - 62 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - MIN( ALL - - 59 ) + - + 23 + - NULLIF ( COUNT( ALL + 81 ), 41 * - 80 * - + 65 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - MIN ( ALL - - 59 ) + - + 23 + - NULLIF ( COUNT ( ALL + 81 ), 41 * - 80 * - + 65 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT + 56 + + + CASE 3 WHEN 48 + + 26 - - + 98 * + 75 THEN CAST( + - COUNT( * ) AS SIGNED ) ELSE NULL END * - SUM( ALL - - 15 ) + - + CAST( - - MIN( DISTINCT - 29 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 56 + + + CASE 3 WHEN 48 + + 26 - - + 98 * + 75 THEN CAST ( + - COUNT ( * ) AS INTEGER ) ELSE NULL END * - SUM ( ALL - - 15 ) + - + CAST ( - - MIN ( DISTINCT - 29 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 27 + - 82 * + + 57
----
-4647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT + 9 + 41 * + - 16 * + CAST( NULL AS SIGNED ) - + ( ( - ( + 56 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT + 9 + 41 * + - 16 * + CAST ( NULL AS INTEGER ) - + ( ( - ( + 56 ) ) ) AS col2
----
NULL

query II rowsort
SELECT + ( 99 ) + + 91 col0, 67 AS col2
----
190
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4506
SELECT ALL 27 DIV 73 * + - 14 + + COUNT( ALL + 22 ), - 49 + 65 * + + CAST( + + 94 AS SIGNED ) AS col0
----
1
6061

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL 27 / 73 * + - 14 + + COUNT ( ALL + 22 ), - 49 + 65 * + + CAST ( + + 94 AS INTEGER ) AS col0
----
1
6061

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT ALL 46 * 9 DIV 85 + + 38
----
42

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL 46 * 9 / 85 + + 38
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT + COALESCE ( - 54, + 21, + 32 DIV MIN( DISTINCT - 30 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4508
SELECT + COALESCE ( - 54, + 21, + 32 / MIN ( DISTINCT - 30 ) )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT COUNT( * ) * + 32 + 20 + + 47 + + COUNT( * ), 52 AS col1
----
100
52

skipif mysql # not compatible
query II rowsort label-4509
SELECT COUNT ( * ) * + 32 + 20 + + 47 + + COUNT ( * ), 52 AS col1
----
100
52

query I rowsort
SELECT ALL 54 * + 15 * + COALESCE ( + 82, - + 39 + + + 88 - + - 25 + + + 35 )
----
66420

query I rowsort
SELECT ( - - 66 ) AS col0
----
66

query I rowsort
SELECT + 19 + - 87 * - 68 AS col0
----
5935

query I rowsort
SELECT ALL 83 * - 67 - + 23 AS col2
----
-5584

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4514
SELECT + CAST( NULL AS DECIMAL ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT + CAST ( NULL AS REAL ) * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL COUNT( * ) * - + NULLIF ( 16, + 76 * + - 44 + - 70 * 84 * + 68 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL COUNT ( * ) * - + NULLIF ( 16, + 76 * + - 44 + - 70 * 84 * + 68 ) AS col1
----
-16

query I rowsort
SELECT + 87 * - 13 + 61 - - 14
----
-1056

query I rowsort
SELECT DISTINCT + + ( + + 18 )
----
18

query I rowsort
SELECT DISTINCT + 50 AS col2
----
50

query I rowsort
SELECT ALL - ( - + 46 ) * - 71 * - 68 AS col1
----
222088

query I rowsort
SELECT ALL + + 4 AS col2
----
4

query I rowsort
SELECT - 57 + + 16 AS col2
----
-41

query I rowsort
SELECT ( + + NULLIF ( - 68, + 68 + + + 14 ) ) * - 63 + + - 85 AS col1
----
4199

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT MAX( + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4523
SELECT MAX ( + 49 ) AS col2
----
49

query I rowsort
SELECT - 84 * - 90
----
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL - + 39 * COUNT( + 63 ) + - 53 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - + 39 * COUNT ( + 63 ) + - 53 AS col0
----
-92

query I rowsort
SELECT + 23 * 51
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - 45 * + + COUNT( * ) * + NULLIF ( - - 81, + COUNT( * ) ) - - 56 * + ( MIN( + + 82 ) )
----
947

skipif mysql # not compatible
query I rowsort label-4527
SELECT - 45 * + + COUNT ( * ) * + NULLIF ( - - 81, + COUNT ( * ) ) - - 56 * + ( MIN ( + + 82 ) )
----
947

query I rowsort
SELECT DISTINCT 65 * + 77 + + 65
----
5070

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT - COUNT( * ) - MIN( DISTINCT - 78 ) + 51 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4529
SELECT - COUNT ( * ) - MIN ( DISTINCT - 78 ) + 51 AS col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-4530
SELECT ALL 11 * - NULLIF ( - 30, + ( COUNT( * ) ) * + 83 ) + - 39 + - + 87 * COUNT( * ) * - COUNT( * ) col1, 76
----
378
76

skipif mysql # not compatible
query II rowsort label-4530
SELECT ALL 11 * - NULLIF ( - 30, + ( COUNT ( * ) ) * + 83 ) + - 39 + - + 87 * COUNT ( * ) * - COUNT ( * ) col1, 76
----
378
76

query I rowsort
SELECT ALL + 92 + - 89 AS col0
----
3

query I rowsort
SELECT DISTINCT - 34 col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4533
SELECT ALL - 29 + - 70, + 90 * - MIN( + + 98 ) * + NULLIF ( + 95, + + COALESCE ( - + COUNT( - 81 ), - 33, + CAST( - ( 4 ) AS SIGNED ) * 56 ) ) AS col2
----
-99
-837900

skipif mysql # not compatible
query II rowsort label-4533
SELECT ALL - 29 + - 70, + 90 * - MIN ( + + 98 ) * + NULLIF ( + 95, + + COALESCE ( - + COUNT ( - 81 ), - 33, + CAST ( - ( 4 ) AS INTEGER ) * 56 ) ) AS col2
----
-99
-837900

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT - 33 DIV + 7
----
-4

skipif mysql # not compatible
query I rowsort label-4534
SELECT - 33 / + 7
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4535
SELECT ALL - 56 + + + CASE 51 WHEN - NULLIF ( CAST( - 61 AS DECIMAL ), - 17 * - 87 ) + - 61 THEN - 27 WHEN - 66 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - 56 + + + CASE 51 WHEN - NULLIF ( CAST ( - 61 AS REAL ), - 17 * - 87 ) + - 61 THEN - 27 WHEN - 66 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL ( - COALESCE ( + COUNT( * ), - MIN( CAST( NULL AS SIGNED ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL ( - COALESCE ( + COUNT ( * ), - MIN ( CAST ( NULL AS INTEGER ) ) ) )
----
-1

query II rowsort
SELECT 3 AS col1, 44 AS col1
----
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT - SUM( - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4538
SELECT - SUM ( - 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - COUNT( * ) - + - 27 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4539
SELECT - COUNT ( * ) - + - 27 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4540
SELECT - 79 * 86 * - - ( + 31 ) AS col0, - 27 * + CASE COUNT( * ) WHEN + + 19 * - 20 - 50 THEN NULL ELSE 25 END + + 72 + + CAST( NULL AS SIGNED )
----
-210614
NULL

skipif mysql # not compatible
query II rowsort label-4540
SELECT - 79 * 86 * - - ( + 31 ) AS col0, - 27 * + CASE COUNT ( * ) WHEN + + 19 * - 20 - 50 THEN NULL ELSE 25 END + + 72 + + CAST ( NULL AS INTEGER )
----
-210614
NULL

query II rowsort
SELECT 47, + 16 col2
----
47
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT ALL - 30 DIV + 41 * ( + - MAX( + ( + 60 ) ) ) DIV 36 + + + ( - - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - 30 / + 41 * ( + - MAX ( + ( + 60 ) ) ) / 36 + + + ( - - 44 ) AS col1
----
44

query I rowsort
SELECT + 3 * - 17
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + SUM( + 63 ) + NULLIF ( - COUNT( * ), + 26 )
----
62

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + SUM ( + 63 ) + NULLIF ( - COUNT ( * ), + 26 )
----
62

query I rowsort
SELECT DISTINCT ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT - COUNT( * ) AS col2, 25
----
-1
25

skipif mysql # not compatible
query II rowsort label-4546
SELECT - COUNT ( * ) AS col2, 25
----
-1
25

query II rowsort
SELECT 41 AS col0, 60 + - 23 + 31
----
41
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL CAST( - 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CAST ( - 86 AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT - 12 - + 6 + + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - 12 - + 6 + + - COUNT ( * )
----
-19

query I rowsort
SELECT ALL + 58 * 30 AS col0
----
1740

query I rowsort
SELECT + NULLIF ( - ( - 85 ), AVG ( - 33 ) ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT ALL 10 DIV + 70 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL 10 / + 70 - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4553
SELECT DISTINCT + COUNT( * ) * - 35 DIV - - 13 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + COUNT ( * ) * - 35 / - - 13 AS col2
----
-2

query II rowsort
SELECT 76 + - 62, ( 7 ) + - 57 AS col1
----
14
-50

query II rowsort
SELECT + 93, + 5 * - 23 AS col0
----
93
-115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4556
SELECT ( ( - ( - 42 ) ) ) * + - CAST( NULL AS DECIMAL ) + ( - 21 ) + + + 52 / + + CASE - 53 WHEN + - 90 + - - 82 + + 79 THEN + 41 ELSE - 6 END * - - ( + 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4556
SELECT ( ( - ( - 42 ) ) ) * + - CAST ( NULL AS REAL ) + ( - 21 ) + + + 52 / + + CASE - 53 WHEN + - 90 + - - 82 + + 79 THEN + 41 ELSE - 6 END * - - ( + 55 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT CAST( NULL AS SIGNED ) * 75 + - NULLIF ( - 47, + 45 + - 80 ) + - 3 + - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT CAST ( NULL AS INTEGER ) * 75 + - NULLIF ( - 47, + 45 + - 80 ) + - 3 + - + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ( COALESCE ( ( - MIN( ALL 96 ) ), + - ( + - ( 68 ) ) ) ) * 58 + - 78
----
-5646

skipif mysql # not compatible
query I rowsort label-4558
SELECT ( COALESCE ( ( - MIN ( ALL 96 ) ), + - ( + - ( 68 ) ) ) ) * 58 + - 78
----
-5646

onlyif mysql # DIV for integer division: 
query II rowsort label-4559
SELECT ALL + 9 DIV - - 46 AS col0, NULLIF ( + ( + 68 ), + 41 * - 60 ) AS col1
----
0
68

skipif mysql # not compatible
query II rowsort label-4559
SELECT ALL + 9 / - - 46 AS col0, NULLIF ( + ( + 68 ), + 41 * - 60 ) AS col1
----
0
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT + CAST( NULL AS SIGNED ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT + CAST ( NULL AS INTEGER ) * - 31
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4561
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT - CAST ( NULL AS REAL ) col2
----
NULL

query II rowsort
SELECT DISTINCT - 23 AS col0, + 0 AS col2
----
-23
0

query I rowsort
SELECT DISTINCT - - 97
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4564
SELECT ALL 1 DIV 97 + MIN( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL 1 / 97 + MIN ( DISTINCT - 28 )
----
-28

query II rowsort
SELECT ALL - 72, + 17 - 99 + - + 50 * - 54 * - 29 AS col1
----
-72
-78382

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - SUM( DISTINCT 34 ) * - + COUNT( + 16 ) * MAX( + 51 ) * - 23 * 72 + + - 30 col1
----
-2871534

skipif mysql # not compatible
query I rowsort label-4566
SELECT - SUM ( DISTINCT 34 ) * - + COUNT ( + 16 ) * MAX ( + 51 ) * - 23 * 72 + + - 30 col1
----
-2871534

query I rowsort
SELECT + 9 * ( - CASE WHEN NOT NULL IN ( 65, AVG ( DISTINCT + 32 ) * 86, + - 11, 14 ) THEN - 66 ELSE NULL END ) + 22 + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT COUNT( * ), 3 AS col2
----
1
3

skipif mysql # not compatible
query II rowsort label-4568
SELECT COUNT ( * ), 3 AS col2
----
1
3

query I rowsort
SELECT + + 5 col1
----
5

query II rowsort
SELECT ALL 42 + + + 32 AS col0, + 62
----
74
62

query I rowsort
SELECT - 12 + + + 89 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4572
SELECT + COUNT( * ) * + 70 * - + ( + CAST( NULL AS SIGNED ) ) * - 34 * - 37 * 52 AS col1, SUM( 33 ) AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4572
SELECT + COUNT ( * ) * + 70 * - + ( + CAST ( NULL AS INTEGER ) ) * - 34 * - 37 * 52 AS col1, SUM ( 33 ) AS col0
----
NULL
33

query I rowsort
SELECT DISTINCT 99 * - - 71
----
7029

query I rowsort
SELECT ALL - 21 + - 67 * 9
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + 63 + - + MIN( ALL 4 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + 63 + - + MIN ( ALL 4 ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4576
SELECT - 86, ( - 10 ) * + - 1 * + - 86 + MIN( - 12 ) DIV + 5 AS col2
----
-86
-862

skipif mysql # not compatible
query II rowsort label-4576
SELECT - 86, ( - 10 ) * + - 1 * + - 86 + MIN ( - 12 ) / + 5 AS col2
----
-86
-862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL + 41 + - CAST( NULL AS SIGNED ) / - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + 41 + - CAST ( NULL AS INTEGER ) / - 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4578
SELECT DISTINCT 27 + - 11 + NULLIF ( + 45, 33 + + + 87 + + + ( + COUNT( * ) ) + 23 ) col1, 26 DIV + 92 - - + MAX( DISTINCT + 98 )
----
61
98

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT 27 + - 11 + NULLIF ( + 45, 33 + + + 87 + + + ( + COUNT ( * ) ) + 23 ) col1, 26 / + 92 - - + MAX ( DISTINCT + 98 )
----
61
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT CAST( NULL AS SIGNED ) + + + 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT CAST ( NULL AS INTEGER ) + + + 52 col2
----
NULL

query I rowsort
SELECT 96 * + 26 AS col0
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT 67 + 13 DIV + 72 DIV - COUNT( + + 52 )
----
67

skipif mysql # not compatible
query I rowsort label-4581
SELECT 67 + 13 / + 72 / - COUNT ( + + 52 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL - COUNT( * ) - + 61 - - + CASE + NULLIF ( - SUM( ALL 15 ), 71 + - + 83 / - 38 ) WHEN - - 93 THEN NULL WHEN + COUNT( * ) THEN ( + - 77 ) ELSE NULL END / + + 7 * - - 57 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - COUNT ( * ) - + 61 - - + CASE + NULLIF ( - SUM ( ALL 15 ), 71 + - + 83 / - 38 ) WHEN - - 93 THEN NULL WHEN + COUNT ( * ) THEN ( + - 77 ) ELSE NULL END / + + 7 * - - 57 * 64
----
NULL

query II rowsort
SELECT DISTINCT 14 - - 17 AS col2, 80 * - 6 * - - 88 col2
----
31
-42240

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT 86 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4584
SELECT 86 * + COUNT ( * )
----
86

query I rowsort
SELECT 93 + - 72 + 34 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL - 26 * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - 26 * COUNT ( * )
----
-26

query I rowsort
SELECT 2 + 45 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( ALL + ( - 97 ) ) * - + 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( ALL + ( - 97 ) ) * - + 9 AS col0
----
-9

query I rowsort
SELECT 12 + - 21 * - + 35 - - - 71
----
676

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4590
SELECT 18 DIV 25, + COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-4590
SELECT 18 / 25, + COUNT ( * ) col1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4591
SELECT COUNT( * ) + - + CAST( NULL AS DECIMAL ) * + - COUNT( DISTINCT 30 ) * + + 88 + + 36 * - 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT COUNT ( * ) + - + CAST ( NULL AS REAL ) * + - COUNT ( DISTINCT 30 ) * + + 88 + + 36 * - 18 col1
----
NULL

query I rowsort
SELECT - 93 col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT 31 DIV SUM( DISTINCT 65 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT 31 / SUM ( DISTINCT 65 ) col0
----
0

query I rowsort
SELECT ALL - 9 * - ( - 75 ) * + 86 * 14 col1
----
-812700

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - COALESCE ( COALESCE ( 45, + 0 ), - MIN( ALL + - 20 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - COALESCE ( COALESCE ( 45, + 0 ), - MIN ( ALL + - 20 ) ) AS col1
----
-45

query I rowsort
SELECT DISTINCT - + 68
----
-68

query I rowsort
SELECT ALL 46 + 33 * 17 AS col0
----
607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT ALL - - 74 * - - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL - - 74 * - - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT 28 * CASE + 56 WHEN + COUNT( ALL - + 34 ) / - + 63 * 62 THEN NULL ELSE + 27 * - MIN( 34 ) * + 89 + - 38 END AS col1, - ( - 93 ) * - 52 * 74
----
-2288720
-357864

skipif mysql # not compatible
query II rowsort label-4599
SELECT 28 * CASE + 56 WHEN + COUNT ( ALL - + 34 ) / - + 63 * 62 THEN NULL ELSE + 27 * - MIN ( 34 ) * + 89 + - 38 END AS col1, - ( - 93 ) * - 52 * 74
----
-2288720
-357864

query I rowsort
SELECT DISTINCT - 86 + + - 24 - + 41 - + 18 AS col2
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT - 53 * - + 8 * - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 53 * - + 8 * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT 77 * - + COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4602
SELECT 77 * - + COUNT ( * ) AS col0
----
-77

query I rowsort
SELECT + - 20 AS col2
----
-20

query I rowsort
SELECT DISTINCT - + 32 + + NULLIF ( + 44, - 85 ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT DISTINCT + 3 DIV + - ( + 47 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT + 3 / + - ( + 47 ) col2
----
0

query I rowsort
SELECT ALL - 92 + - + 27 - - 0 * - + 48
----
-119

query I rowsort
SELECT ALL CASE 88 WHEN - ( + 32 ) / 5 THEN NULLIF ( + 9, - 82 ) * 51 END * + 11 + + + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4608
SELECT ALL 76 + COUNT( - 1 ) - - + CASE - + 98 WHEN - CAST( NULL AS SIGNED ) THEN + 44 WHEN + 92 * + COUNT( * ) + 74 + + 48 THEN 20 ELSE - COUNT( * ) DIV + 23 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 76 + COUNT ( - 1 ) - - + CASE - + 98 WHEN - CAST ( NULL AS INTEGER ) THEN + 44 WHEN + 92 * + COUNT ( * ) + 74 + + 48 THEN 20 ELSE - COUNT ( * ) / + 23 END AS col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT DISTINCT - 42 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - 42 / 64
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-4610
SELECT + MAX( ALL + 13 ) AS col2, - 57, 2 - + COUNT( * ) AS col2
----
13
-57
1

skipif mysql # not compatible
query III rowsort label-4610
SELECT + MAX ( ALL + 13 ) AS col2, - 57, 2 - + COUNT ( * ) AS col2
----
13
-57
1

query II rowsort
SELECT 85, ( + 60 ) * + - 22 AS col2
----
85
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT 50 - - 10 + - - 66 * + - 13 * + COUNT( * ) AS col2
----
-798

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT 50 - - 10 + - - 66 * + - 13 * + COUNT ( * ) AS col2
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT NULLIF ( + NULLIF ( + COUNT( * ), + 45 ), 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT NULLIF ( + NULLIF ( + COUNT ( * ), + 45 ), 98 ) AS col1
----
1

query I rowsort
SELECT ALL + 30 * + 72
----
2160

query I rowsort
SELECT ALL 56 * - + 57 AS col1
----
-3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT DISTINCT 73 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT 73 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT DISTINCT 22 AS col0, + COUNT( DISTINCT + + NULLIF ( + 47, - + 31 * - 13 ) )
----
22
1

skipif mysql # not compatible
query II rowsort label-4617
SELECT DISTINCT 22 AS col0, + COUNT ( DISTINCT + + NULLIF ( + 47, - + 31 * - 13 ) )
----
22
1

query I rowsort
SELECT 96 * - 30
----
-2880

query II rowsort
SELECT + ( - 69 ) - - - 27, 36 * + - 5 AS col1
----
-96
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT + SUM( DISTINCT - 64 ) * + 97 + + - 0 AS col2, 88 AS col1
----
-6208
88

skipif mysql # not compatible
query II rowsort label-4620
SELECT + SUM ( DISTINCT - 64 ) * + 97 + + - 0 AS col2, 88 AS col1
----
-6208
88

query I rowsort
SELECT - 72 * - 31 AS col2
----
2232

query I rowsort
SELECT DISTINCT - ( + 98 ) * - + 11 * - 78 + - 37
----
-84121

query I rowsort
SELECT - CASE - NULLIF ( - 2, + 86 ) WHEN 42 THEN - 83 WHEN 6 * 77 * + + 39 * + - 0 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4624
SELECT ALL 92, 16 DIV - COALESCE ( - - 4, 89 ) AS col1
----
92
-4

skipif mysql # not compatible
query II rowsort label-4624
SELECT ALL 92, 16 / - COALESCE ( - - 4, 89 ) AS col1
----
92
-4

query I rowsort
SELECT ALL - 77 * + + 85 AS col1
----
-6545

query I rowsort
SELECT + 36 * ( - - COALESCE ( 49, + 11 ) ) * - 52 AS col0
----
-91728

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL 42 + 91 + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL 42 + 91 + COUNT ( * )
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4628
SELECT - 54 - + 22 + + 90 * - + CAST( NULL AS SIGNED ) * + + 9 + 39, 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4628
SELECT - 54 - + 22 + + 90 * - + CAST ( NULL AS INTEGER ) * + + 9 + 39, 36 AS col1
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL - + 13 + + 91 * COUNT( ALL + 74 ) col2
----
78

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL - + 13 + + 91 * COUNT ( ALL + 74 ) col2
----
78

query I rowsort
SELECT - 0 - + 55 + + 16 AS col1
----
-39

query I rowsort
SELECT - ( 9 )
----
-9

query I rowsort
SELECT + 44 + + 64 AS col1
----
108

query I rowsort
SELECT - - 37 * 49 * - 4 * + + 19 AS col2
----
-137788

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL + + 40 * + - 24 + - - 40 + + - 44 + + COUNT( * ) AS col1
----
-963

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + + 40 * + - 24 + - - 40 + + - 44 + + COUNT ( * ) AS col1
----
-963

query I rowsort
SELECT + - ( - 45 ) + - - 42 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT - - 87 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT - - 87 / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - ( - - 84 ) * + + COUNT( * ) + - 82 * ( + 26 ) AS col1
----
-2216

skipif mysql # not compatible
query I rowsort label-4637
SELECT - ( - - 84 ) * + + COUNT ( * ) + - 82 * ( + 26 ) AS col1
----
-2216

query I rowsort
SELECT - ( - + 0 ) - + 99
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT ALL + - 9 DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + - 9 / - + 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT DISTINCT + + ( + 0 ) * - - COUNT( * ) - - COUNT( - + CAST( - 35 AS SIGNED ) ) + - 53 - + 99 + + ( - 79 ) * - 70 AS col0
----
5379

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT + + ( + 0 ) * - - COUNT ( * ) - - COUNT ( - + CAST ( - 35 AS INTEGER ) ) + - 53 - + 99 + + ( - 79 ) * - 70 AS col0
----
5379

query I rowsort
SELECT - 7 + - 50 AS col0
----
-57

query I rowsort
SELECT ALL - - 22 * 28 + 20
----
636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4643
SELECT DISTINCT + + ( - 10 ) * + CASE - NULLIF ( + MIN( ALL - + ( - - COALESCE ( 5, - 61, - - CAST( NULL AS SIGNED ), - - 44 ) ) ), - 45 + - + COUNT( * ) * - ( - CAST( + 4 AS SIGNED ) ) * - - COUNT( * ) - COUNT( * ) ) WHEN + 39 - 92 + - AVG ( 81 ) + - MAX( DISTINCT + 87 ) THEN - 62 WHEN + - 81 THEN NULL WHEN + + NULLIF ( - COUNT( * ), CASE - 88 WHEN + 8 THEN - + 51 * + COUNT( * ) * - 92 - + COALESCE ( 62, + ( + - 14 ) ) END * 55 ) THEN - 20 * - ( + - 51 ) / + + 38 ELSE NULL END / + + 20 + 51 + 25 AS col0, + 53 - - + CAST( NULL AS SIGNED ) + ( 43 ) * + 94 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT + + ( - 10 ) * + CASE - NULLIF ( + MIN ( ALL - + ( - - COALESCE ( 5, - 61, - - CAST ( NULL AS INTEGER ), - - 44 ) ) ), - 45 + - + COUNT ( * ) * - ( - CAST ( + 4 AS INTEGER ) ) * - - COUNT ( * ) - COUNT ( * ) ) WHEN + 39 - 92 + - AVG ( 81 ) + - MAX ( DISTINCT + 87 ) THEN - 62 WHEN + - 81 THEN NULL WHEN + + NULLIF ( - COUNT ( * ), CASE - 88 WHEN + 8 THEN - + 51 * + COUNT ( * ) * - 92 - + COALESCE ( 62, + ( + - 14 ) ) END * 55 ) THEN - 20 * - ( + - 51 ) / + + 38 ELSE NULL END / + + 20 + 51 + 25 AS col0, + 53 - - + CAST ( NULL AS INTEGER ) + ( 43 ) * + 94 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL + 55 * - 83 - + - 36 / + 34 + + CAST( NULL AS SIGNED ) + - + 17 / + MAX( DISTINCT - + 32 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + 55 * - 83 - + - 36 / + 34 + + CAST ( NULL AS INTEGER ) + - + 17 / + MAX ( DISTINCT - + 32 ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT - 30 + - - ( + CAST( - + 23 AS SIGNED ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4645
SELECT - 30 + - - ( + CAST ( - + 23 AS INTEGER ) ) AS col2
----
-53

query II rowsort
SELECT DISTINCT + 73, + 40 AS col2
----
73
40

query I rowsort
SELECT ( - + 85 ) AS col1
----
-85

query I rowsort
SELECT + NULLIF ( + 21, - 62 ) AS col1
----
21

query I rowsort
SELECT ALL + - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL - COALESCE ( - 17, + - ( 28 ) ) * - - 64 * + 87 - - + 37 - 3 * + 49 * - + COUNT( * ) AS col2
----
94840

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - COALESCE ( - 17, + - ( 28 ) ) * - - 64 * + 87 - - + 37 - 3 * + 49 * - + COUNT ( * ) AS col2
----
94840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT + + 69 * + 32 * COUNT( * ) * + CAST( + + 91 AS SIGNED ) AS col0
----
200928

skipif mysql # not compatible
query I rowsort label-4651
SELECT + + 69 * + 32 * COUNT ( * ) * + CAST ( + + 91 AS INTEGER ) AS col0
----
200928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4652
SELECT DISTINCT 4 * - - 60 - - COUNT( * ) - - + 42 + 6 + - COUNT( * ) DIV + - 9 - 80
----
209

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT 4 * - - 60 - - COUNT ( * ) - - + 42 + 6 + - COUNT ( * ) / + - 9 - 80
----
209

query I rowsort
SELECT ALL + 32 AS col1
----
32

query I rowsort
SELECT ALL 5 * - + 34 * + 47 - + + 77 + - 45 AS col0
----
-8112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT ALL COUNT( ALL - 72 ) DIV 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL COUNT ( ALL - 72 ) / 2 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT DISTINCT ( + 73 ) AS col1, COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-4656
SELECT DISTINCT ( + 73 ) AS col1, COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT ALL ( - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT + ( + + COUNT( * ) ) DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4658
SELECT + ( + + COUNT ( * ) ) / 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT - COALESCE ( + ( COUNT( ALL + 22 ) ), + - 13 ) * 97 * + COUNT( * ) + 18 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-4659
SELECT - COALESCE ( + ( COUNT ( ALL + 22 ) ), + - 13 ) * 97 * + COUNT ( * ) + 18 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT + 20 * NULLIF ( + - CAST( NULL AS SIGNED ), + - 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 20 * NULLIF ( + - CAST ( NULL AS INTEGER ), + - 33 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT ALL + 99 DIV + 8 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 99 / + 8 AS col0
----
12

query I rowsort
SELECT - 8 + - 31 AS col0
----
-39

query I rowsort
SELECT 43 col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + 72 DIV + 10
----
7

skipif mysql # not compatible
query I rowsort label-4664
SELECT + 72 / + 10
----
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4665
SELECT - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) + + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT + 90 - + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 90 - + - COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT 82 col1
----
82

query I rowsort
SELECT ALL 55 * 13 AS col1
----
715

query I rowsort
SELECT + 60 + - NULLIF ( + - 76, + + 78 * 32 - - COALESCE ( + 81, - 82 + + 32 - 49 * 71 ) * + 58 - 9 * - 54 * + 23 / 81 * + 27 )
----
136

query I rowsort
SELECT ALL - 36 + - 80 AS col2
----
-116

query I rowsort
SELECT DISTINCT + 81 * + 19 AS col0
----
1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL CAST( NULL AS SIGNED ) + - - AVG ( 80 ) - - NULLIF ( + ( + 68 ), - + NULLIF ( COALESCE ( ( + 84 ), + ( - - COALESCE ( 48, - 18 ) ) * - 2 / 97 + + 7 * - + 92 + COUNT( * ) + 20 ), 68 + + NULLIF ( 82, - 55 + NULLIF ( - 6, - + ( + COUNT( * ) ) ) - + COUNT( * ) - CAST( NULL AS SIGNED ) + 45 * + + 41 + - COUNT( * ) * - 69 * - 70 * + 6 ) ) / + - 6 * + 29 ) / + 65 / COUNT( * ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL CAST ( NULL AS INTEGER ) + - - AVG ( 80 ) - - NULLIF ( + ( + 68 ), - + NULLIF ( COALESCE ( ( + 84 ), + ( - - COALESCE ( 48, - 18 ) ) * - 2 / 97 + + 7 * - + 92 + COUNT ( * ) + 20 ), 68 + + NULLIF ( 82, - 55 + NULLIF ( - 6, - + ( + COUNT ( * ) ) ) - + COUNT ( * ) - CAST ( NULL AS INTEGER ) + 45 * + + 41 + - COUNT ( * ) * - 69 * - 70 * + 6 ) ) / + - 6 * + 29 ) / + 65 / COUNT ( * ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT + 54 + - + ( + + 69 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT ALL 19 + + 42, 74 * - COUNT( * ) col1
----
61
-74

skipif mysql # not compatible
query II rowsort label-4674
SELECT ALL 19 + + 42, 74 * - COUNT ( * ) col1
----
61
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4675
SELECT + 30 + + 40 - + 19 - + 45 * 39 DIV - + MAX( + 28 ) AS col0, - MIN( ALL - - 68 ) + - SUM( ALL - 52 ) AS col2
----
113
-16

skipif mysql # not compatible
query II rowsort label-4675
SELECT + 30 + + 40 - + 19 - + 45 * 39 / - + MAX ( + 28 ) AS col0, - MIN ( ALL - - 68 ) + - SUM ( ALL - 52 ) AS col2
----
113
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT - NULLIF ( - ( - 77 ), - 97 * 35 + - + CAST( + ( + ( 22 ) ) AS SIGNED ) + + 43 / 84 )
----
-77

skipif mysql # not compatible
query I rowsort label-4676
SELECT - NULLIF ( - ( - 77 ), - 97 * 35 + - + CAST ( + ( + ( 22 ) ) AS INTEGER ) + + 43 / 84 )
----
-77

query I rowsort
SELECT + 6 + + 22 + CASE WHEN 6 <= ( ( - + 65 ) ) THEN - + 26 ELSE - + 81 END * 61 * 48 AS col1
----
-237140

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - CASE - 50 WHEN - - 79 / + 98 THEN AVG ( ALL 52 ) END + MAX( ALL + 4 ) - + ( ( - - 47 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - CASE - 50 WHEN - - 79 / + 98 THEN AVG ( ALL 52 ) END + MAX ( ALL + 4 ) - + ( ( - - 47 ) ) AS col1
----
NULL

query II rowsort
SELECT ALL + 86 + - - 63 AS col2, + 98 * + 51
----
149
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT NULLIF ( - - 58, 76 + + COUNT( 7 ) * 77 )
----
58

skipif mysql # not compatible
query I rowsort label-4680
SELECT NULLIF ( - - 58, 76 + + COUNT ( 7 ) * 77 )
----
58

query I rowsort
SELECT - 34 + - + 49 AS col1
----
-83

query I rowsort
SELECT ALL 8 * 4
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT + MAX( ALL 51 ) DIV - + 3
----
-17

skipif mysql # not compatible
query I rowsort label-4683
SELECT + MAX ( ALL 51 ) / - + 3
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT DISTINCT + 3 * - + COUNT( * ) col0, + COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-4684
SELECT DISTINCT + 3 * - + COUNT ( * ) col0, + COUNT ( * )
----
-3
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT ALL CAST( + + 65 AS SIGNED ) * + + 10 + 2 * + COUNT( * ) + 91 + + COALESCE ( + - 85, - 30 * - COUNT( * ) + - + 8, - 24 )
----
658

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL CAST ( + + 65 AS INTEGER ) * + + 10 + 2 * + COUNT ( * ) + 91 + + COALESCE ( + - 85, - 30 * - COUNT ( * ) + - + 8, - 24 )
----
658

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT - - 64 * - 70, 78 + + 18 + - - 34 + ( + + CASE 41 WHEN + 4 THEN NULL WHEN + 33 + - + COUNT( * ) + + + 19 + + 51 + - + 63 * + SUM( ALL + + 46 ) THEN 17 * - 24 END ) + + 30 / 69 AS col2
----
-4480
NULL

skipif mysql # not compatible
query II rowsort label-4686
SELECT - - 64 * - 70, 78 + + 18 + - - 34 + ( + + CASE 41 WHEN + 4 THEN NULL WHEN + 33 + - + COUNT ( * ) + + + 19 + + 51 + - + 63 * + SUM ( ALL + + 46 ) THEN 17 * - 24 END ) + + 30 / 69 AS col2
----
-4480
NULL

query II rowsort
SELECT + + 14 * + 22 * - 41 - + 18, - 89 AS col2
----
-12646
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4688
SELECT ALL + - 89 DIV 6 * - - 11 - - 54 AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + - 89 / 6 * - - 11 - - 54 AS col2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT + 60 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + 60 / + 21
----
2

query I rowsort
SELECT DISTINCT + - 82 AS col0
----
-82

query I rowsort
SELECT DISTINCT + 48 col2
----
48

query I rowsort
SELECT ALL + 12 * - + 26
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT 12 * + ( - COUNT( * ) ) - - + 43
----
31

skipif mysql # not compatible
query I rowsort label-4693
SELECT 12 * + ( - COUNT ( * ) ) - - + 43
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4694
SELECT ALL + COUNT( * ) * - MAX( DISTINCT - 50 ) AS col1, + COALESCE ( - - 81, - 76, - CAST( + 64 AS SIGNED ) + ( + COUNT( * ) ) * + 17 * - - MAX( + - 78 ) ) - - - ( + - ( - COUNT( * ) ) ) * + - 26
----
50
107

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT - 50 ) AS col1, + COALESCE ( - - 81, - 76, - CAST ( + 64 AS INTEGER ) + ( + COUNT ( * ) ) * + 17 * - - MAX ( + - 78 ) ) - - - ( + - ( - COUNT ( * ) ) ) * + - 26
----
50
107

query I rowsort
SELECT 76 * + 55
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT 12 * - MAX( 65 ) * COUNT( * ) + 90
----
-690

skipif mysql # not compatible
query I rowsort label-4696
SELECT 12 * - MAX ( 65 ) * COUNT ( * ) + 90
----
-690

query II rowsort
SELECT DISTINCT + 95 * + + 34 * + 70 AS col1, + 43
----
226100
43

query I rowsort
SELECT 28 + 87 * + 77
----
6727

query II rowsort
SELECT ALL 77 AS col1, - 87 AS col0
----
77
-87

query I rowsort
SELECT 2 * - 25
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) + SUM( DISTINCT - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - 9 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4702
SELECT ALL CAST( NULL AS SIGNED ) + - - 97 * + + 87 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL CAST ( NULL AS INTEGER ) + - - 97 * + + 87 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT DISTINCT - NULLIF ( + 95, + CAST( NULL AS SIGNED ) ) + + 30 + - 85 + + 33 * + - 90 AS col2
----
-3120

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - NULLIF ( + 95, + CAST ( NULL AS INTEGER ) ) + + 30 + - 85 + + 33 * + - 90 AS col2
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL - 5 + + COUNT( * ) + - 4
----
-8

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL - 5 + + COUNT ( * ) + - 4
----
-8

query I rowsort
SELECT 8 - + 11 - + 26 AS col2
----
-29

query II rowsort
SELECT 29 AS col0, + 93 AS col1
----
29
93

query I rowsort
SELECT 17 - 35
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT 53 * COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4708
SELECT 53 * COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT 6 * COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT 6 * COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL CASE 31 WHEN + 86 * ( - 31 ) THEN NULL ELSE + 86 * + ( 9 * - 91 ) END * 80 AS col1
----
-5634720

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT 27 * - MIN( 55 * ( - 49 * - 47 ) )
----
-3419955

skipif mysql # not compatible
query I rowsort label-4711
SELECT 27 * - MIN ( 55 * ( - 49 * - 47 ) )
----
-3419955

query I rowsort
SELECT DISTINCT 0 + 7
----
7

query I rowsort
SELECT DISTINCT + 87 * COALESCE ( - 25 * 50, + 94, - 43 ) AS col1
----
-108750

query I rowsort
SELECT DISTINCT - COALESCE ( 67, + 38 * + 5 ) * 60
----
-4020

query I rowsort
SELECT DISTINCT 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT COUNT( * ) + + 24 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4716
SELECT COUNT ( * ) + + 24 AS col1
----
25

query I rowsort
SELECT + 76 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL 99 - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL 99 - COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4719
SELECT COUNT ( * ) * 33 AS col1
----
33

query I rowsort
SELECT ( 45 ) * 83
----
3735

query I rowsort
SELECT 51 + 66 * - 70
----
-4569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT CAST( ( + 6 ) AS SIGNED ) * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4722
SELECT CAST ( ( + 6 ) AS INTEGER ) * COUNT ( * )
----
6

query I rowsort
SELECT ALL 51 * 33
----
1683

query I rowsort
SELECT + NULLIF ( 23, 65 * 98 ) * + 78 + 32 * + 39
----
3042

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT 16 DIV 92 + 86 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-4725
SELECT 16 / 92 + 86 / + 56
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT DISTINCT 98 DIV 82 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT 98 / 82 AS col1
----
1

query I rowsort
SELECT ALL - 12 col0
----
-12

query I rowsort
SELECT ALL + 80 * + 98 AS col2
----
7840

query I rowsort
SELECT ALL 33 * 44 col0
----
1452

query I rowsort
SELECT DISTINCT 50 * - 93 AS col1
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT 17 * ( + COUNT( * ) ) + 92 * + 96 AS col0
----
8849

skipif mysql # not compatible
query I rowsort label-4731
SELECT 17 * ( + COUNT ( * ) ) + 92 * + 96 AS col0
----
8849

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT 12 DIV - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT 12 / - 23 AS col2
----
0

query I rowsort
SELECT 82 col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ( - MIN( + 75 ) ) + + 96 * + 39
----
3669

skipif mysql # not compatible
query I rowsort label-4734
SELECT ( - MIN ( + 75 ) ) + + 96 * + 39
----
3669

query I rowsort
SELECT DISTINCT 91 + - 65
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT 2 DIV - 2
----
-1

skipif mysql # not compatible
query I rowsort label-4736
SELECT 2 / - 2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT - NULLIF ( 35, COUNT( * ) ) + + 98
----
63

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - NULLIF ( 35, COUNT ( * ) ) + + 98
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL COUNT( * ) + + 90 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL COUNT ( * ) + + 90 AS col2
----
91

query I rowsort
SELECT ALL - 18 + + 94 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + ( + NULLIF ( - COUNT( * ), 97 ) ) * 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + ( + NULLIF ( - COUNT ( * ), 97 ) ) * 68 AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT - 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 37 * 9 AS col2
----
333

query I rowsort
SELECT ALL + 73 + 90
----
163

query I rowsort
SELECT DISTINCT + 64 * + 2 AS col2
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT 17 + 94 DIV ( 24 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-4745
SELECT 17 + 94 / ( 24 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL COUNT( ALL 94 )
----
1

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL COUNT ( ALL 94 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT ALL - 58 - - 58 DIV + 8 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - 58 - - 58 / + 8 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4748
SELECT ( 60 ) + + CAST( NULL AS SIGNED ) * COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ( 60 ) + + CAST ( NULL AS INTEGER ) * COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - ( 22 )
----
-22

query I rowsort
SELECT ALL COALESCE ( 34, - 70 * 41 )
----
34

query I rowsort
SELECT DISTINCT COALESCE ( 96, 27 ) * + 51 col1
----
4896

query I rowsort
SELECT 20 + 75 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + COUNT( * ) - - 91 col2
----
92

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + COUNT ( * ) - - 91 col2
----
92

query I rowsort
SELECT - 27 * - ( 0 ) AS col0
----
0

query I rowsort
SELECT 66 + + 5 * - 57 AS col0
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL - - 22 DIV + 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - - 22 / + 20 AS col1
----
1

query I rowsort
SELECT 97 * 56
----
5432

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT - COUNT( * ) * + 3
----
-3

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT - COUNT ( * ) * + 3
----
-3

query I rowsort
SELECT + 19 * - 85 AS col0
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - CASE - COALESCE ( 29, 27 - 37 ) WHEN - 39 THEN NULL WHEN 29 * + 61 THEN - 86 + + 21 * + COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - CASE - COALESCE ( 29, 27 - 37 ) WHEN - 39 THEN NULL WHEN 29 * + 61 THEN - 86 + + 21 * + COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + 93 * COUNT( NULLIF ( 17, + 22 ) )
----
93

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 93 * COUNT ( NULLIF ( 17, + 22 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + MIN( DISTINCT COALESCE ( 40, 92 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4762
SELECT + MIN ( DISTINCT COALESCE ( 40, 92 ) ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT 76 DIV + 18
----
4

skipif mysql # not compatible
query I rowsort label-4764
SELECT 76 / + 18
----
4

query I rowsort
SELECT - ( + 78 ) AS col1
----
-78

query I rowsort
SELECT DISTINCT - + 80 * + 29
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + + COALESCE ( COUNT( * ), + 35 ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + + COALESCE ( COUNT ( * ), + 35 ) * + 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL - COALESCE ( - 62, - 13 + - CAST( NULL AS SIGNED ) * 68 ) * + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - COALESCE ( - 62, - 13 + - CAST ( NULL AS INTEGER ) * 68 ) * + COUNT ( * ) AS col0
----
62

query I rowsort
SELECT DISTINCT + + 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL + - MAX( - 43 ) * 11
----
473

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + - MAX ( - 43 ) * 11
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT + + COUNT( + 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + + COUNT ( + 72 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + COUNT( - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + COUNT ( - 10 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - 52 * COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 52 * COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT 40 DIV - COUNT( DISTINCT 51 ) + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4774
SELECT 40 / - COUNT ( DISTINCT 51 ) + COUNT ( * )
----
-39

query I rowsort
SELECT CASE 57 WHEN + 84 - + 67 * + 38 THEN - 28 ELSE 73 END
----
73

query I rowsort
SELECT COALESCE ( 38, - 64 * 4, 94 ) AS col2
----
38

query I rowsort
SELECT ( + + 0 ) * - 1 - - 67
----
67

query I rowsort
SELECT ALL + 57 col0
----
57

query I rowsort
SELECT + 85 * - 80 AS col1
----
-6800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4780
SELECT DISTINCT 11 * 10 + 83 DIV SUM( ALL - 63 DIV 91 + 36 )
----
112

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT 11 * 10 + 83 / SUM ( ALL - 63 / 91 + 36 )
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4781
SELECT DISTINCT + 53 * 94 + COUNT( DISTINCT CASE ( 37 ) WHEN + 94 + + CAST( + 87 - 77 * 40 AS DECIMAL ) * + 94 THEN + 57 - + 93 ELSE + 35 END ) col2
----
4983

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT + 53 * 94 + COUNT ( DISTINCT CASE ( 37 ) WHEN + 94 + + CAST ( + 87 - 77 * 40 AS REAL ) * + 94 THEN + 57 - + 93 ELSE + 35 END ) col2
----
4983

query I rowsort
SELECT + 20 * COALESCE ( - 63, + 84 * 1 ) AS col0
----
-1260

query I rowsort
SELECT ALL 32 * + - 21 AS col0
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT MAX( + CAST( 10 AS SIGNED ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4784
SELECT MAX ( + CAST ( 10 AS INTEGER ) ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL 43 * - - COUNT( - 38 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL 43 * - - COUNT ( - 38 ) AS col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL - 59 * + SUM( DISTINCT - 69 ) / + CAST( NULL AS SIGNED ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - 59 * + SUM ( DISTINCT - 69 ) / + CAST ( NULL AS INTEGER ) + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + MAX( ALL + + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + MAX ( ALL + + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT - 26 * AVG ( + 85 ) + + 79 * + CASE WHEN NULL NOT BETWEEN NULL AND - 46 + - COUNT( * ) * 79 THEN - 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT - 26 * AVG ( + 85 ) + + 79 * + CASE WHEN NULL NOT BETWEEN NULL AND - 46 + - COUNT ( * ) * 79 THEN - 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT MAX( + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4789
SELECT MAX ( + - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT COUNT( + 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4790
SELECT COUNT ( + 60 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + COUNT( 18 ) * 15 + - CASE 11 + + 16 WHEN 7 - 15 THEN + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + COUNT ( 18 ) * 15 + - CASE 11 + + 16 WHEN 7 - 15 THEN + 49 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT COUNT( + + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT COUNT ( + + 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL + COUNT( DISTINCT + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + COUNT ( DISTINCT + 58 )
----
1

query I rowsort
SELECT + 54 * + - 52
----
-2808

query I rowsort
SELECT - 60 * + + 82
----
-4920

query I rowsort
SELECT - NULLIF ( 88, 48 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL 77 - + - MIN( - 88 ) - + 3 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 77 - + - MIN ( - 88 ) - + 3 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 7 AS col1
----
NULL

query I rowsort
SELECT - ( - 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL + + COUNT( * ) * - 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + + COUNT ( * ) * - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT + 44 * 76 + NULLIF ( COUNT( * ) + - COUNT( * ), + 91 ) AS col2
----
3344

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 44 * 76 + NULLIF ( COUNT ( * ) + - COUNT ( * ), + 91 ) AS col2
----
3344

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT ALL 14 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL 14 / 86 AS col1
----
0

query I rowsort
SELECT DISTINCT + ( CASE 42 WHEN 76 THEN NULL WHEN - 81 - 27 * 41 THEN NULL WHEN - 73 THEN + 90 END )
----
NULL

query I rowsort
SELECT ALL + 46 - - + 31
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT NULLIF ( COUNT( * ), 14 )
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT NULLIF ( COUNT ( * ), 14 )
----
1

query I rowsort
SELECT - - 35 col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT + - 66 - + 67 * ( - NULLIF ( - CASE + COUNT( * ) WHEN 75 - - 26 * - CAST( NULL AS SIGNED ) THEN COUNT( * ) + + 94 ELSE NULL END, 33 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + - 66 - + 67 * ( - NULLIF ( - CASE + COUNT ( * ) WHEN 75 - - 26 * - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + + 94 ELSE NULL END, 33 ) ) AS col1
----
NULL

query I rowsort
SELECT + + 8 * + 76
----
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT + + 91 - 86 + + CAST( NULL AS SIGNED ) * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT + + 91 - 86 + + CAST ( NULL AS INTEGER ) * 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - ( + - ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT - ( + - ( - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL + SUM( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + SUM ( + 29 )
----
29

query I rowsort
SELECT - - 16 + 1 * - 47 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + + 16 + - COUNT( * ) + + 85 * 51 col2
----
4350

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + + 16 + - COUNT ( * ) + + 85 * 51 col2
----
4350

query I rowsort
SELECT DISTINCT + ( + - 45 )
----
-45

query I rowsort
SELECT + 27 + + 64 col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT - - CAST( - COALESCE ( 19, + 49 * COUNT( * ) ) AS SIGNED ) - - 94 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4816
SELECT - - CAST ( - COALESCE ( 19, + 49 * COUNT ( * ) ) AS INTEGER ) - - 94 AS col0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4817
SELECT ALL NULLIF ( + 94, 86 * + CAST( NULL AS DECIMAL ) + 89 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL NULLIF ( + 94, 86 * + CAST ( NULL AS REAL ) + 89 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - SUM( 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4818
SELECT - SUM ( 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - ( - 65 ) + - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4819
SELECT - ( - 65 ) + - COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + + NULLIF ( - 24, COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4820
SELECT + + NULLIF ( - 24, COUNT ( * ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT + ( ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4821
SELECT + ( ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT + - 60
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT ALL 7 DIV - 47 + - + ( - 23 ) + - 62 * MIN( ALL 26 )
----
-1589

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL 7 / - 47 + - + ( - 23 ) + - 62 * MIN ( ALL 26 )
----
-1589

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL - MAX( + 56 ) * - 29 * ( - 42 * - ( 31 ) ) + + 74 AS col1
----
2114522

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - MAX ( + 56 ) * - 29 * ( - 42 * - ( 31 ) ) + + 74 AS col1
----
2114522

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT DISTINCT 45 DIV + 48 + 53
----
53

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT 45 / + 48 + 53
----
53

query I rowsort
SELECT ALL + 45 * + + 1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT ALL - 15 DIV 52 + + 61
----
61

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - 15 / 52 + + 61
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT + COUNT( * ) DIV + 93 + - + 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + COUNT ( * ) / + 93 + - + 49 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT - 26 + - - NULLIF ( 52, + 68 + CAST( NULL AS SIGNED ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 26 + - - NULLIF ( 52, + 68 + CAST ( NULL AS INTEGER ) ) AS col0
----
26

query I rowsort
SELECT + 72 col1
----
72

query I rowsort
SELECT ALL + ( - 59 ) AS col1
----
-59

query I rowsort
SELECT ( - + 7 ) AS col2
----
-7

query I rowsort
SELECT ( + 57 ) col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT 10 * 61 / - - CASE - COUNT( * ) WHEN - 48 THEN + 44 * - 46 ELSE NULL END + + 23 / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT 10 * 61 / - - CASE - COUNT ( * ) WHEN - 48 THEN + 44 * - 46 ELSE NULL END + + 23 / 60
----
NULL

query I rowsort
SELECT ( - + 12 ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT + ( CASE + 54 WHEN SUM( + CASE + 91 WHEN 90 THEN ( - 39 ) * 81 ELSE 14 * 98 END ) + 61 THEN ( AVG ( ALL CAST( NULL AS SIGNED ) ) ) ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + ( CASE + 54 WHEN SUM ( + CASE + 91 WHEN 90 THEN ( - 39 ) * 81 ELSE 14 * 98 END ) + 61 THEN ( AVG ( ALL CAST ( NULL AS INTEGER ) ) ) ELSE NULL END ) col0
----
NULL

query I rowsort
SELECT + 72 + 32
----
104

query I rowsort
SELECT + 30 * + + 27 AS col0
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL + MAX( ALL 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + MAX ( ALL 29 ) AS col2
----
29

query I rowsort
SELECT + NULLIF ( 26, - 46 - 57 ) col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL + MIN( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + MIN ( + 16 )
----
16

query I rowsort
SELECT + ( 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT MAX( - 38 ) * - ( + COUNT( * ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT MAX ( - 38 ) * - ( + COUNT ( * ) ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT + + COALESCE ( + ( - COALESCE ( COUNT( * ), 87, 80 ) ), + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + + COALESCE ( + ( - COALESCE ( COUNT ( * ), 87, 80 ) ), + 70 )
----
-1

query I rowsort
SELECT - - 87 * + 6 AS col1
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + - MAX( - - 0 ) + + 29 col0
----
29

skipif mysql # not compatible
query I rowsort label-4846
SELECT + - MAX ( - - 0 ) + + 29 col0
----
29

query I rowsort
SELECT ALL - 76 * - 64
----
4864

query I rowsort
SELECT + + 6 + 46
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + 4 + - - 3 * + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4849
SELECT + 4 + - - 3 * + COUNT ( * ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT + - 37 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-4850
SELECT + - 37 / + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + - COUNT( * ) * - + 24 * - 48
----
-1152

skipif mysql # not compatible
query I rowsort label-4851
SELECT + - COUNT ( * ) * - + 24 * - 48
----
-1152

query I rowsort
SELECT + 18 + + 99
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4853
SELECT ALL SUM( ALL 4 ) / - CAST( NULL AS SIGNED ) * AVG ( + 3 ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL SUM ( ALL 4 ) / - CAST ( NULL AS INTEGER ) * AVG ( + 3 ) + + 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT + 45 + + - CAST( - 58 AS SIGNED ) + + 35 * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-4854
SELECT + 45 + + - CAST ( - 58 AS INTEGER ) + + 35 * - COUNT ( * )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT - 58 * + COALESCE ( 3, - 4 ) - + CAST( + 71 AS SIGNED )
----
-245

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 58 * + COALESCE ( 3, - 4 ) - + CAST ( + 71 AS INTEGER )
----
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT ALL 28 + + 9 DIV 96
----
28

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL 28 + + 9 / 96
----
28

query I rowsort
SELECT ALL - ( - 41 ) + + - 59
----
-18

query I rowsort
SELECT 6 + + 36 * 89
----
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + MAX( ALL - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4859
SELECT + MAX ( ALL - + 39 ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT NULLIF ( 4, + 27 ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT NULLIF ( 4, + 27 ) / 42
----
0

query I rowsort
SELECT + CASE 35 WHEN + 48 / + 97 THEN NULL ELSE + 53 END + + 38
----
91

query II rowsort
SELECT ALL + 11 AS col0, - ( - + 58 ) AS col1
----
11
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT COUNT( - ( + - 36 ) ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4863
SELECT COUNT ( - ( + - 36 ) ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT + CAST( - ( - CASE 41 WHEN 31 THEN + COUNT( * ) ELSE NULL END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT + CAST ( - ( - CASE 41 WHEN 31 THEN + COUNT ( * ) ELSE NULL END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT + COUNT( * ) + - 86 * + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4865
SELECT + COUNT ( * ) + - 86 * + COUNT ( * ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + + MAX( DISTINCT - 49 ) + + + 22 * - 99
----
-2227

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + + MAX ( DISTINCT - 49 ) + + + 22 * - 99
----
-2227

onlyif mysql # DIV for integer division: 
query II rowsort label-4867
SELECT - + 31, - 8 DIV - - 6 AS col0
----
-31
-1

skipif mysql # not compatible
query II rowsort label-4867
SELECT - + 31, - 8 / - - 6 AS col0
----
-31
-1

query I rowsort
SELECT ALL - 80 * 32 + 59 * - 96
----
-8224

query II rowsort
SELECT DISTINCT 68 * + - 76 col1, 43 AS col1
----
-5168
43

query I rowsort
SELECT ALL 26 + - 2 AS col2
----
24

query I rowsort
SELECT DISTINCT - CASE - 95 WHEN + - 2 THEN - 97 ELSE NULL END
----
NULL

query I rowsort
SELECT 21 * - ( + + 78 ) col2
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - MAX( DISTINCT 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - MAX ( DISTINCT 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT ALL + CAST( NULL AS SIGNED ) * - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + CAST ( NULL AS INTEGER ) * - 80 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT DISTINCT + 32 DIV + 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + 32 / + 58 col0
----
0

query I rowsort
SELECT 30 - 98
----
-68

query II rowsort
SELECT ALL + 87 * 33 AS col2, 50 - + 42 * 68 AS col1
----
2871
-2806

query I rowsort
SELECT 36 * + 68
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4879
SELECT ALL + COUNT( * ) * + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT DISTINCT + CAST( - SUM( ALL - 86 ) AS SIGNED ) * + COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + CAST ( - SUM ( ALL - 86 ) AS INTEGER ) * + COUNT ( * ) col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4881
SELECT DISTINCT - COUNT( * ) * 23 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - COUNT ( * ) * 23 / 75
----
0

query I rowsort
SELECT 26 * 43 * - ( + 37 )
----
-41366

query II rowsort
SELECT - 79 * 46 col0, + 82 - + 50 AS col2
----
-3634
32

query I rowsort
SELECT + - 75 AS col0
----
-75

query I rowsort
SELECT ALL - - ( + 58 )
----
58

query I rowsort
SELECT DISTINCT - - 37 AS col1
----
37

query I rowsort
SELECT 64 * + 90 AS col2
----
5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4888
SELECT DISTINCT - + 74 + COALESCE ( ( - CASE CAST( 39 AS SIGNED ) WHEN 40 THEN 15 * 46 WHEN 89 THEN NULL ELSE + 7 END ), - COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT - + 74 + COALESCE ( ( - CASE CAST ( 39 AS INTEGER ) WHEN 40 THEN 15 * 46 WHEN 89 THEN NULL ELSE + 7 END ), - COUNT ( * ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT + 64 * + CAST( NULL AS SIGNED ) * + COUNT( * ) / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + 64 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4890
SELECT ALL - MAX( ALL CASE - ( CAST( 13 AS SIGNED ) ) WHEN + 13 * 8 THEN + 54 ELSE NULL END ) + ( + COUNT( * ) + + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - MAX ( ALL CASE - ( CAST ( 13 AS INTEGER ) ) WHEN + 13 * 8 THEN + 54 ELSE NULL END ) + ( + COUNT ( * ) + + 39 )
----
NULL

query I rowsort
SELECT DISTINCT + 36 + 12 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT ALL + 14 + + 14, 84 + ( + COUNT( * ) ) AS col1
----
28
85

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL + 14 + + 14, 84 + ( + COUNT ( * ) ) AS col1
----
28
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT 74 * - - COUNT( * ) * + 77
----
5698

skipif mysql # not compatible
query I rowsort label-4893
SELECT 74 * - - COUNT ( * ) * + 77
----
5698

query I rowsort
SELECT + 95 + 26
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + SUM( ALL + + 9 ) * - + 43
----
-387

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + SUM ( ALL + + 9 ) * - + 43
----
-387

query I rowsort
SELECT 54 - 40 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL SUM( - 15 ) + - - 49 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL SUM ( - 15 ) + - - 49 AS col0
----
34

query II rowsort
SELECT - 31 - 74 AS col1, 64 col1
----
-105
64

query I rowsort
SELECT ALL + ( 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - 51 + + 11 - ( - 49 ) + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - 51 + + 11 - ( - 49 ) + + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT - + MIN( ALL - NULLIF ( + + 3, - 87 + - 78 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4901
SELECT - + MIN ( ALL - NULLIF ( + + 3, - 87 + - 78 ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT - ( CASE - 69 WHEN + - 56 + + 92 THEN NULL ELSE + 67 DIV - 94 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - ( CASE - 69 WHEN + - 56 + + 92 THEN NULL ELSE + 67 / - 94 END ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT 85 + + + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT 85 + + + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT 21 - - 51 + + MIN( + + ( + 90 ) ) + - 35 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-4904
SELECT 21 - - 51 + + MIN ( + + ( + 90 ) ) + - 35 AS col2
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT ALL 20 DIV 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 20 / 30 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4906
SELECT ( COUNT( * ) ) - + 99 + 44 + - 59 DIV - 92
----
-54

skipif mysql # not compatible
query I rowsort label-4906
SELECT ( COUNT ( * ) ) - + 99 + 44 + - 59 / - 92
----
-54

query I rowsort
SELECT DISTINCT 12 AS col2
----
12

query I rowsort
SELECT 5 + 9 + 34 + 34 * - 88
----
-2944

query I rowsort
SELECT 40 + - 78 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT - NULLIF ( 76, - 8 * - - 50 + - 83 + ( + 14 ) * 20 - 88 ) * + CAST( + ( SUM( - 90 ) ) + 48 AS SIGNED ) + 87 AS col1
----
3279

skipif mysql # not compatible
query I rowsort label-4910
SELECT - NULLIF ( 76, - 8 * - - 50 + - 83 + ( + 14 ) * 20 - 88 ) * + CAST ( + ( SUM ( - 90 ) ) + 48 AS INTEGER ) + 87 AS col1
----
3279

query I rowsort
SELECT 56 * + + 41 AS col1
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + ( + 45 ) * - COUNT( * ) * - + 51 AS col1
----
2295

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + ( + 45 ) * - COUNT ( * ) * - + 51 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT DISTINCT CASE + 16 WHEN - 57 THEN ( + + 57 ) * COUNT( DISTINCT 9 * + 10 ) + - 49 WHEN COUNT( * ) THEN + 1 WHEN + 3 + - 8 * + 61 THEN NULL END * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT CASE + 16 WHEN - 57 THEN ( + + 57 ) * COUNT ( DISTINCT 9 * + 10 ) + - 49 WHEN COUNT ( * ) THEN + 1 WHEN + 3 + - 8 * + 61 THEN NULL END * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - NULLIF ( - MAX( DISTINCT + 13 ), ( COUNT( * ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - NULLIF ( - MAX ( DISTINCT + 13 ), ( COUNT ( * ) ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT CAST( NULL AS SIGNED ) + + 73 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT CAST ( NULL AS INTEGER ) + + 73 + 66
----
NULL

query I rowsort
SELECT ALL ( - 86 ) * + - ( - 86 )
----
-7396

query I rowsort
SELECT ALL - ( - 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT - MIN( 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT - MIN ( 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + MAX( DISTINCT 75 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-4919
SELECT + MAX ( DISTINCT 75 ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT + 4 * - - AVG ( ALL + - CASE 79 WHEN ( - 23 ) THEN - 95 + 46 WHEN 95 THEN NULL END ) / CASE COUNT( * ) * - 74 WHEN - AVG ( ALL + 21 ) THEN + 44 END + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT + 4 * - - AVG ( ALL + - CASE 79 WHEN ( - 23 ) THEN - 95 + 46 WHEN 95 THEN NULL END ) / CASE COUNT ( * ) * - 74 WHEN - AVG ( ALL + 21 ) THEN + 44 END + + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT 71 * - + 93
----
-6603

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL + 83 + - 66 + + 84 + + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + 83 + - 66 + + 84 + + COUNT ( * )
----
102

query I rowsort
SELECT ( + + 14 )
----
14

query I rowsort
SELECT ALL - 9 * - + 87 * 6 + + 52 AS col0
----
4750

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT 20 + + COALESCE ( + 95, - 86, - + 50 DIV + 24 - - 37 ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4925
SELECT 20 + + COALESCE ( + 95, - 86, - + 50 / + 24 - - 37 ) AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL + - 1 * MIN( ALL + 94 ) + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + - 1 * MIN ( ALL + 94 ) + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT ALL + - 84 + ( - - 87 ) - + CASE - CASE + 87 WHEN ( - COUNT( ALL + 91 ) ) THEN NULL ELSE 14 DIV + CAST( - 44 AS SIGNED ) END WHEN - 87 DIV - MAX( DISTINCT 96 ) THEN 9 + - 50 ELSE 23 * 68 - + 32 END + + 95 DIV ( SUM( DISTINCT 35 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + - 84 + ( - - 87 ) - + CASE - CASE + 87 WHEN ( - COUNT ( ALL + 91 ) ) THEN NULL ELSE 14 / + CAST ( - 44 AS INTEGER ) END WHEN - 87 / - MAX ( DISTINCT 96 ) THEN 9 + - 50 ELSE 23 * 68 - + 32 END + + 95 / ( SUM ( DISTINCT 35 ) ) AS col2
----
46

query I rowsort
SELECT DISTINCT + 41 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT 38 * + + CASE + COUNT( + 55 ) WHEN - 86 * 44 THEN - CAST( MIN( + 82 ) AS SIGNED ) WHEN 58 + ( 63 ) THEN + 79 + 94 ELSE NULL END + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT 38 * + + CASE + COUNT ( + 55 ) WHEN - 86 * 44 THEN - CAST ( MIN ( + 82 ) AS INTEGER ) WHEN 58 + ( 63 ) THEN + 79 + 94 ELSE NULL END + 73 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 71 * 95 col2
----
-6745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL + - 9 * CAST( + 50 AS SIGNED ) * - + 51
----
22950

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + - 9 * CAST ( + 50 AS INTEGER ) * - + 51
----
22950

query I rowsort
SELECT - + 92 AS col1
----
-92

query I rowsort
SELECT + 63 + - 38
----
25

query I rowsort
SELECT ALL - + 96 + + 60
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT - + 77 + + 16 * - - ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT - + 77 + + 16 * - - ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT + - 97 - + + CAST( + 54 AS SIGNED ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-4936
SELECT + - 97 - + + CAST ( + 54 AS INTEGER ) col0
----
-151

query I rowsort
SELECT ALL ( 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT - + 27 + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4938
SELECT - + 27 + + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT ALL - + 4 - - 13 DIV 82 - - 98 * - MAX( ALL 70 ) col1
----
-6864

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - + 4 - - 13 / 82 - - 98 * - MAX ( ALL 70 ) col1
----
-6864

query I rowsort
SELECT ALL - 58 * 0 col0
----
0

query I rowsort
SELECT DISTINCT + 33 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL 82 - + COALESCE ( - + CAST( NULL AS SIGNED ), + 8 * + 33 * + 27 ) AS col0
----
-7046

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 82 - + COALESCE ( - + CAST ( NULL AS INTEGER ), + 8 * + 33 * + 27 ) AS col0
----
-7046

query I rowsort
SELECT - - ( - 57 )
----
-57

query II rowsort
SELECT ALL 48 AS col0, + 37 AS col1
----
48
37

query I rowsort
SELECT + 15 + + 62
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL CASE - + ( + - 98 ) WHEN CAST( NULL AS SIGNED ) THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL CASE - + ( + - 98 ) WHEN CAST ( NULL AS INTEGER ) THEN 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - NULLIF ( + - 21, - + 32 * + + 34 * + COALESCE ( + ( - ( 3 ) ), 5 + - COUNT( * ) * ( 34 ), 32 + + ( 33 ) ) + 62 ) * 28 AS col0
----
588

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - NULLIF ( + - 21, - + 32 * + + 34 * + COALESCE ( + ( - ( 3 ) ), 5 + - COUNT ( * ) * ( 34 ), 32 + + ( 33 ) ) + 62 ) * 28 AS col0
----
588

query II rowsort
SELECT 31, 42 AS col0
----
31
42

query I rowsort
SELECT - 3 * + 44
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT DISTINCT 32 * + CAST( NULL AS SIGNED ) * + 89 * - - 49 * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT 32 * + CAST ( NULL AS INTEGER ) * + 89 * - - 49 * + 49 AS col0
----
NULL

query I rowsort
SELECT + 43 * 67
----
2881

onlyif mysql # aggregate syntax: 
query II rowsort label-4952
SELECT DISTINCT 65 AS col0, COUNT( * ) * - + 66 * COUNT( * ) * - + 60 * - 97 + - 98 AS col2
----
65
-384218

skipif mysql # not compatible
query II rowsort label-4952
SELECT DISTINCT 65 AS col0, COUNT ( * ) * - + 66 * COUNT ( * ) * - + 60 * - 97 + - 98 AS col2
----
65
-384218

query I rowsort
SELECT ALL 16 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - NULLIF ( 10, 75 * + 30 + + + 18 ) * COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - NULLIF ( 10, 75 * + 30 + + + 18 ) * COUNT ( * )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT 2 DIV + + CASE + - 97 WHEN 43 THEN + 7 - - COUNT( * ) WHEN CASE + CASE + 52 WHEN 27 THEN NULL WHEN - 39 THEN - 80 DIV + 63 WHEN + 66 + ( 50 + 76 * + 38 ) THEN 25 ELSE NULL END WHEN 76 DIV + COUNT( * ) THEN - 91 DIV CAST( NULL AS SIGNED ) WHEN SUM( ALL + CAST( NULL AS SIGNED ) ) THEN 98 ELSE NULL END + 76 THEN 28 * + COALESCE ( - 7, - 68 * + 2 + 41, 81 * COUNT( * ) ) ELSE - CAST( 4 AS SIGNED ) + + 8 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT 2 / + + CASE + - 97 WHEN 43 THEN + 7 - - COUNT ( * ) WHEN CASE + CASE + 52 WHEN 27 THEN NULL WHEN - 39 THEN - 80 / + 63 WHEN + 66 + ( 50 + 76 * + 38 ) THEN 25 ELSE NULL END WHEN 76 / + COUNT ( * ) THEN - 91 / CAST ( NULL AS INTEGER ) WHEN SUM ( ALL + CAST ( NULL AS INTEGER ) ) THEN 98 ELSE NULL END + 76 THEN 28 * + COALESCE ( - 7, - 68 * + 2 + 41, 81 * COUNT ( * ) ) ELSE - CAST ( 4 AS INTEGER ) + + 8 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT + 8 * 84 * + CASE + AVG ( - 52 ) WHEN - + 15 / 49 THEN NULL ELSE MIN( - 49 ) END
----
-32928

skipif mysql # not compatible
query I rowsort label-4956
SELECT + 8 * 84 * + CASE + AVG ( - 52 ) WHEN - + 15 / 49 THEN NULL ELSE MIN ( - 49 ) END
----
-32928

query II rowsort
SELECT ALL 24 AS col2, 44
----
24
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ALL 19 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL 19 / - 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT + 25 DIV 74 DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT + 25 / 74 / 24 AS col0
----
0

query II rowsort
SELECT ALL + 81, 28 AS col2
----
81
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT 33 * + 15 + - + COUNT( * )
----
494

skipif mysql # not compatible
query I rowsort label-4961
SELECT 33 * + 15 + - + COUNT ( * )
----
494

query I rowsort
SELECT + 77 * - - 45
----
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT + 89 DIV - 4
----
-22

skipif mysql # not compatible
query I rowsort label-4963
SELECT + 89 / - 4
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4964
SELECT ( - 79 ) DIV + - 83 + 5 - + + COALESCE ( - COALESCE ( - CAST( NULL AS SIGNED ), - 37 - ( 99 ) * - 18 ), - 19 ) + 50 * + 40
----
3750

skipif mysql # not compatible
query I rowsort label-4964
SELECT ( - 79 ) / + - 83 + 5 - + + COALESCE ( - COALESCE ( - CAST ( NULL AS INTEGER ), - 37 - ( 99 ) * - 18 ), - 19 ) + 50 * + 40
----
3750

query I rowsort
SELECT DISTINCT 81 * + - 85 + - 99 AS col1
----
-6984

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT ALL + COUNT( * ) AS col2, + 12 AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + COUNT ( * ) AS col2, + 12 AS col0
----
1
12

query I rowsort
SELECT ( + + 86 ) AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT 97 DIV - 75 - - - 8 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4968
SELECT 97 / - 75 - - - 8 AS col1
----
-9

query I rowsort
SELECT + + 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL 36 * + COALESCE ( + ( - - 36 ), + COALESCE ( 4, 39, 98 ) ) + COUNT( * ) * - 97 col1
----
1199

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 36 * + COALESCE ( + ( - - 36 ), + COALESCE ( 4, 39, 98 ) ) + COUNT ( * ) * - 97 col1
----
1199

query I rowsort
SELECT ALL + - 41 col2
----
-41

query I rowsort
SELECT - - 67 + 7
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4973
SELECT + - 14 col2, - ( + - CASE - NULLIF ( - COUNT( * ), - CASE 69 WHEN ( + 77 ) + 0 * + 22 THEN 45 * COUNT( * ) WHEN + 79 THEN NULL END - + CASE 88 WHEN - CAST( NULL AS SIGNED ) + + 39 / - 64 THEN - SUM( DISTINCT CAST( NULL AS SIGNED ) ) ELSE NULL END ) WHEN - 34 THEN COUNT( * ) END ) + - CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col2
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-4973
SELECT + - 14 col2, - ( + - CASE - NULLIF ( - COUNT ( * ), - CASE 69 WHEN ( + 77 ) + 0 * + 22 THEN 45 * COUNT ( * ) WHEN + 79 THEN NULL END - + CASE 88 WHEN - CAST ( NULL AS INTEGER ) + + 39 / - 64 THEN - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) ELSE NULL END ) WHEN - 34 THEN COUNT ( * ) END ) + - CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) AS col2
----
-14
NULL

query II rowsort
SELECT - + 92 * - 38 AS col0, 42
----
3496
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + SUM( ALL - + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4975
SELECT + SUM ( ALL - + 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL 56 * - + 9 + MIN( - 6 ) * + - CAST( + + 59 AS SIGNED ) * - 5 + + CASE - 42 WHEN + NULLIF ( + 52, + 99 + 20 ) * NULLIF ( + CASE 72 WHEN 65 THEN + 73 * + 16 WHEN 42 * - 47 THEN - 86 + - ( CASE + 25 WHEN 61 THEN 73 + 10 END ) * COUNT( * ) END * + 87, - 65 ) THEN COUNT( * ) * 30 WHEN 39 + COUNT( * ) THEN + 41 WHEN + 16 THEN NULL WHEN + 91 + + 61 * + 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL 56 * - + 9 + MIN ( - 6 ) * + - CAST ( + + 59 AS INTEGER ) * - 5 + + CASE - 42 WHEN + NULLIF ( + 52, + 99 + 20 ) * NULLIF ( + CASE 72 WHEN 65 THEN + 73 * + 16 WHEN 42 * - 47 THEN - 86 + - ( CASE + 25 WHEN 61 THEN 73 + 10 END ) * COUNT ( * ) END * + 87, - 65 ) THEN COUNT ( * ) * 30 WHEN 39 + COUNT ( * ) THEN + 41 WHEN + 16 THEN NULL WHEN + 91 + + 61 * + 86 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4977
SELECT + COALESCE ( + - ( + 14 ), + 96 DIV - 40, CAST( NULL AS SIGNED ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4977
SELECT + COALESCE ( + - ( + 14 ), + 96 / - 40, CAST ( NULL AS INTEGER ) ) AS col2
----
-14

query I rowsort
SELECT + - 48 * + - 70
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT MIN( DISTINCT - + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4979
SELECT MIN ( DISTINCT - + 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT + + 31 DIV - + COALESCE ( - + 34, + 72 + - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT + + 31 / - + COALESCE ( - + 34, + 72 + - 15 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT - 4 * CAST( + 69 AS SIGNED )
----
-276

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - 4 * CAST ( + 69 AS INTEGER )
----
-276

query II rowsort
SELECT 10 AS col2, 85 AS col0
----
10
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT - 36 DIV + 4
----
-9

skipif mysql # not compatible
query I rowsort label-4983
SELECT - 36 / + 4
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT - 60 * + 11 * + + NULLIF ( - - 89, COUNT( * ) ) + + 25 + 70 DIV - 83 AS col1
----
-58715

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT - 60 * + 11 * + + NULLIF ( - - 89, COUNT ( * ) ) + + 25 + 70 / - 83 AS col1
----
-58715

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT - 54 DIV - 14 col0
----
3

skipif mysql # not compatible
query I rowsort label-4985
SELECT - 54 / - 14 col0
----
3

query I rowsort
SELECT ALL - + 2 * 8
----
-16

query I rowsort
SELECT 21 * + + 26 + + 66
----
612

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4988
SELECT - 3 DIV + + 33, COALESCE ( + CAST( NULL AS SIGNED ), + + 34, 54 ) - + + COALESCE ( 66, - 69, 64 ) * + 52 AS col0
----
0
-3398

skipif mysql # not compatible
query II rowsort label-4988
SELECT - 3 / + + 33, COALESCE ( + CAST ( NULL AS INTEGER ), + + 34, 54 ) - + + COALESCE ( 66, - 69, 64 ) * + 52 AS col0
----
0
-3398

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL ( - + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL ( - + ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 32 + + + 53 + 34
----
55

query II rowsort
SELECT ALL ( - - 59 ), 37 AS col0
----
59
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4992
SELECT DISTINCT ( + 27 ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4992
SELECT DISTINCT ( + 27 ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
27
NULL

query I rowsort
SELECT - 8 + + 28 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4994
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1, COUNT( * ) * COALESCE ( 65, - - COUNT( * ) * COUNT( * ) ) * 23 + 68
----
-1
1563

skipif mysql # not compatible
query II rowsort label-4994
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) * COALESCE ( 65, - - COUNT ( * ) * COUNT ( * ) ) * 23 + 68
----
-1
1563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT ALL - CAST( NULL AS SIGNED ) + + 36 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL - CAST ( NULL AS INTEGER ) + + 36 col0
----
NULL

query I rowsort
SELECT + 2 - - 82
----
84

query I rowsort
SELECT - 13 * + + 10 AS col0
----
-130

query I rowsort
SELECT - 72 + - + 43
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - MAX( DISTINCT 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4999
SELECT - MAX ( DISTINCT 91 ) AS col1
----
-91

query I rowsort
SELECT + 54 + - 87 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5001
SELECT ALL MAX( - 13 ) DIV - ( + - 4 ) + - - 35 + SUM( DISTINCT 59 ) + - ( 71 ) * - 37
----
2718

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL MAX ( - 13 ) / - ( + - 4 ) + - - 35 + SUM ( DISTINCT 59 ) + - ( 71 ) * - 37
----
2718

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT 2 DIV 94 + ( - - 29 ) + - - 92 * 67 * 43 * - 43 AS col0
----
-11397207

skipif mysql # not compatible
query I rowsort label-5002
SELECT 2 / 94 + ( - - 29 ) + - - 92 * 67 * 43 * - 43 AS col0
----
-11397207

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL 14 DIV - CASE - 60 WHEN + 58 THEN - AVG ( DISTINCT + + 51 ) ELSE 29 END + + 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL 14 / - CASE - 60 WHEN + 58 THEN - AVG ( DISTINCT + + 51 ) ELSE 29 END + + 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT + 76 + 52 + 73 * + NULLIF ( - SUM( + + 4 ), - + CASE 90 WHEN - 23 THEN - COUNT( * ) - + 68 * 89 WHEN - 59 THEN NULL ELSE - ( - 46 ) / - 44 END )
----
-164

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT + 76 + 52 + 73 * + NULLIF ( - SUM ( + + 4 ), - + CASE 90 WHEN - 23 THEN - COUNT ( * ) - + 68 * 89 WHEN - 59 THEN NULL ELSE - ( - 46 ) / - 44 END )
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT DISTINCT 30 / + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT 30 / + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5006
SELECT DISTINCT 69 + - - CAST( - - 78 AS SIGNED ) + - CASE 41 WHEN 54 THEN NULL WHEN - - 47 THEN NULL ELSE - 46 END + 79 DIV + 92
----
193

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT 69 + - - CAST ( - - 78 AS INTEGER ) + - CASE 41 WHEN 54 THEN NULL WHEN - - 47 THEN NULL ELSE - 46 END + 79 / + 92
----
193

onlyif mysql # DIV for integer division: 
query II rowsort label-5007
SELECT 52 DIV 21 AS col2, + 30 AS col2
----
2
30

skipif mysql # not compatible
query II rowsort label-5007
SELECT 52 / 21 AS col2, + 30 AS col2
----
2
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + - 38 * - - 10 + + 50 AS col1
----
-330

query I rowsort
SELECT DISTINCT 88 + 37 + - ( - 95 )
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-5011
SELECT ALL - + MIN( + 62 ) AS col1, + ( - 18 ) * - + 78
----
-62
1404

skipif mysql # not compatible
query II rowsort label-5011
SELECT ALL - + MIN ( + 62 ) AS col1, + ( - 18 ) * - + 78
----
-62
1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT CAST( + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-5012
SELECT CAST ( + 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT + ( + COUNT( * ) ), - ( - 11 ) AS col1
----
1
11

skipif mysql # not compatible
query II rowsort label-5013
SELECT + ( + COUNT ( * ) ), - ( - 11 ) AS col1
----
1
11

query I rowsort
SELECT - 84 + - 61
----
-145

query I rowsort
SELECT - CASE 72 WHEN - + 54 THEN + 92 * 30 WHEN ( + 36 ) + 71 * 43 THEN NULL END + + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT - 64 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 64 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5017
SELECT ALL - + CASE ( - 66 ) WHEN 35 THEN 6 WHEN - + CAST( - + CAST( - CASE 44 WHEN COUNT( * ) + - 66 THEN 90 * - 97 WHEN - 4 DIV 62 + + NULLIF ( - COUNT( * ) + 21 * 37, - MIN( 37 ) ) THEN NULL ELSE NULL END AS DECIMAL ) AS DECIMAL ) THEN NULL WHEN - 93 * 92 + CAST( - ( 4 ) AS SIGNED ) THEN + 85 DIV 80 ELSE - 30 END AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - + CASE ( - 66 ) WHEN 35 THEN 6 WHEN - + CAST ( - + CAST ( - CASE 44 WHEN COUNT ( * ) + - 66 THEN 90 * - 97 WHEN - 4 / 62 + + NULLIF ( - COUNT ( * ) + 21 * 37, - MIN ( 37 ) ) THEN NULL ELSE NULL END AS REAL ) AS REAL ) THEN NULL WHEN - 93 * 92 + CAST ( - ( 4 ) AS INTEGER ) THEN + 85 / 80 ELSE - 30 END AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT - COUNT( * ) * + 62 AS col2, + 46
----
-62
46

skipif mysql # not compatible
query II rowsort label-5018
SELECT - COUNT ( * ) * + 62 AS col2, + 46
----
-62
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL + CAST( NULL AS SIGNED ) * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL + CAST ( NULL AS INTEGER ) * 93 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT - - SUM( DISTINCT - + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5021
SELECT - - SUM ( DISTINCT - + 80 ) AS col0
----
-80

query I rowsort
SELECT + 47 + - - 82 + 40 AS col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT COUNT( * ) + - 13 * - + 70 - - - ( + + 35 ) AS col1
----
876

skipif mysql # not compatible
query I rowsort label-5023
SELECT COUNT ( * ) + - 13 * - + 70 - - - ( + + 35 ) AS col1
----
876

query II rowsort
SELECT 86 AS col0, 4
----
86
4

query I rowsort
SELECT 50 + + 34
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5026
SELECT ALL 1 AS col0, CAST( NULL AS DECIMAL ) + - 46 + + 69 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5026
SELECT ALL 1 AS col0, CAST ( NULL AS REAL ) + - 46 + + 69 AS col2
----
1
NULL

query I rowsort
SELECT 21 + - 87 * + 15 AS col1
----
-1284

query I rowsort
SELECT ALL + 69 * + 49 AS col1
----
3381

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT NULLIF ( + CASE 17 WHEN - 45 * - - 37 / COUNT( * ) THEN NULL WHEN - - 20 - - COALESCE ( ( + 97 ), - 62 * + ( - 66 / ( COALESCE ( - 80, 47 ) * + 75 ) ) ) THEN NULL WHEN COALESCE ( + COUNT( * ), 72 * 76 ) * - 86 THEN + MIN( ALL 55 ) END, - CASE - 30 WHEN - COUNT( ALL ( 9 ) ) THEN + 38 ELSE NULL END + CASE + 14 WHEN - ( + NULLIF ( 9, 65 ) ) * - 65 THEN - COUNT( * ) * - 66 WHEN MAX( 10 ) THEN NULL ELSE 92 END * 28 ) * - SUM( DISTINCT + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5029
SELECT NULLIF ( + CASE 17 WHEN - 45 * - - 37 / COUNT ( * ) THEN NULL WHEN - - 20 - - COALESCE ( ( + 97 ), - 62 * + ( - 66 / ( COALESCE ( - 80, 47 ) * + 75 ) ) ) THEN NULL WHEN COALESCE ( + COUNT ( * ), 72 * 76 ) * - 86 THEN + MIN ( ALL 55 ) END, - CASE - 30 WHEN - COUNT ( ALL ( 9 ) ) THEN + 38 ELSE NULL END + CASE + 14 WHEN - ( + NULLIF ( 9, 65 ) ) * - 65 THEN - COUNT ( * ) * - 66 WHEN MAX ( 10 ) THEN NULL ELSE 92 END * 28 ) * - SUM ( DISTINCT + 60 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT 37 DIV 15 * + 33
----
66

skipif mysql # not compatible
query I rowsort label-5030
SELECT 37 / 15 * + 33
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT 49 DIV - + 20 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5031
SELECT 49 / - + 20 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ( + 33 ) * 37 * - CASE - 16 WHEN + 53 * + 73 THEN + 30 END + 38 / + COUNT( DISTINCT 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ( + 33 ) * 37 * - CASE - 16 WHEN + 53 * + 73 THEN + 30 END + 38 / + COUNT ( DISTINCT 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 56 + + SUM( 13 ) + + ( + 62 ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-5033
SELECT 56 + + SUM ( 13 ) + + ( + 62 ) AS col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT 30 * + + ( + - CASE + 72 WHEN 59 / - + ( + - 79 ) * - + 19 THEN NULL WHEN COUNT( + COALESCE ( 92, 60 * 58 ) ) + + CAST( NULL AS SIGNED ) THEN NULL ELSE 81 END )
----
-2430

skipif mysql # not compatible
query I rowsort label-5034
SELECT 30 * + + ( + - CASE + 72 WHEN 59 / - + ( + - 79 ) * - + 19 THEN NULL WHEN COUNT ( + COALESCE ( 92, 60 * 58 ) ) + + CAST ( NULL AS INTEGER ) THEN NULL ELSE 81 END )
----
-2430

query I rowsort
SELECT 65 + - 25
----
40

query II rowsort
SELECT 34, 39 * - + 86 AS col2
----
34
-3354

query I rowsort
SELECT 84 * 6 AS col1
----
504

query I rowsort
SELECT ALL - 70 + + 78 col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL - CASE 87 WHEN - COUNT( * ) THEN + + 93 END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - CASE 87 WHEN - COUNT ( * ) THEN + + 93 END * 58
----
NULL

query I rowsort
SELECT 61 + + 46
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5041
SELECT DISTINCT - 52 + 18 - + + SUM( ALL - - ( CAST( NULL AS SIGNED ) ) ) * + 61 / - SUM( ALL - 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - 52 + 18 - + + SUM ( ALL - - ( CAST ( NULL AS INTEGER ) ) ) * + 61 / - SUM ( ALL - 17 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 40, + 48 AS col0
----
40
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT - 42 AS col1, - SUM( + - 46 ) * 30 AS col2
----
-42
1380

skipif mysql # not compatible
query II rowsort label-5043
SELECT - 42 AS col1, - SUM ( + - 46 ) * 30 AS col2
----
-42
1380

query I rowsort
SELECT ALL 6 + + 50
----
56

query I rowsort
SELECT + 23 + - 20 AS col0
----
3

query I rowsort
SELECT + - 64 col2
----
-64

query II rowsort
SELECT - 54 AS col2, + 85 AS col1
----
-54
85

query II rowsort
SELECT ALL + + ( + 95 ) * - - 91 col2, - 32 * - 84 * + - 65 AS col0
----
8645
-174720

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT + - CASE SUM( ALL + 93 ) WHEN + ( COUNT( * ) ) THEN 29 WHEN AVG ( DISTINCT - 10 ) + MAX( ALL + 31 + 35 ) THEN 40 WHEN 99 - CASE + COUNT( * ) WHEN + 54 THEN 94 + 87 WHEN - 31 * 5 THEN 91 * 59 END THEN + 77 / ( 40 ) ELSE NULL END * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT + - CASE SUM ( ALL + 93 ) WHEN + ( COUNT ( * ) ) THEN 29 WHEN AVG ( DISTINCT - 10 ) + MAX ( ALL + 31 + 35 ) THEN 40 WHEN 99 - CASE + COUNT ( * ) WHEN + 54 THEN 94 + 87 WHEN - 31 * 5 THEN 91 * 59 END THEN + 77 / ( 40 ) ELSE NULL END * + 13
----
NULL

query I rowsort
SELECT DISTINCT - 95 col1
----
-95

query I rowsort
SELECT 13 * - ( + - CASE + 45 WHEN - 43 + - - 33 + + - 44 THEN - + 77 ELSE NULL END ) * + 97 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL + 54 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + 54 / - 39
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5053
SELECT COALESCE ( 74, - - 12 * 79 DIV + 96 * - COUNT( * ), + 8 * + COUNT( * ) ) + 23
----
97

skipif mysql # not compatible
query I rowsort label-5053
SELECT COALESCE ( 74, - - 12 * 79 / + 96 * - COUNT ( * ), + 8 * + COUNT ( * ) ) + 23
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + COALESCE ( NULLIF ( + MIN( DISTINCT 38 ), - + 92 * + - 96 ), - 91 ) * - - 82 * COUNT( * ) AS col1
----
3116

skipif mysql # not compatible
query I rowsort label-5054
SELECT + COALESCE ( NULLIF ( + MIN ( DISTINCT 38 ), - + 92 * + - 96 ), - 91 ) * - - 82 * COUNT ( * ) AS col1
----
3116

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT ALL + 10 DIV - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL + 10 / - 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT 36 * SUM( 37 )
----
1332

skipif mysql # not compatible
query I rowsort label-5056
SELECT 36 * SUM ( 37 )
----
1332

query I rowsort
SELECT 82 * - 24 AS col1
----
-1968

query I rowsort
SELECT ALL 28 * - NULLIF ( - + 50, 24 + COALESCE ( + 23, + 91 ) ) AS col0
----
1400

query I rowsort
SELECT + + 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL - CASE 50 WHEN - MAX( - 30 ) THEN - 3 * - 74 WHEN - 97 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - CASE 50 WHEN - MAX ( - 30 ) THEN - 3 * - 74 WHEN - 97 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT DISTINCT CASE + - 49 WHEN AVG ( 42 ) + - 55 THEN 51 * + COALESCE ( - ( + 27 ), 5 / - 5 ) - - 42 END + CAST( - 90 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT CASE + - 49 WHEN AVG ( 42 ) + - 55 THEN 51 * + COALESCE ( - ( + 27 ), 5 / - 5 ) - - 42 END + CAST ( - 90 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL COUNT( * ) + - - 15 + 12 * 48 * - 56 AS col1
----
-32240

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COUNT ( * ) + - - 15 + 12 * 48 * - 56 AS col1
----
-32240

query I rowsort
SELECT DISTINCT + 55 + + 88 + - 92
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5065
SELECT COUNT( * ) + 37 AS col1, + 85 + - + 52 AS col1
----
38
33

skipif mysql # not compatible
query II rowsort label-5065
SELECT COUNT ( * ) + 37 AS col1, + 85 + - + 52 AS col1
----
38
33

query I rowsort
SELECT ALL 84 + - + 93
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT - MAX( ALL 53 ), 22 * 28 + + 24 col0
----
-53
640

skipif mysql # not compatible
query II rowsort label-5067
SELECT - MAX ( ALL 53 ), 22 * 28 + + 24 col0
----
-53
640

query I rowsort
SELECT 39 + - ( 34 ) * - + ( 12 ) AS col1
----
447

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT 46 + - ( + + 42 ) * - CASE + + 36 WHEN - + 8 / + + 66 THEN SUM( + ( - 52 ) ) WHEN - 6 THEN NULL END * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT 46 + - ( + + 42 ) * - CASE + + 36 WHEN - + 8 / + + 66 THEN SUM ( + ( - 52 ) ) WHEN - 6 THEN NULL END * 40 AS col0
----
NULL

query I rowsort
SELECT ALL 37 + - + 42
----
-5

query I rowsort
SELECT ALL 1 + + 52
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT - CAST( NULL AS SIGNED ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT - CAST ( NULL AS INTEGER ) * - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5073
SELECT DISTINCT MIN( - + CAST( NULL AS SIGNED ) ) AS col2, 53 + + ( 76 ) AS col0
----
NULL
129

skipif mysql # not compatible
query II rowsort label-5073
SELECT DISTINCT MIN ( - + CAST ( NULL AS INTEGER ) ) AS col2, 53 + + ( 76 ) AS col0
----
NULL
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT + 83 + + 83 * + 61 * AVG ( ALL - 87 ) + - 64 / - - CASE - - 5 WHEN - 89 THEN NULL WHEN COUNT( * ) * 72 + CAST( + 79 AS SIGNED ) THEN 99 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT + 83 + + 83 * + 61 * AVG ( ALL - 87 ) + - 64 / - - CASE - - 5 WHEN - 89 THEN NULL WHEN COUNT ( * ) * 72 + CAST ( + 79 AS INTEGER ) THEN 99 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 94 * - 7 * - - 40 AS col1
----
-26320

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT + - 27 + - 9 DIV + 28 col1
----
-27

skipif mysql # not compatible
query I rowsort label-5076
SELECT + - 27 + - 9 / + 28 col1
----
-27

query I rowsort
SELECT ALL + 16 - 41 * + - COALESCE ( + 34, - + 32 ) col2
----
1410

onlyif mysql # aggregate syntax: 
query II rowsort label-5078
SELECT + COUNT( * ) * 16, + 36 - + 0 col2
----
16
36

skipif mysql # not compatible
query II rowsort label-5078
SELECT + COUNT ( * ) * 16, + 36 - + 0 col2
----
16
36

query I rowsort
SELECT - 0 * + 58 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5080
SELECT - 44 * 76, CASE - AVG ( DISTINCT + + CAST( ( - 89 ) AS SIGNED ) ) WHEN - 93 * 29 + 67 THEN NULL WHEN CASE - ( 97 ) WHEN 13 THEN NULL WHEN + 25 THEN 50 END * - CAST( NULL AS SIGNED ) + 50 DIV - 61 THEN NULL ELSE 51 DIV 65 END AS col0
----
-3344
0

skipif mysql # not compatible
query II rowsort label-5080
SELECT - 44 * 76, CASE - AVG ( DISTINCT + + CAST ( ( - 89 ) AS INTEGER ) ) WHEN - 93 * 29 + 67 THEN NULL WHEN CASE - ( 97 ) WHEN 13 THEN NULL WHEN + 25 THEN 50 END * - CAST ( NULL AS INTEGER ) + 50 / - 61 THEN NULL ELSE 51 / 65 END AS col0
----
-3344
0

query I rowsort
SELECT ALL + - 88 col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + NULLIF ( - 4, + 71 + + + 9 + + - COUNT( * ) + COUNT( * ) * - 46 / 15 - - + 47 + 77 )
----
-4

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + NULLIF ( - 4, + 71 + + + 9 + + - COUNT ( * ) + COUNT ( * ) * - 46 / 15 - - + 47 + 77 )
----
-4

query I rowsort
SELECT ALL + 79 AS col2
----
79

query I rowsort
SELECT ALL + + ( - 6 )
----
-6

query I rowsort
SELECT 98 col2
----
98

query II rowsort
SELECT - 33 + - 39 * + + 67 * - 60 AS col0, + NULLIF ( + + 7, - + 75 ) AS col2
----
156747
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + + MAX( - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT + + MAX ( - 0 ) AS col2
----
0

query I rowsort
SELECT - 7 + + 61
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL + + 83 * + - 71 - + ( + MAX( ALL + 94 ) ) + - 26
----
-6013

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + + 83 * + - 71 - + ( + MAX ( ALL + 94 ) ) + - 26
----
-6013

query I rowsort
SELECT - 46 * - 31 * - 88
----
-125488

query II rowsort
SELECT + 3 * NULLIF ( 46, - - 50 ) + 36 col2, + 39 AS col2
----
174
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL + - COALESCE ( MIN( - + 33 ), - - 68, COALESCE ( - 97, + + 41 ), + 46 ) * - 6 + 1
----
-197

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + - COALESCE ( MIN ( - + 33 ), - - 68, COALESCE ( - 97, + + 41 ), + 46 ) * - 6 + 1
----
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT + + 53 DIV - + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT + + 53 / - + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT - - COUNT( * ) + + 66 + + + 27 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5094
SELECT - - COUNT ( * ) + + 66 + + + 27 AS col1
----
94

query I rowsort
SELECT ALL + 97 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - MIN( ALL 30 ) ) * - 25 + - + 96 AS col2
----
654

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - MIN ( ALL 30 ) ) * - 25 + - + 96 AS col2
----
654

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT DISTINCT 38 DIV + 11 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT 38 / + 11 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT - 73 DIV 18
----
-4

skipif mysql # not compatible
query I rowsort label-5098
SELECT - 73 / 18
----
-4

query I rowsort
SELECT + 79 + 6
----
85

query I rowsort
SELECT - 90 * + + 66
----
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT - MAX( - - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-5101
SELECT - MAX ( - - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + CASE - 20 WHEN - + 21 THEN + - 96 * + ( + - 19 ) END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT + CASE - 20 WHEN - + 21 THEN + - 96 * + ( + - 19 ) END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL 61 + - COUNT( * ) * 78 * - COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL 61 + - COUNT ( * ) * 78 * - COUNT ( * )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - MIN( ALL + + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-5104
SELECT - MIN ( ALL + + 90 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT 43 * - - ( 60 ) + + COALESCE ( - MIN( ALL + 84 ), 51 * + 35 + + 59 ) * 36 + + 43 DIV - 97 AS col0
----
-444

skipif mysql # not compatible
query I rowsort label-5105
SELECT 43 * - - ( 60 ) + + COALESCE ( - MIN ( ALL + 84 ), 51 * + 35 + + 59 ) * 36 + + 43 / - 97 AS col0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL 37 * ( + CASE + ( + - 21 ) WHEN - 48 THEN - 92 * - COUNT( * ) WHEN + 35 THEN - 50 + 65 ELSE - 35 END ) * - 32
----
41440

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL 37 * ( + CASE + ( + - 21 ) WHEN - 48 THEN - 92 * - COUNT ( * ) WHEN + 35 THEN - 50 + 65 ELSE - 35 END ) * - 32
----
41440

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT MAX( ALL - + 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5107
SELECT MAX ( ALL - + 87 ) AS col0
----
-87

query I rowsort
SELECT ALL 31 + + 21 + - 56 + - - 47 * - + 5 + - + 32 + + 56 AS col1
----
-215

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT ALL 28, + COUNT( * ) + + 2 AS col0
----
28
3

skipif mysql # not compatible
query II rowsort label-5109
SELECT ALL 28, + COUNT ( * ) + + 2 AS col0
----
28
3

query I rowsort
SELECT ALL 95 * 48
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5111
SELECT - COALESCE ( - NULLIF ( CAST( NULL AS SIGNED ), - CASE + + COUNT( DISTINCT - 0 ) WHEN - 41 THEN NULL ELSE 64 END + - 50 * - COUNT( * ) + 85 * + ( CAST( SUM( DISTINCT 29 ) AS DECIMAL ) ) ), + 91 * - 38, - 84 ) AS col1
----
3458

skipif mysql # not compatible
query I rowsort label-5111
SELECT - COALESCE ( - NULLIF ( CAST ( NULL AS INTEGER ), - CASE + + COUNT ( DISTINCT - 0 ) WHEN - 41 THEN NULL ELSE 64 END + - 50 * - COUNT ( * ) + 85 * + ( CAST ( SUM ( DISTINCT 29 ) AS REAL ) ) ), + 91 * - 38, - 84 ) AS col1
----
3458

query I rowsort
SELECT + 65 + - + 34 + 58 * - 63 AS col1
----
-3623

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT + + 64 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-5113
SELECT + + 64 / 53
----
1

query I rowsort
SELECT - + 59 * 71 col2
----
-4189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5115
SELECT ALL 39, + MAX( - + 52 ) * + COUNT( * ) * COUNT( * ) * - COALESCE ( - + 17, 89 DIV 90 + - 6 ) * COALESCE ( 6, + COUNT( * ) * - 44 ) col0
----
39
-5304

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL 39, + MAX ( - + 52 ) * + COUNT ( * ) * COUNT ( * ) * - COALESCE ( - + 17, 89 / 90 + - 6 ) * COALESCE ( 6, + COUNT ( * ) * - 44 ) col0
----
39
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - SUM( ALL + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-5116
SELECT - SUM ( ALL + 48 )
----
-48

query I rowsort
SELECT ALL - + 35 * 54
----
-1890

query I rowsort
SELECT DISTINCT - 87 * - 37 + - 13 * - 38 * 5 * - + 94
----
-228961

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT DISTINCT - COUNT( + 8 ) * COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - COUNT ( + 8 ) * COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT + CASE MAX( ALL - ( 15 ) ) WHEN + 41 THEN NULL ELSE + - 10 * + + COUNT( * ) + 61 DIV - 95 + - 12 END AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5120
SELECT + CASE MAX ( ALL - ( 15 ) ) WHEN + 41 THEN NULL ELSE + - 10 * + + COUNT ( * ) + 61 / - 95 + - 12 END AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL 61 * - ( NULLIF ( + ( + ( + + 13 ) ), + CAST( - - 36 AS SIGNED ) * 86 * + + COALESCE ( 28, 0 + 79 ) + 27 * MIN( ALL - 5 ) ) ) AS col1
----
-793

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL 61 * - ( NULLIF ( + ( + ( + + 13 ) ), + CAST ( - - 36 AS INTEGER ) * 86 * + + COALESCE ( 28, 0 + 79 ) + 27 * MIN ( ALL - 5 ) ) ) AS col1
----
-793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5122
SELECT + - 38 / + 49 + - CAST( NULL AS SIGNED ) * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5122
SELECT + - 38 / + 49 + - CAST ( NULL AS INTEGER ) * - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT CASE + 39 WHEN - ( 6 ) * - + 64 THEN NULL WHEN + + COUNT( * ) THEN - 30 - - - COUNT( * ) * 21 WHEN + 15 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT CASE + 39 WHEN - ( 6 ) * - + 64 THEN NULL WHEN + + COUNT ( * ) THEN - 30 - - - COUNT ( * ) * 21 WHEN + 15 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5124
SELECT - + 57 * 47 DIV + + 47 + + - 30 - - CAST( 8 AS SIGNED ) - 46 * COUNT( - - 39 ) * 41 + + 8
----
-1957

skipif mysql # not compatible
query I rowsort label-5124
SELECT - + 57 * 47 / + + 47 + + - 30 - - CAST ( 8 AS INTEGER ) - 46 * COUNT ( - - 39 ) * 41 + + 8
----
-1957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT ALL + + 68 DIV + + 58 + + + 41 + 73 * 64 * + 99 + + COUNT( * )
----
462571

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + + 68 / + + 58 + + + 41 + 73 * 64 * + 99 + + COUNT ( * )
----
462571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5126
SELECT ALL - + ( - 27 ) DIV + COUNT( * ) + - 2 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - + ( - 27 ) / + COUNT ( * ) + - 2 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5127
SELECT - ( + NULLIF ( - ( + 0 ), 26 ) ) col2, - COUNT( * ) + 99 + + 59 DIV NULLIF ( + 17, COUNT( * ) - + 74 ) * COALESCE ( + 28 + 4, - 86 )
----
0
194

skipif mysql # not compatible
query II rowsort label-5127
SELECT - ( + NULLIF ( - ( + 0 ), 26 ) ) col2, - COUNT ( * ) + 99 + + 59 / NULLIF ( + 17, COUNT ( * ) - + 74 ) * COALESCE ( + 28 + 4, - 86 )
----
0
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5128
SELECT + 67 DIV - + COALESCE ( 52, + 1 DIV 12 + - CASE ( 7 ) WHEN - SUM( + + 83 ) + 11 THEN 30 WHEN + 6 THEN NULL ELSE 66 END + - 27, 76 ) + + 97 * - 77 AS col1
----
-7470

skipif mysql # not compatible
query I rowsort label-5128
SELECT + 67 / - + COALESCE ( 52, + 1 / 12 + - CASE ( 7 ) WHEN - SUM ( + + 83 ) + 11 THEN 30 WHEN + 6 THEN NULL ELSE 66 END + - 27, 76 ) + + 97 * - 77 AS col1
----
-7470

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - + 13 - - 90 + - COUNT( * ) * - 99 col2
----
176

skipif mysql # not compatible
query I rowsort label-5129
SELECT - + 13 - - 90 + - COUNT ( * ) * - 99 col2
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5130
SELECT DISTINCT + 31 DIV + 61 + + - SUM( + 31 ) * - 92 AS col2, 60 AS col0
----
2852
60

skipif mysql # not compatible
query II rowsort label-5130
SELECT DISTINCT + 31 / + 61 + + - SUM ( + 31 ) * - 92 AS col2, 60 AS col0
----
2852
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5131
SELECT ALL - + COUNT( * ) DIV 77 * + + 46 - - 98 + - + CAST( MAX( ALL - 39 ) AS SIGNED ) * - 33 + + 97
----
-1092

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - + COUNT ( * ) / 77 * + + 46 - - 98 + - + CAST ( MAX ( ALL - 39 ) AS INTEGER ) * - 33 + + 97
----
-1092

query I rowsort
SELECT 18 col0
----
18

query I rowsort
SELECT + 97 * 40 col0
----
3880

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + MIN( ALL - - 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-5134
SELECT + MIN ( ALL - - 17 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL + SUM( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + SUM ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ( + MIN( DISTINCT 30 ) )
----
30

skipif mysql # not compatible
query I rowsort label-5136
SELECT ( + MIN ( DISTINCT 30 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + SUM( ALL + - CASE + 7 WHEN ( 38 ) THEN - 88 ELSE + 36 END )
----
-36

skipif mysql # not compatible
query I rowsort label-5137
SELECT + SUM ( ALL + - CASE + 7 WHEN ( 38 ) THEN - 88 ELSE + 36 END )
----
-36

query I rowsort
SELECT ( - - CASE + + 38 WHEN + 5 THEN - 73 * + 2 END )
----
NULL

query I rowsort
SELECT ALL 86 * - 85 * + 38 + ( + 60 )
----
-277720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5140
SELECT - 67 * 42 * 14 DIV COUNT( + 6 )
----
-39396

skipif mysql # not compatible
query I rowsort label-5140
SELECT - 67 * 42 * 14 / COUNT ( + 6 )
----
-39396

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL + MAX( - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL + MAX ( - 20 )
----
-20

query I rowsort
SELECT DISTINCT - 20 - - 61
----
41

query I rowsort
SELECT ALL - 38 - + - 54 col0
----
16

query II rowsort
SELECT DISTINCT - 20 - - 90 * + - 15 + - 72, + 37 + + 15 AS col1
----
-1442
52

query I rowsort
SELECT 84 * - - 15 AS col1
----
1260

query I rowsort
SELECT 61 * - 60 AS col1
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT 64 + - - MIN( ALL - 87 ) + + - COUNT( * ) + + - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5147
SELECT 64 + - - MIN ( ALL - 87 ) + + - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT 71 * - + 57
----
-4047

onlyif mysql # aggregate syntax: 
query II rowsort label-5149
SELECT - 88, MIN( + + NULLIF ( - 23, + 8 ) ) * + + 7 AS col2
----
-88
-161

skipif mysql # not compatible
query II rowsort label-5149
SELECT - 88, MIN ( + + NULLIF ( - 23, + 8 ) ) * + + 7 AS col2
----
-88
-161

query I rowsort
SELECT 9 * - 84
----
-756

query I rowsort
SELECT ALL 47 * + + 47 * + 74
----
163466

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - ( + 76 ) + + COUNT( * ) * - 35 * + 30 AS col1
----
-1126

skipif mysql # not compatible
query I rowsort label-5152
SELECT - ( + 76 ) + + COUNT ( * ) * - 35 * + 30 AS col1
----
-1126

query I rowsort
SELECT - 35 * + 21 AS col0
----
-735

query I rowsort
SELECT DISTINCT 83 * - + 39
----
-3237

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL + COUNT( ALL - + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + COUNT ( ALL - + 35 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT + 1 * 13 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT + 1 * 13 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 21 + 50
----
71

query I rowsort
SELECT - - ( - 84 ) AS col0
----
-84

query I rowsort
SELECT ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT 54 + COUNT( - 9 ) * - 99 * + 45 AS col2
----
-4401

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT 54 + COUNT ( - 9 ) * - 99 * + 45 AS col2
----
-4401

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT 42 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5161
SELECT 42 * + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT + COUNT( * ) + - COUNT( + 43 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5162
SELECT + COUNT ( * ) + - COUNT ( + 43 ) AS col1
----
0

query I rowsort
SELECT ALL + 23 + 82
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT + COUNT( * ) + - + MIN( ALL 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-5164
SELECT + COUNT ( * ) + - + MIN ( ALL 74 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT - 53 + + + 54 * + + 63 + + 6 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT - 53 + + + 54 * + + 63 + + 6 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 21 DIV - 6
----
-3

skipif mysql # not compatible
query I rowsort label-5166
SELECT 21 / - 6
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL + 20 + + - ( + ( + 76 ) ) * 8 * + - MAX( ( - + ( 98 ) ) ) * - 58 + + COUNT( * ) - - 26 + 35
----
3455954

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + 20 + + - ( + ( + 76 ) ) * 8 * + - MAX ( ( - + ( 98 ) ) ) * - 58 + + COUNT ( * ) - - 26 + 35
----
3455954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL CAST( NULL AS SIGNED ) + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL CAST ( NULL AS INTEGER ) + + 34 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL - + 40 + - 17 * - 54 - ( CAST( NULL AS SIGNED ) ) * + + 70 + + - ( - 72 ) + - - NULLIF ( - + 71, - 77 * - 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - + 40 + - 17 * - 54 - ( CAST ( NULL AS INTEGER ) ) * + + 70 + + - ( - 72 ) + - - NULLIF ( - + 71, - 77 * - 84 ) AS col0
----
NULL

query I rowsort
SELECT ( + 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT ALL + MAX( + 85 ) * + 88 * - 43, COUNT( * ) * SUM( + - 45 ) AS col1
----
-321640
-45

skipif mysql # not compatible
query II rowsort label-5171
SELECT ALL + MAX ( + 85 ) * + 88 * - 43, COUNT ( * ) * SUM ( + - 45 ) AS col1
----
-321640
-45

query I rowsort
SELECT ( + 1 ) + - + 73
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT + COALESCE ( - + 86, + - 37 * - 87 ) DIV - + 15
----
5

skipif mysql # not compatible
query I rowsort label-5173
SELECT + COALESCE ( - + 86, + - 37 * - 87 ) / - + 15
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5174
SELECT + - 76 * - CAST( NULL AS DECIMAL ) * + 9 * + + 89 + + 93 * - CASE - - 75 WHEN + 4 THEN COALESCE ( - 58, + + 15, + 77 ) END + 25 * - COUNT( * ) + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT + - 76 * - CAST ( NULL AS REAL ) * + 9 * + + 89 + + 93 * - CASE - - 75 WHEN + 4 THEN COALESCE ( - 58, + + 15, + 77 ) END + 25 * - COUNT ( * ) + 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT COUNT( * ) * + + COUNT( * ) * 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5175
SELECT COUNT ( * ) * + + COUNT ( * ) * 67 AS col0
----
67

query I rowsort
SELECT ALL 32 * - COALESCE ( + 2, + - 21 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT CASE + - 12 WHEN + COUNT( * ) THEN - + COUNT( DISTINCT - 67 ) ELSE NULL END * 84 * + - 14 + - 69 + + + 68 + - COUNT( * ) * - 34 * + + ( + 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT CASE + - 12 WHEN + COUNT ( * ) THEN - + COUNT ( DISTINCT - 67 ) ELSE NULL END * 84 * + - 14 + - 69 + + + 68 + - COUNT ( * ) * - 34 * + + ( + 73 ) AS col2
----
NULL

query I rowsort
SELECT 65 + 86
----
151

query I rowsort
SELECT DISTINCT 84 - - 98 + 29 - 37 * - 70 * + + 21 - - - ( + 19 ) AS col2
----
54582

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT - NULLIF ( - 85, COUNT( * ) * + 76 + - 67 - + 26 )
----
85

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - NULLIF ( - 85, COUNT ( * ) * + 76 + - 67 - + 26 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT 70 * - - CAST( - 24 AS SIGNED ) + - - COUNT( * ) * - - 0 AS col2
----
-1680

skipif mysql # not compatible
query I rowsort label-5181
SELECT 70 * - - CAST ( - 24 AS INTEGER ) + - - COUNT ( * ) * - - 0 AS col2
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT 0 + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + MIN( ALL + + 34 ) * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT 0 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + MIN ( ALL + + 34 ) * + 35 AS col1
----
NULL

query I rowsort
SELECT ALL - 7 * 68 AS col1
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL 18 * - 72 * COUNT( * ) * 62
----
-80352

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL 18 * - 72 * COUNT ( * ) * 62
----
-80352

query I rowsort
SELECT 57 * + 59 - - - 88
----
3275

query I rowsort
SELECT ALL ( 75 ) AS col0
----
75

query I rowsort
SELECT ALL - - 88 + + 45 * + - 5 AS col1
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5188
SELECT + ( - CAST( 17 AS SIGNED ) ) AS col1, - 49 AS col1
----
-17
-49

skipif mysql # not compatible
query II rowsort label-5188
SELECT + ( - CAST ( 17 AS INTEGER ) ) AS col1, - 49 AS col1
----
-17
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT COUNT( * ) DIV + CASE + 89 WHEN + CASE - - 97 WHEN - + 9 THEN 69 WHEN 56 + + + 84 THEN NULL ELSE NULL END + - COUNT( DISTINCT 75 ) THEN + 9 ELSE COUNT( * ) END DIV - COUNT( * ) + + ( + 68 )
----
67

skipif mysql # not compatible
query I rowsort label-5189
SELECT COUNT ( * ) / + CASE + 89 WHEN + CASE - - 97 WHEN - + 9 THEN 69 WHEN 56 + + + 84 THEN NULL ELSE NULL END + - COUNT ( DISTINCT 75 ) THEN + 9 ELSE COUNT ( * ) END / - COUNT ( * ) + + ( + 68 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + CASE COUNT( * ) WHEN - 76 * COALESCE ( 83, - - 63 ) THEN NULL WHEN 0 * 62 THEN + CASE 40 WHEN + 6 THEN NULL WHEN - + 95 * + COUNT( + 58 ) THEN 71 * + 39 ELSE 83 * 15 END ELSE NULL END * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT + CASE COUNT ( * ) WHEN - 76 * COALESCE ( 83, - - 63 ) THEN NULL WHEN 0 * 62 THEN + CASE 40 WHEN + 6 THEN NULL WHEN - + 95 * + COUNT ( + 58 ) THEN 71 * + 39 ELSE 83 * 15 END ELSE NULL END * 12
----
NULL

query I rowsort
SELECT ALL + - 76 + + + 90 * - + 28 AS col1
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT COALESCE ( - 81, + COALESCE ( - 66, - 6 * + 72 * - 35 ), SUM( ALL + 24 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-5192
SELECT COALESCE ( - 81, + COALESCE ( - 66, - 6 * + 72 * - 35 ), SUM ( ALL + 24 ) ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT 26 * + + 62 * CASE COALESCE ( 13, - COUNT( * ) * - 33 / - COUNT( * ) - + - SUM( ALL + 79 ) / + CAST( - COALESCE ( 6, + 27 ) AS SIGNED ) ) WHEN + 70 THEN 70 WHEN - 63 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT 26 * + + 62 * CASE COALESCE ( 13, - COUNT ( * ) * - 33 / - COUNT ( * ) - + - SUM ( ALL + 79 ) / + CAST ( - COALESCE ( 6, + 27 ) AS INTEGER ) ) WHEN + 70 THEN 70 WHEN - 63 THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5194
SELECT ALL - SUM( - CAST( NULL AS DECIMAL ) ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - SUM ( - CAST ( NULL AS REAL ) ) * 32
----
NULL

query I rowsort
SELECT DISTINCT 84 * - 47 col1
----
-3948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT ALL - 91 + - - 34 * - NULLIF ( + - 67, + - NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) ) ) AS col2
----
2187

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - 91 + - - 34 * - NULLIF ( + - 67, + - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ) AS col2
----
2187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT DISTINCT + 69 + - - CAST( - + 79 AS SIGNED ) + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + 69 + - - CAST ( - + 79 AS INTEGER ) + + COUNT ( * )
----
-9

query II rowsort
SELECT ALL - 11 + + 64 AS col1, + 66 * - 15 AS col2
----
53
-990

query I rowsort
SELECT + - 82 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT - 42 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT - 42 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 89 * + 85 AS col1
----
7565

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5202
SELECT ( + CAST( NULL AS SIGNED ) ) / 34 * - + 58 + - 20 + - + 59 - 19, + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5202
SELECT ( + CAST ( NULL AS INTEGER ) ) / 34 * - + 58 + - 20 + - + 59 - 19, + 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT CASE - 25 WHEN ( + 18 ) * + - 20 - + - 96 THEN - - 11 WHEN CASE - 39 WHEN + 15 + + + MAX( DISTINCT - 42 ) * - + 91 THEN NULL WHEN 26 THEN NULL ELSE - SUM( 90 ) * - CASE 75 WHEN + AVG ( + 54 ) * 97 THEN COUNT( * ) / - COUNT( * ) + - 15 WHEN - 38 * 9 + 26 THEN + MIN( DISTINCT + 20 ) ELSE - 13 * + 5 + + 55 * 67 END END THEN NULL WHEN 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT CASE - 25 WHEN ( + 18 ) * + - 20 - + - 96 THEN - - 11 WHEN CASE - 39 WHEN + 15 + + + MAX ( DISTINCT - 42 ) * - + 91 THEN NULL WHEN 26 THEN NULL ELSE - SUM ( 90 ) * - CASE 75 WHEN + AVG ( + 54 ) * 97 THEN COUNT ( * ) / - COUNT ( * ) + - 15 WHEN - 38 * 9 + 26 THEN + MIN ( DISTINCT + 20 ) ELSE - 13 * + 5 + + 55 * 67 END END THEN NULL WHEN 75 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL COUNT( * ) * + + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL COUNT ( * ) * + + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT SUM( ALL + + COALESCE ( - COALESCE ( - 34, - 16 ), - - 5 * - 0 ) )
----
34

skipif mysql # not compatible
query I rowsort label-5205
SELECT SUM ( ALL + + COALESCE ( - COALESCE ( - 34, - 16 ), - - 5 * - 0 ) )
----
34

query I rowsort
SELECT + COALESCE ( + 65, + 99 )
----
65

query I rowsort
SELECT DISTINCT 37 * + - ( - 87 ) * + 60 * + 78 - + 34
----
15064886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT + ( - COUNT( * ) ) DIV + + 24
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT + ( - COUNT ( * ) ) / + + 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5209
SELECT + CASE - - MAX( DISTINCT - - 80 ) WHEN + + 50 + - 92 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN + COUNT( * ) + COALESCE ( 75, - + 21 ) DIV + ( + - COUNT( * ) ) THEN + 57 WHEN 24 - + 78 THEN 20 DIV + 5 ELSE - ( + 75 ) END * 22 AS col0
----
-1650

skipif mysql # not compatible
query I rowsort label-5209
SELECT + CASE - - MAX ( DISTINCT - - 80 ) WHEN + + 50 + - 92 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + COALESCE ( 75, - + 21 ) / + ( + - COUNT ( * ) ) THEN + 57 WHEN 24 - + 78 THEN 20 / + 5 ELSE - ( + 75 ) END * 22 AS col0
----
-1650

query I rowsort
SELECT + 66 * 28 AS col1
----
1848

query I rowsort
SELECT ALL 72 * - 46 AS col0
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL + MAX( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + MAX ( - 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT + CAST( NULL AS SIGNED ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT + CAST ( NULL AS INTEGER ) * - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-5214
SELECT + COUNT ( * ) * 9
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * + + 13
----
1
13

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + + 13
----
1
13

query I rowsort
SELECT - ( - - 67 )
----
-67

query I rowsort
SELECT ALL + 16 + + 75
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - 30 - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5218
SELECT - 30 - COUNT ( * )
----
-31

query I rowsort
SELECT ALL - 47 + + 24 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5220
SELECT + COUNT( * ) * + - 31 + 33 + - COUNT( * ) + - - 37 DIV - - 15 AS col2, 60 * 91 AS col0
----
3
5460

skipif mysql # not compatible
query II rowsort label-5220
SELECT + COUNT ( * ) * + - 31 + 33 + - COUNT ( * ) + - - 37 / - - 15 AS col2, 60 * 91 AS col0
----
3
5460

query I rowsort
SELECT - - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT - - COUNT( + 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5222
SELECT - - COUNT ( + 81 ) AS col1
----
1

query I rowsort
SELECT - + 48 AS col2
----
-48

query I rowsort
SELECT ALL - 56 + - 2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - - SUM( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5225
SELECT - - SUM ( + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - ( + MIN( DISTINCT + - 64 ) ) * - - 3 * - + 68
----
-13056

skipif mysql # not compatible
query I rowsort label-5226
SELECT - ( + MIN ( DISTINCT + - 64 ) ) * - - 3 * - + 68
----
-13056

query I rowsort
SELECT - + 75 + + 65
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL + MAX( ALL + 43 ) * + ( - - MAX( - + 24 ) )
----
-1032

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + MAX ( ALL + 43 ) * + ( - - MAX ( - + 24 ) )
----
-1032

query I rowsort
SELECT ALL - COALESCE ( 38, + 48 - + 15 ) + + 3 * - 25 AS col2
----
-113

query I rowsort
SELECT - - 1 + + 72 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL + ( + 90 ) + + 12 * + 73 * - 93 + + - 19 * - 57 - - 49 * - 53 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + ( + 90 ) + + 12 * + 73 * - 93 + + - 19 * - 57 - - 49 * - 53 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT - + 26 + - ( + + CAST( NULL AS SIGNED ) ) * - COUNT( ALL 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT - + 26 + - ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( ALL 78 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 86, + 63 * + 50 + + + 72 ) + - 32 * 79 AS col2
----
-2614

query I rowsort
SELECT ALL + 4 * 70
----
280

onlyif mysql # aggregate syntax: 
query II rowsort label-5235
SELECT 6 AS col1, NULLIF ( - 27, - AVG ( - + 21 ) ) * + COUNT( * ) * + + 48
----
6
-1296

skipif mysql # not compatible
query II rowsort label-5235
SELECT 6 AS col1, NULLIF ( - 27, - AVG ( - + 21 ) ) * + COUNT ( * ) * + + 48
----
6
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT - 4 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT - 4 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5237
SELECT - 74 + + + SUM( ALL + ( COALESCE ( - 30, + 24, 7 ) ) ) + + CAST( NULL AS DECIMAL ) + + - 98 - - 9 * 62 / + 9 * + 88 + - 98 / COUNT( * ) * ( CAST( 47 AS SIGNED ) / 94 + ( COUNT( * ) ) / 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT - 74 + + + SUM ( ALL + ( COALESCE ( - 30, + 24, 7 ) ) ) + + CAST ( NULL AS REAL ) + + - 98 - - 9 * 62 / + 9 * + 88 + - 98 / COUNT ( * ) * ( CAST ( 47 AS INTEGER ) / 94 + ( COUNT ( * ) ) / 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - COUNT( DISTINCT + 91 ) + + NULLIF ( - - 76, + MAX( - - 97 ) )
----
75

skipif mysql # not compatible
query I rowsort label-5238
SELECT - COUNT ( DISTINCT + 91 ) + + NULLIF ( - - 76, + MAX ( - - 97 ) )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL - + CASE 19 WHEN + - 20 THEN NULL WHEN + NULLIF ( 88, + 23 * + 37 - 55 ) + CASE - 59 WHEN - 2 THEN - + 14 ELSE + + ( - COUNT( * ) ) END - ( + NULLIF ( + COUNT( * ), - COUNT( * ) / + 64 + NULLIF ( - CAST( NULL AS SIGNED ), 85 / + 55 ) ) + - 95 ) THEN 85 * 73 WHEN 5 THEN NULL END - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL - + CASE 19 WHEN + - 20 THEN NULL WHEN + NULLIF ( 88, + 23 * + 37 - 55 ) + CASE - 59 WHEN - 2 THEN - + 14 ELSE + + ( - COUNT ( * ) ) END - ( + NULLIF ( + COUNT ( * ), - COUNT ( * ) / + 64 + NULLIF ( - CAST ( NULL AS INTEGER ), 85 / + 55 ) ) + - 95 ) THEN 85 * 73 WHEN 5 THEN NULL END - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + COALESCE ( - 82, + - NULLIF ( - - 58, + COUNT( * ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + COALESCE ( - 82, + - NULLIF ( - - 58, + COUNT ( * ) ) )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT + SUM( - 55 ), - 28 + + 74 AS col2
----
-55
46

skipif mysql # not compatible
query II rowsort label-5241
SELECT + SUM ( - 55 ), - 28 + + 74 AS col2
----
-55
46

query I rowsort
SELECT DISTINCT 32 * - 78
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT + NULLIF ( - 28, - - COUNT( * ) + ( - 80 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT + NULLIF ( - 28, - - COUNT ( * ) + ( - 80 ) ) AS col0
----
-28

query I rowsort
SELECT DISTINCT + 7 * + 74
----
518

query I rowsort
SELECT - COALESCE ( - 13, ( + - 10 ) ) * 6 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5246
SELECT + 80 / + CAST( NULL AS DECIMAL ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 80 / + CAST ( NULL AS REAL ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ( 97 ) col1
----
97

query I rowsort
SELECT + 92 * - 32 + + 52 + 47 * - NULLIF ( - ( 21 ), + 34 )
----
-1905

query I rowsort
SELECT ALL - 13 * 33 + - 82
----
-511

query I rowsort
SELECT + ( 31 ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL 10 * - + ( CASE + - 64 WHEN - 41 THEN + - 69 WHEN + + 84 * - CAST( + 34 AS SIGNED ) THEN NULL WHEN MIN( - 94 ) * + ( 1 ) * 89 + + 92 - - 79 - + 29 THEN NULL ELSE NULL END ) * ( - 98 ) + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL 10 * - + ( CASE + - 64 WHEN - 41 THEN + - 69 WHEN + + 84 * - CAST ( + 34 AS INTEGER ) THEN NULL WHEN MIN ( - 94 ) * + ( 1 ) * 89 + + 92 - - 79 - + 29 THEN NULL ELSE NULL END ) * ( - 98 ) + + 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT + 28 + - 41 * - + ( - + MAX( 11 ) )
----
-423

skipif mysql # not compatible
query I rowsort label-5252
SELECT + 28 + - 41 * - + ( - + MAX ( 11 ) )
----
-423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT ALL + + CAST( - + MIN( 43 ) AS SIGNED ) * - - COUNT( * ) + + - 6 + + 70
----
21

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + + CAST ( - + MIN ( 43 ) AS INTEGER ) * - - COUNT ( * ) + + - 6 + + 70
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5254
SELECT + 42 + - COUNT( * ) AS col2, CAST( - 46 AS SIGNED )
----
41
-46

skipif mysql # not compatible
query II rowsort label-5254
SELECT + 42 + - COUNT ( * ) AS col2, CAST ( - 46 AS INTEGER )
----
41
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT - - ( + - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT - - ( + - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT - 68 * - - NULLIF ( - 40, - 99 ) * - 54 + + 89 + + COUNT( * ) + 82 AS col0
----
-146708

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT - 68 * - - NULLIF ( - 40, - 99 ) * - 54 + + 89 + + COUNT ( * ) + 82 AS col0
----
-146708

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL MIN( + - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL MIN ( + - 23 )
----
-23

query I rowsort
SELECT + + 30 * - 9 AS col1
----
-270

query I rowsort
SELECT ALL - - 72 * 26 + 66 * + 79 + + 17
----
7103

query I rowsort
SELECT - + NULLIF ( - 98, + ( 65 ) + 17 * - 43 ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT + 75 * - - 33 + - ( - 28 ) + - COALESCE ( + CAST( NULL AS SIGNED ), - + 50 - + 4, - 37 + 76 )
----
2557

skipif mysql # not compatible
query I rowsort label-5261
SELECT + 75 * - - 33 + - ( - 28 ) + - COALESCE ( + CAST ( NULL AS INTEGER ), - + 50 - + 4, - 37 + 76 )
----
2557

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - 44 * - + CASE - + COUNT( * ) WHEN - + 25 THEN NULL ELSE - COUNT( * ) END * + - 7 AS col2
----
308

skipif mysql # not compatible
query I rowsort label-5262
SELECT - 44 * - + CASE - + COUNT ( * ) WHEN - + 25 THEN NULL ELSE - COUNT ( * ) END * + - 7 AS col2
----
308

query I rowsort
SELECT ALL + NULLIF ( + 93, - 85 ) col1
----
93

query I rowsort
SELECT - - 96 AS col1
----
96

query I rowsort
SELECT + + 3 * 66 AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT COALESCE ( ( 84 ), - 33 - + 84 ) * + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5266
SELECT COALESCE ( ( 84 ), - 33 - + 84 ) * + COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT ALL + + COALESCE ( 94, 69 ) * - + 11 * + 11 * + - CAST( - 51 AS SIGNED ) AS col1
----
-580074

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + + COALESCE ( 94, 69 ) * - + 11 * + 11 * + - CAST ( - 51 AS INTEGER ) AS col1
----
-580074

query I rowsort
SELECT 45 - - 57 AS col0
----
102

query I rowsort
SELECT 75 + + 44
----
119

query I rowsort
SELECT 65 * 6
----
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5271
SELECT 48 + - 32 + + 17 + - SUM( + CAST( NULL AS SIGNED ) ) + - 75 * - 66 * + 39 / + + COALESCE ( COUNT( ALL - 6 ), + CASE + + COUNT( * ) WHEN COUNT( * ) THEN + 5 WHEN COUNT( * ) THEN NULL END + - 0 * - 84, AVG ( ALL + 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT 48 + - 32 + + 17 + - SUM ( + CAST ( NULL AS INTEGER ) ) + - 75 * - 66 * + 39 / + + COALESCE ( COUNT ( ALL - 6 ), + CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN + 5 WHEN COUNT ( * ) THEN NULL END + - 0 * - 84, AVG ( ALL + 13 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 26 col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5273
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / - 88 * 85 + + - COUNT( * ) * 60 / + - 24 * + 30 + + CASE + CASE + + 73 WHEN + + CAST( - CASE + COUNT( * ) WHEN - + CAST( NULL AS DECIMAL ) + + 40 THEN 96 * ( + NULLIF ( + 36, 44 ) ) - COALESCE ( 79, 50 ) * 92 ELSE 11 * 69 + - 63 * 96 END AS SIGNED ) * 63 THEN - COALESCE ( + 76, - 85 ) ELSE NULL END WHEN - 74 - CAST( NULL AS SIGNED ) THEN NULL ELSE + 23 * 68 END * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - 88 * 85 + + - COUNT ( * ) * 60 / + - 24 * + 30 + + CASE + CASE + + 73 WHEN + + CAST ( - CASE + COUNT ( * ) WHEN - + CAST ( NULL AS REAL ) + + 40 THEN 96 * ( + NULLIF ( + 36, 44 ) ) - COALESCE ( 79, 50 ) * 92 ELSE 11 * 69 + - 63 * 96 END AS INTEGER ) * 63 THEN - COALESCE ( + 76, - 85 ) ELSE NULL END WHEN - 74 - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 23 * 68 END * - 69 AS col2
----
NULL

query I rowsort
SELECT 3 * 76
----
228

query I rowsort
SELECT ALL - 48 + 98 * + 47 * + 28
----
128920

query I rowsort
SELECT 80 * - 53 AS col1
----
-4240

query I rowsort
SELECT DISTINCT - 16 AS col1
----
-16

query I rowsort
SELECT DISTINCT + 76 + - 59
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5279
SELECT DISTINCT - COALESCE ( + ( + COUNT( * ) ), - - ( + CAST( NULL AS SIGNED ) ), + 64 * + - COUNT( * ) + + - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - COALESCE ( + ( + COUNT ( * ) ), - - ( + CAST ( NULL AS INTEGER ) ), + 64 * + - COUNT ( * ) + + - 68 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT ALL ( CAST( NULL AS SIGNED ) ) * COUNT( * ) + + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + + 44 AS col2
----
NULL

query II rowsort
SELECT + 36 col1, - 73 AS col1
----
36
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL - COALESCE ( 29, COUNT( * ) + - + SUM( - + 75 ) + + CASE 57 WHEN - 62 THEN - - 59 * + 98 WHEN - 47 THEN NULLIF ( 15, + ( 40 ) ) END ) + - COUNT( * ) * CASE - 21 WHEN - 78 + - 31 * + 6 THEN + NULLIF ( 25, + NULLIF ( 93, COUNT( * ) * COUNT( * ) ) + + COUNT( * ) ) + + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - COALESCE ( 29, COUNT ( * ) + - + SUM ( - + 75 ) + + CASE 57 WHEN - 62 THEN - - 59 * + 98 WHEN - 47 THEN NULLIF ( 15, + ( 40 ) ) END ) + - COUNT ( * ) * CASE - 21 WHEN - 78 + - 31 * + 6 THEN + NULLIF ( 25, + NULLIF ( 93, COUNT ( * ) * COUNT ( * ) ) + + COUNT ( * ) ) + + 60 END
----
NULL

query I rowsort
SELECT ALL + 59 * - - 93 AS col0
----
5487

query I rowsort
SELECT 73 - - 39
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT + COUNT( DISTINCT + 28 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5285
SELECT + COUNT ( DISTINCT + 28 ) col2
----
1

query III rowsort
SELECT 81 AS col1, 23 * - 89 AS col0, - - 65
----
81
-2047
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL + 39 + - COUNT( * ) + + 53 + + 43 AS col1
----
134

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL + 39 + - COUNT ( * ) + + 53 + + 43 AS col1
----
134

query I rowsort
SELECT - 79 - - 8
----
-71

query I rowsort
SELECT DISTINCT - + 67 AS col0
----
-67

query I rowsort
SELECT DISTINCT - ( - 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT 50 * - NULLIF ( - COALESCE ( + - 58, + - COUNT( * ) + 35 + - NULLIF ( + + NULLIF ( - 69, - - 8 + + 43 ), - 98 ) ), + 63 * - 6 * + 2 + - 56 )
----
-2900

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT 50 * - NULLIF ( - COALESCE ( + - 58, + - COUNT ( * ) + 35 + - NULLIF ( + + NULLIF ( - 69, - - 8 + + 43 ), - 98 ) ), + 63 * - 6 * + 2 + - 56 )
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT MAX( DISTINCT + ( + 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT MAX ( DISTINCT + ( + 45 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT - + 17 * + - 22 + - - COUNT( * )
----
375

skipif mysql # not compatible
query I rowsort label-5293
SELECT - + 17 * + - 22 + - - COUNT ( * )
----
375

query I rowsort
SELECT + 42 - + 93
----
-51

query I rowsort
SELECT - - COALESCE ( + 21, + 69 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + MIN( - 68 ) + - + 56 * + 57
----
-3260

skipif mysql # not compatible
query I rowsort label-5296
SELECT + MIN ( - 68 ) + - + 56 * + 57
----
-3260

query I rowsort
SELECT 11 * - + 31 + - 1
----
-342

query I rowsort
SELECT DISTINCT 34 * - 34
----
-1156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5299
SELECT ALL 50 AS col0, 54 * - CAST( - 75 AS SIGNED ) col0
----
50
4050

skipif mysql # not compatible
query II rowsort label-5299
SELECT ALL 50 AS col0, 54 * - CAST ( - 75 AS INTEGER ) col0
----
50
4050

query I rowsort
SELECT 59 + 62
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT DISTINCT - 19 * - 56 / + 5 * + - CASE - 69 WHEN CASE + 21 WHEN + - 9 / MAX( ALL + 80 ) THEN + 89 + - - 83 END + - 45 THEN + 69 + - + ( + 70 ) WHEN 11 THEN NULL END * COALESCE ( - 66, COALESCE ( COALESCE ( 1, + 57 ), + CAST( + 40 AS SIGNED ) ) * 32 + 54 * 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT - 19 * - 56 / + 5 * + - CASE - 69 WHEN CASE + 21 WHEN + - 9 / MAX ( ALL + 80 ) THEN + 89 + - - 83 END + - 45 THEN + 69 + - + ( + 70 ) WHEN 11 THEN NULL END * COALESCE ( - 66, COALESCE ( COALESCE ( 1, + 57 ), + CAST ( + 40 AS INTEGER ) ) * 32 + 54 * 38 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5302
SELECT + COUNT( * ) * + + CAST( + 88 AS SIGNED ) AS col2, + 19 AS col1
----
88
19

skipif mysql # not compatible
query II rowsort label-5302
SELECT + COUNT ( * ) * + + CAST ( + 88 AS INTEGER ) AS col2, + 19 AS col1
----
88
19

query II rowsort
SELECT 94, 25 + + + 12 AS col0
----
94
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5304
SELECT - 48 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-5304
SELECT - 48 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
-48
NULL

query II rowsort
SELECT - 99 AS col1, + ( - 4 )
----
-99
-4

query I rowsort
SELECT 93 + + 20 AS col1
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5307
SELECT 64 * + 7, - CAST( - + 34 AS SIGNED ) * + - 32 + 40 AS col2
----
448
-1048

skipif mysql # not compatible
query II rowsort label-5307
SELECT 64 * + 7, - CAST ( - + 34 AS INTEGER ) * + - 32 + 40 AS col2
----
448
-1048

query I rowsort
SELECT 0 * - + 79 * 68 AS col2
----
0

query II rowsort
SELECT 80 AS col2, + 7 col2
----
80
7

query I rowsort
SELECT ALL + 16 + + 66 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT CASE - MAX( - 83 ) WHEN - 86 + - - ( NULLIF ( COUNT( * ), - - ( + + COUNT( * ) ) + + - 22 / - 53 ) ) THEN + NULLIF ( 59, + + CASE - 24 WHEN - - 38 * 66 THEN NULL WHEN - 28 * + 63 + - 85 THEN + 65 WHEN + 92 THEN NULL END * 90 ) WHEN 2 * 35 THEN NULL END + 38 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT CASE - MAX ( - 83 ) WHEN - 86 + - - ( NULLIF ( COUNT ( * ), - - ( + + COUNT ( * ) ) + + - 22 / - 53 ) ) THEN + NULLIF ( 59, + + CASE - 24 WHEN - - 38 * 66 THEN NULL WHEN - 28 * + 63 + - 85 THEN + 65 WHEN + 92 THEN NULL END * 90 ) WHEN 2 * 35 THEN NULL END + 38 col2
----
NULL

query I rowsort
SELECT DISTINCT 60 + + 33 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + COUNT( DISTINCT 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5313
SELECT + COUNT ( DISTINCT 48 ) AS col2
----
1

query I rowsort
SELECT ALL - CASE 85 WHEN 61 THEN + ( - 80 ) ELSE - 9 END
----
9

query I rowsort
SELECT 80 + + ( - 63 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT 81 DIV + COUNT( * ) - COUNT( * ) col0
----
80

skipif mysql # not compatible
query I rowsort label-5316
SELECT 81 / + COUNT ( * ) - COUNT ( * ) col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5317
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) * + + 36 + ( + 87 ) * - COUNT( * ) + - - 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + + 36 + ( + 87 ) * - COUNT ( * ) + - - 67 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT 25 + - MIN( - ( 6 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5318
SELECT 25 + - MIN ( - ( 6 ) ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5319
SELECT 28 * COUNT( * ) col2, 29
----
28
29

skipif mysql # not compatible
query II rowsort label-5319
SELECT 28 * COUNT ( * ) col2, 29
----
28
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT 81 * 9 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT 81 * 9 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5321
SELECT COUNT( * ) AS col0, CAST( 47 AS SIGNED ) + + - 15 + - MIN( DISTINCT + - 1 ) * - - 72 + 35 AS col0
----
1
139

skipif mysql # not compatible
query II rowsort label-5321
SELECT COUNT ( * ) AS col0, CAST ( 47 AS INTEGER ) + + - 15 + - MIN ( DISTINCT + - 1 ) * - - 72 + 35 AS col0
----
1
139

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT - 33 DIV + 50 + + 58 + + - 64 * 8
----
-454

skipif mysql # not compatible
query I rowsort label-5322
SELECT - 33 / + 50 + + 58 + + - 64 * 8
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL 33 - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL 33 - COUNT ( * )
----
32

query II rowsort
SELECT ALL - 46, + 22 * + + 36 + ( + 17 ) AS col0
----
-46
809

query I rowsort
SELECT - 77 + - 26 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL + 19 * - + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + 19 * - + COUNT ( * )
----
-19

query I rowsort
SELECT + 46 * - + 81 + - 76 * - + 92 * + + 67 AS col1
----
464738

query I rowsort
SELECT ALL - + 60
----
-60

query I rowsort
SELECT + 99 * - - 59 AS col1
----
5841

query I rowsort
SELECT 26 * 2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + - 13 * - 58 + + - 3 + MIN( - 46 ) * 32 + 66 + COUNT( * )
----
-654

skipif mysql # not compatible
query I rowsort label-5331
SELECT + - 13 * - 58 + + - 3 + MIN ( - 46 ) * 32 + 66 + COUNT ( * )
----
-654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT + COALESCE ( + - CAST( NULL AS SIGNED ), + 68 ) * ( + 52 )
----
3536

skipif mysql # not compatible
query I rowsort label-5332
SELECT + COALESCE ( + - CAST ( NULL AS INTEGER ), + 68 ) * ( + 52 )
----
3536

query II rowsort
SELECT + 26 + + 29 AS col0, 77 * + + 23 - + + 47
----
55
1724

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - 66 * - SUM( DISTINCT 77 ) * - + 55
----
-279510

skipif mysql # not compatible
query I rowsort label-5334
SELECT - 66 * - SUM ( DISTINCT 77 ) * - + 55
----
-279510

query II rowsort
SELECT + 33, - NULLIF ( 62, + + 39 ) AS col1
----
33
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5336
SELECT + 40 + - 44 * + NULLIF ( - 6, CASE - 56 WHEN 12 - + 81 + 90 + + 72 * - - 60 THEN + CAST( NULL AS SIGNED ) + 69 WHEN + 42 + AVG ( ALL - 17 ) / 99 THEN - 33 / COUNT( * ) ELSE NULL END + MIN( 77 ) ) AS col1
----
304

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 40 + - 44 * + NULLIF ( - 6, CASE - 56 WHEN 12 - + 81 + 90 + + 72 * - - 60 THEN + CAST ( NULL AS INTEGER ) + 69 WHEN + 42 + AVG ( ALL - 17 ) / 99 THEN - 33 / COUNT ( * ) ELSE NULL END + MIN ( 77 ) ) AS col1
----
304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5337
SELECT - - 36 AS col2, - COALESCE ( - 59, + 95, - 21 + - 9 * - 53 ) DIV - 54 + - 24 + - COUNT( * ) + MIN( DISTINCT + 56 )
----
36
30

skipif mysql # not compatible
query II rowsort label-5337
SELECT - - 36 AS col2, - COALESCE ( - 59, + 95, - 21 + - 9 * - 53 ) / - 54 + - 24 + - COUNT ( * ) + MIN ( DISTINCT + 56 )
----
36
30

query III rowsort
SELECT - 17 col1, ( - ( + 7 ) ) AS col1, + + 24
----
-17
-7
24

query I rowsort
SELECT ALL - 81 * + 68
----
-5508

query I rowsort
SELECT - ( - - 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT DISTINCT COUNT( * ), 36 AS col0
----
1
36

skipif mysql # not compatible
query II rowsort label-5341
SELECT DISTINCT COUNT ( * ), 36 AS col0
----
1
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT ALL + 18 AS col0, 20 + - COUNT( * ) * - 18 * + - 80
----
18
-1420

skipif mysql # not compatible
query II rowsort label-5342
SELECT ALL + 18 AS col0, 20 + - COUNT ( * ) * - 18 * + - 80
----
18
-1420

query I rowsort
SELECT - + 51 - - - 24 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT - + 51, - CASE - MAX( ALL - 60 ) WHEN + + CASE + + 72 WHEN MIN( ( + - 70 ) ) + + - 10 * + - 79 THEN - ( + 15 ) END * + - 82 THEN NULL ELSE 52 * - 32 END AS col1
----
-51
1664

skipif mysql # not compatible
query II rowsort label-5344
SELECT - + 51, - CASE - MAX ( ALL - 60 ) WHEN + + CASE + + 72 WHEN MIN ( ( + - 70 ) ) + + - 10 * + - 79 THEN - ( + 15 ) END * + - 82 THEN NULL ELSE 52 * - 32 END AS col1
----
-51
1664

query II rowsort
SELECT - 44 * 81 * + 3 AS col0, - 21
----
-10692
-21

query I rowsort
SELECT DISTINCT 73 + + 82 AS col1
----
155

query I rowsort
SELECT ALL 8 + - 86
----
-78

query II rowsort
SELECT ALL + 57 * + 71 AS col0, 4 col1
----
4047
4

query I rowsort
SELECT DISTINCT ( + 38 )
----
38

query II rowsort
SELECT ALL 72 + - 92 col1, + 14 - + + 58 * + - ( 87 ) AS col1
----
-20
5060

query I rowsort
SELECT + 54 + 57
----
111

query I rowsort
SELECT ALL + 54 col2
----
54

query II rowsort
SELECT ( - ( + 62 ) ) AS col2, 89 + - + 19 AS col2
----
-62
70

query I rowsort
SELECT ( - ( 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + MIN( ALL 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + MIN ( ALL 93 )
----
93

query I rowsort
SELECT + NULLIF ( - 19, - + 30 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5357
SELECT - 29 / CAST( NULL AS SIGNED ) + - MIN( DISTINCT - 65 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT - 29 / CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - 65 ) col1
----
NULL

query I rowsort
SELECT + ( - + 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT CASE + - 6 WHEN + COUNT( * ) THEN - 0 - - COALESCE ( 22, + + MAX( 16 ) + COUNT( * ) / + + 97 * - - 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT CASE + - 6 WHEN + COUNT ( * ) THEN - 0 - - COALESCE ( 22, + + MAX ( 16 ) + COUNT ( * ) / + + 97 * - - 11 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL - COUNT( * ) * + + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) col1
----
-1

query I rowsort
SELECT ( ( - - 18 ) )
----
18

query I rowsort
SELECT - - 93 * - NULLIF ( 2, - 50 ) AS col0
----
-186

query II rowsort
SELECT + 41 * - + 82 AS col0, + 69 AS col0
----
-3362
69

query I rowsort
SELECT ALL + 61 AS col2
----
61

query I rowsort
SELECT + - 90 - - 56 + + 15 + - 79 * + ( + - 49 )
----
3852

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT - + COUNT( * ) - 74 + - - 94 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5366
SELECT - + COUNT ( * ) - 74 + - - 94 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT ALL + - 97 DIV + 90 - 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL + - 97 / + 90 - 26 AS col0
----
-27

query I rowsort
SELECT DISTINCT + - 56 col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT - 0 * - CAST( NULL AS SIGNED ) * - - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT - 0 * - CAST ( NULL AS INTEGER ) * - - 92 AS col2
----
NULL

query I rowsort
SELECT - + 66 * - 91 AS col1
----
6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT ALL + 50 * - COALESCE ( - 93, 20 * - - 23 * 86 + - - MAX( DISTINCT - 19 ) ) + 9 - - 93 - - 19 + + + 94 - COALESCE ( - - 87, - - COALESCE ( 12, CAST( - 97 AS SIGNED ) ) - + 26 * + 78 ) * + 59 AS col1
----
-268

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + 50 * - COALESCE ( - 93, 20 * - - 23 * 86 + - - MAX ( DISTINCT - 19 ) ) + 9 - - 93 - - 19 + + + 94 - COALESCE ( - - 87, - - COALESCE ( 12, CAST ( - 97 AS INTEGER ) ) - + 26 * + 78 ) * + 59 AS col1
----
-268

query I rowsort
SELECT - 27 - 16 + - 38 * - 70 col2
----
2617

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL - + ( + CASE - - 93 WHEN + 49 * - - COUNT( * ) + - - 98 THEN + MIN( 2 ) + - COUNT( * ) END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - + ( + CASE - - 93 WHEN + 49 * - - COUNT ( * ) + - - 98 THEN + MIN ( 2 ) + - COUNT ( * ) END ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT - 40 - COUNT( * ) + + MAX( ALL - CASE 44 WHEN - - 84 THEN NULL WHEN 24 THEN + 71 * + + 58 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 40 - COUNT ( * ) + + MAX ( ALL - CASE 44 WHEN - - 84 THEN NULL WHEN 24 THEN + 71 * + + 58 END ) col1
----
NULL

query I rowsort
SELECT - + 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT - 20 + 88 + - - 29 * - + 42 - - COUNT( * )
----
-1149

skipif mysql # not compatible
query I rowsort label-5376
SELECT - 20 + 88 + - - 29 * - + 42 - - COUNT ( * )
----
-1149

query I rowsort
SELECT ALL - 62 + - 10 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT - COUNT( * ) + + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-5378
SELECT - COUNT ( * ) + + - 71
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - NULLIF ( - - 63, 62 * MAX( - 63 ) + + + COUNT( * ) - 71 + + 19 * + - 34 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-5379
SELECT - NULLIF ( - - 63, 62 * MAX ( - 63 ) + + + COUNT ( * ) - 71 + + 19 * + - 34 ) AS col0
----
-63

query I rowsort
SELECT ALL + 35 + + + 33 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5381
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT DISTINCT - 17 + COUNT( ALL + 22 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT - 17 + COUNT ( ALL + 22 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT - COUNT( 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5383
SELECT - COUNT ( 15 ) AS col0
----
-1

query I rowsort
SELECT - 66 + + 94 AS col0
----
28

query I rowsort
SELECT ALL - 99 + + + 49 * - 59 * - - 42 AS col0
----
-121521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT CAST( - - 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT CAST ( - - 13 AS INTEGER ) AS col2
----
13

query I rowsort
SELECT - 96 + + + 84 + 51
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT - CASE - 38 WHEN - 78 THEN - 56 END * - 28 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT - CASE - 38 WHEN - 78 THEN - 56 END * - 28 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 60 + - 48 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT ALL + COUNT( * ) DIV - 8
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL + COUNT ( * ) / - 8
----
0

query I rowsort
SELECT + 36 + + 1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT - COUNT( * ) AS col1, 26 + NULLIF ( COUNT( 87 ), 51 ) + - ( + COUNT( * ) ) * - + 95 * - COALESCE ( - 84, 55 + + 84 )
----
-1
8007

skipif mysql # not compatible
query II rowsort label-5392
SELECT - COUNT ( * ) AS col1, 26 + NULLIF ( COUNT ( 87 ), 51 ) + - ( + COUNT ( * ) ) * - + 95 * - COALESCE ( - 84, 55 + + 84 )
----
-1
8007

query I rowsort
SELECT - ( + - 9 ) AS col1
----
9

query I rowsort
SELECT + 12 + - 53
----
-41

query I rowsort
SELECT - 24 * + + 8 AS col0
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT ALL + 27 DIV - COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + 27 / - COUNT ( * ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-5397
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 71 AS col0
----
NULL
-71

query I rowsort
SELECT - NULLIF ( + 63, - 97 + + 99 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT + COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + COUNT ( * ) * 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL + MAX( ALL COALESCE ( 68, + 71 * - 66 ) ) col1
----
68

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + MAX ( ALL COALESCE ( 68, + 71 * - 66 ) ) col1
----
68

query I rowsort
SELECT DISTINCT + + 37
----
37

query I rowsort
SELECT - 12 + + 14 * - - 41
----
562

onlyif mysql # DIV for integer division: 
query I rowsort label-5403
SELECT + ( 81 ) DIV + 44 + - - 6
----
7

skipif mysql # not compatible
query I rowsort label-5403
SELECT + ( 81 ) / + 44 + - - 6
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT + 86 / 16 + + + 92 + 75 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT + 86 / 16 + + + 92 + 75 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 95 + - + 33
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT + 56 AS col2, + COUNT( * )
----
56
1

skipif mysql # not compatible
query II rowsort label-5406
SELECT + 56 AS col2, + COUNT ( * )
----
56
1

query I rowsort
SELECT - - 75 * + 54 + + + 40 + - 71 + - + ( - 11 ) - 83 col2
----
3947

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT 49 AS col1, + ( + 90 ) + COUNT( * )
----
49
91

skipif mysql # not compatible
query II rowsort label-5408
SELECT 49 AS col1, + ( + 90 ) + COUNT ( * )
----
49
91

query I rowsort
SELECT ALL - + 22 col1
----
-22

query I rowsort
SELECT ALL + 75 * - + 32
----
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT CAST( - 87 AS SIGNED ) + - 76 AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-5411
SELECT CAST ( - 87 AS INTEGER ) + - 76 AS col0
----
-163

query I rowsort
SELECT ALL 45 + - 95 * 65
----
-6130

query I rowsort
SELECT DISTINCT + 42 + - 79 * 4
----
-274

onlyif mysql # aggregate syntax: 
query II rowsort label-5414
SELECT ALL - + 82 + + ( + 96 ) AS col0, - COUNT( * ) + CASE - - 25 WHEN + 94 * 37 * 29 / + ( 57 ) THEN + + 8 END * 58
----
14
NULL

skipif mysql # not compatible
query II rowsort label-5414
SELECT ALL - + 82 + + ( + 96 ) AS col0, - COUNT ( * ) + CASE - - 25 WHEN + 94 * 37 * 29 / + ( 57 ) THEN + + 8 END * 58
----
14
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5415
SELECT + + 42 col2, + COALESCE ( + + 37, + - 58 DIV - 6 + - CAST( NULL AS SIGNED ) ) + 34
----
42
71

skipif mysql # not compatible
query II rowsort label-5415
SELECT + + 42 col2, + COALESCE ( + + 37, + - 58 / - 6 + - CAST ( NULL AS INTEGER ) ) + 34
----
42
71

query I rowsort
SELECT 45 * + 87 AS col2
----
3915

query I rowsort
SELECT + - 75 * - + 85 + - 37
----
6338

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5418
SELECT DISTINCT + CASE CAST( + COUNT( * ) AS SIGNED ) WHEN + ( + - 5 ) + + 52 THEN + 66 + 92 + - SUM( 1 ) + + COALESCE ( + 98, COUNT( * ) + - 30 + - 45 * - - 30 DIV + COUNT( + 75 ) * - 80 ) DIV ( 21 + 0 ) ELSE 16 + - 41 END + + 49
----
24

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + CASE CAST ( + COUNT ( * ) AS INTEGER ) WHEN + ( + - 5 ) + + 52 THEN + 66 + 92 + - SUM ( 1 ) + + COALESCE ( + 98, COUNT ( * ) + - 30 + - 45 * - - 30 / + COUNT ( + 75 ) * - 80 ) / ( 21 + 0 ) ELSE 16 + - 41 END + + 49
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT + MAX( ALL + + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-5419
SELECT + MAX ( ALL + + 88 )
----
88

query I rowsort
SELECT + 38 + + 59 + + - ( - 70 )
----
167

query I rowsort
SELECT ALL + 49 + - - 68
----
117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5422
SELECT + 77 * ( + - COALESCE ( ( - 71 ), + COUNT( * ) ) ) + + 16 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 77 * ( + - COALESCE ( ( - 71 ), + COUNT ( * ) ) ) + + 16 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL NULLIF ( + + COUNT( * ), 79 + + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL NULLIF ( + + COUNT ( * ), 79 + + 55 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5424
SELECT ALL 64, + 0 DIV - 79 + + - 65 + 2 * + CAST( 87 AS SIGNED ) AS col2
----
64
109

skipif mysql # not compatible
query II rowsort label-5424
SELECT ALL 64, + 0 / - 79 + + - 65 + 2 * + CAST ( 87 AS INTEGER ) AS col2
----
64
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT 61 + - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT 61 + - COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5426
SELECT ALL + COALESCE ( + - 33, - 76 DIV - + 86 ) * - COUNT( - 17 ) * - 93 * + 69 AS col2
----
-211761

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + COALESCE ( + - 33, - 76 / - + 86 ) * - COUNT ( - 17 ) * - 93 * + 69 AS col2
----
-211761

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5427
SELECT 93 DIV + - 93, MAX( + 63 ) * + 66 AS col0
----
-1
4158

skipif mysql # not compatible
query II rowsort label-5427
SELECT 93 / + - 93, MAX ( + 63 ) * + 66 AS col0
----
-1
4158

query I rowsort
SELECT ALL 96 + + 45
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5429
SELECT ALL + ( + 60 ) - - COUNT( * ) + - + 43 * 77 - - + NULLIF ( 18, + 4 * + 17 - + 7 * - CAST( NULL AS SIGNED ) )
----
-3232

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + ( + 60 ) - - COUNT ( * ) + - + 43 * 77 - - + NULLIF ( 18, + 4 * + 17 - + 7 * - CAST ( NULL AS INTEGER ) )
----
-3232

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT 19 DIV - 68 * - - 1 * 28
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT 19 / - 68 * - - 1 * 28
----
0

query I rowsort
SELECT 89 * + 28 * - + 84 AS col2
----
-209328

query I rowsort
SELECT 28 * + 49
----
1372

query I rowsort
SELECT 34 + + 73 + 51 + + 59 AS col2
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT DISTINCT + COUNT( * ) * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + COUNT ( * ) * - 24
----
-24

query I rowsort
SELECT 18 - - 84
----
102

query I rowsort
SELECT DISTINCT 27 AS col2
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-5437
SELECT 28 - + 69 AS col0, 90 DIV + 29 col0
----
-41
3

skipif mysql # not compatible
query II rowsort label-5437
SELECT 28 - + 69 AS col0, 90 / + 29 col0
----
-41
3

query I rowsort
SELECT ALL 29 col0
----
29

query I rowsort
SELECT ALL 65 * - 92
----
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT COUNT( * ) * - 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5440
SELECT COUNT ( * ) * - 99 AS col2
----
-99

query I rowsort
SELECT 14 * + 77 AS col0
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT COUNT( ( - 97 ) ) + - 39 * + - 79 * - + 55
----
-169454

skipif mysql # not compatible
query I rowsort label-5442
SELECT COUNT ( ( - 97 ) ) + - 39 * + - 79 * - + 55
----
-169454

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT CASE + - 89 WHEN 99 THEN NULL WHEN + NULLIF ( + 29, 43 ) - + - ( - ( - - COUNT( * ) ) ) + 46 * - 58 / + 7 - + MAX( 12 ) * ( + MIN( ALL 70 ) ) + + ( 84 ) THEN - 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT CASE + - 89 WHEN 99 THEN NULL WHEN + NULLIF ( + 29, 43 ) - + - ( - ( - - COUNT ( * ) ) ) + 46 * - 58 / + 7 - + MAX ( 12 ) * ( + MIN ( ALL 70 ) ) + + ( 84 ) THEN - 21 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5444
SELECT - 26 / MAX( DISTINCT - 88 ) + + 42 * + 69 + - - 72 + CASE - 83 WHEN 77 THEN NULL WHEN - + 34 THEN + 31 ELSE + CAST( NULL AS SIGNED ) - + - 16 END * - 98 / + MIN( DISTINCT 3 ) + - + 45 AS col2, + 79
----
NULL
79

skipif mysql # not compatible
query II rowsort label-5444
SELECT - 26 / MAX ( DISTINCT - 88 ) + + 42 * + 69 + - - 72 + CASE - 83 WHEN 77 THEN NULL WHEN - + 34 THEN + 31 ELSE + CAST ( NULL AS INTEGER ) - + - 16 END * - 98 / + MIN ( DISTINCT 3 ) + - + 45 AS col2, + 79
----
NULL
79

query II rowsort
SELECT ALL - ( - 25 ), 71 * + - 61 col0
----
25
-4331

query I rowsort
SELECT + 93 * - 84 AS col0
----
-7812

query I rowsort
SELECT ALL - 13 col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + CASE + 17 WHEN 24 * - - COUNT( * ) * - + 76 + + 71 * + COUNT( * ) - + 6 THEN - 58 + 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT + CASE + 17 WHEN 24 * - - COUNT ( * ) * - + 76 + + 71 * + COUNT ( * ) - + 6 THEN - 58 + 67 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - NULLIF ( + + 85, + SUM( + 64 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - NULLIF ( + + 85, + SUM ( + 64 ) )
----
-85

query I rowsort
SELECT DISTINCT - - 89 + + 72 AS col0
----
161

query I rowsort
SELECT 3 + + 7 AS col2
----
10

query I rowsort
SELECT ALL - 94 + 22 + 29 + + 22 * 21
----
419

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5453
SELECT ALL + + 76 * + MIN( + CAST( NULL AS DECIMAL ) ) * + 26 + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + + 76 * + MIN ( + CAST ( NULL AS REAL ) ) * + 26 + 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL - 13 + + 77 - 56 + - CASE + COUNT( ALL 22 ) WHEN - SUM( DISTINCT - 36 ) * + COUNT( * ) + - CAST( - - 50 AS SIGNED ) THEN NULL ELSE 77 END + + + CAST( ( + - 48 ) AS SIGNED ) + + 86 - 87 * + CASE 3 WHEN - 13 + 33 * 21 THEN - 74 * 55 + 48 WHEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + COALESCE ( - 25 * 61, - 51, COUNT( * ), 39 * - 62 ) THEN - 70 ELSE + 51 + + CAST( NULL AS SIGNED ) END * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - 13 + + 77 - 56 + - CASE + COUNT ( ALL 22 ) WHEN - SUM ( DISTINCT - 36 ) * + COUNT ( * ) + - CAST ( - - 50 AS INTEGER ) THEN NULL ELSE 77 END + + + CAST ( ( + - 48 ) AS INTEGER ) + + 86 - 87 * + CASE 3 WHEN - 13 + 33 * 21 THEN - 74 * 55 + 48 WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + COALESCE ( - 25 * 61, - 51, COUNT ( * ), 39 * - 62 ) THEN - 70 ELSE + 51 + + CAST ( NULL AS INTEGER ) END * + 44
----
NULL

query I rowsort
SELECT DISTINCT - + 51
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5456
SELECT - 55 * - 4 * + COUNT( * ) + - 34 DIV 98 + - - COALESCE ( - 91, - - 28 DIV - 30 * + - 25 DIV - CAST( NULL AS SIGNED ) - + + 90 ) + 86
----
215

skipif mysql # not compatible
query I rowsort label-5456
SELECT - 55 * - 4 * + COUNT ( * ) + - 34 / 98 + - - COALESCE ( - 91, - - 28 / - 30 * + - 25 / - CAST ( NULL AS INTEGER ) - + + 90 ) + 86
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + MAX( - 36 ) * - 93 * - + ( - - 9 ) + - + 31 AS col2
----
-30163

skipif mysql # not compatible
query I rowsort label-5457
SELECT + MAX ( - 36 ) * - 93 * - + ( - - 9 ) + - + 31 AS col2
----
-30163

query I rowsort
SELECT 59 * - 93 + - + 80
----
-5567

query I rowsort
SELECT + 9 * + - 22 col0
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL - MIN( ALL CAST( NULL AS SIGNED ) ) + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT - CASE + AVG ( + 64 ) WHEN + 70 * - MAX( 37 ) + 65 + - + 34 THEN NULL ELSE - - 86 + + COUNT( * ) END
----
-87

skipif mysql # not compatible
query I rowsort label-5461
SELECT - CASE + AVG ( + 64 ) WHEN + 70 * - MAX ( 37 ) + 65 + - + 34 THEN NULL ELSE - - 86 + + COUNT ( * ) END
----
-87

query I rowsort
SELECT + - 52 AS col1
----
-52

query I rowsort
SELECT DISTINCT - 50 + - + 35
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL 45 + + 24 + - 97 * + CAST( + 53 AS SIGNED ) col0
----
-5072

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL 45 + + 24 + - 97 * + CAST ( + 53 AS INTEGER ) col0
----
-5072

query I rowsort
SELECT ALL - - ( + ( - 12 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT CAST( NULL AS SIGNED ) * - 71 * NULLIF ( + 43, - 21 ) / - 48 + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT CAST ( NULL AS INTEGER ) * - 71 * NULLIF ( + 43, - 21 ) / - 48 + + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT DISTINCT - 35, - 92 AS col0
----
-35
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL + ( 66 ) - - + COALESCE ( - COUNT( ALL + 99 ), - COUNT( ALL + 64 ) ) * - 25 col2
----
91

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + ( 66 ) - - + COALESCE ( - COUNT ( ALL + 99 ), - COUNT ( ALL + 64 ) ) * - 25 col2
----
91

query I rowsort
SELECT + 55 * 18 * - 47 + - 48 AS col2
----
-46578

query I rowsort
SELECT 93 + + 93 + + 61 + + + 85 * + 43 * + - 8 + + + 14
----
-28979

query I rowsort
SELECT 34 * - + 88
----
-2992

query I rowsort
SELECT 38 + - + 59
----
-21

query I rowsort
SELECT NULLIF ( + + 89, - 96 ) + + - 19
----
70

query I rowsort
SELECT DISTINCT 67 AS col1
----
67

query I rowsort
SELECT 24 * 83
----
1992

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ( - MAX( DISTINCT - ( 4 ) ) ) + 98 - - ( 34 ) * ( + 10 )
----
442

skipif mysql # not compatible
query I rowsort label-5476
SELECT ( - MAX ( DISTINCT - ( 4 ) ) ) + 98 - - ( 34 ) * ( + 10 )
----
442

query II rowsort
SELECT ALL 76 AS col2, + 31 AS col2
----
76
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT 43 DIV - + 38
----
-1

skipif mysql # not compatible
query I rowsort label-5478
SELECT 43 / - + 38
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5479
SELECT ALL 77 DIV + - 65
----
-1

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 77 / + - 65
----
-1

query I rowsort
SELECT 53 + + - 72
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + 59 + + + 84 + + 69 * + ( - COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-5481
SELECT + 59 + + + 84 + + 69 * + ( - COUNT ( * ) )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT DISTINCT + ( + + 14 ) * + + COUNT( * ), + ( - 4 ) * + 41 AS col2
----
14
-164

skipif mysql # not compatible
query II rowsort label-5482
SELECT DISTINCT + ( + + 14 ) * + + COUNT ( * ), + ( - 4 ) * + 41 AS col2
----
14
-164

query I rowsort
SELECT ALL + 8 + - 72
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + 7 * + 87 + + - COUNT( * )
----
608

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 7 * + 87 + + - COUNT ( * )
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT + 38 * - - CASE - + COUNT( DISTINCT + 33 ) WHEN - COUNT( * ) THEN + COUNT( * ) * - - COUNT( * ) DIV - CAST( - 34 AS SIGNED ) WHEN - 45 + 18 THEN + + 90 * - 53 * - 94 WHEN + 54 THEN CASE COUNT( * ) WHEN - ( - CASE + 7 WHEN AVG ( ( + 10 ) ) THEN NULL WHEN SUM( + 47 ) * 77 THEN + 68 + - 19 END ) THEN NULL ELSE - 81 END + + 8 ELSE 56 END DIV 76 + CASE WHEN NOT 45 NOT IN ( 70 * - 77 - + 89 ) THEN + SUM( DISTINCT - 5 ) ELSE 51 DIV 61 + 70 * 13 END AS col0
----
910

skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT + 38 * - - CASE - + COUNT ( DISTINCT + 33 ) WHEN - COUNT ( * ) THEN + COUNT ( * ) * - - COUNT ( * ) / - CAST ( - 34 AS INTEGER ) WHEN - 45 + 18 THEN + + 90 * - 53 * - 94 WHEN + 54 THEN CASE COUNT ( * ) WHEN - ( - CASE + 7 WHEN AVG ( ( + 10 ) ) THEN NULL WHEN SUM ( + 47 ) * 77 THEN + 68 + - 19 END ) THEN NULL ELSE - 81 END + + 8 ELSE 56 END / 76 + CASE WHEN NOT 45 NOT IN ( 70 * - 77 - + 89 ) THEN + SUM ( DISTINCT - 5 ) ELSE 51 / 61 + 70 * 13 END AS col0
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL - 88 * + + 21 + 67 * - 42 + - COUNT( * ) AS col1
----
-4663

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL - 88 * + + 21 + 67 * - 42 + - COUNT ( * ) AS col1
----
-4663

query I rowsort
SELECT - NULLIF ( - 1, 29 ) AS col0
----
1

query I rowsort
SELECT ALL + + 67
----
67

query I rowsort
SELECT - 32 * - 73 + - 82 AS col2
----
2254

query I rowsort
SELECT ALL 90 * + 2
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL - 8 * + 17 + 99 + - 62 * + - 65 - - COUNT( * ) - + 82 * - 39 - - + 11 * + 15 AS col1
----
7357

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - 8 * + 17 + 99 + - 62 * + - 65 - - COUNT ( * ) - + 82 * - 39 - - + 11 * + 15 AS col1
----
7357

query I rowsort
SELECT DISTINCT + + 6 * + 48 AS col0
----
288

query I rowsort
SELECT ALL - 3 * - - 3
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5494
SELECT - SUM( ALL 61 ) DIV - COUNT( * ) col2
----
61

skipif mysql # not compatible
query I rowsort label-5494
SELECT - SUM ( ALL 61 ) / - COUNT ( * ) col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT - COUNT( - - 36 ) * COALESCE ( - 9, CAST( 61 AS SIGNED ) + - 68, + 4 ) + + 88
----
97

skipif mysql # not compatible
query I rowsort label-5495
SELECT - COUNT ( - - 36 ) * COALESCE ( - 9, CAST ( 61 AS INTEGER ) + - 68, + 4 ) + + 88
----
97

query I rowsort
SELECT + 37 + ( + 35 ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT ALL COUNT( * ) DIV - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL COUNT ( * ) / - ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5498
SELECT + COUNT( - 41 ), + 5 + - - NULLIF ( - - 78, + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * - 31 * + 74 + - - 63 * + 84 AS col1
----
1
3081

skipif mysql # not compatible
query II rowsort label-5498
SELECT + COUNT ( - 41 ), + 5 + - - NULLIF ( - - 78, + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * - 31 * + 74 + - - 63 * + 84 AS col1
----
1
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT MIN( - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5499
SELECT MIN ( - 41 ) AS col0
----
-41

query I rowsort
SELECT + 13 + - + 92
----
-79

query I rowsort
SELECT DISTINCT ( + 65 ) col2
----
65

query I rowsort
SELECT ALL ( + + 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5503
SELECT ALL 89 * + + 10 AS col0, + COUNT( * ) + - + 93 - - 64 + + + 67 + 5 + - 26
----
890
18

skipif mysql # not compatible
query II rowsort label-5503
SELECT ALL 89 * + + 10 AS col0, + COUNT ( * ) + - + 93 - - 64 + + + 67 + 5 + - 26
----
890
18

query I rowsort
SELECT + 95 * - 13
----
-1235

onlyif mysql # aggregate syntax: 
query II rowsort label-5505
SELECT ALL 71 AS col1, + CASE - COUNT( DISTINCT 60 ) WHEN - 48 THEN COUNT( - + 78 ) WHEN + + ( - 22 ) THEN NULL END * ( - - 15 )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5505
SELECT ALL 71 AS col1, + CASE - COUNT ( DISTINCT 60 ) WHEN - 48 THEN COUNT ( - + 78 ) WHEN + + ( - 22 ) THEN NULL END * ( - - 15 )
----
71
NULL

query I rowsort
SELECT - ( + 22 )
----
-22

query I rowsort
SELECT - ( 11 ) col0
----
-11

query I rowsort
SELECT + 59 * + 55 AS col1
----
3245

onlyif mysql # DIV for integer division: 
query II rowsort label-5509
SELECT + 65 + - ( + - 53 ) + + - 59 AS col1, 86 DIV 69 AS col2
----
59
1

skipif mysql # not compatible
query II rowsort label-5509
SELECT + 65 + - ( + - 53 ) + + - 59 AS col1, 86 / 69 AS col2
----
59
1

query I rowsort
SELECT - 0 * - 80 * - 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT ( - - COUNT( * ) ) + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT ( - - COUNT ( * ) ) + 1 AS col0
----
2

query I rowsort
SELECT + + 32 * - + 79 + 7 * - 31 AS col2
----
-2745

query I rowsort
SELECT DISTINCT - ( + 56 ) + - 65
----
-121

query I rowsort
SELECT ALL - 84 col0
----
-84

query I rowsort
SELECT DISTINCT + 99 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT ALL - + ( - 81 ) * 65 DIV - 56
----
-94

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL - + ( - 81 ) * 65 / - 56
----
-94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5517
SELECT ALL - 77 + - CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5517
SELECT ALL - 77 + - CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL - 19 + + 68
----
49

query I rowsort
SELECT + - 13 + + 25
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT - - MIN( + 50 ) col1
----
50

skipif mysql # not compatible
query I rowsort label-5520
SELECT - - MIN ( + 50 ) col1
----
50

query I rowsort
SELECT - - 51 col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5522
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT COUNT( * ) + + 73 * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT COUNT ( * ) + + 73 * COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT - 20 AS col2, 32 + - COUNT( * ) AS col0
----
-20
31

skipif mysql # not compatible
query II rowsort label-5524
SELECT - 20 AS col2, 32 + - COUNT ( * ) AS col0
----
-20
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5525
SELECT + - 40 AS col0, MIN( DISTINCT 42 ) col0
----
-40
42

skipif mysql # not compatible
query II rowsort label-5525
SELECT + - 40 AS col0, MIN ( DISTINCT 42 ) col0
----
-40
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT DISTINCT + + 56 AS col0, + ( + MIN( + 81 ) )
----
56
81

skipif mysql # not compatible
query II rowsort label-5526
SELECT DISTINCT + + 56 AS col0, + ( + MIN ( + 81 ) )
----
56
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 20 - - + 50 * + COUNT( * ) * - - 45 * - COUNT( * ) - NULLIF ( - 2, + 98 - - + 76 + + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 20 - - + 50 * + COUNT ( * ) * - - 45 * - COUNT ( * ) - NULLIF ( - 2, + 98 - - + 76 + + 67 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT DISTINCT 67 DIV + ( + 21 ) - + 74 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT 67 / + ( + 21 ) - + 74 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL + + SUM( ALL - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL + + SUM ( ALL - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT + - MIN( DISTINCT + 34 ) DIV + + 82 * - 38 - - 71
----
71

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + - MIN ( DISTINCT + 34 ) / + + 82 * - 38 - - 71
----
71

query I rowsort
SELECT ALL ( - ( + 35 ) ) * + - ( - - 17 )
----
595

onlyif mysql # DIV for integer division: 
query I rowsort label-5532
SELECT ALL - + COALESCE ( - + 42, - 12, - - 5 ) DIV + 77 - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL - + COALESCE ( - + 42, - 12, - - 5 ) / + 77 - 35 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT 20 * - 23 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - ( COUNT( * ) ) + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT 20 * - 23 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( COUNT ( * ) ) + - 92 AS col2
----
NULL

query I rowsort
SELECT ( 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + MAX( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5535
SELECT + MAX ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ( - + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5536
SELECT ( - + ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 8 * - 79 col1
----
632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT 72 * - CAST( - + 30 AS SIGNED ) + 33 * NULLIF ( COUNT( * ), + 64 * - - 1 ) * SUM( - 28 ) * + - 42 AS col0
----
40968

skipif mysql # not compatible
query I rowsort label-5538
SELECT 72 * - CAST ( - + 30 AS INTEGER ) + 33 * NULLIF ( COUNT ( * ), + 64 * - - 1 ) * SUM ( - 28 ) * + - 42 AS col0
----
40968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT DISTINCT + MIN( ( + 0 ) ) * - CAST( NULL AS SIGNED ) + CAST( 6 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + MIN ( ( + 0 ) ) * - CAST ( NULL AS INTEGER ) + CAST ( 6 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - 72 * + + COUNT( * ) + 23 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5540
SELECT - 72 * + + COUNT ( * ) + 23 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT + MAX( ALL - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-5541
SELECT + MAX ( ALL - 20 )
----
-20

query I rowsort
SELECT - 66 + 23 + - - 82 + + - 12
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT CASE - 87 WHEN - + 53 THEN 45 WHEN - 68 + + 65 + + 62 THEN + 20 * - 62 / + + COALESCE ( - - 44, - 52 * - + ( + - 43 ) ) * - ( - NULLIF ( + - CAST( NULL AS SIGNED ), - 96 ) ) WHEN + 14 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT CASE - 87 WHEN - + 53 THEN 45 WHEN - 68 + + 65 + + 62 THEN + 20 * - 62 / + + COALESCE ( - - 44, - 52 * - + ( + - 43 ) ) * - ( - NULLIF ( + - CAST ( NULL AS INTEGER ), - 96 ) ) WHEN + 14 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5544
SELECT DISTINCT - 82 + 58 - + SUM( 42 ) + - 46 - CAST( 22 AS SIGNED ) * - 43 - + 69
----
765

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT - 82 + 58 - + SUM ( 42 ) + - 46 - CAST ( 22 AS INTEGER ) * - 43 - + 69
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT 27 + - MAX( DISTINCT - 80 )
----
107

skipif mysql # not compatible
query I rowsort label-5545
SELECT 27 + - MAX ( DISTINCT - 80 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT 63 + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5546
SELECT 63 + COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5547
SELECT ALL 82 + + + COUNT( * ) AS col0, 10 + - 1 AS col2
----
83
9

skipif mysql # not compatible
query II rowsort label-5547
SELECT ALL 82 + + + COUNT ( * ) AS col0, 10 + - 1 AS col2
----
83
9

query I rowsort
SELECT 53 + + 17
----
70

query I rowsort
SELECT ALL 37 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT DISTINCT - CASE + 17 WHEN - + 95 * - - 72 + + COUNT( * ) - - 94 + - 32 * + COUNT( * ) * 96 * + - 62 / 45 THEN + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT - CASE + 17 WHEN - + 95 * - - 72 + + COUNT ( * ) - - 94 + - 32 * + COUNT ( * ) * 96 * + - 62 / 45 THEN + 96 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5551
SELECT ALL - ( - 56 ) + + CAST( NULL AS SIGNED ) AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5551
SELECT ALL - ( - 56 ) + + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * )
----
NULL
1

query II rowsort
SELECT 19 + 79 AS col2, 78 AS col1
----
98
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + 48 * COUNT( * ) * + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 48 * COUNT ( * ) * + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT - 15 + - - ( 36 ) + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT - 15 + - - ( 36 ) + + COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT 24 + - CAST( NULL AS SIGNED ) * - NULLIF ( - - MAX( CAST( NULL AS SIGNED ) ), 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT 24 + - CAST ( NULL AS INTEGER ) * - NULLIF ( - - MAX ( CAST ( NULL AS INTEGER ) ), 69 ) AS col2
----
NULL

query I rowsort
SELECT - 38 col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT + 14 + - COUNT( * ), 36 col0
----
13
36

skipif mysql # not compatible
query II rowsort label-5557
SELECT + 14 + - COUNT ( * ), 36 col0
----
13
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5558
SELECT + 60 * + 55 * - CASE 54 WHEN - 87 THEN 89 + - + 23 * - 55 + + COUNT( - 30 ) WHEN 10 + + 97 + + + 72 + 45 + NULLIF ( - 89, + 41 ) + + 70 THEN - 63 * + 17 + 27 END * - + ( ( + 47 ) ) + CAST( + 31 AS DECIMAL ) + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT + 60 * + 55 * - CASE 54 WHEN - 87 THEN 89 + - + 23 * - 55 + + COUNT ( - 30 ) WHEN 10 + + 97 + + + 72 + 45 + NULLIF ( - 89, + 41 ) + + 70 THEN - 63 * + 17 + 27 END * - + ( ( + 47 ) ) + CAST ( + 31 AS REAL ) + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5559
SELECT + + ( - 48 ) * - CAST( - COUNT( * ) AS SIGNED ) - 93 + - + 79 + - 63 AS col0, + CAST( NULL AS DECIMAL ) * + - 29 AS col0
----
-283
NULL

skipif mysql # not compatible
query II rowsort label-5559
SELECT + + ( - 48 ) * - CAST ( - COUNT ( * ) AS INTEGER ) - 93 + - + 79 + - 63 AS col0, + CAST ( NULL AS REAL ) * + - 29 AS col0
----
-283
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT CASE + 75 WHEN + - 22 THEN - - 50 + 73 WHEN - - COUNT( 21 ) THEN NULL END + - 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT CASE + 75 WHEN + - 22 THEN - - 50 + 73 WHEN - - COUNT ( 21 ) THEN NULL END + - 24 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT ALL - 38 * + ( CAST( - 32 AS SIGNED ) ) * - 89
----
-108224

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL - 38 * + ( CAST ( - 32 AS INTEGER ) ) * - 89
----
-108224

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT DISTINCT 56 * 60 DIV 81 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT 56 * 60 / 81 AS col0
----
41

query II rowsort
SELECT + 39 AS col2, - 3 AS col1
----
39
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5564
SELECT - 62 * + 68 + COUNT( * ), - 40 col0
----
-4215
-40

skipif mysql # not compatible
query II rowsort label-5564
SELECT - 62 * + 68 + COUNT ( * ), - 40 col0
----
-4215
-40

query I rowsort
SELECT ALL 90 * 42
----
3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT NULLIF ( 52, + 48 ) + 13 * - 94 + 25 + + 18 + + + COUNT( * ) * 87 - - MAX( DISTINCT 74 ) + + + 60 + + COUNT( * ) + + 22 DIV + + 72 AS col2
----
-905

skipif mysql # not compatible
query I rowsort label-5566
SELECT NULLIF ( 52, + 48 ) + 13 * - 94 + 25 + + 18 + + + COUNT ( * ) * 87 - - MAX ( DISTINCT 74 ) + + + 60 + + COUNT ( * ) + + 22 / + + 72 AS col2
----
-905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5567
SELECT DISTINCT COUNT( * ) + COUNT( * ) + - + 1 * ( - 68 ) * - - ( + + 41 ) + 31 - + - ( + - 90 ) + + CAST( NULL AS SIGNED ) + + COUNT( * ) * + + AVG ( - - 40 ) * - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - + 1 * ( - 68 ) * - - ( + + 41 ) + 31 - + - ( + - 90 ) + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + + AVG ( - - 40 ) * - 79 AS col2
----
NULL

query I rowsort
SELECT ALL 84 + 61 AS col2
----
145

onlyif mysql # DIV for integer division: 
query II rowsort label-5569
SELECT ALL - NULLIF ( - 14, - - 88 ), - 28 DIV + - 19 AS col0
----
14
1

skipif mysql # not compatible
query II rowsort label-5569
SELECT ALL - NULLIF ( - 14, - - 88 ), - 28 / + - 19 AS col0
----
14
1

query I rowsort
SELECT 37 * - - 26 * + - ( 72 ) * + + 7 + - 31 AS col0
----
-484879

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5571
SELECT ALL SUM( COALESCE ( + 42, - - 0 * + 78 DIV + 34, 51 ) ) + - 58
----
-16

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL SUM ( COALESCE ( + 42, - - 0 * + 78 / + 34, 51 ) ) + - 58
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL - SUM( DISTINCT 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - SUM ( DISTINCT 21 )
----
-21

query I rowsort
SELECT 27 * 13 * 96
----
33696

query I rowsort
SELECT 63 + - + ( 17 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT 40 AS col2, 57 * 49 * ( + 7 ) + - - COUNT( * ) + + 41 col2
----
40
19593

skipif mysql # not compatible
query II rowsort label-5575
SELECT 40 AS col2, 57 * 49 * ( + 7 ) + - - COUNT ( * ) + + 41 col2
----
40
19593

query I rowsort
SELECT DISTINCT + 33 + + 26 + - 24 - + 83 + 62 * - 28 * + 40 AS col1
----
-69488

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL + 6 * - MIN( DISTINCT + 59 ) AS col2
----
-354

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + 6 * - MIN ( DISTINCT + 59 ) AS col2
----
-354

query I rowsort
SELECT DISTINCT + 33 * - 27
----
-891

query I rowsort
SELECT ALL - ( - - 81 ) + + 74 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5580
SELECT 35, COUNT( * ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-5580
SELECT 35, COUNT ( * ) AS col2
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + 77 + + COALESCE ( ( + + 11 ), + - 65, - 57 * - COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + 77 + + COALESCE ( ( + + 11 ), + - 65, - 57 * - COUNT ( * ) )
----
88

query I rowsort
SELECT - 54 - + ( - 8 ) + + - 16 * 35 AS col0
----
-606

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT 1 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5583
SELECT 1 * COUNT ( * )
----
1

query I rowsort
SELECT - + CASE 11 WHEN - 88 / + 23 THEN NULL WHEN 96 THEN - 95 * + - 74 + + - 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT COUNT( * ) + + COUNT( * ) * + 74 * + + COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5585
SELECT COUNT ( * ) + + COUNT ( * ) * + 74 * + + COUNT ( * ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - 37 * - + NULLIF ( + 43, MIN( - - 81 ) )
----
1591

skipif mysql # not compatible
query I rowsort label-5586
SELECT - 37 * - + NULLIF ( + 43, MIN ( - - 81 ) )
----
1591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT ALL 29 DIV - + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL 29 / - + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT - COUNT( - 80 ) - 69
----
-70

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - COUNT ( - 80 ) - 69
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5590
SELECT CAST( + CASE MIN( 72 ) WHEN - 83 THEN - 3 WHEN - ( 11 ) THEN NULL ELSE NULL END AS SIGNED ) - - - 9 AS col2, 39 DIV + 2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-5590
SELECT CAST ( + CASE MIN ( 72 ) WHEN - 83 THEN - 3 WHEN - ( 11 ) THEN NULL ELSE NULL END AS INTEGER ) - - - 9 AS col2, 39 / + 2
----
NULL
19

query II rowsort
SELECT DISTINCT 11, - 71 AS col0
----
11
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5592
SELECT ALL + 47 AS col0, - COUNT( * ) AS col2
----
47
-1

skipif mysql # not compatible
query II rowsort label-5592
SELECT ALL + 47 AS col0, - COUNT ( * ) AS col2
----
47
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT ALL - 62, + 80 * - COUNT( * ) + + + 49 - 75 AS col0
----
-62
-106

skipif mysql # not compatible
query II rowsort label-5593
SELECT ALL - 62, + 80 * - COUNT ( * ) + + + 49 - 75 AS col0
----
-62
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT 49 * SUM( DISTINCT - 5 ) * + 63 AS col2
----
-15435

skipif mysql # not compatible
query I rowsort label-5594
SELECT 49 * SUM ( DISTINCT - 5 ) * + 63 AS col2
----
-15435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT 52 + - 17 DIV COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5595
SELECT 52 + - 17 / COUNT ( * )
----
35

query I rowsort
SELECT - - 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT - + COUNT( * ) AS col2, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-5597
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT COUNT( * ) - - 80 - + 67 AS col0, 95
----
14
95

skipif mysql # not compatible
query II rowsort label-5598
SELECT COUNT ( * ) - - 80 - + 67 AS col0, 95
----
14
95

query I rowsort
SELECT 72 * + 41 AS col1
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL - 93 * NULLIF ( MIN( + 15 ), + 58 ) AS col0
----
-1395

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - 93 * NULLIF ( MIN ( + 15 ), + 58 ) AS col0
----
-1395

query I rowsort
SELECT ALL - - 53 * - 63 + + 13 * 82 - - 99 col1
----
-2174

query I rowsort
SELECT DISTINCT - 18 * - NULLIF ( ( - 85 ), + 24 ) + - COALESCE ( + 97, - 41 * 6 + + 13 + + - 98 ) * 92 * + 14
----
-126466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT DISTINCT CAST( NULL AS SIGNED ) / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 96
----
NULL

query I rowsort
SELECT ALL + 85 * + 99 * 79 * - 63 + + + ( - 55 ) * + 88 AS col0
----
-41886295

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT 37 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-5605
SELECT 37 / + + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + 72 * + NULLIF ( - + 98, - COUNT( * ) ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-5606
SELECT + 72 * + NULLIF ( - + 98, - COUNT ( * ) ) * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT ALL 78 DIV - 19
----
-4

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL 78 / - 19
----
-4

query I rowsort
SELECT + 19 + - 98 * - 90
----
8839

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT - 24 DIV 15 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5609
SELECT - 24 / 15 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL - 70 * - 2 * - 33 + - + COUNT( * )
----
-4621

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL - 70 * - 2 * - 33 + - + COUNT ( * )
----
-4621

query I rowsort
SELECT + 36 * - 94
----
-3384

query I rowsort
SELECT ALL 0 * - 89 + + + 11
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT + COALESCE ( - - 40, - + 20 DIV - 14 * 18 )
----
40

skipif mysql # not compatible
query I rowsort label-5613
SELECT + COALESCE ( - - 40, - + 20 / - 14 * 18 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL CAST( + + ( - 63 ) AS SIGNED ) - - + 83
----
20

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL CAST ( + + ( - 63 ) AS INTEGER ) - - + 83
----
20

query I rowsort
SELECT + 81 col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5616
SELECT + + 71 * - + MAX( ALL 12 ) + 53 AS col2, - ( - + MIN( - 82 ) ) AS col0
----
-799
-82

skipif mysql # not compatible
query II rowsort label-5616
SELECT + + 71 * - + MAX ( ALL 12 ) + 53 AS col2, - ( - + MIN ( - 82 ) ) AS col0
----
-799
-82

query I rowsort
SELECT - + 20 + - + ( + - 41 ) AS col0
----
21

query I rowsort
SELECT + + 9 * - + 46
----
-414

onlyif mysql # aggregate syntax: 
query II rowsort label-5619
SELECT ALL - 40 - + 83 * 1 + + 6 col1, + COUNT( * ) * - 79 AS col0
----
-117
-79

skipif mysql # not compatible
query II rowsort label-5619
SELECT ALL - 40 - + 83 * 1 + + 6 col1, + COUNT ( * ) * - 79 AS col0
----
-117
-79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5620
SELECT - CAST( - 38 AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT - CAST ( - 38 AS INTEGER ) + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5621
SELECT DISTINCT - COALESCE ( - 70, 80 ) DIV + COALESCE ( - COUNT( * ), - 68 ) + + COUNT( * ) AS col0, 10 AS col2
----
-69
10

skipif mysql # not compatible
query II rowsort label-5621
SELECT DISTINCT - COALESCE ( - 70, 80 ) / + COALESCE ( - COUNT ( * ), - 68 ) + + COUNT ( * ) AS col0, 10 AS col2
----
-69
10

query I rowsort
SELECT ALL - ( - 53 )
----
53

query II rowsort
SELECT ALL - 5 * 72, + 11 AS col2
----
-360
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5624
SELECT - - 94 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-5624
SELECT - - 94 / + 59
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + - 82 + - 5 + - + 49 - + - 81 * + + MIN( ALL + 25 )
----
1889

skipif mysql # not compatible
query I rowsort label-5625
SELECT + - 82 + - 5 + - + 49 - + - 81 * + + MIN ( ALL + 25 )
----
1889

query I rowsort
SELECT ALL - ( - ( + 76 ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT - - NULLIF ( + COUNT( * ), 68 ) * + + 32 - - COUNT( * ) AS col2, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-5627
SELECT - - NULLIF ( + COUNT ( * ), 68 ) * + + 32 - - COUNT ( * ) AS col2, COUNT ( * )
----
33
1

query II rowsort
SELECT - - 44 + 97, 85 col1
----
141
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT + 60 * + 52 DIV + - COUNT( * )
----
-3120

skipif mysql # not compatible
query I rowsort label-5629
SELECT + 60 * + 52 / + - COUNT ( * )
----
-3120

query I rowsort
SELECT ALL - + 85 + 36 * 36 AS col2
----
1211

query II rowsort
SELECT DISTINCT CASE 14 WHEN 54 THEN NULL ELSE 76 END AS col1, - 28 AS col2
----
76
-28

query I rowsort
SELECT DISTINCT + - 55 + + - 59
----
-114

query I rowsort
SELECT - 79 + + 80
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT ALL + NULLIF ( - AVG ( - 48 ), - + 72 * - SUM( DISTINCT - ( - + 46 ) ) ) / + 71 - - CASE 98 WHEN + 78 * + 75 * - - COUNT( * ) * - 56 THEN - + COUNT( * ) * + + COALESCE ( - + 71, - - ( - - MAX( ALL + 48 ) ), - + 71 / - - CAST( NULL AS SIGNED ) / - 50 ) END + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + NULLIF ( - AVG ( - 48 ), - + 72 * - SUM ( DISTINCT - ( - + 46 ) ) ) / + 71 - - CASE 98 WHEN + 78 * + 75 * - - COUNT ( * ) * - 56 THEN - + COUNT ( * ) * + + COALESCE ( - + 71, - - ( - - MAX ( ALL + 48 ) ), - + 71 / - - CAST ( NULL AS INTEGER ) / - 50 ) END + - 12
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5635
SELECT DISTINCT - 58 DIV 39 * - 0 * - COUNT( * ) + + 90 + + MAX( DISTINCT - + 25 )
----
65

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - 58 / 39 * - 0 * - COUNT ( * ) + + 90 + + MAX ( DISTINCT - + 25 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5636
SELECT COUNT( * ) DIV - - 34 + - 95 - ( + CAST( + 94 AS SIGNED ) ) * + 6 + + ( + - 7 ) + - ( - 71 ) - 49 * - + 12 * + - 23 * + - 54 col2
----
729701

skipif mysql # not compatible
query I rowsort label-5636
SELECT COUNT ( * ) / - - 34 + - 95 - ( + CAST ( + 94 AS INTEGER ) ) * + 6 + + ( + - 7 ) + - ( - 71 ) - 49 * - + 12 * + - 23 * + - 54 col2
----
729701

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL - SUM( + + 53 ) * + ( - 64 ) AS col2
----
3392

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL - SUM ( + + 53 ) * + ( - 64 ) AS col2
----
3392

query I rowsort
SELECT - 43 * 47 AS col2
----
-2021

query I rowsort
SELECT + 49 + + 86 AS col1
----
135

query I rowsort
SELECT + 9 * - 39 + - 52 AS col2
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + MAX( 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5641
SELECT + MAX ( 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - 51 * COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - 51 * COUNT ( * )
----
-51

query I rowsort
SELECT + 13 * - 77
----
-1001

query I rowsort
SELECT ALL + ( 44 ) AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT ALL 59 DIV - - 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL 59 / - - 43 AS col2
----
1

query I rowsort
SELECT COALESCE ( - 66, - 46, - 50 ) col2
----
-66

query I rowsort
SELECT + ( - + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5648
SELECT + COUNT ( * ) + + COUNT ( * )
----
2

query I rowsort
SELECT + 47 * 67
----
3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5650
SELECT + CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5650
SELECT + CAST ( COUNT ( * ) AS INTEGER )
----
1

query II rowsort
SELECT ALL + 74 AS col2, + 19 AS col2
----
74
19

query I rowsort
SELECT + 58 * - + 21 AS col0
----
-1218

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT ALL 32 DIV 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL 32 / 22 AS col1
----
1

query I rowsort
SELECT + - 63 AS col0
----
-63

query I rowsort
SELECT DISTINCT ( ( 90 ) ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL - COUNT( * ) * + 16 * - 22 AS col2
----
352

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - COUNT ( * ) * + 16 * - 22 AS col2
----
352

query I rowsort
SELECT - + 56 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL + SUM( - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + SUM ( - 13 ) AS col0
----
-13

query I rowsort
SELECT DISTINCT 73 * - + 86
----
-6278

query I rowsort
SELECT + 61 * + 58 AS col0
----
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - COUNT( * ) + - + 14
----
-15

skipif mysql # not compatible
query I rowsort label-5661
SELECT - COUNT ( * ) + - + 14
----
-15

query I rowsort
SELECT ALL + 51 + - - COALESCE ( 18, - + 81 ) AS col1
----
69

query II rowsort
SELECT - 52, + 84 col1
----
-52
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL MIN( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL MIN ( DISTINCT - 45 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5665
SELECT DISTINCT ( + + COALESCE ( + 46, - MIN( + 72 ) DIV - 37 ) ) + + 81
----
127

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT ( + + COALESCE ( + 46, - MIN ( + 72 ) / - 37 ) ) + + 81
----
127

query I rowsort
SELECT - 1 - 30 col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL + 1 + - 0 * - COUNT( * ) * 58
----
1

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + 1 + - 0 * - COUNT ( * ) * 58
----
1

query I rowsort
SELECT DISTINCT - 43 + + COALESCE ( + 64, + 6 + 2, 14 ) col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT - 15 - - SUM( - 76 ) * + 39
----
-2979

skipif mysql # not compatible
query I rowsort label-5669
SELECT - 15 - - SUM ( - 76 ) * + 39
----
-2979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5670
SELECT ALL + COUNT( * ) DIV - 39 * + - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + COUNT ( * ) / - 39 * + - 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5671
SELECT ( - + COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT ALL - 10 + - + 9 + SUM( + 72 ) * - - 31 col0, 92 + 22
----
2213
114

skipif mysql # not compatible
query II rowsort label-5672
SELECT ALL - 10 + - + 9 + SUM ( + 72 ) * - - 31 col0, 92 + 22
----
2213
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5673
SELECT DISTINCT - 36 * CASE - - 9 WHEN + 15 * - 50 * - 20 / - - 67 * - 52 THEN 22 + - - 94 * - MIN( DISTINCT + 13 ) WHEN 53 + 2 THEN NULL ELSE NULL END AS col0, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-5673
SELECT DISTINCT - 36 * CASE - - 9 WHEN + 15 * - 50 * - 20 / - - 67 * - 52 THEN 22 + - - 94 * - MIN ( DISTINCT + 13 ) WHEN 53 + 2 THEN NULL ELSE NULL END AS col0, + 91
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5674
SELECT - 90, 78 + - 90 * - CASE + + ( + ( - 77 ) ) WHEN - COUNT( * ) THEN + - NULLIF ( - + COUNT( * ), - - 10 + 18 + - ( CAST( NULL AS SIGNED ) ) * + - COUNT( * ) ) + + 41 + - CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-5674
SELECT - 90, 78 + - 90 * - CASE + + ( + ( - 77 ) ) WHEN - COUNT ( * ) THEN + - NULLIF ( - + COUNT ( * ), - - 10 + 18 + - ( CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) ) + + 41 + - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT COUNT( * ) + + COUNT( ALL - 38 ) - ( + 81 )
----
-79

skipif mysql # not compatible
query I rowsort label-5675
SELECT COUNT ( * ) + + COUNT ( ALL - 38 ) - ( + 81 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL - COUNT( * ) * + ( + + 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - COUNT ( * ) * + ( + + 42 ) AS col1
----
-42

query I rowsort
SELECT 34 - + 8
----
26

query I rowsort
SELECT DISTINCT 43 * + 43 * - 53
----
-97997

onlyif mysql # aggregate syntax: 
query II rowsort label-5679
SELECT + 8, + COALESCE ( 30, 28, + + MIN( 19 ), + COUNT( * ) ) AS col2
----
8
30

skipif mysql # not compatible
query II rowsort label-5679
SELECT + 8, + COALESCE ( 30, 28, + + MIN ( 19 ), + COUNT ( * ) ) AS col2
----
8
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5680
SELECT ALL - 17 AS col2, - 13 * - COUNT( * )
----
-17
13

skipif mysql # not compatible
query II rowsort label-5680
SELECT ALL - 17 AS col2, - 13 * - COUNT ( * )
----
-17
13

query II rowsort
SELECT + 11 col2, 70 * - CASE NULLIF ( - + 91, 67 ) WHEN + 79 THEN AVG ( - 65 ) ELSE NULL END - + 3 AS col1
----
11
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT ALL - CAST( NULL AS SIGNED ) - 75 + - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - CAST ( NULL AS INTEGER ) - 75 + - 70 AS col2
----
NULL

query II rowsort
SELECT 37 AS col0, 29 * - 72 * - 12 * - - ( - 26 )
----
37
-651456

query II rowsort
SELECT ALL 77 - - 1 AS col2, - 84
----
78
-84

query I rowsort
SELECT 36 * + 54 AS col1
----
1944

query I rowsort
SELECT 83 * 1 + 56 + - 68 * - + 96
----
6667

query III rowsort
SELECT 78 - - 39 AS col2, ( - - 41 ), + 89 AS col1
----
117
41
89

query I rowsort
SELECT ALL - ( + 44 )
----
-44

query I rowsort
SELECT 52 + 5 AS col1
----
57

query II rowsort
SELECT + 77 AS col0, 60
----
77
60

query I rowsort
SELECT 62 + 9 AS col2
----
71

query II rowsort
SELECT + 32 AS col1, 20
----
32
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5693
SELECT ALL 17 * - 60 DIV COUNT( * ) AS col0
----
-1020

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL 17 * - 60 / COUNT ( * ) AS col0
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-5694
SELECT ALL - 11 * + - 93 DIV - 87
----
-11

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL - 11 * + - 93 / - 87
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT DISTINCT - 39, NULLIF ( NULLIF ( - 13, - + 62 ), 19 ) - + 16 + - 51 + - + COALESCE ( - 22, - - 31 ) + + COUNT( * ) * + + 89 AS col1
----
-39
31

skipif mysql # not compatible
query II rowsort label-5695
SELECT DISTINCT - 39, NULLIF ( NULLIF ( - 13, - + 62 ), 19 ) - + 16 + - 51 + - + COALESCE ( - 22, - - 31 ) + + COUNT ( * ) * + + 89 AS col1
----
-39
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5696
SELECT DISTINCT - + 68 * - 95 - - COUNT( * ) + + - CAST( NULL AS SIGNED ) col0, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5696
SELECT DISTINCT - + 68 * - 95 - - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) col0, 41
----
NULL
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5697
SELECT ALL - 19 AS col1, + CAST( + 53 AS SIGNED ) + 94 + + 75 col0
----
-19
222

skipif mysql # not compatible
query II rowsort label-5697
SELECT ALL - 19 AS col1, + CAST ( + 53 AS INTEGER ) + 94 + + 75 col0
----
-19
222

query I rowsort
SELECT ALL - + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5699
SELECT DISTINCT - COUNT( * ), - COUNT( * ) DIV 3 + + + 35 * - 99 * - + 80 col2
----
-1
277200

skipif mysql # not compatible
query II rowsort label-5699
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) / 3 + + + 35 * - 99 * - + 80 col2
----
-1
277200

query I rowsort
SELECT + 83 + + 47
----
130

query II rowsort
SELECT ALL - - 22 AS col2, 25 + - 72
----
22
-47

query I rowsort
SELECT + - 55 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL + 88 + - 93 * - + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + 88 + - 93 * - + COUNT ( * )
----
181

query I rowsort
SELECT 57 * + ( 1 ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT 88 DIV + COALESCE ( COALESCE ( - + 55, 56, - + 98 ), + NULLIF ( - - 70, 65 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5705
SELECT 88 / + COALESCE ( COALESCE ( - + 55, 56, - + 98 ), + NULLIF ( - - 70, 65 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT - ( 68 ) + - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - ( 68 ) + - COUNT ( * ) AS col0
----
-69

query II rowsort
SELECT - 58, ( - 26 ) col1
----
-58
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - - 69 * - + 93 + + - COUNT( * ) + COUNT( * ) * + 0 AS col1
----
-6418

skipif mysql # not compatible
query I rowsort label-5708
SELECT - - 69 * - + 93 + + - COUNT ( * ) + COUNT ( * ) * + 0 AS col1
----
-6418

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL COUNT( * ) + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL COUNT ( * ) + - 35
----
-34

query I rowsort
SELECT ALL + 31 * 73 AS col0
----
2263

query I rowsort
SELECT 57 * - 83 AS col2
----
-4731

query I rowsort
SELECT DISTINCT 64 + 38
----
102

query I rowsort
SELECT DISTINCT 34 + + 27 AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT DISTINCT - 3 * - COALESCE ( ( + 31 ), + 56 * + 67 DIV + - COUNT( * ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - 3 * - COALESCE ( ( + 31 ), + 56 * + 67 / + - COUNT ( * ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT DISTINCT + + 17 + + COUNT( DISTINCT 94 ) * + + 84 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + + 17 + + COUNT ( DISTINCT 94 ) * + + 84 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT DISTINCT 87 AS col0, COUNT( * ) - + COUNT( + + 62 )
----
87
0

skipif mysql # not compatible
query II rowsort label-5716
SELECT DISTINCT 87 AS col0, COUNT ( * ) - + COUNT ( + + 62 )
----
87
0

query I rowsort
SELECT ALL 91 * - 75 AS col0
----
-6825

query I rowsort
SELECT 37 + - - 27 * - ( + 94 )
----
-2501

query I rowsort
SELECT - 31 AS col2
----
-31

query I rowsort
SELECT ( + 17 ) + 62
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT DISTINCT CAST( - - 66 AS SIGNED ) + 38 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT CAST ( - - 66 AS INTEGER ) + 38 AS col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT DISTINCT - 5 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - 5 / 65 AS col2
----
0

query I rowsort
SELECT DISTINCT 49 AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT DISTINCT 19 - 9 + + CAST( - 15 AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT 19 - 9 + + CAST ( - 15 AS INTEGER ) AS col0
----
-5

query I rowsort
SELECT DISTINCT + 78 - 52
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT NULLIF ( 60, - - 70 + - + MAX( ALL - + 79 ) ) * - - 21 AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-5726
SELECT NULLIF ( 60, - - 70 + - + MAX ( ALL - + 79 ) ) * - - 21 AS col0
----
1260

query I rowsort
SELECT 72 * + 66
----
4752

query I rowsort
SELECT ALL + 88 * + 69 AS col1
----
6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5729
SELECT DISTINCT - COALESCE ( - + COUNT( * ), + + 26, - + ( - 6 ) DIV + - 76 - COUNT( * ) ), 84 AS col2
----
1
84

skipif mysql # not compatible
query II rowsort label-5729
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), + + 26, - + ( - 6 ) / + - 76 - COUNT ( * ) ), 84 AS col2
----
1
84

query I rowsort
SELECT 59 * NULLIF ( 7, - 64 )
----
413

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT 62 * COUNT( * ), 65 AS col1
----
62
65

skipif mysql # not compatible
query II rowsort label-5731
SELECT 62 * COUNT ( * ), 65 AS col1
----
62
65

query I rowsort
SELECT ALL 88 * + 59 AS col1
----
5192

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT ALL + - ( - + 1 ) DIV + - 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL + - ( - + 1 ) / + - 31 AS col0
----
0

query II rowsort
SELECT 93 * + 6, 29 * - 37 * + 60 + + NULLIF ( + + 27, - + ( 12 ) ) AS col0
----
558
-64353

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT + 82 * + + 48 - + - 7 + 61 * - COUNT( * ) * + 51
----
832

skipif mysql # not compatible
query I rowsort label-5735
SELECT + 82 * + + 48 - + - 7 + 61 * - COUNT ( * ) * + 51
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5736
SELECT + - COUNT ( * ) col1
----
-1

query I rowsort
SELECT ALL - + 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL + COUNT( * ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + COUNT ( * ) + - 97
----
-96

query II rowsort
SELECT DISTINCT - CASE + 5 WHEN AVG ( + 98 ) - ( - 97 ) + + 72 THEN + 97 + 85 END + + 26 AS col0, + 75 * 40 * - 38
----
NULL
-114000

query II rowsort
SELECT + ( 71 ) AS col2, + COALESCE ( - + COALESCE ( - 97, + 3 ), + ( 36 ) )
----
71
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT MAX( 85 ) * ( + - 3 )
----
-255

skipif mysql # not compatible
query I rowsort label-5741
SELECT MAX ( 85 ) * ( + - 3 )
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5742
SELECT + 3 * - CAST( CASE + + COALESCE ( - NULLIF ( 75, + + COUNT( * ) + 96 * + ( + + CASE 68 WHEN + - 17 THEN NULL WHEN + 59 THEN + 45 ELSE - 15 END ) ), 67 + - + 36 + + 21 ) WHEN 40 THEN NULL WHEN MAX( ALL + 47 ) * - - 78 + + + COUNT( * ) THEN + + ( + 92 ) * 68 * + + 81 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT + 3 * - CAST ( CASE + + COALESCE ( - NULLIF ( 75, + + COUNT ( * ) + 96 * + ( + + CASE 68 WHEN + - 17 THEN NULL WHEN + 59 THEN + 45 ELSE - 15 END ) ), 67 + - + 36 + + 21 ) WHEN 40 THEN NULL WHEN MAX ( ALL + 47 ) * - - 78 + + + COUNT ( * ) THEN + + ( + 92 ) * 68 * + + 81 END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 46, 6 * - + 47 ) + - - 99
----
145

query I rowsort
SELECT DISTINCT - - 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL - - MAX( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - - MAX ( DISTINCT - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT + 70 * - + 44 + + 15 * - COALESCE ( - 77, + COUNT( * ) * + - 47 ) * - 54 AS col2
----
-65450

skipif mysql # not compatible
query I rowsort label-5746
SELECT + 70 * - + 44 + + 15 * - COALESCE ( - 77, + COUNT ( * ) * + - 47 ) * - 54 AS col2
----
-65450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT - - 64 * COALESCE ( 34, + CAST( - 57 AS SIGNED ) + - 93 ) + 22 + 25
----
2223

skipif mysql # not compatible
query I rowsort label-5747
SELECT - - 64 * COALESCE ( 34, + CAST ( - 57 AS INTEGER ) + - 93 ) + 22 + 25
----
2223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT - + NULLIF ( 54, - - NULLIF ( - NULLIF ( + ( + 14 ), + 32 * 18 ), + - CAST( + - 77 AS SIGNED ) ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5748
SELECT - + NULLIF ( 54, - - NULLIF ( - NULLIF ( + ( + 14 ), + 32 * 18 ), + - CAST ( + - 77 AS INTEGER ) ) ) AS col0
----
-54

query II rowsort
SELECT - 50 + - + 78, - 53 * - 0 AS col0
----
-128
0

query I rowsort
SELECT - CASE + 55 WHEN - 4 + 3 THEN - 38 + + 56 ELSE + 23 END
----
-23

query I rowsort
SELECT + - 13 + - 6
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5752
SELECT DISTINCT - COUNT( * ) - + + 18 * - - 42 + - - 99 - ( 43 ) DIV COALESCE ( + + 52, 73 + + - NULLIF ( + ( + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) * - + 76 * - 92 ) ), + 27 DIV + + 32 * - AVG ( - + 95 ) + - - 50 * + 13 * - 66 + CAST( NULL AS SIGNED ) + - 41 ) ) * 84 AS col1
----
-658

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - COUNT ( * ) - + + 18 * - - 42 + - - 99 - ( 43 ) / COALESCE ( + + 52, 73 + + - NULLIF ( + ( + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - + 76 * - 92 ) ), + 27 / + + 32 * - AVG ( - + 95 ) + - - 50 * + 13 * - 66 + CAST ( NULL AS INTEGER ) + - 41 ) ) * 84 AS col1
----
-658

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5753
SELECT ALL CAST( NULL AS DECIMAL ) / + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL CAST ( NULL AS REAL ) / + 46 AS col1
----
NULL

query I rowsort
SELECT - 20 * + 6 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT + NULLIF ( 7, 69 * + 15 ) + + ( + SUM( DISTINCT - - 32 ) )
----
39

skipif mysql # not compatible
query I rowsort label-5755
SELECT + NULLIF ( 7, 69 * + 15 ) + + ( + SUM ( DISTINCT - - 32 ) )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5756
SELECT 84, 40 * COUNT( * ) * COUNT( * ) DIV + 57 * + 72 + 0 + 52 AS col0
----
84
52

skipif mysql # not compatible
query II rowsort label-5756
SELECT 84, 40 * COUNT ( * ) * COUNT ( * ) / + 57 * + 72 + 0 + 52 AS col0
----
84
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5757
SELECT - COUNT( * ), CAST( NULL AS DECIMAL ) + - 12 * - - 46 / + ( 35 ) - - 69 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5757
SELECT - COUNT ( * ), CAST ( NULL AS REAL ) + - 12 * - - 46 / + ( 35 ) - - 69 col1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT ALL 8 * - NULLIF ( ( 48 ), - 41 - + NULLIF ( - COALESCE ( + 85, + 94 * - 72, - + CAST( NULL AS SIGNED ), - 72 ), + 79 + - 57 ) + + NULLIF ( + - 61, - - 72 * - 49 ) ) AS col1
----
-384

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL 8 * - NULLIF ( ( 48 ), - 41 - + NULLIF ( - COALESCE ( + 85, + 94 * - 72, - + CAST ( NULL AS INTEGER ), - 72 ), + 79 + - 57 ) + + NULLIF ( + - 61, - - 72 * - 49 ) ) AS col1
----
-384

query I rowsort
SELECT DISTINCT 66 * + 46
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT - MIN( ALL + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-5760
SELECT - MIN ( ALL + 28 )
----
-28

query I rowsort
SELECT DISTINCT 1 - + 55
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL CASE 38 WHEN - - ( 32 ) * + + 33 + - - 5 THEN 35 / 80 + + 5 WHEN + - 84 + + 52 / - 61 + + + ( + 56 ) / - AVG ( ALL 88 ) THEN - ( 75 ) - 69 / - COALESCE ( - 39, - 91, - - 53 + 49 ) END * 79 * + 67 * - - CAST( NULL AS SIGNED ) + + SUM( - 40 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL CASE 38 WHEN - - ( 32 ) * + + 33 + - - 5 THEN 35 / 80 + + 5 WHEN + - 84 + + 52 / - 61 + + + ( + 56 ) / - AVG ( ALL 88 ) THEN - ( 75 ) - 69 / - COALESCE ( - 39, - 91, - - 53 + 49 ) END * 79 * + 67 * - - CAST ( NULL AS INTEGER ) + + SUM ( - 40 ) * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT - 78 - + 31 * 86 * 58 DIV - 29 + - 27
----
5227

skipif mysql # not compatible
query I rowsort label-5763
SELECT - 78 - + 31 * 86 * 58 / - 29 + - 27
----
5227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5764
SELECT + NULLIF ( + 70, 88 + + CAST( - - 15 AS SIGNED ) * + MAX( - 99 ) ) * + + 50 * - - 71, - CASE 84 WHEN - SUM( - 66 ) THEN + 9 ELSE - 3 + SUM( 18 ) + - 4 + - + 86 * - 93 + - 58 * - - MAX( + - 28 ) - + + NULLIF ( + 68, - - 68 + 23 * + COALESCE ( 61, + COUNT( 85 ) ) ) END AS col2
----
248500
-9565

skipif mysql # not compatible
query II rowsort label-5764
SELECT + NULLIF ( + 70, 88 + + CAST ( - - 15 AS INTEGER ) * + MAX ( - 99 ) ) * + + 50 * - - 71, - CASE 84 WHEN - SUM ( - 66 ) THEN + 9 ELSE - 3 + SUM ( 18 ) + - 4 + - + 86 * - 93 + - 58 * - - MAX ( + - 28 ) - + + NULLIF ( + 68, - - 68 + 23 * + COALESCE ( 61, + COUNT ( 85 ) ) ) END AS col2
----
248500
-9565

query II rowsort
SELECT 62 AS col1, 92 * + 91 AS col1
----
62
8372

query I rowsort
SELECT - ( + - 93 ) AS col0
----
93

query III rowsort
SELECT DISTINCT + 0 AS col1, 27 + + + COALESCE ( + 1, 62 ) * + - 87 AS col0, + NULLIF ( 76, 57 ) + + 60
----
0
-60
136

query I rowsort
SELECT + ( - 72 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5769
SELECT DISTINCT 41 DIV - + 46
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT 41 / - + 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL + COUNT( * ) * - 76
----
-76

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL + COUNT ( * ) * - 76
----
-76

query I rowsort
SELECT ALL 51 * - + 25 + - - 75 + 69 AS col2
----
-1131

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT + 43 * 95 + - + 54 DIV 23
----
4083

skipif mysql # not compatible
query I rowsort label-5772
SELECT + 43 * 95 + - + 54 / 23
----
4083

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT + 63, - 63 + ( SUM( DISTINCT - - 40 ) ) AS col2
----
63
-23

skipif mysql # not compatible
query II rowsort label-5773
SELECT + 63, - 63 + ( SUM ( DISTINCT - - 40 ) ) AS col2
----
63
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5774
SELECT + 55 * + ( SUM( ALL - 49 ) ) * + CASE + 67 WHEN SUM( ALL + 27 ) THEN - - MAX( - CAST( - - 91 AS SIGNED ) ) ELSE NULL END + + CAST( - MIN( ALL 28 ) AS DECIMAL ) * - AVG ( 56 ) + ( + + COALESCE ( COUNT( * ), + 6 ) ) + - CAST( - - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT + 55 * + ( SUM ( ALL - 49 ) ) * + CASE + 67 WHEN SUM ( ALL + 27 ) THEN - - MAX ( - CAST ( - - 91 AS INTEGER ) ) ELSE NULL END + + CAST ( - MIN ( ALL 28 ) AS REAL ) * - AVG ( 56 ) + ( + + COALESCE ( COUNT ( * ), + 6 ) ) + - CAST ( - - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5775
SELECT - - CAST( COUNT( * ) AS SIGNED ) * + + MAX( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-5775
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) * + + MAX ( + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - + 98 * + 83 + - MIN( DISTINCT 23 ) AS col0
----
-8157

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - + 98 * + 83 + - MIN ( DISTINCT 23 ) AS col0
----
-8157

query II rowsort
SELECT + 69 AS col1, 91 AS col1
----
69
91

query I rowsort
SELECT + + 91 + + 1 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT ALL + - CAST( NULL AS SIGNED ) * - AVG ( ALL - + ( + + 4 ) ) * + 76 + - 32 * + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL + - CAST ( NULL AS INTEGER ) * - AVG ( ALL - + ( + + 4 ) ) * + 76 + - 32 * + + 20 AS col1
----
NULL

query I rowsort
SELECT + 67 * - ( + - 36 ) * + 86 + - 71 + + + 14 + 27 AS col2
----
207402

query II rowsort
SELECT ALL + 7, - 36 AS col1
----
7
-36

query I rowsort
SELECT DISTINCT - - 0 * - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL - - CASE 18 WHEN + 1 THEN NULL WHEN + COUNT( 98 ) * - 71 + + 73 THEN CASE - - ( - 27 ) WHEN - ( MIN( + - 9 ) ) THEN NULL WHEN 14 * + + 48 * - 41 * - 33 * + 34 * + + 63 THEN + + 44 END * - + COALESCE ( 55, 88 / + + COUNT( * ), + 84 ) + + 31 ELSE NULL END * - + MAX( + - 56 ) * 89 + 17 - + ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - - CASE 18 WHEN + 1 THEN NULL WHEN + COUNT ( 98 ) * - 71 + + 73 THEN CASE - - ( - 27 ) WHEN - ( MIN ( + - 9 ) ) THEN NULL WHEN 14 * + + 48 * - 41 * - 33 * + 34 * + + 63 THEN + + 44 END * - + COALESCE ( 55, 88 / + + COUNT ( * ), + 84 ) + + 31 ELSE NULL END * - + MAX ( + - 56 ) * 89 + 17 - + ( + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT COUNT( - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5784
SELECT COUNT ( - 55 )
----
1

query II rowsort
SELECT 69, 18 col1
----
69
18

query II rowsort
SELECT ALL 65 AS col2, + 21 * - 47 - - 47 * + - 48 col2
----
65
-3243

query I rowsort
SELECT - - 84 + - 26 + - 53 + - - 40 * 93
----
3725

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT DISTINCT + COUNT( * ) * 71 + 58
----
129

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT + COUNT ( * ) * 71 + 58
----
129

query I rowsort
SELECT ALL - NULLIF ( - 18, + + 5 ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5790
SELECT DISTINCT - - 42 - + 48 - COUNT( DISTINCT - - 13 ) DIV - 25
----
-6

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - - 42 - + 48 - COUNT ( DISTINCT - - 13 ) / - 25
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT ALL CAST( 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL CAST ( 3 AS INTEGER )
----
3

query I rowsort
SELECT DISTINCT + 14 * - + 45 * + + 85 * - + 87 AS col1
----
4658850

query I rowsort
SELECT ALL COALESCE ( - + 3, - 5 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - MIN( 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5794
SELECT - MIN ( 67 ) AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT ALL ( + COALESCE ( + 49, + 24, - COALESCE ( + 36, 63 * - 92 * - 57 * CAST( - - SUM( + 47 ) AS SIGNED ) * 44 + + + 7 ) - + - 16, CAST( NULL AS SIGNED ) ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL ( + COALESCE ( + 49, + 24, - COALESCE ( + 36, 63 * - 92 * - 57 * CAST ( - - SUM ( + 47 ) AS INTEGER ) * 44 + + + 7 ) - + - 16, CAST ( NULL AS INTEGER ) ) ) AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT - 54 + - + 41 DIV 91
----
-54

skipif mysql # not compatible
query I rowsort label-5796
SELECT - 54 + - + 41 / 91
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT + MIN( + + CASE + 79 WHEN - 20 THEN + + 77 END ) - - 71 + + 69, - 35 col0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-5797
SELECT + MIN ( + + CASE + 79 WHEN - 20 THEN + + 77 END ) - - 71 + + 69, - 35 col0
----
NULL
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT ALL - 61 DIV - - 15
----
-4

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - 61 / - - 15
----
-4

query I rowsort
SELECT - 30 * + 41 AS col0
----
-1230

query I rowsort
SELECT + 36 * - - 96
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + CASE 42 WHEN - 35 / + 77 THEN NULL ELSE 4 * 14 + COUNT( * ) END + + 11 + - 20
----
48

skipif mysql # not compatible
query I rowsort label-5801
SELECT + CASE 42 WHEN - 35 / + 77 THEN NULL ELSE 4 * 14 + COUNT ( * ) END + + 11 + - 20
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - SUM( - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT - SUM ( - + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT - ( - - COALESCE ( - 59, + 21 * + COALESCE ( 96, + COUNT( DISTINCT - 3 ) ) + - COUNT( * ) + 89 * - 92 ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-5803
SELECT - ( - - COALESCE ( - 59, + 21 * + COALESCE ( 96, + COUNT ( DISTINCT - 3 ) ) + - COUNT ( * ) + 89 * - 92 ) ) AS col1
----
59

query I rowsort
SELECT ALL 18 + + 69 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT - COALESCE ( - - COALESCE ( + + 26, - 75, + 63 + - 41 * 88, - - 45 + + 94 ), CAST( NULL AS SIGNED ) ) + 40 + + 95 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-5805
SELECT - COALESCE ( - - COALESCE ( + + 26, - 75, + 63 + - 41 * 88, - - 45 + + 94 ), CAST ( NULL AS INTEGER ) ) + 40 + + 95 AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT DISTINCT CAST( 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT CAST ( 70 AS INTEGER ) AS col1
----
70

query I rowsort
SELECT ALL 94 + + + 67 AS col0
----
161

query II rowsort
SELECT + 0 + - 2 * - 92 + 91, 13 AS col2
----
275
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5809
SELECT ALL - 52 DIV + - 22 AS col2, + 65 * COUNT( * ) DIV - - 57 AS col0
----
2
1

skipif mysql # not compatible
query II rowsort label-5809
SELECT ALL - 52 / + - 22 AS col2, + 65 * COUNT ( * ) / - - 57 AS col0
----
2
1

query I rowsort
SELECT DISTINCT 12 * + 86 AS col1
----
1032

query I rowsort
SELECT DISTINCT - 43 + 99 - 32
----
24

query I rowsort
SELECT DISTINCT 0 * - + 32 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5813
SELECT DISTINCT NULLIF ( - 93, + 37 + + 67 + + ( - 45 ) / - + COUNT( * ) * 91 ) + + 52 AS col0, - COALESCE ( + 99, + 80, - + COUNT( * ) * - COALESCE ( - 43, 12 + 9 ) * - ( + 0 ) + + ( - + 80 ) + 32 + - CAST( NULL AS SIGNED ), + - 60 ) + + 14 - - 42 AS col0
----
-41
-43

skipif mysql # not compatible
query II rowsort label-5813
SELECT DISTINCT NULLIF ( - 93, + 37 + + 67 + + ( - 45 ) / - + COUNT ( * ) * 91 ) + + 52 AS col0, - COALESCE ( + 99, + 80, - + COUNT ( * ) * - COALESCE ( - 43, 12 + 9 ) * - ( + 0 ) + + ( - + 80 ) + 32 + - CAST ( NULL AS INTEGER ), + - 60 ) + + 14 - - 42 AS col0
----
-41
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5814
SELECT - - CASE 85 WHEN + + 66 + + 71 THEN CASE - COALESCE ( 19, + + CAST( NULL AS SIGNED ) * + - 91 / + 9 + - AVG ( ALL + - 75 ) + - - MAX( - 3 ) * CAST( + + 9 AS DECIMAL ) + 69 * + 17, + 44 ) WHEN 49 * + CASE - 55 WHEN 16 / - 49 * - 61 + + - 16 * - + 13 + + - CASE + MIN( ALL + 83 ) WHEN 13 * + 70 + 76 THEN - 71 WHEN 24 * 1 THEN NULL END THEN NULL WHEN 31 THEN + CAST( + 74 AS SIGNED ) / - 58 END - COUNT( * ) * + 92 THEN + 99 ELSE 69 END ELSE 66 END * - 59
----
-3894

skipif mysql # not compatible
query I rowsort label-5814
SELECT - - CASE 85 WHEN + + 66 + + 71 THEN CASE - COALESCE ( 19, + + CAST ( NULL AS INTEGER ) * + - 91 / + 9 + - AVG ( ALL + - 75 ) + - - MAX ( - 3 ) * CAST ( + + 9 AS REAL ) + 69 * + 17, + 44 ) WHEN 49 * + CASE - 55 WHEN 16 / - 49 * - 61 + + - 16 * - + 13 + + - CASE + MIN ( ALL + 83 ) WHEN 13 * + 70 + 76 THEN - 71 WHEN 24 * 1 THEN NULL END THEN NULL WHEN 31 THEN + CAST ( + 74 AS INTEGER ) / - 58 END - COUNT ( * ) * + 92 THEN + 99 ELSE 69 END ELSE 66 END * - 59
----
-3894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT ALL + + NULLIF ( ( + + 52 ), 81 + - 97 + + 37 + - - CAST( NULL AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + + NULLIF ( ( + + 52 ), 81 + - 97 + + 37 + - - CAST ( NULL AS INTEGER ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT + ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5816
SELECT + ( - - COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT + 72 + 76 AS col1, 92 AS col2
----
148
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5818
SELECT ALL - - 22 DIV COALESCE ( - + 88, + - CASE CAST( NULL AS SIGNED ) WHEN - 26 THEN - + 71 WHEN - + 65 THEN 85 WHEN 49 + - COUNT( * ) * + 53 THEN - COUNT( DISTINCT - - NULLIF ( - 49, + 83 * 59 + + CAST( NULL AS SIGNED ) DIV 56 ) ) ELSE - SUM( 78 ) END * ( - + COUNT( * ) ) + 88 ) + 18 + 55 + - COUNT( * ) + + 17 * COUNT( * ) DIV - 15 + - 87
----
-16

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL - - 22 / COALESCE ( - + 88, + - CASE CAST ( NULL AS INTEGER ) WHEN - 26 THEN - + 71 WHEN - + 65 THEN 85 WHEN 49 + - COUNT ( * ) * + 53 THEN - COUNT ( DISTINCT - - NULLIF ( - 49, + 83 * 59 + + CAST ( NULL AS INTEGER ) / 56 ) ) ELSE - SUM ( 78 ) END * ( - + COUNT ( * ) ) + 88 ) + 18 + 55 + - COUNT ( * ) + + 17 * COUNT ( * ) / - 15 + - 87
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + ( 7 ) * 69 - - - MIN( + 80 )
----
403

skipif mysql # not compatible
query I rowsort label-5819
SELECT + ( 7 ) * 69 - - - MIN ( + 80 )
----
403

query I rowsort
SELECT ALL + + 94 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5821
SELECT ALL + - 23 DIV 56 + + 64 * - - COALESCE ( + + 48, - - ( - CAST( - ( + 47 ) AS SIGNED ) ), - 29 + + 44 + + MIN( ALL 44 ) * + - 39 ) * - + 59 + + ( + + 60 ) - + 64 * 64
----
-185284

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL + - 23 / 56 + + 64 * - - COALESCE ( + + 48, - - ( - CAST ( - ( + 47 ) AS INTEGER ) ), - 29 + + 44 + + MIN ( ALL 44 ) * + - 39 ) * - + 59 + + ( + + 60 ) - + 64 * 64
----
-185284

query I rowsort
SELECT ALL + + 78
----
78

query I rowsort
SELECT DISTINCT + + 17
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5824
SELECT ALL - + COUNT( * ) * + 95 DIV + 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL - + COUNT ( * ) * + 95 / + 35 AS col2
----
-2

query I rowsort
SELECT + 61 * + 67 AS col0
----
4087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT DISTINCT 31 / - CAST( NULL AS SIGNED ) * - - ( ( - 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT 31 / - CAST ( NULL AS INTEGER ) * - - ( ( - 18 ) )
----
NULL

query I rowsort
SELECT ALL - + 35 AS col0
----
-35

query I rowsort
SELECT + + ( - 97 ) col1
----
-97

query I rowsort
SELECT ALL - - 85
----
85

query I rowsort
SELECT ALL - 22 * 51 AS col2
----
-1122

onlyif mysql # aggregate syntax: 
query II rowsort label-5831
SELECT - 68 - + 54 + + ( - 81 ) AS col2, - COUNT( * )
----
-203
-1

skipif mysql # not compatible
query II rowsort label-5831
SELECT - 68 - + 54 + + ( - 81 ) AS col2, - COUNT ( * )
----
-203
-1

query II rowsort
SELECT ALL 84, 10 AS col1
----
84
10

query I rowsort
SELECT - 85 col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT 62 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT 62 / + - 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5835
SELECT ALL - CAST( 71 AS SIGNED ) DIV + + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - CAST ( 71 AS INTEGER ) / + + COUNT ( * )
----
-71

query I rowsort
SELECT - 83 * NULLIF ( - 33, + 18 - + - 73 * - - 48 * 50 ) * 8 + 46 AS col2
----
21958

query I rowsort
SELECT DISTINCT - 74 * + + 68 AS col2
----
-5032

onlyif mysql # aggregate syntax: 
query II rowsort label-5838
SELECT 39, + SUM( - ( + 55 ) ) AS col1
----
39
-55

skipif mysql # not compatible
query II rowsort label-5838
SELECT 39, + SUM ( - ( + 55 ) ) AS col1
----
39
-55

query I rowsort
SELECT 62 * - 14
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT ALL - 56 + SUM( + 39 ) * + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - 56 + SUM ( + 39 ) * + - COUNT ( * )
----
-95

query II rowsort
SELECT DISTINCT - 84 * + ( + 91 ) AS col2, 86
----
-7644
86

query I rowsort
SELECT DISTINCT - 39 + - + 22 AS col0
----
-61

query I rowsort
SELECT 81 + - 12 AS col0
----
69

query I rowsort
SELECT DISTINCT + 11 + + - 57
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - 57 + + CASE - 22 WHEN - - 75 / - COUNT( * ) - + ( - 49 ) THEN - - 99 + - + ( - + 63 ) END - - 19 / + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - 57 + + CASE - 22 WHEN - - 75 / - COUNT ( * ) - + ( - 49 ) THEN - - 99 + - + ( - + 63 ) END - - 19 / + + 12
----
NULL

query I rowsort
SELECT ALL + 94 + 4 - + + 48 AS col0
----
50

query I rowsort
SELECT 68 - + 75 + + + 62 * - 19 * + + 74 * 81 AS col1
----
-7060939

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT 77 DIV + 64 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5848
SELECT 77 / + 64 AS col1
----
1

query I rowsort
SELECT 13 * ( - 60 )
----
-780

query I rowsort
SELECT DISTINCT - 21 + 85 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5851
SELECT DISTINCT - COUNT( * ) + - - 3 * - + 33 + + + 59 + + CAST( - 53 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT - COUNT ( * ) + - - 3 * - + 33 + + + 59 + + CAST ( - 53 AS INTEGER )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5852
SELECT ALL - CAST( NULL AS DECIMAL ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - CAST ( NULL AS REAL ) / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 88 * + 18 * - + 21 - - 5 AS col0
----
33269

query I rowsort
SELECT ALL - + 66 AS col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT ALL + 78 - + 52 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL + 78 - + 52 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5856
SELECT ALL - - 4 * - 43 * + + ( 94 ) * - + 16 * + 50 + - 35 + - 92 * + ( 97 ) + + 86 + + 78 + 41 DIV - - 88 AS col0
----
12925605

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - - 4 * - 43 * + + ( 94 ) * - + 16 * + 50 + - 35 + - 92 * + ( 97 ) + + 86 + + 78 + 41 / - - 88 AS col0
----
12925605

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5857
SELECT CAST( + 56 AS DECIMAL ) * + - CASE + + 57 WHEN 97 / + 12 THEN NULL WHEN 60 * + 42 + 60 THEN + - COALESCE ( + 2, - + 26 ) * COUNT( * ) ELSE NULL END + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT CAST ( + 56 AS REAL ) * + - CASE + + 57 WHEN 97 / + 12 THEN NULL WHEN 60 * + 42 + 60 THEN + - COALESCE ( + 2, - + 26 ) * COUNT ( * ) ELSE NULL END + - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - 59 * + 63 * - COUNT( * ) * - 94 AS col0
----
-349398

skipif mysql # not compatible
query I rowsort label-5858
SELECT - 59 * + 63 * - COUNT ( * ) * - 94 AS col0
----
-349398

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL 28 * + + MAX( DISTINCT - 9 ) - + - 38 AS col0
----
-214

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL 28 * + + MAX ( DISTINCT - 9 ) - + - 38 AS col0
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5860
SELECT - 8 DIV - + CAST( + 4 AS SIGNED ) + + - 23 + - - COUNT( * ) * + - COUNT( * ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-5860
SELECT - 8 / - + CAST ( + 4 AS INTEGER ) + + - 23 + - - COUNT ( * ) * + - COUNT ( * ) col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-5861
SELECT ALL - - 42, - COUNT( * ) AS col1
----
42
-1

skipif mysql # not compatible
query II rowsort label-5861
SELECT ALL - - 42, - COUNT ( * ) AS col1
----
42
-1

query I rowsort
SELECT - 16 + - 44 AS col2
----
-60

query II rowsort
SELECT 42 * - 96 - - 26 col0, 92 AS col0
----
-4006
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT + 25 * 54 * + COUNT( * )
----
1350

skipif mysql # not compatible
query I rowsort label-5864
SELECT + 25 * 54 * + COUNT ( * )
----
1350

onlyif mysql # aggregate syntax: 
query II rowsort label-5865
SELECT COUNT( * ) * - 83 + + 54, COUNT( DISTINCT + 19 ) AS col1
----
-29
1

skipif mysql # not compatible
query II rowsort label-5865
SELECT COUNT ( * ) * - 83 + + 54, COUNT ( DISTINCT + 19 ) AS col1
----
-29
1

query I rowsort
SELECT ALL - COALESCE ( 86, - 64 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT + COALESCE ( + ( ( + + COUNT( * ) ) ), + MIN( ALL - 31 ) ) + ( - 98 ) - 24 * + + 7
----
-265

skipif mysql # not compatible
query I rowsort label-5867
SELECT + COALESCE ( + ( ( + + COUNT ( * ) ) ), + MIN ( ALL - 31 ) ) + ( - 98 ) - 24 * + + 7
----
-265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT ALL + CAST( - + 93 AS SIGNED ) * 91 AS col1
----
-8463

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + CAST ( - + 93 AS INTEGER ) * 91 AS col1
----
-8463

query I rowsort
SELECT DISTINCT - - ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT MAX( - 76 ) + + 46 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5870
SELECT MAX ( - 76 ) + + 46 AS col2
----
-30

query I rowsort
SELECT ALL 31 * + 24
----
744

onlyif mysql # aggregate syntax: 
query II rowsort label-5872
SELECT DISTINCT - 4 AS col2, CASE + + 90 WHEN + - 54 * + + 83 THEN NULL WHEN - - 59 THEN - MAX( + 2 ) END AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-5872
SELECT DISTINCT - 4 AS col2, CASE + + 90 WHEN + - 54 * + + 83 THEN NULL WHEN - - 59 THEN - MAX ( + 2 ) END AS col0
----
-4
NULL

query II rowsort
SELECT ALL 49 * - 26, 84 + + 27 AS col0
----
-1274
111

query I rowsort
SELECT 43 + 94 AS col1
----
137

query I rowsort
SELECT 82 + 63 AS col2
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-5876
SELECT ALL - COUNT( * ), 20 AS col2
----
-1
20

skipif mysql # not compatible
query II rowsort label-5876
SELECT ALL - COUNT ( * ), 20 AS col2
----
-1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT 84 + - COUNT( DISTINCT 21 ) + + + 7 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT 84 + - COUNT ( DISTINCT 21 ) + + + 7 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT COUNT( + 95 ) * - 81 + 61 + - + 58 col0
----
-78

skipif mysql # not compatible
query I rowsort label-5878
SELECT COUNT ( + 95 ) * - 81 + 61 + - + 58 col0
----
-78

query I rowsort
SELECT ALL - 70 + - 32 - 12 col1
----
-114

query I rowsort
SELECT ALL 89 * + 73
----
6497

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT 48 + - + COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT 48 + - + COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT ALL + COUNT( + 8 ) DIV + + 47
----
0

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + COUNT ( + 8 ) / + + 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT 87 DIV + - 11 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5883
SELECT 87 / + - 11 AS col2
----
-7

query II rowsort
SELECT - 15 col0, 11 + - + 80 AS col0
----
-15
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT 68 + ( COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-5885
SELECT 68 + ( COUNT ( * ) )
----
69

query I rowsort
SELECT 6 * 84
----
504

query I rowsort
SELECT 13 - + 53 AS col0
----
-40

query I rowsort
SELECT 22 + - 36 + - 89 AS col1
----
-103

query I rowsort
SELECT ALL - 26 + + 97 AS col0
----
71

query II rowsort
SELECT 2 col1, + 4 * + 40 + + 67 * - + 82
----
2
-5334

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL SUM( - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL SUM ( - + 69 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5892
SELECT CAST( NULL AS DECIMAL ) + + + COUNT( * ) - + + MAX( ALL - 65 ) * - CASE + 42 WHEN - 58 THEN NULL ELSE + COUNT( * ) END + 83 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT CAST ( NULL AS REAL ) + + + COUNT ( * ) - + + MAX ( ALL - 65 ) * - CASE + 42 WHEN - 58 THEN NULL ELSE + COUNT ( * ) END + 83 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT - 7 + + + COUNT( * ) * 25
----
18

skipif mysql # not compatible
query I rowsort label-5893
SELECT - 7 + + + COUNT ( * ) * 25
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5894
SELECT ALL - CAST( - 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - CAST ( - 23 AS INTEGER )
----
23

query I rowsort
SELECT - 20 + + + 96 + - 85 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5896
SELECT - 38 AS col2, COUNT( * ) AS col2
----
-38
1

skipif mysql # not compatible
query II rowsort label-5896
SELECT - 38 AS col2, COUNT ( * ) AS col2
----
-38
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5897
SELECT - - 90 DIV - 66 + - - 14
----
13

skipif mysql # not compatible
query I rowsort label-5897
SELECT - - 90 / - 66 + - - 14
----
13

query II rowsort
SELECT 20 AS col1, 1
----
20
1

query II rowsort
SELECT ALL + 52, 11 AS col2
----
52
11

query II rowsort
SELECT 45, 75 AS col0
----
45
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL + - COALESCE ( + - COUNT( * ), - 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + - COALESCE ( + - COUNT ( * ), - 99 ) AS col1
----
1

query I rowsort
SELECT - + 77 * - + 9 * + - 95 AS col1
----
-65835

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT + + ( + 63 ) + + 83 DIV 39
----
65

skipif mysql # not compatible
query I rowsort label-5903
SELECT + + ( + 63 ) + + 83 / 39
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5904
SELECT ALL + - 64 DIV COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + - 64 / COUNT ( * )
----
-64

query III rowsort
SELECT DISTINCT + - 79 AS col2, 5, + 49 AS col2
----
-79
5
49

query I rowsort
SELECT ALL + 75 col0
----
75

query I rowsort
SELECT + + NULLIF ( 20, + + 7 / + 54 * 11 + + 76 )
----
20

query I rowsort
SELECT DISTINCT + - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT ALL 76 * - 69 * + COUNT( + - 57 )
----
-5244

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL 76 * - 69 * + COUNT ( + - 57 )
----
-5244

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT + COUNT( ALL - 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + COUNT ( ALL - 35 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + + 22 * + 94
----
2068

query I rowsort
SELECT - 14 - + + 4
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + COALESCE ( + - 79, + COUNT( * ) * 90 + + + ( - + 17 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-5913
SELECT + COALESCE ( + - 79, + COUNT ( * ) * 90 + + + ( - + 17 ) )
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5914
SELECT DISTINCT 37 * - 74 + 42 AS col0, - NULLIF ( + - 53, COALESCE ( - CAST( NULL AS DECIMAL ), - 3 ) )
----
-2696
53

skipif mysql # not compatible
query II rowsort label-5914
SELECT DISTINCT 37 * - 74 + 42 AS col0, - NULLIF ( + - 53, COALESCE ( - CAST ( NULL AS REAL ), - 3 ) )
----
-2696
53

query I rowsort
SELECT + 89 col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT COUNT( DISTINCT - - ( + - 47 ) ) AS col1, 0 + + 63
----
1
63

skipif mysql # not compatible
query II rowsort label-5916
SELECT COUNT ( DISTINCT - - ( + - 47 ) ) AS col1, 0 + + 63
----
1
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5917
SELECT ALL 74 * ( + + 12 ) DIV - MAX( + 59 ) + 35 + + + SUM( - 45 ) + + COUNT( DISTINCT - 93 ) * - + 90 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL 74 * ( + + 12 ) / - MAX ( + 59 ) + 35 + + + SUM ( - 45 ) + + COUNT ( DISTINCT - 93 ) * - + 90 AS col1
----
-115

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT DISTINCT 74 * COALESCE ( + 25, COUNT( * ) ) + - COUNT( * ), 95 AS col0
----
1849
95

skipif mysql # not compatible
query II rowsort label-5918
SELECT DISTINCT 74 * COALESCE ( + 25, COUNT ( * ) ) + - COUNT ( * ), 95 AS col0
----
1849
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT ALL 42 + + 34, 67 + - - COUNT( DISTINCT 19 ) AS col2
----
76
68

skipif mysql # not compatible
query II rowsort label-5919
SELECT ALL 42 + + 34, 67 + - - COUNT ( DISTINCT 19 ) AS col2
----
76
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT MIN( DISTINCT - ( - 49 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5920
SELECT MIN ( DISTINCT - ( - 49 ) ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5921
SELECT - COUNT( DISTINCT 28 ) * - COUNT( 95 ) + - - CAST( NULL AS SIGNED ) AS col2, - 83 AS col2
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-5921
SELECT - COUNT ( DISTINCT 28 ) * - COUNT ( 95 ) + - - CAST ( NULL AS INTEGER ) AS col2, - 83 AS col2
----
NULL
-83

query II rowsort
SELECT + 24 + - 88 AS col1, + 52 AS col2
----
-64
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT + COALESCE ( NULLIF ( - + 74, + 44 * NULLIF ( 70, - - 71 + + CAST( - + 51 AS SIGNED ) + + + 6 * 11 + - ( + 47 ) * 27 * - - COUNT( * ) ) + - + 56 + + 2 ), 9 ) + 34
----
-40

skipif mysql # not compatible
query I rowsort label-5923
SELECT + COALESCE ( NULLIF ( - + 74, + 44 * NULLIF ( 70, - - 71 + + CAST ( - + 51 AS INTEGER ) + + + 6 * 11 + - ( + 47 ) * 27 * - - COUNT ( * ) ) + - + 56 + + 2 ), 9 ) + 34
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT - 55 * 38 - NULLIF ( - MIN( ( + 59 ) ), + - 98 ) + + 56 * - - 64 AS col0
----
1553

skipif mysql # not compatible
query I rowsort label-5924
SELECT - 55 * 38 - NULLIF ( - MIN ( ( + 59 ) ), + - 98 ) + + 56 * - - 64 AS col0
----
1553

query I rowsort
SELECT + 23 + + 42
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT ALL COUNT( * ) - - - 39 - COUNT( * ) * 59 * + 92 AS col1
----
-5466

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL COUNT ( * ) - - - 39 - COUNT ( * ) * 59 * + 92 AS col1
----
-5466

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT 41 * + NULLIF ( - COUNT( DISTINCT 12 ), + 46 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT 41 * + NULLIF ( - COUNT ( DISTINCT 12 ), + 46 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-5928
SELECT + 70 * COUNT( * ), - ( + COUNT( * ) ) * - NULLIF ( - 46, NULLIF ( + 30, - + 70 ) ) + 46 + COUNT( * ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-5928
SELECT + 70 * COUNT ( * ), - ( + COUNT ( * ) ) * - NULLIF ( - 46, NULLIF ( + 30, - + 70 ) ) + 46 + COUNT ( * ) AS col1
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL SUM( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL SUM ( DISTINCT 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5930
SELECT - ( - - MIN( - CAST( 36 AS SIGNED ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-5930
SELECT - ( - - MIN ( - CAST ( 36 AS INTEGER ) ) )
----
36

query II rowsort
SELECT ALL - + 4 - - 74, 4 * - 3 AS col0
----
70
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5932
SELECT + CAST( NULL AS SIGNED ) / + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT + CAST ( NULL AS INTEGER ) / + + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - COUNT( * ) * - - ( 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5933
SELECT - COUNT ( * ) * - - ( 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT + - 56 + + 80 + + + 81 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT + - 56 + + 80 + + + 81 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT DISTINCT - 45 DIV + NULLIF ( + 75, + 93 * + 18 )
----
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT - 45 / + NULLIF ( + 75, + 93 * + 18 )
----
0

query I rowsort
SELECT - + NULLIF ( - 23, + - 16 * 97 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL + - 62 * COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL + - 62 * COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5938
SELECT + + COALESCE ( - ( MIN( DISTINCT + 34 ) ), + + 11 * - 90 DIV + - 91 + + - ( 81 ) ) * 53 * + + CAST( - 74 AS SIGNED )
----
133348

skipif mysql # not compatible
query I rowsort label-5938
SELECT + + COALESCE ( - ( MIN ( DISTINCT + 34 ) ), + + 11 * - 90 / + - 91 + + - ( 81 ) ) * 53 * + + CAST ( - 74 AS INTEGER )
----
133348

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT + COUNT( * ) * NULLIF ( + 73, 64 ) * + 47 AS col2
----
3431

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT + COUNT ( * ) * NULLIF ( + 73, 64 ) * + 47 AS col2
----
3431

query I rowsort
SELECT - 90 + - 78
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT - ( + 59 ) + + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5941
SELECT - ( + 59 ) + + COUNT ( * ) AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5942
SELECT ALL 14 * + + COALESCE ( + 40, - 54, + CAST( NULL AS DECIMAL ) ) + - NULLIF ( ( CAST( NULL AS SIGNED ) ), - 39 * - COUNT( * ) + - 57 ) + - 89 + 45 * ( - 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL 14 * + + COALESCE ( + 40, - 54, + CAST ( NULL AS REAL ) ) + - NULLIF ( ( CAST ( NULL AS INTEGER ) ), - 39 * - COUNT ( * ) + - 57 ) + - 89 + 45 * ( - 81 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT ALL NULLIF ( - 20, - MAX( - 5 ) * 55 * COUNT( * ) ) * 21 + 57 DIV + - 12 - + 94 AS col2
----
-518

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL NULLIF ( - 20, - MAX ( - 5 ) * 55 * COUNT ( * ) ) * 21 + 57 / + - 12 - + 94 AS col2
----
-518

query I rowsort
SELECT DISTINCT COALESCE ( - + CASE + ( 66 ) WHEN 87 THEN + - 66 END, + 17 * COALESCE ( 0, + + 15 * + 15 - - - 40, - 62 ) ) * + - 90
----
0

query I rowsort
SELECT - 48 * + - 28
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT ALL - 98 * - SUM( ALL + - 77 ) * + - 93 AS col0
----
701778

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - 98 * - SUM ( ALL + - 77 ) * + - 93 AS col0
----
701778

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT - COUNT( * ) * 65
----
-65

skipif mysql # not compatible
query I rowsort label-5947
SELECT - COUNT ( * ) * 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT CASE + 12 WHEN + - ( + 71 ) / - 95 + - 4 * - - 82 THEN + 39 * 35 * - 38 * - COUNT( * ) * + 39 + + 25 + - 45 WHEN + 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT CASE + 12 WHEN + - ( + 71 ) / - 95 + - 4 * - - 82 THEN + 39 * 35 * - 38 * - COUNT ( * ) * + 39 + + 25 + - 45 WHEN + 54 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5949
SELECT - COALESCE ( + COUNT( * ), + + CAST( - 18 AS SIGNED ) ) + COUNT( * ) * + + 84
----
83

skipif mysql # not compatible
query I rowsort label-5949
SELECT - COALESCE ( + COUNT ( * ), + + CAST ( - 18 AS INTEGER ) ) + COUNT ( * ) * + + 84
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT - 0 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT - 0 / 66
----
0

query I rowsort
SELECT + 6 + + + 81 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT CASE - COUNT( * ) WHEN - 87 * + 85 THEN NULL WHEN + - 55 THEN + 6 * - 70 + - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT CASE - COUNT ( * ) WHEN - 87 * + 85 THEN NULL WHEN + - 55 THEN + 6 * - 70 + - 9 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + 55 * + - 57 - + ( 54 ) * + CASE + 31 WHEN 53 + - SUM( DISTINCT + - 61 ) + 80 + + 19 * - MAX( - 36 ) + 57 * + NULLIF ( + ( - 65 ), - 69 + + - 79 ) THEN + 17 WHEN - - 91 + - 29 THEN NULL ELSE NULL END / + 66 * + CAST( NULL AS SIGNED ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + 55 * + - 57 - + ( 54 ) * + CASE + 31 WHEN 53 + - SUM ( DISTINCT + - 61 ) + 80 + + 19 * - MAX ( - 36 ) + 57 * + NULLIF ( + ( - 65 ), - 69 + + - 79 ) THEN + 17 WHEN - - 91 + - 29 THEN NULL ELSE NULL END / + 66 * + CAST ( NULL AS INTEGER ) * + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5954
SELECT - ( - + ( + + 3 ) ) * 32 DIV COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5954
SELECT - ( - + ( + + 3 ) ) * 32 / COUNT ( * ) AS col1
----
96

query I rowsort
SELECT ALL + 35 * + 4 AS col1
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5956
SELECT 12 + + 53 + + + 68 DIV + 5 AS col1, - COUNT( * ) AS col1
----
78
-1

skipif mysql # not compatible
query II rowsort label-5956
SELECT 12 + + 53 + + + 68 / + 5 AS col1, - COUNT ( * ) AS col1
----
78
-1

query I rowsort
SELECT COALESCE ( + 35, - + 6 + + 55 ) + - 75
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT DISTINCT - 60 * - + 0 + + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - 60 * - + 0 + + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT DISTINCT + 27 AS col0, - 34 * 97 + - - COUNT( * )
----
27
-3297

skipif mysql # not compatible
query II rowsort label-5959
SELECT DISTINCT + 27 AS col0, - 34 * 97 + - - COUNT ( * )
----
27
-3297

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL MIN( DISTINCT - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL MIN ( DISTINCT - 1 ) AS col0
----
-1

query I rowsort
SELECT 45 * 58 AS col2
----
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT 32 + - SUM( DISTINCT 9 ) + + 45 + CAST( - 65 AS SIGNED ) + SUM( + 96 )
----
99

skipif mysql # not compatible
query I rowsort label-5962
SELECT 32 + - SUM ( DISTINCT 9 ) + + 45 + CAST ( - 65 AS INTEGER ) + SUM ( + 96 )
----
99

query I rowsort
SELECT DISTINCT 95 * + 73
----
6935

query I rowsort
SELECT 22 + + 70
----
92

query I rowsort
SELECT DISTINCT 51 col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT 2 + + SUM( DISTINCT + 34 ), + CASE - - 16 WHEN - COUNT( * ) THEN + 76 / + - COUNT( * ) END * + - 62 * + - COUNT( * ) AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-5966
SELECT 2 + + SUM ( DISTINCT + 34 ), + CASE - - 16 WHEN - COUNT ( * ) THEN + 76 / + - COUNT ( * ) END * + - 62 * + - COUNT ( * ) AS col2
----
36
NULL

query I rowsort
SELECT ALL - 45 col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5968
SELECT ( 22 ) * + CASE - - 71 WHEN + 80 + - ( - + 3 ) THEN - - CAST( NULL AS SIGNED ) + - 58 / + COUNT( * ) ELSE NULL END + - + 0 * - CAST( NULL AS SIGNED ) + - COUNT( * ) + + 17 + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT ( 22 ) * + CASE - - 71 WHEN + 80 + - ( - + 3 ) THEN - - CAST ( NULL AS INTEGER ) + - 58 / + COUNT ( * ) ELSE NULL END + - + 0 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 17 + + 37 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT + ( - COALESCE ( + CAST( 42 AS SIGNED ), - - 79 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5969
SELECT + ( - COALESCE ( + CAST ( 42 AS INTEGER ), - - 79 ) ) AS col0
----
-42

query I rowsort
SELECT DISTINCT - 22 col0
----
-22

query I rowsort
SELECT ALL - 14 + 20
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT + 1 DIV - + 2 * 65 - - + 9 + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5972
SELECT + 1 / - + 2 * 65 - - + 9 + COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT - MIN( - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-5973
SELECT - MIN ( - 37 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT + 85 DIV 24
----
3

skipif mysql # not compatible
query I rowsort label-5974
SELECT + 85 / 24
----
3

query I rowsort
SELECT 71 + NULLIF ( + - 8, 33 ) AS col1
----
63

query I rowsort
SELECT 73 * + 84
----
6132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT + COUNT( * ) * CASE COUNT( * ) WHEN - 28 THEN + 46 / 72 - + ( - - 10 ) + + 5 ELSE + CASE + 8 WHEN + 31 + - + 85 - + 90 + - 89 * - SUM( DISTINCT - 3 ) * + 96 + + COUNT( * ) THEN + - CAST( + + COALESCE ( - ( - SUM( ALL - 28 ) ), COUNT( + + CAST( 93 AS SIGNED ) ) - - 66 + + ( - 51 ) ) AS SIGNED ) ELSE NULL END / - 54 + - 31 * + NULLIF ( COUNT( * ), + ( + ( + 3 ) ) ) * - 8 END * + ( - MIN( ALL 86 ) / + 80 ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT + COUNT ( * ) * CASE COUNT ( * ) WHEN - 28 THEN + 46 / 72 - + ( - - 10 ) + + 5 ELSE + CASE + 8 WHEN + 31 + - + 85 - + 90 + - 89 * - SUM ( DISTINCT - 3 ) * + 96 + + COUNT ( * ) THEN + - CAST ( + + COALESCE ( - ( - SUM ( ALL - 28 ) ), COUNT ( + + CAST ( 93 AS INTEGER ) ) - - 66 + + ( - 51 ) ) AS INTEGER ) ELSE NULL END / - 54 + - 31 * + NULLIF ( COUNT ( * ), + ( + ( + 3 ) ) ) * - 8 END * + ( - MIN ( ALL 86 ) / + 80 ) + + 51
----
NULL

query I rowsort
SELECT ALL + + 17 + + 41 AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT - + COALESCE ( + 71, - 78 DIV + 73, + 37 * - 18 ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - + COALESCE ( + 71, - 78 / + 73, + 37 * - 18 ) col1
----
-71

query I rowsort
SELECT DISTINCT + 29 * + ( + 88 ) AS col0
----
2552

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT ALL + 11 * SUM( ALL + 52 ) * 11, - 67 * - 88 AS col2
----
6292
5896

skipif mysql # not compatible
query II rowsort label-5981
SELECT ALL + 11 * SUM ( ALL + 52 ) * 11, - 67 * - 88 AS col2
----
6292
5896

query II rowsort
SELECT 81 * + 73 * - - ( + 16 ) AS col1, 27 + - 22 * - - 57 AS col1
----
94608
-1227

query I rowsort
SELECT ALL 66 + - - 99
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT + CASE + 82 WHEN - + 62 THEN - COUNT( * ) / + 43 + + - ( + 21 ) WHEN + 55 * + - 11 / - 65 THEN NULL ELSE NULL END + + 43 + 49 * + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT + CASE + 82 WHEN - + 62 THEN - COUNT ( * ) / + 43 + + - ( + 21 ) WHEN + 55 * + - 11 / - 65 THEN NULL ELSE NULL END + + 43 + 49 * + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT COUNT( * ) * - + 41 - 69 AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-5985
SELECT COUNT ( * ) * - + 41 - 69 AS col1
----
-110

query I rowsort
SELECT ALL + 12 * + 74 AS col0
----
888

query I rowsort
SELECT 7 * - 77 AS col2
----
-539

query I rowsort
SELECT - 47 * + 48 + - 90 AS col0
----
-2346

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT 96 * - + ( - SUM( DISTINCT 57 ) ) * + COUNT( * )
----
5472

skipif mysql # not compatible
query I rowsort label-5989
SELECT 96 * - + ( - SUM ( DISTINCT 57 ) ) * + COUNT ( * )
----
5472

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT ALL - 67 DIV - - 1 col1
----
-67

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - 67 / - - 1 col1
----
-67

query I rowsort
SELECT ALL - ( 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL - COUNT( * ) * - 5
----
5

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL - COUNT ( * ) * - 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT 16 - - 90 + - ( MAX( DISTINCT 56 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5993
SELECT 16 - - 90 + - ( MAX ( DISTINCT 56 ) ) AS col2
----
50

query I rowsort
SELECT 25 - + + 58 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT - 50 * - - 3 * - NULLIF ( + + COUNT( * ), - ( - - COUNT( * ) ) ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT - 50 * - - 3 * - NULLIF ( + + COUNT ( * ), - ( - - COUNT ( * ) ) ) AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT MAX( DISTINCT - - 90 ) + + 11 + + 86 * 39 - - - COUNT( * )
----
3454

skipif mysql # not compatible
query I rowsort label-5996
SELECT MAX ( DISTINCT - - 90 ) + + 11 + + 86 * 39 - - - COUNT ( * )
----
3454

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT - 0 DIV + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT - 0 / + 31 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5998
SELECT 60 - + - 14, SUM( + - 23 ) + + 64 col1
----
74
41

skipif mysql # not compatible
query II rowsort label-5998
SELECT 60 - + - 14, SUM ( + - 23 ) + + 64 col1
----
74
41

query I rowsort
SELECT ALL + 70 * - - 99 col2
----
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT 47 * + COUNT( * ) + + + ( - 86 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6000
SELECT 47 * + COUNT ( * ) + + + ( - 86 ) AS col2
----
-39

query I rowsort
SELECT ALL - 79 + + + 91
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT ( CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6002
SELECT ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT - - 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + 4 + + MIN( 55 ) + + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + 4 + + MIN ( 55 ) + + - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT - MAX( ALL - 80 ) + + - 19 - - SUM( DISTINCT + - 51 ) + 65 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - MAX ( ALL - 80 ) + + - 19 - - SUM ( DISTINCT + - 51 ) + 65 AS col0
----
75

query I rowsort
SELECT - 42 - + + 28 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6007
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col1, + 57
----
-1
57

skipif mysql # not compatible
query II rowsort label-6007
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + 57
----
-1
57

query I rowsort
SELECT 50 + + 99
----
149

query I rowsort
SELECT - - 88 AS col1
----
88

query I rowsort
SELECT ALL + 2 + + ( - - 81 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT NULLIF ( - 60, + 58 / + MAX( ALL 56 ) * + + 26 * 26 ) - 73 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-6011
SELECT NULLIF ( - 60, + 58 / + MAX ( ALL 56 ) * + + 26 * 26 ) - 73 AS col0
----
-133

query I rowsort
SELECT ALL - 46 col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT COALESCE ( - 25, + 29 * - 16 * - + 17 * 60 * + COALESCE ( + + 72, - ( - - 11 ) DIV + - 44 + 94 + - COUNT( * ) ) + + 46 ) DIV 20 * - 44 + + 98 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-6013
SELECT COALESCE ( - 25, + 29 * - 16 * - + 17 * 60 * + COALESCE ( + + 72, - ( - - 11 ) / + - 44 + 94 + - COUNT ( * ) ) + + 46 ) / 20 * - 44 + + 98 AS col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT CASE - - MIN( DISTINCT ( - 47 ) ) WHEN + 28 THEN 45 ELSE - - 91 END + - 53 col1
----
38

skipif mysql # not compatible
query I rowsort label-6014
SELECT CASE - - MIN ( DISTINCT ( - 47 ) ) WHEN + 28 THEN 45 ELSE - - 91 END + - 53 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - 37 * - 49 - - - MIN( - 84 ) AS col1
----
1897

skipif mysql # not compatible
query I rowsort label-6015
SELECT - 37 * - 49 - - - MIN ( - 84 ) AS col1
----
1897

query I rowsort
SELECT DISTINCT 71 * - 5
----
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT SUM( 22 ) + - 5
----
17

skipif mysql # not compatible
query I rowsort label-6017
SELECT SUM ( 22 ) + - 5
----
17

query II rowsort
SELECT ALL - 26 AS col1, 11 * NULLIF ( - 55, - + 79 * + - 16 )
----
-26
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT MIN( DISTINCT - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6019
SELECT MIN ( DISTINCT - 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT - SUM( ALL 12 ) * + - COUNT( - + 62 ) + - COUNT( * ) + + + COUNT( ALL + - 58 ) - - 56
----
68

skipif mysql # not compatible
query I rowsort label-6020
SELECT - SUM ( ALL 12 ) * + - COUNT ( - + 62 ) + - COUNT ( * ) + + + COUNT ( ALL + - 58 ) - - 56
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6021
SELECT ALL + CASE CASE + 41 WHEN - - NULLIF ( + - 32, + 89 / + 31 ) THEN NULL WHEN - CASE - - COALESCE ( + 72, + - 94, 73 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - SUM( DISTINCT 46 ) - - + 71 THEN NULL ELSE + 58 + - 65 END THEN NULL WHEN 89 THEN + 39 * - 64 - - 6 ELSE NULL END WHEN - CASE - 8 WHEN + 81 THEN + 75 / + + 31 END THEN 98 WHEN - 76 THEN + 48 WHEN - CAST( NULL AS DECIMAL ) THEN + + 47 * + 3 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + CASE CASE + 41 WHEN - - NULLIF ( + - 32, + 89 / + 31 ) THEN NULL WHEN - CASE - - COALESCE ( + 72, + - 94, 73 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT 46 ) - - + 71 THEN NULL ELSE + 58 + - 65 END THEN NULL WHEN 89 THEN + 39 * - 64 - - 6 ELSE NULL END WHEN - CASE - 8 WHEN + 81 THEN + 75 / + + 31 END THEN 98 WHEN - 76 THEN + 48 WHEN - CAST ( NULL AS REAL ) THEN + + 47 * + 3 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT - 23 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 23 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT MAX( ALL - + 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6023
SELECT MAX ( ALL - + 75 ) AS col0
----
-75

query I rowsort
SELECT - 41 * - 89
----
3649

query I rowsort
SELECT + 52 + - 63
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT + CASE - 43 WHEN - CAST( - 58 AS SIGNED ) THEN NULL WHEN - 37 * CAST( NULL AS SIGNED ) * + 10 / CASE 9 WHEN + 90 + + 92 / + - 23 + + 85 THEN NULL ELSE CASE + 46 WHEN + 59 * - 17 THEN NULL WHEN 36 + - 37 THEN + - 25 / + 91 END END THEN NULL ELSE + 34 END AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6026
SELECT + CASE - 43 WHEN - CAST ( - 58 AS INTEGER ) THEN NULL WHEN - 37 * CAST ( NULL AS INTEGER ) * + 10 / CASE 9 WHEN + 90 + + 92 / + - 23 + + 85 THEN NULL ELSE CASE + 46 WHEN + 59 * - 17 THEN NULL WHEN 36 + - 37 THEN + - 25 / + 91 END END THEN NULL ELSE + 34 END AS col2
----
34

query I rowsort
SELECT + 29 + 7 * + - 57
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + 87 * MAX( + - 26 )
----
-2262

skipif mysql # not compatible
query I rowsort label-6028
SELECT + 87 * MAX ( + - 26 )
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - 93 + - + CASE - ( + 17 ) WHEN - NULLIF ( + 24, + + MAX( - 8 ) / + 19 * - MAX( 67 ) ) THEN - + 66 WHEN - 43 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 93 + - + CASE - ( + 17 ) WHEN - NULLIF ( + 24, + + MAX ( - 8 ) / + 19 * - MAX ( 67 ) ) THEN - + 66 WHEN - 43 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL + SUM( ALL 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL + SUM ( ALL 85 ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT + + 93 DIV + 23
----
4

skipif mysql # not compatible
query I rowsort label-6031
SELECT + + 93 / + 23
----
4

query I rowsort
SELECT ALL 12 + 46
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT MAX( DISTINCT 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6033
SELECT MAX ( DISTINCT 1 ) AS col1
----
1

query I rowsort
SELECT ALL + - 18 + + + 63 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT DISTINCT COUNT( * ) + + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT COUNT ( * ) + + - 93
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT ALL - CAST( - 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - CAST ( - 96 AS INTEGER )
----
96

query I rowsort
SELECT - 73 + 72
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT DISTINCT - 16 + + 2 + NULLIF ( - 88, + 45 * 65 + + 68 ) * + + COUNT( * ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT - 16 + + 2 + NULLIF ( - 88, + 45 * 65 + + 68 ) * + + COUNT ( * ) AS col2
----
-102

onlyif mysql # DIV for integer division: 
query II rowsort label-6039
SELECT DISTINCT - - 88 DIV - ( + 2 ) AS col0, + 25 * - - 0 * - 50
----
-44
0

skipif mysql # not compatible
query II rowsort label-6039
SELECT DISTINCT - - 88 / - ( + 2 ) AS col0, + 25 * - - 0 * - 50
----
-44
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + ( - ( COUNT( * ) ) ) + 81 * 7 AS col1
----
566

skipif mysql # not compatible
query I rowsort label-6040
SELECT + ( - ( COUNT ( * ) ) ) + 81 * 7 AS col1
----
566

onlyif mysql # DIV for integer division: 
query II rowsort label-6041
SELECT - 40 + ( + 0 ) - + + 76 * 49 AS col2, 25 DIV - + 41 * + 68
----
-3764
0

skipif mysql # not compatible
query II rowsort label-6041
SELECT - 40 + ( + 0 ) - + + 76 * 49 AS col2, 25 / - + 41 * + 68
----
-3764
0

query I rowsort
SELECT DISTINCT + - COALESCE ( 67, 96 * + 86 * - 61 * + 20, - - 47 ) * + 55 * - 67
----
246895

query I rowsort
SELECT - - 86 + + 32 AS col1
----
118

query I rowsort
SELECT - 28 * 51
----
-1428

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT - - 10 AS col2, + 57 * + 82 * ( + - COUNT( ALL - 69 ) ) + - 6 + 70 + - + 41
----
10
-4651

skipif mysql # not compatible
query II rowsort label-6045
SELECT - - 10 AS col2, + 57 * + 82 * ( + - COUNT ( ALL - 69 ) ) + - 6 + 70 + - + 41
----
10
-4651

query I rowsort
SELECT + + 12 + + + 85
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT DISTINCT - + 84 + - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - + 84 + - + COUNT ( * )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT - 90 + 59 + 22 DIV 3 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6048
SELECT - 90 + 59 + 22 / 3 AS col1
----
-24

query I rowsort
SELECT ALL ( 42 ) AS col2
----
42

query I rowsort
SELECT - 3 + + 61 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL ( MIN( - + 95 ) ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL ( MIN ( - + 95 ) ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + MAX( DISTINCT 98 ) * + 36 * 92 - + 27
----
324549

skipif mysql # not compatible
query I rowsort label-6052
SELECT + MAX ( DISTINCT 98 ) * + 36 * 92 - + 27
----
324549

query I rowsort
SELECT + 7 + - 52 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6054
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 46 AS col0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6054
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 46 AS col0
----
NULL
46

query I rowsort
SELECT ( + 31 ) AS col2
----
31

query I rowsort
SELECT ( + 16 )
----
16

query I rowsort
SELECT ( + NULLIF ( + - 48, 54 ) ) AS col0
----
-48

query I rowsort
SELECT + 24 * - + 1 AS col1
----
-24

query I rowsort
SELECT + ( + ( + 95 ) ) AS col1
----
95

query I rowsort
SELECT + 11 - - - 88
----
-77

query I rowsort
SELECT + ( + + 49 ) col0
----
49

query II rowsort
SELECT ALL + 76, - 10 AS col2
----
76
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT + 29 * + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6063
SELECT + 29 * + COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT - CAST( - 99 AS SIGNED ) * - 26 + + ( COUNT( * ) ) + 26 * - 29 + 10 AS col1
----
-3317

skipif mysql # not compatible
query I rowsort label-6064
SELECT - CAST ( - 99 AS INTEGER ) * - 26 + + ( COUNT ( * ) ) + 26 * - 29 + 10 AS col1
----
-3317

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6065
SELECT CASE 46 WHEN - ( 8 ) * + + 31 * - 7 + + 72 + - COUNT( * ) * + + 84 THEN NULL WHEN + ( - 28 ) / - 39 + + ( - CAST( NULL AS DECIMAL ) ) THEN - NULLIF ( + - ( + 99 ), + 91 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT CASE 46 WHEN - ( 8 ) * + + 31 * - 7 + + 72 + - COUNT ( * ) * + + 84 THEN NULL WHEN + ( - 28 ) / - 39 + + ( - CAST ( NULL AS REAL ) ) THEN - NULLIF ( + - ( + 99 ), + 91 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 63 * + ( 38 ) + 71 + + 53
----
-2270

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT ALL 78 * 53 + 19 + + COUNT( * ) col1
----
4154

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL 78 * 53 + 19 + + COUNT ( * ) col1
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT + COUNT( * ) - + ( 9 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6068
SELECT + COUNT ( * ) - + ( 9 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT DISTINCT - 54 * + COUNT( ALL + 20 ) + + 46 + - 15 - 97 + - + 7 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - 54 * + COUNT ( ALL + 20 ) + + 46 + - 15 - 97 + - + 7 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT + 62 - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-6070
SELECT + 62 - + COUNT ( * )
----
61

query I rowsort
SELECT ALL - 87 * 96
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT - COUNT( - 65 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6072
SELECT - COUNT ( - 65 ) AS col2
----
-1

query I rowsort
SELECT + 29 + 75
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6074
SELECT - + 16 DIV + - SUM( + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT - + 16 / + - SUM ( + 61 )
----
0

query I rowsort
SELECT - + 57 - NULLIF ( + - 68, 7 ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT DISTINCT COUNT( * ) col1, 58 col2
----
1
58

skipif mysql # not compatible
query II rowsort label-6076
SELECT DISTINCT COUNT ( * ) col1, 58 col2
----
1
58

query I rowsort
SELECT ALL - ( 20 ) - 79
----
-99

query I rowsort
SELECT + - 71 * 58 * 4 col1
----
-16472

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT ALL + - 11 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + - 11 / + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - CASE + 69 WHEN 9 THEN + - 80 END / SUM( - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT - CASE + 69 WHEN 9 THEN + - 80 END / SUM ( - 98 )
----
NULL

query II rowsort
SELECT ALL + 15, 86 + + 56 AS col2
----
15
142

query II rowsort
SELECT - + 2 AS col1, - 35
----
-2
-35

query I rowsort
SELECT ALL - + 98 - - 18 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL + - 35 * + + COUNT( * ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL + - 35 * + + COUNT ( * ) col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT ALL + + 19 DIV + 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + + 19 / + 63 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT + - 94 + - 43 + + MAX( - 25 ) + + 74 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6086
SELECT + - 94 + - 43 + + MAX ( - 25 ) + + 74 AS col0
----
-88

query I rowsort
SELECT + 25 + - - 19 * + 62
----
1203

query I rowsort
SELECT ALL - 7 * + 35
----
-245

query I rowsort
SELECT - ( - + ( - + 2 ) ) + 4 * + 9 * 80
----
2878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6090
SELECT - CAST( NULL AS SIGNED ) / 50 AS col1, - CASE - + CAST( NULL AS SIGNED ) WHEN 15 THEN + - COUNT( * ) WHEN + 6 THEN NULL END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6090
SELECT - CAST ( NULL AS INTEGER ) / 50 AS col1, - CASE - + CAST ( NULL AS INTEGER ) WHEN 15 THEN + - COUNT ( * ) WHEN + 6 THEN NULL END AS col2
----
NULL
NULL

query II rowsort
SELECT ALL - 8 * 0 AS col1, + ( + - 62 )
----
0
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT 6 + - 7 * - + SUM( + - 16 ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-6092
SELECT 6 + - 7 * - + SUM ( + - 16 ) AS col0
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT - 34 DIV + 14 + 5 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6093
SELECT - 34 / + 14 + 5 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT 22 * - - COALESCE ( + + MAX( ALL + 11 ), - + MAX( DISTINCT - - ( 51 ) ) DIV + 92 - + 75 ) AS col2
----
242

skipif mysql # not compatible
query I rowsort label-6094
SELECT 22 * - - COALESCE ( + + MAX ( ALL + 11 ), - + MAX ( DISTINCT - - ( 51 ) ) / + 92 - + 75 ) AS col2
----
242

query I rowsort
SELECT 25 + - 91 col2
----
-66

query I rowsort
SELECT ALL - 17 + - 17
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT COUNT( * ) * - 77 DIV MIN( ALL 67 ) * + 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6097
SELECT COUNT ( * ) * - 77 / MIN ( ALL 67 ) * + 8 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT - 71 * - COUNT( * ) + 13
----
84

skipif mysql # not compatible
query I rowsort label-6098
SELECT - 71 * - COUNT ( * ) + 13
----
84

query I rowsort
SELECT ALL + 45 * - + 21 AS col2
----
-945

query II rowsort
SELECT 12 * - 76 AS col1, + ( + 74 )
----
-912
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6101
SELECT COALESCE ( + 20, - COUNT( * ) * + 75 DIV + ( - - 95 ) + - 48 * - - 1 * - 41 + - - 31 ) * - + ( - + 8 ) + 60 * + + 83 - + - 25 AS col0
----
5165

skipif mysql # not compatible
query I rowsort label-6101
SELECT COALESCE ( + 20, - COUNT ( * ) * + 75 / + ( - - 95 ) + - 48 * - - 1 * - 41 + - - 31 ) * - + ( - + 8 ) + 60 * + + 83 - + - 25 AS col0
----
5165

query I rowsort
SELECT 25 * + + 90
----
2250

onlyif mysql # aggregate syntax: 
query II rowsort label-6103
SELECT ALL ( + - 7 ) + - - MIN( ALL + 14 ) * - 64 col1, MIN( ALL + 36 ) * - 55
----
-903
-1980

skipif mysql # not compatible
query II rowsort label-6103
SELECT ALL ( + - 7 ) + - - MIN ( ALL + 14 ) * - 64 col1, MIN ( ALL + 36 ) * - 55
----
-903
-1980

query I rowsort
SELECT ALL + ( - 43 ) * - 62 + + + 48 AS col1
----
2714

query I rowsort
SELECT ALL - 32 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT DISTINCT - 80 + + CAST( 34 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - 80 + + CAST ( 34 AS INTEGER ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT + - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT - MIN( DISTINCT + ( - 54 ) ) + 80
----
134

skipif mysql # not compatible
query I rowsort label-6108
SELECT - MIN ( DISTINCT + ( - 54 ) ) + 80
----
134

query I rowsort
SELECT - ( - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT 55 + + ( + + NULLIF ( - - 2, + - MIN( ALL - 11 ) * 49 + + 29 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6110
SELECT 55 + + ( + + NULLIF ( - - 2, + - MIN ( ALL - 11 ) * 49 + + 29 ) ) AS col2
----
57

query I rowsort
SELECT ( - NULLIF ( 15, 44 * - 27 * 13 ) ) * 67 * 82 + + 88 * - 41 + 47 AS col0
----
-85971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT ALL + SUM( 75 ) DIV + - 41
----
-1

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + SUM ( 75 ) / + - 41
----
-1

query II rowsort
SELECT 2 + + + 28, + 87 AS col1
----
30
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT ( - 45 ) * + 6 + 89 DIV ( + + 35 ) + 8 AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-6114
SELECT ( - 45 ) * + 6 + 89 / ( + + 35 ) + 8 AS col0
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT ALL CASE + 26 WHEN - 72 THEN - COUNT( * ) * - 57 + + - 48 * - AVG ( - 56 ) END - 28 + - + 87 * - 51 * ( + + 5 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL CASE + 26 WHEN - 72 THEN - COUNT ( * ) * - 57 + + - 48 * - AVG ( - 56 ) END - 28 + - + 87 * - 51 * ( + + 5 ) col0
----
NULL

query I rowsort
SELECT 94 * + 75
----
7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT 25 + + - 41 * + COALESCE ( - 33, + 45 * - + CAST( NULL AS SIGNED ), - + 66 ) * 21 * - 79 * + 78
----
-175080881

skipif mysql # not compatible
query I rowsort label-6117
SELECT 25 + + - 41 * + COALESCE ( - 33, + 45 * - + CAST ( NULL AS INTEGER ), - + 66 ) * 21 * - 79 * + 78
----
-175080881

query I rowsort
SELECT - 63 * 35 col1
----
-2205

query I rowsort
SELECT ALL + 15 * - 53
----
-795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6120
SELECT + 29 * - 11 / + + MAX( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT + 29 * - 11 / + + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ( 96 ) * SUM( - - 86 )
----
8256

skipif mysql # not compatible
query I rowsort label-6121
SELECT ( 96 ) * SUM ( - - 86 )
----
8256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT CAST( + 70 AS SIGNED ) + - CAST( NULL AS SIGNED ) + - - 37 * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT CAST ( + 70 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - - 37 * - 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL + COUNT( * ) + + 84 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + COUNT ( * ) + + 84 AS col2
----
85

query I rowsort
SELECT 16 * 62 AS col0
----
992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6125
SELECT ALL CASE 40 WHEN - - COUNT( * ) / - - 28 + + 67 + 16 THEN COALESCE ( + 89, + + COUNT( DISTINCT 31 ) ) * - + 49 WHEN + COUNT( DISTINCT ( 15 ) ) * + 20 * + - CASE + + 4 WHEN - 46 THEN - + 4 WHEN - CAST( NULL AS SIGNED ) THEN NULL END THEN - - 94 END + - + CAST( NULL AS SIGNED ) * - 61 AS col0, 48 + - 1 * + 37 * + + CAST( + 8 AS SIGNED ) AS col1
----
NULL
-248

skipif mysql # not compatible
query II rowsort label-6125
SELECT ALL CASE 40 WHEN - - COUNT ( * ) / - - 28 + + 67 + 16 THEN COALESCE ( + 89, + + COUNT ( DISTINCT 31 ) ) * - + 49 WHEN + COUNT ( DISTINCT ( 15 ) ) * + 20 * + - CASE + + 4 WHEN - 46 THEN - + 4 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END THEN - - 94 END + - + CAST ( NULL AS INTEGER ) * - 61 AS col0, 48 + - 1 * + 37 * + + CAST ( + 8 AS INTEGER ) AS col1
----
NULL
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6126
SELECT DISTINCT - ( - CASE MAX( DISTINCT 73 ) WHEN - - 0 * - 59 - NULLIF ( - + 24, + 15 ) * - 90 * 19 + + 47 + - 1 + + + COUNT( * ) THEN - 69 + - + 42 - COUNT( * ) END ) * 8 - + 21 * + COALESCE ( + - 77, - 59 + + 90 + - CASE + - 86 WHEN - 42 THEN + 23 ELSE - CAST( - COALESCE ( 6, 21 + - 59 ) AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT - ( - CASE MAX ( DISTINCT 73 ) WHEN - - 0 * - 59 - NULLIF ( - + 24, + 15 ) * - 90 * 19 + + 47 + - 1 + + + COUNT ( * ) THEN - 69 + - + 42 - COUNT ( * ) END ) * 8 - + 21 * + COALESCE ( + - 77, - 59 + + 90 + - CASE + - 86 WHEN - 42 THEN + 23 ELSE - CAST ( - COALESCE ( 6, 21 + - 59 ) AS INTEGER ) END ) AS col2
----
NULL

query I rowsort
SELECT 6 * + 31 AS col0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT ALL + ( + 0 ) + - + COUNT( * ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + ( + 0 ) + - + COUNT ( * ) / + 75
----
0

query I rowsort
SELECT ( + - ( - + CASE - - 29 WHEN - - AVG ( DISTINCT + + 4 ) - + 93 THEN + 70 WHEN - - 38 THEN NULL END ) ) * - + 53 + + 67 + + 45
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6130
SELECT 51 + COUNT( * ) + - 58 DIV + NULLIF ( 81, 40 - - SUM( ALL + 6 ) DIV 29 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6130
SELECT 51 + COUNT ( * ) + - 58 / + NULLIF ( 81, 40 - - SUM ( ALL + 6 ) / 29 ) AS col1
----
52

query II rowsort
SELECT + 15, + 78 + + 20 col2
----
15
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6132
SELECT ALL - CAST( 38 AS SIGNED ) + + 12 AS col1, 22
----
-26
22

skipif mysql # not compatible
query II rowsort label-6132
SELECT ALL - CAST ( 38 AS INTEGER ) + + 12 AS col1, 22
----
-26
22

query I rowsort
SELECT 31 * + 1 AS col1
----
31

query I rowsort
SELECT ALL 88 * 90
----
7920

query I rowsort
SELECT ALL COALESCE ( - 0, 95 ) * + ( - 97 )
----
0

query I rowsort
SELECT 41 * + 2 col0
----
82

query I rowsort
SELECT ALL - ( - 44 ) AS col1
----
44

query I rowsort
SELECT DISTINCT + ( + 12 ) + 8 AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT + 37 AS col0, + NULLIF ( COUNT( * ), - - 29 ) * - - MAX( ALL - 4 )
----
37
-4

skipif mysql # not compatible
query II rowsort label-6139
SELECT + 37 AS col0, + NULLIF ( COUNT ( * ), - - 29 ) * - - MAX ( ALL - 4 )
----
37
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6140
SELECT + 87, - 66 + CASE + 8 WHEN 62 * + - 0 THEN + 47 + - - 6 END + + + COUNT( * ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6140
SELECT + 87, - 66 + CASE + 8 WHEN 62 * + - 0 THEN + 47 + - - 6 END + + + COUNT ( * ) AS col2
----
87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT 39 + - 25 + + 46 * + - ( - ( + 44 ) ) * 39 DIV + 3 + + 14 AS col2
----
26340

skipif mysql # not compatible
query I rowsort label-6141
SELECT 39 + - 25 + + 46 * + - ( - ( + 44 ) ) * 39 / + 3 + + 14 AS col2
----
26340

onlyif mysql # aggregate syntax: 
query II rowsort label-6142
SELECT + 38 col1, + COUNT( * ) col0
----
38
1

skipif mysql # not compatible
query II rowsort label-6142
SELECT + 38 col1, + COUNT ( * ) col0
----
38
1

query I rowsort
SELECT - 20 * + 60
----
-1200

query I rowsort
SELECT ALL 64 - + 43
----
21

query I rowsort
SELECT ALL - + 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT - - 77 * - COUNT( * ) - - 43 + - 14 + 49
----
1

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT - - 77 * - COUNT ( * ) - - 43 + - 14 + 49
----
1

query I rowsort
SELECT 9 - - + 11 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6148
SELECT ALL - + MIN( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL - + MIN ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 91 AS col1, 13 AS col1
----
91
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL + + 64 - CAST( - 89 AS SIGNED )
----
153

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL + + 64 - CAST ( - 89 AS INTEGER )
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT + CAST( 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-6151
SELECT + CAST ( 64 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT + COUNT( * ) + - - 67 + - - 54 * - 53
----
-2794

skipif mysql # not compatible
query I rowsort label-6152
SELECT + COUNT ( * ) + - - 67 + - - 54 * - 53
----
-2794

query I rowsort
SELECT - - 78 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT DISTINCT - 50 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT - 50 / 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6155
SELECT ALL COALESCE ( 16, + 22 - + + 4 ) col1, CAST( NULL AS SIGNED ) AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6155
SELECT ALL COALESCE ( 16, + 22 - + + 4 ) col1, CAST ( NULL AS INTEGER ) AS col0
----
16
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT - 49 / + 67 + - ( AVG ( + 78 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT - 49 / + 67 + - ( AVG ( + 78 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6157
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ), COUNT( ALL - CASE ( 52 ) WHEN - 17 THEN - 13 ELSE NULL END ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6157
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ), COUNT ( ALL - CASE ( 52 ) WHEN - 17 THEN - 13 ELSE NULL END ) AS col0
----
NULL
0

query I rowsort
SELECT DISTINCT ( + + 21 ) * - 56 AS col0
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6159
SELECT ALL COUNT( * ) + + 91 + - COUNT( * ) * CAST( 65 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL COUNT ( * ) + + 91 + - COUNT ( * ) * CAST ( 65 AS INTEGER ) AS col1
----
27

query I rowsort
SELECT + 12 + + 26 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT - NULLIF ( COUNT( * ), - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-6161
SELECT - NULLIF ( COUNT ( * ), - 83 )
----
-1

query I rowsort
SELECT + 89 + + - 54 AS col0
----
35

query I rowsort
SELECT - 94 * - - 33 AS col2
----
-3102

query I rowsort
SELECT DISTINCT 12 * 11
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT + 82 + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6165
SELECT + 82 + - COUNT ( * )
----
81

query I rowsort
SELECT ALL + NULLIF ( - 33, - 12 * + 31 * 78 ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6167
SELECT + MIN( - 81 ) / - - 70 + + - 73 + + COUNT( * ) + - 14 + - + MAX( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) / - 96 * - ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT + MIN ( - 81 ) / - - 70 + + - 73 + + COUNT ( * ) + - 14 + - + MAX ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) / - 96 * - ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL - 71 * + COUNT( * ) - + 8 * - + 83
----
593

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL - 71 * + COUNT ( * ) - + 8 * - + 83
----
593

query II rowsort
SELECT ( + 9 ), 33 * - 31 AS col0
----
9
-1023

query I rowsort
SELECT - 11 + - 90
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT 55 * + 94 + + 4 * - CAST( NULL AS SIGNED ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT 55 * + 94 + + 4 * - CAST ( NULL AS INTEGER ) + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT - 9 DIV - 71 * - COALESCE ( - - 63, - 84 ) DIV + COUNT( * ) * - - COUNT( * ) + - ( - - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-6172
SELECT - 9 / - 71 * - COALESCE ( - - 63, - 84 ) / + COUNT ( * ) * - - COUNT ( * ) + - ( - - 96 )
----
-96

query I rowsort
SELECT + 95 + 30
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL + 28 * - COUNT( DISTINCT + 43 ) + 55
----
27

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + 28 * - COUNT ( DISTINCT + 43 ) + 55
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6175
SELECT - - 59 * + ( ( 23 ) ) + - 49 DIV + SUM( DISTINCT - 84 ) - + 51 * 67 + + 89 * 80 AS col2
----
5060

skipif mysql # not compatible
query I rowsort label-6175
SELECT - - 59 * + ( ( 23 ) ) + - 49 / + SUM ( DISTINCT - 84 ) - + 51 * 67 + + 89 * 80 AS col2
----
5060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6176
SELECT DISTINCT - CAST( - 30 AS SIGNED ) * - + ( - 33 ) * - + COUNT( * ) + 97 * 27, 95 AS col2
----
1629
95

skipif mysql # not compatible
query II rowsort label-6176
SELECT DISTINCT - CAST ( - 30 AS INTEGER ) * - + ( - 33 ) * - + COUNT ( * ) + 97 * 27, 95 AS col2
----
1629
95

query I rowsort
SELECT DISTINCT 96 * + 46
----
4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6178
SELECT 9 * 29 + - 88 + 7 DIV + COUNT( * ) + 71 + + 26 - + - SUM( ALL + 10 ) - - 90 + - + 95 + - 98 * ( - MAX( ALL - 18 ) ) + - 16 AS col0
----
-1498

skipif mysql # not compatible
query I rowsort label-6178
SELECT 9 * 29 + - 88 + 7 / + COUNT ( * ) + 71 + + 26 - + - SUM ( ALL + 10 ) - - 90 + - + 95 + - 98 * ( - MAX ( ALL - 18 ) ) + - 16 AS col0
----
-1498

query I rowsort
SELECT + 84 * - + 52 * + - 42
----
183456

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - - 7 + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6180
SELECT - - 7 + - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT + - 3
----
-3

query I rowsort
SELECT - 16 * + ( + 38 ) + - 5
----
-613

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT - - 99 * 50 * + + SUM( ALL 79 )
----
391050

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT - - 99 * 50 * + + SUM ( ALL 79 )
----
391050

query I rowsort
SELECT ALL + + 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT CASE - COUNT( * ) WHEN 2 THEN COALESCE ( 78, 96 * - AVG ( + 77 ) * - 83, + - ( 18 ) / - 21 - 82 ) ELSE COUNT( 27 ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6185
SELECT CASE - COUNT ( * ) WHEN 2 THEN COALESCE ( 78, 96 * - AVG ( + 77 ) * - 83, + - ( 18 ) / - 21 - 82 ) ELSE COUNT ( 27 ) END AS col2
----
1

query I rowsort
SELECT - 56 + + 57 - + 53 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT DISTINCT COUNT( * ) * COUNT( * ) + + 38 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + + 38 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 49 + - - 96 + 86 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT - COUNT( * ) * - 14
----
14

skipif mysql # not compatible
query I rowsort label-6189
SELECT - COUNT ( * ) * - 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + 42 + + 38 - - + 82 + + 96 + + - MIN( ALL + 75 ) col1
----
183

skipif mysql # not compatible
query I rowsort label-6190
SELECT + 42 + + 38 - - + 82 + + 96 + + - MIN ( ALL + 75 ) col1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT ALL CAST( + 82 AS SIGNED ) col0
----
82

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL CAST ( + 82 AS INTEGER ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT + 77 * + MAX( DISTINCT + 62 ) AS col0
----
4774

skipif mysql # not compatible
query I rowsort label-6192
SELECT + 77 * + MAX ( DISTINCT + 62 ) AS col0
----
4774

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT - COUNT( * ), 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-6193
SELECT - COUNT ( * ), 93 AS col2
----
-1
93

query I rowsort
SELECT + 95 + + 82 col0
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT ALL COALESCE ( - 51, - - 70, + - 34 DIV - + 64 * + + 85 * + + COUNT( * ) ) + - 40
----
-91

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL COALESCE ( - 51, - - 70, + - 34 / - + 64 * + + 85 * + + COUNT ( * ) ) + - 40
----
-91

query I rowsort
SELECT - 6 * + 24 AS col0
----
-144

query I rowsort
SELECT DISTINCT ( - 83 ) AS col0
----
-83

query I rowsort
SELECT ALL ( - + 53 )
----
-53

query I rowsort
SELECT + 41 * 80
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL 53 * + + COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL 53 * + + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT - 47 * - 70 AS col1
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT 58 * - 42 * + COUNT( * ) * 59 * + + 58 AS col0
----
-8335992

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT 58 * - 42 * + COUNT ( * ) * 59 * + + 58 AS col0
----
-8335992

query I rowsort
SELECT - ( + 94 ) AS col2
----
-94

query I rowsort
SELECT ALL 93 * - 46 * 21 AS col0
----
-89838

query I rowsort
SELECT + 5 * 18
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6206
SELECT + + 38 * 34 * NULLIF ( 65, - CAST( NULL AS DECIMAL ) / - 28 * 81 + + 2 ) col0
----
83980

skipif mysql # not compatible
query I rowsort label-6206
SELECT + + 38 * 34 * NULLIF ( 65, - CAST ( NULL AS REAL ) / - 28 * 81 + + 2 ) col0
----
83980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6207
SELECT + COALESCE ( + 93, - 8 - 90, + 84, - 38 * + 31 DIV - MAX( DISTINCT + 12 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6207
SELECT + COALESCE ( + 93, - 8 - 90, + 84, - 38 * + 31 / - MAX ( DISTINCT + 12 ) ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6208
SELECT ALL 64 DIV - - 97 - 13
----
-13

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL 64 / - - 97 - 13
----
-13

query II rowsort
SELECT + + 53 AS col0, 7 + - 16
----
53
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL + - MIN( 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + - MIN ( 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6211
SELECT + 95 AS col2, + 1 + COUNT( * ) * + + 25
----
95
26

skipif mysql # not compatible
query II rowsort label-6211
SELECT + 95 AS col2, + 1 + COUNT ( * ) * + + 25
----
95
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT + - 22 DIV - 44 - 26
----
-26

skipif mysql # not compatible
query I rowsort label-6212
SELECT + - 22 / - 44 - 26
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT ALL - 16 DIV + 1 + 41
----
25

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - 16 / + 1 + 41
----
25

query I rowsort
SELECT + 82 + + 73 * + - 74 - - 11
----
-5309

query I rowsort
SELECT + + ( + ( + 91 ) ) + 49
----
140

query I rowsort
SELECT + + 15 col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT + - 61 DIV + 56 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6217
SELECT + - 61 / + 56 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT - MAX( CAST( NULL AS SIGNED ) ) * + 11 * + 13 * - 11 + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) * + 11 * + 13 * - 11 + + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT - 23 + - + COUNT( * ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT - 23 + - + COUNT ( * ) col0
----
-24

query II rowsort
SELECT DISTINCT 97 + + 5 * 46 * + - ( - 60 ) * - + 68 AS col2, + 54 AS col1
----
-938303
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT ALL + + 84 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + + 84 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT ALL CAST( NULL AS SIGNED ) * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL CAST ( NULL AS INTEGER ) * 27 AS col2
----
NULL

query I rowsort
SELECT - 54 * - 27 AS col2
----
1458

onlyif mysql # aggregate syntax: 
query II rowsort label-6224
SELECT + 79 AS col1, COUNT( + + 47 )
----
79
1

skipif mysql # not compatible
query II rowsort label-6224
SELECT + 79 AS col1, COUNT ( + + 47 )
----
79
1

query II rowsort
SELECT 20 AS col0, + 23
----
20
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT ALL + 90 + + COUNT( * ) * - 14
----
76

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + 90 + + COUNT ( * ) * - 14
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT COUNT( * ) * ( + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT COUNT ( * ) * ( + 0 ) AS col2
----
0

query I rowsort
SELECT 41 * - ( 86 ) * + 30 AS col0
----
-105780

query I rowsort
SELECT DISTINCT - 18 + - 29 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6230
SELECT 6 AS col0, ( - + SUM( ALL - + 31 ) ) AS col0
----
6
31

skipif mysql # not compatible
query II rowsort label-6230
SELECT 6 AS col0, ( - + SUM ( ALL - + 31 ) ) AS col0
----
6
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL - COALESCE ( - 73, 58, - 76 ) * 27 - - 40 * - - 10 * - + COUNT( * ) AS col0
----
1571

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - COALESCE ( - 73, 58, - 76 ) * 27 - - 40 * - - 10 * - + COUNT ( * ) AS col0
----
1571

query II rowsort
SELECT - 45, - 36 AS col1
----
-45
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6233
SELECT ALL 46 AS col0, 94 * NULLIF ( + 36, - MIN( 78 ) ) AS col2
----
46
3384

skipif mysql # not compatible
query II rowsort label-6233
SELECT ALL 46 AS col0, 94 * NULLIF ( + 36, - MIN ( 78 ) ) AS col2
----
46
3384

query I rowsort
SELECT DISTINCT + 73 - + 39 * + - ( + 59 ) * 52 AS col2
----
119725

onlyif mysql # aggregate syntax: 
query III rowsort label-6235
SELECT 36 AS col0, COUNT( * ) * + ( + 18 ) AS col2, + 72 * - 74 - - 94 AS col2
----
36
18
-5234

skipif mysql # not compatible
query III rowsort label-6235
SELECT 36 AS col0, COUNT ( * ) * + ( + 18 ) AS col2, + 72 * - 74 - - 94 AS col2
----
36
18
-5234

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT DISTINCT + CASE 18 WHEN + - 94 THEN - + 97 WHEN + COUNT( * ) + + 88 THEN NULL END * - NULLIF ( + 43, 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + CASE 18 WHEN + - 94 THEN - + 97 WHEN + COUNT ( * ) + + 88 THEN NULL END * - NULLIF ( + 43, 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6237
SELECT 31 + - + CAST( + COUNT( * ) AS SIGNED ) + + 98 col1, 14 AS col2
----
128
14

skipif mysql # not compatible
query II rowsort label-6237
SELECT 31 + - + CAST ( + COUNT ( * ) AS INTEGER ) + + 98 col1, 14 AS col2
----
128
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT 50 + + - 73 * - - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6238
SELECT 50 + + - 73 * - - COUNT ( * ) AS col1
----
-23

query I rowsort
SELECT 56 * + - 63
----
-3528

query II rowsort
SELECT DISTINCT 23 AS col2, 68
----
23
68

query I rowsort
SELECT ALL + CASE 92 WHEN - 66 THEN NULL ELSE - 37 + + 43 END AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6242
SELECT DISTINCT + CASE + + 41 WHEN + - 77 THEN NULL ELSE + 2 * - 42 * - + 22 END DIV + 57 * - - COALESCE ( - COUNT( * ), + - ( + - CASE - - CAST( NULL AS DECIMAL ) WHEN + 61 THEN + 97 + 85 END ) * + 26, + 92 - - 17 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT + CASE + + 41 WHEN + - 77 THEN NULL ELSE + 2 * - 42 * - + 22 END / + 57 * - - COALESCE ( - COUNT ( * ), + - ( + - CASE - - CAST ( NULL AS REAL ) WHEN + 61 THEN + 97 + 85 END ) * + 26, + 92 - - 17 ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6243
SELECT + - COUNT( * ) / 96 - - SUM( 77 ) + + + 43 * ( + ( 61 ) ) * - ( - 72 ) * 70 + - ( - - COUNT( * ) ) + - - CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6243
SELECT + - COUNT ( * ) / 96 - - SUM ( 77 ) + + + 43 * ( + ( 61 ) ) * - ( - 72 ) * 70 + - ( - - COUNT ( * ) ) + - - CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - ( + MAX( - 69 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6244
SELECT - ( + MAX ( - 69 ) ) AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6245
SELECT + CASE + + 20 WHEN + - ( - 46 ) THEN - 29 + - 3 + + COUNT( * ) + - + CAST( 88 AS SIGNED ) END, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6245
SELECT + CASE + + 20 WHEN + - ( - 46 ) THEN - 29 + - 3 + + COUNT ( * ) + - + CAST ( 88 AS INTEGER ) END, - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT DISTINCT - ( - + 29 )
----
29

query I rowsort
SELECT 25 * + 8 AS col2
----
200

query I rowsort
SELECT DISTINCT 14 + 25 AS col2
----
39

query II rowsort
SELECT ALL - - 19 AS col2, 46
----
19
46

query I rowsort
SELECT 86 * - 54 AS col1
----
-4644

query I rowsort
SELECT ALL + 27 + + 97 AS col0
----
124

query I rowsort
SELECT ALL 41 + + ( - 34 ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT + CAST( 82 AS SIGNED ) + + + 1 DIV + 13 * - 83 col2
----
82

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + CAST ( 82 AS INTEGER ) + + + 1 / + 13 * - 83 col2
----
82

query II rowsort
SELECT ALL - - 85, 74 col0
----
85
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT - 74 * 89 + - - ( + COUNT( * ) ) AS col0
----
-6585

skipif mysql # not compatible
query I rowsort label-6255
SELECT - 74 * 89 + - - ( + COUNT ( * ) ) AS col0
----
-6585

query II rowsort
SELECT ALL - 53 AS col1, - 55 + - 73 AS col0
----
-53
-128

query I rowsort
SELECT DISTINCT - - NULLIF ( + 59, 34 * + + 46 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6258
SELECT - 9, 44 + + MAX( DISTINCT - 40 ) DIV - 37 AS col0
----
-9
45

skipif mysql # not compatible
query II rowsort label-6258
SELECT - 9, 44 + + MAX ( DISTINCT - 40 ) / - 37 AS col0
----
-9
45

query I rowsort
SELECT 73 + 45 * + 71 AS col0
----
3268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT CAST( NULL AS SIGNED ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT CAST ( NULL AS INTEGER ) * + 29
----
NULL

query I rowsort
SELECT 41 - 42
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT CAST ( NULL AS INTEGER ) * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL COUNT( * ) * + 54 col2
----
54

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL COUNT ( * ) * + 54 col2
----
54

onlyif mysql # DIV for integer division: 
query II rowsort label-6264
SELECT 44 DIV + 26 AS col2, - 16 col2
----
1
-16

skipif mysql # not compatible
query II rowsort label-6264
SELECT 44 / + 26 AS col2, - 16 col2
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT NULLIF ( + 8, - COUNT( * ) ) * - 42 + - 51
----
-387

skipif mysql # not compatible
query I rowsort label-6265
SELECT NULLIF ( + 8, - COUNT ( * ) ) * - 42 + - 51
----
-387

query I rowsort
SELECT 66 + - ( + - 1 ) AS col1
----
67

query I rowsort
SELECT 79 * - 97
----
-7663

query I rowsort
SELECT ( - 97 ) * 39
----
-3783

query I rowsort
SELECT ALL 67 col0
----
67

query I rowsort
SELECT DISTINCT + 51 * + - ( - - COALESCE ( - 85, 47 ) ) AS col2
----
4335

query I rowsort
SELECT - ( - 52 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT + 37 - - - 84 / + ( ( CAST( NULL AS SIGNED ) ) ) + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT + 37 - - - 84 / + ( ( CAST ( NULL AS INTEGER ) ) ) + - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT + 11 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-6273
SELECT + 11 * - COUNT ( * )
----
-11

query I rowsort
SELECT ALL + 16 + - 5
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT DISTINCT + NULLIF ( - - CAST( 77 AS SIGNED ), + 82 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + NULLIF ( - - CAST ( 77 AS INTEGER ), + 82 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6276
SELECT - SUM( - NULLIF ( CAST( 7 AS SIGNED ), 54 ) ) DIV - ( + 1 )
----
-7

skipif mysql # not compatible
query I rowsort label-6276
SELECT - SUM ( - NULLIF ( CAST ( 7 AS INTEGER ), 54 ) ) / - ( + 1 )
----
-7

query I rowsort
SELECT DISTINCT + + 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT ALL + 27 * - 22 * 49 + - - 37 + + + 10 * + MIN( + 84 ) AS col1
----
-28229

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + 27 * - 22 * 49 + - - 37 + + + 10 * + MIN ( + 84 ) AS col1
----
-28229

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL + + SUM( + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL + + SUM ( + 21 ) AS col0
----
21

query I rowsort
SELECT DISTINCT + + 53 * + - 45 + + 51 - - + 84 AS col0
----
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6281
SELECT - 93 + CAST( + 87 AS SIGNED ) + - - 32
----
26

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 93 + CAST ( + 87 AS INTEGER ) + - - 32
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT + MAX( + - 48 ) - + COUNT( * ) * COALESCE ( 11, CAST( 53 AS SIGNED ) + 26 ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-6282
SELECT + MAX ( + - 48 ) - + COUNT ( * ) * COALESCE ( 11, CAST ( 53 AS INTEGER ) + 26 ) col1
----
-59

query I rowsort
SELECT ALL ( - CASE + + ( - - 94 ) WHEN - COALESCE ( - 57, - + 15 / + - 56 - - 98, 53 * + 51 * + + 71 * 39 * + 46 ) THEN 60 ELSE NULL END ) * ( - 47 ) / AVG ( ALL - 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT COUNT( * ) AS col1, + 7 AS col1
----
1
7

skipif mysql # not compatible
query II rowsort label-6284
SELECT COUNT ( * ) AS col1, + 7 AS col1
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL + 27 * + 19 * + + COUNT( * ) - + - COUNT( + 2 ) col1
----
514

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL + 27 * + 19 * + + COUNT ( * ) - + - COUNT ( + 2 ) col1
----
514

query I rowsort
SELECT DISTINCT + 18 * - 85 AS col1
----
-1530

query II rowsort
SELECT ALL + 96 AS col2, 92
----
96
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT + COUNT( * ) * + 65
----
65

skipif mysql # not compatible
query I rowsort label-6288
SELECT + COUNT ( * ) * + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL + COUNT( * ) * - ( - 18 ) * 62
----
1116

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + COUNT ( * ) * - ( - 18 ) * 62
----
1116

query II rowsort
SELECT + 18 + - 86 * + 82 * + - 61, - 99 AS col0
----
430190
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT MIN( ALL 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6291
SELECT MIN ( ALL 60 ) AS col1
----
60

query I rowsort
SELECT - 6 * 28
----
-168

query I rowsort
SELECT + ( - - 58 ) * - 26 + + 80
----
-1428

query I rowsort
SELECT + 24 - - - 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT MIN( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6295
SELECT MIN ( 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT - ( + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT - ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6297
SELECT - ( + ( - + 68 ) ), + COUNT( * ) + + 35 AS col0
----
68
36

skipif mysql # not compatible
query II rowsort label-6297
SELECT - ( + ( - + 68 ) ), + COUNT ( * ) + + 35 AS col0
----
68
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL 70 * - NULLIF ( + + 75, 96 ) * COUNT( * ) * - ( + 37 ) + + COUNT( - ( + - 60 ) )
----
194251

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL 70 * - NULLIF ( + + 75, 96 ) * COUNT ( * ) * - ( + 37 ) + + COUNT ( - ( + - 60 ) )
----
194251

query I rowsort
SELECT + 76 * + 17
----
1292

query II rowsort
SELECT DISTINCT 62 AS col0, + 5
----
62
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT ALL 68, + SUM( ( - + 57 ) ) AS col2
----
68
-57

skipif mysql # not compatible
query II rowsort label-6301
SELECT ALL 68, + SUM ( ( - + 57 ) ) AS col2
----
68
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL 34 * COUNT( + 28 )
----
34

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL 34 * COUNT ( + 28 )
----
34

query I rowsort
SELECT DISTINCT 93 + + 64 AS col2
----
157

query I rowsort
SELECT ALL + 38 + - - 17
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT + - CAST( NULL AS SIGNED ) * - + 54 + + 26 + + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT + - CAST ( NULL AS INTEGER ) * - + 54 + + 26 + + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL 51 + + + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL 51 + + + COUNT ( * ) AS col2
----
52

query I rowsort
SELECT + NULLIF ( + + 75, + CASE 27 WHEN + 54 * + 69 + - 68 * - + 98 THEN - 36 WHEN - 5 + 29 + ( 85 ) * + 90 THEN NULL ELSE 73 END + 18 * - 60 * - 28 ) + + 82 * + - 43
----
-3451

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT - MAX( ALL + 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6308
SELECT - MAX ( ALL + 92 ) AS col1
----
-92

query II rowsort
SELECT + 91, 4 AS col0
----
91
4

query I rowsort
SELECT + 35 + + 53 + - 63 AS col1
----
25

query I rowsort
SELECT - 4 - - + 53 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT - 18 - + NULLIF ( + 38, + 61 ) * - 57 + + ( 39 ) + - - COUNT( * ) + - CASE + 97 WHEN 23 * 71 * 84 / COUNT( * ) THEN + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT - 18 - + NULLIF ( + 38, + 61 ) * - 57 + + ( 39 ) + - - COUNT ( * ) + - CASE + 97 WHEN 23 * 71 * 84 / COUNT ( * ) THEN + 31 END
----
NULL

query I rowsort
SELECT - ( 30 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT + 62 + + 26 DIV - 71 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6314
SELECT + 62 + + 26 / - 71 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6315
SELECT DISTINCT COUNT( * ) + - 97 + + 95 + + 42 DIV 93 * 1 * - 96 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT COUNT ( * ) + - 97 + + 95 + + 42 / 93 * 1 * - 96 AS col0
----
-1

query I rowsort
SELECT ALL + + 90 + + 30 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT - + 99 + - MIN( - - 44 ) + + 18 col1
----
-125

skipif mysql # not compatible
query I rowsort label-6317
SELECT - + 99 + - MIN ( - - 44 ) + + 18 col1
----
-125

query I rowsort
SELECT ALL - 44 col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL COALESCE ( + COUNT( * ), 88 + ( + 99 ) + + 38, - - ( - + 90 ), + NULLIF ( 72, + 84 ) * - + 99 * + 22 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL COALESCE ( + COUNT ( * ), 88 + ( + 99 ) + + 38, - - ( - + 90 ), + NULLIF ( 72, + 84 ) * - + 99 * + 22 ) col0
----
1

query I rowsort
SELECT - ( - - 42 )
----
-42

query I rowsort
SELECT - + 49 + 90 AS col1
----
41

query I rowsort
SELECT + ( - 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT 83 * + 0 + - MIN( + + 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6323
SELECT 83 * + 0 + - MIN ( + + 70 ) AS col2
----
-70

query I rowsort
SELECT DISTINCT + + ( - 43 )
----
-43

query I rowsort
SELECT ( - + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL + CASE - 68 WHEN CASE + ( + - 5 ) WHEN - + ( - 65 ) * - COUNT( * ) - + 52 THEN + 16 WHEN - + 47 THEN CASE + 26 WHEN - 75 * 48 THEN NULL ELSE + ( + 83 ) + + 59 + - 98 * - 98 * - 43 * ( + ( - 65 ) ) END END THEN - 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + CASE - 68 WHEN CASE + ( + - 5 ) WHEN - + ( - 65 ) * - COUNT ( * ) - + 52 THEN + 16 WHEN - + 47 THEN CASE + 26 WHEN - 75 * 48 THEN NULL ELSE + ( + 83 ) + + 59 + - 98 * - 98 * - 43 * ( + ( - 65 ) ) END END THEN - 31 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT ALL - COUNT( * ) DIV - ( + 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - COUNT ( * ) / - ( + 88 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT - 42 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT - 42 / 71
----
0

query I rowsort
SELECT DISTINCT + ( + 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL 30 * - SUM( ALL + 8 ) AS col0
----
-240

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL 30 * - SUM ( ALL + 8 ) AS col0
----
-240

query I rowsort
SELECT ALL + ( 52 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT ALL - 41 DIV 18
----
-2

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - 41 / 18
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6333
SELECT - 24 + - - 36 - - - ( CAST( NULL AS DECIMAL ) ) + ( + 48 ) - - + 94 * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT - 24 + - - 36 - - - ( CAST ( NULL AS REAL ) ) + ( + 48 ) - - + 94 * 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - COUNT( * ) + + MIN( ALL - 43 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6334
SELECT - COUNT ( * ) + + MIN ( ALL - 43 ) AS col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT + 6 - + + 26 DIV - 84 col1
----
6

skipif mysql # not compatible
query I rowsort label-6335
SELECT + 6 - + + 26 / - 84 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT + MIN( DISTINCT 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6336
SELECT + MIN ( DISTINCT 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT - MIN( - 12 ) * + - COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT - MIN ( - 12 ) * + - COUNT ( * ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT DISTINCT + CASE - - 42 WHEN ( + 76 ) * - + COALESCE ( + 38, 71 + 14 ) + COUNT( * ) - 65 + 37 + - ( + 56 ) + CAST( NULL AS SIGNED ) - 94 + - - 71 THEN NULL WHEN - CAST( - + ( - + 50 ) AS SIGNED ) THEN + 87 * - - 0 * 74 + 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + CASE - - 42 WHEN ( + 76 ) * - + COALESCE ( + 38, 71 + 14 ) + COUNT ( * ) - 65 + 37 + - ( + 56 ) + CAST ( NULL AS INTEGER ) - 94 + - - 71 THEN NULL WHEN - CAST ( - + ( - + 50 ) AS INTEGER ) THEN + 87 * - - 0 * 74 + 85 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6339
SELECT ALL CAST( 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL CAST ( 16 AS INTEGER ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6340
SELECT DISTINCT CASE - + 13 WHEN + 50 THEN - + 40 * + COUNT( - 92 ) + 91 * + - COUNT( * ) DIV + + 27 + - COUNT( DISTINCT - - 31 ) * - 24 * - 74 WHEN + 91 THEN - 79 ELSE + CAST( + 4 AS SIGNED ) * 62 + + 65 * - 9 + - CAST( 64 AS SIGNED ) + - CAST( - - ( - + 76 ) AS SIGNED ) END * 92 + + + 2 - 84 AS col0
----
-29982

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT CASE - + 13 WHEN + 50 THEN - + 40 * + COUNT ( - 92 ) + 91 * + - COUNT ( * ) / + + 27 + - COUNT ( DISTINCT - - 31 ) * - 24 * - 74 WHEN + 91 THEN - 79 ELSE + CAST ( + 4 AS INTEGER ) * 62 + + 65 * - 9 + - CAST ( 64 AS INTEGER ) + - CAST ( - - ( - + 76 ) AS INTEGER ) END * 92 + + + 2 - 84 AS col0
----
-29982

query I rowsort
SELECT ALL COALESCE ( + 61, - CASE + 41 WHEN 41 THEN + 24 + + 35 WHEN + + 59 THEN - - 14 END ) * - + ( 9 ) + - 15
----
-564

query I rowsort
SELECT - 34 * - NULLIF ( - ( - ( - 5 ) ), COALESCE ( 9, 78 * + 41 ) ) AS col1
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6343
SELECT - CAST( - 5 AS SIGNED ) AS col1, + 73 AS col2
----
5
73

skipif mysql # not compatible
query II rowsort label-6343
SELECT - CAST ( - 5 AS INTEGER ) AS col1, + 73 AS col2
----
5
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT ALL 63 DIV COUNT( * ) DIV + - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL 63 / COUNT ( * ) / + - COUNT ( * ) AS col0
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT + 32 DIV - + 37 + + 45 * + 20
----
900

skipif mysql # not compatible
query I rowsort label-6345
SELECT + 32 / - + 37 + + 45 * + 20
----
900

query I rowsort
SELECT 69 * - + 13 AS col1
----
-897

onlyif mysql # aggregate syntax: 
query II rowsort label-6347
SELECT ALL MAX( - - 60 ), + 50 AS col1
----
60
50

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL MAX ( - - 60 ), + 50 AS col1
----
60
50

query II rowsort
SELECT ALL 52 - - 28 AS col2, 7 AS col0
----
80
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL 65 - COUNT( * ) + NULLIF ( + 75, - + 83 + + 31 + - - 68 ) * - 44
----
-3236

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL 65 - COUNT ( * ) + NULLIF ( + 75, - + 83 + + 31 + - - 68 ) * - 44
----
-3236

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT COUNT( * ) - - 1 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6350
SELECT COUNT ( * ) - - 1 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6351
SELECT + CAST( NULL AS SIGNED ) * - 63 * + + ( + + 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT + CAST ( NULL AS INTEGER ) * - 63 * + + ( + + 6 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6352
SELECT ALL - COUNT( + 67 ), - 54 col0
----
-1
-54

skipif mysql # not compatible
query II rowsort label-6352
SELECT ALL - COUNT ( + 67 ), - 54 col0
----
-1
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT ( + CAST( - - 31 AS SIGNED ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6353
SELECT ( + CAST ( - - 31 AS INTEGER ) ) AS col0
----
31

query I rowsort
SELECT DISTINCT - - 50 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT ALL - CAST( + - 44 AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - CAST ( + - 44 AS INTEGER ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT - + COUNT( * ) DIV - - 30 * - - COUNT( * ) * - 89 - - 41
----
41

skipif mysql # not compatible
query I rowsort label-6356
SELECT - + COUNT ( * ) / - - 30 * - - COUNT ( * ) * - 89 - - 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT - SUM( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT - SUM ( 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT ALL 25 * - + 21 * CAST( ( CASE ( - + 14 ) WHEN 34 THEN 14 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL 25 * - + 21 * CAST ( ( CASE ( - + 14 ) WHEN 34 THEN 14 END ) AS INTEGER )
----
NULL

query I rowsort
SELECT 50 * + 91 * - 24
----
-109200

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL - CASE + + 32 WHEN + 35 * + 44 THEN + 11 WHEN + - 2 * - COUNT( 31 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - CASE + + 32 WHEN + 35 * + 44 THEN + 11 WHEN + - 2 * - COUNT ( 31 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT ALL - CASE + + COUNT( + 15 ) WHEN + 60 THEN + 32 WHEN + CAST( + - 79 AS SIGNED ) * - COUNT( * ) / - + 44 THEN 5 + - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - CASE + + COUNT ( + 15 ) WHEN + 60 THEN + 32 WHEN + CAST ( + - 79 AS INTEGER ) * - COUNT ( * ) / - + 44 THEN 5 + - 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT COUNT( * ) + + - 70 - + + 68 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-6362
SELECT COUNT ( * ) + + - 70 - + + 68 AS col2
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT NULLIF ( 44, COUNT( * ) * + 68 * + COUNT( * ) + + MIN( ALL + - 15 ) + CAST( NULL AS SIGNED ) + - 17 * - - 58 / - 1 * - MAX( ALL CAST( NULL AS SIGNED ) ) ) * + 17 AS col0
----
748

skipif mysql # not compatible
query I rowsort label-6363
SELECT NULLIF ( 44, COUNT ( * ) * + 68 * + COUNT ( * ) + + MIN ( ALL + - 15 ) + CAST ( NULL AS INTEGER ) + - 17 * - - 58 / - 1 * - MAX ( ALL CAST ( NULL AS INTEGER ) ) ) * + 17 AS col0
----
748

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT 64 * 61 * + COALESCE ( 40, - + 73 DIV 38 ) + 52 AS col1
----
156212

skipif mysql # not compatible
query I rowsort label-6364
SELECT 64 * 61 * + COALESCE ( 40, - + 73 / 38 ) + 52 AS col1
----
156212

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT SUM( - + 67 ) - + ( ( + 98 ) ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-6365
SELECT SUM ( - + 67 ) - + ( ( + 98 ) ) AS col1
----
-165

query I rowsort
SELECT ALL + 65 + - 10 AS col0
----
55

query I rowsort
SELECT ALL - 38 + 72 + + + 18 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL - 65 + COALESCE ( - COUNT( * ), + - 83 )
----
-66

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - 65 + COALESCE ( - COUNT ( * ), + - 83 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL + 11 DIV 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + 11 / 53 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6370
SELECT 85 DIV + 14 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6370
SELECT 85 / + 14 AS col2
----
6

query I rowsort
SELECT 56 - + 13 AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6372
SELECT 23 col1, + 25 DIV + MAX( + 46 ) AS col2
----
23
0

skipif mysql # not compatible
query II rowsort label-6372
SELECT 23 col1, + 25 / + MAX ( + 46 ) AS col2
----
23
0

query II rowsort
SELECT - - 58 AS col1, - 76 AS col1
----
58
-76

query I rowsort
SELECT + ( + - 77 ) AS col2
----
-77

query I rowsort
SELECT - NULLIF ( 59, + 19 ) - 92 AS col1
----
-151

query I rowsort
SELECT DISTINCT - - 82 * + + 5
----
410

query I rowsort
SELECT DISTINCT - 10 - - 69 + + 65 * + + 2
----
189

query II rowsort
SELECT ALL 49, 4 + - 16 + 63 * - - 7 AS col2
----
49
429

query II rowsort
SELECT ALL - - 7 - COALESCE ( + 91, 38 - - + 50 + - 43 * 74 + 34 - - 45, 71 + 85 ) col1, 67
----
-84
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT 17 + - COUNT( 49 ) + - + 13 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6380
SELECT 17 + - COUNT ( 49 ) + - + 13 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT ALL + COALESCE ( 60, + COUNT( * ), + CAST( + 4 AS SIGNED ) )
----
60

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + COALESCE ( 60, + COUNT ( * ), + CAST ( + 4 AS INTEGER ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT DISTINCT ( + COALESCE ( + - 33, - COUNT( * ) * - 23 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT ( + COALESCE ( + - 33, - COUNT ( * ) * - 23 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT DISTINCT - MAX( + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT - MAX ( + 15 )
----
-15

query I rowsort
SELECT ALL 99 * - - 92
----
9108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6385
SELECT 86 DIV + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6385
SELECT 86 / + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT + COUNT( * ) * + 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT + COUNT ( * ) * + 0 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL + NULLIF ( - + COUNT( * ), - 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL + NULLIF ( - + COUNT ( * ), - 6 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6388
SELECT DISTINCT + 6 AS col1, - 72 - + CAST( NULL AS DECIMAL ) AS col2
----
6
NULL

skipif mysql # not compatible
query II rowsort label-6388
SELECT DISTINCT + 6 AS col1, - 72 - + CAST ( NULL AS REAL ) AS col2
----
6
NULL

query I rowsort
SELECT ALL - 1 * + 11 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6390
SELECT COUNT( * ) DIV COUNT( - 94 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6390
SELECT COUNT ( * ) / COUNT ( - 94 ) col0
----
1

query I rowsort
SELECT 54 + + 77
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT MAX( 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6392
SELECT MAX ( 20 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6393
SELECT 60 * 92 AS col0, + COUNT( CAST( 24 AS SIGNED ) ) * - - ( + ( + 72 ) )
----
5520
72

skipif mysql # not compatible
query II rowsort label-6393
SELECT 60 * 92 AS col0, + COUNT ( CAST ( 24 AS INTEGER ) ) * - - ( + ( + 72 ) )
----
5520
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL + 29 * + 96 * - 37 * - ( - 97 ) + SUM( - 84 )
----
-9991860

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL + 29 * + 96 * - 37 * - ( - 97 ) + SUM ( - 84 )
----
-9991860

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT + 83, + 1 * + COUNT( * ) + - 47 + + - 6 AS col1
----
83
-52

skipif mysql # not compatible
query II rowsort label-6395
SELECT + 83, + 1 * + COUNT ( * ) + - 47 + + - 6 AS col1
----
83
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT MAX( + 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6396
SELECT MAX ( + 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT COUNT( DISTINCT + - 50 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6397
SELECT COUNT ( DISTINCT + - 50 ) AS col1
----
1

query II rowsort
SELECT DISTINCT - 2 * 32 * + + ( - 73 ) + - CASE + 75 WHEN - 99 - + - 25 * + - 84 THEN NULL WHEN - 78 THEN NULL ELSE + 44 END AS col1, + 27 + - - 6
----
4628
33

query I rowsort
SELECT ALL + 6 * - - 30 * + 82 AS col1
----
14760

query II rowsort
SELECT ALL - 14, + 17 * - 37 AS col1
----
-14
-629

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6401
SELECT AVG ( - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT AVG ( - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6402
SELECT COUNT( * ) col1, - 74
----
1
-74

skipif mysql # not compatible
query II rowsort label-6402
SELECT COUNT ( * ) col1, - 74
----
1
-74

query I rowsort
SELECT ALL 5 * 27
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT COALESCE ( 30, + ( - 92 ) * - 59 - 89 ) * + 27 * - - 19 - + - 35 * CAST( NULL AS SIGNED ) / - 5 * + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT COALESCE ( 30, + ( - 92 ) * - 59 - 89 ) * + 27 * - - 19 - + - 35 * CAST ( NULL AS INTEGER ) / - 5 * + + 67
----
NULL

query II rowsort
SELECT - 93 + - 82 AS col1, ( 34 ) + 25
----
-175
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6406
SELECT ALL 69 * - CAST( NULL AS SIGNED ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL 69 * - CAST ( NULL AS INTEGER ) * - 94
----
NULL

query I rowsort
SELECT ALL + 19 col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6408
SELECT - + 86 + - 1 + COUNT( * ) + - + 70 - ( - 17 ) * - + 76 + - 70 + 71 DIV - COUNT( * ) AS col2
----
-1589

skipif mysql # not compatible
query I rowsort label-6408
SELECT - + 86 + - 1 + COUNT ( * ) + - + 70 - ( - 17 ) * - + 76 + - 70 + 71 / - COUNT ( * ) AS col2
----
-1589

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT ALL + 17 DIV - 38 + 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + 17 / - 38 + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL + 6 - - 61 + - COUNT( * ) + + 29 + - 4 + COALESCE ( - - ( NULLIF ( + 79, + 53 ) ), + 18 ) * - 70 * - 94 * - + 34 * - 23 + + 90 + - 42 + 3 * COUNT( 77 )
----
406499382

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL + 6 - - 61 + - COUNT ( * ) + + 29 + - 4 + COALESCE ( - - ( NULLIF ( + 79, + 53 ) ), + 18 ) * - 70 * - 94 * - + 34 * - 23 + + 90 + - 42 + 3 * COUNT ( 77 )
----
406499382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6411
SELECT + - COUNT( * ) DIV - - 81 * + 82 * 69 + 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6411
SELECT + - COUNT ( * ) / - - 81 * + 82 * 69 + 68 AS col0
----
68

query I rowsort
SELECT - + ( 91 ) + + 88 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT - MIN( DISTINCT 79 ) + + + 72 + 55 * + 29 * 47
----
74958

skipif mysql # not compatible
query I rowsort label-6413
SELECT - MIN ( DISTINCT 79 ) + + + 72 + 55 * + 29 * 47
----
74958

query II rowsort
SELECT - - 78, - 29 AS col2
----
78
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT - ( - MAX( ALL 45 ) ) * + - 60 AS col0
----
-2700

skipif mysql # not compatible
query I rowsort label-6415
SELECT - ( - MAX ( ALL 45 ) ) * + - 60 AS col0
----
-2700

query II rowsort
SELECT ALL + 21 * 25, + 91 AS col1
----
525
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6417
SELECT DISTINCT - 29, 26 * 42 DIV - + 93 AS col1
----
-29
-11

skipif mysql # not compatible
query II rowsort label-6417
SELECT DISTINCT - 29, 26 * 42 / - + 93 AS col1
----
-29
-11

query I rowsort
SELECT ALL + 4 * + + 37 col0
----
148

query I rowsort
SELECT - ( NULLIF ( + + 20, + ( - 29 ) ) )
----
-20

query I rowsort
SELECT - - 66 * - 68 + 41
----
-4447

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT - COUNT( * ) - - 87
----
86

skipif mysql # not compatible
query I rowsort label-6421
SELECT - COUNT ( * ) - - 87
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6422
SELECT ALL ( + + 6 ) AS col1, 32 + + - 35 + + 77 + - 17 - 56 + + 58 DIV - + COALESCE ( - NULLIF ( - - 80, - 99 ), ( 23 ) * - 26, + MAX( DISTINCT + 67 ) ) * + + ( + 30 ) + - + SUM( DISTINCT 85 )
----
6
-84

skipif mysql # not compatible
query II rowsort label-6422
SELECT ALL ( + + 6 ) AS col1, 32 + + - 35 + + 77 + - 17 - 56 + + 58 / - + COALESCE ( - NULLIF ( - - 80, - 99 ), ( 23 ) * - 26, + MAX ( DISTINCT + 67 ) ) * + + ( + 30 ) + - + SUM ( DISTINCT 85 )
----
6
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - 84 - - MIN( DISTINCT 76 ) + - 31
----
-39

skipif mysql # not compatible
query I rowsort label-6423
SELECT - 84 - - MIN ( DISTINCT 76 ) + - 31
----
-39

query I rowsort
SELECT - COALESCE ( - 10, + 94 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT - COUNT( - 52 ) * - 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6425
SELECT - COUNT ( - 52 ) * - 29 AS col1
----
29

query I rowsort
SELECT + ( - 70 ) * 88 AS col1
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL 71 * - COUNT( * ) * + - 16
----
1136

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL 71 * - COUNT ( * ) * + - 16
----
1136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6428
SELECT ALL + 91 DIV 44 * + 63 * 71 + SUM( + + 65 )
----
9011

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + 91 / 44 * + 63 * 71 + SUM ( + + 65 )
----
9011

onlyif mysql # DIV for integer division: 
query I rowsort label-6429
SELECT ALL - 8 DIV - 68 + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - 8 / - 68 + - 19
----
-19

query I rowsort
SELECT DISTINCT 6 * - - 38
----
228

query I rowsort
SELECT ALL + 10 * + 88
----
880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT + CAST( NULL AS SIGNED ) / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT + CAST ( NULL AS INTEGER ) / 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT + COUNT( * ) - COUNT( * ) * - 21
----
22

skipif mysql # not compatible
query I rowsort label-6433
SELECT + COUNT ( * ) - COUNT ( * ) * - 21
----
22

query I rowsort
SELECT ALL 80 * 74 + ( - 10 ) AS col0
----
5910

onlyif mysql # DIV for integer division: 
query II rowsort label-6435
SELECT ALL 29 * 49, 46 DIV - 39 col2
----
1421
-1

skipif mysql # not compatible
query II rowsort label-6435
SELECT ALL 29 * 49, 46 / - 39 col2
----
1421
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT - 94 * + CAST( NULL AS SIGNED ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT - 94 * + CAST ( NULL AS INTEGER ) * - 84
----
NULL

query II rowsort
SELECT + 0 * - 49, 25 + + 2 col0
----
0
27

query I rowsort
SELECT DISTINCT 92 * 44 + - - 89 * - 80 + + 68 AS col1
----
-3004

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + COUNT( + - 69 ) + - + ( 4 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6439
SELECT + COUNT ( + - 69 ) + - + ( 4 ) AS col0
----
-3

query I rowsort
SELECT + ( + + 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ( SUM( DISTINCT + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-6441
SELECT ( SUM ( DISTINCT + 88 ) )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6442
SELECT DISTINCT 67 * - 86 - + COUNT( * ) AS col1, - 21 * 9 AS col1, CASE + + 64 WHEN COALESCE ( - 9, - + COUNT( * ) ) THEN + 14 * + - COUNT( * ) / + COALESCE ( COUNT( * ), AVG ( ALL + CAST( NULL AS SIGNED ) ) * - + 35 + - + 6 * - ( + MAX( DISTINCT + COALESCE ( 3, 34 ) ) ) * + + 98 ) WHEN + + MIN( + 35 ) * + + MIN( - CASE + 47 WHEN - - 64 + 6 THEN NULL ELSE + + 73 END ) - 67 + - 20 THEN NULL ELSE NULL END AS col1
----
-5763
-189
NULL

skipif mysql # not compatible
query III rowsort label-6442
SELECT DISTINCT 67 * - 86 - + COUNT ( * ) AS col1, - 21 * 9 AS col1, CASE + + 64 WHEN COALESCE ( - 9, - + COUNT ( * ) ) THEN + 14 * + - COUNT ( * ) / + COALESCE ( COUNT ( * ), AVG ( ALL + CAST ( NULL AS INTEGER ) ) * - + 35 + - + 6 * - ( + MAX ( DISTINCT + COALESCE ( 3, 34 ) ) ) * + + 98 ) WHEN + + MIN ( + 35 ) * + + MIN ( - CASE + 47 WHEN - - 64 + 6 THEN NULL ELSE + + 73 END ) - 67 + - 20 THEN NULL ELSE NULL END AS col1
----
-5763
-189
NULL

query I rowsort
SELECT DISTINCT 29 * + + 15 * 83 - + 95 AS col1
----
36010

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL - 77 * + COUNT( * ) * + 40 * + 44 AS col0
----
-135520

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - 77 * + COUNT ( * ) * + 40 * + 44 AS col0
----
-135520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT + - 71 * - + COUNT( * ) * - 60 / + - ( - - CAST( - - ( + + 14 ) AS SIGNED ) ) * - ( + CAST( NULL AS SIGNED ) ) * - ( - 78 ) + + 78 + + 18 + - COALESCE ( + 48, - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT + - 71 * - + COUNT ( * ) * - 60 / + - ( - - CAST ( - - ( + + 14 ) AS INTEGER ) ) * - ( + CAST ( NULL AS INTEGER ) ) * - ( - 78 ) + + 78 + + 18 + - COALESCE ( + 48, - 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL 18 * - - ( - COUNT( * ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL 18 * - - ( - COUNT ( * ) ) AS col1
----
-18

query I rowsort
SELECT + 88 - + 1 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT + + ( - 86 ) AS col1, + 59 + - COUNT( * ) + + + 65
----
-86
123

skipif mysql # not compatible
query II rowsort label-6448
SELECT + + ( - 86 ) AS col1, + 59 + - COUNT ( * ) + + + 65
----
-86
123

query I rowsort
SELECT + - 13 col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT - 44 * + + 69 * + CAST( NULL AS SIGNED ) + + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT - 44 * + + 69 * + CAST ( NULL AS INTEGER ) + + + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT - 75 * 78 + + 70 + - 80 * + 63 * + + COUNT( * )
----
-10820

skipif mysql # not compatible
query I rowsort label-6451
SELECT - 75 * 78 + + 70 + - 80 * + 63 * + + COUNT ( * )
----
-10820

query I rowsort
SELECT + 15 + + 66 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT - + COUNT( - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-6453
SELECT - + COUNT ( - 49 )
----
-1

query I rowsort
SELECT ALL - COALESCE ( - 17, - 41 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6455
SELECT ALL MIN( ALL + 80 ) AS col0, - 66 * - 41 * + 37
----
80
100122

skipif mysql # not compatible
query II rowsort label-6455
SELECT ALL MIN ( ALL + 80 ) AS col0, - 66 * - 41 * + 37
----
80
100122

query I rowsort
SELECT DISTINCT 2 * + ( - 15 ) AS col2
----
-30

query I rowsort
SELECT ALL ( + 99 )
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6458
SELECT DISTINCT - + 97 / + - CAST( NULL AS DECIMAL ) AS col0, 22 AS col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-6458
SELECT DISTINCT - + 97 / + - CAST ( NULL AS REAL ) AS col0, 22 AS col2
----
NULL
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6459
SELECT + + 95 DIV - 2 - + 28 * - 98 + + + COUNT( + 51 ) * + - 75, + 20 * COUNT( * ) AS col0
----
2622
20

skipif mysql # not compatible
query II rowsort label-6459
SELECT + + 95 / - 2 - + 28 * - 98 + + + COUNT ( + 51 ) * + - 75, + 20 * COUNT ( * ) AS col0
----
2622
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL - - COUNT( ALL - 19 ) + - + 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - - COUNT ( ALL - 19 ) + - + 95 AS col0
----
-94

query I rowsort
SELECT - 13 col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT - 0 - - 94 + - 85 + - ( + 81 ) DIV - 70 + 33 * - 21
----
-683

skipif mysql # not compatible
query I rowsort label-6462
SELECT - 0 - - 94 + - 85 + - ( + 81 ) / - 70 + 33 * - 21
----
-683

query I rowsort
SELECT - 60 + 88
----
28

query I rowsort
SELECT ALL - 78 + 21
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6465
SELECT DISTINCT + 23 * - COUNT( * ) * - 99, - 8 AS col2
----
2277
-8

skipif mysql # not compatible
query II rowsort label-6465
SELECT DISTINCT + 23 * - COUNT ( * ) * - 99, - 8 AS col2
----
2277
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT - COALESCE ( + 45, - - COUNT( * ) + NULLIF ( - ( + 64 ), + COUNT( * ) ) ) + - + 17 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6466
SELECT - COALESCE ( + 45, - - COUNT ( * ) + NULLIF ( - ( + 64 ), + COUNT ( * ) ) ) + - + 17 AS col0
----
-62

query I rowsort
SELECT DISTINCT - 96 + + 24 col2
----
-72

query I rowsort
SELECT ALL - 51 + 26 AS col2
----
-25

query I rowsort
SELECT ALL ( - ( - - 63 ) )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6470
SELECT - CAST( NULL AS SIGNED ) + + 57 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT - CAST ( NULL AS INTEGER ) + + 57 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT 65 + + + COUNT( * ) + + 25 + 90 * + 10 AS col2
----
991

skipif mysql # not compatible
query I rowsort label-6471
SELECT 65 + + + COUNT ( * ) + + 25 + 90 * + 10 AS col2
----
991

query II rowsort
SELECT 69 * + ( - 29 ) * - ( + 70 ) * - 1, 14 * - 5 col0
----
-140070
-70

query I rowsort
SELECT 4 * - 84
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT ( + COALESCE ( + + 58, - 90 + + 17 ) ) * - 39 + - + MAX( + - 46 ) col2
----
-2216

skipif mysql # not compatible
query I rowsort label-6474
SELECT ( + COALESCE ( + + 58, - 90 + + 17 ) ) * - 39 + - + MAX ( + - 46 ) col2
----
-2216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), + + 52 + 72 ) AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), + + 52 + 72 ) AS col0
----
-124

query II rowsort
SELECT ALL - 23, + 76 * - + 99 + - 49 + 74 AS col1
----
-23
-7499

query I rowsort
SELECT ALL 52 * + 8 AS col2
----
416

query I rowsort
SELECT DISTINCT - 71 * + 46 AS col1
----
-3266

query I rowsort
SELECT ALL - ( - 41 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6480
SELECT DISTINCT - SUM( - 86 ) * - 83, COUNT( * ) * + CAST( NULL AS SIGNED ) col0
----
-7138
NULL

skipif mysql # not compatible
query II rowsort label-6480
SELECT DISTINCT - SUM ( - 86 ) * - 83, COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0
----
-7138
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6481
SELECT 92 DIV - + ( + ( + 23 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6481
SELECT 92 / - + ( + ( + 23 ) )
----
-4

query I rowsort
SELECT ALL ( - 52 ) * + 29 AS col2
----
-1508

query I rowsort
SELECT - 76 * 47 AS col0
----
-3572

query I rowsort
SELECT 82 * + 71 AS col2
----
5822

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT COUNT( - - 78 ) + - - 11 col2
----
12

skipif mysql # not compatible
query I rowsort label-6485
SELECT COUNT ( - - 78 ) + - - 11 col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6486
SELECT DISTINCT - + COUNT( * ) col2, + COUNT( * ) + - 20 + - 23
----
-1
-42

skipif mysql # not compatible
query II rowsort label-6486
SELECT DISTINCT - + COUNT ( * ) col2, + COUNT ( * ) + - 20 + - 23
----
-1
-42

query I rowsort
SELECT + 99 * 80
----
7920

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6488
SELECT ALL - + 43 AS col0, COUNT( * ) DIV - + 74 * - 86 AS col0
----
-43
0

skipif mysql # not compatible
query II rowsort label-6488
SELECT ALL - + 43 AS col0, COUNT ( * ) / - + 74 * - 86 AS col0
----
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT AVG ( ALL - 29 ) * - 63 * + - CASE CASE COUNT( * ) WHEN + - 27 THEN - - 40 END WHEN - MIN( 4 ) THEN + SUM( 37 ) WHEN + 21 THEN + - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT AVG ( ALL - 29 ) * - 63 * + - CASE CASE COUNT ( * ) WHEN + - 27 THEN - - 40 END WHEN - MIN ( 4 ) THEN + SUM ( 37 ) WHEN + 21 THEN + - 42 END
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 2, 33 ) + + + 82 AS col0
----
84

query I rowsort
SELECT ALL + 49 + + - 4 + CASE - + 15 WHEN - 60 - + 39 THEN + - 36 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6492
SELECT - - 23 * - 80 * + ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) + + 9 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT - - 23 * - 80 * + ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) + + 9 * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT - - MAX( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT - - MAX ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT ALL 65 + + 37
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT 38 + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6495
SELECT 38 + COUNT ( * ) AS col1
----
39

query I rowsort
SELECT NULLIF ( + - 99, - 98 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL COUNT( * ) + - 72 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL COUNT ( * ) + - 72 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT DISTINCT ( 86 ) + + 31 * 83 + COALESCE ( 98, + 22 ) - - - MAX( - + NULLIF ( 39, - - 24 ) ) AS col0
----
2796

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT ( 86 ) + + 31 * 83 + COALESCE ( 98, + 22 ) - - - MAX ( - + NULLIF ( 39, - - 24 ) ) AS col0
----
2796

query II rowsort
SELECT + 86 AS col1, ( 56 ) + - + 58 * 22 * ( + - 70 )
----
86
89376

query I rowsort
SELECT + 15 * - 40 * 87 * 70
----
-3654000

query I rowsort
SELECT 27 * - 4 + 39 AS col2
----
-69

query I rowsort
SELECT ALL - 22 * - 33
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT DISTINCT CASE 76 WHEN + COUNT( * ) THEN + NULLIF ( + 73, + - COUNT( * ) + + 53 ) ELSE - + 61 END
----
-61

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT CASE 76 WHEN + COUNT ( * ) THEN + NULLIF ( + 73, + - COUNT ( * ) + + 53 ) ELSE - + 61 END
----
-61

query I rowsort
SELECT ALL 60 * - 59 col0
----
-3540

query I rowsort
SELECT 85 * - 5
----
-425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6506
SELECT DISTINCT 30 DIV + + COUNT( * ) * COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT 30 / + + COUNT ( * ) * COUNT ( * )
----
30

query I rowsort
SELECT ALL + 20 - + - 99 col2
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6508
SELECT CAST( 63 AS SIGNED ) - + COALESCE ( - 27, + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-6508
SELECT CAST ( 63 AS INTEGER ) - + COALESCE ( - 27, + COUNT ( * ) )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT 4 DIV + + 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-6509
SELECT 4 / + + 9 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6510
SELECT ALL - COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 75 * - + 90 * ( + 39 )
----
-263250

query I rowsort
SELECT 78 + - 40
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 84 * - + ( COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6513
SELECT 84 * - + ( COUNT ( * ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT 4 - + NULLIF ( + 38, COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6514
SELECT 4 - + NULLIF ( + 38, COUNT ( * ) )
----
-34

query I rowsort
SELECT ALL - 85 * + 31
----
-2635

query I rowsort
SELECT DISTINCT - 76 * + 88 * - 84 AS col0
----
561792

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL - - SUM( DISTINCT + - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - - SUM ( DISTINCT + - 5 )
----
-5

query I rowsort
SELECT 37 * - + 54 + 49 + - - 10
----
-1939

query I rowsort
SELECT + 74 + + 82 AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT MIN( DISTINCT 61 )
----
61

skipif mysql # not compatible
query I rowsort label-6520
SELECT MIN ( DISTINCT 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL + - COUNT( - 29 ) + - 35 + - - 86
----
50

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL + - COUNT ( - 29 ) + - 35 + - - 86
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT - 97 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-6522
SELECT - 97 / + - 99
----
0

query I rowsort
SELECT DISTINCT - - CASE - 42 WHEN - 20 THEN + - 42 + 47 END / - - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6524
SELECT DISTINCT CAST( 13 AS SIGNED ) + - COUNT( * ) * + 21 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT CAST ( 13 AS INTEGER ) + - COUNT ( * ) * + 21 AS col0
----
-8

query I rowsort
SELECT DISTINCT - 94 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - + 80 + - + 6 / - + CASE + + 1 WHEN 83 THEN - 85 / + 23 WHEN 84 THEN NULL END + ( - CASE - 3 WHEN 51 - 98 THEN + + 3 * + 57 - 4 WHEN + 0 THEN NULL WHEN + 53 THEN - - MIN( DISTINCT + + 96 ) * + 58 * - + 95 - + + 96 * - COALESCE ( + 9, + 21 * + - 53 + 22 ) * - 57 - - 71 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - + 80 + - + 6 / - + CASE + + 1 WHEN 83 THEN - 85 / + 23 WHEN 84 THEN NULL END + ( - CASE - 3 WHEN 51 - 98 THEN + + 3 * + 57 - 4 WHEN + 0 THEN NULL WHEN + 53 THEN - - MIN ( DISTINCT + + 96 ) * + 58 * - + 95 - + + 96 * - COALESCE ( + 9, + 21 * + - 53 + 22 ) * - 57 - - 71 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6527
SELECT ALL - 42 + - COUNT( * ) DIV + MIN( - 86 ), + 59 + - 74 + - 43 DIV + CASE 66 WHEN - 98 - - 98 + - 46 * + - CAST( 91 AS SIGNED ) THEN NULL WHEN 70 THEN + - 88 + - 29 END AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL - 42 + - COUNT ( * ) / + MIN ( - 86 ), + 59 + - 74 + - 43 / + CASE 66 WHEN - 98 - - 98 + - 46 * + - CAST ( 91 AS INTEGER ) THEN NULL WHEN 70 THEN + - 88 + - 29 END AS col2
----
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - ( + MIN( DISTINCT 49 ) ) * 27 + 79 AS col2
----
-1244

skipif mysql # not compatible
query I rowsort label-6528
SELECT - ( + MIN ( DISTINCT 49 ) ) * 27 + 79 AS col2
----
-1244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT 76 * + CASE 20 WHEN 37 * - 13 - + + MIN( DISTINCT - COALESCE ( 7, + + 21 + - CAST( NULL AS SIGNED ) ) ) + 79 * - 66 * - 7 THEN + 36 WHEN + 42 THEN NULL ELSE - 12 + - 69 * + 55 END + + CAST( - + 10 AS SIGNED )
----
-289342

skipif mysql # not compatible
query I rowsort label-6529
SELECT 76 * + CASE 20 WHEN 37 * - 13 - + + MIN ( DISTINCT - COALESCE ( 7, + + 21 + - CAST ( NULL AS INTEGER ) ) ) + 79 * - 66 * - 7 THEN + 36 WHEN + 42 THEN NULL ELSE - 12 + - 69 * + 55 END + + CAST ( - + 10 AS INTEGER )
----
-289342

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT - COUNT( DISTINCT - 84 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6530
SELECT - COUNT ( DISTINCT - 84 ) AS col0
----
-1

query I rowsort
SELECT + 13 + 55 + 29
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL - 82 + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - 82 + - COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT - SUM( DISTINCT 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - SUM ( DISTINCT 72 )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-6534
SELECT ALL 66 + + COUNT( * ) AS col2, - 64
----
67
-64

skipif mysql # not compatible
query II rowsort label-6534
SELECT ALL 66 + + COUNT ( * ) AS col2, - 64
----
67
-64

query I rowsort
SELECT 69 - 74
----
-5

query I rowsort
SELECT ALL 42 * + - 90
----
-3780

query I rowsort
SELECT ( + 31 ) + + - 55
----
-24

query I rowsort
SELECT ALL 13 - - 86 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - COUNT( 45 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6539
SELECT - COUNT ( 45 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT COUNT( 5 ) + + 44 + - 41 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6540
SELECT COUNT ( 5 ) + + 44 + - 41 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL 89 * + COUNT ( * )
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6542
SELECT + 95 + 27 * - + 4 AS col1, CAST( NULL AS DECIMAL ) AS col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-6542
SELECT + 95 + 27 * - + 4 AS col1, CAST ( NULL AS REAL ) AS col2
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT + COUNT( * ) * - 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6543
SELECT + COUNT ( * ) * - 84 AS col0
----
-84

query I rowsort
SELECT ALL 6 * - 52
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + ( COUNT( * ) ) + + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6545
SELECT + ( COUNT ( * ) ) + + 73 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT - 77 - + + COUNT( * ) * + 68 AS col0
----
-145

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 77 - + + COUNT ( * ) * + 68 AS col0
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT - SUM( DISTINCT + 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6547
SELECT - SUM ( DISTINCT + 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT + COUNT( * ) + + 44 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6548
SELECT + COUNT ( * ) + + 44 AS col2
----
45

query I rowsort
SELECT ALL 53 * - 92 AS col0
----
-4876

query I rowsort
SELECT DISTINCT 88 * + + ( + + 80 )
----
7040

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT SUM( ALL - + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT SUM ( ALL - + 59 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT ALL + 16 DIV - + MAX( + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL + 16 / - + MAX ( + 20 )
----
0

query I rowsort
SELECT + 34 * + 37 AS col2
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT - 69 + + 85 + - COUNT( ALL + 30 ) + + COUNT( * ) + + 75 * COUNT( * ) * 45
----
3391

skipif mysql # not compatible
query I rowsort label-6554
SELECT - 69 + + 85 + - COUNT ( ALL + 30 ) + + COUNT ( * ) + + 75 * COUNT ( * ) * 45
----
3391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT ALL MAX( ALL 49 ) DIV - 15
----
-3

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL MAX ( ALL 49 ) / - 15
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT ( - MIN( + 63 ) ) AS col0, + 5 AS col2
----
-63
5

skipif mysql # not compatible
query II rowsort label-6556
SELECT ( - MIN ( + 63 ) ) AS col0, + 5 AS col2
----
-63
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6557
SELECT - CAST( NULL AS SIGNED ) * + - 89 * - 90 + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT - CAST ( NULL AS INTEGER ) * + - 89 * - 90 + + 60
----
NULL

query I rowsort
SELECT + NULLIF ( - 22, - 90 * + 94 ) AS col2
----
-22

query I rowsort
SELECT NULLIF ( - 8, 2 ) AS col2
----
-8

query I rowsort
SELECT 17 * 67 + + 95 * - CASE + 43 WHEN 67 + - AVG ( 4 ) THEN 15 * 27 - + 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL ( 50 ) * 20 + - COUNT( * )
----
999

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL ( 50 ) * 20 + - COUNT ( * )
----
999

query I rowsort
SELECT DISTINCT + 35 * 20 + 58
----
758

query I rowsort
SELECT DISTINCT + 51 col1
----
51

query I rowsort
SELECT ALL - 2 * 70 + 24 AS col1
----
-116

query I rowsort
SELECT ALL 33 * - 64
----
-2112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6566
SELECT ALL - CAST( NULL AS DECIMAL ) * 20 + + COUNT( * ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - CAST ( NULL AS REAL ) * 20 + + COUNT ( * ) * - 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT ALL - CAST( NULL AS SIGNED ) * + ( + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( + 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT CASE + COUNT( * ) WHEN + 89 + - 37 / 66 THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT CASE + COUNT ( * ) WHEN + 89 + - 37 / 66 THEN 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT - 9 + + COALESCE ( + 76, ( 30 ) + + MAX( 76 ) )
----
67

skipif mysql # not compatible
query I rowsort label-6569
SELECT - 9 + + COALESCE ( + 76, ( 30 ) + + MAX ( 76 ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT NULLIF ( CAST( 58 AS SIGNED ), + COALESCE ( + NULLIF ( + COUNT( * ), + 31 ), ( + 96 ) * + 72 + 11 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6570
SELECT NULLIF ( CAST ( 58 AS INTEGER ), + COALESCE ( + NULLIF ( + COUNT ( * ), + 31 ), ( + 96 ) * + 72 + 11 ) ) AS col2
----
58

query I rowsort
SELECT - 91 + 86
----
-5

query I rowsort
SELECT ALL + COALESCE ( 23, 91 ) AS col0
----
23

query I rowsort
SELECT ALL + 81 * + 7 + - 70 AS col1
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT + COUNT( 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + COUNT ( 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL 53 * COUNT( * ) - + 84 col1
----
-31

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 53 * COUNT ( * ) - + 84 col1
----
-31

query I rowsort
SELECT DISTINCT + 95 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6577
SELECT ALL + 92 DIV ( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + 92 / ( 98 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - NULLIF ( + NULLIF ( - COUNT( * ), + 10 ), - 35 * 17 + + COUNT( * ) ) + + 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-6578
SELECT - NULLIF ( + NULLIF ( - COUNT ( * ), + 10 ), - 35 * 17 + + COUNT ( * ) ) + + 8 AS col2
----
9

query I rowsort
SELECT DISTINCT 43 * 57 AS col1
----
2451

query I rowsort
SELECT DISTINCT + 74 * 12
----
888

query I rowsort
SELECT DISTINCT + 65 * + 12
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT - MAX( DISTINCT + 8 ) * - 29
----
232

skipif mysql # not compatible
query I rowsort label-6582
SELECT - MAX ( DISTINCT + 8 ) * - 29
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT + ( - ( - MAX( + 79 ) ) ) * - ( 87 ) AS col1
----
-6873

skipif mysql # not compatible
query I rowsort label-6583
SELECT + ( - ( - MAX ( + 79 ) ) ) * - ( 87 ) AS col1
----
-6873

query I rowsort
SELECT DISTINCT - 2 - 23 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6585
SELECT DISTINCT CAST( MAX( 14 ) AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT CAST ( MAX ( 14 ) AS INTEGER )
----
14

query I rowsort
SELECT + 77 + - 81 AS col1
----
-4

query I rowsort
SELECT - ( 34 ) * - 40 AS col0
----
1360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6588
SELECT ALL ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6589
SELECT ALL CASE 81 WHEN 47 THEN 68 ELSE MIN( 82 ) - + 47 DIV 53 END DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL CASE 81 WHEN 47 THEN 68 ELSE MIN ( 82 ) - + 47 / 53 END / - 65
----
-1

query I rowsort
SELECT DISTINCT ( - 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT ALL CAST( - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL CAST ( - 62 AS INTEGER )
----
-62

query I rowsort
SELECT DISTINCT 41 + 52 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - COUNT( + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6593
SELECT - COUNT ( + 51 )
----
-1

query I rowsort
SELECT + 11 * - 85 col0
----
-935

query I rowsort
SELECT - ( + 26 )
----
-26

query I rowsort
SELECT + 81 - - 10
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT - NULLIF ( CAST( NULL AS SIGNED ), 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + 58 - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6598
SELECT + 58 - COUNT ( * )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT + 75 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-6599
SELECT + 75 / + 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + 34 + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 34 + - COUNT ( * )
----
33

query I rowsort
SELECT ALL 40 + + 26
----
66

query I rowsort
SELECT DISTINCT 30 * 40
----
1200

query I rowsort
SELECT ALL - 41 + - 35
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6604
SELECT ALL - 82 / - 88 + CASE 70 WHEN + 2 - + CAST( 35 AS SIGNED ) * 26 THEN 67 / - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL - 82 / - 88 + CASE 70 WHEN + 2 - + CAST ( 35 AS INTEGER ) * 26 THEN 67 / - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT ALL + 67 * COALESCE ( + 51 DIV 53, - 28 * 67 )
----
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + 67 * COALESCE ( + 51 / 53, - 28 * 67 )
----
0

query I rowsort
SELECT ALL + + 18 AS col1
----
18

query I rowsort
SELECT + 88 * + 71
----
6248

onlyif mysql # DIV for integer division: 
query I rowsort label-6608
SELECT ALL + - 76 DIV 59 + - ( 79 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL + - 76 / 59 + - ( 79 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT + + COUNT( * ) * ( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6609
SELECT + + COUNT ( * ) * ( + 78 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT + 54 DIV - 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6610
SELECT + 54 / - 14 AS col0
----
-3

query I rowsort
SELECT + 59 + + 78 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + + SUM( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-6612
SELECT + + SUM ( + 49 )
----
49

query I rowsort
SELECT - + 15 * 85 AS col2
----
-1275

query I rowsort
SELECT - 42 * - 86 AS col2
----
3612

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT ALL 13 DIV - 33 - - 6 * - 89
----
-534

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL 13 / - 33 - - 6 * - 89
----
-534

query I rowsort
SELECT ALL + - 50 * - 84 AS col2
----
4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6617
SELECT + SUM( DISTINCT - ( ( - CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT + SUM ( DISTINCT - ( ( - CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT - - 54 * 27
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT DISTINCT + COUNT( * ) * 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + COUNT ( * ) * 62 AS col0
----
62

query I rowsort
SELECT ALL + 66 * + 45 - 83
----
2887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL + 99 * NULLIF ( CASE + 27 WHEN + NULLIF ( COUNT( - CAST( NULL AS SIGNED ) ), 57 + 26 ) THEN NULL WHEN - 41 THEN - 48 * CASE - 53 WHEN COUNT( * ) * - 42 THEN NULL WHEN + 49 THEN NULL ELSE 58 END ELSE 87 END, - 44 - 40 )
----
8613

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL + 99 * NULLIF ( CASE + 27 WHEN + NULLIF ( COUNT ( - CAST ( NULL AS INTEGER ) ), 57 + 26 ) THEN NULL WHEN - 41 THEN - 48 * CASE - 53 WHEN COUNT ( * ) * - 42 THEN NULL WHEN + 49 THEN NULL ELSE 58 END ELSE 87 END, - 44 - 40 )
----
8613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT ( 96 ) * CAST( NULL AS SIGNED ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT ( 96 ) * CAST ( NULL AS INTEGER ) + 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT CAST( + CASE 31 WHEN + COUNT( * ) + + 85 THEN NULL ELSE COALESCE ( - NULLIF ( 12, NULLIF ( COUNT( 53 ), + 46 ) ), + 29 ) * + NULLIF ( COALESCE ( MIN( - NULLIF ( 49, + 59 ) ), CAST( NULL AS SIGNED ) * + 86 ), 48 ) END AS SIGNED ) * - 52 col2
----
-30576

skipif mysql # not compatible
query I rowsort label-6623
SELECT CAST ( + CASE 31 WHEN + COUNT ( * ) + + 85 THEN NULL ELSE COALESCE ( - NULLIF ( 12, NULLIF ( COUNT ( 53 ), + 46 ) ), + 29 ) * + NULLIF ( COALESCE ( MIN ( - NULLIF ( 49, + 59 ) ), CAST ( NULL AS INTEGER ) * + 86 ), 48 ) END AS INTEGER ) * - 52 col2
----
-30576

query I rowsort
SELECT 98 * + 66 * - 19 AS col0
----
-122892

query I rowsort
SELECT + 42 * + 97 + + 52 AS col1
----
4126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT 78 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT 78 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT DISTINCT + 34 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + 34 / - 67
----
0

query I rowsort
SELECT 88 * ( + 32 ) AS col1
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT + COUNT( * ) * 5 * + MAX( DISTINCT + 5 )
----
25

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT + COUNT ( * ) * 5 * + MAX ( DISTINCT + 5 )
----
25

query I rowsort
SELECT ALL - 62 + + 74 col2
----
12

query I rowsort
SELECT 4 + - + ( - 33 ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT 78 * + MAX( + 77 ) col0
----
6006

skipif mysql # not compatible
query I rowsort label-6632
SELECT 78 * + MAX ( + 77 ) col0
----
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT COUNT( * ) + + + 69 * + 25
----
1726

skipif mysql # not compatible
query I rowsort label-6633
SELECT COUNT ( * ) + + + 69 * + 25
----
1726

query I rowsort
SELECT DISTINCT - 17 + - + 67
----
-84

query I rowsort
SELECT 94 + + 3 AS col2
----
97

query I rowsort
SELECT 39 - - 18
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT + 72 * COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT + 72 * COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL NULLIF ( - - COUNT( * ), 3 ) + - 75 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL NULLIF ( - - COUNT ( * ), 3 ) + - 75 AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT DISTINCT 4 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT 4 / - 77
----
0

query I rowsort
SELECT ALL - 99 + - 91 col1
----
-190

query I rowsort
SELECT ALL + 32 + + 97 AS col1
----
129

query I rowsort
SELECT 74 + + 60 * + 15 AS col2
----
974

query I rowsort
SELECT ALL 60 + - 96 * - 40
----
3900

query I rowsort
SELECT - + 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL MIN( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL MIN ( ALL 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT - 43 * - + 80 * - CASE 88 * 10 WHEN - 55 + 59 THEN NULL WHEN 46 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT - 43 * - + 80 * - CASE 88 * 10 WHEN - 55 + 59 THEN NULL WHEN 46 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - 78 * + COUNT( * ) + 0 + - 3 * + ( COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 78 * + COUNT ( * ) + 0 + - 3 * + ( COUNT ( * ) )
----
-81

query I rowsort
SELECT + 49 col0
----
49

query I rowsort
SELECT + 7 * + ( 6 ) * 19 + 24 + 19 AS col2
----
841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT + - 44 DIV 79 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + - 44 / 79 * COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT 30 * - CAST( 32 AS SIGNED )
----
-960

skipif mysql # not compatible
query I rowsort label-6651
SELECT 30 * - CAST ( 32 AS INTEGER )
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL - COUNT( ALL 60 ) * - 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - COUNT ( ALL 60 ) * - 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - ( - ( COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6653
SELECT - ( - ( COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL - - 32
----
32

query I rowsort
SELECT - 2 + - - ( 89 ) AS col2
----
87

query I rowsort
SELECT DISTINCT - 51 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL - - MIN( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - - MIN ( 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT 9 * CASE + 98 WHEN 41 THEN + 0 + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT 9 * CASE + 98 WHEN 41 THEN + 0 + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + 2 * - 66 + + ( + 9 - - 69 ) * 17 AS col0
----
1194

query I rowsort
SELECT ALL 89 - + + ( 12 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + - 55 * 75 * - COUNT( * ) + - 71
----
4054

skipif mysql # not compatible
query I rowsort label-6661
SELECT + - 55 * 75 * - COUNT ( * ) + - 71
----
4054

query I rowsort
SELECT ALL - + 98 AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT + 89 * + 0 * + CAST( 67 / 34 AS SIGNED ) + 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6663
SELECT + 89 * + 0 * + CAST ( 67 / 34 AS INTEGER ) + 4 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6664
SELECT - COUNT( * ) DIV - + NULLIF ( MAX( DISTINCT 86 ), + 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6664
SELECT - COUNT ( * ) / - + NULLIF ( MAX ( DISTINCT 86 ), + 58 ) AS col1
----
0

query I rowsort
SELECT 69 * + - 56
----
-3864

query I rowsort
SELECT 4 + + 54 * 27 + - 5 AS col1
----
1457

query I rowsort
SELECT ALL 83 * + 91 AS col1
----
7553

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT DISTINCT 95 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT 95 / + 26
----
3

query I rowsort
SELECT ALL - 2 * + - COALESCE ( 29, 61 ) AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT 88 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-6670
SELECT 88 / 18
----
4

query I rowsort
SELECT ALL 30 + 3 + + 87
----
120

query II rowsort
SELECT DISTINCT - 26 AS col0, + 52 AS col1
----
-26
52

query II rowsort
SELECT 97 AS col0, + 94 AS col2
----
97
94

query I rowsort
SELECT ALL + 30 + + 38
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL COUNT( * ) * - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL COUNT ( * ) * - ( - COUNT ( * ) )
----
1

query II rowsort
SELECT - 89 AS col1, 16 AS col2
----
-89
16

query I rowsort
SELECT - 40 col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT DISTINCT - 85 + - 75 * - + 54 * COUNT( + 85 ) - 77 * 50
----
115

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT - 85 + - 75 * - + 54 * COUNT ( + 85 ) - 77 * 50
----
115

query I rowsort
SELECT ALL + NULLIF ( + 55, 86 * - 35 ) + - 69 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT ALL + MIN( - + 33 ) + - - MIN( ALL 79 ) + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL + MIN ( - + 33 ) + - - MIN ( ALL 79 ) + - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT DISTINCT - 12 + - + 62 + + 25 * + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT - 12 + - + 62 + + 25 * + COUNT ( * ) AS col2
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6682
SELECT DISTINCT 23 * CAST( NULL AS DECIMAL ) / 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT 23 * CAST ( NULL AS REAL ) / 67
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6683
SELECT DISTINCT 56, - CAST( NULL AS DECIMAL ) AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-6683
SELECT DISTINCT 56, - CAST ( NULL AS REAL ) AS col0
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL - COUNT( 75 ) + 60
----
59

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL - COUNT ( 75 ) + 60
----
59

query II rowsort
SELECT 13 AS col0, 68 * + 30
----
13
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL COUNT( * ) + + 40 * + 26 * 4 + 79 * 89
----
11192

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL COUNT ( * ) + + 40 * + 26 * 4 + 79 * 89
----
11192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT DISTINCT - COALESCE ( + 0, - 45 * - CAST( NULL AS SIGNED ) ) + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT - COALESCE ( + 0, - 45 * - CAST ( NULL AS INTEGER ) ) + + ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - 68 + + + 97 + + 43 AS col0
----
72

query I rowsort
SELECT 38 * + 32
----
1216

onlyif mysql # DIV for integer division: 
query I rowsort label-6690
SELECT ALL - 95 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL - 95 / 97 AS col2
----
0

query I rowsort
SELECT 99 + + + NULLIF ( - 3, + 52 ) AS col2
----
96

query I rowsort
SELECT - + 42 col0
----
-42

query I rowsort
SELECT ALL - 0 * - + 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT MAX( DISTINCT 58 ) - - 50
----
108

skipif mysql # not compatible
query I rowsort label-6694
SELECT MAX ( DISTINCT 58 ) - - 50
----
108

query I rowsort
SELECT + 97 * + 46 * - 22
----
-98164

query I rowsort
SELECT + 41 + - + 21
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT - 56 * - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - 56 * - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL + 98 * MIN( ALL 91 )
----
8918

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + 98 * MIN ( ALL 91 )
----
8918

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT DISTINCT + 65 * 49 DIV + 83 - 7
----
31

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT + 65 * 49 / + 83 - 7
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6700
SELECT DISTINCT - 47, COUNT( + + 68 ) * - 37 AS col2
----
-47
-37

skipif mysql # not compatible
query II rowsort label-6700
SELECT DISTINCT - 47, COUNT ( + + 68 ) * - 37 AS col2
----
-47
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT - CAST( + 82 AS SIGNED ) - - 1 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6701
SELECT - CAST ( + 82 AS INTEGER ) - - 1 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT ALL - 35 col0, + SUM( 77 ) + NULLIF ( 75, + COUNT( * ) ) * + 15
----
-35
1202

skipif mysql # not compatible
query II rowsort label-6702
SELECT ALL - 35 col0, + SUM ( 77 ) + NULLIF ( 75, + COUNT ( * ) ) * + 15
----
-35
1202

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT + COALESCE ( 25, + 42 + - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-6703
SELECT + COALESCE ( 25, + 42 + - COUNT ( * ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6704
SELECT - COUNT( * ), 82 + + + 80 AS col2
----
-1
162

skipif mysql # not compatible
query II rowsort label-6704
SELECT - COUNT ( * ), 82 + + + 80 AS col2
----
-1
162

query I rowsort
SELECT - + 93 * + - 99
----
9207

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT ALL + + 83 AS col1, 63 + - + SUM( 30 ) * - COALESCE ( - 72 + 16, 17 ) AS col2
----
83
-1617

skipif mysql # not compatible
query II rowsort label-6706
SELECT ALL + + 83 AS col1, 63 + - + SUM ( 30 ) * - COALESCE ( - 72 + 16, 17 ) AS col2
----
83
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT - - COUNT( * ) + + SUM( - 61 ) * - 24
----
1465

skipif mysql # not compatible
query I rowsort label-6707
SELECT - - COUNT ( * ) + + SUM ( - 61 ) * - 24
----
1465

query I rowsort
SELECT + ( - - 9 )
----
9

query I rowsort
SELECT DISTINCT + - ( + 22 ) AS col2
----
-22

query I rowsort
SELECT ALL + 33 * - 58 * - 80 AS col0
----
153120

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL COUNT( * ) * 22 + - ( + 85 ) * COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL COUNT ( * ) * 22 + - ( + 85 ) * COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + COUNT( + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-6712
SELECT + COUNT ( + 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL - 68 * - - 40 + + + 73 + COUNT( * ) - - ( 2 ) * - 56 AS col2
----
-2758

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL - 68 * - - 40 + + + 73 + COUNT ( * ) - - ( 2 ) * - 56 AS col2
----
-2758

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT + COUNT( - ( - + 35 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6714
SELECT + COUNT ( - ( - + 35 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL - COUNT( * ) * 0 * + 59 * + - COUNT( * ) * - 17 + ( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL - COUNT ( * ) * 0 * + 59 * + - COUNT ( * ) * - 17 + ( + 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6716
SELECT + 18 * + + 53 AS col1, + CASE + 93 WHEN + 8 THEN NULL WHEN 80 + - 52 THEN 22 * + CAST( - 30 AS SIGNED ) ELSE NULL END * + 91
----
954
NULL

skipif mysql # not compatible
query II rowsort label-6716
SELECT + 18 * + + 53 AS col1, + CASE + 93 WHEN + 8 THEN NULL WHEN 80 + - 52 THEN 22 * + CAST ( - 30 AS INTEGER ) ELSE NULL END * + 91
----
954
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT DISTINCT 2 * - - NULLIF ( + COUNT( * ), - SUM( ALL - NULLIF ( 66, 99 ) ) + + 23 ) + - SUM( ALL - 77 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT 2 * - - NULLIF ( + COUNT ( * ), - SUM ( ALL - NULLIF ( 66, 99 ) ) + + 23 ) + - SUM ( ALL - 77 ) col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6718
SELECT + CAST( NULL AS SIGNED ) + + - 92 + + - ( - 18 ) + ( - 74 + 13 / - ( 89 + 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT + CAST ( NULL AS INTEGER ) + + - 92 + + - ( - 18 ) + ( - 74 + 13 / - ( 89 + 48 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT MAX( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6719
SELECT MAX ( - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT ALL + CAST( NULL AS SIGNED ) * + COALESCE ( + 50, - 13 ) + - 64 * - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + CAST ( NULL AS INTEGER ) * + COALESCE ( + 50, - 13 ) + - 64 * - 88 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6721
SELECT CAST( + COALESCE ( + 78, + 27, CAST( NULL AS SIGNED ) * - 57 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) + + ( - AVG ( 9 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT CAST ( + COALESCE ( + 78, + 27, CAST ( NULL AS INTEGER ) * - 57 ) AS INTEGER ) * CAST ( NULL AS REAL ) + + ( - AVG ( 9 ) )
----
NULL

query I rowsort
SELECT + ( - 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT + 52 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6723
SELECT + 52 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - NULLIF ( 57, - 17 + + 40 + + 54 * 69 )
----
-57

query I rowsort
SELECT ALL - 99 + + 79
----
-20

query I rowsort
SELECT + 5 + 15 * + 72 AS col2
----
1085

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL COALESCE ( + 46, + 13, - 34 * NULLIF ( + COUNT( * ), 90 / + 31 + + MAX( DISTINCT 13 ) ) + 22, + 10 + - 85 ) - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL COALESCE ( + 46, + 13, - 34 * NULLIF ( + COUNT ( * ), 90 / + 31 + + MAX ( DISTINCT 13 ) ) + 22, + 10 + - 85 ) - COUNT ( * )
----
45

query I rowsort
SELECT DISTINCT 69 * 77 AS col2
----
5313

query I rowsort
SELECT + + 49 + 78 AS col0
----
127

query I rowsort
SELECT + 34 * 8 AS col0
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + COUNT( - NULLIF ( - - 61, - + 23 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + COUNT ( - NULLIF ( - - 61, - + 23 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT ALL - + CAST( NULL AS SIGNED ) * + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - + CAST ( NULL AS INTEGER ) * + 21 AS col0
----
NULL

query I rowsort
SELECT - 61 + - 99
----
-160

query I rowsort
SELECT - 75 + + 81
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT DISTINCT - - 77 DIV ( 15 )
----
5

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - - 77 / ( 15 )
----
5

query I rowsort
SELECT - 37 + ( + 55 ) AS col0
----
18

query I rowsort
SELECT + - ( - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT COUNT( * ) * 79 + + 66 + 51 * 73
----
3868

skipif mysql # not compatible
query I rowsort label-6738
SELECT COUNT ( * ) * 79 + + 66 + 51 * 73
----
3868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6739
SELECT ALL - 60 / - 60 * - + 85 * - NULLIF ( + CASE 69 WHEN COUNT( * ) * + 42 THEN + CASE 71 WHEN COUNT( * ) + + 60 * + 59 THEN 52 END + + 22 WHEN CAST( 48 AS SIGNED ) THEN NULL END, SUM( - 37 ) * + CASE 97 WHEN - CASE 0 WHEN ( COALESCE ( + 84, COUNT( * ), + CAST( NULL AS SIGNED ) ) ) + MAX( ALL 32 ) THEN - 50 ELSE NULL END THEN 79 WHEN 82 / ( COUNT( * ) ) + + 68 THEN 24 * 52 + COALESCE ( + 73, 41 ) END ) * 16 + 40 / - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - 60 / - 60 * - + 85 * - NULLIF ( + CASE 69 WHEN COUNT ( * ) * + 42 THEN + CASE 71 WHEN COUNT ( * ) + + 60 * + 59 THEN 52 END + + 22 WHEN CAST ( 48 AS INTEGER ) THEN NULL END, SUM ( - 37 ) * + CASE 97 WHEN - CASE 0 WHEN ( COALESCE ( + 84, COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) + MAX ( ALL 32 ) THEN - 50 ELSE NULL END THEN 79 WHEN 82 / ( COUNT ( * ) ) + + 68 THEN 24 * 52 + COALESCE ( + 73, 41 ) END ) * 16 + 40 / - 25 AS col1
----
NULL

query I rowsort
SELECT ALL - ( CASE 62 WHEN + 60 THEN 71 ELSE NULL END ) / 48 + + ( 85 )
----
NULL

query I rowsort
SELECT - 2 col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT ALL - 96 / + 70 + 63 + - 93 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 96 / + 70 + 63 + - 93 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6743
SELECT - 42 + + - 98 DIV + + 64 AS col1, 39 AS col1
----
-43
39

skipif mysql # not compatible
query II rowsort label-6743
SELECT - 42 + + - 98 / + + 64 AS col1, 39 AS col1
----
-43
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6744
SELECT DISTINCT 86 / - CAST( NULL AS SIGNED ) + + 67 AS col1, + 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6744
SELECT DISTINCT 86 / - CAST ( NULL AS INTEGER ) + + 67 AS col1, + 21
----
NULL
21

query I rowsort
SELECT ALL + NULLIF ( + 44, + 9 )
----
44

query I rowsort
SELECT - 18 + - 65
----
-83

query III rowsort
SELECT ALL + 42 AS col0, - 26 * + + 23 AS col2, - 36
----
42
-598
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT ( - - ( + ( + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT ( - - ( + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT 66 * - 29 + 42 + + 96 DIV - + 52
----
-1873

skipif mysql # not compatible
query I rowsort label-6749
SELECT 66 * - 29 + 42 + + 96 / - + 52
----
-1873

query I rowsort
SELECT ALL 98 * - ( ( + 38 ) ) + - 56 AS col0
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ( + - CASE + 55 WHEN AVG ( - 10 ) THEN - COUNT( * ) WHEN 51 / CASE - 83 WHEN + 92 * + 4 THEN AVG ( 93 ) ELSE + 69 END THEN 26 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT ( + - CASE + 55 WHEN AVG ( - 10 ) THEN - COUNT ( * ) WHEN 51 / CASE - 83 WHEN + 92 * + 4 THEN AVG ( 93 ) ELSE + 69 END THEN 26 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL + 97 * + COUNT( * ) + - + 63 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL + 97 * + COUNT ( * ) + - + 63 AS col1
----
34

query I rowsort
SELECT ( - 74 ) col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT - CAST( NULL AS SIGNED ) * + 28 * - + 92 + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT - CAST ( NULL AS INTEGER ) * + 28 * - + 92 + 77 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT DISTINCT + CAST( 20 AS SIGNED ) col0
----
20

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + CAST ( 20 AS INTEGER ) col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT - 59 * - COALESCE ( - 24, + COUNT( * ) ) * - 17
----
24072

skipif mysql # not compatible
query I rowsort label-6756
SELECT - 59 * - COALESCE ( - 24, + COUNT ( * ) ) * - 17
----
24072

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT CASE - 31 WHEN - CASE + - SUM( - 78 ) WHEN + 55 THEN + ( 42 ) WHEN + MAX( DISTINCT + 95 ) THEN COUNT( * ) END + - 56 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT CASE - 31 WHEN - CASE + - SUM ( - 78 ) WHEN + 55 THEN + ( 42 ) WHEN + MAX ( DISTINCT + 95 ) THEN COUNT ( * ) END + - 56 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 29 * + 83
----
2407

query I rowsort
SELECT ALL + 95 * - + 28 * 15 AS col0
----
-39900

query II rowsort
SELECT DISTINCT 58 col1, 75
----
58
75

query I rowsort
SELECT COALESCE ( - 92, 96 * + 56 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT - ( + + MAX( 33 ) ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6762
SELECT - ( + + MAX ( 33 ) ) AS col2
----
-33

query I rowsort
SELECT ALL 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + COUNT( 76 ) * + 47 * + - 68 * ( - MIN( ALL + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT + COUNT ( 76 ) * + 47 * + - 68 * ( - MIN ( ALL + 0 ) )
----
0

query I rowsort
SELECT + + 62 * + 95 col1
----
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT + CASE - 86 WHEN 90 THEN - COUNT( * ) WHEN - 89 THEN - 48 * - 87 ELSE NULL END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT + CASE - 86 WHEN 90 THEN - COUNT ( * ) WHEN - 89 THEN - 48 * - 87 ELSE NULL END * + 93
----
NULL

query II rowsort
SELECT DISTINCT - 76 * + 81 * - 77 col0, - 55 AS col0
----
474012
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT ALL - COUNT( * ) * + 17 * 72 AS col0, 56
----
-1224
56

skipif mysql # not compatible
query II rowsort label-6768
SELECT ALL - COUNT ( * ) * + 17 * 72 AS col0, 56
----
-1224
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT - CASE - MAX( + 46 ) WHEN 56 THEN + - 41 WHEN - NULLIF ( - 9, + 30 ) THEN NULL WHEN + 77 DIV - COUNT( * ) + + COUNT( * ) THEN ( 61 ) DIV + 70 + - 29 ELSE - 0 END
----
0

skipif mysql # not compatible
query I rowsort label-6769
SELECT - CASE - MAX ( + 46 ) WHEN 56 THEN + - 41 WHEN - NULLIF ( - 9, + 30 ) THEN NULL WHEN + 77 / - COUNT ( * ) + + COUNT ( * ) THEN ( 61 ) / + 70 + - 29 ELSE - 0 END
----
0

query I rowsort
SELECT ALL + 7 * - 85
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT - 68 * 24 * + + COUNT( * )
----
-1632

skipif mysql # not compatible
query I rowsort label-6771
SELECT - 68 * 24 * + + COUNT ( * )
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT DISTINCT 38 * - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT 38 * - COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT ALL - ( 84 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT - - 5 AS col2, + 17 - MIN( - 94 ) AS col2
----
5
111

skipif mysql # not compatible
query II rowsort label-6774
SELECT - - 5 AS col2, + 17 - MIN ( - 94 ) AS col2
----
5
111

query I rowsort
SELECT ALL 56 + - - 50
----
106

query I rowsort
SELECT 8 + 55 AS col1
----
63

query III rowsort
SELECT - + 51 AS col2, 93 * 20 col1, - + 52
----
-51
1860
-52

query I rowsort
SELECT + 34 * + - 78 + + 12 - + 40 AS col1
----
-2680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6779
SELECT DISTINCT + 55 + + ( 74 ) AS col1, COUNT( * ) - 62 - 52 DIV 66
----
129
-61

skipif mysql # not compatible
query II rowsort label-6779
SELECT DISTINCT + 55 + + ( 74 ) AS col1, COUNT ( * ) - 62 - 52 / 66
----
129
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL MIN( DISTINCT + 13 ) col2
----
13

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL MIN ( DISTINCT + 13 ) col2
----
13

query II rowsort
SELECT - 7 AS col0, - 35 + + ( + CASE 54 WHEN 43 THEN 8 END ) col1
----
-7
NULL

query I rowsort
SELECT DISTINCT - ( + ( + + 66 ) ) + 76 * 37
----
2746

query I rowsort
SELECT - CASE - + 82 WHEN 68 THEN - AVG ( - 25 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 99 + 4
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL - - 37 + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - - 37 + COUNT ( * )
----
38

query I rowsort
SELECT DISTINCT + 83 * + 49 col0
----
4067

query I rowsort
SELECT DISTINCT - 72 + ( - - 69 ) + - 86
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT 7 + 27 + - 51 * - - COUNT( * ) * - 6 - + 45 AS col2
----
295

skipif mysql # not compatible
query I rowsort label-6788
SELECT 7 + 27 + - 51 * - - COUNT ( * ) * - 6 - + 45 AS col2
----
295

query I rowsort
SELECT + 71 col0
----
71

query II rowsort
SELECT + 29 col1, + 13 AS col1
----
29
13

query II rowsort
SELECT 31, 15 AS col1
----
31
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT DISTINCT - 65 AS col2, + COUNT( * )
----
-65
1

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT - 65 AS col2, + COUNT ( * )
----
-65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL COUNT( ALL - 58 ) + - + 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL COUNT ( ALL - 58 ) + - + 46 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL - MAX( - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - MAX ( - 22 )
----
22

query I rowsort
SELECT DISTINCT - ( - - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL - COUNT( DISTINCT + 24 ) - + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - COUNT ( DISTINCT + 24 ) - + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT 19 - CAST( NULL AS SIGNED ) - + + CASE + ( - + 58 ) WHEN - 46 + + 95 THEN NULL WHEN 52 + NULLIF ( - 83 + + CAST( COALESCE ( 74, 35, + 51 * + 61 ) AS SIGNED ), 87 ) * 11 THEN COUNT( * ) ELSE NULL END * - 44 * 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT 19 - CAST ( NULL AS INTEGER ) - + + CASE + ( - + 58 ) WHEN - 46 + + 95 THEN NULL WHEN 52 + NULLIF ( - 83 + + CAST ( COALESCE ( 74, 35, + 51 * + 61 ) AS INTEGER ), 87 ) * 11 THEN COUNT ( * ) ELSE NULL END * - 44 * 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT DISTINCT - COUNT( * ) * - CASE - COUNT( * ) WHEN + 6 * - MAX( + - 84 ) + COUNT( ALL + 37 ) THEN ( COUNT( * ) ) WHEN - 44 THEN NULL ELSE - 55 END * + 52 col1
----
-2860

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT - COUNT ( * ) * - CASE - COUNT ( * ) WHEN + 6 * - MAX ( + - 84 ) + COUNT ( ALL + 37 ) THEN ( COUNT ( * ) ) WHEN - 44 THEN NULL ELSE - 55 END * + 52 col1
----
-2860

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT ALL + 35 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + 35 / - 80
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT 29, 84 + - SUM( ALL - 44 ) AS col2
----
29
128

skipif mysql # not compatible
query II rowsort label-6800
SELECT 29, 84 + - SUM ( ALL - 44 ) AS col2
----
29
128

query I rowsort
SELECT DISTINCT - ( - 12 ) AS col2
----
12

query I rowsort
SELECT 9 * - 78
----
-702

query II rowsort
SELECT 42, 69 AS col2
----
42
69

query I rowsort
SELECT 19 + 4
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT - 42 * 13 * + - 70 + + COUNT( * ) AS col0
----
38221

skipif mysql # not compatible
query I rowsort label-6805
SELECT - 42 * 13 * + - 70 + + COUNT ( * ) AS col0
----
38221

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT - COUNT( DISTINCT - + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - COUNT ( DISTINCT - + 46 )
----
-1

query II rowsort
SELECT ALL - 73 AS col2, - 81 + + - 18
----
-73
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6808
SELECT ALL - COUNT( * ) * + 45 * + - 16 * 83 AS col2, + 21 - ( - COUNT( * ) ) AS col0
----
59760
22

skipif mysql # not compatible
query II rowsort label-6808
SELECT ALL - COUNT ( * ) * + 45 * + - 16 * 83 AS col2, + 21 - ( - COUNT ( * ) ) AS col0
----
59760
22

query I rowsort
SELECT ALL ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT DISTINCT - 22 AS col1, COUNT( * )
----
-22
1

skipif mysql # not compatible
query II rowsort label-6810
SELECT DISTINCT - 22 AS col1, COUNT ( * )
----
-22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL + 78 * - - 54 * 8 - - MAX( ALL - - 41 ) AS col0
----
33737

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + 78 * - - 54 * 8 - - MAX ( ALL - - 41 ) AS col0
----
33737

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT SUM( DISTINCT + ( - 13 ) ) * - 6 * + 73
----
5694

skipif mysql # not compatible
query I rowsort label-6812
SELECT SUM ( DISTINCT + ( - 13 ) ) * - 6 * + 73
----
5694

onlyif mysql # DIV for integer division: 
query I rowsort label-6813
SELECT - 52 DIV - ( - 10 )
----
-5

skipif mysql # not compatible
query I rowsort label-6813
SELECT - 52 / - ( - 10 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT 43 + - - 56 * - + MIN( ALL 51 ) * + 27 + - 80 + 48 AS col0
----
-77101

skipif mysql # not compatible
query I rowsort label-6814
SELECT 43 + - - 56 * - + MIN ( ALL 51 ) * + 27 + - 80 + 48 AS col0
----
-77101

query I rowsort
SELECT ALL 26 + + 65 * + 98 AS col2
----
6396

query I rowsort
SELECT + 40 col1
----
40

query I rowsort
SELECT 89 + - 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT + 19 DIV + 42 * 57
----
0

skipif mysql # not compatible
query I rowsort label-6818
SELECT + 19 / + 42 * 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6819
SELECT ALL - ( + 57 ) + CASE + + 31 WHEN + COALESCE ( CAST( + 18 AS SIGNED ), 19 - + SUM( DISTINCT 53 ) * ( COUNT( * ) ), - 1, - 9 * - 60 ) THEN COALESCE ( + 64, + 41 ) DIV 27 ELSE NULLIF ( + 45, 2 ) * + 99 END * + 47 AS col2
----
209328

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - ( + 57 ) + CASE + + 31 WHEN + COALESCE ( CAST ( + 18 AS INTEGER ), 19 - + SUM ( DISTINCT 53 ) * ( COUNT ( * ) ), - 1, - 9 * - 60 ) THEN COALESCE ( + 64, + 41 ) / 27 ELSE NULLIF ( + 45, 2 ) * + 99 END * + 47 AS col2
----
209328

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT 67 * - COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT 67 * - COUNT ( * ) col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6821
SELECT CASE + 30 WHEN - 5 * - 23 * - + 55 * + 63 - + CAST( 1 AS DECIMAL ) DIV - 72 THEN + 14 + 69 * - COUNT( * ) ELSE 30 DIV ( - 96 ) END DIV - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6821
SELECT CASE + 30 WHEN - 5 * - 23 * - + 55 * + 63 - + CAST ( 1 AS REAL ) / - 72 THEN + 14 + 69 * - COUNT ( * ) ELSE 30 / ( - 96 ) END / - 39 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6822
SELECT ALL - COALESCE ( + 19, + 19 DIV + 49 - - COUNT( * ) * + - 30 * 28 + 67 ) + - 31 DIV COUNT( 71 )
----
-50

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL - COALESCE ( + 19, + 19 / + 49 - - COUNT ( * ) * + - 30 * 28 + 67 ) + - 31 / COUNT ( 71 )
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-6823
SELECT ALL 15 DIV + 92 * + ( - 22 ) AS col1, - 51
----
0
-51

skipif mysql # not compatible
query II rowsort label-6823
SELECT ALL 15 / + 92 * + ( - 22 ) AS col1, - 51
----
0
-51

query I rowsort
SELECT ALL + 71 + 37 * - 69 - + 12 AS col0
----
-2494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT - CAST( - 44 AS SIGNED ) * COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6825
SELECT - CAST ( - 44 AS INTEGER ) * COUNT ( * ) AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT DISTINCT 38 + + COALESCE ( - + 94, + - 51 DIV + + 16 + - 49 - ( + 66 ) * - 80 )
----
-56

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT 38 + + COALESCE ( - + 94, + - 51 / + + 16 + - 49 - ( + 66 ) * - 80 )
----
-56

query II rowsort
SELECT + 37 AS col2, 49
----
37
49

query II rowsort
SELECT - - 22 col0, 7
----
22
7

query I rowsort
SELECT DISTINCT - 65 col1
----
-65

query I rowsort
SELECT 3 * + + 30 + 62 + + + 97 AS col0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL 58 * + + CASE - + 62 WHEN + - 43 + - 12 THEN NULLIF ( + 56, - 30 + + 42 / + 82 ) ELSE NULL END - + MAX( DISTINCT 32 ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL 58 * + + CASE - + 62 WHEN + - 43 + - 12 THEN NULLIF ( + 56, - 30 + + 42 / + 82 ) ELSE NULL END - + MAX ( DISTINCT 32 ) * + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL - CASE + - 16 WHEN 98 THEN CASE - COUNT( * ) WHEN - - 73 THEN NULL ELSE - + COUNT( * ) END * - 86 + - 72 ELSE - 91 * 80 END
----
7280

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - CASE + - 16 WHEN 98 THEN CASE - COUNT ( * ) WHEN - - 73 THEN NULL ELSE - + COUNT ( * ) END * - 86 + - 72 ELSE - 91 * 80 END
----
7280

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT MAX( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6833
SELECT MAX ( + 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-6834
SELECT COUNT ( * ) + - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT MIN( - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6835
SELECT MIN ( - 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT COUNT( * ) * 47 + - 76
----
-29

skipif mysql # not compatible
query I rowsort label-6836
SELECT COUNT ( * ) * 47 + - 76
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT DISTINCT 46 * - COALESCE ( - + SUM( DISTINCT - - 7 ), - + 16 ) AS col0, + 38 + + 35
----
322
73

skipif mysql # not compatible
query II rowsort label-6837
SELECT DISTINCT 46 * - COALESCE ( - + SUM ( DISTINCT - - 7 ), - + 16 ) AS col0, + 38 + + 35
----
322
73

query II rowsort
SELECT 57 * + 25 col1, - 99
----
1425
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT 10 * + 99 * + COUNT( * ) col0
----
990

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT 10 * + 99 * + COUNT ( * ) col0
----
990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT DISTINCT - COALESCE ( + - 23, 78 * + + 42 * + 87 * + - 0 - + 81 + COALESCE ( MIN( DISTINCT 90 ), - NULLIF ( 38, - 29 * 64 ) ) * - ( + 92 * 75 ) + - 51 DIV COUNT( * ), - COALESCE ( COUNT( * ), 11 - 48 DIV - COUNT( * ) ) ) col1
----
23

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - COALESCE ( + - 23, 78 * + + 42 * + 87 * + - 0 - + 81 + COALESCE ( MIN ( DISTINCT 90 ), - NULLIF ( 38, - 29 * 64 ) ) * - ( + 92 * 75 ) + - 51 / COUNT ( * ), - COALESCE ( COUNT ( * ), 11 - 48 / - COUNT ( * ) ) ) col1
----
23

query II rowsort
SELECT 57 * - - 97 AS col0, - 72 - + 35 AS col2
----
5529
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT DISTINCT - + 62 DIV - - 21 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - + 62 / - - 21 AS col1
----
-2

query I rowsort
SELECT DISTINCT + COALESCE ( + 46, - 9 )
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-6845
SELECT + 58 DIV 36 AS col2, 61 + + 80 - - + 76 col2
----
1
217

skipif mysql # not compatible
query II rowsort label-6845
SELECT + 58 / 36 AS col2, 61 + + 80 - - + 76 col2
----
1
217

query II rowsort
SELECT - 28 * - - 49 + + + 85, + 43 * + 63 AS col1
----
-1287
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - MAX( + + 87 ) * COUNT( * ) * - 76 + - + 26 AS col1
----
6586

skipif mysql # not compatible
query I rowsort label-6847
SELECT - MAX ( + + 87 ) * COUNT ( * ) * - 76 + - + 26 AS col1
----
6586

query I rowsort
SELECT ALL + NULLIF ( + 21, 64 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL + - 57 + - MAX( 80 ) + - + 69 + + - 18 * - COALESCE ( + 75, - 94 * - 18 + 38 ) col0
----
1144

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + - 57 + - MAX ( 80 ) + - + 69 + + - 18 * - COALESCE ( + 75, - 94 * - 18 + 38 ) col0
----
1144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT ALL + - COALESCE ( + MIN( + - 7 ), + 16 + - 38 * ( - + COUNT( * ) ) + COUNT( * ) ) + + 98 DIV ( 29 - MIN( - CASE WHEN - 81 > ( - 62 ) THEN NULL ELSE + 59 - ( 6 ) END + + 18 ) * 8 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL + - COALESCE ( + MIN ( + - 7 ), + 16 + - 38 * ( - + COUNT ( * ) ) + COUNT ( * ) ) + + 98 / ( 29 - MIN ( - CASE WHEN - 81 > ( - 62 ) THEN NULL ELSE + 59 - ( 6 ) END + + 18 ) * 8 ) AS col0
----
7

query I rowsort
SELECT DISTINCT + 50 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT + 33 + ( + COUNT( DISTINCT 30 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + 33 + ( + COUNT ( DISTINCT 30 ) ) AS col1
----
34

query I rowsort
SELECT ALL 60 + - + 48 * + 93 col0
----
-4404

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT - 44 - - - NULLIF ( + + 41, + + 90 ) * 84 * + COUNT( * )
----
-3488

skipif mysql # not compatible
query I rowsort label-6854
SELECT - 44 - - - NULLIF ( + + 41, + + 90 ) * 84 * + COUNT ( * )
----
-3488

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT - + 78 + + + COUNT( - 59 )
----
-77

skipif mysql # not compatible
query I rowsort label-6855
SELECT - + 78 + + + COUNT ( - 59 )
----
-77

query I rowsort
SELECT DISTINCT - + 15 + + 60 + + - 12
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6857
SELECT ALL + - 53 + CAST( NULL AS SIGNED ) AS col1, - 25 col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-6857
SELECT ALL + - 53 + CAST ( NULL AS INTEGER ) AS col1, - 25 col1
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT + + COUNT( * ) * 70 * ( - 90 ) + - - SUM( DISTINCT - 45 ) AS col1
----
-6345

skipif mysql # not compatible
query I rowsort label-6858
SELECT + + COUNT ( * ) * 70 * ( - 90 ) + - - SUM ( DISTINCT - 45 ) AS col1
----
-6345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6859
SELECT ALL + CASE - CAST( 23 AS SIGNED ) WHEN 74 THEN NULL WHEN + COUNT( * ) - + 9 THEN NULL WHEN - COUNT( - 22 ) THEN 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + CASE - CAST ( 23 AS INTEGER ) WHEN 74 THEN NULL WHEN + COUNT ( * ) - + 9 THEN NULL WHEN - COUNT ( - 22 ) THEN 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT - ( 80 ) + - 65 + + COUNT( * ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-6860
SELECT - ( 80 ) + - 65 + + COUNT ( * ) AS col2
----
-144

query I rowsort
SELECT - 18 + - 83 col1
----
-101

query I rowsort
SELECT DISTINCT CASE - 31 WHEN - + 62 * - + 25 THEN - 18 WHEN ( - 29 ) + + 32 + + 31 THEN 51 END
----
NULL

query I rowsort
SELECT ALL 47 * - 47 col2
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT - MAX( + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-6864
SELECT - MAX ( + 22 )
----
-22

query I rowsort
SELECT ALL ( + 38 ) AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT + 88 DIV - - 86 col0
----
1

skipif mysql # not compatible
query I rowsort label-6866
SELECT + 88 / - - 86 col0
----
1

query I rowsort
SELECT - 0 * ( - 8 )
----
0

query I rowsort
SELECT + 6 * + - 76 AS col1
----
-456

query I rowsort
SELECT ALL 12 * - 92 * 61 AS col2
----
-67344

query II rowsort
SELECT ALL + 77 AS col1, 5
----
77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT - 76 * ( - + COUNT( ALL - 5 ) )
----
76

skipif mysql # not compatible
query I rowsort label-6871
SELECT - 76 * ( - + COUNT ( ALL - 5 ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6872
SELECT + COUNT( * ), + 14 * - - MAX( - 40 ) + + 81 AS col0
----
1
-479

skipif mysql # not compatible
query II rowsort label-6872
SELECT + COUNT ( * ), + 14 * - - MAX ( - 40 ) + + 81 AS col0
----
1
-479

query I rowsort
SELECT + ( 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6874
SELECT ALL + 93 AS col0, - COUNT( * ) DIV COUNT( * ) col2
----
93
-1

skipif mysql # not compatible
query II rowsort label-6874
SELECT ALL + 93 AS col0, - COUNT ( * ) / COUNT ( * ) col2
----
93
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6875
SELECT + COUNT( * ), 7 AS col1
----
1
7

skipif mysql # not compatible
query II rowsort label-6875
SELECT + COUNT ( * ), 7 AS col1
----
1
7

query I rowsort
SELECT ( + 37 ) AS col2
----
37

query I rowsort
SELECT + 34 * + - 32
----
-1088

query I rowsort
SELECT DISTINCT 69 * + ( + 51 )
----
3519

query I rowsort
SELECT ALL 34 * + 74 * - 89 + + - 32
----
-223956

query I rowsort
SELECT + 98 * - 76 AS col2
----
-7448

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL - 96 * MAX( + 56 ) + - 4 * + 36 + 50
----
-5470

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - 96 * MAX ( + 56 ) + - 4 * + 36 + 50
----
-5470

query II rowsort
SELECT DISTINCT - 1 * - 69 * + 61, 99 AS col1
----
4209
99

query I rowsort
SELECT - - 50 * + 91
----
4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT + - COALESCE ( 32, - 63 ) + 21 - + 93 * CAST( - 5 AS SIGNED )
----
454

skipif mysql # not compatible
query I rowsort label-6884
SELECT + - COALESCE ( 32, - 63 ) + 21 - + 93 * CAST ( - 5 AS INTEGER )
----
454

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT COUNT( * ) * 7 + 81 + 84 + - 22 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT COUNT ( * ) * 7 + 81 + 84 + - 22 AS col2
----
150

query I rowsort
SELECT ALL - 37 * + 53 + + 77 col2
----
-1884

query I rowsort
SELECT - 48 - + - 65 * + 44 * 49 + + 48 * + 5
----
140332

query I rowsort
SELECT ALL - 95 * - 81 col1
----
7695

query I rowsort
SELECT + 92 + + 40
----
132

query I rowsort
SELECT ALL 93 * + - 21 * - + 88 + 58 + - 64
----
171858

query II rowsort
SELECT DISTINCT + 67 * - 44 + + 54, - 88 * 54 AS col2
----
-2894
-4752

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6892
SELECT ALL - 51 * + - 26 * - 68 + CAST( + - 55 AS SIGNED ) DIV - + ( 75 ) + 94
----
-90074

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - 51 * + - 26 * - 68 + CAST ( + - 55 AS INTEGER ) / - + ( 75 ) + 94
----
-90074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) + - + ( + COALESCE ( 46, - 98 ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) + - + ( + COALESCE ( 46, - 98 ) ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6894
SELECT + + COALESCE ( 20, + COUNT( * ) DIV + CASE - 1 WHEN + 51 * + ( 59 ) - 95 THEN 51 DIV + COALESCE ( 62, - COUNT( * ) * + 83 - + ( - 52 ), + CAST( - 78 AS SIGNED ) DIV + 41, + 15 + + NULLIF ( 39 + ( - 53 ), 1 + 58 * 83 ) ) WHEN - 8 THEN NULL END - 22 ) * 99
----
1980

skipif mysql # not compatible
query I rowsort label-6894
SELECT + + COALESCE ( 20, + COUNT ( * ) / + CASE - 1 WHEN + 51 * + ( 59 ) - 95 THEN 51 / + COALESCE ( 62, - COUNT ( * ) * + 83 - + ( - 52 ), + CAST ( - 78 AS INTEGER ) / + 41, + 15 + + NULLIF ( 39 + ( - 53 ), 1 + 58 * 83 ) ) WHEN - 8 THEN NULL END - 22 ) * 99
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT 48 * 43 + + MAX( + 41 ) + + COUNT( * ) + - + COALESCE ( - - 58, + 2 ) AS col0
----
2048

skipif mysql # not compatible
query I rowsort label-6895
SELECT 48 * 43 + + MAX ( + 41 ) + + COUNT ( * ) + - + COALESCE ( - - 58, + 2 ) AS col0
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL - 43 - COUNT( * ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL - 43 - COUNT ( * ) col1
----
-44

query I rowsort
SELECT + ( - ( - 83 ) ) AS col1
----
83

query I rowsort
SELECT - - ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT - + MAX( DISTINCT - 51 ) + 21 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6899
SELECT - + MAX ( DISTINCT - 51 ) + 21 AS col2
----
72

query I rowsort
SELECT NULLIF ( 81, ( + 68 ) + - - 92 ) AS col2
----
81

query I rowsort
SELECT ALL ( - 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - COUNT( + 38 ) * + - COUNT( * ) * + NULLIF ( 76, 18 * + 41 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6902
SELECT - COUNT ( + 38 ) * + - COUNT ( * ) * + NULLIF ( 76, 18 * + 41 ) AS col0
----
76

query I rowsort
SELECT DISTINCT - 60 * + 3
----
-180

query I rowsort
SELECT ALL - 49 * 27 AS col1
----
-1323

query I rowsort
SELECT - 12 * 0 AS col2
----
0

query I rowsort
SELECT ALL - 40 * - 51
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT DISTINCT - 67 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT - 67 * - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL - COALESCE ( + COUNT( * ), + 73 + + 57, - 72 * - - 28, + - 55 + 83 ) * - COUNT( * ) * + 49 - - 37 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL - COALESCE ( + COUNT ( * ), + 73 + + 57, - 72 * - - 28, + - 55 + 83 ) * - COUNT ( * ) * + 49 - - 37 AS col1
----
86

query I rowsort
SELECT - 76 * - 37
----
2812

query I rowsort
SELECT + 82 * + - 8 * + NULLIF ( + 76, + + COALESCE ( - 45, - ( ( ( + COALESCE ( + 41, + 69 ) ) ) ) * - 21 + + ( + 39 ) / + 10, 66 ) ) AS col1
----
-49856

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT - 70 + + COUNT( * ), + 30 * - + 4 AS col0
----
-69
-120

skipif mysql # not compatible
query II rowsort label-6911
SELECT - 70 + + COUNT ( * ), + 30 * - + 4 AS col0
----
-69
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT ALL 58 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL 58 / - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT + SUM( - 89 ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT + SUM ( - 89 ) col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT 5 DIV - - COUNT( * ) + 6 + + 85 * - + COUNT( * ) + - 68 + COUNT( * ) - - 96 * 64 * 61 AS col1
----
374643

skipif mysql # not compatible
query I rowsort label-6914
SELECT 5 / - - COUNT ( * ) + 6 + + 85 * - + COUNT ( * ) + - 68 + COUNT ( * ) - - 96 * 64 * 61 AS col1
----
374643

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL 10 + - SUM( DISTINCT 66 ) * NULLIF ( 17, + + 35 ) AS col2
----
-1112

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL 10 + - SUM ( DISTINCT 66 ) * NULLIF ( 17, + + 35 ) AS col2
----
-1112

query II rowsort
SELECT 37 * - + 93 AS col1, ( - ( + + 83 ) ) AS col2
----
-3441
-83

query I rowsort
SELECT ( - ( - 72 ) ) * + - 51 + - 83 AS col1
----
-3755

query I rowsort
SELECT ALL 57 * + 64 * 67 AS col1
----
244416

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT 36 * + CASE + 81 WHEN 95 / ( + 61 ) * - 9 + 78 + - - 51 / + 64 THEN 87 WHEN + ( COUNT( * ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT 36 * + CASE + 81 WHEN 95 / ( + 61 ) * - 9 + 78 + - - 51 / + 64 THEN 87 WHEN + ( COUNT ( * ) ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + - 26, - + 17 * 62 * 61, - 78, + 34 * 34 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT - COUNT( ALL 73 ) * + ( 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6921
SELECT - COUNT ( ALL 73 ) * + ( 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL - 8 + - + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - 8 + - + COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT ALL - - 20
----
20

query I rowsort
SELECT ALL 59 * + 43 + + 88
----
2625

query I rowsort
SELECT ( - + 37 ) * CASE ( 64 ) WHEN - 97 THEN 21 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT + MAX( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6926
SELECT + MAX ( - 0 )
----
0

query I rowsort
SELECT DISTINCT 77 - 85 AS col2
----
-8

query I rowsort
SELECT 84 * + - 99 AS col0
----
-8316

query I rowsort
SELECT 28 * 18 + + 90 col2
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6930
SELECT 77 - + - 2 + SUM( + - CAST( 40 AS SIGNED ) ) * + 21 AS col1
----
-761

skipif mysql # not compatible
query I rowsort label-6930
SELECT 77 - + - 2 + SUM ( + - CAST ( 40 AS INTEGER ) ) * + 21 AS col1
----
-761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6931
SELECT - 62 DIV - SUM( ALL - + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6931
SELECT - 62 / - SUM ( ALL - + 70 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6932
SELECT ALL CASE + + 57 WHEN 31 * 28 * + - 36 * + 93 THEN - - SUM( DISTINCT - CAST( + 91 AS SIGNED ) ) ELSE + 80 END
----
80

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL CASE + + 57 WHEN 31 * 28 * + - 36 * + 93 THEN - - SUM ( DISTINCT - CAST ( + 91 AS INTEGER ) ) ELSE + 80 END
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT - MIN( + - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6933
SELECT - MIN ( + - 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT - 19 * - 79 + - + 98 * COUNT( * ) + + + 3
----
1406

skipif mysql # not compatible
query I rowsort label-6934
SELECT - 19 * - 79 + - + 98 * COUNT ( * ) + + + 3
----
1406

query I rowsort
SELECT ALL 89 * - 47
----
-4183

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6936
SELECT ( ( 82 ) ) DIV + + ( + 57 ) AS col2, + MAX( DISTINCT 13 ) AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-6936
SELECT ( ( 82 ) ) / + + ( + 57 ) AS col2, + MAX ( DISTINCT 13 ) AS col1
----
1
13

onlyif mysql # aggregate syntax: 
query III rowsort label-6937
SELECT ALL 68 AS col2, + 4 - - 28, - COUNT( * ) + - ( 18 ) col0
----
68
32
-19

skipif mysql # not compatible
query III rowsort label-6937
SELECT ALL 68 AS col2, + 4 - - 28, - COUNT ( * ) + - ( 18 ) col0
----
68
32
-19

query II rowsort
SELECT DISTINCT 70 AS col0, - 74 + 33 + - + 11
----
70
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT 3 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT 3 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT 48 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT 48 / - + 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT ALL + CAST( NULL AS SIGNED ) / - - 74 * - 91 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 74 * - 91 * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT COUNT( * ) + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-6942
SELECT COUNT ( * ) + 19 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT COUNT( * ) * - + 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6943
SELECT COUNT ( * ) * - + 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT 32 + 54 + + - CASE 61 WHEN ( - 98 ) THEN 97 * - 17 + + SUM( + 61 ) WHEN COUNT( * ) + + 36 * 35 THEN COUNT( * ) ELSE - 33 END AS col1
----
119

skipif mysql # not compatible
query I rowsort label-6944
SELECT 32 + 54 + + - CASE 61 WHEN ( - 98 ) THEN 97 * - 17 + + SUM ( + 61 ) WHEN COUNT ( * ) + + 36 * 35 THEN COUNT ( * ) ELSE - 33 END AS col1
----
119

query I rowsort
SELECT DISTINCT 39 col0
----
39

query I rowsort
SELECT ALL - 18 * - NULLIF ( 32, - + 7 ) AS col2
----
576

query II rowsort
SELECT DISTINCT + 64 + 3 - + 87 AS col0, - 65 * + 68 * 87 AS col2
----
-20
-384540

query I rowsort
SELECT ALL - 46 + + - 50
----
-96

query I rowsort
SELECT DISTINCT + 91 + - + 36
----
55

query I rowsort
SELECT ALL + 19 * + 59
----
1121

query I rowsort
SELECT 73 * - 19 * + 22
----
-30514

query I rowsort
SELECT ALL - 46 + + 84
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6953
SELECT NULLIF ( - 45, + 22 + + + 34 + + - 27 - - - 10 * + 94 ) * + COUNT( * ) - + 33 * - ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT NULLIF ( - 45, + 22 + + + 34 + + - 27 - - - 10 * + 94 ) * + COUNT ( * ) - + 33 * - ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 56 * 43 AS col0
----
2408

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT + 64 AS col0, - CASE - - 8 WHEN + 81 THEN NULL WHEN - COUNT( * ) * - + 80 + - CASE - - MAX( - 3 ) WHEN + SUM( DISTINCT 10 ) THEN 32 WHEN 80 THEN NULL WHEN + 86 * - 11 THEN NULL ELSE - 54 END THEN 42 ELSE NULL END
----
64
NULL

skipif mysql # not compatible
query II rowsort label-6955
SELECT + 64 AS col0, - CASE - - 8 WHEN + 81 THEN NULL WHEN - COUNT ( * ) * - + 80 + - CASE - - MAX ( - 3 ) WHEN + SUM ( DISTINCT 10 ) THEN 32 WHEN 80 THEN NULL WHEN + 86 * - 11 THEN NULL ELSE - 54 END THEN 42 ELSE NULL END
----
64
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6956
SELECT + - 72 DIV 65 + - 51 + + COUNT( * ) * - 60 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-6956
SELECT + - 72 / 65 + - 51 + + COUNT ( * ) * - 60 AS col0
----
-112

query I rowsort
SELECT 94 * 81
----
7614

query I rowsort
SELECT DISTINCT - + 86
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT ALL + 78 DIV - NULLIF ( 94, - + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + 78 / - NULLIF ( 94, - + 96 )
----
0

query I rowsort
SELECT ALL - + 43 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT DISTINCT - 9 - - 53 * AVG ( - CAST( NULL AS SIGNED ) ) * + - MAX( ALL + 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - 9 - - 53 * AVG ( - CAST ( NULL AS INTEGER ) ) * + - MAX ( ALL + 13 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + + COUNT( DISTINCT - 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6962
SELECT + + COUNT ( DISTINCT - 92 ) AS col0
----
1

query I rowsort
SELECT ALL - + ( - 43 )
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6964
SELECT - CAST( NULL AS DECIMAL ) * + 51 - 1 + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT - CAST ( NULL AS REAL ) * + 51 - 1 + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL - + NULLIF ( - 9, + CASE 93 WHEN + - COUNT( * ) THEN - COUNT( 5 ) + - - 58 WHEN + 68 + 37 THEN NULL ELSE + COUNT( * ) END * COUNT( * ) ) - - 70 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - + NULLIF ( - 9, + CASE 93 WHEN + - COUNT ( * ) THEN - COUNT ( 5 ) + - - 58 WHEN + 68 + 37 THEN NULL ELSE + COUNT ( * ) END * COUNT ( * ) ) - - 70 AS col0
----
79

query I rowsort
SELECT 22 + - ( - 72 )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-6967
SELECT 53 DIV 30 * + + 90 AS col2, 43
----
90
43

skipif mysql # not compatible
query II rowsort label-6967
SELECT 53 / 30 * + + 90 AS col2, 43
----
90
43

query II rowsort
SELECT 43 * + 89 * + 58 AS col1, - 46 AS col0
----
221966
-46

query II rowsort
SELECT + 38 AS col2, + 3
----
38
3

query I rowsort
SELECT ALL - ( + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT COUNT( * ) * + + 32
----
32

skipif mysql # not compatible
query I rowsort label-6971
SELECT COUNT ( * ) * + + 32
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT + 3 + 14 + COUNT( ALL 71 ) + + 8 * - 37 / + - CASE + CAST( NULL AS SIGNED ) WHEN + 71 THEN - - 24 - 95 * 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT + 3 + 14 + COUNT ( ALL 71 ) + + 8 * - 37 / + - CASE + CAST ( NULL AS INTEGER ) WHEN + 71 THEN - - 24 - 95 * 95 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 4 * - 27
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT ALL - MIN( - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - MIN ( - 56 )
----
56

query I rowsort
SELECT - 26 + - ( 2 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6976
SELECT ALL 66 AS col0, COUNT( * ) DIV + 1 + - 96
----
66
-95

skipif mysql # not compatible
query II rowsort label-6976
SELECT ALL 66 AS col0, COUNT ( * ) / + 1 + - 96
----
66
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT COUNT( * ) * + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6977
SELECT COUNT ( * ) * + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - MAX( DISTINCT - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6978
SELECT - MAX ( DISTINCT - 88 ) AS col1
----
88

query II rowsort
SELECT 97 AS col1, - 30
----
97
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6980
SELECT COALESCE ( - 54, 47 * - + 24 * + 2 ) + - 25 / - SUM( + - CAST( NULL AS SIGNED ) ) + + 74 AS col0, + 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-6980
SELECT COALESCE ( - 54, 47 * - + 24 * + 2 ) + - 25 / - SUM ( + - CAST ( NULL AS INTEGER ) ) + + 74 AS col0, + 77 AS col0
----
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT DISTINCT CAST( 28 AS SIGNED ) + 44
----
72

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT CAST ( 28 AS INTEGER ) + 44
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT DISTINCT CAST( NULL AS SIGNED ) + 92 * - - 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 92 * - - 15 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6983
SELECT ALL - 14 + + + 75 + - CAST( - 59 AS SIGNED ) AS col2, - 51 AS col2
----
120
-51

skipif mysql # not compatible
query II rowsort label-6983
SELECT ALL - 14 + + + 75 + - CAST ( - 59 AS INTEGER ) AS col2, - 51 AS col2
----
120
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT + COUNT( * ) + + 32 + - 77
----
-44

skipif mysql # not compatible
query I rowsort label-6984
SELECT + COUNT ( * ) + + 32 + - 77
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT ALL 97, + COUNT( * ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-6985
SELECT ALL 97, + COUNT ( * ) AS col0
----
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT - CAST( 92 AS SIGNED ) + - 84
----
-176

skipif mysql # not compatible
query I rowsort label-6986
SELECT - CAST ( 92 AS INTEGER ) + - 84
----
-176

query II rowsort
SELECT 77 AS col2, 25 * + 70 + - + 73 AS col1
----
77
1677

query II rowsort
SELECT - 54 AS col1, + COALESCE ( - 24, CASE + 61 WHEN + + 93 THEN NULL WHEN ( + 59 ) / - 24 / - + 22 THEN - NULLIF ( 76, + 39 - 44 * + NULLIF ( 34, 1 ) ) END, - 37 )
----
-54
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6989
SELECT + SUM( ALL 80 ) + CASE + 24 WHEN + CAST( + 21 AS SIGNED ) * - - 36 THEN 28 WHEN 87 + + 71 THEN NULL ELSE NULL END - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT + SUM ( ALL 80 ) + CASE + 24 WHEN + CAST ( + 21 AS INTEGER ) * - - 36 THEN 28 WHEN 87 + + 71 THEN NULL ELSE NULL END - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 40 * - ( - 1 ) AS col2
----
40

query I rowsort
SELECT + 57 + - 24 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT ALL + COUNT( * ), + 61 * + - SUM( ALL - 18 ) + - 64 AS col0
----
1
1034

skipif mysql # not compatible
query II rowsort label-6992
SELECT ALL + COUNT ( * ), + 61 * + - SUM ( ALL - 18 ) + - 64 AS col0
----
1
1034

query II rowsort
SELECT ALL + 9, 31 AS col0
----
9
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT - CAST( - 25 AS SIGNED ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6994
SELECT - CAST ( - 25 AS INTEGER ) AS col1
----
25

query I rowsort
SELECT ALL + 99 col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6996
SELECT - ( + CAST( 49 AS SIGNED ) ) DIV 42 + + NULLIF ( - 23, MIN( + 41 ) * - 28 ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-6996
SELECT - ( + CAST ( 49 AS INTEGER ) ) / 42 + + NULLIF ( - 23, MIN ( + 41 ) * - 28 ) col2
----
-24

query I rowsort
SELECT ALL + 16 * + 46 * + + 59
----
43424

query II rowsort
SELECT + + 4 AS col2, - 71 AS col1
----
4
-71

query I rowsort
SELECT - 38 * - + 64
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT - COUNT( * ) * - 31 * 56 * - COUNT( * ) AS col1
----
-1736

skipif mysql # not compatible
query I rowsort label-7000
SELECT - COUNT ( * ) * - 31 * 56 * - COUNT ( * ) AS col1
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7001
SELECT - + 45 DIV - + CAST( + CAST( - 9 AS SIGNED ) AS SIGNED ) - ( 99 ) * COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-7001
SELECT - + 45 / - + CAST ( + CAST ( - 9 AS INTEGER ) AS INTEGER ) - ( 99 ) * COUNT ( * )
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-7002
SELECT - COUNT( * ), 32 AS col0
----
-1
32

skipif mysql # not compatible
query II rowsort label-7002
SELECT - COUNT ( * ), 32 AS col0
----
-1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT - 83 / + + CASE COALESCE ( - SUM( ALL + 33 ), MAX( ALL - - 11 ), + COUNT( * ) ) WHEN - - 48 THEN + 28 WHEN + ( 80 ) - 54 / - 24 THEN NULL WHEN MAX( ( 24 ) ) * 94 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT - 83 / + + CASE COALESCE ( - SUM ( ALL + 33 ), MAX ( ALL - - 11 ), + COUNT ( * ) ) WHEN - - 48 THEN + 28 WHEN + ( 80 ) - 54 / - 24 THEN NULL WHEN MAX ( ( 24 ) ) * 94 THEN NULL END col0
----
NULL

query I rowsort
SELECT ALL + - CASE + 13 WHEN - 40 THEN 31 WHEN + 42 THEN - ( - 35 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT ALL + 51 * + 98 * - 17 + + 44 DIV + 98
----
-84966

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL + 51 * + 98 * - 17 + + 44 / + 98
----
-84966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7006
SELECT NULLIF ( - NULLIF ( 5, - 96 * + + AVG ( - - 33 ) + + 8 - - CAST( NULL AS SIGNED ) ), COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-7006
SELECT NULLIF ( - NULLIF ( 5, - 96 * + + AVG ( - - 33 ) + + 8 - - CAST ( NULL AS INTEGER ) ), COUNT ( * ) )
----
-5

query II rowsort
SELECT + - 86 AS col1, + 98 AS col2
----
-86
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT + - COALESCE ( + 37, - MAX( 41 ) - 29 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7008
SELECT + - COALESCE ( + 37, - MAX ( 41 ) - 29 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT SUM( 99 )
----
99

skipif mysql # not compatible
query I rowsort label-7009
SELECT SUM ( 99 )
----
99

query I rowsort
SELECT - 54 - + - 30 * - 47
----
-1464

query I rowsort
SELECT - COALESCE ( 74, + 20 * + 77 + 89 ) AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT - 30 - + + 12 DIV - COALESCE ( - 2, - 39 * + 44, - COUNT( * ) * - 90 DIV 9 * - 0 - + - 26 * + 33 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7012
SELECT - 30 - + + 12 / - COALESCE ( - 2, - 39 * + 44, - COUNT ( * ) * - 90 / 9 * - 0 - + - 26 * + 33 ) AS col0
----
-36

query I rowsort
SELECT ALL 41 * - 15
----
-615

query II rowsort
SELECT ALL 94 + + 66 AS col2, 45 * - 82 AS col1
----
160
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7015
SELECT ALL CAST( + + COALESCE ( COALESCE ( + - 38, 78 ), + - COUNT( * ) * + - 96 ) AS SIGNED ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL CAST ( + + COALESCE ( COALESCE ( + - 38, 78 ), + - COUNT ( * ) * + - 96 ) AS INTEGER ) AS col2
----
-38

query I rowsort
SELECT - 70 + 79
----
9

query I rowsort
SELECT + 76 - + 19 AS col2
----
57

query I rowsort
SELECT ALL 34 - - 25
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT - CAST( - 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-7019
SELECT - CAST ( - 25 AS INTEGER )
----
25

query I rowsort
SELECT - CASE - 71 WHEN - 64 THEN NULL WHEN + 81 THEN NULL ELSE 29 END col0
----
-29

query I rowsort
SELECT + 16 + 25 AS col2
----
41

query I rowsort
SELECT ALL 28 * + - ( - 52 )
----
1456

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT DISTINCT MIN( ALL + - 23 ), + 20 AS col0
----
-23
20

skipif mysql # not compatible
query II rowsort label-7023
SELECT DISTINCT MIN ( ALL + - 23 ), + 20 AS col0
----
-23
20

query II rowsort
SELECT ALL 98 - + - 74 col2, - 70 col1
----
172
-70

query I rowsort
SELECT + 56 * + - 66 * - 24 AS col1
----
88704

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL COALESCE ( - 13, + - 12 + - 40 * 70 ) * + 8 * + + COUNT( * ) * 32 * - 99 * - 75
----
-24710400

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL COALESCE ( - 13, + - 12 + - 40 * 70 ) * + 8 * + + COUNT ( * ) * 32 * - 99 * - 75
----
-24710400

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT + 69 + + 66 DIV + - 93 * + 25 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7027
SELECT + 69 + + 66 / + - 93 * + 25 AS col0
----
69

query I rowsort
SELECT + + 96 / - CASE + - 30 WHEN + 69 THEN 19 END + + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT 79 * - COUNT( * ) + + 78 + + COALESCE ( - 30, - 19, + 27 * + NULLIF ( - - COUNT( * ), - - 58 ) - + 82 ) - + 18 * + 79
----
-1453

skipif mysql # not compatible
query I rowsort label-7029
SELECT 79 * - COUNT ( * ) + + 78 + + COALESCE ( - 30, - 19, + 27 * + NULLIF ( - - COUNT ( * ), - - 58 ) - + 82 ) - + 18 * + 79
----
-1453

query I rowsort
SELECT - + 15 * - + 49 AS col0
----
735

query I rowsort
SELECT DISTINCT + + COALESCE ( 3, - - 90 ) AS col1
----
3

query I rowsort
SELECT ALL + - 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + + 94 * - 10 * COUNT( * ) * + 44
----
-41360

skipif mysql # not compatible
query I rowsort label-7033
SELECT + + 94 * - 10 * COUNT ( * ) * + 44
----
-41360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7034
SELECT - - 89 + - 67 col2, + CAST( + COALESCE ( + + 95, + - 78 ) AS SIGNED )
----
22
95

skipif mysql # not compatible
query II rowsort label-7034
SELECT - - 89 + - 67 col2, + CAST ( + COALESCE ( + + 95, + - 78 ) AS INTEGER )
----
22
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL + + ( + 12 ) * - NULLIF ( + 61, - 79 * 24 / + + 96 * 94 + 0 * - 92 * 66 / 15 * - 56 ) + - COUNT( * )
----
-733

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL + + ( + 12 ) * - NULLIF ( + 61, - 79 * 24 / + + 96 * 94 + 0 * - 92 * 66 / 15 * - 56 ) + - COUNT ( * )
----
-733

query I rowsort
SELECT - ( + 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - 91 * + CASE - ( COUNT( * ) ) WHEN 46 THEN - 85 * - COUNT( * ) WHEN MAX( + + 31 ) THEN NULL ELSE NULL END + 97 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT - 91 * + CASE - ( COUNT ( * ) ) WHEN 46 THEN - 85 * - COUNT ( * ) WHEN MAX ( + + 31 ) THEN NULL ELSE NULL END + 97 + - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7038
SELECT ALL + CASE + + COUNT( * ) WHEN - CASE + 65 WHEN - 42 + + - NULLIF ( 57, + + 33 * - + 94 ) THEN NULL WHEN - 11 * - - 44 THEN - 60 + - CAST( NULL AS SIGNED ) ELSE 18 END THEN NULL WHEN 65 THEN 46 + + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + CASE + + COUNT ( * ) WHEN - CASE + 65 WHEN - 42 + + - NULLIF ( 57, + + 33 * - + 94 ) THEN NULL WHEN - 11 * - - 44 THEN - 60 + - CAST ( NULL AS INTEGER ) ELSE 18 END THEN NULL WHEN 65 THEN 46 + + 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT + COUNT( * ) * - 34 * + NULLIF ( - - COUNT( * ), 85 ) + - + 33 * 19 col2
----
-661

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT + COUNT ( * ) * - 34 * + NULLIF ( - - COUNT ( * ), 85 ) + - + 33 * 19 col2
----
-661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT ALL - 41 * + 61 * - - 36 * CAST( 38 AS SIGNED ) + + + 70 AS col0
----
-3421298

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - 41 * + 61 * - - 36 * CAST ( 38 AS INTEGER ) + + + 70 AS col0
----
-3421298

query I rowsort
SELECT ALL + ( - - 16 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT ALL - 92 * + 86 + - - 28, + 31 * COUNT( * ) AS col0
----
-7884
31

skipif mysql # not compatible
query II rowsort label-7042
SELECT ALL - 92 * + 86 + - - 28, + 31 * COUNT ( * ) AS col0
----
-7884
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7043
SELECT DISTINCT - 80 AS col0, + MAX( ALL - 59 )
----
-80
-59

skipif mysql # not compatible
query II rowsort label-7043
SELECT DISTINCT - 80 AS col0, + MAX ( ALL - 59 )
----
-80
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT 57 + + COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-7044
SELECT 57 + + COUNT ( * ) col1
----
58

query II rowsort
SELECT ALL 82 AS col1, 85
----
82
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT 31 * + - COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7046
SELECT 31 * + - COUNT ( * ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT - 86 AS col2, 67 + - - 23 * SUM( + 61 ) + + + ( 62 ) + - 7
----
-86
1525

skipif mysql # not compatible
query II rowsort label-7047
SELECT - 86 AS col2, 67 + - - 23 * SUM ( + 61 ) + + + ( 62 ) + - 7
----
-86
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL - 60 - ( 27 ) * + 41 + + ( - COALESCE ( - - 6, + COUNT( * ) ) ) AS col2
----
-1173

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - 60 - ( 27 ) * + 41 + + ( - COALESCE ( - - 6, + COUNT ( * ) ) ) AS col2
----
-1173

query I rowsort
SELECT 47 * - - 76 * - 11
----
-39292

query I rowsort
SELECT 83 * + - 78 AS col2
----
-6474

query I rowsort
SELECT 57 * - 24
----
-1368

query I rowsort
SELECT ALL + 87 * 49 AS col1
----
4263

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT MIN( ALL 86 ) + + 77
----
163

skipif mysql # not compatible
query I rowsort label-7053
SELECT MIN ( ALL 86 ) + + 77
----
163

query II rowsort
SELECT - 49 AS col0, 62
----
-49
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7055
SELECT ALL + 60 - CASE 25 WHEN 80 THEN + + CAST( NULL AS SIGNED ) * - 70 WHEN + NULLIF ( + 49, 8 ) * 31 + + + 39 THEN NULL ELSE - 22 END + 72 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + 60 - CASE 25 WHEN 80 THEN + + CAST ( NULL AS INTEGER ) * - 70 WHEN + NULLIF ( + 49, 8 ) * 31 + + + 39 THEN NULL ELSE - 22 END + 72 AS col2
----
154

query I rowsort
SELECT 72 + 21
----
93

query II rowsort
SELECT ALL - 97 * 34 * - 22, + 34 * - 78 AS col2
----
72556
-2652

query I rowsort
SELECT ALL 60 col1
----
60

query II rowsort
SELECT DISTINCT 13, - 39 col1
----
13
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT + 63 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT + 63 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + COALESCE ( - 96, - ( - COALESCE ( + + 35, - 33 ) ), + 87 * - 18 )
----
-96

query I rowsort
SELECT - - 18 AS col0
----
18

query I rowsort
SELECT - 16 + - ( + - 84 ) - - + 33 AS col0
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7064
SELECT - 90 * 56 + - + COUNT( + 82 ) DIV + 45
----
-5040

skipif mysql # not compatible
query I rowsort label-7064
SELECT - 90 * 56 + - + COUNT ( + 82 ) / + 45
----
-5040

query I rowsort
SELECT ALL 59 * - 69 AS col2
----
-4071

query I rowsort
SELECT ALL - - 3 col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT DISTINCT + COALESCE ( + COALESCE ( + + 33, - + ( - 31 ), + MIN( ALL - + 54 ) ), + ( + - 7 ) - + COUNT( ALL + 29 ) DIV 96 ) + + - 85 * - 42 AS col0
----
3603

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + COALESCE ( + COALESCE ( + + 33, - + ( - 31 ), + MIN ( ALL - + 54 ) ), + ( + - 7 ) - + COUNT ( ALL + 29 ) / 96 ) + + - 85 * - 42 AS col0
----
3603

query I rowsort
SELECT ALL - + 82
----
-82

query I rowsort
SELECT DISTINCT - + 21
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7070
SELECT CAST( NULL AS DECIMAL ) AS col1, 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-7070
SELECT CAST ( NULL AS REAL ) AS col1, 86 AS col2
----
NULL
86

query II rowsort
SELECT + - 77, + 38 AS col0
----
-77
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT + 79 + - CASE COUNT( * ) WHEN + + 10 / 33 THEN 7 * - - 62 + + MIN( DISTINCT - 17 ) WHEN + 7 - + + 51 THEN NULL ELSE NULL END * - 22 * + 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT + 79 + - CASE COUNT ( * ) WHEN + + 10 / 33 THEN 7 * - - 62 + + MIN ( DISTINCT - 17 ) WHEN + 7 - + + 51 THEN NULL ELSE NULL END * - 22 * + 40 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7073
SELECT + 23 DIV + COUNT( ALL - 96 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7073
SELECT + 23 / + COUNT ( ALL - 96 ) AS col2
----
23

query I rowsort
SELECT - + 78 * + 1 + + - 68 AS col0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - NULLIF ( + 7, COALESCE ( - - COUNT( * ), - - 54 ) ) * - 75
----
525

skipif mysql # not compatible
query I rowsort label-7075
SELECT - NULLIF ( + 7, COALESCE ( - - COUNT ( * ), - - 54 ) ) * - 75
----
525

query I rowsort
SELECT + ( - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT NULLIF ( - + 83, + + COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7077
SELECT NULLIF ( - + 83, + + COUNT ( * ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT 26 * 10 + + - CASE + 79 WHEN 69 * - - 93 + - COUNT( + - 63 ) THEN - 70 ELSE NULL END / 14 / - 49 + - - 13 * 87 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT 26 * 10 + + - CASE + 79 WHEN 69 * - - 93 + - COUNT ( + - 63 ) THEN - 70 ELSE NULL END / 14 / - 49 + - - 13 * 87 + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT - COUNT( - 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - COUNT ( - 89 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT ALL 89 DIV + + 14 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL 89 / + + 14 AS col1
----
6

query II rowsort
SELECT DISTINCT - 5, - ( 9 ) AS col2
----
-5
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT + 45 + + 65 * - - COUNT( * ) DIV + - 83
----
45

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + 45 + + 65 * - - COUNT ( * ) / + - 83
----
45

query I rowsort
SELECT ALL - 91 + + 93 * - - 33 + + + 0
----
2978

query I rowsort
SELECT DISTINCT - 73 * 80 AS col2
----
-5840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7085
SELECT ALL - NULLIF ( - + 49, - CAST( NULL AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - NULLIF ( - + 49, - CAST ( NULL AS INTEGER ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT 67 * - MIN( ALL - 11 ) AS col1
----
737

skipif mysql # not compatible
query I rowsort label-7086
SELECT 67 * - MIN ( ALL - 11 ) AS col1
----
737

query I rowsort
SELECT 73 + + 80
----
153

query I rowsort
SELECT DISTINCT - 73 * - + 29
----
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT 92 * MAX( DISTINCT - 72 )
----
-6624

skipif mysql # not compatible
query I rowsort label-7089
SELECT 92 * MAX ( DISTINCT - 72 )
----
-6624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7090
SELECT DISTINCT COUNT( ALL + 73 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT COUNT ( ALL + 73 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 22 - + 45 + - - 23
----
0

query I rowsort
SELECT DISTINCT 81 * - 65
----
-5265

query I rowsort
SELECT ALL - 29 - - 79 - - 27 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT DISTINCT + 11 * - 29 * + + CAST( - 34 AS SIGNED )
----
10846

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + 11 * - 29 * + + CAST ( - 34 AS INTEGER )
----
10846

query I rowsort
SELECT 1 - 43 * + 78 + - 70
----
-3423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7096
SELECT 72 DIV + NULLIF ( - - 76, - - 59 ) DIV + COUNT( ALL 54 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7096
SELECT 72 / + NULLIF ( - - 76, - - 59 ) / + COUNT ( ALL 54 ) AS col1
----
0

query II rowsort
SELECT 11 - + 37 AS col1, 1 col0
----
-26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ALL + + COUNT( * ) * + - 39 + + - ( + 16 ) + + 0 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL + + COUNT ( * ) * + - 39 + + - ( + 16 ) + + 0 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL + + CASE 7 WHEN - COUNT( * ) * + + NULLIF ( - 19, - + COALESCE ( + 39, - - 85 + 49 ) ) THEN NULL ELSE + - 34 + - 72 END + - - 69 - + 89
----
-126

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + + CASE 7 WHEN - COUNT ( * ) * + + NULLIF ( - 19, - + COALESCE ( + 39, - - 85 + 49 ) ) THEN NULL ELSE + - 34 + - 72 END + - - 69 - + 89
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL + COUNT( ( - 49 ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + COUNT ( ( - 49 ) ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT - - ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7101
SELECT - - ( + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL + + 8 + 51 + - 72 AS col0
----
-13

query I rowsort
SELECT - + 58 AS col0
----
-58

query I rowsort
SELECT - 93 + - 7 AS col2
----
-100

query II rowsort
SELECT ( - 15 ) AS col1, - 38 * + 42 AS col1
----
-15
-1596

query I rowsort
SELECT - - 3 / 28 + 4 + + 2 * - CASE 79 WHEN + 7 + - - 53 THEN + 16 + 48 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT 12 * + - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7107
SELECT 12 * + - COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT + 43 + - - 62 AS col2
----
105

query I rowsort
SELECT ALL - 38 * + 65 + + CASE COALESCE ( + 96, - 77, - 82 ) WHEN + 14 + 48 THEN NULL ELSE 93 END + + 78 + 13 + + + 94 + - + 64 AS col1
----
-2256

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7110
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 65 * - 42
----
-2730

query I rowsort
SELECT DISTINCT + 89 * + 96 + - 40
----
8504

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT 59 * 25 - + 73 DIV 49 AS col1
----
1474

skipif mysql # not compatible
query I rowsort label-7113
SELECT 59 * 25 - + 73 / 49 AS col1
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT - 71 + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-7114
SELECT - 71 + - COUNT ( * )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7115
SELECT + CAST( NULL AS SIGNED ) * - - COUNT( * ) + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + + 98 AS col1
----
NULL

query I rowsort
SELECT - 88 * 68 AS col0
----
-5984

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT + 53 + - - CASE - - 29 WHEN 37 THEN + COUNT( * ) * - COUNT( * ) WHEN + 52 + - 60 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + 53 + - - CASE - - 29 WHEN 37 THEN + COUNT ( * ) * - COUNT ( * ) WHEN + 52 + - 60 THEN NULL END col2
----
NULL

query I rowsort
SELECT + 65 + - + 81 AS col1
----
-16

query I rowsort
SELECT DISTINCT + 18 col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT + CAST( NULL AS SIGNED ) / - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT + CAST ( NULL AS INTEGER ) / - - 17
----
NULL

query I rowsort
SELECT DISTINCT + 5 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + ( - - 73 ) + - + COUNT( * ) + 60 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-7122
SELECT + ( - - 73 ) + - + COUNT ( * ) + 60 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL + NULLIF ( 87, + - COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL + NULLIF ( 87, + - COUNT ( * ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT COUNT( ALL - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-7124
SELECT COUNT ( ALL - 28 )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-7125
SELECT ALL 46, + COUNT( * ) * + COUNT( * ) AS col0, + MAX( ALL + ( + + NULLIF ( - 82, - + 14 ) ) ) AS col1
----
46
1
-82

skipif mysql # not compatible
query III rowsort label-7125
SELECT ALL 46, + COUNT ( * ) * + COUNT ( * ) AS col0, + MAX ( ALL + ( + + NULLIF ( - 82, - + 14 ) ) ) AS col1
----
46
1
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7126
SELECT + CASE - - 69 WHEN MIN( - + 99 ) THEN - - COALESCE ( - + 83, + 15 * + + COUNT( * ) + + 22 DIV 19 + 14 + 70, - - ( - + COUNT( * ) ) * + ( + 73 ) * CAST( - 72 AS SIGNED ) - CAST( 62 AS SIGNED ) ) + 27 * 52 WHEN + 79 THEN NULL ELSE 3 * - COUNT( * ) END + + 52 * - 61
----
-3175

skipif mysql # not compatible
query I rowsort label-7126
SELECT + CASE - - 69 WHEN MIN ( - + 99 ) THEN - - COALESCE ( - + 83, + 15 * + + COUNT ( * ) + + 22 / 19 + 14 + 70, - - ( - + COUNT ( * ) ) * + ( + 73 ) * CAST ( - 72 AS INTEGER ) - CAST ( 62 AS INTEGER ) ) + 27 * 52 WHEN + 79 THEN NULL ELSE 3 * - COUNT ( * ) END + + 52 * - 61
----
-3175

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT 34 * + COUNT( * ) + 84 - 45 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-7127
SELECT 34 * + COUNT ( * ) + 84 - 45 AS col0
----
73

query I rowsort
SELECT - 39 + - 98
----
-137

query I rowsort
SELECT - 57 * + 0 * + 98 * 65 * - + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL MAX( DISTINCT + COALESCE ( ( COALESCE ( + - 68, + 93 * + 67 * - 45 ) ), - - 50, 39 ) ) + + 6 + - COUNT( * ) - - - 60 * - 43
----
2517

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL MAX ( DISTINCT + COALESCE ( ( COALESCE ( + - 68, + 93 * + 67 * - 45 ) ), - - 50, 39 ) ) + + 6 + - COUNT ( * ) - - - 60 * - 43
----
2517

query I rowsort
SELECT + + 34 * - + ( + 98 ) AS col1
----
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT ALL 81 + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL 81 + COUNT ( * ) AS col0
----
82

query II rowsort
SELECT - + 14 AS col1, 42 AS col0
----
-14
42

query I rowsort
SELECT - 47 + + 28 AS col2
----
-19

query I rowsort
SELECT ALL + 45 + + 20 AS col1
----
65

query II rowsort
SELECT ALL - 16, COALESCE ( 90, + + 88, - 68 ) AS col2
----
-16
90

query I rowsort
SELECT ( - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7138
SELECT - 61 + + - NULLIF ( ( 53 ), 65 + + - COUNT( * ) + + 29 * - + ( - + COALESCE ( + + COUNT( - 70 ), - CAST( + SUM( ALL + 10 ) AS DECIMAL ) * + - 69 * ( 66 ) ) ) * + 37 ) + 53 * + 67 AS col2
----
3437

skipif mysql # not compatible
query I rowsort label-7138
SELECT - 61 + + - NULLIF ( ( 53 ), 65 + + - COUNT ( * ) + + 29 * - + ( - + COALESCE ( + + COUNT ( - 70 ), - CAST ( + SUM ( ALL + 10 ) AS REAL ) * + - 69 * ( 66 ) ) ) * + 37 ) + 53 * + 67 AS col2
----
3437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT - COALESCE ( + + 61, - CAST( 69 AS SIGNED ) * 25 + - ( 44 ), - 35 )
----
-61

skipif mysql # not compatible
query I rowsort label-7139
SELECT - COALESCE ( + + 61, - CAST ( 69 AS INTEGER ) * 25 + - ( 44 ), - 35 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL + COUNT( - - 16 ) * ( - + 82 ) + + 53 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + COUNT ( - - 16 ) * ( - + 82 ) + + 53 AS col2
----
-29

query II rowsort
SELECT - + ( - 37 ) + 18 * + 13 * - 65 - - 6 - - - 33 * - + 77, 98 col1
----
-12626
98

query I rowsort
SELECT ALL - + 88 * - 13 AS col1
----
1144

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7143
SELECT + 71 DIV - + CAST( + COALESCE ( + 13, 78 ) AS SIGNED ) + - 16 * - 22 AS col1
----
347

skipif mysql # not compatible
query I rowsort label-7143
SELECT + 71 / - + CAST ( + COALESCE ( + 13, 78 ) AS INTEGER ) + - 16 * - 22 AS col1
----
347

query I rowsort
SELECT ALL + 60 * + 15 AS col0
----
900

query I rowsort
SELECT - 63 + + 42 - - 88 * 94 + 26 * 94
----
10695

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT + CASE + 20 WHEN 9 + 62 THEN - 55 * - + COALESCE ( COUNT( * ), + 28, 81, + ( - 68 ) * ( 64 ) ) WHEN ( - + 57 ) * 92 THEN - 91 * 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT + CASE + 20 WHEN 9 + 62 THEN - 55 * - + COALESCE ( COUNT ( * ), + 28, 81, + ( - 68 ) * ( 64 ) ) WHEN ( - + 57 ) * 92 THEN - 91 * 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT - MAX( DISTINCT - + 12 ) * - 61 * + COUNT( * ) - COUNT( * ) + - - 85 * 53 + - 29 + + + MAX( ALL - 37 ) + - 81
----
3625

skipif mysql # not compatible
query I rowsort label-7147
SELECT - MAX ( DISTINCT - + 12 ) * - 61 * + COUNT ( * ) - COUNT ( * ) + - - 85 * 53 + - 29 + + + MAX ( ALL - 37 ) + - 81
----
3625

query I rowsort
SELECT DISTINCT + ( + + ( + 97 ) ) col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT ( - NULLIF ( - 94, + CAST( NULL AS SIGNED ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7149
SELECT ( - NULLIF ( - 94, + CAST ( NULL AS INTEGER ) ) ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7150
SELECT ALL + CASE + CAST( + + NULLIF ( COUNT( * ), + 42 - + COUNT( * ) ) AS SIGNED ) WHEN 42 / + CAST( 7 AS DECIMAL ) THEN 9 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + CASE + CAST ( + + NULLIF ( COUNT ( * ), + 42 - + COUNT ( * ) ) AS INTEGER ) WHEN 42 / + CAST ( 7 AS REAL ) THEN 9 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT - ( - + 77 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT - ( - + 77 ) * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + ( - 38 ), 80 AS col2
----
-38
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7153
SELECT ALL + COUNT( * ) AS col0, 34 + + 14 DIV + + COUNT( * ) * + - COUNT( * ) col0
----
1
20

skipif mysql # not compatible
query II rowsort label-7153
SELECT ALL + COUNT ( * ) AS col0, 34 + + 14 / + + COUNT ( * ) * + - COUNT ( * ) col0
----
1
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT + CAST( - - NULLIF ( + 77, + 44 + 25 ) AS SIGNED ) * 69 + + 86 AS col1
----
5399

skipif mysql # not compatible
query I rowsort label-7154
SELECT + CAST ( - - NULLIF ( + 77, + 44 + 25 ) AS INTEGER ) * 69 + + 86 AS col1
----
5399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT ALL + 38 * - CAST( NULL AS SIGNED ) * - 69 * - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL + 38 * - CAST ( NULL AS INTEGER ) * - 69 * - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7156
SELECT DISTINCT + COUNT( * ), 46 AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-7156
SELECT DISTINCT + COUNT ( * ), 46 AS col1
----
1
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT COUNT( * ) * NULLIF ( + 68, + 79 * + + COUNT( * ) + + - 1 + 85 + + 65 * COALESCE ( - 6, - + 6 + + 8 ) * - MAX( - 26 ) / CAST( NULL AS SIGNED ) + 29 * 85 ) + 79 * + 22
----
1806

skipif mysql # not compatible
query I rowsort label-7157
SELECT COUNT ( * ) * NULLIF ( + 68, + 79 * + + COUNT ( * ) + + - 1 + 85 + + 65 * COALESCE ( - 6, - + 6 + + 8 ) * - MAX ( - 26 ) / CAST ( NULL AS INTEGER ) + 29 * 85 ) + 79 * + 22
----
1806

query II rowsort
SELECT ALL + 37 AS col1, 42
----
37
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT COUNT( * ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT COUNT ( * ) * 87
----
87

query I rowsort
SELECT - 34 * - + 88
----
2992

query I rowsort
SELECT + 40 * 65 AS col2
----
2600

query I rowsort
SELECT ALL - 52 * - 10 + - 81 + + 43
----
482

query I rowsort
SELECT + NULLIF ( + 1, 2 ) - - 16
----
17

query I rowsort
SELECT ALL + 66 * + 94 AS col1
----
6204

query I rowsort
SELECT + 4 + 46 + + 86 col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL 16 * - - ( + - 12 ) + + NULLIF ( 89, 98 * + 76 ) - MAX( 18 ) + - 81 + - 69 AS col1
----
-271

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL 16 * - - ( + - 12 ) + + NULLIF ( 89, 98 * + 76 ) - MAX ( 18 ) + - 81 + - 69 AS col1
----
-271

query II rowsort
SELECT - + 49, - 20 AS col1
----
-49
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - + NULLIF ( ( - COUNT( * ) ), + 46 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7168
SELECT - + NULLIF ( ( - COUNT ( * ) ), + 46 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + COUNT( * ) - - - 33
----
-32

skipif mysql # not compatible
query I rowsort label-7169
SELECT + COUNT ( * ) - - - 33
----
-32

query II rowsort
SELECT - + 29 AS col2, - 27 AS col2
----
-29
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7171
SELECT 75, - MIN( 7 ) AS col1
----
75
-7

skipif mysql # not compatible
query II rowsort label-7171
SELECT 75, - MIN ( 7 ) AS col1
----
75
-7

query II rowsort
SELECT - 70 AS col1, 38
----
-70
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL SUM( 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL SUM ( 54 ) AS col0
----
54

query II rowsort
SELECT - + 5 AS col2, - COALESCE ( 94, - NULLIF ( - CASE + - 67 WHEN + 52 + CASE 78 WHEN - 80 / - - 66 THEN AVG ( - NULLIF ( - + 19, - 20 ) ) WHEN 54 THEN + 95 * 83 ELSE NULL END + + 58 * 45 THEN 96 + + 83 WHEN + 96 THEN NULL ELSE NULL END, - 95 - - CASE 12 WHEN 86 THEN - 56 * + 19 ELSE NULL END * - 91 ) ) AS col2
----
-5
-94

query I rowsort
SELECT + - 61 + 25 * - 37 col0
----
-986

query I rowsort
SELECT DISTINCT - 80 col1
----
-80

query I rowsort
SELECT DISTINCT + - 28 - - 2 + 51
----
25

query II rowsort
SELECT ALL 93 AS col1, + 17
----
93
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7179
SELECT 18, - ( + 93 ) + - COALESCE ( 37, 9 + - + COUNT( * ) ) + - NULLIF ( + 63, 95 ) + - - 12 DIV - 59 - - + 23 * + 37 AS col2
----
18
658

skipif mysql # not compatible
query II rowsort label-7179
SELECT 18, - ( + 93 ) + - COALESCE ( 37, 9 + - + COUNT ( * ) ) + - NULLIF ( + 63, 95 ) + - - 12 / - 59 - - + 23 * + 37 AS col2
----
18
658

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7180
SELECT DISTINCT - COALESCE ( 65, - 42 + - + 48 + + COUNT( * ) DIV + 45 * + + COUNT( * ) ) - 3
----
-68

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - COALESCE ( 65, - 42 + - + 48 + + COUNT ( * ) / + 45 * + + COUNT ( * ) ) - 3
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7181
SELECT 44 * 46 DIV 56 + CASE 44 WHEN + 30 + COALESCE ( 49, + 56 * - - 23 ) + - COUNT( * ) THEN NULL ELSE - CAST( - + 61 AS SIGNED ) * - MIN( ALL - - 29 ) + + - 97 * - 69 END
----
4960

skipif mysql # not compatible
query I rowsort label-7181
SELECT 44 * 46 / 56 + CASE 44 WHEN + 30 + COALESCE ( 49, + 56 * - - 23 ) + - COUNT ( * ) THEN NULL ELSE - CAST ( - + 61 AS INTEGER ) * - MIN ( ALL - - 29 ) + + - 97 * - 69 END
----
4960

query I rowsort
SELECT DISTINCT + 73 - 86 AS col1
----
-13

query I rowsort
SELECT + 91 + - 99 AS col2
----
-8

query II rowsort
SELECT - - 21 AS col2, - 84
----
21
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT ALL - + 86 DIV ( + + 81 ) DIV + - 16 * + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - + 86 / ( + + 81 ) / + - 16 * + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT NULLIF ( + 83, - - 30 ) * 60 * + COUNT( * ) + - 93 AS col2
----
4887

skipif mysql # not compatible
query I rowsort label-7186
SELECT NULLIF ( + 83, - - 30 ) * 60 * + COUNT ( * ) + - 93 AS col2
----
4887

query I rowsort
SELECT ALL - NULLIF ( - 52, + 26 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT ALL + COUNT( * ) * 44 DIV - + 48 col1
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + COUNT ( * ) * 44 / - + 48 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7189
SELECT + 16 * + - 35 * - CASE - 51 WHEN + 42 THEN 97 * - - 52 ELSE NULL END * + + ( + 58 ) + + COALESCE ( NULLIF ( CAST( + 35 AS SIGNED ), 81 * 96 ), 46 * 18, - NULLIF ( - ( - 90 ), 90 * 57 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT + 16 * + - 35 * - CASE - 51 WHEN + 42 THEN 97 * - - 52 ELSE NULL END * + + ( + 58 ) + + COALESCE ( NULLIF ( CAST ( + 35 AS INTEGER ), 81 * 96 ), 46 * 18, - NULLIF ( - ( - 90 ), 90 * 57 ) )
----
NULL

query II rowsort
SELECT DISTINCT - 15 * + - 96 col1, 12 * 51 AS col0
----
1440
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT DISTINCT - CAST( - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT - CAST ( - 75 AS INTEGER )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT CAST( NULL AS SIGNED ) * + + ( + 26 ) * - 15 + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT CAST ( NULL AS INTEGER ) * + + ( + 26 ) * - 15 + - 81 AS col2
----
NULL

query I rowsort
SELECT ALL + 43 * 11 AS col2
----
473

query I rowsort
SELECT 66 * - 98 AS col0
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT COUNT( * ) * + ( 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7195
SELECT COUNT ( * ) * + ( 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT DISTINCT + COUNT( * ) + + 8, 52 AS col0
----
9
52

skipif mysql # not compatible
query II rowsort label-7196
SELECT DISTINCT + COUNT ( * ) + + 8, 52 AS col0
----
9
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7197
SELECT 82 + + CASE + 55 WHEN - SUM( DISTINCT - 57 ) THEN + - ( - 9 ) / + CAST( 85 AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT 82 + + CASE + 55 WHEN - SUM ( DISTINCT - 57 ) THEN + - ( - 9 ) / + CAST ( 85 AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - 7 + + 74 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7199
SELECT DISTINCT - 25 + + 30 * COALESCE ( + COALESCE ( - 2, + + COALESCE ( ( 57 ), - 16 ) * + COUNT( * ) - + 17 + - 98, + 46 DIV + - COUNT( + + ( + + 61 ) ) ), 32 + 2 * 54, - 2 + ( - 1 + 84 ) ) * - NULLIF ( COUNT( * ), 77 ) - COUNT( - 86 )
----
34

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - 25 + + 30 * COALESCE ( + COALESCE ( - 2, + + COALESCE ( ( 57 ), - 16 ) * + COUNT ( * ) - + 17 + - 98, + 46 / + - COUNT ( + + ( + + 61 ) ) ), 32 + 2 * 54, - 2 + ( - 1 + 84 ) ) * - NULLIF ( COUNT ( * ), 77 ) - COUNT ( - 86 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT 74 * - ( - COUNT( * ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT 74 * - ( - COUNT ( * ) ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query III rowsort label-7201
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col2, + COUNT( * ) + MAX( - CASE - 44 WHEN 17 + - 54 * - + 2 + + 16 THEN + 90 WHEN ( 60 ) THEN NULL ELSE NULL END ), + COUNT( * ) AS col2
----
0
NULL
1

skipif mysql # not compatible
query III rowsort label-7201
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col2, + COUNT ( * ) + MAX ( - CASE - 44 WHEN 17 + - 54 * - + 2 + + 16 THEN + 90 WHEN ( 60 ) THEN NULL ELSE NULL END ), + COUNT ( * ) AS col2
----
0
NULL
1

query I rowsort
SELECT DISTINCT - + 58 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7203
SELECT + 7 + COUNT( * ), - 17 col1
----
8
-17

skipif mysql # not compatible
query II rowsort label-7203
SELECT + 7 + COUNT ( * ), - 17 col1
----
8
-17

query I rowsort
SELECT DISTINCT - 62 * + 44 AS col0
----
-2728

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT 66 DIV + + 23 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7205
SELECT 66 / + + 23 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7206
SELECT ALL CAST( ( - - COUNT( * ) ) AS SIGNED ) * + 97 * - - MAX( + CAST( 74 AS SIGNED ) ) AS col0, - ( - 16 ) - - COALESCE ( 10, + ( + - ( + 48 ) ) * 57 ) AS col2
----
7178
26

skipif mysql # not compatible
query II rowsort label-7206
SELECT ALL CAST ( ( - - COUNT ( * ) ) AS INTEGER ) * + 97 * - - MAX ( + CAST ( 74 AS INTEGER ) ) AS col0, - ( - 16 ) - - COALESCE ( 10, + ( + - ( + 48 ) ) * 57 ) AS col2
----
7178
26

query I rowsort
SELECT - 37 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT 89 DIV + ( - + 6 )
----
-14

skipif mysql # not compatible
query I rowsort label-7208
SELECT 89 / + ( - + 6 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL - - NULLIF ( + COUNT( * ), - - 69 + 82 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL - - NULLIF ( + COUNT ( * ), - - 69 + 82 ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT DISTINCT + COUNT( * ) * - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT + COUNT ( * ) * - 43 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT DISTINCT 44 DIV + ( 36 )
----
1

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT 44 / + ( 36 )
----
1

query I rowsort
SELECT ALL + NULLIF ( - 64, - - 74 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - - ( + - MIN( ALL - 46 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7213
SELECT - - ( + - MIN ( ALL - 46 ) ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT MAX( DISTINCT - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7214
SELECT MAX ( DISTINCT - 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT 35 + + COUNT( * ) + + + SUM( + 26 ) * - + 53 AS col0
----
-1342

skipif mysql # not compatible
query I rowsort label-7215
SELECT 35 + + COUNT ( * ) + + + SUM ( + 26 ) * - + 53 AS col0
----
-1342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT CAST( NULL AS SIGNED ) * + ( + - 0 ) * - 38 * + COUNT( * ) + - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT CAST ( NULL AS INTEGER ) * + ( + - 0 ) * - 38 * + COUNT ( * ) + - 31 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT DISTINCT 63, COUNT( * ) AS col0
----
63
1

skipif mysql # not compatible
query II rowsort label-7217
SELECT DISTINCT 63, COUNT ( * ) AS col0
----
63
1

query I rowsort
SELECT 76 * + NULLIF ( 43, + 8 ) AS col1
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL 56 * 83 + SUM( DISTINCT + 32 ) + + 47
----
4727

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL 56 * 83 + SUM ( DISTINCT + 32 ) + + 47
----
4727

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7220
SELECT + COUNT( * ) AS col2, MAX( + CAST( NULL AS DECIMAL ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7220
SELECT + COUNT ( * ) AS col2, MAX ( + CAST ( NULL AS REAL ) )
----
1
NULL

query I rowsort
SELECT DISTINCT 17 * 97 AS col1
----
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL + COUNT( ALL - 2 ) * - COUNT( + 36 ) + 99 + 20 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + COUNT ( ALL - 2 ) * - COUNT ( + 36 ) + 99 + 20 AS col1
----
118

query I rowsort
SELECT 66 * + + 57 AS col2
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT 1 * - 14 * - - ( - COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7224
SELECT 1 * - 14 * - - ( - COUNT ( * ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7225
SELECT + COUNT( * ) col0, + 10 * - 5 AS col0
----
1
-50

skipif mysql # not compatible
query II rowsort label-7225
SELECT + COUNT ( * ) col0, + 10 * - 5 AS col0
----
1
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT COUNT( ALL + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT COUNT ( ALL + 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL + 38 + + CASE + ( - 42 ) WHEN - 27 - + + 91 + + 2 THEN + 34 END + + AVG ( - 37 ) + - + MIN( + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + 38 + + CASE + ( - 42 ) WHEN - 27 - + + 91 + + 2 THEN + 34 END + + AVG ( - 37 ) + - + MIN ( + 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT COUNT( DISTINCT - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-7228
SELECT COUNT ( DISTINCT - 5 )
----
1

query II rowsort
SELECT + 91, 85 + - NULLIF ( + 54, 63 ) + + 50 + 57 * 32 + - 93 AS col2
----
91
1812

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT - SUM( - + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT - SUM ( - + 55 ) AS col0
----
55

query I rowsort
SELECT DISTINCT 45 + - 17
----
28

query I rowsort
SELECT ALL + 67 * - 35 col0
----
-2345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7233
SELECT ALL - ( + 71 ) + - MAX( ALL + 77 ) DIV + + 97
----
-71

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL - ( + 71 ) + - MAX ( ALL + 77 ) / + + 97
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7234
SELECT NULLIF ( - 73, - 45 ) AS col0, 21 + + - CAST( NULL AS SIGNED )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-7234
SELECT NULLIF ( - 73, - 45 ) AS col0, 21 + + - CAST ( NULL AS INTEGER )
----
-73
NULL

query I rowsort
SELECT ALL - + 86 - + 82 AS col0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT 12 - + 22 * + CAST( + 21 AS SIGNED )
----
-450

skipif mysql # not compatible
query I rowsort label-7236
SELECT 12 - + 22 * + CAST ( + 21 AS INTEGER )
----
-450

query I rowsort
SELECT - 71 + - + 28 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7238
SELECT 66 col0, + 49 - 3 + + + 23 + - CAST( 19 AS SIGNED ) + 59 * + 2 * - NULLIF ( - + 51, + 97 )
----
66
6068

skipif mysql # not compatible
query II rowsort label-7238
SELECT 66 col0, + 49 - 3 + + + 23 + - CAST ( 19 AS INTEGER ) + 59 * + 2 * - NULLIF ( - + 51, + 97 )
----
66
6068

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL - - 94 - - ( + + COUNT( * ) ) col1
----
95

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - - 94 - - ( + + COUNT ( * ) ) col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT - - COUNT( * ) * + 80
----
80

skipif mysql # not compatible
query I rowsort label-7240
SELECT - - COUNT ( * ) * + 80
----
80

query I rowsort
SELECT DISTINCT - 17 * + 20 + 68
----
-272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7242
SELECT - - CASE + COUNT( ALL + 29 ) WHEN + 62 * - 81 THEN - 33 ELSE - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT - - CASE + COUNT ( ALL + 29 ) WHEN + 62 * - 81 THEN - 33 ELSE - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 69 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT - 60 * + - ( + 29 ) + + COUNT( * ) + + CASE CASE - 25 WHEN COUNT( - 22 ) THEN - 21 * + + COALESCE ( COUNT( DISTINCT - 3 ), - + 51 ) / + 90 * 32 * - + 18 * - COUNT( * ) + 96 END WHEN 74 THEN - 37 ELSE NULL END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT - 60 * + - ( + 29 ) + + COUNT ( * ) + + CASE CASE - 25 WHEN COUNT ( - 22 ) THEN - 21 * + + COALESCE ( COUNT ( DISTINCT - 3 ), - + 51 ) / + 90 * 32 * - + 18 * - COUNT ( * ) + 96 END WHEN 74 THEN - 37 ELSE NULL END * 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT DISTINCT - - CASE + 3 WHEN - 60 THEN CAST( NULL AS SIGNED ) WHEN - ( - 3 ) THEN NULL END * - - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - - CASE + 3 WHEN - 60 THEN CAST ( NULL AS INTEGER ) WHEN - ( - 3 ) THEN NULL END * - - 28 AS col2
----
NULL

query I rowsort
SELECT - 89 col2
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-7247
SELECT ALL + 48, 83 DIV - 51 AS col0
----
48
-1

skipif mysql # not compatible
query II rowsort label-7247
SELECT ALL + 48, 83 / - 51 AS col0
----
48
-1

query II rowsort
SELECT - - 91 col1, - 80 * 71 * + 49
----
91
-278320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT + 57 / - CAST( NULL AS SIGNED ) * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT + 57 / - CAST ( NULL AS INTEGER ) * 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7250
SELECT - + COUNT( * ) * + COUNT( * ) + NULLIF ( - 18, + 50 ) DIV + COUNT( * ), - 72 AS col1
----
-19
-72

skipif mysql # not compatible
query II rowsort label-7250
SELECT - + COUNT ( * ) * + COUNT ( * ) + NULLIF ( - 18, + 50 ) / + COUNT ( * ), - 72 AS col1
----
-19
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT - NULLIF ( - - 59, - CASE - - 81 WHEN + 9 THEN - 2 END * + CAST( NULL AS SIGNED ) ) + 14 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7251
SELECT - NULLIF ( - - 59, - CASE - - 81 WHEN + 9 THEN - 2 END * + CAST ( NULL AS INTEGER ) ) + 14 AS col1
----
-45

query I rowsort
SELECT ALL CASE - - 50 WHEN + 86 THEN 25 ELSE + 41 + 82 * 74 END
----
6109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7253
SELECT ALL COUNT( * ) + - NULLIF ( COUNT( * ), - - 74 ) DIV - 30 * - + 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL COUNT ( * ) + - NULLIF ( COUNT ( * ), - - 74 ) / - 30 * - + 42 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT + NULLIF ( + 95, + 17 * - NULLIF ( + 8, 96 * 12 - - 44 + + - 51 * + 66 + + COUNT( * ) ) / + 18 ) - 67
----
28

skipif mysql # not compatible
query I rowsort label-7254
SELECT + NULLIF ( + 95, + 17 * - NULLIF ( + 8, 96 * 12 - - 44 + + - 51 * + 66 + + COUNT ( * ) ) / + 18 ) - 67
----
28

query I rowsort
SELECT DISTINCT ( 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - COALESCE ( - 2, + COALESCE ( COUNT( * ), 93 - - 85, + 31 * 34 ) )
----
2

skipif mysql # not compatible
query I rowsort label-7256
SELECT - COALESCE ( - 2, + COALESCE ( COUNT ( * ), 93 - - 85, + 31 * 34 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7257
SELECT + 40 * 89 / 63 * - CASE + 13 WHEN + 28 / 5 THEN 37 WHEN + - ( - COALESCE ( - 33, - CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE NULL END, - 16 AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-7257
SELECT + 40 * 89 / 63 * - CASE + 13 WHEN + 28 / 5 THEN 37 WHEN + - ( - COALESCE ( - 33, - CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE NULL END, - 16 AS col2
----
NULL
-16

query I rowsort
SELECT ALL 39 * - 11 + - 14
----
-443

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT CASE - 33 WHEN + 17 / MAX( + + ( - - 56 ) ) THEN NULL WHEN - - 20 + + - 93 * - 51 * - 11 + + ( + + 58 ) - SUM( ALL - + ( 45 ) ) / - COUNT( * ) THEN 8 / - 61 ELSE NULL END * - 63 * COUNT( * ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT CASE - 33 WHEN + 17 / MAX ( + + ( - - 56 ) ) THEN NULL WHEN - - 20 + + - 93 * - 51 * - 11 + + ( + + 58 ) - SUM ( ALL - + ( 45 ) ) / - COUNT ( * ) THEN 8 / - 61 ELSE NULL END * - 63 * COUNT ( * ) + 80
----
NULL

query I rowsort
SELECT + ( 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL + MIN( + COALESCE ( - + 93, + 8 ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + MIN ( + COALESCE ( - + 93, + 8 ) ) AS col1
----
-93

query I rowsort
SELECT + 5 + + 16
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT ALL 76 * - 17 + + 76 + + + 15 * 38 DIV + 2
----
-931

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL 76 * - 17 + + 76 + + + 15 * 38 / + 2
----
-931

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7264
SELECT - ( - COUNT( * ) ) * + - 34 + + COALESCE ( + 82, - - 71 * 93 * 34 + 22 ) * 39 * + + 2 + + + 41 + 53 - - 61 - - COUNT( - 13 ) - - CAST( - 55 AS SIGNED ) * - 21 * COUNT( * )
----
7673

skipif mysql # not compatible
query I rowsort label-7264
SELECT - ( - COUNT ( * ) ) * + - 34 + + COALESCE ( + 82, - - 71 * 93 * 34 + 22 ) * 39 * + + 2 + + + 41 + 53 - - 61 - - COUNT ( - 13 ) - - CAST ( - 55 AS INTEGER ) * - 21 * COUNT ( * )
----
7673

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + 54 * + COALESCE ( MAX( DISTINCT 60 ), 27 ) - - - 71
----
3169

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + 54 * + COALESCE ( MAX ( DISTINCT 60 ), 27 ) - - - 71
----
3169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7266
SELECT + ( + COALESCE ( - 81, 52 * COUNT( * ), - - CAST( - - 74 AS SIGNED ) + - 60 ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7266
SELECT + ( + COALESCE ( - 81, 52 * COUNT ( * ), - - CAST ( - - 74 AS INTEGER ) + - 60 ) ) AS col1
----
-81

query I rowsort
SELECT ALL + 55 col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7268
SELECT CASE - ( COALESCE ( + + 74, - - 61 / + + 49, + NULLIF ( NULLIF ( - + COUNT( * ), + CAST( NULL AS SIGNED ) / CASE SUM( - - 69 ) WHEN - 65 THEN NULL WHEN + 40 + - ( + 37 ) THEN - 47 END - - 21 ), 12 * NULLIF ( + MAX( 63 ), - 24 / 78 ) ) + 11 ) ) WHEN + 80 THEN + 67 / - 65 + 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT CASE - ( COALESCE ( + + 74, - - 61 / + + 49, + NULLIF ( NULLIF ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) / CASE SUM ( - - 69 ) WHEN - 65 THEN NULL WHEN + 40 + - ( + 37 ) THEN - 47 END - - 21 ), 12 * NULLIF ( + MAX ( 63 ), - 24 / 78 ) ) + 11 ) ) WHEN + 80 THEN + 67 / - 65 + 61 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 76 * + - 13 * + 82 - - - 4 AS col0
----
-81020

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT COALESCE ( + 50, 29 * 28 + + MIN( - 80 ) )
----
50

skipif mysql # not compatible
query I rowsort label-7270
SELECT COALESCE ( + 50, 29 * 28 + + MIN ( - 80 ) )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT ALL 72 DIV - 4 col0
----
-18

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL 72 / - 4 col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT + - COUNT( * ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-7272
SELECT + - COUNT ( * ) / 22
----
0

query I rowsort
SELECT - - 18 * 40 AS col0
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT ALL + 68 DIV - - MAX( - + 92 ) * 11 DIV 10 * 80 + - COUNT( * ) + - + 25 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + 68 / - - MAX ( - + 92 ) * 11 / 10 * 80 + - COUNT ( * ) + - + 25 AS col2
----
-26

query I rowsort
SELECT DISTINCT + - 43
----
-43

query I rowsort
SELECT ALL - 88 * + + 66 col1
----
-5808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7277
SELECT - 91 * + - 51 AS col2, + NULLIF ( 72, + - 84 * - - 45 - 61 * + COUNT( ALL 71 ) * + - 40 * 48 * + + 86 + + 62 ) DIV NULLIF ( + + ( + 25 ), 16 + - 40 ) * + COUNT( * ) + - 4
----
4641
-2

skipif mysql # not compatible
query II rowsort label-7277
SELECT - 91 * + - 51 AS col2, + NULLIF ( 72, + - 84 * - - 45 - 61 * + COUNT ( ALL 71 ) * + - 40 * 48 * + + 86 + + 62 ) / NULLIF ( + + ( + 25 ), 16 + - 40 ) * + COUNT ( * ) + - 4
----
4641
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL SUM( 60 ) * + + 98 + - 41 + 71 + - 70 AS col0
----
5840

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL SUM ( 60 ) * + + 98 + - 41 + 71 + - 70 AS col0
----
5840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7279
SELECT - ( 53 ) + + 18 * + - COALESCE ( + 33, 94, - + 93 + 84 ) + 17 + CAST( NULL AS DECIMAL ) + - - COUNT( * ) * + 82 + - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT - ( 53 ) + + 18 * + - COALESCE ( + 33, 94, - + 93 + 84 ) + 17 + CAST ( NULL AS REAL ) + - - COUNT ( * ) * + 82 + - - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT - + MIN( ALL - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7280
SELECT - + MIN ( ALL - 23 )
----
23

query I rowsort
SELECT DISTINCT - 70 AS col2
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-7282
SELECT + 58 * ( 60 ) DIV + 26 + - 9, + 35 col1
----
124
35

skipif mysql # not compatible
query II rowsort label-7282
SELECT + 58 * ( 60 ) / + 26 + - 9, + 35 col1
----
124
35

query I rowsort
SELECT - + 16 * - + 72
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL MAX( 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL MAX ( 72 ) AS col1
----
72

query I rowsort
SELECT - - 30 + + - 5
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT ALL + + COUNT( * ) + - 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL + + COUNT ( * ) + - 0 AS col0
----
1

query I rowsort
SELECT ALL - 92 + + 49 col0
----
-43

query I rowsort
SELECT 33 col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT ALL + 10 DIV - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + 10 / - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7290
SELECT - SUM( + 42 ) * + COALESCE ( 77, - 41 DIV - + 49, 41 + COALESCE ( + 91, 17, + 58 ) + + 53 * 91 * - - 17 * - + 72 * + 26 * 64 )
----
-3234

skipif mysql # not compatible
query I rowsort label-7290
SELECT - SUM ( + 42 ) * + COALESCE ( 77, - 41 / - + 49, 41 + COALESCE ( + 91, 17, + 58 ) + + 53 * 91 * - - 17 * - + 72 * + 26 * 64 )
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT - ( - 60 ) + + + SUM( DISTINCT - 8 ) * + 71 AS col0
----
-508

skipif mysql # not compatible
query I rowsort label-7291
SELECT - ( - 60 ) + + + SUM ( DISTINCT - 8 ) * + 71 AS col0
----
-508

query II rowsort
SELECT DISTINCT + 93 + - 38 * + 54 AS col0, + 56 AS col1
----
-1959
56

query I rowsort
SELECT ALL - 38 + 44 * + + 62 * + 89 AS col2
----
242754

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL + 84 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + 84 * - COUNT ( * )
----
-84

query I rowsort
SELECT + 41 + + 79 + + + 29
----
149

query I rowsort
SELECT DISTINCT + 93 + + 96
----
189

query I rowsort
SELECT + 99 * + 34 AS col2
----
3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT ALL + COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + COUNT ( * ) / 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 72 + 79 THEN ( + + COUNT( * ) ) + 30 + 42 + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 72 + 79 THEN ( + + COUNT ( * ) ) + 30 + 42 + 2 END
----
NULL

query I rowsort
SELECT + ( - 78 )
----
-78

query I rowsort
SELECT - 39 - 53 + - 72 * 65 AS col0
----
-4772

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7302
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 72 + + 1 * - 41 * - - 60 ), - 39 DIV 49 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7302
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 72 + + 1 * - 41 * - - 60 ), - 39 / 49 AS col1
----
NULL
0

query I rowsort
SELECT ALL - + 9 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7304
SELECT 26 * CAST( NULL AS SIGNED ) / - - CASE - ( 66 ) WHEN - COUNT( * ) THEN - + 98 * - 75 * 42 END + 35 AS col1, 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-7304
SELECT 26 * CAST ( NULL AS INTEGER ) / - - CASE - ( 66 ) WHEN - COUNT ( * ) THEN - + 98 * - 75 * 42 END + 35 AS col1, 95
----
NULL
95

query I rowsort
SELECT DISTINCT 88 * + + 40 col2
----
3520

query II rowsort
SELECT + + 18 AS col1, + 33 AS col2
----
18
33

query I rowsort
SELECT ALL NULLIF ( + 45, 44 ) * - + 67 * - - 73
----
-220095

query I rowsort
SELECT 5 * 32
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT MIN( ALL - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-7309
SELECT MIN ( ALL - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT CASE 56 WHEN - 41 THEN + COALESCE ( + COUNT( * ), + 44 * - 4 * COUNT( * ) + - - 43 + + - 63 + 11 ) * - ( - - ( + 0 ) ) * - 71 * + ( - 84 ) END + + ( 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT CASE 56 WHEN - 41 THEN + COALESCE ( + COUNT ( * ), + 44 * - 4 * COUNT ( * ) + - - 43 + + - 63 + 11 ) * - ( - - ( + 0 ) ) * - 71 * + ( - 84 ) END + + ( 23 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT 41 DIV 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT 41 / 42 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT + COALESCE ( COUNT( * ), 43 + - - COUNT( * ) + - + 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7312
SELECT + COALESCE ( COUNT ( * ), 43 + - - COUNT ( * ) + - + 14 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7313
SELECT COUNT( * ) + - 14 * 77 col0, - 32 * + 74
----
-1077
-2368

skipif mysql # not compatible
query II rowsort label-7313
SELECT COUNT ( * ) + - 14 * 77 col0, - 32 * + 74
----
-1077
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT + ( - SUM( - 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-7314
SELECT + ( - SUM ( - 51 ) )
----
51

query I rowsort
SELECT DISTINCT + 12 + - + 77 AS col2
----
-65

query I rowsort
SELECT + 69 + 23 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT 21 DIV + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7317
SELECT 21 / + 24 AS col2
----
0

query I rowsort
SELECT + 83 + 3 AS col0
----
86

query I rowsort
SELECT ALL 61 + + 10 AS col2
----
71

query I rowsort
SELECT ALL 75 * 69 AS col1
----
5175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7321
SELECT COUNT( * ) DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT COUNT ( * ) / + 93 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT 92 DIV - 77 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7322
SELECT 92 / - 77 AS col1
----
-1

query II rowsort
SELECT 1 * - 78 col0, + 4
----
-78
4

onlyif mysql # aggregate syntax: 
query III rowsort label-7324
SELECT - 18 AS col2, 90 + + - 22 + + COUNT( * ) AS col1, + 5
----
-18
69
5

skipif mysql # not compatible
query III rowsort label-7324
SELECT - 18 AS col2, 90 + + - 22 + + COUNT ( * ) AS col1, + 5
----
-18
69
5

query I rowsort
SELECT 82 - 99
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-7326
SELECT DISTINCT 25, + 84 + 30 DIV - - 92 AS col0
----
25
84

skipif mysql # not compatible
query II rowsort label-7326
SELECT DISTINCT 25, + 84 + 30 / - - 92 AS col0
----
25
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT 95 + + 82 DIV + 25
----
98

skipif mysql # not compatible
query I rowsort label-7327
SELECT 95 + + 82 / + 25
----
98

query II rowsort
SELECT ALL 28, ( + + 99 ) AS col1
----
28
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7329
SELECT DISTINCT 80 AS col2, + ( - - CAST( NULL AS SIGNED ) )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7329
SELECT DISTINCT 80 AS col2, + ( - - CAST ( NULL AS INTEGER ) )
----
80
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT ALL 85, COUNT( * ) AS col1
----
85
1

skipif mysql # not compatible
query II rowsort label-7330
SELECT ALL 85, COUNT ( * ) AS col1
----
85
1

query I rowsort
SELECT 17 - + 76 AS col0
----
-59

query II rowsort
SELECT - 38, 13 * + 60 AS col2
----
-38
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7333
SELECT SUM( DISTINCT - + ( + 38 ) ) + + CASE + CAST( NULL AS SIGNED ) WHEN - + 22 * + 27 * 91 THEN - COALESCE ( + - NULLIF ( + COUNT( * ), 51 - - 62 * + 80 ), + CASE 36 WHEN NULLIF ( - 69, ( 27 ) ) * SUM( 48 ) + 51 + 67 * - 76 THEN NULL WHEN + 40 THEN 23 END ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT SUM ( DISTINCT - + ( + 38 ) ) + + CASE + CAST ( NULL AS INTEGER ) WHEN - + 22 * + 27 * 91 THEN - COALESCE ( + - NULLIF ( + COUNT ( * ), 51 - - 62 * + 80 ), + CASE 36 WHEN NULLIF ( - 69, ( 27 ) ) * SUM ( 48 ) + 51 + 67 * - 76 THEN NULL WHEN + 40 THEN 23 END ) END AS col1
----
NULL

query I rowsort
SELECT 0 + + - 34 + - 8
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7335
SELECT 40 AS col2, + SUM( - - 28 ) + 58
----
40
86

skipif mysql # not compatible
query II rowsort label-7335
SELECT 40 AS col2, + SUM ( - - 28 ) + 58
----
40
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL + COUNT( * ) * + + 83 * + 42
----
3486

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + COUNT ( * ) * + + 83 * + 42
----
3486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT 7 + - - CAST( NULL AS SIGNED ) - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT 7 + - - CAST ( NULL AS INTEGER ) - - 61
----
NULL

query I rowsort
SELECT DISTINCT - ( + 38 ) * - + 25
----
950

query I rowsort
SELECT DISTINCT - CASE 20 WHEN + - 84 + + 74 + - 97 * + 0 + 37 THEN + - NULLIF ( - 88, + - 33 ) + - + 56 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT - SUM( DISTINCT + + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - SUM ( DISTINCT + + 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT DISTINCT - COUNT( DISTINCT - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT - COUNT ( DISTINCT - 14 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL - SUM( + ( 39 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - SUM ( + ( 39 ) ) AS col2
----
-39

query I rowsort
SELECT NULLIF ( - 89, + 4 - + ( - 23 ) ) * + 87 AS col1
----
-7743

onlyif mysql # aggregate syntax: 
query II rowsort label-7344
SELECT ALL - - COUNT( * ) AS col0, 50 col2
----
1
50

skipif mysql # not compatible
query II rowsort label-7344
SELECT ALL - - COUNT ( * ) AS col0, 50 col2
----
1
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT ALL - CAST( - ( + - SUM( - 71 ) ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL - CAST ( - ( + - SUM ( - 71 ) ) AS INTEGER )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT 79 + + + 29 DIV - 98
----
79

skipif mysql # not compatible
query I rowsort label-7346
SELECT 79 + + + 29 / - 98
----
79

query I rowsort
SELECT ALL - + 57 AS col2
----
-57

query I rowsort
SELECT ALL 79 * + - 92
----
-7268

query II rowsort
SELECT + 58 AS col0, 20 AS col2
----
58
20

query I rowsort
SELECT ALL - - 95 + + 28 AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7351
SELECT DISTINCT + - 33 * + 90 + - 82 + 54 + 23 - + + CAST( - MAX( ALL 95 ) AS DECIMAL ) + - 26 * 8 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT + - 33 * + 90 + - 82 + 54 + 23 - + + CAST ( - MAX ( ALL 95 ) AS REAL ) + - 26 * 8 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 67 * - + 95
----
6365

query I rowsort
SELECT ALL + + 82 * 11
----
902

query I rowsort
SELECT ALL ( - 2 ) + + 79 AS col1
----
77

query I rowsort
SELECT + 33 * - 40 * + 44 AS col2
----
-58080

onlyif mysql # DIV for integer division: 
query II rowsort label-7356
SELECT - - ( 95 ) AS col0, - 60 DIV - + COALESCE ( 51, 55 ) AS col0
----
95
1

skipif mysql # not compatible
query II rowsort label-7356
SELECT - - ( 95 ) AS col0, - 60 / - + COALESCE ( 51, 55 ) AS col0
----
95
1

query II rowsort
SELECT - - 58, 30 * + 6 AS col0
----
58
180

query I rowsort
SELECT ALL 30 + 0
----
30

query I rowsort
SELECT 85 * - 14 AS col2
----
-1190

onlyif mysql # DIV for integer division: 
query II rowsort label-7360
SELECT ALL 23 DIV 92, 96 AS col0
----
0
96

skipif mysql # not compatible
query II rowsort label-7360
SELECT ALL 23 / 92, 96 AS col0
----
0
96

query I rowsort
SELECT 91 + + 54 + + 39
----
184

query I rowsort
SELECT ALL 35 - 15 * 63 AS col0
----
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT DISTINCT 53 DIV + 75 * - 57 * 20
----
0

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT 53 / + 75 * - 57 * 20
----
0

query I rowsort
SELECT ALL + 75 - - 68 + - + 76 * - - ( + 45 ) AS col1
----
-3277

query I rowsort
SELECT ALL - ( - - ( - - 89 ) ) * CASE + + 42 WHEN - + 82 THEN + 92 WHEN 54 + + + 1 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT 10 * + - SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT 10 * + - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT 26 + + + COALESCE ( 40, + 92 * 87 + + + COUNT( * ) - + 72 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-7367
SELECT 26 + + + COALESCE ( 40, + 92 * 87 + + + COUNT ( * ) - + 72 ) col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT COUNT( * ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-7368
SELECT COUNT ( * ) * - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT 36 + MAX( ALL + 88 ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-7369
SELECT 36 + MAX ( ALL + 88 ) AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL ( + COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL ( + COUNT ( * ) ) * - COUNT ( * )
----
-1

query I rowsort
SELECT 45 + - 9 - 43 * 81 AS col2
----
-3447

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT - COALESCE ( NULLIF ( - - 84, 26 ), - COUNT( * ), - COALESCE ( 53, - 43 ), - + 74 ) + - 52 col2, 5
----
-136
5

skipif mysql # not compatible
query II rowsort label-7372
SELECT - COALESCE ( NULLIF ( - - 84, 26 ), - COUNT ( * ), - COALESCE ( 53, - 43 ), - + 74 ) + - 52 col2, 5
----
-136
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL COUNT ( 34 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7374
SELECT - 92 * - 45 AS col1, + 69 + + - 84 + + 7 * COUNT( * ) + - MAX( ALL - 37 ) + NULLIF ( - 58, - COALESCE ( 40, - 59 ) + + 37 + 12 + + 48 * + 98 + COALESCE ( 17, + 77, + 81 - 28 ) - 72 * MAX( + 9 ) )
----
4140
-29

skipif mysql # not compatible
query II rowsort label-7374
SELECT - 92 * - 45 AS col1, + 69 + + - 84 + + 7 * COUNT ( * ) + - MAX ( ALL - 37 ) + NULLIF ( - 58, - COALESCE ( 40, - 59 ) + + 37 + 12 + + 48 * + 98 + COALESCE ( 17, + 77, + 81 - 28 ) - 72 * MAX ( + 9 ) )
----
4140
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT + - CAST( - COUNT( - - 21 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7375
SELECT + - CAST ( - COUNT ( - - 21 ) AS INTEGER )
----
1

query II rowsort
SELECT + - COALESCE ( - + 51, + - ( 46 ) ) * 3 AS col2, + 55
----
153
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL - - 35 * + 77 * - COUNT( - 3 ) AS col1
----
-2695

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - - 35 * + 77 * - COUNT ( - 3 ) AS col1
----
-2695

query I rowsort
SELECT DISTINCT - 56 * - 9
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT DISTINCT + 25 * - 23 * + CAST( NULL AS SIGNED ) + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + 25 * - 23 * + CAST ( NULL AS INTEGER ) + + 65
----
NULL

query I rowsort
SELECT ALL + 14 AS col2
----
14

query I rowsort
SELECT DISTINCT + - 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT ALL - 32 * + + 28 + + 85 + + COUNT( * ) + - 98 * + + 32 - - ( - 38 ) + CAST( NULL AS SIGNED ) * + - 15 * + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL - 32 * + + 28 + + 85 + + COUNT ( * ) + - 98 * + + 32 - - ( - 38 ) + CAST ( NULL AS INTEGER ) * + - 15 * + - 55
----
NULL

query II rowsort
SELECT + 84 * + + 22 + - 83 AS col0, + 95 AS col1
----
1765
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT - + CAST( NULL AS SIGNED ) - + + AVG ( DISTINCT + + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT - + CAST ( NULL AS INTEGER ) - + + AVG ( DISTINCT + + 14 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7385
SELECT ALL - 13 DIV + COUNT( * ) + - 15 * + - 61
----
902

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - 13 / + COUNT ( * ) + - 15 * + - 61
----
902

query I rowsort
SELECT - 27 * + 31 + - + 72 * 82 AS col0
----
-6741

query I rowsort
SELECT NULLIF ( - 50, + 52 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT + - 44 * - NULLIF ( - COUNT( * ), + 14 + 57 + - - 14 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7388
SELECT + - 44 * - NULLIF ( - COUNT ( * ), + 14 + 57 + - - 14 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7389
SELECT DISTINCT + ( + 78 ) AS col2, - NULLIF ( - - COUNT( * ), + + CASE NULLIF ( + 73, 73 ) WHEN - + 95 THEN 29 END ) + - 23 AS col0
----
78
-24

skipif mysql # not compatible
query II rowsort label-7389
SELECT DISTINCT + ( + 78 ) AS col2, - NULLIF ( - - COUNT ( * ), + + CASE NULLIF ( + 73, 73 ) WHEN - + 95 THEN 29 END ) + - 23 AS col0
----
78
-24

query I rowsort
SELECT ALL + - 79
----
-79

query II rowsort
SELECT ALL + NULLIF ( + + 82, - 0 ), - 30 AS col1
----
82
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-7392
SELECT COUNT( * ) AS col2, + 61
----
1
61

skipif mysql # not compatible
query II rowsort label-7392
SELECT COUNT ( * ) AS col2, + 61
----
1
61

query I rowsort
SELECT - 88 + - - 69 + 29
----
10

query I rowsort
SELECT ALL NULLIF ( 70, + + 80 + - 45 ) col2
----
70

query I rowsort
SELECT ALL 0 * + + 51
----
0

query I rowsort
SELECT ALL - 80 * - 53 * 29
----
122960

query I rowsort
SELECT DISTINCT - 62 * + 92
----
-5704

query I rowsort
SELECT - NULLIF ( - 14, 22 + - 34 ) AS col1
----
14

query I rowsort
SELECT + 34 + + 85
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT + 22 * - - COUNT( * ) * + 50 AS col2
----
1100

skipif mysql # not compatible
query I rowsort label-7400
SELECT + 22 * - - COUNT ( * ) * + 50 AS col2
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + 28 * - - ( + COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-7401
SELECT + 28 * - - ( + COUNT ( * ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + 40 - - + COUNT( - 59 ) - ( + 64 ) * - + COUNT( * ) * - ( 20 ) * - - 20 - 99 * + 58 * + 22
----
-151883

skipif mysql # not compatible
query I rowsort label-7402
SELECT + 40 - - + COUNT ( - 59 ) - ( + 64 ) * - + COUNT ( * ) * - ( 20 ) * - - 20 - 99 * + 58 * + 22
----
-151883

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7403
SELECT DISTINCT COUNT( 33 ) DIV 78 * - + 84 * - 84 + + 58 + 67 * 82 * - 98, + 21 * NULLIF ( 37, - COUNT( * ) + + 69 * + 4 ) AS col2
----
-538354
777

skipif mysql # not compatible
query II rowsort label-7403
SELECT DISTINCT COUNT ( 33 ) / 78 * - + 84 * - 84 + + 58 + 67 * 82 * - 98, + 21 * NULLIF ( 37, - COUNT ( * ) + + 69 * + 4 ) AS col2
----
-538354
777

query I rowsort
SELECT ALL 86 * + + 83 * + ( + 7 ) * - 33 * - 44 AS col2
----
72550632

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 68 * + COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL 74 + - + ( 63 ) * - COUNT( * ) + - CASE + 52 WHEN + ( + + 92 ) + MIN( 44 ) * - + 5 THEN + - 32 * + + 59 + + + 56 * + + COUNT( * ) * + - 47 ELSE NULL END + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL 74 + - + ( 63 ) * - COUNT ( * ) + - CASE + 52 WHEN + ( + + 92 ) + MIN ( 44 ) * - + 5 THEN + - 32 * + + 59 + + + 56 * + + COUNT ( * ) * + - 47 ELSE NULL END + + 2 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT DISTINCT NULLIF ( + MIN( 45 ), + 86 / - 49 + + 53 + 40 * + 20 ) + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT NULLIF ( + MIN ( 45 ), + 86 / - 49 + + 53 + 40 * + 20 ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 7 AS col0, 60 AS col1
----
7
60

query I rowsort
SELECT + 72 + 68 AS col2
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT + ( CAST( 31 AS SIGNED ) ) - 59 + + 32 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7410
SELECT + ( CAST ( 31 AS INTEGER ) ) - 59 + + 32 AS col0
----
4

query I rowsort
SELECT ALL 12 + 26 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL 16 * - 87 + SUM( ALL + + 86 ) + + - 74 * - 52 * - 16 * + 40 * + MIN( 16 ) col2
----
-39404826

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL 16 * - 87 + SUM ( ALL + + 86 ) + + - 74 * - 52 * - 16 * + 40 * + MIN ( 16 ) col2
----
-39404826

query I rowsort
SELECT - 55 * - 12 col2
----
660

onlyif mysql # aggregate syntax: 
query II rowsort label-7414
SELECT + + 38 + 99 * + COUNT( 21 ), - 94 AS col1
----
137
-94

skipif mysql # not compatible
query II rowsort label-7414
SELECT + + 38 + 99 * + COUNT ( 21 ), - 94 AS col1
----
137
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT - SUM( DISTINCT - 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7415
SELECT - SUM ( DISTINCT - 59 ) AS col2
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7416
SELECT + - 57 / - 17 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT + - 57 / - 17 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 89 + 93
----
182

query II rowsort
SELECT DISTINCT + 70, 33 AS col2
----
70
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT ALL - 85 DIV + 87 + - 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - 85 / + 87 + - 72 AS col1
----
-72

query I rowsort
SELECT ALL + + 19
----
19

query I rowsort
SELECT ALL + - 28
----
-28

query I rowsort
SELECT + + 56 * + - 48 + + + 51 + + 8 + + 71 + - 68 + - 54 * 51 * 62
----
-173374

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + MIN( + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7423
SELECT + MIN ( + 14 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT + - CASE - + 43 WHEN - ( - + 54 ) THEN NULL ELSE - CAST( - 75 AS SIGNED ) END
----
-75

skipif mysql # not compatible
query I rowsort label-7424
SELECT + - CASE - + 43 WHEN - ( - + 54 ) THEN NULL ELSE - CAST ( - 75 AS INTEGER ) END
----
-75

query I rowsort
SELECT DISTINCT + ( + 41 ) col0
----
41

query I rowsort
SELECT + - 62 * 35 AS col1
----
-2170

onlyif mysql # aggregate syntax: 
query II rowsort label-7427
SELECT ALL + - 68 AS col2, - COUNT( * ) AS col0
----
-68
-1

skipif mysql # not compatible
query II rowsort label-7427
SELECT ALL + - 68 AS col2, - COUNT ( * ) AS col0
----
-68
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT + MIN( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7428
SELECT + MIN ( + 41 ) AS col2
----
41

query I rowsort
SELECT DISTINCT 12 * 57 AS col0
----
684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT ALL + CASE COALESCE ( - 88, - CAST( - 19 AS SIGNED ) / + 99 * - 79 + - - CASE + CAST( + + 90 AS SIGNED ) WHEN + + 58 THEN 43 + - 50 - MIN( - + 75 ) WHEN + 58 THEN NULL ELSE + + 84 * - + 13 END + - + 49 + - - 67 / - 85 / COUNT( * ) ) WHEN - - 45 THEN - - 33 + - AVG ( ALL - 24 + + COALESCE ( 83, 66 + - 58 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + CASE COALESCE ( - 88, - CAST ( - 19 AS INTEGER ) / + 99 * - 79 + - - CASE + CAST ( + + 90 AS INTEGER ) WHEN + + 58 THEN 43 + - 50 - MIN ( - + 75 ) WHEN + 58 THEN NULL ELSE + + 84 * - + 13 END + - + 49 + - - 67 / - 85 / COUNT ( * ) ) WHEN - - 45 THEN - - 33 + - AVG ( ALL - 24 + + COALESCE ( 83, 66 + - 58 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - 6 * - COUNT( * ) * + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7431
SELECT - 6 * - COUNT ( * ) * + + COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL + 48 * 9
----
432

query I rowsort
SELECT ALL + 40 col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT NULLIF ( + NULLIF ( NULLIF ( - CAST( NULL AS SIGNED ), + + COUNT( * ) ), COUNT( * ) * COUNT( * ) * 79 ), - 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT NULLIF ( + NULLIF ( NULLIF ( - CAST ( NULL AS INTEGER ), + + COUNT ( * ) ), COUNT ( * ) * COUNT ( * ) * 79 ), - 86 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT ALL + CASE 38 WHEN CAST( - + 62 AS SIGNED ) + + 59 THEN 38 + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + CASE 38 WHEN CAST ( - + 62 AS INTEGER ) + + 59 THEN 38 + 64 END
----
NULL

query II rowsort
SELECT - ( - 48 ) * - 42 * - 34 AS col0, - 77 * - - 38
----
68544
-2926

query I rowsort
SELECT - 76 + - + 88 AS col2
----
-164

query I rowsort
SELECT - 46 * + 88 AS col0
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + COUNT( * ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-7439
SELECT + COUNT ( * ) * + 57
----
57

query I rowsort
SELECT ALL 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT DISTINCT + COUNT( * ) + - + 38 col1, + 7 * + 75 - - 41
----
-37
566

skipif mysql # not compatible
query II rowsort label-7441
SELECT DISTINCT + COUNT ( * ) + - + 38 col1, + 7 * + 75 - - 41
----
-37
566

query I rowsort
SELECT DISTINCT 45 + 99 AS col1
----
144

query I rowsort
SELECT DISTINCT 22 + - + 33 + - 83 + 22
----
-72

query I rowsort
SELECT ALL 80 + - - 4 AS col1
----
84

query I rowsort
SELECT 51 + - 65 * + + 74 AS col2
----
-4759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 18 * - - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 18 * - - 55 AS col2
----
NULL

query I rowsort
SELECT 61 + 55 * 32
----
1821

query I rowsort
SELECT DISTINCT + 31 + - 52 col1
----
-21

query I rowsort
SELECT ALL - 73 + + 80 * 20 AS col2
----
1527

query I rowsort
SELECT + 79 * + 80
----
6320

query I rowsort
SELECT ALL + 98 + + 46 + + - 60 * - + 87
----
5364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7452
SELECT - CAST( 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-7452
SELECT - CAST ( 45 AS INTEGER )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT 64 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT 64 / - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT DISTINCT - ( - COUNT( * ) ) + + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT - ( - COUNT ( * ) ) + + - 23 AS col2
----
-22

query I rowsort
SELECT ALL 73 - 84 * - 49
----
4189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7456
SELECT - COALESCE ( COUNT( * ), + - 77 + - 54 ) DIV + 36 + + - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7456
SELECT - COALESCE ( COUNT ( * ), + - 77 + - 54 ) / + 36 + + - 46 AS col2
----
-46

query I rowsort
SELECT + 99 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT 34 * + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-7458
SELECT 34 * + + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT COUNT( * ) * - 93
----
-93

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT COUNT ( * ) * - 93
----
-93

query I rowsort
SELECT - 0 * 70
----
0

query I rowsort
SELECT ALL - NULLIF ( - - 3, - 77 ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7462
SELECT + 78 * + COUNT( ALL - + ( + CAST( + 50 AS SIGNED ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-7462
SELECT + 78 * + COUNT ( ALL - + ( + CAST ( + 50 AS INTEGER ) ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT + ( - - CAST( - 58 AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-7463
SELECT + ( - - CAST ( - 58 AS INTEGER ) )
----
-58

query I rowsort
SELECT ALL - - 62
----
62

query I rowsort
SELECT DISTINCT ( - - 45 ) * 94 AS col0
----
4230

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7466
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 46 * + COUNT( * ) * + - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + CAST ( NULL AS REAL ) * 46 * + COUNT ( * ) * + - 86 AS col0
----
NULL

query I rowsort
SELECT 85 + 60
----
145

query I rowsort
SELECT ALL - 56 AS col0
----
-56

query II rowsort
SELECT 74, 63 AS col0
----
74
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT + COUNT( * ) * + + CAST( - 22 AS SIGNED ) + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-7470
SELECT + COUNT ( * ) * + + CAST ( - 22 AS INTEGER ) + + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT 30 - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7471
SELECT 30 - COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ( CASE + + COUNT( * ) WHEN - - 97 + - - 25 THEN NULL ELSE + ( - + 82 ) * 75 END ) * + ( + 67 ) + 36
----
-412014

skipif mysql # not compatible
query I rowsort label-7472
SELECT ( CASE + + COUNT ( * ) WHEN - - 97 + - - 25 THEN NULL ELSE + ( - + 82 ) * 75 END ) * + ( + 67 ) + 36
----
-412014

query I rowsort
SELECT 36 * + 8 * - ( + - 60 )
----
17280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) + + 22 + + 73 / + COALESCE ( + - 83, + 69 + + 64 ) * + - 85 * - SUM( DISTINCT 78 ) + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 22 + + 73 / + COALESCE ( + - 83, + 69 + + 64 ) * + - 85 * - SUM ( DISTINCT 78 ) + 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL + CAST( + 35 AS SIGNED ) + + ( + 96 )
----
131

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + CAST ( + 35 AS INTEGER ) + + ( + 96 )
----
131

query I rowsort
SELECT ALL + 90 * 9
----
810

query I rowsort
SELECT 26 * - 1 AS col2
----
-26

query I rowsort
SELECT ALL NULLIF ( + 80, 54 ) + + + 3
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT DISTINCT + 72 + + + ( + CASE - 6 WHEN - - 33 THEN SUM( - 16 ) * + 39 + + 67 ELSE - 23 + + 31 * 73 END ) + 55 * 73 + - 68 + + SUM( DISTINCT - 59 ) AS col2
----
6200

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + 72 + + + ( + CASE - 6 WHEN - - 33 THEN SUM ( - 16 ) * + 39 + + 67 ELSE - 23 + + 31 * 73 END ) + 55 * 73 + - 68 + + SUM ( DISTINCT - 59 ) AS col2
----
6200

query I rowsort
SELECT ALL - 17 + + ( 55 ) * 7 AS col0
----
368

query I rowsort
SELECT ALL + 54 + - 68
----
-14

query I rowsort
SELECT 51 * - + 6 * + 81 * + 13 * - + COALESCE ( - 70, - 72, - 90 ) AS col1
----
-22555260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT DISTINCT + CAST( ( + - 88 ) AS SIGNED ) + 49 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT + CAST ( ( + - 88 ) AS INTEGER ) + 49 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT MAX( - + 73 ) + + 29
----
-44

skipif mysql # not compatible
query I rowsort label-7484
SELECT MAX ( - + 73 ) + + 29
----
-44

query I rowsort
SELECT ALL - 55 + 96 * + + 31 AS col2
----
2921

query I rowsort
SELECT 41 - - 0 + + 32 - ( - - COALESCE ( - + 88, + 54 ) ) AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT - CASE - COUNT( * ) WHEN MAX( DISTINCT + + 56 ) / - 44 + - 57 + - - 67 + + + 51 THEN NULL WHEN - AVG ( DISTINCT - + 36 ) * + - COUNT( * ) + - 36 + - COUNT( * ) THEN NULL WHEN + - ( + 96 ) * + 7 THEN 64 ELSE - 0 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - CASE - COUNT ( * ) WHEN MAX ( DISTINCT + + 56 ) / - 44 + - 57 + - - 67 + + + 51 THEN NULL WHEN - AVG ( DISTINCT - + 36 ) * + - COUNT ( * ) + - 36 + - COUNT ( * ) THEN NULL WHEN + - ( + 96 ) * + 7 THEN 64 ELSE - 0 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL - + 36 - 27 * + COUNT( ALL 55 ) + - MIN( DISTINCT + 26 )
----
-89

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - + 36 - 27 * + COUNT ( ALL 55 ) + - MIN ( DISTINCT + 26 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL 34 * + 4 * + COUNT( * ) + COUNT( * ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL 34 * + 4 * + COUNT ( * ) + COUNT ( * ) AS col1
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7490
SELECT DISTINCT 37 AS col0, + CAST( NULL AS SIGNED ) * - 12
----
37
NULL

skipif mysql # not compatible
query II rowsort label-7490
SELECT DISTINCT 37 AS col0, + CAST ( NULL AS INTEGER ) * - 12
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7491
SELECT ALL + MIN( CAST( NULL AS SIGNED ) ) - - + 8 - CAST( AVG ( - 20 ) AS SIGNED ) + - COUNT( * ) + - 90 + + 87 + - 38 * - 39 / 21 * + 45 * + - 86 * + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + MIN ( CAST ( NULL AS INTEGER ) ) - - + 8 - CAST ( AVG ( - 20 ) AS INTEGER ) + - COUNT ( * ) + - 90 + + 87 + - 38 * - 39 / 21 * + 45 * + - 86 * + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT COUNT( * ) * COALESCE ( - - 13, - - 20 )
----
13

skipif mysql # not compatible
query I rowsort label-7492
SELECT COUNT ( * ) * COALESCE ( - - 13, - - 20 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT + + COUNT( * ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT + + COUNT ( * ) * + 86
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT + 57 + - + 46 * - MIN( - - 82 ) + COUNT( * ) * - 15 AS col2, 80 col1
----
3814
80

skipif mysql # not compatible
query II rowsort label-7494
SELECT + 57 + - + 46 * - MIN ( - - 82 ) + COUNT ( * ) * - 15 AS col2, 80 col1
----
3814
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT SUM( + 7 ) + NULLIF ( + + COUNT( * ), + - 30 ) - 14 * + 27
----
-370

skipif mysql # not compatible
query I rowsort label-7495
SELECT SUM ( + 7 ) + NULLIF ( + + COUNT ( * ), + - 30 ) - 14 * + 27
----
-370

query I rowsort
SELECT + 40 - + 66 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT 89 * + ( COUNT( ALL + 73 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7497
SELECT 89 * + ( COUNT ( ALL + 73 ) ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - NULLIF ( - + SUM( DISTINCT + NULLIF ( + - 58, + 46 + 76 ) ), + 36 * + MIN( - 8 ) * - 2 - + + 60 * - SUM( - 85 ) * - + 56 + - + 74 / - - 46 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7498
SELECT - NULLIF ( - + SUM ( DISTINCT + NULLIF ( + - 58, + 46 + 76 ) ), + 36 * + MIN ( - 8 ) * - 2 - + + 60 * - SUM ( - 85 ) * - + 56 + - + 74 / - - 46 ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT - 93 + - NULLIF ( + 67, + CAST( - 30 AS SIGNED ) * - 81 + - CASE 4 WHEN - COALESCE ( - 28, - - 42 ) THEN - MIN( - + 68 ) ELSE NULL END - 74 ) AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-7499
SELECT - 93 + - NULLIF ( + 67, + CAST ( - 30 AS INTEGER ) * - 81 + - CASE 4 WHEN - COALESCE ( - 28, - - 42 ) THEN - MIN ( - + 68 ) ELSE NULL END - 74 ) AS col2
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT + ( - - CAST( NULL AS SIGNED ) ) * - ( + + 60 ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT + ( - - CAST ( NULL AS INTEGER ) ) * - ( + + 60 ) + + 26
----
NULL

query I rowsort
SELECT ALL - - 50 col0
----
50

query I rowsort
SELECT 28 + - 8 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL - - SUM( DISTINCT + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL - - SUM ( DISTINCT + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL 64 * 59 + + + 94 * - + MAX( 12 ) AS col1
----
2648

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL 64 * 59 + + + 94 * - + MAX ( 12 ) AS col1
----
2648

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT ALL - 74 DIV + 50 + + 39 + + 64 col2
----
102

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - 74 / + 50 + + 39 + + 64 col2
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT + 59 AS col2, - COUNT( * )
----
59
-1

skipif mysql # not compatible
query II rowsort label-7506
SELECT + 59 AS col2, - COUNT ( * )
----
59
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7507
SELECT 30 DIV - 8 + + 91 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7507
SELECT 30 / - 8 + + 91 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT SUM( 3 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-7508
SELECT SUM ( 3 ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT SUM( - - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7509
SELECT SUM ( - - 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7510
SELECT + 99 * + CASE + NULLIF ( - COUNT( * ), + CASE 0 WHEN + COUNT( * ) * 82 THEN + + ( + 40 ) * - COALESCE ( + 87, + - 38 * + CASE - 89 WHEN - 40 THEN 15 * + - 23 * + 16 + COUNT( * ) + - - CAST( NULL AS SIGNED ) WHEN + + 25 * + COALESCE ( - COUNT( * ), + ( 96 ), 48 + 4 ) + CAST( 17 AS SIGNED ) THEN NULL END, 32 + 66, - 38 * 84 ) + + CAST( NULL AS DECIMAL ) * 52 ELSE ( 92 ) / - COUNT( * ) END ) WHEN + MIN( ALL - 21 ) THEN NULL WHEN - 36 - - CASE 24 - 96 WHEN 27 THEN - ( + 81 ) WHEN + 71 * CAST( NULL AS SIGNED ) THEN NULL END * COUNT( * ) THEN + AVG ( ALL - 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT + 99 * + CASE + NULLIF ( - COUNT ( * ), + CASE 0 WHEN + COUNT ( * ) * 82 THEN + + ( + 40 ) * - COALESCE ( + 87, + - 38 * + CASE - 89 WHEN - 40 THEN 15 * + - 23 * + 16 + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) WHEN + + 25 * + COALESCE ( - COUNT ( * ), + ( 96 ), 48 + 4 ) + CAST ( 17 AS INTEGER ) THEN NULL END, 32 + 66, - 38 * 84 ) + + CAST ( NULL AS REAL ) * 52 ELSE ( 92 ) / - COUNT ( * ) END ) WHEN + MIN ( ALL - 21 ) THEN NULL WHEN - 36 - - CASE 24 - 96 WHEN 27 THEN - ( + 81 ) WHEN + 71 * CAST ( NULL AS INTEGER ) THEN NULL END * COUNT ( * ) THEN + AVG ( ALL - 78 ) END
----
NULL

query I rowsort
SELECT 22 * - 29 + - 82
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + 8 * - COUNT( * ) + + + 30 + 5 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + 8 * - COUNT ( * ) + + + 30 + 5 AS col2
----
27

query I rowsort
SELECT ALL - 31 + - + 11 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT MAX( - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7514
SELECT MAX ( - 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT - 53 * - CASE 90 WHEN - + 25 * - COUNT( * ) THEN - 11 END - - - ( 72 ) / - ( + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 53 * - CASE 90 WHEN - + 25 * - COUNT ( * ) THEN - 11 END - - - ( 72 ) / - ( + 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT ALL + MIN( DISTINCT 13 )
----
13

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL + MIN ( DISTINCT 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + MAX( DISTINCT + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7517
SELECT + MAX ( DISTINCT + 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT MIN( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-7518
SELECT MIN ( 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL 45 + 2 + - COUNT( * ) + - 91 + - - 29 + + 56 * + 5
----
264

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL 45 + 2 + - COUNT ( * ) + - 91 + - - 29 + + 56 * + 5
----
264

query I rowsort
SELECT + NULLIF ( + COALESCE ( + 98, - 41 ), + ( - + 85 ) ) * + COALESCE ( - 89, - + 79 ) * 79 AS col2
----
-689038

query II rowsort
SELECT DISTINCT 52 AS col2, 26 + 95 AS col1
----
52
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT + 75 + + - ( + COUNT( * ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7522
SELECT + 75 + + - ( + COUNT ( * ) ) AS col2
----
74

query I rowsort
SELECT ALL - 70 - + 83 AS col2
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT ALL COUNT( * ) * - NULLIF ( - ( + + 25 ), + ( 54 ) + + + 54 * 80 * - 41 * + - 92 ) DIV + 61 * + + 65
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL COUNT ( * ) * - NULLIF ( - ( + + 25 ), + ( 54 ) + + + 54 * 80 * - 41 * + - 92 ) / + 61 * + + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT DISTINCT 62 - - - ( + ( ( + + CASE COUNT( * ) WHEN - 59 + 71 THEN 81 ELSE NULL END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT 62 - - - ( + ( ( + + CASE COUNT ( * ) WHEN - 59 + 71 THEN 81 ELSE NULL END ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7526
SELECT ALL + COUNT( * ) AS col0, 23 * - + 51
----
1
-1173

skipif mysql # not compatible
query II rowsort label-7526
SELECT ALL + COUNT ( * ) AS col0, 23 * - + 51
----
1
-1173

query II rowsort
SELECT - + CASE 83 WHEN - - 65 + - + NULLIF ( - 29, + 19 * + 54 ) + 55 * - 48 THEN NULL ELSE 51 + + 98 END AS col2, - 20
----
-149
-20

query I rowsort
SELECT - + 10 + - 10 AS col2
----
-20

query I rowsort
SELECT - + 52 * + 46 + - ( + 48 )
----
-2440

query I rowsort
SELECT + - 41 * + 70
----
-2870

query I rowsort
SELECT - 24 + - - 16
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT - SUM( DISTINCT + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7532
SELECT - SUM ( DISTINCT + 49 ) AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT - 38 + - CAST( - 28 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-7533
SELECT - 38 + - CAST ( - 28 AS INTEGER )
----
-10

query II rowsort
SELECT - 94, 38 AS col2
----
-94
38

query I rowsort
SELECT - 45 col0
----
-45

query I rowsort
SELECT DISTINCT - - 8 * - - 57
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL + + 46 * MAX( ALL 1 )
----
46

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL + + 46 * MAX ( ALL 1 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT - - 83 * - ( - NULLIF ( - 71, + + 91 * 26 ) ) - NULLIF ( - + ( - - MIN( DISTINCT 72 ) ), + COALESCE ( + + 77, + ( - + 64 ), - 46 * - 79 + - 86 ) ) - 5
----
-5826

skipif mysql # not compatible
query I rowsort label-7538
SELECT - - 83 * - ( - NULLIF ( - 71, + + 91 * 26 ) ) - NULLIF ( - + ( - - MIN ( DISTINCT 72 ) ), + COALESCE ( + + 77, + ( - + 64 ), - 46 * - 79 + - 86 ) ) - 5
----
-5826

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT + - SUM( ALL + 15 ) * - ( + - 49 ) - + 49 AS col1
----
-784

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + - SUM ( ALL + 15 ) * - ( + - 49 ) - + 49 AS col1
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL + COALESCE ( + + 81, COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + COALESCE ( + + 81, COUNT ( * ) ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT - - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7541
SELECT - - ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT ALL + 17 AS col0, 69 * COUNT( * ) * + 5 * - 27
----
17
-9315

skipif mysql # not compatible
query II rowsort label-7542
SELECT ALL + 17 AS col0, 69 * COUNT ( * ) * + 5 * - 27
----
17
-9315

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + 44 + - - COUNT( * ) * + - 29 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + 44 + - - COUNT ( * ) * + - 29 AS col0
----
15

query I rowsort
SELECT + + 29 * 54 - - 55 AS col0
----
1621

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT MAX( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-7545
SELECT MAX ( - 13 )
----
-13

query I rowsort
SELECT - 80 * - 49
----
3920

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT COUNT( * ) AS col1, 79 - 9 + + + 23
----
1
93

skipif mysql # not compatible
query II rowsort label-7547
SELECT COUNT ( * ) AS col1, 79 - 9 + + + 23
----
1
93

query I rowsort
SELECT ALL + - 24 AS col2
----
-24

query I rowsort
SELECT ( ( - 27 ) )
----
-27

query I rowsort
SELECT + 12 * + 92 AS col2
----
1104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7551
SELECT ALL - 41 DIV - - 16 + - 12 - CAST( + 10 AS SIGNED ) * - + ( - - 32 ) col2
----
306

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL - 41 / - - 16 + - 12 - CAST ( + 10 AS INTEGER ) * - + ( - - 32 ) col2
----
306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT 62 DIV COUNT( * ) - - 80
----
142

skipif mysql # not compatible
query I rowsort label-7552
SELECT 62 / COUNT ( * ) - - 80
----
142

query I rowsort
SELECT + NULLIF ( + + 32, - 18 ) AS col1
----
32

query I rowsort
SELECT 35 * - 15 - + - 16 AS col1
----
-509

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT DISTINCT + ( - 68 ) AS col1, NULLIF ( COUNT( * ), - + 46 * ( + 43 ) ) * + + 18 + + 85 + + ( + 14 ) + - 65 * - 32 AS col0
----
-68
2197

skipif mysql # not compatible
query II rowsort label-7555
SELECT DISTINCT + ( - 68 ) AS col1, NULLIF ( COUNT ( * ), - + 46 * ( + 43 ) ) * + + 18 + + 85 + + ( + 14 ) + - 65 * - 32 AS col0
----
-68
2197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7556
SELECT + CASE 20 WHEN + COUNT( * ) + + 31 THEN + NULLIF ( - + AVG ( - - CAST( 37 AS SIGNED ) ), + 35 * + - CASE - 89 WHEN 88 / + 26 * + 68 THEN + 15 * - 36 END + - 46 + - 42 + + 49 + + 74 * + + 55 * + 75 * + COUNT( * ) * - 30 + - - 7 + 8 + - SUM( DISTINCT 58 ) * AVG ( - 86 + 30 ) ) WHEN 38 / 66 THEN 72 * + 38 ELSE + 73 END AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7556
SELECT + CASE 20 WHEN + COUNT ( * ) + + 31 THEN + NULLIF ( - + AVG ( - - CAST ( 37 AS INTEGER ) ), + 35 * + - CASE - 89 WHEN 88 / + 26 * + 68 THEN + 15 * - 36 END + - 46 + - 42 + + 49 + + 74 * + + 55 * + 75 * + COUNT ( * ) * - 30 + - - 7 + 8 + - SUM ( DISTINCT 58 ) * AVG ( - 86 + 30 ) ) WHEN 38 / 66 THEN 72 * + 38 ELSE + 73 END AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT ALL ( - ( + 9 ) ) * - 21 + - 17 + + 17 + + - 16 + - 48 - 68 * 80 * + 40 / - 33 / + 67 * - 24 * - - 79 * CAST( NULL AS SIGNED ) + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL ( - ( + 9 ) ) * - 21 + - 17 + + 17 + + - 16 + - 48 - 68 * 80 * + 40 / - 33 / + 67 * - 24 * - - 79 * CAST ( NULL AS INTEGER ) + - 94
----
NULL

query I rowsort
SELECT + CASE - ( + - 11 ) WHEN + 40 + - - 1 THEN - 49 WHEN AVG ( ALL + - 16 ) + - + 95 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT ALL + CAST( 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + CAST ( 34 AS INTEGER )
----
34

query II rowsort
SELECT ( 76 ) AS col1, 84 AS col0
----
76
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT + MAX( + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-7561
SELECT + MAX ( + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT + SUM( + 26 ) / + 69 * - + 48 + + 14 * CASE - NULLIF ( - 59, + 4 / - + 11 + + 80 ) WHEN + NULLIF ( 73, - 70 ) THEN + 30 END + NULLIF ( + + COALESCE ( + 64, + COALESCE ( 59, - 39 - 15 * - + 91 ) ), 68 + - 76 * 39 * 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT + SUM ( + 26 ) / + 69 * - + 48 + + 14 * CASE - NULLIF ( - 59, + 4 / - + 11 + + 80 ) WHEN + NULLIF ( 73, - 70 ) THEN + 30 END + NULLIF ( + + COALESCE ( + 64, + COALESCE ( 59, - 39 - 15 * - + 91 ) ), 68 + - 76 * 39 * 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL 18 * + + ( + - 2 ) * - + 84 * - - 78 + 78 * COUNT( * ) - + 18 AS col1
----
235932

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 18 * + + ( + - 2 ) * - + 84 * - - 78 + 78 * COUNT ( * ) - + 18 AS col1
----
235932

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT + COUNT( * ) * - + 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7564
SELECT + COUNT ( * ) * - + 36 AS col0
----
-36

query I rowsort
SELECT + COALESCE ( + 95, - NULLIF ( 20, + - 73 ) + - + 84 )
----
95

query I rowsort
SELECT ALL + 21 * 66 * + - 25 * 88 * 7 - - - 62
----
-21344462

query I rowsort
SELECT DISTINCT 27 * - 63
----
-1701

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7568
SELECT ALL - ( + 16 ), + CAST( - ( + + 6 ) AS SIGNED ) AS col1
----
-16
-6

skipif mysql # not compatible
query II rowsort label-7568
SELECT ALL - ( + 16 ), + CAST ( - ( + + 6 ) AS INTEGER ) AS col1
----
-16
-6

query I rowsort
SELECT + 25 + 81 col0
----
106

query I rowsort
SELECT - + 93 AS col1
----
-93

query I rowsort
SELECT + 52 * + 34 - 70 AS col2
----
1698

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - 22 * + COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7572
SELECT - 22 * + COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT DISTINCT + 67 * - ( + + 86 ) AS col0
----
-5762

query I rowsort
SELECT ALL - 34 * 69 + + 93 + - 6
----
-2259

query I rowsort
SELECT DISTINCT NULLIF ( + 7, + 70 )
----
7

query I rowsort
SELECT ALL + 74 + - 54
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + SUM( - 69 ) + - ( - 55 ) - - 2 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7577
SELECT + SUM ( - 69 ) + - ( - 55 ) - - 2 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7578
SELECT - CAST( NULL AS DECIMAL ) - - COALESCE ( COUNT( * ), - 72, - + 12 * + COUNT( * ) * + 59 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT - CAST ( NULL AS REAL ) - - COALESCE ( COUNT ( * ), - 72, - + 12 * + COUNT ( * ) * + 59 ) col1
----
NULL

query I rowsort
SELECT 90 + + 24 + + 57 + - 54 * + 76 * + + 58 * - 23
----
5474907

query I rowsort
SELECT ALL + 82 + 42
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7581
SELECT CASE + 43 WHEN + - 71 * + - COUNT( * ) THEN 83 * 36 + + - NULLIF ( + 40, + + 22 ) * - ( + - 53 ) WHEN - 52 THEN + - 27 + + CAST( NULL AS SIGNED ) * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT CASE + 43 WHEN + - 71 * + - COUNT ( * ) THEN 83 * 36 + + - NULLIF ( + 40, + + 22 ) * - ( + - 53 ) WHEN - 52 THEN + - 27 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT 37 DIV - 25 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7582
SELECT 37 / - 25 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7583
SELECT DISTINCT + COUNT( - - 46 ) DIV + 58 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT + COUNT ( - - 46 ) / + 58 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT ALL - CAST( NULL AS SIGNED ) + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL - CAST ( NULL AS INTEGER ) + - 9
----
NULL

query I rowsort
SELECT ALL 6 + + + 66 AS col2
----
72

query I rowsort
SELECT 29 + - - 58 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT - COUNT( ALL 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - COUNT ( ALL 35 )
----
-1

query I rowsort
SELECT ALL - 67 + + + 27
----
-40

query I rowsort
SELECT DISTINCT - ( 63 ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT DISTINCT - CAST( + - 53 AS SIGNED ) - - + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - CAST ( + - 53 AS INTEGER ) - - + COUNT ( * )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT DISTINCT + ( + + 83 ) - 79 + CAST( + + MAX( DISTINCT + + 69 ) AS SIGNED ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT + ( + + 83 ) - 79 + CAST ( + + MAX ( DISTINCT + + 69 ) AS INTEGER ) AS col2
----
73

query I rowsort
SELECT ALL - 68 - - + 96
----
28

query I rowsort
SELECT 35 * 66 AS col0
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT CASE + - 61 WHEN - + CASE - 23 WHEN + 25 THEN NULL WHEN 20 / + ( + 30 ) + + 23 THEN - + 20 / - - 41 * AVG ( - 62 ) END * - 36 * + 54 + + 78 * + + 79 THEN - 22 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT CASE + - 61 WHEN - + CASE - 23 WHEN + 25 THEN NULL WHEN 20 / + ( + 30 ) + + 23 THEN - + 20 / - - 41 * AVG ( - 62 ) END * - 36 * + 54 + + 78 * + + 79 THEN - 22 END + + COUNT ( * )
----
NULL

query II rowsort
SELECT 57 AS col0, 43
----
57
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT ALL - COUNT( * ) AS col0, 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-7596
SELECT ALL - COUNT ( * ) AS col0, 95
----
-1
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT 54 DIV - + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7597
SELECT 54 / - + 69 AS col1
----
0

query I rowsort
SELECT ALL - 90 col0
----
-90

query II rowsort
SELECT ALL - 35 col2, + 5 AS col0
----
-35
5

query I rowsort
SELECT ALL 50 - 12
----
38

query I rowsort
SELECT 80 * + + 79
----
6320

query I rowsort
SELECT 50 * + - 14
----
-700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7603
SELECT DISTINCT + - COUNT( * ) DIV 36 + - 31 col2
----
-31

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT + - COUNT ( * ) / 36 + - 31 col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7604
SELECT + 93 + - + 48 + - 75 + - ( + + COUNT( * ) ) * - 55, COALESCE ( - 43, - 60, ( - 61 ), - + 0 * - 8 ) AS col0
----
25
-43

skipif mysql # not compatible
query II rowsort label-7604
SELECT + 93 + - + 48 + - 75 + - ( + + COUNT ( * ) ) * - 55, COALESCE ( - 43, - 60, ( - 61 ), - + 0 * - 8 ) AS col0
----
25
-43

query I rowsort
SELECT ALL - + 62 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7606
SELECT + 37 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-7606
SELECT + 37 / - 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - - 78 * + + CASE - + 62 WHEN + + 37 THEN - AVG ( DISTINCT + - 63 ) WHEN 52 * - + 86 * - 87 THEN - 69 + + - COUNT( * ) ELSE NULL END + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT - - 78 * + + CASE - + 62 WHEN + + 37 THEN - AVG ( DISTINCT + - 63 ) WHEN 52 * - + 86 * - 87 THEN - 69 + + - COUNT ( * ) ELSE NULL END + 31
----
NULL

query I rowsort
SELECT + 46 + + + 5 AS col2
----
51

query I rowsort
SELECT - - 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL - COUNT( * ) * - + 72 + - 2
----
70

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL - COUNT ( * ) * - + 72 + - 2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT + CASE 15 WHEN - COUNT( * ) THEN - - 67 END + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT + CASE 15 WHEN - COUNT ( * ) THEN - - 67 END + + 38
----
NULL

query I rowsort
SELECT ALL + - 75 * + 51 - + + 10 + - + 79
----
-3914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7613
SELECT 34 DIV + MIN( DISTINCT + 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7613
SELECT 34 / + MIN ( DISTINCT + 63 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL 56 + + 40 + + + 50 - + 44 + + 29 * NULLIF ( + ( 96 ), 96 / + + 15 + - COUNT( * ) ) + + 76 * 2 * + 23 * + 52 AS col0
----
184678

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL 56 + + 40 + + + 50 - + 44 + + 29 * NULLIF ( + ( 96 ), 96 / + + 15 + - COUNT ( * ) ) + + 76 * 2 * + 23 * + 52 AS col0
----
184678

onlyif mysql # aggregate syntax: 
query II rowsort label-7615
SELECT - 95 + - COALESCE ( - - 19, - 69, + + 87 * + 94 + NULLIF ( - 71, + 54 * - 86 * - 76 ) + - 15 * + 88 + + MIN( ( + 8 ) ) ) AS col1, SUM( DISTINCT + 37 ) col2
----
-114
37

skipif mysql # not compatible
query II rowsort label-7615
SELECT - 95 + - COALESCE ( - - 19, - 69, + + 87 * + 94 + NULLIF ( - 71, + 54 * - 86 * - 76 ) + - 15 * + 88 + + MIN ( ( + 8 ) ) ) AS col1, SUM ( DISTINCT + 37 ) col2
----
-114
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT - CASE - COUNT( * ) WHEN + NULLIF ( + AVG ( ALL + 19 ), + 7 / + 77 - + - 10 ) THEN NULL WHEN COUNT( * ) * - 18 * + AVG ( + 52 ) - - + 14 + + 31 * 81 * 15 * COUNT( * ) THEN 33 * + - 90 + - 20 + - COUNT( * ) + - 29 * COUNT( * ) - NULLIF ( - 84, + 73 * + 59 + + 76 + - 12 ) + 83 + 49 ELSE + MIN( + 68 ) END * + 88 AS col2
----
-5984

skipif mysql # not compatible
query I rowsort label-7616
SELECT - CASE - COUNT ( * ) WHEN + NULLIF ( + AVG ( ALL + 19 ), + 7 / + 77 - + - 10 ) THEN NULL WHEN COUNT ( * ) * - 18 * + AVG ( + 52 ) - - + 14 + + 31 * 81 * 15 * COUNT ( * ) THEN 33 * + - 90 + - 20 + - COUNT ( * ) + - 29 * COUNT ( * ) - NULLIF ( - 84, + 73 * + 59 + + 76 + - 12 ) + 83 + 49 ELSE + MIN ( + 68 ) END * + 88 AS col2
----
-5984

query I rowsort
SELECT NULLIF ( - - 78, - + 83 ) + 86 AS col0
----
164

query I rowsort
SELECT ALL - COALESCE ( + - 42, + - 85 * + - 37 * - 55, + - 11 ) + - 57 col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7619
SELECT - COALESCE ( - + 36, 53 * + MIN( ALL - 76 ) - - ( + + ( + - 35 ) ) ), 74 * 21 AS col0
----
36
1554

skipif mysql # not compatible
query II rowsort label-7619
SELECT - COALESCE ( - + 36, 53 * + MIN ( ALL - 76 ) - - ( + + ( + - 35 ) ) ), 74 * 21 AS col0
----
36
1554

query I rowsort
SELECT - ( - + 86 ) col1
----
86

query I rowsort
SELECT 82 * + 16 AS col1
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT DISTINCT + MIN( ALL + 84 ) + + 82
----
166

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT + MIN ( ALL + 84 ) + + 82
----
166

onlyif mysql # aggregate syntax: 
query II rowsort label-7623
SELECT ALL - 99 + 62 AS col2, 81 - + COUNT( * )
----
-37
80

skipif mysql # not compatible
query II rowsort label-7623
SELECT ALL - 99 + 62 AS col2, 81 - + COUNT ( * )
----
-37
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7624
SELECT ALL CASE - - 5 WHEN - 2 THEN NULL WHEN - + CAST( NULL AS DECIMAL ) - + 25 + COUNT( * ) THEN - 38 WHEN 16 THEN + 78 + 14 END + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL CASE - - 5 WHEN - 2 THEN NULL WHEN - + CAST ( NULL AS REAL ) - + 25 + COUNT ( * ) THEN - 38 WHEN 16 THEN + 78 + 14 END + 70 AS col2
----
NULL

query I rowsort
SELECT ( + 1 ) * - 83 + + 45
----
-38

query I rowsort
SELECT 72 * + 26 + 33 AS col2
----
1905

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT - 42 DIV - 20 + 81 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7627
SELECT - 42 / - 20 + 81 AS col2
----
83

query I rowsort
SELECT ALL 28 - - + 11 AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT ( + 72 ) * + + 47 - 13 AS col2, CASE + COUNT( * ) WHEN - NULLIF ( 91, + + 63 ) + 82 + - 61 + + 11 + + - 58 THEN ( + 47 ) - COUNT( * ) END col0
----
3371
NULL

skipif mysql # not compatible
query II rowsort label-7629
SELECT ( + 72 ) * + + 47 - 13 AS col2, CASE + COUNT ( * ) WHEN - NULLIF ( 91, + + 63 ) + 82 + - 61 + + 11 + + - 58 THEN ( + 47 ) - COUNT ( * ) END col0
----
3371
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT 45 - - SUM( - 39 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7630
SELECT 45 - - SUM ( - 39 ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7631
SELECT ALL + 9 DIV + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + 9 / + + COUNT ( * ) AS col0
----
9

query I rowsort
SELECT 54 - - 21 * - 16
----
-282

query I rowsort
SELECT DISTINCT - 93 col2
----
-93

query II rowsort
SELECT 70 * - + 54, 26 AS col1
----
-3780
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL - NULLIF ( - 28, COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - NULLIF ( - 28, COUNT ( * ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT + 34 * + CAST( + - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + - 50 + - - 56 + + 22 + - 33 * + 12 + + - 51 * - 66 * - 34 * + 18 + 10 * + CAST( NULL AS SIGNED ) / - 55 * COUNT( * ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT + 34 * + CAST ( + - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 50 + - - 56 + + 22 + - 33 * + 12 + + - 51 * - 66 * - 34 * + 18 + 10 * + CAST ( NULL AS INTEGER ) / - 55 * COUNT ( * ) * + 0
----
NULL

query I rowsort
SELECT 89 - 62
----
27

query I rowsort
SELECT ALL + 37 * + 48 col1
----
1776

query I rowsort
SELECT 95 * + 8 * - 62
----
-47120

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT + COUNT( * ) * - - ( + + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + COUNT ( * ) * - - ( + + 9 ) AS col0
----
9

query I rowsort
SELECT ALL - + 2 + ( - 95 )
----
-97

query I rowsort
SELECT + ( - 87 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL + 67 + + COUNT( DISTINCT - 53 )
----
68

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + 67 + + COUNT ( DISTINCT - 53 )
----
68

query I rowsort
SELECT - 43 * - + 92
----
3956

query I rowsort
SELECT 71 + ( 12 ) AS col2
----
83

query I rowsort
SELECT ALL - - 18 AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT ALL 1 DIV + ( - - 62 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL 1 / + ( - - 62 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7648
SELECT 48 DIV - COUNT( * ) AS col1, COALESCE ( + 58, + ( + 57 ) DIV + 17 ) * - 36
----
-48
-2088

skipif mysql # not compatible
query II rowsort label-7648
SELECT 48 / - COUNT ( * ) AS col1, COALESCE ( + 58, + ( + 57 ) / + 17 ) * - 36
----
-48
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL + COUNT( * ) + + - ( + + 35 ) + + 63
----
29

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + COUNT ( * ) + + - ( + + 35 ) + + 63
----
29

query I rowsort
SELECT DISTINCT - NULLIF ( - 18, + 98 + - - 98 ) + + - 47 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7651
SELECT ALL + ( 63 ) DIV COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + ( 63 ) / COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - - 52 + + + COUNT( ALL - 16 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7652
SELECT - - 52 + + + COUNT ( ALL - 16 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT + - 46 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-7653
SELECT + - 46 / 88
----
0

query I rowsort
SELECT - ( + 25 ) AS col0
----
-25

query I rowsort
SELECT ALL 90 + - 75 + - + 34 - 42
----
-61

query I rowsort
SELECT - 60 + - 80 AS col1
----
-140

query I rowsort
SELECT - - 2 * - 98 + + 22
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT - COUNT( + 29 ) + - + COALESCE ( - + 85, - 10 * + COUNT( - 47 ) + + 87 - - 32 + 86 * - 6 * + + 75 * - 60 * + 50 - - 55 * - 41 * + + 78 ) * - 22
----
-1871

skipif mysql # not compatible
query I rowsort label-7658
SELECT - COUNT ( + 29 ) + - + COALESCE ( - + 85, - 10 * + COUNT ( - 47 ) + + 87 - - 32 + 86 * - 6 * + + 75 * - 60 * + 50 - - 55 * - 41 * + + 78 ) * - 22
----
-1871

query I rowsort
SELECT ALL - 0 - - 90 AS col2
----
90

query I rowsort
SELECT DISTINCT + 86 - + 0 + - 97
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - MIN( + + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7661
SELECT - MIN ( + + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - 41 + 78 + - MAX( ALL 31 )
----
6

skipif mysql # not compatible
query I rowsort label-7662
SELECT - 41 + 78 + - MAX ( ALL 31 )
----
6

query I rowsort
SELECT - 58 * 97
----
-5626

query I rowsort
SELECT ALL 5 * + 55
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + COUNT( * ) + + + 93 - - - 58 + 86 + + 35 * + 64
----
2362

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( * ) + + + 93 - - - 58 + 86 + + 35 * + 64
----
2362

query I rowsort
SELECT ALL ( - + 71 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7667
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) * + 88 AS col0, + 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) * + 88 AS col0, + 60 AS col2
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT + ( COUNT( * ) ) * - + 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7668
SELECT + ( COUNT ( * ) ) * - + 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + COALESCE ( 33, + COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-7669
SELECT + COALESCE ( 33, + COUNT ( * ) )
----
33

query I rowsort
SELECT DISTINCT 4 * - 3 col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7671
SELECT + 74 * 91 * 60 DIV 91 + - + 0 + + CAST( - - 58 AS SIGNED ) * + 18 * - - 82 + 37
----
90085

skipif mysql # not compatible
query I rowsort label-7671
SELECT + 74 * 91 * 60 / 91 + - + 0 + + CAST ( - - 58 AS INTEGER ) * + 18 * - - 82 + 37
----
90085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT + ( + + 14 ) / + 35 + - ( + 88 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT + ( + + 14 ) / + 35 + - ( + 88 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7673
SELECT CASE + COUNT( * ) WHEN + COALESCE ( 10, + - 42 * + CASE - 58 WHEN + 89 THEN - 83 ELSE NULL END * CAST( - CASE 42 WHEN COUNT( * ) THEN - 79 / COUNT( * ) / COUNT( * ) * ( + + COUNT( * ) ) END AS SIGNED ), - 93 ) * - + NULLIF ( - - 47, - 16 ) THEN NULL WHEN - 72 THEN 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT CASE + COUNT ( * ) WHEN + COALESCE ( 10, + - 42 * + CASE - 58 WHEN + 89 THEN - 83 ELSE NULL END * CAST ( - CASE 42 WHEN COUNT ( * ) THEN - 79 / COUNT ( * ) / COUNT ( * ) * ( + + COUNT ( * ) ) END AS INTEGER ), - 93 ) * - + NULLIF ( - - 47, - 16 ) THEN NULL WHEN - 72 THEN 79 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 30 * 9 * - 56 + - ( - 58 ) + 71
----
-14991

onlyif mysql # aggregate syntax: 
query II rowsort label-7675
SELECT ALL - 77 * - + 0 + + COUNT( * ) AS col1, - 26
----
1
-26

skipif mysql # not compatible
query II rowsort label-7675
SELECT ALL - 77 * - + 0 + + COUNT ( * ) AS col1, - 26
----
1
-26

query I rowsort
SELECT ALL + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT - 66 * 84 + - + 99 * - COUNT( * ) AS col2
----
-5445

skipif mysql # not compatible
query I rowsort label-7677
SELECT - 66 * 84 + - + 99 * - COUNT ( * ) AS col2
----
-5445

query I rowsort
SELECT ALL 70 * - - 49 * - + 98 + + - CASE 21 WHEN + 69 THEN 71 END + + + 9 + + 28 AS col0
----
NULL

query I rowsort
SELECT ALL + - 99 * 7 + 13 AS col1
----
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7680
SELECT + CAST( NULL AS SIGNED ) * + 86 - 24 - - 10 + - 31 + + 17 * + 79 * - - 27 * + 14 - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT + CAST ( NULL AS INTEGER ) * + 86 - 24 - - 10 + - 31 + + 17 * + 79 * - - 27 * + 14 - 28
----
NULL

query I rowsort
SELECT + - 55 * - + 95
----
5225

query I rowsort
SELECT + ( ( - 8 ) )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT ALL + ( SUM( ALL - + 23 ) ), 70 + + 38 AS col0
----
-23
108

skipif mysql # not compatible
query II rowsort label-7683
SELECT ALL + ( SUM ( ALL - + 23 ) ), 70 + + 38 AS col0
----
-23
108

query I rowsort
SELECT DISTINCT + + 45 * 99 * - - 66 * - 97 AS col1
----
-28520910

onlyif mysql # aggregate syntax: 
query II rowsort label-7685
SELECT - - NULLIF ( 68, + - COUNT( ALL 83 ) ) * + 9 + - 61 * - COALESCE ( 21, + COUNT( * ) + - + 93, - 54 * - 86, - 62 * - ( 20 ) * + 2 + - 11 * + + 67 ), + COUNT( * ) AS col1
----
1893
1

skipif mysql # not compatible
query II rowsort label-7685
SELECT - - NULLIF ( 68, + - COUNT ( ALL 83 ) ) * + 9 + - 61 * - COALESCE ( 21, + COUNT ( * ) + - + 93, - 54 * - 86, - 62 * - ( 20 ) * + 2 + - 11 * + + 67 ), + COUNT ( * ) AS col1
----
1893
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT - - SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT - - SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + ( - 67 ) col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7688
SELECT ALL COUNT( * ) AS col0, CASE WHEN NOT + 83 <> NULL THEN 7 * CASE + MIN( 32 ) WHEN - 31 * 56 + - - 14 - + 48 + + - COUNT( * ) * + 42 + 39 DIV + COUNT( * ) THEN NULL ELSE + 27 END ELSE COUNT( * ) + 1 * + COUNT( * ) DIV - + 41 + + - CAST( + + 8 AS SIGNED ) + 31 END AS col2
----
1
24

skipif mysql # not compatible
query II rowsort label-7688
SELECT ALL COUNT ( * ) AS col0, CASE WHEN NOT + 83 <> NULL THEN 7 * CASE + MIN ( 32 ) WHEN - 31 * 56 + - - 14 - + 48 + + - COUNT ( * ) * + 42 + 39 / + COUNT ( * ) THEN NULL ELSE + 27 END ELSE COUNT ( * ) + 1 * + COUNT ( * ) / - + 41 + + - CAST ( + + 8 AS INTEGER ) + 31 END AS col2
----
1
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT DISTINCT - 12 DIV - - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - 12 / - - COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL + MAX( ALL - - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + MAX ( ALL - - 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - + COUNT( * ) + 18 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7691
SELECT - + COUNT ( * ) + 18 AS col1
----
17

query I rowsort
SELECT - + ( - 26 ) * - 36
----
-936

query I rowsort
SELECT - 47 + 37 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT - ( + - CAST( + NULLIF ( SUM( ALL + 3 ), - 4 ) AS SIGNED ) ) * + 25 - - ( 68 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT - ( + - CAST ( + NULLIF ( SUM ( ALL + 3 ), - 4 ) AS INTEGER ) ) * + 25 - - ( 68 ) AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - 94 * - SUM( DISTINCT 31 ) AS col0
----
2914

skipif mysql # not compatible
query I rowsort label-7695
SELECT - 94 * - SUM ( DISTINCT 31 ) AS col0
----
2914

query I rowsort
SELECT + 99 * 43 AS col1
----
4257

query I rowsort
SELECT ALL - 9 * 34
----
-306

query I rowsort
SELECT ALL ( - ( 35 ) )
----
-35

query II rowsort
SELECT 38 AS col0, 48
----
38
48

query II rowsort
SELECT ALL 74, - 33 AS col2
----
74
-33

query II rowsort
SELECT ALL 25, 62 * 85 AS col2
----
25
5270

query I rowsort
SELECT - 63 * - 9
----
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ALL - ( - + 50 ) * + + CAST( 19 AS SIGNED ) AS col2
----
950

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL - ( - + 50 ) * + + CAST ( 19 AS INTEGER ) AS col2
----
950

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT + 81 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT + 81 / 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT + ( 97 ) * 53 * - ( - ( + CAST( - - 24 AS SIGNED ) ) )
----
123384

skipif mysql # not compatible
query I rowsort label-7705
SELECT + ( 97 ) * 53 * - ( - ( + CAST ( - - 24 AS INTEGER ) ) )
----
123384

query I rowsort
SELECT - CASE - 26 WHEN + + AVG ( - - 99 ) + - 74 * 4 THEN 76 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7707
SELECT + COUNT( * ) AS col0, - 92 * 22
----
1
-2024

skipif mysql # not compatible
query II rowsort label-7707
SELECT + COUNT ( * ) AS col0, - 92 * 22
----
1
-2024

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT + 95 DIV 54 + 63 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7708
SELECT + 95 / 54 + 63 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7709
SELECT + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + CASE 75 WHEN - COALESCE ( - 44, - + 97 ) / 3 THEN - + 31 + + 89 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7711
SELECT ALL COALESCE ( + + ( + 78 ), + + SUM( + 18 ) ) DIV + 73 - + 70 + + 58 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL COALESCE ( + + ( + 78 ), + + SUM ( + 18 ) ) / + 73 - + 70 + + 58 AS col2
----
-11

query I rowsort
SELECT ALL + NULLIF ( + NULLIF ( + ( 81 ), 3 ), - + 62 ) AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7713
SELECT DISTINCT 19 DIV 78 * 98 + - + 59, + NULLIF ( - COUNT( * ), - + 32 ) AS col2
----
-59
-1

skipif mysql # not compatible
query II rowsort label-7713
SELECT DISTINCT 19 / 78 * 98 + - + 59, + NULLIF ( - COUNT ( * ), - + 32 ) AS col2
----
-59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT + MAX( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7714
SELECT + MAX ( + 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT DISTINCT + 30 DIV + ( + COUNT( * ) ) + CASE - 12 WHEN ( - - COUNT( * ) ) THEN - 79 WHEN + 70 * 97 THEN + 33 * + - 43 WHEN - - 74 * NULLIF ( 88, - + 37 + + - 35 ) THEN NULL ELSE + 46 END - - - 88 * + - 17 AS col2
----
1572

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT + 30 / + ( + COUNT ( * ) ) + CASE - 12 WHEN ( - - COUNT ( * ) ) THEN - 79 WHEN + 70 * 97 THEN + 33 * + - 43 WHEN - - 74 * NULLIF ( 88, - + 37 + + - 35 ) THEN NULL ELSE + 46 END - - - 88 * + - 17 AS col2
----
1572

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL - CASE - 36 WHEN + - 79 THEN + + MAX( + 89 ) WHEN COUNT( * ) THEN NULL ELSE NULL END / + + ( + + 12 ) - 79 + - 37 / + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - CASE - 36 WHEN + - 79 THEN + + MAX ( + 89 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END / + + ( + + 12 ) - 79 + - 37 / + 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT DISTINCT + + 21 / 41 * + CAST( NULL AS SIGNED ) + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT + + 21 / 41 * + CAST ( NULL AS INTEGER ) + - 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT - + CAST( NULL AS SIGNED ) + - 83 + 81 + + + 27 / + + 33 - + + CAST( + 97 AS SIGNED ) * + - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT - + CAST ( NULL AS INTEGER ) + - 83 + 81 + + + 27 / + + 33 - + + CAST ( + 97 AS INTEGER ) * + - 36 AS col0
----
NULL

query I rowsort
SELECT ALL ( 91 ) * ( 84 ) AS col0
----
7644

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT 62 DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT 62 / + + 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT ALL + 99 + ( + ( + 17 ) ) + + 74 + + 56 DIV 2 * + 68 + - - 90 AS col1
----
2184

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + 99 + ( + ( + 17 ) ) + + 74 + + 56 / 2 * + 68 + - - 90 AS col1
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT COUNT( * ) * 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7722
SELECT COUNT ( * ) * 3 AS col2
----
3

query II rowsort
SELECT 43, + 65 AS col0
----
43
65

query I rowsort
SELECT DISTINCT - - 7 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL - CAST( + - 4 AS SIGNED ) * - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - CAST ( + - 4 AS INTEGER ) * - COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT ( + 84 )
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-7727
SELECT ALL + 5 - 80 - - + 92 + + 47 DIV - - 19 - - 58 col2, - 41
----
77
-41

skipif mysql # not compatible
query II rowsort label-7727
SELECT ALL + 5 - 80 - - + 92 + + 47 / - - 19 - - 58 col2, - 41
----
77
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT - - CAST( ( + 60 ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7728
SELECT - - CAST ( ( + 60 ) AS INTEGER ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + 83 * - - COALESCE ( + 16, + 36, - 51 * - - COUNT( * ) + + 83 + 23 ) + - 33
----
1295

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 83 * - - COALESCE ( + 16, + 36, - 51 * - - COUNT ( * ) + + 83 + 23 ) + - 33
----
1295

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT 11 * + + MAX( + 81 ) + ( + 10 )
----
901

skipif mysql # not compatible
query I rowsort label-7730
SELECT 11 * + + MAX ( + 81 ) + ( + 10 )
----
901

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7731
SELECT DISTINCT + 54, CAST( NULL AS SIGNED ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-7731
SELECT DISTINCT + 54, CAST ( NULL AS INTEGER ) AS col0
----
54
NULL

query II rowsort
SELECT ALL 44 AS col2, + 0 * + 12 * + 80 + 74 AS col2
----
44
74

query II rowsort
SELECT - 22 + 71 + - + 76 + 96 AS col2, 34 AS col0
----
69
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT 29 + - CASE - 7 WHEN + - 6 + + - 54 * - 99 + + 59 - - 83 THEN ( AVG ( ALL + + 5 ) ) * + - ( + COUNT( * ) ) * + COUNT( * ) + 61 + NULLIF ( 4, - COUNT( * ) ) WHEN - COUNT( * ) THEN - - 42 * + 92 * - + 56 + - COALESCE ( + + 39, ( + 64 ), + + 67 * ( + + 80 ) ) + - 78 WHEN + 23 THEN NULL WHEN MAX( ALL 21 ) * CASE 73 WHEN 15 THEN - 39 + 74 END THEN 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT 29 + - CASE - 7 WHEN + - 6 + + - 54 * - 99 + + 59 - - 83 THEN ( AVG ( ALL + + 5 ) ) * + - ( + COUNT ( * ) ) * + COUNT ( * ) + 61 + NULLIF ( 4, - COUNT ( * ) ) WHEN - COUNT ( * ) THEN - - 42 * + 92 * - + 56 + - COALESCE ( + + 39, ( + 64 ), + + 67 * ( + + 80 ) ) + - 78 WHEN + 23 THEN NULL WHEN MAX ( ALL 21 ) * CASE 73 WHEN 15 THEN - 39 + 74 END THEN 64 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 41 * - 43
----
1763

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT 35 + - + 51 + COUNT( * ) + - ( + 46 ) * + + 51 AS col1
----
-2361

skipif mysql # not compatible
query I rowsort label-7736
SELECT 35 + - + 51 + COUNT ( * ) + - ( + 46 ) * + + 51 AS col1
----
-2361

onlyif mysql # aggregate syntax: 
query II rowsort label-7737
SELECT 48 * + - 81 AS col2, + COUNT( * ) AS col2
----
-3888
1

skipif mysql # not compatible
query II rowsort label-7737
SELECT 48 * + - 81 AS col2, + COUNT ( * ) AS col2
----
-3888
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL 76 * - COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL 76 * - COUNT ( * ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT 64 + + COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7739
SELECT 64 + + COUNT ( * ) AS col0
----
65

query I rowsort
SELECT ALL 71 col2
----
71

query I rowsort
SELECT 21 col0
----
21

query I rowsort
SELECT 54 + 30 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT MAX( ALL 60 ) + + + COUNT( * ) + ( 23 )
----
84

skipif mysql # not compatible
query I rowsort label-7743
SELECT MAX ( ALL 60 ) + + + COUNT ( * ) + ( 23 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT 63 DIV 33 * 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7744
SELECT 63 / 33 * 50 AS col2
----
50

query I rowsort
SELECT ALL - 78 + 8 * 54 AS col2
----
354

query I rowsort
SELECT - 90 col0
----
-90

query I rowsort
SELECT ALL + 6 * + + 41 * - + 19 * + 60 * - - ( + + 28 ) AS col0
----
-7852320

query I rowsort
SELECT DISTINCT + 33 + - 33 AS col0
----
0

query I rowsort
SELECT 98 + - + NULLIF ( + 91, - 13 * 39 * + 81 ) AS col2
----
7

query I rowsort
SELECT ALL - 16 + 37 * 88
----
3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT 63 + - + ( MIN( DISTINCT - 71 ) ) DIV 44 + - - 63 DIV - 73 - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT 63 + - + ( MIN ( DISTINCT - 71 ) ) / 44 + - - 63 / - 73 - COUNT ( * )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7752
SELECT - 81 * - - NULLIF ( CAST( - + 27 AS SIGNED ), - COUNT( * ) ) + + - 24 + + + 96 AS col0, 6
----
2259
6

skipif mysql # not compatible
query II rowsort label-7752
SELECT - 81 * - - NULLIF ( CAST ( - + 27 AS INTEGER ), - COUNT ( * ) ) + + - 24 + + + 96 AS col0, 6
----
2259
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT - 36 DIV ( - - 79 ) + - 95 + + - 33
----
-128

skipif mysql # not compatible
query I rowsort label-7753
SELECT - 36 / ( - - 79 ) + - 95 + + - 33
----
-128

query I rowsort
SELECT DISTINCT - + 29
----
-29

query I rowsort
SELECT ALL 34 - 98
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7756
SELECT 26 * - 1 / 86 + + + CASE 63 WHEN CAST( - 51 AS DECIMAL ) THEN - 12 ELSE NULL END + + 90 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT 26 * - 1 / 86 + + + CASE 63 WHEN CAST ( - 51 AS REAL ) THEN - 12 ELSE NULL END + + 90 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 78 * 63 AS col1
----
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT 73 * 82 + 67 * + COUNT( * ) AS col0
----
6053

skipif mysql # not compatible
query I rowsort label-7758
SELECT 73 * 82 + 67 * + COUNT ( * ) AS col0
----
6053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7759
SELECT + + MAX( - 78 ), 37 + + - 71 * CAST( NULL AS SIGNED ) AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-7759
SELECT + + MAX ( - 78 ), 37 + + - 71 * CAST ( NULL AS INTEGER ) AS col2
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - COUNT( * ) * + COUNT( * ) * - 84 + 44 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-7760
SELECT - COUNT ( * ) * + COUNT ( * ) * - 84 + 44 AS col2
----
128

query I rowsort
SELECT DISTINCT - - 79 AS col2
----
79

query I rowsort
SELECT DISTINCT - + 18 col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT 41 * + COALESCE ( + 64, COUNT( * ) + + 12 + 58 ) + + + 88 * - COUNT( * ) AS col0
----
2536

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT 41 * + COALESCE ( + 64, COUNT ( * ) + + 12 + 58 ) + + + 88 * - COUNT ( * ) AS col0
----
2536

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT + NULLIF ( + 73, - 73 ) * COUNT( * ) * + 65 + - 30
----
4715

skipif mysql # not compatible
query I rowsort label-7764
SELECT + NULLIF ( + 73, - 73 ) * COUNT ( * ) * + 65 + - 30
----
4715

query I rowsort
SELECT ALL - ( + - 30 )
----
30

query I rowsort
SELECT ALL - - 63 AS col0
----
63

query II rowsort
SELECT - 56, - 36 AS col1
----
-56
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL 82 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL 82 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7769
SELECT - COUNT( * ) col0, + 72 + 39 AS col1
----
-1
111

skipif mysql # not compatible
query II rowsort label-7769
SELECT - COUNT ( * ) col0, + 72 + 39 AS col1
----
-1
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT DISTINCT 29 DIV + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT 29 / + + COUNT ( * )
----
29

onlyif mysql # DIV for integer division: 
query II rowsort label-7771
SELECT ( + 25 ) DIV + 32 AS col0, 95
----
0
95

skipif mysql # not compatible
query II rowsort label-7771
SELECT ( + 25 ) / + 32 AS col0, 95
----
0
95

query I rowsort
SELECT 54 * - 50 * - 55 AS col2
----
148500

query II rowsort
SELECT 87, - 70 + + 45 AS col1
----
87
-25

query II rowsort
SELECT 8 * - ( - 93 ) AS col0, 57
----
744
57

query I rowsort
SELECT ALL 80 + + 57 AS col2
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT ALL COUNT( * ) AS col2, - 18
----
1
-18

skipif mysql # not compatible
query II rowsort label-7776
SELECT ALL COUNT ( * ) AS col2, - 18
----
1
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT 98 DIV - 81 DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7777
SELECT 98 / - 81 / - COUNT ( * )
----
1

query I rowsort
SELECT ALL - NULLIF ( 90, + 12 ) + + 41 * + + 94 * - 86 + + - 25 col1
----
-331559

query I rowsort
SELECT + 38 + - 62 AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7780
SELECT 49 AS col1, + 10 DIV - - COUNT( * ) + 12, - - 95 AS col1
----
49
22
95

skipif mysql # not compatible
query III rowsort label-7780
SELECT 49 AS col1, + 10 / - - COUNT ( * ) + 12, - - 95 AS col1
----
49
22
95

query II rowsort
SELECT + COALESCE ( - - 77, - + 71 ) AS col2, 62 AS col2
----
77
62

query I rowsort
SELECT + 65 + - 28 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT - + 68 * - - 77 + - - COUNT( * ) * + - COUNT( * ) AS col0
----
-5237

skipif mysql # not compatible
query I rowsort label-7783
SELECT - + 68 * - - 77 + - - COUNT ( * ) * + - COUNT ( * ) AS col0
----
-5237

query II rowsort
SELECT - + 63 + + ( - 49 ) * + 61 AS col0, + 14
----
-3052
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7785
SELECT ALL - 29 DIV - COUNT( * ) + + + COUNT( * ) + - 5 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL - 29 / - COUNT ( * ) + + + COUNT ( * ) + - 5 AS col0
----
25

query I rowsort
SELECT - + 18 - + + 51 AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT ALL + + 88 * CAST( 97 AS SIGNED )
----
8536

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL + + 88 * CAST ( 97 AS INTEGER )
----
8536

query II rowsort
SELECT 29 AS col0, 7 AS col2
----
29
7

query I rowsort
SELECT DISTINCT + + 58 AS col2
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-7790
SELECT - - 13 DIV + 49 + 48 - - 47 + - 86 * + + 87 col2, + 68
----
-7387
68

skipif mysql # not compatible
query II rowsort label-7790
SELECT - - 13 / + 49 + 48 - - 47 + - 86 * + + 87 col2, + 68
----
-7387
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT - 37 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT - 37 / - 78
----
0

query I rowsort
SELECT - - 41 * - + 39
----
-1599

query I rowsort
SELECT DISTINCT + - 25
----
-25

query I rowsort
SELECT + + 3 - 34
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL + MIN( - - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + MIN ( - - 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - + 17 * + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7796
SELECT - + 17 * + COUNT ( * ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT + + CAST( NULL AS SIGNED ) * + 37 * - ( + 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT + + CAST ( NULL AS INTEGER ) * + 37 * - ( + 42 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT + + 45 * ( - 96 ) + + ( + + 57 ) * + + COUNT( * ) AS col2
----
-4263

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT + + 45 * ( - 96 ) + + ( + + 57 ) * + + COUNT ( * ) AS col2
----
-4263

query I rowsort
SELECT ALL ( - 53 ) * + 81 + 52 * + 28
----
-2837

query I rowsort
SELECT DISTINCT + 5 * - - 96 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT - COUNT( * ) + - 15 * - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7801
SELECT - COUNT ( * ) + - 15 * - COUNT ( * )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7802
SELECT + ( + - 1 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT + ( + - 1 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT ALL 40 + + 64 DIV 11
----
45

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL 40 + + 64 / 11
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT + MIN( - + 53 ) + 97 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7804
SELECT + MIN ( - + 53 ) + 97 AS col1
----
44

query I rowsort
SELECT ALL 80 + 16 AS col0
----
96

query I rowsort
SELECT + 68 * + 13 * 42 AS col2
----
37128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT DISTINCT MIN( ALL 68 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT MIN ( ALL 68 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7808
SELECT + COUNT( * ) * + + 17 AS col2, MIN( ALL + 20 ) AS col2
----
17
20

skipif mysql # not compatible
query II rowsort label-7808
SELECT + COUNT ( * ) * + + 17 AS col2, MIN ( ALL + 20 ) AS col2
----
17
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7809
SELECT + 44 + 47 AS col0, AVG ( ALL CAST( NULL AS SIGNED ) ) AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7809
SELECT + 44 + 47 AS col0, AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
91
NULL

query I rowsort
SELECT DISTINCT 50 AS col0
----
50

query I rowsort
SELECT ALL 26 - 62
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT - - 33 + + 91 + ( 52 ) + + - 12 + CAST( NULL AS SIGNED ) + COUNT( * ) * - + 11 / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT - - 33 + + 91 + ( 52 ) + + - 12 + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 11 / - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT - NULLIF ( + COUNT( * ), - CAST( - 17 AS SIGNED ) + - 90 ) * + 2 * - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7813
SELECT - NULLIF ( + COUNT ( * ), - CAST ( - 17 AS INTEGER ) + - 90 ) * + 2 * - + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT 11 * SUM( ALL - 24 ) * - 77 AS col2
----
20328

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT 11 * SUM ( ALL - 24 ) * - 77 AS col2
----
20328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT DISTINCT + - ( CAST( - 99 AS SIGNED ) ) col1
----
99

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT + - ( CAST ( - 99 AS INTEGER ) ) col1
----
99

query I rowsort
SELECT + 74 * + + 77 col1
----
5698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7817
SELECT + 90 / + + COUNT( * ) - - + 32 + - 79 * 79 + - + CASE COUNT( * ) WHEN 14 THEN + COUNT( * ) WHEN + 75 + + 49 * + - CAST( + 42 AS SIGNED ) * COUNT( * ) THEN NULL END + 57 + + CAST( 12 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT + 90 / + + COUNT ( * ) - - + 32 + - 79 * 79 + - + CASE COUNT ( * ) WHEN 14 THEN + COUNT ( * ) WHEN + 75 + + 49 * + - CAST ( + 42 AS INTEGER ) * COUNT ( * ) THEN NULL END + 57 + + CAST ( 12 AS INTEGER )
----
NULL

query I rowsort
SELECT 6 col0
----
6

query I rowsort
SELECT - 10 + - - 58 AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7820
SELECT DISTINCT + ( + - SUM( DISTINCT 62 ) ) DIV 5
----
-12

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + ( + - SUM ( DISTINCT 62 ) ) / 5
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT 55 * + 5 + + 85 + - 85 + - - NULLIF ( - 75, - COUNT( * ) + - - 80 - + 37 + - 74 / - + ( COUNT( * ) ) * - + 25 * 26 + - + 21 - - CASE - 31 WHEN - - 80 + + ( 42 ) THEN NULL WHEN - 66 THEN NULL WHEN + - 46 THEN 62 * 4 ELSE NULL END / - 57 * - 30 + + - 56 * + CASE MIN( ALL - 90 ) WHEN - + 33 THEN - - ( 16 ) * + 44 / - 10 + 28 * - COUNT( * ) ELSE ( - 97 ) END * 16 ) + + 68 * 95 AS col2
----
6660

skipif mysql # not compatible
query I rowsort label-7821
SELECT 55 * + 5 + + 85 + - 85 + - - NULLIF ( - 75, - COUNT ( * ) + - - 80 - + 37 + - 74 / - + ( COUNT ( * ) ) * - + 25 * 26 + - + 21 - - CASE - 31 WHEN - - 80 + + ( 42 ) THEN NULL WHEN - 66 THEN NULL WHEN + - 46 THEN 62 * 4 ELSE NULL END / - 57 * - 30 + + - 56 * + CASE MIN ( ALL - 90 ) WHEN - + 33 THEN - - ( 16 ) * + 44 / - 10 + 28 * - COUNT ( * ) ELSE ( - 97 ) END * 16 ) + + 68 * 95 AS col2
----
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT ALL + CASE + COUNT( * ) WHEN - COUNT( * ) + - COUNT( * ) THEN - - 3 WHEN + 49 * 5 + 39 THEN NULL ELSE NULL END * + MAX( + + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + CASE + COUNT ( * ) WHEN - COUNT ( * ) + - COUNT ( * ) THEN - - 3 WHEN + 49 * 5 + 39 THEN NULL ELSE NULL END * + MAX ( + + 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7823
SELECT ALL COUNT( + 68 ) * - - 57 * + CAST( - - 31 AS SIGNED ) + COUNT( * ) DIV + + MIN( - 12 ) * - 52
----
1767

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL COUNT ( + 68 ) * - - 57 * + CAST ( - - 31 AS INTEGER ) + COUNT ( * ) / + + MIN ( - 12 ) * - 52
----
1767

query I rowsort
SELECT ( - - 49 ) col2
----
49

query I rowsort
SELECT ALL 80 * 15 + - NULLIF ( 49, 15 * + + 91 )
----
1151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT - 29 DIV SUM( + - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 29 / SUM ( + - 18 )
----
1

query I rowsort
SELECT - 34 + + - 10 AS col1
----
-44

query I rowsort
SELECT ALL 23 * 90 + + 52
----
2122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7829
SELECT ALL + COALESCE ( - + 57, 8 + 54 DIV 34, + COALESCE ( SUM( + 83 ), NULLIF ( 83, + + COUNT( * ) ) + + 58, 13 ) * + - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + COALESCE ( - + 57, 8 + 54 / 34, + COALESCE ( SUM ( + 83 ), NULLIF ( 83, + + COUNT ( * ) ) + + 58, 13 ) * + - COUNT ( * ) )
----
-57

query I rowsort
SELECT + 17 * 84 * - + 41 + + 54 AS col2
----
-58494

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT NULLIF ( + 81, + 36 / + - COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-7831
SELECT NULLIF ( + 81, + 36 / + - COUNT ( * ) )
----
81

query I rowsort
SELECT ALL 60 * 42 * + + 54 + - 73
----
136007

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT - COUNT( ALL + 34 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7833
SELECT - COUNT ( ALL + 34 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT CAST( - ( + COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT CAST ( - ( + COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL + 57 * + + SUM( DISTINCT + 27 ) AS col2
----
1539

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL + 57 * + + SUM ( DISTINCT + 27 ) AS col2
----
1539

query II rowsort
SELECT 26 AS col0, 26 AS col0
----
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL 27 - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL 27 - + COUNT ( * )
----
26

query I rowsort
SELECT ALL ( + 89 ) * + + 89 - - 60
----
7981

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT - 99, COUNT( * ) AS col0
----
-99
1

skipif mysql # not compatible
query II rowsort label-7839
SELECT - 99, COUNT ( * ) AS col0
----
-99
1

query I rowsort
SELECT 4 - 31 AS col2
----
-27

query I rowsort
SELECT 29 * + 12 AS col1
----
348

query I rowsort
SELECT DISTINCT 44 AS col2
----
44

query I rowsort
SELECT DISTINCT - + 79 * + - 26
----
2054

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL + CASE 32 WHEN - 0 THEN + NULLIF ( ( + - COUNT( DISTINCT - + 52 ) ), - + 33 - 32 ) - - + 6 + - 51 WHEN - 40 THEN + - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL + CASE 32 WHEN - 0 THEN + NULLIF ( ( + - COUNT ( DISTINCT - + 52 ) ), - + 33 - 32 ) - - + 6 + - 51 WHEN - 40 THEN + - 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7845
SELECT ALL - 91 DIV - 25 - + + CAST( - + 95 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - 91 / - 25 - + + CAST ( - + 95 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT + 6 * - 39 * - COUNT( - 79 ) AS col1
----
234

skipif mysql # not compatible
query I rowsort label-7846
SELECT + 6 * - 39 * - COUNT ( - 79 ) AS col1
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + 50 + + - COUNT( * ) + - 73 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7847
SELECT + 50 + + - COUNT ( * ) + - 73 AS col2
----
-24

query I rowsort
SELECT 1 - - 10
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7849
SELECT + 63 + + - MAX( DISTINCT 64 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT + 63 + + - MAX ( DISTINCT 64 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - + 7 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT + - COUNT( ALL 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-7851
SELECT + - COUNT ( ALL 24 )
----
-1

query I rowsort
SELECT ALL 30 + 81 AS col2
----
111

query I rowsort
SELECT - 99 + + 40
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + COUNT( * ) * - 61 col2
----
-61

skipif mysql # not compatible
query I rowsort label-7854
SELECT + COUNT ( * ) * - 61 col2
----
-61

query I rowsort
SELECT + 70 * + - 45 * - 80 + + 92
----
252092

onlyif mysql # DIV for integer division: 
query II rowsort label-7856
SELECT DISTINCT 87 * + - 27 - + - 64, - 55 DIV - - 30 col2
----
-2285
-1

skipif mysql # not compatible
query II rowsort label-7856
SELECT DISTINCT 87 * + - 27 - + - 64, - 55 / - - 30 col2
----
-2285
-1

query I rowsort
SELECT ALL 91 + - + 62 AS col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7858
SELECT - MAX( CASE 99 WHEN - 76 THEN - - 20 * 74 WHEN + 62 + - 1 THEN NULL WHEN - 44 THEN NULL ELSE NULL END ) * + COUNT( * ), + NULLIF ( - 43, + COUNT( * ) - NULLIF ( - - 52, + 68 ) ) + + COUNT( * ) + + 13 * + - 38 AS col2
----
NULL
-536

skipif mysql # not compatible
query II rowsort label-7858
SELECT - MAX ( CASE 99 WHEN - 76 THEN - - 20 * 74 WHEN + 62 + - 1 THEN NULL WHEN - 44 THEN NULL ELSE NULL END ) * + COUNT ( * ), + NULLIF ( - 43, + COUNT ( * ) - NULLIF ( - - 52, + 68 ) ) + + COUNT ( * ) + + 13 * + - 38 AS col2
----
NULL
-536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7859
SELECT - 88 * 29 * + + CASE - 68 WHEN + 12 THEN NULL ELSE - + 61 DIV + 87 * - COUNT( * ) END + 81 + - 98 * + 5 AS col2
----
-409

skipif mysql # not compatible
query I rowsort label-7859
SELECT - 88 * 29 * + + CASE - 68 WHEN + 12 THEN NULL ELSE - + 61 / + 87 * - COUNT ( * ) END + 81 + - 98 * + 5 AS col2
----
-409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT 93 + COUNT( * ) + - COUNT( * ) DIV - 71 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7860
SELECT 93 + COUNT ( * ) + - COUNT ( * ) / - 71 AS col2
----
94

query II rowsort
SELECT ALL - 28 AS col2, - 81 * 72 AS col0
----
-28
-5832

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7862
SELECT + 64 AS col1, + 78 + - + 89 - + 22 * + - CAST( NULL AS SIGNED )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7862
SELECT + 64 AS col1, + 78 + - + 89 - + 22 * + - CAST ( NULL AS INTEGER )
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), + - 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), + - 51 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7864
SELECT + CASE + 67 WHEN + COUNT( * ) / - + 87 + - 43 THEN - ( - CAST( NULL AS SIGNED ) ) WHEN - + 25 THEN NULL END * - - 34 - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7864
SELECT + CASE + 67 WHEN + COUNT ( * ) / - + 87 + - 43 THEN - ( - CAST ( NULL AS INTEGER ) ) WHEN - + 25 THEN NULL END * - - 34 - + 9
----
NULL

query I rowsort
SELECT DISTINCT 5 - - 48 - - + 33 * - + 51
----
-1630

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT ALL 63 DIV + - 7 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL 63 / + - 7 AS col0
----
-9

query I rowsort
SELECT DISTINCT 98 * - 27 AS col2
----
-2646

onlyif mysql # aggregate syntax: 
query II rowsort label-7868
SELECT 73 * + COUNT( * ) AS col0, - SUM( DISTINCT ( 1 ) ) AS col1
----
73
-1

skipif mysql # not compatible
query II rowsort label-7868
SELECT 73 * + COUNT ( * ) AS col0, - SUM ( DISTINCT ( 1 ) ) AS col1
----
73
-1

query I rowsort
SELECT 8 * + ( 72 ) AS col2
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT MAX( ALL + - 49 ) + - 48 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-7870
SELECT MAX ( ALL + - 49 ) + - 48 AS col0
----
-97

query I rowsort
SELECT 14 - + 51 + 90 * + 48 * 98 AS col1
----
423323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7872
SELECT COUNT( * ) * ( + - CAST( NULL AS SIGNED ) ) * + + 77 / + 22 * MAX( DISTINCT - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT COUNT ( * ) * ( + - CAST ( NULL AS INTEGER ) ) * + + 77 / + 22 * MAX ( DISTINCT - 27 )
----
NULL

query I rowsort
SELECT 88 + - 64 - 8 AS col1
----
16

query II rowsort
SELECT ALL 40 col0, ( 77 )
----
40
77

query I rowsort
SELECT - 41 col0
----
-41

query I rowsort
SELECT 4 + + - 78
----
-74

query I rowsort
SELECT 7 * + 72
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL + MAX( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL + MAX ( - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ( - 45 ) + - 48 - + COUNT( * ) - + 77 - COUNT( * ) + + 54 * + COUNT( * ) * + 99 * + - 74
----
-395776

skipif mysql # not compatible
query I rowsort label-7879
SELECT ( - 45 ) + - 48 - + COUNT ( * ) - + 77 - COUNT ( * ) + + 54 * + COUNT ( * ) * + 99 * + - 74
----
-395776

onlyif mysql # aggregate syntax: 
query II rowsort label-7880
SELECT 17, + COUNT( * ) AS col0
----
17
1

skipif mysql # not compatible
query II rowsort label-7880
SELECT 17, + COUNT ( * ) AS col0
----
17
1

query I rowsort
SELECT + 81 + - 19 AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT COUNT( * ) AS col1, - 28 AS col0
----
1
-28

skipif mysql # not compatible
query II rowsort label-7882
SELECT COUNT ( * ) AS col1, - 28 AS col0
----
1
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-7883
SELECT ALL 23, 34 * + + 69 - 96 DIV + + 50 col0
----
23
2345

skipif mysql # not compatible
query II rowsort label-7883
SELECT ALL 23, 34 * + + 69 - 96 / + + 50 col0
----
23
2345

query II rowsort
SELECT - 35 AS col2, - 26 col2
----
-35
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - COUNT( * ) * - 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7885
SELECT - COUNT ( * ) * - 17 AS col2
----
17

query I rowsort
SELECT 15 + 35 AS col0
----
50

query II rowsort
SELECT 60 AS col2, 90 * - - 68
----
60
6120

query I rowsort
SELECT ALL COALESCE ( - 14, - - 78 ) AS col0
----
-14

query I rowsort
SELECT ALL + 35 + - ( 11 ) col1
----
24

query I rowsort
SELECT ALL - - 10 * + 60
----
600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7891
SELECT - NULLIF ( + + CASE - 74 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN - 51 + - + NULLIF ( + 87, - 68 ) + + 11 * + + 11 + + + MAX( - - COALESCE ( 64, 50, + 40 * - 20 ) ) THEN + COUNT( * ) ELSE + COUNT( ALL + + 7 ) END, 42 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7891
SELECT - NULLIF ( + + CASE - 74 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN - 51 + - + NULLIF ( + 87, - 68 ) + + 11 * + + 11 + + + MAX ( - - COALESCE ( 64, 50, + 40 * - 20 ) ) THEN + COUNT ( * ) ELSE + COUNT ( ALL + + 7 ) END, 42 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT DISTINCT + 85 DIV + ( + + ( - NULLIF ( - COUNT( * ), + SUM( DISTINCT - 77 ) ) ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT + 85 / + ( + + ( - NULLIF ( - COUNT ( * ), + SUM ( DISTINCT - 77 ) ) ) ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7893
SELECT CAST( + - COALESCE ( 44, 71, 70, - 82 * - 27 * + + 99 ) AS SIGNED ) DIV + 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7893
SELECT CAST ( + - COALESCE ( 44, 71, 70, - 82 * - 27 * + + 99 ) AS INTEGER ) / + 39 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT + 70 AS col0, COUNT( DISTINCT + 66 ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-7894
SELECT + 70 AS col0, COUNT ( DISTINCT + 66 ) AS col1
----
70
1

query II rowsort
SELECT ALL - - 3 AS col1, + 96 + - 93 AS col1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + MIN( DISTINCT ( - + 83 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7896
SELECT + MIN ( DISTINCT ( - + 83 ) ) AS col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT 57 DIV - + 59 * + + 20
----
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT 57 / - + 59 * + + 20
----
0

query I rowsort
SELECT 2 * - ( - 41 ) * + 48
----
3936

query II rowsort
SELECT DISTINCT - NULLIF ( + + 84, - 11 ) AS col0, 44
----
-84
44

query I rowsort
SELECT ALL - 9 col0
----
-9

query II rowsort
SELECT 79 + 32 AS col2, 3 - - + 92 + - 72 * - 79
----
111
5783

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT + COUNT( DISTINCT - 29 ) AS col1, - 41
----
1
-41

skipif mysql # not compatible
query II rowsort label-7902
SELECT + COUNT ( DISTINCT - 29 ) AS col1, - 41
----
1
-41

query I rowsort
SELECT ALL - 18 AS col1
----
-18

query I rowsort
SELECT 92 * + 52 * + 24
----
114816

query I rowsort
SELECT ALL 57 * - 7 AS col0
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + SUM( + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7906
SELECT + SUM ( + + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT + SUM( - + 35 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-7907
SELECT + SUM ( - + 35 ) col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7908
SELECT - 45 + COUNT( * ) AS col2, 33 col2
----
-44
33

skipif mysql # not compatible
query II rowsort label-7908
SELECT - 45 + COUNT ( * ) AS col2, 33 col2
----
-44
33

query I rowsort
SELECT - 21 + + 94 * - 69
----
-6507

onlyif mysql # aggregate syntax: 
query III rowsort label-7910
SELECT COUNT( DISTINCT + 44 ) AS col1, - SUM( DISTINCT 76 ) + + 91 col0, 63 AS col0
----
1
15
63

skipif mysql # not compatible
query III rowsort label-7910
SELECT COUNT ( DISTINCT + 44 ) AS col1, - SUM ( DISTINCT 76 ) + + 91 col0, 63 AS col0
----
1
15
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7911
SELECT ALL + CASE - ( - 96 ) WHEN 37 + + + ( - 40 ) * + COUNT( * ) / - SUM( DISTINCT - + 10 ) THEN NULL ELSE 24 END AS col0, 75 AS col0
----
24
75

skipif mysql # not compatible
query II rowsort label-7911
SELECT ALL + CASE - ( - 96 ) WHEN 37 + + + ( - 40 ) * + COUNT ( * ) / - SUM ( DISTINCT - + 10 ) THEN NULL ELSE 24 END AS col0, 75 AS col0
----
24
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT COUNT( + + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT COUNT ( + + 28 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT DISTINCT - CAST( 18 AS SIGNED ) * + + NULLIF ( + - COUNT( DISTINCT - 25 ), 68 * + 40 * + ( + COUNT( * ) ) ) * + 29 * ( - + COALESCE ( + COUNT( * ), - + 79 ) ) + + - ( + 98 ) * - - COUNT( * ) - + + 52 AS col0
----
-672

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - CAST ( 18 AS INTEGER ) * + + NULLIF ( + - COUNT ( DISTINCT - 25 ), 68 * + 40 * + ( + COUNT ( * ) ) ) * + 29 * ( - + COALESCE ( + COUNT ( * ), - + 79 ) ) + + - ( + 98 ) * - - COUNT ( * ) - + + 52 AS col0
----
-672

onlyif mysql # DIV for integer division: 
query II rowsort label-7914
SELECT DISTINCT 9 DIV 19 AS col0, 34 AS col0
----
0
34

skipif mysql # not compatible
query II rowsort label-7914
SELECT DISTINCT 9 / 19 AS col0, 34 AS col0
----
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - CASE WHEN - 7 IS NULL THEN 36 * - 40 * COUNT( * ) ELSE NULL END * + 69 * + 35 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT - CASE WHEN - 7 IS NULL THEN 36 * - 40 * COUNT ( * ) ELSE NULL END * + 69 * + 35 + - 66
----
NULL

query I rowsort
SELECT ALL 35 + - - 31 * - 90
----
-2755

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - 79 * 92 / CASE + + MAX( - - 17 ) WHEN 2 THEN + 14 WHEN 30 - + COUNT( * ) THEN NULL ELSE NULL END - - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 79 * 92 / CASE + + MAX ( - - 17 ) WHEN 2 THEN + 14 WHEN 30 - + COUNT ( * ) THEN NULL ELSE NULL END - - 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - COUNT( + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-7918
SELECT - COUNT ( + 87 )
----
-1

query I rowsort
SELECT ALL + + 87 + - 12 col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT + - 25 DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT + - 25 / + + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL - + MIN( + - 20 ) + ( + + 2 )
----
22

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - + MIN ( + - 20 ) + ( + + 2 )
----
22

query I rowsort
SELECT DISTINCT + - 45 + + 2 * ( - 8 ) * - + 7 + - 25 AS col2
----
42

query I rowsort
SELECT DISTINCT - 56 + 47 * + - 66 + 96 + 53
----
-3009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT - - 18 - 5 DIV 49 + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7924
SELECT - - 18 - 5 / 49 + - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT ALL - ( - - 71 ) * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL - ( - - 71 ) * + COUNT ( * )
----
-71

query II rowsort
SELECT - 61 + 72, - 67 * + ( - - 97 ) * + - 73 + + 11 AS col0
----
11
474438

query I rowsort
SELECT + CASE + - 40 WHEN - 36 THEN - 10 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 10
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7929
SELECT - COUNT( ALL - - 95 ) * + 10 - + 19 DIV COUNT( * ) DIV + MAX( + 39 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7929
SELECT - COUNT ( ALL - - 95 ) * + 10 - + 19 / COUNT ( * ) / + MAX ( + 39 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL + 60 * - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + 60 * - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT + SUM( DISTINCT + - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7931
SELECT + SUM ( DISTINCT + - 3 ) AS col1
----
-3

query I rowsort
SELECT - 58 + + + 54 - 96 - + + 45 AS col1
----
-145

query I rowsort
SELECT DISTINCT + NULLIF ( - 99, - 96 * + - 94 * + - 50 + - + 28 ) AS col0
----
-99

query I rowsort
SELECT + 4 * 43 + - - 50
----
222

query I rowsort
SELECT - 22 * 47 col1
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT + NULLIF ( 95, 5 / - ( - 60 ) - + COALESCE ( - COUNT( * ), - 42 * - COUNT( * ) * MIN( DISTINCT + - 33 ) * - ( + 36 ), + 59 ) + + + 73 + - 84 * - - 31 )
----
95

skipif mysql # not compatible
query I rowsort label-7936
SELECT + NULLIF ( 95, 5 / - ( - 60 ) - + COALESCE ( - COUNT ( * ), - 42 * - COUNT ( * ) * MIN ( DISTINCT + - 33 ) * - ( + 36 ), + 59 ) + + + 73 + - 84 * - - 31 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ( + - CASE - 39 WHEN - - 62 THEN NULL WHEN - 14 + + - AVG ( ALL - 15 ) THEN NULL WHEN SUM( + 29 ) + - + 91 THEN NULL ELSE + 18 END ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7937
SELECT ( + - CASE - 39 WHEN - - 62 THEN NULL WHEN - 14 + + - AVG ( ALL - 15 ) THEN NULL WHEN SUM ( + 29 ) + - + 91 THEN NULL ELSE + 18 END ) AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT + 4 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-7938
SELECT + 4 / 37
----
0

query I rowsort
SELECT - ( - - 92 ) * 84 * - 24 AS col2
----
185472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT + 22 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7940
SELECT + 22 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 80 + + + 38 * 59
----
2322

query I rowsort
SELECT ALL 4 * 95 AS col2
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT 89 * + COALESCE ( MAX( ALL ( - + 19 ) ), 35 ) - - 59 + - - 17 * - + ( 81 )
----
-3009

skipif mysql # not compatible
query I rowsort label-7943
SELECT 89 * + COALESCE ( MAX ( ALL ( - + 19 ) ), 35 ) - - 59 + - - 17 * - + ( 81 )
----
-3009

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT CASE - 47 WHEN + 36 / + 37 THEN 21 + COALESCE ( + + 14, COUNT( * ) ) * + AVG ( DISTINCT + 71 ) WHEN 74 THEN - ( - 12 ) * 67 + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT CASE - 47 WHEN + 36 / + 37 THEN 21 + COALESCE ( + + 14, COUNT ( * ) ) * + AVG ( DISTINCT + 71 ) WHEN 74 THEN - ( - 12 ) * 67 + + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT CASE - 7 WHEN 34 THEN + 95 / - 54 ELSE - 7 * - 33 END AS col2
----
231

query II rowsort
SELECT + ( ( 78 ) ), - ( - - 89 ) AS col1
----
78
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT + COUNT( DISTINCT + 91 ) - - 83 * COUNT( * ) DIV 42 + 16 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7947
SELECT + COUNT ( DISTINCT + 91 ) - - 83 * COUNT ( * ) / 42 + 16 AS col1
----
18

query I rowsort
SELECT DISTINCT + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT - 18 * + - ( - COUNT( * ) ) + - 63 - 78 - - 15
----
-144

skipif mysql # not compatible
query I rowsort label-7949
SELECT - 18 * + - ( - COUNT ( * ) ) + - 63 - 78 - - 15
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT + COUNT( * ), NULLIF ( + - 98, - - 40 - 28 * + 17 ) - 47 + - + ( + 12 ) * + 45 AS col1
----
1
-685

skipif mysql # not compatible
query II rowsort label-7950
SELECT + COUNT ( * ), NULLIF ( + - 98, - - 40 - 28 * + 17 ) - 47 + - + ( + 12 ) * + 45 AS col1
----
1
-685

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL - MIN( ALL + ( + 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - MIN ( ALL + ( + 91 ) )
----
-91

query I rowsort
SELECT + + 54 + - - 47 col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + COUNT( * ) + 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7953
SELECT + COUNT ( * ) + 3 AS col0
----
4

query I rowsort
SELECT DISTINCT + 40 + + - 91 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL + COUNT( * ) * + - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL + COUNT ( * ) * + - 43 AS col2
----
-43

query I rowsort
SELECT ALL 35 + - + 94
----
-59

query I rowsort
SELECT - + 96 * 36 AS col1
----
-3456

query I rowsort
SELECT - 79 + 45
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT + + 52 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT + + 52 / + 83 AS col1
----
0

query I rowsort
SELECT - + 47 + - 21
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT - - 72 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT - - 72 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 97 + + 34
----
-63

query II rowsort
SELECT - + 81 col0, - 82 AS col2
----
-81
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-7964
SELECT ALL - 24, + 59 + + 75 * 8 DIV 13 col1
----
-24
105

skipif mysql # not compatible
query II rowsort label-7964
SELECT ALL - 24, + 59 + + 75 * 8 / 13 col1
----
-24
105

query II rowsort
SELECT DISTINCT 49 AS col0, 54
----
49
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL CAST( - 49 AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL CAST ( - 49 AS INTEGER ) AS col0
----
-49

query I rowsort
SELECT DISTINCT - 69 col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7968
SELECT 8 * - 8 * + SUM( DISTINCT 37 ) * 77 DIV - COUNT( * ) + 15 - - + CAST( - - 96 AS SIGNED ) - - - 56 * + 10 AS col0
----
181887

skipif mysql # not compatible
query I rowsort label-7968
SELECT 8 * - 8 * + SUM ( DISTINCT 37 ) * 77 / - COUNT ( * ) + 15 - - + CAST ( - - 96 AS INTEGER ) - - - 56 * + 10 AS col0
----
181887

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT + COUNT( * ) * - 79 + 29 col2
----
-50

skipif mysql # not compatible
query I rowsort label-7969
SELECT + COUNT ( * ) * - 79 + 29 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT 98 * + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7970
SELECT 98 * + + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT COUNT( * ) * - 69 * + 40
----
-2760

skipif mysql # not compatible
query I rowsort label-7971
SELECT COUNT ( * ) * - 69 * + 40
----
-2760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT DISTINCT - CAST( + COUNT( - 81 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT - CAST ( + COUNT ( - 81 ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + 12 + NULLIF ( NULLIF ( - 4, + + 34 * + 90 ), + + 33 ) + - + 94 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL + SUM( DISTINCT 5 ) + - 15 + - - COALESCE ( + 49, 46 )
----
39

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + SUM ( DISTINCT 5 ) + - 15 + - - COALESCE ( + 49, 46 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL - MAX( 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL - MAX ( 71 ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT DISTINCT - CAST( + 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT - CAST ( + 36 AS INTEGER ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT DISTINCT - SUM( + + 65 ) AS col2, 79 AS col0
----
-65
79

skipif mysql # not compatible
query II rowsort label-7977
SELECT DISTINCT - SUM ( + + 65 ) AS col2, 79 AS col0
----
-65
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT 13 DIV + ( + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-7978
SELECT 13 / + ( + 23 )
----
0

query I rowsort
SELECT DISTINCT - 30 + - 18 * - + 92 AS col0
----
1626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT + 3 * + - 45 + CASE 80 WHEN - NULLIF ( 28, 34 / 34 + + - COUNT( * ) ) THEN - - CAST( + 47 AS SIGNED ) WHEN + - 77 / + - ( - NULLIF ( + - 41, 17 ) ) * - 90 + - 72 + + - 63 + - 13 + COUNT( * ) * + 15 THEN + - 97 + + 75 WHEN - 35 THEN - 5 + 62 + - + 41 * - + 68 ELSE NULL END + - 81 * 54 * 49 / 48 * + 19 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 3 * + - 45 + CASE 80 WHEN - NULLIF ( 28, 34 / 34 + + - COUNT ( * ) ) THEN - - CAST ( + 47 AS INTEGER ) WHEN + - 77 / + - ( - NULLIF ( + - 41, 17 ) ) * - 90 + - 72 + + - 63 + - 13 + COUNT ( * ) * + 15 THEN + - 97 + + 75 WHEN - 35 THEN - 5 + 62 + - + 41 * - + 68 ELSE NULL END + - 81 * 54 * 49 / 48 * + 19 + 44
----
NULL

query I rowsort
SELECT DISTINCT - 42 col2
----
-42

query I rowsort
SELECT DISTINCT - 70 + - 86
----
-156

query I rowsort
SELECT ALL + - 91 + - 80
----
-171

query I rowsort
SELECT DISTINCT 85 + 50 * 61 - 47 AS col0
----
3088

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT 24 * - + 69 * 91 + + COUNT( * ) AS col1
----
-150695

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT 24 * - + 69 * 91 + + COUNT ( * ) AS col1
----
-150695

query I rowsort
SELECT ALL ( + + 20 ) * - - 30 AS col2
----
600

query I rowsort
SELECT + 16 - + 98 AS col0
----
-82

query I rowsort
SELECT - 38 col0
----
-38

query I rowsort
SELECT - 60 AS col2
----
-60

query I rowsort
SELECT - 39 * - 36 * + 42 AS col0
----
58968

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + 8 * + - MAX( - - 73 ) col1
----
-584

skipif mysql # not compatible
query I rowsort label-7991
SELECT + 8 * + - MAX ( - - 73 ) col1
----
-584

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT COUNT( * ) - 33
----
-32

skipif mysql # not compatible
query I rowsort label-7992
SELECT COUNT ( * ) - 33
----
-32

query I rowsort
SELECT + 66 - - 1 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + 75 * - ( + - 31 ) * + COUNT( * ) + 81
----
2406

skipif mysql # not compatible
query I rowsort label-7994
SELECT + 75 * - ( + - 31 ) * + COUNT ( * ) + 81
----
2406

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT 0 * COUNT ( * )
----
0

query I rowsort
SELECT 2 * + 14 AS col1
----
28

query I rowsort
SELECT ALL 34 * - - 84 * + + 31
----
88536

query I rowsort
SELECT 79 * 43 AS col2
----
3397

onlyif mysql # aggregate syntax: 
query II rowsort label-7999
SELECT CASE - ( 49 ) WHEN - - 53 THEN ( + COUNT( * ) ) WHEN - 6 THEN NULL ELSE NULL END + - 38 * - COUNT( * ) - - 62, 34 AS col0
----
NULL
34

skipif mysql # not compatible
query II rowsort label-7999
SELECT CASE - ( 49 ) WHEN - - 53 THEN ( + COUNT ( * ) ) WHEN - 6 THEN NULL ELSE NULL END + - 38 * - COUNT ( * ) - - 62, 34 AS col0
----
NULL
34

query I rowsort
SELECT 92 + - 39 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT 27 - - CAST( + + COALESCE ( + 5, + 36 * + ( + 18 ) + + 84 + - COUNT( * ) * + - 51 + 3 + + 12 / + 13 - - 8 ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-8001
SELECT 27 - - CAST ( + + COALESCE ( + 5, + 36 * + ( + 18 ) + + 84 + - COUNT ( * ) * + - 51 + 3 + + 12 / + 13 - - 8 ) AS INTEGER )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8002
SELECT + 16 AS col1, CAST( NULL AS SIGNED ) AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-8002
SELECT + 16 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
16
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT 34 DIV + 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-8003
SELECT 34 / + 51 col1
----
0

query I rowsort
SELECT ALL 57 + + + 46
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT SUM( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-8005
SELECT SUM ( - 62 )
----
-62

query II rowsort
SELECT ALL + ( - 56 ) + 54 col0, 32 - - 33 AS col0
----
-2
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT DISTINCT + 80 + - COUNT( + - 94 ) - 0 + COUNT( * ) * + 58 + + + COUNT( - + 17 ) - - ( 10 ) + 13, COUNT( * ) + - 40 AS col2
----
161
-39

skipif mysql # not compatible
query II rowsort label-8007
SELECT DISTINCT + 80 + - COUNT ( + - 94 ) - 0 + COUNT ( * ) * + 58 + + + COUNT ( - + 17 ) - - ( 10 ) + 13, COUNT ( * ) + - 40 AS col2
----
161
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8008
SELECT - 58 * COUNT( * ) / + + CAST( NULL AS DECIMAL ) + - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 58 * COUNT ( * ) / + + CAST ( NULL AS REAL ) + - - 28
----
NULL

query II rowsort
SELECT DISTINCT - 65 AS col1, + 34
----
-65
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT - COUNT( * ) DIV + 48 + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8010
SELECT - COUNT ( * ) / + 48 + + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT MAX( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8011
SELECT MAX ( - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( * ) + 74
----
75

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( * ) + 74
----
75

query I rowsort
SELECT ALL + 63 + + ( 77 ) + - 64 * + 62 * 36 AS col1
----
-142708

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL - SUM( + + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - SUM ( + + 93 ) AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8015
SELECT DISTINCT - + NULLIF ( + 86, + + 18 DIV - + 43 * - 73 + NULLIF ( + + 12, SUM( ALL - 27 ) * + - 61 + + - 58 ) ) + - + 69 DIV - 54, - COUNT( * ) AS col1
----
-85
-1

skipif mysql # not compatible
query II rowsort label-8015
SELECT DISTINCT - + NULLIF ( + 86, + + 18 / - + 43 * - 73 + NULLIF ( + + 12, SUM ( ALL - 27 ) * + - 61 + + - 58 ) ) + - + 69 / - 54, - COUNT ( * ) AS col1
----
-85
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8016
SELECT COUNT( * ) * 61 * ( + 86 ) + + ( - - 74 ) + - 82 + - - 31 / + MIN( ALL + ( - + ( 22 ) ) ) * - 67 + - - COUNT( * ) / - COUNT( * ) + + - 33 + 2 * - CAST( NULL AS SIGNED ) * + 30 + 14 - 53 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT COUNT ( * ) * 61 * ( + 86 ) + + ( - - 74 ) + - 82 + - - 31 / + MIN ( ALL + ( - + ( 22 ) ) ) * - 67 + - - COUNT ( * ) / - COUNT ( * ) + + - 33 + 2 * - CAST ( NULL AS INTEGER ) * + 30 + 14 - 53 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 42 ) col2
----
42

query I rowsort
SELECT ALL - 28 col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL 73 - - 2 * 74 - MAX( DISTINCT - + 88 ) AS col0
----
309

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL 73 - - 2 * 74 - MAX ( DISTINCT - + 88 ) AS col0
----
309

query I rowsort
SELECT + ( - 81 )
----
-81

query I rowsort
SELECT 95 + + 66
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT + 71 * CASE + ( + 16 ) WHEN + 16 + 69 THEN - SUM( - CAST( 19 AS SIGNED ) ) ELSE NULL END - + COALESCE ( + 42, - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT + 71 * CASE + ( + 16 ) WHEN + 16 + 69 THEN - SUM ( - CAST ( 19 AS INTEGER ) ) ELSE NULL END - + COALESCE ( + 42, - 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - 14 + 0 + + + COUNT( * ) * COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8023
SELECT - 14 + 0 + + + COUNT ( * ) * COUNT ( * ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT 85 + - - COUNT( * ) col2
----
86

skipif mysql # not compatible
query I rowsort label-8024
SELECT 85 + - - COUNT ( * ) col2
----
86

query I rowsort
SELECT ALL - - 75 * - + 53 col2
----
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - - MAX( ALL + + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-8026
SELECT - - MAX ( ALL + + 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL + COALESCE ( - - COUNT( * ), - - 60, + 39 * - 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL + COALESCE ( - - COUNT ( * ), - - 60, + 39 * - 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8028
SELECT DISTINCT - 97 DIV 20 * SUM( ALL + 8 ) * + - 23 + + COUNT( * ) - - + 91 * - 36
----
-2539

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - 97 / 20 * SUM ( ALL + 8 ) * + - 23 + + COUNT ( * ) - - + 91 * - 36
----
-2539

query I rowsort
SELECT DISTINCT - 33 * + 72
----
-2376

onlyif mysql # aggregate syntax: 
query II rowsort label-8030
SELECT DISTINCT 61 AS col1, COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-8030
SELECT DISTINCT 61 AS col1, COUNT ( * )
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT MAX( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT MAX ( - 83 )
----
-83

query I rowsort
SELECT + - 95 + - 29
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT COALESCE ( + 19, + 27 * COUNT( * ) + 59 * - + 41 )
----
19

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT COALESCE ( + 19, + 27 * COUNT ( * ) + 59 * - + 41 )
----
19

query I rowsort
SELECT ALL 94 + 14
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT + 5 + - COALESCE ( 13, - COUNT( * ) ) AS col0, 75
----
-8
75

skipif mysql # not compatible
query II rowsort label-8035
SELECT + 5 + - COALESCE ( 13, - COUNT ( * ) ) AS col0, 75
----
-8
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT ALL - 11 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL - 11 + COUNT ( * )
----
-10

query I rowsort
SELECT DISTINCT + 57 + 93
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL NULLIF ( - 94, 35 * + - 71 * + 51 + - 99 ) + CASE + 36 WHEN + - 15 THEN + 16 WHEN - ( 34 ) * + NULLIF ( + - ( CAST( - 32 AS SIGNED ) ), + 71 * 53 ) + - 7 + + 89 * MAX( DISTINCT - 8 ) * + CAST( NULL AS SIGNED ) + + 12 THEN + 71 WHEN - 32 * + 27 THEN NULL ELSE - 88 * 70 * - + 18 END AS col1
----
110786

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL NULLIF ( - 94, 35 * + - 71 * + 51 + - 99 ) + CASE + 36 WHEN + - 15 THEN + 16 WHEN - ( 34 ) * + NULLIF ( + - ( CAST ( - 32 AS INTEGER ) ), + 71 * 53 ) + - 7 + + 89 * MAX ( DISTINCT - 8 ) * + CAST ( NULL AS INTEGER ) + + 12 THEN + 71 WHEN - 32 * + 27 THEN NULL ELSE - 88 * 70 * - + 18 END AS col1
----
110786

query I rowsort
SELECT + 22 * 88
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL - COUNT( * ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL - COUNT ( * ) * 46
----
-46

query II rowsort
SELECT 30 * 51 * + + 80 + + 37, - 58 - - 54 AS col2
----
122437
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8042
SELECT - 16 DIV COUNT( * ) - 16
----
-32

skipif mysql # not compatible
query I rowsort label-8042
SELECT - 16 / COUNT ( * ) - 16
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT - COUNT( * ) + - 4
----
-5

skipif mysql # not compatible
query I rowsort label-8043
SELECT - COUNT ( * ) + - 4
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8044
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - ( - 56 ) + - 51 col0, - 21 AS col2
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-8044
SELECT DISTINCT - CAST ( NULL AS REAL ) * - ( - 56 ) + - 51 col0, - 21 AS col2
----
NULL
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT 67 * - - 56 + - - COUNT( * ) AS col1
----
3753

skipif mysql # not compatible
query I rowsort label-8045
SELECT 67 * - - 56 + - - COUNT ( * ) AS col1
----
3753

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL + CASE WHEN NOT - COUNT( * ) IS NOT NULL THEN NULL ELSE - - 96 END AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + CASE WHEN NOT - COUNT ( * ) IS NOT NULL THEN NULL ELSE - - 96 END AS col1
----
96

query I rowsort
SELECT ALL ( + 66 ) * - 7
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8048
SELECT ALL - + COUNT( * ) DIV COUNT( * ) AS col0, 79
----
-1
79

skipif mysql # not compatible
query II rowsort label-8048
SELECT ALL - + COUNT ( * ) / COUNT ( * ) AS col0, 79
----
-1
79

query I rowsort
SELECT DISTINCT + 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + 43 * - 45 * + CASE 27 WHEN + - 1 - 11 * - 92 THEN + - COALESCE ( ( - - ( SUM( DISTINCT + 43 ) ) ), + 63 ) END - + ( + 66 ) + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + 43 * - 45 * + CASE 27 WHEN + - 1 - 11 * - 92 THEN + - COALESCE ( ( - - ( SUM ( DISTINCT + 43 ) ) ), + 63 ) END - + ( + 66 ) + + 47 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT ALL + - CASE + - 90 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + + 42 THEN + - 86 ELSE CASE - CAST( NULL AS SIGNED ) WHEN + + 76 THEN + - NULLIF ( + COUNT( * ), + 99 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL + - CASE + - 90 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 42 THEN + - 86 ELSE CASE - CAST ( NULL AS INTEGER ) WHEN + + 76 THEN + - NULLIF ( + COUNT ( * ), + 99 ) END END
----
NULL

query I rowsort
SELECT - + 9 + + 17
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - 45 * + COALESCE ( - 18, - MAX( - 35 ) )
----
810

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 45 * + COALESCE ( - 18, - MAX ( - 35 ) )
----
810

query II rowsort
SELECT + 38 AS col1, + 72 AS col0
----
38
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT - - 34 + + + 10 AS col0, - COUNT( * ) col0
----
44
-1

skipif mysql # not compatible
query II rowsort label-8055
SELECT - - 34 + + + 10 AS col0, - COUNT ( * ) col0
----
44
-1

query I rowsort
SELECT ALL - 14 * - 81 - 37
----
1097

query I rowsort
SELECT ALL - 96 * + 89
----
-8544

query I rowsort
SELECT - - 90 * - - 34 AS col0
----
3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT ALL + CAST( AVG ( DISTINCT - 45 ) AS SIGNED ) * - 3
----
135

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL + CAST ( AVG ( DISTINCT - 45 ) AS INTEGER ) * - 3
----
135

query I rowsort
SELECT ALL 90 * - 74 + + - 54 AS col0
----
-6714

query II rowsort
SELECT ALL + 89 AS col2, - 33 * - 24 * + + 67 AS col0
----
89
53064

query I rowsort
SELECT ALL - + 81 * - 27 * 71 - + NULLIF ( + 38, - - 95 )
----
155239

query I rowsort
SELECT - - 9 AS col1
----
9

query I rowsort
SELECT ALL + 44 + - 58 * + 38 * - 58 AS col0
----
127876

query I rowsort
SELECT - 1 - - 7 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT - + 63 + + ( 20 ) DIV + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8066
SELECT - + 63 + + ( 20 ) / + COUNT ( * ) AS col2
----
-43

query I rowsort
SELECT - - 58 * - 14 AS col0
----
-812

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT ALL - 70 DIV - - 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - 70 / - - 40 AS col1
----
-1

query I rowsort
SELECT - NULLIF ( + + ( + 20 ), + 66 ) AS col1
----
-20

query I rowsort
SELECT - 3 col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT DISTINCT - 98 + + COUNT( * ) + + 62, 93 * - + ( + 34 ) AS col0
----
-35
-3162

skipif mysql # not compatible
query II rowsort label-8071
SELECT DISTINCT - 98 + + COUNT ( * ) + + 62, 93 * - + ( + 34 ) AS col0
----
-35
-3162

query I rowsort
SELECT - 46 - - ( + + 94 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL - 7 + - - COUNT( + 39 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - 7 + - - COUNT ( + 39 ) AS col1
----
-6

query I rowsort
SELECT DISTINCT ( 6 ) AS col0
----
6

query I rowsort
SELECT ALL - 80 + + + 82
----
2

query I rowsort
SELECT - 10 + + 4
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - NULLIF ( - 31, - - COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-8077
SELECT - NULLIF ( - 31, - - COUNT ( * ) )
----
31

query I rowsort
SELECT - 86 + COALESCE ( + 68, + 80, 22 + 56 ) * - 34 AS col2
----
-2398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8079
SELECT + MIN( DISTINCT + - ( - 84 ) ) - 13 * - COUNT( DISTINCT - 24 ) * - COALESCE ( + 16, NULLIF ( - + MIN( - 28 ), - 4 ) ) - + - 6 DIV + + 48 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-8079
SELECT + MIN ( DISTINCT + - ( - 84 ) ) - 13 * - COUNT ( DISTINCT - 24 ) * - COALESCE ( + 16, NULLIF ( - + MIN ( - 28 ), - 4 ) ) - + - 6 / + + 48 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - MAX( + + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8080
SELECT - MAX ( + + 1 ) AS col0
----
-1

query I rowsort
SELECT + 68 - 51 * - 42
----
2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8082
SELECT DISTINCT + CAST( ( - - ( + COUNT( * ) ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT + CAST ( ( - - ( + COUNT ( * ) ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT 81 * - 22 * 60 + + 75 - - COALESCE ( + - COUNT( * ), 95, 78 + - + COUNT( * ) )
----
-106846

skipif mysql # not compatible
query I rowsort label-8083
SELECT 81 * - 22 * 60 + + 75 - - COALESCE ( + - COUNT ( * ), 95, 78 + - + COUNT ( * ) )
----
-106846

query I rowsort
SELECT DISTINCT + 90 col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT ALL + ( - - COUNT( * ) ) DIV + COUNT( * ) + + + ( - - NULLIF ( + 43, + COUNT( * ) DIV + ( - 67 ) ) ) * + + ( 10 ) * - 65 * + 80 + - COUNT( * ) - - + 19
----
-2235981

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + ( - - COUNT ( * ) ) / + COUNT ( * ) + + + ( - - NULLIF ( + 43, + COUNT ( * ) / + ( - 67 ) ) ) * + + ( 10 ) * - 65 * + 80 + - COUNT ( * ) - - + 19
----
-2235981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT COALESCE ( - 53, - 10 * - - 87 ) / + 28 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT COALESCE ( - 53, - 10 * - - 87 ) / + 28 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT + + 80 DIV 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8087
SELECT + + 80 / 69 AS col0
----
1

query I rowsort
SELECT + + 69 + 28 + - 44
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT 8 * + 74 + - - COUNT( * ) - - + 58 AS col2
----
651

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT 8 * + 74 + - - COUNT ( * ) - - + 58 AS col2
----
651

query I rowsort
SELECT ALL - 0 * + ( - 94 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8091
SELECT + - COUNT( ALL - 5 ) col1, 52 * 58 AS col0
----
-1
3016

skipif mysql # not compatible
query II rowsort label-8091
SELECT + - COUNT ( ALL - 5 ) col1, 52 * 58 AS col0
----
-1
3016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8092
SELECT + CAST( 72 AS SIGNED ) AS col2, 66 AS col1
----
72
66

skipif mysql # not compatible
query II rowsort label-8092
SELECT + CAST ( 72 AS INTEGER ) AS col2, 66 AS col1
----
72
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT DISTINCT - ( + - 19 ) * + MIN( - 19 ) + - - CASE + COUNT( * ) WHEN - - 37 + + + CASE + 5 WHEN 59 THEN NULL WHEN + - 22 THEN + + COALESCE ( - 0, + COUNT( * ), - COUNT( * ) * + + ( 84 ) + 40 * + + 63 ) * - - 54 END THEN - CAST( NULL AS SIGNED ) WHEN 50 * 94 - - - 10 / - 80 THEN NULL ELSE 58 * + + 43 + + SUM( - + 72 ) END
----
2061

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT - ( + - 19 ) * + MIN ( - 19 ) + - - CASE + COUNT ( * ) WHEN - - 37 + + + CASE + 5 WHEN 59 THEN NULL WHEN + - 22 THEN + + COALESCE ( - 0, + COUNT ( * ), - COUNT ( * ) * + + ( 84 ) + 40 * + + 63 ) * - - 54 END THEN - CAST ( NULL AS INTEGER ) WHEN 50 * 94 - - - 10 / - 80 THEN NULL ELSE 58 * + + 43 + + SUM ( - + 72 ) END
----
2061

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT COUNT( ALL - 4 ) * + NULLIF ( 68, 18 )
----
68

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT COUNT ( ALL - 4 ) * + NULLIF ( 68, 18 )
----
68

query I rowsort
SELECT - 19 + + 7 AS col2
----
-12

query I rowsort
SELECT ALL - - 93 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL - 48 + + ( - COUNT( DISTINCT 76 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 48 + + ( - COUNT ( DISTINCT 76 ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT - MIN( DISTINCT + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8099
SELECT - MIN ( DISTINCT + 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT MIN( ALL 95 ) * + - 84
----
-7980

skipif mysql # not compatible
query I rowsort label-8100
SELECT MIN ( ALL 95 ) * + - 84
----
-7980

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL + 73 + + + COUNT( + - 79 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL + 73 + + + COUNT ( + - 79 ) AS col0
----
74

query I rowsort
SELECT + + 40 AS col1
----
40

query I rowsort
SELECT - + 87 * - 42 * + - 34 - - 4 + - + 32 AS col2
----
-124264

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL + - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + - COUNT ( * ) + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8105
SELECT - 98, MIN( DISTINCT + 92 ) col2
----
-98
92

skipif mysql # not compatible
query II rowsort label-8105
SELECT - 98, MIN ( DISTINCT + 92 ) col2
----
-98
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT 8 + - + COUNT( * ) * - 50 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8106
SELECT 8 + - + COUNT ( * ) * - 50 AS col2
----
58

query I rowsort
SELECT ALL 34 * - + 11
----
-374

query II rowsort
SELECT ALL 58 AS col1, 44
----
58
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8109
SELECT ALL - 12 + - + CAST( NULL AS DECIMAL ) * + ( 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - 12 + - + CAST ( NULL AS REAL ) * + ( 23 ) AS col1
----
NULL

query I rowsort
SELECT ( - 5 ) * + 4
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT 43 * + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8111
SELECT 43 * + COUNT ( * ) AS col1
----
43

query II rowsort
SELECT ALL 69 AS col2, 82 * + 56
----
69
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT 14 + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8113
SELECT 14 + COUNT ( * ) AS col1
----
15

query I rowsort
SELECT 52 + - - 49 + + 17 AS col0
----
118

query I rowsort
SELECT ALL 23 col0
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8116
SELECT DISTINCT + COALESCE ( - - 97, - - CAST( NULL AS SIGNED ) * 43 ) DIV + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT + COALESCE ( - - 97, - - CAST ( NULL AS INTEGER ) * 43 ) / + 54 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT SUM( + 14 ) + + ( - - 27 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8117
SELECT SUM ( + 14 ) + + ( - - 27 ) AS col2
----
41

query II rowsort
SELECT 33 * + 62 * - 72, 6 AS col2
----
-147312
6

query I rowsort
SELECT ALL + 4 * 52
----
208

query I rowsort
SELECT DISTINCT + 31 - - + 55 AS col1
----
86

query II rowsort
SELECT ALL 89, + 26 * 47 AS col0
----
89
1222

query I rowsort
SELECT 32 * ( + 94 ) AS col2
----
3008

query II rowsort
SELECT ALL - + 75, - 22 AS col2
----
-75
-22

query I rowsort
SELECT + + ( - + 25 )
----
-25

query I rowsort
SELECT - 67 * 79
----
-5293

query I rowsort
SELECT + - 56 * 50 * 36 + - 57
----
-100857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8127
SELECT COALESCE ( + 48, - - ( ( - MIN( + + 69 ) ) ) - 71, + + 16 * 4 + 36 + + 31 * - + ( + 82 ) + 34 + + CAST( NULL AS SIGNED ) ) + - 91 + 82
----
39

skipif mysql # not compatible
query I rowsort label-8127
SELECT COALESCE ( + 48, - - ( ( - MIN ( + + 69 ) ) ) - 71, + + 16 * 4 + 36 + + 31 * - + ( + 82 ) + 34 + + CAST ( NULL AS INTEGER ) ) + - 91 + 82
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT DISTINCT - + ( - MAX( - + 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT - + ( - MAX ( - + 56 ) )
----
-56

query I rowsort
SELECT ALL - 83 col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT DISTINCT - ( CASE - + 30 WHEN - COALESCE ( + + COUNT( * ), + COUNT( * ), + MIN( + - 16 ) * + COUNT( * ) + - + 67 ) + ( - 16 ) + + - 80 THEN - - COUNT( * ) END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT - ( CASE - + 30 WHEN - COALESCE ( + + COUNT ( * ), + COUNT ( * ), + MIN ( + - 16 ) * + COUNT ( * ) + - + 67 ) + ( - 16 ) + + - 80 THEN - - COUNT ( * ) END ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 46 * - - 57 * + - 54 col0
----
-141588

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT ALL - MIN( DISTINCT - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL - MIN ( DISTINCT - 90 )
----
90

query I rowsort
SELECT DISTINCT - ( - 55 ) + + 57 - + 42 * - NULLIF ( - 46, - 84 - - 19 * 24 ) * + 26
----
-50120

query I rowsort
SELECT 49 * + 87 - 8 * - 66
----
4791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT 93 + + - 18 + MAX( 65 ) * 61 + CAST( - - 38 AS SIGNED ) AS col2
----
4078

skipif mysql # not compatible
query I rowsort label-8135
SELECT 93 + + - 18 + MAX ( 65 ) * 61 + CAST ( - - 38 AS INTEGER ) AS col2
----
4078

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8136
SELECT + 8 AS col2, + ( + 38 ) * - 81 + 69 + + CAST( NULL AS SIGNED ) - + 38
----
8
NULL

skipif mysql # not compatible
query II rowsort label-8136
SELECT + 8 AS col2, + ( + 38 ) * - 81 + 69 + + CAST ( NULL AS INTEGER ) - + 38
----
8
NULL

query I rowsort
SELECT 39 + - NULLIF ( + 20, - + 84 ) - - 21 col1
----
40

query I rowsort
SELECT ALL - 52 * 58 + - 68 + + + 67
----
-3017

query II rowsort
SELECT + 58, + 43 AS col0
----
58
43

query I rowsort
SELECT ALL 49 + + + 97 + - + 57 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT MIN( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8141
SELECT MIN ( 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8142
SELECT ALL + CASE 78 WHEN - 2 THEN NULL ELSE - SUM( 32 ) END * + + 43 + - 61 + 14 DIV + 68 AS col0
----
-1437

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + CASE 78 WHEN - 2 THEN NULL ELSE - SUM ( 32 ) END * + + 43 + - 61 + 14 / + 68 AS col0
----
-1437

query I rowsort
SELECT DISTINCT 93 + + 54 AS col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8144
SELECT ALL - COALESCE ( - COUNT( * ), - 12 DIV + CAST( - 11 AS SIGNED ) + - + 7 * - 19 ) DIV 95 * + 40 - + - 67
----
67

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - COALESCE ( - COUNT ( * ), - 12 / + CAST ( - 11 AS INTEGER ) + - + 7 * - 19 ) / 95 * + 40 - + - 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT MAX( + 35 ) - + CASE 67 WHEN COUNT( * ) + - 69 * + + 32 * + 16 THEN - 71 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT MAX ( + 35 ) - + CASE 67 WHEN COUNT ( * ) + - 69 * + + 32 * + 16 THEN - 71 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT 7 - - + 22 + + 38 + - 34 * - ( - + 95 ) + COUNT( * ) AS col2
----
-3162

skipif mysql # not compatible
query I rowsort label-8146
SELECT 7 - - + 22 + + 38 + - 34 * - ( - + 95 ) + COUNT ( * ) AS col2
----
-3162

query I rowsort
SELECT 52 * + 26 AS col0
----
1352

query I rowsort
SELECT DISTINCT + 35 * - + 65
----
-2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) - - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) - - + COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8150
SELECT ALL + 17 * 69 DIV 1 col1
----
1173

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + 17 * 69 / 1 col1
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL ( + 99 ) * - COUNT( * ) + - 26 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL ( + 99 ) * - COUNT ( * ) + - 26 AS col0
----
-125

query I rowsort
SELECT DISTINCT ( + 73 ) * + 40
----
2920

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8153
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8154
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0, + ( + - COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8154
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, + ( + - COUNT ( * ) )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8155
SELECT COUNT( * ) + + MAX( - - ( - - 48 ) ) AS col1, - 21 AS col0
----
49
-21

skipif mysql # not compatible
query II rowsort label-8155
SELECT COUNT ( * ) + + MAX ( - - ( - - 48 ) ) AS col1, - 21 AS col0
----
49
-21

query I rowsort
SELECT - 42 + - 44 * + + 24 AS col2
----
-1098

query I rowsort
SELECT 28 - + + 87 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT 15 DIV + ( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-8158
SELECT 15 / + ( - 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT MAX( - 15 ) * + 22
----
-330

skipif mysql # not compatible
query I rowsort label-8159
SELECT MAX ( - 15 ) * + 22
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8160
SELECT ALL - - COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - - COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 62 AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT + COUNT( - 84 ) * - CAST( 14 AS SIGNED ) + ( + - 13 ) + + - 67 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT + COUNT ( - 84 ) * - CAST ( 14 AS INTEGER ) + ( + - 13 ) + + - 67 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL + 16 * + 39 * + - 36 + COUNT( 70 )
----
-22463

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + 16 * + 39 * + - 36 + COUNT ( 70 )
----
-22463

onlyif mysql # aggregate syntax: 
query II rowsort label-8164
SELECT ALL - 17 * - 9 + + 76 + - + 92 + 75 + + 81 * COUNT( * ) * - 7 * 39 AS col1, + COUNT( * ) * - + 73 * 61 * + + MAX( - 31 ) + - COUNT( * ) AS col2
----
-21901
138042

skipif mysql # not compatible
query II rowsort label-8164
SELECT ALL - 17 * - 9 + + 76 + - + 92 + 75 + + 81 * COUNT ( * ) * - 7 * 39 AS col1, + COUNT ( * ) * - + 73 * 61 * + + MAX ( - 31 ) + - COUNT ( * ) AS col2
----
-21901
138042

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - - 11 * + 66 * - - COUNT( * )
----
726

skipif mysql # not compatible
query I rowsort label-8165
SELECT - - 11 * + 66 * - - COUNT ( * )
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL 37 * 69 + - - COUNT( * )
----
2554

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL 37 * 69 + - - COUNT ( * )
----
2554

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL SUM( ALL + + 61 ) * + 43 * + - 36 + 54 * + 24
----
-93132

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL SUM ( ALL + + 61 ) * + 43 * + - 36 + 54 * + 24
----
-93132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * CAST( + 68 AS SIGNED ) + - - 63 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * CAST ( + 68 AS INTEGER ) + - - 63 + 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT 26 / + ( - + CAST( NULL AS SIGNED ) ) + 44 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT 26 / + ( - + CAST ( NULL AS INTEGER ) ) + 44 * + 82
----
NULL

query I rowsort
SELECT + NULLIF ( + 19, - 87 )
----
19

query I rowsort
SELECT + 37 * ( + - 13 ) + 99 AS col2
----
-382

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT + 41 + - - 2 DIV + - 9 + - 11 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8172
SELECT + 41 + - - 2 / + - 9 + - 11 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT MAX( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-8173
SELECT MAX ( DISTINCT + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + COUNT( * ) * - 69 * 12 * + 27 * + 6 + + + 19 + COUNT( * )
----
-134116

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + COUNT ( * ) * - 69 * 12 * + 27 * + 6 + + + 19 + COUNT ( * )
----
-134116

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT MIN( DISTINCT - 15 ) * - 70 - - 41 - + - 1
----
1092

skipif mysql # not compatible
query I rowsort label-8175
SELECT MIN ( DISTINCT - 15 ) * - 70 - - 41 - + - 1
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + - ( + - COUNT( * ) ) * + + 21 * + MIN( ( 64 ) ) + + - 19 + + 8 AS col1
----
1333

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + - ( + - COUNT ( * ) ) * + + 21 * + MIN ( ( 64 ) ) + + - 19 + + 8 AS col1
----
1333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT + - 10 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT + - 10 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8178
SELECT + 23 + 36 DIV - 97 + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8178
SELECT + 23 + 36 / - 97 + COUNT ( * ) AS col0
----
24

query I rowsort
SELECT + 40 * - + 27 AS col2
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-8180
SELECT DISTINCT 46 DIV 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT 46 / 35 AS col2
----
1

query I rowsort
SELECT + 17 - + 14 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT ALL 81 * + NULLIF ( + 43, - + ( + NULLIF ( - 24, + 83 + - 6 + - 84 * 46 * + 72 + - CAST( + + 71 AS SIGNED ) * - 85 / + 69 * 7 ) ) + CAST( NULL AS SIGNED ) ) AS col0
----
3483

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL 81 * + NULLIF ( + 43, - + ( + NULLIF ( - 24, + 83 + - 6 + - 84 * 46 * + 72 + - CAST ( + + 71 AS INTEGER ) * - 85 / + 69 * 7 ) ) + CAST ( NULL AS INTEGER ) ) AS col0
----
3483

query I rowsort
SELECT + 4 * + - 58 AS col2
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT - MAX( ALL + + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-8184
SELECT - MAX ( ALL + + 99 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT ALL 65 AS col1, COUNT( * ) - 74 AS col2
----
65
-73

skipif mysql # not compatible
query II rowsort label-8185
SELECT ALL 65 AS col1, COUNT ( * ) - 74 AS col2
----
65
-73

query I rowsort
SELECT + 81 * + 74
----
5994

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL - COUNT( * ) * - 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - COUNT ( * ) * - 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT + 57 + - 33 * - 26 col2, + ( COUNT( * ) ) * - COUNT( * )
----
915
-1

skipif mysql # not compatible
query II rowsort label-8188
SELECT + 57 + - 33 * - 26 col2, + ( COUNT ( * ) ) * - COUNT ( * )
----
915
-1

query II rowsort
SELECT ALL 22, ( 94 ) + + + 16 AS col0
----
22
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8190
SELECT + 9 + + + COALESCE ( NULLIF ( + - CASE - CASE 73 WHEN - + 72 THEN + - 89 ELSE NULL END WHEN NULLIF ( AVG ( - 69 ), - 6 ) THEN NULLIF ( MAX( DISTINCT 18 ), - 18 ) * - + 0 + + 55 - + 53 DIV + + COALESCE ( - 98, COUNT( * ) ) + - - COUNT( * ) WHEN - + 44 THEN NULL END, + 97 ), - - CAST( 33 AS SIGNED ) * + 39 * + COUNT( 88 ) * + + COUNT( * ), - - 42 + + 57 - - 83, + - MAX( + 30 ) * + 63 ) + + COUNT( * )
----
1297

skipif mysql # not compatible
query I rowsort label-8190
SELECT + 9 + + + COALESCE ( NULLIF ( + - CASE - CASE 73 WHEN - + 72 THEN + - 89 ELSE NULL END WHEN NULLIF ( AVG ( - 69 ), - 6 ) THEN NULLIF ( MAX ( DISTINCT 18 ), - 18 ) * - + 0 + + 55 - + 53 / + + COALESCE ( - 98, COUNT ( * ) ) + - - COUNT ( * ) WHEN - + 44 THEN NULL END, + 97 ), - - CAST ( 33 AS INTEGER ) * + 39 * + COUNT ( 88 ) * + + COUNT ( * ), - - 42 + + 57 - - 83, + - MAX ( + 30 ) * + 63 ) + + COUNT ( * )
----
1297

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8191
SELECT + COALESCE ( - - 9, + COUNT( * ), - 77 - 17, + 67 * 18 ) + + 89 + - - 78 DIV - 61 AS col0, - COUNT( - + 6 )
----
97
-1

skipif mysql # not compatible
query II rowsort label-8191
SELECT + COALESCE ( - - 9, + COUNT ( * ), - 77 - 17, + 67 * 18 ) + + 89 + - - 78 / - 61 AS col0, - COUNT ( - + 6 )
----
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT DISTINCT 26 + - + COUNT( + - 49 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT 26 + - + COUNT ( + - 49 ) AS col2
----
25

query II rowsort
SELECT 75, - 20 AS col2
----
75
-20

query I rowsort
SELECT - 44 col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT 2 + + - 62 - - + 55 * COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT 2 + + - 62 - - + 55 * COUNT ( * ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT ALL + ( - + COUNT( * ) ) * + CASE + - 11 WHEN 34 / - 86 * 94 THEN - + 87 ELSE CAST( - 58 AS SIGNED ) * + 99 END + + 95 AS col2
----
5837

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL + ( - + COUNT ( * ) ) * + CASE + - 11 WHEN 34 / - 86 * 94 THEN - + 87 ELSE CAST ( - 58 AS INTEGER ) * + 99 END + + 95 AS col2
----
5837

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + MAX( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8197
SELECT + MAX ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - ( - - CASE SUM( DISTINCT + 11 ) WHEN + + 87 THEN + - 1 + 4 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - ( - - CASE SUM ( DISTINCT + 11 ) WHEN + + 87 THEN + - 1 + 4 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 43 + - 9 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8200
SELECT - ( + MAX( ALL + ( CAST( 76 AS SIGNED ) ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-8200
SELECT - ( + MAX ( ALL + ( CAST ( 76 AS INTEGER ) ) ) )
----
-76

query I rowsort
SELECT DISTINCT - 68 + + 87 * - 32 col0
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT COUNT( * ) + - 97 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT COUNT ( * ) + - 97 AS col1
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL + MAX( - + CAST( 18 AS SIGNED ) ) * + 65 AS col1
----
-1170

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + MAX ( - + CAST ( 18 AS INTEGER ) ) * + 65 AS col1
----
-1170

query I rowsort
SELECT ALL 59 + 54
----
113

query I rowsort
SELECT DISTINCT - 18 * + - 13 * + 59 AS col1
----
13806

query I rowsort
SELECT ALL + - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT DISTINCT - + ( - 14 ) DIV ( + - COUNT( * ) ) * + 60 * + COUNT( * ) + + 4
----
-836

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT - + ( - 14 ) / ( + - COUNT ( * ) ) * + 60 * + COUNT ( * ) + + 4
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + SUM( ALL 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8208
SELECT + SUM ( ALL 22 ) AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT ALL + 61 DIV 83 + - 1 * + 61 * + 26 * - 86 AS col2
----
136396

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + 61 / 83 + - 1 * + 61 * + 26 * - 86 AS col2
----
136396

onlyif mysql # DIV for integer division: 
query I rowsort label-8210
SELECT ALL - 25 DIV 11 + - 28 + 89 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - 25 / 11 + - 28 + 89 AS col2
----
59

query II rowsort
SELECT - - 30 * 96 * 36, 70 + 7 AS col1
----
103680
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8212
SELECT DISTINCT + + SUM( DISTINCT COALESCE ( + 97, - 33, + 35 * - 45 DIV - 92 * + - 3, - 58 * 56 * 93 ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT + + SUM ( DISTINCT COALESCE ( + 97, - 33, + 35 * - 45 / - 92 * + - 3, - 58 * 56 * 93 ) ) col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT + - 84 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + - 84 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8214
SELECT + 54 DIV - - 38 + - MAX( DISTINCT - - 23 ) * + - 64 + + 60 * + + 5 AS col0
----
1773

skipif mysql # not compatible
query I rowsort label-8214
SELECT + 54 / - - 38 + - MAX ( DISTINCT - - 23 ) * + - 64 + + 60 * + + 5 AS col0
----
1773

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT - COALESCE ( COUNT( * ), + + 85 * 5 - + 99 ) + + - ( 60 ) + - 10 - COUNT( * ), - 94 AS col0
----
-72
-94

skipif mysql # not compatible
query II rowsort label-8215
SELECT - COALESCE ( COUNT ( * ), + + 85 * 5 - + 99 ) + + - ( 60 ) + - 10 - COUNT ( * ), - 94 AS col0
----
-72
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + MIN( ALL + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8216
SELECT + MIN ( ALL + 21 ) AS col0
----
21

query II rowsort
SELECT + 52, + 68 col2
----
52
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT + 93 + + + 89 + - 59 + + - COUNT( * ) * + COUNT( + 13 )
----
122

skipif mysql # not compatible
query I rowsort label-8218
SELECT + 93 + + + 89 + - 59 + + - COUNT ( * ) * + COUNT ( + 13 )
----
122

query I rowsort
SELECT ALL + ( - 21 ) * + + ( - - 72 ) * + + 70 * 27 * + ( + + 52 ) - + ( 19 ) + - 9 + 10 * + ( + 4 ) - 15 AS col2
----
-148599363

query I rowsort
SELECT NULLIF ( + - 57, + - NULLIF ( - - 0, - - 54 ) ) AS col1
----
-57

query I rowsort
SELECT + COALESCE ( - - 71, + 10, + 15 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8222
SELECT NULLIF ( + 28, - CAST( NULL AS SIGNED ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8222
SELECT NULLIF ( + 28, - CAST ( NULL AS INTEGER ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL - ( - COALESCE ( + - 81, + 24, + 63 ) ) * + COUNT( * ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - ( - COALESCE ( + - 81, + 24, + 63 ) ) * + COUNT ( * ) col2
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-8224
SELECT DISTINCT + 4 AS col2, - 42 DIV - 60
----
4
0

skipif mysql # not compatible
query II rowsort label-8224
SELECT DISTINCT + 4 AS col2, - 42 / - 60
----
4
0

query I rowsort
SELECT DISTINCT - 36 * - 54
----
1944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT DISTINCT CAST( - 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT CAST ( - 29 AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - CASE + + 88 WHEN - COUNT( * ) THEN NULL WHEN - + 27 THEN 88 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT - CASE + + 88 WHEN - COUNT ( * ) THEN NULL WHEN - + 27 THEN 88 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - 21 - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8228
SELECT - 21 - COUNT ( * ) AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8229
SELECT ALL CAST( NULL AS SIGNED ) * CAST( + CASE - 64 WHEN + - 24 THEN NULL ELSE 60 + 31 END AS SIGNED ) * + 68 + 6 + 80 * - + 38 AS col2, 21 AS col2, - - 72 AS col2
----
NULL
21
72

skipif mysql # not compatible
query III rowsort label-8229
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + CASE - 64 WHEN + - 24 THEN NULL ELSE 60 + 31 END AS INTEGER ) * + 68 + 6 + 80 * - + 38 AS col2, 21 AS col2, - - 72 AS col2
----
NULL
21
72

query I rowsort
SELECT - 97 + + 34
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT MAX( ALL + 93 ) AS col0, + 53 * + 10 AS col0
----
93
530

skipif mysql # not compatible
query II rowsort label-8231
SELECT MAX ( ALL + 93 ) AS col0, + 53 * + 10 AS col0
----
93
530

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT - 15 DIV - 5
----
3

skipif mysql # not compatible
query I rowsort label-8232
SELECT - 15 / - 5
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT COUNT( DISTINCT + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-8233
SELECT COUNT ( DISTINCT + 75 )
----
1

query I rowsort
SELECT ALL 61 + - - 76 * 93 col1
----
7129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL - 82 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - 82 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - + 33 + - + COUNT( * ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - + 33 + - + COUNT ( * ) col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8237
SELECT ALL + COUNT( * ) AS col0, + 12 AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-8237
SELECT ALL + COUNT ( * ) AS col0, + 12 AS col0
----
1
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT 76 * - 28 / - 1 * + - 30 + - 32 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT 76 * - 28 / - 1 * + - 30 + - 32 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 39 + + + 28
----
-11

query I rowsort
SELECT DISTINCT - ( 36 ) + + 33 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT - CASE + + ( NULLIF ( - ( ( SUM( ALL + + 3 ) ) ), - 6 ) ) WHEN - NULLIF ( - 13, + + 21 ) THEN + 70 WHEN + - 77 + - 89 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - CASE + + ( NULLIF ( - ( ( SUM ( ALL + + 3 ) ) ), - 6 ) ) WHEN - NULLIF ( - 13, + + 21 ) THEN + 70 WHEN + - 77 + - 89 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT 37 + - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8242
SELECT 37 + - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT - 13 + + 85 + - 41
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8244
SELECT - 3 col2, NULLIF ( + CAST( - 87 AS SIGNED ), - ( - COUNT( * ) ) * - + 35 * - + CAST( NULL AS SIGNED ) * + 72 ) * + - 37
----
-3
3219

skipif mysql # not compatible
query II rowsort label-8244
SELECT - 3 col2, NULLIF ( + CAST ( - 87 AS INTEGER ), - ( - COUNT ( * ) ) * - + 35 * - + CAST ( NULL AS INTEGER ) * + 72 ) * + - 37
----
-3
3219

query I rowsort
SELECT 55 * 33 + 32 + - 73 * 68 AS col0
----
-3117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8246
SELECT + COUNT( * ) + + 72 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT + COUNT ( * ) + + 72 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8247
SELECT 0 AS col0, - 32 * COUNT( + + ( ( 24 ) ) ) AS col1
----
0
-32

skipif mysql # not compatible
query II rowsort label-8247
SELECT 0 AS col0, - 32 * COUNT ( + + ( ( 24 ) ) ) AS col1
----
0
-32

query I rowsort
SELECT ( + 51 )
----
51

query I rowsort
SELECT ALL + CASE + 23 WHEN - 68 - + + 22 - + 30 * + 49 THEN - 5 WHEN - ( - 22 ) + 12 + - 10 * + 88 * - 41 THEN NULL END - + 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8250
SELECT - + 93 col0, NULLIF ( + + 10, - CAST( NULL AS SIGNED ) / - 5 ) AS col2
----
-93
10

skipif mysql # not compatible
query II rowsort label-8250
SELECT - + 93 col0, NULLIF ( + + 10, - CAST ( NULL AS INTEGER ) / - 5 ) AS col2
----
-93
10

query II rowsort
SELECT ALL - 37, 79 + - 5 + - 58 AS col2
----
-37
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8252
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0, - 9 DIV - 2 AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8252
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0, - 9 / - 2 AS col0
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8253
SELECT DISTINCT - COUNT( * ) - + CAST( - 8 AS DECIMAL ) - 26 * - 41 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - COUNT ( * ) - + CAST ( - 8 AS REAL ) - 26 * - 41 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 74 * + 41 col2
----
-3034

query I rowsort
SELECT DISTINCT - + 69 - - 99
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT - COUNT( * ) * - + 15 + + 41
----
56

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT - COUNT ( * ) * - + 15 + + 41
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT + AVG ( 42 ) * - + COUNT( * ) + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT + AVG ( 42 ) * - + COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 43 * - 64
----
2752

onlyif mysql # aggregate syntax: 
query II rowsort label-8259
SELECT + COUNT( * ) * 46 AS col1, 17
----
46
17

skipif mysql # not compatible
query II rowsort label-8259
SELECT + COUNT ( * ) * 46 AS col1, 17
----
46
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL - MIN( DISTINCT ( - + 10 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL - MIN ( DISTINCT ( - + 10 ) ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8261
SELECT - COUNT( + ( 56 ) ) * 8 + + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) * + 62 + ( + 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT - COUNT ( + ( 56 ) ) * 8 + + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) * + 62 + ( + 90 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT DISTINCT + 76 DIV - MAX( + 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT + 76 / - MAX ( + 39 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT 86 * 35 + - - COUNT( * )
----
3011

skipif mysql # not compatible
query I rowsort label-8263
SELECT 86 * 35 + - - COUNT ( * )
----
3011

query I rowsort
SELECT ALL + 58 * + 80 * + 27
----
125280

query I rowsort
SELECT 52 + 38 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8266
SELECT ALL + 49 * - + COUNT( * ) AS col1, ( + + 62 ) DIV + 29 + + 91 + + + 41 AS col1
----
-49
134

skipif mysql # not compatible
query II rowsort label-8266
SELECT ALL + 49 * - + COUNT ( * ) AS col1, ( + + 62 ) / + 29 + + 91 + + + 41 AS col1
----
-49
134

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL + 59 + - MIN( DISTINCT - 21 )
----
80

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + 59 + - MIN ( DISTINCT - 21 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT 42 + - - 77 + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT 42 + - - 77 + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 91 * + 37 + 91
----
3458

query I rowsort
SELECT ( - - 27 ) * + 90 + - 87 AS col1
----
2343

query I rowsort
SELECT ALL - 87 + - ( 94 ) AS col2
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8272
SELECT MAX( ALL - + 98 ) + ( - ( - + CAST( NULL AS SIGNED ) ) ) + 42 * - - 84, - 69 AS col2
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-8272
SELECT MAX ( ALL - + 98 ) + ( - ( - + CAST ( NULL AS INTEGER ) ) ) + 42 * - - 84, - 69 AS col2
----
NULL
-69

query II rowsort
SELECT ALL + - 43 + + + 35, 17 + ( + 97 ) AS col1
----
-8
114

query I rowsort
SELECT + NULLIF ( - 95, AVG ( ALL + - 64 ) + - ( 31 ) + + 73 * + 99 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT COUNT( - 11 ) * + 30
----
30

skipif mysql # not compatible
query I rowsort label-8275
SELECT COUNT ( - 11 ) * + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + 67 * - 48 + - + COUNT( * )
----
-3217

skipif mysql # not compatible
query I rowsort label-8276
SELECT + 67 * - 48 + - + COUNT ( * )
----
-3217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT ALL + + 30 DIV 33 + MIN( DISTINCT 62 ) - - + COUNT( * ) DIV - 80
----
62

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL + + 30 / 33 + MIN ( DISTINCT 62 ) - - + COUNT ( * ) / - 80
----
62

query I rowsort
SELECT ALL + ( 61 ) col1
----
61

query I rowsort
SELECT + CASE + 55 WHEN 1 + + - 61 + + 44 * + 13 * - 28 * 2 THEN NULL ELSE - 29 END
----
-29

query I rowsort
SELECT 83 + - 82 * 72 + - 54 AS col0
----
-5875

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT MAX( + 24 ) - - 30 col2
----
54

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT MAX ( + 24 ) - - 30 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - 33 * - - 2 + - COUNT( * ) + - 4
----
-71

skipif mysql # not compatible
query I rowsort label-8282
SELECT - 33 * - - 2 + - COUNT ( * ) + - 4
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT ALL + + 38 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + + 38 / - 68 AS col2
----
0

query II rowsort
SELECT DISTINCT + - 88 * - + 1 AS col0, - 96 AS col0
----
88
-96

query I rowsort
SELECT DISTINCT - - 26 - 25 + + NULLIF ( - 46, + 31 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8286
SELECT ALL + + 63 * + 34 AS col2, NULLIF ( + + MAX( DISTINCT + 67 ), - ( + - 22 ) ) * 93 + 57
----
2142
6288

skipif mysql # not compatible
query II rowsort label-8286
SELECT ALL + + 63 * + 34 AS col2, NULLIF ( + + MAX ( DISTINCT + 67 ), - ( + - 22 ) ) * 93 + 57
----
2142
6288

query I rowsort
SELECT + 69 + - - 97 * 0
----
69

query I rowsort
SELECT DISTINCT - 86 - 25 - + 95
----
-206

query I rowsort
SELECT 77 col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8290
SELECT ALL CASE + 52 WHEN COUNT( - ( + + 40 ) ) THEN + CAST( NULL AS SIGNED ) WHEN - 41 THEN + 37 WHEN - + 4 THEN 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL CASE + 52 WHEN COUNT ( - ( + + 40 ) ) THEN + CAST ( NULL AS INTEGER ) WHEN - 41 THEN + 37 WHEN - + 4 THEN 58 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT + 27 / + + CAST( NULL AS SIGNED ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8291
SELECT + 27 / + + CAST ( NULL AS INTEGER ) * + 32
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT ALL - COALESCE ( - - 81, COUNT( * ) ) DIV 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - COALESCE ( - - 81, COUNT ( * ) ) / 31 AS col2
----
-2

query I rowsort
SELECT - 36 * - 50 AS col2
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT 62 + ( COUNT( * ) ) AS col0, + 0 AS col1
----
63
0

skipif mysql # not compatible
query II rowsort label-8294
SELECT 62 + ( COUNT ( * ) ) AS col0, + 0 AS col1
----
63
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT 56 * + + 94 * - - CAST( NULL AS SIGNED ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT 56 * + + 94 * - - CAST ( NULL AS INTEGER ) + + 88
----
NULL

query I rowsort
SELECT + + 23
----
23

query I rowsort
SELECT ALL - - 93 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT COUNT( * ) * - 9 * - ( + 22 ) AS col0
----
198

skipif mysql # not compatible
query I rowsort label-8298
SELECT COUNT ( * ) * - 9 * - ( + 22 ) AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT MIN( + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8299
SELECT MIN ( + 6 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8300
SELECT DISTINCT ( - 55 ) * + 3 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT ( - 55 ) * + 3 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT CASE - - 7 WHEN COUNT( * ) + - 57 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 38 END * ( - + COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-8301
SELECT CASE - - 7 WHEN COUNT ( * ) + - 57 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 38 END * ( - + COUNT ( * ) )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8302
SELECT ALL - CAST( NULL AS SIGNED ) * 0 / + - 13 * - + 69 * 83 + - 53 - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - CAST ( NULL AS INTEGER ) * 0 / + - 13 * - + 69 * 83 + - 53 - 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT COUNT( * ) * - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8303
SELECT COUNT ( * ) * - 77 AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8304
SELECT CASE + 90 WHEN + 44 THEN + COUNT( * ) WHEN - 47 THEN CASE + - NULLIF ( - - COALESCE ( + 63, 31 + - NULLIF ( + 79, 62 * + 43 + + CASE - ( - CASE + + COALESCE ( 51, + 98, - 88 ) WHEN ( - + 78 ) + + - 41 * + - 83 * + + 13 + NULLIF ( - + 99, - 66 ) * - + ( - + ( CASE + - COUNT( * ) WHEN - 88 + COUNT( DISTINCT - - 71 ) THEN NULL WHEN + + 19 THEN - 32 WHEN 74 THEN NULL END ) ) * - NULLIF ( ( + + 3 ), + COUNT( * ) - - 14 ) + - + CAST( NULL AS DECIMAL ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - COUNT( * ) THEN - 76 / + 68 + 9 ELSE NULL END ) WHEN - COUNT( * ) THEN 13 * - 69 WHEN 99 THEN + 19 ELSE NULL END ) ), 46 * - 20 ) WHEN - 67 THEN 98 WHEN - 59 * + 10 - - 66 THEN NULL END END / 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8304
SELECT CASE + 90 WHEN + 44 THEN + COUNT ( * ) WHEN - 47 THEN CASE + - NULLIF ( - - COALESCE ( + 63, 31 + - NULLIF ( + 79, 62 * + 43 + + CASE - ( - CASE + + COALESCE ( 51, + 98, - 88 ) WHEN ( - + 78 ) + + - 41 * + - 83 * + + 13 + NULLIF ( - + 99, - 66 ) * - + ( - + ( CASE + - COUNT ( * ) WHEN - 88 + COUNT ( DISTINCT - - 71 ) THEN NULL WHEN + + 19 THEN - 32 WHEN 74 THEN NULL END ) ) * - NULLIF ( ( + + 3 ), + COUNT ( * ) - - 14 ) + - + CAST ( NULL AS REAL ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN - 76 / + 68 + 9 ELSE NULL END ) WHEN - COUNT ( * ) THEN 13 * - 69 WHEN 99 THEN + 19 ELSE NULL END ) ), 46 * - 20 ) WHEN - 67 THEN 98 WHEN - 59 * + 10 - - 66 THEN NULL END END / 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT MAX( DISTINCT - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8305
SELECT MAX ( DISTINCT - 1 ) AS col1
----
-1

query I rowsort
SELECT ALL 56 + + 45 AS col2
----
101

query I rowsort
SELECT DISTINCT 15 + 77 + - - 77 AS col0
----
169

query I rowsort
SELECT ALL + 28 + 63 * 37 col0
----
2359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT + ( + CAST( + 43 AS SIGNED ) ) * - 17 * + 50 AS col1
----
-36550

skipif mysql # not compatible
query I rowsort label-8309
SELECT + ( + CAST ( + 43 AS INTEGER ) ) * - 17 * + 50 AS col1
----
-36550

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT - COUNT( * ) * 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8310
SELECT - COUNT ( * ) * 50 AS col1
----
-50

query I rowsort
SELECT ALL - 56 * + 7 col1
----
-392

query II rowsort
SELECT - 40 AS col0, 5 + + ( + COALESCE ( + + 19, - 77 * 81, + 54 ) )
----
-40
24

query I rowsort
SELECT - 51 * + 58 AS col1
----
-2958

query I rowsort
SELECT ALL - 89 * + 8 AS col2
----
-712

query I rowsort
SELECT + 95 + - 81 AS col1
----
14

query I rowsort
SELECT - 9 + - - 66
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL - 98 - COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - 98 - COUNT ( * ) AS col1
----
-99

query I rowsort
SELECT DISTINCT + ( - + ( + + 98 ) ) - - 64 * + 78 AS col0
----
4894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8319
SELECT ALL - 18 AS col2, ( + CASE - 90 WHEN - - 24 * 54 + 5 + 11 THEN COUNT( * ) * - ( - 98 ) - + 19 * - 48 WHEN COUNT( * ) * 85 + 69 + 73 THEN NULL END ) * + + CAST( - - 77 AS SIGNED ) - COUNT( * ) + + - COALESCE ( 75, MIN( + ( 44 ) ) / AVG ( + - 59 ) / + MIN( - 71 ) + - CAST( - + ( - 92 ) AS SIGNED ) + 37 / 29 + - - 31, - CASE - - 93 WHEN 91 - 8 + + 14 * - 97 THEN + 83 ELSE NULL END * - 66 + - + 92 + 35 )
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-8319
SELECT ALL - 18 AS col2, ( + CASE - 90 WHEN - - 24 * 54 + 5 + 11 THEN COUNT ( * ) * - ( - 98 ) - + 19 * - 48 WHEN COUNT ( * ) * 85 + 69 + 73 THEN NULL END ) * + + CAST ( - - 77 AS INTEGER ) - COUNT ( * ) + + - COALESCE ( 75, MIN ( + ( 44 ) ) / AVG ( + - 59 ) / + MIN ( - 71 ) + - CAST ( - + ( - 92 ) AS INTEGER ) + 37 / 29 + - - 31, - CASE - - 93 WHEN 91 - 8 + + 14 * - 97 THEN + 83 ELSE NULL END * - 66 + - + 92 + 35 )
----
-18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT ALL COUNT( * ), - 99 AS col1
----
1
-99

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL COUNT ( * ), - 99 AS col1
----
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - 67 * - 21 * + ( - MAX( DISTINCT 97 ) ) AS col0
----
-136479

skipif mysql # not compatible
query I rowsort label-8321
SELECT - 67 * - 21 * + ( - MAX ( DISTINCT 97 ) ) AS col0
----
-136479

query II rowsort
SELECT ALL 33 AS col0, - ( 79 ) + 37
----
33
-42

query I rowsort
SELECT ALL + NULLIF ( - 76, - 43 )
----
-76

query I rowsort
SELECT - + 82 + + 76
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8325
SELECT DISTINCT + COUNT( * ) DIV - ( - ( 68 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + COUNT ( * ) / - ( - ( 68 ) ) AS col1
----
0

query I rowsort
SELECT - 25 + + - 83 AS col2
----
-108

query II rowsort
SELECT 16, - 95 AS col0
----
16
-95

query I rowsort
SELECT ALL + ( + + 79 ) * - 9
----
-711

onlyif mysql # aggregate syntax: 
query II rowsort label-8329
SELECT - 34 * - + 8 * - COUNT( * ) + - 38 + 92 + - - 0, + 2 col0
----
-218
2

skipif mysql # not compatible
query II rowsort label-8329
SELECT - 34 * - + 8 * - COUNT ( * ) + - 38 + 92 + - - 0, + 2 col0
----
-218
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT + + 85 * - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-8330
SELECT + + 85 * - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT + ( + + MAX( - 96 ) ) - + + 8 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-8331
SELECT + ( + + MAX ( - 96 ) ) - + + 8 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL - ( - 55 ) + + COUNT( DISTINCT - 74 ) * - 83 * - 6
----
553

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL - ( - 55 ) + + COUNT ( DISTINCT - 74 ) * - 83 * - 6
----
553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) / 34 - - + CAST( + 53 AS SIGNED ) + + - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) / 34 - - + CAST ( + 53 AS INTEGER ) + + - 23 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - MAX( DISTINCT + 37 ) * + 87
----
-3219

skipif mysql # not compatible
query I rowsort label-8334
SELECT - MAX ( DISTINCT + 37 ) * + 87
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL + MAX( - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + MAX ( - 23 ) AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT DISTINCT COUNT( * ) * + - 90 + ( - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT COUNT ( * ) * + - 90 + ( - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT DISTINCT + CASE 39 WHEN 93 THEN 70 WHEN - COUNT( * ) * 71 THEN NULL ELSE - + 63 END col1, + COUNT( * ) * - 43 AS col2
----
-63
-43

skipif mysql # not compatible
query II rowsort label-8337
SELECT DISTINCT + CASE 39 WHEN 93 THEN 70 WHEN - COUNT ( * ) * 71 THEN NULL ELSE - + 63 END col1, + COUNT ( * ) * - 43 AS col2
----
-63
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT 22 DIV 34 + - 40
----
-40

skipif mysql # not compatible
query I rowsort label-8338
SELECT 22 / 34 + - 40
----
-40

query I rowsort
SELECT ( - 16 )
----
-16

query I rowsort
SELECT ( + 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT MIN( + ( + 35 ) ) * + 28 * 32 + - 34 + + + 48 + + - 37
----
31337

skipif mysql # not compatible
query I rowsort label-8341
SELECT MIN ( + ( + 35 ) ) * + 28 * 32 + - 34 + + + 48 + + - 37
----
31337

query I rowsort
SELECT ( - 21 ) col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ( - + COUNT( - 77 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8343
SELECT ( - + COUNT ( - 77 ) )
----
-1

query I rowsort
SELECT ALL + ( - NULLIF ( - + 85, 68 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT COUNT( + - ( 21 ) ) * - + COUNT( * ) + - 56 * - 76 + + 54 col2
----
4309

skipif mysql # not compatible
query I rowsort label-8345
SELECT COUNT ( + - ( 21 ) ) * - + COUNT ( * ) + - 56 * - 76 + + 54 col2
----
4309

query I rowsort
SELECT ALL 2 * 82 + + - 63 + + 11 * 97
----
1168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8347
SELECT ALL 9 * + - MIN( - - 58 ) * + 35 + - + ( + + 64 ) * COUNT( * ), 2 DIV - 20 col0
----
-18334
0

skipif mysql # not compatible
query II rowsort label-8347
SELECT ALL 9 * + - MIN ( - - 58 ) * + 35 + - + ( + + 64 ) * COUNT ( * ), 2 / - 20 col0
----
-18334
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + ( - 5 ) + + NULLIF ( + - COUNT( * ), + 75 )
----
-6

skipif mysql # not compatible
query I rowsort label-8348
SELECT + ( - 5 ) + + NULLIF ( + - COUNT ( * ), + 75 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT + CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT + CAST ( NULL AS INTEGER ) * - 56
----
NULL

query I rowsort
SELECT DISTINCT 44 * - 56 * - + 43 AS col2
----
105952

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT + COALESCE ( + - 71, + COUNT( ALL ( 3 ) ) + + 40 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8351
SELECT + COALESCE ( + - 71, + COUNT ( ALL ( 3 ) ) + + 40 ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT + CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8352
SELECT + CAST ( - - COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT - NULLIF ( + 51, - + 96 * + 60 ) * - 44 - - 90 * + 81 + 19 AS col2
----
9553

query I rowsort
SELECT + - 96 * + 65 * - ( + 83 ) AS col0
----
517920

query I rowsort
SELECT + 6 * - - 90 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + - 47 / + CASE + 53 WHEN - + 39 THEN + CASE + - 37 WHEN + 56 THEN - ( - + 9 ) - - 10 + - + 6 * + ( + 82 ) WHEN + - MIN( DISTINCT + 64 ) THEN NULL ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT + - 47 / + CASE + 53 WHEN - + 39 THEN + CASE + - 37 WHEN + 56 THEN - ( - + 9 ) - - 10 + - + 6 * + ( + 82 ) WHEN + - MIN ( DISTINCT + 64 ) THEN NULL ELSE NULL END END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT ALL - COALESCE ( + 22, + 31 DIV 80 + 42 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - COALESCE ( + 22, + 31 / 80 + 42 ) AS col1
----
-22

query I rowsort
SELECT ALL 5 col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT - 8 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT - 8 / + 80
----
0

query I rowsort
SELECT ALL - + ( + 27 ) * - 2
----
54

query I rowsort
SELECT - + 25 AS col0
----
-25

query I rowsort
SELECT - 79 + + + 74
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT ALL - + 96 * + 31 - + 99 + 81 + + 97 * - + COUNT( 96 ) * 13 * - + CAST( NULL AS SIGNED ) + - + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - + 96 * + 31 - + 99 + 81 + + 97 * - + COUNT ( 96 ) * 13 * - + CAST ( NULL AS INTEGER ) + - + 72 AS col1
----
NULL

query I rowsort
SELECT - 92 + - 4 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT MIN( - ( 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-8365
SELECT MIN ( - ( 65 ) )
----
-65

query I rowsort
SELECT ALL + - 83 + + - 91 col1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL - + ( - 78 ) + SUM( 21 )
----
99

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - + ( - 78 ) + SUM ( 21 )
----
99

query I rowsort
SELECT ALL ( + + 58 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8369
SELECT - MIN( DISTINCT 35 ), + CASE + - COUNT( * ) WHEN 45 THEN - - 56 END + + ( COALESCE ( - - 12, COUNT( * ) ) ) AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-8369
SELECT - MIN ( DISTINCT 35 ), + CASE + - COUNT ( * ) WHEN 45 THEN - - 56 END + + ( COALESCE ( - - 12, COUNT ( * ) ) ) AS col0
----
-35
NULL

query I rowsort
SELECT ALL + + 16 * + 25 AS col1
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + MAX( ALL 35 ) + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + MAX ( ALL 35 ) + + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL - 27 + + CAST( 7 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - 27 + + CAST ( 7 AS INTEGER )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT - 72 + + MIN( + 55 )
----
-17

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT - 72 + + MIN ( + 55 )
----
-17

query I rowsort
SELECT - 99 * 24
----
-2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8375
SELECT DISTINCT 86 DIV - COUNT( * ) + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT 86 / - COUNT ( * ) + COUNT ( * )
----
-85

query II rowsort
SELECT + 58 AS col2, + 80 AS col0
----
58
80

query I rowsort
SELECT + 79 * - 98 + - 90 - 47 AS col0
----
-7879

query I rowsort
SELECT DISTINCT - ( + 82 )
----
-82

query I rowsort
SELECT ALL - 28 + 51 AS col0
----
23

query II rowsort
SELECT 67 * + 57 * - - 9, 56 + + 3 * - + 18 AS col0
----
34371
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8381
SELECT DISTINCT - 55 * + CAST( - 65 AS SIGNED ) AS col0, 12 + + 9
----
3575
21

skipif mysql # not compatible
query II rowsort label-8381
SELECT DISTINCT - 55 * + CAST ( - 65 AS INTEGER ) AS col0, 12 + + 9
----
3575
21

query I rowsort
SELECT DISTINCT 98 - + 55
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL - 28 - + COUNT( * ) + + - 28 + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - 28 - + COUNT ( * ) + + - 28 + 57 AS col0
----
0

query I rowsort
SELECT 54 col0
----
54

query I rowsort
SELECT 67 * - 75 AS col2
----
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT NULLIF ( 96, + - 13 / - 57 + - COUNT( * ) ) * + + 12 + - 63 + 63
----
1152

skipif mysql # not compatible
query I rowsort label-8386
SELECT NULLIF ( 96, + - 13 / - 57 + - COUNT ( * ) ) * + + 12 + - 63 + 63
----
1152

query I rowsort
SELECT + 35 col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8388
SELECT ALL 97 DIV + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL 97 / + COUNT ( * )
----
97

query I rowsort
SELECT DISTINCT - 11 - + 83
----
-94

query I rowsort
SELECT 2 - 0 AS col1
----
2

query I rowsort
SELECT ALL 43 * - 53 AS col0
----
-2279

query I rowsort
SELECT DISTINCT 54 * ( 25 )
----
1350

query I rowsort
SELECT 30 * - 6
----
-180

query I rowsort
SELECT ALL 89 * 50
----
4450

query I rowsort
SELECT 1 + + 61 * 29
----
1770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT ALL 7 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL 7 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT ( + AVG ( + 96 ) ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT ( + AVG ( + 96 ) ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT 39 * + 91 + 73 * - COUNT( * ) AS col0
----
3476

skipif mysql # not compatible
query I rowsort label-8398
SELECT 39 * + 91 + 73 * - COUNT ( * ) AS col0
----
3476

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT 56 * - ( 97 DIV + 36 ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-8399
SELECT 56 * - ( 97 / + 36 ) AS col0
----
-112

query I rowsort
SELECT ALL 77 + 63
----
140

query I rowsort
SELECT ALL 35 + 5 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT DISTINCT 94 DIV COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT 94 / COUNT ( * ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT 6 + 74 DIV 39 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT 6 + 74 / 39 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT COUNT( * ) + 43
----
44

skipif mysql # not compatible
query I rowsort label-8404
SELECT COUNT ( * ) + 43
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT ( - 66 ) - - 83 * CASE 26 WHEN 60 + 21 THEN CAST( NULL AS SIGNED ) + + 54 WHEN - 2 / - 89 THEN NULL ELSE - 22 END col0
----
-1892

skipif mysql # not compatible
query I rowsort label-8405
SELECT ( - 66 ) - - 83 * CASE 26 WHEN 60 + 21 THEN CAST ( NULL AS INTEGER ) + + 54 WHEN - 2 / - 89 THEN NULL ELSE - 22 END col0
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT COUNT( * ) * - 88
----
-88

skipif mysql # not compatible
query I rowsort label-8406
SELECT COUNT ( * ) * - 88
----
-88

query I rowsort
SELECT 71 * + 32 col2
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL 93 * MIN( DISTINCT 54 ) AS col1
----
5022

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL 93 * MIN ( DISTINCT 54 ) AS col1
----
5022

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT 77 DIV 75 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8409
SELECT 77 / 75 AS col1
----
1

query I rowsort
SELECT ALL - 68 * - 78 AS col0
----
5304

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL - 59 + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - 59 + + COUNT ( * )
----
-58

query I rowsort
SELECT DISTINCT 6 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT ( CASE 23 WHEN 12 * + AVG ( DISTINCT + 70 ) THEN NULL WHEN 15 THEN + ( 72 ) - - 18 * CAST( 0 * - COUNT( * ) AS SIGNED ) ELSE NULL END ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT ( CASE 23 WHEN 12 * + AVG ( DISTINCT + 70 ) THEN NULL WHEN 15 THEN + ( 72 ) - - 18 * CAST ( 0 * - COUNT ( * ) AS INTEGER ) ELSE NULL END ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT 71 * 15 AS col0
----
1065

query I rowsort
SELECT ALL 33 * - 29
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + 13 * - COUNT( * ) + 64
----
51

skipif mysql # not compatible
query I rowsort label-8416
SELECT + 13 * - COUNT ( * ) + 64
----
51

query I rowsort
SELECT ALL - CASE 45 WHEN + ( - 73 ) - 69 THEN NULL ELSE 89 END
----
-89

query I rowsort
SELECT DISTINCT - 54 AS col0
----
-54

query I rowsort
SELECT 61 * - 37
----
-2257

query I rowsort
SELECT + 23 col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT 97 DIV + 46 + + 44
----
46

skipif mysql # not compatible
query I rowsort label-8421
SELECT 97 / + 46 + + 44
----
46

query I rowsort
SELECT 60 * + 40 - - 51 * + 27 AS col2
----
3777

query I rowsort
SELECT 76 + - 71
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT 15 * - MAX( 61 )
----
-915

skipif mysql # not compatible
query I rowsort label-8424
SELECT 15 * - MAX ( 61 )
----
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL - COUNT( * ) * + 2
----
-2

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - COUNT ( * ) * + 2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT 92 DIV + 90 col1
----
1

skipif mysql # not compatible
query I rowsort label-8426
SELECT 92 / + 90 col1
----
1

query I rowsort
SELECT DISTINCT - 28 AS col0
----
-28

query I rowsort
SELECT - COALESCE ( + 50, + 9 ) * - 0 + - 31
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8429
SELECT 52 DIV - 2 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8429
SELECT 52 / - 2 AS col1
----
-26

query I rowsort
SELECT ALL - + 29 * + 24
----
-696

query I rowsort
SELECT 83 + 68 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL - + COUNT( * ) * + 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - + COUNT ( * ) * + 78 AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT + CAST( 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-8433
SELECT + CAST ( 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT - - COUNT( * ) * + 74 + + 0 * COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-8434
SELECT - - COUNT ( * ) * + 74 + + 0 * COUNT ( * ) col2
----
74

query I rowsort
SELECT 62 * + 50
----
3100

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - + 42 + - COUNT( * ) * 48 col2
----
-90

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - + 42 + - COUNT ( * ) * 48 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + COUNT( * ) * COUNT( * ) + - ( 5 )
----
-4

skipif mysql # not compatible
query I rowsort label-8437
SELECT + COUNT ( * ) * COUNT ( * ) + - ( 5 )
----
-4

query I rowsort
SELECT NULLIF ( 86, + 93 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL 30 + - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL 30 + - COUNT ( * ) AS col2
----
29

query I rowsort
SELECT ALL 44 + - 90
----
-46

query I rowsort
SELECT DISTINCT - - 99 + - ( - 12 + 45 ) * 72 col0
----
-2277

query I rowsort
SELECT ALL - 74 + 96
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT - 3 + CASE + 54 + CAST( + ( - NULLIF ( ( 29 ), 4 * - COUNT( * ) ) ) AS SIGNED ) * NULLIF ( 90 * 82 + 52, 63 ) WHEN - 56 / + 62 THEN - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT - 3 + CASE + 54 + CAST ( + ( - NULLIF ( ( 29 ), 4 * - COUNT ( * ) ) ) AS INTEGER ) * NULLIF ( 90 * 82 + 52, 63 ) WHEN - 56 / + 62 THEN - 39 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT 45 * - COALESCE ( - 82, COALESCE ( COALESCE ( - 49, + CAST( NULL AS SIGNED ) + - 17 ), ( + 25 ) * + 32, + COUNT( + 92 ) ), 26 )
----
3690

skipif mysql # not compatible
query I rowsort label-8444
SELECT 45 * - COALESCE ( - 82, COALESCE ( COALESCE ( - 49, + CAST ( NULL AS INTEGER ) + - 17 ), ( + 25 ) * + 32, + COUNT ( + 92 ) ), 26 )
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + SUM( ALL - 66 ) * 98
----
-6468

skipif mysql # not compatible
query I rowsort label-8445
SELECT + SUM ( ALL - 66 ) * 98
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT - COALESCE ( + - COUNT( ALL 91 ), - 61 * + 14, 10 * ( ( - 20 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8446
SELECT - COALESCE ( + - COUNT ( ALL 91 ), - 61 * + 14, 10 * ( ( - 20 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT DISTINCT 87 - - 74 + + MAX( DISTINCT - COALESCE ( 14, 65 * ( + 71 ) + 24 ) )
----
147

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT 87 - - 74 + + MAX ( DISTINCT - COALESCE ( 14, 65 * ( + 71 ) + 24 ) )
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL COALESCE ( - + 43, 88, CAST( NULL AS SIGNED ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL COALESCE ( - + 43, 88, CAST ( NULL AS INTEGER ) )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8449
SELECT + COALESCE ( 62, 60, NULLIF ( COUNT( * ), 60 DIV + NULLIF ( 83, 83 + 23 ) + + 13 ) DIV + 35 - - 11 ) + + 30 * 59
----
1832

skipif mysql # not compatible
query I rowsort label-8449
SELECT + COALESCE ( 62, 60, NULLIF ( COUNT ( * ), 60 / + NULLIF ( 83, 83 + 23 ) + + 13 ) / + 35 - - 11 ) + + 30 * 59
----
1832

query I rowsort
SELECT - COALESCE ( + 5, + 15 ) AS col0
----
-5

query I rowsort
SELECT + 21 + - 78 + 43 * + 84 AS col1
----
3555

query I rowsort
SELECT ALL 86 - + 89 + + 89 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT + ( + - COUNT( * ) ) * + 88
----
-88

skipif mysql # not compatible
query I rowsort label-8453
SELECT + ( + - COUNT ( * ) ) * + 88
----
-88

query I rowsort
SELECT + 68 + 49 col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT DISTINCT COUNT( * ) * + ( + CASE COALESCE ( 16, - 48 - 82 / COUNT( * ) ) WHEN - CAST( - 41 AS SIGNED ) THEN - 16 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT COUNT ( * ) * + ( + CASE COALESCE ( 16, - 48 - 82 / COUNT ( * ) ) WHEN - CAST ( - 41 AS INTEGER ) THEN - 16 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT - 50 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT - 50 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 57 ) * 4
----
228

query I rowsort
SELECT - 33 * 54 + 89 AS col1
----
-1693

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + COUNT( * ) * - + 9 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8459
SELECT + COUNT ( * ) * - + 9 AS col0
----
-9

query I rowsort
SELECT ALL 44 * 13
----
572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT CASE - 40 WHEN + 2 THEN NULL WHEN - 22 THEN NULL ELSE CAST( NULL AS SIGNED ) * 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT CASE - 40 WHEN + 2 THEN NULL WHEN - 22 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 80 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT ALL + ( NULLIF ( 56, - 66 * + COUNT( * ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL + ( NULLIF ( 56, - 66 * + COUNT ( * ) ) )
----
56

query I rowsort
SELECT ALL + + 26 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + COUNT( * ) - - 84 - + 80 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8464
SELECT + COUNT ( * ) - - 84 - + 80 * COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT + - SUM( ALL - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + - SUM ( ALL - 61 ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT + 48 - - + 13 DIV 5 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8466
SELECT + 48 - - + 13 / 5 AS col0
----
50

query I rowsort
SELECT ALL + 18 col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT - 31 * + COUNT( * ) - - 8
----
-23

skipif mysql # not compatible
query I rowsort label-8468
SELECT - 31 * + COUNT ( * ) - - 8
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT - CASE + + 85 WHEN 61 THEN COUNT( * ) + + COALESCE ( 27, 52 ) ELSE + 35 * + 29 END * - 50 + ( 76 + + 44 * - 65 ) AS col0
----
47966

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT - CASE + + 85 WHEN 61 THEN COUNT ( * ) + + COALESCE ( 27, 52 ) ELSE + 35 * + 29 END * - 50 + ( 76 + + 44 * - 65 ) AS col0
----
47966

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL + COUNT( * ) * - + MAX( DISTINCT - 18 ) + - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + COUNT ( * ) * - + MAX ( DISTINCT - 18 ) + - 18 AS col1
----
0

query I rowsort
SELECT ALL - + 65 * - + 69 + - 33 + 78
----
4530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT - + 58 - + - CAST( NULL AS SIGNED ) * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT - + 58 - + - CAST ( NULL AS INTEGER ) * 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL + + 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + + 76 * + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL COUNT( * ) * + 60 + 51 * + 76
----
3936

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL COUNT ( * ) * + 60 + 51 * + 76
----
3936

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT - + 8 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-8475
SELECT - + 8 / - 40
----
0

query I rowsort
SELECT - 34 * + 72
----
-2448

query I rowsort
SELECT - 78 + 79 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + 61 - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8478
SELECT + 61 - - COUNT ( * )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT - 0 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 0 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 5 + + 46 AS col1
----
41

query I rowsort
SELECT ALL - 41 - 58 AS col2
----
-99

query II rowsort
SELECT - 44 AS col1, 27 * 45 * - 5
----
-44
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT ALL COALESCE ( + + 74, - - 77 DIV 83 + + 34 )
----
74

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL COALESCE ( + + 74, - - 77 / 83 + + 34 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL CASE - NULLIF ( + 83, + 16 * + 41 ) WHEN CAST( NULL AS SIGNED ) + 45 * - 45 THEN COUNT( * ) WHEN 49 + COALESCE ( + 46 + 83 * - 24, COUNT( 27 ) + AVG ( 26 - + 46 ), - 69 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL CASE - NULLIF ( + 83, + 16 * + 41 ) WHEN CAST ( NULL AS INTEGER ) + 45 * - 45 THEN COUNT ( * ) WHEN 49 + COALESCE ( + 46 + 83 * - 24, COUNT ( 27 ) + AVG ( 26 - + 46 ), - 69 ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + - 62 )
----
-62

query I rowsort
SELECT ALL ( + - 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + 80 + + 23 + - NULLIF ( COUNT( * ), 41 ) col1
----
102

skipif mysql # not compatible
query I rowsort label-8487
SELECT + 80 + + 23 + - NULLIF ( COUNT ( * ), 41 ) col1
----
102

query I rowsort
SELECT - 10 + - 19 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT + 74 * CASE - 60 WHEN + CAST( - 63 AS SIGNED ) THEN 74 END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT + 74 * CASE - 60 WHEN + CAST ( - 63 AS INTEGER ) THEN 74 END * 21
----
NULL

query I rowsort
SELECT ALL 80 * 55
----
4400

query I rowsort
SELECT - CASE 94 WHEN 49 + 10 THEN 19 + 93 ELSE NULL END * + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT COUNT( DISTINCT - 45 ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT COUNT ( DISTINCT - 45 ) * + 64
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT - COUNT( * ) AS col1, 64 AS col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-8493
SELECT - COUNT ( * ) AS col1, 64 AS col1
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL + 6 * - COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + 6 * - COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT DISTINCT - 52 + + 47
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL 26 + - 33 - ( - COUNT( * ) ) + + 46 * - 81
----
-3732

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL 26 + - 33 - ( - COUNT ( * ) ) + + 46 * - 81
----
-3732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8497
SELECT + 32 + + - MAX( ALL - 19 ) DIV 67 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8497
SELECT + 32 + + - MAX ( ALL - 19 ) / 67 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT ALL 10 DIV - 32 + + + 11 + 34 * + NULLIF ( - 34, COUNT( * ) DIV - NULLIF ( 72 * 39, + 16 * 75 ) )
----
-1145

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL 10 / - 32 + + + 11 + 34 * + NULLIF ( - 34, COUNT ( * ) / - NULLIF ( 72 * 39, + 16 * 75 ) )
----
-1145

query I rowsort
SELECT + 8 * 60 * - 45
----
-21600

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + 28 * + + 49 + - 17 + MAX( + 18 ) * - NULLIF ( 80 - 53, - 33 + 60 ) * 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 28 * + + 49 + - 17 + MAX ( + 18 ) * - NULLIF ( 80 - 53, - 33 + 60 ) * 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT CAST( - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-8501
SELECT CAST ( - 36 AS INTEGER )
----
-36

query I rowsort
SELECT + 93 * 77
----
7161

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT ALL + - 6 DIV - 25 + - 81 + - 6
----
-87

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + - 6 / - 25 + - 81 + - 6
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - 33 * + ( COUNT( * ) ) - 40 col0
----
-73

skipif mysql # not compatible
query I rowsort label-8504
SELECT - 33 * + ( COUNT ( * ) ) - 40 col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT COALESCE ( 7, 1 + - 25, MIN( ALL 96 ) )
----
7

skipif mysql # not compatible
query I rowsort label-8505
SELECT COALESCE ( 7, 1 + - 25, MIN ( ALL 96 ) )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT - - 34 DIV - + 28 - 3
----
-4

skipif mysql # not compatible
query I rowsort label-8506
SELECT - - 34 / - + 28 - 3
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT + 83 DIV MAX( 77 ) + 41 + + 30
----
72

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + 83 / MAX ( 77 ) + 41 + + 30
----
72

query I rowsort
SELECT DISTINCT + - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT + + 12 + + 79 * - NULLIF ( 2, 98 * - 37 ) DIV - COUNT( * ) + 56 AS col0
----
226

skipif mysql # not compatible
query I rowsort label-8509
SELECT + + 12 + + 79 * - NULLIF ( 2, 98 * - 37 ) / - COUNT ( * ) + 56 AS col0
----
226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT ALL - - 56 / + 3 * + + 50 + - 9 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - - 56 / + 3 * + + 50 + - 9 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 9 + + - 51 AS col2
----
-60

query I rowsort
SELECT + 91 * + - 57 + + ( 81 )
----
-5106

query II rowsort
SELECT ALL + 50 AS col0, 98
----
50
98

query I rowsort
SELECT - 32 * 99 * 25 * 31 col1
----
-2455200

query I rowsort
SELECT ALL - + 15 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT + COUNT( ALL - + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-8516
SELECT + COUNT ( ALL - + 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL + 91 - + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) + 39 * 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + 91 - + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) + 39 * 66 AS col0
----
NULL

query I rowsort
SELECT + 98 * + - 18
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT 77 + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8519
SELECT 77 + - COUNT ( * )
----
76

query I rowsort
SELECT ALL + 10 * - 29 AS col2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT 67 + - - 2 + + 50 + + 64 + - MIN( ALL + 14 + 36 * + 0 )
----
169

skipif mysql # not compatible
query I rowsort label-8521
SELECT 67 + - - 2 + + 50 + + 64 + - MIN ( ALL + 14 + 36 * + 0 )
----
169

query I rowsort
SELECT ALL + 38 + + 8 * + 7 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT ALL - 47 DIV + 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - 47 / + 60 col1
----
0

query I rowsort
SELECT DISTINCT 69 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL - COUNT( * ) + + + 4 - - - 6 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL - COUNT ( * ) + + + 4 - - - 6 AS col1
----
-3

query I rowsort
SELECT 2 + + 80 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8527
SELECT ALL ( - 91 ) + + + NULLIF ( + + ( - 9 ), - 24 + + 48 ) DIV - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL ( - 91 ) + + + NULLIF ( + + ( - 9 ), - 24 + + 48 ) / - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT COUNT( * ) + 34 + + 12 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8528
SELECT COUNT ( * ) + 34 + + 12 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT 15 - - NULLIF ( + - 78, 81 ) DIV 42
----
14

skipif mysql # not compatible
query I rowsort label-8529
SELECT 15 - - NULLIF ( + - 78, 81 ) / 42
----
14

query I rowsort
SELECT ALL + ( - 93 ) + 5 + 36 * + 17 AS col1
----
524

query I rowsort
SELECT 1 * - - 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT + 6 * - - COUNT( * ) + + + 29
----
35

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 6 * - - COUNT ( * ) + + + 29
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL + 13 * ( + COUNT( * ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL + 13 * ( + COUNT ( * ) ) AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8534
SELECT ALL + 2 + 80 AS col1, + 29 + + 13 - CASE + 6 WHEN 96 - - SUM( DISTINCT 71 + 74 ) THEN NULL WHEN + 25 / 99 + ( 26 ) THEN + 33 * CAST( NULL AS DECIMAL ) END * 33 AS col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-8534
SELECT ALL + 2 + 80 AS col1, + 29 + + 13 - CASE + 6 WHEN 96 - - SUM ( DISTINCT 71 + 74 ) THEN NULL WHEN + 25 / 99 + ( 26 ) THEN + 33 * CAST ( NULL AS REAL ) END * 33 AS col2
----
82
NULL

query I rowsort
SELECT 91 * + 81 * + 77
----
567567

query I rowsort
SELECT DISTINCT - 78 col1
----
-78

query I rowsort
SELECT ALL ( - 37 ) + - 87 + + - 55 * - 24
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT + CASE - 43 WHEN 44 * 62 THEN ( SUM( DISTINCT - 90 ) ) ELSE - 51 END * + 74 AS col2
----
-3774

skipif mysql # not compatible
query I rowsort label-8538
SELECT + CASE - 43 WHEN 44 * 62 THEN ( SUM ( DISTINCT - 90 ) ) ELSE - 51 END * + 74 AS col2
----
-3774

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT ALL 10 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL 10 / + 78
----
0

query II rowsort
SELECT 16 - 15 col1, + 68
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - 37 * + + COUNT( 54 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8541
SELECT - 37 * + + COUNT ( 54 ) AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL 77 DIV - COUNT( * ) * COUNT( * ) + + 40
----
-37

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL 77 / - COUNT ( * ) * COUNT ( * ) + + 40
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT NULLIF ( + 18, + ( - 96 ) + ( 51 ) ) DIV COUNT( DISTINCT 25 )
----
18

skipif mysql # not compatible
query I rowsort label-8543
SELECT NULLIF ( + 18, + ( - 96 ) + ( 51 ) ) / COUNT ( DISTINCT 25 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + MAX( - + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8544
SELECT + MAX ( - + 45 )
----
-45

query I rowsort
SELECT + - 9 AS col0
----
-9

query I rowsort
SELECT + - 39 AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT ALL + COALESCE ( - 47, - 92 * + + COUNT( * ) + 19 ) DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + COALESCE ( - 47, - 92 * + + COUNT ( * ) + 19 ) / + 67
----
0

query I rowsort
SELECT ALL - - 40 AS col1
----
40

query I rowsort
SELECT + 59 * + 95 * + 99 - + 48 AS col0
----
554847

query I rowsort
SELECT DISTINCT 69 * 65 AS col2
----
4485

query I rowsort
SELECT ( 23 ) + 76 col0
----
99

query I rowsort
SELECT 96 * - - 30 AS col0
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT SUM( + - CAST( 75 AS SIGNED ) ) + + - 74 * + COUNT( 68 )
----
-149

skipif mysql # not compatible
query I rowsort label-8553
SELECT SUM ( + - CAST ( 75 AS INTEGER ) ) + + - 74 * + COUNT ( 68 )
----
-149

query I rowsort
SELECT 79 col0
----
79

query I rowsort
SELECT 15 - + 35
----
-20

query II rowsort
SELECT ALL 7 AS col2, + 25 + 4 * - 70 * + 96
----
7
-26855

query I rowsort
SELECT 86 * - ( - 34 ) * COALESCE ( 86, - 31 ) AS col2
----
251464

query I rowsort
SELECT ALL 68 + 9 + + - 29 AS col0
----
48

query I rowsort
SELECT ALL 27 + - 91 * + + 88 * - 99 AS col2
----
792819

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT - COUNT( + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-8560
SELECT - COUNT ( + 3 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT ALL - 52 + + 68 + + 47 DIV + 80 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - 52 + + 68 + + 47 / + 80 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT 5 + + CAST( - + COALESCE ( - 13, - + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-8563
SELECT 5 + + CAST ( - + COALESCE ( - 13, - + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
18

query I rowsort
SELECT 12 * 19 AS col1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL COUNT( + + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL COUNT ( + + 57 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL + 7 + + - 15 * + 42 + 56 + + + MAX( 61 )
----
-506

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + 7 + + - 15 * + 42 + 56 + + + MAX ( 61 )
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT COUNT( * ) + + - 43 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8567
SELECT COUNT ( * ) + + - 43 AS col0
----
-42

query I rowsort
SELECT 11 + - - 96
----
107

query I rowsort
SELECT 6 - + + 68
----
-62

query II rowsort
SELECT ALL - + 3 col2, 86 col0
----
-3
86

query I rowsort
SELECT DISTINCT - - 43
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT ALL - COUNT( * ), 18 AS col0
----
-1
18

skipif mysql # not compatible
query II rowsort label-8572
SELECT ALL - COUNT ( * ), 18 AS col0
----
-1
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT + 82 DIV + - 99 + 12 + - 95
----
-83

skipif mysql # not compatible
query I rowsort label-8573
SELECT + 82 / + - 99 + 12 + - 95
----
-83

query I rowsort
SELECT + 87 * + + 90 * + 3 * 25
----
587250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT + - COALESCE ( + 79, + + CAST( NULL AS SIGNED ) + - CAST( COUNT( * ) AS SIGNED ) + - 53 * + 52 * 6, 40 * 24 )
----
-79

skipif mysql # not compatible
query I rowsort label-8575
SELECT + - COALESCE ( + 79, + + CAST ( NULL AS INTEGER ) + - CAST ( COUNT ( * ) AS INTEGER ) + - 53 * + 52 * 6, 40 * 24 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + - 3 * + + 77 * + 20 + + - 10 - - 93 + + ( 78 ) * - COUNT( * ) AS col1
----
-4615

skipif mysql # not compatible
query I rowsort label-8576
SELECT + - 3 * + + 77 * + 20 + + - 10 - - 93 + + ( 78 ) * - COUNT ( * ) AS col1
----
-4615

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - + COUNT( * ) + + 46
----
45

skipif mysql # not compatible
query I rowsort label-8577
SELECT - + COUNT ( * ) + + 46
----
45

query I rowsort
SELECT - 53 * + 24 - 61
----
-1333

query I rowsort
SELECT ALL + - 27 AS col2
----
-27

query I rowsort
SELECT DISTINCT - 96 * 39
----
-3744

query II rowsort
SELECT ALL + - COALESCE ( 37, - 58 ) col2, 56
----
-37
56

query I rowsort
SELECT ALL - 63 * - 87 + 66 AS col0
----
5547

query I rowsort
SELECT ALL + - 54
----
-54

query I rowsort
SELECT + 94 + + 72
----
166

query I rowsort
SELECT ALL + NULLIF ( 38, NULLIF ( 91, + 53 ) * 30 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT - COUNT( * ) * 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8586
SELECT - COUNT ( * ) * 71 AS col2
----
-71

query I rowsort
SELECT + + 19 + - - 8 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT + COUNT( DISTINCT - NULLIF ( - 44, + 2 * - 91 + + + 75 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8588
SELECT + COUNT ( DISTINCT - NULLIF ( - 44, + 2 * - 91 + + + 75 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8589
SELECT COUNT( * ) AS col2, 54
----
1
54

skipif mysql # not compatible
query II rowsort label-8589
SELECT COUNT ( * ) AS col2, 54
----
1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - SUM( ALL 20 ) * - - COALESCE ( + 5, + 63 * + - 8 ) + 38 * 3 + ( + 62 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8590
SELECT - SUM ( ALL 20 ) * - - COALESCE ( + 5, + 63 * + - 8 ) + 38 * 3 + ( + 62 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + COUNT( * ) * 96 * + COUNT( DISTINCT - 27 ) * 79 AS col1
----
7584

skipif mysql # not compatible
query I rowsort label-8591
SELECT + COUNT ( * ) * 96 * + COUNT ( DISTINCT - 27 ) * 79 AS col1
----
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT MIN( DISTINCT - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8592
SELECT MIN ( DISTINCT - 52 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT + 65 + 35 / NULLIF ( 67, 43 ) + - 68 + CAST( NULL AS SIGNED ) * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + 65 + 35 / NULLIF ( 67, 43 ) + - 68 + CAST ( NULL AS INTEGER ) * 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL COUNT( * ) + - 38
----
-37

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL COUNT ( * ) + - 38
----
-37

query I rowsort
SELECT + 15 * - 58 AS col1
----
-870

query I rowsort
SELECT ALL 21 * - 26 AS col2
----
-546

query I rowsort
SELECT DISTINCT 80 * - - 81 AS col1
----
6480

query I rowsort
SELECT + 92 * 17 AS col1
----
1564

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT ALL 15 + ( - 60 ) DIV - 21
----
17

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL 15 + ( - 60 ) / - 21
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - COUNT( DISTINCT 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-8600
SELECT - COUNT ( DISTINCT 18 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8601
SELECT 94 AS col1, COALESCE ( - - ( - - CAST( NULL AS SIGNED ) ), + 13 ) * + 66 AS col0
----
94
858

skipif mysql # not compatible
query II rowsort label-8601
SELECT 94 AS col1, COALESCE ( - - ( - - CAST ( NULL AS INTEGER ) ), + 13 ) * + 66 AS col0
----
94
858

query I rowsort
SELECT + 97 + 77
----
174

query I rowsort
SELECT + 56 - 72 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL COUNT( DISTINCT + NULLIF ( - 31, - + 80 * - 42 * - NULLIF ( - 14, + 89 + - 64 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL COUNT ( DISTINCT + NULLIF ( - 31, - + 80 * - 42 * - NULLIF ( - 14, + 89 + - 64 ) ) ) AS col2
----
1

query II rowsort
SELECT DISTINCT 87 AS col2, + 11 AS col0
----
87
11

query I rowsort
SELECT + + 74 + + 41 AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - + COUNT( * ) + - + CASE ( + NULLIF ( + 72, + 21 * + 61 ) ) WHEN 88 * - 84 + 15 THEN - CAST( NULL AS SIGNED ) END * 87 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - + CASE ( + NULLIF ( + 72, + 21 * + 61 ) ) WHEN 88 * - 84 + 15 THEN - CAST ( NULL AS INTEGER ) END * 87 * - 62
----
NULL

query II rowsort
SELECT + + 30 * + 76 col1, - 72 AS col1
----
2280
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT - 61 - + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - 61 - + - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT DISTINCT - MIN( + + 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT - MIN ( + + 61 )
----
-61

query I rowsort
SELECT + 28 * + 42
----
1176

query I rowsort
SELECT + NULLIF ( - - NULLIF ( + 33, 51 ), ( - 95 ) ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT ALL + 3 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL + 3 / + 43
----
0

query I rowsort
SELECT - 50 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT + + 50 * + + SUM( - + 63 ) AS col2
----
-3150

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT + + 50 * + + SUM ( - + 63 ) AS col2
----
-3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8616
SELECT DISTINCT COUNT( * ) DIV - COUNT( ALL + 74 ) + ( - + COALESCE ( 82, - COALESCE ( - 53, - ( - ( 86 ) ) ) ) ) - COUNT( * ) * + 88 AS col0
----
-171

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT COUNT ( * ) / - COUNT ( ALL + 74 ) + ( - + COALESCE ( 82, - COALESCE ( - 53, - ( - ( 86 ) ) ) ) ) - COUNT ( * ) * + 88 AS col0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT - COUNT( * ) - + ( + + 4 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8617
SELECT - COUNT ( * ) - + ( + + 4 ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT - - 73 * ( + 4 ) DIV ( - + 32 ) - 95 + CASE 54 + - 65 WHEN 21 THEN NULL ELSE 31 * 3 + - 19 END DIV - 36 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-8618
SELECT - - 73 * ( + 4 ) / ( - + 32 ) - 95 + CASE 54 + - 65 WHEN 21 THEN NULL ELSE 31 * 3 + - 19 END / - 36 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL - MAX( 12 ) * 90
----
-1080

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - MAX ( 12 ) * 90
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT + COUNT( * ) * - - MAX( 20 ) + 13
----
33

skipif mysql # not compatible
query I rowsort label-8620
SELECT + COUNT ( * ) * - - MAX ( 20 ) + 13
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8621
SELECT ( - NULLIF ( - + COUNT( * ), + COUNT( * ) * 29 * - + 38 * - 58 * 41 + - ( 62 + CAST( NULL AS DECIMAL ) ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8621
SELECT ( - NULLIF ( - + COUNT ( * ), + COUNT ( * ) * 29 * - + 38 * - 58 * 41 + - ( 62 + CAST ( NULL AS REAL ) ) ) ) col2
----
1

query I rowsort
SELECT + 95 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - COUNT( * ) * + 87 * + 18
----
-1566

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COUNT ( * ) * + 87 * + 18
----
-1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL - 46 * - - CAST( NULL AS SIGNED ) + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL - 46 * - - CAST ( NULL AS INTEGER ) + + 37 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 88, - 83 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8626
SELECT ALL + 79 * + CAST( NULL AS DECIMAL ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + 79 * + CAST ( NULL AS REAL ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT - 16 - - 1 - - + 49 * 1 * + + 11 * - - 12
----
6453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT DISTINCT 19 * - - 21 * + 63 * + CAST( NULL AS SIGNED ) + 62 + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT 19 * - - 21 * + 63 * + CAST ( NULL AS INTEGER ) + 62 + - 59 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( 73, - - 36 ) AS col2
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8630
SELECT ALL + CAST( NULL AS DECIMAL ) * - 31 + - 51 / - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + CAST ( NULL AS REAL ) * - 31 + - 51 / - 69 AS col0
----
NULL

query I rowsort
SELECT - 80 + - ( - + 95 ) col1
----
15

query II rowsort
SELECT + ( - 48 ) AS col1, - 81
----
-48
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8633
SELECT - 56 + + - COUNT( * ) + - CASE 64 WHEN - - COUNT( * ) THEN - 57 * COUNT( * ) + - COUNT( ALL + 88 + ( + CAST( 78 AS SIGNED ) ) * 88 ) WHEN 17 + + 35 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT - 56 + + - COUNT ( * ) + - CASE 64 WHEN - - COUNT ( * ) THEN - 57 * COUNT ( * ) + - COUNT ( ALL + 88 + ( + CAST ( 78 AS INTEGER ) ) * 88 ) WHEN 17 + + 35 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL CASE + COUNT( * ) WHEN + 92 THEN 71 * - ( 12 ) / 56 * 80 - + 47 END / - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL CASE + COUNT ( * ) WHEN + 92 THEN 71 * - ( 12 ) / 56 * 80 - + 47 END / - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT SUM( + - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8635
SELECT SUM ( + - 5 )
----
-5

query I rowsort
SELECT + 38 - + 28 + 84 - 95 AS col0
----
-1

query I rowsort
SELECT - NULLIF ( + 77, 2 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL 61 * + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL 61 * + COUNT ( * ) AS col0
----
61

query I rowsort
SELECT DISTINCT 98 * + 80 AS col1
----
7840

query I rowsort
SELECT ALL 2 * 94
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - 86 + - - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 86 + - - COUNT ( * )
----
-85

query I rowsort
SELECT - 60 * - + ( + + 91 ) + + 86 + 80 AS col0
----
5626

query I rowsort
SELECT - - 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT COUNT( * ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-8644
SELECT COUNT ( * ) + 73
----
74

query I rowsort
SELECT + 26 * ( + + 27 )
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT CASE + - 87 WHEN COUNT( * ) - - 1 + - + 39 THEN - COUNT( * ) ELSE NULL END - + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT CASE + - 87 WHEN COUNT ( * ) - - 1 + - + 39 THEN - COUNT ( * ) ELSE NULL END - + 94 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8647
SELECT - CASE - 26 WHEN - - 18 THEN + COUNT( - 68 ) ELSE - + 74 * AVG ( CAST( NULL AS SIGNED ) ) + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT - CASE - 26 WHEN - - 18 THEN + COUNT ( - 68 ) ELSE - + 74 * AVG ( CAST ( NULL AS INTEGER ) ) + 80 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL MIN( CAST( - COALESCE ( - ( + + 10 ), - 49 / + ( + 68 ), 56 ) AS SIGNED ) )
----
10

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL MIN ( CAST ( - COALESCE ( - ( + + 10 ), - 49 / + ( + 68 ), 56 ) AS INTEGER ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + MIN( + 90 ) + CASE ( + 89 ) WHEN - ( - 94 ) * 91 + 94 THEN NULL WHEN + MAX( 36 ) THEN 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + MIN ( + 90 ) + CASE ( + 89 ) WHEN - ( - 94 ) * 91 + 94 THEN NULL WHEN + MAX ( 36 ) THEN 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT 84 + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8650
SELECT 84 + - COUNT ( * )
----
83

query I rowsort
SELECT ALL 32 + + + 62 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT 77 * - - 25 + + COUNT( * )
----
1926

skipif mysql # not compatible
query I rowsort label-8652
SELECT 77 * - - 25 + + COUNT ( * )
----
1926

query I rowsort
SELECT + 40 col0
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8654
SELECT - CAST( NULL AS DECIMAL ) * - + 19 * 76 * - - 58 * + + 2 + 20 - + 68 - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT - CAST ( NULL AS REAL ) * - + 19 * 76 * - - 58 * + + 2 + 20 - + 68 - 13
----
NULL

query I rowsort
SELECT 17 * - + 60 + 22 AS col0
----
-998

query I rowsort
SELECT DISTINCT 11 * - - 1 AS col0
----
11

query II rowsort
SELECT + 90 AS col1, + 41
----
90
41

query I rowsort
SELECT ALL + 20 + - 53 col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT 20 DIV + 37 + + ( - 25 ) * - - 3 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8659
SELECT 20 / + 37 + + ( - 25 ) * - - 3 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL - MAX( 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - MAX ( 15 ) AS col2
----
-15

query II rowsort
SELECT ALL - ( + - 44 ) * + + 41, 20 * - + 85 AS col0
----
1804
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT 15 + + + 73 + 60 * + COALESCE ( + ( + 9 ), + COUNT( * ) ) AS col2
----
628

skipif mysql # not compatible
query I rowsort label-8662
SELECT 15 + + + 73 + 60 * + COALESCE ( + ( + 9 ), + COUNT ( * ) ) AS col2
----
628

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT ( MIN( - + 17 ) ) * 32 AS col0
----
-544

skipif mysql # not compatible
query I rowsort label-8663
SELECT ( MIN ( - + 17 ) ) * 32 AS col0
----
-544

onlyif mysql # aggregate syntax: 
query III rowsort label-8664
SELECT 32 AS col2, - ( - 19 ) + + COUNT( DISTINCT + 44 ) * - 46, - - 10 AS col0
----
32
-27
10

skipif mysql # not compatible
query III rowsort label-8664
SELECT 32 AS col2, - ( - 19 ) + + COUNT ( DISTINCT + 44 ) * - 46, - - 10 AS col0
----
32
-27
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL - COUNT( + + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - COUNT ( + + 86 ) AS col1
----
-1

query II rowsort
SELECT 21 * - 83 + 13, + 70 + - 89 AS col0
----
-1730
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT 48 * + - 75 * - 93 + + - 97 + - + MIN( ALL - - ( + 2 ) ) * CAST( + 95 AS SIGNED ) AS col1
----
334513

skipif mysql # not compatible
query I rowsort label-8667
SELECT 48 * + - 75 * - 93 + + - 97 + - + MIN ( ALL - - ( + 2 ) ) * CAST ( + 95 AS INTEGER ) AS col1
----
334513

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT 13 AS col2, - 72 + MIN( DISTINCT + - 18 ) * + 89 AS col0
----
13
-1674

skipif mysql # not compatible
query II rowsort label-8668
SELECT 13 AS col2, - 72 + MIN ( DISTINCT + - 18 ) * + 89 AS col0
----
13
-1674

query I rowsort
SELECT 21 * + 11 AS col2
----
231

onlyif mysql # aggregate syntax: 
query II rowsort label-8670
SELECT ALL - 57 - + 64 * 34, MIN( 4 ) AS col2
----
-2233
4

skipif mysql # not compatible
query II rowsort label-8670
SELECT ALL - 57 - + 64 * 34, MIN ( 4 ) AS col2
----
-2233
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8671
SELECT DISTINCT - CAST( CASE WHEN NULL > NULL THEN 89 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT - CAST ( CASE WHEN NULL > NULL THEN 89 ELSE NULL END AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT + ( - - 62 ) * 1 AS col0, - 35
----
62
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - 33 * + + ( - COALESCE ( + 97, COUNT( * ) ) ) + + 64 + - 22
----
3243

skipif mysql # not compatible
query I rowsort label-8673
SELECT - 33 * + + ( - COALESCE ( + 97, COUNT ( * ) ) ) + + 64 + - 22
----
3243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT COALESCE ( COUNT( * ), 2 ) * + COUNT( * ) DIV + - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT COALESCE ( COUNT ( * ), 2 ) * + COUNT ( * ) / + - 90 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT DISTINCT 32 * - 17 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT 32 * - 17 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT ( - + COUNT( * ) ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT ( - + COUNT ( * ) ) / + 96
----
0

query II rowsort
SELECT ALL 40, + 97 + + 21 AS col2
----
40
118

onlyif mysql # DIV for integer division: 
query I rowsort label-8678
SELECT DISTINCT - - 42 + + + 13 DIV - COALESCE ( - 15, - 13 ) + + + 23 + + 22 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - - 42 + + + 13 / - COALESCE ( - 15, - 13 ) + + + 23 + + 22 AS col2
----
87

query I rowsort
SELECT ALL 77 + - + 82 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT - 47 DIV - + 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8680
SELECT - 47 / - + 36 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL - 76 + + + 33 * - CAST( COALESCE ( + - 17, + - 67 + - COUNT( * ) + 73, - 6 * COUNT( * ) ) AS SIGNED ) AS col2
----
485

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - 76 + + + 33 * - CAST ( COALESCE ( + - 17, + - 67 + - COUNT ( * ) + 73, - 6 * COUNT ( * ) ) AS INTEGER ) AS col2
----
485

query I rowsort
SELECT ALL 21 * - 51 AS col2
----
-1071

query I rowsort
SELECT 98 * - 69 AS col1
----
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT + COUNT( DISTINCT 48 )
----
1

skipif mysql # not compatible
query I rowsort label-8684
SELECT + COUNT ( DISTINCT 48 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8685
SELECT CAST( NULL AS DECIMAL ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT CAST ( NULL AS REAL ) + 15
----
NULL

query I rowsort
SELECT DISTINCT ( + + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL - COUNT( * ) + + 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL - COUNT ( * ) + + 9 AS col1
----
8

query I rowsort
SELECT + 96 + + 80
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT ALL + - 93 * + COALESCE ( + 90, - 41 + + - 46 + NULLIF ( + + 71, + 19 DIV - 7 + 31 ) - + 1, - 11 + 61 ) * - 30 + 91 DIV NULLIF ( + 49 * + 35, - 78 )
----
251100

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + - 93 * + COALESCE ( + 90, - 41 + + - 46 + NULLIF ( + + 71, + 19 / - 7 + 31 ) - + 1, - 11 + 61 ) * - 30 + 91 / NULLIF ( + 49 * + 35, - 78 )
----
251100

query I rowsort
SELECT DISTINCT - - 5
----
5

query II rowsort
SELECT - 70 AS col0, + 51 - + 59 + - 34
----
-70
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8692
SELECT ALL + COUNT( + 34 ) * - 75 * NULLIF ( - 0, + 34 ) * - - 10 DIV - + 91 - + + ( + 0 ) - - 42 * 79
----
3318

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + COUNT ( + 34 ) * - 75 * NULLIF ( - 0, + 34 ) * - - 10 / - + 91 - + + ( + 0 ) - - 42 * 79
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT COUNT( DISTINCT + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-8693
SELECT COUNT ( DISTINCT + 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL 92 * COUNT( * ) * - + 12 AS col1
----
-1104

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL 92 * COUNT ( * ) * - + 12 AS col1
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - 67 * - - 97 + + 56 * - COUNT( * ) * 25
----
-7899

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 67 * - - 97 + + 56 * - COUNT ( * ) * 25
----
-7899

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT 62 DIV - 72 * 96 + - ( + 69 ) DIV ( - - 19 ) DIV - 79 + + - 84 + - 91
----
-175

skipif mysql # not compatible
query I rowsort label-8696
SELECT 62 / - 72 * 96 + - ( + 69 ) / ( - - 19 ) / - 79 + + - 84 + - 91
----
-175

query I rowsort
SELECT 21 * + - 46
----
-966

query I rowsort
SELECT ALL 56 * 23
----
1288

query I rowsort
SELECT ( 12 ) * + 23 AS col1
----
276

query I rowsort
SELECT ALL - NULLIF ( - 50, - 36 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT 46 * 73, - 8 + - COUNT( * ) * + - COUNT( * ) + - 59 * - 47 * + 85 + 65 AS col2
----
3358
235763

skipif mysql # not compatible
query II rowsort label-8701
SELECT 46 * 73, - 8 + - COUNT ( * ) * + - COUNT ( * ) + - 59 * - 47 * + 85 + 65 AS col2
----
3358
235763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8702
SELECT - NULLIF ( + 86, + + COALESCE ( + + ( 18 ), + - 70 * + - 82 + + 60 * - + 52, 61 ) * + 60 ) * ( COUNT( * ) DIV CASE - 65 WHEN 18 * 52 THEN - 98 * 25 WHEN - 41 THEN NULL ELSE + 30 END ) + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8702
SELECT - NULLIF ( + 86, + + COALESCE ( + + ( 18 ), + - 70 * + - 82 + + 60 * - + 52, 61 ) * + 60 ) * ( COUNT ( * ) / CASE - 65 WHEN 18 * 52 THEN - 98 * 25 WHEN - 41 THEN NULL ELSE + 30 END ) + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ( COUNT( * ) ) * - 1 * - 97 * MAX( + + 23 ) * - 17 col0
----
-37927

skipif mysql # not compatible
query I rowsort label-8703
SELECT ( COUNT ( * ) ) * - 1 * - 97 * MAX ( + + 23 ) * - 17 col0
----
-37927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8704
SELECT - CASE - 74 WHEN - CASE - MIN( DISTINCT - - 5 ) WHEN + + CAST( NULL AS SIGNED ) / MIN( + 88 ) * + 6 + + CAST( NULL AS SIGNED ) * + 72 THEN NULL WHEN 90 THEN NULL ELSE - CAST( + COUNT( * ) AS SIGNED ) END THEN + 80 + 57 END * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT - CASE - 74 WHEN - CASE - MIN ( DISTINCT - - 5 ) WHEN + + CAST ( NULL AS INTEGER ) / MIN ( + 88 ) * + 6 + + CAST ( NULL AS INTEGER ) * + 72 THEN NULL WHEN 90 THEN NULL ELSE - CAST ( + COUNT ( * ) AS INTEGER ) END THEN + 80 + 57 END * - 42 AS col1
----
NULL

query I rowsort
SELECT + + 68 + 54
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - CASE - ( + 69 ) WHEN - MIN( DISTINCT - 44 ) THEN NULL ELSE - 77 * - 92 END * - + 47
----
332948

skipif mysql # not compatible
query I rowsort label-8706
SELECT - CASE - ( + 69 ) WHEN - MIN ( DISTINCT - 44 ) THEN NULL ELSE - 77 * - 92 END * - + 47
----
332948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT DISTINCT + 40 + - + CAST( 13 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + 40 + - + CAST ( 13 AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT - 29 * 8
----
-232

query I rowsort
SELECT ALL 64 + - 68 + + - 31 * 60 AS col2
----
-1864

query I rowsort
SELECT DISTINCT - ( - 75 ) AS col1
----
75

query I rowsort
SELECT ALL - 91 + - 10
----
-101

query I rowsort
SELECT - - 85 * 54
----
4590

query I rowsort
SELECT DISTINCT - 80 + - 65 * - 42 * - 40
----
-109280

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT - MAX( 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-8714
SELECT - MAX ( 27 )
----
-27

query I rowsort
SELECT ALL - + 89 + - 70 - + 81 - + ( + 7 ) * 44 AS col1
----
-548

query I rowsort
SELECT DISTINCT 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT + SUM( DISTINCT - ( + 8 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-8717
SELECT + SUM ( DISTINCT - ( + 8 ) )
----
-8

query I rowsort
SELECT ALL + ( 63 )
----
63

query I rowsort
SELECT - + 50 + 17 + 24
----
-9

query I rowsort
SELECT - - 44 AS col1
----
44

query I rowsort
SELECT - 11 + + 0 + 29 * + 37
----
1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8722
SELECT ALL - - COUNT( + CAST( NULL AS SIGNED ) ) + + 64 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - - COUNT ( + CAST ( NULL AS INTEGER ) ) + + 64 AS col2
----
64

query I rowsort
SELECT ALL ( - ( - 66 ) )
----
66

query I rowsort
SELECT - 38 * 15 col0
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL MAX ( ALL - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL - - 72 - + 63 * 73 * + 0 + - COUNT( * ) + 38 - + CASE - CASE - COUNT( * ) WHEN - 23 THEN 47 + + ( - 9 + 18 * 46 ) WHEN + 19 THEN NULL END WHEN - 46 * - 53 THEN ( COUNT( * ) ) * + 99 + ( 69 - 25 * 25 ) * 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - - 72 - + 63 * 73 * + 0 + - COUNT ( * ) + 38 - + CASE - CASE - COUNT ( * ) WHEN - 23 THEN 47 + + ( - 9 + 18 * 46 ) WHEN + 19 THEN NULL END WHEN - 46 * - 53 THEN ( COUNT ( * ) ) * + 99 + ( 69 - 25 * 25 ) * 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8727
SELECT + 82 * + 3 + - COUNT( * ) AS col2, 43
----
245
43

skipif mysql # not compatible
query II rowsort label-8727
SELECT + 82 * + 3 + - COUNT ( * ) AS col2, 43
----
245
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - SUM( DISTINCT + 46 ) * + 43 + + 10 * - 74 AS col0
----
-2718

skipif mysql # not compatible
query I rowsort label-8728
SELECT - SUM ( DISTINCT + 46 ) * + 43 + + 10 * - 74 AS col0
----
-2718

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT 29 * + 88 + + 51 * - COUNT( * ) AS col2
----
2501

skipif mysql # not compatible
query I rowsort label-8729
SELECT 29 * + 88 + + 51 * - COUNT ( * ) AS col2
----
2501

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8730
SELECT CAST( + + AVG ( ALL 50 ) AS SIGNED ) DIV - + 41 + - 85
----
-86

skipif mysql # not compatible
query I rowsort label-8730
SELECT CAST ( + + AVG ( ALL 50 ) AS INTEGER ) / - + 41 + - 85
----
-86

query I rowsort
SELECT ( - ( 48 ) )
----
-48

query I rowsort
SELECT + CASE - 88 WHEN 60 THEN - + 26 * - 24 WHEN + COALESCE ( 11, 71 * - - ( - 73 ) ) THEN NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT - 57 + 61 DIV + 2
----
-27

skipif mysql # not compatible
query I rowsort label-8733
SELECT - 57 + 61 / + 2
----
-27

query I rowsort
SELECT ( ( - 89 ) ) AS col0
----
-89

query I rowsort
SELECT ( - 9 ) AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT 57 * ( + 2 ) + + 70 + 79 DIV 94 * + - 88 * + - 34
----
184

skipif mysql # not compatible
query I rowsort label-8736
SELECT 57 * ( + 2 ) + + 70 + 79 / 94 * + - 88 * + - 34
----
184

query I rowsort
SELECT DISTINCT 38 * + + 54
----
2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8738
SELECT - 50 DIV + 67 + - COALESCE ( 3, - + COUNT( + 55 ) ) + - 25 * + SUM( ALL - ( + - 85 ) ) col2
----
-2128

skipif mysql # not compatible
query I rowsort label-8738
SELECT - 50 / + 67 + - COALESCE ( 3, - + COUNT ( + 55 ) ) + - 25 * + SUM ( ALL - ( + - 85 ) ) col2
----
-2128

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT + COUNT( * ), - 21 AS col1
----
1
-21

skipif mysql # not compatible
query II rowsort label-8739
SELECT + COUNT ( * ), - 21 AS col1
----
1
-21

query I rowsort
SELECT DISTINCT 2 * - + 85
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8741
SELECT + CASE - - 22 WHEN + - 91 * - CAST( NULL AS SIGNED ) - COUNT( * ) + - 88 + 50 + + + 25 THEN 29 * 63 / + ( 58 ) + 3 WHEN NULLIF ( 1, 77 ) THEN NULL WHEN - 11 THEN NULL ELSE 67 * 64 + 85 * 58 END col2
----
9218

skipif mysql # not compatible
query I rowsort label-8741
SELECT + CASE - - 22 WHEN + - 91 * - CAST ( NULL AS INTEGER ) - COUNT ( * ) + - 88 + 50 + + + 25 THEN 29 * 63 / + ( 58 ) + 3 WHEN NULLIF ( 1, 77 ) THEN NULL WHEN - 11 THEN NULL ELSE 67 * 64 + 85 * 58 END col2
----
9218

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8742
SELECT - CAST( NULL AS DECIMAL ) * + 12 + - - 99 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT - CAST ( NULL AS REAL ) * + 12 + - - 99 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT + 43 * - CAST( NULL AS SIGNED ) * AVG ( DISTINCT 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT + 43 * - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 46 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT + 61 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8744
SELECT + 61 / - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + SUM( 76 ) * + 31 + - - 32
----
2388

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + SUM ( 76 ) * + 31 + - - 32
----
2388

query I rowsort
SELECT ALL - 18 * + + 63 + - - 49 * + 94 AS col1
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL - - COUNT( * ) * + 72 * 33 + + - 25
----
2351

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL - - COUNT ( * ) * + 72 * 33 + + - 25
----
2351

query I rowsort
SELECT ALL 16 * + 80 + - 81
----
1199

query I rowsort
SELECT + + 14 + + - 66
----
-52

query I rowsort
SELECT 40 * 48 - + 14 + ( - 28 ) + - 5 - + - 19
----
1892

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT - - 81 DIV + - 75
----
-1

skipif mysql # not compatible
query I rowsort label-8751
SELECT - - 81 / + - 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT - + CASE 45 WHEN + 33 * - 8 THEN + 98 * MAX( DISTINCT + - 34 ) - CAST( NULL AS SIGNED ) WHEN + AVG ( - - 22 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT - + CASE 45 WHEN + 33 * - 8 THEN + 98 * MAX ( DISTINCT + - 34 ) - CAST ( NULL AS INTEGER ) WHEN + AVG ( - - 22 ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + CASE - 37 WHEN COALESCE ( - - COUNT( * ), + 45 + 55 + - 77 ) THEN NULL WHEN - 69 THEN NULL WHEN + 42 THEN + + COUNT( * ) * ( 47 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT + CASE - 37 WHEN COALESCE ( - - COUNT ( * ), + 45 + 55 + - 77 ) THEN NULL WHEN - 69 THEN NULL WHEN + 42 THEN + + COUNT ( * ) * ( 47 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL + 24 * + - 48 + + COUNT( * ) AS col2
----
-1151

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + 24 * + - 48 + + COUNT ( * ) AS col2
----
-1151

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT + - 96 - - 9 - 77 DIV - 16 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8755
SELECT + - 96 - - 9 - 77 / - 16 AS col2
----
-83

query I rowsort
SELECT - 51 + 66 AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT DISTINCT - + 12 + - COUNT( + 39 ) - + - NULLIF ( - - 12, + 52 ) DIV - + CASE WHEN + - 93 NOT IN ( 16 * 83 ) OR NOT - 24 IS NOT NULL THEN - 97 * + COALESCE ( 92, 91, - 40 DIV + 31 ) + 60 * 73 END AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT - + 12 + - COUNT ( + 39 ) - + - NULLIF ( - - 12, + 52 ) / - + CASE WHEN + - 93 NOT IN ( 16 * 83 ) OR NOT - 24 IS NOT NULL THEN - 97 * + COALESCE ( 92, 91, - 40 / + 31 ) + 60 * 73 END AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL - 35 * - + 30 * + + 82 * COUNT( * ) + + - MIN( DISTINCT - - 47 ) + + + 68 * + + 76
----
91221

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - 35 * - + 30 * + + 82 * COUNT ( * ) + + - MIN ( DISTINCT - - 47 ) + + + 68 * + + 76
----
91221

query I rowsort
SELECT DISTINCT 83 - - 88 * + - 32 + + 14 AS col2
----
-2719

onlyif mysql # DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT - 85 - - 47 DIV 35 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT - 85 - - 47 / 35 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8761
SELECT - 36 - - - COALESCE ( + 65, + + 33 ) * + 20, - ( CASE + 98 WHEN 62 THEN - COUNT( * ) * 48 WHEN - COUNT( * ) THEN + 84 * COUNT( * ) WHEN + 82 THEN ( + 91 ) - + 0 END ) / - 65 AS col0
----
-1336
NULL

skipif mysql # not compatible
query II rowsort label-8761
SELECT - 36 - - - COALESCE ( + 65, + + 33 ) * + 20, - ( CASE + 98 WHEN 62 THEN - COUNT ( * ) * 48 WHEN - COUNT ( * ) THEN + 84 * COUNT ( * ) WHEN + 82 THEN ( + 91 ) - + 0 END ) / - 65 AS col0
----
-1336
NULL

query I rowsort
SELECT - + ( 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + 84 * - + 45 * COUNT( * ) * - 23
----
86940

skipif mysql # not compatible
query I rowsort label-8763
SELECT + 84 * - + 45 * COUNT ( * ) * - 23
----
86940

query I rowsort
SELECT DISTINCT ( 14 )
----
14

query I rowsort
SELECT ALL ( - 58 ) AS col1
----
-58

query I rowsort
SELECT 5 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT - COUNT( * ) * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8767
SELECT - COUNT ( * ) * + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - 45 * 64 * COUNT( * )
----
-2880

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 45 * 64 * COUNT ( * )
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - 63 + - COUNT( * ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 63 + - COUNT ( * ) col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL - CASE - - NULLIF ( + COUNT( + ( + - 4 ) ), - 81 ) WHEN + + 42 THEN NULL WHEN + + 8 THEN - MIN( + 24 ) + - 40 WHEN CAST( 46 AS SIGNED ) THEN NULL ELSE NULL END / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - CASE - - NULLIF ( + COUNT ( + ( + - 4 ) ), - 81 ) WHEN + + 42 THEN NULL WHEN + + 8 THEN - MIN ( + 24 ) + - 40 WHEN CAST ( 46 AS INTEGER ) THEN NULL ELSE NULL END / - 22
----
NULL

query II rowsort
SELECT + 2, + 65 AS col1
----
2
65

query I rowsort
SELECT - 10 * + 5 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT ALL + 98 DIV + 25
----
3

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL + 98 / + 25
----
3

query I rowsort
SELECT DISTINCT + 63 AS col1
----
63

query I rowsort
SELECT - 86 * - 69 * + 30
----
178020

query I rowsort
SELECT ALL 97 * + - 70 * - 76
----
516040

query I rowsort
SELECT - 74 + + 22
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8778
SELECT COUNT( ALL + + 25 ) DIV - MAX( + CAST( + 89 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8778
SELECT COUNT ( ALL + + 25 ) / - MAX ( + CAST ( + 89 AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT - ( + + 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8780
SELECT - COALESCE ( + 81, - SUM( ALL - 3 ) ) * - + CAST( NULL AS DECIMAL ) * + ( - - 91 ) / + 22 + 43 + - + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT - COALESCE ( + 81, - SUM ( ALL - 3 ) ) * - + CAST ( NULL AS REAL ) * + ( - - 91 ) / + 22 + 43 + - + 32 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8781
SELECT + 79, + 29 + - + 85 DIV - 55 col2
----
79
30

skipif mysql # not compatible
query II rowsort label-8781
SELECT + 79, + 29 + - + 85 / - 55 col2
----
79
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT + CASE - 9 WHEN - - 28 THEN NULLIF ( 10, + - COUNT( * ) * + 19 - + 28 + 68 ) WHEN 51 / - 63 THEN NULL END + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT + CASE - 9 WHEN - - 28 THEN NULLIF ( 10, + - COUNT ( * ) * + 19 - + 28 + 68 ) WHEN 51 / - 63 THEN NULL END + + 77
----
NULL

query I rowsort
SELECT ALL - 0 + - 12
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8784
SELECT DISTINCT - - 48 + + + 44 + + + 88 DIV - - 74 AS col2, 44 + - CAST( + - ( + 36 ) AS SIGNED )
----
93
80

skipif mysql # not compatible
query II rowsort label-8784
SELECT DISTINCT - - 48 + + + 44 + + + 88 / - - 74 AS col2, 44 + - CAST ( + - ( + 36 ) AS INTEGER )
----
93
80

query II rowsort
SELECT ALL - 25, + 22 col1
----
-25
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL - 91 + - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - 91 + - COUNT ( * )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT COUNT( * ) - 28 / + + 19 * + + 58 / CAST( NULL AS SIGNED ) / + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT COUNT ( * ) - 28 / + + 19 * + + 58 / CAST ( NULL AS INTEGER ) / + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL - + COUNT( ALL - 26 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL - + COUNT ( ALL - 26 ) col2
----
-1

query I rowsort
SELECT ALL - - 83 col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT 7 + + COUNT( * ) AS col1, 85 * + SUM( DISTINCT + + 91 )
----
8
7735

skipif mysql # not compatible
query II rowsort label-8790
SELECT 7 + + COUNT ( * ) AS col1, 85 * + SUM ( DISTINCT + + 91 )
----
8
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - COUNT( * ) * + 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8791
SELECT - COUNT ( * ) * + 63 AS col1
----
-63

query I rowsort
SELECT 53 + 46 * 71
----
3319

query II rowsort
SELECT 96 - COALESCE ( + 48, + 72 ), 40 col0
----
48
40

query II rowsort
SELECT - 53 AS col0, 57 col0
----
-53
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL + NULLIF ( - - CASE - SUM( 70 ) WHEN - + 83 + - - ( - 24 ) THEN NULL WHEN + COUNT( * ) THEN NULLIF ( - CAST( ( + ( + 47 ) ) AS SIGNED ), + 83 * - COUNT( + 16 ) ) WHEN ( - 50 ) * - 94 THEN NULL ELSE NULL END, - 28 * + MAX( DISTINCT 0 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + NULLIF ( - - CASE - SUM ( 70 ) WHEN - + 83 + - - ( - 24 ) THEN NULL WHEN + COUNT ( * ) THEN NULLIF ( - CAST ( ( + ( + 47 ) ) AS INTEGER ), + 83 * - COUNT ( + 16 ) ) WHEN ( - 50 ) * - 94 THEN NULL ELSE NULL END, - 28 * + MAX ( DISTINCT 0 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT + 93 * - + CAST( + + 38 AS SIGNED ) - + 79 * + 96 + - 71 * - + 6 * - 74 AS col0
----
-42642

skipif mysql # not compatible
query I rowsort label-8796
SELECT + 93 * - + CAST ( + + 38 AS INTEGER ) - + 79 * + 96 + - 71 * - + 6 * - 74 AS col0
----
-42642

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8797
SELECT ALL CAST( NULL AS SIGNED ), 96 AS col1, 32 AS col0
----
NULL
96
32

skipif mysql # not compatible
query III rowsort label-8797
SELECT ALL CAST ( NULL AS INTEGER ), 96 AS col1, 32 AS col0
----
NULL
96
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT 71 - - 77 + + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT 71 - - 77 + + COUNT ( * )
----
149

query I rowsort
SELECT 22 + - 94 + + 10
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8800
SELECT ALL - 66 AS col0, COUNT( * ) * 77 * 24
----
-66
1848

skipif mysql # not compatible
query II rowsort label-8800
SELECT ALL - 66 AS col0, COUNT ( * ) * 77 * 24
----
-66
1848

query I rowsort
SELECT 53 * 18 AS col0
----
954

query I rowsort
SELECT - 82 + - - CASE - + 48 WHEN 8 THEN NULL WHEN + 35 * + 5 THEN 97 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8803
SELECT CAST( NULL AS SIGNED ) + 14 AS col1, 49 * - NULLIF ( - 17, 28 )
----
NULL
833

skipif mysql # not compatible
query II rowsort label-8803
SELECT CAST ( NULL AS INTEGER ) + 14 AS col1, 49 * - NULLIF ( - 17, 28 )
----
NULL
833

query I rowsort
SELECT ALL - 2 * 12 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT COUNT( * ) + - - 67 col1
----
68

skipif mysql # not compatible
query I rowsort label-8805
SELECT COUNT ( * ) + - - 67 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT 34 * - COUNT( * ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-8806
SELECT 34 * - COUNT ( * ) col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT ALL AVG ( ALL 72 ) * - COUNT( * ) * - 63 * 14 + + ( - ( - ( - + NULLIF ( + CAST( NULL AS SIGNED ), - + 88 ) ) ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL AVG ( ALL 72 ) * - COUNT ( * ) * - 63 * 14 + + ( - ( - ( - + NULLIF ( + CAST ( NULL AS INTEGER ), - + 88 ) ) ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT 40 + 89 col2, NULLIF ( 82, - COUNT( DISTINCT - 65 ) * 14 * - + 48 + - 64 )
----
129
82

skipif mysql # not compatible
query II rowsort label-8808
SELECT 40 + 89 col2, NULLIF ( 82, - COUNT ( DISTINCT - 65 ) * 14 * - + 48 + - 64 )
----
129
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8809
SELECT DISTINCT + 85 + - - COALESCE ( + + COUNT( * ), 26 * + CAST( - COUNT( * ) AS SIGNED ) * + SUM( ALL + 20 ) + - - 17 * + CASE + 23 WHEN - NULLIF ( NULLIF ( 34, - 35 ), 6 + - 77 ) THEN - COUNT( ALL 44 ) * 49 + ( 40 - 35 DIV 28 ) WHEN - COUNT( * ) THEN 0 ELSE NULL END * - COUNT( * ) + - ( - COUNT( * ) ) * - SUM( 7 + 73 ) + COUNT( * ) ) * 49
----
134

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT + 85 + - - COALESCE ( + + COUNT ( * ), 26 * + CAST ( - COUNT ( * ) AS INTEGER ) * + SUM ( ALL + 20 ) + - - 17 * + CASE + 23 WHEN - NULLIF ( NULLIF ( 34, - 35 ), 6 + - 77 ) THEN - COUNT ( ALL 44 ) * 49 + ( 40 - 35 / 28 ) WHEN - COUNT ( * ) THEN 0 ELSE NULL END * - COUNT ( * ) + - ( - COUNT ( * ) ) * - SUM ( 7 + 73 ) + COUNT ( * ) ) * 49
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8810
SELECT COUNT( * ) DIV - + 32 + - 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8810
SELECT COUNT ( * ) / - + 32 + - 72 AS col1
----
-72

query I rowsort
SELECT ALL - 10 col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8812
SELECT 49 DIV - COUNT( + + 27 ) * - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8812
SELECT 49 / - COUNT ( + + 27 ) * - COUNT ( * ) AS col1
----
49

query I rowsort
SELECT DISTINCT + 22 + + - 96
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - 68 + + 74 * 94 * + COUNT( * ) + - 24 + + ( + 25 )
----
6889

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - 68 + + 74 * 94 * + COUNT ( * ) + - 24 + + ( + 25 )
----
6889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT 32 * + 72 * + 39 / + - 38 * - COUNT( * ) + + - 16 + - - CAST( NULL AS SIGNED ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT 32 * + 72 * + 39 / + - 38 * - COUNT ( * ) + + - 16 + - - CAST ( NULL AS INTEGER ) * + 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT ALL + 41 DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL + 41 / + + 90
----
0

query I rowsort
SELECT - 75 + + + 6 AS col1
----
-69

query I rowsort
SELECT 42 + + + 68 * 0 * 67 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8819
SELECT - 41 DIV + 98 * + 72 * - - NULLIF ( CASE 9 WHEN + 42 DIV - + 68 + - COUNT( * ) THEN - - 37 WHEN + + 14 THEN NULL ELSE 64 END, 65 * 50 )
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT - 41 / + 98 * + 72 * - - NULLIF ( CASE 9 WHEN + 42 / - + 68 + - COUNT ( * ) THEN - - 37 WHEN + + 14 THEN NULL ELSE 64 END, 65 * 50 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT 19 * + CAST( + + 71 AS SIGNED ) AS col1
----
1349

skipif mysql # not compatible
query I rowsort label-8820
SELECT 19 * + CAST ( + + 71 AS INTEGER ) AS col1
----
1349

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT - 49 * - 96 + 76 + + 87 DIV - 57 + 8 AS col1
----
4787

skipif mysql # not compatible
query I rowsort label-8821
SELECT - 49 * - 96 + 76 + + 87 / - 57 + 8 AS col1
----
4787

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8822
SELECT COUNT( * ) * + + 81 * + 31 AS col0, 44 DIV + COALESCE ( + + 21, 72 )
----
2511
2

skipif mysql # not compatible
query II rowsort label-8822
SELECT COUNT ( * ) * + + 81 * + 31 AS col0, 44 / + COALESCE ( + + 21, 72 )
----
2511
2

query I rowsort
SELECT - - ( - - 0 ) * 24 + - 5 AS col2
----
-5

query I rowsort
SELECT ALL - ( ( - 55 ) ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + MIN( DISTINCT CASE + + 49 WHEN - 11 THEN NULL WHEN - 86 + - 6 - + 51 THEN 34 ELSE - 63 END ) * - 15 AS col2
----
945

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + MIN ( DISTINCT CASE + + 49 WHEN - 11 THEN NULL WHEN - 86 + - 6 - + 51 THEN 34 ELSE - 63 END ) * - 15 AS col2
----
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT + - 28 * - COUNT( * ) + + COUNT( ALL - 25 ) + - CAST( NULL AS SIGNED ) * + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + - 28 * - COUNT ( * ) + + COUNT ( ALL - 25 ) + - CAST ( NULL AS INTEGER ) * + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL - - ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - - ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8828
SELECT + 91 * + 78 AS col1, - 76 * 27 * - MAX( DISTINCT - 45 ) * + CAST( - + 36 AS SIGNED ) + + - COALESCE ( 59, + + 97 + + COUNT( * ) * + CAST( NULL AS SIGNED ), - MIN( 42 ) ) col1
----
7098
3324181

skipif mysql # not compatible
query II rowsort label-8828
SELECT + 91 * + 78 AS col1, - 76 * 27 * - MAX ( DISTINCT - 45 ) * + CAST ( - + 36 AS INTEGER ) + + - COALESCE ( 59, + + 97 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ), - MIN ( 42 ) ) col1
----
7098
3324181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT - COUNT( * ) + + 8 + - CAST( NULL AS SIGNED ) / + + 90 * + - 71 * - COUNT( * ) + - 65 * - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT - COUNT ( * ) + + 8 + - CAST ( NULL AS INTEGER ) / + + 90 * + - 71 * - COUNT ( * ) + - 65 * - 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 85 - - - 98
----
-13

query I rowsort
SELECT DISTINCT 88 col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT 67 * + CAST( NULL AS SIGNED ) + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT 67 * + CAST ( NULL AS INTEGER ) + 50 AS col0
----
NULL

query I rowsort
SELECT - + 1 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8834
SELECT DISTINCT COALESCE ( - 61, CAST( NULL AS SIGNED ) * COUNT( * ) DIV + 73 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT COALESCE ( - 61, CAST ( NULL AS INTEGER ) * COUNT ( * ) / + 73 ) col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT CASE - SUM( ALL + - ( - + 37 ) ) WHEN COUNT( - ( - 51 ) ) * - 70 * + - 12 - + NULLIF ( - 55, 21 ) * - - 11 THEN COUNT( * ) END * - NULLIF ( - 13 + - NULLIF ( 64, - 0 ), - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT CASE - SUM ( ALL + - ( - + 37 ) ) WHEN COUNT ( - ( - 51 ) ) * - 70 * + - 12 - + NULLIF ( - 55, 21 ) * - - 11 THEN COUNT ( * ) END * - NULLIF ( - 13 + - NULLIF ( 64, - 0 ), - 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL COUNT( * ) + - 59 + 27
----
-31

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL COUNT ( * ) + - 59 + 27
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-8837
SELECT DISTINCT 94 AS col2, 61 DIV 44 * - 45
----
94
-45

skipif mysql # not compatible
query II rowsort label-8837
SELECT DISTINCT 94 AS col2, 61 / 44 * - 45
----
94
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8838
SELECT DISTINCT - 26 DIV - 11 col1
----
2

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - 26 / - 11 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + 92 - - - COUNT( * ) * - 67 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-8839
SELECT + 92 - - - COUNT ( * ) * - 67 AS col1
----
159

query I rowsort
SELECT + 68 * + 82 * 48 col1
----
267648

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT - 74 * + + 91 * MAX( + - 14 )
----
94276

skipif mysql # not compatible
query I rowsort label-8841
SELECT - 74 * + + 91 * MAX ( + - 14 )
----
94276

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8842
SELECT DISTINCT 79 DIV CAST( + - NULLIF ( + 17, + - 59 ) AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT 79 / CAST ( + - NULLIF ( + 17, + - 59 ) AS INTEGER ) AS col1
----
-4

query I rowsort
SELECT + 44 * - 14 AS col2
----
-616

query I rowsort
SELECT DISTINCT + 54 + + 9 AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT DISTINCT ( - - 31 ) + + SUM( ALL - + ( + + 86 ) ) DIV - + 82 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT ( - - 31 ) + + SUM ( ALL - + ( + + 86 ) ) / - + 82 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL 12 * + + MIN( 44 ) + + 19 AS col1
----
547

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL 12 * + + MIN ( 44 ) + + 19 AS col1
----
547

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT + NULLIF ( 23, + MIN( 39 ) ) * + 70 AS col1
----
1610

skipif mysql # not compatible
query I rowsort label-8847
SELECT + NULLIF ( 23, + MIN ( 39 ) ) * + 70 AS col1
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT 74 * + COUNT( + - 55 ) * - MAX( - 40 ) * + - COUNT( + 13 ) + + + 72 * + + 67 + 87
----
1951

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT 74 * + COUNT ( + - 55 ) * - MAX ( - 40 ) * + - COUNT ( + 13 ) + + + 72 * + + 67 + 87
----
1951

query I rowsort
SELECT + NULLIF ( - + 42, 68 + + + AVG ( DISTINCT 10 ) )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT ALL - 33 * + 3 - + 20, COUNT( DISTINCT 97 ) col1
----
-119
1

skipif mysql # not compatible
query II rowsort label-8850
SELECT ALL - 33 * + 3 - + 20, COUNT ( DISTINCT 97 ) col1
----
-119
1

query I rowsort
SELECT + - 58 + + 60
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT - 34 * + - 67 + COUNT( * ) + - 17 col2
----
2262

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 34 * + - 67 + COUNT ( * ) + - 17 col2
----
2262

query I rowsort
SELECT ALL + + 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + - 62 * + - 85 + COUNT( * )
----
5271

skipif mysql # not compatible
query I rowsort label-8854
SELECT + - 62 * + - 85 + COUNT ( * )
----
5271

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT - - 3 DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT - - 3 / - 34
----
0

query I rowsort
SELECT - 48 * - - 92 AS col1
----
-4416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT - + 33 + + + CAST( 86 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-8857
SELECT - + 33 + + + CAST ( 86 AS INTEGER )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 95, 43 * 1 AS col2
----
95
43

query I rowsort
SELECT ALL - + 55 * - 75 * - 24 AS col0
----
-99000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8861
SELECT - 75 - - - CASE - + COUNT( * ) WHEN - COUNT( * ) + - COUNT( * ) THEN + COUNT( * ) DIV + - 78 ELSE 18 END - - 53 DIV - NULLIF ( + 30, + 48 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8861
SELECT - 75 - - - CASE - + COUNT ( * ) WHEN - COUNT ( * ) + - COUNT ( * ) THEN + COUNT ( * ) / + - 78 ELSE 18 END - - 53 / - NULLIF ( + 30, + 48 ) AS col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT ALL - + 38 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - + 38 / 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8863
SELECT DISTINCT + 72, + COUNT( * ) col1
----
72
1

skipif mysql # not compatible
query II rowsort label-8863
SELECT DISTINCT + 72, + COUNT ( * ) col1
----
72
1

query I rowsort
SELECT ALL + COALESCE ( - + 63, + 1 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT - - 76 DIV 57 * - COUNT( - 47 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8865
SELECT - - 76 / 57 * - COUNT ( - 47 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - - 65 * + 54 + 74 / + CASE + NULLIF ( + + 68, + 89 ) WHEN - 86 * + - 62 + - COUNT( * ) + - + SUM( - 38 ) / - NULLIF ( + ( + COUNT( * ) ), - 31 ) THEN 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT - - 65 * + 54 + 74 / + CASE + NULLIF ( + + 68, + 89 ) WHEN - 86 * + - 62 + - COUNT ( * ) + - + SUM ( - 38 ) / - NULLIF ( + ( + COUNT ( * ) ), - 31 ) THEN 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT - - 7 + + SUM( DISTINCT 48 )
----
55

skipif mysql # not compatible
query I rowsort label-8867
SELECT - - 7 + + SUM ( DISTINCT 48 )
----
55

query I rowsort
SELECT + + 1 * + + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + 79 * - COUNT( * ) * - 40 + 12 AS col1
----
3172

skipif mysql # not compatible
query I rowsort label-8869
SELECT + 79 * - COUNT ( * ) * - 40 + 12 AS col1
----
3172

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT + MIN( ALL - ( - 78 ) )
----
78

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT + MIN ( ALL - ( - 78 ) )
----
78

query I rowsort
SELECT ALL + 3 + - 26 AS col1
----
-23

query I rowsort
SELECT - 28 - - 27
----
-1

query I rowsort
SELECT ALL ( + 78 )
----
78

query I rowsort
SELECT ALL - 30 + + 68 * + 16 AS col2
----
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - 92 + + 10 + + - 12 + COUNT( + + 44 )
----
-93

skipif mysql # not compatible
query I rowsort label-8875
SELECT - 92 + + 10 + + - 12 + COUNT ( + + 44 )
----
-93

query I rowsort
SELECT - CASE + + 29 WHEN + 85 THEN - + 26 * + 92 / + 83 + - 4 WHEN COALESCE ( 29, + NULLIF ( - ( - 98 ), + - 58 + - - 45 ) / 94, - 18 ) * 94 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - 68 + + + ( + 30 ) * 18 * MAX( - 43 ) * + - 93 + - - 60 + + 50 * - ( - + 95 ) + 25 AS col2
----
2164227

skipif mysql # not compatible
query I rowsort label-8877
SELECT - 68 + + + ( + 30 ) * 18 * MAX ( - 43 ) * + - 93 + - - 60 + + 50 * - ( - + 95 ) + 25 AS col2
----
2164227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL 39 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL 39 * CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT - 44 + + 29 + 1 + - 6, 76 AS col0, - - 81 + + 57 AS col2
----
-20
76
138

query I rowsort
SELECT + 50 * - + 87
----
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL 32 + 64 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL 32 + 64 + + COUNT ( * )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT DISTINCT CAST( + + CAST( 63 AS SIGNED ) AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT CAST ( + + CAST ( 63 AS INTEGER ) AS INTEGER ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8884
SELECT ALL - 41 * COUNT( * ) * + COUNT( DISTINCT - 45 ) * + - 24 + - 50 * 36 col1, 51 col0
----
-816
51

skipif mysql # not compatible
query II rowsort label-8884
SELECT ALL - 41 * COUNT ( * ) * + COUNT ( DISTINCT - 45 ) * + - 24 + - 50 * 36 col1, 51 col0
----
-816
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT + 14 + 54 + - + 29 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT + 14 + 54 + - + 29 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT + CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - + 54 + + 8 WHEN 34 + 76 + - + 31 + - + 44 THEN 4 END + ( CASE - 57 WHEN + 40 THEN + 91 * - 99 END ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT + CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - + 54 + + 8 WHEN 34 + 76 + - + 31 + - + 44 THEN 4 END + ( CASE - 57 WHEN + 40 THEN + 91 * - 99 END ) * - 80
----
NULL

query I rowsort
SELECT ALL 96 - - 25 + + 47 * + - 41 col0
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + 67 + + - 19 + - - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8888
SELECT + 67 + + - 19 + - - COUNT ( * ) AS col1
----
49

query I rowsort
SELECT ALL 72 - - + 10 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT + 84 * + COALESCE ( + 44, - COUNT( * ) )
----
3696

skipif mysql # not compatible
query I rowsort label-8890
SELECT + 84 * + COALESCE ( + 44, - COUNT ( * ) )
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT + CASE 15 WHEN 16 THEN - NULLIF ( + + 6, - 81 ) ELSE + CASE - 83 WHEN + 72 / + + MIN( DISTINCT 7 ) THEN + 93 + - 3 WHEN + 54 THEN NULL ELSE MIN( ( 78 ) ) * 83 - + 96 END END * 10
----
63780

skipif mysql # not compatible
query I rowsort label-8891
SELECT + CASE 15 WHEN 16 THEN - NULLIF ( + + 6, - 81 ) ELSE + CASE - 83 WHEN + 72 / + + MIN ( DISTINCT 7 ) THEN + 93 + - 3 WHEN + 54 THEN NULL ELSE MIN ( ( 78 ) ) * 83 - + 96 END END * 10
----
63780

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - + 58 * - - COUNT( * ) + 6
----
-52

skipif mysql # not compatible
query I rowsort label-8892
SELECT - + 58 * - - COUNT ( * ) + 6
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8893
SELECT - MIN( ALL 49 ) DIV + 96 + 14 + - ( - 14 ) + + 84 * + MAX( ALL + - 46 ) AS col2
----
-3836

skipif mysql # not compatible
query I rowsort label-8893
SELECT - MIN ( ALL 49 ) / + 96 + 14 + - ( - 14 ) + + 84 * + MAX ( ALL + - 46 ) AS col2
----
-3836

query I rowsort
SELECT DISTINCT + + 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT + 46 * - SUM( DISTINCT - 89 ) AS col1
----
4094

skipif mysql # not compatible
query I rowsort label-8895
SELECT + 46 * - SUM ( DISTINCT - 89 ) AS col1
----
4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8896
SELECT DISTINCT - COALESCE ( + - COUNT( * ), - 85 + - + COUNT( * ) * - 49 * - 70, + ( - 19 ), 48 DIV + - 71 + COUNT( * ) + 33 + - CAST( - 75 AS SIGNED ) + 71 * + 78 * + 59 ) * + CASE 44 WHEN 34 - - COUNT( * ) THEN NULL ELSE 91 END
----
91

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), - 85 + - + COUNT ( * ) * - 49 * - 70, + ( - 19 ), 48 / + - 71 + COUNT ( * ) + 33 + - CAST ( - 75 AS INTEGER ) + 71 * + 78 * + 59 ) * + CASE 44 WHEN 34 - - COUNT ( * ) THEN NULL ELSE 91 END
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + COUNT( DISTINCT + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + COUNT ( DISTINCT + 89 )
----
1

query I rowsort
SELECT + + 85 * 59 AS col0
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT MAX( DISTINCT + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8899
SELECT MAX ( DISTINCT + 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT COALESCE ( + CAST( - 71 AS SIGNED ), - 11 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8900
SELECT COALESCE ( + CAST ( - 71 AS INTEGER ), - 11 ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT + AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT + AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT 19 * 79 + - NULLIF ( - - 15, + COUNT( * ) * + MIN( 69 ) - 30 + + - 20 * 60 + + 67 ) + 39
----
1525

skipif mysql # not compatible
query I rowsort label-8902
SELECT 19 * 79 + - NULLIF ( - - 15, + COUNT ( * ) * + MIN ( 69 ) - 30 + + - 20 * 60 + + 67 ) + 39
----
1525

query I rowsort
SELECT DISTINCT + + 27 col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT ALL - 75 DIV 25 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - 75 / 25 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8905
SELECT ALL - 41 * + + CAST( - - 47 AS SIGNED ) * + 64 + + COALESCE ( - + 40, - 92, SUM( DISTINCT 57 ) )
----
-123368

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - 41 * + + CAST ( - - 47 AS INTEGER ) * + 64 + + COALESCE ( - + 40, - 92, SUM ( DISTINCT 57 ) )
----
-123368

query I rowsort
SELECT DISTINCT + 6 * 57 - 85 + - - 29 * 2
----
315

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT + - COUNT( ALL COALESCE ( + 82, - 76 ) ) AS col1, 22 + - 52 AS col1
----
-1
-30

skipif mysql # not compatible
query II rowsort label-8907
SELECT + - COUNT ( ALL COALESCE ( + 82, - 76 ) ) AS col1, 22 + - 52 AS col1
----
-1
-30

query I rowsort
SELECT ALL + 71 + - - 34 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT + 98 + + + COUNT( ALL - 18 )
----
99

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + 98 + + + COUNT ( ALL - 18 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT COUNT( DISTINCT - 85 ) * CAST( - - ( - 13 ) AS SIGNED ) + COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8910
SELECT COUNT ( DISTINCT - 85 ) * CAST ( - - ( - 13 ) AS INTEGER ) + COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8911
SELECT DISTINCT - 26 * COUNT( * ) DIV + 51 * + 4
----
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT - 26 * COUNT ( * ) / + 51 * + 4
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * + + ( 82 ) + - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * + + ( 82 ) + - 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT 30 * - + MIN( + 99 ) * 11
----
-32670

skipif mysql # not compatible
query I rowsort label-8913
SELECT 30 * - + MIN ( + 99 ) * 11
----
-32670

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT 81 * + + 14 * COUNT( * ) - + 76 + - 82 - + COUNT( * ) * + ( + 38 ) * - - 49 * - - 23 + + COUNT( * )
----
-41849

skipif mysql # not compatible
query I rowsort label-8914
SELECT 81 * + + 14 * COUNT ( * ) - + 76 + - 82 - + COUNT ( * ) * + ( + 38 ) * - - 49 * - - 23 + + COUNT ( * )
----
-41849

query I rowsort
SELECT 69 * 98 AS col1
----
6762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8916
SELECT DISTINCT - 54 + + + COUNT( * ) DIV - COUNT( - ( - 93 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT - 54 + + + COUNT ( * ) / - COUNT ( - ( - 93 ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT ALL - 81 * - ( + COALESCE ( 7, - - CASE - + 95 WHEN SUM( DISTINCT - 1 ) * + - 22 * + NULLIF ( - SUM( ALL - + 87 ), MAX( 81 ) * + 72 + ( COUNT( ALL + 12 ) ) * COUNT( + ( CAST( NULL AS SIGNED ) ) ) ) + - 45 * 64 THEN NULL WHEN 23 + - COUNT( * ) * 97 THEN - 63 * + 41 END + CAST( COUNT( * ) + + 56 AS SIGNED ) * 24 ) ) * - 23 AS col0
----
-13041

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - 81 * - ( + COALESCE ( 7, - - CASE - + 95 WHEN SUM ( DISTINCT - 1 ) * + - 22 * + NULLIF ( - SUM ( ALL - + 87 ), MAX ( 81 ) * + 72 + ( COUNT ( ALL + 12 ) ) * COUNT ( + ( CAST ( NULL AS INTEGER ) ) ) ) + - 45 * 64 THEN NULL WHEN 23 + - COUNT ( * ) * 97 THEN - 63 * + 41 END + CAST ( COUNT ( * ) + + 56 AS INTEGER ) * 24 ) ) * - 23 AS col0
----
-13041

query I rowsort
SELECT 55 * 4
----
220

query II rowsort
SELECT ALL 60 AS col1, 31
----
60
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT DISTINCT - ( COUNT( * ) ) - 6
----
-7

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - ( COUNT ( * ) ) - 6
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT 68 * + CASE + CAST( NULL AS SIGNED ) WHEN + - 32 THEN NULL WHEN - 11 * - - 54 THEN - + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT 68 * + CASE + CAST ( NULL AS INTEGER ) WHEN + - 32 THEN NULL WHEN - 11 * - - 54 THEN - + 19 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT 45 * 20 DIV - 62
----
-14

skipif mysql # not compatible
query I rowsort label-8922
SELECT 45 * 20 / - 62
----
-14

query I rowsort
SELECT 55 - 24
----
31

query I rowsort
SELECT 58 * + 38
----
2204

query I rowsort
SELECT ALL - 9 * - 94
----
846

query II rowsort
SELECT - 28 AS col0, 7 + + 85 AS col0
----
-28
92

query I rowsort
SELECT 0 * - 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT DISTINCT 84 * + SUM( 89 ), - 76 AS col2
----
7476
-76

skipif mysql # not compatible
query II rowsort label-8928
SELECT DISTINCT 84 * + SUM ( 89 ), - 76 AS col2
----
7476
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT DISTINCT - + 97 DIV - + 34
----
2

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT - + 97 / - + 34
----
2

query I rowsort
SELECT DISTINCT + ( - 70 ) AS col1
----
-70

query I rowsort
SELECT ALL - 70 * 7 AS col1
----
-490

query II rowsort
SELECT ALL - 53 AS col0, 27 AS col1
----
-53
27

query I rowsort
SELECT + - 84 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT 27 DIV - + 44 + - + 89
----
-89

skipif mysql # not compatible
query I rowsort label-8934
SELECT 27 / - + 44 + - + 89
----
-89

query I rowsort
SELECT + - ( - ( + 78 ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT - 10 + + 27 + + 70 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 10 + + 27 + + 70 * COUNT ( * )
----
87

query I rowsort
SELECT + - 73 AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8938
SELECT + 84 DIV - 55 + + 44 * ( - - COUNT( ALL + 65 ) ) * + 15 - 15, - NULLIF ( - 79, - - ( + 46 ) + COALESCE ( + 87, + SUM( DISTINCT 46 ), ( 59 ) - + 91 ) ) AS col0
----
644
79

skipif mysql # not compatible
query II rowsort label-8938
SELECT + 84 / - 55 + + 44 * ( - - COUNT ( ALL + 65 ) ) * + 15 - 15, - NULLIF ( - 79, - - ( + 46 ) + COALESCE ( + 87, + SUM ( DISTINCT 46 ), ( 59 ) - + 91 ) ) AS col0
----
644
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT ALL 54 + 2 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL 54 + 2 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT + - ( + 8 ) * - - 17 + + 37 * - CAST( NULL AS SIGNED ) - 4 * - 39 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT + - ( + 8 ) * - - 17 + + 37 * - CAST ( NULL AS INTEGER ) - 4 * - 39 + 3
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8941
SELECT COUNT( * ) AS col1, + 22
----
1
22

skipif mysql # not compatible
query II rowsort label-8941
SELECT COUNT ( * ) AS col1, + 22
----
1
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT NULLIF ( - - 60, - 84 + + ( 43 ) * 6 * + 14 * NULLIF ( - 48, + 72 DIV - 35 * + 45 ) ) DIV - 70 * - 51 + - + 97 * 45
----
-4365

skipif mysql # not compatible
query I rowsort label-8942
SELECT NULLIF ( - - 60, - 84 + + ( 43 ) * 6 * + 14 * NULLIF ( - 48, + 72 / - 35 * + 45 ) ) / - 70 * - 51 + - + 97 * 45
----
-4365

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8943
SELECT ALL - 84 + 91 - + NULLIF ( 23, 83 * + ( + CAST( NULL AS DECIMAL ) ) ) * - 97 - - 45 AS col2
----
2283

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL - 84 + 91 - + NULLIF ( 23, 83 * + ( + CAST ( NULL AS REAL ) ) ) * - 97 - - 45 AS col2
----
2283

query I rowsort
SELECT ALL - 68 + + 18 + 47 + 36 * - 4 * - 27 AS col2
----
3885

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT - MIN( - 21 ) * - 3
----
-63

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT - MIN ( - 21 ) * - 3
----
-63

query I rowsort
SELECT 85 * - 2 + - 77
----
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT COUNT( * ) * - MIN( DISTINCT 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8947
SELECT COUNT ( * ) * - MIN ( DISTINCT 31 ) AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT DISTINCT + 67 - + 32 * - 16 / + CAST( NULL AS SIGNED ) + - ( - 6 ) / + - NULLIF ( + 26, + + 79 * - ( + + 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + 67 - + 32 * - 16 / + CAST ( NULL AS INTEGER ) + - ( - 6 ) / + - NULLIF ( + 26, + + 79 * - ( + + 56 ) )
----
NULL

query II rowsort
SELECT DISTINCT 98 col0, - 69 AS col1
----
98
-69

query II rowsort
SELECT ALL 2, + ( - + 28 ) AS col1
----
2
-28

query II rowsort
SELECT 0, + 44 + + 21 + + 25 * + + 18 AS col0
----
0
515

query II rowsort
SELECT DISTINCT 55 AS col1, 76
----
55
76

query I rowsort
SELECT DISTINCT 21 - + 51 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8954
SELECT ALL 97 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8954
SELECT ALL 97 / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 13, 9 AS col1
----
13
9

query I rowsort
SELECT DISTINCT + 95 * + 4
----
380

query I rowsort
SELECT 94 * 21 AS col0
----
1974

query II rowsort
SELECT ALL + 78 * 38 AS col1, - ( - 64 ) * + 25 AS col1
----
2964
1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8959
SELECT 64 + - 73 + + - MIN( 75 ) DIV - 99 - + + ( 41 ) + - 22
----
-72

skipif mysql # not compatible
query I rowsort label-8959
SELECT 64 + - 73 + + - MIN ( 75 ) / - 99 - + + ( 41 ) + - 22
----
-72

query I rowsort
SELECT 0 - + - 91 + 42
----
133

query I rowsort
SELECT 3 * - 51 AS col0
----
-153

query I rowsort
SELECT 74 + - 47 - - 83 + 70 + 87 col0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT DISTINCT 96 * - - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8963
SELECT DISTINCT 96 * - - COUNT ( * )
----
96

query I rowsort
SELECT DISTINCT 55 * + 64 * - + 49
----
-172480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT CAST( 53 AS SIGNED ) + - 9
----
44

skipif mysql # not compatible
query I rowsort label-8965
SELECT CAST ( 53 AS INTEGER ) + - 9
----
44

query II rowsort
SELECT ALL 45 AS col0, - 84
----
45
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + 60 + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + 60 + + COUNT ( * )
----
61

query II rowsort
SELECT + 6 AS col0, + COALESCE ( 68, + - 27 ) AS col1
----
6
68

query I rowsort
SELECT - 85 * + + 59
----
-5015

query II rowsort
SELECT DISTINCT - + ( + 70 ) col1, 79 AS col2
----
-70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT MAX( + - 75 ) * + 3 + - 45 + + 97 + + + 25 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-8971
SELECT MAX ( + - 75 ) * + 3 + - 45 + + 97 + + + 25 AS col1
----
-148

query I rowsort
SELECT ALL + NULLIF ( 89, + + NULLIF ( + 86, - - 7 ) - + NULLIF ( - 8, - - 94 ) ) * + 28
----
2492

query II rowsort
SELECT 92 AS col0, + 2 + - 9
----
92
-7

query II rowsort
SELECT ALL - 5 * - - 22 + + 24 + - 94, - NULLIF ( - 5, + 62 / + + 16 + + 59 ) col1
----
-180
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8975
SELECT + COALESCE ( - + MIN( - 36 ), - 38 DIV 60 - - - COALESCE ( - 62, 50 * SUM( - CAST( - 62 AS SIGNED ) ) ) + MIN( ALL 79 ), - 17 DIV + 72 + + 13 + 55 )
----
36

skipif mysql # not compatible
query I rowsort label-8975
SELECT + COALESCE ( - + MIN ( - 36 ), - 38 / 60 - - - COALESCE ( - 62, 50 * SUM ( - CAST ( - 62 AS INTEGER ) ) ) + MIN ( ALL 79 ), - 17 / + 72 + + 13 + 55 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT DISTINCT - 62 * CAST( NULL AS SIGNED ) + 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT - 62 * CAST ( NULL AS INTEGER ) + 74 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + 47 * - COUNT( * ) * - 28 * + 54 * 85 AS col2
----
6040440

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + 47 * - COUNT ( * ) * - 28 * + 54 * 85 AS col2
----
6040440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8978
SELECT - 24 * + - ( + CAST( + NULLIF ( + COUNT( * ), 21 ) AS SIGNED ) ), + 69 DIV + COUNT( * ) + + 4 AS col2
----
24
73

skipif mysql # not compatible
query II rowsort label-8978
SELECT - 24 * + - ( + CAST ( + NULLIF ( + COUNT ( * ), 21 ) AS INTEGER ) ), + 69 / + COUNT ( * ) + + 4 AS col2
----
24
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL - CASE 62 WHEN ( - AVG ( DISTINCT 68 ) ) * CAST( NULL AS SIGNED ) + + - 55 - + + ( + ( 81 ) ) + + + 85 - + 3 + - 98 THEN NULL WHEN COUNT( * ) * 23 THEN NULL WHEN - COUNT( * ) THEN + COUNT( * ) * + 42 + 25 * 37 WHEN 90 - - AVG ( ALL + 6 ) THEN NULL END / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - CASE 62 WHEN ( - AVG ( DISTINCT 68 ) ) * CAST ( NULL AS INTEGER ) + + - 55 - + + ( + ( 81 ) ) + + + 85 - + 3 + - 98 THEN NULL WHEN COUNT ( * ) * 23 THEN NULL WHEN - COUNT ( * ) THEN + COUNT ( * ) * + 42 + 25 * 37 WHEN 90 - - AVG ( ALL + 6 ) THEN NULL END / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT - 28 * COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 28 * COUNT ( * )
----
-28

query I rowsort
SELECT + COALESCE ( + 54, - 60 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8982
SELECT + COUNT( * ) DIV + - 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8982
SELECT + COUNT ( * ) / + - 23 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8983
SELECT + NULLIF ( + 22, - + ( + 35 ) ) * 74, 8 + ( COUNT( * ) ) + CAST( + COUNT( - - 36 ) AS SIGNED ) AS col0
----
1628
10

skipif mysql # not compatible
query II rowsort label-8983
SELECT + NULLIF ( + 22, - + ( + 35 ) ) * 74, 8 + ( COUNT ( * ) ) + CAST ( + COUNT ( - - 36 ) AS INTEGER ) AS col0
----
1628
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8984
SELECT ALL 9 * SUM( DISTINCT + 73 ) AS col2, 41 + 68 * - 66
----
657
-4447

skipif mysql # not compatible
query II rowsort label-8984
SELECT ALL 9 * SUM ( DISTINCT + 73 ) AS col2, 41 + 68 * - 66
----
657
-4447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT + COUNT( * ) + CASE - + 10 WHEN - COUNT( * ) + - + 18 THEN - - ( ( - 30 ) ) + 17 END - + + CAST( - 10 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT + COUNT ( * ) + CASE - + 10 WHEN - COUNT ( * ) + - + 18 THEN - - ( ( - 30 ) ) + 17 END - + + CAST ( - 10 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 21 - 19 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT MIN( DISTINCT + 56 ) AS col2, 18 AS col1
----
56
18

skipif mysql # not compatible
query II rowsort label-8987
SELECT MIN ( DISTINCT + 56 ) AS col2, 18 AS col1
----
56
18

query I rowsort
SELECT ALL 73 * + 13 AS col1
----
949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT - COALESCE ( + 24, + + 93 * + COUNT( * ), 16 DIV - + 65 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8989
SELECT - COALESCE ( + 24, + + 93 * + COUNT ( * ), 16 / - + 65 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - 61 + NULLIF ( 59, - + 11 + + 8 ) + - - 32 * 4 * - - COUNT( * ) * + 33 AS col2
----
4222

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 61 + NULLIF ( 59, - + 11 + + 8 ) + - - 32 * 4 * - - COUNT ( * ) * + 33 AS col2
----
4222

onlyif mysql # aggregate syntax: 
query II rowsort label-8991
SELECT - 20 * 73 AS col2, COUNT( * ) - + 80 col1
----
-1460
-79

skipif mysql # not compatible
query II rowsort label-8991
SELECT - 20 * 73 AS col2, COUNT ( * ) - + 80 col1
----
-1460
-79

query I rowsort
SELECT + NULLIF ( - 70, + - 83 ) * 39
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL MIN( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL MIN ( + 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8994
SELECT + CAST( - + 31 AS SIGNED ) DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8994
SELECT + CAST ( - + 31 AS INTEGER ) / + 69 AS col2
----
0

query I rowsort
SELECT ALL + ( + + 89 ) + - - 65 * 49 AS col1
----
3274

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ALL ( + ( + - 30 ) ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL ( + ( + - 30 ) ) / - 61
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8997
SELECT - CAST( NULL AS SIGNED ) DIV + CAST( NULL AS SIGNED ) AS col1, ( 30 ) * 74 + - 57 + + + 26 DIV 68 AS col0
----
NULL
2163

skipif mysql # not compatible
query II rowsort label-8997
SELECT - CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col1, ( 30 ) * 74 + - 57 + + + 26 / 68 AS col0
----
NULL
2163

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - - 34 * SUM( - - 35 )
----
1190

skipif mysql # not compatible
query I rowsort label-8998
SELECT - - 34 * SUM ( - - 35 )
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL - + 17 + - - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL - + 17 + - - COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT + + 23 - 95
----
-72

query I rowsort
SELECT ALL - - 91 * + 83 + - + 76 + + 73 AS col2
----
7550

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT 71 + + COUNT( * ) col1
----
72

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT 71 + + COUNT ( * ) col1
----
72

query II rowsort
SELECT ALL - 37 + + 48 AS col0, - 98 AS col0
----
11
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL SUM( + 25 ) + - 78 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL SUM ( + 25 ) + - 78 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT + ( + - 38 ) + - COUNT( * ) * 30 * - ( - NULLIF ( - COUNT( * ), ( - 79 ) + 88 + 67 * 53 / - 81 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + ( + - 38 ) + - COUNT ( * ) * 30 * - ( - NULLIF ( - COUNT ( * ), ( - 79 ) + 88 + 67 * 53 / - 81 ) )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT ALL + + 84 / + 44 + - 43 / + 87 / 71 * - + 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + + 84 / + 44 + - 43 / + 87 / 71 * - + 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9007
SELECT + CAST( - + 44 AS SIGNED ) + + + 89 - + - ( - + 52 ), - 97 AS col1
----
-7
-97

skipif mysql # not compatible
query II rowsort label-9007
SELECT + CAST ( - + 44 AS INTEGER ) + + + 89 - + - ( - + 52 ), - 97 AS col1
----
-7
-97

query I rowsort
SELECT - 55 * - 80 * 82 AS col0
----
360800

query I rowsort
SELECT + - 15 AS col0
----
-15

query II rowsort
SELECT + - ( - 1 ) AS col2, - 46 * - - 80 AS col2
----
1
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + MIN( DISTINCT - + 50 ) * 71 AS col2
----
-3550

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + MIN ( DISTINCT - + 50 ) * 71 AS col2
----
-3550

query I rowsort
SELECT ALL + ( - + 20 ) * 43 AS col2
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT DISTINCT + 95 * - MIN( + 13 ) AS col1
----
-1235

skipif mysql # not compatible
query I rowsort label-9013
SELECT DISTINCT + 95 * - MIN ( + 13 ) AS col1
----
-1235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT ALL + CAST( NULL AS SIGNED ) * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL + CAST ( NULL AS INTEGER ) * 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT + MIN( DISTINCT + 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + MIN ( DISTINCT + 94 ) AS col1
----
94

query I rowsort
SELECT DISTINCT + 4 * + + 57
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT + 95 * - COUNT( * ) col1
----
-95

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + 95 * - COUNT ( * ) col1
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT - 62 DIV + 57
----
-1

skipif mysql # not compatible
query I rowsort label-9018
SELECT - 62 / + 57
----
-1

query I rowsort
SELECT + 68 * 50 * - 96 AS col0
----
-326400

onlyif mysql # aggregate syntax: 
query II rowsort label-9020
SELECT ALL + 20 col0, - 42 * 54 + + COUNT( * ) + + 99 AS col2
----
20
-2168

skipif mysql # not compatible
query II rowsort label-9020
SELECT ALL + 20 col0, - 42 * 54 + + COUNT ( * ) + + 99 AS col2
----
20
-2168

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL + NULLIF ( + CASE + 1 WHEN 15 THEN - 30 WHEN + - COUNT( * ) + - 59 THEN - 15 END, - COUNT( * ) / - 45 * 77 * + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + NULLIF ( + CASE + 1 WHEN 15 THEN - 30 WHEN + - COUNT ( * ) + - 59 THEN - 15 END, - COUNT ( * ) / - 45 * 77 * + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - COUNT( * ) * + + 5
----
-5

skipif mysql # not compatible
query I rowsort label-9022
SELECT - COUNT ( * ) * + + 5
----
-5

query I rowsort
SELECT + ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT - SUM( + + 38 ) + - + 74 - + COALESCE ( + ( - 84 ), - + NULLIF ( - + 92, - - 27 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9024
SELECT - SUM ( + + 38 ) + - + 74 - + COALESCE ( + ( - 84 ), - + NULLIF ( - + 92, - - 27 ) )
----
-28

query I rowsort
SELECT DISTINCT + 83 - - + 4
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT 53 + - MAX( ALL 68 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9026
SELECT 53 + - MAX ( ALL 68 ) AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT 72 DIV + + 68 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9027
SELECT 72 / + + 68 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT COUNT( * ) * - 96 * NULLIF ( - 91, + COUNT( * ) / - 94 + - 1 )
----
8736

skipif mysql # not compatible
query I rowsort label-9028
SELECT COUNT ( * ) * - 96 * NULLIF ( - 91, + COUNT ( * ) / - 94 + - 1 )
----
8736

query I rowsort
SELECT ALL 95 * + + 26
----
2470

query I rowsort
SELECT 78 + - 57
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT DISTINCT + 12 DIV 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT + 12 / 40 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9032
SELECT ALL COUNT( * ) * + 42 DIV - + COUNT( * ) AS col2, - 99 AS col2
----
-42
-99

skipif mysql # not compatible
query II rowsort label-9032
SELECT ALL COUNT ( * ) * + 42 / - + COUNT ( * ) AS col2, - 99 AS col2
----
-42
-99

query I rowsort
SELECT ALL 41 + - 96
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT 13 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT 13 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT - 24 * + CAST( NULL AS SIGNED ) + + - 62 * + + ( + - CAST( NULL AS SIGNED ) ) * + + 68 * + 14 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT - 24 * + CAST ( NULL AS INTEGER ) + + - 62 * + + ( + - CAST ( NULL AS INTEGER ) ) * + + 68 * + 14 + + 40
----
NULL

query I rowsort
SELECT DISTINCT - 5 + + + 18
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT + COUNT( * ) + - 88 * 66 * 30 * - 7
----
1219681

skipif mysql # not compatible
query I rowsort label-9037
SELECT + COUNT ( * ) + - 88 * 66 * 30 * - 7
----
1219681

query I rowsort
SELECT COALESCE ( 36, NULLIF ( + - 62, + 72 ), + - 3 * + 41 ) col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT ALL CAST( + 73 AS SIGNED ) + + COUNT( * ) * - - MAX( - 52 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL CAST ( + 73 AS INTEGER ) + + COUNT ( * ) * - - MAX ( - 52 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - COUNT( * ) * ( - 29 ) + - + 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9040
SELECT - COUNT ( * ) * ( - 29 ) + - + 28 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - 61 + MIN( DISTINCT - + 76 ) * + 60 * - - 51 * - 35
----
8139539

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - 61 + MIN ( DISTINCT - + 76 ) * + 60 * - - 51 * - 35
----
8139539

query I rowsort
SELECT DISTINCT 38 + - + 13
----
25

query I rowsort
SELECT ALL - CASE - 38 WHEN 18 THEN + - 92 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL - COUNT( * ) + - + COUNT( ALL + - 34 )
----
-2

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - COUNT ( * ) + - + COUNT ( ALL + - 34 )
----
-2

query I rowsort
SELECT ALL - + 22 + 39 * - 99 * - + 48 * - 44
----
-8154454

query I rowsort
SELECT - 9 + - 9 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL MAX( 57 ) * 13 - - 12
----
753

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL MAX ( 57 ) * 13 - - 12
----
753

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + MAX( ALL + + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9048
SELECT + MAX ( ALL + + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT + 45 * - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9049
SELECT + 45 * - COUNT ( * ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT ( - - 86 ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT ( - - 86 ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( + 25, 45 )
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9052
SELECT ALL + 4 DIV CAST( - 88 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + 4 / CAST ( - 88 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT - 11 * - 64 * + - COUNT( * ) col2, - 12
----
-704
-12

skipif mysql # not compatible
query II rowsort label-9053
SELECT - 11 * - 64 * + - COUNT ( * ) col2, - 12
----
-704
-12

query II rowsort
SELECT DISTINCT - 47 AS col1, 37
----
-47
37

query I rowsort
SELECT DISTINCT 90 - + - 75 - 69
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9056
SELECT ALL + 97 DIV 71 AS col1, - ( + COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9056
SELECT ALL + 97 / 71 AS col1, - ( + COUNT ( * ) )
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT CAST( - - 3 AS SIGNED ) * 92 AS col0
----
276

skipif mysql # not compatible
query I rowsort label-9057
SELECT CAST ( - - 3 AS INTEGER ) * 92 AS col0
----
276

query I rowsort
SELECT - 72 * - 37 * - - COALESCE ( 15, - + 74 * - 83, + + 95 * + - ( - + ( + 0 ) ) )
----
39960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9059
SELECT ALL - 7 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - 7 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT MAX( + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT MAX ( + 96 ) AS col2
----
96

query I rowsort
SELECT DISTINCT + 25 + + ( - + 76 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT DISTINCT CASE - - CASE + 83 WHEN COUNT( * ) THEN - 7 WHEN - ( + 62 ) * + 92 + 95 THEN NULL END WHEN + COUNT( * ) * - 60 - - ( 77 ) THEN 43 WHEN + 56 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT CASE - - CASE + 83 WHEN COUNT ( * ) THEN - 7 WHEN - ( + 62 ) * + 92 + 95 THEN NULL END WHEN + COUNT ( * ) * - 60 - - ( 77 ) THEN 43 WHEN + 56 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL + 7 + - + COUNT( * ) + + 38 + - 86
----
-42

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + 7 + - + COUNT ( * ) + + 38 + - 86
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL COALESCE ( - 64, - ( 30 ), - COUNT( * ) ) + - 84
----
-148

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL COALESCE ( - 64, - ( 30 ), - COUNT ( * ) ) + - 84
----
-148

query I rowsort
SELECT - 47 + + ( - 38 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT + 89 + 43 * COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT + 89 + 43 * COUNT ( * )
----
132

query I rowsort
SELECT ALL COALESCE ( 18, + - 45, + 23 + 12 ) AS col2
----
18

query I rowsort
SELECT - 11 * + 5
----
-55

query I rowsort
SELECT - + NULLIF ( - 1, - 88 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - + 37 + MIN( DISTINCT - 52 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9070
SELECT - + 37 + MIN ( DISTINCT - 52 ) AS col1
----
-89

query I rowsort
SELECT ALL + + 1 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9072
SELECT DISTINCT + + ( + - 96 ) AS col1, ( + + 81 ) - - COUNT( * )
----
-96
82

skipif mysql # not compatible
query II rowsort label-9072
SELECT DISTINCT + + ( + - 96 ) AS col1, ( + + 81 ) - - COUNT ( * )
----
-96
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9073
SELECT + 93 DIV + 44 + - 94
----
-92

skipif mysql # not compatible
query I rowsort label-9073
SELECT + 93 / + 44 + - 94
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL - 49 * + 67 + 30 + + 76 * - 58 * - - NULLIF ( + + 50, + 75 + - 88 + - 66 * - - COUNT( * ) * + ( ( 7 ) ) )
----
-223653

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - 49 * + 67 + 30 + + 76 * - 58 * - - NULLIF ( + + 50, + 75 + - 88 + - 66 * - - COUNT ( * ) * + ( ( 7 ) ) )
----
-223653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9075
SELECT + + 88 DIV + SUM( DISTINCT + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9075
SELECT + + 88 / + SUM ( DISTINCT + 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + + NULLIF ( + 58, - + 88 - - - COUNT( - 17 ) / - 80 + 42 + + 74 * - COUNT( * ) / - - 30 )
----
58

skipif mysql # not compatible
query I rowsort label-9076
SELECT + + NULLIF ( + 58, - + 88 - - - COUNT ( - 17 ) / - 80 + 42 + + 74 * - COUNT ( * ) / - - 30 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT - + 19 DIV + - 25 + + 60 + - 91 * + ( - - 52 ) col1
----
-4672

skipif mysql # not compatible
query I rowsort label-9077
SELECT - + 19 / + - 25 + + 60 + - 91 * + ( - - 52 ) col1
----
-4672

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT + - COUNT( DISTINCT - ( + 58 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + - COUNT ( DISTINCT - ( + 58 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT + - 5 * + 3 * + 60 + + - 30 - - 53 DIV + + 68 + 77 * - 10 + + - COUNT( * ) + - 97 * 31
----
-4708

skipif mysql # not compatible
query I rowsort label-9079
SELECT + - 5 * + 3 * + 60 + + - 30 - - 53 / + + 68 + 77 * - 10 + + - COUNT ( * ) + - 97 * 31
----
-4708

query II rowsort
SELECT + 9 * + + 70 AS col1, + 74 AS col1
----
630
74

query I rowsort
SELECT + 14 + - - 79 + - 7 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT MAX( ALL + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9082
SELECT MAX ( ALL + 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT - CAST( NULL AS SIGNED ) * - + 35 * 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT - CAST ( NULL AS INTEGER ) * - + 35 * 12 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 19 * + + COALESCE ( + + 20, + - 50 )
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + 84 + 40 + - COUNT( * ) * 72 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9085
SELECT + 84 + 40 + - COUNT ( * ) * 72 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + 41 + + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9086
SELECT + 41 + + COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - 6 + + - COUNT( * ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-9087
SELECT - 6 + + - COUNT ( * ) col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL MIN( - + 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL MIN ( - + 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT - COUNT( * ) + 4 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - COUNT ( * ) + 4 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT - 46 * + + CASE - + 38 WHEN + 96 / + 77 THEN 76 * - CAST( NULL AS SIGNED ) * - 11 + CASE COUNT( + 44 ) WHEN - 88 + + + ( - + 6 ) THEN NULL WHEN 27 * - - 78 * 54 + COUNT( * ) THEN 99 WHEN + 79 THEN 59 * 85 * + - 40 * - + 75 + - 53 - COUNT( * ) ELSE + CAST( NULL AS SIGNED ) * + 64 + + COUNT( 88 + - 50 ) END - 97 * 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT - 46 * + + CASE - + 38 WHEN + 96 / + 77 THEN 76 * - CAST ( NULL AS INTEGER ) * - 11 + CASE COUNT ( + 44 ) WHEN - 88 + + + ( - + 6 ) THEN NULL WHEN 27 * - - 78 * 54 + COUNT ( * ) THEN 99 WHEN + 79 THEN 59 * 85 * + - 40 * - + 75 + - 53 - COUNT ( * ) ELSE + CAST ( NULL AS INTEGER ) * + 64 + + COUNT ( 88 + - 50 ) END - 97 * 26 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT + 2 * + 82 + - COUNT( * ) + + - 32
----
131

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + 2 * + 82 + - COUNT ( * ) + + - 32
----
131

query I rowsort
SELECT ALL - + 27 + - - 92 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL + + 64 + - + COUNT( * ) + 88 * ( + 43 ) AS col1
----
3847

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL + + 64 + - + COUNT ( * ) + 88 * ( + 43 ) AS col1
----
3847

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT + - 14 * + + COUNT( * ) + ( - + 48 ) * + 90 * - COUNT( * ) AS col1
----
4306

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT + - 14 * + + COUNT ( * ) + ( - + 48 ) * + 90 * - COUNT ( * ) AS col1
----
4306

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - + MAX( - 42 ) + 5 + - 48 * + 78 AS col0
----
-3697

skipif mysql # not compatible
query I rowsort label-9095
SELECT - + MAX ( - 42 ) + 5 + - 48 * + 78 AS col0
----
-3697

query I rowsort
SELECT - 82 * - 7 + + 89 * + 76 AS col2
----
7338

query I rowsort
SELECT + + 94 * - ( + - 97 ) + - 15 col0
----
9103

query I rowsort
SELECT - 44 + + 14 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT + - 59 * + MAX( DISTINCT 32 ) AS col2, 41 * - 0 AS col1
----
-1888
0

skipif mysql # not compatible
query II rowsort label-9099
SELECT + - 59 * + MAX ( DISTINCT 32 ) AS col2, 41 * - 0 AS col1
----
-1888
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT + + NULLIF ( + COUNT( * ), + 4 * + 72 * 52 * COUNT( * ) * - 57 + 20 + - 97 * COUNT( * ) / + 40 + 20 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + + NULLIF ( + COUNT ( * ), + 4 * + 72 * 52 * COUNT ( * ) * - 57 + 20 + - 97 * COUNT ( * ) / + 40 + 20 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT CASE - 9 WHEN - + 19 * 67 THEN + - ( COUNT( ALL - + 56 ) ) ELSE NULL END * - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT CASE - 9 WHEN - + 19 * 67 THEN + - ( COUNT ( ALL - + 56 ) ) ELSE NULL END * - + 64
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9102
SELECT - COUNT( DISTINCT - 27 ) * + - 56 DIV 98 * - - ( + 63 ) DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9102
SELECT - COUNT ( DISTINCT - 27 ) * + - 56 / 98 * - - ( + 63 ) / 60 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9103
SELECT ALL + + COUNT( * ) AS col1, CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9103
SELECT ALL + + COUNT ( * ) AS col1, CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9104
SELECT + CAST( + + 11 AS SIGNED ) / - 10 * + 11 + - - CASE + - 99 WHEN ( COALESCE ( ( 63 ), + + CAST( 46 AS DECIMAL ) ) ) + - 91 THEN - + 85 * + - 66 + - 21 - + - 18 + - 28 * + - 59 + - 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT + CAST ( + + 11 AS INTEGER ) / - 10 * + 11 + - - CASE + - 99 WHEN ( COALESCE ( ( 63 ), + + CAST ( 46 AS REAL ) ) ) + - 91 THEN - + 85 * + - 66 + - 21 - + - 18 + - 28 * + - 59 + - 30 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 76 * - 90
----
6840

query I rowsort
SELECT + - 7 + 76 * 53
----
4021

query I rowsort
SELECT - + 38 * - - 62 * - 97 + + 93 col2
----
228625

onlyif mysql # DIV for integer division: 
query II rowsort label-9108
SELECT 98 DIV 93, 83 * + 47 + 42 - - 66 * - 59 AS col0
----
1
49

skipif mysql # not compatible
query II rowsort label-9108
SELECT 98 / 93, 83 * + 47 + 42 - - 66 * - 59 AS col0
----
1
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9109
SELECT + 77, + COUNT( + ( + - 13 ) ) * 58 * - 41 AS col2
----
77
-2378

skipif mysql # not compatible
query II rowsort label-9109
SELECT + 77, + COUNT ( + ( + - 13 ) ) * 58 * - 41 AS col2
----
77
-2378

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT DISTINCT 37 DIV + NULLIF ( + - 31, 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT 37 / + NULLIF ( + - 31, 51 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9111
SELECT ALL - 79 + - + 83 DIV 53
----
-80

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL - 79 + - + 83 / 53
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9112
SELECT DISTINCT + 25 + + + 6, + ( - + ( - 35 ) ) * + CAST( NULL AS DECIMAL ) / - - ( + 30 ) * - + 36 AS col2, 23 AS col2
----
31
NULL
23

skipif mysql # not compatible
query III rowsort label-9112
SELECT DISTINCT + 25 + + + 6, + ( - + ( - 35 ) ) * + CAST ( NULL AS REAL ) / - - ( + 30 ) * - + 36 AS col2, 23 AS col2
----
31
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT ALL 72 DIV + 42 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL 72 / + 42 AS col0
----
1

query II rowsort
SELECT ALL + 7 + 52 + + 48 + + 85, + ( + - 64 ) AS col2
----
192
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT ( MIN( DISTINCT + 81 ) ) + + 0 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT ( MIN ( DISTINCT + 81 ) ) + + 0 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL COUNT( * ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL COUNT ( * ) + 53
----
54

query II rowsort
SELECT 47, + 32 + + 72 col1
----
47
104

query II rowsort
SELECT DISTINCT 52 AS col1, - 60 AS col0
----
52
-60

query II rowsort
SELECT - 56 col0, - 74 * 98
----
-56
-7252

query I rowsort
SELECT 36 * + - 28
----
-1008

query I rowsort
SELECT ALL 64 + + ( 8 ) * 1 + - + 92 AS col1
----
-20

query I rowsort
SELECT 6 * - - 63 AS col2
----
378

query II rowsort
SELECT - 12, - 18 * ( 55 ) * 92 + 96 + + 84 col0
----
-12
-90900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT 93 + - CAST( NULL AS SIGNED ) + + + 67 + - 1 + - - 64 * - ( 94 ) * - - 97 * + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT 93 + - CAST ( NULL AS INTEGER ) + + + 67 + - 1 + - - 64 * - ( 94 ) * - - 97 * + 14 AS col1
----
NULL

query I rowsort
SELECT ALL 28 - 0 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT - MAX( + - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9126
SELECT - MAX ( + - 8 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9127
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) DIV + CASE + COUNT( * ) WHEN - 33 THEN - 44 * COUNT( * ) + + + CASE + - MIN( + 1 ) WHEN + - COUNT( * ) - 60 + + 24 THEN + 54 ELSE + 94 END ELSE - - COUNT( * ) - - COUNT( ( - 19 ) ) * - 30 * - 97 + + 85 END DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) / + CASE + COUNT ( * ) WHEN - 33 THEN - 44 * COUNT ( * ) + + + CASE + - MIN ( + 1 ) WHEN + - COUNT ( * ) - 60 + + 24 THEN + 54 ELSE + 94 END ELSE - - COUNT ( * ) - - COUNT ( ( - 19 ) ) * - 30 * - 97 + + 85 END / + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL + 35 - - ( - + COUNT( * ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + 35 - - ( - + COUNT ( * ) ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL NULLIF ( 64, + - COUNT( * ) + + 25 + + 71 / - SUM( ALL + 3 ) * + 45 / 27 * + 40 - - COUNT( * ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL NULLIF ( 64, + - COUNT ( * ) + + 25 + + 71 / - SUM ( ALL + 3 ) * + 45 / 27 * + 40 - - COUNT ( * ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT + SUM( + - 97 ) + + 17 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9130
SELECT + SUM ( + - 97 ) + + 17 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT + 5 * + COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9131
SELECT + 5 * + COUNT ( * ) AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9132
SELECT ALL - 72 * 25 * 55 + CASE + ( + + 91 ) WHEN - 16 THEN 44 DIV + COUNT( * ) ELSE + - 54 END
----
-99054

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL - 72 * 25 * 55 + CASE + ( + + 91 ) WHEN - 16 THEN 44 / + COUNT ( * ) ELSE + - 54 END
----
-99054

query I rowsort
SELECT ALL + - 36 * - - 61 AS col0
----
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT + SUM( ALL 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9134
SELECT + SUM ( ALL 78 ) AS col1
----
78

query I rowsort
SELECT DISTINCT - 80 * + 46 + + 46 AS col1
----
-3634

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9136
SELECT DISTINCT - - 12 AS col0, + ( + CAST( + + 3 AS SIGNED ) ) * 42 - - 30
----
12
156

skipif mysql # not compatible
query II rowsort label-9136
SELECT DISTINCT - - 12 AS col0, + ( + CAST ( + + 3 AS INTEGER ) ) * 42 - - 30
----
12
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT + NULLIF ( - CAST( + - COUNT( * ) AS SIGNED ), + - 49 ) + - SUM( ALL 18 ) * - + 83 AS col1
----
1495

skipif mysql # not compatible
query I rowsort label-9137
SELECT + NULLIF ( - CAST ( + - COUNT ( * ) AS INTEGER ), + - 49 ) + - SUM ( ALL 18 ) * - + 83 AS col1
----
1495

query I rowsort
SELECT 94 * 24 + 15 AS col2
----
2271

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT - SUM( 41 ) * - 8 * - NULLIF ( + 90, - 99 - + + 55 )
----
-29520

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - SUM ( 41 ) * - 8 * - NULLIF ( + 90, - 99 - + + 55 )
----
-29520

query I rowsort
SELECT DISTINCT - 93 + - 34 * - 86 * - + 39 * + 91 AS col2
----
-10377369

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9141
SELECT ALL + 39 + - 61 * - - 65 * + 50 - + CAST( + ( + 4 ) AS SIGNED ) * 45 DIV - 54
----
-198208

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL + 39 + - 61 * - - 65 * + 50 - + CAST ( + ( + 4 ) AS INTEGER ) * 45 / - 54
----
-198208

query I rowsort
SELECT ALL - 75 + 53 AS col1
----
-22

query I rowsort
SELECT DISTINCT - ( + 69 ) AS col1
----
-69

query I rowsort
SELECT DISTINCT - 66 * + 19 col2
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL ( 13 ) + + - 45 * + ( 18 ) * COUNT( * ) - + 6 + + 35 AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL ( 13 ) + + - 45 * + ( 18 ) * COUNT ( * ) - + 6 + + 35 AS col2
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL - COALESCE ( 3, + + 81 ) * + ( 0 ) + - ( MAX( DISTINCT - - 39 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - COALESCE ( 3, + + 81 ) * + ( 0 ) + - ( MAX ( DISTINCT - - 39 ) ) AS col0
----
-39

query I rowsort
SELECT 81 + + 29 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT 76 * + + MIN( DISTINCT + + 29 ) * + - 16 + ( - 88 )
----
-35352

skipif mysql # not compatible
query I rowsort label-9148
SELECT 76 * + + MIN ( DISTINCT + + 29 ) * + - 16 + ( - 88 )
----
-35352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9149
SELECT - COALESCE ( MIN( ALL + 64 ), + COUNT( * ) DIV + 77, - + 62 ) * 58 + 92 AS col0
----
-3620

skipif mysql # not compatible
query I rowsort label-9149
SELECT - COALESCE ( MIN ( ALL + 64 ), + COUNT ( * ) / + 77, - + 62 ) * 58 + 92 AS col0
----
-3620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9150
SELECT DISTINCT + COALESCE ( - 32, - 55 + + - 2 DIV - + 24 + - COUNT( DISTINCT - COALESCE ( - 50, - 8 ) ), + COUNT( * ) ) - + + CASE 11 WHEN + 7 THEN 79 ELSE - - COUNT( * ) * + 82 END - + ( 82 ) * + 53
----
-4460

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + COALESCE ( - 32, - 55 + + - 2 / - + 24 + - COUNT ( DISTINCT - COALESCE ( - 50, - 8 ) ), + COUNT ( * ) ) - + + CASE 11 WHEN + 7 THEN 79 ELSE - - COUNT ( * ) * + 82 END - + ( 82 ) * + 53
----
-4460

onlyif mysql # aggregate syntax: 
query II rowsort label-9151
SELECT ALL + 13 - 70 - - 19 + + + 49 + + NULLIF ( + + 74, + 58 ) * + + 35 * - 49 + - 56 col2, + COUNT( * )
----
-126955
1

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL + 13 - 70 - - 19 + + + 49 + + NULLIF ( + + 74, + 58 ) * + + 35 * - 49 + - 56 col2, + COUNT ( * )
----
-126955
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL SUM( + 85 ) col1
----
85

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL SUM ( + 85 ) col1
----
85

query I rowsort
SELECT ALL 11 - - 76 + - 31
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9154
SELECT ALL SUM( 61 ), ( - - COUNT( * ) ) DIV + 37 AS col1
----
61
0

skipif mysql # not compatible
query II rowsort label-9154
SELECT ALL SUM ( 61 ), ( - - COUNT ( * ) ) / + 37 AS col1
----
61
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL ( NULLIF ( + + 63, - 10 ) ) - + 39 - + CASE + + MAX( 31 ) WHEN - 88 THEN 10 WHEN + 24 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL ( NULLIF ( + + 63, - 10 ) ) - + 39 - + CASE + + MAX ( 31 ) WHEN - 88 THEN 10 WHEN + 24 THEN NULL END
----
NULL

query I rowsort
SELECT - 3 * + + 68 * - 18 * - + 74
----
-271728

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT 68 * + + COUNT( * ) + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-9157
SELECT 68 * + + COUNT ( * ) + + COUNT ( * )
----
69

query I rowsort
SELECT + 12 + 39 * + + 66
----
2586

query I rowsort
SELECT NULLIF ( + 50, 94 ) + 53
----
103

query I rowsort
SELECT ALL - 42 * 80 * 5
----
-16800

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT 47 + + CASE - + 14 WHEN 76 + + 92 THEN + MAX( DISTINCT - - 5 ) * 74 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT 47 + + CASE - + 14 WHEN 76 + + 92 THEN + MAX ( DISTINCT - - 5 ) * 74 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - 62 + + - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 62 + + - COUNT ( * )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT ALL 45 DIV + 8 col1
----
5

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL 45 / + 8 col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9164
SELECT 90 DIV 16 * - MIN( DISTINCT COALESCE ( - + ( + - 95 ), - 40 + + 5 - - + 70 * 83 + + 53 ) ) + - COUNT( * ) + 3 * 10 * COUNT( * )
----
-446

skipif mysql # not compatible
query I rowsort label-9164
SELECT 90 / 16 * - MIN ( DISTINCT COALESCE ( - + ( + - 95 ), - 40 + + 5 - - + 70 * 83 + + 53 ) ) + - COUNT ( * ) + 3 * 10 * COUNT ( * )
----
-446

query I rowsort
SELECT + + 5 * - - 20 + - 10
----
90

query I rowsort
SELECT + + ( - ( + - 30 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL + 84 * + + 98 + - MAX( - - 94 )
----
8138

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + 84 * + + 98 + - MAX ( - - 94 )
----
8138

query I rowsort
SELECT ALL 81 * + 3 + + + 81 AS col2
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT ALL - 6 * - 2 + - 6 DIV - 80 * + - 51 * + 92 DIV - 65
----
12

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL - 6 * - 2 + - 6 / - 80 * + - 51 * + 92 / - 65
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT - CAST( + 11 AS SIGNED ) * + 25 AS col0
----
-275

skipif mysql # not compatible
query I rowsort label-9170
SELECT - CAST ( + 11 AS INTEGER ) * + 25 AS col0
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT NULLIF ( NULLIF ( 10, + 36 ), + MAX( - NULLIF ( + + 7, - - 56 * - 96 ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-9171
SELECT NULLIF ( NULLIF ( 10, + 36 ), + MAX ( - NULLIF ( + + 7, - - 56 * - 96 ) ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL + CASE + ( - 80 ) WHEN - + 92 / + 60 THEN + + 20 * ( - COUNT( * ) ) * - 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL + CASE + ( - 80 ) WHEN - + 92 / + 60 THEN + + 20 * ( - COUNT ( * ) ) * - 31 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT + CASE - - 10 WHEN + - 50 THEN NULL ELSE - 68 + + + 91 * + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT + CASE - - 10 WHEN + - 50 THEN NULL ELSE - 68 + + + 91 * + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT MIN( DISTINCT 72 )
----
72

skipif mysql # not compatible
query I rowsort label-9174
SELECT MIN ( DISTINCT 72 )
----
72

query II rowsort
SELECT ALL + 96, 74 col2
----
96
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT ALL + 18 * - + 9 * - 87 col2, COUNT( * ) + - - 3 * + COUNT( * )
----
14094
4

skipif mysql # not compatible
query II rowsort label-9176
SELECT ALL + 18 * - + 9 * - 87 col2, COUNT ( * ) + - - 3 * + COUNT ( * )
----
14094
4

query I rowsort
SELECT - 17 * - 34
----
578

query I rowsort
SELECT - 29 * - + 12 * - 38
----
-13224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT - - CAST( NULL AS SIGNED ) / + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT - - CAST ( NULL AS INTEGER ) / + - 58
----
NULL

query I rowsort
SELECT ALL + CASE 31 WHEN + 3 THEN - 37 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - + 52 - 45 * - 8 AS col2, 5 * + 38 * + - 5 + - - 87 AS col2
----
308
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - - 77 - - 74 * - 18 * + + NULLIF ( 92, - AVG ( DISTINCT - 51 ) ) + 91 * + + COUNT( * ) + 41 AS col1
----
-122335

skipif mysql # not compatible
query I rowsort label-9182
SELECT - - 77 - - 74 * - 18 * + + NULLIF ( 92, - AVG ( DISTINCT - 51 ) ) + 91 * + + COUNT ( * ) + 41 AS col1
----
-122335

query I rowsort
SELECT DISTINCT 63 * - 38
----
-2394

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT DISTINCT + 38 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT + 38 / 74 AS col2
----
0

query I rowsort
SELECT ALL - 80 + 53 AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9186
SELECT DISTINCT + - 90 + + 12 DIV - ( - ( - + CASE 93 WHEN + 82 * + COUNT( * ) THEN + - 94 ELSE + COUNT( * ) + + + 33 + 43 - + 84 * + + ( - 9 ) END ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + - 90 + + 12 / - ( - ( - + CASE 93 WHEN + 82 * + COUNT ( * ) THEN + - 94 ELSE + COUNT ( * ) + + + 33 + 43 - + 84 * + + ( - 9 ) END ) ) AS col1
----
-90

query II rowsort
SELECT 40, COALESCE ( - 85, - + 93 ) AS col1
----
40
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-9188
SELECT - COUNT( * ), 70 * + - ( - ( + 34 ) ) AS col2
----
-1
2380

skipif mysql # not compatible
query II rowsort label-9188
SELECT - COUNT ( * ), 70 * + - ( - ( + 34 ) ) AS col2
----
-1
2380

query I rowsort
SELECT DISTINCT - 89 + 91
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL NULLIF ( + - 2, - MIN( + 41 ) + + AVG ( ALL + 0 ) ) * - 64
----
128

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL NULLIF ( + - 2, - MIN ( + 41 ) + + AVG ( ALL + 0 ) ) * - 64
----
128

query I rowsort
SELECT - 3 * + 34 * + 53 + - 5 - 44 * - + 36 * + - 15 * + 28
----
-670691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT + + ( + + 31 ) * + + 5 + - COALESCE ( - 44, - CASE + CAST( - - 93 AS SIGNED ) WHEN - 69 + 81 THEN - 84 WHEN COUNT( * ) THEN - COALESCE ( + + MAX( + - 50 ), 42 * CAST( NULL AS SIGNED ) + + 2, COUNT( * ), + 24 * - - 95 ) END, 11 + 46 + - MIN( ALL - - 69 ) + + COALESCE ( - 43, - ( COUNT( * ) ) ) * COUNT( * ) )
----
199

skipif mysql # not compatible
query I rowsort label-9192
SELECT + + ( + + 31 ) * + + 5 + - COALESCE ( - 44, - CASE + CAST ( - - 93 AS INTEGER ) WHEN - 69 + 81 THEN - 84 WHEN COUNT ( * ) THEN - COALESCE ( + + MAX ( + - 50 ), 42 * CAST ( NULL AS INTEGER ) + + 2, COUNT ( * ), + 24 * - - 95 ) END, 11 + 46 + - MIN ( ALL - - 69 ) + + COALESCE ( - 43, - ( COUNT ( * ) ) ) * COUNT ( * ) )
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-9193
SELECT - + 87, MAX( 50 ) AS col1
----
-87
50

skipif mysql # not compatible
query II rowsort label-9193
SELECT - + 87, MAX ( 50 ) AS col1
----
-87
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - COUNT( * ) + 38 + + 82 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - COUNT ( * ) + 38 + + 82 AS col0
----
119

query I rowsort
SELECT DISTINCT - + 48 + 54 AS col2
----
6

query I rowsort
SELECT ALL + 53 + - 60
----
-7

query I rowsort
SELECT DISTINCT 18 * 39 AS col0
----
702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9198
SELECT DISTINCT CAST( - - 9 AS SIGNED ) DIV COUNT( ALL - - 10 ) + 67
----
76

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT CAST ( - - 9 AS INTEGER ) / COUNT ( ALL - - 10 ) + 67
----
76

query I rowsort
SELECT + 1 + + + 15 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL CASE + COUNT( * ) WHEN - ( MIN( ALL - NULLIF ( + 95, - 22 ) ) ) THEN - COALESCE ( - 24, + CAST( NULL AS SIGNED ) ) + + + COUNT( * ) WHEN + COUNT( - + 69 ) THEN NULL WHEN 20 THEN 3 ELSE NULL END / + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL CASE + COUNT ( * ) WHEN - ( MIN ( ALL - NULLIF ( + 95, - 22 ) ) ) THEN - COALESCE ( - 24, + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) WHEN + COUNT ( - + 69 ) THEN NULL WHEN 20 THEN 3 ELSE NULL END / + 26 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT + ( 71 ) * - - CASE - 92 WHEN - 49 THEN + 14 * - 44 END + CAST( - 22 AS SIGNED ) + + - 26 + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT + ( 71 ) * - - CASE - 92 WHEN - 49 THEN + 14 * - 44 END + CAST ( - 22 AS INTEGER ) + + - 26 + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - COUNT( * ) * 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9202
SELECT - COUNT ( * ) * 37 AS col1
----
-37

query II rowsort
SELECT DISTINCT 71 * + 72 AS col0, + 52
----
5112
52

query I rowsort
SELECT ALL - 19 * - 18 - + 99 + + 78 * 48 * - - 63
----
236115

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL COUNT( * ) * 61 * - - 69
----
4209

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL COUNT ( * ) * 61 * - - 69
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT CASE ( + + 77 ) WHEN + - COALESCE ( 11, + + COUNT( ALL 24 ) ) THEN - 16 * + COALESCE ( - 70, - 79 + - COUNT( - 55 ) ) * 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT CASE ( + + 77 ) WHEN + - COALESCE ( 11, + + COUNT ( ALL 24 ) ) THEN - 16 * + COALESCE ( - 70, - 79 + - COUNT ( - 55 ) ) * 33 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT ALL + COUNT( + 1 ), 27 AS col1
----
1
27

skipif mysql # not compatible
query II rowsort label-9207
SELECT ALL + COUNT ( + 1 ), 27 AS col1
----
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT - COUNT( * ) * ( 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-9208
SELECT - COUNT ( * ) * ( 88 )
----
-88

query I rowsort
SELECT - - 92 + + 30 col2
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT - ( + COUNT( * ) ) * + COUNT( * ) DIV NULLIF ( ( + NULLIF ( 89, 21 ) ), 65 ) * + - 62 + - ( + 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9210
SELECT - ( + COUNT ( * ) ) * + COUNT ( * ) / NULLIF ( ( + NULLIF ( 89, 21 ) ), 65 ) * + - 62 + - ( + 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - SUM( ALL - 40 ) * + 62 - - 91 * + 33 + 75
----
5558

skipif mysql # not compatible
query I rowsort label-9211
SELECT - SUM ( ALL - 40 ) * + 62 - - 91 * + 33 + 75
----
5558

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT - - NULLIF ( - - 82, + 19 ) + SUM( - + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9212
SELECT - - NULLIF ( - - 82, + 19 ) + SUM ( - + 41 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9213
SELECT ALL + 41 * - 30 * + + 4 + + CAST( NULL AS SIGNED ) col2, CAST( + COUNT( * ) AS SIGNED ) * - 71 - + 85 * + + COUNT( * ) - - 42 - 7 DIV 75 + 62 * + - 91
----
NULL
-5756

skipif mysql # not compatible
query II rowsort label-9213
SELECT ALL + 41 * - 30 * + + 4 + + CAST ( NULL AS INTEGER ) col2, CAST ( + COUNT ( * ) AS INTEGER ) * - 71 - + 85 * + + COUNT ( * ) - - 42 - 7 / 75 + 62 * + - 91
----
NULL
-5756

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT + 93 * - - COALESCE ( 5, + CASE - + COUNT( * ) WHEN - 97 + + AVG ( DISTINCT - 29 ) THEN + COUNT( * ) WHEN 0 - - 92 * - 16 THEN + - 67 ELSE NULL END, 41 ) AS col1
----
465

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + 93 * - - COALESCE ( 5, + CASE - + COUNT ( * ) WHEN - 97 + + AVG ( DISTINCT - 29 ) THEN + COUNT ( * ) WHEN 0 - - 92 * - 16 THEN + - 67 ELSE NULL END, 41 ) AS col1
----
465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9215
SELECT 79 * + 71 + - - NULLIF ( + 35, - 2 ) DIV + COUNT( * ) col1
----
5644

skipif mysql # not compatible
query I rowsort label-9215
SELECT 79 * + 71 + - - NULLIF ( + 35, - 2 ) / + COUNT ( * ) col1
----
5644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT - 48 + - 44 + + 55 * + 73 * + CAST( - + 57 AS SIGNED ) AS col2
----
-228947

skipif mysql # not compatible
query I rowsort label-9216
SELECT - 48 + - 44 + + 55 * + 73 * + CAST ( - + 57 AS INTEGER ) AS col2
----
-228947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT 69 + + + 31 * - 0 * CAST( + 18 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-9217
SELECT 69 + + + 31 * - 0 * CAST ( + 18 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + MIN( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9218
SELECT + MIN ( 48 )
----
48

query I rowsort
SELECT 87 + + 26 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT + 57 + + COUNT( ALL + + ( - + 87 ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + 57 + + COUNT ( ALL + + ( - + 87 ) ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT - 24 + COUNT( * ) AS col1, 92
----
-23
92

skipif mysql # not compatible
query II rowsort label-9221
SELECT - 24 + COUNT ( * ) AS col1, 92
----
-23
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT 63 + + 76 + - 80 - 94 + ( MAX( DISTINCT - 44 ) ) + COUNT( * ) * - 27 + 67 * + - 58
----
-3992

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT 63 + + 76 + - 80 - 94 + ( MAX ( DISTINCT - 44 ) ) + COUNT ( * ) * - 27 + 67 * + - 58
----
-3992

query I rowsort
SELECT 79 + - 87
----
-8

query II rowsort
SELECT ALL + 8 + - 1 AS col1, ( - 37 ) + 39 AS col2
----
7
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT ALL 81 * CAST( NULL AS SIGNED ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL 81 * CAST ( NULL AS INTEGER ) + - 38
----
NULL

query II rowsort
SELECT DISTINCT + + 83 - + - 71 AS col0, 54 * + 32 * 22 AS col0
----
154
38016

onlyif mysql # aggregate syntax: 
query II rowsort label-9227
SELECT - 71, 57 + - COALESCE ( - 50, - SUM( ALL - 84 ) * MIN( ALL - 77 ) ) * 6 + - 29 AS col2
----
-71
328

skipif mysql # not compatible
query II rowsort label-9227
SELECT - 71, 57 + - COALESCE ( - 50, - SUM ( ALL - 84 ) * MIN ( ALL - 77 ) ) * 6 + - 29 AS col2
----
-71
328

query II rowsort
SELECT 41, 73 AS col1
----
41
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT COUNT( * ) * + COALESCE ( - 5, + 92 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9229
SELECT COUNT ( * ) * + COALESCE ( - 5, + 92 ) AS col2
----
-5

query I rowsort
SELECT ( - 89 ) + - NULLIF ( - + 7, + 3 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9231
SELECT ALL ( + MAX( + + 7 ) ) * + - 51 + + 71, COALESCE ( + NULLIF ( - CAST( NULL AS SIGNED ), - + 97 ), 94 * + - 68 + COUNT( ALL - 97 ) - 76 + - 81 ) AS col1
----
-286
-6548

skipif mysql # not compatible
query II rowsort label-9231
SELECT ALL ( + MAX ( + + 7 ) ) * + - 51 + + 71, COALESCE ( + NULLIF ( - CAST ( NULL AS INTEGER ), - + 97 ), 94 * + - 68 + COUNT ( ALL - 97 ) - 76 + - 81 ) AS col1
----
-286
-6548

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT DISTINCT - 84, 42 + - COALESCE ( NULLIF ( + COUNT( ALL + 13 ), + 49 * + 58 * ( 46 ) * + - 93 ), - 97, + 52 ) AS col0
----
-84
41

skipif mysql # not compatible
query II rowsort label-9232
SELECT DISTINCT - 84, 42 + - COALESCE ( NULLIF ( + COUNT ( ALL + 13 ), + 49 * + 58 * ( 46 ) * + - 93 ), - 97, + 52 ) AS col0
----
-84
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9233
SELECT DISTINCT + 26 * + CASE + + 71 WHEN + 41 - - 15 THEN NULL WHEN + + 13 THEN - + COUNT( * ) WHEN - + 37 THEN NULL END AS col2, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9233
SELECT DISTINCT + 26 * + CASE + + 71 WHEN + 41 - - 15 THEN NULL WHEN + + 13 THEN - + COUNT ( * ) WHEN - + 37 THEN NULL END AS col2, 70
----
NULL
70

query I rowsort
SELECT ( 80 ) * 51 AS col0
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT 16 * + + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9235
SELECT 16 * + + COUNT ( * ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-9236
SELECT DISTINCT 17 DIV - 88 * - 62, - 84 AS col0
----
0
-84

skipif mysql # not compatible
query II rowsort label-9236
SELECT DISTINCT 17 / - 88 * - 62, - 84 AS col0
----
0
-84

query II rowsort
SELECT + 62, 88 * 71 AS col2
----
62
6248

query I rowsort
SELECT ALL 52 + - ( + 32 ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT ALL 64 DIV - - 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL 64 / - - 53 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT + 83 + + 42 - + 55 + - 52 * - - 54 * + ( + 74 ) - - 51 * + CASE + 52 WHEN + - COUNT( * ) THEN NULL WHEN + 69 THEN 18 WHEN - 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT + 83 + + 42 - + 55 + - 52 * - - 54 * + ( + 74 ) - - 51 * + CASE + 52 WHEN + - COUNT ( * ) THEN NULL WHEN + 69 THEN 18 WHEN - 59 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + - 77 * - 71 AS col2
----
5467

query I rowsort
SELECT DISTINCT - ( - 14 ) + 86 AS col2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT + COALESCE ( 62, - - CAST( 80 AS SIGNED ) )
----
62

skipif mysql # not compatible
query I rowsort label-9243
SELECT + COALESCE ( 62, - - CAST ( 80 AS INTEGER ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9244
SELECT DISTINCT - + 65 + - + 36 + + - ( + + COALESCE ( + 91, ( + 96 ) * - 2 ) ) - + COUNT( * ) * 7 + - CAST( - 94 AS SIGNED ) + - 74 - 48 + 36 + - + 56 + + 16 * + COUNT( - 44 ) * - COUNT( * ) AS col2
----
-263

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT - + 65 + - + 36 + + - ( + + COALESCE ( + 91, ( + 96 ) * - 2 ) ) - + COUNT ( * ) * 7 + - CAST ( - 94 AS INTEGER ) + - 74 - 48 + 36 + - + 56 + + 16 * + COUNT ( - 44 ) * - COUNT ( * ) AS col2
----
-263

query I rowsort
SELECT + 49 + 82
----
131

query I rowsort
SELECT ALL - NULLIF ( - - 78, - CASE WHEN NULL IS NULL THEN - ( 48 ) ELSE 91 - 79 END ) AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9247
SELECT - + 78 col1, + 12 * 62 DIV + + 15 + - COUNT( * ) * ( - COALESCE ( 28, + - 76, - CAST( COUNT( * ) AS SIGNED ) ) )
----
-78
77

skipif mysql # not compatible
query II rowsort label-9247
SELECT - + 78 col1, + 12 * 62 / + + 15 + - COUNT ( * ) * ( - COALESCE ( 28, + - 76, - CAST ( COUNT ( * ) AS INTEGER ) ) )
----
-78
77

query I rowsort
SELECT 22 + + + 95 + + - 66 AS col1
----
51

query I rowsort
SELECT DISTINCT - + 73 + - 4 AS col2
----
-77

query II rowsort
SELECT - - 25 AS col1, + NULLIF ( - 49, + - 4 ) AS col0
----
25
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT 55 * + - 99 * + CASE WHEN + 24 IS NULL THEN - - 61 + + 33 + + 98 * 72 WHEN + ( + 8 ) / 61 * + 63 * + + 98 = NULL THEN NULL ELSE 77 - 64 END + - - 8 * 53 * - + COUNT( * )
----
-71209

skipif mysql # not compatible
query I rowsort label-9251
SELECT 55 * + - 99 * + CASE WHEN + 24 IS NULL THEN - - 61 + + 33 + + 98 * 72 WHEN + ( + 8 ) / 61 * + 63 * + + 98 = NULL THEN NULL ELSE 77 - 64 END + - - 8 * 53 * - + COUNT ( * )
----
-71209

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT ALL 96 - + ( - + 20 ) + CASE + COUNT( * ) WHEN - 34 THEN + 42 * - + 72 * ( - - 58 ) WHEN - 42 THEN NULL END * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL 96 - + ( - + 20 ) + CASE + COUNT ( * ) WHEN - 34 THEN + 42 * - + 72 * ( - - 58 ) WHEN - 42 THEN NULL END * - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT - COALESCE ( - 63, 23 ) * - + 65 * - NULLIF ( - + 10, + COUNT( * ) + - 75 * 79 ) * + + 56 + + - CASE - NULLIF ( + - COALESCE ( + ( 59 ), + 10 * SUM( DISTINCT 52 ) - 15 * + 6 * COALESCE ( + SUM( DISTINCT - 2 ), - + 40 * - 97 ) * 23 + 78 ), - 64 ) WHEN 32 THEN NULL WHEN - - 70 THEN - 86 * 87 ELSE - 46 END + + 84 + - 2 AS col2
----
-2293072

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT - COALESCE ( - 63, 23 ) * - + 65 * - NULLIF ( - + 10, + COUNT ( * ) + - 75 * 79 ) * + + 56 + + - CASE - NULLIF ( + - COALESCE ( + ( 59 ), + 10 * SUM ( DISTINCT 52 ) - 15 * + 6 * COALESCE ( + SUM ( DISTINCT - 2 ), - + 40 * - 97 ) * 23 + 78 ), - 64 ) WHEN 32 THEN NULL WHEN - - 70 THEN - 86 * 87 ELSE - 46 END + + 84 + - 2 AS col2
----
-2293072

query I rowsort
SELECT + 49 * - - 39
----
1911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT - CAST( + 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9255
SELECT - CAST ( + 5 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT 20 - + 95 * + + COALESCE ( SUM( DISTINCT + 38 ), - - 79 + - ( + ( - - 25 ) ) * + 83 ) * - - 34
----
-122720

skipif mysql # not compatible
query I rowsort label-9256
SELECT 20 - + 95 * + + COALESCE ( SUM ( DISTINCT + 38 ), - - 79 + - ( + ( - - 25 ) ) * + 83 ) * - - 34
----
-122720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT DISTINCT - 3 * - - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - 3 * - - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 73 AS col0, 94 AS col0
----
73
94

query I rowsort
SELECT 97 - - CASE - 74 WHEN - 8 THEN - 19 END
----
NULL

query I rowsort
SELECT 0 * + 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL - COUNT( * ) - + ( + 86 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - COUNT ( * ) - + ( + 86 ) AS col2
----
-87

query I rowsort
SELECT ALL + 58 * 28 * - 75
----
-121800

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL COUNT( ALL ( + 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL COUNT ( ALL ( + 82 ) )
----
1

query I rowsort
SELECT 26 * + 97 AS col0
----
2522

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT COUNT( * ) * 67 * + 68 AS col1
----
4556

skipif mysql # not compatible
query I rowsort label-9265
SELECT COUNT ( * ) * 67 * + 68 AS col1
----
4556

query I rowsort
SELECT 6 + + 67
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT - 98 * - + MAX( DISTINCT + 47 ) - + CAST( + - 84 AS SIGNED ) AS col2
----
4690

skipif mysql # not compatible
query I rowsort label-9267
SELECT - 98 * - + MAX ( DISTINCT + 47 ) - + CAST ( + - 84 AS INTEGER ) AS col2
----
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL - COUNT( DISTINCT + 48 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - COUNT ( DISTINCT + 48 ) AS col0
----
-1

query I rowsort
SELECT 16 + - + 88 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT + 49 col0, + COUNT( * ) * - - COUNT( * ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-9270
SELECT + 49 col0, + COUNT ( * ) * - - COUNT ( * ) AS col2
----
49
1

query I rowsort
SELECT 59 * + + 40 + + 58 AS col2
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT ALL - CAST( ( - 83 ) AS SIGNED ) * + + 34
----
2822

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - CAST ( ( - 83 ) AS INTEGER ) * + + 34
----
2822

query I rowsort
SELECT 50 * 12 + - 23 - - 69 - - + 17
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + SUM( + - 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9274
SELECT + SUM ( + - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9275
SELECT - COALESCE ( + COUNT( * ), + 85 * - COUNT( * ) + + MIN( + - 1 ), ( 49 ) ) DIV + - 28 + 86
----
86

skipif mysql # not compatible
query I rowsort label-9275
SELECT - COALESCE ( + COUNT ( * ), + 85 * - COUNT ( * ) + + MIN ( + - 1 ), ( 49 ) ) / + - 28 + 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL - CASE + ( 30 ) WHEN COUNT( * ) - 24 THEN NULL WHEN + 96 THEN CAST( + + 58 AS SIGNED ) * - + ( + + ( - 95 ) ) + + ( - - 92 ) WHEN + 79 + - 42 + + MIN( - 84 ) + - - 56 THEN NULL WHEN + - 3 * 9 * 74 THEN 97 ELSE ( + + 77 ) END AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - CASE + ( 30 ) WHEN COUNT ( * ) - 24 THEN NULL WHEN + 96 THEN CAST ( + + 58 AS INTEGER ) * - + ( + + ( - 95 ) ) + + ( - - 92 ) WHEN + 79 + - 42 + + MIN ( - 84 ) + - - 56 THEN NULL WHEN + - 3 * 9 * 74 THEN 97 ELSE ( + + 77 ) END AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT ALL - 12 AS col2, COUNT( * ) * + 10 AS col1
----
-12
10

skipif mysql # not compatible
query II rowsort label-9277
SELECT ALL - 12 AS col2, COUNT ( * ) * + 10 AS col1
----
-12
10

query II rowsort
SELECT ALL - 21, - 76 * + 17 AS col1
----
-21
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT + 76 * 76 + + + 83 + MIN( + 53 ) AS col1
----
5912

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + 76 * 76 + + + 83 + MIN ( + 53 ) AS col1
----
5912

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT DISTINCT 13 * ( - 40 ) + - 82 + + 7 + + 48 * + 4 AS col0, COUNT( * ) col0
----
-403
1

skipif mysql # not compatible
query II rowsort label-9280
SELECT DISTINCT 13 * ( - 40 ) + - 82 + + 7 + + 48 * + 4 AS col0, COUNT ( * ) col0
----
-403
1

query I rowsort
SELECT DISTINCT - + 96 * + 69 - + 29 AS col1
----
-6653

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT 29 + COUNT( * ) + - 91 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT 29 + COUNT ( * ) + - 91 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT MAX( + 82 ) * - COALESCE ( ( 8 ), - 28 * + 6 )
----
-656

skipif mysql # not compatible
query I rowsort label-9283
SELECT MAX ( + 82 ) * - COALESCE ( ( 8 ), - 28 * + 6 )
----
-656

query I rowsort
SELECT - 54 * 2 + 13 - 95 col1
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL + - COUNT( - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + - COUNT ( - 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT + 30 + 15 * - + MIN( DISTINCT + - 85 ) * - 91 AS col1
----
-115995

skipif mysql # not compatible
query I rowsort label-9286
SELECT + 30 + 15 * - + MIN ( DISTINCT + - 85 ) * - 91 AS col1
----
-115995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9287
SELECT ALL COUNT( * ) + 92, + CAST( NULL AS SIGNED ) + - 30 AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-9287
SELECT ALL COUNT ( * ) + 92, + CAST ( NULL AS INTEGER ) + - 30 AS col0
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT + ( + 0 ) * - SUM( + 63 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9288
SELECT + ( + 0 ) * - SUM ( + 63 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL 14 + ( SUM( ALL - 96 ) ) * + 70 AS col2
----
-6706

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL 14 + ( SUM ( ALL - 96 ) ) * + 70 AS col2
----
-6706

onlyif mysql # aggregate syntax: 
query II rowsort label-9290
SELECT ALL + 83 AS col0, + COALESCE ( - - SUM( + - 79 ), + 27 ) AS col2
----
83
-79

skipif mysql # not compatible
query II rowsort label-9290
SELECT ALL + 83 AS col0, + COALESCE ( - - SUM ( + - 79 ), + 27 ) AS col2
----
83
-79

query I rowsort
SELECT DISTINCT + 41 - - 63
----
104

query I rowsort
SELECT ALL + 77 * + + 27 AS col2
----
2079

query I rowsort
SELECT + - 72 * - + 99 + 13
----
7141

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT - + MIN( 66 ) AS col1, 92 AS col2
----
-66
92

skipif mysql # not compatible
query II rowsort label-9294
SELECT - + MIN ( 66 ) AS col1, 92 AS col2
----
-66
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL 30 - 95 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL 30 - 95 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 72 + - 79
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT - 24 + + MAX( 85 ) - MIN( + 25 ) DIV - 89 + - + 46 - COUNT( * ) * + - 40
----
55

skipif mysql # not compatible
query I rowsort label-9297
SELECT - 24 + + MAX ( 85 ) - MIN ( + 25 ) / - 89 + - + 46 - COUNT ( * ) * + - 40
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT ALL CASE + - 56 WHEN + 42 / NULLIF ( - 18, 36 ) THEN NULL WHEN - 45 THEN - + COUNT( * ) * - 68 / + 10 ELSE - 32 + CASE 99 WHEN MAX( ALL - 21 ) * - CASE + - 16 WHEN + + CAST( - - 28 AS SIGNED ) THEN NULL WHEN 6 * + MAX( 21 ) / + - 97 + - NULLIF ( + + 81, + 96 + + 21 ) * 63 THEN 65 + + NULLIF ( 93, - 82 * 90 ) WHEN 29 * - 38 THEN 6 ELSE NULL END + 86 THEN NULLIF ( - ( + 44 ), - 67 ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL CASE + - 56 WHEN + 42 / NULLIF ( - 18, 36 ) THEN NULL WHEN - 45 THEN - + COUNT ( * ) * - 68 / + 10 ELSE - 32 + CASE 99 WHEN MAX ( ALL - 21 ) * - CASE + - 16 WHEN + + CAST ( - - 28 AS INTEGER ) THEN NULL WHEN 6 * + MAX ( 21 ) / + - 97 + - NULLIF ( + + 81, + 96 + + 21 ) * 63 THEN 65 + + NULLIF ( 93, - 82 * 90 ) WHEN 29 * - 38 THEN 6 ELSE NULL END + 86 THEN NULLIF ( - ( + 44 ), - 67 ) ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT SUM( + - 14 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT SUM ( + - 14 ) col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9300
SELECT + 12 * - + CAST( + MIN( DISTINCT 54 ) AS SIGNED )
----
-648

skipif mysql # not compatible
query I rowsort label-9300
SELECT + 12 * - + CAST ( + MIN ( DISTINCT 54 ) AS INTEGER )
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - 18 + COUNT( * ) + + 50 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9301
SELECT - 18 + COUNT ( * ) + + 50 AS col0
----
33

query I rowsort
SELECT DISTINCT - 81 * - 18
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL COUNT( ALL + 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL COUNT ( ALL + 88 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT - ( + MIN( - 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-9304
SELECT - ( + MIN ( - 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT - CASE + MAX( ALL ( - 57 ) ) WHEN 97 + - 43 + + 86 * + 79 * 54 THEN - 82 * - AVG ( + 65 ) + 93 WHEN + NULLIF ( + 45, 53 ) THEN NULL END + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT - CASE + MAX ( ALL ( - 57 ) ) WHEN 97 + - 43 + + 86 * + 79 * 54 THEN - 82 * - AVG ( + 65 ) + 93 WHEN + NULLIF ( + 45, 53 ) THEN NULL END + - 28 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT + 65 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-9306
SELECT + 65 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - COUNT( + 35 ) + 0 - + 98 col1
----
-99

skipif mysql # not compatible
query I rowsort label-9307
SELECT - COUNT ( + 35 ) + 0 - + 98 col1
----
-99

query I rowsort
SELECT ( + + 45 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT ( - + 97 ) AS col1, - ( - CASE + 94 WHEN - 36 * 23 + + 58 THEN NULL ELSE + COUNT( * ) END ) * - 53 col1
----
-97
-53

skipif mysql # not compatible
query II rowsort label-9309
SELECT ( - + 97 ) AS col1, - ( - CASE + 94 WHEN - 36 * 23 + + 58 THEN NULL ELSE + COUNT ( * ) END ) * - 53 col1
----
-97
-53

query I rowsort
SELECT ALL COALESCE ( 33, 58, - 56 * 40 ) * + 55
----
1815

query I rowsort
SELECT - 11 * 72
----
-792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT - COUNT( * ) DIV 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9312
SELECT - COUNT ( * ) / 46 AS col2
----
0

query II rowsort
SELECT - 1 * - 72 AS col0, 89
----
72
89

query I rowsort
SELECT + - NULLIF ( - 69, 39 ) AS col0
----
69

query II rowsort
SELECT - + 92 - - 96 + - + 16 AS col0, + 64 AS col2
----
-12
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL - 81 * COUNT( * ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL - 81 * COUNT ( * ) col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT DISTINCT + CASE - 75 WHEN + 2 THEN - 75 WHEN 59 THEN CAST( + 32 AS SIGNED ) * + COUNT( * ) - - NULLIF ( 29, - 70 / + 68 + - 73 + - - 27 ) - - - 32 + - + CAST( - 80 AS SIGNED ) ELSE - 8 END
----
-8

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + CASE - 75 WHEN + 2 THEN - 75 WHEN 59 THEN CAST ( + 32 AS INTEGER ) * + COUNT ( * ) - - NULLIF ( 29, - 70 / + 68 + - 73 + - - 27 ) - - - 32 + - + CAST ( - 80 AS INTEGER ) ELSE - 8 END
----
-8

query I rowsort
SELECT + + ( 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + 4 * + COUNT( * ) * - 93 AS col0
----
-372

skipif mysql # not compatible
query I rowsort label-9319
SELECT + 4 * + COUNT ( * ) * - 93 AS col0
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT - 47 + - NULLIF ( - + 14, 17 + SUM( 82 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-9320
SELECT - 47 + - NULLIF ( - + 14, 17 + SUM ( 82 ) )
----
-33

query I rowsort
SELECT + + 35 + + 31
----
66

query I rowsort
SELECT - - 65 * 95 col0
----
6175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9323
SELECT ALL + 54 DIV 35 + + - 59 + + COALESCE ( - + 86, + - CAST( NULL AS SIGNED ) * + CASE ( + 99 ) WHEN COUNT( * ) THEN + COUNT( + + 35 ) END )
----
-144

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + 54 / 35 + + - 59 + + COALESCE ( - + 86, + - CAST ( NULL AS INTEGER ) * + CASE ( + 99 ) WHEN COUNT ( * ) THEN + COUNT ( + + 35 ) END )
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9324
SELECT + - 16 + 77 DIV MIN( ALL - + 98 ) * - 92 * + 82 + + 28 col0
----
12

skipif mysql # not compatible
query I rowsort label-9324
SELECT + - 16 + 77 / MIN ( ALL - + 98 ) * - 92 * + 82 + + 28 col0
----
12

query I rowsort
SELECT + 49 * - 16
----
-784

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT ALL 23 AS col2, COUNT( * ) * + 51 AS col0
----
23
51

skipif mysql # not compatible
query II rowsort label-9326
SELECT ALL 23 AS col2, COUNT ( * ) * + 51 AS col0
----
23
51

query I rowsort
SELECT - ( 3 ) AS col2
----
-3

query I rowsort
SELECT ALL 36 * - 55 col1
----
-1980

onlyif mysql # DIV for integer division: 
query II rowsort label-9329
SELECT DISTINCT 29 AS col1, - 8 DIV - ( 29 )
----
29
0

skipif mysql # not compatible
query II rowsort label-9329
SELECT DISTINCT 29 AS col1, - 8 / - ( 29 )
----
29
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT + 13 * COALESCE ( - CASE + COUNT( * ) WHEN + + MIN( ALL - + CAST( - 75 AS SIGNED ) ) THEN NULL WHEN 73 * + 67 THEN + CASE - 50 WHEN - 0 THEN 75 ELSE NULL END END, 87, - 87, - 94 ) AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-9330
SELECT + 13 * COALESCE ( - CASE + COUNT ( * ) WHEN + + MIN ( ALL - + CAST ( - 75 AS INTEGER ) ) THEN NULL WHEN 73 * + 67 THEN + CASE - 50 WHEN - 0 THEN 75 ELSE NULL END END, 87, - 87, - 94 ) AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + COUNT( * ) * + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9331
SELECT + COUNT ( * ) * + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL 83 * - - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL 83 * - - COUNT ( * ) AS col2
----
83

query I rowsort
SELECT + 89 * - 93 * + 18 AS col2
----
-148986

query II rowsort
SELECT 94, - 63 AS col0
----
94
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL COUNT( * ) + + COUNT( * ) * - 2 + ( + 84 )
----
83

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL COUNT ( * ) + + COUNT ( * ) * - 2 + ( + 84 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL NULLIF ( - COUNT( * ), - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL NULLIF ( - COUNT ( * ), - - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT + 41 + 97 + MIN( + 58 ) AS col2
----
196

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT + 41 + 97 + MIN ( + 58 ) AS col2
----
196

query II rowsort
SELECT DISTINCT 55 col2, 46
----
55
46

onlyif mysql # DIV for integer division: 
query II rowsort label-9340
SELECT ALL 33 DIV + 6 + 37 + - ( + 75 ) * + 58 AS col0, 13 + - 58 + - 45
----
-4308
-90

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL 33 / + 6 + 37 + - ( + 75 ) * + 58 AS col0, 13 + - 58 + - 45
----
-4308
-90

query I rowsort
SELECT 41 + - 99 * + 54
----
-5305

query I rowsort
SELECT ALL 69 * - 55 AS col1
----
-3795

query I rowsort
SELECT ALL + 76 - - - 35 * - + 27 * 6 - + 25
----
5721

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT - 8 * + 7 + + - NULLIF ( + 60, - 89 + - MAX( + - 5 ) ) AS col1
----
-116

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 8 * + 7 + + - NULLIF ( + 60, - 89 + - MAX ( + - 5 ) ) AS col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + ( + COUNT( + + 62 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9345
SELECT + ( + COUNT ( + + 62 ) ) AS col1
----
1

query I rowsort
SELECT ( - - 47 ) AS col0
----
47

query II rowsort
SELECT + + 59 * + 17 + - 2, + 63 AS col0
----
1001
63

query I rowsort
SELECT ALL + + 3 - + 31
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT COUNT( DISTINCT - 94 ) DIV - - 86 + - COUNT( * ) + - MIN( ALL + 34 ) * - 3
----
101

skipif mysql # not compatible
query I rowsort label-9349
SELECT COUNT ( DISTINCT - 94 ) / - - 86 + - COUNT ( * ) + - MIN ( ALL + 34 ) * - 3
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL - + MIN( ALL - 78 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - + MIN ( ALL - 78 ) col0
----
78

query I rowsort
SELECT 48 * + 45 AS col1
----
2160

query II rowsort
SELECT + ( + - 63 ) + 51, 9 AS col2
----
-12
9

query II rowsort
SELECT + 92 col0, - 47
----
92
-47

query II rowsort
SELECT + + 22, + 38 + 70 * + 73 + + 51 col2
----
22
5199

query I rowsort
SELECT 38 + + 74
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL + CAST( NULL AS SIGNED ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + CAST ( NULL AS INTEGER ) * + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9357
SELECT + + COUNT( * ) AS col1, 89 + - ( - - 96 ) * + COALESCE ( + 76, - 95, CAST( + 25 AS SIGNED ) )
----
1
-7207

skipif mysql # not compatible
query II rowsort label-9357
SELECT + + COUNT ( * ) AS col1, 89 + - ( - - 96 ) * + COALESCE ( + 76, - 95, CAST ( + 25 AS INTEGER ) )
----
1
-7207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9358
SELECT ALL + + COUNT( * ) * + MAX( + + 45 ) DIV + COUNT( * ) + + 92
----
137

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + + COUNT ( * ) * + MAX ( + + 45 ) / + COUNT ( * ) + + 92
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL ( NULLIF ( + COUNT( * ), 29 ) ) + - 48 + 30
----
-17

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL ( NULLIF ( + COUNT ( * ), 29 ) ) + - 48 + 30
----
-17

query I rowsort
SELECT ALL - 27 + 55 + + - 5 AS col2
----
23

query II rowsort
SELECT 42 - + - 44 AS col1, - 40
----
86
-40

query I rowsort
SELECT ALL + 54 + ( + 68 )
----
122

query I rowsort
SELECT ALL 53 + 54
----
107

query II rowsort
SELECT COALESCE ( - 49, + 7 ) + - - 49 AS col0, + CASE 64 WHEN + 68 / + 96 THEN NULL WHEN + - 32 THEN ( 12 ) END * 7 + - + 13 + - 8
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT 51 + COUNT( ALL - 66 ) - 51 * + 15 AS col2
----
-713

skipif mysql # not compatible
query I rowsort label-9365
SELECT 51 + COUNT ( ALL - 66 ) - 51 * + 15 AS col2
----
-713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT ALL 47 + - 42 + ( - - 61 ) * + 59 + - 34 * CAST( + 52 AS SIGNED ) AS col2
----
1836

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL 47 + - 42 + ( - - 61 ) * + 59 + - 34 * CAST ( + 52 AS INTEGER ) AS col2
----
1836

query I rowsort
SELECT 67 + + + 10
----
77

query I rowsort
SELECT DISTINCT 35 * - 28 AS col1
----
-980

query I rowsort
SELECT DISTINCT 52 - 65
----
-13

query I rowsort
SELECT DISTINCT 28 * - 35 AS col2
----
-980

query I rowsort
SELECT 57 * + 65
----
3705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT ( + 73 ) + - CAST( - 56 AS SIGNED ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-9372
SELECT ( + 73 ) + - CAST ( - 56 AS INTEGER ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT + 3 * - 60 * COUNT( * ) AS col1
----
-180

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + 3 * - 60 * COUNT ( * ) AS col1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT - COUNT( 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - COUNT ( 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT + 59 * - - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9375
SELECT + 59 * - - COUNT ( * )
----
59

query I rowsort
SELECT DISTINCT - ( + 73 ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT 83 * - + 27 - - COUNT( + NULLIF ( - ( + 9 ), - CAST( 98 AS SIGNED ) ) )
----
-2240

skipif mysql # not compatible
query I rowsort label-9377
SELECT 83 * - + 27 - - COUNT ( + NULLIF ( - ( + 9 ), - CAST ( 98 AS INTEGER ) ) )
----
-2240

query I rowsort
SELECT - 25 * + + 62 AS col0
----
-1550

query I rowsort
SELECT DISTINCT 64 * - - 56 - 61
----
3523

query I rowsort
SELECT - 66 - - 30 * - 83 AS col0
----
-2556

query I rowsort
SELECT ALL + - 96 + 88
----
-8

query I rowsort
SELECT ( - 75 ) * 88 * ( - 94 )
----
620400

query I rowsort
SELECT 9 + - - 97 AS col0
----
106

query I rowsort
SELECT 45 - + NULLIF ( + 81, + 63 / + 77 ) * - 81 * + - 32 * + 92 + - - 7 AS col2
----
-19315532

query I rowsort
SELECT DISTINCT - 22 + + + 46 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL COUNT( DISTINCT + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL COUNT ( DISTINCT + 42 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 14 * - + 20 * - 12 AS col0
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT + 50 * + - MAX( ALL + + 38 ) AS col2
----
-1900

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT + 50 * + - MAX ( ALL + + 38 ) AS col2
----
-1900

query I rowsort
SELECT DISTINCT + 41 + - - 53 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT 44 + COALESCE ( COUNT( * ), - 94 + + + COUNT( * ) + + + 58, 86 )
----
45

skipif mysql # not compatible
query I rowsort label-9390
SELECT 44 + COALESCE ( COUNT ( * ), - 94 + + + COUNT ( * ) + + + 58, 86 )
----
45

query I rowsort
SELECT DISTINCT - 78 + + 86
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9392
SELECT DISTINCT + CASE - 84 WHEN ( + - 11 ) * - - ( - + CAST( NULL AS SIGNED ) ) THEN 66 * COUNT( * ) + - 89 + + 84 / ( + + COALESCE ( COUNT( * ), + 6, 30, - 6 / 98 * 70 ) ) * + 48 - + + 62 ELSE NULL END * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT + CASE - 84 WHEN ( + - 11 ) * - - ( - + CAST ( NULL AS INTEGER ) ) THEN 66 * COUNT ( * ) + - 89 + + 84 / ( + + COALESCE ( COUNT ( * ), + 6, 30, - 6 / 98 * 70 ) ) * + 48 - + + 62 ELSE NULL END * + 20 AS col1
----
NULL

query I rowsort
SELECT ALL + 33 * + 61 col1
----
2013

query I rowsort
SELECT - 5 * - - 21 AS col2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT - 24 - - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT - 24 - - COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT ALL + 60 - - 83 + - 22 * + - 28 col2
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT - 52 * - CASE - 9 WHEN + + COUNT( * ) THEN 98 WHEN - ( 30 ) * 96 - - 52 * + + 48 + - + 12 * - 66 THEN NULL END / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT - 52 * - CASE - 9 WHEN + + COUNT ( * ) THEN 98 WHEN - ( 30 ) * 96 - - 52 * + + 48 + - + 12 * - 66 THEN NULL END / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT DISTINCT 81 DIV + + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT 81 / + + 11 AS col0
----
7

query I rowsort
SELECT - - 79 - + + 93
----
-14

query II rowsort
SELECT ALL + + ( 97 ) - + 97, + 78 AS col1
----
0
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9401
SELECT - 97 AS col0, CAST( - ( 61 ) AS SIGNED )
----
-97
-61

skipif mysql # not compatible
query II rowsort label-9401
SELECT - 97 AS col0, CAST ( - ( 61 ) AS INTEGER )
----
-97
-61

query I rowsort
SELECT + - AVG ( DISTINCT 7 ) / - + 55 / + - CASE + 4 WHEN + - ( 87 ) - 68 + 62 THEN - 53 ELSE NULL END + - COALESCE ( 85, - - 77 ) * + - 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9403
SELECT ALL 59 AS col0, + COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-9403
SELECT ALL 59 AS col0, + COUNT ( * ) AS col0
----
59
1

query I rowsort
SELECT - - 44 + - 79 + + 26
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT - COUNT( * ) / CASE - 86 WHEN + 66 + - 94 * - 45 THEN COUNT( - 30 ) ELSE NULL END AS col2, + 48 AS col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9405
SELECT - COUNT ( * ) / CASE - 86 WHEN + 66 + - 94 * - 45 THEN COUNT ( - 30 ) ELSE NULL END AS col2, + 48 AS col2
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + - COUNT( * ) * - 12 + - + 14 + + + 91
----
89

skipif mysql # not compatible
query I rowsort label-9406
SELECT + - COUNT ( * ) * - 12 + - + 14 + + + 91
----
89

query I rowsort
SELECT + 83 - + + 69 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL ( + 74 ) * - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL ( + 74 ) * - COUNT ( * ) AS col2
----
-74

query II rowsort
SELECT DISTINCT + 88 AS col2, 37 + - + 16 + - - 28
----
88
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT + 27 DIV + - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT + 27 / + - 28 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT + COUNT( * ) * ( + + 47 ) + MIN( DISTINCT - - CAST( 4 AS SIGNED ) ) + + 96
----
147

skipif mysql # not compatible
query I rowsort label-9411
SELECT + COUNT ( * ) * ( + + 47 ) + MIN ( DISTINCT - - CAST ( 4 AS INTEGER ) ) + + 96
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9412
SELECT DISTINCT COALESCE ( 81, COUNT( DISTINCT - 36 ) + - 99 DIV + 35 * CASE 0 WHEN - + 47 THEN - ( + - CASE + 93 WHEN - 23 - - COUNT( * ) THEN + 21 * + CAST( + 80 AS SIGNED ) + + 17 ELSE NULL END ) * + - 69 END - - 47 - + + COUNT( * ), 0 * 39 * + - CASE + CAST( - 94 AS SIGNED ) WHEN - - 57 DIV - 15 - + COALESCE ( + COUNT( * ), + - 68 + + 50 ) * + - ( ( - - 63 ) ) THEN + 93 * + 62 END ) * + 20 AS col2
----
1620

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT COALESCE ( 81, COUNT ( DISTINCT - 36 ) + - 99 / + 35 * CASE 0 WHEN - + 47 THEN - ( + - CASE + 93 WHEN - 23 - - COUNT ( * ) THEN + 21 * + CAST ( + 80 AS INTEGER ) + + 17 ELSE NULL END ) * + - 69 END - - 47 - + + COUNT ( * ), 0 * 39 * + - CASE + CAST ( - 94 AS INTEGER ) WHEN - - 57 / - 15 - + COALESCE ( + COUNT ( * ), + - 68 + + 50 ) * + - ( ( - - 63 ) ) THEN + 93 * + 62 END ) * + 20 AS col2
----
1620

query I rowsort
SELECT 53 * - 56 + 88 + + + 82
----
-2798

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT CASE - + 21 WHEN + COUNT( * ) THEN + 86 * 5 * - + 65 * + - 43 + - 49 * + - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT CASE - + 21 WHEN + COUNT ( * ) THEN + 86 * 5 * - + 65 * + - 43 + - 49 * + - 98 END
----
NULL

query I rowsort
SELECT + 48 * - 53 * 84
----
-213696

query I rowsort
SELECT - 54 + 30 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL + 50 * + COUNT( * ) + 56 * + 19 + - 68 AS col0
----
1046

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL + 50 * + COUNT ( * ) + 56 * + 19 + - 68 AS col0
----
1046

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT MAX( + + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9418
SELECT MAX ( + + 74 ) AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9419
SELECT + 22 AS col1, SUM( DISTINCT + - 68 ) * + COUNT( ALL + CAST( 48 AS SIGNED ) ) + - - 79 AS col2
----
22
11

skipif mysql # not compatible
query II rowsort label-9419
SELECT + 22 AS col1, SUM ( DISTINCT + - 68 ) * + COUNT ( ALL + CAST ( 48 AS INTEGER ) ) + - - 79 AS col2
----
22
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL + 84 * + 10 + COUNT( * ) AS col0
----
841

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + 84 * + 10 + COUNT ( * ) AS col0
----
841

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + COALESCE ( - - 28, - - 37 * 13 * COUNT( * ) + + ( - + COUNT( * ) ) + - - 31 + - 64 + - + 40 ) * + + 54 + - COUNT( * )
----
1511

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + COALESCE ( - - 28, - - 37 * 13 * COUNT ( * ) + + ( - + COUNT ( * ) ) + - - 31 + - 64 + - + 40 ) * + + 54 + - COUNT ( * )
----
1511

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT + MAX( ALL - 84 ) + 72 * - ( + 35 ) AS col0
----
-2604

skipif mysql # not compatible
query I rowsort label-9422
SELECT + MAX ( ALL - 84 ) + 72 * - ( + 35 ) AS col0
----
-2604

query I rowsort
SELECT + 18 * - - 60 AS col1
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT DISTINCT 82 col0, - MIN( ALL 42 ) AS col2
----
82
-42

skipif mysql # not compatible
query II rowsort label-9424
SELECT DISTINCT 82 col0, - MIN ( ALL 42 ) AS col2
----
82
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9425
SELECT COUNT( * ) AS col0, 94 col2
----
1
94

skipif mysql # not compatible
query II rowsort label-9425
SELECT COUNT ( * ) AS col0, 94 col2
----
1
94

query I rowsort
SELECT + 0 + 81 col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT - COUNT( * ) + 11 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9427
SELECT - COUNT ( * ) + 11 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT - 92 - 26 + - NULLIF ( + ( + + 10 ), COUNT( * ) )
----
-128

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT - 92 - 26 + - NULLIF ( + ( + + 10 ), COUNT ( * ) )
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9429
SELECT ALL + 74 DIV - COALESCE ( - - COUNT( * ), + + 20 * - 91 + - 28 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + 74 / - COALESCE ( - - COUNT ( * ), + + 20 * - 91 + - 28 ) col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT - CASE 20 WHEN + + COUNT( * ) + - 72 + - 70 THEN NULL WHEN CAST( - - 2 AS SIGNED ) THEN NULL ELSE - 57 END * 34 * - 37 AS col0
----
-71706

skipif mysql # not compatible
query I rowsort label-9430
SELECT - CASE 20 WHEN + + COUNT ( * ) + - 72 + - 70 THEN NULL WHEN CAST ( - - 2 AS INTEGER ) THEN NULL ELSE - 57 END * 34 * - 37 AS col0
----
-71706

query I rowsort
SELECT ALL + 65 * - - COALESCE ( - 64, + 71 - 80, + - 58 + - 67 ) * + + 4 + - 3
----
-16643

query I rowsort
SELECT ALL - 2 * + - 26
----
52

query I rowsort
SELECT - 46 + - 30 * + 67 AS col2
----
-2056

query I rowsort
SELECT DISTINCT - 93 * - 19 * - 94 AS col1
----
-166098

query I rowsort
SELECT DISTINCT NULLIF ( + 27, + 16 - 83 ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9436
SELECT - - 59 * + 20 / + + COUNT( * ) * + + 75 * 76 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT - - 59 * + 20 / + + COUNT ( * ) * + + 75 * 76 / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9437
SELECT DISTINCT - 34, 64 DIV 47 AS col0
----
-34
1

skipif mysql # not compatible
query II rowsort label-9437
SELECT DISTINCT - 34, 64 / 47 AS col0
----
-34
1

query I rowsort
SELECT DISTINCT - + 42 * - 10
----
420

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9439
SELECT ALL - CASE + - COUNT( * ) WHEN + 82 THEN NULL WHEN COUNT( + 82 ) THEN NULLIF ( + 69, 51 + + NULLIF ( - + 16, - - 44 ) + 81 ) WHEN + + 0 + - 7 - 91 + + CAST( + - 53 AS DECIMAL ) * - 65 THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - CASE + - COUNT ( * ) WHEN + 82 THEN NULL WHEN COUNT ( + 82 ) THEN NULLIF ( + 69, 51 + + NULLIF ( - + 16, - - 44 ) + 81 ) WHEN + + 0 + - 7 - 91 + + CAST ( + - 53 AS REAL ) * - 65 THEN 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - 98 * - 50 + 87 - + 34 * + 53 + + 79 * + 42 * - COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-9440
SELECT - 98 * - 50 + 87 - + 34 * + 53 + + 79 * + 42 * - COUNT ( * )
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + COUNT( - + 25 ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9441
SELECT + COUNT ( - + 25 ) + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT - + COUNT( + 45 ) + + + 60
----
59

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - + COUNT ( + 45 ) + + + 60
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL + + 4 + - + 78 * - - ( + NULLIF ( + + 12, 70 - + - 16 ) ) * - 4 * + - 11 * SUM( ALL 38 ) + + 74 + - 55
----
-1564969

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL + + 4 + - + 78 * - - ( + NULLIF ( + + 12, 70 - + - 16 ) ) * - 4 * + - 11 * SUM ( ALL 38 ) + + 74 + - 55
----
-1564969

query II rowsort
SELECT ALL + 74 AS col0, + 75
----
74
75

query I rowsort
SELECT DISTINCT + 88 * 30
----
2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9446
SELECT - - 53 * + 57 - NULLIF ( - 15, - - 60 ) DIV - - COUNT( * ) AS col0
----
3036

skipif mysql # not compatible
query I rowsort label-9446
SELECT - - 53 * + 57 - NULLIF ( - 15, - - 60 ) / - - COUNT ( * ) AS col0
----
3036

query I rowsort
SELECT + 70 * - 81 * + 31 / + 87 + CASE + 55 WHEN 6 THEN NULL WHEN + + 74 THEN - 45 WHEN 38 THEN - + 18 + - 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT 58 * COUNT( * ) * - 48 + + + 91 + + - 57 AS col2
----
-2750

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT 58 * COUNT ( * ) * - 48 + + + 91 + + - 57 AS col2
----
-2750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9449
SELECT - COUNT( * ) DIV - SUM( + 14 ) * - 19 * + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT - COUNT ( * ) / - SUM ( + 14 ) * - 19 * + 21 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT ALL 56 DIV + 9 - - + ( - 93 )
----
-87

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL 56 / + 9 - - + ( - 93 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT ALL - COUNT( DISTINCT + + 52 ) * - 2 DIV - 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - COUNT ( DISTINCT + + 52 ) * - 2 / - 67 AS col1
----
0

query I rowsort
SELECT ( ( + 59 ) ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL 24 * - COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 24 * - COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT + 61 * - - 15 + + - 6
----
909

query I rowsort
SELECT 50 * + 66
----
3300

query I rowsort
SELECT DISTINCT 5 * - + 7
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL 23 * + + ( - COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL 23 * + + ( - COUNT ( * ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9458
SELECT MAX( - - COALESCE ( - ( NULLIF ( 45, - ( + 48 ) ) ), + - 97 * + ( - - 54 ) ) ) DIV 75 col0
----
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT MAX ( - - COALESCE ( - ( NULLIF ( 45, - ( + 48 ) ) ), + - 97 * + ( - - 54 ) ) ) / 75 col0
----
0

query I rowsort
SELECT DISTINCT 69 * + 16
----
1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9460
SELECT ( NULLIF ( + COUNT( * ), - 62 - 51 ) ) DIV + 43 + 97 * 19 DIV 12 DIV 19 * - 88 * - 91 * - 26 * + 64
----
-106602496

skipif mysql # not compatible
query I rowsort label-9460
SELECT ( NULLIF ( + COUNT ( * ), - 62 - 51 ) ) / + 43 + 97 * 19 / 12 / 19 * - 88 * - 91 * - 26 * + 64
----
-106602496

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - CASE - 80 WHEN + 99 THEN + COUNT( - + 39 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT - CASE - 80 WHEN + 99 THEN + COUNT ( - + 39 ) END AS col0
----
NULL

query I rowsort
SELECT - 69 + 49
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9463
SELECT COALESCE ( ( - CAST( - MAX( - 39 ) AS SIGNED ) ), + 63, + 93 ) DIV 98 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT COALESCE ( ( - CAST ( - MAX ( - 39 ) AS INTEGER ) ), + 63, + 93 ) / 98 / 34
----
0

query I rowsort
SELECT + ( - + 7 ) * - 6
----
42

onlyif mysql # DIV for integer division: 
query III rowsort label-9465
SELECT DISTINCT + 0 + - + 51 AS col2, - 82 DIV 71 + - - 35 AS col1, + 76 AS col2
----
-51
34
76

skipif mysql # not compatible
query III rowsort label-9465
SELECT DISTINCT + 0 + - + 51 AS col2, - 82 / 71 + - - 35 AS col1, + 76 AS col2
----
-51
34
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT ALL - + 65 + + 36 DIV - + 61 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - + 65 + + 36 / - + 61 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ( - 58 ) - - MAX( 76 )
----
18

skipif mysql # not compatible
query I rowsort label-9467
SELECT ( - 58 ) - - MAX ( 76 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9468
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) * + 95 * - 99 * ( - - 72 ) * ( - ( - - 32 ) ) * + + COUNT( * ) AS col2, 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-9468
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) * + 95 * - 99 * ( - - 72 ) * ( - ( - - 32 ) ) * + + COUNT ( * ) AS col2, 85 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT ALL 2 + + + 74 * + 3, + MIN( - 55 ) * - 6 + + - COALESCE ( - - 25, + CASE + + 12 WHEN + + 26 THEN - - 69 ELSE - 16 END * - 61 - COALESCE ( 66, - + 14, - - 94 ) ) AS col0
----
224
305

skipif mysql # not compatible
query II rowsort label-9469
SELECT ALL 2 + + + 74 * + 3, + MIN ( - 55 ) * - 6 + + - COALESCE ( - - 25, + CASE + + 12 WHEN + + 26 THEN - - 69 ELSE - 16 END * - 61 - COALESCE ( 66, - + 14, - - 94 ) ) AS col0
----
224
305

query I rowsort
SELECT DISTINCT - 59 + + 56
----
-3

query I rowsort
SELECT ALL - + 24 col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT COUNT( CAST( + 8 AS SIGNED ) ) + 72 + 54 * - - 98 AS col1
----
5365

skipif mysql # not compatible
query I rowsort label-9472
SELECT COUNT ( CAST ( + 8 AS INTEGER ) ) + 72 + 54 * - - 98 AS col1
----
5365

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT - 81 DIV 6 - + - 89
----
76

skipif mysql # not compatible
query I rowsort label-9473
SELECT - 81 / 6 - + - 89
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT DISTINCT - - MAX( DISTINCT + 72 ), 47 AS col0
----
72
47

skipif mysql # not compatible
query II rowsort label-9474
SELECT DISTINCT - - MAX ( DISTINCT + 72 ), 47 AS col0
----
72
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9475
SELECT ALL + COUNT( DISTINCT + 97 ) - 84 + 99 * + 8, - COUNT( * ) * + COALESCE ( - - 54, ( + + 36 ), - 72 ) + - 85 AS col0
----
709
-139

skipif mysql # not compatible
query II rowsort label-9475
SELECT ALL + COUNT ( DISTINCT + 97 ) - 84 + 99 * + 8, - COUNT ( * ) * + COALESCE ( - - 54, ( + + 36 ), - 72 ) + - 85 AS col0
----
709
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT 45 + MIN( DISTINCT + - 71 )
----
-26

skipif mysql # not compatible
query I rowsort label-9476
SELECT 45 + MIN ( DISTINCT + - 71 )
----
-26

query I rowsort
SELECT DISTINCT 89 * + 3 AS col2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT 54 + + - 10 * + + CASE - 72 WHEN - CASE 86 WHEN - - 51 THEN - 82 + + 99 WHEN - NULLIF ( + 31, 6 * + COALESCE ( 60, 22 * - ( - + 29 ) * 92 * - 11 * + 94 + 72 * + 29 + - 0 * 48 / 28 + + - 65 - + + 31 + - 16, + NULLIF ( - + 15, - AVG ( 20 ) ) ) / + ( - MAX( DISTINCT + 44 ) ) + - SUM( + ( + 11 ) ) + + COUNT( * ) ) THEN NULL WHEN 58 * 47 THEN NULL WHEN - 10 THEN NULL END + + 69 * + 57 THEN NULL WHEN 75 THEN - 1 * + COUNT( * ) + MAX( ALL 85 ) WHEN + 79 THEN NULL WHEN + 51 + 0 THEN 85 * - 60 + NULLIF ( + 3, 26 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT 54 + + - 10 * + + CASE - 72 WHEN - CASE 86 WHEN - - 51 THEN - 82 + + 99 WHEN - NULLIF ( + 31, 6 * + COALESCE ( 60, 22 * - ( - + 29 ) * 92 * - 11 * + 94 + 72 * + 29 + - 0 * 48 / 28 + + - 65 - + + 31 + - 16, + NULLIF ( - + 15, - AVG ( 20 ) ) ) / + ( - MAX ( DISTINCT + 44 ) ) + - SUM ( + ( + 11 ) ) + + COUNT ( * ) ) THEN NULL WHEN 58 * 47 THEN NULL WHEN - 10 THEN NULL END + + 69 * + 57 THEN NULL WHEN 75 THEN - 1 * + COUNT ( * ) + MAX ( ALL 85 ) WHEN + 79 THEN NULL WHEN + 51 + 0 THEN 85 * - 60 + NULLIF ( + 3, 26 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 10 - 18 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9480
SELECT DISTINCT + 92 - - COALESCE ( + + 63, + NULLIF ( + 46, - + 37 - - + 61 * - 93 + - 34 ) + 10 + + 71 + - 48 * + + 78 + 18 DIV 7 * - 27 * 24 * + 53, COUNT( * ) ) + + 87 + + 85 DIV 65 AS col0
----
243

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + 92 - - COALESCE ( + + 63, + NULLIF ( + 46, - + 37 - - + 61 * - 93 + - 34 ) + 10 + + 71 + - 48 * + + 78 + 18 / 7 * - 27 * 24 * + 53, COUNT ( * ) ) + + 87 + + 85 / 65 AS col0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT 1 * - + 73 + - + COUNT( * ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-9481
SELECT 1 * - + 73 + - + COUNT ( * ) col2
----
-74

query I rowsort
SELECT 50 * - + 26 * + - 85
----
110500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT CASE - + 85 WHEN - 71 THEN NULL WHEN - 17 THEN NULL ELSE + + ( 75 ) END * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT CASE - + 85 WHEN - 71 THEN NULL WHEN - 17 THEN NULL ELSE + + ( 75 ) END * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT 88 * - + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT 88 * - + COUNT ( * )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT 60 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT 60 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 94 AS col2, 72
----
94
72

query I rowsort
SELECT ALL + 74 * 90
----
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT - 20 * - - COUNT( DISTINCT - + 15 )
----
-20

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - 20 * - - COUNT ( DISTINCT - + 15 )
----
-20

query II rowsort
SELECT ALL 62, 94 AS col0
----
62
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT DISTINCT 1 + + - CASE + 90 WHEN - 3 * - 44 + - 1 + - SUM( ALL + 53 ) THEN - 66 ELSE + 91 END
----
-90

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT 1 + + - CASE + 90 WHEN - 3 * - 44 + - 1 + - SUM ( ALL + 53 ) THEN - 66 ELSE + 91 END
----
-90

query I rowsort
SELECT + 50 + - 88 AS col0
----
-38

query I rowsort
SELECT ALL 19 + 60 AS col2
----
79

query I rowsort
SELECT - COALESCE ( + + 79, 93 - - 99 - - ( 75 ) ) AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT - 16 DIV - COALESCE ( - 77, + + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT - 16 / - COALESCE ( - 77, + + COUNT ( * ) )
----
0

query I rowsort
SELECT ALL 86 + 79
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT COUNT( DISTINCT + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-9496
SELECT COUNT ( DISTINCT + 65 )
----
1

query II rowsort
SELECT 37 + 61 - - 40 AS col0, + 55
----
138
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT DISTINCT 31 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT 31 / 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT ALL 36 - 52 + + COUNT( * ) AS col0, 55 - - 82 AS col1
----
-15
137

skipif mysql # not compatible
query II rowsort label-9499
SELECT ALL 36 - 52 + + COUNT ( * ) AS col0, 55 - - 82 AS col1
----
-15
137

query I rowsort
SELECT + 10 * + 24 * - 78 * - 27
----
505440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9501
SELECT DISTINCT + 96 * + - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + 96 * + - ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT COALESCE ( + 77, ( - 42 ) ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9503
SELECT ALL + 5 * + 22 AS col2, COUNT( * ) + + - CASE + + 66 WHEN - + COUNT( * ) THEN + + 62 ELSE 36 + CASE + COUNT( * ) WHEN + 15 THEN - 68 * - CAST( - - CASE - 25 WHEN - 63 * + + COUNT( * ) THEN + 84 WHEN - + CAST( 33 AS SIGNED ) * - 80 THEN NULL END AS SIGNED ) WHEN - 30 THEN NULL ELSE NULL END END + - 70 col2
----
110
NULL

skipif mysql # not compatible
query II rowsort label-9503
SELECT ALL + 5 * + 22 AS col2, COUNT ( * ) + + - CASE + + 66 WHEN - + COUNT ( * ) THEN + + 62 ELSE 36 + CASE + COUNT ( * ) WHEN + 15 THEN - 68 * - CAST ( - - CASE - 25 WHEN - 63 * + + COUNT ( * ) THEN + 84 WHEN - + CAST ( 33 AS INTEGER ) * - 80 THEN NULL END AS INTEGER ) WHEN - 30 THEN NULL ELSE NULL END END + - 70 col2
----
110
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + COUNT( * ) * - 90 col1
----
-90

skipif mysql # not compatible
query I rowsort label-9504
SELECT + COUNT ( * ) * - 90 col1
----
-90

query I rowsort
SELECT NULLIF ( + + 61, + - 42 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT + COALESCE ( - 10, + SUM( DISTINCT 84 ), 28 * + 45, 45 + + 29 )
----
-10

skipif mysql # not compatible
query I rowsort label-9506
SELECT + COALESCE ( - 10, + SUM ( DISTINCT 84 ), 28 * + 45, 45 + + 29 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - 83 + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9507
SELECT - 83 + - COUNT ( * )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL + ( + CAST( - 65 AS SIGNED ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + ( + CAST ( - 65 AS INTEGER ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - CASE AVG ( + 42 ) WHEN - - ( + COUNT( ALL + - 21 ) ) THEN NULL WHEN - 76 THEN 22 / - 4 * - 70 * + 42 WHEN - + 71 * - AVG ( - 38 ) THEN - - 74 * + 68 ELSE NULL END / 63 + + 36 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT - CASE AVG ( + 42 ) WHEN - - ( + COUNT ( ALL + - 21 ) ) THEN NULL WHEN - 76 THEN 22 / - 4 * - 70 * + 42 WHEN - + 71 * - AVG ( - 38 ) THEN - - 74 * + 68 ELSE NULL END / 63 + + 36 + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 29 - 8
----
-37

query I rowsort
SELECT DISTINCT 71 * - 27 * 89 + 42 AS col0
----
-170571

query I rowsort
SELECT ALL + 43 * - + 87
----
-3741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT - CAST( NULL AS SIGNED ) * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT - CAST ( NULL AS INTEGER ) * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL 46 * - 74 * + 73 + + COUNT( - 5 )
----
-248491

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL 46 * - 74 * + 73 + + COUNT ( - 5 )
----
-248491

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT - 61 DIV 90 * 81
----
0

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - 61 / 90 * 81
----
0

query I rowsort
SELECT - 70 + + 92 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL - COUNT( * ) * - + ( - - 16 ) * + - COUNT( * ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - COUNT ( * ) * - + ( - - 16 ) * + - COUNT ( * ) col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT - 87 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-9518
SELECT - 87 / + 50
----
-1

query I rowsort
SELECT + 52 - + - 86
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL + MAX( ( + + 11 ) ) + + 43 + CAST( + - 5 AS SIGNED ) - COALESCE ( + 3, + + 1, - + 79 )
----
46

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL + MAX ( ( + + 11 ) ) + + 43 + CAST ( + - 5 AS INTEGER ) - COALESCE ( + 3, + + 1, - + 79 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - + 94 * NULLIF ( + - 7, - + COUNT( * ) * - 48 * + ( 39 ) + 54 )
----
658

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - + 94 * NULLIF ( + - 7, - + COUNT ( * ) * - 48 * + ( 39 ) + 54 )
----
658

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9522
SELECT - + 94 DIV - - CAST( 5 AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9522
SELECT - + 94 / - - CAST ( 5 AS INTEGER ) AS col1
----
-18

query I rowsort
SELECT ALL + 14 + + + ( - 92 ) * - - 87 * + - 81 * 31
----
20098058

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL COUNT( ( 83 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL COUNT ( ( 83 ) ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT ALL - 34 + - COUNT( * ) DIV + 41
----
-34

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - 34 + - COUNT ( * ) / + 41
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT + 23 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT + 23 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT ALL + CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + CAST ( 9 AS INTEGER ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT ALL COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT + CAST( + 4 AS SIGNED ) - - + 98
----
102

skipif mysql # not compatible
query I rowsort label-9529
SELECT + CAST ( + 4 AS INTEGER ) - - + 98
----
102

query II rowsort
SELECT + - 18 + - - 37 AS col0, + 90
----
19
90

query I rowsort
SELECT ALL 47 * 60 * - 52 col1
----
-146640

query I rowsort
SELECT + + 43 + - + NULLIF ( + 82, - 62 ) AS col2
----
-39

query I rowsort
SELECT ALL + 38 * + 13 * - 66 * + 73 AS col2
----
-2380092

query II rowsort
SELECT + 84 + + + 63 * 19 AS col0, - 66
----
1281
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT + COUNT( DISTINCT + 90 ) + + + COUNT( * ) + - 61 * - - 73 AS col2
----
-4451

skipif mysql # not compatible
query I rowsort label-9535
SELECT + COUNT ( DISTINCT + 90 ) + + + COUNT ( * ) + - 61 * - - 73 AS col2
----
-4451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9536
SELECT + COUNT( * ) DIV - - 98 - + 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9536
SELECT + COUNT ( * ) / - - 98 - + 53 AS col0
----
-53

query I rowsort
SELECT + 36 * 68 AS col0
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT - 42 + CASE ( - COUNT( * ) ) WHEN - COUNT( * ) THEN - ( 91 ) + - 37 WHEN - - 8 / - COUNT( * ) * + ( 53 ) + 50 THEN - 57 + + 42 + 35 END - - 44 + + 20 * - COUNT( * )
----
-146

skipif mysql # not compatible
query I rowsort label-9538
SELECT - 42 + CASE ( - COUNT ( * ) ) WHEN - COUNT ( * ) THEN - ( 91 ) + - 37 WHEN - - 8 / - COUNT ( * ) * + ( 53 ) + 50 THEN - 57 + + 42 + 35 END - - 44 + + 20 * - COUNT ( * )
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT ALL 48 DIV 46
----
1

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL 48 / 46
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9540
SELECT ALL - 71 DIV 39 * 8 * + + 68 + MIN( 41 ) AS col1
----
-503

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - 71 / 39 * 8 * + + 68 + MIN ( 41 ) AS col1
----
-503

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9541
SELECT + 49 / - CAST( NULL AS DECIMAL ) + - 98, 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-9541
SELECT + 49 / - CAST ( NULL AS REAL ) + - 98, 88 AS col0
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL + NULLIF ( - COUNT( * ), 2 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL + NULLIF ( - COUNT ( * ), 2 ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT ALL 12 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL 12 / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT + 82 * + 57 + - MAX( DISTINCT - 52 ) AS col2
----
4726

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + 82 * + 57 + - MAX ( DISTINCT - 52 ) AS col2
----
4726

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT + 61 * - - 31 * - 52 + - COUNT( * ) AS col0
----
-98333

skipif mysql # not compatible
query I rowsort label-9545
SELECT + 61 * - - 31 * - 52 + - COUNT ( * ) AS col0
----
-98333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9546
SELECT ALL + COALESCE ( SUM( 14 ), + + 62 ) * + + CAST( - 86 AS SIGNED )
----
-1204

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + COALESCE ( SUM ( 14 ), + + 62 ) * + + CAST ( - 86 AS INTEGER )
----
-1204

query I rowsort
SELECT ( - - NULLIF ( - 74, NULLIF ( + - 56, - + 53 ) * - - 56 / - 51 ) )
----
-74

query I rowsort
SELECT + 46 * 19
----
874

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT 84 * + 30 + - COUNT( * ) col0, 41 - 50
----
2519
-9

skipif mysql # not compatible
query II rowsort label-9549
SELECT 84 * + 30 + - COUNT ( * ) col0, 41 - 50
----
2519
-9

query I rowsort
SELECT - 28 + + 1
----
-27

query I rowsort
SELECT COALESCE ( - 46, - 98 * + + COALESCE ( - 35, - 9 * + + 8 ) * + 94 - 79 - - 54 * + 61 + - - 28 * + + 62 * - + 17 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT - 16 * - - COUNT( * ) * + - COUNT( * ) * 89
----
1424

skipif mysql # not compatible
query I rowsort label-9552
SELECT - 16 * - - COUNT ( * ) * + - COUNT ( * ) * 89
----
1424

query I rowsort
SELECT ALL + NULLIF ( 80, + 93 )
----
80

query I rowsort
SELECT ALL + + 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - + CASE 5 WHEN MAX( 55 ) THEN 4 ELSE NULL END * + 84 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT - + CASE 5 WHEN MAX ( 55 ) THEN 4 ELSE NULL END * + 84 + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9556
SELECT ALL - COUNT( * ) * + CAST( + + 1 AS SIGNED ) - 15 + - ( + + NULLIF ( + 25, 11 ) ) + - COALESCE ( - MIN( ALL + + 62 ), SUM( - 68 ), - - 11 * NULLIF ( + 1, - + 52 + + + ( - CASE + - 31 WHEN CASE - NULLIF ( + + COUNT( * ), + - 22 + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 46 ) WHEN + 0 THEN + + 59 ELSE 28 + - ( - 5 ) END THEN + 38 END ) ) DIV + SUM( DISTINCT + 7 ) * 45 + - + 86 + 64 ) + - 73 * + SUM( 43 ) * + 13 * - 34 - + 96 col0
----
1387363

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - COUNT ( * ) * + CAST ( + + 1 AS INTEGER ) - 15 + - ( + + NULLIF ( + 25, 11 ) ) + - COALESCE ( - MIN ( ALL + + 62 ), SUM ( - 68 ), - - 11 * NULLIF ( + 1, - + 52 + + + ( - CASE + - 31 WHEN CASE - NULLIF ( + + COUNT ( * ), + - 22 + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 46 ) WHEN + 0 THEN + + 59 ELSE 28 + - ( - 5 ) END THEN + 38 END ) ) / + SUM ( DISTINCT + 7 ) * 45 + - + 86 + 64 ) + - 73 * + SUM ( 43 ) * + 13 * - 34 - + 96 col0
----
1387363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL - - 83 * - SUM( CAST( 68 AS SIGNED ) ) * + 11 * 22 - - - 44 + + 42 * - 46
----
-1367824

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - - 83 * - SUM ( CAST ( 68 AS INTEGER ) ) * + 11 * 22 - - - 44 + + 42 * - 46
----
-1367824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9558
SELECT ALL - + ( - MAX( ALL 29 ) ) DIV - 54 col2
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - + ( - MAX ( ALL 29 ) ) / - 54 col2
----
0

query II rowsort
SELECT - 7 + - 87 * + 78, 28 AS col1
----
-6793
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9560
SELECT ALL + - 16 * 15 - - CAST( + ( COUNT( * ) ) AS SIGNED ) DIV + + 32 + - ( + + COUNT( ALL + 74 ) ) * - 51, 51 AS col2
----
-189
51

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL + - 16 * 15 - - CAST ( + ( COUNT ( * ) ) AS INTEGER ) / + + 32 + - ( + + COUNT ( ALL + 74 ) ) * - 51, 51 AS col2
----
-189
51

query I rowsort
SELECT - 65 * 32 * + 82 AS col1
----
-170560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT - - COUNT( * ) DIV + 19 col1
----
0

skipif mysql # not compatible
query I rowsort label-9562
SELECT - - COUNT ( * ) / + 19 col1
----
0

query I rowsort
SELECT DISTINCT - - 24 * 6 + ( + 57 ) AS col0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT - 92 DIV - + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT - 92 / - + 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT ALL CAST( + 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL CAST ( + 48 AS INTEGER ) AS col2
----
48

query I rowsort
SELECT ALL - - 11 * 2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT - + CAST( + 38 AS SIGNED ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9567
SELECT - + CAST ( + 38 AS INTEGER ) AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9568
SELECT 23 * 30 + 22 * ( + - CASE - MIN( - + 6 ) WHEN + MIN( DISTINCT + + 53 ) THEN NULL WHEN - 38 + - COUNT( * ) * + COUNT( * ) THEN NULL ELSE + - 10 END ) + CASE - + 52 WHEN + 30 / - + CAST( - ( + 61 ) AS SIGNED ) THEN + 17 WHEN - + 19 + + 64 THEN + 37 + ( 31 ) END AS col2, - 67
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-9568
SELECT 23 * 30 + 22 * ( + - CASE - MIN ( - + 6 ) WHEN + MIN ( DISTINCT + + 53 ) THEN NULL WHEN - 38 + - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE + - 10 END ) + CASE - + 52 WHEN + 30 / - + CAST ( - ( + 61 ) AS INTEGER ) THEN + 17 WHEN - + 19 + + 64 THEN + 37 + ( 31 ) END AS col2, - 67
----
NULL
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT DISTINCT 37 col1, ( 10 ) * - 18 + COUNT( * )
----
37
-179

skipif mysql # not compatible
query II rowsort label-9569
SELECT DISTINCT 37 col1, ( 10 ) * - 18 + COUNT ( * )
----
37
-179

query I rowsort
SELECT 80 + - 58
----
22

query II rowsort
SELECT 46 AS col2, + 47 + - 46 + - - 63
----
46
64

query I rowsort
SELECT 63 * 84 col1
----
5292

query I rowsort
SELECT ALL + 15 + - 68
----
-53

query I rowsort
SELECT DISTINCT 71 * + 30 AS col0
----
2130

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT 89 * + + COUNT( * ) * + 22
----
1958

skipif mysql # not compatible
query I rowsort label-9575
SELECT 89 * + + COUNT ( * ) * + 22
----
1958

query I rowsort
SELECT ALL 94 + + 46
----
140

query I rowsort
SELECT ALL 6 * + 35 AS col1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + COUNT( * ) * - 98 - - + 93 * 65 AS col2
----
5947

skipif mysql # not compatible
query I rowsort label-9578
SELECT + COUNT ( * ) * - 98 - - + 93 * 65 AS col2
----
5947

query II rowsort
SELECT 54 col1, 61
----
54
61

query II rowsort
SELECT ALL - 49 AS col2, + 66
----
-49
66

query II rowsort
SELECT 70, 14 AS col2
----
70
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT DISTINCT 63 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT 63 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 14, - 50 ) * + ( - 99 )
----
1386

query II rowsort
SELECT DISTINCT - 78 AS col1, ( + 25 ) AS col1
----
-78
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9585
SELECT 89 * + - 10 - - COUNT( * ) + + 44 + + 71 DIV 3 * + 12 AS col2
----
-569

skipif mysql # not compatible
query I rowsort label-9585
SELECT 89 * + - 10 - - COUNT ( * ) + + 44 + + 71 / 3 * + 12 AS col2
----
-569

query I rowsort
SELECT DISTINCT - 92 - + + 18
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9587
SELECT + 29 AS col1, + CASE 98 WHEN 34 THEN + 18 * + 19 * - 17 + - 76 * - - CAST( + 68 AS SIGNED ) + - ( - - 95 ) + - 31 + + 53 END + + 25 AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-9587
SELECT + 29 AS col1, + CASE 98 WHEN 34 THEN + 18 * + 19 * - 17 + - 76 * - - CAST ( + 68 AS INTEGER ) + - ( - - 95 ) + - 31 + + 53 END + + 25 AS col2
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL - - MAX( - + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL - - MAX ( - + 17 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9589
SELECT MAX( ALL - 29 ) col2, - CASE - - 91 WHEN + 46 + - CAST( NULL AS SIGNED ) * - 85 THEN COUNT( * ) DIV - 81 * - 95 * + 98 * + + 58 + + - COUNT( 53 ) + + 62 WHEN - 55 + - 22 + - 60 * COUNT( * ) * ( + - 68 ) * + 78 + - COUNT( * ) + 15 * + + 47 + - - 9 * - - 22 DIV + + 93 THEN + - SUM( - 9 ) ELSE + 0 END AS col0
----
-29
0

skipif mysql # not compatible
query II rowsort label-9589
SELECT MAX ( ALL - 29 ) col2, - CASE - - 91 WHEN + 46 + - CAST ( NULL AS INTEGER ) * - 85 THEN COUNT ( * ) / - 81 * - 95 * + 98 * + + 58 + + - COUNT ( 53 ) + + 62 WHEN - 55 + - 22 + - 60 * COUNT ( * ) * ( + - 68 ) * + 78 + - COUNT ( * ) + 15 * + + 47 + - - 9 * - - 22 / + + 93 THEN + - SUM ( - 9 ) ELSE + 0 END AS col0
----
-29
0

query I rowsort
SELECT DISTINCT - 31 * 58
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT + - MIN( ALL + - ( 41 ) )
----
41

skipif mysql # not compatible
query I rowsort label-9591
SELECT + - MIN ( ALL + - ( 41 ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9592
SELECT + ( 52 ), + CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-9592
SELECT + ( 52 ), + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col1
----
52
1

query I rowsort
SELECT + 62 * + 30 + + 85
----
1945

query II rowsort
SELECT - 47 col0, + 40 AS col2
----
-47
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9595
SELECT 11 AS col0, COALESCE ( + 57, CAST( 52 AS SIGNED ), - 58 ) AS col2
----
11
57

skipif mysql # not compatible
query II rowsort label-9595
SELECT 11 AS col0, COALESCE ( + 57, CAST ( 52 AS INTEGER ), - 58 ) AS col2
----
11
57

query II rowsort
SELECT ALL + 74 AS col2, ( - 85 ) - ( + 4 ) - + - 80
----
74
-9

query I rowsort
SELECT ALL - - 38 * - - 45 AS col0
----
1710

query II rowsort
SELECT - + 7, 51 + 24 AS col2
----
-7
75

query I rowsort
SELECT - 51 + - - 52 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT COUNT( * ) + 85 * + + 92 + + + 43
----
7864

skipif mysql # not compatible
query I rowsort label-9600
SELECT COUNT ( * ) + 85 * + + 92 + + + 43
----
7864

query II rowsort
SELECT - 32, 80 AS col1
----
-32
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT 60 + + + MAX( + 93 ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-9602
SELECT 60 + + + MAX ( + 93 ) AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT 70 + + MIN( ALL + 11 )
----
81

skipif mysql # not compatible
query I rowsort label-9603
SELECT 70 + + MIN ( ALL + 11 )
----
81

query I rowsort
SELECT DISTINCT - 74 * - 85 AS col2
----
6290

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9605
SELECT ALL CASE + 41 WHEN + 61 THEN - + 36 + 55 WHEN CAST( NULL AS DECIMAL ) THEN 16 END + - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL CASE + 41 WHEN + 61 THEN - + 36 + 55 WHEN CAST ( NULL AS REAL ) THEN 16 END + - 59 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9606
SELECT 98 + - 20 * + + ( - ( - - CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT 98 + - 20 * + + ( - ( - - CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

query II rowsort
SELECT ALL - 57 + - 81, - 78 * 53 AS col2
----
-138
-4134

query I rowsort
SELECT 5 - + 3 * - 62 AS col0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT COALESCE ( + + 28, - - COUNT( * ), - + 32, 10 ) + + COALESCE ( - 39, + 21 - - 8 * - + ( 82 ) ) - - 5 + 61 + - CASE WHEN NOT 20 IS NULL THEN NULL ELSE + 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT COALESCE ( + + 28, - - COUNT ( * ), - + 32, 10 ) + + COALESCE ( - 39, + 21 - - 8 * - + ( 82 ) ) - - 5 + 61 + - CASE WHEN NOT 20 IS NULL THEN NULL ELSE + 2 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9610
SELECT COUNT( * ) + + + COALESCE ( 71, - CAST( NULL AS SIGNED ) + - ( - 25 ), - 27 + + 40 - + - 93 + 8 DIV - + CAST( NULL AS SIGNED ) ) col2
----
72

skipif mysql # not compatible
query I rowsort label-9610
SELECT COUNT ( * ) + + + COALESCE ( 71, - CAST ( NULL AS INTEGER ) + - ( - 25 ), - 27 + + 40 - + - 93 + 8 / - + CAST ( NULL AS INTEGER ) ) col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT 94 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT 94 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT COUNT( * ) + 13 * + 53 + + + 57
----
747

skipif mysql # not compatible
query I rowsort label-9612
SELECT COUNT ( * ) + 13 * + 53 + + + 57
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL + 12 * + + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + 12 * + + COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9614
SELECT 46 * - + 31 + COUNT( * ) + + NULLIF ( + 89, NULLIF ( + 42, - 42 * 29 ) + + 37 ) DIV 11 + - + COUNT( * ) * - 11 + 10 AS col1
----
-1396

skipif mysql # not compatible
query I rowsort label-9614
SELECT 46 * - + 31 + COUNT ( * ) + + NULLIF ( + 89, NULLIF ( + 42, - 42 * 29 ) + + 37 ) / 11 + - + COUNT ( * ) * - 11 + 10 AS col1
----
-1396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT 45 - 77 + + 58 - + - MAX( DISTINCT - 15 ) * COALESCE ( - 62, - 25 DIV - + MIN( 81 ), - COUNT( * ) )
----
956

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT 45 - 77 + + 58 - + - MAX ( DISTINCT - 15 ) * COALESCE ( - 62, - 25 / - + MIN ( 81 ), - COUNT ( * ) )
----
956

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9616
SELECT + - CAST( + 26 AS SIGNED ) AS col2, ( - ( - 78 ) )
----
-26
78

skipif mysql # not compatible
query II rowsort label-9616
SELECT + - CAST ( + 26 AS INTEGER ) AS col2, ( - ( - 78 ) )
----
-26
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9617
SELECT CASE 76 WHEN - 59 * 1 THEN - 93 END, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9617
SELECT CASE 76 WHEN - 59 * 1 THEN - 93 END, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT + 3 * + 4 DIV COUNT( * ) + + 60 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9618
SELECT + 3 * + 4 / COUNT ( * ) + + 60 AS col2
----
72

query I rowsort
SELECT DISTINCT + 20 * - - NULLIF ( + COALESCE ( - 95, 6 ), - 3 * - 16 * + 7 * - 44 ) * 74 * + - 65
----
9139000

query I rowsort
SELECT ALL + + 24 * + 82 + 76 AS col1
----
2044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT + 83 + COUNT( 95 ) + + - 62 + SUM( + 39 ) * - CASE 77 WHEN - COALESCE ( + CAST( - 11 AS SIGNED ), + 94 + MIN( 78 ), 87 ) * + 19 * - 54 * - + 83 / + 15 + + 50 + + 88 + - AVG ( - ( + CAST( - - 9 AS SIGNED ) ) ) / ( - + 58 ) + COUNT( * ) THEN - 73 - 80 + + - 32 WHEN - - 85 * + + MIN( + + 21 ) THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT + 83 + COUNT ( 95 ) + + - 62 + SUM ( + 39 ) * - CASE 77 WHEN - COALESCE ( + CAST ( - 11 AS INTEGER ), + 94 + MIN ( 78 ), 87 ) * + 19 * - 54 * - + 83 / + 15 + + 50 + + 88 + - AVG ( - ( + CAST ( - - 9 AS INTEGER ) ) ) / ( - + 58 ) + COUNT ( * ) THEN - 73 - 80 + + - 32 WHEN - - 85 * + + MIN ( + + 21 ) THEN NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9622
SELECT ALL - AVG ( ALL + 36 ) + - - 43 + - ( 28 ) + 3 + + CAST( NULL AS DECIMAL ) * + - 11 * - 78 / + - 78 + - 73 * 35 * + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - AVG ( ALL + 36 ) + - - 43 + - ( 28 ) + 3 + + CAST ( NULL AS REAL ) * + - 11 * - 78 / + - 78 + - 73 * 35 * + 20 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT - + ( COALESCE ( - 27, + MAX( ALL ( 25 ) ) * - 56, ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) + COUNT( * ) ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9623
SELECT - + ( COALESCE ( - 27, + MAX ( ALL ( 25 ) ) * - 56, ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + + 64 + 2 + - 99 - + COUNT( * ) + - 11 * + 25 + - - 55 AS col2
----
-254

skipif mysql # not compatible
query I rowsort label-9624
SELECT + + 64 + 2 + - 99 - + COUNT ( * ) + - 11 * + 25 + - - 55 AS col2
----
-254

query I rowsort
SELECT - - 90 + + 50 AS col1
----
140

query II rowsort
SELECT ALL + 26 * - 14, 2 AS col1
----
-364
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT + + COUNT( * ) * - 43, 17 col1
----
-43
17

skipif mysql # not compatible
query II rowsort label-9627
SELECT + + COUNT ( * ) * - 43, 17 col1
----
-43
17

query I rowsort
SELECT - NULLIF ( 5, + 30 ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL 95 * - CAST( + + 89 AS SIGNED ) * - + 7 * + NULLIF ( + 86, - 41 ) AS col2
----
5089910

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL 95 * - CAST ( + + 89 AS INTEGER ) * - + 7 * + NULLIF ( + 86, - 41 ) AS col2
----
5089910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9630
SELECT - COALESCE ( - 91, - CASE WHEN NOT - 68 > - COUNT( * ) THEN + ( + 53 ) + - SUM( DISTINCT - 99 ) WHEN + 22 IN ( - ( CAST( 8 AS SIGNED ) ), CASE + AVG ( ALL - + 48 ) WHEN ( - 68 ) * 12 + 29 + ( - CAST( NULL AS DECIMAL ) ) - - - 24 THEN 98 ELSE NULL END / - + ( + 95 ) ) THEN NULL END ) * - - 76 + + + 65 - + 58 AS col0
----
6923

skipif mysql # not compatible
query I rowsort label-9630
SELECT - COALESCE ( - 91, - CASE WHEN NOT - 68 > - COUNT ( * ) THEN + ( + 53 ) + - SUM ( DISTINCT - 99 ) WHEN + 22 IN ( - ( CAST ( 8 AS INTEGER ) ), CASE + AVG ( ALL - + 48 ) WHEN ( - 68 ) * 12 + 29 + ( - CAST ( NULL AS REAL ) ) - - - 24 THEN 98 ELSE NULL END / - + ( + 95 ) ) THEN NULL END ) * - - 76 + + + 65 - + 58 AS col0
----
6923

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT ALL + 15 DIV - + 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + 15 / - + 99 col1
----
0

query I rowsort
SELECT ALL 89 + + + 42 * 31 + + 37 * + ( 34 ) + + 20 * 54 AS col2
----
3729

query II rowsort
SELECT 79, + 31 * - 49 AS col2
----
79
-1519

onlyif mysql # aggregate syntax: 
query II rowsort label-9634
SELECT - 25 AS col2, CASE + COALESCE ( - 68, + 93 + + COUNT( * ) + + - 9 ) WHEN - ( + 87 ) THEN NULL WHEN - 0 THEN 55 / 89 ELSE - + 22 + - 57 END
----
-25
-79

skipif mysql # not compatible
query II rowsort label-9634
SELECT - 25 AS col2, CASE + COALESCE ( - 68, + 93 + + COUNT ( * ) + + - 9 ) WHEN - ( + 87 ) THEN NULL WHEN - 0 THEN 55 / 89 ELSE - + 22 + - 57 END
----
-25
-79

query I rowsort
SELECT - 77 * + 29
----
-2233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9636
SELECT ALL + COUNT( * ) DIV + + NULLIF ( + - 93, + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + COUNT ( * ) / + + NULLIF ( + - 93, + 16 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT - ( - + MIN( + 0 ) ) AS col0, - NULLIF ( - MAX( - - ( 80 ) ), + - 56 )
----
0
80

skipif mysql # not compatible
query II rowsort label-9637
SELECT - ( - + MIN ( + 0 ) ) AS col0, - NULLIF ( - MAX ( - - ( 80 ) ), + - 56 )
----
0
80

query II rowsort
SELECT - 33, 1 AS col1
----
-33
1

query I rowsort
SELECT DISTINCT + 98 * - 93 * + 99
----
-902286

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT COALESCE ( 85, - COALESCE ( + + 92, + + 86 + + 49 ), + NULLIF ( + + MIN( ALL + 31 ), 92 ) )
----
85

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT COALESCE ( 85, - COALESCE ( + + 92, + + 86 + + 49 ), + NULLIF ( + + MIN ( ALL + 31 ), 92 ) )
----
85

query I rowsort
SELECT DISTINCT 88 - + 94 + 87 * + - 25
----
-2181

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - 17 * - + COALESCE ( 4, + + 80, + ( SUM( DISTINCT - 39 ) ) ) col2
----
68

skipif mysql # not compatible
query I rowsort label-9642
SELECT - 17 * - + COALESCE ( 4, + + 80, + ( SUM ( DISTINCT - 39 ) ) ) col2
----
68

query I rowsort
SELECT - 11 * - 81
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL + SUM( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL + SUM ( - 29 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9645
SELECT - 87 * + CAST( - - 42 AS SIGNED ) * 90 AS col2
----
-328860

skipif mysql # not compatible
query I rowsort label-9645
SELECT - 87 * + CAST ( - - 42 AS INTEGER ) * 90 AS col2
----
-328860

query I rowsort
SELECT 26 * + 47 + - 69 AS col2
----
1153

query I rowsort
SELECT ( - - ( + - 94 ) ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT - - COUNT( * ) / 62 + - + CASE - 8 WHEN - 6 THEN NULL WHEN - 62 THEN - 45 * + + CASE + + 27 WHEN + 27 * ( + CASE - + 46 WHEN - ( 97 ) / - COUNT( + - 98 ) / + 96 - + 12 + - 79 THEN + CASE AVG ( 41 ) WHEN + 94 * + + 59 * - - 11 * + 75 + - 47 THEN + - COALESCE ( + 37, + 36 + - - 70 + + COUNT( * ) + - COUNT( * ) * + + AVG ( + 10 ), 60 ) ELSE NULL END * ( - CASE + - 91 WHEN MIN( DISTINCT 88 ) THEN NULL WHEN + 62 THEN ( + CASE 97 WHEN 96 THEN NULLIF ( 7, + 31 ) WHEN - 59 - - 47 THEN - CAST( 7 AS SIGNED ) * CASE - 3 WHEN - AVG ( ( + 16 ) ) THEN NULL WHEN ( 81 ) THEN 57 * + ( - ( + CAST( AVG ( 94 ) AS SIGNED ) ) * 66 ) ELSE 46 END ELSE NULL END ) ELSE - 28 / - 48 END ) WHEN 70 + + 52 THEN NULL END ) * - 48 THEN 43 END ELSE NULL END - COALESCE ( - 8, 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT - - COUNT ( * ) / 62 + - + CASE - 8 WHEN - 6 THEN NULL WHEN - 62 THEN - 45 * + + CASE + + 27 WHEN + 27 * ( + CASE - + 46 WHEN - ( 97 ) / - COUNT ( + - 98 ) / + 96 - + 12 + - 79 THEN + CASE AVG ( 41 ) WHEN + 94 * + + 59 * - - 11 * + 75 + - 47 THEN + - COALESCE ( + 37, + 36 + - - 70 + + COUNT ( * ) + - COUNT ( * ) * + + AVG ( + 10 ), 60 ) ELSE NULL END * ( - CASE + - 91 WHEN MIN ( DISTINCT 88 ) THEN NULL WHEN + 62 THEN ( + CASE 97 WHEN 96 THEN NULLIF ( 7, + 31 ) WHEN - 59 - - 47 THEN - CAST ( 7 AS INTEGER ) * CASE - 3 WHEN - AVG ( ( + 16 ) ) THEN NULL WHEN ( 81 ) THEN 57 * + ( - ( + CAST ( AVG ( 94 ) AS INTEGER ) ) * 66 ) ELSE 46 END ELSE NULL END ) ELSE - 28 / - 48 END ) WHEN 70 + + 52 THEN NULL END ) * - 48 THEN 43 END ELSE NULL END - COALESCE ( - 8, 76 )
----
NULL

query I rowsort
SELECT - 17 * 6 + - 99 + ( - + 85 )
----
-286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT + ( + 40 ) + CAST( - CAST( - + 64 AS SIGNED ) AS SIGNED ) - + + NULLIF ( + 72, + 79 ) * + 1 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9650
SELECT + ( + 40 ) + CAST ( - CAST ( - + 64 AS INTEGER ) AS INTEGER ) - + + NULLIF ( + 72, + 79 ) * + 1 AS col0
----
32

query II rowsort
SELECT DISTINCT + 3 AS col0, - 20 col1
----
3
-20

query I rowsort
SELECT + CASE - + 64 WHEN + 97 THEN 14 WHEN + 30 * + 0 * ( + 79 ) * + 4 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9653
SELECT - 45 - - 83 - - COUNT( ALL - 39 ) DIV - + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 45 - - 83 - - COUNT ( ALL - 39 ) / - + COUNT ( * ) AS col2
----
37

query I rowsort
SELECT ALL + - ( ( - - 11 ) )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9655
SELECT - - 60 * + + COUNT( * ) DIV - MAX( - 85 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT - - 60 * + + COUNT ( * ) / - MAX ( - 85 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9656
SELECT COUNT( * ) * COUNT( * ) + COALESCE ( + - COUNT( 96 ), - 34 + - ( - - AVG ( ALL 49 ) ) ) + - 35 * COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( * ) * COUNT ( * ) + COALESCE ( + - COUNT ( 96 ), - 34 + - ( - - AVG ( ALL 49 ) ) ) + - 35 * COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT ALL - COALESCE ( + - COUNT( + ( - 16 ) ), + + 19 ) * 35 + - + 39 - - 32 * 58 DIV ( - 39 ) * - - 95
----
-4469

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - COALESCE ( + - COUNT ( + ( - 16 ) ), + + 19 ) * 35 + - + 39 - - 32 * 58 / ( - 39 ) * - - 95
----
-4469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + + 44 AS col1, 3
----
44
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9660
SELECT - 20 * + - ( + - COUNT( * ) ) AS col0, - 83
----
-20
-83

skipif mysql # not compatible
query II rowsort label-9660
SELECT - 20 * + - ( + - COUNT ( * ) ) AS col0, - 83
----
-20
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT + COUNT( DISTINCT - + 1 ) * + - 2 * + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9661
SELECT + COUNT ( DISTINCT - + 1 ) * + - 2 * + COUNT ( * ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT + - 60 - + COALESCE ( - 73, 35 DIV - 24 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9662
SELECT + - 60 - + COALESCE ( - 73, 35 / - 24 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT + + COUNT( - 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + + COUNT ( - 59 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT DISTINCT - CASE - - 51 WHEN 46 THEN NULL WHEN - + 69 THEN NULL WHEN 71 * - - 78 * CAST( + 80 AS SIGNED ) THEN + MIN( ALL - + 66 ) * - + 51 + + 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - CASE - - 51 WHEN 46 THEN NULL WHEN - + 69 THEN NULL WHEN 71 * - - 78 * CAST ( + 80 AS INTEGER ) THEN + MIN ( ALL - + 66 ) * - + 51 + + 72 ELSE NULL END
----
NULL

query II rowsort
SELECT - 17, 2 AS col1
----
-17
2

query I rowsort
SELECT + 74 * 95 * 92 * - + 33
----
-21343080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT + + COUNT( + 9 ) DIV - NULLIF ( + SUM( ALL - - 72 ), 13 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9667
SELECT + + COUNT ( + 9 ) / - NULLIF ( + SUM ( ALL - - 72 ), 13 ) AS col1
----
0

query I rowsort
SELECT DISTINCT 36 * - + 95
----
-3420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9669
SELECT - MAX( ALL + 37 ) + + 27 * COUNT( * ) DIV + COALESCE ( + 26, - AVG ( ALL + - 51 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9669
SELECT - MAX ( ALL + 37 ) + + 27 * COUNT ( * ) / + COALESCE ( + 26, - AVG ( ALL + - 51 ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT SUM( ALL + + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9670
SELECT SUM ( ALL + + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT + 77 - + 7, COUNT( * ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-9671
SELECT + 77 - + 7, COUNT ( * ) AS col1
----
70
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT ALL COUNT( * ) * - 76, 88 + 82 AS col0
----
-76
170

skipif mysql # not compatible
query II rowsort label-9672
SELECT ALL COUNT ( * ) * - 76, 88 + 82 AS col0
----
-76
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT + ( - + 56 ) + - COUNT( * ) * 7
----
-63

skipif mysql # not compatible
query I rowsort label-9673
SELECT + ( - + 56 ) + - COUNT ( * ) * 7
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT + ( - + 11 ) * - 99 * 39 AS col0, - COUNT( * )
----
42471
-1

skipif mysql # not compatible
query II rowsort label-9674
SELECT + ( - + 11 ) * - 99 * 39 AS col0, - COUNT ( * )
----
42471
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9675
SELECT + 24 + - 67 + + - ( - COUNT( * ) ) AS col1, + 39
----
-42
39

skipif mysql # not compatible
query II rowsort label-9675
SELECT + 24 + - 67 + + - ( - COUNT ( * ) ) AS col1, + 39
----
-42
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT + CAST( NULL AS SIGNED ) * - ( - 82 ) * - CASE + 92 WHEN - + COUNT( * ) * + + 71 + - 79 THEN COUNT( * ) + + + MAX( ALL - + 66 ) * + 49 WHEN 82 + 40 / - COALESCE ( - + 93, + + COUNT( * ) * - ( 80 ) + - AVG ( + 59 ) / 95 ) THEN + + 55 ELSE NULL END / - + 27 + 4 + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT + CAST ( NULL AS INTEGER ) * - ( - 82 ) * - CASE + 92 WHEN - + COUNT ( * ) * + + 71 + - 79 THEN COUNT ( * ) + + + MAX ( ALL - + 66 ) * + 49 WHEN 82 + 40 / - COALESCE ( - + 93, + + COUNT ( * ) * - ( 80 ) + - AVG ( + 59 ) / 95 ) THEN + + 55 ELSE NULL END / - + 27 + 4 + 20 AS col1
----
NULL

query I rowsort
SELECT + 17 + + COALESCE ( - - 81, 57 ) - + 35 AS col1
----
63

query I rowsort
SELECT + 93 + - 60 * - 36 * + ( - 24 ) * 72 AS col0
----
-3732387

query I rowsort
SELECT - 70 + + + ( 1 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL MIN( DISTINCT + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL MIN ( DISTINCT + 20 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT - ( + + COUNT( * ) ) AS col0, COUNT( DISTINCT + 39 ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9681
SELECT - ( + + COUNT ( * ) ) AS col0, COUNT ( DISTINCT + 39 ) AS col2
----
-1
1

query II rowsort
SELECT - 87 * 49 col0, 62
----
-4263
62

query I rowsort
SELECT - 63 + + + 82 AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT - 67 * + CAST( NULL AS SIGNED ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT - 67 * + CAST ( NULL AS INTEGER ) * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT - 39 + SUM( ALL 5 )
----
-34

skipif mysql # not compatible
query I rowsort label-9685
SELECT - 39 + SUM ( ALL 5 )
----
-34

query I rowsort
SELECT DISTINCT - + 7 * - 23 col2
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9687
SELECT ALL - ( 20 ), CAST( - 33 AS SIGNED ) + 16 * - SUM( DISTINCT ( - 17 ) ) AS col2
----
-20
239

skipif mysql # not compatible
query II rowsort label-9687
SELECT ALL - ( 20 ), CAST ( - 33 AS INTEGER ) + 16 * - SUM ( DISTINCT ( - 17 ) ) AS col2
----
-20
239

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT + 38 DIV - - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9688
SELECT + 38 / - - 45 AS col0
----
0

query I rowsort
SELECT 67 * - - 99
----
6633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL - 50 + 14 - + 71 * - - CAST( NULL AS SIGNED ) + + - ( ( 82 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - 50 + 14 - + 71 * - - CAST ( NULL AS INTEGER ) + + - ( ( 82 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT 46 + - MAX( ALL 52 ) - + COUNT( * ) + - 14
----
-21

skipif mysql # not compatible
query I rowsort label-9691
SELECT 46 + - MAX ( ALL 52 ) - + COUNT ( * ) + - 14
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT 5 + - 54 DIV 72
----
5

skipif mysql # not compatible
query I rowsort label-9692
SELECT 5 + - 54 / 72
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT ALL + CAST( NULL AS SIGNED ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL + CAST ( NULL AS INTEGER ) + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9694
SELECT + NULLIF ( + COUNT( * ), - + 13 * 22 ), + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-9694
SELECT + NULLIF ( + COUNT ( * ), - + 13 * 22 ), + COUNT ( * ) AS col2
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9695
SELECT + CASE + NULLIF ( + ( + ( + - 63 ) ), + 76 ) WHEN - + 42 THEN NULL WHEN - - 69 + - 97 / 87 * - 78 * - - 71 - - + 81 + + 33 * + ( - 10 ) * 45 / + CASE + 15 WHEN + + 59 * + - SUM( - 67 ) THEN 5 + - - COUNT( * ) ELSE 9 END + + NULLIF ( + 27, COUNT( * ) + + 25 * + 57 ) + - 37 THEN CAST( NULL AS DECIMAL ) END + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT + CASE + NULLIF ( + ( + ( + - 63 ) ), + 76 ) WHEN - + 42 THEN NULL WHEN - - 69 + - 97 / 87 * - 78 * - - 71 - - + 81 + + 33 * + ( - 10 ) * 45 / + CASE + 15 WHEN + + 59 * + - SUM ( - 67 ) THEN 5 + - - COUNT ( * ) ELSE 9 END + + NULLIF ( + 27, COUNT ( * ) + + 25 * + 57 ) + - 37 THEN CAST ( NULL AS REAL ) END + 88 AS col0
----
NULL

query I rowsort
SELECT + 56 * + 94 + - - 42 AS col0
----
5306

query I rowsort
SELECT ALL + 7 + - 8
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9698
SELECT - NULLIF ( + - 53, + 64 / + 41 + - SUM( DISTINCT 41 ) * - 53 * + CAST( NULL AS DECIMAL ) * - 30 ) * 24 AS col2
----
1272

skipif mysql # not compatible
query I rowsort label-9698
SELECT - NULLIF ( + - 53, + 64 / + 41 + - SUM ( DISTINCT 41 ) * - 53 * + CAST ( NULL AS REAL ) * - 30 ) * 24 AS col2
----
1272

query I rowsort
SELECT DISTINCT - 15 * 49
----
-735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) / + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) / + 71
----
NULL

query I rowsort
SELECT 14 + + 81 col0
----
95

query II rowsort
SELECT ALL 76 AS col1, - 6
----
76
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT MIN( DISTINCT - - 62 ) * 90 * - - 22 + 59
----
122819

skipif mysql # not compatible
query I rowsort label-9703
SELECT MIN ( DISTINCT - - 62 ) * 90 * - - 22 + 59
----
122819

query I rowsort
SELECT 98 * - 35
----
-3430

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT DISTINCT - 80 DIV - 83 * + - 45
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - 80 / - 83 * + - 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT COUNT( * ) * + - 39 col2
----
-39

skipif mysql # not compatible
query I rowsort label-9706
SELECT COUNT ( * ) * + - 39 col2
----
-39

query I rowsort
SELECT 94 - - ( - 88 ) AS col1
----
6

query I rowsort
SELECT DISTINCT 87 * + - 78
----
-6786

query II rowsort
SELECT 98 AS col1, - 17 + - 12 AS col0
----
98
-29

query I rowsort
SELECT ALL 33 * + + 19
----
627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT DISTINCT CAST( - 77 AS SIGNED ) + + - 87 * - 13 AS col1
----
1054

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT CAST ( - 77 AS INTEGER ) + + - 87 * - 13 AS col1
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - MAX( DISTINCT - + 64 ) + + - MIN( ALL + - 89 ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - MAX ( DISTINCT - + 64 ) + + - MIN ( ALL + - 89 ) AS col1
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT ALL 96 + - - COUNT( * ) + + 75, 40 * + + 47 AS col2
----
172
1880

skipif mysql # not compatible
query II rowsort label-9713
SELECT ALL 96 + - - COUNT ( * ) + + 75, 40 * + + 47 AS col2
----
172
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT + MIN( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-9714
SELECT + MIN ( 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - 79 + - ( - - MAX( - 64 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9715
SELECT - 79 + - ( - - MAX ( - 64 ) )
----
-15

query I rowsort
SELECT + + ( 26 ) AS col2
----
26

query I rowsort
SELECT DISTINCT - 71 + + + 77
----
6

query I rowsort
SELECT ALL - + 37 + - - 58 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT ALL - NULLIF ( - 59, + ( - COUNT( * ) ) ) DIV + COALESCE ( + 2, + 60, - - COUNT( 74 ) )
----
29

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - NULLIF ( - 59, + ( - COUNT ( * ) ) ) / + COALESCE ( + 2, + 60, - - COUNT ( 74 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT COUNT( * ) - + + 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT COUNT ( * ) - + + 36 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9721
SELECT ALL - 40 AS col2, CAST( NULL AS SIGNED ) + 82, - 20 col0
----
-40
NULL
-20

skipif mysql # not compatible
query III rowsort label-9721
SELECT ALL - 40 AS col2, CAST ( NULL AS INTEGER ) + 82, - 20 col0
----
-40
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL 26 - + COUNT( * ) * - + 4 * + 81
----
350

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL 26 - + COUNT ( * ) * - + 4 * + 81
----
350

query I rowsort
SELECT 30 * + 45 * - NULLIF ( 28, + - 52 ) AS col1
----
-37800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT + 12 * - 49 + - MAX( - + ( + + 24 ) ) + + CAST( NULL AS SIGNED ) - + + MAX( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT + 12 * - 49 + - MAX ( - + ( + + 24 ) ) + + CAST ( NULL AS INTEGER ) - + + MAX ( 61 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9725
SELECT 32 * + 41 * + ( - - COUNT( * ) ) + + + NULLIF ( - - CAST( - 63 AS SIGNED ), - 33 ) + - MIN( DISTINCT - 6 ) DIV + + 5 + - 99 * - 50 * - + COUNT( * ) AS col0
----
-3700

skipif mysql # not compatible
query I rowsort label-9725
SELECT 32 * + 41 * + ( - - COUNT ( * ) ) + + + NULLIF ( - - CAST ( - 63 AS INTEGER ), - 33 ) + - MIN ( DISTINCT - 6 ) / + + 5 + - 99 * - 50 * - + COUNT ( * ) AS col0
----
-3700

query II rowsort
SELECT 38 AS col2, + 47
----
38
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT ALL - CASE + COUNT( * ) WHEN + + 20 * + 25 THEN + COUNT( * ) / + - 62 - 23 * COUNT( * ) WHEN - CAST( NULL AS SIGNED ) - + - 22 * + SUM( 3 ) THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - CASE + COUNT ( * ) WHEN + + 20 * + 25 THEN + COUNT ( * ) / + - 62 - 23 * COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) - + - 22 * + SUM ( 3 ) THEN 73 END
----
NULL

query I rowsort
SELECT 88 * 91 AS col0
----
8008

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT 19 AS col0, - COUNT( * ) + + + COUNT( * ) AS col1
----
19
0

skipif mysql # not compatible
query II rowsort label-9729
SELECT 19 AS col0, - COUNT ( * ) + + + COUNT ( * ) AS col1
----
19
0

query I rowsort
SELECT ALL - ( + 1 ) * + + 65
----
-65

query I rowsort
SELECT ALL - 94 * 82
----
-7708

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT MIN( ALL - ( 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT MIN ( ALL - ( 73 ) )
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-9733
SELECT 94 + 78 DIV + ( - 94 ) AS col2, 55
----
94
55

skipif mysql # not compatible
query II rowsort label-9733
SELECT 94 + 78 / + ( - 94 ) AS col2, 55
----
94
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT SUM( ALL + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT SUM ( ALL + 90 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL - MIN( 0 ) * + 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - MIN ( 0 ) * + 20 AS col0
----
0

query I rowsort
SELECT 4 + + - 30
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT 39 - - 10 * - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9737
SELECT 39 - - 10 * - COUNT ( * )
----
29

query I rowsort
SELECT 13 + - - 83
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9739
SELECT 23 DIV + COALESCE ( + COUNT( * ), - + 34 * + 25 * - - 13 DIV + ( 95 ) * - - 91 + - 76 + NULLIF ( - + CASE - COUNT( * ) WHEN 53 * + 22 + - + SUM( + 14 ) - - + 50 THEN NULL WHEN + SUM( DISTINCT - COALESCE ( 3, + ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ), - 74 ) ) DIV MAX( DISTINCT 25 ) * - 9 * - CAST( NULL AS SIGNED ) THEN NULL WHEN 48 * - ( CAST( NULL AS DECIMAL ) ) THEN 95 * - - 79 * 58 ELSE NULL END, + + 86 * - 3 + - 15 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9739
SELECT 23 / + COALESCE ( + COUNT ( * ), - + 34 * + 25 * - - 13 / + ( 95 ) * - - 91 + - 76 + NULLIF ( - + CASE - COUNT ( * ) WHEN 53 * + 22 + - + SUM ( + 14 ) - - + 50 THEN NULL WHEN + SUM ( DISTINCT - COALESCE ( 3, + ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ), - 74 ) ) / MAX ( DISTINCT 25 ) * - 9 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN 48 * - ( CAST ( NULL AS REAL ) ) THEN 95 * - - 79 * 58 ELSE NULL END, + + 86 * - 3 + - 15 ) ) AS col1
----
23

query I rowsort
SELECT ALL + 68 + 88 * + 36
----
3236

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT - 28 + + + MAX( + + 52 )
----
24

skipif mysql # not compatible
query I rowsort label-9741
SELECT - 28 + + + MAX ( + + 52 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT + MIN( 46 ) + 61 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + MIN ( 46 ) + 61 AS col1
----
107

query I rowsort
SELECT ALL - 95 + + - 70 + + + 85 + - - 12 * 88 col2
----
976

onlyif mysql # DIV for integer division: 
query I rowsort label-9744
SELECT ALL 41 + + ( + ( - + 16 ) ) DIV + 16
----
40

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL 41 + + ( + ( - + 16 ) ) / + 16
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9745
SELECT + ( + 72 ) + 54 + - + 36 DIV NULLIF ( + + COUNT( * ), 95 ) * + 6 + - MAX( ALL + - CAST( + - 76 AS SIGNED ) ) * - - COUNT( * ) * - 11 * - 89 - - 38 + - 41 DIV - - 60
----
-74456

skipif mysql # not compatible
query I rowsort label-9745
SELECT + ( + 72 ) + 54 + - + 36 / NULLIF ( + + COUNT ( * ), 95 ) * + 6 + - MAX ( ALL + - CAST ( + - 76 AS INTEGER ) ) * - - COUNT ( * ) * - 11 * - 89 - - 38 + - 41 / - - 60
----
-74456

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + 83 + - + NULLIF ( + 90, - + MIN( DISTINCT - 58 ) + + 35 ) + - + 79
----
-86

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + 83 + - + NULLIF ( + 90, - + MIN ( DISTINCT - 58 ) + + 35 ) + - + 79
----
-86

query I rowsort
SELECT + 24 + + 53
----
77

query I rowsort
SELECT ALL + ( 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9749
SELECT - - COUNT( * ) DIV - 59 * + 72 * 77 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT - - COUNT ( * ) / - 59 * + 72 * 77 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9750
SELECT + - COALESCE ( + + 15, CASE COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) * - + CAST( NULL AS DECIMAL ) + 75 * - - NULLIF ( + 32, + COUNT( * ) * - + CASE COUNT( * ) WHEN - 71 * + 54 + + + 26 THEN - 55 END + 64 - - 20 + 22 ) THEN NULL ELSE 8 END + + + 11 + MIN( - 46 ), - - 63 ) + - 80 + - COUNT( DISTINCT - 97 ) * + 80 + + + 64 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT + - COALESCE ( + + 15, CASE COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS REAL ) + 75 * - - NULLIF ( + 32, + COUNT ( * ) * - + CASE COUNT ( * ) WHEN - 71 * + 54 + + + 26 THEN - 55 END + 64 - - 20 + 22 ) THEN NULL ELSE 8 END + + + 11 + MIN ( - 46 ), - - 63 ) + - 80 + - COUNT ( DISTINCT - 97 ) * + 80 + + + 64 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL - COUNT( * ) * 59 + + COUNT( * ) * MAX( - + 89 ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - COUNT ( * ) * 59 + + COUNT ( * ) * MAX ( - + 89 ) AS col2
----
-148

query I rowsort
SELECT ALL - + 50 * + 60 * + 88 + + 61 - 42 AS col1
----
-263981

query I rowsort
SELECT + 64 * + + ( 78 ) + 51 AS col0
----
5043

query I rowsort
SELECT DISTINCT + 31 * + + NULLIF ( + - 86, + 14 ) + 48 - - - ( + 5 )
----
-2623

query I rowsort
SELECT ALL 97 * + 94 * - 75
----
-683850

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT + 35 AS col2, 79 * - + CASE - COUNT( * ) WHEN + 11 THEN NULL ELSE + 16 END
----
35
-1264

skipif mysql # not compatible
query II rowsort label-9756
SELECT + 35 AS col2, 79 * - + CASE - COUNT ( * ) WHEN + 11 THEN NULL ELSE + 16 END
----
35
-1264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT DISTINCT - + SUM( ALL - 51 ) * 32 DIV CASE - 63 WHEN - 12 + ( + 18 ) THEN + 86 WHEN - COUNT( * ) + MAX( ALL + + COALESCE ( 84, - 24 ) ) THEN NULL WHEN 18 THEN NULL ELSE + + COUNT( DISTINCT + 58 ) END - 13 AS col1
----
1619

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - + SUM ( ALL - 51 ) * 32 / CASE - 63 WHEN - 12 + ( + 18 ) THEN + 86 WHEN - COUNT ( * ) + MAX ( ALL + + COALESCE ( 84, - 24 ) ) THEN NULL WHEN 18 THEN NULL ELSE + + COUNT ( DISTINCT + 58 ) END - 13 AS col1
----
1619

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT + + ( + + 14 ) * + 95 + 67 + - ( + MIN( ALL + + 88 ) ) + 28 + - ( COUNT( * ) ) * - - 73 AS col0
----
1264

skipif mysql # not compatible
query I rowsort label-9758
SELECT + + ( + + 14 ) * + 95 + 67 + - ( + MIN ( ALL + + 88 ) ) + 28 + - ( COUNT ( * ) ) * - - 73 AS col0
----
1264

onlyif mysql # DIV for integer division: 
query I rowsort label-9759
SELECT + 10 DIV - 44 - + + 22 + - 94 + + ( + 63 ) * 9 * + 71 col1
----
40141

skipif mysql # not compatible
query I rowsort label-9759
SELECT + 10 / - 44 - + + 22 + - 94 + + ( + 63 ) * 9 * + 71 col1
----
40141

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT + - COUNT( * ) * - 33 + - - 19 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9760
SELECT + - COUNT ( * ) * - 33 + - - 19 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT + 85 * + - COUNT( * ) + - 94 + - MAX( 39 ) * + COUNT( * ) * + + COALESCE ( - 60, - + 23 ) * CASE ( + COUNT( * ) ) WHEN - - ( - 96 ) THEN 66 + - NULLIF ( + + 22, COALESCE ( + 79, - + COALESCE ( - + 67, - ( + 13 ) ) * - 28 * - + COUNT( ( + 55 ) ) * + - ( + 97 ) * + - COUNT( + 29 ) / - 99 * - 25 + - + 78 ) - - ( + 93 ) ) WHEN + 3 / - + SUM( ALL + 2 ) THEN + CASE - 42 WHEN ( - 38 ) * 53 + COALESCE ( + + CASE - 48 WHEN 85 THEN AVG ( 0 ) + - ( + 99 + - 23 ) WHEN 80 THEN CAST( NULL AS SIGNED ) + 72 * MIN( DISTINCT 66 ) END, - 40 * ( 8 ), - 78 * 27 ) + - COUNT( * ) * NULLIF ( 31, ( 68 ) / - 11 + 57 ) THEN - 11 END * - 64 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT + 85 * + - COUNT ( * ) + - 94 + - MAX ( 39 ) * + COUNT ( * ) * + + COALESCE ( - 60, - + 23 ) * CASE ( + COUNT ( * ) ) WHEN - - ( - 96 ) THEN 66 + - NULLIF ( + + 22, COALESCE ( + 79, - + COALESCE ( - + 67, - ( + 13 ) ) * - 28 * - + COUNT ( ( + 55 ) ) * + - ( + 97 ) * + - COUNT ( + 29 ) / - 99 * - 25 + - + 78 ) - - ( + 93 ) ) WHEN + 3 / - + SUM ( ALL + 2 ) THEN + CASE - 42 WHEN ( - 38 ) * 53 + COALESCE ( + + CASE - 48 WHEN 85 THEN AVG ( 0 ) + - ( + 99 + - 23 ) WHEN 80 THEN CAST ( NULL AS INTEGER ) + 72 * MIN ( DISTINCT 66 ) END, - 40 * ( 8 ), - 78 * 27 ) + - COUNT ( * ) * NULLIF ( 31, ( 68 ) / - 11 + 57 ) THEN - 11 END * - 64 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9762
SELECT + + 22 AS col2, + ( - 13 ) * ( + 64 ) / 30 / 21 + + 60 + + - CAST( NULL AS SIGNED ) * + 14 * - ( - + 14 ) * - - 74
----
22
NULL

skipif mysql # not compatible
query II rowsort label-9762
SELECT + + 22 AS col2, + ( - 13 ) * ( + 64 ) / 30 / 21 + + 60 + + - CAST ( NULL AS INTEGER ) * + 14 * - ( - + 14 ) * - - 74
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL COUNT( * ) * + - 49 * 79 AS col2
----
-3871

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL COUNT ( * ) * + - 49 * 79 AS col2
----
-3871

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + NULLIF ( 31, - - 99 + - + COUNT( * ) + - 44 + COUNT( DISTINCT - - ( - 30 ) ) ) * + - 28 AS col0
----
-868

skipif mysql # not compatible
query I rowsort label-9764
SELECT + NULLIF ( 31, - - 99 + - + COUNT ( * ) + - 44 + COUNT ( DISTINCT - - ( - 30 ) ) ) * + - 28 AS col0
----
-868

query I rowsort
SELECT + ( - 13 ) + ( 0 ) AS col2
----
-13

query II rowsort
SELECT + ( ( - 3 ) ) AS col2, + 5
----
-3
5

query I rowsort
SELECT DISTINCT 65 * + - 28
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9768
SELECT ALL SUM( + - 29 ) * 95 * + CAST( - ( + CASE COUNT( * ) WHEN 65 THEN - 59 END ) AS SIGNED ) * - 98 + - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL SUM ( + - 29 ) * 95 * + CAST ( - ( + CASE COUNT ( * ) WHEN 65 THEN - 59 END ) AS INTEGER ) * - 98 + - 3 AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - - 25, - 15 ) * + 69
----
1725

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9770
SELECT - 47 DIV + - 90 * - + 82, + 90 - - + COALESCE ( + - 94, - MIN( ALL ( - - 19 ) ) + + + COUNT( * ) ) AS col0, COUNT( * ) AS col2
----
0
-4
1

skipif mysql # not compatible
query III rowsort label-9770
SELECT - 47 / + - 90 * - + 82, + 90 - - + COALESCE ( + - 94, - MIN ( ALL ( - - 19 ) ) + + + COUNT ( * ) ) AS col0, COUNT ( * ) AS col2
----
0
-4
1

query I rowsort
SELECT ALL + 4 * + + 77 + 14 AS col0
----
322

query I rowsort
SELECT + 58 * + 35
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT - SUM( ALL 5 ) + - 45 + 11
----
-39

skipif mysql # not compatible
query I rowsort label-9773
SELECT - SUM ( ALL 5 ) + - 45 + 11
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL NULLIF ( 35, 70 ) + + CAST( - CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL NULLIF ( 35, 70 ) + + CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT 75 + 14 * - COUNT( * ) * - 54 * - 6 + + 95 - - + ( 57 ) + + - 42
----
-4351

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT 75 + 14 * - COUNT ( * ) * - 54 * - 6 + + 95 - - + ( 57 ) + + - 42
----
-4351

query I rowsort
SELECT DISTINCT ( - + 66 )
----
-66

query I rowsort
SELECT ALL + 36 + - + 3 + 20
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT - 4 * 55 DIV - - 61 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9778
SELECT - 4 * 55 / - - 61 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL COALESCE ( - - COALESCE ( + - COUNT( * ), + 14 * 99 + + COUNT( * ) * + 60 ), + 83 * + ( + + 56 ) - - ( - - 86 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL COALESCE ( - - COALESCE ( + - COUNT ( * ), + 14 * 99 + + COUNT ( * ) * + 60 ), + 83 * + ( + + 56 ) - - ( - - 86 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9780
SELECT - CAST( CAST( COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9780
SELECT - CAST ( CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - - COUNT( * ) - + + 64 * - 19 AS col1
----
1217

skipif mysql # not compatible
query I rowsort label-9781
SELECT - - COUNT ( * ) - + + 64 * - 19 AS col1
----
1217

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - - 27 * + MIN( + 97 )
----
2619

skipif mysql # not compatible
query I rowsort label-9782
SELECT - - 27 * + MIN ( + 97 )
----
2619

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT + - 77 / - 57 + + CASE + - 86 WHEN + 75 THEN - + MIN( DISTINCT + 94 ) ELSE NULL END * - ( 21 ) * + - 62 + MAX( DISTINCT + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT + - 77 / - 57 + + CASE + - 86 WHEN + 75 THEN - + MIN ( DISTINCT + 94 ) ELSE NULL END * - ( 21 ) * + - 62 + MAX ( DISTINCT + 74 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 71 - - + 92 AS col0
----
163

query I rowsort
SELECT DISTINCT + NULLIF ( - 16, - - 26 - - 61 * + 7 ) - ( - + 59 )
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT ALL 41 DIV 31 + + + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL 41 / 31 + + + 83 AS col2
----
84

query I rowsort
SELECT - NULLIF ( ( + + 33 ), + 28 * - ( + + 17 ) * - + 77 ) - + 23
----
-56

query I rowsort
SELECT ALL + NULLIF ( + 17, - + 18 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + + MAX( ALL - + 52 ) * 92 + - + 47
----
-4831

skipif mysql # not compatible
query I rowsort label-9789
SELECT + + MAX ( ALL - + 52 ) * 92 + - + 47
----
-4831

onlyif mysql # DIV for integer division: 
query II rowsort label-9790
SELECT + + 50 DIV - 8 AS col2, - 35
----
-6
-35

skipif mysql # not compatible
query II rowsort label-9790
SELECT + + 50 / - 8 AS col2, - 35
----
-6
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + ( + 84 ) + - - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9791
SELECT + ( + 84 ) + - - COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT + + SUM( ( + 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT + + SUM ( ( + 86 ) )
----
86

query II rowsort
SELECT ALL + 69, + 81 * + - 50 * - + 88 AS col1
----
69
356400

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ( + CASE - 26 WHEN ( MIN( + 49 ) ) * COUNT( * ) / COUNT( * ) * + 67 THEN + 19 WHEN - 56 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT ( + CASE - 26 WHEN ( MIN ( + 49 ) ) * COUNT ( * ) / COUNT ( * ) * + 67 THEN + 19 WHEN - 56 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 94 * - 92 * - 70
----
605360

query I rowsort
SELECT ( - + NULLIF ( - - 23, - - 27 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + 71 * + COUNT( DISTINCT + 48 ) * + 55 col1
----
3905

skipif mysql # not compatible
query I rowsort label-9797
SELECT + 71 * + COUNT ( DISTINCT + 48 ) * + 55 col1
----
3905

query I rowsort
SELECT + 3 * + 84 - - CASE + NULLIF ( + + 1, + 76 ) WHEN 69 - - + 28 * 32 THEN 74 WHEN 78 + 61 THEN NULL WHEN + + 88 + - 72 THEN NULL ELSE + 62 END
----
314

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT - SUM( ALL - - 16 ) * - 55 + + 57 * + 77
----
5269

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT - SUM ( ALL - - 16 ) * - 55 + + 57 * + 77
----
5269

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT + COUNT( DISTINCT 98 ) * COUNT( * ) + - 4 + - - COUNT( * ) * + 96 * 27
----
2589

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT + COUNT ( DISTINCT 98 ) * COUNT ( * ) + - 4 + - - COUNT ( * ) * + 96 * 27
----
2589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9801
SELECT + 35 DIV + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9801
SELECT + 35 / + COUNT ( * ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT - COUNT( * ) * - 89 DIV - NULLIF ( + COUNT( * ), - + 28 )
----
-89

skipif mysql # not compatible
query I rowsort label-9802
SELECT - COUNT ( * ) * - 89 / - NULLIF ( + COUNT ( * ), - + 28 )
----
-89

query I rowsort
SELECT ALL + 4 + 95
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9804
SELECT CAST( NULL AS SIGNED ) - - 59 - - + 70 * 34 + - - 23 * - + 5 * + 20 * 44 * 85 AS col1, 86 + - 65 AS col0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-9804
SELECT CAST ( NULL AS INTEGER ) - - 59 - - + 70 * 34 + - - 23 * - + 5 * + 20 * 44 * 85 AS col1, 86 + - 65 AS col0
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL ( + COUNT( * ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL ( + COUNT ( * ) ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( - 57 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( - 57 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + 32 + - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + 32 + - + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9808
SELECT DISTINCT COALESCE ( - COUNT( * ), + MIN( DISTINCT + 60 ) * + COUNT( * ) ) * 79 DIV 77
----
-1

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT COALESCE ( - COUNT ( * ), + MIN ( DISTINCT + 60 ) * + COUNT ( * ) ) * 79 / 77
----
-1

query I rowsort
SELECT ALL 63 + - 57 + - ( - + COALESCE ( - - 14, - 98 ) )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT 68 * - 76 + + - 81 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT 68 * - 76 + + - 81 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 64 - - 14 - + + ( 93 )
----
-15

query I rowsort
SELECT 36 + 51
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT - 90 AS col0, COUNT( * )
----
-90
1

skipif mysql # not compatible
query II rowsort label-9813
SELECT - 90 AS col0, COUNT ( * )
----
-90
1

query II rowsort
SELECT - 13 col2, - 95
----
-13
-95

query I rowsort
SELECT DISTINCT 47 - + 59 * + 92 AS col0
----
-5381

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT ALL 74 AS col0, COALESCE ( + 85, - ( + - COUNT( * ) ), - 81 ) AS col0
----
74
85

skipif mysql # not compatible
query II rowsort label-9816
SELECT ALL 74 AS col0, COALESCE ( + 85, - ( + - COUNT ( * ) ), - 81 ) AS col0
----
74
85

query I rowsort
SELECT ALL - 40 - + + NULLIF ( + + 84, - 43 )
----
-124

query II rowsort
SELECT DISTINCT - 18 AS col1, - 44
----
-18
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT + CAST( NULL AS SIGNED ) * + 4 * + COALESCE ( 12, + + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT + CAST ( NULL AS INTEGER ) * + 4 * + COALESCE ( 12, + + 67 )
----
NULL

query I rowsort
SELECT 36 * + ( - 58 )
----
-2088

onlyif mysql # aggregate syntax: 
query II rowsort label-9821
SELECT ALL + ( 20 ) * - COUNT( * ) AS col0, + NULLIF ( - COUNT( * ), - 64 + + + 2 ) AS col1
----
-20
-1

skipif mysql # not compatible
query II rowsort label-9821
SELECT ALL + ( 20 ) * - COUNT ( * ) AS col0, + NULLIF ( - COUNT ( * ), - 64 + + + 2 ) AS col1
----
-20
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9822
SELECT ALL COUNT( * ) col1, 82
----
1
82

skipif mysql # not compatible
query II rowsort label-9822
SELECT ALL COUNT ( * ) col1, 82
----
1
82

query I rowsort
SELECT ALL + 99 * + 65 * + + 80
----
514800

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT 15 * + CASE - + 58 WHEN - - COUNT( * ) THEN NULL WHEN - + 72 * 12 THEN 10 + - + ( + 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT 15 * + CASE - + 58 WHEN - - COUNT ( * ) THEN NULL WHEN - + 72 * 12 THEN 10 + - + ( + 73 ) END
----
NULL

query I rowsort
SELECT + 54 * - - 67
----
3618

query I rowsort
SELECT 74 + 56 AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - SUM( ALL 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-9827
SELECT - SUM ( ALL 36 )
----
-36

query I rowsort
SELECT ALL - + NULLIF ( 20, 22 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT SUM( ALL - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9829
SELECT SUM ( ALL - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT ALL + 98 + - COUNT( * ) AS col1, - 5
----
97
-5

skipif mysql # not compatible
query II rowsort label-9830
SELECT ALL + 98 + - COUNT ( * ) AS col1, - 5
----
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL - NULLIF ( + 23, - 57 - + ( - MIN( 30 ) ) + + + 46 * + 80 ) + + - COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - NULLIF ( + 23, - 57 - + ( - MIN ( 30 ) ) + + + 46 * + 80 ) + + - COUNT ( * ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - 37 * + 17 * + 5 + 23 + COUNT( * ) AS col0
----
-3121

skipif mysql # not compatible
query I rowsort label-9832
SELECT - 37 * + 17 * + 5 + 23 + COUNT ( * ) AS col0
----
-3121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9833
SELECT 35 * + COUNT( * ) + + 24 DIV - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9833
SELECT 35 * + COUNT ( * ) + + 24 / - COUNT ( * )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT ALL CAST( NULL AS SIGNED ) + - 5 + + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL CAST ( NULL AS INTEGER ) + - 5 + + - 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL - COUNT( - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - COUNT ( - 57 )
----
-1

query I rowsort
SELECT 36 * - 35 + - 69 * 88
----
-7332

onlyif mysql # DIV for integer division: 
query II rowsort label-9837
SELECT ALL + COALESCE ( + 6, + 32, + + NULLIF ( + 90, ( + - 40 ) ) ) * - 78 DIV - + 72, 64 AS col1
----
6
64

skipif mysql # not compatible
query II rowsort label-9837
SELECT ALL + COALESCE ( + 6, + 32, + + NULLIF ( + 90, ( + - 40 ) ) ) * - 78 / - + 72, 64 AS col1
----
6
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT - MAX( ALL - + 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT - MAX ( ALL - + 57 ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9839
SELECT ALL CAST( + + 24 AS DECIMAL ) + + 88 * + 73 * + ( MAX( CASE ( + 23 ) WHEN - + 95 THEN + 96 + 23 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL CAST ( + + 24 AS REAL ) + + 88 * + 73 * + ( MAX ( CASE ( + 23 ) WHEN - + 95 THEN + 96 + 23 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT COUNT( * ) * - - 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9840
SELECT COUNT ( * ) * - - 45 AS col2
----
45

query II rowsort
SELECT 74 + - 81 AS col0, 27 AS col2
----
-7
27

query I rowsort
SELECT ALL 57 - - 58
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9843
SELECT + 13 + 24 AS col1, + 88 * - CASE 17 WHEN + MIN( DISTINCT 97 ) + - + 98 THEN 1 / - MAX( DISTINCT 8 ) + + COALESCE ( + COALESCE ( - 84, + + 48 + - - 74 * - 70, 11 * - MAX( - 41 ) ), + CASE + 73 WHEN - 36 THEN + 15 END ) * - + CASE + 31 WHEN - 11 THEN 26 WHEN 72 THEN NULL ELSE NULL END + - AVG ( ALL - - COALESCE ( + 25, 30 ) ) ELSE NULL END * - CASE 25 WHEN - 70 THEN - - COALESCE ( 35, - 67 ) END * - CAST( NULL AS SIGNED ) + MIN( ALL - 13 ) - + COUNT( * ) * - + SUM( ALL 72 ) + - 68 + 32 + - 48 + CAST( 78 AS SIGNED ) + 92 * + ( - 73 - - 30 ) / 24 col0
----
37
NULL

skipif mysql # not compatible
query II rowsort label-9843
SELECT + 13 + 24 AS col1, + 88 * - CASE 17 WHEN + MIN ( DISTINCT 97 ) + - + 98 THEN 1 / - MAX ( DISTINCT 8 ) + + COALESCE ( + COALESCE ( - 84, + + 48 + - - 74 * - 70, 11 * - MAX ( - 41 ) ), + CASE + 73 WHEN - 36 THEN + 15 END ) * - + CASE + 31 WHEN - 11 THEN 26 WHEN 72 THEN NULL ELSE NULL END + - AVG ( ALL - - COALESCE ( + 25, 30 ) ) ELSE NULL END * - CASE 25 WHEN - 70 THEN - - COALESCE ( 35, - 67 ) END * - CAST ( NULL AS INTEGER ) + MIN ( ALL - 13 ) - + COUNT ( * ) * - + SUM ( ALL 72 ) + - 68 + 32 + - 48 + CAST ( 78 AS INTEGER ) + 92 * + ( - 73 - - 30 ) / 24 col0
----
37
NULL

query I rowsort
SELECT DISTINCT - + 12 - - + 22 * 4 col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9845
SELECT MIN( DISTINCT - 89 ) * + 63 DIV + COUNT( * ) AS col2
----
-5607

skipif mysql # not compatible
query I rowsort label-9845
SELECT MIN ( DISTINCT - 89 ) * + 63 / + COUNT ( * ) AS col2
----
-5607

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL - SUM( ALL 18 ) * - + ( - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL - SUM ( ALL 18 ) * - + ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9847
SELECT 81 DIV - 62 - - 58 + COUNT( ALL + 42 ) * - 16
----
41

skipif mysql # not compatible
query I rowsort label-9847
SELECT 81 / - 62 - - 58 + COUNT ( ALL + 42 ) * - 16
----
41

query II rowsort
SELECT - + ( + 52 ), - 3 AS col2
----
-52
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9849
SELECT ALL 63 * + - 52 AS col0, + 41 * COALESCE ( + + CAST( - 42 AS SIGNED ), 94 * - ( - 14 ) * - + 40, + + 40 + - - 28 * 89 + - 88 DIV 78 ) - + 63 * - NULLIF ( 39, - + 45 ) * 39
----
-3276
94101

skipif mysql # not compatible
query II rowsort label-9849
SELECT ALL 63 * + - 52 AS col0, + 41 * COALESCE ( + + CAST ( - 42 AS INTEGER ), 94 * - ( - 14 ) * - + 40, + + 40 + - - 28 * 89 + - 88 / 78 ) - + 63 * - NULLIF ( 39, - + 45 ) * 39
----
-3276
94101

query I rowsort
SELECT 61 - + + 67 AS col2
----
-6

query I rowsort
SELECT - 46 - + 50 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT 53 * - COUNT( 15 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9852
SELECT 53 * - COUNT ( 15 ) AS col0
----
-53

query I rowsort
SELECT DISTINCT + 37 + - 56 * - 33 * + 6
----
11125

query I rowsort
SELECT ALL - - 11 + - + 44
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9855
SELECT ALL MAX( DISTINCT - 56 ) AS col1, - 70 + + 19 AS col0
----
-56
-51

skipif mysql # not compatible
query II rowsort label-9855
SELECT ALL MAX ( DISTINCT - 56 ) AS col1, - 70 + + 19 AS col0
----
-56
-51

query I rowsort
SELECT 22 - 88 AS col2
----
-66

query I rowsort
SELECT ALL - 87 * - + 6 AS col0
----
522

query I rowsort
SELECT 53 * 43 - - 61 * 69
----
6488

onlyif mysql # aggregate syntax: 
query II rowsort label-9859
SELECT NULLIF ( 41, + CASE - 19 WHEN 26 THEN 82 ELSE NULL END ) AS col2, COUNT( * ) AS col0
----
41
1

skipif mysql # not compatible
query II rowsort label-9859
SELECT NULLIF ( 41, + CASE - 19 WHEN 26 THEN 82 ELSE NULL END ) AS col2, COUNT ( * ) AS col0
----
41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - COUNT( * ) * + 50
----
-50

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - COUNT ( * ) * + 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT 4 * - ( - + COUNT( * ) ) col1
----
4

skipif mysql # not compatible
query I rowsort label-9861
SELECT 4 * - ( - + COUNT ( * ) ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT 39 + + 65 * + + SUM( ALL - 50 )
----
-3211

skipif mysql # not compatible
query I rowsort label-9862
SELECT 39 + + 65 * + + SUM ( ALL - 50 )
----
-3211

query I rowsort
SELECT - 45 * - 93 - + 52 + + 74 - 48 * - 93
----
8671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL - 61 * COUNT( * ) + + - COALESCE ( + 9, - 95, NULLIF ( 32, COUNT( * ) ) + + 36 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - 61 * COUNT ( * ) + + - COALESCE ( + 9, - 95, NULLIF ( 32, COUNT ( * ) ) + + 36 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT + MIN( ALL 74 )
----
74

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT + MIN ( ALL 74 )
----
74

query II rowsort
SELECT ALL - 6 * - 75 + + + 8 col2, 7 AS col1
----
458
7

query I rowsort
SELECT - 29 * - + NULLIF ( - - 74, - + 39 )
----
2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9869
SELECT DISTINCT - 28 * + COUNT( DISTINCT 88 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - 28 * + COUNT ( DISTINCT 88 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT 50 * + 21 + COUNT( * ) - - 92
----
1143

skipif mysql # not compatible
query I rowsort label-9870
SELECT 50 * + 21 + COUNT ( * ) - - 92
----
1143

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT ALL - 77 DIV 21 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - 77 / 21 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT 68 * - 71 - - COALESCE ( 64, + 14 DIV 14 )
----
-4764

skipif mysql # not compatible
query I rowsort label-9872
SELECT 68 * - 71 - - COALESCE ( 64, + 14 / 14 )
----
-4764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9873
SELECT + 90 AS col0, - 94 * + CAST( - COUNT( * ) AS SIGNED ) * - - 85 AS col0
----
90
7990

skipif mysql # not compatible
query II rowsort label-9873
SELECT + 90 AS col0, - 94 * + CAST ( - COUNT ( * ) AS INTEGER ) * - - 85 AS col0
----
90
7990

query I rowsort
SELECT - 69 + + 7 AS col0
----
-62

query I rowsort
SELECT - ( - - 67 ) * - - 27 + 36 + + 81 * - 24 - + + 72
----
-3789

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT ALL - 77 DIV - + 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - 77 / - + 59 AS col2
----
1

query I rowsort
SELECT - 46 + 42 AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT + CAST( NULL AS SIGNED ) * + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT + CAST ( NULL AS INTEGER ) * + + 8 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT DISTINCT + CAST( - - 42 AS SIGNED ) - + + ( + COUNT( * ) ) * - 78 - + COALESCE ( 62, + 56 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT + CAST ( - - 42 AS INTEGER ) - + + ( + COUNT ( * ) ) * - 78 - + COALESCE ( 62, + 56 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + 12 * + COUNT( * ) - 87
----
-75

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 12 * + COUNT ( * ) - 87
----
-75

query I rowsort
SELECT ALL - 15 * - 15 AS col0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9882
SELECT - AVG ( CAST( NULL AS SIGNED ) ) + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) + - 42 AS col1
----
NULL

query I rowsort
SELECT - 38 * - 21 col1
----
798

query I rowsort
SELECT + 44 * 88 AS col0
----
3872

query I rowsort
SELECT - 56 + 43 AS col2
----
-13

query I rowsort
SELECT + 62 - - 42 AS col1
----
104

query I rowsort
SELECT + 38 - 63 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + 8 + SUM( ALL - 17 )
----
-9

skipif mysql # not compatible
query I rowsort label-9888
SELECT + 8 + SUM ( ALL - 17 )
----
-9

query I rowsort
SELECT + 14 + ( 83 + 41 ) * 42
----
5222

query I rowsort
SELECT DISTINCT ( - 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT 66 + - 94 * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT 66 + - 94 * + COUNT ( * ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9892
SELECT DISTINCT COUNT( * ) + + 28 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT COUNT ( * ) + + 28 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 54 + 53 col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT COUNT( * ) * 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT COUNT ( * ) * 96 AS col0
----
96

query I rowsort
SELECT + COALESCE ( + 80, 97 ) * 13 AS col1
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT + 60 + + 20 * MAX( DISTINCT 96 )
----
1980

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 60 + + 20 * MAX ( DISTINCT 96 )
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + 18 * COUNT( * ) col2
----
18

skipif mysql # not compatible
query I rowsort label-9897
SELECT + 18 * COUNT ( * ) col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT - 24 + CAST( NULL AS SIGNED ) * + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT - 24 + CAST ( NULL AS INTEGER ) * + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT DISTINCT - 12 DIV 54 + + COUNT( * ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT - 12 / 54 + + COUNT ( * ) / 70
----
0

query I rowsort
SELECT DISTINCT 59 * - 61 AS col2
----
-3599

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT ALL + 79 DIV - 40 - - 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + 79 / - 40 - - 4 AS col2
----
3

query I rowsort
SELECT 72 * 19 + ( + 89 ) AS col0
----
1457

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT DISTINCT - 34 DIV 62 - 96 * 25 AS col2
----
-2400

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - 34 / 62 - 96 * 25 AS col2
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL + COALESCE ( COALESCE ( SUM( + 43 ), - 73 ), + ( 12 ) ) col2
----
43

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + COALESCE ( COALESCE ( SUM ( + 43 ), - 73 ), + ( 12 ) ) col2
----
43

query I rowsort
SELECT ( + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL + COUNT( DISTINCT 32 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + COUNT ( DISTINCT 32 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT ALL - 2 DIV - 11 - 56
----
-56

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - 2 / - 11 - 56
----
-56

query I rowsort
SELECT + 52 * - 76 AS col0
----
-3952

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ( - COUNT( DISTINCT 10 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9909
SELECT ( - COUNT ( DISTINCT 10 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT 73 * - COUNT( * ) + 54 * - 7
----
-451

skipif mysql # not compatible
query I rowsort label-9910
SELECT 73 * - COUNT ( * ) + 54 * - 7
----
-451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT + 28 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT + 28 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 42, + 26 * 96 + 37 * - 1 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT + CAST( + ( 97 ) AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9913
SELECT + CAST ( + ( 97 ) AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + COUNT( * ) * 68 + + MAX( ALL 29 )
----
97

skipif mysql # not compatible
query I rowsort label-9914
SELECT + COUNT ( * ) * 68 + + MAX ( ALL 29 )
----
97

query I rowsort
SELECT + 22 * NULLIF ( 74, - 10 + - 5 ) AS col2
----
1628

query I rowsort
SELECT ALL - 73 * 51 AS col1
----
-3723

query I rowsort
SELECT DISTINCT NULLIF ( - 38, 95 ) * - 91
----
3458

query I rowsort
SELECT - 16 + 8 AS col0
----
-8

query I rowsort
SELECT + 46 * + 3 + 64 * 79
----
5194

query I rowsort
SELECT + - ( 76 ) AS col2
----
-76

query I rowsort
SELECT - - 72 * 65
----
4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9922
SELECT - - CAST( SUM( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT - - CAST ( SUM ( + CAST ( NULL AS INTEGER ) ) AS REAL ) + + 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT ALL + 61 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + 61 / - 69
----
0

query I rowsort
SELECT - 98 + - 81
----
-179

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT - - 23 DIV 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9925
SELECT - - 23 / 73 AS col1
----
0

query I rowsort
SELECT ALL - - 4 * 67 + + CASE - 68 WHEN 40 THEN 2 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT ALL + 1 DIV 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + 1 / 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL 40 * - COUNT( 66 ) + + 78
----
38

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL 40 * - COUNT ( 66 ) + + 78
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT + + NULLIF ( 9, 53 ) * - 53 + SUM( 59 + - 53 )
----
-471

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT + + NULLIF ( 9, 53 ) * - 53 + SUM ( 59 + - 53 )
----
-471

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT ALL + - 27 + 68 DIV + 64 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + - 27 + 68 / + 64 AS col0
----
-26

query I rowsort
SELECT - - ( + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - MIN( DISTINCT + 38 ) + 60
----
22

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - MIN ( DISTINCT + 38 ) + 60
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT - + 96 - - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9933
SELECT - + 96 - - COUNT ( * )
----
-95

query I rowsort
SELECT + 58 + 56 AS col1
----
114

query I rowsort
SELECT 29 * 58 col2
----
1682

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9936
SELECT NULLIF ( - COALESCE ( + 73, + 35 + 10 DIV - 63 ), COUNT( * ) + 60 ) + - ( COUNT( * ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9936
SELECT NULLIF ( - COALESCE ( + 73, + 35 + 10 / - 63 ), COUNT ( * ) + 60 ) + - ( COUNT ( * ) ) AS col2
----
-74

query I rowsort
SELECT ALL 6 - - + 19 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT COUNT( * ) - 70 + 50 * 69
----
3381

skipif mysql # not compatible
query I rowsort label-9938
SELECT COUNT ( * ) - 70 + 50 * 69
----
3381

query I rowsort
SELECT ALL 0 * + 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT DISTINCT + 4 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + 4 / + 37
----
0

query I rowsort
SELECT ALL 71 - 90 - 13
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL ( - 14 ) - COUNT( * ) * - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL ( - 14 ) - COUNT ( * ) * - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9943
SELECT COUNT( * ) DIV + 47 * 55
----
0

skipif mysql # not compatible
query I rowsort label-9943
SELECT COUNT ( * ) / + 47 * 55
----
0

query I rowsort
SELECT 86 * - - 64 + 94 AS col1
----
5598

query I rowsort
SELECT + 99 * - 17 - 57 col0
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ( + 57 ) * COALESCE ( + ( + 42 ) * - COUNT( * ), - 41, COALESCE ( 51, - COUNT( * ) ) * 54 ) AS col1
----
-2394

skipif mysql # not compatible
query I rowsort label-9946
SELECT ( + 57 ) * COALESCE ( + ( + 42 ) * - COUNT ( * ), - 41, COALESCE ( 51, - COUNT ( * ) ) * 54 ) AS col1
----
-2394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9947
SELECT COUNT( ALL COALESCE ( + 42, - CAST( NULL AS SIGNED ) ) ) * 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9947
SELECT COUNT ( ALL COALESCE ( + 42, - CAST ( NULL AS INTEGER ) ) ) * 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL COUNT( * ) * SUM( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL COUNT ( * ) * SUM ( - 74 )
----
-74

query I rowsort
SELECT ALL - COALESCE ( + 76, - 28 - - 45 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT + + NULLIF ( 76, - 36 * 94 + + 90 * MAX( + 90 ) ) * + 3 + + ( 54 ) AS col2
----
282

skipif mysql # not compatible
query I rowsort label-9950
SELECT + + NULLIF ( 76, - 36 * 94 + + 90 * MAX ( + 90 ) ) * + 3 + + ( 54 ) AS col2
----
282

query I rowsort
SELECT + NULLIF ( + ( - 88 ), + 26 ) AS col2
----
-88

query I rowsort
SELECT ALL - 7 + - + 74 - + ( 44 ) * - 28 AS col1
----
1151

query I rowsort
SELECT + - 56 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT DISTINCT - 74 + + + NULLIF ( + 19, - CASE + 35 WHEN - 39 + COUNT( - 65 + - 46 * 75 ) * - COUNT( * ) THEN 78 WHEN 88 + + COUNT( * ) THEN NULL ELSE - 28 + COALESCE ( + COUNT( - 41 ), 25, 67 + + MAX( + 39 ) ) END )
----
-55

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT - 74 + + + NULLIF ( + 19, - CASE + 35 WHEN - 39 + COUNT ( - 65 + - 46 * 75 ) * - COUNT ( * ) THEN 78 WHEN 88 + + COUNT ( * ) THEN NULL ELSE - 28 + COALESCE ( + COUNT ( - 41 ), 25, 67 + + MAX ( + 39 ) ) END )
----
-55

query I rowsort
SELECT ALL + 16 + 75 + 56 * + 61 * 25 AS col0
----
85491

query I rowsort
SELECT ALL - + 79 + - + 89
----
-168

query I rowsort
SELECT - 71 * + 76 - 55 * - COALESCE ( + 31, + 68, 44 + - 1 ) AS col2
----
-3691

query I rowsort
SELECT ALL 9 + ( - 43 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT 14 + + + 93
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9960
SELECT ALL - + CAST( NULL AS SIGNED ) + - AVG ( + 98 ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - + CAST ( NULL AS INTEGER ) + - AVG ( + 98 ) + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ( COUNT( * ) ) + + 24 * - 15
----
-359

skipif mysql # not compatible
query I rowsort label-9961
SELECT ( COUNT ( * ) ) + + 24 * - 15
----
-359

query I rowsort
SELECT ALL - 80 + - 0 * - 5
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT - - 37 + 45 + 84 * 23 * - MIN( DISTINCT + 80 )
----
-154478

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT - - 37 + 45 + 84 * 23 * - MIN ( DISTINCT + 80 )
----
-154478

query I rowsort
SELECT ALL COALESCE ( - CASE + ( + 63 ) WHEN + 33 THEN - 22 WHEN + 14 THEN - 21 * + 47 ELSE - COALESCE ( - 77, - 17 ) END, - 30 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT 7 + + COALESCE ( + ( - COALESCE ( + 62, 6 ) ), COUNT( * ) ) - 77 * - 58
----
4411

skipif mysql # not compatible
query I rowsort label-9965
SELECT 7 + + COALESCE ( + ( - COALESCE ( + 62, 6 ) ), COUNT ( * ) ) - 77 * - 58
----
4411

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - 98 - ( 64 ) + COUNT( * ) AS col1
----
-161

skipif mysql # not compatible
query I rowsort label-9966
SELECT - 98 - ( 64 ) + COUNT ( * ) AS col1
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9967
SELECT ALL + - COUNT( * ) DIV 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + - COUNT ( * ) / 16 AS col2
----
0

query I rowsort
SELECT 97 - 83 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL + - COUNT( * ) - 67 * - 21
----
1406

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL + - COUNT ( * ) - 67 * - 21
----
1406

query I rowsort
SELECT 84 * - - 14 - 16 * 52 AS col0
----
344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT DISTINCT - 28 DIV - ( 39 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT - 28 / - ( 39 ) + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9972
SELECT ALL + CAST( + 33 AS SIGNED ) - 8 DIV COALESCE ( + 34, - 75, COUNT( * ) + + 35 * ( 93 ) )
----
33

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + CAST ( + 33 AS INTEGER ) - 8 / COALESCE ( + 34, - 75, COUNT ( * ) + + 35 * ( 93 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL SUM( + - 58 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL SUM ( + - 58 ) col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT + 36 - COUNT( DISTINCT - 41 ) col2
----
35

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + 36 - COUNT ( DISTINCT - 41 ) col2
----
35

query I rowsort
SELECT ALL + COALESCE ( - 47, - 4 ) - - 87 col1
----
40

query I rowsort
SELECT 52 + - 67 * 9
----
-551

onlyif mysql # DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT + 0 * - - 59 * + - 27 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + 0 * - - 59 * + - 27 / - 72
----
0

query I rowsort
SELECT 29 + 16 + + 89 + - 46 * 72 AS col2
----
-3178

query I rowsort
SELECT 38 + 66
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-9980
SELECT ALL 93 DIV - 6 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL 93 / - 6 AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9981
SELECT COUNT( + NULLIF ( 98, + 22 ) ) DIV CASE COUNT( * ) WHEN 4 DIV + COUNT( * ) THEN NULL ELSE 75 END
----
0

skipif mysql # not compatible
query I rowsort label-9981
SELECT COUNT ( + NULLIF ( 98, + 22 ) ) / CASE COUNT ( * ) WHEN 4 / + COUNT ( * ) THEN NULL ELSE 75 END
----
0

query I rowsort
SELECT ALL - ( + 57 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL 11 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL 11 * - COUNT ( * )
----
-11

query I rowsort
SELECT + 94 * + CASE 42 WHEN - 18 THEN 92 / - 43 WHEN - 43 THEN NULL ELSE NULL END + + 5
----
NULL

query II rowsort
SELECT + 41 AS col1, - 71
----
41
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9986
SELECT ( - NULLIF ( - - COUNT( * ), - COUNT( * ) ) ) DIV 90 + 73
----
73

skipif mysql # not compatible
query I rowsort label-9986
SELECT ( - NULLIF ( - - COUNT ( * ), - COUNT ( * ) ) ) / 90 + 73
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9987
SELECT + 52 AS col0, - MIN( - 74 ) AS col1
----
52
74

skipif mysql # not compatible
query II rowsort label-9987
SELECT + 52 AS col0, - MIN ( - 74 ) AS col1
----
52
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT MIN( ALL 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9988
SELECT MIN ( ALL 2 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT + 37 * 90 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT + 37 * 90 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT CASE ( 96 ) WHEN + CAST( NULL AS SIGNED ) THEN COUNT( CASE - 28 WHEN ( 33 ) + - 21 THEN - 6 END ) - - 70 ELSE NULL END + - 49 / 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT CASE ( 96 ) WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( CASE - 28 WHEN ( 33 ) + - 21 THEN - 6 END ) - - 70 ELSE NULL END + - 49 / 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT - 97 DIV - + 8 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 97 / - + 8 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + COUNT( * ) * + COALESCE ( + + 42, - 32 - + 23 * + 83 ) * - 82 + COUNT( * ) * + COUNT( * ) col1
----
-3443

skipif mysql # not compatible
query I rowsort label-9992
SELECT + COUNT ( * ) * + COALESCE ( + + 42, - 32 - + 23 * + 83 ) * - 82 + COUNT ( * ) * + COUNT ( * ) col1
----
-3443

query I rowsort
SELECT ALL + 75 + - 33 * - 17 * 94 AS col0
----
52809

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT NULLIF ( - 17, - COUNT( * ) * - 94 ) + 35
----
18

skipif mysql # not compatible
query I rowsort label-9994
SELECT NULLIF ( - 17, - COUNT ( * ) * - 94 ) + 35
----
18

query I rowsort
SELECT ALL + 95 + + 49
----
144

query I rowsort
SELECT 50 + - 56 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL 2 + - SUM( 65 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL 2 + - SUM ( 65 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL - + COALESCE ( + 74, - COUNT( * ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL - + COALESCE ( + 74, - COUNT ( * ) ) AS col1
----
-74

query II rowsort
SELECT ALL - 32, 27 AS col2
----
-32
27

