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 # DIV for integer division: 
query I rowsort label-0
SELECT 80 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-0
SELECT 80 / + 92
----
0

query I rowsort
SELECT ALL 45 * - + 6 * + ( + 12 ) AS col1
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL - MAX( DISTINCT + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL - MAX ( DISTINCT + 22 )
----
-22

query I rowsort
SELECT 96 + - 52 AS col0
----
44

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT ALL - 33 DIV + + 19
----
-1

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - 33 / + + 19
----
-1

query I rowsort
SELECT 5 * - 38 * 96 * + + 94
----
-1714560

onlyif mysql # DIV for integer division: 
query I rowsort label-7
SELECT ALL - 24 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - 24 / 73 AS col2
----
0

query I rowsort
SELECT 88 * 41 + + - 34
----
3574

query I rowsort
SELECT 15 * - 62
----
-930

query I rowsort
SELECT - 27 * - 73 + - 90
----
1881

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT ALL - + 76 DIV + + 36
----
-2

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - + 76 / + + 36
----
-2

query I rowsort
SELECT - 51 + 90
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT 74 * + - 25 * - 37 - + + 85 DIV + 75 + + 55 col1
----
68504

skipif mysql # not compatible
query I rowsort label-13
SELECT 74 * + - 25 * - 37 - + + 85 / + 75 + + 55 col1
----
68504

query I rowsort
SELECT - 65 + + - 74 + - 3 * - - 18 AS col0
----
-193

query I rowsort
SELECT ALL + + 63 + 13
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-16
SELECT + COALESCE ( - COUNT( * ), + 79 + + CAST( - 24 AS SIGNED ) ), + 2 AS col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-16
SELECT + COALESCE ( - COUNT ( * ), + 79 + + CAST ( - 24 AS INTEGER ) ), + 2 AS col2
----
-1
2

query I rowsort
SELECT ALL - + 57 col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT ALL + + 88 * - - 10 DIV - 10 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + + 88 * - - 10 / - 10 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + 7 + 32 * + 90 * + + 19 + - 73 + + SUM( 90 ) AS col1
----
54744

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + 7 + 32 * + 90 * + + 19 + - 73 + + SUM ( 90 ) AS col1
----
54744

query I rowsort
SELECT DISTINCT 79 + + 53 AS col0
----
132

query I rowsort
SELECT ALL 84 + + - 3
----
81

query I rowsort
SELECT - 97 * + 63 - - 82
----
-6029

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT DISTINCT - + 46 + - + COUNT( * ) * + + 23 * - 4 col0
----
46

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - + 46 + - + COUNT ( * ) * + + 23 * - 4 col0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-25
SELECT 57 AS col1, 52 * - + 35, + CAST( NULL AS DECIMAL ) AS col1
----
57
-1820
NULL

skipif mysql # not compatible
query III rowsort label-25
SELECT 57 AS col1, 52 * - + 35, + CAST ( NULL AS REAL ) AS col1
----
57
-1820
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL - COUNT( + 34 ) + - 79 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - COUNT ( + 34 ) + - 79 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT + COALESCE ( + - 13, + 6 + COUNT( + 55 ) - + 98 + + 28, + ( + + COUNT( ALL 2 ) ) ) - 79 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-27
SELECT + COALESCE ( + - 13, + 6 + COUNT ( + 55 ) - + 98 + + 28, + ( + + COUNT ( ALL 2 ) ) ) - 79 AS col0
----
-92

query I rowsort
SELECT ALL - NULLIF ( + 8, - + 65 * + 39 - 84 + - 41 + 21 * AVG ( - 21 ) )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-29
SELECT DISTINCT MIN( + CAST( - 62 AS SIGNED ) ), - 7 AS col0
----
-62
-7

skipif mysql # not compatible
query II rowsort label-29
SELECT DISTINCT MIN ( + CAST ( - 62 AS INTEGER ) ), - 7 AS col0
----
-62
-7

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

query I rowsort
SELECT 71 * - 32 AS col2
----
-2272

query I rowsort
SELECT ALL 35 * - + 26
----
-910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-33
SELECT - 82 AS col1, - 56 - + CAST( NULL AS SIGNED ) + + MAX( - + 6 )
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-33
SELECT - 82 AS col1, - 56 - + CAST ( NULL AS INTEGER ) + + MAX ( - + 6 )
----
-82
NULL

query I rowsort
SELECT ( + - 35 ) + - 83 + - 69 + + + 37 * - - 72 + + - ( + + 95 ) * - 11 * - 17 + + 25 * + 97
----
-12863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT 90 DIV - - MAX( + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-35
SELECT 90 / - - MAX ( + 64 )
----
1

query I rowsort
SELECT 61 * - + 99 AS col2
----
-6039

query II rowsort
SELECT ALL 39, 66 * - 82 - 92 AS col1
----
39
-5504

query II rowsort
SELECT 57 col1, - 92 + 71 * 95
----
57
6653

query I rowsort
SELECT DISTINCT + 10 * 76 AS col0
----
760

query I rowsort
SELECT 89 + + - 68 AS col1
----
21

query I rowsort
SELECT 96 * ( - 35 ) * 51
----
-171360

query I rowsort
SELECT DISTINCT 63 * + 51 col1
----
3213

query III rowsort
SELECT 86 AS col1, 23 AS col2, + - 33 * - 32 + + + ( - - 13 )
----
86
23
1069

query I rowsort
SELECT CASE 15 WHEN + - 83 THEN NULL WHEN - 12 + - 30 + + 14 / + 87 THEN NULL ELSE + 4 * - + 88 + - NULLIF ( + NULLIF ( 87, 69 * + 81 ), 9 * - 23 ) END col1
----
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 86 * - - SUM( ALL - + 71 ) AS col1
----
-6106

skipif mysql # not compatible
query I rowsort label-45
SELECT 86 * - - SUM ( ALL - + 71 ) AS col1
----
-6106

query I rowsort
SELECT 21 * 95 AS col2
----
1995

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-47
SELECT - 23 DIV 89 * 39 + + + CAST( + - CASE + 3 WHEN 42 + + - 66 THEN 31 ELSE + + 48 * - ( + 97 ) END AS SIGNED ) * - 34 AS col2
----
-158304

skipif mysql # not compatible
query I rowsort label-47
SELECT - 23 / 89 * 39 + + + CAST ( + - CASE + 3 WHEN 42 + + - 66 THEN 31 ELSE + + 48 * - ( + 97 ) END AS INTEGER ) * - 34 AS col2
----
-158304

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT SUM( DISTINCT - 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-48
SELECT SUM ( DISTINCT - 15 ) AS col1
----
-15

query I rowsort
SELECT ALL + ( 11 ) * - 39 * 2 + + 0 * 22 + - 28
----
-886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT - COALESCE ( - MIN( + - ( + + 87 ) ), + 40 ) DIV - + 8 - - - 88 - - - 69 col2
----
-147

skipif mysql # not compatible
query I rowsort label-50
SELECT - COALESCE ( - MIN ( + - ( + + 87 ) ), + 40 ) / - + 8 - - - 88 - - - 69 col2
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT + 49 DIV + 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-51
SELECT + 49 / + 16 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT + COUNT( + - 8 ) - + 39 + MIN( ALL 48 )
----
10

skipif mysql # not compatible
query I rowsort label-52
SELECT + COUNT ( + - 8 ) - + 39 + MIN ( ALL 48 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT DISTINCT + + MAX( DISTINCT 33 ) * + COUNT( * ) + - 15 + - - 94
----
112

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT + + MAX ( DISTINCT 33 ) * + COUNT ( * ) + - 15 + - - 94
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-54
SELECT + COUNT( * ) DIV 5, - COALESCE ( - 45, - + 58 + - SUM( DISTINCT - 19 ) - - 91 ) * + CAST( - + SUM( + ( + 9 ) ) AS SIGNED ) * + NULLIF ( + 44, + 33 ) AS col0
----
0
-17820

skipif mysql # not compatible
query II rowsort label-54
SELECT + COUNT ( * ) / 5, - COALESCE ( - 45, - + 58 + - SUM ( DISTINCT - 19 ) - - 91 ) * + CAST ( - + SUM ( + ( + 9 ) ) AS INTEGER ) * + NULLIF ( + 44, + 33 ) AS col0
----
0
-17820

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL - - COUNT( * ) * 74 + + 19 + + 78 - 84
----
87

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL - - COUNT ( * ) * 74 + + 19 + + 78 - 84
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT + + MIN( - 8 ) * - + 51 + 8 + CASE + 71 WHEN - 78 * 6 THEN - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT + + MIN ( - 8 ) * - + 51 + 8 + CASE + 71 WHEN - 78 * 6 THEN - - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 30 * 16 + - 34 AS col0
----
446

query I rowsort
SELECT - 38 - - 62 + - 28 AS col0
----
-4

query II rowsort
SELECT ALL + 1, 13 AS col2
----
1
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-60
SELECT - + CASE - CAST( + COUNT( * ) AS DECIMAL ) WHEN - - 51 THEN COUNT( * ) ELSE NULL END - 63, + 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-60
SELECT - + CASE - CAST ( + COUNT ( * ) AS REAL ) WHEN - - 51 THEN COUNT ( * ) ELSE NULL END - 63, + 14 AS col2
----
NULL
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT + - ( + 25 ) * ( CAST( + 7 AS SIGNED ) ) * + 84 AS col2
----
-14700

skipif mysql # not compatible
query I rowsort label-61
SELECT + - ( + 25 ) * ( CAST ( + 7 AS INTEGER ) ) * + 84 AS col2
----
-14700

onlyif mysql # aggregate syntax: 
query II rowsort label-62
SELECT + 95 + - 81 AS col1, COUNT( * ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-62
SELECT + 95 + - 81 AS col1, COUNT ( * ) AS col2
----
14
1

query I rowsort
SELECT - - 1 * + 10 AS col0
----
10

query I rowsort
SELECT - 35 * 68 + + + NULLIF ( + + 92, + + 72 ) AS col0
----
-2288

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

query I rowsort
SELECT - - 15 + - 28
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL - - 43 * + COUNT( * ) + - NULLIF ( - 41, + + 51 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - - 43 * + COUNT ( * ) + - NULLIF ( - 41, + + 51 ) AS col1
----
84

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

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

query I rowsort
SELECT DISTINCT - 2 * - COALESCE ( + 34, 96, + 32 )
----
68

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

skipif mysql # not compatible
query I rowsort label-70
SELECT - 0 + - 20 + + COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-71
SELECT - 11 * + 74, COUNT( * ) AS col0
----
-814
1

skipif mysql # not compatible
query II rowsort label-71
SELECT - 11 * + 74, COUNT ( * ) AS col0
----
-814
1

query II rowsort
SELECT - ( + 79 ) + + 97 AS col1, 63 AS col1
----
18
63

query I rowsort
SELECT ALL NULLIF ( - 64, - 79 + - - 84 )
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-74
SELECT - 64 DIV 36 AS col2, ( 46 ) AS col1
----
-1
46

skipif mysql # not compatible
query II rowsort label-74
SELECT - 64 / 36 AS col2, ( 46 ) AS col1
----
-1
46

query I rowsort
SELECT + 70 * + + 3 AS col1
----
210

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

query I rowsort
SELECT ALL ( + 19 ) col1
----
19

query II rowsort
SELECT ALL 28 * + 24, 79 AS col2
----
672
79

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

skipif mysql # not compatible
query II rowsort label-79
SELECT DISTINCT COUNT ( * ) * 84, 69 AS col0
----
84
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-80
SELECT DISTINCT + 51 DIV + + SUM( ALL - - 83 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT + 51 / + + SUM ( ALL - - 83 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT ALL 22 + 81 + - CAST( NULL AS SIGNED ) * 95 * + 52 / - - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL 22 + 81 + - CAST ( NULL AS INTEGER ) * 95 * + 52 / - - 71 AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 27, + 14 / - + 98 ) * + CASE + - 18 WHEN 22 THEN 97 + + - 85 - - 91 * ( + - AVG ( + 12 ) ) + + 78 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT + 4 + + ( - 91 ) + - - ( + 71 ) + 48 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-83
SELECT + 4 + + ( - 91 ) + - - ( + 71 ) + 48 * - COUNT ( * )
----
-64

query I rowsort
SELECT + 80 * + - 79
----
-6320

query I rowsort
SELECT - 91 + 58 + - 37
----
-70

query I rowsort
SELECT + 68 + 24 AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT DISTINCT + + COUNT( * ) DIV + 66 + - + COUNT( * ) + + 86 - - 32 * - 38 * + + 52 * + ( 10 ) + - 86 + - 57 AS col1
----
-632378

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT + + COUNT ( * ) / + 66 + - + COUNT ( * ) + + 86 - - 32 * - 38 * + + 52 * + ( 10 ) + - 86 + - 57 AS col1
----
-632378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT ALL + - COUNT( * ) DIV - 98 + - + 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + - COUNT ( * ) / - 98 + - + 65 AS col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT DISTINCT + 19 DIV 31 + 99 + + 8 + + 38 + + 28 DIV - + COALESCE ( - + 58, - - 81 )
----
145

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT + 19 / 31 + 99 + + 8 + + 38 + + 28 / - + COALESCE ( - + 58, - - 81 )
----
145

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-91
SELECT + + 30 + 1, COALESCE ( + COUNT( * ), + - 79 ) AS col1
----
31
1

skipif mysql # not compatible
query II rowsort label-91
SELECT + + 30 + 1, COALESCE ( + COUNT ( * ), + - 79 ) AS col1
----
31
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-92
SELECT - 58 * + 56 * COALESCE ( - - 65, NULLIF ( + + CAST( NULL AS SIGNED ), + 75 - + - 34 - + - 77 - + 44 * - CASE + - 68 WHEN - 87 THEN 5 - MIN( DISTINCT + 20 ) / 61 END * - 47 - 85 / - 45 ) + 94 ) col0
----
-211120

skipif mysql # not compatible
query I rowsort label-92
SELECT - 58 * + 56 * COALESCE ( - - 65, NULLIF ( + + CAST ( NULL AS INTEGER ), + 75 - + - 34 - + - 77 - + 44 * - CASE + - 68 WHEN - 87 THEN 5 - MIN ( DISTINCT + 20 ) / 61 END * - 47 - 85 / - 45 ) + 94 ) col0
----
-211120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT + COUNT( * ) * - - ( + - MIN( + + 81 ) ) + 82 * - 76 + + CASE + 96 WHEN 14 + + - 49 + + - 79 + + COUNT( * ) / 41 THEN + 64 * + 74 + CAST( NULL AS SIGNED ) ELSE NULL END / - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT + COUNT ( * ) * - - ( + - MIN ( + + 81 ) ) + 82 * - 76 + + CASE + 96 WHEN 14 + + - 49 + + - 79 + + COUNT ( * ) / 41 THEN + 64 * + 74 + CAST ( NULL AS INTEGER ) ELSE NULL END / - 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT ALL - + 98 * - 61 - - + 81 * + NULLIF ( - - 96, + CAST( NULL AS SIGNED ) * 52 ) + + NULLIF ( - 63, 31 + + + CASE + 37 WHEN 22 + 29 THEN 75 * 54 END + - CASE 4 + - 76 WHEN 11 THEN 11 ELSE + 29 + + 63 END / - 14 ) * 56
----
10226

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL - + 98 * - 61 - - + 81 * + NULLIF ( - - 96, + CAST ( NULL AS INTEGER ) * 52 ) + + NULLIF ( - 63, 31 + + + CASE + 37 WHEN 22 + 29 THEN 75 * 54 END + - CASE 4 + - 76 WHEN 11 THEN 11 ELSE + 29 + + 63 END / - 14 ) * 56
----
10226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-95
SELECT - CASE + SUM( DISTINCT - - 78 ) WHEN - - CAST( NULL AS SIGNED ) * - 8 THEN + COUNT( * ) * + 21 / + 56 + 36 WHEN + COUNT( * ) + + 11 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-95
SELECT - CASE + SUM ( DISTINCT - - 78 ) WHEN - - CAST ( NULL AS INTEGER ) * - 8 THEN + COUNT ( * ) * + 21 / + 56 + 36 WHEN + COUNT ( * ) + + 11 THEN NULL END
----
NULL

query I rowsort
SELECT + 43 * 4
----
172

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-97
SELECT - + 46 * + - ( - CASE 30 WHEN 8 * - + COUNT( * ) + 30 THEN - 68 WHEN - CASE + 90 WHEN 91 * 69 * + 59 + + CAST( - 88 AS DECIMAL ) THEN NULL ELSE 80 + COUNT( * ) END THEN - 2 * - 69 ELSE NULL END ) - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT - + 46 * + - ( - CASE 30 WHEN 8 * - + COUNT ( * ) + 30 THEN - 68 WHEN - CASE + 90 WHEN 91 * 69 * + 59 + + CAST ( - 88 AS REAL ) THEN NULL ELSE 80 + COUNT ( * ) END THEN - 2 * - 69 ELSE NULL END ) - 11 AS col1
----
NULL

query II rowsort
SELECT + 22 AS col2, 37 AS col1
----
22
37

query I rowsort
SELECT - 52 * + - 40 * - - 77
----
160160

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT - 70 DIV - 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-100
SELECT - 70 / - 28 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL - 64 * 22 * + COUNT( * ) * - 7 AS col0
----
9856

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - 64 * 22 * + COUNT ( * ) * - 7 AS col0
----
9856

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT - MAX( ALL - 56 ) * - - 26
----
1456

skipif mysql # not compatible
query I rowsort label-102
SELECT - MAX ( ALL - 56 ) * - - 26
----
1456

query I rowsort
SELECT ALL - 38 * - 79
----
3002

query I rowsort
SELECT ALL - 65 * + 39
----
-2535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-105
SELECT DISTINCT + 47 + + ( + - AVG ( DISTINCT - 1 ) ) + CAST( NULL AS SIGNED ) + + + COUNT( * ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT + 47 + + ( + - AVG ( DISTINCT - 1 ) ) + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - 77
----
NULL

query I rowsort
SELECT DISTINCT - 93 + + 86 AS col0
----
-7

query I rowsort
SELECT DISTINCT + 48 + - 5 * + 16 * - - ( + 96 ) AS col1
----
-7632

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - 27 + - MIN( DISTINCT ( 90 ) ) + - 93
----
-210

skipif mysql # not compatible
query I rowsort label-108
SELECT - 27 + - MIN ( DISTINCT ( 90 ) ) + - 93
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT - 44 DIV + - 71 * + COALESCE ( - 18, NULLIF ( - - 28, - 60 ) * 1 DIV + 8 * - 38 * 20 )
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT - 44 / + - 71 * + COALESCE ( - 18, NULLIF ( - - 28, - 60 ) * 1 / + 8 * - 38 * 20 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + 37 + - 6 + + SUM( DISTINCT 73 ) * + 75
----
5506

skipif mysql # not compatible
query I rowsort label-111
SELECT + 37 + - 6 + + SUM ( DISTINCT 73 ) * + 75
----
5506

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT + - CAST( - + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-113
SELECT + - CAST ( - + 21 AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL - ( - 5 ) - 78 * - + MAX( DISTINCT - + 36 ) AS col2
----
-2803

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - ( - 5 ) - 78 * - + MAX ( DISTINCT - + 36 ) AS col2
----
-2803

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT + - 72, + COUNT( ALL 82 ) AS col1
----
-72
1

skipif mysql # not compatible
query II rowsort label-115
SELECT + - 72, + COUNT ( ALL 82 ) AS col1
----
-72
1

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

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

query I rowsort
SELECT DISTINCT + 26 * - 67
----
-1742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT + - CAST( NULL AS SIGNED ) * + - ( - 85 ) + + - 54 * - + 40 * - 45 * + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT + - CAST ( NULL AS INTEGER ) * + - ( - 85 ) + + - 54 * - + 40 * - 45 * + + 10
----
NULL

query I rowsort
SELECT DISTINCT + - 10 * + 84 AS col2
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-120
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + - 33 ) * - COUNT( * ) / + SUM( - + ( + - 12 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-120
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + - 33 ) * - COUNT ( * ) / + SUM ( - + ( + - 12 ) )
----
NULL

query I rowsort
SELECT ALL - ( + 72 ) AS col2
----
-72

query I rowsort
SELECT - 89 * - 69 * + - 24 + - 0 * 85 AS col2
----
-147384

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-123
SELECT - CAST( NULL AS SIGNED ) - - + 64 + 98 * + 86 + 48 + + 94 + + CAST( NULL AS DECIMAL ) * + + 80 / + 25 + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT - CAST ( NULL AS INTEGER ) - - + 64 + 98 * + 86 + 48 + + 94 + + CAST ( NULL AS REAL ) * + + 80 / + 25 + 15
----
NULL

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

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

query I rowsort
SELECT 8 * - - 22 AS col2
----
176

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

skipif mysql # not compatible
query I rowsort label-126
SELECT 90 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 81 * - 15
----
-1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT + CAST( + + 32 AS SIGNED ) * - ( + - 77 ) + + 97 + + 38
----
2599

skipif mysql # not compatible
query I rowsort label-128
SELECT + CAST ( + + 32 AS INTEGER ) * - ( + - 77 ) + + 97 + + 38
----
2599

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT ALL + 6 + - 88 DIV - + 4
----
28

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + 6 + - 88 / - + 4
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL COUNT( * ) * NULLIF ( - 46, + ( - + COUNT( * ) ) * - + ( - 77 ) * + COUNT( * ) + + 80 / 77 - - + 75 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL COUNT ( * ) * NULLIF ( - 46, + ( - + COUNT ( * ) ) * - + ( - 77 ) * + COUNT ( * ) + + 80 / 77 - - + 75 ) AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT COUNT( * ) + + + 17 + - MIN( + + 95 ) DIV - COUNT( * )
----
113

skipif mysql # not compatible
query I rowsort label-131
SELECT COUNT ( * ) + + + 17 + - MIN ( + + 95 ) / - COUNT ( * )
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-132
SELECT 21 * - COUNT( * ) col2, 5 + 32 DIV + 80 col0, - + MAX( + 17 )
----
-21
5
-17

skipif mysql # not compatible
query III rowsort label-132
SELECT 21 * - COUNT ( * ) col2, 5 + 32 / + 80 col0, - + MAX ( + 17 )
----
-21
5
-17

query I rowsort
SELECT DISTINCT 10 + - 85 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT 34 + + CASE 83 WHEN - 75 / - 80 * + + AVG ( DISTINCT + 94 ) + 95 * - - 50 THEN + COUNT( * ) END + + - 66 * - MIN( DISTINCT - - 93 ) + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT 34 + + CASE 83 WHEN - 75 / - 80 * + + AVG ( DISTINCT + 94 ) + 95 * - - 50 THEN + COUNT ( * ) END + + - 66 * - MIN ( DISTINCT - - 93 ) + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 21 + + - 44
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-136
SELECT 24 * - 36, - NULLIF ( + SUM( ALL + 26 ), + 87 ) + COUNT( + - CAST( + 61 AS DECIMAL ) ) col1
----
-864
-25

skipif mysql # not compatible
query II rowsort label-136
SELECT 24 * - 36, - NULLIF ( + SUM ( ALL + 26 ), + 87 ) + COUNT ( + - CAST ( + 61 AS REAL ) ) col1
----
-864
-25

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

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

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

skipif mysql # not compatible
query I rowsort label-138
SELECT - - ( MAX ( - 11 ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT - CASE - CAST( + 62 AS SIGNED ) WHEN + + 20 THEN + - 11 ELSE NULL END + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT - CASE - CAST ( + 62 AS INTEGER ) WHEN + + 20 THEN + - 11 ELSE NULL END + - 66 AS col1
----
NULL

query I rowsort
SELECT 64 * + + 34 + - + 8
----
2168

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

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

query I rowsort
SELECT + 57 + + 31 + 85 AS col1
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT 43 * - COALESCE ( COUNT( * ), - + 98 ) * - - COUNT( - ( + 30 ) ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT 43 * - COALESCE ( COUNT ( * ), - + 98 ) * - - COUNT ( - ( + 30 ) ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-144
SELECT 87 * CAST( - + 39 AS SIGNED ) DIV - 63
----
53

skipif mysql # not compatible
query I rowsort label-144
SELECT 87 * CAST ( - + 39 AS INTEGER ) / - 63
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-145
SELECT CASE 60 WHEN 27 - + 65 + + CAST( NULL AS SIGNED ) / MIN( 20 ) + 77 + + + 88 - CASE 8 WHEN + COUNT( - 56 ) THEN + + 97 WHEN - 87 + 47 THEN - NULLIF ( + COUNT( * ), 79 ) END + - 42 * 82 * - COUNT( * ) * + ( 7 * ( - 98 * + 31 ) - + ( - 20 ) * - 51 ) THEN NULL WHEN 28 THEN + 82 ELSE NULL END + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-145
SELECT CASE 60 WHEN 27 - + 65 + + CAST ( NULL AS INTEGER ) / MIN ( 20 ) + 77 + + + 88 - CASE 8 WHEN + COUNT ( - 56 ) THEN + + 97 WHEN - 87 + 47 THEN - NULLIF ( + COUNT ( * ), 79 ) END + - 42 * 82 * - COUNT ( * ) * + ( 7 * ( - 98 * + 31 ) - + ( - 20 ) * - 51 ) THEN NULL WHEN 28 THEN + 82 ELSE NULL END + - 50 AS col1
----
NULL

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

query I rowsort
SELECT + 84 + + 5 + + + 44
----
133

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

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

query I rowsort
SELECT 97 + 51 AS col0
----
148

query II rowsort
SELECT ( + 22 ), 52 + - - 37 AS col2
----
22
89

onlyif mysql # aggregate syntax: 
query II rowsort label-151
SELECT + 40 * - - 21 + + COUNT( * ) - - 24 AS col2, 15 AS col2
----
865
15

skipif mysql # not compatible
query II rowsort label-151
SELECT + 40 * - - 21 + + COUNT ( * ) - - 24 AS col2, 15 AS col2
----
865
15

query I rowsort
SELECT 46 * + - 98
----
-4508

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT ALL - 81 * COUNT( * ) col2, COUNT( * ) - - 62 AS col1
----
-81
63

skipif mysql # not compatible
query II rowsort label-153
SELECT ALL - 81 * COUNT ( * ) col2, COUNT ( * ) - - 62 AS col1
----
-81
63

query II rowsort
SELECT 35 + + - 92, + 82 + ( + - 90 ) AS col2
----
-57
-8

query I rowsort
SELECT DISTINCT + - 32 * - 11 + + 2 AS col1
----
354

query I rowsort
SELECT ALL 35 + 99
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL - 37 * - + NULLIF ( + 51, ( + COUNT( * ) ) )
----
1887

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL - 37 * - + NULLIF ( + 51, ( + COUNT ( * ) ) )
----
1887

query I rowsort
SELECT DISTINCT + 65 + + - ( 85 )
----
-20

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

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

query I rowsort
SELECT 80 - - ( + 55 )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL 69 + COUNT( * ) * - ( + 8 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL 69 + COUNT ( * ) * - ( + 8 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT 2 * + 27 * - CASE + - ( - - 94 ) WHEN - ( - 57 ) * - + MIN( DISTINCT - 4 ) + + 55 THEN NULL WHEN + 45 / + 9 * SUM( DISTINCT + - 44 ) + CASE COUNT( * ) WHEN 59 * 98 THEN + 74 / - 2 END - - 45 + COUNT( * ) THEN 52 ELSE NULL END + - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT 2 * + 27 * - CASE + - ( - - 94 ) WHEN - ( - 57 ) * - + MIN ( DISTINCT - 4 ) + + 55 THEN NULL WHEN + 45 / + 9 * SUM ( DISTINCT + - 44 ) + CASE COUNT ( * ) WHEN 59 * 98 THEN + 74 / - 2 END - - 45 + COUNT ( * ) THEN 52 ELSE NULL END + - 35 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT ALL CAST( + ( + + 72 ) AS SIGNED ) * - 37
----
-2664

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL CAST ( + ( + + 72 ) AS INTEGER ) * - 37
----
-2664

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

skipif mysql # not compatible
query I rowsort label-165
SELECT - 69 * + + COUNT ( * ) - + COUNT ( * ) + 47 AS col2
----
-23

query II rowsort
SELECT ALL 8 AS col0, 97 * 48 * - 6 - - 66 AS col1
----
8
-27870

query I rowsort
SELECT ALL 27 * + 54 AS col1
----
1458

query I rowsort
SELECT + 68 + + 3 AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT + 73 DIV 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-169
SELECT + 73 / 28 AS col0
----
2

query I rowsort
SELECT + + 98 * - 66
----
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-171
SELECT + 93 - - CAST( 95 AS SIGNED ) AS col1
----
188

skipif mysql # not compatible
query I rowsort label-171
SELECT + 93 - - CAST ( 95 AS INTEGER ) AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT CASE 88 WHEN - COUNT( * ) * 0 * - 60 + CASE 86 WHEN - ( + + NULLIF ( + ( + 87 ), - MIN( ALL - ( + 21 ) ) * + - 14 * ( + 13 ) + NULLIF ( 35, + 28 ) * 20 ) ) + 72 THEN NULL WHEN + AVG ( 67 ) + 26 THEN NULL ELSE 67 + - COUNT( * ) END THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT CASE 88 WHEN - COUNT ( * ) * 0 * - 60 + CASE 86 WHEN - ( + + NULLIF ( + ( + 87 ), - MIN ( ALL - ( + 21 ) ) * + - 14 * ( + 13 ) + NULLIF ( 35, + 28 ) * 20 ) ) + 72 THEN NULL WHEN + AVG ( 67 ) + 26 THEN NULL ELSE 67 + - COUNT ( * ) END THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT + + 48 DIV 7
----
6

skipif mysql # not compatible
query I rowsort label-173
SELECT + + 48 / 7
----
6

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

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL - CAST ( NULL AS REAL ) / + ( ( - 86 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + - MAX( ALL - + 10 ) + + 33
----
43

skipif mysql # not compatible
query I rowsort label-175
SELECT + - MAX ( ALL - + 10 ) + + 33
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-176
SELECT ALL + + 84 * + - COUNT( * ) * - - COALESCE ( + 37, + 14 ) * - NULLIF ( CASE + + COUNT( * ) WHEN 54 THEN NULL ELSE + 91 + + - 60 * - 23 END, ( + CAST( + 96 AS DECIMAL ) ) ) * + 14 col2
----
64006152

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + + 84 * + - COUNT ( * ) * - - COALESCE ( + 37, + 14 ) * - NULLIF ( CASE + + COUNT ( * ) WHEN 54 THEN NULL ELSE + 91 + + - 60 * - 23 END, ( + CAST ( + 96 AS REAL ) ) ) * + 14 col2
----
64006152

query II rowsort
SELECT ALL 14 AS col0, 10
----
14
10

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - SUM( DISTINCT - 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-178
SELECT - SUM ( DISTINCT - 25 ) AS col1
----
25

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

query I rowsort
SELECT + - ( + 74 ) - ( + - 12 )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-181
SELECT - COUNT( * ), + 83 + + COUNT( * ) + + + 81 + 77 + COUNT( * ) AS col2
----
-1
243

skipif mysql # not compatible
query II rowsort label-181
SELECT - COUNT ( * ), + 83 + + COUNT ( * ) + + + 81 + 77 + COUNT ( * ) AS col2
----
-1
243

query I rowsort
SELECT ALL - 47 * - 31 + + 62 * - 39 AS col2
----
-961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT CAST( - + 16 AS SIGNED ) * + 93 + - 15 + 57
----
-1446

skipif mysql # not compatible
query I rowsort label-183
SELECT CAST ( - + 16 AS INTEGER ) * + 93 + - 15 + 57
----
-1446

query I rowsort
SELECT ALL + ( - 15 ) col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT + 73 AS col0, + 45 + + COUNT( * ) AS col1
----
73
46

skipif mysql # not compatible
query II rowsort label-185
SELECT + 73 AS col0, + 45 + + COUNT ( * ) AS col1
----
73
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-186
SELECT ALL CAST( NULL AS DECIMAL ) * - 23 + 1 + - + COALESCE ( - 12, - 82, - 82 * - 18 * - 33 ) - + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL CAST ( NULL AS REAL ) * - 23 + 1 + - + COALESCE ( - 12, - 82, - 82 * - 18 * - 33 ) - + 74 AS col1
----
NULL

query I rowsort
SELECT ( ( - - 71 ) ) * - + 98 + + - 64 * + 26 + - ( - + 69 )
----
-8553

query I rowsort
SELECT - 87 - - - ( + + 8 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT NULLIF ( + 56, COUNT( * ) * + - 45 + - ( SUM( - - 81 ) ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-189
SELECT NULLIF ( + 56, COUNT ( * ) * + - 45 + - ( SUM ( - - 81 ) ) ) AS col0
----
56

query I rowsort
SELECT + 47 * 20 + - - 57 col2
----
997

query I rowsort
SELECT - 64 - 8 * - - 70 + + 58 AS col2
----
-566

query II rowsort
SELECT DISTINCT - 88 * + 76 AS col2, 92 + + 40 * - 87
----
-6688
-3388

query I rowsort
SELECT NULLIF ( + - 27, 16 )
----
-27

query I rowsort
SELECT - 51 + + 1 * + 71
----
20

query I rowsort
SELECT ALL - 6 * - 66 * - 58
----
-22968

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL + 43 * - 40 * + + ( - COUNT( * ) ) * + 3 AS col2
----
5160

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL + 43 * - 40 * + + ( - COUNT ( * ) ) * + 3 AS col2
----
5160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT + 97 * SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT + 97 * SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT - 9 + - 2 * + 54 * - 47 col0, 28 + - - 45 + - ( + 13 ) + + - 42 + 71 + + 20 + 19 + 76 + + 71 * - 65 * + 85
----
5067
-392071

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-199
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 23 * 20
----
NULL
460

skipif mysql # not compatible
query II rowsort label-199
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 23 * 20
----
NULL
460

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT SUM( DISTINCT 87 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-202
SELECT SUM ( DISTINCT 87 ) col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT + - ( - CASE - SUM( - ( 58 ) ) WHEN + 96 * - AVG ( ALL + ( + CAST( + - 42 AS SIGNED ) ) ) + 92 THEN 19 + - - 67 END ) * - 94 + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT + - ( - CASE - SUM ( - ( 58 ) ) WHEN + 96 * - AVG ( ALL + ( + CAST ( + - 42 AS INTEGER ) ) ) + 92 THEN 19 + - - 67 END ) * - 94 + - 90 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-204
SELECT ALL 56 * 71 AS col1, + 97 / - CAST( NULL AS SIGNED ) + + ( - 49 ) + 33 * + + 40
----
3976
NULL

skipif mysql # not compatible
query II rowsort label-204
SELECT ALL 56 * 71 AS col1, + 97 / - CAST ( NULL AS INTEGER ) + + ( - 49 ) + 33 * + + 40
----
3976
NULL

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

skipif mysql # not compatible
query I rowsort label-205
SELECT MIN ( ALL - 57 )
----
-57

query I rowsort
SELECT + 39 + + + 99 AS col1
----
138

query II rowsort
SELECT 95 AS col0, 35
----
95
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT ALL - 80 * - - COUNT( - 11 ) - - 39 DIV + - NULLIF ( 27, - 72 ) DIV - COUNT( * ) + + 76
----
-3

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - 80 * - - COUNT ( - 11 ) - - 39 / + - NULLIF ( 27, - 72 ) / - COUNT ( * ) + + 76
----
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT + 80 DIV - 42 + + 30 col0
----
29

skipif mysql # not compatible
query I rowsort label-210
SELECT + 80 / - 42 + + 30 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT MAX( ALL - ( - - 82 ) ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT MAX ( ALL - ( - - 82 ) ) col2
----
-82

query II rowsort
SELECT ALL + ( - 82 ), 94 AS col2
----
-82
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-213
SELECT + - 45 + - + 24 * ( - MAX( ALL - 15 ) ) DIV + 83 + - 63 * 79 * - - 47 + + 72 + - + 55 * + + 69 AS col0, + 7 col1
----
-237691
7

skipif mysql # not compatible
query II rowsort label-213
SELECT + - 45 + - + 24 * ( - MAX ( ALL - 15 ) ) / + 83 + - 63 * 79 * - - 47 + + 72 + - + 55 * + + 69 AS col0, + 7 col1
----
-237691
7

query I rowsort
SELECT DISTINCT 81 + + 20
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT + CASE 5 WHEN - 66 THEN NULL ELSE + ( - 6 ) END + + COUNT( * ) + + + 67 + CAST( NULL AS SIGNED ) + + CASE + - COUNT( * ) WHEN + ( - - 62 ) THEN + CAST( NULL AS SIGNED ) ELSE + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT + CASE 5 WHEN - 66 THEN NULL ELSE + ( - 6 ) END + + COUNT ( * ) + + + 67 + CAST ( NULL AS INTEGER ) + + CASE + - COUNT ( * ) WHEN + ( - - 62 ) THEN + CAST ( NULL AS INTEGER ) ELSE + 95 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-216
SELECT DISTINCT - COUNT( * ) DIV 55 + - + MAX( DISTINCT + + 43 ) + - 99 * - - 22
----
-2221

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT - COUNT ( * ) / 55 + - + MAX ( DISTINCT + + 43 ) + - 99 * - - 22
----
-2221

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-217
SELECT ALL + 71 DIV COUNT( 46 ) + 31 * - 33 + - 90 * - 57, 23 AS col1
----
4178
23

skipif mysql # not compatible
query II rowsort label-217
SELECT ALL + 71 / COUNT ( 46 ) + 31 * - 33 + - 90 * - 57, 23 AS col1
----
4178
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-218
SELECT ALL - 40 * 96 + - CAST( - - COALESCE ( + 22, + 22 ) AS SIGNED ) + 49 + + 6 * + 54
----
-3489

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - 40 * 96 + - CAST ( - - COALESCE ( + 22, + 22 ) AS INTEGER ) + 49 + + 6 * + 54
----
-3489

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT ALL 98 DIV - + 92 + + + 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL 98 / - + 92 + + + 5 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT DISTINCT COALESCE ( + - 78, - NULLIF ( + SUM( ALL 26 ), - 30 ), + - COUNT( * ) * - CAST( NULL AS SIGNED ) ) / + - COUNT( * ) * + 64 + CASE - 54 WHEN 85 + - 63 THEN + 69 * - 71 + - 2 + COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT COALESCE ( + - 78, - NULLIF ( + SUM ( ALL 26 ), - 30 ), + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) / + - COUNT ( * ) * + 64 + CASE - 54 WHEN 85 + - 63 THEN + 69 * - 71 + - 2 + COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-221
SELECT CAST( - 91 AS SIGNED ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-221
SELECT CAST ( - 91 AS INTEGER ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-222
SELECT ALL + COUNT( DISTINCT - 3 ) AS col2, 12 * 76
----
1
912

skipif mysql # not compatible
query II rowsort label-222
SELECT ALL + COUNT ( DISTINCT - 3 ) AS col2, 12 * 76
----
1
912

query I rowsort
SELECT ALL 52 * - 60 AS col0
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - 64 + - SUM( + 2 ) * + 63 col0
----
-190

skipif mysql # not compatible
query I rowsort label-224
SELECT - 64 + - SUM ( + 2 ) * + 63 col0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT + SUM( + 71 ) * 43
----
3053

skipif mysql # not compatible
query I rowsort label-225
SELECT + SUM ( + 71 ) * 43
----
3053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-226
SELECT + CAST( COUNT( ALL + + ( - 95 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-226
SELECT + CAST ( COUNT ( ALL + + ( - 95 ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 16 * 25
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-228
SELECT COUNT( * ) DIV - 3, - 15 + - + COUNT( * ) + - 28 AS col0
----
0
-44

skipif mysql # not compatible
query II rowsort label-228
SELECT COUNT ( * ) / - 3, - 15 + - + COUNT ( * ) + - 28 AS col0
----
0
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL NULLIF ( 66, - - ( 63 ) * + 85 ) - + 64 * + - COUNT( * ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL NULLIF ( 66, - - ( 63 ) * + 85 ) - + 64 * + - COUNT ( * ) AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-230
SELECT DISTINCT - CAST( - 94 AS SIGNED ) DIV + + NULLIF ( - ( COUNT( * ) ), - - COUNT( * ) ) + + 82
----
-12

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT - CAST ( - 94 AS INTEGER ) / + + NULLIF ( - ( COUNT ( * ) ), - - COUNT ( * ) ) + + 82
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT - COUNT( * ) - + 76 + - + 38 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - COUNT ( * ) - + 76 + - + 38 AS col0
----
-115

query I rowsort
SELECT NULLIF ( + ( 28 ), - 34 ) * - 46
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT DISTINCT + SUM( - 28 ) * + 8
----
-224

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT + SUM ( - 28 ) * + 8
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT 24 + - + COUNT( * ) - 84 + - 81 + + 46
----
-96

skipif mysql # not compatible
query I rowsort label-234
SELECT 24 + - + COUNT ( * ) - 84 + - 81 + + 46
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT 30 DIV - - CASE + + 12 WHEN - COALESCE ( + + MAX( - + ( - + 70 ) ), + 27 ) + COALESCE ( 25, 73 * - ( - 86 ) + - 32 DIV + 36 * 7 * 32, 46 + 36 ) THEN NULL WHEN - 24 * 3 THEN + ( + 80 ) * 78 + AVG ( DISTINCT 67 ) DIV 11 WHEN - 1 + - 57 THEN 71 ELSE 1 END AS col0
----
30

skipif mysql # not compatible
query I rowsort label-235
SELECT 30 / - - CASE + + 12 WHEN - COALESCE ( + + MAX ( - + ( - + 70 ) ), + 27 ) + COALESCE ( 25, 73 * - ( - 86 ) + - 32 / + 36 * 7 * 32, 46 + 36 ) THEN NULL WHEN - 24 * 3 THEN + ( + 80 ) * 78 + AVG ( DISTINCT 67 ) / 11 WHEN - 1 + - 57 THEN 71 ELSE 1 END AS col0
----
30

query I rowsort
SELECT 65 * + - 58 AS col0
----
-3770

query I rowsort
SELECT ALL - 85 * 26
----
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT - + 76 * + NULLIF ( 64, + - 58 ) + - - COUNT( * ) AS col0
----
-4863

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT - + 76 * + NULLIF ( 64, + - 58 ) + - - COUNT ( * ) AS col0
----
-4863

query I rowsort
SELECT 72 * - - CASE 74 WHEN + - 73 - + + 84 THEN + 49 WHEN + 4 * 14 * 40 * + 9 THEN NULL ELSE NULL END + - 35 + + - 79 * - 29 col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + + ( 37 ), + - NULLIF ( 42, - 89 ) ) + + 8 AS col2
----
45

query II rowsort
SELECT 21 + - 89 AS col0, ( + 80 ) + - 88
----
-68
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-242
SELECT 51 * 90 + + CASE - 42 WHEN + COUNT( * ) THEN NULL WHEN + 21 THEN - + CAST( NULL AS SIGNED ) ELSE NULL END AS col0, 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-242
SELECT 51 * 90 + + CASE - 42 WHEN + COUNT ( * ) THEN NULL WHEN + 21 THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0, 59
----
NULL
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-244
SELECT CAST( NULL AS SIGNED ) - + 87 * - COUNT( * ), - COALESCE ( + + 17, - - 96 ) * + + 81 AS col1
----
NULL
-1377

skipif mysql # not compatible
query II rowsort label-244
SELECT CAST ( NULL AS INTEGER ) - + 87 * - COUNT ( * ), - COALESCE ( + + 17, - - 96 ) * + + 81 AS col1
----
NULL
-1377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT ALL 70 + + CAST( 83 AS SIGNED ) * + 37 AS col2
----
3141

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL 70 + + CAST ( 83 AS INTEGER ) * + 37 AS col2
----
3141

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

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

query I rowsort
SELECT DISTINCT - - 96 + 78
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ALL + + COUNT( ALL 54 ) + + 21 * + 80 AS col0
----
1681

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + + COUNT ( ALL 54 ) + + 21 * + 80 AS col0
----
1681

onlyif mysql # aggregate syntax: 
query II rowsort label-249
SELECT + SUM( DISTINCT 37 ) col1, 14 AS col1
----
37
14

skipif mysql # not compatible
query II rowsort label-249
SELECT + SUM ( DISTINCT 37 ) col1, 14 AS col1
----
37
14

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL - 53 + + MIN( + + 93 )
----
40

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL - 53 + + MIN ( + + 93 )
----
40

query I rowsort
SELECT 97 * - + 71 + 24
----
-6863

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT NULLIF ( 34, - 48 * 96 + - - 93 * - SUM( - - 37 ) ) * + 54 AS col2, + ( - MAX( 74 ) ) * + + 46 + - 2 * 81
----
1836
-3566

skipif mysql # not compatible
query II rowsort label-252
SELECT NULLIF ( 34, - 48 * 96 + - - 93 * - SUM ( - - 37 ) ) * + 54 AS col2, + ( - MAX ( 74 ) ) * + + 46 + - 2 * 81
----
1836
-3566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-253
SELECT + COUNT( * ) DIV 1 + ( + COUNT( * ) ) + - - 60 * 50
----
3002

skipif mysql # not compatible
query I rowsort label-253
SELECT + COUNT ( * ) / 1 + ( + COUNT ( * ) ) + - - 60 * 50
----
3002

query I rowsort
SELECT 5 - 1 * + 84 * + NULLIF ( 81, 6 ) AS col2
----
-6799

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-255
SELECT DISTINCT - 47 AS col1, CAST( NULL AS SIGNED ) / - + 30 AS col1
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-255
SELECT DISTINCT - 47 AS col1, CAST ( NULL AS INTEGER ) / - + 30 AS col1
----
-47
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT CASE + NULLIF ( - + 81, + 73 ) WHEN 82 THEN + + COUNT( * ) - ( + - 98 ) WHEN - - 75 THEN NULL END / + - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT CASE + NULLIF ( - + 81, + 73 ) WHEN 82 THEN + + COUNT ( * ) - ( + - 98 ) WHEN - - 75 THEN NULL END / + - 1 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT DISTINCT CASE + 67 WHEN 98 THEN + 44 * + + 69 * COUNT( * ) - + + 19 WHEN + 0 + 20 THEN - - 45 + + 39 * - 25 * 95 ELSE + 18 END DIV COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT CASE + 67 WHEN 98 THEN + 44 * + + 69 * COUNT ( * ) - + + 19 WHEN + 0 + 20 THEN - - 45 + + 39 * - 25 * 95 ELSE + 18 END / COUNT ( * ) AS col2
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-259
SELECT CAST( NULL AS DECIMAL ) * + 55 / + 91 / + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-259
SELECT CAST ( NULL AS REAL ) * + 55 / + 91 / + + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-260
SELECT + 95, 38 * - - CAST( 69 AS SIGNED ) AS col0
----
95
2622

skipif mysql # not compatible
query II rowsort label-260
SELECT + 95, 38 * - - CAST ( 69 AS INTEGER ) AS col0
----
95
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT 53 * - 78 + ( + 80 ) + + COUNT( * ) + - + 89 AS col2
----
-4142

skipif mysql # not compatible
query I rowsort label-261
SELECT 53 * - 78 + ( + 80 ) + + COUNT ( * ) + - + 89 AS col2
----
-4142

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT COUNT( * ) * - + SUM( - - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-262
SELECT COUNT ( * ) * - + SUM ( - - 49 )
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-263
SELECT 89 * 66 + - ( - 9 ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT 89 * 66 + - ( - 9 ) * CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

query II rowsort
SELECT 12, + 83 AS col1
----
12
83

query I rowsort
SELECT NULLIF ( 98, - 80 / 19 ) + 54 + - 6 col0
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-267
SELECT ALL COALESCE ( + 30, - CAST( NULL AS SIGNED ), + + 38 ) * - - 11
----
330

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL COALESCE ( + 30, - CAST ( NULL AS INTEGER ), + + 38 ) * - - 11
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT + MAX( DISTINCT + 88 ) + - - 39
----
127

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + MAX ( DISTINCT + 88 ) + - - 39
----
127

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

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

query I rowsort
SELECT DISTINCT + 58 + 0 AS col2
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT + 98 + - 27 DIV + 80
----
98

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT + 98 + - 27 / + 80
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT - 28 * - MAX( + 58 )
----
1624

skipif mysql # not compatible
query I rowsort label-273
SELECT - 28 * - MAX ( + 58 )
----
1624

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-274
SELECT DISTINCT + 71, - 50 DIV COUNT( * ) AS col1
----
71
-50

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

query I rowsort
SELECT + 51 + ( 86 ) + + 87 * - - 76 * - 52 + + 39 AS col1
----
-343648

query I rowsort
SELECT ALL + 62 + - 54 AS col2
----
8

query I rowsort
SELECT ALL - 4 + 81 AS col0
----
77

query I rowsort
SELECT ALL 4 + + 21
----
25

query I rowsort
SELECT 66 + - + 85 * - 76
----
6526

query II rowsort
SELECT + 24 AS col0, 28 + - 57 AS col0
----
24
-29

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

query I rowsort
SELECT COALESCE ( + 17, - + 2 )
----
17

query I rowsort
SELECT DISTINCT 79 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL - - 18 - + - CASE + - COUNT( * ) WHEN - 60 * MIN( - 53 ) THEN + 53 WHEN 10 THEN NULL ELSE NULL END + + 89 + - - 19 * ( 85 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - - 18 - + - CASE + - COUNT ( * ) WHEN - 60 * MIN ( - 53 ) THEN + 53 WHEN 10 THEN NULL ELSE NULL END + + 89 + - - 19 * ( 85 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT COUNT( * ) + 56
----
57

skipif mysql # not compatible
query I rowsort label-285
SELECT COUNT ( * ) + 56
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-286
SELECT - 29 + + - 7 + - CAST( + 29 AS SIGNED ) - - 77 DIV 3
----
-40

skipif mysql # not compatible
query I rowsort label-286
SELECT - 29 + + - 7 + - CAST ( + 29 AS INTEGER ) - - 77 / 3
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT ALL CAST( + ( + - ( - + 33 ) ) AS SIGNED ) * CAST( - + 71 AS SIGNED )
----
-2343

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL CAST ( + ( + - ( - + 33 ) ) AS INTEGER ) * CAST ( - + 71 AS INTEGER )
----
-2343

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT COALESCE ( + - 94, - + 67 * - - 85 * - 1 + + 37, + 83 * - - 66 DIV + 90 DIV 64 + + 37 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-288
SELECT COALESCE ( + - 94, - + 67 * - - 85 * - 1 + + 37, + 83 * - - 66 / + 90 / 64 + + 37 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL + 84 * + + 18 * 30 * + ( + 68 ) * - + 45 * - COUNT( * ) + - - 85
----
138801685

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + 84 * + + 18 * 30 * + ( + 68 ) * - + 45 * - COUNT ( * ) + - - 85
----
138801685

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

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

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

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

skipif mysql # not compatible
query I rowsort label-292
SELECT + COUNT ( DISTINCT - + 10 ) * - 19 / - 65
----
0

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

skipif mysql # not compatible
query I rowsort label-293
SELECT - 69 * COUNT ( * )
----
-69

query I rowsort
SELECT + 51 + - 68 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT NULLIF ( - COUNT( - 64 ), + 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-295
SELECT NULLIF ( - COUNT ( - 64 ), + 67 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT + CASE + 67 WHEN - 54 + 54 / 99 THEN + CASE - COUNT( * ) WHEN - - COUNT( * ) * - - COUNT( * ) - 82 * 77 / + + 7 THEN - 74 ELSE 80 END - + 20 * 20 + + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-296
SELECT + CASE + 67 WHEN - 54 + 54 / 99 THEN + CASE - COUNT ( * ) WHEN - - COUNT ( * ) * - - COUNT ( * ) - 82 * 77 / + + 7 THEN - 74 ELSE 80 END - + 20 * 20 + + 61 END
----
NULL

query I rowsort
SELECT + 27 * - 21 * 55
----
-31185

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT DISTINCT + 60 * + 92 + + ( - - COUNT( DISTINCT + 63 ) ) + - + ( 93 ) * - 86
----
13519

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT + 60 * + 92 + + ( - - COUNT ( DISTINCT + 63 ) ) + - + ( 93 ) * - 86
----
13519

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

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

query I rowsort
SELECT ALL + 27 * - 58 + + 68 col2
----
-1498

query I rowsort
SELECT ALL + COALESCE ( + 70, + 71 ) * + 21 + + + 68
----
1538

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT + - COUNT( * ) * + + NULLIF ( - 44, - 16 + - 18 )
----
44

skipif mysql # not compatible
query I rowsort label-302
SELECT + - COUNT ( * ) * + + NULLIF ( - 44, - 16 + - 18 )
----
44

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

skipif mysql # not compatible
query I rowsort label-303
SELECT + COUNT ( ALL 79 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT - 54 * COUNT( ALL - - 0 ) + - MIN( DISTINCT - - 12 ) DIV 11 * - 75 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-304
SELECT - 54 * COUNT ( ALL - - 0 ) + - MIN ( DISTINCT - - 12 ) / 11 * - 75 AS col0
----
21

query I rowsort
SELECT DISTINCT - 45 * + 56 + + - 17 col0
----
-2537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-306
SELECT ALL - ( + + 88 ) * + CASE - COUNT( * ) WHEN + + 77 * + 20 * - - 73 + + - 46 THEN + 8 * + COUNT( * ) - + COUNT( * ) + + CAST( NULL AS SIGNED ) + - - 5 * - SUM( DISTINCT + 48 ) * + - 8 + 88 END * + 80 - + CAST( NULL AS SIGNED ) + 34 + - 35 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL - ( + + 88 ) * + CASE - COUNT ( * ) WHEN + + 77 * + 20 * - - 73 + + - 46 THEN + 8 * + COUNT ( * ) - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - 5 * - SUM ( DISTINCT + 48 ) * + - 8 + 88 END * + 80 - + CAST ( NULL AS INTEGER ) + 34 + - 35 * 46
----
NULL

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

skipif mysql # not compatible
query I rowsort label-307
SELECT - NULLIF ( COUNT ( * ), + + 24 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT + + 88 - - - NULLIF ( - CASE 54 WHEN 86 * + - 68 + 19 THEN NULL WHEN 33 + - COUNT( * ) * - 62 + + + 8 + 35 * 71 THEN - - CAST( NULL AS SIGNED ) WHEN + COUNT( CAST( NULL AS SIGNED ) ) * - 36 THEN + 90 - + 24 / + 12 END, - COUNT( + 39 ) * MAX( 73 * 75 ) ) + - 29 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-308
SELECT + + 88 - - - NULLIF ( - CASE 54 WHEN 86 * + - 68 + 19 THEN NULL WHEN 33 + - COUNT ( * ) * - 62 + + + 8 + 35 * 71 THEN - - CAST ( NULL AS INTEGER ) WHEN + COUNT ( CAST ( NULL AS INTEGER ) ) * - 36 THEN + 90 - + 24 / + 12 END, - COUNT ( + 39 ) * MAX ( 73 * 75 ) ) + - 29 * - 90
----
NULL

query I rowsort
SELECT DISTINCT 91 + - 21 * - 52 * - + 50 + - 53 AS col1
----
-54562

query I rowsort
SELECT ALL - ( 84 ) * + 53 AS col1
----
-4452

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT - COALESCE ( - 42, 94 * - COALESCE ( 56, - - 41, - - 67 + + + 82 ), + 23 + - - SUM( - ( + 94 ) ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT - COALESCE ( - 42, 94 * - COALESCE ( 56, - - 41, - - 67 + + + 82 ), + 23 + - - SUM ( - ( + 94 ) ) ) AS col0
----
42

query I rowsort
SELECT DISTINCT + - ( + 0 ) - 4
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-313
SELECT + 92 + 20 col2, 79 + + COUNT( DISTINCT + 62 ) + - - MAX( DISTINCT 61 ) + + 47 AS col0
----
112
188

skipif mysql # not compatible
query II rowsort label-313
SELECT + 92 + 20 col2, 79 + + COUNT ( DISTINCT + 62 ) + - - MAX ( DISTINCT 61 ) + + 47 AS col0
----
112
188

query I rowsort
SELECT - 76 - + 51 AS col1
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-315
SELECT + COALESCE ( + - COALESCE ( + 66, MAX( ALL - - 67 ), 29 ), CAST( - - COUNT( * ) AS SIGNED ) DIV + 92 + COUNT( * ) DIV 55 * - - COUNT( * ) + - + 37, - + ( + ( + + 55 ) ) + 19, + + 89 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-315
SELECT + COALESCE ( + - COALESCE ( + 66, MAX ( ALL - - 67 ), 29 ), CAST ( - - COUNT ( * ) AS INTEGER ) / + 92 + COUNT ( * ) / 55 * - - COUNT ( * ) + - + 37, - + ( + ( + + 55 ) ) + 19, + + 89 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL - + COALESCE ( + 82, CASE - 7 WHEN 14 THEN + + MAX( + - 53 ) * 15 END ) * + 21
----
-1722

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - + COALESCE ( + 82, CASE - 7 WHEN 14 THEN + + MAX ( + - 53 ) * 15 END ) * + 21
----
-1722

query I rowsort
SELECT + + 87 * - 71 * + 32 AS col1
----
-197664

query I rowsort
SELECT ALL + 88 * + 13 AS col1
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT ALL MIN( + + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL MIN ( + + 64 )
----
64

query I rowsort
SELECT ALL 93 * + COALESCE ( - + 17, - 70 )
----
-1581

query I rowsort
SELECT - 5 * - 77
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT DISTINCT + CASE - - 33 WHEN - + 44 * - - 93 + - 75 THEN NULL WHEN + - 55 + - 7 THEN + COUNT( * ) ELSE NULL END * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + CASE - - 33 WHEN - + 44 * - - 93 + - 75 THEN NULL WHEN + - 55 + - 7 THEN + COUNT ( * ) ELSE NULL END * + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-323
SELECT DISTINCT COALESCE ( 52, - 48 + CAST( - - 15 AS SIGNED ) + + - COUNT( - 43 ) + 33 ) AS col2, 38 * CASE - + AVG ( - - 16 ) WHEN 81 THEN COUNT( * ) - - 47 + - + 95 ELSE - 23 END + - - 47 + 20 DIV - 84 * 6 AS col0
----
52
-827

skipif mysql # not compatible
query II rowsort label-323
SELECT DISTINCT COALESCE ( 52, - 48 + CAST ( - - 15 AS INTEGER ) + + - COUNT ( - 43 ) + 33 ) AS col2, 38 * CASE - + AVG ( - - 16 ) WHEN 81 THEN COUNT ( * ) - - 47 + - + 95 ELSE - 23 END + - - 47 + 20 / - 84 * 6 AS col0
----
52
-827

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT ALL + ( COUNT( * ) ) * 99 AS col1, CASE - 52 WHEN - - 97 THEN NULL WHEN - 11 THEN NULL ELSE 82 END * 78 * - COUNT( * )
----
99
-6396

skipif mysql # not compatible
query II rowsort label-324
SELECT ALL + ( COUNT ( * ) ) * 99 AS col1, CASE - 52 WHEN - - 97 THEN NULL WHEN - 11 THEN NULL ELSE 82 END * 78 * - COUNT ( * )
----
99
-6396

query I rowsort
SELECT + 93 + + - COALESCE ( 38, - 98 + - - 96 )
----
55

onlyif mysql # aggregate syntax: 
query III rowsort label-326
SELECT 29 AS col0, - CASE WHEN 12 = - COUNT( DISTINCT + 23 ) THEN + 20 + + - 48 - ( - COUNT( * ) ) / ( 31 ) * + COUNT( * ) END, - MAX( ALL + 50 ) AS col0
----
29
NULL
-50

skipif mysql # not compatible
query III rowsort label-326
SELECT 29 AS col0, - CASE WHEN 12 = - COUNT ( DISTINCT + 23 ) THEN + 20 + + - 48 - ( - COUNT ( * ) ) / ( 31 ) * + COUNT ( * ) END, - MAX ( ALL + 50 ) AS col0
----
29
NULL
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-327
SELECT - 55 DIV + - COUNT( - 73 ) + - + COUNT( DISTINCT + 75 ) AS col2, - ( COUNT( * ) ) * + - 32 + - - 91 - 19 AS col1
----
54
104

skipif mysql # not compatible
query II rowsort label-327
SELECT - 55 / + - COUNT ( - 73 ) + - + COUNT ( DISTINCT + 75 ) AS col2, - ( COUNT ( * ) ) * + - 32 + - - 91 - 19 AS col1
----
54
104

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT + MIN( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-328
SELECT + MIN ( DISTINCT - 45 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT - 93 DIV 34 + + 63
----
61

skipif mysql # not compatible
query I rowsort label-329
SELECT - 93 / 34 + + 63
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT + COALESCE ( + 64, - COUNT( * ) ) col0, - 57 * + COUNT( * )
----
64
-57

skipif mysql # not compatible
query II rowsort label-330
SELECT + COALESCE ( + 64, - COUNT ( * ) ) col0, - 57 * + COUNT ( * )
----
64
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-331
SELECT DISTINCT + COALESCE ( + 98, + NULLIF ( NULLIF ( + - CASE - 87 WHEN 17 - - + ( - 39 ) * - + COUNT( * ) THEN + + ( + - 9 ) - - - 81 + + CASE 28 WHEN - - 73 THEN + 13 WHEN - + 95 DIV - COUNT( * ) * - 48 + - 74 THEN + COUNT( * ) DIV COALESCE ( 68, - 34 * COUNT( * ) + SUM( 11 - + 53 ), 26 ) ELSE 73 * - 61 + COALESCE ( + COUNT( * ), ( - 62 ), + COUNT( * ) ) END END, 67 ), + 25 + 25 ) + - 90 )
----
98

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT + COALESCE ( + 98, + NULLIF ( NULLIF ( + - CASE - 87 WHEN 17 - - + ( - 39 ) * - + COUNT ( * ) THEN + + ( + - 9 ) - - - 81 + + CASE 28 WHEN - - 73 THEN + 13 WHEN - + 95 / - COUNT ( * ) * - 48 + - 74 THEN + COUNT ( * ) / COALESCE ( 68, - 34 * COUNT ( * ) + SUM ( 11 - + 53 ), 26 ) ELSE 73 * - 61 + COALESCE ( + COUNT ( * ), ( - 62 ), + COUNT ( * ) ) END END, 67 ), + 25 + 25 ) + - 90 )
----
98

query I rowsort
SELECT 90 * 33 + + 49
----
3019

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT ALL - 33 DIV 78 + 13 * + 11 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL - 33 / 78 + 13 * + 11 AS col1
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT + 11 DIV - COUNT( * ) + 40 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-334
SELECT + 11 / - COUNT ( * ) + 40 AS col1
----
29

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

skipif mysql # not compatible
query I rowsort label-335
SELECT + SUM ( - 82 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-336
SELECT ALL 29 DIV 5 + - + COUNT( * ) DIV + + CAST( 38 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL 29 / 5 + - + COUNT ( * ) / + + CAST ( 38 AS INTEGER ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - 79 + - NULLIF ( + + COUNT( * ), - 40 - 97 ) * + + 17 * - - 7 + + 7 * + - 28 AS col1
----
-394

skipif mysql # not compatible
query I rowsort label-337
SELECT - 79 + - NULLIF ( + + COUNT ( * ), - 40 - 97 ) * + + 17 * - - 7 + + 7 * + - 28 AS col1
----
-394

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-338
SELECT ( - - COUNT( * ) ) DIV + - 6 * 36 - 12 AS col2, 52 + + 54 col2
----
-12
106

skipif mysql # not compatible
query II rowsort label-338
SELECT ( - - COUNT ( * ) ) / + - 6 * 36 - 12 AS col2, 52 + + 54 col2
----
-12
106

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ( + COALESCE ( + - 97, - - 54 + + MAX( DISTINCT - 11 ) ) )
----
-97

skipif mysql # not compatible
query I rowsort label-339
SELECT ( + COALESCE ( + - 97, - - 54 + + MAX ( DISTINCT - 11 ) ) )
----
-97

query II rowsort
SELECT + - 78 + - ( - 35 ) AS col0, - 25 AS col2
----
-43
-25

query II rowsort
SELECT + - 57 AS col0, 94 * 71 AS col0
----
-57
6674

query I rowsort
SELECT ALL - CASE + 7 WHEN 87 + - 72 * - 1 THEN NULL WHEN - 10 + 22 * 64 + + 75 THEN NULL ELSE + - 72 END * + 24 + ( + - 5 ) AS col1
----
1723

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT - + 92 * 28 DIV - - ( 41 ) - 96 AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-343
SELECT - + 92 * 28 / - - ( 41 ) - 96 AS col0
----
-158

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

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT + 69 * 58 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - COUNT( - + 5 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-345
SELECT - COUNT ( - + 5 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 48 - + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 48 - + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT ALL MAX( DISTINCT 26 ) * + - 23 + + COUNT( + 72 ) - - 52 + - COUNT( * ) + + COUNT( * ) DIV + - 85 - - - 17 col1
----
-563

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL MAX ( DISTINCT 26 ) * + - 23 + + COUNT ( + 72 ) - - 52 + - COUNT ( * ) + + COUNT ( * ) / + - 85 - - - 17 col1
----
-563

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT + - 76 DIV + - 4 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-348
SELECT + - 76 / + - 4 AS col2
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT + + COUNT( * ) + CAST( + 55 AS SIGNED ) * - + CASE + 90 WHEN ( + + 57 ) THEN NULL WHEN + + 4 THEN COUNT( * ) * + 75 / 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT + + COUNT ( * ) + CAST ( + 55 AS INTEGER ) * - + CASE + 90 WHEN ( + + 57 ) THEN NULL WHEN + + 4 THEN COUNT ( * ) * + 75 / 98 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 96 * - 50 AS col1
----
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-352
SELECT - + CAST( + COALESCE ( - + 51, + 27 * - - 6 * - 58 + + 2 ) AS SIGNED ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-352
SELECT - + CAST ( + COALESCE ( - + 51, + 27 * - - 6 * - 58 + + 2 ) AS INTEGER ) AS col2
----
51

query I rowsort
SELECT ALL - 25 * - 49 - + - 5 AS col0
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT 75 + + - ( - COUNT( ( - + 55 ) ) ) + + 94 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-354
SELECT 75 + + - ( - COUNT ( ( - + 55 ) ) ) + + 94 AS col0
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-355
SELECT ALL 5 * + COALESCE ( + - 23, + + COUNT( DISTINCT 76 ) DIV 35 )
----
-115

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL 5 * + COALESCE ( + - 23, + + COUNT ( DISTINCT 76 ) / 35 )
----
-115

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

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

query I rowsort
SELECT 34 * + + 67 * - 48 * + 23
----
-2514912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-358
SELECT 40 + + + 42 DIV COUNT( DISTINCT + 21 ) * 29 - - 73 * 54 * + + 75 col2
----
296908

skipif mysql # not compatible
query I rowsort label-358
SELECT 40 + + + 42 / COUNT ( DISTINCT + 21 ) * 29 - - 73 * 54 * + + 75 col2
----
296908

query II rowsort
SELECT 71 AS col1, + 16 * - 59 - - 24 col1
----
71
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT 50 + - + 2 + - COUNT( * ) * - 9 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-360
SELECT 50 + - + 2 + - COUNT ( * ) * - 9 AS col0
----
57

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

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL COUNT ( * ) / 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT 24 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-362
SELECT 24 / 45 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-363
SELECT 59 + + + ( + - COUNT ( * ) ) - - COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-364
SELECT DISTINCT - 12 * MAX( ALL 90 ) DIV + 57 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT - 12 * MAX ( ALL 90 ) / + 57 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT DISTINCT MIN( ALL 73 ) + - 20
----
53

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT MIN ( ALL 73 ) + - 20
----
53

query I rowsort
SELECT ALL - 94 + + 57 + 43
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT 49 * + 95 * + 55 * - COUNT( * ) AS col2
----
-256025

skipif mysql # not compatible
query I rowsort label-367
SELECT 49 * + 95 * + 55 * - COUNT ( * ) AS col2
----
-256025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-368
SELECT ALL COUNT( * ) + - 80, - AVG ( + + CASE + - 43 WHEN + 52 THEN + ( 66 ) / CAST( - 65 AS DECIMAL ) * - 84 + + - 43 - 45 + + 46 END ) + ( + + 42 ) - + 12 * + 36 * + - 42 * - - 29 / COUNT( * ) * COALESCE ( + 86, - CAST( 57 AS SIGNED ) + 81, + 93 ) - + 70 AS col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-368
SELECT ALL COUNT ( * ) + - 80, - AVG ( + + CASE + - 43 WHEN + 52 THEN + ( 66 ) / CAST ( - 65 AS REAL ) * - 84 + + - 43 - 45 + + 46 END ) + ( + + 42 ) - + 12 * + 36 * + - 42 * - - 29 / COUNT ( * ) * COALESCE ( + 86, - CAST ( 57 AS INTEGER ) + 81, + 93 ) - + 70 AS col0
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT NULLIF ( - - COUNT( * ), 31 - 27 ) * + - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT NULLIF ( - - COUNT ( * ), 31 - 27 ) * + - 38 AS col1
----
-38

query I rowsort
SELECT ALL - 22 + 34
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT - COALESCE ( COUNT( * ), 47, 53 * + COUNT( ALL - 91 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - COALESCE ( COUNT ( * ), 47, 53 * + COUNT ( ALL - 91 ) ) AS col1
----
-1

query I rowsort
SELECT 75 * - + 22 col0
----
-1650

query I rowsort
SELECT 49 * + 11 * 76
----
40964

query I rowsort
SELECT ALL - 22 + + + 8 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-375
SELECT NULLIF ( - 74, + COUNT( ALL - 8 ) ), 89 - + ( - 64 ) col1
----
-74
153

skipif mysql # not compatible
query II rowsort label-375
SELECT NULLIF ( - 74, + COUNT ( ALL - 8 ) ), 89 - + ( - 64 ) col1
----
-74
153

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT DISTINCT + 99 - - - COUNT( + 88 )
----
98

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT + 99 - - - COUNT ( + 88 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-377
SELECT - COUNT( * ) col0, - 42
----
-1
-42

skipif mysql # not compatible
query II rowsort label-377
SELECT - COUNT ( * ) col0, - 42
----
-1
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT ALL + 66 - - COUNT( * ) - - CAST( NULL AS SIGNED ) + + SUM( ALL + - 9 ) + 78 + + CASE - 31 WHEN 70 THEN 78 END + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL + 66 - - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + + SUM ( ALL + - 9 ) + 78 + + CASE - 31 WHEN 70 THEN 78 END + + 24
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT + ( + - COALESCE ( + + 65, + 57 ) ) AS col0, MIN( 10 ) AS col2
----
-65
10

skipif mysql # not compatible
query II rowsort label-379
SELECT + ( + - COALESCE ( + + 65, + 57 ) ) AS col0, MIN ( 10 ) AS col2
----
-65
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-381
SELECT ALL - CASE CAST( + MIN( + CASE - 3 WHEN + 74 THEN - 20 END ) AS SIGNED ) WHEN + 72 - + 23 THEN ( - + 12 ) WHEN - + COUNT( * ) THEN NULL ELSE + 51 END - 64, - 79 AS col0
----
-115
-79

skipif mysql # not compatible
query II rowsort label-381
SELECT ALL - CASE CAST ( + MIN ( + CASE - 3 WHEN + 74 THEN - 20 END ) AS INTEGER ) WHEN + 72 - + 23 THEN ( - + 12 ) WHEN - + COUNT ( * ) THEN NULL ELSE + 51 END - 64, - 79 AS col0
----
-115
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-382
SELECT 41 * + CASE - - 33 WHEN - - 38 THEN 85 WHEN - + 92 THEN NULL END * - 23 + + + 70 - + 78 * + - 58 * - 82 - - CAST( + + 5 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT 41 * + CASE - - 33 WHEN - - 38 THEN 85 WHEN - + 92 THEN NULL END * - 23 + + + 70 - + 78 * + - 58 * - 82 - - CAST ( + + 5 AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-383
SELECT ALL - CAST( - - 22 AS SIGNED ) * 66 * - 86 * - 2 AS col2
----
-249744

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL - CAST ( - - 22 AS INTEGER ) * 66 * - 86 * - 2 AS col2
----
-249744

query II rowsort
SELECT ALL - 0 AS col1, + 35
----
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + 28 * + 54 + - + COUNT( * ) AS col0
----
1511

skipif mysql # not compatible
query I rowsort label-385
SELECT + 28 * + 54 + - + COUNT ( * ) AS col0
----
1511

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT 90 + COUNT( * ) - + 58
----
33

skipif mysql # not compatible
query I rowsort label-386
SELECT 90 + COUNT ( * ) - + 58
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-387
SELECT ALL - 25 * 22 * + CAST( - 93 AS SIGNED ) + 17
----
51167

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL - 25 * 22 * + CAST ( - 93 AS INTEGER ) + 17
----
51167

query I rowsort
SELECT 20 * - + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-389
SELECT + 7 * - + MIN( ( + + 40 ) ) - + + 79 * - 9 - COUNT( * ) + + COALESCE ( - - 85, - 84 ) + + 21 * - + 27 * - COUNT( * ) * CAST( - - CASE - NULLIF ( - COUNT( * ), - COALESCE ( + - 35, - 81 - 23 - - MIN( ALL + 74 ) * + ( 29 ) ) ) WHEN - 85 THEN 66 WHEN 31 THEN 11 / COUNT( * ) + 78 WHEN CAST( - 35 AS SIGNED ) * COUNT( * ) + 75 / - 37 THEN NULL ELSE NULL END AS SIGNED ) + - AVG ( ALL + 62 + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT + 7 * - + MIN ( ( + + 40 ) ) - + + 79 * - 9 - COUNT ( * ) + + COALESCE ( - - 85, - 84 ) + + 21 * - + 27 * - COUNT ( * ) * CAST ( - - CASE - NULLIF ( - COUNT ( * ), - COALESCE ( + - 35, - 81 - 23 - - MIN ( ALL + 74 ) * + ( 29 ) ) ) WHEN - 85 THEN 66 WHEN 31 THEN 11 / COUNT ( * ) + 78 WHEN CAST ( - 35 AS INTEGER ) * COUNT ( * ) + 75 / - 37 THEN NULL ELSE NULL END AS INTEGER ) + - AVG ( ALL + 62 + 45 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-390
SELECT - 41 * - 57 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT 59 + + + 40 col0
----
99

query II rowsort
SELECT ALL + 2 AS col1, 76
----
2
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-394
SELECT COUNT( * ) DIV + 19, 54 - - 10 AS col2
----
0
64

skipif mysql # not compatible
query II rowsort label-394
SELECT COUNT ( * ) / + 19, 54 - - 10 AS col2
----
0
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT ALL + ( - + 8 ) DIV + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + ( - + 8 ) / + - COUNT ( * )
----
8

query I rowsort
SELECT 5 * + - 73 AS col2
----
-365

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT DISTINCT NULLIF ( + 95, + + 92 * + 60 ) DIV + ( + NULLIF ( - + 44, + + 32 * + 25 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT NULLIF ( + 95, + + 92 * + 60 ) / + ( + NULLIF ( - + 44, + + 32 * + 25 ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-398
SELECT 14 * - + COUNT( * ) DIV - ( + 40 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-398
SELECT 14 * - + COUNT ( * ) / - ( + 40 ) AS col0
----
0

query I rowsort
SELECT ALL 81 + + - 29 AS col0
----
52

query I rowsort
SELECT DISTINCT 99 + 12 + + 33 * 87
----
2982

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

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL 34 + - - 5 + + COUNT ( * ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT 40 * 86 DIV + 73
----
47

skipif mysql # not compatible
query I rowsort label-402
SELECT 40 * 86 / + 73
----
47

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

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

query I rowsort
SELECT DISTINCT 69 + 50
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT ALL 27 + + COUNT( * ) * 52
----
79

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL 27 + + COUNT ( * ) * 52
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-406
SELECT ALL MAX( DISTINCT + 4 ) + - - 45 DIV + + 95
----
4

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL MAX ( DISTINCT + 4 ) + - - 45 / + + 95
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT 39 + + - 89 AS col1, COUNT( * )
----
-50
1

skipif mysql # not compatible
query II rowsort label-407
SELECT 39 + + - 89 AS col1, COUNT ( * )
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT - SUM( + 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-408
SELECT - SUM ( + 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT COUNT( * ) + - 59 * - 83 + - + 58 + + COALESCE ( + + 47, + COUNT( * ) ) * + 49 * - - COUNT( * ) AS col0
----
7143

skipif mysql # not compatible
query I rowsort label-409
SELECT COUNT ( * ) + - 59 * - 83 + - + 58 + + COALESCE ( + + 47, + COUNT ( * ) ) * + 49 * - - COUNT ( * ) AS col0
----
7143

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT SUM( ALL - - 45 ) * + - 92
----
-4140

skipif mysql # not compatible
query I rowsort label-410
SELECT SUM ( ALL - - 45 ) * + - 92
----
-4140

query I rowsort
SELECT 58 + + 86 AS col2
----
144

query I rowsort
SELECT CASE + 7 WHEN + AVG ( ALL - - 27 ) * 8 THEN NULL WHEN - 12 THEN + 11 END * - + 45 / 86 * - 76 / + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL + SUM( + 37 ) * - + 60 AS col1
----
-2220

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + SUM ( + 37 ) * - + 60 AS col1
----
-2220

query I rowsort
SELECT 87 + 71 * + 71 AS col0
----
5128

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL + 70 / - 14 * - + COUNT( * ) / CASE + - ( 72 ) WHEN - 43 * 74 - 95 - + 18 THEN - SUM( + - 21 ) END * + 11 + - + 20 + - - ( 98 ) * + AVG ( - 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL + 70 / - 14 * - + COUNT ( * ) / CASE + - ( 72 ) WHEN - 43 * 74 - 95 - + 18 THEN - SUM ( + - 21 ) END * + 11 + - + 20 + - - ( 98 ) * + AVG ( - 86 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 53 * + 38 AS col0
----
2014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-417
SELECT + + 68 DIV COUNT( * ) + SUM( DISTINCT - + 73 ) + - SUM( DISTINCT 51 ) + + 51 + + + 75 * - 12
----
-905

skipif mysql # not compatible
query I rowsort label-417
SELECT + + 68 / COUNT ( * ) + SUM ( DISTINCT - + 73 ) + - SUM ( DISTINCT 51 ) + + 51 + + + 75 * - 12
----
-905

onlyif mysql # DIV for integer division: 
query II rowsort label-418
SELECT - 1 DIV 42 + - + 25 * - 46 + + 30 AS col2, 64
----
1180
64

skipif mysql # not compatible
query II rowsort label-418
SELECT - 1 / 42 + - + 25 * - 46 + + 30 AS col2, 64
----
1180
64

query I rowsort
SELECT ( + 77 ) + - 58 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT ALL - COALESCE ( - 38, + 95 DIV - - 0 + + ( + 6 ) ) * + COUNT( * ) * - + 88
----
-3344

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - COALESCE ( - 38, + 95 / - - 0 + + ( + 6 ) ) * + COUNT ( * ) * - + 88
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT + ( COUNT( ALL + COALESCE ( - - 11, + + 19 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-421
SELECT + ( COUNT ( ALL + COALESCE ( - - 11, + + 19 ) ) ) AS col1
----
1

query II rowsort
SELECT 58 * + + 76 col0, 68
----
4408
68

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - 28 + + - 81 + + + MAX( ALL - - 79 ) * NULLIF ( - 89, + 34 * 84 + 93 + - + 91 + COUNT( * ) / + 96 * - 34 ) + SUM( ALL 63 ) - - 54 + + COUNT( * ) + COUNT( * ) + - - 3 * - 84 * + MIN( - 37 ) * 57 * - 43
----
-22860145

skipif mysql # not compatible
query I rowsort label-423
SELECT - 28 + + - 81 + + + MAX ( ALL - - 79 ) * NULLIF ( - 89, + 34 * 84 + 93 + - + 91 + COUNT ( * ) / + 96 * - 34 ) + SUM ( ALL 63 ) - - 54 + + COUNT ( * ) + COUNT ( * ) + - - 3 * - 84 * + MIN ( - 37 ) * 57 * - 43
----
-22860145

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

skipif mysql # not compatible
query I rowsort label-424
SELECT + + SUM ( + + 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-425
SELECT - + CAST( - - 99 AS SIGNED ) + 81 + - ( + + COUNT( * ) ) * - - 41 + + + CAST( - + ( + + 56 ) AS SIGNED ) + 2 + + COUNT( * ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-425
SELECT - + CAST ( - - 99 AS INTEGER ) + 81 + - ( + + COUNT ( * ) ) * - - 41 + + + CAST ( - + ( + + 56 ) AS INTEGER ) + 2 + + COUNT ( * ) AS col0
----
-112

query I rowsort
SELECT ALL + - 97 * 61
----
-5917

query I rowsort
SELECT - + 8 * + 90
----
-720

query I rowsort
SELECT ALL + - 80 + - 50 AS col2
----
-130

query I rowsort
SELECT ALL - 44 + + - 13 AS col1
----
-57

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

query I rowsort
SELECT - 35 + NULLIF ( - 23, + COALESCE ( 72, - 19 - + 73 + 8 ) ) + + - 75
----
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT ALL COALESCE ( + ( 92 ), - - 5 DIV - 13 * + 1 * - 55 + 33 * 46, - 14 + 25 )
----
92

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL COALESCE ( + ( 92 ), - - 5 / - 13 * + 1 * - 55 + 33 * 46, - 14 + 25 )
----
92

query II rowsort
SELECT ALL + 94 + - 36 + - 34 AS col0, CASE + 70 WHEN 6 THEN - - 49 ELSE NULL END / 26
----
24
NULL

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

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

query I rowsort
SELECT DISTINCT CASE WHEN NULL IN ( - 28, + 80, - 70 ) THEN - 18 WHEN NOT NULL <= 82 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT ALL 86 DIV + 5
----
17

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL 86 / + 5
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-437
SELECT - COUNT( * ) AS col2, 99 DIV + 10
----
-1
9

skipif mysql # not compatible
query II rowsort label-437
SELECT - COUNT ( * ) AS col2, 99 / + 10
----
-1
9

query I rowsort
SELECT - 80 * - 11
----
880

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

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

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

query II rowsort
SELECT DISTINCT 3, - 97 * 79 * - - 47 * ( - 20 ) AS col2
----
3
7203220

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-443
SELECT DISTINCT CASE - - 34 WHEN + - 90 + + 9 - - - 45 * 23 THEN - 67 * - 5 END col0, - CAST( + COALESCE ( - + ( COUNT( * ) ), - - 8 ) AS SIGNED )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-443
SELECT DISTINCT CASE - - 34 WHEN + - 90 + + 9 - - - 45 * 23 THEN - 67 * - 5 END col0, - CAST ( + COALESCE ( - + ( COUNT ( * ) ), - - 8 ) AS INTEGER )
----
NULL
1

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

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

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

query I rowsort
SELECT ALL + 5 * - ( - ( - 55 ) ) col0
----
-275

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

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - ( + - COUNT ( 89 ) ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT + - 53 * + ( - COUNT( * ) ) * + 36 AS col0
----
1908

skipif mysql # not compatible
query I rowsort label-449
SELECT + - 53 * + ( - COUNT ( * ) ) * + 36 AS col0
----
1908

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

skipif mysql # not compatible
query I rowsort label-450
SELECT + MIN ( DISTINCT + NULLIF ( 6, 20 ) ) AS col1
----
6

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

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

query I rowsort
SELECT ALL + ( - + 57 ) * + 74 col0
----
-4218

query I rowsort
SELECT ALL - 56 * 42 + - 62 AS col1
----
-2414

query II rowsort
SELECT + 54 AS col1, 57 AS col0
----
54
57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT DISTINCT + 65 DIV - + 40
----
-1

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + 65 / - + 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT - - 51 * - CASE + ( + COUNT( * ) ) WHEN 58 / - 70 THEN NULL ELSE COUNT( * ) END + + COALESCE ( ( - MIN( 25 ) ), - - 33 ) + - 26 * + + 73 + + 82
----
-1892

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT - - 51 * - CASE + ( + COUNT ( * ) ) WHEN 58 / - 70 THEN NULL ELSE COUNT ( * ) END + + COALESCE ( ( - MIN ( 25 ) ), - - 33 ) + - 26 * + + 73 + + 82
----
-1892

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-459
SELECT ALL - - 52 * - 77 + 52, COUNT( ALL 50 ) AS col1
----
-3952
1

skipif mysql # not compatible
query II rowsort label-459
SELECT ALL - - 52 * - 77 + 52, COUNT ( ALL 50 ) AS col1
----
-3952
1

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT ALL + + 86 * - ( - COUNT( * ) ) + 11 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL + + 86 * - ( - COUNT ( * ) ) + 11 AS col2
----
97

query I rowsort
SELECT DISTINCT + 15 * 37 AS col0
----
555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-462
SELECT - 29 * + 30 * - MIN( DISTINCT - CAST( + 21 AS SIGNED ) )
----
-18270

skipif mysql # not compatible
query I rowsort label-462
SELECT - 29 * + 30 * - MIN ( DISTINCT - CAST ( + 21 AS INTEGER ) )
----
-18270

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL + - COUNT( ALL + 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL + - COUNT ( ALL + 90 ) AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL + 33 * + 85 * + 37 * + - 67 + - NULLIF ( 36, - 64 * + - CAST( - - 94 AS SIGNED ) - + COUNT( * ) ) AS col2
----
-6953631

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + 33 * + 85 * + 37 * + - 67 + - NULLIF ( 36, - 64 * + - CAST ( - - 94 AS INTEGER ) - + COUNT ( * ) ) AS col2
----
-6953631

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - MIN( - + 58 ) * - 47 + - - 50 AS col1
----
-2676

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - MIN ( - + 58 ) * - 47 + - - 50 AS col1
----
-2676

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT CASE - - ( + + COUNT( * ) ) WHEN - 76 THEN + + CASE - - 80 WHEN - AVG ( DISTINCT + 87 ) THEN NULL ELSE 98 + - 59 END / - + 67 * + COUNT( * ) * COUNT( * ) + COUNT( * ) WHEN - CASE 35 WHEN + + 41 THEN 76 WHEN - 0 THEN 46 + + + ( - + ( 93 ) ) + - MAX( 75 ) * - ( 18 + 18 * - 27 ) END * + 3 THEN 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-467
SELECT CASE - - ( + + COUNT ( * ) ) WHEN - 76 THEN + + CASE - - 80 WHEN - AVG ( DISTINCT + 87 ) THEN NULL ELSE 98 + - 59 END / - + 67 * + COUNT ( * ) * COUNT ( * ) + COUNT ( * ) WHEN - CASE 35 WHEN + + 41 THEN 76 WHEN - 0 THEN 46 + + + ( - + ( 93 ) ) + - MAX ( 75 ) * - ( 18 + 18 * - 27 ) END * + 3 THEN 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT NULLIF ( COUNT( * ), COUNT( * ) + + 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-468
SELECT NULLIF ( COUNT ( * ), COUNT ( * ) + + 6 ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL SUM ( 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT ALL + 23 * - + CAST( NULL AS SIGNED ) * + 97 / - AVG ( 14 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL + 23 * - + CAST ( NULL AS INTEGER ) * + 97 / - AVG ( 14 ) - - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-473
SELECT - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1, - 20
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-473
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1, - 20
----
NULL
-20

query I rowsort
SELECT - CASE - 52 WHEN + 6 THEN + 92 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL CAST( - 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL CAST ( - 83 AS INTEGER ) AS col0
----
-83

query I rowsort
SELECT - ( 44 ) - 23 * + 86
----
-2022

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT DISTINCT ( + CASE + 25 WHEN 48 + + ( + CASE + 75 WHEN - 43 * + + 65 THEN + + 27 - + 46 - - 67 - - 39 WHEN 28 THEN NULL WHEN + 5 THEN NULL END ) THEN - 83 ELSE - - 64 DIV + 62 END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT ( + CASE + 25 WHEN 48 + + ( + CASE + 75 WHEN - 43 * + + 65 THEN + + 27 - + 46 - - 67 - - 39 WHEN 28 THEN NULL WHEN + 5 THEN NULL END ) THEN - 83 ELSE - - 64 / + 62 END ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-479
SELECT ALL CAST( - - 70 AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL CAST ( - - 70 AS INTEGER ) AS col0
----
70

query I rowsort
SELECT - - COALESCE ( 19, + + 58, + 82 )
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-481
SELECT - 74 DIV - 19, + 18 AS col2
----
3
18

skipif mysql # not compatible
query II rowsort label-481
SELECT - 74 / - 19, + 18 AS col2
----
3
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-482
SELECT ALL - 87 DIV - - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL - 87 / - - COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL MIN( ALL + 48 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL MIN ( ALL + 48 ) col2
----
48

query I rowsort
SELECT - + 24 + 42 AS col1
----
18

query I rowsort
SELECT ALL - COALESCE ( - + ( + 47 ), 38 ) AS col0
----
47

query I rowsort
SELECT 19 + 62 * 95 AS col2
----
5909

onlyif mysql # aggregate syntax: 
query II rowsort label-487
SELECT DISTINCT - MAX( DISTINCT 43 ) AS col2, - COUNT( * ) col2
----
-43
-1

skipif mysql # not compatible
query II rowsort label-487
SELECT DISTINCT - MAX ( DISTINCT 43 ) AS col2, - COUNT ( * ) col2
----
-43
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT ALL - 88 + - - COUNT( * ) + - 32 * + - 77, - 77 - - - 39 * - 58 AS col1
----
2377
2185

skipif mysql # not compatible
query II rowsort label-488
SELECT ALL - 88 + - - COUNT ( * ) + - 32 * + - 77, - 77 - - - 39 * - 58 AS col1
----
2377
2185

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

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - - COUNT ( * ) + - 78 AS col2
----
-77

query I rowsort
SELECT ALL 60 + - - 19 AS col0
----
79

query I rowsort
SELECT DISTINCT 5 + - 88 AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT DISTINCT - 3 * - - 13 * + CAST( - ( - 74 ) AS SIGNED )
----
-2886

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT - 3 * - - 13 * + CAST ( - ( - 74 ) AS INTEGER )
----
-2886

query I rowsort
SELECT 43 * - + 23 AS col2
----
-989

query I rowsort
SELECT ALL 11 * - 58
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT ALL ( - - COUNT( * ) ) - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL ( - - COUNT ( * ) ) - + 62
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-496
SELECT DISTINCT - NULLIF ( - 18, 4 + CASE 89 WHEN - 35 THEN + 53 * + + 67 + - + CASE + 69 WHEN + 35 * 93 + + + 2 * + + COALESCE ( 94, - 12, - 52 ) THEN - CAST( - ( + COALESCE ( + 54, - + COUNT( * ), - NULLIF ( - CAST( NULL AS SIGNED ), - - 87 ) - - 38 ) ) AS SIGNED ) ELSE NULL END + 32 * - 21 END * 38 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT - NULLIF ( - 18, 4 + CASE 89 WHEN - 35 THEN + 53 * + + 67 + - + CASE + 69 WHEN + 35 * 93 + + + 2 * + + COALESCE ( 94, - 12, - 52 ) THEN - CAST ( - ( + COALESCE ( + 54, - + COUNT ( * ), - NULLIF ( - CAST ( NULL AS INTEGER ), - - 87 ) - - 38 ) ) AS INTEGER ) ELSE NULL END + 32 * - 21 END * 38 ) AS col0
----
18

query I rowsort
SELECT 68 * - 39
----
-2652

query I rowsort
SELECT ALL 75 * + 1 AS col0
----
75

query I rowsort
SELECT 39 + - 87 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-500
SELECT NULLIF ( - 28, COUNT( * ) ) * - 6 * + 49 * + ( + COALESCE ( - 88, CAST( NULL AS SIGNED ) ) ) * - - 39 + 32 - 73 + - 95 AS col2, 53 AS col0
----
-28252360
53

skipif mysql # not compatible
query II rowsort label-500
SELECT NULLIF ( - 28, COUNT ( * ) ) * - 6 * + 49 * + ( + COALESCE ( - 88, CAST ( NULL AS INTEGER ) ) ) * - - 39 + 32 - 73 + - 95 AS col2, 53 AS col0
----
-28252360
53

query II rowsort
SELECT 72 AS col2, + 90 AS col2
----
72
90

query II rowsort
SELECT 7 col0, 11
----
7
11

query II rowsort
SELECT ALL 87, + 51 AS col2
----
87
51

query I rowsort
SELECT 94 * - 9
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT MIN( ALL 87 ) + - 60 * + 7 AS col1
----
-333

skipif mysql # not compatible
query I rowsort label-505
SELECT MIN ( ALL 87 ) + - 60 * + 7 AS col1
----
-333

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

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

query II rowsort
SELECT ALL 4, 43 AS col0
----
4
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT 93 * - CAST( NULL AS SIGNED ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT 93 * - CAST ( NULL AS INTEGER ) * 52
----
NULL

query I rowsort
SELECT DISTINCT - 60 * + - NULLIF ( + - 12, 95 ) * + + 89 AS col2
----
-64080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-510
SELECT CAST( + + 90 AS SIGNED ) + 77, + 28 + + - 98 * CAST( NULL AS SIGNED ) / - 96 AS col1
----
167
NULL

skipif mysql # not compatible
query II rowsort label-510
SELECT CAST ( + + 90 AS INTEGER ) + 77, + 28 + + - 98 * CAST ( NULL AS INTEGER ) / - 96 AS col1
----
167
NULL

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

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

query I rowsort
SELECT 64 * - COALESCE ( 38, + - 71 ) + + 79 * + - 38 AS col2
----
-5434

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT + 81 + + - SUM( + - 96 ) + COUNT( * ) * + + 96
----
273

skipif mysql # not compatible
query I rowsort label-513
SELECT + 81 + + - SUM ( + - 96 ) + COUNT ( * ) * + + 96
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL - + 65 * - 28 + + CASE CASE 77 WHEN + 63 THEN 84 WHEN + + COUNT( - + 86 ) * + 89 - 7 + CASE ( - - 55 ) WHEN + 48 THEN - 0 ELSE NULL END THEN NULL ELSE NULL END WHEN 68 THEN + - 88 * - - 97 - + CASE ( + COUNT( * ) ) WHEN + 6 * + COUNT( * ) THEN NULL WHEN 97 * 94 THEN - NULLIF ( 34, 28 ) * 7 ELSE NULL END - + 92 * 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL - + 65 * - 28 + + CASE CASE 77 WHEN + 63 THEN 84 WHEN + + COUNT ( - + 86 ) * + 89 - 7 + CASE ( - - 55 ) WHEN + 48 THEN - 0 ELSE NULL END THEN NULL ELSE NULL END WHEN 68 THEN + - 88 * - - 97 - + CASE ( + COUNT ( * ) ) WHEN + 6 * + COUNT ( * ) THEN NULL WHEN 97 * 94 THEN - NULLIF ( 34, 28 ) * 7 ELSE NULL END - + 92 * 73 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT 54 + - + COUNT( * ) DIV + 67
----
54

skipif mysql # not compatible
query I rowsort label-515
SELECT 54 + - + COUNT ( * ) / + 67
----
54

query II rowsort
SELECT DISTINCT - 13 AS col0, + 71 + 22 * + 74 + + + 80 AS col0
----
-13
1779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT - + MAX( + CAST( - - 30 AS SIGNED ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-517
SELECT - + MAX ( + CAST ( - - 30 AS INTEGER ) ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-518
SELECT ALL 8 + - 93 / + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 8 + - 93 / + - CAST ( NULL AS INTEGER ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT DISTINCT - 59 + + COUNT( * ) + MIN( + - 35 ) * - SUM( DISTINCT + 38 ) AS col0
----
1272

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - 59 + + COUNT ( * ) + MIN ( + - 35 ) * - SUM ( DISTINCT + 38 ) AS col0
----
1272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-521
SELECT SUM( + + 24 ) DIV 13
----
1

skipif mysql # not compatible
query I rowsort label-521
SELECT SUM ( + + 24 ) / 13
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT + 90 DIV - 33 - - + 39 - + 73
----
-36

skipif mysql # not compatible
query I rowsort label-522
SELECT + 90 / - 33 - - + 39 - + 73
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT ALL - - ( + + 59 ) DIV - ( + 24 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL - - ( + + 59 ) / - ( + 24 ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT 2 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-525
SELECT 2 / - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL + COUNT( + 98 ) + 91 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + COUNT ( + 98 ) + 91 AS col0
----
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT 49 * - COUNT( * ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-528
SELECT 49 * - COUNT ( * ) col2
----
-49

query I rowsort
SELECT ALL + 74 * + 2
----
148

query I rowsort
SELECT DISTINCT - 63 - + 10 + + 12
----
-61

query I rowsort
SELECT DISTINCT 29 - - 95 AS col2
----
124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - 69 * COUNT( ALL 16 ) + - 81 + + - ( - 37 ) + - ( + 50 ) AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-533
SELECT - 69 * COUNT ( ALL 16 ) + - 81 + + - ( - 37 ) + - ( + 50 ) AS col2
----
-163

onlyif mysql # aggregate syntax: 
query III rowsort label-534
SELECT 63 AS col2, - MAX( DISTINCT 85 ) * - 90 AS col1, + 89
----
63
7650
89

skipif mysql # not compatible
query III rowsort label-534
SELECT 63 AS col2, - MAX ( DISTINCT 85 ) * - 90 AS col1, + 89
----
63
7650
89

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT 43 + + MIN( + + 78 ) AS col0
----
121

skipif mysql # not compatible
query I rowsort label-535
SELECT 43 + + MIN ( + + 78 ) AS col0
----
121

query I rowsort
SELECT 49 * - - 50 AS col1
----
2450

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-538
SELECT ALL 4 DIV COUNT( + 8 )
----
4

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL 4 / COUNT ( + 8 )
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-539
SELECT 68 DIV - 44 AS col1, - 69 * - - 72
----
-1
-4968

skipif mysql # not compatible
query II rowsort label-539
SELECT 68 / - 44 AS col1, - 69 * - - 72
----
-1
-4968

query I rowsort
SELECT ALL 21 * - 93 col0
----
-1953

onlyif mysql # DIV for integer division: 
query II rowsort label-541
SELECT DISTINCT 97 AS col2, 98 DIV - 93
----
97
-1

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT 97 AS col2, 98 / - 93
----
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT COUNT( DISTINCT - + 8 ) * - 99 * - - 83 * - 83 - - 32
----
682043

skipif mysql # not compatible
query I rowsort label-542
SELECT COUNT ( DISTINCT - + 8 ) * - 99 * - - 83 * - 83 - - 32
----
682043

query I rowsort
SELECT 64 - + 54 AS col1
----
10

query I rowsort
SELECT DISTINCT 3 * 70
----
210

query I rowsort
SELECT ALL 62 * + 39
----
2418

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-547
SELECT - CASE + - CASE - + 50 WHEN - - 99 THEN 6 ELSE NULL END WHEN - 2 - + + 10 + - - ( + ( + + NULLIF ( - 19, - MAX( - 71 ) ) ) ) / + - 34 * - + 65 THEN - SUM( ALL 57 ) * + + CASE + CAST( NULL AS SIGNED ) WHEN + 64 THEN - AVG ( ALL - 50 ) END * 90 + + 26 * + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT - CASE + - CASE - + 50 WHEN - - 99 THEN 6 ELSE NULL END WHEN - 2 - + + 10 + - - ( + ( + + NULLIF ( - 19, - MAX ( - 71 ) ) ) ) / + - 34 * - + 65 THEN - SUM ( ALL 57 ) * + + CASE + CAST ( NULL AS INTEGER ) WHEN + 64 THEN - AVG ( ALL - 50 ) END * 90 + + 26 * + 51 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT - 49 * + CASE - - 0 WHEN - + 7 / COUNT( * ) THEN + COUNT( * ) ELSE NULL END * - 11 * + 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-548
SELECT - 49 * + CASE - - 0 WHEN - + 7 / COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END * - 11 * + 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL 35 + + MIN( DISTINCT - 25 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL 35 + + MIN ( DISTINCT - 25 ) AS col0
----
10

query I rowsort
SELECT + + 91 - - 12
----
103

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

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - SUM ( 72 )
----
-72

query I rowsort
SELECT + + 41 * - + 15
----
-615

query I rowsort
SELECT ALL + 35 + - 56 * - 97
----
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL - + 38 + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL - + 38 + - COUNT ( * )
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT + - MIN( - 31 ) + - NULLIF ( - + 13, 91 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-556
SELECT + - MIN ( - 31 ) + - NULLIF ( - + 13, 91 ) AS col0
----
44

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-558
SELECT + 25 + - - 39 + - + 6 + - - COALESCE ( - COUNT( * ), + ( - 44 ) + + 92 + + 34 - - 85 + - CAST( 38 AS SIGNED ) * - 57 * - MAX( ALL - + NULLIF ( - + 21, - 7 ) ) * + - ( ( - - CASE - + 95 WHEN - 34 THEN + 74 END ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-558
SELECT + 25 + - - 39 + - + 6 + - - COALESCE ( - COUNT ( * ), + ( - 44 ) + + 92 + + 34 - - 85 + - CAST ( 38 AS INTEGER ) * - 57 * - MAX ( ALL - + NULLIF ( - + 21, - 7 ) ) * + - ( ( - - CASE - + 95 WHEN - 34 THEN + 74 END ) ) )
----
57

query I rowsort
SELECT ALL + - ( - - 1 ) - - 9
----
8

query I rowsort
SELECT DISTINCT - - 96 * 19
----
1824

query II rowsort
SELECT ALL 8 * 95 AS col0, 53 col2
----
760
53

query I rowsort
SELECT - - 14 + 12 + + 34 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL - 49 * COUNT( * ) + - 22 * - 32 - - 78 + MIN( DISTINCT - + 35 ) * + + 2 * - 30 / - + CASE + 56 WHEN 70 THEN + + 79 * + 77 + + 74 + - NULLIF ( + 22, - 16 ) WHEN 7 THEN 53 + COALESCE ( + 59, + 97 + + + COUNT( * ) ) END + + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - 49 * COUNT ( * ) + - 22 * - 32 - - 78 + MIN ( DISTINCT - + 35 ) * + + 2 * - 30 / - + CASE + 56 WHEN 70 THEN + + 79 * + 77 + + 74 + - NULLIF ( + 22, - 16 ) WHEN 7 THEN 53 + COALESCE ( + 59, + 97 + + + COUNT ( * ) ) END + + - 21
----
NULL

query II rowsort
SELECT 96, - NULLIF ( - 15, - 60 ) AS col0
----
96
15

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL + NULLIF ( + ( + 48 ), + + 50 + - 7 - - MAX( ALL 52 ) / + 71 + + 93 + + + AVG ( 78 ) / - 73 * + COUNT( * ) ) * - + MAX( - - 83 ) - - COUNT( 13 ) + COUNT( * ) AS col1
----
-3982

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + NULLIF ( + ( + 48 ), + + 50 + - 7 - - MAX ( ALL 52 ) / + 71 + + 93 + + + AVG ( 78 ) / - 73 * + COUNT ( * ) ) * - + MAX ( - - 83 ) - - COUNT ( 13 ) + COUNT ( * ) AS col1
----
-3982

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT ALL + + 70 DIV + 6 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + + 70 / + 6 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-567
SELECT ALL + COUNT( ALL + + 76 ), MAX( DISTINCT - - 29 ) AS col1
----
1
29

skipif mysql # not compatible
query II rowsort label-567
SELECT ALL + COUNT ( ALL + + 76 ), MAX ( DISTINCT - - 29 ) AS col1
----
1
29

query I rowsort
SELECT + 64 * + + 78
----
4992

query I rowsort
SELECT - 81 + 68
----
-13

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-571
SELECT - 34 * + 8 * + + MIN( ALL + ( + 38 ) ) AS col2, - 85 + + ( - ( - - CAST( NULL AS SIGNED ) ) ) AS col2
----
-10336
NULL

skipif mysql # not compatible
query II rowsort label-571
SELECT - 34 * + 8 * + + MIN ( ALL + ( + 38 ) ) AS col2, - 85 + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-10336
NULL

query II rowsort
SELECT COALESCE ( + 26, - 16 + - 77 * + 72, - 89 * + ( - 49 ) ) AS col1, 99 AS col0
----
26
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-573
SELECT ALL + COALESCE ( + 30, + + 39 * + - COUNT( DISTINCT + 43 ) + 61 + + CASE 14 WHEN 89 THEN NULL ELSE + 28 DIV - - ( - 95 ) END + + 42 + 40 DIV + 77 )
----
30

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + COALESCE ( + 30, + + 39 * + - COUNT ( DISTINCT + 43 ) + 61 + + CASE 14 WHEN 89 THEN NULL ELSE + 28 / - - ( - 95 ) END + + 42 + 40 / + 77 )
----
30

query I rowsort
SELECT + 50 + - 74 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT + 26 DIV 30 * 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-575
SELECT + 26 / 30 * 89 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-576
SELECT - 2 * + + 55 * - - 82 - + 40 * - 78 + COALESCE ( ( 7 ), + - 70 + + + 48 * - COUNT( * ) DIV + 62 * 14 * - 30 * + 3 * + 71 DIV - CAST( COUNT( * ) AS SIGNED ) ) + - + 45 * 28 - + ( + SUM( 38 ) )
----
-7191

skipif mysql # not compatible
query I rowsort label-576
SELECT - 2 * + + 55 * - - 82 - + 40 * - 78 + COALESCE ( ( 7 ), + - 70 + + + 48 * - COUNT ( * ) / + 62 * 14 * - 30 * + 3 * + 71 / - CAST ( COUNT ( * ) AS INTEGER ) ) + - + 45 * 28 - + ( + SUM ( 38 ) )
----
-7191

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + - 70 + - MIN( - + 0 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-577
SELECT + - 70 + - MIN ( - + 0 ) AS col0
----
-70

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

query I rowsort
SELECT + 52 + + + 36 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL 26 * 49 * + COUNT( - + 53 ) AS col0
----
1274

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL 26 * 49 * + COUNT ( - + 53 ) AS col0
----
1274

query I rowsort
SELECT DISTINCT + 57 + + ( - 0 ) * + 84 AS col0
----
57

query I rowsort
SELECT + 79 + + - NULLIF ( + 89, + 24 ) AS col2
----
-10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT 97 - + 7 - - 89 DIV 90
----
90

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT 97 - + 7 - - 89 / 90
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT DISTINCT 71 DIV COUNT( DISTINCT + NULLIF ( + - ( + 31 ), ( + ( + 77 ) ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT 71 / COUNT ( DISTINCT + NULLIF ( + - ( + 31 ), ( + ( + 77 ) ) ) )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT + CAST( 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-586
SELECT + CAST ( 72 AS INTEGER )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - CASE + COUNT( * ) WHEN 11 THEN - 93 ELSE NULL END - 39 + + - 59 + + 97 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - CASE + COUNT ( * ) WHEN 11 THEN - 93 ELSE NULL END - 39 + + - 59 + + 97 * 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT DISTINCT + 24 * + - 91 + + COUNT( * )
----
-2183

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT + 24 * + - 91 + + COUNT ( * )
----
-2183

onlyif mysql # DIV for integer division: 
query I rowsort label-589
SELECT - - 23 DIV 24 - - 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-589
SELECT - - 23 / 24 - - 99 AS col0
----
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-591
SELECT ALL + 45 * + + COALESCE ( CAST( NULL AS SIGNED ), + MAX( + CASE - 86 WHEN 90 THEN - 85 + + 63 END ) + 85 * 89 * 80 + + + 47 * - 56, + ( + + 19 ) ) AS col2
----
855

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL + 45 * + + COALESCE ( CAST ( NULL AS INTEGER ), + MAX ( + CASE - 86 WHEN 90 THEN - 85 + + 63 END ) + 85 * 89 * 80 + + + 47 * - 56, + ( + + 19 ) ) AS col2
----
855

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

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

query I rowsort
SELECT - ( + 48 ) * - - 85 AS col2
----
-4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-594
SELECT DISTINCT + 36 * - AVG ( + CAST( NULL AS SIGNED ) ) col1, COUNT( * ) * COUNT( * ) DIV 29
----
NULL
0

skipif mysql # not compatible
query II rowsort label-594
SELECT DISTINCT + 36 * - AVG ( + CAST ( NULL AS INTEGER ) ) col1, COUNT ( * ) * COUNT ( * ) / 29
----
NULL
0

query I rowsort
SELECT DISTINCT 57 * - 81
----
-4617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-596
SELECT ALL 92 * + CASE + 46 WHEN + COUNT( * ) * - - 93 - 72 + + + 5 / - - 87 / - + CAST( NULL AS SIGNED ) * + - 93 / - MIN( - + 50 ) + + - 54 THEN NULL WHEN 90 * - - COUNT( * ) THEN CASE + COUNT( * ) WHEN - ( 29 ) + + COUNT( - 31 ) + - - CASE + COUNT( * ) WHEN + - 67 THEN + + 5 * - - 45 + - + COUNT( ALL 47 ) WHEN 61 - - 82 THEN - 46 + + 56 * - COUNT( * ) END - - 90 * 43 THEN + 92 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL 92 * + CASE + 46 WHEN + COUNT ( * ) * - - 93 - 72 + + + 5 / - - 87 / - + CAST ( NULL AS INTEGER ) * + - 93 / - MIN ( - + 50 ) + + - 54 THEN NULL WHEN 90 * - - COUNT ( * ) THEN CASE + COUNT ( * ) WHEN - ( 29 ) + + COUNT ( - 31 ) + - - CASE + COUNT ( * ) WHEN + - 67 THEN + + 5 * - - 45 + - + COUNT ( ALL 47 ) WHEN 61 - - 82 THEN - 46 + + 56 * - COUNT ( * ) END - - 90 * 43 THEN + 92 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT DISTINCT + 16 col0, - MAX( DISTINCT - 57 )
----
16
57

skipif mysql # not compatible
query II rowsort label-597
SELECT DISTINCT + 16 col0, - MAX ( DISTINCT - 57 )
----
16
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-599
SELECT ALL ( + 32 ) DIV 88 * ( - 85 ) + - 93 AS col0, NULLIF ( - + CAST( NULL AS SIGNED ), + 27 - SUM( ALL 66 ) )
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-599
SELECT ALL ( + 32 ) / 88 * ( - 85 ) + - 93 AS col0, NULLIF ( - + CAST ( NULL AS INTEGER ), + 27 - SUM ( ALL 66 ) )
----
-93
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-600
SELECT ALL 9 DIV + 22 + + 42 * 46 AS col2
----
1932

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL 9 / + 22 + + 42 * 46 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT + COUNT( * ) * + 22 + 61 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-601
SELECT + COUNT ( * ) * + 22 + 61 AS col1
----
83

query I rowsort
SELECT CASE + 35 WHEN + 48 + - 96 + + + 52 THEN - - 56 END + + 61
----
NULL

query I rowsort
SELECT 83 * - 45 - - + 23 + - + 71 + - - 39 * - + 81 * - 19 * - ( - 89 )
----
5338086

query I rowsort
SELECT 74 * - - 77 + + 51 + - 89 * + 42 AS col1
----
2011

query I rowsort
SELECT 22 - - 31
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT ALL - 83 * - 7 * - COALESCE ( 8, - + COALESCE ( - 87, 44, - - MAX( DISTINCT + 86 ) DIV + 92 ) * - 9 ) * 8
----
-37184

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL - 83 * - 7 * - COALESCE ( 8, - + COALESCE ( - 87, 44, - - MAX ( DISTINCT + 86 ) / + 92 ) * - 9 ) * 8
----
-37184

query I rowsort
SELECT DISTINCT - 1 + + 11
----
10

query I rowsort
SELECT ALL + 10 * + 36 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT 9 * NULLIF ( + - 90, COUNT( * ) ) AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-609
SELECT 9 * NULLIF ( + - 90, COUNT ( * ) ) AS col0
----
-810

query I rowsort
SELECT DISTINCT NULLIF ( + - 4, - ( - 31 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL + COUNT( * ) * + + COUNT( DISTINCT + 17 ) * + 18
----
18

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL + COUNT ( * ) * + + COUNT ( DISTINCT + 17 ) * + 18
----
18

query II rowsort
SELECT NULLIF ( 87, 21 ) * - + 73 col0, - 90 AS col0
----
-6351
-90

query I rowsort
SELECT 19 + + + NULLIF ( - + 50, + + 52 ) AS col0
----
-31

query I rowsort
SELECT ALL - 28 - 74 + 21 * 48
----
906

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

skipif mysql # not compatible
query I rowsort label-615
SELECT - SUM ( DISTINCT - 5 )
----
5

query I rowsort
SELECT 95 - - 37 col2
----
132

query II rowsort
SELECT ALL 30 AS col2, + 59 AS col2
----
30
59

query I rowsort
SELECT - 16 - - 65 * + 85 AS col2
----
5509

query II rowsort
SELECT 88 + + - ( 57 ) AS col0, 34 AS col1
----
31
34

query I rowsort
SELECT ALL 69 * + - COALESCE ( - ( + 26 ), 16 ) * - 53 AS col0
----
-95082

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT DISTINCT + 76 DIV + 14 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT + 76 / + 14 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - - CASE - + 44 WHEN + + COUNT( ALL + 30 ) * - 99 * - 8 * + 48 - - - COUNT( * ) THEN NULL ELSE - 59 END
----
-59

skipif mysql # not compatible
query I rowsort label-622
SELECT - - CASE - + 44 WHEN + + COUNT ( ALL + 30 ) * - 99 * - 8 * + 48 - - - COUNT ( * ) THEN NULL ELSE - 59 END
----
-59

query I rowsort
SELECT ALL 27 * 64 col2
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 67 + 42 + COUNT( ALL + ( 9 ) ) * + - NULLIF ( + 41, 97 )
----
68

skipif mysql # not compatible
query I rowsort label-624
SELECT 67 + 42 + COUNT ( ALL + ( 9 ) ) * + - NULLIF ( + 41, 97 )
----
68

query I rowsort
SELECT + 66 - 46
----
20

query I rowsort
SELECT DISTINCT ( + 83 ) * + 80 * + - 98
----
-650720

query I rowsort
SELECT 52 + - - 12 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT 88 - - - COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-628
SELECT 88 - - - COUNT ( * ) AS col0
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL 5 + - + 53 * ( + - 46 ) + COUNT( * ) AS col0
----
2444

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL 5 + - + 53 * ( + - 46 ) + COUNT ( * ) AS col0
----
2444

query I rowsort
SELECT ALL 16 * - 61
----
-976

query I rowsort
SELECT ALL 81 + 67 + + 71 col2
----
219

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL 86 + CASE 75 WHEN MIN( DISTINCT + + 41 ) THEN - - 37 WHEN + 70 + + 13 THEN - 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL 86 + CASE 75 WHEN MIN ( DISTINCT + + 41 ) THEN - - 37 WHEN + 70 + + 13 THEN - 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT COUNT( * ) + - ( - 64 )
----
65

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT COUNT ( * ) + - ( - 64 )
----
65

query I rowsort
SELECT 74 + - + 27 AS col0
----
47

query I rowsort
SELECT 12 + - + 78
----
-66

query I rowsort
SELECT 19 * - - 13
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT 87 * + + 31 + - COUNT( * ) AS col1
----
2696

skipif mysql # not compatible
query I rowsort label-639
SELECT 87 * + + 31 + - COUNT ( * ) AS col1
----
2696

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL + ( MAX( 72 ) ) + + 16 * + - 40 - + + 61 * COUNT( - 24 ) * + - 36 * - 95 * - 45 + - 75 * + + 90
----
9380582

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + ( MAX ( 72 ) ) + + 16 * + - 40 - + + 61 * COUNT ( - 24 ) * + - 36 * - 95 * - 45 + - 75 * + + 90
----
9380582

query I rowsort
SELECT 2 * + 64 col0
----
128

query I rowsort
SELECT ALL 3 * + 85 * - - 91
----
23205

query I rowsort
SELECT DISTINCT - 70 + 87
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT DISTINCT 38 * + - ( + SUM( DISTINCT - + 29 ) ) * - - ( - 42 ) + 81 - + 90 * - + ( - COUNT( + 83 ) ) AS col2
----
-46293

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT 38 * + - ( + SUM ( DISTINCT - + 29 ) ) * - - ( - 42 ) + 81 - + 90 * - + ( - COUNT ( + 83 ) ) AS col2
----
-46293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-645
SELECT - 35 * - - 75 * 89 + - + CAST( + + 9 AS SIGNED ) AS col0
----
-233634

skipif mysql # not compatible
query I rowsort label-645
SELECT - 35 * - - 75 * 89 + - + CAST ( + + 9 AS INTEGER ) AS col0
----
-233634

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

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 98 / + COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT 33 * + + 78
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT ALL 75 DIV 32 + + - 42 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL 75 / 32 + + - 42 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT - 14 + CAST( + CASE - 44 WHEN + + ( + 7 ) + 81 THEN NULL ELSE - 99 END AS SIGNED )
----
-113

skipif mysql # not compatible
query I rowsort label-649
SELECT - 14 + CAST ( + CASE - 44 WHEN + + ( + 7 ) + 81 THEN NULL ELSE - 99 END AS INTEGER )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL + + COUNT( DISTINCT - 32 ) * + 47 + COALESCE ( 56, + 1 ) + 57 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + + COUNT ( DISTINCT - 32 ) * + 47 + COALESCE ( 56, + 1 ) + 57 AS col2
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-651
SELECT NULLIF ( - COUNT( * ), 26 + 19 ) + 0 * + + 5 + + - 51 AS col2, 23 AS col1
----
-52
23

skipif mysql # not compatible
query II rowsort label-651
SELECT NULLIF ( - COUNT ( * ), 26 + 19 ) + 0 * + + 5 + + - 51 AS col2, 23 AS col1
----
-52
23

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT NULLIF ( + 0, - COUNT( - 38 ) + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT NULLIF ( + 0, - COUNT ( - 38 ) + + COUNT ( * ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - CASE + COUNT( ALL - ( + 52 ) ) WHEN - 45 * - - 99 THEN + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT - CASE + COUNT ( ALL - ( + 52 ) ) WHEN - 45 * - - 99 THEN + 6 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT 72 + - CAST( - + 54 AS SIGNED )
----
126

skipif mysql # not compatible
query I rowsort label-655
SELECT 72 + - CAST ( - + 54 AS INTEGER )
----
126

query I rowsort
SELECT + 21 * 50 * - 67 col2
----
-70350

query I rowsort
SELECT ALL + 91 + - 70
----
21

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

query I rowsort
SELECT ALL + 55 + - + 3 AS col1
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-660
SELECT - 27 + CAST( NULL AS DECIMAL ) * NULLIF ( - 56, + - CASE NULLIF ( + + 26, - 82 ) WHEN + 66 THEN 14 ELSE NULL END + - 90 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT - 27 + CAST ( NULL AS REAL ) * NULLIF ( - 56, + - CASE NULLIF ( + + 26, - 82 ) WHEN + 66 THEN 14 ELSE NULL END + - 90 ) col0
----
NULL

query I rowsort
SELECT + 33 * 6 AS col2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL 39 * - + CASE COALESCE ( - + 68, + MIN( ALL ( - 46 ) ) * ( + + 7 ) + - 45 + + 65 + - ( + 20 ) * 57, + 59 ) WHEN - 76 THEN NULL WHEN - 8 THEN 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL 39 * - + CASE COALESCE ( - + 68, + MIN ( ALL ( - 46 ) ) * ( + + 7 ) + - 45 + + 65 + - ( + 20 ) * 57, + 59 ) WHEN - 76 THEN NULL WHEN - 8 THEN 68 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-663
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + + COUNT( * ) + 10 * + - ( + 47 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + + COUNT ( * ) + 10 * + - ( + 47 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT 10 * - ( - MIN( ALL + 99 ) ) + - COUNT( * ) + 59 AS col1
----
1048

skipif mysql # not compatible
query I rowsort label-664
SELECT 10 * - ( - MIN ( ALL + 99 ) ) + - COUNT ( * ) + 59 AS col1
----
1048

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL + NULLIF ( + 6, - SUM( - 99 ) )
----
6

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + NULLIF ( + 6, - SUM ( - 99 ) )
----
6

query I rowsort
SELECT DISTINCT + 29 * 1 AS col2
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL + COUNT( * ) * - CASE 66 WHEN + - 39 THEN - + NULLIF ( + 1, + - ( + 85 ) + + CASE + - COUNT( * ) WHEN + + 41 THEN COUNT( * ) WHEN - 0 * 89 / - 63 * - + NULLIF ( - 29, - 42 ) THEN NULL WHEN - - COUNT( * ) THEN NULL END / - COUNT( * ) ) ELSE NULL END - + 75 + + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + COUNT ( * ) * - CASE 66 WHEN + - 39 THEN - + NULLIF ( + 1, + - ( + 85 ) + + CASE + - COUNT ( * ) WHEN + + 41 THEN COUNT ( * ) WHEN - 0 * 89 / - 63 * - + NULLIF ( - 29, - 42 ) THEN NULL WHEN - - COUNT ( * ) THEN NULL END / - COUNT ( * ) ) ELSE NULL END - + 75 + + 26 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-669
SELECT MIN ( + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT MIN( DISTINCT + - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-670
SELECT MIN ( DISTINCT + - 72 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-671
SELECT DISTINCT + CAST( - + ( - 83 ) AS SIGNED ) * - 49 * + - 67 AS col2, + 60
----
272489
60

skipif mysql # not compatible
query II rowsort label-671
SELECT DISTINCT + CAST ( - + ( - 83 ) AS INTEGER ) * - 49 * + - 67 AS col2, + 60
----
272489
60

query I rowsort
SELECT + 76 * 13 * - - 43
----
42484

query I rowsort
SELECT ALL - 36 * + 71
----
-2556

query I rowsort
SELECT DISTINCT - + 87 * + CASE - 14 WHEN - - 41 THEN NULL WHEN - + 31 + + 87 THEN NULL WHEN + + 20 + + 52 THEN NULL ELSE + - 6 END
----
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-675
SELECT DISTINCT CASE + + 69 WHEN + CAST( NULL AS SIGNED ) * 21 * - + 38 / - 43 THEN + 77 + + COUNT( * ) ELSE NULL END * 9 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT CASE + + 69 WHEN + CAST ( NULL AS INTEGER ) * 21 * - + 38 / - 43 THEN + 77 + + COUNT ( * ) ELSE NULL END * 9 col0
----
NULL

query I rowsort
SELECT ALL + 76 * - 91 AS col1
----
-6916

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 93 + + 12 + - 83 * - 78 AS col1
----
6393

query I rowsort
SELECT ALL - 35 + + 32 AS col1
----
-3

query I rowsort
SELECT + + 29 - - - CASE + 12 WHEN + + 18 + + 45 + 18 THEN NULL ELSE NULLIF ( - 46, 34 ) END col0
----
75

query I rowsort
SELECT ALL + - 44 + + 72 AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT - - 54 - + CAST( - SUM( ALL - 45 ) AS SIGNED ) + - 47 + - MAX( ( + ( + + 2 ) ) ) * + 1
----
-40

skipif mysql # not compatible
query I rowsort label-684
SELECT - - 54 - + CAST ( - SUM ( ALL - 45 ) AS INTEGER ) + - 47 + - MAX ( ( + ( + + 2 ) ) ) * + 1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-685
SELECT DISTINCT + COUNT( * ) * ( - 0 ) * - 50 * - - 75 AS col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-685
SELECT DISTINCT + COUNT ( * ) * ( - 0 ) * - 50 * - - 75 AS col0, + COUNT ( * )
----
0
1

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

query I rowsort
SELECT ALL ( ( - + ( + 65 ) ) ) AS col2
----
-65

query II rowsort
SELECT ALL + 86 + 78 AS col0, + 54
----
164
54

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT + MIN( ALL 68 ) + - - 51 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-689
SELECT + MIN ( ALL 68 ) + - - 51 AS col1
----
119

query II rowsort
SELECT - 68 AS col0, 49 AS col2
----
-68
49

query I rowsort
SELECT + 51 + + 31
----
82

query I rowsort
SELECT - 57 - - 32 AS col1
----
-25

query I rowsort
SELECT ALL - 14 * 32 AS col1
----
-448

query I rowsort
SELECT ALL CASE + - 80 WHEN 64 / 64 THEN NULL ELSE + 44 END
----
44

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

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

query II rowsort
SELECT - 79 AS col1, + 54 AS col2
----
-79
54

query I rowsort
SELECT - 4 + + 36 AS col2
----
32

query I rowsort
SELECT + 10 + - 29 + 88 + + 47 AS col1
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT ALL - 87 - + NULLIF ( COUNT( * ), - + COUNT( * ) * - - 26 ) + + + 0 - CASE - MAX( + 76 ) WHEN - 13 THEN NULL ELSE - 79 DIV + 16 END * - + 20 * + - 48
----
3752

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - 87 - + NULLIF ( COUNT ( * ), - + COUNT ( * ) * - - 26 ) + + + 0 - CASE - MAX ( + 76 ) WHEN - 13 THEN NULL ELSE - 79 / + 16 END * - + 20 * + - 48
----
3752

query I rowsort
SELECT ALL - 15 * - + ( + 89 )
----
1335

query I rowsort
SELECT - 97 + - 57 + + 96 * - - 75
----
7046

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL MIN( ALL - 39 ) * - 90
----
3510

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL MIN ( ALL - 39 ) * - 90
----
3510

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-704
SELECT DISTINCT - 70 DIV + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT - 70 / + COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL + MAX( DISTINCT - 37 ) * + 50 * - - COALESCE ( + 25, 0 ) AS col0
----
-46250

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + MAX ( DISTINCT - 37 ) * + 50 * - - COALESCE ( + 25, 0 ) AS col0
----
-46250

query I rowsort
SELECT - 55 + - + 62
----
-117

query I rowsort
SELECT + 20 + 78
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT DISTINCT 81 * - + MIN( + 67 ) AS col2
----
-5427

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT 81 * - + MIN ( + 67 ) AS col2
----
-5427

query I rowsort
SELECT + 5 * - 3 * + 93 * 31 + - 39
----
-43284

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

skipif mysql # not compatible
query I rowsort label-710
SELECT - + 76 / - 36 + - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT ALL + + 80 * + CAST( NULL AS SIGNED ) * + 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + + 80 * + CAST ( NULL AS INTEGER ) * + 46 col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-713
SELECT + + CAST( 22 AS SIGNED ) + + CAST( NULL AS SIGNED ) + + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT + + CAST ( 22 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL + 16 DIV + 62 * 39
----
0

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + 16 / + 62 * 39
----
0

query I rowsort
SELECT + 96 + 53
----
149

query I rowsort
SELECT + 19 + - NULLIF ( - 5, 35 ) - - + 20 * 87 AS col0
----
1764

query II rowsort
SELECT ALL + - 93 AS col0, - 2
----
-93
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT + COUNT( * ) * + - ( MIN( ALL - 96 ) ) * - + COUNT( * ) * - 16 * + + 67 + + 71 + - ( + 21 ) col0
----
102962

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT + COUNT ( * ) * + - ( MIN ( ALL - 96 ) ) * - + COUNT ( * ) * - 16 * + + 67 + + 71 + - ( + 21 ) col0
----
102962

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT ALL - ( - COUNT( * ) ) * + 7 * - 35 * SUM( 66 ) + + CASE + ( + 16 ) WHEN + 80 THEN 50 END, 34 * 17 * CASE COUNT( * ) WHEN + 54 THEN - + 97 WHEN + 28 THEN - + COUNT( ALL - NULLIF ( + + 41, + 23 - - 85 ) ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-720
SELECT ALL - ( - COUNT ( * ) ) * + 7 * - 35 * SUM ( 66 ) + + CASE + ( + 16 ) WHEN + 80 THEN 50 END, 34 * 17 * CASE COUNT ( * ) WHEN + 54 THEN - + 97 WHEN + 28 THEN - + COUNT ( ALL - NULLIF ( + + 41, + 23 - - 85 ) ) END AS col1
----
NULL
NULL

query I rowsort
SELECT ALL - + 2 * - + 16 + - 18
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT + + COUNT( 88 ) + - + 46 * - CASE CASE WHEN NOT NULL NOT IN ( 58, + 87, - 85 ) THEN - 98 * - 8 ELSE + 84 END WHEN 45 THEN - 13 * 4 * + 11 + - 30 + - 51 + + - 2 + + + 99 / - 65 WHEN + 89 + 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT + + COUNT ( 88 ) + - + 46 * - CASE CASE WHEN NOT NULL NOT IN ( 58, + 87, - 85 ) THEN - 98 * - 8 ELSE + 84 END WHEN 45 THEN - 13 * 4 * + 11 + - 30 + - 51 + + - 2 + + + 99 / - 65 WHEN + 89 + 48 THEN NULL END
----
NULL

query I rowsort
SELECT + - 9 + - 36 AS col1
----
-45

query I rowsort
SELECT ALL 0 * + 36 + - + 3 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-725
SELECT DISTINCT - + 27 * - 77 * + 87 / - - 18 * - COUNT( * ) + + 14 - 35 * + CAST( NULL AS SIGNED ) + - - 67 + NULLIF ( - 70, 13 + - - COUNT( * ) + - - COUNT( * ) ) + 43 - - 95 * + 26 + + 11 - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT - + 27 * - 77 * + 87 / - - 18 * - COUNT ( * ) + + 14 - 35 * + CAST ( NULL AS INTEGER ) + - - 67 + NULLIF ( - 70, 13 + - - COUNT ( * ) + - - COUNT ( * ) ) + 43 - - 95 * + 26 + + 11 - 33 AS col1
----
NULL

query I rowsort
SELECT 3 + 43
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT DISTINCT SUM( DISTINCT - 48 ) + 21 + - - 12 col0
----
-15

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT SUM ( DISTINCT - 48 ) + 21 + - - 12 col0
----
-15

query I rowsort
SELECT 22 + + 92
----
114

query I rowsort
SELECT ALL + 55 - - 49 * 48 * + 64
----
150583

query I rowsort
SELECT ( - + 36 ) * + + 14 * + 67 AS col2
----
-33768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-731
SELECT COUNT( * ) * + 32 AS col2, CAST( 97 AS SIGNED ) * + + 86 + - + ( + 98 )
----
32
8244

skipif mysql # not compatible
query II rowsort label-731
SELECT COUNT ( * ) * + 32 AS col2, CAST ( 97 AS INTEGER ) * + + 86 + - + ( + 98 )
----
32
8244

query III rowsort
SELECT 18 * + 1 AS col1, NULLIF ( + 51, - 91 * - 16 ) * - - 86 * - + 19 col2, - - ( - 33 )
----
18
-83334
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT SUM( ALL - + 80 ) - + 59
----
-139

skipif mysql # not compatible
query I rowsort label-733
SELECT SUM ( ALL - + 80 ) - + 59
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-734
SELECT - COUNT( * ) DIV + 52 - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-734
SELECT - COUNT ( * ) / + 52 - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT ALL + 66 * + 9, - 96 AS col1
----
594
-96

query I rowsort
SELECT 12 + - 39
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT 18 * COUNT( 68 ) AS col0, - 75 AS col0
----
18
-75

skipif mysql # not compatible
query II rowsort label-737
SELECT 18 * COUNT ( 68 ) AS col0, - 75 AS col0
----
18
-75

query I rowsort
SELECT DISTINCT - 57 col2
----
-57

query II rowsort
SELECT - 67 * - 91 AS col1, 52 AS col0
----
6097
52

query I rowsort
SELECT ALL + ( - 78 ) + - 72 + 84
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT + 33 * - 92 AS col1, - COUNT( * ) * + COUNT( * )
----
-3036
-1

skipif mysql # not compatible
query II rowsort label-741
SELECT + 33 * - 92 AS col1, - COUNT ( * ) * + COUNT ( * )
----
-3036
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT - ( + + 18 ) + - + 41 + 96 * - 79 * COUNT( * ) AS col0
----
-7643

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT - ( + + 18 ) + - + 41 + 96 * - 79 * COUNT ( * ) AS col0
----
-7643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT ALL + 35 + 93 + - 98 + - 13 - COUNT( * ) DIV 55 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL + 35 + 93 + - 98 + - 13 - COUNT ( * ) / 55 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT + CAST( - 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-744
SELECT + CAST ( - 93 AS INTEGER )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT + 65 + + - CASE + - COUNT( * ) WHEN + 57 THEN - 62 WHEN 24 + - 66 / + + 61 / - + 42 + - 53 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT + 65 + + - CASE + - COUNT ( * ) WHEN + 57 THEN - 62 WHEN 24 + - 66 / + + 61 / - + 42 + - 53 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT ALL 27 DIV 7 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL 27 / 7 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-748
SELECT ALL + - 61 + - 13 DIV 40 * CAST( + SUM( ALL - - 82 ) AS SIGNED ) + + 40 + 50
----
29

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + - 61 + - 13 / 40 * CAST ( + SUM ( ALL - - 82 ) AS INTEGER ) + + 40 + 50
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-749
SELECT DISTINCT - CASE - 7 WHEN + 84 THEN + + CAST( 76 AS DECIMAL ) WHEN + 93 / + 32 * - 62 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT - CASE - 7 WHEN + 84 THEN + + CAST ( 76 AS REAL ) WHEN + 93 / + 32 * - 62 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT NULLIF ( + + ( 58 ), MAX( + 19 ) * 6 * + COUNT( ALL 35 ) + - 96 ) * + - ( + + 39 ) + + 71 * - 65 col0
----
-6877

skipif mysql # not compatible
query I rowsort label-750
SELECT NULLIF ( + + ( 58 ), MAX ( + 19 ) * 6 * + COUNT ( ALL 35 ) + - 96 ) * + - ( + + 39 ) + + 71 * - 65 col0
----
-6877

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT 93 - - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-751
SELECT 93 - - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL MAX( DISTINCT - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL MAX ( DISTINCT - 82 ) col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT COALESCE ( ( + CAST( - 31 AS SIGNED ) ), - 91 * - COUNT( * ) ) + + 61 * COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-753
SELECT COALESCE ( ( + CAST ( - 31 AS INTEGER ) ), - 91 * - COUNT ( * ) ) + + 61 * COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT ( - + 17 ) * + 24 * + 3 * + + 53
----
-64872

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT COUNT( * ) * - 40
----
-40

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT COUNT ( * ) * - 40
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-756
SELECT CAST( NULL AS DECIMAL ) * - + 46 * + COUNT( * ) / + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT CAST ( NULL AS REAL ) * - + 46 * + COUNT ( * ) / + 61 AS col0
----
NULL

query II rowsort
SELECT ALL 39 AS col1, 57
----
39
57

query I rowsort
SELECT 2 + + - 55
----
-53

query I rowsort
SELECT ( - 81 ) + - 12 AS col0
----
-93

query I rowsort
SELECT 47 + - 59
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT CAST( NULL AS SIGNED ) / - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT CAST ( NULL AS INTEGER ) / - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - MAX( 75 ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-762
SELECT - MAX ( 75 ) col0
----
-75

query I rowsort
SELECT ALL 73 + 30
----
103

query I rowsort
SELECT 37 + 14 * 47
----
695

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT + 51 DIV - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-766
SELECT + 51 / - 22 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - COALESCE ( - - NULLIF ( + 8, + 82 ), + ( + SUM( + 98 ) ) * - - 53 * - 73 * + - ( - 37 ), 96 ) * CASE SUM( + 62 ) WHEN + 91 THEN - COUNT( * ) + 8 END + + 60 + - 78 + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT - COALESCE ( - - NULLIF ( + 8, + 82 ), + ( + SUM ( + 98 ) ) * - - 53 * - 73 * + - ( - 37 ), 96 ) * CASE SUM ( + 62 ) WHEN + 91 THEN - COUNT ( * ) + 8 END + + 60 + - 78 + + 79
----
NULL

query I rowsort
SELECT DISTINCT 30 * 71 + - 17
----
2113

onlyif mysql # aggregate syntax: 
query II rowsort label-769
SELECT ALL + 56 * - 51 + 98 AS col0, COUNT( * )
----
-2758
1

skipif mysql # not compatible
query II rowsort label-769
SELECT ALL + 56 * - 51 + 98 AS col0, COUNT ( * )
----
-2758
1

query I rowsort
SELECT + 18 + + - 8 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + 31 + + - 69 - - 48 + + ( 92 ) + 18 * + CASE - NULLIF ( - 59, 68 + - ( 51 ) + 20 ) WHEN + COALESCE ( + 1, 47, + - 92 + - - COUNT( * ) ) + + NULLIF ( - - 89, + 89 ) THEN + - COUNT( * ) + + + 75 - - COUNT( * ) * - - 5 / 22 WHEN ( + ( + - COUNT( * ) ) ) THEN 43 - + 89 END * + NULLIF ( + 22, - 43 ) - + 55 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT + 31 + + - 69 - - 48 + + ( 92 ) + 18 * + CASE - NULLIF ( - 59, 68 + - ( 51 ) + 20 ) WHEN + COALESCE ( + 1, 47, + - 92 + - - COUNT ( * ) ) + + NULLIF ( - - 89, + 89 ) THEN + - COUNT ( * ) + + + 75 - - COUNT ( * ) * - - 5 / 22 WHEN ( + ( + - COUNT ( * ) ) ) THEN 43 - + 89 END * + NULLIF ( + 22, - 43 ) - + 55 * + 51
----
NULL

query I rowsort
SELECT - 1 * 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT ( + COUNT( * ) ) * - 55 + 29 * - - COUNT( DISTINCT - 36 )
----
-26

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT ( + COUNT ( * ) ) * - 55 + 29 * - - COUNT ( DISTINCT - 36 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-774
SELECT ALL ( - - 36 ) * - - 33 / + 25 + + + COALESCE ( CAST( NULL AS SIGNED ), + 87 * 65 + + + AVG ( DISTINCT - 13 ) * + + CAST( NULL AS DECIMAL ) + + + NULLIF ( ( + 61 ), COALESCE ( - 81, - 5 * 59 ) ) * + - 53 * - 57 / + 61 * + MIN( + - 58 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL ( - - 36 ) * - - 33 / + 25 + + + COALESCE ( CAST ( NULL AS INTEGER ), + 87 * 65 + + + AVG ( DISTINCT - 13 ) * + + CAST ( NULL AS REAL ) + + + NULLIF ( ( + 61 ), COALESCE ( - 81, - 5 * 59 ) ) * + - 53 * - 57 / + 61 * + MIN ( + - 58 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT COUNT( DISTINCT 23 ) * 16 + + 37 + - 89 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT COUNT ( DISTINCT 23 ) * 16 + + 37 + - 89 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT DISTINCT 8 * 55 DIV + - ( - 97 ) + + 82
----
86

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT 8 * 55 / + - ( - 97 ) + + 82
----
86

query I rowsort
SELECT - 81 + - - 36 + - 21 * + 93
----
-1998

onlyif mysql # aggregate syntax: 
query III rowsort label-778
SELECT 41 * - 77 + + CASE - + 49 WHEN 47 * - ( 44 ) + + 63 * + COUNT( ALL 93 ) + + MAX( ALL + 41 ) + - 89 + 22 + + 33 THEN NULL ELSE - - COUNT( + - ( - - 50 ) ) END AS col0, 92 AS col2, - 3
----
-3156
92
-3

skipif mysql # not compatible
query III rowsort label-778
SELECT 41 * - 77 + + CASE - + 49 WHEN 47 * - ( 44 ) + + 63 * + COUNT ( ALL 93 ) + + MAX ( ALL + 41 ) + - 89 + 22 + + 33 THEN NULL ELSE - - COUNT ( + - ( - - 50 ) ) END AS col0, 92 AS col2, - 3
----
-3156
92
-3

query I rowsort
SELECT + - 81 * - 22 AS col2
----
1782

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-781
SELECT - + 48 - SUM( ALL 43 ), + 51 AS col2
----
-91
51

skipif mysql # not compatible
query II rowsort label-781
SELECT - + 48 - SUM ( ALL 43 ), + 51 AS col2
----
-91
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-782
SELECT COUNT( * ) * + 12 + 66 AS col0, 15 * - - ( COALESCE ( - 18, - 49 - - 19 ) ) - - 77 + + - COUNT( * ) * 7 - + + 80 DIV + CASE + + 10 WHEN ( - CASE + - COUNT( * ) WHEN COUNT( * ) + - 74 THEN NULL ELSE CAST( 99 AS SIGNED ) DIV 21 + - 42 END ) THEN - 36 ELSE + - 48 * + 99 END
----
78
-200

skipif mysql # not compatible
query II rowsort label-782
SELECT COUNT ( * ) * + 12 + 66 AS col0, 15 * - - ( COALESCE ( - 18, - 49 - - 19 ) ) - - 77 + + - COUNT ( * ) * 7 - + + 80 / + CASE + + 10 WHEN ( - CASE + - COUNT ( * ) WHEN COUNT ( * ) + - 74 THEN NULL ELSE CAST ( 99 AS INTEGER ) / 21 + - 42 END ) THEN - 36 ELSE + - 48 * + 99 END
----
78
-200

query I rowsort
SELECT ALL - 55 - + 15 AS col0
----
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-785
SELECT - ( - 51 ) * + CAST( + 72 AS SIGNED ) * - 46 * + CAST( + - ( - - 42 ) AS SIGNED ) - - 99 + - - 89 * - MIN( - 31 ) * COALESCE ( 94, - 70 ) * + - 71 + - CASE + ( COUNT( * ) ) WHEN - 7 THEN 80 WHEN - + 80 * + + CAST( - 16 AS DECIMAL ) * - COALESCE ( 76, + 43 + + COALESCE ( - - 37, - + 44 * + 50 * + + 26 * + COUNT( * ) * - 89 * 67, ( ( - 64 ) ) * - 84 ) - 86 ) - + 69 * - 32 THEN NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-785
SELECT - ( - 51 ) * + CAST ( + 72 AS INTEGER ) * - 46 * + CAST ( + - ( - - 42 ) AS INTEGER ) - - 99 + - - 89 * - MIN ( - 31 ) * COALESCE ( 94, - 70 ) * + - 71 + - CASE + ( COUNT ( * ) ) WHEN - 7 THEN 80 WHEN - + 80 * + + CAST ( - 16 AS REAL ) * - COALESCE ( 76, + 43 + + COALESCE ( - - 37, - + 44 * + 50 * + + 26 * + COUNT ( * ) * - 89 * 67, ( ( - 64 ) ) * - 84 ) - 86 ) - + 69 * - 32 THEN NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT MAX( - COALESCE ( + 97, 62 * + ( + - 84 ) ) )
----
-97

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT MAX ( - COALESCE ( + 97, 62 * + ( + - 84 ) ) )
----
-97

query I rowsort
SELECT ALL - 56 - 36 + ( - + 43 )
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT DISTINCT 28 DIV - ( - 67 ) * - 8 + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT 28 / - ( - 67 ) * - 8 + 45 AS col2
----
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT + 68 / + COALESCE ( + 45, 75 + + + CAST( NULL AS SIGNED ) + ( CAST( + - 26 AS SIGNED ) ) + + COUNT( * ) * CAST( + 96 AS SIGNED ) ) * - - SUM( DISTINCT 22 ) + + CASE + + 96 WHEN - 17 THEN + 83 END * + COALESCE ( + + COUNT( * ), + + 94 ) + + 8 + - 90 - + NULLIF ( + - 25, + AVG ( DISTINCT - 75 ) ) + + + COALESCE ( 32, 0 ) * 37 / + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT + 68 / + COALESCE ( + 45, 75 + + + CAST ( NULL AS INTEGER ) + ( CAST ( + - 26 AS INTEGER ) ) + + COUNT ( * ) * CAST ( + 96 AS INTEGER ) ) * - - SUM ( DISTINCT 22 ) + + CASE + + 96 WHEN - 17 THEN + 83 END * + COALESCE ( + + COUNT ( * ), + + 94 ) + + 8 + - 90 - + NULLIF ( + - 25, + AVG ( DISTINCT - 75 ) ) + + + COALESCE ( 32, 0 ) * 37 / + 19 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT + COUNT( * ) + + 64 DIV 52 + - + 58 * - MAX( DISTINCT 68 ) * + - MIN( + - 95 )
----
374682

skipif mysql # not compatible
query I rowsort label-792
SELECT + COUNT ( * ) + + 64 / 52 + - + 58 * - MAX ( DISTINCT 68 ) * + - MIN ( + - 95 )
----
374682

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-795
SELECT ALL + CASE + - 82 WHEN + - 13 THEN NULL ELSE + + 43 * CAST( + 83 AS SIGNED ) + - CASE - + 73 WHEN - 19 THEN 59 ELSE NULL END * + 26 - - COUNT( * ) END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + CASE + - 82 WHEN + - 13 THEN NULL ELSE + + 43 * CAST ( + 83 AS INTEGER ) + - CASE - + 73 WHEN - 19 THEN 59 ELSE NULL END * + 26 - - COUNT ( * ) END + 64
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT ALL 79 + - - 79 + + COUNT( DISTINCT 92 )
----
159

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL 79 + - - 79 + + COUNT ( DISTINCT 92 )
----
159

query I rowsort
SELECT ALL 55 + 90 + + 46 - + 41 + - - 99 + 15 * - + 22 - + 68 * - 5 AS col0
----
259

query I rowsort
SELECT + 61 * - - 65 AS col2
----
3965

query I rowsort
SELECT DISTINCT + 92 + + 86 + 30 col2
----
208

query I rowsort
SELECT ALL + 59 + 55 + 27 + + - 91
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + - 79 + ( + 38 ) + - MIN( 19 ) * - 56 * + CASE - ( + 49 ) WHEN 68 + + + 34 * + + COUNT( * ) + + - 96 THEN - - 32 WHEN + ( - 82 ) THEN NULL WHEN 54 - - 41 THEN - COUNT( * ) WHEN + MIN( - 45 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT + - 79 + ( + 38 ) + - MIN ( 19 ) * - 56 * + CASE - ( + 49 ) WHEN 68 + + + 34 * + + COUNT ( * ) + + - 96 THEN - - 32 WHEN + ( - 82 ) THEN NULL WHEN 54 - - 41 THEN - COUNT ( * ) WHEN + MIN ( - 45 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 37 * + 48 + - 56 + + 92 - - - 94
----
1718

query I rowsort
SELECT + 42 * - 18 * + - 53
----
40068

query I rowsort
SELECT ALL - 76 * - + 3 * + ( - 94 ) + + 35 AS col2
----
-21397

query I rowsort
SELECT ALL 23 * + + 11 + + 41
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT + + 15 DIV + + 48 - + + 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-808
SELECT + + 15 / + + 48 - + + 28 AS col2
----
-28

query I rowsort
SELECT + 70 - + ( + 20 ) + NULLIF ( - 76, - 36 ) + + 30
----
4

query I rowsort
SELECT ALL - 27 * - 89 + 1
----
2404

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL - COUNT( * ) * + 2 * - - 31
----
-62

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - COUNT ( * ) * + 2 * - - 31
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT + + 52 * COUNT( * ) * - COUNT( * ) + + 86 + - 58 * + 38 col1
----
-2170

skipif mysql # not compatible
query I rowsort label-813
SELECT + + 52 * COUNT ( * ) * - COUNT ( * ) + + 86 + - 58 * + 38 col1
----
-2170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT + 39 * + NULLIF ( 18, + 13 ) + 28 - - CASE - 44 WHEN - - 3 THEN + SUM( DISTINCT - 4 ) + - - 37 WHEN - 61 + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT + 39 * + NULLIF ( 18, + 13 ) + 28 - - CASE - 44 WHEN - - 3 THEN + SUM ( DISTINCT - 4 ) + - - 37 WHEN - 61 + 32 THEN NULL END
----
NULL

query I rowsort
SELECT + 59 * - 5 AS col1
----
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL 28 * - - COUNT( * ) * + 19
----
532

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL 28 * - - COUNT ( * ) * + 19
----
532

query I rowsort
SELECT COALESCE ( 2, - 61, - - 64 )
----
2

query I rowsort
SELECT - 57 * - 53 * + 58 AS col2
----
175218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-820
SELECT ALL - CAST( NULL AS SIGNED ) * - + CASE - 21 WHEN + COUNT( + 18 ) * + 85 / + 37 + - 69 THEN + - 77 WHEN - - 10 THEN + - 25 / - ( + 52 ) END / + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - CAST ( NULL AS INTEGER ) * - + CASE - 21 WHEN + COUNT ( + 18 ) * + 85 / + 37 + - 69 THEN + - 77 WHEN - - 10 THEN + - 25 / - ( + 52 ) END / + 45 AS col2
----
NULL

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

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

skipif mysql # not compatible
query II rowsort label-822
SELECT COUNT ( * ) AS col1, 37 AS col1
----
1
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-823
SELECT ALL CASE 13 WHEN + - 43 THEN ( - - CAST( NULL AS SIGNED ) ) + 27 WHEN - - ( 25 ) * COUNT( * ) * + 90 THEN NULL ELSE 19 * 71 - 52 * + - 4 + + COUNT( * ) END
----
1558

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL CASE 13 WHEN + - 43 THEN ( - - CAST ( NULL AS INTEGER ) ) + 27 WHEN - - ( 25 ) * COUNT ( * ) * + 90 THEN NULL ELSE 19 * 71 - 52 * + - 4 + + COUNT ( * ) END
----
1558

query I rowsort
SELECT + ( - 38 ) + - 53 AS col0
----
-91

query I rowsort
SELECT - 27 * + 36 AS col1
----
-972

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT ALL - CAST( NULL AS SIGNED ) * - COALESCE ( - 64, - CAST( - 16 AS SIGNED ) + - 36, - + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL - CAST ( NULL AS INTEGER ) * - COALESCE ( - 64, - CAST ( - 16 AS INTEGER ) + - 36, - + 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT - 91 + + + ( + 26 ) AS col1, MAX( DISTINCT - 88 ) + - + COUNT( * ) AS col0
----
-65
-89

skipif mysql # not compatible
query II rowsort label-829
SELECT - 91 + + + ( + 26 ) AS col1, MAX ( DISTINCT - 88 ) + - + COUNT ( * ) AS col0
----
-65
-89

query I rowsort
SELECT ALL - NULLIF ( 12, - + 30 ) + + + 95 AS col1
----
83

query I rowsort
SELECT ALL + 34 + - 79
----
-45

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

skipif mysql # not compatible
query I rowsort label-832
SELECT - COUNT ( ALL + 79 ) + COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT ALL + ( 75 ) + 87 * 78 * 71 + + - 4 DIV + 63
----
481881

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + ( 75 ) + 87 * 78 * 71 + + - 4 / + 63
----
481881

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT ALL - COUNT( * ) * + ( + ( + 84 ) ) * - ( 72 )
----
6048

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - COUNT ( * ) * + ( + ( + 84 ) ) * - ( 72 )
----
6048

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT ALL 73 DIV + 23
----
3

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 73 / + 23
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-836
SELECT - MIN( ALL + COALESCE ( 2, - - 24, + - 54 ) ) AS col1, 3 AS col1
----
-2
3

skipif mysql # not compatible
query II rowsort label-836
SELECT - MIN ( ALL + COALESCE ( 2, - - 24, + - 54 ) ) AS col1, 3 AS col1
----
-2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT - 49 + - 19 + - SUM( ALL + 75 )
----
-143

skipif mysql # not compatible
query I rowsort label-837
SELECT - 49 + - 19 + - SUM ( ALL + 75 )
----
-143

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

skipif mysql # not compatible
query I rowsort label-838
SELECT + - SUM ( DISTINCT + - 26 ) + + + MAX ( ALL - 55 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT - 4 * - COUNT( * ) + 28 + + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-839
SELECT - 4 * - COUNT ( * ) + 28 + + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-840
SELECT + CASE + 59 WHEN + 76 + - - 52 + ( - 68 ) * 91 THEN 58 END + - + 94 * 13 col2, NULLIF ( + + COALESCE ( - SUM( - - 73 ), - 11 ), + 87 ) * CAST( NULL AS SIGNED ) + - + 20
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-840
SELECT + CASE + 59 WHEN + 76 + - - 52 + ( - 68 ) * 91 THEN 58 END + - + 94 * 13 col2, NULLIF ( + + COALESCE ( - SUM ( - - 73 ), - 11 ), + 87 ) * CAST ( NULL AS INTEGER ) + - + 20
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT - 80 * + COUNT( * ) + 17
----
-63

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT - 80 * + COUNT ( * ) + 17
----
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT + - 42 + 20 + - 59 + - 29 / + 52 + - + 70 + + 13 + + 96 + + - COUNT( * ) * - - 85 * - NULLIF ( - - 79, CAST( - + 14 AS SIGNED ) - - 0 / + 11 + + ( - 72 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT + - 42 + 20 + - 59 + - 29 / + 52 + - + 70 + + 13 + + 96 + + - COUNT ( * ) * - - 85 * - NULLIF ( - - 79, CAST ( - + 14 AS INTEGER ) - - 0 / + 11 + + ( - 72 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 36 * - + 21 AS col0
----
756

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT + + ( + + COUNT( * ) ) * - - ( COALESCE ( - ( 66 ), - 88 * 63 ) ) + - + 54 + - - 45
----
-75

skipif mysql # not compatible
query I rowsort label-846
SELECT + + ( + + COUNT ( * ) ) * - - ( COALESCE ( - ( 66 ), - 88 * 63 ) ) + - + 54 + - - 45
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT 11 * 71 * + 87 * - - 88 - + COUNT( 22 ) AS col1
----
5979335

skipif mysql # not compatible
query I rowsort label-848
SELECT 11 * 71 * + 87 * - - 88 - + COUNT ( 22 ) AS col1
----
5979335

query I rowsort
SELECT 42 + + + 90 + 1 AS col2
----
133

query I rowsort
SELECT DISTINCT + 54 - 97
----
-43

query I rowsort
SELECT + - ( ( + 27 ) ) * + + 95 + 35 AS col1
----
-2530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-852
SELECT 26 * + + 47 + 32 * + ( + 4 ) * + COUNT( * ) + - - COUNT( * ) + - + 7 DIV 49 * - + 24
----
1351

skipif mysql # not compatible
query I rowsort label-852
SELECT 26 * + + 47 + 32 * + ( + 4 ) * + COUNT ( * ) + - - COUNT ( * ) + - + 7 / 49 * - + 24
----
1351

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT ALL + 4 DIV - - 80 * 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL + 4 / - - 80 * 74 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-854
SELECT 24 DIV + - 29 + + SUM( + 72 ) DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-854
SELECT 24 / + - 29 + + SUM ( + 72 ) / - 25
----
-2

query II rowsort
SELECT 78 AS col2, NULLIF ( - 3, 63 ) col2
----
78
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-856
SELECT DISTINCT + CAST( - COUNT( - - 40 ) AS SIGNED ) * + - 5 + + 20 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT + CAST ( - COUNT ( - - 40 ) AS INTEGER ) * + - 5 + + 20 AS col0
----
25

query I rowsort
SELECT 86 * 9
----
774

query II rowsort
SELECT + 17 AS col1, 95 AS col0
----
17
95

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT - MIN( DISTINCT 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT - MIN ( DISTINCT 71 )
----
-71

query I rowsort
SELECT 12 * 53 * - 24 AS col0
----
-15264

query I rowsort
SELECT 47 + + + 17
----
64

query II rowsort
SELECT + 80, 85 AS col0
----
80
85

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

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

query II rowsort
SELECT DISTINCT 39, NULLIF ( 97, 71 / - 12 ) AS col0
----
39
97

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT DISTINCT COUNT( * ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT COUNT ( * ) + + 25
----
26

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

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

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

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

query I rowsort
SELECT 63 * - - 73
----
4599

query II rowsort
SELECT - 1 AS col0, 83 * - 85
----
-1
-7055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-870
SELECT - 6, NULLIF ( - 38, ( 51 ) + ( 10 ) + 99 ) + CASE + + 38 WHEN - + COUNT( * ) THEN - NULLIF ( - CAST( NULL AS SIGNED ), + - COUNT( * ) / 92 ) WHEN MIN( DISTINCT + COALESCE ( + 21, - 61, 43 ) ) THEN + 99 END * COUNT( * ) + - + 33 / + 16 col0, + 28 AS col0
----
-6
NULL
28

skipif mysql # not compatible
query III rowsort label-870
SELECT - 6, NULLIF ( - 38, ( 51 ) + ( 10 ) + 99 ) + CASE + + 38 WHEN - + COUNT ( * ) THEN - NULLIF ( - CAST ( NULL AS INTEGER ), + - COUNT ( * ) / 92 ) WHEN MIN ( DISTINCT + COALESCE ( + 21, - 61, 43 ) ) THEN + 99 END * COUNT ( * ) + - + 33 / + 16 col0, + 28 AS col0
----
-6
NULL
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-871
SELECT COALESCE ( - 41, + + ( + + 87 ) * - + 94 * - - 55 + 24 ) * + 65 + - + 3 + 46 * - COUNT( * ) + - 2 * + 45 + - + COUNT( * ) * ( - 21 ) DIV + - 78 + + 59 + - COUNT( * ) * + 52 * COUNT( * ) * - + 13 + + + 34 + COUNT( * ) + - ( - 71 ) * + + 25 col1
----
-259

skipif mysql # not compatible
query I rowsort label-871
SELECT COALESCE ( - 41, + + ( + + 87 ) * - + 94 * - - 55 + 24 ) * + 65 + - + 3 + 46 * - COUNT ( * ) + - 2 * + 45 + - + COUNT ( * ) * ( - 21 ) / + - 78 + + 59 + - COUNT ( * ) * + 52 * COUNT ( * ) * - + 13 + + + 34 + COUNT ( * ) + - ( - 71 ) * + + 25 col1
----
-259

query I rowsort
SELECT ALL - 51 - 4 AS col1
----
-55

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-874
SELECT ( - NULLIF ( + 61, AVG ( - - 9 ) ) ) DIV - - 30 * + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-874
SELECT ( - NULLIF ( + 61, AVG ( - - 9 ) ) ) / - - 30 * + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT DISTINCT - + 64 * + 72 + - ( + ( + - 28 ) ) + + 42 AS col0
----
-4538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-876
SELECT DISTINCT + 49 * - 65 + - + 6 + - CAST( NULL AS SIGNED ) AS col2, - 41 DIV - ( + - ( + COUNT( * ) ) )
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-876
SELECT DISTINCT + 49 * - 65 + - + 6 + - CAST ( NULL AS INTEGER ) AS col2, - 41 / - ( + - ( + COUNT ( * ) ) )
----
NULL
-41

query III rowsort
SELECT + 47 AS col0, 13, + + 28 col0
----
47
13
28

query II rowsort
SELECT - 63 AS col1, 75 AS col2
----
-63
75

query I rowsort
SELECT 80 + 47 AS col2
----
127

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-880
SELECT - 61 DIV - CAST( + + 44 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-880
SELECT - 61 / - CAST ( + + 44 AS INTEGER )
----
1

query I rowsort
SELECT + 0 * - 2 AS col0
----
0

query I rowsort
SELECT 26 + + 70 col1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-883
SELECT + 69 AS col0, 37 DIV 82 AS col0
----
69
0

skipif mysql # not compatible
query II rowsort label-883
SELECT + 69 AS col0, 37 / 82 AS col0
----
69
0

query I rowsort
SELECT - 22 * 86 + 30
----
-1862

query I rowsort
SELECT - NULLIF ( - 90, - 10 - - 64 * 44 - - 48 / - 5 + NULLIF ( + ( + + 99 ), + 82 * + - 59 + - + 1 ) )
----
90

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

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - - MAX ( - 56 )
----
-56

query II rowsort
SELECT ALL + 75 * - + 25 AS col1, 45
----
-1875
45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-889
SELECT ALL - + CAST( NULL AS SIGNED ), - COUNT( * ) + ( - 90 ) col1
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-889
SELECT ALL - + CAST ( NULL AS INTEGER ), - COUNT ( * ) + ( - 90 ) col1
----
NULL
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT COUNT( * ) * + - COALESCE ( - + 34, + ( + 78 ), + 3 ) * - 16
----
-544

skipif mysql # not compatible
query I rowsort label-891
SELECT COUNT ( * ) * + - COALESCE ( - + 34, + ( + 78 ), + 3 ) * - 16
----
-544

query I rowsort
SELECT 93 * + - 24
----
-2232

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT 5 + - 53 DIV 35 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-893
SELECT 5 + - 53 / 35 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-894
SELECT + MIN( + 34 ), 38 col0
----
34
38

skipif mysql # not compatible
query II rowsort label-894
SELECT + MIN ( + 34 ), 38 col0
----
34
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-895
SELECT COUNT( * ) DIV 69, + COUNT( * ) * 62 + + 22 + - 46 + 46 * + 48 * + 76 col1
----
0
167846

skipif mysql # not compatible
query II rowsort label-895
SELECT COUNT ( * ) / 69, + COUNT ( * ) * 62 + + 22 + - 46 + 46 * + 48 * + 76 col1
----
0
167846

query I rowsort
SELECT ( - - 97 ) * - + 36 * - + 0 AS col1
----
0

query I rowsort
SELECT 50 - - 88 * - ( + - 76 )
----
6738

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL 4 + - 82 - + MIN( 12 ) + - ( + MIN( DISTINCT 83 ) ) AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL 4 + - 82 - + MIN ( 12 ) + - ( + MIN ( DISTINCT 83 ) ) AS col2
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-899
SELECT ALL - CAST( 46 AS SIGNED ) AS col1, 35 + - 31 * 71 AS col0
----
-46
-2166

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL - CAST ( 46 AS INTEGER ) AS col1, 35 + - 31 * 71 AS col0
----
-46
-2166

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT DISTINCT ( + - 64 ) DIV 17
----
-3

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT ( + - 64 ) / 17
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL MAX( COALESCE ( 46, + 68 ) ) + - 17 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL MAX ( COALESCE ( 46, + 68 ) ) + - 17 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT COUNT( * ) + - ( + 60 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-902
SELECT COUNT ( * ) + - ( + 60 ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - 9 + + COALESCE ( + - 79, CAST( NULL AS SIGNED ) )
----
-88

skipif mysql # not compatible
query I rowsort label-903
SELECT - 9 + + COALESCE ( + - 79, CAST ( NULL AS INTEGER ) )
----
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-904
SELECT DISTINCT - COALESCE ( - ( + + 11 ), + ( 36 ) DIV - CAST( NULL AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT - COALESCE ( - ( + + 11 ), + ( 36 ) / - CAST ( NULL AS INTEGER ) )
----
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT - - 9 * + 48 DIV 23 DIV + - 58
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT - - 9 * + 48 / 23 / + - 58
----
0

query I rowsort
SELECT - 36 + + 72 AS col0
----
36

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

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

query I rowsort
SELECT ALL + CASE + 18 WHEN + + 15 THEN - CASE 90 WHEN + - 65 THEN - - 10 * - - 55 WHEN - - 12 THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT - + COUNT( * ) * - 69 + 47 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - + COUNT ( * ) * - 69 + 47 AS col2
----
116

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

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

query I rowsort
SELECT - 40 + 96 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-913
SELECT - COUNT( * ) DIV - 70 - + 21 DIV COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-913
SELECT - COUNT ( * ) / - 70 - + 21 / COUNT ( * )
----
-21

query I rowsort
SELECT - 4 + - 82 - 67 + + 30 AS col2
----
-123

query II rowsort
SELECT NULLIF ( - 99, + 69 ) AS col0, + 87 + 2
----
-99
89

query I rowsort
SELECT - 43 * + 76 + 83 * - - 68 * - 50
----
-285468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-917
SELECT - COUNT( * ) * + 79 * CASE + 73 WHEN - - 80 * - 20 + + CAST( NULL AS SIGNED ) + + 42 THEN NULL WHEN - + COALESCE ( - 47, + 23 - + 13, + 82 ) THEN NULL ELSE + COUNT( * ) END AS col0, ( + 58 )
----
-79
58

skipif mysql # not compatible
query II rowsort label-917
SELECT - COUNT ( * ) * + 79 * CASE + 73 WHEN - - 80 * - 20 + + CAST ( NULL AS INTEGER ) + + 42 THEN NULL WHEN - + COALESCE ( - 47, + 23 - + 13, + 82 ) THEN NULL ELSE + COUNT ( * ) END AS col0, ( + 58 )
----
-79
58

query I rowsort
SELECT ALL 56 * - 56 AS col1
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - MAX( DISTINCT - 89 ) + + + 80 * 70
----
5689

skipif mysql # not compatible
query I rowsort label-919
SELECT - MAX ( DISTINCT - 89 ) + + + 80 * 70
----
5689

query I rowsort
SELECT - 74 * + 59 AS col0
----
-4366

onlyif mysql # DIV for integer division: 
query II rowsort label-921
SELECT + 56 + 63 DIV - 63 col1, 39 AS col2
----
55
39

skipif mysql # not compatible
query II rowsort label-921
SELECT + 56 + 63 / - 63 col1, 39 AS col2
----
55
39

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT + 5 * COUNT( + - 47 ) + + 37 AS col1, - 16 * - 27 + - 45 col2
----
42
387

skipif mysql # not compatible
query II rowsort label-924
SELECT + 5 * COUNT ( + - 47 ) + + 37 AS col1, - 16 * - 27 + - 45 col2
----
42
387

query II rowsort
SELECT ALL 24 * - - 73 - + 48 AS col2, + 44
----
1704
44

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT + MAX( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT + MAX ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT MIN( DISTINCT 32 ) col1
----
32

skipif mysql # not compatible
query I rowsort label-927
SELECT MIN ( DISTINCT 32 ) col1
----
32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT ALL - 49 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL - 49 / - 62
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-931
SELECT + + 38 DIV 79 DIV + + 82 AS col2, 72 AS col1
----
0
72

skipif mysql # not compatible
query II rowsort label-931
SELECT + + 38 / 79 / + + 82 AS col2, 72 AS col1
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + - CASE 45 WHEN COUNT( + 82 ) THEN + 93 WHEN 26 THEN NULL END * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT + - CASE 45 WHEN COUNT ( + 82 ) THEN + 93 WHEN 26 THEN NULL END * - 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT - 59, COUNT( * ) * - 11 + + 59 AS col0
----
-59
48

skipif mysql # not compatible
query II rowsort label-933
SELECT - 59, COUNT ( * ) * - 11 + + 59 AS col0
----
-59
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-934
SELECT + CAST( 56 AS SIGNED ) DIV - MIN( + + 81 ) * + - MIN( 10 )
----
0

skipif mysql # not compatible
query I rowsort label-934
SELECT + CAST ( 56 AS INTEGER ) / - MIN ( + + 81 ) * + - MIN ( 10 )
----
0

query I rowsort
SELECT ALL 26 * + 10 AS col1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT - NULLIF ( + ( 54 ), 55 ) + + 0 + + NULLIF ( MIN( ALL + + 20 ), + + 42 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - NULLIF ( + ( 54 ), 55 ) + + 0 + + NULLIF ( MIN ( ALL + + 20 ), + + 42 ) AS col2
----
-34

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

query II rowsort
SELECT 96 AS col2, - 29 * - COALESCE ( 13, + COALESCE ( + 80, - 26 + - COALESCE ( 99, 66 ) ) + + + 79 + NULLIF ( + 13, - 97 ) ) * - 24
----
96
-9048

query I rowsort
SELECT + - 17 + + ( - + 4 ) - NULLIF ( + 49, - + 57 * - COALESCE ( + - CASE 1 WHEN + 10 + 48 THEN 98 ELSE + NULLIF ( - 32, - 90 ) END, + + 71 ) + - + 98 )
----
-70

query I rowsort
SELECT - 72 - + 66
----
-138

query I rowsort
SELECT - 40 * - + 24 + - + 53
----
907

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT ALL + 78 DIV + 77 + + 24
----
25

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + 78 / + 77 + + 24
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT CAST( - + NULLIF ( + ( - NULLIF ( 75, - 20 ) ), - - 59 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-943
SELECT CAST ( - + NULLIF ( + ( - NULLIF ( 75, - 20 ) ), - - 59 ) AS INTEGER )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-944
SELECT DISTINCT - 61 * - 43 * - - ( + CAST( NULL AS SIGNED ) ) AS col1, 57 AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-944
SELECT DISTINCT - 61 * - 43 * - - ( + CAST ( NULL AS INTEGER ) ) AS col1, 57 AS col0
----
NULL
57

query I rowsort
SELECT ALL + COALESCE ( 57, - - 57 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-946
SELECT DISTINCT + MIN( - 27 ) DIV + 72 + - + 39 + + 6 + - 27
----
-60

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT + MIN ( - 27 ) / + 72 + - + 39 + + 6 + - 27
----
-60

query I rowsort
SELECT 17 * - 58 + 99 * 11 + - + 53 AS col2
----
50

query II rowsort
SELECT - 15 * + 10 AS col1, 85 col0
----
-150
85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-950
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN 41 * - CAST( NULL AS SIGNED ) THEN + + ( + 22 ) / - + ( - - COUNT( * ) ) + + 45 - - 9 WHEN + + 47 THEN + CAST( - 63 AS SIGNED ) + - + COUNT( * ) ELSE NULL END AS col0, + 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-950
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN 41 * - CAST ( NULL AS INTEGER ) THEN + + ( + 22 ) / - + ( - - COUNT ( * ) ) + + 45 - - 9 WHEN + + 47 THEN + CAST ( - 63 AS INTEGER ) + - + COUNT ( * ) ELSE NULL END AS col0, + 29
----
NULL
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-951
SELECT DISTINCT + CASE - 99 WHEN - 44 THEN NULL WHEN 7 THEN + NULLIF ( CAST( NULL AS SIGNED ), - 80 - - 71 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT + CASE - 99 WHEN - 44 THEN NULL WHEN 7 THEN + NULLIF ( CAST ( NULL AS INTEGER ), - 80 - - 71 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-952
SELECT ALL + 45 * - 64, 93 - - - 38 - - COUNT( * ) AS col1
----
-2880
56

skipif mysql # not compatible
query II rowsort label-952
SELECT ALL + 45 * - 64, 93 - - - 38 - - COUNT ( * ) AS col1
----
-2880
56

query I rowsort
SELECT DISTINCT 26 * + 2 + - 73
----
-21

query I rowsort
SELECT - 30 + + 84 - - - 16 AS col1
----
38

query I rowsort
SELECT 55 * - 58 AS col2
----
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + COUNT( * ) * + 42 * + + 75
----
3150

skipif mysql # not compatible
query I rowsort label-956
SELECT + COUNT ( * ) * + 42 * + + 75
----
3150

query I rowsort
SELECT - 13 - + + 80 + - + 89 AS col2
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-958
SELECT 32 + CAST( NULL AS SIGNED ) AS col1, 39 * - 58 AS col0
----
NULL
-2262

skipif mysql # not compatible
query II rowsort label-958
SELECT 32 + CAST ( NULL AS INTEGER ) AS col1, 39 * - 58 AS col0
----
NULL
-2262

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT ALL + MIN( ( 33 ) ) + - 15 + - 43 col0, + COUNT( * ) + + SUM( DISTINCT 85 )
----
-25
86

skipif mysql # not compatible
query II rowsort label-959
SELECT ALL + MIN ( ( 33 ) ) + - 15 + - 43 col0, + COUNT ( * ) + + SUM ( DISTINCT 85 )
----
-25
86

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT - COALESCE ( - 96, - 82 ) + COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT - COALESCE ( - 96, - 82 ) + COUNT ( * ) AS col0
----
97

query I rowsort
SELECT ALL + 87 + 35 * - 64
----
-2153

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-963
SELECT ALL - - ( + 77 ) + COUNT( 12 ) + - COALESCE ( - - 37, - - 66, + COUNT( + - CAST( - 59 AS SIGNED ) ) ) DIV + MIN( - 50 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - - ( + 77 ) + COUNT ( 12 ) + - COALESCE ( - - 37, - - 66, + COUNT ( + - CAST ( - 59 AS INTEGER ) ) ) / + MIN ( - 50 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-964
SELECT DISTINCT + 43 DIV - + ( - CAST( + + 54 AS SIGNED ) ) + + + 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT + 43 / - + ( - CAST ( + + 54 AS INTEGER ) ) + + + 76 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT 80 * - MAX( - 47 ) * - + 23 + + 41 + - 28 * + + 31
----
-87307

skipif mysql # not compatible
query I rowsort label-965
SELECT 80 * - MAX ( - 47 ) * - + 23 + + 41 + - 28 * + + 31
----
-87307

query I rowsort
SELECT 24 * 31
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL COUNT( * ) + - 12 * - 47
----
565

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL COUNT ( * ) + - 12 * - 47
----
565

query I rowsort
SELECT ALL 40 + 17 * - 85 * - 97
----
140205

query I rowsort
SELECT ALL 57 * 72 * 43 * - 32
----
-5647104

query I rowsort
SELECT DISTINCT 92 - + 35
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT 39 DIV + 53 + ( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-971
SELECT 39 / + 53 + ( 82 )
----
82

query I rowsort
SELECT - 10 * + 94 * - 6 - 46
----
5594

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT NULLIF ( 68, 17 ) + - 55 + 61 + COUNT( * ) + 41 * 36 * + 52
----
76827

skipif mysql # not compatible
query I rowsort label-973
SELECT NULLIF ( 68, 17 ) + - 55 + 61 + COUNT ( * ) + 41 * 36 * + 52
----
76827

query I rowsort
SELECT DISTINCT 38 - + 16 + + + 39 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-975
SELECT 46 * MIN( + 2 ), + 1 + + CAST( NULL AS SIGNED ) * 67 AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-975
SELECT 46 * MIN ( + 2 ), + 1 + + CAST ( NULL AS INTEGER ) * 67 AS col0
----
92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT ALL - COALESCE ( + + 39, + - COUNT( ALL + CAST( NULL AS SIGNED ) ) + - 77 + - 70 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - COALESCE ( + + 39, + - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + - 77 + - 70 ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT MIN( DISTINCT + 57 ) DIV 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-977
SELECT MIN ( DISTINCT + 57 ) / 53 AS col1
----
1

query I rowsort
SELECT ALL 79 * + 4
----
316

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT ALL - COUNT( * ), 4 AS col1
----
-1
4

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL - COUNT ( * ), 4 AS col1
----
-1
4

query I rowsort
SELECT 81 + + 70
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-981
SELECT 91 DIV 44 * + + COUNT( DISTINCT - 50 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-981
SELECT 91 / 44 * + + COUNT ( DISTINCT - 50 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT - 28 * + COUNT( * ) + 81 + + - 75 * - 14
----
1103

skipif mysql # not compatible
query I rowsort label-982
SELECT - 28 * + COUNT ( * ) + 81 + + - 75 * - 14
----
1103

query I rowsort
SELECT - 2 * - 16 col2
----
32

query I rowsort
SELECT ALL - ( - + 1 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-985
SELECT ALL - 72 + + - ( - COUNT( * ) ), - 79 DIV - - 79 AS col0
----
-71
-1

skipif mysql # not compatible
query II rowsort label-985
SELECT ALL - 72 + + - ( - COUNT ( * ) ), - 79 / - - 79 AS col0
----
-71
-1

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

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

query I rowsort
SELECT ALL + 97 + + 77 AS col1
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT DISTINCT NULLIF ( + 87, - 37 + - + COUNT( * ) / - + COALESCE ( COALESCE ( - 61, - 48 + - - 31, 68 * + AVG ( + 42 ) * + 0 + SUM( - + ( + NULLIF ( - - 37, - 29 ) ) ) ), - 62 - - - 53, + - MAX( 52 ) * 1 + - + 5 + - COUNT( 64 ) * 64 ) * - 33 ) + COUNT( ALL - + CAST( + 42 AS SIGNED ) )
----
88

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT NULLIF ( + 87, - 37 + - + COUNT ( * ) / - + COALESCE ( COALESCE ( - 61, - 48 + - - 31, 68 * + AVG ( + 42 ) * + 0 + SUM ( - + ( + NULLIF ( - - 37, - 29 ) ) ) ), - 62 - - - 53, + - MAX ( 52 ) * 1 + - + 5 + - COUNT ( 64 ) * 64 ) * - 33 ) + COUNT ( ALL - + CAST ( + 42 AS INTEGER ) )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-989
SELECT ALL - 67, CAST( NULL AS SIGNED ) * + + CAST( 96 AS SIGNED ) + + + 16 AS col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-989
SELECT ALL - 67, CAST ( NULL AS INTEGER ) * + + CAST ( 96 AS INTEGER ) + + + 16 AS col2
----
-67
NULL

query I rowsort
SELECT ALL + 16 + - 40 AS col0
----
-24

query II rowsort
SELECT 2, - ( + + 78 ) * - - 65 + 79 AS col0
----
2
-4991

query I rowsort
SELECT - 5 * 62
----
-310

query I rowsort
SELECT - 44 - - 86
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-994
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + MIN( 62 ) + + 52 + - 88 AS col0, 74 * + + 0 col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-994
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + MIN ( 62 ) + + 52 + - 88 AS col0, 74 * + + 0 col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-995
SELECT ALL + - COALESCE ( + COUNT( ( - - ( - 11 ) ) ), + 69 * - + 8 * - ( + 94 ) DIV + + 41 * - 48 + + - 21, + 6 * - MAX( ALL 45 ) ) + 45 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL + - COALESCE ( + COUNT ( ( - - ( - 11 ) ) ), + 69 * - + 8 * - ( + 94 ) / + + 41 * - 48 + + - 21, + 6 * - MAX ( ALL 45 ) ) + 45 AS col1
----
44

query I rowsort
SELECT - 71 * - 39 AS col1
----
2769

query I rowsort
SELECT 39 * 69 col1
----
2691

query I rowsort
SELECT ALL - 65 * 76
----
-4940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-999
SELECT ALL + + COALESCE ( 58, + + ( - 22 ) * 27 * - 68, - SUM( DISTINCT - + NULLIF ( 26, - - 3 + 76 ) ) * - + ( + COUNT( * ) ) ) + + + 35 * COALESCE ( - COUNT( * ), + 79 ) DIV - 55 + + SUM( ALL - 11 ) + + 9 * 41 AS col1
----
416

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + + COALESCE ( 58, + + ( - 22 ) * 27 * - 68, - SUM ( DISTINCT - + NULLIF ( 26, - - 3 + 76 ) ) * - + ( + COUNT ( * ) ) ) + + + 35 * COALESCE ( - COUNT ( * ), + 79 ) / - 55 + + SUM ( ALL - 11 ) + + 9 * 41 AS col1
----
416

query I rowsort
SELECT ALL + 20 * 22 AS col0
----
440

query II rowsort
SELECT ALL 6, - ( + + 5 ) AS col0
----
6
-5

query I rowsort
SELECT DISTINCT 99 - + ( + 29 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT SUM( + ( + 16 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT SUM ( + ( + 16 ) ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT 21 DIV 95 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT 21 / 95 / - 43
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1006
SELECT - COUNT( * ) AS col1, COALESCE ( 47, - COUNT( * ) * - CAST( - - COUNT( * ) AS SIGNED ) - + 14 - 74 + COUNT( * ) * + 74, + - SUM( DISTINCT + + 42 ) * - COUNT( * ) - + 45 ) * + ( + - 28 ) AS col0
----
-1
-1316

skipif mysql # not compatible
query II rowsort label-1006
SELECT - COUNT ( * ) AS col1, COALESCE ( 47, - COUNT ( * ) * - CAST ( - - COUNT ( * ) AS INTEGER ) - + 14 - 74 + COUNT ( * ) * + 74, + - SUM ( DISTINCT + + 42 ) * - COUNT ( * ) - + 45 ) * + ( + - 28 ) AS col0
----
-1
-1316

query I rowsort
SELECT ( + 21 ) - + 34 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1008
SELECT ALL 98 * - ( - - ( - COUNT( * ) ) ) AS col1, + AVG ( ALL + + 65 ) * 82 + - 32 * COUNT( * ) - + COUNT( * ) + - ( CAST( - - 43 AS SIGNED ) ) / CASE + MIN( ALL + 61 ) WHEN NULLIF ( - + 35, - COUNT( CAST( + - 40 AS SIGNED ) ) ) * - - MAX( DISTINCT - 51 ) + CAST( NULL AS SIGNED ) + + 42 THEN - 74 WHEN 62 THEN NULL END + + 54 - - 8 * - - 83
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL 98 * - ( - - ( - COUNT ( * ) ) ) AS col1, + AVG ( ALL + + 65 ) * 82 + - 32 * COUNT ( * ) - + COUNT ( * ) + - ( CAST ( - - 43 AS INTEGER ) ) / CASE + MIN ( ALL + 61 ) WHEN NULLIF ( - + 35, - COUNT ( CAST ( + - 40 AS INTEGER ) ) ) * - - MAX ( DISTINCT - 51 ) + CAST ( NULL AS INTEGER ) + + 42 THEN - 74 WHEN 62 THEN NULL END + + 54 - - 8 * - - 83
----
98
NULL

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL + 44 / - + COUNT ( * )
----
-44

query I rowsort
SELECT 56 * - 73
----
-4088

query I rowsort
SELECT DISTINCT - 72 * 79
----
-5688

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1013
SELECT + COUNT( * ) + + - NULLIF ( 21, + 73 * COUNT( * ) ) DIV + 41 * + + 79
----
1

skipif mysql # not compatible
query I rowsort label-1013
SELECT + COUNT ( * ) + + - NULLIF ( 21, + 73 * COUNT ( * ) ) / + 41 * + + 79
----
1

query I rowsort
SELECT ALL 38 * - - NULLIF ( 88, - - 79 )
----
3344

query I rowsort
SELECT - 61 - - 87 - - 1
----
27

query I rowsort
SELECT ALL 55 * + + 83 * + 12 + + - 68 * 6 - - - 59 AS col1
----
54313

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT COUNT( ALL - - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1017
SELECT COUNT ( ALL - - 75 ) AS col1
----
1

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

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

query I rowsort
SELECT + - 76 * 2 col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL - 35 * 6 * + CASE + 7 WHEN + - NULLIF ( - AVG ( ALL + - 57 ), + 80 + - 83 ) - COUNT( * ) * - COUNT( * ) * ( + 52 ) THEN - 40 END + + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL - 35 * 6 * + CASE + 7 WHEN + - NULLIF ( - AVG ( ALL + - 57 ), + 80 + - 83 ) - COUNT ( * ) * - COUNT ( * ) * ( + 52 ) THEN - 40 END + + - 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1021
SELECT ALL + - COUNT( * ) AS col0, 84 DIV + 10 col0
----
-1
8

skipif mysql # not compatible
query II rowsort label-1021
SELECT ALL + - COUNT ( * ) AS col0, 84 / + 10 col0
----
-1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT COUNT( * ) * - + 96 - - - SUM( ALL - - 52 ) + - + 18 AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-1022
SELECT COUNT ( * ) * - + 96 - - - SUM ( ALL - - 52 ) + - + 18 AS col2
----
-166

query I rowsort
SELECT ALL 50 * + COALESCE ( + 95, - 50, - ( 50 ) ) AS col2
----
4750

query II rowsort
SELECT ALL + 74 col1, 10 AS col0
----
74
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1026
SELECT - + 70 * - + COALESCE ( - - 50, CAST( - 58 AS SIGNED ) + + 84 * + 6 * - 88 * + 34, - 14 ) * + COUNT( * ) * - 11 * - - COUNT( * ) + - - 73 + + 50 * + 62 - - 34 + - 37 AS col1
----
-35330

skipif mysql # not compatible
query I rowsort label-1026
SELECT - + 70 * - + COALESCE ( - - 50, CAST ( - 58 AS INTEGER ) + + 84 * + 6 * - 88 * + 34, - 14 ) * + COUNT ( * ) * - 11 * - - COUNT ( * ) + - - 73 + + 50 * + 62 - - 34 + - 37 AS col1
----
-35330

query I rowsort
SELECT - + 99 - + + 82 AS col0
----
-181

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1029
SELECT ALL + - 98 * + 64 + 10 + - 66 * CAST( 3 AS SIGNED ) + 42 col0
----
-6418

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL + - 98 * + 64 + 10 + - 66 * CAST ( 3 AS INTEGER ) + 42 col0
----
-6418

query II rowsort
SELECT ALL 35, 41 * 74 AS col2
----
35
3034

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT DISTINCT COUNT( DISTINCT - 99 ), + 59 AS col0
----
1
59

skipif mysql # not compatible
query II rowsort label-1031
SELECT DISTINCT COUNT ( DISTINCT - 99 ), + 59 AS col0
----
1
59

query II rowsort
SELECT ALL + 57 * + 99 col1, + 71
----
5643
71

query II rowsort
SELECT - 92 + - 50 col0, - 95
----
-142
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL + ( 54 ) * + 14 + - CASE + + 0 WHEN + NULLIF ( + - 98, - 63 + - CASE + - 61 WHEN - CAST( NULL AS SIGNED ) + + 24 THEN + COUNT( * ) + 48 / - - 26 WHEN - 53 THEN NULL END ) * 84 THEN + + 78 * COUNT( * ) / + 5 * COUNT( * ) WHEN AVG ( - 58 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + ( 54 ) * + 14 + - CASE + + 0 WHEN + NULLIF ( + - 98, - 63 + - CASE + - 61 WHEN - CAST ( NULL AS INTEGER ) + + 24 THEN + COUNT ( * ) + 48 / - - 26 WHEN - 53 THEN NULL END ) * 84 THEN + + 78 * COUNT ( * ) / + 5 * COUNT ( * ) WHEN AVG ( - 58 ) THEN NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT - SUM( - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-1037
SELECT - SUM ( - 58 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1038
SELECT - ( + 96 ) DIV SUM( CAST( - - 45 AS SIGNED ) ) * - 37 + 27 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-1038
SELECT - ( + 96 ) / SUM ( CAST ( - - 45 AS INTEGER ) ) * - 37 + 27 AS col1
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1039
SELECT ALL 76 DIV - + 74 + + SUM( ALL 6 )
----
5

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL 76 / - + 74 + + SUM ( ALL 6 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - 38 + ( + - SUM( ( 70 ) ) ) - - 19
----
-89

skipif mysql # not compatible
query I rowsort label-1040
SELECT - 38 + ( + - SUM ( ( 70 ) ) ) - - 19
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1041
SELECT + COUNT( DISTINCT + 98 ) AS col0, CAST( NULL AS SIGNED ) + 5
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1041
SELECT + COUNT ( DISTINCT + 98 ) AS col0, CAST ( NULL AS INTEGER ) + 5
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL + + 26 * - 27 + + MAX( - 32 ) * SUM( + + 4 )
----
-830

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + + 26 * - 27 + + MAX ( - 32 ) * SUM ( + + 4 )
----
-830

query II rowsort
SELECT DISTINCT 9 * + NULLIF ( - ( + 59 ), + 89 + - 89 ) + 22 AS col2, - ( + + 82 )
----
-509
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT DISTINCT + + CAST( + + 46 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + + CAST ( + + 46 AS INTEGER ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1045
SELECT DISTINCT - 52 * - CASE WHEN NOT ( NOT + ( + ( + 41 ) ) < 64 + + CAST( NULL AS SIGNED ) ) THEN + 88 + + 40 + - 47 ELSE NULL END + - 78 * + 9, + 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-1045
SELECT DISTINCT - 52 * - CASE WHEN NOT ( NOT + ( + ( + 41 ) ) < 64 + + CAST ( NULL AS INTEGER ) ) THEN + 88 + + 40 + - 47 ELSE NULL END + - 78 * + 9, + 98 AS col2
----
NULL
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT - + 9 * - 93 * + 95 AS col0, CAST( NULL AS SIGNED )
----
79515
NULL

skipif mysql # not compatible
query II rowsort label-1046
SELECT - + 9 * - 93 * + 95 AS col0, CAST ( NULL AS INTEGER )
----
79515
NULL

query I rowsort
SELECT - 29 * + - 29 + - + 61 * - 98 + 58
----
6877

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

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

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

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - MAX ( ALL - 26 )
----
26

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

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

query I rowsort
SELECT + + 7 - 77
----
-70

query I rowsort
SELECT - 99 * + - 59 AS col2
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT 89 * - - 0 - + 47 + COUNT( ALL 7 )
----
-46

skipif mysql # not compatible
query I rowsort label-1053
SELECT 89 * - - 0 - + 47 + COUNT ( ALL 7 )
----
-46

query I rowsort
SELECT + 28 * - 59
----
-1652

query II rowsort
SELECT - 61 col0, 52
----
-61
52

query II rowsort
SELECT ALL 18 AS col1, 85
----
18
85

query I rowsort
SELECT DISTINCT 21 + 90
----
111

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1058
SELECT DISTINCT 80 + + - COUNT( * ) + ( - CAST( NULL AS DECIMAL ) ) * - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT 80 + + - COUNT ( * ) + ( - CAST ( NULL AS REAL ) ) * - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT 7 + - NULLIF ( + 89, - COUNT( * ) * - + 67 * + 20 - + - ( - COUNT( * ) ) * - ( + CASE + 60 WHEN 1 + + 47 THEN - MIN( ALL - 51 ) ELSE + + 46 END ) + 59 )
----
-82

skipif mysql # not compatible
query I rowsort label-1059
SELECT 7 + - NULLIF ( + 89, - COUNT ( * ) * - + 67 * + 20 - + - ( - COUNT ( * ) ) * - ( + CASE + 60 WHEN 1 + + 47 THEN - MIN ( ALL - 51 ) ELSE + + 46 END ) + 59 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1060
SELECT COUNT( * ) - + ( 23 ) + + CAST( NULL AS SIGNED ) + 83 * - - 88 * + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT COUNT ( * ) - + ( 23 ) + + CAST ( NULL AS INTEGER ) + 83 * - - 88 * + + 34
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1061
SELECT DISTINCT - COUNT ( * ), 22 AS col1
----
-1
22

query I rowsort
SELECT ALL + 82 + 73
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT DISTINCT + 9 * - - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT + 9 * - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1064
SELECT ALL - 26 AS col1, - CAST( 15 AS SIGNED ) DIV + + 25 * + 68 + + 62 AS col0
----
-26
62

skipif mysql # not compatible
query II rowsort label-1064
SELECT ALL - 26 AS col1, - CAST ( 15 AS INTEGER ) / + + 25 * + 68 + + 62 AS col0
----
-26
62

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

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

query I rowsort
SELECT - 97 - - + 10 + 46 AS col2
----
-41

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

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

query I rowsort
SELECT + 71 * + 13 AS col0
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT 38 * + COUNT( * ) * + 74 + + 8 AS col1
----
2820

skipif mysql # not compatible
query I rowsort label-1069
SELECT 38 * + COUNT ( * ) * + 74 + + 8 AS col1
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL - - CASE - MAX( DISTINCT - - 75 ) WHEN 98 / + - AVG ( + + 93 ) - 70 * + + 13 THEN + ( + MAX( ALL 31 ) ) - - 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - - CASE - MAX ( DISTINCT - - 75 ) WHEN 98 / + - AVG ( + + 93 ) - 70 * + + 13 THEN + ( + MAX ( ALL 31 ) ) - - 51 END AS col0
----
NULL

query I rowsort
SELECT - 37 * - + 18
----
666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1072
SELECT + COALESCE ( + COUNT( ALL - + 96 ), 32 DIV 71 - + + 44 * COUNT( * ) + 39 + 56 * - - 18 + + 26 ) - - + 73 * + 13 AS col0
----
950

skipif mysql # not compatible
query I rowsort label-1072
SELECT + COALESCE ( + COUNT ( ALL - + 96 ), 32 / 71 - + + 44 * COUNT ( * ) + 39 + 56 * - - 18 + + 26 ) - - + 73 * + 13 AS col0
----
950

query I rowsort
SELECT DISTINCT - - 89 * - COALESCE ( - - 50, - + 29, - + 40 ) + + ( - 65 ) AS col2
----
-4515

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT DISTINCT + + MIN( 2 ) * + CAST( + - 70 AS SIGNED ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT + + MIN ( 2 ) * + CAST ( + - 70 AS INTEGER ) AS col2
----
-140

query I rowsort
SELECT 73 * 19 AS col1
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT 93 - + 7 + + 3 + - - 53 * - - COUNT( * ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-1077
SELECT 93 - + 7 + + 3 + - - 53 * - - COUNT ( * ) AS col1
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1078
SELECT ALL COUNT( * ), + 72 DIV 20 + + 5 AS col0
----
1
8

skipif mysql # not compatible
query II rowsort label-1078
SELECT ALL COUNT ( * ), + 72 / 20 + + 5 AS col0
----
1
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT 76 - - 12 * - CAST( NULL AS SIGNED ) / + 27 / + 78 + 2 + + + 34 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT 76 - - 12 * - CAST ( NULL AS INTEGER ) / + 27 / + 78 + 2 + + + 34 * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT SUM( - 46 ) + - + 60 * + 30 + + MIN( + 55 )
----
-1791

skipif mysql # not compatible
query I rowsort label-1080
SELECT SUM ( - 46 ) + - + 60 * + 30 + + MIN ( + 55 )
----
-1791

query I rowsort
SELECT ALL 45 + - - ( 12 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT 66 + 62 * + - COUNT( * ) * + 90 AS col0, - COUNT( * ) AS col1
----
-5514
-1

skipif mysql # not compatible
query II rowsort label-1082
SELECT 66 + 62 * + - COUNT ( * ) * + 90 AS col0, - COUNT ( * ) AS col1
----
-5514
-1

query I rowsort
SELECT ALL 68 * - 83
----
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL 39 + - 23 + - 77 * + 18 * - MAX( ALL - 51 ) - - + 97 col1
----
-70573

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL 39 + - 23 + - 77 * + 18 * - MAX ( ALL - 51 ) - - + 97 col1
----
-70573

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT 85 + + 26 AS col0, COUNT( * ) * + 91
----
111
91

skipif mysql # not compatible
query II rowsort label-1085
SELECT 85 + + 26 AS col0, COUNT ( * ) * + 91
----
111
91

query I rowsort
SELECT 56 * + 22 col1
----
1232

query I rowsort
SELECT ALL 32 * - 69 * + + 48 AS col1
----
-105984

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ( + + 80 ) + - COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1088
SELECT ( + + 80 ) + - COUNT ( * ) AS col0
----
79

query II rowsort
SELECT DISTINCT 38 * 47 AS col1, 29
----
1786
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1090
SELECT ALL + MIN( ALL 0 ) + - 4 * - 91 - 53 + 32 + + 71 DIV - NULLIF ( 63, + + 16 * - 91 * + + 22 )
----
342

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + MIN ( ALL 0 ) + - 4 * - 91 - 53 + 32 + + 71 / - NULLIF ( 63, + + 16 * - 91 * + + 22 )
----
342

query I rowsort
SELECT NULLIF ( 60, - 79 ) * - ( + + 54 ) AS col1
----
-3240

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

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

query I rowsort
SELECT 6 + - 17 * + ( 93 ) AS col0
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ALL 66 - + + MIN( DISTINCT + - 47 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL 66 - + + MIN ( DISTINCT + - 47 ) AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL - MAX( DISTINCT 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - MAX ( DISTINCT 18 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT - 95 + - + 88 - + 33 + + COUNT( * ) + 89 * + 99 * - CASE 29 WHEN + + 5 * 84 + - + 76 + CAST( + 38 AS SIGNED ) * - MIN( DISTINCT 16 ) / + 7 THEN + COUNT( * ) END + - + SUM( DISTINCT - + 43 ) * - 2 * - ( + 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 95 + - + 88 - + 33 + + COUNT ( * ) + 89 * + 99 * - CASE 29 WHEN + + 5 * 84 + - + 76 + CAST ( + 38 AS INTEGER ) * - MIN ( DISTINCT 16 ) / + 7 THEN + COUNT ( * ) END + - + SUM ( DISTINCT - + 43 ) * - 2 * - ( + 22 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1097
SELECT - 69 * - 26 AS col1, CAST( - 38 AS SIGNED ) AS col0
----
1794
-38

skipif mysql # not compatible
query II rowsort label-1097
SELECT - 69 * - 26 AS col1, CAST ( - 38 AS INTEGER ) AS col0
----
1794
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT ALL - 98 * + 11 + + - 66 * COUNT( * ) AS col2, 74 AS col0
----
-1144
74

skipif mysql # not compatible
query II rowsort label-1098
SELECT ALL - 98 * + 11 + + - 66 * COUNT ( * ) AS col2, 74 AS col0
----
-1144
74

query I rowsort
SELECT + 78 + + 61 * - - 34 * + 39
----
80964

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT DISTINCT SUM( + 97 ) * + 5 AS col2
----
485

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT SUM ( + 97 ) * + 5 AS col2
----
485

query I rowsort
SELECT ALL + 37 * - - 42
----
1554

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT 39 + - - MIN( 74 )
----
113

skipif mysql # not compatible
query I rowsort label-1103
SELECT 39 + - - MIN ( 74 )
----
113

query I rowsort
SELECT - 2 * - + 8 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1105
SELECT - ( + NULLIF ( + 10, - CAST( NULL AS DECIMAL ) ) ) * 92 + + + 63 + - ( 80 ) col1
----
-937

skipif mysql # not compatible
query I rowsort label-1105
SELECT - ( + NULLIF ( + 10, - CAST ( NULL AS REAL ) ) ) * 92 + + + 63 + - ( 80 ) col1
----
-937

query I rowsort
SELECT ALL - - 11 * - 27
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + ( 91 ) * - COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-1107
SELECT + ( 91 ) * - COUNT ( * ) col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1108
SELECT DISTINCT + 94 DIV - COUNT( * ) + 40 * + 82 AS col0
----
3186

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT + 94 / - COUNT ( * ) + 40 * + 82 AS col0
----
3186

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL - 26 + SUM( CASE + 14 WHEN 42 THEN - - 86 + - + 65 END ) + - + 51 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - 26 + SUM ( CASE + 14 WHEN 42 THEN - - 86 + - + 65 END ) + - + 51 * 64
----
NULL

query II rowsort
SELECT 36 AS col1, + 18 * - ( + 42 ) AS col1
----
36
-756

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL 27 + - 71 DIV + 41
----
26

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL 27 + - 71 / + 41
----
26

query II rowsort
SELECT - 33 * - - 21 * + + 96, 1 + - 8 AS col1
----
-66528
-7

query I rowsort
SELECT ALL - 26 + + + 20 AS col1
----
-6

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

skipif mysql # not compatible
query I rowsort label-1115
SELECT - COUNT ( ( - 22 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - COUNT( * ) - + + 70 + 22
----
-49

skipif mysql # not compatible
query I rowsort label-1116
SELECT - COUNT ( * ) - + + 70 + 22
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL CASE + - 82 WHEN + - COUNT( * ) THEN NULL ELSE - 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL CASE + - 82 WHEN + - COUNT ( * ) THEN NULL ELSE - 75 END
----
-75

query I rowsort
SELECT ALL 91 + + - 31
----
60

query I rowsort
SELECT - 97 - - COALESCE ( + + 51, + 71 ) AS col0
----
-46

query I rowsort
SELECT + 3 * 35
----
105

query I rowsort
SELECT DISTINCT NULLIF ( 19, + 47 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT ALL CASE + 8 WHEN + 65 THEN + COALESCE ( ( + + 3 ), COUNT( * ) ) * + MAX( + 0 ) + + 74 * 1 WHEN 10 * + 86 - - + 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL CASE + 8 WHEN + 65 THEN + COALESCE ( ( + + 3 ), COUNT ( * ) ) * + MAX ( + 0 ) + + 74 * 1 WHEN 10 * + 86 - - + 64 THEN NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - ( + 46 ), + 3 )
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT DISTINCT - MIN( ALL - - 63 ) - ( 64 ) col0
----
-127

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - MIN ( ALL - - 63 ) - ( 64 ) col0
----
-127

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

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

query I rowsort
SELECT + 37 * - ( - 24 ) AS col1
----
888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1128
SELECT + 70 + + MAX( DISTINCT + 28 ) AS col2, MAX( + 74 ) DIV - 85 + - 86 + CAST( + - 54 AS SIGNED ) AS col0
----
98
-140

skipif mysql # not compatible
query II rowsort label-1128
SELECT + 70 + + MAX ( DISTINCT + 28 ) AS col2, MAX ( + 74 ) / - 85 + - 86 + CAST ( + - 54 AS INTEGER ) AS col0
----
98
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT COUNT( * ) * 74 * 75 + 95 AS col1
----
5645

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT COUNT ( * ) * 74 * 75 + 95 AS col1
----
5645

query I rowsort
SELECT + 83 + 33 AS col1
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1131
SELECT + + 32 DIV + SUM( - + 33 ) + 69
----
69

skipif mysql # not compatible
query I rowsort label-1131
SELECT + + 32 / + SUM ( - + 33 ) + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + + COUNT( * ) * 27 + + 86 + - 83
----
30

skipif mysql # not compatible
query I rowsort label-1132
SELECT + + COUNT ( * ) * 27 + + 86 + - 83
----
30

query I rowsort
SELECT - COALESCE ( 59, 5 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL - ( COUNT( + 84 ) ) * 83
----
-83

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - ( COUNT ( + 84 ) ) * 83
----
-83

query I rowsort
SELECT DISTINCT 71 * + 67
----
4757

query I rowsort
SELECT ALL 76 * ( + + COALESCE ( - - 27, 16 ) ) AS col1
----
2052

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1137
SELECT 97 DIV - + 75 + 10 + - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1137
SELECT 97 / - + 75 + 10 + - COUNT ( * ) AS col2
----
8

query I rowsort
SELECT - 69 * 92 AS col0
----
-6348

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL - 88 * SUM( - + 46 ) + + 45
----
4093

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL - 88 * SUM ( - + 46 ) + + 45
----
4093

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT - NULLIF ( - + CASE ( - - COUNT( + + 4 ) ) WHEN - 56 THEN + ( - 92 ) END, + NULLIF ( + 30, 70 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT - NULLIF ( - + CASE ( - - COUNT ( + + 4 ) ) WHEN - 56 THEN + ( - 92 ) END, + NULLIF ( + 30, 70 ) )
----
NULL

query I rowsort
SELECT ALL 47 * 6 + - + 94 - + - 84 AS col2
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + - SUM( + 57 ) * + 22 AS col2
----
-1254

skipif mysql # not compatible
query I rowsort label-1142
SELECT + - SUM ( + 57 ) * + 22 AS col2
----
-1254

query I rowsort
SELECT - 45 - 15 AS col2
----
-60

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

query I rowsort
SELECT DISTINCT - 83 * - + 32 + + 0 col2
----
2656

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL + NULLIF ( - 64, - 96 + - COUNT( ALL - 71 ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL + NULLIF ( - 64, - 96 + - COUNT ( ALL - 71 ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + 45 * + - MAX( 7 )
----
-315

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 45 * + - MAX ( 7 )
----
-315

query I rowsort
SELECT NULLIF ( - 59, + 72 + + 33 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + 21 + CASE - + 70 WHEN COUNT( * ) THEN - 4 * + ( - 66 ) + + MIN( DISTINCT - - 27 ) WHEN + 24 THEN 34 END * - 70 - + 77 + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT + 21 + CASE - + 70 WHEN COUNT ( * ) THEN - 4 * + ( - 66 ) + + MIN ( DISTINCT - - 27 ) WHEN + 24 THEN 34 END * - 70 - + 77 + 15 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1150
SELECT - CASE - CAST( - 82 AS SIGNED ) WHEN - 31 * COUNT( * ) THEN ( + - 46 ) ELSE NULL END + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT - CASE - CAST ( - 82 AS INTEGER ) WHEN - 31 * COUNT ( * ) THEN ( + - 46 ) ELSE NULL END + 72
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1151
SELECT - 3 - 17 DIV 64 DIV 51, + 65 DIV - + 67 + - 42 AS col1
----
-3
-42

skipif mysql # not compatible
query II rowsort label-1151
SELECT - 3 - 17 / 64 / 51, + 65 / - + 67 + - 42 AS col1
----
-3
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT CASE + + COUNT( * ) WHEN - + 98 THEN - COUNT( * ) WHEN COALESCE ( + - 46, COUNT( * ) ) THEN NULL END * + - 40 + 73 AS col2, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1152
SELECT CASE + + COUNT ( * ) WHEN - + 98 THEN - COUNT ( * ) WHEN COALESCE ( + - 46, COUNT ( * ) ) THEN NULL END * + - 40 + 73 AS col2, COUNT ( * ) col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL CAST( NULL AS SIGNED ) * + - 39 * - 67 * - 27 - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL CAST ( NULL AS INTEGER ) * + - 39 * - 67 * - 27 - 8 AS col1
----
NULL

query II rowsort
SELECT - 25 col0, 55
----
-25
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT ALL + 68 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + 68 / + 53
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1156
SELECT ALL CAST( - + 64 AS SIGNED ) AS col0, 82 col0
----
-64
82

skipif mysql # not compatible
query II rowsort label-1156
SELECT ALL CAST ( - + 64 AS INTEGER ) AS col0, 82 col0
----
-64
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT DISTINCT + SUM( - + 49 ) * - 60 AS col1
----
2940

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + SUM ( - + 49 ) * - 60 AS col1
----
2940

query II rowsort
SELECT ALL 88 AS col0, - 50 col2
----
88
-50

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

query II rowsort
SELECT ALL + 32 - 39 col1, + 44 + + 18
----
-7
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1161
SELECT - CAST( NULL AS DECIMAL ) / - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT - CAST ( NULL AS REAL ) / - 39 AS col1
----
NULL

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

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

query I rowsort
SELECT + 13 * + - 59 col0
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1164
SELECT ALL CAST( NULL AS SIGNED ) col0, + 90 * - 78 + ( 47 ) + + - 26
----
NULL
-6999

skipif mysql # not compatible
query II rowsort label-1164
SELECT ALL CAST ( NULL AS INTEGER ) col0, + 90 * - 78 + ( 47 ) + + - 26
----
NULL
-6999

query I rowsort
SELECT - NULLIF ( - 30, + 96 ) + + 25 AS col0
----
55

query I rowsort
SELECT + 90 + 44
----
134

query II rowsort
SELECT 21 AS col1, 93
----
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT COUNT( - 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT COUNT ( - 29 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1169
SELECT DISTINCT 97 AS col1, - 80 DIV + 12
----
97
-6

skipif mysql # not compatible
query II rowsort label-1169
SELECT DISTINCT 97 AS col1, - 80 / + 12
----
97
-6

query I rowsort
SELECT DISTINCT NULLIF ( + + 5, - + 42 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT + 48 * - + MAX( + 94 )
----
-4512

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT + 48 * - + MAX ( + 94 )
----
-4512

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + + 84 + - - 9 + + + COUNT( * ) col2
----
94

skipif mysql # not compatible
query I rowsort label-1173
SELECT + + 84 + - - 9 + + + COUNT ( * ) col2
----
94

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

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

query I rowsort
SELECT + - 9 + - 27 AS col0
----
-36

query II rowsort
SELECT - 54 AS col1, + 49 + + 65 AS col2
----
-54
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL MAX( + - ( 2 ) ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL MAX ( + - ( 2 ) ) col0
----
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1179
SELECT ALL - 41 DIV SUM( - 60 ) + + - 21 + + - COUNT( * ) * + + 26
----
-47

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - 41 / SUM ( - 60 ) + + - 21 + + - COUNT ( * ) * + + 26
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1180
SELECT 24 DIV + 47 * + COUNT( * ) + + + 9, 65 AS col0
----
9
65

skipif mysql # not compatible
query II rowsort label-1180
SELECT 24 / + 47 * + COUNT ( * ) + + + 9, 65 AS col0
----
9
65

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

query II rowsort
SELECT + 38 AS col0, 78 * + + 41 col0
----
38
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT + MIN( + - 47 ) * + + 73 AS col0
----
-3431

skipif mysql # not compatible
query I rowsort label-1183
SELECT + MIN ( + - 47 ) * + + 73 AS col0
----
-3431

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT DISTINCT + - COUNT( * ), + 29 * + 3 AS col0
----
-1
87

skipif mysql # not compatible
query II rowsort label-1184
SELECT DISTINCT + - COUNT ( * ), + 29 * + 3 AS col0
----
-1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ALL COUNT( * ) + - CASE WHEN + 46 IS NULL THEN - 61 + + 54 * - 84 - 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL COUNT ( * ) + - CASE WHEN + 46 IS NULL THEN - 61 + + 54 * - 84 - 21 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT DISTINCT + 46 + - 46 DIV - 44
----
47

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + 46 + - 46 / - 44
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT + 35 + + + 48 * COUNT( * ) + - 54 * - - COUNT( * ) * - CASE COALESCE ( - 44, - 54, - 43 ) WHEN - 79 * COALESCE ( - 76, 18 + - 6 + + - MIN( ALL + 63 ) * + - 13 - - COUNT( * ) * 53 ) THEN 21 + 38 + ( + 25 ) * CASE - CASE + COUNT( * ) WHEN + - 82 THEN COUNT( * ) WHEN + 43 / 23 * - - NULLIF ( - 4, - 65 * - 93 ) + - 14 * - 45 THEN NULL END WHEN ( - 80 ) - + 77 - - 29 THEN - 16 WHEN + + 48 THEN NULL END WHEN 81 + + + 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT + 35 + + + 48 * COUNT ( * ) + - 54 * - - COUNT ( * ) * - CASE COALESCE ( - 44, - 54, - 43 ) WHEN - 79 * COALESCE ( - 76, 18 + - 6 + + - MIN ( ALL + 63 ) * + - 13 - - COUNT ( * ) * 53 ) THEN 21 + 38 + ( + 25 ) * CASE - CASE + COUNT ( * ) WHEN + - 82 THEN COUNT ( * ) WHEN + 43 / 23 * - - NULLIF ( - 4, - 65 * - 93 ) + - 14 * - 45 THEN NULL END WHEN ( - 80 ) - + 77 - - 29 THEN - 16 WHEN + + 48 THEN NULL END WHEN 81 + + + 8 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 73 + 58, 91 AS col2
----
131
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT 8 DIV + 87 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-1189
SELECT 8 / + 87 + + 96
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1190
SELECT ALL + 2 + + - ( + 5 ) + + + COUNT( * ), + ( - 0 ) * 24 + - + ( COUNT( * ) ) * - 51 + + + CAST( - 63 AS SIGNED ) - - 31 col2
----
-2
19

skipif mysql # not compatible
query II rowsort label-1190
SELECT ALL + 2 + + - ( + 5 ) + + + COUNT ( * ), + ( - 0 ) * 24 + - + ( COUNT ( * ) ) * - 51 + + + CAST ( - 63 AS INTEGER ) - - 31 col2
----
-2
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1191
SELECT ALL - - ( + 37 ) AS col2, + CAST( NULL AS SIGNED ) - - 6
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1191
SELECT ALL - - ( + 37 ) AS col2, + CAST ( NULL AS INTEGER ) - - 6
----
37
NULL

query I rowsort
SELECT 46 * - 89
----
-4094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT ALL 16 + - ( MIN( DISTINCT 65 ) ) DIV - 63 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL 16 + - ( MIN ( DISTINCT 65 ) ) / - 63 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT MAX( DISTINCT + 38 ) * + + COALESCE ( - COUNT( DISTINCT - 91 ), - 68 + COUNT( * ) + - - CAST( NULL AS SIGNED ) )
----
-38

skipif mysql # not compatible
query I rowsort label-1194
SELECT MAX ( DISTINCT + 38 ) * + + COALESCE ( - COUNT ( DISTINCT - 91 ), - 68 + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT ALL + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) - + + 87 - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) - + + 87 - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL SUM( ALL - 24 ) * - 3
----
72

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL SUM ( ALL - 24 ) * - 3
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1197
SELECT 26 DIV MAX( ALL - CAST( 85 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT 26 / MAX ( ALL - CAST ( 85 AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1198
SELECT COALESCE ( + NULLIF ( - COUNT( * ), 32 - COUNT( * ) ), - COUNT( * ) ) + - COUNT( * ) + + - 95 + + COUNT( * ) + - 88 * - COALESCE ( - 70, - 72 ) + + 67 * - 85 DIV COUNT( * ) - - 8 AS col1, - 44 AS col0
----
-11943
-44

skipif mysql # not compatible
query II rowsort label-1198
SELECT COALESCE ( + NULLIF ( - COUNT ( * ), 32 - COUNT ( * ) ), - COUNT ( * ) ) + - COUNT ( * ) + + - 95 + + COUNT ( * ) + - 88 * - COALESCE ( - 70, - 72 ) + + 67 * - 85 / COUNT ( * ) - - 8 AS col1, - 44 AS col0
----
-11943
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT - 74 DIV - 38 col0
----
1

skipif mysql # not compatible
query I rowsort label-1199
SELECT - 74 / - 38 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1200
SELECT ALL + MIN( ALL - ( - 20 ) ) DIV CAST( + 37 AS SIGNED ) * - 96
----
0

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + MIN ( ALL - ( - 20 ) ) / CAST ( + 37 AS INTEGER ) * - 96
----
0

query I rowsort
SELECT ALL + 19 * - 21
----
-399

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT COUNT( * ) - - - 45 col0, + ( + 89 ) * 66 * - + 39
----
-44
-229086

skipif mysql # not compatible
query II rowsort label-1202
SELECT COUNT ( * ) - - - 45 col0, + ( + 89 ) * 66 * - + 39
----
-44
-229086

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT DISTINCT - SUM( ALL + 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT - SUM ( ALL + 73 ) AS col2
----
-73

query I rowsort
SELECT + 15 - + 28 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT + COUNT( * ) * + 83 + 28
----
111

skipif mysql # not compatible
query I rowsort label-1205
SELECT + COUNT ( * ) * + 83 + 28
----
111

query I rowsort
SELECT ALL - + 5 + + ( ( - - 66 ) ) AS col2
----
61

query I rowsort
SELECT DISTINCT + 25 + 78 AS col2
----
103

query I rowsort
SELECT + 82 + + 70 + - 84
----
68

query I rowsort
SELECT ALL + - ( + - 92 ) + - + 27
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL - 17 + + 70 DIV - 88 + ( 19 )
----
2

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL - 17 + + 70 / - 88 + ( 19 )
----
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1212
SELECT DISTINCT - + CASE 52 WHEN - COUNT( * ) THEN + 48 + - + 76 * - - 18 WHEN 49 THEN NULL END AS col1, 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-1212
SELECT DISTINCT - + CASE 52 WHEN - COUNT ( * ) THEN + 48 + - + 76 * - - 18 WHEN 49 THEN NULL END AS col1, 33 AS col0
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL + COUNT( * ) * + - MAX( + 26 ) * - MIN( 31 ) + + 95 + - 5
----
896

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + COUNT ( * ) * + - MAX ( + 26 ) * - MIN ( 31 ) + + 95 + - 5
----
896

query I rowsort
SELECT 93 * - 9 AS col2
----
-837

query I rowsort
SELECT ALL 23 * - - 69 AS col1
----
1587

query I rowsort
SELECT 56 + - 48 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT 91 * + COUNT( * ) col2
----
91

skipif mysql # not compatible
query I rowsort label-1217
SELECT 91 * + COUNT ( * ) col2
----
91

query II rowsort
SELECT 79 AS col0, + 68 * + ( + 10 ) - - + 25 * + 40 * + - 9 + 99 AS col0
----
79
-8221

onlyif mysql # DIV for integer division: 
query I rowsort label-1219
SELECT NULLIF ( - - 17, - 42 ) DIV - 94 + + + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1219
SELECT NULLIF ( - - 17, - 42 ) / - 94 + + + 67 AS col1
----
67

query I rowsort
SELECT ALL - 68 * 80
----
-5440

query I rowsort
SELECT 81 * + 83
----
6723

query I rowsort
SELECT ALL + 5 * + 34
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT 0 + + CAST( + + 56 AS SIGNED ) + - + 20 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1223
SELECT 0 + + CAST ( + + 56 AS INTEGER ) + - + 20 AS col0
----
36

query I rowsort
SELECT ALL 50 - - + 51
----
101

query II rowsort
SELECT 46 AS col1, 11 + + 58 * 20 * - 31
----
46
-35949

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT - 89 * + 44 + + MIN( - 31 ) + + NULLIF ( - 4, + 7 * + + COUNT( * ) ) AS col1
----
-3951

skipif mysql # not compatible
query I rowsort label-1226
SELECT - 89 * + 44 + + MIN ( - 31 ) + + NULLIF ( - 4, + 7 * + + COUNT ( * ) ) AS col1
----
-3951

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT 19 + + NULLIF ( - COUNT( ALL - 87 ), - 23 + + 20 + + + 4 * - 47 ) * + 66 + + 97 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1227
SELECT 19 + + NULLIF ( - COUNT ( ALL - 87 ), - 23 + + 20 + + + 4 * - 47 ) * + 66 + + 97 AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT ALL 2 DIV 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL 2 / 76 col2
----
0

query I rowsort
SELECT 90 + + 60 + 37
----
187

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1230
SELECT CAST( NULL AS DECIMAL ) * - 13 * + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT CAST ( NULL AS REAL ) * - 13 * + + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT - 26 * + ( - + CAST( 22 AS SIGNED ) ) + - - 84 * + COUNT( ALL - 93 )
----
656

skipif mysql # not compatible
query I rowsort label-1231
SELECT - 26 * + ( - + CAST ( 22 AS INTEGER ) ) + - - 84 * + COUNT ( ALL - 93 )
----
656

query I rowsort
SELECT 35 - - 96 * 40 * + 87 * - + 71 AS col0
----
-23719645

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT 42 * COUNT( 59 ) + - + 23 + + - 36 + + 78 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1233
SELECT 42 * COUNT ( 59 ) + - + 23 + + - 36 + + 78 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT DISTINCT CAST( NULL AS SIGNED ) * 23 * - 49 * 12 * MIN( ALL 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 23 * - 49 * 12 * MIN ( ALL 52 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 90 + 95 AS col2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT 82 + 19 + - 97 DIV + + 54 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-1236
SELECT 82 + 19 + - 97 / + + 54 AS col2
----
100

query I rowsort
SELECT DISTINCT - 20 * + + 90 * - - 20
----
-36000

query I rowsort
SELECT ALL 83 + - 30 AS col0
----
53

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

query I rowsort
SELECT 8 * - + 17
----
-136

query I rowsort
SELECT 52 + + 64 AS col2
----
116

query I rowsort
SELECT ALL + + 40 + + - 7
----
33

query II rowsort
SELECT + 68 * + 54 * + 99 AS col2, + CASE + 14 WHEN - 65 THEN + COALESCE ( 71, - 87 ) WHEN 84 THEN NULL ELSE 38 END * 37
----
363528
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT - COUNT( * ) * - 94 * + - COUNT( * ) + - + 8 + 65 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1244
SELECT - COUNT ( * ) * - 94 * + - COUNT ( * ) + - + 8 + 65 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1245
SELECT - CASE - + 39 WHEN 13 / - 86 * - 87 + - - 29 THEN NULL WHEN - 22 * - + 63 THEN - CAST( 3 AS SIGNED ) + - 11 + - - 58 * + + AVG ( ALL + + 71 ) + + COUNT( * ) * CAST( - 89 AS SIGNED ) ELSE NULL END * + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT - CASE - + 39 WHEN 13 / - 86 * - 87 + - - 29 THEN NULL WHEN - 22 * - + 63 THEN - CAST ( 3 AS INTEGER ) + - 11 + - - 58 * + + AVG ( ALL + + 71 ) + + COUNT ( * ) * CAST ( - 89 AS INTEGER ) ELSE NULL END * + - 28 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1246
SELECT 0 / - - COUNT( * ) + + + CASE - 90 WHEN + 54 + - 62 THEN 15 * - - 48 + + 40 + + 9 + + - 76 WHEN + ( + 28 ) THEN NULL ELSE 20 / + 29 + CAST( NULL AS SIGNED ) * - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT 0 / - - COUNT ( * ) + + + CASE - 90 WHEN + 54 + - 62 THEN 15 * - - 48 + + 40 + + 9 + + - 76 WHEN + ( + 28 ) THEN NULL ELSE 20 / + 29 + CAST ( NULL AS INTEGER ) * - 67 END
----
NULL

query I rowsort
SELECT DISTINCT 80 * + 36 - 79
----
2801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1248
SELECT ALL + COALESCE ( + + 21, CASE + CAST( NULL AS SIGNED ) WHEN - 56 * 27 THEN - - 31 WHEN + 6 * 24 + - 5 THEN NULL ELSE + 12 END ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + COALESCE ( + + 21, CASE + CAST ( NULL AS INTEGER ) WHEN - 56 * 27 THEN - - 31 WHEN + 6 * 24 + - 5 THEN NULL ELSE + 12 END ) AS col0
----
21

query I rowsort
SELECT - 51 * + 95 AS col0
----
-4845

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL + NULLIF ( COUNT( * ), + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + NULLIF ( COUNT ( * ), + 95 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT ALL - 37 DIV + ( - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - 37 / + ( - 61 )
----
0

query I rowsort
SELECT + 38 * + - 11 * - 94 AS col2
----
39292

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

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

skipif mysql # not compatible
query II rowsort label-1254
SELECT DISTINCT - COUNT ( * ) * 77 AS col2, 47 AS col2
----
-77
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1255
SELECT ALL + CAST( + 66 AS SIGNED ), CAST( NULL AS SIGNED ) AS col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-1255
SELECT ALL + CAST ( + 66 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col2
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT - 85 * + - MIN( DISTINCT + - 83 ) AS col0
----
-7055

skipif mysql # not compatible
query I rowsort label-1256
SELECT - 85 * + - MIN ( DISTINCT + - 83 ) AS col0
----
-7055

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL 96 * + MAX( - + 89 ) * - COALESCE ( - 83, CASE + 75 WHEN + 82 * 60 + - 52 THEN + 58 ELSE NULL END * + CASE 58 WHEN - ( 98 ) THEN NULL WHEN + + NULLIF ( - 51, - - NULLIF ( - 62, - - COUNT( * ) * + ( + ( + + COUNT( * ) ) ) ) ) THEN + - 65 END * 43 ) AS col0
----
-709152

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL 96 * + MAX ( - + 89 ) * - COALESCE ( - 83, CASE + 75 WHEN + 82 * 60 + - 52 THEN + 58 ELSE NULL END * + CASE 58 WHEN - ( 98 ) THEN NULL WHEN + + NULLIF ( - 51, - - NULLIF ( - 62, - - COUNT ( * ) * + ( + ( + + COUNT ( * ) ) ) ) ) THEN + - 65 END * 43 ) AS col0
----
-709152

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT - 2 DIV + - 75 AS col0, + 91 AS col2
----
0
91

skipif mysql # not compatible
query II rowsort label-1258
SELECT - 2 / + - 75 AS col0, + 91 AS col2
----
0
91

query I rowsort
SELECT DISTINCT - 28 * + 6 AS col1
----
-168

query I rowsort
SELECT DISTINCT - 20 * 19 AS col1
----
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT ALL + SUM( + + 18 ), + 24 AS col2
----
18
24

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL + SUM ( + + 18 ), + 24 AS col2
----
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL - COUNT( * ) * - 83 + - - MAX( DISTINCT 87 ) AS col1
----
170

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL - COUNT ( * ) * - 83 + - - MAX ( DISTINCT 87 ) AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT COUNT( - 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1263
SELECT COUNT ( - 30 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT + 84 DIV + 98 * - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1264
SELECT + 84 / + 98 * - 43 AS col2
----
0

query I rowsort
SELECT ALL 53 + + 83
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - COUNT( * ) * SUM( ALL - 94 ) * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-1266
SELECT - COUNT ( * ) * SUM ( ALL - 94 ) * - COUNT ( * )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1267
SELECT + SUM( + ( + 9 ) ) * - + 89 + - CAST( NULL AS SIGNED ) - - - AVG ( 29 ) * ( + 20 ) AS col2, + 10 - - - 12 AS col2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-1267
SELECT + SUM ( + ( + 9 ) ) * - + 89 + - CAST ( NULL AS INTEGER ) - - - AVG ( 29 ) * ( + 20 ) AS col2, + 10 - - - 12 AS col2
----
NULL
-2

query I rowsort
SELECT - 17 * - + 85 - + 94 + + 6 AS col1
----
1357

query I rowsort
SELECT DISTINCT ( 41 ) * 18 AS col0
----
738

query I rowsort
SELECT + + 3 + 16 AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1271
SELECT ALL - 98 + 18 + - COUNT( DISTINCT - - 63 ) * - 66 * - 93 - - 63 AS col0, - 49 col1
----
-6155
-49

skipif mysql # not compatible
query II rowsort label-1271
SELECT ALL - 98 + 18 + - COUNT ( DISTINCT - - 63 ) * - 66 * - 93 - - 63 AS col0, - 49 col1
----
-6155
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL 12 * - 41 - + MIN( ALL + 27 ) + - + 50 * + ( - COUNT( * ) )
----
-469

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL 12 * - 41 - + MIN ( ALL + 27 ) + - + 50 * + ( - COUNT ( * ) )
----
-469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1273
SELECT ALL + 17 - 13 + - CASE - 33 WHEN - CAST( + CASE + 90 WHEN - - 57 THEN NULL ELSE - - 75 END AS SIGNED ) THEN - 20 * 80 * MIN( DISTINCT + 60 ) * - 23 + + - 80 + 85 ELSE NULL END + CAST( + - 75 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + 17 - 13 + - CASE - 33 WHEN - CAST ( + CASE + 90 WHEN - - 57 THEN NULL ELSE - - 75 END AS INTEGER ) THEN - 20 * 80 * MIN ( DISTINCT + 60 ) * - 23 + + - 80 + 85 ELSE NULL END + CAST ( + - 75 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT DISTINCT + CASE + 36 WHEN + 35 + + COUNT( * ) + - ( - 39 ) * + - 80 THEN ( - COALESCE ( - NULLIF ( + - ( 46 ), + 99 ), + + 7 ) ) + + SUM( - + 84 ) + 15 WHEN - 38 * + 32 THEN NULL ELSE 79 END, COUNT( * ) AS col1
----
79
1

skipif mysql # not compatible
query II rowsort label-1274
SELECT DISTINCT + CASE + 36 WHEN + 35 + + COUNT ( * ) + - ( - 39 ) * + - 80 THEN ( - COALESCE ( - NULLIF ( + - ( 46 ), + 99 ), + + 7 ) ) + + SUM ( - + 84 ) + 15 WHEN - 38 * + 32 THEN NULL ELSE 79 END, COUNT ( * ) AS col1
----
79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT - COUNT( * ) * + 97 col0
----
-97

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT - COUNT ( * ) * + 97 col0
----
-97

query I rowsort
SELECT + 0 - - 36 AS col2
----
36

query I rowsort
SELECT DISTINCT - COALESCE ( - ( - 51 ), - ( + - 46 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL MIN( + 77 ) - 50 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL MIN ( + 77 ) - 50 AS col0
----
27

query I rowsort
SELECT - NULLIF ( - - 9, - 3 ) AS col2
----
-9

query II rowsort
SELECT + 66 + - + 97 * ( 7 ), + 9 + 88 AS col2
----
-613
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL - NULLIF ( - 81, + 41 / + CAST( + 85 AS SIGNED ) + 96 * - 39 * - 2 / + COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - NULLIF ( - 81, + 41 / + CAST ( + 85 AS INTEGER ) + 96 * - 39 * - 2 / + COUNT ( * ) )
----
81

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT - 32 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query III rowsort
SELECT DISTINCT 1, 29 + - - 98 AS col2, + 29 AS col2
----
1
127
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT DISTINCT 74 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT 74 / - 43
----
-1

query I rowsort
SELECT DISTINCT + CASE + 77 WHEN + + 61 THEN NULL ELSE + 99 END * + 70 * + 58
----
401940

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

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

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

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

query I rowsort
SELECT ALL + 5 * - 75 AS col0
----
-375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1290
SELECT - 97 * + 2 * - - MIN( + 53 ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1290
SELECT - 97 * + 2 * - - MIN ( + 53 ) / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 5 * + - 3 + + + 59 + + 62 * + + 60 * + + 97 * - + 37
----
-13351036

query I rowsort
SELECT - 15 - + 99 * 61
----
-6054

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT - MIN( ALL + 14 ) * + - 61 + - NULLIF ( MIN( ALL 78 ), + 55 * + 62 ) * ( - 23 ) + - ( - + ( 49 ) ) + 77 * - - 69
----
8010

skipif mysql # not compatible
query I rowsort label-1293
SELECT - MIN ( ALL + 14 ) * + - 61 + - NULLIF ( MIN ( ALL 78 ), + 55 * + 62 ) * ( - 23 ) + - ( - + ( 49 ) ) + 77 * - - 69
----
8010

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1294
SELECT CAST( NULL AS SIGNED ) AS col1, - 18
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-1294
SELECT CAST ( NULL AS INTEGER ) AS col1, - 18
----
NULL
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT - 61 + 37 DIV + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-1295
SELECT - 61 + 37 / + - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1296
SELECT ALL + 16 DIV + - 43 + 0 AS col0, - COALESCE ( - ( 50 ), - MIN( - 18 ) * - + 60 ) * + - 21 AS col1
----
0
-1050

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL + 16 / + - 43 + 0 AS col0, - COALESCE ( - ( 50 ), - MIN ( - 18 ) * - + 60 ) * + - 21 AS col1
----
0
-1050

onlyif mysql # DIV for integer division: 
query II rowsort label-1297
SELECT + 31, 20 * - + 2 DIV - 87 AS col1
----
31
0

skipif mysql # not compatible
query II rowsort label-1297
SELECT + 31, 20 * - + 2 / - 87 AS col1
----
31
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1298
SELECT DISTINCT + 51 AS col1, - ( + + 34 ) DIV + ( + - 60 ) AS col1
----
51
0

skipif mysql # not compatible
query II rowsort label-1298
SELECT DISTINCT + 51 AS col1, - ( + + 34 ) / + ( + - 60 ) AS col1
----
51
0

query I rowsort
SELECT ALL - 66 * + 33 + COALESCE ( + 85, + - 8 ) AS col0
----
-2093

query I rowsort
SELECT - 55 + + - 94
----
-149

query II rowsort
SELECT ALL + CASE + 66 WHEN - 1 THEN NULL ELSE + 96 * - 7 + 10 END AS col0, - 69 AS col0
----
-662
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1302
SELECT DISTINCT + NULLIF ( + 18, NULLIF ( ( - 85 ), + 43 ) * 1 + 29 + + + 73 + + 29 + + COUNT( * ) ) * 56 + - 13, 72 * + 52 + - COUNT( * ) AS col1
----
995
3743

skipif mysql # not compatible
query II rowsort label-1302
SELECT DISTINCT + NULLIF ( + 18, NULLIF ( ( - 85 ), + 43 ) * 1 + 29 + + + 73 + + 29 + + COUNT ( * ) ) * 56 + - 13, 72 * + 52 + - COUNT ( * ) AS col1
----
995
3743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1303
SELECT ALL - 89 * 72 / - CAST( NULL AS SIGNED ) + 27 + - 30 - - 34 + - - 87 / - + 50 * - + 33 + - 61 * 57 + - COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - 89 * 72 / - CAST ( NULL AS INTEGER ) + 27 + - 30 - - 34 + - - 87 / - + 50 * - + 33 + - 61 * 57 + - COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( - CASE - 90 WHEN - 78 THEN NULL WHEN + ( - + ( - ( - - 17 ) ) ) THEN + 98 * - + 63 + 54 * - 2 / + 39 ELSE NULL END ) AS col1, - 40 col1
----
NULL
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + CASE + - 85 WHEN 97 THEN + 44 WHEN + 30 / + + 94 THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT + CASE + - 85 WHEN 97 THEN + 44 WHEN + 30 / + + 94 THEN - - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 84 + 93 AS col1
----
177

query I rowsort
SELECT - 95 + + 77
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1308
SELECT + COUNT( * ) * COALESCE ( - 15, - 91 * + 62 + 30 DIV 64 )
----
-15

skipif mysql # not compatible
query I rowsort label-1308
SELECT + COUNT ( * ) * COALESCE ( - 15, - 91 * + 62 + 30 / 64 )
----
-15

query I rowsort
SELECT 80 * - 7 + + 14
----
-546

query I rowsort
SELECT DISTINCT 42 * + 78
----
3276

query I rowsort
SELECT DISTINCT 1 + + 10 * ( 93 * 34 ) AS col1
----
31621

query I rowsort
SELECT ALL 59 - + 85
----
-26

query I rowsort
SELECT 50 * - 22 AS col1
----
-1100

query I rowsort
SELECT ALL 35 - 46 AS col0
----
-11

query I rowsort
SELECT 60 + 70
----
130

query I rowsort
SELECT 40 * 7
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT CASE + 74 WHEN + 98 THEN NULL WHEN + 15 THEN + SUM( ALL ( ( 67 ) ) ) + 90 END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT CASE + 74 WHEN + 98 THEN NULL WHEN + 15 THEN + SUM ( ALL ( ( 67 ) ) ) + 90 END * + 98
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT 50 * MIN( 78 )
----
3900

skipif mysql # not compatible
query I rowsort label-1319
SELECT 50 * MIN ( 78 )
----
3900

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT COUNT( DISTINCT 14 ) DIV SUM( 76 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1321
SELECT COUNT ( DISTINCT 14 ) / SUM ( 76 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT ( 2 ) DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT ( 2 ) / 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1323
SELECT ALL 93 DIV COUNT( DISTINCT 23 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL 93 / COUNT ( DISTINCT 23 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT COUNT( * ) + - 37 * 92
----
-3403

skipif mysql # not compatible
query I rowsort label-1324
SELECT COUNT ( * ) + - 37 * 92
----
-3403

query I rowsort
SELECT 75 * - 71 AS col0
----
-5325

query I rowsort
SELECT ALL 87 * 58
----
5046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT CAST( - MIN( ALL - 80 ) AS SIGNED ) + 62
----
142

skipif mysql # not compatible
query I rowsort label-1327
SELECT CAST ( - MIN ( ALL - 80 ) AS INTEGER ) + 62
----
142

query I rowsort
SELECT ALL 33 * 6 AS col1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT NULLIF ( MIN( ALL 55 ), - COUNT( * ) + 14 ) + - 35
----
20

skipif mysql # not compatible
query I rowsort label-1329
SELECT NULLIF ( MIN ( ALL 55 ), - COUNT ( * ) + 14 ) + - 35
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL 51 * COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL 51 * COUNT ( * ) AS col2
----
51

query I rowsort
SELECT 10 + + 73
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL 27 + + 43 * COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL 27 + + 43 * COUNT ( * )
----
70

query I rowsort
SELECT ( - 22 ) * + 30 AS col0
----
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT CASE 0 WHEN 93 THEN + 42 + 69 WHEN + COUNT( * ) + COALESCE ( 61, - 42 * 28, 33, 55 + 31 ) * - CASE + ( COALESCE ( 35, 56, - 68 ) ) * - 97 + CAST( NULL AS SIGNED ) WHEN - 10 * + 49 + CAST( 20 AS SIGNED ) * 78 THEN 3 WHEN + 42 THEN - 32 + + 82 ELSE NULL END THEN - COUNT( * ) + 18 * - ( 21 ) WHEN - 52 * 83 THEN NULL END * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT CASE 0 WHEN 93 THEN + 42 + 69 WHEN + COUNT ( * ) + COALESCE ( 61, - 42 * 28, 33, 55 + 31 ) * - CASE + ( COALESCE ( 35, 56, - 68 ) ) * - 97 + CAST ( NULL AS INTEGER ) WHEN - 10 * + 49 + CAST ( 20 AS INTEGER ) * 78 THEN 3 WHEN + 42 THEN - 32 + + 82 ELSE NULL END THEN - COUNT ( * ) + 18 * - ( 21 ) WHEN - 52 * 83 THEN NULL END * 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT - 14 * - MIN( - CAST( NULL AS SIGNED ) ) + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT - 14 * - MIN ( - CAST ( NULL AS INTEGER ) ) + 56 AS col0
----
NULL

query I rowsort
SELECT ALL 80 + 58 * 58 AS col1
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT DISTINCT COALESCE ( - COUNT( * ), - NULLIF ( + 31, 71 / + 39 ) ) + + MAX( DISTINCT 42 ) * - 85
----
-3571

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT COALESCE ( - COUNT ( * ), - NULLIF ( + 31, 71 / + 39 ) ) + + MAX ( DISTINCT 42 ) * - 85
----
-3571

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT ( - 93 ) DIV 11
----
-8

skipif mysql # not compatible
query I rowsort label-1338
SELECT ( - 93 ) / 11
----
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL 44 + CASE - 69 + 81 * - 48 WHEN + COUNT( * ) THEN NULL ELSE 20 END
----
64

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL 44 + CASE - 69 + 81 * - 48 WHEN + COUNT ( * ) THEN NULL ELSE 20 END
----
64

query I rowsort
SELECT DISTINCT + 56 + CASE + CASE + 94 WHEN + 47 THEN 55 ELSE - 36 + 48 END WHEN 1 THEN 88 + 7 ELSE 74 + - 90 END AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT ALL COALESCE ( 83, 5 - + 9 ) DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL COALESCE ( 83, 5 - + 9 ) / 97
----
0

query I rowsort
SELECT ALL + 47 + - 50 * - 8 AS col2
----
447

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT 35 DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT 35 / 83 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT ALL ( 50 ) + + 71 DIV - 12 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL ( 50 ) + + 71 / - 12 AS col0
----
45

query I rowsort
SELECT ( + 92 ) * + 55 AS col1
----
5060

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL COUNT( * ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL COUNT ( * ) + 91
----
92

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

skipif mysql # not compatible
query I rowsort label-1349
SELECT 75 * + 86 - + COUNT ( * ) AS col1
----
6449

query I rowsort
SELECT DISTINCT - 2 * 31 AS col1
----
-62

query I rowsort
SELECT 60 * 17
----
1020

query I rowsort
SELECT ALL - ( - 63 ) AS col0
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT ALL - - MAX( ( - 58 ) ) - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL - - MAX ( ( - 58 ) ) - COUNT ( * ) AS col1
----
-59

query I rowsort
SELECT 16 * 55
----
880

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1356
SELECT - 91 * COALESCE ( CAST( + ( + 16 ) AS SIGNED ) + + 67, - 38 + 30 * - CAST( CAST( NULL AS DECIMAL ) * CAST( 83 * 0 AS DECIMAL ) - + 23 AS SIGNED ), 68 )
----
-7553

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 91 * COALESCE ( CAST ( + ( + 16 ) AS INTEGER ) + + 67, - 38 + 30 * - CAST ( CAST ( NULL AS REAL ) * CAST ( 83 * 0 AS REAL ) - + 23 AS INTEGER ), 68 )
----
-7553

query I rowsort
SELECT ALL + 98 * 51 AS col2
----
4998

query I rowsort
SELECT + 70 * 4 + - 77 col0
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - - MIN( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-1359
SELECT - - MIN ( 69 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1360
SELECT ALL + 54 DIV + 20 col0
----
2

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL + 54 / + 20 col0
----
2

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

skipif mysql # not compatible
query I rowsort label-1361
SELECT - 57 * COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT DISTINCT - COALESCE ( COUNT( DISTINCT 24 ), AVG ( ALL + 9 ) DIV + 57 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT - COALESCE ( COUNT ( DISTINCT 24 ), AVG ( ALL + 9 ) / + 57 ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT CAST( 45 AS SIGNED ) * - 12
----
-540

skipif mysql # not compatible
query I rowsort label-1363
SELECT CAST ( 45 AS INTEGER ) * - 12
----
-540

query I rowsort
SELECT 74 * 32 col1
----
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT MIN( - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT MIN ( - + 69 )
----
-69

query I rowsort
SELECT ALL 4 + + - 54 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT 90 * - SUM( ALL + 66 )
----
-5940

skipif mysql # not compatible
query I rowsort label-1367
SELECT 90 * - SUM ( ALL + 66 )
----
-5940

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT MIN( + 28 ) col2
----
28

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT MIN ( + 28 ) col2
----
28

query I rowsort
SELECT ALL 74 + 2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL ( ( 36 ) ) * COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL ( ( 36 ) ) * COUNT ( * ) AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT DISTINCT - 83 * + 91 + + CAST( NULL AS SIGNED ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - 83 * + 91 + + CAST ( NULL AS INTEGER ) * 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1373
SELECT DISTINCT CAST( + - 78 AS SIGNED ) * + 32 AS col2
----
-2496

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT CAST ( + - 78 AS INTEGER ) * + 32 AS col2
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT + COUNT( * ) * + - NULLIF ( ( + 29 ), - COUNT( * ) ) + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + COUNT ( * ) * + - NULLIF ( ( + 29 ), - COUNT ( * ) ) + - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT DISTINCT NULLIF ( - + 79, - COUNT( ALL 30 ) ) * + 30 + 31 * COALESCE ( COUNT( * ), ( 48 ) DIV 53, 73 + ( + 21 - 45 ) * ( + 80 ) )
----
-2339

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT NULLIF ( - + 79, - COUNT ( ALL 30 ) ) * + 30 + 31 * COALESCE ( COUNT ( * ), ( 48 ) / 53, 73 + ( + 21 - 45 ) * ( + 80 ) )
----
-2339

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL ( - COUNT( * ) ) * 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL ( - COUNT ( * ) ) * 54 AS col0
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT + MIN( + COALESCE ( - NULLIF ( + 73, + CASE 93 WHEN 77 THEN NULL ELSE 30 / - 31 - 41 END ), 27 ) ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-1378
SELECT + MIN ( + COALESCE ( - NULLIF ( + 73, + CASE 93 WHEN 77 THEN NULL ELSE 30 / - 31 - 41 END ), 27 ) ) col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT MAX( DISTINCT - 22 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-1379
SELECT MAX ( DISTINCT - 22 ) col2
----
-22

query I rowsort
SELECT 79 * 27 * + 56 + + 26
----
119474

query I rowsort
SELECT + 2 - + - 28 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1382
SELECT + ( + + 4 ) * CASE - 46 * ( 35 * - 63 ) + - CAST( NULL AS SIGNED ) WHEN CAST( - 49 AS SIGNED ) THEN - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT + ( + + 4 ) * CASE - 46 * ( 35 * - 63 ) + - CAST ( NULL AS INTEGER ) WHEN CAST ( - 49 AS INTEGER ) THEN - 9 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT - 34 * 18 + COUNT( * ) * 35 AS col0
----
-577

skipif mysql # not compatible
query I rowsort label-1384
SELECT - 34 * 18 + COUNT ( * ) * 35 AS col0
----
-577

query I rowsort
SELECT + 16 + 80
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL COALESCE ( 56, - 83 ) * + ( - COUNT( * ) * MAX( 64 ) ) - COUNT( 41 )
----
-3585

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL COALESCE ( 56, - 83 ) * + ( - COUNT ( * ) * MAX ( 64 ) ) - COUNT ( 41 )
----
-3585

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT + MIN ( - + 31 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1388
SELECT + 30 * + COALESCE ( + CASE CASE - ( 6 ) WHEN COUNT( * ) * 43 + - COUNT( * ) * + 29 THEN + 64 / ( - CAST( 61 AS DECIMAL ) ) WHEN COUNT( * ) THEN + 30 WHEN + COUNT( DISTINCT 59 ) + 26 * ( 55 ) THEN + 12 END WHEN + 43 THEN COUNT( * ) * COALESCE ( CAST( NULL AS SIGNED ), + MIN( DISTINCT 50 ) + + 38 * + ( ( MIN( 32 ) ) - 13 ), + ( + 95 ) ) + 63 * 60 ELSE 24 END, COUNT( * ) + - 44 * - 32 )
----
720

skipif mysql # not compatible
query I rowsort label-1388
SELECT + 30 * + COALESCE ( + CASE CASE - ( 6 ) WHEN COUNT ( * ) * 43 + - COUNT ( * ) * + 29 THEN + 64 / ( - CAST ( 61 AS REAL ) ) WHEN COUNT ( * ) THEN + 30 WHEN + COUNT ( DISTINCT 59 ) + 26 * ( 55 ) THEN + 12 END WHEN + 43 THEN COUNT ( * ) * COALESCE ( CAST ( NULL AS INTEGER ), + MIN ( DISTINCT 50 ) + + 38 * + ( ( MIN ( 32 ) ) - 13 ), + ( + 95 ) ) + 63 * 60 ELSE 24 END, COUNT ( * ) + - 44 * - 32 )
----
720

query I rowsort
SELECT + - 99 + + + 87 - 42
----
-54

query I rowsort
SELECT ALL - + ( + - 83 ) * 14 AS col2
----
1162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1391
SELECT DISTINCT CAST( NULL AS DECIMAL ) / ( + 18 ) / 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT CAST ( NULL AS REAL ) / ( + 18 ) / 19 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL - 66 * - + COUNT( * ) * 46 + COUNT( ALL 37 + 23 ) - + COUNT( * ) AS col0
----
3036

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - 66 * - + COUNT ( * ) * 46 + COUNT ( ALL 37 + 23 ) - + COUNT ( * ) AS col0
----
3036

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

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

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

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

query I rowsort
SELECT ALL ( - 7 ) * 34 AS col2
----
-238

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1396
SELECT ALL + CASE - 76 WHEN ( 31 ) THEN - ( + CAST( NULL AS DECIMAL ) ) * - 10 WHEN - COUNT( * ) THEN + 56 + 94 ELSE NULL END * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + CASE - 76 WHEN ( 31 ) THEN - ( + CAST ( NULL AS REAL ) ) * - 10 WHEN - COUNT ( * ) THEN + 56 + 94 ELSE NULL END * - 78 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1397
SELECT + COALESCE ( + COALESCE ( + 90, 22 * 1, + CASE 11 WHEN 46 * + 53 + 35 THEN NULL WHEN + 92 * COALESCE ( COUNT( * ), 4 * + NULLIF ( - NULLIF ( + 14, - 80 ), - COUNT( * ) * - 32 + - 93 ), + 4 * - ( + CAST( 44 AS SIGNED ) ) - 92 ) THEN - 56 + 64 WHEN 99 * NULLIF ( NULLIF ( 62, 90 ), 82 ) THEN NULL ELSE 36 END ), 3 + - 2 ) * + 8 AS col2
----
720

skipif mysql # not compatible
query I rowsort label-1397
SELECT + COALESCE ( + COALESCE ( + 90, 22 * 1, + CASE 11 WHEN 46 * + 53 + 35 THEN NULL WHEN + 92 * COALESCE ( COUNT ( * ), 4 * + NULLIF ( - NULLIF ( + 14, - 80 ), - COUNT ( * ) * - 32 + - 93 ), + 4 * - ( + CAST ( 44 AS INTEGER ) ) - 92 ) THEN - 56 + 64 WHEN 99 * NULLIF ( NULLIF ( 62, 90 ), 82 ) THEN NULL ELSE 36 END ), 3 + - 2 ) * + 8 AS col2
----
720

query I rowsort
SELECT ALL + + ( + 81 ) AS col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL + 53 + COUNT( * ) + + ( + 59 ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL + 53 + COUNT ( * ) + + ( + 59 ) AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT - + COUNT( * ) + + 36 * ( 69 + + 38 * 40 ) AS col0
----
57203

skipif mysql # not compatible
query I rowsort label-1401
SELECT - + COUNT ( * ) + + 36 * ( 69 + + 38 * 40 ) AS col0
----
57203

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1404
SELECT - NULLIF ( COUNT( * ), + CASE 67 WHEN ( 57 ) THEN CAST( NULL AS SIGNED ) ELSE 4 END * COUNT( * ) - + 16 * 0 ) + + 62 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1404
SELECT - NULLIF ( COUNT ( * ), + CASE 67 WHEN ( 57 ) THEN CAST ( NULL AS INTEGER ) ELSE 4 END * COUNT ( * ) - + 16 * 0 ) + + 62 AS col1
----
61

query I rowsort
SELECT DISTINCT - 1 * 31 col0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL + COUNT( * ) + - CAST( + 19 AS SIGNED ) * 64
----
-1215

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + COUNT ( * ) + - CAST ( + 19 AS INTEGER ) * 64
----
-1215

query I rowsort
SELECT ALL - 56 + - ( - + 87 )
----
31

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

query I rowsort
SELECT ALL 50 + + 71
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT ALL 70 AS col0, - SUM( ALL - 91 )
----
70
91

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL 70 AS col0, - SUM ( ALL - 91 )
----
70
91

query I rowsort
SELECT - 32 + - + 60 col1
----
-92

query I rowsort
SELECT ALL + 11 + + 21 AS col1
----
32

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT - 20 DIV - 77 * + - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1414
SELECT - 20 / - 77 * + - 25 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1415
SELECT CAST( NULL AS SIGNED ) col2, - ( 64 )
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-1415
SELECT CAST ( NULL AS INTEGER ) col2, - ( 64 )
----
NULL
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1416
SELECT ALL 86 DIV - MAX( 63 ) - 57 * COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL 86 / - MAX ( 63 ) - 57 * COUNT ( * ) AS col0
----
-58

query I rowsort
SELECT + COALESCE ( ( ( + 84 ) ), - 50 )
----
84

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

query II rowsort
SELECT ALL + 18 AS col0, + 86 AS col2
----
18
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT ALL COUNT( * ) * - CASE - - 81 WHEN 25 + + COUNT( * ) THEN - 64 * + COUNT( DISTINCT - 42 ) + - 73 * + 58 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL COUNT ( * ) * - CASE - - 81 WHEN 25 + + COUNT ( * ) THEN - 64 * + COUNT ( DISTINCT - 42 ) + - 73 * + 58 END AS col2
----
NULL

query I rowsort
SELECT - 76 * 78 + 53
----
-5875

query I rowsort
SELECT DISTINCT + 31 * 47
----
1457

query I rowsort
SELECT + + COALESCE ( + 48, + 14, + 64 ) * 32 - 73 * 11 AS col2
----
733

query II rowsort
SELECT - 36 AS col2, - 9 - 1
----
-36
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT + 64 * MAX( ALL + + 91 )
----
5824

skipif mysql # not compatible
query I rowsort label-1425
SELECT + 64 * MAX ( ALL + + 91 )
----
5824

query II rowsort
SELECT ALL + 56, + 89 AS col0
----
56
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT + CASE - 42 WHEN - - 37 - 47 THEN NULL WHEN CAST( NULL AS SIGNED ) + 47 THEN NULL ELSE + 10 + + 59 END AS col2
----
69

skipif mysql # not compatible
query I rowsort label-1427
SELECT + CASE - 42 WHEN - - 37 - 47 THEN NULL WHEN CAST ( NULL AS INTEGER ) + 47 THEN NULL ELSE + 10 + + 59 END AS col2
----
69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT + + 43 * 77 * + CAST( + AVG ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT + + 43 * 77 * + CAST ( + AVG ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT ALL 7 * + 87 + - 5 * - NULLIF ( 13 - - CAST( NULL AS SIGNED ), 51 * 35 + 83 ) + 70 * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL 7 * + 87 + - 5 * - NULLIF ( 13 - - CAST ( NULL AS INTEGER ), 51 * 35 + 83 ) + 70 * 12 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1431
SELECT DISTINCT + - COUNT( * ) * 44 + NULLIF ( NULLIF ( - 43, COUNT( DISTINCT CAST( 72 AS DECIMAL ) ) ), + 5 * + 17 + 12 * 70 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + - COUNT ( * ) * 44 + NULLIF ( NULLIF ( - 43, COUNT ( DISTINCT CAST ( 72 AS REAL ) ) ), + 5 * + 17 + 12 * 70 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT + + 46 * + COUNT( * ) * + 69 - 6 AS col1
----
3168

skipif mysql # not compatible
query I rowsort label-1432
SELECT + + 46 * + COUNT ( * ) * + 69 - 6 AS col1
----
3168

query I rowsort
SELECT + 66 * - + 48 AS col2
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT - MIN( 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT - MIN ( 52 ) AS col2
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1435
SELECT DISTINCT - NULLIF ( CAST( NULL AS DECIMAL ), 87 * 92 - 25 ) * 46 + 63 * 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - NULLIF ( CAST ( NULL AS REAL ), 87 * 92 - 25 ) * 46 + 63 * 33 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT CASE WHEN + 65 IS NULL THEN ( COUNT( - 98 ) ) * - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT CASE WHEN + 65 IS NULL THEN ( COUNT ( - 98 ) ) * - 30 END
----
NULL

query I rowsort
SELECT ALL - 80 * - + 20 AS col1
----
1600

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1440
SELECT - 75 * + 5 col0, COUNT( * ) + 26 AS col0
----
-375
27

skipif mysql # not compatible
query II rowsort label-1440
SELECT - 75 * + 5 col0, COUNT ( * ) + 26 AS col0
----
-375
27

query I rowsort
SELECT + 45 + 9 * - 11 * - 99 AS col1
----
9846

query I rowsort
SELECT ALL COALESCE ( - - 81, 3 ) AS col0
----
81

query I rowsort
SELECT ALL 68 * 93
----
6324

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL - 61 + COALESCE ( NULLIF ( ( CAST( 24 AS SIGNED ) ), - AVG ( 43 ) ), - 23 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - 61 + COALESCE ( NULLIF ( ( CAST ( 24 AS INTEGER ) ), - AVG ( 43 ) ), - 23 ) col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1446
SELECT - 15 + + 45 + + 59 + + CASE 85 WHEN - CAST( NULL AS DECIMAL ) * - ( COUNT( * ) ) THEN 18 * 46 - - 79 WHEN + 31 THEN 47 * + 32 END * + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 15 + + 45 + + 59 + + CASE 85 WHEN - CAST ( NULL AS REAL ) * - ( COUNT ( * ) ) THEN 18 * 46 - - 79 WHEN + 31 THEN 47 * + 32 END * + 69 col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 16, - - 40 * + + ( ( 61 ) ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL CASE - + 92 WHEN - - 71 - + ( - 34 ) THEN NULL ELSE - COUNT( * ) * 17 END AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL CASE - + 92 WHEN - - 71 - + ( - 34 ) THEN NULL ELSE - COUNT ( * ) * 17 END AS col1
----
-17

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

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

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

query I rowsort
SELECT 54 * + 76 AS col2
----
4104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT ALL - CAST( 2 AS SIGNED ) * + 87 AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL - CAST ( 2 AS INTEGER ) * + 87 AS col0
----
-174

query I rowsort
SELECT 60 * 58
----
3480

query I rowsort
SELECT ALL - 25 * + + 37 col1
----
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT 44 * 3 * - MIN( 37 ) * 46
----
-224664

skipif mysql # not compatible
query I rowsort label-1455
SELECT 44 * 3 * - MIN ( 37 ) * 46
----
-224664

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + 38 * - 92 - ( COUNT( * ) )
----
-3497

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 38 * - 92 - ( COUNT ( * ) )
----
-3497

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

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

query I rowsort
SELECT 34 + 44 + + COALESCE ( + - 0, 63 )
----
78

query I rowsort
SELECT - 21 * - 5
----
105

query I rowsort
SELECT + COALESCE ( ( + 25 ), + - 17 + + 6 * 54 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL - + NULLIF ( - 84, - 94 * SUM( 19 ) + 19 * + 77 )
----
84

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - + NULLIF ( - 84, - 94 * SUM ( 19 ) + 19 * + 77 )
----
84

query I rowsort
SELECT ( 65 ) + 37 AS col2
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-1464
SELECT 81 DIV 25, 35 AS col2
----
3
35

skipif mysql # not compatible
query II rowsort label-1464
SELECT 81 / 25, 35 AS col2
----
3
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1465
SELECT ALL + 27 DIV - - 62
----
0

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + 27 / - - 62
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT + + 85 * COUNT( * ) + + 68 * - 76 + 32 DIV - 46
----
-5083

skipif mysql # not compatible
query I rowsort label-1466
SELECT + + 85 * COUNT ( * ) + + 68 * - 76 + 32 / - 46
----
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT COUNT( * ) - - 59
----
60

skipif mysql # not compatible
query I rowsort label-1467
SELECT COUNT ( * ) - - 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - 78 * - MAX( 97 ) AS col2
----
7566

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - 78 * - MAX ( 97 ) AS col2
----
7566

query I rowsort
SELECT ALL + 67 + - + 79 + + 29 AS col0
----
17

query I rowsort
SELECT DISTINCT - - 5 + 85 col1
----
90

query I rowsort
SELECT DISTINCT + NULLIF ( - 61, - 21 + + 25 ) + + 48 * 37 AS col2
----
1715

query I rowsort
SELECT ALL 67 + - 8 * - 79 AS col0
----
699

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - 37 + - + 44 * + COUNT( DISTINCT + 85 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 37 + - + 44 * + COUNT ( DISTINCT + 85 ) col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - + 85 * + - 3 + COUNT( * ) + 31 + 72 AS col2
----
359

skipif mysql # not compatible
query I rowsort label-1474
SELECT - + 85 * + - 3 + COUNT ( * ) + 31 + 72 AS col2
----
359

query II rowsort
SELECT + ( 26 ) AS col2, + 96
----
26
96

query II rowsort
SELECT ALL - 26 + - - 98 AS col0, - ( + - 33 ) + 62 * 95 AS col2
----
72
5923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT + 3 * 78 + + COUNT( * ) DIV - - 6 * - ( 23 ) AS col2
----
234

skipif mysql # not compatible
query I rowsort label-1477
SELECT + 3 * 78 + + COUNT ( * ) / - - 6 * - ( 23 ) AS col2
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + 51 + - - MAX( - + 33 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + 51 + - - MAX ( - + 33 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1479
SELECT + + CAST( + 94 AS SIGNED ) col1
----
94

skipif mysql # not compatible
query I rowsort label-1479
SELECT + + CAST ( + 94 AS INTEGER ) col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT + 87 + - + 11 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT + 87 + - + 11 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT COUNT( * ) * 75 - 52 - - 78 * + 26 AS col0
----
2051

skipif mysql # not compatible
query I rowsort label-1481
SELECT COUNT ( * ) * 75 - 52 - - 78 * + 26 AS col0
----
2051

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

query I rowsort
SELECT ALL + 28 + - - 94 AS col2
----
122

query II rowsort
SELECT DISTINCT 86 + - 81 * 2, - 88 AS col2
----
-76
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT NULLIF ( - 95, + COALESCE ( CASE 69 WHEN - ( COUNT( - CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN 94 * + 12 THEN + 91 END, 29, + 8 ) - + ( 72 ) ) * 75 AS col1
----
-7125

skipif mysql # not compatible
query I rowsort label-1485
SELECT NULLIF ( - 95, + COALESCE ( CASE 69 WHEN - ( COUNT ( - CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN 94 * + 12 THEN + 91 END, 29, + 8 ) - + ( 72 ) ) * 75 AS col1
----
-7125

query II rowsort
SELECT ALL 56 AS col1, 27
----
56
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL CASE - ( - 50 ) WHEN + CAST( - + COALESCE ( - 25, 24, - 56 / 64 + 73 ) AS SIGNED ) THEN 63 * - 57 WHEN - 94 * 53 THEN + 49 / 21 END - CASE WHEN ( 37 ) NOT BETWEEN - NULLIF ( - 39, 25 ) AND ( NULL ) THEN NULL WHEN - COUNT( * ) IS NOT NULL THEN - 68 - 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL CASE - ( - 50 ) WHEN + CAST ( - + COALESCE ( - 25, 24, - 56 / 64 + 73 ) AS INTEGER ) THEN 63 * - 57 WHEN - 94 * 53 THEN + 49 / 21 END - CASE WHEN ( 37 ) NOT BETWEEN - NULLIF ( - 39, 25 ) AND ( NULL ) THEN NULL WHEN - COUNT ( * ) IS NOT NULL THEN - 68 - 55 ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ( - 37 ) * - 12 * + - 19
----
-8436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT DISTINCT ( - - CAST( + 22 AS SIGNED ) ) - + 4
----
18

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT ( - - CAST ( + 22 AS INTEGER ) ) - + 4
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1491
SELECT ALL 67 * - - CASE - + ( + 40 ) WHEN - 49 * 69 THEN NULL WHEN 6 * + ( + 22 ) THEN - COUNT( ALL - 95 ) * 93 WHEN 96 THEN NULL END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL 67 * - - CASE - + ( + 40 ) WHEN - 49 * 69 THEN NULL WHEN 6 * + ( + 22 ) THEN - COUNT ( ALL - 95 ) * 93 WHEN 96 THEN NULL END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT 34 + + CAST( NULL AS SIGNED ) - + + 79 + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT 34 + + CAST ( NULL AS INTEGER ) - + + 79 + 61 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT ( + COUNT ( * ) ) * - MIN ( ALL - ( - 8 ) ) col0
----
-8

query II rowsort
SELECT ALL 80, 29 * + 40 AS col0
----
80
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT MIN( DISTINCT - + 81 ) + + 57 - 62 * + 3 * 90
----
-16764

skipif mysql # not compatible
query I rowsort label-1495
SELECT MIN ( DISTINCT - + 81 ) + + 57 - 62 * + 3 * 90
----
-16764

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - + CASE + 14 WHEN + ( CASE + + 42 WHEN COUNT( * ) * COUNT( * ) THEN + 49 END ) THEN MAX( 22 ) WHEN 10 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT - + CASE + 14 WHEN + ( CASE + + 42 WHEN COUNT ( * ) * COUNT ( * ) THEN + 49 END ) THEN MAX ( 22 ) WHEN 10 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL + 82 * - ( CASE + 53 WHEN + 21 + 60 * 52 THEN NULL WHEN + SUM( ALL 5 ) * 13 THEN NULL WHEN 71 THEN NULL ELSE 86 END ) + 46
----
-7006

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + 82 * - ( CASE + 53 WHEN + 21 + 60 * 52 THEN NULL WHEN + SUM ( ALL 5 ) * 13 THEN NULL WHEN 71 THEN NULL ELSE 86 END ) + 46
----
-7006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT - SUM( + CAST( + 92 AS SIGNED ) ) * + 34
----
-3128

skipif mysql # not compatible
query I rowsort label-1500
SELECT - SUM ( + CAST ( + 92 AS INTEGER ) ) * + 34
----
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT ALL COUNT( * ) * 41 * COUNT( * ) + COUNT( * ) + + 62 + 15 * 50 AS col2
----
854

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL COUNT ( * ) * 41 * COUNT ( * ) + COUNT ( * ) + + 62 + 15 * 50 AS col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL - - COUNT( * ) * + 34 + + 48 + + - 7 * - 1 + + 19
----
108

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - - COUNT ( * ) * + 34 + + 48 + + - 7 * - 1 + + 19
----
108

query I rowsort
SELECT NULLIF ( + 80, - ( - 69 ) + + 94 - 33 * + 89 ) * 38
----
3040

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

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

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

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

query I rowsort
SELECT ALL + - 40 + 0 * + 58 + + - 50
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + + 9 * + 91 * + 35 - - - 91 + - 8 - 76 * 66 * - MIN( 57 * + 24 ) AS col2
----
6890454

skipif mysql # not compatible
query I rowsort label-1507
SELECT + + 9 * + 91 * + 35 - - - 91 + - 8 - 76 * 66 * - MIN ( 57 * + 24 ) AS col2
----
6890454

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

query I rowsort
SELECT - 1 - - 40 + + + 38 * - + 21 AS col1
----
-759

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + 94 - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + 94 - + COUNT ( * )
----
93

query I rowsort
SELECT + 24 * - 61
----
-1464

query I rowsort
SELECT DISTINCT + ( - 78 ) * - 16 - 92
----
1156

query I rowsort
SELECT ALL 68 - + - 65
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT CASE + 91 WHEN + 14 THEN NULL WHEN + + 39 + - 64 * + 47 THEN COUNT( * ) ELSE NULL END * + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT CASE + 91 WHEN + 14 THEN NULL WHEN + + 39 + - 64 * + 47 THEN COUNT ( * ) ELSE NULL END * + 8 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - MIN( DISTINCT - 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - MIN ( DISTINCT - 9 ) AS col0
----
9

query I rowsort
SELECT - 63 * 74 - - 82 AS col0
----
-4580

query I rowsort
SELECT 3 + + + 83 col0
----
86

query II rowsort
SELECT 54 AS col2, - 59 + + + 61 AS col2
----
54
2

query I rowsort
SELECT 9 * 86
----
774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1521
SELECT ALL COALESCE ( + COUNT( * ), - + ( - - ( 73 ) ) * + COALESCE ( 13, + 55 - 66 ) DIV - 81 - NULLIF ( - COUNT( * ), 98 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL COALESCE ( + COUNT ( * ), - + ( - - ( 73 ) ) * + COALESCE ( 13, + 55 - 66 ) / - 81 - NULLIF ( - COUNT ( * ), 98 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT - 56 + - CASE - 27 WHEN - 26 * - + MAX( + - 69 ) THEN NULL ELSE 27 + 0 END
----
-83

skipif mysql # not compatible
query I rowsort label-1522
SELECT - 56 + - CASE - 27 WHEN - 26 * - + MAX ( + - 69 ) THEN NULL ELSE 27 + 0 END
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + SUM( - 9 ) * MIN( DISTINCT - 31 ) * + 34 - - 94
----
9580

skipif mysql # not compatible
query I rowsort label-1523
SELECT + SUM ( - 9 ) * MIN ( DISTINCT - 31 ) * + 34 - - 94
----
9580

onlyif mysql # aggregate syntax: 
query II rowsort label-1524
SELECT - 73 * - - 80 col1, COUNT( DISTINCT 2 ) + + COUNT( * )
----
-5840
2

skipif mysql # not compatible
query II rowsort label-1524
SELECT - 73 * - - 80 col1, COUNT ( DISTINCT 2 ) + + COUNT ( * )
----
-5840
2

query I rowsort
SELECT ALL COALESCE ( 49, - + 62 * 74, 60 ) AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT ALL 20 DIV - 96 * + - 60 * - MIN( DISTINCT + - 33 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL 20 / - 96 * + - 60 * - MIN ( DISTINCT + - 33 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT + COUNT ( * ) / + + 50 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1528
SELECT + COALESCE ( - NULLIF ( + 60, - 64 ), + + MIN( ALL 27 ) / + 60, + 44 ) * CAST( ( CASE 45 WHEN + 30 * ( CAST( NULL AS SIGNED ) ) + 35 THEN COUNT( * ) WHEN + COALESCE ( + 64, 71 + - NULLIF ( 14, 31 ) * + ( - 21 ), 82 / - 41 ) * - 93 THEN 20 * 12 + ( + ( COUNT( 81 ) ) ) ELSE CAST( NULL AS DECIMAL ) + + 57 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT + COALESCE ( - NULLIF ( + 60, - 64 ), + + MIN ( ALL 27 ) / + 60, + 44 ) * CAST ( ( CASE 45 WHEN + 30 * ( CAST ( NULL AS INTEGER ) ) + 35 THEN COUNT ( * ) WHEN + COALESCE ( + 64, 71 + - NULLIF ( 14, 31 ) * + ( - 21 ), 82 / - 41 ) * - 93 THEN 20 * 12 + ( + ( COUNT ( 81 ) ) ) ELSE CAST ( NULL AS REAL ) + + 57 END ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT DISTINCT 66 DIV - 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT 66 / - 36 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT 49 AS col1, 31 + - MIN( + - 33 ) * COUNT( * ) * - 48 * 68 + + 40 * - 23
----
49
-108601

skipif mysql # not compatible
query II rowsort label-1530
SELECT 49 AS col1, 31 + - MIN ( + - 33 ) * COUNT ( * ) * - 48 * 68 + + 40 * - 23
----
49
-108601

query I rowsort
SELECT + ( - 75 ) / CASE + 64 WHEN + 86 THEN NULL WHEN + 30 THEN 49 * 81 ELSE - CASE + 9 WHEN + 7 * 36 THEN - 65 WHEN - 82 / + 50 + 45 THEN NULL END / NULLIF ( - 12, - 60 ) END + + 7 * 43 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 19 * + 5 * - ( 38 ) AS col1
----
-3610

query I rowsort
SELECT + 83 + + 56 col0
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1534
SELECT + CASE + 50 WHEN SUM( - 35 ) * + - 6 THEN - CASE 14 WHEN NULLIF ( 73, CASE - 9 WHEN 12 - + ( + 31 ) * - 19 THEN 80 WHEN - 59 + + 28 * - 54 THEN NULL END * - COUNT( 97 ) ) * 69 THEN NULL WHEN 33 * + 79 + + 80 THEN NULL ELSE + NULLIF ( - 96, - 79 + - 15 ) - + 47 END * 70 + - 96 WHEN ( 65 ) THEN + ( + COALESCE ( + 38, AVG ( DISTINCT - 44 ) * + 44, + CAST( NULL AS SIGNED ) ) ) WHEN COUNT( * ) * + COUNT( * ) THEN - 65 * 56 ELSE 77 END DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-1534
SELECT + CASE + 50 WHEN SUM ( - 35 ) * + - 6 THEN - CASE 14 WHEN NULLIF ( 73, CASE - 9 WHEN 12 - + ( + 31 ) * - 19 THEN 80 WHEN - 59 + + 28 * - 54 THEN NULL END * - COUNT ( 97 ) ) * 69 THEN NULL WHEN 33 * + 79 + + 80 THEN NULL ELSE + NULLIF ( - 96, - 79 + - 15 ) - + 47 END * 70 + - 96 WHEN ( 65 ) THEN + ( + COALESCE ( + 38, AVG ( DISTINCT - 44 ) * + 44, + CAST ( NULL AS INTEGER ) ) ) WHEN COUNT ( * ) * + COUNT ( * ) THEN - 65 * 56 ELSE 77 END / 18
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - COUNT( * ) + 79 + + ( + + 66 ) col2
----
144

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - COUNT ( * ) + 79 + + ( + + 66 ) col2
----
144

query I rowsort
SELECT DISTINCT 44 + + 41 + + - 46
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL + 20 + + + CASE WHEN ( + + MIN( ALL + 58 ) > 98 ) THEN COUNT( * ) * 42 END * ( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + 20 + + + CASE WHEN ( + + MIN ( ALL + 58 ) > 98 ) THEN COUNT ( * ) * 42 END * ( 34 )
----
NULL

query I rowsort
SELECT + + 14 - - 53 * + 59 AS col0
----
3141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT DISTINCT + COALESCE ( - - NULLIF ( - - 27, - + 4 ), + CASE + COUNT( * ) WHEN - NULLIF ( + 94, 98 ) * 21 + + 94 THEN - CAST( + COUNT( * ) AS SIGNED ) * 1 WHEN AVG ( 45 ) * 50 THEN NULL END + + 26 ) * COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT + COALESCE ( - - NULLIF ( - - 27, - + 4 ), + CASE + COUNT ( * ) WHEN - NULLIF ( + 94, 98 ) * 21 + + 94 THEN - CAST ( + COUNT ( * ) AS INTEGER ) * 1 WHEN AVG ( 45 ) * 50 THEN NULL END + + 26 ) * COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - + 64 * + - 56 * + MIN( ALL - 61 ) * - COUNT( * )
----
218624

skipif mysql # not compatible
query I rowsort label-1540
SELECT - + 64 * + - 56 * + MIN ( ALL - 61 ) * - COUNT ( * )
----
218624

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL + NULLIF ( + 28, + 90 ) * + - 20 * + 14 + + MAX( + 96 ) + - 44 * + 90 AS col0
----
-11704

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL + NULLIF ( + 28, + 90 ) * + - 20 * + 14 + + MAX ( + 96 ) + - 44 * + 90 AS col0
----
-11704

query II rowsort
SELECT + 17, - 1 AS col0
----
17
-1

query I rowsort
SELECT NULLIF ( - 52, - 35 ) AS col1
----
-52

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

skipif mysql # not compatible
query I rowsort label-1544
SELECT + 72 + - + COUNT ( * ) / + 52 AS col1
----
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1546
SELECT + 4 * COUNT( * ) + + CAST( - + COALESCE ( + 0, - 52 ) AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1546
SELECT + 4 * COUNT ( * ) + + CAST ( - + COALESCE ( + 0, - 52 ) AS INTEGER ) AS col2
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1547
SELECT - 55 - 83 + - - CAST( NULL AS DECIMAL ) - + 96 / + 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT - 55 - 83 + - - CAST ( NULL AS REAL ) - + 96 / + 82 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT - COUNT( * ) DIV 22 + 33 + 1 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1548
SELECT - COUNT ( * ) / 22 + 33 + 1 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL + 83 * - + 42 - + - 35 + - COUNT( * ) * - CAST( - 23 AS SIGNED )
----
-3474

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL + 83 * - + 42 - + - 35 + - COUNT ( * ) * - CAST ( - 23 AS INTEGER )
----
-3474

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT + + ( + - MAX( 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-1550
SELECT + + ( + - MAX ( 31 ) )
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL - - 84 * 65 * + - 43 + - 12 - + MAX( + 86 )
----
-234878

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - - 84 * 65 * + - 43 + - 12 - + MAX ( + 86 )
----
-234878

query I rowsort
SELECT ALL - ( 53 ) * + 10 AS col2
----
-530

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

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

query I rowsort
SELECT - + 63 + + + 32 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1556
SELECT + ( 24 ), + CAST( NULL AS SIGNED ) AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1556
SELECT + ( 24 ), + CAST ( NULL AS INTEGER ) AS col2
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - ( - MAX( ALL + 49 ) ) * + 47 + + + 94 + 48
----
2445

skipif mysql # not compatible
query I rowsort label-1557
SELECT - ( - MAX ( ALL + 49 ) ) * + 47 + + + 94 + 48
----
2445

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT - 9 * - COUNT( DISTINCT - ( 56 ) ) * + CASE 76 WHEN - 14 THEN - 91 WHEN 38 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT - 9 * - COUNT ( DISTINCT - ( 56 ) ) * + CASE 76 WHEN - 14 THEN - 91 WHEN 38 THEN NULL END
----
NULL

query I rowsort
SELECT - 68 + + + 81
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1561
SELECT - 62 + - 93, CAST( NULL AS SIGNED ) AS col1
----
-155
NULL

skipif mysql # not compatible
query II rowsort label-1561
SELECT - 62 + - 93, CAST ( NULL AS INTEGER ) AS col1
----
-155
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT ALL - ( 96 ) DIV - + 27 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - ( 96 ) / - + 27 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT DISTINCT - 84 DIV - 30 col0
----
2

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT - 84 / - 30 col0
----
2

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL CAST ( + - 29 AS INTEGER ) AS col1
----
-29

query I rowsort
SELECT ALL - 66 * + - 98
----
6468

query I rowsort
SELECT DISTINCT + 12 * + NULLIF ( + ( 96 ), - ( ( - 39 ) ) )
----
1152

query II rowsort
SELECT - 14 * - 81 AS col1, 5 * 53
----
1134
265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL + 21 + - - 13 - - + 94 * + - COUNT( * ) + - NULLIF ( + 41, CAST( COALESCE ( ( - MIN( ( + 87 ) ) ), 25 ) AS SIGNED ) ) col0
----
-101

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL + 21 + - - 13 - - + 94 * + - COUNT ( * ) + - NULLIF ( + 41, CAST ( COALESCE ( ( - MIN ( ( + 87 ) ) ), 25 ) AS INTEGER ) ) col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - COALESCE ( + 33, - SUM( 71 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1569
SELECT - COALESCE ( + 33, - SUM ( 71 ) ) AS col0
----
-33

query I rowsort
SELECT - 7 + ( + ( + + 96 ) ) col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT ALL + 94 + COALESCE ( + - COUNT( - - 7 ), 32 + ( + + 5 ) ) * - NULLIF ( COUNT( * ) * 7, CAST( NULL AS SIGNED ) )
----
101

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + 94 + COALESCE ( + - COUNT ( - - 7 ), 32 + ( + + 5 ) ) * - NULLIF ( COUNT ( * ) * 7, CAST ( NULL AS INTEGER ) )
----
101

query I rowsort
SELECT ALL 7 + + 88
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + - COALESCE ( 36, + 67, - 23 * - + COUNT( * ) * + + 17 ) * + 48 AS col1
----
-1728

skipif mysql # not compatible
query I rowsort label-1573
SELECT + - COALESCE ( 36, + 67, - 23 * - + COUNT ( * ) * + + 17 ) * + 48 AS col1
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL 73 + - 86 + 7 * - NULLIF ( + 95, - COUNT( * ) ) + + 63 AS col2
----
-615

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL 73 + - 86 + 7 * - NULLIF ( + 95, - COUNT ( * ) ) + + 63 AS col2
----
-615

query I rowsort
SELECT + - 2 + - ( + ( - + 59 ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT + COUNT( * ) * CASE - + 65 WHEN 32 * + + 26 + + - 68 THEN NULL WHEN + + 58 + COUNT( * ) THEN 98 * 24 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT + COUNT ( * ) * CASE - + 65 WHEN 32 * + + 26 + + - 68 THEN NULL WHEN + + 58 + COUNT ( * ) THEN 98 * 24 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1577
SELECT - 56 DIV - 59 + - MAX( + + 73 ) * 55 + 95 AS col2
----
-3920

skipif mysql # not compatible
query I rowsort label-1577
SELECT - 56 / - 59 + - MAX ( + + 73 ) * 55 + 95 AS col2
----
-3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1578
SELECT DISTINCT + - CASE NULLIF ( + ( - + 75 ), + COUNT( * ) * + + MIN( DISTINCT + + 13 ) ) WHEN - 61 THEN NULL WHEN 56 * + 38 THEN COUNT( * ) * 45 WHEN 2 + - 26 THEN COUNT( * ) WHEN - CAST( - 72 AS SIGNED ) / + 43 + + ( + COALESCE ( + COUNT( * ), + 10 ) ) / + 4 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT + - CASE NULLIF ( + ( - + 75 ), + COUNT ( * ) * + + MIN ( DISTINCT + + 13 ) ) WHEN - 61 THEN NULL WHEN 56 * + 38 THEN COUNT ( * ) * 45 WHEN 2 + - 26 THEN COUNT ( * ) WHEN - CAST ( - 72 AS INTEGER ) / + 43 + + ( + COALESCE ( + COUNT ( * ), + 10 ) ) / + 4 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + 59 * + 47 + - - 35 AS col0, 14
----
2808
14

query I rowsort
SELECT 54 * + NULLIF ( + + 13, + + 36 + + 2 ) * + 45 AS col1
----
31590

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1582
SELECT 85 AS col0, - 48 * - - COUNT( * )
----
85
-48

skipif mysql # not compatible
query II rowsort label-1582
SELECT 85 AS col0, - 48 * - - COUNT ( * )
----
85
-48

query I rowsort
SELECT 38 * 56 AS col1
----
2128

query I rowsort
SELECT ALL - 98 * + - 14 * + + 26
----
35672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT ALL 56 DIV MIN( DISTINCT 24 ) DIV - 81 * 95 - 62 + - 33
----
-95

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL 56 / MIN ( DISTINCT 24 ) / - 81 * 95 - 62 + - 33
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1586
SELECT + 64 AS col0, + 15 - + - MAX( ALL CAST( - 91 AS SIGNED ) )
----
64
-76

skipif mysql # not compatible
query II rowsort label-1586
SELECT + 64 AS col0, + 15 - + - MAX ( ALL CAST ( - 91 AS INTEGER ) )
----
64
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL + 25 + + COALESCE ( + CASE - + 6 WHEN - 66 + + 12 THEN + - 21 * 68 + 2 END, + 58 ) + + MIN( + 66 ) * - 81 AS col0
----
-5263

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + 25 + + COALESCE ( + CASE - + 6 WHEN - 66 + + 12 THEN + - 21 * 68 + 2 END, + 58 ) + + MIN ( + 66 ) * - 81 AS col0
----
-5263

query I rowsort
SELECT DISTINCT ( + 96 ) + - 9 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT 69 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT 69 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 73 - + 22 * + 53 + + 7 - + + 38 AS col2
----
-1124

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

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

query II rowsort
SELECT 22 col1, 5 AS col1
----
22
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT COUNT( * ) * - 47 + 6 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1593
SELECT COUNT ( * ) * - 47 + 6 AS col2
----
-41

query II rowsort
SELECT 30, 61 * + 89 AS col0
----
30
5429

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1595
SELECT 59 DIV - ( 56 ) AS col0, COUNT( * ) + COUNT( * )
----
-1
2

skipif mysql # not compatible
query II rowsort label-1595
SELECT 59 / - ( 56 ) AS col0, COUNT ( * ) + COUNT ( * )
----
-1
2

query I rowsort
SELECT 63 + + 32
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT ALL - 36 DIV - 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - 36 / - 78 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT ALL + - 38 + - MAX( ALL 74 ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + - 38 + - MAX ( ALL 74 ) AS col0
----
-112

query I rowsort
SELECT DISTINCT - 61 * + - 51 * 59 AS col1
----
183549

query I rowsort
SELECT ALL + 3 * 14 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1601
SELECT 12 * + 24 * - 13 AS col1, + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * - 66 + 41
----
-3744
NULL

skipif mysql # not compatible
query II rowsort label-1601
SELECT 12 * + 24 * - 13 AS col1, + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 66 + 41
----
-3744
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT - MIN( ALL + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-1602
SELECT - MIN ( ALL + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1603
SELECT ALL - 59 - - - 91 * ( + 80 ) AS col0, - COUNT( * )
----
-7339
-1

skipif mysql # not compatible
query II rowsort label-1603
SELECT ALL - 59 - - - 91 * ( + 80 ) AS col0, - COUNT ( * )
----
-7339
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT - + COUNT( * ), COUNT( DISTINCT - + 63 ) * - COUNT( * ) + + - 71 AS col1
----
-1
-72

skipif mysql # not compatible
query II rowsort label-1604
SELECT - + COUNT ( * ), COUNT ( DISTINCT - + 63 ) * - COUNT ( * ) + + - 71 AS col1
----
-1
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1605
SELECT ALL - 94 AS col2, + COUNT( * ) + 55 AS col2
----
-94
56

skipif mysql # not compatible
query II rowsort label-1605
SELECT ALL - 94 AS col2, + COUNT ( * ) + 55 AS col2
----
-94
56

query I rowsort
SELECT + 54 + + 9
----
63

query I rowsort
SELECT ALL - 98 * - - 70 - 7 AS col1
----
-6867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT ALL NULLIF ( ( - COUNT( * ) ), - COUNT( * ) * - ( 50 ) ) DIV - 13 * + 27
----
0

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL NULLIF ( ( - COUNT ( * ) ), - COUNT ( * ) * - ( 50 ) ) / - 13 * + 27
----
0

query I rowsort
SELECT - 4 - - 12
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1610
SELECT COALESCE ( + + ( - - ( SUM( + 82 ) ) ), - 62 * + + 78 DIV - - 49 + - CAST( NULL AS SIGNED ) ) + 32
----
114

skipif mysql # not compatible
query I rowsort label-1610
SELECT COALESCE ( + + ( - - ( SUM ( + 82 ) ) ), - 62 * + + 78 / - - 49 + - CAST ( NULL AS INTEGER ) ) + 32
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - NULLIF ( - + 21, - 16 * - CASE + + COALESCE ( + 96, 26 / 14 + - CASE COUNT( ALL 62 ) WHEN 55 + COUNT( * ) THEN + 28 END * 51 ) WHEN + COUNT( * ) THEN + 99 ELSE 32 END * 53 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1611
SELECT - NULLIF ( - + 21, - 16 * - CASE + + COALESCE ( + 96, 26 / 14 + - CASE COUNT ( ALL 62 ) WHEN 55 + COUNT ( * ) THEN + 28 END * 51 ) WHEN + COUNT ( * ) THEN + 99 ELSE 32 END * 53 ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT - 88 * - CASE - NULLIF ( 10, + 16 ) WHEN - + 62 THEN - COUNT( * ) END + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT - 88 * - CASE - NULLIF ( 10, + 16 ) WHEN - + 62 THEN - COUNT ( * ) END + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1614
SELECT DISTINCT - 11 DIV + 86, 93 AS col1
----
0
93

skipif mysql # not compatible
query II rowsort label-1614
SELECT DISTINCT - 11 / + 86, 93 AS col1
----
0
93

query II rowsort
SELECT ALL 15 + + + 15, 56 AS col2
----
30
56

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

query I rowsort
SELECT ALL 38 + - - 59 * - 39 + + - 3
----
-2266

query I rowsort
SELECT 63 * 79 AS col0
----
4977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT ALL - NULLIF ( + COUNT( * ), - COALESCE ( - + CASE WHEN NOT + 33 IS NULL THEN COUNT( - COALESCE ( + 7, 41, ( COALESCE ( - 59, 87 * - CAST( - 16 AS SIGNED ), + 93 ) ) ) ) ELSE + 43 END, + 20 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - NULLIF ( + COUNT ( * ), - COALESCE ( - + CASE WHEN NOT + 33 IS NULL THEN COUNT ( - COALESCE ( + 7, 41, ( COALESCE ( - 59, 87 * - CAST ( - 16 AS INTEGER ), + 93 ) ) ) ) ELSE + 43 END, + 20 ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 1 + 23, 70 AS col1
----
24
70

query I rowsort
SELECT 94 + + + 10 + 43 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT 36 - 33 * 0 + - 16 + 94 - 38 * + + 34 * - - 14 * COUNT( * ) + COUNT( * )
----
-17973

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT 36 - 33 * 0 + - 16 + 94 - 38 * + + 34 * - - 14 * COUNT ( * ) + COUNT ( * )
----
-17973

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT - COALESCE ( - - 97, - - COUNT( * ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-1623
SELECT - COALESCE ( - - 97, - - COUNT ( * ) ) AS col0
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT - 25 + - NULLIF ( 91, COUNT( * ) - COUNT( - - 86 ) ) * + 78
----
-7123

skipif mysql # not compatible
query I rowsort label-1625
SELECT - 25 + - NULLIF ( 91, COUNT ( * ) - COUNT ( - - 86 ) ) * + 78
----
-7123

query I rowsort
SELECT 75 - - ( - ( + 97 ) ) col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1627
SELECT 6 + - 0 - + 10 + COUNT( * ) * + + 31 + - 43 DIV - 70 AS col0, ( 94 ) AS col1
----
27
94

skipif mysql # not compatible
query II rowsort label-1627
SELECT 6 + - 0 - + 10 + COUNT ( * ) * + + 31 + - 43 / - 70 AS col0, ( 94 ) AS col1
----
27
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT DISTINCT + + 56 * - MAX( 55 ) * 86
----
-264880

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + + 56 * - MAX ( 55 ) * 86
----
-264880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1630
SELECT 44 DIV + 19 col2, + COUNT( * ) DIV + - 35
----
2
0

skipif mysql # not compatible
query II rowsort label-1630
SELECT 44 / + 19 col2, + COUNT ( * ) / + - 35
----
2
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1632
SELECT ALL + - 89 DIV - NULLIF ( + - COUNT( * ), - + COALESCE ( - 27, - 59 * - ( + ( - 28 ) ) ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + - 89 / - NULLIF ( + - COUNT ( * ), - + COALESCE ( - 27, - 59 * - ( + ( - 28 ) ) ) ) AS col0
----
-89

query I rowsort
SELECT + + 81 * 45 * 48
----
174960

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT - - 75 + - 72 AS col2, ( + MAX( + 98 ) )
----
3
98

skipif mysql # not compatible
query II rowsort label-1634
SELECT - - 75 + - 72 AS col2, ( + MAX ( + 98 ) )
----
3
98

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

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

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

skipif mysql # not compatible
query I rowsort label-1636
SELECT - - 26 * COUNT ( DISTINCT - + 43 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1637
SELECT - 68 * - 33, - 97 - COUNT( * ) AS col2
----
2244
-98

skipif mysql # not compatible
query II rowsort label-1637
SELECT - 68 * - 33, - 97 - COUNT ( * ) AS col2
----
2244
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL + - NULLIF ( 25, - - ( - 13 ) / + SUM( ALL 81 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + - NULLIF ( 25, - - ( - 13 ) / + SUM ( ALL 81 ) ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT DISTINCT + 71 * - 13 + - CAST( - 27 AS SIGNED )
----
-896

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT + 71 * - 13 + - CAST ( - 27 AS INTEGER )
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT COALESCE ( + - 53, + 13 * - + 2, + COUNT( + - 95 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1640
SELECT COALESCE ( + - 53, + 13 * - + 2, + COUNT ( + - 95 ) ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT - 9 * 22 DIV 68 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1641
SELECT - 9 * 22 / 68 AS col1
----
-2

query II rowsort
SELECT DISTINCT + 25, - 23 AS col1
----
25
-23

query I rowsort
SELECT ALL 59 * - 60 + - 91 + + 1
----
-3630

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

skipif mysql # not compatible
query I rowsort label-1644
SELECT - 91 * - COUNT ( * )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT DISTINCT + 62 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT + 62 / 55
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1646
SELECT AVG ( - 15 ) / - - ( 45 ) * - 8 * - 91 * - + CAST( NULL AS DECIMAL ) + + + COALESCE ( + - COUNT( 10 ), - 15 ) - + COUNT( * ) * 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT AVG ( - 15 ) / - - ( 45 ) * - 8 * - 91 * - + CAST ( NULL AS REAL ) + + + COALESCE ( + - COUNT ( 10 ), - 15 ) - + COUNT ( * ) * 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - NULLIF ( - 72, - COUNT( * ) / - 9 ) - - 1 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1647
SELECT - NULLIF ( - 72, - COUNT ( * ) / - 9 ) - - 1 AS col1
----
73

query I rowsort
SELECT ALL 55 * 54 AS col1
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT COALESCE ( 20, 58 DIV ( - 92 ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1649
SELECT COALESCE ( 20, 58 / ( - 92 ) ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT + 63 * - - COUNT( * ) col2
----
63

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT + 63 * - - COUNT ( * ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT DISTINCT NULLIF ( 64, - - 33 * + 14 / COUNT( * ) - - COUNT( * ) + COUNT( * ) ) * 37 * + COUNT( * ) - - - COUNT( * ) AS col0
----
2367

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT NULLIF ( 64, - - 33 * + 14 / COUNT ( * ) - - COUNT ( * ) + COUNT ( * ) ) * 37 * + COUNT ( * ) - - - COUNT ( * ) AS col0
----
2367

query I rowsort
SELECT + NULLIF ( + 28, - 18 + - 20 * + 34 * + 40 + + - 31 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1653
SELECT + 66 - - 15 * COALESCE ( 89, + - 56 ) + + CAST( - + 8 AS SIGNED )
----
1393

skipif mysql # not compatible
query I rowsort label-1653
SELECT + 66 - - 15 * COALESCE ( 89, + - 56 ) + + CAST ( - + 8 AS INTEGER )
----
1393

query I rowsort
SELECT ALL CASE + 68 WHEN - - 54 THEN + - 99 * - 32 * - 74 * 54 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT - 70 * 38 DIV 88 + + - NULLIF ( - 75, + + 72 + - + 81 )
----
45

skipif mysql # not compatible
query I rowsort label-1655
SELECT - 70 * 38 / 88 + + - NULLIF ( - 75, + + 72 + - + 81 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT + COUNT( * ) + + 14 * + 41 * - COUNT( * )
----
-573

skipif mysql # not compatible
query I rowsort label-1656
SELECT + COUNT ( * ) + + 14 * + 41 * - COUNT ( * )
----
-573

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT + - SUM( CASE 81 WHEN + 19 THEN - 43 END ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT + - SUM ( CASE 81 WHEN + 19 THEN - 43 END ) * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT ALL + CASE + 34 WHEN 94 THEN NULL ELSE + 58 END * - COUNT( * ), - ( - + 60 ) AS col1
----
-58
60

skipif mysql # not compatible
query II rowsort label-1659
SELECT ALL + CASE + 34 WHEN 94 THEN NULL ELSE + 58 END * - COUNT ( * ), - ( - + 60 ) AS col1
----
-58
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT COUNT( * ) * - 85 * + + ( + + SUM( DISTINCT - + 74 ) ) / - + 9 / + COUNT( * ) + ( CAST( NULL AS SIGNED ) ) + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT COUNT ( * ) * - 85 * + + ( + + SUM ( DISTINCT - + 74 ) ) / - + 9 / + COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) + 70 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + ( + 41 ) - 4 + - 0 * - + COUNT( * ) + + 53 + - - CASE 39 WHEN ( 46 ) + 6 THEN 39 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT + ( + 41 ) - 4 + - 0 * - + COUNT ( * ) + + 53 + - - CASE 39 WHEN ( 46 ) + 6 THEN 39 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT NULLIF ( - NULLIF ( + - COUNT( * ), + 26 ), 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1662
SELECT NULLIF ( - NULLIF ( + - COUNT ( * ), + 26 ), 71 ) AS col2
----
1

query I rowsort
SELECT ALL 69 + + + 69
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + 39 + - NULLIF ( - 23, + ( - - COUNT( + + 53 ) ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1664
SELECT + 39 + - NULLIF ( - 23, + ( - - COUNT ( + + 53 ) ) ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL + COALESCE ( - ( + 69 ), - - 24, + 73 ) + 23 - - 8 + 38 * + - 92 + + + COUNT( * ) + 83 * + 40 AS col0
----
-213

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + COALESCE ( - ( + 69 ), - - 24, + 73 ) + 23 - - 8 + 38 * + - 92 + + + COUNT ( * ) + 83 * + 40 AS col0
----
-213

query I rowsort
SELECT DISTINCT - 22 + - 61
----
-83

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

query I rowsort
SELECT ALL + 39 + ( 68 ) AS col1
----
107

query I rowsort
SELECT - NULLIF ( - + ( + 1 ), 87 * + ( 54 ) * 46 - + - 27 * - 87 ) - + - 21 - - 52 AS col1
----
74

query I rowsort
SELECT + 98 + + NULLIF ( + CASE 40 WHEN + 25 THEN NULL ELSE 41 * + 80 END, - 53 ) * 70
----
229698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1671
SELECT - COUNT( * ) + + 31 * + + ( + 98 ), - 37 + - CAST( + - 19 AS SIGNED ) AS col1
----
3037
-18

skipif mysql # not compatible
query II rowsort label-1671
SELECT - COUNT ( * ) + + 31 * + + ( + 98 ), - 37 + - CAST ( + - 19 AS INTEGER ) AS col1
----
3037
-18

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

skipif mysql # not compatible
query I rowsort label-1672
SELECT + CAST ( + COUNT ( - 78 ) AS INTEGER )
----
1

query I rowsort
SELECT + 91 + - 40 + - - 85 AS col2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT + CAST( + 27 AS SIGNED ) col2, + 20 AS col0
----
27
20

skipif mysql # not compatible
query II rowsort label-1674
SELECT + CAST ( + 27 AS INTEGER ) col2, + 20 AS col0
----
27
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1675
SELECT + 35 * - 0 DIV + + CAST( - COALESCE ( - 55, + 34 - 32 - ( - CAST( + 7 AS SIGNED ) ) ) AS SIGNED ) * + 34 + 47 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-1675
SELECT + 35 * - 0 / + + CAST ( - COALESCE ( - 55, + 34 - 32 - ( - CAST ( + 7 AS INTEGER ) ) ) AS INTEGER ) * + 34 + 47 / - 45
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1676
SELECT + 17 AS col2, - 76 - - - CAST( - 55 AS SIGNED )
----
17
-21

skipif mysql # not compatible
query II rowsort label-1676
SELECT + 17 AS col2, - 76 - - - CAST ( - 55 AS INTEGER )
----
17
-21

query I rowsort
SELECT - NULLIF ( + 43, - 97 + - + 24 + + 87 ) + + 93 AS col1
----
50

query I rowsort
SELECT ALL + 76 * - ( + 34 )
----
-2584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), + ( + COUNT( * ) ) + + 49 ) * + + CASE MIN( ALL - 42 ) WHEN + - 95 + - ( 79 ) THEN NULL WHEN NULLIF ( CAST( - MIN( 67 ) AS SIGNED ), - 51 ) THEN NULL ELSE 92 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1679
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), + ( + COUNT ( * ) ) + + 49 ) * + + CASE MIN ( ALL - 42 ) WHEN + - 95 + - ( 79 ) THEN NULL WHEN NULLIF ( CAST ( - MIN ( 67 ) AS INTEGER ), - 51 ) THEN NULL ELSE 92 END AS col1
----
NULL

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

query I rowsort
SELECT - 14 + 16 * + 51 AS col2
----
802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1682
SELECT - 7 * - - 40 col0, - 72 * SUM( + CAST( - 26 AS SIGNED ) )
----
-280
1872

skipif mysql # not compatible
query II rowsort label-1682
SELECT - 7 * - - 40 col0, - 72 * SUM ( + CAST ( - 26 AS INTEGER ) )
----
-280
1872

query I rowsort
SELECT DISTINCT + ( ( + + NULLIF ( + + 61, - 45 ) ) )
----
61

query I rowsort
SELECT ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + NULLIF ( - 46, + - COUNT( * ) + + 67 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1685
SELECT + NULLIF ( - 46, + - COUNT ( * ) + + 67 ) AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT ALL + 14 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + 14 / 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT - + 49 + - MIN( + 54 ) + + - 66 AS col1, 72 * - ( 12 ) AS col1
----
-169
-864

skipif mysql # not compatible
query II rowsort label-1687
SELECT - + 49 + - MIN ( + 54 ) + + - 66 AS col1, 72 * - ( 12 ) AS col1
----
-169
-864

query I rowsort
SELECT DISTINCT 55 * + 40 + - 36
----
2164

query II rowsort
SELECT ALL 3, 17 AS col2
----
3
17

query I rowsort
SELECT ALL + 20 * 74 AS col1
----
1480

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT 58 + + 40 - - CASE WHEN NOT + 67 IS NULL AND ( - 29 ) NOT BETWEEN ( - + 84 ) AND 64 * - 15 THEN - 87 DIV - COUNT( * ) WHEN NULL <> ( + ( 90 ) ) + 54 * NULLIF ( + 9 * - 25, 75 ) THEN NULL END
----
185

skipif mysql # not compatible
query I rowsort label-1692
SELECT 58 + + 40 - - CASE WHEN NOT + 67 IS NULL AND ( - 29 ) NOT BETWEEN ( - + 84 ) AND 64 * - 15 THEN - 87 / - COUNT ( * ) WHEN NULL <> ( + ( 90 ) ) + 54 * NULLIF ( + 9 * - 25, 75 ) THEN NULL END
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT COALESCE ( COUNT( - ( - 52 ) ), - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-1693
SELECT COALESCE ( COUNT ( - ( - 52 ) ), - 71 )
----
1

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

skipif mysql # not compatible
query I rowsort label-1694
SELECT 4 * + 87 / - - COUNT ( * )
----
348

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

query I rowsort
SELECT 7 - - 39 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1697
SELECT - COUNT( * ) col1, - 7 * 40
----
-1
-280

skipif mysql # not compatible
query II rowsort label-1697
SELECT - COUNT ( * ) col1, - 7 * 40
----
-1
-280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1698
SELECT DISTINCT + 26 + + CAST( NULL AS SIGNED ) + ( + 16 ) AS col1, - 4 AS col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-1698
SELECT DISTINCT + 26 + + CAST ( NULL AS INTEGER ) + ( + 16 ) AS col1, - 4 AS col2
----
NULL
-4

query I rowsort
SELECT ALL - 68 + + 24 AS col1
----
-44

query I rowsort
SELECT ALL CASE + 85 WHEN - 71 THEN + 29 WHEN + - 77 + - 32 THEN + 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT - COUNT( DISTINCT + - 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1701
SELECT - COUNT ( DISTINCT + - 50 ) AS col2
----
-1

query I rowsort
SELECT ALL - 93 + 37 * - - 59 AS col0
----
2090

query I rowsort
SELECT DISTINCT - 35 + 99 * - 1 + 77
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT ALL 3 + - ( + COUNT( * ) ) + - - COUNT( * ) * SUM( DISTINCT - - 55 ) DIV - 90 - + 72 + + + 72 + MIN( 17 ) - 88 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL 3 + - ( + COUNT ( * ) ) + - - COUNT ( * ) * SUM ( DISTINCT - - 55 ) / - 90 - + 72 + + + 72 + MIN ( 17 ) - 88 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT ALL 47 * - ( + - MIN( DISTINCT + + 43 ) ) + SUM( - 86 ) + - COALESCE ( 60, ( + + 82 ) + + 29 + 51 * + COUNT( 1 ) ) + + 56
----
1931

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL 47 * - ( + - MIN ( DISTINCT + + 43 ) ) + SUM ( - 86 ) + - COALESCE ( 60, ( + + 82 ) + + 29 + 51 * + COUNT ( 1 ) ) + + 56
----
1931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT CAST( - + 97 AS SIGNED ) + + 39 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1706
SELECT CAST ( - + 97 AS INTEGER ) + + 39 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT NULLIF ( 38, + 69 ) * - - 57 + - + 91 + CASE - + COUNT( * ) WHEN - 96 / - 55 * + - 32 THEN - + 59 + + 84 WHEN 97 * ( - 34 ) + 93 THEN - 77 / COUNT( * ) + 11 WHEN AVG ( 57 ) / + ( - SUM( ALL - 65 ) * - 5 ) + ( + 50 ) * - 99 THEN 51 + - COUNT( 8 + 43 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT NULLIF ( 38, + 69 ) * - - 57 + - + 91 + CASE - + COUNT ( * ) WHEN - 96 / - 55 * + - 32 THEN - + 59 + + 84 WHEN 97 * ( - 34 ) + 93 THEN - 77 / COUNT ( * ) + 11 WHEN AVG ( 57 ) / + ( - SUM ( ALL - 65 ) * - 5 ) + ( + 50 ) * - 99 THEN 51 + - COUNT ( 8 + 43 ) END
----
NULL

query II rowsort
SELECT DISTINCT 27 * + 9 AS col2, 40
----
243
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL 86 + + - 98 + + SUM( DISTINCT - 81 ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL 86 + + - 98 + + SUM ( DISTINCT - 81 ) col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT DISTINCT 91 * - CAST( - 86 AS SIGNED ) AS col1
----
7826

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT 91 * - CAST ( - 86 AS INTEGER ) AS col1
----
7826

query I rowsort
SELECT DISTINCT 85 - + 88 * 48 * + - 56 col2
----
236629

query I rowsort
SELECT 88 * 31 col0
----
2728

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT ALL 78 DIV - 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL 78 / - 64 AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1714
SELECT 69 / - 71
----
0

query I rowsort
SELECT 4 * 52 AS col2
----
208

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1717
SELECT ALL - COALESCE ( + CASE + - 30 WHEN - MIN( - 83 ) DIV - + 43 THEN NULL ELSE 31 - - 76 * 42 DIV - 91 END, - COUNT( * ) + 32 )
----
4

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - COALESCE ( + CASE + - 30 WHEN - MIN ( - 83 ) / - + 43 THEN NULL ELSE 31 - - 76 * 42 / - 91 END, - COUNT ( * ) + 32 )
----
4

query I rowsort
SELECT 14 * + + 5
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL COUNT( * ) * 86 * + ( 9 ) AS col0
----
774

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL COUNT ( * ) * 86 * + ( 9 ) AS col0
----
774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT - NULLIF ( CAST( + ( + ( + COUNT( * ) ) ) AS SIGNED ), AVG ( ( + 42 ) ) * - 89 ) * - ( 3 ) + + ( 99 )
----
102

skipif mysql # not compatible
query I rowsort label-1720
SELECT - NULLIF ( CAST ( + ( + ( + COUNT ( * ) ) ) AS INTEGER ), AVG ( ( + 42 ) ) * - 89 ) * - ( 3 ) + + ( 99 )
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT 46 * + 59 / - 39 * + ( 73 ) + - 23 + - 93 + - - 48 * + + 63 / - 39 * + MAX( ALL - CAST( NULL AS SIGNED ) ) * CASE 37 * - 62 WHEN - CAST( 21 AS SIGNED ) THEN 25 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT 46 * + 59 / - 39 * + ( 73 ) + - 23 + - 93 + - - 48 * + + 63 / - 39 * + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * CASE 37 * - 62 WHEN - CAST ( 21 AS INTEGER ) THEN 25 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1722
SELECT + 3 * CAST( NULL AS DECIMAL ) - + 24 + 32 + + 89 + COUNT( * ) + + 55 * - 6 * + ( - 9 ) * + + CASE + CAST( NULL AS DECIMAL ) WHEN 38 THEN - 11 * - 32 END * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT + 3 * CAST ( NULL AS REAL ) - + 24 + 32 + + 89 + COUNT ( * ) + + 55 * - 6 * + ( - 9 ) * + + CASE + CAST ( NULL AS REAL ) WHEN 38 THEN - 11 * - 32 END * 69 AS col1
----
NULL

query I rowsort
SELECT 81 * - 65
----
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - COUNT( * ) - - + 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1724
SELECT - COUNT ( * ) - - + 4 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT ( - - 35 ) AS col0, + CASE + + 86 WHEN - COUNT( * ) THEN NULL WHEN 3 THEN 62 END AS col0
----
35
NULL

skipif mysql # not compatible
query II rowsort label-1725
SELECT ( - - 35 ) AS col0, + CASE + + 86 WHEN - COUNT ( * ) THEN NULL WHEN 3 THEN 62 END AS col0
----
35
NULL

query I rowsort
SELECT ALL + + 82 + 32 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + NULLIF ( 73, + + CASE - MAX( - 11 ) WHEN 24 THEN 75 * - 56 + - 79 + 35 + - 72 + + - 50 WHEN + 43 + + 74 THEN NULL WHEN SUM( DISTINCT 80 ) THEN NULL END ) + 97 * + 5 AS col2
----
558

skipif mysql # not compatible
query I rowsort label-1727
SELECT + NULLIF ( 73, + + CASE - MAX ( - 11 ) WHEN 24 THEN 75 * - 56 + - 79 + 35 + - 72 + + - 50 WHEN + 43 + + 74 THEN NULL WHEN SUM ( DISTINCT 80 ) THEN NULL END ) + 97 * + 5 AS col2
----
558

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1728
SELECT ALL - ( - CAST( NULL AS SIGNED ) ), - 71 DIV + 52 AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1728
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ), - 71 / + 52 AS col2
----
NULL
-1

query I rowsort
SELECT ALL + CASE - 31 WHEN + 99 THEN 73 ELSE + 7 END + - ( - ( 78 ) )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1730
SELECT ALL 74 + + 23, + COUNT( * ) * - 56 + + 21 + + 68 * + 26 + 57 col1
----
97
1790

skipif mysql # not compatible
query II rowsort label-1730
SELECT ALL 74 + + 23, + COUNT ( * ) * - 56 + + 21 + + 68 * + 26 + 57 col1
----
97
1790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT DISTINCT 92 + - 20 * - CASE + - 90 WHEN 37 THEN + + 10 * - COUNT( * ) / + 12 + - CAST( + - COUNT( * ) AS SIGNED ) WHEN - 90 THEN NULL ELSE + 38 END * + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT 92 + - 20 * - CASE + - 90 WHEN 37 THEN + + 10 * - COUNT ( * ) / + 12 + - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN - 90 THEN NULL ELSE + 38 END * + 68 AS col2
----
NULL

query I rowsort
SELECT 32 + 88 + + 93
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT COUNT( * ) + 22 * + 65 * - 13 + - 69 * 14 AS col1
----
-19555

skipif mysql # not compatible
query I rowsort label-1733
SELECT COUNT ( * ) + 22 * + 65 * - 13 + - 69 * 14 AS col1
----
-19555

query I rowsort
SELECT 47 * + 76 AS col1
----
3572

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT 72, - COUNT( * ) + COUNT( * ) * + 86 AS col2
----
72
85

skipif mysql # not compatible
query II rowsort label-1735
SELECT 72, - COUNT ( * ) + COUNT ( * ) * + 86 AS col2
----
72
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT 53 + - + COUNT( * ) * CASE + 94 WHEN 33 THEN 66 / - - 92 * + ( - - CASE + 81 WHEN + SUM( ALL + 90 ) + + 27 THEN - 20 * CASE ( 8 ) WHEN + 14 - - 1 THEN NULL WHEN 69 * - 91 + + 66 * COUNT( * ) THEN + 64 ELSE NULL END ELSE + 54 END ) * - 55 + MIN( ALL 24 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT 53 + - + COUNT ( * ) * CASE + 94 WHEN 33 THEN 66 / - - 92 * + ( - - CASE + 81 WHEN + SUM ( ALL + 90 ) + + 27 THEN - 20 * CASE ( 8 ) WHEN + 14 - - 1 THEN NULL WHEN 69 * - 91 + + 66 * COUNT ( * ) THEN + 64 ELSE NULL END ELSE + 54 END ) * - 55 + MIN ( ALL 24 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT DISTINCT COUNT( ALL - - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT COUNT ( ALL - - 49 )
----
1

query I rowsort
SELECT 88 + 73
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1739
SELECT DISTINCT 37 * MAX( DISTINCT - 31 ) * - 35 / + CASE + 91 WHEN + 4 / + COUNT( * ) THEN NULL WHEN - + 10 THEN - 19 - + CAST( NULL AS SIGNED ) WHEN - 70 + + + COALESCE ( 87, 67, - 50, 88 + - 41 * 17 ) THEN NULL WHEN 8 THEN - 39 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT 37 * MAX ( DISTINCT - 31 ) * - 35 / + CASE + 91 WHEN + 4 / + COUNT ( * ) THEN NULL WHEN - + 10 THEN - 19 - + CAST ( NULL AS INTEGER ) WHEN - 70 + + + COALESCE ( 87, 67, - 50, 88 + - 41 * 17 ) THEN NULL WHEN 8 THEN - 39 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1740
SELECT + 70 AS col2, + MAX( ALL - 13 )
----
70
-13

skipif mysql # not compatible
query II rowsort label-1740
SELECT + 70 AS col2, + MAX ( ALL - 13 )
----
70
-13

query I rowsort
SELECT 72 * + 27
----
1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1742
SELECT 14 DIV - - CAST( COUNT( DISTINCT - 24 ) AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1742
SELECT 14 / - - CAST ( COUNT ( DISTINCT - 24 ) AS INTEGER ) AS col1
----
14

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

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

query I rowsort
SELECT + 89 * + - ( + 51 ) + 79 + + - 59 + + 84 * 10
----
-3679

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT 23 - - + NULLIF ( CASE + 84 WHEN 38 THEN NULL ELSE 20 - - 12 END, + + 44 * - 0 + - 59 * - COUNT( * ) * + COALESCE ( - 54, COUNT( * ) / - AVG ( ALL + 29 ) + - COALESCE ( 77, + 77 ), + 18 ) ) * + 41 col2
----
1335

skipif mysql # not compatible
query I rowsort label-1745
SELECT 23 - - + NULLIF ( CASE + 84 WHEN 38 THEN NULL ELSE 20 - - 12 END, + + 44 * - 0 + - 59 * - COUNT ( * ) * + COALESCE ( - 54, COUNT ( * ) / - AVG ( ALL + 29 ) + - COALESCE ( 77, + 77 ), + 18 ) ) * + 41 col2
----
1335

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

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL - SUM ( - 51 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT COUNT( - + 94 ) DIV 36 + 83 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT COUNT ( - + 94 ) / 36 + 83 / 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL 36 * COUNT( ALL 6 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL 36 * COUNT ( ALL 6 ) AS col2
----
36

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

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

query I rowsort
SELECT ALL - CASE - + 65 WHEN - 3 * + 7 THEN NULL ELSE + 28 END
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT COUNT( 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1751
SELECT COUNT ( 21 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT + 16 + 32 * - - MAX( ( + + ( - 19 ) ) ) AS col2
----
-592

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 16 + 32 * - - MAX ( ( + + ( - 19 ) ) ) AS col2
----
-592

query I rowsort
SELECT ALL + 75 * - 1 + 4 * + 99 AS col0
----
321

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

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

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

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

query II rowsort
SELECT + 91 + ( + 66 ) col2, 86 AS col1
----
157
86

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT ALL + 46 + - + COUNT( * ) + ( + 40 )
----
85

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + 46 + - + COUNT ( * ) + ( + 40 )
----
85

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

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

query I rowsort
SELECT - - 90 + + 52 + 51 AS col1
----
193

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1764
SELECT - 7 DIV 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1764
SELECT - 7 / 13 AS col1
----
0

query I rowsort
SELECT ALL - 17 * + 15 * 45
----
-11475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1766
SELECT DISTINCT CASE 95 WHEN + 37 THEN CAST( - - 16 AS SIGNED ) / + + CASE 44 WHEN - 71 + 51 THEN - 34 / + + CAST( - COUNT( * ) AS SIGNED ) * - + CAST( NULL AS DECIMAL ) END WHEN ( + 39 ) * - 73 + 51 / 3 THEN 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT CASE 95 WHEN + 37 THEN CAST ( - - 16 AS INTEGER ) / + + CASE 44 WHEN - 71 + 51 THEN - 34 / + + CAST ( - COUNT ( * ) AS INTEGER ) * - + CAST ( NULL AS REAL ) END WHEN ( + 39 ) * - 73 + 51 / 3 THEN 39 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT - 35 DIV + - 33
----
1

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - 35 / + - 33
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1768
SELECT ALL ( - 84 ) AS col2, - COUNT( * ) AS col0
----
-84
-1

skipif mysql # not compatible
query II rowsort label-1768
SELECT ALL ( - 84 ) AS col2, - COUNT ( * ) AS col0
----
-84
-1

query I rowsort
SELECT - 38 * + 48 AS col1
----
-1824

query I rowsort
SELECT ALL + 17 * 17 AS col2
----
289

query I rowsort
SELECT - 73 * - ( + + 59 ) AS col0
----
4307

query II rowsort
SELECT DISTINCT + 0 * - 52 * NULLIF ( 33, - 67 + - + 65 ) * 83 AS col1, 31
----
0
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT + 67 * 6 DIV 57 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1774
SELECT + 67 * 6 / 57 AS col0
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - 37 * + SUM( DISTINCT 82 )
----
-3034

skipif mysql # not compatible
query I rowsort label-1776
SELECT - 37 * + SUM ( DISTINCT 82 )
----
-3034

query I rowsort
SELECT + 43 * + 63 AS col0
----
2709

query I rowsort
SELECT + 61 + 81 AS col1
----
142

query II rowsort
SELECT DISTINCT 84 + - - 58 AS col2, 98 AS col0
----
142
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1780
SELECT ALL + 77 / MAX( ALL - ( CAST( NULL AS SIGNED ) ) ) + 65 * + 24 / + 51 * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + 77 / MAX ( ALL - ( CAST ( NULL AS INTEGER ) ) ) + 65 * + 24 / + 51 * + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT COUNT( * ) * COUNT( * ) + + 23 * + NULLIF ( - 11, - 73 ) * - 11 + - COUNT( * ) AS col1
----
2783

skipif mysql # not compatible
query I rowsort label-1781
SELECT COUNT ( * ) * COUNT ( * ) + + 23 * + NULLIF ( - 11, - 73 ) * - 11 + - COUNT ( * ) AS col1
----
2783

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT + 94 + ( 72 ) + + SUM( DISTINCT 47 ) col0
----
213

skipif mysql # not compatible
query I rowsort label-1782
SELECT + 94 + ( 72 ) + + SUM ( DISTINCT 47 ) col0
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1783
SELECT DISTINCT 68 * 16 + + - 17 DIV + + 69 AS col0, SUM( - 13 )
----
1088
-13

skipif mysql # not compatible
query II rowsort label-1783
SELECT DISTINCT 68 * 16 + + - 17 / + + 69 AS col0, SUM ( - 13 )
----
1088
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + - 11 * COUNT( * ) * + + 72 * + 48 * 88 AS col0
----
-3345408

skipif mysql # not compatible
query I rowsort label-1784
SELECT + - 11 * COUNT ( * ) * + + 72 * + 48 * 88 AS col0
----
-3345408

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT + - MIN( DISTINCT - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT + - MIN ( DISTINCT - 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT + 56 * - CAST( 93 AS SIGNED ) + - - 45 / - - ( 67 ) * + 36 * + 97 - - 92 + 30 * - 38 - - - 52 * - SUM( ALL - 29 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 56 * - CAST ( 93 AS INTEGER ) + - - 45 / - - ( 67 ) * + 36 * + 97 - - 92 + 30 * - 38 - - - 52 * - SUM ( ALL - 29 ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + - 61 - ( - + MIN( - 47 ) ) * 88
----
-4197

skipif mysql # not compatible
query I rowsort label-1787
SELECT + - 61 - ( - + MIN ( - 47 ) ) * 88
----
-4197

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT ALL - 56 DIV + 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - 56 / + 51 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1789
SELECT - 52 * - 26 + - 40 + - CASE WHEN NULL IS NULL THEN NULL WHEN ( NULL ) NOT IN ( - 30, ( 20 ) ) THEN NULL ELSE - 33 END * + + MAX( ALL - CAST( NULL AS SIGNED ) ) * - 30 * + ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT - 52 * - 26 + - 40 + - CASE WHEN NULL IS NULL THEN NULL WHEN ( NULL ) NOT IN ( - 30, ( 20 ) ) THEN NULL ELSE - 33 END * + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * - 30 * + ( - 41 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1790
SELECT DISTINCT - - 98 * - - 59 * CAST( NULL AS DECIMAL ) * - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT - - 98 * - - 59 * CAST ( NULL AS REAL ) * - 54 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT DISTINCT CASE - 10 WHEN COUNT( - 60 ) * + 34 * - + MIN( + 2 ) * - 96 * - ( + 17 ) THEN 10 * + + 7 * - 25 * - 45 * + 7 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT CASE - 10 WHEN COUNT ( - 60 ) * + 34 * - + MIN ( + 2 ) * - 96 * - ( + 17 ) THEN 10 * + + 7 * - 25 * - 45 * + 7 + CAST ( NULL AS INTEGER ) END
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT 62 * - 97 AS col0
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + COUNT( ALL + - 61 ) + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1796
SELECT + COUNT ( ALL + - 61 ) + 31 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL CASE 68 WHEN + - 62 THEN NULL ELSE + 73 * - 63 * - COALESCE ( + 3, - 92 * + 74 + + CASE - 27 WHEN - + 16 THEN NULL WHEN + 58 * + 72 THEN - 20 + 17 * 91 END * COALESCE ( - 94, 60 ), - CAST( NULL AS SIGNED ) ) + 35 END AS col1
----
13832

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL CASE 68 WHEN + - 62 THEN NULL ELSE + 73 * - 63 * - COALESCE ( + 3, - 92 * + 74 + + CASE - 27 WHEN - + 16 THEN NULL WHEN + 58 * + 72 THEN - 20 + 17 * 91 END * COALESCE ( - 94, 60 ), - CAST ( NULL AS INTEGER ) ) + 35 END AS col1
----
13832

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + 79 + MIN( + 11 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1798
SELECT + 79 + MIN ( + 11 ) AS col2
----
90

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

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

query I rowsort
SELECT - ( - 12 ) + - 53 * + + 18
----
-942

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT ALL - COUNT( * ) + + 96 - - 40 + 75 AS col2
----
210

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - COUNT ( * ) + + 96 - - 40 + 75 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT NULLIF ( - 70, + 61 * 62 * + - COUNT( * ) + 62 * - 7 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT NULLIF ( - 70, + 61 * 62 * + - COUNT ( * ) + 62 * - 7 ) AS col1
----
-70

query I rowsort
SELECT - 25 + 2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT - 29, MIN( 83 ) AS col1
----
-29
83

skipif mysql # not compatible
query II rowsort label-1805
SELECT - 29, MIN ( 83 ) AS col1
----
-29
83

query II rowsort
SELECT ALL - COALESCE ( - 33, - 35 * - 64 ) + + 85, 44 AS col1
----
118
44

query I rowsort
SELECT DISTINCT + 69 + + 70 + + 30 AS col2
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-1808
SELECT ALL 33 AS col0, + MIN( DISTINCT + 11 ) + - 76
----
33
-65

skipif mysql # not compatible
query II rowsort label-1808
SELECT ALL 33 AS col0, + MIN ( DISTINCT + 11 ) + - 76
----
33
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT 97 DIV - - 27
----
3

skipif mysql # not compatible
query I rowsort label-1809
SELECT 97 / - - 27
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1810
SELECT COUNT( * ) + - 62 + - 7 DIV SUM( ALL - 17 ) * 44 DIV - + 80 + + 30 - + 80 AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-1810
SELECT COUNT ( * ) + - 62 + - 7 / SUM ( ALL - 17 ) * 44 / - + 80 + + 30 - + 80 AS col1
----
-111

query I rowsort
SELECT 3 * - 33 * 36 * - 49
----
174636

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT 48 + + SUM( + + 18 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1812
SELECT 48 + + SUM ( + + 18 ) AS col2
----
66

query I rowsort
SELECT + - CASE + - 95 WHEN - + 37 THEN + 62 WHEN - + COALESCE ( - ( 96 ), + COALESCE ( 67, + - 72 / 24 ) ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL - + 90 col2, 30 col1
----
-90
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL + COUNT( * ) + - 90 + + 76 + + SUM( 61 ) * - 59 - - 12 + - 46
----
-3646

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + COUNT ( * ) + - 90 + + 76 + + SUM ( 61 ) * - 59 - - 12 + - 46
----
-3646

query I rowsort
SELECT DISTINCT + - 34 * 27
----
-918

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1820
SELECT DISTINCT - ( - - MAX( ALL ( - + CAST( + ( - - COALESCE ( - - 85, - - 29 ) ) AS SIGNED ) ) ) ) - + 41 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT - ( - - MAX ( ALL ( - + CAST ( + ( - - COALESCE ( - - 85, - - 29 ) ) AS INTEGER ) ) ) ) - + 41 AS col2
----
44

query I rowsort
SELECT ALL - - 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT MIN( DISTINCT - ( 59 ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1822
SELECT MIN ( DISTINCT - ( 59 ) ) AS col2
----
-59

query I rowsort
SELECT + 29 * 30 + 88 + + 57 AS col0
----
1015

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL COUNT( - 25 ) - 12
----
-11

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL COUNT ( - 25 ) - 12
----
-11

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

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

query I rowsort
SELECT - 80 * 52 * + 20 AS col2
----
-83200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1827
SELECT - COUNT( 19 ) * - CASE + 8 WHEN NULLIF ( 74, + + 35 + - 39 ) + - 89 THEN 83 DIV - - 17 WHEN 58 + - + ( - ( CAST( + 47 AS SIGNED ) ) ) THEN - 73 * - 34 + 3 * 13 WHEN COUNT( * ) DIV - 20 + - 19 THEN NULL ELSE 91 END col0
----
91

skipif mysql # not compatible
query I rowsort label-1827
SELECT - COUNT ( 19 ) * - CASE + 8 WHEN NULLIF ( 74, + + 35 + - 39 ) + - 89 THEN 83 / - - 17 WHEN 58 + - + ( - ( CAST ( + 47 AS INTEGER ) ) ) THEN - 73 * - 34 + 3 * 13 WHEN COUNT ( * ) / - 20 + - 19 THEN NULL ELSE 91 END col0
----
91

query I rowsort
SELECT ALL + 94 * + 10
----
940

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + COUNT( 44 ) + 15 * - 69
----
-1034

skipif mysql # not compatible
query I rowsort label-1829
SELECT + COUNT ( 44 ) + 15 * - 69
----
-1034

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT COALESCE ( - CASE 83 WHEN + COUNT( * ) THEN NULL WHEN 83 THEN NULL ELSE - 84 END, + - 15 ) + + 4 + 81 * ( + ( + 6 ) ) * + + ( + COUNT( + - CAST( NULL AS SIGNED ) ) ) + - COUNT( * ) - COALESCE ( + 56 - - 96, - 35 ) col1
----
-164

skipif mysql # not compatible
query I rowsort label-1831
SELECT COALESCE ( - CASE 83 WHEN + COUNT ( * ) THEN NULL WHEN 83 THEN NULL ELSE - 84 END, + - 15 ) + + 4 + 81 * ( + ( + 6 ) ) * + + ( + COUNT ( + - CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * ) - COALESCE ( + 56 - - 96, - 35 ) col1
----
-164

query II rowsort
SELECT 68, - NULLIF ( + 58, 10 ) col0
----
68
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1833
SELECT - 8, 72 / COUNT( * ) * + - 16 + - - SUM( - CAST( NULL AS SIGNED ) ) + + + 15 * + 79 * - 86 col1
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-1833
SELECT - 8, 72 / COUNT ( * ) * + - 16 + - - SUM ( - CAST ( NULL AS INTEGER ) ) + + + 15 * + 79 * - 86 col1
----
-8
NULL

query I rowsort
SELECT ALL 49 + ( 25 )
----
74

query I rowsort
SELECT 88 * - 64 AS col2
----
-5632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT ALL 61 + - - COUNT( * ) DIV - 34 * 65 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 61 + - - COUNT ( * ) / - 34 * 65 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1837
SELECT DISTINCT 79 + - - 82 - - 70 + + + COALESCE ( + COUNT( ALL + 69 ), - 82 ) * + - 19 DIV - COUNT( * ) * + + COUNT( * )
----
250

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT 79 + - - 82 - - 70 + + + COALESCE ( + COUNT ( ALL + 69 ), - 82 ) * + - 19 / - COUNT ( * ) * + + COUNT ( * )
----
250

query I rowsort
SELECT DISTINCT 55 * 21
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT ALL 14 + 90 * - ( MAX( DISTINCT + + 65 ) ) * - + 73 * - 40 + 50
----
-17081936

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL 14 + 90 * - ( MAX ( DISTINCT + + 65 ) ) * - + 73 * - 40 + 50
----
-17081936

onlyif mysql # aggregate syntax: 
query II rowsort label-1840
SELECT 98 AS col0, 83 * - 70 + - MAX( - + 75 )
----
98
-5735

skipif mysql # not compatible
query II rowsort label-1840
SELECT 98 AS col0, 83 * - 70 + - MAX ( - + 75 )
----
98
-5735

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT 23 * + COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1841
SELECT 23 * + COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT ALL COALESCE ( - 25, 34 * - CAST( + + 60 AS SIGNED ) + - 20, 14 + + - 19, + ( - - 25 ) ) + + 95
----
70

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL COALESCE ( - 25, 34 * - CAST ( + + 60 AS INTEGER ) + - 20, 14 + + - 19, + ( - - 25 ) ) + + 95
----
70

query II rowsort
SELECT ALL 29 AS col0, 18 - 75 AS col1
----
29
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1844
SELECT - 85, - MAX( + + ( 62 ) ) AS col0, + 6 DIV - + 58 + - - COUNT( * ) AS col0
----
-85
-62
1

skipif mysql # not compatible
query III rowsort label-1844
SELECT - 85, - MAX ( + + ( 62 ) ) AS col0, + 6 / - + 58 + - - COUNT ( * ) AS col0
----
-85
-62
1

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

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

query I rowsort
SELECT ALL CASE - - 35 WHEN - 37 THEN - - 63 WHEN - 9 THEN NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 30 - 57 * 76 + + 35
----
-4267

query I rowsort
SELECT ALL + + 60 - - 52 AS col1
----
112

query I rowsort
SELECT - 71 * ( + 96 ) * 16 + - - 82 + - 42 AS col2
----
-109016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1851
SELECT DISTINCT NULLIF ( + COUNT( 3 ), + 44 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT NULLIF ( + COUNT ( 3 ), + 44 ) / + 83
----
0

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

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

query II rowsort
SELECT DISTINCT - 22 - - ( + 16 ) - - 96 AS col0, + 85 + - + 8
----
90
77

query II rowsort
SELECT DISTINCT - 60, + 65 AS col1
----
-60
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT - 98 DIV + 59 + + 39 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 98 / + 59 + + 39 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT ALL - + ( - MIN( ALL + 94 ) ) * + - 5 + - CASE + + NULLIF ( - + 70, + - COUNT( * ) ) WHEN + - COUNT( * ) THEN - + 9 WHEN + 67 * - 4 * - 84 THEN - COUNT( * ) * + CASE - - 80 WHEN 80 * CAST( NULL AS SIGNED ) THEN NULL WHEN SUM( 24 ) THEN + 20 * + COALESCE ( - 83, CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) - + 61 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - + ( - MIN ( ALL + 94 ) ) * + - 5 + - CASE + + NULLIF ( - + 70, + - COUNT ( * ) ) WHEN + - COUNT ( * ) THEN - + 9 WHEN + 67 * - 4 * - 84 THEN - COUNT ( * ) * + CASE - - 80 WHEN 80 * CAST ( NULL AS INTEGER ) THEN NULL WHEN SUM ( 24 ) THEN + 20 * + COALESCE ( - 83, CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - + 61 ) END END
----
NULL

query I rowsort
SELECT + 38 * + + 82
----
3116

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

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

query I rowsort
SELECT 52 * - 63 * - 21 AS col1
----
68796

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + ( + MAX( 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-1860
SELECT + ( + MAX ( 89 ) )
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1861
SELECT + 85 / - CAST( NULL AS DECIMAL ) + - 40 * - 29 + 81 + - MAX( ALL 20 ) + - - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT + 85 / - CAST ( NULL AS REAL ) + - 40 * - 29 + 81 + - MAX ( ALL 20 ) + - - 8 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT 42 DIV + 72 * - - 60
----
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT 42 / + 72 * - - 60
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT + 78 + + ( 96 ) * - COUNT( * ) AS col0, + 68 AS col1
----
-18
68

skipif mysql # not compatible
query II rowsort label-1863
SELECT + 78 + + ( 96 ) * - COUNT ( * ) AS col0, + 68 AS col1
----
-18
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL + + 89 * + 61 * 66 + 43 + - CAST( NULL AS SIGNED ) + - 97 * - - NULLIF ( - MAX( ALL - ( + CAST( 50 AS SIGNED ) ) ), + - 42 + + 35 * - 51 * + + 89 + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + + 89 * + 61 * 66 + 43 + - CAST ( NULL AS INTEGER ) + - 97 * - - NULLIF ( - MAX ( ALL - ( + CAST ( 50 AS INTEGER ) ) ), + - 42 + + 35 * - 51 * + + 89 + 86 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT + CAST( NULL AS SIGNED ) * - + 27 + - MAX( + + 12 ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT + CAST ( NULL AS INTEGER ) * - + 27 + - MAX ( + + 12 ) + 37
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT ALL - - 71 col0, + 75 + - - ( + - CASE NULLIF ( 65, + 97 ) WHEN - - COUNT( * ) - - + 65 THEN - 70 ELSE NULL END )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-1868
SELECT ALL - - 71 col0, + 75 + - - ( + - CASE NULLIF ( 65, + 97 ) WHEN - - COUNT ( * ) - - + 65 THEN - 70 ELSE NULL END )
----
71
NULL

query I rowsort
SELECT 70 + + 24 + - 57
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT COALESCE ( - MAX( DISTINCT - 48 ), - - 14 ) + + COUNT( * ) + + 42
----
91

skipif mysql # not compatible
query I rowsort label-1870
SELECT COALESCE ( - MAX ( DISTINCT - 48 ), - - 14 ) + + COUNT ( * ) + + 42
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT ALL COUNT( ALL + 15 ) + - - 53 + - CASE + 26 WHEN AVG ( + 27 ) / + - ( NULLIF ( + + 44, + + 48 ) ) THEN - 37 + + 79 + - - ( - 85 ) ELSE NULL END - + - ( 26 ) + CAST( NULL AS SIGNED ) * + 22 * 47 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL COUNT ( ALL + 15 ) + - - 53 + - CASE + 26 WHEN AVG ( + 27 ) / + - ( NULLIF ( + + 44, + + 48 ) ) THEN - 37 + + 79 + - - ( - 85 ) ELSE NULL END - + - ( 26 ) + CAST ( NULL AS INTEGER ) * + 22 * 47 * 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1872
SELECT DISTINCT 8 + + NULLIF ( CASE - 91 WHEN - 14 THEN + ( 30 ) WHEN 38 + - - COALESCE ( - 26, - 49 + + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) * - 95, - 59 ) + - 2 + - AVG ( ALL 54 ) THEN 88 DIV + 99 - - COALESCE ( + 75 + + NULLIF ( + 48, - CASE - 87 WHEN 9 THEN 23 * + 94 + 77 WHEN 67 + + 44 * 90 THEN + 75 - + 81 END * - ( 23 ) ), + ( 7 ) * 3 + - 6 * + CAST( - 80 AS SIGNED ), + 7 ) WHEN + 27 THEN + 27 * 20 ELSE - COUNT( * ) + 17 END, CAST( NULL AS DECIMAL ) ) + NULLIF ( COUNT( * ), 84 ) * NULLIF ( - 80 * - 97, - 54 * NULLIF ( 46, 10 ) + - 84 ) * ( - 71 + - 28 DIV + 49 )
----
-550936

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT 8 + + NULLIF ( CASE - 91 WHEN - 14 THEN + ( 30 ) WHEN 38 + - - COALESCE ( - 26, - 49 + + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * - 95, - 59 ) + - 2 + - AVG ( ALL 54 ) THEN 88 / + 99 - - COALESCE ( + 75 + + NULLIF ( + 48, - CASE - 87 WHEN 9 THEN 23 * + 94 + 77 WHEN 67 + + 44 * 90 THEN + 75 - + 81 END * - ( 23 ) ), + ( 7 ) * 3 + - 6 * + CAST ( - 80 AS INTEGER ), + 7 ) WHEN + 27 THEN + 27 * 20 ELSE - COUNT ( * ) + 17 END, CAST ( NULL AS REAL ) ) + NULLIF ( COUNT ( * ), 84 ) * NULLIF ( - 80 * - 97, - 54 * NULLIF ( 46, 10 ) + - 84 ) * ( - 71 + - 28 / + 49 )
----
-550936

query I rowsort
SELECT 91 + + - 55
----
36

query II rowsort
SELECT ALL - 96 * - 48 AS col2, + 57 + + 37 AS col2
----
4608
94

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT DISTINCT MAX( ALL + - 11 ), - 60 AS col0
----
-11
-60

skipif mysql # not compatible
query II rowsort label-1875
SELECT DISTINCT MAX ( ALL + - 11 ), - 60 AS col0
----
-11
-60

query I rowsort
SELECT - 96 + + + 90 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT ALL 7 + - 16 - 43 + + 79 * + + CAST( 55 AS SIGNED ) AS col1
----
4293

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL 7 + - 16 - 43 + + 79 * + + CAST ( 55 AS INTEGER ) AS col1
----
4293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT - CAST( 16 AS SIGNED ) + + - 46 + 39 * + - CASE + - 93 WHEN - - ( COUNT( * ) ) + + 2 THEN + - NULLIF ( 71, + ( + 31 ) / + AVG ( DISTINCT + 42 ) ) WHEN ( + COUNT( ALL + 54 ) ) + 0 THEN NULL WHEN - 96 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT - CAST ( 16 AS INTEGER ) + + - 46 + 39 * + - CASE + - 93 WHEN - - ( COUNT ( * ) ) + + 2 THEN + - NULLIF ( 71, + ( + 31 ) / + AVG ( DISTINCT + 42 ) ) WHEN ( + COUNT ( ALL + 54 ) ) + 0 THEN NULL WHEN - 96 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 90 + - 89 * - 54
----
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT ALL CAST( - 62 AS SIGNED ) * COUNT( ALL + 42 ) * 55 + + SUM( 22 ) + 5
----
-3383

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL CAST ( - 62 AS INTEGER ) * COUNT ( ALL + 42 ) * 55 + + SUM ( 22 ) + 5
----
-3383

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT + 60 + - CASE 21 WHEN - 3 THEN 90 / - + 45 * ( - 76 ) WHEN + 24 - - 36 - 39 * - 97 * + - 18 * + MAX( + 96 ) / - COUNT( * ) + + ( 88 ) + 57 THEN SUM( ALL 9 ) * 43 WHEN 40 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT + 60 + - CASE 21 WHEN - 3 THEN 90 / - + 45 * ( - 76 ) WHEN + 24 - - 36 - 39 * - 97 * + - 18 * + MAX ( + 96 ) / - COUNT ( * ) + + ( 88 ) + 57 THEN SUM ( ALL 9 ) * 43 WHEN 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1882
SELECT ALL COUNT( * ) * - 9 AS col1, 47 * - 34 col0
----
-9
-1598

skipif mysql # not compatible
query II rowsort label-1882
SELECT ALL COUNT ( * ) * - 9 AS col1, 47 * - 34 col0
----
-9
-1598

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1883
SELECT DISTINCT + 51 - + NULLIF ( 33, + - ( CAST( + 40 AS SIGNED ) ) ) + + 18 DIV - + 93 + + 72 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT + 51 - + NULLIF ( 33, + - ( CAST ( + 40 AS INTEGER ) ) ) + + 18 / - + 93 + + 72 AS col2
----
90

query II rowsort
SELECT DISTINCT 57 * + + 85 * + CASE 42 WHEN 71 THEN 39 WHEN - 25 THEN NULL END, + 34 - 80 AS col2
----
NULL
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT - + COUNT( * ) + + CASE 91 WHEN + CAST( NULL AS SIGNED ) THEN - ( + - 89 ) END * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT - + COUNT ( * ) + + CASE 91 WHEN + CAST ( NULL AS INTEGER ) THEN - ( + - 89 ) END * - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT + + 38 * - 68 * - CASE WHEN NOT - 93 IS NOT NULL THEN - 88 * - 12 - - 95 END - - COALESCE ( - - CASE - - 44 WHEN - ( + + MAX( DISTINCT + 54 ) ) THEN NULL ELSE - 91 * + + 58 - COALESCE ( ( 35 ), 72 ) / 61 END, + 26 * ( 68 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1886
SELECT + + 38 * - 68 * - CASE WHEN NOT - 93 IS NOT NULL THEN - 88 * - 12 - - 95 END - - COALESCE ( - - CASE - - 44 WHEN - ( + + MAX ( DISTINCT + 54 ) ) THEN NULL ELSE - 91 * + + 58 - COALESCE ( ( 35 ), 72 ) / 61 END, + 26 * ( 68 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1887
SELECT ALL - 77 DIV MAX( DISTINCT - 85 ) + - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - 77 / MAX ( DISTINCT - 85 ) + - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1888
SELECT + COUNT( DISTINCT - 29 ) AS col2, 91 DIV 43 + - 12 + - - 34 DIV + COUNT( * ) AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-1888
SELECT + COUNT ( DISTINCT - 29 ) AS col2, 91 / 43 + - 12 + - - 34 / + COUNT ( * ) AS col0
----
1
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT + 41 * CASE - 82 WHEN + COUNT( * ) THEN 28 ELSE NULL END + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + 41 * CASE - 82 WHEN + COUNT ( * ) THEN 28 ELSE NULL END + - 0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 69 * COALESCE ( + 81, ( - 45 ), + 26 ) + 77
----
5666

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT ALL + 27 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + 27 / - 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL 44 * - 70 * + - 46 + + 64 + - + 2 * - 83 * SUM( DISTINCT - 1 ) * + 92 AS col0
----
126472

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL 44 * - 70 * + - 46 + + 64 + - + 2 * - 83 * SUM ( DISTINCT - 1 ) * + 92 AS col0
----
126472

onlyif mysql # aggregate syntax: 
query II rowsort label-1895
SELECT DISTINCT + 49, 27 * 37 * + - 30 - + COUNT( * ) AS col1
----
49
-29971

skipif mysql # not compatible
query II rowsort label-1895
SELECT DISTINCT + 49, 27 * 37 * + - 30 - + COUNT ( * ) AS col1
----
49
-29971

query I rowsort
SELECT - 61 * - 27 AS col0
----
1647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT ALL CAST( - COALESCE ( 3, + + 42 ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL CAST ( - COALESCE ( 3, + + 42 ) AS INTEGER )
----
-3

query I rowsort
SELECT - 25 * 94 AS col2
----
-2350

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT + 31 * + NULLIF ( - 70, 49 * - COUNT( * ) + - COUNT( * ) + 16 * + + 36 / - COUNT( * ) ) AS col2
----
-2170

skipif mysql # not compatible
query I rowsort label-1899
SELECT + 31 * + NULLIF ( - 70, 49 * - COUNT ( * ) + - COUNT ( * ) + 16 * + + 36 / - COUNT ( * ) ) AS col2
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT CASE 5 WHEN + 42 THEN NULL WHEN + COUNT( * ) THEN - + 27 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT CASE 5 WHEN + 42 THEN NULL WHEN + COUNT ( * ) THEN - + 27 END col1
----
NULL

query I rowsort
SELECT + 95 * - 80
----
-7600

query I rowsort
SELECT ALL ( 97 ) col0
----
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1904
SELECT ALL - 72 DIV 59
----
-1

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - 72 / 59
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT + 33 - COALESCE ( 42, - + ( - 83 ) DIV 75, AVG ( 95 ) DIV - - ( + + COUNT( * ) ) + + - 88 + + COALESCE ( - 20, 85 DIV - 65 ) + - ( + COALESCE ( ( 90 ), 93 * 83 ) ) * - 45 )
----
-9

skipif mysql # not compatible
query I rowsort label-1905
SELECT + 33 - COALESCE ( 42, - + ( - 83 ) / 75, AVG ( 95 ) / - - ( + + COUNT ( * ) ) + + - 88 + + COALESCE ( - 20, 85 / - 65 ) + - ( + COALESCE ( ( 90 ), 93 * 83 ) ) * - 45 )
----
-9

query II rowsort
SELECT - + 79, + 60 - - - 6 AS col0
----
-79
54

query I rowsort
SELECT ALL 30 + 16
----
46

query II rowsort
SELECT DISTINCT + 87, 43 AS col0
----
87
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1909
SELECT DISTINCT 89 DIV 51 + + ( 31 ) * + 25 + - - COALESCE ( - CASE - 96 WHEN 0 - - 63 * + 81 THEN + + 8 WHEN ( + - MIN( DISTINCT + - 22 ) ) THEN NULL ELSE NULL END, - 83 + - - 57 + + - 34 * 24 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT 89 / 51 + + ( 31 ) * + 25 + - - COALESCE ( - CASE - 96 WHEN 0 - - 63 * + 81 THEN + + 8 WHEN ( + - MIN ( DISTINCT + - 22 ) ) THEN NULL ELSE NULL END, - 83 + - - 57 + + - 34 * 24 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1910
SELECT ALL + COUNT( * ) / - ( - CAST( NULL AS DECIMAL ) ) + ( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + COUNT ( * ) / - ( - CAST ( NULL AS REAL ) ) + ( + 84 )
----
NULL

query I rowsort
SELECT 82 * - 93 - + 92 + 35
----
-7683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT DISTINCT COUNT( + 49 ) / ( CAST( NULL AS SIGNED ) ) + NULLIF ( - + 79, - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT COUNT ( + 49 ) / ( CAST ( NULL AS INTEGER ) ) + NULLIF ( - + 79, - 3 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL CAST( NULL AS SIGNED ) / 54 + - 6 / + 30 + - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL CAST ( NULL AS INTEGER ) / 54 + - 6 / + 30 + - + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT - - 27 * - 62 + + 61 + + 73 * - 88 + + + 11 DIV + 31
----
-8037

skipif mysql # not compatible
query I rowsort label-1914
SELECT - - 27 * - 62 + + 61 + + 73 * - 88 + + + 11 / + 31
----
-8037

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT ALL + 44 DIV - 19 + - 24 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL + 44 / - 19 + - 24 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT CAST( SUM( - - 86 ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-1916
SELECT CAST ( SUM ( - - 86 ) AS INTEGER )
----
86

query I rowsort
SELECT ALL + 23 * - - 16
----
368

query I rowsort
SELECT 26 + 20 * + 92 * + CASE 92 WHEN + - 65 THEN 79 WHEN 31 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( - 4 ) * - 85
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL - COUNT( ALL + - 95 ) - + + 7 * + MIN( ALL + 39 ) + 37 AS col2
----
-237

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - COUNT ( ALL + - 95 ) - + + 7 * + MIN ( ALL + 39 ) + 37 AS col2
----
-237

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

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

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

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

query I rowsort
SELECT 51 * - 6
----
-306

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT DISTINCT + 79 DIV 31 * + ( + + 38 ) col2
----
76

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + 79 / 31 * + ( + + 38 ) col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT 48 - + 55 - 84 + COUNT( * ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-1925
SELECT 48 - + 55 - 84 + COUNT ( * ) AS col1
----
-90

query I rowsort
SELECT 51 * + + 86 * + 79 AS col1
----
346494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1927
SELECT ( + - 99 ) * + 17 + 16 + CAST( NULL AS SIGNED ) * + 6 + - - 34 * 38 / + COUNT( * ) + - - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT ( + - 99 ) * + 17 + 16 + CAST ( NULL AS INTEGER ) * + 6 + - - 34 * 38 / + COUNT ( * ) + - - 78 AS col2
----
NULL

query I rowsort
SELECT - 51 - - + 93 * - 20 * ( + 87 ) AS col2
----
-161871

query I rowsort
SELECT 58 + + 36
----
94

query I rowsort
SELECT - 8 * + 36
----
-288

query II rowsort
SELECT - 18 + - 0 AS col1, - 74
----
-18
-74

query I rowsort
SELECT DISTINCT + + 49 * 75 AS col2
----
3675

query I rowsort
SELECT ALL - - AVG ( + - CASE 19 WHEN + 48 THEN + 0 * 28 END ) + - + 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1934
SELECT + 31 + + CAST( + 94 AS SIGNED ) * - 85 * - COUNT( * ) - COUNT( * ) - + 53 + + 73 * - + COUNT( * ), + 51 + 96 + 21 * ( 72 ) * + 31 - + SUM( DISTINCT 5 ) + 60 * + + 97 AS col2
----
7894
52834

skipif mysql # not compatible
query II rowsort label-1934
SELECT + 31 + + CAST ( + 94 AS INTEGER ) * - 85 * - COUNT ( * ) - COUNT ( * ) - + 53 + + 73 * - + COUNT ( * ), + 51 + 96 + 21 * ( 72 ) * + 31 - + SUM ( DISTINCT 5 ) + 60 * + + 97 AS col2
----
7894
52834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT MIN( DISTINCT + - 27 ) + - + COUNT( * ) - - + CAST( NULL AS SIGNED ) - - ( - + 12 ) * + 61 * + 87 / CAST( 82 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT MIN ( DISTINCT + - 27 ) + - + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) - - ( - + 12 ) * + 61 * + 87 / CAST ( 82 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1936
SELECT ALL - COUNT( + - 32 ) + + 19 + - - 46 + 5 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL - COUNT ( + - 32 ) + + 19 + - - 46 + 5 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT - COUNT( DISTINCT + + 87 ) + + 14 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1937
SELECT - COUNT ( DISTINCT + + 87 ) + + 14 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL + - 7 + - - COUNT( 87 )
----
-6

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + - 7 + - - COUNT ( 87 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT CAST( - - 42 AS SIGNED ) * CAST( NULL AS SIGNED ) - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT CAST ( - - 42 AS INTEGER ) * CAST ( NULL AS INTEGER ) - - 52
----
NULL

query I rowsort
SELECT - 81 + - + 84 AS col0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1941
SELECT 66 + + 7 col2, ( - CAST( + 72 AS SIGNED ) )
----
73
-72

skipif mysql # not compatible
query II rowsort label-1941
SELECT 66 + + 7 col2, ( - CAST ( + 72 AS INTEGER ) )
----
73
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT ALL 64 + + 71 - + 48 DIV + 68 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL 64 + + 71 - + 48 / + 68 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT - 8 + MIN( DISTINCT CASE + 62 WHEN 43 THEN 64 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT - 8 + MIN ( DISTINCT CASE + 62 WHEN 43 THEN 64 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT 99 * 77 + - COUNT( * )
----
7622

skipif mysql # not compatible
query I rowsort label-1944
SELECT 99 * 77 + - COUNT ( * )
----
7622

query I rowsort
SELECT DISTINCT + + 65 + + 0
----
65

query I rowsort
SELECT ALL - + 2 + + + 80 * 2 AS col1
----
158

query I rowsort
SELECT DISTINCT 44 - 39 AS col1
----
5

query I rowsort
SELECT ( + 84 ) * 3 - + 19
----
233

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1949
SELECT ALL MAX( DISTINCT - - 44 ) - CAST( NULL AS DECIMAL ) AS col2, - ( + 45 ) DIV + 72 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL MAX ( DISTINCT - - 44 ) - CAST ( NULL AS REAL ) AS col2, - ( + 45 ) / + 72 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL 91 * - MAX( 50 ) * + 23 * 5 * - 67 AS col2
----
35057750

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL 91 * - MAX ( 50 ) * + 23 * 5 * - 67 AS col2
----
35057750

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT COUNT( * ) + MIN( ALL - - 53 ) + + ( COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-1951
SELECT COUNT ( * ) + MIN ( ALL - - 53 ) + + ( COUNT ( * ) )
----
55

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL COUNT( * ) - - 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL COUNT ( * ) - - 76 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT COUNT( * ) + + NULLIF ( - COUNT( * ), - 68 / + MIN( 81 ) * 34 ) * + 86 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-1955
SELECT COUNT ( * ) + + NULLIF ( - COUNT ( * ), - 68 / + MIN ( 81 ) * 34 ) * + 86 AS col2
----
-85

query I rowsort
SELECT 16 - 29 - + + 71
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT MIN( - 54 ) * 58 AS col2
----
-3132

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT MIN ( - 54 ) * 58 AS col2
----
-3132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ( + MIN( + 6 ) ) * COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1959
SELECT ( + MIN ( + 6 ) ) * COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL + 93 * 68
----
6324

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1961
SELECT CAST( 11 AS SIGNED ) DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-1961
SELECT CAST ( 11 AS INTEGER ) / + 87
----
0

query I rowsort
SELECT 57 + - 94 - - + 33 + - 74 AS col1
----
-78

query I rowsort
SELECT ALL + 31 + - ( + 38 )
----
-7

query I rowsort
SELECT - + COALESCE ( 43, - - 9 + - 23 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT DISTINCT - - 97 * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - - 97 * ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL - + COUNT( * ) + 12 * - - 84 col1
----
1007

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL - + COUNT ( * ) + 12 * - - 84 col1
----
1007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1968
SELECT ALL + ( 88 ) * - CAST( NULL AS SIGNED ) * - NULLIF ( + COALESCE ( - + CAST( NULL AS DECIMAL ), COUNT( * ), + + 13 ), 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + ( 88 ) * - CAST ( NULL AS INTEGER ) * - NULLIF ( + COALESCE ( - + CAST ( NULL AS REAL ), COUNT ( * ), + + 13 ), 54 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1969
SELECT 65 / 87 * - + ( + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT - - ( + + MAX( 56 ) ), + 86 AS col1
----
56
86

skipif mysql # not compatible
query II rowsort label-1970
SELECT - - ( + + MAX ( 56 ) ), + 86 AS col1
----
56
86

query I rowsort
SELECT DISTINCT - 57 + - 90 AS col1
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT DISTINCT + 87 + + - MIN( ALL + - 7 ) + NULLIF ( + 85, + 68 * COUNT( * ) ) * + + CAST( 43 AS SIGNED ) col1
----
3749

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT + 87 + + - MIN ( ALL + - 7 ) + NULLIF ( + 85, + 68 * COUNT ( * ) ) * + + CAST ( 43 AS INTEGER ) col1
----
3749

query I rowsort
SELECT ALL - - 42 + + 11 AS col0
----
53

query I rowsort
SELECT 34 * + 76 AS col0
----
2584

query I rowsort
SELECT 22 - - 56 AS col0
----
78

query I rowsort
SELECT ( - 85 ) AS col0
----
-85

query I rowsort
SELECT DISTINCT + 38 * 23 * - 74 + + 67
----
-64609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT ALL + COALESCE ( + NULLIF ( - + 47, + - 5 / - 55 ), - 96 * + - NULLIF ( + 59, + ( + - CAST( NULL AS SIGNED ) ) ) ) * - 35 AS col2
----
1645

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + COALESCE ( + NULLIF ( - + 47, + - 5 / - 55 ), - 96 * + - NULLIF ( + 59, + ( + - CAST ( NULL AS INTEGER ) ) ) ) * - 35 AS col2
----
1645

query I rowsort
SELECT 14 * 39 * + - 41 - - 25
----
-22361

query I rowsort
SELECT ALL + 94 - - 8 AS col2
----
102

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1983
SELECT NULLIF ( COALESCE ( + - 91, + + ( - - 77 ), + 53 * + + COUNT( * ) DIV - COUNT( * ) ), + + 59 + - 65 ) * - + COUNT( * ) + + 44 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-1983
SELECT NULLIF ( COALESCE ( + - 91, + + ( - - 77 ), + 53 * + + COUNT ( * ) / - COUNT ( * ) ), + + 59 + - 65 ) * - + COUNT ( * ) + + 44 AS col2
----
135

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

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

query II rowsort
SELECT + 55 * + CASE 5 WHEN - 31 THEN 25 ELSE 14 END AS col0, ( + 35 ) * + 50 * - 58 + - 87 AS col1
----
770
-101587

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT ALL 61 DIV + 81 * + 75
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL 61 / + 81 * + 75
----
0

query II rowsort
SELECT ALL + 87, 33 AS col0
----
87
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1988
SELECT DISTINCT 31 * - + 91 AS col2, NULLIF ( - 69, - 82 + 90 ) * - 16 - 18 / - + ( + 6 ) + CAST( NULL AS DECIMAL ) + + - CAST( + CASE + 99 WHEN - 26 / - 62 + - 3 THEN - - COALESCE ( 99, - COUNT( * ), + 81 ) END AS SIGNED ) * - 9
----
-2821
NULL

skipif mysql # not compatible
query II rowsort label-1988
SELECT DISTINCT 31 * - + 91 AS col2, NULLIF ( - 69, - 82 + 90 ) * - 16 - 18 / - + ( + 6 ) + CAST ( NULL AS REAL ) + + - CAST ( + CASE + 99 WHEN - 26 / - 62 + - 3 THEN - - COALESCE ( 99, - COUNT ( * ), + 81 ) END AS INTEGER ) * - 9
----
-2821
NULL

query I rowsort
SELECT ALL 90 * 43
----
3870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1990
SELECT + SUM( - - 52 ) * - 86 - + 20 DIV - 95 AS col2
----
-4472

skipif mysql # not compatible
query I rowsort label-1990
SELECT + SUM ( - - 52 ) * - 86 - + 20 / - 95 AS col2
----
-4472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT ALL CAST( - 97 AS SIGNED ) * 40
----
-3880

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL CAST ( - 97 AS INTEGER ) * 40
----
-3880

query I rowsort
SELECT - 60 * + 45 * - 4
----
10800

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

skipif mysql # not compatible
query I rowsort label-1993
SELECT MAX ( ALL - - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL 7 * COUNT( * ) * - COUNT( * ) + + + 98 - + MIN( DISTINCT 55 ) + - 73 * + 3
----
-183

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL 7 * COUNT ( * ) * - COUNT ( * ) + + + 98 - + MIN ( DISTINCT 55 ) + - 73 * + 3
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1995
SELECT DISTINCT COUNT( * ) + NULLIF ( 25, + 71 * 59 * 45 + COUNT( * ) + + - 60 ) + 45 + 84 + - 78 DIV - 6 * + COUNT( * ) - - + 48 * - ( - + 62 ), 36 + - + ( - 47 ) - 67 AS col2
----
3144
16

skipif mysql # not compatible
query II rowsort label-1995
SELECT DISTINCT COUNT ( * ) + NULLIF ( 25, + 71 * 59 * 45 + COUNT ( * ) + + - 60 ) + 45 + 84 + - 78 / - 6 * + COUNT ( * ) - - + 48 * - ( - + 62 ), 36 + - + ( - 47 ) - 67 AS col2
----
3144
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + SUM( DISTINCT + 40 ) col2
----
40

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + SUM ( DISTINCT + 40 ) col2
----
40

query I rowsort
SELECT ALL 52 + - 6 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1998
SELECT - COUNT( * ) AS col2, CASE - 16 WHEN 96 / - 28 THEN + - 11 ELSE NULL END * + 35 * + 69 col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1998
SELECT - COUNT ( * ) AS col2, CASE - 16 WHEN 96 / - 28 THEN + - 11 ELSE NULL END * + 35 * + 69 col2
----
-1
NULL

query II rowsort
SELECT + 22 AS col0, 17 col1
----
22
17

query II rowsort
SELECT ALL + 24 AS col2, 59
----
24
59

query I rowsort
SELECT DISTINCT + 91 + - 68 AS col2
----
23

query I rowsort
SELECT + 80 + 80 AS col0
----
160

query I rowsort
SELECT + - 64 - + 53
----
-117

query I rowsort
SELECT ALL 23 * + 68 * 47
----
73508

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

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

query I rowsort
SELECT + + 78 + + 73
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2007
SELECT DISTINCT 41 * + - COUNT( * ) AS col1, MIN( CAST( NULL AS SIGNED ) ) + + - 80 * COUNT( * ) / - + 27 AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-2007
SELECT DISTINCT 41 * + - COUNT ( * ) AS col1, MIN ( CAST ( NULL AS INTEGER ) ) + + - 80 * COUNT ( * ) / - + 27 AS col1
----
-41
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2009
SELECT ALL COUNT( 35 ) - 56 DIV - 9
----
7

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL COUNT ( 35 ) - 56 / - 9
----
7

query I rowsort
SELECT + ( 86 ) + + - 64
----
22

query I rowsort
SELECT ALL 99 - - 59
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2012
SELECT DISTINCT - 64 * - - ( 85 ) + NULLIF ( + 3, + 99 ) + - 46 DIV + 64 * COUNT( * ) * + 64 * + + 28 * - 20 AS col2
----
-5437

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT - 64 * - - ( 85 ) + NULLIF ( + 3, + 99 ) + - 46 / + 64 * COUNT ( * ) * + 64 * + + 28 * - 20 AS col2
----
-5437

query II rowsort
SELECT DISTINCT 24 AS col2, 29 - 71 AS col0
----
24
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - MAX( - 5 ) * - 71
----
-355

skipif mysql # not compatible
query I rowsort label-2015
SELECT - MAX ( - 5 ) * - 71
----
-355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT DISTINCT NULLIF ( CASE + 64 WHEN + CAST( + 65 AS SIGNED ) THEN + + 8 + - - CAST( NULL AS SIGNED ) WHEN - - ( 58 ) THEN NULL ELSE NULL END, + + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT NULLIF ( CASE + 64 WHEN + CAST ( + 65 AS INTEGER ) THEN + + 8 + - - CAST ( NULL AS INTEGER ) WHEN - - ( 58 ) THEN NULL ELSE NULL END, + + 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT ALL + COUNT( * ) - - - COUNT( * ) + - - MIN( 82 ) + - - CAST( - 21 AS SIGNED ) + + 41 * - 79
----
-3178

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) + - - MIN ( 82 ) + - - CAST ( - 21 AS INTEGER ) + + 41 * - 79
----
-3178

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT CASE COUNT( * ) WHEN - + 75 + - 35 + + 57 THEN + + COUNT( * ) WHEN - - COUNT( DISTINCT + 22 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT CASE COUNT ( * ) WHEN - + 75 + - 35 + + 57 THEN + + COUNT ( * ) WHEN - - COUNT ( DISTINCT + 22 ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT ALL + 10 * + + 34 AS col0
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT - CASE 37 WHEN + - 48 * - - 39 * + - 43 * 41 - + - ( - COUNT( + + 68 ) ) * - - 24 THEN NULL ELSE 19 + + 70 END * + COUNT( - 16 ) + + + 38
----
-51

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - CASE 37 WHEN + - 48 * - - 39 * + - 43 * 41 - + - ( - COUNT ( + + 68 ) ) * - - 24 THEN NULL ELSE 19 + + 70 END * + COUNT ( - 16 ) + + + 38
----
-51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT ALL + 48 DIV + COUNT( * ) + - 66 + - 96
----
-114

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL + 48 / + COUNT ( * ) + - 66 + - 96
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2024
SELECT - 39 * + + COUNT( * ) * - + 35 - 69 DIV - MAX( 23 ) - COUNT( * )
----
1367

skipif mysql # not compatible
query I rowsort label-2024
SELECT - 39 * + + COUNT ( * ) * - + 35 - 69 / - MAX ( 23 ) - COUNT ( * )
----
1367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT + CASE - NULLIF ( - + 44, - CAST( 41 AS SIGNED ) * + 45 ) WHEN COUNT( * ) THEN + COUNT( * ) ELSE - - 67 END AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2025
SELECT + CASE - NULLIF ( - + 44, - CAST ( 41 AS INTEGER ) * + 45 ) WHEN COUNT ( * ) THEN + COUNT ( * ) ELSE - - 67 END AS col1
----
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2027
SELECT - SUM( - CAST( NULL AS DECIMAL ) ) + 59 - + 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT - SUM ( - CAST ( NULL AS REAL ) ) + 59 - + 70 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 38 * - 2 * 53 + + 27 * - 95 AS col2
----
-6593

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT 42 * + 86 + - 60 + + COUNT( * ) * 50 + 33 AS col0
----
3635

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT 42 * + 86 + - 60 + + COUNT ( * ) * 50 + 33 AS col0
----
3635

onlyif mysql # DIV for integer division: 
query I rowsort label-2030
SELECT DISTINCT - 12 DIV - 25 + - ( + + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - 12 / - 25 + - ( + + 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL MAX( ALL + + 18 ) * + 39 + 97 * - + 96
----
-8610

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL MAX ( ALL + + 18 ) * + 39 + 97 * - + 96
----
-8610

query I rowsort
SELECT ALL 41 * + - 53 * + 76 AS col2
----
-165148

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2034
SELECT ALL SUM( DISTINCT - 81 ) * + 44 + COUNT( ALL + - CAST( NULL AS DECIMAL ) ) + + 3
----
-3561

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL SUM ( DISTINCT - 81 ) * + 44 + COUNT ( ALL + - CAST ( NULL AS REAL ) ) + + 3
----
-3561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2035
SELECT DISTINCT CASE - CAST( + COALESCE ( COUNT( * ), NULLIF ( + 61, + - 12 - - CAST( NULL AS SIGNED ) ) * 53 + + 27 ) AS DECIMAL ) WHEN - 84 * - 42 + + - ( - 5 ) / - CASE + 22 WHEN + - COUNT( * ) THEN + 98 END THEN + CASE CASE + 98 WHEN 15 / NULLIF ( 43, + 26 ) THEN NULL ELSE ( COUNT( * ) ) END WHEN 33 THEN NULL WHEN 96 + + 69 / 18 THEN + 99 * + 19 WHEN + 75 THEN COUNT( * ) ELSE 91 * 22 END / - COUNT( * ) WHEN - COUNT( * ) + + 99 THEN - 89 END * - 89 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT CASE - CAST ( + COALESCE ( COUNT ( * ), NULLIF ( + 61, + - 12 - - CAST ( NULL AS INTEGER ) ) * 53 + + 27 ) AS REAL ) WHEN - 84 * - 42 + + - ( - 5 ) / - CASE + 22 WHEN + - COUNT ( * ) THEN + 98 END THEN + CASE CASE + 98 WHEN 15 / NULLIF ( 43, + 26 ) THEN NULL ELSE ( COUNT ( * ) ) END WHEN 33 THEN NULL WHEN 96 + + 69 / 18 THEN + 99 * + 19 WHEN + 75 THEN COUNT ( * ) ELSE 91 * 22 END / - COUNT ( * ) WHEN - COUNT ( * ) + + 99 THEN - 89 END * - 89 + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT + - SUM( DISTINCT 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-2036
SELECT + - SUM ( DISTINCT 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT + + 93 + + - CAST( + + 46 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2037
SELECT + + 93 + + - CAST ( + + 46 AS INTEGER ) AS col2
----
47

query I rowsort
SELECT - ( + - NULLIF ( 70, 7 * + 10 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT ALL 71 * 48 - - + COUNT( * ) AS col1
----
3409

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL 71 * 48 - - + COUNT ( * ) AS col1
----
3409

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL - 11 * - - SUM( + - ( + 60 ) ) AS col2
----
660

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - 11 * - - SUM ( + - ( + 60 ) ) AS col2
----
660

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

skipif mysql # not compatible
query I rowsort label-2041
SELECT - 2 / ( - 62 ) + - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ( - + 22 ) - + COUNT( * ) * - 91 + - 27 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2042
SELECT ( - + 22 ) - + COUNT ( * ) * - 91 + - 27 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT DISTINCT CAST( AVG ( - + 75 ) AS SIGNED ) * + COALESCE ( 67, + - 76 ) AS col0
----
-5025

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT CAST ( AVG ( - + 75 ) AS INTEGER ) * + COALESCE ( 67, + - 76 ) AS col0
----
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL COUNT( * ) * - 37 * - 82 AS col2
----
3034

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL COUNT ( * ) * - 37 * - 82 AS col2
----
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT COUNT( * ) - 62
----
-61

skipif mysql # not compatible
query I rowsort label-2045
SELECT COUNT ( * ) - 62
----
-61

query I rowsort
SELECT ALL 32 * + 38 * - 49
----
-59584

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT DISTINCT 96 AS col0, + COALESCE ( + + SUM( ALL + 49 ), - 24, 91 )
----
96
49

skipif mysql # not compatible
query II rowsort label-2047
SELECT DISTINCT 96 AS col0, + COALESCE ( + + SUM ( ALL + 49 ), - 24, 91 )
----
96
49

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT DISTINCT COUNT( CASE - 37 WHEN 29 * - + ( + 64 ) THEN - 47 END ) * 5, 73 AS col1
----
0
73

skipif mysql # not compatible
query II rowsort label-2049
SELECT DISTINCT COUNT ( CASE - 37 WHEN 29 * - + ( + 64 ) THEN - 47 END ) * 5, 73 AS col1
----
0
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT COALESCE ( 2, 33 + + COUNT( * ) DIV + 49, 43 * - ( 73 ) - SUM( + ( - 79 ) ), - + 65 * 43 + + 16 ) * - 51 + MAX( - 17 ) - - COALESCE ( - - 36, - + 16 * + 56 * - COUNT( * ) + + 61 - - 27 * - 26 ) * - 53 AS col1
----
-2027

skipif mysql # not compatible
query I rowsort label-2050
SELECT COALESCE ( 2, 33 + + COUNT ( * ) / + 49, 43 * - ( 73 ) - SUM ( + ( - 79 ) ), - + 65 * 43 + + 16 ) * - 51 + MAX ( - 17 ) - - COALESCE ( - - 36, - + 16 * + 56 * - COUNT ( * ) + + 61 - - 27 * - 26 ) * - 53 AS col1
----
-2027

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL SUM( + 98 ) + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL SUM ( + 98 ) + - COUNT ( * )
----
97

query II rowsort
SELECT DISTINCT 6, - 95 AS col1
----
6
-95

query I rowsort
SELECT 22 * + 56
----
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2054
SELECT 57 * - - ( - COUNT( * ) ) DIV MAX( DISTINCT + 85 ) DIV 14
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT 57 * - - ( - COUNT ( * ) ) / MAX ( DISTINCT + 85 ) / 14
----
0

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

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL - MIN ( - 86 )
----
86

query I rowsort
SELECT ALL + 34 + + + 93
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL - 71 * COUNT( * ) * + - 86 * - 75
----
-457950

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - 71 * COUNT ( * ) * + - 86 * - 75
----
-457950

query I rowsort
SELECT DISTINCT - 62 * - 63
----
3906

query I rowsort
SELECT 60 + - 83
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL - 44 * + - 72 * - - COUNT( * ) * COUNT( * ) AS col0
----
3168

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - 44 * + - 72 * - - COUNT ( * ) * COUNT ( * ) AS col0
----
3168

query I rowsort
SELECT DISTINCT - ( + 35 ) AS col1
----
-35

query II rowsort
SELECT ALL + 24 + + 55 + - 20 AS col0, 69 col1
----
59
69

query II rowsort
SELECT DISTINCT - 89, ( - + 63 ) AS col2
----
-89
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT NULLIF ( + NULLIF ( + COUNT( * ), - + 24 ), COUNT( * ) + - 8 ) * - 33
----
-33

skipif mysql # not compatible
query I rowsort label-2064
SELECT NULLIF ( + NULLIF ( + COUNT ( * ), - + 24 ), COUNT ( * ) + - 8 ) * - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + NULLIF ( + 18, 83 / + 71 * - ( - - COUNT( * ) ) - + 71 - + 75 + - 55 - - 72 ) * + 42 + - + 18
----
738

skipif mysql # not compatible
query I rowsort label-2065
SELECT + NULLIF ( + 18, 83 / + 71 * - ( - - COUNT ( * ) ) - + 71 - + 75 + - 55 - - 72 ) * + 42 + - + 18
----
738

query I rowsort
SELECT ALL - - 48 * - 56
----
-2688

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

skipif mysql # not compatible
query I rowsort label-2067
SELECT COUNT ( * ) + - 85 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT - COUNT( - 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - COUNT ( - 6 )
----
-1

query I rowsort
SELECT ALL - - ( 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT COUNT( * ) - - 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( * ) - - 30 AS col0
----
31

query I rowsort
SELECT - 75 * + - 77 * 5
----
28875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2072
SELECT ALL + 67 DIV ( COUNT( * ) ) + - CAST( - 90 AS SIGNED ) AS col1
----
157

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + 67 / ( COUNT ( * ) ) + - CAST ( - 90 AS INTEGER ) AS col1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT + + 17 * + 48 + 63 * - + 96 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT + + 17 * + 48 + 63 * - + 96 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT DISTINCT + + 23 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT + + 23 / 68
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2075
SELECT ALL - 75 - 76 * - 16 col1, COUNT( * ) col1
----
1141
1

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL - 75 - 76 * - 16 col1, COUNT ( * ) col1
----
1141
1

query I rowsort
SELECT ALL - 17 * + + 42
----
-714

query I rowsort
SELECT 66 * - 78 AS col1
----
-5148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2078
SELECT ALL + - 56 DIV - 54 + + 42 AS col2, 2 * COUNT( * ) * - - MAX( 40 ) * - 57 AS col1
----
43
-4560

skipif mysql # not compatible
query II rowsort label-2078
SELECT ALL + - 56 / - 54 + + 42 AS col2, 2 * COUNT ( * ) * - - MAX ( 40 ) * - 57 AS col1
----
43
-4560

query I rowsort
SELECT 97 - 20 AS col2
----
77

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

query I rowsort
SELECT 99 + + + 79 AS col2
----
178

query I rowsort
SELECT - 34 - 38 + + 35 + - ( + ( + - 99 ) ) AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2083
SELECT MAX( DISTINCT - 88 ) DIV 85
----
-1

skipif mysql # not compatible
query I rowsort label-2083
SELECT MAX ( DISTINCT - 88 ) / 85
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL + - 81 * NULLIF ( - SUM( ALL + 99 ), 8 ) + - + 97 + - 92 * ( - + CAST( NULL AS SIGNED ) ) * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + - 81 * NULLIF ( - SUM ( ALL + 99 ), 8 ) + - + 97 + - 92 * ( - + CAST ( NULL AS INTEGER ) ) * - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT 35 + - 83 - 59 - - ( 83 ) * - 47 * + 68 + - 88 * - ( - 23 ) * 75 * - COUNT( * ) + - 32 * + 0 + + - 58 + + + 72 * 65 col0
----
-108953

skipif mysql # not compatible
query I rowsort label-2085
SELECT 35 + - 83 - 59 - - ( 83 ) * - 47 * + 68 + - 88 * - ( - 23 ) * 75 * - COUNT ( * ) + - 32 * + 0 + + - 58 + + + 72 * 65 col0
----
-108953

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL COUNT( * ) * + - NULLIF ( - 7, - 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL COUNT ( * ) * + - NULLIF ( - 7, - 7 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT - 1 + - + COUNT( * ) + + 14
----
12

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - 1 + - + COUNT ( * ) + + 14
----
12

query II rowsort
SELECT DISTINCT 8 + + + 13 AS col2, 60
----
21
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT SUM( + + ( - 30 ) ) + + - 36 * + + 75
----
-2730

skipif mysql # not compatible
query I rowsort label-2089
SELECT SUM ( + + ( - 30 ) ) + + - 36 * + + 75
----
-2730

query I rowsort
SELECT 61 + + 58 AS col2
----
119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL 37 * MIN( DISTINCT + + 93 ) + - 54 + - CASE - 50 WHEN - 23 THEN 34 WHEN + - 44 THEN NULL WHEN 57 THEN 76 END / - + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL 37 * MIN ( DISTINCT + + 93 ) + - 54 + - CASE - 50 WHEN - 23 THEN 34 WHEN + - 44 THEN NULL WHEN 57 THEN 76 END / - + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT ( - 32 ) * MAX( - 51 ) * + 15 AS col0
----
24480

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT ( - 32 ) * MAX ( - 51 ) * + 15 AS col0
----
24480

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT - 0 * 61 + - 86 + - 88 + COUNT( * ) * - 71
----
-245

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - 0 * 61 + - 86 + - 88 + COUNT ( * ) * - 71
----
-245

query I rowsort
SELECT ALL 12 * 40 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT MAX( 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2096
SELECT MAX ( 65 ) AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT 32 DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT 32 / + 74 AS col2
----
0

query I rowsort
SELECT - 32 * - 76 * - 23
----
-55936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT - ( + CAST( - + SUM( 11 ) AS SIGNED ) ) * - - 20
----
220

skipif mysql # not compatible
query I rowsort label-2099
SELECT - ( + CAST ( - + SUM ( 11 ) AS INTEGER ) ) * - - 20
----
220

query I rowsort
SELECT 76 * + 63 + + + 90 AS col1
----
4878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2101
SELECT ALL + 91 * CASE - + 81 WHEN + CAST( NULL AS SIGNED ) THEN - + 26 + + + 61 + + - COUNT( * ) * CAST( + + CAST( 43 AS SIGNED ) AS SIGNED ) + + 40 WHEN 61 THEN NULL ELSE NULL END - - COALESCE ( + - AVG ( 39 ), 67 ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + 91 * CASE - + 81 WHEN + CAST ( NULL AS INTEGER ) THEN - + 26 + + + 61 + + - COUNT ( * ) * CAST ( + + CAST ( 43 AS INTEGER ) AS INTEGER ) + + 40 WHEN 61 THEN NULL ELSE NULL END - - COALESCE ( + - AVG ( 39 ), 67 ) * 76
----
NULL

query I rowsort
SELECT + + 27 * - 14 * - - 79 - + + 95 + - 29 * - 40 col0
----
-28797

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL + 21 * + CASE - - 54 WHEN 78 THEN - + MIN( - + 94 ) WHEN 6 THEN 50 * - 93 / + + 19 / 59 - 96 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + 21 * + CASE - - 54 WHEN 78 THEN - + MIN ( - + 94 ) WHEN 6 THEN 50 * - 93 / + + 19 / 59 - 96 ELSE NULL END col2
----
NULL

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

query I rowsort
SELECT DISTINCT - ( + + 24 ) * + 58 AS col2
----
-1392

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL + + COUNT( * ) * CASE - ( + COUNT( * ) ) WHEN 6 + + + 82 - - 5 * + COUNT( * ) - - + 91 + 62 / + 4 - + 18 THEN 8 ELSE + - 91 + MAX( - - 17 ) * 41 * + - 74 END
----
-51669

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL + + COUNT ( * ) * CASE - ( + COUNT ( * ) ) WHEN 6 + + + 82 - - 5 * + COUNT ( * ) - - + 91 + 62 / + 4 - + 18 THEN 8 ELSE + - 91 + MAX ( - - 17 ) * 41 * + - 74 END
----
-51669

query I rowsort
SELECT DISTINCT + + 97
----
97

query I rowsort
SELECT ALL + - 28 + + 12 * - NULLIF ( + 74, 95 )
----
-916

query I rowsort
SELECT - 3 * 54
----
-162

query I rowsort
SELECT - 79 * + - 88
----
6952

query I rowsort
SELECT ALL COALESCE ( - 15, 59, - + 91 )
----
-15

query I rowsort
SELECT - 67 + - 26 + 1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL + ( - ( - ( - 95 ) ) ) * COUNT( * ) + + 34 col2
----
-61

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL + ( - ( - ( - 95 ) ) ) * COUNT ( * ) + + 34 col2
----
-61

query I rowsort
SELECT - 43 + - 55
----
-98

query I rowsort
SELECT DISTINCT + 70 * - 69 AS col2
----
-4830

query I rowsort
SELECT ALL - 16 + 8
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2118
SELECT - 37 - + 19 * 40 + - - 22 - + - CAST( NULL AS DECIMAL ) * - 28 * - + 60 * 40 AS col0, 66 * - 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2118
SELECT - 37 - + 19 * 40 + - - 22 - + - CAST ( NULL AS REAL ) * - 28 * - + 60 * 40 AS col0, 66 * - 0
----
NULL
0

query I rowsort
SELECT ALL + 89 * + 53 * 53
----
250001

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - COUNT( * ) - 79 col0
----
-80

skipif mysql # not compatible
query I rowsort label-2120
SELECT - COUNT ( * ) - 79 col0
----
-80

query II rowsort
SELECT ALL 16, 88 * 12 col0
----
16
1056

query I rowsort
SELECT - 89 + 86 + - 46 * 36
----
-1659

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT - SUM( DISTINCT + ( + 38 ) ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-2123
SELECT - SUM ( DISTINCT + ( + 38 ) ) col0
----
-38

query II rowsort
SELECT + ( + 72 ) * 0 AS col2, + 45
----
0
45

query I rowsort
SELECT - 53 + + - 20
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2126
SELECT DISTINCT 24 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT 24 / 99 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT + 26 * + 73 + 39 + + 46 DIV 41 * + - 97
----
1840

skipif mysql # not compatible
query I rowsort label-2127
SELECT + 26 * + 73 + 39 + + 46 / 41 * + - 97
----
1840

query I rowsort
SELECT - + 11 * + 39 * - 26
----
11154

query I rowsort
SELECT DISTINCT 78 * - + 71
----
-5538

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT DISTINCT + 72 DIV 89 - + 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + 72 / 89 - + 49 AS col0
----
-49

query I rowsort
SELECT + 66 * 34
----
2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2132
SELECT ALL - - 6 DIV - CAST( + - 21 AS SIGNED ) * + - MAX( ALL - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL - - 6 / - CAST ( + - 21 AS INTEGER ) * + - MAX ( ALL - 58 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT + 93 DIV + + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2133
SELECT + 93 / + + 35 AS col1
----
2

query I rowsort
SELECT + - 79 * - - 11 + 42 - 5 * - + 92
----
-367

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT + + COUNT( * ) + - NULLIF ( 41, + 81 ) * - 38 + + + 51 col0
----
1610

skipif mysql # not compatible
query I rowsort label-2135
SELECT + + COUNT ( * ) + - NULLIF ( 41, + 81 ) * - 38 + + + 51 col0
----
1610

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

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

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

query I rowsort
SELECT DISTINCT + 32 * + 79
----
2528

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + NULLIF ( + + NULLIF ( + - ( + SUM( DISTINCT - 44 ) ), 79 ), 94 )
----
44

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + NULLIF ( + + NULLIF ( + - ( + SUM ( DISTINCT - 44 ) ), 79 ), 94 )
----
44

query I rowsort
SELECT DISTINCT 74 * - 2 + 76 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL NULLIF ( - - ( - - 13 ), + 55 ) * ( - + COUNT( * ) ) / + 39 * - 92 + - 62 + - 45 - 66 * - CASE - 27 WHEN - - 89 + - + ( + + 42 ) * - 69 THEN NULL WHEN 19 THEN + 35 + + 9 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL NULLIF ( - - ( - - 13 ), + 55 ) * ( - + COUNT ( * ) ) / + 39 * - 92 + - 62 + - 45 - 66 * - CASE - 27 WHEN - - 89 + - + ( + + 42 ) * - 69 THEN NULL WHEN 19 THEN + 35 + + 9 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT ALL COUNT( * ) AS col1, + 86 * 97
----
1
8342

skipif mysql # not compatible
query II rowsort label-2142
SELECT ALL COUNT ( * ) AS col1, + 86 * 97
----
1
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT 84 * 44 + + NULLIF ( - MAX( - + 96 ), + + 77 )
----
3792

skipif mysql # not compatible
query I rowsort label-2143
SELECT 84 * 44 + + NULLIF ( - MAX ( - + 96 ), + + 77 )
----
3792

query I rowsort
SELECT - 73 + + 6 AS col1
----
-67

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

skipif mysql # not compatible
query I rowsort label-2145
SELECT COUNT ( - 44 )
----
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL - 12 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - 12 / 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL CAST( 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL CAST ( 16 AS INTEGER ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2150
SELECT ALL - MIN( DISTINCT 90 ) - COALESCE ( + 6, - 71 * + - 67 DIV 33 + COUNT( * ) + - - MAX( + - NULLIF ( 39, + + 15 * 34 + 46 ) ), + - 66 * - 30 * - 15 * + + 48 + - COALESCE ( + 55, + 69 ), + + CAST( + - COALESCE ( - COALESCE ( - 57, - 97 ), 68 ) AS SIGNED ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - MIN ( DISTINCT 90 ) - COALESCE ( + 6, - 71 * + - 67 / 33 + COUNT ( * ) + - - MAX ( + - NULLIF ( 39, + + 15 * 34 + 46 ) ), + - 66 * - 30 * - 15 * + + 48 + - COALESCE ( + 55, + 69 ), + + CAST ( + - COALESCE ( - COALESCE ( - 57, - 97 ), 68 ) AS INTEGER ) ) AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT - 83 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2151
SELECT - 83 / 97 AS col2
----
0

query I rowsort
SELECT - ( - 90 ) + + - 61
----
29

query II rowsort
SELECT - 75 AS col2, - 73
----
-75
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2154
SELECT 44 col2, 92 * - COUNT( * )
----
44
-92

skipif mysql # not compatible
query II rowsort label-2154
SELECT 44 col2, 92 * - COUNT ( * )
----
44
-92

query I rowsort
SELECT DISTINCT + 40 * 41
----
1640

query I rowsort
SELECT ALL - 85 - - 80 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT - 47 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT - 47 / 78
----
0

query I rowsort
SELECT + 53 * + ( 17 ) * - 78
----
-70278

query I rowsort
SELECT + 12 + + - 2 * - 10
----
32

query I rowsort
SELECT ALL + 22 * + 55 * 24
----
29040

query I rowsort
SELECT - + 65 * 38 AS col0
----
-2470

query II rowsort
SELECT ALL 97, 55 AS col0
----
97
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT - 37 + - CAST( + + 15 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 37 + - CAST ( + + 15 AS INTEGER )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL - - SUM( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - - SUM ( 95 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT - COUNT( * ) * + CASE - COALESCE ( 52, - - 8 * COUNT( * ) + + 88, - NULLIF ( COUNT( * ), + COUNT( * ) / + AVG ( + - 96 ) * - COALESCE ( + 15, - 78 * - - 35 + COALESCE ( + 29, - COUNT( * ) ) ) ) ) WHEN - 9 THEN - - CASE - CASE CAST( NULL AS SIGNED ) WHEN COUNT( 90 ) THEN + + COUNT( * ) WHEN - 42 THEN NULL ELSE + 81 * ( - 53 * 17 ) END WHEN 10 THEN 11 * 77 END * 2 WHEN 89 * 62 - + 81 THEN NULL END + 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT - COUNT ( * ) * + CASE - COALESCE ( 52, - - 8 * COUNT ( * ) + + 88, - NULLIF ( COUNT ( * ), + COUNT ( * ) / + AVG ( + - 96 ) * - COALESCE ( + 15, - 78 * - - 35 + COALESCE ( + 29, - COUNT ( * ) ) ) ) ) WHEN - 9 THEN - - CASE - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( 90 ) THEN + + COUNT ( * ) WHEN - 42 THEN NULL ELSE + 81 * ( - 53 * 17 ) END WHEN 10 THEN 11 * 77 END * 2 WHEN 89 * 62 - + 81 THEN NULL END + 42 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT - COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ), - - 40 * - + 36 + + 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ), - - 40 * - + 36 + + 62 ) AS col0
----
-1

query II rowsort
SELECT ALL - + 3 AS col0, - 76 AS col2
----
-3
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2168
SELECT ALL - + NULLIF ( + 33, ( + COUNT( * ) ) + - + 36 DIV - 97 ), + MIN( + 4 ) DIV 52 DIV NULLIF ( 97, + COUNT( * ) + + + 30 ) + + - 16 + 95 DIV + 16 AS col2
----
-33
-11

skipif mysql # not compatible
query II rowsort label-2168
SELECT ALL - + NULLIF ( + 33, ( + COUNT ( * ) ) + - + 36 / - 97 ), + MIN ( + 4 ) / 52 / NULLIF ( 97, + COUNT ( * ) + + + 30 ) + + - 16 + 95 / + 16 AS col2
----
-33
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT - + MAX( DISTINCT + 3 ) + - 6 col2
----
-9

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT - + MAX ( DISTINCT + 3 ) + - 6 col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2170
SELECT - 78 DIV + 13 - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2170
SELECT - 78 / + 13 - + COUNT ( * )
----
-7

query I rowsort
SELECT + 30 * 20 AS col2
----
600

query I rowsort
SELECT ALL 70 + - + 5
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2173
SELECT ALL - - 45 + - 80 + + + 63 + - COUNT( * ) * + - 79 + - 85 + - ( + 2 ) DIV - 61
----
22

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - - 45 + - 80 + + + 63 + - COUNT ( * ) * + - 79 + - 85 + - ( + 2 ) / - 61
----
22

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

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - 86 + - + COUNT ( * ) AS col1
----
-87

query II rowsort
SELECT ALL - + 77, 50 AS col1
----
-77
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT MAX( DISTINCT - - 0 ) * + 73
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT MAX ( DISTINCT - - 0 ) * + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT MIN( DISTINCT 22 ) + 72 * + 75 col0
----
5422

skipif mysql # not compatible
query I rowsort label-2178
SELECT MIN ( DISTINCT 22 ) + 72 * + 75 col0
----
5422

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ( - 28 ) * - 83 + - 3 - - 49 - - + COUNT( * ) AS col2
----
2371

skipif mysql # not compatible
query I rowsort label-2179
SELECT ( - 28 ) * - 83 + - 3 - - 49 - - + COUNT ( * ) AS col2
----
2371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT 77 * - 5 * NULLIF ( + 92, 31 * 92 + + CASE + 19 WHEN ( + - MAX( DISTINCT - 90 ) ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END * - + 7 - CASE - 20 WHEN 42 + + 82 - - 81 THEN 60 * + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ELSE NULL END * + + 12 - - + 34 + 7 )
----
-35420

skipif mysql # not compatible
query I rowsort label-2180
SELECT 77 * - 5 * NULLIF ( + 92, 31 * 92 + + CASE + 19 WHEN ( + - MAX ( DISTINCT - 90 ) ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * - + 7 - CASE - 20 WHEN 42 + + 82 - - 81 THEN 60 * + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ELSE NULL END * + + 12 - - + 34 + 7 )
----
-35420

query I rowsort
SELECT ALL - 25 * 72
----
-1800

query I rowsort
SELECT 67 * 15
----
1005

query I rowsort
SELECT ALL 48 * - 15
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2184
SELECT 57 * + ( - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT 57 * + ( - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2185
SELECT ( CASE - 38 WHEN + - 46 THEN NULL WHEN 18 * - + 55 * + + 5 + - 26 THEN NULL WHEN + 39 / - + 47 THEN CAST( + SUM( 5 ) AS DECIMAL ) * - + CAST( 25 AS SIGNED ) + - 27 END ) + - 93 * - + CAST( NULL AS SIGNED ) * + 26 * - + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT ( CASE - 38 WHEN + - 46 THEN NULL WHEN 18 * - + 55 * + + 5 + - 26 THEN NULL WHEN + 39 / - + 47 THEN CAST ( + SUM ( 5 ) AS REAL ) * - + CAST ( 25 AS INTEGER ) + - 27 END ) + - 93 * - + CAST ( NULL AS INTEGER ) * + 26 * - + 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2186
SELECT 85 - 85 + - CAST( - - 53 AS SIGNED ) * - + 17 - 85 DIV 90 + + - COUNT( * ) + + NULLIF ( + + 98, + 26 )
----
998

skipif mysql # not compatible
query I rowsort label-2186
SELECT 85 - 85 + - CAST ( - - 53 AS INTEGER ) * - + 17 - 85 / 90 + + - COUNT ( * ) + + NULLIF ( + + 98, + 26 )
----
998

query I rowsort
SELECT - COALESCE ( - + ( + 46 ), 62 )
----
46

query I rowsort
SELECT 9 + 34 AS col0
----
43

query II rowsort
SELECT ALL ( - 52 ) AS col1, 1
----
-52
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT DISTINCT - 90 + ( - 58 ) * 26 * - CAST( 62 AS SIGNED ) + + + 64 AS col1
----
93470

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - 90 + ( - 58 ) * 26 * - CAST ( 62 AS INTEGER ) + + + 64 AS col1
----
93470

query I rowsort
SELECT + 75 - + NULLIF ( - 11, - 49 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT + 56 + - - COUNT( * ) * - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + 56 + - - COUNT ( * ) * - COUNT ( * ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT ALL - 98 + + 44 - + 63 + + 74 DIV + 58
----
-116

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - 98 + + 44 - + 63 + + 74 / + 58
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT + 40 * + - 83 - COUNT( * ) - - 16 * - ( - 48 ) * + 97 + 85 + + - COUNT( * ) AS col0
----
71259

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + 40 * + - 83 - COUNT ( * ) - - 16 * - ( - 48 ) * + 97 + 85 + + - COUNT ( * ) AS col0
----
71259

query I rowsort
SELECT + NULLIF ( + 41, 23 * + 74 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT ALL - - 42 * - + 1, SUM( DISTINCT + 34 ) * - - COUNT( * ) + - + 58 AS col0
----
-42
-24

skipif mysql # not compatible
query II rowsort label-2196
SELECT ALL - - 42 * - + 1, SUM ( DISTINCT + 34 ) * - - COUNT ( * ) + - + 58 AS col0
----
-42
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT + 16 + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + 16 + - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL - MIN( - - ( 17 ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - MIN ( - - ( 17 ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT COUNT( * ) * 39 + + 63 - 6 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2199
SELECT COUNT ( * ) * 39 + + 63 - 6 AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT + 34 DIV + 41 + - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2200
SELECT + 34 / + 41 + - 8 AS col1
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2201
SELECT - 0 * - 26 - 72 + CAST( NULL AS DECIMAL ) / 79 + - 81 + - 54 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT - 0 * - 26 - 72 + CAST ( NULL AS REAL ) / 79 + - 81 + - 54 + - 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT - 44 + 14 + - 68 - + + 36 DIV - 93 * 44 * - + 65 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2202
SELECT - 44 + 14 + - 68 - + + 36 / - 93 * 44 * - + 65 AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2203
SELECT 32 + - NULLIF ( - 71, - COUNT( * ) ) + + CAST( NULL AS SIGNED ) / COUNT( - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT 32 + - NULLIF ( - 71, - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) / COUNT ( - 53 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT 41 + - 92 + + COALESCE ( + 47, - CAST( + 28 AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2204
SELECT 41 + - 92 + + COALESCE ( + 47, - CAST ( + 28 AS INTEGER ) )
----
-4

query I rowsort
SELECT DISTINCT 50 * - 46
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + 59 * - - MIN( ALL + 66 ) + + 26
----
3920

skipif mysql # not compatible
query I rowsort label-2206
SELECT + 59 * - - MIN ( ALL + 66 ) + + 26
----
3920

query I rowsort
SELECT ALL + 84 - + 15 * - - ( - - 26 )
----
-306

query I rowsort
SELECT ALL - ( + 42 ) * + + ( 93 ) / - - AVG ( - CASE 5 WHEN - + 40 THEN 66 END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 12 * 88 AS col0
----
1056

query I rowsort
SELECT ALL - 57 * + + ( - 75 ) * + 85
----
363375

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT 76 + - 98 DIV 95
----
75

skipif mysql # not compatible
query I rowsort label-2211
SELECT 76 + - 98 / 95
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2212
SELECT SUM( NULLIF ( - 97, + - 59 + - COALESCE ( + + 98, - + ( 53 ) ) * - + 27 ) ) / 92 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT SUM ( NULLIF ( - 97, + - 59 + - COALESCE ( + + 98, - + ( 53 ) ) * - + 27 ) ) / 92 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 95 + - 81 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT DISTINCT 1 DIV - - 7
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT 1 / - - 7
----
0

query I rowsort
SELECT + 13 + + 34
----
47

query II rowsort
SELECT DISTINCT 78, 70 - + + 4 AS col0
----
78
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT - + 9, 78 - + 0 * - COUNT( * ) col1
----
-9
78

skipif mysql # not compatible
query II rowsort label-2217
SELECT - + 9, 78 - + 0 * - COUNT ( * ) col1
----
-9
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2218
SELECT ALL - 94 + - 77 * - 66 * - CAST( ( - ( NULLIF ( + NULLIF ( ( + ( - ( 0 ) ) ), - AVG ( - 60 ) ), - 23 ) ) ) AS SIGNED ) * - 0 DIV + 96 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - 94 + - 77 * - 66 * - CAST ( ( - ( NULLIF ( + NULLIF ( ( + ( - ( 0 ) ) ), - AVG ( - 60 ) ), - 23 ) ) ) AS INTEGER ) * - 0 / + 96 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT + SUM( ALL - 73 ) + + - COALESCE ( + MIN( ALL + 54 ), + ( 69 ) ) col0
----
-127

skipif mysql # not compatible
query I rowsort label-2219
SELECT + SUM ( ALL - 73 ) + + - COALESCE ( + MIN ( ALL + 54 ), + ( 69 ) ) col0
----
-127

query I rowsort
SELECT DISTINCT - 60 + + ( 72 ) * + - 22 * 11 col0
----
-17484

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT MIN( - - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2221
SELECT MIN ( - - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - MAX( - 19 ) + 3
----
22

skipif mysql # not compatible
query I rowsort label-2222
SELECT - MAX ( - 19 ) + 3
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL CAST( NULL AS SIGNED ) + 2 + - 59 / + 1 * - ( + - 22 ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL CAST ( NULL AS INTEGER ) + 2 + - 59 / + 1 * - ( + - 22 ) * - 44
----
NULL

query II rowsort
SELECT 44 AS col0, 66 AS col2
----
44
66

query I rowsort
SELECT - COALESCE ( - - 64, - - 90, + 63 ) col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2226
SELECT ALL + 11 + - + MIN( DISTINCT - 60 ) * + COUNT( ALL + + 68 ) * - CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + 11 + - + MIN ( DISTINCT - 60 ) * + COUNT ( ALL + + 68 ) * - CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col2
----
71

query II rowsort
SELECT DISTINCT - 0 + ( + 60 ) * + - 68, - 65 + 19 AS col1
----
-4080
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT + + 31 + MIN( ALL - 58 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-2228
SELECT + + 31 + MIN ( ALL - 58 ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT + + 72 * ( NULLIF ( - - 41, - 91 ) ) + CAST( NULL AS SIGNED ) + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT + + 72 * ( NULLIF ( - - 41, - 91 ) ) + CAST ( NULL AS INTEGER ) + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2230
SELECT - - NULLIF ( + NULLIF ( + + CASE + 14 WHEN 82 THEN 17 ELSE 76 DIV - 46 END, - - 12 ), + + COUNT( * ) ) * + 28 + + - ( + + 13 ) col2, 45
----
-41
45

skipif mysql # not compatible
query II rowsort label-2230
SELECT - - NULLIF ( + NULLIF ( + + CASE + 14 WHEN 82 THEN 17 ELSE 76 / - 46 END, - - 12 ), + + COUNT ( * ) ) * + 28 + + - ( + + 13 ) col2, 45
----
-41
45

query II rowsort
SELECT DISTINCT - - ( + 16 ) * 9 + + 39, - 92 AS col0
----
183
-92

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

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + + COUNT ( - 80 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT DISTINCT - 8 * - 18 * + 75 - - 75 DIV 79
----
10800

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - 8 * - 18 * + 75 - - 75 / 79
----
10800

query I rowsort
SELECT - 19 * + + 5 - + 53 + - + ( 7 ) * + 65 + 49
----
-554

query I rowsort
SELECT - 76 * 8 AS col1
----
-608

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

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

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

query I rowsort
SELECT 15 * - - 44 + 52 + - + 68
----
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT ALL + ( 10 ) * - 4 * + CAST( COUNT( * ) AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + ( 10 ) * - 4 * + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - 42 * - CASE 22 WHEN + + COUNT( * ) THEN 45 WHEN + 9 * - + 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 42 * - CASE 22 WHEN + + COUNT ( * ) THEN 45 WHEN + 9 * - + 17 THEN NULL END
----
NULL

query I rowsort
SELECT + - 8 * - 5 + 40 + - ( + 54 ) - - + 38 + - 49 * + ( 11 ) + 4 + - - 29 * + 27 AS col1
----
312

query I rowsort
SELECT ALL + 89 * + - 20 AS col0
----
-1780

onlyif mysql # DIV for integer division: 
query II rowsort label-2243
SELECT DISTINCT - 96 * + 16 - 29 + + - 22 - + 16 + 32 * + - 68 AS col2, COALESCE ( - + COALESCE ( - 97, - 58 + 74, + 60 ), + 70 * - 8 + + + 40 + 29 + 86 ) DIV - 41 AS col2
----
-3779
-2

skipif mysql # not compatible
query II rowsort label-2243
SELECT DISTINCT - 96 * + 16 - 29 + + - 22 - + 16 + 32 * + - 68 AS col2, COALESCE ( - + COALESCE ( - 97, - 58 + 74, + 60 ), + 70 * - 8 + + + 40 + 29 + 86 ) / - 41 AS col2
----
-3779
-2

query II rowsort
SELECT ALL - 25 * - 11 col0, - 19 AS col0
----
275
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL + COALESCE ( + 74, - 38 * + 20 * 3 - + ( + 4 ) + + 24 - CAST( - 42 AS SIGNED ), + 2 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL + COALESCE ( + 74, - 38 * + 20 * 3 - + ( + 4 ) + + 24 - CAST ( - 42 AS INTEGER ), + 2 ) AS col2
----
74

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT - COUNT( * ) * - COUNT( * ), + NULLIF ( COALESCE ( - COALESCE ( - 51, + 23 ), - - ( 46 ) * + 32, - 36 * + 58 ), - + CASE + COUNT( * ) WHEN - + 10 THEN + AVG ( DISTINCT + 8 ) WHEN + - 74 THEN + COALESCE ( - COUNT( * ), - CASE - NULLIF ( + + 16, - + 24 + - 19 ) WHEN + 33 THEN NULL WHEN - 30 THEN + - 22 ELSE NULL END ) + - MIN( + 18 ) * + 57 WHEN 46 THEN NULL ELSE + 92 END ) AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-2247
SELECT - COUNT ( * ) * - COUNT ( * ), + NULLIF ( COALESCE ( - COALESCE ( - 51, + 23 ), - - ( 46 ) * + 32, - 36 * + 58 ), - + CASE + COUNT ( * ) WHEN - + 10 THEN + AVG ( DISTINCT + 8 ) WHEN + - 74 THEN + COALESCE ( - COUNT ( * ), - CASE - NULLIF ( + + 16, - + 24 + - 19 ) WHEN + 33 THEN NULL WHEN - 30 THEN + - 22 ELSE NULL END ) + - MIN ( + 18 ) * + 57 WHEN 46 THEN NULL ELSE + 92 END ) AS col0
----
1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT + NULLIF ( - 33, + 90 / + 90 ) * + COUNT( * ) AS col2, 65 + 88
----
-33
153

skipif mysql # not compatible
query II rowsort label-2248
SELECT + NULLIF ( - 33, + 90 / + 90 ) * + COUNT ( * ) AS col2, 65 + 88
----
-33
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2249
SELECT DISTINCT + 81 * - - CAST( - ( + - 3 ) AS SIGNED ), 5 * - CAST( NULL AS SIGNED ) * ( - + 62 ) * + - 83 AS col1
----
243
NULL

skipif mysql # not compatible
query II rowsort label-2249
SELECT DISTINCT + 81 * - - CAST ( - ( + - 3 ) AS INTEGER ), 5 * - CAST ( NULL AS INTEGER ) * ( - + 62 ) * + - 83 AS col1
----
243
NULL

query I rowsort
SELECT ALL NULLIF ( - 56, + AVG ( DISTINCT - 34 ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL COUNT( * ) * - 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL COUNT ( * ) * - 88 AS col1
----
-88

query I rowsort
SELECT DISTINCT + 81 + + 26 col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT ALL 89 + - COUNT( * ) + - COUNT( * ) + 21 - COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL 89 + - COUNT ( * ) + - COUNT ( * ) + 21 - COUNT ( * )
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT + 53 DIV 50 col0
----
1

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 53 / 50 col0
----
1

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

query I rowsort
SELECT + 71 * - 63 AS col2
----
-4473

query I rowsort
SELECT - 74 + 51
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT + 57 DIV + 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT + 57 / + 98 col1
----
0

query I rowsort
SELECT - + 51 * - 0 + - 12 + - + 19
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2260
SELECT ALL + COUNT( * ) DIV 71 AS col2, 32 DIV + 27
----
0
1

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL + COUNT ( * ) / 71 AS col2, 32 / + 27
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT + - 76 - - 72 + 48 * + 38 * + 24 * 66 - + COUNT( * ) + + CASE - CAST( NULL AS SIGNED ) WHEN + 24 THEN + + ( - 54 ) * + - MIN( + 69 ) WHEN 53 THEN NULL END + AVG ( 64 ) + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT + - 76 - - 72 + 48 * + 38 * + 24 * 66 - + COUNT ( * ) + + CASE - CAST ( NULL AS INTEGER ) WHEN + 24 THEN + + ( - 54 ) * + - MIN ( + 69 ) WHEN 53 THEN NULL END + AVG ( 64 ) + - 58 AS col0
----
NULL

query I rowsort
SELECT + + 1 + + 13 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2263
SELECT DISTINCT + CASE + 60 WHEN 98 + + + MAX( ALL + - 65 ) THEN NULL WHEN - COUNT( * ) + + + 18 * + CAST( + 89 AS SIGNED ) THEN + 92 / - - 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + CASE + 60 WHEN 98 + + + MAX ( ALL + - 65 ) THEN NULL WHEN - COUNT ( * ) + + + 18 * + CAST ( + 89 AS INTEGER ) THEN + 92 / - - 10 END AS col2
----
NULL

query I rowsort
SELECT + - 27 + NULLIF ( - ( - 78 ), - 43 ) AS col2
----
51

query I rowsort
SELECT + CASE 66 WHEN + 26 THEN + 63 ELSE + 33 + + 76 END + 40
----
149

query I rowsort
SELECT - 92 * + - 10 + - COALESCE ( - + 83, - + 30 ) + 90 AS col1
----
1093

query I rowsort
SELECT + 73 - 3 * + 10
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL - 55 * + 60 + - 27 * + CAST( - - COUNT( * ) AS SIGNED ) + + 71 * + 1 / - CAST( NULL AS SIGNED ) + - + 87 - 19 * + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - 55 * + 60 + - 27 * + CAST ( - - COUNT ( * ) AS INTEGER ) + + 71 * + 1 / - CAST ( NULL AS INTEGER ) + - + 87 - 19 * + + 40
----
NULL

query II rowsort
SELECT + + 49 * - ( + 85 ) * - + 48 col2, 3
----
199920
3

query I rowsort
SELECT + + CASE - + ( - + 79 ) WHEN 54 THEN + 89 + 88 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT ALL + 94 * - 87 * 62
----
-507036

query I rowsort
SELECT + 73 + - 54 + 18
----
37

query II rowsort
SELECT ALL + 25 AS col0, 22 AS col1
----
25
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2275
SELECT ALL + 66 DIV 12 col1
----
5

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + 66 / 12 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - ( - MAX( DISTINCT + 85 ) ) * - 32 AS col1
----
-2720

skipif mysql # not compatible
query I rowsort label-2276
SELECT - ( - MAX ( DISTINCT + 85 ) ) * - 32 AS col1
----
-2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT DISTINCT 90 DIV + + COUNT( * ) col2
----
90

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT 90 / + + COUNT ( * ) col2
----
90

query I rowsort
SELECT ALL - 67 * - 2 AS col0
----
134

query I rowsort
SELECT + 31 + - 87
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT - 37 * + - CAST( NULLIF ( - + 20, 56 ) AS SIGNED )
----
-740

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 37 * + - CAST ( NULLIF ( - + 20, 56 ) AS INTEGER )
----
-740

query I rowsort
SELECT 66 + - 96 + + - 49
----
-79

query I rowsort
SELECT 5 * 24 AS col1
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT ALL + 95 + + - 60 + 92 DIV - 51
----
34

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + 95 + + - 60 + 92 / - 51
----
34

query I rowsort
SELECT 76 + - 8
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT 95 * - 93 + SUM( ALL - ( - 67 ) ) * 48 * 4
----
4029

skipif mysql # not compatible
query I rowsort label-2286
SELECT 95 * - 93 + SUM ( ALL - ( - 67 ) ) * 48 * 4
----
4029

query II rowsort
SELECT 95 + ( + 45 ), 85 + - 16 + - + 96 AS col1
----
140
-27

query I rowsort
SELECT ALL + 95 + + 81
----
176

query I rowsort
SELECT 4 + - ( 9 ) * + 69
----
-617

query I rowsort
SELECT 85 * + 52 AS col2
----
4420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT COUNT( * ) + 53 * - 6 + + CAST( NULL AS SIGNED ) / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT COUNT ( * ) + 53 * - 6 + + CAST ( NULL AS INTEGER ) / - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - - COALESCE ( + 81, - - 19 * + - COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2292
SELECT - - COALESCE ( + 81, - - 19 * + - COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT + COUNT( * ) * 52 + + - 40 AS col1, 87 AS col0
----
12
87

skipif mysql # not compatible
query II rowsort label-2293
SELECT + COUNT ( * ) * 52 + + - 40 AS col1, 87 AS col0
----
12
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2294
SELECT 99, 91 DIV MIN( DISTINCT + 94 ) AS col1
----
99
0

skipif mysql # not compatible
query II rowsort label-2294
SELECT 99, 91 / MIN ( DISTINCT + 94 ) AS col1
----
99
0

query I rowsort
SELECT + 55 + - 3
----
52

query I rowsort
SELECT ALL + 11 + 89 AS col1
----
100

query I rowsort
SELECT - 95 * + 48 AS col2
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT SUM( ALL + 56 ) * + ( ( - 69 ) ) + - 98 * - 46
----
644

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT SUM ( ALL + 56 ) * + ( ( - 69 ) ) + - 98 * - 46
----
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT ALL - + NULLIF ( - ( - + ( + + 69 ) ), - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - ( 87 ) ) - + 79
----
-148

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - + NULLIF ( - ( - + ( + + 69 ) ), - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( 87 ) ) - + 79
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT - COUNT( DISTINCT - + 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2300
SELECT - COUNT ( DISTINCT - + 14 ) AS col2
----
-1

query II rowsort
SELECT ( - 37 ) + - 79 AS col2, - 98 AS col0
----
-116
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT + 97 * - COUNT( * ) + + COUNT( * ) * + COUNT( DISTINCT 64 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 97 * - COUNT ( * ) + + COUNT ( * ) * + COUNT ( DISTINCT 64 ) AS col0
----
-96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2304
SELECT ALL - COUNT( * ) DIV - 7 - 53
----
-53

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - COUNT ( * ) / - 7 - 53
----
-53

query II rowsort
SELECT ALL 25 AS col1, 72 * + 99 AS col0
----
25
7128

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT - COUNT( DISTINCT - 25 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT - COUNT ( DISTINCT - 25 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL - - MIN( + + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - - MIN ( + + 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2308
SELECT DISTINCT COUNT( * ) * - + CAST( - + 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT COUNT ( * ) * - + CAST ( - + 68 AS INTEGER ) AS col2
----
68

query II rowsort
SELECT 42, 93 AS col2
----
42
93

query I rowsort
SELECT - 47 * - + 20 - - 84
----
1024

query I rowsort
SELECT ALL 49 * + 37 * ( + - 25 ) * + - 57 - 87 + - ( - 49 ) * - - 73 AS col0
----
2587015

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL 43 + - + ( 24 ) + - - 11 * + 91 + - ( ( - COUNT( * ) ) ) + - COUNT( * ) AS col2
----
1020

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL 43 + - + ( 24 ) + - - 11 * + 91 + - ( ( - COUNT ( * ) ) ) + - COUNT ( * ) AS col2
----
1020

query I rowsort
SELECT 5 * 70
----
350

query I rowsort
SELECT 76 * COALESCE ( + + 8, 60 * 86 + - 9 + 65 * 86 * + - 47 * - 52 ) * 19
----
11552

query II rowsort
SELECT DISTINCT - 47, - 57 AS col1
----
-47
-57

query I rowsort
SELECT ALL + 90 + - COALESCE ( - - 14, + - ( - + 89 ) + - 86 )
----
76

query II rowsort
SELECT ALL 83 + - ( + - 6 ) + - + 24 + + 51 * + 48 AS col2, + 71 + 86 + + 16
----
2513
173

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT 42 + - - COUNT( * ) + - + 16 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT 42 + - - COUNT ( * ) + - + 16 AS col0
----
27

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

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL 36 / ( COUNT ( * ) )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2320
SELECT + 22 AS col2, - 88 * - - SUM( - 64 )
----
22
5632

skipif mysql # not compatible
query II rowsort label-2320
SELECT + 22 AS col2, - 88 * - - SUM ( - 64 )
----
22
5632

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT 20 DIV ( 5 )
----
4

skipif mysql # not compatible
query I rowsort label-2321
SELECT 20 / ( 5 )
----
4

query I rowsort
SELECT 91 * + 89 * - - 83
----
672217

query I rowsort
SELECT ALL + 64 + + - 44 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - 26 * - NULLIF ( + 31, - + 31 ) - - ( COUNT( * ) )
----
807

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 26 * - NULLIF ( + 31, - + 31 ) - - ( COUNT ( * ) )
----
807

query II rowsort
SELECT 23 AS col2, 73 AS col0
----
23
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT - 79 DIV + 79 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2326
SELECT - 79 / + 79 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2327
SELECT ALL - NULLIF ( ( - 17 ), - - COUNT( * ) + + CAST( - - 52 AS DECIMAL ) + - COUNT( ALL + 43 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL - NULLIF ( ( - 17 ), - - COUNT ( * ) + + CAST ( - - 52 AS REAL ) + - COUNT ( ALL + 43 ) ) AS col0
----
17

query II rowsort
SELECT 76 AS col1, 52
----
76
52

query II rowsort
SELECT DISTINCT 18 AS col1, 50 AS col1
----
18
50

query I rowsort
SELECT ( + 8 ) + - 31 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT + COALESCE ( 11, + MIN( - ( + 13 ) ) ) - + + ( + 0 )
----
11

skipif mysql # not compatible
query I rowsort label-2331
SELECT + COALESCE ( 11, + MIN ( - ( + 13 ) ) ) - + + ( + 0 )
----
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT DISTINCT + MAX( DISTINCT - 23 ) AS col2, + 1 AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-2333
SELECT DISTINCT + MAX ( DISTINCT - 23 ) AS col2, + 1 AS col0
----
-23
1

query I rowsort
SELECT - 95 * 50 AS col2
----
-4750

query I rowsort
SELECT 78 * - 59 + - 38
----
-4640

query II rowsort
SELECT ALL 92 AS col2, 70 + + 87 AS col1
----
92
157

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT COALESCE ( - 17, - COUNT( + 20 ), + + 42 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT COALESCE ( - 17, - COUNT ( + 20 ), + + 42 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT MAX( DISTINCT - - 78 ) * - 55 + - + 84 AS col0
----
-4374

skipif mysql # not compatible
query I rowsort label-2339
SELECT MAX ( DISTINCT - - 78 ) * - 55 + - + 84 AS col0
----
-4374

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - NULLIF ( + 58, + - 8 ) + + - 38 + - COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2340
SELECT - NULLIF ( + 58, + - 8 ) + + - 38 + - COUNT ( * ) AS col2
----
-97

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

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT - - 66 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT - + 91 col2, 76 + 66 + - 42
----
-91
100

query I rowsort
SELECT 44 + - + 39 AS col0
----
5

query I rowsort
SELECT ALL - 67 * + 98
----
-6566

query I rowsort
SELECT 86 * + 58 * + 90
----
448920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2346
SELECT COALESCE ( - - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ), + 5 DIV - CAST( + 31 AS SIGNED ), + 18 * 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT COALESCE ( - - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ), + 5 / - CAST ( + 31 AS INTEGER ), + 18 * 56 ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2348
SELECT NULLIF ( + 41, - NULLIF ( + - 75, + CASE - 49 WHEN - - 99 THEN - 23 ELSE - AVG ( ALL - - CAST( 13 AS SIGNED ) ) END + + COUNT( * ) ) ) * 24 + - COALESCE ( COUNT( DISTINCT - 20 ), + - 70 * + - CAST( NULL AS SIGNED ) ) AS col0
----
983

skipif mysql # not compatible
query I rowsort label-2348
SELECT NULLIF ( + 41, - NULLIF ( + - 75, + CASE - 49 WHEN - - 99 THEN - 23 ELSE - AVG ( ALL - - CAST ( 13 AS INTEGER ) ) END + + COUNT ( * ) ) ) * 24 + - COALESCE ( COUNT ( DISTINCT - 20 ), + - 70 * + - CAST ( NULL AS INTEGER ) ) AS col0
----
983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT + 72 - - 58 - - 75 + + COUNT( * ) + - CAST( + 10 AS SIGNED ) - + - 26 + - 78 + + - 93 / - NULLIF ( - COUNT( * ), + 2 - 15 ) + - - 79 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT + 72 - - 58 - - 75 + + COUNT ( * ) + - CAST ( + 10 AS INTEGER ) - + - 26 + - 78 + + - 93 / - NULLIF ( - COUNT ( * ), + 2 - 15 ) + - - 79 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 57, 99 - + 37 ) + + 40 * - 8 + 3
----
-374

skipif mysql # not compatible
query I rowsort label-2350
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 57, 99 - + 37 ) + + 40 * - 8 + 3
----
-374

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT MAX( 54 ) AS col2, + CASE - + 3 WHEN - ( MAX( DISTINCT + 82 ) ) THEN + 98 END AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2351
SELECT MAX ( 54 ) AS col2, + CASE - + 3 WHEN - ( MAX ( DISTINCT + 82 ) ) THEN + 98 END AS col0
----
54
NULL

query I rowsort
SELECT + 36 + - - 27 * + + ( - ( - + 79 ) ) AS col1
----
2169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2353
SELECT - 60 * + - COUNT( - 54 ) + - 61 DIV - 88
----
60

skipif mysql # not compatible
query I rowsort label-2353
SELECT - 60 * + - COUNT ( - 54 ) + - 61 / - 88
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT DISTINCT + MAX( DISTINCT - 14 ), + 74 * + + 35 col1
----
-14
2590

skipif mysql # not compatible
query II rowsort label-2354
SELECT DISTINCT + MAX ( DISTINCT - 14 ), + 74 * + + 35 col1
----
-14
2590

query I rowsort
SELECT 89 * + + 35 + - 90 * 53 + 12 + - 29 - + 55 * 98 AS col0
----
-7062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2356
SELECT ALL + COUNT( * ) * - COUNT( * ) * + COUNT( * ) - + + 65 DIV + 93
----
-1

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) - + + 65 / + 93
----
-1

query I rowsort
SELECT DISTINCT + 50 - - 87 * + 37 AS col2
----
3269

query I rowsort
SELECT + 13 + - NULLIF ( - 74, - - ( + 51 ) ) + + 56
----
143

query I rowsort
SELECT - COALESCE ( - 37, - + 44 + - 86 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT - + 56 DIV + - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT - + 56 / + - 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL + COUNT( * ) * + NULLIF ( + 24, + + 62 + + COUNT( * ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + COUNT ( * ) * + NULLIF ( + 24, + + 62 + + COUNT ( * ) ) AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT - 15 DIV + 2 + - 69
----
-76

skipif mysql # not compatible
query I rowsort label-2362
SELECT - 15 / + 2 + - 69
----
-76

query I rowsort
SELECT ALL + COALESCE ( 1, + + 13 * + 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT + CASE - 67 WHEN - 34 THEN NULL ELSE - COUNT( * ) END + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-2364
SELECT + CASE - 67 WHEN - 34 THEN NULL ELSE - COUNT ( * ) END + - 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT - 82 + + 68 - - NULLIF ( + + SUM( ALL + 84 ), + SUM( ALL + 57 ) + - COUNT( * ) + - 7 ) * - 63 + + + 83 * + - 81 * 14
----
-99428

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - 82 + + 68 - - NULLIF ( + + SUM ( ALL + 84 ), + SUM ( ALL + 57 ) + - COUNT ( * ) + - 7 ) * - 63 + + + 83 * + - 81 * 14
----
-99428

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT + 86 * - - SUM( DISTINCT 83 ) AS col0
----
7138

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 86 * - - SUM ( DISTINCT 83 ) AS col0
----
7138

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT - 30 AS col0, - 83 * + - 10 * + 81 * COUNT( * ) + - - 15
----
-30
67245

skipif mysql # not compatible
query II rowsort label-2367
SELECT - 30 AS col0, - 83 * + - 10 * + 81 * COUNT ( * ) + - - 15
----
-30
67245

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2368
SELECT - CAST( NULL AS SIGNED ), - 69 + + 31 AS col0
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-2368
SELECT - CAST ( NULL AS INTEGER ), - 69 + + 31 AS col0
----
NULL
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT - COUNT( * ) * + - MIN( 67 ) * + NULLIF ( COUNT( * ), + 31 * - + 78 * + 75 + - 74 + - 44 * - MIN( ( + - 90 ) ) + + 36 + - COUNT( * ) * + 63 ) * - + COUNT( * ) - + CAST( + - 64 AS SIGNED ) + - 32 col0
----
-35

skipif mysql # not compatible
query I rowsort label-2369
SELECT - COUNT ( * ) * + - MIN ( 67 ) * + NULLIF ( COUNT ( * ), + 31 * - + 78 * + 75 + - 74 + - 44 * - MIN ( ( + - 90 ) ) + + 36 + - COUNT ( * ) * + 63 ) * - + COUNT ( * ) - + CAST ( + - 64 AS INTEGER ) + - 32 col0
----
-35

query I rowsort
SELECT ALL + 8 + - + 65 AS col2
----
-57

query II rowsort
SELECT DISTINCT NULLIF ( + 52, + - 24 ) AS col2, 65
----
52
65

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT ALL - COALESCE ( + - CASE + + 31 WHEN - 23 + ( + 89 ) + - COUNT( * ) THEN - 70 DIV 0 + - 67 + - 37 * + NULLIF ( + - 52, 44 * + 57 ) + + 82 + + - 81 WHEN + 20 DIV - 79 + + - 34 + + - 40 * 75 DIV - - 95 THEN NULL ELSE NULL END, - 2 * - - COUNT( * ) ) * 88 * - 36 * + + 39
----
-247104

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - COALESCE ( + - CASE + + 31 WHEN - 23 + ( + 89 ) + - COUNT ( * ) THEN - 70 / 0 + - 67 + - 37 * + NULLIF ( + - 52, 44 * + 57 ) + + 82 + + - 81 WHEN + 20 / - 79 + + - 34 + + - 40 * 75 / - - 95 THEN NULL ELSE NULL END, - 2 * - - COUNT ( * ) ) * 88 * - 36 * + + 39
----
-247104

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2375
SELECT ALL 75 DIV 89 + 55 * 92 col0
----
5060

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL 75 / 89 + 55 * 92 col0
----
5060

query I rowsort
SELECT DISTINCT - 18 * + + 5
----
-90

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

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

query I rowsort
SELECT ALL + 36 * + 65
----
2340

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2380
SELECT DISTINCT + COALESCE ( 81, - + 45 ) * + 88 / + - 59 + + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + COALESCE ( 81, - + 45 ) * + 88 / + - 59 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2381
SELECT ALL + COUNT( * ) DIV + - 75 DIV - 72 DIV - 46 - - - 44
----
-44

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + COUNT ( * ) / + - 75 / - 72 / - 46 - - - 44
----
-44

query I rowsort
SELECT - ( 57 ) * + 46
----
-2622

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

skipif mysql # not compatible
query I rowsort label-2383
SELECT - 56 * + CAST ( NULL AS INTEGER ) + + 49 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT - 36 DIV + - 55
----
0

skipif mysql # not compatible
query I rowsort label-2384
SELECT - 36 / + - 55
----
0

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

query I rowsort
SELECT ALL - 73 * - 80 col0
----
5840

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

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT + COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), + COUNT ( * ) * - 58 )
----
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT ALL ( - - 5 ) DIV - ( + 64 ) - ( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL ( - - 5 ) / - ( + 64 ) - ( 22 )
----
-22

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT + MIN( - + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + MIN ( - + 3 )
----
-3

query II rowsort
SELECT + 47 AS col1, ( - 70 ) AS col0
----
47
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT - + 94 * - 60 - 70 * - - SUM( DISTINCT + 57 ) AS col1
----
1650

skipif mysql # not compatible
query I rowsort label-2395
SELECT - + 94 * - 60 - 70 * - - SUM ( DISTINCT + 57 ) AS col1
----
1650

query II rowsort
SELECT ALL + - 49 * - 21 * + 46 AS col0, 48 AS col2
----
47334
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT - ( + 47 ) * COUNT( * ) * + 90 + + 11
----
-4219

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT - ( + 47 ) * COUNT ( * ) * + 90 + + 11
----
-4219

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL - 58 * COUNT( * ) * + - MIN( - 63 ) + + - 11 * - 7 * 46 * - ( + + 58 ) AS col1
----
-209090

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - 58 * COUNT ( * ) * + - MIN ( - 63 ) + + - 11 * - 7 * 46 * - ( + + 58 ) AS col1
----
-209090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2400
SELECT + 57 + 0 * MIN( 1 ) DIV + 15
----
57

skipif mysql # not compatible
query I rowsort label-2400
SELECT + 57 + 0 * MIN ( 1 ) / + 15
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + ( - 23 ) - - COALESCE ( 41, COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-2401
SELECT + ( - 23 ) - - COALESCE ( 41, COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT ALL - 95 + 18 + 70 DIV + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - 95 + 18 + 70 / + COUNT ( * ) AS col2
----
-7

query II rowsort
SELECT - 38, + 5 * 27 + - + 5 AS col0
----
-38
130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT MAX( - 81 ) * + 25 AS col1
----
-2025

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT MAX ( - 81 ) * + 25 AS col1
----
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT DISTINCT 73 DIV + 8
----
9

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT 73 / + 8
----
9

query II rowsort
SELECT DISTINCT 32 + 99 AS col0, CASE WHEN NOT 22 IS NOT NULL THEN + + 70 END AS col0
----
131
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT - COUNT( * ) * + - 42 * + 96 * + - 53 * + + 53
----
-11325888

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - COUNT ( * ) * + - 42 * + 96 * + - 53 * + + 53
----
-11325888

query II rowsort
SELECT ALL 67 + + 57 AS col0, 19 * + 92
----
124
1748

query I rowsort
SELECT DISTINCT 26 * 18
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL + MAX( DISTINCT + 91 ) - + 20 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL + MAX ( DISTINCT + 91 ) - + 20 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2412
SELECT DISTINCT 19 * - + 50 AS col2, CAST( NULL AS SIGNED ) * + - 41 / CAST( NULL AS SIGNED )
----
-950
NULL

skipif mysql # not compatible
query II rowsort label-2412
SELECT DISTINCT 19 * - + 50 AS col2, CAST ( NULL AS INTEGER ) * + - 41 / CAST ( NULL AS INTEGER )
----
-950
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2413
SELECT MAX( - - 39 ) * - ( + + 28 ) + 65 + + - 65 * 54 * - 90 + + 53 AS col1, - 2
----
314926
-2

skipif mysql # not compatible
query II rowsort label-2413
SELECT MAX ( - - 39 ) * - ( + + 28 ) + 65 + + - 65 * 54 * - 90 + + 53 AS col1, - 2
----
314926
-2

query I rowsort
SELECT ( - - ( + 83 ) ) * 4 AS col0
----
332

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT DISTINCT + SUM( - - 42 ) * - ( 21 ), + COUNT( * ) AS col2
----
-882
1

skipif mysql # not compatible
query II rowsort label-2415
SELECT DISTINCT + SUM ( - - 42 ) * - ( 21 ), + COUNT ( * ) AS col2
----
-882
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT ALL - MIN( - 59 ), 93 - COUNT( * ) * + 34 * 90 AS col2
----
59
-2967

skipif mysql # not compatible
query II rowsort label-2416
SELECT ALL - MIN ( - 59 ), 93 - COUNT ( * ) * + 34 * 90 AS col2
----
59
-2967

query I rowsort
SELECT 29 * - 1 * - + 60
----
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-2418
SELECT 36 - - + 77, 4 + - 97 + + COUNT( + 35 ) AS col2
----
113
-92

skipif mysql # not compatible
query II rowsort label-2418
SELECT 36 - - + 77, 4 + - 97 + + COUNT ( + 35 ) AS col2
----
113
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT COUNT( + 26 ) DIV 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT COUNT ( + 26 ) / 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT 64 + - 17 + - - 95 * COUNT( DISTINCT 87 ) * 59 + + - 4 * + - 23
----
5744

skipif mysql # not compatible
query I rowsort label-2420
SELECT 64 + - 17 + - - 95 * COUNT ( DISTINCT 87 ) * 59 + + - 4 * + - 23
----
5744

query I rowsort
SELECT 7 * - + 73 * + + 49 + - 1 - ( - + 75 ) * + 71 * - 89 AS col2
----
-498965

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - MIN( ( - 89 ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2422
SELECT - MIN ( ( - 89 ) ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2423
SELECT - + COALESCE ( + CAST( NULL AS SIGNED ), - 1 ) * - 51 + 34 - - CAST( NULLIF ( + 4, - CASE - CASE - NULLIF ( COALESCE ( + 55, + 82 * + ( CAST( + - 31 AS SIGNED ) ) - + - AVG ( DISTINCT - 48 ), - - 8 ), - 82 * - - COUNT( ( - + 73 ) ) ) WHEN 59 * 98 * + 76 THEN NULL ELSE + + 76 END WHEN 53 THEN - + 75 ELSE NULL END ) AS SIGNED ) DIV ( + - 69 ) col0, + 18 AS col0
----
-17
18

skipif mysql # not compatible
query II rowsort label-2423
SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), - 1 ) * - 51 + 34 - - CAST ( NULLIF ( + 4, - CASE - CASE - NULLIF ( COALESCE ( + 55, + 82 * + ( CAST ( + - 31 AS INTEGER ) ) - + - AVG ( DISTINCT - 48 ), - - 8 ), - 82 * - - COUNT ( ( - + 73 ) ) ) WHEN 59 * 98 * + 76 THEN NULL ELSE + + 76 END WHEN 53 THEN - + 75 ELSE NULL END ) AS INTEGER ) / ( + - 69 ) col0, + 18 AS col0
----
-17
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT DISTINCT + 49 + - - 9 DIV - - COALESCE ( + + 98, 94 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + 49 + - - 9 / - - COALESCE ( + + 98, 94 ) AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT ALL + + 22 + + 84 + + 25 DIV 74 + - 46 + - 72
----
-12

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL + + 22 + + 84 + + 25 / 74 + - 46 + - 72
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT NULLIF ( - COUNT( * ), + COUNT( * ) ) + - 68 + 88 + + - 28 + - + 85 + - 85 + - COUNT( + 97 ) * - 5 * + - ( + ( + - 97 ) ) * + 27 AS col1
----
12916

skipif mysql # not compatible
query I rowsort label-2426
SELECT NULLIF ( - COUNT ( * ), + COUNT ( * ) ) + - 68 + 88 + + - 28 + - + 85 + - 85 + - COUNT ( + 97 ) * - 5 * + - ( + ( + - 97 ) ) * + 27 AS col1
----
12916

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL + NULLIF ( - 17, AVG ( DISTINCT 44 ) / - COUNT( * ) ) + - + 13 * - - 89
----
-1174

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + NULLIF ( - 17, AVG ( DISTINCT 44 ) / - COUNT ( * ) ) + - + 13 * - - 89
----
-1174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT - CAST( AVG ( ALL - 55 ) AS SIGNED ) col1
----
55

skipif mysql # not compatible
query I rowsort label-2428
SELECT - CAST ( AVG ( ALL - 55 ) AS INTEGER ) col1
----
55

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

query I rowsort
SELECT 35 * - + 61
----
-2135

query II rowsort
SELECT ALL + 75 + 71 AS col2, 15 * - 52 - - 4 * 17
----
146
-712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT 69 - CAST( ( - 38 ) AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-2432
SELECT 69 - CAST ( ( - 38 ) AS INTEGER )
----
107

query I rowsort
SELECT 75 + + + 7 + 16
----
98

query I rowsort
SELECT DISTINCT 78 - + 16 AS col2
----
62

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

skipif mysql # not compatible
query I rowsort label-2435
SELECT CAST ( NULL AS INTEGER ) + - ( - 57 ) col1
----
NULL

query II rowsort
SELECT 60 AS col0, 65 * - NULLIF ( 5, - 97 ) * - - 42
----
60
-13650

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

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

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

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

query I rowsort
SELECT 10 + 80
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT DISTINCT 19 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT 19 / 25
----
0

query I rowsort
SELECT DISTINCT + 1 * - - 27
----
27

query I rowsort
SELECT ALL 71 * + 55
----
3905

query I rowsort
SELECT DISTINCT ( + 37 ) * 27
----
999

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL - + SUM( ALL - + ( 57 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - + SUM ( ALL - + ( 57 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2445
SELECT DISTINCT 99 * 40 + 80 AS col1, 95 + - + COUNT( * ) col2
----
4040
94

skipif mysql # not compatible
query II rowsort label-2445
SELECT DISTINCT 99 * 40 + 80 AS col1, 95 + - + COUNT ( * ) col2
----
4040
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT 2 * - - MIN( DISTINCT 93 ) + - COUNT( * ) col2
----
185

skipif mysql # not compatible
query I rowsort label-2446
SELECT 2 * - - MIN ( DISTINCT 93 ) + - COUNT ( * ) col2
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT ALL - COUNT( * ) + - 49 - + 91 AS col1, 10 + - - 22 + - ( + 15 ) * 19 AS col0
----
-141
-253

skipif mysql # not compatible
query II rowsort label-2447
SELECT ALL - COUNT ( * ) + - 49 - + 91 AS col1, 10 + - - 22 + - ( + 15 ) * 19 AS col0
----
-141
-253

query I rowsort
SELECT - COALESCE ( - 51, - 6, 82 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT CASE - + 66 WHEN 26 + 30 THEN MAX( - 12 ) * - COUNT( * ) + COALESCE ( + - 1, + 6 ) + + + COUNT( * ) WHEN + 41 THEN NULL ELSE NULL END * + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT CASE - + 66 WHEN 26 + 30 THEN MAX ( - 12 ) * - COUNT ( * ) + COALESCE ( + - 1, + 6 ) + + + COUNT ( * ) WHEN + 41 THEN NULL ELSE NULL END * + 23 AS col2
----
NULL

query I rowsort
SELECT ALL - + 57 * - 58 col0
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + NULLIF ( + + MAX( - 3 ), 10 )
----
-3

skipif mysql # not compatible
query I rowsort label-2451
SELECT + NULLIF ( + + MAX ( - 3 ), 10 )
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT DISTINCT + 26 + + + NULLIF ( + - 61, - AVG ( 35 ) * + + MAX( ALL + 16 ) * 39 * + 91 + + + CAST( MAX( DISTINCT + + 43 ) AS SIGNED ) + + 34 / - + 94 + - 0 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + 26 + + + NULLIF ( + - 61, - AVG ( 35 ) * + + MAX ( ALL + 16 ) * 39 * + 91 + + + CAST ( MAX ( DISTINCT + + 43 ) AS INTEGER ) + + 34 / - + 94 + - 0 ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT ALL 31 * + - COALESCE ( 30, + + COUNT( * ), + 69 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL 31 * + - COALESCE ( 30, + + COUNT ( * ), + 69 ) * + - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 79 * NULLIF ( - - ( 28 ), + + 69 )
----
-2212

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2457
SELECT ALL - 4 DIV - CAST( + 46 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - 4 / - CAST ( + 46 AS INTEGER ) AS col1
----
0

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

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

query I rowsort
SELECT - 55 * + + 6
----
-330

query I rowsort
SELECT + 32 - - 69 col0
----
101

query I rowsort
SELECT ALL COALESCE ( + 0, 88 ) col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2462
SELECT - CAST( NULL AS DECIMAL ) + + 11, - 71 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-2462
SELECT - CAST ( NULL AS REAL ) + + 11, - 71 AS col2
----
NULL
-71

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

query II rowsort
SELECT ALL + 5 * - + 33 * 82 * - - 39, + 35 AS col1
----
-527670
35

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2465
SELECT DISTINCT CASE - CAST( + 64 AS DECIMAL ) WHEN + 91 THEN NULL WHEN - - 8 THEN NULL ELSE - 79 * NULLIF ( 60, + 34 ) DIV 95 END AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT CASE - CAST ( + 64 AS REAL ) WHEN + 91 THEN NULL WHEN - - 8 THEN NULL ELSE - 79 * NULLIF ( 60, + 34 ) / 95 END AS col0
----
-49

query I rowsort
SELECT ALL CASE + + ( 72 ) WHEN - 54 THEN + - 38 - - - 94 END AS col0
----
NULL

query I rowsort
SELECT ALL 66 * - 93 AS col2
----
-6138

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

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

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

query I rowsort
SELECT - NULLIF ( + 97, - 55 )
----
-97

query I rowsort
SELECT - 53 + + 46 + - 22
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + 59 * - COUNT( * ) * + 61 * - 56
----
201544

skipif mysql # not compatible
query I rowsort label-2472
SELECT + 59 * - COUNT ( * ) * + 61 * - 56
----
201544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2473
SELECT DISTINCT 19 AS col1, - ( + CAST( NULL AS SIGNED ) ) AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-2473
SELECT DISTINCT 19 AS col1, - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
19
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2474
SELECT - CASE - + 48 WHEN 93 THEN - 34 WHEN - + 16 THEN NULL ELSE + CASE - 40 WHEN + - CAST( NULL AS SIGNED ) * - ( + 95 ) + - 67 / - 9 THEN NULL WHEN + + 3 - - + COUNT( * ) * - - 5 THEN - COUNT( * ) END END col2, COALESCE ( 3, + 15 + + - CASE - 42 WHEN + + 93 + + + ( + 51 ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN ( + 99 ) END + + 25 * - 38 + - - 14 * + 63 - + - 81, + 6 )
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2474
SELECT - CASE - + 48 WHEN 93 THEN - 34 WHEN - + 16 THEN NULL ELSE + CASE - 40 WHEN + - CAST ( NULL AS INTEGER ) * - ( + 95 ) + - 67 / - 9 THEN NULL WHEN + + 3 - - + COUNT ( * ) * - - 5 THEN - COUNT ( * ) END END col2, COALESCE ( 3, + 15 + + - CASE - 42 WHEN + + 93 + + + ( + 51 ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN ( + 99 ) END + + 25 * - 38 + - - 14 * + 63 - + - 81, + 6 )
----
NULL
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2475
SELECT + 94 + - COUNT( * ) DIV - COUNT( * ) + + 54 + 76 + + + 45 * + - 48 AS col1
----
-1935

skipif mysql # not compatible
query I rowsort label-2475
SELECT + 94 + - COUNT ( * ) / - COUNT ( * ) + + 54 + 76 + + + 45 * + - 48 AS col1
----
-1935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT ALL COUNT( * ) DIV - 38 + MIN( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL COUNT ( * ) / - 38 + MIN ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + 1 * 63 * + MAX( DISTINCT + 63 ) * ( 89 ) - - 64 AS col0
----
353305

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 1 * 63 * + MAX ( DISTINCT + 63 ) * ( 89 ) - - 64 AS col0
----
353305

query II rowsort
SELECT ALL + 37 AS col1, 82
----
37
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + 34 * MAX( + - 98 ) + + - COUNT( * ) AS col0
----
-3333

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 34 * MAX ( + - 98 ) + + - COUNT ( * ) AS col0
----
-3333

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL ( + - NULLIF ( + COUNT( * ), COUNT( * ) ) ) / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL ( + - NULLIF ( + COUNT ( * ), COUNT ( * ) ) ) / 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2481
SELECT + + COUNT( * ) DIV 2, 78 * - 43 AS col2
----
0
-3354

skipif mysql # not compatible
query II rowsort label-2481
SELECT + + COUNT ( * ) / 2, 78 * - 43 AS col2
----
0
-3354

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT ALL + + SUM( 74 ), + ( - 19 ) AS col1
----
74
-19

skipif mysql # not compatible
query II rowsort label-2482
SELECT ALL + + SUM ( 74 ), + ( - 19 ) AS col1
----
74
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL + 53 * + COUNT( DISTINCT - 68 ) - + - 20 + ( - COUNT( * ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + 53 * + COUNT ( DISTINCT - 68 ) - + - 20 + ( - COUNT ( * ) ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + MAX( + 64 ) - COUNT( * ) + - 97 + + COUNT( * ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-2484
SELECT + MAX ( + 64 ) - COUNT ( * ) + - 97 + + COUNT ( * ) col2
----
-33

query I rowsort
SELECT + + 31 * - 32 * - + 15 - - 6
----
14886

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL COUNT( * ) * + - 17 + - - 66 + NULLIF ( + 53, + 95 )
----
102

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL COUNT ( * ) * + - 17 + - - 66 + NULLIF ( + 53, + 95 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL + - COUNT( ALL + 5 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + - COUNT ( ALL + 5 ) col0
----
-1

query I rowsort
SELECT + ( + 81 ) + 72 col1
----
153

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

skipif mysql # not compatible
query I rowsort label-2489
SELECT - CAST ( NULL AS INTEGER ) * ( + + 8 ) + - 75 + + 56
----
NULL

query I rowsort
SELECT + - 77 * - 80 * + 47
----
289520

query I rowsort
SELECT ALL 42 * + + 52 * 94 * - 15 - + 9 + 65 * - - 56 AS col0
----
-3075809

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

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

query I rowsort
SELECT ALL + NULLIF ( + 35, + 17 * - 45 * + 73 )
----
35

query I rowsort
SELECT ALL - 16 * 96 + - 94
----
-1630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT - 95 * - - 77 DIV - + COUNT( * )
----
7315

skipif mysql # not compatible
query I rowsort label-2495
SELECT - 95 * - - 77 / - + COUNT ( * )
----
7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT - 32 + + CAST( + - SUM( 27 ) AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2496
SELECT - 32 + + CAST ( + - SUM ( 27 ) AS INTEGER ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2497
SELECT ALL CASE + + 53 WHEN 10 + + 96 THEN - 34 WHEN - + 21 * - ( COUNT( * ) ) THEN NULL WHEN - 57 * + 2 THEN NULL END, 56 + ( + - 93 ) AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2497
SELECT ALL CASE + + 53 WHEN 10 + + 96 THEN - 34 WHEN - + 21 * - ( COUNT ( * ) ) THEN NULL WHEN - 57 * + 2 THEN NULL END, 56 + ( + - 93 ) AS col0
----
NULL
-37

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT 18 * + MAX( DISTINCT 26 ) + 32 * - 6
----
276

skipif mysql # not compatible
query I rowsort label-2500
SELECT 18 * + MAX ( DISTINCT 26 ) + 32 * - 6
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT + COUNT( * ) DIV NULLIF ( + - 11, + - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT + COUNT ( * ) / NULLIF ( + - 11, + - 64 )
----
0

query II rowsort
SELECT - 25 * - 99 AS col2, 15
----
2475
15

query I rowsort
SELECT DISTINCT ( - + 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2504
SELECT DISTINCT 43 * + 27 * - 89, 12 + SUM( + + 63 ) AS col1
----
-103329
75

skipif mysql # not compatible
query II rowsort label-2504
SELECT DISTINCT 43 * + 27 * - 89, 12 + SUM ( + + 63 ) AS col1
----
-103329
75

query I rowsort
SELECT DISTINCT 60 * - + 37
----
-2220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2506
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2506
SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
NULL
1

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

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL - CAST ( NULL AS REAL ) / + 83
----
NULL

query I rowsort
SELECT - 90 + - - 47 + + 26 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), + ( - - COUNT( - + 70 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), + ( - - COUNT ( - + 70 ) ) )
----
1

query I rowsort
SELECT - 36 - + 30 + 78 * - 2
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT - 12 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT - 12 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 30 * + 91 * + 51 AS col1
----
-139230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2513
SELECT ALL + 11 + MIN( + - 11 ) * + CASE - - CAST( NULL AS DECIMAL ) WHEN + MAX( 63 ) THEN + - COALESCE ( - MIN( - + 43 ), 37 ) / CAST( - 59 AS SIGNED ) + - 29 - + COUNT( * ) * - + 46 + - - COUNT( * ) ELSE NULL END + + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL + 11 + MIN ( + - 11 ) * + CASE - - CAST ( NULL AS REAL ) WHEN + MAX ( 63 ) THEN + - COALESCE ( - MIN ( - + 43 ), 37 ) / CAST ( - 59 AS INTEGER ) + - 29 - + COUNT ( * ) * - + 46 + - - COUNT ( * ) ELSE NULL END + + 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL - 56 + - MIN( ALL + 38 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - 56 + - MIN ( ALL + 38 ) AS col0
----
-94

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

query I rowsort
SELECT - - 75 - + + 5 col1
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT DISTINCT - MAX( DISTINCT NULLIF ( - NULLIF ( - 65, - + 6 ), 25 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT - MAX ( DISTINCT NULLIF ( - NULLIF ( - 65, - + 6 ), 25 ) )
----
-65

query II rowsort
SELECT - 68 * 96 col0, - 31 AS col0
----
-6528
-31

query I rowsort
SELECT 8 + + 67
----
75

query I rowsort
SELECT DISTINCT 65 - - NULLIF ( + 16, - 37 ) AS col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + CASE + 43 WHEN 57 + - MIN( - - 98 ) THEN - + 13 + + - MIN( 65 ) ELSE 89 END AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2523
SELECT + CASE + 43 WHEN 57 + - MIN ( - - 98 ) THEN - + 13 + + - MIN ( 65 ) ELSE 89 END AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL ( + 22 ) * + 17 - + SUM( - 7 ) + - - COUNT( * ) * - + 67 * - - 61 AS col1
----
-3706

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL ( + 22 ) * + 17 - + SUM ( - 7 ) + - - COUNT ( * ) * - + 67 * - - 61 AS col1
----
-3706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL - CAST( + + 18 AS SIGNED ) * - MAX( 22 )
----
396

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - CAST ( + + 18 AS INTEGER ) * - MAX ( 22 )
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-2526
SELECT DISTINCT - COUNT( * ) * 65 AS col1, 7 AS col0
----
-65
7

skipif mysql # not compatible
query II rowsort label-2526
SELECT DISTINCT - COUNT ( * ) * 65 AS col1, 7 AS col0
----
-65
7

query I rowsort
SELECT 80 * - 47 * - 94 * - 14 AS col0
----
-4948160

query II rowsort
SELECT 67 - 38, + ( NULLIF ( + 35, + + 31 ) ) * - 99 + + 36 + + 21 AS col0
----
29
-3408

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

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

query I rowsort
SELECT - 24 + 86 col0
----
62

query I rowsort
SELECT 85 * 33
----
2805

query II rowsort
SELECT 97 AS col2, + 51
----
97
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT 50 * + 2 - 0 * 51 DIV - 63
----
100

skipif mysql # not compatible
query I rowsort label-2534
SELECT 50 * + 2 - 0 * 51 / - 63
----
100

query I rowsort
SELECT DISTINCT 19 + + 83 AS col1
----
102

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

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

query I rowsort
SELECT ALL 54 + + 86 AS col0
----
140

query I rowsort
SELECT 4 + 60
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT - 4, - SUM( + 4 ) + + - 36 col1
----
-4
-40

skipif mysql # not compatible
query II rowsort label-2539
SELECT - 4, - SUM ( + 4 ) + + - 36 col1
----
-4
-40

query I rowsort
SELECT 49 - - 34 AS col0
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL + 24 + - - 33 + MAX( - 15 ) - - 36 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + 24 + - - 33 + MAX ( - 15 ) - - 36 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT 39 * + + CAST( - + SUM( 16 ) AS SIGNED )
----
-624

skipif mysql # not compatible
query I rowsort label-2543
SELECT 39 * + + CAST ( - + SUM ( 16 ) AS INTEGER )
----
-624

query I rowsort
SELECT DISTINCT 47 * + + 89 AS col2
----
4183

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT ( + - 99 ) + COUNT( * ) * + 18
----
-81

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT ( + - 99 ) + COUNT ( * ) * + 18
----
-81

query II rowsort
SELECT ALL 24, 98 * - 18 * - 62 AS col1
----
24
109368

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2547
SELECT ALL 82 + COUNT( * ) + 76 + - - 18 DIV + 97 * - ( + - COUNT( * ) ) + - - 40 col0, + 43 * + - 72
----
199
-3096

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL 82 + COUNT ( * ) + 76 + - - 18 / + 97 * - ( + - COUNT ( * ) ) + - - 40 col0, + 43 * + - 72
----
199
-3096

query I rowsort
SELECT ALL + ( - - 33 ) + 29 AS col0
----
62

query I rowsort
SELECT 87 + + 49 AS col0
----
136

query I rowsort
SELECT - ( + ( 47 ) ) col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT COUNT( * ) + + 64 * 92 + + 43
----
5932

skipif mysql # not compatible
query I rowsort label-2551
SELECT COUNT ( * ) + + 64 * 92 + + 43
----
5932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT - 54 * - - 16 * - - ( ( + NULLIF ( + - NULLIF ( - 78, - 47 ), - 66 ) ) ) + - 94 - + ( NULLIF ( + 56, - 37 ) ) + - + 51 * + + 40 + - CAST( - - ( - 66 ) AS SIGNED ) + - MAX( DISTINCT - 7 ) + COUNT( * ) AS col1
----
-69508

skipif mysql # not compatible
query I rowsort label-2552
SELECT - 54 * - - 16 * - - ( ( + NULLIF ( + - NULLIF ( - 78, - 47 ), - 66 ) ) ) + - 94 - + ( NULLIF ( + 56, - 37 ) ) + - + 51 * + + 40 + - CAST ( - - ( - 66 ) AS INTEGER ) + - MAX ( DISTINCT - 7 ) + COUNT ( * ) AS col1
----
-69508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + ( - COALESCE ( + - 76, + 36 * - 25 + - - 80 * + 15 * 32 + 35 ) ) + + + 21 - - + COUNT( * ) + + ( - 73 ) * - 31 + - 74 * + 86 + + - 55 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + ( - COALESCE ( + - 76, + 36 * - 25 + - - 80 * + 15 * 32 + 35 ) ) + + + 21 - - + COUNT ( * ) + + ( - 73 ) * - 31 + - 74 * + 86 + + - 55 * - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - 41 + - + CASE - 71 WHEN + 50 + + 87 THEN NULL WHEN + - 34 * - - 93 THEN + - 8 * COUNT( * ) * - COUNT( - 92 ) + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - 41 + - + CASE - 71 WHEN + 50 + + 87 THEN NULL WHEN + - 34 * - - 93 THEN + - 8 * COUNT ( * ) * - COUNT ( - 92 ) + 38 END AS col2
----
NULL

query I rowsort
SELECT ALL + - 71 * + ( - 70 ) AS col2
----
4970

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT DISTINCT - + 8 - + CASE - 87 WHEN - 26 - - 24 + 81 THEN NULL ELSE + - NULLIF ( 12, - 36 * + 96 - - 31 ) END col1, ( + + 81 ) * 68 + + CAST( NULL AS SIGNED ) AS col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT DISTINCT - + 8 - + CASE - 87 WHEN - 26 - - 24 + 81 THEN NULL ELSE + - NULLIF ( 12, - 36 * + 96 - - 31 ) END col1, ( + + 81 ) * 68 + + CAST ( NULL AS INTEGER ) AS col2
----
4
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2557
SELECT DISTINCT + 89 * - COALESCE ( 8, 41 * - + 95 ) * 82 + + 80 + - - 17 + + + 25 + ( + 67 ) AS col1, - COUNT( * ) DIV - 31 DIV - - 1 AS col2
----
-58195
0

skipif mysql # not compatible
query II rowsort label-2557
SELECT DISTINCT + 89 * - COALESCE ( 8, 41 * - + 95 ) * 82 + + 80 + - - 17 + + + 25 + ( + 67 ) AS col1, - COUNT ( * ) / - 31 / - - 1 AS col2
----
-58195
0

query I rowsort
SELECT DISTINCT - NULLIF ( - 74, 26 )
----
74

query I rowsort
SELECT DISTINCT - - CASE - - 23 WHEN 54 THEN + - 80 WHEN 17 + - ( + ( ( + 25 ) ) ) THEN NULL END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT SUM( - 38 ) DIV - + 20 - - 96
----
97

skipif mysql # not compatible
query I rowsort label-2562
SELECT SUM ( - 38 ) / - + 20 - - 96
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2563
SELECT COUNT( * ) + + CASE 60 WHEN + CAST( - NULLIF ( 99, - 28 - + 78 - + + 5 ) AS SIGNED ) THEN - 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT COUNT ( * ) + + CASE 60 WHEN + CAST ( - NULLIF ( 99, - 28 - + 78 - + + 5 ) AS INTEGER ) THEN - 91 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + + 8 ) * - + 16 AS col2
----
-128

query I rowsort
SELECT DISTINCT + 73 + + + 41 * - 23
----
-870

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

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

query I rowsort
SELECT NULLIF ( + 36, - 45 / + 46 + 76 + + 58 ) + 96 - 81
----
51

query I rowsort
SELECT DISTINCT ( - + 9 ) * + 69 AS col1
----
-621

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT NULLIF ( - - 6, - 39 * + 18 DIV + 19 * + 1 + - - AVG ( DISTINCT + 1 ) + - + 2 ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT NULLIF ( - - 6, - 39 * + 18 / + 19 * + 1 + - - AVG ( DISTINCT + 1 ) + - + 2 ) / - 39
----
0

query I rowsort
SELECT 49 + + - 95 AS col1
----
-46

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

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

query II rowsort
SELECT ALL + 83 * + 99, 77 col1
----
8217
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL - COALESCE ( 96, + - 56, - + 63 * 75, 9 ) + + 69 * CASE - 90 WHEN SUM( DISTINCT - ( - 34 ) ) THEN + 92 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - COALESCE ( 96, + - 56, - + 63 * 75, 9 ) + + 69 * CASE - 90 WHEN SUM ( DISTINCT - ( - 34 ) ) THEN + 92 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 45 + - + 3
----
42

query I rowsort
SELECT DISTINCT 6 + 9 + + 52
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT ALL + 61 * + 49 + COUNT( * ) * + 41 col1, 46 AS col0
----
3030
46

skipif mysql # not compatible
query II rowsort label-2577
SELECT ALL + 61 * + 49 + COUNT ( * ) * + 41 col1, 46 AS col0
----
3030
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT - CAST( - - 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-2578
SELECT - CAST ( - - 73 AS INTEGER )
----
-73

query I rowsort
SELECT - 32 + - - NULLIF ( - 13, 40 ) + + - ( ( + 94 ) ) * 21
----
-2019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2580
SELECT ALL + - 48 - + - NULLIF ( COALESCE ( + 63, + - 53 DIV - COALESCE ( - - 12, 38 * COUNT( * ) * 70 ) DIV 48 + - ( + COUNT( * ) ) + + ( - - 8 ) - + - 34 * + 59 * + - SUM( DISTINCT - 34 ) - 73 * - + CAST( NULL AS SIGNED ) * + COALESCE ( - 41, ( + 98 ) * 31 * ( - 99 ), - - 59 ) ), 85 ) + - 6 * + 26 * - 87 AS col1
----
13587

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL + - 48 - + - NULLIF ( COALESCE ( + 63, + - 53 / - COALESCE ( - - 12, 38 * COUNT ( * ) * 70 ) / 48 + - ( + COUNT ( * ) ) + + ( - - 8 ) - + - 34 * + 59 * + - SUM ( DISTINCT - 34 ) - 73 * - + CAST ( NULL AS INTEGER ) * + COALESCE ( - 41, ( + 98 ) * 31 * ( - 99 ), - - 59 ) ), 85 ) + - 6 * + 26 * - 87 AS col1
----
13587

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL 59 * COUNT( * ) * + 75 * 61 * + MAX( + 14 ) AS col1
----
3778950

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL 59 * COUNT ( * ) * + 75 * 61 * + MAX ( + 14 ) AS col1
----
3778950

query II rowsort
SELECT + 99 + 88, - 96 AS col1
----
187
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT COALESCE ( - 88, + - COUNT( * ), - 15 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT COALESCE ( - 88, + - COUNT ( * ), - 15 ) AS col2
----
-88

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

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + COUNT ( + 77 ) * + 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL 86 * + + MIN( ALL + 98 ) AS col1
----
8428

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL 86 * + + MIN ( ALL + 98 ) AS col1
----
8428

query I rowsort
SELECT - - 40 * + 50
----
2000

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

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - COUNT ( * ) / + 8 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL + ( + CASE - 7 WHEN - 55 THEN NULL WHEN - 75 * COUNT( * ) THEN NULL ELSE - - 93 END ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + ( + CASE - 7 WHEN - 55 THEN NULL WHEN - 75 * COUNT ( * ) THEN NULL ELSE - - 93 END ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2589
SELECT + CAST( 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-2589
SELECT + CAST ( 67 AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - 27 / 17 + - + CASE - + 57 WHEN + SUM( + 94 ) THEN NULL WHEN + 25 * + 94 THEN + 23 END * + MAX( + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT - 27 / 17 + - + CASE - + 57 WHEN + SUM ( + 94 ) THEN NULL WHEN + 25 * + 94 THEN + 23 END * + MAX ( + 55 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2591
SELECT - CASE - MIN( + + 61 ) WHEN + ( - 52 ) * COUNT( * ) THEN CAST( NULL AS SIGNED ) WHEN - - 52 / + - 52 * + COUNT( * ) THEN NULL END + - 84 + + + 62 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT - CASE - MIN ( + + 61 ) WHEN + ( - 52 ) * COUNT ( * ) THEN CAST ( NULL AS INTEGER ) WHEN - - 52 / + - 52 * + COUNT ( * ) THEN NULL END + - 84 + + + 62 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT + - COALESCE ( + 70, + COALESCE ( - 22, - 86 DIV - + 34, - + 30 DIV + 25 * + + 90, + 87 ) * 54, + + 26 + - 2 )
----
-70

skipif mysql # not compatible
query I rowsort label-2592
SELECT + - COALESCE ( + 70, + COALESCE ( - 22, - 86 / - + 34, - + 30 / + 25 * + + 90, + 87 ) * 54, + + 26 + - 2 )
----
-70

query I rowsort
SELECT - + 4 * + 49
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2594
SELECT - CAST( + CASE 32 WHEN + + 21 THEN + - 52 END AS SIGNED ) * + 12 - - COUNT( * ) + - 63 + ( - 49 ) + + + 28 * - + 9, 9 AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-2594
SELECT - CAST ( + CASE 32 WHEN + + 21 THEN + - 52 END AS INTEGER ) * + 12 - - COUNT ( * ) + - 63 + ( - 49 ) + + + 28 * - + 9, 9 AS col2
----
NULL
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2595
SELECT DISTINCT ( 97 ) * + - 77 + COALESCE ( - MAX( - 22 ), - + 52 + + 1, - - 45 ) * 89 + + 82 - + 10 DIV + ( ( - - 60 ) ) AS col2
----
-5429

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT ( 97 ) * + - 77 + COALESCE ( - MAX ( - 22 ), - + 52 + + 1, - - 45 ) * 89 + + 82 - + 10 / + ( ( - - 60 ) ) AS col2
----
-5429

query I rowsort
SELECT ALL + 21 * + 66 * + + 37 + 79
----
51361

query I rowsort
SELECT - 73 * 83 AS col1
----
-6059

query I rowsort
SELECT DISTINCT - 88 * 42 + - + 8 AS col0
----
-3704

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL - COALESCE ( + 4, 48 * - COALESCE ( - 1, - + COUNT( * ) ) + + - 85 * - 69 + - 83 + + + COUNT( 97 ) ) * + COUNT( * ) + + MAX( + 9 )
----
5

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - COALESCE ( + 4, 48 * - COALESCE ( - 1, - + COUNT ( * ) ) + + - 85 * - 69 + - 83 + + + COUNT ( 97 ) ) * + COUNT ( * ) + + MAX ( + 9 )
----
5

query I rowsort
SELECT - 37 + + - NULLIF ( + - 80, + 32 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2601
SELECT - COUNT( * ) * + + 84 * CASE - + 64 WHEN 13 / - 49 THEN - CAST( NULL AS SIGNED ) WHEN + + 6 * - 90 - + 28 THEN - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT - COUNT ( * ) * + + 84 * CASE - + 64 WHEN 13 / - 49 THEN - CAST ( NULL AS INTEGER ) WHEN + + 6 * - 90 - + 28 THEN - + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT - 13 + CAST( - - 34 AS SIGNED ) * + 10 AS col1
----
327

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 13 + CAST ( - - 34 AS INTEGER ) * + 10 AS col1
----
327

query II rowsort
SELECT + 97, + 50 AS col2
----
97
50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2604
SELECT + ( - 48 ) * - - 31 / + - CAST( NULL AS DECIMAL ) * 49 AS col2, - 15 - + + 33
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-2604
SELECT + ( - 48 ) * - - 31 / + - CAST ( NULL AS REAL ) * 49 AS col2, - 15 - + + 33
----
NULL
-48

query I rowsort
SELECT - 7 * - + 60 col0
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL + SUM( ALL + NULLIF ( - + 74, + + 10 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL + SUM ( ALL + NULLIF ( - + 74, + + 10 ) )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2607
SELECT DISTINCT - COUNT( * ) * - + CAST( COUNT( * ) AS SIGNED ) * + COALESCE ( + + 48, + + ( + 43 ) ) + COUNT( * ) + COUNT( - - 23 ) AS col1, + 41 + + 28
----
50
69

skipif mysql # not compatible
query II rowsort label-2607
SELECT DISTINCT - COUNT ( * ) * - + CAST ( COUNT ( * ) AS INTEGER ) * + COALESCE ( + + 48, + + ( + 43 ) ) + COUNT ( * ) + COUNT ( - - 23 ) AS col1, + 41 + + 28
----
50
69

query II rowsort
SELECT ALL + 10 AS col1, 25
----
10
25

query I rowsort
SELECT ALL 54 * - 66
----
-3564

query I rowsort
SELECT - 59 - - 16 + - - 32 - + 47
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL + 1 * - MIN( DISTINCT - 23 ) - CASE - 97 WHEN + 58 THEN + + 54 END * + 2 * SUM( ALL - 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL + 1 * - MIN ( DISTINCT - 23 ) - CASE - 97 WHEN + 58 THEN + + 54 END * + 2 * SUM ( ALL - 80 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + COUNT( * ) + + 76 * - COUNT( * ) * - 11
----
837

skipif mysql # not compatible
query I rowsort label-2612
SELECT + COUNT ( * ) + + 76 * - COUNT ( * ) * - 11
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL 47 - - NULLIF ( - 24, + 87 * - + ( - ( + COUNT( * ) ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL 47 - - NULLIF ( - 24, + 87 * - + ( - ( + COUNT ( * ) ) ) )
----
23

query I rowsort
SELECT ALL - 98 * - 31 AS col1
----
3038

query I rowsort
SELECT - 23 + + CASE + + 50 WHEN - 95 / + 45 THEN 96 / + 6 - + + 4 WHEN - + 41 THEN - 41 END * + + 33 * 88 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT + 29 DIV + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT + 29 / + 44 AS col0
----
0

query I rowsort
SELECT + ( + 70 ) - + 1 AS col0
----
69

query II rowsort
SELECT - 96 AS col2, 86
----
-96
86

query I rowsort
SELECT + 34 - - 59
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL 4 - MIN( DISTINCT - + 19 )
----
23

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL 4 - MIN ( DISTINCT - + 19 )
----
23

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT + 1 + + ( - SUM( + 9 ) ) - 16 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2623
SELECT + 1 + + ( - SUM ( + 9 ) ) - 16 AS col2
----
-24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT + CAST( + 37 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2625
SELECT + CAST ( + 37 AS INTEGER ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT - NULLIF ( + COUNT( + 46 ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT - NULLIF ( + COUNT ( + 46 ), + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT + - 94 * 32 + - 12 + 64
----
-2956

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT + COUNT( ALL - + 11 ) + + NULLIF ( + COUNT( * ), - + 68 * - 6 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2628
SELECT + COUNT ( ALL - + 11 ) + + NULLIF ( + COUNT ( * ), - + 68 * - 6 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT - CAST( - + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-2629
SELECT - CAST ( - + 38 AS INTEGER )
----
38

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

query I rowsort
SELECT + 76 + 60 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - 50 + + CASE ( - COUNT( * ) ) WHEN + SUM( DISTINCT + 10 ) THEN NULL WHEN 89 + COUNT( * ) + - 36 THEN NULL WHEN 85 + + + 38 * - 61 THEN - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 50 + + CASE ( - COUNT ( * ) ) WHEN + SUM ( DISTINCT + 10 ) THEN NULL WHEN 89 + COUNT ( * ) + - 36 THEN NULL WHEN 85 + + + 38 * - 61 THEN - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT + MAX( - ( + 17 ) ) + + 25 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2633
SELECT + MAX ( - ( + 17 ) ) + + 25 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT DISTINCT + ( - 53 ) / + 91 - CAST( NULL AS SIGNED ) + - + 45 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT + ( - 53 ) / + 91 - CAST ( NULL AS INTEGER ) + - + 45 * - 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2635
SELECT + 20 DIV 89 + 20 * - 72 * 49 AS col1, 61 * COUNT( * ) * - + 40
----
-70560
-2440

skipif mysql # not compatible
query II rowsort label-2635
SELECT + 20 / 89 + 20 * - 72 * 49 AS col1, 61 * COUNT ( * ) * - + 40
----
-70560
-2440

query I rowsort
SELECT - 49 + 44 AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2637
SELECT ALL + 61 DIV + 12 + 26
----
31

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + 61 / + 12 + 26
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2638
SELECT ALL - 0 DIV - COUNT( * ) + 41 * + 81
----
3321

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL - 0 / - COUNT ( * ) + 41 * + 81
----
3321

query I rowsort
SELECT - 43 - + 49
----
-92

query II rowsort
SELECT + 14 + - + 61, - 14 AS col0
----
-47
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT ALL - 84 DIV - 83 + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL - 84 / - 83 + 32 AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2642
SELECT ALL - CAST( NULL AS SIGNED ) / SUM( + 63 ) * - - 22 AS col0, - 20 * + 10
----
NULL
-200

skipif mysql # not compatible
query II rowsort label-2642
SELECT ALL - CAST ( NULL AS INTEGER ) / SUM ( + 63 ) * - - 22 AS col0, - 20 * + 10
----
NULL
-200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2643
SELECT ( - 60 ) AS col2, - 23 * - CAST( NULL AS SIGNED )
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-2643
SELECT ( - 60 ) AS col2, - 23 * - CAST ( NULL AS INTEGER )
----
-60
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT DISTINCT - 90 * - + AVG ( DISTINCT + 38 ) - CAST( NULL AS SIGNED ) * + 68 * + 16 * + 87 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT - 90 * - + AVG ( DISTINCT + 38 ) - CAST ( NULL AS INTEGER ) * + 68 * + 16 * + 87 * 83
----
NULL

query I rowsort
SELECT - 73 * 67 * - 21 + - ( 24 ) col0
----
102687

query I rowsort
SELECT DISTINCT - 38 * + ( + ( 83 ) )
----
-3154

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2649
SELECT ALL - 93 - COUNT( * ) AS col1, + 49
----
-94
49

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL - 93 - COUNT ( * ) AS col1, + 49
----
-94
49

query I rowsort
SELECT 64 * + 96 * 74
----
454656

query I rowsort
SELECT ALL - 20 * 14 * - 53 col2
----
14840

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

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

query I rowsort
SELECT 45 + 57
----
102

query I rowsort
SELECT 54 * 11
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT 90 * COALESCE ( - - COUNT( - 17 ), + 99 * 84 + + - 6 + - - NULLIF ( + 72, - 25 ), - 69 ) * - 61 * - 19 AS col0
----
104310

skipif mysql # not compatible
query I rowsort label-2655
SELECT 90 * COALESCE ( - - COUNT ( - 17 ), + 99 * 84 + + - 6 + - - NULLIF ( + 72, - 25 ), - 69 ) * - 61 * - 19 AS col0
----
104310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT + COALESCE ( - + 48, + 69 - + 43 + CASE 57 WHEN 86 THEN + - 34 * + 82 + + 8 - - 51 DIV + 32 DIV - 13 DIV + NULLIF ( - 70, + - 69 + 14 * + MAX( + 14 ) * - 28 DIV + 82 + - 38 ) * + 77 ELSE NULL END * + + 72 + MIN( 32 ) * 99 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2656
SELECT + COALESCE ( - + 48, + 69 - + 43 + CASE 57 WHEN 86 THEN + - 34 * + 82 + + 8 - - 51 / + 32 / - 13 / + NULLIF ( - 70, + - 69 + 14 * + MAX ( + 14 ) * - 28 / + 82 + - 38 ) * + 77 ELSE NULL END * + + 72 + MIN ( 32 ) * 99 ) AS col1
----
-48

query II rowsort
SELECT ALL 25 col1, 35 - 32 + - 37 * + 20
----
25
-737

query II rowsort
SELECT DISTINCT 47 AS col0, 33
----
47
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2659
SELECT 62 + + + 11 * - 41 - + 58 AS col2, + CAST( NULL AS SIGNED ) * - 68 * - 14 / - 94 - - COALESCE ( + 51, 56 / - + 66 + + 11 ) AS col1
----
-447
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT 62 + + + 11 * - 41 - + 58 AS col2, + CAST ( NULL AS INTEGER ) * - 68 * - 14 / - 94 - - COALESCE ( + 51, 56 / - + 66 + + 11 ) AS col1
----
-447
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT - COALESCE ( + 74, - NULLIF ( - - 5, - COUNT( * ) + - 38 ) ) AS col2, 76
----
-74
76

skipif mysql # not compatible
query II rowsort label-2660
SELECT - COALESCE ( + 74, - NULLIF ( - - 5, - COUNT ( * ) + - 38 ) ) AS col2, 76
----
-74
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2661
SELECT ALL - 21 AS col0, + COUNT( * ) + - 57 AS col0
----
-21
-56

skipif mysql # not compatible
query II rowsort label-2661
SELECT ALL - 21 AS col0, + COUNT ( * ) + - 57 AS col0
----
-21
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT DISTINCT - 51 DIV COALESCE ( - 12, + + ( + + ( 38 ) ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - 51 / COALESCE ( - 12, + + ( + + ( 38 ) ) ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL + MIN( DISTINCT + - 11 ) + MAX( + - 61 )
----
-72

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + MIN ( DISTINCT + - 11 ) + MAX ( + - 61 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2664
SELECT - NULLIF ( + 17, 56 / + 4 * + COUNT( * ) ) / - CAST( NULL AS SIGNED ) + - 59 + ( - 1 ) AS col0, - COALESCE ( + COUNT( * ), + 51 + - 26, + CAST( - 96 AS SIGNED ) ) / + - COUNT( * ) + - CAST( NULL AS SIGNED ) * + 28 + + - 96
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2664
SELECT - NULLIF ( + 17, 56 / + 4 * + COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + - 59 + ( - 1 ) AS col0, - COALESCE ( + COUNT ( * ), + 51 + - 26, + CAST ( - 96 AS INTEGER ) ) / + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 28 + + - 96
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN + - 73 - 42 + COALESCE ( 78, - + 24 + + + 58 + - + CAST( NULL AS SIGNED ) ) THEN COUNT( + 86 ) + - COUNT( * ) END * - 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN + - 73 - 42 + COALESCE ( 78, - + 24 + + + 58 + - + CAST ( NULL AS INTEGER ) ) THEN COUNT ( + 86 ) + - COUNT ( * ) END * - 16 col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 27 + + 51 + - 29 * + 81 * - - 15 + - - 63 + + 95 AS col0
----
-34999

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT - NULLIF ( 4, NULLIF ( 15, COUNT( * ) * - + 3 + + 86 + + 13 - - 58 + - 36 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2668
SELECT - NULLIF ( 4, NULLIF ( 15, COUNT ( * ) * - + 3 + + 86 + + 13 - - 58 + - 36 ) )
----
-4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2670
SELECT ALL + 77 + ( COALESCE ( - 38, + AVG ( - 32 ) DIV - 58, + COUNT( * ) ) ) + 46 * + NULLIF ( - ( + + ( + + 17 ) ), 70 DIV - - 75 ) - - + 22 AS col0
----
-721

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + 77 + ( COALESCE ( - 38, + AVG ( - 32 ) / - 58, + COUNT ( * ) ) ) + 46 * + NULLIF ( - ( + + ( + + 17 ) ), 70 / - - 75 ) - - + 22 AS col0
----
-721

query II rowsort
SELECT ALL - 69 AS col0, + 80 AS col2
----
-69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT DISTINCT COUNT( DISTINCT + 24 ) + 51 * + 32 * + - 19 + + 81 * + 43 col1
----
-27524

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT COUNT ( DISTINCT + 24 ) + 51 * + 32 * + - 19 + + 81 * + 43 col1
----
-27524

query I rowsort
SELECT ALL 93 + 89 AS col2
----
182

query I rowsort
SELECT DISTINCT 91 + 81 * + 89
----
7300

query I rowsort
SELECT ALL 26 - 25
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT 55 - + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT 55 - + COUNT ( * ) AS col2
----
54

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

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

query II rowsort
SELECT ALL 78 * + 20 AS col1, 12
----
1560
12

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

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

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

skipif mysql # not compatible
query I rowsort label-2680
SELECT - COUNT ( * ) / + - 28 - + MIN ( + 7 )
----
-7

query I rowsort
SELECT 38 + 33
----
71

query I rowsort
SELECT - 43 * + - 76 + 91
----
3359

query I rowsort
SELECT 90 * + 19
----
1710

onlyif mysql # DIV for integer division: 
query II rowsort label-2684
SELECT DISTINCT ( 3 ) DIV + 91 AS col1, + 74 AS col0
----
0
74

skipif mysql # not compatible
query II rowsort label-2684
SELECT DISTINCT ( 3 ) / + 91 AS col1, + 74 AS col0
----
0
74

query I rowsort
SELECT ALL - COALESCE ( - 18, 59 ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2686
SELECT 73 - COUNT( * ) DIV 31 * + 65 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2686
SELECT 73 - COUNT ( * ) / 31 * + 65 AS col0
----
73

query I rowsort
SELECT ( 65 ) + + 51 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL - - 29 * MAX( + ( + 59 ) )
----
1711

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL - - 29 * MAX ( + ( + 59 ) )
----
1711

query I rowsort
SELECT ALL - 22 + - 79 - - 86
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT + - 13 * COUNT( * ) + + - 34 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2690
SELECT + - 13 * COUNT ( * ) + + - 34 AS col0
----
-47

query I rowsort
SELECT - + NULLIF ( + 35, - 21 ) AS col2
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT ALL - 72 * NULLIF ( - 4, + COALESCE ( 74, - + COUNT( * ) DIV 1 * ( + ( + - 18 ) ) ) - 93 ) DIV + - COUNT( * ) - NULLIF ( + - 68, + 97 ) - 65 - + - 31 * + - 75 AS col0
----
-2610

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 72 * NULLIF ( - 4, + COALESCE ( 74, - + COUNT ( * ) / 1 * ( + ( + - 18 ) ) ) - 93 ) / + - COUNT ( * ) - NULLIF ( + - 68, + 97 ) - 65 - + - 31 * + - 75 AS col0
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT 56 * + SUM( - + 58 )
----
-3248

skipif mysql # not compatible
query I rowsort label-2694
SELECT 56 * + SUM ( - + 58 )
----
-3248

onlyif mysql # aggregate syntax: 
query II rowsort label-2695
SELECT 15 - - + 68, COUNT( * ) * + 65 col1
----
83
65

skipif mysql # not compatible
query II rowsort label-2695
SELECT 15 - - + 68, COUNT ( * ) * + 65 col1
----
83
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT ALL - COUNT( ALL + + 45 ) col1, + 73 AS col2
----
-1
73

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL - COUNT ( ALL + + 45 ) col1, + 73 AS col2
----
-1
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT + NULLIF ( 13, 88 - - 62 ) + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2698
SELECT + NULLIF ( 13, 88 - - 62 ) + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT MAX( - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2699
SELECT MAX ( - 99 ) AS col1
----
-99

query I rowsort
SELECT ALL + - 69 * - 91 AS col2
----
6279

query I rowsort
SELECT 52 + - NULLIF ( 4, + 82 ) * + + 59
----
-184

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

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 72
----
NULL

query II rowsort
SELECT 68, - 71 AS col1
----
68
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2704
SELECT ALL 30 AS col0, - 29 + - + COUNT( * ) - 18 * - 53 AS col0
----
30
924

skipif mysql # not compatible
query II rowsort label-2704
SELECT ALL 30 AS col0, - 29 + - + COUNT ( * ) - 18 * - 53 AS col0
----
30
924

query I rowsort
SELECT 29 + 62
----
91

query I rowsort
SELECT - 22 * 16 + - 77 AS col0
----
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL + COUNT( * ) * - 81 - + + COUNT( * ) * 20 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL + COUNT ( * ) * - 81 - + + COUNT ( * ) * 20 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT ALL - COUNT( * ) * 64 * - 58
----
3712

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - COUNT ( * ) * 64 * - 58
----
3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT DISTINCT - CAST( - 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT - CAST ( - 27 AS INTEGER )
----
27

query I rowsort
SELECT ALL ( + 57 ) * - 98 * 65 * + CASE - 29 WHEN + 15 THEN + 40 ELSE NULL END + - 54 + 45 - 95
----
NULL

query I rowsort
SELECT + 77 * - + COALESCE ( + 19, + 14 ) + 23 AS col1
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT 66 * - ( - MIN( 46 ) ) + - 77 AS col1
----
2959

skipif mysql # not compatible
query I rowsort label-2712
SELECT 66 * - ( - MIN ( 46 ) ) + - 77 AS col1
----
2959

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + MAX( DISTINCT - ( - 74 ) ) * + 36 * + ( - - COUNT( * ) )
----
2664

skipif mysql # not compatible
query I rowsort label-2714
SELECT + MAX ( DISTINCT - ( - 74 ) ) * + 36 * + ( - - COUNT ( * ) )
----
2664

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + MAX( + + 56 ) + - 57 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2715
SELECT + MAX ( + + 56 ) + - 57 AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + 94 / - COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL 8 * - + 11 + 86 * - 10 - MAX( ALL 10 ) col0
----
-958

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL 8 * - + 11 + 86 * - 10 - MAX ( ALL 10 ) col0
----
-958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2718
SELECT DISTINCT 35 * - CAST( - MIN( ALL + 49 ) AS SIGNED ) AS col2, NULLIF ( + - ( CAST( NULL AS SIGNED ) ), - + 52 ) * - + 77 AS col0
----
1715
NULL

skipif mysql # not compatible
query II rowsort label-2718
SELECT DISTINCT 35 * - CAST ( - MIN ( ALL + 49 ) AS INTEGER ) AS col2, NULLIF ( + - ( CAST ( NULL AS INTEGER ) ), - + 52 ) * - + 77 AS col0
----
1715
NULL

query II rowsort
SELECT - 65 col0, ( + 26 ) AS col2
----
-65
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL COUNT( * ) * + 68 + 48 + + 61 * + + 23 AS col1
----
1519

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL COUNT ( * ) * + 68 + 48 + + 61 * + + 23 AS col1
----
1519

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT + - 12 * 35 DIV - 16
----
26

skipif mysql # not compatible
query I rowsort label-2722
SELECT + - 12 * 35 / - 16
----
26

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + 18 * - COUNT( * ) + + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2725
SELECT + 18 * - COUNT ( * ) + + 18 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2726
SELECT DISTINCT - MIN( ALL + 54 ) DIV - - 95 AS col0, CASE - 67 WHEN 19 + 71 THEN NULL WHEN - NULLIF ( 44, - 53 * + ( + 2 ) ) THEN 46 * + ( - + 11 ) DIV - COUNT( * ) WHEN + - 1 + + + 53 THEN + - 65 * - + 35 - + CAST( NULL AS SIGNED ) ELSE + 85 * + 81 END AS col0
----
0
6885

skipif mysql # not compatible
query II rowsort label-2726
SELECT DISTINCT - MIN ( ALL + 54 ) / - - 95 AS col0, CASE - 67 WHEN 19 + 71 THEN NULL WHEN - NULLIF ( 44, - 53 * + ( + 2 ) ) THEN 46 * + ( - + 11 ) / - COUNT ( * ) WHEN + - 1 + + + 53 THEN + - 65 * - + 35 - + CAST ( NULL AS INTEGER ) ELSE + 85 * + 81 END AS col0
----
0
6885

query I rowsort
SELECT DISTINCT 82 + + 43 AS col1
----
125

query I rowsort
SELECT + 56 * + 71 AS col0
----
3976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT ALL NULLIF ( - 95, - - 22 ) DIV + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL NULLIF ( - 95, - - 22 ) / + + COUNT ( * )
----
-95

query I rowsort
SELECT ALL - 77 + - 29 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT - + CAST( - - 44 AS SIGNED ) + - 43
----
-87

skipif mysql # not compatible
query I rowsort label-2731
SELECT - + CAST ( - - 44 AS INTEGER ) + - 43
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL COUNT( - - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL COUNT ( - - 21 )
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-2734
SELECT - - 40 AS col2, 20 * - + COUNT( * ) * + 13 col2, - + 4 * - + 94 * ( + 86 ) AS col2
----
40
-260
32336

skipif mysql # not compatible
query III rowsort label-2734
SELECT - - 40 AS col2, 20 * - + COUNT ( * ) * + 13 col2, - + 4 * - + 94 * ( + 86 ) AS col2
----
40
-260
32336

query II rowsort
SELECT ALL + 83 AS col0, - 46
----
83
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT + - 11 * + SUM( 62 )
----
-682

skipif mysql # not compatible
query I rowsort label-2736
SELECT + - 11 * + SUM ( 62 )
----
-682

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

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

query I rowsort
SELECT - 28 + - 96
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT - + 56 * + 82 * + CAST( 9 AS SIGNED ) * - 32
----
1322496

skipif mysql # not compatible
query I rowsort label-2739
SELECT - + 56 * + 82 * + CAST ( 9 AS INTEGER ) * - 32
----
1322496

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT - 8 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT - 8 / - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT NULLIF ( + 59, MAX( ALL - 68 ) ) * 66 + - + 79
----
3815

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT NULLIF ( + 59, MAX ( ALL - 68 ) ) * 66 + - + 79
----
3815

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT - COUNT( * ) DIV 2 * + COALESCE ( - 39, 33 )
----
0

skipif mysql # not compatible
query I rowsort label-2742
SELECT - COUNT ( * ) / 2 * + COALESCE ( - 39, 33 )
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2745
SELECT DISTINCT + 79 DIV - 86 * ( 18 )
----
0

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + 79 / - 86 * ( 18 )
----
0

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

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

query I rowsort
SELECT - ( + 67 ) * + 31 * 12 * - 14 - - 79
----
349015

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - COUNT( * ) * 22 * - NULLIF ( + + ( + + 0 ), 78 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT - COUNT ( * ) * 22 * - NULLIF ( + + ( + + 0 ), 78 ) AS col2
----
0

query I rowsort
SELECT ALL + 61 * 25 AS col1
----
1525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2750
SELECT ALL COUNT( * ) DIV - + 97 * + COUNT( * ) * + SUM( 60 ) * + - 48 * - ( + + SUM( DISTINCT - 35 ) ) + 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL COUNT ( * ) / - + 97 * + COUNT ( * ) * + SUM ( 60 ) * + - 48 * - ( + + SUM ( DISTINCT - 35 ) ) + 79 AS col0
----
79

query I rowsort
SELECT ALL - 62 * + + 82
----
-5084

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT DISTINCT 4 DIV - 84 + 27 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT 4 / - 84 + 27 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2753
SELECT ALL 66 * - + MIN( + 21 ) * - 88 * - 71 + 95 + + 6 + + COUNT( DISTINCT - 14 ) DIV + 40 + 8
----
-8659619

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL 66 * - + MIN ( + 21 ) * - 88 * - 71 + 95 + + 6 + + COUNT ( DISTINCT - 14 ) / + 40 + 8
----
-8659619

query II rowsort
SELECT ( - - 88 ) AS col0, - 34
----
88
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT - + 41 + + 7 - SUM( ALL CAST( NULL AS SIGNED ) ) / + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT - + 41 + + 7 - SUM ( ALL CAST ( NULL AS INTEGER ) ) / + 11
----
NULL

query I rowsort
SELECT + 86 * + 74 * + + 50 + + 70 + 37
----
318307

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + SUM( ALL + + 23 ) * - 23 AS col2
----
-529

skipif mysql # not compatible
query I rowsort label-2757
SELECT + SUM ( ALL + + 23 ) * - 23 AS col2
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT + COUNT( DISTINCT - + 88 ) * + COUNT( * ) + + 81 * + 21 * - MIN( - 0 ) + + MIN( - 90 )
----
-89

skipif mysql # not compatible
query I rowsort label-2758
SELECT + COUNT ( DISTINCT - + 88 ) * + COUNT ( * ) + + 81 * + 21 * - MIN ( - 0 ) + + MIN ( - 90 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT - NULLIF ( + ( COUNT( * ) ), + 91 ) * 97 col2
----
-97

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - NULLIF ( + ( COUNT ( * ) ), + 91 ) * 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT CASE - - COALESCE ( + COALESCE ( + 69, - 41 * CASE + + ( 73 ) WHEN - 80 THEN + 30 WHEN + 61 * - + COUNT( * ) THEN NULL END + + 19, - 2 * + 70 + - + 35 + - COUNT( * ) + 48 * - 13 * COUNT( * ) ), - CASE + - 33 WHEN - 48 THEN - 30 + - - 30 ELSE + 55 END - + + 38 ) WHEN + ( + - 78 ) THEN + CASE - + COUNT( * ) WHEN + ( 78 ) - - - 14 - + + NULLIF ( + COUNT( * ), 52 * + 65 ) THEN + 40 + - - MAX( 19 ) ELSE NULL END - 6 WHEN - 2 * + 39 THEN 73 * + 42 WHEN 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT CASE - - COALESCE ( + COALESCE ( + 69, - 41 * CASE + + ( 73 ) WHEN - 80 THEN + 30 WHEN + 61 * - + COUNT ( * ) THEN NULL END + + 19, - 2 * + 70 + - + 35 + - COUNT ( * ) + 48 * - 13 * COUNT ( * ) ), - CASE + - 33 WHEN - 48 THEN - 30 + - - 30 ELSE + 55 END - + + 38 ) WHEN + ( + - 78 ) THEN + CASE - + COUNT ( * ) WHEN + ( 78 ) - - - 14 - + + NULLIF ( + COUNT ( * ), 52 * + 65 ) THEN + 40 + - - MAX ( 19 ) ELSE NULL END - 6 WHEN - 2 * + 39 THEN 73 * + 42 WHEN 27 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 78 * + 83
----
-6474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT ALL - 39 * ( CAST( + ( + 25 ) AS SIGNED ) ) - + ( - 72 )
----
-903

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - 39 * ( CAST ( + ( + 25 ) AS INTEGER ) ) - + ( - 72 )
----
-903

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT ALL - - 21 * 81 DIV - 56 - - 53 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - - 21 * 81 / - 56 - - 53 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT + - 40 + + 73 DIV - 59
----
-41

skipif mysql # not compatible
query I rowsort label-2764
SELECT + - 40 + + 73 / - 59
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT + - COALESCE ( 75, 52 * - 47 DIV - COUNT( * ) + - - 70 + - 27 ) * - 57
----
4275

skipif mysql # not compatible
query I rowsort label-2765
SELECT + - COALESCE ( 75, 52 * - 47 / - COUNT ( * ) + - - 70 + - 27 ) * - 57
----
4275

query I rowsort
SELECT + + 65 + + ( 5 )
----
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT DISTINCT CAST( MIN( ALL - + 70 ) AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT CAST ( MIN ( ALL - + 70 ) AS INTEGER ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT + 46 * - + 59 * ( - 57 ) * + 94 + - + 5 - COUNT( * ) * 47 * - 19 * - + 93
----
14458558

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT + 46 * - + 59 * ( - 57 ) * + 94 + - + 5 - COUNT ( * ) * 47 * - 19 * - + 93
----
14458558

onlyif mysql # DIV for integer division: 
query I rowsort label-2770
SELECT DISTINCT 32 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT 32 / - 89
----
0

query I rowsort
SELECT + 43 + + 70
----
113

query I rowsort
SELECT DISTINCT + 84 * 60
----
5040

query I rowsort
SELECT 58 * 95 AS col0
----
5510

query I rowsort
SELECT ( - - 14 ) + + 52
----
66

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

query I rowsort
SELECT ALL + 75 * 5 AS col0
----
375

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

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

query I rowsort
SELECT 83 * 8
----
664

query I rowsort
SELECT ALL - 3 + 84 AS col0
----
81

query I rowsort
SELECT 64 + + + 67 * + 25 AS col2
----
1739

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2781
SELECT DISTINCT - COUNT( * ) DIV - 22 * + 10 AS col1, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-2781
SELECT DISTINCT - COUNT ( * ) / - 22 * + 10 AS col1, - COUNT ( * )
----
0
-1

query I rowsort
SELECT ALL + 76 + 89
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT 83 + - - SUM( ALL + + 26 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-2783
SELECT 83 + - - SUM ( ALL + + 26 ) AS col2
----
109

query I rowsort
SELECT ALL + 3 + + 29 * 33 * - - ( - 18 ) + + ( - 23 ) AS col0
----
-17246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2785
SELECT 63 * COUNT( * ) DIV - CASE - + COUNT( * ) WHEN 28 THEN NULL WHEN 79 THEN NULL ELSE 97 END
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT 63 * COUNT ( * ) / - CASE - + COUNT ( * ) WHEN 28 THEN NULL WHEN 79 THEN NULL ELSE 97 END
----
0

query I rowsort
SELECT 99 * 93 AS col1
----
9207

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT DISTINCT - 31 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT - 31 / 60
----
0

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

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + 76 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT - 31 * + + 6 + + - NULLIF ( + 34, MIN( ALL + 24 ) )
----
-220

skipif mysql # not compatible
query I rowsort label-2789
SELECT - 31 * + + 6 + + - NULLIF ( + 34, MIN ( ALL + 24 ) )
----
-220

query I rowsort
SELECT ALL - - 55 * + + 14
----
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT DISTINCT + 43 + 66 + + 26 * - + CAST( - 35 AS SIGNED ) AS col2
----
1019

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + 43 + 66 + + 26 * - + CAST ( - 35 AS INTEGER ) AS col2
----
1019

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL - 85 + + SUM( DISTINCT - 52 )
----
-137

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - 85 + + SUM ( DISTINCT - 52 )
----
-137

query I rowsort
SELECT + 11 * - 50 AS col2
----
-550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL + - 42 + - MIN( CAST( + + 66 AS SIGNED ) )
----
-108

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL + - 42 + - MIN ( CAST ( + + 66 AS INTEGER ) )
----
-108

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - 41 * + NULLIF ( - - 25, - + NULLIF ( ( - MIN( ALL + + 39 ) ), + ( 70 ) ) + 31 / - 59 ) AS col1
----
-1025

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - 41 * + NULLIF ( - - 25, - + NULLIF ( ( - MIN ( ALL + + 39 ) ), + ( 70 ) ) + 31 / - 59 ) AS col1
----
-1025

query I rowsort
SELECT DISTINCT + 82 - 66 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT ALL + ( + + ( + 13 ) ) DIV - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + ( + + ( + 13 ) ) / - 38 AS col1
----
0

query I rowsort
SELECT ALL - COALESCE ( - 69, - 68 * + - 2 )
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT - MAX( + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - MAX ( + 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT ALL - - COALESCE ( - + ( - 5 ), 88 * - 95 DIV - - 90 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL - - COALESCE ( - + ( - 5 ), 88 * - 95 / - - 90 ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2803
SELECT 69 + - 64 + 59 + - CAST( - 63 AS SIGNED ) DIV + 44 + - - ( + 7 )
----
72

skipif mysql # not compatible
query I rowsort label-2803
SELECT 69 + - 64 + 59 + - CAST ( - 63 AS INTEGER ) / + 44 + - - ( + 7 )
----
72

query I rowsort
SELECT + 27 * - 54
----
-1458

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2805
SELECT DISTINCT + MAX( + ( + 21 ) ) * 92 DIV + 60, COUNT( * ) AS col1
----
32
1

skipif mysql # not compatible
query II rowsort label-2805
SELECT DISTINCT + MAX ( + ( + 21 ) ) * 92 / + 60, COUNT ( * ) AS col1
----
32
1

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

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

query I rowsort
SELECT ALL - 34 * + - 62
----
2108

query I rowsort
SELECT 49 * - - 18
----
882

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT ALL - + 58 DIV + - 28
----
2

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL - + 58 / + - 28
----
2

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

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

query I rowsort
SELECT 79 + ( + 63 ) + - + 12
----
130

query I rowsort
SELECT DISTINCT - - 33 * + 87 AS col0
----
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT - 77 + + MIN( 94 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2813
SELECT - 77 + + MIN ( 94 ) AS col0
----
17

query II rowsort
SELECT DISTINCT 73, 33 AS col2
----
73
33

query I rowsort
SELECT 58 * - 58 * + 6 AS col2
----
-20184

query I rowsort
SELECT 29 * 44 * - 41 * + 12
----
-627792

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

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

query I rowsort
SELECT DISTINCT 78 + + + 88 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT 42 + + MAX( - 55 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2819
SELECT 42 + + MAX ( - 55 ) AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT 48 DIV - 88 * 89
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT 48 / - 88 * 89
----
0

query I rowsort
SELECT ALL 13 + - 40 + + 55 AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT ALL 90, + MIN( + 32 ) AS col2
----
90
32

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL 90, + MIN ( + 32 ) AS col2
----
90
32

query II rowsort
SELECT 65 AS col1, + 51
----
65
51

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2825
SELECT 73, - 5 / - 77 + + ( 37 ) + + CASE - CAST( - 48 AS SIGNED ) WHEN + - 11 / 71 + 85 + 26 * - NULLIF ( + COUNT( 13 ), - CAST( 55 AS DECIMAL ) * - + 28 ) * + 64 * + 7 THEN 22 / 70 WHEN 48 THEN NULL END / - + 93 col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-2825
SELECT 73, - 5 / - 77 + + ( 37 ) + + CASE - CAST ( - 48 AS INTEGER ) WHEN + - 11 / 71 + 85 + 26 * - NULLIF ( + COUNT ( 13 ), - CAST ( 55 AS REAL ) * - + 28 ) * + 64 * + 7 THEN 22 / 70 WHEN 48 THEN NULL END / - + 93 col0
----
73
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2826
SELECT ALL 60 DIV 89 * + 70
----
0

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 60 / 89 * + 70
----
0

query I rowsort
SELECT ALL 65 + - 39
----
26

query I rowsort
SELECT ALL 77 + - 40
----
37

query I rowsort
SELECT ALL - 44 * + - ( + 60 ) * 82 AS col2
----
216480

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT 83 * NULLIF ( + 27, - + 26 + - ( COUNT( * ) ) * 89 * + 12 )
----
2241

skipif mysql # not compatible
query I rowsort label-2830
SELECT 83 * NULLIF ( + 27, - + 26 + - ( COUNT ( * ) ) * 89 * + 12 )
----
2241

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT ALL - COUNT( * ) + 93 col1, 88 AS col2
----
92
88

skipif mysql # not compatible
query II rowsort label-2831
SELECT ALL - COUNT ( * ) + 93 col1, 88 AS col2
----
92
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT - 60 AS col1, + NULLIF ( - CASE 92 WHEN 60 + + COUNT( * ) - - COALESCE ( + 12, 44, - - 20 / - + 53 + - + 39 + 17 * + AVG ( DISTINCT 71 ), + COUNT( ALL - 89 ) ) * 29 THEN - + 6 + - 56 ELSE NULL END, - 4 ) * + - NULLIF ( - + 67, + 11 ) * 67 * + + 96 + + - 50
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-2832
SELECT - 60 AS col1, + NULLIF ( - CASE 92 WHEN 60 + + COUNT ( * ) - - COALESCE ( + 12, 44, - - 20 / - + 53 + - + 39 + 17 * + AVG ( DISTINCT 71 ), + COUNT ( ALL - 89 ) ) * 29 THEN - + 6 + - 56 ELSE NULL END, - 4 ) * + - NULLIF ( - + 67, + 11 ) * 67 * + + 96 + + - 50
----
-60
NULL

query I rowsort
SELECT ALL 6 * 15
----
90

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

skipif mysql # not compatible
query I rowsort label-2834
SELECT 73 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2835
SELECT 8 * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT 8 * CAST ( NULL AS REAL ) col1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL + CASE + 15 WHEN COUNT( * ) + - + 63 THEN + - 41 * + + 93 / - 87 * - 37 * 69 + - + 17 / - 27 + 21 + + 4 * + COUNT( * ) END * COUNT( ALL - 20 ) * 5 + - + COALESCE ( - 50, - 8 / + 27, 32 ) * + 60 - + 98 * 16 + 72 + 46 * + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + CASE + 15 WHEN COUNT ( * ) + - + 63 THEN + - 41 * + + 93 / - 87 * - 37 * 69 + - + 17 / - 27 + 21 + + 4 * + COUNT ( * ) END * COUNT ( ALL - 20 ) * 5 + - + COALESCE ( - 50, - 8 / + 27, 32 ) * + 60 - + 98 * 16 + 72 + 46 * + - 94
----
NULL

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

query I rowsort
SELECT ALL - 45 * - 68 * + 32
----
97920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2841
SELECT ALL - + CASE - + 33 WHEN - 25 + - 57 THEN - 5 WHEN + ( - 27 ) + + 32 + CAST( 75 AS DECIMAL ) * - 24 + + 93 + 95 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL - + CASE - + 33 WHEN - 25 + - 57 THEN - 5 WHEN + ( - 27 ) + + 32 + CAST ( 75 AS REAL ) * - 24 + + 93 + 95 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2842
SELECT ALL - ( + 32 ) AS col2, 82 DIV - + 15 + 84
----
-32
79

skipif mysql # not compatible
query II rowsort label-2842
SELECT ALL - ( + 32 ) AS col2, 82 / - + 15 + 84
----
-32
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT ALL CASE + 97 WHEN - 39 THEN - - CAST( - + 33 AS SIGNED ) + - 64 WHEN ( 70 ) THEN NULL END * + + ( - 16 ) - - 2 * + + 45 * 43 * - 1 * - 31 * 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL CASE + 97 WHEN - 39 THEN - - CAST ( - + 33 AS INTEGER ) + - 64 WHEN ( 70 ) THEN NULL END * + + ( - 16 ) - - 2 * + + 45 * 43 * - 1 * - 31 * 37 AS col2
----
NULL

query II rowsort
SELECT + 40, - 27 col1
----
40
-27

query II rowsort
SELECT ALL - - COALESCE ( + + 0, CASE - 20 WHEN ( - 14 ) THEN - 10 * 61 END ) * + 68 AS col2, 17 * + + ( - - 55 ) + - 99
----
0
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2846
SELECT COUNT( * ) * CAST( + NULLIF ( + 79, + 60 ) AS SIGNED ) + 79 AS col2
----
158

skipif mysql # not compatible
query I rowsort label-2846
SELECT COUNT ( * ) * CAST ( + NULLIF ( + 79, + 60 ) AS INTEGER ) + 79 AS col2
----
158

query II rowsort
SELECT ALL - 35, + 29 AS col1
----
-35
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2848
SELECT ALL - + 35 * 20 AS col0, + COALESCE ( 91, - 42 * 31 * + CAST( 33 AS SIGNED ) - - - 40 ) AS col0
----
-700
91

skipif mysql # not compatible
query II rowsort label-2848
SELECT ALL - + 35 * 20 AS col0, + COALESCE ( 91, - 42 * 31 * + CAST ( 33 AS INTEGER ) - - - 40 ) AS col0
----
-700
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT COUNT( * ) - 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2849
SELECT COUNT ( * ) - 48 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT CAST( NULL AS SIGNED ) * MAX( 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT CAST ( NULL AS INTEGER ) * MAX ( 38 )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL + MIN( ALL 2 ) * - 18 * - - 59 AS col1
----
-2124

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + MIN ( ALL 2 ) * - 18 * - - 59 AS col1
----
-2124

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2854
SELECT DISTINCT + 35 * - 33 + + 44 DIV - + 22 - MIN( - COALESCE ( + ( - 4 ), + 70 ) ) + + MAX( ALL ( - - 37 ) ) + + 44 * - - 38 * + MAX( DISTINCT 74 ) * COUNT( * ) AS col1, 54 - + + 84 AS col1, - 12 AS col2
----
122604
-30
-12

skipif mysql # not compatible
query III rowsort label-2854
SELECT DISTINCT + 35 * - 33 + + 44 / - + 22 - MIN ( - COALESCE ( + ( - 4 ), + 70 ) ) + + MAX ( ALL ( - - 37 ) ) + + 44 * - - 38 * + MAX ( DISTINCT 74 ) * COUNT ( * ) AS col1, 54 - + + 84 AS col1, - 12 AS col2
----
122604
-30
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT ALL - - 31 * COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - - 31 * COUNT ( * ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT - CAST( + ( - 96 ) AS SIGNED ) * - - 78 AS col1
----
7488

skipif mysql # not compatible
query I rowsort label-2856
SELECT - CAST ( + ( - 96 ) AS INTEGER ) * - - 78 AS col1
----
7488

query I rowsort
SELECT - 66 + - - 39 + + 30
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL NULLIF ( - + MIN( DISTINCT + 80 ), + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL NULLIF ( - + MIN ( DISTINCT + 80 ), + COUNT ( * ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT - COUNT( 77 ) + - - 57 * + + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2859
SELECT - COUNT ( 77 ) + - - 57 * + + 0 AS col2
----
-1

query I rowsort
SELECT + ( - 0 ) + - 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - COUNT( 74 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2861
SELECT - COUNT ( 74 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 2 + + 17 AS col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT + COUNT( * ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT + COUNT ( * ) + 40
----
41

query I rowsort
SELECT DISTINCT 7 * 23 AS col2
----
161

query I rowsort
SELECT DISTINCT 25 + - + 58
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2867
SELECT + COUNT( * ) + - 29 DIV 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2867
SELECT + COUNT ( * ) + - 29 / 78 AS col0
----
1

query II rowsort
SELECT ALL - 48 * + 65 AS col1, 22 AS col2
----
-3120
22

query I rowsort
SELECT DISTINCT + 31 * + 45 AS col1
----
1395

query II rowsort
SELECT ALL ( - 48 ), 33 AS col0
----
-48
33

query I rowsort
SELECT - 36 + 70
----
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2872
SELECT + 41 - - 49 AS col1, NULLIF ( + NULLIF ( 73, 7 ), + + 25 - - CAST( + ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) * + + 7
----
90
511

skipif mysql # not compatible
query II rowsort label-2872
SELECT + 41 - - 49 AS col1, NULLIF ( + NULLIF ( 73, 7 ), + + 25 - - CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS REAL ) ) * + + 7
----
90
511

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - COUNT( * ) + - - CASE - + 44 WHEN 13 THEN COUNT( * ) ELSE NULL END * - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT - COUNT ( * ) + - - CASE - + 44 WHEN 13 THEN COUNT ( * ) ELSE NULL END * - 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + 18 - + 95 * - COALESCE ( + COUNT( - 10 ), + 77 ) * - - 85 * 83 * - - 60 + + + 20 + - 3
----
40213535

skipif mysql # not compatible
query I rowsort label-2874
SELECT + 18 - + 95 * - COALESCE ( + COUNT ( - 10 ), + 77 ) * - - 85 * 83 * - - 60 + + + 20 + - 3
----
40213535

query I rowsort
SELECT ALL 24 - + 2 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2876
SELECT + 88 + 41 AS col1, CASE + + ( + 72 ) WHEN - ( + 24 ) * + 38 - - - 32 THEN NULL WHEN ( + 51 ) THEN - COUNT( - 76 ) * + 45 END * 23 * + 91 + + NULLIF ( + 67, + - 53 ) + - 59 * + + 81 / - CAST( NULL AS SIGNED ) * + + 19 col0
----
129
NULL

skipif mysql # not compatible
query II rowsort label-2876
SELECT + 88 + 41 AS col1, CASE + + ( + 72 ) WHEN - ( + 24 ) * + 38 - - - 32 THEN NULL WHEN ( + 51 ) THEN - COUNT ( - 76 ) * + 45 END * 23 * + 91 + + NULLIF ( + 67, + - 53 ) + - 59 * + + 81 / - CAST ( NULL AS INTEGER ) * + + 19 col0
----
129
NULL

query I rowsort
SELECT ALL 0 - 1 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2878
SELECT ALL COUNT( DISTINCT - 89 ) DIV - - 54 * + 13 + COUNT( * ) + + NULLIF ( + 75, - ( - CAST( NULL AS SIGNED ) ) ) * COUNT( * ) AS col2, 4
----
76
4

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL COUNT ( DISTINCT - 89 ) / - - 54 * + 13 + COUNT ( * ) + + NULLIF ( + 75, - ( - CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) AS col2, 4
----
76
4

query I rowsort
SELECT DISTINCT - 59 - + 85 * + ( - + 0 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2880
SELECT - NULLIF ( - CASE 72 WHEN - - COUNT( * ) THEN - ( + 58 ) END, 47 + + 96 ) AS col0, 98 col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-2880
SELECT - NULLIF ( - CASE 72 WHEN - - COUNT ( * ) THEN - ( + 58 ) END, 47 + + 96 ) AS col0, 98 col1
----
NULL
98

query I rowsort
SELECT DISTINCT + 35 * 86
----
3010

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2882
SELECT ALL CAST( + 50 AS SIGNED ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL CAST ( + 50 AS INTEGER ) / - 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT + CAST( NULL AS SIGNED ) + - 56 + + 22 + + AVG ( - 98 ) - - - ( COUNT( * ) ) + - 20 * + 32 * + + 40 / + - 53 * + 11 - 46 + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT + CAST ( NULL AS INTEGER ) + - 56 + + 22 + + AVG ( - 98 ) - - - ( COUNT ( * ) ) + - 20 * + 32 * + + 40 / + - 53 * + 11 - 46 + - 21
----
NULL

query I rowsort
SELECT ALL - - 77 * + 11 - 49
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + MIN( - - 54 ) * + 36 AS col2
----
1944

skipif mysql # not compatible
query I rowsort label-2885
SELECT + MIN ( - - 54 ) * + 36 AS col2
----
1944

query I rowsort
SELECT + + 22 * + + 7 * - 39
----
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT + + CASE MIN( ALL - CASE + 13 WHEN + 13 THEN NULL WHEN - 48 THEN - 51 + - - 22 END ) WHEN - 93 * 58 + 60 * - 55 THEN - 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT + + CASE MIN ( ALL - CASE + 13 WHEN + 13 THEN NULL WHEN - 48 THEN - 51 + - - 22 END ) WHEN - 93 * 58 + 60 * - 55 THEN - 50 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + 17 col2
----
17

query I rowsort
SELECT DISTINCT 22 * + 70
----
1540

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT + CASE + 6 WHEN + CAST( NULL AS SIGNED ) THEN - + 63 END / + - 8 + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT + CASE + 6 WHEN + CAST ( NULL AS INTEGER ) THEN - + 63 END / + - 8 + 45 AS col1
----
NULL

query I rowsort
SELECT + 9 * + + 33 * + 52
----
15444

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL + SUM( DISTINCT + 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL + SUM ( DISTINCT + 21 ) col0
----
21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT - - SUM( - - 77 ) * 92 + NULLIF ( - 29, CAST( NULL AS SIGNED ) * - 75 )
----
7055

skipif mysql # not compatible
query I rowsort label-2895
SELECT - - SUM ( - - 77 ) * 92 + NULLIF ( - 29, CAST ( NULL AS INTEGER ) * - 75 )
----
7055

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT + COALESCE ( - MAX( DISTINCT + - 11 ), - - 38, + 96 ) * + CASE - 24 WHEN + NULLIF ( - ( - 80 ), - + COUNT( * ) ) THEN COUNT( * ) END * 24 * + 38 + + - 45 + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT + COALESCE ( - MAX ( DISTINCT + - 11 ), - - 38, + 96 ) * + CASE - 24 WHEN + NULLIF ( - ( - 80 ), - + COUNT ( * ) ) THEN COUNT ( * ) END * 24 * + 38 + + - 45 + 52
----
NULL

query I rowsort
SELECT ALL - 75 * - 81 + + 62 * - 40 * - + 9 - - 7
----
28402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2898
SELECT ALL - 39 * + 30 * CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + 88 + + 68 + + COALESCE ( - COUNT( * ), + + 11, - - CAST( NULL AS SIGNED ) ) * COUNT( * ) * 5, 63 * COUNT( * ) AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-2898
SELECT ALL - 39 * + 30 * CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + 88 + + 68 + + COALESCE ( - COUNT ( * ), + + 11, - - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 5, 63 * COUNT ( * ) AS col1
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - 8 * - + SUM( - 67 ) - - + 46 col0
----
-490

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 8 * - + SUM ( - 67 ) - - + 46 col0
----
-490

query II rowsort
SELECT + 12 + - 90, + 20 AS col2
----
-78
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2901
SELECT - ( + + 47 ) * + - COUNT( * ) AS col0, 66 AS col2
----
47
66

skipif mysql # not compatible
query II rowsort label-2901
SELECT - ( + + 47 ) * + - COUNT ( * ) AS col0, 66 AS col2
----
47
66

query I rowsort
SELECT ALL 1 * - 91 + - + 48
----
-139

query I rowsort
SELECT DISTINCT - 62 * + 20
----
-1240

query I rowsort
SELECT - 72 + 30
----
-42

query I rowsort
SELECT DISTINCT - 62 * + 50
----
-3100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2906
SELECT DISTINCT + COUNT( 46 ) + - CAST( NULL AS SIGNED ) * - 28 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT + COUNT ( 46 ) + - CAST ( NULL AS INTEGER ) * - 28 + + 59
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT - ( + 55 ) + + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2908
SELECT - ( + 55 ) + + COUNT ( * ) AS col2
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-2909
SELECT 41 AS col0, 69 DIV 36
----
41
1

skipif mysql # not compatible
query II rowsort label-2909
SELECT 41 AS col0, 69 / 36
----
41
1

query I rowsort
SELECT DISTINCT - 72 - 77 + + + 93 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT ALL CAST( - 50 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL CAST ( - 50 AS INTEGER ) AS col0
----
-50

query I rowsort
SELECT + 94 + - 57 AS col0
----
37

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

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

query I rowsort
SELECT DISTINCT CASE WHEN NULL IS NOT NULL THEN 58 ELSE NULL END * - 83 - + 51 + 91 / - 12 + - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT - + 31 - - CASE 6 WHEN + 18 + - 92 * - COUNT( * ) / 31 THEN NULL ELSE + 68 END
----
37

skipif mysql # not compatible
query I rowsort label-2915
SELECT - + 31 - - CASE 6 WHEN + 18 + - 92 * - COUNT ( * ) / 31 THEN NULL ELSE + 68 END
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT + - 67 * + + NULLIF ( - + COUNT( * ), + - 64 + + 52 ) * - 14 AS col0
----
-938

skipif mysql # not compatible
query I rowsort label-2917
SELECT + - 67 * + + NULLIF ( - + COUNT ( * ), + - 64 + + 52 ) * - 14 AS col0
----
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - 84 * + CASE 45 WHEN - 40 - 37 THEN NULL WHEN + + COUNT( * ) THEN 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 84 * + CASE 45 WHEN - 40 - 37 THEN NULL WHEN + + COUNT ( * ) THEN 38 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + NULLIF ( - MAX( + 29 ), + 40 ) * - + 25 AS col1
----
725

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + NULLIF ( - MAX ( + 29 ), + 40 ) * - + 25 AS col1
----
725

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2922
SELECT DISTINCT 99 + SUM( - 94 ) AS col0, - 14 * - 31 - - MIN( DISTINCT - ( - - 14 ) ) + 42 * - 67 * + - 65 AS col0
----
5
183330

skipif mysql # not compatible
query II rowsort label-2922
SELECT DISTINCT 99 + SUM ( - 94 ) AS col0, - 14 * - 31 - - MIN ( DISTINCT - ( - - 14 ) ) + 42 * - 67 * + - 65 AS col0
----
5
183330

query I rowsort
SELECT ALL 13 + 57 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2924
SELECT ALL + 86 + + + CASE - - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - 78 + COALESCE ( - + MIN( 4 ), + 63 + + 79 + - 78 * + + 27 ) + - + 49 THEN NULL ELSE - MIN( - + 63 ) + COUNT( ALL + - CAST( - 14 AS DECIMAL ) ) END * + 91 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + 86 + + + CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - 78 + COALESCE ( - + MIN ( 4 ), + 63 + + 79 + - 78 * + + 27 ) + - + 49 THEN NULL ELSE - MIN ( - + 63 ) + COUNT ( ALL + - CAST ( - 14 AS REAL ) ) END * + 91 * 90
----
NULL

query I rowsort
SELECT + ( + + 58 ) + - - 77
----
135

query II rowsort
SELECT + 94, 8 col1
----
94
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - + + 93 * - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + + 93 * - 15 AS col1
----
NULL

query I rowsort
SELECT ALL 40 * + 14
----
560

query II rowsort
SELECT ALL 49 + - 46, 47 AS col1
----
3
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT ALL 61 * COALESCE ( 89, ( + COUNT( * ) ) - 47 + + 32 - COUNT( * ) * - + COUNT( + - 72 ) ) AS col1, COUNT( * ) AS col2
----
5429
1

skipif mysql # not compatible
query II rowsort label-2930
SELECT ALL 61 * COALESCE ( 89, ( + COUNT ( * ) ) - 47 + + 32 - COUNT ( * ) * - + COUNT ( + - 72 ) ) AS col1, COUNT ( * ) AS col2
----
5429
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT CAST( + 4 AS SIGNED ) + 64 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2931
SELECT CAST ( + 4 AS INTEGER ) + 64 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2932
SELECT + 21 * 26 * + 71 * 10 * - 11 * - 74 + - 62 AS col1, COUNT( * )
----
315555178
1

skipif mysql # not compatible
query II rowsort label-2932
SELECT + 21 * 26 * + 71 * 10 * - 11 * - 74 + - 62 AS col1, COUNT ( * )
----
315555178
1

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2934
SELECT ALL + MAX( + 51 ) * - 79 + + 92 AS col1, - 99 * 29 + + 13 AS col2, 19 + - + 55 AS col0
----
-3937
-2858
-36

skipif mysql # not compatible
query III rowsort label-2934
SELECT ALL + MAX ( + 51 ) * - 79 + + 92 AS col1, - 99 * 29 + + 13 AS col2, 19 + - + 55 AS col0
----
-3937
-2858
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 98 - NULLIF ( + - 80, 20 - - 59 ) * - MAX( ALL - 55 ) + - 37 col1
----
4461

skipif mysql # not compatible
query I rowsort label-2935
SELECT 98 - NULLIF ( + - 80, 20 - - 59 ) * - MAX ( ALL - 55 ) + - 37 col1
----
4461

query I rowsort
SELECT ALL + 14 * 19 * + 99 AS col1
----
26334

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

skipif mysql # not compatible
query I rowsort label-2937
SELECT ( 20 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT 92 DIV 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2938
SELECT 92 / 76 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2939
SELECT + COUNT( * ) DIV - - 4 * 32 * 69 AS col1, 39
----
0
39

skipif mysql # not compatible
query II rowsort label-2939
SELECT + COUNT ( * ) / - - 4 * 32 * 69 AS col1, 39
----
0
39

query I rowsort
SELECT 54 + 85 * 99 * - NULLIF ( - 13, 58 )
----
109449

query I rowsort
SELECT 13 * - 19 col0
----
-247

query I rowsort
SELECT - 55 + - - 25
----
-30

query I rowsort
SELECT 44 - 41 AS col1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT - + MAX( + - 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2945
SELECT - + MAX ( + - 94 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT CAST( 90 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2946
SELECT CAST ( 90 AS INTEGER ) AS col1
----
90

query I rowsort
SELECT 92 * + - 87 AS col0
----
-8004

query I rowsort
SELECT ALL + + 16 + 51
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL + ( + - NULLIF ( + SUM( + 79 ), + - 79 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL + ( + - NULLIF ( + SUM ( + 79 ), + - 79 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL + COUNT( * ) + COALESCE ( - + 3, + - 24 + - 1 * - 13 ) + 23 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + COUNT ( * ) + COALESCE ( - + 3, + - 24 + - 1 * - 13 ) + 23 AS col2
----
21

query I rowsort
SELECT + 18 + + - 21
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2952
SELECT ALL + + CAST( NULL AS SIGNED ) + 72 * - 94 + - + 8 AS col1, 19 col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2952
SELECT ALL + + CAST ( NULL AS INTEGER ) + 72 * - 94 + - + 8 AS col1, 19 col2
----
NULL
19

query I rowsort
SELECT + - 88 * - - 98 + + - 97
----
-8721

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT DISTINCT - 56 + 68 DIV + + 89 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - 56 + 68 / + + 89 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2955
SELECT - CAST( - - 49 AS SIGNED ) DIV - + 74 * 18 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT - CAST ( - - 49 AS INTEGER ) / - + 74 * 18 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT 29 * COALESCE ( + 44, CASE + 90 WHEN CAST( NULL AS SIGNED ) THEN 35 ELSE NULL END ) + 40 AS col1
----
1316

skipif mysql # not compatible
query I rowsort label-2956
SELECT 29 * COALESCE ( + 44, CASE + 90 WHEN CAST ( NULL AS INTEGER ) THEN 35 ELSE NULL END ) + 40 AS col1
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + NULLIF ( + 26, MIN( ALL COALESCE ( 60, COALESCE ( - 1, - - ( ( 84 ) ) - 89 * - 91 ) ) ) + - 74 )
----
26

skipif mysql # not compatible
query I rowsort label-2957
SELECT + NULLIF ( + 26, MIN ( ALL COALESCE ( 60, COALESCE ( - 1, - - ( ( 84 ) ) - 89 * - 91 ) ) ) + - 74 )
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-2958
SELECT DISTINCT - 7 + - 18 DIV - 54 * - 18 AS col0, - 14 AS col0
----
-7
-14

skipif mysql # not compatible
query II rowsort label-2958
SELECT DISTINCT - 7 + - 18 / - 54 * - 18 AS col0, - 14 AS col0
----
-7
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT DISTINCT - - ( - 37 ) + + MAX( DISTINCT 27 ) AS col1, 15 * 26 AS col1
----
-10
390

skipif mysql # not compatible
query II rowsort label-2959
SELECT DISTINCT - - ( - 37 ) + + MAX ( DISTINCT 27 ) AS col1, 15 * 26 AS col1
----
-10
390

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL - MIN( + 48 ) + + 76 * + 0 col2
----
-48

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - MIN ( + 48 ) + + 76 * + 0 col2
----
-48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT CASE + 80 WHEN - - 45 THEN NULL WHEN + CAST( - ( + + 64 ) AS SIGNED ) THEN - COALESCE ( ( - 75 ), NULLIF ( - + MAX( - ( - 86 ) ), - 56 ) * - 79 + NULLIF ( 90, + 12 * - 10 - - 30 ) + - + 6 + + - 28 + 23, - ( - 84 ), + COUNT( * ) ) * + - 1 WHEN 96 THEN 11 ELSE - - 83 + + 4 - - - 64 END * - CASE - 44 WHEN - + CAST( NULL AS SIGNED ) THEN NULL WHEN NULLIF ( 8, + - 84 ) + - COUNT( * ) * - 52 * - 30 * - 55 + + MIN( 25 ) THEN - + 62 WHEN - CAST( + 96 AS SIGNED ) - NULLIF ( + AVG ( + 23 ), + 86 * 86 ) THEN - COUNT( ALL + 24 ) + - 91 * 77 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT CASE + 80 WHEN - - 45 THEN NULL WHEN + CAST ( - ( + + 64 ) AS INTEGER ) THEN - COALESCE ( ( - 75 ), NULLIF ( - + MAX ( - ( - 86 ) ), - 56 ) * - 79 + NULLIF ( 90, + 12 * - 10 - - 30 ) + - + 6 + + - 28 + 23, - ( - 84 ), + COUNT ( * ) ) * + - 1 WHEN 96 THEN 11 ELSE - - 83 + + 4 - - - 64 END * - CASE - 44 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN NULLIF ( 8, + - 84 ) + - COUNT ( * ) * - 52 * - 30 * - 55 + + MIN ( 25 ) THEN - + 62 WHEN - CAST ( + 96 AS INTEGER ) - NULLIF ( + AVG ( + 23 ), + 86 * 86 ) THEN - COUNT ( ALL + 24 ) + - 91 * 77 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 2 * + - 61 AS col2
----
-122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL COUNT( * ) * 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL COUNT ( * ) * 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2966
SELECT + COUNT( * ), + 55 * + MIN( - + 57 ) AS col0
----
1
-3135

skipif mysql # not compatible
query II rowsort label-2966
SELECT + COUNT ( * ), + 55 * + MIN ( - + 57 ) AS col0
----
1
-3135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT DISTINCT COALESCE ( + + 7, - 64 * + 88 * + 18 + + 74 * + 96 - - 52 ) * - CAST( 53 AS SIGNED ) * + 23 * 24 + - COUNT( * ) * + COALESCE ( - + 57, 98 + - - 31, - COUNT( * ) - - 29 ) * + 73
----
-200631

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT COALESCE ( + + 7, - 64 * + 88 * + 18 + + 74 * + 96 - - 52 ) * - CAST ( 53 AS INTEGER ) * + 23 * 24 + - COUNT ( * ) * + COALESCE ( - + 57, 98 + - - 31, - COUNT ( * ) - - 29 ) * + 73
----
-200631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2968
SELECT ALL + 27 * COUNT( * ) DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + 27 * COUNT ( * ) / - + 88
----
0

query I rowsort
SELECT ( - 13 ) * - 25 * - 49 AS col0
----
-15925

query I rowsort
SELECT DISTINCT 6 * 21
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT 11 - - 62 + + COUNT( * ) + - 52 / - + 35 * 48 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT 11 - - 62 + + COUNT ( * ) + - 52 / - + 35 * 48 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 17 * + 58 * - 79 * + 68 AS col0
----
-5296792

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT - 11 AS col1, - NULLIF ( 27, - COALESCE ( + NULLIF ( - 47, + 79 - 16 * + 66 ), - 89 ) + MAX( ALL + + 83 ) * 70 ) * - 21 col2
----
-11
567

skipif mysql # not compatible
query II rowsort label-2973
SELECT - 11 AS col1, - NULLIF ( 27, - COALESCE ( + NULLIF ( - 47, + 79 - 16 * + 66 ), - 89 ) + MAX ( ALL + + 83 ) * 70 ) * - 21 col2
----
-11
567

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT 33 + - 2 + 54 - - 19 DIV + 75 + - + 38 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2974
SELECT 33 + - 2 + 54 - - 19 / + 75 + - + 38 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT ALL 93 DIV - - 58
----
1

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 93 / - - 58
----
1

query I rowsort
SELECT 7 * - CASE 3 / + 26 WHEN 56 THEN 5 WHEN 40 * + 42 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 43 + + 34 AS col1
----
77

query I rowsort
SELECT 52 + - 60 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL + CAST( - 34 AS SIGNED ) + + NULLIF ( + 76 + 59 * 83, - COUNT( * ) ) AS col2
----
4939

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + CAST ( - 34 AS INTEGER ) + + NULLIF ( + 76 + 59 * 83, - COUNT ( * ) ) AS col2
----
4939

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT - CASE COUNT( * ) WHEN + 96 + ( 2 - 23 ) THEN NULL WHEN 28 + 36 THEN 36 + 54 / - 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT - CASE COUNT ( * ) WHEN + 96 + ( 2 - 23 ) THEN NULL WHEN 28 + 36 THEN 36 + 54 / - 97 END AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 24 ) + + 38 AS col2
----
14

query I rowsort
SELECT + 69 * - 76 AS col0
----
-5244

query I rowsort
SELECT DISTINCT 92 + + 34
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT - 21 DIV - 3
----
7

skipif mysql # not compatible
query I rowsort label-2984
SELECT - 21 / - 3
----
7

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

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL COUNT ( * ) + 19 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 33 - 27 * - COUNT( * ) col1
----
60

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 33 - 27 * - COUNT ( * ) col1
----
60

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + CASE - 41 WHEN - COUNT( ALL ( + 27 ) ) THEN - 9 + COUNT( * ) * - 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT + CASE - 41 WHEN - COUNT ( ALL ( + 27 ) ) THEN - 9 + COUNT ( * ) * - 38 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT ALL 83 * 78 - + 58 DIV + 42
----
6473

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL 83 * 78 - + 58 / + 42
----
6473

query I rowsort
SELECT - 79 * + 92 AS col2
----
-7268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT COALESCE ( + 98, CAST( NULL AS SIGNED ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2992
SELECT COALESCE ( + 98, CAST ( NULL AS INTEGER ) ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2993
SELECT ALL SUM( + 75 ) * COUNT( * ) - - CAST( - 33 + - 11 * + CASE 10 WHEN + 93 * 47 THEN 65 * CASE + 25 WHEN + 89 * - COUNT( * ) THEN - 49 WHEN 46 THEN 30 ELSE NULL END WHEN SUM( ALL - 13 ) * 53 THEN NULL ELSE NULL END AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL SUM ( + 75 ) * COUNT ( * ) - - CAST ( - 33 + - 11 * + CASE 10 WHEN + 93 * 47 THEN 65 * CASE + 25 WHEN + 89 * - COUNT ( * ) THEN - 49 WHEN 46 THEN 30 ELSE NULL END WHEN SUM ( ALL - 13 ) * 53 THEN NULL ELSE NULL END AS REAL ) col1
----
NULL

query I rowsort
SELECT - 32 - 23
----
-55

query I rowsort
SELECT ALL - 85 * 58
----
-4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL + NULLIF ( 60, CAST( NULL AS SIGNED ) )
----
60

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + NULLIF ( 60, CAST ( NULL AS INTEGER ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT - 96 + - COALESCE ( COUNT( 40 ), 93 * + 93, - CASE + 62 WHEN 25 THEN + 57 * - 69 WHEN - 14 THEN NULL ELSE NULLIF ( - 51, + 89 ) END )
----
-97

skipif mysql # not compatible
query I rowsort label-2997
SELECT - 96 + - COALESCE ( COUNT ( 40 ), 93 * + 93, - CASE + 62 WHEN 25 THEN + 57 * - 69 WHEN - 14 THEN NULL ELSE NULLIF ( - 51, + 89 ) END )
----
-97

query I rowsort
SELECT ALL - 85 * + 51
----
-4335

query I rowsort
SELECT - 13 * ( 13 )
----
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT + ( NULLIF ( 36, 32 * + 57 + - COUNT( * ) ) ) * + 56 + - ( + 53 )
----
1963

skipif mysql # not compatible
query I rowsort label-3000
SELECT + ( NULLIF ( 36, 32 * + 57 + - COUNT ( * ) ) ) * + 56 + - ( + 53 )
----
1963

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT + 78 - + 41 * - NULLIF ( 4, + 4 + - 84 * COUNT( 10 + - 67 ) )
----
242

skipif mysql # not compatible
query I rowsort label-3001
SELECT + 78 - + 41 * - NULLIF ( 4, + 4 + - 84 * COUNT ( 10 + - 67 ) )
----
242

query I rowsort
SELECT COALESCE ( - 11, - 20 * - ( - 83 ) )
----
-11

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

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

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

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

query I rowsort
SELECT + 18 + - 45 AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL NULLIF ( 50, CAST( + 19 AS SIGNED ) * 47 ) * 87
----
4350

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL NULLIF ( 50, CAST ( + 19 AS INTEGER ) * 47 ) * 87
----
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT + 35 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT + 35 / - 57
----
0

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

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

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

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

query I rowsort
SELECT - CASE - 25 WHEN + 50 THEN - 81 * 45 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 52 + 16 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT + 76 * CAST( + MAX( - 41 ) * 3 AS SIGNED ) AS col2
----
-9348

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 76 * CAST ( + MAX ( - 41 ) * 3 AS INTEGER ) AS col2
----
-9348

query I rowsort
SELECT ALL 77 + - 84 AS col1
----
-7

query I rowsort
SELECT DISTINCT - 72 * 34 col1
----
-2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT + CASE 54 WHEN CAST( NULL AS SIGNED ) * - 51 + + ( - 49 ) THEN 67 ELSE NULL END - CAST( 72 AS SIGNED ) * NULLIF ( - 37, - COUNT( * ) * - AVG ( DISTINCT + 10 * - 12 ) + - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT + CASE 54 WHEN CAST ( NULL AS INTEGER ) * - 51 + + ( - 49 ) THEN 67 ELSE NULL END - CAST ( 72 AS INTEGER ) * NULLIF ( - 37, - COUNT ( * ) * - AVG ( DISTINCT + 10 * - 12 ) + - 55 )
----
NULL

query I rowsort
SELECT ALL 43 + 55 AS col0
----
98

query I rowsort
SELECT + - 42 + 43 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT + + 62 - CAST( + CASE - ( NULLIF ( 72, 76 + - 28 ) ) WHEN COUNT( * ) THEN NULL WHEN 40 * 43 + 81 THEN 74 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT + + 62 - CAST ( + CASE - ( NULLIF ( 72, 76 + - 28 ) ) WHEN COUNT ( * ) THEN NULL WHEN 40 * 43 + 81 THEN 74 ELSE NULL END AS INTEGER ) AS col1
----
NULL

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

query I rowsort
SELECT + - 93 + 65 * - 54
----
-3603

query I rowsort
SELECT - - 87 - ( - 50 - 14 )
----
151

query I rowsort
SELECT ALL NULLIF ( 89, 9 * - 22 ) - 29 AS col2
----
60

query I rowsort
SELECT + 76 + + 3 AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3024
SELECT DISTINCT COALESCE ( 26, + 57 * + 53 + 33, + CAST( - 53 AS SIGNED ) ) DIV + ( - 63 * 4 + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT COALESCE ( 26, + 57 * + 53 + 33, + CAST ( - 53 AS INTEGER ) ) / + ( - 63 * 4 + COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT + 89 + + 55 col2
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT + 73 DIV + COUNT( * ) + + 39 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-3026
SELECT + 73 / + COUNT ( * ) + + 39 AS col2
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3027
SELECT - 16 + COALESCE ( + 50, 33 DIV + 28, 36 ) * + 26 AS col1
----
1284

skipif mysql # not compatible
query I rowsort label-3027
SELECT - 16 + COALESCE ( + 50, 33 / + 28, 36 ) * + 26 AS col1
----
1284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT + + 66 * - COALESCE ( 9, 76 * CAST( NULL AS SIGNED ) ) AS col2
----
-594

skipif mysql # not compatible
query I rowsort label-3028
SELECT + + 66 * - COALESCE ( 9, 76 * CAST ( NULL AS INTEGER ) ) AS col2
----
-594

query I rowsort
SELECT - 26 * + + 62 AS col0
----
-1612

query I rowsort
SELECT - ( 86 ) * 27
----
-2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT - 85 * 69 * 82 + - 83 * + NULLIF ( + CAST( NULL AS SIGNED ), 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT - 85 * 69 * 82 + - 83 * + NULLIF ( + CAST ( NULL AS INTEGER ), 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT + 9 * - 59 * COUNT( * ) + + 7 * 51
----
-174

skipif mysql # not compatible
query I rowsort label-3032
SELECT + 9 * - 59 * COUNT ( * ) + + 7 * 51
----
-174

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

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

query I rowsort
SELECT 26 * + + 67 + + ( 55 )
----
1797

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + 90 * - + SUM( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 90 * - + SUM ( ALL 0 )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL - MIN( - NULLIF ( 24, 44 ) ) * 6
----
144

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL - MIN ( - NULLIF ( 24, 44 ) ) * 6
----
144

query I rowsort
SELECT ALL + NULLIF ( + 77, 53 + - 13 * 28 )
----
77

query I rowsort
SELECT - 94 * 46 AS col1
----
-4324

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL - NULLIF ( + - 70, 55 ) * - 60 + COUNT( * ) AS col2
----
-4199

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL - NULLIF ( + - 70, 55 ) * - 60 + COUNT ( * ) AS col2
----
-4199

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT - NULLIF ( - + 90, ( MIN( ( NULLIF ( - 85, 4 ) ) ) ) ) * + 11 AS col1
----
990

skipif mysql # not compatible
query I rowsort label-3044
SELECT - NULLIF ( - + 90, ( MIN ( ( NULLIF ( - 85, 4 ) ) ) ) ) * + 11 AS col1
----
990

query I rowsort
SELECT 64 * + 79 - + 57 AS col1
----
4999

query I rowsort
SELECT DISTINCT + 4 * - - ( - 83 ) + 45
----
-287

query I rowsort
SELECT - 58 * 26
----
-1508

query I rowsort
SELECT + 64 * + 7 col1
----
448

query I rowsort
SELECT ALL + 71 * + 40 + 21 AS col1
----
2861

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT DISTINCT + 85 + - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT + 85 + - COUNT ( * ) AS col2
----
84

query I rowsort
SELECT - 49 * - + 38
----
1862

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

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

query I rowsort
SELECT ALL + - 93 + - - 69 * - 44
----
-3129

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

query I rowsort
SELECT NULLIF ( - 39, - 28 ) * 86 AS col1
----
-3354

query I rowsort
SELECT ( + + 77 ) * 82
----
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT ALL + - 17 DIV + 85 * 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL + - 17 / + 85 * 10 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT - 24 DIV - - 45 * - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3058
SELECT - 24 / - - 45 * - 38 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3059
SELECT 98 + + 95 + 43 * + 2 DIV COUNT( * ) AS col0
----
279

skipif mysql # not compatible
query I rowsort label-3059
SELECT 98 + + 95 + 43 * + 2 / COUNT ( * ) AS col0
----
279

query I rowsort
SELECT + NULLIF ( + - 83, + 47 ) col1
----
-83

query I rowsort
SELECT DISTINCT CASE WHEN NOT + 25 = - ( - 9 ) THEN + 57 ELSE NULL END
----
57

query I rowsort
SELECT DISTINCT 95 * + + 57 AS col0
----
5415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT - CASE + 31 WHEN + CAST( 79 AS SIGNED ) THEN NULL WHEN 24 THEN + 29 END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT - CASE + 31 WHEN + CAST ( 79 AS INTEGER ) THEN NULL WHEN 24 THEN + 29 END * - 1
----
NULL

query I rowsort
SELECT ALL - - 38 * NULLIF ( 37, 22 * + 36 )
----
1406

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3066
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN + 14 THEN 5 WHEN - 45 + + 88 * - 95 THEN 7 - COALESCE ( COUNT( * ), - 83, + ( 1 ) + - 50 * 28 ) WHEN + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) THEN CAST( NULL AS DECIMAL ) ELSE CASE ( - ( + CAST( NULL AS SIGNED ) ) ) WHEN 27 THEN - 60 * - COUNT( * ) ELSE NULL END / 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN + 14 THEN 5 WHEN - 45 + + 88 * - 95 THEN 7 - COALESCE ( COUNT ( * ), - 83, + ( 1 ) + - 50 * 28 ) WHEN + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) THEN CAST ( NULL AS REAL ) ELSE CASE ( - ( + CAST ( NULL AS INTEGER ) ) ) WHEN 27 THEN - 60 * - COUNT ( * ) ELSE NULL END / 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT + 40 - + - CASE WHEN NULL BETWEEN + 57 AND + 3 * + 81 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT + 40 - + - CASE WHEN NULL BETWEEN + 57 AND + 3 * + 81 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + COALESCE ( - COUNT( * ), 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3068
SELECT + COALESCE ( - COUNT ( * ), 75 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT ALL - COALESCE ( - 52, + CAST( + ( CASE + COALESCE ( + COUNT( 26 ), + 11 * + 35 ) WHEN - 13 THEN - 46 * + COUNT( * ) WHEN - 78 + 70 THEN - 46 * - 85 END ) AS SIGNED ) + + 47, 92 )
----
52

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - COALESCE ( - 52, + CAST ( + ( CASE + COALESCE ( + COUNT ( 26 ), + 11 * + 35 ) WHEN - 13 THEN - 46 * + COUNT ( * ) WHEN - 78 + 70 THEN - 46 * - 85 END ) AS INTEGER ) + + 47, 92 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT + 5 * + CASE 40 WHEN + NULLIF ( - CAST( + COUNT( 50 ) AS SIGNED ), - COALESCE ( - 58, - COUNT( * ), + 49, 75 ) ) THEN 78 END + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT + 5 * + CASE 40 WHEN + NULLIF ( - CAST ( + COUNT ( 50 ) AS INTEGER ), - COALESCE ( - 58, - COUNT ( * ), + 49, 75 ) ) THEN 78 END + + 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3071
SELECT ALL MIN( + - 88 ) DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL MIN ( + - 88 ) / + 92 AS col0
----
0

query II rowsort
SELECT + 28 AS col1, 21 + - + 11
----
28
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL 31 + SUM( ALL - 99 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL 31 + SUM ( ALL - 99 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL - CASE - 59 WHEN + MAX( + 90 ) - COUNT( * ) THEN - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL - CASE - 59 WHEN + MAX ( + 90 ) - COUNT ( * ) THEN - 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL - 68 + 32 * + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL - 68 + 32 * + COUNT ( * )
----
-36

query I rowsort
SELECT 32 * + + 28 - + 71
----
825

query II rowsort
SELECT ALL - 47, - 8 - 20 AS col1
----
-47
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL SUM( ALL - + 11 ) + 84 + + 52 * + MAX( ALL 84 ) AS col2
----
4441

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL SUM ( ALL - + 11 ) + 84 + + 52 * + MAX ( ALL 84 ) AS col2
----
4441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3079
SELECT COUNT( * ) + - 24 + ( + 41 ) + 45 DIV 99 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3079
SELECT COUNT ( * ) + - 24 + ( + 41 ) + 45 / 99 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT 46 - + COUNT( ALL - 44 )
----
45

skipif mysql # not compatible
query I rowsort label-3080
SELECT 46 - + COUNT ( ALL - 44 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3081
SELECT ALL - 53 AS col0, - CAST( NULL AS SIGNED ) / + ( + COUNT( * ) ) AS col1
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-3081
SELECT ALL - 53 AS col0, - CAST ( NULL AS INTEGER ) / + ( + COUNT ( * ) ) AS col1
----
-53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL + NULLIF ( + 88, 39 * COUNT( * ) ) + - 73 * - ( - 6 ) AS col1
----
-350

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + NULLIF ( + 88, 39 * COUNT ( * ) ) + - 73 * - ( - 6 ) AS col1
----
-350

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3084
SELECT ALL - 7, - 26 * - + 74 * - ( CASE + 43 WHEN - 44 * - MIN( + 92 * 89 ) THEN CAST( - COUNT( * ) AS SIGNED ) WHEN CAST( COUNT( * ) AS DECIMAL ) THEN NULL END * 3 ) - - CAST( NULL AS SIGNED ) AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-3084
SELECT ALL - 7, - 26 * - + 74 * - ( CASE + 43 WHEN - 44 * - MIN ( + 92 * 89 ) THEN CAST ( - COUNT ( * ) AS INTEGER ) WHEN CAST ( COUNT ( * ) AS REAL ) THEN NULL END * 3 ) - - CAST ( NULL AS INTEGER ) AS col1
----
-7
NULL

query I rowsort
SELECT DISTINCT + 34 + + 24 + + 24 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT + COUNT( * ) + - 39 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3086
SELECT + COUNT ( * ) + - 39 AS col0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL + 23 + 0 DIV - 52 * 47 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL + 23 + 0 / - 52 * 47 AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT + CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3088
SELECT + CAST ( + 2 AS INTEGER )
----
2

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

skipif mysql # not compatible
query I rowsort label-3089
SELECT - ( + MIN ( - + 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT + - 92 AS col0, + CASE + 20 WHEN - 15 THEN NULL WHEN - 58 THEN COUNT( * ) * 26 ELSE + 57 END * - COUNT( * ) AS col1
----
-92
-57

skipif mysql # not compatible
query II rowsort label-3090
SELECT + - 92 AS col0, + CASE + 20 WHEN - 15 THEN NULL WHEN - 58 THEN COUNT ( * ) * 26 ELSE + 57 END * - COUNT ( * ) AS col1
----
-92
-57

query I rowsort
SELECT - 69 * + 46 + 8 + 62 AS col1
----
-3104

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

skipif mysql # not compatible
query I rowsort label-3092
SELECT - SUM ( ALL 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT 82 * + MIN( DISTINCT - 68 ) + + NULLIF ( 21, 61 + + 51 )
----
-5555

skipif mysql # not compatible
query I rowsort label-3093
SELECT 82 * + MIN ( DISTINCT - 68 ) + + NULLIF ( 21, 61 + + 51 )
----
-5555

query I rowsort
SELECT DISTINCT + 29 * - 32 AS col2
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT + COALESCE ( + 86, ( 70 ) + + COUNT( * ) * - ( 25 ), 96 ) - 82
----
4

skipif mysql # not compatible
query I rowsort label-3095
SELECT + COALESCE ( + 86, ( 70 ) + + COUNT ( * ) * - ( 25 ), 96 ) - 82
----
4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT MIN( DISTINCT + 73 ) + - + CAST( - MAX( + 93 ) AS SIGNED ) AS col2
----
166

skipif mysql # not compatible
query I rowsort label-3097
SELECT MIN ( DISTINCT + 73 ) + - + CAST ( - MAX ( + 93 ) AS INTEGER ) AS col2
----
166

query I rowsort
SELECT ALL + - 73 - - - 97 AS col0
----
-170

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

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

query II rowsort
SELECT DISTINCT - 13 col0, - 49 AS col0
----
-13
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT - - 31 AS col1, + ( MIN( + 19 ) ) AS col1
----
31
19

skipif mysql # not compatible
query II rowsort label-3101
SELECT - - 31 AS col1, + ( MIN ( + 19 ) ) AS col1
----
31
19

query I rowsort
SELECT - 38 + 64 AS col2
----
26

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

skipif mysql # not compatible
query I rowsort label-3103
SELECT - COUNT ( * ) / - + 87 col1
----
0

query I rowsort
SELECT - 21 + - - 66 AS col0
----
45

query I rowsort
SELECT 86 * - 21
----
-1806

query I rowsort
SELECT ALL + 99 + - 46
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3107
SELECT DISTINCT CASE - ( - 27 ) WHEN 23 DIV + 1 THEN + COUNT( * ) * + 64 ELSE - COUNT( * ) * CAST( MIN( + ( 14 ) ) AS SIGNED ) END * + ( + 62 DIV + COUNT( * ) + - 35 )
----
-378

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT CASE - ( - 27 ) WHEN 23 / + 1 THEN + COUNT ( * ) * + 64 ELSE - COUNT ( * ) * CAST ( MIN ( + ( 14 ) ) AS INTEGER ) END * + ( + 62 / + COUNT ( * ) + - 35 )
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT 2 + - COUNT( * ) - + 39 + + 55
----
17

skipif mysql # not compatible
query I rowsort label-3108
SELECT 2 + - COUNT ( * ) - + 39 + + 55
----
17

query I rowsort
SELECT ALL ( + 90 ) + - 80
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3110
SELECT - 88 DIV - + 17 + + + 73 + + - 92
----
-14

skipif mysql # not compatible
query I rowsort label-3110
SELECT - 88 / - + 17 + + + 73 + + - 92
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT CASE - ( + COUNT( * ) ) WHEN - + MAX( ALL ( 63 ) ) * 56 THEN - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT CASE - ( + COUNT ( * ) ) WHEN - + MAX ( ALL ( 63 ) ) * 56 THEN - 11 END
----
NULL

query I rowsort
SELECT ALL + 66 * + 3 * - - 16 + + + 69
----
3237

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT COUNT( * ) * - - ( 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3114
SELECT COUNT ( * ) * - - ( 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT COUNT( * ) * + ( - + COUNT( * ) ) * 97 DIV - 59 + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3115
SELECT COUNT ( * ) * + ( - + COUNT ( * ) ) * 97 / - 59 + 79 AS col2
----
80

query I rowsort
SELECT ALL - 89 * + 98 + - - 53
----
-8669

query I rowsort
SELECT + 53 * + 3
----
159

query I rowsort
SELECT ALL 69 * - + 6 * - 32 + + + 22
----
13270

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT - COALESCE ( 46, - 65 + - 29 - MIN( - 12 ) * 70, + 84 * - COALESCE ( 33, 89 ) - 79 * + COUNT( * ) ) * 37 + 70 AS col0
----
-1632

skipif mysql # not compatible
query I rowsort label-3119
SELECT - COALESCE ( 46, - 65 + - 29 - MIN ( - 12 ) * 70, + 84 * - COALESCE ( 33, 89 ) - 79 * + COUNT ( * ) ) * 37 + 70 AS col0
----
-1632

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

skipif mysql # not compatible
query I rowsort label-3120
SELECT + 5 / + COUNT ( * ) AS col2
----
5

query I rowsort
SELECT + 17 * - 45 AS col1
----
-765

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

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

query I rowsort
SELECT 97 * + 21 - 37
----
2000

onlyif mysql # DIV for integer division: 
query II rowsort label-3124
SELECT - 67 DIV + - 50 AS col1, + 40 AS col1
----
1
40

skipif mysql # not compatible
query II rowsort label-3124
SELECT - 67 / + - 50 AS col1, + 40 AS col1
----
1
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT + + 80 * 64 - + 75 + + 51 DIV COUNT( * ) AS col0
----
5096

skipif mysql # not compatible
query I rowsort label-3125
SELECT + + 80 * 64 - + 75 + + 51 / COUNT ( * ) AS col0
----
5096

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3127
SELECT + COALESCE ( + - 2, + CASE - - 45 WHEN - 66 + - 39 THEN NULL WHEN 55 + 95 THEN 85 DIV + COALESCE ( - 88 DIV NULLIF ( 74, 14 ), + MIN( ALL 89 ), 14 - + 34, 7 + + COUNT( * ) ) + + 62 ELSE + 16 END ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3127
SELECT + COALESCE ( + - 2, + CASE - - 45 WHEN - 66 + - 39 THEN NULL WHEN 55 + 95 THEN 85 / + COALESCE ( - 88 / NULLIF ( 74, 14 ), + MIN ( ALL 89 ), 14 - + 34, 7 + + COUNT ( * ) ) + + 62 ELSE + 16 END ) AS col2
----
-2

query I rowsort
SELECT ALL - 0 * 64
----
0

query I rowsort
SELECT + 42 + + 32 + + ( 31 ) + ( - 18 )
----
87

query I rowsort
SELECT DISTINCT + + 37 * - 37
----
-1369

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - NULLIF ( + 22, COUNT( * ) + - ( + 32 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-3132
SELECT - NULLIF ( + 22, COUNT ( * ) + - ( + 32 ) )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT - + 73 + + CAST( + 89 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3133
SELECT - + 73 + + CAST ( + 89 AS INTEGER ) AS col1
----
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT - - 98 + CASE - + 13 WHEN 31 THEN NULL WHEN + COALESCE ( 15, - 14 - + ( CAST( NULL AS SIGNED ) + + 38 / 53 ) ) * + ( + SUM( + NULLIF ( 15, ( + 90 ) * + 97 ) ) ) - + 75 THEN 38 * - 98 + - 27 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT - - 98 + CASE - + 13 WHEN 31 THEN NULL WHEN + COALESCE ( 15, - 14 - + ( CAST ( NULL AS INTEGER ) + + 38 / 53 ) ) * + ( + SUM ( + NULLIF ( 15, ( + 90 ) * + 97 ) ) ) - + 75 THEN 38 * - 98 + - 27 ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 23 + 91 - + 25 + + 8
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT DISTINCT 23 + + MAX( ALL 80 ) - 26 * + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT 23 + + MAX ( ALL 80 ) - 26 * + COUNT ( * ) AS col1
----
77

query I rowsort
SELECT DISTINCT ( + 30 ) AS col1
----
30

query I rowsort
SELECT DISTINCT - ( - 78 ) + 48 + - 2
----
124

query II rowsort
SELECT - 19 * - 34 * + - 1 AS col0, - 31
----
-646
-31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3143
SELECT ALL + 68 + + - MIN( DISTINCT - 1 ) - 93 + 82 DIV + 73 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + 68 + + - MIN ( DISTINCT - 1 ) - 93 + 82 / + 73 AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT - CAST( NULL AS SIGNED ) - + ( + 44 ) + + NULLIF ( 98, - 73 + + 44 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT - CAST ( NULL AS INTEGER ) - + ( + 44 ) + + NULLIF ( 98, - 73 + + 44 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - MAX( + - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-3145
SELECT - MAX ( + - 32 )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT - 83 + - - COALESCE ( - COUNT( * ), + 68, SUM( - 74 ) ) + 67 DIV + COUNT( * ) * + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3146
SELECT - 83 + - - COALESCE ( - COUNT ( * ), + 68, SUM ( - 74 ) ) + 67 / + COUNT ( * ) * + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL - ( + ( COALESCE ( 20, - MAX( DISTINCT 97 ) ) ) ) * + 78 AS col2
----
-1560

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL - ( + ( COALESCE ( 20, - MAX ( DISTINCT 97 ) ) ) ) * + 78 AS col2
----
-1560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + SUM( DISTINCT - + 67 ) * 72 - - + COUNT( ALL + 83 )
----
-4823

skipif mysql # not compatible
query I rowsort label-3149
SELECT + SUM ( DISTINCT - + 67 ) * 72 - - + COUNT ( ALL + 83 )
----
-4823

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT + 92, - ( + 78 ) * - 88 + COUNT( * ) + 1 * - 77 + + 67 col2
----
92
6855

skipif mysql # not compatible
query II rowsort label-3150
SELECT + 92, - ( + 78 ) * - 88 + COUNT ( * ) + 1 * - 77 + + 67 col2
----
92
6855

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3151
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 27 * 14 col0, + 74 - + + 5 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-3151
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 27 * 14 col0, + 74 - + + 5 AS col0
----
NULL
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3152
SELECT DISTINCT - 62 / 97 - - 75 * 24 + - + CAST( NULL AS DECIMAL ) + - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - 62 / 97 - - 75 * 24 + - + CAST ( NULL AS REAL ) + - 32 AS col2
----
NULL

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

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

query I rowsort
SELECT ( - - ( - - 74 ) )
----
74

query II rowsort
SELECT ALL + 91 AS col0, 77 + - 97
----
91
-20

query I rowsort
SELECT - 93 + 27
----
-66

query I rowsort
SELECT + 99 * - 95 AS col2
----
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - + ( COUNT( * ) ) + 97
----
96

skipif mysql # not compatible
query I rowsort label-3158
SELECT - + ( COUNT ( * ) ) + 97
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT + - 20 - 43 + NULLIF ( + COUNT( * ), 28 ) + 58 * 99
----
5680

skipif mysql # not compatible
query I rowsort label-3159
SELECT + - 20 - 43 + NULLIF ( + COUNT ( * ), 28 ) + 58 * 99
----
5680

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT 51 * - 89 * 10 + + - ( COUNT( * ) ) AS col0
----
-45391

skipif mysql # not compatible
query I rowsort label-3160
SELECT 51 * - 89 * 10 + + - ( COUNT ( * ) ) AS col0
----
-45391

query I rowsort
SELECT + + NULLIF ( 95, 12 ) - - + 42 + - + 48 * + 68 AS col1
----
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + + 34 * + ( + COUNT( * ) ) * - - 88 AS col2
----
2992

skipif mysql # not compatible
query I rowsort label-3162
SELECT + + 34 * + ( + COUNT ( * ) ) * - - 88 AS col2
----
2992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT ALL COUNT( * ) * - 52 DIV + - 74 * + + 57
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL COUNT ( * ) * - 52 / + - 74 * + + 57
----
0

query I rowsort
SELECT DISTINCT + - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + - MIN( + + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + - MIN ( + + 94 )
----
-94

query I rowsort
SELECT ALL + 90 * 23
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT + COUNT( * ) + 73 * - 94 * 45 AS col2
----
-308789

skipif mysql # not compatible
query I rowsort label-3167
SELECT + COUNT ( * ) + 73 * - 94 * 45 AS col2
----
-308789

query I rowsort
SELECT + 40 * - 2 + - 73
----
-153

query I rowsort
SELECT + 44 + - 30 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT - COUNT( - 23 ) * - 35 * 3 * - 7
----
-735

skipif mysql # not compatible
query I rowsort label-3170
SELECT - COUNT ( - 23 ) * - 35 * 3 * - 7
----
-735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3171
SELECT + - NULLIF ( - ( + 10 ), + COALESCE ( - ( - 26 ), CAST( 56 AS SIGNED ) ) ) DIV COUNT( * ) col0
----
10

skipif mysql # not compatible
query I rowsort label-3171
SELECT + - NULLIF ( - ( + 10 ), + COALESCE ( - ( - 26 ), CAST ( 56 AS INTEGER ) ) ) / COUNT ( * ) col0
----
10

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL + CASE + 53 WHEN - 59 THEN - 58 * 2 - CASE - 86 + + 16 * - 73 WHEN - COALESCE ( 42, 93 ) * 55 THEN + CAST( NULL AS SIGNED ) * + 12 ELSE NULL END WHEN - 99 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + CASE + 53 WHEN - 59 THEN - 58 * 2 - CASE - 86 + + 16 * - 73 WHEN - COALESCE ( 42, 93 ) * 55 THEN + CAST ( NULL AS INTEGER ) * + 12 ELSE NULL END WHEN - 99 THEN NULL END
----
NULL

query II rowsort
SELECT + + 33 + + 16 + + + 55 AS col0, 1 * - 85
----
104
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3176
SELECT + NULLIF ( + 59, MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) - + CAST( - 20 AS SIGNED ) * 5 ) + 9 col0
----
68

skipif mysql # not compatible
query I rowsort label-3176
SELECT + NULLIF ( + 59, MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - + CAST ( - 20 AS INTEGER ) * 5 ) + 9 col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3177
SELECT - 82 AS col1, ( + 49 ) / 65 * 45 * + 34 - + ( + ( - 12 ) + NULLIF ( - CAST( NULL AS SIGNED ) - 88 * + SUM( + ( - 0 ) ), - 91 * 65 ) ) * 49
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT - 82 AS col1, ( + 49 ) / 65 * 45 * + 34 - + ( + ( - 12 ) + NULLIF ( - CAST ( NULL AS INTEGER ) - 88 * + SUM ( + ( - 0 ) ), - 91 * 65 ) ) * 49
----
-82
NULL

query I rowsort
SELECT + 56 + + 41 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT 66 + - 68 * + ( + 70 ) * + 90 - + 91 + + COUNT( * ) AS col1
----
-428424

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT 66 + - 68 * + ( + 70 ) * + 90 - + 91 + + COUNT ( * ) AS col1
----
-428424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT + ( 66 ) + - 37 - + + COUNT( * ) DIV + ( - + 61 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3180
SELECT + ( 66 ) + - 37 - + + COUNT ( * ) / + ( - + 61 ) AS col0
----
29

query I rowsort
SELECT ALL 1 + - 90 AS col1
----
-89

query I rowsort
SELECT + 7 + - 91
----
-84

query I rowsort
SELECT 46 + + 56 AS col2
----
102

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3185
SELECT 27 + - COALESCE ( + + COUNT( ALL 22 ), - - NULLIF ( + + 45, 29 DIV 60 ) * 98 + - 35 DIV 60, + 20 DIV ( + ( 20 ) ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3185
SELECT 27 + - COALESCE ( + + COUNT ( ALL 22 ), - - NULLIF ( + + 45, 29 / 60 ) * 98 + - 35 / 60, + 20 / ( + ( 20 ) ) ) AS col1
----
26

query I rowsort
SELECT 46 + + ( - - 23 )
----
69

query II rowsort
SELECT + 2 AS col2, + 99 * + 62 col1
----
2
6138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3188
SELECT 30 AS col0, + 97 * + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT 51 ) * 23 AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-3188
SELECT 30 AS col0, + 97 * + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT 51 ) * 23 AS col2
----
30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3189
SELECT ALL + CAST( - ( - NULLIF ( - COUNT( * ), + 99 + - COALESCE ( 16, + 17 ) + + 45 * + ( CAST( NULL AS SIGNED ) ) ) ) AS SIGNED ) DIV + MAX( DISTINCT - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + CAST ( - ( - NULLIF ( - COUNT ( * ), + 99 + - COALESCE ( 16, + 17 ) + + 45 * + ( CAST ( NULL AS INTEGER ) ) ) ) AS INTEGER ) / + MAX ( DISTINCT - 50 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT 62 DIV - 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3190
SELECT 62 / - 57 AS col1
----
-1

query II rowsort
SELECT + 10, 67 * + 44 col0
----
10
2948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3192
SELECT 45 * COUNT( * ) DIV - ( - 52 ) * + - 71 + - 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3192
SELECT 45 * COUNT ( * ) / - ( - 52 ) * + - 71 + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT ALL + 74 DIV + - COUNT( DISTINCT - 15 ) + + - 53
----
-127

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + 74 / + - COUNT ( DISTINCT - 15 ) + + - 53
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3194
SELECT 21 DIV + 71 + + - COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT 21 / + 71 + + - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT + - 58 * - - 9 AS col2
----
-522

onlyif mysql # DIV for integer division: 
query II rowsort label-3196
SELECT - 81 AS col2, 62 - 37 DIV + 90
----
-81
62

skipif mysql # not compatible
query II rowsort label-3196
SELECT - 81 AS col2, 62 - 37 / + 90
----
-81
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT - + COALESCE ( SUM( - + 87 ), + + ( - 13 ), - 92 * 3 ) * - 78
----
-6786

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT - + COALESCE ( SUM ( - + 87 ), + + ( - 13 ), - 92 * 3 ) * - 78
----
-6786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3199
SELECT 90 * 31 AS col0, COALESCE ( - 81, CASE + 9 WHEN 48 / CAST( NULL AS SIGNED ) THEN 81 WHEN 25 THEN - 77 * + 36 - 64 * - 54 END * COUNT( * ) ) * + 8
----
2790
-648

skipif mysql # not compatible
query II rowsort label-3199
SELECT 90 * 31 AS col0, COALESCE ( - 81, CASE + 9 WHEN 48 / CAST ( NULL AS INTEGER ) THEN 81 WHEN 25 THEN - 77 * + 36 - 64 * - 54 END * COUNT ( * ) ) * + 8
----
2790
-648

query I rowsort
SELECT ALL + 59 + 29 + 40 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT + + 37 * - 13 + - + 53 * + SUM( ALL - 97 ) - + - COALESCE ( - MAX( CAST( 2 AS SIGNED ) ), 83 ) AS col1
----
4658

skipif mysql # not compatible
query I rowsort label-3201
SELECT + + 37 * - 13 + - + 53 * + SUM ( ALL - 97 ) - + - COALESCE ( - MAX ( CAST ( 2 AS INTEGER ) ), 83 ) AS col1
----
4658

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT MAX( + - 23 ) * COUNT( * ) - - 50 * 68 + - 21 AS col1
----
3356

skipif mysql # not compatible
query I rowsort label-3202
SELECT MAX ( + - 23 ) * COUNT ( * ) - - 50 * 68 + - 21 AS col1
----
3356

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT - 74 + COUNT( * ) - - 78 * 4 + + - 75 - - 76 * - 41
----
-2952

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 74 + COUNT ( * ) - - 78 * 4 + + - 75 - - 76 * - 41
----
-2952

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

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 82
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT COUNT( * ) - COUNT( * ) + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3206
SELECT COUNT ( * ) - COUNT ( * ) + 82 AS col2
----
82

query I rowsort
SELECT DISTINCT 19 * + + 83
----
1577

query I rowsort
SELECT ALL - 15 + 43 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3209
SELECT NULLIF ( + 50, - + NULLIF ( + MAX( - 17 ), + - COUNT( * ) * 66 + - CAST( + 42 AS SIGNED ) / 89 ) - 22 ) * 39
----
1950

skipif mysql # not compatible
query I rowsort label-3209
SELECT NULLIF ( + 50, - + NULLIF ( + MAX ( - 17 ), + - COUNT ( * ) * 66 + - CAST ( + 42 AS INTEGER ) / 89 ) - 22 ) * 39
----
1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT COALESCE ( - COUNT( * ), + + 50 ) * - 72 DIV COUNT( ( - - 70 ) ) - 85
----
-13

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT COALESCE ( - COUNT ( * ), + + 50 ) * - 72 / COUNT ( ( - - 70 ) ) - 85
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT 37 + + + 81 * - COUNT( * ) - 31
----
-75

skipif mysql # not compatible
query I rowsort label-3211
SELECT 37 + + + 81 * - COUNT ( * ) - 31
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ( + + SUM( ALL - + 65 ) ) * 70 AS col1
----
-4550

skipif mysql # not compatible
query I rowsort label-3212
SELECT ( + + SUM ( ALL - + 65 ) ) * 70 AS col1
----
-4550

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT 25 - 6 * + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT 25 - 6 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
19

query I rowsort
SELECT 27 * + - 38 AS col1
----
-1026

query II rowsort
SELECT ALL - 78 * + - 57 AS col1, + 74 * - 92 * + 55 + - - 10
----
4446
-374430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT CASE - 62 WHEN NULLIF ( - + ( + + 6 ), - 42 ) + - 19 THEN 93 WHEN + CASE 31 WHEN + 94 THEN NULL WHEN + ( + MAX( ALL + 93 ) ) THEN + 93 ELSE + COUNT( - 13 ) END THEN NULL END * + 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT CASE - 62 WHEN NULLIF ( - + ( + + 6 ), - 42 ) + - 19 THEN 93 WHEN + CASE 31 WHEN + 94 THEN NULL WHEN + ( + MAX ( ALL + 93 ) ) THEN + 93 ELSE + COUNT ( - 13 ) END THEN NULL END * + 55 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - MIN( DISTINCT - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3219
SELECT - MIN ( DISTINCT - 56 ) AS col0
----
56

query I rowsort
SELECT 26 + + 56 + 19
----
101

query I rowsort
SELECT 65 * - + 53
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT COUNT( * ) + 88 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3222
SELECT COUNT ( * ) + 88 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3223
SELECT COALESCE ( - - 82, 95 ) * - COALESCE ( - ( + CAST( NULL AS SIGNED ) ), 54 DIV 40, + COUNT( * ), - 53 + ( + CAST( NULL AS SIGNED ) ) )
----
-82

skipif mysql # not compatible
query I rowsort label-3223
SELECT COALESCE ( - - 82, 95 ) * - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), 54 / 40, + COUNT ( * ), - 53 + ( + CAST ( NULL AS INTEGER ) ) )
----
-82

query I rowsort
SELECT 45 + + + 98 * + 91 + + 78 + + 39
----
9080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3225
SELECT DISTINCT COALESCE ( - - COUNT( * ), + 95 * + 69 DIV + COUNT( * ) + - COUNT( * ) + - + 74 ) * - 45
----
-45

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT COALESCE ( - - COUNT ( * ), + 95 * + 69 / + COUNT ( * ) + - COUNT ( * ) + - + 74 ) * - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ( + CASE + 58 WHEN + 82 THEN + COUNT( * ) ELSE + + 94 + - 32 END ) * ( ( - 67 ) ) AS col1
----
-4154

skipif mysql # not compatible
query I rowsort label-3226
SELECT ( + CASE + 58 WHEN + 82 THEN + COUNT ( * ) ELSE + + 94 + - 32 END ) * ( ( - 67 ) ) AS col1
----
-4154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3227
SELECT + 48 DIV 35 + - 9 * 57 * 22 + SUM( + - 36 ) - + 87 AS col1
----
-11408

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 48 / 35 + - 9 * 57 * 22 + SUM ( + - 36 ) - + 87 AS col1
----
-11408

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT DISTINCT + COUNT( DISTINCT + 69 ) + + + 33 + + 62 + - 18 * + 90 * - 81 * 0 * 49
----
96

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT + COUNT ( DISTINCT + 69 ) + + + 33 + + 62 + - 18 * + 90 * - 81 * 0 * 49
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + 72 * NULLIF ( - + 38, 97 + + ( + ( + - COUNT( * ) ) ) ) + - 43 AS col1
----
-2779

skipif mysql # not compatible
query I rowsort label-3229
SELECT + 72 * NULLIF ( - + 38, 97 + + ( + ( + - COUNT ( * ) ) ) ) + - 43 AS col1
----
-2779

query I rowsort
SELECT ALL + ( + - ( + 87 ) ) + + + 19 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT 92 * + - MAX( + 67 )
----
-6164

skipif mysql # not compatible
query I rowsort label-3231
SELECT 92 * + - MAX ( + 67 )
----
-6164

query I rowsort
SELECT 51 - - 52
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + MAX( DISTINCT + ( 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3233
SELECT + MAX ( DISTINCT + ( 24 ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3234
SELECT DISTINCT - 69 DIV - 74 + - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - 69 / - 74 + - 43 AS col2
----
-43

query I rowsort
SELECT ALL + + 89 + + 37 + - - 24 * 99 * 58 AS col0
----
137934

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + COUNT( * ) + - - 35 + - + 85 * - - 66 * + 88 + - 96
----
-493740

skipif mysql # not compatible
query I rowsort label-3236
SELECT + COUNT ( * ) + - - 35 + - + 85 * - - 66 * + 88 + - 96
----
-493740

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

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

query I rowsort
SELECT - ( + + 28 ) * - 39 + - 37
----
1055

query I rowsort
SELECT 1 + - 45 - + + 59 + - 10 * 88
----
-983

query I rowsort
SELECT + 90 * + 74 AS col1
----
6660

query I rowsort
SELECT - 60 + - - 17 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL 72 - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL 72 - - COUNT ( * )
----
73

query I rowsort
SELECT - 36 * 64
----
-2304

query I rowsort
SELECT - 54 + - 56 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT + CASE + 74 WHEN - 66 THEN NULL WHEN + COALESCE ( - 47, - - COALESCE ( - + 58, - 19 ) ) * - 24 THEN - 79 * + MAX( DISTINCT + 89 ) ELSE NULL END / 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + CASE + 74 WHEN - 66 THEN NULL WHEN + COALESCE ( - 47, - - COALESCE ( - + 58, - 19 ) ) * - 24 THEN - 79 * + MAX ( DISTINCT + 89 ) ELSE NULL END / 50 col2
----
NULL

query II rowsort
SELECT ALL 1 * 23 * + 33 AS col2, + CASE + 66 WHEN - 70 THEN - 90 ELSE + 97 * 59 END * - ( 5 ) AS col1
----
759
-28615

query I rowsort
SELECT ALL + 74 * - 83 AS col1
----
-6142

query I rowsort
SELECT DISTINCT COALESCE ( + 38, 49 * + 11 - - 27 + + 61 * 32 ) AS col1
----
38

query II rowsort
SELECT + 83 + - 87 - + 21 col2, ( - - 42 )
----
-25
42

query I rowsort
SELECT + 0 + 81 - NULLIF ( - 57, CASE 3 WHEN + CASE - + 20 WHEN - 3 THEN COALESCE ( 99, + 83 ) - - 95 END - 10 THEN 27 ELSE NULL END ) * + 56
----
3273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT NULLIF ( - CAST( + + COUNT( ALL + - 34 ) AS SIGNED ), 92 ) * + + 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT NULLIF ( - CAST ( + + COUNT ( ALL + - 34 ) AS INTEGER ), 92 ) * + + 94 AS col2
----
-94

query I rowsort
SELECT - AVG ( - - CASE + 15 WHEN 0 THEN - 38 / + + 91 + + - 22 / 96 * + 0 END ) * + 86 AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 87 ) * + ( 6 ) * + 85
----
-44370

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL 5 + 79 * CASE + 65 WHEN 70 THEN + 2 WHEN - - 81 THEN NULL WHEN - - COUNT( ALL 93 ) + - SUM( DISTINCT - 2 + 74 ) THEN 15 END / - 30 + 84 / 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 5 + 79 * CASE + 65 WHEN 70 THEN + 2 WHEN - - 81 THEN NULL WHEN - - COUNT ( ALL 93 ) + - SUM ( DISTINCT - 2 + 74 ) THEN 15 END / - 30 + 84 / 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT DISTINCT 64 + CASE - + CAST( + 51 AS SIGNED ) WHEN - MIN( DISTINCT - 46 ) THEN NULL ELSE + CASE + COUNT( + 6 ) WHEN 39 + 19 THEN ( CASE + 69 WHEN 16 + + 95 * COUNT( * ) THEN NULL WHEN + 42 THEN + 58 WHEN - ( COUNT( * ) ) THEN 46 END ) ELSE 13 END + ( 16 ) END + - 7
----
86

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT 64 + CASE - + CAST ( + 51 AS INTEGER ) WHEN - MIN ( DISTINCT - 46 ) THEN NULL ELSE + CASE + COUNT ( + 6 ) WHEN 39 + 19 THEN ( CASE + 69 WHEN 16 + + 95 * COUNT ( * ) THEN NULL WHEN + 42 THEN + 58 WHEN - ( COUNT ( * ) ) THEN 46 END ) ELSE 13 END + ( 16 ) END + - 7
----
86

query I rowsort
SELECT + ( - 24 ) * - 80 AS col2
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL ( - 59 ) * - ( + 73 ) + - ( + - 85 ) + ( COUNT( * ) )
----
4393

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL ( - 59 ) * - ( + 73 ) + - ( + - 85 ) + ( COUNT ( * ) )
----
4393

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3258
SELECT + 11 * + CAST( NULL AS DECIMAL ) / 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT + 11 * + CAST ( NULL AS REAL ) / 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL + 0 * ( + COALESCE ( - + COALESCE ( + 53, - 26 * + - 68 * 40, - COUNT( * ) ), 14 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL + 0 * ( + COALESCE ( - + COALESCE ( + 53, - 26 * + - 68 * 40, - COUNT ( * ) ), 14 ) ) AS col2
----
0

query II rowsort
SELECT + + 57 * + 74 + - 70 + - + 98 AS col1, NULLIF ( + + 72, - - 26 ) * + - 5
----
4050
-360

query I rowsort
SELECT + 77 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL - 0 * - 96 + 71 * 14 + - + 4 + + CASE + 82 WHEN COUNT( * ) * 89 THEN 39 * + 47 ELSE NULL END + - 40 * 41 * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - 0 * - 96 + 71 * 14 + - + 4 + + CASE + 82 WHEN COUNT ( * ) * 89 THEN 39 * + 47 ELSE NULL END + - 40 * 41 * - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL - NULLIF ( - + CASE MIN( + 5 ) WHEN COALESCE ( - 53, + COUNT( * ) ) THEN 39 + MIN( 36 ) WHEN 64 THEN 53 END, - 99 * - 37 ) * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - NULLIF ( - + CASE MIN ( + 5 ) WHEN COALESCE ( - 53, + COUNT ( * ) ) THEN 39 + MIN ( 36 ) WHEN 64 THEN 53 END, - 99 * - 37 ) * - 39
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 59, + 5 - + + 93 * + 20, - 82 ) * - 38 AS col1
----
2242

query I rowsort
SELECT - - 56 * 87 + + + 71 + 56
----
4999

onlyif mysql # aggregate syntax: 
query II rowsort label-3266
SELECT ALL + - COUNT( * ) * 63 - - 14 * 40 * - 31 * + 38 AS col1, 43
----
-659743
43

skipif mysql # not compatible
query II rowsort label-3266
SELECT ALL + - COUNT ( * ) * 63 - - 14 * 40 * - 31 * + 38 AS col1, 43
----
-659743
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3267
SELECT - 6, + CAST( 31 AS SIGNED ) - - 50 + - 98 * - COUNT( * ) * 92 AS col2
----
-6
9097

skipif mysql # not compatible
query II rowsort label-3267
SELECT - 6, + CAST ( 31 AS INTEGER ) - - 50 + - 98 * - COUNT ( * ) * 92 AS col2
----
-6
9097

query I rowsort
SELECT 35 * + 62 - - 76 AS col0
----
2246

query I rowsort
SELECT - 49 * + 40 col1
----
-1960

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

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

query II rowsort
SELECT + 85, + 77 AS col2
----
85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL - 50 * - SUM( + 99 ) * 83 AS col2
----
410850

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - 50 * - SUM ( + 99 ) * 83 AS col2
----
410850

query I rowsort
SELECT - 37 * + 93 AS col2
----
-3441

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL + 78 * - 52 * + COALESCE ( + 83, + COUNT( * ) )
----
-336648

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + 78 * - 52 * + COALESCE ( + 83, + COUNT ( * ) )
----
-336648

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL + 5 * COUNT( + 3 )
----
5

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL + 5 * COUNT ( + 3 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT MAX( - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-3276
SELECT MAX ( - 60 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT 6 * 65 DIV 56 - - 1 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3277
SELECT 6 * 65 / 56 - - 1 AS col2
----
7

query I rowsort
SELECT - 77 * - + 98
----
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT ALL ( - COUNT( + + CASE + - 69 WHEN - 51 THEN NULL WHEN + + 96 THEN 17 WHEN - NULLIF ( - - 99, 22 ) THEN NULL ELSE NULL END ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL ( - COUNT ( + + CASE + - 69 WHEN - 51 THEN NULL WHEN + + 96 THEN 17 WHEN - NULLIF ( - - 99, 22 ) THEN NULL ELSE NULL END ) ) AS col2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3281
SELECT DISTINCT COALESCE ( - + 36, - + 42, - - 27 + - 53 * + + 17 + - - MIN( + 43 ) + - 49 * ( 66 + 34 DIV - ( 44 + COUNT( * ) ) ) * + ( 55 DIV NULLIF ( 63, 58 ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT COALESCE ( - + 36, - + 42, - - 27 + - 53 * + + 17 + - - MIN ( + 43 ) + - 49 * ( 66 + 34 / - ( 44 + COUNT ( * ) ) ) * + ( 55 / NULLIF ( 63, 58 ) ) )
----
-36

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3283
SELECT DISTINCT + 98 + - 45 + - COUNT( * ) * CAST( - + 20 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + 98 + - 45 + - COUNT ( * ) * CAST ( - + 20 AS INTEGER )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT - 87 + - CAST( - + 54 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-3284
SELECT - 87 + - CAST ( - + 54 AS INTEGER )
----
-33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3286
SELECT - - COUNT( * ) + - 21 DIV 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3286
SELECT - - COUNT ( * ) + - 21 / 69 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3287
SELECT ALL 78 * - - 76, + 2 DIV 66 AS col0
----
5928
0

skipif mysql # not compatible
query II rowsort label-3287
SELECT ALL 78 * - - 76, + 2 / 66 AS col0
----
5928
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT - - CASE - 87 WHEN - NULLIF ( 5, + + AVG ( 87 ) ) THEN + COALESCE ( + 1, - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * + 85 ) * 13 WHEN + COUNT( * ) + - 29 THEN NULL END + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT - - CASE - 87 WHEN - NULLIF ( 5, + + AVG ( 87 ) ) THEN + COALESCE ( + 1, - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 85 ) * 13 WHEN + COUNT ( * ) + - 29 THEN NULL END + - 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3289
SELECT ALL - CAST( NULL AS SIGNED ) / - + 52 + - MIN( ALL + CAST( NULL AS SIGNED ) ) * + MAX( + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - CAST ( NULL AS INTEGER ) / - + 52 + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + MAX ( + 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + 71 * + + COUNT( * ) + + - ( 56 ) + 53 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3290
SELECT + 71 * + + COUNT ( * ) + + - ( 56 ) + 53 AS col0
----
68

query I rowsort
SELECT ALL + + 17 * + - COALESCE ( - 24, + 56, - 45 ) col1
----
408

query I rowsort
SELECT - - 66 * - - 34 - 86 + - 13 * + 30 + + 32 * + ( ( + 98 ) )
----
4904

query II rowsort
SELECT - 50 * 96 AS col1, 74 * - - 28 AS col2
----
-4800
2072

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

query I rowsort
SELECT DISTINCT 8 * - - 10 + - - 96
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT MAX( - 56 ) * 55 / + 35 + - 60 * + MIN( ALL + 90 ) + 82 * + 81 + + CASE 19 WHEN - 91 * 30 THEN - 53 WHEN 91 THEN + 98 END / 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT MAX ( - 56 ) * 55 / + 35 + - 60 * + MIN ( ALL + 90 ) + 82 * + 81 + + CASE 19 WHEN - 91 * 30 THEN - 53 WHEN 91 THEN + 98 END / 50
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT - COUNT( * ) * + - NULLIF ( + 23, COUNT( + 11 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - COUNT ( * ) * + - NULLIF ( + 23, COUNT ( + 11 ) ) AS col2
----
23

query I rowsort
SELECT DISTINCT 2 * + + 98
----
196

query II rowsort
SELECT DISTINCT - 62 AS col1, 5 * - - ( + ( ( 98 ) ) ) * - 23
----
-62
-11270

query I rowsort
SELECT ALL 37 * + 45 AS col0
----
1665

query II rowsort
SELECT ALL - 75 AS col0, + 14 * + 27 AS col2
----
-75
378

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT NULLIF ( + ( - + 59 ), - 57 ) + - 99 col1, - SUM( ALL - 68 )
----
-158
68

skipif mysql # not compatible
query II rowsort label-3303
SELECT NULLIF ( + ( - + 59 ), - 57 ) + - 99 col1, - SUM ( ALL - 68 )
----
-158
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3304
SELECT 20 DIV - 89 * + 60, 23 AS col0
----
0
23

skipif mysql # not compatible
query II rowsort label-3304
SELECT 20 / - 89 * + 60, 23 AS col0
----
0
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT 10 * - + 20 + + 61 + + - 10 + COUNT( * ) + + 76 + + + COUNT( * ) * 32 * 72 + + CASE - 82 WHEN - SUM( DISTINCT + 67 ) + + COUNT( * ) THEN MIN( 60 ) + CASE + CAST( NULL AS SIGNED ) WHEN 60 THEN 41 ELSE NULL END END * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT 10 * - + 20 + + 61 + + - 10 + COUNT ( * ) + + 76 + + + COUNT ( * ) * 32 * 72 + + CASE - 82 WHEN - SUM ( DISTINCT + 67 ) + + COUNT ( * ) THEN MIN ( 60 ) + CASE + CAST ( NULL AS INTEGER ) WHEN 60 THEN 41 ELSE NULL END END * 35 AS col0
----
NULL

query I rowsort
SELECT 62 - - - 21
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT CAST( NULL AS SIGNED ) + - - 68 * + 14 + + + 19 + 4 + - 86 * + - 46 + + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT CAST ( NULL AS INTEGER ) + - - 68 * + 14 + + + 19 + 4 + - 86 * + - 46 + + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3308
SELECT - 86 AS col0, - 5 * COUNT( * ) col2, + 4
----
-86
-5
4

skipif mysql # not compatible
query III rowsort label-3308
SELECT - 86 AS col0, - 5 * COUNT ( * ) col2, + 4
----
-86
-5
4

query II rowsort
SELECT ALL 87, 24 AS col0
----
87
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT SUM( ALL - 58 ) + COUNT( ALL 27 ) + + - COALESCE ( - + 0, - CASE 94 WHEN - ( - 10 ) THEN + ( + 86 ) ELSE NULL END ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-3310
SELECT SUM ( ALL - 58 ) + COUNT ( ALL 27 ) + + - COALESCE ( - + 0, - CASE 94 WHEN - ( - 10 ) THEN + ( + 86 ) ELSE NULL END ) col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3311
SELECT DISTINCT - 2 + + 67 * - 68 * - 83 + - 67, CASE CAST( NULL AS SIGNED ) WHEN + 59 THEN 11 * + - 14 * 4 + - 2 * + COUNT( * ) ELSE NULL END AS col1
----
378079
NULL

skipif mysql # not compatible
query II rowsort label-3311
SELECT DISTINCT - 2 + + 67 * - 68 * - 83 + - 67, CASE CAST ( NULL AS INTEGER ) WHEN + 59 THEN 11 * + - 14 * 4 + - 2 * + COUNT ( * ) ELSE NULL END AS col1
----
378079
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT ALL + 84 + COALESCE ( 58, + 45, ( + + 20 ) + NULLIF ( + 29, + - COUNT( * ) + - 94 * + 72 ) + 1 DIV + 3 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + 84 + COALESCE ( 58, + 45, ( + + 20 ) + NULLIF ( + 29, + - COUNT ( * ) + - 94 * + 72 ) + 1 / + 3 ) AS col2
----
142

query I rowsort
SELECT 71 + 32 + + - ( + - 60 )
----
163

query I rowsort
SELECT ALL - 57 * + 35 col1
----
-1995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT 80 + + 78 + - ( + CAST( NULL AS SIGNED ) ) / - 41 * + + 52 * + 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT 80 + + 78 + - ( + CAST ( NULL AS INTEGER ) ) / - 41 * + + 52 * + 68 col0
----
NULL

query I rowsort
SELECT DISTINCT - 39 * 11
----
-429

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

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

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

skipif mysql # not compatible
query I rowsort label-3318
SELECT 96 + + - COUNT ( * ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT + 32 * + + CAST( - COALESCE ( 61, - 43 ) AS SIGNED )
----
-1952

skipif mysql # not compatible
query I rowsort label-3319
SELECT + 32 * + + CAST ( - COALESCE ( 61, - 43 ) AS INTEGER )
----
-1952

query I rowsort
SELECT DISTINCT - + 28 * + + 6 AS col1
----
-168

query I rowsort
SELECT ALL + - 65 + - 25 AS col1
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3322
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT CAST ( NULL AS REAL ) col0
----
NULL

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

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

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

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

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

query I rowsort
SELECT + 35 * + - ( - 78 ) + 61 AS col1
----
2791

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

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

query I rowsort
SELECT ALL - 57 * + - 67
----
3819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3329
SELECT ALL - 18 col1, - 82 * + - 12 - + + 93 - - 30 * CASE + - AVG ( ALL + 91 ) WHEN CAST( NULL AS SIGNED ) THEN - + 49 * 28 END
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-3329
SELECT ALL - 18 col1, - 82 * + - 12 - + + 93 - - 30 * CASE + - AVG ( ALL + 91 ) WHEN CAST ( NULL AS INTEGER ) THEN - + 49 * 28 END
----
-18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3330
SELECT + + 62, COUNT( + 53 ) AS col2
----
62
1

skipif mysql # not compatible
query II rowsort label-3330
SELECT + + 62, COUNT ( + 53 ) AS col2
----
62
1

query II rowsort
SELECT 85 AS col0, - 93 AS col2
----
85
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + 86 * + COALESCE ( - - COUNT( * ), + + 28, - - 18 * - - COUNT( * ) ) + - ( - 30 )
----
116

skipif mysql # not compatible
query I rowsort label-3332
SELECT + 86 * + COALESCE ( - - COUNT ( * ), + + 28, - - 18 * - - COUNT ( * ) ) + - ( - 30 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL + SUM( ALL 9 ) * - 22 * - 52
----
10296

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + SUM ( ALL 9 ) * - 22 * - 52
----
10296

query I rowsort
SELECT ALL - COALESCE ( + - 51, + 59 - 93 * + - 75 ) * - + 82 * + 32
----
-133824

query I rowsort
SELECT ALL - + ( - + 85 ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT - COUNT( * ) * 40 - - CASE + 14 WHEN + ( - 72 ) THEN + COUNT( * ) * COUNT( ALL 19 ) + 66 + + COUNT( * ) ELSE + 90 END AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - COUNT ( * ) * 40 - - CASE + 14 WHEN + ( - 72 ) THEN + COUNT ( * ) * COUNT ( ALL 19 ) + 66 + + COUNT ( * ) ELSE + 90 END AS col2
----
50

query I rowsort
SELECT 11 * + 94 * + 90
----
93060

query II rowsort
SELECT 41 AS col2, + 36 AS col0
----
41
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3339
SELECT 77 AS col1, NULLIF ( 34, COUNT( DISTINCT 12 ) + + 89 + + 76 * 90 ) - + 15
----
77
19

skipif mysql # not compatible
query II rowsort label-3339
SELECT 77 AS col1, NULLIF ( 34, COUNT ( DISTINCT 12 ) + + 89 + + 76 * 90 ) - + 15
----
77
19

query I rowsort
SELECT ALL ( 50 ) + + + 24
----
74

query I rowsort
SELECT 24 * + - 74 - + ( + 35 )
----
-1811

query II rowsort
SELECT 85, 67 AS col0
----
85
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT 71 + + COALESCE ( + 67, 82 ) + CAST( + 86 AS SIGNED ) * + 56
----
4954

skipif mysql # not compatible
query I rowsort label-3343
SELECT 71 + + COALESCE ( + 67, 82 ) + CAST ( + 86 AS INTEGER ) * + 56
----
4954

query I rowsort
SELECT DISTINCT 83 + + 77
----
160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL + NULLIF ( 69, + - COUNT( * ) + - 51 + + 78 ) + - + 22
----
47

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + NULLIF ( 69, + - COUNT ( * ) + - 51 + + 78 ) + - + 22
----
47

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

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT COUNT ( * ) + + 40 - + - 50 * + 40 AS col0
----
2041

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3348
SELECT DISTINCT - COUNT( * ) col0, + CASE - + COALESCE ( + COUNT( * ), 45 * COUNT( * ) * + 55 - + ( - 60 ), COUNT( * ) ) WHEN - 99 THEN COUNT( * ) WHEN 31 THEN NULL WHEN 92 * 72 THEN NULL ELSE + COALESCE ( 56, + COUNT( * ), - ( - 78 ) DIV - NULLIF ( 76, 73 ) ) + - 47 END * 46 AS col1
----
-1
414

skipif mysql # not compatible
query II rowsort label-3348
SELECT DISTINCT - COUNT ( * ) col0, + CASE - + COALESCE ( + COUNT ( * ), 45 * COUNT ( * ) * + 55 - + ( - 60 ), COUNT ( * ) ) WHEN - 99 THEN COUNT ( * ) WHEN 31 THEN NULL WHEN 92 * 72 THEN NULL ELSE + COALESCE ( 56, + COUNT ( * ), - ( - 78 ) / - NULLIF ( 76, 73 ) ) + - 47 END * 46 AS col1
----
-1
414

query I rowsort
SELECT ALL 35 + ( - 61 ) + 80
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT MIN( DISTINCT 8 ) * + 5 * COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3350
SELECT MIN ( DISTINCT 8 ) * + 5 * COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3351
SELECT ALL - 0, + 88 * + - 95 - - COUNT( * ) col2
----
0
-8359

skipif mysql # not compatible
query II rowsort label-3351
SELECT ALL - 0, + 88 * + - 95 - - COUNT ( * ) col2
----
0
-8359

query I rowsort
SELECT DISTINCT - 98 + + COALESCE ( + ( + 51 ), 73 )
----
-47

query I rowsort
SELECT ALL 82 * - 85
----
-6970

query II rowsort
SELECT - 7 col0, - 46
----
-7
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - SUM( DISTINCT - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3355
SELECT - SUM ( DISTINCT - 88 ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT 6 DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT 6 / - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL 69 - + CASE - + CASE - 13 WHEN + COUNT( * ) + 35 THEN NULL WHEN - ( + - 71 ) * 72 THEN + COUNT( * ) - COUNT( * ) + 39 / COUNT( * ) END WHEN 12 THEN NULL WHEN - CASE 25 WHEN + 36 THEN 92 ELSE + COUNT( * ) END THEN - 89 + - 42 END + ( 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL 69 - + CASE - + CASE - 13 WHEN + COUNT ( * ) + 35 THEN NULL WHEN - ( + - 71 ) * 72 THEN + COUNT ( * ) - COUNT ( * ) + 39 / COUNT ( * ) END WHEN 12 THEN NULL WHEN - CASE 25 WHEN + 36 THEN 92 ELSE + COUNT ( * ) END THEN - 89 + - 42 END + ( 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT DISTINCT - 56 AS col0, - CASE + - 97 WHEN + 68 * - + COUNT( DISTINCT NULLIF ( + + 35, - 61 ) ) THEN 10 END + - - ( 84 ) * COUNT( * ) AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-3358
SELECT DISTINCT - 56 AS col0, - CASE + - 97 WHEN + 68 * - + COUNT ( DISTINCT NULLIF ( + + 35, - 61 ) ) THEN 10 END + - - ( 84 ) * COUNT ( * ) AS col0
----
-56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT DISTINCT COALESCE ( + 30, CASE - 35 WHEN - 53 THEN - 71 END * + 14, + 99 ) - 71 - 60 * - + CAST( NULL AS SIGNED ) / 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT COALESCE ( + 30, CASE - 35 WHEN - 53 THEN - 71 END * + 14, + 99 ) - 71 - 60 * - + CAST ( NULL AS INTEGER ) / 69 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT 74 * + 25 * 60 DIV 6 + + 42
----
18542

skipif mysql # not compatible
query I rowsort label-3360
SELECT 74 * + 25 * 60 / 6 + + 42
----
18542

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT ALL - 52 DIV 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - 52 / 48 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT + COUNT( * ) * - - 7 * + 95 + - - 47 + + COUNT( * ) AS col2
----
713

skipif mysql # not compatible
query I rowsort label-3362
SELECT + COUNT ( * ) * - - 7 * + 95 + - - 47 + + COUNT ( * ) AS col2
----
713

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT DISTINCT 45 * - 19 * COUNT( * )
----
-855

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT 45 * - 19 * COUNT ( * )
----
-855

query I rowsort
SELECT 84 + 32 + - + 81 + 95
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3365
SELECT - + 28 AS col2, + 14 * - NULLIF ( + 3, 89 ) * + + COUNT( * )
----
-28
-42

skipif mysql # not compatible
query II rowsort label-3365
SELECT - + 28 AS col2, + 14 * - NULLIF ( + 3, 89 ) * + + COUNT ( * )
----
-28
-42

query II rowsort
SELECT 82 AS col1, + 16 AS col1
----
82
16

query I rowsort
SELECT ALL - + 50 * + 29 AS col2
----
-1450

query I rowsort
SELECT + 33 + 36
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - 42 * + CASE - 10 WHEN 89 + + CASE 59 WHEN COALESCE ( 66, + MIN( ALL 18 ) ) THEN NULL WHEN - - 35 THEN - 43 * 12 + COUNT( * ) ELSE - COUNT( * ) * 13 END THEN NULL WHEN COUNT( * ) / 89 THEN - 32 ELSE - 7 END AS col2
----
294

skipif mysql # not compatible
query I rowsort label-3369
SELECT - 42 * + CASE - 10 WHEN 89 + + CASE 59 WHEN COALESCE ( 66, + MIN ( ALL 18 ) ) THEN NULL WHEN - - 35 THEN - 43 * 12 + COUNT ( * ) ELSE - COUNT ( * ) * 13 END THEN NULL WHEN COUNT ( * ) / 89 THEN - 32 ELSE - 7 END AS col2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - COUNT( * ) + - 97
----
-98

skipif mysql # not compatible
query I rowsort label-3370
SELECT - COUNT ( * ) + - 97
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT 25 AS col1, MAX( DISTINCT - - 2 )
----
25
2

skipif mysql # not compatible
query II rowsort label-3371
SELECT 25 AS col1, MAX ( DISTINCT - - 2 )
----
25
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3372
SELECT ALL - 64 AS col0, - SUM( ALL - 73 )
----
-64
73

skipif mysql # not compatible
query II rowsort label-3372
SELECT ALL - 64 AS col0, - SUM ( ALL - 73 )
----
-64
73

query I rowsort
SELECT CASE - 44 WHEN - 5 THEN 76 WHEN - 31 + - ( - 9 ) THEN + 10 + - 37 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT ALL - CASE COUNT( + CASE ( + 92 ) WHEN 25 - 94 * 31 * + CAST( NULL AS SIGNED ) * 29 THEN - 10 / - 95 + 73 ELSE + 78 + CAST( NULL AS SIGNED ) * 65 END ) WHEN + 25 THEN - SUM( + 98 ) + - CASE 67 WHEN + CAST( NULL AS SIGNED ) * - 22 + - COUNT( ALL 32 + - CAST( - 10 AS SIGNED ) * 84 ) THEN 5 END * - COUNT( * ) WHEN 58 THEN + COUNT( DISTINCT 47 ) ELSE + 66 * 47 END
----
-3102

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - CASE COUNT ( + CASE ( + 92 ) WHEN 25 - 94 * 31 * + CAST ( NULL AS INTEGER ) * 29 THEN - 10 / - 95 + 73 ELSE + 78 + CAST ( NULL AS INTEGER ) * 65 END ) WHEN + 25 THEN - SUM ( + 98 ) + - CASE 67 WHEN + CAST ( NULL AS INTEGER ) * - 22 + - COUNT ( ALL 32 + - CAST ( - 10 AS INTEGER ) * 84 ) THEN 5 END * - COUNT ( * ) WHEN 58 THEN + COUNT ( DISTINCT 47 ) ELSE + 66 * 47 END
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - - MIN( DISTINCT 48 ) * + 9
----
432

skipif mysql # not compatible
query I rowsort label-3375
SELECT - - MIN ( DISTINCT 48 ) * + 9
----
432

query I rowsort
SELECT - + 82 + - 19
----
-101

query II rowsort
SELECT DISTINCT + - 56, + 43 * + 92 + + - NULLIF ( + 14, - AVG ( DISTINCT + + 2 ) + - 23 / - 84 ) AS col0
----
-56
3942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3378
SELECT - 66 * + NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * + 14 ) + - + 27, 66 + 30 col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-3378
SELECT - 66 * + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + 14 ) + - + 27, 66 + 30 col1
----
NULL
96

query II rowsort
SELECT + 48, 40 * 14 AS col0
----
48
560

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - COALESCE ( + - COUNT( * ), - 9, + 67 * + - 14 ) * - 5 * + 36 * - COALESCE ( - 1, + 43 + - + 43 ) AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-3380
SELECT - COALESCE ( + - COUNT ( * ), - 9, + 67 * + - 14 ) * - 5 * + 36 * - COALESCE ( - 1, + 43 + - + 43 ) AS col2
----
-180

query I rowsort
SELECT ALL - + 14 * + 37 + - ( 97 )
----
-615

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT NULLIF ( 31, NULLIF ( - + 62, + - 99 * - 47 + COUNT( * ) ) ) AS col0, + 30 * - + 79
----
31
-2370

skipif mysql # not compatible
query II rowsort label-3383
SELECT NULLIF ( 31, NULLIF ( - + 62, + - 99 * - 47 + COUNT ( * ) ) ) AS col0, + 30 * - + 79
----
31
-2370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL + NULLIF ( + + 7, - + COUNT( * ) + + 81 + - - CAST( - 64 AS SIGNED ) * + 69 * + - 24 ) * + + 95 * - 59 + + ( 43 ) AS col2
----
-39192

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + NULLIF ( + + 7, - + COUNT ( * ) + + 81 + - - CAST ( - 64 AS INTEGER ) * + 69 * + - 24 ) * + + 95 * - 59 + + ( 43 ) AS col2
----
-39192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT ALL - 60 * + + ( + + 19 ) + NULLIF ( + 72, 79 ) + + CAST( 43 AS SIGNED ) AS col0
----
-1025

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - 60 * + + ( + + 19 ) + NULLIF ( + 72, 79 ) + + CAST ( 43 AS INTEGER ) AS col0
----
-1025

query I rowsort
SELECT DISTINCT - ( - ( - 91 ) ) * + + 64 * - 32 AS col2
----
186368

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT + 92 * ( - 61 ) - + + 23 DIV 59
----
-5612

skipif mysql # not compatible
query I rowsort label-3387
SELECT + 92 * ( - 61 ) - + + 23 / 59
----
-5612

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT - 27 * COUNT( * ) * - - 55 + - + 30 + - NULLIF ( 49, + 0 )
----
-1564

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - 27 * COUNT ( * ) * - - 55 + - + 30 + - NULLIF ( 49, + 0 )
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT + 18 * + - CAST( - - 53 AS SIGNED )
----
-954

skipif mysql # not compatible
query I rowsort label-3389
SELECT + 18 * + - CAST ( - - 53 AS INTEGER )
----
-954

onlyif mysql # aggregate syntax: 
query II rowsort label-3390
SELECT COUNT( DISTINCT + 40 ) AS col2, - 40 AS col2
----
1
-40

skipif mysql # not compatible
query II rowsort label-3390
SELECT COUNT ( DISTINCT + 40 ) AS col2, - 40 AS col2
----
1
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3391
SELECT ALL 17 * + 91 + + 32 * - + 32 + + SUM( - 44 ) - - COUNT( * ) AS col1, + 53 DIV SUM( DISTINCT 39 )
----
480
1

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL 17 * + 91 + + 32 * - + 32 + + SUM ( - 44 ) - - COUNT ( * ) AS col1, + 53 / SUM ( DISTINCT 39 )
----
480
1

query I rowsort
SELECT + COALESCE ( 5, 95 * - - 30, + 70 + 44 ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT + NULLIF ( + CAST( + 64 AS SIGNED ), ( + ( 52 ) ) )
----
64

skipif mysql # not compatible
query I rowsort label-3393
SELECT + NULLIF ( + CAST ( + 64 AS INTEGER ), ( + ( 52 ) ) )
----
64

query I rowsort
SELECT - 58 + 7 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT 85 * + MAX( ALL - - 26 ) * - - 42 + - 0 - + CASE + + 10 WHEN + 89 THEN NULL WHEN + 72 - - ( - 74 ) THEN 60 * + 68 - 30 * - MAX( ALL CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT 85 * + MAX ( ALL - - 26 ) * - - 42 + - 0 - + CASE + + 10 WHEN + 89 THEN NULL WHEN + 72 - - ( - 74 ) THEN 60 * + 68 - 30 * - MAX ( ALL CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT ALL 28 * - + COUNT( * ) * + 83 AS col0, + 87 + - - 21
----
-2324
108

skipif mysql # not compatible
query II rowsort label-3396
SELECT ALL 28 * - + COUNT ( * ) * + 83 AS col0, + 87 + - - 21
----
-2324
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT + COALESCE ( + + 94, 47 - - - 18, 21 * - + 35 * + COUNT( * ) - 14 * + - ( + + 73 ) DIV 85 DIV - COUNT( * ) ) + 75 AS col1
----
169

skipif mysql # not compatible
query I rowsort label-3397
SELECT + COALESCE ( + + 94, 47 - - - 18, 21 * - + 35 * + COUNT ( * ) - 14 * + - ( + + 73 ) / 85 / - COUNT ( * ) ) + 75 AS col1
----
169

query I rowsort
SELECT DISTINCT - 67 - + 28 col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT + + 87 + 81 + - 63 DIV + - 4 AS col1
----
183

skipif mysql # not compatible
query I rowsort label-3399
SELECT + + 87 + 81 + - 63 / + - 4 AS col1
----
183

query I rowsort
SELECT ALL - 23 * + 50
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT NULLIF ( + + 80, 80 * - MAX( ALL + 21 ) )
----
80

skipif mysql # not compatible
query I rowsort label-3401
SELECT NULLIF ( + + 80, 80 * - MAX ( ALL + 21 ) )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT + 86 + - - 63 * + + COUNT( * ) AS col2, 60 * - 89 + - ( + MIN( NULLIF ( + 7, 69 ) ) ) * - 98
----
149
-4654

skipif mysql # not compatible
query II rowsort label-3402
SELECT + 86 + - - 63 * + + COUNT ( * ) AS col2, 60 * - 89 + - ( + MIN ( NULLIF ( + 7, 69 ) ) ) * - 98
----
149
-4654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3403
SELECT MAX( ALL - - 67 ), COALESCE ( - COALESCE ( 93, 19, + - 53 + - 5 * + 0 DIV + - ( 48 ) * + 71 * 39 + COALESCE ( + ( - 22 ), 7 * 84, 37 * + 96, + COUNT( 58 ) * CAST( - 97 DIV - 19 AS SIGNED ) - - COUNT( * ) ), 89 * 31 ), 5 * + 25 ) AS col0
----
67
-93

skipif mysql # not compatible
query II rowsort label-3403
SELECT MAX ( ALL - - 67 ), COALESCE ( - COALESCE ( 93, 19, + - 53 + - 5 * + 0 / + - ( 48 ) * + 71 * 39 + COALESCE ( + ( - 22 ), 7 * 84, 37 * + 96, + COUNT ( 58 ) * CAST ( - 97 / - 19 AS INTEGER ) - - COUNT ( * ) ), 89 * 31 ), 5 * + 25 ) AS col0
----
67
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3404
SELECT ALL MAX( + 90 ) AS col0, + COUNT( * ) AS col2
----
90
1

skipif mysql # not compatible
query II rowsort label-3404
SELECT ALL MAX ( + 90 ) AS col0, + COUNT ( * ) AS col2
----
90
1

query II rowsort
SELECT ALL - 16 + - 97, - 28 AS col0
----
-113
-28

query I rowsort
SELECT DISTINCT + 47 * + NULLIF ( - 6, 8 ) * - 73 + 83 AS col0
----
20669

onlyif mysql # aggregate syntax: 
query II rowsort label-3407
SELECT DISTINCT 59 + - 75 AS col2, + COUNT( * ) + + + 6
----
-16
7

skipif mysql # not compatible
query II rowsort label-3407
SELECT DISTINCT 59 + - 75 AS col2, + COUNT ( * ) + + + 6
----
-16
7

query I rowsort
SELECT ALL 63 + 23 + 5 AS col1
----
91

query I rowsort
SELECT - 22 * + - ( - ( - + 62 ) ) - + 72 * + + 73 + 32
----
-3860

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + COUNT( - - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3410
SELECT + COUNT ( - - 30 ) AS col2
----
1

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

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

query I rowsort
SELECT + 31 * - 61
----
-1891

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT + 70, - COUNT( * ) + COUNT( * ) AS col0
----
70
0

skipif mysql # not compatible
query II rowsort label-3413
SELECT + 70, - COUNT ( * ) + COUNT ( * ) AS col0
----
70
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT 1 / - CAST( NULL AS SIGNED ) + + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT 1 / - CAST ( NULL AS INTEGER ) + + 97 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + 88 * + ( + COUNT( * ) ) - - COUNT( * ) * 25 * 66
----
1738

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 88 * + ( + COUNT ( * ) ) - - COUNT ( * ) * 25 * 66
----
1738

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3418
SELECT ALL 38 DIV COUNT( * ) + 71 * - 7 + 39 AS col1
----
-420

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL 38 / COUNT ( * ) + 71 * - 7 + 39 AS col1
----
-420

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3420
SELECT + 75 DIV - + 52 + - 99 AS col1, 87 * + 0 AS col1
----
-100
0

skipif mysql # not compatible
query II rowsort label-3420
SELECT + 75 / - + 52 + - 99 AS col1, 87 * + 0 AS col1
----
-100
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3421
SELECT + 64 + + 90 * - COALESCE ( 31, - COUNT( * ) + - 21 + - - 84 * + + MAX( DISTINCT + - 8 ) DIV COALESCE ( - 28, + - 34, 9 ) * 60 + 48 * - 79, - ( 82 ) ) AS col0
----
-2726

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 64 + + 90 * - COALESCE ( 31, - COUNT ( * ) + - 21 + - - 84 * + + MAX ( DISTINCT + - 8 ) / COALESCE ( - 28, + - 34, 9 ) * 60 + 48 * - 79, - ( 82 ) ) AS col0
----
-2726

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT ALL 50 * - 51 - 68 + - 91 DIV + - 15 AS col2
----
-2612

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL 50 * - 51 - 68 + - 91 / + - 15 AS col2
----
-2612

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT - 34 * 82 * - + ( 82 ), - COUNT( * ) col2
----
228616
-1

skipif mysql # not compatible
query II rowsort label-3423
SELECT - 34 * 82 * - + ( 82 ), - COUNT ( * ) col2
----
228616
-1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3425
SELECT DISTINCT - 81 * 54 DIV - 13 AS col0, + 39 * + 4
----
336
156

skipif mysql # not compatible
query II rowsort label-3425
SELECT DISTINCT - 81 * 54 / - 13 AS col0, + 39 * + 4
----
336
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT - 87 DIV + - 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 87 / + - 53 AS col0
----
1

query II rowsort
SELECT ALL + + 95 col2, + 14
----
95
14

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

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - + 79 )
----
1

query II rowsort
SELECT - - 35, + 77 AS col1
----
35
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT + 88 - - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3430
SELECT + 88 - - COUNT ( * ) AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3431
SELECT - - 45, - CAST( NULL AS SIGNED ) + + 75 + + NULLIF ( + 19, 84 * + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + - 38 + - 79 ) * 82 col1
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3431
SELECT - - 45, - CAST ( NULL AS INTEGER ) + + 75 + + NULLIF ( + 19, 84 * + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + - 38 + - 79 ) * 82 col1
----
45
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3432
SELECT - COALESCE ( - + 34, + COUNT( * ) * - - 61 * + 79 * - + MAX( ALL - 17 ) DIV + 95 * 22 * + 87 + + - COALESCE ( 97, - COUNT( * ) + - 33, CAST( COUNT( * ) AS SIGNED ) ) - - 84, - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - 49 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3432
SELECT - COALESCE ( - + 34, + COUNT ( * ) * - - 61 * + 79 * - + MAX ( ALL - 17 ) / + 95 * 22 * + 87 + + - COALESCE ( 97, - COUNT ( * ) + - 33, CAST ( COUNT ( * ) AS INTEGER ) ) - - 84, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - 49 ) AS col1
----
34

query I rowsort
SELECT NULLIF ( - 98, - AVG ( 70 ) ) * - + ( - + 83 ) + - 69 AS col2
----
-8203

query I rowsort
SELECT DISTINCT - 18 + + + 3
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3435
SELECT 60 AS col1, COALESCE ( 22, + 30 * ( + COALESCE ( 33, - 30 + + - 22 * COUNT( * ) * - - CAST( - - 64 AS SIGNED ) ) ) + + ( + COUNT( * ) ) + + COALESCE ( - 42, 48 * 11 ), CAST( COUNT( * ) AS SIGNED ) * ( ( - ( COUNT( * ) ) ) + - COUNT( * ) ) ) - - COUNT( * ) AS col2
----
60
23

skipif mysql # not compatible
query II rowsort label-3435
SELECT 60 AS col1, COALESCE ( 22, + 30 * ( + COALESCE ( 33, - 30 + + - 22 * COUNT ( * ) * - - CAST ( - - 64 AS INTEGER ) ) ) + + ( + COUNT ( * ) ) + + COALESCE ( - 42, 48 * 11 ), CAST ( COUNT ( * ) AS INTEGER ) * ( ( - ( COUNT ( * ) ) ) + - COUNT ( * ) ) ) - - COUNT ( * ) AS col2
----
60
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3436
SELECT - + 60 col1, + 91 DIV + - COUNT( * )
----
-60
-91

skipif mysql # not compatible
query II rowsort label-3436
SELECT - + 60 col1, + 91 / + - COUNT ( * )
----
-60
-91

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

query II rowsort
SELECT DISTINCT 0 AS col0, - 20
----
0
-20

query I rowsort
SELECT + 44 + + 88
----
132

query I rowsort
SELECT ALL 37 + 51
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT 60 + - COALESCE ( + 25, COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT 60 + - COALESCE ( + 25, COUNT ( * ) )
----
35

query I rowsort
SELECT ALL 19 + - + 63 + + 68
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT DISTINCT 89 DIV - 14
----
-6

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT 89 / - 14
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT 65 + 49 AS col0, + COUNT( * ) * + 54 * 51
----
114
2754

skipif mysql # not compatible
query II rowsort label-3444
SELECT 65 + 49 AS col0, + COUNT ( * ) * + 54 * 51
----
114
2754

query I rowsort
SELECT ALL - 57 * + 41
----
-2337

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT 24 - - 91 + + - MIN( + NULLIF ( + - 8, + 93 ) ) * 31
----
363

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT 24 - - 91 + + - MIN ( + NULLIF ( + - 8, + 93 ) ) * 31
----
363

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3447
SELECT ALL 83 - 97 AS col1, + MAX( - + CAST( NULL AS DECIMAL ) )
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL 83 - 97 AS col1, + MAX ( - + CAST ( NULL AS REAL ) )
----
-14
NULL

query I rowsort
SELECT ALL 59 - + 47
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT CAST( - - 48 AS SIGNED ) * - 65
----
-3120

skipif mysql # not compatible
query I rowsort label-3449
SELECT CAST ( - - 48 AS INTEGER ) * - 65
----
-3120

query I rowsort
SELECT 0 * 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL 64 * SUM( + - 41 )
----
-2624

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL 64 * SUM ( + - 41 )
----
-2624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3452
SELECT ALL 23 - - NULLIF ( + 3, + - 62 / - 49 * + 57 ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL 23 - - NULLIF ( + 3, + - 62 / - 49 * + 57 ) * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - MIN( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - MIN ( + 0 )
----
0

query I rowsort
SELECT ALL + 67 - - 49 * + + 26 AS col2
----
1341

query I rowsort
SELECT 90 * 5 * - 92
----
-41400

query I rowsort
SELECT DISTINCT - 49 * - + 10 AS col2
----
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT DISTINCT - 74 * + - NULLIF ( + 53, - 14 * + + NULLIF ( COALESCE ( + - ( CAST( NULL AS SIGNED ) ), + COALESCE ( - 5, + - ( - - 89 ) ) * + 77 + 89 - + 50 ), 50 ) + - 79 )
----
3922

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT - 74 * + - NULLIF ( + 53, - 14 * + + NULLIF ( COALESCE ( + - ( CAST ( NULL AS INTEGER ) ), + COALESCE ( - 5, + - ( - - 89 ) ) * + 77 + 89 - + 50 ), 50 ) + - 79 )
----
3922

query I rowsort
SELECT 80 - + 39
----
41

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

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

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

query I rowsort
SELECT DISTINCT - + 2 * 6
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT ALL + - 31 + + - NULLIF ( - 84, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 17 ) + 11 - - + 67
----
131

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + - 31 + + - NULLIF ( - 84, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 17 ) + 11 - - + 67
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT MAX( - 95 ) + + - 1 + 87 * - 32 + + - 90 - 94 * + + 10 * - - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT MAX ( - 95 ) + + - 1 + 87 * - 32 + + - 90 - 94 * + + 10 * - - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 73, + - 1 / + 34 * - 78 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT ALL - 80 + - - 41 + + 91 DIV - + 41 * COUNT( * ) + + 18 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - 80 + - - 41 + + 91 / - + 41 * COUNT ( * ) + + 18 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3466
SELECT ALL 79 + 90, + 92 + - + 14 DIV - - 86 + + 68 * - - 61 + + + 12 - COUNT( * ) AS col0
----
169
4251

skipif mysql # not compatible
query II rowsort label-3466
SELECT ALL 79 + 90, + 92 + - + 14 / - - 86 + + 68 * - - 61 + + + 12 - COUNT ( * ) AS col0
----
169
4251

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

skipif mysql # not compatible
query I rowsort label-3467
SELECT 98 + + - CAST ( - COUNT ( * ) AS INTEGER )
----
99

query I rowsort
SELECT + NULLIF ( - 89, - 45 ) * - 22 AS col2
----
1958

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

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

query I rowsort
SELECT - CASE + - 20 WHEN - 16 THEN NULL WHEN + 27 THEN 89 + + 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + 15 * COALESCE ( SUM( DISTINCT + 67 ), + + 45, - COUNT( - 0 ) * 90 ) AS col1
----
1005

skipif mysql # not compatible
query I rowsort label-3471
SELECT + 15 * COALESCE ( SUM ( DISTINCT + 67 ), + + 45, - COUNT ( - 0 ) * 90 ) AS col1
----
1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT - 85 + + - 76 + - - 41 + + 18 DIV - ( + MAX( DISTINCT - 58 ) )
----
-120

skipif mysql # not compatible
query I rowsort label-3472
SELECT - 85 + + - 76 + - - 41 + + 18 / - ( + MAX ( DISTINCT - 58 ) )
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3473
SELECT DISTINCT + COUNT( * ) + + - 8 - - - 43 * - + COUNT( * ), - 49 DIV - - 25 AS col2
----
36
-1

skipif mysql # not compatible
query II rowsort label-3473
SELECT DISTINCT + COUNT ( * ) + + - 8 - - - 43 * - + COUNT ( * ), - 49 / - - 25 AS col2
----
36
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT ALL COUNT( * ) AS col1, - 46 * + + COALESCE ( + COUNT( * ), 52 ) * - ( - - 62 ) AS col1
----
1
2852

skipif mysql # not compatible
query II rowsort label-3474
SELECT ALL COUNT ( * ) AS col1, - 46 * + + COALESCE ( + COUNT ( * ), 52 ) * - ( - - 62 ) AS col1
----
1
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL COUNT( DISTINCT + 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL COUNT ( DISTINCT + 8 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT CASE 50 WHEN - ( + + 5 ) / + NULLIF ( 28, + - 47 ) + CASE - + 2 WHEN + - 15 THEN - ( - 60 ) ELSE + - 85 * - 46 + + + 56 + - ( 26 ) * - COUNT( * ) END + - 0 THEN NULL WHEN 38 + + COUNT( * ) THEN 96 * 2 ELSE NULL END + 5 / 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT CASE 50 WHEN - ( + + 5 ) / + NULLIF ( 28, + - 47 ) + CASE - + 2 WHEN + - 15 THEN - ( - 60 ) ELSE + - 85 * - 46 + + + 56 + - ( 26 ) * - COUNT ( * ) END + - 0 THEN NULL WHEN 38 + + COUNT ( * ) THEN 96 * 2 ELSE NULL END + 5 / 46
----
NULL

query I rowsort
SELECT ALL 83 - + 64 * + 67 AS col1
----
-4205

query I rowsort
SELECT 45 * + 56 AS col1
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT + CAST( NULL AS SIGNED ) * + 21 + - 99 * - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT + CAST ( NULL AS INTEGER ) * + 21 + - 99 * - + 58
----
NULL

query I rowsort
SELECT 71 * - 25 AS col2
----
-1775

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL - ( + 18 ) * - COUNT( * ) * + COALESCE ( - MAX( ALL + 84 ), ( 66 ) * - 29 ) * + + 12 * + 89 + - COUNT( * ) + + - ( + 6 ) + 73 * COUNT( * )
----
-1614750

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - ( + 18 ) * - COUNT ( * ) * + COALESCE ( - MAX ( ALL + 84 ), ( 66 ) * - 29 ) * + + 12 * + 89 + - COUNT ( * ) + + - ( + 6 ) + 73 * COUNT ( * )
----
-1614750

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL 70 * - COUNT( * ) * - 72
----
5040

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL 70 * - COUNT ( * ) * - 72
----
5040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3484
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + CAST( NULL AS DECIMAL ) / 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + CAST ( NULL AS REAL ) / 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3485
SELECT DISTINCT - 41 * - ( - MIN( + 33 ) ) + + + 89 AS col1, + 68 - 27 + - - COUNT( * ) + - 16 * + 98 * + 56 * - 90 - + 17 * + CAST( NULL AS SIGNED ) + + - 67
----
-1264
NULL

skipif mysql # not compatible
query II rowsort label-3485
SELECT DISTINCT - 41 * - ( - MIN ( + 33 ) ) + + + 89 AS col1, + 68 - 27 + - - COUNT ( * ) + - 16 * + 98 * + 56 * - 90 - + 17 * + CAST ( NULL AS INTEGER ) + + - 67
----
-1264
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3486
SELECT + ( - 49 ) * COALESCE ( + 9, 97 + - CAST( COALESCE ( - 30, - 44 + + CAST( 51 AS SIGNED ) ) AS SIGNED ) + - 0 + - 26 + 76 * 4 * + 12 ) * - 83 + - 32
----
36571

skipif mysql # not compatible
query I rowsort label-3486
SELECT + ( - 49 ) * COALESCE ( + 9, 97 + - CAST ( COALESCE ( - 30, - 44 + + CAST ( 51 AS INTEGER ) ) AS INTEGER ) + - 0 + - 26 + 76 * 4 * + 12 ) * - 83 + - 32
----
36571

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT + 34 * MAX( DISTINCT 72 ) * + 24 * 47 + - + COUNT( * ) + 37
----
2761380

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + 34 * MAX ( DISTINCT 72 ) * + 24 * 47 + - + COUNT ( * ) + 37
----
2761380

query I rowsort
SELECT + 97 * - - 62
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT + ( COALESCE ( 86, - COUNT( * ) * + 28 + - - 82 - - 30 * - 30, 9 ) )
----
86

skipif mysql # not compatible
query I rowsort label-3489
SELECT + ( COALESCE ( 86, - COUNT ( * ) * + 28 + - - 82 - - 30 * - 30, 9 ) )
----
86

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

query I rowsort
SELECT - - 23 * 41 * - + 26 AS col1
----
-24518

query II rowsort
SELECT ALL + 18 + 18 * + 95 AS col2, 85 AS col0
----
1728
85

query I rowsort
SELECT + 86 - - 93 AS col2
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT ALL - + 24 * 33 DIV - 85
----
9

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - + 24 * 33 / - 85
----
9

query I rowsort
SELECT + 99 - - - 90
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT - MIN( - 37 ) * - + 57 col1
----
-2109

skipif mysql # not compatible
query I rowsort label-3496
SELECT - MIN ( - 37 ) * - + 57 col1
----
-2109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT - 35 + - COUNT( ALL 47 ) + + NULLIF ( - 23, 31 * 96 ) + - MAX( DISTINCT - 24 ) + - 19 * 84 DIV 72 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - 35 + - COUNT ( ALL 47 ) + + NULLIF ( - 23, 31 * 96 ) + - MAX ( DISTINCT - 24 ) + - 19 * 84 / 72 AS col1
----
-57

query I rowsort
SELECT ALL - 77 - - 10
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT DISTINCT NULLIF ( - ( - CAST( - + 0 AS SIGNED ) ), - 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT NULLIF ( - ( - CAST ( - + 0 AS INTEGER ) ), - 70 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + + 82 * + - 91 - + 96 AS col0
----
-7558

query I rowsort
SELECT ALL - 29 * + ( + 35 )
----
-1015

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT - CASE - - 86 WHEN - + 56 THEN NULL ELSE + - 4 + - 74 END - + - COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3502
SELECT - CASE - - 86 WHEN - + 56 THEN NULL ELSE + - 4 + - 74 END - + - COUNT ( * ) AS col0
----
79

query I rowsort
SELECT ALL + 66 - - + 21
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3504
SELECT - MAX( + NULLIF ( - NULLIF ( + + 47, - ( 49 ) * - CAST( NULL AS DECIMAL ) ), 36 - + 34 + + ( 87 ) + - 1 * 4 * + + 16 ) ) DIV + ( + CAST( + 58 AS SIGNED ) ) * MIN( DISTINCT + 27 + - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT - MAX ( + NULLIF ( - NULLIF ( + + 47, - ( 49 ) * - CAST ( NULL AS REAL ) ), 36 - + 34 + + ( 87 ) + - 1 * 4 * + + 16 ) ) / + ( + CAST ( + 58 AS INTEGER ) ) * MIN ( DISTINCT + 27 + - 31 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT - 71 * 23 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT - 71 * 23 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT + 48 - 34 + + + 68 + COUNT( * ) + 13 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3506
SELECT + 48 - 34 + + + 68 + COUNT ( * ) + 13 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT 25 AS col2, 65 * COUNT( * ) * - - COALESCE ( COUNT( * ), - ( - 16 ), + 50 * MAX( 34 ) ) * - MAX( DISTINCT 26 ) * - + 85 + - 76 AS col1
----
25
143574

skipif mysql # not compatible
query II rowsort label-3507
SELECT 25 AS col2, 65 * COUNT ( * ) * - - COALESCE ( COUNT ( * ), - ( - 16 ), + 50 * MAX ( 34 ) ) * - MAX ( DISTINCT 26 ) * - + 85 + - 76 AS col1
----
25
143574

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

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

query I rowsort
SELECT ALL - 67 * 91
----
-6097

query I rowsort
SELECT + 5 * - 69
----
-345

query II rowsort
SELECT + 98 col0, - 31
----
98
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT ALL + 9 DIV + 98 + 91 + - 25 * + 50 AS col1
----
-1159

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + 9 / + 98 + 91 + - 25 * + 50 AS col1
----
-1159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT CAST( 86 AS SIGNED ) * + 16 / 70 + - - CASE + - 93 WHEN + 75 * - + 54 THEN + COALESCE ( - CAST( NULL AS SIGNED ), + + COALESCE ( - 82, - - 25 ) + + 28 ) WHEN - 18 THEN - 15 + + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT CAST ( 86 AS INTEGER ) * + 16 / 70 + - - CASE + - 93 WHEN + 75 * - + 54 THEN + COALESCE ( - CAST ( NULL AS INTEGER ), + + COALESCE ( - 82, - - 25 ) + + 28 ) WHEN - 18 THEN - 15 + + 9 END
----
NULL

query I rowsort
SELECT ( - 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT + CASE + - 34 WHEN - 65 THEN - 49 * 83 WHEN + - 83 * + 97 THEN + 30 WHEN + - 37 * + ( - - 84 ) THEN - 86 + - COUNT( * ) + + COUNT( * ) + 98 + 92 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT + CASE + - 34 WHEN - 65 THEN - 49 * 83 WHEN + - 83 * + 97 THEN + 30 WHEN + - 37 * + ( - - 84 ) THEN - 86 + - COUNT ( * ) + + COUNT ( * ) + 98 + 92 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT ALL + 59 * 73 + + CAST( - ( 23 ) AS SIGNED ) AS col0
----
4284

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + 59 * 73 + + CAST ( - ( 23 ) AS INTEGER ) AS col0
----
4284

query I rowsort
SELECT + 75 * + 79 col2
----
5925

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL + COUNT( * ) * + - 67 + + + 56 * SUM( ALL + + CASE - 78 WHEN + ( 9 ) THEN - 71 * + CASE - - 31 WHEN 6 + - 14 THEN 73 * - - 72 - + 7 WHEN + 28 THEN NULL ELSE NULL END ELSE ( 87 ) END )
----
4805

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + COUNT ( * ) * + - 67 + + + 56 * SUM ( ALL + + CASE - 78 WHEN + ( 9 ) THEN - 71 * + CASE - - 31 WHEN 6 + - 14 THEN 73 * - - 72 - + 7 WHEN + 28 THEN NULL ELSE NULL END ELSE ( 87 ) END )
----
4805

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL 11 DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 11 / + 15
----
0

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

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

query I rowsort
SELECT DISTINCT 29 * - 81 * + - 73
----
171477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3523
SELECT ALL - 30 * + 90 DIV - 3 + + 56 + + COUNT( * )
----
957

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL - 30 * + 90 / - 3 + + 56 + + COUNT ( * )
----
957

query I rowsort
SELECT - 55 * + 93 + + - 98 * NULLIF ( 73, + 39 ) AS col2
----
-12269

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

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

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

query I rowsort
SELECT - 56 + - NULLIF ( + + 29, - 14 + - + 3 + - 4 )
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - + ( - 45 ) * 33 + + + COUNT( * ) * 82 AS col2
----
1567

skipif mysql # not compatible
query I rowsort label-3529
SELECT - + ( - 45 ) * 33 + + + COUNT ( * ) * 82 AS col2
----
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT - - 86 - - 28 + 11 + - + SUM( DISTINCT + 81 ) * - 88 * - + 31 * - 43
----
9501749

skipif mysql # not compatible
query I rowsort label-3530
SELECT - - 86 - - 28 + 11 + - + SUM ( DISTINCT + 81 ) * - 88 * - + 31 * - 43
----
9501749

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL NULLIF ( 94, 47 / + 34 * - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL NULLIF ( 94, 47 / + 34 * - COUNT ( * ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + - 51 + + 23 - 6 * - 49 * - COUNT( * )
----
-322

skipif mysql # not compatible
query I rowsort label-3534
SELECT + - 51 + + 23 - 6 * - 49 * - COUNT ( * )
----
-322

query I rowsort
SELECT + 72 * 44 AS col0
----
3168

query I rowsort
SELECT ALL CASE - - 39 WHEN - 99 THEN NULL ELSE 22 - + 88 + - + 45 * + - 66 END AS col2
----
2904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT - CAST( 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3537
SELECT - CAST ( 57 AS INTEGER ) AS col1
----
-57

query I rowsort
SELECT - ( + 88 ) * + 26 + - 8 AS col0
----
-2296

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT DISTINCT + COUNT( ALL - 44 ) * - 15 * ( - 44 ), - 34 col1
----
660
-34

skipif mysql # not compatible
query II rowsort label-3539
SELECT DISTINCT + COUNT ( ALL - 44 ) * - 15 * ( - 44 ), - 34 col1
----
660
-34

query I rowsort
SELECT ALL ( + 10 ) col0
----
10

query I rowsort
SELECT ALL + 35 * + + 63
----
2205

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT - ( 95 ) DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-3542
SELECT - ( 95 ) / + 16
----
-5

query II rowsort
SELECT ALL 42 * + + 74 AS col2, - ( - - 6 )
----
3108
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT DISTINCT CAST( + 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT CAST ( + 17 AS INTEGER ) AS col0
----
17

query I rowsort
SELECT DISTINCT 59 * - + 64 AS col1
----
-3776

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT + ( + COALESCE ( + + 36, + 7 * + + 40 * + 67, - + 10 DIV - 51 * 30 ) ) DIV + ( - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-3546
SELECT + ( + COALESCE ( + + 36, + 7 * + + 40 * + 67, - + 10 / - 51 * 30 ) ) / + ( - 76 )
----
0

query II rowsort
SELECT 6 + - 4 AS col2, 98 AS col1
----
2
98

query I rowsort
SELECT ALL + 8 + + 53
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3549
SELECT 96 DIV + - 90, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3549
SELECT 96 / + - 90, - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3550
SELECT + 40 DIV + 27 - - 95 + + SUM( ALL + - 50 ) + - CAST( COUNT( * ) AS SIGNED ) + + - COUNT( + + 92 ) - 58 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3550
SELECT + 40 / + 27 - - 95 + + SUM ( ALL + - 50 ) + - CAST ( COUNT ( * ) AS INTEGER ) + + - COUNT ( + + 92 ) - 58 AS col1
----
-14

query I rowsort
SELECT ALL - CASE 63 WHEN - 58 THEN + - ( - 16 ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT ALL + 63 + - 0 DIV + 10 - - 43
----
106

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + 63 + - 0 / + 10 - - 43
----
106

query I rowsort
SELECT DISTINCT + ( + 73 ) * 35 AS col0
----
2555

query I rowsort
SELECT ALL - 37 + - 62 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3555
SELECT DISTINCT - - 95 + + + COUNT( * ) * + 70 * + ( - 19 ) AS col2, 45 * + + 54 AS col0
----
-1235
2430

skipif mysql # not compatible
query II rowsort label-3555
SELECT DISTINCT - - 95 + + + COUNT ( * ) * + 70 * + ( - 19 ) AS col2, 45 * + + 54 AS col0
----
-1235
2430

query II rowsort
SELECT ALL 18 * - 83 AS col2, 98 * + 73 AS col1
----
-1494
7154

query I rowsort
SELECT - 88 + 12
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + COUNT( * ) * 79 + - - ( + 75 ) - - COUNT( * ) * + - 30 + + + CASE - - 21 WHEN + - 84 THEN - AVG ( + ( - 10 ) ) * - - 57 * - 68 WHEN ( + - 76 ) - + COUNT( * ) THEN 61 + 57 * 18 WHEN - 54 + 50 THEN - CASE - 21 WHEN + 87 + - 68 THEN + 2 / 97 END * 17 - 33 ELSE NULL END + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + COUNT ( * ) * 79 + - - ( + 75 ) - - COUNT ( * ) * + - 30 + + + CASE - - 21 WHEN + - 84 THEN - AVG ( + ( - 10 ) ) * - - 57 * - 68 WHEN ( + - 76 ) - + COUNT ( * ) THEN 61 + 57 * 18 WHEN - 54 + 50 THEN - CASE - 21 WHEN + 87 + - 68 THEN + 2 / 97 END * 17 - 33 ELSE NULL END + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3559
SELECT - MIN( + 9 ) col1, ( - 35 ) * 92 * - + 81
----
-9
260820

skipif mysql # not compatible
query II rowsort label-3559
SELECT - MIN ( + 9 ) col1, ( - 35 ) * 92 * - + 81
----
-9
260820

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT ALL + 41 * CAST( + 82 AS SIGNED ) AS col2
----
3362

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + 41 * CAST ( + 82 AS INTEGER ) AS col2
----
3362

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT DISTINCT 30 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT 30 / 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3563
SELECT ALL COUNT( * ) * + + 11 AS col2, 22 + + + COUNT( * ) col0
----
11
23

skipif mysql # not compatible
query II rowsort label-3563
SELECT ALL COUNT ( * ) * + + 11 AS col2, 22 + + + COUNT ( * ) col0
----
11
23

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

query I rowsort
SELECT NULLIF ( + + NULLIF ( - 24, + + ( + + 42 ) ), 34 + + 72 * + - 42 )
----
-24

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

skipif mysql # not compatible
query I rowsort label-3566
SELECT 55 / - + 34 AS col0
----
-1

query I rowsort
SELECT ALL + 25 * - + 0
----
0

query II rowsort
SELECT 94 AS col0, + 6 AS col1
----
94
6

query I rowsort
SELECT ALL 54 * + - 19
----
-1026

query I rowsort
SELECT DISTINCT + 94 * 79 AS col2
----
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT CASE - - 33 WHEN - - 40 * + 82 THEN 36 END * + - ( + SUM( ALL - ( + 62 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT CASE - - 33 WHEN - - 40 * + 82 THEN 36 END * + - ( + SUM ( ALL - ( + 62 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT ALL 1 + + 30 - + + 14 DIV + 75 - + + 99 + + 80
----
12

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL 1 + + 30 - + + 14 / + 75 - + + 99 + + 80
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3573
SELECT ALL 18 * - - CAST( - 98 AS SIGNED ) AS col1, 54 AS col0
----
-1764
54

skipif mysql # not compatible
query II rowsort label-3573
SELECT ALL 18 * - - CAST ( - 98 AS INTEGER ) AS col1, 54 AS col0
----
-1764
54

query I rowsort
SELECT 99 - - 7 * 47 + - 31 AS col1
----
397

query II rowsort
SELECT - 31 AS col1, 27 * + 67 col0
----
-31
1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT CASE 38 WHEN + 51 + + NULLIF ( COALESCE ( + ( - + 82 ), + 89 * 19 + + + 16 ), + ( - 58 ) + + 72 ) + ( - CASE 81 WHEN - 77 THEN 0 END ) * CASE + 46 WHEN ( 38 ) + - 17 THEN NULL ELSE COALESCE ( + 77, + COUNT( * ) + CAST( + 38 AS SIGNED ) ) END THEN + NULLIF ( 22, COUNT( * ) + 60 * - 49 ) WHEN 41 THEN NULL END + - ( + CASE + SUM( DISTINCT ( 36 ) ) WHEN + 19 THEN NULL WHEN - 15 THEN - COUNT( 14 ) END ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT CASE 38 WHEN + 51 + + NULLIF ( COALESCE ( + ( - + 82 ), + 89 * 19 + + + 16 ), + ( - 58 ) + + 72 ) + ( - CASE 81 WHEN - 77 THEN 0 END ) * CASE + 46 WHEN ( 38 ) + - 17 THEN NULL ELSE COALESCE ( + 77, + COUNT ( * ) + CAST ( + 38 AS INTEGER ) ) END THEN + NULLIF ( 22, COUNT ( * ) + 60 * - 49 ) WHEN 41 THEN NULL END + - ( + CASE + SUM ( DISTINCT ( 36 ) ) WHEN + 19 THEN NULL WHEN - 15 THEN - COUNT ( 14 ) END ) * - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT CAST( NULL AS SIGNED ) + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT CAST ( NULL AS INTEGER ) + - 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT - 85 AS col1, COUNT( * ) * 52 * - + COALESCE ( + COUNT( * ), - - 44 ) AS col1
----
-85
-52

skipif mysql # not compatible
query II rowsort label-3578
SELECT - 85 AS col1, COUNT ( * ) * 52 * - + COALESCE ( + COUNT ( * ), - - 44 ) AS col1
----
-85
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT 80, + COUNT( * ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-3579
SELECT 80, + COUNT ( * ) AS col0
----
80
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT 34 - - 14 - + - 58 DIV - 80 * + + 83
----
48

skipif mysql # not compatible
query I rowsort label-3580
SELECT 34 - - 14 - + - 58 / - 80 * + + 83
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL + COUNT( * ) * - 75 * + 98
----
-7350

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL + COUNT ( * ) * - 75 * + 98
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL MAX( - - 33 ) + - + 39 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL MAX ( - - 33 ) + - + 39 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT ALL - CAST( 59 AS SIGNED ) + - 64 + ( NULLIF ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + - + 45 + + - 83 + + - 69 ) ) + + ( + COUNT( * ) ) * - ( + + ( + 17 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - CAST ( 59 AS INTEGER ) + - 64 + ( NULLIF ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + - + 45 + + - 83 + + - 69 ) ) + + ( + COUNT ( * ) ) * - ( + + ( + 17 ) ) AS col0
----
NULL

query I rowsort
SELECT 24 * - 48 AS col2
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL 4 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL 4 * + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT - CAST( + + 13 AS SIGNED ) + - - MIN( + 0 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3586
SELECT - CAST ( + + 13 AS INTEGER ) + - - MIN ( + 0 ) AS col0
----
-13

query II rowsort
SELECT DISTINCT - - 51 AS col2, - 67 AS col0
----
51
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT MAX( - 29 ) * - 33 * CAST( NULL AS SIGNED ) + + SUM( + + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT MAX ( - 29 ) * - 33 * CAST ( NULL AS INTEGER ) + + SUM ( + + 57 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3589
SELECT ALL - + 69, 73 * CAST( NULL AS SIGNED ) AS col2
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL - + 69, 73 * CAST ( NULL AS INTEGER ) AS col2
----
-69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + 43 * - - NULLIF ( - 19, + 50 + + COUNT( * ) ) AS col0
----
-817

skipif mysql # not compatible
query I rowsort label-3590
SELECT + 43 * - - NULLIF ( - 19, + 50 + + COUNT ( * ) ) AS col0
----
-817

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT + 52 + + 88 - + 5 * 69 * - ( + COUNT( * ) ) AS col1, + 91 AS col1
----
485
91

skipif mysql # not compatible
query II rowsort label-3591
SELECT + 52 + + 88 - + 5 * 69 * - ( + COUNT ( * ) ) AS col1, + 91 AS col1
----
485
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3592
SELECT + - 49, MAX( 81 ) / + CASE - + 27 WHEN - + MAX( + 71 ) THEN - 58 + + + CAST( - 20 AS SIGNED ) * + + ( + COUNT( DISTINCT + 75 ) ) WHEN - 91 * + COUNT( * ) + - - COUNT( - - 15 ) THEN - CASE - COUNT( * ) WHEN + 82 THEN 77 ELSE NULL END * ( + 67 ) END AS col2
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-3592
SELECT + - 49, MAX ( 81 ) / + CASE - + 27 WHEN - + MAX ( + 71 ) THEN - 58 + + + CAST ( - 20 AS INTEGER ) * + + ( + COUNT ( DISTINCT + 75 ) ) WHEN - 91 * + COUNT ( * ) + - - COUNT ( - - 15 ) THEN - CASE - COUNT ( * ) WHEN + 82 THEN 77 ELSE NULL END * ( + 67 ) END AS col2
----
-49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3593
SELECT 52 + - + ( + 64 ) + - 72 * CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT 52 + - + ( + 64 ) + - 72 * CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + 29 )
----
NULL

query I rowsort
SELECT ALL + 11 - 77 AS col2
----
-66

query I rowsort
SELECT 98 * - + NULLIF ( - + 45, - + ( 9 ) ) * - + 4 * + + 58 AS col1
----
-1023120

query I rowsort
SELECT ALL + + 4 * + 17
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT + CAST( + 29 AS SIGNED ) * - 58 + + - 88 AS col0
----
-1770

skipif mysql # not compatible
query I rowsort label-3597
SELECT + CAST ( + 29 AS INTEGER ) * - 58 + + - 88 AS col0
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT DISTINCT - + ( + MAX( ALL - + 95 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT - + ( + MAX ( ALL - + 95 ) ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL + - COUNT( * ) * - SUM( + + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + - COUNT ( * ) * - SUM ( + + 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT NULLIF ( ( + CAST( + + 20 AS SIGNED ) ), - 87 * + - 90 ) + 71 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3600
SELECT NULLIF ( ( + CAST ( + + 20 AS INTEGER ) ), - 87 * + - 90 ) + 71 AS col0
----
91

query I rowsort
SELECT ALL + + 12 * + - 46 AS col1
----
-552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT CAST( NULL AS SIGNED ) + - 43 + + 74 * + + 70 + + CAST( - 48 AS SIGNED ) + COUNT( + 4 ) + + 9 * - 54 + - - 81 + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT CAST ( NULL AS INTEGER ) + - 43 + + 74 * + + 70 + + CAST ( - 48 AS INTEGER ) + COUNT ( + 4 ) + + 9 * - 54 + - - 81 + + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3603
SELECT + COUNT( * ), + 31 + + + 92 AS col2
----
1
123

skipif mysql # not compatible
query II rowsort label-3603
SELECT + COUNT ( * ), + 31 + + + 92 AS col2
----
1
123

query I rowsort
SELECT 98 - + 80
----
18

query I rowsort
SELECT + 42 * - + 2 * 67 AS col1
----
-5628

query I rowsort
SELECT DISTINCT - 62 * + 69
----
-4278

query I rowsort
SELECT DISTINCT 72 + - - 70 col0
----
142

query I rowsort
SELECT 90 + 98
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL + 80 + + - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + 80 + + - COUNT ( * ) AS col2
----
79

query I rowsort
SELECT + 51 * + 74 + + 26 * - ( - 77 )
----
5776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3611
SELECT DISTINCT - 17 DIV - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - 17 / - COUNT ( * )
----
17

query I rowsort
SELECT ALL 71 + 10
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT 6 + + 23 * ( NULLIF ( 72, 59 + + - 13 + + 67 ) ) + 50 + + 52 + - 98 * - ( 89 ) / - - COUNT( * ) * - + CASE - + 47 WHEN + + 26 / ( 32 ) + - 54 THEN 55 + + SUM( + 37 ) END * 25 + COUNT( * ) / + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT 6 + + 23 * ( NULLIF ( 72, 59 + + - 13 + + 67 ) ) + 50 + + 52 + - 98 * - ( 89 ) / - - COUNT ( * ) * - + CASE - + 47 WHEN + + 26 / ( 32 ) + - 54 THEN 55 + + SUM ( + 37 ) END * 25 + COUNT ( * ) / + 11 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3614
SELECT + COUNT( * ) DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT + COUNT ( * ) / + 48
----
0

query I rowsort
SELECT + 5 * - + 96 col2
----
-480

query II rowsort
SELECT ALL + 45 + + 52, 97
----
97
97

query I rowsort
SELECT DISTINCT NULLIF ( + 91, + - 35 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - MAX( ALL + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3618
SELECT - MAX ( ALL + 8 )
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3619
SELECT DISTINCT 63 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT 63 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT COUNT( - - 42 ) AS col1, 24 AS col0
----
1
24

skipif mysql # not compatible
query II rowsort label-3620
SELECT COUNT ( - - 42 ) AS col1, 24 AS col0
----
1
24

query I rowsort
SELECT ALL ( 78 ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT + + 96 - + + 52 + - AVG ( DISTINCT - 35 ) + 60 + - NULLIF ( - 75, + 39 + - 65 + + COUNT( * ) ) * - ( CASE + 54 WHEN + 7 * - 13 THEN - + COALESCE ( + 92, - + 59, + + 61, + 8 * 0 ) + - 55 * + 97 WHEN 40 * SUM( - 65 ) THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT + + 96 - + + 52 + - AVG ( DISTINCT - 35 ) + 60 + - NULLIF ( - 75, + 39 + - 65 + + COUNT ( * ) ) * - ( CASE + 54 WHEN + 7 * - 13 THEN - + COALESCE ( + 92, - + 59, + + 61, + 8 * 0 ) + - 55 * + 97 WHEN 40 * SUM ( - 65 ) THEN NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3624
SELECT ALL 67 DIV + - 65, + 49 AS col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-3624
SELECT ALL 67 / + - 65, + 49 AS col2
----
-1
49

query I rowsort
SELECT - 6 + - 14 * + - 55
----
764

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT ALL ( + - 8 ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL ( + - 8 ) / - 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT DISTINCT + CAST( + - 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT + CAST ( + - 96 AS INTEGER ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - 19 * - COUNT( * ) col2
----
19

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - 19 * - COUNT ( * ) col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + - ( 5 ) + 80 + 62 * + CASE - 72 WHEN COUNT( * ) THEN NULL WHEN - 90 THEN 89 END * + - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT + - ( 5 ) + 80 + 62 * + CASE - 72 WHEN COUNT ( * ) THEN NULL WHEN - 90 THEN 89 END * + - 34 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT DISTINCT - 7 * ( 89 ) * + CAST( + 39 AS SIGNED ) col2
----
-24297

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT - 7 * ( 89 ) * + CAST ( + 39 AS INTEGER ) col2
----
-24297

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT DISTINCT CASE - 54 WHEN COALESCE ( ( - 66 ), + 25 * 52, + 56 / - 9 + - NULLIF ( - 84, + + COUNT( * ) ) + - 69 + 3 - - + 21 ) * - - 70 THEN + 79 WHEN - 46 * + - 56 * 73 THEN NULL END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT CASE - 54 WHEN COALESCE ( ( - 66 ), + 25 * 52, + 56 / - 9 + - NULLIF ( - 84, + + COUNT ( * ) ) + - 69 + 3 - - + 21 ) * - - 70 THEN + 79 WHEN - 46 * + - 56 * 73 THEN NULL END * + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3632
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) * 92 - + 44, + SUM( DISTINCT + COALESCE ( 49, + 24, + ( - ( + 27 ) ) ) ) * - 97 AS col1
----
NULL
-4753

skipif mysql # not compatible
query II rowsort label-3632
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * 92 - + 44, + SUM ( DISTINCT + COALESCE ( 49, + 24, + ( - ( + 27 ) ) ) ) * - 97 AS col1
----
NULL
-4753

onlyif mysql # DIV for integer division: 
query II rowsort label-3633
SELECT + - 69 DIV - - 17 AS col0, 53 AS col1
----
-4
53

skipif mysql # not compatible
query II rowsort label-3633
SELECT + - 69 / - - 17 AS col0, 53 AS col1
----
-4
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT - - 14 DIV ( + 39 ) + + + 70 - 2
----
68

skipif mysql # not compatible
query I rowsort label-3634
SELECT - - 14 / ( + 39 ) + + + 70 - 2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3635
SELECT ALL - 8 DIV - + 63 * - COUNT( * ) * + 46 - 88
----
-88

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - 8 / - + 63 * - COUNT ( * ) * + 46 - 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL COUNT( ALL - + 91 ) * - COUNT( * ) * - COUNT( * ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL COUNT ( ALL - + 91 ) * - COUNT ( * ) * - COUNT ( * ) + 91
----
92

query I rowsort
SELECT - 79 * 3 * + 53 AS col0
----
-12561

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL - 79 * - 62 + + 38 + COUNT( * ) * - + 26
----
4910

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 79 * - 62 + + 38 + COUNT ( * ) * - + 26
----
4910

query I rowsort
SELECT COALESCE ( - - 90, + ( - 48 ) ) col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT COUNT( * ) AS col1, 48 AS col1
----
1
48

skipif mysql # not compatible
query II rowsort label-3640
SELECT COUNT ( * ) AS col1, 48 AS col1
----
1
48

query I rowsort
SELECT - 53 - - 83
----
30

query I rowsort
SELECT - 59 * - 90
----
5310

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL - COUNT( * ) * - 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - COUNT ( * ) * - 76 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT - CAST( NULL AS SIGNED ) + - AVG ( DISTINCT 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT 47 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL + 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + 77 + COUNT ( * )
----
78

query I rowsort
SELECT - 5 + - 88 AS col0
----
-93

query I rowsort
SELECT ALL - 13 - + - 62
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL COUNT( * ) - - ( + 34 ) * 23 AS col2
----
783

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL COUNT ( * ) - - ( + 34 ) * 23 AS col2
----
783

query I rowsort
SELECT - 23 * 92
----
-2116

query I rowsort
SELECT ALL ( + 90 ) AS col1
----
90

query I rowsort
SELECT - 99 - 12 * - + 35 - + 1
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL ( - - COUNT( ALL 70 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL ( - - COUNT ( ALL 70 ) ) AS col0
----
1

query II rowsort
SELECT ALL 95 AS col2, 57 * 15
----
95
855

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT DISTINCT ( + - SUM( + 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT ( + - SUM ( + 78 ) )
----
-78

query I rowsort
SELECT - 87 * - 75
----
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT + 93 * 37 * + COUNT( * ) col2
----
3441

skipif mysql # not compatible
query I rowsort label-3656
SELECT + 93 * 37 * + COUNT ( * ) col2
----
3441

query I rowsort
SELECT - 11 + + + 25 + - 26 AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT + 81 DIV 24
----
3

skipif mysql # not compatible
query I rowsort label-3658
SELECT + 81 / 24
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT - NULLIF ( - 52, - 37 + - MAX( DISTINCT + - 13 ) ) * + 37
----
1924

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT - NULLIF ( - 52, - 37 + - MAX ( DISTINCT + - 13 ) ) * + 37
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT - 11 * + ( COUNT( * ) ) * - + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - 11 * + ( COUNT ( * ) ) * - + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL SUM( - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL SUM ( - 20 ) AS col1
----
-20

query I rowsort
SELECT DISTINCT + - 40 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT + 97 * + COALESCE ( + 48, - CAST( + 35 AS SIGNED ) * - 92, - - 78, + 58 - 72 * CAST( - 69 AS SIGNED ) * - 46 + + ( 7 ) ) AS col1
----
4656

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 97 * + COALESCE ( + 48, - CAST ( + 35 AS INTEGER ) * - 92, - - 78, + 58 - 72 * CAST ( - 69 AS INTEGER ) * - 46 + + ( 7 ) ) AS col1
----
4656

query II rowsort
SELECT + - 30 col2, ( - 89 )
----
-30
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3665
SELECT ALL - COALESCE ( + 9, - 71 * - 1 * 68 ) DIV - + 83 + 23 + - 8 - + COUNT( * ) + + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - COALESCE ( + 9, - 71 * - 1 * 68 ) / - + 83 + 23 + - 8 - + COUNT ( * ) + + - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + SUM( ALL - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-3666
SELECT + SUM ( ALL - 31 )
----
-31

query I rowsort
SELECT ALL 78 * 87
----
6786

query I rowsort
SELECT ALL 95 + 60 + + 81 AS col2
----
236

query I rowsort
SELECT 9 + - + 67 * 63 * 42
----
-177273

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL 71 + + - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL 71 + + - COUNT ( * ) AS col1
----
70

query I rowsort
SELECT 80 + + NULLIF ( + 16, - 63 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3672
SELECT + 68 AS col0, - 56 + COUNT( * ) AS col0
----
68
-55

skipif mysql # not compatible
query II rowsort label-3672
SELECT + 68 AS col0, - 56 + COUNT ( * ) AS col0
----
68
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3673
SELECT - 18 * + COUNT( * ) DIV COALESCE ( - 95, 47 ) * + - 96 + - ( - + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3673
SELECT - 18 * + COUNT ( * ) / COALESCE ( - 95, 47 ) * + - 96 + - ( - + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT + 43 * - 86 + - 96 * COUNT( * ) * - NULLIF ( - - 24, - 58 * + COUNT( * ) ) col0
----
-1394

skipif mysql # not compatible
query I rowsort label-3674
SELECT + 43 * - 86 + - 96 * COUNT ( * ) * - NULLIF ( - - 24, - 58 * + COUNT ( * ) ) col0
----
-1394

query II rowsort
SELECT 25 - - 37 AS col2, 49 * + - 50 * - 92 AS col0
----
62
225400

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - SUM( DISTINCT - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - SUM ( DISTINCT - 81 )
----
81

query I rowsort
SELECT 99 + + 92
----
191

query I rowsort
SELECT ALL 35 - + 39
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3679
SELECT DISTINCT - 38 AS col2, - 63 / + 8 + - CAST( NULL AS SIGNED ) AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-3679
SELECT DISTINCT - 38 AS col2, - 63 / + 8 + - CAST ( NULL AS INTEGER ) AS col2
----
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL + 45 - - - MIN( + 50 ) + + 31 + 11
----
37

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + 45 - - - MIN ( + 50 ) + + 31 + 11
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3681
SELECT ALL 84 AS col0, + ( - COUNT( * ) )
----
84
-1

skipif mysql # not compatible
query II rowsort label-3681
SELECT ALL 84 AS col0, + ( - COUNT ( * ) )
----
84
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT ALL 35 AS col2, 78 * + 79 * 45 - + ( + COUNT( * ) ) AS col0
----
35
277289

skipif mysql # not compatible
query II rowsort label-3682
SELECT ALL 35 AS col2, 78 * + 79 * 45 - + ( + COUNT ( * ) ) AS col0
----
35
277289

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT 24 + - 70 - + - 31 * + 55 + + - ( 0 ) DIV 45 AS col0
----
1659

skipif mysql # not compatible
query I rowsort label-3683
SELECT 24 + - 70 - + - 31 * + 55 + + - ( 0 ) / 45 AS col0
----
1659

query I rowsort
SELECT ALL - 73 * + 98 * - - 92
----
-658168

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT - ( + + COUNT( 12 ) ) * + CASE + 3 WHEN 67 THEN - + 78 + + 85 ELSE + 24 END + - - 58 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3685
SELECT - ( + + COUNT ( 12 ) ) * + CASE + 3 WHEN 67 THEN - + 78 + + 85 ELSE + 24 END + - - 58 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + ( COUNT( * ) ) * + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + ( COUNT ( * ) ) * + 98 AS col0
----
98

query I rowsort
SELECT ALL ( - 67 ) AS col1
----
-67

query I rowsort
SELECT - + ( + - 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3689
SELECT - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + - 18 - + COALESCE ( - + ( + - NULLIF ( - - 3, 29 ) ), - AVG ( + 39 ), - 93 ) col2, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-3689
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + - 18 - + COALESCE ( - + ( + - NULLIF ( - - 3, 29 ) ), - AVG ( + 39 ), - 93 ) col2, - 43
----
NULL
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT 27 + COUNT( DISTINCT - 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3690
SELECT 27 + COUNT ( DISTINCT - 28 ) AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT - 72 * - 0 DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT - 72 * - 0 / 39 AS col0
----
0

query I rowsort
SELECT ALL + + 31 + - - 63 * + - 44 AS col2
----
-2741

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT 75 - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3693
SELECT 75 - COUNT ( * )
----
74

query I rowsort
SELECT - NULLIF ( + 5, - 92 ) col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3695
SELECT NULLIF ( 22, + NULLIF ( + COUNT( + 34 ), - 49 * + + 65 - - + 63 ) + - 92 ) * - - 22 + - COUNT( * ) + - + ( + 98 ) * - + CAST( - 82 AS SIGNED ) * COUNT( * ) AS col0, 30
----
-7553
30

skipif mysql # not compatible
query II rowsort label-3695
SELECT NULLIF ( 22, + NULLIF ( + COUNT ( + 34 ), - 49 * + + 65 - - + 63 ) + - 92 ) * - - 22 + - COUNT ( * ) + - + ( + 98 ) * - + CAST ( - 82 AS INTEGER ) * COUNT ( * ) AS col0, 30
----
-7553
30

query I rowsort
SELECT - 39 - 99
----
-138

query I rowsort
SELECT ALL + + 39 + - 92 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL 87 + 39 + + COALESCE ( - - ( 13 ), - 27 * - COUNT( * ) * 16 ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL 87 + 39 + + COALESCE ( - - ( 13 ), - 27 * - COUNT ( * ) * 16 ) AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT + CAST( MAX( ALL - 60 ) AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3699
SELECT + CAST ( MAX ( ALL - 60 ) AS INTEGER ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL - - 26 * - + CASE + MIN( ALL 19 ) WHEN 89 THEN - 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - - 26 * - + CASE + MIN ( ALL 19 ) WHEN 89 THEN - 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3701
SELECT DISTINCT + + 64 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + + 64 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 73 * - 69 AS col1
----
-5037

query I rowsort
SELECT ALL 54 + + - ( + NULLIF ( + 30, - - 68 ) ) AS col0
----
24

query I rowsort
SELECT 80 * + 67 AS col1
----
5360

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ( - 86 ) * COUNT( * ) + 79 + + 86 + - 98 * + ( - 85 ) AS col2
----
8409

skipif mysql # not compatible
query I rowsort label-3705
SELECT ( - 86 ) * COUNT ( * ) + 79 + + 86 + - 98 * + ( - 85 ) AS col2
----
8409

query I rowsort
SELECT ALL 18 - - 95
----
113

query II rowsort
SELECT 77 * CASE - 83 WHEN + 52 THEN + 27 + + 55 * 96 * + 48 END / 75 - + 18 AS col1, 77
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ( + + 13 ) * + 58 - + COUNT( * ) * - 74
----
828

skipif mysql # not compatible
query I rowsort label-3708
SELECT ( + + 13 ) * + 58 - + COUNT ( * ) * - 74
----
828

query I rowsort
SELECT DISTINCT - CASE 38 WHEN + 60 THEN NULL ELSE - 63 END
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ( - 65 ) * COUNT( * ) + 89 * - 25 + - CASE + ( + 92 ) WHEN + - COUNT( * ) THEN NULL ELSE + 52 + - MAX( + ( + 2 ) ) + - - 38 * - COUNT( * ) END
----
-2302

skipif mysql # not compatible
query I rowsort label-3710
SELECT ( - 65 ) * COUNT ( * ) + 89 * - 25 + - CASE + ( + 92 ) WHEN + - COUNT ( * ) THEN NULL ELSE + 52 + - MAX ( + ( + 2 ) ) + - - 38 * - COUNT ( * ) END
----
-2302

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT ( + + COUNT( * ) ) * - - COUNT( * ) * + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT ( + + COUNT ( * ) ) * - - COUNT ( * ) * + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT NULLIF ( + - COUNT( * ), 4 + + ( - 37 ) ) + + 49 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3712
SELECT NULLIF ( + - COUNT ( * ), 4 + + ( - 37 ) ) + + 49 AS col0
----
48

query I rowsort
SELECT ( 54 ) - 49 AS col0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3714
SELECT 50 DIV + - 3, 77 AS col0
----
-16
77

skipif mysql # not compatible
query II rowsort label-3714
SELECT 50 / + - 3, 77 AS col0
----
-16
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT COUNT( * ) + - 85 + + ( 67 ) + 17
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT COUNT ( * ) + - 85 + + ( 67 ) + 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT 33 + + 59 - - + 29 * + 85 * CAST( NULL AS SIGNED ) * ( - + 52 ) + - COUNT( DISTINCT 60 ) + + 60 + - 17 - - ( - COUNT( * ) ) * - + 59 * - ( 59 ) / 40 + + AVG ( DISTINCT - 62 ) + - 37 + 3 * - ( - 10 ) + - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT 33 + + 59 - - + 29 * + 85 * CAST ( NULL AS INTEGER ) * ( - + 52 ) + - COUNT ( DISTINCT 60 ) + + 60 + - 17 - - ( - COUNT ( * ) ) * - + 59 * - ( 59 ) / 40 + + AVG ( DISTINCT - 62 ) + - 37 + 3 * - ( - 10 ) + - 74 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT ALL - 15 DIV + 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - 15 / + 4 AS col0
----
-3

query I rowsort
SELECT - 81 * - 12 + - 38
----
934

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) * 31
----
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3720
SELECT DISTINCT + + 46 + + ( - CAST( NULL AS DECIMAL ) ) * + - 88 * - 27 * - + 89 + - 66 + - 97 + - CAST( 63 AS SIGNED ) - - 73 + + 4 + 59 * + 47 + 92 - + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT + + 46 + + ( - CAST ( NULL AS REAL ) ) * + - 88 * - 27 * - + 89 + - 66 + - 97 + - CAST ( 63 AS INTEGER ) - - 73 + + 4 + 59 * + 47 + 92 - + 53 AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 92, - 37 - - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT - COUNT( * ) + + + 28 * + + MIN( DISTINCT - 56 ) * + COUNT( * ) + - COALESCE ( 15, - 35 + - 33 )
----
-1584

skipif mysql # not compatible
query I rowsort label-3722
SELECT - COUNT ( * ) + + + 28 * + + MIN ( DISTINCT - 56 ) * + COUNT ( * ) + - COALESCE ( 15, - 35 + - 33 )
----
-1584

query I rowsort
SELECT 11 + + 91 + - 90 * - 80 + 81 * 0 AS col2
----
7302

query I rowsort
SELECT ALL + - 3 + + 15
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - COUNT( ALL - 8 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3725
SELECT - COUNT ( ALL - 8 ) col0
----
-1

query I rowsort
SELECT - 19 * + 26 AS col1
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT MAX( - - 89 ) + + - 1 + - - 91 * + + 8
----
816

skipif mysql # not compatible
query I rowsort label-3727
SELECT MAX ( - - 89 ) + + - 1 + - - 91 * + + 8
----
816

query I rowsort
SELECT ALL CASE + 86 WHEN - - 52 + - 60 THEN + 82 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 46 + - - 14 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT DISTINCT - - 24 + - + 24 * - + ( 29 ) + 71 DIV 72
----
720

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT - - 24 + - + 24 * - + ( 29 ) + 71 / 72
----
720

query I rowsort
SELECT + NULLIF ( 43, - - 58 )
----
43

query III rowsort
SELECT - - 80 * 92 AS col0, - 77 AS col0, - 90 + 61
----
7360
-77
-29

query I rowsort
SELECT + CASE + ( + 11 ) WHEN + - 82 THEN - 23 END / - 28 + + - 1
----
NULL

query I rowsort
SELECT + 60 * + 26
----
1560

query I rowsort
SELECT + 19 * + 27
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT - 30 + + + MIN( + ( + 97 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3736
SELECT - 30 + + + MIN ( + ( + 97 ) ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT - 10 * ( - ( 32 ) ) + COUNT( * ) DIV - 42
----
320

skipif mysql # not compatible
query I rowsort label-3737
SELECT - 10 * ( - ( 32 ) ) + COUNT ( * ) / - 42
----
320

query I rowsort
SELECT - 24 + - + COALESCE ( - - 57, + - 56, - + ( + 83 ), + 83 ) col1
----
-81

query I rowsort
SELECT DISTINCT + 0 * - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT - 59 DIV - + 78 + + ( 84 ) + - + 12 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 59 / - + 78 + + ( 84 ) + - + 12 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL + ( - 33 ) * + - ( COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + ( - 33 ) * + - ( COUNT ( * ) ) AS col0
----
33

query I rowsort
SELECT - 88 * + 11 AS col1
----
-968

query II rowsort
SELECT + 32, 74 AS col2
----
32
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT MAX( DISTINCT - - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3744
SELECT MAX ( DISTINCT - - 21 )
----
21

query II rowsort
SELECT ALL + 88, + 88
----
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT + MAX( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-3746
SELECT + MAX ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT MIN( - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3747
SELECT MIN ( - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT MIN( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3748
SELECT MIN ( - 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - CASE + + COUNT( * ) WHEN 42 * - - 44 THEN 32 WHEN + - ( + 67 ) THEN - 14 * 21 * COUNT( * ) * - ( - COUNT( * ) ) WHEN + - COUNT( * ) THEN - + COUNT( ALL 61 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT - CASE + + COUNT ( * ) WHEN 42 * - - 44 THEN 32 WHEN + - ( + 67 ) THEN - 14 * 21 * COUNT ( * ) * - ( - COUNT ( * ) ) WHEN + - COUNT ( * ) THEN - + COUNT ( ALL 61 ) END
----
NULL

query I rowsort
SELECT ALL 81 + - + 0 + 38 AS col0
----
119

query I rowsort
SELECT + + 71 + 5 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL + COALESCE ( COUNT( DISTINCT + - 91 ), + 58, - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + COALESCE ( COUNT ( DISTINCT + - 91 ), + 58, - 60 )
----
1

query I rowsort
SELECT 96 * 0 + - CASE WHEN NOT ( - 14 ) BETWEEN NULL AND NULL THEN 18 END / - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL - CAST( - SUM( + 19 ) AS SIGNED ) + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL - CAST ( - SUM ( + 19 ) AS INTEGER ) + COUNT ( * ) AS col0
----
20

query I rowsort
SELECT DISTINCT 6 + + + 18 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT - - CAST( - 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-3756
SELECT - - CAST ( - 63 AS INTEGER )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT - MAX( + + CAST( NULL AS SIGNED ) ) * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT - MAX ( + + CAST ( NULL AS INTEGER ) ) * - 27
----
NULL

query I rowsort
SELECT + COALESCE ( + 37, + 23, + 97 + + 17 + 15 * - 82, + - 9 ) * - - 96
----
3552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3759
SELECT DISTINCT - COUNT( - ( + ( 40 ) ) ) DIV + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - COUNT ( - ( + ( 40 ) ) ) / + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 91 + - + 94 * 49 * - + 55 + 55 col1
----
253476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT + 30 * + 44 * ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT + 30 * + 44 * ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL - 59 * + 14 + 54 + - 1 * - 47 * + SUM( 43 )
----
1249

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - 59 * + 14 + 54 + - 1 * - 47 * + SUM ( 43 )
----
1249

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL + COUNT( * ) - - MIN( DISTINCT + 16 ) + - 12 * - - 25
----
-283

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + COUNT ( * ) - - MIN ( DISTINCT + 16 ) + - 12 * - - 25
----
-283

query II rowsort
SELECT ALL - 25, - 33 + + 66 AS col1
----
-25
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT - + COUNT( DISTINCT 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-3765
SELECT - + COUNT ( DISTINCT 13 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL + ( + MAX( DISTINCT 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + ( + MAX ( DISTINCT 24 ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3767
SELECT - + 58 AS col0, ( 43 ) * + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + 32 / + + 56 * - 1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-3767
SELECT - + 58 AS col0, ( 43 ) * + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 32 / + + 56 * - 1
----
-58
NULL

query I rowsort
SELECT ALL - - 59 * - 42 + - 7 AS col1
----
-2485

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3769
SELECT + - 59 - - 16 * + CASE 35 WHEN + CAST( NULL AS DECIMAL ) * MAX( ALL + 80 ) THEN + - 18 WHEN - COUNT( * ) + - CASE 1 WHEN - 53 * + 68 + + ( - MIN( DISTINCT + - NULLIF ( - - 18, - 90 ) ) ) + - + 25 * + - COUNT( * ) * 2 + ( - - 52 ) THEN NULL WHEN + 8 * COALESCE ( 31, 57 ) + 63 THEN - 66 END + - 16 * 30 THEN NULL ELSE + 20 + + COUNT( * ) END * 86
----
28837

skipif mysql # not compatible
query I rowsort label-3769
SELECT + - 59 - - 16 * + CASE 35 WHEN + CAST ( NULL AS REAL ) * MAX ( ALL + 80 ) THEN + - 18 WHEN - COUNT ( * ) + - CASE 1 WHEN - 53 * + 68 + + ( - MIN ( DISTINCT + - NULLIF ( - - 18, - 90 ) ) ) + - + 25 * + - COUNT ( * ) * 2 + ( - - 52 ) THEN NULL WHEN + 8 * COALESCE ( 31, 57 ) + 63 THEN - 66 END + - 16 * 30 THEN NULL ELSE + 20 + + COUNT ( * ) END * 86
----
28837

query II rowsort
SELECT 6, 6 AS col0
----
6
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3771
SELECT DISTINCT 78 * + 97 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT 78 * + 97 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT - 7 * - 0 * + 89 DIV - - 1 * 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT - 7 * - 0 * + 89 / - - 1 * 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ( + + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3773
SELECT ( + + ( - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT + MIN( ALL + 25 ) AS col0, + CASE + 98 WHEN - - 62 THEN - 56 / - + 49 * 66 - 89 - + + 11 END AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3774
SELECT + MIN ( ALL + 25 ) AS col0, + CASE + 98 WHEN - - 62 THEN - 56 / - + 49 * 66 - 89 - + + 11 END AS col1
----
25
NULL

query I rowsort
SELECT ( + ( + 56 ) )
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3776
SELECT - 29 DIV + CAST( 46 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT - 29 / + CAST ( 46 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL - COUNT( * ) * - 52 * - 38 * + - 89
----
175864

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - COUNT ( * ) * - 52 * - 38 * + - 89
----
175864

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT - 41 * - + ( - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-3778
SELECT - 41 * - + ( - COUNT ( * ) )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3779
SELECT DISTINCT + SUM( - + 15 ) * + SUM( DISTINCT - 94 ) + + 31 DIV - 2 col1
----
1395

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT + SUM ( - + 15 ) * + SUM ( DISTINCT - 94 ) + + 31 / - 2 col1
----
1395

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT ALL - 96 * 36 AS col0, - 42 * - + COUNT( * )
----
-3456
42

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL - 96 * 36 AS col0, - 42 * - + COUNT ( * )
----
-3456
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT + 71 * + 14 + + 45 + - - 55 * - CAST( - - 72 AS SIGNED )
----
-2921

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + 71 * + 14 + + 45 + - - 55 * - CAST ( - - 72 AS INTEGER )
----
-2921

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT 98 * + - COALESCE ( - 48, + - 90 ) * + COUNT( DISTINCT + + 26 ) + - 11 - 10
----
4683

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT 98 * + - COALESCE ( - 48, + - 90 ) * + COUNT ( DISTINCT + + 26 ) + - 11 - 10
----
4683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL 67 * 55 + + 63 + 59 * 24 * - 93 + + CAST( + 65 AS SIGNED )
----
-127875

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL 67 * 55 + + 63 + 59 * 24 * - 93 + + CAST ( + 65 AS INTEGER )
----
-127875

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT NULLIF ( + ( COUNT( * ) ), + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3784
SELECT NULLIF ( + ( COUNT ( * ) ), + - COUNT ( * ) )
----
1

query I rowsort
SELECT NULLIF ( 73, + 20 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - SUM( ALL 78 ) * MAX( DISTINCT + + 47 ) + - 76 AS col2
----
-3742

skipif mysql # not compatible
query I rowsort label-3786
SELECT - SUM ( ALL 78 ) * MAX ( DISTINCT + + 47 ) + - 76 AS col2
----
-3742

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT + CASE - COUNT( * ) WHEN MIN( - 68 ) THEN - COUNT( * ) ELSE SUM( + 83 ) END AS col1, 23
----
83
23

skipif mysql # not compatible
query II rowsort label-3787
SELECT + CASE - COUNT ( * ) WHEN MIN ( - 68 ) THEN - COUNT ( * ) ELSE SUM ( + 83 ) END AS col1, 23
----
83
23

query I rowsort
SELECT - - 56 + + 74 col2
----
130

query I rowsort
SELECT + - 51 * + 54
----
-2754

query I rowsort
SELECT - 65 + - + 44 AS col0
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT ALL 24 * 63 + - - 52 DIV 60 + + 2 AS col2
----
1514

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL 24 * 63 + - - 52 / 60 + + 2 AS col2
----
1514

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - 78 + - MIN( ALL + 53 )
----
-131

skipif mysql # not compatible
query I rowsort label-3792
SELECT - 78 + - MIN ( ALL + 53 )
----
-131

query I rowsort
SELECT + 48 - - 43
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT + MIN( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + MIN ( + 17 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3795
SELECT ALL + 79 * 11 * + - CAST( AVG ( DISTINCT - - 14 ) AS SIGNED ) AS col2, - 45 + - - COUNT( * )
----
-12166
-44

skipif mysql # not compatible
query II rowsort label-3795
SELECT ALL + 79 * 11 * + - CAST ( AVG ( DISTINCT - - 14 ) AS INTEGER ) AS col2, - 45 + - - COUNT ( * )
----
-12166
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT + 5 + MAX( DISTINCT 48 )
----
53

skipif mysql # not compatible
query I rowsort label-3796
SELECT + 5 + MAX ( DISTINCT 48 )
----
53

query I rowsort
SELECT ALL + 10 + - 21 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT DISTINCT - 52 - COUNT( * ) AS col0, ( + NULLIF ( - + 66, 93 * 82 * 76 ) ) - + 23 AS col0
----
-53
-89

skipif mysql # not compatible
query II rowsort label-3798
SELECT DISTINCT - 52 - COUNT ( * ) AS col0, ( + NULLIF ( - + 66, 93 * 82 * 76 ) ) - + 23 AS col0
----
-53
-89

query I rowsort
SELECT ALL + 30 - - ( + - 68 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT - ( - CAST( - 12 AS SIGNED ) )
----
-12

skipif mysql # not compatible
query I rowsort label-3800
SELECT - ( - CAST ( - 12 AS INTEGER ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + COUNT( * ) + 47 - + 81
----
-33

skipif mysql # not compatible
query I rowsort label-3801
SELECT + COUNT ( * ) + 47 - + 81
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT + SUM( ALL - 64 ) + 21
----
-43

skipif mysql # not compatible
query I rowsort label-3802
SELECT + SUM ( ALL - 64 ) + 21
----
-43

query I rowsort
SELECT - 64 * - + COALESCE ( + 34, - 23 ) + - + 49
----
2127

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL SUM( - COALESCE ( 71, - 48 + + 67, - 0 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL SUM ( - COALESCE ( 71, - 48 + + 67, - 0 ) ) AS col2
----
-71

query I rowsort
SELECT ALL - CASE + 58 WHEN 46 THEN + 72 END * + ( - 48 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT ALL - 3 DIV 32 + 81 * + 84 AS col2
----
6804

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - 3 / 32 + 81 * + 84 AS col2
----
6804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3807
SELECT ALL NULLIF ( CAST( + - ( - COUNT( * ) ) AS SIGNED ), + 49 ) DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL NULLIF ( CAST ( + - ( - COUNT ( * ) ) AS INTEGER ), + 49 ) / 53 AS col1
----
0

query I rowsort
SELECT 18 * - 24 * - - 69 AS col1
----
-29808

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL + COALESCE ( + 97, + 24 + - 90 * - COUNT( DISTINCT 27 ) ) * - 71 AS col1
----
-6887

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + COALESCE ( + 97, + 24 + - 90 * - COUNT ( DISTINCT 27 ) ) * - 71 AS col1
----
-6887

query I rowsort
SELECT ( 8 ) + 26 + + + 97
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT 0 * + ( - 78 ) * 26 - - 73 DIV 17 * + 94 + + 12 * 40
----
856

skipif mysql # not compatible
query I rowsort label-3811
SELECT 0 * + ( - 78 ) * 26 - - 73 / 17 * + 94 + + 12 * 40
----
856

query I rowsort
SELECT 44 * + - 36 col2
----
-1584

query I rowsort
SELECT ALL 59 + + 62
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-3814
SELECT 19 * 71 + + COUNT( * ) AS col0, - 61
----
1350
-61

skipif mysql # not compatible
query II rowsort label-3814
SELECT 19 * 71 + + COUNT ( * ) AS col0, - 61
----
1350
-61

query II rowsort
SELECT + 75 AS col0, - 41 AS col0
----
75
-41

query I rowsort
SELECT + 63 * + 16 - + + 50 AS col0
----
958

query I rowsort
SELECT ALL - 28 * + 85 AS col1
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT COUNT( * ) + - ( 10 )
----
-9

skipif mysql # not compatible
query I rowsort label-3818
SELECT COUNT ( * ) + - ( 10 )
----
-9

query I rowsort
SELECT ALL 23 + - ( 24 ) + + 65 - 7 * - 64
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL - COALESCE ( - COALESCE ( - 30, + - 1 + + 90 + 78 * + COUNT( * ) * - 53 ), - + SUM( - 84 ) ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - COALESCE ( - COALESCE ( - 30, + - 1 + + 90 + 78 * + COUNT ( * ) * - 53 ), - + SUM ( - 84 ) ) col1
----
-30

query I rowsort
SELECT ALL + 56 + - 47 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT CASE + + COUNT( * ) WHEN + + 66 * 72 * + 1 + 25 THEN + 57 * + ( 85 ) * - 11 / - 55 * - - 84 + + - 54 + 65 ELSE NULL END * - 16 + + COUNT( * ) / + + 99 - 95 + + COALESCE ( - 69, - COALESCE ( + 13, 77 + 94 * + ( - 36 ), + 77 * COUNT( * ) ) - 17, + COUNT( 27 ) * MIN( - ( 74 ) ) ) * 62 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT CASE + + COUNT ( * ) WHEN + + 66 * 72 * + 1 + 25 THEN + 57 * + ( 85 ) * - 11 / - 55 * - - 84 + + - 54 + 65 ELSE NULL END * - 16 + + COUNT ( * ) / + + 99 - 95 + + COALESCE ( - 69, - COALESCE ( + 13, 77 + 94 * + ( - 36 ), + 77 * COUNT ( * ) ) - 17, + COUNT ( 27 ) * MIN ( - ( 74 ) ) ) * 62 * 76
----
NULL

query I rowsort
SELECT DISTINCT - 11 + + + 39 AS col2
----
28

query I rowsort
SELECT 78 + - ( - 26 )
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3825
SELECT ALL + 93 + + + CASE CASE - - 87 WHEN 47 THEN MAX( ALL - - ( + - 20 ) ) * + 11 - CAST( NULL AS SIGNED ) WHEN - CASE - AVG ( + 24 ) WHEN + + CASE + COUNT( * ) WHEN - 50 THEN + COALESCE ( - ( 80 ), - 43 * 16 ) END * - 39 * - 0 THEN 22 * - COALESCE ( + 40, AVG ( ALL + 24 ) * - 75 ) * 70 + COUNT( * ) WHEN 87 + COUNT( * ) THEN NULL ELSE - 24 END + ( + 47 ) THEN NULL WHEN + NULLIF ( - 86, + ( - 28 ) * 61 + 94 * + 12 ) * - CAST( 79 AS DECIMAL ) THEN NULL ELSE - 64 END WHEN - MAX( ALL 22 ) THEN NULL WHEN COALESCE ( 6, 25 + - MIN( ALL 70 ) * 12 ) * - CAST( + 76 * 87 AS SIGNED ) THEN NULL WHEN - 44 / + 29 THEN 18 END + 8 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 93 + + + CASE CASE - - 87 WHEN 47 THEN MAX ( ALL - - ( + - 20 ) ) * + 11 - CAST ( NULL AS INTEGER ) WHEN - CASE - AVG ( + 24 ) WHEN + + CASE + COUNT ( * ) WHEN - 50 THEN + COALESCE ( - ( 80 ), - 43 * 16 ) END * - 39 * - 0 THEN 22 * - COALESCE ( + 40, AVG ( ALL + 24 ) * - 75 ) * 70 + COUNT ( * ) WHEN 87 + COUNT ( * ) THEN NULL ELSE - 24 END + ( + 47 ) THEN NULL WHEN + NULLIF ( - 86, + ( - 28 ) * 61 + 94 * + 12 ) * - CAST ( 79 AS REAL ) THEN NULL ELSE - 64 END WHEN - MAX ( ALL 22 ) THEN NULL WHEN COALESCE ( 6, 25 + - MIN ( ALL 70 ) * 12 ) * - CAST ( + 76 * 87 AS INTEGER ) THEN NULL WHEN - 44 / + 29 THEN 18 END + 8 * + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT 49 * + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3826
SELECT 49 * + + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT 47 * 96 * - 97 + + + 1 * + ( COUNT( * ) ) * - + 46 AS col2
----
-437710

skipif mysql # not compatible
query I rowsort label-3827
SELECT 47 * 96 * - 97 + + + 1 * + ( COUNT ( * ) ) * - + 46 AS col2
----
-437710

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT ALL + + 97 * COUNT( * ) + + 99, 79 AS col1
----
196
79

skipif mysql # not compatible
query II rowsort label-3828
SELECT ALL + + 97 * COUNT ( * ) + + 99, 79 AS col1
----
196
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT COUNT( * ) * - + 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3829
SELECT COUNT ( * ) * - + 1 AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 47 * + - 76
----
3572

query I rowsort
SELECT + ( + 14 ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT - 12 DIV + - 12 col0
----
1

skipif mysql # not compatible
query I rowsort label-3832
SELECT - 12 / + - 12 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3833
SELECT DISTINCT - CASE + 9 WHEN + 49 - 73 * - 23 THEN NULL WHEN - ( 96 ) THEN 29 + + 38 / - - 73 + CAST( + 15 AS DECIMAL ) WHEN 27 THEN 80 + 75 + - - 35 END AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3833
SELECT DISTINCT - CASE + 9 WHEN + 49 - 73 * - 23 THEN NULL WHEN - ( 96 ) THEN 29 + + 38 / - - 73 + CAST ( + 15 AS REAL ) WHEN 27 THEN 80 + 75 + - - 35 END AS col0, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - ( + 79 ) - + 51
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3835
SELECT ALL NULLIF ( + 82, 6 * - CAST( - 26 AS SIGNED ) * 38 - + CASE - + CAST( NULL AS DECIMAL ) WHEN + - 71 * - 95 THEN - 55 WHEN - 28 THEN - AVG ( DISTINCT + 86 ) ELSE NULL END * - MAX( ALL 20 ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL NULLIF ( + 82, 6 * - CAST ( - 26 AS INTEGER ) * 38 - + CASE - + CAST ( NULL AS REAL ) WHEN + - 71 * - 95 THEN - 55 WHEN - 28 THEN - AVG ( DISTINCT + 86 ) ELSE NULL END * - MAX ( ALL 20 ) ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT DISTINCT CAST( 55 AS SIGNED ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT CAST ( 55 AS INTEGER ) AS col2
----
55

query I rowsort
SELECT ALL - COALESCE ( - + 23, + - 96 )
----
23

query I rowsort
SELECT ALL - 57 * + 31 AS col2
----
-1767

query I rowsort
SELECT DISTINCT + 41 * - + 62
----
-2542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3840
SELECT COALESCE ( - - COUNT( * ), - - 18 + - 33 * - 79 ) DIV + - CASE 14 WHEN - 69 + - 98 + - - COUNT( * ) DIV + - 9 THEN - - 52 + - 45 WHEN - + 12 * + 58 THEN COUNT( * ) ELSE + 7 END * + 91 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT COALESCE ( - - COUNT ( * ), - - 18 + - 33 * - 79 ) / + - CASE 14 WHEN - 69 + - 98 + - - COUNT ( * ) / + - 9 THEN - - 52 + - 45 WHEN - + 12 * + 58 THEN COUNT ( * ) ELSE + 7 END * + 91 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT COUNT( * ) * + + 50
----
50

skipif mysql # not compatible
query I rowsort label-3841
SELECT COUNT ( * ) * + + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT DISTINCT ( + ( + + 72 ) ) * + MIN( + 9 )
----
648

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT ( + ( + + 72 ) ) * + MIN ( + 9 )
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - 15 * 71 + + COUNT( * ) + - + 29 + + 35 AS col2
----
-1058

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 15 * 71 + + COUNT ( * ) + - + 29 + + 35 AS col2
----
-1058

query I rowsort
SELECT ALL + NULLIF ( 95, - - 0 ) * + - 78 + + - 42 AS col1
----
-7452

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT MAX( + 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3845
SELECT MAX ( + 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ALL 15 * - + 11 + - COUNT( * ) AS col0
----
-166

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL 15 * - + 11 + - COUNT ( * ) AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT COUNT( DISTINCT - + 88 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3847
SELECT COUNT ( DISTINCT - + 88 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3848
SELECT CAST( + + COALESCE ( - + CASE + + 79 WHEN + - 68 THEN NULL WHEN + + 19 * 32 + + CAST( NULL AS DECIMAL ) DIV - 32 THEN NULL ELSE SUM( - + 73 ) * - - SUM( + + 27 ) * - 74 * 81 + + - 38 + - ( ( + 28 ) ) + + 80 + + - ( ( + MAX( DISTINCT + - 9 ) ) ) + ( - + 0 ) * - ( - 18 ) END, + NULLIF ( 57, + COALESCE ( + ( 57 ), 77 + 41 DIV + 47 ) DIV - COUNT( * ) ) ) AS SIGNED ) DIV + COALESCE ( + 58, COUNT( * ) ) AS col2
----
-203693

skipif mysql # not compatible
query I rowsort label-3848
SELECT CAST ( + + COALESCE ( - + CASE + + 79 WHEN + - 68 THEN NULL WHEN + + 19 * 32 + + CAST ( NULL AS REAL ) / - 32 THEN NULL ELSE SUM ( - + 73 ) * - - SUM ( + + 27 ) * - 74 * 81 + + - 38 + - ( ( + 28 ) ) + + 80 + + - ( ( + MAX ( DISTINCT + - 9 ) ) ) + ( - + 0 ) * - ( - 18 ) END, + NULLIF ( 57, + COALESCE ( + ( 57 ), 77 + 41 / + 47 ) / - COUNT ( * ) ) ) AS INTEGER ) / + COALESCE ( + 58, COUNT ( * ) ) AS col2
----
-203693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3849
SELECT SUM( - 7 ) DIV + - COUNT( * ) - - 44 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3849
SELECT SUM ( - 7 ) / + - COUNT ( * ) - - 44 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT COUNT( 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3850
SELECT COUNT ( 34 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT + COUNT( * ) AS col1, - 40 AS col0
----
1
-40

skipif mysql # not compatible
query II rowsort label-3851
SELECT + COUNT ( * ) AS col1, - 40 AS col0
----
1
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3852
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 41 AS col1
----
NULL

query I rowsort
SELECT ALL 86 * 76
----
6536

onlyif mysql # aggregate syntax: 
query II rowsort label-3854
SELECT ALL - COUNT( * ) AS col2, 55 AS col0
----
-1
55

skipif mysql # not compatible
query II rowsort label-3854
SELECT ALL - COUNT ( * ) AS col2, 55 AS col0
----
-1
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT + CAST( - + 16 AS SIGNED ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3855
SELECT + CAST ( - + 16 AS INTEGER ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT + 85 * - 18 - + SUM( ALL - - 86 ) col0
----
-1616

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT + 85 * - 18 - + SUM ( ALL - - 86 ) col0
----
-1616

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT + COUNT( * ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3857
SELECT + COUNT ( * ), COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT + COALESCE ( CAST( + 50 AS SIGNED ), - 15 ) * 50 + - - 6 + + + 27 - - - 80
----
2453

skipif mysql # not compatible
query I rowsort label-3858
SELECT + COALESCE ( CAST ( + 50 AS INTEGER ), - 15 ) * 50 + - - 6 + + + 27 - - - 80
----
2453

query II rowsort
SELECT ALL + 0 col1, + ( 42 )
----
0
42

query I rowsort
SELECT - + 91 * + 71 AS col2
----
-6461

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + - COUNT( * ) + 5 + 32 + - 95 + + - COUNT( * ) * - 62
----
3

skipif mysql # not compatible
query I rowsort label-3861
SELECT + - COUNT ( * ) + 5 + 32 + - 95 + + - COUNT ( * ) * - 62
----
3

query I rowsort
SELECT - + 47 + 50
----
3

query I rowsort
SELECT ALL + - 52 * + - 8 * - - 57
----
23712

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT DISTINCT - 8 DIV + 6
----
-1

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - 8 / + 6
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3865
SELECT DISTINCT - + 39 * COALESCE ( - 48, + + 83 DIV + ( - 19 ) ) AS col1, - 33 + COUNT( ALL 89 )
----
1872
-32

skipif mysql # not compatible
query II rowsort label-3865
SELECT DISTINCT - + 39 * COALESCE ( - 48, + + 83 / + ( - 19 ) ) AS col1, - 33 + COUNT ( ALL 89 )
----
1872
-32

query II rowsort
SELECT ALL - 92, + 70 AS col2
----
-92
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * - - 44 - + ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * - - 44 - + ( + + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3869
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 54 + - ( + 81 ) / - 42 * - 32 ) + + 80 * + - 10, + 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-3869
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 54 + - ( + 81 ) / - 42 * - 32 ) + + 80 * + - 10, + 33 AS col0
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT COALESCE ( + COUNT( - - 6 ), - ( + ( + - 74 ) ) * + - 64 * + - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT COALESCE ( + COUNT ( - - 6 ), - ( + ( + - 74 ) ) * + - 64 * + - 20 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT ALL + COUNT( * ) + 9 + - 81 * 49 DIV + 79 col2
----
-40

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL + COUNT ( * ) + 9 + - 81 * 49 / + 79 col2
----
-40

query I rowsort
SELECT - 42 * - - 11
----
-462

query I rowsort
SELECT ALL ( - CASE + - 44 WHEN + 92 * + 23 THEN NULL ELSE - - 88 + + 64 END )
----
-152

query I rowsort
SELECT DISTINCT + 10 + - 31 * + 73
----
-2253

query I rowsort
SELECT DISTINCT COALESCE ( - 61, - 19 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT ALL 6 + + + 78 + - COALESCE ( - 14, COUNT( * ) + + - ( - - 43 ), - ( + ( 33 ) ) * - 33 * - + 31 * + - COALESCE ( 38, + + 50 ) + - - 13 ) - - 47 * 17 * - 4 + + + 97, 13 AS col0
----
-3001
13

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL 6 + + + 78 + - COALESCE ( - 14, COUNT ( * ) + + - ( - - 43 ), - ( + ( 33 ) ) * - 33 * - + 31 * + - COALESCE ( 38, + + 50 ) + - - 13 ) - - 47 * 17 * - 4 + + + 97, 13 AS col0
----
-3001
13

query I rowsort
SELECT ALL 64 + + 78 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT + COUNT( * ) + - 80 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + COUNT ( * ) + - 80 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT ALL ( + 76 ) / + SUM( + + 91 ) + CASE - + 99 WHEN + - 23 THEN CASE 74 WHEN - 67 THEN NULL WHEN + CAST( COALESCE ( - 84, + + ( + 35 ) ) AS SIGNED ) * + + COUNT( - + 31 ) THEN 6 END WHEN - + 7 * - CASE + + 88 WHEN + 97 / - SUM( ALL + + 56 ) * + 39 + - - COALESCE ( + 80, + 82 ) THEN 17 WHEN - 78 THEN - 23 WHEN - AVG ( - 5 ) THEN + 83 ELSE - CAST( + COALESCE ( 98, 35, COALESCE ( COUNT( * ), COUNT( * ) + 96 ) * - 53 ) AS SIGNED ) END + NULLIF ( - 37 - 90, + 90 + 9 ) - - 78 THEN NULL END * ( - 81 + + COUNT( * ) ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL ( + 76 ) / + SUM ( + + 91 ) + CASE - + 99 WHEN + - 23 THEN CASE 74 WHEN - 67 THEN NULL WHEN + CAST ( COALESCE ( - 84, + + ( + 35 ) ) AS INTEGER ) * + + COUNT ( - + 31 ) THEN 6 END WHEN - + 7 * - CASE + + 88 WHEN + 97 / - SUM ( ALL + + 56 ) * + 39 + - - COALESCE ( + 80, + 82 ) THEN 17 WHEN - 78 THEN - 23 WHEN - AVG ( - 5 ) THEN + 83 ELSE - CAST ( + COALESCE ( 98, 35, COALESCE ( COUNT ( * ), COUNT ( * ) + 96 ) * - 53 ) AS INTEGER ) END + NULLIF ( - 37 - 90, + 90 + 9 ) - - 78 THEN NULL END * ( - 81 + + COUNT ( * ) ) + + 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3880
SELECT - NULLIF ( 70, - + CASE + 84 WHEN - 86 * 90 THEN - 88 END ) * - 79 + - 48 DIV - 46 * - COUNT( * ) + - 68 AS col2, - 13 AS col2
----
5461
-13

skipif mysql # not compatible
query II rowsort label-3880
SELECT - NULLIF ( 70, - + CASE + 84 WHEN - 86 * 90 THEN - 88 END ) * - 79 + - 48 / - 46 * - COUNT ( * ) + - 68 AS col2, - 13 AS col2
----
5461
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT - NULLIF ( + + 64, - COUNT( DISTINCT - CAST( 50 AS SIGNED ) ) ) + + 51 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3881
SELECT - NULLIF ( + + 64, - COUNT ( DISTINCT - CAST ( 50 AS INTEGER ) ) ) + + 51 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL - 79 * + 17 - - - COUNT( * ) AS col2
----
-1344

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - 79 * + 17 - - - COUNT ( * ) AS col2
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3883
SELECT + CASE - 20 WHEN - - COUNT( - 8 ) * - + ( - + COUNT( * ) ) + 22 THEN - 47 WHEN + ( COALESCE ( CAST( + - 10 AS SIGNED ), + 64 * - + 85, - - 3 ) ) THEN + 15 + + 49 WHEN - 6 + 6 THEN + 86 + COUNT( * ) * - CAST( NULL AS DECIMAL ) ELSE NULL END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT + CASE - 20 WHEN - - COUNT ( - 8 ) * - + ( - + COUNT ( * ) ) + 22 THEN - 47 WHEN + ( COALESCE ( CAST ( + - 10 AS INTEGER ), + 64 * - + 85, - - 3 ) ) THEN + 15 + + 49 WHEN - 6 + 6 THEN + 86 + COUNT ( * ) * - CAST ( NULL AS REAL ) ELSE NULL END * 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3884
SELECT ALL ( CAST( - 74 AS SIGNED ) ) DIV + - ( + + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL ( CAST ( - 74 AS INTEGER ) ) / + - ( + + 64 )
----
1

query I rowsort
SELECT 86 * + + 84 + - 53 + 79 + + 24 AS col1
----
7274

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT - + 0 * + + 58 DIV + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT - + 0 * + + 58 / + 37 AS col0
----
0

query I rowsort
SELECT - + 42 * + ( - 31 ) AS col0
----
1302

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3888
SELECT + - COUNT( * ) DIV + 33, + COUNT( * ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3888
SELECT + - COUNT ( * ) / + 33, + COUNT ( * ) col0
----
0
1

query I rowsort
SELECT + - 67 * 74
----
-4958

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT ALL 86 * 56 col2, + 84 * + - 15 + + MIN( 81 ) + - MIN( DISTINCT + 33 )
----
4816
-1212

skipif mysql # not compatible
query II rowsort label-3890
SELECT ALL 86 * 56 col2, + 84 * + - 15 + + MIN ( 81 ) + - MIN ( DISTINCT + 33 )
----
4816
-1212

query I rowsort
SELECT ALL + 7 * - - 97 + - 65 + + 7
----
621

query I rowsort
SELECT + 74 * 27 col2
----
1998

query II rowsort
SELECT ALL - 79 * 67 AS col1, + 94 AS col1
----
-5293
94

query I rowsort
SELECT ALL + 23 * 9 + + 12 * + 21 + + - 49 * - 53
----
3056

query I rowsort
SELECT - - 18 * + 38 - + 70 AS col1
----
614

query I rowsort
SELECT - - 85 * - - ( + - ( + - 38 ) ) col1
----
3230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3897
SELECT ALL - MAX( ALL - 11 ) DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - MAX ( ALL - 11 ) / 86 AS col2
----
0

query I rowsort
SELECT DISTINCT 48 + - 25
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL COUNT( * ) + - 73 + + 52 - - 99 + + 51 * - 47 AS col0
----
-2318

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL COUNT ( * ) + - 73 + + 52 - - 99 + + 51 * - 47 AS col0
----
-2318

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT - 77 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT - 77 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT SUM( - + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT SUM ( - + 26 )
----
-26

query I rowsort
SELECT ALL + 6 + + - 17 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3903
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 35 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3903
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 35 AS col0
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL CAST( + - 90 AS SIGNED ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL CAST ( + - 90 AS INTEGER ) col2
----
-90

query I rowsort
SELECT + 58 * 39 AS col2
----
2262

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT 2 AS col2, 61 * COUNT( * ) + COUNT( * )
----
2
62

skipif mysql # not compatible
query II rowsort label-3906
SELECT 2 AS col2, 61 * COUNT ( * ) + COUNT ( * )
----
2
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT - SUM( + - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3907
SELECT - SUM ( + - 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT DISTINCT CAST( - 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT CAST ( - 50 AS INTEGER )
----
-50

query II rowsort
SELECT ALL - COALESCE ( 38, - 72 ) col1, - 27
----
-38
-27

query II rowsort
SELECT 37 col1, 76 * - 54 * 45 AS col2
----
37
-184680

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT MIN( DISTINCT 79 ) * + + 40 - - SUM( DISTINCT 66 )
----
3226

skipif mysql # not compatible
query I rowsort label-3911
SELECT MIN ( DISTINCT 79 ) * + + 40 - - SUM ( DISTINCT 66 )
----
3226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3912
SELECT CAST( 34 AS SIGNED ) * CASE - 50 WHEN - - COUNT( ALL - ( + 27 ) ) THEN + - 88 END, ( - 24 ) - - NULLIF ( + MIN( + - 5 ), + + 90 ) AS col2
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-3912
SELECT CAST ( 34 AS INTEGER ) * CASE - 50 WHEN - - COUNT ( ALL - ( + 27 ) ) THEN + - 88 END, ( - 24 ) - - NULLIF ( + MIN ( + - 5 ), + + 90 ) AS col2
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - 31 - - 58 * COUNT( * ) * + 94 AS col2
----
5421

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 31 - - 58 * COUNT ( * ) * + 94 AS col2
----
5421

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL - + CASE - COUNT( DISTINCT + 75 ) WHEN - + 70 THEN NULL ELSE - 47 END AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL - + CASE - COUNT ( DISTINCT + 75 ) WHEN - + 70 THEN NULL ELSE - 47 END AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + CASE + NULLIF ( + - 85, 4 ) WHEN - - COUNT( * ) THEN NULL ELSE - - 77 END col2
----
77

skipif mysql # not compatible
query I rowsort label-3915
SELECT + CASE + NULLIF ( + - 85, 4 ) WHEN - - COUNT ( * ) THEN NULL ELSE - - 77 END col2
----
77

query I rowsort
SELECT 73 - - 34
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT + 10 * - - COUNT( * ) + - 76 AS col0, 92 AS col1
----
-66
92

skipif mysql # not compatible
query II rowsort label-3917
SELECT + 10 * - - COUNT ( * ) + - 76 AS col0, 92 AS col1
----
-66
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3918
SELECT COALESCE ( - 63, + - 49 * 64 DIV + + COUNT( * ) ) - + 33
----
-96

skipif mysql # not compatible
query I rowsort label-3918
SELECT COALESCE ( - 63, + - 49 * 64 / + + COUNT ( * ) ) - + 33
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3919
SELECT ALL + COUNT( 93 ) + + 30 + + - COUNT( * ) + + COUNT( * ) DIV ( - + 73 ) + - 80
----
-50

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + COUNT ( 93 ) + + 30 + + - COUNT ( * ) + + COUNT ( * ) / ( - + 73 ) + - 80
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT 22 + 21 * - NULLIF ( + 39, COUNT( * ) * - 93 * - ( - 76 ) + 83 * + 96 + - - 0 )
----
-797

skipif mysql # not compatible
query I rowsort label-3920
SELECT 22 + 21 * - NULLIF ( + 39, COUNT ( * ) * - 93 * - ( - 76 ) + 83 * + 96 + - - 0 )
----
-797

query I rowsort
SELECT + 8 * - + 95
----
-760

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT DISTINCT - 26 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT - 26 / 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3923
SELECT ( - ( + 69 ) ) DIV - CAST( - - 50 AS SIGNED ) + + + 9 - - + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3923
SELECT ( - ( + 69 ) ) / - CAST ( - - 50 AS INTEGER ) + + + 9 - - + COUNT ( * )
----
11

query I rowsort
SELECT 99 + 46
----
145

query I rowsort
SELECT 27 + 90 AS col0
----
117

query I rowsort
SELECT ALL - 37 + - - ( 57 )
----
20

query I rowsort
SELECT ALL 89 + 32
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL 59 + + + 12 + - 90 + - COUNT( * ) + - 66
----
-86

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL 59 + + + 12 + - 90 + - COUNT ( * ) + - 66
----
-86

query I rowsort
SELECT 53 * - - ( 40 )
----
2120

query I rowsort
SELECT 72 + + + 90
----
162

query II rowsort
SELECT 78 * 96 AS col2, 94
----
7488
94

query I rowsort
SELECT 49 + - ( 77 ) - - 89 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT CAST( - - 87 AS SIGNED ) + + 48
----
135

skipif mysql # not compatible
query I rowsort label-3933
SELECT CAST ( - - 87 AS INTEGER ) + + 48
----
135

query I rowsort
SELECT DISTINCT + 93 - 46
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT - 21 * + CAST( 31 AS SIGNED ) AS col2
----
-651

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - 21 * + CAST ( 31 AS INTEGER ) AS col2
----
-651

query I rowsort
SELECT 84 - 59
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT 87 DIV + + 60
----
1

skipif mysql # not compatible
query I rowsort label-3937
SELECT 87 / + + 60
----
1

query I rowsort
SELECT 93 + - + 54 * + ( + 11 ) * + 70
----
-41487

query I rowsort
SELECT ALL + 30 * 30
----
900

query I rowsort
SELECT ALL - 76 * + - 55
----
4180

query I rowsort
SELECT 96 * - + 54
----
-5184

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT - 6 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-3942
SELECT - 6 / 49
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT 86 DIV - COUNT( * ) + + + 81
----
-5

skipif mysql # not compatible
query I rowsort label-3943
SELECT 86 / - COUNT ( * ) + + + 81
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT ALL + - 46 + + CAST( 79 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + - 46 + + CAST ( 79 AS INTEGER ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - 90 * 32 * - COUNT( DISTINCT - - 68 ) + + 27 - 82 + - 72
----
2753

skipif mysql # not compatible
query I rowsort label-3945
SELECT - 90 * 32 * - COUNT ( DISTINCT - - 68 ) + + 27 - 82 + - 72
----
2753

query I rowsort
SELECT 19 + - ( - 0 ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3947
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - NULLIF ( - 90, + COUNT( * ) + - 15 ) AS col1, - 5 AS col1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-3947
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - NULLIF ( - 90, + COUNT ( * ) + - 15 ) AS col1, - 5 AS col1
----
NULL
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT - + ( ( - + 38 ) ) DIV - 21 + 91
----
90

skipif mysql # not compatible
query I rowsort label-3948
SELECT - + ( ( - + 38 ) ) / - 21 + 91
----
90

query I rowsort
SELECT ALL + 88 + - ( 81 ) * 50 AS col1
----
-3962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT ALL - 30 * + - 35 * - 30 - + ( + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL - 30 * + - 35 * - 30 - + ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT - 31 * COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3951
SELECT - 31 * COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT DISTINCT - 96 * - 70 * - - 37 * 10 AS col2
----
2486400

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT ALL + 38 + - 36 + 25 DIV ( 75 ) * + 45 * 71 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + 38 + - 36 + 25 / ( 75 ) * + 45 * 71 AS col2
----
2

query I rowsort
SELECT - CASE + 2 WHEN 27 + - 62 + + 36 THEN NULL ELSE - 26 END AS col1
----
26

query I rowsort
SELECT DISTINCT - - 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT DISTINCT + COUNT( * ) * - 97 - - 2
----
-95

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT + COUNT ( * ) * - 97 - - 2
----
-95

query I rowsort
SELECT DISTINCT - 24 - + 88 col1
----
-112

query I rowsort
SELECT 24 * - + 14 AS col0
----
-336

query I rowsort
SELECT 62 * - 23 * + 5 AS col2
----
-7130

query I rowsort
SELECT ALL COALESCE ( - - 80, - ( + 85 ) )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT DISTINCT 12 DIV + 91 * MAX( ALL + 81 ) * - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT 12 / + 91 * MAX ( ALL + 81 ) * - 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT CASE - + 17 WHEN + 14 - + - 53 * - + 9 * + 67 * - - 86 THEN 17 WHEN + - COUNT( * ) / - 66 THEN NULL ELSE NULL END * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT CASE - + 17 WHEN + 14 - + - 53 * - + 9 * + 67 * - - 86 THEN 17 WHEN + - COUNT ( * ) / - 66 THEN NULL ELSE NULL END * + 70
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3963
SELECT ALL 47 DIV ( - - MAX( + + 68 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL 47 / ( - - MAX ( + + 68 ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT 52 - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT 52 - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT 40 * - - 4
----
160

query I rowsort
SELECT + 81 * - 35
----
-2835

query I rowsort
SELECT DISTINCT 4 * - 55 * - 27 AS col1
----
5940

query I rowsort
SELECT ALL 39 * 48
----
1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT + COUNT( * ) * - SUM( - + 84 ) * - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) + + 82 - - 23 * - - 84 * - 10 * + 5 + + - CAST( - 39 AS SIGNED ) + + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT + COUNT ( * ) * - SUM ( - + 84 ) * - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) + + 82 - - 23 * - - 84 * - 10 * + 5 + + - CAST ( - 39 AS INTEGER ) + + + 71
----
NULL

query I rowsort
SELECT + 51 * - 45 AS col2
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL - COUNT( * ) + - 17
----
-18

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - COUNT ( * ) + - 17
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT DISTINCT 35 + + 32 + CAST( - 58 AS SIGNED ) * - 48 * - 78 * - 45 * - 10
----
-97718333

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT 35 + + 32 + CAST ( - 58 AS INTEGER ) * - 48 * - 78 * - 45 * - 10
----
-97718333

query II rowsort
SELECT ALL 70, + 20 col1
----
70
20

query I rowsort
SELECT + + 63 * + 68 col2
----
4284

query II rowsort
SELECT DISTINCT 53 + + 7 + 0 * + + 42 * - 6 AS col1, 77 * + + 66
----
60
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT COUNT( ALL + + ( 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3976
SELECT COUNT ( ALL + + ( 64 ) )
----
1

query I rowsort
SELECT - 49 * - 11 * + + 94 AS col0
----
50666

query I rowsort
SELECT DISTINCT 19 * - - NULLIF ( + 15, - - 42 + 39 ) * + ( 90 )
----
25650

query I rowsort
SELECT + 93 * 69 AS col0
----
6417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3980
SELECT ALL 37 * + 6 * + - COALESCE ( - 91, + + COALESCE ( + - 65, - + CAST( + 84 AS SIGNED ) * - 48 * - MAX( ALL - 4 ) ) * + 66 * + 84 + + + 50 * - + 28 ), - 38 AS col2
----
20202
-38

skipif mysql # not compatible
query II rowsort label-3980
SELECT ALL 37 * + 6 * + - COALESCE ( - 91, + + COALESCE ( + - 65, - + CAST ( + 84 AS INTEGER ) * - 48 * - MAX ( ALL - 4 ) ) * + 66 * + 84 + + + 50 * - + 28 ), - 38 AS col2
----
20202
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3981
SELECT - - 75 DIV - CAST( - 77 AS SIGNED ) - 87 DIV - COALESCE ( 5, - + 15, + 9 + + 86 ) + - 65 - - COUNT( * ) * + 81
----
33

skipif mysql # not compatible
query I rowsort label-3981
SELECT - - 75 / - CAST ( - 77 AS INTEGER ) - 87 / - COALESCE ( 5, - + 15, + 9 + + 86 ) + - 65 - - COUNT ( * ) * + 81
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - + COUNT( * ) * + 64
----
-64

skipif mysql # not compatible
query I rowsort label-3982
SELECT - + COUNT ( * ) * + 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - + 68 * + COUNT( * ) * COALESCE ( + COUNT( * ), - COALESCE ( - ( 86 ), 92 - - + ( 89 ) ) + - 93 + + 49 ) + + - 7
----
-75

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - + 68 * + COUNT ( * ) * COALESCE ( + COUNT ( * ), - COALESCE ( - ( 86 ), 92 - - + ( 89 ) ) + - 93 + + 49 ) + + - 7
----
-75

query I rowsort
SELECT + - 62 - - 97 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT ALL + + CAST( 39 AS SIGNED ) col1
----
39

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + + CAST ( 39 AS INTEGER ) col1
----
39

query I rowsort
SELECT - 65 * - 28 AS col2
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT CASE + 63 WHEN - 2 * + - 19 * 90 THEN NULL WHEN + 22 - - - ( - COALESCE ( + 23, COUNT( * ) ) ) THEN 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT CASE + 63 WHEN - 2 * + - 19 * 90 THEN NULL WHEN + 22 - - - ( - COALESCE ( + 23, COUNT ( * ) ) ) THEN 38 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT - 27 * MIN( DISTINCT + 61 ) + ( - 15 ) + + 28 * + CASE 72 WHEN COALESCE ( - 17, - 96 + + + 11 ) * COUNT( * ) THEN NULL WHEN + - 29 THEN - + COALESCE ( + 12, + + 99 - + COUNT( * ) ) + - 12 + + CASE + 15 WHEN COUNT( * ) * + 59 + 62 * NULLIF ( - 68, - - 78 / + 35 + - 17 * + COALESCE ( MIN( DISTINCT + CAST( + 86 AS SIGNED ) ), MAX( DISTINCT - 24 ) ) + 65 ) THEN ( - 67 ) ELSE + 71 + + COUNT( DISTINCT 10 - 62 * 70 ) END ELSE - 3 END AS col2
----
-1746

skipif mysql # not compatible
query I rowsort label-3988
SELECT - 27 * MIN ( DISTINCT + 61 ) + ( - 15 ) + + 28 * + CASE 72 WHEN COALESCE ( - 17, - 96 + + + 11 ) * COUNT ( * ) THEN NULL WHEN + - 29 THEN - + COALESCE ( + 12, + + 99 - + COUNT ( * ) ) + - 12 + + CASE + 15 WHEN COUNT ( * ) * + 59 + 62 * NULLIF ( - 68, - - 78 / + 35 + - 17 * + COALESCE ( MIN ( DISTINCT + CAST ( + 86 AS INTEGER ) ), MAX ( DISTINCT - 24 ) ) + 65 ) THEN ( - 67 ) ELSE + 71 + + COUNT ( DISTINCT 10 - 62 * 70 ) END ELSE - 3 END AS col2
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - COUNT( * ) - - 74 + + 67 + + 82 AS col1
----
222

skipif mysql # not compatible
query I rowsort label-3989
SELECT - COUNT ( * ) - - 74 + + 67 + + 82 AS col1
----
222

query I rowsort
SELECT - 59 * 7 AS col2
----
-413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT - AVG ( DISTINCT + 64 ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT - AVG ( DISTINCT + 64 ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 65 * + 34
----
2210

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT + 13, ( COUNT( * ) ) + 34 + + 23 AS col0
----
13
58

skipif mysql # not compatible
query II rowsort label-3993
SELECT + 13, ( COUNT ( * ) ) + 34 + + 23 AS col0
----
13
58

query I rowsort
SELECT ALL + 47 * - 67 * 45 * 79 AS col1
----
-11194695

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - COUNT( * ) + - 43 + 34 * 61 AS col1
----
2030

skipif mysql # not compatible
query I rowsort label-3995
SELECT - COUNT ( * ) + - 43 + 34 * 61 AS col1
----
2030

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3996
SELECT DISTINCT COUNT( * ) AS col1, + 62 + + CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3996
SELECT DISTINCT COUNT ( * ) AS col1, + 62 + + CAST ( NULL AS REAL ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT - 88 + - 3 * - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-3997
SELECT - 88 + - 3 * - + COUNT ( * )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3998
SELECT DISTINCT CAST( - NULLIF ( + 61, 25 * - 43 - + COUNT( * ) + + + ( - 53 ) ) AS SIGNED ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT CAST ( - NULLIF ( + 61, 25 * - 43 - + COUNT ( * ) + + + ( - 53 ) ) AS INTEGER ) col2
----
-61

query I rowsort
SELECT ALL + 48 * + 44 AS col2
----
2112

query II rowsort
SELECT 18, + 56 + - 44 AS col2
----
18
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT - ( + 5 ) DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT - ( + 5 ) / 98 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4002
SELECT + 51 DIV + COUNT( * ) col0
----
51

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 51 / + COUNT ( * ) col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4003
SELECT - 45 AS col2, ( + + 36 ) * + - 18 * - SUM( DISTINCT + - 24 ) * + COUNT( * )
----
-45
-15552

skipif mysql # not compatible
query II rowsort label-4003
SELECT - 45 AS col2, ( + + 36 ) * + - 18 * - SUM ( DISTINCT + - 24 ) * + COUNT ( * )
----
-45
-15552

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - COUNT( * ) + - 38 + + 20 * COUNT( * ) + + + 56 * + 97 * + 29 - + 99
----
157410

skipif mysql # not compatible
query I rowsort label-4004
SELECT - COUNT ( * ) + - 38 + + 20 * COUNT ( * ) + + + 56 * + 97 * + 29 - + 99
----
157410

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT ALL - 12 DIV - + 67
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - 12 / - + 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4006
SELECT DISTINCT + NULLIF ( 62, - + MAX( ALL + + 21 ) ) + - - 51 + + COUNT( * ) AS col2, - ( - - 43 ) + ( + 80 ) + + - COUNT( DISTINCT + + 11 ) DIV + 44
----
114
37

skipif mysql # not compatible
query II rowsort label-4006
SELECT DISTINCT + NULLIF ( 62, - + MAX ( ALL + + 21 ) ) + - - 51 + + COUNT ( * ) AS col2, - ( - - 43 ) + ( + 80 ) + + - COUNT ( DISTINCT + + 11 ) / + 44
----
114
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - MAX( DISTINCT - 4 ) + 44 * + 0 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - MAX ( DISTINCT - 4 ) + 44 * + 0 AS col2
----
4

query I rowsort
SELECT ALL 64 + 79 AS col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT + 21 + + 0 * COALESCE ( - 69, + COUNT( * ), 31 ) - + 94 col1
----
-73

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT + 21 + + 0 * COALESCE ( - 69, + COUNT ( * ), 31 ) - + 94 col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT ALL 8 * + 58 * + CAST( - 63 AS SIGNED )
----
-29232

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL 8 * + 58 * + CAST ( - 63 AS INTEGER )
----
-29232

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + - 52 + - 72 * + - COUNT( * ) + + 23
----
43

skipif mysql # not compatible
query I rowsort label-4011
SELECT + - 52 + - 72 * + - COUNT ( * ) + + 23
----
43

query I rowsort
SELECT + + CASE - 20 WHEN - ( 53 ) + 5 THEN + 13 END + + 37 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT - 90 DIV 7 + 17 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4013
SELECT - 90 / 7 + 17 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT DISTINCT + - CAST( - 66 AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT + - CAST ( - 66 AS INTEGER ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT DISTINCT + + 92 AS col1, - COUNT( * )
----
92
-1

skipif mysql # not compatible
query II rowsort label-4015
SELECT DISTINCT + + 92 AS col1, - COUNT ( * )
----
92
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT ALL 71 * 39 * - ( 42 ) col0, COUNT( * )
----
-116298
1

skipif mysql # not compatible
query II rowsort label-4016
SELECT ALL 71 * 39 * - ( 42 ) col0, COUNT ( * )
----
-116298
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4017
SELECT DISTINCT - COUNT( * ) DIV - 90 - - + 62 * + + 25 + - + 46 - - 5 - - 51 AS col1
----
1560

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT - COUNT ( * ) / - 90 - - + 62 * + + 25 + - + 46 - - 5 - - 51 AS col1
----
1560

query II rowsort
SELECT ALL + - 94 AS col1, + 95
----
-94
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4019
SELECT CASE - 63 WHEN - + 76 THEN NULL ELSE - - 34 * - + 66 * 23 + - - 6 DIV + - CAST( + SUM( 90 ) AS SIGNED ) + - 47 END * - - 98 + - 81 + + 63 AS col2
----
-5062600

skipif mysql # not compatible
query I rowsort label-4019
SELECT CASE - 63 WHEN - + 76 THEN NULL ELSE - - 34 * - + 66 * 23 + - - 6 / + - CAST ( + SUM ( 90 ) AS INTEGER ) + - 47 END * - - 98 + - 81 + + 63 AS col2
----
-5062600

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT ALL + COUNT( * ), + COUNT( + 18 )
----
1
1

skipif mysql # not compatible
query II rowsort label-4020
SELECT ALL + COUNT ( * ), + COUNT ( + 18 )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT - ( 13 ) / + 23 + - 47 + + + 4 * CASE WHEN NOT ( NULL = 17 ) THEN COALESCE ( + 73, - - CAST( NULL AS SIGNED ) * 72, - 28, + - 35 ) END + 4 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT - ( 13 ) / + 23 + - 47 + + + 4 * CASE WHEN NOT ( NULL = 17 ) THEN COALESCE ( + 73, - - CAST ( NULL AS INTEGER ) * 72, - 28, + - 35 ) END + 4 * + 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4022
SELECT + 59 DIV + SUM( 2 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 59 / + SUM ( 2 ) col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4023
SELECT + CAST( + ( + + NULLIF ( - COUNT( * ), - 99 ) ) AS SIGNED ) col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4023
SELECT + CAST ( + ( + + NULLIF ( - COUNT ( * ), - 99 ) ) AS INTEGER ) col2, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT ALL ( + 85 ) * + 10
----
850

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT 68 * 88 DIV 74 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4025
SELECT 68 * 88 / 74 AS col0
----
80

query I rowsort
SELECT DISTINCT - NULLIF ( - ( 4 ), - 76 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL + 16 + - 9 * NULLIF ( + + 99, 78 / ( + ( 36 ) ) * + 49 ) * COUNT( - 10 ) col2
----
-875

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + 16 + - 9 * NULLIF ( + + 99, 78 / ( + ( 36 ) ) * + 49 ) * COUNT ( - 10 ) col2
----
-875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4028
SELECT ( - 20 ) * 26 * - + ( - 43 ) AS col1, CAST( NULL AS SIGNED )
----
-22360
NULL

skipif mysql # not compatible
query II rowsort label-4028
SELECT ( - 20 ) * 26 * - + ( - 43 ) AS col1, CAST ( NULL AS INTEGER )
----
-22360
NULL

query I rowsort
SELECT DISTINCT - 71 + + + 11 AS col2
----
-60

query I rowsort
SELECT ALL + 17 + + 8 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4031
SELECT 84 * NULLIF ( - 84, + COUNT( * ) / + 34 ) * - 54 + - CAST( - 12 AS SIGNED ) * + - 10
----
380904

skipif mysql # not compatible
query I rowsort label-4031
SELECT 84 * NULLIF ( - 84, + COUNT ( * ) / + 34 ) * - 54 + - CAST ( - 12 AS INTEGER ) * + - 10
----
380904

query I rowsort
SELECT DISTINCT 63 * + 11
----
693

query I rowsort
SELECT ALL - 72 + + 87 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - + 26 + - - MAX( + 87 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - + 26 + - - MAX ( + 87 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT MAX( DISTINCT - 23 ) * + - 50
----
1150

skipif mysql # not compatible
query I rowsort label-4035
SELECT MAX ( DISTINCT - 23 ) * + - 50
----
1150

query I rowsort
SELECT ALL + COALESCE ( - - 36, - 94 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT - - ( + MAX( + 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-4037
SELECT - - ( + MAX ( + 27 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT CAST( - + 8 AS SIGNED ) + + 93 - 35 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4038
SELECT CAST ( - + 8 AS INTEGER ) + + 93 - 35 AS col2
----
50

query I rowsort
SELECT + 36 - + + ( - 54 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT CAST( NULL AS SIGNED ) * - 95 + - + 38 + ( - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT CAST ( NULL AS INTEGER ) * - 95 + - + 38 + ( - 62 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT - CAST( 10 AS SIGNED ) * CASE + COUNT( * ) WHEN + - 72 THEN NULL WHEN COALESCE ( - 68, + 6 * - + CAST( NULL AS SIGNED ) + - + 46 * - ( + COUNT( * ) ) * + + 4 ) THEN - 73 END * + 7 * + 50 + + 5 + + - COUNT( * ) * + - 9 * + 91 * 31 / - 98 * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT - CAST ( 10 AS INTEGER ) * CASE + COUNT ( * ) WHEN + - 72 THEN NULL WHEN COALESCE ( - 68, + 6 * - + CAST ( NULL AS INTEGER ) + - + 46 * - ( + COUNT ( * ) ) * + + 4 ) THEN - 73 END * + 7 * + 50 + + 5 + + - COUNT ( * ) * + - 9 * + 91 * 31 / - 98 * - COUNT ( * ) col1
----
NULL

query II rowsort
SELECT - 2 + 7 + - - ( - 73 ) * 37, ( - - 11 ) * - 32 AS col2
----
-2696
-352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + COUNT( - 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + COUNT ( - 32 ) AS col1
----
NULL

query II rowsort
SELECT ( - + 64 ) AS col0, 53 AS col0
----
-64
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT + 7 - + NULLIF ( + MAX( ALL 62 ), - 7 ) + 30 * - + 50 * + - 47 + - + 16 AS col1
----
70429

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + 7 - + NULLIF ( + MAX ( ALL 62 ), - 7 ) + 30 * - + 50 * + - 47 + - + 16 AS col1
----
70429

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT + COALESCE ( - CASE + 49 WHEN - 93 - 1 / - NULLIF ( + 86, - - CAST( NULL AS SIGNED ) ) THEN 62 * + 98 END, 4 * - 41 * + 41 ), 44 AS col1
----
-6724
44

skipif mysql # not compatible
query II rowsort label-4046
SELECT + COALESCE ( - CASE + 49 WHEN - 93 - 1 / - NULLIF ( + 86, - - CAST ( NULL AS INTEGER ) ) THEN 62 * + 98 END, 4 * - 41 * + 41 ), 44 AS col1
----
-6724
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT CAST( - + 21 AS SIGNED ) * - 98
----
2058

skipif mysql # not compatible
query I rowsort label-4047
SELECT CAST ( - + 21 AS INTEGER ) * - 98
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT 43 - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4048
SELECT 43 - - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT 78 * - NULLIF ( - - 36, + COUNT( * ) - + COUNT( * ) ) AS col2
----
-2808

skipif mysql # not compatible
query I rowsort label-4049
SELECT 78 * - NULLIF ( - - 36, + COUNT ( * ) - + COUNT ( * ) ) AS col2
----
-2808

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4050
SELECT ALL - 23, CAST( - 48 AS SIGNED ) AS col0
----
-23
-48

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL - 23, CAST ( - 48 AS INTEGER ) AS col0
----
-23
-48

query II rowsort
SELECT ALL - 26 AS col0, - 38 + + 31 AS col1
----
-26
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4052
SELECT 68 DIV + COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4052
SELECT 68 / + COUNT ( * ) AS col0
----
68

query II rowsort
SELECT + 64 AS col1, 88 * - - 80
----
64
7040

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT ALL - COUNT( * ) AS col2, - 46 AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL - COUNT ( * ) AS col2, - 46 AS col2
----
-1
-46

query I rowsort
SELECT 87 - + 71
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4056
SELECT 21 * + 41 + 94 AS col1, + 94 - - ( - - 10 ) + - - CAST( NULL AS SIGNED ) AS col1
----
955
NULL

skipif mysql # not compatible
query II rowsort label-4056
SELECT 21 * + 41 + 94 AS col1, + 94 - - ( - - 10 ) + - - CAST ( NULL AS INTEGER ) AS col1
----
955
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT ALL 17 + + - COUNT( * ) + 74 * CAST( + CAST( - 9 AS SIGNED ) AS SIGNED ) - + 22 col0
----
-672

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL 17 + + - COUNT ( * ) + 74 * CAST ( + CAST ( - 9 AS INTEGER ) AS INTEGER ) - + 22 col0
----
-672

query I rowsort
SELECT 77 * 7
----
539

query I rowsort
SELECT DISTINCT 46 + + 22 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4060
SELECT 86 AS col2, + 42 + 5 DIV - + 95 * ( - - COUNT( * ) ) AS col1
----
86
42

skipif mysql # not compatible
query II rowsort label-4060
SELECT 86 AS col2, + 42 + 5 / - + 95 * ( - - COUNT ( * ) ) AS col1
----
86
42

query I rowsort
SELECT DISTINCT 22 + - + 51
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL 81 + - 24 * + CAST( + + 34 AS SIGNED ) * + - 44
----
35985

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL 81 + - 24 * + CAST ( + + 34 AS INTEGER ) * + - 44
----
35985

query I rowsort
SELECT DISTINCT - 40 + + 86
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT - 98, COUNT( * ) - - 42 + - + 84 AS col0
----
-98
-41

skipif mysql # not compatible
query II rowsort label-4064
SELECT - 98, COUNT ( * ) - - 42 + - + 84 AS col0
----
-98
-41

query II rowsort
SELECT - 0 AS col1, + 76 AS col0
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + 7 + MIN( - + 38 )
----
-31

skipif mysql # not compatible
query I rowsort label-4066
SELECT + 7 + MIN ( - + 38 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT 19 + COUNT( * ) + - + 14 + + 98 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-4067
SELECT 19 + COUNT ( * ) + - + 14 + + 98 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT NULLIF ( + ( + MIN( DISTINCT 18 ) ), - - COUNT( * ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4068
SELECT NULLIF ( + ( + MIN ( DISTINCT 18 ) ), - - COUNT ( * ) ) AS col1
----
18

query I rowsort
SELECT DISTINCT + - 95 - 30 AS col1
----
-125

query II rowsort
SELECT - 84 AS col0, 41
----
-84
41

query I rowsort
SELECT ALL + 71 - - ( - ( + 35 ) ) AS col0
----
36

query I rowsort
SELECT DISTINCT - 13 * + 67
----
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT + NULLIF ( + CASE - COUNT( * ) WHEN - + 68 THEN + - 7 WHEN + - COUNT( * ) + - 46 - - 12 - - 49 * 55 THEN NULL END, 91 ) - - + COUNT( * ) + - ( + NULLIF ( - 32, + ( - + SUM( + 62 ) ) ) ) * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + NULLIF ( + CASE - COUNT ( * ) WHEN - + 68 THEN + - 7 WHEN + - COUNT ( * ) + - 46 - - 12 - - 49 * 55 THEN NULL END, 91 ) - - + COUNT ( * ) + - ( + NULLIF ( - 32, + ( - + SUM ( + 62 ) ) ) ) * + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL - 80 * + NULLIF ( + + 83, COUNT( * ) * + - 22 ) col1
----
-6640

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - 80 * + NULLIF ( + + 83, COUNT ( * ) * + - 22 ) col1
----
-6640

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT 88 + + 6 DIV 78 col0
----
88

skipif mysql # not compatible
query I rowsort label-4075
SELECT 88 + + 6 / 78 col0
----
88

query I rowsort
SELECT ALL 70 - - 29 AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT DISTINCT 13, 41 + MAX( ALL + + 85 ) AS col1
----
13
126

skipif mysql # not compatible
query II rowsort label-4077
SELECT DISTINCT 13, 41 + MAX ( ALL + + 85 ) AS col1
----
13
126

query I rowsort
SELECT ALL - 19 * + 60 AS col1
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - 32 + 90 - + MAX( + + 0 )
----
58

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 32 + 90 - + MAX ( + + 0 )
----
58

query I rowsort
SELECT DISTINCT - ( + - 71 ) AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT - 89 DIV + COALESCE ( + 79, 89 + - 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-4081
SELECT - 89 / + COALESCE ( + 79, 89 + - 51 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4082
SELECT + COALESCE ( - 53, + 23, + 80 ) * ( + 31 ) + 68 + + 62 - + + CASE 51 WHEN - - 16 * - CASE WHEN - COUNT( * ) > + + COALESCE ( - COALESCE ( 28, - ( - - CASE WHEN 87 BETWEEN + + COUNT( * ) + - 89 AND - 80 + - - 1 + 85 AND NULL NOT BETWEEN NULL AND 81 + CASE CASE - 96 WHEN + ( + + 58 ) * + 87 THEN 77 ELSE - 40 * + 80 END WHEN 73 - 40 * - COUNT( * ) THEN COALESCE ( COUNT( * ), + 12 ) + - 47 WHEN + 53 + + 7 / 17 THEN + 92 * 0 WHEN 9 / - COALESCE ( + COUNT( * ), SUM( 5 ) * COUNT( * ) + - CASE + 89 + 80 WHEN + 10 THEN NULL WHEN 36 THEN 19 + - 14 ELSE 12 END, COUNT( * ) ) THEN NULL ELSE NULL END THEN COUNT( * ) END ) - - 11, - 40 - 28, + 65 ), COUNT( ALL - 50 ) ) THEN + 8 ELSE COUNT( * ) END THEN - COUNT( * ) + + NULLIF ( 46 + 30 * 71, + 94 + + MIN( ALL 22 + + COALESCE ( 88, 48 ) * CAST( 62 * 52 AS DECIMAL ) ) ) WHEN + CAST( NULL AS SIGNED ) THEN 70 WHEN - 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT + COALESCE ( - 53, + 23, + 80 ) * ( + 31 ) + 68 + + 62 - + + CASE 51 WHEN - - 16 * - CASE WHEN - COUNT ( * ) > + + COALESCE ( - COALESCE ( 28, - ( - - CASE WHEN 87 BETWEEN + + COUNT ( * ) + - 89 AND - 80 + - - 1 + 85 AND NULL NOT BETWEEN NULL AND 81 + CASE CASE - 96 WHEN + ( + + 58 ) * + 87 THEN 77 ELSE - 40 * + 80 END WHEN 73 - 40 * - COUNT ( * ) THEN COALESCE ( COUNT ( * ), + 12 ) + - 47 WHEN + 53 + + 7 / 17 THEN + 92 * 0 WHEN 9 / - COALESCE ( + COUNT ( * ), SUM ( 5 ) * COUNT ( * ) + - CASE + 89 + 80 WHEN + 10 THEN NULL WHEN 36 THEN 19 + - 14 ELSE 12 END, COUNT ( * ) ) THEN NULL ELSE NULL END THEN COUNT ( * ) END ) - - 11, - 40 - 28, + 65 ), COUNT ( ALL - 50 ) ) THEN + 8 ELSE COUNT ( * ) END THEN - COUNT ( * ) + + NULLIF ( 46 + 30 * 71, + 94 + + MIN ( ALL 22 + + COALESCE ( 88, 48 ) * CAST ( 62 * 52 AS REAL ) ) ) WHEN + CAST ( NULL AS INTEGER ) THEN 70 WHEN - 89 THEN NULL END
----
NULL

query II rowsort
SELECT 6 * - 31 + - 12, 42 AS col0
----
-198
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT + 72 * + + COUNT( ( + + 16 ) ) AS col0, + 40 + - 30 * + 99 AS col1
----
72
-2930

skipif mysql # not compatible
query II rowsort label-4084
SELECT + 72 * + + COUNT ( ( + + 16 ) ) AS col0, + 40 + - 30 * + 99 AS col1
----
72
-2930

query I rowsort
SELECT ALL + 88 * + ( + 85 )
----
7480

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - MIN( DISTINCT - + 3 ) + + COUNT( + + 24 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4086
SELECT - MIN ( DISTINCT - + 3 ) + + COUNT ( + + 24 ) AS col0
----
4

query I rowsort
SELECT ALL + 87 * - 54 + - 75
----
-4773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT ALL 95 * COALESCE ( - 6, + CAST( + COUNT( * ) AS SIGNED ) * - 12 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL 95 * COALESCE ( - 6, + CAST ( + COUNT ( * ) AS INTEGER ) * - 12 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT NULLIF ( - CASE 28 WHEN - 25 / - CASE + + COALESCE ( + + 88, - CAST( NULL AS SIGNED ) * + ( + 48 ) ) WHEN + - 59 + + 68 THEN + - 31 END * - 67 * - ( - COUNT( * ) ) THEN NULL WHEN + 46 THEN COUNT( * ) ELSE NULL END, + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT NULLIF ( - CASE 28 WHEN - 25 / - CASE + + COALESCE ( + + 88, - CAST ( NULL AS INTEGER ) * + ( + 48 ) ) WHEN + - 59 + + 68 THEN + - 31 END * - 67 * - ( - COUNT ( * ) ) THEN NULL WHEN + 46 THEN COUNT ( * ) ELSE NULL END, + 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT COALESCE ( + - 45, - + 10 + + 40 * - SUM( DISTINCT 29 ) + - 20 )
----
-45

skipif mysql # not compatible
query I rowsort label-4090
SELECT COALESCE ( + - 45, - + 10 + + 40 * - SUM ( DISTINCT 29 ) + - 20 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT + 14 * - COUNT( * ) + - - 19 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4091
SELECT + 14 * - COUNT ( * ) + - - 19 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL 32 * + 70 + + + MAX( - 71 ) AS col0
----
2169

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 32 * + 70 + + + MAX ( - 71 ) AS col0
----
2169

query I rowsort
SELECT + 11 + - 89 - + 0 col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT + NULLIF ( - COUNT( * ), + + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4094
SELECT + NULLIF ( - COUNT ( * ), + + 74 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT COUNT( * ) * + + 40 + - + 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT COUNT ( * ) * + + 40 + - + 20 AS col0
----
20

query I rowsort
SELECT ALL - 17 * + - 22 * + 38
----
14212

query I rowsort
SELECT DISTINCT - 39 * - 76 + - 16 col0
----
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT COUNT( - - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4098
SELECT COUNT ( - - 10 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT - COUNT( DISTINCT - + 49 ) col0, 97 + 74 AS col1
----
-1
171

skipif mysql # not compatible
query II rowsort label-4099
SELECT - COUNT ( DISTINCT - + 49 ) col0, 97 + 74 AS col1
----
-1
171

onlyif mysql # DIV for integer division: 
query II rowsort label-4100
SELECT + 4 DIV - + 56 AS col2, 60 col1
----
0
60

skipif mysql # not compatible
query II rowsort label-4100
SELECT + 4 / - + 56 AS col2, 60 col1
----
0
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4101
SELECT ALL 74 - - - 60 DIV + - 94 - + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL 74 - - - 60 / + - 94 - + COUNT ( * )
----
73

query I rowsort
SELECT + 44 * + + 57 * + 18 AS col2
----
45144

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - ( + CASE WHEN NOT - ( - - NULLIF ( - 45, - NULLIF ( + + 43, ( + - 11 ) + - - 68 ) ) ) NOT IN ( COUNT( * ) * + 69, 72 - + + 75 + + 21, - 38 - + 30 ) THEN 12 END ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - ( + CASE WHEN NOT - ( - - NULLIF ( - 45, - NULLIF ( + + 43, ( + - 11 ) + - - 68 ) ) ) NOT IN ( COUNT ( * ) * + 69, 72 - + + 75 + + 21, - 38 - + 30 ) THEN 12 END ) * + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT ALL + COUNT( * ) * 50 DIV - - 73 + - COUNT( * ) * + - 34 + + 40 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL + COUNT ( * ) * 50 / - - 73 + - COUNT ( * ) * + - 34 + + 40 AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT + + COALESCE ( COUNT( * ), - 76 * + - 43 + NULLIF ( 20, - ( + 21 ) ) ) * 63 AS col0, 33 * + ( - 51 ) * COUNT( * ) - COUNT( * ) + + 85 col1
----
63
-1599

skipif mysql # not compatible
query II rowsort label-4105
SELECT + + COALESCE ( COUNT ( * ), - 76 * + - 43 + NULLIF ( 20, - ( + 21 ) ) ) * 63 AS col0, 33 * + ( - 51 ) * COUNT ( * ) - COUNT ( * ) + + 85 col1
----
63
-1599

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + + ( + 42 ) - - 80 + + + ( + - COUNT( * ) ) * - 7
----
129

skipif mysql # not compatible
query I rowsort label-4106
SELECT + + ( + 42 ) - - 80 + + + ( + - COUNT ( * ) ) * - 7
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT + - 29 * - - 53 + - 2 + SUM( DISTINCT 62 ) AS col0, 68 * 12 + 89 * + 92 + - SUM( + 29 ) AS col2
----
-1477
8975

skipif mysql # not compatible
query II rowsort label-4107
SELECT + - 29 * - - 53 + - 2 + SUM ( DISTINCT 62 ) AS col0, 68 * 12 + 89 * + 92 + - SUM ( + 29 ) AS col2
----
-1477
8975

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL 63 * 71 - - COUNT( * ) AS col2
----
4474

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL 63 * 71 - - COUNT ( * ) AS col2
----
4474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT DISTINCT NULLIF ( 46, + CAST( + 72 AS SIGNED ) + + - 30 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT NULLIF ( 46, + CAST ( + 72 AS INTEGER ) + + - 30 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + SUM( + 44 ) * + - MAX( - - 36 ) - - NULLIF ( + COUNT( * ), 18 ) AS col1
----
-1583

skipif mysql # not compatible
query I rowsort label-4110
SELECT + SUM ( + 44 ) * + - MAX ( - - 36 ) - - NULLIF ( + COUNT ( * ), 18 ) AS col1
----
-1583

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - MAX( + - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4111
SELECT - MAX ( + - 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4112
SELECT - + 13 * COUNT( * ) * 67 * - - 29, + COALESCE ( 55, + - 67 * - 10 + - + 63 * - COUNT( * ) + - 20 + + CAST( - COALESCE ( - 80, + 87 * + - COUNT( * ) ) AS SIGNED ) + + 50 ) DIV - 90 * - COUNT( * ) + - 3 + CASE - + 85 WHEN 99 THEN NULL ELSE + 65 DIV + 45 END * COUNT( * ) AS col0
----
-25259
-2

skipif mysql # not compatible
query II rowsort label-4112
SELECT - + 13 * COUNT ( * ) * 67 * - - 29, + COALESCE ( 55, + - 67 * - 10 + - + 63 * - COUNT ( * ) + - 20 + + CAST ( - COALESCE ( - 80, + 87 * + - COUNT ( * ) ) AS INTEGER ) + + 50 ) / - 90 * - COUNT ( * ) + - 3 + CASE - + 85 WHEN 99 THEN NULL ELSE + 65 / + 45 END * COUNT ( * ) AS col0
----
-25259
-2

query I rowsort
SELECT ALL - + 12 + + - 40 col2
----
-52

query II rowsort
SELECT + + 2 * + 9 AS col0, 33
----
18
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL + COUNT( DISTINCT 48 ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + COUNT ( DISTINCT 48 ) + 31
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL + - 0 + CASE - 3 WHEN + 47 THEN - AVG ( ALL - 68 ) END + - 88 + + + 30 * + MAX( ALL + 33 ) / COUNT( * ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + - 0 + CASE - 3 WHEN + 47 THEN - AVG ( ALL - 68 ) END + - 88 + + + 30 * + MAX ( ALL + 33 ) / COUNT ( * ) + - 52
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 16, + 53 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4118
SELECT 20 * + 28 * 41 + + - 23 * - CASE 98 WHEN 68 / - COALESCE ( - ( - 73 ), - COALESCE ( + COALESCE ( 76, 83 * + + 27 + 9, - 22 ), - 4 / + + 24 * + 39 ) * + - 17 * - MAX( DISTINCT - - 34 ) + - + SUM( 58 ) + + + CASE + 97 WHEN - 39 * - ( + CASE SUM( DISTINCT - 72 ) WHEN - 6 + + + 85 THEN 74 ELSE NULL END ) THEN NULL WHEN - 16 THEN NULL ELSE ( + 45 ) + - 15 / + 62 END ) + 89 THEN NULL WHEN ( + COALESCE ( - 73, + COALESCE ( MIN( ALL 72 ), - ( 80 ), - NULLIF ( CAST( NULL AS SIGNED ), + 25 ) ) * + 39 ) ) * 72 - - 84 THEN 58 * 32 WHEN COUNT( * ) THEN NULL END + 8 * + ( CASE + 29 WHEN 4 THEN NULL ELSE ( 60 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT 20 * + 28 * 41 + + - 23 * - CASE 98 WHEN 68 / - COALESCE ( - ( - 73 ), - COALESCE ( + COALESCE ( 76, 83 * + + 27 + 9, - 22 ), - 4 / + + 24 * + 39 ) * + - 17 * - MAX ( DISTINCT - - 34 ) + - + SUM ( 58 ) + + + CASE + 97 WHEN - 39 * - ( + CASE SUM ( DISTINCT - 72 ) WHEN - 6 + + + 85 THEN 74 ELSE NULL END ) THEN NULL WHEN - 16 THEN NULL ELSE ( + 45 ) + - 15 / + 62 END ) + 89 THEN NULL WHEN ( + COALESCE ( - 73, + COALESCE ( MIN ( ALL 72 ), - ( 80 ), - NULLIF ( CAST ( NULL AS INTEGER ), + 25 ) ) * + 39 ) ) * 72 - - 84 THEN 58 * 32 WHEN COUNT ( * ) THEN NULL END + 8 * + ( CASE + 29 WHEN 4 THEN NULL ELSE ( 60 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + 35 / - 62 * + 28 + - CASE - 5 WHEN - - COUNT( * ) THEN + + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT + 35 / - 62 * + 28 + - CASE - 5 WHEN - - COUNT ( * ) THEN + + 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT ALL MAX( ALL + - 48 ) DIV - - ( + ( + + 29 ) ) + - + 86 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL MAX ( ALL + - 48 ) / - - ( + ( + + 29 ) ) + - + 86 AS col1
----
-87

query I rowsort
SELECT - NULLIF ( + 77, + + 48 ) * + 67 AS col1
----
-5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4122
SELECT CAST( 86 AS SIGNED ) * + ( 78 ) * - 23 + MAX( 95 ) * 93 + + 85 + - + COUNT( * )
----
-145365

skipif mysql # not compatible
query I rowsort label-4122
SELECT CAST ( 86 AS INTEGER ) * + ( 78 ) * - 23 + MAX ( 95 ) * 93 + + 85 + - + COUNT ( * )
----
-145365

query I rowsort
SELECT ALL + 12 * 32 - + 10 + + 39 + + 93
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL + ( MIN( + + 25 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + ( MIN ( + + 25 ) ) AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT - 45 - - 8 + + 4 + + 66 DIV + - MAX( 56 )
----
-34

skipif mysql # not compatible
query I rowsort label-4125
SELECT - 45 - - 8 + + 4 + + 66 / + - MAX ( 56 )
----
-34

query I rowsort
SELECT - 46 * - + 88 * 47 + - + 88
----
190168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4127
SELECT ALL - 85 * + - ( + - 28 ) - 52 * 41 + - 77 - ( + + 37 ) + + 16 DIV - - 68 * - - COUNT( * ) col2
----
-4626

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - 85 * + - ( + - 28 ) - 52 * 41 + - 77 - ( + + 37 ) + + 16 / - - 68 * - - COUNT ( * ) col2
----
-4626

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT - ( MAX( ALL + 6 ) ) * 75 AS col2
----
-450

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT - ( MAX ( ALL + 6 ) ) * 75 AS col2
----
-450

query I rowsort
SELECT + + 18 * 26
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT - + COALESCE ( - - ( + 57 ), + COUNT( * ) ) + ( - + ( + ( - 83 ) ) ) + 56 - 38 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT - + COALESCE ( - - ( + 57 ), + COUNT ( * ) ) + ( - + ( + ( - 83 ) ) ) + 56 - 38 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 85 * + 88
----
7480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4132
SELECT ALL 8 DIV + 71 * + 26 + COUNT( * ) * - - COUNT( * ), + 42 * 87 AS col2
----
1
3654

skipif mysql # not compatible
query II rowsort label-4132
SELECT ALL 8 / + 71 * + 26 + COUNT ( * ) * - - COUNT ( * ), + 42 * 87 AS col2
----
1
3654

query I rowsort
SELECT + ( 81 ) * + - 41 AS col0
----
-3321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT DISTINCT - 30 * - CAST( COALESCE ( 13, 47, + + 77 ) AS SIGNED ) * 71 + + - 21 * 25 AS col2
----
27165

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT - 30 * - CAST ( COALESCE ( 13, 47, + + 77 ) AS INTEGER ) * 71 + + - 21 * 25 AS col2
----
27165

query I rowsort
SELECT - + 72 + + 2 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT + NULLIF ( + + ( NULLIF ( + + COALESCE ( + + 72, - 30 / 22 ), CAST( COUNT( * ) AS SIGNED ) / COUNT( * ) + - COUNT( * ) * - + 14 / 39 ) ), - + 56 + + - 8 ) + + 79 * + - 37 * 62 * - - ( - CASE + 46 WHEN 37 THEN + COUNT( * ) + 75 WHEN 59 * - 32 / - COALESCE ( - + NULLIF ( + 80, + 39 + + COUNT( * ) + COUNT( * ) * - CAST( + 7 AS SIGNED ) + - 82 ), + COUNT( ALL - 88 ), 90 ) * + 49 THEN NULL END ) + 54 / + 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT + NULLIF ( + + ( NULLIF ( + + COALESCE ( + + 72, - 30 / 22 ), CAST ( COUNT ( * ) AS INTEGER ) / COUNT ( * ) + - COUNT ( * ) * - + 14 / 39 ) ), - + 56 + + - 8 ) + + 79 * + - 37 * 62 * - - ( - CASE + 46 WHEN 37 THEN + COUNT ( * ) + 75 WHEN 59 * - 32 / - COALESCE ( - + NULLIF ( + 80, + 39 + + COUNT ( * ) + COUNT ( * ) * - CAST ( + 7 AS INTEGER ) + - 82 ), + COUNT ( ALL - 88 ), 90 ) * + 49 THEN NULL END ) + 54 / + 9 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT ALL + 3 DIV - - 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + 3 / - - 20 AS col2
----
0

query I rowsort
SELECT - - 97 + - 65 * - 90 AS col1
----
5947

query I rowsort
SELECT + 18 + + - 45 + - - 30
----
3

query I rowsort
SELECT 28 + + + 43 AS col0
----
71

query I rowsort
SELECT ALL 11 + - 40
----
-29

query I rowsort
SELECT - 80 + - 68 - - 44 + - 89 + 24 * + + 62 * + 94 * - + 4 * - 86 AS col0
----
48115775

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL 50 + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL 50 + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT + COUNT( * ) + + 20
----
21

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + COUNT ( * ) + + 20
----
21

query I rowsort
SELECT ALL 33 + 39 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT ALL 38 DIV + - 33
----
-1

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL 38 / + - 33
----
-1

query I rowsort
SELECT 66 + + + 91
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL 77 + + + CAST( - - CAST( - COUNT( - 30 ) AS SIGNED ) AS SIGNED ) + - 45 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 77 + + + CAST ( - - CAST ( - COUNT ( - 30 ) AS INTEGER ) AS INTEGER ) + - 45 * + COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4149
SELECT DISTINCT 81 + - - 75 - + + CAST( NULL AS DECIMAL ) - + 15 + - - MAX( - ( 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT 81 + - - 75 - + + CAST ( NULL AS REAL ) - + 15 + - - MAX ( - ( 61 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MIN( DISTINCT + 43 ) * + 67 AS col2
----
2881

skipif mysql # not compatible
query I rowsort label-4150
SELECT MIN ( DISTINCT + 43 ) * + 67 AS col2
----
2881

query III rowsort
SELECT ALL 65 + + 9 - - 23 - 32 * - 79 + - 39 AS col0, - 67 + + + 14 - - - 32 AS col2, - 91 - + 53 AS col2
----
2586
-85
-144

query I rowsort
SELECT 97 + + 27 + CASE + 55 WHEN + 61 + - 20 THEN - 16 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4153
SELECT DISTINCT 10, - NULLIF ( - ( - + CAST( NULL AS DECIMAL ) ), - 92 ) * + - ( 74 ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4153
SELECT DISTINCT 10, - NULLIF ( - ( - + CAST ( NULL AS REAL ) ), - 92 ) * + - ( 74 ) AS col2
----
10
NULL

query I rowsort
SELECT ALL 5 - + 82 AS col1
----
-77

query I rowsort
SELECT 3 * - + 62
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT COUNT( * ) - 53
----
-52

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT COUNT ( * ) - 53
----
-52

query II rowsort
SELECT 15 * - 79 AS col0, 16
----
-1185
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4158
SELECT 83 AS col0, COUNT( * )
----
83
1

skipif mysql # not compatible
query II rowsort label-4158
SELECT 83 AS col0, COUNT ( * )
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT - SUM( - - 76 ) * + + 60 + - 43 + + 34
----
-4569

skipif mysql # not compatible
query I rowsort label-4159
SELECT - SUM ( - - 76 ) * + + 60 + - 43 + + 34
----
-4569

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + COUNT( DISTINCT + 25 ) * + + 67 * - - 63
----
4221

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + COUNT ( DISTINCT + 25 ) * + + 67 * - - 63
----
4221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT CAST( - - 73 AS SIGNED ) * - 95 * - 25
----
173375

skipif mysql # not compatible
query I rowsort label-4161
SELECT CAST ( - - 73 AS INTEGER ) * - 95 * - 25
----
173375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT 31 + - + CAST( NULL AS SIGNED ) + + ( 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT 31 + - + CAST ( NULL AS INTEGER ) + + ( 51 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-4163
SELECT DISTINCT - MIN( ALL 54 ) AS col0, CASE - + MAX( CAST( NULL AS DECIMAL ) ) WHEN - CAST( NULL AS SIGNED ) * - 74 DIV 40 THEN + COUNT( * ) WHEN - 58 * CAST( NULL AS SIGNED ) + + COUNT( + 44 ) + + 16 * + ( - - 42 ) * + ( + 8 ) * 58 THEN + 24 + - 22 * - + 31 WHEN - 88 * - 92 * 18 THEN NULL ELSE - NULLIF ( ( - - 96 ), + 93 + + CASE - - 76 WHEN + + 18 THEN - 58 * + 31 WHEN + 35 THEN NULL END + + - ( 0 ) * - COUNT( * ) ) DIV 53 + ( 8 ) END * + 85 + - 21 DIV + NULLIF ( 46 * - COUNT( * ), + 50 + - 18 ) col0
----
-54
595

skipif mysql # not compatible
query II rowsort label-4163
SELECT DISTINCT - MIN ( ALL 54 ) AS col0, CASE - + MAX ( CAST ( NULL AS REAL ) ) WHEN - CAST ( NULL AS INTEGER ) * - 74 / 40 THEN + COUNT ( * ) WHEN - 58 * CAST ( NULL AS INTEGER ) + + COUNT ( + 44 ) + + 16 * + ( - - 42 ) * + ( + 8 ) * 58 THEN + 24 + - 22 * - + 31 WHEN - 88 * - 92 * 18 THEN NULL ELSE - NULLIF ( ( - - 96 ), + 93 + + CASE - - 76 WHEN + + 18 THEN - 58 * + 31 WHEN + 35 THEN NULL END + + - ( 0 ) * - COUNT ( * ) ) / 53 + ( 8 ) END * + 85 + - 21 / + NULLIF ( 46 * - COUNT ( * ), + 50 + - 18 ) col0
----
-54
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT COUNT( * ) DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT COUNT ( * ) / - 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL - COUNT( DISTINCT - - 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - COUNT ( DISTINCT - - 81 ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4166
SELECT + 86 AS col0, 98 * CAST( NULL AS DECIMAL ) AS col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-4166
SELECT + 86 AS col0, 98 * CAST ( NULL AS REAL ) AS col1
----
86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT DISTINCT - + COUNT( * ) col2, 61 - ( - COUNT( * ) ) + - COUNT( DISTINCT 10 )
----
-1
61

skipif mysql # not compatible
query II rowsort label-4167
SELECT DISTINCT - + COUNT ( * ) col2, 61 - ( - COUNT ( * ) ) + - COUNT ( DISTINCT 10 )
----
-1
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT + 62 DIV - - 25
----
2

skipif mysql # not compatible
query I rowsort label-4168
SELECT + 62 / - - 25
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT ALL - 81 DIV + 82 * + ( - 77 ) DIV + + 75 + + 89 * - 36
----
-3204

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - 81 / + 82 * + ( - 77 ) / + + 75 + + 89 * - 36
----
-3204

query I rowsort
SELECT ALL - - ( - 76 ) AS col0
----
-76

query I rowsort
SELECT 73 * - 37 AS col1
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - + MAX( + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - + MAX ( + 43 )
----
-43

query II rowsort
SELECT - 12 * 81 AS col0, 73 AS col1
----
-972
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4174
SELECT - - 12 AS col2, COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-4174
SELECT - - 12 AS col2, COUNT ( * )
----
12
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT + + 77 * + CAST( 25 AS SIGNED ) - + 85
----
1840

skipif mysql # not compatible
query I rowsort label-4175
SELECT + + 77 * + CAST ( 25 AS INTEGER ) - + 85
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL + - COUNT( * ) + - 90 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL + - COUNT ( * ) + - 90 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL - MAX( + + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - MAX ( + + 97 )
----
-97

query II rowsort
SELECT - 44 AS col1, 56 AS col2
----
-44
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - + CASE + ( + 74 ) WHEN + 29 THEN - COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT - + CASE + ( + 74 ) WHEN + 29 THEN - COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT CAST( NULL AS SIGNED ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4180
SELECT CAST ( NULL AS INTEGER ) * 82
----
NULL

query I rowsort
SELECT DISTINCT + + 28 + + - ( + - 93 ) AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT 71 * + 73 * COUNT( * ) col2
----
5183

skipif mysql # not compatible
query I rowsort label-4182
SELECT 71 * + 73 * COUNT ( * ) col2
----
5183

query I rowsort
SELECT ALL 18 * - - 33
----
594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4184
SELECT 77 DIV + MAX( ALL + 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT 77 / + MAX ( ALL + 82 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT 53 - - COUNT( * ) * + - 3
----
50

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT 53 - - COUNT ( * ) * + - 3
----
50

query I rowsort
SELECT ALL - 67 * + 73
----
-4891

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT 3 DIV + - 41
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT 3 / + - 41
----
0

query I rowsort
SELECT ( - 94 ) * + 31 AS col2
----
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT MAX( 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4189
SELECT MAX ( 85 ) AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL + 46 * - 29 - + - CAST( NULL AS SIGNED ) * + 42 * + + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + 46 * - 29 - + - CAST ( NULL AS INTEGER ) * + 42 * + + 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT NULLIF ( + + MAX( ALL - + 94 ), + 69 * + COUNT( * ) ) * + 29 * - 56 AS col1, 48 AS col0
----
152656
48

skipif mysql # not compatible
query II rowsort label-4191
SELECT NULLIF ( + + MAX ( ALL - + 94 ), + 69 * + COUNT ( * ) ) * + 29 * - 56 AS col1, 48 AS col0
----
152656
48

query I rowsort
SELECT 38 * + 37 col0
----
1406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT - CAST( NULL AS SIGNED ) * - 52 + + SUM( - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT - CAST ( NULL AS INTEGER ) * - 52 + + SUM ( - 26 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT CAST( NULL AS SIGNED ) * - - 26 * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT CAST ( NULL AS INTEGER ) * - - 26 * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT DISTINCT - + COALESCE ( - 14, + + COUNT( ALL - 94 ) ) * 42, - 78 + - 15 + + 16 + 67 * - 42 AS col0
----
588
-2891

skipif mysql # not compatible
query II rowsort label-4195
SELECT DISTINCT - + COALESCE ( - 14, + + COUNT ( ALL - 94 ) ) * 42, - 78 + - 15 + + 16 + 67 * - 42 AS col0
----
588
-2891

query I rowsort
SELECT + 51 + + 68 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - 81 * - 42 + - + COUNT( * ) AS col2
----
3401

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - 81 * - 42 + - + COUNT ( * ) AS col2
----
3401

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT MIN( DISTINCT - 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4198
SELECT MIN ( DISTINCT - 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT - - 17 * 98 * - + 17 + + COUNT( * )
----
-28321

skipif mysql # not compatible
query I rowsort label-4199
SELECT - - 17 * 98 * - + 17 + + COUNT ( * )
----
-28321

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT + 73 - - COUNT( * ) AS col1, 83 - - + 14
----
74
97

skipif mysql # not compatible
query II rowsort label-4200
SELECT + 73 - - COUNT ( * ) AS col1, 83 - - + 14
----
74
97

query I rowsort
SELECT + 17 * - 18
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL + 11 + + SUM( ALL - + 54 ) + - - 71 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + 11 + + SUM ( ALL - + 54 ) + - - 71 AS col2
----
28

query I rowsort
SELECT - - 89 * + + 29 * + 72 + + 40 * - ( + 14 ) AS col1
----
185272

onlyif mysql # aggregate syntax: 
query III rowsort label-4204
SELECT - 53 + - COUNT( * ) AS col1, MAX( DISTINCT 36 ) - 48 col0, + - 44 AS col0
----
-54
-12
-44

skipif mysql # not compatible
query III rowsort label-4204
SELECT - 53 + - COUNT ( * ) AS col1, MAX ( DISTINCT 36 ) - 48 col0, + - 44 AS col0
----
-54
-12
-44

query I rowsort
SELECT ALL - 51 + - + ( + 79 ) + + 25
----
-105

query I rowsort
SELECT DISTINCT - + 55 * - 4 AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL + + 93 + - - COUNT( * ) + + 37 + - - 87
----
218

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL + + 93 + - - COUNT ( * ) + + 37 + - - 87
----
218

query I rowsort
SELECT ALL ( + + 37 ) AS col0
----
37

query I rowsort
SELECT + 29 + + 99 + 53
----
181

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT - - 96 * - COUNT( * ) - + COUNT( * ) AS col2, 54 - - SUM( - 64 )
----
-97
-10

skipif mysql # not compatible
query II rowsort label-4210
SELECT - - 96 * - COUNT ( * ) - + COUNT ( * ) AS col2, 54 - - SUM ( - 64 )
----
-97
-10

query I rowsort
SELECT - + 90 + + 86 col0
----
-4

query I rowsort
SELECT - 83 * 48 * - 93
----
370512

query I rowsort
SELECT ALL - 98 * 78 AS col2
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT - 71 - + + 15 * + NULLIF ( - 83, 13 + - 80 ) + 89 * + + COUNT( * )
----
1263

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - 71 - + + 15 * + NULLIF ( - 83, 13 + - 80 ) + 89 * + + COUNT ( * )
----
1263

query I rowsort
SELECT - 52 * + 20
----
-1040

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT ALL 64 DIV 69 * + ( + 16 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL 64 / 69 * + ( + 16 ) AS col0
----
0

query I rowsort
SELECT - 70 + 99 AS col0
----
29

query II rowsort
SELECT DISTINCT NULLIF ( - 46, + - 86 ) AS col1, 80 + - 91 AS col0
----
-46
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL CASE - 62 WHEN - 53 + 82 * + + 36 THEN NULL WHEN + 89 / 5 * + + 67 THEN + CAST( NULL AS SIGNED ) ELSE + ( - - 41 ) END
----
41

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL CASE - 62 WHEN - 53 + 82 * + + 36 THEN NULL WHEN + 89 / 5 * + + 67 THEN + CAST ( NULL AS INTEGER ) ELSE + ( - - 41 ) END
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + 46 + + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4220
SELECT + 46 + + - COUNT ( * ) AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT ALL - 36 DIV - 10 col1
----
3

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - 36 / - 10 col1
----
3

query I rowsort
SELECT - 17 * - + 40 AS col1
----
680

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + 22 + COUNT( - 83 )
----
23

skipif mysql # not compatible
query I rowsort label-4223
SELECT + 22 + COUNT ( - 83 )
----
23

query I rowsort
SELECT ALL 28 * - ( + 22 )
----
-616

query I rowsort
SELECT ALL + ( + 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4226
SELECT ALL - COUNT( * ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - COUNT ( * ) / - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT ALL + 92 col2, - 21 + - 17 - + COUNT( * ) + COUNT( * ) - + 39 + + 2 AS col1
----
92
-75

skipif mysql # not compatible
query II rowsort label-4227
SELECT ALL + 92 col2, - 21 + - 17 - + COUNT ( * ) + COUNT ( * ) - + 39 + + 2 AS col1
----
92
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT - 9 * + 21 + + - CASE COUNT( * ) WHEN - COALESCE ( - - 48, NULLIF ( + - 40, + - 97 ) + + 88 / 28 + - 23, + - COALESCE ( 66, + 81 - - 88 ) ) * 46 + 53 THEN NULL WHEN + 72 * - 81 - + + 52 THEN + + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - 9 * + 21 + + - CASE COUNT ( * ) WHEN - COALESCE ( - - 48, NULLIF ( + - 40, + - 97 ) + + 88 / 28 + - 23, + - COALESCE ( 66, + 81 - - 88 ) ) * 46 + 53 THEN NULL WHEN + 72 * - 81 - + + 52 THEN + + 68 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4229
SELECT DISTINCT - 9 * - 4 DIV - - 58, CAST( + 13 AS SIGNED ) AS col1
----
0
13

skipif mysql # not compatible
query II rowsort label-4229
SELECT DISTINCT - 9 * - 4 / - - 58, CAST ( + 13 AS INTEGER ) AS col1
----
0
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT + 39 DIV + ( - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-4230
SELECT + 39 / + ( - 68 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4231
SELECT + - 23, + COUNT( * ) + + 39 - COUNT( * ) * CAST( - - 11 AS SIGNED ) col1
----
-23
29

skipif mysql # not compatible
query II rowsort label-4231
SELECT + - 23, + COUNT ( * ) + + 39 - COUNT ( * ) * CAST ( - - 11 AS INTEGER ) col1
----
-23
29

query II rowsort
SELECT ALL + - 14 AS col0, 95 col0
----
-14
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT COUNT( * ) col2, 11
----
1
11

skipif mysql # not compatible
query II rowsort label-4233
SELECT COUNT ( * ) col2, 11
----
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL 78 * - SUM( + 14 ) + - 52
----
-1144

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL 78 * - SUM ( + 14 ) + - 52
----
-1144

query II rowsort
SELECT + + 35 * + + 23 * ( - 79 ) AS col2, 96
----
-63595
96

query I rowsort
SELECT DISTINCT + - 98 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT - 48 * + MAX( ALL 46 ) - + 69 + + + 93 AS col0
----
-2184

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT - 48 * + MAX ( ALL 46 ) - + 69 + + + 93 AS col0
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL + SUM( 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL + SUM ( 48 ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4239
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) * - CASE + 84 WHEN - - 69 / + + 36 - + 88 * 94 THEN + 35 WHEN 8 THEN 92 + + 33 ELSE ( + 56 ) END * + 36
----
2016

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) * - CASE + 84 WHEN - - 69 / + + 36 - + 88 * 94 THEN + 35 WHEN 8 THEN 92 + + 33 ELSE ( + 56 ) END * + 36
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT + + 85 * + - 97 * + CAST( - - 21 AS SIGNED ) * + COUNT( * ) * MIN( ALL + 86 )
----
-14890470

skipif mysql # not compatible
query I rowsort label-4240
SELECT + + 85 * + - 97 * + CAST ( - - 21 AS INTEGER ) * + COUNT ( * ) * MIN ( ALL + 86 )
----
-14890470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL - ( + 95 ) * - - 14 * + 69 + - CAST( + + 10 AS SIGNED ) - + - 74
----
-91706

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL - ( + 95 ) * - - 14 * + 69 + - CAST ( + + 10 AS INTEGER ) - + - 74
----
-91706

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT + 56, - 84 * 18 * + COUNT( * ) + + - ( + + 39 ) AS col0
----
56
-1551

skipif mysql # not compatible
query II rowsort label-4242
SELECT + 56, - 84 * 18 * + COUNT ( * ) + + - ( + + 39 ) AS col0
----
56
-1551

query II rowsort
SELECT ALL + 61, 64 AS col2
----
61
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT + + COUNT( * ), - 51 + NULLIF ( NULLIF ( + + 83, 49 ), + 79 - + COUNT( * ) * 68 * + 93 + - + 77 ) AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-4244
SELECT + + COUNT ( * ), - 51 + NULLIF ( NULLIF ( + + 83, 49 ), + 79 - + COUNT ( * ) * 68 * + 93 + - + 77 ) AS col0
----
1
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4245
SELECT - + MIN( - 45 ) + - MIN( CAST( NULL AS SIGNED ) ) + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT - + MIN ( - 45 ) + - MIN ( CAST ( NULL AS INTEGER ) ) + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - 87 * SUM( - ( 61 ) ) - 1 * - 28
----
5335

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 87 * SUM ( - ( 61 ) ) - 1 * - 28
----
5335

query I rowsort
SELECT + 26 * 34 * - NULLIF ( 92, + + 63 ) * - 68 + + 79 + + 89 AS col2
----
5530472

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + COUNT( * ) * - - 91 - - + ( + 10 ) + - 27
----
74

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + COUNT ( * ) * - - 91 - - + ( + 10 ) + - 27
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-4249
SELECT 63 AS col0, + 35 DIV 99
----
63
0

skipif mysql # not compatible
query II rowsort label-4249
SELECT 63 AS col0, + 35 / 99
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - NULLIF ( - 24, - + 43 * 28 * - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-4250
SELECT - NULLIF ( - 24, - + 43 * 28 * - COUNT ( * ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4251
SELECT + - 59 DIV 97 + COALESCE ( + - 18, 71 * + 79 * COALESCE ( + - 51, ( 21 ) + + CAST( - - 89 AS SIGNED ) + - 18 * - MAX( - 46 ) * - 68 ) + 25 + + + NULLIF ( - - 13, + 44 + 53 ) + + - 29 * + - 74 * - COUNT( - 15 ) * + + 52, - - NULLIF ( + COUNT( * ), + ( + MIN( ALL 78 ) ) + - COUNT( * ) * + + 91 ) ) + + COALESCE ( - 62, - 2 + - + 32 + + - 74 DIV + 43, 91 + ( 67 + + 9 ) * + 53 ) * 33
----
-2064

skipif mysql # not compatible
query I rowsort label-4251
SELECT + - 59 / 97 + COALESCE ( + - 18, 71 * + 79 * COALESCE ( + - 51, ( 21 ) + + CAST ( - - 89 AS INTEGER ) + - 18 * - MAX ( - 46 ) * - 68 ) + 25 + + + NULLIF ( - - 13, + 44 + 53 ) + + - 29 * + - 74 * - COUNT ( - 15 ) * + + 52, - - NULLIF ( + COUNT ( * ), + ( + MIN ( ALL 78 ) ) + - COUNT ( * ) * + + 91 ) ) + + COALESCE ( - 62, - 2 + - + 32 + + - 74 / + 43, 91 + ( 67 + + 9 ) * + 53 ) * 33
----
-2064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT + 59 - + MIN( DISTINCT - 62 ) + - COUNT( * ) - 63 - + 66 DIV - 52 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4252
SELECT + 59 - + MIN ( DISTINCT - 62 ) + - COUNT ( * ) - 63 - + 66 / - 52 AS col1
----
58

query I rowsort
SELECT ALL ( 84 )
----
84

query I rowsort
SELECT DISTINCT + 12 * - + 93 AS col1
----
-1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT ALL 41 DIV + 94 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL 41 / + 94 * COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT ALL + CASE - 45 WHEN 88 THEN + + 53 + + + 17 + + + 83 / + 22 END * - CAST( NULL AS SIGNED ) * - 44 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + CASE - 45 WHEN 88 THEN + + 53 + + + 17 + + + 83 / + 22 END * - CAST ( NULL AS INTEGER ) * - 44 * + 74
----
NULL

query I rowsort
SELECT + 23 + 52 * - 28
----
-1433

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4258
SELECT - 29 * 47, - COUNT( DISTINCT ( - + 20 ) ) + - CAST( NULL AS SIGNED ) AS col2
----
-1363
NULL

skipif mysql # not compatible
query II rowsort label-4258
SELECT - 29 * 47, - COUNT ( DISTINCT ( - + 20 ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
-1363
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT + COALESCE ( + - 30, - + 45 / - 21 ) * MAX( + 94 ) * 40 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 52 + 1 * + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT + COALESCE ( + - 30, - + 45 / - 21 ) * MAX ( + 94 ) * 40 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 52 + 1 * + 7 AS col1
----
NULL

query II rowsort
SELECT - 5 - + 0 AS col0, 5 * - 9 + + - 59 AS col2
----
-5
-104

query I rowsort
SELECT DISTINCT - COALESCE ( + 95, 90 - 41 * - + 20 ) * + 67 AS col0
----
-6365

query I rowsort
SELECT - 93 * 15 * + + 29 AS col1
----
-40455

query I rowsort
SELECT - 99 * + 13
----
-1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT DISTINCT CAST( - + 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT CAST ( - + 70 AS INTEGER )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4265
SELECT ALL CASE - 77 WHEN - + 29 + + ( 88 ) THEN NULL ELSE - - MAX( + + CAST( NULL AS DECIMAL ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL CASE - 77 WHEN - + 29 + + ( 88 ) THEN NULL ELSE - - MAX ( + + CAST ( NULL AS REAL ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - 63 * + SUM( ALL - + 72 )
----
4536

skipif mysql # not compatible
query I rowsort label-4266
SELECT - 63 * + SUM ( ALL - + 72 )
----
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL - NULLIF ( + - 5, + 73 ) + + - ( + + COUNT( * ) ) + + - 9 + COUNT( * ) * - 20 + 32 * + - CASE + CAST( NULL AS SIGNED ) WHEN ( 44 ) * + 82 * + - ( 78 ) + + 91 THEN 75 + + 32 + + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - NULLIF ( + - 5, + 73 ) + + - ( + + COUNT ( * ) ) + + - 9 + COUNT ( * ) * - 20 + 32 * + - CASE + CAST ( NULL AS INTEGER ) WHEN ( 44 ) * + 82 * + - ( 78 ) + + 91 THEN 75 + + 32 + + - 48 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT DISTINCT + 77 + 39 DIV 68 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + 77 + 39 / 68 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL + CAST( + - AVG ( DISTINCT - - 72 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + CAST ( + - AVG ( DISTINCT - - 72 ) AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL + MAX( - ( 23 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + MAX ( - ( 23 ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT 69 DIV 98 + + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-4271
SELECT 69 / 98 + + - 6
----
-6

query I rowsort
SELECT + 33 * 66 AS col1
----
2178

query II rowsort
SELECT + NULLIF ( - 75, - 54 / + 91 ), 52 * - + 36 + + + 85 AS col0
----
-75
-1787

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT 41 + - - ( + COUNT( * ) ) * COUNT( * ) * + + 54 * - MAX( ALL - - 53 ) * 13 AS col1
----
-37165

skipif mysql # not compatible
query I rowsort label-4274
SELECT 41 + - - ( + COUNT ( * ) ) * COUNT ( * ) * + + 54 * - MAX ( ALL - - 53 ) * 13 AS col1
----
-37165

query I rowsort
SELECT 17 + - 79
----
-62

query I rowsort
SELECT ALL 48 * - - 37 AS col0
----
1776

query I rowsort
SELECT ALL + 95 * + 30
----
2850

query I rowsort
SELECT + 43 * - 94 + 29
----
-4013

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL + 9 - + 56 + + + 49 DIV - - 62 * - - 44
----
-47

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + 9 - + 56 + + + 49 / - - 62 * - - 44
----
-47

query II rowsort
SELECT - 88 + - - 12 + - + 51 + + 0 AS col0, 82
----
-127
82

query I rowsort
SELECT 87 * - 42
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL - 18 * - COUNT( * ) * + 17
----
306

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - 18 * - COUNT ( * ) * + 17
----
306

query I rowsort
SELECT - 71 + - 97 AS col0
----
-168

query II rowsort
SELECT + ( 46 ) AS col1, + 51
----
46
51

query I rowsort
SELECT ( - + 83 ) * + 66 * - 45 + - - 27
----
246537

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4286
SELECT ALL - 68 - + 23 * + - ( - 82 ) + - + 86 AS col1, + CAST( NULL AS SIGNED )
----
-2040
NULL

skipif mysql # not compatible
query II rowsort label-4286
SELECT ALL - 68 - + 23 * + - ( - 82 ) + - + 86 AS col1, + CAST ( NULL AS INTEGER )
----
-2040
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + 38 + - - NULLIF ( + - 58, COUNT( * ) + + + 0 ) + - + 65 + - 45 * NULLIF ( - 13, - + 95 / - ( - - 5 ) * - AVG ( - - 63 ) + - - ( 38 ) ) * 77
----
44960

skipif mysql # not compatible
query I rowsort label-4287
SELECT + 38 + - - NULLIF ( + - 58, COUNT ( * ) + + + 0 ) + - + 65 + - 45 * NULLIF ( - 13, - + 95 / - ( - - 5 ) * - AVG ( - - 63 ) + - - ( 38 ) ) * 77
----
44960

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT ALL 21 - 45 + 68 - COUNT( * ) AS col1, - 74
----
43
-74

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL 21 - 45 + 68 - COUNT ( * ) AS col1, - 74
----
43
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4289
SELECT DISTINCT MAX( DISTINCT + 73 ) * - 40 AS col1, - 33 AS col1
----
-2920
-33

skipif mysql # not compatible
query II rowsort label-4289
SELECT DISTINCT MAX ( DISTINCT + 73 ) * - 40 AS col1, - 33 AS col1
----
-2920
-33

query I rowsort
SELECT DISTINCT 0 * + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL COUNT( * ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL COUNT ( * ) * 59
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT 41 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT 41 / - + 91
----
0

query I rowsort
SELECT ALL - ( - 26 ) + - 17
----
9

query I rowsort
SELECT 21 + + 81
----
102

query I rowsort
SELECT ALL 93 + + 50 + - 81 AS col2
----
62

query I rowsort
SELECT ALL + 64 + - - 34 AS col2
----
98

query I rowsort
SELECT 37 * - 87
----
-3219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT DISTINCT ( + + 0 ) DIV SUM( DISTINCT + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT ( + + 0 ) / SUM ( DISTINCT + 41 )
----
0

query I rowsort
SELECT ALL 45 + + 16
----
61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4300
SELECT ALL CAST( NULL AS SIGNED ) / CASE + CAST( - 41 AS DECIMAL ) WHEN - 95 THEN + AVG ( - - COALESCE ( + 38, + + 62 + + 98 ) ) * 23 ELSE + 26 END * - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL CAST ( NULL AS INTEGER ) / CASE + CAST ( - 41 AS REAL ) WHEN - 95 THEN + AVG ( - - COALESCE ( + 38, + + 62 + + 98 ) ) * 23 ELSE + 26 END * - + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT CAST( NULL AS SIGNED ) / - + MAX( 69 ) * + 51 * 80 * + + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT CAST ( NULL AS INTEGER ) / - + MAX ( 69 ) * + 51 * 80 * + + 7 AS col0
----
NULL

query I rowsort
SELECT 56 + + + 70
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + COUNT( DISTINCT + 94 ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + COUNT ( DISTINCT + 94 ) + - 9
----
-8

query I rowsort
SELECT 66 + - + 22 AS col0
----
44

query I rowsort
SELECT + ( + ( + + 12 ) ) + - - 7 * + 32
----
236

query II rowsort
SELECT ALL - 73, + 6 AS col0
----
-73
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT 32 * 30 * - 47 AS col0, + NULLIF ( + COUNT( * ), + 19 ) col1
----
-45120
1

skipif mysql # not compatible
query II rowsort label-4307
SELECT 32 * 30 * - 47 AS col0, + NULLIF ( + COUNT ( * ), + 19 ) col1
----
-45120
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT ALL - COUNT( * ) - + - CASE WHEN NOT 32 IS NOT NULL THEN + 58 DIV - COUNT( * ) + + COUNT( * ) + + COUNT( * ) + - + 61 DIV + COUNT( * ) + + 36 + - - 60 WHEN NULL IS NOT NULL THEN - 67 * + 90 ELSE 90 END * + NULLIF ( - 3, - 59 * - 75 ) AS col1
----
-271

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - COUNT ( * ) - + - CASE WHEN NOT 32 IS NOT NULL THEN + 58 / - COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) + - + 61 / + COUNT ( * ) + + 36 + - - 60 WHEN NULL IS NOT NULL THEN - 67 * + 90 ELSE 90 END * + NULLIF ( - 3, - 59 * - 75 ) AS col1
----
-271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT - COALESCE ( 32, - MAX( ALL + 49 ), + + MAX( ALL - + 28 ) * 59 - 96 + 88 - + 30 - - + COUNT( * ) DIV 72 * + 88 - - 46 DIV - + 83 DIV 62 + - 43 - - ( 85 ), + - COUNT( - - ( 72 ) ) + - 42 + + + 96 )
----
-32

skipif mysql # not compatible
query I rowsort label-4309
SELECT - COALESCE ( 32, - MAX ( ALL + 49 ), + + MAX ( ALL - + 28 ) * 59 - 96 + 88 - + 30 - - + COUNT ( * ) / 72 * + 88 - - 46 / - + 83 / 62 + - 43 - - ( 85 ), + - COUNT ( - - ( 72 ) ) + - 42 + + + 96 )
----
-32

query I rowsort
SELECT - ( - 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT CAST( - 14 AS SIGNED ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4311
SELECT CAST ( - 14 AS INTEGER ) AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT 35 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4312
SELECT 35 / 60 AS col2
----
0

query I rowsort
SELECT - 78 * - 70
----
5460

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT + 70 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT + 70 / - 34
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4315
SELECT - 98 * + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + + - 82 / - 67 * - - 42 * + 89 / - COUNT( DISTINCT 32 ) - - + AVG ( ALL - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT - 98 * + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + + - 82 / - 67 * - - 42 * + 89 / - COUNT ( DISTINCT 32 ) - - + AVG ( ALL - 45 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT DISTINCT - + COALESCE ( + ( 47 ), - + ( - 66 ) + - AVG ( ( - - 56 ) ) DIV + 97 * + 52 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - + COALESCE ( + ( 47 ), - + ( - 66 ) + - AVG ( ( - - 56 ) ) / + 97 * + 52 ) AS col0
----
-47

query I rowsort
SELECT DISTINCT - + 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL - COUNT( ALL 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - COUNT ( ALL 88 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT COALESCE ( - + 1, 36 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4319
SELECT COALESCE ( - + 1, 36 ) * COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 12 * + 5 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT 87 DIV 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4321
SELECT 87 / 30 AS col1
----
2

query I rowsort
SELECT DISTINCT 53 + - 55 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT 96 * 98 DIV 39 * - 71
----
-17111

skipif mysql # not compatible
query I rowsort label-4323
SELECT 96 * 98 / 39 * - 71
----
-17111

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL 5 + - - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL 5 + - - COUNT ( * ) AS col2
----
6

query I rowsort
SELECT DISTINCT - 95 + - + 62 * 48 col2
----
-3071

query I rowsort
SELECT DISTINCT 40 + 99 - + 34 * + - 96 * 52 + - - 92
----
169959

query I rowsort
SELECT DISTINCT ( 91 ) + - 21 AS col0
----
70

query I rowsort
SELECT ALL 34 * - + 12
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT COUNT( * ) * + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-4329
SELECT COUNT ( * ) * + - 51
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT ( 20 ) * 90 - + - CAST( NULL AS SIGNED ) * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ( 20 ) * 90 - + - CAST ( NULL AS INTEGER ) * 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT - COUNT( * ) AS col1, ( - - ( + 37 ) ) AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-4331
SELECT - COUNT ( * ) AS col1, ( - - ( + 37 ) ) AS col2
----
-1
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT DISTINCT CAST( - SUM( - 27 ) AS SIGNED ) + - 18 * - 37 AS col2
----
693

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT CAST ( - SUM ( - 27 ) AS INTEGER ) + - 18 * - 37 AS col2
----
693

query II rowsort
SELECT 62 AS col1, + 72
----
62
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - CASE 96 WHEN - - COUNT( * ) THEN + 41 WHEN + 82 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT - CASE 96 WHEN - - COUNT ( * ) THEN + 41 WHEN + 82 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + COUNT( * ) - - - COUNT( ALL - + 86 ) + - + ( - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4335
SELECT + COUNT ( * ) - - - COUNT ( ALL - + 86 ) + - + ( - 17 )
----
17

query II rowsort
SELECT 70, + 58 AS col0
----
70
58

query II rowsort
SELECT 5, - 88 AS col1
----
5
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4338
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT CAST ( NULL AS REAL ) * - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL + NULLIF ( - 17, 82 + - + NULLIF ( + 50, - + 28 ) ) - + - COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + NULLIF ( - 17, 82 + - + NULLIF ( + 50, - + 28 ) ) - + - COUNT ( * ) AS col2
----
-16

query II rowsort
SELECT ALL - 57, 79 col2
----
-57
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT - - COUNT( * ) AS col0, - ( - 17 ) col2
----
1
17

skipif mysql # not compatible
query II rowsort label-4341
SELECT - - COUNT ( * ) AS col0, - ( - 17 ) col2
----
1
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT ALL - 37 DIV 34 - - + 89 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL - 37 / 34 - - + 89 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT + SUM( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + SUM ( 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + - 59 - - COUNT( * ) + - 87 + + ( + 98 ) * 95 + - 80 * - + 44 AS col2
----
12685

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + - 59 - - COUNT ( * ) + - 87 + + ( + 98 ) * 95 + - 80 * - + 44 AS col2
----
12685

query I rowsort
SELECT DISTINCT - - 97 * 74
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - + 98 * + COUNT( * ) * - 9 - - 30 AS col1
----
912

skipif mysql # not compatible
query I rowsort label-4346
SELECT - + 98 * + COUNT ( * ) * - 9 - - 30 AS col1
----
912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT ALL - COUNT( + 29 ) DIV 14
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - COUNT ( + 29 ) / 14
----
0

query I rowsort
SELECT - - 81 - + - ( + ( 45 ) ) + - 39 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4349
SELECT + - ( CASE + 64 WHEN 97 - - - 9 THEN + 62 WHEN 46 + - 72 * + 99 + + 27 * 14 THEN + 10 * CAST( NULL AS SIGNED ) + - ( - 15 ) + + 68 * - + 0 END ) + + 17 + COUNT( * ) + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT + - ( CASE + 64 WHEN 97 - - - 9 THEN + 62 WHEN 46 + - 72 * + 99 + + 27 * 14 THEN + 10 * CAST ( NULL AS INTEGER ) + - ( - 15 ) + + 68 * - + 0 END ) + + 17 + COUNT ( * ) + 88 AS col1
----
NULL

query II rowsort
SELECT + - 16 AS col0, - 54 AS col1
----
-16
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT + NULLIF ( + + 6, CAST( NULL AS SIGNED ) * 44 * + ( + 17 ) ) + + COALESCE ( - 54, + 84 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4351
SELECT + NULLIF ( + + 6, CAST ( NULL AS INTEGER ) * 44 * + ( + 17 ) ) + + COALESCE ( - 54, + 84 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - ( 73 ) * + 67 + - COUNT( * ) * - 28
----
-4863

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - ( 73 ) * + 67 + - COUNT ( * ) * - 28
----
-4863

query II rowsort
SELECT ALL + - 50 AS col1, - 98
----
-50
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT 71 * + ( COUNT( * ) ) * - - 90 + - 41
----
6349

skipif mysql # not compatible
query I rowsort label-4354
SELECT 71 * + ( COUNT ( * ) ) * - - 90 + - 41
----
6349

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL + + ( + COUNT( + - 8 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL + + ( + COUNT ( + - 8 ) ) AS col1
----
1

query II rowsort
SELECT + + 72, + 34 AS col0
----
72
34

query III rowsort
SELECT ALL + 16, 8 AS col2, + 11 * - 5 * 40 + 33 AS col2
----
16
8
-2167

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + SUM( DISTINCT - 9 ) * 15
----
-135

skipif mysql # not compatible
query I rowsort label-4358
SELECT + SUM ( DISTINCT - 9 ) * 15
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + SUM( ALL - - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT + SUM ( ALL - - 0 ) AS col2
----
0

query II rowsort
SELECT - 4, ( + 72 ) - + 98 + - 97 - - + 22 * - 94 * 52 * + 10 + + + 4 col0
----
-4
-1075479

query I rowsort
SELECT NULLIF ( - 87, + 58 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT + SUM( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT + SUM ( DISTINCT - 0 )
----
0

query I rowsort
SELECT - ( + 79 ) * + 29 + - 21 AS col0
----
-2312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT - COUNT( + 45 ) * - + 69 DIV + + 1 + + 75 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - COUNT ( + 45 ) * - + 69 / + + 1 + + 75 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL - 26 * + + 95 * - CAST( NULL AS SIGNED ) + - + NULLIF ( + - 76, + 71 ) + - NULLIF ( 78, - 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - 26 * + + 95 * - CAST ( NULL AS INTEGER ) + - + NULLIF ( + - 76, + 71 ) + - NULLIF ( 78, - 55 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 81 * 7 + + 98
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL - COUNT( + + 35 ) * - - 87 + - 83
----
-170

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - COUNT ( + + 35 ) * - - 87 + - 83
----
-170

query I rowsort
SELECT - 52 + - 23
----
-75

query II rowsort
SELECT - 28 + - 75 col0, - 45
----
-103
-45

query I rowsort
SELECT + NULLIF ( - 34, COALESCE ( 18, - 47, + AVG ( - NULLIF ( 46, + 46 ) ), 8 ) ) * + + ( NULLIF ( + - 72, + - 80 / - 55 ) ) + + - 60
----
2388

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL + COUNT( * ) - 18 * + COUNT( * ) + - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + COUNT ( * ) - 18 * + COUNT ( * ) + - - COUNT ( * )
----
-16

query I rowsort
SELECT - 4 * 47
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4373
SELECT - 22 + 35 + - 36 AS col0, CAST( NULL AS SIGNED )
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-4373
SELECT - 22 + 35 + - 36 AS col0, CAST ( NULL AS INTEGER )
----
-23
NULL

query I rowsort
SELECT - ( - 81 ) AS col2
----
81

query I rowsort
SELECT DISTINCT ( + - 79 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT DISTINCT 51 - - 25 - - 62 + + - 1 DIV - + ( - - 30 ) * - 66 * - COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT 51 - - 25 - - 62 + + - 1 / - + ( - - 30 ) * - 66 * - COUNT ( * )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + 74 + + COUNT( * ) * - + 17 - + MIN( - 96 ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-4377
SELECT + 74 + + COUNT ( * ) * - + 17 - + MIN ( - 96 ) AS col1
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT ALL 86 - + + COUNT( * ) AS col2, 83 * - + 75 * - - 3 * - 9 * NULLIF ( - 12, - COUNT( * ) )
----
85
-2016900

skipif mysql # not compatible
query II rowsort label-4378
SELECT ALL 86 - + + COUNT ( * ) AS col2, 83 * - + 75 * - - 3 * - 9 * NULLIF ( - 12, - COUNT ( * ) )
----
85
-2016900

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4379
SELECT ALL + 7 * + CAST( NULL AS DECIMAL ) * 10 * - CASE + - 98 WHEN - 64 THEN + 35 ELSE - - 55 / + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + 7 * + CAST ( NULL AS REAL ) * 10 * - CASE + - 98 WHEN - 64 THEN + 35 ELSE - - 55 / + 37 END
----
NULL

query I rowsort
SELECT + + 2 + + 74
----
76

query I rowsort
SELECT + 97 * - 27 * + 5 + + + 59 + 80 * - 48 AS col2
----
-16876

query I rowsort
SELECT DISTINCT + 63 * - + 77 AS col0
----
-4851

query I rowsort
SELECT + + 25 * - 20 AS col1
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT + 14 * - CASE + 77 WHEN + 44 THEN + + NULLIF ( - - CASE - - COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + 29 + + 41 - + - 4 / + 9 THEN + - NULLIF ( 32, 13 + + 89 * - + 23 * COUNT( 66 ) ) * - 70 - AVG ( DISTINCT + + 75 ) + - 95 - + + 71 * + + COUNT( * ) + 92 * + 36 / + 19 END, 95 ) WHEN - 78 * - 89 - + 39 + + 77 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + 14 * - CASE + 77 WHEN + 44 THEN + + NULLIF ( - - CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + 29 + + 41 - + - 4 / + 9 THEN + - NULLIF ( 32, 13 + + 89 * - + 23 * COUNT ( 66 ) ) * - 70 - AVG ( DISTINCT + + 75 ) + - 95 - + + 71 * + + COUNT ( * ) + 92 * + 36 / + 19 END, 95 ) WHEN - 78 * - 89 - + 39 + + 77 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + MAX( DISTINCT - ( + NULLIF ( - 61, 69 / + - 93 * - - 14 - + 83 ) ) ) * + COUNT( * ) - + 47
----
14

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + MAX ( DISTINCT - ( + NULLIF ( - 61, 69 / + - 93 * - - 14 - + 83 ) ) ) * + COUNT ( * ) - + 47
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT + - ( - SUM( ALL + 67 ) )
----
67

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + - ( - SUM ( ALL + 67 ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + COUNT( * ) * - - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4387
SELECT + COUNT ( * ) * - - 49 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT DISTINCT ( + 28 ) DIV - 33 + - 38 + - - 19
----
-19

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT ( + 28 ) / - 33 + - 38 + - - 19
----
-19

query II rowsort
SELECT DISTINCT + ( - 47 ), 38 + ( - + 28 ) AS col1
----
-47
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT + ( - - 25 ) DIV + 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT + ( - - 25 ) / + 85 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4391
SELECT ALL - MAX( DISTINCT ( - 45 ) ) DIV 41 + + - 79 + - + COALESCE ( + ( - COUNT( * ) ), 58, - - 45 * + 37 * - 62 ) * - - 8 * - + 77 * + + 71
----
-43814

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - MAX ( DISTINCT ( - 45 ) ) / 41 + + - 79 + - + COALESCE ( + ( - COUNT ( * ) ), 58, - - 45 * + 37 * - 62 ) * - - 8 * - + 77 * + + 71
----
-43814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT + CAST( - + 66 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4392
SELECT + CAST ( - + 66 AS INTEGER ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4393
SELECT ALL + 4 * + + SUM( 97 ) AS col0, + ( + + COUNT( * ) )
----
388
1

skipif mysql # not compatible
query II rowsort label-4393
SELECT ALL + 4 * + + SUM ( 97 ) AS col0, + ( + + COUNT ( * ) )
----
388
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT ALL + 99 DIV + - 1 + + 11 * - 81 - - 72 * + 89 + - - 96 - - 72 * + 82 AS col1
----
11418

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + 99 / + - 1 + + 11 * - 81 - - 72 * + 89 + - - 96 - - 72 * + 82 AS col1
----
11418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT - 64 * + 26 DIV - COUNT( * ) - - - COUNT( + + 37 ) * - 41 AS col2
----
1705

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 64 * + 26 / - COUNT ( * ) - - - COUNT ( + + 37 ) * - 41 AS col2
----
1705

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL + 51 col0, COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL + 51 col0, COUNT ( * )
----
51
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4397
SELECT DISTINCT 35 * 87 DIV + 54 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT 35 * 87 / + 54 AS col2
----
56

query I rowsort
SELECT - 47 * + + 47 col1
----
-2209

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT ALL + 96 col2, 11 - - COALESCE ( - COUNT( * ), + 1 ) AS col0
----
96
10

skipif mysql # not compatible
query II rowsort label-4399
SELECT ALL + 96 col2, 11 - - COALESCE ( - COUNT ( * ), + 1 ) AS col0
----
96
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4400
SELECT ( - ( + + 42 ) ) AS col2, COUNT( * ) * - COUNT( * ) + - 68 - - 4 + + - SUM( DISTINCT + - CASE + + 17 WHEN - ( + + 10 ) THEN + 4 * 40 / 90 + - 93 ELSE NULL END ) - + 66
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4400
SELECT ( - ( + + 42 ) ) AS col2, COUNT ( * ) * - COUNT ( * ) + - 68 - - 4 + + - SUM ( DISTINCT + - CASE + + 17 WHEN - ( + + 10 ) THEN + 4 * 40 / 90 + - 93 ELSE NULL END ) - + 66
----
-42
NULL

query I rowsort
SELECT ( - ( + + 7 ) ) col1
----
-7

query II rowsort
SELECT DISTINCT + 79, 76 AS col2
----
79
76

query I rowsort
SELECT + 11 + - 76 AS col0
----
-65

query I rowsort
SELECT 57 + - CASE + + 29 WHEN + + 35 THEN + ( + 20 ) ELSE - 56 END
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT ALL - CASE - + COUNT( * ) WHEN + + ( + 79 ) * - COUNT( * ) + + 51 * 10 - + + 38 THEN NULL WHEN - + 51 + - AVG ( ALL + 98 ) + + 39 + + 18 THEN 75 * ( - 74 ) * CASE - + 1 WHEN 78 / + 90 / - CAST( 51 AS SIGNED ) THEN - + COALESCE ( + + 93, 41 ) WHEN + + ( - 78 ) * - 23 * - 44 - + 68 - 24 + COUNT( * ) THEN NULL END + + + 84 * 13 + + SUM( ALL - ( - CAST( NULL AS SIGNED ) ) ) + - COUNT( * ) ELSE + 45 * + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL - CASE - + COUNT ( * ) WHEN + + ( + 79 ) * - COUNT ( * ) + + 51 * 10 - + + 38 THEN NULL WHEN - + 51 + - AVG ( ALL + 98 ) + + 39 + + 18 THEN 75 * ( - 74 ) * CASE - + 1 WHEN 78 / + 90 / - CAST ( 51 AS INTEGER ) THEN - + COALESCE ( + + 93, 41 ) WHEN + + ( - 78 ) * - 23 * - 44 - + 68 - 24 + COUNT ( * ) THEN NULL END + + + 84 * 13 + + SUM ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) + - COUNT ( * ) ELSE + 45 * + - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT 1 AS col2, 3 + - MAX( + 92 ) AS col2
----
1
-89

skipif mysql # not compatible
query II rowsort label-4406
SELECT 1 AS col2, 3 + - MAX ( + 92 ) AS col2
----
1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT 40 * - + NULLIF ( - 9, 31 + 93 / + ( COUNT( * ) ) )
----
360

skipif mysql # not compatible
query I rowsort label-4407
SELECT 40 * - + NULLIF ( - 9, 31 + 93 / + ( COUNT ( * ) ) )
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + SUM( - 17 ) * - - 10 + + 77 * 60 + 97
----
4547

skipif mysql # not compatible
query I rowsort label-4408
SELECT + SUM ( - 17 ) * - - 10 + + 77 * 60 + 97
----
4547

query II rowsort
SELECT ALL 84 AS col2, 67 * + + 68 AS col0
----
84
4556

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4410
SELECT DISTINCT - 60 DIV CAST( + - 33 AS SIGNED ) AS col0, - ( - + 1 ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4410
SELECT DISTINCT - 60 / CAST ( + - 33 AS INTEGER ) AS col0, - ( - + 1 ) AS col2
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4411
SELECT ALL - 15 * - COUNT( ALL - 14 ) AS col1, 85 * - COUNT( ALL 35 ) DIV 91 AS col0
----
15
0

skipif mysql # not compatible
query II rowsort label-4411
SELECT ALL - 15 * - COUNT ( ALL - 14 ) AS col1, 85 * - COUNT ( ALL 35 ) / 91 AS col0
----
15
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT ALL - 42 * - COUNT( * ) col0
----
42

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - 42 * - COUNT ( * ) col0
----
42

query I rowsort
SELECT DISTINCT - CASE + 53 WHEN 45 THEN NULL WHEN + 98 * + 63 THEN - - 11 + + 34 + - 13 * 22 END * + 85 + + 98
----
NULL

query I rowsort
SELECT ALL + 34 * + ( 7 ) col1
----
238

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4415
SELECT ALL 63, CAST( - 96 AS SIGNED ) col2
----
63
-96

skipif mysql # not compatible
query II rowsort label-4415
SELECT ALL 63, CAST ( - 96 AS INTEGER ) col2
----
63
-96

query I rowsort
SELECT - COALESCE ( + 57, - + 38 ) * - ( - 70 ) AS col0
----
-3990

query I rowsort
SELECT - ( + + 6 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4418
SELECT 10 * + COUNT( + - CAST( - - 34 AS DECIMAL ) ) col1
----
10

skipif mysql # not compatible
query I rowsort label-4418
SELECT 10 * + COUNT ( + - CAST ( - - 34 AS REAL ) ) col1
----
10

query I rowsort
SELECT COALESCE ( + 59, - 42 * + 22 + - - 0 + - - 96, - 76 ) - 13 * 18 AS col2
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - + SUM( COALESCE ( - 86, + + 88 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4420
SELECT - + SUM ( COALESCE ( - 86, + + 88 ) )
----
86

query I rowsort
SELECT 86 - 73 - - 75
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT + + CASE + 4 WHEN 79 THEN COUNT( * ) * + 46 + - 83 + 34 * - CAST( - 99 AS SIGNED ) - - COALESCE ( + 30, 63 ) WHEN 14 THEN + + 17 ELSE NULL END + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + + CASE + 4 WHEN 79 THEN COUNT ( * ) * + 46 + - 83 + 34 * - CAST ( - 99 AS INTEGER ) - - COALESCE ( + 30, 63 ) WHEN 14 THEN + + 17 ELSE NULL END + - 71
----
NULL

query I rowsort
SELECT ALL 28 * 11
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT - + COUNT( + - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-4424
SELECT - + COUNT ( + - 14 )
----
-1

query I rowsort
SELECT DISTINCT - 7 + + + 14 * - + 7 AS col1
----
-105

query I rowsort
SELECT DISTINCT - 2 + + 46 * + 64 + - 57 * 19 AS col0
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT - MIN( ALL 21 ) + COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - MIN ( ALL 21 ) + COUNT ( * ) AS col2
----
-20

query I rowsort
SELECT - 55 + - 91 col0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + + COUNT( * ) / - + CASE - - 89 WHEN - + NULLIF ( + 38, 31 * + 20 + + 61 + + 56 * - - 60 * - + 97 + + + 68 ) + + 39 + - - 8 * 62 THEN - - COUNT( * ) ELSE NULL END * SUM( + 61 ) + - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT + + COUNT ( * ) / - + CASE - - 89 WHEN - + NULLIF ( + 38, 31 * + 20 + + 61 + + 56 * - - 60 * - + 97 + + + 68 ) + + 39 + - - 8 * 62 THEN - - COUNT ( * ) ELSE NULL END * SUM ( + 61 ) + - - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - COUNT( * ) * + 58 - + 4 + - 9 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4430
SELECT - COUNT ( * ) * + 58 - + 4 + - 9 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT - 82 + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4431
SELECT - 82 + COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT ( - + 77 ) * 72, ( + 56 ) + COUNT( * ) + 28 AS col1
----
-5544
85

skipif mysql # not compatible
query II rowsort label-4432
SELECT ( - + 77 ) * 72, ( + 56 ) + COUNT ( * ) + 28 AS col1
----
-5544
85

query I rowsort
SELECT ALL - 8 + + 79 AS col0
----
71

query I rowsort
SELECT 35 + - 20
----
15

onlyif mysql # aggregate syntax: 
query III rowsort label-4435
SELECT ALL - CASE ( - + 59 ) WHEN + 80 THEN + NULLIF ( + - 99, 10 - 53 + - 1 ) / 54 WHEN + - 13 + 59 + + - 66 * - - 52 - - - AVG ( DISTINCT - 53 ) - - COUNT( * ) * 86 THEN NULL END * - COUNT( * ) * - 80 + - 37 + - ( 51 ) AS col0, 31 * + 26 + + 95 AS col1, + - 91 col1
----
NULL
901
-91

skipif mysql # not compatible
query III rowsort label-4435
SELECT ALL - CASE ( - + 59 ) WHEN + 80 THEN + NULLIF ( + - 99, 10 - 53 + - 1 ) / 54 WHEN + - 13 + 59 + + - 66 * - - 52 - - - AVG ( DISTINCT - 53 ) - - COUNT ( * ) * 86 THEN NULL END * - COUNT ( * ) * - 80 + - 37 + - ( 51 ) AS col0, 31 * + 26 + + 95 AS col1, + - 91 col1
----
NULL
901
-91

query I rowsort
SELECT DISTINCT ( - - 86 ) + - + 70
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4437
SELECT ALL CASE + 46 WHEN - 53 THEN NULL ELSE + + 28 DIV + - 36 - - 2 END DIV + 36 DIV + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL CASE + 46 WHEN - 53 THEN NULL ELSE + + 28 / + - 36 - - 2 END / + 36 / + + COUNT ( * )
----
0

query I rowsort
SELECT 34 + 26 + + 43 AS col1
----
103

query I rowsort
SELECT ALL 29 - - 26 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT 12 + + + 25 * - - MAX( DISTINCT - 43 ) + - - 20 + - 69 * + MIN( ALL + 83 ) * - 14 - 77 AS col0
----
79058

skipif mysql # not compatible
query I rowsort label-4440
SELECT 12 + + + 25 * - - MAX ( DISTINCT - 43 ) + - - 20 + - 69 * + MIN ( ALL + 83 ) * - 14 - 77 AS col0
----
79058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT COUNT( * ) DIV + 24 col0
----
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT COUNT ( * ) / + 24 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT COALESCE ( + 79, + COUNT( ALL 50 ) ) * + CASE - + 29 WHEN + - 18 THEN - 55 ELSE 95 END + 70 DIV - + COUNT( * ) + + + 42 DIV - COUNT( * )
----
7393

skipif mysql # not compatible
query I rowsort label-4442
SELECT COALESCE ( + 79, + COUNT ( ALL 50 ) ) * + CASE - + 29 WHEN + - 18 THEN - 55 ELSE 95 END + 70 / - + COUNT ( * ) + + + 42 / - COUNT ( * )
----
7393

query I rowsort
SELECT DISTINCT ( 10 ) * 22 AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT ALL 75 - + COUNT( DISTINCT - 62 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 75 - + COUNT ( DISTINCT - 62 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT - CAST( NULL AS SIGNED ) * 37 + 86 * + COALESCE ( + 24, + + 67 + + SUM( DISTINCT - 61 ) ) / + CAST( ( - MAX( ALL 78 ) ) AS SIGNED ) + - AVG ( ALL ( - 22 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT - CAST ( NULL AS INTEGER ) * 37 + 86 * + COALESCE ( + 24, + + 67 + + SUM ( DISTINCT - 61 ) ) / + CAST ( ( - MAX ( ALL 78 ) ) AS INTEGER ) + - AVG ( ALL ( - 22 ) ) AS col0
----
NULL

query I rowsort
SELECT 50 * - + 1
----
-50

query I rowsort
SELECT ALL - 47 * - 74
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL SUM( + + 93 ) * + 39 + - 44
----
3583

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL SUM ( + + 93 ) * + 39 + - 44
----
3583

query I rowsort
SELECT 75 * - 75 * 8 AS col2
----
-45000

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT SUM( ALL + 67 ) * + - 70 - - 16
----
-4674

skipif mysql # not compatible
query I rowsort label-4450
SELECT SUM ( ALL + 67 ) * + - 70 - - 16
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT COUNT( DISTINCT 55 ) + + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4451
SELECT COUNT ( DISTINCT 55 ) + + 22 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4452
SELECT + ( - + 19 ) * + - CAST( 91 AS SIGNED ) AS col2, - 35 AS col0
----
1729
-35

skipif mysql # not compatible
query II rowsort label-4452
SELECT + ( - + 19 ) * + - CAST ( 91 AS INTEGER ) AS col2, - 35 AS col0
----
1729
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT CAST( NULL AS SIGNED ) * - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT CAST ( NULL AS INTEGER ) * - + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL + COALESCE ( + 20, - + COALESCE ( 96, - + COUNT( * ) * + + COUNT( * ), - 97 * + COUNT( * ), 64 ) ) + 36 + - 24 - CAST( NULL AS SIGNED ) + - + 80 * - - 85 * - 87 * NULLIF ( + + 24, - 64 ) + - 54 + - COUNT( * ) * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + COALESCE ( + 20, - + COALESCE ( 96, - + COUNT ( * ) * + + COUNT ( * ), - 97 * + COUNT ( * ), 64 ) ) + 36 + - 24 - CAST ( NULL AS INTEGER ) + - + 80 * - - 85 * - 87 * NULLIF ( + + 24, - 64 ) + - 54 + - COUNT ( * ) * 39
----
NULL

query I rowsort
SELECT - 46 + 83
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL + MAX( 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + MAX ( 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT 55 + - + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4457
SELECT 55 + - + COUNT ( * ) AS col2
----
54

query II rowsort
SELECT ALL + 64 + 23 * + ( - + 78 ), 37 + + 87 AS col0
----
-1730
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4459
SELECT 1 + NULLIF ( + + 90, + CASE - AVG ( ALL - + 47 ) WHEN + ( + + 85 ) THEN + - 14 * + + NULLIF ( - - 60, 92 ) END + + - 87 ) + - 43 * + - COUNT( * ) DIV - ( - + 72 )
----
91

skipif mysql # not compatible
query I rowsort label-4459
SELECT 1 + NULLIF ( + + 90, + CASE - AVG ( ALL - + 47 ) WHEN + ( + + 85 ) THEN + - 14 * + + NULLIF ( - - 60, 92 ) END + + - 87 ) + - 43 * + - COUNT ( * ) / - ( - + 72 )
----
91

query II rowsort
SELECT ALL + 53 + + - 62 * - 4 - + - 20 + + + 72, 33 AS col2
----
393
33

query I rowsort
SELECT DISTINCT + - 35 + 44 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT ALL - - 72 + 70 DIV 15 + 32 * + 81
----
2668

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - - 72 + 70 / 15 + 32 * + 81
----
2668

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4463
SELECT + CAST( 43 AS SIGNED ) + 21 * 25 * - - ( - 68 ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT + CAST ( 43 AS INTEGER ) + 21 * 25 * - - ( - 68 ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4464
SELECT 81 DIV - MAX( ALL + 3 ) - + 65 + - 75 * - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4464
SELECT 81 / - MAX ( ALL + 3 ) - + 65 + - 75 * - COUNT ( * )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT COUNT( * ) + - + 30 + - - 67 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4465
SELECT COUNT ( * ) + - + 30 + - - 67 AS col1
----
38

query I rowsort
SELECT ALL + + ( + 12 ) * 63
----
756

query I rowsort
SELECT ALL - + 6 * 15
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT CAST( - + 89 AS SIGNED ) + + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4468
SELECT CAST ( - + 89 AS INTEGER ) + + - COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - - SUM( + + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-4469
SELECT - - SUM ( + + 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT ALL + + 93 + - 25 * + CAST( + + 92 AS SIGNED )
----
-2207

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + + 93 + - 25 * + CAST ( + + 92 AS INTEGER )
----
-2207

query I rowsort
SELECT 50 * + 92 - - 45
----
4645

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT - COALESCE ( - - 45, + COUNT( * ) * - + 83 * + 34, 58 - + 53 + MAX( ALL + 17 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - COALESCE ( - - 45, + COUNT ( * ) * - + 83 * + 34, 58 - + 53 + MAX ( ALL + 17 ) )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4473
SELECT ALL + 84 * + CASE - COUNT( * ) WHEN - 74 THEN + ( + 62 ) + + + 73 END - + CAST( + 36 AS DECIMAL ) * + CAST( - NULLIF ( + 42, 33 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + 84 * + CASE - COUNT ( * ) WHEN - 74 THEN + ( + 62 ) + + + 73 END - + CAST ( + 36 AS REAL ) * + CAST ( - NULLIF ( + 42, 33 ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT COALESCE ( 78, + 94 * + 80 * - 63 + 6 * - 63 + 14 + + 13 DIV 69 )
----
78

skipif mysql # not compatible
query I rowsort label-4474
SELECT COALESCE ( 78, + 94 * + 80 * - 63 + 6 * - 63 + 14 + + 13 / 69 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - MAX( ALL + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - MAX ( ALL + 79 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL 56 * - NULLIF ( - - 90, 71 - + - 12 ) - - 89 + - 90 DIV 76
----
-4952

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL 56 * - NULLIF ( - - 90, 71 - + - 12 ) - - 89 + - 90 / 76
----
-4952

query I rowsort
SELECT - 11 - - + ( + 7 ) * 18
----
115

query I rowsort
SELECT CASE - - 28 WHEN 66 THEN - 73 * - 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + COUNT( * ) * - - 64
----
64

skipif mysql # not compatible
query I rowsort label-4479
SELECT + COUNT ( * ) * - - 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT + COUNT( DISTINCT + ( - 33 ) ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + COUNT ( DISTINCT + ( - 33 ) ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT MAX( ALL + NULLIF ( + 43, + 56 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4481
SELECT MAX ( ALL + NULLIF ( + 43, + 56 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT - 55 * 35 + - 15 + 49 + COUNT( * ), ( - 80 ) col0
----
-1890
-80

skipif mysql # not compatible
query II rowsort label-4482
SELECT - 55 * 35 + - 15 + 49 + COUNT ( * ), ( - 80 ) col0
----
-1890
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + ( + + 5 ) + + NULLIF ( + 63, + - 72 * COUNT( * ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4483
SELECT + ( + + 5 ) + + NULLIF ( + 63, + - 72 * COUNT ( * ) ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT + COALESCE ( - - CAST( NULL AS SIGNED ), - - COUNT( * ), + + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4484
SELECT + COALESCE ( - - CAST ( NULL AS INTEGER ), - - COUNT ( * ), + + 95 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT MAX( ALL 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4485
SELECT MAX ( ALL 24 ) AS col0
----
24

query I rowsort
SELECT ALL 27 + + 73 + - - 63 - + + 82
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT + 21 / - + CASE + CAST( - 88 AS SIGNED ) WHEN ( + ( + 97 ) ) THEN 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT + 21 / - + CASE + CAST ( - 88 AS INTEGER ) WHEN ( + ( + 97 ) ) THEN 74 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL 60 + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 60 + COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT 4 * - COUNT( * ) * - 7 + 61 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4489
SELECT 4 * - COUNT ( * ) * - 7 + 61 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - - MIN( ALL + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4490
SELECT - - MIN ( ALL + 46 )
----
46

query I rowsort
SELECT ALL + 82 + ( 47 )
----
129

query I rowsort
SELECT ALL + 2 + + ( - - 22 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT ( 28 ) * + - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT ( 28 ) * + - COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + + 27 + + 70 - 60 + + + MIN( ALL 76 ) * - COUNT( * ) + 16
----
-23

skipif mysql # not compatible
query I rowsort label-4494
SELECT + + 27 + + 70 - 60 + + + MIN ( ALL 76 ) * - COUNT ( * ) + 16
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4495
SELECT - COALESCE ( + 35, 15 + - + 40 + + 80 DIV - - 78 * + 67 + NULLIF ( - COUNT( * ), - 57 ) * - 46, CASE 10 WHEN 64 THEN NULL WHEN + - NULLIF ( + - 62, - 10 ) THEN 95 ELSE NULL END, - 29 DIV 95 ) AS col1, ( - 73 )
----
-35
-73

skipif mysql # not compatible
query II rowsort label-4495
SELECT - COALESCE ( + 35, 15 + - + 40 + + 80 / - - 78 * + 67 + NULLIF ( - COUNT ( * ), - 57 ) * - 46, CASE 10 WHEN 64 THEN NULL WHEN + - NULLIF ( + - 62, - 10 ) THEN 95 ELSE NULL END, - 29 / 95 ) AS col1, ( - 73 )
----
-35
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - 7 * 64 + - MAX( - + 72 )
----
-376

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 7 * 64 + - MAX ( - + 72 )
----
-376

onlyif mysql # aggregate syntax: 
query III rowsort label-4497
SELECT + 59 - - 47 - + + 0, 75 * + 89 * + 51 + + COUNT( * ) * + 13 AS col1, - + 71 * - + 38 * + - COUNT( * ) * - 33 AS col0
----
106
340438
89034

skipif mysql # not compatible
query III rowsort label-4497
SELECT + 59 - - 47 - + + 0, 75 * + 89 * + 51 + + COUNT ( * ) * + 13 AS col1, - + 71 * - + 38 * + - COUNT ( * ) * - 33 AS col0
----
106
340438
89034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT + AVG ( ALL 92 ) * + CAST( - CASE COUNT( * ) WHEN 23 / - + 11 THEN + + 9 END AS SIGNED ) + - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + AVG ( ALL 92 ) * + CAST ( - CASE COUNT ( * ) WHEN 23 / - + 11 THEN + + 9 END AS INTEGER ) + - + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT MIN( + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT MIN ( + 40 ) AS col0
----
40

query I rowsort
SELECT ALL + 75 * 11
----
825

query I rowsort
SELECT DISTINCT + 59 * 66
----
3894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4502
SELECT DISTINCT 61 DIV 86 + + COUNT( ALL - 52 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT 61 / 86 + + COUNT ( ALL - 52 ) col2
----
1

query I rowsort
SELECT ALL + 18 - - 76 AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4504
SELECT - COUNT( * ) DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT - COUNT ( * ) / + + 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), + - NULLIF ( + + 41, - COUNT( * ) ) * - 85, + - 87 * + - 77 ) AS col0
----
3485

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), + - NULLIF ( + + 41, - COUNT ( * ) ) * - 85, + - 87 * + - 77 ) AS col0
----
3485

onlyif mysql # DIV for integer division: 
query II rowsort label-4506
SELECT DISTINCT + 89 AS col2, - 93 + + 43 DIV - 38 AS col1
----
89
-94

skipif mysql # not compatible
query II rowsort label-4506
SELECT DISTINCT + 89 AS col2, - 93 + + 43 / - 38 AS col1
----
89
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT - 5 DIV - 39 * 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT - 5 / - 39 * 69 AS col1
----
0

query I rowsort
SELECT - 11 * + 18 AS col2
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT ALL + COALESCE ( + - ( 41 ), COUNT( * ) * - - 6 + 1 + + COUNT( * ) + - 15 DIV 16, 71 )
----
-41

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL + COALESCE ( + - ( 41 ), COUNT ( * ) * - - 6 + 1 + + COUNT ( * ) + - 15 / 16, 71 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT - 82 + + CAST( NULL AS SIGNED ) - - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT - 82 + + CAST ( NULL AS INTEGER ) - - 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL + COALESCE ( + - 89, COUNT( DISTINCT - 88 ) + + COUNT( * ) ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL + COALESCE ( + - 89, COUNT ( DISTINCT - 88 ) + + COUNT ( * ) ) col1
----
-89

query I rowsort
SELECT DISTINCT + 74 * - + 94
----
-6956

query I rowsort
SELECT DISTINCT + ( + CASE 77 WHEN + 26 + - + 90 * - 0 THEN - 58 WHEN - 52 * + 67 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL + CASE - + 52 WHEN 66 + + - COUNT( * ) * + 3 * - 86 + + - 48 THEN NULL WHEN + + 80 THEN NULL WHEN 23 THEN - 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + CASE - + 52 WHEN 66 + + - COUNT ( * ) * + 3 * - 86 + + - 48 THEN NULL WHEN + + 80 THEN NULL WHEN 23 THEN - 67 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 63 * 31 * - 1
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT 76 * + COUNT( * ) + 19 * + 50 col0
----
1026

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT 76 * + COUNT ( * ) + 19 * + 50 col0
----
1026

query I rowsort
SELECT + ( + 33 ) + - 8 + + 27 + + 76 + - + 50 * 77 + - + 60 * 5 + 43 AS col0
----
-3979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT + CAST( NULL AS SIGNED ) * - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT + CAST ( NULL AS INTEGER ) * - + 46
----
NULL

query I rowsort
SELECT DISTINCT 50 * + - 36 * - 88 + - 39 AS col0
----
158361

onlyif mysql # aggregate syntax: 
query II rowsort label-4520
SELECT ALL + COUNT( * ) AS col2, + 50 col0
----
1
50

skipif mysql # not compatible
query II rowsort label-4520
SELECT ALL + COUNT ( * ) AS col2, + 50 col0
----
1
50

query I rowsort
SELECT ( - ( - 71 ) ) col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4522
SELECT ALL ( NULLIF ( 88, + + 30 * - 68 ) ) * - 53 + COALESCE ( + - CAST( NULL AS SIGNED ), + - 63, COUNT( * ), + 3 ) * + + 63 * + CAST( + 99 AS SIGNED ) AS col1
----
-397595

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL ( NULLIF ( 88, + + 30 * - 68 ) ) * - 53 + COALESCE ( + - CAST ( NULL AS INTEGER ), + - 63, COUNT ( * ), + 3 ) * + + 63 * + CAST ( + 99 AS INTEGER ) AS col1
----
-397595

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - + 92 + - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4523
SELECT - + 92 + - COUNT ( * ) AS col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4524
SELECT DISTINCT CAST( - 45 AS SIGNED ) * + 97 * 64 * - - CASE COUNT( * ) WHEN COUNT( DISTINCT 6 ) THEN + 16 + + + 83 ELSE NULL END + 71 + - 30 DIV - 42 * + 24 * - - 27 + + + ( + COUNT( * ) ) AS col1
----
-27656568

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT CAST ( - 45 AS INTEGER ) * + 97 * 64 * - - CASE COUNT ( * ) WHEN COUNT ( DISTINCT 6 ) THEN + 16 + + + 83 ELSE NULL END + 71 + - 30 / - 42 * + 24 * - - 27 + + + ( + COUNT ( * ) ) AS col1
----
-27656568

onlyif mysql # DIV for integer division: 
query II rowsort label-4525
SELECT ALL + 95 AS col1, - 21 DIV - + 86 AS col1
----
95
0

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL + 95 AS col1, - 21 / - + 86 AS col1
----
95
0

query I rowsort
SELECT + - 17 + - 28 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 46 + - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 46 + - - 99
----
NULL

query II rowsort
SELECT DISTINCT + 13, 17 + + + 75 * 88 AS col1
----
13
6617

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4529
SELECT ALL - - CAST( NULL AS DECIMAL ) * - 31 + + - 90 + - + 2 + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - - CAST ( NULL AS REAL ) * - 31 + + - 90 + - + 2 + - 52
----
NULL

query I rowsort
SELECT - NULLIF ( + 58, - 64 ) AS col0
----
-58

query I rowsort
SELECT + + ( - 86 ) * + + 30 * + - 17 col0
----
43860

query II rowsort
SELECT - 0 AS col0, + 31 * - + CASE WHEN NULL <= - 5 THEN 44 + + 8 END * - AVG ( DISTINCT 76 ) AS col2
----
0
NULL

query I rowsort
SELECT + 91 + + 64
----
155

query I rowsort
SELECT + + 90 + - 39 AS col1
----
51

query I rowsort
SELECT + 48 * 83 AS col2
----
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - COUNT( * ) * 87
----
-87

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - COUNT ( * ) * 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + - NULLIF ( + + 18, + + 41 ) + + COALESCE ( - + MAX( DISTINCT + + 91 ), 30 * + COUNT( * ) * + 52, 11, 89 )
----
-109

skipif mysql # not compatible
query I rowsort label-4537
SELECT + - NULLIF ( + + 18, + + 41 ) + + COALESCE ( - + MAX ( DISTINCT + + 91 ), 30 * + COUNT ( * ) * + 52, 11, 89 )
----
-109

query I rowsort
SELECT ALL - 10 - - 2 col0
----
-8

query I rowsort
SELECT ALL + 46 * + ( + CASE 86 WHEN 28 THEN + 57 ELSE ( + 50 ) END )
----
2300

query I rowsort
SELECT ALL 10 - + - 65 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + 80 * COUNT( * ) * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 80 * COUNT ( * ) * - COUNT ( * )
----
-80

query I rowsort
SELECT DISTINCT 49 * - COALESCE ( 46, 31 ) + - 42
----
-2296

query I rowsort
SELECT - 93 + + 59 - 24 AS col1
----
-58

query I rowsort
SELECT ALL ( - 29 ) * - 30 AS col0
----
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT ( - 97 ) * - - CAST( NULL AS SIGNED ) + + 10 / + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT ( - 97 ) * - - CAST ( NULL AS INTEGER ) + + 10 / + 49 AS col2
----
NULL

query I rowsort
SELECT 60 + ( + 24 ) AS col2
----
84

query I rowsort
SELECT 34 * + 94
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 69 + + COUNT( * ) * + 47 + + 64 * - - 57 AS col0
----
3764

skipif mysql # not compatible
query I rowsort label-4548
SELECT 69 + + COUNT ( * ) * + 47 + + 64 * - - 57 AS col0
----
3764

onlyif mysql # DIV for integer division: 
query I rowsort label-4549
SELECT ALL - 14 DIV + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - 14 / + 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT 59 * COUNT( * ) AS col0, COUNT( ( 59 ) ) AS col2
----
59
1

skipif mysql # not compatible
query II rowsort label-4550
SELECT 59 * COUNT ( * ) AS col0, COUNT ( ( 59 ) ) AS col2
----
59
1

query I rowsort
SELECT ALL - 88 * 76
----
-6688

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT ALL 58 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL 58 / 20
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4553
SELECT - 9 DIV - COALESCE ( - 11, + + 87, - 55 ) * 96 - 52 + + - 59 * + COUNT( DISTINCT - - 61 ) * 35 * - 22 * - 49 - + 22
----
-2226144

skipif mysql # not compatible
query I rowsort label-4553
SELECT - 9 / - COALESCE ( - 11, + + 87, - 55 ) * 96 - 52 + + - 59 * + COUNT ( DISTINCT - - 61 ) * 35 * - 22 * - 49 - + 22
----
-2226144

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT ALL - 97 + + 4, COUNT( * ) - - 23 AS col2
----
-93
24

skipif mysql # not compatible
query II rowsort label-4554
SELECT ALL - 97 + + 4, COUNT ( * ) - - 23 AS col2
----
-93
24

query I rowsort
SELECT 85 * + 31 * 80 col1
----
210800

query I rowsort
SELECT 16 * - - 8 + - 4
----
124

query II rowsort
SELECT DISTINCT - 79 + - 70 AS col1, + 88
----
-149
88

query I rowsort
SELECT ALL + 25 + 59 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT COUNT( * ) + 61 * - 9 AS col0
----
-548

skipif mysql # not compatible
query I rowsort label-4559
SELECT COUNT ( * ) + 61 * - 9 AS col0
----
-548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4560
SELECT 75 * - 13 AS col2, ( - + 52 ) - + - ( - CAST( - + COUNT( * ) AS SIGNED ) ) AS col2
----
-975
-51

skipif mysql # not compatible
query II rowsort label-4560
SELECT 75 * - 13 AS col2, ( - + 52 ) - + - ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2
----
-975
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT 81 DIV - 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4561
SELECT 81 / - 81 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 80 + + 41 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT - + COALESCE ( - 4, - - COUNT( * ), 85 + - 48 ) + + 63 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - + COALESCE ( - 4, - - COUNT ( * ), 85 + - 48 ) + + 63 AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT + 30 - - 73 DIV 7
----
40

skipif mysql # not compatible
query I rowsort label-4564
SELECT + 30 - - 73 / 7
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT ALL - - COALESCE ( - 76, - CAST( NULL AS SIGNED ) ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - - COALESCE ( - 76, - CAST ( NULL AS INTEGER ) ) col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + 91 * + + COUNT( * ) + 61 - + - COUNT( * ) * - + 23
----
129

skipif mysql # not compatible
query I rowsort label-4566
SELECT + 91 * + + COUNT ( * ) + 61 - + - COUNT ( * ) * - + 23
----
129

query I rowsort
SELECT ALL - - 99 * + + 45 AS col0
----
4455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT CAST( + 82 AS SIGNED ) col2
----
82

skipif mysql # not compatible
query I rowsort label-4568
SELECT CAST ( + 82 AS INTEGER ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT COUNT( * ) / - CASE - 79 WHEN ( + COUNT( * ) ) + 17 THEN - - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT COUNT ( * ) / - CASE - 79 WHEN ( + COUNT ( * ) ) + 17 THEN - - 36 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + 16 ) * 92
----
1472

query I rowsort
SELECT ALL + ( - 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + 39 - - COUNT( * ) * - 10 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + 39 - - COUNT ( * ) * - 10 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4573
SELECT - MAX( + 52 ) * - 90 * 66 DIV COUNT( 53 ) DIV - COUNT( * ) DIV + - COUNT( * ) - 77 - + - 76 AS col1
----
308879

skipif mysql # not compatible
query I rowsort label-4573
SELECT - MAX ( + 52 ) * - 90 * 66 / COUNT ( 53 ) / - COUNT ( * ) / + - COUNT ( * ) - 77 - + - 76 AS col1
----
308879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4574
SELECT - MAX( ALL - + NULLIF ( 74, - + 94 * + - ( CAST( NULL AS SIGNED ) ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-4574
SELECT - MAX ( ALL - + NULLIF ( 74, - + 94 * + - ( CAST ( NULL AS INTEGER ) ) ) )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT 34 DIV + - 96 * 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4575
SELECT 34 / + - 96 * 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT SUM( + 55 ) * 65 * ( + COUNT( * ) ) + ( + 55 ) AS col0
----
3630

skipif mysql # not compatible
query I rowsort label-4576
SELECT SUM ( + 55 ) * 65 * ( + COUNT ( * ) ) + ( + 55 ) AS col0
----
3630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4577
SELECT DISTINCT 94 * - + COUNT( + 23 ), + 21 * + + 27 * 86 + - + CAST( + ( + 37 ) AS SIGNED ) AS col1
----
-94
48725

skipif mysql # not compatible
query II rowsort label-4577
SELECT DISTINCT 94 * - + COUNT ( + 23 ), + 21 * + + 27 * 86 + - + CAST ( + ( + 37 ) AS INTEGER ) AS col1
----
-94
48725

query I rowsort
SELECT ALL 52 + + 49
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT 50 + + COUNT( + - 32 ) * + + 1 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4579
SELECT 50 + + COUNT ( + - 32 ) * + + 1 AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT ALL COUNT( * ) AS col0, 23 * + 10
----
1
230

skipif mysql # not compatible
query II rowsort label-4580
SELECT ALL COUNT ( * ) AS col0, 23 * + 10
----
1
230

query I rowsort
SELECT DISTINCT NULLIF ( 68, 77 + - 42 ) * - + NULLIF ( + 89, + 39 ) * 94
----
-568888

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT 40 + CASE - MIN( ALL + - 7 ) WHEN + + 42 THEN + + 57 WHEN - 63 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT 40 + CASE - MIN ( ALL + - 7 ) WHEN + + 42 THEN + + 57 WHEN - 63 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT COUNT( * ) + COUNT( + 82 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-4583
SELECT COUNT ( * ) + COUNT ( + 82 ) col0
----
2

query I rowsort
SELECT ( - 90 ) - 12 + 55
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT 59 + + 89 + - + 54 * - + 33 - - + 57 + + - CAST( - CAST( - 6 AS SIGNED ) AS SIGNED ) + 21 * 20 * 5 * - - 15
----
33481

skipif mysql # not compatible
query I rowsort label-4585
SELECT 59 + + 89 + - + 54 * - + 33 - - + 57 + + - CAST ( - CAST ( - 6 AS INTEGER ) AS INTEGER ) + 21 * 20 * 5 * - - 15
----
33481

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4586
SELECT CAST( NULL AS DECIMAL ) / - + 3 * - 77 + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT CAST ( NULL AS REAL ) / - + 3 * - 77 + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL CAST( 32 AS SIGNED ) * 4 + - + 45 * + 34 + - + COUNT( * ) * 34
----
-1436

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL CAST ( 32 AS INTEGER ) * 4 + - + 45 * + 34 + - + COUNT ( * ) * 34
----
-1436

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT ALL 11 * - 64 + - + 9 AS col2, + 43 + + COUNT( * ) + - COUNT( * ) * SUM( ALL - - 18 ) AS col1
----
-713
26

skipif mysql # not compatible
query II rowsort label-4588
SELECT ALL 11 * - 64 + - + 9 AS col2, + 43 + + COUNT ( * ) + - COUNT ( * ) * SUM ( ALL - - 18 ) AS col1
----
-713
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT 36 * + MAX( ALL + + 15 ) + + 10
----
550

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT 36 * + MAX ( ALL + + 15 ) + + 10
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT COUNT( * ) * - - 77 * + COUNT( * ) + - NULLIF ( - COUNT( * ), + - 82 ) - + + 72 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4590
SELECT COUNT ( * ) * - - 77 * + COUNT ( * ) + - NULLIF ( - COUNT ( * ), + - 82 ) - + + 72 AS col1
----
6

query I rowsort
SELECT ALL NULLIF ( 61, - 84 * + 40 ) * - + 45 + - 78
----
-2823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4592
SELECT + 4 DIV + 37 * - - COUNT( - COALESCE ( 96, 93 ) ) * CAST( - 40 AS SIGNED ) + + 14 + - - 7 * - 20 * + 24 * 5 AS col2, ( 62 )
----
-16786
62

skipif mysql # not compatible
query II rowsort label-4592
SELECT + 4 / + 37 * - - COUNT ( - COALESCE ( 96, 93 ) ) * CAST ( - 40 AS INTEGER ) + + 14 + - - 7 * - 20 * + 24 * 5 AS col2, ( 62 )
----
-16786
62

query I rowsort
SELECT DISTINCT - ( + 55 ) * + 45 + + 36 + + ( ( + - NULLIF ( + 57, + COALESCE ( - + 82, + - 7, + 63 ) ) ) )
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT + COALESCE ( + NULLIF ( + + COUNT( * ), + - COUNT( * ) * + 26 + + 1 * 96 * + - 18 ), 26 / + + 11 ) / + - 37 * + 9 + - - CAST( NULL AS SIGNED ) + - 15 + + - CASE + 36 WHEN 34 THEN - CASE + 2 WHEN - 62 * ( + 88 ) THEN NULL WHEN 73 THEN + 7 / + 12 ELSE NULL END + ( - CASE CASE - SUM( ALL + 87 ) WHEN COUNT( * ) THEN NULL WHEN + 13 THEN 97 ELSE NULL END WHEN - + 8 / 49 THEN + - ( + COUNT( * ) ) END ) WHEN - COUNT( * ) THEN - - NULLIF ( + - 42, - + 11 + - + 42 + - COUNT( - + 55 ) * 82 + + 16 ) WHEN + + 18 / + 21 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COALESCE ( + NULLIF ( + + COUNT ( * ), + - COUNT ( * ) * + 26 + + 1 * 96 * + - 18 ), 26 / + + 11 ) / + - 37 * + 9 + - - CAST ( NULL AS INTEGER ) + - 15 + + - CASE + 36 WHEN 34 THEN - CASE + 2 WHEN - 62 * ( + 88 ) THEN NULL WHEN 73 THEN + 7 / + 12 ELSE NULL END + ( - CASE CASE - SUM ( ALL + 87 ) WHEN COUNT ( * ) THEN NULL WHEN + 13 THEN 97 ELSE NULL END WHEN - + 8 / 49 THEN + - ( + COUNT ( * ) ) END ) WHEN - COUNT ( * ) THEN - - NULLIF ( + - 42, - + 11 + - + 42 + - COUNT ( - + 55 ) * 82 + + 16 ) WHEN + + 18 / + 21 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 24 * - + 10
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT - 37 * ( + - 12 ) DIV 90 + - 48
----
-44

skipif mysql # not compatible
query I rowsort label-4596
SELECT - 37 * ( + - 12 ) / 90 + - 48
----
-44

query I rowsort
SELECT ALL - 45 * 29 AS col0
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + NULLIF ( 30, 95 + - 92 * - 20 * 94 * - + MIN( + NULLIF ( - - 80, - 66 ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-4598
SELECT + NULLIF ( 30, 95 + - 92 * - 20 * 94 * - + MIN ( + NULLIF ( - - 80, - 66 ) ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL + - 59 - + + 6 + + + ( NULLIF ( - 48, MAX( 52 ) ) ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + - 59 - + + 6 + + + ( NULLIF ( - 48, MAX ( 52 ) ) ) AS col1
----
-113

query I rowsort
SELECT DISTINCT + 1 * + + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL - - SUM( - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - - SUM ( - 32 ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4602
SELECT + ( + CASE + 55 WHEN 93 - + + NULLIF ( - + CASE + ( - 78 ) WHEN + AVG ( + + 32 ) * - 76 + - - 25 / + - CAST( NULL AS SIGNED ) THEN + 83 ELSE NULL END, + 67 * 31 ) THEN NULL WHEN + NULLIF ( - CAST( NULL AS DECIMAL ), 45 ) + - 9 + - CAST( - 88 AS SIGNED ) * - SUM( ALL - 49 ) * - COALESCE ( - CAST( NULL AS SIGNED ), - + NULLIF ( + 82, - 43 / - COUNT( * ) * 75 ) ) * 45 THEN + 55 ELSE + 42 + - 11 END ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4602
SELECT + ( + CASE + 55 WHEN 93 - + + NULLIF ( - + CASE + ( - 78 ) WHEN + AVG ( + + 32 ) * - 76 + - - 25 / + - CAST ( NULL AS INTEGER ) THEN + 83 ELSE NULL END, + 67 * 31 ) THEN NULL WHEN + NULLIF ( - CAST ( NULL AS REAL ), 45 ) + - 9 + - CAST ( - 88 AS INTEGER ) * - SUM ( ALL - 49 ) * - COALESCE ( - CAST ( NULL AS INTEGER ), - + NULLIF ( + 82, - 43 / - COUNT ( * ) * 75 ) ) * 45 THEN + 55 ELSE + 42 + - 11 END ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-4603
SELECT ALL - + 79 AS col1, - COALESCE ( - + 98, + - COALESCE ( 2, - 44 + + COUNT( * ), - + COUNT( - 13 ) + 82 + + + 11 ) ) - 73 * + 21 AS col1
----
-79
-1435

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL - + 79 AS col1, - COALESCE ( - + 98, + - COALESCE ( 2, - 44 + + COUNT ( * ), - + COUNT ( - 13 ) + 82 + + + 11 ) ) - 73 * + 21 AS col1
----
-79
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT - 53 * COUNT( * ) + + 50 + + - 53 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4604
SELECT - 53 * COUNT ( * ) + + 50 + + - 53 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - + COUNT( * ) + - + 88 * + CASE - 0 WHEN - 84 + - - CASE - 75 WHEN + + COUNT( * ) THEN + - 22 END THEN + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT - + COUNT ( * ) + - + 88 * + CASE - 0 WHEN - 84 + - - CASE - 75 WHEN + + COUNT ( * ) THEN + - 22 END THEN + 60 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4606
SELECT + COUNT( * ), - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4606
SELECT + COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - + COUNT( + 27 ) * + 65
----
-65

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - + COUNT ( + 27 ) * + 65
----
-65

query I rowsort
SELECT - + 63 * - 37 AS col2
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - + SUM( ALL + ( 90 ) ) + + 30 + + 68 * 81 * - 99 AS col0
----
-545352

skipif mysql # not compatible
query I rowsort label-4609
SELECT - + SUM ( ALL + ( 90 ) ) + + 30 + + 68 * 81 * - 99 AS col0
----
-545352

query II rowsort
SELECT - 28 + - 2 - 90 AS col0, 59
----
-120
59

query I rowsort
SELECT ALL + 77 + + 73 AS col0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4612
SELECT - COUNT( * ) + + 89 * + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT - COUNT ( * ) + + 89 * + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 96 + + 87
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4614
SELECT - 59 + 66 AS col1, + CAST( NULL AS SIGNED ) + + - 76 * - - 61 * - 83 * ( + COUNT( * ) ) AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4614
SELECT - 59 + 66 AS col1, + CAST ( NULL AS INTEGER ) + + - 76 * - - 61 * - 83 * ( + COUNT ( * ) ) AS col2
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL COUNT( - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL COUNT ( - 99 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4617
SELECT ALL + 97 + + + MIN( - 46 ) + - 9 AS col1, 64 + - - CAST( NULL AS SIGNED ) * + + 35 AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-4617
SELECT ALL + 97 + + + MIN ( - 46 ) + - 9 AS col1, 64 + - - CAST ( NULL AS INTEGER ) * + + 35 AS col0
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - 23 * + - MIN( + 28 )
----
644

skipif mysql # not compatible
query I rowsort label-4618
SELECT - 23 * + - MIN ( + 28 )
----
644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4619
SELECT + NULLIF ( + - 11, - CAST( NULL AS DECIMAL ) - + COUNT( * ) * + CAST( NULL AS SIGNED ) ) + + 58 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4619
SELECT + NULLIF ( + - 11, - CAST ( NULL AS REAL ) - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) + + 58 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT + 5 + 56 + + ( 34 ) * - + SUM( 17 )
----
-517

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 5 + 56 + + ( 34 ) * - + SUM ( 17 )
----
-517

query I rowsort
SELECT ALL ( - + 15 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT + ( ( - 73 ) ) + - 75 DIV + 48
----
-74

skipif mysql # not compatible
query I rowsort label-4622
SELECT + ( ( - 73 ) ) + - 75 / + 48
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4623
SELECT DISTINCT 4 * - 67 * + + MAX( - - 87 ) AS col0, 4 * - 4 + - 94 AS col1
----
-23316
-110

skipif mysql # not compatible
query II rowsort label-4623
SELECT DISTINCT 4 * - 67 * + + MAX ( - - 87 ) AS col0, 4 * - 4 + - 94 AS col1
----
-23316
-110

query II rowsort
SELECT ALL 63 + + 18 AS col0, 6
----
81
6

query I rowsort
SELECT ALL NULLIF ( 86, - - 80 * + 74 + 24 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL COUNT( * ) * 71 col1
----
71

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL COUNT ( * ) * 71 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL CASE ( - ( - - 74 ) ) WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) * - 75 * 87 * - - 45 THEN 45 ELSE NULL END * COUNT( + 83 ) * + 39 + ( 82 ) - + + COUNT( * ) + - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL CASE ( - ( - - 74 ) ) WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * - 75 * 87 * - - 45 THEN 45 ELSE NULL END * COUNT ( + 83 ) * + 39 + ( 82 ) - + + COUNT ( * ) + - + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - COUNT( DISTINCT - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-4628
SELECT - COUNT ( DISTINCT - - 66 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT + 53 * - COUNT( * ) DIV + 75 * + - 4
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + 53 * - COUNT ( * ) / + 75 * + - 4
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT + 63 DIV + ( + 17 ) - + 30 * + COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4630
SELECT + 63 / + ( + 17 ) - + 30 * + COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT + - 85 + - 93
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + NULLIF ( + SUM( - - 65 ), - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + NULLIF ( + SUM ( - - 65 ), - COUNT ( * ) )
----
65

query I rowsort
SELECT ALL + - 27 col2
----
-27

query I rowsort
SELECT DISTINCT + - 45 AS col0
----
-45

query I rowsort
SELECT + 14 - - 32 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + - MAX( + 92 ) * + - 6 AS col2
----
552

skipif mysql # not compatible
query I rowsort label-4636
SELECT + - MAX ( + 92 ) * + - 6 AS col2
----
552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4637
SELECT + - NULLIF ( - NULLIF ( - 9, + MIN( CAST( NULL AS SIGNED ) ) ), 75 ) * + 6 * - 27 * + COUNT( * ) col1, + 42 DIV + 80 * - + 83 + + ( - 0 ) AS col1
----
1458
0

skipif mysql # not compatible
query II rowsort label-4637
SELECT + - NULLIF ( - NULLIF ( - 9, + MIN ( CAST ( NULL AS INTEGER ) ) ), 75 ) * + 6 * - 27 * + COUNT ( * ) col1, + 42 / + 80 * - + 83 + + ( - 0 ) AS col1
----
1458
0

query I rowsort
SELECT + + 92 * - ( + + 73 ) * - 93 - 70 - 37 * - 22 * 99 AS col1
----
705104

query I rowsort
SELECT ALL - 98 * - 30 * - 84 col1
----
-246960

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT - 73 * - - COUNT( - 21 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4640
SELECT - 73 * - - COUNT ( - 21 ) AS col1
----
-73

query I rowsort
SELECT DISTINCT + + ( + 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL 0 * + NULLIF ( 27, - - 5 * + + 35 * - 96 + - - 20 + + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL 0 * + NULLIF ( 27, - - 5 * + + 35 * - 96 + - - 20 + + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - + COUNT( * ) * ( - + 0 ) * + 61
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT - + COUNT ( * ) * ( - + 0 ) * + 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT ALL + 55 DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + 55 / + - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT + 4 * - + 93 * + MIN( ALL 40 ) + - 81
----
-14961

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + 4 * - + 93 * + MIN ( ALL 40 ) + - 81
----
-14961

query I rowsort
SELECT ALL ( 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + COUNT( * ) + + 62 col2
----
63

skipif mysql # not compatible
query I rowsort label-4647
SELECT + COUNT ( * ) + + 62 col2
----
63

query I rowsort
SELECT ALL NULLIF ( - 29, 59 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - NULLIF ( 87, + 43 / - COUNT( * ) ) * + 55 * - CASE WHEN NULL IS NOT NULL THEN 4 WHEN NOT NULL BETWEEN 77 AND + + 2 + + 60 * - 59 * - 9 / + 11 THEN NULL ELSE NULL END * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT - NULLIF ( 87, + 43 / - COUNT ( * ) ) * + 55 * - CASE WHEN NULL IS NOT NULL THEN 4 WHEN NOT NULL BETWEEN 77 AND + + 2 + + 60 * - 59 * - 9 / + 11 THEN NULL ELSE NULL END * - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 75 + + 67
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4651
SELECT 10, - COUNT( * ) * - + 17 DIV - 28 AS col2
----
10
0

skipif mysql # not compatible
query II rowsort label-4651
SELECT 10, - COUNT ( * ) * - + 17 / - 28 AS col2
----
10
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT - COUNT( * ), ( + - COUNT( * ) )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4652
SELECT - COUNT ( * ), ( + - COUNT ( * ) )
----
-1
-1

query I rowsort
SELECT ALL + 66 + + - 8 col0
----
58

query I rowsort
SELECT ALL + 93 * + ( - - 85 )
----
7905

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL NULLIF ( + COUNT( * ), + - 15 + + - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL NULLIF ( + COUNT ( * ), + - 15 + + - 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - 45 + + + 46 + - 83 * + 42 * - - COUNT( * ) + - - 44 + - 19 * - - 56
----
-4505

skipif mysql # not compatible
query I rowsort label-4656
SELECT - 45 + + + 46 + - 83 * + 42 * - - COUNT ( * ) + - - 44 + - 19 * - - 56
----
-4505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT - ( + 53 ) + - - 48 * + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT - ( + 53 ) + - - 48 * + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 66 - + + 58 - - - ( + 13 ) * + 39 + - 17 * - 37
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT - 15 - - - ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT - 15 - - - ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4660
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 52
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-4660
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 52
----
NULL
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + 91 - + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4661
SELECT + 91 - + COUNT ( * ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT - CAST( NULL AS SIGNED ) * - AVG ( ALL 14 ) * + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( ALL 14 ) * + 46 AS col1
----
NULL

query I rowsort
SELECT + 9 * - + 55
----
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT DISTINCT + 22 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + 22 / - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4665
SELECT ALL CAST( + COALESCE ( 49, 91 + NULLIF ( + CAST( NULL AS SIGNED ), CASE - 71 WHEN COUNT( * ) * CASE + 28 * + 2 WHEN SUM( 0 ) - - 69 * 31 THEN 98 ELSE NULL END + COALESCE ( + 34, + 68 ) THEN 37 END * 6 ) ) AS SIGNED ) * 83
----
4067

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL CAST ( + COALESCE ( 49, 91 + NULLIF ( + CAST ( NULL AS INTEGER ), CASE - 71 WHEN COUNT ( * ) * CASE + 28 * + 2 WHEN SUM ( 0 ) - - 69 * 31 THEN 98 ELSE NULL END + COALESCE ( + 34, + 68 ) THEN 37 END * 6 ) ) AS INTEGER ) * 83
----
4067

query I rowsort
SELECT - 55 + 48 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4667
SELECT ALL + 31 DIV - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + 31 / - COUNT ( * ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT - 73 * + MAX( DISTINCT - 82 ) AS col2
----
5986

skipif mysql # not compatible
query I rowsort label-4668
SELECT - 73 * + MAX ( DISTINCT - 82 ) AS col2
----
5986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT - 52 * + CAST( - 28 / 24 AS SIGNED ) + COUNT( - 93 - 69 ) * 51 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-4669
SELECT - 52 * + CAST ( - 28 / 24 AS INTEGER ) + COUNT ( - 93 - 69 ) * 51 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4670
SELECT 35 DIV MIN( - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-4670
SELECT 35 / MIN ( - 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT 6 + SUM( ALL - COALESCE ( 55, 40 * 60 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-4671
SELECT 6 + SUM ( ALL - COALESCE ( 55, 40 * 60 ) )
----
-49

query I rowsort
SELECT 15 + 74 AS col2
----
89

query I rowsort
SELECT 54 + 48
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT ( 45 ) + - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT ( 45 ) + - COUNT ( * ) AS col2
----
44

query I rowsort
SELECT ALL 1 + 9 * + 65
----
586

query I rowsort
SELECT DISTINCT ( - 9 ) + 6
----
-3

query I rowsort
SELECT DISTINCT 71 + 44 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL 30 * + COUNT( - 58 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL 30 * + COUNT ( - 58 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ( COUNT( * ) ) + - 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4679
SELECT ( COUNT ( * ) ) + - 29 AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL CAST( NULL AS SIGNED ) + + 62 * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL CAST ( NULL AS INTEGER ) + + 62 * 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT COUNT( * ) + + 33
----
34

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT COUNT ( * ) + + 33
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 60 * COUNT( DISTINCT - 89 ) + + 40
----
100

skipif mysql # not compatible
query I rowsort label-4682
SELECT 60 * COUNT ( DISTINCT - 89 ) + + 40
----
100

query I rowsort
SELECT + 37 * 14 + ( + 17 )
----
535

query I rowsort
SELECT DISTINCT 29 * + 52 AS col2
----
1508

query I rowsort
SELECT ALL 87 - - 14 * 17
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT 69 * - MAX( ALL - 44 ) AS col0
----
3036

skipif mysql # not compatible
query I rowsort label-4686
SELECT 69 * - MAX ( ALL - 44 ) AS col0
----
3036

onlyif mysql # DIV for integer division: 
query I rowsort label-4687
SELECT 75 + 11 DIV 24
----
75

skipif mysql # not compatible
query I rowsort label-4687
SELECT 75 + 11 / 24
----
75

query I rowsort
SELECT ALL 34 * 64
----
2176

query I rowsort
SELECT DISTINCT 93 * - NULLIF ( + 50 * 0, + 32 + + 85 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4690
SELECT ALL - 7 DIV - NULLIF ( COALESCE ( - 24, ( ( MIN( DISTINCT 51 ) ) ) ), + CASE + 49 WHEN ( + 14 ) * ( NULLIF ( + 91, 41 ) ) THEN NULL ELSE + 33 + 52 END + + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - 7 / - NULLIF ( COALESCE ( - 24, ( ( MIN ( DISTINCT 51 ) ) ) ), + CASE + 49 WHEN ( + 14 ) * ( NULLIF ( + 91, 41 ) ) THEN NULL ELSE + 33 + 52 END + + 86 )
----
0

query I rowsort
SELECT DISTINCT 86 - 7 * 80 AS col2
----
-474

query I rowsort
SELECT 10 + 90
----
100

query I rowsort
SELECT 19 + 3
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 29 + - COUNT( * ) * - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4694
SELECT 29 + - COUNT ( * ) * - COUNT ( * ) AS col2
----
30

query I rowsort
SELECT 0 * + 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - - ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4696
SELECT - - ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT - 14 * + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - 14 * + COUNT ( * ) AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT - CASE - 58 WHEN - 26 THEN NULL WHEN + 90 THEN 75 * 37 ELSE + CAST( NULL AS SIGNED ) - 71 END * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT - CASE - 58 WHEN - 26 THEN NULL WHEN + 90 THEN 75 * 37 ELSE + CAST ( NULL AS INTEGER ) - 71 END * - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT - - COALESCE ( + CASE + 93 WHEN - 21 / + COALESCE ( 68 * 86, COUNT( * ) - - 95 ) THEN COUNT( * ) * NULLIF ( + 89 * COUNT( * ), + 83 ) ELSE 41 * 6 END, + COUNT( * ) ) AS col0
----
246

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - - COALESCE ( + CASE + 93 WHEN - 21 / + COALESCE ( 68 * 86, COUNT ( * ) - - 95 ) THEN COUNT ( * ) * NULLIF ( + 89 * COUNT ( * ), + 83 ) ELSE 41 * 6 END, + COUNT ( * ) ) AS col0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT - COUNT( DISTINCT 51 ) * 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - COUNT ( DISTINCT 51 ) * 98 AS col1
----
-98

query I rowsort
SELECT - 49 - 1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT + CASE COUNT( * ) WHEN - ( - COUNT( DISTINCT - 50 ) ) * 26 THEN - ( 86 ) - 40 WHEN 23 THEN NULL WHEN + 54 - 96 THEN NULL ELSE NULL END / 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT + CASE COUNT ( * ) WHEN - ( - COUNT ( DISTINCT - 50 ) ) * 26 THEN - ( 86 ) - 40 WHEN 23 THEN NULL WHEN + 54 - 96 THEN NULL ELSE NULL END / 14 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT + 31 * CAST( NULL AS SIGNED ) + 1 * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT + 31 * CAST ( NULL AS INTEGER ) + 1 * + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT + 44 / CAST( NULL AS SIGNED ) + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT + 44 / CAST ( NULL AS INTEGER ) + 64 AS col0
----
NULL

query I rowsort
SELECT ALL - - 73 + - 69 AS col0
----
4

query I rowsort
SELECT + - ( 7 ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT ALL - CAST( + 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - CAST ( + 18 AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT - + 55 * 60 - + COUNT( * )
----
-3301

skipif mysql # not compatible
query I rowsort label-4708
SELECT - + 55 * 60 - + COUNT ( * )
----
-3301

query I rowsort
SELECT ALL 52 * 88 AS col1
----
4576

query I rowsort
SELECT DISTINCT - 57 * 67 AS col1
----
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL 61 + + 35 * + MIN( ALL 7 ) AS col2
----
306

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL 61 + + 35 * + MIN ( ALL 7 ) AS col2
----
306

query I rowsort
SELECT DISTINCT - - 31 * 43
----
1333

query I rowsort
SELECT 48 * 97
----
4656

query I rowsort
SELECT DISTINCT 53 * - 9
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + COUNT( ALL + 68 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4715
SELECT + COUNT ( ALL + 68 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL SUM( ALL - ( 46 ) ) - 64
----
-110

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL SUM ( ALL - ( 46 ) ) - 64
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT 78 * 87 DIV 35 AS col2
----
193

skipif mysql # not compatible
query I rowsort label-4717
SELECT 78 * 87 / 35 AS col2
----
193

query I rowsort
SELECT DISTINCT 87 - - 79 * + 75 AS col0
----
6012

query I rowsort
SELECT 68 * - - 84 * - 97
----
-554064

query I rowsort
SELECT 4 * + - 97 AS col0
----
-388

query I rowsort
SELECT 74 + 86 + + 35 * - 17 AS col2
----
-435

query I rowsort
SELECT CASE 16 WHEN ( 54 ) THEN + 4 * + 61 END + - 1 AS col0
----
NULL

query I rowsort
SELECT - CASE + ( 73 ) WHEN + 63 * + 80 THEN 90 / 10 WHEN - 94 * 6 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - COUNT( + 71 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4724
SELECT - COUNT ( + 71 ) col0
----
-1

query I rowsort
SELECT 93 + - 11 * + 3 AS col0
----
60

query I rowsort
SELECT 29 * - - 7
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ( + MAX( 42 ) ) + + 55
----
97

skipif mysql # not compatible
query I rowsort label-4727
SELECT ( + MAX ( 42 ) ) + + 55
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4728
SELECT ALL - 76 + CAST( + 34 AS SIGNED ) DIV 46
----
-76

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL - 76 + CAST ( + 34 AS INTEGER ) / 46
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4729
SELECT + 76 / - COALESCE ( - 58, + 69, COUNT( * ) * CAST( NULL AS DECIMAL ) ) * COUNT( * ) + - CASE CASE + NULLIF ( 79, + 7 * 18 ) WHEN - COUNT( * ) / 77 THEN NULL WHEN COUNT( * ) + - 60 * - 70 THEN + CASE + 14 WHEN 2 * - 37 + + 76 THEN NULL ELSE 31 END + 22 ELSE 31 END + + MAX( + 50 ) WHEN + 1 THEN - 14 + + MIN( DISTINCT 66 ) WHEN + ( 89 ) * CAST( - 21 AS SIGNED ) THEN + 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 76 / - COALESCE ( - 58, + 69, COUNT ( * ) * CAST ( NULL AS REAL ) ) * COUNT ( * ) + - CASE CASE + NULLIF ( 79, + 7 * 18 ) WHEN - COUNT ( * ) / 77 THEN NULL WHEN COUNT ( * ) + - 60 * - 70 THEN + CASE + 14 WHEN 2 * - 37 + + 76 THEN NULL ELSE 31 END + 22 ELSE 31 END + + MAX ( + 50 ) WHEN + 1 THEN - 14 + + MIN ( DISTINCT 66 ) WHEN + ( 89 ) * CAST ( - 21 AS INTEGER ) THEN + 91 END AS col1
----
NULL

query I rowsort
SELECT + 81 + 93 + + 75 AS col2
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT + 20 + COALESCE ( + ( CAST( NULL AS SIGNED ) ), CAST( NULL AS SIGNED ) ) + 24 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT + 20 + COALESCE ( + ( CAST ( NULL AS INTEGER ) ), CAST ( NULL AS INTEGER ) ) + 24 * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT - COUNT( ALL - + 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-4732
SELECT - COUNT ( ALL - + 31 )
----
-1

query I rowsort
SELECT + 34 + + 71 - 42
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - - 66 - + SUM( DISTINCT - 50 ) AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4734
SELECT - - 66 - + SUM ( DISTINCT - 50 ) AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT + + 96 + + - COUNT( 52 ) + 93 * 43 AS col0
----
4094

skipif mysql # not compatible
query I rowsort label-4735
SELECT + + 96 + + - COUNT ( 52 ) + 93 * 43 AS col0
----
4094

query I rowsort
SELECT - + 91 + + 76 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT - + CAST( + 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4737
SELECT - + CAST ( + 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT + 41 DIV 83 + + CASE - 4 WHEN + 98 THEN - 30 ELSE + 67 + - 65 END + MAX( + 31 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4738
SELECT + 41 / 83 + + CASE - 4 WHEN + 98 THEN - 30 ELSE + 67 + - 65 END + MAX ( + 31 ) AS col2
----
33

query I rowsort
SELECT ALL + 65 * 8 + + 2 AS col1
----
522

query I rowsort
SELECT DISTINCT - 52 * - - 36 AS col2
----
-1872

query I rowsort
SELECT + 37 * 63 + + 75
----
2406

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - + 22 * + - COUNT( * ) + 98 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - + 22 * + - COUNT ( * ) + 98 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + MAX( 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4743
SELECT + MAX ( 68 ) AS col2
----
68

query I rowsort
SELECT + 50 * - + 83
----
-4150

query I rowsort
SELECT ALL - 59 * 81 + 38
----
-4741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4746
SELECT + + CASE + 66 WHEN - COUNT( * ) THEN NULL WHEN - 79 + - 53 * - 52 THEN 49 * - 41 END + + COUNT( * ) * CASE - CAST( NULL AS DECIMAL ) WHEN 73 + + CAST( NULL AS SIGNED ) THEN + CASE 61 WHEN COUNT( * ) THEN + COALESCE ( - 75, COUNT( * ) * 82 ) * 20 ELSE CAST( 86 AS DECIMAL ) * 95 END + - CAST( + MIN( ALL + 0 ) AS SIGNED ) WHEN ( 57 ) - 9 / - 18 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT + + CASE + 66 WHEN - COUNT ( * ) THEN NULL WHEN - 79 + - 53 * - 52 THEN 49 * - 41 END + + COUNT ( * ) * CASE - CAST ( NULL AS REAL ) WHEN 73 + + CAST ( NULL AS INTEGER ) THEN + CASE 61 WHEN COUNT ( * ) THEN + COALESCE ( - 75, COUNT ( * ) * 82 ) * 20 ELSE CAST ( 86 AS REAL ) * 95 END + - CAST ( + MIN ( ALL + 0 ) AS INTEGER ) WHEN ( 57 ) - 9 / - 18 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT + + SUM( DISTINCT - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4747
SELECT + + SUM ( DISTINCT - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + ( 5 ) * - 65 + - CASE COUNT( * ) WHEN + 26 + 83 THEN 2 * - 75 WHEN + 39 THEN 70 ELSE + 85 END
----
-410

skipif mysql # not compatible
query I rowsort label-4748
SELECT + ( 5 ) * - 65 + - CASE COUNT ( * ) WHEN + 26 + 83 THEN 2 * - 75 WHEN + 39 THEN 70 ELSE + 85 END
----
-410

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT DISTINCT 16 * + + 21 - 48 DIV - ( 69 )
----
336

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT 16 * + + 21 - 48 / - ( 69 )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - 76 * + 76 * COUNT( * )
----
-5776

skipif mysql # not compatible
query I rowsort label-4750
SELECT - 76 * + 76 * COUNT ( * )
----
-5776

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL COUNT( ALL - 40 ) * - + 1 - + 49
----
-50

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL COUNT ( ALL - 40 ) * - + 1 - + 49
----
-50

query I rowsort
SELECT COALESCE ( + 97, + + 18 )
----
97

query I rowsort
SELECT ALL + COALESCE ( 57, + 36 )
----
57

query I rowsort
SELECT ALL + 7 * + 60 AS col1
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT - COALESCE ( + MIN( ALL - - 8 ), + 87 + SUM( DISTINCT + CASE + 38 WHEN ( 77 ) / 25 + - 67 THEN 41 ELSE NULL END ) ) + 7 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4755
SELECT - COALESCE ( + MIN ( ALL - - 8 ), + 87 + SUM ( DISTINCT + CASE + 38 WHEN ( 77 ) / 25 + - 67 THEN 41 ELSE NULL END ) ) + 7 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL + 34 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + 34 / 35
----
0

query I rowsort
SELECT - 22 + + NULLIF ( + 82, 65 / - 32 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4758
SELECT - 40 + + 99 DIV + 21 + SUM( ALL - 38 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4758
SELECT - 40 + + 99 / + 21 + SUM ( ALL - 38 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT DISTINCT + 36, COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-4759
SELECT DISTINCT + 36, COUNT ( * ) AS col2
----
36
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL + 7 * + CAST( - 0 AS SIGNED ) * 14
----
0

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + 7 * + CAST ( - 0 AS INTEGER ) * 14
----
0

query I rowsort
SELECT - COALESCE ( + 98, 68 ) * 41 AS col2
----
-4018

query I rowsort
SELECT + 75 * + + NULLIF ( 42, + 34 + 17 ) AS col0
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + 92 + + 19 * - MIN( ALL 87 ) + + ( COUNT( * ) ) AS col2
----
-1560

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 92 + + 19 * - MIN ( ALL 87 ) + + ( COUNT ( * ) ) AS col2
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL - NULLIF ( COUNT( * ), - + NULLIF ( 75, 95 ) ) * 87
----
-87

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - NULLIF ( COUNT ( * ), - + NULLIF ( 75, 95 ) ) * 87
----
-87

query I rowsort
SELECT + 68 + - 94
----
-26

query I rowsort
SELECT - 39 * + - 76
----
2964

query I rowsort
SELECT ALL - 44 * 47 * 3 AS col1
----
-6204

query I rowsort
SELECT DISTINCT + 90 + - - 62 * - 37
----
-2204

query I rowsort
SELECT ALL ( + 23 ) + + 50
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-4770
SELECT 63 AS col2, 4 DIV - 5 col1
----
63
0

skipif mysql # not compatible
query II rowsort label-4770
SELECT 63 AS col2, 4 / - 5 col1
----
63
0

query I rowsort
SELECT + 9 * + 32
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - NULLIF ( + 10, - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-4772
SELECT - NULLIF ( + 10, - COUNT ( * ) )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT ALL + 6 + - CAST( NULL AS SIGNED ) / ( CAST( - 10 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + 6 + - CAST ( NULL AS INTEGER ) / ( CAST ( - 10 AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT 71 AS col0, - 97
----
71
-97

query II rowsort
SELECT - 99 AS col1, 22
----
-99
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4776
SELECT + - 20 + + - CAST( - 65 AS SIGNED ) DIV + COUNT( * ) col0
----
45

skipif mysql # not compatible
query I rowsort label-4776
SELECT + - 20 + + - CAST ( - 65 AS INTEGER ) / + COUNT ( * ) col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT + CASE - - COUNT( * ) WHEN 61 THEN - ( + CAST( - 42 AS SIGNED ) ) WHEN - 39 THEN 65 WHEN - 42 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT + CASE - - COUNT ( * ) WHEN 61 THEN - ( + CAST ( - 42 AS INTEGER ) ) WHEN - 39 THEN 65 WHEN - 42 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 28 * - - 7 * - 89 + + ( COALESCE ( 46, - 79 ) )
----
-17398

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT - 12 + MIN( - 64 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT - 12 + MIN ( - 64 ) AS col2
----
-76

query I rowsort
SELECT DISTINCT - 32 + + COALESCE ( - + 71, - 27 + 7 ) - 29 * - 47 * 95 AS col0
----
129382

query II rowsort
SELECT DISTINCT + 36 AS col1, 77 * + 41
----
36
3157

query II rowsort
SELECT + + 23 AS col0, + 43
----
23
43

query I rowsort
SELECT + + 93 * + - 82 * + ( - 49 ) AS col0
----
373674

query II rowsort
SELECT + 6, 35 * + 24 AS col1
----
6
840

query I rowsort
SELECT + - 24 + - 71 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4786
SELECT - - 18 * NULLIF ( + 11, - COUNT( * ) ) DIV - 85 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4786
SELECT - - 18 * NULLIF ( + 11, - COUNT ( * ) ) / - 85 AS col2
----
-2

query I rowsort
SELECT DISTINCT + - ( + + 25 ) AS col1
----
-25

query II rowsort
SELECT ALL - 38 * 75 AS col1, 1 + 21 col1
----
-2850
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT + 25 DIV 90 - - 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4789
SELECT + 25 / 90 - - 10 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4790
SELECT DISTINCT + CAST( - MAX( + - CAST( - - 77 AS SIGNED ) ) AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT + CAST ( - MAX ( + - CAST ( - - 77 AS INTEGER ) ) AS INTEGER ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ( - NULLIF ( + + COUNT( * ), + COUNT( * ) + - SUM( DISTINCT + ( - 5 ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4791
SELECT ( - NULLIF ( + + COUNT ( * ), + COUNT ( * ) + - SUM ( DISTINCT + ( - 5 ) ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ( - COUNT( ALL - 42 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4792
SELECT ( - COUNT ( ALL - 42 ) )
----
-1

query I rowsort
SELECT DISTINCT + 21 * + 76
----
1596

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4794
SELECT - 93 * 44 AS col0, 33 * - CASE 43 WHEN 93 THEN + CAST( NULL AS SIGNED ) WHEN - 2 THEN 10 + 21 ELSE NULL END
----
-4092
NULL

skipif mysql # not compatible
query II rowsort label-4794
SELECT - 93 * 44 AS col0, 33 * - CASE 43 WHEN 93 THEN + CAST ( NULL AS INTEGER ) WHEN - 2 THEN 10 + 21 ELSE NULL END
----
-4092
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT ALL + COUNT( 15 ), - 55 - + + COUNT( * ) col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-4795
SELECT ALL + COUNT ( 15 ), - 55 - + + COUNT ( * ) col1
----
1
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 86 + + NULLIF ( 94, - COALESCE ( 19, - COALESCE ( + 24, 85, MAX( - 70 ) - 82 * COUNT( 60 ) ) * + ( MIN( + 6 ) / COUNT( * ) ) ) * - 56 + COUNT( 30 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 86 + + NULLIF ( 94, - COALESCE ( 19, - COALESCE ( + 24, 85, MAX ( - 70 ) - 82 * COUNT ( 60 ) ) * + ( MIN ( + 6 ) / COUNT ( * ) ) ) * - 56 + COUNT ( 30 ) ) )
----
NULL

query I rowsort
SELECT - 80 - + ( 87 ) AS col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL + COUNT( * ) * + 34 + - COUNT( * ) + 66 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + COUNT ( * ) * + 34 + - COUNT ( * ) + 66 AS col2
----
99

query I rowsort
SELECT - 57 * - 3 AS col1
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT DISTINCT + CAST( - ( - COUNT( * ) ) AS SIGNED ) + - - ( - 81 ) + - 61 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + - - ( - 81 ) + - 61 AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL - COUNT( * ) + 54 + + 27 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - COUNT ( * ) + 54 + + 27 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT COUNT( * ) * + 94
----
94

skipif mysql # not compatible
query I rowsort label-4802
SELECT COUNT ( * ) * + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - ( 49 ) + - 13 + 40 * 72 * + MAX( 26 - ( - 79 + 75 ) * 61 )
----
777538

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - ( 49 ) + - 13 + 40 * 72 * + MAX ( 26 - ( - 79 + 75 ) * 61 )
----
777538

query I rowsort
SELECT 74 - 0
----
74

query I rowsort
SELECT 77 + + 98
----
175

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4806
SELECT ALL + + 41 + - 90 * ( - - NULLIF ( - 59, + 97 * + CASE 52 WHEN + COUNT( * ) THEN NULL WHEN 77 THEN - ( - CAST( NULL AS DECIMAL ) ) WHEN - 93 THEN + 84 END - + 82 ) ) * 82 + + 45 * + 0 AS col2
----
435461

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + + 41 + - 90 * ( - - NULLIF ( - 59, + 97 * + CASE 52 WHEN + COUNT ( * ) THEN NULL WHEN 77 THEN - ( - CAST ( NULL AS REAL ) ) WHEN - 93 THEN + 84 END - + 82 ) ) * 82 + + 45 * + 0 AS col2
----
435461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT DISTINCT - CASE - - 50 WHEN 23 * - AVG ( ALL + CAST( 74 AS SIGNED ) ) - + CAST( 23 AS SIGNED ) * 69 THEN + 38 * + COUNT( * ) + - COUNT( * ) ELSE NULL END * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - CASE - - 50 WHEN 23 * - AVG ( ALL + CAST ( 74 AS INTEGER ) ) - + CAST ( 23 AS INTEGER ) * 69 THEN + 38 * + COUNT ( * ) + - COUNT ( * ) ELSE NULL END * 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - ( - + 34 ) + - ( + + COUNT( * ) ) col0
----
33

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - ( - + 34 ) + - ( + + COUNT ( * ) ) col0
----
33

query I rowsort
SELECT DISTINCT + + 99 + ( - 62 ) + 75 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT + COALESCE ( - COUNT( * ), 59 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + COALESCE ( - COUNT ( * ), 59 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + 52 + - COUNT( * ) * COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4811
SELECT + 52 + - COUNT ( * ) * COUNT ( * ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT COUNT( * ) + + - 96 + + + 71 * - 29 - 44 AS col0
----
-2198

skipif mysql # not compatible
query I rowsort label-4812
SELECT COUNT ( * ) + + - 96 + + + 71 * - 29 - 44 AS col0
----
-2198

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL MAX( - + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL MAX ( - + 97 )
----
-97

query I rowsort
SELECT + 79 + + 83 + 38 col2
----
200

query I rowsort
SELECT 56 * 76
----
4256

query I rowsort
SELECT 15 + + + 82 + + + 44 * 61 AS col1
----
2781

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT DISTINCT + ( - COUNT( * ) ) * + 29
----
-29

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + ( - COUNT ( * ) ) * + 29
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4818
SELECT ALL + + COUNT( DISTINCT 23 ) DIV + - COALESCE ( COUNT( * ), COUNT( * ) + - 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + + COUNT ( DISTINCT 23 ) / + - COALESCE ( COUNT ( * ), COUNT ( * ) + - 43 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 40 - + - 31
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT + - COUNT( * ) * - 18 - 51 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT + - COUNT ( * ) * - 18 - 51 AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT + 58 DIV - 39 + - - 37 * + 67
----
2478

skipif mysql # not compatible
query I rowsort label-4821
SELECT + 58 / - 39 + - - 37 * + 67
----
2478

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4822
SELECT DISTINCT 70 * - + CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT 70 * - + CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT + 21 / + MIN( 80 ) * CAST( NULL AS SIGNED ) * + + COUNT( * ) + CASE + 18 + + 16 WHEN - 54 * 82 + - 83 THEN 4 * - 42 + 54 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT + 21 / + MIN ( 80 ) * CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + CASE + 18 + + 16 WHEN - 54 * 82 + - 83 THEN 4 * - 42 + 54 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT COUNT( * ) * + ( + MIN( ALL - 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4824
SELECT COUNT ( * ) * + ( + MIN ( ALL - 58 ) )
----
-58

query I rowsort
SELECT - 39 * 31 - - 70
----
-1139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT CAST( NULL AS SIGNED ) * + 9 * - 47 + + ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT CAST ( NULL AS INTEGER ) * + 9 * - 47 + + ( 49 )
----
NULL

query I rowsort
SELECT - 14 * - 98 + + 40 + - ( - 95 ) + 32 AS col1
----
1539

query I rowsort
SELECT 29 * - + ( - 3 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT DISTINCT 28 + - MIN( ALL 64 )
----
-36

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT 28 + - MIN ( ALL 64 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL - COUNT( * ) + + + 80 * - - 10
----
799

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - COUNT ( * ) + + + 80 * - - 10
----
799

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT 10 + - - MIN( - 39 )
----
-29

skipif mysql # not compatible
query I rowsort label-4831
SELECT 10 + - - MIN ( - 39 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT ALL 63 + + + 47 DIV 16 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL 63 + + + 47 / 16 AS col1
----
65

query I rowsort
SELECT ( 6 ) + - 86 + - - 15 AS col1
----
-65

query I rowsort
SELECT DISTINCT CASE + 83 WHEN 12 THEN NULL ELSE - - 61 END * - 47
----
-2867

query I rowsort
SELECT ALL 15 + - 59 AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT 35 + 60 + + 62 DIV + - COUNT( ( - 93 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4836
SELECT 35 + 60 + + 62 / + - COUNT ( ( - 93 ) ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL - CASE - MIN( - 48 ) WHEN - - COUNT( * ) * + 86 + CAST( - 57 AS SIGNED ) THEN + CAST( NULL AS SIGNED ) WHEN - 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - CASE - MIN ( - 48 ) WHEN - - COUNT ( * ) * + 86 + CAST ( - 57 AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) WHEN - 63 THEN NULL END
----
NULL

query II rowsort
SELECT - 35, 48 col2
----
-35
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL + COUNT( * ) * 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + COUNT ( * ) * 96 AS col0
----
96

query I rowsort
SELECT DISTINCT 88 - 92 AS col0
----
-4

query I rowsort
SELECT ALL CASE + - 89 WHEN 58 THEN NULL ELSE ( + 60 ) * 51 END AS col2
----
3060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4842
SELECT DISTINCT + - CASE - 52 WHEN + 42 + - + 80 + CAST( - 75 AS SIGNED ) * 65 THEN NULL ELSE - 32 * 31 END - - 19 AS col1
----
1011

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + - CASE - 52 WHEN + 42 + - + 80 + CAST ( - 75 AS INTEGER ) * 65 THEN NULL ELSE - 32 * 31 END - - 19 AS col1
----
1011

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT MAX( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT MAX ( + 43 )
----
43

query I rowsort
SELECT - 59 * - 52
----
3068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT - + 97 DIV COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - + 97 / COUNT ( * )
----
-97

query I rowsort
SELECT 48 - + 56
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4847
SELECT DISTINCT + COUNT( * ) * - 18 DIV - COUNT( * ) col1, ( - 24 ) * 62
----
18
-1488

skipif mysql # not compatible
query II rowsort label-4847
SELECT DISTINCT + COUNT ( * ) * - 18 / - COUNT ( * ) col1, ( - 24 ) * 62
----
18
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - + COUNT( * ) * + - ( + 48 ) col0
----
48

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - + COUNT ( * ) * + - ( + 48 ) col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + 25 * - MAX( ALL 6 )
----
-150

skipif mysql # not compatible
query I rowsort label-4849
SELECT + 25 * - MAX ( ALL 6 )
----
-150

query I rowsort
SELECT 71 * - 46
----
-3266

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT - SUM( ALL 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT - SUM ( ALL 15 ) AS col2
----
-15

query I rowsort
SELECT ALL - ( 5 ) AS col1
----
-5

query II rowsort
SELECT - 69, 46 AS col2
----
-69
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4854
SELECT ALL - CAST( NULL AS SIGNED ), + 84 col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-4854
SELECT ALL - CAST ( NULL AS INTEGER ), + 84 col2
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT 75 * 46 * + CAST( NULL AS SIGNED ) * + ( - - 86 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT 75 * 46 * + CAST ( NULL AS INTEGER ) * + ( - - 86 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT 78 + COUNT( * ) - + - 83
----
162

skipif mysql # not compatible
query I rowsort label-4856
SELECT 78 + COUNT ( * ) - + - 83
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT NULLIF ( COUNT( ALL NULLIF ( + - 9, CAST( 23 AS SIGNED ) - 60 ) ), COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT NULLIF ( COUNT ( ALL NULLIF ( + - 9, CAST ( 23 AS INTEGER ) - 60 ) ), COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 23 * - 24
----
-552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL + ( + + 54 ) * - 49 + - + CAST( NULL AS SIGNED ) / + - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + ( + + 54 ) * - 49 + - + CAST ( NULL AS INTEGER ) / + - 20 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT 22 DIV + - 47 * + 51 + + 67 + + 27 - 68 + - 24 * - 22 col1
----
554

skipif mysql # not compatible
query I rowsort label-4860
SELECT 22 / + - 47 * + 51 + + 67 + + 27 - 68 + - 24 * - 22 col1
----
554

query I rowsort
SELECT ALL - 85 * + 75 * - 15
----
95625

query I rowsort
SELECT DISTINCT + ( 59 ) AS col0
----
59

query I rowsort
SELECT ALL - 72 * + 33 + - 7 - + 60
----
-2443

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - 21 - + - 31 + + 53 + COUNT( * ) * NULLIF ( + 30, 30 * + ( + NULLIF ( 30, - 15 * NULLIF ( + 48, - 40 ) ) ) ) * - 92 AS col0
----
-2697

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 21 - + - 31 + + 53 + COUNT ( * ) * NULLIF ( + 30, 30 * + ( + NULLIF ( 30, - 15 * NULLIF ( + 48, - 40 ) ) ) ) * - 92 AS col0
----
-2697

onlyif mysql # DIV for integer division: 
query I rowsort label-4865
SELECT + 3 DIV + ( - 93 ) * - 68
----
0

skipif mysql # not compatible
query I rowsort label-4865
SELECT + 3 / + ( - 93 ) * - 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT + CASE + 44 WHEN 14 + 73 + - 50 THEN + - 66 ELSE + CAST( 30 AS SIGNED ) END AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4866
SELECT + CASE + 44 WHEN 14 + 73 + - 50 THEN + - 66 ELSE + CAST ( 30 AS INTEGER ) END AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT + MAX( ALL + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4867
SELECT + MAX ( ALL + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT MAX( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4868
SELECT MAX ( - 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT DISTINCT ( + COALESCE ( - 33, + COUNT( * ) - 83 + + 52 DIV + 92 ) ) - 87 * 45
----
-3948

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT ( + COALESCE ( - 33, + COUNT ( * ) - 83 + + 52 / + 92 ) ) - 87 * 45
----
-3948

query I rowsort
SELECT DISTINCT - 94 - + + 16 AS col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + 36 * + + CASE + + COUNT( + 6 ) WHEN 75 THEN NULL ELSE - MIN( DISTINCT 10 ) * 91 END * - 99
----
3243240

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + 36 * + + CASE + + COUNT ( + 6 ) WHEN 75 THEN NULL ELSE - MIN ( DISTINCT 10 ) * 91 END * - 99
----
3243240

onlyif mysql # aggregate syntax: 
query II rowsort label-4872
SELECT DISTINCT + COUNT( * ) AS col1, + ( + 58 ) AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-4872
SELECT DISTINCT + COUNT ( * ) AS col1, + ( + 58 ) AS col2
----
1
58

query I rowsort
SELECT ALL + ( + 34 ) * - 8 + - + 94 AS col0
----
-366

query I rowsort
SELECT ALL 17 * + + 19 AS col0
----
323

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT + 87 + - + 84 + - + 23 DIV - + 51 * + - 98 + + + 70 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4875
SELECT + 87 + - + 84 + - + 23 / - + 51 * + - 98 + + + 70 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4876
SELECT - - 6 - - 66 DIV - COALESCE ( + ( - 81 ), - SUM( 74 ) + 13 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4876
SELECT - - 6 - - 66 / - COALESCE ( + ( - 81 ), - SUM ( 74 ) + 13 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT - COUNT( * ) AS col2, COUNT( * ) * - 16
----
-1
-16

skipif mysql # not compatible
query II rowsort label-4877
SELECT - COUNT ( * ) AS col2, COUNT ( * ) * - 16
----
-1
-16

query I rowsort
SELECT + - 36 + 17 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - + COUNT( + 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-4879
SELECT - + COUNT ( + 50 )
----
-1

query I rowsort
SELECT + + 62 + - 1 + - 52 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL NULLIF ( COUNT( * ), + 18 * - COUNT( * ) * + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL NULLIF ( COUNT ( * ), + 18 * - COUNT ( * ) * + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + 36 + + + 77 * SUM( ALL - 5 )
----
-349

skipif mysql # not compatible
query I rowsort label-4882
SELECT + 36 + + + 77 * SUM ( ALL - 5 )
----
-349

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - 50 + + - 40 + - + COUNT( * ) * - - 60 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 50 + + - 40 + - + COUNT ( * ) * - - 60 AS col1
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL - - CASE - 4 WHEN - 28 * COUNT( * ) THEN - + COUNT( * ) WHEN + + COUNT( DISTINCT - CAST( 15 AS SIGNED ) ) * + 51 THEN NULL WHEN + 64 + 15 THEN 43 END * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - - CASE - 4 WHEN - 28 * COUNT ( * ) THEN - + COUNT ( * ) WHEN + + COUNT ( DISTINCT - CAST ( 15 AS INTEGER ) ) * + 51 THEN NULL WHEN + 64 + 15 THEN 43 END * + 64
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4885
SELECT - 59 * + + COUNT( * ) + NULLIF ( - CAST( 40 AS SIGNED ), - 49 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 59 * + + COUNT ( * ) + NULLIF ( - CAST ( 40 AS INTEGER ), - 49 ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4886
SELECT - 77 + - 99 - + - CAST( NULL AS SIGNED ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT - 77 + - 99 - + - CAST ( NULL AS INTEGER ) + + 75
----
NULL

query I rowsort
SELECT ALL - + 27 + - 14 * - - 53
----
-769

query II rowsort
SELECT 57, + 5 AS col1
----
57
5

onlyif mysql # DIV for integer division: 
query II rowsort label-4889
SELECT + 11 DIV + 24 AS col1, 49 col2
----
0
49

skipif mysql # not compatible
query II rowsort label-4889
SELECT + 11 / + 24 AS col1, 49 col2
----
0
49

query I rowsort
SELECT - 76 + - 77 * 0 + + - ( + 46 )
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL + COUNT( * ) * + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + COUNT ( * ) * + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - 52 + + 36 * - MAX( - - 59 ) * 78
----
-165724

skipif mysql # not compatible
query I rowsort label-4892
SELECT - 52 + + 36 * - MAX ( - - 59 ) * 78
----
-165724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4893
SELECT ALL - CAST( 91 AS SIGNED ) DIV 63 * - 6 + + SUM( 14 ) DIV + + 97 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL - CAST ( 91 AS INTEGER ) / 63 * - 6 + + SUM ( 14 ) / + + 97 AS col2
----
6

query I rowsort
SELECT ALL - 17 * 3 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4895
SELECT DISTINCT 81 DIV 63 + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT 81 / 63 + + + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT ALL - 77 DIV - 22 + 78
----
81

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - 77 / - 22 + 78
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT - CAST( NULL AS SIGNED ) * + 74 - - - COUNT( * ) - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT - CAST ( NULL AS INTEGER ) * + 74 - - - COUNT ( * ) - + 17
----
NULL

query I rowsort
SELECT ( + CASE + + COALESCE ( + + 79, - 23 / - - 13 ) WHEN + 60 THEN - 76 - - 92 END )
----
NULL

query I rowsort
SELECT - 98 + - 47 * + + 60 * + - 50 + 63 * 54 + + - 13
----
144291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4900
SELECT ALL - ( + COUNT( * ) ) DIV 18 * + - 79
----
0

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - ( + COUNT ( * ) ) / 18 * + - 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4901
SELECT DISTINCT + CAST( 37 AS SIGNED ), ( - + SUM( + - 85 ) ) AS col1
----
37
85

skipif mysql # not compatible
query II rowsort label-4901
SELECT DISTINCT + CAST ( 37 AS INTEGER ), ( - + SUM ( + - 85 ) ) AS col1
----
37
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + MAX( DISTINCT - + 14 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-4902
SELECT + MAX ( DISTINCT - + 14 ) col2
----
-14

query I rowsort
SELECT DISTINCT + ( 25 )
----
25

query I rowsort
SELECT ALL - 55 * + 17 * - - 55 * - - 47
----
-2416975

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT DISTINCT + ( 27 ), 1 + SUM( DISTINCT - - 46 ) AS col0
----
27
47

skipif mysql # not compatible
query II rowsort label-4905
SELECT DISTINCT + ( 27 ), 1 + SUM ( DISTINCT - - 46 ) AS col0
----
27
47

query I rowsort
SELECT DISTINCT + ( 22 ) AS col2
----
22

query II rowsort
SELECT DISTINCT - ( 21 ) * + 47 * - 48 * 74 AS col0, 33
----
3505824
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL + + COUNT( + + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL + + COUNT ( + + 34 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT + CAST( NULL AS SIGNED ) * 88 * + CAST( AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT + CAST ( NULL AS INTEGER ) * 88 * + CAST ( AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT + ( COALESCE ( - ( - 80 ), - + 1 + 51 * - - 21 * 79 + 70 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + - 10 + + CASE - 67 WHEN - - COUNT( * ) THEN - - 57 ELSE 13 END
----
3

skipif mysql # not compatible
query I rowsort label-4911
SELECT + - 10 + + CASE - 67 WHEN - - COUNT ( * ) THEN - - 57 ELSE 13 END
----
3

query I rowsort
SELECT + NULLIF ( 94, + 31 * + 13 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT + 50 * COUNT( * ) + - 62 * + 93
----
-5716

skipif mysql # not compatible
query I rowsort label-4913
SELECT + 50 * COUNT ( * ) + - 62 * + 93
----
-5716

query I rowsort
SELECT + - 60 + 37 AS col1
----
-23

query I rowsort
SELECT + - 91 * + 81
----
-7371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT DISTINCT COALESCE ( + ( + 15 ), + COUNT( * ) * 83 + + - ( 20 ) ) * - 31 + CASE WHEN NOT - AVG ( + 92 ) IN ( 47 ) THEN NULLIF ( 70, SUM( 28 ) ) END DIV ( + 79 * - NULLIF ( - 18 * 17, - 17 ) + - 17 ) AS col1
----
-465

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT COALESCE ( + ( + 15 ), + COUNT ( * ) * 83 + + - ( 20 ) ) * - 31 + CASE WHEN NOT - AVG ( + 92 ) IN ( 47 ) THEN NULLIF ( 70, SUM ( 28 ) ) END / ( + 79 * - NULLIF ( - 18 * 17, - 17 ) + - 17 ) AS col1
----
-465

query I rowsort
SELECT ALL 78 + - 70
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + COUNT( * ) * - 55 - - 56
----
1

skipif mysql # not compatible
query I rowsort label-4918
SELECT + COUNT ( * ) * - 55 - - 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + + 39 - - 88 * 44 + COUNT( * )
----
3912

skipif mysql # not compatible
query I rowsort label-4919
SELECT + + 39 - - 88 * 44 + COUNT ( * )
----
3912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT - CAST( + + CAST( + CASE - 74 WHEN - + 92 * - COALESCE ( 46, MAX( - CAST( NULL AS SIGNED ) ) ) * + ( - ( + 97 ) * 78 ) - - 69 THEN - 19 END AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT - CAST ( + + CAST ( + CASE - 74 WHEN - + 92 * - COALESCE ( 46, MAX ( - CAST ( NULL AS INTEGER ) ) ) * + ( - ( + 97 ) * 78 ) - - 69 THEN - 19 END AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL CASE SUM( + 3 ) WHEN - + COUNT( * ) THEN ( - 28 ) + 37 ELSE 39 * + 31 + - 18 END AS col2
----
1191

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL CASE SUM ( + 3 ) WHEN - + COUNT ( * ) THEN ( - 28 ) + 37 ELSE 39 * + 31 + - 18 END AS col2
----
1191

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + - 64 * + NULLIF ( 21, COUNT( * ) + - 77 - 63 - - + 56 + - 70 * + 45 ) * 23 AS col0
----
-30912

skipif mysql # not compatible
query I rowsort label-4922
SELECT + - 64 * + NULLIF ( 21, COUNT ( * ) + - 77 - 63 - - + 56 + - 70 * + 45 ) * 23 AS col0
----
-30912

query I rowsort
SELECT - - ( + + 81 ) * 52
----
4212

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT - 93 DIV + 20 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4924
SELECT - 93 / + 20 AS col1
----
-4

query I rowsort
SELECT DISTINCT 0 + - 56
----
-56

query II rowsort
SELECT ALL 90, + 67 * + 23 AS col0
----
90
1541

query I rowsort
SELECT ALL - 58 + - ( - + 21 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT COUNT( * ) - + 28 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4928
SELECT COUNT ( * ) - + 28 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-4929
SELECT ALL 44, + 27 DIV - 71 AS col2
----
44
0

skipif mysql # not compatible
query II rowsort label-4929
SELECT ALL 44, + 27 / - 71 AS col2
----
44
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + AVG ( + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + AVG ( + 82 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT 22 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT 22 / + 50
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT 12 AS col2, ( - - COUNT( * ) ) AS col1
----
12
1

skipif mysql # not compatible
query II rowsort label-4932
SELECT 12 AS col2, ( - - COUNT ( * ) ) AS col1
----
12
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT ALL - 74 col1, MIN( DISTINCT + + 12 ) AS col0
----
-74
12

skipif mysql # not compatible
query II rowsort label-4933
SELECT ALL - 74 col1, MIN ( DISTINCT + + 12 ) AS col0
----
-74
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT + 12, - 5 * MAX( ALL 47 ) AS col2
----
12
-235

skipif mysql # not compatible
query II rowsort label-4934
SELECT + 12, - 5 * MAX ( ALL 47 ) AS col2
----
12
-235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4935
SELECT 13 * - 64 + ( + CAST( NULL AS SIGNED ) ) AS col2, COUNT( 61 ) + ( - + 39 ) AS col0
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-4935
SELECT 13 * - 64 + ( + CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( 61 ) + ( - + 39 ) AS col0
----
NULL
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4936
SELECT + COUNT( * ) DIV COUNT( * ) * - - 38 + + + COALESCE ( + - 51, + - 90 - - - 13 * + 26, + COUNT( * ) ) * - 4 AS col2
----
242

skipif mysql # not compatible
query I rowsort label-4936
SELECT + COUNT ( * ) / COUNT ( * ) * - - 38 + + + COALESCE ( + - 51, + - 90 - - - 13 * + 26, + COUNT ( * ) ) * - 4 AS col2
----
242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT ALL + CAST( NULL AS SIGNED ) * + 24 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + CAST ( NULL AS INTEGER ) * + 24 * 93
----
NULL

query I rowsort
SELECT ALL + 96 - 78 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT DISTINCT - ( + ( + + 31 ) ) * - + 89 + - 76 + 75 + - COALESCE ( 24, SUM( 77 ) * + 54 ) DIV - 88 * + 93 DIV ( MAX( - 24 ) ) AS col1
----
2758

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - ( + ( + + 31 ) ) * - + 89 + - 76 + 75 + - COALESCE ( 24, SUM ( 77 ) * + 54 ) / - 88 * + 93 / ( MAX ( - 24 ) ) AS col1
----
2758

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4940
SELECT - + 47 * 5 * + - CAST( NULL AS DECIMAL ) - + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT - + 47 * 5 * + - CAST ( NULL AS REAL ) - + - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT - 63 AS col2, - 74
----
-63
-74

query II rowsort
SELECT + + 89 AS col2, - 8 + + - 46 AS col0
----
89
-54

query I rowsort
SELECT - 96 * - 56 AS col2
----
5376

query I rowsort
SELECT + 5 - - - 26 AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT DISTINCT + + ( + 54 ) + - - 33 - - 2 * 31 DIV - - COUNT( DISTINCT 44 ) + - 41 DIV + 1
----
108

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + + ( + 54 ) + - - 33 - - 2 * 31 / - - COUNT ( DISTINCT 44 ) + - 41 / + 1
----
108

query I rowsort
SELECT ALL - - 23 + + 72 - - + 69 AS col1
----
164

query I rowsort
SELECT 15 * 29 AS col2
----
435

query I rowsort
SELECT DISTINCT - + 73 * - 3
----
219

query I rowsort
SELECT DISTINCT + + 10 * + 31 AS col2
----
310

query I rowsort
SELECT + 85 + 59
----
144

query I rowsort
SELECT - 55 - + 28
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4952
SELECT ALL - 99 + 47 * - ( 60 ), - CAST( - - 3 AS SIGNED ) col0
----
-2919
-3

skipif mysql # not compatible
query II rowsort label-4952
SELECT ALL - 99 + 47 * - ( 60 ), - CAST ( - - 3 AS INTEGER ) col0
----
-2919
-3

query I rowsort
SELECT - 12 + - 8 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT 84 * - COUNT( * ) * - 5
----
420

skipif mysql # not compatible
query I rowsort label-4954
SELECT 84 * - COUNT ( * ) * - 5
----
420

query I rowsort
SELECT ALL 51 + + + ( - 45 ) col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT ALL - COUNT( * ) AS col2, 19 AS col0
----
-1
19

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL - COUNT ( * ) AS col2, 19 AS col0
----
-1
19

query I rowsort
SELECT ALL + 62 + + 61 + 71 AS col2
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT NULLIF ( 61, NULLIF ( + 91, + - COUNT( * ) ) + - 43 + + 5 * - + 9 + 41 * + 14 ) + SUM( - COALESCE ( 10, - 78 * ( + 64 ) - - 56 ) ) * + COALESCE ( - 42 * + CAST( NULL AS SIGNED ), + 44 )
----
-379

skipif mysql # not compatible
query I rowsort label-4958
SELECT NULLIF ( 61, NULLIF ( + 91, + - COUNT ( * ) ) + - 43 + + 5 * - + 9 + 41 * + 14 ) + SUM ( - COALESCE ( 10, - 78 * ( + 64 ) - - 56 ) ) * + COALESCE ( - 42 * + CAST ( NULL AS INTEGER ), + 44 )
----
-379

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT MIN( - + 77 ) + - ( - - COUNT( * ) ) + - 57 + + 79 + - ( - + 30 ) * 48 col0
----
1384

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT MIN ( - + 77 ) + - ( - - COUNT ( * ) ) + - 57 + + 79 + - ( - + 30 ) * 48 col0
----
1384

query I rowsort
SELECT ALL 23 + - 45 * + + 60
----
-2677

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4961
SELECT CAST( NULL AS DECIMAL ) + + + NULLIF ( - 74, - + COALESCE ( - 88, - 82 ) + + + NULLIF ( + 44, - 3 ) ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT CAST ( NULL AS REAL ) + + + NULLIF ( - 74, - + COALESCE ( - 88, - 82 ) + + + NULLIF ( + 44, - 3 ) ) * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL CASE + ( + 8 ) WHEN - 57 THEN + ( + 71 ) WHEN + COUNT( * ) + + 39 THEN - 4 END - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL CASE + ( + 8 ) WHEN - 57 THEN + ( + 71 ) WHEN + COUNT ( * ) + + 39 THEN - 4 END - + 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4963
SELECT DISTINCT SUM( 71 ) * - 50 + ( 61 ) DIV + 96
----
-3550

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT SUM ( 71 ) * - 50 + ( 61 ) / + 96
----
-3550

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT COUNT( * ) * - + NULLIF ( + 79, + 58 )
----
-79

skipif mysql # not compatible
query I rowsort label-4964
SELECT COUNT ( * ) * - + NULLIF ( + 79, + 58 )
----
-79

query I rowsort
SELECT COALESCE ( + 0, ( - 23 ), + 54 * - 33 ) * + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL MIN( - 34 ) * - + 0 * 11
----
0

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL MIN ( - 34 ) * - + 0 * 11
----
0

query I rowsort
SELECT 48 + - 50 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL ( - - 83 ) - NULLIF ( + 79, 39 * - COUNT( * ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL ( - - 83 ) - NULLIF ( + 79, 39 * - COUNT ( * ) ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT COALESCE ( - 1, - 32 ) * - ( + COUNT( * ) ) * - CAST( - + 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4969
SELECT COALESCE ( - 1, - 32 ) * - ( + COUNT ( * ) ) * - CAST ( - + 36 AS INTEGER ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT ALL MIN( ALL 69 ) * 41 * 19 * NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), 64 )
----
53751

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL MIN ( ALL 69 ) * 41 * 19 * NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), 64 )
----
53751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT CAST( + - COUNT( * ) AS SIGNED ) * - + CASE CAST( NULL AS SIGNED ) WHEN - 48 / - - 6 THEN NULL WHEN + 89 THEN NULL ELSE 62 END
----
62

skipif mysql # not compatible
query I rowsort label-4971
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * - + CASE CAST ( NULL AS INTEGER ) WHEN - 48 / - - 6 THEN NULL WHEN + 89 THEN NULL ELSE 62 END
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + 82 * - ( COUNT( * ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + 82 * - ( COUNT ( * ) ) AS col0
----
-82

query I rowsort
SELECT ALL 83 * - 55 + - ( 15 ) + - ( + - 46 ) AS col2
----
-4534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4974
SELECT - 67 * 83 DIV - COUNT( ALL - + 24 ) - - CAST( + COUNT( * ) AS SIGNED ) - - 45 * + + 14 * - + 38
----
-18378

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 67 * 83 / - COUNT ( ALL - + 24 ) - - CAST ( + COUNT ( * ) AS INTEGER ) - - 45 * + + 14 * - + 38
----
-18378

query II rowsort
SELECT + 36 + 40 + 30 + - 30 col2, 59 + - 44 AS col0
----
76
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4976
SELECT COUNT( * ) * - + COUNT( * ) * + 42 + 72 * + CAST( + 96 AS SIGNED )
----
6870

skipif mysql # not compatible
query I rowsort label-4976
SELECT COUNT ( * ) * - + COUNT ( * ) * + 42 + 72 * + CAST ( + 96 AS INTEGER )
----
6870

query I rowsort
SELECT DISTINCT - CASE - 45 WHEN - 88 * - - 60 - + 70 - - ( 8 ) THEN - - 1 END AS col1
----
NULL

query I rowsort
SELECT + 3 + 67 * 92 col0
----
6167

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL - + ( + + COALESCE ( 98, + COUNT( * ) * + 78, 7 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - + ( + + COALESCE ( 98, + COUNT ( * ) * + 78, 7 ) ) AS col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT + CAST( NULL AS SIGNED ) + + + 87 * + + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT + CAST ( NULL AS INTEGER ) + + + 87 * + + 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT + COUNT( * ) + + - 62 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT + COUNT ( * ) + + - 62 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL + + 8 + - SUM( ALL - 35 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL + + 8 + - SUM ( ALL - 35 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT + 70 + - 19 * - 5 * CASE + + 79 WHEN + COUNT( * ) * + 83 + + 14 THEN NULL WHEN + - MIN( - 84 ) THEN NULL ELSE 88 END * - 99 AS col1
----
-827570

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + 70 + - 19 * - 5 * CASE + + 79 WHEN + COUNT ( * ) * + 83 + + 14 THEN NULL WHEN + - MIN ( - 84 ) THEN NULL ELSE 88 END * - 99 AS col1
----
-827570

query I rowsort
SELECT ALL + + 8 + 20 AS col1
----
28

query I rowsort
SELECT DISTINCT + 9 - - 5
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - 17 / + ( - CASE + 20 WHEN - - 76 - + - 17 * - + SUM( 50 ) + - 95 THEN - + 41 * + CASE + 1 / 41 + ( - MAX( 43 ) ) * - 96 WHEN 9 THEN NULL WHEN + 40 THEN - 68 ELSE NULL END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 17 / + ( - CASE + 20 WHEN - - 76 - + - 17 * - + SUM ( 50 ) + - 95 THEN - + 41 * + CASE + 1 / 41 + ( - MAX ( 43 ) ) * - 96 WHEN 9 THEN NULL WHEN + 40 THEN - 68 ELSE NULL END END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 58 - - 31
----
89

query II rowsort
SELECT ALL COALESCE ( 88, + - 51 ), + 6 AS col2
----
88
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4989
SELECT ALL + NULLIF ( + COALESCE ( 92, + 27 * + 87 + - COUNT( ALL - - CAST( NULL AS SIGNED ) ), - MAX( - 11 ) ), - 29 ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + NULLIF ( + COALESCE ( 92, + 27 * + 87 + - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ), - MAX ( - 11 ) ), - 29 ) * 0 AS col0
----
0

query I rowsort
SELECT - 81 - 25
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4991
SELECT + MIN( + - 74 ) DIV + 15 - - 2 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4991
SELECT + MIN ( + - 74 ) / + 15 - - 2 col2
----
-2

query I rowsort
SELECT - 99 * + 20
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - MIN( DISTINCT + 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4993
SELECT - MIN ( DISTINCT + 88 ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4994
SELECT + COUNT( ALL COALESCE ( + - 44, 78 / + 42 ) ) + - ( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT + COUNT ( ALL COALESCE ( + - 44, 78 / + 42 ) ) + - ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT - 51 DIV + 27 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4995
SELECT - 51 / + 27 AS col1
----
-1

query I rowsort
SELECT ALL COALESCE ( - 64, 92 + - 56 * + 60 ) col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT ALL CASE + - COUNT( * ) WHEN + 44 * + + 74 + + CAST( + + 96 AS SIGNED ) - 33 THEN NULL WHEN + + 29 * - + 76 THEN - CASE + ( COALESCE ( 67, - NULLIF ( 22, - 69 * - 58 ), + 42 + CASE 89 WHEN 72 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 35 THEN 32 ELSE 1 + 63 * + 12 END ) ) WHEN + 59 + - 32 THEN - COUNT( 40 ) ELSE NULL END + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL CASE + - COUNT ( * ) WHEN + 44 * + + 74 + + CAST ( + + 96 AS INTEGER ) - 33 THEN NULL WHEN + + 29 * - + 76 THEN - CASE + ( COALESCE ( 67, - NULLIF ( 22, - 69 * - 58 ), + 42 + CASE 89 WHEN 72 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 35 THEN 32 ELSE 1 + 63 * + 12 END ) ) WHEN + 59 + - 32 THEN - COUNT ( 40 ) ELSE NULL END + 65 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT DISTINCT COALESCE ( - 38, + + SUM( ALL + 12 ) * + CAST( NULL AS SIGNED ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT COALESCE ( - 38, + + SUM ( ALL + 12 ) * + CAST ( NULL AS INTEGER ) ) AS col2
----
-38

query I rowsort
SELECT DISTINCT ( + 86 ) col0
----
86

query I rowsort
SELECT ALL ( + 37 ) AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT DISTINCT ( + - CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT ( + - CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

query II rowsort
SELECT - 73, 1 AS col0
----
-73
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT ALL CAST( NULL AS SIGNED ) * - + 52 * - CAST( - - 72 AS SIGNED ) * 60 * - - ( - MIN( + 73 ) ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL CAST ( NULL AS INTEGER ) * - + 52 * - CAST ( - - 72 AS INTEGER ) * 60 * - - ( - MIN ( + 73 ) ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT + COALESCE ( - 53, 36 * + 65 * - + 4, + 65 DIV + 45 - - 97 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5004
SELECT + COALESCE ( - 53, 36 * + 65 * - + 4, + 65 / + 45 - - 97 ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5005
SELECT + 42 DIV 28 * NULLIF ( 6, + 98 + COUNT( DISTINCT - 60 ) ) - + 64 AS col0, + 64 + - + COUNT( * )
----
-58
63

skipif mysql # not compatible
query II rowsort label-5005
SELECT + 42 / 28 * NULLIF ( 6, + 98 + COUNT ( DISTINCT - 60 ) ) - + 64 AS col0, + 64 + - + COUNT ( * )
----
-58
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + + CASE - + 60 WHEN - 9 THEN NULL ELSE - 33 * + 22 * - - NULLIF ( - MIN( ALL - - 54 ), - 38 ) + + 92 END * 34 AS col1
----
1336064

skipif mysql # not compatible
query I rowsort label-5006
SELECT + + CASE - + 60 WHEN - 9 THEN NULL ELSE - 33 * + 22 * - - NULLIF ( - MIN ( ALL - - 54 ), - 38 ) + + 92 END * 34 AS col1
----
1336064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT + 44 / + - ( - + 79 ) * - 62 + CAST( - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) + - ( - + 19 ) + + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT + 44 / + - ( - + 79 ) * - 62 + CAST ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) + - ( - + 19 ) + + - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL - COUNT( DISTINCT - 96 ) * + 63 + + 42 + 66 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - COUNT ( DISTINCT - 96 ) * + 63 + + 42 + 66 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT 31 * + + 13 + - 94 + 60 DIV - COUNT( * )
----
249

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT 31 * + + 13 + - 94 + 60 / - COUNT ( * )
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - CASE + CASE 67 WHEN 93 THEN 71 + - NULLIF ( NULLIF ( - 43, 95 ), 31 ) * + 91 END WHEN 15 THEN - 11 ELSE + ( MAX( + 11 ) ) END * - 98 + - 42 * 26 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - CASE + CASE 67 WHEN 93 THEN 71 + - NULLIF ( NULLIF ( - 43, 95 ), 31 ) * + 91 END WHEN 15 THEN - 11 ELSE + ( MAX ( + 11 ) ) END * - 98 + - 42 * 26 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT + 87 * + CASE - 94 WHEN + 26 + + 52 THEN - COUNT( * ) * + + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT + 87 * + CASE - 94 WHEN + 26 + + 52 THEN - COUNT ( * ) * + + 34 END AS col1
----
NULL

query II rowsort
SELECT ALL + 65 AS col1, + 63
----
65
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT + COUNT( * ) - + NULLIF ( - - SUM( + + 64 ), + NULLIF ( SUM( ALL + + 84 ), - - 37 - + 90 * - MIN( - 23 ) ) )
----
-63

skipif mysql # not compatible
query I rowsort label-5013
SELECT + COUNT ( * ) - + NULLIF ( - - SUM ( + + 64 ), + NULLIF ( SUM ( ALL + + 84 ), - - 37 - + 90 * - MIN ( - 23 ) ) )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL 56 * - + 43 - + CASE - 92 WHEN + - 17 THEN - AVG ( - 92 ) * NULLIF ( CAST( NULL AS SIGNED ), + ( - CASE ( 2 ) WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN NULLIF ( COUNT( * ), 67 ) + 21 THEN - NULLIF ( + 59, CASE + 59 WHEN 87 - 64 * 92 THEN 16 / 22 WHEN + NULLIF ( COUNT( * ), - 91 ) + + 14 THEN 47 WHEN 20 THEN - 33 ELSE COUNT( * ) * COALESCE ( 57, 2, - COUNT( DISTINCT - 13 ) ) END + NULLIF ( + 70, 17 + COUNT( * ) ) ) END ) ) / + 92 ELSE NULL END + + ( - COUNT( * ) + - COUNT( * ) ) / + 38 + 44 * ( + CASE 72 WHEN - 76 THEN 13 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL 56 * - + 43 - + CASE - 92 WHEN + - 17 THEN - AVG ( - 92 ) * NULLIF ( CAST ( NULL AS INTEGER ), + ( - CASE ( 2 ) WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN NULLIF ( COUNT ( * ), 67 ) + 21 THEN - NULLIF ( + 59, CASE + 59 WHEN 87 - 64 * 92 THEN 16 / 22 WHEN + NULLIF ( COUNT ( * ), - 91 ) + + 14 THEN 47 WHEN 20 THEN - 33 ELSE COUNT ( * ) * COALESCE ( 57, 2, - COUNT ( DISTINCT - 13 ) ) END + NULLIF ( + 70, 17 + COUNT ( * ) ) ) END ) ) / + 92 ELSE NULL END + + ( - COUNT ( * ) + - COUNT ( * ) ) / + 38 + 44 * ( + CASE 72 WHEN - 76 THEN 13 END )
----
NULL

query I rowsort
SELECT + + 21 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT + 90 - + 20 * - + 9 * COALESCE ( - COUNT( * ), - 11, - 1 )
----
-90

skipif mysql # not compatible
query I rowsort label-5016
SELECT + 90 - + 20 * - + 9 * COALESCE ( - COUNT ( * ), - 11, - 1 )
----
-90

query I rowsort
SELECT ALL + + ( 4 ) AS col0
----
4

query I rowsort
SELECT ALL 73 * + - 99
----
-7227

query II rowsort
SELECT ALL + - 47, 67 AS col2
----
-47
67

query I rowsort
SELECT - 84 * 50 + - ( + 94 ) AS col2
----
-4294

query I rowsort
SELECT ALL 76 * - + ( - 81 ) - - 54 AS col2
----
6210

query II rowsort
SELECT DISTINCT 1 col1, - 94 AS col0
----
1
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5023
SELECT + CAST( NULL AS SIGNED ) + - 89 - + - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT + CAST ( NULL AS INTEGER ) + - 89 - + - 74 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 43, - - ( + 29 ) + - - 75 + + 64 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT + 82 + + 70 - - - 85 + - 0 - - 70 * + CAST( NULL AS SIGNED ) * 31 * - COUNT( * ) * 30 * 80 * 46 * - SUM( DISTINCT + 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT + 82 + + 70 - - - 85 + - 0 - - 70 * + CAST ( NULL AS INTEGER ) * 31 * - COUNT ( * ) * 30 * 80 * 46 * - SUM ( DISTINCT + 74 )
----
NULL

query II rowsort
SELECT - 87 - - + 65, 88 * 21 AS col2
----
-22
1848

query I rowsort
SELECT - 75 * + - 90 AS col2
----
6750

query II rowsort
SELECT DISTINCT - 9 * - 41 AS col2, + 62
----
369
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT ALL CAST( + 58 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL CAST ( + 58 AS INTEGER ) AS col2
----
58

query I rowsort
SELECT - 45 * - 89 * - + 44 AS col1
----
-176220

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT - COUNT( * ) + 85 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5031
SELECT - COUNT ( * ) + 85 + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT - ( - - 1 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT - ( - - 1 ) * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT - COUNT( * ) AS col1, SUM( + + ( 74 ) )
----
-1
74

skipif mysql # not compatible
query II rowsort label-5033
SELECT - COUNT ( * ) AS col1, SUM ( + + ( 74 ) )
----
-1
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT - 9 + + ( + + 0 ) * - - 44 DIV + 29 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 9 + + ( + + 0 ) * - - 44 / + 29 AS col0
----
-9

query II rowsort
SELECT 52 col1, 47 * 23 * 71 AS col2
----
52
76751

query I rowsort
SELECT DISTINCT + 19 + + 21 + - 47 * 27 col1
----
-1229

onlyif mysql # DIV for integer division: 
query II rowsort label-5037
SELECT + 67 DIV - 29 AS col1, ( + - 97 ) * + - 34
----
-2
3298

skipif mysql # not compatible
query II rowsort label-5037
SELECT + 67 / - 29 AS col1, ( + - 97 ) * + - 34
----
-2
3298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT DISTINCT + ( 0 ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + ( 0 ) / - COUNT ( * )
----
0

query I rowsort
SELECT - 58 + + - 29 AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + ( - 3 ) + - 52 + ( 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + ( - 3 ) + - 52 + ( 64 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT ALL - 27 DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL - 27 / 50 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5042
SELECT ALL + 19 / - + MIN( ALL - ( + ( 84 ) ) ) / - 73 + + - CAST( NULL AS DECIMAL ) + + 83 + 44 + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL + 19 / - + MIN ( ALL - ( + ( 84 ) ) ) / - 73 + + - CAST ( NULL AS REAL ) + + 83 + 44 + - 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT + 8 DIV + 66 + - ( ( SUM( - - 30 ) ) ) * 14 + - 33
----
-453

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 8 / + 66 + - ( ( SUM ( - - 30 ) ) ) * 14 + - 33
----
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + + COUNT( ALL - 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5044
SELECT + + COUNT ( ALL - 45 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5045
SELECT ALL + COALESCE ( 39, + CASE - SUM( + - 4 ) WHEN 73 + - - CASE 45 WHEN + 98 + COUNT( ALL - - 14 ) THEN NULL WHEN 93 DIV - CAST( 71 AS SIGNED ) + - ( + 71 ) THEN + 42 + - MIN( ALL + 35 + - 71 ) * - 69 ELSE NULL END + MIN( CAST( NULL AS SIGNED ) ) THEN NULL WHEN 57 - - 92 THEN NULL WHEN + COUNT( * ) + COUNT( * ) THEN NULL ELSE 24 DIV + 66 - + 30 END ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + COALESCE ( 39, + CASE - SUM ( + - 4 ) WHEN 73 + - - CASE 45 WHEN + 98 + COUNT ( ALL - - 14 ) THEN NULL WHEN 93 / - CAST ( 71 AS INTEGER ) + - ( + 71 ) THEN + 42 + - MIN ( ALL + 35 + - 71 ) * - 69 ELSE NULL END + MIN ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 57 - - 92 THEN NULL WHEN + COUNT ( * ) + COUNT ( * ) THEN NULL ELSE 24 / + 66 - + 30 END ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - + 55 + - - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-5046
SELECT - + 55 + - - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT - - 97 * + 19 - + + 78 + + - COALESCE ( 21, COUNT( 48 ) + 13 ) AS col0
----
1744

skipif mysql # not compatible
query I rowsort label-5047
SELECT - - 97 * + 19 - + + 78 + + - COALESCE ( 21, COUNT ( 48 ) + 13 ) AS col0
----
1744

query II rowsort
SELECT + 28, - 31 AS col0
----
28
-31

query I rowsort
SELECT + - 75 + + 87 + - 41
----
-29

query II rowsort
SELECT ALL + COALESCE ( - 67, - + NULLIF ( + 86, 38 ) - + 35 ), 94 * + 28 * - 9 AS col1
----
-67
-23688

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT + ( - COALESCE ( COALESCE ( - SUM( ALL + 22 ), + 96 * - 60 ), 50 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5051
SELECT + ( - COALESCE ( COALESCE ( - SUM ( ALL + 22 ), + 96 * - 60 ), 50 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT - 42 - 92 * 84 * + NULLIF ( - 98, - CASE - 11 WHEN 95 THEN - CASE - + 22 WHEN + - 36 + + COUNT( * ) THEN 36 WHEN COUNT( * ) * - 32 THEN 23 END + 76 WHEN + 12 THEN NULL WHEN 48 THEN NULL END * + 60 ) - COUNT( * )
----
757301

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - 42 - 92 * 84 * + NULLIF ( - 98, - CASE - 11 WHEN 95 THEN - CASE - + 22 WHEN + - 36 + + COUNT ( * ) THEN 36 WHEN COUNT ( * ) * - 32 THEN 23 END + 76 WHEN + 12 THEN NULL WHEN 48 THEN NULL END * + 60 ) - COUNT ( * )
----
757301

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT - CASE ( - - 47 ) WHEN - + COUNT( * ) + 27 THEN NULL WHEN - 95 THEN - + CASE - + 55 WHEN + 43 THEN NULL WHEN - - 67 * + 37 * - 22 THEN - 12 ELSE - ( - 74 ) * 58 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - CASE ( - - 47 ) WHEN - + COUNT ( * ) + 27 THEN NULL WHEN - 95 THEN - + CASE - + 55 WHEN + 43 THEN NULL WHEN - - 67 * + 37 * - 22 THEN - 12 ELSE - ( - 74 ) * 58 END END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5054
SELECT ALL - 82 AS col2, CAST( 60 AS SIGNED ) + 65 AS col1
----
-82
125

skipif mysql # not compatible
query II rowsort label-5054
SELECT ALL - 82 AS col2, CAST ( 60 AS INTEGER ) + 65 AS col1
----
-82
125

query I rowsort
SELECT - 57 * - 7 * 97 + + 69 AS col2
----
38772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5056
SELECT + NULLIF ( + 13, - 58 ) DIV - NULLIF ( + ( + ( + 27 ) ), - NULLIF ( 71, COUNT( 13 ) + - 66 * CASE - COALESCE ( - 44, - 4 ) * 92 WHEN - 82 * 79 THEN 92 DIV - 0 WHEN - 43 * + NULLIF ( 22, - MIN( - 41 ) ) THEN NULL WHEN ( CAST( + 29 AS SIGNED ) ) DIV 75 + 28 * - 15 THEN - 20 DIV + 59 + 72 END ) + + 72 ) DIV COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT + NULLIF ( + 13, - 58 ) / - NULLIF ( + ( + ( + 27 ) ), - NULLIF ( 71, COUNT ( 13 ) + - 66 * CASE - COALESCE ( - 44, - 4 ) * 92 WHEN - 82 * 79 THEN 92 / - 0 WHEN - 43 * + NULLIF ( 22, - MIN ( - 41 ) ) THEN NULL WHEN ( CAST ( + 29 AS INTEGER ) ) / 75 + 28 * - 15 THEN - 20 / + 59 + 72 END ) + + 72 ) / COUNT ( * ) AS col1
----
0

query II rowsort
SELECT + - 62, 99 col0
----
-62
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5058
SELECT ALL - COUNT( ALL - 40 ) AS col2, - 99 * - 96
----
-1
9504

skipif mysql # not compatible
query II rowsort label-5058
SELECT ALL - COUNT ( ALL - 40 ) AS col2, - 99 * - 96
----
-1
9504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5059
SELECT COUNT( * ) DIV + - COUNT( ALL 23 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5059
SELECT COUNT ( * ) / + - COUNT ( ALL 23 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5060
SELECT DISTINCT COUNT( 86 ) * + COUNT( * ) + CAST( NULL AS DECIMAL ) - 52 * - 97 + + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT COUNT ( 86 ) * + COUNT ( * ) + CAST ( NULL AS REAL ) - 52 * - 97 + + - 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5061
SELECT DISTINCT 99 DIV - 51, 16 * + COUNT( ALL - 84 ) AS col1
----
-1
16

skipif mysql # not compatible
query II rowsort label-5061
SELECT DISTINCT 99 / - 51, 16 * + COUNT ( ALL - 84 ) AS col1
----
-1
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT ALL COUNT( * ) * - + CASE + 21 WHEN + MIN( ALL + 46 ) + CAST( NULL AS SIGNED ) + - 32 / 2 THEN NULL WHEN - 19 THEN 15 * - 64 * - 88 WHEN 87 + 12 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL COUNT ( * ) * - + CASE + 21 WHEN + MIN ( ALL + 46 ) + CAST ( NULL AS INTEGER ) + - 32 / 2 THEN NULL WHEN - 19 THEN 15 * - 64 * - 88 WHEN 87 + 12 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT DISTINCT 92 * 77 DIV + 95 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT 92 * 77 / + 95 AS col2
----
74

query I rowsort
SELECT 54 * 52 AS col1
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT 27 + - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT 27 + - COUNT ( * ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5066
SELECT 37 - - COUNT( * ) * + 12 + AVG ( - 55 ) + 10 / + + 68 * + CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5066
SELECT 37 - - COUNT ( * ) * + 12 + AVG ( - 55 ) + 10 / + + 68 * + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT 44 * + + 37 AS col0
----
1628

query I rowsort
SELECT ( - 94 ) + + 89 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL ( - - 16 ) + + COUNT( * ) + - 28 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL ( - - 16 ) + + COUNT ( * ) + - 28 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + 24 + 26 * COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + 24 + 26 * COUNT ( * ) AS col2
----
50

query I rowsort
SELECT ALL + 6 + + + 72
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5072
SELECT DISTINCT - 98 DIV + 40, COUNT( * ) col0
----
-2
1

skipif mysql # not compatible
query II rowsort label-5072
SELECT DISTINCT - 98 / + 40, COUNT ( * ) col0
----
-2
1

query I rowsort
SELECT ALL - - 76 * - - 33 AS col1
----
2508

query I rowsort
SELECT ALL + - 14 + 68
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - 84 * 60 + MIN( ALL - + 69 ) + 29 - - - 85 * + 23 * 36
----
-75460

skipif mysql # not compatible
query I rowsort label-5075
SELECT - 84 * 60 + MIN ( ALL - + 69 ) + 29 - - - 85 * + 23 * 36
----
-75460

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT - COUNT( DISTINCT - CASE + 24 WHEN + 92 THEN 89 ELSE - + 54 END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - COUNT ( DISTINCT - CASE + 24 WHEN + 92 THEN 89 ELSE - + 54 END ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 34 - - 85 + - + 3 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT - + ( - SUM( - 10 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - + ( - SUM ( - 10 ) )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL - 49 DIV - 30 + 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL - 49 / - 30 + 32 AS col0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-5080
SELECT DISTINCT + + 59 DIV - + 14 AS col0, - 80 + - 39 + + + 6
----
-4
-113

skipif mysql # not compatible
query II rowsort label-5080
SELECT DISTINCT + + 59 / - + 14 AS col0, - 80 + - 39 + + + 6
----
-4
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-5081
SELECT - COUNT( * ) + - - 13 AS col2, - 40 AS col1
----
12
-40

skipif mysql # not compatible
query II rowsort label-5081
SELECT - COUNT ( * ) + - - 13 AS col2, - 40 AS col1
----
12
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT MIN( - 5 ) * + 36 + ( COUNT( * ) ) AS col2
----
-179

skipif mysql # not compatible
query I rowsort label-5082
SELECT MIN ( - 5 ) * + 36 + ( COUNT ( * ) ) AS col2
----
-179

query I rowsort
SELECT + 12 * 71 AS col0
----
852

query I rowsort
SELECT NULLIF ( 90, AVG ( - 93 ) )
----
90

query I rowsort
SELECT ALL 91 * + - 34 * + + 60 AS col2
----
-185640

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT - + 63 * 99 DIV - 45 + 96 + 83 AS col1
----
317

skipif mysql # not compatible
query I rowsort label-5086
SELECT - + 63 * 99 / - 45 + 96 + 83 AS col1
----
317

query I rowsort
SELECT 22 * + 46 AS col2
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL - 36 * COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - 36 * COUNT ( * ) AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT DISTINCT - CAST( + + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - CAST ( + + 15 AS INTEGER )
----
-15

query I rowsort
SELECT ALL 22 + - 92 AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( + 19 AS SIGNED ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( + 19 AS INTEGER ) * 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT ALL - 18, - COUNT( * ) + NULLIF ( - SUM( - 73 ), - 22 * 16 ) AS col2
----
-18
72

skipif mysql # not compatible
query II rowsort label-5092
SELECT ALL - 18, - COUNT ( * ) + NULLIF ( - SUM ( - 73 ), - 22 * 16 ) AS col2
----
-18
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + MIN( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-5093
SELECT + MIN ( - 44 )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT DISTINCT COALESCE ( 63, - ( - - 88 ) * ( + 24 ) DIV + CASE - + 5 WHEN AVG ( + 5 ) THEN - + 22 * - 97 * 79 + 28 ELSE NULL END * 21, 39 ) + + 47 * 55 AS col1
----
2648

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT COALESCE ( 63, - ( - - 88 ) * ( + 24 ) / + CASE - + 5 WHEN AVG ( + 5 ) THEN - + 22 * - 97 * 79 + 28 ELSE NULL END * 21, 39 ) + + 47 * 55 AS col1
----
2648

query I rowsort
SELECT ALL 86 + - 98
----
-12

query I rowsort
SELECT DISTINCT 21 + + 2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT ALL 80 DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL 80 / - 48
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT 82 - + CAST( - 21 AS SIGNED )
----
103

skipif mysql # not compatible
query I rowsort label-5098
SELECT 82 - + CAST ( - 21 AS INTEGER )
----
103

query I rowsort
SELECT DISTINCT 15 * + 53 AS col2
----
795

query I rowsort
SELECT CASE - 41 WHEN - - 5 * - 74 + - 72 THEN 84 * + 59 - - 9 + + - 59 ELSE NULL END + 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL 33 + + + COUNT( DISTINCT + - 50 ) + - 15 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL 33 + + + COUNT ( DISTINCT + - 50 ) + - 15 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5102
SELECT ALL ( + NULLIF ( - 92, - 84 ) ) DIV - COALESCE ( ( - 94 ), CAST( NULL AS SIGNED ) ) - + 10 + + - COUNT( * ) + + ( - 74 )
----
-85

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL ( + NULLIF ( - 92, - 84 ) ) / - COALESCE ( ( - 94 ), CAST ( NULL AS INTEGER ) ) - + 10 + + - COUNT ( * ) + + ( - 74 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - 74 + - 75 + + CASE - 10 WHEN + 92 * + + 74 THEN NULL ELSE 86 + 4 + + + COUNT( * ) END * COUNT( * ) + - + 53 col1
----
-111

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - 74 + - 75 + + CASE - 10 WHEN + 92 * + + 74 THEN NULL ELSE 86 + 4 + + + COUNT ( * ) END * COUNT ( * ) + - + 53 col1
----
-111

query I rowsort
SELECT 72 + - 4
----
68

query I rowsort
SELECT DISTINCT 38 + + 13
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5106
SELECT ALL + 2 DIV - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + 2 / - COUNT ( * ) col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5107
SELECT ALL - 36 - + 36 * + - NULLIF ( + COALESCE ( + 13, - 52 - CAST( + 92 AS SIGNED ) ), 80 + - 60 - - 49 ), 20 AS col1
----
432
20

skipif mysql # not compatible
query II rowsort label-5107
SELECT ALL - 36 - + 36 * + - NULLIF ( + COALESCE ( + 13, - 52 - CAST ( + 92 AS INTEGER ) ), 80 + - 60 - - 49 ), 20 AS col1
----
432
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT CASE + 89 WHEN - 58 * + - 70 - - COUNT( * ) THEN + 9 * + + 55 * - CASE - - 65 WHEN - + 92 - 68 THEN NULL WHEN 82 THEN + 2 + + 90 END + + 70 + 76 ELSE NULL END * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT CASE + 89 WHEN - 58 * + - 70 - - COUNT ( * ) THEN + 9 * + + 55 * - CASE - - 65 WHEN - + 92 - 68 THEN NULL WHEN 82 THEN + 2 + + 90 END + + 70 + 76 ELSE NULL END * - 32 AS col2
----
NULL

query II rowsort
SELECT - + 7, + 66 AS col0
----
-7
66

query I rowsort
SELECT - 20 + 96
----
76

query II rowsort
SELECT - ( - 58 ) + - - 33 AS col1, 3 AS col0
----
91
3

query I rowsort
SELECT ALL - ( + + 83 ) - + 78 AS col1
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - + COALESCE ( - MAX( 46 ), - 72 ) * + + 11 AS col0
----
506

skipif mysql # not compatible
query I rowsort label-5113
SELECT - + COALESCE ( - MAX ( 46 ), - 72 ) * + + 11 AS col0
----
506

onlyif mysql # aggregate syntax: 
query II rowsort label-5114
SELECT DISTINCT + - 35 AS col1, 1 * + NULLIF ( 27, MAX( - - 7 ) ) * + 53 * + + 38 AS col0
----
-35
54378

skipif mysql # not compatible
query II rowsort label-5114
SELECT DISTINCT + - 35 AS col1, 1 * + NULLIF ( 27, MAX ( - - 7 ) ) * + 53 * + + 38 AS col0
----
-35
54378

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT + - 54 DIV + + ( + 60 ) * 77 * - 22 col0
----
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT + - 54 / + + ( + 60 ) * 77 * - 22 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - COUNT( * ) + + 40 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5116
SELECT - COUNT ( * ) + + 40 AS col0
----
39

query I rowsort
SELECT DISTINCT + + 57 * 1
----
57

query II rowsort
SELECT ALL + 89 col2, 17 AS col0
----
89
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT - - 57 + - 1 * - 77 DIV COUNT( * ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-5119
SELECT - - 57 + - 1 * - 77 / COUNT ( * ) AS col2
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5120
SELECT - COUNT( ALL - - 6 ) DIV - ( + - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT - COUNT ( ALL - - 6 ) / - ( + - 52 )
----
0

query I rowsort
SELECT ALL - 9 * - ( 10 ) + + - ( ( + 16 ) ) col2
----
74

query I rowsort
SELECT ALL - 93 * 15 * - 22 + - CASE - + 98 WHEN 17 THEN NULL WHEN + - 24 THEN NULL ELSE - + 7 END
----
30697

query I rowsort
SELECT - 81 * 39 AS col1
----
-3159

query I rowsort
SELECT ALL + 43 * + 12 + + + ( 13 )
----
529

query I rowsort
SELECT ALL + 78 * 28
----
2184

query I rowsort
SELECT - 45 * - 95
----
4275

query I rowsort
SELECT DISTINCT 74 * - + 84
----
-6216

query I rowsort
SELECT ALL 33 + + 60
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT ALL COALESCE ( + 77, + 17 DIV - COALESCE ( - 50, + ( + 19 ) + + NULLIF ( + - ( - 60 ), - + MAX( ALL - 97 ) ) ) * + - 88 + COALESCE ( + 52, 91 * - 90 ) )
----
77

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL COALESCE ( + 77, + 17 / - COALESCE ( - 50, + ( + 19 ) + + NULLIF ( + - ( - 60 ), - + MAX ( ALL - 97 ) ) ) * + - 88 + COALESCE ( + 52, 91 * - 90 ) )
----
77

query I rowsort
SELECT ALL + 79 * + 34
----
2686

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT DISTINCT + 61 * 16 DIV - 50 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + 61 * 16 / - 50 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT ALL - 6 - ( - CAST( + MIN( DISTINCT + + 73 ) AS SIGNED ) ) + + 83
----
150

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - 6 - ( - CAST ( + MIN ( DISTINCT + + 73 ) AS INTEGER ) ) + + 83
----
150

query I rowsort
SELECT ALL 73 - ( - + 57 ) AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5134
SELECT + CAST( - 44 AS SIGNED ) * - - 4 + + COUNT( * ) + + MAX( ALL 32 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-5134
SELECT + CAST ( - 44 AS INTEGER ) * - - 4 + + COUNT ( * ) + + MAX ( ALL 32 ) AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - + COUNT( + 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5135
SELECT - + COUNT ( + 12 ) AS col0
----
-1

query I rowsort
SELECT + - 93 * - 78 * 10 AS col1
----
72540

query I rowsort
SELECT ALL 57 * - 89 * - - 33 AS col1
----
-167409

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT - 55 * + - COALESCE ( MIN( DISTINCT 89 ), + - 62 ) AS col0
----
4895

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - 55 * + - COALESCE ( MIN ( DISTINCT 89 ), + - 62 ) AS col0
----
4895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT + - 44 - CAST( + ( - CASE - - NULLIF ( - + 36, - COUNT( * ) * + 51 * + MIN( + + 86 ) + - 81 + NULLIF ( + 85, + 69 * - 4 ) + - ( - 45 ) * 14 ) WHEN - 37 + 97 THEN 94 * - 23 WHEN + COUNT( * ) THEN + 58 ELSE + 80 END ) AS SIGNED ) + - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5139
SELECT + - 44 - CAST ( + ( - CASE - - NULLIF ( - + 36, - COUNT ( * ) * + 51 * + MIN ( + + 86 ) + - 81 + NULLIF ( + 85, + 69 * - 4 ) + - ( - 45 ) * 14 ) WHEN - 37 + 97 THEN 94 * - 23 WHEN + COUNT ( * ) THEN + 58 ELSE + 80 END ) AS INTEGER ) + - COUNT ( * ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5140
SELECT ALL 23 * CAST( NULL AS SIGNED ) * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL 23 * CAST ( NULL AS INTEGER ) * + 69
----
NULL

query I rowsort
SELECT ALL 28 * + - 38 AS col1
----
-1064

query I rowsort
SELECT + 97 * - - 67
----
6499

onlyif mysql # aggregate syntax: 
query II rowsort label-5143
SELECT + 67 * - + 96, 28 * - COALESCE ( COUNT( * ), + + CASE + 35 WHEN - CASE - 33 WHEN 15 THEN ( + + 25 ) WHEN - COUNT( * ) THEN NULL END * - + 71 THEN - 52 * COUNT( * ) END + 99, ( - 78 ) ) AS col0
----
-6432
-28

skipif mysql # not compatible
query II rowsort label-5143
SELECT + 67 * - + 96, 28 * - COALESCE ( COUNT ( * ), + + CASE + 35 WHEN - CASE - 33 WHEN 15 THEN ( + + 25 ) WHEN - COUNT ( * ) THEN NULL END * - + 71 THEN - 52 * COUNT ( * ) END + 99, ( - 78 ) ) AS col0
----
-6432
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL + COALESCE ( COUNT( 93 ), 13, + + 68 * - - COALESCE ( 17, + - 67 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + COALESCE ( COUNT ( 93 ), 13, + + 68 * - - COALESCE ( 17, + - 67 ) )
----
1

query II rowsort
SELECT + 25 + - 3, - 71 AS col1
----
22
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5146
SELECT - + 86 * 85 DIV 46 - SUM( + - 10 ) + - 54
----
-202

skipif mysql # not compatible
query I rowsort label-5146
SELECT - + 86 * 85 / 46 - SUM ( + - 10 ) + - 54
----
-202

query I rowsort
SELECT ALL + + ( + 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT ALL - 83 DIV + COUNT( DISTINCT + 99 ) + - - 66 + + - 36
----
-53

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - 83 / + COUNT ( DISTINCT + 99 ) + - - 66 + + - 36
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT + 47 DIV - 52 + 82 + + - 14 * - COALESCE ( + 72, + 36 * - + COALESCE ( - + 55, - + 21 - - + NULLIF ( 7, 31 ) + - 46 ) * 34 ) + + 45 AS col2
----
1135

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 47 / - 52 + 82 + + - 14 * - COALESCE ( + 72, + 36 * - + COALESCE ( - + 55, - + 21 - - + NULLIF ( 7, 31 ) + - 46 ) * 34 ) + + 45 AS col2
----
1135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5150
SELECT ALL - 49 DIV + 1 + - 61 * + 97 * 82 + - COUNT( * ) + - 59 * - 53
----
-482117

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - 49 / + 1 + - 61 * + 97 * 82 + - COUNT ( * ) + - 59 * - 53
----
-482117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT + CAST( - + 84 AS SIGNED ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5151
SELECT + CAST ( - + 84 AS INTEGER ) AS col2
----
-84

query I rowsort
SELECT + 93 + 53
----
146

query I rowsort
SELECT DISTINCT + 64 * - 13
----
-832

query I rowsort
SELECT ( + - 58 ) AS col2
----
-58

query I rowsort
SELECT ALL + ( + 25 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT - 51 DIV + + 54
----
0

skipif mysql # not compatible
query I rowsort label-5156
SELECT - 51 / + + 54
----
0

query I rowsort
SELECT ALL 91 * 84 + + ( + - 19 ) AS col2
----
7625

query I rowsort
SELECT - 63 * + 76
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT 69 * - - 29 * - COALESCE ( + - 20, 91 - + 9, + 18 + CASE 44 WHEN 2 THEN NULL WHEN + - 1 THEN + 32 + - 93 WHEN - + MIN( DISTINCT 77 ) THEN NULL END + - 3 ) * - 46
----
-1840920

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT 69 * - - 29 * - COALESCE ( + - 20, 91 - + 9, + 18 + CASE 44 WHEN 2 THEN NULL WHEN + - 1 THEN + 32 + - 93 WHEN - + MIN ( DISTINCT 77 ) THEN NULL END + - 3 ) * - 46
----
-1840920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5160
SELECT - COUNT( * ) - + CAST( + 78 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-5160
SELECT - COUNT ( * ) - + CAST ( + 78 AS INTEGER )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5161
SELECT DISTINCT + COALESCE ( + COUNT( * ), ( + 39 ) DIV - + 90, - - 23 + 61 * - + 31 ), + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5161
SELECT DISTINCT + COALESCE ( + COUNT ( * ), ( + 39 ) / - + 90, - - 23 + 61 * - + 31 ), + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT ALL - 2 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - 2 / - 45
----
0

query I rowsort
SELECT + 22 * + ( - 56 ) + + 2 - + + ( + 27 )
----
-1257

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT - COUNT( * ) * + 22
----
-22

skipif mysql # not compatible
query I rowsort label-5164
SELECT - COUNT ( * ) * + 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + COUNT( + + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-5165
SELECT + COUNT ( + + 59 )
----
1

query I rowsort
SELECT - 68 + 55
----
-13

query II rowsort
SELECT - 79 + + 39 * - - 38, 50 * - 49 AS col2
----
1403
-2450

query I rowsort
SELECT NULLIF ( + 49, - 25 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5169
SELECT ALL CAST( NULL AS SIGNED ), + 42 * 41 / 22 + - - 23 + + CASE + - ( 84 ) WHEN - 50 THEN NULL WHEN 18 THEN + - 3 * - 64 END * + 92
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL CAST ( NULL AS INTEGER ), + 42 * 41 / 22 + - - 23 + + CASE + - ( 84 ) WHEN - 50 THEN NULL WHEN 18 THEN + - 3 * - 64 END * + 92
----
NULL
NULL

query I rowsort
SELECT + 61 - - 23 * - ( 11 )
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT 78 * - 90 DIV - COUNT( * ) * + COUNT( * ) AS col1
----
7020

skipif mysql # not compatible
query I rowsort label-5171
SELECT 78 * - 90 / - COUNT ( * ) * + COUNT ( * ) AS col1
----
7020

query I rowsort
SELECT CASE 28 WHEN - 88 - - 86 + + 87 * + - 88 THEN 3 WHEN 35 THEN NULL END + 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ( - 98 ) + + - MAX( - 56 )
----
-42

skipif mysql # not compatible
query I rowsort label-5173
SELECT ( - 98 ) + + - MAX ( - 56 )
----
-42

query I rowsort
SELECT ALL - + 94 - + 98 * + 60 * - 46
----
270386

onlyif mysql # aggregate syntax: 
query II rowsort label-5175
SELECT ALL - 53 * - 62 + - - 85 AS col0, COUNT( * ) AS col0
----
3371
1

skipif mysql # not compatible
query II rowsort label-5175
SELECT ALL - 53 * - 62 + - - 85 AS col0, COUNT ( * ) AS col0
----
3371
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT + - 65 * - - NULLIF ( COUNT( ALL - CASE - + 60 WHEN + + 38 THEN 91 ELSE - 37 END ), + 35 + - 20 - + 24 * - 80 * - 55 )
----
-65

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + - 65 * - - NULLIF ( COUNT ( ALL - CASE - + 60 WHEN + + 38 THEN 91 ELSE - 37 END ), + 35 + - 20 - + 24 * - 80 * - 55 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + MIN( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-5177
SELECT + MIN ( DISTINCT + 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL - MAX( 26 ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - MAX ( 26 ) col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT NULLIF ( - 18, ( - 69 ) ) + - + 63 DIV + 87
----
-18

skipif mysql # not compatible
query I rowsort label-5179
SELECT NULLIF ( - 18, ( - 69 ) ) + - + 63 / + 87
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT - MAX( + NULLIF ( - + 67, + 14 * - 45 ) ) AS col2, 64 + - + 63
----
67
1

skipif mysql # not compatible
query II rowsort label-5180
SELECT - MAX ( + NULLIF ( - + 67, + 14 * - 45 ) ) AS col2, 64 + - + 63
----
67
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5181
SELECT 13 * - - ( + 82 ) DIV - COUNT( ALL - COALESCE ( - - 40, - 19 ) ) + - + 97 + + 90 * COALESCE ( + - 95, - - NULLIF ( + - COUNT( + 22 ), 7 ) + + 62 ) + 25
----
-9688

skipif mysql # not compatible
query I rowsort label-5181
SELECT 13 * - - ( + 82 ) / - COUNT ( ALL - COALESCE ( - - 40, - 19 ) ) + - + 97 + + 90 * COALESCE ( + - 95, - - NULLIF ( + - COUNT ( + 22 ), 7 ) + + 62 ) + 25
----
-9688

query I rowsort
SELECT DISTINCT 57 + + 63
----
120

query I rowsort
SELECT ALL + 77 + 73 AS col1
----
150

query I rowsort
SELECT ALL 84 + + 28 col2
----
112

query I rowsort
SELECT 92 + 0 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5186
SELECT ALL + 49 + + 76 * 47 * + 28 * - NULLIF ( - 77, + NULLIF ( - NULLIF ( 84, + CASE + CAST( NULL AS SIGNED ) WHEN - + 74 THEN + 24 - + 35 * + MIN( DISTINCT 12 ) WHEN + 43 / - 70 THEN NULL ELSE NULL END * - NULLIF ( 36, 72 - 75 ) ), - ( 65 ) ) )
----
7701281

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + 49 + + 76 * 47 * + 28 * - NULLIF ( - 77, + NULLIF ( - NULLIF ( 84, + CASE + CAST ( NULL AS INTEGER ) WHEN - + 74 THEN + 24 - + 35 * + MIN ( DISTINCT 12 ) WHEN + 43 / - 70 THEN NULL ELSE NULL END * - NULLIF ( 36, 72 - 75 ) ), - ( 65 ) ) )
----
7701281

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT + NULLIF ( ( + COUNT( + + ( + 48 ) ) ), - 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5187
SELECT + NULLIF ( ( + COUNT ( + + ( + 48 ) ) ), - 52 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 4 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 4 * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ( - 19 ) * - 17 + 19 + + 14 * COUNT( DISTINCT - 65 )
----
356

skipif mysql # not compatible
query I rowsort label-5189
SELECT ( - 19 ) * - 17 + 19 + + 14 * COUNT ( DISTINCT - 65 )
----
356

query II rowsort
SELECT + 88 AS col1, ( + 84 ) * - 35 + 56 + 37 col0
----
88
-2847

onlyif mysql # DIV for integer division: 
query II rowsort label-5191
SELECT ALL - 2 col0, + 89 DIV + 63
----
-2
1

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL - 2 col0, + 89 / + 63
----
-2
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT + 0 DIV 59 + - - 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5192
SELECT + 0 / 59 + - - 41 AS col0
----
41

query II rowsort
SELECT 2, - 29 * - 86 + 90 AS col1
----
2
2584

query I rowsort
SELECT 83 + 20
----
103

query I rowsort
SELECT ALL 57 - + ( + - 61 )
----
118

query I rowsort
SELECT 63 * + 33 col0
----
2079

query I rowsort
SELECT CASE 86 WHEN + 42 THEN NULL WHEN AVG ( ALL + - 61 ) THEN + - 52 END + 7 AS col1
----
NULL

query I rowsort
SELECT ALL 21 - 5
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT ALL - COUNT( * ) * - COALESCE ( - + 58, + 10, + - 42, - 28 * + - MIN( - - CAST( + 98 AS SIGNED ) ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - COUNT ( * ) * - COALESCE ( - + 58, + 10, + - 42, - 28 * + - MIN ( - - CAST ( + 98 AS INTEGER ) ) ) AS col0
----
-58

query II rowsort
SELECT 1, + 60 AS col2
----
1
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT ALL 98 DIV 90 * - + ( - 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL 98 / 90 * - + ( - 80 ) AS col0
----
80

query I rowsort
SELECT 88 * 68 * + - NULLIF ( + + 79, + 26 )
----
-472736

query I rowsort
SELECT DISTINCT 15 * - COALESCE ( + + 11, - 82 ) AS col1
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT ALL - COUNT( * ) AS col1, 39 + - - 85 * - 74 + - - 29 col0
----
-1
-6222

skipif mysql # not compatible
query II rowsort label-5204
SELECT ALL - COUNT ( * ) AS col1, 39 + - - 85 * - 74 + - - 29 col0
----
-1
-6222

query I rowsort
SELECT ALL - 16 * + 61 AS col1
----
-976

query II rowsort
SELECT 88, - 91 AS col2
----
88
-91

query I rowsort
SELECT 17 + + 6
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-5208
SELECT DISTINCT - 56, 52 DIV 17 col2
----
-56
3

skipif mysql # not compatible
query II rowsort label-5208
SELECT DISTINCT - 56, 52 / 17 col2
----
-56
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL COUNT( DISTINCT 27 ) * - - 30 - + 31 * + + 29 AS col1
----
-869

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL COUNT ( DISTINCT 27 ) * - - 30 - + 31 * + + 29 AS col1
----
-869

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT ALL - 66 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - 66 / + 89
----
0

query I rowsort
SELECT - 46 * + - 30 + - 4
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT 28 * - MAX( ALL + 90 ) * - 60 * + 63 * + - ( 25 ) AS col2
----
-238140000

skipif mysql # not compatible
query I rowsort label-5212
SELECT 28 * - MAX ( ALL + 90 ) * - 60 * + 63 * + - ( 25 ) AS col2
----
-238140000

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT ALL - ( + 22 ) DIV - - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - ( + 22 ) / - - 72 AS col1
----
0

query II rowsort
SELECT - - 15 AS col1, 13 * 90
----
15
1170

query I rowsort
SELECT ALL - - 50 + - - 80 + - 41 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5216
SELECT - - CAST( NULL AS SIGNED ) AS col0, + 93 + - SUM( + - 48 ) AS col0
----
NULL
141

skipif mysql # not compatible
query II rowsort label-5216
SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 93 + - SUM ( + - 48 ) AS col0
----
NULL
141

query II rowsort
SELECT 22 AS col1, 17 + + 19 + - - 72 * + 32 * + + 75 col1
----
22
172836

query I rowsort
SELECT - ( 20 ) + + 1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT + COUNT( * ) + - 62 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + COUNT ( * ) + - 62 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - MAX( + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5220
SELECT - MAX ( + 45 ) AS col2
----
-45

query II rowsort
SELECT ALL 88, 17 AS col0
----
88
17

query I rowsort
SELECT DISTINCT + 78 + - 4
----
74

query I rowsort
SELECT ALL - 20 * + 68 AS col0
----
-1360

query I rowsort
SELECT ALL + + 8 + - 85 AS col0
----
-77

query I rowsort
SELECT - + ( + 3 ) col2
----
-3

query I rowsort
SELECT ( - + 84 ) AS col0
----
-84

query I rowsort
SELECT DISTINCT 23 + + - ( + - 77 ) * + 47
----
3642

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT + COUNT( ALL + - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-5228
SELECT + COUNT ( ALL + - 34 )
----
1

query I rowsort
SELECT ALL 16 * 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT 57 * 34 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT 57 * 34 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT ALL COUNT( * ) * 68 AS col2, 20 * + 47 AS col2
----
68
940

skipif mysql # not compatible
query II rowsort label-5232
SELECT ALL COUNT ( * ) * 68 AS col2, 20 * + 47 AS col2
----
68
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT 53 + - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5233
SELECT 53 + - COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5234
SELECT DISTINCT 15 * - 77 * - 99, - 1 * - + COUNT( * ) AS col2
----
114345
1

skipif mysql # not compatible
query II rowsort label-5234
SELECT DISTINCT 15 * - 77 * - 99, - 1 * - + COUNT ( * ) AS col2
----
114345
1

query I rowsort
SELECT ALL 74 * - 28 * - + 81 AS col0
----
167832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT NULLIF ( - + COUNT( * ), 17 + + COUNT( * ) + - + 62 ) DIV 31 * - - MIN( 45 )
----
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT NULLIF ( - + COUNT ( * ), 17 + + COUNT ( * ) + - + 62 ) / 31 * - - MIN ( 45 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + 14 * - ( - COUNT( * ) ) + - + 88 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 14 * - ( - COUNT ( * ) ) + - + 88 AS col0
----
-74

query I rowsort
SELECT + ( - + 65 ) + + 2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT + CAST( NULL AS SIGNED ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT + CAST ( NULL AS INTEGER ) + - 7
----
NULL

query I rowsort
SELECT ALL - 36 + ( + 45 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT + COUNT( * ) * COUNT( * ) AS col1, 22
----
1
22

skipif mysql # not compatible
query II rowsort label-5241
SELECT + COUNT ( * ) * COUNT ( * ) AS col1, 22
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL 90 + + ( - COUNT( * ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL 90 + + ( - COUNT ( * ) ) AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT ALL - CAST( 22 AS SIGNED ) + 32 col2
----
10

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL - CAST ( 22 AS INTEGER ) + 32 col2
----
10

query I rowsort
SELECT + 64 + + 25
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5245
SELECT ALL + - 48 + + COUNT( * ), - 82 * MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) * 66 AS col0
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-5245
SELECT ALL + - 48 + + COUNT ( * ), - 82 * MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) * 66 AS col0
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + - COUNT( * ) + + 59
----
58

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + - COUNT ( * ) + + 59
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT DISTINCT 79 + - CAST( + + 78 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT 79 + - CAST ( + + 78 AS INTEGER ) AS col1
----
1

query II rowsort
SELECT ALL ( - 99 ), 47 col1
----
-99
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - + 13 * + MIN( DISTINCT 11 ) * - - 95 col0
----
-13585

skipif mysql # not compatible
query I rowsort label-5249
SELECT - + 13 * + MIN ( DISTINCT 11 ) * - - 95 col0
----
-13585

query I rowsort
SELECT DISTINCT - - 10 + + + ( - 65 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - - SUM( DISTINCT - - 90 ) + + ( + 50 ) col1
----
140

skipif mysql # not compatible
query I rowsort label-5251
SELECT - - SUM ( DISTINCT - - 90 ) + + ( + 50 ) col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT MIN( DISTINCT + 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-5252
SELECT MIN ( DISTINCT + 92 ) col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT + 93 DIV + - 50
----
-1

skipif mysql # not compatible
query I rowsort label-5253
SELECT + 93 / + - 50
----
-1

query I rowsort
SELECT - 2 + 15 * - 97 AS col0
----
-1457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT ALL NULLIF ( 16, CASE + CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) / + 84 - + CAST( - - ( - + 86 ) AS SIGNED ) THEN - 49 END * + - 89 + - ( + 84 ) ) col2
----
16

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL NULLIF ( 16, CASE + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) / + 84 - + CAST ( - - ( - + 86 ) AS INTEGER ) THEN - 49 END * + - 89 + - ( + 84 ) ) col2
----
16

query I rowsort
SELECT ALL ( 50 ) col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL ( - - MIN( 21 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL ( - - MIN ( 21 ) ) AS col1
----
21

query I rowsort
SELECT DISTINCT + NULLIF ( - 7, + 48 ) - 25 + - + 63 - - 38 * 35
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL - 42 * - ( + + MIN( + 17 ) )
----
714

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - 42 * - ( + + MIN ( + 17 ) )
----
714

query I rowsort
SELECT DISTINCT - 33 * 89 AS col1
----
-2937

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT + 0 AS col0, COUNT( * ) * - 62
----
0
-62

skipif mysql # not compatible
query II rowsort label-5261
SELECT + 0 AS col0, COUNT ( * ) * - 62
----
0
-62

query I rowsort
SELECT ALL + COALESCE ( + 31, 59 ) AS col2
----
31

query I rowsort
SELECT ( + 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ( - COUNT( DISTINCT + - 34 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5264
SELECT ( - COUNT ( DISTINCT + - 34 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - COALESCE ( - 46, + MIN( DISTINCT - 55 ), + + 0 ) * + 41 AS col2
----
1886

skipif mysql # not compatible
query I rowsort label-5265
SELECT - COALESCE ( - 46, + MIN ( DISTINCT - 55 ), + + 0 ) * + 41 AS col2
----
1886

query I rowsort
SELECT + 2 * + 79
----
158

query I rowsort
SELECT ALL + 80 * + 47
----
3760

onlyif mysql # aggregate syntax: 
query II rowsort label-5268
SELECT DISTINCT + 46 AS col2, - COUNT( * )
----
46
-1

skipif mysql # not compatible
query II rowsort label-5268
SELECT DISTINCT + 46 AS col2, - COUNT ( * )
----
46
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT 74 * - - COUNT( DISTINCT + 18 ) * + 55 - - 7 AS col0
----
4077

skipif mysql # not compatible
query I rowsort label-5269
SELECT 74 * - - COUNT ( DISTINCT + 18 ) * + 55 - - 7 AS col0
----
4077

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT DISTINCT + SUM( + + COALESCE ( + 62, - 18 + + - 20, + 66 ) ) * + 74 AS col0
----
4588

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT + SUM ( + + COALESCE ( + 62, - 18 + + - 20, + 66 ) ) * + 74 AS col0
----
4588

query I rowsort
SELECT + 62 * 53
----
3286

query II rowsort
SELECT ALL + + 1, + 74 AS col0
----
1
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT 77 col0, + COUNT( + 67 )
----
77
1

skipif mysql # not compatible
query II rowsort label-5273
SELECT 77 col0, + COUNT ( + 67 )
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + COUNT( DISTINCT + - 22 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5274
SELECT + COUNT ( DISTINCT + - 22 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL - 45 * 53 + MAX( ALL + 80 ) + + COUNT( * ) + + + 85 AS col2
----
-2219

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL - 45 * 53 + MAX ( ALL + 80 ) + + COUNT ( * ) + + + 85 AS col2
----
-2219

query I rowsort
SELECT ALL - 81 * + 88 + + 93 + + 15
----
-7020

query I rowsort
SELECT + + ( - - 26 ) * + ( - 57 ) AS col1
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT CASE 51 WHEN 14 THEN NULL WHEN + 25 * + - 73 / 86 + + COUNT( ALL 86 ) + + 53 + COUNT( ALL - + 37 ) - - COUNT( * ) * - 80 THEN NULL WHEN - + COUNT( * ) + 84 + 54 THEN - - 48 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT CASE 51 WHEN 14 THEN NULL WHEN + 25 * + - 73 / 86 + + COUNT ( ALL 86 ) + + 53 + COUNT ( ALL - + 37 ) - - COUNT ( * ) * - 80 THEN NULL WHEN - + COUNT ( * ) + 84 + 54 THEN - - 48 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 50, + 59 + + - 22 AS col0
----
50
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5280
SELECT DISTINCT 72 col2, 43 * - COUNT( * ) + + 2 - + 47 col0
----
72
-88

skipif mysql # not compatible
query II rowsort label-5280
SELECT DISTINCT 72 col2, 43 * - COUNT ( * ) + + 2 - + 47 col0
----
72
-88

query I rowsort
SELECT + 32 * + ( + 21 ) * - 98 + ( - 19 ) - - 97 * + + 65 col0
----
-59570

query I rowsort
SELECT - - ( 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - - NULLIF ( 89, - 65 + - 7 ) * - 74 - + COUNT( * ) AS col1
----
-6587

skipif mysql # not compatible
query I rowsort label-5283
SELECT - - NULLIF ( 89, - 65 + - 7 ) * - 74 - + COUNT ( * ) AS col1
----
-6587

query I rowsort
SELECT ALL - 37 * ( 42 )
----
-1554

query I rowsort
SELECT ALL - 26 * 77
----
-2002

query I rowsort
SELECT ALL CASE 15 WHEN 7 THEN 3 WHEN - 46 + + 29 / - 34 THEN NULL END
----
NULL

query III rowsort
SELECT ALL NULLIF ( - 17, + 88 / - 51 + - 56 / - - ( 66 ) ) AS col1, NULLIF ( ( + COALESCE ( - + 77, - - 90 * 11 ) ), - ( 82 ) ) + 75 + - 10 AS col1, 36 AS col1
----
-17
-12
36

query II rowsort
SELECT ALL 5 * - 63 AS col1, 50 col1
----
-315
50

query I rowsort
SELECT ALL NULLIF ( + 85, - 55 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + 4 - COUNT( ALL - 70 )
----
3

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 4 - COUNT ( ALL - 70 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5291
SELECT ALL + 84 DIV + + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + 84 / + + COUNT ( * ) AS col1
----
84

query I rowsort
SELECT 1 * - 6
----
-6

query I rowsort
SELECT 88 - 50
----
38

query I rowsort
SELECT ALL + 12 * 21 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT DISTINCT + COUNT( + + 61 ) + - 83 * - ( - 55 )
----
-4564

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT + COUNT ( + + 61 ) + - 83 * - ( - 55 )
----
-4564

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL - COUNT( * ) + 51
----
50

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - COUNT ( * ) + 51
----
50

query I rowsort
SELECT + 16 * 14 + - 25 + + 81 * - - 49 * - - 96 * - 98 AS col1
----
-37340153

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + SUM( ALL - 37 ) + 35 - + 3
----
-5

skipif mysql # not compatible
query I rowsort label-5298
SELECT + SUM ( ALL - 37 ) + 35 - + 3
----
-5

query I rowsort
SELECT ALL - - 77 + - - NULLIF ( + 25, - ( + - 59 ) ) AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT + - 14 + NULLIF ( + 14, CAST( NULL AS SIGNED ) + - COUNT( * ) ) - + AVG ( DISTINCT - 18 ) * + CAST( NULL AS SIGNED ) * COUNT( * ) * - - 60 * - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + - 14 + NULLIF ( + 14, CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) - + AVG ( DISTINCT - 18 ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - - 60 * - + 60
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5301
SELECT ALL 12 + - 74 DIV + 51 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL 12 + - 74 / + 51 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5302
SELECT ALL + SUM( - 75 ) DIV + 16 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + SUM ( - 75 ) / + 16 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ALL - + ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - + ( - - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL 35 * - ( - 50 ) * 98 * + 59 AS col0
----
10118500

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - ( - MAX( ALL - 76 ) ) - + 67
----
-143

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - ( - MAX ( ALL - 76 ) ) - + 67
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - ( MIN( - ( + 71 ) ) ) + - + 52 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5306
SELECT - ( MIN ( - ( + 71 ) ) ) + - + 52 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5307
SELECT ALL 92 * - 51 * 67 * + 23 * - ( - + NULLIF ( + CASE 29 WHEN - ( - - ( 99 ) ) THEN + 68 - + - 35 - + ( - 75 ) * - - 48 * + - 72 + - 6 WHEN + 90 THEN + MAX( - 81 ) DIV 96 ELSE 88 END, 58 * ( - 59 ) ) ) - - ( + 61 + 59 )
----
-636272616

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL 92 * - 51 * 67 * + 23 * - ( - + NULLIF ( + CASE 29 WHEN - ( - - ( 99 ) ) THEN + 68 - + - 35 - + ( - 75 ) * - - 48 * + - 72 + - 6 WHEN + 90 THEN + MAX ( - 81 ) / 96 ELSE 88 END, 58 * ( - 59 ) ) ) - - ( + 61 + 59 )
----
-636272616

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT 62 * + 32 * COUNT( * )
----
1984

skipif mysql # not compatible
query I rowsort label-5308
SELECT 62 * + 32 * COUNT ( * )
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL - 41 * - - 31 * + ( + - COUNT( * ) ) + 99
----
1370

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - 41 * - - 31 * + ( + - COUNT ( * ) ) + 99
----
1370

query I rowsort
SELECT ALL + ( NULLIF ( - 42, + 65 + - 84 ) ) * - 99 + + - 76
----
4082

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT - COUNT( ALL - 15 ) * 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5311
SELECT - COUNT ( ALL - 15 ) * 26 AS col1
----
-26

query I rowsort
SELECT DISTINCT - ( 62 ) col0
----
-62

query I rowsort
SELECT ( - - 45 ) + + 78
----
123

query I rowsort
SELECT 63 + - 7 + - - 60
----
116

query II rowsort
SELECT 95 AS col0, + COALESCE ( 44, - 6 )
----
95
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT ALL COUNT( DISTINCT + 49 ) * 77, 66 AS col1
----
77
66

skipif mysql # not compatible
query II rowsort label-5316
SELECT ALL COUNT ( DISTINCT + 49 ) * 77, 66 AS col1
----
77
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5317
SELECT 11 + - + 98 + - 83, - 59 / + MAX( - - CAST( NULL AS SIGNED ) ) + + + 89 AS col0
----
-170
NULL

skipif mysql # not compatible
query II rowsort label-5317
SELECT 11 + - + 98 + - 83, - 59 / + MAX ( - - CAST ( NULL AS INTEGER ) ) + + + 89 AS col0
----
-170
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL 45 + - - CAST( NULL AS SIGNED ) + - - 13 + + 30 * + + 99 - + COUNT( * ) * - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL 45 + - - CAST ( NULL AS INTEGER ) + - - 13 + + 30 * + + 99 - + COUNT ( * ) * - 60 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 10 AS col2, 54 * - 72 AS col0
----
10
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT 89 * - AVG ( ALL - + CAST( NULL AS SIGNED ) ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT 89 * - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) + + 72
----
NULL

query I rowsort
SELECT 87 * - 57 AS col2
----
-4959

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT SUM( DISTINCT - + 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-5322
SELECT SUM ( DISTINCT - + 8 ) col1
----
-8

query I rowsort
SELECT ( + 59 ) * + 84 - - + 67
----
5023

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - SUM( ALL - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - SUM ( ALL - - 37 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT 7 DIV 82 * 47 * 60
----
0

skipif mysql # not compatible
query I rowsort label-5325
SELECT 7 / 82 * 47 * 60
----
0

query I rowsort
SELECT - 0 + + 99 AS col1
----
99

query I rowsort
SELECT ALL + 97 - + 50
----
47

query I rowsort
SELECT 59 * + + 17
----
1003

query I rowsort
SELECT DISTINCT - + 22 AS col0
----
-22

query I rowsort
SELECT DISTINCT + + 78 - ( + 86 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL 40 * + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL 40 * + - COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT - MIN( DISTINCT 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - MIN ( DISTINCT 48 ) AS col2
----
-48

query II rowsort
SELECT ALL - + 63 AS col0, + 66 AS col0
----
-63
66

query II rowsort
SELECT ALL - 17 AS col1, 48
----
-17
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5335
SELECT + + 86 * + + 72 - CAST( - - 8 AS SIGNED ) + - - 6 AS col0, 80 AS col2
----
6190
80

skipif mysql # not compatible
query II rowsort label-5335
SELECT + + 86 * + + 72 - CAST ( - - 8 AS INTEGER ) + - - 6 AS col0, 80 AS col2
----
6190
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT + 49 DIV + - 57 + - + 73 * + NULLIF ( - + 1, + 58 )
----
73

skipif mysql # not compatible
query I rowsort label-5336
SELECT + 49 / + - 57 + - + 73 * + NULLIF ( - + 1, + 58 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT 82 DIV - 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5337
SELECT 82 / - 49 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL CASE + 68 WHEN - - NULLIF ( MAX( 91 ), - 22 * - 45 + + 70 ) THEN 86 WHEN + - 76 * - ( - 53 ) THEN - 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL CASE + 68 WHEN - - NULLIF ( MAX ( 91 ), - 22 * - 45 + + 70 ) THEN 86 WHEN + - 76 * - ( - 53 ) THEN - 32 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5339
SELECT - 82 col2, - ( CAST( NULL AS SIGNED ) ) + + - ( 85 ) + COUNT( * ) AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-5339
SELECT - 82 col2, - ( CAST ( NULL AS INTEGER ) ) + + - ( 85 ) + COUNT ( * ) AS col1
----
-82
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT + CAST( + 5 AS SIGNED ) * 19 col0
----
95

skipif mysql # not compatible
query I rowsort label-5340
SELECT + CAST ( + 5 AS INTEGER ) * 19 col0
----
95

query I rowsort
SELECT - 40 + ( + - 81 )
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5342
SELECT - COUNT( * ), + 96 / + MIN( 35 ) * + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5342
SELECT - COUNT ( * ), + 96 / + MIN ( 35 ) * + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT + 63 + + + 42 + + COUNT( * )
----
106

skipif mysql # not compatible
query I rowsort label-5343
SELECT + 63 + + + 42 + + COUNT ( * )
----
106

query I rowsort
SELECT ALL 4 + 83 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL NULLIF ( - CASE + 6 WHEN - COUNT( * ) THEN NULL WHEN - 94 THEN NULL WHEN + CAST( NULL AS SIGNED ) + - 3 THEN - 72 END, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL NULLIF ( - CASE + 6 WHEN - COUNT ( * ) THEN NULL WHEN - 94 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - 3 THEN - 72 END, + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5346
SELECT 56 AS col2, + 87 DIV 10 DIV - 19
----
56
0

skipif mysql # not compatible
query II rowsort label-5346
SELECT 56 AS col2, + 87 / 10 / - 19
----
56
0

query I rowsort
SELECT DISTINCT + 39 + - - 36
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT 37 col2, 90 - - - MIN( - - 13 )
----
37
77

skipif mysql # not compatible
query II rowsort label-5348
SELECT 37 col2, 90 - - - MIN ( - - 13 )
----
37
77

query II rowsort
SELECT 72 AS col1, 9 + - 81 AS col0
----
72
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5350
SELECT - CASE + 84 WHEN - CASE + 59 WHEN - 76 * - 91 + + COUNT( * ) + + 74 THEN CAST( NULL AS SIGNED ) * + 44 END THEN 44 * + - SUM( DISTINCT + 63 ) DIV - - 0 ELSE + - 44 END - - - 11 + + 32 + NULLIF ( + ( - 68 ), + - 78 + - 10 ) * 89 * COALESCE ( - COALESCE ( 99, CAST( NULL AS SIGNED ), 51 - 5 ) DIV + 84, 29 * CAST( NULL AS SIGNED ) + - 76 DIV 18 ) AS col2
----
6117

skipif mysql # not compatible
query I rowsort label-5350
SELECT - CASE + 84 WHEN - CASE + 59 WHEN - 76 * - 91 + + COUNT ( * ) + + 74 THEN CAST ( NULL AS INTEGER ) * + 44 END THEN 44 * + - SUM ( DISTINCT + 63 ) / - - 0 ELSE + - 44 END - - - 11 + + 32 + NULLIF ( + ( - 68 ), + - 78 + - 10 ) * 89 * COALESCE ( - COALESCE ( 99, CAST ( NULL AS INTEGER ), 51 - 5 ) / + 84, 29 * CAST ( NULL AS INTEGER ) + - 76 / 18 ) AS col2
----
6117

query I rowsort
SELECT + 67 - - + 23 AS col2
----
90

query I rowsort
SELECT - ( + 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT ALL - 84 * + + ( COUNT( * ) ) - 70 + 16 * + 48
----
614

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - 84 * + + ( COUNT ( * ) ) - 70 + 16 * + 48
----
614

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + + 21 - + - COUNT( * ) * - 71 * 22 * + 10 * 42
----
-656019

skipif mysql # not compatible
query I rowsort label-5354
SELECT + + 21 - + - COUNT ( * ) * - 71 * 22 * + 10 * 42
----
-656019

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT + + MAX( ALL + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT + + MAX ( ALL + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL + + ( + ( - + NULLIF ( - 41, - + AVG ( - 59 ) + + + COUNT( * ) ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL + + ( + ( - + NULLIF ( - 41, - + AVG ( - 59 ) + + + COUNT ( * ) ) ) )
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5357
SELECT + CAST( NULL AS DECIMAL ) AS col1, + ( - 67 ) + 59 - - COUNT( ALL - - CASE - 56 WHEN 40 THEN - + 21 WHEN - 33 THEN NULL END ) + NULLIF ( 33, 45 )
----
NULL
25

skipif mysql # not compatible
query II rowsort label-5357
SELECT + CAST ( NULL AS REAL ) AS col1, + ( - 67 ) + 59 - - COUNT ( ALL - - CASE - 56 WHEN 40 THEN - + 21 WHEN - 33 THEN NULL END ) + NULLIF ( 33, 45 )
----
NULL
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT DISTINCT + - SUM( ALL 7 ) AS col2, 37
----
-7
37

skipif mysql # not compatible
query II rowsort label-5358
SELECT DISTINCT + - SUM ( ALL 7 ) AS col2, 37
----
-7
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5359
SELECT COUNT( * ) * + 15 + - - CASE + COUNT( * ) WHEN - - MIN( DISTINCT + 52 ) THEN + - 52 * - 60 END + 15 / - + CAST( + - COUNT( * ) AS SIGNED ) * - COUNT( 15 ) * + MAX( - 31 ) + COUNT( ALL - - 42 ) + + 15 + - 5 - + 14 * 87 * + 85 + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT COUNT ( * ) * + 15 + - - CASE + COUNT ( * ) WHEN - - MIN ( DISTINCT + 52 ) THEN + - 52 * - 60 END + 15 / - + CAST ( + - COUNT ( * ) AS INTEGER ) * - COUNT ( 15 ) * + MAX ( - 31 ) + COUNT ( ALL - - 42 ) + + 15 + - 5 - + 14 * 87 * + 85 + + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5360
SELECT ALL COUNT( ALL + - 71 ) DIV 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL COUNT ( ALL + - 71 ) / 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL + + MIN( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL + + MIN ( 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL + MIN( ALL + + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL + MIN ( ALL + + 67 ) AS col2
----
67

query II rowsort
SELECT ALL - 58 * + 85 * + 7 * - 47 AS col2, + 30 + 39 + - 37 col0
----
1621970
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5364
SELECT ALL - 81 * + 38 + COALESCE ( - ( - 16 ), + 3, + CASE + 83 WHEN + + 64 THEN + 21 ELSE + 56 + + 81 + + 33 END * - 85 DIV - CASE - - COALESCE ( + 85, - 89 * - COUNT( + 95 ), + 23 * - ( 24 DIV - CAST( - 67 * CAST( NULL AS SIGNED ) AS SIGNED ) + - 67 DIV 90 ) + - MIN( - 34 + - 59 ) ) WHEN 65 * + 67 THEN COUNT( * ) WHEN 73 THEN 59 * COALESCE ( - ( 40 ) * - ( 48 ), - CAST( NULL AS SIGNED ) * + 1, 94 DIV + COUNT( * ) + - 2 ) END * 42 ) + 60 * - 33 AS col1
----
-5042

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - 81 * + 38 + COALESCE ( - ( - 16 ), + 3, + CASE + 83 WHEN + + 64 THEN + 21 ELSE + 56 + + 81 + + 33 END * - 85 / - CASE - - COALESCE ( + 85, - 89 * - COUNT ( + 95 ), + 23 * - ( 24 / - CAST ( - 67 * CAST ( NULL AS INTEGER ) AS INTEGER ) + - 67 / 90 ) + - MIN ( - 34 + - 59 ) ) WHEN 65 * + 67 THEN COUNT ( * ) WHEN 73 THEN 59 * COALESCE ( - ( 40 ) * - ( 48 ), - CAST ( NULL AS INTEGER ) * + 1, 94 / + COUNT ( * ) + - 2 ) END * 42 ) + 60 * - 33 AS col1
----
-5042

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL + + COUNT( 54 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + + COUNT ( 54 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT - CAST( + - 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-5366
SELECT - CAST ( + - 30 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL CASE CASE - + 91 WHEN 34 + COALESCE ( - - 37, + 39 * 92 * + 72, + - COUNT( * ) / + 61 * + + 58 ) * NULLIF ( + 73, - - 78 + COALESCE ( + 52, 42, - MAX( 57 ) * + - 60 ) + - 71 * 5 ) * 80 THEN NULL ELSE ( - 56 ) * 87 END WHEN + 95 + 96 * - NULLIF ( - COALESCE ( 5, 77 / - 83 ), CASE + 74 WHEN ( 10 ) THEN NULL WHEN 80 + 63 THEN 99 + ( + 32 ) END ) THEN + 14 * + 73 ELSE - 15 - - COUNT( * ) END AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL CASE CASE - + 91 WHEN 34 + COALESCE ( - - 37, + 39 * 92 * + 72, + - COUNT ( * ) / + 61 * + + 58 ) * NULLIF ( + 73, - - 78 + COALESCE ( + 52, 42, - MAX ( 57 ) * + - 60 ) + - 71 * 5 ) * 80 THEN NULL ELSE ( - 56 ) * 87 END WHEN + 95 + 96 * - NULLIF ( - COALESCE ( 5, 77 / - 83 ), CASE + 74 WHEN ( 10 ) THEN NULL WHEN 80 + 63 THEN 99 + ( + 32 ) END ) THEN + 14 * + 73 ELSE - 15 - - COUNT ( * ) END AS col2
----
-14

query I rowsort
SELECT - 22 + 62 + + 19 + + + 87 col1
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-5369
SELECT DISTINCT - 52 + - 74 DIV - 94 * 12 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - 52 + - 74 / - 94 * 12 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5370
SELECT DISTINCT - COUNT( * ) DIV - 69 col0, 51 AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-5370
SELECT DISTINCT - COUNT ( * ) / - 69 col0, 51 AS col2
----
0
51

query I rowsort
SELECT DISTINCT - 71 + + - 34 AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5372
SELECT - 4 DIV - 93 AS col1, + CAST( NULL AS SIGNED ) - - 94 DIV COUNT( * ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5372
SELECT - 4 / - 93 AS col1, + CAST ( NULL AS INTEGER ) - - 94 / COUNT ( * ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5373
SELECT DISTINCT + 53 + SUM( DISTINCT - 48 ) + + - 82 + + + 53, + 6 - + 16 - - 73 * + COUNT( - 62 ) col2
----
-24
63

skipif mysql # not compatible
query II rowsort label-5373
SELECT DISTINCT + 53 + SUM ( DISTINCT - 48 ) + + - 82 + + + 53, + 6 - + 16 - - 73 * + COUNT ( - 62 ) col2
----
-24
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5374
SELECT ALL ( COUNT( * ) ), - 31 + 9 DIV - 67 * - - 78 * + + 7 AS col1
----
1
-31

skipif mysql # not compatible
query II rowsort label-5374
SELECT ALL ( COUNT ( * ) ), - 31 + 9 / - 67 * - - 78 * + + 7 AS col1
----
1
-31

query I rowsort
SELECT - 56 * - - 49 AS col0
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL + COUNT( * ) * 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + COUNT ( * ) * 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - ( - COALESCE ( - - 8, COUNT( * ) + + 66 + - 22 ) ) + + - 40 col0
----
-32

skipif mysql # not compatible
query I rowsort label-5377
SELECT - ( - COALESCE ( - - 8, COUNT ( * ) + + 66 + - 22 ) ) + + - 40 col0
----
-32

query I rowsort
SELECT + 74 - 40 AS col2
----
34

query I rowsort
SELECT ALL - 62 * + 65
----
-4030

query I rowsort
SELECT + 50 + - 9 * + - 96 + - 64
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL - 63 * + 71 * COUNT( * )
----
-4473

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL - 63 * + 71 * COUNT ( * )
----
-4473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT DISTINCT CAST( - ( + 94 ) AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT CAST ( - ( + 94 ) AS INTEGER ) AS col0
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-5383
SELECT + NULLIF ( + - 89, + - 27 * ( + 10 ) * - + 6 - - 15 ) + 75 + - ( - + 45 ) AS col1, 46 + - 13 + - 24 * 40 DIV - - 62 + 85 AS col1
----
31
103

skipif mysql # not compatible
query II rowsort label-5383
SELECT + NULLIF ( + - 89, + - 27 * ( + 10 ) * - + 6 - - 15 ) + 75 + - ( - + 45 ) AS col1, 46 + - 13 + - 24 * 40 / - - 62 + 85 AS col1
----
31
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT - + CAST( NULL AS SIGNED ) * + - 69 * + + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT - + CAST ( NULL AS INTEGER ) * + - 69 * + + 21 AS col0
----
NULL

query II rowsort
SELECT + 71 * 70 AS col1, + 78 * + 95 AS col2
----
4970
7410

query I rowsort
SELECT + 89 * - 35 + + 44 AS col1
----
-3071

query I rowsort
SELECT + 28 * + - 22 + + 85 AS col0
----
-531

query I rowsort
SELECT ALL - 54 * - 45 AS col2
----
2430

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT + + 53 DIV + 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + + 53 / + 45 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT DISTINCT 86 * - 74, COUNT( * ) AS col1
----
-6364
1

skipif mysql # not compatible
query II rowsort label-5390
SELECT DISTINCT 86 * - 74, COUNT ( * ) AS col1
----
-6364
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT DISTINCT - SUM( + 57 ) DIV + 4 + + - MAX( ALL 96 ) AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT - SUM ( + 57 ) / + 4 + + - MAX ( ALL 96 ) AS col1
----
-110

query I rowsort
SELECT + 94 * 54 - - 54
----
5130

query I rowsort
SELECT 75 * ( 7 ) AS col0
----
525

query II rowsort
SELECT ALL 75 + - - 82 AS col2, 72
----
157
72

query I rowsort
SELECT - 44 - + 43
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT ( 49 ) DIV - - 23 col2
----
2

skipif mysql # not compatible
query I rowsort label-5396
SELECT ( 49 ) / - - 23 col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT 11 * CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT 11 * CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT ALL 40 DIV + - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL 40 / + - 39 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL - 66 + - COUNT( * ) * + 11 + + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - 66 + - COUNT ( * ) * + 11 + + COUNT ( * )
----
-76

query I rowsort
SELECT ALL - 57 * - 54
----
3078

query I rowsort
SELECT DISTINCT 34 + + 78 * 45
----
3544

query I rowsort
SELECT DISTINCT - COALESCE ( + + 78, + COALESCE ( - 74, - 23 ), 33 ) * - + 62
----
4836

query I rowsort
SELECT 10 * - 79 AS col2
----
-790

query I rowsort
SELECT ALL 68 + - - 32
----
100

query II rowsort
SELECT - 46 AS col0, 49 AS col1
----
-46
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5406
SELECT NULLIF ( - COUNT( * ), 96 * + CAST( - - 15 AS DECIMAL ) + - 19 * + 70 * - - 2 + 32 + CASE + - CAST( 47 AS DECIMAL ) WHEN 39 + + 11 THEN - + COUNT( * ) * + ( + NULLIF ( - 23, - + 3 + 19 ) ) - - COUNT( * ) + - COUNT( * ) ELSE NULL END DIV - 67 + + 92 ) + - 96 DIV + 2 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5406
SELECT NULLIF ( - COUNT ( * ), 96 * + CAST ( - - 15 AS REAL ) + - 19 * + 70 * - - 2 + 32 + CASE + - CAST ( 47 AS REAL ) WHEN 39 + + 11 THEN - + COUNT ( * ) * + ( + NULLIF ( - 23, - + 3 + 19 ) ) - - COUNT ( * ) + - COUNT ( * ) ELSE NULL END / - 67 + + 92 ) + - 96 / + 2 AS col1
----
-49

query I rowsort
SELECT 36 * 54
----
1944

query I rowsort
SELECT 42 + - - 17 col2
----
59

query I rowsort
SELECT DISTINCT + NULLIF ( 8, - 14 ) - 59
----
-51

query II rowsort
SELECT ALL 12 AS col2, 77
----
12
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT ALL 14 AS col2, COUNT( * ) col2
----
14
1

skipif mysql # not compatible
query II rowsort label-5411
SELECT ALL 14 AS col2, COUNT ( * ) col2
----
14
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT ALL + CAST( NULL AS SIGNED ) - 82 + + 38 - - + 37 / + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + CAST ( NULL AS INTEGER ) - 82 + + 38 - - + 37 / + 81 AS col0
----
NULL

query I rowsort
SELECT 26 * + 29
----
754

query I rowsort
SELECT ALL + 95 * 60
----
5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5415
SELECT DISTINCT 71 AS col1, 27 DIV + 42 * - COUNT( * )
----
71
0

skipif mysql # not compatible
query II rowsort label-5415
SELECT DISTINCT 71 AS col1, 27 / + 42 * - COUNT ( * )
----
71
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT - 25, COUNT( * ) AS col2
----
-25
1

skipif mysql # not compatible
query II rowsort label-5416
SELECT - 25, COUNT ( * ) AS col2
----
-25
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT ALL + 66 DIV + - 35
----
-1

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + 66 / + - 35
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT - 76 * - 20 * + - CASE - 19 WHEN - 77 - - + COALESCE ( + AVG ( DISTINCT 33 ), COUNT( * ) ) - - - CAST( NULL AS SIGNED ) * 39 * + - COALESCE ( + 14, + 54 ) - + CAST( NULL AS SIGNED ) THEN 42 * COUNT( * ) - + 27 + - CAST( - ( + COALESCE ( + 87, + 30 - 55, 9 / + 84, 81 ) ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT - 76 * - 20 * + - CASE - 19 WHEN - 77 - - + COALESCE ( + AVG ( DISTINCT 33 ), COUNT ( * ) ) - - - CAST ( NULL AS INTEGER ) * 39 * + - COALESCE ( + 14, + 54 ) - + CAST ( NULL AS INTEGER ) THEN 42 * COUNT ( * ) - + 27 + - CAST ( - ( + COALESCE ( + 87, + 30 - 55, 9 / + 84, 81 ) ) AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT + CAST( - - 93 AS SIGNED ) - + 96 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5419
SELECT + CAST ( - - 93 AS INTEGER ) - + 96 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT COUNT( * ) * + 79 * 28 + + ( + + 95 )
----
2307

skipif mysql # not compatible
query I rowsort label-5420
SELECT COUNT ( * ) * + 79 * 28 + + ( + + 95 )
----
2307

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT ALL 19 AS col1, - 19 * + + 78 + ( SUM( + 45 ) ) - + 8 * - 70
----
19
-877

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL 19 AS col1, - 19 * + + 78 + ( SUM ( + 45 ) ) - + 8 * - 70
----
19
-877

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + 99 + + SUM( - 28 ) + - - 20 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 99 + + SUM ( - 28 ) + - - 20 AS col0
----
91

query I rowsort
SELECT + COALESCE ( - 74, + 56 * 6 ) AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5424
SELECT SUM( - 80 ) DIV 97, ( 83 ) AS col1
----
0
83

skipif mysql # not compatible
query II rowsort label-5424
SELECT SUM ( - 80 ) / 97, ( 83 ) AS col1
----
0
83

query I rowsort
SELECT ( + + 52 ) * - ( 29 ) AS col0
----
-1508

query II rowsort
SELECT ALL 3 AS col0, + 41 + - - 99 AS col2
----
3
140

onlyif mysql # aggregate syntax: 
query II rowsort label-5427
SELECT ALL 20 AS col2, 49 - 22 * - + COUNT( + 75 ) AS col1
----
20
71

skipif mysql # not compatible
query II rowsort label-5427
SELECT ALL 20 AS col2, 49 - 22 * - + COUNT ( + 75 ) AS col1
----
20
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT + 26 * + 23 * - 60 * - - 99 * - - COUNT( * ) * ( 40 )
----
-142084800

skipif mysql # not compatible
query I rowsort label-5428
SELECT + 26 * + 23 * - 60 * - - 99 * - - COUNT ( * ) * ( 40 )
----
-142084800

query I rowsort
SELECT ALL - ( + 91 ) + NULLIF ( 53, - 36 * 30 + - 82 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - COUNT( * ) - - 64 + 74 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-5430
SELECT - COUNT ( * ) - - 64 + 74 AS col2
----
137

query I rowsort
SELECT + - ( + 69 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL 79 + + + CAST( 39 AS SIGNED ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL 79 + + + CAST ( 39 AS INTEGER ) AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-5433
SELECT ALL 92 + + 0 + + - ( + NULLIF ( - - MAX( DISTINCT - 63 ), - - 9 ) ) * + 89 AS col2, - 28, - + CASE + CAST( NULL AS DECIMAL ) WHEN - 91 * 34 THEN NULL ELSE + COUNT( * ) END - - COUNT( * ) * - + 67 + - 20 AS col2
----
5699
-28
-88

skipif mysql # not compatible
query III rowsort label-5433
SELECT ALL 92 + + 0 + + - ( + NULLIF ( - - MAX ( DISTINCT - 63 ), - - 9 ) ) * + 89 AS col2, - 28, - + CASE + CAST ( NULL AS REAL ) WHEN - 91 * 34 THEN NULL ELSE + COUNT ( * ) END - - COUNT ( * ) * - + 67 + - 20 AS col2
----
5699
-28
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + + COUNT( * ) / + 2 - 46 + + ( + COUNT( - 24 ) ) * - CASE + 99 WHEN AVG ( ALL - - 68 ) THEN NULL WHEN 47 THEN 15 - + 93 WHEN 84 THEN 8 + + + 98 + - - 79 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT + + COUNT ( * ) / + 2 - 46 + + ( + COUNT ( - 24 ) ) * - CASE + 99 WHEN AVG ( ALL - - 68 ) THEN NULL WHEN 47 THEN 15 - + 93 WHEN 84 THEN 8 + + + 98 + - - 79 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT CASE + 54 WHEN - 41 + + 12 THEN - + 21 ELSE + COUNT( * ) - - 77 + - 96 END AS col2, - 65 / CASE 45 WHEN - 80 THEN + - 73 WHEN - 47 + 30 + + 75 + + 37 / + - 51 * 40 THEN + - COUNT( * ) + + 65 WHEN + - 56 THEN NULL END AS col0
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-5435
SELECT CASE + 54 WHEN - 41 + + 12 THEN - + 21 ELSE + COUNT ( * ) - - 77 + - 96 END AS col2, - 65 / CASE 45 WHEN - 80 THEN + - 73 WHEN - 47 + 30 + + 75 + + 37 / + - 51 * 40 THEN + - COUNT ( * ) + + 65 WHEN + - 56 THEN NULL END AS col0
----
-18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5436
SELECT - 4 AS col2, - COUNT( * ) + - 95 col0
----
-4
-96

skipif mysql # not compatible
query II rowsort label-5436
SELECT - 4 AS col2, - COUNT ( * ) + - 95 col0
----
-4
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT + CAST( - - 63 AS SIGNED ) - - 97 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-5437
SELECT + CAST ( - - 63 AS INTEGER ) - - 97 AS col2
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5438
SELECT COUNT( * ) / + 6 + 23 * - ( + + AVG ( + + CAST( NULL AS SIGNED ) ) ) * + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT COUNT ( * ) / + 6 + 23 * - ( + + AVG ( + + CAST ( NULL AS INTEGER ) ) ) * + - 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5439
SELECT COUNT( + 87 ) + - + 3 * - 18 * - 23 DIV + + COUNT( * ) + - COUNT( * ), - 73 * - 22 AS col0
----
-1242
1606

skipif mysql # not compatible
query II rowsort label-5439
SELECT COUNT ( + 87 ) + - + 3 * - 18 * - 23 / + + COUNT ( * ) + - COUNT ( * ), - 73 * - 22 AS col0
----
-1242
1606

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT ALL + 70 + 89 DIV 18 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + 70 + 89 / 18 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT ALL 81 + + COUNT( ALL + NULLIF ( - + 61, - 24 / - 11 + 28 - ( CAST( 85 AS SIGNED ) ) / - 11 * + 51 ) )
----
82

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL 81 + + COUNT ( ALL + NULLIF ( - + 61, - 24 / - 11 + 28 - ( CAST ( 85 AS INTEGER ) ) / - 11 * + 51 ) )
----
82

query II rowsort
SELECT 1 + + 70 col1, - 27 + - + 26 AS col0
----
71
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * 96 + 25 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 96 + 25 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5444
SELECT CAST( NULL AS DECIMAL ) * + - 31 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT CAST ( NULL AS REAL ) * + - 31 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT COUNT( * ) + 64 - 51
----
14

skipif mysql # not compatible
query I rowsort label-5445
SELECT COUNT ( * ) + 64 - 51
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT 97 + - - CAST( - 67 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5446
SELECT 97 + - - CAST ( - 67 AS INTEGER ) AS col0
----
30

query I rowsort
SELECT 32 + - - 26
----
58

query I rowsort
SELECT ( 78 ) + + + 65 * - 31 AS col2
----
-1937

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT ( - SUM( DISTINCT + - 86 ) ) * + - 67
----
-5762

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT ( - SUM ( DISTINCT + - 86 ) ) * + - 67
----
-5762

query I rowsort
SELECT 22 + - 91 + - 32 col2
----
-101

query II rowsort
SELECT - ( - 5 ) col1, 84 col0
----
5
84

query I rowsort
SELECT 97 * - 41 AS col2
----
-3977

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL MIN( + - 65 ) + + 43 + - + 19 + + + 22 + + + 38
----
19

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL MIN ( + - 65 ) + + 43 + - + 19 + + + 22 + + + 38
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5454
SELECT DISTINCT - CASE - COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) - + + 69 THEN + 28 - - - SUM( + CASE - 46 WHEN + 44 THEN - ( - 18 ) + + 17 WHEN - 12 THEN + + 99 * - 92 + + 40 ELSE NULL END ) WHEN - 4 THEN NULL END + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - CAST ( NULL AS REAL ) - + + 69 THEN + 28 - - - SUM ( + CASE - 46 WHEN + 44 THEN - ( - 18 ) + + 17 WHEN - 12 THEN + + 99 * - 92 + + 40 ELSE NULL END ) WHEN - 4 THEN NULL END + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL - - COUNT( * ) + + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - - COUNT ( * ) + + - 83
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT ALL + 51 + - COUNT( * ) AS col1, + COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-5456
SELECT ALL + 51 + - COUNT ( * ) AS col1, + COUNT ( * )
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - MAX( ALL - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5457
SELECT - MAX ( ALL - 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT + + 55 * + - 98 * + - 50 + - + SUM( 78 ) + 99 + + + ( + 39 ) * - COALESCE ( - CAST( + 82 AS SIGNED ), - + 87 )
----
272719

skipif mysql # not compatible
query I rowsort label-5458
SELECT + + 55 * + - 98 * + - 50 + - + SUM ( 78 ) + 99 + + + ( + 39 ) * - COALESCE ( - CAST ( + 82 AS INTEGER ), - + 87 )
----
272719

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL 23 * + 59 + 88 + + + 36 * - - MIN( + - 66 ) + - 76 + - MIN( 5 )
----
-1012

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL 23 * + 59 + 88 + + + 36 * - - MIN ( + - 66 ) + - 76 + - MIN ( 5 )
----
-1012

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT - - 21 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT - - 21 / 93
----
0

query I rowsort
SELECT ALL - + 10 * 75 AS col1
----
-750

query I rowsort
SELECT DISTINCT - 25 * + 12 - 58 - - ( 47 ) * + 11
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5463
SELECT DISTINCT - 44 DIV COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - 44 / COUNT ( * )
----
-44

query II rowsort
SELECT - 87 * 60 * - - 39, 27 AS col1
----
-203580
27

query I rowsort
SELECT NULLIF ( 14, - 76 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT DISTINCT + COUNT( ALL 42 )
----
1

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT + COUNT ( ALL 42 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL + CAST( - + 78 AS SIGNED ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + CAST ( - + 78 AS INTEGER ) AS col2
----
-78

query I rowsort
SELECT + 57 * - NULLIF ( 3, - 85 * 34 ) AS col2
----
-171

query I rowsort
SELECT - 27 - + 84 * - 7 AS col2
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - 21 * - + COUNT( * ) * 60 AS col0
----
1260

skipif mysql # not compatible
query I rowsort label-5470
SELECT - 21 * - + COUNT ( * ) * 60 AS col0
----
1260

query I rowsort
SELECT DISTINCT 33 * + 13
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT - 22 * - - SUM( + 78 )
----
-1716

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT - 22 * - - SUM ( + 78 )
----
-1716

query I rowsort
SELECT + 73 - + + 76
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5474
SELECT ALL - COALESCE ( + + 77, + 38 + 8, + + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) * 44 + + - 44 + + 74 - + CAST( + + 3 AS SIGNED ) * - + 6
----
-3340

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - COALESCE ( + + 77, + 38 + 8, + + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) * 44 + + - 44 + + 74 - + CAST ( + + 3 AS INTEGER ) * - + 6
----
-3340

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT ( NULLIF ( NULLIF ( - 38, 96 ), - - SUM( DISTINCT + 21 ) + - + 81 / AVG ( + + 73 ) + - + 15 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT ( NULLIF ( NULLIF ( - 38, 96 ), - - SUM ( DISTINCT + 21 ) + - + 81 / AVG ( + + 73 ) + - + 15 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + SUM( ALL + + 90 ) - + + 47 + - + 44
----
-1

skipif mysql # not compatible
query I rowsort label-5476
SELECT + SUM ( ALL + + 90 ) - + + 47 + - + 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT SUM( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5477
SELECT SUM ( DISTINCT - 18 )
----
-18

query I rowsort
SELECT + 55 * 43 * - 20 AS col0
----
-47300

query I rowsort
SELECT + 81 * + 20 AS col0
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL + 66 + + - 59 * - SUM( DISTINCT - 33 ) - + COUNT( * ) + - + ( - 98 ) AS col1
----
-1784

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL + 66 + + - 59 * - SUM ( DISTINCT - 33 ) - + COUNT ( * ) + - + ( - 98 ) AS col1
----
-1784

query I rowsort
SELECT + + 61 * - 47 * + - 64 + 61 + + 15 AS col1
----
183564

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + 22 + - 66 + - ( + + 48 ) * COUNT( * ) - - 21 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5482
SELECT + 22 + - 66 + - ( + + 48 ) * COUNT ( * ) - - 21 AS col0
----
-71

query I rowsort
SELECT DISTINCT 96 + + 71
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT + CAST( 7 AS SIGNED ) - - + 51 - - NULLIF ( 38, - 89 / + 85 ) + + - 68 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5484
SELECT + CAST ( 7 AS INTEGER ) - - + 51 - - NULLIF ( 38, - 89 / + 85 ) + + - 68 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL COUNT( * ) + 99 col0
----
100

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL COUNT ( * ) + 99 col0
----
100

query I rowsort
SELECT + 84 - + 66
----
18

query I rowsort
SELECT - ( - + 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT ALL SUM( ALL - 74 ) - + COALESCE ( - + 20, + 79, + 37 DIV + - 5 - 25 ) + - - COUNT( * ) + - MIN( + + 90 ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL SUM ( ALL - 74 ) - + COALESCE ( - + 20, + 79, + 37 / + - 5 - 25 ) + - - COUNT ( * ) + - MIN ( + + 90 ) AS col2
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5489
SELECT + + 59 * - - 16 * - 56 + + 4 + + CAST( NULL AS SIGNED ), 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-5489
SELECT + + 59 * - - 16 * - 56 + + 4 + + CAST ( NULL AS INTEGER ), 33 AS col0
----
NULL
33

onlyif mysql # DIV for integer division: 
query II rowsort label-5490
SELECT + 0 AS col0, + 4 DIV - + 67
----
0
0

skipif mysql # not compatible
query II rowsort label-5490
SELECT + 0 AS col0, + 4 / - + 67
----
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5491
SELECT ALL + + 3 AS col1, COALESCE ( - 78, + 14 + 78 ) DIV - 27 + + 43 DIV - 99 + + - 63 + + 71 + + COALESCE ( + 43, 62 ) DIV + 37
----
3
11

skipif mysql # not compatible
query II rowsort label-5491
SELECT ALL + + 3 AS col1, COALESCE ( - 78, + 14 + 78 ) / - 27 + + 43 / - 99 + + - 63 + + 71 + + COALESCE ( + 43, 62 ) / + 37
----
3
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT ALL - + 7 DIV 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - + 7 / 8 AS col1
----
0

query I rowsort
SELECT ALL - 7 * 79 col1
----
-553

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT - 57 DIV - 71 * + 21 * - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT - 57 / - 71 * + 21 * - 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT ( - + 22 ), 34 * COUNT( * ) AS col1
----
-22
34

skipif mysql # not compatible
query II rowsort label-5495
SELECT ( - + 22 ), 34 * COUNT ( * ) AS col1
----
-22
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - 21 * + COUNT( * ) + 15
----
-6

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 21 * + COUNT ( * ) + 15
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT - COUNT( * ) - - - ( 40 ) - - COUNT( * ) - - COUNT( * ) + + 60 DIV + 11 + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-5497
SELECT - COUNT ( * ) - - - ( 40 ) - - COUNT ( * ) - - COUNT ( * ) + + 60 / + 11 + + COUNT ( * )
----
-33

query I rowsort
SELECT - 4 + 52 AS col2
----
48

query I rowsort
SELECT ALL 10 * - 22 col0
----
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT - 21 DIV - ( - 27 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT - 21 / - ( - 27 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT ALL + CAST( - - 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + CAST ( - - 11 AS INTEGER ) AS col1
----
11

query I rowsort
SELECT ( + + 30 ) AS col2
----
30

query I rowsort
SELECT ALL + 36 * - 57
----
-2052

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT ALL + 45 DIV - 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + 45 / - 82 col2
----
0

query I rowsort
SELECT - 76 * + 82 + + - 84 * - 94 * + - 63
----
-503680

query I rowsort
SELECT ALL + COALESCE ( + 49, - 21 + 33, - ( - 13 ) ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5507
SELECT COALESCE ( + - 68, - - 58 * - 94, + CASE - - 97 WHEN + 53 THEN - + 38 * - - 93 * + + 67 * + 13 * + 38 * 42 ELSE + COUNT( * ) * + 15 * + 71 * - COUNT( * ) + 62 * + CAST( NULL AS SIGNED ) + - - 66 END + CASE - CAST( NULL AS SIGNED ) WHEN + 15 THEN - 6 * - 0 + - COUNT( * ) + - COUNT( ALL 16 ) WHEN + ( 50 ) THEN COUNT( * ) ELSE - 68 * + 53 END + 38 )
----
-68

skipif mysql # not compatible
query I rowsort label-5507
SELECT COALESCE ( + - 68, - - 58 * - 94, + CASE - - 97 WHEN + 53 THEN - + 38 * - - 93 * + + 67 * + 13 * + 38 * 42 ELSE + COUNT ( * ) * + 15 * + 71 * - COUNT ( * ) + 62 * + CAST ( NULL AS INTEGER ) + - - 66 END + CASE - CAST ( NULL AS INTEGER ) WHEN + 15 THEN - 6 * - 0 + - COUNT ( * ) + - COUNT ( ALL 16 ) WHEN + ( 50 ) THEN COUNT ( * ) ELSE - 68 * + 53 END + 38 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT DISTINCT + 86 * - 83 + + 82 + + 13 + - 20 + + 99 * 53 DIV - ( + NULLIF ( - 46, - 90 + + ( 28 ) ) ) - 86 AS col0
----
-7035

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT + 86 * - 83 + + 82 + + 13 + - 20 + + 99 * 53 / - ( + NULLIF ( - 46, - 90 + + ( 28 ) ) ) - 86 AS col0
----
-7035

query I rowsort
SELECT NULLIF ( - 36, + 12 ) AS col1
----
-36

query I rowsort
SELECT - 67 * 67 AS col2
----
-4489

query I rowsort
SELECT - 55 + - 90 AS col2
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - 31 + 68 + - 34 * + SUM( 55 )
----
-1833

skipif mysql # not compatible
query I rowsort label-5512
SELECT - 31 + 68 + - 34 * + SUM ( 55 )
----
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL - 59 * COUNT( * ) + + - 24
----
-83

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL - 59 * COUNT ( * ) + + - 24
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + 76 * + COUNT( * ) + + + 96 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + 76 * + COUNT ( * ) + + + 96 AS col0
----
172

query I rowsort
SELECT - CASE 18 WHEN + 86 THEN NULL ELSE - 30 END
----
30

query I rowsort
SELECT + 1 + - + 43
----
-42

query II rowsort
SELECT DISTINCT 5 AS col0, - 31
----
5
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL + 35 + 25 - + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + 35 + 25 - + COUNT ( * )
----
59

query II rowsort
SELECT - + 3, 31 AS col0
----
-3
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT MIN( ALL 20 ) + COUNT( * ) - 41 AS col1, COUNT( + + 58 ) * - 79 + 25 AS col1
----
-20
-54

skipif mysql # not compatible
query II rowsort label-5520
SELECT MIN ( ALL 20 ) + COUNT ( * ) - 41 AS col1, COUNT ( + + 58 ) * - 79 + 25 AS col1
----
-20
-54

query I rowsort
SELECT 96 * - ( - - 1 )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5522
SELECT ALL COUNT( * ) DIV + 81 + + 16
----
16

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL COUNT ( * ) / + 81 + + 16
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT ALL 17, - 3 + + 50 * + 72 - - + 0 * + + 19 + - - COUNT( * ) col2
----
17
3598

skipif mysql # not compatible
query II rowsort label-5523
SELECT ALL 17, - 3 + + 50 * + 72 - - + 0 * + + 19 + - - COUNT ( * ) col2
----
17
3598

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT - COUNT( * ) - + 75 col0
----
-76

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT - COUNT ( * ) - + 75 col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5525
SELECT 75 * - 95 * - 38 + - - 94 + - - 71 + - 29 * 16 + - 58 * - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5525
SELECT 75 * - 95 * - 38 + - - 94 + - - 71 + - 29 * 16 + - 58 * - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 6 + - - ( - - 55 ) + - 12 * - 37 AS col1
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT ( + COALESCE ( - + 40, - 64 * COUNT( DISTINCT + 50 ) * SUM( - - 31 ) * COUNT( * ) + - 24 + - 75 + 71 ) ) * - 6
----
240

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT ( + COALESCE ( - + 40, - 64 * COUNT ( DISTINCT + 50 ) * SUM ( - - 31 ) * COUNT ( * ) + - 24 + - 75 + 71 ) ) * - 6
----
240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5528
SELECT - - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT - - CAST ( NULL AS REAL ) col0
----
NULL

query II rowsort
SELECT ALL - 95, + 29 AS col2
----
-95
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 39 * + - SUM( + 8 ) AS col2
----
-312

skipif mysql # not compatible
query I rowsort label-5530
SELECT 39 * + - SUM ( + 8 ) AS col2
----
-312

query II rowsort
SELECT - 29 col2, + 24
----
-29
24

query I rowsort
SELECT DISTINCT 5 * 94 AS col1
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT 30 * - ( - 38 ) * - 26 + - MAX( - - 63 )
----
-29703

skipif mysql # not compatible
query I rowsort label-5533
SELECT 30 * - ( - 38 ) * - 26 + - MAX ( - - 63 )
----
-29703

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL - COUNT( - 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - COUNT ( - 80 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT DISTINCT 69 * + 30 * - 0 AS col0, COUNT( * ) * 95
----
0
95

skipif mysql # not compatible
query II rowsort label-5535
SELECT DISTINCT 69 * + 30 * - 0 AS col0, COUNT ( * ) * 95
----
0
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT COUNT( * ) * - - NULLIF ( - 17, - AVG ( - 71 ) * + 49 ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-5536
SELECT COUNT ( * ) * - - NULLIF ( - 17, - AVG ( - 71 ) * + 49 ) col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT - CASE + COUNT( * ) WHEN + 59 + 38 + + ( 64 ) * + + 5 + + + 20 THEN + 65 WHEN - COUNT( * ) THEN 54 WHEN + 61 THEN ( + 1 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + 59 + 38 + + ( 64 ) * + + 5 + + + 20 THEN + 65 WHEN - COUNT ( * ) THEN 54 WHEN + 61 THEN ( + 1 ) END
----
NULL

query I rowsort
SELECT ALL - ( - + 1 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 97 + + 87
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL SUM( 66 ) + + - 77 * + - COUNT( * ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL SUM ( 66 ) + + - 77 * + - COUNT ( * ) AS col2
----
143

query I rowsort
SELECT 77 * 85 - - - 89 + + 96
----
6552

onlyif mysql # aggregate syntax: 
query II rowsort label-5542
SELECT MIN( 8 ) * COUNT( * ) * - - 53 + - 54 AS col1, - 34 - + 77 + - + 26 + + ( - - 49 ) + - + 27 + - 20 * 32 * + 56 col2
----
370
-35955

skipif mysql # not compatible
query II rowsort label-5542
SELECT MIN ( 8 ) * COUNT ( * ) * - - 53 + - 54 AS col1, - 34 - + 77 + - + 26 + + ( - - 49 ) + - + 27 + - 20 * 32 * + 56 col2
----
370
-35955

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT ALL + 14 + - - 75 DIV - + 73
----
13

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL + 14 + - - 75 / - + 73
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT 60 * + + CAST( - 92 AS SIGNED ) * + 54 AS col2
----
-298080

skipif mysql # not compatible
query I rowsort label-5544
SELECT 60 * + + CAST ( - 92 AS INTEGER ) * + 54 AS col2
----
-298080

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT DISTINCT - 97 * + 98 - + 81 + - + 41 * - + 36 DIV + 1 AS col1
----
-8111

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - 97 * + 98 - + 81 + - + 41 * - + 36 / + 1 AS col1
----
-8111

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT 95 - - 12 DIV + 28 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5546
SELECT 95 - - 12 / + 28 AS col2
----
95

query I rowsort
SELECT ALL + ( + + 87 ) + + 98 + - 67 + - 3
----
115

query I rowsort
SELECT + 33 * 4 + COALESCE ( + 29, + - 67 * - 47 + 33 ) + 28 AS col1
----
189

query I rowsort
SELECT + 35 + - 4 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - MIN( ALL + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5550
SELECT - MIN ( ALL + 50 )
----
-50

query II rowsort
SELECT ALL + 90 - 82 AS col1, - 22 AS col2
----
8
-22

query I rowsort
SELECT - - ( - 29 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT + - 74 * - + COALESCE ( 0, + + 66 + + + COUNT( * ), - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + - 74 * - + COALESCE ( 0, + + 66 + + + COUNT ( * ), - 64 )
----
0

query I rowsort
SELECT - 20 + 13 AS col0
----
-7

query I rowsort
SELECT + 68 - + 75
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT 54 + + 27 + + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5556
SELECT 54 + + 27 + + COUNT ( * ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5557
SELECT MAX( DISTINCT + 27 ) AS col1, - 96 AS col2
----
27
-96

skipif mysql # not compatible
query II rowsort label-5557
SELECT MAX ( DISTINCT + 27 ) AS col1, - 96 AS col2
----
27
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT COALESCE ( 97, 27, 39 ) + + MAX( ALL 9 ) + + 22 * - CAST( + 45 AS SIGNED ) AS col1
----
-884

skipif mysql # not compatible
query I rowsort label-5558
SELECT COALESCE ( 97, 27, 39 ) + + MAX ( ALL 9 ) + + 22 * - CAST ( + 45 AS INTEGER ) AS col1
----
-884

query II rowsort
SELECT 73 AS col0, 90 * 82
----
73
7380

query I rowsort
SELECT 10 + - 32 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT MIN( DISTINCT - - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT MIN ( DISTINCT - - 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT COALESCE ( + 36, 34 ) DIV - 28 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5562
SELECT COALESCE ( + 36, 34 ) / - 28 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT DISTINCT CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5564
SELECT + 42, + CAST( - + 94 AS SIGNED ) + + + CAST( NULL AS SIGNED ) AS col0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-5564
SELECT + 42, + CAST ( - + 94 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) AS col0
----
42
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT - COUNT( * ) DIV 78 + + COUNT( - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-5565
SELECT - COUNT ( * ) / 78 + + COUNT ( - 26 )
----
1

query I rowsort
SELECT ALL + 15 * - - 95 + - 94 * + + 17 + - 36
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + MIN( DISTINCT 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5567
SELECT + MIN ( DISTINCT 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT MAX( - 9 ) * 21 AS col2
----
-189

skipif mysql # not compatible
query I rowsort label-5568
SELECT MAX ( - 9 ) * 21 AS col2
----
-189

query I rowsort
SELECT - 68 * - 94 + + - 68 + - ( + ( + 76 ) ) + 18
----
6266

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT MIN( ALL + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5570
SELECT MIN ( ALL + 94 ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT 45 * - - 47 - - SUM( - CAST( NULL AS SIGNED ) ) * + 9 + - 98 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT 45 * - - 47 - - SUM ( - CAST ( NULL AS INTEGER ) ) * + 9 + - 98 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT COUNT( * ) + + 94 col1
----
95

skipif mysql # not compatible
query I rowsort label-5572
SELECT COUNT ( * ) + + 94 col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL COALESCE ( + 44, - + 87, + 58, 19 ) * 19 DIV + 21
----
39

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL COALESCE ( + 44, - + 87, + 58, 19 ) * 19 / + 21
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL MAX( DISTINCT + + 2 ) - - 0 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL MAX ( DISTINCT + + 2 ) - - 0 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT - COUNT( 49 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5575
SELECT - COUNT ( 49 ) col1
----
-1

query I rowsort
SELECT + - ( + - 57 )
----
57

query I rowsort
SELECT + - 54 * + + ( + 37 )
----
-1998

onlyif mysql # aggregate syntax: 
query II rowsort label-5578
SELECT - - 49 * - - 54 * + 55 + 82 + - + 60 - + - 44 * + COUNT( * ) + + 77 - + 57, - ( - 17 ) AS col1
----
145616
17

skipif mysql # not compatible
query II rowsort label-5578
SELECT - - 49 * - - 54 * + 55 + 82 + - + 60 - + - 44 * + COUNT ( * ) + + 77 - + 57, - ( - 17 ) AS col1
----
145616
17

query I rowsort
SELECT ALL + 43 * + 53 AS col0
----
2279

query I rowsort
SELECT - + 74 + + - 31 AS col0
----
-105

query I rowsort
SELECT DISTINCT - 52 * + - 7 AS col1
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT COUNT( + + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT COUNT ( + + 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT + + NULLIF ( - 31, - - 21 ) * - - ( COUNT( * ) ) + - 30 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5583
SELECT + + NULLIF ( - 31, - - 21 ) * - - ( COUNT ( * ) ) + - 30 AS col2
----
-61

query I rowsort
SELECT - 90 * ( 85 ) AS col0
----
-7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5585
SELECT + + 28 DIV CASE - 73 WHEN - 82 DIV - - 37 THEN + 85 DIV + + COUNT( * ) WHEN - 7 THEN NULL ELSE - 58 END * CASE + 97 WHEN + + AVG ( DISTINCT + + 15 ) THEN NULL WHEN + 33 * - MIN( - 66 ) + + COUNT( * ) * ( COUNT( * ) ) DIV - + COUNT( * ) THEN NULL ELSE + 86 END
----
0

skipif mysql # not compatible
query I rowsort label-5585
SELECT + + 28 / CASE - 73 WHEN - 82 / - - 37 THEN + 85 / + + COUNT ( * ) WHEN - 7 THEN NULL ELSE - 58 END * CASE + 97 WHEN + + AVG ( DISTINCT + + 15 ) THEN NULL WHEN + 33 * - MIN ( - 66 ) + + COUNT ( * ) * ( COUNT ( * ) ) / - + COUNT ( * ) THEN NULL ELSE + 86 END
----
0

query I rowsort
SELECT - - 22 + 40
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT + - COUNT( * ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-5587
SELECT + - COUNT ( * ) + + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - + 47 + - 88 + 23 * - MAX( ALL - + 45 )
----
900

skipif mysql # not compatible
query I rowsort label-5588
SELECT - + 47 + - 88 + 23 * - MAX ( ALL - + 45 )
----
900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5589
SELECT + + 36 + + + 24 DIV SUM( + 50 ) * 61 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5589
SELECT + + 36 + + + 24 / SUM ( + 50 ) * 61 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT - ( + + 64 ) + 2 + + 20 + + 42 + + - 43 * - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-5590
SELECT - ( + + 64 ) + 2 + + 20 + + 42 + + - 43 * - COUNT ( * )
----
43

query I rowsort
SELECT ALL NULLIF ( + 15, - 88 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5592
SELECT - 49 + + 31 * + 81 - - - 40 - + 17 * - COUNT( * ) AS col1, ( - 70 ) + 3 * 51 * - 6
----
2439
-988

skipif mysql # not compatible
query II rowsort label-5592
SELECT - 49 + + 31 * + 81 - - - 40 - + 17 * - COUNT ( * ) AS col1, ( - 70 ) + 3 * 51 * - 6
----
2439
-988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT - 93 * - + 99 DIV COUNT( * ) * - 23 - - 47 - ( + 24 ) AS col1
----
-211738

skipif mysql # not compatible
query I rowsort label-5593
SELECT - 93 * - + 99 / COUNT ( * ) * - 23 - - 47 - ( + 24 ) AS col1
----
-211738

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT ALL - NULLIF ( NULLIF ( + 1, - + 81 ), - + 60 / - + 62 + 35 + 58 ) + - COALESCE ( - COUNT( * ), - COUNT( * ) ) + 10, + MIN( DISTINCT + + 60 ) - + 67 AS col2
----
10
-7

skipif mysql # not compatible
query II rowsort label-5594
SELECT ALL - NULLIF ( NULLIF ( + 1, - + 81 ), - + 60 / - + 62 + 35 + 58 ) + - COALESCE ( - COUNT ( * ), - COUNT ( * ) ) + 10, + MIN ( DISTINCT + + 60 ) - + 67 AS col2
----
10
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5595
SELECT - 98 + + 8 * ( - CAST( + + SUM( 29 ) AS SIGNED ) ) + + + 32
----
-298

skipif mysql # not compatible
query I rowsort label-5595
SELECT - 98 + + 8 * ( - CAST ( + + SUM ( 29 ) AS INTEGER ) ) + + + 32
----
-298

query II rowsort
SELECT DISTINCT ( + 39 ) AS col0, 49 + - 26 + 73 + + 30
----
39
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5597
SELECT ALL 69 + + - CASE + 3 WHEN + 42 + COUNT( * ) * 75 THEN COUNT( * ) DIV + - ( COALESCE ( - 59, + 68 * + - 13 ) ) + + 35 WHEN + COALESCE ( + CAST( - 86 AS SIGNED ), - + ( - + ( 99 ) ) + + 28 + AVG ( DISTINCT - 66 ), + 80 * 11 ) THEN - MIN( + + 65 ) ELSE - 32 END col0, 61 * - 44
----
101
-2684

skipif mysql # not compatible
query II rowsort label-5597
SELECT ALL 69 + + - CASE + 3 WHEN + 42 + COUNT ( * ) * 75 THEN COUNT ( * ) / + - ( COALESCE ( - 59, + 68 * + - 13 ) ) + + 35 WHEN + COALESCE ( + CAST ( - 86 AS INTEGER ), - + ( - + ( 99 ) ) + + 28 + AVG ( DISTINCT - 66 ), + 80 * 11 ) THEN - MIN ( + + 65 ) ELSE - 32 END col0, 61 * - 44
----
101
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT - 51 + + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-5598
SELECT - 51 + + - COUNT ( * )
----
-52

query I rowsort
SELECT DISTINCT + 59 * + ( + 53 )
----
3127

query I rowsort
SELECT DISTINCT ( - ( - 4 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT - 39 * - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5601
SELECT - 39 * - COUNT ( * )
----
39

query I rowsort
SELECT ( + + 48 ) AS col2
----
48

query I rowsort
SELECT ALL + NULLIF ( - 70, + 1 * + + 46 )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT + 14 DIV - 50 + + 31 + + 56
----
87

skipif mysql # not compatible
query I rowsort label-5604
SELECT + 14 / - 50 + + 31 + + 56
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT - ( 8 ) * - COUNT( - 84 ) * + ( + 44 )
----
352

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - ( 8 ) * - COUNT ( - 84 ) * + ( + 44 )
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT + MAX( - ( 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT + MAX ( - ( 72 ) )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT ALL 33 * + COUNT( * ) + 77 + + + 53 * + 4 + + CAST( NULL AS SIGNED ) + - 49 * 9 / - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL 33 * + COUNT ( * ) + 77 + + + 53 * + 4 + + CAST ( NULL AS INTEGER ) + - 49 * 9 / - + 60 AS col2
----
NULL

query I rowsort
SELECT - 9 * - 52 AS col0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT + MIN( ALL - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT + MIN ( ALL - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5610
SELECT ALL 55 * - 8 * SUM( DISTINCT - + 19 ) AS col1, + ( + + 89 ) * + + 24
----
8360
2136

skipif mysql # not compatible
query II rowsort label-5610
SELECT ALL 55 * - 8 * SUM ( DISTINCT - + 19 ) AS col1, + ( + + 89 ) * + + 24
----
8360
2136

onlyif mysql # DIV for integer division: 
query I rowsort label-5611
SELECT + 61 DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-5611
SELECT + 61 / + 60
----
1

query I rowsort
SELECT ALL 70 * + 9 - 21 - - CASE + 3 WHEN 88 THEN + 13 END + + 49 AS col0
----
NULL

query I rowsort
SELECT + 78 * + 10 * - - 78 AS col0
----
60840

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT ( - - 61 ) AS col1, COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-5614
SELECT ( - - 61 ) AS col1, COUNT ( * )
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT - COUNT( * ) * - COUNT( DISTINCT + - ( 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5615
SELECT - COUNT ( * ) * - COUNT ( DISTINCT + - ( 21 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT - + 84 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT - + 84 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5617
SELECT DISTINCT - 14 * + + 32 AS col2, 52 DIV - ( - - 93 )
----
-448
0

skipif mysql # not compatible
query II rowsort label-5617
SELECT DISTINCT - 14 * + + 32 AS col2, 52 / - ( - - 93 )
----
-448
0

query I rowsort
SELECT + 39 + ( - ( + 85 ) ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT + ( SUM( ALL + NULLIF ( - 14, - + 88 * + - 99 ) ) ) * - + 87 * COUNT( * ) AS col2
----
1218

skipif mysql # not compatible
query I rowsort label-5619
SELECT + ( SUM ( ALL + NULLIF ( - 14, - + 88 * + - 99 ) ) ) * - + 87 * COUNT ( * ) AS col2
----
1218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5620
SELECT ALL + - 32 * + ( - 99 ) * 71 + - - 92 - + CAST( NULL AS SIGNED ) * 93 * + 52 + 62, + 51 AS col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + - 32 * + ( - 99 ) * 71 + - - 92 - + CAST ( NULL AS INTEGER ) * 93 * + 52 + 62, + 51 AS col0
----
NULL
51

query I rowsort
SELECT ALL + - 80 * - 52 - 60 * - ( + + 38 ) AS col2
----
6440

query I rowsort
SELECT DISTINCT + - 96 col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5623
SELECT ALL + + ( + - 5 ) AS col0, - COUNT( * ) * ( + - 14 ) AS col0
----
-5
14

skipif mysql # not compatible
query II rowsort label-5623
SELECT ALL + + ( + - 5 ) AS col0, - COUNT ( * ) * ( + - 14 ) AS col0
----
-5
14

query II rowsort
SELECT + - 68 - - + 34 AS col2, 66
----
-34
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5625
SELECT ALL 81 DIV + + MIN( + 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL 81 / + + MIN ( + 74 ) AS col1
----
1

query II rowsort
SELECT + 50 * - - 21, 83 col0
----
1050
83

query I rowsort
SELECT + - 7 + + - 25 AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT + 77 DIV NULLIF ( - 89, 71 * + 3 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5628
SELECT + 77 / NULLIF ( - 89, 71 * + 3 ) AS col1
----
0

query I rowsort
SELECT ALL 47 + - - 65
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT DISTINCT - - 31 + CAST( - + 48 AS SIGNED ) + 6 + + NULLIF ( 61, - 6 * - 68 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT - - 31 + CAST ( - + 48 AS INTEGER ) + 6 + + NULLIF ( 61, - 6 * - 68 ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT - 75 DIV + - ( + 10 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5631
SELECT - 75 / + - ( + 10 ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT ALL ( + - 81 ) * - - CAST( 7 AS SIGNED )
----
-567

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL ( + - 81 ) * - - CAST ( 7 AS INTEGER )
----
-567

query I rowsort
SELECT + 63 + 19
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - SUM( 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5634
SELECT - SUM ( 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT - COUNT( * ) + 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5635
SELECT - COUNT ( * ) + 90 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL + 45 + SUM( + NULLIF ( + - 72, ( + 86 ) ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + 45 + SUM ( + NULLIF ( + - 72, ( + 86 ) ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT SUM( + + COALESCE ( - 91, - 47 ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT SUM ( + + COALESCE ( - 91, - 47 ) ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT - 28 * + 28 * + CASE - SUM( 99 ) WHEN - + 15 + - 47 THEN - 68 WHEN 15 THEN NULL END * - COUNT( * ) * - 48 + + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - 28 * + 28 * + CASE - SUM ( 99 ) WHEN - + 15 + - 47 THEN - 68 WHEN 15 THEN NULL END * - COUNT ( * ) * - 48 + + - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT + COUNT( * ) - + 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + COUNT ( * ) - + 41 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT ALL - 96 AS col2, - COUNT( * )
----
-96
-1

skipif mysql # not compatible
query II rowsort label-5640
SELECT ALL - 96 AS col2, - COUNT ( * )
----
-96
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5641
SELECT + 85 * 36 + + COUNT( * ), - 79 AS col2
----
3061
-79

skipif mysql # not compatible
query II rowsort label-5641
SELECT + 85 * 36 + + COUNT ( * ), - 79 AS col2
----
3061
-79

query I rowsort
SELECT ALL + 83 - + 40 * - - 41 * - 99 AS col0
----
162443

query I rowsort
SELECT DISTINCT - 28 * + 61 AS col2
----
-1708

query I rowsort
SELECT 79 + + 21 AS col0
----
100

query I rowsort
SELECT 86 * - 11 * - - 65
----
-61490

query I rowsort
SELECT ALL - 10 * + 41 AS col2
----
-410

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5647
SELECT + 22 * - NULLIF ( + - 44, 62 ) + 4, + 53 * - CAST( NULL AS SIGNED ) AS col2
----
972
NULL

skipif mysql # not compatible
query II rowsort label-5647
SELECT + 22 * - NULLIF ( + - 44, 62 ) + 4, + 53 * - CAST ( NULL AS INTEGER ) AS col2
----
972
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5648
SELECT - 26 DIV - + SUM( ( 96 ) ) + - ( 64 ) + + 33 * + + 73 + + COUNT( ALL + - 93 ) + - + 57 AS col2
----
2289

skipif mysql # not compatible
query I rowsort label-5648
SELECT - 26 / - + SUM ( ( 96 ) ) + - ( 64 ) + + 33 * + + 73 + + COUNT ( ALL + - 93 ) + - + 57 AS col2
----
2289

query I rowsort
SELECT 57 * - COALESCE ( ( - + 84 ), + 88 )
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - COUNT( * ) + - + 55 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5650
SELECT - COUNT ( * ) + - + 55 AS col0
----
-56

query I rowsort
SELECT + ( + - 26 ) col1
----
-26

query I rowsort
SELECT 49 + + 32 * + 55
----
1809

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL 65 + + ( COUNT( * ) ) + 99
----
165

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL 65 + + ( COUNT ( * ) ) + 99
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-5654
SELECT CASE + AVG ( DISTINCT + - 31 ) WHEN + 4 + - + 23 THEN NULL WHEN + 86 * 21 THEN NULL WHEN - 98 THEN NULL ELSE COUNT( * ) * + - 51 END + 19 AS col1, 77
----
-32
77

skipif mysql # not compatible
query II rowsort label-5654
SELECT CASE + AVG ( DISTINCT + - 31 ) WHEN + 4 + - + 23 THEN NULL WHEN + 86 * 21 THEN NULL WHEN - 98 THEN NULL ELSE COUNT ( * ) * + - 51 END + 19 AS col1, 77
----
-32
77

query I rowsort
SELECT 6 + 64 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + MIN( + - 19 ) + + - 51 + - - 91 * + 25 * + - 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + MIN ( + - 19 ) + + - 51 + - - 91 * + 25 * + - 93 col1
----
NULL

query I rowsort
SELECT DISTINCT - + 88 * - 86 AS col0
----
7568

query I rowsort
SELECT ALL + + 25 + - 71 AS col2
----
-46

query I rowsort
SELECT ALL - 81 + - 51 * - ( + 91 ) col0
----
4560

onlyif mysql # aggregate syntax: 
query II rowsort label-5660
SELECT 70, - 49 * - + COUNT( * ) AS col0
----
70
49

skipif mysql # not compatible
query II rowsort label-5660
SELECT 70, - 49 * - + COUNT ( * ) AS col0
----
70
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL + 59 + CASE + 17 WHEN COUNT( * ) * - - 33 * + 55 THEN NULL WHEN + 57 THEN - - ( + 45 ) WHEN - + 17 THEN NULL ELSE NULL END + + - 78 + - AVG ( ALL - 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + 59 + CASE + 17 WHEN COUNT ( * ) * - - 33 * + 55 THEN NULL WHEN + 57 THEN - - ( + 45 ) WHEN - + 17 THEN NULL ELSE NULL END + + - 78 + - AVG ( ALL - 27 ) AS col2
----
NULL

query I rowsort
SELECT 39 * - 59 * + 78 AS col0
----
-179478

query II rowsort
SELECT DISTINCT 75 AS col1, + 40
----
75
40

query I rowsort
SELECT 16 * - - ( + 14 ) AS col0
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5665
SELECT DISTINCT MAX( - 26 ) + - MAX( + - 45 ), 32 * 43 * - ( - ( 89 ) ) - - CAST( - ( - COUNT( * ) ) AS SIGNED ) DIV + + 37 AS col0
----
19
122464

skipif mysql # not compatible
query II rowsort label-5665
SELECT DISTINCT MAX ( - 26 ) + - MAX ( + - 45 ), 32 * 43 * - ( - ( 89 ) ) - - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / + + 37 AS col0
----
19
122464

query I rowsort
SELECT 29 * + 90 * - - 2
----
5220

query I rowsort
SELECT ALL 27 - 40 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5668
SELECT ALL 92 col2, NULLIF ( - - 25, COUNT( * ) * COUNT( * ) * - 96 / - CAST( NULL AS SIGNED ) ) + - + 3 + 49
----
92
71

skipif mysql # not compatible
query II rowsort label-5668
SELECT ALL 92 col2, NULLIF ( - - 25, COUNT ( * ) * COUNT ( * ) * - 96 / - CAST ( NULL AS INTEGER ) ) + - + 3 + 49
----
92
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT MAX( ( - 55 ) ) - - 80 + 57
----
82

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT MAX ( ( - 55 ) ) - - 80 + 57
----
82

query I rowsort
SELECT 41 * - 86 * 99 AS col0
----
-349074

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT COUNT( * ) * - 77 col0
----
-77

skipif mysql # not compatible
query I rowsort label-5671
SELECT COUNT ( * ) * - 77 col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT SUM( ALL + - ( + + 40 ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5672
SELECT SUM ( ALL + - ( + + 40 ) ) AS col1
----
-40

query II rowsort
SELECT + + 41, - 89 AS col0
----
41
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + + MAX( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5674
SELECT + + MAX ( DISTINCT - 50 )
----
-50

query I rowsort
SELECT ALL - ( - 10 ) AS col1
----
10

query I rowsort
SELECT ALL - - ( - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT DISTINCT - 37 * COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT - 37 * COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5678
SELECT 11, SUM( DISTINCT - 35 ) DIV - + 52 * 50 AS col2
----
11
0

skipif mysql # not compatible
query II rowsort label-5678
SELECT 11, SUM ( DISTINCT - 35 ) / - + 52 * 50 AS col2
----
11
0

query I rowsort
SELECT DISTINCT - ( + 65 ) AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT DISTINCT - - 65 + 24 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT - - 65 + 24 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5681
SELECT 54, + 50 + + ( - 86 ) + + - 30 DIV + - 54 * + 68 + + + 46 - 45 * - 64 AS col2
----
54
2890

skipif mysql # not compatible
query II rowsort label-5681
SELECT 54, + 50 + + ( - 86 ) + + - 30 / + - 54 * + 68 + + + 46 - 45 * - 64 AS col2
----
54
2890

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT ALL - 71 + - COUNT( 63 ) + - - COUNT( * ) AS col2, 84 + - COUNT( * )
----
-71
83

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL - 71 + - COUNT ( 63 ) + - - COUNT ( * ) AS col2, 84 + - COUNT ( * )
----
-71
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT COUNT( * ) - COUNT( * ) - - 94 col1
----
94

skipif mysql # not compatible
query I rowsort label-5683
SELECT COUNT ( * ) - COUNT ( * ) - - 94 col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN - - 63 IS NOT NULL THEN + + 29 * - - 73 * + 42 * COUNT( * ) * + + 22 - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN NULL WHEN - - 63 IS NOT NULL THEN + + 29 * - - 73 * + 42 * COUNT ( * ) * + + 22 - 89 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5685
SELECT CAST( + ( - - 80 ) AS SIGNED ) DIV + 15 + 16 DIV - 40 + - + 14 DIV 60 * - - 67 + 10
----
15

skipif mysql # not compatible
query I rowsort label-5685
SELECT CAST ( + ( - - 80 ) AS INTEGER ) / + 15 + 16 / - 40 + - + 14 / 60 * - - 67 + 10
----
15

query I rowsort
SELECT DISTINCT - 43 + 10 * 15 AS col2
----
107

query II rowsort
SELECT ALL - + 76 AS col2, 82 AS col0
----
-76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL + + 23 + - + MAX( DISTINCT 29 )
----
-6

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + + 23 + - + MAX ( DISTINCT 29 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT DISTINCT - MAX( DISTINCT 44 ) AS col2, + 89
----
-44
89

skipif mysql # not compatible
query II rowsort label-5689
SELECT DISTINCT - MAX ( DISTINCT 44 ) AS col2, + 89
----
-44
89

query I rowsort
SELECT ALL - 30 + + 42 + + 53 AS col2
----
65

query II rowsort
SELECT 47, + 94 col2
----
47
94

query I rowsort
SELECT ALL + 28 + + - NULLIF ( - ( - 93 ), 31 * + 97 ) * + + 23 AS col0
----
-2111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT 29 + + CAST( NULL AS SIGNED ) + - 75 * + 45 + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT 29 + + CAST ( NULL AS INTEGER ) + - 75 * + 45 + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL SUM( - - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL SUM ( - - 42 ) AS col2
----
42

query I rowsort
SELECT ALL 86 * 29
----
2494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL - CAST( 82 AS SIGNED ) * + COALESCE ( - COALESCE ( COUNT( * ), - 52 * - 68 - + 28 - + 85 + + - 76 ), - 18, - MIN( DISTINCT + - 47 ) )
----
82

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - CAST ( 82 AS INTEGER ) * + COALESCE ( - COALESCE ( COUNT ( * ), - 52 * - 68 - + 28 - + 85 + + - 76 ), - 18, - MIN ( DISTINCT + - 47 ) )
----
82

query I rowsort
SELECT DISTINCT + COALESCE ( - 97, - 53 ) - 94 AS col0
----
-191

query I rowsort
SELECT DISTINCT - 46 * + 86 * - 94 AS col1
----
371864

query I rowsort
SELECT DISTINCT 39 - + 15
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ALL - NULLIF ( + COUNT( * ), - - ( - - 25 ) ) * 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL - NULLIF ( + COUNT ( * ), - - ( - - 25 ) ) * 88 AS col2
----
-88

query II rowsort
SELECT - 74 * + ( ( - ( - 32 ) ) ) AS col2, 64
----
-2368
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT - COALESCE ( ( + 59 ), + 75 DIV 38 + - 16 )
----
-59

skipif mysql # not compatible
query I rowsort label-5702
SELECT - COALESCE ( ( + 59 ), + 75 / 38 + - 16 )
----
-59

query I rowsort
SELECT + NULLIF ( + 3, + 73 * 99 ) * + 80 * - 92
----
-22080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5704
SELECT + COUNT( * ) + + 91 * + - 35 AS col2, 70 DIV + COALESCE ( + 97, - 44 * + 23 + - 38 + + 65, + - 47 ) + 54 AS col2
----
-3184
54

skipif mysql # not compatible
query II rowsort label-5704
SELECT + COUNT ( * ) + + 91 * + - 35 AS col2, 70 / + COALESCE ( + 97, - 44 * + 23 + - 38 + + 65, + - 47 ) + 54 AS col2
----
-3184
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT ALL 38 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL 38 / - 73
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT ALL 84 DIV - - 48
----
1

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL 84 / - - 48
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT ALL 2 * - 31 DIV - 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL 2 * - 31 / - 25 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL + - 49 * + 58 * + + 12 - - 88 + + COUNT( 9 )
----
-34015

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + - 49 * + 58 * + + 12 - - 88 + + COUNT ( 9 )
----
-34015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5709
SELECT 30 * CAST( NULL AS SIGNED ) * 77 * + 24 + - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT 30 * CAST ( NULL AS INTEGER ) * 77 * + 24 + - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL COUNT( * ) * + - 93 + 68
----
-25

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL COUNT ( * ) * + - 93 + 68
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT + CAST( 5 AS SIGNED ) * ( + 48 ) AS col2
----
240

skipif mysql # not compatible
query I rowsort label-5711
SELECT + CAST ( 5 AS INTEGER ) * ( + 48 ) AS col2
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5712
SELECT - 59 DIV - - 93 + SUM( DISTINCT + - 28 ) * 40 + - NULLIF ( - - 65, 68 * CAST( NULL AS SIGNED ) + - COUNT( * ) * + 80 * 94 + + 24 ) DIV 36
----
-1121

skipif mysql # not compatible
query I rowsort label-5712
SELECT - 59 / - - 93 + SUM ( DISTINCT + - 28 ) * 40 + - NULLIF ( - - 65, 68 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 80 * 94 + + 24 ) / 36
----
-1121

query II rowsort
SELECT + 85 * + - 21, 1 AS col0
----
-1785
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT - SUM( DISTINCT - 29 ), - ( 8 ) AS col2
----
29
-8

skipif mysql # not compatible
query II rowsort label-5714
SELECT - SUM ( DISTINCT - 29 ), - ( 8 ) AS col2
----
29
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - 83 * - 91 + + COUNT( * ) AS col0
----
7554

skipif mysql # not compatible
query I rowsort label-5715
SELECT - 83 * - 91 + + COUNT ( * ) AS col0
----
7554

query II rowsort
SELECT DISTINCT + 13 * + 62 + - 82, 60 * + 40 + + 81 AS col2
----
724
2481

query I rowsort
SELECT DISTINCT - + 67 * - 5 + - 62 + + 87
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT NULLIF ( - - 3, CASE - 91 WHEN - COALESCE ( - AVG ( ALL - 19 ), 7, + + 22 * + 78 ) THEN - 83 * - + 12 * + + COALESCE ( + 0, - - COUNT( * ), - - NULLIF ( 25, + 15 ) * - NULLIF ( 53, - + 60 + 80 * - + 23 + - CASE - 73 WHEN - SUM( DISTINCT 80 ) - - 50 THEN NULL ELSE + + 39 END ) - + 27 + 19 + 87 ) - + 46 - - 75 * 28 WHEN - SUM( ( + 89 ) ) THEN NULL END )
----
3

skipif mysql # not compatible
query I rowsort label-5718
SELECT NULLIF ( - - 3, CASE - 91 WHEN - COALESCE ( - AVG ( ALL - 19 ), 7, + + 22 * + 78 ) THEN - 83 * - + 12 * + + COALESCE ( + 0, - - COUNT ( * ), - - NULLIF ( 25, + 15 ) * - NULLIF ( 53, - + 60 + 80 * - + 23 + - CASE - 73 WHEN - SUM ( DISTINCT 80 ) - - 50 THEN NULL ELSE + + 39 END ) - + 27 + 19 + 87 ) - + 46 - - 75 * 28 WHEN - SUM ( ( + 89 ) ) THEN NULL END )
----
3

query I rowsort
SELECT DISTINCT + 19 * 22 + 79 + - 53
----
444

query I rowsort
SELECT + - ( - 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5721
SELECT ALL - + CAST( - 55 AS SIGNED ) * COUNT( * ) * - NULLIF ( + - 54, 5 ) - 49
----
2921

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL - + CAST ( - 55 AS INTEGER ) * COUNT ( * ) * - NULLIF ( + - 54, 5 ) - 49
----
2921

query I rowsort
SELECT - COALESCE ( - 69, - 25 ) + + 37
----
106

query I rowsort
SELECT - 16 + 61 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL + COUNT( * ) * - 84 - - MIN( + 19 )
----
-65

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL + COUNT ( * ) * - 84 - - MIN ( + 19 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5725
SELECT DISTINCT COUNT( * ) AS col2, + ( - 94 ) AS col1
----
1
-94

skipif mysql # not compatible
query II rowsort label-5725
SELECT DISTINCT COUNT ( * ) AS col2, + ( - 94 ) AS col1
----
1
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT ALL COALESCE ( COUNT( * ), + 84 * + - 74 * 55 - COALESCE ( - COUNT( * ), - 80 ) ), - 18 AS col2
----
1
-18

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL COALESCE ( COUNT ( * ), + 84 * + - 74 * 55 - COALESCE ( - COUNT ( * ), - 80 ) ), - 18 AS col2
----
1
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5727
SELECT - 86 + - - 57 + 61 * - + CAST( NULL AS DECIMAL ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT - 86 + - - 57 + 61 * - + CAST ( NULL AS REAL ) * - 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5728
SELECT - SUM( DISTINCT + 61 ) * + CAST( NULL AS SIGNED ) AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5728
SELECT - SUM ( DISTINCT + 61 ) * + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * )
----
NULL
1

query II rowsort
SELECT - ( + 81 ) + 13 AS col2, 72 * + 58 AS col2
----
-68
4176

query I rowsort
SELECT DISTINCT + 69 * + 17
----
1173

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT - 26 * 37 * - ( - COALESCE ( - 69, - + 92, 2, + COUNT( * ) * 86 * + 39 * + + 83 ) ) AS col2, 77
----
66378
77

skipif mysql # not compatible
query II rowsort label-5731
SELECT - 26 * 37 * - ( - COALESCE ( - 69, - + 92, 2, + COUNT ( * ) * 86 * + 39 * + + 83 ) ) AS col2, 77
----
66378
77

query I rowsort
SELECT + 32 + + ( - + 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT - 51 * - MAX( + 90 ) AS col1
----
4590

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - 51 * - MAX ( + 90 ) AS col1
----
4590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT ALL + COUNT( DISTINCT + ( + 92 ) ) * + - 98 DIV - + 81
----
1

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + COUNT ( DISTINCT + ( + 92 ) ) * + - 98 / - + 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT ( + NULLIF ( 45, NULLIF ( - COUNT( * ), + - 58 ) ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT ( + NULLIF ( 45, NULLIF ( - COUNT ( * ), + - 58 ) ) ) AS col2
----
45

query I rowsort
SELECT DISTINCT + 6 * - - 80 * 87 AS col0
----
41760

query I rowsort
SELECT DISTINCT ( + 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT ALL + 97 + + - CAST( + COUNT( * ) AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + 97 + + - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT DISTINCT + 37 + + 42 + + - 51 DIV 46 + 13 + + 63 + - 92 + + 32 + - ( - COALESCE ( + 61, + 64, 35 * - + 5 * MAX( DISTINCT - 66 ) DIV + 18 ) ) * - 76 * - 15 * 52 AS col0
----
3616174

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT + 37 + + 42 + + - 51 / 46 + 13 + + 63 + - 92 + + 32 + - ( - COALESCE ( + 61, + 64, 35 * - + 5 * MAX ( DISTINCT - 66 ) / + 18 ) ) * - 76 * - 15 * 52 AS col0
----
3616174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL - - CAST( NULL AS SIGNED ) + 68 + 15 * 44 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - - CAST ( NULL AS INTEGER ) + 68 + 15 * 44 + 47
----
NULL

query I rowsort
SELECT - + ( 31 ) AS col1
----
-31

query I rowsort
SELECT + + 10 * + 42
----
420

query I rowsort
SELECT ALL - 4 + - 84 - - 59 AS col2
----
-29

query I rowsort
SELECT - - 99 - - 62
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT COUNT( * ), - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-5745
SELECT COUNT ( * ), - COUNT ( * ) AS col2
----
1
-1

query II rowsort
SELECT - 71 AS col0, + 40 AS col0
----
-71
40

query I rowsort
SELECT ALL + - ( 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT ALL - MIN( + 58 ) * + 30 col1
----
-1740

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL - MIN ( + 58 ) * + 30 col1
----
-1740

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5749
SELECT + 5 DIV CAST( + 38 AS SIGNED ) * + 35 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-5749
SELECT + 5 / CAST ( + 38 AS INTEGER ) * + 35 * - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5750
SELECT ALL + + 23 DIV MAX( ALL 11 ) + + 25
----
27

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + + 23 / MAX ( ALL 11 ) + + 25
----
27

query II rowsort
SELECT ALL + + 98 AS col0, 35 AS col0
----
98
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL 2 * + COUNT( * ) * - 93 AS col0
----
-186

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL 2 * + COUNT ( * ) * - 93 AS col0
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT + COUNT( * ) DIV + 41 - + ( - 38 ) + - 92 + 53 * + 48 AS col2
----
2490

skipif mysql # not compatible
query I rowsort label-5753
SELECT + COUNT ( * ) / + 41 - + ( - 38 ) + - 92 + 53 * + 48 AS col2
----
2490

onlyif mysql # DIV for integer division: 
query II rowsort label-5754
SELECT ALL - 29 DIV 11 + 51 - - + 69, - 35 AS col2
----
118
-35

skipif mysql # not compatible
query II rowsort label-5754
SELECT ALL - 29 / 11 + 51 - - + 69, - 35 AS col2
----
118
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT + 28 col1, - COUNT( * ) + - + ( 59 )
----
28
-60

skipif mysql # not compatible
query II rowsort label-5755
SELECT + 28 col1, - COUNT ( * ) + - + ( 59 )
----
28
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT NULLIF ( + 36, - 33 + 98 + COUNT( * ) * 14 ) AS col2, - 99
----
36
-99

skipif mysql # not compatible
query II rowsort label-5756
SELECT NULLIF ( + 36, - 33 + 98 + COUNT ( * ) * 14 ) AS col2, - 99
----
36
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5757
SELECT + + 22 DIV - 85 + - COALESCE ( 59, - + 60 + - 56, - CAST( + 39 AS SIGNED ), - 25 DIV + ( + - 18 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-5757
SELECT + + 22 / - 85 + - COALESCE ( 59, - + 60 + - 56, - CAST ( + 39 AS INTEGER ), - 25 / + ( + - 18 ) )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT - ( 42 ) * + 19 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT - ( 42 ) * + 19 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 12 AS col0, COALESCE ( + 44, + + 89 )
----
12
44

query I rowsort
SELECT + 21 + + 17 col2
----
38

query I rowsort
SELECT - 91 * + 6
----
-546

query II rowsort
SELECT ALL + 63 AS col1, - 98
----
63
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL + CASE 67 WHEN + 65 THEN - ( COUNT( * ) ) WHEN - - 31 - AVG ( ALL - 42 ) * + + 56 * + 30 THEN NULL END * + 51 - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + CASE 67 WHEN + 65 THEN - ( COUNT ( * ) ) WHEN - - 31 - AVG ( ALL - 42 ) * + + 56 * + 30 THEN NULL END * + 51 - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL - COALESCE ( + + CAST( NULL AS SIGNED ), 60 + 67 - - + 60 * + 31 * - COUNT( * ) )
----
1733

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - COALESCE ( + + CAST ( NULL AS INTEGER ), 60 + 67 - - + 60 * + 31 * - COUNT ( * ) )
----
1733

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT COUNT( * ) * - + 22 - - + 50 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( * ) * - + 22 - - + 50 AS col0
----
28

query I rowsort
SELECT 73 + + + ( - 96 ) - + 27
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL 27 * CAST( - 76 AS SIGNED )
----
-2052

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL 27 * CAST ( - 76 AS INTEGER )
----
-2052

query I rowsort
SELECT ( - + 74 ) * 59 * 31 + - - 47 + 20
----
-135279

query I rowsort
SELECT DISTINCT + 83 * - + 78
----
-6474

query I rowsort
SELECT DISTINCT + 11 + + - 98
----
-87

query II rowsort
SELECT ( - 92 ) + ( - 40 ), 26 * 75 * - + 3 AS col0
----
-132
-5850

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT DISTINCT - 39 DIV - - ( + 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT - 39 / - - ( + 30 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT 14 DIV COUNT( + 50 )
----
14

skipif mysql # not compatible
query I rowsort label-5773
SELECT 14 / COUNT ( + 50 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT - COUNT( * ) * - 78 * 83 + - 37 * + + COUNT( * )
----
6437

skipif mysql # not compatible
query I rowsort label-5774
SELECT - COUNT ( * ) * - 78 * 83 + - 37 * + + COUNT ( * )
----
6437

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT DISTINCT - + 58 * 96 * + 49 + + - COUNT( * ) AS col2, 68 AS col0
----
-272833
68

skipif mysql # not compatible
query II rowsort label-5775
SELECT DISTINCT - + 58 * 96 * + 49 + + - COUNT ( * ) AS col2, 68 AS col0
----
-272833
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT 49 + + 76 + COUNT( * ) * 91 * 27 + + 69 AS col2
----
2651

skipif mysql # not compatible
query I rowsort label-5776
SELECT 49 + + 76 + COUNT ( * ) * 91 * 27 + + 69 AS col2
----
2651

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - COUNT( * ) - - 65 * + 16
----
1039

skipif mysql # not compatible
query I rowsort label-5777
SELECT - COUNT ( * ) - - 65 * + 16
----
1039

query I rowsort
SELECT ALL - + 8 * + 36 + + 10 AS col0
----
-278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT - CAST( - 40 AS SIGNED ) + + - 15 - - + 32
----
57

skipif mysql # not compatible
query I rowsort label-5779
SELECT - CAST ( - 40 AS INTEGER ) + + - 15 - - + 32
----
57

query I rowsort
SELECT 42 + + 33 AS col0
----
75

query I rowsort
SELECT ALL + 92 - - ( + 6 )
----
98

query I rowsort
SELECT + COALESCE ( + + 96, - - 79 * - - 28 ) * 57 col2
----
5472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5783
SELECT DISTINCT + CASE - 48 WHEN 1 THEN + + CAST( NULL AS SIGNED ) * - + 79 + - - CAST( 64 AS DECIMAL ) END - 17 * + - 90 + - + COUNT( * ) * - 57 * + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + CASE - 48 WHEN 1 THEN + + CAST ( NULL AS INTEGER ) * - + 79 + - - CAST ( 64 AS REAL ) END - 17 * + - 90 + - + COUNT ( * ) * - 57 * + + 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5784
SELECT DISTINCT - - COALESCE ( - 15, - + 81, 97 + 11 ) col1, CASE - - COUNT( * ) WHEN - COUNT( * ) THEN - 31 END / + + 60 + - 41 * NULLIF ( + - 86, - CAST( NULL AS DECIMAL ) ) * - + CAST( NULL AS SIGNED )
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-5784
SELECT DISTINCT - - COALESCE ( - 15, - + 81, 97 + 11 ) col1, CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN - 31 END / + + 60 + - 41 * NULLIF ( + - 86, - CAST ( NULL AS REAL ) ) * - + CAST ( NULL AS INTEGER )
----
-15
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5785
SELECT 11 + - ( - 35 ) * 50 AS col0, COUNT( * ) * - + 99 AS col0
----
1761
-99

skipif mysql # not compatible
query II rowsort label-5785
SELECT 11 + - ( - 35 ) * 50 AS col0, COUNT ( * ) * - + 99 AS col0
----
1761
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT DISTINCT - MAX( DISTINCT + 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - MAX ( DISTINCT + 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL - - NULLIF ( 38, + - ( + - COUNT( * ) ) )
----
38

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - - NULLIF ( 38, + - ( + - COUNT ( * ) ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + + NULLIF ( + 57, + ( + SUM( DISTINCT - ( - + 66 ) ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-5788
SELECT + + NULLIF ( + 57, + ( + SUM ( DISTINCT - ( - + 66 ) ) ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL - 16 * NULLIF ( - 46, - 76 * 22 ) * + 82 - + COUNT( * ) AS col1
----
60351

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - 16 * NULLIF ( - 46, - 76 * 22 ) * + 82 - + COUNT ( * ) AS col1
----
60351

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT 67 DIV 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5790
SELECT 67 / 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT DISTINCT 92 * - + COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT 92 * - + COUNT ( * ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL 27 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL 27 * - COUNT ( * )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT 44 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT 44 / 88 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5794
SELECT 80 DIV 35 * + 70 * + SUM( ( + CAST( 78 AS SIGNED ) ) )
----
10920

skipif mysql # not compatible
query I rowsort label-5794
SELECT 80 / 35 * + 70 * + SUM ( ( + CAST ( 78 AS INTEGER ) ) )
----
10920

query II rowsort
SELECT 24 * + 33 + + 23 * 84 * + 34, 33 AS col1
----
66480
33

query I rowsort
SELECT CASE 78 WHEN + 51 THEN + 64 END + - + 1 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT + 71 * - 33 - + 72 DIV 88
----
-2343

skipif mysql # not compatible
query I rowsort label-5797
SELECT + 71 * - 33 - + 72 / 88
----
-2343

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT ALL 15 + + + 97 + - 37 DIV + 93
----
112

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL 15 + + + 97 + - 37 / + 93
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT CAST( NULL AS SIGNED ) * ( + - 16 ) + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT CAST ( NULL AS INTEGER ) * ( + - 16 ) + + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT 87 AS col2, + 76 * - MIN( + - 94 )
----
87
7144

skipif mysql # not compatible
query II rowsort label-5800
SELECT 87 AS col2, + 76 * - MIN ( + - 94 )
----
87
7144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL 79 + + CASE 26 WHEN - MIN( ALL - 12 ) * + 88 THEN 39 * CASE - 99 WHEN 16 * + + CAST( NULL AS SIGNED ) THEN + + CASE 63 WHEN - 62 - + - 86 THEN NULL ELSE COALESCE ( + COALESCE ( - 75, + 29 * - + COUNT( * ), ( - + 12 ) ), + 44 ) * + 40 * 95 + - 82 END END * - + 89 + + 62 + + COUNT( * ) + CASE 76 WHEN + COUNT( * ) THEN NULL WHEN - 67 THEN NULL WHEN ( - - 96 ) THEN - COUNT( * ) ELSE NULL END - + 67 * - 55 WHEN + 70 * 22 THEN + CASE + 64 WHEN - 33 * - 59 THEN MAX( DISTINCT 61 ) * - 49 ELSE NULL END + - 11 ELSE + CASE + 93 WHEN - 25 THEN + 26 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL 79 + + CASE 26 WHEN - MIN ( ALL - 12 ) * + 88 THEN 39 * CASE - 99 WHEN 16 * + + CAST ( NULL AS INTEGER ) THEN + + CASE 63 WHEN - 62 - + - 86 THEN NULL ELSE COALESCE ( + COALESCE ( - 75, + 29 * - + COUNT ( * ), ( - + 12 ) ), + 44 ) * + 40 * 95 + - 82 END END * - + 89 + + 62 + + COUNT ( * ) + CASE 76 WHEN + COUNT ( * ) THEN NULL WHEN - 67 THEN NULL WHEN ( - - 96 ) THEN - COUNT ( * ) ELSE NULL END - + 67 * - 55 WHEN + 70 * 22 THEN + CASE + 64 WHEN - 33 * - 59 THEN MAX ( DISTINCT 61 ) * - 49 ELSE NULL END + - 11 ELSE + CASE + 93 WHEN - 25 THEN + 26 END END
----
NULL

query I rowsort
SELECT 5 + 78 + - 39 * + 10
----
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + 60 * - + COUNT( * ) * + 23 - - 71 AS col1
----
-1309

skipif mysql # not compatible
query I rowsort label-5803
SELECT + 60 * - + COUNT ( * ) * + 23 - - 71 AS col1
----
-1309

query I rowsort
SELECT ALL + + 43 - + 24 + + 89 * + 89 * + ( 26 )
----
205965

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5805
SELECT ALL - CAST( - + 22 AS SIGNED ) - 84 AS col0, 82 AS col0
----
-62
82

skipif mysql # not compatible
query II rowsort label-5805
SELECT ALL - CAST ( - + 22 AS INTEGER ) - 84 AS col0, 82 AS col0
----
-62
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT + ( + 59 ) - 53 DIV + 2 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5806
SELECT + ( + 59 ) - 53 / + 2 AS col2
----
33

query I rowsort
SELECT ALL + 11 * - - 2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT ALL + COUNT( * ) DIV + - 54 * + 66
----
0

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL + COUNT ( * ) / + - 54 * + 66
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT ( 42 ) * 93 col0, - 7 * + SUM( - 68 ) * CASE - 67 WHEN - AVG ( DISTINCT + 60 ) THEN - + 56 * 83 * - 47 + + 83 ELSE NULL END * - - ( - 65 ) * - - AVG ( 6 ) AS col1
----
3906
NULL

skipif mysql # not compatible
query II rowsort label-5809
SELECT ( 42 ) * 93 col0, - 7 * + SUM ( - 68 ) * CASE - 67 WHEN - AVG ( DISTINCT + 60 ) THEN - + 56 * 83 * - 47 + + 83 ELSE NULL END * - - ( - 65 ) * - - AVG ( 6 ) AS col1
----
3906
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + + CASE + 1 WHEN + - 47 THEN NULL ELSE - CASE - 35 WHEN + COUNT( * ) + + 83 - - 94 / + 91 THEN - + 13 WHEN 10 THEN + ( - 27 ) * - 15 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT + + CASE + 1 WHEN + - 47 THEN NULL ELSE - CASE - 35 WHEN + COUNT ( * ) + + 83 - - 94 / + 91 THEN - + 13 WHEN 10 THEN + ( - 27 ) * - 15 ELSE NULL END END
----
NULL

query I rowsort
SELECT ALL - 20 * - 30
----
600

query I rowsort
SELECT - - 14 * + + NULLIF ( - - 80, - - AVG ( DISTINCT 32 ) * + 6 ) col1
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-5813
SELECT ALL + 33 AS col0, + MIN( + - 40 ) + 55 AS col2
----
33
15

skipif mysql # not compatible
query II rowsort label-5813
SELECT ALL + 33 AS col0, + MIN ( + - 40 ) + 55 AS col2
----
33
15

query I rowsort
SELECT ALL + + 87 col0
----
87

query I rowsort
SELECT DISTINCT - 76 * 15 AS col0
----
-1140

query I rowsort
SELECT - 39 - - NULLIF ( - + 71, + 55 * 99 * - 84 ) * 99 + + - 85
----
-7153

query I rowsort
SELECT ALL - 59 * + 49 AS col0
----
-2891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5818
SELECT - 57 * - - 68 * - CASE + 62 WHEN 24 THEN + 79 WHEN + - COUNT( * ) THEN 14 ELSE + + 67 + - CAST( - + 43 AS SIGNED ) * 69 END * + 80 AS col2
----
940782720

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 57 * - - 68 * - CASE + 62 WHEN 24 THEN + 79 WHEN + - COUNT ( * ) THEN 14 ELSE + + 67 + - CAST ( - + 43 AS INTEGER ) * 69 END * + 80 AS col2
----
940782720

query I rowsort
SELECT - 63 * ( - + ( - 5 ) )
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT COALESCE ( 80, - + COUNT( - 44 ), + 2 )
----
80

skipif mysql # not compatible
query I rowsort label-5820
SELECT COALESCE ( 80, - + COUNT ( - 44 ), + 2 )
----
80

query I rowsort
SELECT ALL + ( - - ( + 30 ) ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT - CASE - 8 WHEN COUNT( * ) THEN - 53 END + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT - CASE - 8 WHEN COUNT ( * ) THEN - 53 END + 0
----
NULL

query II rowsort
SELECT DISTINCT + 2 AS col0, 82
----
2
82

query I rowsort
SELECT ALL 74 * 72 AS col2
----
5328

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT DISTINCT 79 * 4 + - COALESCE ( + 51, COUNT( * ) * + 96 ) AS col0, MIN( ALL 4 )
----
265
4

skipif mysql # not compatible
query II rowsort label-5825
SELECT DISTINCT 79 * 4 + - COALESCE ( + 51, COUNT ( * ) * + 96 ) AS col0, MIN ( ALL 4 )
----
265
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT DISTINCT 9 * COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT 9 * COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT + COUNT( ALL + 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5827
SELECT + COUNT ( ALL + 54 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + CASE - MAX( ALL - 74 ) WHEN + 91 * + 66 THEN + 31 - - 87 + 29 + 95 * - - 63 WHEN - + 29 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT + CASE - MAX ( ALL - 74 ) WHEN + 91 * + 66 THEN + 31 - - 87 + 29 + 95 * - - 63 WHEN - + 29 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 31 * + 0 * 60
----
0

query I rowsort
SELECT - 37 - - 0 AS col2
----
-37

query I rowsort
SELECT + 2 * 33 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT - COUNT( + 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5832
SELECT - COUNT ( + 95 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT + 19 DIV ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-5833
SELECT + 19 / ( 59 )
----
0

query II rowsort
SELECT DISTINCT 65 AS col0, + 71 * - 20 AS col1
----
65
-1420

query I rowsort
SELECT DISTINCT ( + + CASE - - 99 WHEN - 53 THEN - 87 WHEN + - 98 THEN 20 - - NULLIF ( + + AVG ( - - 19 ), - + 66 * + + 98 ) ELSE - 80 END ) AS col2
----
-80

query II rowsort
SELECT 96, - 15 col2
----
96
-15

query I rowsort
SELECT + 85 * - ( - 92 )
----
7820

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT ALL - 76 * COUNT( * ) - - ( - 70 ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - 76 * COUNT ( * ) - - ( - 70 ) AS col2
----
-146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5839
SELECT + 94 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT + 94 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT ALL - ( 3 ) - - SUM( - 89 ) + - - 88 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - ( 3 ) - - SUM ( - 89 ) + - - 88 AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT + COUNT( * ) + + 74 + CAST( NULL AS SIGNED ) / + COALESCE ( + 70, + + 64 ) + + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT + COUNT ( * ) + + 74 + CAST ( NULL AS INTEGER ) / + COALESCE ( + 70, + + 64 ) + + 14 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 82 * 28
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT + - 10 + + - MAX( DISTINCT - 90 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5843
SELECT + - 10 + + - MAX ( DISTINCT - 90 ) AS col1
----
80

query I rowsort
SELECT - + 4 * NULLIF ( + - 13, - 20 ) AS col1
----
52

query I rowsort
SELECT ALL - ( - + 64 ) AS col1
----
64

query I rowsort
SELECT ALL ( - 7 ) col1
----
-7

onlyif mysql # aggregate syntax: 
query III rowsort label-5847
SELECT ALL 19 AS col0, 89 AS col1, 84 + - 80 + + - 57 * 85 + COUNT( * ) * - 17 * 82 + - 48
----
19
89
-6283

skipif mysql # not compatible
query III rowsort label-5847
SELECT ALL 19 AS col0, 89 AS col1, 84 + - 80 + + - 57 * 85 + COUNT ( * ) * - 17 * 82 + - 48
----
19
89
-6283

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + - 60 + - 53 * - + SUM( DISTINCT - + 6 )
----
-378

skipif mysql # not compatible
query I rowsort label-5848
SELECT + - 60 + - 53 * - + SUM ( DISTINCT - + 6 )
----
-378

query I rowsort
SELECT ALL 66 * 43
----
2838

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL + MIN( ALL - + 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + MIN ( ALL - + 69 ) AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL + - CASE + 38 WHEN + COUNT( * ) THEN + 72 WHEN - + 99 * - - 33 * - + 42 * - - 62 THEN NULL ELSE NULL END + + 62 + 1 * - - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + - CASE + 38 WHEN + COUNT ( * ) THEN + 72 WHEN - + 99 * - - 33 * - + 42 * - - 62 THEN NULL ELSE NULL END + + 62 + 1 * - - 54 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT + - NULLIF ( - 93, 56 ) * + CAST( NULL AS SIGNED ) * - - 54 - COUNT( * ) + - + 86 * - + COALESCE ( - 48, + + 39 * + + 89 + 61 + 56 / - - 9 + 55 ) * - - ( - 33 ) - 13 - + - 67 + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT + - NULLIF ( - 93, 56 ) * + CAST ( NULL AS INTEGER ) * - - 54 - COUNT ( * ) + - + 86 * - + COALESCE ( - 48, + + 39 * + + 89 + 61 + 56 / - - 9 + 55 ) * - - ( - 33 ) - 13 - + - 67 + + 42
----
NULL

query II rowsort
SELECT DISTINCT + 9 AS col0, 36 AS col0
----
9
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT 70 col0, COUNT( * ) AS col2
----
70
1

skipif mysql # not compatible
query II rowsort label-5854
SELECT 70 col0, COUNT ( * ) AS col2
----
70
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5855
SELECT ALL 63 DIV + NULLIF ( CASE + COALESCE ( + ( + 72 ), - CASE - + 98 WHEN - CASE + - 4 WHEN - + COUNT( * ) - COUNT( * ) THEN + 19 END + - + 2 THEN + - 62 * + 5 + - + 10 + ( 21 ) * 53 * - - 85 + + SUM( ALL + 51 ) WHEN - + COUNT( * ) + + 54 - - 83 DIV 78 + + - 86 * - 52 * + 81 + - - 19 * - MAX( + 88 ) THEN CASE 47 WHEN - COUNT( * ) THEN - SUM( 67 ) * 80 END END, COUNT( ALL 94 ) DIV COALESCE ( 48 * AVG ( DISTINCT + 44 * 73 ), ( - 23 ) + CASE WHEN 83 IS NULL THEN - CASE 36 WHEN - CASE + COUNT( DISTINCT + 99 ) WHEN 6 * 45 - + 53 * 67 THEN 82 DIV 67 ELSE - ( 78 ) DIV 75 END * 37 THEN ( COUNT( * ) ) ELSE NULL END + 47 * - 6 END ) ) WHEN 64 THEN NULL ELSE - 45 END, 58 * 60 + - 7 ) + 47 DIV + 5
----
8

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL 63 / + NULLIF ( CASE + COALESCE ( + ( + 72 ), - CASE - + 98 WHEN - CASE + - 4 WHEN - + COUNT ( * ) - COUNT ( * ) THEN + 19 END + - + 2 THEN + - 62 * + 5 + - + 10 + ( 21 ) * 53 * - - 85 + + SUM ( ALL + 51 ) WHEN - + COUNT ( * ) + + 54 - - 83 / 78 + + - 86 * - 52 * + 81 + - - 19 * - MAX ( + 88 ) THEN CASE 47 WHEN - COUNT ( * ) THEN - SUM ( 67 ) * 80 END END, COUNT ( ALL 94 ) / COALESCE ( 48 * AVG ( DISTINCT + 44 * 73 ), ( - 23 ) + CASE WHEN 83 IS NULL THEN - CASE 36 WHEN - CASE + COUNT ( DISTINCT + 99 ) WHEN 6 * 45 - + 53 * 67 THEN 82 / 67 ELSE - ( 78 ) / 75 END * 37 THEN ( COUNT ( * ) ) ELSE NULL END + 47 * - 6 END ) ) WHEN 64 THEN NULL ELSE - 45 END, 58 * 60 + - 7 ) + 47 / + 5
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5856
SELECT - COALESCE ( NULLIF ( - - MIN( ALL - 50 ), 26 ), + - 19 ) + 8 + - CAST( + 43 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5856
SELECT - COALESCE ( NULLIF ( - - MIN ( ALL - 50 ), 26 ), + - 19 ) + 8 + - CAST ( + 43 AS INTEGER ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL 31 / + - 99 + + 69 + - 55 * CASE - - COUNT( * ) WHEN + 8 THEN 18 END * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL 31 / + - 99 + + 69 + - 55 * CASE - - COUNT ( * ) WHEN + 8 THEN 18 END * + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL + COUNT( * ) * + 51 * + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL + COUNT ( * ) * + 51 * + - COUNT ( * )
----
-51

query I rowsort
SELECT DISTINCT - 51 * - 34 AS col0
----
1734

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT - COUNT( ALL - 72 ) + 40 - 88
----
-49

skipif mysql # not compatible
query I rowsort label-5860
SELECT - COUNT ( ALL - 72 ) + 40 - 88
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT CASE + 67 WHEN + + 22 THEN SUM( 26 ) WHEN COUNT( * ) THEN NULL END * - 79 + - - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT CASE + 67 WHEN + + 22 THEN SUM ( 26 ) WHEN COUNT ( * ) THEN NULL END * - 79 + - - 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5862
SELECT ( - + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT ( - + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5863
SELECT - COALESCE ( + 65, 55 DIV - + 66, + 26 DIV - 28 DIV - COUNT( * ) * - 27 + 3 ) + - + 40 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-5863
SELECT - COALESCE ( + 65, 55 / - + 66, + 26 / - 28 / - COUNT ( * ) * - 27 + 3 ) + - + 40 AS col0
----
-105

query I rowsort
SELECT ALL + ( + 29 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT DISTINCT COALESCE ( COUNT( * ), + COUNT( * ), + 3 * 81 + - - 21 ) * + 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT COALESCE ( COUNT ( * ), + COUNT ( * ), + 3 * 81 + - - 21 ) * + 61 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT DISTINCT CAST( + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT CAST ( + 17 AS INTEGER )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT + CASE CAST( + 16 AS SIGNED ) WHEN 64 + 15 THEN NULL WHEN - 26 THEN 30 * + + COUNT( * ) * - COALESCE ( 67, + + COUNT( * ) * + NULLIF ( + ( - - 18 ), - - MAX( ALL + 46 ) ) + - - 73 + - SUM( + + 90 ) ) * - 86 * 52 END * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT + CASE CAST ( + 16 AS INTEGER ) WHEN 64 + 15 THEN NULL WHEN - 26 THEN 30 * + + COUNT ( * ) * - COALESCE ( 67, + + COUNT ( * ) * + NULLIF ( + ( - - 18 ), - - MAX ( ALL + 46 ) ) + - - 73 + - SUM ( + + 90 ) ) * - 86 * 52 END * - 24
----
NULL

query I rowsort
SELECT ALL + 5 * - + 55
----
-275

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5869
SELECT + + 99 + - 51 * 12 + NULLIF ( - CAST( - CAST( - 10 AS DECIMAL ) AS SIGNED ), - 29 ) + - + 18
----
-541

skipif mysql # not compatible
query I rowsort label-5869
SELECT + + 99 + - 51 * 12 + NULLIF ( - CAST ( - CAST ( - 10 AS REAL ) AS INTEGER ), - 29 ) + - + 18
----
-541

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT - + 55 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-5870
SELECT - + 55 / 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5871
SELECT + + 50 + COUNT( * ), - MIN( 74 ) AS col0
----
51
-74

skipif mysql # not compatible
query II rowsort label-5871
SELECT + + 50 + COUNT ( * ), - MIN ( 74 ) AS col0
----
51
-74

query I rowsort
SELECT + 15 + + 60 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT + - 30 * SUM( - 40 )
----
1200

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + - 30 * SUM ( - 40 )
----
1200

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT DISTINCT - - 67 * COUNT( ALL - - 85 ) AS col1, COUNT( * ) AS col1
----
67
1

skipif mysql # not compatible
query II rowsort label-5874
SELECT DISTINCT - - 67 * COUNT ( ALL - - 85 ) AS col1, COUNT ( * ) AS col1
----
67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL - COUNT( * ) + + + CASE + - 35 WHEN - - COUNT( * ) THEN + 50 * 1 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - COUNT ( * ) + + + CASE + - 35 WHEN - - COUNT ( * ) THEN + 50 * 1 END col2
----
NULL

query I rowsort
SELECT ( + + 71 ) * + + 9 AS col2
----
639

query I rowsort
SELECT DISTINCT 0 + + ( 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT - ( 46 ) - - - COUNT( DISTINCT + 95 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5878
SELECT - ( 46 ) - - - COUNT ( DISTINCT + 95 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT DISTINCT 10 * + + 63 * - COUNT( * ) AS col1
----
-630

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT 10 * + + 63 * - COUNT ( * ) AS col1
----
-630

query I rowsort
SELECT ALL 69 + - 45 AS col0
----
24

query II rowsort
SELECT DISTINCT - NULLIF ( 20, 56 ) AS col0, + ( 98 ) * + 2 * - - 92 AS col0
----
-20
18032

query I rowsort
SELECT ALL + 11 + 98 col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5883
SELECT CAST( CASE - SUM( + 14 ) WHEN + CASE WHEN NULL <= ( NULL ) THEN - - 39 ELSE - + 88 / - - 97 + ( + + ( 87 ) ) * - - 3 + - 36 END + - - 32 + + 61 THEN NULL WHEN - ( - 2 ) THEN - COUNT( * ) * 9 ELSE NULL END AS DECIMAL ) * 53 * 49 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT CAST ( CASE - SUM ( + 14 ) WHEN + CASE WHEN NULL <= ( NULL ) THEN - - 39 ELSE - + 88 / - - 97 + ( + + ( 87 ) ) * - - 3 + - 36 END + - - 32 + + 61 THEN NULL WHEN - ( - 2 ) THEN - COUNT ( * ) * 9 ELSE NULL END AS REAL ) * 53 * 49 * - 55
----
NULL

query I rowsort
SELECT ALL 62 * 97 col0
----
6014

query I rowsort
SELECT 47 * + - 50 + + 25 * - 7
----
-2525

query I rowsort
SELECT 98 - + 30 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT 8 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-5887
SELECT 8 / + 10
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5888
SELECT CAST( + - 19 AS SIGNED ) * + 16 AS col2, - ( + 44 ) DIV 60
----
-304
0

skipif mysql # not compatible
query II rowsort label-5888
SELECT CAST ( + - 19 AS INTEGER ) * + 16 AS col2, - ( + 44 ) / 60
----
-304
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5889
SELECT 14 * COUNT( * ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT 14 * COUNT ( * ) / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5890
SELECT CASE + - 17 WHEN 55 * - + 55 THEN 63 WHEN - ( CAST( 0 AS SIGNED ) ) THEN + ( - 23 ) ELSE NULL END + - - COALESCE ( + + 60, + - 9, + - 91 * CASE - - 35 WHEN 36 / - - ( + + 73 ) * + 88 - + COUNT( * ) + - 54 + - 22 THEN - COUNT( * ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT CASE + - 17 WHEN 55 * - + 55 THEN 63 WHEN - ( CAST ( 0 AS INTEGER ) ) THEN + ( - 23 ) ELSE NULL END + - - COALESCE ( + + 60, + - 9, + - 91 * CASE - - 35 WHEN 36 / - - ( + + 73 ) * + 88 - + COUNT ( * ) + - 54 + - 22 THEN - COUNT ( * ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL - ( 55 ) * COUNT( * ) * - 94 * - 75 + - 49 AS col1
----
-387799

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - ( 55 ) * COUNT ( * ) * - 94 * - 75 + - 49 AS col1
----
-387799

query I rowsort
SELECT 4 * - - 73
----
292

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT ALL 96 DIV - 40 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL 96 / - 40 AS col0
----
-2

query II rowsort
SELECT 17 AS col2, - 12 col0
----
17
-12

query I rowsort
SELECT DISTINCT + NULLIF ( - 77, + 33 ) * + 14 AS col2
----
-1078

query II rowsort
SELECT ALL - 59, 17 AS col0
----
-59
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5897
SELECT COUNT( * ) + + 75 + - 19 * + ( + + ( COUNT( * ) ) ), 45 AS col0
----
57
45

skipif mysql # not compatible
query II rowsort label-5897
SELECT COUNT ( * ) + + 75 + - 19 * + ( + + ( COUNT ( * ) ) ), 45 AS col0
----
57
45

query I rowsort
SELECT ALL + + 70 * 88 AS col2
----
6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT + CAST( NULL AS SIGNED ) * - ( - 35 ) / + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT + CAST ( NULL AS INTEGER ) * - ( - 35 ) / + 29 AS col0
----
NULL

query II rowsort
SELECT + 85, 36 * + 61 AS col2
----
85
2196

query I rowsort
SELECT - 16 - + 27 AS col2
----
-43

query I rowsort
SELECT 72 - 60 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT - COUNT( - 97 ) * 63 * - 53 + 92 + - + 26
----
3405

skipif mysql # not compatible
query I rowsort label-5903
SELECT - COUNT ( - 97 ) * 63 * - 53 + 92 + - + 26
----
3405

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5904
SELECT ALL NULLIF ( + NULLIF ( - 1, + - CAST( - 27 AS SIGNED ) * + 52 ), + 91 + + 27 ), - 45 AS col2
----
-1
-45

skipif mysql # not compatible
query II rowsort label-5904
SELECT ALL NULLIF ( + NULLIF ( - 1, + - CAST ( - 27 AS INTEGER ) * + 52 ), + 91 + + 27 ), - 45 AS col2
----
-1
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT DISTINCT CAST( + 91 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT CAST ( + 91 AS INTEGER ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5906
SELECT DISTINCT + - ( - 64 ) + - CAST( NULL AS SIGNED ) + + - 32 + + 88 - + - COUNT( * ) - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT + - ( - 64 ) + - CAST ( NULL AS INTEGER ) + + - 32 + + 88 - + - COUNT ( * ) - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ( MAX( - 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5907
SELECT ( MAX ( - 49 ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT COUNT( * ) - - + 13
----
14

skipif mysql # not compatible
query I rowsort label-5908
SELECT COUNT ( * ) - - + 13
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT ALL + + 52 DIV 42 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + + 52 / 42 AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5910
SELECT 90 DIV + 45 - - 16 AS col1, + 75 + - - 29 col2
----
18
104

skipif mysql # not compatible
query II rowsort label-5910
SELECT 90 / + 45 - - 16 AS col1, + 75 + - - 29 col2
----
18
104

query I rowsort
SELECT ALL - + CASE + NULLIF ( + 24, + 44 + + 11 ) WHEN - - NULLIF ( + - 84, ( + 15 ) ) * + - 54 * - + 64 + 27 THEN + 93 * + 65 + 92 * 71 * + 18 END + - - 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5912
SELECT - + CAST( NULL AS SIGNED ), COALESCE ( + + 4, + 15 + 40 ) * - 93 AS col1
----
NULL
-372

skipif mysql # not compatible
query II rowsort label-5912
SELECT - + CAST ( NULL AS INTEGER ), COALESCE ( + + 4, + 15 + 40 ) * - 93 AS col1
----
NULL
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT 80 * ( - 91 ) * - COUNT( * ) + 65 AS col0
----
7345

skipif mysql # not compatible
query I rowsort label-5913
SELECT 80 * ( - 91 ) * - COUNT ( * ) + 65 AS col0
----
7345

onlyif mysql # aggregate syntax: 
query II rowsort label-5914
SELECT 67 + + 40 + - ( + 20 ) * + - 36 + + - COUNT( * ), + 50 AS col1
----
826
50

skipif mysql # not compatible
query II rowsort label-5914
SELECT 67 + + 40 + - ( + 20 ) * + - 36 + + - COUNT ( * ), + 50 AS col1
----
826
50

query I rowsort
SELECT DISTINCT + - 48 + - 34
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5916
SELECT - CASE + + 41 WHEN - 60 * + COUNT( * ) * - + 95 * 4 + - + 4 * - ( - CAST( NULL AS SIGNED ) ) * - + CAST( + 86 AS SIGNED ) THEN NULL WHEN - 81 THEN 32 + 61 * + 12 - + ( + 38 ) ELSE + 73 * - - 11 + - 69 END AS col1
----
-734

skipif mysql # not compatible
query I rowsort label-5916
SELECT - CASE + + 41 WHEN - 60 * + COUNT ( * ) * - + 95 * 4 + - + 4 * - ( - CAST ( NULL AS INTEGER ) ) * - + CAST ( + 86 AS INTEGER ) THEN NULL WHEN - 81 THEN 32 + 61 * + 12 - + ( + 38 ) ELSE + 73 * - - 11 + - 69 END AS col1
----
-734

query I rowsort
SELECT DISTINCT - 33 * - + 80 * + 81 AS col0
----
213840

query I rowsort
SELECT ALL 51 - 53 * - 62 AS col2
----
3337

query I rowsort
SELECT ( - 89 ) + 70 col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT 16 DIV - - 6 + + 60 * - 33 AS col1
----
-1978

skipif mysql # not compatible
query I rowsort label-5920
SELECT 16 / - - 6 + + 60 * - 33 AS col1
----
-1978

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL 10 * - 7 - SUM( DISTINCT + 0 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL 10 * - 7 - SUM ( DISTINCT + 0 ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT ALL NULLIF ( - + ( + - CAST( NULL AS SIGNED ) ), - 39 ) * - 84 * - 4 * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL NULLIF ( - + ( + - CAST ( NULL AS INTEGER ) ), - 39 ) * - 84 * - 4 * - 7
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + CASE 86 WHEN 57 + - - ( - + 40 ) / + + 96 THEN 70 + - 49 * - 26 WHEN - 35 THEN NULL ELSE + COUNT( * ) END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + CASE 86 WHEN 57 + - - ( - + 40 ) / + + 96 THEN 70 + - 49 * - 26 WHEN - 35 THEN NULL ELSE + COUNT ( * ) END * 60
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT 14 * - 81 AS col2, ( - COUNT( * ) ) + 55 AS col2
----
-1134
54

skipif mysql # not compatible
query II rowsort label-5924
SELECT 14 * - 81 AS col2, ( - COUNT ( * ) ) + 55 AS col2
----
-1134
54

query I rowsort
SELECT DISTINCT 90 * - - 32 AS col0
----
2880

query I rowsort
SELECT ( - + 30 ) + - 98 * + 45 - + 89
----
-4529

query I rowsort
SELECT + NULLIF ( + + 17, 17 )
----
NULL

query II rowsort
SELECT 4 * + 62 AS col1, 24 * - - 19
----
248
456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5929
SELECT 56 - - 69 AS col0, COALESCE ( - 64, - - ( - 83 ) - + 95 + - CAST( NULL AS SIGNED ) + 30, + - NULLIF ( COUNT( * ), + 40 / + + 26 + + MAX( 94 ) + + + 37 / 3 ) * 38 ) * 28
----
125
-1792

skipif mysql # not compatible
query II rowsort label-5929
SELECT 56 - - 69 AS col0, COALESCE ( - 64, - - ( - 83 ) - + 95 + - CAST ( NULL AS INTEGER ) + 30, + - NULLIF ( COUNT ( * ), + 40 / + + 26 + + MAX ( 94 ) + + + 37 / 3 ) * 38 ) * 28
----
125
-1792

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT ALL - - 30 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - - 30 / - 43
----
0

query I rowsort
SELECT + + 22 + + 98 col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT ALL + COUNT( * ) + + 55 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + COUNT ( * ) + + 55 AS col0
----
56

query I rowsort
SELECT + - 47 * 56
----
-2632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT ALL + 36 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + 36 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL - + ( + 25 ) + - MAX( + 19 )
----
-44

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL - + ( + 25 ) + - MAX ( + 19 )
----
-44

query I rowsort
SELECT - 77 + 85
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT + - COUNT( * ) * 16 + - 92
----
-108

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + - COUNT ( * ) * 16 + - 92
----
-108

query I rowsort
SELECT - + 21 * + 14 * 72 AS col1
----
-21168

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - + 15 + - - COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5939
SELECT - + 15 + - - COUNT ( * ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT DISTINCT MAX( ALL 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT MAX ( ALL 59 ) AS col0
----
59

query I rowsort
SELECT DISTINCT 22 * - 50
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL - 40 + - 31 - - NULLIF ( - COUNT( * ), 91 * + COALESCE ( + 11, 44 / + + 41 + + + 88 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL - 40 + - 31 - - NULLIF ( - COUNT ( * ), 91 * + COALESCE ( + 11, 44 / + + 41 + + + 88 ) ) AS col1
----
-72

query I rowsort
SELECT - + COALESCE ( + 3, - 61 )
----
-3

query I rowsort
SELECT ALL - + 58 - 95 + 6 + + + 40
----
-107

query I rowsort
SELECT ALL - - 49 - - + 25 + - 74 * - 72
----
5402

query I rowsort
SELECT DISTINCT 10 * + - 91 AS col2
----
-910

query II rowsort
SELECT ALL 71 AS col1, - 16 AS col0
----
71
-16

query I rowsort
SELECT - 45 * - 58 * - 38
----
-99180

query I rowsort
SELECT - 51 + 1 AS col0
----
-50

query I rowsort
SELECT DISTINCT - 2 * + - 59 AS col0
----
118

query II rowsort
SELECT 55 AS col2, + 26 col2
----
55
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT + 3 DIV 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5952
SELECT + 3 / 24 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT - COUNT( * ) * 32 * - 72
----
2304

skipif mysql # not compatible
query I rowsort label-5953
SELECT - COUNT ( * ) * 32 * - 72
----
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5954
SELECT ALL CASE + 64 WHEN - MAX( ALL + ( + + 15 ) ) + + CAST( + + MIN( - 57 ) AS DECIMAL ) THEN NULL WHEN 3 * + - 94 + ( - + CAST( - - 6 AS SIGNED ) ) THEN NULL WHEN + + ( + + 53 ) THEN 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL CASE + 64 WHEN - MAX ( ALL + ( + + 15 ) ) + + CAST ( + + MIN ( - 57 ) AS REAL ) THEN NULL WHEN 3 * + - 94 + ( - + CAST ( - - 6 AS INTEGER ) ) THEN NULL WHEN + + ( + + 53 ) THEN 29 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT + 67 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 67 / + 33
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT ALL + COUNT( * ) AS col2, - 78 + + COALESCE ( COUNT( * ), + 6 + + - ( + 29 ) * 15 ) AS col2
----
1
-77

skipif mysql # not compatible
query II rowsort label-5956
SELECT ALL + COUNT ( * ) AS col2, - 78 + + COALESCE ( COUNT ( * ), + 6 + + - ( + 29 ) * 15 ) AS col2
----
1
-77

query I rowsort
SELECT - 55 * - + 52 * - 68 * + 48 AS col1
----
-9335040

query I rowsort
SELECT + NULLIF ( 13, - 8 * - 43 ) AS col0
----
13

query I rowsort
SELECT ( + ( - 45 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-5960
SELECT ( + SUM( ALL 19 ) ), 72 AS col2
----
19
72

skipif mysql # not compatible
query II rowsort label-5960
SELECT ( + SUM ( ALL 19 ) ), 72 AS col2
----
19
72

query I rowsort
SELECT + 13 * 75
----
975

query I rowsort
SELECT + 25 * ( - - 63 )
----
1575

query I rowsort
SELECT + 84 + - ( + 27 ) * + 81 AS col0
----
-2103

query I rowsort
SELECT + - ( + + 62 ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5965
SELECT + CAST( NULL AS SIGNED ) col1, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-5965
SELECT + CAST ( NULL AS INTEGER ) col1, 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT DISTINCT 3 * + + COUNT( DISTINCT 82 ) * - 19
----
-57

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT 3 * + + COUNT ( DISTINCT 82 ) * - 19
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL + 14 * - 94 + MIN( DISTINCT + 84 ) + 73 AS col1
----
-1159

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL + 14 * - 94 + MIN ( DISTINCT + 84 ) + 73 AS col1
----
-1159

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT + + CASE 49 WHEN + 78 THEN NULL ELSE - SUM( DISTINCT - 15 ) * + NULLIF ( 87, - COUNT( * ) ) + + 77 END
----
1382

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT + + CASE 49 WHEN + 78 THEN NULL ELSE - SUM ( DISTINCT - 15 ) * + NULLIF ( 87, - COUNT ( * ) ) + + 77 END
----
1382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5969
SELECT + CAST( CASE COUNT( * ) WHEN + 1 THEN 25 * - 14 - 53 * - 55 + + 52 ELSE + COUNT( * ) + + 67 * - CAST( - - 6 AS SIGNED ) * 61 END AS SIGNED ) + - - 89 AS col2, 83 + + + 59 DIV - NULLIF ( - 15, 7 * + 7 - - 31 + CASE + 62 WHEN + 14 * + 93 THEN COUNT( * ) WHEN - ( 29 ) THEN NULL END + + 95 - 81 + + 13 + 47 )
----
2706
86

skipif mysql # not compatible
query II rowsort label-5969
SELECT + CAST ( CASE COUNT ( * ) WHEN + 1 THEN 25 * - 14 - 53 * - 55 + + 52 ELSE + COUNT ( * ) + + 67 * - CAST ( - - 6 AS INTEGER ) * 61 END AS INTEGER ) + - - 89 AS col2, 83 + + + 59 / - NULLIF ( - 15, 7 * + 7 - - 31 + CASE + 62 WHEN + 14 * + 93 THEN COUNT ( * ) WHEN - ( 29 ) THEN NULL END + + 95 - 81 + + 13 + 47 )
----
2706
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + + 25 - + - 85 + 25 * ( COUNT( - 13 ) ) * 12 AS col2
----
410

skipif mysql # not compatible
query I rowsort label-5970
SELECT + + 25 - + - 85 + 25 * ( COUNT ( - 13 ) ) * 12 AS col2
----
410

query I rowsort
SELECT + - 50 + 1
----
-49

query I rowsort
SELECT ALL + 92 * - 12 - - + 62 * + 18 AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT DISTINCT - 11 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - 11 / + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT + COALESCE ( + COUNT( * ), 44 )
----
1

skipif mysql # not compatible
query I rowsort label-5974
SELECT + COALESCE ( + COUNT ( * ), 44 )
----
1

query I rowsort
SELECT ALL + 27 * + 75 - - + 46
----
2071

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT DISTINCT COALESCE ( - + 94, + 43 ) DIV 44 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT COALESCE ( - + 94, + 43 ) / 44 AS col2
----
-2

query II rowsort
SELECT ALL 89 AS col0, - 95
----
89
-95

query I rowsort
SELECT - 77 - + - 39
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL 51 * COALESCE ( + COUNT( DISTINCT - 96 ), - + 13 )
----
51

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL 51 * COALESCE ( + COUNT ( DISTINCT - 96 ), - + 13 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + COUNT( * ) + + + MAX( DISTINCT + + 42 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5980
SELECT + COUNT ( * ) + + + MAX ( DISTINCT + + 42 ) AS col1
----
43

query I rowsort
SELECT - ( - 51 ) + - + 57
----
-6

query I rowsort
SELECT ALL - 16 * - + 13 AS col0
----
208

query I rowsort
SELECT + 21 + - 59 * + 41
----
-2398

query I rowsort
SELECT - 27 * 45 AS col2
----
-1215

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT + ( + ( + MIN( 69 ) ) ) + + - 25 + - - 29 AS col2, - COUNT( * )
----
73
-1

skipif mysql # not compatible
query II rowsort label-5985
SELECT + ( + ( + MIN ( 69 ) ) ) + + - 25 + - - 29 AS col2, - COUNT ( * )
----
73
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT 33 AS col2, + COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-5986
SELECT 33 AS col2, + COUNT ( * )
----
33
1

query II rowsort
SELECT ALL ( 92 ) AS col0, + 27 AS col1
----
92
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5988
SELECT - MIN( ALL - - 4 ) + - COALESCE ( - + 75, + 14 * - 91 + 96 + + 30 + 88 ) AS col0, COALESCE ( - + 59, 67 ) AS col1
----
71
-59

skipif mysql # not compatible
query II rowsort label-5988
SELECT - MIN ( ALL - - 4 ) + - COALESCE ( - + 75, + 14 * - 91 + 96 + + 30 + 88 ) AS col0, COALESCE ( - + 59, 67 ) AS col1
----
71
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL 80 * - COUNT( * ) * 89
----
-7120

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL 80 * - COUNT ( * ) * 89
----
-7120

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT MAX( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT MAX ( 90 )
----
90

query I rowsort
SELECT DISTINCT - 62 * - 50 * - + 78
----
-241800

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT ALL COALESCE ( - 23, - NULLIF ( COUNT( * ), + + 36 ) + + CASE + COUNT( * ) WHEN - 63 THEN + 70 WHEN + - 12 * CASE - - ( - - MIN( ALL + 77 ) ) WHEN + 0 * + + 81 THEN + 63 - + ( + + 34 ) ELSE - + 36 END THEN 80 END ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL COALESCE ( - 23, - NULLIF ( COUNT ( * ), + + 36 ) + + CASE + COUNT ( * ) WHEN - 63 THEN + 70 WHEN + - 12 * CASE - - ( - - MIN ( ALL + 77 ) ) WHEN + 0 * + + 81 THEN + 63 - + ( + + 34 ) ELSE - + 36 END THEN 80 END ) AS col0
----
-23

query I rowsort
SELECT - 44 + + 25 col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5994
SELECT DISTINCT - CASE + + ( - 93 ) WHEN ( - + 49 ) * 64 THEN + 28 WHEN + + CAST( 20 AS DECIMAL ) * - 60 + - 50 - + 17 + 41 * - ( 67 ) + + COUNT( * ) / - 93 * + COUNT( * ) + + + 94 + - 3 + + 19 + + 81 * - - 92 * + 18 + + + 73 / - 87 THEN + 92 ELSE 5 + 97 END + + ( - - 32 )
----
-70

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT - CASE + + ( - 93 ) WHEN ( - + 49 ) * 64 THEN + 28 WHEN + + CAST ( 20 AS REAL ) * - 60 + - 50 - + 17 + 41 * - ( 67 ) + + COUNT ( * ) / - 93 * + COUNT ( * ) + + + 94 + - 3 + + 19 + + 81 * - - 92 * + 18 + + + 73 / - 87 THEN + 92 ELSE 5 + 97 END + + ( - - 32 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT ALL ( - CAST( 38 AS SIGNED ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL ( - CAST ( 38 AS INTEGER ) ) AS col2
----
-38

query III rowsort
SELECT + 1, 23 col0, + - 2 AS col0
----
1
23
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL - 15 / - CAST( NULL AS SIGNED ) * 16 * + 91 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - 15 / - CAST ( NULL AS INTEGER ) * 16 * + 91 + + 68
----
NULL

query I rowsort
SELECT 32 * + ( + + 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL + CASE - + 75 WHEN + - 43 * + 77 + - 26 / + 36 + - SUM( ALL - - 71 ) + 68 - - 68 + 98 * + - COUNT( + 63 ) * - + 43 THEN + 92 * 28 - + 46 ELSE - + 36 END + - 53 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL + CASE - + 75 WHEN + - 43 * + 77 + - 26 / + 36 + - SUM ( ALL - - 71 ) + 68 - - 68 + 98 * + - COUNT ( + 63 ) * - + 43 THEN + 92 * 28 - + 46 ELSE - + 36 END + - 53 AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT DISTINCT - CAST( + - 37 AS SIGNED ) * + 6
----
222

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - CAST ( + - 37 AS INTEGER ) * + 6
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL - 95 + - + NULLIF ( + 98, COUNT( * ) ) AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - 95 + - + NULLIF ( + 98, COUNT ( * ) ) AS col0
----
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + - + 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + - + 34 AS col1
----
-33

query I rowsort
SELECT - 36 * + 82 AS col1
----
-2952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT + COALESCE ( 99, - CAST( 70 AS SIGNED ), - + 72 - - + 83 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6004
SELECT + COALESCE ( 99, - CAST ( 70 AS INTEGER ), - + 72 - - + 83 ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT ALL - + COALESCE ( + 97, - + 32 DIV 88 - - 51 )
----
-97

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - + COALESCE ( + 97, - + 32 / 88 - - 51 )
----
-97

query II rowsort
SELECT + 99 col2, 10 + + 47
----
99
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT 73 + - + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6007
SELECT 73 + - + COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + ( + COUNT( * ) ) * + - 51 * + - COUNT( * ) + + + 36 + - ( + 64 ) - + + 44 + + - 80 * - 42 + 63 AS col0
----
3402

skipif mysql # not compatible
query I rowsort label-6008
SELECT + ( + COUNT ( * ) ) * + - 51 * + - COUNT ( * ) + + + 36 + - ( + 64 ) - + + 44 + + - 80 * - 42 + 63 AS col0
----
3402

query I rowsort
SELECT ALL 55 * 38 + - 7 + + ( + + 52 )
----
2135

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT DISTINCT - + MIN( - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - + MIN ( - 17 ) AS col1
----
17

query I rowsort
SELECT ALL 64 - - 84 * + + 16 AS col1
----
1408

query I rowsort
SELECT - 52 * + 86
----
-4472

query I rowsort
SELECT ALL 22 * 0
----
0

query II rowsort
SELECT DISTINCT 62 AS col0, 99 * + 12 + - 74
----
62
1114

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT - MIN( DISTINCT + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-6015
SELECT - MIN ( DISTINCT + 30 )
----
-30

query I rowsort
SELECT DISTINCT 40 * 46
----
1840

onlyif mysql # aggregate syntax: 
query II rowsort label-6017
SELECT - 40 AS col2, + ( + - 16 ) * + MIN( + - ( - + 6 ) ) AS col2
----
-40
-96

skipif mysql # not compatible
query II rowsort label-6017
SELECT - 40 AS col2, + ( + - 16 ) * + MIN ( + - ( - + 6 ) ) AS col2
----
-40
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6018
SELECT + COALESCE ( 50, 40 * 56 + + 19 + 75 + 46 DIV NULLIF ( - COUNT( * ), + + COUNT( * ) ) + - - 97 ) * - + 24 AS col2
----
-1200

skipif mysql # not compatible
query I rowsort label-6018
SELECT + COALESCE ( 50, 40 * 56 + + 19 + 75 + 46 / NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) + - - 97 ) * - + 24 AS col2
----
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT ( + 38 ) DIV + 23 + - - 69 * - ( - + MAX( ALL + ( + ( + COALESCE ( - 6, 34 ) ) ) ) )
----
-413

skipif mysql # not compatible
query I rowsort label-6019
SELECT ( + 38 ) / + 23 + - - 69 * - ( - + MAX ( ALL + ( + ( + COALESCE ( - 6, 34 ) ) ) ) )
----
-413

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT 24 + - SUM( + 30 )
----
-6

skipif mysql # not compatible
query I rowsort label-6020
SELECT 24 + - SUM ( + 30 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ( + 25 ) * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6021
SELECT ( + 25 ) * COUNT ( * ) AS col2
----
25

query I rowsort
SELECT ALL CASE + - 27 WHEN - 45 * + 85 + + 33 THEN - - 90 END * + 88 * - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT SUM( ALL 80 ) DIV + 14
----
5

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT SUM ( ALL 80 ) / + 14
----
5

query I rowsort
SELECT DISTINCT + 30 * 24
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT CAST( NULL AS SIGNED ) / + 74 * + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT CAST ( NULL AS INTEGER ) / + 74 * + + 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT DISTINCT 91 + - 68 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT 91 + - 68 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT ( 29 ) DIV + 17 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6027
SELECT ( 29 ) / + 17 AS col1
----
1

query I rowsort
SELECT 39 * ( - 76 )
----
-2964

query I rowsort
SELECT ALL - 13 + - 65 - - COALESCE ( 45, 55 + - 29 + + 87 * - 99 ) AS col1
----
-33

query I rowsort
SELECT ALL + ( + 93 ) + + 75 + + 59 AS col1
----
227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6031
SELECT COALESCE ( + 11, + 61, - 68 DIV + 41, - 51 ) - COALESCE ( - 26, + COUNT( * ), 17 ) + + - COUNT( * ) * 15 + + - MAX( DISTINCT - + 80 ) * + + COUNT( * ) * - 62
----
-4938

skipif mysql # not compatible
query I rowsort label-6031
SELECT COALESCE ( + 11, + 61, - 68 / + 41, - 51 ) - COALESCE ( - 26, + COUNT ( * ), 17 ) + + - COUNT ( * ) * 15 + + - MAX ( DISTINCT - + 80 ) * + + COUNT ( * ) * - 62
----
-4938

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT 32 + - 94 + 27 - - - COUNT( * ) * - CASE + - 34 WHEN 22 THEN NULL ELSE COUNT( * ) END * - CASE 45 WHEN + 85 THEN NULL ELSE - ( + 80 ) END AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6032
SELECT 32 + - 94 + 27 - - - COUNT ( * ) * - CASE + - 34 WHEN 22 THEN NULL ELSE COUNT ( * ) END * - CASE 45 WHEN + 85 THEN NULL ELSE - ( + 80 ) END AS col1
----
45

query I rowsort
SELECT ALL + 22 + 93 AS col1
----
115

query I rowsort
SELECT ALL + + 10 * - 21 - 68
----
-278

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6035
SELECT DISTINCT + + MAX( ALL ( - 69 ) ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + + MAX ( ALL ( - 69 ) ) + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT - 63 + - + 25 AS col0, COALESCE ( 32, + + 39 * 76 + - 80 * + - 77, + ( + 25 ) )
----
-88
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT + CAST( + 40 AS SIGNED ) col0
----
40

skipif mysql # not compatible
query I rowsort label-6037
SELECT + CAST ( + 40 AS INTEGER ) col0
----
40

query II rowsort
SELECT DISTINCT + 72 * - 55 AS col0, 62
----
-3960
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT + 55 * + - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + 55 * + - COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - COUNT( * ) + - ( - 56 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6040
SELECT - COUNT ( * ) + - ( - 56 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT + COUNT( * ) - 10 + 77 - 39
----
29

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT + COUNT ( * ) - 10 + 77 - 39
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT + NULLIF ( - 1, + NULLIF ( 7, 99 ) * + 6 * - 87 ) * + COUNT( * ) + 26
----
25

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT + NULLIF ( - 1, + NULLIF ( 7, 99 ) * + 6 * - 87 ) * + COUNT ( * ) + 26
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - - COUNT( DISTINCT + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - - COUNT ( DISTINCT + 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL - CASE + + 93 WHEN - 52 / + 38 + - NULLIF ( + 11, - - MIN( DISTINCT - 16 ) + + 96 / 15 * 19 * 68 ) - - ( - 99 ) * + 46 THEN NULL WHEN 79 THEN 47 + 59 END / - ( - + MAX( ALL 76 ) ) + + ( - COUNT( * ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - CASE + + 93 WHEN - 52 / + 38 + - NULLIF ( + 11, - - MIN ( DISTINCT - 16 ) + + 96 / 15 * 19 * 68 ) - - ( - 99 ) * + 46 THEN NULL WHEN 79 THEN 47 + 59 END / - ( - + MAX ( ALL 76 ) ) + + ( - COUNT ( * ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT 90 + MAX( + + 88 ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-6045
SELECT 90 + MAX ( + + 88 ) AS col1
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT 49 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT 49 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL - - CAST( + COALESCE ( - 14, 15 - - - 51 ) AS SIGNED ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - - CAST ( + COALESCE ( - 14, 15 - - - 51 ) AS INTEGER ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT + COALESCE ( 93, COUNT( * ) + - 1 ) * - + 21 + - 66 + + + 22 + + 62
----
-1935

skipif mysql # not compatible
query I rowsort label-6048
SELECT + COALESCE ( 93, COUNT ( * ) + - 1 ) * - + 21 + - 66 + + + 22 + + 62
----
-1935

onlyif mysql # aggregate syntax: 
query II rowsort label-6049
SELECT ALL COUNT( * ), 67 * 72 AS col1
----
1
4824

skipif mysql # not compatible
query II rowsort label-6049
SELECT ALL COUNT ( * ), 67 * 72 AS col1
----
1
4824

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6050
SELECT 98 + - CAST( NULL AS DECIMAL ) + - - CAST( NULL AS DECIMAL ) / - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT 98 + - CAST ( NULL AS REAL ) + - - CAST ( NULL AS REAL ) / - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6051
SELECT ALL 22 AS col2, COUNT( * ) + + + 26
----
22
27

skipif mysql # not compatible
query II rowsort label-6051
SELECT ALL 22 AS col2, COUNT ( * ) + + + 26
----
22
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL + 89 + - - MIN( + + 47 ) + 67 AS col0
----
203

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + 89 + - - MIN ( + + 47 ) + 67 AS col0
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT ( 69 ) + - ( + - MIN( ALL - 5 ) )
----
64

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT ( 69 ) + - ( + - MIN ( ALL - 5 ) )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6054
SELECT ALL 38 + COUNT( * ) - - - COUNT( * ) DIV - 54
----
39

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL 38 + COUNT ( * ) - - - COUNT ( * ) / - 54
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT ( + - CAST( NULL AS SIGNED ) ) + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT ( + - CAST ( NULL AS INTEGER ) ) + - 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL ( - + MIN( DISTINCT 93 ) ) + + 62
----
-31

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL ( - + MIN ( DISTINCT 93 ) ) + + 62
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT - MAX( + + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-6057
SELECT - MAX ( + + 2 )
----
-2

query I rowsort
SELECT DISTINCT ( + + 14 ) + + - 32 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6059
SELECT ALL CAST( + - 5 AS SIGNED ) + + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL CAST ( + - 5 AS INTEGER ) + + COUNT ( * ) AS col1
----
-4

query I rowsort
SELECT + 61 + 41 + 69 - - 21 AS col1
----
192

query II rowsort
SELECT ALL 54, - 25 * + + 32 AS col0
----
54
-800

query I rowsort
SELECT + 37 + - - NULLIF ( - 94, + 18 )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6063
SELECT ALL 43 + + CAST( - 35 AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL 43 + + CAST ( - 35 AS INTEGER ) AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT + 54 * + 96 DIV - COUNT( * )
----
-5184

skipif mysql # not compatible
query I rowsort label-6064
SELECT + 54 * + 96 / - COUNT ( * )
----
-5184

query I rowsort
SELECT ALL - 82 * + 96 AS col2
----
-7872

query I rowsort
SELECT ALL + 27 - - + 45
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6067
SELECT + COUNT( * ) + 73 DIV - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6067
SELECT + COUNT ( * ) + 73 / - 43 AS col1
----
0

query I rowsort
SELECT + + 39 + 99 AS col1
----
138

query I rowsort
SELECT ALL 88 - 73 AS col2
----
15

query I rowsort
SELECT + 57 * + 69 - + + 11 col1
----
3922

query I rowsort
SELECT - 27 * 31 * - 87 * + 13
----
946647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT + CASE - 31 WHEN + + 32 THEN + - COUNT( * ) END * - + 97 + - - ( - COUNT( * ) ) + - - 72 + + 90 + + 12 / + 83 + + CASE - 39 WHEN CASE - 66 WHEN - 39 + + CAST( + - 49 AS SIGNED ) + + CAST( - AVG ( DISTINCT - - 73 ) AS SIGNED ) * + - 8 + 80 * + 75 + - 13 + - - 44 * + NULLIF ( + + 18, COUNT( * ) * - + 89 * 3 * 66 * - 44 ) / + + 64 + - 43 * - 36 THEN NULL WHEN + - 84 + ( - + 2 ) * ( - 87 ) THEN ( - CAST( NULL AS SIGNED ) ) END + + COUNT( * ) THEN - COUNT( * ) ELSE NULL END + - SUM( 49 + 61 ) * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT + CASE - 31 WHEN + + 32 THEN + - COUNT ( * ) END * - + 97 + - - ( - COUNT ( * ) ) + - - 72 + + 90 + + 12 / + 83 + + CASE - 39 WHEN CASE - 66 WHEN - 39 + + CAST ( + - 49 AS INTEGER ) + + CAST ( - AVG ( DISTINCT - - 73 ) AS INTEGER ) * + - 8 + 80 * + 75 + - 13 + - - 44 * + NULLIF ( + + 18, COUNT ( * ) * - + 89 * 3 * 66 * - 44 ) / + + 64 + - 43 * - 36 THEN NULL WHEN + - 84 + ( - + 2 ) * ( - 87 ) THEN ( - CAST ( NULL AS INTEGER ) ) END + + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END + - SUM ( 49 + 61 ) * 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL + 43 * + + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + 43 * + + COUNT ( * ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + + 37 + - 20 / + CASE + - 91 WHEN - 4 / + 78 THEN + COUNT( * ) + - 33 WHEN + 55 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT + + 37 + - 20 / + CASE + - 91 WHEN - 4 / + 78 THEN + COUNT ( * ) + - 33 WHEN + 55 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + + 87 * NULLIF ( + 49, + 66 ) * - COUNT( * ) + 96 + + 26
----
-4141

skipif mysql # not compatible
query I rowsort label-6075
SELECT + + 87 * NULLIF ( + 49, + 66 ) * - COUNT ( * ) + 96 + + 26
----
-4141

query II rowsort
SELECT ALL + 46 col0, 17 * 98 AS col1
----
46
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT + - COUNT( + + 40 ) * 81 + + + 90 + - 78 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + - COUNT ( + + 40 ) * 81 + + + 90 + - 78 AS col1
----
-69

query I rowsort
SELECT - ( + - 87 ) + - 52 * + 30
----
-1473

query II rowsort
SELECT - 96 AS col0, - ( 14 ) AS col0
----
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT + 73 * COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6080
SELECT + 73 * COUNT ( * ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6081
SELECT - 43 + - + 50 - + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) AS col2
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-6081
SELECT - 43 + - + 50 - + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
-94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6082
SELECT - 69, COUNT( * ) col0
----
-69
1

skipif mysql # not compatible
query II rowsort label-6082
SELECT - 69, COUNT ( * ) col0
----
-69
1

query I rowsort
SELECT - + 86 * + 11 * 75 + - 56 + - 29 * 13 * + 62 + - 78 col0
----
-94458

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL + NULLIF ( - - 8, COUNT( DISTINCT 48 ) / MAX( DISTINCT - NULLIF ( 47, + 40 + - - 32 - - + 46 ) ) * 46 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL + NULLIF ( - - 8, COUNT ( DISTINCT 48 ) / MAX ( DISTINCT - NULLIF ( 47, + 40 + - - 32 - - + 46 ) ) * 46 ) AS col0
----
8

query I rowsort
SELECT + + 71 * 45 + - - 10
----
3205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT - + 61 * + CAST( - MAX( DISTINCT + 88 ) AS SIGNED ) AS col2
----
5368

skipif mysql # not compatible
query I rowsort label-6086
SELECT - + 61 * + CAST ( - MAX ( DISTINCT + 88 ) AS INTEGER ) AS col2
----
5368

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT + COUNT( * ) * - - 29 + - 63 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT + COUNT ( * ) * - - 29 + - 63 AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT - 51 DIV + 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6088
SELECT - 51 / + 45 AS col0
----
-1

query I rowsort
SELECT DISTINCT 59 * + - 97 * - 90 + + + 76 + + - 60
----
515086

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL - 26 * 33 + + - SUM( + 86 ) AS col2
----
-944

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - 26 * 33 + + - SUM ( + 86 ) AS col2
----
-944

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6091
SELECT - 45 + - COUNT( * ) + COALESCE ( + 32, + 14 * - ( 65 ), COUNT( - CAST( NULL AS DECIMAL ) ) ) + - - 30
----
16

skipif mysql # not compatible
query I rowsort label-6091
SELECT - 45 + - COUNT ( * ) + COALESCE ( + 32, + 14 * - ( 65 ), COUNT ( - CAST ( NULL AS REAL ) ) ) + - - 30
----
16

query I rowsort
SELECT ALL COALESCE ( ( + + 56 ), - 77 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - 32 * + COUNT( DISTINCT + 59 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6093
SELECT - 32 * + COUNT ( DISTINCT + 59 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT DISTINCT - COUNT( * ) DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT - COUNT ( * ) / - 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT - CASE - 9 WHEN - 68 THEN + CASE + + 25 WHEN - COUNT( * ) * - - 4 * + 82 THEN 85 * 26 ELSE 99 END - - COUNT( ALL + 40 ) + - 65 WHEN + 46 * + 48 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT - CASE - 9 WHEN - 68 THEN + CASE + + 25 WHEN - COUNT ( * ) * - - 4 * + 82 THEN 85 * 26 ELSE 99 END - - COUNT ( ALL + 40 ) + - 65 WHEN + 46 * + 48 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 25, + + 66 * + 4 + + 78, - - 34 )
----
25

query I rowsort
SELECT ALL - ( + + 97 ) + - + 13 AS col2
----
-110

query I rowsort
SELECT ALL 73 + - 83 - + - 79 + + - 37 * 12 AS col1
----
-375

query I rowsort
SELECT DISTINCT - 40 - - + 5 AS col0
----
-35

query I rowsort
SELECT + 31 * - 52 * - ( 69 ) AS col0
----
111228

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL - COUNT( * ) * + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT DISTINCT CAST( + 89 AS SIGNED ) col0
----
89

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT CAST ( + 89 AS INTEGER ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - 1 + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT - 1 + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - MAX( + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6104
SELECT - MAX ( + 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT DISTINCT COUNT( ALL - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT COUNT ( ALL - 92 )
----
1

query I rowsort
SELECT - - 83 - + ( + + 88 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT ALL - COUNT( + 67 ), COUNT( * ) * - + COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6107
SELECT ALL - COUNT ( + 67 ), COUNT ( * ) * - + COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6108
SELECT + + ( + 44 ) - - COALESCE ( - 90, CASE COALESCE ( - + 65, - 50 + + 22 + + 5 ) WHEN + + 7 THEN 46 WHEN - - NULLIF ( + SUM( ALL - 74 ), 50 ) * + 47 - - COUNT( * ) * + ( + - ( + + 80 ) ) THEN - 43 DIV NULLIF ( + 40, - MIN( + 63 ) * - + ( ( - + 40 ) ) + ( - 96 ) ) + ( 56 ) + - + SUM( DISTINCT + 92 ) * 34 * - - 57 + 5 END + - 72 DIV CAST( - 82 AS SIGNED ) ) DIV - - 17 + - 74 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6108
SELECT + + ( + 44 ) - - COALESCE ( - 90, CASE COALESCE ( - + 65, - 50 + + 22 + + 5 ) WHEN + + 7 THEN 46 WHEN - - NULLIF ( + SUM ( ALL - 74 ), 50 ) * + 47 - - COUNT ( * ) * + ( + - ( + + 80 ) ) THEN - 43 / NULLIF ( + 40, - MIN ( + 63 ) * - + ( ( - + 40 ) ) + ( - 96 ) ) + ( 56 ) + - + SUM ( DISTINCT + 92 ) * 34 * - - 57 + 5 END + - 72 / CAST ( - 82 AS INTEGER ) ) / - - 17 + - 74 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6109
SELECT ALL - CAST( + 38 AS SIGNED ) AS col0, + 76 * - 21 * - MIN( ALL 27 ) + - MAX( DISTINCT - 14 )
----
-38
43106

skipif mysql # not compatible
query II rowsort label-6109
SELECT ALL - CAST ( + 38 AS INTEGER ) AS col0, + 76 * - 21 * - MIN ( ALL 27 ) + - MAX ( DISTINCT - 14 )
----
-38
43106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT DISTINCT + MAX( DISTINCT - 69 ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT + MAX ( DISTINCT - 69 ) / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT 73 * - COUNT( DISTINCT 12 ) + 11 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6111
SELECT 73 * - COUNT ( DISTINCT 12 ) + 11 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + COUNT( * ) - + 87 + + MAX( DISTINCT + + 33 ) * - ( 87 ) * - + 49 - + - 35 AS col2
----
140628

skipif mysql # not compatible
query I rowsort label-6112
SELECT + COUNT ( * ) - + 87 + + MAX ( DISTINCT + + 33 ) * - ( 87 ) * - + 49 - + - 35 AS col2
----
140628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6113
SELECT ALL 88 * + COUNT( * ) * ( - CAST( NULL AS SIGNED ) ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL 88 * + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) ) + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT + + 50 * - 86 * - COUNT( 79 ) + + 21
----
4321

skipif mysql # not compatible
query I rowsort label-6114
SELECT + + 50 * - 86 * - COUNT ( 79 ) + + 21
----
4321

query I rowsort
SELECT + - ( 11 ) * + + 19
----
-209

query I rowsort
SELECT ALL - CASE + - 62 WHEN 36 THEN 39 * - - 55 * - + 99 * 31 + - - ( + 95 ) ELSE 22 * + + CASE - 90 WHEN 30 THEN + - 85 WHEN - 34 THEN NULL END * - - 54 + + + 92 END / - - 12 + - - 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL + 45 DIV 31 + - - 56 col1
----
57

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + 45 / 31 + - - 56 col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT DISTINCT - + 95 DIV - 51 + - 51 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - + 95 / - 51 + - 51 AS col1
----
-50

query I rowsort
SELECT - 45 * - - 40
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT + CAST( NULL AS SIGNED ) + + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT + CAST ( NULL AS INTEGER ) + + + 84 AS col2
----
NULL

query I rowsort
SELECT ALL - 26 + - 59
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT 14 + - + NULLIF ( + 80, - + COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-6122
SELECT 14 + - + NULLIF ( + 80, - + COUNT ( * ) )
----
-66

query I rowsort
SELECT 49 * + 88
----
4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6124
SELECT - 92 * + COUNT( 22 ) + 98 DIV 68 AS col1, 65 AS col0
----
-91
65

skipif mysql # not compatible
query II rowsort label-6124
SELECT - 92 * + COUNT ( 22 ) + 98 / 68 AS col1, 65 AS col0
----
-91
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT 33 + COUNT( * ) * + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT 33 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 67 - CASE + - 29 WHEN - + 51 THEN NULL WHEN + COALESCE ( - 68, 95 + 36, - 55, - 49 ) THEN 2 WHEN 3 * - 40 THEN NULL ELSE - 6 END
----
73

query I rowsort
SELECT 39 * + 69 AS col1
----
2691

query I rowsort
SELECT ALL + 27 - - 5 + + + 58 AS col0
----
90

query I rowsort
SELECT - 35 * 71 + + 97
----
-2388

query I rowsort
SELECT 58 + ( ( + - 39 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT 68 + - + 45 - - 18 + + SUM( - - 46 ) - + 12
----
75

skipif mysql # not compatible
query I rowsort label-6131
SELECT 68 + - + 45 - - 18 + + SUM ( - - 46 ) - + 12
----
75

query I rowsort
SELECT 38 * 65 AS col0
----
2470

query I rowsort
SELECT 42 * - 84
----
-3528

query I rowsort
SELECT 77 + + + ( - + ( + 37 ) )
----
40

query I rowsort
SELECT 48 + + + 61 AS col1
----
109

query II rowsort
SELECT 50 AS col2, + 78
----
50
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT 76 + + MAX( ( + 33 ) )
----
109

skipif mysql # not compatible
query I rowsort label-6137
SELECT 76 + + MAX ( ( + 33 ) )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT + 53 + + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6138
SELECT + 53 + + COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - CASE COUNT( * ) WHEN + 84 / + 4 THEN NULL WHEN - - 79 * + 7 * - 58 THEN COUNT( * ) END * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT - CASE COUNT ( * ) WHEN + 84 / + 4 THEN NULL WHEN - - 79 * + 7 * - 58 THEN COUNT ( * ) END * - 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT ALL 19 * - + 83 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL 19 * - + 83 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL - - COUNT( * ) * 22
----
22

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - - COUNT ( * ) * 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT DISTINCT + - ( + + 1 ) + + NULLIF ( COUNT( * ), - - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT + - ( + + 1 ) + + NULLIF ( COUNT ( * ), - - 94 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT + 25 * COUNT( * ) * - 77 * 54 AS col1
----
-103950

skipif mysql # not compatible
query I rowsort label-6143
SELECT + 25 * COUNT ( * ) * - 77 * 54 AS col1
----
-103950

onlyif mysql # DIV for integer division: 
query II rowsort label-6144
SELECT + NULLIF ( + - 58, - + 90 ) col1, 65 DIV 3 AS col0
----
-58
21

skipif mysql # not compatible
query II rowsort label-6144
SELECT + NULLIF ( + - 58, - + 90 ) col1, 65 / 3 AS col0
----
-58
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL 22 DIV + 13
----
1

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL 22 / + 13
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL - SUM( DISTINCT + 8 ) + 0 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL - SUM ( DISTINCT + 8 ) + 0 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT DISTINCT + 17 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + 17 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 58 + - + 39
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6149
SELECT ALL - 89 DIV + 20 + + MAX( DISTINCT 83 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - 89 / + 20 + + MAX ( DISTINCT 83 ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT + 58 DIV + 33 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 58 / + 33 AS col0
----
1

query I rowsort
SELECT + 28 + - 34 * 24 AS col2
----
-788

onlyif mysql # aggregate syntax: 
query II rowsort label-6152
SELECT DISTINCT CASE + 41 WHEN - COUNT( * ) * 83 THEN NULL ELSE - 44 END * + + 35 AS col1, - 66 AS col0
----
-1540
-66

skipif mysql # not compatible
query II rowsort label-6152
SELECT DISTINCT CASE + 41 WHEN - COUNT ( * ) * 83 THEN NULL ELSE - 44 END * + + 35 AS col1, - 66 AS col0
----
-1540
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT COUNT( * ) * + 71 * 82 * + 46
----
267812

skipif mysql # not compatible
query I rowsort label-6153
SELECT COUNT ( * ) * + 71 * 82 * + 46
----
267812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6154
SELECT NULLIF ( - 52, - COUNT( * ) ) DIV - + NULLIF ( + 38, + 85 * - COUNT( * ) * - + 21 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6154
SELECT NULLIF ( - 52, - COUNT ( * ) ) / - + NULLIF ( + 38, + 85 * - COUNT ( * ) * - + 21 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6155
SELECT 63 AS col0, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-6155
SELECT 63 AS col0, COUNT ( * )
----
63
1

query II rowsort
SELECT 68 AS col0, + ( + - 73 ) + + - 58 AS col0
----
68
-131

query II rowsort
SELECT DISTINCT 99, 8 * 15 * 54 col2
----
99
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT 87 * - CAST( NULL AS SIGNED ) * 38 * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT 87 * - CAST ( NULL AS INTEGER ) * 38 * - + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 9 AS col1, - 97 + + 89
----
9
-8

query I rowsort
SELECT DISTINCT 25 * 40 + 48 AS col1
----
1048

query I rowsort
SELECT - ( 85 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT + COUNT( * ) + + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6162
SELECT + COUNT ( * ) + + - 23 AS col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT + CAST( NULL AS SIGNED ) * - + 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT + CAST ( NULL AS INTEGER ) * - + 94 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT 31 + - + MIN( DISTINCT - 66 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6164
SELECT 31 + - + MIN ( DISTINCT - 66 ) AS col2
----
97

query I rowsort
SELECT DISTINCT - COALESCE ( - + 72, + + 64 ) + 41 + + + 58 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT ALL + ( - 38 ) + - CASE 38 WHEN + 86 THEN + + ( - + 95 ) / - 43 + + ( + 64 ) - - 18 / + - MAX( ALL + - 42 ) END + - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + ( - 38 ) + - CASE 38 WHEN + 86 THEN + + ( - + 95 ) / - 43 + + ( + 64 ) - - 18 / + - MAX ( ALL + - 42 ) END + - 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT CASE + - 10 WHEN - - 4 + + 66 THEN - 73 + ( - 96 ) - + 86 WHEN - 52 * - + 9 THEN - + 5 END * 96 + 93 * + CAST( NULL AS SIGNED ) + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT CASE + - 10 WHEN - - 4 + + 66 THEN - 73 + ( - 96 ) - + 86 WHEN - 52 * - + 9 THEN - + 5 END * 96 + 93 * + CAST ( NULL AS INTEGER ) + - 48 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6168
SELECT 80 - + 94 + 75 DIV 32 * - 40 * + 52, 93 AS col0
----
-4174
93

skipif mysql # not compatible
query II rowsort label-6168
SELECT 80 - + 94 + 75 / 32 * - 40 * + 52, 93 AS col0
----
-4174
93

query I rowsort
SELECT DISTINCT - 43 + 83 * - - 28 AS col2
----
2281

query I rowsort
SELECT 72 + - 45
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT ALL - - 37 + 13 - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL - - 37 + 13 - + COUNT ( * )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6172
SELECT DISTINCT 38 * + - 77, COUNT( * ) + - 20 + CAST( - COALESCE ( 86, + + COUNT( * ), + ( + 54 ) * SUM( - 17 ) + COUNT( DISTINCT 46 ) ) AS SIGNED ) * - ( + CAST( NULL AS SIGNED ) ) AS col2
----
-2926
NULL

skipif mysql # not compatible
query II rowsort label-6172
SELECT DISTINCT 38 * + - 77, COUNT ( * ) + - 20 + CAST ( - COALESCE ( 86, + + COUNT ( * ), + ( + 54 ) * SUM ( - 17 ) + COUNT ( DISTINCT 46 ) ) AS INTEGER ) * - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
-2926
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT - CASE - - 29 WHEN + SUM( ALL - 89 ) THEN - CAST( + 92 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT - CASE - - 29 WHEN + SUM ( ALL - 89 ) THEN - CAST ( + 92 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6174
SELECT + - COUNT( * ) * + NULLIF ( + 83, ( + ( - 70 ) ) ) + + - NULLIF ( + - 81, - 57 + MAX( ALL - 4 ) ) AS col1, 9 + - 23 * - + 93
----
-2
2148

skipif mysql # not compatible
query II rowsort label-6174
SELECT + - COUNT ( * ) * + NULLIF ( + 83, ( + ( - 70 ) ) ) + + - NULLIF ( + - 81, - 57 + MAX ( ALL - 4 ) ) AS col1, 9 + - 23 * - + 93
----
-2
2148

query I rowsort
SELECT + 16 - + 64
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT ALL - - 54 * - 56 + + CAST( - - 34 AS SIGNED ) AS col2
----
-2990

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - - 54 * - 56 + + CAST ( - - 34 AS INTEGER ) AS col2
----
-2990

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT - 68 * - - COALESCE ( + 90, 23 ) DIV - 5 AS col2
----
1224

skipif mysql # not compatible
query I rowsort label-6177
SELECT - 68 * - - COALESCE ( + 90, 23 ) / - 5 AS col2
----
1224

query I rowsort
SELECT ALL + 89 * 1 - + 74 * 78 AS col0
----
-5683

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT DISTINCT 15 DIV - + ( - ( 96 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT 15 / - + ( - ( 96 ) ) AS col1
----
0

query I rowsort
SELECT ALL 50 * + 75 AS col0
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL + MAX( + 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + MAX ( + 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT - 26 + - SUM( DISTINCT + 10 )
----
-36

skipif mysql # not compatible
query I rowsort label-6182
SELECT - 26 + - SUM ( DISTINCT + 10 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + ( + - 50 ) * MIN( ALL 88 ) * - 98 + - 90 AS col2
----
431110

skipif mysql # not compatible
query I rowsort label-6183
SELECT + ( + - 50 ) * MIN ( ALL 88 ) * - 98 + - 90 AS col2
----
431110

query II rowsort
SELECT ALL 14 * - 18 AS col2, - 14 col0
----
-252
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT MIN( DISTINCT + + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-6185
SELECT MIN ( DISTINCT + + 89 )
----
89

query I rowsort
SELECT + 96 + + + 99 AS col2
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT MIN( ALL - + CAST( - 42 AS SIGNED ) ) col1
----
42

skipif mysql # not compatible
query I rowsort label-6187
SELECT MIN ( ALL - + CAST ( - 42 AS INTEGER ) ) col1
----
42

query I rowsort
SELECT DISTINCT 7 * + 24 AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6189
SELECT DISTINCT + CASE - MAX( + CAST( + - 41 AS SIGNED ) ) WHEN - - 27 + - 53 THEN NULL WHEN + - 29 * COUNT( DISTINCT 13 ) THEN - 43 + 75 + + - 58 + - - MAX( DISTINCT - ( + - 46 ) ) / 30 ELSE - - 78 END AS col2, CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-6189
SELECT DISTINCT + CASE - MAX ( + CAST ( + - 41 AS INTEGER ) ) WHEN - - 27 + - 53 THEN NULL WHEN + - 29 * COUNT ( DISTINCT 13 ) THEN - 43 + 75 + + - 58 + - - MAX ( DISTINCT - ( + - 46 ) ) / 30 ELSE - - 78 END AS col2, CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + COUNT( * ) + - + ( - MIN( - 65 ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-6190
SELECT + COUNT ( * ) + - + ( - MIN ( - 65 ) ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + + 29 + - - 88 * + COUNT( * ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-6191
SELECT + + 29 + - - 88 * + COUNT ( * ) AS col2
----
117

query I rowsort
SELECT ALL + 65 + + 35 * + 56 * + - 0 * + + ( + - 27 ) + - + ( - 59 ) * 83 + + 67 + 27 col1
----
5056

query I rowsort
SELECT + - 60 * - 27 AS col0
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT + 71 + - 44 + - 12 * - COUNT( * ) * - - 64 * - COALESCE ( + - 35, + 23 ) + - 72 + - + COUNT( * )
----
26834

skipif mysql # not compatible
query I rowsort label-6194
SELECT + 71 + - 44 + - 12 * - COUNT ( * ) * - - 64 * - COALESCE ( + - 35, + 23 ) + - 72 + - + COUNT ( * )
----
26834

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6195
SELECT + ( + 76 ) col2, 70 * 94 DIV + 32 + + ( + MIN( 75 ) )
----
76
280

skipif mysql # not compatible
query II rowsort label-6195
SELECT + ( + 76 ) col2, 70 * 94 / + 32 + + ( + MIN ( 75 ) )
----
76
280

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT + 85 + 21 DIV + - 31 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6196
SELECT + 85 + 21 / + - 31 AS col2
----
85

query I rowsort
SELECT - 98 + 18
----
-80

query I rowsort
SELECT ( + COALESCE ( + 37, - + 17 ) ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL + 83 * - + MIN( ALL COALESCE ( - - 12, - - 55 ) )
----
-996

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + 83 * - + MIN ( ALL COALESCE ( - - 12, - - 55 ) )
----
-996

query I rowsort
SELECT ALL - + 2 + - 7 + + 39 + + - 48 * - 46 + - 79
----
2159

query I rowsort
SELECT ALL - 13 + - - ( - + 1 ) * - 56 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT + - 44 DIV - 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6202
SELECT + - 44 / - 37 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT SUM( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-6203
SELECT SUM ( DISTINCT 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL 43 * + 84 * + NULLIF ( - 48, - + 82 ) * + + 69 + - COUNT( * ) + + 59
----
-11962886

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL 43 * + 84 * + NULLIF ( - 48, - + 82 ) * + + 69 + - COUNT ( * ) + + 59
----
-11962886

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT + + 84 DIV 14 DIV - - 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT + + 84 / 14 / - - 20 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT - + 78 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT - + 78 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 40 * + + 43 AS col1, 15 + - 70 AS col0
----
1720
-55

query I rowsort
SELECT - 14 + 65 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6209
SELECT DISTINCT CAST( ( - 97 ) AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT CAST ( ( - 97 ) AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6210
SELECT + + 76 + - 29 col0, 32 * + + 13 * NULLIF ( + + 18, - 13 + + NULLIF ( 26, - - SUM( DISTINCT 78 ) ) + 25 ) AS col2
----
47
7488

skipif mysql # not compatible
query II rowsort label-6210
SELECT + + 76 + - 29 col0, 32 * + + 13 * NULLIF ( + + 18, - 13 + + NULLIF ( 26, - - SUM ( DISTINCT 78 ) ) + 25 ) AS col2
----
47
7488

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT - 69 DIV 1
----
-69

skipif mysql # not compatible
query I rowsort label-6211
SELECT - 69 / 1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT ALL - ( - 78 ) DIV - 67 + COALESCE ( - 0, - 56 ) DIV - 26 * + 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL - ( - 78 ) / - 67 + COALESCE ( - 0, - 56 ) / - 26 * + 66 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6213
SELECT 31 * - 27 + CAST( NULLIF ( + 61, + COUNT( * ) * - + 26 + 32 + - - CAST( 84 AS DECIMAL ) + - - 58 * + CASE + ( - 97 ) WHEN 96 THEN + 87 WHEN + + COUNT( * ) / + 93 THEN - - 9 ELSE + + COUNT( * ) END ) AS SIGNED ) - - 17 + - 94 * - 38 AS col2, 20 AS col2
----
2813
20

skipif mysql # not compatible
query II rowsort label-6213
SELECT 31 * - 27 + CAST ( NULLIF ( + 61, + COUNT ( * ) * - + 26 + 32 + - - CAST ( 84 AS REAL ) + - - 58 * + CASE + ( - 97 ) WHEN 96 THEN + 87 WHEN + + COUNT ( * ) / + 93 THEN - - 9 ELSE + + COUNT ( * ) END ) AS INTEGER ) - - 17 + - 94 * - 38 AS col2, 20 AS col2
----
2813
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + MIN( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + MIN ( - 13 )
----
-13

query I rowsort
SELECT ALL + 95 * + 72 AS col0
----
6840

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT 95 DIV - 87 + - + 60
----
-61

skipif mysql # not compatible
query I rowsort label-6216
SELECT 95 / - 87 + - + 60
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT - COUNT( * ) * - ( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6217
SELECT - COUNT ( * ) * - ( 64 )
----
64

query II rowsort
SELECT DISTINCT + 90 AS col0, ( + ( + 11 ) )
----
90
11

query I rowsort
SELECT 68 * 16 * - ( + + 70 ) + + + 39 * + - 7 AS col1
----
-76433

query I rowsort
SELECT ALL + 77 * 98 AS col0
----
7546

query I rowsort
SELECT + 41 * 43 + + 44 + + 44 * - 50 + 42 AS col0
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL + SUM( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL + SUM ( 1 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6223
SELECT ALL + 96, ( + - COUNT( + - 14 ) ) + - 47 + + 64 + - 60 AS col1
----
96
-44

skipif mysql # not compatible
query II rowsort label-6223
SELECT ALL + 96, ( + - COUNT ( + - 14 ) ) + - 47 + + 64 + - 60 AS col1
----
96
-44

query I rowsort
SELECT - 49 * - 75 AS col1
----
3675

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6225
SELECT + COUNT( * ) col0, - 48 DIV + 33 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-6225
SELECT + COUNT ( * ) col0, - 48 / + 33 AS col0
----
1
-1

query II rowsort
SELECT ALL 97 * 89 + 98 AS col2, - 36 + + - 17
----
8731
-53

query I rowsort
SELECT - ( - 5 ) * - ( + 56 ) AS col1
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + COUNT( 30 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6228
SELECT + COUNT ( 30 ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 37 * + - 42 + - 63 + - 31
----
1460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6230
SELECT - 99 * - COALESCE ( - ( COUNT( - + 44 ) ), 29 + - - ( + ( 12 ) ) * + CASE 75 WHEN + + 41 THEN + 85 + 52 * + + 41 DIV 4 WHEN 16 * COUNT( * ) * - 27 + + 81 THEN - + MAX( + + CAST( NULL AS SIGNED ) ) ELSE + - 40 * + - 83 * + 27 END, - + 57 )
----
-99

skipif mysql # not compatible
query I rowsort label-6230
SELECT - 99 * - COALESCE ( - ( COUNT ( - + 44 ) ), 29 + - - ( + ( 12 ) ) * + CASE 75 WHEN + + 41 THEN + 85 + 52 * + + 41 / 4 WHEN 16 * COUNT ( * ) * - 27 + + 81 THEN - + MAX ( + + CAST ( NULL AS INTEGER ) ) ELSE + - 40 * + - 83 * + 27 END, - + 57 )
----
-99

query II rowsort
SELECT - 49 AS col0, + 3
----
-49
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + - 48 * + + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6232
SELECT + - 48 * + + COUNT ( * ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6233
SELECT + 83 AS col0, NULLIF ( + ( - ( - + COALESCE ( - COUNT( * ), - 48 * 50 * - CAST( NULL AS SIGNED ), + + 22 ) ) ), - 2 )
----
83
-1

skipif mysql # not compatible
query II rowsort label-6233
SELECT + 83 AS col0, NULLIF ( + ( - ( - + COALESCE ( - COUNT ( * ), - 48 * 50 * - CAST ( NULL AS INTEGER ), + + 22 ) ) ), - 2 )
----
83
-1

query I rowsort
SELECT ALL 88 + + 94 + + 83
----
265

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6235
SELECT + CAST( + ( + - 16 ) AS SIGNED ) * 29 * + 23 * + - 62 AS col1, + 15
----
661664
15

skipif mysql # not compatible
query II rowsort label-6235
SELECT + CAST ( + ( + - 16 ) AS INTEGER ) * 29 * + 23 * + - 62 AS col1, + 15
----
661664
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT - COALESCE ( + - 17, + COALESCE ( 7, 4 ) * + 14 * + 58 - + CASE + - CAST( 25 AS SIGNED ) WHEN - ( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE 27 END, - 87, + 56 )
----
17

skipif mysql # not compatible
query I rowsort label-6236
SELECT - COALESCE ( + - 17, + COALESCE ( 7, 4 ) * + 14 * + 58 - + CASE + - CAST ( 25 AS INTEGER ) WHEN - ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 27 END, - 87, + 56 )
----
17

query I rowsort
SELECT - 15 + - 68 + + 44
----
-39

query I rowsort
SELECT 9 * + 54
----
486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT ALL - COUNT( * ) DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - COUNT ( * ) / - 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT COUNT( * ) + - + ( 43 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6240
SELECT COUNT ( * ) + - + ( 43 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6241
SELECT - + 42 AS col1, ( - MAX( ALL + 54 ) ) AS col2
----
-42
-54

skipif mysql # not compatible
query II rowsort label-6241
SELECT - + 42 AS col1, ( - MAX ( ALL + 54 ) ) AS col2
----
-42
-54

query I rowsort
SELECT ALL - 66 - 62 * - 56 - 82 col2
----
3324

query I rowsort
SELECT DISTINCT 3 * + 66
----
198

onlyif mysql # DIV for integer division: 
query II rowsort label-6244
SELECT 52 DIV - 73 * + + ( - 24 ) AS col0, 61 * - 97
----
0
-5917

skipif mysql # not compatible
query II rowsort label-6244
SELECT 52 / - 73 * + + ( - 24 ) AS col0, 61 * - 97
----
0
-5917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT 23 * - 33 * + - CASE + 39 WHEN + CAST( NULL AS SIGNED ) THEN - 69 ELSE NULL END * - + ( + ( - 4 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT 23 * - 33 * + - CASE + 39 WHEN + CAST ( NULL AS INTEGER ) THEN - 69 ELSE NULL END * - + ( + ( - 4 ) ) AS col0
----
NULL

query I rowsort
SELECT 61 - - 47 * 97 * 13 AS col1
----
59328

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL - COUNT( + 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - COUNT ( + 33 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT COUNT( * ) DIV - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6248
SELECT COUNT ( * ) / - COUNT ( * ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT 77 / + CASE + 39 WHEN + 15 + 23 THEN - 49 + + COUNT( * ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT 77 / + CASE + 39 WHEN + 15 + 23 THEN - 49 + + COUNT ( * ) * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT - 19 + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT - 19 + + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6251
SELECT DISTINCT - ( COUNT( * ) ), ( - 9 ) AS col0
----
-1
-9

skipif mysql # not compatible
query II rowsort label-6251
SELECT DISTINCT - ( COUNT ( * ) ), ( - 9 ) AS col0
----
-1
-9

query I rowsort
SELECT ALL + 46 * - + 29 AS col1
----
-1334

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT + 19 + + 24 DIV - CAST( 23 AS SIGNED ) - 72
----
-54

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + 19 + + 24 / - CAST ( 23 AS INTEGER ) - 72
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL + 1 + - CASE 67 WHEN - + 47 THEN NULL WHEN - 60 THEN + + ( + COUNT( * ) ) * - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + 1 + - CASE 67 WHEN - + 47 THEN NULL WHEN - 60 THEN + + ( + COUNT ( * ) ) * - 3 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 47 * 32 AS col0, - 39
----
-1504
-39

query II rowsort
SELECT 67 + 0 AS col0, + 57 col1
----
67
57

query I rowsort
SELECT 40 + - 78
----
-38

query II rowsort
SELECT + ( + 86 ) AS col0, 8
----
86
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - 16 * - COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - 16 * - COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL + 58 + MIN( - - 37 )
----
95

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + 58 + MIN ( - - 37 )
----
95

query I rowsort
SELECT 77 * 0 + 18 AS col0
----
18

query I rowsort
SELECT DISTINCT ( 61 ) AS col1
----
61

query I rowsort
SELECT 78 + + 23 - - + 85 + - 43
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT 24 + 32 - - + 58 + - 7 - - COUNT( * ), + 79 + - 27 col0
----
108
52

skipif mysql # not compatible
query II rowsort label-6264
SELECT 24 + 32 - - + 58 + - 7 - - COUNT ( * ), + 79 + - 27 col0
----
108
52

query I rowsort
SELECT + 95 * + 56
----
5320

query I rowsort
SELECT + 69 + + 69
----
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6267
SELECT DISTINCT - 73 DIV - CAST( + + 20 AS SIGNED ) - + 88 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT - 73 / - CAST ( + + 20 AS INTEGER ) - + 88 AS col2
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-6268
SELECT NULLIF ( 6, + - 2 * + + 62 + + 89 ) DIV + 44 * 28 AS col2, + 13
----
0
13

skipif mysql # not compatible
query II rowsort label-6268
SELECT NULLIF ( 6, + - 2 * + + 62 + + 89 ) / + 44 * 28 AS col2, + 13
----
0
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT CAST( 84 AS SIGNED ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT CAST ( 84 AS INTEGER ) * - 0 AS col0
----
0

query I rowsort
SELECT ALL 62 * + 58 AS col0
----
3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT ALL - 81 * COALESCE ( - - MAX( DISTINCT 58 ), - - 92 ) DIV NULLIF ( + COALESCE ( 81, + 9 ), - 55 DIV 57 - + - 34 + - - 30 + + 44 DIV - 68 ) + - 36 * 50 AS col0
----
-1858

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL - 81 * COALESCE ( - - MAX ( DISTINCT 58 ), - - 92 ) / NULLIF ( + COALESCE ( 81, + 9 ), - 55 / 57 - + - 34 + - - 30 + + 44 / - 68 ) + - 36 * 50 AS col0
----
-1858

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6272
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT 42 * - COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6273
SELECT 42 * - COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL COUNT( 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL COUNT ( 51 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT DISTINCT 16 col2, SUM( 31 ) * 17 - + 91 - + - 87 + + - 92
----
16
431

skipif mysql # not compatible
query II rowsort label-6275
SELECT DISTINCT 16 col2, SUM ( 31 ) * 17 - + 91 - + - 87 + + - 92
----
16
431

query I rowsort
SELECT 32 * ( - 14 ) * 90 AS col1
----
-40320

query I rowsort
SELECT 68 * 8 AS col0
----
544

query II rowsort
SELECT 86 AS col1, + 76 + - - 4 + 75 AS col0
----
86
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT - SUM( ALL + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-6279
SELECT - SUM ( ALL + 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL 9 * CASE - - 90 WHEN - CASE - + 11 WHEN + - ( - + 23 ) THEN NULL WHEN - MAX( ALL 47 ) THEN CASE - 6 WHEN - ( NULLIF ( - 36, + + 88 * + 31 + SUM( ALL + 81 ) ) ) + + 92 THEN COUNT( * ) ELSE + + 96 END ELSE NULL END * - 44 THEN NULL ELSE + + 51 + + 93 END + 23 + + 51
----
1370

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL 9 * CASE - - 90 WHEN - CASE - + 11 WHEN + - ( - + 23 ) THEN NULL WHEN - MAX ( ALL 47 ) THEN CASE - 6 WHEN - ( NULLIF ( - 36, + + 88 * + 31 + SUM ( ALL + 81 ) ) ) + + 92 THEN COUNT ( * ) ELSE + + 96 END ELSE NULL END * - 44 THEN NULL ELSE + + 51 + + 93 END + 23 + + 51
----
1370

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL - SUM( ALL + - 13 ) col2
----
13

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL - SUM ( ALL + - 13 ) col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT DISTINCT 52 * - 29 + - 1 + + + 55 - - + 68 * + - CAST( NULL AS SIGNED ) * - COUNT( 5 ) * ( + 49 ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT 52 * - 29 + - 1 + + + 55 - - + 68 * + - CAST ( NULL AS INTEGER ) * - COUNT ( 5 ) * ( + 49 ) + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT MIN( ALL 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6283
SELECT MIN ( ALL 22 )
----
22

query I rowsort
SELECT DISTINCT 49 * 60 * + 27 * + - 3 AS col0
----
-238140

query I rowsort
SELECT 93 + + - 87 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT + SUM( DISTINCT - + 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6286
SELECT + SUM ( DISTINCT - + 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT - MAX( 24 ) * + - 49 + COUNT( * ) + 27 + 77 + 45 + 89
----
1415

skipif mysql # not compatible
query I rowsort label-6287
SELECT - MAX ( 24 ) * + - 49 + COUNT ( * ) + 27 + 77 + 45 + 89
----
1415

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT CASE + + NULLIF ( - 6, + + 50 + ( + 8 ) + + + 12 * + COUNT( * ) ) WHEN 7 - AVG ( + 16 ) / - - 57 THEN 10 / - - 19 + + + 25 WHEN 20 THEN - + 70 * - 77 WHEN + + 81 / + 5 THEN COUNT( * ) + - 54 END * - 60 * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT CASE + + NULLIF ( - 6, + + 50 + ( + 8 ) + + + 12 * + COUNT ( * ) ) WHEN 7 - AVG ( + 16 ) / - - 57 THEN 10 / - - 19 + + + 25 WHEN 20 THEN - + 70 * - 77 WHEN + + 81 / + 5 THEN COUNT ( * ) + - 54 END * - 60 * - 39
----
NULL

query I rowsort
SELECT 83 * - 54 col1
----
-4482

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT DISTINCT 83 DIV + 83 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT 83 / + 83 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT 8 * + MAX( 68 ) AS col1
----
544

skipif mysql # not compatible
query I rowsort label-6291
SELECT 8 * + MAX ( 68 ) AS col1
----
544

query I rowsort
SELECT DISTINCT 76 - + 28
----
48

query I rowsort
SELECT + COALESCE ( + 0, 77 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT + COUNT( * ) * - MIN( ALL + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6294
SELECT + COUNT ( * ) * - MIN ( ALL + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT - CASE - 38 WHEN COUNT( * ) - - 90 * + COUNT( * ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT - CASE - 38 WHEN COUNT ( * ) - - 90 * + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 12 * 80 - - 19
----
-941

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL - CASE + 33 WHEN MIN( + CASE + 48 WHEN 32 THEN 72 ELSE NULL END ) THEN - 95 * 50 - + COALESCE ( 76 + + 49, 76 * 65 ) END * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - CASE + 33 WHEN MIN ( + CASE + 48 WHEN 32 THEN 72 ELSE NULL END ) THEN - 95 * 50 - + COALESCE ( 76 + + 49, 76 * 65 ) END * - 93
----
NULL

query I rowsort
SELECT - 69 - - 95
----
26

query I rowsort
SELECT ALL 75 * 93 col2
----
6975

query I rowsort
SELECT ALL COALESCE ( - 49, + 22 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6301
SELECT DISTINCT CASE - ( - 85 ) WHEN + 55 * + 50 + 9 THEN - 32 * + 71 WHEN + 39 * 76 THEN 21 + + COUNT( * ) * - ( 96 ) ELSE - 12 DIV - 69 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT CASE - ( - 85 ) WHEN + 55 * + 50 + 9 THEN - 32 * + 71 WHEN + 39 * 76 THEN 21 + + COUNT ( * ) * - ( 96 ) ELSE - 12 / - 69 END AS col0
----
0

query I rowsort
SELECT - 22 * 41
----
-902

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT - 39 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT - 39 / 72 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT DISTINCT 51 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT 51 / 59 AS col0
----
0

query I rowsort
SELECT - 10 + 90 * + 39
----
3500

query I rowsort
SELECT - 16 - + 40 * + 58
----
-2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6307
SELECT ALL COALESCE ( ( + 28 ), CAST( - 20 AS SIGNED ) + - ( 63 + COUNT( * ) ) DIV ( 41 + + MAX( + 27 ) ) ) col1
----
28

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL COALESCE ( ( + 28 ), CAST ( - 20 AS INTEGER ) + - ( 63 + COUNT ( * ) ) / ( 41 + + MAX ( + 27 ) ) ) col1
----
28

query I rowsort
SELECT - 86 + - 28 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT + 36 + COUNT( ALL ( 66 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT + 36 + COUNT ( ALL ( 66 ) ) AS col2
----
37

query I rowsort
SELECT ALL + 18 + 36 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT - COUNT( - 29 ) + + 42 * - 33 AS col2
----
-1387

skipif mysql # not compatible
query I rowsort label-6311
SELECT - COUNT ( - 29 ) + + 42 * - 33 AS col2
----
-1387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT ALL + NULLIF ( 0, COALESCE ( CASE SUM( ALL COALESCE ( - 66, 51, - 47 ) ) WHEN 5 THEN ( + 81 ) * 27 ELSE NULL END, 34, ( ( + NULLIF ( 65, 96 ) ) ) DIV + AVG ( 81 * 66 ) ) ) DIV - 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL + NULLIF ( 0, COALESCE ( CASE SUM ( ALL COALESCE ( - 66, 51, - 47 ) ) WHEN 5 THEN ( + 81 ) * 27 ELSE NULL END, 34, ( ( + NULLIF ( 65, 96 ) ) ) / + AVG ( 81 * 66 ) ) ) / - 72 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT - 32 + + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6313
SELECT - 32 + + COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT ALL - 73 + - 61 col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL + 19 + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL + 19 + - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - SUM( - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-6316
SELECT - SUM ( - 14 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT DISTINCT 16 * 40 + - 13 DIV - 92
----
640

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT 16 * 40 + - 13 / - 92
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6318
SELECT + COUNT ( * ) * - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT - 7 - CASE ( - COUNT( * ) ) WHEN - MAX( 87 ) THEN 94 * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT - 7 - CASE ( - COUNT ( * ) ) WHEN - MAX ( 87 ) THEN 94 * - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + ( 63 ) * 81 - + ( + 5 ) col0
----
5098

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ( MIN( DISTINCT - 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6321
SELECT ( MIN ( DISTINCT - 14 ) )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT DISTINCT + ( + CAST( + NULLIF ( NULLIF ( + 7, SUM( ALL 44 ) ), 39 + - 49 ) AS SIGNED ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + ( + CAST ( + NULLIF ( NULLIF ( + 7, SUM ( ALL 44 ) ), 39 + - 49 ) AS INTEGER ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL COUNT( * ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL COUNT ( * ) * + 3 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT ALL + MAX( 4 ) / ( - 65 + + 92 * - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL + MAX ( 4 ) / ( - 65 + + 92 * - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + COALESCE ( + 61, NULLIF ( + 2, 40 * 36 ) + 13 ) AS col2
----
61

query I rowsort
SELECT 75 * 9 + - 72
----
603

query I rowsort
SELECT + + ( 70 ) + - 76
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT - COUNT( * ) * 68 - + 75 AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-6328
SELECT - COUNT ( * ) * 68 - + 75 AS col2
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT + 77 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT + 77 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 16 AS col2
----
16

query I rowsort
SELECT - + 3 * 87
----
-261

query I rowsort
SELECT - 65 * ( 29 + 85 ) AS col0
----
-7410

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - 55 * + 14 + - 27 * COUNT( ALL 11 ) col0
----
-797

skipif mysql # not compatible
query I rowsort label-6333
SELECT - 55 * + 14 + - 27 * COUNT ( ALL 11 ) col0
----
-797

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6334
SELECT ALL - 23 DIV MIN( 52 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - 23 / MIN ( 52 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + + ( - 60 )
----
-60

query I rowsort
SELECT + - 84 + - 30 * 19
----
-654

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6337
SELECT ALL - 79 DIV - CAST( 35 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - 79 / - CAST ( 35 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT MIN( 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6338
SELECT MIN ( 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT - CASE 91 WHEN - 94 THEN + 39 WHEN SUM( ALL - 7 ) * 17 + - 80 THEN NULL WHEN 28 + + MIN( ALL 57 ) THEN 3 * 94 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT - CASE 91 WHEN - 94 THEN + 39 WHEN SUM ( ALL - 7 ) * 17 + - 80 THEN NULL WHEN 28 + + MIN ( ALL 57 ) THEN 3 * 94 END col0
----
NULL

query I rowsort
SELECT + 93 * + 72
----
6696

query I rowsort
SELECT - 67 + + 25
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL + 50 + - SUM( DISTINCT 41 )
----
9

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + 50 + - SUM ( DISTINCT 41 )
----
9

query I rowsort
SELECT DISTINCT + 32 + + 40
----
72

query I rowsort
SELECT DISTINCT 79 + 80
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6345
SELECT DISTINCT + 5 + + CAST( MAX( + ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + 5 + + CAST ( MAX ( + ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT CASE + 62 WHEN 68 * 19 + 17 * 0 THEN NULL WHEN - 61 THEN + 97 + - ( 33 ) * 53 END AS col0
----
NULL

query I rowsort
SELECT + 38 + 81
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT - CAST( NULL AS SIGNED ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT - CAST ( NULL AS INTEGER ) * + 91
----
NULL

query I rowsort
SELECT ALL ( - 91 ) AS col1
----
-91

query I rowsort
SELECT DISTINCT ( - 42 ) AS col1
----
-42

query I rowsort
SELECT ALL + 88 - 41 + ( + 73 + - 50 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6352
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - NULLIF ( 23 * 83, SUM( + 42 ) - 43 ) col2
----
-1909

skipif mysql # not compatible
query I rowsort label-6352
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - NULLIF ( 23 * 83, SUM ( + 42 ) - 43 ) col2
----
-1909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT - CAST( ( 23 ) AS SIGNED ) + + 45 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6353
SELECT - CAST ( ( 23 ) AS INTEGER ) + + 45 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + COUNT( * ) * COUNT( * ) - 17
----
-16

skipif mysql # not compatible
query I rowsort label-6354
SELECT + COUNT ( * ) * COUNT ( * ) - 17
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT ALL + COUNT( * ) * + + ( + CAST( 82 AS SIGNED ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL + COUNT ( * ) * + + ( + CAST ( 82 AS INTEGER ) ) AS col1
----
82

query I rowsort
SELECT ALL - 88 * - 37
----
3256

query I rowsort
SELECT DISTINCT + - 37 * + 67
----
-2479

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT + - SUM( ALL - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + - SUM ( ALL - 78 )
----
78

query I rowsort
SELECT 61 + + + 92
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT CAST( + 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6360
SELECT CAST ( + 20 AS INTEGER ) AS col0
----
20

query I rowsort
SELECT DISTINCT - + 87 AS col2
----
-87

query I rowsort
SELECT - - 40 * 57 + 27
----
2307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT NULLIF ( SUM( 0 ), + 64 * + CAST( - 94 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT NULLIF ( SUM ( 0 ), + 64 * + CAST ( - 94 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT CASE WHEN ( + COUNT( * ) ) BETWEEN 46 * 6 AND NULL THEN NULL ELSE COUNT( * ) + 61 * 71 END AS col0
----
4332

skipif mysql # not compatible
query I rowsort label-6364
SELECT CASE WHEN ( + COUNT ( * ) ) BETWEEN 46 * 6 AND NULL THEN NULL ELSE COUNT ( * ) + 61 * 71 END AS col0
----
4332

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT ALL - MAX( ALL - + 79 ) * COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - MAX ( ALL - + 79 ) * COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT - SUM( 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - SUM ( 95 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT + CASE - - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + - 30 THEN AVG ( 13 ) + CAST( NULL AS SIGNED ) * COALESCE ( 87 + + 56 * 37, - 24 ) WHEN + 96 THEN + 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6367
SELECT + CASE - - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - 30 THEN AVG ( 13 ) + CAST ( NULL AS INTEGER ) * COALESCE ( 87 + + 56 * 37, - 24 ) WHEN + 96 THEN + 53 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6368
SELECT + 29 DIV 55 * COUNT( * ) + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6368
SELECT + 29 / 55 * COUNT ( * ) + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL 12 + + 28 * + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL 12 + + 28 * + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6370
SELECT DISTINCT - 0 + + + 81 + + 98 DIV ( - 86 ) DIV - COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - 0 + + + 81 + + 98 / ( - 86 ) / - COUNT ( * ) col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT - 96 DIV + - 82 - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 96 / + - 82 - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - SUM( ALL + 21 ) / + CASE + COALESCE ( + 89, 51, 98 / 71 ) - + 52 WHEN 95 THEN NULL WHEN + 51 THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT - SUM ( ALL + 21 ) / + CASE + COALESCE ( + 89, 51, 98 / 71 ) - + 52 WHEN 95 THEN NULL WHEN + 51 THEN 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL + MIN( DISTINCT + 26 ) + - COUNT( * ) * - MIN( ALL - 22 )
----
4

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL + MIN ( DISTINCT + 26 ) + - COUNT ( * ) * - MIN ( ALL - 22 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT - - CAST( 10 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6374
SELECT - - CAST ( 10 AS INTEGER ) AS col1
----
10

query I rowsort
SELECT ALL COALESCE ( - + 61, + 77 ) * 8 col1
----
-488

query I rowsort
SELECT DISTINCT 3 + - 84
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6377
SELECT ALL 27 / + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL 27 / + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT 61 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6378
SELECT 61 / 81 AS col2
----
0

query I rowsort
SELECT ALL 38 + + - ( - 78 ) AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6380
SELECT DISTINCT 69, 0 * - + 90 * CAST( NULL AS SIGNED ) AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-6380
SELECT DISTINCT 69, 0 * - + 90 * CAST ( NULL AS INTEGER ) AS col0
----
69
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL + 19 + + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + 19 + + COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT 86 - + COUNT( DISTINCT - + 0 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-6382
SELECT 86 - + COUNT ( DISTINCT - + 0 ) col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT 93 + + + ( COUNT( * ) ) + 60
----
154

skipif mysql # not compatible
query I rowsort label-6383
SELECT 93 + + + ( COUNT ( * ) ) + 60
----
154

query I rowsort
SELECT DISTINCT 26 - 23 * + + 85 * - 56
----
109506

query II rowsort
SELECT - 85 col1, + 87 + 6
----
-85
93

query I rowsort
SELECT DISTINCT + 1 * CASE + + 86 WHEN - 30 THEN NULL WHEN - ( + 7 ) / 84 THEN NULL ELSE 47 END AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT DISTINCT 31 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT 31 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 66 * - 91
----
-6006

query I rowsort
SELECT DISTINCT 84 * - 94
----
-7896

query I rowsort
SELECT 11 * - ( + 33 ) AS col0
----
-363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6391
SELECT 48 DIV + COALESCE ( - - 53, NULLIF ( - 59, 17 + CAST( COUNT( * ) AS SIGNED ) ) DIV ( COUNT( * ) ) ) + + COALESCE ( 74, + 73, + ( 96 ) * - 11 + + 34 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6391
SELECT 48 / + COALESCE ( - - 53, NULLIF ( - 59, 17 + CAST ( COUNT ( * ) AS INTEGER ) ) / ( COUNT ( * ) ) ) + + COALESCE ( 74, + 73, + ( 96 ) * - 11 + + 34 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT - NULLIF ( - 0, + + 63 / - 37 + COUNT( * ) * 50 )
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT - NULLIF ( - 0, + + 63 / - 37 + COUNT ( * ) * 50 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6393
SELECT + COUNT( * ) AS col2, 8 AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-6393
SELECT + COUNT ( * ) AS col2, 8 AS col1
----
1
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6394
SELECT MIN( DISTINCT + 60 ) DIV + 29 + - 14 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6394
SELECT MIN ( DISTINCT + 60 ) / + 29 + - 14 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6395
SELECT - SUM( 24 ) * 43 * + MIN( 31 ) - - COUNT( * ) DIV - CAST( ( + 19 ) - + 34 AS SIGNED ) col2
----
-31992

skipif mysql # not compatible
query I rowsort label-6395
SELECT - SUM ( 24 ) * 43 * + MIN ( 31 ) - - COUNT ( * ) / - CAST ( ( + 19 ) - + 34 AS INTEGER ) col2
----
-31992

query II rowsort
SELECT + + 24 AS col1, - 66 * 58
----
24
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT - COUNT( * ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - COUNT ( * ) + - 92
----
-93

query I rowsort
SELECT ALL - + 96 * - 43
----
4128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6399
SELECT - 86 * 77 * + + 91 + + ( + MIN( ALL 2 ) ) DIV 43 AS col1
----
-602602

skipif mysql # not compatible
query I rowsort label-6399
SELECT - 86 * 77 * + + 91 + + ( + MIN ( ALL 2 ) ) / 43 AS col1
----
-602602

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL - - 80 + + - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL - - 80 + + - COUNT ( * ) AS col2
----
79

query II rowsort
SELECT DISTINCT - + 60 AS col1, + 71
----
-60
71

query I rowsort
SELECT ALL 39 + - 81 col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6403
SELECT ALL - - COALESCE ( + + CASE - + 22 WHEN + 63 + - 70 THEN 84 DIV - CASE - COUNT( * ) * - 66 WHEN 99 THEN NULL WHEN 90 THEN - ( 23 ) * ( - 64 ) WHEN - 33 THEN + 90 END - 87 ELSE NULL END, + COUNT( ALL ( 18 ) ), CAST( NULL AS SIGNED ) ) + 21
----
22

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL - - COALESCE ( + + CASE - + 22 WHEN + 63 + - 70 THEN 84 / - CASE - COUNT ( * ) * - 66 WHEN 99 THEN NULL WHEN 90 THEN - ( 23 ) * ( - 64 ) WHEN - 33 THEN + 90 END - 87 ELSE NULL END, + COUNT ( ALL ( 18 ) ), CAST ( NULL AS INTEGER ) ) + 21
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT 51 * + - 48 - - + 72 * - CASE 13 + COUNT( 49 ) WHEN CAST( - 59 AS SIGNED ) THEN - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT 51 * + - 48 - - + 72 * - CASE 13 + COUNT ( 49 ) WHEN CAST ( - 59 AS INTEGER ) THEN - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT COUNT( * ) + + 10 * - COUNT( * ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-6405
SELECT COUNT ( * ) + + 10 * - COUNT ( * ) col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT + - 63 * - 67 - - - CAST( COALESCE ( - 13, ( - ( - ( - 33 ) ) ) + - CAST( - 6 AS SIGNED ) / - 15, + 53 / COUNT( * ) ) AS SIGNED ) AS col1
----
4234

skipif mysql # not compatible
query I rowsort label-6406
SELECT + - 63 * - 67 - - - CAST ( COALESCE ( - 13, ( - ( - ( - 33 ) ) ) + - CAST ( - 6 AS INTEGER ) / - 15, + 53 / COUNT ( * ) ) AS INTEGER ) AS col1
----
4234

query I rowsort
SELECT ALL + - 92 + - - 10 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6408
SELECT 87 AS col1, CAST( NULL AS SIGNED ) * - COUNT( * ) * ( CAST( + 12 AS SIGNED ) )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6408
SELECT 87 AS col1, CAST ( NULL AS INTEGER ) * - COUNT ( * ) * ( CAST ( + 12 AS INTEGER ) )
----
87
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6409
SELECT + 89 + + COALESCE ( - + 15, - CASE NULLIF ( 66, + CAST( + 83 AS SIGNED ) ) WHEN - 7 * - 85 THEN NULL WHEN NULLIF ( - 35, 54 * - 87 ) * - 69 THEN NULL ELSE + 20 END ) + - 92 DIV + 91
----
73

skipif mysql # not compatible
query I rowsort label-6409
SELECT + 89 + + COALESCE ( - + 15, - CASE NULLIF ( 66, + CAST ( + 83 AS INTEGER ) ) WHEN - 7 * - 85 THEN NULL WHEN NULLIF ( - 35, 54 * - 87 ) * - 69 THEN NULL ELSE + 20 END ) + - 92 / + 91
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-6410
SELECT + 54, 44 DIV + + ( - 32 ) AS col1
----
54
-1

skipif mysql # not compatible
query II rowsort label-6410
SELECT + 54, 44 / + + ( - 32 ) AS col1
----
54
-1

query I rowsort
SELECT DISTINCT - - ( - + 50 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT + + CASE 30 WHEN - 89 / 8 THEN - 8 END + 78 AS col2
----
NULL

query I rowsort
SELECT ALL - ( - + 12 ) + + 50
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT MAX( - 60 ) + - ( - 65 ) + COUNT( * ) * + 50 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6414
SELECT MAX ( - 60 ) + - ( - 65 ) + COUNT ( * ) * + 50 AS col2
----
55

query I rowsort
SELECT ALL 21 - ( - + 70 ) AS col1
----
91

query II rowsort
SELECT 77 * 48 AS col1, + ( + 81 ) - - 55 * + 23 AS col2
----
3696
1346

query II rowsort
SELECT ALL - 14 * - - 45, 91 AS col1
----
-630
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT CASE - 9 WHEN - 6 THEN NULL ELSE + + 61 + + COUNT( * ) * - 86 END + 47 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6418
SELECT CASE - 9 WHEN - 6 THEN NULL ELSE + + 61 + + COUNT ( * ) * - 86 END + 47 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6419
SELECT 96 + - + 72 + 70 + + + 3 * + CASE 87 * - CAST( NULL AS SIGNED ) + 6 WHEN 0 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 74 + 21 WHEN 46 * - 75 THEN 57 + 53 * - CAST( NULL AS SIGNED ) ELSE NULL END / + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT 96 + - + 72 + 70 + + + 3 * + CASE 87 * - CAST ( NULL AS INTEGER ) + 6 WHEN 0 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 74 + 21 WHEN 46 * - 75 THEN 57 + 53 * - CAST ( NULL AS INTEGER ) ELSE NULL END / + 99 AS col1
----
NULL

query I rowsort
SELECT ALL 85 - 78 * - + NULLIF ( - 83, - 50 * 21 + + 56 * - 44 ) col0
----
-6389

query I rowsort
SELECT 67 * + - 92
----
-6164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT CAST( NULL AS SIGNED ) + - SUM( - - 41 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT CAST ( NULL AS INTEGER ) + - SUM ( - - 41 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT - 97 * - COUNT( * ) col1
----
97

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT - 97 * - COUNT ( * ) col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6424
SELECT SUM( + 95 ) + - CAST( NULL AS SIGNED ) * + ( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT SUM ( + 95 ) + - CAST ( NULL AS INTEGER ) * + ( - 18 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6425
SELECT ALL - 25 * 61 DIV - COUNT( * )
----
1525

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - 25 * 61 / - COUNT ( * )
----
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT + 13 DIV - 62 * 52
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT + 13 / - 62 * 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT ALL 19 DIV + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL 19 / + 77 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT + 30 + + + 74 DIV COALESCE ( - 70, 57 - + 93 ) DIV 11 + 3 col1
----
33

skipif mysql # not compatible
query I rowsort label-6428
SELECT + 30 + + + 74 / COALESCE ( - 70, 57 - + 93 ) / 11 + 3 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT - NULLIF ( + 94, - 46 + + + COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-6429
SELECT - NULLIF ( + 94, - 46 + + + COUNT ( * ) )
----
-94

query I rowsort
SELECT - 7 + - 67 - + ( 26 )
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-6431
SELECT ALL - ( - 71 ), NULLIF ( + - 21, COUNT( * ) ) AS col0
----
71
-21

skipif mysql # not compatible
query II rowsort label-6431
SELECT ALL - ( - 71 ), NULLIF ( + - 21, COUNT ( * ) ) AS col0
----
71
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + COUNT( * ) + + CASE - MAX( ALL 71 ) WHEN - 7 THEN NULL WHEN SUM( DISTINCT - 22 ) - COUNT( * ) THEN - 6 * + 11 + - 20 * + CASE + COUNT( * ) WHEN 50 * 35 + 37 THEN 66 ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT + COUNT ( * ) + + CASE - MAX ( ALL 71 ) WHEN - 7 THEN NULL WHEN SUM ( DISTINCT - 22 ) - COUNT ( * ) THEN - 6 * + 11 + - 20 * + CASE + COUNT ( * ) WHEN 50 * 35 + 37 THEN 66 ELSE NULL END ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 44 + - 71 * + 78 AS col0
----
-5582

query I rowsort
SELECT + 57 + - 25 + + - NULLIF ( 69, 34 )
----
-37

query I rowsort
SELECT - + 3 * + - 40 + - ( 34 ) + - 2 AS col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT - 84 DIV + - 18 + + 20 - 8 + 77 * 33
----
2557

skipif mysql # not compatible
query I rowsort label-6436
SELECT - 84 / + - 18 + + 20 - 8 + 77 * 33
----
2557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT DISTINCT + - 86 * - 56 + + + 85 DIV - - COUNT( * ) + + ( + 46 )
----
4947

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT + - 86 * - 56 + + + 85 / - - COUNT ( * ) + + ( + 46 )
----
4947

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT + - 2 * 84 - 70 + - COUNT( * ) * - 36
----
-202

skipif mysql # not compatible
query I rowsort label-6438
SELECT + - 2 * 84 - 70 + - COUNT ( * ) * - 36
----
-202

query II rowsort
SELECT ALL - 50 * - 42, 51 + - CASE + 63 WHEN 11 THEN NULL ELSE 11 END AS col1
----
2100
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL + - 1 * + CAST( - - 29 AS SIGNED ) + - 79 + + 99 * ( + SUM( - 54 ) * 63 ) AS col1
----
-336906

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + - 1 * + CAST ( - - 29 AS INTEGER ) + - 79 + + 99 * ( + SUM ( - 54 ) * 63 ) AS col1
----
-336906

query I rowsort
SELECT ALL + - ( + - 45 )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT - NULLIF ( + 19, - 83 ) DIV + 1 col2
----
-19

skipif mysql # not compatible
query I rowsort label-6442
SELECT - NULLIF ( + 19, - 83 ) / + 1 col2
----
-19

query I rowsort
SELECT ALL - 28 * - 17 AS col0
----
476

query I rowsort
SELECT - 3 * + + 77 AS col1
----
-231

query II rowsort
SELECT + 69 AS col2, 51 * 77 AS col0
----
69
3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6446
SELECT COUNT( * ) col2, + 80 DIV - - NULLIF ( - - 41, 27 * 49 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-6446
SELECT COUNT ( * ) col2, + 80 / - - NULLIF ( - - 41, 27 * 49 ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT SUM( - + 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6447
SELECT SUM ( - + 84 ) AS col2
----
-84

query I rowsort
SELECT ALL ( + 7 )
----
7

query II rowsort
SELECT ALL 80 AS col0, + ( 72 ) AS col1
----
80
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6450
SELECT - ( + MAX( ALL - 92 ) ) - + CAST( NULL AS SIGNED ) / + MAX( ALL 92 ) * CAST( COALESCE ( - 42, 59 ) + + 18 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT - ( + MAX ( ALL - 92 ) ) - + CAST ( NULL AS INTEGER ) / + MAX ( ALL 92 ) * CAST ( COALESCE ( - 42, 59 ) + + 18 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL CASE + - 28 WHEN - 29 - 35 THEN + 77 * + COUNT( * ) + 24 * + COUNT( * ) WHEN - 84 THEN + 7 - + 92 / 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL CASE + - 28 WHEN - 29 - 35 THEN + 77 * + COUNT ( * ) + 24 * + COUNT ( * ) WHEN - 84 THEN + 7 - + 92 / 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT DISTINCT NULLIF ( - 10, - - COUNT( - 46 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT NULLIF ( - 10, - - COUNT ( - 46 ) ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT - COUNT( * ) - + + 27 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6453
SELECT - COUNT ( * ) - + + 27 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL 31 * + 12 * + SUM( DISTINCT + + 18 ) AS col2
----
6696

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL 31 * + 12 * + SUM ( DISTINCT + + 18 ) AS col2
----
6696

query I rowsort
SELECT - 37 * - ( - - ( + 96 ) ) * - - 91 col1
----
323232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6456
SELECT 26 AS col2, - COUNT( * ) - + 69 + + 54 + + + 44 DIV 52
----
26
-16

skipif mysql # not compatible
query II rowsort label-6456
SELECT 26 AS col2, - COUNT ( * ) - + 69 + + 54 + + + 44 / 52
----
26
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT - MAX( DISTINCT 40 ) + + 87
----
47

skipif mysql # not compatible
query I rowsort label-6457
SELECT - MAX ( DISTINCT 40 ) + + 87
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT + 89 - - 52 DIV + 15
----
92

skipif mysql # not compatible
query I rowsort label-6458
SELECT + 89 - - 52 / + 15
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - NULLIF ( - - ( + - 49 ), - MAX( + 46 ) ) * NULLIF ( 92 * 30, 14 * + 98 ) AS col2
----
135240

skipif mysql # not compatible
query I rowsort label-6459
SELECT - NULLIF ( - - ( + - 49 ), - MAX ( + 46 ) ) * NULLIF ( 92 * 30, 14 * + 98 ) AS col2
----
135240

query I rowsort
SELECT + 7 * - + 29
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT + 66 - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6461
SELECT + 66 - COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - - ( - ( 35 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - - ( - ( 35 ) ) AS col2
----
-35

query I rowsort
SELECT ALL 72 + - 43 + + 46 + + - 81 * - + 6 AS col0
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + - COUNT( DISTINCT - + 62 ) * - + MAX( DISTINCT 37 ) * SUM( - 26 ) * COUNT( * )
----
-962

skipif mysql # not compatible
query I rowsort label-6464
SELECT + - COUNT ( DISTINCT - + 62 ) * - + MAX ( DISTINCT 37 ) * SUM ( - 26 ) * COUNT ( * )
----
-962

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT DISTINCT + - 88 + ( + ( + + 8 ) ) DIV - 18 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + - 88 + ( + ( + + 8 ) ) / - 18 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL MIN( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL MIN ( + 40 )
----
40

query I rowsort
SELECT DISTINCT - 65 + + CASE 94 WHEN + 21 THEN 58 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6468
SELECT ALL - COUNT( * ) DIV - ( - 93 ) - 89 col0
----
-89

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - COUNT ( * ) / - ( - 93 ) - 89 col0
----
-89

query I rowsort
SELECT ALL + 95 + - - 33 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT COUNT( * ) + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT COUNT ( * ) + 18 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + - 15 + + 35 + + - MAX( ALL 47 ) * - 37 AS col2
----
1759

skipif mysql # not compatible
query I rowsort label-6471
SELECT + - 15 + + 35 + + - MAX ( ALL 47 ) * - 37 AS col2
----
1759

query I rowsort
SELECT + 91 * 47 AS col0
----
4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6473
SELECT DISTINCT - - 43 / COUNT( * ) * - ( COUNT( * ) ) * - + ( 94 ) + 66 * ( 89 * + SUM( ALL 73 * ( + 43 * - 74 ) ) + 38 * 72 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT - - 43 / COUNT ( * ) * - ( COUNT ( * ) ) * - + ( 94 ) + 66 * ( 89 * + SUM ( ALL 73 * ( + 43 * - 74 ) ) + 38 * 72 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( + - 15, - 41 - + + 60 )
----
-15

query I rowsort
SELECT DISTINCT + + NULLIF ( + 27, - 89 ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT ALL 45 * 85 * CAST( 9 AS SIGNED ) AS col2
----
34425

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL 45 * 85 * CAST ( 9 AS INTEGER ) AS col2
----
34425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6477
SELECT ALL 24 / - CAST( NULL AS SIGNED ) * - - 37 - + COALESCE ( 3, 12 + - NULLIF ( COUNT( * ) + COUNT( * ) * 52, + ( CASE - ( - 82 ) WHEN ( + 63 ) * - 71 THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) + + 69 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL 24 / - CAST ( NULL AS INTEGER ) * - - 37 - + COALESCE ( 3, 12 + - NULLIF ( COUNT ( * ) + COUNT ( * ) * 52, + ( CASE - ( - 82 ) WHEN ( + 63 ) * - 71 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) + + 69 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT DISTINCT CASE - 83 WHEN - 33 THEN NULL WHEN + 63 - - + 1 THEN - 38 ELSE + 33 + COUNT( * ) END DIV 6 - 69 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT CASE - 83 WHEN - 33 THEN NULL WHEN + 63 - - + 1 THEN - 38 ELSE + 33 + COUNT ( * ) END / 6 - 69 AS col0
----
-64

query I rowsort
SELECT - + 50 * - + 84 col1
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + COUNT( * ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-6480
SELECT + COUNT ( * ) * - 46
----
-46

query I rowsort
SELECT + 74 + 84 + 51 AS col0
----
209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6482
SELECT CAST( - CASE 66 WHEN - 28 THEN - + 46 WHEN CAST( NULL AS SIGNED ) THEN NULL END AS DECIMAL ) * + ( + MAX( ALL - 97 ) ) + + MIN( + 83 ) * - 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT CAST ( - CASE 66 WHEN - 28 THEN - + 46 WHEN CAST ( NULL AS INTEGER ) THEN NULL END AS REAL ) * + ( + MAX ( ALL - 97 ) ) + + MIN ( + 83 ) * - 41 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6483
SELECT ALL + 12 col0, MAX( DISTINCT + 72 ) + - 86 AS col2
----
12
-14

skipif mysql # not compatible
query II rowsort label-6483
SELECT ALL + 12 col0, MAX ( DISTINCT + 72 ) + - 86 AS col2
----
12
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6484
SELECT ALL + 51, + 43 * + COALESCE ( + 4, ( 88 ) + COUNT( * ), - 2 ) col0
----
51
172

skipif mysql # not compatible
query II rowsort label-6484
SELECT ALL + 51, + 43 * + COALESCE ( + 4, ( 88 ) + COUNT ( * ), - 2 ) col0
----
51
172

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT DISTINCT 8 DIV - - 9
----
0

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT 8 / - - 9
----
0

query II rowsort
SELECT DISTINCT + 28 AS col0, + 7 AS col0
----
28
7

query I rowsort
SELECT ALL + ( + 12 ) AS col0
----
12

query I rowsort
SELECT ALL + 52 * 30 AS col0
----
1560

onlyif mysql # aggregate syntax: 
query II rowsort label-6489
SELECT DISTINCT + 43 * 33 AS col2, SUM( - 70 )
----
1419
-70

skipif mysql # not compatible
query II rowsort label-6489
SELECT DISTINCT + 43 * 33 AS col2, SUM ( - 70 )
----
1419
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6490
SELECT ALL 92 AS col0, - MIN( + 96 )
----
92
-96

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL 92 AS col0, - MIN ( + 96 )
----
92
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6491
SELECT 92 DIV - NULLIF ( - - 85, - - ( + - COALESCE ( 22, - ( - CAST( NULL AS SIGNED ) ) * 34 - - 23 * CAST( 28 AS SIGNED ) ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6491
SELECT 92 / - NULLIF ( - - 85, - - ( + - COALESCE ( 22, - ( - CAST ( NULL AS INTEGER ) ) * 34 - - 23 * CAST ( 28 AS INTEGER ) ) ) ) AS col1
----
-1

query II rowsort
SELECT 39 AS col1, - 83
----
39
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6493
SELECT 98 * + 97 * - - 43 * + 82 + - + CASE - + CAST( NULL AS DECIMAL ) WHEN AVG ( ALL + 43 ) THEN NULL WHEN + 48 THEN COUNT( * ) * 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT 98 * + 97 * - - 43 * + 82 + - + CASE - + CAST ( NULL AS REAL ) WHEN AVG ( ALL + 43 ) THEN NULL WHEN + 48 THEN COUNT ( * ) * 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6494
SELECT 37 * + + 77, 97 * - MAX( ALL + - 32 ) - + - 59 - CASE WHEN NOT NULL = 44 THEN 63 * ( 43 ) + 91 ELSE - 23 + 75 END AS col1
----
2849
3111

skipif mysql # not compatible
query II rowsort label-6494
SELECT 37 * + + 77, 97 * - MAX ( ALL + - 32 ) - + - 59 - CASE WHEN NOT NULL = 44 THEN 63 * ( 43 ) + 91 ELSE - 23 + 75 END AS col1
----
2849
3111

query I rowsort
SELECT ALL + ( + - 16 ) + - 26
----
-42

query I rowsort
SELECT DISTINCT + 80 + + 55 * + + 63 col0
----
3545

query I rowsort
SELECT 20 * 66
----
1320

query I rowsort
SELECT + 39 + - 33 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT DISTINCT - 77 * CASE - NULLIF ( - NULLIF ( + - 47, - CAST( 85 AS SIGNED ) * + 52 ), + COUNT( * ) ) WHEN 87 THEN NULL WHEN ( + 70 ) THEN NULLIF ( + 59, - 37 ) END * - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT - 77 * CASE - NULLIF ( - NULLIF ( + - 47, - CAST ( 85 AS INTEGER ) * + 52 ), + COUNT ( * ) ) WHEN 87 THEN NULL WHEN ( + 70 ) THEN NULLIF ( + 59, - 37 ) END * - 94 AS col2
----
NULL

query I rowsort
SELECT ALL + 66 + 22 + 66 AS col0
----
154

query I rowsort
SELECT + 96 - 38
----
58

query II rowsort
SELECT - 77 AS col2, 55 AS col0
----
-77
55

query I rowsort
SELECT - 75 + - 54 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - SUM( ALL - 60 ) + + 57 + - NULLIF ( + - 38, - 41 * 92 ) * 61
----
2435

skipif mysql # not compatible
query I rowsort label-6504
SELECT - SUM ( ALL - 60 ) + + 57 + - NULLIF ( + - 38, - 41 * 92 ) * 61
----
2435

query I rowsort
SELECT 91 * - + 32
----
-2912

query I rowsort
SELECT - ( - - 98 ) * - - 51 * + 39 * + - 36
----
7017192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT NULLIF ( + SUM( DISTINCT 67 ), COALESCE ( - 45, - 20 - - CAST( NULL AS SIGNED ) ) ) + + 64 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-6507
SELECT NULLIF ( + SUM ( DISTINCT 67 ), COALESCE ( - 45, - 20 - - CAST ( NULL AS INTEGER ) ) ) + + 64 AS col0
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT + 42 + - + 56 + 30 * CASE 59 WHEN - 7 + + ( - 83 ) * COALESCE ( 44, - 21 ) THEN - 72 ELSE COUNT( * ) END DIV - 27 - + 41
----
-56

skipif mysql # not compatible
query I rowsort label-6508
SELECT + 42 + - + 56 + 30 * CASE 59 WHEN - 7 + + ( - 83 ) * COALESCE ( 44, - 21 ) THEN - 72 ELSE COUNT ( * ) END / - 27 - + 41
----
-56

query I rowsort
SELECT DISTINCT + 72 - - 47 AS col1
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-6510
SELECT ALL COUNT( * ) AS col0, - 65 * 12 AS col2
----
1
-780

skipif mysql # not compatible
query II rowsort label-6510
SELECT ALL COUNT ( * ) AS col0, - 65 * 12 AS col2
----
1
-780

query II rowsort
SELECT DISTINCT - 30, - 5 * 22 AS col0
----
-30
-110

query I rowsort
SELECT + ( + + 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT 94 * + - NULLIF ( NULLIF ( + COALESCE ( + COALESCE ( - 22, - 89 + COALESCE ( - 8 + + 5 / 33, + 6 * + 68 + 1 * + 15 ) ), AVG ( DISTINCT + 56 ) ), - 71 + 37 ), + 43 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT 94 * + - NULLIF ( NULLIF ( + COALESCE ( + COALESCE ( - 22, - 89 + COALESCE ( - 8 + + 5 / 33, + 6 * + 68 + 1 * + 15 ) ), AVG ( DISTINCT + 56 ) ), - 71 + 37 ), + 43 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT - 5 + - + 4 + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-6514
SELECT - 5 + - + 4 + COUNT ( * )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6515
SELECT ALL MIN( ALL CAST( 49 AS SIGNED ) ) - + 36 AS col0, 78 * - 7 + + CAST( NULL AS DECIMAL ) * + 50 AS col2
----
13
NULL

skipif mysql # not compatible
query II rowsort label-6515
SELECT ALL MIN ( ALL CAST ( 49 AS INTEGER ) ) - + 36 AS col0, 78 * - 7 + + CAST ( NULL AS REAL ) * + 50 AS col2
----
13
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6516
SELECT ALL - 83 AS col2, - 25 DIV + + COUNT( * ) - - COUNT( * ) * 53 col0
----
-83
28

skipif mysql # not compatible
query II rowsort label-6516
SELECT ALL - 83 AS col2, - 25 / + + COUNT ( * ) - - COUNT ( * ) * 53 col0
----
-83
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT ALL MIN( 40 ) * - SUM( DISTINCT - 61 ) * - - 59, + 16 AS col0
----
143960
16

skipif mysql # not compatible
query II rowsort label-6517
SELECT ALL MIN ( 40 ) * - SUM ( DISTINCT - 61 ) * - - 59, + 16 AS col0
----
143960
16

query II rowsort
SELECT DISTINCT 67 * - - 94 AS col1, 7
----
6298
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT DISTINCT - COUNT( + - 73 ) AS col1, 52 * - - 16 * - + 66 + + MIN( DISTINCT - 75 ) * 3 AS col2
----
-1
-55137

skipif mysql # not compatible
query II rowsort label-6519
SELECT DISTINCT - COUNT ( + - 73 ) AS col1, 52 * - - 16 * - + 66 + + MIN ( DISTINCT - 75 ) * 3 AS col2
----
-1
-55137

query I rowsort
SELECT ( 69 ) * 71 AS col0
----
4899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - 92 THEN 14 END - - 51 + - COUNT( DISTINCT - 31 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - 92 THEN 14 END - - 51 + - COUNT ( DISTINCT - 31 ) col2
----
NULL

query I rowsort
SELECT 86 + + 76 + + + 84 * 61 * - + 49 + 87 - + + 94 * 42
----
-254775

query I rowsort
SELECT 31 * + 82 AS col1
----
2542

query I rowsort
SELECT DISTINCT + ( - - 7 ) + 17 + - 80 - 6 * + ( + 33 )
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT 20 - + ( + CASE - + SUM( ALL 88 ) WHEN - + 57 - - 69 * 87 THEN + 27 + - 15 WHEN + 23 THEN NULL WHEN + 9 THEN - 75 + + COUNT( * ) ELSE 23 END ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6525
SELECT 20 - + ( + CASE - + SUM ( ALL 88 ) WHEN - + 57 - - 69 * 87 THEN + 27 + - 15 WHEN + 23 THEN NULL WHEN + 9 THEN - 75 + + COUNT ( * ) ELSE 23 END ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT ALL + - COUNT( * ) + - 94, 71 AS col1
----
-95
71

skipif mysql # not compatible
query II rowsort label-6526
SELECT ALL + - COUNT ( * ) + - 94, 71 AS col1
----
-95
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT 68 * + + CASE - 14 WHEN - COUNT( * ) * - - 90 THEN - + 72 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT 68 * + + CASE - 14 WHEN - COUNT ( * ) * - - 90 THEN - + 72 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6528
SELECT MIN( ALL + COALESCE ( 4, - - 38 + + - 36 DIV - 56 * 38 * 18, 92 + + 78, 33 ) ) DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6528
SELECT MIN ( ALL + COALESCE ( 4, - - 38 + + - 36 / - 56 * 38 * 18, 92 + + 78, 33 ) ) / 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - 64 - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-6529
SELECT - 64 - COUNT ( * )
----
-65

query I rowsort
SELECT 60 - - 20 AS col1
----
80

query I rowsort
SELECT 39 + + + 34 AS col1
----
73

query I rowsort
SELECT ALL + - 91 - - 24
----
-67

query I rowsort
SELECT DISTINCT ( - 12 ) col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + COALESCE ( COUNT( * ), + 61, + 32 + 66 ) + + - MIN( DISTINCT - + 89 )
----
90

skipif mysql # not compatible
query I rowsort label-6534
SELECT + COALESCE ( COUNT ( * ), + 61, + 32 + 66 ) + + - MIN ( DISTINCT - + 89 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT ALL + COUNT( * ) * - + 23 * CASE 78 WHEN + 66 THEN NULL ELSE + COUNT( * ) * - 90 END AS col2
----
2070

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL + COUNT ( * ) * - + 23 * CASE 78 WHEN + 66 THEN NULL ELSE + COUNT ( * ) * - 90 END AS col2
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT COUNT( * ) * + 25 + - ( 87 )
----
-62

skipif mysql # not compatible
query I rowsort label-6536
SELECT COUNT ( * ) * + 25 + - ( 87 )
----
-62

query I rowsort
SELECT + + ( - - ( 73 ) )
----
73

query I rowsort
SELECT ALL - ( 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + COUNT( * ) * - 14 + ( 91 ) + 27 + + - 62
----
42

skipif mysql # not compatible
query I rowsort label-6539
SELECT + COUNT ( * ) * - 14 + ( 91 ) + 27 + + - 62
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6540
SELECT DISTINCT 51 * - + 13 + + NULLIF ( + 92, 52 ) + - + 47, MAX( DISTINCT + + 40 ) col2
----
-618
40

skipif mysql # not compatible
query II rowsort label-6540
SELECT DISTINCT 51 * - + 13 + + NULLIF ( + 92, 52 ) + - + 47, MAX ( DISTINCT + + 40 ) col2
----
-618
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL 26 * + 56 * - COUNT( * ) + 98 * + + 53
----
3738

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL 26 * + 56 * - COUNT ( * ) + 98 * + + 53
----
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT SUM( + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6542
SELECT SUM ( + 5 ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT + 97 DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-6543
SELECT + 97 / - 21
----
-4

query I rowsort
SELECT + 14 - + 21 - - 97 * - 29 AS col0
----
-2820

query II rowsort
SELECT - ( + 1 ) + - 8, 94 AS col1
----
-9
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT + 80 AS col2, + COUNT( * ) + + ( - - 24 )
----
80
25

skipif mysql # not compatible
query II rowsort label-6546
SELECT + 80 AS col2, + COUNT ( * ) + + ( - - 24 )
----
80
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT + 67 + - MAX( ALL - 41 ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-6547
SELECT + 67 + - MAX ( ALL - 41 ) AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL + CAST( NULL AS SIGNED ) * - 98 / 79 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL + CAST ( NULL AS INTEGER ) * - 98 / 79 + - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT MAX( - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6549
SELECT MAX ( - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + COUNT( * ) + 99 * - 52 + + 86
----
-5061

skipif mysql # not compatible
query I rowsort label-6550
SELECT + COUNT ( * ) + 99 * - 52 + + 86
----
-5061

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT + COUNT( * ) + + + 70
----
71

skipif mysql # not compatible
query I rowsort label-6551
SELECT + COUNT ( * ) + + + 70
----
71

query I rowsort
SELECT ALL ( + 38 ) + + 34 + - - 97
----
169

query I rowsort
SELECT NULLIF ( - - 70, + 94 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + - COUNT( * ) + + 68 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6554
SELECT + - COUNT ( * ) + + 68 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6555
SELECT + - ( - CAST( NULL AS SIGNED ) ) * 13 AS col1, 59 AS col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-6555
SELECT + - ( - CAST ( NULL AS INTEGER ) ) * 13 AS col1, 59 AS col2
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + COUNT( * ) * + + 21 * - 32 + 20 + 25 + + + 67
----
-560

skipif mysql # not compatible
query I rowsort label-6556
SELECT + COUNT ( * ) * + + 21 * - 32 + 20 + 25 + + + 67
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT ALL + 58 - 73 + 35 col2, - COUNT( * ) + - 79 AS col2
----
20
-80

skipif mysql # not compatible
query II rowsort label-6557
SELECT ALL + 58 - 73 + 35 col2, - COUNT ( * ) + - 79 AS col2
----
20
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6558
SELECT ALL - 83 DIV + 37 + + 97 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - 83 / + 37 + + 97 AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT + - 78 DIV + 49 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6559
SELECT + - 78 / + 49 col1
----
-1

query II rowsort
SELECT ALL 51, 78 AS col0
----
51
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT MAX( ALL + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT MAX ( ALL + 22 ) AS col2
----
22

query I rowsort
SELECT + 37 + - 25 col2
----
12

query II rowsort
SELECT ALL 35 AS col0, 88 col0
----
35
88

query I rowsort
SELECT DISTINCT - ( - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6565
SELECT + + ( + CAST( NULL AS SIGNED ) ) * + - 35 col1, + 45 + - 80
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-6565
SELECT + + ( + CAST ( NULL AS INTEGER ) ) * + - 35 col1, + 45 + - 80
----
NULL
-35

query I rowsort
SELECT + 95 - - NULLIF ( - + 83, 67 ) AS col2
----
12

query I rowsort
SELECT - - 37 * 15 col1
----
555

query I rowsort
SELECT - - 46 + + - 66
----
-20

query I rowsort
SELECT ALL ( + + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT - COUNT( * ) + - 53 * + 83 * + ( + COUNT( * ) ) AS col0
----
-4400

skipif mysql # not compatible
query I rowsort label-6570
SELECT - COUNT ( * ) + - 53 * + 83 * + ( + COUNT ( * ) ) AS col0
----
-4400

query I rowsort
SELECT DISTINCT - 38 + 2 + - 91 AS col0
----
-127

query I rowsort
SELECT - 21 * 56 AS col2
----
-1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6573
SELECT ALL 53 DIV + NULLIF ( - - 13, - COUNT( * ) ) + + 63
----
67

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL 53 / + NULLIF ( - - 13, - COUNT ( * ) ) + + 63
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6574
SELECT DISTINCT 22 / + 1 * + 18 + - COUNT( * ) * CAST( NULL AS SIGNED ) - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT 22 / + 1 * + 18 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) - + 12
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-6575
SELECT ( + 85 ) col1, 45 + 69 + COUNT( * ) AS col0, 10 col2
----
85
115
10

skipif mysql # not compatible
query III rowsort label-6575
SELECT ( + 85 ) col1, 45 + 69 + COUNT ( * ) AS col0, 10 col2
----
85
115
10

query I rowsort
SELECT ALL + NULLIF ( 47, 52 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL - COUNT( * ) * + - 34 * 49
----
1666

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - COUNT ( * ) * + - 34 * 49
----
1666

query II rowsort
SELECT ( 41 ) AS col0, + 57 AS col0
----
41
57

query I rowsort
SELECT DISTINCT - 60 * + 58 + + 99 AS col1
----
-3381

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT ALL + 77 * MIN( 62 ) * + 9 + + - 30
----
42936

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL + 77 * MIN ( 62 ) * + 9 + + - 30
----
42936

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT - 12 * + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - 12 * + COUNT ( * )
----
-12

query I rowsort
SELECT ( - - 33 )
----
33

query I rowsort
SELECT ALL - 39 * - 71
----
2769

query I rowsort
SELECT - 55 * - 35 * + 82
----
157850

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + SUM( DISTINCT + ( - 27 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + SUM ( DISTINCT + ( - 27 ) ) AS col2
----
-27

query I rowsort
SELECT DISTINCT + 83 * - 28 + 68
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL - COUNT( * ) * - COUNT( * ) + + COUNT( * ) + - 17 * 11 * 78
----
-14584

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) + - 17 * 11 * 78
----
-14584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT DISTINCT + CAST( + CAST( 27 AS SIGNED ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + CAST ( + CAST ( 27 AS INTEGER ) AS INTEGER )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT - 95 + + CASE - 26 WHEN - 77 THEN NULL ELSE + + CAST( NULL AS SIGNED ) * + 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT - 95 + + CASE - 26 WHEN - 77 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * + 99 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + CASE + 60 WHEN - - 71 * - - 54 * - MAX( ALL + 13 ) THEN NULL WHEN + + 81 + + MAX( - 71 ) THEN NULL WHEN 61 THEN 89 + - COUNT( * ) ELSE 45 END col1
----
45

skipif mysql # not compatible
query I rowsort label-6590
SELECT + CASE + 60 WHEN - - 71 * - - 54 * - MAX ( ALL + 13 ) THEN NULL WHEN + + 81 + + MAX ( - 71 ) THEN NULL WHEN 61 THEN 89 + - COUNT ( * ) ELSE 45 END col1
----
45

query I rowsort
SELECT AVG ( DISTINCT 97 ) * - - 4 + + CASE - + 76 WHEN - 27 THEN 52 * + 84 * + - 36 WHEN 76 + - 89 * ( + 22 * 96 ) THEN + 32 ELSE NULL END + + 3 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6592
SELECT ALL 91 * 31 - + COUNT( 99 ) + + - 91 + - 41 * + CASE + SUM( - - 23 ) WHEN 0 THEN CAST( - 0 AS SIGNED ) WHEN - 88 * + COUNT( * ) THEN NULL ELSE 75 + 4 END * 35
----
-110636

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL 91 * 31 - + COUNT ( 99 ) + + - 91 + - 41 * + CASE + SUM ( - - 23 ) WHEN 0 THEN CAST ( - 0 AS INTEGER ) WHEN - 88 * + COUNT ( * ) THEN NULL ELSE 75 + 4 END * 35
----
-110636

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - COUNT( DISTINCT + 81 ) * - + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6593
SELECT - COUNT ( DISTINCT + 81 ) * - + 46 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + COUNT( * ) + + - 35 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-6594
SELECT + COUNT ( * ) + + - 35 AS col0
----
-34

query I rowsort
SELECT + + 16 * - + 60
----
-960

query I rowsort
SELECT + 26 + + - 42 col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT 0 * - + 34 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT 0 * - + 34 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT - + CASE - COUNT( * ) WHEN - 1 THEN + 56 WHEN + AVG ( + - 49 ) * - 15 THEN NULL WHEN - - 43 * + 26 - - COUNT( ( - CAST( + 14 AS SIGNED ) ) + - 79 ) THEN NULL WHEN + 65 - 43 * + 81 THEN NULL ELSE NULL END + MAX( ALL CASE + 4 WHEN + 5 THEN 96 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT - + CASE - COUNT ( * ) WHEN - 1 THEN + 56 WHEN + AVG ( + - 49 ) * - 15 THEN NULL WHEN - - 43 * + 26 - - COUNT ( ( - CAST ( + 14 AS INTEGER ) ) + - 79 ) THEN NULL WHEN + 65 - 43 * + 81 THEN NULL ELSE NULL END + MAX ( ALL CASE + 4 WHEN + 5 THEN 96 END ) AS col1
----
NULL

query I rowsort
SELECT - - ( - 19 ) AS col0
----
-19

query I rowsort
SELECT + 88 * + 95 * 33 AS col0
----
275880

query I rowsort
SELECT + 58 * + 1 col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6602
SELECT + - MAX( ALL 94 ) - - + CAST( + + 51 AS SIGNED ) * - 24
----
-1318

skipif mysql # not compatible
query I rowsort label-6602
SELECT + - MAX ( ALL 94 ) - - + CAST ( + + 51 AS INTEGER ) * - 24
----
-1318

query I rowsort
SELECT ALL 41 + - - ( 1 ) + + - 84 * + - 94 + - 58 * 86 AS col2
----
2950

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT - 85 DIV 79 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6604
SELECT - 85 / 79 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT - COUNT( * ) + + 38
----
37

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - COUNT ( * ) + + 38
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6606
SELECT ALL 68 + COUNT( * ), - 51 + + CAST( CASE - + 50 WHEN + COUNT( COALESCE ( - - 56, 38 + - 82 ) ) THEN COUNT( * ) END AS SIGNED ) * + 23 AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-6606
SELECT ALL 68 + COUNT ( * ), - 51 + + CAST ( CASE - + 50 WHEN + COUNT ( COALESCE ( - - 56, 38 + - 82 ) ) THEN COUNT ( * ) END AS INTEGER ) * + 23 AS col0
----
69
NULL

query I rowsort
SELECT DISTINCT 72 + NULLIF ( + ( + 53 ), - + 47 )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT DISTINCT 44 * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT 44 * COUNT ( * )
----
44

query I rowsort
SELECT 76 + - + 79
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT CASE WHEN NOT 93 IS NULL THEN NULL ELSE - 83 * - COUNT( * ) END + + 36 AS col2, + 16 AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-6610
SELECT CASE WHEN NOT 93 IS NULL THEN NULL ELSE - 83 * - COUNT ( * ) END + + 36 AS col2, + 16 AS col1
----
NULL
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6611
SELECT 21 DIV - - COUNT( 44 ), - 25 * - 55 + - CAST( NULL AS SIGNED ) DIV 30 + + - 34 AS col2
----
21
NULL

skipif mysql # not compatible
query II rowsort label-6611
SELECT 21 / - - COUNT ( 44 ), - 25 * - 55 + - CAST ( NULL AS INTEGER ) / 30 + + - 34 AS col2
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL COUNT( 14 ) + 62 * 84
----
5209

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL COUNT ( 14 ) + 62 * 84
----
5209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT ( CAST( 63 AS SIGNED ) ) * + 90 * + NULLIF ( - + 97, + COUNT( * ) - - 47 ) + + 83 col0
----
-549907

skipif mysql # not compatible
query I rowsort label-6613
SELECT ( CAST ( 63 AS INTEGER ) ) * + 90 * + NULLIF ( - + 97, + COUNT ( * ) - - 47 ) + + 83 col0
----
-549907

onlyif mysql # aggregate syntax: 
query II rowsort label-6614
SELECT 31 * + - SUM( DISTINCT - 39 ) col0, - COUNT( * ) + - 47 + SUM( - 51 ) * - MIN( - 10 ) AS col1
----
1209
-558

skipif mysql # not compatible
query II rowsort label-6614
SELECT 31 * + - SUM ( DISTINCT - 39 ) col0, - COUNT ( * ) + - 47 + SUM ( - 51 ) * - MIN ( - 10 ) AS col1
----
1209
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL - NULLIF ( 94, - + NULLIF ( - COUNT( * ), + 97 * - + 14 ) + - COUNT( * ) ) + + 2 * - 60 * - 4 AS col2
----
386

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - NULLIF ( 94, - + NULLIF ( - COUNT ( * ), + 97 * - + 14 ) + - COUNT ( * ) ) + + 2 * - 60 * - 4 AS col2
----
386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT 2 + - MIN( 95 ) DIV - 76
----
3

skipif mysql # not compatible
query I rowsort label-6616
SELECT 2 + - MIN ( 95 ) / - 76
----
3

query I rowsort
SELECT ( - 65 ) * 89 * 1 col2
----
-5785

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL COUNT( * ) * COUNT( ALL - ( - 3 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL COUNT ( * ) * COUNT ( ALL - ( - 3 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT DISTINCT 2 + - COUNT( * ) + - CASE - 73 WHEN + - 71 + + 59 + 42 + 57 / + 28 THEN + + 56 + ( - 97 ) * 20 END * ( - 97 * 41 ) * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT 2 + - COUNT ( * ) + - CASE - 73 WHEN + - 71 + + 59 + 42 + 57 / + 28 THEN + + 56 + ( - 97 ) * 20 END * ( - 97 * 41 ) * 31 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT DISTINCT - CASE COUNT( * ) WHEN + MAX( 16 ) + + 86 + - - 3 + - 59 - + COALESCE ( - AVG ( ALL 46 ), SUM( 90 ) + 76 * 92, ( 41 ) ) THEN NULL WHEN + 88 THEN 1 DIV + 42 + ( 62 ) WHEN - NULLIF ( 5, - 62 * 15 + 77 ) THEN 83 * - 94 + 53 ELSE - 78 END AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT - CASE COUNT ( * ) WHEN + MAX ( 16 ) + + 86 + - - 3 + - 59 - + COALESCE ( - AVG ( ALL 46 ), SUM ( 90 ) + 76 * 92, ( 41 ) ) THEN NULL WHEN + 88 THEN 1 / + 42 + ( 62 ) WHEN - NULLIF ( 5, - 62 * 15 + 77 ) THEN 83 * - 94 + 53 ELSE - 78 END AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - SUM( ALL - 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - SUM ( ALL - 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT DISTINCT - COUNT( ALL + - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - COUNT ( ALL + - 39 )
----
-1

query I rowsort
SELECT ALL + 35 - - + 78 AS col2
----
113

query II rowsort
SELECT ALL - 75 AS col1, - 74 AS col1
----
-75
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT 35 * 41 + - + 2 * - COUNT( * ) AS col0
----
1437

skipif mysql # not compatible
query I rowsort label-6625
SELECT 35 * 41 + - + 2 * - COUNT ( * ) AS col0
----
1437

query I rowsort
SELECT DISTINCT - 90 * - 88 col1
----
7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6627
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) * - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - + 4
----
NULL

query I rowsort
SELECT ALL + 72 * + 68
----
4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6629
SELECT 71 * + + 4 * + 53 AS col0, NULLIF ( + 43, COUNT( * ) * - ( - 40 ) ), COUNT( * ) * + - COUNT( * ) DIV + COUNT( * ) + 18 AS col0
----
15052
43
17

skipif mysql # not compatible
query III rowsort label-6629
SELECT 71 * + + 4 * + 53 AS col0, NULLIF ( + 43, COUNT ( * ) * - ( - 40 ) ), COUNT ( * ) * + - COUNT ( * ) / + COUNT ( * ) + 18 AS col0
----
15052
43
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT + 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + 0 * COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 89 * 65 AS col2
----
5785

query I rowsort
SELECT ALL - ( - 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL - NULLIF ( + 78, + SUM( ALL + + 52 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - NULLIF ( + 78, + SUM ( ALL + + 52 ) ) AS col1
----
-78

query I rowsort
SELECT ALL + ( - 62 ) * - 1 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 22 * + ( + + ( 43 ) ) * - - 17 + + 75 + + 98
----
16255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT - ( 24 ) * COUNT( * ) DIV - 25 * ( 47 ) * 44 + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6637
SELECT - ( 24 ) * COUNT ( * ) / - 25 * ( 47 ) * 44 + 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT DISTINCT + - 34 + - - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT + - 34 + - - COUNT ( * )
----
-33

query I rowsort
SELECT 45 * - CASE - + 82 WHEN - 16 THEN 60 * - 20 + + 9 ELSE + + 49 - - - 41 END AS col1
----
-360

query I rowsort
SELECT 60 + - + 25 AS col2
----
35

query I rowsort
SELECT ALL 30 + - - 92 * + 25 - + 83 AS col2
----
2247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6643
SELECT ALL + + 67 DIV COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL + + 67 / COUNT ( * ) AS col2
----
67

query I rowsort
SELECT DISTINCT + 13 + - + 30 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL - COUNT( * ) * + - 48
----
48

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - COUNT ( * ) * + - 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT COUNT( * ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-6646
SELECT COUNT ( * ) + - 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL - + SUM( ALL - + 9 ) + 51 + - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL - + SUM ( ALL - + 9 ) + 51 + - COUNT ( * ) AS col0
----
59

query I rowsort
SELECT ALL 75 + + + 71 * - 3 AS col0
----
-138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6649
SELECT CAST( NULL AS SIGNED ), ( + 70 ) DIV 97 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6649
SELECT CAST ( NULL AS INTEGER ), ( + 70 ) / 97 AS col2
----
NULL
0

query I rowsort
SELECT 4 * + CASE - 32 WHEN + 32 THEN - 77 END * 67 - + 23 * + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) + - 16 * + NULLIF ( - + 0, CAST( - 74 AS SIGNED ) * 34 ) + - 9
----
-7

skipif mysql # not compatible
query I rowsort label-6651
SELECT COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) + - 16 * + NULLIF ( - + 0, CAST ( - 74 AS INTEGER ) * 34 ) + - 9
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6652
SELECT ALL 62 AS col0, CAST( NULL AS DECIMAL )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-6652
SELECT ALL 62 AS col0, CAST ( NULL AS REAL )
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT COALESCE ( + 0, + 98 + + 61 ) + + MAX( DISTINCT + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6653
SELECT COALESCE ( + 0, + 98 + + 61 ) + + MAX ( DISTINCT + 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT COUNT( * ) * + 51
----
51

skipif mysql # not compatible
query I rowsort label-6654
SELECT COUNT ( * ) * + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT DISTINCT MIN( - + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT MIN ( - + 30 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT ALL 19 * + COUNT( * ) DIV ( - 74 ) - + 61
----
-61

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL 19 * + COUNT ( * ) / ( - 74 ) - + 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL + 49 * + COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL + 49 * + COUNT ( * ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6658
SELECT CAST( NULL AS SIGNED ) * COALESCE ( + 42, - CAST( ( - 19 ) AS SIGNED ), - 52 / + 6 + + + MIN( ALL 26 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( + 42, - CAST ( ( - 19 ) AS INTEGER ), - 52 / + 6 + + + MIN ( ALL 26 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT CAST( NULL AS SIGNED ) / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT CAST ( NULL AS INTEGER ) / - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT MAX( - + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6660
SELECT MAX ( - + 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6661
SELECT COUNT( * ), 53 - + - 0 DIV 30 * - + 57 AS col0
----
1
53

skipif mysql # not compatible
query II rowsort label-6661
SELECT COUNT ( * ), 53 - + - 0 / 30 * - + 57 AS col0
----
1
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT CAST( NULL AS SIGNED ) * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT CAST ( NULL AS INTEGER ) * 59 AS col0
----
NULL

query I rowsort
SELECT 65 * + - 27
----
-1755

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT - 74 DIV - COALESCE ( + + 44, COALESCE ( - 35, - 2 ) + - 10 + + + 92 DIV - + 72, - 37 ) - - 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6665
SELECT - 74 / - COALESCE ( + + 44, COALESCE ( - 35, - 2 ) + - 10 + + + 92 / - + 72, - 37 ) - - 61 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT COUNT( * ) * + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6666
SELECT COUNT ( * ) * + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL COUNT ( * ) * - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT DISTINCT - - NULLIF ( + + 54, + COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - - NULLIF ( + + 54, + COUNT ( * ) )
----
54

query I rowsort
SELECT DISTINCT - + ( 96 )
----
-96

query I rowsort
SELECT 60 * - 68 AS col0
----
-4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6671
SELECT + 42 AS col0, - NULLIF ( - COALESCE ( - - 73, + 9 * + 48 + - 60 * + 53 * - 86 + - 17 * + 77 * COUNT( + CAST( NULL AS SIGNED ) * + 27 ) ), - 65 * 80 - 91 ) + 68 AS col1
----
42
141

skipif mysql # not compatible
query II rowsort label-6671
SELECT + 42 AS col0, - NULLIF ( - COALESCE ( - - 73, + 9 * + 48 + - 60 * + 53 * - 86 + - 17 * + 77 * COUNT ( + CAST ( NULL AS INTEGER ) * + 27 ) ), - 65 * 80 - 91 ) + 68 AS col1
----
42
141

query II rowsort
SELECT ALL - - 73 AS col1, 11
----
73
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6673
SELECT ALL - + 44 + 25 DIV 72 * - + 74 + - ( + - ( - + 39 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL - + 44 + 25 / 72 * - + 74 + - ( + - ( - + 39 ) )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT - CAST( NULL AS SIGNED ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT - CAST ( NULL AS INTEGER ) + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6675
SELECT + COUNT( * ) AS col1, - 90 * + - 92 AS col2
----
1
8280

skipif mysql # not compatible
query II rowsort label-6675
SELECT + COUNT ( * ) AS col1, - 90 * + - 92 AS col2
----
1
8280

query I rowsort
SELECT ALL + - 32 * 61 AS col1
----
-1952

query I rowsort
SELECT + 40 * 19 * 23
----
17480

query I rowsort
SELECT ALL - 53 + 1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT + COUNT( 49 ) - + 80
----
-79

skipif mysql # not compatible
query I rowsort label-6679
SELECT + COUNT ( 49 ) - + 80
----
-79

query I rowsort
SELECT ALL + - COALESCE ( - + 42, - 49 ) * - - 45 AS col0
----
1890

query I rowsort
SELECT - - 14 + - - 98
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6682
SELECT ALL - COUNT( * ) + - + 18 * - + 90 DIV - - 33 * + CAST( NULL AS DECIMAL ) * + 29 + + 14 col2, 44 DIV + 12 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6682
SELECT ALL - COUNT ( * ) + - + 18 * - + 90 / - - 33 * + CAST ( NULL AS REAL ) * + 29 + + 14 col2, 44 / + 12 AS col0
----
NULL
3

query I rowsort
SELECT DISTINCT + ( - 27 ) * - 74 * - 10 - + + ( + 78 )
----
-20058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT ALL - + CAST( NULL AS SIGNED ) + - 21 * - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 21 * - 53 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6685
SELECT ALL + 42 AS col0, CAST( NULL AS DECIMAL ) - + 31
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6685
SELECT ALL + 42 AS col0, CAST ( NULL AS REAL ) - + 31
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - - MAX( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6686
SELECT - - MAX ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT - MIN( ALL + - 41 ) + 31 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6687
SELECT - MIN ( ALL + - 41 ) + 31 AS col1
----
72

query II rowsort
SELECT - + 31, + 11 AS col2
----
-31
11

query II rowsort
SELECT + 72, 38 AS col1
----
72
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT - + ( - CASE + - ( - 29 ) WHEN + - 10 THEN - COUNT( * ) * - 18 * - 82 DIV 93 * - - 25 * - + 67 ELSE 94 * NULLIF ( - 42, 35 - 17 * 23 ) END ) AS col2
----
-3948

skipif mysql # not compatible
query I rowsort label-6690
SELECT - + ( - CASE + - ( - 29 ) WHEN + - 10 THEN - COUNT ( * ) * - 18 * - 82 / 93 * - - 25 * - + 67 ELSE 94 * NULLIF ( - 42, 35 - 17 * 23 ) END ) AS col2
----
-3948

query I rowsort
SELECT DISTINCT + - 27 - + 29
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6692
SELECT ALL - MIN( + CAST( + 56 AS SIGNED ) ) DIV 94 * - ( - 18 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL - MIN ( + CAST ( + 56 AS INTEGER ) ) / 94 * - ( - 18 ) AS col0
----
0

query I rowsort
SELECT - 62 * + 78
----
-4836

query I rowsort
SELECT DISTINCT - ( + 4 ) * + 41 AS col1
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT - 89 DIV - 37 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - 89 / - 37 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6696
SELECT DISTINCT 9 - - CASE - 92 WHEN + + 1 THEN - SUM( ALL - 5 ) END + + 50 + + COALESCE ( - 41, + 84 ) * + 6 - 43 * - CAST( COUNT( * ) * 22 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT 9 - - CASE - 92 WHEN + + 1 THEN - SUM ( ALL - 5 ) END + + 50 + + COALESCE ( - 41, + 84 ) * + 6 - 43 * - CAST ( COUNT ( * ) * 22 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT - 14 + 97 AS col2, - 34 * + SUM( DISTINCT + 23 ) col2
----
83
-782

skipif mysql # not compatible
query II rowsort label-6697
SELECT - 14 + 97 AS col2, - 34 * + SUM ( DISTINCT + 23 ) col2
----
83
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL COALESCE ( - 36, - - 30, COUNT( * ) - - ( + 83 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL COALESCE ( - 36, - - 30, COUNT ( * ) - - ( + 83 ) ) AS col1
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6699
SELECT DISTINCT 43 - + ( CAST( NULL AS DECIMAL ) ) + + 84 + - - 19 * 39 + - 7 + 99 * + - 82 * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT 43 - + ( CAST ( NULL AS REAL ) ) + + 84 + - - 19 * 39 + - 7 + 99 * + - 82 * 7
----
NULL

query I rowsort
SELECT ALL ( - + 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6701
SELECT - 96 + + - 21 AS col0, - 73 + + 68 * 51, CAST( NULL AS SIGNED ) col1
----
-117
3395
NULL

skipif mysql # not compatible
query III rowsort label-6701
SELECT - 96 + + - 21 AS col0, - 73 + + 68 * 51, CAST ( NULL AS INTEGER ) col1
----
-117
3395
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT + 2 - - 78 * - MIN( 65 )
----
-5068

skipif mysql # not compatible
query I rowsort label-6702
SELECT + 2 - - 78 * - MIN ( 65 )
----
-5068

query I rowsort
SELECT + AVG ( + 37 ) * 58 + - CASE 76 WHEN + - NULLIF ( ( 68 ), - 24 ) THEN - + 36 / + 80 * + + 26 END
----
NULL

query I rowsort
SELECT - 72 + 3 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6705
SELECT - 90 * 25, ( - + 27 ) + - 54 + + SUM( + 37 ) * - 79 + - 88 AS col2
----
-2250
-3092

skipif mysql # not compatible
query II rowsort label-6705
SELECT - 90 * 25, ( - + 27 ) + - 54 + + SUM ( + 37 ) * - 79 + - 88 AS col2
----
-2250
-3092

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT ( + 19 ), + MIN( ALL - 55 ) AS col1
----
19
-55

skipif mysql # not compatible
query II rowsort label-6706
SELECT ( + 19 ), + MIN ( ALL - 55 ) AS col1
----
19
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT 72 * - 79 + - COUNT( * ) col0
----
-5689

skipif mysql # not compatible
query I rowsort label-6707
SELECT 72 * - 79 + - COUNT ( * ) col0
----
-5689

query I rowsort
SELECT ALL + CASE 82 WHEN 77 THEN 80 ELSE - 51 END
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL - COUNT( * ) * - 2 + + 88 * + 19 + - 58 * + 62 AS col2
----
-1922

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL - COUNT ( * ) * - 2 + + 88 * + 19 + - 58 * + 62 AS col2
----
-1922

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - MIN( ALL + ( - ( - 36 ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-6710
SELECT - MIN ( ALL + ( - ( - 36 ) ) )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT ALL COUNT( * ) * 85 + 71, 87 col0
----
156
87

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL COUNT ( * ) * 85 + 71, 87 col0
----
156
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT 42 * COUNT( - 86 ) + 42
----
84

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT 42 * COUNT ( - 86 ) + 42
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + COUNT( - 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6713
SELECT + COUNT ( - 29 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6714
SELECT + 0 * 28 + + - 8 + CAST( 88 AS SIGNED ) + - + NULLIF ( + - COUNT( - CAST( NULL AS SIGNED ) ), 95 + - - 22 * ( - NULLIF ( + 63, - CAST( NULL AS SIGNED ) ) ) * COUNT( * ) + - 81 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6714
SELECT + 0 * 28 + + - 8 + CAST ( 88 AS INTEGER ) + - + NULLIF ( + - COUNT ( - CAST ( NULL AS INTEGER ) ), 95 + - - 22 * ( - NULLIF ( + 63, - CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) + - 81 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + ( COUNT( + 69 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6715
SELECT + ( COUNT ( + 69 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT + - COUNT( * ) * + 78 * - MIN( DISTINCT - CAST( - - 44 AS SIGNED ) )
----
-3432

skipif mysql # not compatible
query I rowsort label-6716
SELECT + - COUNT ( * ) * + 78 * - MIN ( DISTINCT - CAST ( - - 44 AS INTEGER ) )
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - - 4 + COUNT( * ) + + ( + 30 ) * - 77 * + + 1
----
-2305

skipif mysql # not compatible
query I rowsort label-6717
SELECT - - 4 + COUNT ( * ) + + ( + 30 ) * - 77 * + + 1
----
-2305

query I rowsort
SELECT + 81 * ( - 53 )
----
-4293

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6719
SELECT + + 41 + 52 / NULLIF ( CAST( NULL AS SIGNED ), - + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT + + 41 + 52 / NULLIF ( CAST ( NULL AS INTEGER ), - + 15 )
----
NULL

query I rowsort
SELECT - - 77 * + 86 * 9 + + 28
----
59626

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT MAX( + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6721
SELECT MAX ( + 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6722
SELECT - 33 * + - 50 * + 47 DIV - + COUNT( * ) + 40 + 10 - - MIN( + 29 ) * + 15 * 30 DIV + 75 AS col0
----
-77326

skipif mysql # not compatible
query I rowsort label-6722
SELECT - 33 * + - 50 * + 47 / - + COUNT ( * ) + 40 + 10 - - MIN ( + 29 ) * + 15 * 30 / + 75 AS col0
----
-77326

query I rowsort
SELECT DISTINCT 86 - 37 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL - MAX( DISTINCT + COALESCE ( + 97, + 24 ) ) * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - MAX ( DISTINCT + COALESCE ( + 97, + 24 ) ) * + COUNT ( * )
----
-97

query I rowsort
SELECT - 56 + - + COALESCE ( - + 97, - - 86 )
----
41

query I rowsort
SELECT DISTINCT 62 - + 7 - 45 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT DISTINCT - CASE WHEN NOT 6 BETWEEN - + 51 + + 81 AND + - 81 + 88 OR ( NOT ( NULL ) >= ( CAST( 90 AS SIGNED ) * MIN( 63 ) ) ) THEN COUNT( * ) END * + 8
----
-8

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - CASE WHEN NOT 6 BETWEEN - + 51 + + 81 AND + - 81 + 88 OR ( NOT ( NULL ) >= ( CAST ( 90 AS INTEGER ) * MIN ( 63 ) ) ) THEN COUNT ( * ) END * + 8
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT DISTINCT CAST( + 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT CAST ( + 19 AS INTEGER )
----
19

query I rowsort
SELECT DISTINCT ( - - 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL ( - - MIN( - 51 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL ( - - MIN ( - 51 ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - 72 * - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6731
SELECT - 72 * - COUNT ( * ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT - 78 + + 95 DIV + - 44 col1
----
-80

skipif mysql # not compatible
query I rowsort label-6732
SELECT - 78 + + 95 / + - 44 col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT ALL CAST( - 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL CAST ( - 73 AS INTEGER )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT DISTINCT - 31 DIV + 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - 31 / + 44 col1
----
0

query I rowsort
SELECT ALL - 13 + + - 39
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - 42 * - COUNT( * ) col1
----
42

skipif mysql # not compatible
query I rowsort label-6736
SELECT - 42 * - COUNT ( * ) col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6737
SELECT ALL - COUNT( * ) DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - COUNT ( * ) / 90 AS col2
----
0

query I rowsort
SELECT DISTINCT - 4 * - - 66
----
-264

query I rowsort
SELECT ALL 30 * 0 * 62 * + 92
----
0

query I rowsort
SELECT + COALESCE ( + 84, 35 + + ( 92 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6741
SELECT DISTINCT COUNT( * ) DIV + COALESCE ( - 75, + - 82 + COALESCE ( - 90, + 89 * - 48 * 93 ) * - 94 DIV 43 ) + + 95 * - + 4 - + 69 * ( + 60 ) AS col1
----
-4520

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT COUNT ( * ) / + COALESCE ( - 75, + - 82 + COALESCE ( - 90, + 89 * - 48 * 93 ) * - 94 / 43 ) + + 95 * - + 4 - + 69 * ( + 60 ) AS col1
----
-4520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT - + 88 * - COALESCE ( + CAST( NULL AS SIGNED ), + 57 * - + CASE - 7 WHEN 90 * - - 1 THEN NULL ELSE + 37 * - ( - 10 ) * + 28 + - COUNT( * ) + + CASE NULLIF ( + 18, COUNT( 90 ) + + 90 * COUNT( * ) ) WHEN 28 + 68 THEN NULL WHEN 38 + CAST( NULL AS SIGNED ) THEN SUM( ALL + COALESCE ( 78, + 76 ) ) ELSE 14 END END + 42 + + 9 ) AS col2
----
-52026480

skipif mysql # not compatible
query I rowsort label-6742
SELECT - + 88 * - COALESCE ( + CAST ( NULL AS INTEGER ), + 57 * - + CASE - 7 WHEN 90 * - - 1 THEN NULL ELSE + 37 * - ( - 10 ) * + 28 + - COUNT ( * ) + + CASE NULLIF ( + 18, COUNT ( 90 ) + + 90 * COUNT ( * ) ) WHEN 28 + 68 THEN NULL WHEN 38 + CAST ( NULL AS INTEGER ) THEN SUM ( ALL + COALESCE ( 78, + 76 ) ) ELSE 14 END END + 42 + + 9 ) AS col2
----
-52026480

query I rowsort
SELECT + ( - 66 ) col0
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-6744
SELECT DISTINCT + 35 DIV - 90 + + 59 AS col2, 53
----
59
53

skipif mysql # not compatible
query II rowsort label-6744
SELECT DISTINCT + 35 / - 90 + + 59 AS col2, 53
----
59
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL MIN( DISTINCT + 37 ) + + SUM( ALL 21 ) + - + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL MIN ( DISTINCT + 37 ) + + SUM ( ALL 21 ) + - + COUNT ( * ) AS col2
----
57

query I rowsort
SELECT DISTINCT + 94 + ( + 3 ) AS col1
----
97

query I rowsort
SELECT ALL - ( - + 80 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT - 79 DIV + 36
----
-2

skipif mysql # not compatible
query I rowsort label-6748
SELECT - 79 / + 36
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL + 61 * - MAX( + 50 )
----
-3050

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + 61 * - MAX ( + 50 )
----
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT + + COUNT( DISTINCT + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-6750
SELECT + + COUNT ( DISTINCT + 42 )
----
1

query I rowsort
SELECT 79 + - 53
----
26

query I rowsort
SELECT + 45 + + - 22
----
23

query I rowsort
SELECT CASE + 28 WHEN + 29 THEN - 94 ELSE + 34 * 35 + + ( - 41 ) * + + 91 * 53 END - - 78
----
-196475

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL 85 * + 57 * ( 1 ) * 81 + - 58 + 88 * - + 82 + + COUNT( * )
----
385172

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL 85 * + 57 * ( 1 ) * 81 + - 58 + 88 * - + 82 + + COUNT ( * )
----
385172

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT 56 * + COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6755
SELECT 56 * + COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT + + 91 * - 29 + + + COUNT( ALL + 98 )
----
-2638

skipif mysql # not compatible
query I rowsort label-6756
SELECT + + 91 * - 29 + + + COUNT ( ALL + 98 )
----
-2638

query I rowsort
SELECT + 29 * 58
----
1682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT DISTINCT - 68 * + 66 * 83 + + + 23 + + 40 + - 84 + - + 93 + + 80 * 38 / - COALESCE ( + 7, + 84 ) + + ( - COALESCE ( + MAX( - COALESCE ( + 4, CAST( - 13 AS SIGNED ) * - 87 ) ), 48 * + 86 + + 62 * - 93 ) ) * CASE + 58 WHEN + NULLIF ( - NULLIF ( 9, + CASE + SUM( + 40 ) WHEN + 24 * + 57 THEN + 64 ELSE NULL END * - MIN( ALL 19 ) ), - 59 ) THEN - 38 END / 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT - 68 * + 66 * 83 + + + 23 + + 40 + - 84 + - + 93 + + 80 * 38 / - COALESCE ( + 7, + 84 ) + + ( - COALESCE ( + MAX ( - COALESCE ( + 4, CAST ( - 13 AS INTEGER ) * - 87 ) ), 48 * + 86 + + 62 * - 93 ) ) * CASE + 58 WHEN + NULLIF ( - NULLIF ( 9, + CASE + SUM ( + 40 ) WHEN + 24 * + 57 THEN + 64 ELSE NULL END * - MIN ( ALL 19 ) ), - 59 ) THEN - 38 END / 40 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL NULLIF ( + COUNT( * ), - COALESCE ( + 83, - - 47 + + 93 + - CASE - COUNT( * ) WHEN - COUNT( * ) - - + CAST( NULL AS SIGNED ) THEN - + NULLIF ( - + CAST( NULL AS SIGNED ), + + 54 ) WHEN COUNT( * ) + + ( 87 ) / 82 THEN NULL WHEN + 4 - - 5 THEN NULL ELSE NULL END * 95 ) + - COALESCE ( - 71 + 81, 73 ) * - 83 ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL NULLIF ( + COUNT ( * ), - COALESCE ( + 83, - - 47 + + 93 + - CASE - COUNT ( * ) WHEN - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) THEN - + NULLIF ( - + CAST ( NULL AS INTEGER ), + + 54 ) WHEN COUNT ( * ) + + ( 87 ) / 82 THEN NULL WHEN + 4 - - 5 THEN NULL ELSE NULL END * 95 ) + - COALESCE ( - 71 + 81, 73 ) * - 83 ) * 73
----
73

query II rowsort
SELECT ALL - - 12 col1, 53
----
12
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT 48 DIV - - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6761
SELECT 48 / - - 57 AS col1
----
0

query II rowsort
SELECT ALL 23 AS col0, 18
----
23
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - SUM( - 63 ) + + CASE - 9 WHEN + 56 THEN - - 9 END + 64 * - MIN( ALL + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT - SUM ( - 63 ) + + CASE - 9 WHEN + 56 THEN - - 9 END + 64 * - MIN ( ALL + + 25 )
----
NULL

query I rowsort
SELECT ALL 38 * - 3 * + ( 60 ) * 37 + + ( 42 )
----
-253038

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT COALESCE ( + 23, - 66 ) + + + COUNT( * ) + 53 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6765
SELECT COALESCE ( + 23, - 66 ) + + + COUNT ( * ) + 53 AS col0
----
77

query I rowsort
SELECT 59 + 12 * - - 47
----
623

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT 30 * 95 DIV - - 11 AS col1
----
259

skipif mysql # not compatible
query I rowsort label-6767
SELECT 30 * 95 / - - 11 AS col1
----
259

query I rowsort
SELECT 65 * + 93 AS col1
----
6045

query I rowsort
SELECT DISTINCT - 27 + 18 AS col1
----
-9

query I rowsort
SELECT 49 + 18 - 54
----
13

query I rowsort
SELECT ALL - 18 + + 69 AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6772
SELECT ALL COUNT( * ) + + 6 * - - CAST( NULL AS SIGNED ) * 14 * - 26 * - 2 + COUNT( * ) AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL COUNT ( * ) + + 6 * - - CAST ( NULL AS INTEGER ) * 14 * - 26 * - 2 + COUNT ( * ) AS col0, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT DISTINCT - 0 + - 72 + + + 2 col2
----
-70

query I rowsort
SELECT 71 - - 6 AS col0
----
77

query I rowsort
SELECT 81 - 27 * + 88 AS col1
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT - SUM( + 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT - SUM ( + 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL + + COUNT( * ) + + MAX( + - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + + COUNT ( * ) + + MAX ( + - 53 )
----
-52

query I rowsort
SELECT + 17 * - 36 + + ( 58 ) AS col2
----
-554

query I rowsort
SELECT ALL + + 50 * 73 + + 53 * - 83 AS col1
----
-749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT ALL + + COUNT( * ) - - CAST( + COUNT( * ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL + + COUNT ( * ) - - CAST ( + COUNT ( * ) AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL - 32 * - ( 27 ) * SUM( + + 54 ) + + 79 AS col0
----
46735

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - 32 * - ( 27 ) * SUM ( + + 54 ) + + 79 AS col0
----
46735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT + 16 * CAST( + COUNT( * ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6782
SELECT + 16 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6783
SELECT ALL - - 20 * 64 DIV + - 45
----
-28

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL - - 20 * 64 / + - 45
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - COUNT( * ) * + COALESCE ( - 90, + COUNT( * ) + - 5 + 31 ) * 17 + - 20 + + - COALESCE ( - 97, - - 18 ) + - 75 + + 42 + - 58 * 14
----
762

skipif mysql # not compatible
query I rowsort label-6784
SELECT - COUNT ( * ) * + COALESCE ( - 90, + COUNT ( * ) + - 5 + 31 ) * 17 + - 20 + + - COALESCE ( - 97, - - 18 ) + - 75 + + 42 + - 58 * 14
----
762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT DISTINCT - CAST( + 45 AS SIGNED ) * + - 81
----
3645

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT - CAST ( + 45 AS INTEGER ) * + - 81
----
3645

query I rowsort
SELECT 14 * - ( + 35 )
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT - 26 + - 49 * - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-6787
SELECT - 26 + - 49 * - + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT MIN( + 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6788
SELECT MIN ( + 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT - + 78 * + MAX( + 96 )
----
-7488

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - + 78 * + MAX ( + 96 )
----
-7488

query I rowsort
SELECT 93 * + - 25
----
-2325

query II rowsort
SELECT CASE - 40 WHEN + + 79 THEN + 83 END, - 28 + ( - 93 ) * + 38 * + 34 AS col1
----
NULL
-120184

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL CASE - 45 WHEN 62 * 35 THEN - COUNT( * ) WHEN - CASE - 80 WHEN + 52 * + 35 THEN + 10 * MAX( 91 ) ELSE + 66 END * + - 66 THEN + - COUNT( * ) WHEN + 34 + 79 / 69 THEN NULL END / NULLIF ( 60 + ( + AVG ( DISTINCT 17 ) ), + 35 + - COALESCE ( 27, AVG ( DISTINCT 31 ) - 21 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL CASE - 45 WHEN 62 * 35 THEN - COUNT ( * ) WHEN - CASE - 80 WHEN + 52 * + 35 THEN + 10 * MAX ( 91 ) ELSE + 66 END * + - 66 THEN + - COUNT ( * ) WHEN + 34 + 79 / 69 THEN NULL END / NULLIF ( 60 + ( + AVG ( DISTINCT 17 ) ), + 35 + - COALESCE ( 27, AVG ( DISTINCT 31 ) - 21 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 11 + ( COUNT( * ) ) + - 60
----
-48

skipif mysql # not compatible
query I rowsort label-6793
SELECT 11 + ( COUNT ( * ) ) + - 60
----
-48

query II rowsort
SELECT ALL 14 col0, 62 AS col2
----
14
62

query I rowsort
SELECT DISTINCT ( 17 ) + 17 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6796
SELECT DISTINCT 85 + 9 * + CAST( + 51 AS SIGNED ) * - 2 + + 52 * 89
----
3795

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT 85 + 9 * + CAST ( + 51 AS INTEGER ) * - 2 + + 52 * 89
----
3795

query I rowsort
SELECT ALL 61 + + 17 AS col2
----
78

query I rowsort
SELECT ALL 20 + + 68 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT NULLIF ( 66, + 28 + - - 91 ) * COUNT( * ) * + 48 AS col0
----
3168

skipif mysql # not compatible
query I rowsort label-6799
SELECT NULLIF ( 66, + 28 + - - 91 ) * COUNT ( * ) * + 48 AS col0
----
3168

query I rowsort
SELECT ( - - 39 ) + + 85
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6801
SELECT ALL CAST( NULL AS SIGNED ) + - + COUNT( * ) + - + 41 * COUNT( * ) / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - + 41 * COUNT ( * ) / 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL MIN( ALL + 34 ) + + + 27
----
61

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL MIN ( ALL + 34 ) + + + 27
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT DISTINCT + 68 + - ( - COUNT( * ) ) + - - 56
----
125

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT + 68 + - ( - COUNT ( * ) ) + - - 56
----
125

query I rowsort
SELECT 36 * - 75
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT - MIN( DISTINCT - - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6805
SELECT - MIN ( DISTINCT - - 51 ) AS col2
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6806
SELECT ALL 71 + - + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL 71 + - + CAST ( - CAST ( NULL AS REAL ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT ALL - 86 + - + 23 DIV - MAX( ALL 87 ) * 98 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - 86 + - + 23 / - MAX ( ALL 87 ) * 98 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT + COUNT( * ) + + 60 - 74 - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT + COUNT ( * ) + + 60 - 74 - COUNT ( * )
----
-14

query I rowsort
SELECT ALL + 94 * - + 33 * - 49
----
151998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6810
SELECT DISTINCT + 55 AS col1, + CAST( NULL AS SIGNED ) * + - 86 + - 93 - + 34 + - - 67 + - 59 * COUNT( * ) * + - 42 * - NULLIF ( - - ( - + ( - - 58 ) ), + - 97 )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-6810
SELECT DISTINCT + 55 AS col1, + CAST ( NULL AS INTEGER ) * + - 86 + - 93 - + 34 + - - 67 + - 59 * COUNT ( * ) * + - 42 * - NULLIF ( - - ( - + ( - - 58 ) ), + - 97 )
----
55
NULL

query I rowsort
SELECT DISTINCT + 67 * + 20
----
1340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6812
SELECT + 0 - - - 92 + + CAST( + - NULLIF ( + ( - COUNT( * ) ), - 84 / + - 72 * + 96 ) AS SIGNED ) + + 25 * - 93 + + 62 + + 44 + CAST( - CASE - 78 WHEN - MAX( ALL 56 ) / + 45 THEN 34 * - COUNT( * ) END AS SIGNED ) * + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT + 0 - - - 92 + + CAST ( + - NULLIF ( + ( - COUNT ( * ) ), - 84 / + - 72 * + 96 ) AS INTEGER ) + + 25 * - 93 + + 62 + + 44 + CAST ( - CASE - 78 WHEN - MAX ( ALL 56 ) / + 45 THEN 34 * - COUNT ( * ) END AS INTEGER ) * + 23 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6813
SELECT - - 79 / - 68 - + + ( 14 ) - + + MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT - - 79 / - 68 - + + ( 14 ) - + + MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 73 * + - 13 + - ( ( 35 ) ) AS col2
----
914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT - + NULLIF ( + 69, + 79 * 52 ) - - 86 * - - AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT - + NULLIF ( + 69, + 79 * 52 ) - - 86 * - - AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6816
SELECT DISTINCT + 60, 87 DIV + 37 + - 22 AS col0
----
60
-20

skipif mysql # not compatible
query II rowsort label-6816
SELECT DISTINCT + 60, 87 / + 37 + - 22 AS col0
----
60
-20

query I rowsort
SELECT ALL + - 5 * + - 95 AS col0
----
475

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT DISTINCT + 91 DIV + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + 91 / + 48 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT + + COALESCE ( COUNT( 60 ), - MIN( - 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6819
SELECT + + COALESCE ( COUNT ( 60 ), - MIN ( - 11 ) )
----
1

query II rowsort
SELECT ALL + 75 AS col2, - 22 * + 9 AS col0
----
75
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + 8 * + COUNT( * ) + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + 8 * + COUNT ( * ) + + COUNT ( * )
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6822
SELECT - 56 + + SUM( DISTINCT - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT - 56 + + SUM ( DISTINCT - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - 73 * - MIN( 27 ) * CASE + + 15 WHEN 41 THEN - 81 + - COUNT( * ) WHEN - AVG ( DISTINCT - - 53 ) + 52 + 81 * + - 3 * - + 78 * - - 48 * + 7 * + 18 + 96 * 78 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT - 73 * - MIN ( 27 ) * CASE + + 15 WHEN 41 THEN - 81 + - COUNT ( * ) WHEN - AVG ( DISTINCT - - 53 ) + 52 + 81 * + - 3 * - + 78 * - - 48 * + 7 * + 18 + 96 * 78 THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT DISTINCT + SUM( DISTINCT + + 57 ) * + 58 + + 26 AS col1
----
3332

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT + SUM ( DISTINCT + + 57 ) * + 58 + + 26 AS col1
----
3332

query II rowsort
SELECT ALL + 94, + 64 AS col1
----
94
64

query I rowsort
SELECT - 2 + + 24 AS col2
----
22

query I rowsort
SELECT DISTINCT 72 + ( 32 )
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT ALL + CAST( NULL AS SIGNED ) + + - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 83 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - - 1 ) AS col2
----
1

query II rowsort
SELECT 31, - 28 * - + 11 AS col0
----
31
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT + CAST( NULL AS SIGNED ) * + + ( - 78 ) * - + 69 * + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT + CAST ( NULL AS INTEGER ) * + + ( - 78 ) * - + 69 * + + 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT ALL 71 - CAST( NULL AS SIGNED ) / - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL 71 - CAST ( NULL AS INTEGER ) / - 42 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT DISTINCT CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT CAST ( 41 AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL - - 41 - - MIN( 75 ) - - COALESCE ( - 21, - + 45, - - 46 + 43 )
----
95

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL - - 41 - - MIN ( 75 ) - - COALESCE ( - 21, - + 45, - - 46 + 43 )
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-6835
SELECT ALL 84, NULLIF ( + 82, 71 ) + + + 28 DIV + 53 AS col1
----
84
82

skipif mysql # not compatible
query II rowsort label-6835
SELECT ALL 84, NULLIF ( + 82, 71 ) + + + 28 / + 53 AS col1
----
84
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6836
SELECT - 95 AS col1, + COUNT( * )
----
-95
1

skipif mysql # not compatible
query II rowsort label-6836
SELECT - 95 AS col1, + COUNT ( * )
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL 71 - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL 71 - - COUNT ( * )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6838
SELECT + COALESCE ( + 91, CAST( + - 54 AS SIGNED ), - 20 DIV 65 * + + MIN( DISTINCT 98 ) + + + MIN( DISTINCT + + 42 ) ) * 21 AS col1
----
1911

skipif mysql # not compatible
query I rowsort label-6838
SELECT + COALESCE ( + 91, CAST ( + - 54 AS INTEGER ), - 20 / 65 * + + MIN ( DISTINCT 98 ) + + + MIN ( DISTINCT + + 42 ) ) * 21 AS col1
----
1911

query I rowsort
SELECT + + 68 - - 66 + + 53 * - NULLIF ( - + 49, - 22 ) AS col2
----
2731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT + + 24 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT + + 24 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( 75 ) AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6842
SELECT ALL - CAST( 46 AS SIGNED ) AS col0, - 88 AS col2
----
-46
-88

skipif mysql # not compatible
query II rowsort label-6842
SELECT ALL - CAST ( 46 AS INTEGER ) AS col0, - 88 AS col2
----
-46
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT MAX( ALL + 13 ) * + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT MAX ( ALL + 13 ) * + COUNT ( * ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6844
SELECT 58 DIV - - 10 + 1 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6844
SELECT 58 / - - 10 + 1 AS col2
----
6

query II rowsort
SELECT ALL + 44, + 97 + + 46 AS col0
----
44
143

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT 58 col2, - NULLIF ( - COUNT( * ), + COUNT( 82 ) )
----
58
1

skipif mysql # not compatible
query II rowsort label-6846
SELECT 58 col2, - NULLIF ( - COUNT ( * ), + COUNT ( 82 ) )
----
58
1

query I rowsort
SELECT DISTINCT + 61 * - - 25 + 96 AS col2
----
1621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT ALL + - 14 / - + COALESCE ( CAST( NULL AS SIGNED ), + - CAST( NULL AS SIGNED ) ) + - 93 * AVG ( DISTINCT + 48 ) + - 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + - 14 / - + COALESCE ( CAST ( NULL AS INTEGER ), + - CAST ( NULL AS INTEGER ) ) + - 93 * AVG ( DISTINCT + 48 ) + - 69 col1
----
NULL

query I rowsort
SELECT + + 23 * - 36
----
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT + MAX( + 78 ) DIV + ( 7 ) + 83 * - COUNT( * ) + + 96 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6850
SELECT + MAX ( + 78 ) / + ( 7 ) + 83 * - COUNT ( * ) + + 96 AS col2
----
24

query II rowsort
SELECT ( - 41 ), + 13 AS col0
----
-41
13

query I rowsort
SELECT - 26 * - - 63 * + 52 AS col2
----
-85176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6853
SELECT ALL - 86 DIV - SUM( DISTINCT - - 55 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - 86 / - SUM ( DISTINCT - - 55 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT DISTINCT - 54 * 19 * + COALESCE ( + + 76, - + 89 ) + + 21 * + 30 * 73 * CAST( NULL AS SIGNED ) + - - 95 + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - 54 * 19 * + COALESCE ( + + 76, - + 89 ) + + 21 * + 30 * 73 * CAST ( NULL AS INTEGER ) + - - 95 + - 23
----
NULL

query I rowsort
SELECT NULLIF ( - ( + 6 ), 0 )
----
-6

query I rowsort
SELECT DISTINCT ( 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT NULLIF ( + 83, - - 85 * MAX( 26 ) ) col0
----
83

skipif mysql # not compatible
query I rowsort label-6857
SELECT NULLIF ( + 83, - - 85 * MAX ( 26 ) ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - COUNT( 80 ) + + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-6858
SELECT - COUNT ( 80 ) + + - 92
----
-93

query I rowsort
SELECT ALL + 96 * - - 39 AS col0
----
3744

query I rowsort
SELECT ALL + 23 * 58
----
1334

query II rowsort
SELECT 80 + 96 col2, 49 * - 6 AS col2
----
176
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT COUNT( COALESCE ( + - 48, + - 11 + - 18 ) ) - - 81 + - - ( 13 ) + - - COALESCE ( ( - 53 ), COALESCE ( + 21, - 38 DIV + - 2 ), + ( 79 ) + 60 * - 24 )
----
42

skipif mysql # not compatible
query I rowsort label-6862
SELECT COUNT ( COALESCE ( + - 48, + - 11 + - 18 ) ) - - 81 + - - ( 13 ) + - - COALESCE ( ( - 53 ), COALESCE ( + 21, - 38 / + - 2 ), + ( 79 ) + 60 * - 24 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT 90 + 0 AS col1, ( COUNT( * ) ) * 64 + + + 89
----
90
153

skipif mysql # not compatible
query II rowsort label-6863
SELECT 90 + 0 AS col1, ( COUNT ( * ) ) * 64 + + + 89
----
90
153

onlyif mysql # aggregate syntax: 
query II rowsort label-6864
SELECT + ( + 60 ) AS col0, 76 * + - 31 + ( - - COUNT( * ) )
----
60
-2355

skipif mysql # not compatible
query II rowsort label-6864
SELECT + ( + 60 ) AS col0, 76 * + - 31 + ( - - COUNT ( * ) )
----
60
-2355

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + COUNT( * ) + ( COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6865
SELECT + COUNT ( * ) + ( COUNT ( * ) ) AS col1
----
2

query I rowsort
SELECT + 43 * 41 + + 37 * - + 97 AS col2
----
-1826

query I rowsort
SELECT ( - + 46 ) * + - 43
----
1978

query I rowsort
SELECT - NULLIF ( 66, - 51 ) AS col2
----
-66

query I rowsort
SELECT 89 + ( 44 ) AS col1
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT ALL - - ( + 83 ) DIV - + 21
----
-3

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL - - ( + 83 ) / - + 21
----
-3

query II rowsort
SELECT DISTINCT - ( + + 86 ), + 29 AS col1
----
-86
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - - 72 * + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - - 72 * + - COUNT ( * )
----
-72

query I rowsort
SELECT - 46 * 8 + 32
----
-336

query I rowsort
SELECT + NULLIF ( - + 81, - 65 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT - CASE + + COALESCE ( + 65, - + 88 * - + 4 + + 50, + NULLIF ( - 64, - ( - - 79 ) ) ) WHEN + 89 * - 63 - - 35 THEN + 61 / - ( - 19 ) + 86 + + MAX( + COALESCE ( + 47, - 53 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - CASE + + COALESCE ( + 65, - + 88 * - + 4 + + 50, + NULLIF ( - 64, - ( - - 79 ) ) ) WHEN + 89 * - 63 - - 35 THEN + 61 / - ( - 19 ) + 86 + + MAX ( + COALESCE ( + 47, - 53 ) ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 32 + 96
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6877
SELECT + + CAST( - + 45 AS SIGNED ) AS col0, + 26 * - + COUNT( * ) AS col1
----
-45
-26

skipif mysql # not compatible
query II rowsort label-6877
SELECT + + CAST ( - + 45 AS INTEGER ) AS col0, + 26 * - + COUNT ( * ) AS col1
----
-45
-26

query I rowsort
SELECT DISTINCT 47 + + COALESCE ( + - 30, + 76, + - 62 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT - CAST( - 72 AS SIGNED ) * + 93
----
6696

skipif mysql # not compatible
query I rowsort label-6879
SELECT - CAST ( - 72 AS INTEGER ) * + 93
----
6696

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT DISTINCT - 1 AS col1, - MAX( - 79 ) + - 84 * 83 AS col1
----
-1
-6893

skipif mysql # not compatible
query II rowsort label-6880
SELECT DISTINCT - 1 AS col1, - MAX ( - 79 ) + - 84 * 83 AS col1
----
-1
-6893

query I rowsort
SELECT ALL 97 + 71
----
168

query I rowsort
SELECT 49 - + 2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT ALL 8 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL 8 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 81 + - + 61
----
-142

query II rowsort
SELECT ALL - 0, + 20 AS col2
----
0
20

query I rowsort
SELECT ALL 61 - - 83 + 42 + + 65 * 52
----
3566

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6887
SELECT 39 + + 73 * 12 / - 19 * + 85 * - + CAST( NULL AS DECIMAL ) + - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT 39 + + 73 * 12 / - 19 * + 85 * - + CAST ( NULL AS REAL ) + - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6888
SELECT 74 * - + 36 DIV + 2 AS col0
----
-1332

skipif mysql # not compatible
query I rowsort label-6888
SELECT 74 * - + 36 / + 2 AS col0
----
-1332

query I rowsort
SELECT - 84 * + + 47 + + + 77
----
-3871

query I rowsort
SELECT 84 - - + 89
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT 60 - 48 * - - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT 60 - 48 * - - COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6892
SELECT DISTINCT - COUNT( * ) DIV NULLIF ( + 79, - 55 + - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - COUNT ( * ) / NULLIF ( + 79, - 55 + - 39 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT 83 + COALESCE ( - COALESCE ( ( + 88 ), - 20 ), + 79 DIV - 28 * ( - - 55 ), - - 58 ) + 13 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6893
SELECT 83 + COALESCE ( - COALESCE ( ( + 88 ), - 20 ), + 79 / - 28 * ( - - 55 ), - - 58 ) + 13 AS col1
----
8

query I rowsort
SELECT 90 * 57
----
5130

query I rowsort
SELECT DISTINCT - 19 * - 14 AS col0
----
266

query II rowsort
SELECT + 96, 23 * 66 AS col2
----
96
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL - + 11 * - + COUNT( * ) col1
----
11

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL - + 11 * - + COUNT ( * ) col1
----
11

query I rowsort
SELECT 14 * + - 74 AS col1
----
-1036

query I rowsort
SELECT COALESCE ( + - 68, 77 + + 56, + COALESCE ( 4, - - 3 ) ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6900
SELECT DISTINCT - COUNT( * ), 85 AS col1
----
-1
85

skipif mysql # not compatible
query II rowsort label-6900
SELECT DISTINCT - COUNT ( * ), 85 AS col1
----
-1
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL + - COUNT( DISTINCT + 0 ) + + 77 - + + 38 + + ( - - 24 )
----
62

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL + - COUNT ( DISTINCT + 0 ) + + 77 - + + 38 + + ( - - 24 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT DISTINCT 75, COALESCE ( + + MAX( - - ( + - 81 ) ), + - 63 ) + 98 - CASE - + 85 WHEN + 65 THEN - 86 WHEN + + COUNT( * ) THEN NULL END + - - 36 / - + 67 * 89 AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-6902
SELECT DISTINCT 75, COALESCE ( + + MAX ( - - ( + - 81 ) ), + - 63 ) + 98 - CASE - + 85 WHEN + 65 THEN - 86 WHEN + + COUNT ( * ) THEN NULL END + - - 36 / - + 67 * 89 AS col2
----
75
NULL

query II rowsort
SELECT ALL - NULLIF ( + + 37, + - 57 ) + 74, 11 AS col0
----
37
11

query I rowsort
SELECT + 16 + 19 AS col2
----
35

query II rowsort
SELECT 13 AS col0, NULLIF ( - 20, 15 * + 27 / - 18 * + 30 ) * 64
----
13
-1280

onlyif mysql # DIV for integer division: 
query I rowsort label-6906
SELECT + 43 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6906
SELECT + 43 / - 59 AS col0
----
0

query I rowsort
SELECT ALL - 61 + - - 40 AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6908
SELECT - 83 + - 49 + + 78 DIV + 92
----
-132

skipif mysql # not compatible
query I rowsort label-6908
SELECT - 83 + - 49 + + 78 / + 92
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6909
SELECT 63 + 36 + + CAST( NULL AS DECIMAL ) + - 0 + - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) + COUNT( * ) / + + 72 * - 90 / 57 * - 29 AS col0, - 46 * - + 48 * - 57 + + 78 * MIN( ALL - 37 ) * + COUNT( * ) + + CASE ( + CAST( + COUNT( * ) AS SIGNED ) ) WHEN COUNT( * ) / 16 + 35 THEN + 23 - - COUNT( * ) WHEN COUNT( * ) THEN 79 + - 29 WHEN - 61 * 30 + + 97 THEN 57 * NULLIF ( 18, - COALESCE ( MAX( ALL + 74 ), MAX( DISTINCT + 19 ) * + SUM( - 88 ), - 0 + 59 ) ) WHEN COUNT( * ) - NULLIF ( 97, + COUNT( * ) ) * 11 THEN NULL END AS col2
----
NULL
-128692

skipif mysql # not compatible
query II rowsort label-6909
SELECT 63 + 36 + + CAST ( NULL AS REAL ) + - 0 + - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) + COUNT ( * ) / + + 72 * - 90 / 57 * - 29 AS col0, - 46 * - + 48 * - 57 + + 78 * MIN ( ALL - 37 ) * + COUNT ( * ) + + CASE ( + CAST ( + COUNT ( * ) AS INTEGER ) ) WHEN COUNT ( * ) / 16 + 35 THEN + 23 - - COUNT ( * ) WHEN COUNT ( * ) THEN 79 + - 29 WHEN - 61 * 30 + + 97 THEN 57 * NULLIF ( 18, - COALESCE ( MAX ( ALL + 74 ), MAX ( DISTINCT + 19 ) * + SUM ( - 88 ), - 0 + 59 ) ) WHEN COUNT ( * ) - NULLIF ( 97, + COUNT ( * ) ) * 11 THEN NULL END AS col2
----
NULL
-128692

query II rowsort
SELECT - - 93, 53 AS col2
----
93
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + COUNT( * ) * - 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6911
SELECT + COUNT ( * ) * - 15 AS col1
----
-15

query II rowsort
SELECT + 88 AS col1, + 80 AS col1
----
88
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL 31 * - COUNT( * ) + + - COUNT( - - 72 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL 31 * - COUNT ( * ) + + - COUNT ( - - 72 ) AS col0
----
-32

query I rowsort
SELECT DISTINCT + 86 * ( + 80 ) AS col2
----
6880

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - ( - + COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6916
SELECT 39 DIV - - 37
----
1

skipif mysql # not compatible
query I rowsort label-6916
SELECT 39 / - - 37
----
1

query I rowsort
SELECT - 42 * 13 + 60 AS col2
----
-486

query I rowsort
SELECT + ( 46 ) + + 4
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL 7 * - + COUNT( DISTINCT 73 ) * - + 97 * - + 9 AS col2
----
-6111

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL 7 * - + COUNT ( DISTINCT 73 ) * - + 97 * - + 9 AS col2
----
-6111

query I rowsort
SELECT + 30 + 59
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT + COUNT( 52 ), - 47 + 36 AS col0
----
1
-11

skipif mysql # not compatible
query II rowsort label-6921
SELECT + COUNT ( 52 ), - 47 + 36 AS col0
----
1
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + MAX( - - 22 ) + + 15
----
37

skipif mysql # not compatible
query I rowsort label-6922
SELECT + MAX ( - - 22 ) + + 15
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6923
SELECT + COUNT( DISTINCT + - 13 ), + 33 + + + 10 AS col1
----
1
43

skipif mysql # not compatible
query II rowsort label-6923
SELECT + COUNT ( DISTINCT + - 13 ), + 33 + + + 10 AS col1
----
1
43

query I rowsort
SELECT + 76 + + 59
----
135

query I rowsort
SELECT ALL - 26 + - 55 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6926
SELECT + - COALESCE ( CASE - 46 WHEN + COUNT( * ) * + 27 THEN + 65 END, + - CAST( - 37 AS SIGNED ) * - - 83 + 81, 39 - - - COUNT( * ) ) + - 98
----
-3250

skipif mysql # not compatible
query I rowsort label-6926
SELECT + - COALESCE ( CASE - 46 WHEN + COUNT ( * ) * + 27 THEN + 65 END, + - CAST ( - 37 AS INTEGER ) * - - 83 + 81, 39 - - - COUNT ( * ) ) + - 98
----
-3250

query I rowsort
SELECT - + 75 col1
----
-75

query I rowsort
SELECT + + 46 + 85 * - 76 AS col0
----
-6414

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT DISTINCT + + 46 + - 61 * + - COUNT( * ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + + 46 + - 61 * + - COUNT ( * ) AS col1
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT DISTINCT 79 DIV ( - - MAX( 71 ) ) * + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT 79 / ( - - MAX ( 71 ) ) * + - 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT + ( + SUM( ALL 64 ) ) col0
----
64

skipif mysql # not compatible
query I rowsort label-6931
SELECT + ( + SUM ( ALL 64 ) ) col0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6932
SELECT + CAST( - - 74 AS SIGNED ) DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-6932
SELECT + CAST ( - - 74 AS INTEGER ) / 28
----
2

query I rowsort
SELECT - 37 + 2 * - 50 AS col2
----
-137

query I rowsort
SELECT DISTINCT + 74 * - COALESCE ( - + 20, - 73 ) * - 89 + - 34
----
-131754

query I rowsort
SELECT + 81 * 10 + + 16 col2
----
826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6936
SELECT - + COUNT( * ) + + 80 * + 42 + - + 48 + + - 59 * + 96 * - 55 * 98 - - + COUNT( - - 37 ) DIV + - 65
----
30532271

skipif mysql # not compatible
query I rowsort label-6936
SELECT - + COUNT ( * ) + + 80 * + 42 + - + 48 + + - 59 * + 96 * - 55 * 98 - - + COUNT ( - - 37 ) / + - 65
----
30532271

query I rowsort
SELECT DISTINCT - - 42 * - + 48 - - ( + + 94 ) AS col0
----
-1922

query I rowsort
SELECT ALL - - 92 + + 69 + + 59
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT DISTINCT - NULLIF ( - 23, 36 ) - - 28 * - COUNT( * ) * + 66 col2
----
-1825

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - NULLIF ( - 23, 36 ) - - 28 * - COUNT ( * ) * + 66 col2
----
-1825

query I rowsort
SELECT + 91 - 28 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - MAX( - - 19 ) * + + 19
----
-361

skipif mysql # not compatible
query I rowsort label-6941
SELECT - MAX ( - - 19 ) * + + 19
----
-361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6942
SELECT CAST( NULL AS SIGNED ) AS col0, + 55 * + COUNT( ALL - 14 )
----
NULL
55

skipif mysql # not compatible
query II rowsort label-6942
SELECT CAST ( NULL AS INTEGER ) AS col0, + 55 * + COUNT ( ALL - 14 )
----
NULL
55

query I rowsort
SELECT - 67 - + 42
----
-109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6944
SELECT - 38 * 98 + 10 + 12 / + - 15 - + 60 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT - 38 * 98 + 10 + 12 / + - 15 - + 60 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - MAX( ALL - - 50 ) * 75 AS col2
----
-3750

skipif mysql # not compatible
query I rowsort label-6945
SELECT - MAX ( ALL - - 50 ) * 75 AS col2
----
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT DISTINCT + 55 * - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT + 55 * - COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT DISTINCT + 79 * 98 - - 6
----
7748

query I rowsort
SELECT ALL + 37 * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT ALL + 64 * ( ( COUNT( * ) ) )
----
64

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL + 64 * ( ( COUNT ( * ) ) )
----
64

query I rowsort
SELECT ALL - 92 * + 64 AS col2
----
-5888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6951
SELECT ALL + 37 * COALESCE ( 42, - 47 * 68 + + COUNT( * ) + + + COUNT( - 10 ) * 20 DIV - 95 + ( + 55 ) )
----
1554

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + 37 * COALESCE ( 42, - 47 * 68 + + COUNT ( * ) + + + COUNT ( - 10 ) * 20 / - 95 + ( + 55 ) )
----
1554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT ( CAST( CAST( 58 AS SIGNED ) AS SIGNED ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6952
SELECT ( CAST ( CAST ( 58 AS INTEGER ) AS INTEGER ) ) AS col0
----
58

query I rowsort
SELECT - ( + 18 ) * + + 13 + + 69 AS col1
----
-165

query I rowsort
SELECT + 36 - + - 87 col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT + COUNT( - 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6955
SELECT + COUNT ( - 36 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT CASE 70 WHEN + ( + 67 ) THEN + 83 + CASE - 99 WHEN + 5 * + 74 THEN - + AVG ( - - 35 ) + 22 * - - 68 WHEN + + 58 + - 11 + - - CAST( - 92 AS SIGNED ) THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT CASE 70 WHEN + ( + 67 ) THEN + 83 + CASE - 99 WHEN + 5 * + 74 THEN - + AVG ( - - 35 ) + 22 * - - 68 WHEN + + 58 + - 11 + - - CAST ( - 92 AS INTEGER ) THEN NULL END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6957
SELECT ALL - 91 * CASE CAST( NULL AS SIGNED ) WHEN 44 + + - 29 * + 48 * + 68 THEN ( + NULLIF ( + 38, 92 * - + 6 - - 52 + + 18 + - NULLIF ( 14, 32 ) ) ) WHEN - - 5 THEN NULL END + + 4 * CASE 64 WHEN - COUNT( * ) / ( CAST( 16 AS DECIMAL ) ) THEN NULL WHEN COUNT( * ) - + 51 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL - 91 * CASE CAST ( NULL AS INTEGER ) WHEN 44 + + - 29 * + 48 * + 68 THEN ( + NULLIF ( + 38, 92 * - + 6 - - 52 + + 18 + - NULLIF ( 14, 32 ) ) ) WHEN - - 5 THEN NULL END + + 4 * CASE 64 WHEN - COUNT ( * ) / ( CAST ( 16 AS REAL ) ) THEN NULL WHEN COUNT ( * ) - + 51 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT + 71 * - + COALESCE ( - 45, + CAST( COUNT( * ) AS SIGNED ) )
----
3195

skipif mysql # not compatible
query I rowsort label-6958
SELECT + 71 * - + COALESCE ( - 45, + CAST ( COUNT ( * ) AS INTEGER ) )
----
3195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT DISTINCT 77 * 74 + 87 + - CAST( NULL AS SIGNED ) - - + 20 * - 73 * + COALESCE ( + - 93, - - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT 77 * 74 + 87 + - CAST ( NULL AS INTEGER ) - - + 20 * - 73 * + COALESCE ( + - 93, - - 96 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6960
SELECT + - CAST( NULL AS DECIMAL ) + + 26 * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT + - CAST ( NULL AS REAL ) + + 26 * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ( - MAX( DISTINCT - + 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-6961
SELECT ( - MAX ( DISTINCT - + 42 ) )
----
42

query I rowsort
SELECT ALL + + 3 * - 91 + + 34 + 5 AS col0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT - + 89 + - 97 + - CASE - 94 WHEN 24 THEN + 77 WHEN 50 * + + 3 + - 47 + + 18 * ( + COUNT( * ) ) * - ( COALESCE ( - - 15, + COUNT( * ), ( - - 72 ) + + - ( + 57 ) ) ) / 51 THEN NULL END + - 37 * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT - + 89 + - 97 + - CASE - 94 WHEN 24 THEN + 77 WHEN 50 * + + 3 + - 47 + + 18 * ( + COUNT ( * ) ) * - ( COALESCE ( - - 15, + COUNT ( * ), ( - - 72 ) + + - ( + 57 ) ) ) / 51 THEN NULL END + - 37 * - 46 AS col1
----
NULL

query I rowsort
SELECT 14 * 86 - + 10 + 17
----
1211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6965
SELECT + + 39 + + 95 - + 3 * - + COUNT( * ) * + + 63 + + 0 - + 92 DIV - 5 AS col2
----
341

skipif mysql # not compatible
query I rowsort label-6965
SELECT + + 39 + + 95 - + 3 * - + COUNT ( * ) * + + 63 + + 0 - + 92 / - 5 AS col2
----
341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6966
SELECT - 49, SUM( DISTINCT - - 47 ) + - CAST( 71 AS SIGNED ) AS col1
----
-49
-24

skipif mysql # not compatible
query II rowsort label-6966
SELECT - 49, SUM ( DISTINCT - - 47 ) + - CAST ( 71 AS INTEGER ) AS col1
----
-49
-24

query I rowsort
SELECT ALL + 54 - + - 92 AS col1
----
146

query I rowsort
SELECT + ( + 0 ) - + 42 - 31
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT + - CAST( - + 46 AS SIGNED ) * + 7 + - - 82 AS col1
----
404

skipif mysql # not compatible
query I rowsort label-6969
SELECT + - CAST ( - + 46 AS INTEGER ) * + 7 + - - 82 AS col1
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT + 1 + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-6970
SELECT + 1 + COUNT ( * ) col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6971
SELECT ALL COALESCE ( - - CAST( + 68 AS SIGNED ), + ( - + 82 ) DIV 78 * + + ( - COUNT( * ) ), - CASE 59 WHEN COUNT( * ) THEN + + 38 END + - 85 )
----
68

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL COALESCE ( - - CAST ( + 68 AS INTEGER ), + ( - + 82 ) / 78 * + + ( - COUNT ( * ) ), - CASE 59 WHEN COUNT ( * ) THEN + + 38 END + - 85 )
----
68

query I rowsort
SELECT + 28 + + - 83 AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT ALL 98 DIV + 42
----
2

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL 98 / + 42
----
2

query I rowsort
SELECT + + 13 + + 15 - + 84 * + 82
----
-6860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6975
SELECT + 67 + - + 7 + CAST( NULL AS SIGNED ) + - ( - COUNT( * ) ) * ( - CAST( - - 50 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT + 67 + - + 7 + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) * ( - CAST ( - - 50 AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 38 * + 30 col0
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT + 44 + + + 26 + + 8 + + 73 * + + 62 + - - CAST( + 89 AS SIGNED )
----
4693

skipif mysql # not compatible
query I rowsort label-6977
SELECT + 44 + + + 26 + + 8 + + 73 * + + 62 + - - CAST ( + 89 AS INTEGER )
----
4693

query II rowsort
SELECT 86, + 79 AS col2
----
86
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT 94 + - - COUNT( * ) + + 45
----
140

skipif mysql # not compatible
query I rowsort label-6979
SELECT 94 + - - COUNT ( * ) + + 45
----
140

query I rowsort
SELECT ALL + 68 * - 35 * - 57 AS col0
----
135660

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL 43 * - ( - SUM( DISTINCT + ( + - 72 ) ) ) * 35 * - 92
----
9969120

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL 43 * - ( - SUM ( DISTINCT + ( + - 72 ) ) ) * 35 * - 92
----
9969120

query I rowsort
SELECT 69 * + 49 + + 15 + COALESCE ( - 93, - 18 ) AS col0
----
3303

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL - ( + CASE - - SUM( DISTINCT - 71 ) WHEN + 80 * - - 9 THEN 84 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL - ( + CASE - - SUM ( DISTINCT - 71 ) WHEN + 80 * - - 9 THEN 84 END )
----
NULL

query I rowsort
SELECT 93 + 15
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT DISTINCT - NULLIF ( - + COUNT( DISTINCT - + ( + - 46 ) ), - 53 / - COUNT( * ) ), 92 AS col2
----
1
92

skipif mysql # not compatible
query II rowsort label-6985
SELECT DISTINCT - NULLIF ( - + COUNT ( DISTINCT - + ( + - 46 ) ), - 53 / - COUNT ( * ) ), 92 AS col2
----
1
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6986
SELECT + 82 AS col1, 26 * 30 + + CAST( NULL AS SIGNED ) AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6986
SELECT + 82 AS col1, 26 * 30 + + CAST ( NULL AS INTEGER ) AS col0
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT + ( + - CASE WHEN NOT NULL <> 98 THEN - 7 END ) * CAST( NULL AS SIGNED ) + - 61 + - SUM( + ( - 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT + ( + - CASE WHEN NOT NULL <> 98 THEN - 7 END ) * CAST ( NULL AS INTEGER ) + - 61 + - SUM ( + ( - 73 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6988
SELECT 5, MIN( + 15 ) col0
----
5
15

skipif mysql # not compatible
query II rowsort label-6988
SELECT 5, MIN ( + 15 ) col0
----
5
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT 6 * - + 16 + COALESCE ( - 80, - + 34 ) - + 75 col0, + COUNT( * ) + + 21 - + 93
----
-251
-71

skipif mysql # not compatible
query II rowsort label-6989
SELECT 6 * - + 16 + COALESCE ( - 80, - + 34 ) - + 75 col0, + COUNT ( * ) + + 21 - + 93
----
-251
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT ALL + 6 + + 31 DIV + + MAX( ALL - + 73 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + 6 + + 31 / + + MAX ( ALL - + 73 ) col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT ALL + 34 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + 34 / + 56 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6992
SELECT DISTINCT - + 38 * + 83 * - + CASE - 20 WHEN + - NULLIF ( - + 75, 48 + - + 99 + COUNT( * ) * - CAST( NULL AS DECIMAL ) ) + 15 * + 64 THEN COUNT( * ) + + + 75 + - 5 - - 17 + - 48 + - + 92 + + - COUNT( * ) WHEN 52 THEN NULL END * - NULLIF ( + 18, + 14 * + NULLIF ( 64 / 41, + 64 ) ) + - ( 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - + 38 * + 83 * - + CASE - 20 WHEN + - NULLIF ( - + 75, 48 + - + 99 + COUNT ( * ) * - CAST ( NULL AS REAL ) ) + 15 * + 64 THEN COUNT ( * ) + + + 75 + - 5 - - 17 + - 48 + - + 92 + + - COUNT ( * ) WHEN 52 THEN NULL END * - NULLIF ( + 18, + 14 * + NULLIF ( 64 / 41, + 64 ) ) + - ( 82 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL + - COUNT( * ) + + SUM( ALL + 16 ) * - - 45 - + 58
----
661

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + - COUNT ( * ) + + SUM ( ALL + 16 ) * - - 45 - + 58
----
661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT CASE + + 13 WHEN + 63 * + COUNT( * ) * - 73 THEN - - 64 * NULLIF ( - CAST( NULL AS SIGNED ), 86 * 24 ) + + 88 * + + CASE + 88 WHEN - - 76 * - CASE + - 88 WHEN + 44 THEN NULL WHEN + - ( - 23 ) * - ( - - 90 ) THEN - CASE - 35 WHEN 14 THEN NULL ELSE - 53 - COUNT( * ) * + 4 END * + COUNT( * ) ELSE ( 61 ) * 0 END THEN NULL ELSE + 37 END + 10 WHEN 24 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT CASE + + 13 WHEN + 63 * + COUNT ( * ) * - 73 THEN - - 64 * NULLIF ( - CAST ( NULL AS INTEGER ), 86 * 24 ) + + 88 * + + CASE + 88 WHEN - - 76 * - CASE + - 88 WHEN + 44 THEN NULL WHEN + - ( - 23 ) * - ( - - 90 ) THEN - CASE - 35 WHEN 14 THEN NULL ELSE - 53 - COUNT ( * ) * + 4 END * + COUNT ( * ) ELSE ( 61 ) * 0 END THEN NULL ELSE + 37 END + 10 WHEN 24 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 36 * + 21 + - - 41 AS col0
----
797

query I rowsort
SELECT 85 * + 5 - + - 52 AS col1
----
477

query I rowsort
SELECT 81 * + 68
----
5508

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT + - CASE + 2 WHEN + 48 / 33 THEN NULL WHEN - 85 * - 20 + - COALESCE ( - + 27, + COUNT( * ) ) THEN SUM( ALL + 59 ) - - 30 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT + - CASE + 2 WHEN + 48 / 33 THEN NULL WHEN - 85 * - 20 + - COALESCE ( - + 27, + COUNT ( * ) ) THEN SUM ( ALL + 59 ) - - 30 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ( 16 ) * COUNT( ALL + - ( + - 91 ) ) + + NULLIF ( + + 89, 57 * + CASE - 98 WHEN + 62 * 45 THEN NULL ELSE - 42 END ) * + COUNT( * ) col1
----
105

skipif mysql # not compatible
query I rowsort label-6999
SELECT ( 16 ) * COUNT ( ALL + - ( + - 91 ) ) + + NULLIF ( + + 89, 57 * + CASE - 98 WHEN + 62 * 45 THEN NULL ELSE - 42 END ) * + COUNT ( * ) col1
----
105

query I rowsort
SELECT ALL - 24 - 84 col0
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT - CAST( + 64 AS SIGNED ) + + + MIN( + 78 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7001
SELECT - CAST ( + 64 AS INTEGER ) + + + MIN ( + 78 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT 7 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT 7 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT - + CASE - CAST( + - CASE - - 78 WHEN + 68 THEN NULL WHEN + - 80 * 78 / - + 23 THEN - - 87 END AS SIGNED ) WHEN - 48 * + - 80 * - COUNT( * ) + - 14 THEN - - CASE COUNT( * ) WHEN + 0 * CAST( NULL AS SIGNED ) + - COUNT( DISTINCT + 45 ) THEN NULL WHEN + + COUNT( DISTINCT - + ( 20 ) ) * CASE 13 WHEN + COALESCE ( AVG ( DISTINCT - 10 ), 71 * 3, - 41 ) + + CAST( - NULLIF ( + 18, 74 ) AS SIGNED ) THEN 91 END THEN + 46 ELSE 20 END - 90 * + 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT - + CASE - CAST ( + - CASE - - 78 WHEN + 68 THEN NULL WHEN + - 80 * 78 / - + 23 THEN - - 87 END AS INTEGER ) WHEN - 48 * + - 80 * - COUNT ( * ) + - 14 THEN - - CASE COUNT ( * ) WHEN + 0 * CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT + 45 ) THEN NULL WHEN + + COUNT ( DISTINCT - + ( 20 ) ) * CASE 13 WHEN + COALESCE ( AVG ( DISTINCT - 10 ), 71 * 3, - 41 ) + + CAST ( - NULLIF ( + 18, 74 ) AS INTEGER ) THEN 91 END THEN + 46 ELSE 20 END - 90 * + 28 END AS col0
----
NULL

query I rowsort
SELECT 86 * + 53 + + 23 * + + 92
----
6674

query I rowsort
SELECT 30 * 6 AS col2
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT CAST( + 99 AS SIGNED ) + - 16 col2
----
83

skipif mysql # not compatible
query I rowsort label-7006
SELECT CAST ( + 99 AS INTEGER ) + - 16 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - SUM( + 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-7007
SELECT - SUM ( + 18 ) col0
----
-18

query II rowsort
SELECT DISTINCT 97 * - - 44 AS col1, + 43
----
4268
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7009
SELECT 58 * - CASE WHEN NULL IS NULL THEN + CAST( NULL AS SIGNED ) ELSE 91 * - + 1 + + 7 + + 52 + - - 38 * + - COUNT( + 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT 58 * - CASE WHEN NULL IS NULL THEN + CAST ( NULL AS INTEGER ) ELSE 91 * - + 1 + + 7 + + 52 + - - 38 * + - COUNT ( + 26 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL - 64 * CASE - SUM( ALL - 2 ) WHEN + 0 + - 78 THEN + - ( - - NULLIF ( + - 62, COUNT( * ) - - 33 ) ) WHEN - 61 THEN 20 WHEN 11 THEN + - 19 - + 60 + + 27 + NULLIF ( + + 13, + 47 ) + 37 * 67 * COALESCE ( 65, CAST( NULL AS SIGNED ) ) END / 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - 64 * CASE - SUM ( ALL - 2 ) WHEN + 0 + - 78 THEN + - ( - - NULLIF ( + - 62, COUNT ( * ) - - 33 ) ) WHEN - 61 THEN 20 WHEN 11 THEN + - 19 - + 60 + + 27 + NULLIF ( + + 13, + 47 ) + 37 * 67 * COALESCE ( 65, CAST ( NULL AS INTEGER ) ) END / 67
----
NULL

query I rowsort
SELECT 84 * + - 90
----
-7560

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT 90 DIV 41
----
2

skipif mysql # not compatible
query I rowsort label-7012
SELECT 90 / 41
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT SUM( 78 ) - 59 - - COUNT( * ) - + NULLIF ( - 5, + - 69 + + + NULLIF ( 23, + + 80 ) ) + 66 DIV - 25
----
23

skipif mysql # not compatible
query I rowsort label-7013
SELECT SUM ( 78 ) - 59 - - COUNT ( * ) - + NULLIF ( - 5, + - 69 + + + NULLIF ( 23, + + 80 ) ) + 66 / - 25
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7014
SELECT 3 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT 3 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 9 * - 86 * - + 4 * + 67 AS col0
----
207432

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT MAX( DISTINCT - + 55 ), + 30 AS col1
----
-55
30

skipif mysql # not compatible
query II rowsort label-7016
SELECT MAX ( DISTINCT - + 55 ), + 30 AS col1
----
-55
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT + 92 / + 80 * 10 + - 91 + CAST( CASE 49 WHEN + 44 + + - 7 THEN + 2 / 25 WHEN 71 THEN NULL END AS SIGNED ) * - - 57 * + + 59 + + + 61 - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT + 92 / + 80 * 10 + - 91 + CAST ( CASE 49 WHEN + 44 + + - 7 THEN + 2 / 25 WHEN 71 THEN NULL END AS INTEGER ) * - - 57 * + + 59 + + + 61 - + 42
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7018
SELECT 25 + - CAST( NULL AS DECIMAL ) - - 77 / - + 96 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT 25 + - CAST ( NULL AS REAL ) - - 77 / - + 96 * 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL - 74 + + + SUM( DISTINCT + 23 )
----
-51

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL - 74 + + + SUM ( DISTINCT + 23 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7020
SELECT DISTINCT + COALESCE ( ( + COUNT( * ) ), + - NULLIF ( - COUNT( - 29 ), - - 67 ), + 36 + ( ( 96 ) ) DIV - - 48, + 70, - + 24 ) * - - 45 AS col0, 93 + + 10 AS col2
----
45
103

skipif mysql # not compatible
query II rowsort label-7020
SELECT DISTINCT + COALESCE ( ( + COUNT ( * ) ), + - NULLIF ( - COUNT ( - 29 ), - - 67 ), + 36 + ( ( 96 ) ) / - - 48, + 70, - + 24 ) * - - 45 AS col0, 93 + + 10 AS col2
----
45
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL MIN( - 96 ) + - - 23 + + + 33 + + MIN( ALL + ( + ( - ( - + 48 ) ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL MIN ( - 96 ) + - - 23 + + + 33 + + MIN ( ALL + ( + ( - ( - + 48 ) ) ) )
----
8

query I rowsort
SELECT ALL - ( + + 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL - ( + + 49 ) + + NULLIF ( - + 83, COUNT( * ) + - - 93 ) AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL - ( + + 49 ) + + NULLIF ( - + 83, COUNT ( * ) + - - 93 ) AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL 82 + - COUNT( * ) + - 65 * + - ( 55 ) AS col2
----
3656

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL 82 + - COUNT ( * ) + - 65 * + - ( 55 ) AS col2
----
3656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7025
SELECT + 11 + - 30 DIV + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7025
SELECT + 11 + - 30 / + COUNT ( * ) AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT ( + CAST( 23 AS SIGNED ) ) + + 16 + - + ( + 15 )
----
24

skipif mysql # not compatible
query I rowsort label-7026
SELECT ( + CAST ( 23 AS INTEGER ) ) + + 16 + - + ( + 15 )
----
24

query I rowsort
SELECT 96 - + 47 + - 78 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT 83 * + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7028
SELECT 83 * + COUNT ( * ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7029
SELECT ALL + CAST( - 88 AS SIGNED ) - + COUNT( ALL + 27 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL + CAST ( - 88 AS INTEGER ) - + COUNT ( ALL + 27 ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT ALL - + 85 * - CAST( - 81 AS SIGNED )
----
-6885

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL - + 85 * - CAST ( - 81 AS INTEGER )
----
-6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7031
SELECT - 36 + + 77 - - 30 + + 75 * ( - 69 ) * + 66 + - + 48 + - MIN( ALL + 82 ) * + + NULLIF ( - COUNT( * ), - COUNT( * ) / - COALESCE ( COALESCE ( - + 30, + + COUNT( * ) * + + COUNT( - - COALESCE ( + 90, 30 ) ) - - 61, 65 * - COUNT( * ) ), 61 + 76 * + 48, + COUNT( 86 ) + CAST( 4 - 9 AS SIGNED ) ) ) + CASE 94 WHEN - COALESCE ( + 59, + CAST( NULL AS SIGNED ) * 18, 72 - + 4 ) THEN NULL ELSE 5 + 94 END * 56 AS col1
----
-335901

skipif mysql # not compatible
query I rowsort label-7031
SELECT - 36 + + 77 - - 30 + + 75 * ( - 69 ) * + 66 + - + 48 + - MIN ( ALL + 82 ) * + + NULLIF ( - COUNT ( * ), - COUNT ( * ) / - COALESCE ( COALESCE ( - + 30, + + COUNT ( * ) * + + COUNT ( - - COALESCE ( + 90, 30 ) ) - - 61, 65 * - COUNT ( * ) ), 61 + 76 * + 48, + COUNT ( 86 ) + CAST ( 4 - 9 AS INTEGER ) ) ) + CASE 94 WHEN - COALESCE ( + 59, + CAST ( NULL AS INTEGER ) * 18, 72 - + 4 ) THEN NULL ELSE 5 + 94 END * 56 AS col1
----
-335901

onlyif mysql # DIV for integer division: 
query I rowsort label-7032
SELECT ( 22 ) DIV - 84 - 95 * + 26
----
-2470

skipif mysql # not compatible
query I rowsort label-7032
SELECT ( 22 ) / - 84 - 95 * + 26
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT NULLIF ( + CASE WHEN NOT NULL < NULL THEN 62 ELSE NULL END, - 80 - - - 43 - - - 50 + - 50 * 58 + - SUM( DISTINCT + + 84 ) ) * 62 * + - 57 * - - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT NULLIF ( + CASE WHEN NOT NULL < NULL THEN 62 ELSE NULL END, - 80 - - - 43 - - - 50 + - 50 * 58 + - SUM ( DISTINCT + + 84 ) ) * 62 * + - 57 * - - 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT - 63 + + NULLIF ( 59, - - MAX( ALL COALESCE ( - 63, + COALESCE ( + 18, 86 ), 28 - 66 * 85 ) ) ) + + + 9
----
5

skipif mysql # not compatible
query I rowsort label-7034
SELECT - 63 + + NULLIF ( 59, - - MAX ( ALL COALESCE ( - 63, + COALESCE ( + 18, 86 ), 28 - 66 * 85 ) ) ) + + + 9
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7035
SELECT - 77 DIV 93 * CAST( - 16 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7035
SELECT - 77 / 93 * CAST ( - 16 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - COUNT( * ) + - 80 + + CASE COALESCE ( + + COUNT( * ), - + 29 * - - 71 + 96, + 46 ) WHEN 89 THEN 66 * - - COALESCE ( - + 55, - + ( - + 41 ) * COUNT( + 96 ) * 40 + + + ( CASE 12 WHEN 61 THEN - 42 END ) * 71 ) + - 8 ELSE + 75 END + 31 * 23 * + 37 * + 81
----
2136855

skipif mysql # not compatible
query I rowsort label-7036
SELECT - COUNT ( * ) + - 80 + + CASE COALESCE ( + + COUNT ( * ), - + 29 * - - 71 + 96, + 46 ) WHEN 89 THEN 66 * - - COALESCE ( - + 55, - + ( - + 41 ) * COUNT ( + 96 ) * 40 + + + ( CASE 12 WHEN 61 THEN - 42 END ) * 71 ) + - 8 ELSE + 75 END + 31 * 23 * + 37 * + 81
----
2136855

query I rowsort
SELECT ALL + 5 + - - 70 * 30
----
2105

query I rowsort
SELECT DISTINCT NULLIF ( - 20, 65 + + 10 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + 67 + - 69 * - 79 + - - 85 * COUNT( * ) + - 30 + - 80 * - 39 * + COUNT( * )
----
8693

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 67 + - 69 * - 79 + - - 85 * COUNT ( * ) + - 30 + - 80 * - 39 * + COUNT ( * )
----
8693

query I rowsort
SELECT - 78 + 61
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT - COUNT( * ) * - 21
----
21

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT - COUNT ( * ) * - 21
----
21

query I rowsort
SELECT ALL 49 + - - 82 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + 60 - - ( + - COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-7043
SELECT + 60 - - ( + - COUNT ( * ) )
----
59

query I rowsort
SELECT - 31 + 31
----
0

query I rowsort
SELECT + 36 + + 62 + + - 42 * ( 40 ) AS col1
----
-1582

query I rowsort
SELECT ALL 42 + 91
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT + CAST( NULL AS SIGNED ) + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT + CAST ( NULL AS INTEGER ) + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT COUNT( * ) * + + 19 + - 8 * - + ( + 39 ) AS col2
----
331

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT COUNT ( * ) * + + 19 + - 8 * - + ( + 39 ) AS col2
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL + SUM( + + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + SUM ( + + 99 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT + 77 + ( + 3 ) * - 43 - + + NULLIF ( - - 95, + + COALESCE ( 88, - - 19, - CAST( + + ( - - 14 ) AS SIGNED ) ) * - 52 * 43 * + + 0 ) + 3 * + 28
----
-63

skipif mysql # not compatible
query I rowsort label-7051
SELECT + 77 + ( + 3 ) * - 43 - + + NULLIF ( - - 95, + + COALESCE ( 88, - - 19, - CAST ( + + ( - - 14 ) AS INTEGER ) ) * - 52 * 43 * + + 0 ) + 3 * + 28
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + COUNT( * ) * 81 + + NULLIF ( - 87, + 65 ) + - 16 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + COUNT ( * ) * 81 + + NULLIF ( - 87, + 65 ) + - 16 AS col1
----
-22

query II rowsort
SELECT DISTINCT + 57, 31 AS col2
----
57
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT ALL 34 DIV - 31 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL 34 / - 31 AS col2
----
-1

query I rowsort
SELECT + 9 * + ( 30 ) + + - 91
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7056
SELECT + + COUNT( * ) / - + CAST( NULL AS SIGNED ) + - 23 * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT + + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) + - 23 * 7 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7057
SELECT ALL - 46 DIV 42 + - 63 + - + 57 * - 9 + 53 + 10 + - + 43 + 17 * NULLIF ( 69, ( - NULLIF ( + 83, - 0 DIV + + 98 + - - 76 + - 70 + + - 78 + - AVG ( DISTINCT - 28 ) + + 6 * 24 ) ) * + 95 + 49 DIV - 5 )
----
1642

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL - 46 / 42 + - 63 + - + 57 * - 9 + 53 + 10 + - + 43 + 17 * NULLIF ( 69, ( - NULLIF ( + 83, - 0 / + + 98 + - - 76 + - 70 + + - 78 + - AVG ( DISTINCT - 28 ) + + 6 * 24 ) ) * + 95 + 49 / - 5 )
----
1642

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL - + COALESCE ( - 11, + - 44 + + 7 * + COUNT( * ) * COALESCE ( 81, 77 ), - COUNT( * ) ) * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL - + COALESCE ( - 11, + - 44 + + 7 * + COUNT ( * ) * COALESCE ( 81, 77 ), - COUNT ( * ) ) * - COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT + - 61 + ( COUNT( 10 ) ) + + + 18 + - - 22
----
-20

skipif mysql # not compatible
query I rowsort label-7059
SELECT + - 61 + ( COUNT ( 10 ) ) + + + 18 + - - 22
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT - + COUNT( * ) * ( - 51 ) + - 47 + 87 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7060
SELECT - + COUNT ( * ) * ( - 51 ) + - 47 + 87 AS col2
----
91

query II rowsort
SELECT + 68 AS col2, 0 - - + 49
----
68
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7062
SELECT COALESCE ( - 6, SUM( + - 84 ) + + 74, + CAST( NULL AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-7062
SELECT COALESCE ( - 6, SUM ( + - 84 ) + + 74, + CAST ( NULL AS INTEGER ) )
----
-6

query I rowsort
SELECT + 47 * + 18
----
846

query I rowsort
SELECT - - 45 + 80 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL - COUNT( - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - COUNT ( - 0 )
----
-1

query II rowsort
SELECT - 75, 84 AS col1
----
-75
84

query I rowsort
SELECT ALL - 90 + - 85 * + 57 * + 64 AS col0
----
-310170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7068
SELECT - COUNT( * ) * + - 61 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-7068
SELECT - COUNT ( * ) * + - 61 / 42
----
1

query I rowsort
SELECT ALL 20 + + - 56 + - + 51
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT DISTINCT + 92 + ( + COALESCE ( - - CASE - 61 WHEN - 76 THEN + - COALESCE ( + 82, COUNT( * ) * - 45 ) WHEN + NULLIF ( - CASE + - 42 WHEN + NULLIF ( 51, + 69 + - 40 ) * - MAX( + - 19 ) THEN + - COUNT( + 47 ) * - ( 80 ) + - 9 END, - 66 ) + - COUNT( * ) THEN NULL WHEN CASE COUNT( * ) WHEN + 1 THEN 74 ELSE NULL END THEN NULL ELSE NULL END, MIN( - ( 28 ) ) ) )
----
64

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT + 92 + ( + COALESCE ( - - CASE - 61 WHEN - 76 THEN + - COALESCE ( + 82, COUNT ( * ) * - 45 ) WHEN + NULLIF ( - CASE + - 42 WHEN + NULLIF ( 51, + 69 + - 40 ) * - MAX ( + - 19 ) THEN + - COUNT ( + 47 ) * - ( 80 ) + - 9 END, - 66 ) + - COUNT ( * ) THEN NULL WHEN CASE COUNT ( * ) WHEN + 1 THEN 74 ELSE NULL END THEN NULL ELSE NULL END, MIN ( - ( 28 ) ) ) )
----
64

query I rowsort
SELECT ALL - 37 + - + 90 + - 69
----
-196

query I rowsort
SELECT - 84 * 54 AS col2
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT + 92 + - COUNT( * ) * ( 22 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT + 92 + - COUNT ( * ) * ( 22 ) col1
----
70

query I rowsort
SELECT - 37 + - + 42
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT ALL + 74 + - 41 + - 21 + COUNT( DISTINCT 42 ) + + - 62 DIV - - 96 - - + COUNT( * ) - 22 DIV + + SUM( ALL + + 97 ) + - 58
----
-44

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + 74 + - 41 + - 21 + COUNT ( DISTINCT 42 ) + + - 62 / - - 96 - - + COUNT ( * ) - 22 / + + SUM ( ALL + + 97 ) + - 58
----
-44

query I rowsort
SELECT DISTINCT CASE + 78 WHEN + 86 THEN - - 22 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT ALL - 47 + + - 41 - 83 + 79 DIV + 40 + 49
----
-121

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - 47 + + - 41 - 83 + 79 / + 40 + 49
----
-121

query II rowsort
SELECT DISTINCT - 29 + ( 96 ) + 83 AS col2, 62
----
150
62

query I rowsort
SELECT ALL + 75 + + - 13
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

query II rowsort
SELECT - CASE 82 WHEN 88 THEN NULL WHEN + AVG ( - 82 ) THEN + 0 * + 54 ELSE + - ( - - 24 ) END AS col2, - 1
----
24
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7082
SELECT ALL - 84 * 82 col2, COUNT( * ) AS col1
----
-6888
1

skipif mysql # not compatible
query II rowsort label-7082
SELECT ALL - 84 * 82 col2, COUNT ( * ) AS col1
----
-6888
1

query I rowsort
SELECT + 47 * - 90 * ( + 66 ) col0
----
-279180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7084
SELECT - - 56 * + 69 * + - 30 + + ( + 19 ) AS col2, 9 + + 28 * + - CAST( NULL AS SIGNED )
----
-115901
NULL

skipif mysql # not compatible
query II rowsort label-7084
SELECT - - 56 * + 69 * + - 30 + + ( + 19 ) AS col2, 9 + + 28 * + - CAST ( NULL AS INTEGER )
----
-115901
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7085
SELECT ALL - 23 DIV + 73 - - 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - 23 / + 73 - - 16 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT ALL + CAST( + ( + 88 ) AS SIGNED ) col0
----
88

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + CAST ( + ( + 88 ) AS INTEGER ) col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT ALL + CAST( NULL AS SIGNED ) * - 13 * 56 / + MAX( DISTINCT + 96 ) * - 79 + + + CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + CAST ( NULL AS INTEGER ) * - 13 * 56 / + MAX ( DISTINCT + 96 ) * - 79 + + + CAST ( NULL AS INTEGER ) * - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT + - 6 / 68 / + - CAST( NULL AS SIGNED ) / - - 44 + - 40 + - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT + - 6 / 68 / + - CAST ( NULL AS INTEGER ) / - - 44 + - 40 + - + 40
----
NULL

query I rowsort
SELECT ALL + + CASE - 3 WHEN - ( 93 ) THEN - 12 WHEN + 96 + + 40 - - - 29 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + + 31 - + 42 AS col2
----
-11

query I rowsort
SELECT + + 44 * + + 42 + - + 31 AS col1
----
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT - 22 + - ( + COUNT( ALL 5 ) ) * + 92
----
-114

skipif mysql # not compatible
query I rowsort label-7092
SELECT - 22 + - ( + COUNT ( ALL 5 ) ) * + 92
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7093
SELECT + COALESCE ( 10, + 88 * - 75 + - ( + 46 ) * + - 12 ) DIV - 30 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT + COALESCE ( 10, + 88 * - 75 + - ( + 46 ) * + - 12 ) / - 30 / + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT CAST( NULL AS SIGNED ) * + 4 * - - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT CAST ( NULL AS INTEGER ) * + 4 * - - 99 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 41 + + + 14 AS col1
----
55

query I rowsort
SELECT DISTINCT - - ( + + ( 4 ) ) AS col1
----
4

query I rowsort
SELECT ALL 98 + - 66 AS col2
----
32

query I rowsort
SELECT DISTINCT - 61 + + - 18 * + 9 + + 88 + - 47 + NULLIF ( 52, + + 80 ) * - ( 37 )
----
-2106

onlyif mysql # DIV for integer division: 
query I rowsort label-7099
SELECT + 72 + COALESCE ( - 3, + - 26 DIV + - 21 + - 57 )
----
69

skipif mysql # not compatible
query I rowsort label-7099
SELECT + 72 + COALESCE ( - 3, + - 26 / + - 21 + - 57 )
----
69

query I rowsort
SELECT ALL 42 * - + 65 AS col2
----
-2730

query I rowsort
SELECT DISTINCT 14 * 65 AS col1
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL 73 + + 9 * - MIN( - - 16 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL 73 + + 9 * - MIN ( - - 16 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT MIN( DISTINCT + 69 ) + - + 75 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7103
SELECT MIN ( DISTINCT + 69 ) + - + 75 AS col2
----
-6

query I rowsort
SELECT 9 * - - COALESCE ( - 87, + 91 )
----
-783

query I rowsort
SELECT ALL 67 + 87 AS col2
----
154

query II rowsort
SELECT ALL 65 AS col2, + 99 * - 68 + + 67 * - 55
----
65
-10417

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT DISTINCT 16 AS col1, - COUNT( * ) AS col1
----
16
-1

skipif mysql # not compatible
query II rowsort label-7107
SELECT DISTINCT 16 AS col1, - COUNT ( * ) AS col1
----
16
-1

query I rowsort
SELECT ALL 7 - - 34
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7109
SELECT ALL COUNT( 93 ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL COUNT ( 93 ) / - 48
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL + CAST( NULL AS SIGNED ) - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL + CAST ( NULL AS INTEGER ) - - + COUNT ( * )
----
NULL

query I rowsort
SELECT 24 * - 28 AS col1
----
-672

query I rowsort
SELECT DISTINCT + 70 * + - CASE - + 45 WHEN + 31 THEN + 24 + - COALESCE ( + 58, + 81 * - 34 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT SUM( DISTINCT - COALESCE ( + ( - 59 ), + - COALESCE ( - ( + 25 ), - 11 ) + - 31, + 45 ) ) + 10 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7113
SELECT SUM ( DISTINCT - COALESCE ( + ( - 59 ), + - COALESCE ( - ( + 25 ), - 11 ) + - 31, + 45 ) ) + 10 AS col0
----
69

query I rowsort
SELECT 37 * 5 AS col2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7115
SELECT COUNT( * ) + - + ( - 68 ) + 12 / + 40 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT COUNT ( * ) + - + ( - 68 ) + 12 / + 40 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 14 * - 79 * - - 50 AS col0, 19 AS col1
----
-55300
19

query I rowsort
SELECT 24 * 12
----
288

query I rowsort
SELECT DISTINCT + + ( + 52 ) * - 72 col1
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT COUNT( * ) * 12
----
12

skipif mysql # not compatible
query I rowsort label-7119
SELECT COUNT ( * ) * 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT - 40 + ( + 34 ) DIV + + 88
----
-40

skipif mysql # not compatible
query I rowsort label-7120
SELECT - 40 + ( + 34 ) / + + 88
----
-40

query I rowsort
SELECT - 54 * NULLIF ( 61, + 25 ) col0
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT + - COUNT( - 53 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7122
SELECT + - COUNT ( - 53 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + COUNT( * ) * - 93 + + 26
----
-67

skipif mysql # not compatible
query I rowsort label-7123
SELECT + COUNT ( * ) * - 93 + + 26
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7124
SELECT + + 96 / + + 78 + + + CASE + - COUNT( * ) WHEN + 30 THEN NULL ELSE - 88 END + + NULLIF ( - + 5, - + 62 * + 59 / 66 / + CASE + + 3 WHEN 11 THEN 82 + + + SUM( ALL + 85 ) * 7 * + 23 WHEN ( + 20 ) THEN - COUNT( * ) - 41 END + 86 + - 11 ) - - 17 + - ( 90 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT + + 96 / + + 78 + + + CASE + - COUNT ( * ) WHEN + 30 THEN NULL ELSE - 88 END + + NULLIF ( - + 5, - + 62 * + 59 / 66 / + CASE + + 3 WHEN 11 THEN 82 + + + SUM ( ALL + 85 ) * 7 * + 23 WHEN ( + 20 ) THEN - COUNT ( * ) - 41 END + 86 + - 11 ) - - 17 + - ( 90 ) / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 87 AS col2, + 98 * + 92
----
-87
9016

query I rowsort
SELECT ALL 69 + - 18
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT DISTINCT + 12 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT + 12 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( 0 ) * 4
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7129
SELECT ALL + - 7 * CASE + 5 WHEN ( 98 ) / - ( - 16 ) * 10 THEN + + 3 + 15 + + 46 * - 61 ELSE NULL END + - + CAST( - 56 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + - 7 * CASE + 5 WHEN ( 98 ) / - ( - 16 ) * 10 THEN + + 3 + 15 + + 46 * - 61 ELSE NULL END + - + CAST ( - 56 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7130
SELECT + CASE - - COUNT( * ) WHEN - 91 DIV 53 THEN 84 DIV ( - COALESCE ( - + 99, 50, + + 69 + + 71 ) ) WHEN - - COUNT( * ) THEN 88 ELSE NULL END * 84 + - 92 + 97 * + - COUNT( * ) - - 21 AS col0
----
7224

skipif mysql # not compatible
query I rowsort label-7130
SELECT + CASE - - COUNT ( * ) WHEN - 91 / 53 THEN 84 / ( - COALESCE ( - + 99, 50, + + 69 + + 71 ) ) WHEN - - COUNT ( * ) THEN 88 ELSE NULL END * 84 + - 92 + 97 * + - COUNT ( * ) - - 21 AS col0
----
7224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7131
SELECT MAX( DISTINCT + 49 ) * - 71 * - + COUNT( * ) DIV + COUNT( * )
----
3479

skipif mysql # not compatible
query I rowsort label-7131
SELECT MAX ( DISTINCT + 49 ) * - 71 * - + COUNT ( * ) / + COUNT ( * )
----
3479

query II rowsort
SELECT 9 + - 47 col0, 88 AS col0
----
-38
88

query II rowsort
SELECT + 55 AS col0, 11 AS col0
----
55
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT NULLIF ( 36, - MAX( 62 ) * - 9 + 54 ) + - 94 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7134
SELECT NULLIF ( 36, - MAX ( 62 ) * - 9 + 54 ) + - 94 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7135
SELECT 93 * 54 * + 70 * + 21 AS col2, NULLIF ( ( + - 55 ), + + 53 / + COUNT( * ) ) AS col1
----
7382340
-55

skipif mysql # not compatible
query II rowsort label-7135
SELECT 93 * 54 * + 70 * + 21 AS col2, NULLIF ( ( + - 55 ), + + 53 / + COUNT ( * ) ) AS col1
----
7382340
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT ALL 19 * CAST( NULL AS SIGNED ) * - 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL 19 * CAST ( NULL AS INTEGER ) * - 56 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7137
SELECT 99 DIV - CAST( 84 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7137
SELECT 99 / - CAST ( 84 AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT DISTINCT 31 DIV + - 8 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT 31 / + - 8 AS col0
----
-3

query I rowsort
SELECT DISTINCT 54 - - 86 col0
----
140

query II rowsort
SELECT ALL 19, - 87 AS col2
----
19
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT - MAX( ALL 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-7141
SELECT - MAX ( ALL 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT ALL CASE WHEN NULL NOT IN ( 71, - COALESCE ( - + ( + 72 ), + 33, + 39 + + CAST( - COUNT( DISTINCT + + 24 ) AS SIGNED ) + - 18 ) * - 75 / - - 62, + 38 ) THEN NULL WHEN + 11 / - 81 * ( + ( 55 ) ) / + - 61 + 55 * + + ( - ( 87 ) ) / - COUNT( * ) IS NOT NULL THEN 54 + + 92 ELSE 57 END * 42
----
6132

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL CASE WHEN NULL NOT IN ( 71, - COALESCE ( - + ( + 72 ), + 33, + 39 + + CAST ( - COUNT ( DISTINCT + + 24 ) AS INTEGER ) + - 18 ) * - 75 / - - 62, + 38 ) THEN NULL WHEN + 11 / - 81 * ( + ( 55 ) ) / + - 61 + 55 * + + ( - ( 87 ) ) / - COUNT ( * ) IS NOT NULL THEN 54 + + 92 ELSE 57 END * 42
----
6132

onlyif mysql # aggregate syntax: 
query II rowsort label-7143
SELECT 59 col1, COUNT( * ) col1
----
59
1

skipif mysql # not compatible
query II rowsort label-7143
SELECT 59 col1, COUNT ( * ) col1
----
59
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT CAST( NULL AS SIGNED ) * CASE - 8 WHEN AVG ( ALL 92 ) * + 73 + - COUNT( * ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7144
SELECT CAST ( NULL AS INTEGER ) * CASE - 8 WHEN AVG ( ALL 92 ) * + 73 + - COUNT ( * ) THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7145
SELECT - COUNT( * ), CAST( CASE CAST( 41 AS DECIMAL ) WHEN + 20 - COALESCE ( - 25, + ( + - CASE - SUM( - 63 ) WHEN - 85 THEN 41 + + + 12 WHEN 52 THEN + - 13 * + 55 * - 80 WHEN - 22 * CAST( - + CAST( + 18 AS SIGNED ) AS SIGNED ) * + 44 + + 63 THEN - 53 / NULLIF ( CASE 25 WHEN ( 20 ) THEN + 92 ELSE NULL END, - 90 + ( 2 ) ) ELSE 50 / + 90 END ), - 12 ) + 52 THEN NULL WHEN - 57 / NULLIF ( - ( - COUNT( * ) ), - 34 ) THEN + AVG ( - CAST( NULL AS SIGNED ) ) ELSE NULL END AS SIGNED ) + 81 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7145
SELECT - COUNT ( * ), CAST ( CASE CAST ( 41 AS REAL ) WHEN + 20 - COALESCE ( - 25, + ( + - CASE - SUM ( - 63 ) WHEN - 85 THEN 41 + + + 12 WHEN 52 THEN + - 13 * + 55 * - 80 WHEN - 22 * CAST ( - + CAST ( + 18 AS INTEGER ) AS INTEGER ) * + 44 + + 63 THEN - 53 / NULLIF ( CASE 25 WHEN ( 20 ) THEN + 92 ELSE NULL END, - 90 + ( 2 ) ) ELSE 50 / + 90 END ), - 12 ) + 52 THEN NULL WHEN - 57 / NULLIF ( - ( - COUNT ( * ) ), - 34 ) THEN + AVG ( - CAST ( NULL AS INTEGER ) ) ELSE NULL END AS INTEGER ) + 81 col1
----
-1
NULL

query II rowsort
SELECT ALL 86 AS col2, 13 + 41
----
86
54

onlyif mysql # DIV for integer division: 
query II rowsort label-7147
SELECT DISTINCT 39 AS col2, 65 DIV - 81
----
39
0

skipif mysql # not compatible
query II rowsort label-7147
SELECT DISTINCT 39 AS col2, 65 / - 81
----
39
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7148
SELECT CAST( NULL AS SIGNED ), - 32 * + MIN( ALL 61 ) * + - 86 * + 77 AS col1
----
NULL
12926144

skipif mysql # not compatible
query II rowsort label-7148
SELECT CAST ( NULL AS INTEGER ), - 32 * + MIN ( ALL 61 ) * + - 86 * + 77 AS col1
----
NULL
12926144

query II rowsort
SELECT ALL - 79 * 98 * + ( + 92 ) AS col1, 11 + + - 18 * + 58 AS col0
----
-712264
-1033

query I rowsort
SELECT DISTINCT - 68 + + 39
----
-29

query I rowsort
SELECT - - ( 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + COUNT( * ) * + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7152
SELECT + COUNT ( * ) * + 37 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7153
SELECT ALL + 35 + + CAST( + - 60 AS SIGNED ) * 57 DIV + MAX( ALL + + 79 )
----
-8

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + 35 + + CAST ( + - 60 AS INTEGER ) * 57 / + MAX ( ALL + + 79 )
----
-8

query I rowsort
SELECT + 77 + + 63
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - + COUNT( * ) * NULLIF ( + 3, + MIN( - 33 ) ) + - 18 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7155
SELECT - + COUNT ( * ) * NULLIF ( + 3, + MIN ( - 33 ) ) + - 18 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7156
SELECT DISTINCT - CAST( - - 94 AS SIGNED ) * - 64 + + 83 AS col1
----
6099

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT - CAST ( - - 94 AS INTEGER ) * - 64 + + 83 AS col1
----
6099

query I rowsort
SELECT - 74 * + + NULLIF ( - 81, - 11 ) AS col2
----
5994

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + COUNT( 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7158
SELECT + COUNT ( 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT - 28 * 78 + + + COUNT( ALL + + 49 ) col0
----
-2183

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT - 28 * 78 + + + COUNT ( ALL + + 49 ) col0
----
-2183

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT - 41 + - 71 - - NULLIF ( - + COUNT( * ), + 31 * COUNT( + 94 ) * - 24 ) col2
----
-113

skipif mysql # not compatible
query I rowsort label-7160
SELECT - 41 + - 71 - - NULLIF ( - + COUNT ( * ), + 31 * COUNT ( + 94 ) * - 24 ) col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL 42 * - NULLIF ( + COUNT( ALL + 18 ), 19 + + 42 + - 39 * 98 * + - CASE - 94 WHEN + ( + 62 ) + CASE - + COUNT( * ) WHEN + COUNT( * ) + + + 91 THEN NULL ELSE 18 END THEN NULL ELSE ( 49 ) END ) * - + 32 + - 56 + - - 29 + 13
----
1330

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL 42 * - NULLIF ( + COUNT ( ALL + 18 ), 19 + + 42 + - 39 * 98 * + - CASE - 94 WHEN + ( + 62 ) + CASE - + COUNT ( * ) WHEN + COUNT ( * ) + + + 91 THEN NULL ELSE 18 END THEN NULL ELSE ( 49 ) END ) * - + 32 + - 56 + - - 29 + 13
----
1330

onlyif mysql # DIV for integer division: 
query II rowsort label-7162
SELECT + + 22 AS col1, - ( - 21 ) DIV - 76 AS col2
----
22
0

skipif mysql # not compatible
query II rowsort label-7162
SELECT + + 22 AS col1, - ( - 21 ) / - 76 AS col2
----
22
0

query I rowsort
SELECT - 3 * 49
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + 20 - NULLIF ( - COUNT( * ), 70 * AVG ( DISTINCT 40 ) + - 7 )
----
21

skipif mysql # not compatible
query I rowsort label-7164
SELECT + 20 - NULLIF ( - COUNT ( * ), 70 * AVG ( DISTINCT 40 ) + - 7 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL + 88 * COUNT( * ) * + 2 AS col2
----
176

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL + 88 * COUNT ( * ) * + 2 AS col2
----
176

query II rowsort
SELECT DISTINCT + CASE - 70 WHEN - ( - 44 ) THEN NULL ELSE - 72 END AS col2, 72 + + 8 + - - 16 * 75 AS col0
----
-72
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL ( - COUNT( * ) ) * + 41 - - 37 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL ( - COUNT ( * ) ) * + 41 - - 37 AS col2
----
-4

query I rowsort
SELECT DISTINCT 84 * + 87 - - CASE + 38 WHEN - - 81 THEN + 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT + NULLIF ( + 8, + - 12 * + 25 * + - 88 + + + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT + NULLIF ( + 8, + - 12 * + 25 * + - 88 + + + COUNT ( * ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7170
SELECT - 60 + - 90 AS col1, + MAX( - CASE - ( - + CAST( NULL AS SIGNED ) ) WHEN + 66 + 86 THEN - 10 ELSE - 63 END ) DIV + 90
----
-150
0

skipif mysql # not compatible
query II rowsort label-7170
SELECT - 60 + - 90 AS col1, + MAX ( - CASE - ( - + CAST ( NULL AS INTEGER ) ) WHEN + 66 + 86 THEN - 10 ELSE - 63 END ) / + 90
----
-150
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7171
SELECT SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7172
SELECT - ( + 71 ) + + + COUNT( * ) * + 18 DIV 26, - COUNT( * ) - + 89 AS col2
----
-71
-90

skipif mysql # not compatible
query II rowsort label-7172
SELECT - ( + 71 ) + + + COUNT ( * ) * + 18 / 26, - COUNT ( * ) - + 89 AS col2
----
-71
-90

query II rowsort
SELECT - 48 * - 79 AS col1, 51 * - 93
----
3792
-4743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT ( - 18 ) * + ( + 32 ) + - ( + 56 ) + + + CAST( - - SUM( ALL 25 ) AS SIGNED ) AS col0
----
-607

skipif mysql # not compatible
query I rowsort label-7174
SELECT ( - 18 ) * + ( + 32 ) + - ( + 56 ) + + + CAST ( - - SUM ( ALL 25 ) AS INTEGER ) AS col0
----
-607

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + 72 - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-7175
SELECT + 72 - COUNT ( * )
----
71

query I rowsort
SELECT - 42 + - + ( - 63 )
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7177
SELECT + 7 DIV - 54 AS col0, + CAST( NULL AS SIGNED ) col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7177
SELECT + 7 / - 54 AS col0, + CAST ( NULL AS INTEGER ) col0
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT ALL 12 DIV 25 * + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL 12 / 25 * + 23 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7179
SELECT DISTINCT ( - COALESCE ( MIN( ALL + - CAST( NULL AS SIGNED ) ), - ( + + 1 ) DIV - + 12 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT ( - COALESCE ( MIN ( ALL + - CAST ( NULL AS INTEGER ) ), - ( + + 1 ) / - + 12 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + COUNT( * ) + + 83 - - 64 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-7180
SELECT + COUNT ( * ) + + 83 - - 64 AS col1
----
148

query I rowsort
SELECT ALL - COALESCE ( ( + 91 ), - 43 ) * 32
----
-2912

query I rowsort
SELECT DISTINCT + 72 + - 94 + + + 46 + + 14 AS col1
----
38

query I rowsort
SELECT ALL + 50 + - - ( + 13 ) AS col2
----
63

query I rowsort
SELECT + + 44 + - + 21
----
23

query I rowsort
SELECT ALL - 39 + 30
----
-9

query I rowsort
SELECT + - 69 + - 96 + + 41 + + 93
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT + ( - MAX( 29 ) ) + COUNT( * ) * 10 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + ( - MAX ( 29 ) ) + COUNT ( * ) * 10 AS col2
----
-19

query II rowsort
SELECT + 75 * - 87 col0, - 70
----
-6525
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT + 56 + - COUNT( * ) * 22
----
34

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT + 56 + - COUNT ( * ) * 22
----
34

query I rowsort
SELECT ALL - 23 + 2 + + - 98
----
-119

query I rowsort
SELECT + - 17 * - 62 * + ( 52 ) AS col2
----
54808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7192
SELECT ALL 40 DIV + 51 + + COUNT( * ) - + 31 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL 40 / + 51 + + COUNT ( * ) - + 31 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7193
SELECT DISTINCT - 52 DIV - ( + + 60 ) - + 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - 52 / - ( + + 60 ) - + 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + 48 * + + COUNT( DISTINCT + + 98 ) + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7194
SELECT + 48 * + + COUNT ( DISTINCT + + 98 ) + + COUNT ( * )
----
49

query I rowsort
SELECT + - 90 * 28 AS col2
----
-2520

query I rowsort
SELECT DISTINCT 55 * - 37 * - 11 AS col1
----
22385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7197
SELECT ALL + COALESCE ( + 37, - + 42 * - CAST( NULL AS SIGNED ) + + 14 DIV - - COALESCE ( + + NULLIF ( 91, 36 + 49 - - - MAX( 73 ) ), + CASE 43 WHEN + 5 * 93 THEN ( - - 67 ) WHEN + COUNT( * ) THEN 84 + + - ( - 27 ) + - - 2 * 10 + - SUM( - 9 ) END, 17 ) * COALESCE ( MIN( ALL + 55 ), + 14 * + 5 - - 93 ) + 63 DIV + 92 ) DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + COALESCE ( + 37, - + 42 * - CAST ( NULL AS INTEGER ) + + 14 / - - COALESCE ( + + NULLIF ( 91, 36 + 49 - - - MAX ( 73 ) ), + CASE 43 WHEN + 5 * 93 THEN ( - - 67 ) WHEN + COUNT ( * ) THEN 84 + + - ( - 27 ) + - - 2 * 10 + - SUM ( - 9 ) END, 17 ) * COALESCE ( MIN ( ALL + 55 ), + 14 * + 5 - - 93 ) + 63 / + 92 ) / 36
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT - 85 DIV + - 54
----
1

skipif mysql # not compatible
query I rowsort label-7198
SELECT - 85 / + - 54
----
1

query I rowsort
SELECT - 2 + 68 + + 57 + 97 + + - 55 + ( - + 29 )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7200
SELECT ALL + 83 col2, - CAST( NULL AS SIGNED ) * + 57 / 14 * + 3
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7200
SELECT ALL + 83 col2, - CAST ( NULL AS INTEGER ) * + 57 / 14 * + 3
----
83
NULL

query I rowsort
SELECT - 31 * - - 0 col2
----
0

query I rowsort
SELECT DISTINCT - ( - 23 ) * - + 7
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL - COUNT( * ) * - 24 + - 75
----
-51

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - COUNT ( * ) * - 24 + - 75
----
-51

query I rowsort
SELECT NULLIF ( + 46, 15 + + 76 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT - MAX( ALL - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-7205
SELECT - MAX ( ALL - 86 )
----
86

query I rowsort
SELECT ALL ( - 59 ) col0
----
-59

query I rowsort
SELECT ALL + 9 * COALESCE ( - - 49, 24, - 63 ) * + 46 + + - 0 AS col1
----
20286

query II rowsort
SELECT - + 10, + 53 * - 73 + 42 AS col0
----
-10
-3827

onlyif mysql # aggregate syntax: 
query II rowsort label-7209
SELECT ALL - COUNT( DISTINCT ( - 23 ) ) AS col0, SUM( 79 ) - - + 43 AS col2
----
-1
122

skipif mysql # not compatible
query II rowsort label-7209
SELECT ALL - COUNT ( DISTINCT ( - 23 ) ) AS col0, SUM ( 79 ) - - + 43 AS col2
----
-1
122

query I rowsort
SELECT ALL + + 92 + 87 * + 16 + + - 0
----
1484

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7211
SELECT - 60 DIV - 16 - + + 8, 40 + 13 - + COUNT( * ) AS col1
----
-5
52

skipif mysql # not compatible
query II rowsort label-7211
SELECT - 60 / - 16 - + + 8, 40 + 13 - + COUNT ( * ) AS col1
----
-5
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT - COALESCE ( NULLIF ( + 74, - COUNT( * ) ), - 66 + + + 46 )
----
-74

skipif mysql # not compatible
query I rowsort label-7212
SELECT - COALESCE ( NULLIF ( + 74, - COUNT ( * ) ), - 66 + + + 46 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT - CAST( + 90 AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7213
SELECT - CAST ( + 90 AS INTEGER ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT + 71, COUNT( * ) AS col0
----
71
1

skipif mysql # not compatible
query II rowsort label-7214
SELECT + 71, COUNT ( * ) AS col0
----
71
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7215
SELECT ALL + - COUNT( * ) DIV + 92 * + + COUNT( * ) + + 76
----
76

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL + - COUNT ( * ) / + 92 * + + COUNT ( * ) + + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT 36 - 36 * - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7216
SELECT 36 - 36 * - - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT + 24 + 69 * + COUNT( DISTINCT + - 94 ) + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + 24 + 69 * + COUNT ( DISTINCT + - 94 ) + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL COUNT( ALL 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL COUNT ( ALL 17 )
----
1

query I rowsort
SELECT ALL 92 - 11 AS col0
----
81

query I rowsort
SELECT - - 15 col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7221
SELECT ALL + COUNT( * ), CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7221
SELECT ALL + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT NULLIF ( COUNT( * ), 48 ) * - + COUNT( * ) + - COALESCE ( - 45, + COUNT( * ) ) * - - 91 AS col1
----
4094

skipif mysql # not compatible
query I rowsort label-7222
SELECT NULLIF ( COUNT ( * ), 48 ) * - + COUNT ( * ) + - COALESCE ( - 45, + COUNT ( * ) ) * - - 91 AS col1
----
4094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT - CAST( + + 25 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7223
SELECT - CAST ( + + 25 AS INTEGER ) AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7224
SELECT CAST( NULL AS DECIMAL ) + - 57 - SUM( - 9 ) * - - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT CAST ( NULL AS REAL ) + - 57 - SUM ( - 9 ) * - - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT 97 * + COUNT( * ) * - + CAST( + + 6 AS SIGNED ) + - 10 col1
----
-592

skipif mysql # not compatible
query I rowsort label-7225
SELECT 97 * + COUNT ( * ) * - + CAST ( + + 6 AS INTEGER ) + - 10 col1
----
-592

query I rowsort
SELECT NULLIF ( - 62, + 35 ) * 93
----
-5766

query I rowsort
SELECT 44 * - 21
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT 47 + + COUNT( * ) + - - COUNT( * ) col2
----
49

skipif mysql # not compatible
query I rowsort label-7228
SELECT 47 + + COUNT ( * ) + - - COUNT ( * ) col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT ALL - 53 + CAST( 29 AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL - 53 + CAST ( 29 AS INTEGER ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT ALL - COUNT( DISTINCT - 10 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL - COUNT ( DISTINCT - 10 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7231
SELECT ALL NULLIF ( NULLIF ( - COUNT( * ), + 38 ), - + CASE + 77 WHEN + ( - 58 ) THEN + + 47 WHEN - 86 THEN NULL END / - - COALESCE ( + - 48, - COUNT( * ) ) ) + + 41 - + AVG ( ALL - + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL NULLIF ( NULLIF ( - COUNT ( * ), + 38 ), - + CASE + 77 WHEN + ( - 58 ) THEN + + 47 WHEN - 86 THEN NULL END / - - COALESCE ( + - 48, - COUNT ( * ) ) ) + + 41 - + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7232
SELECT DISTINCT 60 + 79 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT 60 + 79 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL - 26 + + 46 - + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL - 26 + + 46 - + COUNT ( * ) AS col0
----
19

query II rowsort
SELECT ALL 94 + + - 45 col0, + 35
----
49
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7235
SELECT CAST( NULL AS SIGNED ) + - - 68 AS col1, - 37 AS col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-7235
SELECT CAST ( NULL AS INTEGER ) + - - 68 AS col1, - 37 AS col1
----
NULL
-37

query I rowsort
SELECT ALL - COALESCE ( - 83, + 15 + - 22, 35 * 43 + + - 32 + + ( - + 9 ) * - 93 - 32 ) + + 80 AS col2
----
163

query I rowsort
SELECT 90 * + + 69 + + + 8 AS col2
----
6218

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT 81 + - COUNT( * ) + - 26 col2
----
54

skipif mysql # not compatible
query I rowsort label-7238
SELECT 81 + - COUNT ( * ) + - 26 col2
----
54

query I rowsort
SELECT + 13 - + ( + 15 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT + 57 + 79 - + ( + 42 ) * + 86 + 6 * 1 AS col2, - COUNT( ALL - - 72 ) col2
----
-3470
-1

skipif mysql # not compatible
query II rowsort label-7240
SELECT + 57 + 79 - + ( + 42 ) * + 86 + 6 * 1 AS col2, - COUNT ( ALL - - 72 ) col2
----
-3470
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7241
SELECT - 66 * - 76 * - ( 41 ) + + 4 - + + 99 + + 22 * - 90 + + 37 DIV - 98 * COUNT( * ) AS col2
----
-207731

skipif mysql # not compatible
query I rowsort label-7241
SELECT - 66 * - 76 * - ( 41 ) + + 4 - + + 99 + + 22 * - 90 + + 37 / - 98 * COUNT ( * ) AS col2
----
-207731

query I rowsort
SELECT 50 + + 93 AS col2
----
143

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7243
SELECT - ( 44 ) + 73 + - COALESCE ( + CASE + 10 WHEN - 39 THEN 45 WHEN 33 * + 66 THEN + - 6 ELSE NULL END, + ( + 56 ), + + 63 DIV + 94 * + 70 * 51, CAST( + 15 AS SIGNED ) * - - 17 * + - 68, + ( 62 ) + + + 86 * + CAST( NULL AS SIGNED ) )
----
-27

skipif mysql # not compatible
query I rowsort label-7243
SELECT - ( 44 ) + 73 + - COALESCE ( + CASE + 10 WHEN - 39 THEN 45 WHEN 33 * + 66 THEN + - 6 ELSE NULL END, + ( + 56 ), + + 63 / + 94 * + 70 * 51, CAST ( + 15 AS INTEGER ) * - - 17 * + - 68, + ( 62 ) + + + 86 * + CAST ( NULL AS INTEGER ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + MAX( + 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7244
SELECT + MAX ( + 21 ) AS col1
----
21

query II rowsort
SELECT 43 + - + 19 AS col2, 94 AS col2
----
24
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT + COUNT( * ) + - MAX( - 98 )
----
99

skipif mysql # not compatible
query I rowsort label-7246
SELECT + COUNT ( * ) + - MAX ( - 98 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT CAST( NULL AS SIGNED ) + 35 * - 88 + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT CAST ( NULL AS INTEGER ) + 35 * - 88 + + 90
----
NULL

query I rowsort
SELECT 22 * + + 17 AS col0
----
374

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL 26 * + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL 26 * + + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT - SUM( ALL COALESCE ( 20, + 3 + + 60 ) ) DIV - + 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT - SUM ( ALL COALESCE ( 20, + 3 + + 60 ) ) / - + 93 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7251
SELECT DISTINCT + 52 DIV + 76 col1, + CAST( NULL AS SIGNED ) DIV + 1 + + + 52 + ( + - 16 ) DIV - 43 * COUNT( * ) DIV - 5 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7251
SELECT DISTINCT + 52 / + 76 col1, + CAST ( NULL AS INTEGER ) / + 1 + + + 52 + ( + - 16 ) / - 43 * COUNT ( * ) / - 5 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL COUNT( * ) * + 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL COUNT ( * ) * + 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT - + CASE + - 2 WHEN - + 0 THEN + - COUNT( * ) / + CASE + - 85 WHEN 32 THEN COUNT( * ) WHEN - 51 THEN NULL WHEN - + 89 * + + COALESCE ( + + 6, 26 + + 51 - - 12 / + 16 ) * COUNT( * ) + 76 THEN NULL END WHEN 24 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT - + CASE + - 2 WHEN - + 0 THEN + - COUNT ( * ) / + CASE + - 85 WHEN 32 THEN COUNT ( * ) WHEN - 51 THEN NULL WHEN - + 89 * + + COALESCE ( + + 6, 26 + + 51 - - 12 / + 16 ) * COUNT ( * ) + 76 THEN NULL END WHEN 24 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL + COUNT( * ) * + COUNT( 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL + COUNT ( * ) * + COUNT ( 80 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT - MAX( ALL 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT - MAX ( ALL 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT COUNT( * ) * + COUNT( DISTINCT 52 )
----
1

skipif mysql # not compatible
query I rowsort label-7256
SELECT COUNT ( * ) * + COUNT ( DISTINCT 52 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT + 30 * + 72 + - - ( - COUNT( * ) ) AS col1
----
2159

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT + 30 * + 72 + - - ( - COUNT ( * ) ) AS col1
----
2159

query I rowsort
SELECT DISTINCT + 47 * 7 + + 75 AS col0
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT COUNT( * ) * ( - ( 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-7259
SELECT COUNT ( * ) * ( - ( 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL - 86 * + MAX( + 64 ) * - SUM( ALL + - 84 ) + 2 + - - 31
----
-462303

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - 86 * + MAX ( + 64 ) * - SUM ( ALL + - 84 ) + 2 + - - 31
----
-462303

query I rowsort
SELECT ALL - 37 * + - 8 + + 57
----
353

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7262
SELECT DISTINCT + AVG ( 72 ) * 32 + CAST( NULL AS DECIMAL ) * + - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT + AVG ( 72 ) * 32 + CAST ( NULL AS REAL ) * + - 55 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7263
SELECT ALL CAST( NULL AS DECIMAL ) * - + CAST( 56 AS SIGNED ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL CAST ( NULL AS REAL ) * - + CAST ( 56 AS INTEGER ) + - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT COUNT( ALL - + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7264
SELECT COUNT ( ALL - + 17 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7265
SELECT ALL CAST( NULL AS DECIMAL ) * - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL CAST ( NULL AS REAL ) * - 71 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT + 53 DIV + + 17 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7266
SELECT + 53 / + + 17 AS col2
----
3

query I rowsort
SELECT + ( - ( 66 ) ) + - 54 + - 46
----
-166

query II rowsort
SELECT DISTINCT 82 + - + 89 * 55, 21 - ( + 64 ) AS col1
----
-4813
-43

query I rowsort
SELECT ALL 41 + + 25
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT COUNT( ALL - + 36 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7270
SELECT COUNT ( ALL - + 36 ) col0
----
1

query I rowsort
SELECT ALL 11 * - - 65 AS col0
----
715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7272
SELECT ALL - 99 * - - NULLIF ( - + 74, + 83 + - + CAST( 19 AS SIGNED ) / - COUNT( * ) + - 85 ) * + + 45 + 42 AS col1, MIN( + 87 ) col1
----
329712
87

skipif mysql # not compatible
query II rowsort label-7272
SELECT ALL - 99 * - - NULLIF ( - + 74, + 83 + - + CAST ( 19 AS INTEGER ) / - COUNT ( * ) + - 85 ) * + + 45 + 42 AS col1, MIN ( + 87 ) col1
----
329712
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT ALL - + 25 DIV + + 15 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL - + 25 / + + 15 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7274
SELECT - + COUNT( * ) AS col2, 37 * 83 - + 62 * - 99 - 18
----
-1
9191

skipif mysql # not compatible
query II rowsort label-7274
SELECT - + COUNT ( * ) AS col2, 37 * 83 - + 62 * - 99 - 18
----
-1
9191

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7275
SELECT ALL + COUNT( * ) - + - 57 + 1 DIV + 58 * ( + 99 ) AS col1, + 46 * - + 5 + - - 41 col0
----
58
-189

skipif mysql # not compatible
query II rowsort label-7275
SELECT ALL + COUNT ( * ) - + - 57 + 1 / + 58 * ( + 99 ) AS col1, + 46 * - + 5 + - - 41 col0
----
58
-189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7276
SELECT - - 65 AS col2, CAST( - 76 AS SIGNED ) * 91 + - 11
----
65
-6927

skipif mysql # not compatible
query II rowsort label-7276
SELECT - - 65 AS col2, CAST ( - 76 AS INTEGER ) * 91 + - 11
----
65
-6927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT + - 44 - - CAST( + 81 AS SIGNED ) + + SUM( DISTINCT + 21 ) + - + 19 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7277
SELECT + - 44 - - CAST ( + 81 AS INTEGER ) + + SUM ( DISTINCT + 21 ) + - + 19 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7278
SELECT ALL + - CAST( NULL AS SIGNED ) - + CASE - - COUNT( * ) WHEN NULLIF ( - 55, - 44 ) THEN - + 72 END + + MIN( 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + - CAST ( NULL AS INTEGER ) - + CASE - - COUNT ( * ) WHEN NULLIF ( - 55, - 44 ) THEN - + 72 END + + MIN ( 76 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 50 * - 61 + + 57
----
-2993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT - + ( 52 ) - + + MAX( 54 ) + + 26 DIV 21 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-7280
SELECT - + ( 52 ) - + + MAX ( 54 ) + + 26 / 21 AS col2
----
-105

query I rowsort
SELECT ALL + 23 * 4 AS col1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-7282
SELECT DISTINCT 30 AS col2, + 27 * + - 59 DIV 95 DIV + 24 + 59
----
30
59

skipif mysql # not compatible
query II rowsort label-7282
SELECT DISTINCT 30 AS col2, + 27 * + - 59 / 95 / + 24 + 59
----
30
59

query I rowsort
SELECT DISTINCT - + 16 + - 69 - - 94 - + 5 * - + 53 AS col2
----
274

query I rowsort
SELECT ALL - 70 + - 51 + - - 59 + - + 45 AS col1
----
-107

query I rowsort
SELECT - 26 + - 48 - + 80 AS col1
----
-154

query II rowsort
SELECT 14 AS col0, 24 * 71 AS col1
----
14
1704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7287
SELECT 71 DIV + 26 + ( COUNT( * ) ) * - - 62
----
64

skipif mysql # not compatible
query I rowsort label-7287
SELECT 71 / + 26 + ( COUNT ( * ) ) * - - 62
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + 8 - + COUNT( * ) + - 49 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7288
SELECT + 8 - + COUNT ( * ) + - 49 AS col0
----
-42

query II rowsort
SELECT + 59, + 14 AS col2
----
59
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL - 4 * - 76 + + NULLIF ( + + CASE 33 WHEN - NULLIF ( + + 96, - - SUM( 94 ) ) THEN NULL WHEN - 35 * - 87 + 25 * + - COUNT( * ) * + - 32 THEN NULL ELSE + 76 END, + - 1 ) AS col1
----
380

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - 4 * - 76 + + NULLIF ( + + CASE 33 WHEN - NULLIF ( + + 96, - - SUM ( 94 ) ) THEN NULL WHEN - 35 * - 87 + 25 * + - COUNT ( * ) * + - 32 THEN NULL ELSE + 76 END, + - 1 ) AS col1
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7291
SELECT ALL - CASE + + 23 WHEN + CAST( NULL AS SIGNED ) * + 44 + - COUNT( * ) + - COUNT( * ) * + 26 + SUM( 3 ) + 39 THEN COUNT( * ) WHEN + 64 * 83 * - - 84 THEN COUNT( * ) END / + - 9, SUM( ALL + 90 ) + - - 96 * CASE - - CAST( NULL AS SIGNED ) WHEN + COUNT( + 42 ) + 47 THEN - ( + 52 ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL - CASE + + 23 WHEN + CAST ( NULL AS INTEGER ) * + 44 + - COUNT ( * ) + - COUNT ( * ) * + 26 + SUM ( 3 ) + 39 THEN COUNT ( * ) WHEN + 64 * 83 * - - 84 THEN COUNT ( * ) END / + - 9, SUM ( ALL + 90 ) + - - 96 * CASE - - CAST ( NULL AS INTEGER ) WHEN + COUNT ( + 42 ) + 47 THEN - ( + 52 ) END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT - COUNT( - 2 ) * 5 + COUNT( * ) + - - 45 col0
----
41

skipif mysql # not compatible
query I rowsort label-7292
SELECT - COUNT ( - 2 ) * 5 + COUNT ( * ) + - - 45 col0
----
41

query II rowsort
SELECT + 70, 25 - - 89 col1
----
70
114

query II rowsort
SELECT ( - - 21 ) AS col0, + 58
----
21
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7295
SELECT ALL + 27 * - + 59 + - + NULLIF ( + 44, MAX( DISTINCT 62 ) * CAST( NULL AS SIGNED ) * + - 44 * - 43 ), COUNT( * ) + - 21 AS col2
----
-1637
-20

skipif mysql # not compatible
query II rowsort label-7295
SELECT ALL + 27 * - + 59 + - + NULLIF ( + 44, MAX ( DISTINCT 62 ) * CAST ( NULL AS INTEGER ) * + - 44 * - 43 ), COUNT ( * ) + - 21 AS col2
----
-1637
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7296
SELECT ( + COUNT( * ) ) col2, 78 col1
----
1
78

skipif mysql # not compatible
query II rowsort label-7296
SELECT ( + COUNT ( * ) ) col2, 78 col1
----
1
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT 26 DIV 75 DIV - 43 + - - COALESCE ( 30, NULLIF ( + 82, + 25 ), - ( 41 ), + + CASE - COUNT( * ) WHEN + - 8 THEN - COUNT( * ) * + + ( 31 ) + - 26 ELSE 33 END )
----
30

skipif mysql # not compatible
query I rowsort label-7297
SELECT 26 / 75 / - 43 + - - COALESCE ( 30, NULLIF ( + 82, + 25 ), - ( 41 ), + + CASE - COUNT ( * ) WHEN + - 8 THEN - COUNT ( * ) * + + ( 31 ) + - 26 ELSE 33 END )
----
30

query I rowsort
SELECT + ( + 27 ) * - 89
----
-2403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT DISTINCT + COALESCE ( 63, 59 + ( - 59 ), - CAST( NULL AS SIGNED ) ) * 59
----
3717

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT + COALESCE ( 63, 59 + ( - 59 ), - CAST ( NULL AS INTEGER ) ) * 59
----
3717

query I rowsort
SELECT DISTINCT + 17 * - 84 - - 93
----
-1335

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7301
SELECT + CASE 8 WHEN ( - 41 ) / - - 11 + + + ( + CAST( + - 41 AS DECIMAL ) ) * - 18 - + ( - 53 ) THEN + 22 + + 60 - 44 * - - 4 + + COUNT( * ) + 71 * - 0 - 57 END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT + CASE 8 WHEN ( - 41 ) / - - 11 + + + ( + CAST ( + - 41 AS REAL ) ) * - 18 - + ( - 53 ) THEN + 22 + + 60 - 44 * - - 4 + + COUNT ( * ) + 71 * - 0 - 57 END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7302
SELECT ALL + + ( COUNT( * ) ), CAST( - + 88 AS SIGNED ) AS col1
----
1
-88

skipif mysql # not compatible
query II rowsort label-7302
SELECT ALL + + ( COUNT ( * ) ), CAST ( - + 88 AS INTEGER ) AS col1
----
1
-88

query I rowsort
SELECT ALL - 93 * - 57 - - + 9
----
5310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7304
SELECT - + 90 * + - 81 * ( CAST( 53 AS SIGNED ) )
----
386370

skipif mysql # not compatible
query I rowsort label-7304
SELECT - + 90 * + - 81 * ( CAST ( 53 AS INTEGER ) )
----
386370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7305
SELECT ALL ( CAST( - COUNT( * ) AS SIGNED ) ) DIV + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL ( CAST ( - COUNT ( * ) AS INTEGER ) ) / + 69 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - 15 + - 12 + + - 79 * + COUNT( * ) * + 54 * ( 97 )
----
-413829

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 15 + - 12 + + - 79 * + COUNT ( * ) * + 54 * ( 97 )
----
-413829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT + 85 * + + 83 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT + 85 * + + 83 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL + SUM( DISTINCT + CASE - 41 WHEN - + 68 THEN - - 1 * + CASE + - 56 WHEN + - 39 THEN NULL ELSE + 65 END + - 23 * + + 91 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL + SUM ( DISTINCT + CASE - 41 WHEN - + 68 THEN - - 1 * + CASE + - 56 WHEN + - 39 THEN NULL ELSE + 65 END + - 23 * + + 91 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7309
SELECT + 42 + CAST( - 49 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-7309
SELECT + 42 + CAST ( - 49 AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT 18 * - 96 + - COUNT( ALL - - 14 ) + + 90 - + 58 col1, - 40 col0
----
-1697
-40

skipif mysql # not compatible
query II rowsort label-7310
SELECT 18 * - 96 + - COUNT ( ALL - - 14 ) + + 90 - + 58 col1, - 40 col0
----
-1697
-40

query I rowsort
SELECT DISTINCT - 2 * + + 75 * 63 + + - 18 AS col1
----
-9468

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT DISTINCT 30 * - - COUNT( * ) * - 31
----
-930

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT 30 * - - COUNT ( * ) * - 31
----
-930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT + 69 / - 8 - - - 27 + CAST( NULL AS SIGNED ) * + COUNT( * ) + ( + + COALESCE ( + 38, 42 ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT + 69 / - 8 - - - 27 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + ( + + COALESCE ( + 38, 42 ) ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 43 * 58 + 43 AS col1
----
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL - MIN( DISTINCT + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - MIN ( DISTINCT + 76 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT + + CAST( 95 AS SIGNED ) + - 89
----
6

skipif mysql # not compatible
query I rowsort label-7316
SELECT + + CAST ( 95 AS INTEGER ) + - 89
----
6

query II rowsort
SELECT + 1 * + 54 AS col2, 33 * - - 51 + + 15 + - 19 * - 32
----
54
2306

query III rowsort
SELECT 27 AS col2, - 26 + + 25 + + 87 AS col1, + 80 - + 73
----
27
86
7

query I rowsort
SELECT - + 33 + - 20 + - ( + 60 ) * 83 AS col1
----
-5033

query I rowsort
SELECT ALL 88 + ( - 77 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7321
SELECT - 28 + 52 AS col2, - 18 * - + 73 * + ( COUNT( * ) ) AS col1
----
24
1314

skipif mysql # not compatible
query II rowsort label-7321
SELECT - 28 + 52 AS col2, - 18 * - + 73 * + ( COUNT ( * ) ) AS col1
----
24
1314

query I rowsort
SELECT - 8 + + 63
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7323
SELECT ALL 84 + - 50 + CASE + + CASE - 50 WHEN - MIN( - 41 ) / - - 33 * 20 THEN NULL WHEN + 93 + - - AVG ( ALL - 43 ) THEN NULL WHEN + + 39 THEN NULL ELSE COUNT( * ) - + + CAST( NULL AS DECIMAL ) + + 22 / - COUNT( * ) END WHEN + CAST( NULL AS SIGNED ) THEN COUNT( * ) * + 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL 84 + - 50 + CASE + + CASE - 50 WHEN - MIN ( - 41 ) / - - 33 * 20 THEN NULL WHEN + 93 + - - AVG ( ALL - 43 ) THEN NULL WHEN + + 39 THEN NULL ELSE COUNT ( * ) - + + CAST ( NULL AS REAL ) + + 22 / - COUNT ( * ) END WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 88 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT DISTINCT COUNT( * ) + + 67 AS col0, - SUM( + 30 ) AS col0
----
68
-30

skipif mysql # not compatible
query II rowsort label-7324
SELECT DISTINCT COUNT ( * ) + + 67 AS col0, - SUM ( + 30 ) AS col0
----
68
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT ALL + 39 + - - COUNT( * ) * + 66 * COUNT( * ) * - SUM( DISTINCT 95 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL + 39 + - - COUNT ( * ) * + 66 * COUNT ( * ) * - SUM ( DISTINCT 95 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT ALL SUM( DISTINCT + 80 ) AS col1, + NULLIF ( - MAX( ( + 63 ) ), + 89 ) AS col0
----
80
-63

skipif mysql # not compatible
query II rowsort label-7326
SELECT ALL SUM ( DISTINCT + 80 ) AS col1, + NULLIF ( - MAX ( ( + 63 ) ), + 89 ) AS col0
----
80
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - 48 * COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-7327
SELECT - 48 * COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT ALL - ( - 58 ) * + 1
----
58

query I rowsort
SELECT ALL + 40 + - + 3 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7330
SELECT 40 / - 37 * + COUNT( * ) - 2 + - - SUM( DISTINCT + 49 ) + + CASE + MIN( + 29 ) WHEN + 83 THEN ( + 88 ) WHEN + + 16 * - - 13 + + CAST( - 69 AS SIGNED ) + 26 THEN - + MAX( - + 40 ) / + COUNT( * ) ELSE NULL END * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT 40 / - 37 * + COUNT ( * ) - 2 + - - SUM ( DISTINCT + 49 ) + + CASE + MIN ( + 29 ) WHEN + 83 THEN ( + 88 ) WHEN + + 16 * - - 13 + + CAST ( - 69 AS INTEGER ) + 26 THEN - + MAX ( - + 40 ) / + COUNT ( * ) ELSE NULL END * - 24 AS col2
----
NULL

query I rowsort
SELECT 95 * - 13 + + 12 AS col0
----
-1223

query II rowsort
SELECT ALL - ( - - 96 ), 95 + + - 18 AS col0
----
-96
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7333
SELECT DISTINCT - 50 / + CAST( NULL AS SIGNED ) AS col2, - 93 col0
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-7333
SELECT DISTINCT - 50 / + CAST ( NULL AS INTEGER ) AS col2, - 93 col0
----
NULL
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT DISTINCT - CASE - 35 WHEN + 23 THEN - + NULLIF ( - 89, ( + 52 ) ) * - 39 + MAX( DISTINCT + NULLIF ( 73, + 87 + 94 ) ) WHEN - COUNT( * ) THEN NULL ELSE - 25 END
----
25

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT - CASE - 35 WHEN + 23 THEN - + NULLIF ( - 89, ( + 52 ) ) * - 39 + MAX ( DISTINCT + NULLIF ( 73, + 87 + 94 ) ) WHEN - COUNT ( * ) THEN NULL ELSE - 25 END
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7335
SELECT ALL - COUNT( * ) * - - 36 AS col1, COALESCE ( 75, 32 ) * + - ( 48 ) + + 14 * - 11 AS col2
----
-36
-3754

skipif mysql # not compatible
query II rowsort label-7335
SELECT ALL - COUNT ( * ) * - - 36 AS col1, COALESCE ( 75, 32 ) * + - ( 48 ) + + 14 * - 11 AS col2
----
-36
-3754

query I rowsort
SELECT 68 + 48
----
116

query II rowsort
SELECT DISTINCT - 59 - - 13 AS col1, 99 + 87 + + + 3
----
-46
189

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT DISTINCT - 50 DIV + 96 * - 69 * - 86
----
0

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT - 50 / + 96 * - 69 * - 86
----
0

query I rowsort
SELECT ALL - 8 * ( 19 )
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT + COUNT( ALL 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7340
SELECT + COUNT ( ALL 38 ) AS col0
----
1

query I rowsort
SELECT 5 * + 9 AS col2
----
45

query I rowsort
SELECT + 82 + - 28 + - 47 * + + 38
----
-1732

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - 16 * COUNT( ( - 20 ) ) + 2 + - - COUNT( DISTINCT + - 78 ) * + - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - 16 * COUNT ( ( - 20 ) ) + 2 + - - COUNT ( DISTINCT + - 78 ) * + - COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT COALESCE ( - - 23, COUNT( ALL 92 ) * 30 + - 61, + + 44 ) + 38
----
61

skipif mysql # not compatible
query I rowsort label-7344
SELECT COALESCE ( - - 23, COUNT ( ALL 92 ) * 30 + - 61, + + 44 ) + 38
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT 28 * 10 + + + COUNT( * ) AS col2
----
281

skipif mysql # not compatible
query I rowsort label-7345
SELECT 28 * 10 + + + COUNT ( * ) AS col2
----
281

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL - 72 * + COUNT( * ) + - 35
----
-107

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - 72 * + COUNT ( * ) + - 35
----
-107

query I rowsort
SELECT ALL + ( + 76 ) + - 45 AS col1
----
31

query II rowsort
SELECT DISTINCT + 90 + - 91, 5 AS col2
----
-1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL MAX( DISTINCT - + 16 ) + - COUNT( * ) * - 71 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL MAX ( DISTINCT - + 16 ) + - COUNT ( * ) * - 71 AS col2
----
55

query I rowsort
SELECT 84 - - - 33 col2
----
51

query I rowsort
SELECT - 42 - - 82 * 97 + - 95 AS col0
----
7817

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT CASE COALESCE ( - + COUNT( * ), - 54, + 87 ) WHEN - ( - 81 ) THEN + + 49 * ( - + 2 ) * + + 48 ELSE - 39 * - NULLIF ( 57, 55 * 93 * COUNT( * ) + - - 46 ) END * + + 49
----
108927

skipif mysql # not compatible
query I rowsort label-7352
SELECT CASE COALESCE ( - + COUNT ( * ), - 54, + 87 ) WHEN - ( - 81 ) THEN + + 49 * ( - + 2 ) * + + 48 ELSE - 39 * - NULLIF ( 57, 55 * 93 * COUNT ( * ) + - - 46 ) END * + + 49
----
108927

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL + 40 * - - CASE 11 WHEN - + 33 / 30 THEN NULL ELSE - COUNT( * ) END
----
-40

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL + 40 * - - CASE 11 WHEN - + 33 / 30 THEN NULL ELSE - COUNT ( * ) END
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 40 * 13 * - ( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 40 * 13 * - ( - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL SUM( DISTINCT 51 ) + + 27 + MIN( ALL + 5 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL SUM ( DISTINCT 51 ) + + 27 + MIN ( ALL + 5 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT ALL COUNT( * ) * - 21 * COUNT( * ) AS col2, 96 col0
----
-21
96

skipif mysql # not compatible
query II rowsort label-7356
SELECT ALL COUNT ( * ) * - 21 * COUNT ( * ) AS col2, 96 col0
----
-21
96

query I rowsort
SELECT ALL 67 + - 72 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT ALL 78 * ( - COUNT( * ) ) AS col1, 58 * - 96 * + COUNT( * ) * 99 + - 86 * - 62 * - - COALESCE ( + COUNT( * ), + COUNT( * ) - + + CASE + - 20 WHEN - - 12 THEN + + 91 ELSE NULL END )
----
-78
-545900

skipif mysql # not compatible
query II rowsort label-7358
SELECT ALL 78 * ( - COUNT ( * ) ) AS col1, 58 * - 96 * + COUNT ( * ) * 99 + - 86 * - 62 * - - COALESCE ( + COUNT ( * ), + COUNT ( * ) - + + CASE + - 20 WHEN - - 12 THEN + + 91 ELSE NULL END )
----
-78
-545900

query II rowsort
SELECT DISTINCT 53 AS col2, - 79 AS col1
----
53
-79

query II rowsort
SELECT - 10 AS col0, 36 AS col2
----
-10
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL 31 - - + COUNT( * ) + + - 81 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL 31 - - + COUNT ( * ) + + - 81 AS col0
----
-49

query I rowsort
SELECT 27 + 79 + - 55 + - + 4 AS col2
----
47

query I rowsort
SELECT NULLIF ( - 17, - 18 * - - 88 ) + 52 col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT 76 AS col2, 72 + + 61 + 91 - 78 + 92 + - + 6 * + COUNT( * )
----
76
232

skipif mysql # not compatible
query II rowsort label-7364
SELECT 76 AS col2, 72 + + 61 + 91 - 78 + 92 + - + 6 * + COUNT ( * )
----
76
232

query I rowsort
SELECT 78 + + - 43 + + - 76 * + + 59 * + CASE - 74 WHEN + ( NULLIF ( + ( + 13 ), + 47 ) ) THEN - 26 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7366
SELECT CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) - - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) - - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL - 63 * - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - 63 * - COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + SUM( DISTINCT 37 ) col1
----
37

skipif mysql # not compatible
query I rowsort label-7368
SELECT + SUM ( DISTINCT 37 ) col1
----
37

query II rowsort
SELECT ALL - 97 AS col1, 52 * - + 25 + 19
----
-97
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT + SUM( + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7370
SELECT + SUM ( + 92 ) AS col2
----
92

query I rowsort
SELECT 71 + 27
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT COUNT( * ), - 19 col2
----
1
-19

skipif mysql # not compatible
query II rowsort label-7372
SELECT COUNT ( * ), - 19 col2
----
1
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT ALL 82 * + + COUNT( DISTINCT - 74 ) col2, 34 * COUNT( * ) AS col1
----
82
34

skipif mysql # not compatible
query II rowsort label-7373
SELECT ALL 82 * + + COUNT ( DISTINCT - 74 ) col2, 34 * COUNT ( * ) AS col1
----
82
34

query II rowsort
SELECT 14 AS col1, 65
----
14
65

query I rowsort
SELECT ALL - COALESCE ( 56, + + 75 * + + 65 ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7376
SELECT + 58 * - - 87 * - CASE - 56 WHEN - + 28 * - CAST( NULL AS SIGNED ) * - - COUNT( * ) THEN NULL WHEN - - 90 * - 36 THEN - ( 53 ) * - - 52 - + 23 WHEN - + 68 THEN NULL ELSE NULL END AS col1, + CASE - 29 WHEN - + 31 + + 7 / 88 THEN + 32 / - - 47 + + 78 + CAST( + + COUNT( * ) AS DECIMAL ) END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7376
SELECT + 58 * - - 87 * - CASE - 56 WHEN - + 28 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) THEN NULL WHEN - - 90 * - 36 THEN - ( 53 ) * - - 52 - + 23 WHEN - + 68 THEN NULL ELSE NULL END AS col1, + CASE - 29 WHEN - + 31 + + 7 / 88 THEN + 32 / - - 47 + + 78 + CAST ( + + COUNT ( * ) AS REAL ) END AS col1
----
NULL
NULL

query I rowsort
SELECT - NULLIF ( 97, 0 ) / + + 45 + - 75 + 14 + - 47 * + 11 / - CASE + - 90 WHEN - 58 + - NULLIF ( - 13, + 43 ) THEN 17 END * - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7378
SELECT + ( ( + COUNT( * ) ) ) AS col2, ( - 16 )
----
1
-16

skipif mysql # not compatible
query II rowsort label-7378
SELECT + ( ( + COUNT ( * ) ) ) AS col2, ( - 16 )
----
1
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7379
SELECT + NULLIF ( - 53, - + 74 ) DIV + ( - ( + + COUNT( * ) ) ) AS col1, 72 AS col0
----
53
72

skipif mysql # not compatible
query II rowsort label-7379
SELECT + NULLIF ( - 53, - + 74 ) / + ( - ( + + COUNT ( * ) ) ) AS col1, 72 AS col0
----
53
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL + + ( - 78 ) + + - COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL + + ( - 78 ) + + - COUNT ( * ) AS col2
----
-79

query II rowsort
SELECT DISTINCT - 71, - 42 AS col2
----
-71
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT ALL + - 47 DIV 28
----
-1

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL + - 47 / 28
----
-1

query I rowsort
SELECT ALL + 35 + + - 27 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL - - 34 + + - 10 * COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - - 34 + + - 10 * COUNT ( * ) col2
----
24

query I rowsort
SELECT + 26 * + + 18 + + + 15 + 85 AS col0
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT SUM( DISTINCT + + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7386
SELECT SUM ( DISTINCT + + 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7387
SELECT 43 - - - COUNT( * ) DIV + 38 * + 54 * + - 29 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7387
SELECT 43 - - - COUNT ( * ) / + 38 * + 54 * + - 29 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7388
SELECT ALL 37 AS col0, 66 / 6 * + CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-7388
SELECT ALL 37 AS col0, 66 / 6 * + CAST ( NULL AS INTEGER )
----
37
NULL

query I rowsort
SELECT + 42 * 15 - 25 AS col0
----
605

query I rowsort
SELECT DISTINCT + ( + 23 ) AS col1
----
23

query I rowsort
SELECT 37 + 75 - - 35 AS col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT DISTINCT SUM( + ( - CAST( + 34 AS SIGNED ) ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT SUM ( + ( - CAST ( + 34 AS INTEGER ) ) ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT COALESCE ( - + COALESCE ( + 87, + 58 * + - 11 * + 87 + + COALESCE ( - - 53, + 47, - - 97 ) * - COUNT( * ) * + 5 - 47, - CASE + - COALESCE ( 31, + NULLIF ( 92, - 46 * + ( - 57 ) + - 87 ) - 29 + + 40 + 96 + - NULLIF ( + 27, - 21 / 14 ), 2 ) WHEN + 70 THEN + ( - 90 ) * - - 57 * COUNT( * ) ELSE CAST( NULL AS SIGNED ) END ), - 10, 96 * + 58 ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT COALESCE ( - + COALESCE ( + 87, + 58 * + - 11 * + 87 + + COALESCE ( - - 53, + 47, - - 97 ) * - COUNT ( * ) * + 5 - 47, - CASE + - COALESCE ( 31, + NULLIF ( 92, - 46 * + ( - 57 ) + - 87 ) - 29 + + 40 + 96 + - NULLIF ( + 27, - 21 / 14 ), 2 ) WHEN + 70 THEN + ( - 90 ) * - - 57 * COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END ), - 10, 96 * + 58 ) col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL - NULLIF ( + COUNT( * ), 14 ) - + 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - NULLIF ( + COUNT ( * ), 14 ) - + 84 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + COUNT( * ) + + 80 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7395
SELECT + COUNT ( * ) + + 80 AS col2
----
81

query II rowsort
SELECT - 37 * + 88 col1, 36 + + 6 + - 85
----
-3256
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL COALESCE ( - 11, - COUNT( * ) ) * COUNT( * ) * + COALESCE ( - 76, - - 17 )
----
836

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL COALESCE ( - 11, - COUNT ( * ) ) * COUNT ( * ) * + COALESCE ( - 76, - - 17 )
----
836

query I rowsort
SELECT DISTINCT 18 * 77
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT DISTINCT + SUM( + - 16 ) - 88 col1
----
-104

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT + SUM ( + - 16 ) - 88 col1
----
-104

query I rowsort
SELECT ALL COALESCE ( - - 86, + 64 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT 47 * - MIN( 80 ) * + + 90
----
-338400

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT 47 * - MIN ( 80 ) * + + 90
----
-338400

query I rowsort
SELECT + ( 54 ) + + 10
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT - 47 * MIN( DISTINCT + 31 ) * - + 83
----
120931

skipif mysql # not compatible
query I rowsort label-7403
SELECT - 47 * MIN ( DISTINCT + 31 ) * - + 83
----
120931

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + 66 * - - NULLIF ( + COUNT( * ), SUM( DISTINCT - + ( 17 ) ) - + NULLIF ( 27, - + 18 ) ) - 31
----
35

skipif mysql # not compatible
query I rowsort label-7404
SELECT + 66 * - - NULLIF ( + COUNT ( * ), SUM ( DISTINCT - + ( 17 ) ) - + NULLIF ( 27, - + 18 ) ) - 31
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT ALL COUNT( * ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL COUNT ( * ) / + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT + ( + 98 ) * - COUNT( * ) + - 94 AS col1
----
-192

skipif mysql # not compatible
query I rowsort label-7406
SELECT + ( + 98 ) * - COUNT ( * ) + - 94 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL + CASE - + MAX( ALL 72 ) WHEN COALESCE ( 55, + + 98 + - COUNT( * ), - + 64 ) THEN + 22 * + 10 + COUNT( * ) - + 16 + + - SUM( ALL - 22 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + CASE - + MAX ( ALL 72 ) WHEN COALESCE ( 55, + + 98 + - COUNT ( * ), - + 64 ) THEN + 22 * + 10 + COUNT ( * ) - + 16 + + - SUM ( ALL - 22 ) END AS col1
----
NULL

query I rowsort
SELECT + 95 * NULLIF ( - 22, 64 ) + - 47 AS col1
----
-2137

onlyif mysql # DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT 61 * 56 * - 89 + - + 12 + CASE + - 52 WHEN + 39 THEN NULL ELSE + 83 END DIV 31 AS col0
----
-304034

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT 61 * 56 * - 89 + - + 12 + CASE + - 52 WHEN + 39 THEN NULL ELSE + 83 END / 31 AS col0
----
-304034

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT + COUNT( * ) * - 47 + - 87
----
-134

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + COUNT ( * ) * - 47 + - 87
----
-134

query I rowsort
SELECT + - ( - 46 ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT - CASE WHEN CASE AVG ( - CAST( NULL AS SIGNED ) ) WHEN - - 59 THEN NULL WHEN + ( + 32 ) THEN 1 * + 28 END IS NULL THEN NULL ELSE - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT - CASE WHEN CASE AVG ( - CAST ( NULL AS INTEGER ) ) WHEN - - 59 THEN NULL WHEN + ( + 32 ) THEN 1 * + 28 END IS NULL THEN NULL ELSE - 27 END
----
NULL

query I rowsort
SELECT + - 84 * - 16
----
1344

query I rowsort
SELECT ALL + NULLIF ( - 23, + 67 / - 16 )
----
-23

query I rowsort
SELECT - 80 + + 71
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ALL + - 81 * - - 79 * - 23 - - 55 / + CASE 75 WHEN COUNT( ALL + 92 ) THEN MAX( DISTINCT - ( 64 ) ) WHEN + 57 + - 54 + - 91 + 97 * 5 * + - COALESCE ( + 38, - COALESCE ( 60, - 91 / - - 57 * 67 ) ) THEN - - 43 + MIN( DISTINCT 95 ) / - + 29 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT ALL + - 81 * - - 79 * - 23 - - 55 / + CASE 75 WHEN COUNT ( ALL + 92 ) THEN MAX ( DISTINCT - ( 64 ) ) WHEN + 57 + - 54 + - 91 + 97 * 5 * + - COALESCE ( + 38, - COALESCE ( 60, - 91 / - - 57 * 67 ) ) THEN - - 43 + MIN ( DISTINCT 95 ) / - + 29 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7417
SELECT - + 68 DIV + COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7417
SELECT - + 68 / + COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT ALL + - 94 * 83 AS col1
----
-7802

query I rowsort
SELECT ALL ( - + 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + 20 * SUM( DISTINCT ( - 56 ) )
----
-1120

skipif mysql # not compatible
query I rowsort label-7420
SELECT + 20 * SUM ( DISTINCT ( - 56 ) )
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT - 43 DIV - 34
----
1

skipif mysql # not compatible
query I rowsort label-7421
SELECT - 43 / - 34
----
1

query I rowsort
SELECT ALL - NULLIF ( - - 90, + - 25 - - 82 ) * + - 50 AS col0
----
4500

query I rowsort
SELECT ALL + 81 * - 34
----
-2754

query I rowsort
SELECT - 13 + + NULLIF ( + 57, - 55 )
----
44

query I rowsort
SELECT ALL ( + - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - 89 + - + NULLIF ( 99, 96 + COUNT( * ) )
----
-188

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 89 + - + NULLIF ( 99, 96 + COUNT ( * ) )
----
-188

query I rowsort
SELECT ALL - 8 - + 25 col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL CAST( 43 AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL CAST ( 43 AS INTEGER ) AS col0
----
43

query I rowsort
SELECT ALL ( - 95 )
----
-95

query I rowsort
SELECT - 59 - - 96
----
37

query II rowsort
SELECT ALL 22, - 97 AS col0
----
22
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7432
SELECT 45, + 18 DIV - + MAX( DISTINCT 17 ) AS col2
----
45
-1

skipif mysql # not compatible
query II rowsort label-7432
SELECT 45, + 18 / - + MAX ( DISTINCT 17 ) AS col2
----
45
-1

query II rowsort
SELECT - 76 AS col2, + 0 col2
----
-76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - COALESCE ( + 33, - COUNT( + 76 ) + - COUNT( * ) + - COUNT( * ) + - 55 * - 6, + 46 )
----
-33

skipif mysql # not compatible
query I rowsort label-7434
SELECT - COALESCE ( + 33, - COUNT ( + 76 ) + - COUNT ( * ) + - COUNT ( * ) + - 55 * - 6, + 46 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL + COUNT( * ) + + - 24 * 74 AS col0
----
-1775

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + COUNT ( * ) + + - 24 * 74 AS col0
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - ( + COALESCE ( - COUNT( * ), - - 38 ) ) + + + 54 - - - 55 * ( - COUNT( * ) ) * + 16 + + 9 - 73
----
871

skipif mysql # not compatible
query I rowsort label-7436
SELECT - ( + COALESCE ( - COUNT ( * ), - - 38 ) ) + + + 54 - - - 55 * ( - COUNT ( * ) ) * + 16 + + 9 - 73
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + 5 - - + COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-7437
SELECT + 5 - - + COUNT ( * ) col0
----
6

query I rowsort
SELECT + 23 * 62
----
1426

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT DISTINCT + + 5 DIV - NULLIF ( 54, - 34 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT + + 5 / - NULLIF ( 54, - 34 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT ALL + 25 DIV - 40 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + 25 / - 40 + 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT + 20 AS col1, CASE 25 WHEN MAX( DISTINCT - 71 ) + - 92 THEN - 39 END
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7441
SELECT + 20 AS col1, CASE 25 WHEN MAX ( DISTINCT - 71 ) + - 92 THEN - 39 END
----
20
NULL

query I rowsort
SELECT ALL + 85 * - + 33
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT + + 74 * COUNT( * ) * + + 28 AS col0
----
2072

skipif mysql # not compatible
query I rowsort label-7443
SELECT + + 74 * COUNT ( * ) * + + 28 AS col0
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT DISTINCT + 47 / 92 * - COALESCE ( + + ( CASE 58 WHEN - + 74 * + COUNT( * ) THEN + 69 / + ( + 11 ) ELSE NULL END ), CAST( NULL AS SIGNED ) ) * 63 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + 47 / 92 * - COALESCE ( + + ( CASE 58 WHEN - + 74 * + COUNT ( * ) THEN + 69 / + ( + 11 ) ELSE NULL END ), CAST ( NULL AS INTEGER ) ) * 63 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + - 99 * + + 86 AS col2
----
-8514

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + MAX( ALL - 98 ) * - + 16 * + 30
----
47040

skipif mysql # not compatible
query I rowsort label-7446
SELECT + MAX ( ALL - 98 ) * - + 16 * + 30
----
47040

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT + ( + - 14 ) + + + 40 - + COALESCE ( 34, - COUNT( * ) )
----
-8

skipif mysql # not compatible
query I rowsort label-7447
SELECT + ( + - 14 ) + + + 40 - + COALESCE ( 34, - COUNT ( * ) )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7448
SELECT ALL - COUNT( * ) DIV 74 - + + 69 + - - 66 * - ( + + 32 )
----
-2181

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL - COUNT ( * ) / 74 - + + 69 + - - 66 * - ( + + 32 )
----
-2181

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - - COUNT( DISTINCT - 53 ) * - 97 - + 30
----
-127

skipif mysql # not compatible
query I rowsort label-7449
SELECT - - COUNT ( DISTINCT - 53 ) * - 97 - + 30
----
-127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7450
SELECT COALESCE ( 69, - 81 + + 65 + - - CASE + CAST( NULL AS DECIMAL ) WHEN 59 + 6 THEN COUNT( * ) END * 75 DIV ( 6 ) * SUM( DISTINCT 51 ) + - 87 * COUNT( * ) * 7 )
----
69

skipif mysql # not compatible
query I rowsort label-7450
SELECT COALESCE ( 69, - 81 + + 65 + - - CASE + CAST ( NULL AS REAL ) WHEN 59 + 6 THEN COUNT ( * ) END * 75 / ( 6 ) * SUM ( DISTINCT 51 ) + - 87 * COUNT ( * ) * 7 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7451
SELECT ALL + NULLIF ( + + 95, - + 53 ) AS col1, 50 * + - 26 * + + 77 * + - COUNT( * )
----
95
100100

skipif mysql # not compatible
query II rowsort label-7451
SELECT ALL + NULLIF ( + + 95, - + 53 ) AS col1, 50 * + - 26 * + + 77 * + - COUNT ( * )
----
95
100100

query II rowsort
SELECT DISTINCT - - 10 AS col1, 18 * + 51 col1
----
10
918

query I rowsort
SELECT ALL - 92 - + 9 + - - 41 AS col0
----
-60

query I rowsort
SELECT ALL + - 91 * - ( - 57 )
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT CASE SUM( + 61 ) WHEN + 7 / 30 THEN - 73 / + 93 WHEN + ( + 19 ) THEN NULL END + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT CASE SUM ( + 61 ) WHEN + 7 / 30 THEN - 73 / + 93 WHEN + ( + 19 ) THEN NULL END + 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL ( + COALESCE ( - - 90, + 61 * + 84 - 41, + - COUNT( * ) * + 90 * COUNT( * ) * 55 + + - CASE - 42 WHEN 37 + - 72 THEN + - 30 WHEN 76 THEN + 51 + + - 52 + - - 30 END * + - 24, 61 ) ) * 98 col1
----
8820

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL ( + COALESCE ( - - 90, + 61 * + 84 - 41, + - COUNT ( * ) * + 90 * COUNT ( * ) * 55 + + - CASE - 42 WHEN 37 + - 72 THEN + - 30 WHEN 76 THEN + 51 + + - 52 + - - 30 END * + - 24, 61 ) ) * 98 col1
----
8820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT DISTINCT CAST( 47 AS SIGNED ) * 88 AS col0
----
4136

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT CAST ( 47 AS INTEGER ) * 88 AS col0
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT 76 * - COUNT( + 94 ) + + + ( - 9 )
----
-85

skipif mysql # not compatible
query I rowsort label-7458
SELECT 76 * - COUNT ( + 94 ) + + + ( - 9 )
----
-85

query II rowsort
SELECT 6, + 99 col1
----
6
99

query I rowsort
SELECT 66 * + 97
----
6402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7461
SELECT CAST( NULL AS SIGNED ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT CAST ( NULL AS INTEGER ) + - 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7462
SELECT 92 AS col1, + 84 + 6 + + 42 DIV + COUNT( * ) AS col2
----
92
132

skipif mysql # not compatible
query II rowsort label-7462
SELECT 92 AS col1, + 84 + 6 + + 42 / + COUNT ( * ) AS col2
----
92
132

query II rowsort
SELECT DISTINCT 56 AS col2, + 66
----
56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT DISTINCT - COUNT( * ) * - 75
----
75

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - COUNT ( * ) * - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT 72 + + COUNT( * ) col0
----
73

skipif mysql # not compatible
query I rowsort label-7465
SELECT 72 + + COUNT ( * ) col0
----
73

query II rowsort
SELECT ALL 65, - 0 AS col2
----
65
0

query I rowsort
SELECT 46 * 94 col1
----
4324

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT 81 + - + COUNT( * ) + + 90
----
170

skipif mysql # not compatible
query I rowsort label-7468
SELECT 81 + - + COUNT ( * ) + + 90
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT ALL - 14 DIV COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL - 14 / COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query III rowsort label-7470
SELECT 87, - 46 col0, - MIN( ALL - 13 ) AS col1
----
87
-46
13

skipif mysql # not compatible
query III rowsort label-7470
SELECT 87, - 46 col0, - MIN ( ALL - 13 ) AS col1
----
87
-46
13

query I rowsort
SELECT ALL - 5 + 54
----
49

query II rowsort
SELECT - 74 AS col0, 40
----
-74
40

query I rowsort
SELECT 68 + - 21
----
47

query I rowsort
SELECT 71 * + 28
----
1988

onlyif mysql # aggregate syntax: 
query II rowsort label-7475
SELECT - 32 AS col1, COUNT( * ) + 65 AS col2
----
-32
66

skipif mysql # not compatible
query II rowsort label-7475
SELECT - 32 AS col1, COUNT ( * ) + 65 AS col2
----
-32
66

query II rowsort
SELECT ALL + 42 * - + 12 AS col1, 13 AS col1
----
-504
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL - 87 + + - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - 87 + + - COUNT ( * ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT - - ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT - - ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 56 + 96
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL + 50 + SUM( ALL 28 )
----
78

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + 50 + SUM ( ALL 28 )
----
78

query I rowsort
SELECT + 4 * - 98 AS col2
----
-392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7482
SELECT ALL - COUNT( * ) AS col1, + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT 25 + 53 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL + + NULLIF ( + SUM( ALL 8 ), - NULLIF ( + 11, + 47 ) * - 5 - 58 + + COUNT( * ) + + ( - AVG ( ALL 89 ) ) * 61 - - COUNT( - - 32 ) ) + + + SUM( + 70 ) col0
----
78

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + + NULLIF ( + SUM ( ALL 8 ), - NULLIF ( + 11, + 47 ) * - 5 - 58 + + COUNT ( * ) + + ( - AVG ( ALL 89 ) ) * 61 - - COUNT ( - - 32 ) ) + + + SUM ( + 70 ) col0
----
78

query II rowsort
SELECT ALL - 15 AS col2, - 58 * + 81 * - 96 col2
----
-15
451008

onlyif mysql # aggregate syntax: 
query II rowsort label-7486
SELECT + 83, CASE ( 67 ) WHEN + 16 * - 3 + - COUNT( * ) THEN 63 END AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7486
SELECT + 83, CASE ( 67 ) WHEN + 16 * - 3 + - COUNT ( * ) THEN 63 END AS col0
----
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT - 57 - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - 57 - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7488
SELECT + COALESCE ( + - 51, 63, + + 50 DIV COUNT( * ) + 23 ) AS col0, + COUNT( 2 ) - - 54
----
-51
55

skipif mysql # not compatible
query II rowsort label-7488
SELECT + COALESCE ( + - 51, 63, + + 50 / COUNT ( * ) + 23 ) AS col0, + COUNT ( 2 ) - - 54
----
-51
55

query I rowsort
SELECT ALL + 82 - 9
----
73

query I rowsort
SELECT ALL + 24 * + + 37 AS col2
----
888

query I rowsort
SELECT ( 22 ) * - 55 AS col1
----
-1210

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT ALL - - 59, + MAX( + - 85 ) - COUNT( * ) * + - 28 AS col2
----
59
-57

skipif mysql # not compatible
query II rowsort label-7492
SELECT ALL - - 59, + MAX ( + - 85 ) - COUNT ( * ) * + - 28 AS col2
----
59
-57

query I rowsort
SELECT 74 + - 8 AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT ALL + - 23 - ( - 5 ) + - - 15 AS col2, + ( - 45 ) + - MAX( - 13 ) + - - 40 * 73 AS col1
----
-3
2888

skipif mysql # not compatible
query II rowsort label-7494
SELECT ALL + - 23 - ( - 5 ) + - - 15 AS col2, + ( - 45 ) + - MAX ( - 13 ) + - - 40 * 73 AS col1
----
-3
2888

query I rowsort
SELECT ALL - - 60 * + 72
----
4320

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT 50 col1, - COUNT( * ) + + + 83 AS col2
----
50
82

skipif mysql # not compatible
query II rowsort label-7496
SELECT 50 col1, - COUNT ( * ) + + + 83 AS col2
----
50
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT MAX( 59 ) + CASE 31 WHEN + COUNT( * ) + + 97 THEN + 68 * + - 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT MAX ( 59 ) + CASE 31 WHEN + COUNT ( * ) + + 97 THEN + 68 * + - 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7498
SELECT ALL 26 DIV + 44 * - - 62, 57 * - MAX( DISTINCT + 82 ) AS col0
----
0
-4674

skipif mysql # not compatible
query II rowsort label-7498
SELECT ALL 26 / + 44 * - - 62, 57 * - MAX ( DISTINCT + 82 ) AS col0
----
0
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT - MAX( 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - MAX ( 14 )
----
-14

query I rowsort
SELECT ALL 54 + ( - 95 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL 94 + + - NULLIF ( + + COUNT( * ), - + 87 * - 32 )
----
93

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL 94 + + - NULLIF ( + + COUNT ( * ), - + 87 * - 32 )
----
93

query I rowsort
SELECT DISTINCT 24 + 27 AS col0
----
51

query I rowsort
SELECT DISTINCT - 74 + - 87
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT DISTINCT 17 + NULLIF ( + NULLIF ( - COUNT( * ), + 6 + 71 + COALESCE ( - - 79, + - 7 ) + 96 * + - NULLIF ( + 31, + COUNT( ALL - - ( + + 94 ) ) ) * - + 32 / + 11 * - 37 ), - SUM( DISTINCT - - 42 ) + 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT 17 + NULLIF ( + NULLIF ( - COUNT ( * ), + 6 + 71 + COALESCE ( - - 79, + - 7 ) + 96 * + - NULLIF ( + 31, + COUNT ( ALL - - ( + + 94 ) ) ) * - + 32 / + 11 * - 37 ), - SUM ( DISTINCT - - 42 ) + 41 )
----
NULL

query I rowsort
SELECT 6 - 20 + 61 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - 2 + - - COUNT( + + 98 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7506
SELECT - 2 + - - COUNT ( + + 98 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT - COUNT( + + 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-7507
SELECT - COUNT ( + + 90 )
----
-1

query II rowsort
SELECT ALL - + 12 - + + 55, - ( - + 57 ) AS col1
----
-67
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7509
SELECT 43 + ( - 36 ) AS col0, + CAST( NULL AS SIGNED ) * - + 90 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-7509
SELECT 43 + ( - 36 ) AS col0, + CAST ( NULL AS INTEGER ) * - + 90 AS col0
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + 24 * 12 - - 79 + - + 35 * 39 * - 88 * - COUNT( * ) * + - 32 col0
----
3844207

skipif mysql # not compatible
query I rowsort label-7510
SELECT + 24 * 12 - - 79 + - + 35 * 39 * - 88 * - COUNT ( * ) * + - 32 col0
----
3844207

query I rowsort
SELECT DISTINCT - NULLIF ( - - ( ( + 78 ) ), - 70 ) * 8 * + 99
----
-61776

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT DISTINCT + + MIN( ALL 95 )
----
95

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + + MIN ( ALL 95 )
----
95

query I rowsort
SELECT - 71 * + 34
----
-2414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT - - 6 * SUM( ALL + + 22 ) * + CASE - 72 WHEN + CAST( NULL AS SIGNED ) - + 43 * + 34 * - + 50 * - + ( - 10 ) + + - 80 THEN ( + 15 ) WHEN 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT - - 6 * SUM ( ALL + + 22 ) * + CASE - 72 WHEN + CAST ( NULL AS INTEGER ) - + 43 * + 34 * - + 50 * - + ( - 10 ) + + - 80 THEN ( + 15 ) WHEN 21 THEN NULL END
----
NULL

query I rowsort
SELECT - ( - - 36 ) AS col0
----
-36

query I rowsort
SELECT - + ( - ( + - 17 ) ) + - 63 AS col0
----
-80

query I rowsort
SELECT ALL - 51 * - 35 * - - 64
----
114240

query II rowsort
SELECT ALL + 82 AS col1, 80 * - 94 * 72 AS col2
----
82
-541440

onlyif mysql # aggregate syntax: 
query II rowsort label-7519
SELECT + 93 AS col2, MAX( DISTINCT - - 55 ) AS col1
----
93
55

skipif mysql # not compatible
query II rowsort label-7519
SELECT + 93 AS col2, MAX ( DISTINCT - - 55 ) AS col1
----
93
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL COUNT( * ) * 66 + 22 * - 34 - - 7 + + 99 + + 73
----
-503

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL COUNT ( * ) * 66 + 22 * - 34 - - 7 + + 99 + + 73
----
-503

query I rowsort
SELECT + 33 * 96 + 77 + 30
----
3275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT + COUNT( * ) * - - 26 + + 90 * CAST( - 23 AS SIGNED ) + + COUNT( * ) col1
----
-2043

skipif mysql # not compatible
query I rowsort label-7522
SELECT + COUNT ( * ) * - - 26 + + 90 * CAST ( - 23 AS INTEGER ) + + COUNT ( * ) col1
----
-2043

query I rowsort
SELECT ALL 51 * + + 87 + - - 61
----
4498

query I rowsort
SELECT - 48 + + 95 - + - 7 * 28
----
243

query I rowsort
SELECT ALL 63 * + + 36 + 76 col0
----
2344

query I rowsort
SELECT + 76 * NULLIF ( 95, + 2 ) + 70 + + 18
----
7308

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT - 1 + + COALESCE ( + - 23, - + 90 ) DIV - 3 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7527
SELECT - 1 + + COALESCE ( + - 23, - + 90 ) / - 3 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT 51 * + 27 + NULLIF ( - 49, - - ( - - SUM( - 86 ) ) ) + + 19 * 97 * + 44 * - 23 * - 75
----
139885028

skipif mysql # not compatible
query I rowsort label-7528
SELECT 51 * + 27 + NULLIF ( - 49, - - ( - - SUM ( - 86 ) ) ) + + 19 * 97 * + 44 * - 23 * - 75
----
139885028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT ALL SUM( DISTINCT - 58 ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL SUM ( DISTINCT - 58 ) / - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7530
SELECT + ( + 75 ) DIV - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-7530
SELECT + ( + 75 ) / - COUNT ( * )
----
-75

query I rowsort
SELECT ALL + 87 + - 7
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL 65 + - MIN( - - 93 ) - + 10 - - - 45 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL 65 + - MIN ( - - 93 ) - + 10 - - - 45 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL ( - SUM( - 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL ( - SUM ( - 37 ) )
----
37

query I rowsort
SELECT DISTINCT 0 - 9 * 15 * 3 AS col1
----
-405

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT 41 AS col0, 97 + + COUNT( * )
----
41
98

skipif mysql # not compatible
query II rowsort label-7535
SELECT 41 AS col0, 97 + + COUNT ( * )
----
41
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT - CASE - 15 WHEN + + ( + 74 ) THEN NULL WHEN - 36 * - 34 THEN + - CAST( + - 72 AS SIGNED ) + + - 19 ELSE - - 4 END
----
-4

skipif mysql # not compatible
query I rowsort label-7536
SELECT - CASE - 15 WHEN + + ( + 74 ) THEN NULL WHEN - 36 * - 34 THEN + - CAST ( + - 72 AS INTEGER ) + + - 19 ELSE - - 4 END
----
-4

query I rowsort
SELECT + 23 + + 75 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL - COUNT( * ) * + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - COUNT ( * ) * + 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - ( - CASE - 17 WHEN 37 * 68 * 75 THEN - + COUNT( * ) WHEN + + 91 / 43 * NULLIF ( + + AVG ( DISTINCT ( - 49 ) ), - 81 ) * 41 + + 65 * + 81 + - - 14 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT - ( - CASE - 17 WHEN 37 * 68 * 75 THEN - + COUNT ( * ) WHEN + + 91 / 43 * NULLIF ( + + AVG ( DISTINCT ( - 49 ) ), - 81 ) * 41 + + 65 * + 81 + - - 14 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 - + + 10 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT + MIN( DISTINCT + 19 ) * + 79 * + + 76 + + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT + MIN ( DISTINCT + 19 ) * + 79 * + + 76 + + + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT COUNT( * ) AS col2, - 15 col1
----
1
-15

skipif mysql # not compatible
query II rowsort label-7542
SELECT COUNT ( * ) AS col2, - 15 col1
----
1
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT ALL + 7 / - ( + CAST( NULL AS SIGNED ) ) / - COUNT( * ) * + + 25 + - 15 + + ( + - NULLIF ( - - 41, - CAST( ( + COUNT( * ) ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + 7 / - ( + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) * + + 25 + - 15 + + ( + - NULLIF ( - - 41, - CAST ( ( + COUNT ( * ) ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + + 85 + - 86
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT DISTINCT + MAX( ALL - 78 ) * - 79 AS col1
----
6162

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + MAX ( ALL - 78 ) * - 79 AS col1
----
6162

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT DISTINCT 76 DIV - + COALESCE ( + 80, - 65 + - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT 76 / - + COALESCE ( + 80, - 65 + - 26 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + + COUNT( * ) / + - 92 + - 98 * CASE + - ( + 77 ) WHEN - - MAX( + 16 ) THEN NULL WHEN + + COUNT( * ) THEN + + 68 * 92 * + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT + + COUNT ( * ) / + - 92 + - 98 * CASE + - ( + 77 ) WHEN - - MAX ( + 16 ) THEN NULL WHEN + + COUNT ( * ) THEN + + 68 * 92 * + 16 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT 66 / - 49 + 86 - CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT 66 / - 49 + 86 - CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT - - 61 * + - 78
----
-4758

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7550
SELECT + 52, 0 DIV + + COUNT( * ) + 75 AS col0
----
52
75

skipif mysql # not compatible
query II rowsort label-7550
SELECT + 52, 0 / + + COUNT ( * ) + 75 AS col0
----
52
75

query I rowsort
SELECT - NULLIF ( 92, + CASE 98 WHEN + - 15 THEN - 27 ELSE ( 26 ) END ) + - + 58
----
-150

query I rowsort
SELECT DISTINCT - - 55 * - 18
----
-990

query I rowsort
SELECT ALL + - 93 * - 45 col0
----
4185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7554
SELECT + 91 DIV + SUM( 21 ) AS col1, 54 * + 59 AS col2
----
4
3186

skipif mysql # not compatible
query II rowsort label-7554
SELECT + 91 / + SUM ( 21 ) AS col1, 54 * + 59 AS col2
----
4
3186

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT MIN( DISTINCT 53 ) * - - 30 + + ( COUNT( * ) ) * + COUNT( * )
----
1591

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT MIN ( DISTINCT 53 ) * - - 30 + + ( COUNT ( * ) ) * + COUNT ( * )
----
1591

query I rowsort
SELECT ALL + NULLIF ( 96, + 74 * 2 + - 14 ) AS col0
----
96

query I rowsort
SELECT ( - - ( - 24 ) ) AS col2
----
-24

query II rowsort
SELECT ( + 27 ) AS col2, 45 AS col2
----
27
45

query I rowsort
SELECT ( - + 61 ) AS col1
----
-61

query I rowsort
SELECT ALL 91 * 72 + + - 82 AS col2
----
6470

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT - COALESCE ( - ( + - 13 ), - COUNT( * ) + + + 37 ) * 28 AS col1
----
-364

skipif mysql # not compatible
query I rowsort label-7561
SELECT - COALESCE ( - ( + - 13 ), - COUNT ( * ) + + + 37 ) * 28 AS col1
----
-364

query I rowsort
SELECT - 7 + 97 + + 50
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL 34 * - COUNT( * ) * COUNT( * ) * 72 * 47 * - COUNT( * ) * - - COUNT( * ) + - - ( ( + 89 ) ) + + + 95
----
115240

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 34 * - COUNT ( * ) * COUNT ( * ) * 72 * 47 * - COUNT ( * ) * - - COUNT ( * ) + - - ( ( + 89 ) ) + + + 95
----
115240

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT 96 * - 70 + + MAX( ALL - + ( + + 39 ) ) AS col2
----
-6759

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT 96 * - 70 + + MAX ( ALL - + ( + + 39 ) ) AS col2
----
-6759

query I rowsort
SELECT ALL + 33 * + 7 + + + COALESCE ( + - 78, - 83 ) * 41 + ( - + 77 )
----
-3044

query II rowsort
SELECT ALL + 83 * + 78 AS col0, ( - 38 ) AS col1
----
6474
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7567
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT + 41 * - 64, CASE 40 WHEN 36 THEN + - 68 * + 89 WHEN - + COUNT( * ) THEN - 96 / + 49 * 44 * ( + - 9 ) + 61 ELSE 19 * - 91 + + 64 + CASE WHEN NOT 54 > ( + + 60 ) THEN + 29 + 57 END * + 51 END AS col1
----
-2624
2721

skipif mysql # not compatible
query II rowsort label-7568
SELECT + 41 * - 64, CASE 40 WHEN 36 THEN + - 68 * + 89 WHEN - + COUNT ( * ) THEN - 96 / + 49 * 44 * ( + - 9 ) + 61 ELSE 19 * - 91 + + 64 + CASE WHEN NOT 54 > ( + + 60 ) THEN + 29 + 57 END * + 51 END AS col1
----
-2624
2721

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - COUNT( * ) + 64
----
63

skipif mysql # not compatible
query I rowsort label-7569
SELECT - COUNT ( * ) + 64
----
63

query I rowsort
SELECT - ( - ( - + 11 ) ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT - 37 + + 74 + + CAST( NULL AS SIGNED ) * + - 84 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT - 37 + + 74 + + CAST ( NULL AS INTEGER ) * + - 84 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7572
SELECT COALESCE ( + NULLIF ( - 93, + 51 / + COUNT( * ) + 45 ), 33 * 17 * + COUNT( * ) + 39 - ( + CASE - 64 WHEN - COUNT( * ) + + ( - + MIN( - 58 ) ) THEN - + 65 WHEN + 0 THEN - + ( 58 ) WHEN - 39 * - 49 * + 33 THEN NULL WHEN - - COUNT( * ) + - 92 - 38 * + + COUNT( * ) + - 3 THEN NULL ELSE + + 49 END ) + - COUNT( * ) - 59 ) AS col0, + SUM( + 80 ) AS col1
----
-93
80

skipif mysql # not compatible
query II rowsort label-7572
SELECT COALESCE ( + NULLIF ( - 93, + 51 / + COUNT ( * ) + 45 ), 33 * 17 * + COUNT ( * ) + 39 - ( + CASE - 64 WHEN - COUNT ( * ) + + ( - + MIN ( - 58 ) ) THEN - + 65 WHEN + 0 THEN - + ( 58 ) WHEN - 39 * - 49 * + 33 THEN NULL WHEN - - COUNT ( * ) + - 92 - 38 * + + COUNT ( * ) + - 3 THEN NULL ELSE + + 49 END ) + - COUNT ( * ) - 59 ) AS col0, + SUM ( + 80 ) AS col1
----
-93
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT ALL 76 DIV - - 5 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 76 / - - 5 AS col2
----
15

query I rowsort
SELECT - 46 * - + 34
----
1564

query I rowsort
SELECT - 50 + - 72 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT - + 5 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7576
SELECT - + 5 * COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT MAX( DISTINCT + 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-7577
SELECT MAX ( DISTINCT + 62 ) col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT + CASE - COUNT( * ) WHEN + 71 * - 44 + + 96 THEN NULL WHEN + 45 * - - 64 * 60 THEN COALESCE ( + 52, - - 74 ) * + 10 / + - 74 ELSE NULL END + + - 45 * CAST( NULL AS SIGNED ) * + 47 * - COUNT( * ) * - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT + CASE - COUNT ( * ) WHEN + 71 * - 44 + + 96 THEN NULL WHEN + 45 * - - 64 * 60 THEN COALESCE ( + 52, - - 74 ) * + 10 / + - 74 ELSE NULL END + + - 45 * CAST ( NULL AS INTEGER ) * + 47 * - COUNT ( * ) * - - 80
----
NULL

query I rowsort
SELECT - 95 * - ( - 35 ) AS col2
----
-3325

query I rowsort
SELECT ALL + 1 * + + 97 * - + 99 AS col0
----
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7581
SELECT ALL ( + + 45 ) * - ( - - 57 ) AS col1, 56 - + 4 + + + CAST( NULL AS SIGNED ) col1
----
-2565
NULL

skipif mysql # not compatible
query II rowsort label-7581
SELECT ALL ( + + 45 ) * - ( - - 57 ) AS col1, 56 - + 4 + + + CAST ( NULL AS INTEGER ) col1
----
-2565
NULL

query II rowsort
SELECT DISTINCT 10 + 96 + - - 0 * - 93, 78 AS col0
----
106
78

query I rowsort
SELECT ALL + 93 + + 74
----
167

query I rowsort
SELECT DISTINCT - + 54 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT COUNT( * ) * - + MAX( + - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-7585
SELECT COUNT ( * ) * - + MAX ( + - 83 )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7586
SELECT DISTINCT 76 + COUNT( * ) + - 55 DIV + - 84 AS col1, + COUNT( * ) * + - 70 AS col2
----
77
-70

skipif mysql # not compatible
query II rowsort label-7586
SELECT DISTINCT 76 + COUNT ( * ) + - 55 / + - 84 AS col1, + COUNT ( * ) * + - 70 AS col2
----
77
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7587
SELECT ALL 43 + + + CAST( NULL AS SIGNED ) + - + 73, 61 * ( + + ( - 97 ) ) - COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7587
SELECT ALL 43 + + + CAST ( NULL AS INTEGER ) + - + 73, 61 * ( + + ( - 97 ) ) - COUNT ( * ) - + CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

query II rowsort
SELECT + 47 AS col0, 71 * + 21
----
47
1491

query I rowsort
SELECT + 43 * 23 - + 26 AS col2
----
963

query I rowsort
SELECT 0 * + 40 AS col2
----
0

query I rowsort
SELECT ALL 95 * - - 48 AS col0
----
4560

query I rowsort
SELECT 71 + + 78 AS col0
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT 7 DIV - 8 * + + 47 * + 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7593
SELECT 7 / - 8 * + + 47 * + 3 AS col0
----
0

query I rowsort
SELECT ( 24 ) * + 33 * + 50 + 25
----
39625

query I rowsort
SELECT ALL 36 * + - 64
----
-2304

query I rowsort
SELECT 6 + + + 28
----
34

query I rowsort
SELECT ( + + 33 ) * + 5 + 39 col1
----
204

query I rowsort
SELECT 16 + - + 81 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - 4 * + - AVG ( DISTINCT - 59 ) + + CASE + COUNT( * ) WHEN 50 THEN 18 WHEN - + 76 / + - 22 + + 20 + - 28 * - 15 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT - 4 * + - AVG ( DISTINCT - 59 ) + + CASE + COUNT ( * ) WHEN 50 THEN 18 WHEN - + 76 / + - 22 + + 20 + - 28 * - 15 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT 32 + - COUNT( * ) - - - COUNT( * ) + + 48
----
78

skipif mysql # not compatible
query I rowsort label-7600
SELECT 32 + - COUNT ( * ) - - - COUNT ( * ) + + 48
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7601
SELECT COUNT( * ) * - COUNT( - 91 ) + - + 20 DIV - - COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7601
SELECT COUNT ( * ) * - COUNT ( - 91 ) + - + 20 / - - COUNT ( * ) AS col0
----
-21

query II rowsort
SELECT 72 AS col0, - ( 71 )
----
72
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL + - MAX( ALL + + 72 ) * - + 46 * - 25
----
-82800

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + - MAX ( ALL + + 72 ) * - + 46 * - 25
----
-82800

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT + 43 DIV 5 - + 63 * + 29 AS col0
----
-1819

skipif mysql # not compatible
query I rowsort label-7604
SELECT + 43 / 5 - + 63 * + 29 AS col0
----
-1819

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL + COUNT( ALL 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL + COUNT ( ALL 98 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT + + COUNT( * ) * + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT + + COUNT ( * ) * + 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - SUM( DISTINCT + 63 ) * 60 * 66 AS col2
----
-249480

skipif mysql # not compatible
query I rowsort label-7607
SELECT - SUM ( DISTINCT + 63 ) * 60 * 66 AS col2
----
-249480

query I rowsort
SELECT + 84 + - COALESCE ( + 95, + 44 )
----
-11

query I rowsort
SELECT DISTINCT - ( + 89 ) AS col2
----
-89

query I rowsort
SELECT - 37 * 34
----
-1258

query II rowsort
SELECT ALL CASE + 81 WHEN 20 + - - 39 THEN + 61 * 27 * + 41 * + 63 + 37 * - - 41 END, 96 AS col1
----
NULL
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7612
SELECT + NULLIF ( - + SUM( 38 ), CAST( - 62 AS DECIMAL ) - CAST( NULL AS SIGNED ) / + 80 ) + - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) / + 29 + 74
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-7612
SELECT + NULLIF ( - + SUM ( 38 ), CAST ( - 62 AS REAL ) - CAST ( NULL AS INTEGER ) / + 80 ) + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) / + 29 + 74
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT ALL + - 22 + MAX( DISTINCT - 80 )
----
-102

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL + - 22 + MAX ( DISTINCT - 80 )
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT CAST( + - 95 AS SIGNED ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-7614
SELECT CAST ( + - 95 AS INTEGER ) col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT - 22 + - - 24 * COUNT( * ) + 57 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - 22 + - - 24 * COUNT ( * ) + 57 AS col2
----
59

query I rowsort
SELECT ALL - 89 + + ( - 59 ) col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - NULLIF ( + 17, + - ( - MAX( - + 87 ) ) * 21 * + + 12 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7617
SELECT - NULLIF ( + 17, + - ( - MAX ( - + 87 ) ) * 21 * + + 12 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL COUNT( * ) * - 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL COUNT ( * ) * - 48 AS col1
----
-48

query I rowsort
SELECT - 96 + + + 78
----
-18

query I rowsort
SELECT ALL 2 + 45 + 30
----
77

query I rowsort
SELECT ALL 45 * - + 16 - + 86
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT 87 * - - 26 * - ( COUNT( * ) ) * + + 32
----
-72384

skipif mysql # not compatible
query I rowsort label-7622
SELECT 87 * - - 26 * - ( COUNT ( * ) ) * + + 32
----
-72384

query I rowsort
SELECT DISTINCT - 83 * 75 AS col1
----
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT MIN( DISTINCT - + ( + + 7 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7624
SELECT MIN ( DISTINCT - + ( + + 7 ) ) AS col1
----
-7

query I rowsort
SELECT 0 * 15
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT ALL - 42 AS col0, + 59 * - CASE + SUM( + 29 ) WHEN - - 86 THEN 6 ELSE NULL END
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-7626
SELECT ALL - 42 AS col0, + 59 * - CASE + SUM ( + 29 ) WHEN - - 86 THEN 6 ELSE NULL END
----
-42
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7627
SELECT 77 * - - 50 AS col2, ( - + 24 ) DIV COUNT( * )
----
3850
-24

skipif mysql # not compatible
query II rowsort label-7627
SELECT 77 * - - 50 AS col2, ( - + 24 ) / COUNT ( * )
----
3850
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT SUM( ALL + ( + 50 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7628
SELECT SUM ( ALL + ( + 50 ) ) AS col1
----
50

query II rowsort
SELECT DISTINCT - 58, + 88 AS col1
----
-58
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT MAX( ALL 10 ) AS col0, + 84
----
10
84

skipif mysql # not compatible
query II rowsort label-7630
SELECT MAX ( ALL 10 ) AS col0, + 84
----
10
84

query II rowsort
SELECT ALL 23 * 71 AS col1, 49
----
1633
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL - COUNT( DISTINCT - 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - COUNT ( DISTINCT - 75 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT 52 DIV + 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT 52 / + 30 AS col2
----
1

query I rowsort
SELECT 15 * + + 65
----
975

query II rowsort
SELECT ALL + 86 col1, + 55 + ( - 0 ) AS col0
----
86
55

query I rowsort
SELECT ALL ( - ( 89 ) ) * + 70
----
-6230

query I rowsort
SELECT ALL + 0 * - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT NULLIF ( + + 81, - + COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7638
SELECT NULLIF ( + + 81, - + COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL SUM( - ( 77 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL SUM ( - ( 77 ) )
----
-77

query I rowsort
SELECT + 99 + 74 * 30 - - 76 + 62
----
2457

query I rowsort
SELECT - 68 * + 45 * 37 AS col2
----
-113220

query I rowsort
SELECT + 8 + - NULLIF ( + 72, - 46 ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7643
SELECT ALL COALESCE ( + CASE + 3 WHEN + + COUNT( * ) * - - 3 THEN + COUNT( * ) ELSE 31 + + 92 + - 11 + - 63 * + + 46 + - 32 - - 52 * + + CAST( 76 AS SIGNED ) DIV + - 49 + - 19 DIV - 45 END, 70 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL COALESCE ( + CASE + 3 WHEN + + COUNT ( * ) * - - 3 THEN + COUNT ( * ) ELSE 31 + + 92 + - 11 + - 63 * + + 46 + - 32 - - 52 * + + CAST ( 76 AS INTEGER ) / + - 49 + - 19 / - 45 END, 70 ) AS col0
----
1

query II rowsort
SELECT ALL - 84 + - - 35 * + 81 * - 68, 5 AS col1
----
-192864
5

query I rowsort
SELECT ALL - 73 + - ( + 90 )
----
-163

query II rowsort
SELECT - + 4 + 63 AS col0, - ( - 7 ) AS col2
----
59
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL + CAST( + - 38 AS SIGNED ) + - 82 + 76 * + 91
----
6796

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + CAST ( + - 38 AS INTEGER ) + - 82 + 76 * + 91
----
6796

query I rowsort
SELECT - + 35 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL - COUNT( * ) + 27 - NULLIF ( + 32, 15 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - COUNT ( * ) + 27 - NULLIF ( + 32, 15 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - ( 42 ) + + - 21 - - COUNT( 3 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7650
SELECT - ( 42 ) + + - 21 - - COUNT ( 3 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7651
SELECT - MIN( ALL + 92 ), - ( - - 1 ) AS col1
----
-92
-1

skipif mysql # not compatible
query II rowsort label-7651
SELECT - MIN ( ALL + 92 ), - ( - - 1 ) AS col1
----
-92
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7652
SELECT - ( + 34 ) * + COUNT( * ) DIV 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT - ( + 34 ) * + COUNT ( * ) / 78 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7653
SELECT ALL CASE + + 63 WHEN - 47 * - - 20 + + 57 + + ( + 96 ) - - - 60 + - 30 * COUNT( * ) * + 24 + + 22 * + + COUNT( * ) * COALESCE ( 42, - + 60 * + NULLIF ( - - 47, 31 ), 70, - + COALESCE ( + - 26, AVG ( ALL ( 56 ) ) / - 49 * 34 + + COALESCE ( - 19, CAST( NULL AS DECIMAL ) ) ) ) THEN ( - + 17 ) + - 32 WHEN COUNT( * ) THEN NULL WHEN ( - 59 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL CASE + + 63 WHEN - 47 * - - 20 + + 57 + + ( + 96 ) - - - 60 + - 30 * COUNT ( * ) * + 24 + + 22 * + + COUNT ( * ) * COALESCE ( 42, - + 60 * + NULLIF ( - - 47, 31 ), 70, - + COALESCE ( + - 26, AVG ( ALL ( 56 ) ) / - 49 * 34 + + COALESCE ( - 19, CAST ( NULL AS REAL ) ) ) ) THEN ( - + 17 ) + - 32 WHEN COUNT ( * ) THEN NULL WHEN ( - 59 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT ALL - NULLIF ( - - 66, + CAST( 53 AS SIGNED ) / - 73 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL - NULLIF ( - - 66, + CAST ( 53 AS INTEGER ) / - 73 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 24, 34 ) - 2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7656
SELECT DISTINCT COUNT( * ) DIV + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT COUNT ( * ) / + 21 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL + COALESCE ( COUNT( * ), - CAST( + 3 AS SIGNED ) + 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL + COALESCE ( COUNT ( * ), - CAST ( + 3 AS INTEGER ) + 96 ) AS col2
----
1

query II rowsort
SELECT - 18 * - 30 AS col1, - 14 AS col1
----
540
-14

query I rowsort
SELECT DISTINCT - 52 * + ( 83 ) AS col1
----
-4316

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT + 84 DIV + 40 + - - 81 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7660
SELECT + 84 / + 40 + - - 81 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7661
SELECT - 96 * - 41 - - ( - + SUM( ALL CAST( + 15 AS SIGNED ) ) ) * + - 52 / CAST( NULL AS SIGNED ) * + 36 + + 95 - - + ( + 84 ) * - + 85 * - + COUNT( ALL + 17 ) * 35 * 44 * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT - 96 * - 41 - - ( - + SUM ( ALL CAST ( + 15 AS INTEGER ) ) ) * + - 52 / CAST ( NULL AS INTEGER ) * + 36 + + 95 - - + ( + 84 ) * - + 85 * - + COUNT ( ALL + 17 ) * 35 * 44 * + 12
----
NULL

query I rowsort
SELECT + 76 * + 92 * + - 44 AS col0
----
-307648

query II rowsort
SELECT ALL 82 * - 72 AS col0, - 22 AS col1
----
-5904
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7664
SELECT - 88 + + CAST( NULL AS SIGNED ) / + COUNT( * ), 99 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-7664
SELECT - 88 + + CAST ( NULL AS INTEGER ) / + COUNT ( * ), 99 AS col1
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT - 52 * - COUNT( * ) * - 38 * COUNT( ALL - 19 )
----
-1976

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT - 52 * - COUNT ( * ) * - 38 * COUNT ( ALL - 19 )
----
-1976

query II rowsort
SELECT + 40 * - 47 AS col1, + 11 AS col0
----
-1880
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT - ( + 73 ) * + 22 - - COALESCE ( - 13, 14 ) + + ( COUNT( * ) ) AS col2
----
-1618

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT - ( + 73 ) * + 22 - - COALESCE ( - 13, 14 ) + + ( COUNT ( * ) ) AS col2
----
-1618

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL + 16 * + - 86 + COUNT( * )
----
-1375

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL + 16 * + - 86 + COUNT ( * )
----
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + 39 + + ( + 76 ) + + 77 + + + 83 * - MIN( ALL + - 70 ) AS col1
----
6002

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 39 + + ( + 76 ) + + 77 + + + 83 * - MIN ( ALL + - 70 ) AS col1
----
6002

query I rowsort
SELECT ALL - 2 * - 75 / - 7 + - + 20 + 92 / + CASE + CASE 73 WHEN + 69 THEN - + 35 + 63 ELSE + 12 END WHEN 25 + - 27 THEN - AVG ( DISTINCT 92 ) END + + - NULLIF ( - 33, + 11 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT - 83 DIV + 34
----
-2

skipif mysql # not compatible
query I rowsort label-7671
SELECT - 83 / + 34
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + + MAX( + 43 ) * ( + + 16 ) AS col0
----
688

skipif mysql # not compatible
query I rowsort label-7672
SELECT + + MAX ( + 43 ) * ( + + 16 ) AS col0
----
688

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT DISTINCT 31 DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT 31 / - 25
----
-1

query I rowsort
SELECT + + 77 + + + 93 col2
----
170

query II rowsort
SELECT ALL - 80 * - 41 * 65 + - + 47 + - 14, + 24 AS col0
----
213139
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT ALL 98 DIV - 27 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL 98 / - 27 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL + 1 * ( + 43 ) + 1 + + 86 + + 40 * 94 * + CASE 71 WHEN - 85 THEN + 89 ELSE + MIN( - 93 ) END * 1 AS col0
----
-349550

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + 1 * ( + 43 ) + 1 + + 86 + + 40 * 94 * + CASE 71 WHEN - 85 THEN + 89 ELSE + MIN ( - 93 ) END * 1 AS col0
----
-349550

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT DISTINCT SUM( DISTINCT - 34 ) AS col1, - 65 * - 96
----
-34
6240

skipif mysql # not compatible
query II rowsort label-7678
SELECT DISTINCT SUM ( DISTINCT - 34 ) AS col1, - 65 * - 96
----
-34
6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7679
SELECT + CAST( - CASE + + CASE + + 46 WHEN + 77 THEN NULL ELSE ( 26 ) + + - 64 END WHEN 77 THEN - - 71 + + COUNT( * ) WHEN + 81 THEN + 36 END AS SIGNED ) * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT + CAST ( - CASE + + CASE + + 46 WHEN + 77 THEN NULL ELSE ( 26 ) + + - 64 END WHEN 77 THEN - - 71 + + COUNT ( * ) WHEN + 81 THEN + 36 END AS INTEGER ) * 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + + 81 - 60 + MAX( DISTINCT + - NULLIF ( 59, + 33 - - + 19 ) ) + + - CASE 12 WHEN - ( - 87 ) * 94 * 1 + - 48 THEN NULL WHEN - + 11 THEN + - COUNT( - + 81 ) * - 46 * + 97 ELSE 68 END + COALESCE ( + + 86, + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7680
SELECT + + 81 - 60 + MAX ( DISTINCT + - NULLIF ( 59, + 33 - - + 19 ) ) + + - CASE 12 WHEN - ( - 87 ) * 94 * 1 + - 48 THEN NULL WHEN - + 11 THEN + - COUNT ( - + 81 ) * - 46 * + 97 ELSE 68 END + COALESCE ( + + 86, + COUNT ( * ) )
----
-20

query I rowsort
SELECT + COALESCE ( ( - - 0 ), - NULLIF ( 29, - - 93 ) + + 36 ) + + 29
----
29

query I rowsort
SELECT + - 6 * - + 47 * + ( 49 ) AS col1
----
13818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT - - 1 * - - 56 DIV + ( - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-7683
SELECT - - 1 * - - 56 / + ( - COUNT ( * ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT DISTINCT - SUM( + 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT - SUM ( + 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7685
SELECT + ( - - COUNT( * ) ), 99 AS col1
----
1
99

skipif mysql # not compatible
query II rowsort label-7685
SELECT + ( - - COUNT ( * ) ), 99 AS col1
----
1
99

query I rowsort
SELECT ALL - 37 - - + ( 8 ) + 90
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - COUNT( * ) * + 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - COUNT ( * ) * + 80 AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT 78 DIV + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT 78 / + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), + + COUNT( * ) + - 84 ) * + + 63 * + + 65
----
4095

skipif mysql # not compatible
query I rowsort label-7689
SELECT + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + + COUNT ( * ) + - 84 ) * + + 63 * + + 65
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + MAX( ALL - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7690
SELECT + MAX ( ALL - 54 ) AS col1
----
-54

query I rowsort
SELECT - 88 * - + 11 AS col2
----
968

query I rowsort
SELECT 15 * - - 48 * 74 AS col1
----
53280

query I rowsort
SELECT 31 * - 9
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL + CASE + COUNT( * ) WHEN + 13 THEN 71 + + CASE - + 26 WHEN - 0 * 38 THEN - 89 * + NULLIF ( + + 11, - + COUNT( * ) ) - + 7 + 6 ELSE NULL END + 46 END / 24 * - ( + 67 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + CASE + COUNT ( * ) WHEN + 13 THEN 71 + + CASE - + 26 WHEN - 0 * 38 THEN - 89 * + NULLIF ( + + 11, - + COUNT ( * ) ) - + 7 + 6 ELSE NULL END + 46 END / 24 * - ( + 67 ) col0
----
NULL

query I rowsort
SELECT 5 * + ( 99 ) AS col0
----
495

query II rowsort
SELECT + 59, 8 AS col1
----
59
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + SUM( ALL + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-7697
SELECT + SUM ( ALL + 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT DISTINCT - + ( + NULLIF ( + NULLIF ( - - NULLIF ( + - 23, COALESCE ( + 6, - + 9 * - 18 - + - 11 / - - COALESCE ( + 89, 78, - - CAST( NULL AS SIGNED ) ) + + 89 ) + - 53 ), + NULLIF ( - 71, 30 * - 11 ) ), - AVG ( CAST( NULL AS SIGNED ) ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - + ( + NULLIF ( + NULLIF ( - - NULLIF ( + - 23, COALESCE ( + 6, - + 9 * - 18 - + - 11 / - - COALESCE ( + 89, 78, - - CAST ( NULL AS INTEGER ) ) + + 89 ) + - 53 ), + NULLIF ( - 71, 30 * - 11 ) ), - AVG ( CAST ( NULL AS INTEGER ) ) ) )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7699
SELECT ALL + CAST( - + 36 AS SIGNED ) + - + MIN( DISTINCT - - 22 ) DIV - - 92
----
-36

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL + CAST ( - + 36 AS INTEGER ) + - + MIN ( DISTINCT - - 22 ) / - - 92
----
-36

query I rowsort
SELECT + 39 - + - ( + 26 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - 31 * - MIN( 86 ) * + 73 + 12 - - 54 * 34 AS col2
----
196466

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 31 * - MIN ( 86 ) * + 73 + 12 - - 54 * 34 AS col2
----
196466

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT 64 DIV + 69 * - - 46
----
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT 64 / + 69 * - - 46
----
0

query I rowsort
SELECT - ( - - 11 ) * - ( 88 ) AS col1
----
968

query I rowsort
SELECT - - ( + - 70 ) AS col0
----
-70

query I rowsort
SELECT - 6 + - 7
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL - 41 / - CASE + + 86 WHEN + CASE + 58 WHEN - COUNT( ALL - 80 ) THEN + 77 ELSE NULL END THEN - 8 - - + 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL - 41 / - CASE + + 86 WHEN + CASE + 58 WHEN - COUNT ( ALL - 80 ) THEN + 77 ELSE NULL END THEN - 8 - - + 44 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT 44 + + CAST( - - 12 AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7707
SELECT 44 + + CAST ( - - 12 AS INTEGER ) AS col1
----
56

query I rowsort
SELECT - ( 0 ) - + - 26 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - ( COUNT( * ) ) * - + 57 col0
----
57

skipif mysql # not compatible
query I rowsort label-7709
SELECT - ( COUNT ( * ) ) * - + 57 col0
----
57

query I rowsort
SELECT 90 + 71 AS col1
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7711
SELECT DISTINCT COUNT( DISTINCT - + 94 ) * + 26 col2, 79 DIV - 91 AS col1
----
26
0

skipif mysql # not compatible
query II rowsort label-7711
SELECT DISTINCT COUNT ( DISTINCT - + 94 ) * + 26 col2, 79 / - 91 AS col1
----
26
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7712
SELECT ( + 3 ) DIV - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7712
SELECT ( + 3 ) / - - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7713
SELECT DISTINCT MAX( ( - + 94 ) ) * - SUM( DISTINCT + 1 ) * + + 92 DIV + - COUNT( * ) + - 7
----
-8655

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT MAX ( ( - + 94 ) ) * - SUM ( DISTINCT + 1 ) * + + 92 / + - COUNT ( * ) + - 7
----
-8655

query I rowsort
SELECT 71 * 38 AS col1
----
2698

query I rowsort
SELECT DISTINCT 72 * + + 6
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL MAX( ALL + 1 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL MAX ( ALL + 1 ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7717
SELECT ALL - COALESCE ( - 1, 29 DIV - ( - 48 ) * - 63 + + 58 DIV - - ( + + AVG ( + 67 ) ), - 49 + + 85 * - 68 + - + COUNT( + 72 ) + - 18 * 44 + - - SUM( ALL - 91 ) ) + + + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL - COALESCE ( - 1, 29 / - ( - 48 ) * - 63 + + 58 / - - ( + + AVG ( + 67 ) ), - 49 + + 85 * - 68 + - + COUNT ( + 72 ) + - 18 * 44 + - - SUM ( ALL - 91 ) ) + + + 74 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT 98 DIV + - 5 - - 6 + MIN( DISTINCT - + 21 ) + - 67
----
-101

skipif mysql # not compatible
query I rowsort label-7718
SELECT 98 / + - 5 - - 6 + MIN ( DISTINCT - + 21 ) + - 67
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7719
SELECT ALL NULLIF ( + - ( - 93 ), + CAST( + - 35 AS SIGNED ) ) * - - 37 * 0 * + - CAST( - - COUNT( DISTINCT 77 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL NULLIF ( + - ( - 93 ), + CAST ( + - 35 AS INTEGER ) ) * - - 37 * 0 * + - CAST ( - - COUNT ( DISTINCT 77 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 41 * 51
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT - COUNT( * ) * - 59 + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7721
SELECT - COUNT ( * ) * - 59 + + COUNT ( * )
----
60

query II rowsort
SELECT 18 + - + 4 AS col1, - 34
----
14
-34

query I rowsort
SELECT DISTINCT + NULLIF ( + 26, ( 76 ) ) * + 94
----
2444

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT - - NULLIF ( SUM( ALL + + 97 ), + ( - + 49 ) * 79 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT - - NULLIF ( SUM ( ALL + + 97 ), + ( - + 49 ) * 79 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT DISTINCT - + 13 - COUNT( + 91 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT - + 13 - COUNT ( + 91 ) col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT 66 * - + COUNT( * ) - - 17 - + 73 * - 66 AS col0
----
4769

skipif mysql # not compatible
query I rowsort label-7726
SELECT 66 * - + COUNT ( * ) - - 17 - + 73 * - 66 AS col0
----
4769

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT COUNT( * ) * - 27 * - 53 col0
----
1431

skipif mysql # not compatible
query I rowsort label-7727
SELECT COUNT ( * ) * - 27 * - 53 col0
----
1431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT DISTINCT + 51 * - 83 - + 73 * CAST( - 18 AS SIGNED ) AS col0
----
-2919

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT + 51 * - 83 - + 73 * CAST ( - 18 AS INTEGER ) AS col0
----
-2919

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL MAX( 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL MAX ( 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT 71 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT 71 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT NULLIF ( - 76, + 86 ) * MIN( ALL + 58 )
----
-4408

skipif mysql # not compatible
query I rowsort label-7731
SELECT NULLIF ( - 76, + 86 ) * MIN ( ALL + 58 )
----
-4408

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT DISTINCT 24 DIV + + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT 24 / + + 67 AS col0
----
0

query II rowsort
SELECT ALL 52 AS col1, - 42 AS col2
----
52
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL + COUNT( - - 96 ) + + - COUNT( - + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + COUNT ( - - 96 ) + + - COUNT ( - + 82 ) AS col0
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - - 26, + + 99 ) + 93
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL 77 + + COUNT( * ) - + - 54 + + 35 + 58 - + MIN( + + 75 )
----
150

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL 77 + + COUNT ( * ) - + - 54 + + 35 + 58 - + MIN ( + + 75 )
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-7737
SELECT ALL ( 41 ) + + + 46 * - + COUNT( * ) * + 52 col2, - 92 AS col2
----
-2351
-92

skipif mysql # not compatible
query II rowsort label-7737
SELECT ALL ( 41 ) + + + 46 * - + COUNT ( * ) * + 52 col2, - 92 AS col2
----
-2351
-92

query I rowsort
SELECT ALL 23 * - 54 AS col0
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT CASE - + AVG ( DISTINCT ( + - 69 ) ) WHEN 93 THEN + + 8 WHEN - - ( - 59 ) THEN 72 + 2 ELSE + - 36 END * - ( - + COUNT( * ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT CASE - + AVG ( DISTINCT ( + - 69 ) ) WHEN 93 THEN + + 8 WHEN - - ( - 59 ) THEN 72 + 2 ELSE + - 36 END * - ( - + COUNT ( * ) ) AS col2
----
-36

query I rowsort
SELECT ALL ( + - 63 ) + 6
----
-57

query I rowsort
SELECT + 23 * + 28 AS col1
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL + 3 * COUNT( * ) - - 2 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + 3 * COUNT ( * ) - - 2 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT DISTINCT - + CASE 26 WHEN + 57 - - 58 THEN 19 + + + 74 + + 82 WHEN - 82 * - COUNT( * ) + - 67 + SUM( ALL 29 ) + - 67 / + COUNT( * ) * - + COALESCE ( + - 95, - ( - CAST( - 44 AS SIGNED ) ) ) * + 31 THEN - - COUNT( * ) END * + + CAST( + 69 AS SIGNED ) / + 60 - - - 65 - COUNT( * ) * - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT - + CASE 26 WHEN + 57 - - 58 THEN 19 + + + 74 + + 82 WHEN - 82 * - COUNT ( * ) + - 67 + SUM ( ALL 29 ) + - 67 / + COUNT ( * ) * - + COALESCE ( + - 95, - ( - CAST ( - 44 AS INTEGER ) ) ) * + 31 THEN - - COUNT ( * ) END * + + CAST ( + 69 AS INTEGER ) / + 60 - - - 65 - COUNT ( * ) * - 11 col2
----
NULL

query I rowsort
SELECT + + 46 * - - 87
----
4002

query I rowsort
SELECT ALL + - 39 * + 57
----
-2223

query I rowsort
SELECT + 65 * + - 35 * + 61 AS col2
----
-138775

query I rowsort
SELECT ALL 5 * - 49 AS col0
----
-245

query I rowsort
SELECT + - 68 - + + 40 col1
----
-108

query I rowsort
SELECT ALL + + ( - 43 )
----
-43

query I rowsort
SELECT DISTINCT + - 66 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT DISTINCT + - COUNT( + - 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + - COUNT ( + - 52 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + COALESCE ( - 26, + - 88 * + 57 * - 92 * - 30 * - - 65 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-7753
SELECT ALL - 58 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - 58 / - 70 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT + 77 DIV 6 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7754
SELECT + 77 / 6 AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT - + COUNT( * ) DIV 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7755
SELECT - + COUNT ( * ) / 7 AS col1
----
0

query I rowsort
SELECT DISTINCT 30 * 30 * 8 * + 82 * - 10 + - ( + 41 )
----
-5904041

query I rowsort
SELECT - 25 * + 98 * + 60 AS col1
----
-147000

onlyif mysql # DIV for integer division: 
query I rowsort label-7758
SELECT - 84 DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-7758
SELECT - 84 / 61
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT - MIN( DISTINCT 98 ) + + 13
----
-85

skipif mysql # not compatible
query I rowsort label-7759
SELECT - MIN ( DISTINCT 98 ) + + 13
----
-85

query I rowsort
SELECT - 72 + + 85 * 60 - - + 39 + - 90 AS col1
----
4977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT + MIN( ALL 66 ) - - AVG ( CAST( NULL AS SIGNED ) ) / 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT + MIN ( ALL 66 ) - - AVG ( CAST ( NULL AS INTEGER ) ) / 67
----
NULL

query I rowsort
SELECT ALL + ( - 73 ) * + - 95 AS col2
----
6935

query II rowsort
SELECT 20 AS col2, + 59 AS col0
----
20
59

query I rowsort
SELECT ALL + ( 67 ) + - 71
----
-4

query I rowsort
SELECT - 18 + 38 AS col1
----
20

query I rowsort
SELECT DISTINCT ( 63 )
----
63

query I rowsort
SELECT - 23 + 73
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7768
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7768
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + 61
----
NULL
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT - 99 + - CAST( NULL AS SIGNED ) - 38 * - 58 * + ( + - 87 ) * - 80 * - 99 / - 22 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT - 99 + - CAST ( NULL AS INTEGER ) - 38 * - 58 * + ( + - 87 ) * - 80 * - 99 / - 22 * + 80
----
NULL

query I rowsort
SELECT - ( + ( + + 32 ) ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL ( MAX( + - 71 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL ( MAX ( + - 71 ) ) AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT ALL COUNT( * ) * + 80 DIV + 4 - 39 + NULLIF ( - 63, + + 82 - + + 30 * - 60 ) * + 40 AS col1
----
-2539

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL COUNT ( * ) * + 80 / + 4 - 39 + NULLIF ( - 63, + + 82 - + + 30 * - 60 ) * + 40 AS col1
----
-2539

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7773
SELECT + 79 - 81 AS col0, ( CAST( NULL AS SIGNED ) ) + - 4 / + 43 AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-7773
SELECT + 79 - 81 AS col0, ( CAST ( NULL AS INTEGER ) ) + - 4 / + 43 AS col2
----
-2
NULL

query I rowsort
SELECT + 83 * - - 42 + - - 46 AS col2
----
3532

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL - 78 * + - ( COUNT( ALL 18 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL - 78 * + - ( COUNT ( ALL 18 ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT - - ( 8 ) * + - 38 - COUNT( * ) + - 61 * - - 95, 54 AS col1
----
-6100
54

skipif mysql # not compatible
query II rowsort label-7776
SELECT - - ( 8 ) * + - 38 - COUNT ( * ) + - 61 * - - 95, 54 AS col1
----
-6100
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7777
SELECT - COUNT( * ) DIV 29, + COALESCE ( + COUNT( * ), MIN( DISTINCT + 98 ) ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-7777
SELECT - COUNT ( * ) / 29, + COALESCE ( + COUNT ( * ), MIN ( DISTINCT + 98 ) ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + ( 91 ) / + CASE + 67 WHEN + 10 THEN - - 41 * - 0 + - 98 WHEN COUNT( * ) THEN NULL END * - + 30 * - - 72 + + 39 + 97 * - - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT + ( 91 ) / + CASE + 67 WHEN + 10 THEN - - 41 * - 0 + - 98 WHEN COUNT ( * ) THEN NULL END * - + 30 * - - 72 + + 39 + 97 * - - 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT + 91 * 97 + - 96 + - 28 + - 57 * + - COUNT( - 69 ) * - CASE ( + 11 ) WHEN + 12 THEN NULL WHEN - - COUNT( * ) THEN 7 + + 48 END + MAX( DISTINCT + - 69 ) - + 69 - - MIN( DISTINCT - - 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 91 * 97 + - 96 + - 28 + - 57 * + - COUNT ( - 69 ) * - CASE ( + 11 ) WHEN + 12 THEN NULL WHEN - - COUNT ( * ) THEN 7 + + 48 END + MAX ( DISTINCT + - 69 ) - + 69 - - MIN ( DISTINCT - - 49 ) AS col2
----
NULL

query I rowsort
SELECT + - 34 * - 4
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT + - COUNT( * ) + + ( 77 )
----
76

skipif mysql # not compatible
query I rowsort label-7781
SELECT + - COUNT ( * ) + + ( 77 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7782
SELECT + + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT + + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7783
SELECT ALL + COUNT( * ) AS col1, + 91 + - - CASE + + NULLIF ( 12, - CAST( + - 91 AS SIGNED ) ) WHEN - + 74 + + 75 THEN + + COUNT( * ) * - ( - 3 ) * 49 WHEN + 97 - + 56 THEN NULL ELSE NULL END / + ( 1 ) * COUNT( * ) + + 50
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7783
SELECT ALL + COUNT ( * ) AS col1, + 91 + - - CASE + + NULLIF ( 12, - CAST ( + - 91 AS INTEGER ) ) WHEN - + 74 + + 75 THEN + + COUNT ( * ) * - ( - 3 ) * 49 WHEN + 97 - + 56 THEN NULL ELSE NULL END / + ( 1 ) * COUNT ( * ) + + 50
----
1
NULL

query I rowsort
SELECT - 24 * + + 21 + + 65 + 13 * + 76 AS col2
----
549

query II rowsort
SELECT - 30, + 68 AS col1
----
-30
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7786
SELECT + 66 * CAST( + COUNT( * ) AS SIGNED ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7786
SELECT + 66 * CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + + 7 + + - 85 + COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7787
SELECT + + 7 + + - 85 + COUNT ( * ) AS col2
----
-77

query I rowsort
SELECT - ( + 51 ) AS col0
----
-51

query I rowsort
SELECT - - 32 + + 49 * - 38
----
-1830

query I rowsort
SELECT ALL 78 + + + 75 AS col0
----
153

query II rowsort
SELECT DISTINCT - 65 + + - 65 AS col1, - 69 * + - 6 AS col0
----
-130
414

query I rowsort
SELECT DISTINCT 13 * + + 93
----
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT 25 * MAX( - COALESCE ( 25, + 62 ) ) AS col1
----
-625

skipif mysql # not compatible
query I rowsort label-7793
SELECT 25 * MAX ( - COALESCE ( 25, + 62 ) ) AS col1
----
-625

query I rowsort
SELECT 41 + + - 67
----
-26

query I rowsort
SELECT ALL + 48 + 18 col0
----
66

query I rowsort
SELECT 50 * 50 * + 2
----
5000

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 24 - - + ( + COALESCE ( 71, 70 ) ) * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-7797
SELECT 24 - - + ( + COALESCE ( 71, 70 ) ) * - COUNT ( * )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7798
SELECT 34 - COUNT( * ) * - 99 * + 18 * + CAST( NULL AS SIGNED ) * 5 * - COUNT( * ) * + CASE + COUNT( * ) WHEN + 64 * CAST( NULL AS DECIMAL ) * - 48 * + 56 + - ( 47 ) * + 0 * + + 23 THEN - 95 - + - 13 * ( 18 ) * + 46 * 82 ELSE + 9 END * - + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT 34 - COUNT ( * ) * - 99 * + 18 * + CAST ( NULL AS INTEGER ) * 5 * - COUNT ( * ) * + CASE + COUNT ( * ) WHEN + 64 * CAST ( NULL AS REAL ) * - 48 * + 56 + - ( 47 ) * + 0 * + + 23 THEN - 95 - + - 13 * ( 18 ) * + 46 * 82 ELSE + 9 END * - + 72 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 58 * + - 75 AS col2
----
4350

query I rowsort
SELECT ALL + 85 - - 37 AS col2
----
122

query I rowsort
SELECT DISTINCT - 40 * + 89 AS col0
----
-3560

query II rowsort
SELECT - 81 - + 40 AS col0, - 67
----
-121
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT MAX( + + NULLIF ( 25, 98 ) ) * + 89
----
2225

skipif mysql # not compatible
query I rowsort label-7803
SELECT MAX ( + + NULLIF ( 25, 98 ) ) * + 89
----
2225

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT ALL COUNT( ALL - ( - + 97 ) ) AS col0, - 56
----
1
-56

skipif mysql # not compatible
query II rowsort label-7804
SELECT ALL COUNT ( ALL - ( - + 97 ) ) AS col0, - 56
----
1
-56

query I rowsort
SELECT ALL + CASE 60 WHEN - 61 THEN + AVG ( - - 75 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT CASE + 68 WHEN - ( 78 ) + - 80 THEN + 35 / - 85 + COUNT( * ) + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT CASE + 68 WHEN - ( 78 ) + - 80 THEN + 35 / - 85 + COUNT ( * ) + 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - + MIN( DISTINCT 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7807
SELECT - + MIN ( DISTINCT 69 ) AS col2
----
-69

query II rowsort
SELECT + 17 * + - CASE + 73 WHEN + 0 THEN 45 * + + COALESCE ( - + 25, + 35 ) ELSE NULL END AS col0, - 38
----
NULL
-38

query I rowsort
SELECT + - 64 col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT + - SUM( DISTINCT + - 78 ) AS col1, + 65 + + 2
----
78
67

skipif mysql # not compatible
query II rowsort label-7810
SELECT + - SUM ( DISTINCT + - 78 ) AS col1, + 65 + + 2
----
78
67

query I rowsort
SELECT DISTINCT 27 * + 93 * 39 * 73
----
7148817

query I rowsort
SELECT DISTINCT + - NULLIF ( 74, + 46 + - ( + 0 ) ) + + - 70 * 68 AS col1
----
-4834

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT + 50 DIV 8 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7813
SELECT + 50 / 8 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT 33 DIV 96 + + COALESCE ( - - ( 53 ), - - 29 * + 85 + + NULLIF ( - 91, 31 + + + 64 + + AVG ( - + 43 ) * - 14 ) * + - ( + - 97 ) DIV 16 + + + COUNT( * ) * - 51 )
----
53

skipif mysql # not compatible
query I rowsort label-7814
SELECT 33 / 96 + + COALESCE ( - - ( 53 ), - - 29 * + 85 + + NULLIF ( - 91, 31 + + + 64 + + AVG ( - + 43 ) * - 14 ) * + - ( + - 97 ) / 16 + + + COUNT ( * ) * - 51 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL - ( - 13 ) + + + 44 * + SUM( ( + - 47 ) ) * - ( + + 67 ) * - 40 + - 8 AS col1
----
-5542235

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - ( - 13 ) + + + 44 * + SUM ( ( + - 47 ) ) * - ( + + 67 ) * - 40 + - 8 AS col1
----
-5542235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7816
SELECT 21 - - 20 col0, COUNT( * ) * + - COALESCE ( - 46, - 94, - 94 ) + - 14 * - + 34 * + ( - + CAST( NULL AS SIGNED ) ) col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-7816
SELECT 21 - - 20 col0, COUNT ( * ) * + - COALESCE ( - 46, - 94, - 94 ) + - 14 * - + 34 * + ( - + CAST ( NULL AS INTEGER ) ) col1
----
41
NULL

query I rowsort
SELECT + COALESCE ( + - 67, - + 47 + 17 ) * + + ( 68 )
----
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - ( 98 ) - + COUNT( ALL + ( + 5 ) ) * 97
----
-195

skipif mysql # not compatible
query I rowsort label-7818
SELECT - ( 98 ) - + COUNT ( ALL + ( + 5 ) ) * 97
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) * - - 75 + + MAX( DISTINCT - 64 ) - + 20 * - 87 THEN NULL WHEN + + 37 THEN ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) * - - 75 + + MAX ( DISTINCT - 64 ) - + 20 * - 87 THEN NULL WHEN + + 37 THEN ( COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT ALL 16 + + + COUNT( * ), 21 AS col0
----
17
21

skipif mysql # not compatible
query II rowsort label-7820
SELECT ALL 16 + + + COUNT ( * ), 21 AS col0
----
17
21

query I rowsort
SELECT - ( - 8 ) * 24 - - 49 AS col1
----
241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT ALL + COUNT( - 91 ) + + 24 DIV + + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + COUNT ( - 91 ) + + 24 / + + COUNT ( * ) AS col1
----
25

query I rowsort
SELECT DISTINCT - 24 * + 98 AS col1
----
-2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT 9 * CAST( NULL AS SIGNED ) * + ( + 98 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT 9 * CAST ( NULL AS INTEGER ) * + ( + 98 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT ALL SUM( + 4 ) + + - 92 AS col2, - 83 * + NULLIF ( + 45, 59 ) * 27 + + 56 + + 59 + - - 59 AS col0
----
-88
-100671

skipif mysql # not compatible
query II rowsort label-7825
SELECT ALL SUM ( + 4 ) + + - 92 AS col2, - 83 * + NULLIF ( + 45, 59 ) * 27 + + 56 + + 59 + - - 59 AS col0
----
-88
-100671

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ( - 10 ) - - 39 + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7826
SELECT ( - 10 ) - - 39 + + COUNT ( * )
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-7827
SELECT 9 + + + 89 DIV + + 2 AS col2, + 62 AS col0
----
53
62

skipif mysql # not compatible
query II rowsort label-7827
SELECT 9 + + + 89 / + + 2 AS col2, + 62 AS col0
----
53
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7828
SELECT + COUNT( * ), + 20 AS col2
----
1
20

skipif mysql # not compatible
query II rowsort label-7828
SELECT + COUNT ( * ), + 20 AS col2
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL 1 - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL 1 - + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT CASE 13 WHEN - ( + - ( - 67 ) ) THEN - - 24 WHEN + - 81 + - 39 THEN NULL WHEN + 99 THEN NULL END * - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT COUNT( * ) + MIN( DISTINCT + 9 )
----
10

skipif mysql # not compatible
query I rowsort label-7831
SELECT COUNT ( * ) + MIN ( DISTINCT + 9 )
----
10

query I rowsort
SELECT 60 * + - 32 AS col1
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL ( 78 ) * - + CASE 79 WHEN - AVG ( ALL - 75 ) THEN - 31 WHEN - 10 * - 1 THEN NULL END / - + COUNT( * ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL ( 78 ) * - + CASE 79 WHEN - AVG ( ALL - 75 ) THEN - 31 WHEN - 10 * - 1 THEN NULL END / - + COUNT ( * ) + + + COUNT ( * )
----
NULL

query I rowsort
SELECT 34 + 68
----
102

query I rowsort
SELECT ALL 65 - 91 + + 36 + 10
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-7836
SELECT DISTINCT 18, 35 DIV 99 AS col1
----
18
0

skipif mysql # not compatible
query II rowsort label-7836
SELECT DISTINCT 18, 35 / 99 AS col1
----
18
0

query II rowsort
SELECT ( - - ( 59 ) ) * 22, - 12 + 2 * - 49 - 3 AS col2
----
1298
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7838
SELECT DISTINCT 77 AS col1, CASE 13 WHEN + - 82 * - 71 - + + 54 + + COUNT( * ) THEN - 37 WHEN + 47 + - COUNT( + - 40 ) THEN CASE 97 WHEN CAST( + 42 AS SIGNED ) THEN + COALESCE ( - COALESCE ( SUM( DISTINCT + - 75 ), 40 * - 80 + 20 * 59 * - 80 + + + 43 * 88 + - 39 ), 42, - 36 + - + AVG ( + - 87 ) ) - - 67 + + - COUNT( * ) WHEN + 73 THEN NULL WHEN + 3 * 74 + + 51 * - 57 THEN 45 * 93 + + 81 ELSE NULL END ELSE NULL END + - - 66
----
77
NULL

skipif mysql # not compatible
query II rowsort label-7838
SELECT DISTINCT 77 AS col1, CASE 13 WHEN + - 82 * - 71 - + + 54 + + COUNT ( * ) THEN - 37 WHEN + 47 + - COUNT ( + - 40 ) THEN CASE 97 WHEN CAST ( + 42 AS INTEGER ) THEN + COALESCE ( - COALESCE ( SUM ( DISTINCT + - 75 ), 40 * - 80 + 20 * 59 * - 80 + + + 43 * 88 + - 39 ), 42, - 36 + - + AVG ( + - 87 ) ) - - 67 + + - COUNT ( * ) WHEN + 73 THEN NULL WHEN + 3 * 74 + + 51 * - 57 THEN 45 * 93 + + 81 ELSE NULL END ELSE NULL END + - - 66
----
77
NULL

query I rowsort
SELECT 75 * - 76 col0
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL + MIN( DISTINCT - + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + MIN ( DISTINCT - + 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7841
SELECT COUNT( * ) + AVG ( + ( + - CAST( NULL AS DECIMAL ) ) ) + COUNT( * ) - - 92 - + - 25 / - - NULLIF ( 56, - 43 ) * - 14 + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT COUNT ( * ) + AVG ( + ( + - CAST ( NULL AS REAL ) ) ) + COUNT ( * ) - - 92 - + - 25 / - - NULLIF ( 56, - 43 ) * - 14 + 32 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT + 2 AS col1, - MIN( ALL 2 )
----
2
-2

skipif mysql # not compatible
query II rowsort label-7842
SELECT + 2 AS col1, - MIN ( ALL 2 )
----
2
-2

query I rowsort
SELECT ALL + 95 + + 35
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7844
SELECT - 36 AS col1, COALESCE ( + + CAST( NULL AS SIGNED ), COUNT( DISTINCT - - 47 ) ) + 79 AS col2
----
-36
80

skipif mysql # not compatible
query II rowsort label-7844
SELECT - 36 AS col1, COALESCE ( + + CAST ( NULL AS INTEGER ), COUNT ( DISTINCT - - 47 ) ) + 79 AS col2
----
-36
80

query I rowsort
SELECT ALL - 26 + 16 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7846
SELECT ( + CAST( ( + 12 ) AS SIGNED ) ) - - 27 * - 18 AS col2, CAST( - 44 AS SIGNED ) + 35 AS col0
----
-474
-9

skipif mysql # not compatible
query II rowsort label-7846
SELECT ( + CAST ( ( + 12 ) AS INTEGER ) ) - - 27 * - 18 AS col2, CAST ( - 44 AS INTEGER ) + 35 AS col0
----
-474
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - MAX( DISTINCT - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7847
SELECT - MAX ( DISTINCT - 62 ) AS col0
----
62

query I rowsort
SELECT ALL - 39 * 83 + - 34 * COALESCE ( + ( - 69 ), - 70 )
----
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT - + 82 / + 94 * - 47 + + 94 * - CASE 26 WHEN COUNT( * ) / + - AVG ( - + 53 ) / + 4 THEN NULL WHEN + - CASE 69 WHEN + 82 THEN NULL WHEN - 82 THEN NULL WHEN + 12 + ( + - 47 ) THEN ( MAX( - - ( NULLIF ( + + ( - - 35 ), 8 ) ) ) ) * - - 73 * + + ( - CAST( ( 1 ) AS SIGNED ) ) + 58 * + 74 ELSE COUNT( * ) END THEN - + ( + 13 ) WHEN CAST( NULL AS SIGNED ) + + 22 THEN NULL ELSE NULL END * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT - + 82 / + 94 * - 47 + + 94 * - CASE 26 WHEN COUNT ( * ) / + - AVG ( - + 53 ) / + 4 THEN NULL WHEN + - CASE 69 WHEN + 82 THEN NULL WHEN - 82 THEN NULL WHEN + 12 + ( + - 47 ) THEN ( MAX ( - - ( NULLIF ( + + ( - - 35 ), 8 ) ) ) ) * - - 73 * + + ( - CAST ( ( 1 ) AS INTEGER ) ) + 58 * + 74 ELSE COUNT ( * ) END THEN - + ( + 13 ) WHEN CAST ( NULL AS INTEGER ) + + 22 THEN NULL ELSE NULL END * + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL + 25 * + 62 + + COUNT( * ) - + 81 AS col2
----
1470

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL + 25 * + 62 + + COUNT ( * ) - + 81 AS col2
----
1470

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7851
SELECT - 4 + 12 * + - 0 * 86 * 41 DIV - 95 + - CAST( + + ( + 8 ) AS SIGNED ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-7851
SELECT - 4 + 12 * + - 0 * 86 * 41 / - 95 + - CAST ( + + ( + 8 ) AS INTEGER ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + 40 * - 95 - + COUNT( ALL - 7 ) * + ( + 65 ) - + NULLIF ( 44, - 35 ) * 78 + - 18 + 71 - - - 49 + - NULLIF ( - + 15, - COUNT( * ) ) + 3
----
-7275

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 40 * - 95 - + COUNT ( ALL - 7 ) * + ( + 65 ) - + NULLIF ( 44, - 35 ) * 78 + - 18 + 71 - - - 49 + - NULLIF ( - + 15, - COUNT ( * ) ) + 3
----
-7275

query II rowsort
SELECT + - 48, - 18 AS col1
----
-48
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7854
SELECT + CASE 78 WHEN + 99 THEN - - ( - 98 ) WHEN 21 THEN - 19 END / - - CAST( NULL AS DECIMAL ) + + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT + CASE 78 WHEN + 99 THEN - - ( - 98 ) WHEN 21 THEN - 19 END / - - CAST ( NULL AS REAL ) + + 79 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7855
SELECT - - COUNT( ALL + 26 ) * ( + 94 ) * + + NULLIF ( + CASE ( + 89 ) WHEN + - 19 * + 83 * 6 THEN NULL ELSE 66 * 28 - + - ( + ( + + 77 ) ) END, - + 66 * - - 28 * + 0 ) - + 58 + + 98 DIV 93 DIV - + 70 - - + NULLIF ( + 87, - + 42 ) * 65 * + 86 - 8 - - 57 * - + 6 AS col2
----
666872

skipif mysql # not compatible
query I rowsort label-7855
SELECT - - COUNT ( ALL + 26 ) * ( + 94 ) * + + NULLIF ( + CASE ( + 89 ) WHEN + - 19 * + 83 * 6 THEN NULL ELSE 66 * 28 - + - ( + ( + + 77 ) ) END, - + 66 * - - 28 * + 0 ) - + 58 + + 98 / 93 / - + 70 - - + NULLIF ( + 87, - + 42 ) * 65 * + 86 - 8 - - 57 * - + 6 AS col2
----
666872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7856
SELECT ALL COUNT( DISTINCT 4 ) * 82 * - 9 * 8 * - 83 + + 19 + CASE - + 76 WHEN COUNT( * ) / + 77 THEN NULL WHEN - 28 THEN - - CAST( + COUNT( * ) AS SIGNED ) * 13 / 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL COUNT ( DISTINCT 4 ) * 82 * - 9 * 8 * - 83 + + 19 + CASE - + 76 WHEN COUNT ( * ) / + 77 THEN NULL WHEN - 28 THEN - - CAST ( + COUNT ( * ) AS INTEGER ) * 13 / 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT + MIN( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT + MIN ( ALL + 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT ALL + 24 * - 59 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + 24 * - 59 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 47 * - + 18 + 64 * 75 AS col1
----
3954

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT DISTINCT SUM( - ( + - ( + + 33 ) ) ) * ( - 94 )
----
-3102

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT SUM ( - ( + - ( + + 33 ) ) ) * ( - 94 )
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT + SUM( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + SUM ( 22 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT ALL - 89 * + - 30 * + - COUNT( * ) - - COUNT( * ) AS col0, 63
----
-2669
63

skipif mysql # not compatible
query II rowsort label-7862
SELECT ALL - 89 * + - 30 * + - COUNT ( * ) - - COUNT ( * ) AS col0, 63
----
-2669
63

query II rowsort
SELECT - 30 * + 36 col1, 0 AS col1
----
-1080
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT + COUNT( * ) * - + 99 AS col2, 68 AS col2
----
-99
68

skipif mysql # not compatible
query II rowsort label-7864
SELECT + COUNT ( * ) * - + 99 AS col2, 68 AS col2
----
-99
68

query I rowsort
SELECT + 95 + 94
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-7866
SELECT MIN( ALL + 68 ) AS col1, 16 * - 0
----
68
0

skipif mysql # not compatible
query II rowsort label-7866
SELECT MIN ( ALL + 68 ) AS col1, 16 * - 0
----
68
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT - 83 DIV - - 40 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7867
SELECT - 83 / - - 40 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7868
SELECT + 89 DIV - 77 * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7868
SELECT + 89 / - 77 * - - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7869
SELECT ALL + ( 38 ) * - 9 + - 67 col2, ( 63 ) * ( + + 28 ) DIV 12 + + 40 + + 37 col2
----
-409
224

skipif mysql # not compatible
query II rowsort label-7869
SELECT ALL + ( 38 ) * - 9 + - 67 col2, ( 63 ) * ( + + 28 ) / 12 + + 40 + + 37 col2
----
-409
224

query I rowsort
SELECT AVG ( DISTINCT CASE - 35 WHEN + 53 * - + 8 THEN 89 END )
----
NULL

query I rowsort
SELECT ALL ( - - 4 ) col1
----
4

query I rowsort
SELECT - COALESCE ( + 93, + - 31 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - MIN( DISTINCT 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7873
SELECT - MIN ( DISTINCT 36 ) AS col0
----
-36

query I rowsort
SELECT + ( + 26 ) * + + 41 AS col2
----
1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7875
SELECT ALL 5 * + CAST( NULL AS SIGNED ), + SUM( - - 14 ) col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-7875
SELECT ALL 5 * + CAST ( NULL AS INTEGER ), + SUM ( - - 14 ) col2
----
NULL
14

query I rowsort
SELECT + - 85 + - + 45
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT + SUM( ALL - 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-7877
SELECT + SUM ( ALL - 53 ) col0
----
-53

query I rowsort
SELECT - - ( - - 32 ) AS col1
----
32

query II rowsort
SELECT + 29 - - 28 AS col2, 72 * - 55
----
57
-3960

query I rowsort
SELECT ALL - 46 * 19 AS col0
----
-874

onlyif mysql # DIV for integer division: 
query II rowsort label-7881
SELECT + - 35 DIV 56, + 27 + 85 * - 91 AS col2
----
0
-7708

skipif mysql # not compatible
query II rowsort label-7881
SELECT + - 35 / 56, + 27 + 85 * - 91 AS col2
----
0
-7708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7882
SELECT - CAST( - ( ( + 6 ) ) AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7882
SELECT - CAST ( - ( ( + 6 ) ) AS INTEGER ) AS col2
----
6

query I rowsort
SELECT ALL - 55 + + - 14 AS col0
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7884
SELECT ALL - + 13 + + 84 + 67 * - 72 + + 64 / + CAST( NULL AS DECIMAL ) - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL - + 13 + + 84 + 67 * - 72 + + 64 / + CAST ( NULL AS REAL ) - - 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT - COALESCE ( + COUNT( * ), - 83 + 85 + - 37 DIV + 70, - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7885
SELECT - COALESCE ( + COUNT ( * ), - 83 + 85 + - 37 / + 70, - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - - 3 + + 23
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + + MIN( ( - 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7887
SELECT + + MIN ( ( - 40 ) )
----
-40

query I rowsort
SELECT DISTINCT + 90 * - - 2
----
180

onlyif mysql # DIV for integer division: 
query II rowsort label-7889
SELECT DISTINCT + - ( 52 ) DIV + 24 + - - 71 + + + 17 * 6 * - 75 - + 26 - ( + - 35 ), 32 AS col0
----
-7572
32

skipif mysql # not compatible
query II rowsort label-7889
SELECT DISTINCT + - ( 52 ) / + 24 + - - 71 + + + 17 * 6 * - 75 - + 26 - ( + - 35 ), 32 AS col0
----
-7572
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT ALL - 45 / + + CAST( NULL AS SIGNED ) * + + 20 - - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - 45 / + + CAST ( NULL AS INTEGER ) * + + 20 - - - 83
----
NULL

query I rowsort
SELECT - 7 - + 27
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7892
SELECT - COALESCE ( 99, 41 DIV + 95 * 23, + ( - CAST( NULL AS SIGNED ) ), 6 - + COUNT( * ) ) * + + 11
----
-1089

skipif mysql # not compatible
query I rowsort label-7892
SELECT - COALESCE ( 99, 41 / + 95 * 23, + ( - CAST ( NULL AS INTEGER ) ), 6 - + COUNT ( * ) ) * + + 11
----
-1089

query I rowsort
SELECT ( + 70 ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ALL + SUM( DISTINCT 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + SUM ( DISTINCT 83 ) AS col2
----
83

query I rowsort
SELECT - 83 - - ( + 68 ) * + 72 AS col1
----
4813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7896
SELECT ALL - 17 DIV - MAX( ALL + 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL - 17 / - MAX ( ALL + 17 ) AS col0
----
1

query I rowsort
SELECT - 77 * - - 40 * - 69 * + - 40 AS col2
----
-8500800

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT COALESCE ( + 32, COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-7898
SELECT COALESCE ( + 32, COUNT ( * ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT ALL + MIN( DISTINCT + - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL + MIN ( DISTINCT + - 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT - 99 * + ( - COUNT( * ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - 99 * + ( - COUNT ( * ) ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT ALL - 26 DIV - + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - 26 / - + 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT - 13 * + + COUNT( * ) + + + 64 col1, CASE NULLIF ( + 27, COUNT( * ) - + + MIN( ( - 70 ) ) ) WHEN + + 66 * 0 * + + ( - 86 ) THEN - 79 * + + 69 ELSE NULL END AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-7902
SELECT - 13 * + + COUNT ( * ) + + + 64 col1, CASE NULLIF ( + 27, COUNT ( * ) - + + MIN ( ( - 70 ) ) ) WHEN + + 66 * 0 * + + ( - 86 ) THEN - 79 * + + 69 ELSE NULL END AS col0
----
51
NULL

query I rowsort
SELECT - COALESCE ( + + 45, 12 + - - 63 * - 33 + - 25 ) - 65 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT - 17 * COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-7904
SELECT - 17 * COUNT ( * ) AS col2
----
-17

query I rowsort
SELECT ( 11 ) * - 76 + - 47
----
-883

query I rowsort
SELECT NULLIF ( 45, + 33 + - 1 ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7907
SELECT ALL 81 * - 46 + COALESCE ( 38, + + CAST( 18 AS SIGNED ), + 55 + 53 + + + 13, - COUNT( * ) )
----
-3688

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL 81 * - 46 + COALESCE ( 38, + + CAST ( 18 AS INTEGER ), + 55 + 53 + + + 13, - COUNT ( * ) )
----
-3688

query I rowsort
SELECT - 46 + - 90
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL 87 * COUNT( * ) + - COUNT( * ) * 16
----
71

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL 87 * COUNT ( * ) + - COUNT ( * ) * 16
----
71

query I rowsort
SELECT DISTINCT + 10 + - 62 * - 43
----
2676

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT - COUNT( * ) + COALESCE ( - 54, - 78 )
----
-55

skipif mysql # not compatible
query I rowsort label-7911
SELECT - COUNT ( * ) + COALESCE ( - 54, - 78 )
----
-55

query I rowsort
SELECT + 92 + 40
----
132

query I rowsort
SELECT - 21 + 52 * - 21 AS col2
----
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT COUNT( DISTINCT 59 ) + + 77 * 15 col0
----
1156

skipif mysql # not compatible
query I rowsort label-7914
SELECT COUNT ( DISTINCT 59 ) + + 77 * 15 col0
----
1156

query I rowsort
SELECT 29 * + ( - 48 )
----
-1392

query I rowsort
SELECT 0 + - 63 AS col1
----
-63

query I rowsort
SELECT ALL 85 - 52 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT DISTINCT 97 * - NULLIF ( 64, + 51 + + COUNT( * ) ) AS col0
----
-6208

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT 97 * - NULLIF ( 64, + 51 + + COUNT ( * ) ) AS col0
----
-6208

query I rowsort
SELECT DISTINCT 14 - 37 * - 96
----
3566

query I rowsort
SELECT 19 * 6
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT CAST( NULL AS SIGNED ) + COALESCE ( - 61 + - NULLIF ( + COUNT( * ), CAST( 38 AS SIGNED ) * 41 + - COUNT( * ) ) * 14, 86 ) * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT CAST ( NULL AS INTEGER ) + COALESCE ( - 61 + - NULLIF ( + COUNT ( * ), CAST ( 38 AS INTEGER ) * 41 + - COUNT ( * ) ) * 14, 86 ) * + 62 AS col0
----
NULL

query I rowsort
SELECT 9 * + 90
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT 84 * + 36 + COUNT( * ) AS col0
----
3025

skipif mysql # not compatible
query I rowsort label-7923
SELECT 84 * + 36 + COUNT ( * ) AS col0
----
3025

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT 63 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-7924
SELECT 63 / 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT COUNT( * ) + ( 77 ) * + 82 AS col0
----
6315

skipif mysql # not compatible
query I rowsort label-7925
SELECT COUNT ( * ) + ( 77 ) * + 82 AS col0
----
6315

query I rowsort
SELECT ALL - 85 * 8 AS col2
----
-680

query I rowsort
SELECT ALL + 30 * - 17
----
-510

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7928
SELECT ALL - MIN( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - MIN ( ALL CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT - 12 * + 84 AS col1
----
-1008

query I rowsort
SELECT ALL 94 * 95 AS col0
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT 34 * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-7931
SELECT 34 * COUNT ( * )
----
34

query I rowsort
SELECT 69 + - 46
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7933
SELECT 75 * CASE 82 WHEN 50 - 75 / CAST( NULL AS SIGNED ) THEN - 42 * 28 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT 75 * CASE 82 WHEN 50 - 75 / CAST ( NULL AS INTEGER ) THEN - 42 * 28 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 13 + + 85
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL - 95 + - MIN( + ( - 54 ) ) * 41 AS col1
----
2119

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - 95 + - MIN ( + ( - 54 ) ) * 41 AS col1
----
2119

query I rowsort
SELECT 59 * + ( + 99 ) AS col0
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT - MAX( DISTINCT + 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - MAX ( DISTINCT + 52 ) AS col1
----
-52

query I rowsort
SELECT DISTINCT 93 + 63
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL - ( - MAX( ALL + 94 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - ( - MAX ( ALL + 94 ) ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT DISTINCT - 68 DIV + 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - 68 / + 41 AS col0
----
-1

query I rowsort
SELECT ALL - 96 + + 13
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7942
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT DISTINCT - + 80 DIV + 11 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT - + 80 / + 11 AS col2
----
-7

query I rowsort
SELECT + 47 * + 78
----
3666

query I rowsort
SELECT 53 * 80 + + 56
----
4296

query I rowsort
SELECT - + ( 66 ) col2
----
-66

query I rowsort
SELECT DISTINCT + 14 - 18 AS col0
----
-4

query I rowsort
SELECT + 14 - - 18 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT - 84 * ( COUNT( * ) / COUNT( * ) + - CASE COUNT( * ) WHEN + 72 THEN - 18 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT - 84 * ( COUNT ( * ) / COUNT ( * ) + - CASE COUNT ( * ) WHEN + 72 THEN - 18 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT ALL + - CAST( NULL AS SIGNED ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT DISTINCT + 53 - 3 DIV - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + 53 - 3 / - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + 59 + - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7952
SELECT + 59 + - COUNT ( * ) AS col2
----
58

query I rowsort
SELECT DISTINCT + 20 - 27
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7954
SELECT + 30 * SUM( + CAST( ( - 33 ) AS SIGNED ) ) col1
----
-990

skipif mysql # not compatible
query I rowsort label-7954
SELECT + 30 * SUM ( + CAST ( ( - 33 ) AS INTEGER ) ) col1
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT 60 + - + COUNT( * ) + 54 * 33
----
1841

skipif mysql # not compatible
query I rowsort label-7955
SELECT 60 + - + COUNT ( * ) + 54 * 33
----
1841

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT - 44 DIV - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT - 44 / - COUNT ( * ) AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL - CAST( - 38 AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - CAST ( - 38 AS INTEGER ) AS col0
----
38

query I rowsort
SELECT ALL 30 * - 90 * - 10
----
27000

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT 44 * - COUNT( * ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-7959
SELECT 44 * - COUNT ( * ) col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL - COUNT( * ) * + 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - COUNT ( * ) * + 11 AS col0
----
-11

query I rowsort
SELECT 43 * + 11
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL 88 + - + 11 - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL 88 + - + 11 - COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT 50 - + + 42 - NULLIF ( - 93, 52 ) * 70 DIV SUM( ALL + 1 )
----
6518

skipif mysql # not compatible
query I rowsort label-7963
SELECT 50 - + + 42 - NULLIF ( - 93, 52 ) * 70 / SUM ( ALL + 1 )
----
6518

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT 88 DIV + 1
----
88

skipif mysql # not compatible
query I rowsort label-7964
SELECT 88 / + 1
----
88

query I rowsort
SELECT 95 * + ( - 38 ) AS col0
----
-3610

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7966
SELECT ALL 82 DIV - - NULLIF ( - 10, CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) )
----
-8

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL 82 / - - NULLIF ( - 10, CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT SUM( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-7967
SELECT SUM ( DISTINCT + 66 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT DISTINCT 93 + 85 + - 68 * + COUNT( * ) * MAX( + 3 DIV 70 )
----
178

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT 93 + 85 + - 68 * + COUNT ( * ) * MAX ( + 3 / 70 )
----
178

query I rowsort
SELECT DISTINCT + 36 * ( + 52 )
----
1872

query I rowsort
SELECT ( - 11 ) + + 94 * 67 AS col1
----
6287

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT ALL 28 + 72 + + 78 DIV + 78
----
101

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL 28 + 72 + + 78 / + 78
----
101

query I rowsort
SELECT DISTINCT 87 + + 60 AS col0
----
147

query I rowsort
SELECT ALL - 64 + - + 15 + 39 * - 39 * - 80 col2
----
121601

query I rowsort
SELECT 0 - + 51 col1
----
-51

query I rowsort
SELECT + COALESCE ( + 89, 27 * 48 )
----
89

query I rowsort
SELECT + 32 * + 51 + 87 + + 13 AS col0
----
1732

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT COUNT( * ) * 19 * - 72 + + ( + 36 )
----
-1332

skipif mysql # not compatible
query I rowsort label-7977
SELECT COUNT ( * ) * 19 * - 72 + + ( + 36 )
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL - 18 - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL - 18 - COUNT ( * )
----
-19

query I rowsort
SELECT + 85 * 56
----
4760

query I rowsort
SELECT + 98 + 51 AS col1
----
149

query I rowsort
SELECT DISTINCT - ( + + 31 ) * 14
----
-434

query I rowsort
SELECT - 12 + - + 11
----
-23

query I rowsort
SELECT ALL 81 - - ( - 12 ) AS col2
----
69

query I rowsort
SELECT - + 46 * + 18
----
-828

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7985
SELECT ALL + + 2 DIV + CAST( - 62 AS SIGNED ) * 23
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + + 2 / + CAST ( - 62 AS INTEGER ) * 23
----
0

query I rowsort
SELECT ALL + + 52 * - + 12 * - 48
----
29952

query I rowsort
SELECT - 57 * - - 66
----
-3762

query I rowsort
SELECT ALL + 75 * - 71 * - 23 + 94 * 60
----
128115

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - COALESCE ( + 25, + NULLIF ( 0, ( COALESCE ( COUNT( * ), 83 ) ) ) * SUM( 50 * 49 ) ) + 56 * + 10
----
535

skipif mysql # not compatible
query I rowsort label-7989
SELECT - COALESCE ( + 25, + NULLIF ( 0, ( COALESCE ( COUNT ( * ), 83 ) ) ) * SUM ( 50 * 49 ) ) + 56 * + 10
----
535

onlyif mysql # DIV for integer division: 
query I rowsort label-7990
SELECT - ( - - 15 ) DIV 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7990
SELECT - ( - - 15 ) / 26 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT DISTINCT + 12 * + 18 DIV + COUNT( * )
----
216

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + 12 * + 18 / + COUNT ( * )
----
216

query I rowsort
SELECT ALL + 3 * - 12 AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT - COUNT( * ) + + 31 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT - COUNT ( * ) + + 31 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT - 30 + - MIN( + 74 ) + + 49 * 30
----
1366

skipif mysql # not compatible
query I rowsort label-7994
SELECT - 30 + - MIN ( + 74 ) + + 49 * 30
----
1366

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT 51 * - - COUNT( * ) + 20 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT 51 * - - COUNT ( * ) + 20 AS col1
----
71

query I rowsort
SELECT ALL 20 * + 1 + - + 61 col0
----
-41

query II rowsort
SELECT + 51, - 52 AS col1
----
51
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT + 13 * - 53 + - CASE ( 94 ) WHEN + 51 + - COUNT( * ) THEN ( - 33 ) WHEN 53 + - 31 / 41 THEN NULL ELSE - COUNT( * ) END AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-7998
SELECT + 13 * - 53 + - CASE ( 94 ) WHEN + 51 + - COUNT ( * ) THEN ( - 33 ) WHEN 53 + - 31 / 41 THEN NULL ELSE - COUNT ( * ) END AS col1
----
-688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT ALL CAST( NULL AS SIGNED ) * - NULLIF ( 25, 98 ) + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL CAST ( NULL AS INTEGER ) * - NULLIF ( 25, 98 ) + + 46 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( 3, - NULLIF ( 9, - NULLIF ( - COALESCE ( 57, - 65, + 3 ), - 98 ) - ( + COALESCE ( 78, + 8 * - 44 ) + - 78 ) ) ) * - 68 + + 45
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT CASE 16 WHEN - 53 + 49 THEN - 68 END / + COALESCE ( - 77, 6, + ( + COUNT( * ) ) ) + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT CASE 16 WHEN - 53 + 49 THEN - 68 END / + COALESCE ( - 77, 6, + ( + COUNT ( * ) ) ) + - 90 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8002
SELECT ALL + 30 AS col0, ( CAST( NULL AS DECIMAL ) ) + 79
----
30
NULL

skipif mysql # not compatible
query II rowsort label-8002
SELECT ALL + 30 AS col0, ( CAST ( NULL AS REAL ) ) + 79
----
30
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT ALL 41 * - 58 DIV 29 * ( - 94 )
----
7708

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL 41 * - 58 / 29 * ( - 94 )
----
7708

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT - NULLIF ( + 94, + 62 * 45 ) + + COUNT( * ) * - 0
----
-94

skipif mysql # not compatible
query I rowsort label-8004
SELECT - NULLIF ( + 94, + 62 * 45 ) + + COUNT ( * ) * - 0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL CASE + COALESCE ( + + 72, + 42 ) WHEN MIN( - 81 ) THEN + 82 * 10 END * + 50 + 38 * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL CASE + COALESCE ( + + 72, + 42 ) WHEN MIN ( - 81 ) THEN + 82 * 10 END * + 50 + 38 * + 22 AS col0
----
NULL

query I rowsort
SELECT ( + + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT + COUNT( * ) AS col1, - 51 + + COALESCE ( 65, COALESCE ( - 14, - 61, - MAX( DISTINCT 10 ) ) ) - COUNT( ALL 77 + 88 ) AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-8007
SELECT + COUNT ( * ) AS col1, - 51 + + COALESCE ( 65, COALESCE ( - 14, - 61, - MAX ( DISTINCT 10 ) ) ) - COUNT ( ALL 77 + 88 ) AS col2
----
1
13

query I rowsort
SELECT + 0 * + 46 * + 63 + + 47
----
47

query I rowsort
SELECT - NULLIF ( + + 59, 82 ) * 43
----
-2537

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT ALL + 19 * - COUNT( DISTINCT - - 22 ) - 78 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + 19 * - COUNT ( DISTINCT - - 22 ) - 78 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + COUNT( * ) + - 3 + + - 3 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8011
SELECT + COUNT ( * ) + - 3 + + - 3 * COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT + CASE 29 WHEN - 75 THEN + COUNT( * ) ELSE NULL END / 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT + CASE 29 WHEN - 75 THEN + COUNT ( * ) ELSE NULL END / 76 AS col1
----
NULL

query I rowsort
SELECT + 39 * + 97 * - 36 - 31 * - 26 AS col2
----
-135382

query II rowsort
SELECT + - 94 col1, + 25 + 88 + 81
----
-94
194

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT - CASE - 82 WHEN - 77 - CASE - 7 WHEN - 45 THEN NULL WHEN + 82 THEN NULL WHEN COUNT( * ) * 11 THEN 33 * + 17 ELSE - 9 + 60 END THEN + 49 + 53 WHEN ( + 82 ) * - 51 THEN + 26 ELSE NULL END * 69 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT - CASE - 82 WHEN - 77 - CASE - 7 WHEN - 45 THEN NULL WHEN + 82 THEN NULL WHEN COUNT ( * ) * 11 THEN 33 * + 17 ELSE - 9 + 60 END THEN + 49 + 53 WHEN ( + 82 ) * - 51 THEN + 26 ELSE NULL END * 69 + 12
----
NULL

query I rowsort
SELECT DISTINCT + + ( 67 )
----
67

query I rowsort
SELECT + - 75 * + 10
----
-750

query I rowsort
SELECT DISTINCT 44 * + + 68
----
2992

query I rowsort
SELECT ALL + + 0 * 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT DISTINCT + 62 * CAST( NULL AS SIGNED ) * 74 * + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + 62 * CAST ( NULL AS INTEGER ) * 74 * + 97 AS col1
----
NULL

query I rowsort
SELECT DISTINCT CASE + + 42 WHEN - + 99 THEN + 97 * 56 WHEN 46 THEN - CASE - 79 WHEN - 52 THEN NULL WHEN - ( 89 ) THEN - 88 ELSE NULL END END AS col0
----
NULL

query I rowsort
SELECT - 91 * + ( - + 30 ) * - 31 + + 70 + + 45 AS col2
----
-84515

query I rowsort
SELECT - - ( - + 77 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT - + 43 + + 36 - + 49 + 74 DIV - 50
----
-57

skipif mysql # not compatible
query I rowsort label-8024
SELECT - + 43 + + 36 - + 49 + 74 / - 50
----
-57

query II rowsort
SELECT ALL + 76 AS col0, + NULLIF ( - - 99, AVG ( - 49 ) )
----
76
99

query I rowsort
SELECT + - 74 * - + 64 * - 64
----
-303104

onlyif mysql # aggregate syntax: 
query II rowsort label-8027
SELECT DISTINCT - 93, COUNT( * ) col2
----
-93
1

skipif mysql # not compatible
query II rowsort label-8027
SELECT DISTINCT - 93, COUNT ( * ) col2
----
-93
1

query I rowsort
SELECT ALL + 71 * - + 48
----
-3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT MIN( DISTINCT - - 8 ) + - COUNT( * ) DIV 24 * 72 col2
----
8

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT MIN ( DISTINCT - - 8 ) + - COUNT ( * ) / 24 * 72 col2
----
8

query I rowsort
SELECT DISTINCT + 81 + 53 AS col0
----
134

query II rowsort
SELECT ALL - 26 + 4 AS col0, + 62 + 3 AS col2
----
-22
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT + 18 - + 31 * COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8033
SELECT + 18 - + 31 * COUNT ( * ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8034
SELECT - CAST( NULL AS DECIMAL ) * + + 9 / - CASE - - 90 WHEN 8 THEN - COUNT( * ) WHEN - MAX( - 99 ) THEN 63 / 28 - CAST( NULL AS DECIMAL ) * + AVG ( ALL + 95 ) ELSE COUNT( * ) * 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT - CAST ( NULL AS REAL ) * + + 9 / - CASE - - 90 WHEN 8 THEN - COUNT ( * ) WHEN - MAX ( - 99 ) THEN 63 / 28 - CAST ( NULL AS REAL ) * + AVG ( ALL + 95 ) ELSE COUNT ( * ) * 45 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 54 * - 28 AS col0
----
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT DISTINCT 34 DIV + - 95 + 87 * + + 64
----
5568

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT 34 / + - 95 + 87 * + + 64
----
5568

query I rowsort
SELECT DISTINCT - 54 * + ( - 89 )
----
4806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8038
SELECT ALL 9 DIV - COUNT( * ) - - + 73 + COUNT( * ) * 77
----
141

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 9 / - COUNT ( * ) - - + 73 + COUNT ( * ) * 77
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - NULLIF ( 93, 7 ) - + - MIN( ALL 47 ) * + 56 AS col0
----
2539

skipif mysql # not compatible
query I rowsort label-8039
SELECT - NULLIF ( 93, 7 ) - + - MIN ( ALL 47 ) * + 56 AS col0
----
2539

query I rowsort
SELECT ALL + 91 * ( - 77 ) AS col0
----
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT DISTINCT CASE - + COALESCE ( - 45, 1, + 19 ) WHEN - 23 + 81 THEN NULLIF ( 77, 4 * ( + COALESCE ( ( - 84 ), - COUNT( * ) * 65, - 36 + - 77 ) ) ) + 26 END / 70 - ( - 98 ) * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT CASE - + COALESCE ( - 45, 1, + 19 ) WHEN - 23 + 81 THEN NULLIF ( 77, 4 * ( + COALESCE ( ( - 84 ), - COUNT ( * ) * 65, - 36 + - 77 ) ) ) + 26 END / 70 - ( - 98 ) * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT - CASE - COUNT( * ) WHEN 43 THEN - COUNT( * ) * 11 ELSE NULL END + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT - CASE - COUNT ( * ) WHEN 43 THEN - COUNT ( * ) * 11 ELSE NULL END + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL + MIN( ALL - 20 ) - - COUNT( ALL 8 ) + - 5 * + CAST( + 76 AS SIGNED ) * 1
----
-399

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + MIN ( ALL - 20 ) - - COUNT ( ALL 8 ) + - 5 * + CAST ( + 76 AS INTEGER ) * 1
----
-399

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT 75 * 48 DIV + 82 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8044
SELECT 75 * 48 / + 82 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT 78 + - + 66 + + SUM( ALL - 55 ) + - COALESCE ( - 46, ( COUNT( * ) ) ) * - 84 * COUNT( * )
----
-3907

skipif mysql # not compatible
query I rowsort label-8045
SELECT 78 + - + 66 + + SUM ( ALL - 55 ) + - COALESCE ( - 46, ( COUNT ( * ) ) ) * - 84 * COUNT ( * )
----
-3907

query I rowsort
SELECT + - CASE - 27 WHEN 88 THEN - + 14 + 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL + - 60 * + 94 - + MIN( + 84 ) AS col2
----
-5724

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + - 60 * + 94 - + MIN ( + 84 ) AS col2
----
-5724

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT + + COUNT( - + 35 ) * 81
----
81

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + + COUNT ( - + 35 ) * 81
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT ALL - - CAST( 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - - CAST ( 22 AS INTEGER )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT - 3 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT - 3 / - 79 AS col0
----
0

query I rowsort
SELECT ALL + 24 * 97
----
2328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8052
SELECT 80 * + 70 + COUNT( * ) + + 79 DIV 20 AS col1
----
5604

skipif mysql # not compatible
query I rowsort label-8052
SELECT 80 * + 70 + COUNT ( * ) + + 79 / 20 AS col1
----
5604

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT + + SUM( DISTINCT + 17 ), + 10 + - + 63 AS col1
----
17
-53

skipif mysql # not compatible
query II rowsort label-8053
SELECT + + SUM ( DISTINCT + 17 ), + 10 + - + 63 AS col1
----
17
-53

query I rowsort
SELECT DISTINCT - 25 + - 40 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT 88 DIV ( + 33 ) DIV + 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT 88 / ( + 33 ) / + 5 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT DISTINCT 45 + - - 87 + - 75 + + 56 * - CASE - COUNT( - 64 ) + - 88 WHEN 14 * CAST( NULL AS SIGNED ) + + 31 THEN 8 WHEN CASE 83 WHEN + 77 * - 75 + + CAST( + 57 AS SIGNED ) THEN NULL ELSE 90 END THEN + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT 45 + - - 87 + - 75 + + 56 * - CASE - COUNT ( - 64 ) + - 88 WHEN 14 * CAST ( NULL AS INTEGER ) + + 31 THEN 8 WHEN CASE 83 WHEN + 77 * - 75 + + CAST ( + 57 AS INTEGER ) THEN NULL ELSE 90 END THEN + 97 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT DISTINCT - CASE + + SUM( + CAST( NULL AS SIGNED ) ) WHEN + CASE 33 WHEN 63 THEN 73 * - 54 + COUNT( * ) END * COUNT( * ) THEN NULL WHEN + 35 THEN + 85 END / - 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - CASE + + SUM ( + CAST ( NULL AS INTEGER ) ) WHEN + CASE 33 WHEN 63 THEN 73 * - 54 + COUNT ( * ) END * COUNT ( * ) THEN NULL WHEN + 35 THEN + 85 END / - 50 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT + COUNT( * ) * + 59 + - 14
----
45

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT + COUNT ( * ) * + 59 + - 14
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8059
SELECT DISTINCT CAST( - 11 AS SIGNED ) + + 45 + - COALESCE ( + 99, + NULLIF ( 14, 63 / + 90 ), - CAST( - 97 AS SIGNED ) + + COUNT( * ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT CAST ( - 11 AS INTEGER ) + + 45 + - COALESCE ( + 99, + NULLIF ( 14, 63 / + 90 ), - CAST ( - 97 AS INTEGER ) + + COUNT ( * ) ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * 8 AS col2
----
9

query I rowsort
SELECT NULLIF ( + 84, - 31 ) + + 10 + - + 3 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT CAST( + 39 AS SIGNED ) * - CASE CASE + 6 WHEN + CAST( - 8 AS SIGNED ) THEN COUNT( * ) * MIN( ALL + 59 ) WHEN - 64 + 76 THEN CAST( NULL AS SIGNED ) - 94 WHEN 98 THEN 55 * - 24 + - 20 ELSE - CAST( NULL AS SIGNED ) END WHEN - 53 THEN - 78 + COUNT( * ) END + CAST( 34 AS SIGNED ) / COALESCE ( - 1 * + 99 + 51 * - COALESCE ( 56, MAX( 29 ) ), 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT CAST ( + 39 AS INTEGER ) * - CASE CASE + 6 WHEN + CAST ( - 8 AS INTEGER ) THEN COUNT ( * ) * MIN ( ALL + 59 ) WHEN - 64 + 76 THEN CAST ( NULL AS INTEGER ) - 94 WHEN 98 THEN 55 * - 24 + - 20 ELSE - CAST ( NULL AS INTEGER ) END WHEN - 53 THEN - 78 + COUNT ( * ) END + CAST ( 34 AS INTEGER ) / COALESCE ( - 1 * + 99 + 51 * - COALESCE ( 56, MAX ( 29 ) ), 15 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT ALL 13 + 21 + 35 - - 83 + - ( 1 ) DIV + 15
----
152

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL 13 + 21 + 35 - - 83 + - ( 1 ) / + 15
----
152

query I rowsort
SELECT DISTINCT 30 * - 2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT COUNT( DISTINCT - 74 ) + + 50 * - 69 * + COALESCE ( + 90, 11 DIV - 33 )
----
-310499

skipif mysql # not compatible
query I rowsort label-8065
SELECT COUNT ( DISTINCT - 74 ) + + 50 * - 69 * + COALESCE ( + 90, 11 / - 33 )
----
-310499

query I rowsort
SELECT ALL + 95 - + ( - 76 ) AS col1
----
171

query I rowsort
SELECT 78 + 82
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT 85 + + - 1 * 93 + - + 28 + + + 59 * - NULLIF ( + SUM( ALL 56 ), - COUNT( * ) / + 45 ) AS col2
----
-3340

skipif mysql # not compatible
query I rowsort label-8068
SELECT 85 + + - 1 * 93 + - + 28 + + + 59 * - NULLIF ( + SUM ( ALL 56 ), - COUNT ( * ) / + 45 ) AS col2
----
-3340

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT - COUNT( * ) * + + 20
----
-20

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT - COUNT ( * ) * + + 20
----
-20

query I rowsort
SELECT ALL 23 - - 54 + + - 44 + 81 * - 11 * 64 AS col0
----
-56991

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT 4 + + + 21 * - 7 + 42 - - MAX( DISTINCT ( + 79 ) ) * + 13 * - 46
----
-47343

skipif mysql # not compatible
query I rowsort label-8071
SELECT 4 + + + 21 * - 7 + 42 - - MAX ( DISTINCT ( + 79 ) ) * + 13 * - 46
----
-47343

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT 75 DIV ( + - 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-8072
SELECT 75 / ( + - 56 )
----
-1

query I rowsort
SELECT DISTINCT - 23 * + 78 * - 12
----
21528

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL - COUNT( * ) * - - NULLIF ( + 49, + + 11 / - 70 * 57 + + 35 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL - COUNT ( * ) * - - NULLIF ( + 49, + + 11 / - 70 * 57 + + 35 ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - CASE + - COUNT( DISTINCT + - 88 ) WHEN 98 THEN NULL WHEN + COUNT( * ) THEN ( 35 ) ELSE - COALESCE ( 91, - 35 + - COUNT( * ) * 79 ) END * 89
----
8099

skipif mysql # not compatible
query I rowsort label-8075
SELECT - CASE + - COUNT ( DISTINCT + - 88 ) WHEN 98 THEN NULL WHEN + COUNT ( * ) THEN ( 35 ) ELSE - COALESCE ( 91, - 35 + - COUNT ( * ) * 79 ) END * 89
----
8099

query I rowsort
SELECT DISTINCT - 86 * - 28 AS col2
----
2408

query I rowsort
SELECT ALL + 28 * - 21
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT ALL - 48 DIV - 5 + + NULLIF ( + + ( 74 ), ( + 81 ) ) + - COUNT( * ) DIV - 9 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - 48 / - 5 + + NULLIF ( + + ( 74 ), ( + 81 ) ) + - COUNT ( * ) / - 9 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT - 24 * + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - - 40 * + 31 + + CAST( - COUNT( * ) + + 36 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT - 24 * + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - - 40 * + 31 + + CAST ( - COUNT ( * ) + + 36 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + COALESCE ( - MAX( - CASE + 96 WHEN + ( + 66 ) - 20 THEN NULL ELSE 79 END ), 71 + 28 ) * 65
----
5135

skipif mysql # not compatible
query I rowsort label-8080
SELECT + COALESCE ( - MAX ( - CASE + 96 WHEN + ( + 66 ) - 20 THEN NULL ELSE 79 END ), 71 + 28 ) * 65
----
5135

query I rowsort
SELECT + 10 * + + 40
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT NULLIF ( 1, - 32 DIV + 10 + 36 ) + 32 DIV + 68
----
1

skipif mysql # not compatible
query I rowsort label-8082
SELECT NULLIF ( 1, - 32 / + 10 + 36 ) + 32 / + 68
----
1

query I rowsort
SELECT ALL + 87 + 3
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT + + CASE + 1 WHEN - + ( + 93 ) * - 23 + COUNT( * ) + NULLIF ( CAST( NULL AS SIGNED ) + 61, - 90 + - 27 ) * 79 THEN + 15 * 1 + 96 WHEN 86 THEN 68 WHEN AVG ( 15 ) * 19 THEN 58 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT + + CASE + 1 WHEN - + ( + 93 ) * - 23 + COUNT ( * ) + NULLIF ( CAST ( NULL AS INTEGER ) + 61, - 90 + - 27 ) * 79 THEN + 15 * 1 + 96 WHEN 86 THEN 68 WHEN AVG ( 15 ) * 19 THEN 58 END AS col0
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( - 27, + 78 * 42 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8086
SELECT - 7 * MAX( ALL - 30 ) DIV + - COALESCE ( + 87, - COUNT( * ) ) + - 28 DIV + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-8086
SELECT - 7 * MAX ( ALL - 30 ) / + - COALESCE ( + 87, - COUNT ( * ) ) + - 28 / + COUNT ( * )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT DISTINCT - 1 + + 91 DIV - + 56 + 91
----
89

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - 1 + + 91 / - + 56 + 91
----
89

query I rowsort
SELECT DISTINCT - 96 + - - 46 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8089
SELECT ALL - MAX( ALL COALESCE ( 71, - + NULLIF ( + 29, CAST( NULL AS SIGNED ) ) * + 27 ) ) + - 89 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - MAX ( ALL COALESCE ( 71, - + NULLIF ( + 29, CAST ( NULL AS INTEGER ) ) * + 27 ) ) + - 89 AS col2
----
-160

query I rowsort
SELECT DISTINCT - - 73 + + 61 AS col0
----
134

query I rowsort
SELECT ALL - 2 * 97
----
-194

query II rowsort
SELECT 77, ( 62 ) AS col2
----
77
62

query II rowsort
SELECT 64 AS col1, ( + 61 ) AS col1
----
64
61

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT 34 AS col2, MAX( ALL - 86 ) AS col0
----
34
-86

skipif mysql # not compatible
query II rowsort label-8094
SELECT 34 AS col2, MAX ( ALL - 86 ) AS col0
----
34
-86

query II rowsort
SELECT 69 col1, - 49 * 18 * - 47 AS col2
----
69
41454

query II rowsort
SELECT ALL 84, + 62 AS col2
----
84
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT ALL 66 DIV COUNT( 80 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL 66 / COUNT ( 80 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL COUNT( + + ( - + 65 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL COUNT ( + + ( - + 65 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT DISTINCT COUNT( * ), 61 - - ( + 59 ) AS col0
----
1
120

skipif mysql # not compatible
query II rowsort label-8099
SELECT DISTINCT COUNT ( * ), 61 - - ( + 59 ) AS col0
----
1
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL SUM( ALL + - 96 ) - - - 54 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL SUM ( ALL + - 96 ) - - - 54 AS col0
----
-150

query I rowsort
SELECT ALL 18 * + ( + - 92 ) * + 51 AS col1
----
-84456

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT MAX( ALL + 57 ) * 57 + + - 27 col0
----
3222

skipif mysql # not compatible
query I rowsort label-8102
SELECT MAX ( ALL + 57 ) * 57 + + - 27 col0
----
3222

query II rowsort
SELECT DISTINCT 1, 30 AS col1
----
1
30

query I rowsort
SELECT DISTINCT 65 * 97
----
6305

query I rowsort
SELECT ALL 23 - + 45 + + - ( - + 18 ) * + 21 * - 36
----
-13630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8106
SELECT 50 col2, 1 * + + 93 DIV - COUNT( * )
----
50
-93

skipif mysql # not compatible
query II rowsort label-8106
SELECT 50 col2, 1 * + + 93 / - COUNT ( * )
----
50
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8107
SELECT - CASE - CAST( NULL AS DECIMAL ) WHEN + + 21 THEN + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT - CASE - CAST ( NULL AS REAL ) WHEN + + 21 THEN + 91 END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( 56, - - 17 * + + 1 + - 0 * - + 43 * - 87 ) - + 73 * 93
----
-6733

query II rowsort
SELECT 64, + 11 col1
----
64
11

query I rowsort
SELECT + 87 * - - 41 AS col1
----
3567

query II rowsort
SELECT ALL 70 AS col0, 87 + - 29
----
70
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - COUNT( ALL + - 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-8112
SELECT - COUNT ( ALL + - 12 )
----
-1

query I rowsort
SELECT + + ( - + 67 )
----
-67

query II rowsort
SELECT ALL + + 32 AS col0, 68
----
32
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT + - 88 - - 84 DIV + 99 - + 29
----
-117

skipif mysql # not compatible
query I rowsort label-8115
SELECT + - 88 - - 84 / + 99 - + 29
----
-117

query II rowsort
SELECT DISTINCT + 10, + 40 AS col1
----
10
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT - 93 DIV 15 + - 82
----
-88

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 93 / 15 + - 82
----
-88

query II rowsort
SELECT 81 col0, 48 + - ( + - 85 )
----
81
133

query II rowsort
SELECT ALL + 12 AS col1, COALESCE ( - 55, + 10 ) AS col2
----
12
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8120
SELECT + 14 AS col2, 74 - - - COUNT( * )
----
14
73

skipif mysql # not compatible
query II rowsort label-8120
SELECT + 14 AS col2, 74 - - - COUNT ( * )
----
14
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8121
SELECT + + COUNT( * ) AS col2, - 6
----
1
-6

skipif mysql # not compatible
query II rowsort label-8121
SELECT + + COUNT ( * ) AS col2, - 6
----
1
-6

query I rowsort
SELECT + 51 + + - CASE 47 WHEN + - 36 THEN - 77 WHEN + - 69 THEN 77 * - 75 WHEN 23 * ( + 6 ) THEN NULL END + + ( 84 + + 51 / - 51 ) * - 96
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8123
SELECT + COALESCE ( 51, + - NULLIF ( 95, - 85 + - CAST( 45 AS DECIMAL ) + - COALESCE ( 77, - 98 - + 24, 48 ) ), 4 ) * + 13 + - 50 * - 87
----
5013

skipif mysql # not compatible
query I rowsort label-8123
SELECT + COALESCE ( 51, + - NULLIF ( 95, - 85 + - CAST ( 45 AS REAL ) + - COALESCE ( 77, - 98 - + 24, 48 ) ), 4 ) * + 13 + - 50 * - 87
----
5013

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL + CASE - - 18 WHEN + 73 * - - ( - COUNT( * ) ) THEN - + 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL + CASE - - 18 WHEN + 73 * - - ( - COUNT ( * ) ) THEN - + 50 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT + 48 col2, COUNT( * ) AS col1
----
48
1

skipif mysql # not compatible
query II rowsort label-8125
SELECT + 48 col2, COUNT ( * ) AS col1
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL + 81 * - COALESCE ( + 28, - + 27, - 30 * - COUNT( * ) + + 92 ) col0
----
-2268

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + 81 * - COALESCE ( + 28, - + 27, - 30 * - COUNT ( * ) + + 92 ) col0
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL - - 66 * - 69 + - - 39 + + - COUNT( * )
----
-4516

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - - 66 * - 69 + - - 39 + + - COUNT ( * )
----
-4516

query I rowsort
SELECT DISTINCT + + 0 * 70 + - - 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - 25 * + COUNT( DISTINCT 96 ) + 88 + - - COUNT( * ) + + - 88 * 83
----
-7240

skipif mysql # not compatible
query I rowsort label-8129
SELECT - 25 * + COUNT ( DISTINCT 96 ) + 88 + - - COUNT ( * ) + + - 88 * 83
----
-7240

query I rowsort
SELECT - - 37 + - 55
----
-18

query I rowsort
SELECT ALL + COALESCE ( 12, + + 95 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT - 29 * - + 5 * 94 * - + COUNT( * ) - + 1 * - COUNT( NULLIF ( + 92, - 47 ) ) * 56 + 84
----
-13490

skipif mysql # not compatible
query I rowsort label-8132
SELECT - 29 * - + 5 * 94 * - + COUNT ( * ) - + 1 * - COUNT ( NULLIF ( + 92, - 47 ) ) * 56 + 84
----
-13490

query II rowsort
SELECT DISTINCT + 68, - 54 AS col0
----
68
-54

query I rowsort
SELECT ALL 4 * + 16 - + + COALESCE ( + + 37, - + 35 + + 97 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - COUNT( ALL NULLIF ( - 75, - 15 + - - 84 / + - CASE + - 0 WHEN - 3 THEN - 55 END * - 92 + 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8135
SELECT - COUNT ( ALL NULLIF ( - 75, - 15 + - - 84 / + - CASE + - 0 WHEN - 3 THEN - 55 END * - 92 + 62 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT - 30 + 73 - + + 67 - 12 + - SUM( + 10 )
----
-46

skipif mysql # not compatible
query I rowsort label-8136
SELECT - 30 + 73 - + + 67 - 12 + - SUM ( + 10 )
----
-46

query I rowsort
SELECT ALL - 40 * 67 col1
----
-2680

query II rowsort
SELECT ALL NULLIF ( + 8, - + 1 - - ( 28 ) ) AS col2, + 23 AS col2
----
8
23

query I rowsort
SELECT DISTINCT 77 * + 72 AS col0
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT - 50 * 74 * + + COUNT( * )
----
-3700

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - 50 * 74 * + + COUNT ( * )
----
-3700

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT - COUNT( * ) + + + COUNT( * ) AS col1, - 94 AS col2
----
0
-94

skipif mysql # not compatible
query II rowsort label-8141
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col1, - 94 AS col2
----
0
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT DISTINCT + 23 * - CAST( NULL AS SIGNED ) / - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT + 23 * - CAST ( NULL AS INTEGER ) / - 93 AS col2
----
NULL

query II rowsort
SELECT - 6 + + 31 col1, - 79 AS col2
----
25
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT + 70 * - MIN( ALL + - 67 )
----
4690

skipif mysql # not compatible
query I rowsort label-8144
SELECT + 70 * - MIN ( ALL + - 67 )
----
4690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT ALL CAST( - ( 8 ) AS SIGNED ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL CAST ( - ( 8 ) AS INTEGER ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8146
SELECT - CASE - 65 WHEN + MAX( ALL - - 21 ) - + 71 THEN NULL ELSE - NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) / - 42 - 94 ) * ( COUNT( * ) * 86 ) + ( 60 + - 37 * COALESCE ( ( 97 ) * CAST( NULL AS SIGNED ), - 29, 56 ) ) END + - 9
----
-1056

skipif mysql # not compatible
query I rowsort label-8146
SELECT - CASE - 65 WHEN + MAX ( ALL - - 21 ) - + 71 THEN NULL ELSE - NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) / - 42 - 94 ) * ( COUNT ( * ) * 86 ) + ( 60 + - 37 * COALESCE ( ( 97 ) * CAST ( NULL AS INTEGER ), - 29, 56 ) ) END + - 9
----
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT - 58 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT - 58 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL - 42 + - 35 * + ( - COUNT( * ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - 42 + - 35 * + ( - COUNT ( * ) ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT + MIN( ALL + - 25 ) + + ( 97 ) + 42 - + COUNT( * ) - - COUNT( * ) col0
----
114

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT + MIN ( ALL + - 25 ) + + ( 97 ) + 42 - + COUNT ( * ) - - COUNT ( * ) col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT + 69 + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8151
SELECT + 69 + COUNT ( * ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT ALL NULLIF ( - ( + MAX( DISTINCT + 93 ) ), - 61 ) * + ( + COUNT( * ) ) * + 84 + - 91 DIV 49
----
-7813

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL NULLIF ( - ( + MAX ( DISTINCT + 93 ) ), - 61 ) * + ( + COUNT ( * ) ) * + 84 + - 91 / 49
----
-7813

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT - COUNT( * ) * + - COUNT( * ) * 12
----
12

skipif mysql # not compatible
query I rowsort label-8153
SELECT - COUNT ( * ) * + - COUNT ( * ) * 12
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8154
SELECT + CAST( 54 AS SIGNED ) + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8154
SELECT + CAST ( 54 AS INTEGER ) + COUNT ( * ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT DISTINCT - - 74 DIV - 87 + + + 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT - - 74 / - 87 + + + 45 AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8156
SELECT ALL + + COUNT( * ) DIV - 49 + - + 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + + COUNT ( * ) / - 49 + - + 31 AS col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT ALL - + 82 * CAST( + - 3 AS SIGNED ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL - + 82 * CAST ( + - 3 AS INTEGER ) * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT + - COUNT( * ) * - - 29 DIV + 69 * + 82 * - 94 + + 91 + - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8158
SELECT + - COUNT ( * ) * - - 29 / + 69 * + 82 * - 94 + + 91 + - - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT DISTINCT 28 * - - 27 + + 93, - CASE - + SUM( + NULLIF ( + 69, - 78 ) ) WHEN + 5 + + 88 THEN 49 WHEN 76 THEN + COUNT( 4 ) END AS col1
----
849
NULL

skipif mysql # not compatible
query II rowsort label-8159
SELECT DISTINCT 28 * - - 27 + + 93, - CASE - + SUM ( + NULLIF ( + 69, - 78 ) ) WHEN + 5 + + 88 THEN 49 WHEN 76 THEN + COUNT ( 4 ) END AS col1
----
849
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT ALL - 36 DIV - 63 + - 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - 36 / - 63 + - 47 AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT + + 22 DIV 5 + - COUNT( * ) * 84 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT + + 22 / 5 + - COUNT ( * ) * 84 AS col2
----
-80

query I rowsort
SELECT ( + 35 ) AS col1
----
35

query I rowsort
SELECT + - 32 col0
----
-32

query I rowsort
SELECT - + 75 * - - 42 * - + 49 AS col2
----
154350

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT 5 * + - COUNT( * ) - 4 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8165
SELECT 5 * + - COUNT ( * ) - 4 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8166
SELECT DISTINCT COUNT( * ) DIV 6 * 21 AS col1, SUM( ALL + + 59 )
----
0
59

skipif mysql # not compatible
query II rowsort label-8166
SELECT DISTINCT COUNT ( * ) / 6 * 21 AS col1, SUM ( ALL + + 59 )
----
0
59

query I rowsort
SELECT ( + + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL + 9 * - - MIN( + + 78 ) col1
----
702

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + 9 * - - MIN ( + + 78 ) col1
----
702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8169
SELECT + COALESCE ( + MIN( ALL - - 87 ), + + 46 * - - CAST( NULL AS SIGNED ), + 14 ) * 39 + + 18 DIV MAX( NULLIF ( - 97, 57 ) ) AS col2
----
3393

skipif mysql # not compatible
query I rowsort label-8169
SELECT + COALESCE ( + MIN ( ALL - - 87 ), + + 46 * - - CAST ( NULL AS INTEGER ), + 14 ) * 39 + + 18 / MAX ( NULLIF ( - 97, 57 ) ) AS col2
----
3393

query I rowsort
SELECT ALL 54 * 6 AS col2
----
324

query II rowsort
SELECT ALL + 8, 25 AS col2
----
8
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT NULLIF ( 26, + CASE + - 19 WHEN 1 * + - 38 * + - 85 + + 24 THEN - CAST( - 13 AS SIGNED ) * COUNT( * ) + - 35 WHEN 29 THEN + 63 - - 52 ELSE - 10 * - 5 END ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8172
SELECT NULLIF ( 26, + CASE + - 19 WHEN 1 * + - 38 * + - 85 + + 24 THEN - CAST ( - 13 AS INTEGER ) * COUNT ( * ) + - 35 WHEN 29 THEN + 63 - - 52 ELSE - 10 * - 5 END ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT DISTINCT COUNT( * ) * + 28 - - 79 * - + 80 * + 92 + - 91
----
-581503

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT COUNT ( * ) * + 28 - - 79 * - + 80 * + 92 + - 91
----
-581503

query I rowsort
SELECT 94 + - 61 AS col2
----
33

query II rowsort
SELECT ALL 45, + 45 - + - 76 col1
----
45
121

query I rowsort
SELECT 73 * - 46 + + 12 + + 82
----
-3264

onlyif mysql # DIV for integer division: 
query II rowsort label-8177
SELECT 2, + 0 DIV + 79 + + 90 AS col1
----
2
90

skipif mysql # not compatible
query II rowsort label-8177
SELECT 2, + 0 / + 79 + + 90 AS col1
----
2
90

query I rowsort
SELECT DISTINCT 5 + 66 + 23 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT + NULLIF ( - 53, + 33 ) * 92 DIV + 82
----
-59

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT + NULLIF ( - 53, + 33 ) * 92 / + 82
----
-59

query I rowsort
SELECT DISTINCT + ( + 74 ) + - 17
----
57

query I rowsort
SELECT 13 * 61 AS col1
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL + 74 + COUNT( * ) + - 98 + - 71
----
-94

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + 74 + COUNT ( * ) + - 98 + - 71
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT - 21, - 40 * + MAX( ALL + 15 ) * + 0 + ( ( + + 19 ) ) / + CASE + ( 37 ) WHEN - ( + 99 ) * + 91 THEN - 65 * 32 + + 97 WHEN 88 THEN ( ( 17 ) ) WHEN 2 THEN 42 * - 58 END + SUM( - 10 + - 97 ) AS col0
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-8183
SELECT - 21, - 40 * + MAX ( ALL + 15 ) * + 0 + ( ( + + 19 ) ) / + CASE + ( 37 ) WHEN - ( + 99 ) * + 91 THEN - 65 * 32 + + 97 WHEN 88 THEN ( ( 17 ) ) WHEN 2 THEN 42 * - 58 END + SUM ( - 10 + - 97 ) AS col0
----
-21
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT - 23 AS col0, + COUNT( - - 11 )
----
-23
1

skipif mysql # not compatible
query II rowsort label-8184
SELECT - 23 AS col0, + COUNT ( - - 11 )
----
-23
1

query I rowsort
SELECT DISTINCT - 49 + 26 * + 39 * - 11
----
-11203

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL + + COUNT( * ) + - SUM( DISTINCT 76 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + + COUNT ( * ) + - SUM ( DISTINCT 76 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT NULLIF ( + 68, + 12 + + - COUNT( * ) ) - + - 5 * + 1 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8187
SELECT NULLIF ( + 68, + 12 + + - COUNT ( * ) ) - + - 5 * + 1 AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT 47, CASE 73 WHEN 6 THEN ( 60 ) END / - + COUNT( * ) AS col1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-8188
SELECT 47, CASE 73 WHEN 6 THEN ( 60 ) END / - + COUNT ( * ) AS col1
----
47
NULL

query I rowsort
SELECT ALL - 16 + + 70 AS col2
----
54

query I rowsort
SELECT + 20 - - + 27 AS col1
----
47

query II rowsort
SELECT ALL 73 / + 74 * - CASE 13 WHEN - 19 THEN + 26 ELSE NULL END col0, - 89 * 64
----
NULL
-5696

query I rowsort
SELECT ALL ( - - 83 ) AS col0
----
83

query I rowsort
SELECT DISTINCT 82 + + - 55 + + 86 * - CASE ( - + 95 ) WHEN 50 + - + 12 THEN NULL WHEN 5 THEN 92 + + 79 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8194
SELECT CAST( + MIN( 29 ) AS SIGNED ) AS col0, + 84
----
29
84

skipif mysql # not compatible
query II rowsort label-8194
SELECT CAST ( + MIN ( 29 ) AS INTEGER ) AS col0, + 84
----
29
84

query I rowsort
SELECT ALL 0 - 46
----
-46

query I rowsort
SELECT - 69 - + - 98 + + 35
----
64

query I rowsort
SELECT 42 * + 86
----
3612

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT - - 10 DIV - 28 * + 35 + - 98 + 57
----
-41

skipif mysql # not compatible
query I rowsort label-8198
SELECT - - 10 / - 28 * + 35 + - 98 + 57
----
-41

query I rowsort
SELECT - 27 + - 4 AS col1
----
-31

query II rowsort
SELECT + - 47 AS col1, - 79 AS col2
----
-47
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL + COUNT( * ) * + - 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + COUNT ( * ) * + - 57 AS col1
----
-57

query I rowsort
SELECT + 19 * 90 AS col0
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL - ( - COUNT( DISTINCT - 50 ) ) * - + 12
----
-12

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL - ( - COUNT ( DISTINCT - 50 ) ) * - + 12
----
-12

query I rowsort
SELECT DISTINCT - NULLIF ( - 8, + ( + - 38 ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8205
SELECT + + ( + 81 ) DIV + COALESCE ( + 4, - 10 * ( + - 81 ) * - ( ( - COUNT( * ) ) ) + 62 + - 41 * MAX( CAST( NULL AS SIGNED ) * + 22 ) ) + 17 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8205
SELECT + + ( + 81 ) / + COALESCE ( + 4, - 10 * ( + - 81 ) * - ( ( - COUNT ( * ) ) ) + 62 + - 41 * MAX ( CAST ( NULL AS INTEGER ) * + 22 ) ) + 17 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL 13 * + + 36 * CAST( ( 68 ) AS SIGNED ) AS col1
----
31824

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL 13 * + + 36 * CAST ( ( 68 ) AS INTEGER ) AS col1
----
31824

query I rowsort
SELECT DISTINCT - 11 col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT CAST( 7 AS SIGNED ) + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8208
SELECT CAST ( 7 AS INTEGER ) + + COUNT ( * ) AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8209
SELECT CAST( NULL AS SIGNED ) * + - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT CAST ( NULL AS INTEGER ) * + - 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT ALL COUNT( * ) DIV - COALESCE ( + 82, 23 ) * + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL COUNT ( * ) / - COALESCE ( + 82, 23 ) * + + 84 AS col1
----
0

query I rowsort
SELECT ( + NULLIF ( - 81, - 32 ) ) * - 94 + 20
----
7634

query I rowsort
SELECT 94 * - 91
----
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT ALL 64 + - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL 64 + - - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT - ( COUNT( * ) ) + - 26
----
-27

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - ( COUNT ( * ) ) + - 26
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL + COUNT( * ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + COUNT ( * ) + + 57
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT 19 - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8216
SELECT 19 - - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT 29 - + COUNT( * ), 66 AS col2
----
28
66

skipif mysql # not compatible
query II rowsort label-8217
SELECT 29 - + COUNT ( * ), 66 AS col2
----
28
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT 32 + - - MIN( + 84 ) * + SUM( 89 ) - + + 21 AS col0
----
7487

skipif mysql # not compatible
query I rowsort label-8218
SELECT 32 + - - MIN ( + 84 ) * + SUM ( 89 ) - + + 21 AS col0
----
7487

onlyif mysql # DIV for integer division: 
query II rowsort label-8219
SELECT 38 DIV + 63 col1, 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-8219
SELECT 38 / + 63 col1, 72 AS col2
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL - ( 58 ) + + + NULLIF ( NULLIF ( 73, + 94 ), 33 + + 11 + - MIN( DISTINCT 26 ) - + 19 / 59 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - ( 58 ) + + + NULLIF ( NULLIF ( 73, + 94 ), 33 + + 11 + - MIN ( DISTINCT 26 ) - + 19 / 59 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8221
SELECT 9 + - 59 col1, COALESCE ( - + 0, - + 74, - MAX( + 23 ) - 7 + + - 26 * 61 )
----
-50
0

skipif mysql # not compatible
query II rowsort label-8221
SELECT 9 + - 59 col1, COALESCE ( - + 0, - + 74, - MAX ( + 23 ) - 7 + + - 26 * 61 )
----
-50
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8222
SELECT - - CASE - CAST( NULL AS DECIMAL ) WHEN - 59 - + 91 THEN ( 52 ) WHEN - 58 * + 18 + - CAST( + COUNT( * ) AS SIGNED ) THEN + NULLIF ( 87, - 42 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT - - CASE - CAST ( NULL AS REAL ) WHEN - 59 - + 91 THEN ( 52 ) WHEN - 58 * + 18 + - CAST ( + COUNT ( * ) AS INTEGER ) THEN + NULLIF ( 87, - 42 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 54 + + 37 AS col2
----
91

query I rowsort
SELECT 98 - - + 41
----
139

query I rowsort
SELECT - 18 + 68 * - 73
----
-4982

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL 87 + + 13 + - 44 * - CASE 23 WHEN - 7 * - ( ( + - 69 ) ) THEN 57 + ( CASE - 35 WHEN - MIN( DISTINCT - 22 ) * + COUNT( * ) THEN COUNT( * ) + AVG ( 56 ) * 66 WHEN COUNT( * ) THEN + 63 * - 76 - 9 * - ( MIN( 18 ) * 97 ) END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL 87 + + 13 + - 44 * - CASE 23 WHEN - 7 * - ( ( + - 69 ) ) THEN 57 + ( CASE - 35 WHEN - MIN ( DISTINCT - 22 ) * + COUNT ( * ) THEN COUNT ( * ) + AVG ( 56 ) * 66 WHEN COUNT ( * ) THEN + 63 * - 76 - 9 * - ( MIN ( 18 ) * 97 ) END ) END
----
NULL

query I rowsort
SELECT ALL + - ( 3 ) * + 76 AS col2
----
-228

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8228
SELECT 46 + + + CAST( NULL AS DECIMAL ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8228
SELECT 46 + + + CAST ( NULL AS REAL ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8229
SELECT ALL CAST( NULL AS DECIMAL ) - - 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL CAST ( NULL AS REAL ) - - 92 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT DISTINCT NULLIF ( - 17, + - CAST( + - 14 AS SIGNED ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT NULLIF ( - 17, + - CAST ( + - 14 AS INTEGER ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL SUM( ALL + + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL SUM ( ALL + + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT COUNT( * ) + - COUNT( - 41 ) * - 91 - - ( 99 )
----
191

skipif mysql # not compatible
query I rowsort label-8232
SELECT COUNT ( * ) + - COUNT ( - 41 ) * - 91 - - ( 99 )
----
191

query I rowsort
SELECT ALL + + 15 * - ( + 93 ) AS col0
----
-1395

query I rowsort
SELECT + 67 + - - 58 AS col0
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8235
SELECT DISTINCT - CASE 41 WHEN - + 49 THEN NULL WHEN + CASE - + 47 WHEN - - 57 + ( 69 ) - - ( + 74 ) + 56 / + 83 * - 31 THEN 22 WHEN 94 THEN ( ( - 59 ) ) - 47 WHEN CASE WHEN NOT 2 IN ( + 4 / - 34 ) THEN - 50 * - 53 ELSE + COUNT( * ) + 19 END THEN 14 END * 14 THEN + CAST( - 61 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - CASE 41 WHEN - + 49 THEN NULL WHEN + CASE - + 47 WHEN - - 57 + ( 69 ) - - ( + 74 ) + 56 / + 83 * - 31 THEN 22 WHEN 94 THEN ( ( - 59 ) ) - 47 WHEN CASE WHEN NOT 2 IN ( + 4 / - 34 ) THEN - 50 * - 53 ELSE + COUNT ( * ) + 19 END THEN 14 END * 14 THEN + CAST ( - 61 AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ( 57 ) * + 66 + - 61 * 70 col0
----
-508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT 52 * - 27 - - - 72 + - 93 * + CAST( NULL AS SIGNED ) * - CAST( + - 1 AS SIGNED ) - 8 - - + COUNT( 50 ) * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT 52 * - 27 - - - 72 + - 93 * + CAST ( NULL AS INTEGER ) * - CAST ( + - 1 AS INTEGER ) - 8 - - + COUNT ( 50 ) * + 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT - 61 * COUNT( * ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 61 * COUNT ( * ) / + 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT ALL 0 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL 0 / 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8240
SELECT SUM( ALL + 23 ) DIV + 56 * 14
----
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT SUM ( ALL + 23 ) / + 56 * 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL - NULLIF ( - - 9, + COUNT( * ) * + - 26 + + 8 )
----
-9

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - NULLIF ( - - 9, + COUNT ( * ) * + - 26 + + 8 )
----
-9

query I rowsort
SELECT - 72 * - 14
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT MAX( DISTINCT 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8243
SELECT MAX ( DISTINCT 36 ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT - 89 DIV 44
----
-2

skipif mysql # not compatible
query I rowsort label-8244
SELECT - 89 / 44
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT + 95 DIV 33 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8245
SELECT + 95 / 33 AS col1
----
2

query I rowsort
SELECT DISTINCT 10 * 57 + - 51 + + ( - 6 ) AS col2
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT COUNT( * ) * + COUNT( * ) * 93 - NULLIF ( + 77, + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-8247
SELECT COUNT ( * ) * + COUNT ( * ) * 93 - NULLIF ( + 77, + COUNT ( * ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8248
SELECT NULLIF ( - - CASE + 64 WHEN CAST( - 97 AS SIGNED ) + + 22 * + - 98 - 40 THEN + - 47 WHEN + - 7 * - 97 THEN 65 + 23 * 30 ELSE NULL END, - 58 ) * 88 + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT NULLIF ( - - CASE + 64 WHEN CAST ( - 97 AS INTEGER ) + + 22 * + - 98 - 40 THEN + - 47 WHEN + - 7 * - 97 THEN 65 + 23 * 30 ELSE NULL END, - 58 ) * 88 + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL 16 * - CAST( - COUNT( * ) AS SIGNED ) + - 48 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL 16 * - CAST ( - COUNT ( * ) AS INTEGER ) + - 48 AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8250
SELECT DISTINCT 47 + - 87 * - - COUNT( * ) * - ( + + 13 ) DIV COUNT( * )
----
1178

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT 47 + - 87 * - - COUNT ( * ) * - ( + + 13 ) / COUNT ( * )
----
1178

query I rowsort
SELECT + 29 + 56 * + 39 * - 76 AS col1
----
-165955

query I rowsort
SELECT + NULLIF ( 48, 53 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8253
SELECT DISTINCT MAX( - - 91 ) + - + 23 DIV - NULLIF ( + 33, 89 * - 44 * + COALESCE ( - 19, 49 + 21 * + SUM( 24 ) ) + - 31 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT MAX ( - - 91 ) + - + 23 / - NULLIF ( + 33, 89 * - 44 * + COALESCE ( - 19, 49 + 21 * + SUM ( 24 ) ) + - 31 ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL 11 + 92 - 51 + - 15 * 39 * - - CAST( SUM( ALL - CASE - 45 WHEN - 53 + 18 * CASE WHEN 50 * 34 IS NULL THEN 26 END THEN + 82 / 54 + 15 END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL 11 + 92 - 51 + - 15 * 39 * - - CAST ( SUM ( ALL - CASE - 45 WHEN - 53 + 18 * CASE WHEN 50 * 34 IS NULL THEN 26 END THEN + 82 / 54 + 15 END ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - SUM( ALL + 56 ) * 37 + + 41 col2
----
-2031

skipif mysql # not compatible
query I rowsort label-8255
SELECT - SUM ( ALL + 56 ) * 37 + + 41 col2
----
-2031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8256
SELECT ALL CASE - 24 WHEN - - 92 * COUNT( * ) + SUM( - CAST( + 61 AS SIGNED ) ) THEN + 41 WHEN + - 87 + - 35 THEN NULL ELSE - 70 END + + 30
----
-40

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL CASE - 24 WHEN - - 92 * COUNT ( * ) + SUM ( - CAST ( + 61 AS INTEGER ) ) THEN + 41 WHEN + - 87 + - 35 THEN NULL ELSE - 70 END + + 30
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8257
SELECT + 69 DIV - MAX( - + 10 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8257
SELECT + 69 / - MAX ( - + 10 ) AS col2
----
6

query I rowsort
SELECT DISTINCT + 42 * + 74
----
3108

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT ALL 76 DIV COALESCE ( + + ( + ( - 59 ) ), 61 ) + + 58 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL 76 / COALESCE ( + + ( + ( - 59 ) ), 61 ) + + 58 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT + MIN( ALL + - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT + MIN ( ALL + - 47 )
----
-47

query I rowsort
SELECT ALL - - 42 - - 27
----
69

query I rowsort
SELECT ALL NULLIF ( - - 86, 31 + + 96 * + - 59 + + 55 * 99 ) AS col0
----
86

query I rowsort
SELECT + - 70 * - 58 * - - 46 * - - 41 * 92 - 11 - + 89
----
704458620

query I rowsort
SELECT - - ( 77 ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8265
SELECT ALL ( + + 26 ) - + COUNT( * ) + + + CAST( NULL AS SIGNED ) * - CAST( ( - + 2 ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL ( + + 26 ) - + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * - CAST ( ( - + 2 ) AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8266
SELECT + 91 DIV 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8266
SELECT + 91 / 62 AS col0
----
1

query I rowsort
SELECT - + 84 col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT + COUNT( * ) - + 13 * + - CASE - COALESCE ( + + 27, 28, - SUM( - 53 ) + 39 + 3 * + 28 * CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) * + 19 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 28 / CASE - 37 WHEN COUNT( * ) + - ( + 86 + 77 ) * 57 THEN 52 * 51 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT + COUNT ( * ) - + 13 * + - CASE - COALESCE ( + + 27, 28, - SUM ( - 53 ) + 39 + 3 * + 28 * CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) * + 19 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 28 / CASE - 37 WHEN COUNT ( * ) + - ( + 86 + 77 ) * 57 THEN 52 * 51 END END
----
NULL

query II rowsort
SELECT + 18 - 19 * 24, - 94 AS col2
----
-438
-94

query II rowsort
SELECT ALL + 4 AS col0, - 57 AS col2
----
4
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT - + COUNT( * ) * - - COALESCE ( + SUM( ALL - 69 ), - COUNT( * ), + - COUNT( * ) - - 66 ) + - 54 DIV 23
----
67

skipif mysql # not compatible
query I rowsort label-8271
SELECT - + COUNT ( * ) * - - COALESCE ( + SUM ( ALL - 69 ), - COUNT ( * ), + - COUNT ( * ) - - 66 ) + - 54 / 23
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT DISTINCT - ( - 68 ) * - COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT - ( - 68 ) * - COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT ALL + + 84, COUNT( * ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-8273
SELECT ALL + + 84, COUNT ( * ) AS col0
----
84
1

query I rowsort
SELECT DISTINCT - 74 * - 70 AS col1
----
5180

query II rowsort
SELECT - 58 * - + CASE - + 81 WHEN + + 72 THEN 96 ELSE NULL END, 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL + MAX( DISTINCT + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + MAX ( DISTINCT + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT - + ( - 12 ) - - ( - + COUNT( ALL + + 50 ) ) * - 96
----
108

skipif mysql # not compatible
query I rowsort label-8277
SELECT - + ( - 12 ) - - ( - + COUNT ( ALL + + 50 ) ) * - 96
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8278
SELECT + CAST( + MIN( ALL + 27 ) AS SIGNED ) col0
----
27

skipif mysql # not compatible
query I rowsort label-8278
SELECT + CAST ( + MIN ( ALL + 27 ) AS INTEGER ) col0
----
27

query I rowsort
SELECT ( + ( - 60 ) ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL ( + + COALESCE ( + - 85, + 63 ) ) * - 74 + + 24 + - COUNT( * ) AS col2
----
6313

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL ( + + COALESCE ( + - 85, + 63 ) ) * - 74 + + 24 + - COUNT ( * ) AS col2
----
6313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT DISTINCT 68 * + CAST( NULL AS SIGNED ) * + + COUNT( * ) + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT 68 * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + 24 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL + CAST( - 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + CAST ( - 12 AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT 24 * NULLIF ( + 97, 95 ) + - + 99 + + MAX( ALL 26 ) * - 67 * 8 + COUNT( * ) AS col0
----
-11706

skipif mysql # not compatible
query I rowsort label-8283
SELECT 24 * NULLIF ( + 97, 95 ) + - + 99 + + MAX ( ALL 26 ) * - 67 * 8 + COUNT ( * ) AS col0
----
-11706

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL 43 * CASE - 90 WHEN + 26 * - ( + 65 ) THEN - 45 WHEN 65 + + 19 / - MIN( - 75 ) THEN + 27 + 56 ELSE 37 END + 5 AS col1
----
1596

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL 43 * CASE - 90 WHEN + 26 * - ( + 65 ) THEN - 45 WHEN 65 + + 19 / - MIN ( - 75 ) THEN + 27 + 56 ELSE 37 END + 5 AS col1
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT + COALESCE ( - 49, + + 34, + SUM( ( + 40 ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + COALESCE ( - 49, + + 34, + SUM ( ( + 40 ) ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL + ( + - CASE - - 1 WHEN - NULLIF ( + + COUNT( * ), MAX( + 28 ) + 74 ) + + - 89 THEN - + COUNT( * ) + 77 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + ( + - CASE - - 1 WHEN - NULLIF ( + + COUNT ( * ), MAX ( + 28 ) + 74 ) + + - 89 THEN - + COUNT ( * ) + 77 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT + COUNT( * ) * + - 67 + 3 * - CASE - 47 WHEN - 41 THEN + 16 * - + 3 END / 34 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + COUNT ( * ) * + - 67 + 3 * - CASE - 47 WHEN - 41 THEN + 16 * - + 3 END / 34 + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT COALESCE ( - + 65, + COUNT( * ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8288
SELECT COALESCE ( - + 65, + COUNT ( * ) ) AS col1
----
-65

query II rowsort
SELECT ALL + 67 col2, - 24
----
67
-24

query I rowsort
SELECT ALL - 49 * 10 - + 65
----
-555

query I rowsort
SELECT - 52 * - 59
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + MIN( 62 ) * - + 24 * + ( + MIN( + ( - 86 ) ) ) * + 47
----
6014496

skipif mysql # not compatible
query I rowsort label-8292
SELECT + MIN ( 62 ) * - + 24 * + ( + MIN ( + ( - 86 ) ) ) * + 47
----
6014496

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT NULLIF ( + 40, - - MIN( 74 ) ) AS col2, COUNT( * ) + - 93
----
40
-92

skipif mysql # not compatible
query II rowsort label-8293
SELECT NULLIF ( + 40, - - MIN ( 74 ) ) AS col2, COUNT ( * ) + - 93
----
40
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8294
SELECT DISTINCT - CASE 49 WHEN + ( MAX( ALL 65 ) ) THEN + 84 * - 16 DIV + CAST( 2 AS SIGNED ) + + 39 + 67 * - 50 ELSE 97 + - ( + 73 + 98 ) * 64 END * 99 AS col2
----
1073853

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - CASE 49 WHEN + ( MAX ( ALL 65 ) ) THEN + 84 * - 16 / + CAST ( 2 AS INTEGER ) + + 39 + 67 * - 50 ELSE 97 + - ( + 73 + 98 ) * 64 END * 99 AS col2
----
1073853

query II rowsort
SELECT ALL - 86, 89 AS col2
----
-86
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + - 74 * + 31 * + - 74 + + - NULLIF ( - CASE - + 4 WHEN - 17 / + - 51 * - - 49 * NULLIF ( 4, - 39 ) THEN NULL ELSE - 99 END, + MAX( + 54 ) * - 44 ) AS col1
----
169657

skipif mysql # not compatible
query I rowsort label-8296
SELECT + - 74 * + 31 * + - 74 + + - NULLIF ( - CASE - + 4 WHEN - 17 / + - 51 * - - 49 * NULLIF ( 4, - 39 ) THEN NULL ELSE - 99 END, + MAX ( + 54 ) * - 44 ) AS col1
----
169657

query I rowsort
SELECT ALL - + ( + 98 ) * + 92
----
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT + COUNT( - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT + COUNT ( - 17 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-8299
SELECT + 95 AS col1, COUNT( * ) AS col0, + 22
----
95
1
22

skipif mysql # not compatible
query III rowsort label-8299
SELECT + 95 AS col1, COUNT ( * ) AS col0, + 22
----
95
1
22

query I rowsort
SELECT - 66 + - 27 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT + 79 AS col0, COUNT( * )
----
79
1

skipif mysql # not compatible
query II rowsort label-8301
SELECT + 79 AS col0, COUNT ( * )
----
79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + 89 + - + NULLIF ( 69, - 35 * 64 * MAX( + - 61 ) * - 28 + - 10 ) col1
----
20

skipif mysql # not compatible
query I rowsort label-8302
SELECT + 89 + - + NULLIF ( 69, - 35 * 64 * MAX ( + - 61 ) * - 28 + - 10 ) col1
----
20

query II rowsort
SELECT 16, 10 col0
----
16
10

query II rowsort
SELECT - 29 AS col1, + 97 AS col1
----
-29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT + + 22 + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8305
SELECT + + 22 + COUNT ( * ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT ALL CAST( NULL AS SIGNED ) * 3 * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL CAST ( NULL AS INTEGER ) * 3 * 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8307
SELECT ALL - 92 + + - ( + + MAX( 47 ) ) * + 12 * - 72 AS col1, 75 * - 59 AS col0
----
40516
-4425

skipif mysql # not compatible
query II rowsort label-8307
SELECT ALL - 92 + + - ( + + MAX ( 47 ) ) * + 12 * - 72 AS col1, 75 * - 59 AS col0
----
40516
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT + 82 * - + COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8308
SELECT + 82 * - + COUNT ( * ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT 55 + + COUNT( * ) * - 76 * + COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8309
SELECT 55 + + COUNT ( * ) * - 76 * + COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT DISTINCT + 59 + - + 75 + - + 63
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL NULLIF ( 3, - - 92 ) + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL NULLIF ( 3, - - 92 ) + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT + COUNT( * ) AS col1, 15 AS col1
----
1
15

skipif mysql # not compatible
query II rowsort label-8312
SELECT + COUNT ( * ) AS col1, 15 AS col1
----
1
15

query II rowsort
SELECT - - 32 AS col2, - 18
----
32
-18

query I rowsort
SELECT - 79 + - 16 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT CASE + COUNT( ALL - - 14 ) WHEN + 46 THEN NULL WHEN - 59 THEN - - COUNT( * ) ELSE NULL END * - ( + NULLIF ( + 99, + - COUNT( ALL - 47 ) * + - 99 + 74 ) ) * - 8 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT CASE + COUNT ( ALL - - 14 ) WHEN + 46 THEN NULL WHEN - 59 THEN - - COUNT ( * ) ELSE NULL END * - ( + NULLIF ( + 99, + - COUNT ( ALL - 47 ) * + - 99 + 74 ) ) * - 8 + - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8316
SELECT ALL 36 + + COUNT( * ) + - + CAST( NULL AS SIGNED ) * + 4 / + 58 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL 36 + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * + 4 / + 58 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8317
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 63
----
NULL

query I rowsort
SELECT DISTINCT - ( - 31 ) col0
----
31

query I rowsort
SELECT ALL - 47 * 26 AS col1
----
-1222

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8320
SELECT CAST( 14 AS SIGNED ) - - 98 DIV + 26 col1
----
17

skipif mysql # not compatible
query I rowsort label-8320
SELECT CAST ( 14 AS INTEGER ) - - 98 / + 26 col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8321
SELECT - 45 * + 47 * CASE - 58 WHEN - 54 DIV + AVG ( DISTINCT + 38 ) THEN + 44 ELSE 95 DIV - 32 + - 49 END * - - 50 * - MAX( DISTINCT - 42 ) - 9 + 99 col0
----
226516590

skipif mysql # not compatible
query I rowsort label-8321
SELECT - 45 * + 47 * CASE - 58 WHEN - 54 / + AVG ( DISTINCT + 38 ) THEN + 44 ELSE 95 / - 32 + - 49 END * - - 50 * - MAX ( DISTINCT - 42 ) - 9 + 99 col0
----
226516590

query I rowsort
SELECT DISTINCT - 11 - 71 + + 17
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8323
SELECT ALL + CASE + - 70 WHEN - 72 * - 88 THEN + 49 + 75 WHEN 56 THEN NULL ELSE - COUNT( DISTINCT 93 ) * + NULLIF ( + COUNT( * ), + 93 ) DIV COUNT( * ) END * + 24
----
-24

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + CASE + - 70 WHEN - 72 * - 88 THEN + 49 + 75 WHEN 56 THEN NULL ELSE - COUNT ( DISTINCT 93 ) * + NULLIF ( + COUNT ( * ), + 93 ) / COUNT ( * ) END * + 24
----
-24

query I rowsort
SELECT 47 * + 15 + + 64 AS col2
----
769

query I rowsort
SELECT DISTINCT 75 - - - 90
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT ALL COUNT( * ) * + - 40 AS col1, 41 AS col2
----
-40
41

skipif mysql # not compatible
query II rowsort label-8326
SELECT ALL COUNT ( * ) * + - 40 AS col1, 41 AS col2
----
-40
41

query I rowsort
SELECT DISTINCT + ( + 29 ) - + + 62 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8328
SELECT ALL + 94 DIV + - COUNT( ALL + 92 )
----
-94

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + 94 / + - COUNT ( ALL + 92 )
----
-94

query I rowsort
SELECT 29 + - 55 + - 3
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL - COALESCE ( - 98, COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - COALESCE ( - 98, COUNT ( * ) )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT - 64 DIV MIN( 5 ) DIV - 40 * + ( 72 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT - 64 / MIN ( 5 ) / - 40 * + ( 72 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT 21 * + ( + 29 ) + 66 + + 86 * - 64 - NULLIF ( + 31, - + 60 * + 22 ) + + CASE - + 48 WHEN - ( - 14 ) THEN NULL WHEN - 37 THEN NULL WHEN 95 / 17 THEN COUNT( * ) * 75 ELSE NULL END - 22 * COALESCE ( 10 / 14 + 38 * + 0, - 62 + 53 * AVG ( ALL 79 + 64 ) ) / + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT 21 * + ( + 29 ) + 66 + + 86 * - 64 - NULLIF ( + 31, - + 60 * + 22 ) + + CASE - + 48 WHEN - ( - 14 ) THEN NULL WHEN - 37 THEN NULL WHEN 95 / 17 THEN COUNT ( * ) * 75 ELSE NULL END - 22 * COALESCE ( 10 / 14 + 38 * + 0, - 62 + 53 * AVG ( ALL 79 + 64 ) ) / + 72 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - 77 * - 28 - - COUNT( - 90 )
----
2157

skipif mysql # not compatible
query I rowsort label-8333
SELECT - 77 * - 28 - - COUNT ( - 90 )
----
2157

query I rowsort
SELECT + ( - - 33 ) * - - ( - 97 )
----
-3201

query I rowsort
SELECT ALL - - 95 * + + 31
----
2945

query I rowsort
SELECT ALL ( 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT DISTINCT NULLIF ( ( 93 ), 31 + + 46 ) + - + 67 * - MAX( 60 ) AS col1, - 27 AS col1
----
4113
-27

skipif mysql # not compatible
query II rowsort label-8337
SELECT DISTINCT NULLIF ( ( 93 ), 31 + + 46 ) + - + 67 * - MAX ( 60 ) AS col1, - 27 AS col1
----
4113
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8338
SELECT ALL CAST( - NULLIF ( MIN( + 8 ), 38 * - 47 + - + 62 * COALESCE ( + - ( 35 ), 44 ) + ( + COALESCE ( 20, - 11 + 97 * - 2, 86 ) ) * 63 - - ( 79 ) * + COUNT( * ) ) AS SIGNED ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL CAST ( - NULLIF ( MIN ( + 8 ), 38 * - 47 + - + 62 * COALESCE ( + - ( 35 ), 44 ) + ( + COALESCE ( 20, - 11 + 97 * - 2, 86 ) ) * 63 - - ( 79 ) * + COUNT ( * ) ) AS INTEGER ) AS col0
----
-8

query I rowsort
SELECT + 13 * 17 AS col0
----
221

query I rowsort
SELECT 80 + - 39
----
41

query I rowsort
SELECT - 80 * - 62
----
4960

query I rowsort
SELECT 70 * - 10 AS col2
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - SUM( DISTINCT + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-8343
SELECT - SUM ( DISTINCT + 10 )
----
-10

query I rowsort
SELECT - + COALESCE ( + + 23, - 27 ) AS col0
----
-23

query II rowsort
SELECT + 2 - - 21, ( 99 ) AS col1
----
23
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8346
SELECT ALL + 80 + + 54, 31 * - COUNT( * ) + + + 49 * + 74 * + 53 AS col1
----
134
192147

skipif mysql # not compatible
query II rowsort label-8346
SELECT ALL + 80 + + 54, 31 * - COUNT ( * ) + + + 49 * + 74 * + 53 AS col1
----
134
192147

query I rowsort
SELECT NULLIF ( - 58, 69 + 10 * + 41 ) - - 87
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL + + ( + - 50 ) + 50 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL + + ( + - 50 ) + 50 * + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT CASE + 29 WHEN - - ( - 94 ) * - COUNT( * ) + + 46 * + + 53 / - 69 + - 46 * + - 40 + - 47 / - 24 THEN - 21 + 15 WHEN + AVG ( ALL 81 ) / + 98 - 6 / MAX( 14 * - 61 + + 47 ) THEN NULL END + + MIN( ALL 57 + - 93 * - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT CASE + 29 WHEN - - ( - 94 ) * - COUNT ( * ) + + 46 * + + 53 / - 69 + - 46 * + - 40 + - 47 / - 24 THEN - 21 + 15 WHEN + AVG ( ALL 81 ) / + 98 - 6 / MAX ( 14 * - 61 + + 47 ) THEN NULL END + + MIN ( ALL 57 + - 93 * - 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8350
SELECT 68 AS col2, - CASE - 28 WHEN COUNT( * ) * - COUNT( * ) THEN NULL WHEN + 56 THEN - - 36 ELSE NULL END AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-8350
SELECT 68 AS col2, - CASE - 28 WHEN COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN + 56 THEN - - 36 ELSE NULL END AS col2
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL COUNT( * ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL COUNT ( * ) + + 57
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT - MAX( + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT - MAX ( + 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8353
SELECT CAST( 66 AS SIGNED ) DIV ( - ( + + 79 ) ) * - - SUM( 27 ) + 0 + + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8353
SELECT CAST ( 66 AS INTEGER ) / ( - ( + + 79 ) ) * - - SUM ( 27 ) + 0 + + + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT COUNT( * ) - CAST( - 97 AS SIGNED ) col1
----
98

skipif mysql # not compatible
query I rowsort label-8354
SELECT COUNT ( * ) - CAST ( - 97 AS INTEGER ) col1
----
98

query I rowsort
SELECT ALL 94 * - 41
----
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT ALL ( 74 ) - - 21 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL ( 74 ) - - 21 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - 35 ) * ( - 22 )
----
770

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT + 51, + COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-8358
SELECT + 51, + COUNT ( * ) AS col1
----
51
1

query II rowsort
SELECT ALL - 83 col2, 12 * - 63 AS col2
----
-83
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-8360
SELECT 61 * - 84 * + 47 + - - 51 + 46 + - 38 DIV - 18
----
-240729

skipif mysql # not compatible
query I rowsort label-8360
SELECT 61 * - 84 * + 47 + - - 51 + 46 + - 38 / - 18
----
-240729

query I rowsort
SELECT - 84 * + - 59 + - 95
----
4861

onlyif mysql # DIV for integer division: 
query II rowsort label-8362
SELECT ALL - 77 AS col1, + 19 DIV 15 + - 6 AS col1
----
-77
-5

skipif mysql # not compatible
query II rowsort label-8362
SELECT ALL - 77 AS col1, + 19 / 15 + - 6 AS col1
----
-77
-5

query I rowsort
SELECT 18 + + 21 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8364
SELECT COALESCE ( 61, + + CASE ( - 27 ) WHEN COUNT( * ) THEN NULL WHEN 48 THEN NULL WHEN + - 78 THEN 73 DIV + 76 END ) * + - CAST( 45 AS SIGNED ) AS col1
----
-2745

skipif mysql # not compatible
query I rowsort label-8364
SELECT COALESCE ( 61, + + CASE ( - 27 ) WHEN COUNT ( * ) THEN NULL WHEN 48 THEN NULL WHEN + - 78 THEN 73 / + 76 END ) * + - CAST ( 45 AS INTEGER ) AS col1
----
-2745

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT + 77 * + 10 + NULLIF ( - 27, - + 4 / + + 7 * COUNT( * ) * - 17 + + 56 * + 39 + - + 81 ) + 57 - + 60
----
740

skipif mysql # not compatible
query I rowsort label-8365
SELECT + 77 * + 10 + NULLIF ( - 27, - + 4 / + + 7 * COUNT ( * ) * - 17 + + 56 * + 39 + - + 81 ) + 57 - + 60
----
740

query I rowsort
SELECT ALL - + 78 col0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT + - NULLIF ( + - 95, COALESCE ( + - NULLIF ( - 53, + - 18 ), COUNT( * ) ) + COUNT( * ) ) AS col0, - 1 + 6
----
95
5

skipif mysql # not compatible
query II rowsort label-8367
SELECT + - NULLIF ( + - 95, COALESCE ( + - NULLIF ( - 53, + - 18 ), COUNT ( * ) ) + COUNT ( * ) ) AS col0, - 1 + 6
----
95
5

query I rowsort
SELECT + + ( 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8369
SELECT COUNT( * ) * 90 + + 43 * - 21, 76 * - + CAST( + + COUNT( + 16 ) AS SIGNED ) col0
----
-813
-76

skipif mysql # not compatible
query II rowsort label-8369
SELECT COUNT ( * ) * 90 + + 43 * - 21, 76 * - + CAST ( + + COUNT ( + 16 ) AS INTEGER ) col0
----
-813
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT - 71 + + 79 * + + 37 - 26 * - - ( + 17 ) + - + CAST( - + COUNT( * ) AS SIGNED ) + 8 * - 58 * + 70 + + 79
----
-29990

skipif mysql # not compatible
query I rowsort label-8370
SELECT - 71 + + 79 * + + 37 - 26 * - - ( + 17 ) + - + CAST ( - + COUNT ( * ) AS INTEGER ) + 8 * - 58 * + 70 + + 79
----
-29990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8371
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-8371
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, 69
----
NULL
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8372
SELECT ALL 53 AS col2, - CAST( + + 75 AS SIGNED ) * - - 2 AS col2
----
53
-150

skipif mysql # not compatible
query II rowsort label-8372
SELECT ALL 53 AS col2, - CAST ( + + 75 AS INTEGER ) * - - 2 AS col2
----
53
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL CASE + + 79 WHEN - - 35 THEN 14 WHEN 59 - + 35 THEN - 4 * - - 15 / ( CAST( NULL AS SIGNED ) ) END + + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL CASE + + 79 WHEN - - 35 THEN 14 WHEN 59 - + 35 THEN - 4 * - - 15 / ( CAST ( NULL AS INTEGER ) ) END + + 4 AS col1
----
NULL

query I rowsort
SELECT + - 59 * + 12 - + - ( - - 72 ) + 77 + 93 * - 65
----
-6604

query I rowsort
SELECT - + 64 + - 83 * - + 36 * + + 62 AS col2
----
185192

query I rowsort
SELECT - - 53 * - 98 AS col2
----
-5194

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT - - COUNT( 14 ) * COUNT( * ) * + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8377
SELECT - - COUNT ( 14 ) * COUNT ( * ) * + 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL + - 76 + + 21 * - COUNT( * ) * - 79
----
1583

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + - 76 + + 21 * - COUNT ( * ) * - 79
----
1583

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8379
SELECT - CASE WHEN 42 IS NOT NULL THEN - 75 END + + + SUM( DISTINCT - - 51 ) DIV 21 * 85 AS col2, ( + + 48 )
----
245
48

skipif mysql # not compatible
query II rowsort label-8379
SELECT - CASE WHEN 42 IS NOT NULL THEN - 75 END + + + SUM ( DISTINCT - - 51 ) / 21 * 85 AS col2, ( + + 48 )
----
245
48

query II rowsort
SELECT 13 AS col2, 96 AS col1
----
13
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8381
SELECT - CASE + - 65 WHEN CASE 93 WHEN + - 8 THEN COUNT( * ) ELSE NULL END THEN - + 85 WHEN MAX( 77 ) * - CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) + + + 72 + 50 END AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-8381
SELECT - CASE + - 65 WHEN CASE 93 WHEN + - 8 THEN COUNT ( * ) ELSE NULL END THEN - + 85 WHEN MAX ( 77 ) * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) + + + 72 + 50 END AS col2
----
-123

query I rowsort
SELECT - 0 + - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT - SUM( ALL + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - SUM ( ALL + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL + + 75 + + + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL + + 75 + + + COUNT ( * ) AS col2
----
76

query II rowsort
SELECT DISTINCT + 74 - - 98 AS col0, 76 AS col2
----
172
76

query I rowsort
SELECT + 89 + + - 15 * - 5 * + + COALESCE ( - 21, 70 )
----
-1486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT ALL COALESCE ( 55, - ( - ( - - 58 ) ) * - - CAST( NULL AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL COALESCE ( 55, - ( - ( - - 58 ) ) * - - CAST ( NULL AS INTEGER ) )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT + 65 + - + SUM( + + 74 ) + + + CAST( NULL AS SIGNED ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT + 65 + - + SUM ( + + 74 ) + + + CAST ( NULL AS INTEGER ) * - 28
----
NULL

query I rowsort
SELECT - 53 * + 94
----
-4982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8390
SELECT + CASE COUNT( * ) WHEN - - 48 * - CASE WHEN NOT ( NULL ) <= CAST( + - 56 AS DECIMAL ) THEN 36 * COALESCE ( - + 22, ( - 0 ), + 59 ) * + 82 + 19 END + + 77 * - 61 THEN 2 WHEN 22 THEN 57 / 39 + - 73 ELSE NULL END * CASE 96 WHEN + 52 + - 72 THEN - CAST( NULL AS SIGNED ) WHEN 28 THEN NULL WHEN 57 THEN COUNT( + 99 ) * 74 - 15 WHEN - ( + COUNT( ALL 38 ) ) THEN 74 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT + CASE COUNT ( * ) WHEN - - 48 * - CASE WHEN NOT ( NULL ) <= CAST ( + - 56 AS REAL ) THEN 36 * COALESCE ( - + 22, ( - 0 ), + 59 ) * + 82 + 19 END + + 77 * - 61 THEN 2 WHEN 22 THEN 57 / 39 + - 73 ELSE NULL END * CASE 96 WHEN + 52 + - 72 THEN - CAST ( NULL AS INTEGER ) WHEN 28 THEN NULL WHEN 57 THEN COUNT ( + 99 ) * 74 - 15 WHEN - ( + COUNT ( ALL 38 ) ) THEN 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT - 43 DIV 81 + + 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8392
SELECT - 43 / 81 + + 72 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8393
SELECT ALL 17 * - - 44 * ( + CAST( NULL AS SIGNED ) ) AS col0, + 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-8393
SELECT ALL 17 * - - 44 * ( + CAST ( NULL AS INTEGER ) ) AS col0, + 75
----
NULL
75

query I rowsort
SELECT + 23 * - 4 AS col1
----
-92

query I rowsort
SELECT DISTINCT 34 * + - 26
----
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT - COUNT( * ) * - - ( - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT - COUNT ( * ) * - - ( - 27 )
----
27

query II rowsort
SELECT - 69 - - - 93, 41 AS col2
----
-162
41

query I rowsort
SELECT + COALESCE ( + 70, + - 65 + + - 84, + - 41 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL 81 * + NULLIF ( + - 46, - 61 + - 53 - + + 64 * - SUM( ALL 36 ) ) * - 31
----
115506

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL 81 * + NULLIF ( + - 46, - 61 + - 53 - + + 64 * - SUM ( ALL 36 ) ) * - 31
----
115506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT - 87 DIV + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 87 / + COUNT ( * ) AS col0
----
-87

query I rowsort
SELECT ( + 56 ) * 62 + - 1
----
3471

onlyif mysql # aggregate syntax: 
query II rowsort label-8402
SELECT CASE - 30 WHEN 85 * + - COUNT( * ) + + COUNT( * ) THEN + 78 WHEN + 8 THEN NULL END AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-8402
SELECT CASE - 30 WHEN 85 * + - COUNT ( * ) + + COUNT ( * ) THEN + 78 WHEN + 8 THEN NULL END AS col1, 8
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT + 63 * + COUNT( DISTINCT + 88 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8403
SELECT + 63 * + COUNT ( DISTINCT + 88 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL 17 * - SUM( 40 ) + - 76 AS col2
----
-756

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL 17 * - SUM ( 40 ) + - 76 AS col2
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT + SUM( - + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8405
SELECT + SUM ( - + 37 )
----
-37

query I rowsort
SELECT + 55 * - 58
----
-3190

query II rowsort
SELECT + 59 - - + 92 col0, 0 col0
----
151
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8408
SELECT ALL + - CASE COALESCE ( + COUNT( * ), - + 98 + + 44 + 11 * + COUNT( * ) + - AVG ( ALL + 50 ) * - 43 ) WHEN + MIN( DISTINCT - 87 ) + + 52 * - - CAST( 10 AS DECIMAL ) THEN ( - COUNT( * ) ) * 74 + + CASE 44 + - 32 * + COALESCE ( 94, 21 ) WHEN - COUNT( * ) THEN ( 3 ) * + 27 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + - CASE COALESCE ( + COUNT ( * ), - + 98 + + 44 + 11 * + COUNT ( * ) + - AVG ( ALL + 50 ) * - 43 ) WHEN + MIN ( DISTINCT - 87 ) + + 52 * - - CAST ( 10 AS REAL ) THEN ( - COUNT ( * ) ) * 74 + + CASE 44 + - 32 * + COALESCE ( 94, 21 ) WHEN - COUNT ( * ) THEN ( 3 ) * + 27 ELSE NULL END END
----
NULL

query II rowsort
SELECT ALL - 34 * - 45 - + + 12 + - 20 + - 77 AS col2, 42 * - - 88 * + 79 - + - 91 * + NULLIF ( 46, + AVG ( + 66 ) )
----
1421
296170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8410
SELECT ALL - 70 * + + 12 + - 61 - - NULLIF ( - - 52, 26 ) * - + 85 + + COUNT( * ) + + + CAST( NULL AS SIGNED ) + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - 70 * + + 12 + - 61 - - NULLIF ( - - 52, 26 ) * - + 85 + + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - 21 AS col2
----
NULL

query I rowsort
SELECT + - 68 + + + 91 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT SUM( 13 ) * + 98 + - COALESCE ( - 47, + 10, + 61, + 45 )
----
1321

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT SUM ( 13 ) * + 98 + - COALESCE ( - 47, + 10, + 61, + 45 )
----
1321

query I rowsort
SELECT NULLIF ( + 60, + 65 * + 41 - - 89 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - 34 * - 17 + - + 55 * - 89 * - + ( COUNT( * ) ) * + 66 - 23 AS col0
----
-322515

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - 34 * - 17 + - + 55 * - 89 * - + ( COUNT ( * ) ) * + 66 - 23 AS col0
----
-322515

query II rowsort
SELECT + 71 * 34 col2, - 66
----
2414
-66

query I rowsort
SELECT - ( - ( + + 99 ) ) col2
----
99

query I rowsort
SELECT DISTINCT + ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL - CASE - - 35 WHEN - + 37 * - COUNT( * ) + - + 97 THEN - COALESCE ( + 71, 89 + 64 + - 45 * + + 4, 93 ) END - + - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - CASE - - 35 WHEN - + 37 * - COUNT ( * ) + - + 97 THEN - COALESCE ( + 71, 89 + 64 + - 45 * + + 4, 93 ) END - + - 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL + MIN( - 42 ) - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + MIN ( - 42 ) - COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT MIN( - + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT MIN ( - + 28 ) AS col0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT - 89 DIV + + 65
----
-1

skipif mysql # not compatible
query I rowsort label-8421
SELECT - 89 / + + 65
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT - 15 DIV COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - 15 / COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT - MAX( DISTINCT - ( + 91 ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8423
SELECT - MAX ( DISTINCT - ( + 91 ) ) AS col0
----
91

query I rowsort
SELECT - 53 - - ( 84 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL MIN( + + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL MIN ( + + 21 )
----
21

query I rowsort
SELECT - 29 - 81 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL + COUNT( * ) * + 41 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + COUNT ( * ) * + 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT CASE CASE - 90 WHEN - 31 THEN - COUNT( * ) * - 62 + 73 * - ( 5 ) * + 6 + + COUNT( - 99 ) + + - 63 / - NULLIF ( - ( + COUNT( * ) ), NULLIF ( 88, 17 ) - 60 / 47 ) + + 42 * - 49 WHEN 63 + + ( + 83 + + 96 * - 96 ) * ( + MIN( 67 ) ) THEN - COUNT( * ) END WHEN + 51 THEN 80 * - 78 + 70 * - 31 WHEN - 98 THEN NULL ELSE - 97 END
----
-97

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT CASE CASE - 90 WHEN - 31 THEN - COUNT ( * ) * - 62 + 73 * - ( 5 ) * + 6 + + COUNT ( - 99 ) + + - 63 / - NULLIF ( - ( + COUNT ( * ) ), NULLIF ( 88, 17 ) - 60 / 47 ) + + 42 * - 49 WHEN 63 + + ( + 83 + + 96 * - 96 ) * ( + MIN ( 67 ) ) THEN - COUNT ( * ) END WHEN + 51 THEN 80 * - 78 + 70 * - 31 WHEN - 98 THEN NULL ELSE - 97 END
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL COALESCE ( + - COUNT( * ), - 67 * COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL COALESCE ( + - COUNT ( * ), - 67 * COUNT ( * ) ) AS col2
----
-1

query II rowsort
SELECT ALL - 25 * + + 93 * + 11 AS col0, + 81 col2
----
-25575
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8431
SELECT - 76 DIV 97 + COUNT( * ) AS col0, + 26 - - 8 - 94 - 8 AS col1
----
1
-68

skipif mysql # not compatible
query II rowsort label-8431
SELECT - 76 / 97 + COUNT ( * ) AS col0, + 26 - - 8 - 94 - 8 AS col1
----
1
-68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8432
SELECT + CAST( 7 AS DECIMAL ) * CAST( NULL AS SIGNED ) / 11 - 88 + - - 72 / + ( 27 ), 28 * - + 98 * - - 97 AS col0
----
NULL
-266168

skipif mysql # not compatible
query II rowsort label-8432
SELECT + CAST ( 7 AS REAL ) * CAST ( NULL AS INTEGER ) / 11 - 88 + - - 72 / + ( 27 ), 28 * - + 98 * - - 97 AS col0
----
NULL
-266168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8433
SELECT DISTINCT + 63 DIV COUNT( * ) + 2
----
65

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + 63 / COUNT ( * ) + 2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL ( - CAST( NULL AS SIGNED ) ) / + 84 + + 85 + + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / + 84 + + 85 + + 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT ALL 13 DIV + 40 + COUNT( * ) + 73 * + - 37 AS col0
----
-2700

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL 13 / + 40 + COUNT ( * ) + 73 * + - 37 AS col0
----
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8436
SELECT ALL + CASE + - COUNT( * ) WHEN 83 THEN NULL WHEN COUNT( * ) THEN COUNT( * ) * - 89 WHEN - CAST( 33 AS SIGNED ) THEN + COALESCE ( + - ( - 50 ), + CASE WHEN NOT ( NULL ) IS NOT NULL THEN - 54 ELSE + 35 END * + 40, - MIN( DISTINCT - 93 ) * 23 ) * + ( 17 ) + 28 WHEN 28 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL + CASE + - COUNT ( * ) WHEN 83 THEN NULL WHEN COUNT ( * ) THEN COUNT ( * ) * - 89 WHEN - CAST ( 33 AS INTEGER ) THEN + COALESCE ( + - ( - 50 ), + CASE WHEN NOT ( NULL ) IS NOT NULL THEN - 54 ELSE + 35 END * + 40, - MIN ( DISTINCT - 93 ) * 23 ) * + ( 17 ) + 28 WHEN 28 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT DISTINCT - 70 / - CAST( NULL AS SIGNED ) + - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT - 70 / - CAST ( NULL AS INTEGER ) + - 54 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + COUNT( * ) * 26 * - 51 + - 26 AS col1
----
-1352

skipif mysql # not compatible
query I rowsort label-8438
SELECT + COUNT ( * ) * 26 * - 51 + - 26 AS col1
----
-1352

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT - - 64 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8439
SELECT - - 64 / - 94 AS col2
----
0

query I rowsort
SELECT ALL + + 9 + 90 AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8441
SELECT + CASE + 53 WHEN - + 81 + + - 63 + - ( - - 0 ) THEN 30 ELSE - + 22 / - SUM( ALL + - CAST( NULL AS SIGNED ) ) + - 49 * - + CAST( NULL AS DECIMAL ) * 56 END, 73 AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8441
SELECT + CASE + 53 WHEN - + 81 + + - 63 + - ( - - 0 ) THEN 30 ELSE - + 22 / - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + - 49 * - + CAST ( NULL AS REAL ) * 56 END, 73 AS col2
----
NULL
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8442
SELECT ALL COUNT( * ) + + 22 * + NULLIF ( + 82, + + 80 * + ( 50 ) + + 31 ) * - - 65 - - - CASE + - 30 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + - 50 THEN NULL WHEN + 27 * - ( COALESCE ( 16, - 5 * 22 ) ) + NULLIF ( - AVG ( DISTINCT + ( 81 ) ), - 27 + + CAST( + 50 AS SIGNED ) * + 88 ) THEN + NULLIF ( 53, 53 ) * 29 ELSE 96 * - 20 END * + 85 - ( - 4 + - CASE ( + ( + 53 ) ) WHEN 91 THEN NULL ELSE 39 END DIV - 32 )
----
280464

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL COUNT ( * ) + + 22 * + NULLIF ( + 82, + + 80 * + ( 50 ) + + 31 ) * - - 65 - - - CASE + - 30 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + - 50 THEN NULL WHEN + 27 * - ( COALESCE ( 16, - 5 * 22 ) ) + NULLIF ( - AVG ( DISTINCT + ( 81 ) ), - 27 + + CAST ( + 50 AS INTEGER ) * + 88 ) THEN + NULLIF ( 53, 53 ) * 29 ELSE 96 * - 20 END * + 85 - ( - 4 + - CASE ( + ( + 53 ) ) WHEN 91 THEN NULL ELSE 39 END / - 32 )
----
280464

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL - 19 + 84 + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL - 19 + 84 + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT ALL - 8 * + + COALESCE ( - 65, + 21 ) AS col0
----
520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT 86 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT 86 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ( 19 ) + + 86 + - - MAX( + - 52 ) - - 69 + - - 76
----
198

skipif mysql # not compatible
query I rowsort label-8446
SELECT ( 19 ) + + 86 + - - MAX ( + - 52 ) - - 69 + - - 76
----
198

query II rowsort
SELECT ALL 72 + + CASE - - 52 WHEN 90 + ( - 62 ) THEN + 9 ELSE - 56 END AS col0, 35 * + 11
----
16
385

query I rowsort
SELECT 78 * - 18
----
-1404

query I rowsort
SELECT ALL - 73 * - 84
----
6132

query I rowsort
SELECT 55 + + - 94 * + + ( + ( - 81 ) )
----
7669

query I rowsort
SELECT + 82 + - 81 - - 17
----
18

query I rowsort
SELECT DISTINCT 56 - - 4
----
60

query I rowsort
SELECT - 49 + + + 47 AS col1
----
-2

query I rowsort
SELECT - 12 * 70 + - + 89
----
-929

query I rowsort
SELECT 42 + 16
----
58

query I rowsort
SELECT ( NULLIF ( - 57, + 22 ) ) + - 35 + - 63 + - + 16 * 2 AS col0
----
-187

query II rowsort
SELECT DISTINCT 83 AS col2, 22
----
83
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT CAST( NULL AS SIGNED ) + - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT CAST ( NULL AS INTEGER ) + - + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT ALL - 66 DIV - - 84
----
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - 66 / - - 84
----
0

query I rowsort
SELECT 48 + 65
----
113

query II rowsort
SELECT ALL 64 + 27 + - 48 * 24, + 98 AS col2
----
-1061
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8462
SELECT 57 + 37 * + + 0 + - 11 DIV 14
----
57

skipif mysql # not compatible
query I rowsort label-8462
SELECT 57 + 37 * + + 0 + - 11 / 14
----
57

query I rowsort
SELECT NULLIF ( + + 50, - ( - + 86 ) ) * + 16 AS col0
----
800

query I rowsort
SELECT 67 + + 3 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL + 67 + - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + 67 + - COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT 26 col2, + COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-8466
SELECT 26 col2, + COUNT ( * )
----
26
1

query I rowsort
SELECT 76 + + 88
----
164

query II rowsort
SELECT ALL - 18 col0, 1 AS col1
----
-18
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8469
SELECT ALL + 31 * + + CASE - + 47 WHEN - 37 THEN 93 WHEN - 17 THEN + 60 * 61 * + CAST( NULL AS SIGNED ) + - 61 ELSE + + 11 * + CASE 9 WHEN + 20 * + - AVG ( DISTINCT 31 ) + + 39 THEN + CAST( NULL AS DECIMAL ) * - 12 WHEN 85 THEN 20 + 53 END END * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + 31 * + + CASE - + 47 WHEN - 37 THEN 93 WHEN - 17 THEN + 60 * 61 * + CAST ( NULL AS INTEGER ) + - 61 ELSE + + 11 * + CASE 9 WHEN + 20 * + - AVG ( DISTINCT 31 ) + + 39 THEN + CAST ( NULL AS REAL ) * - 12 WHEN 85 THEN 20 + 53 END END * 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8470
SELECT + COUNT( ALL - 25 ) DIV - ( - 36 ) + + 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8470
SELECT + COUNT ( ALL - 25 ) / - ( - 36 ) + + 86 AS col2
----
86

query I rowsort
SELECT 66 * - 19 * 13
----
-16302

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - 29 + 15 * - COUNT( ALL + + 9 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - 29 + 15 * - COUNT ( ALL + + 9 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8473
SELECT DISTINCT - - 36 + + COUNT( * ) col0, MAX( + 32 ) * + CAST( NULL AS SIGNED ) col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8473
SELECT DISTINCT - - 36 + + COUNT ( * ) col0, MAX ( + 32 ) * + CAST ( NULL AS INTEGER ) col1
----
37
NULL

query I rowsort
SELECT 70 - - ( - 19 ) + 19
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8475
SELECT 13 * + 51 * - CAST( - 73 AS SIGNED ) + ( + MIN( + - 11 ) ) - + COUNT( * ) DIV + 72 * 69
----
48388

skipif mysql # not compatible
query I rowsort label-8475
SELECT 13 * + 51 * - CAST ( - 73 AS INTEGER ) + ( + MIN ( + - 11 ) ) - + COUNT ( * ) / + 72 * 69
----
48388

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - + 44 + - - 95 + + NULLIF ( + 35, + 77 ) * + NULLIF ( - COUNT( DISTINCT - 76 ), - 97 - + - 88 )
----
16

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - + 44 + - - 95 + + NULLIF ( + 35, + 77 ) * + NULLIF ( - COUNT ( DISTINCT - 76 ), - 97 - + - 88 )
----
16

query I rowsort
SELECT ALL + - CASE - 76 WHEN + + 92 * + + ( 12 ) THEN 98 WHEN + + 47 THEN - - 47 END + - + 35 + 18 + 77 + + 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT 90 + + - CAST( - 5 AS SIGNED ) col1
----
95

skipif mysql # not compatible
query I rowsort label-8478
SELECT 90 + + - CAST ( - 5 AS INTEGER ) col1
----
95

query I rowsort
SELECT ALL - ( + 92 )
----
-92

query I rowsort
SELECT DISTINCT - 64 * + 62 * 35 + - + 30 AS col2
----
-138910

query I rowsort
SELECT ALL + - 2 - 47 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8482
SELECT ALL - - 63 col2, CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-8482
SELECT ALL - - 63 col2, CAST ( NULL AS INTEGER )
----
63
NULL

query I rowsort
SELECT - ( - - 69 ) + + + 80
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT 8 DIV - ( + + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT 8 / - ( + + 31 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - 47 * + - ( - COUNT( * ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8485
SELECT - 47 * + - ( - COUNT ( * ) ) AS col2
----
-47

query I rowsort
SELECT 39 * + 42 + - - 76
----
1714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT ALL - CAST( - 23 AS SIGNED ) * + 74 col0
----
1702

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - CAST ( - 23 AS INTEGER ) * + 74 col0
----
1702

query I rowsort
SELECT CASE 59 WHEN 6 THEN 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL MIN( + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL MIN ( + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT DISTINCT SUM( DISTINCT + 64 ) AS col2, 10 + - + 51 + - - COUNT( * ) * 88 + 24 * 94 * 39 * + 59 + - + 63 * - 43
----
64
5193812

skipif mysql # not compatible
query II rowsort label-8490
SELECT DISTINCT SUM ( DISTINCT + 64 ) AS col2, 10 + - + 51 + - - COUNT ( * ) * 88 + 24 * 94 * 39 * + 59 + - + 63 * - 43
----
64
5193812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8491
SELECT 22 + - 76 + + 75 + + - 88 / + 34 * - COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT 22 + - 76 + + 75 + + - 88 / + 34 * - COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 58 + + 93 AS col0
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8493
SELECT CASE ( + 74 ) WHEN + 81 * 8 THEN NULL WHEN 48 THEN 70 / - NULLIF ( 48, + 7 ) WHEN + COUNT( * ) THEN + 36 WHEN + NULLIF ( 24, - 79 ) + + NULLIF ( - AVG ( ALL + 35 ), COUNT( * ) + 16 * - CAST( NULL AS SIGNED ) ) THEN 55 ELSE NULL END * CASE - 33 + + ( 33 - - CASE - 35 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 69 * 45 END ) WHEN 44 * + 76 THEN NULL ELSE COUNT( * ) * + CAST( 83 AS SIGNED ) + + 73 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT CASE ( + 74 ) WHEN + 81 * 8 THEN NULL WHEN 48 THEN 70 / - NULLIF ( 48, + 7 ) WHEN + COUNT ( * ) THEN + 36 WHEN + NULLIF ( 24, - 79 ) + + NULLIF ( - AVG ( ALL + 35 ), COUNT ( * ) + 16 * - CAST ( NULL AS INTEGER ) ) THEN 55 ELSE NULL END * CASE - 33 + + ( 33 - - CASE - 35 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 69 * 45 END ) WHEN 44 * + 76 THEN NULL ELSE COUNT ( * ) * + CAST ( 83 AS INTEGER ) + + 73 END col1
----
NULL

query I rowsort
SELECT ALL 52 * - + 99
----
-5148

query II rowsort
SELECT 57 + - 24 col2, 21 + - 69 + - - 1 AS col1
----
33
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL 22 + - + CASE - AVG ( DISTINCT + 66 ) WHEN + 92 THEN NULL WHEN + - 26 THEN - + COUNT( * ) END * + ( MIN( ALL 55 ) ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL 22 + - + CASE - AVG ( DISTINCT + 66 ) WHEN + 92 THEN NULL WHEN + - 26 THEN - + COUNT ( * ) END * + ( MIN ( ALL 55 ) ) + - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8497
SELECT ALL + 36 + + CAST( 69 AS SIGNED ) + + NULLIF ( - 24, 43 + + + ( 91 ) * - COUNT( * ) * - 87 * 74 * + 48 + 45 + + 19 - + - 98 * - 55 ) + 15 + - 39
----
57

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + 36 + + CAST ( 69 AS INTEGER ) + + NULLIF ( - 24, 43 + + + ( 91 ) * - COUNT ( * ) * - 87 * 74 * + 48 + 45 + + 19 - + - 98 * - 55 ) + 15 + - 39
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL 16 * - CASE 24 WHEN + 76 THEN 17 - 50 - - 3 WHEN + 30 + NULLIF ( SUM( DISTINCT 78 ), + - 38 ) * MAX( - + 21 ) * + - 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL 16 * - CASE 24 WHEN + 76 THEN 17 - 50 - - 3 WHEN + 30 + NULLIF ( SUM ( DISTINCT 78 ), + - 38 ) * MAX ( - + 21 ) * + - 48 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + + COUNT( * ) * - + 57 + + + 44 * - MAX( + 33 ) + - + ( + 12 ) - + COUNT( * ) AS col1
----
-1522

skipif mysql # not compatible
query I rowsort label-8499
SELECT + + COUNT ( * ) * - + 57 + + + 44 * - MAX ( + 33 ) + - + ( + 12 ) - + COUNT ( * ) AS col1
----
-1522

query I rowsort
SELECT + NULLIF ( 56, - 35 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8501
SELECT ALL - 43 * + - 27 - + 64 AS col2, - 48 * + + MAX( DISTINCT - + 15 )
----
1097
720

skipif mysql # not compatible
query II rowsort label-8501
SELECT ALL - 43 * + - 27 - + 64 AS col2, - 48 * + + MAX ( DISTINCT - + 15 )
----
1097
720

onlyif mysql # aggregate syntax: 
query II rowsort label-8502
SELECT DISTINCT + SUM( DISTINCT - 63 ) col1, + 67 AS col1
----
-63
67

skipif mysql # not compatible
query II rowsort label-8502
SELECT DISTINCT + SUM ( DISTINCT - 63 ) col1, + 67 AS col1
----
-63
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT - 58 * + 52 * 66 * - 55 + - 15 + - 47 * - SUM( DISTINCT - 53 ) AS col0
----
10945574

skipif mysql # not compatible
query I rowsort label-8503
SELECT - 58 * + 52 * 66 * - 55 + - 15 + - 47 * - SUM ( DISTINCT - 53 ) AS col0
----
10945574

query I rowsort
SELECT DISTINCT - 34 * + 3 * + + 77
----
-7854

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT - COUNT( DISTINCT 49 ) * + MAX( + 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8505
SELECT - COUNT ( DISTINCT 49 ) * + MAX ( + 38 ) AS col0
----
-38

query I rowsort
SELECT + - 85 + - 16
----
-101

query I rowsort
SELECT ( 39 ) col0
----
39

query II rowsort
SELECT DISTINCT + 74 * CASE - 66 WHEN + - 8 * - 66 / + 30 * - - ( + + 96 ) * - 31 THEN - - 28 END + + - NULLIF ( 14, + - ( + - 94 ) + + 14 ) AS col0, ( + - 51 ) AS col0
----
NULL
-51

query I rowsort
SELECT - - 30 * + 14
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT - 41 * + - 0 + - - 7 AS col0, NULLIF ( - 82, + - 61 * - ( - - 15 ) + - SUM( + ( + 35 ) ) ) * COUNT( * )
----
7
-82

skipif mysql # not compatible
query II rowsort label-8510
SELECT - 41 * + - 0 + - - 7 AS col0, NULLIF ( - 82, + - 61 * - ( - - 15 ) + - SUM ( + ( + 35 ) ) ) * COUNT ( * )
----
7
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT ALL + CASE + + COALESCE ( - 76, + - 48, 14 / + - 4 ) WHEN - MAX( DISTINCT - 31 ) THEN 81 * - 55 WHEN + 18 + + - 98 * - + 36 THEN - 67 + + 28 - 13 ELSE + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + CASE + + COALESCE ( - 76, + - 48, 14 / + - 4 ) WHEN - MAX ( DISTINCT - 31 ) THEN 81 * - 55 WHEN + 18 + + - 98 * - + 36 THEN - 67 + + 28 - 13 ELSE + - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 6 + - 8 + - 99 + + - 30
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL 18 + - + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL 18 + - + COUNT ( * ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT DISTINCT CASE - 79 WHEN + - COUNT( * ) THEN NULL WHEN + 88 THEN 95 ELSE - COUNT( * ) END AS col1, 20 + + 44 AS col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-8514
SELECT DISTINCT CASE - 79 WHEN + - COUNT ( * ) THEN NULL WHEN + 88 THEN 95 ELSE - COUNT ( * ) END AS col1, 20 + + 44 AS col1
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL - ( + - 43 ) + - 94 * + - COUNT( * ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL - ( + - 43 ) + - 94 * + - COUNT ( * ) AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT + CASE + 3 WHEN + 37 THEN NULL WHEN - 6 * - 62 THEN + + 36 ELSE 99 END + COUNT( * ) + 58
----
158

skipif mysql # not compatible
query I rowsort label-8516
SELECT + CASE + 3 WHEN + 37 THEN NULL WHEN - 6 * - 62 THEN + + 36 ELSE 99 END + COUNT ( * ) + 58
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL + CAST( - - 88 AS SIGNED ) + - - 10 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + CAST ( - - 88 AS INTEGER ) + - - 10 AS col1
----
98

query II rowsort
SELECT - 43, + 37 + 28 + 21 AS col1
----
-43
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - COUNT( * ) + + 30 + - COALESCE ( + - 3, + ( COUNT( DISTINCT 2 ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-8519
SELECT - COUNT ( * ) + + 30 + - COALESCE ( + - 3, + ( COUNT ( DISTINCT 2 ) ) )
----
32

query I rowsort
SELECT ALL + 3 + 54 + 74 - + - 27
----
158

query I rowsort
SELECT DISTINCT ( - - 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT 46 + 60 * - + CAST( - - 56 AS SIGNED ) col0
----
-3314

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT 46 + 60 * - + CAST ( - - 56 AS INTEGER ) col0
----
-3314

query I rowsort
SELECT ALL 4 + 60 AS col0
----
64

query I rowsort
SELECT + 10 * + + 90 AS col1
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8525
SELECT ALL CAST( NULL AS SIGNED ), + ( - 31 ) + - + 10 col1
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL CAST ( NULL AS INTEGER ), + ( - 31 ) + - + 10 col1
----
NULL
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT ALL CAST( 7 AS SIGNED ) col2
----
7

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL CAST ( 7 AS INTEGER ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT + ( - MAX( DISTINCT + 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-8527
SELECT + ( - MAX ( DISTINCT + 38 ) )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8528
SELECT - - 81 AS col2, + CAST( - COUNT( * ) AS SIGNED ) * - 34 AS col1
----
81
34

skipif mysql # not compatible
query II rowsort label-8528
SELECT - - 81 AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) * - 34 AS col1
----
81
34

query I rowsort
SELECT + + ( - 52 ) + - 40
----
-92

query I rowsort
SELECT + 99 * 92
----
9108

query I rowsort
SELECT ALL 38 * - 47 * + - 88 AS col2
----
157168

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT 49 DIV + - 74 * - - 93 + 93 + NULLIF ( + - ( + 55 ), - 89 * - ( - 99 ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8532
SELECT 49 / + - 74 * - - 93 + 93 + NULLIF ( + - ( + 55 ), - 89 * - ( - 99 ) ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL CAST( NULL AS SIGNED ) / - 44 - + 63 - - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL CAST ( NULL AS INTEGER ) / - 44 - + 63 - - + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8534
SELECT ALL + COUNT( * ) AS col2, + 19 AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-8534
SELECT ALL + COUNT ( * ) AS col2, + 19 AS col2
----
1
19

query I rowsort
SELECT ALL + + 18 col1
----
18

query I rowsort
SELECT + 92 - + + 79
----
13

query I rowsort
SELECT - 93 * - + 7 + + 27 + - + 66 AS col0
----
612

query I rowsort
SELECT DISTINCT + - ( + 67 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT - + 52 DIV 46 DIV 1 + + 40 + + - 46
----
-7

skipif mysql # not compatible
query I rowsort label-8539
SELECT - + 52 / 46 / 1 + + 40 + + - 46
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT + SUM( - + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8540
SELECT + SUM ( - + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + 38 * - CASE + - COALESCE ( 99, - 3 * - - NULLIF ( - 70, - 20 ) * ( + NULLIF ( + + COALESCE ( + - 97, + 70 + + + 17 ), - + 5 + COUNT( DISTINCT + 17 ) ) ) + 65 + 98 * 94, 52 / COUNT( * ) ) WHEN 8 THEN - 12 * - 7 WHEN - 26 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT + 38 * - CASE + - COALESCE ( 99, - 3 * - - NULLIF ( - 70, - 20 ) * ( + NULLIF ( + + COALESCE ( + - 97, + 70 + + + 17 ), - + 5 + COUNT ( DISTINCT + 17 ) ) ) + 65 + 98 * 94, 52 / COUNT ( * ) ) WHEN 8 THEN - 12 * - 7 WHEN - 26 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + MIN( DISTINCT + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8542
SELECT + MIN ( DISTINCT + 20 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8543
SELECT + CASE + - 35 WHEN + + 46 + ( CASE + + COALESCE ( COUNT( * ), + CAST( 62 AS SIGNED ) - 48 + - - 14 + + + 14 * - - 23 ) WHEN - - 78 THEN ( 89 ) WHEN + 38 THEN + + 68 END ) THEN NULL ELSE + 32 DIV + 65 END - - 75
----
75

skipif mysql # not compatible
query I rowsort label-8543
SELECT + CASE + - 35 WHEN + + 46 + ( CASE + + COALESCE ( COUNT ( * ), + CAST ( 62 AS INTEGER ) - 48 + - - 14 + + + 14 * - - 23 ) WHEN - - 78 THEN ( 89 ) WHEN + 38 THEN + + 68 END ) THEN NULL ELSE + 32 / + 65 END - - 75
----
75

query I rowsort
SELECT ALL + 79 * 31 col0
----
2449

query I rowsort
SELECT ( + 13 ) AS col0
----
13

query I rowsort
SELECT ALL + 70 * - + 34 * - + 27 + 55 + + 14 AS col2
----
64329

query I rowsort
SELECT COALESCE ( + 99, + - 92 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL + SUM( DISTINCT - + 63 ) * + + 17
----
-1071

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + SUM ( DISTINCT - + 63 ) * + + 17
----
-1071

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8549
SELECT CASE CASE + NULLIF ( - - COUNT( * ), - + 29 - - 99 ) WHEN 56 THEN + 72 * + NULLIF ( + + CAST( NULL AS DECIMAL ), - - 58 * + 53 + 6 + - 65 + + + 46 * + ( + + 75 ) * + 3 * - 44 ) * 11 + COUNT( * ) WHEN + 91 * - 6 THEN + 27 / + 80 WHEN 37 THEN 69 ELSE + 31 + + MAX( ALL + 16 ) END WHEN + 81 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT CASE CASE + NULLIF ( - - COUNT ( * ), - + 29 - - 99 ) WHEN 56 THEN + 72 * + NULLIF ( + + CAST ( NULL AS REAL ), - - 58 * + 53 + 6 + - 65 + + + 46 * + ( + + 75 ) * + 3 * - 44 ) * 11 + COUNT ( * ) WHEN + 91 * - 6 THEN + 27 / + 80 WHEN 37 THEN 69 ELSE + 31 + + MAX ( ALL + 16 ) END WHEN + 81 THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT - ( CAST( NULL AS SIGNED ) ) * - - 32 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT - ( CAST ( NULL AS INTEGER ) ) * - - 32 * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + MAX( + 91 ) - MAX( - + 73 )
----
164

skipif mysql # not compatible
query I rowsort label-8551
SELECT + MAX ( + 91 ) - MAX ( - + 73 )
----
164

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8552
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ), - 54 DIV + 66 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8552
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ), - 54 / + 66 AS col2
----
NULL
0

query II rowsort
SELECT NULLIF ( - 44, + - 69 + 94 * + + 83 ), + 19 col2
----
-44
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8554
SELECT ALL - 77 * 52 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL - 77 * 52 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 35 * - - NULLIF ( + ( + 45 ), + - 4 )
----
-1575

query I rowsort
SELECT DISTINCT - 17 * - ( 25 )
----
425

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT ALL - 45 DIV - 5
----
9

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL - 45 / - 5
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8558
SELECT 47 + - - COUNT( * ) AS col2, - 46 + 45 + - 30
----
48
-31

skipif mysql # not compatible
query II rowsort label-8558
SELECT 47 + - - COUNT ( * ) AS col2, - 46 + 45 + - 30
----
48
-31

query II rowsort
SELECT 82 * + 25 AS col1, 70 + + 52
----
2050
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT 56 + + - COUNT( * ) + + 80
----
135

skipif mysql # not compatible
query I rowsort label-8560
SELECT 56 + + - COUNT ( * ) + + 80
----
135

query I rowsort
SELECT ALL + 72 - - CASE + ( - + 78 ) WHEN + 28 * + 8 + - 80 + + 71 * + - 14 THEN NULL ELSE 12 END AS col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT DISTINCT - 18 * - 77 DIV + 19
----
72

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - 18 * - 77 / + 19
----
72

query I rowsort
SELECT 66 + - 6
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8564
SELECT - SUM( DISTINCT + 31 ) DIV + - COUNT( * ) + + 68
----
99

skipif mysql # not compatible
query I rowsort label-8564
SELECT - SUM ( DISTINCT + 31 ) / + - COUNT ( * ) + + 68
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT - 48 * COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - 48 * COUNT ( * ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT COUNT( * ) + + + 77 col0
----
78

skipif mysql # not compatible
query I rowsort label-8566
SELECT COUNT ( * ) + + + 77 col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT ALL + 9 DIV - + 79 + - - COALESCE ( + + NULLIF ( + 70, - + 90 ), + ( + - 93 ) * - 9 * - 0, 45, - 20 ) - - 69 * + + 53
----
3727

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL + 9 / - + 79 + - - COALESCE ( + + NULLIF ( + 70, - + 90 ), + ( + - 93 ) * - 9 * - 0, 45, - 20 ) - - 69 * + + 53
----
3727

query I rowsort
SELECT + 33 * 68 + - + ( 32 )
----
2212

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT ALL - + 95 DIV + - 18 + + + 23 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - + 95 / + - 18 + + + 23 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8570
SELECT CAST( NULL AS SIGNED ) + + 14 AS col1, 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8570
SELECT CAST ( NULL AS INTEGER ) + + 14 AS col1, 14 AS col2
----
NULL
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8571
SELECT + + CAST( NULL AS DECIMAL ) / + - COUNT( * ) + + 44 + - CAST( NULL AS SIGNED ) * + ( - - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT + + CAST ( NULL AS REAL ) / + - COUNT ( * ) + + 44 + - CAST ( NULL AS INTEGER ) * + ( - - 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT - 99 * + + CASE + CASE - COUNT( * ) WHEN + 35 THEN NULL WHEN - 56 THEN 61 WHEN + 1 THEN NULL ELSE + - 58 END WHEN 1 THEN - + 54 ELSE + ( + + 45 ) + + 80 END * - NULLIF ( + + 68, CASE - MAX( ALL + - 51 ) WHEN + ( NULLIF ( - 95, + 92 ) ) + - 32 THEN - 32 WHEN 91 THEN NULL WHEN + 51 * 36 THEN COUNT( * ) ELSE - 27 / - 92 END * + 29 - - 7 ) * - 42 + 98
----
-35342902

skipif mysql # not compatible
query I rowsort label-8572
SELECT - 99 * + + CASE + CASE - COUNT ( * ) WHEN + 35 THEN NULL WHEN - 56 THEN 61 WHEN + 1 THEN NULL ELSE + - 58 END WHEN 1 THEN - + 54 ELSE + ( + + 45 ) + + 80 END * - NULLIF ( + + 68, CASE - MAX ( ALL + - 51 ) WHEN + ( NULLIF ( - 95, + 92 ) ) + - 32 THEN - 32 WHEN 91 THEN NULL WHEN + 51 * 36 THEN COUNT ( * ) ELSE - 27 / - 92 END * + 29 - - 7 ) * - 42 + 98
----
-35342902

query I rowsort
SELECT ALL + 82 + + 11 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL MAX( + NULLIF ( + 9, - 90 ) ) + + 45 + + - 44 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL MAX ( + NULLIF ( + 9, - 90 ) ) + + 45 + + - 44 AS col2
----
10

query II rowsort
SELECT 24 * - 64 AS col2, 1 AS col0
----
-1536
1

query I rowsort
SELECT DISTINCT ( + 96 ) * + 8
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL + 22 + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + 22 + COUNT ( * )
----
23

query I rowsort
SELECT + - 16 col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT 12 + 96 * COUNT( * ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-8579
SELECT 12 + 96 * COUNT ( * ) AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT 2 * + CAST( + + 53 AS SIGNED ) - CAST( 14 AS SIGNED ) col2
----
92

skipif mysql # not compatible
query I rowsort label-8580
SELECT 2 * + CAST ( + + 53 AS INTEGER ) - CAST ( 14 AS INTEGER ) col2
----
92

query I rowsort
SELECT DISTINCT 6 + + - 23 AS col2
----
-17

query I rowsort
SELECT 84 * - 74 + 79
----
-6137

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8583
SELECT + 86 AS col1, - 39 DIV - COUNT( * ) AS col0
----
86
39

skipif mysql # not compatible
query II rowsort label-8583
SELECT + 86 AS col1, - 39 / - COUNT ( * ) AS col0
----
86
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT - 62 * 10 + + COUNT( * )
----
-619

skipif mysql # not compatible
query I rowsort label-8584
SELECT - 62 * 10 + + COUNT ( * )
----
-619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8585
SELECT ALL CAST( NULL AS SIGNED ) + + 12 - + + 77 * - NULLIF ( + 5, + 79 / COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL CAST ( NULL AS INTEGER ) + + 12 - + + 77 * - NULLIF ( + 5, + 79 / COUNT ( * ) )
----
NULL

query I rowsort
SELECT 76 * - - 37 AS col1
----
2812

query I rowsort
SELECT DISTINCT 34 * + - 91 col2
----
-3094

query I rowsort
SELECT ALL 93 * - 15 * + - 42 * + + 36
----
2109240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT 92 + - 89 * + 24 - CAST( - + 60 AS SIGNED ) col2
----
-1984

skipif mysql # not compatible
query I rowsort label-8589
SELECT 92 + - 89 * + 24 - CAST ( - + 60 AS INTEGER ) col2
----
-1984

query II rowsort
SELECT 63 * - 1 * - 40 AS col0, - 52 - - 15 * - 86 AS col2
----
2520
-1342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8591
SELECT - 62 AS col0, 44 + - CASE - NULLIF ( 54, COUNT( * ) * + COALESCE ( 27, + 85 ) / CAST( NULL AS SIGNED ) ) WHEN - - 67 * + 52 THEN + COALESCE ( + - 67, + 22 ) END - + 92 / + 97 * - 18 * + + 87 + - ( - 67 )
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-8591
SELECT - 62 AS col0, 44 + - CASE - NULLIF ( 54, COUNT ( * ) * + COALESCE ( 27, + 85 ) / CAST ( NULL AS INTEGER ) ) WHEN - - 67 * + 52 THEN + COALESCE ( + - 67, + 22 ) END - + 92 / + 97 * - 18 * + + 87 + - ( - 67 )
----
-62
NULL

query I rowsort
SELECT 1 + 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT - SUM( ALL 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-8593
SELECT - SUM ( ALL 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL + 19 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + 19 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8595
SELECT DISTINCT - + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) / 32 AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8595
SELECT DISTINCT - + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / 32 AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT 13 DIV + + 14
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT 13 / + + 14
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8597
SELECT DISTINCT - + 18 + + 66 * + MIN( 63 ) - 70 + + - COUNT( - 14 ) DIV + COUNT( * ) AS col2
----
4069

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT - + 18 + + 66 * + MIN ( 63 ) - 70 + + - COUNT ( - 14 ) / + COUNT ( * ) AS col2
----
4069

query I rowsort
SELECT ALL + 53 + + 81 AS col0
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-8599
SELECT - - 14 DIV 89 DIV + 17 + + 90 col1
----
90

skipif mysql # not compatible
query I rowsort label-8599
SELECT - - 14 / 89 / + 17 + + 90 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT CASE 45 WHEN - 84 THEN + NULLIF ( - - 68, 57 ) + + SUM( - - 28 ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT CASE 45 WHEN - 84 THEN + NULLIF ( - - 68, 57 ) + + SUM ( - - 28 ) * COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL - + 64 AS col1, + 66 * + - 31 + 89
----
-64
-1957

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ( - SUM( - 70 ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8602
SELECT ( - SUM ( - 70 ) ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8603
SELECT COUNT( ALL + - 83 ) DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-8603
SELECT COUNT ( ALL + - 83 ) / + 23
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT COUNT( * ) AS col2, - 10 AS col1
----
1
-10

skipif mysql # not compatible
query II rowsort label-8604
SELECT COUNT ( * ) AS col2, - 10 AS col1
----
1
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT + 58 DIV 55 + - 63 col0
----
-62

skipif mysql # not compatible
query I rowsort label-8605
SELECT + 58 / 55 + - 63 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL 71 * - 5 + SUM( - 17 ) + + 28 - + + 78 * + ( - MAX( - 29 ) ) + - 27
----
-2633

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL 71 * - 5 + SUM ( - 17 ) + + 28 - + + 78 * + ( - MAX ( - 29 ) ) + - 27
----
-2633

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8607
SELECT ALL - 76, COUNT( + 13 ) + 98 + 78 DIV 91 * + - 3 col0
----
-76
99

skipif mysql # not compatible
query II rowsort label-8607
SELECT ALL - 76, COUNT ( + 13 ) + 98 + 78 / 91 * + - 3 col0
----
-76
99

query I rowsort
SELECT 47 * 92 AS col1
----
4324

query II rowsort
SELECT ALL + 31 AS col2, + 6
----
31
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8610
SELECT ALL - 44 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - 44 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT COUNT( DISTINCT - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-8611
SELECT COUNT ( DISTINCT - 66 )
----
1

query II rowsort
SELECT ALL + 21 AS col2, 60 * - 66 * 46 AS col0
----
21
-182160

query I rowsort
SELECT + NULLIF ( 27, + 69 + ( - 59 ) ) AS col0
----
27

query I rowsort
SELECT + 51 - + + 49 AS col2
----
2

query II rowsort
SELECT 70 AS col1, 65 * 53 + - ( 58 ) col2
----
70
3387

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + 88 * + COALESCE ( - - 51, - + 39 ) AS col0
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + 92 * - COALESCE ( + MIN( - + 18 ), + 59 ) * - + 92 * - 43 - + + 86 AS col0
----
6551050

skipif mysql # not compatible
query I rowsort label-8618
SELECT + 92 * - COALESCE ( + MIN ( - + 18 ), + 59 ) * - + 92 * - 43 - + + 86 AS col0
----
6551050

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL COUNT( 64 ) + - - 92
----
93

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL COUNT ( 64 ) + - - 92
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT DISTINCT 63 AS col1, - COUNT( * ) col1
----
63
-1

skipif mysql # not compatible
query II rowsort label-8620
SELECT DISTINCT 63 AS col1, - COUNT ( * ) col1
----
63
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT + ( - 89 ) * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8621
SELECT + ( - 89 ) * - COUNT ( * )
----
89

query I rowsort
SELECT + 45 + + 83 AS col1
----
128

query I rowsort
SELECT + 15 - - - 39
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL - COUNT( * ) * - - 53 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL - COUNT ( * ) * - - 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + - COALESCE ( - MIN( + COALESCE ( 33, + + 82 ) ), - 26 ) * - 9 AS col2
----
-297

skipif mysql # not compatible
query I rowsort label-8625
SELECT + - COALESCE ( - MIN ( + COALESCE ( 33, + + 82 ) ), - 26 ) * - 9 AS col2
----
-297

query I rowsort
SELECT + 59 + 83 col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT - + MAX( - 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8627
SELECT - + MAX ( - 2 ) AS col2
----
2

query I rowsort
SELECT - - ( - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT - 16 + + - ( + MIN( DISTINCT + - 95 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - 16 + + - ( + MIN ( DISTINCT + - 95 ) ) AS col0
----
79

query I rowsort
SELECT ALL + 88 + - CASE - 30 WHEN ( - - 79 ) * + 36 * - 7 THEN - COALESCE ( 91, - 15 - - - 53 ) END + + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + + MAX( - 33 ) + - + 22 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8631
SELECT + + MAX ( - 33 ) + - + 22 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT - ( + COUNT( * ) ) * - - 38 col0
----
-38

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - ( + COUNT ( * ) ) * - - 38 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT 74 + - 24 * 39 + + + ( 54 ) * + + COUNT( * ) + + - 84 * - 76 - SUM( + 50 ) col2
----
5526

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT 74 + - 24 * 39 + + + ( 54 ) * + + COUNT ( * ) + + - 84 * - 76 - SUM ( + 50 ) col2
----
5526

query I rowsort
SELECT DISTINCT + ( 66 )
----
66

query I rowsort
SELECT ALL 92 + + + 42 AS col1
----
134

query I rowsort
SELECT DISTINCT COALESCE ( 78, 98 + - - 28 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT + MIN( 34 ) + 38
----
72

skipif mysql # not compatible
query I rowsort label-8637
SELECT + MIN ( 34 ) + 38
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8638
SELECT - 45 + + CASE CAST( + 60 AS DECIMAL ) WHEN + - 3 THEN + + ( 9 ) WHEN - 89 + COUNT( ALL + - 61 ) + - 59 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT - 45 + + CASE CAST ( + 60 AS REAL ) WHEN + - 3 THEN + + ( 9 ) WHEN - 89 + COUNT ( ALL + - 61 ) + - 59 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT ALL + - 23 DIV + - ( + 52 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + - 23 / + - ( + 52 ) AS col1
----
0

query I rowsort
SELECT + - ( + 77 ) col1
----
-77

query I rowsort
SELECT 61 * 76 + + 42
----
4678

query II rowsort
SELECT + 61 AS col0, 88 AS col0
----
61
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT + 54 DIV + - 30 + + + 83 * + - COUNT( * ) * COALESCE ( + + 94, - CASE 41 WHEN + NULLIF ( + + ( + 5 ), SUM( ALL + 83 ) ) * + 22 * 36 - 85 THEN + - 37 END, + + 26 ) * + - 57 AS col0
----
444713

skipif mysql # not compatible
query I rowsort label-8643
SELECT + 54 / + - 30 + + + 83 * + - COUNT ( * ) * COALESCE ( + + 94, - CASE 41 WHEN + NULLIF ( + + ( + 5 ), SUM ( ALL + 83 ) ) * + 22 * 36 - 85 THEN + - 37 END, + + 26 ) * + - 57 AS col0
----
444713

query I rowsort
SELECT ALL NULLIF ( - 8, 81 + - 95 * - 26 ) * 43
----
-344

query II rowsort
SELECT ( 82 ) AS col0, + 22 AS col1
----
82
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT + ( CASE + - 24 WHEN - 49 + - COUNT( DISTINCT - + 26 ) THEN - 37 ELSE NULL END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + ( CASE + - 24 WHEN - 49 + - COUNT ( DISTINCT - + 26 ) THEN - 37 ELSE NULL END ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 76 * 54
----
-4104

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT DISTINCT + ( - + 18 ) AS col0, - 84 * + - 79 + - COALESCE ( COALESCE ( 36, COUNT( ALL + 32 ) * 21 + - - 15 ), 98 ) AS col2
----
-18
6600

skipif mysql # not compatible
query II rowsort label-8648
SELECT DISTINCT + ( - + 18 ) AS col0, - 84 * + - 79 + - COALESCE ( COALESCE ( 36, COUNT ( ALL + 32 ) * 21 + - - 15 ), 98 ) AS col2
----
-18
6600

query I rowsort
SELECT - 82 + 6
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT - CAST( NULL AS SIGNED ) / - 41 * + COALESCE ( - 11, 45 + + - 40 * + - 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT - CAST ( NULL AS INTEGER ) / - 41 * + COALESCE ( - 11, 45 + + - 40 * + - 94 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8651
SELECT ALL + 86 DIV - - COUNT( DISTINCT - - 78 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + 86 / - - COUNT ( DISTINCT - - 78 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + MIN( ALL + - 74 ) * - SUM( + 74 ) * + 85 + - 60 AS col2
----
465400

skipif mysql # not compatible
query I rowsort label-8652
SELECT + MIN ( ALL + - 74 ) * - SUM ( + 74 ) * + 85 + - 60 AS col2
----
465400

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - COUNT( * ) * + + 77
----
-77

skipif mysql # not compatible
query I rowsort label-8653
SELECT - COUNT ( * ) * + + 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT + COUNT( * ) * MAX( + 52 ) + + 81
----
133

skipif mysql # not compatible
query I rowsort label-8654
SELECT + COUNT ( * ) * MAX ( + 52 ) + + 81
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT - 28 + - + CAST( NULL AS SIGNED ) + AVG ( - - CAST( 99 AS SIGNED ) ) * + - CAST( - 40 AS SIGNED ) / 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT - 28 + - + CAST ( NULL AS INTEGER ) + AVG ( - - CAST ( 99 AS INTEGER ) ) * + - CAST ( - 40 AS INTEGER ) / 97 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL COUNT( + 98 ) * - CAST( - 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL COUNT ( + 98 ) * - CAST ( - 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - COALESCE ( - - 83, + + 54 ) + + MIN( - - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-8657
SELECT - COALESCE ( - - 83, + + 54 ) + + MIN ( - - 84 )
----
1

query I rowsort
SELECT ALL + 14 * - 68
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT 87 * + COUNT( * ) + 78
----
165

skipif mysql # not compatible
query I rowsort label-8659
SELECT 87 * + COUNT ( * ) + 78
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL + 14 * - + 13 * COUNT( * ) * - 23 + + 44
----
4230

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL + 14 * - + 13 * COUNT ( * ) * - 23 + + 44
----
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT + 90 / + + 3 - + - CASE + 51 WHEN - 98 * - COUNT( * ) + - 60 THEN - + 90 END + + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT + 90 / + + 3 - + - CASE + 51 WHEN - 98 * - COUNT ( * ) + - 60 THEN - + 90 END + + 62 AS col2
----
NULL

query I rowsort
SELECT - + 47 * + 17 + 13
----
-786

query I rowsort
SELECT - + 14 * 40 + 51 + 38
----
-471

query I rowsort
SELECT - COALESCE ( + - 82, + 43 ) col1
----
82

query I rowsort
SELECT + - 67 + ( - 17 ) + 26 AS col1
----
-58

query I rowsort
SELECT ALL + 86 + - 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT + 59 + + COALESCE ( + - COUNT( * ), MIN( DISTINCT 64 ) + + 16 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT + 59 + + COALESCE ( + - COUNT ( * ), MIN ( DISTINCT 64 ) + + 16 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL COUNT( + - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL COUNT ( + - 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL 23 * - CASE + 55 WHEN - COUNT( * ) + + 25 THEN + - AVG ( DISTINCT 53 ) WHEN + + 7 THEN 21 + - COUNT( * ) * + - 46 WHEN + - 44 / 28 + - - 10 + 19 / 15 / ( - 67 ) - 70 + + 15 - + 47 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL 23 * - CASE + 55 WHEN - COUNT ( * ) + + 25 THEN + - AVG ( DISTINCT 53 ) WHEN + + 7 THEN 21 + - COUNT ( * ) * + - 46 WHEN + - 44 / 28 + - - 10 + 19 / 15 / ( - 67 ) - 70 + + 15 - + 47 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 62 + - 89 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - - NULLIF ( - 88, ( 41 ) * - ( 17 ) * 10 + - + 52 + + COUNT( * ) * + 57 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8671
SELECT - - NULLIF ( - 88, ( 41 ) * - ( 17 ) * 10 + - + 52 + + COUNT ( * ) * + 57 ) AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT + - 65 DIV + 97 * + 79
----
0

skipif mysql # not compatible
query I rowsort label-8672
SELECT + - 65 / + 97 * + 79
----
0

query I rowsort
SELECT - + 90 * - 3 - + 5 AS col1
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL - 10 - + + ( - - NULLIF ( + - 31, - 38 ) ) + + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - 10 - + + ( - - NULLIF ( + - 31, - 38 ) ) + + COUNT ( * ) AS col1
----
22

query I rowsort
SELECT DISTINCT + 41 * ( - 61 )
----
-2501

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + 50 / - COALESCE ( COUNT( - 36 ), 99 ) + + 12 + CASE - + 97 WHEN - + 24 THEN + - 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT + 50 / - COALESCE ( COUNT ( - 36 ), 99 ) + + 12 + CASE - + 97 WHEN - + 24 THEN + - 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT 95, SUM( DISTINCT + + 9 ) AS col0
----
95
9

skipif mysql # not compatible
query II rowsort label-8677
SELECT 95, SUM ( DISTINCT + + 9 ) AS col0
----
95
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8678
SELECT ALL 83 - + + 9 + + COUNT( * ) - - 72 AS col2, 8 col1
----
147
8

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL 83 - + + 9 + + COUNT ( * ) - - 72 AS col2, 8 col1
----
147
8

query I rowsort
SELECT ALL + 90 - + 62
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT 76 * + - MAX( 74 ) AS col2, + 55
----
-5624
55

skipif mysql # not compatible
query II rowsort label-8680
SELECT 76 * + - MAX ( 74 ) AS col2, + 55
----
-5624
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + SUM( - - 5 ) * - 78 + - ( - 31 ) AS col1
----
-359

skipif mysql # not compatible
query I rowsort label-8681
SELECT + SUM ( - - 5 ) * - 78 + - ( - 31 ) AS col1
----
-359

query II rowsort
SELECT + 36 AS col2, + 45 * 39 AS col0
----
36
1755

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8683
SELECT 87, 75 DIV ( - CAST( + - 32 AS SIGNED ) ) AS col2
----
87
2

skipif mysql # not compatible
query II rowsort label-8683
SELECT 87, 75 / ( - CAST ( + - 32 AS INTEGER ) ) AS col2
----
87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT COUNT( * ) + 82 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8684
SELECT COUNT ( * ) + 82 AS col0
----
83

query II rowsort
SELECT 0 AS col1, ( - 81 ) - - - 93
----
0
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT DISTINCT + 73 * - - COUNT( * ) * 51 AS col2
----
3723

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT + 73 * - - COUNT ( * ) * 51 AS col2
----
3723

query I rowsort
SELECT DISTINCT 75 + CASE - 35 WHEN 22 * + - 84 THEN + 30 WHEN + ( + 8 ) THEN + + 3 ELSE + 97 END AS col1
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-8688
SELECT ALL - 56 AS col2, - 67 * + COUNT( * )
----
-56
-67

skipif mysql # not compatible
query II rowsort label-8688
SELECT ALL - 56 AS col2, - 67 * + COUNT ( * )
----
-56
-67

query I rowsort
SELECT 91 * 46 AS col1
----
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL - 82 + - + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - 82 + - + COUNT ( * ) AS col2
----
-83

query I rowsort
SELECT ALL + 28 * 93 col0
----
2604

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT 30 AS col1, + COUNT( * ) * - + 42 AS col0
----
30
-42

skipif mysql # not compatible
query II rowsort label-8692
SELECT 30 AS col1, + COUNT ( * ) * - + 42 AS col0
----
30
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT 81 DIV - - 67 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8693
SELECT 81 / - - 67 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT 17 * + + COUNT( * ) * + - 82, COUNT( * ) - - + 72 AS col0
----
-1394
73

skipif mysql # not compatible
query II rowsort label-8694
SELECT 17 * + + COUNT ( * ) * + - 82, COUNT ( * ) - - + 72 AS col0
----
-1394
73

query I rowsort
SELECT 88 * + + 52 AS col1
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT - 50 - - 57 + - 62 + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-8696
SELECT - 50 - - 57 + - 62 + COUNT ( * )
----
-54

query II rowsort
SELECT - - 37 AS col2, 45 AS col0
----
37
45

query I rowsort
SELECT DISTINCT - + 94 + 63 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL + 30 + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + 30 + COUNT ( * ) AS col0
----
31

query I rowsort
SELECT ALL - + 44 + - 39 AS col2
----
-83

query II rowsort
SELECT ALL - 75 - ( - + 74 ) * + - 1 AS col1, 37 + 32 col0
----
-149
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL + 64 * CAST( - + 70 AS SIGNED ) * - - NULLIF ( - - ( - 94 ), - COUNT( - 58 ) + + 17 * + 38 )
----
421120

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + 64 * CAST ( - + 70 AS INTEGER ) * - - NULLIF ( - - ( - 94 ), - COUNT ( - 58 ) + + 17 * + 38 )
----
421120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT + CAST( NULL AS SIGNED ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT + CAST ( NULL AS INTEGER ) + 74
----
NULL

query I rowsort
SELECT + 57 + - 57 AS col1
----
0

query I rowsort
SELECT ALL 96 - - - 43 + - 16
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT COUNT( * ) * 93 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT COUNT ( * ) * 93 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 16 + - - MIN( + 47 )
----
63

skipif mysql # not compatible
query I rowsort label-8707
SELECT 16 + - - MIN ( + 47 )
----
63

query I rowsort
SELECT DISTINCT ( + 35 ) AS col0
----
35

query II rowsort
SELECT ALL 73, 71 AS col1
----
73
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT CAST( - 31 AS SIGNED ) * + 98 AS col0
----
-3038

skipif mysql # not compatible
query I rowsort label-8710
SELECT CAST ( - 31 AS INTEGER ) * + 98 AS col0
----
-3038

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT 76 DIV - + 51
----
-1

skipif mysql # not compatible
query I rowsort label-8711
SELECT 76 / - + 51
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT 47 * - - CAST( NULL AS SIGNED ) * - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT 47 * - - CAST ( NULL AS INTEGER ) * - - 39
----
NULL

query I rowsort
SELECT ( + 61 ) + + - 89 + - 7 AS col1
----
-35

query I rowsort
SELECT DISTINCT 70 * + 24
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8715
SELECT 66 DIV - ( + - COALESCE ( - 55, - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8715
SELECT 66 / - ( + - COALESCE ( - 55, - + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT COUNT( ALL + - 89 ), 36 + - + 88 + 77 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-8716
SELECT COUNT ( ALL + - 89 ), 36 + - + 88 + 77 AS col2
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL COALESCE ( + + COUNT( ALL + 22 ), + + ( - COUNT( * ) ) ) + 57 + - COALESCE ( + 75, + 47 ) * 29 * - 46
----
100108

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL COALESCE ( + + COUNT ( ALL + 22 ), + + ( - COUNT ( * ) ) ) + 57 + - COALESCE ( + 75, + 47 ) * 29 * - 46
----
100108

query I rowsort
SELECT DISTINCT + 14 + + 17 + - 16 + + 0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8719
SELECT - COUNT( * ) DIV - - COUNT( * ) - 42 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8719
SELECT - COUNT ( * ) / - - COUNT ( * ) - 42 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT COUNT( * ) * 49 + + 20 + 61 * - 25 * 69
----
-105156

skipif mysql # not compatible
query I rowsort label-8720
SELECT COUNT ( * ) * 49 + + 20 + 61 * - 25 * 69
----
-105156

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT 26 * + + 96 * - - COUNT( * ) AS col0
----
2496

skipif mysql # not compatible
query I rowsort label-8721
SELECT 26 * + + 96 * - - COUNT ( * ) AS col0
----
2496

query I rowsort
SELECT - 39 * - 29
----
1131

query II rowsort
SELECT ALL + 59 + - 32 AS col1, - 74 * - 58 AS col0
----
27
4292

query I rowsort
SELECT 82 + + + 53 + 96 * - 52 * 61 * 20
----
-6090105

query I rowsort
SELECT ALL + 78 - + 23 + - - NULLIF ( + 95, + 46 ) * + 33
----
3190

query I rowsort
SELECT ALL - ( - + 52 ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-8727
SELECT - 14 DIV 48 AS col0, 90 * 96
----
0
8640

skipif mysql # not compatible
query II rowsort label-8727
SELECT - 14 / 48 AS col0, 90 * 96
----
0
8640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8728
SELECT - CASE + + MIN( - 35 ) WHEN - ( - - CAST( NULL AS SIGNED ) ) THEN + - 1 DIV + - 2 * + - 77 ELSE + 5 + 13 END + 37 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8728
SELECT - CASE + + MIN ( - 35 ) WHEN - ( - - CAST ( NULL AS INTEGER ) ) THEN + - 1 / + - 2 * + - 77 ELSE + 5 + 13 END + 37 AS col0
----
19

query I rowsort
SELECT ALL ( + + 52 )
----
52

query I rowsort
SELECT ALL + 2 * - ( + 39 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - 0 * - COUNT( * ) * + MAX( - 44 ) * - NULLIF ( + - 74, ( COUNT( * ) ) * - MIN( - - 63 ) ) + - NULLIF ( 58, 83 + - COUNT( * ) )
----
-58

skipif mysql # not compatible
query I rowsort label-8731
SELECT - 0 * - COUNT ( * ) * + MAX ( - 44 ) * - NULLIF ( + - 74, ( COUNT ( * ) ) * - MIN ( - - 63 ) ) + - NULLIF ( 58, 83 + - COUNT ( * ) )
----
-58

query I rowsort
SELECT - 65 - 87
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT ALL - 99 * + - 65 * + MIN( DISTINCT 15 ) AS col0
----
96525

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - 99 * + - 65 * + MIN ( DISTINCT 15 ) AS col0
----
96525

query I rowsort
SELECT - 59 * - 68 AS col1
----
4012

query I rowsort
SELECT ALL ( + - 60 ) col2
----
-60

query II rowsort
SELECT DISTINCT 30, 13 AS col0
----
30
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT + 45 + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT + 45 + COUNT ( * ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL 23 + CAST( NULL AS SIGNED ) * - ( - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL 23 + CAST ( NULL AS INTEGER ) * - ( - 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT - COUNT( * ) + - 87 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8739
SELECT - COUNT ( * ) + - 87 AS col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8740
SELECT DISTINCT - 82 + + COALESCE ( - 52, - 53 DIV - COUNT( * ) * 28, + 92 * - COUNT( ALL NULLIF ( + 74, + 20 + + ( - 8 ) ) ) ) col1
----
-134

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - 82 + + COALESCE ( - 52, - 53 / - COUNT ( * ) * 28, + 92 * - COUNT ( ALL NULLIF ( + 74, + 20 + + ( - 8 ) ) ) ) col1
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8741
SELECT ALL CASE 67 WHEN 64 THEN NULL WHEN 7 THEN 3 WHEN + + CAST( NULL AS DECIMAL ) THEN 42 + - - ( + 30 ) + - - 46 * 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL CASE 67 WHEN 64 THEN NULL WHEN 7 THEN 3 WHEN + + CAST ( NULL AS REAL ) THEN 42 + - - ( + 30 ) + - - 46 * 8 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8742
SELECT DISTINCT + COUNT( * ) AS col0, - 84
----
1
-84

skipif mysql # not compatible
query II rowsort label-8742
SELECT DISTINCT + COUNT ( * ) AS col0, - 84
----
1
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ( - COUNT( 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8743
SELECT ( - COUNT ( 61 ) )
----
-1

query I rowsort
SELECT + NULLIF ( + 35, 57 ) AS col0
----
35

query I rowsort
SELECT - 69 * - 24
----
1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT - COUNT( + + 82 ) * + SUM( ALL - + 50 ) DIV 49 * + 13 + + - 91 + - 36
----
-114

skipif mysql # not compatible
query I rowsort label-8746
SELECT - COUNT ( + + 82 ) * + SUM ( ALL - + 50 ) / 49 * + 13 + + - 91 + - 36
----
-114

query I rowsort
SELECT + 10 * + 96 AS col1
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT COUNT( * ) * + 2 + 58
----
60

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT COUNT ( * ) * + 2 + 58
----
60

query I rowsort
SELECT DISTINCT - 83 * - 17 * 79 AS col1
----
111469

query I rowsort
SELECT ALL + + 62 col0
----
62

query I rowsort
SELECT ALL - 30 * - - 39
----
-1170

query I rowsort
SELECT DISTINCT ( 99 ) * + 48
----
4752

query I rowsort
SELECT - - 3 * - + 56 + - 8
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT + - 92 - + - COALESCE ( + + 81, + + 97 ) DIV - 73
----
-93

skipif mysql # not compatible
query I rowsort label-8754
SELECT + - 92 - + - COALESCE ( + + 81, + + 97 ) / - 73
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8755
SELECT ALL - CASE + 72 WHEN + - ( - + AVG ( - - CAST( + 70 AS DECIMAL ) ) ) THEN + - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - CASE + 72 WHEN + - ( - + AVG ( - - CAST ( + 70 AS REAL ) ) ) THEN + - 30 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT + CAST( NULL AS SIGNED ) + MIN( - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT + CAST ( NULL AS INTEGER ) + MIN ( - 69 ) AS col2
----
NULL

query II rowsort
SELECT + 8, 72 AS col1
----
8
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT + 41 + COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8758
SELECT + 41 + COUNT ( * ) AS col0
----
42

query I rowsort
SELECT + 18 + + 34
----
52

query I rowsort
SELECT - 24 - - 35 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT DISTINCT + COUNT( * ) DIV 86 * 79
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + COUNT ( * ) / 86 * 79
----
0

query I rowsort
SELECT DISTINCT - 86 + - 59 - 93 * + - 5 * 4 AS col0
----
1715

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL NULLIF ( - COUNT( * ), + - ( + 86 ) / + - 82 + + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL NULLIF ( - COUNT ( * ), + - ( + 86 ) / + - 82 + + + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT - 86 + + 78 AS col0
----
-8

query I rowsort
SELECT ALL ( 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL - 69 + 44 - + COUNT( ALL + ( + 80 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - 69 + 44 - + COUNT ( ALL + ( + 80 ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT - MAX( DISTINCT 59 ) + + + 24 + - COUNT( - 93 )
----
-36

skipif mysql # not compatible
query I rowsort label-8767
SELECT - MAX ( DISTINCT 59 ) + + + 24 + - COUNT ( - 93 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - 75 * + SUM( 91 ) AS col0
----
-6825

skipif mysql # not compatible
query I rowsort label-8768
SELECT - 75 * + SUM ( 91 ) AS col0
----
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8769
SELECT DISTINCT - CASE + 68 WHEN - 15 THEN NULL WHEN - 7 * + 73 * - - 11 + + 93 THEN NULL WHEN 68 THEN COALESCE ( - + 63, + 4 ) END + 8 AS col1, - 44 - + - NULLIF ( + - 74, - - ( - 98 ) ) + - 87 + + + CAST( + 41 AS SIGNED ) * + - 75
----
71
-3280

skipif mysql # not compatible
query II rowsort label-8769
SELECT DISTINCT - CASE + 68 WHEN - 15 THEN NULL WHEN - 7 * + 73 * - - 11 + + 93 THEN NULL WHEN 68 THEN COALESCE ( - + 63, + 4 ) END + 8 AS col1, - 44 - + - NULLIF ( + - 74, - - ( - 98 ) ) + - 87 + + + CAST ( + 41 AS INTEGER ) * + - 75
----
71
-3280

query I rowsort
SELECT - 22 * + 10
----
-220

query II rowsort
SELECT ALL + CASE + 78 WHEN 55 - - + 80 THEN - - 78 / - 16 + 5 ELSE NULL END col1, - 38
----
NULL
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT - COUNT( * ) DIV - 55 + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8772
SELECT - COUNT ( * ) / - 55 + - 61 AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8773
SELECT DISTINCT 30 DIV 21 - 31 + + 16 + - - SUM( - + 85 ) * - 70 + - + COALESCE ( + + 20, - 5 * + - 35 * - COUNT( * ) - - - COUNT( * ) - - 43 ) - 87
----
5829

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT 30 / 21 - 31 + + 16 + - - SUM ( - + 85 ) * - 70 + - + COALESCE ( + + 20, - 5 * + - 35 * - COUNT ( * ) - - - COUNT ( * ) - - 43 ) - 87
----
5829

query II rowsort
SELECT ALL + 45, 7 AS col0
----
45
7

query I rowsort
SELECT - 15 + + 8 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-8776
SELECT - 74 DIV + - 71 col2, 59 DIV + 84 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-8776
SELECT - 74 / + - 71 col2, 59 / + 84 AS col1
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT ALL + CASE + 10 WHEN + 19 THEN - 90 ELSE 94 - + 0 * - 2 * 42 DIV + COUNT( * ) END col0
----
94

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + CASE + 10 WHEN + 19 THEN - 90 ELSE 94 - + 0 * - 2 * 42 / + COUNT ( * ) END col0
----
94

query II rowsort
SELECT + + 66, 27 col2
----
66
27

query II rowsort
SELECT ALL + - 13 AS col0, 94 AS col2
----
-13
94

query II rowsort
SELECT DISTINCT + + 22 AS col2, 2 * + 44
----
22
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL + MAX( + + 73 ) * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL + MAX ( + + 73 ) * COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT + CAST( - COUNT( ALL + ( - 20 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8782
SELECT + CAST ( - COUNT ( ALL + ( - 20 ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT + - ( - MAX( - 75 ) ) + - - 53 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8783
SELECT + - ( - MAX ( - 75 ) ) + - - 53 AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT MAX( + + 9 ) DIV 80 col2
----
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT MAX ( + + 9 ) / 80 col2
----
0

query I rowsort
SELECT - 41 * - 99 + - 33 + - 52
----
3974

query I rowsort
SELECT ALL + + 33 * + + 99 + NULLIF ( + + 46, - - 43 ) - + 64
----
3249

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT + 24 * ( - NULLIF ( - + COUNT( ALL 6 ), - ( - - 79 ) ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + 24 * ( - NULLIF ( - + COUNT ( ALL 6 ), - ( - - 79 ) ) ) AS col2
----
24

query I rowsort
SELECT + ( - ( - 48 ) )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT 60 * + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT 60 * + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 43 + - 68 * + 17
----
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT MIN( 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8791
SELECT MIN ( 94 ) AS col1
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8792
SELECT ALL + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8793
SELECT + 36, - MAX( + 4 ) * + 60 / + 77 - CAST( NULL AS SIGNED ) + 87 AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8793
SELECT + 36, - MAX ( + 4 ) * + 60 / + 77 - CAST ( NULL AS INTEGER ) + 87 AS col0
----
36
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT CAST( + - 73 AS SIGNED ) + - 39 * + 5 AS col2
----
-268

skipif mysql # not compatible
query I rowsort label-8794
SELECT CAST ( + - 73 AS INTEGER ) + - 39 * + 5 AS col2
----
-268

query II rowsort
SELECT ALL 70 + 15 AS col0, + 62 * - 56 AS col2
----
85
-3472

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL COUNT( * ) + + 49
----
50

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL COUNT ( * ) + + 49
----
50

query I rowsort
SELECT ( 50 ) - 34
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8798
SELECT 11 * + 91, 96 + CAST( NULL AS SIGNED ) AS col0
----
1001
NULL

skipif mysql # not compatible
query II rowsort label-8798
SELECT 11 * + 91, 96 + CAST ( NULL AS INTEGER ) AS col0
----
1001
NULL

query I rowsort
SELECT 26 + - - 84 * + 9
----
782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8800
SELECT 36 * COUNT( * ) AS col1, - CASE + MIN( - 16 ) WHEN + + 21 + 19 - + 11 * - + 7 THEN + 13 WHEN + - COUNT( * ) + - CAST( NULL AS SIGNED ) + ( - + COUNT( 14 ) ) THEN - 19 * - 95 + + - 14 WHEN + 49 / 27 * + + COUNT( * ) THEN NULL ELSE NULL END
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8800
SELECT 36 * COUNT ( * ) AS col1, - CASE + MIN ( - 16 ) WHEN + + 21 + 19 - + 11 * - + 7 THEN + 13 WHEN + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + ( - + COUNT ( 14 ) ) THEN - 19 * - 95 + + - 14 WHEN + 49 / 27 * + + COUNT ( * ) THEN NULL ELSE NULL END
----
36
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT ALL - 92 DIV + 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - 92 / + 51 AS col2
----
-1

query I rowsort
SELECT ALL + ( - 4 ) - - 96 * + 20
----
1916

query I rowsort
SELECT 10 * - - ( - 50 ) AS col2
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL - MIN( 5 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - MIN ( 5 ) col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT + + COALESCE ( - 77, - NULLIF ( + + ( - 76 ), + 21 + + SUM( DISTINCT + 53 ) ) DIV - + COALESCE ( + 45, - 93 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8805
SELECT + + COALESCE ( - 77, - NULLIF ( + + ( - 76 ), + 21 + + SUM ( DISTINCT + 53 ) ) / - + COALESCE ( + 45, - 93 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT COUNT( * ) + - 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8806
SELECT COUNT ( * ) + - 91 AS col1
----
-90

query I rowsort
SELECT 11 * - - 0 + + ( + 94 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT + COUNT( * ) DIV - - 4 - + 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8808
SELECT + COUNT ( * ) / - - 4 - + 84 AS col0
----
-84

query I rowsort
SELECT ALL + 47 * 25
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - 94 * - COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-8810
SELECT - 94 * - COUNT ( * ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) / 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) / 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8812
SELECT DISTINCT - 64 DIV + ( 39 ) + - COUNT( * ) + + 68 + 18 * 75 AS col1, 67 AS col2
----
1416
67

skipif mysql # not compatible
query II rowsort label-8812
SELECT DISTINCT - 64 / + ( 39 ) + - COUNT ( * ) + + 68 + 18 * 75 AS col1, 67 AS col2
----
1416
67

query I rowsort
SELECT DISTINCT + 53 + 45 * - 71 * + 99 * - 25 * + 9 + + 65 * + 40 + + 72
----
71171350

query I rowsort
SELECT ALL - 95 + - + 25 + + - 96
----
-216

query I rowsort
SELECT - 22 * - 3 - 30 - + 94 + + - 69 - 71
----
-198

query I rowsort
SELECT + 66 * 55 * 36
----
130680

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT DISTINCT - 4 DIV 1 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT - 4 / 1 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + - 41 * - MIN( 21 ) + + 60 + - 52 - - 42 AS col2
----
911

skipif mysql # not compatible
query I rowsort label-8818
SELECT + - 41 * - MIN ( 21 ) + + 60 + - 52 - - 42 AS col2
----
911

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL + MIN( DISTINCT + 25 ) * - CASE - - COUNT( * ) WHEN - 55 THEN NULL WHEN - + 53 THEN NULL ELSE - 86 * - - 40 + CASE + 33 WHEN + CASE 58 WHEN - 77 THEN COUNT( * ) + - 12 * + - COUNT( * ) WHEN ( 18 ) THEN + 66 END THEN COUNT( * ) + + 22 END * + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + MIN ( DISTINCT + 25 ) * - CASE - - COUNT ( * ) WHEN - 55 THEN NULL WHEN - + 53 THEN NULL ELSE - 86 * - - 40 + CASE + 33 WHEN + CASE 58 WHEN - 77 THEN COUNT ( * ) + - 12 * + - COUNT ( * ) WHEN ( 18 ) THEN + 66 END THEN COUNT ( * ) + + 22 END * + 20 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8820
SELECT - 93 DIV - 85 * - COUNT( ALL - + 85 ) + - + 64 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 93 / - 85 * - COUNT ( ALL - + 85 ) + - + 64 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8821
SELECT ALL MIN( + - 89 ) + 3 + 52 DIV + 39 - + CAST( - + 64 AS SIGNED ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL MIN ( + - 89 ) + 3 + 52 / + 39 - + CAST ( - + 64 AS INTEGER ) AS col0
----
-21

query I rowsort
SELECT - 33 * 96 col0
----
-3168

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT MIN( ALL + + 42 ) - 49 + - - 78 * + + 25 AS col2, + 87 + - 43 AS col0
----
1943
44

skipif mysql # not compatible
query II rowsort label-8823
SELECT MIN ( ALL + + 42 ) - 49 + - - 78 * + + 25 AS col2, + 87 + - 43 AS col0
----
1943
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL - 41 * + NULLIF ( 67, MAX( DISTINCT 4 ) )
----
-2747

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - 41 * + NULLIF ( 67, MAX ( DISTINCT 4 ) )
----
-2747

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT - 23 AS col2, - COUNT( * )
----
-23
-1

skipif mysql # not compatible
query II rowsort label-8825
SELECT - 23 AS col2, - COUNT ( * )
----
-23
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8826
SELECT 66 col0, CAST( NULL AS SIGNED )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-8826
SELECT 66 col0, CAST ( NULL AS INTEGER )
----
66
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT 49, + 15 + COUNT( * ) AS col1
----
49
16

skipif mysql # not compatible
query II rowsort label-8827
SELECT 49, + 15 + COUNT ( * ) AS col1
----
49
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8828
SELECT CAST( NULL AS SIGNED ) - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT CAST ( NULL AS INTEGER ) - 6 AS col1
----
NULL

query I rowsort
SELECT 94 + + 91 AS col0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT ALL CAST( 13 AS SIGNED ) * + 13 col1
----
169

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL CAST ( 13 AS INTEGER ) * + 13 col1
----
169

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8831
SELECT CAST( NULL AS DECIMAL ) + + 53 + - 80 * 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT CAST ( NULL AS REAL ) + + 53 + - 80 * 9 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 49, 92 AS col2
----
49
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8833
SELECT DISTINCT 22 DIV - COALESCE ( MAX( DISTINCT + CAST( NULL AS SIGNED ) ), + + 97, 93, + + COUNT( * ) * 62 * - 20 * + + SUM( ALL - 93 ) DIV - 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT 22 / - COALESCE ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), + + 97, 93, + + COUNT ( * ) * 62 * - 20 * + + SUM ( ALL - 93 ) / - 88 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT 29 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT 29 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 35 * - 65 AS col2
----
-2275

query I rowsort
SELECT 6 + + 92 * - - 63 + + + 12
----
5814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8837
SELECT 45 * COALESCE ( - CAST( COUNT( * ) AS SIGNED ), - 83 - - 49 + - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-8837
SELECT 45 * COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), - 83 - - 49 + - COUNT ( * ) )
----
-45

query II rowsort
SELECT ALL 64 AS col0, 41 + 93 * + 1 * - 56
----
64
-5167

query I rowsort
SELECT - 65 + - ( + 98 ) AS col2
----
-163

query I rowsort
SELECT 95 + - ( + 4 ) + - 78
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT + 78 DIV + MIN( - 18 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8841
SELECT + 78 / + MIN ( - 18 ) AS col0
----
-4

query I rowsort
SELECT ALL + + 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + 92 * + - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-8843
SELECT + 92 * + - COUNT ( * )
----
-92

query II rowsort
SELECT DISTINCT + + 40 AS col2, - 47 + + 99
----
40
52

query I rowsort
SELECT DISTINCT - + 70 * + + 75 + - 78 + - 78 * + + 63 * - 47 + + - 13 + 82 * + + 51 col2
----
229799

query I rowsort
SELECT ALL + - 95 * - + 15 + - 4
----
1421

onlyif mysql # aggregate syntax: 
query II rowsort label-8847
SELECT DISTINCT + - 7, + NULLIF ( + 15, + 47 ) * + - 94 + - COUNT( - - 67 ) + - + 76 AS col0
----
-7
-1487

skipif mysql # not compatible
query II rowsort label-8847
SELECT DISTINCT + - 7, + NULLIF ( + 15, + 47 ) * + - 94 + - COUNT ( - - 67 ) + - + 76 AS col0
----
-7
-1487

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT - 74 * COUNT( * ) + - - ( + 68 ) - - ( + 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8848
SELECT - 74 * COUNT ( * ) + - - ( + 68 ) - - ( + 7 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + MAX( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + MAX ( + 5 )
----
5

query I rowsort
SELECT ALL + 75 * + ( 73 )
----
5475

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8851
SELECT + 65 AS col0, + ( COUNT( * ) ) * - + 94 DIV - + 60 + - 12 AS col1
----
65
-11

skipif mysql # not compatible
query II rowsort label-8851
SELECT + 65 AS col0, + ( COUNT ( * ) ) * - + 94 / - + 60 + - 12 AS col1
----
65
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT - 77 + + 11 DIV - 21
----
-77

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 77 + + 11 / - 21
----
-77

query I rowsort
SELECT + 82 * 57 * 51 + 44 + 75 AS col2
----
238493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT ALL 91 * MAX( + - 70 ) * + 9 * - + 30 * + CAST( + 81 AS SIGNED )
----
139311900

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL 91 * MAX ( + - 70 ) * + 9 * - + 30 * + CAST ( + 81 AS INTEGER )
----
139311900

query I rowsort
SELECT DISTINCT + ( - 67 )
----
-67

query I rowsort
SELECT - + 28 + + + 43 + - 29 AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8857
SELECT ALL 59 DIV - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL 59 / - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL 94 * + + 60 - 80 + - 51 * + 82 * - - 17 + NULLIF ( - 41, 52 ) * - SUM( + ( - 69 ) ) + + 69
----
-68294

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL 94 * + + 60 - 80 + - 51 * + 82 * - - 17 + NULLIF ( - 41, 52 ) * - SUM ( + ( - 69 ) ) + + 69
----
-68294

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT DISTINCT + NULLIF ( - + 30, + COUNT( * ) + - - CASE + AVG ( - - 11 ) WHEN - - 58 THEN + - 73 + + + COUNT( * ) / - ( - + 90 ) WHEN + 78 * - 62 - - - 86 THEN NULL ELSE 70 - - 96 END )
----
-30

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT + NULLIF ( - + 30, + COUNT ( * ) + - - CASE + AVG ( - - 11 ) WHEN - - 58 THEN + - 73 + + + COUNT ( * ) / - ( - + 90 ) WHEN + 78 * - 62 - - - 86 THEN NULL ELSE 70 - - 96 END )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT + 35 + + 26 - + - 60 + 26 + + + 9 * + - COALESCE ( + 22, 45, + - 75 * - 50 + 13 + - 51 ) * COUNT( * ) + 0 + - 65 + - 73 AS col0
----
-189

skipif mysql # not compatible
query I rowsort label-8860
SELECT + 35 + + 26 - + - 60 + 26 + + + 9 * + - COALESCE ( + 22, 45, + - 75 * - 50 + 13 + - 51 ) * COUNT ( * ) + 0 + - 65 + - 73 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT - COUNT( * ) * + 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8861
SELECT - COUNT ( * ) * + 42 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT - COUNT( + + 20 ) * - 32 * + COUNT( DISTINCT - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT - COUNT ( + + 20 ) * - 32 * + COUNT ( DISTINCT - 32 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL CASE - + 23 WHEN - SUM( + ( 51 ) ) + 12 THEN + 97 + + COUNT( * ) WHEN + CASE + AVG ( DISTINCT - - 1 ) WHEN - ( + + COUNT( 91 ) ) - - + 17 THEN CAST( NULL AS SIGNED ) END / COUNT( DISTINCT 88 ) + - + 56 + - CAST( + CASE + 44 WHEN + 76 * - COALESCE ( + 11, - 1, CAST( - + ( 19 ) AS SIGNED ) ) THEN + 0 WHEN CAST( + 61 AS SIGNED ) + 3 THEN - CAST( ( COALESCE ( 59, 73 / - COUNT( + 2 ) ) ) AS SIGNED ) WHEN + MAX( - 73 ) + + COUNT( * ) THEN 98 END AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL CASE - + 23 WHEN - SUM ( + ( 51 ) ) + 12 THEN + 97 + + COUNT ( * ) WHEN + CASE + AVG ( DISTINCT - - 1 ) WHEN - ( + + COUNT ( 91 ) ) - - + 17 THEN CAST ( NULL AS INTEGER ) END / COUNT ( DISTINCT 88 ) + - + 56 + - CAST ( + CASE + 44 WHEN + 76 * - COALESCE ( + 11, - 1, CAST ( - + ( 19 ) AS INTEGER ) ) THEN + 0 WHEN CAST ( + 61 AS INTEGER ) + 3 THEN - CAST ( ( COALESCE ( 59, 73 / - COUNT ( + 2 ) ) ) AS INTEGER ) WHEN + MAX ( - 73 ) + + COUNT ( * ) THEN 98 END AS INTEGER ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT DISTINCT CAST( + - COALESCE ( + 35, + ( - 23 ) * + SUM( - 87 ) * + + 8 ) AS SIGNED ) * + 18 * + + COUNT( * ) col0
----
-630

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT CAST ( + - COALESCE ( + 35, + ( - 23 ) * + SUM ( - 87 ) * + + 8 ) AS INTEGER ) * + 18 * + + COUNT ( * ) col0
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT + COUNT( * ) * + 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + COUNT ( * ) * + 82 AS col0
----
82

query II rowsort
SELECT DISTINCT - 92 * - 77, 84 col1
----
7084
84

query I rowsort
SELECT ALL + COALESCE ( ( - + 55 ), + - 54 + 26 ) * 8 AS col0
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - MAX( ALL + - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8868
SELECT - MAX ( ALL + - 78 ) AS col0
----
78

query I rowsort
SELECT DISTINCT - 20 * - - 71
----
-1420

query I rowsort
SELECT - 39 - + + 68 + 84 AS col1
----
-23

query I rowsort
SELECT - NULLIF ( - 48, - 52 * + - 55 )
----
48

query I rowsort
SELECT - 15 - 58
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8873
SELECT + COUNT( * ) + + 81 * + AVG ( - + CAST( - + 47 AS DECIMAL ) ) * - ( - 26 ) * + CAST( NULL AS SIGNED ) * + 6 + + 59 - + 71 * 75 + 52 * + CAST( + + 72 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT + COUNT ( * ) + + 81 * + AVG ( - + CAST ( - + 47 AS REAL ) ) * - ( - 26 ) * + CAST ( NULL AS INTEGER ) * + 6 + + 59 - + 71 * 75 + 52 * + CAST ( + + 72 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8874
SELECT ALL + 89 + COUNT( * ), 36 * + + 32 * 72 col1
----
90
82944

skipif mysql # not compatible
query II rowsort label-8874
SELECT ALL + 89 + COUNT ( * ), 36 * + + 32 * 72 col1
----
90
82944

query I rowsort
SELECT ALL 6 * 92 col1
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT + SUM( DISTINCT ( + 92 ) ) + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + SUM ( DISTINCT ( + 92 ) ) + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT + + SUM( + CASE - 50 WHEN COALESCE ( - 4, 91 ) THEN NULL WHEN + 79 THEN NULL ELSE - 66 * + - 47 END ) - + 57 col1
----
3045

skipif mysql # not compatible
query I rowsort label-8877
SELECT + + SUM ( + CASE - 50 WHEN COALESCE ( - 4, 91 ) THEN NULL WHEN + 79 THEN NULL ELSE - 66 * + - 47 END ) - + 57 col1
----
3045

onlyif mysql # aggregate syntax: 
query II rowsort label-8878
SELECT ALL + 39 + - 87 + MIN( ALL + 7 ), 74 AS col2
----
-41
74

skipif mysql # not compatible
query II rowsort label-8878
SELECT ALL + 39 + - 87 + MIN ( ALL + 7 ), 74 AS col2
----
-41
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8879
SELECT ALL 68 + + 73, 12 * - ( CAST( NULL AS SIGNED ) ) + NULLIF ( - COALESCE ( - - 71, - 52 ), 91 + + 90 + CAST( NULL AS SIGNED ) ) AS col2
----
141
NULL

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL 68 + + 73, 12 * - ( CAST ( NULL AS INTEGER ) ) + NULLIF ( - COALESCE ( - - 71, - 52 ), 91 + + 90 + CAST ( NULL AS INTEGER ) ) AS col2
----
141
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8880
SELECT ALL - 70 * + 59 * - 16 + CAST( 2 AS SIGNED ) AS col0, - 76 + 93 - + 15
----
66082
2

skipif mysql # not compatible
query II rowsort label-8880
SELECT ALL - 70 * + 59 * - 16 + CAST ( 2 AS INTEGER ) AS col0, - 76 + 93 - + 15
----
66082
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8881
SELECT ALL CAST( CASE + COUNT( * ) WHEN - - 71 THEN - + 38 WHEN + 90 THEN + COUNT( * ) + 70 END AS DECIMAL ) / - + 5 + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL CAST ( CASE + COUNT ( * ) WHEN - - 71 THEN - + 38 WHEN + 90 THEN + COUNT ( * ) + 70 END AS REAL ) / - + 5 + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + - MAX( ALL + 53 ) + - 36 + - COUNT( * ) - - 27 * - - 6
----
72

skipif mysql # not compatible
query I rowsort label-8882
SELECT + - MAX ( ALL + 53 ) + - 36 + - COUNT ( * ) - - 27 * - - 6
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8883
SELECT DISTINCT - 54 DIV + CAST( + 55 AS SIGNED ) + + - 81 + + 61
----
-20

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT - 54 / + CAST ( + 55 AS INTEGER ) + + - 81 + + 61
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8884
SELECT ALL - COUNT( * ) DIV + - 47 - + + 85 + + COALESCE ( - 95, CAST( 96 AS SIGNED ), + ( + - 69 ) + - 95 * - 10 + - 31 + + 91 - - 14 )
----
-180

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - COUNT ( * ) / + - 47 - + + 85 + + COALESCE ( - 95, CAST ( 96 AS INTEGER ), + ( + - 69 ) + - 95 * - 10 + - 31 + + 91 - - 14 )
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8885
SELECT DISTINCT + 25 DIV + 61 * + + MIN( - 66 ) + - COALESCE ( - + 94, 88 * + COUNT( * ) + - COUNT( * ) ) AS col0, ( + + 58 ) + + 24 AS col2, - 89 col2
----
94
82
-89

skipif mysql # not compatible
query III rowsort label-8885
SELECT DISTINCT + 25 / + 61 * + + MIN ( - 66 ) + - COALESCE ( - + 94, 88 * + COUNT ( * ) + - COUNT ( * ) ) AS col0, ( + + 58 ) + + 24 AS col2, - 89 col2
----
94
82
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-8886
SELECT DISTINCT + 21 DIV 65 AS col1, + 94
----
0
94

skipif mysql # not compatible
query II rowsort label-8886
SELECT DISTINCT + 21 / 65 AS col1, + 94
----
0
94

query II rowsort
SELECT ALL + + 69 * - 10 * 9 * + COALESCE ( + 81, - 43 ) - - + 42 col0, + 29 - - 75
----
-502968
104

query I rowsort
SELECT + 36 * 3
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + 46 * 86 + + - ( 23 )
----
3933

query I rowsort
SELECT ALL - 5 * - + 65
----
325

query I rowsort
SELECT - 23 * + - 62 col0
----
1426

query I rowsort
SELECT ALL 29 * COALESCE ( 77, - NULLIF ( + 10, + 40 ) ) AS col1
----
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT DISTINCT 46 * COUNT( DISTINCT 97 ) col0
----
46

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT 46 * COUNT ( DISTINCT 97 ) col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT ALL CAST( 19 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL CAST ( 19 AS INTEGER ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8896
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, CASE - + COUNT( * ) WHEN + 31 THEN - 66 + + + COUNT( + + 2 ) END / + 72 * + 68 + - - 53
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8896
SELECT ALL CAST ( NULL AS REAL ) AS col0, CASE - + COUNT ( * ) WHEN + 31 THEN - 66 + + + COUNT ( + + 2 ) END / + 72 * + 68 + - - 53
----
NULL
NULL

query I rowsort
SELECT ALL COALESCE ( + 37, - 18 - - - 29 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT DISTINCT - 61 / + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT - 61 / + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 63 + + NULLIF ( - + ( - + CASE - ( 29 ) WHEN - - 74 THEN + ( 77 ) * + - 45 END ), + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT - MAX( DISTINCT - - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8900
SELECT - MAX ( DISTINCT - - 68 ) AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL - 24 * + 50 + + 86 + - 26 + 8 + + + 72 + + - 50 / - 12 * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - 24 * + 50 + + 86 + - 26 + 8 + + + 72 + + - 50 / - 12 * - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT - 39 + - CASE + + 71 WHEN + 28 THEN - 99 - + - 41 * - 22 WHEN + - 96 THEN + 58 + MIN( 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT - 39 + - CASE + + 71 WHEN + 28 THEN - 99 - + - 41 * - 22 WHEN + - 96 THEN + 58 + MIN ( 62 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT - 57 DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT - 57 / 90 AS col2
----
0

query I rowsort
SELECT 55 - + 78
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL + 43 + - + 84 * + COUNT( * ) * 61 + + COUNT( 96 )
----
-5080

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + 43 + - + 84 * + COUNT ( * ) * 61 + + COUNT ( 96 )
----
-5080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8906
SELECT ALL + 71 DIV - COUNT( + + 96 )
----
-71

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL + 71 / - COUNT ( + + 96 )
----
-71

query I rowsort
SELECT 43 * + 81 * + ( - - 57 )
----
198531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8908
SELECT DISTINCT - + MIN( DISTINCT 54 ) + + - 35 + - CAST( NULL AS SIGNED ) * - + 16 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - + MIN ( DISTINCT 54 ) + + - 35 + - CAST ( NULL AS INTEGER ) * - + 16 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT + 52 + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + 52 + + COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT - - 61 * - 64
----
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL + COUNT( + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + COUNT ( + 38 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT NULLIF ( 82, 28 ) + ( + NULLIF ( 96, + ( - CAST( NULL AS SIGNED ) ) ) )
----
178

skipif mysql # not compatible
query I rowsort label-8912
SELECT NULLIF ( 82, 28 ) + ( + NULLIF ( 96, + ( - CAST ( NULL AS INTEGER ) ) ) )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - MAX( ALL + - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-8913
SELECT - MAX ( ALL + - 43 )
----
43

query II rowsort
SELECT - 4 AS col0, 52
----
-4
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT + 63 + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8915
SELECT + 63 + - COUNT ( * )
----
62

query I rowsort
SELECT ALL - 83 - + - 35
----
-48

query I rowsort
SELECT DISTINCT 25 * 6 - - 89
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT 91 + 67 + 83 * + 71 + + 11 * MIN( DISTINCT - 92 ) + + NULLIF ( + - 78, + + 81 )
----
4961

skipif mysql # not compatible
query I rowsort label-8918
SELECT 91 + 67 + 83 * + 71 + + 11 * MIN ( DISTINCT - 92 ) + + NULLIF ( + - 78, + + 81 )
----
4961

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT DISTINCT + - COUNT( * ) - + COUNT( DISTINCT - 16 ) col0, 20 * + - COUNT( * ) AS col1
----
-2
-20

skipif mysql # not compatible
query II rowsort label-8919
SELECT DISTINCT + - COUNT ( * ) - + COUNT ( DISTINCT - 16 ) col0, 20 * + - COUNT ( * ) AS col1
----
-2
-20

query I rowsort
SELECT ALL 43 * - + 80 AS col1
----
-3440

query I rowsort
SELECT - 12 + - - 28 AS col2
----
16

query I rowsort
SELECT ALL 82 - 38
----
44

query I rowsort
SELECT DISTINCT - 75 - + + 71
----
-146

query II rowsort
SELECT DISTINCT + 64 * + 56 * - + 84 AS col2, 23 + 80
----
-301056
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - CASE - 96 WHEN - - COUNT( * ) THEN + 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - CASE - 96 WHEN - - COUNT ( * ) THEN + 34 END AS col0
----
NULL

query I rowsort
SELECT - 70 * 84 AS col2
----
-5880

query I rowsort
SELECT 30 * - 9
----
-270

query I rowsort
SELECT ALL - 31 * + 99 AS col2
----
-3069

query I rowsort
SELECT + 79 + + COALESCE ( NULLIF ( 47, 9 ), + 31 ) - + ( NULLIF ( - 25, 75 ) ) + + 8 + + 81 * 28
----
2427

onlyif mysql # DIV for integer division: 
query II rowsort label-8930
SELECT + 16 AS col2, - 62 DIV - 40 AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-8930
SELECT + 16 AS col2, - 62 / - 40 AS col0
----
16
1

query I rowsort
SELECT 20 + + + 14 AS col1
----
34

query II rowsort
SELECT ALL - 56, - 20 AS col0
----
-56
-20

query I rowsort
SELECT 30 + - + 2 + 93
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT - 16 * - - MIN( DISTINCT - + 55 ) + + 19 - ( - 11 ) * - 33 - - 67 * - 92 + + - SUM( + ( 57 ) ) * - - 67 * 32 AS col2
----
-127836

skipif mysql # not compatible
query I rowsort label-8934
SELECT - 16 * - - MIN ( DISTINCT - + 55 ) + + 19 - ( - 11 ) * - 33 - - 67 * - 92 + + - SUM ( + ( 57 ) ) * - - 67 * 32 AS col2
----
-127836

query II rowsort
SELECT ALL - 75 AS col0, ( - 72 ) AS col0
----
-75
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT 74 * COUNT( * ) + 59 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-8936
SELECT 74 * COUNT ( * ) + 59 AS col1
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT CAST( NULL AS SIGNED ) + - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT CAST ( NULL AS INTEGER ) + - 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT ALL CASE + - COUNT( * ) WHEN + 49 THEN NULL WHEN + 70 THEN COALESCE ( + 56, 70 + + - 24, - COALESCE ( + 45, - - 1 / + 69 + + 7 ), + + 95 ) ELSE NULL END / + - 81 * + 18 AS col0, - ( + - 74 ) + + 75
----
NULL
149

skipif mysql # not compatible
query II rowsort label-8938
SELECT ALL CASE + - COUNT ( * ) WHEN + 49 THEN NULL WHEN + 70 THEN COALESCE ( + 56, 70 + + - 24, - COALESCE ( + 45, - - 1 / + 69 + + 7 ), + + 95 ) ELSE NULL END / + - 81 * + 18 AS col0, - ( + - 74 ) + + 75
----
NULL
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8939
SELECT ALL + CAST( NULL AS SIGNED ) * MAX( - + 63 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + CAST ( NULL AS INTEGER ) * MAX ( - + 63 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT CAST( NULL AS SIGNED ) / - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT CAST ( NULL AS INTEGER ) / - - 75 AS col0
----
NULL

query II rowsort
SELECT 3, 16 AS col0
----
3
16

query I rowsort
SELECT ALL ( - 14 ) + + ( - - 29 ) AS col1
----
15

query II rowsort
SELECT 76 AS col0, + 56 + 60 col0
----
76
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT - AVG ( DISTINCT + - 66 ) * + CAST( NULL AS SIGNED ) + - ( - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT - AVG ( DISTINCT + - 66 ) * + CAST ( NULL AS INTEGER ) + - ( - 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT COUNT( * ) * ( + + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8945
SELECT COUNT ( * ) * ( + + 19 ) AS col1
----
19

query I rowsort
SELECT 55 + + - 32
----
23

query I rowsort
SELECT ALL + 75 * + + 48 * - 89
----
-320400

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT - 2, COUNT( * ) AS col2
----
-2
1

skipif mysql # not compatible
query II rowsort label-8948
SELECT - 2, COUNT ( * ) AS col2
----
-2
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8949
SELECT DISTINCT 56, + CAST( NULL AS SIGNED ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-8949
SELECT DISTINCT 56, + CAST ( NULL AS INTEGER ) AS col1
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - 2 + + 86 + - - COUNT( * ) * + - 59 * + COALESCE ( 62, - - 61 ) * 54 + - 21 + - 30
----
-197499

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - 2 + + 86 + - - COUNT ( * ) * + - 59 * + COALESCE ( 62, - - 61 ) * 54 + - 21 + - 30
----
-197499

query I rowsort
SELECT ALL + 48 + ( - 19 ) AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL CASE - 89 WHEN - 49 / + + CAST( 56 AS SIGNED ) + CAST( NULL AS SIGNED ) THEN 74 WHEN + ( - 73 ) * - 8 THEN + 54 + - 40 END * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL CASE - 89 WHEN - 49 / + + CAST ( 56 AS INTEGER ) + CAST ( NULL AS INTEGER ) THEN 74 WHEN + ( - 73 ) * - 8 THEN + 54 + - 40 END * - 13
----
NULL

query I rowsort
SELECT 51 + - + ( - 33 )
----
84

query I rowsort
SELECT DISTINCT + 81 + - 53
----
28

query II rowsort
SELECT + 59 AS col2, 55 + - - 79 * + - 45 * - 27
----
59
96040

query I rowsort
SELECT ALL - COALESCE ( - 7, - + 80 ) col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT ( - 95 ) - - 71 DIV - 30
----
-97

skipif mysql # not compatible
query I rowsort label-8957
SELECT ( - 95 ) - - 71 / - 30
----
-97

query I rowsort
SELECT + NULLIF ( + 92, 1 ) AS col1
----
92

query II rowsort
SELECT ALL - 47 AS col2, 25 * 41 AS col2
----
-47
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT - - MAX( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8960
SELECT - - MAX ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT COUNT( * ) - 21 - + 50 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8961
SELECT COUNT ( * ) - 21 - + 50 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8962
SELECT - 60 AS col2, + COUNT( * ) - - ( + 58 ) col1
----
-60
59

skipif mysql # not compatible
query II rowsort label-8962
SELECT - 60 AS col2, + COUNT ( * ) - - ( + 58 ) col1
----
-60
59

query I rowsort
SELECT 80 + + - 4 + + 57 AS col2
----
133

query I rowsort
SELECT DISTINCT - 45 - 47 AS col0
----
-92

query II rowsort
SELECT 27 + + + 90 + + - 4 * - 41 AS col2, 61
----
281
61

query I rowsort
SELECT ALL - 96 * + + ( NULLIF ( 46, - 41 ) ) col2
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT - 85 - - - 56 * - MAX( ALL + 93 ) * + 8
----
41579

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - 85 - - - 56 * - MAX ( ALL + 93 ) * + 8
----
41579

query II rowsort
SELECT DISTINCT 72 AS col1, - 89
----
72
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT - 1 - + 7 AS col0, 39 + COUNT( * ) * - 80
----
-8
-41

skipif mysql # not compatible
query II rowsort label-8969
SELECT - 1 - + 7 AS col0, 39 + COUNT ( * ) * - 80
----
-8
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL - + COUNT( * ) * + COUNT( * ) * - ( - ( - 57 ) ) / + CASE - 4 WHEN 45 THEN - + 82 * + 69 WHEN - + 96 THEN NULL ELSE NULL END + - + CASE 57 WHEN - 49 + 8 THEN 44 ELSE NULL END + + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) * - ( - ( - 57 ) ) / + CASE - 4 WHEN 45 THEN - + 82 * + 69 WHEN - + 96 THEN NULL ELSE NULL END + - + CASE 57 WHEN - 49 + 8 THEN 44 ELSE NULL END + + 68 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + ( + 60 ) * + + 8 + + 77 col1, 17 * - + 91 col2
----
557
-1547

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8972
SELECT ALL + CAST( NULL AS DECIMAL ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL + CAST ( NULL AS REAL ) * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT + MIN ( DISTINCT - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL - + SUM( 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - + SUM ( 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8975
SELECT + - CAST( + 71 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8975
SELECT + - CAST ( + 71 AS INTEGER ) AS col1
----
-71

query II rowsort
SELECT - 40, + 97 AS col2
----
-40
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT COUNT( * ) * + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8977
SELECT COUNT ( * ) * + 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL CASE + 33 WHEN + 69 THEN - 46 WHEN - - COUNT( * ) THEN NULL END * NULLIF ( - - 3, COUNT( * ) + 1 + 11 * - - 79 / + 16 ) + 54 - + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL CASE + 33 WHEN + 69 THEN - 46 WHEN - - COUNT ( * ) THEN NULL END * NULLIF ( - - 3, COUNT ( * ) + 1 + 11 * - - 79 / + 16 ) + 54 - + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT ALL - ( + + 92 ) AS col1, - MIN( DISTINCT - - 17 ) * - 70
----
-92
1190

skipif mysql # not compatible
query II rowsort label-8979
SELECT ALL - ( + + 92 ) AS col1, - MIN ( DISTINCT - - 17 ) * - 70
----
-92
1190

query I rowsort
SELECT DISTINCT + 88 * 57
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT ALL CAST( NULL AS SIGNED ) * - - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL CAST ( NULL AS INTEGER ) * - - 81 AS col2
----
NULL

query I rowsort
SELECT ALL + ( 38 ) * - 48 + + 82 + - + 59 * 84 * + - 6 * 30 + + - 64 + - - 29 AS col1
----
890303

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT COUNT( * ) + + + 30 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8983
SELECT COUNT ( * ) + + + 30 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8984
SELECT COUNT( + 61 ) AS col1, - 41
----
1
-41

skipif mysql # not compatible
query II rowsort label-8984
SELECT COUNT ( + 61 ) AS col1, - 41
----
1
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT MAX( + + 24 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-8985
SELECT MAX ( + + 24 ) col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL 34 + COALESCE ( - - 90, ( + 14 ), + - COUNT( * ) + ( - + 72 ) ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL 34 + COALESCE ( - - 90, ( + 14 ), + - COUNT ( * ) + ( - + 72 ) ) AS col2
----
124

query I rowsort
SELECT 79 * - + 82 + - 84 * 78
----
-13030

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT MAX( + + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8988
SELECT MAX ( + + 79 ) AS col1
----
79

query I rowsort
SELECT + 16 + - - 13 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8990
SELECT ALL CAST( NULL AS SIGNED ) + + 5 col0, + 49 * + ( - 82 ) AS col2
----
NULL
-4018

skipif mysql # not compatible
query II rowsort label-8990
SELECT ALL CAST ( NULL AS INTEGER ) + + 5 col0, + 49 * + ( - 82 ) AS col2
----
NULL
-4018

query I rowsort
SELECT + 92 + + 87 AS col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + 86 + COUNT( * ) * + 95
----
181

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 86 + COUNT ( * ) * + 95
----
181

query I rowsort
SELECT + 55 * + + 45 * - 97 + + + 77 + + 19
----
-239979

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL MAX( ALL - COALESCE ( - + 31, + 78 ) )
----
31

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL MAX ( ALL - COALESCE ( - + 31, + 78 ) )
----
31

query I rowsort
SELECT - CASE + 0 WHEN + 74 THEN + 44 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + 39 + - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 39 + - COUNT ( * ) AS col1
----
38

query I rowsort
SELECT + + 77 + ( + 95 ) AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL MAX( ALL - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL MAX ( ALL - + 42 )
----
-42

query I rowsort
SELECT ALL 62 * - 83
----
-5146

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT NULLIF ( 27, SUM( ALL 41 ) )
----
27

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT NULLIF ( 27, SUM ( ALL 41 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT + 14 * - 47 * 60 * CASE + - 31 WHEN COUNT( * ) + - + SUM( 74 ) THEN + 19 END * + - 38 * - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT + 14 * - 47 * 60 * CASE + - 31 WHEN COUNT ( * ) + - + SUM ( 74 ) THEN + 19 END * + - 38 * - 37 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 46 * - 72 * - 13
----
43056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT - - CAST( 17 AS SIGNED ) + + 44 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9003
SELECT - - CAST ( 17 AS INTEGER ) + + 44 AS col2
----
61

query I rowsort
SELECT - + 70 * + + ( 65 )
----
-4550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT + 34 + - 11 + COUNT( * ) * + ( - 22 ) DIV + - 46 * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9005
SELECT + 34 + - 11 + COUNT ( * ) * + ( - 22 ) / + - 46 * - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9006
SELECT MAX( ALL + 56 ) AS col2, + COALESCE ( 36, + - COUNT( * ), - 17 ) * + 43 AS col2
----
56
1548

skipif mysql # not compatible
query II rowsort label-9006
SELECT MAX ( ALL + 56 ) AS col2, + COALESCE ( 36, + - COUNT ( * ), - 17 ) * + 43 AS col2
----
56
1548

query I rowsort
SELECT - CASE - + 43 WHEN 35 - + 76 THEN - + 78 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT - 22 DIV COALESCE ( - ( - 42 ), + + ( + 87 ) + 92 + - + 99 ) + + 2 col1
----
2

skipif mysql # not compatible
query I rowsort label-9008
SELECT - 22 / COALESCE ( - ( - 42 ), + + ( + 87 ) + 92 + - + 99 ) + + 2 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT + 61 + MAX( 33 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9009
SELECT + 61 + MAX ( 33 ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT - 31 * + 18 + 99 DIV - 24
----
-562

skipif mysql # not compatible
query I rowsort label-9010
SELECT - 31 * + 18 + 99 / - 24
----
-562

onlyif mysql # DIV for integer division: 
query II rowsort label-9011
SELECT DISTINCT 49 DIV - 16 AS col1, + 33 AS col0
----
-3
33

skipif mysql # not compatible
query II rowsort label-9011
SELECT DISTINCT 49 / - 16 AS col1, + 33 AS col0
----
-3
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT ALL + COUNT( * ) DIV - + 1 + + 45
----
44

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + COUNT ( * ) / - + 1 + + 45
----
44

query I rowsort
SELECT - 0 + - 26 AS col1
----
-26

query I rowsort
SELECT ALL - 74 * - + 27
----
1998

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT ALL + COUNT( * ) AS col1, - 62 AS col2
----
1
-62

skipif mysql # not compatible
query II rowsort label-9015
SELECT ALL + COUNT ( * ) AS col1, - 62 AS col2
----
1
-62

query II rowsort
SELECT DISTINCT - 75 * + 1 + + + 62, - 79 * 2 AS col2
----
-13
-158

query I rowsort
SELECT DISTINCT + 1 * - 76 * + 80 AS col0
----
-6080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT ALL + 42 * + 67 + + NULLIF ( + NULLIF ( - 97, + MIN( - - 12 ) ), ( + ( - + CAST( ( + 61 ) AS SIGNED ) ) ) ) * - 85 + - 9 * - 40 / - 79 / - 37 * + + 50 * + CAST( NULL AS SIGNED ) - + 87 / 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + 42 * + 67 + + NULLIF ( + NULLIF ( - 97, + MIN ( - - 12 ) ), ( + ( - + CAST ( ( + 61 ) AS INTEGER ) ) ) ) * - 85 + - 9 * - 40 / - 79 / - 37 * + + 50 * + CAST ( NULL AS INTEGER ) - + 87 / 88 AS col0
----
NULL

query I rowsort
SELECT - 64 * + 6
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT 74 * + ( + + 88 ) + COUNT( * ) * - - MIN( + 33 ) col2
----
6545

skipif mysql # not compatible
query I rowsort label-9020
SELECT 74 * + ( + + 88 ) + COUNT ( * ) * - - MIN ( + 33 ) col2
----
6545

query I rowsort
SELECT - 40 * 34 * - NULLIF ( + 15, + 34 ) AS col0
----
20400

query I rowsort
SELECT + 22 + - + 38
----
-16

query I rowsort
SELECT ALL + ( 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT - 86 + COUNT( * ) * 53 + 17, 37 AS col0
----
-16
37

skipif mysql # not compatible
query II rowsort label-9024
SELECT - 86 + COUNT ( * ) * 53 + 17, 37 AS col0
----
-16
37

query I rowsort
SELECT ALL + 99 * + 12 * + 36 + 6 * - 41
----
42522

query I rowsort
SELECT ALL 74 * 26 * - - 65
----
125060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 49 / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 49 / + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT NULLIF ( ( + - COUNT( * ) ), + + 3 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9028
SELECT NULLIF ( ( + - COUNT ( * ) ), + + 3 ) col0
----
-1

query I rowsort
SELECT ALL 46 * - ( + 19 )
----
-874

query I rowsort
SELECT - + 15 * - 54
----
810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9031
SELECT - 11 AS col1, - CAST( + 56 AS SIGNED ) * - + 83
----
-11
4648

skipif mysql # not compatible
query II rowsort label-9031
SELECT - 11 AS col1, - CAST ( + 56 AS INTEGER ) * - + 83
----
-11
4648

query I rowsort
SELECT - ( - - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL + COALESCE ( - 34, COUNT( * ) * - 56 )
----
-34

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + COALESCE ( - 34, COUNT ( * ) * - 56 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT + + MAX( 18 ) DIV 6 DIV - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9034
SELECT + + MAX ( 18 ) / 6 / - COUNT ( * )
----
-3

query I rowsort
SELECT ALL - CASE - 46 WHEN - + 59 + - 98 THEN - AVG ( - 99 ) * 97 WHEN + 56 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL - ( - MAX( DISTINCT + 64 ) ) col2
----
64

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL - ( - MAX ( DISTINCT + 64 ) ) col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT + SUM( 72 ) + + 52 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-9037
SELECT + SUM ( 72 ) + + 52 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT + 79 DIV - 17 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9038
SELECT + 79 / - 17 AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9039
SELECT ALL 48 DIV - COUNT( * ) + 76 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL 48 / - COUNT ( * ) + 76 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9040
SELECT + MAX( + CAST( + 42 AS SIGNED ) ) * - 80 * - 85
----
285600

skipif mysql # not compatible
query I rowsort label-9040
SELECT + MAX ( + CAST ( + 42 AS INTEGER ) ) * - 80 * - 85
----
285600

query I rowsort
SELECT + 36 - + ( + 37 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT ALL 41, NULLIF ( + + COALESCE ( - - ( + 73 ), - 12, - COUNT( * ) ), + 34 * ( + 33 ) * + 51 ) + + + 26 + + 57 AS col1
----
41
156

skipif mysql # not compatible
query II rowsort label-9042
SELECT ALL 41, NULLIF ( + + COALESCE ( - - ( + 73 ), - 12, - COUNT ( * ) ), + 34 * ( + 33 ) * + 51 ) + + + 26 + + 57 AS col1
----
41
156

query II rowsort
SELECT - 52 AS col0, + 40 AS col1
----
-52
40

query I rowsort
SELECT - + 33 + + 21
----
-12

query II rowsort
SELECT 36 AS col2, + 97 + + - 35
----
36
62

query I rowsort
SELECT + - 63 * + ( - + 32 ) * + 17 + - COALESCE ( + + ( + + 18 ), + 87, + - 52 ) + 85 * - 73 AS col1
----
28049

query I rowsort
SELECT ALL - 52 + 14 - + - 86 * - + ( 59 ) + + + ( - 51 ) AS col1
----
-5163

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9048
SELECT ALL + NULLIF ( - COUNT( ALL - CAST( + 92 AS DECIMAL ) ), + - 65 * - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + NULLIF ( - COUNT ( ALL - CAST ( + 92 AS REAL ) ), + - 65 * - COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT - + 74 + + 23 + - 5 + 21 DIV + - 23
----
-56

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - + 74 + + 23 + - 5 + 21 / + - 23
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + - 14 - 72 * SUM( - 78 ) AS col0
----
5602

skipif mysql # not compatible
query I rowsort label-9050
SELECT + - 14 - 72 * SUM ( - 78 ) AS col0
----
5602

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL - COUNT( * ) * - + NULLIF ( - COUNT( * ), - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - COUNT ( * ) * - + NULLIF ( - COUNT ( * ), - 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + 77 * - CASE 89 WHEN - + 39 - - 23 THEN NULL WHEN 94 THEN NULL ELSE MIN( ALL - 67 ) END * + - COALESCE ( 56, 45 + - 3, - 60 ) + - ( - ( COALESCE ( + + ( + 36 ), 6 ) ) ) AS col2
----
-288868

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 77 * - CASE 89 WHEN - + 39 - - 23 THEN NULL WHEN 94 THEN NULL ELSE MIN ( ALL - 67 ) END * + - COALESCE ( 56, 45 + - 3, - 60 ) + - ( - ( COALESCE ( + + ( + 36 ), 6 ) ) ) AS col2
----
-288868

query I rowsort
SELECT ALL 82 + 57 + - 97 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT DISTINCT + SUM( 76 ), + 90 AS col1
----
76
90

skipif mysql # not compatible
query II rowsort label-9054
SELECT DISTINCT + SUM ( 76 ), + 90 AS col1
----
76
90

query I rowsort
SELECT 45 * 55 * + - 24
----
-59400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9056
SELECT DISTINCT - ( + 14 ) + - 52 + + NULLIF ( 65, 7 ) + + MIN( - 53 ) + - CAST( NULL AS SIGNED ) * - NULLIF ( 92, + + 71 * - - 4 * 19 + COUNT( * ) ) * + - 60 * - 13 AS col0, 74 * - ( - 61 ) AS col2
----
NULL
4514

skipif mysql # not compatible
query II rowsort label-9056
SELECT DISTINCT - ( + 14 ) + - 52 + + NULLIF ( 65, 7 ) + + MIN ( - 53 ) + - CAST ( NULL AS INTEGER ) * - NULLIF ( 92, + + 71 * - - 4 * 19 + COUNT ( * ) ) * + - 60 * - 13 AS col0, 74 * - ( - 61 ) AS col2
----
NULL
4514

query I rowsort
SELECT DISTINCT - ( - 46 ) col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT 35 * ( 52 ) * - SUM( ALL - 84 ) * + + 14 + + 10
----
2140330

skipif mysql # not compatible
query I rowsort label-9058
SELECT 35 * ( 52 ) * - SUM ( ALL - 84 ) * + + 14 + + 10
----
2140330

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL - SUM( DISTINCT - 39 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - SUM ( DISTINCT - 39 ) AS col2
----
39

query I rowsort
SELECT 45 * - + ( - 60 ) AS col2
----
2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT DISTINCT - CASE 97 WHEN + 81 THEN - CAST( + 4 AS SIGNED ) * 97 + - 0 ELSE - + 91 END AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT - CASE 97 WHEN + 81 THEN - CAST ( + 4 AS INTEGER ) * 97 + - 0 ELSE - + 91 END AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT 17 * - COUNT( * ) + + 85 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9062
SELECT 17 * - COUNT ( * ) + + 85 AS col1
----
68

query I rowsort
SELECT - 46 * 18 * - - 14 + 47
----
-11545

query I rowsort
SELECT ALL - NULLIF ( 42, - 88 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT 54 + + MIN( DISTINCT + 75 ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-9065
SELECT 54 + + MIN ( DISTINCT + 75 ) AS col2
----
129

query I rowsort
SELECT + 13 * + 65 * + CASE + + ( - + 40 ) WHEN + 47 THEN + - 38 END AS col2
----
NULL

query I rowsort
SELECT 4 + 73
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9068
SELECT ALL - ( - - NULLIF ( MAX( DISTINCT + 57 ), - COUNT( * ) + - + CAST( NULL AS DECIMAL ) ) )
----
-57

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - ( - - NULLIF ( MAX ( DISTINCT + 57 ), - COUNT ( * ) + - + CAST ( NULL AS REAL ) ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL 80 * + NULLIF ( - + MIN( + 22 ), 30 - + COUNT( * ) ) col2
----
-1760

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL 80 * + NULLIF ( - + MIN ( + 22 ), 30 - + COUNT ( * ) ) col2
----
-1760

query I rowsort
SELECT 12 * - 20 col1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT + 6 * - ( + + 39 ) + + - MAX( DISTINCT - 75 ) * - NULLIF ( 67, 56 / + - 96 + - - MIN( ALL + + 81 ) ) AS col2
----
-5259

skipif mysql # not compatible
query I rowsort label-9071
SELECT + 6 * - ( + + 39 ) + + - MAX ( DISTINCT - 75 ) * - NULLIF ( 67, 56 / + - 96 + - - MIN ( ALL + + 81 ) ) AS col2
----
-5259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL - 64 * - CAST( 57 AS SIGNED ) AS col1
----
3648

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL - 64 * - CAST ( 57 AS INTEGER ) AS col1
----
3648

query I rowsort
SELECT - 7 + - 65
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT ALL - 48 * + 35 + + + MAX( + + 88 )
----
-1592

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL - 48 * + 35 + + + MAX ( + + 88 )
----
-1592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT - 20 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT - 20 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 64 + - 45 col1
----
19

query I rowsort
SELECT 53 + - 67
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9078
SELECT ALL + CAST( NULL AS SIGNED ) + COALESCE ( - - 72, CASE + 19 WHEN + + 14 + + - 93 + + 7 + + 26 THEN + 12 WHEN - - COUNT( * ) THEN 61 ELSE - 28 END + + 77 + + + 59 * - - 64 ) + 60 * - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL + CAST ( NULL AS INTEGER ) + COALESCE ( - - 72, CASE + 19 WHEN + + 14 + + - 93 + + 7 + + 26 THEN + 12 WHEN - - COUNT ( * ) THEN 61 ELSE - 28 END + + 77 + + + 59 * - - 64 ) + 60 * - - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9079
SELECT CASE 11 WHEN - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * 52 + + 87 THEN NULL ELSE - 58 * - + MAX( ALL - 64 ) * - 59 + + 30 END AS col1
----
219038

skipif mysql # not compatible
query I rowsort label-9079
SELECT CASE 11 WHEN - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * 52 + + 87 THEN NULL ELSE - 58 * - + MAX ( ALL - 64 ) * - 59 + + 30 END AS col1
----
219038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT + 54 + + COALESCE ( CAST( - 43 AS SIGNED ), - 46 )
----
11

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + 54 + + COALESCE ( CAST ( - 43 AS INTEGER ), - 46 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT - CASE - + 66 WHEN 77 THEN NULL WHEN - COUNT( * ) * + + 12 THEN NULL ELSE + 15 END + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9081
SELECT - CASE - + 66 WHEN 77 THEN NULL WHEN - COUNT ( * ) * + + 12 THEN NULL ELSE + 15 END + + COUNT ( * )
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-9082
SELECT ALL NULLIF ( + 46, + - 35 ) DIV 50, 45 AS col0
----
0
45

skipif mysql # not compatible
query II rowsort label-9082
SELECT ALL NULLIF ( + 46, + - 35 ) / 50, 45 AS col0
----
0
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT - 79 DIV + 51
----
-1

skipif mysql # not compatible
query I rowsort label-9083
SELECT - 79 / + 51
----
-1

query II rowsort
SELECT ALL 53 + - 93 - + ( + - 13 ), - 72 AS col1
----
-27
-72

query I rowsort
SELECT ALL NULLIF ( + ( - 47 ), - 80 - + + AVG ( ALL + - 7 ) ) + - + 13
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT COUNT( * ) * CASE + ( - CAST( - + 25 AS SIGNED ) ) WHEN 78 + - 17 / - + 61 THEN AVG ( + 96 ) WHEN - 93 THEN NULL END * + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT COUNT ( * ) * CASE + ( - CAST ( - + 25 AS INTEGER ) ) WHEN 78 + - 17 / - + 61 THEN AVG ( + 96 ) WHEN - 93 THEN NULL END * + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9087
SELECT ALL NULLIF ( + 93, SUM( DISTINCT 15 ) * + + COUNT( * ) ) DIV COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL NULLIF ( + 93, SUM ( DISTINCT 15 ) * + + COUNT ( * ) ) / COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT COUNT( * ) + - - 70 * - - COUNT( - 18 )
----
71

skipif mysql # not compatible
query I rowsort label-9088
SELECT COUNT ( * ) + - - 70 * - - COUNT ( - 18 )
----
71

query I rowsort
SELECT 19 + + 0
----
19

query II rowsort
SELECT 55 * 38 * 9, - 97 AS col0
----
18810
-97

query I rowsort
SELECT ALL 5 + - 97
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT - 25 DIV 76 + + 7 * + 95
----
665

skipif mysql # not compatible
query I rowsort label-9092
SELECT - 25 / 76 + + 7 * + 95
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT MAX( - - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT MAX ( - - 0 ) AS col2
----
0

query I rowsort
SELECT ALL 75 * - 45
----
-3375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT COUNT( * ) + + + 23 DIV + 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9095
SELECT COUNT ( * ) + + + 23 / + 66 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9096
SELECT ALL - COALESCE ( - COUNT( * ), + 52 - + + 77 * 77 ) AS col0, + MIN( CAST( + 68 AS SIGNED ) )
----
1
68

skipif mysql # not compatible
query II rowsort label-9096
SELECT ALL - COALESCE ( - COUNT ( * ), + 52 - + + 77 * 77 ) AS col0, + MIN ( CAST ( + 68 AS INTEGER ) )
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + 37 * - COUNT( * ) + + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9097
SELECT + 37 * - COUNT ( * ) + + COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT COUNT( * ) * 71 * + COUNT( 52 )
----
71

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT COUNT ( * ) * 71 * + COUNT ( 52 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT 57 DIV 88 + - - 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9099
SELECT 57 / 88 + - - 70 AS col2
----
70

query I rowsort
SELECT DISTINCT 4 - 57
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9101
SELECT 77 AS col0, COUNT( * ) + 35 - 56 AS col2
----
77
-20

skipif mysql # not compatible
query II rowsort label-9101
SELECT 77 AS col0, COUNT ( * ) + 35 - 56 AS col2
----
77
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT 85 / + CAST( NULL AS SIGNED ) + + - COUNT( * ) * 29 / + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT 85 / + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * 29 / + 82 AS col2
----
NULL

query I rowsort
SELECT 89 + - + 36 + - 59
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT CASE - ( - - 79 ) WHEN - COUNT( * ) * + 99 THEN + 82 ELSE NULL END / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT CASE - ( - - 79 ) WHEN - COUNT ( * ) * + 99 THEN + 82 ELSE NULL END / + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9105
SELECT + COUNT( * ) col2, 11 + - - 62 AS col2
----
1
73

skipif mysql # not compatible
query II rowsort label-9105
SELECT + COUNT ( * ) col2, 11 + - - 62 AS col2
----
1
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT ALL 85 DIV + + 21 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL 85 / + + 21 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT - COUNT( 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT - COUNT ( 65 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT ALL + - 37 * - COUNT( * ) * - COUNT( DISTINCT + 0 ) + - - 2 - - - 6 * + COUNT( * ) DIV + + 31 * - 91 DIV + 59 * - - 1 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + - 37 * - COUNT ( * ) * - COUNT ( DISTINCT + 0 ) + - - 2 - - - 6 * + COUNT ( * ) / + + 31 * - 91 / + 59 * - - 1 AS col1
----
-35

query I rowsort
SELECT - 52 * + 30 + - 60 AS col1
----
-1620

query I rowsort
SELECT + ( ( + - 54 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL - 19 + - NULLIF ( 52, - 28 - - ( - MIN( + NULLIF ( + 68, - ( + 54 ) * + ( - 10 ) * - 39 + - 74 + + 65 ) ) ) + + 68 + 84 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL - 19 + - NULLIF ( 52, - 28 - - ( - MIN ( + NULLIF ( + 68, - ( + 54 ) * + ( - 10 ) * - 39 + - 74 + + 65 ) ) ) + + 68 + 84 ) AS col0
----
-71

query I rowsort
SELECT - 14 * - 80 AS col1
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - + ( - MAX( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9113
SELECT - + ( - MAX ( - 74 ) )
----
-74

query I rowsort
SELECT ( + - 51 )
----
-51

query I rowsort
SELECT ALL + 27 + 36 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL + COUNT( + 75 )
----
1

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + COUNT ( + 75 )
----
1

query I rowsort
SELECT DISTINCT - 25 + + 73 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9118
SELECT ALL + - COUNT( + 96 ) + 88 AS col0, CASE - + CASE + + 24 WHEN + ( 22 ) THEN + 46 * 81 WHEN 93 + + 99 THEN NULL END WHEN + 23 THEN - CAST( NULL AS SIGNED ) END
----
87
NULL

skipif mysql # not compatible
query II rowsort label-9118
SELECT ALL + - COUNT ( + 96 ) + 88 AS col0, CASE - + CASE + + 24 WHEN + ( 22 ) THEN + 46 * 81 WHEN 93 + + 99 THEN NULL END WHEN + 23 THEN - CAST ( NULL AS INTEGER ) END
----
87
NULL

query I rowsort
SELECT CASE + 36 WHEN + 31 THEN AVG ( ALL 77 ) + + + 96 / + - 56 + + 37 END col0
----
NULL

query I rowsort
SELECT - - 70 * + 32 AS col0
----
2240

query I rowsort
SELECT - - 12 - - 79
----
91

query II rowsort
SELECT - 49 AS col2, 57 - - - 39 AS col0
----
-49
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9123
SELECT ALL CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL CAST ( + + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT - 0 + 85 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-9124
SELECT - 0 + 85 / 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + COUNT( * ) * + + 31
----
31

skipif mysql # not compatible
query I rowsort label-9125
SELECT + COUNT ( * ) * + + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL ( - - COUNT( * ) ) - - 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL ( - - COUNT ( * ) ) - - 23 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT DISTINCT + 43 * + 12 * - 47 * MIN( DISTINCT 26 ) * CAST( NULL AS SIGNED ) - - + 11 + + AVG ( DISTINCT 2 ) * + - COALESCE ( - + 4, - 79 * - 75 * + 48 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + 43 * + 12 * - 47 * MIN ( DISTINCT 26 ) * CAST ( NULL AS INTEGER ) - - + 11 + + AVG ( DISTINCT 2 ) * + - COALESCE ( - + 4, - 79 * - 75 * + 48 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9128
SELECT ALL COUNT( * ) col0, NULLIF ( - - COUNT( + NULLIF ( - 24, 25 ) ), + + NULLIF ( - 57, - 35 * + 96 - - - 87 * 13 ) + 58 ) - NULLIF ( - 76, SUM( ALL - - 93 ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9128
SELECT ALL COUNT ( * ) col0, NULLIF ( - - COUNT ( + NULLIF ( - 24, 25 ) ), + + NULLIF ( - 57, - 35 * + 96 - - - 87 * 13 ) + 58 ) - NULLIF ( - 76, SUM ( ALL - - 93 ) ) AS col1
----
1
NULL

query I rowsort
SELECT ALL 64 - + 51 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT - SUM( 55 ) * 55 * ( 2 ) AS col1
----
-6050

skipif mysql # not compatible
query I rowsort label-9130
SELECT - SUM ( 55 ) * 55 * ( 2 ) AS col1
----
-6050

query II rowsort
SELECT ALL 77, - 56 * - - 11 col2
----
77
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - MIN( DISTINCT + ( + 73 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9132
SELECT - MIN ( DISTINCT + ( + 73 ) ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL + CAST( NULL AS SIGNED ) - - 64 * - - 76 / - - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + CAST ( NULL AS INTEGER ) - - 64 * - - 76 / - - 24 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT DISTINCT 16 DIV - ( + - 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT 16 / - ( + - 81 ) AS col2
----
0

query I rowsort
SELECT - 34 * + 99 col2
----
-3366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT + CASE + CAST( - 32 AS SIGNED ) WHEN + - 68 THEN + + 25 WHEN + - 53 + 41 * - 71 * + 14 THEN NULL ELSE - 39 END
----
-39

skipif mysql # not compatible
query I rowsort label-9136
SELECT + CASE + CAST ( - 32 AS INTEGER ) WHEN + - 68 THEN + + 25 WHEN + - 53 + 41 * - 71 * + 14 THEN NULL ELSE - 39 END
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9137
SELECT CASE - 42 WHEN - COALESCE ( + 12, - COUNT( * ) ) * - + CAST( NULL AS SIGNED ) * + ( - COALESCE ( 25, + 24 ) ) THEN + - COUNT( * ) END AS col2, - CASE - 86 WHEN - 43 * - 31 / + 55 THEN + 80 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9137
SELECT CASE - 42 WHEN - COALESCE ( + 12, - COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) * + ( - COALESCE ( 25, + 24 ) ) THEN + - COUNT ( * ) END AS col2, - CASE - 86 WHEN - 43 * - 31 / + 55 THEN + 80 END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9138
SELECT DISTINCT + 96, + NULLIF ( - + COUNT( * ), COALESCE ( - 85, - + 54 ) + + 1 + + 44 ) DIV ( + - ( - 22 ) ) AS col2
----
96
0

skipif mysql # not compatible
query II rowsort label-9138
SELECT DISTINCT + 96, + NULLIF ( - + COUNT ( * ), COALESCE ( - 85, - + 54 ) + + 1 + + 44 ) / ( + - ( - 22 ) ) AS col2
----
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + MIN( DISTINCT - + 1 ) - - 80 + + - 53 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9139
SELECT + MIN ( DISTINCT - + 1 ) - - 80 + + - 53 AS col0
----
26

query II rowsort
SELECT ALL + 44 AS col0, 80 * ( 64 ) - 4 * + 68 col1
----
44
4848

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT + COALESCE ( 52, - + 47 DIV - - 26 )
----
52

skipif mysql # not compatible
query I rowsort label-9141
SELECT + COALESCE ( 52, - + 47 / - - 26 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9142
SELECT ALL + 15 AS col0, + CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-9142
SELECT ALL + 15 AS col0, + CAST ( NULL AS REAL ) + + COUNT ( * ) AS col0
----
15
NULL

query I rowsort
SELECT + + 3 * 55 col2
----
165

query II rowsort
SELECT + 2 AS col1, 54
----
2
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT - NULLIF ( 76, CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-9145
SELECT - NULLIF ( 76, CAST ( NULL AS INTEGER ) )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL 43 * + 57 - - CAST( NULL AS SIGNED ) + - 78 + + 99 * 87 + + 58 + + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL 43 * + 57 - - CAST ( NULL AS INTEGER ) + - 78 + + 99 * 87 + + 58 + + + 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9147
SELECT + COUNT( * ) * + + 96 + + 31 + - CAST( NULL AS SIGNED ) - + SUM( - 29 ) * + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT + COUNT ( * ) * + + 96 + + 31 + - CAST ( NULL AS INTEGER ) - + SUM ( - 29 ) * + 13 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT + COUNT( * ) + + - 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9148
SELECT + COUNT ( * ) + + - 2 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT ALL - 74 * 69 DIV 26 * 24 + + 77 AS col1
----
-4627

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - 74 * 69 / 26 * 24 + + 77 AS col1
----
-4627

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL + COALESCE ( - ( 91 ), + + 55 + - MAX( - + 25 ) ) * + 23 + - 75 * + + 9 AS col1
----
-2768

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + COALESCE ( - ( 91 ), + + 55 + - MAX ( - + 25 ) ) * + 23 + - 75 * + + 9 AS col1
----
-2768

query I rowsort
SELECT + 25 + ( 57 ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT ALL + - COUNT( * ) * 47 + + + COUNT( * ) * - 83 + CAST( + 18 AS SIGNED ) AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + - COUNT ( * ) * 47 + + + COUNT ( * ) * - 83 + CAST ( + 18 AS INTEGER ) AS col2
----
-112

query I rowsort
SELECT + - NULLIF ( CASE - 85 WHEN + NULLIF ( + 5, + - 8 ) + - 41 * - + 16 THEN NULL WHEN 0 + 65 THEN NULL ELSE - 91 END, - - 19 ) * 23 * + - 34 * - 79 AS col0
----
5621798

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL 31 * 95 * - COUNT( * ) / - - 51 * + CASE MIN( ALL + - 54 ) WHEN + + 87 / - 11 * + 80 + + 70 THEN - + 23 WHEN - SUM( - ( 36 ) ) + + - ( - 99 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 31 * 95 * - COUNT ( * ) / - - 51 * + CASE MIN ( ALL + - 54 ) WHEN + + 87 / - 11 * + 80 + + 70 THEN - + 23 WHEN - SUM ( - ( 36 ) ) + + - ( - 99 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9155
SELECT ALL + COUNT( * ) * - 34 DIV - + ( - + 99 ) + + ( - - 38 ) col0, + COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-9155
SELECT ALL + COUNT ( * ) * - 34 / - + ( - + 99 ) + + ( - - 38 ) col0, + COUNT ( * )
----
38
1

query II rowsort
SELECT - 77 AS col1, + 84 * - 76
----
-77
-6384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL + CAST( NULL AS SIGNED ) - - COUNT( * ) + 76 * - + 47 * + ( 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + 76 * - + 47 * + ( 71 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 31 ) AS col2
----
31

query I rowsort
SELECT ALL ( + 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT DISTINCT CAST( + - 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT CAST ( + - 0 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - COUNT( * ) + - - 42 + + - 45 * - + 34 AS col0
----
1571

skipif mysql # not compatible
query I rowsort label-9161
SELECT - COUNT ( * ) + - - 42 + + - 45 * - + 34 AS col0
----
1571

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL CASE - 63 WHEN - - 50 THEN - + 4 / - COUNT( * ) / 62 * + - 72 + - 48 WHEN + + COALESCE ( + 52, - 1, NULLIF ( + + AVG ( + + ( + 93 ) ), + 66 * + 79 * + + ( + + 84 ) ) ) * NULLIF ( + ( - - 50 ), - 6 ) * + COUNT( * ) + + 0 THEN NULL WHEN - - AVG ( - - 19 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL CASE - 63 WHEN - - 50 THEN - + 4 / - COUNT ( * ) / 62 * + - 72 + - 48 WHEN + + COALESCE ( + 52, - 1, NULLIF ( + + AVG ( + + ( + 93 ) ), + 66 * + 79 * + + ( + + 84 ) ) ) * NULLIF ( + ( - - 50 ), - 6 ) * + COUNT ( * ) + + 0 THEN NULL WHEN - - AVG ( - - 19 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( - 11 ) col0
----
-11

query I rowsort
SELECT ALL ( 42 ) col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - 52 + - ( - ( + NULLIF ( COUNT( * ), + 80 ) ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9165
SELECT - 52 + - ( - ( + NULLIF ( COUNT ( * ), + 80 ) ) ) AS col1
----
-51

query I rowsort
SELECT - ( 88 ) * 23 + - 24 col1
----
-2048

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9167
SELECT - COUNT( * ) + - NULLIF ( 93, - 63 * - 43 * + 91 + 69 + + - CAST( NULL AS DECIMAL ) + + 80 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9167
SELECT - COUNT ( * ) + - NULLIF ( 93, - 63 * - 43 * + 91 + 69 + + - CAST ( NULL AS REAL ) + + 80 ) AS col0
----
-94

query I rowsort
SELECT DISTINCT + 85 * - - 16
----
1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL CAST( - 97 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL CAST ( - 97 AS INTEGER ) AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT - ( + 87 ) DIV + - 4 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9170
SELECT - ( + 87 ) / + - 4 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT - MIN( DISTINCT 35 ) + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) + + 9 * CAST( NULL AS SIGNED ) * + + 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT - MIN ( DISTINCT 35 ) + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + + 9 * CAST ( NULL AS INTEGER ) * + + 29 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT - ( 93 ), + COALESCE ( - 3, - + 36, + COUNT( ALL + ( - 58 ) ) ) AS col1
----
-93
-3

skipif mysql # not compatible
query II rowsort label-9172
SELECT - ( 93 ), + COALESCE ( - 3, - + 36, + COUNT ( ALL + ( - 58 ) ) ) AS col1
----
-93
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT + - ( - + 47 ) DIV - 8 + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9173
SELECT + - ( - + 47 ) / - 8 + + COUNT ( * )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT - 73 / + CASE - + 52 WHEN + - 19 - + + 39 THEN NULL WHEN - 26 + - - 37 / - CASE - 29 WHEN - 41 THEN + AVG ( DISTINCT - 22 ) END * 54 * - 64 THEN NULL WHEN 88 THEN - CAST( NULL AS SIGNED ) ELSE NULL END + ( + 83 ) + - CAST( NULL AS SIGNED ) * + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT - 73 / + CASE - + 52 WHEN + - 19 - + + 39 THEN NULL WHEN - 26 + - - 37 / - CASE - 29 WHEN - 41 THEN + AVG ( DISTINCT - 22 ) END * 54 * - 64 THEN NULL WHEN 88 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END + ( + 83 ) + - CAST ( NULL AS INTEGER ) * + + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9175
SELECT + 56 + + 87 DIV - - COUNT( * ) AS col0, 22 col0
----
143
22

skipif mysql # not compatible
query II rowsort label-9175
SELECT + 56 + + 87 / - - COUNT ( * ) AS col0, 22 col0
----
143
22

query I rowsort
SELECT DISTINCT - 69 * - + 20 * 46
----
63480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9177
SELECT DISTINCT + COUNT( * ) DIV 36 * 98 + - + COUNT( * ) * - CAST( + MAX( - 68 ) AS SIGNED ), 2 * - COUNT( * ) + - - 12 AS col0
----
-68
10

skipif mysql # not compatible
query II rowsort label-9177
SELECT DISTINCT + COUNT ( * ) / 36 * 98 + - + COUNT ( * ) * - CAST ( + MAX ( - 68 ) AS INTEGER ), 2 * - COUNT ( * ) + - - 12 AS col0
----
-68
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9178
SELECT ( + + COUNT( * ) ) AS col0, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9178
SELECT ( + + COUNT ( * ) ) AS col0, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT + - COUNT( * ) * - 41 - + + 11 + - + 26 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + - COUNT ( * ) * - 41 - + + 11 + - + 26 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9180
SELECT - COUNT( * ) * 41 + + - 30 + - SUM( ALL - 4 ) + - 34 - - + CASE + 66 WHEN + - 84 * - - 61 THEN + + 7 END * - 11 AS col2, - ( 45 ) * SUM( + + 59 ) + 60
----
NULL
-2595

skipif mysql # not compatible
query II rowsort label-9180
SELECT - COUNT ( * ) * 41 + + - 30 + - SUM ( ALL - 4 ) + - 34 - - + CASE + 66 WHEN + - 84 * - - 61 THEN + + 7 END * - 11 AS col2, - ( 45 ) * SUM ( + + 59 ) + 60
----
NULL
-2595

query I rowsort
SELECT + ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - SUM( ( - + 63 ) ) * 13
----
819

skipif mysql # not compatible
query I rowsort label-9182
SELECT - SUM ( ( - + 63 ) ) * 13
----
819

query I rowsort
SELECT - 59 * - - 38 AS col2
----
-2242

query I rowsort
SELECT ALL + 9 - 27 col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL - CASE + 88 WHEN + + 42 + - 74 + - 9 * 12 THEN + 11 WHEN + 19 THEN NULL WHEN + 66 / - NULLIF ( + - COUNT( * ), + 39 + 39 + - COUNT( * ) * - - 1 * ( + - COUNT( * ) ) / 16 ) THEN - COUNT( DISTINCT - 74 ) END * + + 24 * - + COUNT( * ) * - ( + - 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - CASE + 88 WHEN + + 42 + - 74 + - 9 * 12 THEN + 11 WHEN + 19 THEN NULL WHEN + 66 / - NULLIF ( + - COUNT ( * ), + 39 + 39 + - COUNT ( * ) * - - 1 * ( + - COUNT ( * ) ) / 16 ) THEN - COUNT ( DISTINCT - 74 ) END * + + 24 * - + COUNT ( * ) * - ( + - 53 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 18 - CASE + - 49 WHEN - 47 THEN - ( 96 ) END
----
NULL

query I rowsort
SELECT 54 * - 76
----
-4104

onlyif mysql # aggregate syntax: 
query II rowsort label-9188
SELECT ALL 75 AS col1, 14 * 77 * - COUNT( ALL 26 ) AS col0
----
75
-1078

skipif mysql # not compatible
query II rowsort label-9188
SELECT ALL 75 AS col1, 14 * 77 * - COUNT ( ALL 26 ) AS col0
----
75
-1078

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT 74 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT 74 / + 78
----
0

query I rowsort
SELECT 80 + + - 18
----
62

query I rowsort
SELECT 83 - - 73 AS col2
----
156

query I rowsort
SELECT 89 + - - 70
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - COUNT( * ) + - COUNT( * ) * + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT ALL + COUNT( - 75 ) + + + 91, 13 AS col0
----
92
13

skipif mysql # not compatible
query II rowsort label-9194
SELECT ALL + COUNT ( - 75 ) + + + 91, 13 AS col0
----
92
13

query I rowsort
SELECT ALL - 63 + + + 43 + ( 74 ) - + - 30 - 44 * - 58 + + 69 + 47 * + + 62 AS col0
----
5619

query I rowsort
SELECT 69 - 18
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + COUNT( ALL + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-9197
SELECT + COUNT ( ALL + 57 )
----
1

query I rowsort
SELECT ALL + ( - + 82 ) + 96
----
14

query I rowsort
SELECT ALL - 31 * - - 97 * + 48 * + 65
----
-9381840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9200
SELECT + COUNT( * ) * + 56 DIV 65 AS col1, 31 - - + 76
----
0
107

skipif mysql # not compatible
query II rowsort label-9200
SELECT + COUNT ( * ) * + 56 / 65 AS col1, 31 - - + 76
----
0
107

query I rowsort
SELECT + - ( 54 ) col2
----
-54

query I rowsort
SELECT ALL - ( + 98 ) AS col1
----
-98

query I rowsort
SELECT 83 + + 75 * + 50 col2
----
3833

onlyif mysql # DIV for integer division: 
query I rowsort label-9204
SELECT ALL - + 84 DIV 71
----
-1

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - + 84 / 71
----
-1

query I rowsort
SELECT 99 * + 82 + 78 + - - 49 + 59 col1
----
8304

query II rowsort
SELECT 73 - - 39 * + 68 AS col0, 36
----
2725
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT - + 57 * + CAST( - ( - 0 ) AS SIGNED ) + ( + - 71 ) + - SUM( DISTINCT - 5 )
----
-66

skipif mysql # not compatible
query I rowsort label-9207
SELECT - + 57 * + CAST ( - ( - 0 ) AS INTEGER ) + ( + - 71 ) + - SUM ( DISTINCT - 5 )
----
-66

query I rowsort
SELECT ALL - ( 80 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT + CAST( + CASE ( 3 ) WHEN - 94 + - 97 THEN - COUNT( * ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT + CAST ( + CASE ( 3 ) WHEN - 94 + - 97 THEN - COUNT ( * ) END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 22 + 86 col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9211
SELECT ALL - COALESCE ( + 75, CAST( - - COUNT( * ) AS SIGNED ) - CASE + SUM( ALL - ( 4 ) ) WHEN - 6 THEN ( + 21 ) DIV - NULLIF ( + + 18, + - 18 ) DIV + COUNT( * ) END ) DIV - - COALESCE ( + 20, - + 8 + - 48, + + 54 DIV - 89 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL - COALESCE ( + 75, CAST ( - - COUNT ( * ) AS INTEGER ) - CASE + SUM ( ALL - ( 4 ) ) WHEN - 6 THEN ( + 21 ) / - NULLIF ( + + 18, + - 18 ) / + COUNT ( * ) END ) / - - COALESCE ( + 20, - + 8 + - 48, + + 54 / - 89 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT - 80 * + COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT - 80 * + COUNT ( * ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL + COUNT( - + 72 ) * - - CAST( - + 24 AS SIGNED ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + COUNT ( - + 72 ) * - - CAST ( - + 24 AS INTEGER ) AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT - 9 * - 12 + + 88 + - - 52 DIV - 65 * 52 AS col2
----
196

skipif mysql # not compatible
query I rowsort label-9214
SELECT - 9 * - 12 + + 88 + - - 52 / - 65 * 52 AS col2
----
196

query I rowsort
SELECT DISTINCT 12 * 54 AS col1
----
648

query I rowsort
SELECT 35 + - + 68 AS col1
----
-33

query I rowsort
SELECT 83 + - - 72 AS col1
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9218
SELECT ALL CAST( - AVG ( DISTINCT 55 ) AS SIGNED ) + COUNT( * ) DIV - ( + COUNT( * ) ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL CAST ( - AVG ( DISTINCT 55 ) AS INTEGER ) + COUNT ( * ) / - ( + COUNT ( * ) ) col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT DISTINCT 34 DIV COUNT( * ) col0
----
34

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT 34 / COUNT ( * ) col0
----
34

query I rowsort
SELECT DISTINCT 4 + 29
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9221
SELECT DISTINCT - COALESCE ( - - 80, - COUNT( * ) * - 72 ) + ( - 8 ) - 97 AS col2, 62 + - + 1 + - - COUNT( * ) DIV - 47
----
-185
61

skipif mysql # not compatible
query II rowsort label-9221
SELECT DISTINCT - COALESCE ( - - 80, - COUNT ( * ) * - 72 ) + ( - 8 ) - 97 AS col2, 62 + - + 1 + - - COUNT ( * ) / - 47
----
-185
61

query I rowsort
SELECT ALL + 68 * 90
----
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT ALL 57 + 66 - - 34 * + 33 * - 68 * ( - 21 ) DIV + 6 - 15 AS col1
----
267144

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL 57 + 66 - - 34 * + 33 * - 68 * ( - 21 ) / + 6 - 15 AS col1
----
267144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9224
SELECT ( - - 44 ) + + - 49 DIV - COUNT( * ), - 84 - 38 - 86 DIV + - ( + + 77 ) * 26 + - - CAST( NULL AS SIGNED ) * + ( - CASE + CAST( NULL AS SIGNED ) WHEN + 21 * 42 + 8 * - + 1 THEN - + 4 * 33 WHEN - 66 THEN + - ( + 71 ) * - 82 * + 61 * + 51 + + NULLIF ( MAX( ALL + - 54 ), - 73 ) END ) + + 25 * + - COUNT( * ) + 33 - MAX( ALL - + 3 ) - CAST( NULL AS SIGNED ) * - - 62 + MAX( DISTINCT 64 ) * 97 AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-9224
SELECT ( - - 44 ) + + - 49 / - COUNT ( * ), - 84 - 38 - 86 / + - ( + + 77 ) * 26 + - - CAST ( NULL AS INTEGER ) * + ( - CASE + CAST ( NULL AS INTEGER ) WHEN + 21 * 42 + 8 * - + 1 THEN - + 4 * 33 WHEN - 66 THEN + - ( + 71 ) * - 82 * + 61 * + 51 + + NULLIF ( MAX ( ALL + - 54 ), - 73 ) END ) + + 25 * + - COUNT ( * ) + 33 - MAX ( ALL - + 3 ) - CAST ( NULL AS INTEGER ) * - - 62 + MAX ( DISTINCT 64 ) * 97 AS col0
----
93
NULL

query I rowsort
SELECT DISTINCT 50 * 75 * - 11
----
-41250

query I rowsort
SELECT 14 - + - 39 col2
----
53

query II rowsort
SELECT ALL 25 + - 91 AS col0, + ( - 36 )
----
-66
-36

query I rowsort
SELECT DISTINCT - 91 + + - 2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9229
SELECT - ( + COUNT( * ) ) + + ( - 35 ) DIV + + ( - + 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9229
SELECT - ( + COUNT ( * ) ) + + ( - 35 ) / + + ( - + 47 ) AS col2
----
-1

query I rowsort
SELECT ALL - - 48 * - - 39
----
1872

query I rowsort
SELECT + 40 * + 9 + 78 AS col2
----
438

query I rowsort
SELECT + - 3 * 79 * + 10
----
-2370

query I rowsort
SELECT - - 97 * + 66 + - 57 * - 81 + - 43
----
10976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT ALL + + CAST( 37 AS SIGNED ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + + CAST ( 37 AS INTEGER ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9235
SELECT - - COUNT( * ) + - 14 + + 74 - - + 47 * 25 * 91 / - + 3 * CAST( NULL AS SIGNED ) / COALESCE ( - 57, + 56 * SUM( ALL 68 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT - - COUNT ( * ) + - 14 + + 74 - - + 47 * 25 * 91 / - + 3 * CAST ( NULL AS INTEGER ) / COALESCE ( - 57, + 56 * SUM ( ALL 68 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9236
SELECT - MAX( - CAST( - 72 AS SIGNED ) ) * + ( + + 57 ) - + 53 - + + 90 * + ( NULLIF ( - 76, - + ( - ( + - 56 ) ) + + 82 ) ) AS col0
----
2683

skipif mysql # not compatible
query I rowsort label-9236
SELECT - MAX ( - CAST ( - 72 AS INTEGER ) ) * + ( + + 57 ) - + 53 - + + 90 * + ( NULLIF ( - 76, - + ( - ( + - 56 ) ) + + 82 ) ) AS col0
----
2683

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT + COUNT( * ) * - + 65 * - - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + COUNT ( * ) * - + 65 * - - COUNT ( * ) AS col1
----
-65

query II rowsort
SELECT DISTINCT + NULLIF ( - NULLIF ( 88, - - 61 ), 1 ), 37 AS col1
----
-88
37

query I rowsort
SELECT DISTINCT + + 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL + CASE - + 15 WHEN - ( - 55 ) THEN NULL WHEN + 55 THEN - + COUNT( * ) * - 1 + 34 ELSE COALESCE ( + 10, COUNT( * ) ) END AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL + CASE - + 15 WHEN - ( - 55 ) THEN NULL WHEN + 55 THEN - + COUNT ( * ) * - 1 + 34 ELSE COALESCE ( + 10, COUNT ( * ) ) END AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - 67 * - + 56 * 48 * - 57 * + ( - COUNT( * ) ) - - + 3
----
10265475

skipif mysql # not compatible
query I rowsort label-9241
SELECT - 67 * - + 56 * 48 * - 57 * + ( - COUNT ( * ) ) - - + 3
----
10265475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT - COUNT( * ) DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9242
SELECT - COUNT ( * ) / + 80 AS col0
----
0

query I rowsort
SELECT - 29 * - 23 * 27 AS col0
----
18009

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT + ( + 24 ) DIV - - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9244
SELECT + ( + 24 ) / - - 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT + COUNT( * ) * - 81 - - NULLIF ( + COUNT( * ), - 62 ) + + 85 col0
----
5

skipif mysql # not compatible
query I rowsort label-9245
SELECT + COUNT ( * ) * - 81 - - NULLIF ( + COUNT ( * ), - 62 ) + + 85 col0
----
5

query I rowsort
SELECT DISTINCT - 81 + 32 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT ALL 37 AS col1, 87 + - SUM( DISTINCT + 98 ) col1
----
37
-11

skipif mysql # not compatible
query II rowsort label-9247
SELECT ALL 37 AS col1, 87 + - SUM ( DISTINCT + 98 ) col1
----
37
-11

query I rowsort
SELECT ALL + 9 + - - 38 + - 54 * 84
----
-4489

query I rowsort
SELECT + 80 - + 92
----
-12

query I rowsort
SELECT DISTINCT ( 96 ) col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT + - 93 / + - CAST( + CASE - - ( + 2 ) WHEN + 94 * + - 73 / + + ( + + ( 37 ) ) THEN - 26 * + 49 + 12 / + 80 * + + 11 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT + - 93 / + - CAST ( + CASE - - ( + 2 ) WHEN + 94 * + - 73 / + + ( + + ( 37 ) ) THEN - 26 * + 49 + 12 / + 80 * + + 11 END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 82 * + 41
----
3362

query I rowsort
SELECT ALL + 48 * + 15 AS col1
----
720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9254
SELECT ALL + COALESCE ( + - 67, - - ( 23 ) DIV 53 + + + 21, 83 - CAST( - ( - 82 ) AS SIGNED ) - + 2 ) * - ( 11 ) * - 13 AS col0
----
-9581

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + COALESCE ( + - 67, - - ( 23 ) / 53 + + + 21, 83 - CAST ( - ( - 82 ) AS INTEGER ) - + 2 ) * - ( 11 ) * - 13 AS col0
----
-9581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT ALL 81 * + 67 + + SUM( + CAST( + 34 AS SIGNED ) ) * + 91 AS col2
----
8521

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL 81 * + 67 + + SUM ( + CAST ( + 34 AS INTEGER ) ) * + 91 AS col2
----
8521

query I rowsort
SELECT ALL + ( 26 ) * - 18
----
-468

query I rowsort
SELECT + 56 * - - 63 AS col1
----
3528

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT + 78 AS col0, - ( SUM( ALL 62 ) ) * - COUNT( * ) + + 14 AS col0
----
78
76

skipif mysql # not compatible
query II rowsort label-9258
SELECT + 78 AS col0, - ( SUM ( ALL 62 ) ) * - COUNT ( * ) + + 14 AS col0
----
78
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ( NULLIF ( + COUNT( * ), + 12 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9259
SELECT ( NULLIF ( + COUNT ( * ), + 12 ) ) AS col2
----
1

query I rowsort
SELECT ALL + 86 * - 60
----
-5160

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL + MAX( + - COALESCE ( - + 16, 69 + + 35, + + 17 / + 53 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL + MAX ( + - COALESCE ( - + 16, 69 + + 35, + + 17 / + 53 ) ) AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9262
SELECT - 8 * + + 40 - - 4 + + 37 + - - 38 / + + COALESCE ( 61, + 63, - ( - ( - COUNT( * ) ) ) - - 1 + + 66 ) * CASE - + 68 WHEN + + 74 THEN - 87 * 80 + 64 - - + 89 WHEN - COUNT( * ) / AVG ( - + 99 ) + + + CAST( + - 29 AS DECIMAL ) THEN NULL END * - 3 * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT - 8 * + + 40 - - 4 + + 37 + - - 38 / + + COALESCE ( 61, + 63, - ( - ( - COUNT ( * ) ) ) - - 1 + + 66 ) * CASE - + 68 WHEN + + 74 THEN - 87 * 80 + 64 - - + 89 WHEN - COUNT ( * ) / AVG ( - + 99 ) + + + CAST ( + - 29 AS REAL ) THEN NULL END * - 3 * + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT ALL + + NULLIF ( + 62, - + 17 + + COUNT( * ) + 1 * + ( COUNT( * ) ) * - - 56 / ( COUNT( * ) ) ) AS col2, - 70 col2
----
62
-70

skipif mysql # not compatible
query II rowsort label-9263
SELECT ALL + + NULLIF ( + 62, - + 17 + + COUNT ( * ) + 1 * + ( COUNT ( * ) ) * - - 56 / ( COUNT ( * ) ) ) AS col2, - 70 col2
----
62
-70

query I rowsort
SELECT - 14 * - 38 - + 76
----
456

query II rowsort
SELECT - NULLIF ( + + 88, 4 ) AS col0, 68
----
-88
68

query I rowsort
SELECT + - 56 + + - 23 AS col2
----
-79

query I rowsort
SELECT - + 92 * - 60 * + - 93 * + - 20
----
10267200

query I rowsort
SELECT - 0 * + + 82 + + 51 col2
----
51

query II rowsort
SELECT - NULLIF ( 88, + 49 ) - 52 AS col2, 66 AS col2
----
-140
66

query I rowsort
SELECT ALL + 66 * 30 AS col2
----
1980

query I rowsort
SELECT + 88 + ( - - 44 ) AS col0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT CAST( NULL AS SIGNED ) * + - 9 - - + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT CAST ( NULL AS INTEGER ) * + - 9 - - + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL COUNT( * ) * - - CASE NULLIF ( + + 56, + 14 ) WHEN + 99 + ( - 20 ) * - 16 + - 8 THEN + ( + COUNT( * ) ) WHEN - 22 / - 22 THEN NULL ELSE NULL END * 22 + - 11 + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL COUNT ( * ) * - - CASE NULLIF ( + + 56, + 14 ) WHEN + 99 + ( - 20 ) * - 16 + - 8 THEN + ( + COUNT ( * ) ) WHEN - 22 / - 22 THEN NULL ELSE NULL END * 22 + - 11 + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL COUNT( * ) * - 83 + - + 73 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL COUNT ( * ) * - 83 + - + 73 AS col2
----
-156

query I rowsort
SELECT - 58 + - 84 col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL + CAST( + COUNT( DISTINCT + 5 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL + CAST ( + COUNT ( DISTINCT + 5 ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT - COUNT( * ) + - MAX( - 85 ) + 51
----
135

skipif mysql # not compatible
query I rowsort label-9277
SELECT - COUNT ( * ) + - MAX ( - 85 ) + 51
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL 81 * + + 55 * 55 + + + CASE + + COALESCE ( COUNT( * ), - 88 ) WHEN COUNT( * ) THEN + 97 WHEN - - 91 THEN - 23 + - - 55 ELSE NULL END col0
----
245122

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL 81 * + + 55 * 55 + + + CASE + + COALESCE ( COUNT ( * ), - 88 ) WHEN COUNT ( * ) THEN + 97 WHEN - - 91 THEN - 23 + - - 55 ELSE NULL END col0
----
245122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9279
SELECT NULLIF ( 90, + + 62 / + + 99 + 37 + + NULLIF ( - 45, + 52 / CAST( + - 2 AS DECIMAL ) ) / + ( + 32 ) + - 88 + 13 / + MIN( DISTINCT + 21 ) + + 30 ) col0
----
90

skipif mysql # not compatible
query I rowsort label-9279
SELECT NULLIF ( 90, + + 62 / + + 99 + 37 + + NULLIF ( - 45, + 52 / CAST ( + - 2 AS REAL ) ) / + ( + 32 ) + - 88 + 13 / + MIN ( DISTINCT + 21 ) + + 30 ) col0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9280
SELECT - COUNT( * ) AS col0, 70 AS col1
----
-1
70

skipif mysql # not compatible
query II rowsort label-9280
SELECT - COUNT ( * ) AS col0, 70 AS col1
----
-1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT - ( + 6 ) * - + 77 * - COUNT( * ) + + 17 * - COUNT( ALL - 42 ) * + - 68 - - ( + 52 ) col0
----
746

skipif mysql # not compatible
query I rowsort label-9281
SELECT - ( + 6 ) * - + 77 * - COUNT ( * ) + + 17 * - COUNT ( ALL - 42 ) * + - 68 - - ( + 52 ) col0
----
746

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - 4 * + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9282
SELECT - 4 * + COUNT ( * )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT ALL + 4 DIV + 55 * + - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL + 4 / + 55 * + - 68 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9284
SELECT - 93 AS col1, 26 * + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-93
-26

skipif mysql # not compatible
query II rowsort label-9284
SELECT - 93 AS col1, 26 * + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-93
-26

query I rowsort
SELECT + 80 + - 95 col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9286
SELECT - 68 * 79 AS col1, 21 + - COUNT( * )
----
-5372
20

skipif mysql # not compatible
query II rowsort label-9286
SELECT - 68 * 79 AS col1, 21 + - COUNT ( * )
----
-5372
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9287
SELECT ALL - 5 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - 5 / + + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - 85 + COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-9288
SELECT - 85 + COUNT ( * ) AS col0
----
-84

query I rowsort
SELECT - 44 * + - NULLIF ( + - 66, + - 41 )
----
-2904

query I rowsort
SELECT ALL - 52 * + - 12
----
624

onlyif mysql # aggregate syntax: 
query II rowsort label-9291
SELECT + 60 + CASE - 96 WHEN 29 THEN - - 90 ELSE - 58 * 95 + + 57 + + 5 END + - ( - + COUNT( * ) ), 92 AS col2
----
-5387
92

skipif mysql # not compatible
query II rowsort label-9291
SELECT + 60 + CASE - 96 WHEN 29 THEN - - 90 ELSE - 58 * 95 + + 57 + + 5 END + - ( - + COUNT ( * ) ), 92 AS col2
----
-5387
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL + - 40 * - - ( + MAX( 44 ) )
----
-1760

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + - 40 * - - ( + MAX ( 44 ) )
----
-1760

query I rowsort
SELECT 89 + - 93 col2
----
-4

query I rowsort
SELECT + 17 * 87 + + 2
----
1481

query I rowsort
SELECT 48 * + + 62 * + 33 AS col0
----
98208

query I rowsort
SELECT - 26 + 85 * - 30 AS col1
----
-2576

query II rowsort
SELECT 82 + + + COALESCE ( - 64, 33 ) AS col0, + 54 AS col0
----
18
54

query I rowsort
SELECT - 9 + 83
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT 58 + - COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9299
SELECT 58 + - COUNT ( * ) AS col1
----
57

query I rowsort
SELECT NULLIF ( + 4, + + 69 ) AS col0
----
4

query I rowsort
SELECT + 76 + 2
----
78

query I rowsort
SELECT ALL + 76 + - 69 * 85
----
-5789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT - + ( - 67 ) * 22 + MIN( ALL CAST( NULL AS SIGNED ) ) - - - 41 * 42 / - - COUNT( * ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT - + ( - 67 ) * 22 + MIN ( ALL CAST ( NULL AS INTEGER ) ) - - - 41 * 42 / - - COUNT ( * ) / - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9304
SELECT + 80 AS col2, 4 + + ( + - 50 ) - + 70 + + - CASE CAST( + 37 AS SIGNED ) WHEN 97 THEN SUM( DISTINCT - 78 ) END
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9304
SELECT + 80 AS col2, 4 + + ( + - 50 ) - + 70 + + - CASE CAST ( + 37 AS INTEGER ) WHEN 97 THEN SUM ( DISTINCT - 78 ) END
----
80
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9305
SELECT - 17 DIV - 64, - 35 col2
----
0
-35

skipif mysql # not compatible
query II rowsort label-9305
SELECT - 17 / - 64, - 35 col2
----
0
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9306
SELECT 4 DIV - 31 + SUM( - - 67 ) + - MIN( + 39 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9306
SELECT 4 / - 31 + SUM ( - - 67 ) + - MIN ( + 39 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL 0 + - MIN( - + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL 0 + - MIN ( - + 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-9308
SELECT + - 76 AS col1, 61 DIV - - NULLIF ( SUM( 76 ), + 44 * + + CAST( - + COUNT( * ) AS DECIMAL ) + - + 34 ), + - COUNT( * ) AS col0
----
-76
0
-1

skipif mysql # not compatible
query III rowsort label-9308
SELECT + - 76 AS col1, 61 / - - NULLIF ( SUM ( 76 ), + 44 * + + CAST ( - + COUNT ( * ) AS REAL ) + - + 34 ), + - COUNT ( * ) AS col0
----
-76
0
-1

query I rowsort
SELECT NULLIF ( 32, 28 ) + - 63 AS col0
----
-31

query I rowsort
SELECT ALL 76 + - - 16 AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT 64 * + + ( + + 3 ) * - 50 * CAST( NULL AS SIGNED ) / 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT 64 * + + ( + + 3 ) * - 50 * CAST ( NULL AS INTEGER ) / 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL 88 * 10 * - COUNT( * ) AS col0
----
-880

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL 88 * 10 * - COUNT ( * ) AS col0
----
-880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT ALL 46 + + 86 * + 62 * 37 - + + COUNT( * ) DIV + 93 * 57 AS col2
----
197330

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL 46 + + 86 * + 62 * 37 - + + COUNT ( * ) / + 93 * 57 AS col2
----
197330

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT 73 - 45 * + - SUM( - 52 ) AS col1
----
-2267

skipif mysql # not compatible
query I rowsort label-9314
SELECT 73 - 45 * + - SUM ( - 52 ) AS col1
----
-2267

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT + COUNT( * ) * MAX( ALL + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT + COUNT ( * ) * MAX ( ALL + - 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT DISTINCT - 64 - ( + 68 ) + CAST( 79 AS SIGNED ) * 38
----
2870

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT - 64 - ( + 68 ) + CAST ( 79 AS INTEGER ) * 38
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL - COUNT( * ) - COUNT( * ) + - + 11 * + + 33
----
-365

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - COUNT ( * ) - COUNT ( * ) + - + 11 * + + 33
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT + 91 * + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT + 91 * + COUNT ( * )
----
91

query I rowsort
SELECT 4 + - 12 + + ( + + 63 ) AS col1
----
55

query I rowsort
SELECT 8 - + 3 + + 28 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL - COUNT( * ) * 17
----
-17

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - COUNT ( * ) * 17
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-9322
SELECT 73 DIV + 85 AS col1, ( + 19 ) DIV - - 31
----
0
0

skipif mysql # not compatible
query II rowsort label-9322
SELECT 73 / + 85 AS col1, ( + 19 ) / - - 31
----
0
0

query I rowsort
SELECT 17 * - 7 * - 98
----
11662

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT 63 * + ( - COUNT( * ) ) * - 96 AS col0
----
6048

skipif mysql # not compatible
query I rowsort label-9324
SELECT 63 * + ( - COUNT ( * ) ) * - 96 AS col0
----
6048

query I rowsort
SELECT - 98 - + + 10 * 62 - + 34
----
-752

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT 96 DIV 6 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9326
SELECT 96 / 6 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9327
SELECT - - ( - - 61 ) AS col2, - COUNT( * ) * + 76
----
61
-76

skipif mysql # not compatible
query II rowsort label-9327
SELECT - - ( - - 61 ) AS col2, - COUNT ( * ) * + 76
----
61
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL - CAST( - 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - CAST ( - 69 AS INTEGER )
----
69

query I rowsort
SELECT DISTINCT - 27 + + 31
----
4

onlyif mysql # aggregate syntax: 
query III rowsort label-9330
SELECT ALL COUNT( * ) + - 68 AS col2, 45 AS col2, - - 89
----
-67
45
89

skipif mysql # not compatible
query III rowsort label-9330
SELECT ALL COUNT ( * ) + - 68 AS col2, 45 AS col2, - - 89
----
-67
45
89

query II rowsort
SELECT 65 * - + 12 AS col1, 92
----
-780
92

query I rowsort
SELECT 45 + + 71 + COALESCE ( - 38, 68 ) + - + 49 + + 12 + + 47 + - + 2 * + 11 AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9333
SELECT + COALESCE ( - COUNT( * ), + 54 + + AVG ( CAST( - 97 AS SIGNED ) ) DIV - 88 ) * 20 * + 13 AS col1
----
-260

skipif mysql # not compatible
query I rowsort label-9333
SELECT + COALESCE ( - COUNT ( * ), + 54 + + AVG ( CAST ( - 97 AS INTEGER ) ) / - 88 ) * 20 * + 13 AS col1
----
-260

query II rowsort
SELECT DISTINCT - - 28 * + + 76 AS col2, + 63 AS col1
----
2128
63

query I rowsort
SELECT 64 - 62 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9336
SELECT ALL - 2, - CAST( 38 AS SIGNED ) AS col2
----
-2
-38

skipif mysql # not compatible
query II rowsort label-9336
SELECT ALL - 2, - CAST ( 38 AS INTEGER ) AS col2
----
-2
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT DISTINCT 54 * + COUNT( * ) + - 90, ( - MIN( - + 68 ) ) col1
----
-36
68

skipif mysql # not compatible
query II rowsort label-9337
SELECT DISTINCT 54 * + COUNT ( * ) + - 90, ( - MIN ( - + 68 ) ) col1
----
-36
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9338
SELECT + 17 DIV NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), + 8 * + ( 84 ) + + 97 * CAST( NULL AS SIGNED ) ) + - 40 * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-9338
SELECT + 17 / NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), + 8 * + ( 84 ) + + 97 * CAST ( NULL AS INTEGER ) ) + - 40 * COUNT ( * )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT 77 * + 86 + + 55 DIV + - 48
----
6621

skipif mysql # not compatible
query I rowsort label-9339
SELECT 77 * + 86 + + 55 / + - 48
----
6621

query I rowsort
SELECT 99 * 38
----
3762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT ALL 34 * - 97 * - 33 DIV COUNT( ALL - + 89 ) col2
----
108834

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL 34 * - 97 * - 33 / COUNT ( ALL - + 89 ) col2
----
108834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT + 54 * MAX( COALESCE ( 77, 89 ) ) * - - 14 + + ( + 56 ) + + ( + + MIN( - 53 ) ) + - 4 * - 13 / ( + + 39 ) * - + CAST( NULL AS SIGNED ) / + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 54 * MAX ( COALESCE ( 77, 89 ) ) * - - 14 + + ( + 56 ) + + ( + + MIN ( - 53 ) ) + - 4 * - 13 / ( + + 39 ) * - + CAST ( NULL AS INTEGER ) / + 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT 82 + - COUNT( * ) - - 55 * 86 * + 98 * + CAST( - - 3 AS SIGNED ) AS col2
----
1390701

skipif mysql # not compatible
query I rowsort label-9343
SELECT 82 + - COUNT ( * ) - - 55 * 86 * + 98 * + CAST ( - - 3 AS INTEGER ) AS col2
----
1390701

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - 5 * ( - MAX( - 7 ) ) * 43 * + - 18
----
27090

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - 5 * ( - MAX ( - 7 ) ) * 43 * + - 18
----
27090

query I rowsort
SELECT DISTINCT + CASE + 2 WHEN - - 85 - + 95 THEN NULL ELSE - 84 END
----
-84

query I rowsort
SELECT + 33 * - + 63 col1
----
-2079

query I rowsort
SELECT + 38 * 94
----
3572

query I rowsort
SELECT + + ( - 3 ) + 46 + + 55 + 79 + - 37
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-9349
SELECT + - 70 + - ( 61 ) + + 25 DIV + - 26 AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-9349
SELECT + - 70 + - ( 61 ) + + 25 / + - 26 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - SUM( ALL 55 ) * + + 40
----
-2200

skipif mysql # not compatible
query I rowsort label-9350
SELECT - SUM ( ALL 55 ) * + + 40
----
-2200

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT DISTINCT COUNT( ALL - - 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT COUNT ( ALL - - 5 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ALL 92 + - 8 DIV 48 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL 92 + - 8 / 48 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT - COUNT( * ) + + 12 + - 28 + - - CAST( NULL AS SIGNED ) + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT - COUNT ( * ) + + 12 + - 28 + - - CAST ( NULL AS INTEGER ) + + 94 AS col0
----
NULL

query I rowsort
SELECT ALL 32 * - 1 * 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( 28 ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT + + 43 + - ( + 77 ) - + ( + - CAST( NULL AS SIGNED ) ) * - 99 / 90 * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT + + 43 + - ( + 77 ) - + ( + - CAST ( NULL AS INTEGER ) ) * - 99 / 90 * - 61
----
NULL

query I rowsort
SELECT NULLIF ( - ( - + 5 ), 94 * - + 74 ) AS col1
----
5

query I rowsort
SELECT + - 68 + + 76 AS col2
----
8

query I rowsort
SELECT - + 63 - 9
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + MAX( ALL - + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-9360
SELECT + MAX ( ALL - + 76 )
----
-76

query I rowsort
SELECT ALL - 82 + 76 col0
----
-6

query I rowsort
SELECT - ( - 88 ) + + 98 * 79 col0
----
7830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT - 65 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT - 65 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 33 * - 84
----
-2772

query I rowsort
SELECT - 74 + + + 67 AS col1
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9366
SELECT ALL + 8 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + 8 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT MIN( DISTINCT 73 ) * + 14 + - + ( SUM( - 7 ) ) AS col1
----
1029

skipif mysql # not compatible
query I rowsort label-9367
SELECT MIN ( DISTINCT 73 ) * + 14 + - + ( SUM ( - 7 ) ) AS col1
----
1029

query I rowsort
SELECT DISTINCT - 36 * - 52
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL - COUNT( * ) * + 64 * - - 23 AS col2
----
-1472

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - COUNT ( * ) * + 64 * - - 23 AS col2
----
-1472

query I rowsort
SELECT ( - ( 78 ) ) AS col1
----
-78

query I rowsort
SELECT + 81 + + + 60 AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL + 73 * - 21 - 57 * - NULLIF ( + ( 87 ), + 41 * + 32 / + SUM( ALL - 83 ) * - - 84 ) col1
----
3426

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + 73 * - 21 - 57 * - NULLIF ( + ( 87 ), + 41 * + 32 / + SUM ( ALL - 83 ) * - - 84 ) col1
----
3426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9373
SELECT ALL + COALESCE ( - 4, - + 94, - COUNT( * ) + + - 15 + + 41 + COALESCE ( + 59, - 90, 61 * + + MIN( ALL + 29 ) * + COUNT( * ) ) * - 76 - + SUM( ALL - 6 ) + - + ( + ( - + CASE + 60 WHEN + ( - 46 ) * ( 73 ) THEN NULL WHEN - - 77 THEN 86 DIV - 22 + - NULLIF ( - CASE - ( - + NULLIF ( - - 44, 39 ) ) WHEN - 12 THEN - - 98 * + 67 * + ( - 54 ) WHEN 56 * 40 DIV - 0 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - ( + - 29 ) THEN + 19 END, - 43 * + NULLIF ( COUNT( * ), - 20 ) ) WHEN - NULLIF ( + CAST( 19 AS SIGNED ), COUNT( * ) * - 35 ) + AVG ( ALL 1 ) * 79 THEN NULL END ) ) DIV 7 )
----
-4

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + COALESCE ( - 4, - + 94, - COUNT ( * ) + + - 15 + + 41 + COALESCE ( + 59, - 90, 61 * + + MIN ( ALL + 29 ) * + COUNT ( * ) ) * - 76 - + SUM ( ALL - 6 ) + - + ( + ( - + CASE + 60 WHEN + ( - 46 ) * ( 73 ) THEN NULL WHEN - - 77 THEN 86 / - 22 + - NULLIF ( - CASE - ( - + NULLIF ( - - 44, 39 ) ) WHEN - 12 THEN - - 98 * + 67 * + ( - 54 ) WHEN 56 * 40 / - 0 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - ( + - 29 ) THEN + 19 END, - 43 * + NULLIF ( COUNT ( * ), - 20 ) ) WHEN - NULLIF ( + CAST ( 19 AS INTEGER ), COUNT ( * ) * - 35 ) + AVG ( ALL 1 ) * 79 THEN NULL END ) ) / 7 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9374
SELECT - COUNT( * ) DIV 53 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9374
SELECT - COUNT ( * ) / 53 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT + 39 * - 10 col1
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT ALL - 74 DIV + 13 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - 74 / + 13 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT + CASE + 70 WHEN 80 THEN - COALESCE ( - 84, + 35 + - 36 ) - + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT + CASE + 70 WHEN 80 THEN - COALESCE ( - 84, + 35 + - 36 ) - + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9378
SELECT ALL + COUNT( * ) * + 16 * 86 + + + 76 DIV - - ( - COUNT( * ) )
----
1300

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + COUNT ( * ) * + 16 * 86 + + + 76 / - - ( - COUNT ( * ) )
----
1300

query I rowsort
SELECT - 85 - + 69 AS col1
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT - 3 DIV COALESCE ( - 20, - - 81 ) DIV + NULLIF ( + 55, 17 * - 74 + + + 39 DIV 96 ) * 55 + + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9380
SELECT - 3 / COALESCE ( - 20, - - 81 ) / + NULLIF ( + 55, 17 * - 74 + + + 39 / 96 ) * 55 + + 54 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT - ( - - CAST( NULL AS SIGNED ) ) * - - 7 + + - 35 * + 93 + - 98 + - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * - - 7 + + - 35 * + 93 + - 98 + - + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL - + COUNT( * ) * 93 + 22 + + 90 + + + 96 * 3
----
307

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - + COUNT ( * ) * 93 + 22 + + 90 + + + 96 * 3
----
307

query I rowsort
SELECT ALL + 4 * + 81 * 93 + + 23 + 81 - + ( 90 ) * 39 + + 11
----
26737

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT + - 33 DIV 41 * - - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9384
SELECT + - 33 / 41 * - - 21 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9385
SELECT - COALESCE ( - 4, CAST( - - 52 AS SIGNED ) * - 62, - COUNT( * ) * + NULLIF ( 48, + - 39 ) ), 84 col0
----
4
84

skipif mysql # not compatible
query II rowsort label-9385
SELECT - COALESCE ( - 4, CAST ( - - 52 AS INTEGER ) * - 62, - COUNT ( * ) * + NULLIF ( 48, + - 39 ) ), 84 col0
----
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT - - NULLIF ( - COUNT( * ), 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9386
SELECT - - NULLIF ( - COUNT ( * ), 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT + COUNT( * ) * + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9387
SELECT + COUNT ( * ) * + 93 AS col0
----
93

query I rowsort
SELECT DISTINCT 48 + 25 * 78 AS col0
----
1998

query I rowsort
SELECT DISTINCT NULLIF ( - 44, - - 42 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9390
SELECT DISTINCT 10 - 16 + + SUM( ALL + 48 ) + - - 18 + 72 * + 51 AS col1, - 35 * 44
----
3732
-1540

skipif mysql # not compatible
query II rowsort label-9390
SELECT DISTINCT 10 - 16 + + SUM ( ALL + 48 ) + - - 18 + 72 * + 51 AS col1, - 35 * 44
----
3732
-1540

query I rowsort
SELECT - - COALESCE ( 1, + - 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL + 51 - + 39 * 1 * + MIN( - - 47 ) col0
----
-1782

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + 51 - + 39 * 1 * + MIN ( - - 47 ) col0
----
-1782

query I rowsort
SELECT ALL 32 * - 74 * + - 42 AS col2
----
99456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT + + 71 - - 94 DIV COUNT( * ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-9394
SELECT + + 71 - - 94 / COUNT ( * ) AS col0
----
165

query I rowsort
SELECT ALL NULLIF ( - 53, - 62 * 5 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - 88 * - SUM( ALL + 1 ) * - 31 AS col2
----
-2728

skipif mysql # not compatible
query I rowsort label-9396
SELECT - 88 * - SUM ( ALL + 1 ) * - 31 AS col2
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + CASE - 80 WHEN COUNT( * ) * + + 37 * + - 9 * 79 + - + 66 THEN NULL ELSE + SUM( DISTINCT - 33 ) - + 36 END + - + 76 * + 8
----
-677

skipif mysql # not compatible
query I rowsort label-9397
SELECT + CASE - 80 WHEN COUNT ( * ) * + + 37 * + - 9 * 79 + - + 66 THEN NULL ELSE + SUM ( DISTINCT - 33 ) - + 36 END + - + 76 * + 8
----
-677

query I rowsort
SELECT ALL ( - - 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + 75 + - 97 + + - 71 * - SUM( ALL - 50 ) AS col0
----
-3572

skipif mysql # not compatible
query I rowsort label-9399
SELECT + 75 + - 97 + + - 71 * - SUM ( ALL - 50 ) AS col0
----
-3572

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9400
SELECT - 93 * + - NULLIF ( + 87, CAST( NULL AS SIGNED ) * + 80 ), 59 AS col2
----
8091
59

skipif mysql # not compatible
query II rowsort label-9400
SELECT - 93 * + - NULLIF ( + 87, CAST ( NULL AS INTEGER ) * + 80 ), 59 AS col2
----
8091
59

query I rowsort
SELECT - ( + 57 ) * 25 AS col0
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9402
SELECT 50 * - + CAST( NULL AS DECIMAL ) - - + CASE 36 WHEN COUNT( * ) THEN + 9 + + ( - CASE - - 95 WHEN + 6 + - CAST( NULL AS SIGNED ) THEN + 89 - - 10 WHEN COUNT( * ) THEN - 56 END ) WHEN 84 THEN NULL END + + ( - 89 ) * - - MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT 50 * - + CAST ( NULL AS REAL ) - - + CASE 36 WHEN COUNT ( * ) THEN + 9 + + ( - CASE - - 95 WHEN + 6 + - CAST ( NULL AS INTEGER ) THEN + 89 - - 10 WHEN COUNT ( * ) THEN - 56 END ) WHEN 84 THEN NULL END + + ( - 89 ) * - - MAX ( ALL + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT - 70 / - + CASE + 66 WHEN + AVG ( DISTINCT - + 67 ) * MAX( - + 54 ) * + + 12 * + 5 + 6 - + NULLIF ( - COUNT( * ), ( + - 30 ) ) - + 1 * COALESCE ( + 88, - 39 + - + 97 ) * 57 THEN COUNT( * ) ELSE + 48 * SUM( ALL + 95 ) END + - 26 + - COUNT( * ) + CASE + 87 WHEN + + 30 THEN CAST( NULL AS SIGNED ) + NULLIF ( + + 35, 5 ) WHEN 3 THEN NULL END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT - 70 / - + CASE + 66 WHEN + AVG ( DISTINCT - + 67 ) * MAX ( - + 54 ) * + + 12 * + 5 + 6 - + NULLIF ( - COUNT ( * ), ( + - 30 ) ) - + 1 * COALESCE ( + 88, - 39 + - + 97 ) * 57 THEN COUNT ( * ) ELSE + 48 * SUM ( ALL + 95 ) END + - 26 + - COUNT ( * ) + CASE + 87 WHEN + + 30 THEN CAST ( NULL AS INTEGER ) + NULLIF ( + + 35, 5 ) WHEN 3 THEN NULL END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT 27 + - + ( + MAX( DISTINCT + + ( 98 ) ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9404
SELECT 27 + - + ( + MAX ( DISTINCT + + ( 98 ) ) ) AS col0
----
-71

query I rowsort
SELECT ALL - 87 + - 64 * - 42 AS col0
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT 51 * COUNT( * ) + + - 37 + 96 * - + 91 * ( - + 49 ) AS col1
----
428078

skipif mysql # not compatible
query I rowsort label-9406
SELECT 51 * COUNT ( * ) + + - 37 + 96 * - + 91 * ( - + 49 ) AS col1
----
428078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 43, + 50 ) - 38 + + 42 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT ALL - CAST( + CASE - 68 WHEN + + 74 THEN NULL WHEN - CAST( + 0 AS SIGNED ) * + - 60 THEN + 11 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - CAST ( + CASE - 68 WHEN + + 74 THEN NULL WHEN - CAST ( + 0 AS INTEGER ) * + - 60 THEN + 11 END AS INTEGER )
----
NULL

query I rowsort
SELECT 17 + - 15 + - + 2 * + + 21
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT ALL + MAX( ALL - 37 ) + - - ( - - 18 ) + + - CASE COUNT( ALL - 75 ) WHEN - 52 + - - 31 THEN COUNT( * ) + 14 + 44 * - 8 WHEN + 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL + MAX ( ALL - 37 ) + - - ( - - 18 ) + + - CASE COUNT ( ALL - 75 ) WHEN - 52 + - - 31 THEN COUNT ( * ) + 14 + 44 * - 8 WHEN + 95 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 42 + + 49 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT COUNT( ALL + - 9 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9413
SELECT COUNT ( ALL + - 9 ) col1
----
1

query I rowsort
SELECT - - 57 * + 47 + + 94
----
2773

query II rowsort
SELECT + 82 AS col1, 39 AS col1
----
82
39

query I rowsort
SELECT 58 + - 39 + 97 - - + ( + 20 ) AS col1
----
136

query I rowsort
SELECT - 84 * - 69 AS col0
----
5796

query II rowsort
SELECT - 93 + + + 16 - - 6, + 39 AS col0
----
-71
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT + COUNT( * ) + + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT + COUNT ( * ) + + 59 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT 51 + - MAX( DISTINCT - 50 ) + - 60 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9420
SELECT 51 + - MAX ( DISTINCT - 50 ) + - 60 AS col1
----
41

query I rowsort
SELECT + COALESCE ( + + 72, + 44, + 21 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL + 88 - - - ( 54 ) * - COUNT( * ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + 88 - - - ( 54 ) * - COUNT ( * ) AS col2
----
142

query I rowsort
SELECT ALL + ( - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT + + NULLIF ( 35, - + COUNT( * ) + - 33 + - 86 * + 7 + - ( - 61 ) ) * + - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + + NULLIF ( 35, - + COUNT ( * ) + - 33 + - 86 * + 7 + - ( - 61 ) ) * + - COUNT ( * ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9425
SELECT ALL - 97 * + - 11 + 35 DIV + 78
----
1067

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL - 97 * + - 11 + 35 / + 78
----
1067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT MIN( ( + 69 ) ) DIV 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9426
SELECT MIN ( ( + 69 ) ) / 48 AS col1
----
1

query I rowsort
SELECT ALL ( + + 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT 7 + - COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9428
SELECT 7 + - COUNT ( * ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT + 0 * - ( COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9429
SELECT + 0 * - ( COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - COUNT( * ) + - 32 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9430
SELECT - COUNT ( * ) + - 32 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT SUM( 86 ) + 87
----
173

skipif mysql # not compatible
query I rowsort label-9431
SELECT SUM ( 86 ) + 87
----
173

query I rowsort
SELECT 8 + + 73 AS col0
----
81

query I rowsort
SELECT ( + 5 ) * - 84
----
-420

onlyif mysql # DIV for integer division: 
query II rowsort label-9434
SELECT ALL 62, + 30 DIV - 84 col2
----
62
0

skipif mysql # not compatible
query II rowsort label-9434
SELECT ALL 62, + 30 / - 84 col2
----
62
0

query II rowsort
SELECT - 63 AS col1, 55 col2
----
-63
55

query II rowsort
SELECT DISTINCT 15, 53 col1
----
15
53

query II rowsort
SELECT 74, - 13 AS col2
----
74
-13

query II rowsort
SELECT ALL 19 AS col2, 95 * + 44 - - - 93 * - 46
----
19
8458

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT ALL 21, 45 * COUNT( * ) AS col1
----
21
45

skipif mysql # not compatible
query II rowsort label-9439
SELECT ALL 21, 45 * COUNT ( * ) AS col1
----
21
45

query I rowsort
SELECT ALL 34 * + - 29
----
-986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT ALL - CASE - + SUM( CAST( NULL AS SIGNED ) ) WHEN - 38 - - 73 * - COALESCE ( 76, + 87 * - + 79 + 73 - - - 35 - + + COUNT( * ) * - - 62, + + 88 ) + 74 + - 44 + + 40 * + 35 + + ( + 84 ) * ( + 79 ) * - 46 THEN NULL WHEN - 82 THEN - - 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL - CASE - + SUM ( CAST ( NULL AS INTEGER ) ) WHEN - 38 - - 73 * - COALESCE ( 76, + 87 * - + 79 + 73 - - - 35 - + + COUNT ( * ) * - - 62, + + 88 ) + 74 + - 44 + + 40 * + 35 + + ( + 84 ) * ( + 79 ) * - 46 THEN NULL WHEN - 82 THEN - - 98 END AS col2
----
NULL

query I rowsort
SELECT 27 * + ( + - ( - 32 ) ) * 60
----
51840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT COUNT( * ) DIV - COALESCE ( 29, SUM( DISTINCT + + 13 ) ) + - 78 * 21 col2
----
-1638

skipif mysql # not compatible
query I rowsort label-9443
SELECT COUNT ( * ) / - COALESCE ( 29, SUM ( DISTINCT + + 13 ) ) + - 78 * 21 col2
----
-1638

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT ALL - 78 AS col2, 6 + - - 80 + + COUNT( * ) - - 42 * - + ( - 32 ) - + 89 AS col2
----
-78
1342

skipif mysql # not compatible
query II rowsort label-9444
SELECT ALL - 78 AS col2, 6 + - - 80 + + COUNT ( * ) - - 42 * - + ( - 32 ) - + 89 AS col2
----
-78
1342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9445
SELECT ALL CASE ( + 81 ) WHEN + - 54 THEN - CASE + AVG ( ALL + 79 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + - 77 + 89 * + COUNT( ALL - 18 ) / + + ( CAST( + - 74 AS SIGNED ) ) + - 28 THEN NULL ELSE + 66 * + COALESCE ( - 91, 27 * + 15 + - 95, - 66 ) END * + + 69 * + 87 WHEN 75 THEN + 96 * MAX( DISTINCT - + 21 ) ELSE NULL END + - 15 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL CASE ( + 81 ) WHEN + - 54 THEN - CASE + AVG ( ALL + 79 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 77 + 89 * + COUNT ( ALL - 18 ) / + + ( CAST ( + - 74 AS INTEGER ) ) + - 28 THEN NULL ELSE + 66 * + COALESCE ( - 91, 27 * + 15 + - 95, - 66 ) END * + + 69 * + 87 WHEN 75 THEN + 96 * MAX ( DISTINCT - + 21 ) ELSE NULL END + - 15 + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + COUNT( * ) * - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9446
SELECT + COUNT ( * ) * - 98 AS col1
----
-98

query I rowsort
SELECT ALL - + 91 * - - 96 AS col1
----
-8736

query I rowsort
SELECT 94 + - - 94 AS col1
----
188

query I rowsort
SELECT DISTINCT - - 74 + + + 33 AS col2
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL - + CAST( NULL AS SIGNED ) + + 2 + + 27 + + 8 * + 27 * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 2 + + 27 + + 8 * + 27 * 45 AS col1
----
NULL

query I rowsort
SELECT - 82 - - + 40 + + 95
----
53

query I rowsort
SELECT ALL + 86 * + 10
----
860

query I rowsort
SELECT DISTINCT - - ( 64 )
----
64

query I rowsort
SELECT ALL - + 32 - 96 + - ( - - 29 ) AS col1
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL + + 36 - - 46 - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL + + 36 - - 46 - COUNT ( * )
----
81

query I rowsort
SELECT + 31 - + ( - 89 )
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9457
SELECT ALL 34, 19 * SUM( + - CAST( NULL AS SIGNED ) ) AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9457
SELECT ALL 34, 19 * SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT COUNT( * ) * + 48 * + - 98 AS col0
----
-4704

skipif mysql # not compatible
query I rowsort label-9458
SELECT COUNT ( * ) * + 48 * + - 98 AS col0
----
-4704

query II rowsort
SELECT + 34, ( + + 86 ) AS col1
----
34
86

query II rowsort
SELECT - + 81 AS col2, + 66
----
-81
66

query I rowsort
SELECT ALL 70 * + 62 AS col2
----
4340

query I rowsort
SELECT 82 * - 47
----
-3854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT ALL - 86 DIV - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - 86 / - COUNT ( * )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT DISTINCT - 77 * 14 DIV 93 * + 68 AS col1
----
-748

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT - 77 * 14 / 93 * + 68 AS col1
----
-748

query I rowsort
SELECT ALL - 59 * - - 18
----
-1062

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT DISTINCT + COUNT( * ) + - + 51 - + 87 + - 82 AS col2
----
-219

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT + COUNT ( * ) + - + 51 - + 87 + - 82 AS col2
----
-219

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9467
SELECT ALL 58 DIV 95 AS col1, + 97 AS col1, - - 54 * 32 * - 32 + - 63 + COUNT( * ) + - + 65 + - 7 AS col0
----
0
97
-55430

skipif mysql # not compatible
query III rowsort label-9467
SELECT ALL 58 / 95 AS col1, + 97 AS col1, - - 54 * 32 * - 32 + - 63 + COUNT ( * ) + - + 65 + - 7 AS col0
----
0
97
-55430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT - COUNT( * ) + - 16 DIV 27
----
-1

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT - COUNT ( * ) + - 16 / 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL COUNT( * ) + 94 col1
----
95

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL COUNT ( * ) + 94 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT + 86 + CAST( - + NULLIF ( ( + - COUNT( - 53 ) ), 61 + - + 54 + - ( + 27 ) + 50 / - + COUNT( * ) * + + CAST( + 46 AS SIGNED ) ) AS SIGNED ) col2
----
87

skipif mysql # not compatible
query I rowsort label-9470
SELECT + 86 + CAST ( - + NULLIF ( ( + - COUNT ( - 53 ) ), 61 + - + 54 + - ( + 27 ) + 50 / - + COUNT ( * ) * + + CAST ( + 46 AS INTEGER ) ) AS INTEGER ) col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT + 62 + - - COUNT( * ) * + 12 * + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9471
SELECT + 62 + - - COUNT ( * ) * + 12 * + COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9472
SELECT ALL + 87 * - 28 / 61 / - ( - ( - 51 ) ) + + CAST( NULL AS DECIMAL ), 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-9472
SELECT ALL + 87 * - 28 / 61 / - ( - ( - 51 ) ) + + CAST ( NULL AS REAL ), 46 AS col1
----
NULL
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS SIGNED ) + + + COUNT( * ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + MAX( + - CASE - + ( - + 16 ) WHEN - 33 THEN + 70 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT + MAX ( + - CASE - + ( - + 16 ) WHEN - 33 THEN + 70 END )
----
NULL

query I rowsort
SELECT ALL + 48 * - 39 + 67
----
-1805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT - COALESCE ( + ( - + 48 ), - 0 ) * + 77 * - 51 * - 77 - + 56 * - CASE + 42 WHEN - 67 + + CASE - - 73 WHEN - - 63 THEN COUNT( * ) WHEN + - 80 THEN NULL WHEN + 15 THEN + 6 END * - 74 - COUNT( * ) * - + 87 + - + ( - 12 ) + + - CAST( 95 AS SIGNED ) * - - 31 THEN NULL ELSE 72 END col2
----
14518224

skipif mysql # not compatible
query I rowsort label-9476
SELECT - COALESCE ( + ( - + 48 ), - 0 ) * + 77 * - 51 * - 77 - + 56 * - CASE + 42 WHEN - 67 + + CASE - - 73 WHEN - - 63 THEN COUNT ( * ) WHEN + - 80 THEN NULL WHEN + 15 THEN + 6 END * - 74 - COUNT ( * ) * - + 87 + - + ( - 12 ) + + - CAST ( 95 AS INTEGER ) * - - 31 THEN NULL ELSE 72 END col2
----
14518224

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + CASE 60 WHEN - 60 THEN - COUNT( * ) WHEN + + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT + CASE 60 WHEN - 60 THEN - COUNT ( * ) WHEN + + 13 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL - + ( - + 73 ) * - 54 - 44 * - + SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - + ( - + 73 ) * - 54 - 44 * - + SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 13 + 5
----
18

query I rowsort
SELECT - 76 * 63 + - 8
----
-4796

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT + 88 * COUNT( * ) * + + 53 + + + 34 AS col0
----
4698

skipif mysql # not compatible
query I rowsort label-9481
SELECT + 88 * COUNT ( * ) * + + 53 + + + 34 AS col0
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + - 52 + + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-9482
SELECT + - 52 + + - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT + MIN( ALL 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + MIN ( ALL 82 )
----
82

query I rowsort
SELECT ALL + - ( - 77 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9485
SELECT ALL - 66 DIV + + 27 AS col0, + 47 AS col2, - - 34 + + MIN( ALL 15 ) + + - 87
----
-2
47
-38

skipif mysql # not compatible
query III rowsort label-9485
SELECT ALL - 66 / + + 27 AS col0, + 47 AS col2, - - 34 + + MIN ( ALL 15 ) + + - 87
----
-2
47
-38

query I rowsort
SELECT - 29 + 52 AS col0
----
23

query I rowsort
SELECT - + COALESCE ( - 54, 57 )
----
54

query I rowsort
SELECT ALL + 14 * + - 49 * + 11 * + + 96
----
-724416

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT + - COUNT( * ) + - + MAX( ALL + 55 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9489
SELECT + - COUNT ( * ) + - + MAX ( ALL + 55 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9490
SELECT - + SUM( - 8 ), + 81 AS col2
----
8
81

skipif mysql # not compatible
query II rowsort label-9490
SELECT - + SUM ( - 8 ), + 81 AS col2
----
8
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - + 34 + - + COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9491
SELECT - + 34 + - + COUNT ( * ) AS col0
----
-35

query I rowsort
SELECT - 53 * - 12 AS col0
----
636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT ALL 58 + - ( + CAST( NULL AS SIGNED ) ) + - - ( - + 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL 58 + - ( + CAST ( NULL AS INTEGER ) ) + - - ( - + 83 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - COUNT( + - 89 ) + 57 + + + 10 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - COUNT ( + - 89 ) + 57 + + + 10 AS col1
----
66

query I rowsort
SELECT ALL + 18 + 22
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9496
SELECT + 17 DIV - MAX( ALL 87 ) AS col2, + 8 AS col0
----
0
8

skipif mysql # not compatible
query II rowsort label-9496
SELECT + 17 / - MAX ( ALL 87 ) AS col2, + 8 AS col0
----
0
8

query II rowsort
SELECT - 22 + + + 56 * + + 22, + 95 AS col2
----
1210
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT DISTINCT + NULLIF ( 10, + + COUNT( DISTINCT + - 96 ) ) + 48 - - 40, COUNT( * ) AS col2
----
98
1

skipif mysql # not compatible
query II rowsort label-9498
SELECT DISTINCT + NULLIF ( 10, + + COUNT ( DISTINCT + - 96 ) ) + 48 - - 40, COUNT ( * ) AS col2
----
98
1

query II rowsort
SELECT 7 col1, NULLIF ( + ( - - 4 ), 93 ) * 45 AS col0
----
7
180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9500
SELECT - 99 + 35 - + 12 AS col2, CAST( NULL AS SIGNED ) * - - 39 + + - 82 + - 16 * - 66 - 4 * + 95 AS col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-9500
SELECT - 99 + 35 - + 12 AS col2, CAST ( NULL AS INTEGER ) * - - 39 + + - 82 + - 16 * - 66 - 4 * + 95 AS col1
----
-76
NULL

query I rowsort
SELECT - 16 + 30
----
14

query I rowsort
SELECT DISTINCT ( + + 79 ) AS col2
----
79

query I rowsort
SELECT - 86 * + 64 AS col2
----
-5504

query I rowsort
SELECT + 92 + + 81 AS col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT - 10 + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - 10 + - COUNT ( * )
----
-11

query I rowsort
SELECT ALL + ( 0 ) + 38 * + 39 * + 20 AS col0
----
29640

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - MAX( ALL 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9507
SELECT - MAX ( ALL 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9508
SELECT DISTINCT ( + - MIN( + - 53 ) ) AS col1, 59 * - - 35
----
53
2065

skipif mysql # not compatible
query II rowsort label-9508
SELECT DISTINCT ( + - MIN ( + - 53 ) ) AS col1, 59 * - - 35
----
53
2065

query I rowsort
SELECT ALL - 29 * 39 AS col1
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - 56 * - + COUNT( DISTINCT - 16 ) * + ( - + COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9510
SELECT - 56 * - + COUNT ( DISTINCT - 16 ) * + ( - + COUNT ( * ) )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT - ( + 51 ) + - 81 * + CAST( + - ( - 75 ) AS SIGNED ) - + - 27 col0
----
-6099

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - ( + 51 ) + - 81 * + CAST ( + - ( - 75 ) AS INTEGER ) - + - 27 col0
----
-6099

onlyif mysql # aggregate syntax: 
query II rowsort label-9512
SELECT ALL + MIN( ALL + 14 ) - 50, + 11 * 0 AS col2
----
-36
0

skipif mysql # not compatible
query II rowsort label-9512
SELECT ALL + MIN ( ALL + 14 ) - 50, + 11 * 0 AS col2
----
-36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT + COALESCE ( - 4, - NULLIF ( + COUNT( * ), - + 45 ) + - ( ( + 7 ) ) - 28 * + 97 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9513
SELECT + COALESCE ( - 4, - NULLIF ( + COUNT ( * ), - + 45 ) + - ( ( + 7 ) ) - 28 * + 97 ) AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT ALL - ( - 77 ) DIV NULLIF ( 25, - + 21 + + AVG ( DISTINCT - 12 ) + - 49 * + 69 ) - 39 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - ( - 77 ) / NULLIF ( 25, - + 21 + + AVG ( DISTINCT - 12 ) + - 49 * + 69 ) - 39 AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT - 20 DIV + COALESCE ( + 36, 58 * - - 96 - + 32 + + - 34 * 73 + 86 - + 31 + + 96, - 68 - + 43 + - 41 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9515
SELECT - 20 / + COALESCE ( + 36, 58 * - - 96 - + 32 + + - 34 * 73 + 86 - + 31 + + 96, - 68 - + 43 + - 41 ) AS col0
----
0

query I rowsort
SELECT + ( + + 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + COUNT( * ) + + 92 + 44 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-9517
SELECT + COUNT ( * ) + + 92 + 44 AS col2
----
137

query I rowsort
SELECT + 73 * - - 2 col1
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-9519
SELECT ALL + - COUNT( * ), 53 AS col2
----
-1
53

skipif mysql # not compatible
query II rowsort label-9519
SELECT ALL + - COUNT ( * ), 53 AS col2
----
-1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT + MIN( DISTINCT NULLIF ( - 8, + 94 ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9520
SELECT + MIN ( DISTINCT NULLIF ( - 8, + 94 ) ) AS col1
----
-8

query I rowsort
SELECT ALL + ( 17 ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT + + 0 * - 91 + - COUNT( 94 ) + - 96 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-9522
SELECT + + 0 * - 91 + - COUNT ( 94 ) + - 96 AS col1
----
-97

query I rowsort
SELECT ALL - 9 * - + ( + 87 )
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT - - COUNT( * ) * + 88 * + NULLIF ( 57, - - COALESCE ( + NULLIF ( + ( 74 ), 43 + 60 + - MAX( ALL 3 ) * + 85 + + 86 ), - + AVG ( + - 92 ) ) )
----
5016

skipif mysql # not compatible
query I rowsort label-9524
SELECT - - COUNT ( * ) * + 88 * + NULLIF ( 57, - - COALESCE ( + NULLIF ( + ( 74 ), 43 + 60 + - MAX ( ALL 3 ) * + 85 + + 86 ), - + AVG ( + - 92 ) ) )
----
5016

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL + CASE - 56 WHEN - 82 THEN - - COUNT( * ) * - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + CASE - 56 WHEN - 82 THEN - - COUNT ( * ) * - COUNT ( * ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT + 29 AS col0, - ( + ( - + COUNT( * ) ) )
----
29
1

skipif mysql # not compatible
query II rowsort label-9526
SELECT + 29 AS col0, - ( + ( - + COUNT ( * ) ) )
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + + NULLIF ( + + NULLIF ( - - 46, + - 59 * + AVG ( ALL 87 ) ), 81 + 35 + 79 * + MIN( ALL + 0 ) + 73 ) col2
----
46

skipif mysql # not compatible
query I rowsort label-9527
SELECT + + NULLIF ( + + NULLIF ( - - 46, + - 59 * + AVG ( ALL 87 ) ), 81 + 35 + 79 * + MIN ( ALL + 0 ) + 73 ) col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT + 75 * 69 DIV 97 * 10
----
530

skipif mysql # not compatible
query I rowsort label-9528
SELECT + 75 * 69 / 97 * 10
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT - 35 * 28 + + COUNT( * ) * + 89 + - MAX( 56 ) * 42 - 47 + - - 75 + - ( - SUM( ALL 67 ) )
----
-3148

skipif mysql # not compatible
query I rowsort label-9529
SELECT - 35 * 28 + + COUNT ( * ) * + 89 + - MAX ( 56 ) * 42 - 47 + - - 75 + - ( - SUM ( ALL 67 ) )
----
-3148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT DISTINCT - NULLIF ( + 29, + COALESCE ( + CAST( NULL AS SIGNED ), - 10 ) ) * + CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT - NULLIF ( + 29, + COALESCE ( + CAST ( NULL AS INTEGER ), - 10 ) ) * + CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT ALL + 42 * - 92 + - COUNT( * )
----
-3865

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL + 42 * - 92 + - COUNT ( * )
----
-3865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT ALL COUNT( * ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL COUNT ( * ) / + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT ALL COUNT( DISTINCT + 17 ) + + 36, NULLIF ( - 1, - SUM( COALESCE ( - 24, + + 72, - ( - 11 ) ) ) + 60 ) col0
----
37
-1

skipif mysql # not compatible
query II rowsort label-9533
SELECT ALL COUNT ( DISTINCT + 17 ) + + 36, NULLIF ( - 1, - SUM ( COALESCE ( - 24, + + 72, - ( - 11 ) ) ) + 60 ) col0
----
37
-1

query I rowsort
SELECT DISTINCT + 60 * + 75
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL - SUM( ALL + 61 ) + + + 87 + CASE - 71 WHEN COUNT( * ) THEN + 23 - 63 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - SUM ( ALL + 61 ) + + + 87 + CASE - 71 WHEN COUNT ( * ) THEN + 23 - 63 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT ALL 52 + + - 23 DIV + 74
----
52

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL 52 + + - 23 / + 74
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT 17 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT 17 / 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9538
SELECT DISTINCT COUNT( * ) * 20 col2, - 45 - + - ( + - 17 ) - + 47 - + 57
----
20
-166

skipif mysql # not compatible
query II rowsort label-9538
SELECT DISTINCT COUNT ( * ) * 20 col2, - 45 - + - ( + - 17 ) - + 47 - + 57
----
20
-166

query I rowsort
SELECT ALL 5 + + 65 * + - COALESCE ( + - 6, + 39 + + 26, 51 )
----
395

query I rowsort
SELECT 98 * - 91 * + 7 AS col0
----
-62426

query I rowsort
SELECT ( + ( 15 ) ) + + 89 col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT - COUNT( * ) + - - 12 col2
----
11

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - COUNT ( * ) + - - 12 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL - ( + NULLIF ( COUNT( * ), - - 53 ) ) + - 95
----
-96

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - ( + NULLIF ( COUNT ( * ), - - 53 ) ) + - 95
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT 4 - + - COUNT( DISTINCT 50 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT 4 - + - COUNT ( DISTINCT 50 ) AS col1
----
5

query I rowsort
SELECT 36 * 54 * 8 AS col0
----
15552

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL - COUNT( * ) - 43 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - COUNT ( * ) - 43 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT CAST( NULL AS SIGNED ) + - - 78 * ( SUM( 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT CAST ( NULL AS INTEGER ) + - - 78 * ( SUM ( 28 ) )
----
NULL

query I rowsort
SELECT 26 * + - 97 AS col2
----
-2522

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT 68 - + COUNT( * ) + + 56 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-9549
SELECT 68 - + COUNT ( * ) + + 56 AS col2
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT 42 + - 47 DIV COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9550
SELECT 42 + - 47 / COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT - + 13 col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT DISTINCT + 71 * + NULLIF ( - SUM( ALL + - 18 ), - 52 ), 75 AS col2
----
1278
75

skipif mysql # not compatible
query II rowsort label-9552
SELECT DISTINCT + 71 * + NULLIF ( - SUM ( ALL + - 18 ), - 52 ), 75 AS col2
----
1278
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ALL + - 12 * + CAST( 76 AS SIGNED ) AS col1
----
-912

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + - 12 * + CAST ( 76 AS INTEGER ) AS col1
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9554
SELECT - 93 / 79 * ( + + CASE 39 WHEN MAX( - + COALESCE ( 96, + 26, + 37, - + 43 ) ) THEN + CASE + ( 98 ) WHEN + + 51 THEN 17 * + 79 + - 2 * - - CASE - + COUNT( * ) WHEN + 2 + - CAST( - 84 AS DECIMAL ) * + COALESCE ( 67, - - COALESCE ( - + 32, + 14 * - 89 + COUNT( * ) + + 1 + + SUM( ALL - 84 ) * - CAST( + 80 AS SIGNED ) + - 10 ) / 54 + 88 + + 87 + + CAST( - 92 AS DECIMAL ) + - NULLIF ( - + 98, + - 59 ) + + 29 + - - 17 ) THEN - - COUNT( * ) * - + 87 + + - 54 WHEN 13 * 27 THEN 5 ELSE AVG ( DISTINCT ( - 66 ) ) END ELSE CAST( + 84 AS SIGNED ) END WHEN + COALESCE ( 22, - 77 ) / - 2 THEN NULL ELSE NULL END ) * - CASE NULLIF ( 64, NULLIF ( + 94, 54 ) + - 91 ) WHEN + 57 THEN NULL WHEN + CAST( NULL AS DECIMAL ) + + 23 THEN 29 * + ( - COUNT( * ) / - 88 ) END + - CAST( 78 - CASE 65 + 27 WHEN 82 * - 63 THEN NULL ELSE 23 + + 46 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 93 / 79 * ( + + CASE 39 WHEN MAX ( - + COALESCE ( 96, + 26, + 37, - + 43 ) ) THEN + CASE + ( 98 ) WHEN + + 51 THEN 17 * + 79 + - 2 * - - CASE - + COUNT ( * ) WHEN + 2 + - CAST ( - 84 AS REAL ) * + COALESCE ( 67, - - COALESCE ( - + 32, + 14 * - 89 + COUNT ( * ) + + 1 + + SUM ( ALL - 84 ) * - CAST ( + 80 AS INTEGER ) + - 10 ) / 54 + 88 + + 87 + + CAST ( - 92 AS REAL ) + - NULLIF ( - + 98, + - 59 ) + + 29 + - - 17 ) THEN - - COUNT ( * ) * - + 87 + + - 54 WHEN 13 * 27 THEN 5 ELSE AVG ( DISTINCT ( - 66 ) ) END ELSE CAST ( + 84 AS INTEGER ) END WHEN + COALESCE ( 22, - 77 ) / - 2 THEN NULL ELSE NULL END ) * - CASE NULLIF ( 64, NULLIF ( + 94, 54 ) + - 91 ) WHEN + 57 THEN NULL WHEN + CAST ( NULL AS REAL ) + + 23 THEN 29 * + ( - COUNT ( * ) / - 88 ) END + - CAST ( 78 - CASE 65 + 27 WHEN 82 * - 63 THEN NULL ELSE 23 + + 46 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT 10 + - - 82 DIV - 6
----
-3

skipif mysql # not compatible
query I rowsort label-9555
SELECT 10 + - - 82 / - 6
----
-3

query I rowsort
SELECT ALL - - ( + + 46 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT ALL + + CAST( NULL AS SIGNED ) + - CASE 48 WHEN - 38 THEN + COALESCE ( 11, + + COALESCE ( + + COUNT( ALL + - 3 ), + 58 * 12 ) ) END / ( - 10 ) + - + 70 * - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL + + CAST ( NULL AS INTEGER ) + - CASE 48 WHEN - 38 THEN + COALESCE ( 11, + + COALESCE ( + + COUNT ( ALL + - 3 ), + 58 * 12 ) ) END / ( - 10 ) + - + 70 * - 41 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 92, + 17 ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9559
SELECT DISTINCT 94 + 84 + - - 32 * 79, - MIN( DISTINCT + - 27 ) DIV 91 + - 33 AS col1
----
2706
-33

skipif mysql # not compatible
query II rowsort label-9559
SELECT DISTINCT 94 + 84 + - - 32 * 79, - MIN ( DISTINCT + - 27 ) / 91 + - 33 AS col1
----
2706
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT COALESCE ( - 65, + 22 + 19 + - - COALESCE ( + 77, + 61 * + COUNT( * ) + - + 26 - + 16, + 67 * 84 ) + 64 + + 76 * - COUNT( - 59 ) - - COUNT( * ) ) * 14 - - 81
----
-829

skipif mysql # not compatible
query I rowsort label-9560
SELECT COALESCE ( - 65, + 22 + 19 + - - COALESCE ( + 77, + 61 * + COUNT ( * ) + - + 26 - + 16, + 67 * 84 ) + 64 + + 76 * - COUNT ( - 59 ) - - COUNT ( * ) ) * 14 - - 81
----
-829

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL - + COUNT( * ) + 69
----
68

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - + COUNT ( * ) + 69
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT ALL 17 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL 17 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 21 * + 8 col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT DISTINCT + - ( - 11 ) + - COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + - ( - 11 ) + - COUNT ( * ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT 79 + + 4 + + - COUNT( 42 ) * 36 * - 67 AS col0
----
2495

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT 79 + + 4 + + - COUNT ( 42 ) * 36 * - 67 AS col0
----
2495

query I rowsort
SELECT - ( + 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9567
SELECT + 58, CAST( NULL AS SIGNED ) AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-9567
SELECT + 58, CAST ( NULL AS INTEGER ) AS col0
----
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL COUNT( * ) * - MIN( + + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL COUNT ( * ) * - MIN ( + + 38 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9569
SELECT 7 + - ( + 90 ) + - + COUNT( * ) + + 83 + + 90 * + - 32 + - 6 * - 74 DIV COUNT( * ) * + 71 * - - 17 * 47
----
25184795

skipif mysql # not compatible
query I rowsort label-9569
SELECT 7 + - ( + 90 ) + - + COUNT ( * ) + + 83 + + 90 * + - 32 + - 6 * - 74 / COUNT ( * ) * + 71 * - - 17 * 47
----
25184795

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9570
SELECT DISTINCT 99 + - ( - 8 ) * CAST( NULL AS SIGNED ) * 27 AS col1, - 69
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-9570
SELECT DISTINCT 99 + - ( - 8 ) * CAST ( NULL AS INTEGER ) * 27 AS col1, - 69
----
NULL
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT DISTINCT ( + 89 ) DIV - + 74 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT ( + 89 ) / - + 74 col2
----
-1

query I rowsort
SELECT 33 + - 91 * - 9
----
852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9573
SELECT ALL + 65 * + MIN( - CAST( NULL AS SIGNED ) ) AS col0, 6 - - ( + + 59 )
----
NULL
65

skipif mysql # not compatible
query II rowsort label-9573
SELECT ALL + 65 * + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0, 6 - - ( + + 59 )
----
NULL
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9574
SELECT NULLIF ( - 59, - 36 DIV 43 ) DIV - 29
----
2

skipif mysql # not compatible
query I rowsort label-9574
SELECT NULLIF ( - 59, - 36 / 43 ) / - 29
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9575
SELECT DISTINCT CAST( 58 AS SIGNED ) DIV 78 + - - 93 + - MIN( DISTINCT - + 48 ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT CAST ( 58 AS INTEGER ) / 78 + - - 93 + - MIN ( DISTINCT - + 48 ) AS col1
----
141

query I rowsort
SELECT 23 * 74 * + 57
----
97014

query I rowsort
SELECT 58 * + 5
----
290

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9578
SELECT 61 * - NULLIF ( - + CAST( NULL AS DECIMAL ), + + ( - - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT 61 * - NULLIF ( - + CAST ( NULL AS REAL ), + + ( - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT 68 + 45 col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT 71 * - - COUNT( * ) * - 63
----
-4473

skipif mysql # not compatible
query I rowsort label-9580
SELECT 71 * - - COUNT ( * ) * - 63
----
-4473

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT 77 + + - COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9581
SELECT 77 + + - COUNT ( * ) AS col1
----
76

query I rowsort
SELECT 61 * 51 AS col2
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT MIN( ALL 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT MIN ( ALL 29 )
----
29

query I rowsort
SELECT ( 2 ) * 29
----
58

query I rowsort
SELECT 86 * - 78 col1
----
-6708

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT + 29 DIV 87 - - 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9586
SELECT + 29 / 87 - - 14 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT ALL - NULLIF ( + 69, - COALESCE ( 38, - COUNT( * ) * CAST( NULL AS SIGNED ) ) * 67 ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL - NULLIF ( + 69, - COALESCE ( 38, - COUNT ( * ) * CAST ( NULL AS INTEGER ) ) * 67 ) col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL 23 * COALESCE ( - 4 * + 4, MAX( - 90 ) ) + - 47 AS col2
----
-415

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL 23 * COALESCE ( - 4 * + 4, MAX ( - 90 ) ) + - 47 AS col2
----
-415

query I rowsort
SELECT 76 * - 58
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT COALESCE ( + 48, COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9590
SELECT COALESCE ( + 48, COUNT ( * ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL CASE 6 WHEN 27 THEN + COUNT( * ) END * + 15 + COUNT( * ) * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL CASE 6 WHEN 27 THEN + COUNT ( * ) END * + 15 + COUNT ( * ) * - 62
----
NULL

query I rowsort
SELECT ALL 60 * - 5 + + CASE NULLIF ( + 11, + ( 59 ) ) WHEN - 84 THEN NULL WHEN 61 THEN - 55 WHEN 64 THEN NULL END * - 55
----
NULL

query I rowsort
SELECT DISTINCT + 13 * 6 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL + 14 * 72 + - SUM( ALL 88 ) AS col1
----
920

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + 14 * 72 + - SUM ( ALL 88 ) AS col1
----
920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9595
SELECT DISTINCT ( - 85 ) * + 29 + + COUNT( * ) DIV - ( 16 ) AS col1
----
-2465

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT ( - 85 ) * + 29 + + COUNT ( * ) / - ( 16 ) AS col1
----
-2465

query I rowsort
SELECT ALL + 32 * 54 col0
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL 9 * CASE 6 WHEN 66 + - ( SUM( 34 ) ) THEN NULL WHEN 24 THEN COUNT( * ) ELSE NULL END + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL 9 * CASE 6 WHEN 66 + - ( SUM ( 34 ) ) THEN NULL WHEN 24 THEN COUNT ( * ) ELSE NULL END + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + COUNT( * ) * - ( - 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + COUNT ( * ) * - ( - 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 0 * COUNT ( * )
----
0

query I rowsort
SELECT - 70 + 36
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + MAX( DISTINCT 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9601
SELECT + MAX ( DISTINCT 65 ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT - CASE + CAST( - 42 AS SIGNED ) WHEN 30 THEN 70 + 54 WHEN 20 * 23 THEN NULL ELSE + COUNT( * ) + - 50 END * + 55 + 45
----
2740

skipif mysql # not compatible
query I rowsort label-9602
SELECT - CASE + CAST ( - 42 AS INTEGER ) WHEN 30 THEN 70 + 54 WHEN 20 * 23 THEN NULL ELSE + COUNT ( * ) + - 50 END * + 55 + 45
----
2740

query I rowsort
SELECT DISTINCT + 71 * 80 - 45
----
5635

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9604
SELECT ALL ( 96 ) * - CAST( CAST( 15 AS SIGNED ) DIV NULLIF ( 6, - 37 * CAST( NULL AS SIGNED ) ) + 87 AS SIGNED )
----
-8544

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL ( 96 ) * - CAST ( CAST ( 15 AS INTEGER ) / NULLIF ( 6, - 37 * CAST ( NULL AS INTEGER ) ) + 87 AS INTEGER )
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + MAX( DISTINCT - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9605
SELECT + MAX ( DISTINCT - 17 ) AS col2
----
-17

query I rowsort
SELECT ALL COALESCE ( + 81, 62 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT ALL + CAST( NULL AS SIGNED ) * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + CAST ( NULL AS INTEGER ) * + 39 AS col0
----
NULL

query I rowsort
SELECT - 4 * - 67
----
268

query I rowsort
SELECT ALL ( 67 ) * + 65
----
4355

query I rowsort
SELECT - 21 - + 39 * - 26 AS col2
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT 50 * - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT 50 * - COUNT ( * ) AS col2
----
-50

query I rowsort
SELECT + ( + 63 ) * 52 AS col1
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT + MAX( ALL 7 ) * - 33 AS col1
----
-231

skipif mysql # not compatible
query I rowsort label-9613
SELECT + MAX ( ALL 7 ) * - 33 AS col1
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - ( NULLIF ( COUNT( * ), 77 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9614
SELECT - ( NULLIF ( COUNT ( * ), 77 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL ( - NULLIF ( 0, + COUNT( * ) * COUNT( * ) + + 39 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL ( - NULLIF ( 0, + COUNT ( * ) * COUNT ( * ) + + 39 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT DISTINCT + 80 * + COUNT( * ) col0
----
80

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT + 80 * + COUNT ( * ) col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT ALL 38 DIV 11 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL 38 / 11 AS col2
----
3

query I rowsort
SELECT + 44 - 77
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT DISTINCT 27 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT 27 / 35
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9621
SELECT + 96 DIV COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9621
SELECT + 96 / COUNT ( * )
----
96

query I rowsort
SELECT + 66 * COALESCE ( 35, + 18 ) AS col0
----
2310

query I rowsort
SELECT ALL NULLIF ( 40, 63 ) + 56
----
96

query I rowsort
SELECT + + 16 + - 77
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL - 47 + COUNT( 49 )
----
-46

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL - 47 + COUNT ( 49 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT + - 41 + + COUNT( * ) * + 98 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9626
SELECT + - 41 + + COUNT ( * ) * + 98 AS col1
----
57

query I rowsort
SELECT - - 36 - + 13 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL - COUNT( * ) * MIN( DISTINCT + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL - COUNT ( * ) * MIN ( DISTINCT + 33 ) AS col1
----
-33

query I rowsort
SELECT + + 67 + - 23 * 26 AS col0
----
-531

query I rowsort
SELECT DISTINCT + 97 * - 35 AS col2
----
-3395

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9631
SELECT ALL 66 DIV CAST( 17 AS SIGNED ) + - 42 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL 66 / CAST ( 17 AS INTEGER ) + - 42 AS col0
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9632
SELECT DISTINCT 3 / - CAST( NULL AS DECIMAL ) + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT 3 / - CAST ( NULL AS REAL ) + 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9633
SELECT ALL - - 74 DIV - MAX( DISTINCT 9 ) + - 96
----
-104

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - - 74 / - MAX ( DISTINCT 9 ) + - 96
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT - + 72 DIV - 33 + + 29
----
31

skipif mysql # not compatible
query I rowsort label-9634
SELECT - + 72 / - 33 + + 29
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT + - SUM( + ( - 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT + - SUM ( + ( - 36 ) )
----
36

query I rowsort
SELECT ALL + ( 86 ) col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT ALL + - 54 DIV 68 + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + - 54 / 68 + - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + + COUNT( 92 ) * 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9638
SELECT + + COUNT ( 92 ) * 83 AS col2
----
83

query I rowsort
SELECT - + 59 * + 87 AS col1
----
-5133

query I rowsort
SELECT ( 46 ) AS col1
----
46

query I rowsort
SELECT DISTINCT - 83 * + + 95 AS col0
----
-7885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9642
SELECT ALL 28 DIV ( - COUNT( ALL - 85 ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL 28 / ( - COUNT ( ALL - 85 ) ) AS col0
----
-28

query I rowsort
SELECT - 58 - + 99
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT + CASE 33 WHEN 57 THEN 35 * 3 ELSE NULL END * - COUNT( * ) - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT + CASE 33 WHEN 57 THEN 35 * 3 ELSE NULL END * - COUNT ( * ) - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL + MAX( + - 80 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + MAX ( + - 80 ) col0
----
-80

query I rowsort
SELECT DISTINCT - ( - 75 ) * 58 AS col0
----
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT NULLIF ( + 77, CAST( 95 AS SIGNED ) * ( CAST( NULL AS SIGNED ) + 63 ) + - 5 ) * + CASE - 44 WHEN 93 THEN 30 + - 6 WHEN 52 / + 79 THEN + 1 * - 72 END + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT NULLIF ( + 77, CAST ( 95 AS INTEGER ) * ( CAST ( NULL AS INTEGER ) + 63 ) + - 5 ) * + CASE - 44 WHEN 93 THEN 30 + - 6 WHEN 52 / + 79 THEN + 1 * - 72 END + - 58
----
NULL

query I rowsort
SELECT - 4 * 48 * 48 AS col2
----
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - 10 * ( COALESCE ( + ( 95 ), - MIN( ALL - 81 ) * + 39, 44 + SUM( DISTINCT ( 31 ) ), + 98 ) )
----
-950

skipif mysql # not compatible
query I rowsort label-9649
SELECT - 10 * ( COALESCE ( + ( 95 ), - MIN ( ALL - 81 ) * + 39, 44 + SUM ( DISTINCT ( 31 ) ), + 98 ) )
----
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT 29 * + + 5 + 29 DIV ( + 59 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-9650
SELECT 29 * + + 5 + 29 / ( + 59 ) AS col0
----
145

query I rowsort
SELECT - 80 * + - 81 * - 43 AS col2
----
-278640

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT COALESCE ( - COUNT( * ), CASE 36 WHEN COALESCE ( - 36, + ( COUNT( ALL ( 83 ) ) ) + 8 / 45, + 96 ) + + 32 * + 54 THEN 98 END )
----
-1

skipif mysql # not compatible
query I rowsort label-9652
SELECT COALESCE ( - COUNT ( * ), CASE 36 WHEN COALESCE ( - 36, + ( COUNT ( ALL ( 83 ) ) ) + 8 / 45, + 96 ) + + 32 * + 54 THEN 98 END )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9653
SELECT - 98 + - - 85 + + 9 * ( - CAST( NULL AS DECIMAL ) + 92 * 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 98 + - - 85 + + 9 * ( - CAST ( NULL AS REAL ) + 92 * 86 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT CAST( ( - 91 ) AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT CAST ( ( - 91 ) AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT - 74 + - 4 + - NULLIF ( 32, 33 * COUNT( * ) ) AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-9655
SELECT - 74 + - 4 + - NULLIF ( 32, 33 * COUNT ( * ) ) AS col1
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT ALL COALESCE ( + 28, 13 DIV COUNT( * ) - 65 * 72, 81 * 35 + COUNT( * ), 79 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL COALESCE ( + 28, 13 / COUNT ( * ) - 65 * 72, 81 * 35 + COUNT ( * ), 79 ) AS col0
----
28

query I rowsort
SELECT ALL ( + 63 ) col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT - CASE - 5 WHEN 82 * - 67 THEN - COUNT( * ) WHEN 14 * - ( - 96 ) THEN + 91 + + CAST( NULL AS SIGNED ) ELSE 19 END + + 27
----
8

skipif mysql # not compatible
query I rowsort label-9658
SELECT - CASE - 5 WHEN 82 * - 67 THEN - COUNT ( * ) WHEN 14 * - ( - 96 ) THEN + 91 + + CAST ( NULL AS INTEGER ) ELSE 19 END + + 27
----
8

query I rowsort
SELECT DISTINCT ( - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL 34 * + COUNT( * ) + - 79 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL 34 * + COUNT ( * ) + - 79 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - COUNT( * ) + - COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-9661
SELECT - COUNT ( * ) + - COUNT ( * ) col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL CAST( + ( + 23 ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL CAST ( + ( + 23 ) AS INTEGER )
----
23

query I rowsort
SELECT DISTINCT - 21 + + 61 * - 27
----
-1668

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT + SUM( DISTINCT + CASE + COALESCE ( - 36, 36 * - 75 ) WHEN - 97 + 31 * 90 THEN - 64 * - 93 WHEN + 48 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT + SUM ( DISTINCT + CASE + COALESCE ( - 36, 36 * - 75 ) WHEN - 97 + 31 * 90 THEN - 64 * - 93 WHEN + 48 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT + + 56 + 53
----
109

query I rowsort
SELECT ALL + 51 + 38 col2
----
89

query I rowsort
SELECT - NULLIF ( - - 71, 43 ) AS col2
----
-71

query I rowsort
SELECT + COALESCE ( - - 51, ( NULLIF ( 42, ( - 12 ) + - COALESCE ( 60, 25, - 69 ) * 92 ) ) + 15, 65 + ( 55 ) )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9669
SELECT - + 70 * COUNT( * ) DIV 67
----
-1

skipif mysql # not compatible
query I rowsort label-9669
SELECT - + 70 * COUNT ( * ) / 67
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT + CAST( + ( + 76 ) AS SIGNED ) + + COUNT( * ) * + 27 AS col2
----
103

skipif mysql # not compatible
query I rowsort label-9670
SELECT + CAST ( + ( + 76 ) AS INTEGER ) + + COUNT ( * ) * + 27 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL COUNT( * ) * + - 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL COUNT ( * ) * + - 6 AS col0
----
-6

query I rowsort
SELECT DISTINCT + 68 + - 29 col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT + - 64 + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT + - 64 + + COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL MAX( + 3 ) + + 44
----
47

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL MAX ( + 3 ) + + 44
----
47

query I rowsort
SELECT + 6 * + 93
----
558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT SUM( + 69 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT SUM ( + 69 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT 45 DIV 73 * COALESCE ( - 71, 69 * + CASE + 86 WHEN + COALESCE ( 57, 74 ) * + 35 THEN 64 END, ( - 96 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT 45 / 73 * COALESCE ( - 71, 69 * + CASE + 86 WHEN + COALESCE ( 57, 74 ) * + 35 THEN 64 END, ( - 96 ) )
----
0

query I rowsort
SELECT ALL + 74 - + + ( 93 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT 87 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT 87 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9680
SELECT ALL 72 * - CAST( NULL AS DECIMAL ) / COUNT( + 95 ) + - COUNT( * ) * 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL 72 * - CAST ( NULL AS REAL ) / COUNT ( + 95 ) + - COUNT ( * ) * 82 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT + CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-9681
SELECT + CAST ( + 67 AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT NULLIF ( MAX( + 4 ), + ( 54 ) )
----
4

skipif mysql # not compatible
query I rowsort label-9682
SELECT NULLIF ( MAX ( + 4 ), + ( 54 ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT 76 * + CAST( NULL AS SIGNED ) / + ( 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT 76 * + CAST ( NULL AS INTEGER ) / + ( 60 )
----
NULL

query II rowsort
SELECT ALL - 62, 0 AS col1
----
-62
0

query I rowsort
SELECT 36 - + 93 AS col1
----
-57

query II rowsort
SELECT DISTINCT - 75 AS col1, 5
----
-75
5

query I rowsort
SELECT DISTINCT 40 * + ( 86 ) AS col2
----
3440

query II rowsort
SELECT 5 AS col2, + 93 AS col0
----
5
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9689
SELECT + 19, 45 + + 18 + + ( MAX( ALL 69 ) ) AS col2
----
19
132

skipif mysql # not compatible
query II rowsort label-9689
SELECT + 19, 45 + + 18 + + ( MAX ( ALL 69 ) ) AS col2
----
19
132

query I rowsort
SELECT 62 * - + 78 AS col1
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ( 11 ) + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9691
SELECT ( 11 ) + COUNT ( * ) AS col0
----
12

query II rowsort
SELECT + 75 AS col0, 13 AS col1
----
75
13

query I rowsort
SELECT ALL - COALESCE ( - 80, - - 93 ) col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT - 52 + MAX( - + 80 )
----
-132

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - 52 + MAX ( - + 80 )
----
-132

query I rowsort
SELECT ALL - ( 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL - MAX( - 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - MAX ( - 81 ) AS col0
----
81

query II rowsort
SELECT + 89 AS col2, - 18
----
89
-18

query II rowsort
SELECT DISTINCT 91, - 4 + 77 - - 62 * 32 * 64 AS col0
----
91
127049

query I rowsort
SELECT DISTINCT + 89 + + + 52 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT COUNT( + + 88 ) * + + 88 * - 79
----
-6952

skipif mysql # not compatible
query I rowsort label-9700
SELECT COUNT ( + + 88 ) * + + 88 * - 79
----
-6952

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT 57 - ( + 75 ) + 8 DIV - 3 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9701
SELECT 57 - ( + 75 ) + 8 / - 3 AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT - + CAST( + + 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9702
SELECT - + CAST ( + + 95 AS INTEGER ) AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT - 88 DIV 72 * + - 14 * + 66 + - 9
----
915

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 88 / 72 * + - 14 * + 66 + - 9
----
915

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT ALL + 4, COUNT( * ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-9704
SELECT ALL + 4, COUNT ( * ) AS col2
----
4
1

query I rowsort
SELECT 63 * + 43 AS col2
----
2709

query I rowsort
SELECT ALL - - 74 + 35 AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9707
SELECT DISTINCT 4, 71 DIV - 76 * ( NULLIF ( - 89, COUNT( * ) ) * - 7 ) AS col2
----
4
0

skipif mysql # not compatible
query II rowsort label-9707
SELECT DISTINCT 4, 71 / - 76 * ( NULLIF ( - 89, COUNT ( * ) ) * - 7 ) AS col2
----
4
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT ALL + COALESCE ( + + 67, - + 1 + COUNT( * ) DIV + 50, + 19 ) + - 77
----
-10

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL + COALESCE ( + + 67, - + 1 + COUNT ( * ) / + 50, + 19 ) + - 77
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT COUNT( * ) - + 87 col2
----
-86

skipif mysql # not compatible
query I rowsort label-9709
SELECT COUNT ( * ) - + 87 col2
----
-86

query I rowsort
SELECT ALL - COALESCE ( + 45, - - 41, + 10, + 27, 79 ) * ( 6 ) AS col0
----
-270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9711
SELECT COUNT( ALL + - 18 ) + ( + ( 6 ) ) DIV - 39 col1
----
1

skipif mysql # not compatible
query I rowsort label-9711
SELECT COUNT ( ALL + - 18 ) + ( + ( 6 ) ) / - 39 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT - 60, + COUNT( * ) AS col0
----
-60
1

skipif mysql # not compatible
query II rowsort label-9712
SELECT - 60, + COUNT ( * ) AS col0
----
-60
1

query I rowsort
SELECT ALL + + 86 - - - 93
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT - 94 AS col2, ( 35 ) + SUM( + ( + 82 ) )
----
-94
117

skipif mysql # not compatible
query II rowsort label-9714
SELECT - 94 AS col2, ( 35 ) + SUM ( + ( + 82 ) )
----
-94
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL - 4 * + + CASE + - 88 WHEN - 97 THEN NULL ELSE ( - COUNT( 82 ) ) + 52 END
----
-204

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - 4 * + + CASE + - 88 WHEN - 97 THEN NULL ELSE ( - COUNT ( 82 ) ) + 52 END
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9716
SELECT - 4 + ( CAST( NULL AS SIGNED ) ) / ( CAST( COUNT( * ) AS DECIMAL ) + 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 4 + ( CAST ( NULL AS INTEGER ) ) / ( CAST ( COUNT ( * ) AS REAL ) + 32 ) AS col1
----
NULL

query I rowsort
SELECT 9 * + 46 * - 79 - 54
----
-32760

query I rowsort
SELECT 12 + - ( + - 86 )
----
98

query II rowsort
SELECT ALL - 99 AS col0, 96 AS col1
----
-99
96

query I rowsort
SELECT ALL 61 * - 60 * 10 * 20 AS col2
----
-732000

query I rowsort
SELECT 58 + 71
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL - 43 * ( + 84 ) + + CASE WHEN 42 + 80 IS NULL THEN 36 * SUM( 96 ) + 9 WHEN NOT NULL = - COUNT( * ) * 58 + - 63 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - 43 * ( + 84 ) + + CASE WHEN 42 + 80 IS NULL THEN 36 * SUM ( 96 ) + 9 WHEN NOT NULL = - COUNT ( * ) * 58 + - 63 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT MIN( + + 98 ) * + - 74 AS col1
----
-7252

skipif mysql # not compatible
query I rowsort label-9723
SELECT MIN ( + + 98 ) * + - 74 AS col1
----
-7252

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT ALL - 79, - COUNT( * ) AS col1
----
-79
-1

skipif mysql # not compatible
query II rowsort label-9724
SELECT ALL - 79, - COUNT ( * ) AS col1
----
-79
-1

query I rowsort
SELECT - 71 * + - NULLIF ( + + 44, 55 ) + - 4
----
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9726
SELECT ALL 29 DIV + 82, COALESCE ( + - CAST( NULL AS SIGNED ), COUNT( * ) ) * + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9726
SELECT ALL 29 / + 82, COALESCE ( + - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * + COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT COUNT( * ) * + ( - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-9727
SELECT COUNT ( * ) * + ( - + 16 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9728
SELECT COALESCE ( ( COUNT( * ) ), + + 86 DIV 59 ) DIV - 52 + + 64
----
64

skipif mysql # not compatible
query I rowsort label-9728
SELECT COALESCE ( ( COUNT ( * ) ), + + 86 / 59 ) / - 52 + + 64
----
64

query I rowsort
SELECT 17 * 20
----
340

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT ALL ( - + 29 ) DIV + CASE - + 68 WHEN 12 * 93 + + 67 THEN NULL WHEN 38 THEN NULL ELSE 80 END
----
0

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL ( - + 29 ) / + CASE - + 68 WHEN 12 * 93 + + 67 THEN NULL WHEN 38 THEN NULL ELSE 80 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT COUNT( * ) + - 4 col1
----
-3

skipif mysql # not compatible
query I rowsort label-9731
SELECT COUNT ( * ) + - 4 col1
----
-3

query I rowsort
SELECT 42 * - 9 AS col1
----
-378

query I rowsort
SELECT ALL - ( 44 ) + + 68 AS col1
----
24

query I rowsort
SELECT DISTINCT 86 + - - ( ( - - 21 ) ) * 68 AS col2
----
1514

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + MIN( DISTINCT - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-9735
SELECT + MIN ( DISTINCT - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL 62 + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL 62 + COUNT ( * ) AS col1
----
63

query I rowsort
SELECT ALL 21 + + 20 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT MAX( ALL - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-9738
SELECT MAX ( ALL - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL COUNT( * ) * + ( + 98 ) * 1 + 30 * 57 AS col1
----
1808

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL COUNT ( * ) * + ( + 98 ) * 1 + 30 * 57 AS col1
----
1808

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - NULLIF ( - - 82, + - COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - NULLIF ( - - 82, + - COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT COUNT( ALL - + 11 )
----
1

skipif mysql # not compatible
query I rowsort label-9741
SELECT COUNT ( ALL - + 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT ALL 27 + + + MIN( 25 ) + - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL 27 + + + MIN ( 25 ) + - COUNT ( * ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT + COALESCE ( 47, - COALESCE ( + CAST( + ( + AVG ( DISTINCT 22 ) ) AS SIGNED ), + 73, + 33 ), 6 )
----
47

skipif mysql # not compatible
query I rowsort label-9743
SELECT + COALESCE ( 47, - COALESCE ( + CAST ( + ( + AVG ( DISTINCT 22 ) ) AS INTEGER ), + 73, + 33 ), 6 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT CAST( - + 33 AS SIGNED ) + + CAST( NULL AS SIGNED ) + + + 11 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT CAST ( - + 33 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + + 11 + 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9745
SELECT - 57 * - - CAST( NULL AS SIGNED ) - + ( - 97 ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9745
SELECT - 57 * - - CAST ( NULL AS INTEGER ) - + ( - 97 ) * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL - COUNT( * ) + - 70
----
-71

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - COUNT ( * ) + - 70
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL + - 26 + 54 * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL + - 26 + 54 * + COUNT ( * )
----
28

query I rowsort
SELECT ALL - 68 - 8 - - 0
----
-76

query I rowsort
SELECT - - 4 * + + 79 + 62
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT - COUNT( * ) + - + 73 * ( - + 29 ) + - CAST( - 68 AS SIGNED ) * + 47
----
5312

skipif mysql # not compatible
query I rowsort label-9750
SELECT - COUNT ( * ) + - + 73 * ( - + 29 ) + - CAST ( - 68 AS INTEGER ) * + 47
----
5312

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT + - NULLIF ( COUNT( * ), - - COUNT( * ) ) * - + AVG ( DISTINCT 58 ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT + - NULLIF ( COUNT ( * ), - - COUNT ( * ) ) * - + AVG ( DISTINCT 58 ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT - 66 * - 41 * - + CASE + 3 WHEN + COUNT( * ) THEN 32 ELSE NULL END - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - 66 * - 41 * - + CASE + 3 WHEN + COUNT ( * ) THEN 32 ELSE NULL END - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL 5 - - - COUNT( + + 15 )
----
4

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL 5 - - - COUNT ( + + 15 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT + 79 * CAST( 93 AS SIGNED ) + + 0
----
7347

skipif mysql # not compatible
query I rowsort label-9754
SELECT + 79 * CAST ( 93 AS INTEGER ) + + 0
----
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT - COUNT( * ) + - 45
----
-46

skipif mysql # not compatible
query I rowsort label-9755
SELECT - COUNT ( * ) + - 45
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT NULLIF ( - COUNT( * ), + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT NULLIF ( - COUNT ( * ), + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT NULLIF ( 97, - + 60 * + COALESCE ( - 55, 55 + - 46 ) + 7 * + 68 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT - + 47 + + CAST( NULL AS SIGNED ) + + ( - 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT - + 47 + + CAST ( NULL AS INTEGER ) + + ( - 60 ) AS col0
----
NULL

query II rowsort
SELECT - 15 * + + 39 AS col0, + 16 * - + 74 AS col1
----
-585
-1184

query I rowsort
SELECT ALL ( + - 56 ) AS col2
----
-56

query I rowsort
SELECT DISTINCT COALESCE ( + 46, 81, + 38 - 6 + - 68 )
----
46

query I rowsort
SELECT - 81 - + 64 AS col0
----
-145

query II rowsort
SELECT + 10, - ( - 66 ) AS col0
----
10
66

query I rowsort
SELECT - 57 - + + 47
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + SUM( DISTINCT + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-9765
SELECT + SUM ( DISTINCT + 16 )
----
16

query I rowsort
SELECT - 75 * + 74 AS col2
----
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL + 92 * - ( + - 0 ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + 92 * - ( + - 0 ) + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9768
SELECT + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 16 * + 46 * + + 44 * - 2 * - + 45 + ( - 77 )
----
2914483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT + COUNT( * ) * - 70 * - 71 * + - 7 + + + 16 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT + COUNT ( * ) * - 70 * - 71 * + - 7 + + + 16 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT DISTINCT 41 * + + 22 + + - ( - ( NULLIF ( + 16, - 44 ) ) ) DIV + 25 col1
----
902

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT 41 * + + 22 + + - ( - ( NULLIF ( + 16, - 44 ) ) ) / + 25 col1
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT NULLIF ( 77, - 88 / + - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-9772
SELECT NULLIF ( 77, - 88 / + - COUNT ( * ) )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT CASE - 30 WHEN - 97 THEN + 87 * - 81 * + 0 - 83 WHEN - 93 / + COUNT( * ) + + COUNT( * ) THEN 20 / + 31 + + CASE - 99 + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN + 52 + 14 END / COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT CASE - 30 WHEN - 97 THEN + 87 * - 81 * + 0 - 83 WHEN - 93 / + COUNT ( * ) + + COUNT ( * ) THEN 20 / + 31 + + CASE - 99 + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN + 52 + 14 END / COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL 47 * CASE WHEN NOT ( + COUNT( 68 ) ) IS NOT NULL THEN + 48 * - NULLIF ( + 83, + 3 + - 66 * 85 ) + 44 * - 59 WHEN - 87 IS NULL THEN NULL ELSE NULL END + - AVG ( 47 ) * + ( - 22 - + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL 47 * CASE WHEN NOT ( + COUNT ( 68 ) ) IS NOT NULL THEN + 48 * - NULLIF ( + 83, + 3 + - 66 * 85 ) + 44 * - 59 WHEN - 87 IS NULL THEN NULL ELSE NULL END + - AVG ( 47 ) * + ( - 22 - + 11 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL 16 * - COUNT( * ) + - 95 * - + 78 AS col0
----
7394

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL 16 * - COUNT ( * ) + - 95 * - + 78 AS col0
----
7394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9776
SELECT - COALESCE ( + COUNT( * ), COUNT( * ) + + 17 * COUNT( * ) ) DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT - COALESCE ( + COUNT ( * ), COUNT ( * ) + + 17 * COUNT ( * ) ) / + 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT NULLIF ( 82, - MIN( - 40 ) )
----
82

skipif mysql # not compatible
query I rowsort label-9777
SELECT NULLIF ( 82, - MIN ( - 40 ) )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT + COALESCE ( + ( - 20 ), + + 65 * + ( COUNT( * ) ) - + CAST( NULL AS SIGNED ) * - 60, + 91 )
----
-20

skipif mysql # not compatible
query I rowsort label-9778
SELECT + COALESCE ( + ( - 20 ), + + 65 * + ( COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) * - 60, + 91 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT COUNT( * ) * - 34 + + 20
----
-14

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT COUNT ( * ) * - 34 + + 20
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT - ( - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - ( - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 33
----
NULL

query I rowsort
SELECT + 50 * - 99 AS col0
----
-4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL NULLIF ( + + COUNT( * ), - SUM( ALL + CAST( + 31 AS SIGNED ) ) ) * + 90 - - 11
----
101

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL NULLIF ( + + COUNT ( * ), - SUM ( ALL + CAST ( + 31 AS INTEGER ) ) ) * + 90 - - 11
----
101

query I rowsort
SELECT ALL 32 * 96 col2
----
3072

query I rowsort
SELECT + ( - 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - MIN( + 89 ) * - 58 AS col0
----
5162

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - MIN ( + 89 ) * - 58 AS col0
----
5162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9786
SELECT ALL 89 * COALESCE ( MIN( DISTINCT - 61 ), + CAST( NULL AS SIGNED ), 76 * + COUNT( * ), 47 )
----
-5429

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL 89 * COALESCE ( MIN ( DISTINCT - 61 ), + CAST ( NULL AS INTEGER ), 76 * + COUNT ( * ), 47 )
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + + COUNT( * ) - + 57 * + 57
----
-3248

skipif mysql # not compatible
query I rowsort label-9787
SELECT + + COUNT ( * ) - + 57 * + 57
----
-3248

query I rowsort
SELECT ( NULLIF ( 14, + 60 * - 85 ) ) AS col1
----
14

query I rowsort
SELECT + 77 * - ( 74 ) - + - 37
----
-5661

onlyif mysql # aggregate syntax: 
query II rowsort label-9790
SELECT ALL + NULLIF ( - 92, - + 3 ) AS col0, - COALESCE ( - + COUNT( * ), - 8, 48 ) + + 65 * - 97
----
-92
-6304

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL + NULLIF ( - 92, - + 3 ) AS col0, - COALESCE ( - + COUNT ( * ), - 8, 48 ) + + 65 * - 97
----
-92
-6304

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + + MAX( + - 55 ) + - 37 + + + MIN( 92 ) * - 76
----
-7084

skipif mysql # not compatible
query I rowsort label-9791
SELECT + + MAX ( + - 55 ) + - 37 + + + MIN ( 92 ) * - 76
----
-7084

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT MIN( DISTINCT 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9792
SELECT MIN ( DISTINCT 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT DISTINCT CASE - COUNT( * ) WHEN - 87 THEN NULL WHEN 60 THEN 83 ELSE + ( + SUM( ALL 40 ) ) + - 23 END
----
17

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 87 THEN NULL WHEN 60 THEN 83 ELSE + ( + SUM ( ALL 40 ) ) + - 23 END
----
17

query I rowsort
SELECT ALL + + 56 * - + 20 AS col0
----
-1120

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT + + 32 * 98 DIV + - 87 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9795
SELECT + + 32 * 98 / + - 87 AS col1
----
-36

query I rowsort
SELECT + 22 - + ( + 80 )
----
-58

query I rowsort
SELECT DISTINCT + + 6 * 56
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT DISTINCT + 93 DIV - 76 + 52 - + CASE COALESCE ( 14, 93 + - 65 DIV + 61 ) WHEN 99 THEN NULL WHEN COUNT( * ) THEN + 31 ELSE COUNT( * ) + - 20 END * 68
----
1343

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT + 93 / - 76 + 52 - + CASE COALESCE ( 14, 93 + - 65 / + 61 ) WHEN 99 THEN NULL WHEN COUNT ( * ) THEN + 31 ELSE COUNT ( * ) + - 20 END * 68
----
1343

query I rowsort
SELECT + 79 + 3 * - 39 * - CASE + + 85 WHEN 66 + 59 THEN - 16 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - 49 * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9800
SELECT - 49 * - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT DISTINCT + 44 + + CASE - - 24 WHEN - 62 * 49 * 52 THEN NULL WHEN - ( 85 ) + - 8 THEN NULL ELSE 7 END
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + 82 + SUM( + 92 )
----
174

skipif mysql # not compatible
query I rowsort label-9802
SELECT + 82 + SUM ( + 92 )
----
174

query I rowsort
SELECT ALL - 20 + + 49
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT + 58 + + 62 * 5 + - CAST( 41 AS SIGNED ) * - 30 AS col0
----
1598

skipif mysql # not compatible
query I rowsort label-9804
SELECT + 58 + + 62 * 5 + - CAST ( 41 AS INTEGER ) * - 30 AS col0
----
1598

query I rowsort
SELECT - 64 - - 86 * - 73
----
-6342

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT COALESCE ( - + 66, - + 32 ) * + MIN( - + 91 ) * + 85 * 5 - 78 AS col1
----
2552472

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT COALESCE ( - + 66, - + 32 ) * + MIN ( - + 91 ) * + 85 * 5 - 78 AS col1
----
2552472

onlyif mysql # aggregate syntax: 
query II rowsort label-9807
SELECT ALL + 48 + + - 70 AS col0, - 35 * + 15 * + + COUNT( * ) AS col0
----
-22
-525

skipif mysql # not compatible
query II rowsort label-9807
SELECT ALL + 48 + + - 70 AS col0, - 35 * + 15 * + + COUNT ( * ) AS col0
----
-22
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9808
SELECT ALL - 64 DIV - 20 + - - COUNT( * ) col0
----
4

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - 64 / - 20 + - - COUNT ( * ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT - 28 * COUNT( * ) * + 78
----
-2184

skipif mysql # not compatible
query I rowsort label-9809
SELECT - 28 * COUNT ( * ) * + 78
----
-2184

query I rowsort
SELECT ALL + NULLIF ( + + 36, - + 92 * + + 57 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL CAST( NULL AS SIGNED ) / 52 + COUNT( - 3 ) * + ( 25 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL CAST ( NULL AS INTEGER ) / 52 + COUNT ( - 3 ) * + ( 25 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9812
SELECT 45 col1, SUM( DISTINCT 7 ) * - 65 - + - 35 DIV + 1 + - COALESCE ( 4, + 57 * + 41, 83 ) AS col0
----
45
-424

skipif mysql # not compatible
query II rowsort label-9812
SELECT 45 col1, SUM ( DISTINCT 7 ) * - 65 - + - 35 / + 1 + - COALESCE ( 4, + 57 * + 41, 83 ) AS col0
----
45
-424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT DISTINCT + COUNT( * ) - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + COUNT ( * ) - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9814
SELECT DISTINCT - COUNT( * ) - + SUM( - - ( - - 0 ) ) col0, + 97 + + 33 AS col1
----
-1
130

skipif mysql # not compatible
query II rowsort label-9814
SELECT DISTINCT - COUNT ( * ) - + SUM ( - - ( - - 0 ) ) col0, + 97 + + 33 AS col1
----
-1
130

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9815
SELECT ALL + 13 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + 13 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9816
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9816
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT DISTINCT - 63 col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT + CAST( - + 17 AS SIGNED ) + - 99
----
-116

skipif mysql # not compatible
query I rowsort label-9818
SELECT + CAST ( - + 17 AS INTEGER ) + - 99
----
-116

query I rowsort
SELECT DISTINCT - ( + 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL + + 4 - - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + + 4 - - COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9821
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-9821
SELECT ALL - CAST ( NULL AS REAL ) AS col2, 86
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - 63 * 89 - + COUNT( * ) + 93 * 71 * 19
----
119849

skipif mysql # not compatible
query I rowsort label-9822
SELECT - 63 * 89 - + COUNT ( * ) + 93 * 71 * 19
----
119849

onlyif mysql # DIV for integer division: 
query II rowsort label-9823
SELECT + 31 DIV 89, + 30 AS col0
----
0
30

skipif mysql # not compatible
query II rowsort label-9823
SELECT + 31 / 89, + 30 AS col0
----
0
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT ALL - 16 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - 16 / - - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT COALESCE ( ( + 1 ), + 86 ) + - 67 + + + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-9825
SELECT COALESCE ( ( + 1 ), + 86 ) + - 67 + + + COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT - COUNT( * ) - + ( + 73 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9826
SELECT - COUNT ( * ) - + ( + 73 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL 9 * 99 + - + COUNT( * )
----
890

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL 9 * 99 + - + COUNT ( * )
----
890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT - 97 DIV - - 11 + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 97 / - - 11 + - COUNT ( * )
----
-9

query I rowsort
SELECT ALL 50 + + 86
----
136

query II rowsort
SELECT 78 AS col1, 2
----
78
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - + SUM( - ( 46 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9831
SELECT - + SUM ( - ( 46 ) ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT DISTINCT 7 * + COUNT( * ) col2
----
7

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT 7 * + COUNT ( * ) col2
----
7

query II rowsort
SELECT 53, - 2 AS col0
----
53
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT + COUNT( * ) * NULLIF ( - 22, + 41 )
----
-22

skipif mysql # not compatible
query I rowsort label-9834
SELECT + COUNT ( * ) * NULLIF ( - 22, + 41 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL - 15 + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - 15 + COUNT ( * ) AS col1
----
-14

query II rowsort
SELECT - + 10 AS col2, - 45 * + + 71 + 15
----
-10
-3180

query I rowsort
SELECT ALL + 40 + - 65 AS col1
----
-25

query I rowsort
SELECT ALL 46 + - + 71
----
-25

query II rowsort
SELECT DISTINCT 75 + 66 AS col2, - 17 * + + 22 + 61 AS col0
----
141
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL 10 * - ( - CASE - 71 WHEN + 36 THEN 87 - - + 55 - - ( COUNT( * ) ) * CASE - COUNT( * ) WHEN - 15 * + 37 - 65 THEN NULL WHEN + 59 THEN 34 ELSE NULL END WHEN 55 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL 10 * - ( - CASE - 71 WHEN + 36 THEN 87 - - + 55 - - ( COUNT ( * ) ) * CASE - COUNT ( * ) WHEN - 15 * + 37 - 65 THEN NULL WHEN + 59 THEN 34 ELSE NULL END WHEN 55 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 45 * - - 27 AS col2
----
1215

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9842
SELECT 96 * - 50 col0, CAST( - 2 AS SIGNED ) DIV + 46 - + 10
----
-4800
-10

skipif mysql # not compatible
query II rowsort label-9842
SELECT 96 * - 50 col0, CAST ( - 2 AS INTEGER ) / + 46 - + 10
----
-4800
-10

query I rowsort
SELECT ALL - COALESCE ( - 90, + 83 + + + 30 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT ALL 68 * 19 AS col2, COUNT( * ) - + 99
----
1292
-98

skipif mysql # not compatible
query II rowsort label-9844
SELECT ALL 68 * 19 AS col2, COUNT ( * ) - + 99
----
1292
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9845
SELECT ALL - 54 DIV 94 * + NULLIF ( 44, + - CAST( NULL AS SIGNED ) ) AS col1, + 61 * - 68
----
0
-4148

skipif mysql # not compatible
query II rowsort label-9845
SELECT ALL - 54 / 94 * + NULLIF ( 44, + - CAST ( NULL AS INTEGER ) ) AS col1, + 61 * - 68
----
0
-4148

query I rowsort
SELECT 86 * 95 * - 42
----
-343140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9847
SELECT ALL - COUNT( * ) DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - COUNT ( * ) / + 68 AS col0
----
0

query I rowsort
SELECT DISTINCT 61 - - 32 * + - 77 + - + 93 AS col0
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9849
SELECT ALL - CAST( 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - CAST ( 80 AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - 82 * + 49 + - COUNT( * ) AS col2
----
-4019

skipif mysql # not compatible
query I rowsort label-9850
SELECT - 82 * + 49 + - COUNT ( * ) AS col2
----
-4019

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT DISTINCT - NULLIF ( - 46, - 4 + COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - NULLIF ( - 46, - 4 + COUNT ( * ) )
----
46

query I rowsort
SELECT DISTINCT - COALESCE ( - - 47, - 3 * - 74 )
----
-47

query I rowsort
SELECT 33 * + + 85 * 79
----
221595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL - + 48 + - + 96 * + 66 - CAST( NULL AS SIGNED ) + + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - + 48 + - + 96 * + 66 - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + 79 + - MAX( ALL - NULLIF ( - 57, + 95 ) ) * ( + - 52 ) * ( + 81 ) AS col0
----
240163

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + 79 + - MAX ( ALL - NULLIF ( - 57, + 95 ) ) * ( + - 52 ) * ( + 81 ) AS col0
----
240163

query I rowsort
SELECT ALL + 4 + 37 * 39 AS col0
----
1447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9857
SELECT + COALESCE ( + 5, - ( CAST( NULL AS SIGNED ) ), + 10 DIV NULLIF ( - + AVG ( + 5 ), - 27 * CAST( CAST( 65 AS DECIMAL ) AS DECIMAL ) ) DIV - 22 - MAX( 62 ) * + 4 ) * + 63 AS col1
----
315

skipif mysql # not compatible
query I rowsort label-9857
SELECT + COALESCE ( + 5, - ( CAST ( NULL AS INTEGER ) ), + 10 / NULLIF ( - + AVG ( + 5 ), - 27 * CAST ( CAST ( 65 AS REAL ) AS REAL ) ) / - 22 - MAX ( 62 ) * + 4 ) * + 63 AS col1
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT ALL - CAST( + + 98 AS SIGNED ) + + 74
----
-24

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL - CAST ( + + 98 AS INTEGER ) + + 74
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT 89 - - + MIN( + - 44 )
----
45

skipif mysql # not compatible
query I rowsort label-9859
SELECT 89 - - + MIN ( + - 44 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - + ( - + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9860
SELECT - + ( - + ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL - 44 + + 42 * - 42
----
-1808

query I rowsort
SELECT - 70 - - 41
----
-29

query I rowsort
SELECT 79 * - 42
----
-3318

query I rowsort
SELECT ALL 28 * + + 12
----
336

query I rowsort
SELECT 52 * - + 13
----
-676

query II rowsort
SELECT - 1 AS col1, 97 AS col2
----
-1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL 22 + + NULLIF ( CASE - COUNT( * ) WHEN - CAST( + 45 AS SIGNED ) * - + 49 / + 99 THEN NULL WHEN - NULLIF ( - COUNT( * ), 68 ) THEN - CASE ( 45 ) WHEN CASE 75 WHEN ( + 78 ) THEN NULL WHEN 67 THEN - 19 ELSE NULL END * 78 THEN NULL WHEN - 73 / + COUNT( * ) + - 86 THEN ( MAX( ALL 3 ) ) / + COUNT( ALL - 3 ) END * - 97 WHEN 7 THEN COUNT( * ) END, CAST( NULL AS SIGNED ) / ( AVG ( - 94 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL 22 + + NULLIF ( CASE - COUNT ( * ) WHEN - CAST ( + 45 AS INTEGER ) * - + 49 / + 99 THEN NULL WHEN - NULLIF ( - COUNT ( * ), 68 ) THEN - CASE ( 45 ) WHEN CASE 75 WHEN ( + 78 ) THEN NULL WHEN 67 THEN - 19 ELSE NULL END * 78 THEN NULL WHEN - 73 / + COUNT ( * ) + - 86 THEN ( MAX ( ALL 3 ) ) / + COUNT ( ALL - 3 ) END * - 97 WHEN 7 THEN COUNT ( * ) END, CAST ( NULL AS INTEGER ) / ( AVG ( - 94 ) ) )
----
NULL

query I rowsort
SELECT 61 - + 22
----
39

query I rowsort
SELECT ALL + 85 - 55 * - 96 AS col0
----
5365

query I rowsort
SELECT DISTINCT 69 * - 89
----
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-9871
SELECT 35, COUNT( * ) + COUNT( * ) - + COUNT( * ) * COUNT( 35 ) * - - 54 * - 88 * 4 AS col0
----
35
19010

skipif mysql # not compatible
query II rowsort label-9871
SELECT 35, COUNT ( * ) + COUNT ( * ) - + COUNT ( * ) * COUNT ( 35 ) * - - 54 * - 88 * 4 AS col0
----
35
19010

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT 80 + - COUNT( * ) * + + MIN( DISTINCT 17 ) * - + 70 + + 90 * - 9 * - 86 AS col2
----
70930

skipif mysql # not compatible
query I rowsort label-9872
SELECT 80 + - COUNT ( * ) * + + MIN ( DISTINCT 17 ) * - + 70 + + 90 * - 9 * - 86 AS col2
----
70930

query II rowsort
SELECT 78 col2, ( + 25 )
----
78
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9874
SELECT - MAX( + - 73 ) + - 35 DIV 71 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9874
SELECT - MAX ( + - 73 ) + - 35 / 71 AS col1
----
73

query I rowsort
SELECT + 45 + + 43 col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9876
SELECT ALL 26, COUNT( * ) + COUNT( * ) AS col2
----
26
2

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL 26, COUNT ( * ) + COUNT ( * ) AS col2
----
26
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT + 62 * + CASE - + 51 WHEN - 69 + - 77 * 44 THEN - 48 WHEN - + 56 THEN COUNT( * ) / - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT + 62 * + CASE - + 51 WHEN - 69 + - 77 * 44 THEN - 48 WHEN - + 56 THEN COUNT ( * ) / - 22 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 56, - 8 )
----
56

query I rowsort
SELECT DISTINCT 91 * - 7 AS col1
----
-637

query I rowsort
SELECT ALL 9 * + 9 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT 22 * + + ( + 68 ) + - SUM( ALL 16 ) AS col0
----
1480

skipif mysql # not compatible
query I rowsort label-9881
SELECT 22 * + + ( + 68 ) + - SUM ( ALL 16 ) AS col0
----
1480

query II rowsort
SELECT ALL + 31, 51 AS col1
----
31
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT CASE - + 59 WHEN + 50 THEN - - 34 WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT CASE - + 59 WHEN + 50 THEN - - 34 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 67 + + + CASE + + ( 10 ) WHEN - - 84 THEN + 36 * - 85 END / - ( ( 17 ) ) * - 88 AS col1
----
NULL

query I rowsort
SELECT ALL 55 * + 42
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + 25 + - MAX( + 95 ) * - 71
----
6770

skipif mysql # not compatible
query I rowsort label-9886
SELECT + 25 + - MAX ( + 95 ) * - 71
----
6770

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT + 4 * - - 67 + + - 50 DIV - 99
----
268

skipif mysql # not compatible
query I rowsort label-9887
SELECT + 4 * - - 67 + + - 50 / - 99
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + NULLIF ( - COUNT( * ), + 31 ) * - + 17 * 52
----
884

skipif mysql # not compatible
query I rowsort label-9888
SELECT + NULLIF ( - COUNT ( * ), + 31 ) * - + 17 * 52
----
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9889
SELECT - COALESCE ( + 85, + 14 DIV + CAST( NULL AS SIGNED ) + - 39 + + COUNT( * ) ) * - - ( + COUNT( * ) ) + - 60 + 54 * + COUNT( * ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-9889
SELECT - COALESCE ( + 85, + 14 / + CAST ( NULL AS INTEGER ) + - 39 + + COUNT ( * ) ) * - - ( + COUNT ( * ) ) + - 60 + 54 * + COUNT ( * ) col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT DISTINCT + - 75 DIV + 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT + - 75 / + 46 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - AVG ( 1 ) + CAST( - CASE - COUNT( * ) WHEN + - COALESCE ( COUNT( * ), - 29 * + 56 - - 69 ) * - 58 THEN + 83 WHEN + 84 THEN 22 ELSE - 85 + COUNT( * ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - AVG ( 1 ) + CAST ( - CASE - COUNT ( * ) WHEN + - COALESCE ( COUNT ( * ), - 29 * + 56 - - 69 ) * - 58 THEN + 83 WHEN + 84 THEN 22 ELSE - 85 + COUNT ( * ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT 71, + COUNT( ALL + - NULLIF ( + 70, + 73 ) ) AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-9892
SELECT 71, + COUNT ( ALL + - NULLIF ( + 70, + 73 ) ) AS col1
----
71
1

query I rowsort
SELECT - 88 + + 41 AS col2
----
-47

query I rowsort
SELECT + + COALESCE ( ( - + 6 ), - 50 )
----
-6

query I rowsort
SELECT ALL + + ( + 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL - - 64 * 14 / + 97 + - CAST( NULL AS SIGNED ) + - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - - 64 * 14 / + 97 + - CAST ( NULL AS INTEGER ) + - 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT 42 * ( + 46 ) * + 36 - + MIN( ALL 38 ) + 93 AS col2
----
69607

skipif mysql # not compatible
query I rowsort label-9897
SELECT 42 * ( + 46 ) * + 36 - + MIN ( ALL 38 ) + 93 AS col2
----
69607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9898
SELECT COUNT( * ), CAST( NULL AS SIGNED ) * + 74 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9898
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) * + 74 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT + 55 + CASE 15 WHEN COUNT( * ) + - + 63 THEN 13 ELSE - COUNT( * ) + - COUNT( * ) * COUNT( * ) END + 65 * 24
----
1613

skipif mysql # not compatible
query I rowsort label-9899
SELECT + 55 + CASE 15 WHEN COUNT ( * ) + - + 63 THEN 13 ELSE - COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) END + 65 * 24
----
1613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT + 16 * - NULLIF ( NULLIF ( + + 96, - - COUNT( * ) + - - MIN( - CAST( NULL AS SIGNED ) ) ), - 30 ) * COUNT( + 71 ) + + 90 - 22 * CAST( CAST( + 33 AS SIGNED ) * - 46 AS SIGNED ) AS col1
----
31950

skipif mysql # not compatible
query I rowsort label-9900
SELECT + 16 * - NULLIF ( NULLIF ( + + 96, - - COUNT ( * ) + - - MIN ( - CAST ( NULL AS INTEGER ) ) ), - 30 ) * COUNT ( + 71 ) + + 90 - 22 * CAST ( CAST ( + 33 AS INTEGER ) * - 46 AS INTEGER ) AS col1
----
31950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9901
SELECT ALL 20 * NULLIF ( 42, + ( - CAST( NULL AS SIGNED ) ) DIV + + 86 ) + COUNT( - 2 ) DIV 57 AS col0
----
840

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL 20 * NULLIF ( 42, + ( - CAST ( NULL AS INTEGER ) ) / + + 86 ) + COUNT ( - 2 ) / 57 AS col0
----
840

query II rowsort
SELECT ALL 60 AS col1, 29 * + + 17 * ( 82 ) * 44 - + + 56 + - - 56 + - 34 AS col1
----
60
1778710

query I rowsort
SELECT DISTINCT - + 95 * 97 col2
----
-9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9904
SELECT - COUNT( * ), - 23 + + COALESCE ( CAST( NULL AS SIGNED ), 62 ) * - - 10 + + - 22 AS col1
----
-1
575

skipif mysql # not compatible
query II rowsort label-9904
SELECT - COUNT ( * ), - 23 + + COALESCE ( CAST ( NULL AS INTEGER ), 62 ) * - - 10 + + - 22 AS col1
----
-1
575

query I rowsort
SELECT ALL - 32 + 94
----
62

query I rowsort
SELECT 52 * 95 + - 2 AS col0
----
4938

onlyif mysql # aggregate syntax: 
query II rowsort label-9907
SELECT ALL - COUNT( * ) * 63, COUNT( * ) AS col2
----
-63
1

skipif mysql # not compatible
query II rowsort label-9907
SELECT ALL - COUNT ( * ) * 63, COUNT ( * ) AS col2
----
-63
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), 16 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9909
SELECT - 5 + 97 AS col0, CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-9909
SELECT - 5 + 97 AS col0, CAST ( NULL AS INTEGER )
----
92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9910
SELECT DISTINCT CASE + ( - + 79 ) WHEN 11 THEN + - MIN( ALL - + 7 ) + - CAST( NULL AS SIGNED ) END AS col2, + COUNT( DISTINCT - 85 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9910
SELECT DISTINCT CASE + ( - + 79 ) WHEN 11 THEN + - MIN ( ALL - + 7 ) + - CAST ( NULL AS INTEGER ) END AS col2, + COUNT ( DISTINCT - 85 ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - CASE + COUNT( * ) WHEN - 41 THEN 2 * - 27 + + 4 WHEN - 84 THEN NULL END * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT - CASE + COUNT ( * ) WHEN - 41 THEN 2 * - 27 + + 4 WHEN - 84 THEN NULL END * + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT ALL ( - CAST( - - 84 AS SIGNED ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL ( - CAST ( - - 84 AS INTEGER ) ) AS col2
----
-84

query I rowsort
SELECT DISTINCT + 71 - - + 19
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9914
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col1, 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-9914
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col1, 34 AS col2
----
NULL
34

query I rowsort
SELECT ALL + 54 * - + ( - 1 ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT DISTINCT + 72 DIV 50 DIV + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT + 72 / 50 / + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 50 * - 87
----
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT ALL NULLIF ( + 99, + MAX( + + 33 ) ) * - - 72 + MAX( ALL - + 30 ) AS col1, 10
----
7098
10

skipif mysql # not compatible
query II rowsort label-9918
SELECT ALL NULLIF ( + 99, + MAX ( + + 33 ) ) * - - 72 + MAX ( ALL - + 30 ) AS col1, 10
----
7098
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - COUNT( + + 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COUNT ( + + 28 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9920
SELECT ALL + 54 * + 4 AS col1, CAST( NULL AS SIGNED ) + 49
----
216
NULL

skipif mysql # not compatible
query II rowsort label-9920
SELECT ALL + 54 * + 4 AS col1, CAST ( NULL AS INTEGER ) + 49
----
216
NULL

query I rowsort
SELECT - 3 * - + 82 * 16 AS col0
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - COUNT( DISTINCT + + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-9922
SELECT - COUNT ( DISTINCT + + 35 )
----
-1

query I rowsort
SELECT + ( - 12 ) AS col1
----
-12

query I rowsort
SELECT - - 98 * - 15 AS col0
----
-1470

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT - + 72 DIV + CAST( - 33 AS SIGNED ) + - 11
----
-9

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - + 72 / + CAST ( - 33 AS INTEGER ) + - 11
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT + - NULLIF ( - + 18, + 78 ) DIV - NULLIF ( + 24, ( COUNT( * ) ) * + 17 ) + - 76 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT + - NULLIF ( - + 18, + 78 ) / - NULLIF ( + 24, ( COUNT ( * ) ) * + 17 ) + - 76 AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9927
SELECT ALL - - ( + 8 ) DIV + + 14 * - 18 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - - ( + 8 ) / + + 14 * - 18 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT ALL + + 40 DIV COUNT( * ) * + 54 * + 19 + - MIN( 84 ) + - + 95
----
40861

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + + 40 / COUNT ( * ) * + 54 * + 19 + - MIN ( 84 ) + - + 95
----
40861

query I rowsort
SELECT + 77 - - - 27 col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT + + MAX( + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + + MAX ( + 30 ) AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT + COALESCE ( 4, + + CASE + 28 WHEN 94 THEN NULL WHEN + + 12 THEN NULL ELSE 2 DIV + ( 21 ) END, 51 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9931
SELECT + COALESCE ( 4, + + CASE + 28 WHEN 94 THEN NULL WHEN + + 12 THEN NULL ELSE 2 / + ( 21 ) END, 51 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + COUNT( * ) + - 39 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9932
SELECT + COUNT ( * ) + - 39 AS col1
----
-38

query I rowsort
SELECT ALL + 23 * - + ( 27 ) + 37 * NULLIF ( + 85, - 34 / 8 - - - 69 )
----
2524

query I rowsort
SELECT DISTINCT + - 1 col0
----
-1

query I rowsort
SELECT DISTINCT 45 * 59 * - 96 + - 58 + + - 56 * - 69
----
-251074

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT ALL + + 5 DIV + + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL + + 5 / + + 51 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT DISTINCT + 44 DIV + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT + 44 / + 49 AS col1
----
0

query I rowsort
SELECT + 17 * + + 48 col2
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL NULLIF ( - 30, + 89 * - 38 + COUNT( * ) + - 91 + 98 / 23 * - - 1 / + - 47 + 69 * - 52 * 6 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL NULLIF ( - 30, + 89 * - 38 + COUNT ( * ) + - 91 + 98 / 23 * - - 1 / + - 47 + 69 * - 52 * 6 ) col1
----
-30

query I rowsort
SELECT 51 - - - 44 AS col0
----
7

query I rowsort
SELECT 96 * - 19 AS col0
----
-1824

query I rowsort
SELECT ALL + 85 * - 78 AS col0
----
-6630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT 70 + 74 + 24 * + 77 * - ( CASE + 71 WHEN - 58 THEN - + 21 WHEN - CAST( NULL AS SIGNED ) THEN CASE 12 WHEN - 73 THEN NULL WHEN - 67 THEN NULL ELSE + 82 + - 64 END * 15 - 93 / COUNT( * ) END ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT 70 + 74 + 24 * + 77 * - ( CASE + 71 WHEN - 58 THEN - + 21 WHEN - CAST ( NULL AS INTEGER ) THEN CASE 12 WHEN - 73 THEN NULL WHEN - 67 THEN NULL ELSE + 82 + - 64 END * 15 - 93 / COUNT ( * ) END ) * + 9
----
NULL

query I rowsort
SELECT ALL + 67 * + + 10 * - NULLIF ( 84, + 75 )
----
-56280

query I rowsort
SELECT 80 + + 92 + + 7
----
179

query I rowsort
SELECT ALL + 58 * 63
----
3654

query I rowsort
SELECT 86 * 71 AS col0
----
6106

query I rowsort
SELECT ALL 45 * - + 36 * - ( 53 ) AS col1
----
85860

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT ALL 22 AS col0, NULLIF ( - 65, + COALESCE ( 8, 6 * + - COUNT( * ) + 34 - + 27 * - - 90, 15 * + 68 - 5 * + 59 ) )
----
22
-65

skipif mysql # not compatible
query II rowsort label-9949
SELECT ALL 22 AS col0, NULLIF ( - 65, + COALESCE ( 8, 6 * + - COUNT ( * ) + 34 - + 27 * - - 90, 15 * + 68 - 5 * + 59 ) )
----
22
-65

query I rowsort
SELECT 96 - 34 AS col2
----
62

query I rowsort
SELECT ALL + 68 * + 89
----
6052

query I rowsort
SELECT ( 8 ) + + 62 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT 5 + - 23 DIV ( 2 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-9953
SELECT 5 + - 23 / ( 2 ) col1
----
-6

query I rowsort
SELECT 12 * 85 AS col0
----
1020

query I rowsort
SELECT 15 + - 35 col0
----
-20

query II rowsort
SELECT ALL 33 col1, 1 * 40 + + 92 AS col1
----
33
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9957
SELECT ALL + COALESCE ( MAX( ALL - + 24 ), 0 * 58 DIV + 42 ) DIV + 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL + COALESCE ( MAX ( ALL - + 24 ), 0 * 58 / + 42 ) / + 80 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT 2 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9958
SELECT 2 / + 49 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9959
SELECT ALL - 96 + + - COUNT( * ) + - CAST( NULL AS DECIMAL ) + COUNT( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL - 96 + + - COUNT ( * ) + - CAST ( NULL AS REAL ) + COUNT ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 5 + - 82 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT + 25 + + - ( - CASE + COALESCE ( + CASE - - 10 WHEN + 33 THEN + - 73 + - 39 END, - 65 * + 47 ) WHEN + 84 THEN NULL WHEN ( MIN( 17 ) ) * - COUNT( * ) THEN + 64 ELSE + 85 * 61 + - 54 * NULLIF ( - 50 * - CAST( + MIN( 51 ) / COUNT( ALL + 30 ) AS SIGNED ) + ( + 10 ), - 9 ) END ) / CASE - 74 WHEN 96 * - 79 + 18 THEN 50 WHEN 32 - 73 THEN 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 25 + + - ( - CASE + COALESCE ( + CASE - - 10 WHEN + 33 THEN + - 73 + - 39 END, - 65 * + 47 ) WHEN + 84 THEN NULL WHEN ( MIN ( 17 ) ) * - COUNT ( * ) THEN + 64 ELSE + 85 * 61 + - 54 * NULLIF ( - 50 * - CAST ( + MIN ( 51 ) / COUNT ( ALL + 30 ) AS INTEGER ) + ( + 10 ), - 9 ) END ) / CASE - 74 WHEN 96 * - 79 + 18 THEN 50 WHEN 32 - 73 THEN 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL + - CASE WHEN NOT NULL <> - MIN( DISTINCT + - ( NULLIF ( + 17, - 64 ) ) ) THEN NULL ELSE + 84 END + - + 32 - + 20 * 79
----
-1696

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + - CASE WHEN NOT NULL <> - MIN ( DISTINCT + - ( NULLIF ( + 17, - 64 ) ) ) THEN NULL ELSE + 84 END + - + 32 - + 20 * 79
----
-1696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT ALL - - 41 / - + 84 + 27 + AVG ( DISTINCT 19 ) * + + 8 + + - 70 * + 19 * NULLIF ( + 18, + 33 ) / CASE 77 WHEN - 45 THEN + 17 WHEN 87 + - CAST( + CAST( NULL AS SIGNED ) - 56 AS SIGNED ) THEN - 24 * - ( CAST( 42 AS SIGNED ) ) - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - - 41 / - + 84 + 27 + AVG ( DISTINCT 19 ) * + + 8 + + - 70 * + 19 * NULLIF ( + 18, + 33 ) / CASE 77 WHEN - 45 THEN + 17 WHEN 87 + - CAST ( + CAST ( NULL AS INTEGER ) - 56 AS INTEGER ) THEN - 24 * - ( CAST ( 42 AS INTEGER ) ) - 80 END AS col0
----
NULL

query I rowsort
SELECT ALL 78 + + 71 col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT - 62 * - COUNT( * ) + - 55 + 15
----
22

skipif mysql # not compatible
query I rowsort label-9965
SELECT - 62 * - COUNT ( * ) + - 55 + 15
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + COUNT( - 87 ) * + 40 * + - 17 * - 63 - COUNT( * ) AS col1
----
42839

skipif mysql # not compatible
query I rowsort label-9966
SELECT + COUNT ( - 87 ) * + 40 * + - 17 * - 63 - COUNT ( * ) AS col1
----
42839

query I rowsort
SELECT DISTINCT + - 28 + - - 71 + - 73
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT - COUNT( * ) + + 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9968
SELECT - COUNT ( * ) + + 47 AS col0
----
46

query II rowsort
SELECT DISTINCT - 28 AS col0, 26
----
-28
26

query I rowsort
SELECT ALL - + 67 col0
----
-67

query II rowsort
SELECT ALL - - 89 AS col2, - 10 * + 66
----
89
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9972
SELECT + 73 + + + 9 * COALESCE ( 79, + CAST( 74 AS SIGNED ) + - COUNT( * ), - 37 + + 54 ) + - 75
----
709

skipif mysql # not compatible
query I rowsort label-9972
SELECT + 73 + + + 9 * COALESCE ( 79, + CAST ( 74 AS INTEGER ) + - COUNT ( * ), - 37 + + 54 ) + - 75
----
709

query I rowsort
SELECT 25 * - + 38 col1
----
-950

query I rowsort
SELECT 56 + - + 87 + - + 44 * + 6 AS col1
----
-295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT CASE - AVG ( + 29 ) WHEN + + 9 THEN + + COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL END * 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT CASE - AVG ( + 29 ) WHEN + + 9 THEN + + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END * 40 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9976
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - + 42
----
NULL

query I rowsort
SELECT 61 + - COALESCE ( + + 19, - 0, 28 )
----
42

query I rowsort
SELECT DISTINCT 81 * - 0 * + 45 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT ALL - 35, + 58 - COUNT( * ) AS col1
----
-35
57

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL - 35, + 58 - COUNT ( * ) AS col1
----
-35
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT + 55 AS col0, + MIN( DISTINCT + - 56 ) * + 4 - 4
----
55
-228

skipif mysql # not compatible
query II rowsort label-9980
SELECT + 55 AS col0, + MIN ( DISTINCT + - 56 ) * + 4 - 4
----
55
-228

query I rowsort
SELECT DISTINCT 10 * + 71
----
710

query I rowsort
SELECT 80 * - 54
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT MIN( DISTINCT 59 ) * + - 92 + + 63 + 98
----
-5267

skipif mysql # not compatible
query I rowsort label-9983
SELECT MIN ( DISTINCT 59 ) * + - 92 + + 63 + 98
----
-5267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9984
SELECT DISTINCT 45 * + CAST( NULL AS DECIMAL ) * + CASE - - COUNT( * ) WHEN - - 76 THEN NULL ELSE - 94 * AVG ( ALL - - 56 ) + - 5 - + + 97 * - + 53 * + CAST( 25 * 68 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT 45 * + CAST ( NULL AS REAL ) * + CASE - - COUNT ( * ) WHEN - - 76 THEN NULL ELSE - 94 * AVG ( ALL - - 56 ) + - 5 - + + 97 * - + 53 * + CAST ( 25 * 68 AS INTEGER ) END
----
NULL

query II rowsort
SELECT DISTINCT 69 AS col2, 69 - - + 66 AS col1
----
69
135

query I rowsort
SELECT 70 * - 35
----
-2450

query I rowsort
SELECT 5 + - 87 * + 68 + + 15 AS col2
----
-5896

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT ALL 98 DIV 70 DIV 6 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL 98 / 70 / 6 AS col2
----
0

query I rowsort
SELECT 15 * - - 20
----
300

query II rowsort
SELECT - 77 AS col2, - 54 * - 1 - + 47 + 95 * - 45 + - - 34 AS col1
----
-77
-4234

query II rowsort
SELECT - 78, 45 * + 30 * + 58 AS col0
----
-78
78300

query II rowsort
SELECT DISTINCT 79 col0, 88 + - 60
----
79
28

query I rowsort
SELECT 31 + 26
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT ALL + 37 + CASE - 13 WHEN + 44 THEN - - CAST( + 75 AS SIGNED ) END * - 60 + 8 * ( - COALESCE ( COUNT( * ), 87 ) ) * 37 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL + 37 + CASE - 13 WHEN + 44 THEN - - CAST ( + 75 AS INTEGER ) END * - 60 + 8 * ( - COALESCE ( COUNT ( * ), 87 ) ) * 37 + + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT CAST( NULL AS SIGNED ) * MAX( + 36 ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( NULL AS INTEGER ) * MAX ( + 36 ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT + COALESCE ( + 96, MAX( ALL - 8 ) * 59 * + 86, SUM( + 13 ), 1, - + 67 ) + + + 67 + + NULLIF ( + 70, 45 ) AS col1
----
233

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + COALESCE ( + 96, MAX ( ALL - 8 ) * 59 * + 86, SUM ( + 13 ), 1, - + 67 ) + + + 67 + + NULLIF ( + 70, 45 ) AS col1
----
233

query I rowsort
SELECT ALL - 64 + - 29
----
-93

query I rowsort
SELECT ALL 92 + + - 75
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 76
----
NULL

