sqllogictest
Artifact Content
Not logged in

Artifact 3d2f0e6f968271cc8651c843c1fdb4c771d2b867:


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

sk