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)

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

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

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

query I rowsort
SELECT ( 32 ) - - 91 AS col1
----
123

query I rowsort
SELECT ALL - NULLIF ( 96, + 21 / + 87 ) AS col1
----
-96

query I rowsort
SELECT DISTINCT - COALESCE ( 42, - 29, - + 29 )
----
-42

query I rowsort
SELECT + 51 * 60 + + 3 - - 34 * 96 AS col0
----
6327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT 86 DIV - + COUNT( * ) AS col1
----
-86

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

query I rowsort
SELECT DISTINCT + 35 * - - 41 AS col1
----
1435

query I rowsort
SELECT DISTINCT + 62 + - 86 * - 81 col2
----
7028

query I rowsort
SELECT - 46 - - 44
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT ALL ( - - 60 ) + + + CASE + ( + 5 ) WHEN + + AVG ( DISTINCT - 40 ) * + - 0 * + - 90 + 90 + - 49 THEN - - 77 / 19 * - + MIN( - - 64 ) END col0, 92 * + 43 AS col0
----
NULL
3956

skipif mysql # not compatible
query II rowsort label-10
SELECT ALL ( - - 60 ) + + + CASE + ( + 5 ) WHEN + + AVG ( DISTINCT - 40 ) * + - 0 * + - 90 + 90 + - 49 THEN - - 77 / 19 * - + MIN ( - - 64 ) END col0, 92 * + 43 AS col0
----
NULL
3956

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT - 64 DIV - + 11
----
5

skipif mysql # not compatible
query I rowsort label-11
SELECT - 64 / - + 11
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL + COUNT( * ) + - 66 col1
----
-65

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + COUNT ( * ) + - 66 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT - 40 * MAX( DISTINCT - - 6 ) AS col1
----
-240

skipif mysql # not compatible
query I rowsort label-13
SELECT - 40 * MAX ( DISTINCT - - 6 ) AS col1
----
-240

query I rowsort
SELECT ALL + 18 + - - NULLIF ( + 74, + 60 ) + - + 53 AS col2
----
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + 34 + + 3 + + COUNT( * ) + - 17 * - + 73
----
1279

skipif mysql # not compatible
query I rowsort label-16
SELECT + 34 + + 3 + + COUNT ( * ) + - 17 * - + 73
----
1279

query I rowsort
SELECT - 4 * + 81
----
-324

query I rowsort
SELECT ALL NULLIF ( - - 38, + + 12 ) + + 71
----
109

query I rowsort
SELECT DISTINCT + 73 * + 47
----
3431

query II rowsort
SELECT DISTINCT - COALESCE ( - 97, - 21 ), 90 * + - ( - 20 ) AS col2
----
97
1800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT - 71 + + - SUM( DISTINCT 59 ) AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - 71 + + - SUM ( DISTINCT 59 ) AS col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT - 12 + - - NULLIF ( + + 22, + COUNT( * ) + 55 * COUNT( * ) + + 70 )
----
10

skipif mysql # not compatible
query I rowsort label-23
SELECT - 12 + - - NULLIF ( + + 22, + COUNT ( * ) + 55 * COUNT ( * ) + + 70 )
----
10

query I rowsort
SELECT ALL - - 93 - - 32
----
125

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

skipif mysql # not compatible
query I rowsort label-25
SELECT COUNT ( 86 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT - 12, MIN( ALL - + 23 ) AS col1
----
-12
-23

skipif mysql # not compatible
query II rowsort label-26
SELECT - 12, MIN ( ALL - + 23 ) AS col1
----
-12
-23

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

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

query I rowsort
SELECT + - 52 * - 51
----
2652

query I rowsort
SELECT DISTINCT + ( - - 40 ) * - 39
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT ALL COUNT( DISTINCT + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL COUNT ( DISTINCT + 59 )
----
1

query I rowsort
SELECT - + 83 + + 98
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT - CAST( - - NULLIF ( 67, + 28 + - 90 + 90 + + 18 - + 89 * - 79 * - ( - COUNT( * ) ) * + 89 * - MAX( + - 21 ) ) AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-32
SELECT - CAST ( - - NULLIF ( 67, + 28 + - 90 + 90 + + 18 - + 89 * - 79 * - ( - COUNT ( * ) ) * + 89 * - MAX ( + - 21 ) ) AS INTEGER )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT + - NULLIF ( 28, + - 7 ) + + COUNT( * ) + - COALESCE ( + 25, + - CAST( CAST( - - 49 AS SIGNED ) AS SIGNED ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-33
SELECT + - NULLIF ( 28, + - 7 ) + + COUNT ( * ) + - COALESCE ( + 25, + - CAST ( CAST ( - - 49 AS INTEGER ) AS INTEGER ) ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT ALL COUNT( * ) - + 17 + + 50 * 93 * - 53 AS col2
----
-246466

skipif mysql # not compatible
query I rowsort label-34
SELECT ALL COUNT ( * ) - + 17 + + 50 * 93 * - 53 AS col2
----
-246466

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT + + SUM( ALL - 95 ) * + ( + 28 ) + + 25 + 78 + + + 68 - 33
----
-2522

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + + SUM ( ALL - 95 ) * + ( + 28 ) + + 25 + 78 + + + 68 - 33
----
-2522

query I rowsort
SELECT ALL 58 * - 31 AS col2
----
-1798

query I rowsort
SELECT + 11 + + + 95 AS col2
----
106

query I rowsort
SELECT + - 56 * ( - + ( + 17 ) ) + 21 AS col1
----
973

query I rowsort
SELECT + + 50 * + 99
----
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT - - 75 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-40
SELECT - - 75 / 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT ALL - 70 DIV 6
----
-11

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - 70 / 6
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-42
SELECT + 72 DIV + ( MAX( - 4 ) ) + 28
----
10

skipif mysql # not compatible
query I rowsort label-42
SELECT + 72 / + ( MAX ( - 4 ) ) + 28
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - 85 * + ( - 23 ) - NULLIF ( 10, 82 * - SUM( ALL - + 89 ) ) - - 84
----
2029

skipif mysql # not compatible
query I rowsort label-43
SELECT - 85 * + ( - 23 ) - NULLIF ( 10, 82 * - SUM ( ALL - + 89 ) ) - - 84
----
2029

query I rowsort
SELECT + NULLIF ( + 18, + - 62 ) * 87 AS col1
----
1566

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT + 77 + - - 34 DIV 93 col0
----
77

skipif mysql # not compatible
query I rowsort label-45
SELECT + 77 + - - 34 / 93 col0
----
77

query I rowsort
SELECT ALL 28 * 71 + - 33 * + - 52 AS col2
----
3704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-47
SELECT CASE WHEN NOT + 12 BETWEEN + ( - + 75 ) * - ( - + 78 ) + - - 40 + 19 AND CAST( NULL AS DECIMAL ) THEN + - 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT CASE WHEN NOT + 12 BETWEEN + ( - + 75 ) * - ( - + 78 ) + - - 40 + 19 AND CAST ( NULL AS REAL ) THEN + - 12 END
----
NULL

query I rowsort
SELECT - 88 * 89
----
-7832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT + COALESCE ( + - 91, + CAST( NULL AS SIGNED ), + + 91, - 43 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-49
SELECT + COALESCE ( + - 91, + CAST ( NULL AS INTEGER ), + + 91, - 43 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT - 23 + - + NULLIF ( + - 91, - ( + COUNT( DISTINCT - 73 ) ) ) + 83 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-50
SELECT - 23 + - + NULLIF ( + - 91, - ( + COUNT ( DISTINCT - 73 ) ) ) + 83 AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL - 88 * - - 2 + - + 17 * - SUM( ALL - 41 ) AS col1
----
-873

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL - 88 * - - 2 + - + 17 * - SUM ( ALL - 41 ) AS col1
----
-873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-52
SELECT + 86, 91 DIV COUNT( * ) * + + 6 * - + 85 + - 46 + + 6 * - + 49 AS col0
----
86
-46750

skipif mysql # not compatible
query II rowsort label-52
SELECT + 86, 91 / COUNT ( * ) * + + 6 * - + 85 + - 46 + + 6 * - + 49 AS col0
----
86
-46750

query II rowsort
SELECT + ( 42 ) AS col1, - 51 AS col1
----
42
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT NULLIF ( - COUNT( * ), - 18 * - - 34 + + 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-54
SELECT NULLIF ( - COUNT ( * ), - 18 * - - 34 + + 91 )
----
-1

query I rowsort
SELECT + 28 + - + 40 AS col0
----
-12

query I rowsort
SELECT + 87 * + - 27
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT - MIN( ALL - + 48 ) * ( - 92 ) + + - 66 * + ( + COALESCE ( - ( - + MIN( ALL + 59 ) ), 61 * - 81 + + - 60, - + COUNT( * ) * + + COUNT( ALL + 37 ) ) ) + 34
----
-8276

skipif mysql # not compatible
query I rowsort label-57
SELECT - MIN ( ALL - + 48 ) * ( - 92 ) + + - 66 * + ( + COALESCE ( - ( - + MIN ( ALL + 59 ) ), 61 * - 81 + + - 60, - + COUNT ( * ) * + + COUNT ( ALL + 37 ) ) ) + 34
----
-8276

query I rowsort
SELECT - 8 * + 7 + - 74 AS col0
----
-130

query I rowsort
SELECT ALL - 55 * + 37 + 84 AS col2
----
-1951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT ALL ( + + COALESCE ( + - 46, - - ( + CAST( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ), 60 - 12 ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL ( + + COALESCE ( + - 46, - - ( + CAST ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ), 60 - 12 ) ) AS col2
----
-46

query I rowsort
SELECT ALL - 86 * - 85 * + 63 AS col2
----
460530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT - 74 + + NULLIF ( - CAST( NULL AS SIGNED ), + 21 - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT - 74 + + NULLIF ( - CAST ( NULL AS INTEGER ), + 21 - - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - ( 37 ) - - 8 + 69 col1
----
40

query I rowsort
SELECT - - 72 + + 64 * ( + 71 )
----
4616

query I rowsort
SELECT - + 3 * - 26
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT - + 87 DIV + 13 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-66
SELECT - + 87 / + 13 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT - 88 DIV - 32
----
2

skipif mysql # not compatible
query I rowsort label-67
SELECT - 88 / - 32
----
2

query II rowsort
SELECT DISTINCT + 78 AS col1, - ( + 24 ) AS col2
----
78
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-69
SELECT DISTINCT + + 36 * - CASE - + 1 WHEN - + CAST( + - CAST( - + 87 AS SIGNED ) AS SIGNED ) + - ( - + 43 ) * 56 THEN 49 - - COUNT( * ) ELSE NULL END - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + + 36 * - CASE - + 1 WHEN - + CAST ( + - CAST ( - + 87 AS INTEGER ) AS INTEGER ) + - ( - + 43 ) * 56 THEN 49 - - COUNT ( * ) ELSE NULL END - - 68
----
NULL

query II rowsort
SELECT - 24 AS col1, + 15 AS col0
----
-24
15

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT DISTINCT NULLIF ( + + COUNT( * ), + - 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT NULLIF ( + + COUNT ( * ), + - 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT - + 46 + + - COUNT( * ) * 48 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-72
SELECT - + 46 + + - COUNT ( * ) * 48 AS col0
----
-94

query II rowsort
SELECT - 91, 35 AS col1
----
-91
35

query II rowsort
SELECT - - ( 26 ) + - 37 - + 8 col1, 14 * + 21
----
-19
294

query II rowsort
SELECT ALL + 19 AS col2, 34 AS col1
----
19
34

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT - - MAX( DISTINCT 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-76
SELECT - - MAX ( DISTINCT 89 ) AS col1
----
89

query I rowsort
SELECT - + 1 * COALESCE ( + - 3, - - 2 ) * - + 37
----
-111

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

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

query II rowsort
SELECT + 59 AS col2, + 45
----
59
45

query I rowsort
SELECT + 31 + + - 8 + + + 78 * + 21
----
1661

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT - 71 / COUNT( * ) * CAST( + - 46 AS SIGNED ) / CASE - ( + 26 ) WHEN + 20 * + 70 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + AVG ( ALL + 49 ) / + 97 - + - ( 25 ) + - + 74 * + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT - 71 / COUNT ( * ) * CAST ( + - 46 AS INTEGER ) / CASE - ( + 26 ) WHEN + 20 * + 70 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + AVG ( ALL + 49 ) / + 97 - + - ( 25 ) + - + 74 * + - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-82
SELECT DISTINCT - 84 DIV 36 + - 17 + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - 84 / 36 + - 17 + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT ALL 55 DIV - - NULLIF ( + 98, + 67 * + MIN( + 71 ) ) * 62 + + 46 DIV + - 61 + + 69 + 98
----
167

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL 55 / - - NULLIF ( + 98, + 67 * + MIN ( + 71 ) ) * 62 + + 46 / + - 61 + + 69 + 98
----
167

query II rowsort
SELECT ALL 82 + - 98 AS col0, 4 AS col2
----
-16
4

query I rowsort
SELECT ALL - 41 col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-86
SELECT ( CAST( - 63 AS SIGNED ) ) + 51
----
-12

skipif mysql # not compatible
query I rowsort label-86
SELECT ( CAST ( - 63 AS INTEGER ) ) + 51
----
-12

query I rowsort
SELECT ALL - CASE + 89 WHEN - - CASE - 16 WHEN 18 THEN - 37 + + 44 + - - ( 68 ) END THEN - NULLIF ( - 1, - 58 ) WHEN + 82 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 0 - 67
----
-67

query II rowsort
SELECT ALL 39 * 86, - 1 AS col0
----
3354
-1

query I rowsort
SELECT DISTINCT 29 * + - 82 AS col2
----
-2378

onlyif mysql # aggregate syntax: 
query II rowsort label-91
SELECT + 7 * + - COUNT( * ) * 99 + - 35 + - 70 - - 46 * - - ( + + 33 ) * + 0 * + AVG ( DISTINCT - + ( CASE - 16 WHEN 36 THEN 95 END ) ) AS col1, 57 + - - 8 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-91
SELECT + 7 * + - COUNT ( * ) * 99 + - 35 + - 70 - - 46 * - - ( + + 33 ) * + 0 * + AVG ( DISTINCT - + ( CASE - 16 WHEN 36 THEN 95 END ) ) AS col1, 57 + - - 8 AS col0
----
NULL
65

query I rowsort
SELECT 87 * + NULLIF ( 27, 98 / - 38 ) * + - 79 AS col1
----
-185571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-93
SELECT DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), + + 25 ) * 58
----
-1450

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), + + 25 ) * 58
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT MIN( DISTINCT - 65 ) * - 5 * + 86
----
27950

skipif mysql # not compatible
query I rowsort label-94
SELECT MIN ( DISTINCT - 65 ) * - 5 * + 86
----
27950

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL + COALESCE ( + 86, + COUNT( ALL + - 29 ) * 75 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL + COALESCE ( + 86, + COUNT ( ALL + - 29 ) * 75 ) AS col1
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT - 5 * - CASE + - 27 WHEN - COALESCE ( 86, + + 23 ) * + + COUNT( * ) THEN 38 * - + 48 + 84 END - - 34 / - 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT - 5 * - CASE + - 27 WHEN - COALESCE ( 86, + + 23 ) * + + COUNT ( * ) THEN 38 * - + 48 + 84 END - - 34 / - 99 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT 46 + - + ( - COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-98
SELECT 46 + - + ( - COUNT ( * ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT + 79 * 94 + + MAX( ALL 52 ) + + - 66 * + 86 * + 4 * 34
----
-764458

skipif mysql # not compatible
query I rowsort label-99
SELECT + 79 * 94 + + MAX ( ALL 52 ) + + - 66 * + 86 * + 4 * 34
----
-764458

query I rowsort
SELECT 77 + - 77 - 90 col2
----
-90

query I rowsort
SELECT + ( - 18 ) * + 62 AS col2
----
-1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-102
SELECT - MAX( DISTINCT 5 ) AS col0, 57 DIV 66 + - + ( + 62 ) DIV 86 AS col1
----
-5
0

skipif mysql # not compatible
query II rowsort label-102
SELECT - MAX ( DISTINCT 5 ) AS col0, 57 / 66 + - + ( + 62 ) / 86 AS col1
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + + MAX( + 55 ) + + COUNT( * ) * + + 35
----
90

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + + MAX ( + 55 ) + + COUNT ( * ) * + + 35
----
90

query I rowsort
SELECT - 32 + + 15 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT - 7 DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT - 7 / + + 55
----
0

query II rowsort
SELECT - 16 * + + 42 AS col1, 54
----
-672
54

query I rowsort
SELECT DISTINCT + - 29 + 20 + + 25 + 89
----
105

query I rowsort
SELECT DISTINCT - 76 + 50
----
-26

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

query II rowsort
SELECT ALL - 41 col1, + 71 AS col0
----
-41
71

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

query II rowsort
SELECT + 19, - ( + 68 ) AS col0
----
19
-68

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

query I rowsort
SELECT 95 * 59 * - 82 + + ( - - 32 ) AS col2
----
-459578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT 31 * + MIN( CAST( NULL AS SIGNED ) ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT 31 * + MIN ( CAST ( NULL AS INTEGER ) ) * - 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-116
SELECT - 26 DIV 59 DIV - - COUNT( * ) + - 32 * - - COUNT( * ) + + 36 + + CAST( - + 66 AS SIGNED ) col1, - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-116
SELECT - 26 / 59 / - - COUNT ( * ) + - 32 * - - COUNT ( * ) + + 36 + + CAST ( - + 66 AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
-62
NULL

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

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

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

query I rowsort
SELECT 21 * + - 65 * - 84 AS col1
----
114660

query I rowsort
SELECT 32 * + 54 + - 73 * - - 92 AS col1
----
-4988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT ALL COUNT( * ) * + CAST( + + 80 AS SIGNED ) * - 70
----
-5600

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL COUNT ( * ) * + CAST ( + + 80 AS INTEGER ) * - 70
----
-5600

query I rowsort
SELECT 11 * - 98 AS col2
----
-1078

query I rowsort
SELECT 49 + - 39
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT COUNT( * ) + - + 93 + + 53 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-125
SELECT COUNT ( * ) + - + 93 + + 53 AS col1
----
-39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT DISTINCT + 59 DIV - 34 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + 59 / - 34 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT 95 * 95 * + 31 / CAST( NULL AS SIGNED ) + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT 95 * 95 * + 31 / CAST ( NULL AS INTEGER ) + + 73 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-130
SELECT DISTINCT + 10, 92 / + - CAST( NULL AS SIGNED ) + 13 AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-130
SELECT DISTINCT + 10, 92 / + - CAST ( NULL AS INTEGER ) + 13 AS col2
----
10
NULL

query I rowsort
SELECT 12 + 60
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL SUM( 49 ) col1
----
49

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL SUM ( 49 ) col1
----
49

query I rowsort
SELECT DISTINCT + 7 + + 19
----
26

query I rowsort
SELECT ALL 47 + - - ( + 86 )
----
133

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-137
SELECT DISTINCT 9 + + CASE + + NULLIF ( - 93, + 67 ) WHEN 55 * + CASE + CAST( NULL AS SIGNED ) WHEN - - 31 THEN NULL WHEN + 76 THEN NULL ELSE + 83 END + - - 11 + + + 56 THEN NULL WHEN ( + - ( - 89 ) ) + + ( + 43 ) + + 16 + + + CAST( NULL AS DECIMAL ) * + 31 THEN NULL WHEN + COALESCE ( + COUNT( * ), CASE - 68 WHEN - 96 THEN - 4 + - 72 / + - COALESCE ( 67, 70, - 75 + + 74 + COALESCE ( - COUNT( * ) - 79, 83, 4, - COUNT( * ) ), COUNT( * ) ) * + 62 + - 25 ELSE NULL END ) + COUNT( * ) THEN NULL ELSE - ( + COUNT( * ) ) * 33 + - 0 END + - 60 * 31 AS col2
----
-1884

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT 9 + + CASE + + NULLIF ( - 93, + 67 ) WHEN 55 * + CASE + CAST ( NULL AS INTEGER ) WHEN - - 31 THEN NULL WHEN + 76 THEN NULL ELSE + 83 END + - - 11 + + + 56 THEN NULL WHEN ( + - ( - 89 ) ) + + ( + 43 ) + + 16 + + + CAST ( NULL AS REAL ) * + 31 THEN NULL WHEN + COALESCE ( + COUNT ( * ), CASE - 68 WHEN - 96 THEN - 4 + - 72 / + - COALESCE ( 67, 70, - 75 + + 74 + COALESCE ( - COUNT ( * ) - 79, 83, 4, - COUNT ( * ) ), COUNT ( * ) ) * + 62 + - 25 ELSE NULL END ) + COUNT ( * ) THEN NULL ELSE - ( + COUNT ( * ) ) * 33 + - 0 END + - 60 * 31 AS col2
----
-1884

query I rowsort
SELECT ALL + 13 + 1 AS col2
----
14

query I rowsort
SELECT DISTINCT + 91 + + 12 + - - 78 * + - 25 + - + 39 col1
----
-1886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT - CASE COALESCE ( - 42, - COUNT( * ), - 92 ) WHEN - + SUM( DISTINCT - + 84 ) + + CAST( NULL AS SIGNED ) THEN NULL ELSE + ( - 84 ) END AS col2
----
84

skipif mysql # not compatible
query I rowsort label-140
SELECT - CASE COALESCE ( - 42, - COUNT ( * ), - 92 ) WHEN - + SUM ( DISTINCT - + 84 ) + + CAST ( NULL AS INTEGER ) THEN NULL ELSE + ( - 84 ) END AS col2
----
84

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

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT + COUNT ( * ) / - - 57
----
0

query I rowsort
SELECT - COALESCE ( - 0, - 36 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-143
SELECT + ( - MIN( DISTINCT + + 12 ) ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-143
SELECT + ( - MIN ( DISTINCT + + 12 ) ) / - 81
----
0

query I rowsort
SELECT - 18 * - 56
----
1008

query I rowsort
SELECT - 88 * + + ( COALESCE ( - - 10, ( + 77 ) ) ) AS col0
----
-880

query I rowsort
SELECT NULLIF ( + + 93, - 20 )
----
93

query I rowsort
SELECT ALL + 29 * + 58 - 31 col1
----
1651

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT DISTINCT - 45 * + 50 * + 43 * - COUNT( * ) AS col2, - 96
----
96750
-96

skipif mysql # not compatible
query II rowsort label-148
SELECT DISTINCT - 45 * + 50 * + 43 * - COUNT ( * ) AS col2, - 96
----
96750
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL + MIN( - + 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + MIN ( - + 89 ) AS col2
----
-89

query I rowsort
SELECT - 58 * - 21 * - 51
----
-62118

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

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

query I rowsort
SELECT DISTINCT + ( + ( 25 ) ) AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT ALL + CAST( + + COALESCE ( + - 2, + 50 ) AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + CAST ( + + COALESCE ( + - 2, + 50 ) AS INTEGER ) AS col0
----
-2

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

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

query I rowsort
SELECT - 28 * + 13
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-156
SELECT 55 * - CAST( NULL AS SIGNED ) * - + 82 + + - COUNT( * ) AS col0, + 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-156
SELECT 55 * - CAST ( NULL AS INTEGER ) * - + 82 + + - COUNT ( * ) AS col0, + 24 AS col1
----
NULL
24

query II rowsort
SELECT ALL + 30 * - + 45 col1, 70 col0
----
-1350
70

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - + ( - 47 ) * + COUNT( * ) * + + COUNT( * ) * + - 52 * 64 + - 24
----
-156440

skipif mysql # not compatible
query I rowsort label-158
SELECT - + ( - 47 ) * + COUNT ( * ) * + + COUNT ( * ) * + - 52 * 64 + - 24
----
-156440

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT DISTINCT + 2 DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + 2 / 45 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( - ( + + 41 ), + ( - - 99 ), + + 26 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT ALL + + ( - ( - ( - + 58 ) ) ) * - - 53 / - - 89 * + 38 + 97 + + CAST( NULL AS SIGNED ) * 2 * 43 * - NULLIF ( + + 86, COALESCE ( CAST( - COUNT( * ) AS SIGNED ), + ( - 65 ) ) ) * + + AVG ( - ( + 33 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + + ( - ( - ( - + 58 ) ) ) * - - 53 / - - 89 * + 38 + 97 + + CAST ( NULL AS INTEGER ) * 2 * 43 * - NULLIF ( + + 86, COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), + ( - 65 ) ) ) * + + AVG ( - ( + 33 ) ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - 58 * + 54 + - 75
----
-3207

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT - + 72 - + 16 + + ( 47 ) / + CASE - 74 WHEN + - CASE 20 WHEN - 3 * + NULLIF ( - COUNT( * ), 8 ) + - 69 THEN + 4 WHEN + 71 THEN + + 77 * - 14 END * 29 - - 76 THEN ( - - 18 ) ELSE NULL END * COUNT( * ) * 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT - + 72 - + 16 + + ( 47 ) / + CASE - 74 WHEN + - CASE 20 WHEN - 3 * + NULLIF ( - COUNT ( * ), 8 ) + - 69 THEN + 4 WHEN + 71 THEN + + 77 * - 14 END * 29 - - 76 THEN ( - - 18 ) ELSE NULL END * COUNT ( * ) * 70 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT + + COALESCE ( ( - 63 ), 37 / COUNT( * ) / + + SUM( - 64 ) + - 17 + + + NULLIF ( COUNT( * ), 21 + COUNT( * ) + 77 ) - + 3, + CASE - ( + 50 ) WHEN + 73 / 14 + 38 + - 4 THEN 92 / - + 84 ELSE NULL END ) / + CASE 82 WHEN - ( - 80 ) + - 18 + + + 9 + - 85 + + 14 * CAST( NULL AS SIGNED ) / - CAST( - - COUNT( ALL 97 ) AS SIGNED ) * 79 + 77 THEN + 15 / + 21 WHEN ( 66 ) * 24 + + 61 * + CASE + 41 WHEN 98 * 66 THEN 45 * 32 ELSE NULL END THEN NULL WHEN ( CASE MIN( DISTINCT 21 ) WHEN + 24 THEN - 56 WHEN + 96 * 55 + 48 / 97 THEN + 47 + 0 / 72 END ) + + 39 THEN NULL END * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT + + COALESCE ( ( - 63 ), 37 / COUNT ( * ) / + + SUM ( - 64 ) + - 17 + + + NULLIF ( COUNT ( * ), 21 + COUNT ( * ) + 77 ) - + 3, + CASE - ( + 50 ) WHEN + 73 / 14 + 38 + - 4 THEN 92 / - + 84 ELSE NULL END ) / + CASE 82 WHEN - ( - 80 ) + - 18 + + + 9 + - 85 + + 14 * CAST ( NULL AS INTEGER ) / - CAST ( - - COUNT ( ALL 97 ) AS INTEGER ) * 79 + 77 THEN + 15 / + 21 WHEN ( 66 ) * 24 + + 61 * + CASE + 41 WHEN 98 * 66 THEN 45 * 32 ELSE NULL END THEN NULL WHEN ( CASE MIN ( DISTINCT 21 ) WHEN + 24 THEN - 56 WHEN + 96 * 55 + 48 / 97 THEN + 47 + 0 / 72 END ) + + 39 THEN NULL END * + 78 AS col0
----
NULL

query I rowsort
SELECT - - 98 * + - 86 col1
----
-8428

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + - 92 * - COUNT( * ) * 61 * + 98 AS col1
----
549976

skipif mysql # not compatible
query I rowsort label-167
SELECT + - 92 * - COUNT ( * ) * 61 * + 98 AS col1
----
549976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT + + 23 * + CAST( - + 4 AS SIGNED ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-168
SELECT + + 23 * + CAST ( - + 4 AS INTEGER ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-169
SELECT ALL - 53 / 66 * 44 * - - CAST( NULL AS SIGNED ) AS col0, - 40 * + CASE + 66 WHEN - 97 THEN NULL WHEN - 65 + COUNT( * ) * COUNT( * ) * + 43 - 49 THEN + - 41 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-169
SELECT ALL - 53 / 66 * 44 * - - CAST ( NULL AS INTEGER ) AS col0, - 40 * + CASE + 66 WHEN - 97 THEN NULL WHEN - 65 + COUNT ( * ) * COUNT ( * ) * + 43 - 49 THEN + - 41 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + ( MIN( DISTINCT ( + NULLIF ( - 19, + + 50 + + 77 ) ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-170
SELECT + ( MIN ( DISTINCT ( + NULLIF ( - 19, + + 50 + + 77 ) ) ) )
----
-19

query I rowsort
SELECT - - ( 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT + 50 - - MAX( DISTINCT - + 90 ) * + 63
----
-5620

skipif mysql # not compatible
query I rowsort label-172
SELECT + 50 - - MAX ( DISTINCT - + 90 ) * + 63
----
-5620

query II rowsort
SELECT DISTINCT - 35 + + + 14 AS col2, 23
----
-21
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT - COALESCE ( - 44, MIN( + 40 ) )
----
44

skipif mysql # not compatible
query I rowsort label-175
SELECT - COALESCE ( - 44, MIN ( + 40 ) )
----
44

query I rowsort
SELECT + 12 + + + 12
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT + 88 + + 77 * - 93 - 56 + 14 AS col0, COUNT( ALL - NULLIF ( + 10, + 33 ) ) * - 92 col0
----
-7115
-92

skipif mysql # not compatible
query II rowsort label-177
SELECT + 88 + + 77 * - 93 - 56 + 14 AS col0, COUNT ( ALL - NULLIF ( + 10, + 33 ) ) * - 92 col0
----
-7115
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + 64 + - + 44 + - + SUM( + + 22 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-178
SELECT + 64 + - + 44 + - + SUM ( + + 22 ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-179
SELECT ALL 24 AS col2, COUNT( * ) * - + 76 DIV 78 DIV + ( 17 ) AS col2
----
24
0

skipif mysql # not compatible
query II rowsort label-179
SELECT ALL 24 AS col2, COUNT ( * ) * - + 76 / 78 / + ( 17 ) AS col2
----
24
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-180
SELECT ALL + CASE - - 35 WHEN - - 5 THEN NULL ELSE NULLIF ( + 31, - COUNT( * ) * + 57 ) END DIV + + 65
----
0

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL + CASE - - 35 WHEN - - 5 THEN NULL ELSE NULLIF ( + 31, - COUNT ( * ) * + 57 ) END / + + 65
----
0

query I rowsort
SELECT - 30 * - + 19 + - 24 + 26 * - - 34
----
1430

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT + 22 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT + 22 / 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-185
SELECT - COALESCE ( COUNT( * ), 16 ) DIV 47 - - 9 + + - 41
----
-32

skipif mysql # not compatible
query I rowsort label-185
SELECT - COALESCE ( COUNT ( * ), 16 ) / 47 - - 9 + + - 41
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-186
SELECT DISTINCT + CASE + - CASE - 38 WHEN - 63 THEN NULL ELSE + + 34 END WHEN + AVG ( DISTINCT - 18 ) / MIN( ALL + + 79 ) THEN - - 0 + CASE + - 31 WHEN - 4 * 60 / + 68 THEN 16 WHEN + - 2 + - 17 THEN + - COALESCE ( + - 22, - 28 ) + + - 29 END / + 58 WHEN 28 + + 2 + - - COUNT( * ) THEN ( - SUM( 57 ) ) + - 56 WHEN - 19 THEN NULL ELSE + COUNT( * ) END * CASE - 18 WHEN - 79 THEN NULL WHEN + CASE WHEN NOT + 47 >= 95 / - 52 THEN 59 + + 36 WHEN NOT 11 IS NOT NULL THEN NULL ELSE 31 * COALESCE ( 39 * + 86, + 3 * 3 ) END + - 24 THEN NULL WHEN 92 THEN 66 * - CASE - NULLIF ( 45, + 46 ) WHEN + MAX( + 91 ) THEN - SUM( + 19 ) * + COUNT( * ) + + 8 * 52 ELSE + 27 END WHEN - 6 THEN AVG ( ( 9 ) ) END + CAST( NULL AS DECIMAL ) * - MAX( ALL 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + CASE + - CASE - 38 WHEN - 63 THEN NULL ELSE + + 34 END WHEN + AVG ( DISTINCT - 18 ) / MIN ( ALL + + 79 ) THEN - - 0 + CASE + - 31 WHEN - 4 * 60 / + 68 THEN 16 WHEN + - 2 + - 17 THEN + - COALESCE ( + - 22, - 28 ) + + - 29 END / + 58 WHEN 28 + + 2 + - - COUNT ( * ) THEN ( - SUM ( 57 ) ) + - 56 WHEN - 19 THEN NULL ELSE + COUNT ( * ) END * CASE - 18 WHEN - 79 THEN NULL WHEN + CASE WHEN NOT + 47 >= 95 / - 52 THEN 59 + + 36 WHEN NOT 11 IS NOT NULL THEN NULL ELSE 31 * COALESCE ( 39 * + 86, + 3 * 3 ) END + - 24 THEN NULL WHEN 92 THEN 66 * - CASE - NULLIF ( 45, + 46 ) WHEN + MAX ( + 91 ) THEN - SUM ( + 19 ) * + COUNT ( * ) + + 8 * 52 ELSE + 27 END WHEN - 6 THEN AVG ( ( 9 ) ) END + CAST ( NULL AS REAL ) * - MAX ( ALL 59 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-187
SELECT + 75 + + - 48 + COUNT( * ) AS col1, 44 - + 21 + - ( 40 ) * - 45 * 50 * + 91 / CAST( NULL AS SIGNED ) * - 15 * + + ( - MIN( 67 ) ) + 16 * - + 44
----
28
NULL

skipif mysql # not compatible
query II rowsort label-187
SELECT + 75 + + - 48 + COUNT ( * ) AS col1, 44 - + 21 + - ( 40 ) * - 45 * 50 * + 91 / CAST ( NULL AS INTEGER ) * - 15 * + + ( - MIN ( 67 ) ) + 16 * - + 44
----
28
NULL

query I rowsort
SELECT ALL 80 * + 99 AS col2
----
7920

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT DISTINCT 41 DIV ( - NULLIF ( ( - 28 ), 52 ) ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT 41 / ( - NULLIF ( ( - 28 ), 52 ) ) + 12
----
13

query I rowsort
SELECT DISTINCT 15 * + + 61
----
915

query I rowsort
SELECT ALL 66 * - + 49
----
-3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-192
SELECT DISTINCT + COUNT( * ) * - 82 + 72 + COUNT( * ) DIV 63 + + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT + COUNT ( * ) * - 82 + 72 + COUNT ( * ) / 63 + + COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-193
SELECT ALL 27 * + + 42 DIV - + COUNT( * ) + - 71 + + + COUNT( * ) + 17 AS col2
----
-1187

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL 27 * + + 42 / - + COUNT ( * ) + - 71 + + + COUNT ( * ) + 17 AS col2
----
-1187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT ALL - COUNT( * ) * + COALESCE ( - CASE + - 7 WHEN + + 72 THEN - + COUNT( * ) DIV + ( + 79 ) + - MAX( + 24 ) ELSE NULL END, 27 ) * + 93 + - 63
----
-2574

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL - COUNT ( * ) * + COALESCE ( - CASE + - 7 WHEN + + 72 THEN - + COUNT ( * ) / + ( + 79 ) + - MAX ( + 24 ) ELSE NULL END, 27 ) * + 93 + - 63
----
-2574

query I rowsort
SELECT - COALESCE ( - 97, - - 95 + + 20 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT - 85 + 87 + 24 + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-196
SELECT - 85 + 87 + 24 + COUNT ( * )
----
27

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

query I rowsort
SELECT ( - - 33 ) col2
----
33

query I rowsort
SELECT ALL + 57 * + 58
----
3306

query I rowsort
SELECT - 99 + + - 93
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL COUNT( * ) * + 88 + - + 78
----
10

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL COUNT ( * ) * + 88 + - + 78
----
10

query I rowsort
SELECT ALL - COALESCE ( 79, - ( 25 ) ) AS col2
----
-79

query I rowsort
SELECT - 56 * + + 24 * - COALESCE ( - 87, 52 - - 55 ) + 46 * + 7 * 78 * 99 col1
----
2369556

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

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

query I rowsort
SELECT DISTINCT ( - NULLIF ( 93, + 26 * - - 64 * - - 25 + + 10 + + 51 ) ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL + 97 * - + COUNT( + 60 ) + - 26 + + COUNT( DISTINCT 93 ) + + 66 * 46 * + - MIN( ALL + 32 ) * - 59
----
5731846

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + 97 * - + COUNT ( + 60 ) + - 26 + + COUNT ( DISTINCT 93 ) + + 66 * 46 * + - MIN ( ALL + 32 ) * - 59
----
5731846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT DISTINCT + 64 * CASE 10 WHEN 65 THEN NULL ELSE + MIN( - - 35 ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 52 * + 45 END - + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT + 64 * CASE 10 WHEN 65 THEN NULL ELSE + MIN ( - - 35 ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 52 * + 45 END - + 32 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT SUM( + CAST( 5 AS SIGNED ) ) + + - 75 col0
----
-70

skipif mysql # not compatible
query I rowsort label-208
SELECT SUM ( + CAST ( 5 AS INTEGER ) ) + + - 75 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - - 59 - + COUNT( DISTINCT + 49 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - - 59 - + COUNT ( DISTINCT + 49 ) AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT + ( COUNT( * ) ) DIV + - COUNT( * ) - - - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-210
SELECT + ( COUNT ( * ) ) / + - COUNT ( * ) - - - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT 21 * - 40
----
-840

query I rowsort
SELECT + 75 + + ( + + 40 ) * + 65 - - 19 * - 98 + + 81 AS col2
----
894

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

skipif mysql # not compatible
query I rowsort label-213
SELECT COUNT ( * ) + - 24 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-214
SELECT ALL 13, 11 * - 17 * + - 62 * + MIN( ALL 69 ) AS col2
----
13
799986

skipif mysql # not compatible
query II rowsort label-214
SELECT ALL 13, 11 * - 17 * + - 62 * + MIN ( ALL 69 ) AS col2
----
13
799986

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT 11 * COUNT( DISTINCT + - 8 )
----
11

skipif mysql # not compatible
query I rowsort label-215
SELECT 11 * COUNT ( DISTINCT + - 8 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-216
SELECT - 67, - MAX( DISTINCT - 28 ) col1
----
-67
28

skipif mysql # not compatible
query II rowsort label-216
SELECT - 67, - MAX ( DISTINCT - 28 ) col1
----
-67
28

query I rowsort
SELECT DISTINCT - 81 - - 20 * - 86 AS col0
----
-1801

query II rowsort
SELECT ALL 71 AS col1, + ( - 91 )
----
71
-91

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

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 28 AS col0, - 85 AS col0
----
28
-85

query II rowsort
SELECT ALL 80 AS col2, + 13 AS col1
----
80
13

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-223
SELECT ( + - MIN( - + 51 ) ) * - 9, 62 AS col2
----
-459
62

skipif mysql # not compatible
query II rowsort label-223
SELECT ( + - MIN ( - + 51 ) ) * - 9, 62 AS col2
----
-459
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT DISTINCT CAST( - + 47 AS SIGNED ) * 96 AS col2
----
-4512

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT CAST ( - + 47 AS INTEGER ) * 96 AS col2
----
-4512

onlyif mysql # aggregate syntax: 
query II rowsort label-225
SELECT DISTINCT ( + ( - - COUNT( * ) ) ) + 67 col1, 0 * 87
----
68
0

skipif mysql # not compatible
query II rowsort label-225
SELECT DISTINCT ( + ( - - COUNT ( * ) ) ) + 67 col1, 0 * 87
----
68
0

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

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

query II rowsort
SELECT ALL - 91 AS col0, - 74 * + 65 AS col1
----
-91
-4810

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL NULLIF ( 62, COUNT( * ) ) + 45
----
107

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL NULLIF ( 62, COUNT ( * ) ) + 45
----
107

query I rowsort
SELECT ALL + + 91 + + - 30 AS col2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT + 83 DIV - + 94 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-230
SELECT + 83 / - + 94 + + 99
----
99

query I rowsort
SELECT DISTINCT 73 + - 66 - - 35 AS col1
----
42

query II rowsort
SELECT ALL - 77 AS col2, 64 + - + 51 * - + 89 * 38
----
-77
172546

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT + SUM( DISTINCT - - NULLIF ( 35, + - ( + 84 ) + + ( - NULLIF ( - + 27, + - 99 ) ) / - 42 ) )
----
35

skipif mysql # not compatible
query I rowsort label-233
SELECT + SUM ( DISTINCT - - NULLIF ( 35, + - ( + 84 ) + + ( - NULLIF ( - + 27, + - 99 ) ) / - 42 ) )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-234
SELECT + 27 AS col2, 98 * 26 * - - COUNT( - 9 ) + + 19 + - + 12 + + 58 * + + 63
----
27
6209

skipif mysql # not compatible
query II rowsort label-234
SELECT + 27 AS col2, 98 * 26 * - - COUNT ( - 9 ) + + 19 + - + 12 + + 58 * + + 63
----
27
6209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT + 74 + - CAST( NULLIF ( + 70, - + 58 ) AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-235
SELECT + 74 + - CAST ( NULLIF ( + 70, - + 58 ) AS INTEGER ) AS col2
----
4

query I rowsort
SELECT 56 * 40 AS col2
----
2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-237
SELECT ALL CAST( 43 AS SIGNED ) + 67
----
110

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL CAST ( 43 AS INTEGER ) + 67
----
110

query I rowsort
SELECT ALL 57 + 1 AS col2
----
58

query I rowsort
SELECT DISTINCT - 59 * - 95 AS col1
----
5605

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL + ( + 16 ) * - COALESCE ( 23, - COUNT( * ) ) AS col1
----
-368

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL + ( + 16 ) * - COALESCE ( 23, - COUNT ( * ) ) AS col1
----
-368

query I rowsort
SELECT DISTINCT 84 - 33 * - 10
----
414

query II rowsort
SELECT DISTINCT - - 58, + 50 AS col0
----
58
50

onlyif mysql # aggregate syntax: 
query II rowsort label-245
SELECT DISTINCT - - 98 AS col0, + ( + CASE 65 WHEN - COUNT( * ) THEN NULL WHEN - - 96 THEN + 10 * + 19 * 67 + - ( - 60 ) * 23 + 78 END ) * - + 33 + - 34 AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-245
SELECT DISTINCT - - 98 AS col0, + ( + CASE 65 WHEN - COUNT ( * ) THEN NULL WHEN - - 96 THEN + 10 * + 19 * 67 + - ( - 60 ) * 23 + 78 END ) * - + 33 + - 34 AS col0
----
98
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT 98, 24 * MAX( 12 ) AS col2
----
98
288

skipif mysql # not compatible
query II rowsort label-248
SELECT 98, 24 * MAX ( 12 ) AS col2
----
98
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-249
SELECT 46 - + NULLIF ( + 14, 57 DIV 40 ) * + - 92 DIV COUNT( * ) * - 92
----
-118450

skipif mysql # not compatible
query I rowsort label-249
SELECT 46 - + NULLIF ( + 14, 57 / 40 ) * + - 92 / COUNT ( * ) * - 92
----
-118450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-250
SELECT + CAST( NULL AS SIGNED ) * - 32 + + + 57 * - - 88 - - ( + COUNT( * ) ) * + ( + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-250
SELECT + CAST ( NULL AS INTEGER ) * - 32 + + + 57 * - - 88 - - ( + COUNT ( * ) ) * + ( + 70 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-252
SELECT - + 51 AS col0, + 54 * 30 * + 57 + + 61 - - 45 + - + 26 DIV + COUNT( DISTINCT + 64 ) AS col0, - + 1
----
-51
92420
-1

skipif mysql # not compatible
query III rowsort label-252
SELECT - + 51 AS col0, + 54 * 30 * + 57 + + 61 - - 45 + - + 26 / + COUNT ( DISTINCT + 64 ) AS col0, - + 1
----
-51
92420
-1

query I rowsort
SELECT DISTINCT - 52 * - 29 + + 35 AS col0
----
1543

query I rowsort
SELECT ALL - ( 1 ) * + ( 58 )
----
-58

query II rowsort
SELECT DISTINCT - 86 * - 65 AS col1, + 41
----
5590
41

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT 4 + - + NULLIF ( - MIN( - + 77 ), + 36 / + + 25 ) + 82 + + 76 + - 97 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-256
SELECT 4 + - + NULLIF ( - MIN ( - + 77 ), + 36 / + + 25 ) + 82 + + 76 + - 97 AS col1
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-257
SELECT 14 + + - NULLIF ( + 87, - + 66 * + - COALESCE ( + 74, - + NULLIF ( - 43, CAST( NULL AS DECIMAL ) ) ) * + - 7 + + 5 * + - 31 / - 63 - 95 )
----
-73

skipif mysql # not compatible
query I rowsort label-257
SELECT 14 + + - NULLIF ( + 87, - + 66 * + - COALESCE ( + 74, - + NULLIF ( - 43, CAST ( NULL AS REAL ) ) ) * + - 7 + + 5 * + - 31 / - 63 - 95 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-258
SELECT 20 + + 17 + - 74 + 3 + CASE + 59 WHEN + - 51 + + 74 + + NULLIF ( - MAX( ALL - 33 ), + ( - - COUNT( * ) ) ) + - + ( + - 18 ) + - 41 - + 1 + - 35 + + + 49 * 50 + + COUNT( * ) * 16 * AVG ( DISTINCT + COALESCE ( + 19, CAST( NULL AS SIGNED ) + + + 70 ) ) THEN - 96 ELSE + 79 * - 42 + CAST( NULL AS SIGNED ) + + - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-258
SELECT 20 + + 17 + - 74 + 3 + CASE + 59 WHEN + - 51 + + 74 + + NULLIF ( - MAX ( ALL - 33 ), + ( - - COUNT ( * ) ) ) + - + ( + - 18 ) + - 41 - + 1 + - 35 + + + 49 * 50 + + COUNT ( * ) * 16 * AVG ( DISTINCT + COALESCE ( + 19, CAST ( NULL AS INTEGER ) + + + 70 ) ) THEN - 96 ELSE + 79 * - 42 + CAST ( NULL AS INTEGER ) + + - 98 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT DISTINCT COUNT( - 81 ), 67 AS col2
----
1
67

skipif mysql # not compatible
query II rowsort label-259
SELECT DISTINCT COUNT ( - 81 ), 67 AS col2
----
1
67

onlyif mysql # DIV for integer division: 
query II rowsort label-260
SELECT ALL 69 + + 40, + 22 DIV 6 AS col2
----
109
3

skipif mysql # not compatible
query II rowsort label-260
SELECT ALL 69 + + 40, + 22 / 6 AS col2
----
109
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT ALL + ( - 28 ) + - CASE - - COUNT( * ) WHEN - 76 THEN - 62 * AVG ( ALL + CASE + + 52 WHEN + 51 THEN NULL WHEN + 16 + + 2 + - - 91 + + 31 + 52 / CAST( - 76 AS SIGNED ) * - - 11 + + 60 THEN NULL ELSE + 49 END ) WHEN - + 17 THEN NULL END * + 75 * + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + ( - 28 ) + - CASE - - COUNT ( * ) WHEN - 76 THEN - 62 * AVG ( ALL + CASE + + 52 WHEN + 51 THEN NULL WHEN + 16 + + 2 + - - 91 + + 31 + 52 / CAST ( - 76 AS INTEGER ) * - - 11 + + 60 THEN NULL ELSE + 49 END ) WHEN - + 17 THEN NULL END * + 75 * + 47 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT DISTINCT + CAST( 83 AS SIGNED ) + - 23 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + CAST ( 83 AS INTEGER ) + - 23 AS col2
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT DISTINCT + 21 * - - ( 62 ) + + COALESCE ( 26, + 51 - - - 4, + NULLIF ( + 1, - - ( - + COUNT( * ) ) ), + 8 + + COUNT( * ) ) * + 59 AS col1
----
2836

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT + 21 * - - ( 62 ) + + COALESCE ( 26, + 51 - - - 4, + NULLIF ( + 1, - - ( - + COUNT ( * ) ) ), + 8 + + COUNT ( * ) ) * + 59 AS col1
----
2836

query I rowsort
SELECT ALL 2 * - + 33 + + - ( + 98 ) col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT COALESCE ( - 94, ( - - 99 ) + - + COUNT( * ) * - + ( - 34 ) ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-266
SELECT COALESCE ( - 94, ( - - 99 ) + - + COUNT ( * ) * - + ( - 34 ) ) col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT COUNT( * ) * - 16 * 53 * 87 col2
----
-73776

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT COUNT ( * ) * - 16 * 53 * 87 col2
----
-73776

query I rowsort
SELECT + 72 * - + 97 * - 29
----
202536

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

query I rowsort
SELECT ALL + 30 * - + NULLIF ( + + 21, 14 ) AS col0
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-271
SELECT ALL - ( 73 ) * - COUNT( * ) - - - ( - CASE 33 WHEN 57 - + - MAX( DISTINCT - 53 ) * + CASE + COUNT( * ) WHEN + + 24 * + CAST( NULL AS SIGNED ) + + - MIN( DISTINCT + 42 ) + 19 THEN 86 * - 68 + - CAST( - - 62 AS DECIMAL ) + - COALESCE ( + 67, - 62, 11 ) + + MIN( DISTINCT - - 91 ) WHEN + 85 + + - COUNT( * ) THEN NULL END * - - 33 THEN 56 + + - 80 * + NULLIF ( + 48, - CAST( - 37 AS SIGNED ) ) END ) * + SUM( ALL 55 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - ( 73 ) * - COUNT ( * ) - - - ( - CASE 33 WHEN 57 - + - MAX ( DISTINCT - 53 ) * + CASE + COUNT ( * ) WHEN + + 24 * + CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT + 42 ) + 19 THEN 86 * - 68 + - CAST ( - - 62 AS REAL ) + - COALESCE ( + 67, - 62, 11 ) + + MIN ( DISTINCT - - 91 ) WHEN + 85 + + - COUNT ( * ) THEN NULL END * - - 33 THEN 56 + + - 80 * + NULLIF ( + 48, - CAST ( - 37 AS INTEGER ) ) END ) * + SUM ( ALL 55 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-272
SELECT DISTINCT + SUM( ALL - 1 ) AS col2, - ( 98 ) + + + 11 + 44 + COUNT( * ) DIV 56
----
-1
-43

skipif mysql # not compatible
query II rowsort label-272
SELECT DISTINCT + SUM ( ALL - 1 ) AS col2, - ( 98 ) + + + 11 + 44 + COUNT ( * ) / 56
----
-1
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT DISTINCT + 45 * - COUNT( * ) - 66
----
-111

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + 45 * - COUNT ( * ) - 66
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT 69 * + + COUNT( * ) + COALESCE ( - 68, 17 * + - 73 ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-274
SELECT 69 * + + COUNT ( * ) + COALESCE ( - 68, 17 * + - 73 ) + + 28
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT + + 83 + - COUNT( * ) * + + 95
----
-12

skipif mysql # not compatible
query I rowsort label-276
SELECT + + 83 + - COUNT ( * ) * + + 95
----
-12

query I rowsort
SELECT + 74 * + 17
----
1258

query I rowsort
SELECT - 44 * - 42 * - 3 * + 35 * - 93
----
18045720

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL 14 * MIN( ALL 58 )
----
812

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL 14 * MIN ( ALL 58 )
----
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT + - COALESCE ( - 37, - 46, - + 65 ) + - 32 + 85 + - 42 - + COUNT( * ) + - 65 + - 62 - - - ( 8 ) * - 3 DIV COUNT( DISTINCT - - 41 ) * + 13 * + - ( + 84 ) * - + 29 AS col2
----
759952

skipif mysql # not compatible
query I rowsort label-280
SELECT + - COALESCE ( - 37, - 46, - + 65 ) + - 32 + 85 + - 42 - + COUNT ( * ) + - 65 + - 62 - - - ( 8 ) * - 3 / COUNT ( DISTINCT - - 41 ) * + 13 * + - ( + 84 ) * - + 29 AS col2
----
759952

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

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

query II rowsort
SELECT + - 59 * + 79 AS col1, + 46 AS col2
----
-4661
46

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

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

query I rowsort
SELECT ALL 47 * + COALESCE ( 16, + - 58 ) * - + 76 + + 56 AS col0
----
-57096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-285
SELECT DISTINCT COUNT( * ) * + + CAST( + + 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT COUNT ( * ) * + + CAST ( + + 45 AS INTEGER ) AS col0
----
45

query I rowsort
SELECT ALL 65 * + 84 AS col2
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-287
SELECT - 35 + + CAST( NULL AS SIGNED ) + + 98 / + + NULLIF ( - 2, + - 30 ) AS col1, - COUNT( * ) * + ( + + 55 )
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-287
SELECT - 35 + + CAST ( NULL AS INTEGER ) + + 98 / + + NULLIF ( - 2, + - 30 ) AS col1, - COUNT ( * ) * + ( + + 55 )
----
NULL
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL SUM( - - 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL SUM ( - - 56 ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT + 6 * 61 DIV - 26 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-289
SELECT + 6 * 61 / - 26 AS col1
----
-14

query I rowsort
SELECT - 11 + - 37 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-291
SELECT DISTINCT COUNT( * ) AS col2, 23 DIV COUNT( * ) * 25
----
1
575

skipif mysql # not compatible
query II rowsort label-291
SELECT DISTINCT COUNT ( * ) AS col2, 23 / COUNT ( * ) * 25
----
1
575

query I rowsort
SELECT - 75 * - 67
----
5025

query I rowsort
SELECT ALL - 37 * + 82
----
-3034

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT ALL + COALESCE ( - 83, + 38, + 85 ) + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-295
SELECT ALL + COALESCE ( - 83, + 38, + 85 ) + COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT - 19 * - - 48
----
-912

query I rowsort
SELECT DISTINCT ( + - NULLIF ( + 24, 91 ) ) AS col0
----
-24

query I rowsort
SELECT ALL + 74 + - 97
----
-23

query I rowsort
SELECT DISTINCT NULLIF ( + - ( - 89 ), + 61 + - - 15 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-300
SELECT - COUNT( * ) - 32 * + CAST( 66 AS SIGNED ) - + + 19 AS col1
----
-2132

skipif mysql # not compatible
query I rowsort label-300
SELECT - COUNT ( * ) - 32 * + CAST ( 66 AS INTEGER ) - + + 19 AS col1
----
-2132

query I rowsort
SELECT - NULLIF ( + 23, + 45 + + 6 ) * - 35
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL ( - MIN( + 7 ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL ( - MIN ( + 7 ) ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT + + CASE ( - 6 ) WHEN MAX( - 65 ) * + NULLIF ( + COUNT( * ), 74 + 13 ) THEN COUNT( * ) * MAX( - 99 ) / 43 WHEN - 80 THEN 98 - + 66 + + + 9 * + + 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-303
SELECT + + CASE ( - 6 ) WHEN MAX ( - 65 ) * + NULLIF ( + COUNT ( * ), 74 + 13 ) THEN COUNT ( * ) * MAX ( - 99 ) / 43 WHEN - 80 THEN 98 - + 66 + + + 9 * + + 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT + 20 DIV - 10 - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT + 20 / - 10 - + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-305
SELECT ALL - CAST( - 3 AS SIGNED ) DIV - - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - CAST ( - 3 AS INTEGER ) / - - 64 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-306
SELECT - - 64 * + ( COUNT ( DISTINCT 78 ) ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT DISTINCT + 37 * - + 16 + 60 DIV + 91 AS col1
----
-592

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + 37 * - + 16 + 60 / + 91 AS col1
----
-592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-308
SELECT DISTINCT + 26 DIV - COUNT( * ) * COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT + 26 / - COUNT ( * ) * COUNT ( * ) AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-309
SELECT DISTINCT COUNT( * ) DIV + 14 - + 6 * - - 48 DIV + 4 DIV NULLIF ( + COUNT( * ), 78 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT COUNT ( * ) / + 14 - + 6 * - - 48 / + 4 / NULLIF ( + COUNT ( * ), 78 ) AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT ALL + + 53 DIV - MIN( + + ( + + ( 50 ) ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL + + 53 / - MIN ( + + ( + + ( 50 ) ) ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-311
SELECT + COUNT( * ) + 86 * - + 37, 1 AS col1
----
-3181
1

skipif mysql # not compatible
query II rowsort label-311
SELECT + COUNT ( * ) + 86 * - + 37, 1 AS col1
----
-3181
1

query II rowsort
SELECT - 45 * 41 + - 14, 77 col0
----
-1859
77

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL + ( - + MIN( ALL 38 ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + ( - + MIN ( ALL 38 ) ) AS col2
----
-38

query I rowsort
SELECT DISTINCT 2 * + 12 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT - - COUNT( ALL 16 ) + ( + - 43 ) + + COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-315
SELECT - - COUNT ( ALL 16 ) + ( + - 43 ) + + COUNT ( * ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + - SUM( - 44 ) * + 94 + 51 AS col0
----
4187

skipif mysql # not compatible
query I rowsort label-316
SELECT + - SUM ( - 44 ) * + 94 + 51 AS col0
----
4187

query I rowsort
SELECT DISTINCT + - 46
----
-46

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( + 89, 80 + + 50 ) * 45 AS col2
----
4005

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + COUNT( * ) * - 95 - - 7 + 89 - 5
----
-4

skipif mysql # not compatible
query I rowsort label-320
SELECT + COUNT ( * ) * - 95 - - 7 + 89 - 5
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT + + COUNT( + 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT + + COUNT ( + 90 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT NULLIF ( - ( - 8 ), - MAX( DISTINCT 12 ) )
----
8

skipif mysql # not compatible
query I rowsort label-322
SELECT NULLIF ( - ( - 8 ), - MAX ( DISTINCT 12 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT CASE + COUNT( + - 90 ) WHEN 69 / + COUNT( * ) THEN NULL ELSE 99 END
----
99

skipif mysql # not compatible
query I rowsort label-323
SELECT CASE + COUNT ( + - 90 ) WHEN 69 / + COUNT ( * ) THEN NULL ELSE 99 END
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT + 6 DIV + 40 * + 74 col0
----
0

skipif mysql # not compatible
query I rowsort label-324
SELECT + 6 / + 40 * + 74 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL - 93 * COUNT( * ) * - 73 + 0 + - COUNT( * ) AS col2
----
6788

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - 93 * COUNT ( * ) * - 73 + 0 + - COUNT ( * ) AS col2
----
6788

query I rowsort
SELECT + 23 - 44 + + 70
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT SUM( ALL - 25 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-328
SELECT SUM ( ALL - 25 ) col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-329
SELECT ALL + COALESCE ( + ( - 47 ), + CAST( COUNT( * ) AS SIGNED ) + - - 64 + + 81 ) * + 35 + + 43 * - - SUM( 16 ) * + 3 - + + 16 * NULLIF ( - 77, 80 ) * + 3 * + COUNT( * ) + + 13 + + ( - ( + ( - 62 ) ) ) AS col1
----
4190

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL + COALESCE ( + ( - 47 ), + CAST ( COUNT ( * ) AS INTEGER ) + - - 64 + + 81 ) * + 35 + + 43 * - - SUM ( 16 ) * + 3 - + + 16 * NULLIF ( - 77, 80 ) * + 3 * + COUNT ( * ) + + 13 + + ( - ( + ( - 62 ) ) ) AS col1
----
4190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-330
SELECT 41 * + 19 * 0 - ( + CAST( NULL AS SIGNED ) ) * + + 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT 41 * + 19 * 0 - ( + CAST ( NULL AS INTEGER ) ) * + + 62 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL CASE + 81 WHEN CASE - 58 WHEN - 98 * - 14 THEN 5 WHEN - 68 + + ( ( + + 57 ) ) * + 81 THEN NULL ELSE - - 74 END THEN + NULLIF ( COUNT( * ), + + ( - ( + COUNT( * ) ) ) + 1 * + 14 ) * - COUNT( * ) END / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL CASE + 81 WHEN CASE - 58 WHEN - 98 * - 14 THEN 5 WHEN - 68 + + ( ( + + 57 ) ) * + 81 THEN NULL ELSE - - 74 END THEN + NULLIF ( COUNT ( * ), + + ( - ( + COUNT ( * ) ) ) + 1 * + 14 ) * - COUNT ( * ) END / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT ALL 13 * + 38 * MAX( + + 65 ) + - ( + 50 ) * 47 + - + COUNT( * ) col2
----
29759

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL 13 * + 38 * MAX ( + + 65 ) + - ( + 50 ) * 47 + - + COUNT ( * ) col2
----
29759

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT SUM( 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-333
SELECT SUM ( 76 ) AS col0
----
76

query I rowsort
SELECT DISTINCT ( + 87 ) * 5 * + 50 AS col1
----
21750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-335
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 42 + - 62 - - + 26 * - - 30 / - 4 + + 32 * 44 * ( - CASE + 5 WHEN + 80 THEN - 46 WHEN - 10 + - ( - 54 ) THEN + COUNT( * ) END ) * - NULLIF ( NULLIF ( + 87, + + 42 ), + + 56 ) AS col1, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-335
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 42 + - 62 - - + 26 * - - 30 / - 4 + + 32 * 44 * ( - CASE + 5 WHEN + 80 THEN - 46 WHEN - 10 + - ( - 54 ) THEN + COUNT ( * ) END ) * - NULLIF ( NULLIF ( + 87, + + 42 ), + + 56 ) AS col1, 26
----
NULL
26

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL + 78 + + - SUM( - + 5 )
----
83

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL + 78 + + - SUM ( - + 5 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT + NULLIF ( + CAST( - + 62 AS SIGNED ), - 74 ) - - + 38
----
-24

skipif mysql # not compatible
query I rowsort label-337
SELECT + NULLIF ( + CAST ( - + 62 AS INTEGER ), - 74 ) - - + 38
----
-24

query I rowsort
SELECT ALL 51 * 97
----
4947

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT - COUNT( * ) - - - 73 * + 41 AS col2
----
-2994

skipif mysql # not compatible
query I rowsort label-340
SELECT - COUNT ( * ) - - - 73 * + 41 AS col2
----
-2994

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-341
SELECT - CAST( 57 AS SIGNED ), 99 AS col2
----
-57
99

skipif mysql # not compatible
query II rowsort label-341
SELECT - CAST ( 57 AS INTEGER ), 99 AS col2
----
-57
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-342
SELECT + NULLIF ( + + CAST( NULL AS SIGNED ), - 88 + - 8 ) + + 72 AS col1, - 95 * COALESCE ( - 98, - CASE + 63 WHEN - + 80 * - 73 THEN + 47 + - - COUNT( * ) * 77 * - + 99 DIV - ( + 19 ) + 87 WHEN - 18 * + 72 + + 64 + - 50 + + CASE 6 WHEN + - 41 - 21 THEN - - 90 * - 57 WHEN 73 THEN 76 ELSE NULL END + + 97 THEN NULL END ) * + SUM( - - 59 )
----
NULL
549290

skipif mysql # not compatible
query II rowsort label-342
SELECT + NULLIF ( + + CAST ( NULL AS INTEGER ), - 88 + - 8 ) + + 72 AS col1, - 95 * COALESCE ( - 98, - CASE + 63 WHEN - + 80 * - 73 THEN + 47 + - - COUNT ( * ) * 77 * - + 99 / - ( + 19 ) + 87 WHEN - 18 * + 72 + + 64 + - 50 + + CASE 6 WHEN + - 41 - 21 THEN - - 90 * - 57 WHEN 73 THEN 76 ELSE NULL END + + 97 THEN NULL END ) * + SUM ( - - 59 )
----
NULL
549290

query I rowsort
SELECT + 54 + 27 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT DISTINCT - 72 - NULLIF ( + CASE + + 79 WHEN + CASE - + 15 WHEN - COUNT( * ) THEN NULL WHEN + 83 * + 88 THEN - + 90 + NULLIF ( - 18, + 42 ) * - - 65 WHEN + 42 THEN NULL ELSE NULL END * - MAX( ALL - 47 ) * - - ( + 58 ) + - 50 THEN + CASE - 54 WHEN + 82 THEN NULL ELSE - COUNT( * ) END ELSE NULL END, 64 ) + + 46 + - MAX( 24 ) - ( + 25 ) * ( - 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - 72 - NULLIF ( + CASE + + 79 WHEN + CASE - + 15 WHEN - COUNT ( * ) THEN NULL WHEN + 83 * + 88 THEN - + 90 + NULLIF ( - 18, + 42 ) * - - 65 WHEN + 42 THEN NULL ELSE NULL END * - MAX ( ALL - 47 ) * - - ( + 58 ) + - 50 THEN + CASE - 54 WHEN + 82 THEN NULL ELSE - COUNT ( * ) END ELSE NULL END, 64 ) + + 46 + - MAX ( 24 ) - ( + 25 ) * ( - 84 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT DISTINCT + - MAX( - 21 ) * + 90 AS col0
----
1890

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT + - MAX ( - 21 ) * + 90 AS col0
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT DISTINCT + 80 * + 42 - + 4 + 22 * - 15 + + 49 * - 92 * - NULLIF ( + 1, - COALESCE ( 41, + 14 * + + 4 + - MAX( - 52 ) * - ( + COALESCE ( - 53, ( + ( 8 ) ) ) ), + 22 ) ) * + 1
----
7534

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT + 80 * + 42 - + 4 + 22 * - 15 + + 49 * - 92 * - NULLIF ( + 1, - COALESCE ( 41, + 14 * + + 4 + - MAX ( - 52 ) * - ( + COALESCE ( - 53, ( + ( 8 ) ) ) ), + 22 ) ) * + 1
----
7534

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT 34 + - + SUM( ALL + 78 ) * 61 AS col1, 68
----
-4724
68

skipif mysql # not compatible
query II rowsort label-347
SELECT 34 + - + SUM ( ALL + 78 ) * 61 AS col1, 68
----
-4724
68

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT + COUNT( * ) * - COUNT( ALL + + 31 ) + + 69 + + ( + 37 ) + + + COALESCE ( COUNT( * ), COUNT( * ) ) + - 71 - 30 - ( + 53 ) * + 46
----
-2433

skipif mysql # not compatible
query I rowsort label-348
SELECT + COUNT ( * ) * - COUNT ( ALL + + 31 ) + + 69 + + ( + 37 ) + + + COALESCE ( COUNT ( * ), COUNT ( * ) ) + - 71 - 30 - ( + 53 ) * + 46
----
-2433

query I rowsort
SELECT DISTINCT - + 71 * 75 * 93 AS col0
----
-495225

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-350
SELECT ALL + AVG ( DISTINCT CASE - ( - 69 ) WHEN 11 THEN - 23 * - 6 + + 22 WHEN - 83 - - 95 THEN - 85 END ) * 36 * 99 + - 78 AS col0, - ( + 62 ) DIV + 9 + - CAST( - + 3 AS SIGNED ) AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL + AVG ( DISTINCT CASE - ( - 69 ) WHEN 11 THEN - 23 * - 6 + + 22 WHEN - 83 - - 95 THEN - 85 END ) * 36 * 99 + - 78 AS col0, - ( + 62 ) / + 9 + - CAST ( - + 3 AS INTEGER ) AS col1
----
NULL
-3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT ALL - - 21 + - 15 DIV + 21 + 21
----
42

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL - - 21 + - 15 / + 21 + 21
----
42

query I rowsort
SELECT + 1 + + - 38 AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-354
SELECT DISTINCT - 20 DIV CAST( - CAST( 75 AS SIGNED ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - 20 / CAST ( - CAST ( 75 AS INTEGER ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT 20 + 16
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-356
SELECT 67 col2, + MAX( ALL + - 37 ) * + ( + - 37 ) AS col0
----
67
1369

skipif mysql # not compatible
query II rowsort label-356
SELECT 67 col2, + MAX ( ALL + - 37 ) * + ( + - 37 ) AS col0
----
67
1369

query I rowsort
SELECT 30 + 20
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT CASE - 58 WHEN + COUNT( * ) THEN NULL WHEN + CASE - - ( 76 ) WHEN - 58 + - - 49 THEN + 13 END THEN + 18 END - 56 / 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT CASE - 58 WHEN + COUNT ( * ) THEN NULL WHEN + CASE - - ( 76 ) WHEN - 58 + - - 49 THEN + 13 END THEN + 18 END - 56 / 87 col1
----
NULL

query I rowsort
SELECT DISTINCT 12 * - 55 AS col1
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT DISTINCT + 64 * + - MAX( DISTINCT + 75 ) AS col1
----
-4800

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT + 64 * + - MAX ( DISTINCT + 75 ) AS col1
----
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT DISTINCT - 92 + NULLIF ( - NULLIF ( - - 32, + ( + 29 ) * - + MIN( - 52 ) ), - CAST( - 46 AS SIGNED ) ) + - 56 + - + 19 col0
----
-199

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT - 92 + NULLIF ( - NULLIF ( - - 32, + ( + 29 ) * - + MIN ( - 52 ) ), - CAST ( - 46 AS INTEGER ) ) + - 56 + - + 19 col0
----
-199

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

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

query I rowsort
SELECT 65 + + 63 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT ALL 52 + CASE + 63 WHEN + COUNT( - 3 ) THEN ( - 10 ) * + 75 + + MAX( ALL - ( + + 42 ) ) WHEN + 38 * + 37 + - 85 + - CASE 29 WHEN - AVG ( ALL - 28 ) THEN NULL WHEN + + 81 THEN - 28 ELSE - COUNT( * ) END + - 6 * - 78 * - 29 - - 18 THEN NULL WHEN + 65 THEN NULL ELSE - 76 END * 41 + - + 8 + 28 + - 0 * + NULLIF ( 32, - + 0 ) * + 56 + + + 63 * + 19 AS col1
----
-1847

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL 52 + CASE + 63 WHEN + COUNT ( - 3 ) THEN ( - 10 ) * + 75 + + MAX ( ALL - ( + + 42 ) ) WHEN + 38 * + 37 + - 85 + - CASE 29 WHEN - AVG ( ALL - 28 ) THEN NULL WHEN + + 81 THEN - 28 ELSE - COUNT ( * ) END + - 6 * - 78 * - 29 - - 18 THEN NULL WHEN + 65 THEN NULL ELSE - 76 END * 41 + - + 8 + 28 + - 0 * + NULLIF ( 32, - + 0 ) * + 56 + + + 63 * + 19 AS col1
----
-1847

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

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

query II rowsort
SELECT DISTINCT 63 - 90 * - 53 * 67 + - 37 AS col1, 77 col0
----
319616
77

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT DISTINCT 39 - + - MAX( - ( - 72 ) ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT 39 - + - MAX ( - ( - 72 ) ) AS col1
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT DISTINCT 10 DIV + COALESCE ( + 29, COUNT( * ) * 45 ) * 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT 10 / + COALESCE ( + 29, COUNT ( * ) * 45 ) * 44 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-369
SELECT 83 * + 49 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-370
SELECT ALL 8 * + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL 8 * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL - 42 * + 35 + - SUM( DISTINCT 35 ) + + - COALESCE ( + 77, - 46 ) AS col1
----
-1582

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL - 42 * + 35 + - SUM ( DISTINCT 35 ) + + - COALESCE ( + 77, - 46 ) AS col1
----
-1582

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT - MIN( DISTINCT - - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-372
SELECT - MIN ( DISTINCT - - 41 ) AS col2
----
-41

query I rowsort
SELECT ALL + 68 * - 41 + + 54
----
-2734

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT CASE 4 WHEN + 10 THEN NULL ELSE MAX( + 51 ) - COUNT( * ) * + 3 END * - CASE + 0 WHEN 24 - + - 4 + + - 46 * - 32 THEN - + 57 WHEN + - 14 THEN NULL ELSE NULL END + 94 col0, ( + ( MIN( 55 ) ) )
----
NULL
55

skipif mysql # not compatible
query II rowsort label-374
SELECT CASE 4 WHEN + 10 THEN NULL ELSE MAX ( + 51 ) - COUNT ( * ) * + 3 END * - CASE + 0 WHEN 24 - + - 4 + + - 46 * - 32 THEN - + 57 WHEN + - 14 THEN NULL ELSE NULL END + 94 col0, ( + ( MIN ( 55 ) ) )
----
NULL
55

query I rowsort
SELECT - ( + + 90 ) col0
----
-90

query II rowsort
SELECT - 25 AS col2, 5 col1
----
-25
5

query I rowsort
SELECT 36 - + 5 AS col1
----
31

query I rowsort
SELECT 79 * - + 28
----
-2212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-379
SELECT 67 * + AVG ( ALL - CAST( NULL AS DECIMAL ) ) + CASE - - CAST( - 6 AS SIGNED ) WHEN + NULLIF ( 69, 3 ) THEN NULL ELSE - - 38 * - 92 + - - 19 + - AVG ( ALL - 83 ) + 2 * + - 2 * 52 END + + 74, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-379
SELECT 67 * + AVG ( ALL - CAST ( NULL AS REAL ) ) + CASE - - CAST ( - 6 AS INTEGER ) WHEN + NULLIF ( 69, 3 ) THEN NULL ELSE - - 38 * - 92 + - - 19 + - AVG ( ALL - 83 ) + 2 * + - 2 * 52 END + + 74, COUNT ( * ) AS col2
----
NULL
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT DISTINCT - + 76 * + + COUNT( * ) * - 81 + 86
----
6242

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT - + 76 * + + COUNT ( * ) * - 81 + 86
----
6242

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

query I rowsort
SELECT ALL + 74 * 7 + 22 + - 46 - + 71
----
423

query II rowsort
SELECT + 59, 33 AS col0
----
59
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-386
SELECT - CASE - + 69 WHEN + - CAST( 16 AS SIGNED ) * + ( 53 ) + + 10 + - 98 + + 64 / 13 * + - COALESCE ( - - 14, ( + + 38 ) / + 64 * - - COUNT( * ) ) + + COUNT( * ) THEN NULL WHEN + + 19 + + - 62 * - 20 - 80 THEN + + 86 END / - + CASE - 79 WHEN - 63 + + + 27 * + 28 THEN + 34 WHEN + CAST( NULL AS DECIMAL ) THEN - - COUNT( * ) / + 17 ELSE + - 20 END * 57 + + + 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-386
SELECT - CASE - + 69 WHEN + - CAST ( 16 AS INTEGER ) * + ( 53 ) + + 10 + - 98 + + 64 / 13 * + - COALESCE ( - - 14, ( + + 38 ) / + 64 * - - COUNT ( * ) ) + + COUNT ( * ) THEN NULL WHEN + + 19 + + - 62 * - 20 - 80 THEN + + 86 END / - + CASE - 79 WHEN - 63 + + + 27 * + 28 THEN + 34 WHEN + CAST ( NULL AS REAL ) THEN - - COUNT ( * ) / + 17 ELSE + - 20 END * 57 + + + 86 col1
----
NULL

query I rowsort
SELECT + 90 - - 64 + 42 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL + ( 73 ) * - ( - 7 ) * + + CASE + + 42 WHEN - COUNT( * ) + - 99 - + 18 THEN ( - 10 ) WHEN 66 THEN - 97 END - - 48 / 52 / + 52 - + + 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + ( 73 ) * - ( - 7 ) * + + CASE + + 42 WHEN - COUNT ( * ) + - 99 - + 18 THEN ( - 10 ) WHEN 66 THEN - 97 END - - 48 / 52 / + 52 - + + 62 col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT ALL - CAST( NULL AS SIGNED ) + + + NULLIF ( + + 25, 52 + - + 18 + + ( 65 ) * 33 + + - CAST( - - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) + 63 / - + 92 * 1 * - 67 * COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL - CAST ( NULL AS INTEGER ) + + + NULLIF ( + + 25, 52 + - + 18 + + ( 65 ) * 33 + + - CAST ( - - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + 63 / - + 92 * 1 * - 67 * COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT DISTINCT - MAX( DISTINCT + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT - MAX ( DISTINCT + 26 )
----
-26

query I rowsort
SELECT 33 + 50 + - - ( - ( + 41 ) ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-393
SELECT ALL - COALESCE ( - + 71, + ( + 24 ) * + CASE + 54 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 64 - - + 41 THEN 58 END, + COALESCE ( + 65, 50, - 62 * + 58 + - COALESCE ( + COUNT( * ), + 99 * - + 71 + - 53 ) + + 69 + + 84 - - 92 ) DIV + ( + COALESCE ( 77, + 74 - - 15 ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL - COALESCE ( - + 71, + ( + 24 ) * + CASE + 54 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 64 - - + 41 THEN 58 END, + COALESCE ( + 65, 50, - 62 * + 58 + - COALESCE ( + COUNT ( * ), + 99 * - + 71 + - 53 ) + + 69 + + 84 - - 92 ) / + ( + COALESCE ( 77, + 74 - - 15 ) ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT - 96 + - COUNT( * ) + + 96 * - - MAX( - 88 ) AS col1
----
-8545

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT - 96 + - COUNT ( * ) + + 96 * - - MAX ( - 88 ) AS col1
----
-8545

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

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - COUNT ( * ) + + - 16 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-396
SELECT + 17, ( + + COUNT( * ) ) * - CASE - 90 WHEN - 25 THEN COUNT( * ) WHEN CAST( + - 40 AS SIGNED ) * - 61 + - + 62 * COUNT( * ) THEN 78 ELSE NULL END * 4 + + - 5 * 46 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-396
SELECT + 17, ( + + COUNT ( * ) ) * - CASE - 90 WHEN - 25 THEN COUNT ( * ) WHEN CAST ( + - 40 AS INTEGER ) * - 61 + - + 62 * COUNT ( * ) THEN 78 ELSE NULL END * 4 + + - 5 * 46 AS col1
----
17
NULL

query I rowsort
SELECT ALL - 78 + - 52 * + 19 * 35 col0
----
-34658

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT 55 * - + COALESCE ( + + 38, 84 ), - MIN( ALL 27 ) AS col1
----
-2090
-27

skipif mysql # not compatible
query II rowsort label-398
SELECT 55 * - + COALESCE ( + + 38, 84 ), - MIN ( ALL 27 ) AS col1
----
-2090
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT ALL - CASE - 90 WHEN + 76 * - - 82 * + - NULLIF ( CAST( + + 29 AS SIGNED ), - - 27 ) * 97 - - COUNT( * ) + - COUNT( * ) * + + 23 + + CAST( + - 29 AS SIGNED ) THEN - 92 + 83 + + 48 - + 90 + 51 WHEN + - 80 * COUNT( * ) * - 23 - + 42 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL - CASE - 90 WHEN + 76 * - - 82 * + - NULLIF ( CAST ( + + 29 AS INTEGER ), - - 27 ) * 97 - - COUNT ( * ) + - COUNT ( * ) * + + 23 + + CAST ( + - 29 AS INTEGER ) THEN - 92 + 83 + + 48 - + 90 + 51 WHEN + - 80 * COUNT ( * ) * - 23 - + 42 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-400
SELECT 65 * 80 AS col1, 27 * + COUNT( * ) + + - 9 col1
----
5200
18

skipif mysql # not compatible
query II rowsort label-400
SELECT 65 * 80 AS col1, 27 * + COUNT ( * ) + + - 9 col1
----
5200
18

query I rowsort
SELECT 68 * 44 AS col0
----
2992

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

query I rowsort
SELECT 55 - 55 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT + 6 * + 44 AS col2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL COUNT( - - 78 ) * 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL COUNT ( - - 78 ) * 83 AS col1
----
83

query I rowsort
SELECT ALL + 16 * + - 70
----
-1120

query I rowsort
SELECT DISTINCT - 98 * - 65 AS col1
----
6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL CASE - MAX( DISTINCT + 1 ) WHEN + 71 - - CAST( NULL AS SIGNED ) THEN NULL WHEN - 72 THEN + - 42 + + ( + + 28 ) - - 63 * + + 20 * + 2 / - 80 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL CASE - MAX ( DISTINCT + 1 ) WHEN + 71 - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 72 THEN + - 42 + + ( + + 28 ) - - 63 * + + 20 * + 2 / - 80 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - 89 * + - 76 AS col0
----
6764

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT + - 2 - - NULLIF ( + COUNT( + + 67 ), 20 + 59 + + - 48 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-411
SELECT + - 2 - - NULLIF ( + COUNT ( + + 67 ), 20 + 59 + + - 48 ) AS col0
----
-1

query I rowsort
SELECT - 84 * - - 35
----
-2940

query I rowsort
SELECT - - 33 + 60 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT + + COUNT( * ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-414
SELECT + + COUNT ( * ) + 45
----
46

query II rowsort
SELECT ALL + 61, 13 AS col0
----
61
13

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT - 11 + - MIN( + - 98 )
----
87

skipif mysql # not compatible
query I rowsort label-416
SELECT - 11 + - MIN ( + - 98 )
----
87

query II rowsort
SELECT 41, + 2 + + COALESCE ( - 46, 71 * - + 91 * + 62 + 95 ) col1
----
41
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-418
SELECT ALL + NULLIF ( + COUNT( * ), 82 * + - 45 + + COUNT( ALL + NULLIF ( 19, - 52 ) ) + - 63 ) DIV 29 * - + 16 AS col2, + 67
----
0
67

skipif mysql # not compatible
query II rowsort label-418
SELECT ALL + NULLIF ( + COUNT ( * ), 82 * + - 45 + + COUNT ( ALL + NULLIF ( 19, - 52 ) ) + - 63 ) / 29 * - + 16 AS col2, + 67
----
0
67

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT DISTINCT 69 + + 24 + - 40 DIV - ( 92 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT 69 + + 24 + - 40 / - ( 92 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT + COUNT( * ) + COUNT( 51 ) DIV - 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-420
SELECT + COUNT ( * ) + COUNT ( 51 ) / - 47 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-421
SELECT ALL - 86 + + 99 + ( - COUNT( * ) ) * - 76 DIV + 88 + - 15
----
-2

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - 86 + + 99 + ( - COUNT ( * ) ) * - 76 / + 88 + - 15
----
-2

query I rowsort
SELECT DISTINCT - 37 + + - 74
----
-111

query I rowsort
SELECT + + 26 + - - 87 - - 94 + - - 1 AS col2
----
208

query I rowsort
SELECT ALL + + NULLIF ( - ( - + 96 ), 27 ) * + 24 + NULLIF ( - 62, - 36 ) col0
----
2242

query II rowsort
SELECT + + 99, 19 AS col0
----
99
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - 58 * 11 + CASE + - 98 WHEN 77 / - 50 THEN - - MAX( 98 ) END + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT - 58 * 11 + CASE + - 98 WHEN 77 / - 50 THEN - - MAX ( 98 ) END + + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 62 * - 96 + + 2
----
5954

query I rowsort
SELECT DISTINCT 95 * + 12 * 74 - - 63 * + - 94
----
78438

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL 70 * - 59 - COUNT( * ) * - 92
----
-4038

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL 70 * - 59 - COUNT ( * ) * - 92
----
-4038

query I rowsort
SELECT - 29 * + + 54 AS col0
----
-1566

query I rowsort
SELECT - 47 + - 56 - + 96 + 6 * - 86 AS col1
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL - 92 * MIN( - 93 ) * + COALESCE ( - COUNT( * ), + 18, - 49, COUNT( * ) )
----
-8556

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - 92 * MIN ( - 93 ) * + COALESCE ( - COUNT ( * ), + 18, - 49, COUNT ( * ) )
----
-8556

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-434
SELECT + 11 + CASE 53 WHEN - 79 THEN NULL WHEN + - ( + 10 ) + SUM( DISTINCT - 62 ) - + ( - 3 ) THEN NULL WHEN + + AVG ( + - NULLIF ( - 81, - - 97 * - CAST( NULL AS DECIMAL ) * - 9 ) ) / 19 + 94 * 21 * 85 * - 61 THEN - 86 - 66 + - 47 / - NULLIF ( 95, COUNT( 46 ) ) * 82 * - - 39 END + - 33 + + - 1 + - - 45 * - - 13 * - + COUNT( * ) / + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT + 11 + CASE 53 WHEN - 79 THEN NULL WHEN + - ( + 10 ) + SUM ( DISTINCT - 62 ) - + ( - 3 ) THEN NULL WHEN + + AVG ( + - NULLIF ( - 81, - - 97 * - CAST ( NULL AS REAL ) * - 9 ) ) / 19 + 94 * 21 * 85 * - 61 THEN - 86 - 66 + - 47 / - NULLIF ( 95, COUNT ( 46 ) ) * 82 * - - 39 END + - 33 + + - 1 + - - 45 * - - 13 * - + COUNT ( * ) / + 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT + CAST( + 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-435
SELECT + CAST ( + 79 AS INTEGER ) AS col1
----
79

query I rowsort
SELECT COALESCE ( - 40, 41, - - 31 ) AS col0
----
-40

query I rowsort
SELECT ALL + COALESCE ( + 49, - + 59 )
----
49

query I rowsort
SELECT - 63 * + 73 * + 21
----
-96579

query I rowsort
SELECT ALL 69 * + 73 * + + 40 AS col0
----
201480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-440
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2, 87 + + 29 * + 7 + + CAST( + + COUNT( ALL + - 70 ) AS SIGNED ) + - + 55
----
NULL
236

skipif mysql # not compatible
query II rowsort label-440
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2, 87 + + 29 * + 7 + + CAST ( + + COUNT ( ALL + - 70 ) AS INTEGER ) + - + 55
----
NULL
236

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

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

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

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

query I rowsort
SELECT ALL - CASE + + 78 WHEN - 69 + + 6 THEN NULL WHEN + 26 * - + 73 * + 59 THEN + + AVG ( 77 ) - + 21 END + - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL + - 44 + 51 - - ( - + MAX( 95 ) ) + - 25 / + CASE + 75 WHEN - + 93 THEN - ( - 47 ) + - 95 + - 94 * - + 66 * 99 * + 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + - 44 + 51 - - ( - + MAX ( 95 ) ) + - 25 / + CASE + 75 WHEN - + 93 THEN - ( - 47 ) + - 95 + - 94 * - + 66 * 99 * + 41 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + - 27 + - 35 + 6 + NULLIF ( + 47, + 75 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT - - 46 * NULLIF ( - + 2, - - CAST( 69 AS SIGNED ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-446
SELECT - - 46 * NULLIF ( - + 2, - - CAST ( 69 AS INTEGER ) ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-447
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) + 28 * 61 * + 86
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-448
SELECT DISTINCT + COALESCE ( + MAX( ALL + - ( - 79 ) ), - 44 DIV 44 )
----
79

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT + COALESCE ( + MAX ( ALL + - ( - 79 ) ), - 44 / 44 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT ALL + - 52 + - - COUNT( * ) - - 46
----
-5

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + - 52 + - - COUNT ( * ) - - 46
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - 89 + 19 + - MAX( DISTINCT 99 )
----
-169

skipif mysql # not compatible
query I rowsort label-450
SELECT - 89 + 19 + - MAX ( DISTINCT 99 )
----
-169

query I rowsort
SELECT + + 38 + - ( + 3 ) AS col1
----
35

query I rowsort
SELECT DISTINCT + + 1 + + 50
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - MAX( ( + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-454
SELECT - MAX ( ( + 25 ) )
----
-25

query I rowsort
SELECT - - 94 - + - 8 AS col1
----
102

query I rowsort
SELECT - + 20 - + 20 + - 57 * 37 AS col0
----
-2149

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT MAX( + + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-457
SELECT MAX ( + + 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT COUNT( * ) / - 15 + + 75 / + 74 * - + AVG ( + 73 ) * AVG ( CAST( NULL AS SIGNED ) ) + + 95 + - 99 * - + 98 + CAST( + NULLIF ( + COUNT( * ), - COUNT( * ) + ( - ( + 69 ) ) / - - COALESCE ( - + CASE + + 50 WHEN - NULLIF ( 36, + 12 ) * + 74 THEN + 49 WHEN + + 97 THEN NULL END, - 97 + 50 + + 2 + - 45 + - 5 + - + 77 * - 21 / + 78 / - 19 ) ) AS SIGNED ) + - COUNT( * ) + + COUNT( * ) * + 3 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT COUNT ( * ) / - 15 + + 75 / + 74 * - + AVG ( + 73 ) * AVG ( CAST ( NULL AS INTEGER ) ) + + 95 + - 99 * - + 98 + CAST ( + NULLIF ( + COUNT ( * ), - COUNT ( * ) + ( - ( + 69 ) ) / - - COALESCE ( - + CASE + + 50 WHEN - NULLIF ( 36, + 12 ) * + 74 THEN + 49 WHEN + + 97 THEN NULL END, - 97 + 50 + + 2 + - 45 + - 5 + - + 77 * - 21 / + 78 / - 19 ) ) AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ) * + 3 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-459
SELECT ALL + ( + COUNT( * ) ) AS col0, CAST( - - 56 AS SIGNED )
----
1
56

skipif mysql # not compatible
query II rowsort label-459
SELECT ALL + ( + COUNT ( * ) ) AS col0, CAST ( - - 56 AS INTEGER )
----
1
56

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

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

query II rowsort
SELECT DISTINCT + 97 AS col1, 5 col1
----
97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT + NULLIF ( 94, - + AVG ( - + 37 ) / 13 + 50 + CASE - 0 WHEN + 53 THEN NULL WHEN - MAX( - 83 ) - - COUNT( * ) * 25 * 56 * 20 + - 29 THEN NULL ELSE - COUNT( * ) END ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-462
SELECT + NULLIF ( 94, - + AVG ( - + 37 ) / 13 + 50 + CASE - 0 WHEN + 53 THEN NULL WHEN - MAX ( - 83 ) - - COUNT ( * ) * 25 * 56 * 20 + - 29 THEN NULL ELSE - COUNT ( * ) END ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT CAST( - 17 AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-463
SELECT CAST ( - 17 AS INTEGER ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT ALL 29 * COUNT( * ) * - 24
----
-696

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL 29 * COUNT ( * ) * - 24
----
-696

query I rowsort
SELECT ( - - 33 ) * + 69 * - + 28 * - 23 + 84 - 21 col2
----
1466451

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

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

query I rowsort
SELECT 58 * + 60 * - ( - - 11 )
----
-38280

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

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

query II rowsort
SELECT 77 AS col2, 0
----
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT - CASE + + 93 WHEN + 45 * + 25 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT - CASE + + 93 WHEN + 45 * + 25 THEN + - COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT 9 * ( + 90 )
----
810

query I rowsort
SELECT ALL 15 + + + 0 + - + 89 + 22 * - - 85 + + 69 + - - 19 * - 50
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT MAX( - 98 ) - + + 85 col0
----
-183

skipif mysql # not compatible
query I rowsort label-474
SELECT MAX ( - 98 ) - + + 85 col0
----
-183

query I rowsort
SELECT DISTINCT 33 * - 3
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL + - 91 + + 39 + - 50 + + COUNT( * ) - - 31 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + - 91 + + 39 + - 50 + + COUNT ( * ) - - 31 AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-478
SELECT + CAST( + 15 AS SIGNED ) + - COUNT( * ) - 91 - - + 13
----
-64

skipif mysql # not compatible
query I rowsort label-478
SELECT + CAST ( + 15 AS INTEGER ) + - COUNT ( * ) - 91 - - + 13
----
-64

query I rowsort
SELECT ALL 63 + 88
----
151

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

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

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

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

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL 90 + + COUNT ( * ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-483
SELECT - 29 - + 57 * 32 * + - 17 col0, - NULLIF ( - + CAST( NULL AS SIGNED ), + 53 ) AS col1
----
30979
NULL

skipif mysql # not compatible
query II rowsort label-483
SELECT - 29 - + 57 * 32 * + - 17 col0, - NULLIF ( - + CAST ( NULL AS INTEGER ), + 53 ) AS col1
----
30979
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT 13 + + MAX( ALL + 69 ) * 97 AS col2
----
6706

skipif mysql # not compatible
query I rowsort label-484
SELECT 13 + + MAX ( ALL + 69 ) * 97 AS col2
----
6706

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT - COALESCE ( - COUNT( ALL - - 18 ), - SUM( ALL ( + 17 ) ) ) - + 71
----
-70

skipif mysql # not compatible
query I rowsort label-485
SELECT - COALESCE ( - COUNT ( ALL - - 18 ), - SUM ( ALL ( + 17 ) ) ) - + 71
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT 69, 24 - + - COALESCE ( + - 80, CASE + 76 WHEN - + NULLIF ( 47, - 79 / + - 63 ) / 65 * - 46 THEN COUNT( * ) WHEN + COUNT( * ) THEN NULLIF ( - 91, - COALESCE ( 63, + + 26, - - 67 ) - + 38 ) ELSE NULL END * + + 44, 60 + + + 58 + + 56 + + + 99 ) AS col2
----
69
-56

skipif mysql # not compatible
query II rowsort label-486
SELECT 69, 24 - + - COALESCE ( + - 80, CASE + 76 WHEN - + NULLIF ( 47, - 79 / + - 63 ) / 65 * - 46 THEN COUNT ( * ) WHEN + COUNT ( * ) THEN NULLIF ( - 91, - COALESCE ( 63, + + 26, - - 67 ) - + 38 ) ELSE NULL END * + + 44, 60 + + + 58 + + 56 + + + 99 ) AS col2
----
69
-56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL + 4 + + COUNT( * ) * + 49 * MIN( 57 )
----
2797

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + 4 + + COUNT ( * ) * + 49 * MIN ( 57 )
----
2797

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT + + SUM( DISTINCT + - 65 ) * + + CASE + ( + - COALESCE ( - ( 46 ), - + 78 + - COALESCE ( + 45, 80 ) * + NULLIF ( - 71, - + 46 ) ) ) WHEN + + 64 + + 20 THEN - 80 + - 24 * - 15 / 31 * + AVG ( ALL - 3 ) * - + 39 * + 2 WHEN + + 72 + - - 86 THEN NULL END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT + + SUM ( DISTINCT + - 65 ) * + + CASE + ( + - COALESCE ( - ( 46 ), - + 78 + - COALESCE ( + 45, 80 ) * + NULLIF ( - 71, - + 46 ) ) ) WHEN + + 64 + + 20 THEN - 80 + - 24 * - 15 / 31 * + AVG ( ALL - 3 ) * - + 39 * + 2 WHEN + + 72 + - - 86 THEN NULL END + 64
----
NULL

query I rowsort
SELECT + 9 + + 89
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + COALESCE ( - ( + 44 ), - - SUM( DISTINCT - - ( + + 75 ) ), + 75 ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-491
SELECT + COALESCE ( - ( + 44 ), - - SUM ( DISTINCT - - ( + + 75 ) ), + 75 ) col0
----
-44

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

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

query I rowsort
SELECT ALL - 63 * 24 + 18
----
-1494

query I rowsort
SELECT - 45 * - 9 + - - ( - 73 ) AS col1
----
332

query I rowsort
SELECT ALL - 52 * - 84 AS col2
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT 30 + - + NULLIF ( ( 16 ), - + 8 / MAX( 10 ) ) - 19
----
-5

skipif mysql # not compatible
query I rowsort label-496
SELECT 30 + - + NULLIF ( ( 16 ), - + 8 / MAX ( 10 ) ) - 19
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT 68 + NULLIF ( - - ( + COUNT( * ) ), + ( - 50 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-497
SELECT 68 + NULLIF ( - - ( + COUNT ( * ) ), + ( - 50 ) ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT 78 + + - 18 * + 59 / + CASE - 42 WHEN - + 8 THEN + COUNT( * ) + - 42 WHEN + 5 THEN NULL END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT 78 + + - 18 * + 59 / + CASE - 42 WHEN - + 8 THEN + COUNT ( * ) + - 42 WHEN + 5 THEN NULL END * + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 55 + + 55 AS col1, + 62 + + 4 AS col2
----
110
66

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT ALL 82 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL 82 / - 26
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + 18 * + COUNT( * ) + 68 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-501
SELECT + 18 * + COUNT ( * ) + 68 AS col2
----
86

query I rowsort
SELECT DISTINCT - ( + 33 ) AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT ALL + 57 DIV + 99 * 63
----
0

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL + 57 / + 99 * 63
----
0

query I rowsort
SELECT DISTINCT - 2 + 82 AS col0
----
80

query I rowsort
SELECT DISTINCT 81 + + 35 AS col2
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT - 79 * + 38 + CAST( + 35 AS SIGNED )
----
-2967

skipif mysql # not compatible
query I rowsort label-506
SELECT - 79 * + 38 + CAST ( + 35 AS INTEGER )
----
-2967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-507
SELECT + 4 * + 39 + 78 * 17 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT + 4 * + 39 + 78 * 17 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-508
SELECT ALL 92 + - + 15 * 79 / + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL 92 + - + 15 * 79 / + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT 85 * 18 - + - 50 * - 95 * COALESCE ( 15, - - ( COUNT( * ) ) )
----
-69720

skipif mysql # not compatible
query I rowsort label-509
SELECT 85 * 18 - + - 50 * - 95 * COALESCE ( 15, - - ( COUNT ( * ) ) )
----
-69720

query I rowsort
SELECT ALL 68 + ( 81 )
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-511
SELECT CAST( COUNT( * ) AS SIGNED ) * + 86 + + - ( + 23 ) - + - CASE + + MIN( DISTINCT + ( - - 14 ) ) WHEN - 45 THEN 53 + - 11 + + ( + 47 ) ELSE - ( + 56 ) END * - 88
----
4991

skipif mysql # not compatible
query I rowsort label-511
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 86 + + - ( + 23 ) - + - CASE + + MIN ( DISTINCT + ( - - 14 ) ) WHEN - 45 THEN 53 + - 11 + + ( + 47 ) ELSE - ( + 56 ) END * - 88
----
4991

onlyif mysql # aggregate syntax: 
query II rowsort label-512
SELECT - 91 * + SUM( ALL 5 ) * + + 52 + + - COUNT( * ), 71 AS col0
----
-23661
71

skipif mysql # not compatible
query II rowsort label-512
SELECT - 91 * + SUM ( ALL 5 ) * + + 52 + + - COUNT ( * ), 71 AS col0
----
-23661
71

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT 79 + 60 * 36 * - - COUNT( 91 ) * - NULLIF ( + 6, - 65 ) + + 11
----
-12870

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT 79 + 60 * 36 * - - COUNT ( 91 ) * - NULLIF ( + 6, - 65 ) + + 11
----
-12870

query I rowsort
SELECT + 27 + - 89
----
-62

query I rowsort
SELECT ALL - ( - - 57 ) + 95 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-516
SELECT SUM( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT SUM ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT DISTINCT - 75 * + - MIN( 37 )
----
2775

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT - 75 * + - MIN ( 37 )
----
2775

query I rowsort
SELECT ALL - 58 * + + 39
----
-2262

query I rowsort
SELECT - 94 * + 19 AS col1
----
-1786

query I rowsort
SELECT 49 * - - 9 + 46 - - - 66 AS col1
----
421

query II rowsort
SELECT DISTINCT + 25 - - 56, 11 AS col1
----
81
11

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT NULLIF ( 59, - COUNT( * ) ) * + 24 + 32 - + 1 * - + 18
----
1466

skipif mysql # not compatible
query I rowsort label-522
SELECT NULLIF ( 59, - COUNT ( * ) ) * + 24 + 32 - + 1 * - + 18
----
1466

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT CASE 67 WHEN 45 * - 82 + + 58 * + + 66 THEN NULL WHEN + - COALESCE ( - MIN( ALL + - 18 ), - - 34 ) THEN + 47 WHEN - 94 THEN NULL END + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT CASE 67 WHEN 45 * - 82 + + 58 * + + 66 THEN NULL WHEN + - COALESCE ( - MIN ( ALL + - 18 ), - - 34 ) THEN + 47 WHEN - 94 THEN NULL END + - 5
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-525
SELECT 7 DIV - 65 * + - NULLIF ( + ( 57 ), - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-525
SELECT 7 / - 65 * + - NULLIF ( + ( 57 ), - COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT 75 + + 0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + 94 * - - SUM( ALL - 16 ) AS col0
----
-1504

skipif mysql # not compatible
query I rowsort label-527
SELECT + 94 * - - SUM ( ALL - 16 ) AS col0
----
-1504

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

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

query I rowsort
SELECT ALL - 33 * - + 27
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - 70 - + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-530
SELECT - 70 - + COUNT ( * ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT - NULLIF ( - COUNT( * ), - CASE COUNT( * ) WHEN 73 THEN NULL ELSE - 28 END ) - - - 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-531
SELECT - NULLIF ( - COUNT ( * ), - CASE COUNT ( * ) WHEN 73 THEN NULL ELSE - 28 END ) - - - 74 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT - CASE 94 WHEN + 22 * - COUNT( * ) * - 99 THEN NULL WHEN ( ( + - 43 ) ) / - 36 - 79 THEN + + CASE + 61 WHEN - COUNT( * ) THEN - 39 END * 99 ELSE - 18 END * + + 99
----
1782

skipif mysql # not compatible
query I rowsort label-532
SELECT - CASE 94 WHEN + 22 * - COUNT ( * ) * - 99 THEN NULL WHEN ( ( + - 43 ) ) / - 36 - 79 THEN + + CASE + 61 WHEN - COUNT ( * ) THEN - 39 END * 99 ELSE - 18 END * + + 99
----
1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT ALL ( + - 68 ) * + 11 / CAST( NULL AS SIGNED ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL ( + - 68 ) * + 11 / CAST ( NULL AS INTEGER ) + 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 39, - 57 + - 0 - - 17 ) * + - 59 * - CASE - - MAX( + - 12 ) WHEN - 28 + 88 THEN 78 ELSE MAX( + 18 ) - + 33 END * 90 + CASE + - 35 WHEN - CAST( - ( - 92 ) AS SIGNED ) THEN + 26 + - 78 + + 81 * - SUM( DISTINCT - - 44 ) WHEN - + 53 - 95 * + + 68 THEN NULL WHEN - - MIN( 15 ) THEN NULL END + - CAST( 35 AS SIGNED ) / - CAST( COALESCE ( + COALESCE ( - 57, COUNT( * ) ), 44, + ( - COUNT( * ) ) ) AS DECIMAL ) + - 3 / - 80 + - SUM( ALL - + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 39, - 57 + - 0 - - 17 ) * + - 59 * - CASE - - MAX ( + - 12 ) WHEN - 28 + 88 THEN 78 ELSE MAX ( + 18 ) - + 33 END * 90 + CASE + - 35 WHEN - CAST ( - ( - 92 ) AS INTEGER ) THEN + 26 + - 78 + + 81 * - SUM ( DISTINCT - - 44 ) WHEN - + 53 - 95 * + + 68 THEN NULL WHEN - - MIN ( 15 ) THEN NULL END + - CAST ( 35 AS INTEGER ) / - CAST ( COALESCE ( + COALESCE ( - 57, COUNT ( * ) ), 44, + ( - COUNT ( * ) ) ) AS REAL ) + - 3 / - 80 + - SUM ( ALL - + 91 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT ALL + CAST( 35 AS SIGNED ) * + - MIN( - 84 ) * 48 + - - 28
----
141148

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + CAST ( 35 AS INTEGER ) * + - MIN ( - 84 ) * 48 + - - 28
----
141148

query I rowsort
SELECT COALESCE ( + + ( 24 ), + + 84 + - 39, + 70 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-537
SELECT - NULLIF ( + + 18, + 54 ) * + ( 78 ), COUNT( * ) * + - 12 AS col2
----
-1404
-12

skipif mysql # not compatible
query II rowsort label-537
SELECT - NULLIF ( + + 18, + 54 ) * + ( 78 ), COUNT ( * ) * + - 12 AS col2
----
-1404
-12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-539
SELECT DISTINCT 13 * + 89 + + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-539
SELECT DISTINCT 13 * + 89 + + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2
----
NULL
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT - CAST( + - CASE + - 83 WHEN - 3 THEN - 10 END AS SIGNED ) * - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT - CAST ( + - CASE + - 83 WHEN - 3 THEN - 10 END AS INTEGER ) * - 28 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 22, - 24 + - ( - 8 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT NULLIF ( - NULLIF ( - MAX( - 97 ), + ( - + 17 ) ), + + 67 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-544
SELECT NULLIF ( - NULLIF ( - MAX ( - 97 ), + ( - + 17 ) ), + + 67 ) AS col2
----
-97

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

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL CAST ( NULL AS INTEGER ) * ( - - 76 )
----
NULL

query I rowsort
SELECT ALL 62 * - - 40 + + + 83 col2
----
2563

query I rowsort
SELECT - + 92 * - + 59 AS col0
----
5428

query I rowsort
SELECT + NULLIF ( 2, + 32 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL - 68 * + COUNT( * ) + - + 17
----
-85

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - 68 * + COUNT ( * ) + - + 17
----
-85

query I rowsort
SELECT - + 48 + + 22 AS col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT + + 42 DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-551
SELECT + + 42 / 48 AS col2
----
0

query I rowsort
SELECT ALL - - 37 * + 5 - + + 98
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-553
SELECT - 64 - - CAST( NULL AS SIGNED ) - 71 + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-553
SELECT - 64 - - CAST ( NULL AS INTEGER ) - 71 + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ( - - ( + + COUNT( * ) ) ) * - 34 + + + ( - + ( - - 48 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-554
SELECT ( - - ( + + COUNT ( * ) ) ) * - 34 + + + ( - + ( - - 48 ) ) AS col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT + 48 DIV - + 63 * + 17
----
0

skipif mysql # not compatible
query I rowsort label-555
SELECT + 48 / - + 63 * + 17
----
0

query I rowsort
SELECT ALL + 18 * + - ( - 82 ) * 25
----
36900

query I rowsort
SELECT + 91 + - - 29 + - 27
----
93

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

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

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

query I rowsort
SELECT + + 41 - - - ( - - 64 )
----
-23

query I rowsort
SELECT - 67 * + 89 AS col2
----
-5963

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT + - MIN( - 31 ) + - 96 + - 48 - + 41
----
-154

skipif mysql # not compatible
query I rowsort label-562
SELECT + - MIN ( - 31 ) + - 96 + - 48 - + 41
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT + - MIN( ALL - 15 ) + - MAX( 42 )
----
-27

skipif mysql # not compatible
query I rowsort label-563
SELECT + - MIN ( ALL - 15 ) + - MAX ( 42 )
----
-27

query I rowsort
SELECT DISTINCT + 2 * + ( + 77 )
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-565
SELECT ALL 6 * + 80, + COALESCE ( + 48, + + 86 ) + NULLIF ( - 89, - + CAST( NULL AS SIGNED ) + 7 * 55 ) + - - 52 + - 72 DIV SUM( ALL + 44 ) AS col2
----
480
10

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL 6 * + 80, + COALESCE ( + 48, + + 86 ) + NULLIF ( - 89, - + CAST ( NULL AS INTEGER ) + 7 * 55 ) + - - 52 + - 72 / SUM ( ALL + 44 ) AS col2
----
480
10

query I rowsort
SELECT DISTINCT 35 * - 82 * + 68
----
-195160

query I rowsort
SELECT ALL 29 + - - 44 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT + 28 + - ( + + COUNT( * ) ) + - + 77
----
-50

skipif mysql # not compatible
query I rowsort label-568
SELECT + 28 + - ( + + COUNT ( * ) ) + - + 77
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT - 34 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-569
SELECT - 34 / - 65 AS col2
----
0

query I rowsort
SELECT - 93 + + 55 + - + 97 AS col1
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT CAST( 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-571
SELECT CAST ( 22 AS INTEGER )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT - 10 * - COUNT( * ) * - 64
----
-640

skipif mysql # not compatible
query I rowsort label-572
SELECT - 10 * - COUNT ( * ) * - 64
----
-640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-573
SELECT ALL 46 DIV 82 + + COUNT( - COALESCE ( - 64, + + 94 * + 63 + - + 8 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL 46 / 82 + + COUNT ( - COALESCE ( - 64, + + 94 * + 63 + - + 8 ) ) AS col2
----
1

query I rowsort
SELECT + 81 * - - 8 AS col1
----
648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-575
SELECT CAST( NULL AS SIGNED ) AS col2, + CASE - + 25 WHEN + + 29 - + 86 DIV - AVG ( DISTINCT 15 ) THEN NULL ELSE + + ( - 69 ) DIV - + 93 END AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-575
SELECT CAST ( NULL AS INTEGER ) AS col2, + CASE - + 25 WHEN + + 29 - + 86 / - AVG ( DISTINCT 15 ) THEN NULL ELSE + + ( - 69 ) / - + 93 END AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT + MIN( ALL - + 50 ) + + 29
----
-21

skipif mysql # not compatible
query I rowsort label-576
SELECT + MIN ( ALL - + 50 ) + + 29
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT DISTINCT 21 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT 21 / - 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT DISTINCT + 83 DIV + 91 + - 65 col1
----
-65

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT + 83 / + 91 + - 65 col1
----
-65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT 58 DIV 93 - + 40 * 15 + 11 + 25
----
-564

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT 58 / 93 - + 40 * 15 + 11 + 25
----
-564

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT - 44 + - 90 + 89 DIV ( - - 39 )
----
-132

skipif mysql # not compatible
query I rowsort label-581
SELECT - 44 + - 90 + 89 / ( - - 39 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT - COUNT( * ) * + 64 + + 87
----
23

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT - COUNT ( * ) * + 64 + + 87
----
23

query II rowsort
SELECT ALL + - 56 col2, - 93 AS col2
----
-56
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT - + COALESCE ( + 58, + 80, + 90 + + 75 ) * + 78 + - MAX( ALL 5 ) AS col2
----
-4529

skipif mysql # not compatible
query I rowsort label-584
SELECT - + COALESCE ( + 58, + 80, + 90 + + 75 ) * + 78 + - MAX ( ALL 5 ) AS col2
----
-4529

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

query I rowsort
SELECT - 88 * - 42 + + + 10 AS col0
----
3706

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-588
SELECT CAST( 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-588
SELECT CAST ( 81 AS INTEGER )
----
81

query I rowsort
SELECT + - 63 * 79 + + 6 AS col0
----
-4971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT ALL + NULLIF ( + 81, 68 - - ( + 73 ) + COUNT( * ) + - 90 * CAST( NULL AS SIGNED ) * 53 )
----
81

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + NULLIF ( + 81, 68 - - ( + 73 ) + COUNT ( * ) + - 90 * CAST ( NULL AS INTEGER ) * 53 )
----
81

query II rowsort
SELECT DISTINCT + - 41 AS col0, - 85 * + 60
----
-41
-5100

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT + CASE MAX( ALL 98 ) WHEN + 10 THEN + - 43 * - COALESCE ( 82, - 6, 51 - + 24 + + 43 * 83 ) WHEN - 81 / MAX( DISTINCT - 59 ) THEN + 65 WHEN + 86 * - 26 * - COUNT( * ) * - - SUM( + - 5 ) THEN - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT + CASE MAX ( ALL 98 ) WHEN + 10 THEN + - 43 * - COALESCE ( 82, - 6, 51 - + 24 + + 43 * 83 ) WHEN - 81 / MAX ( DISTINCT - 59 ) THEN + 65 WHEN + 86 * - 26 * - COUNT ( * ) * - - SUM ( + - 5 ) THEN - 87 END
----
NULL

query I rowsort
SELECT + 25 + 90 AS col0
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT 60 * - MAX( 97 )
----
-5820

skipif mysql # not compatible
query I rowsort label-597
SELECT 60 * - MAX ( 97 )
----
-5820

query II rowsort
SELECT - 39 * + 48 AS col2, 9 * ( + + 69 ) AS col2
----
-1872
621

query I rowsort
SELECT ALL - - 13 * - - 87 * + - 75 AS col2
----
-84825

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT - MAX( + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-600
SELECT - MAX ( + 71 )
----
-71

query I rowsort
SELECT ALL - 40 + - 51 + + + 3 AS col0
----
-88

query II rowsort
SELECT + 26, - 15 AS col1
----
26
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-603
SELECT DISTINCT + + COALESCE ( 59, 20, - - COUNT( * ) ) * - - 70 + + 76 + - 33 DIV - + COALESCE ( - 57, + + 55, - + MAX( ALL 46 ) ) + + 74 * + ( - + 97 ) * - - 27 + + - NULLIF ( + 45, + 59 ), + 11 * - - 41 * + COALESCE ( + + 55, + COUNT( * ) DIV CAST( NULL AS SIGNED ) ) AS col1
----
-189645
24805

skipif mysql # not compatible
query II rowsort label-603
SELECT DISTINCT + + COALESCE ( 59, 20, - - COUNT ( * ) ) * - - 70 + + 76 + - 33 / - + COALESCE ( - 57, + + 55, - + MAX ( ALL 46 ) ) + + 74 * + ( - + 97 ) * - - 27 + + - NULLIF ( + 45, + 59 ), + 11 * - - 41 * + COALESCE ( + + 55, + COUNT ( * ) / CAST ( NULL AS INTEGER ) ) AS col1
----
-189645
24805

query I rowsort
SELECT DISTINCT - 88 + + 42 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL 52 + - 42 + - COUNT( * ) + ( ( - ( COALESCE ( COUNT( * ), COUNT( * ) * - 88 ) ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL 52 + - 42 + - COUNT ( * ) + ( ( - ( COALESCE ( COUNT ( * ), COUNT ( * ) * - 88 ) ) ) )
----
8

query I rowsort
SELECT 67 + - ( - 73 ) AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT 3 * + MIN( ALL - + 46 ) AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-607
SELECT 3 * + MIN ( ALL - + 46 ) AS col0
----
-138

query I rowsort
SELECT ALL 16 + - 47
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-609
SELECT ALL 69 * + 22, + NULLIF ( - - COUNT( 39 ), CAST( - 33 AS SIGNED ) ) AS col0
----
1518
1

skipif mysql # not compatible
query II rowsort label-609
SELECT ALL 69 * + 22, + NULLIF ( - - COUNT ( 39 ), CAST ( - 33 AS INTEGER ) ) AS col0
----
1518
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT ALL CAST( - 27 AS SIGNED ) - - 16 * + 20
----
293

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL CAST ( - 27 AS INTEGER ) - - 16 * + 20
----
293

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT COUNT( * ) DIV 99 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-612
SELECT COUNT ( * ) / 99 * - 63
----
0

query I rowsort
SELECT - 23 * - 63 - 89
----
1360

onlyif mysql # DIV for integer division: 
query I rowsort label-614
SELECT ALL + 20 DIV + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL + 20 / + 62 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-615
SELECT - - 73 * - COUNT( ALL 62 ) + + 2 - - 45 DIV - 76
----
-71

skipif mysql # not compatible
query I rowsort label-615
SELECT - - 73 * - COUNT ( ALL 62 ) + + 2 - - 45 / - 76
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT + ( MAX( - + CASE - CAST( - CAST( - + 28 AS SIGNED ) AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN 95 END ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + ( MAX ( - + CASE - CAST ( - CAST ( - + 28 AS INTEGER ) AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN 95 END ) ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL + - ( - 83 ) * + + MIN( + 59 )
----
4897

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + - ( - 83 ) * + + MIN ( + 59 )
----
4897

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT ALL 30 DIV - - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL 30 / - - 81 AS col2
----
0

query I rowsort
SELECT ALL - 79 * - - 77 * + 88 + + 5
----
-535299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-620
SELECT 34 - - 58 * 40 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT 34 - - 58 * 40 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT - + CASE 2 WHEN - 98 THEN NULL WHEN - MAX( ALL - 90 ) * + + 19 THEN + 74 ELSE 40 * + + 37 + + 20 END
----
-1500

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - + CASE 2 WHEN - 98 THEN NULL WHEN - MAX ( ALL - 90 ) * + + 19 THEN + 74 ELSE 40 * + + 37 + + 20 END
----
-1500

query II rowsort
SELECT ALL - 35 * + - 45 col2, 13
----
1575
13

query I rowsort
SELECT + 62 + + 68 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-624
SELECT DISTINCT + + 10 * - - 53 AS col0, COUNT( * ) AS col2
----
530
1

skipif mysql # not compatible
query II rowsort label-624
SELECT DISTINCT + + 10 * - - 53 AS col0, COUNT ( * ) AS col2
----
530
1

query I rowsort
SELECT ALL + 2 + - 33
----
-31

query I rowsort
SELECT ALL 11 + - 95
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-627
SELECT 93 + - CASE CAST( NULL AS SIGNED ) WHEN - - 41 * 34 THEN + 83 END + ( - ( - 91 ) ) + + + CASE - 48 WHEN 88 THEN - + 77 + 97 WHEN + 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT 93 + - CASE CAST ( NULL AS INTEGER ) WHEN - - 41 * 34 THEN + 83 END + ( - ( - 91 ) ) + + + CASE - 48 WHEN 88 THEN - + 77 + 97 WHEN + 1 THEN NULL END
----
NULL

query I rowsort
SELECT 74 * - 76 AS col1
----
-5624

query I rowsort
SELECT DISTINCT + 94 * - CASE NULLIF ( - 79, + 3 + + ( + + 85 ) - + 46 ) WHEN 91 THEN NULL WHEN + - 21 + - 70 * ( 59 ) / - - ( - 57 ) - + 6 THEN - + 9 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 19 AS col2, 48 * - 39 AS col0
----
-19
-1872

query I rowsort
SELECT ALL - 40 - + 49
----
-89

query I rowsort
SELECT DISTINCT 33 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ALL ( - COALESCE ( - + 32, 36 * - 72 * - CASE + 96 WHEN - COUNT( * ) + - - MIN( - 81 ) THEN NULL WHEN - 86 THEN - - 39 ELSE NULL END * + 32 + + + 26 + ( + - 10 ) + - + COUNT( * ), + 53 * 1 - + 42, + 56 * + - COUNT( * ) ) ) - - SUM( ( + 18 ) ) + ( 73 )
----
123

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL ( - COALESCE ( - + 32, 36 * - 72 * - CASE + 96 WHEN - COUNT ( * ) + - - MIN ( - 81 ) THEN NULL WHEN - 86 THEN - - 39 ELSE NULL END * + 32 + + + 26 + ( + - 10 ) + - + COUNT ( * ), + 53 * 1 - + 42, + 56 * + - COUNT ( * ) ) ) - - SUM ( ( + 18 ) ) + ( 73 )
----
123

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

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

query II rowsort
SELECT 28, - 59 * + - 51 AS col1
----
28
3009

query I rowsort
SELECT 28 * - 49 AS col0
----
-1372

onlyif mysql # aggregate syntax: 
query II rowsort label-637
SELECT COUNT( * ) AS col0, NULLIF ( 9, 60 * - 35 ) AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-637
SELECT COUNT ( * ) AS col0, NULLIF ( 9, 60 * - 35 ) AS col2
----
1
9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT - - 12 * - COUNT( * ) + + + 42 + + 93 * - 62 * - + 56 * + - 35 * CASE + 70 WHEN - - 76 THEN COUNT( * ) * + 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT - - 12 * - COUNT ( * ) + + + 42 + + 93 * - 62 * - + 56 * + - 35 * CASE + 70 WHEN - - 76 THEN COUNT ( * ) * + 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT + ( - MIN( - 52 ) ), 98 * - 45 AS col2
----
52
-4410

skipif mysql # not compatible
query II rowsort label-641
SELECT + ( - MIN ( - 52 ) ), 98 * - 45 AS col2
----
52
-4410

query I rowsort
SELECT 94 * - 44 + - - 47 AS col0
----
-4089

query II rowsort
SELECT ALL - 59 AS col2, + COALESCE ( 67, + + 67 + + 57 ) * - 98
----
-59
-6566

query III rowsort
SELECT ALL - - 2 AS col0, + 66 + - 43 + + ( - + ( 27 ) ), 24 + - 71 AS col1
----
2
-4
-47

query I rowsort
SELECT COALESCE ( + + 32, - 11 + + 33 ) + - - 63 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + + COUNT( DISTINCT + 64 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-646
SELECT + + COUNT ( DISTINCT + 64 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + - 59 * 65 + - COUNT( * ) AS col1
----
-3836

skipif mysql # not compatible
query I rowsort label-647
SELECT + - 59 * 65 + - COUNT ( * ) AS col1
----
-3836

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT + + 11 * - COUNT( * ) + - + COUNT( ALL - 55 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-648
SELECT + + 11 * - COUNT ( * ) + - + COUNT ( ALL - 55 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT ALL COUNT( * ) * + - 62 + + 76 + 19 + + CAST( + 67 AS SIGNED ) - + ( - ( - 92 ) ) * + CAST( NULL AS SIGNED ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL COUNT ( * ) * + - 62 + + 76 + 19 + + CAST ( + 67 AS INTEGER ) - + ( - ( - 92 ) ) * + CAST ( NULL AS INTEGER ) * + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT + + MIN( DISTINCT - 27 ) * + 20
----
-540

skipif mysql # not compatible
query I rowsort label-650
SELECT + + MIN ( DISTINCT - 27 ) * + 20
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT - 42 * 12 * + COUNT( * ) + + ( + + 39 ) col2
----
-465

skipif mysql # not compatible
query I rowsort label-651
SELECT - 42 * 12 * + COUNT ( * ) + + ( + + 39 ) col2
----
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT DISTINCT + 15 DIV - - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT + 15 / - - COUNT ( * )
----
15

query II rowsort
SELECT + + 43 AS col1, 39 AS col2
----
43
39

query I rowsort
SELECT - - 4 + 12 * 57 AS col2
----
688

query I rowsort
SELECT ALL + + 21 * - + 46
----
-966

query I rowsort
SELECT ALL - + 58 + + 70 + 10
----
22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-657
SELECT DISTINCT 48 / + + CAST( NULL AS DECIMAL ) + - - 7 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT 48 / + + CAST ( NULL AS REAL ) + - - 7 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 38 AS col1, 39 * - - 24
----
-38
936

query I rowsort
SELECT ALL + + 45 + 59
----
104

query I rowsort
SELECT DISTINCT - + 83 * + 49 AS col2
----
-4067

query I rowsort
SELECT ALL 71 * + ( 95 ) * + 32 col2
----
215840

query I rowsort
SELECT - COALESCE ( - 20, - 61 ) * 39 * + - 70 col1
----
-54600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-663
SELECT - COALESCE ( + 4, 53 - - 47 ) AS col2, CAST( NULLIF ( + 41, - + 55 + + + 37 * - + 46 + 86 + 54 ) AS SIGNED ) * - ( 17 ) + 72 DIV - 70 - COUNT( * ) AS col1, + 90 AS col2
----
-4
-699
90

skipif mysql # not compatible
query III rowsort label-663
SELECT - COALESCE ( + 4, 53 - - 47 ) AS col2, CAST ( NULLIF ( + 41, - + 55 + + + 37 * - + 46 + 86 + 54 ) AS INTEGER ) * - ( 17 ) + 72 / - 70 - COUNT ( * ) AS col1, + 90 AS col2
----
-4
-699
90

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT ALL - 71 + + + 30 DIV + 37 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL - 71 + + + 30 / + 37 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL + COUNT( * ) - - 14 + + 65
----
80

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + COUNT ( * ) - - 14 + + 65
----
80

query I rowsort
SELECT - 87 * - 8
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-667
SELECT ALL MIN( DISTINCT 69 ) col0, CAST( NULL AS SIGNED ) + SUM( - 58 )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-667
SELECT ALL MIN ( DISTINCT 69 ) col0, CAST ( NULL AS INTEGER ) + SUM ( - 58 )
----
69
NULL

query I rowsort
SELECT DISTINCT 5 - + - 6 + - 16 + + 22 + 12 * + 78 + - 47 AS col1
----
906

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT ALL COALESCE ( - ( COUNT( * ) ), + ( - NULLIF ( ( - 63 ), + 94 + - - 54 ) ) ), COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-669
SELECT ALL COALESCE ( - ( COUNT ( * ) ), + ( - NULLIF ( ( - 63 ), + 94 + - - 54 ) ) ), COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT DISTINCT COALESCE ( - NULLIF ( - - 15, + - CASE + + NULLIF ( + 9, - ( + 12 ) * + COUNT( * ) * + 69 ) WHEN - COUNT( * ) THEN + + 25 END ), - + COUNT( * ) * + ( - 57 ), + 74 )
----
-15

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT COALESCE ( - NULLIF ( - - 15, + - CASE + + NULLIF ( + 9, - ( + 12 ) * + COUNT ( * ) * + 69 ) WHEN - COUNT ( * ) THEN + + 25 END ), - + COUNT ( * ) * + ( - 57 ), + 74 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT - 51 * MIN( 18 )
----
-918

skipif mysql # not compatible
query I rowsort label-671
SELECT - 51 * MIN ( 18 )
----
-918

query I rowsort
SELECT ALL - 8 - + ( + 77 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT DISTINCT + ( - 44 ) * - SUM( + NULLIF ( CASE 60 WHEN 15 THEN 43 - - 11 END, - 12 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT + ( - 44 ) * - SUM ( + NULLIF ( CASE 60 WHEN 15 THEN 43 - - 11 END, - 12 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT + CAST( + 99 AS SIGNED ) + - - 97 + - - NULLIF ( + MIN( ALL + 5 ), + 67 * 75 + - 91 ) + + 52 * - - 17 AS col1
----
1085

skipif mysql # not compatible
query I rowsort label-674
SELECT + CAST ( + 99 AS INTEGER ) + - - 97 + - - NULLIF ( + MIN ( ALL + 5 ), + 67 * 75 + - 91 ) + + 52 * - - 17 AS col1
----
1085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT - CAST( NULL AS SIGNED ) * + 99 * - + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT - CAST ( NULL AS INTEGER ) * + 99 * - + 62 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 63 * 28
----
1764

query I rowsort
SELECT ALL COALESCE ( 19, - 97 * + + 77 * + 68 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT - 68 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-678
SELECT - 68 / 52
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-679
SELECT + CASE - COUNT( * ) WHEN - CASE + - 39 WHEN - - 84 THEN NULL WHEN + 35 THEN NULL ELSE - CAST( + + 40 AS SIGNED ) END - - 15 THEN 19 + + 39 WHEN - 66 * + 89 THEN NULL ELSE + 17 END DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-679
SELECT + CASE - COUNT ( * ) WHEN - CASE + - 39 WHEN - - 84 THEN NULL WHEN + 35 THEN NULL ELSE - CAST ( + + 40 AS INTEGER ) END - - 15 THEN 19 + + 39 WHEN - 66 * + 89 THEN NULL ELSE + 17 END / 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-680
SELECT ALL + MIN( + + NULLIF ( 71, - CAST( NULL AS DECIMAL ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL + MIN ( + + NULLIF ( 71, - CAST ( NULL AS REAL ) ) )
----
71

query I rowsort
SELECT DISTINCT + 1 * + 51
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-682
SELECT + 92 * CAST( + 31 AS SIGNED )
----
2852

skipif mysql # not compatible
query I rowsort label-682
SELECT + 92 * CAST ( + 31 AS INTEGER )
----
2852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-683
SELECT - - CAST( NULL AS SIGNED ) * 68 - + - CASE + COUNT( * ) WHEN 63 THEN NULL ELSE - + ( + 98 ) END + - - 79 * - COUNT( * ) + CASE - 96 WHEN - CAST( - - SUM( - 95 ) AS SIGNED ) + ( 48 ) THEN NULL WHEN COUNT( * ) THEN CAST( NULL AS DECIMAL ) ELSE NULL END * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT - - CAST ( NULL AS INTEGER ) * 68 - + - CASE + COUNT ( * ) WHEN 63 THEN NULL ELSE - + ( + 98 ) END + - - 79 * - COUNT ( * ) + CASE - 96 WHEN - CAST ( - - SUM ( - 95 ) AS INTEGER ) + ( 48 ) THEN NULL WHEN COUNT ( * ) THEN CAST ( NULL AS REAL ) ELSE NULL END * - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 85 * + 9 + 64
----
829

query I rowsort
SELECT ALL 88 * - 18 + 54 AS col0
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + - NULLIF ( - 0, - + ( - 40 ) * - COUNT( * ) ) * - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-686
SELECT + - NULLIF ( - 0, - + ( - 40 ) * - COUNT ( * ) ) * - 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL + COUNT( * ) * - + ( + 87 ) + 13 + - - 58 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + COUNT ( * ) * - + ( + 87 ) + 13 + - - 58 AS col0
----
-16

query I rowsort
SELECT ALL 6 * + 56 + - 39 * 79 - - + ( 67 ) + 87 AS col0
----
-2591

query I rowsort
SELECT ALL + 92 * ( - 46 )
----
-4232

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT - + 86 + - MAX( ( - 78 ) ) AS col1, - 58 + + - 78
----
-8
-136

skipif mysql # not compatible
query II rowsort label-690
SELECT - + 86 + - MAX ( ( - 78 ) ) AS col1, - 58 + + - 78
----
-8
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT + CAST( NULL AS SIGNED ) * - 41 - - 85 + + + 83 * - 51 + - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT + CAST ( NULL AS INTEGER ) * - 41 - - 85 + + + 83 * - 51 + - 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + - 12 + - 89 + - 26 * + + ( - 79 ) * + COUNT( * ) AS col0
----
1953

skipif mysql # not compatible
query I rowsort label-692
SELECT + - 12 + - 89 + - 26 * + + ( - 79 ) * + COUNT ( * ) AS col0
----
1953

query II rowsort
SELECT ALL 18 * - 54 - - + 28, + 27 AS col2
----
-944
27

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + COALESCE ( - - 8, + COUNT( * ), + 4 )
----
8

skipif mysql # not compatible
query I rowsort label-694
SELECT + COALESCE ( - - 8, + COUNT ( * ), + 4 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT ( - ( CASE - 10 WHEN COUNT( * ) * - COUNT( * ) THEN + 26 + NULLIF ( + 26, + - CAST( - ( 94 ) AS SIGNED ) * - 12 ) ELSE - COUNT( * ) END ) ) * + 86 + + 58 col2
----
144

skipif mysql # not compatible
query I rowsort label-695
SELECT ( - ( CASE - 10 WHEN COUNT ( * ) * - COUNT ( * ) THEN + 26 + NULLIF ( + 26, + - CAST ( - ( 94 ) AS INTEGER ) * - 12 ) ELSE - COUNT ( * ) END ) ) * + 86 + + 58 col2
----
144

query I rowsort
SELECT - 88 * 12 AS col0
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT DISTINCT 94 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT 94 / + 54
----
1

query I rowsort
SELECT ALL 28 * + 59
----
1652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-699
SELECT + 34 + 15 - - + COUNT( * ), SUM( 2 ) / + CAST( NULL AS SIGNED ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-699
SELECT + 34 + 15 - - + COUNT ( * ), SUM ( 2 ) / + CAST ( NULL AS INTEGER ) AS col0
----
50
NULL

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

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

query I rowsort
SELECT + 52 * - 29
----
-1508

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT DISTINCT 58 / + CASE + 17 WHEN 31 THEN - COALESCE ( ( - COUNT( * ) ), - + 55 * - - ( - - 68 ) ) END AS col0, 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-702
SELECT DISTINCT 58 / + CASE + 17 WHEN 31 THEN - COALESCE ( ( - COUNT ( * ) ), - + 55 * - - ( - - 68 ) ) END AS col0, 78
----
NULL
78

query I rowsort
SELECT + 28 * - 32
----
-896

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT - 4 + 47 / ( - + 24 ) * - - 69 * + 71 / 89 + + 74 * + - CAST( NULL AS SIGNED ) * + + CASE + - MAX( + - 72 ) WHEN 49 THEN - 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT - 4 + 47 / ( - + 24 ) * - - 69 * + 71 / 89 + + 74 * + - CAST ( NULL AS INTEGER ) * + + CASE + - MAX ( + - 72 ) WHEN 49 THEN - 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT COUNT( - + 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-706
SELECT COUNT ( - + 12 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + 92 * SUM( - + 92 ) AS col0
----
-8464

skipif mysql # not compatible
query I rowsort label-707
SELECT + 92 * SUM ( - + 92 ) AS col0
----
-8464

query I rowsort
SELECT - 57 + 96 + 15
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-709
SELECT ALL COALESCE ( 40, + COUNT( * ) ) AS col1, + 79
----
40
79

skipif mysql # not compatible
query II rowsort label-709
SELECT ALL COALESCE ( 40, + COUNT ( * ) ) AS col1, + 79
----
40
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL COUNT( * ) + CASE + COUNT( * ) WHEN - MIN( ALL 61 ) + 62 THEN 8 * 58 ELSE NULL END
----
465

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL COUNT ( * ) + CASE + COUNT ( * ) WHEN - MIN ( ALL 61 ) + 62 THEN 8 * 58 ELSE NULL END
----
465

query I rowsort
SELECT ALL - 14 * - 8 AS col0
----
112

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

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

query I rowsort
SELECT 59 - ( + 2 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - COUNT( * ) + - 62 * + 25
----
-1551

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - COUNT ( * ) + - 62 * + 25
----
-1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT 72 + SUM( 64 + 14 ) * - SUM( 50 - 22 / + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT 72 + SUM ( 64 + 14 ) * - SUM ( 50 - 22 / + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 15 * NULLIF ( - 66 * + 35, + 55 )
----
34650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT DISTINCT - NULLIF ( - CASE 10 WHEN 25 - 69 THEN - 75 + ( 34 + 20 ) * 22 WHEN - 40 + + 45 THEN NULL ELSE - CAST( NULL AS SIGNED ) END, + 88 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT - NULLIF ( - CASE 10 WHEN 25 - 69 THEN - 75 + ( 34 + 20 ) * 22 WHEN - 40 + + 45 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END, + 88 ) col1
----
NULL

query I rowsort
SELECT + 72 * 51 + - 91 * + 87 AS col1
----
-4245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT ALL + CAST( 8 AS SIGNED ) + 58 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL + CAST ( 8 AS INTEGER ) + 58 AS col2
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-722
SELECT COUNT( * ) DIV - 76 + + 73 * - 51 col0
----
-3723

skipif mysql # not compatible
query I rowsort label-722
SELECT COUNT ( * ) / - 76 + + 73 * - 51 col0
----
-3723

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-723
SELECT ALL - 70 + CASE 21 WHEN + ( 6 ) THEN NULL WHEN + 6 THEN 22 - ( MAX( ALL - 4 ) ) * COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) THEN 59 * - 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - 70 + CASE 21 WHEN + ( 6 ) THEN NULL WHEN + 6 THEN 22 - ( MAX ( ALL - 4 ) ) * COUNT ( * ) WHEN + CAST ( NULL AS REAL ) THEN 59 * - 26 END AS col1
----
NULL

query I rowsort
SELECT ALL + 43 * + 96 AS col0
----
4128

query I rowsort
SELECT DISTINCT + 25 - 24 AS col1
----
1

query I rowsort
SELECT ALL - 70 - 62
----
-132

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

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

query I rowsort
SELECT 80 * 5 + + 4 * + 41 AS col2
----
564

query I rowsort
SELECT 86 * 73 AS col0
----
6278

query I rowsort
SELECT ALL 53 * + ( 44 ) AS col2
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL - 7 - - ( - COUNT( ALL NULLIF ( 26, 84 ) ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - 7 - - ( - COUNT ( ALL NULLIF ( 26, 84 ) ) ) AS col0
----
-8

query I rowsort
SELECT DISTINCT - NULLIF ( 69, 16 )
----
-69

query I rowsort
SELECT DISTINCT 88 * - 7
----
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT ALL NULLIF ( - 90, ( + CAST( NULL AS SIGNED ) ) * - CASE COALESCE ( 35, 8, 13 * 28 ) + - SUM( - 79 ) WHEN COUNT( * ) + - 71 THEN + NULLIF ( + 98, + 61 ) * + NULLIF ( - 25 * + 15, 60 ) + NULLIF ( 99, COALESCE ( NULLIF ( - 65, - 70 ), - ( COUNT( * ) ) ) ) WHEN 83 / + 48 THEN - 60 * 18 END ) - - 98
----
8

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL NULLIF ( - 90, ( + CAST ( NULL AS INTEGER ) ) * - CASE COALESCE ( 35, 8, 13 * 28 ) + - SUM ( - 79 ) WHEN COUNT ( * ) + - 71 THEN + NULLIF ( + 98, + 61 ) * + NULLIF ( - 25 * + 15, 60 ) + NULLIF ( 99, COALESCE ( NULLIF ( - 65, - 70 ), - ( COUNT ( * ) ) ) ) WHEN 83 / + 48 THEN - 60 * 18 END ) - - 98
----
8

query I rowsort
SELECT DISTINCT 5 * + NULLIF ( 57 * - 55, - 99 + 13 * + 8 )
----
-15675

query I rowsort
SELECT 12 * 8 AS col0
----
96

query I rowsort
SELECT ALL - 81 * - 19
----
1539

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT 18 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT 18 / 41
----
0

query I rowsort
SELECT DISTINCT 52 * + 73 AS col2
----
3796

query I rowsort
SELECT 2 * - 78 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT COALESCE ( - 57, 44, - COUNT( * ) * + 60 ) - 57 * + 15
----
-912

skipif mysql # not compatible
query I rowsort label-741
SELECT COALESCE ( - 57, 44, - COUNT ( * ) * + 60 ) - 57 * + 15
----
-912

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

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL COUNT ( * ) + + 31 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT 34 DIV + 31 col1
----
1

skipif mysql # not compatible
query I rowsort label-743
SELECT 34 / + 31 col1
----
1

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

query I rowsort
SELECT DISTINCT 91 * + 45 AS col0
----
4095

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

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

query I rowsort
SELECT 26 + - 2 * 16 AS col2
----
-6

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

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

query I rowsort
SELECT DISTINCT 25 * 93
----
2325

query I rowsort
SELECT ALL - 60 + 94 AS col1
----
34

query I rowsort
SELECT - - ( 46 ) AS col0
----
46

query I rowsort
SELECT + 13 * - 19 AS col2
----
-247

query I rowsort
SELECT 95 + + 68 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL ( COUNT( ALL 83 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL ( COUNT ( ALL 83 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT ALL CAST( 52 AS SIGNED ) col2
----
52

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL CAST ( 52 AS INTEGER ) col2
----
52

query I rowsort
SELECT DISTINCT - 67 - ( - 28 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT + MIN( ALL 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-757
SELECT + MIN ( ALL 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT DISTINCT + COUNT( * ) - - 84 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT + COUNT ( * ) - - 84 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT ALL - 75 DIV - 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL - 75 / - 44 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT COUNT( 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-760
SELECT COUNT ( 72 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT + 38 * + COUNT( * ) - 52 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-761
SELECT + 38 * + COUNT ( * ) - 52 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT 44 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-762
SELECT 44 / 61
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL - SUM( + 52 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL - SUM ( + 52 ) col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT + MIN( + 86 ) * 12
----
1032

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT + MIN ( + 86 ) * 12
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT 9 * - COUNT( * ) * 45 AS col2
----
-405

skipif mysql # not compatible
query I rowsort label-766
SELECT 9 * - COUNT ( * ) * 45 AS col2
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT - COUNT( ALL - + 71 ) * 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT - COUNT ( ALL - + 71 ) * 57 AS col1
----
-57

query I rowsort
SELECT 13 * - + 23 * 48 - + 37 AS col2
----
-14389

query I rowsort
SELECT 99 * 82
----
8118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-770
SELECT 2 + ( 48 ) + 97 * - COALESCE ( CAST( + 78 AS SIGNED ), 12 * + 71 + 48 * COUNT( ALL - 17 ) ) col2
----
-7516

skipif mysql # not compatible
query I rowsort label-770
SELECT 2 + ( 48 ) + 97 * - COALESCE ( CAST ( + 78 AS INTEGER ), 12 * + 71 + 48 * COUNT ( ALL - 17 ) ) col2
----
-7516

query I rowsort
SELECT 11 * - 22 * 56 AS col0
----
-13552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT 13 * + - 31 + + 30 * + COUNT( * ) AS col2
----
-373

skipif mysql # not compatible
query I rowsort label-773
SELECT 13 * + - 31 + + 30 * + COUNT ( * ) AS col2
----
-373

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT DISTINCT + NULLIF ( - 73, 13 + 75 ) + - 27 * SUM( ALL + CAST( 17 AS SIGNED ) ) col0
----
-532

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT + NULLIF ( - 73, 13 + 75 ) + - 27 * SUM ( ALL + CAST ( 17 AS INTEGER ) ) col0
----
-532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT COALESCE ( - + COUNT( ALL 93 ), COUNT( * ) + + 91 ) + 86 DIV + 21 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-776
SELECT COALESCE ( - + COUNT ( ALL 93 ), COUNT ( * ) + + 91 ) + 86 / + 21 AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-777
SELECT DISTINCT - COALESCE ( - - 87, + 20, ( 9 ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT - COALESCE ( - - 87, + 20, ( 9 ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 85 * - 42 * + 51
----
182070

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-779
SELECT + MIN( ALL + + 19 ) + + SUM( 55 ) DIV 50
----
20

skipif mysql # not compatible
query I rowsort label-779
SELECT + MIN ( ALL + + 19 ) + + SUM ( 55 ) / 50
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL CASE - 21 WHEN - SUM( 42 ) * 25 THEN 71 END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL CASE - 21 WHEN - SUM ( 42 ) * 25 THEN 71 END * 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + + COUNT( * ) + + - 6
----
-5

skipif mysql # not compatible
query I rowsort label-781
SELECT + + COUNT ( * ) + + - 6
----
-5

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

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

query I rowsort
SELECT + - 37 + + - 93
----
-130

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

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - 31 + - - COUNT ( * ) AS col1
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL CASE - ( - 55 ) WHEN 3 * - ( COUNT( * ) ) + - 96 * 50 THEN 75 + + AVG ( DISTINCT 16 ) WHEN 4 + - COUNT( * ) * + 92 THEN + 81 WHEN 40 + + ( - COUNT( * ) ) THEN ( + COUNT( * ) ) * + 88 ELSE NULL END * - CASE 72 WHEN - 73 THEN 8 * + 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL CASE - ( - 55 ) WHEN 3 * - ( COUNT ( * ) ) + - 96 * 50 THEN 75 + + AVG ( DISTINCT 16 ) WHEN 4 + - COUNT ( * ) * + 92 THEN + 81 WHEN 40 + + ( - COUNT ( * ) ) THEN ( + COUNT ( * ) ) * + 88 ELSE NULL END * - CASE 72 WHEN - 73 THEN 8 * + 15 ELSE NULL END
----
NULL

query I rowsort
SELECT + 24 * - - 18 AS col2
----
432

query I rowsort
SELECT ALL + 49 * - + ( - 62 ) * - 65
----
-197470

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT DISTINCT - 38 DIV - 54 * 83 - - 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - 38 / - 54 * 83 - - 44 AS col0
----
44

query I rowsort
SELECT + - ( - 34 ) + 3 * + 33 col0
----
133

query I rowsort
SELECT + - 68 + - 26 * + 21
----
-614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-792
SELECT DISTINCT CAST( NULL AS SIGNED ) * 87 + 47 * SUM( DISTINCT 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 87 + 47 * SUM ( DISTINCT 67 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL COUNT( * ) * 43
----
43

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL COUNT ( * ) * 43
----
43

query I rowsort
SELECT + ( - NULLIF ( - 2, + 77 + + 45 ) ) + 7 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + 11 * COUNT( 66 ) + 68 * 52 + ( 73 ) AS col1
----
3620

skipif mysql # not compatible
query I rowsort label-796
SELECT + 11 * COUNT ( 66 ) + 68 * 52 + ( 73 ) AS col1
----
3620

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT DISTINCT + NULLIF ( 30, CASE + 83 WHEN - 56 + + 50 * 16 THEN - 37 - CASE - 27 WHEN - 91 + + 46 THEN - COUNT( * ) + MIN( ALL 44 + + 30 / - 78 ) END * + 0 WHEN + 89 THEN NULL ELSE - 62 END ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + NULLIF ( 30, CASE + 83 WHEN - 56 + + 50 * 16 THEN - 37 - CASE - 27 WHEN - 91 + + 46 THEN - COUNT ( * ) + MIN ( ALL 44 + + 30 / - 78 ) END * + 0 WHEN + 89 THEN NULL ELSE - 62 END ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL 10 * - COUNT( * ) + 14 * 99
----
1376

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL 10 * - COUNT ( * ) + 14 * 99
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT CASE + + COUNT( * ) WHEN 45 THEN - 67 * ( COUNT( * ) * - 95 ) + - 7 WHEN 15 + - SUM( 53 ) THEN 64 ELSE 61 * 41 END
----
2501

skipif mysql # not compatible
query I rowsort label-799
SELECT CASE + + COUNT ( * ) WHEN 45 THEN - 67 * ( COUNT ( * ) * - 95 ) + - 7 WHEN 15 + - SUM ( 53 ) THEN 64 ELSE 61 * 41 END
----
2501

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT ALL + 83, + 40 - - ( - MAX( 55 ) ) AS col1
----
83
-15

skipif mysql # not compatible
query II rowsort label-800
SELECT ALL + 83, + 40 - - ( - MAX ( 55 ) ) AS col1
----
83
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - 29 + + + 58 * + ( 93 ) + COUNT( DISTINCT + 98 - - 49 ) * - 54
----
5311

skipif mysql # not compatible
query I rowsort label-801
SELECT - 29 + + + 58 * + ( 93 ) + COUNT ( DISTINCT + 98 - - 49 ) * - 54
----
5311

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT - 88 DIV - 69 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-802
SELECT - 88 / - 69 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-803
SELECT ALL + 66 col0, CASE - COUNT( * ) WHEN - 19 THEN + 11 * - CAST( NULL AS SIGNED ) WHEN 0 * 9 + 91 THEN 71 + CAST( NULL AS SIGNED ) * + 52 END / 72 + + COUNT( ALL + 86 ) AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-803
SELECT ALL + 66 col0, CASE - COUNT ( * ) WHEN - 19 THEN + 11 * - CAST ( NULL AS INTEGER ) WHEN 0 * 9 + 91 THEN 71 + CAST ( NULL AS INTEGER ) * + 52 END / 72 + + COUNT ( ALL + 86 ) AS col1
----
66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT + 52 DIV + + 12
----
4

skipif mysql # not compatible
query I rowsort label-804
SELECT + 52 / + + 12
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT - MIN( ALL + 95 ) + - + 33 * COUNT( * )
----
-128

skipif mysql # not compatible
query I rowsort label-805
SELECT - MIN ( ALL + 95 ) + - + 33 * COUNT ( * )
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT ALL + 15 * - 48 + CAST( + SUM( - 81 ) AS SIGNED )
----
-801

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL + 15 * - 48 + CAST ( + SUM ( - 81 ) AS INTEGER )
----
-801

query I rowsort
SELECT + 69 * - 14
----
-966

query II rowsort
SELECT ALL + 56, + 62 AS col2
----
56
62

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

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

skipif mysql # not compatible
query I rowsort label-810
SELECT - COUNT ( * ) / - 39 * + 17 AS col0
----
0

query I rowsort
SELECT ALL - 38 * 39 + - 96 AS col0
----
-1578

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-813
SELECT ALL + 88, + 63 + ( - 66 ) / - CASE 40 * + COUNT( * ) WHEN 37 THEN - 22 WHEN 58 * 17 THEN + 64 / + 84 WHEN - 59 + 87 THEN NULL END AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-813
SELECT ALL + 88, + 63 + ( - 66 ) / - CASE 40 * + COUNT ( * ) WHEN 37 THEN - 22 WHEN 58 * 17 THEN + 64 / + 84 WHEN - 59 + 87 THEN NULL END AS col0
----
88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT + 86 DIV + + 3
----
28

skipif mysql # not compatible
query I rowsort label-814
SELECT + 86 / + + 3
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT NULLIF ( + + SUM( DISTINCT 68 ), 68 + ( 75 ) )
----
68

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT NULLIF ( + + SUM ( DISTINCT 68 ), 68 + ( 75 ) )
----
68

query I rowsort
SELECT DISTINCT 29 * + 48 + - 23 AS col1
----
1369

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

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

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

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

query I rowsort
SELECT ALL - - 72 - 76
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT - CAST( + 20 AS SIGNED ) - - 78 + + MAX( 36 )
----
94

skipif mysql # not compatible
query I rowsort label-821
SELECT - CAST ( + 20 AS INTEGER ) - - 78 + + MAX ( 36 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - 86 - - COUNT( * ) * + - 46
----
-132

skipif mysql # not compatible
query I rowsort label-822
SELECT - 86 - - COUNT ( * ) * + - 46
----
-132

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

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT ALL - - 80 - - 43 + 7 DIV + 87 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL - - 80 - - 43 + 7 / + 87 AS col0
----
123

query I rowsort
SELECT - NULLIF ( - 35, + 49 * - 79 ) AS col0
----
35

query II rowsort
SELECT ALL 40 AS col1, 93 * 23 AS col1
----
40
2139

query I rowsort
SELECT ALL + 19 - - 94 * + 41 * + 98
----
377711

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + + 14 * + 86 * + 80 + - 15 * COUNT( * ) AS col2
----
96305

skipif mysql # not compatible
query I rowsort label-828
SELECT + + 14 * + 86 * + 80 + - 15 * COUNT ( * ) AS col2
----
96305

query I rowsort
SELECT ALL + + 68 * 19 AS col2
----
1292

query I rowsort
SELECT - CASE - - 49 WHEN - + 36 + 18 THEN 78 - 40 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT + - 39 - + - 81 DIV + - 55 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-831
SELECT + - 39 - + - 81 / + - 55 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT DISTINCT COUNT( * ) AS col0, - 30
----
1
-30

skipif mysql # not compatible
query II rowsort label-832
SELECT DISTINCT COUNT ( * ) AS col0, - 30
----
1
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - MIN( DISTINCT - + 24 ) * 95 * + 96
----
218880

skipif mysql # not compatible
query I rowsort label-834
SELECT - MIN ( DISTINCT - + 24 ) * 95 * + 96
----
218880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT + 58 * + 30 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT + 58 * + 30 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT + 16 + + ( - - 41 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT + - 87 * + - MAX( 7 ) AS col2
----
609

skipif mysql # not compatible
query I rowsort label-838
SELECT + - 87 * + - MAX ( 7 ) AS col2
----
609

query I rowsort
SELECT + + 12 * + 40 * + 20 AS col2
----
9600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT ALL - - SUM( + 39 ) DIV - 83 + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - - SUM ( + 39 ) / - 83 + 99 AS col0
----
99

query I rowsort
SELECT ALL 94 * 7
----
658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-842
SELECT - 0 / + - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-842
SELECT - 0 / + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT + 5 * + COUNT( * ) * 64
----
320

skipif mysql # not compatible
query I rowsort label-843
SELECT + 5 * + COUNT ( * ) * 64
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT + 82 * - + COUNT( DISTINCT 42 ) * + 56 + + 98
----
-4494

skipif mysql # not compatible
query I rowsort label-844
SELECT + 82 * - + COUNT ( DISTINCT 42 ) * + 56 + + 98
----
-4494

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - 39 * + 84 - - 79 * 86 - ( 93 + + COUNT( * ) * 98 )
----
3327

skipif mysql # not compatible
query I rowsort label-845
SELECT - 39 * + 84 - - 79 * 86 - ( 93 + + COUNT ( * ) * 98 )
----
3327

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT DISTINCT + 27 DIV 39 + + ( - + 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT + 27 / 39 + + ( - + 87 ) AS col0
----
-87

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT ALL - ( + + 13 ) DIV - + 49 + - 48
----
-48

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - ( + + 13 ) / - + 49 + - 48
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-850
SELECT DISTINCT + 11 DIV + CAST( + 99 AS SIGNED ) + + + 13 - 28 * + 1 col2
----
-15

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT + 11 / + CAST ( + 99 AS INTEGER ) + + + 13 - 28 * + 1 col2
----
-15

query I rowsort
SELECT ( 20 ) * - - 18 - - 58
----
418

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-854
SELECT CAST( NULL AS SIGNED ) * 49 AS col0, + 61 - + COUNT( + 62 ) AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-854
SELECT CAST ( NULL AS INTEGER ) * 49 AS col0, + 61 - + COUNT ( + 62 ) AS col0
----
NULL
60

query I rowsort
SELECT 78 * - - 16 AS col1
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT MIN( + 67 ) * + + 79 + - MIN( - 38 )
----
5331

skipif mysql # not compatible
query I rowsort label-856
SELECT MIN ( + 67 ) * + + 79 + - MIN ( - 38 )
----
5331

query I rowsort
SELECT + 84 + - 7 AS col0
----
77

query I rowsort
SELECT DISTINCT 58 * + 70
----
4060

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT + 6 DIV 81 * 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-859
SELECT + 6 / 81 * 79 AS col2
----
0

query II rowsort
SELECT + ( - - 6 ), + COALESCE ( ( 50 ), 64 ) AS col2
----
6
50

query I rowsort
SELECT 70 + - 61
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT NULLIF ( CASE + 57 WHEN - - 57 + 83 THEN NULL WHEN 18 * - CAST( NULL AS SIGNED ) THEN - CAST( - 51 AS SIGNED ) * 41 + - COUNT( * ) * + 89 ELSE + 21 + 80 END, + 91 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT NULLIF ( CASE + 57 WHEN - - 57 + 83 THEN NULL WHEN 18 * - CAST ( NULL AS INTEGER ) THEN - CAST ( - 51 AS INTEGER ) * 41 + - COUNT ( * ) * + 89 ELSE + 21 + 80 END, + 91 ) AS col1
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT 80 + 18 DIV + ( + 93 )
----
80

skipif mysql # not compatible
query I rowsort label-863
SELECT 80 + 18 / + ( + 93 )
----
80

query I rowsort
SELECT DISTINCT - 5 + - 81 AS col2
----
-86

query II rowsort
SELECT + 22 * + 65, ( + 48 ) AS col1
----
1430
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT DISTINCT + 3 + + + COUNT( * ) - ( + MAX( 40 ) ) DIV 56 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + 3 + + + COUNT ( * ) - ( + MAX ( 40 ) ) / 56 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT 37 + + - CASE 60 WHEN ( + 44 ) + 4 THEN NULL WHEN 4 THEN 34 + 84 ELSE NULL END + 86 * MAX( 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT 37 + + - CASE 60 WHEN ( + 44 ) + 4 THEN NULL WHEN 4 THEN 34 + 84 ELSE NULL END + 86 * MAX ( 48 )
----
NULL

query II rowsort
SELECT ALL - ( - - 6 ) + + 87, 9 AS col1
----
81
9

query II rowsort
SELECT ALL 52 AS col0, - ( - - 16 ) AS col0
----
52
-16

query I rowsort
SELECT 18 + - ( - 46 )
----
64

query I rowsort
SELECT 21 * 69
----
1449

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT ALL - 92, COALESCE ( + CASE + 11 WHEN - - COUNT( * ) THEN NULL ELSE 61 END, - 86 ) * 27 col1
----
-92
1647

skipif mysql # not compatible
query II rowsort label-872
SELECT ALL - 92, COALESCE ( + CASE + 11 WHEN - - COUNT ( * ) THEN NULL ELSE 61 END, - 86 ) * 27 col1
----
-92
1647

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT 54 * + + CASE 46 WHEN + 82 * AVG ( ALL CASE - 72 WHEN + 82 THEN NULL ELSE 10 END ) THEN NULL WHEN - COALESCE ( 3, - 5 * 30 + COUNT( * ) * - 51 ) THEN ( - COUNT( * ) ) / + 90 ELSE NULL END + - 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT 54 * + + CASE 46 WHEN + 82 * AVG ( ALL CASE - 72 WHEN + 82 THEN NULL ELSE 10 END ) THEN NULL WHEN - COALESCE ( 3, - 5 * 30 + COUNT ( * ) * - 51 ) THEN ( - COUNT ( * ) ) / + 90 ELSE NULL END + - 46 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-874
SELECT ALL - COUNT( * ) + + COUNT( * ) DIV - COUNT( * ) AS col0, - ( - 31 ) AS col2
----
-2
31

skipif mysql # not compatible
query II rowsort label-874
SELECT ALL - COUNT ( * ) + + COUNT ( * ) / - COUNT ( * ) AS col0, - ( - 31 ) AS col2
----
-2
31

query I rowsort
SELECT ALL 34 + - - 8
----
42

query I rowsort
SELECT 53 + - COALESCE ( - + 58, ( - - 97 ) )
----
111

query I rowsort
SELECT DISTINCT 33 * 84 AS col1
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-878
SELECT CAST( + MIN( ALL - 47 ) AS SIGNED ) + COUNT( * ) + 80 + 55 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-878
SELECT CAST ( + MIN ( ALL - 47 ) AS INTEGER ) + COUNT ( * ) + 80 + 55 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL COALESCE ( - 53, - + 88 * + + ( + + NULLIF ( ( 98 ), COUNT( * ) ) ) ) - 74 AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL COALESCE ( - 53, - + 88 * + + ( + + NULLIF ( ( 98 ), COUNT ( * ) ) ) ) - 74 AS col2
----
-127

query II rowsort
SELECT ALL - - 7 AS col0, 27
----
7
27

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT 47 * - 92 - - 52 DIV 20 + - + 31 AS col2
----
-4353

skipif mysql # not compatible
query I rowsort label-881
SELECT 47 * - 92 - - 52 / 20 + - + 31 AS col2
----
-4353

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-882
SELECT - COUNT( * ) - COALESCE ( 4, - 19 + 44 - + 51 DIV - CASE 83 * 6 WHEN + 59 THEN 68 WHEN + 25 THEN NULL ELSE NULL END ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-882
SELECT - COUNT ( * ) - COALESCE ( 4, - 19 + 44 - + 51 / - CASE 83 * 6 WHEN + 59 THEN 68 WHEN + 25 THEN NULL ELSE NULL END ) AS col2
----
-5

query I rowsort
SELECT - COALESCE ( + 91, - 49, 90 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + COALESCE ( - MAX( 63 ), 67 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + COALESCE ( - MAX ( 63 ), 67 ) col2
----
-63

query I rowsort
SELECT DISTINCT 92 * + + 56 AS col1
----
5152

query I rowsort
SELECT - 31 * 79
----
-2449

query II rowsort
SELECT DISTINCT - 46, + 46 AS col1
----
-46
46

query I rowsort
SELECT ALL - - 0 * 38 * - - 35 * 71 * + 1 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) * + 4
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + + CASE 74 WHEN 17 + - 18 THEN 24 ELSE NULL END + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + + CASE 74 WHEN 17 + - 18 THEN 24 ELSE NULL END + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT SUM( ALL - + 5 ) * 23 * - 17 * 39 * ( + 62 ) AS col0
----
4727190

skipif mysql # not compatible
query I rowsort label-891
SELECT SUM ( ALL - + 5 ) * 23 * - 17 * 39 * ( + 62 ) AS col0
----
4727190

query I rowsort
SELECT + 29 + - - CASE 60 WHEN - + 19 + + 47 THEN - 56 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-893
SELECT DISTINCT + + CAST( + + 61 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0, + 39 AS col2
----
NULL
39

skipif mysql # not compatible
query II rowsort label-893
SELECT DISTINCT + + CAST ( + + 61 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0, + 39 AS col2
----
NULL
39

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT 64 DIV 4
----
16

skipif mysql # not compatible
query I rowsort label-894
SELECT 64 / 4
----
16

query I rowsort
SELECT ALL + 41 + - + 23 * - 54 * + 24 * + - 26 AS col1
----
-774967

query II rowsort
SELECT - 98, - 41 col1
----
-98
-41

query II rowsort
SELECT DISTINCT 76 + - 43 AS col1, + 52
----
33
52

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL COUNT( 58 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL COUNT ( 58 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL - 86 - + - MAX( - 41 ) AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - 86 - + - MAX ( - 41 ) AS col2
----
-127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-900
SELECT ALL CASE + CASE + - COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) THEN 34 WHEN + + COUNT( * ) THEN NULL END WHEN + 7 THEN NULL ELSE 85 END AS col1
----
85

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL CASE + CASE + - COUNT ( * ) WHEN - CAST ( NULL AS REAL ) THEN 34 WHEN + + COUNT ( * ) THEN NULL END WHEN + 7 THEN NULL ELSE 85 END AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL COUNT( - 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL COUNT ( - 0 ) AS col0
----
1

query I rowsort
SELECT - 75 * 14 * + 99
----
-103950

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - ( COUNT( * ) ) * - 29 - - - ( - ( 40 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-903
SELECT - ( COUNT ( * ) ) * - 29 - - - ( - ( 40 ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT DISTINCT + CASE + 70 WHEN + 34 THEN NULL ELSE - 61 END AS col0, COUNT( * ) AS col2
----
-61
1

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT + CASE + 70 WHEN + 34 THEN NULL ELSE - 61 END AS col0, COUNT ( * ) AS col2
----
-61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL + 63 * + COUNT( * ) - + + 88
----
-25

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL + 63 * + COUNT ( * ) - + + 88
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-906
SELECT ALL + 26, - CAST( NULL AS DECIMAL ) * - ( + 15 ) + + 88 - - COUNT( - ( - 29 ) ) AS col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-906
SELECT ALL + 26, - CAST ( NULL AS REAL ) * - ( + 15 ) + + 88 - - COUNT ( - ( - 29 ) ) AS col0
----
26
NULL

query I rowsort
SELECT - COALESCE ( - 15, + 85 * - + 31 ) + - - 2 + 11 * - 46
----
-489

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

onlyif mysql # aggregate syntax: 
query II rowsort label-909
SELECT - COUNT( * ) * - - 1 * + 60 * + 77, 22 AS col2
----
-4620
22

skipif mysql # not compatible
query II rowsort label-909
SELECT - COUNT ( * ) * - - 1 * + 60 * + 77, 22 AS col2
----
-4620
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-910
SELECT ALL 20 * - MAX( ALL 82 ) * - 63 - - 15 * - 17 DIV 16
----
103305

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL 20 * - MAX ( ALL 82 ) * - 63 - - 15 * - 17 / 16
----
103305

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

skipif mysql # not compatible
query I rowsort label-911
SELECT + COUNT ( * ) / - 67 * + 13 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT DISTINCT - 52 DIV + - 67
----
0

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - 52 / + - 67
----
0

query I rowsort
SELECT - 5 + - 30 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT + + 27 * - 26 - + 8 + + ( COUNT( * ) ) * + - CASE WHEN ( - 56 ) IS NULL THEN SUM( 82 ) ELSE - COUNT( DISTINCT + ( 92 ) ) END
----
-709

skipif mysql # not compatible
query I rowsort label-914
SELECT + + 27 * - 26 - + 8 + + ( COUNT ( * ) ) * + - CASE WHEN ( - 56 ) IS NULL THEN SUM ( 82 ) ELSE - COUNT ( DISTINCT + ( 92 ) ) END
----
-709

query I rowsort
SELECT - NULLIF ( + + 81, + 93 * + 88 * 59 ) + + 52 * + 16
----
751

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT - - 16 DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-916
SELECT - - 16 / - + 68
----
0

query I rowsort
SELECT + - 52 + + 38 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + ( 9 ) * + - SUM( + - 30 )
----
270

skipif mysql # not compatible
query I rowsort label-918
SELECT + ( 9 ) * + - SUM ( + - 30 )
----
270

query II rowsort
SELECT ALL + 30, - 61 * + 51 * - - 97 * - 8 AS col1
----
30
2414136

query II rowsort
SELECT + + 18 AS col0, 33 + 13
----
18
46

onlyif mysql # DIV for integer division: 
query I rowsort label-921
SELECT + 68 + + 65 DIV 87
----
68

skipif mysql # not compatible
query I rowsort label-921
SELECT + 68 + + 65 / 87
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT DISTINCT - CAST( 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - CAST ( 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT - + SUM( DISTINCT + + 73 ) + 38 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-924
SELECT - + SUM ( DISTINCT + + 73 ) + 38 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-925
SELECT - 35 * - ( + 66 ) + + 81 + + COUNT( * ) * - 91 * 10 DIV + 14 col1
----
2326

skipif mysql # not compatible
query I rowsort label-925
SELECT - 35 * - ( + 66 ) + + 81 + + COUNT ( * ) * - 91 * 10 / + 14 col1
----
2326

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT 83 + - ( - COUNT( * ) ) + + 31 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT 83 + - ( - COUNT ( * ) ) + + 31 AS col2
----
115

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

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

query I rowsort
SELECT + + 75 + + + 38 AS col1
----
113

query II rowsort
SELECT + - 64 * + - 71 AS col0, + 80
----
4544
80

query I rowsort
SELECT ALL 10 * + 47 AS col2
----
470

query I rowsort
SELECT DISTINCT 50 + 27
----
77

query I rowsort
SELECT + 47 + - 98
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT + 5 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-933
SELECT + 5 / 69
----
0

query I rowsort
SELECT + 23 + + 50
----
73

query I rowsort
SELECT ALL NULLIF ( - - 95, 44 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT + 11 + - 97 + - - NULLIF ( + 99, + COALESCE ( 12, 84 * - 16 - + 30 / + 27 ) ) * + COUNT( * ) * + ( + ( + NULLIF ( 39, COUNT( * ) + - COUNT( * ) ) ) )
----
3775

skipif mysql # not compatible
query I rowsort label-936
SELECT + 11 + - 97 + - - NULLIF ( + 99, + COALESCE ( 12, 84 * - 16 - + 30 / + 27 ) ) * + COUNT ( * ) * + ( + ( + NULLIF ( 39, COUNT ( * ) + - COUNT ( * ) ) ) )
----
3775

query I rowsort
SELECT - 16 + 71 * + 43 AS col0
----
3037

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - COUNT( DISTINCT + 43 ) + - 39 + 18
----
-22

skipif mysql # not compatible
query I rowsort label-938
SELECT - COUNT ( DISTINCT + 43 ) + - 39 + 18
----
-22

query I rowsort
SELECT ALL ( 6 ) - ( 53 )
----
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT + 81 + - 2 + + + COALESCE ( - - 86, + CAST( NULL AS SIGNED ) - + + COUNT( * ), 5 ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-941
SELECT + 81 + - 2 + + + COALESCE ( - - 86, + CAST ( NULL AS INTEGER ) - + + COUNT ( * ), 5 ) AS col0
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT - CAST( MAX( DISTINCT 41 ) AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-942
SELECT - CAST ( MAX ( DISTINCT 41 ) AS INTEGER ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT ALL CASE - + 97 WHEN - ( - 41 ) + 93 THEN - - 26 WHEN - - CAST( 81 AS SIGNED ) THEN NULL ELSE - NULLIF ( 60, 58 ) * 39 + + CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL CASE - + 97 WHEN - ( - 41 ) + 93 THEN - - 26 WHEN - - CAST ( 81 AS INTEGER ) THEN NULL ELSE - NULLIF ( 60, 58 ) * 39 + + CAST ( NULL AS INTEGER ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT + NULLIF ( + - COUNT( * ), - 2 ) * - 79 + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-944
SELECT + NULLIF ( + - COUNT ( * ), - 2 ) * - 79 + COUNT ( * ) AS col2
----
80

query II rowsort
SELECT - 15 * 20 AS col0, 26 * 1 col2
----
-300
26

query I rowsort
SELECT ALL - 56 * + 71
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL - COUNT( * ) * 20 * - + 25
----
500

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - COUNT ( * ) * 20 * - + 25
----
500

query I rowsort
SELECT ALL - 65 * + + 21
----
-1365

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT + + 66 * - 94 + + 68 + 14 + + 37 DIV 13 + + - COALESCE ( 30, 83 ) + 76 * - 62 * 77 AS col2
----
-368974

skipif mysql # not compatible
query I rowsort label-949
SELECT + + 66 * - 94 + + 68 + 14 + + 37 / 13 + + - COALESCE ( 30, 83 ) + 76 * - 62 * 77 AS col2
----
-368974

query I rowsort
SELECT - + 86 * - 87
----
7482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-951
SELECT - ( 58 ) * - NULLIF ( 84, - 21 - - 64 + - CAST( - 78 AS SIGNED ) * + NULLIF ( 22, + 19 + + SUM( ALL + 20 ) ) ) + + 61 + 65
----
4998

skipif mysql # not compatible
query I rowsort label-951
SELECT - ( 58 ) * - NULLIF ( 84, - 21 - - 64 + - CAST ( - 78 AS INTEGER ) * + NULLIF ( 22, + 19 + + SUM ( ALL + 20 ) ) ) + + 61 + 65
----
4998

query I rowsort
SELECT - 53 * - 20
----
1060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT ALL - CAST( NULL AS SIGNED ) / + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - CAST ( NULL AS INTEGER ) / + 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-954
SELECT ALL - 65 * 87 / CAST( - - COUNT( * ) AS SIGNED ) + - ( + ( - + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL - 65 * 87 / CAST ( - - COUNT ( * ) AS INTEGER ) + - ( + ( - + CAST ( NULL AS INTEGER ) ) )
----
NULL

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

query II rowsort
SELECT - - 60 - - COALESCE ( + + 22, - - 89 * + 83 ) AS col1, 24 * + + 67 + 2 AS col2
----
82
1610

query I rowsort
SELECT - 70 * - 69 - - 36 + + 9 * - 55
----
4371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT + 16 * - CASE WHEN NOT ( NULL ) <> ( + 1 ) THEN NULL ELSE 16 + - CAST( 53 AS SIGNED ) END
----
592

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + 16 * - CASE WHEN NOT ( NULL ) <> ( + 1 ) THEN NULL ELSE 16 + - CAST ( 53 AS INTEGER ) END
----
592

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

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

query II rowsort
SELECT - 69 - 83 AS col1, 27 AS col0
----
-152
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-961
SELECT + ( COALESCE ( - NULLIF ( - 74, + 62 ), + + 6, - 16 * + 4 ) ) - + CASE + CAST( - 86 AS DECIMAL ) WHEN + 31 THEN 32 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT + ( COALESCE ( - NULLIF ( - 74, + 62 ), + + 6, - 16 * + 4 ) ) - + CASE + CAST ( - 86 AS REAL ) WHEN + 31 THEN 32 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT ALL - ( + 7 ) - + + 63 + + - CASE ( CAST( + 20 AS SIGNED ) ) WHEN + - COUNT( * ) THEN + CASE + 12 WHEN + 7 + + 45 * COUNT( * ) THEN 11 * 67 WHEN 43 * 49 + 83 THEN COUNT( * ) + - 93 END * - 62 + + 27 ELSE 58 * 85 END AS col1
----
-5000

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - ( + 7 ) - + + 63 + + - CASE ( CAST ( + 20 AS INTEGER ) ) WHEN + - COUNT ( * ) THEN + CASE + 12 WHEN + 7 + + 45 * COUNT ( * ) THEN 11 * 67 WHEN 43 * 49 + 83 THEN COUNT ( * ) + - 93 END * - 62 + + 27 ELSE 58 * 85 END AS col1
----
-5000

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

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

query II rowsort
SELECT 37 AS col1, + 67 col0
----
37
67

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

query II rowsort
SELECT 81, - 85 AS col2
----
81
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT COUNT( * ) * - - 12 * SUM( - 40 )
----
-480

skipif mysql # not compatible
query I rowsort label-967
SELECT COUNT ( * ) * - - 12 * SUM ( - 40 )
----
-480

query I rowsort
SELECT DISTINCT 10 * 54
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-969
SELECT ALL ( - 31 ) DIV - 63 * - NULLIF ( 76, + COUNT( DISTINCT 84 ) * - + 98 * 88 ) + + COALESCE ( + 44, 73 + 70, + 92 )
----
44

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL ( - 31 ) / - 63 * - NULLIF ( 76, + COUNT ( DISTINCT 84 ) * - + 98 * 88 ) + + COALESCE ( + 44, 73 + 70, + 92 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL 45 * CASE 16 WHEN - 80 THEN NULL WHEN - COUNT( * ) THEN 41 WHEN - 17 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL 45 * CASE 16 WHEN - 80 THEN NULL WHEN - COUNT ( * ) THEN 41 WHEN - 17 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 57 * - NULLIF ( 6, 79 )
----
-342

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT DISTINCT 74 * 12 DIV - 90 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT 74 * 12 / - 90 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-973
SELECT + 85 AS col0, + COUNT( DISTINCT - 67 ) * - CASE COUNT( * ) WHEN - 18 / - MIN( ALL + 95 ) THEN 18 - + 99 WHEN NULLIF ( - ( NULLIF ( + 16, AVG ( ALL CAST( NULL AS DECIMAL ) ) ) ), - CASE - 64 WHEN + 92 + CASE ( - 52 ) WHEN + 41 THEN CAST( + 32 AS SIGNED ) + + 24 END THEN 44 END ) - + 29 THEN NULL END AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-973
SELECT + 85 AS col0, + COUNT ( DISTINCT - 67 ) * - CASE COUNT ( * ) WHEN - 18 / - MIN ( ALL + 95 ) THEN 18 - + 99 WHEN NULLIF ( - ( NULLIF ( + 16, AVG ( ALL CAST ( NULL AS REAL ) ) ) ), - CASE - 64 WHEN + 92 + CASE ( - 52 ) WHEN + 41 THEN CAST ( + 32 AS INTEGER ) + + 24 END THEN 44 END ) - + 29 THEN NULL END AS col1
----
85
NULL

query I rowsort
SELECT ALL 9 * + COALESCE ( + 26, + 20 * + 44 ) col0
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-975
SELECT CAST( 74 AS SIGNED ) DIV + 25 AS col2, - 52 + - COUNT( ALL - 2 ) + + 92 AS col2
----
2
39

skipif mysql # not compatible
query II rowsort label-975
SELECT CAST ( 74 AS INTEGER ) / + 25 AS col2, - 52 + - COUNT ( ALL - 2 ) + + 92 AS col2
----
2
39

query II rowsort
SELECT - 87 AS col0, - 15 + - 15
----
-87
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT + 98 DIV + COUNT( * ) + - 36 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-977
SELECT + 98 / + COUNT ( * ) + - 36 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL - ( + COUNT( * ) ) + + 66 + + COUNT( ALL - 66 ) * 61 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL - ( + COUNT ( * ) ) + + 66 + + COUNT ( ALL - 66 ) * 61 AS col0
----
126

query II rowsort
SELECT ALL - 83 AS col2, 21 col1
----
-83
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-980
SELECT DISTINCT ( + - COUNT( * ) ) + - 79 DIV 81 AS col1, - 18 AS col1
----
-1
-18

skipif mysql # not compatible
query II rowsort label-980
SELECT DISTINCT ( + - COUNT ( * ) ) + - 79 / 81 AS col1, - 18 AS col1
----
-1
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-981
SELECT ALL - + CASE COUNT( * ) WHEN + COUNT( DISTINCT - + 65 ) + 46 THEN - 31 * CAST( NULL AS SIGNED ) + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - + CASE COUNT ( * ) WHEN + COUNT ( DISTINCT - + 65 ) + 46 THEN - 31 * CAST ( NULL AS INTEGER ) + 51 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT ALL + ( + CAST( - + 72 AS SIGNED ) ) * 73 + - COUNT( * ) - - 44 + + NULLIF ( 17, + NULLIF ( CASE COUNT( * ) WHEN CASE 76 WHEN + 98 THEN + COALESCE ( 56, - 5 * - 72, + 43 ) WHEN COUNT( * ) THEN NULL ELSE NULL END THEN 11 WHEN 24 * 13 THEN NULL ELSE + COUNT( * ) END, 20 + - 53 ) ) - 64
----
-5260

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + ( + CAST ( - + 72 AS INTEGER ) ) * 73 + - COUNT ( * ) - - 44 + + NULLIF ( 17, + NULLIF ( CASE COUNT ( * ) WHEN CASE 76 WHEN + 98 THEN + COALESCE ( 56, - 5 * - 72, + 43 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END THEN 11 WHEN 24 * 13 THEN NULL ELSE + COUNT ( * ) END, 20 + - 53 ) ) - 64
----
-5260

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT + - CASE - COUNT( * ) WHEN + 68 THEN - - 89 + + + CASE + - ( 63 ) WHEN - COUNT( * ) * + 59 THEN NULL WHEN - 47 THEN 2 END * - 45 ELSE COUNT( 96 ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-984
SELECT + - CASE - COUNT ( * ) WHEN + 68 THEN - - 89 + + + CASE + - ( 63 ) WHEN - COUNT ( * ) * + 59 THEN NULL WHEN - 47 THEN 2 END * - 45 ELSE COUNT ( 96 ) END col2
----
-1

query I rowsort
SELECT ALL - - 43 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT - NULLIF ( + + CAST( NULL AS SIGNED ), 66 + - 96 ) + - - CASE + 29 WHEN - 52 THEN - 3 * 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT - NULLIF ( + + CAST ( NULL AS INTEGER ), 66 + - 96 ) + - - CASE + 29 WHEN - 52 THEN - 3 * 30 END AS col2
----
NULL

query I rowsort
SELECT 39 + - 55 AS col2
----
-16

query I rowsort
SELECT DISTINCT + 86 * + - 29 AS col1
----
-2494

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-989
SELECT ALL - - CASE + SUM( - 32 ) WHEN + - 27 * + ( + + ( CASE + ( - CAST( COUNT( * ) AS DECIMAL ) ) WHEN NULLIF ( ( COUNT( * ) ), 99 - - 38 ) * NULLIF ( 11, 2 * ( COUNT( ALL 78 ) * + 25 ) ) THEN + 40 * 53 WHEN 41 THEN NULL END ) ) / + CAST( NULL AS DECIMAL ) THEN 21 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - - CASE + SUM ( - 32 ) WHEN + - 27 * + ( + + ( CASE + ( - CAST ( COUNT ( * ) AS REAL ) ) WHEN NULLIF ( ( COUNT ( * ) ), 99 - - 38 ) * NULLIF ( 11, 2 * ( COUNT ( ALL 78 ) * + 25 ) ) THEN + 40 * 53 WHEN 41 THEN NULL END ) ) / + CAST ( NULL AS REAL ) THEN 21 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-990
SELECT - 30 * - + COUNT( * ) * 41 + 80 + 32 DIV + ( + 40 )
----
1310

skipif mysql # not compatible
query I rowsort label-990
SELECT - 30 * - + COUNT ( * ) * 41 + 80 + 32 / + ( + 40 )
----
1310

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

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + + 22 * - 2 + MIN ( DISTINCT 13 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT DISTINCT + + 64 DIV - - 7 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT + + 64 / - - 7 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT COALESCE ( ( + - 76 ), - + SUM( DISTINCT - 78 ) + + + 83 ) + - MAX( DISTINCT - + 58 ) + - 91 * COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-993
SELECT COALESCE ( ( + - 76 ), - + SUM ( DISTINCT - 78 ) + + + 83 ) + - MAX ( DISTINCT - + 58 ) + - 91 * COUNT ( * )
----
-109

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT DISTINCT + 55 DIV + - 73 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + 55 / + - 73 * + COUNT ( * )
----
0

query I rowsort
SELECT 66 + - 64 * - 93
----
6018

onlyif mysql # DIV for integer division: 
query I rowsort label-998
SELECT 37 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-998
SELECT 37 / - 63
----
0

query I rowsort
SELECT 72 * + 52
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT 52 + - 44 - COALESCE ( + 80, + - SUM( 40 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1000
SELECT 52 + - 44 - COALESCE ( + 80, + - SUM ( 40 ) )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1001
SELECT DISTINCT + CAST( - + 58 AS SIGNED ) * COALESCE ( 76, - ( 26 ) ) * + ( - MIN( 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT + CAST ( - + 58 AS INTEGER ) * COALESCE ( 76, - ( 26 ) ) * + ( - MIN ( 0 ) ) AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + 65 + COUNT ( * ) + + 12 / - + 30 AS col0
----
66

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

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

query I rowsort
SELECT - 28 col0
----
-28

query I rowsort
SELECT 87 + 59 AS col0
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT SUM( - + CAST( NULL AS SIGNED ) ) * + - 18 * + AVG ( DISTINCT + 35 ) / - ( 74 ) / MIN( + 36 ) * 38 - + 81 * NULLIF ( - 74 * + 40, 99 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) * + - 18 * + AVG ( DISTINCT + 35 ) / - ( 74 ) / MIN ( + 36 ) * 38 - + 81 * NULLIF ( - 74 * + 40, 99 ) AS col2
----
NULL

query I rowsort
SELECT ( 81 ) + - - 65 AS col1
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT ALL 62 + 60 * + + 23 * + - 92 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL 62 + 60 * + + 23 * + - 92 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT 77 + - COUNT( * ) + + - 41 + - SUM( ALL + + 8 )
----
27

skipif mysql # not compatible
query I rowsort label-1009
SELECT 77 + - COUNT ( * ) + + - 41 + - SUM ( ALL + + 8 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1010
SELECT DISTINCT CAST( NULL AS SIGNED ) * 95, - 85 AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-1010
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 95, - 85 AS col0
----
NULL
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-1011
SELECT DISTINCT 86 DIV + 73 col2, + 32
----
1
32

skipif mysql # not compatible
query II rowsort label-1011
SELECT DISTINCT 86 / + 73 col2, + 32
----
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL + 9 * + 13 * - 61 * + 40 * SUM( DISTINCT - 40 ) + 15 * + 52 AS col2
----
11419980

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL + 9 * + 13 * - 61 * + 40 * SUM ( DISTINCT - 40 ) + 15 * + 52 AS col2
----
11419980

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

skipif mysql # not compatible
query I rowsort label-1013
SELECT SUM ( ALL - 5 )
----
-5

query I rowsort
SELECT DISTINCT 12 * + 16 + + + 62 AS col0
----
254

query I rowsort
SELECT ALL 27 * - 26 + 12
----
-690

query I rowsort
SELECT 38 * - - 30 / CASE 73 WHEN + - 86 THEN + 76 - - 69 END + - 71 col2
----
NULL

query I rowsort
SELECT 95 * + 20
----
1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1018
SELECT DISTINCT - + CASE + COUNT( * ) WHEN 1 + AVG ( + 65 ) THEN 19 DIV + COUNT( * ) + + 28 - - 66 * CAST( NULL AS SIGNED ) WHEN 34 + 87 THEN + 32 ELSE 46 + 13 END col2
----
-59

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT - + CASE + COUNT ( * ) WHEN 1 + AVG ( + 65 ) THEN 19 / + COUNT ( * ) + + 28 - - 66 * CAST ( NULL AS INTEGER ) WHEN 34 + 87 THEN + 32 ELSE 46 + 13 END col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1019
SELECT + COUNT( * ) * + + 85 AS col1, + 5 DIV + 57 AS col0
----
85
0

skipif mysql # not compatible
query II rowsort label-1019
SELECT + COUNT ( * ) * + + 85 AS col1, + 5 / + 57 AS col0
----
85
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT + - COALESCE ( - CASE 70 WHEN 22 THEN NULL WHEN + 30 * - + NULLIF ( + - 53, 98 ) THEN + 3 + 84 WHEN 4 * - ( 3 * 15 ) - + 17 THEN NULL ELSE + COUNT( * ) END, - 80 + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + - COALESCE ( - CASE 70 WHEN 22 THEN NULL WHEN + 30 * - + NULLIF ( + - 53, 98 ) THEN + 3 + 84 WHEN 4 * - ( 3 * 15 ) - + 17 THEN NULL ELSE + COUNT ( * ) END, - 80 + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + 60 * + - 33 AS col1
----
-1980

query I rowsort
SELECT ( ( 98 ) )
----
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT - 11 * - + 94 * CAST( - 83 AS SIGNED ) + COUNT( * ) + + + CAST( + 47 AS SIGNED ) + - - COUNT( * ) AS col2
----
-85773

skipif mysql # not compatible
query I rowsort label-1025
SELECT - 11 * - + 94 * CAST ( - 83 AS INTEGER ) + COUNT ( * ) + + + CAST ( + 47 AS INTEGER ) + - - COUNT ( * ) AS col2
----
-85773

query I rowsort
SELECT ALL 57 * 23 + 98 + ( - 49 ) + 17
----
1377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1027
SELECT + 88 * CAST( + CASE + 51 WHEN 84 THEN + + 83 * NULLIF ( 40, + ( 56 ) ) ELSE 0 / - 45 END AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT + 88 * CAST ( + CASE + 51 WHEN 84 THEN + + 83 * NULLIF ( 40, + ( 56 ) ) ELSE 0 / - 45 END AS INTEGER )
----
0

query I rowsort
SELECT - ( - + 43 ) + - 53 AS col2
----
-10

query I rowsort
SELECT - NULLIF ( 50, 20 ) AS col1
----
-50

query I rowsort
SELECT ALL 46 * + 89
----
4094

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT DISTINCT 56 AS col1, + 10 + + 67 * + COUNT( * ) * 38 col1
----
56
2556

skipif mysql # not compatible
query II rowsort label-1031
SELECT DISTINCT 56 AS col1, + 10 + + 67 * + COUNT ( * ) * 38 col1
----
56
2556

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - COUNT( * ) - + - 99
----
98

skipif mysql # not compatible
query I rowsort label-1032
SELECT - COUNT ( * ) - + - 99
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT - 10 DIV - COALESCE ( 47, ( - COUNT( * ) ) * - - 58, - + 53 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1033
SELECT - 10 / - COALESCE ( 47, ( - COUNT ( * ) ) * - - 58, - + 53 ) AS col2
----
0

query I rowsort
SELECT ALL - 97 + + + 19 * - ( + + 3 ) * - 50
----
2753

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1035
SELECT + MIN( + 16 ) + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1035
SELECT + MIN ( + 16 ) + + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT ALL + 70 + 30 AS col2
----
100

query I rowsort
SELECT - 57 + - + 44 col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-1038
SELECT ALL - 6 DIV 82 * + + 96 * + 31 * + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - 6 / 82 * + + 96 * + 31 * + 73 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT - 74 DIV + 73 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1039
SELECT - 74 / + 73 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT - 80 DIV 26
----
-3

skipif mysql # not compatible
query I rowsort label-1040
SELECT - 80 / 26
----
-3

query I rowsort
SELECT + 56 * + 45
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT ALL - 79 + 19 * - - CAST( + - SUM( + - 91 ) AS SIGNED ) col1
----
1650

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 79 + 19 * - - CAST ( + - SUM ( + - 91 ) AS INTEGER ) col1
----
1650

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

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

query I rowsort
SELECT DISTINCT + 52 + + + 54
----
106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1045
SELECT - CAST( NULL AS DECIMAL ) + - - 46 + - - MAX( DISTINCT + - ( + - 21 ) ) * - 11 + + MIN( DISTINCT + - 91 ), 58 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1045
SELECT - CAST ( NULL AS REAL ) + - - 46 + - - MAX ( DISTINCT + - ( + - 21 ) ) * - 11 + + MIN ( DISTINCT + - 91 ), 58 AS col1
----
NULL
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1046
SELECT ALL NULLIF ( COUNT( ALL + 75 ), - 49 ) * - 37 DIV - 36
----
1

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL NULLIF ( COUNT ( ALL + 75 ), - 49 ) * - 37 / - 36
----
1

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

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

query I rowsort
SELECT ALL 58 - 47
----
11

query I rowsort
SELECT - 72 + 28 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT + ( - 70 ) * ( - 23 ) + + CASE + MAX( + 7 ) WHEN - 83 * 48 + AVG ( ALL 83 ) + 41 THEN 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT + ( - 70 ) * ( - 23 ) + + CASE + MAX ( + 7 ) WHEN - 83 * 48 + AVG ( ALL 83 ) + 41 THEN 82 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT ALL + 16 DIV + SUM( 95 ) - + - 23 - - + 6 - 7 * - 31 - 73 - + ( + - COUNT( - 97 ) ) col2
----
174

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + 16 / + SUM ( 95 ) - + - 23 - - + 6 - 7 * - 31 - 73 - + ( + - COUNT ( - 97 ) ) col2
----
174

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

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

query I rowsort
SELECT 81 * - 76 + + - NULLIF ( + COALESCE ( - 90, - 71 ), 23 / 4 ) AS col1
----
-6066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT DISTINCT + - CAST( + - COALESCE ( + ( + COUNT( * ) ), + ( + - 1 ) - - 80 - + + 31 * 72 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT + - CAST ( + - COALESCE ( + ( + COUNT ( * ) ), + ( + - 1 ) - - 80 - + + 31 * 72 ) AS INTEGER )
----
1

query II rowsort
SELECT ALL + - 61 AS col1, 46 AS col1
----
-61
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL - COUNT( * ) * + - ( + COUNT( * ) ) + + 71 + + 88 * - 88 * 10
----
-77368

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - COUNT ( * ) * + - ( + COUNT ( * ) ) + + 71 + + 88 * - 88 * 10
----
-77368

query I rowsort
SELECT DISTINCT + ( - NULLIF ( 55, - 9 ) ) AS col2
----
-55

query I rowsort
SELECT - 76 * - 60 + - - ( ( 9 ) ) col0
----
4569

query I rowsort
SELECT DISTINCT - 93 * - 40 AS col1
----
3720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1060
SELECT - COALESCE ( + - 14, + COUNT( * ) DIV + 64 + - ( + 87 ) + - COUNT( * ) + + 8 * 96, - - 59, CASE + 9 WHEN 3 - - 32 THEN NULL WHEN + 81 + - 37 * 45 THEN 97 WHEN + 73 + 17 DIV + COALESCE ( - MIN( 40 ) * 65, + 85 * 78 ) THEN NULL END ) + + 37 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1060
SELECT - COALESCE ( + - 14, + COUNT ( * ) / + 64 + - ( + 87 ) + - COUNT ( * ) + + 8 * 96, - - 59, CASE + 9 WHEN 3 - - 32 THEN NULL WHEN + 81 + - 37 * 45 THEN 97 WHEN + 73 + 17 / + COALESCE ( - MIN ( 40 ) * 65, + 85 * 78 ) THEN NULL END ) + + 37 AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT + + 54 DIV - 43 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1061
SELECT + + 54 / - 43 AS col0
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1063
SELECT + COUNT( * ) + - CASE - 76 WHEN - 92 THEN 8 WHEN 72 THEN NULL ELSE + - 37 END * + + CAST( NULL AS SIGNED ) * 63 + AVG ( 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT + COUNT ( * ) + - CASE - 76 WHEN - 92 THEN 8 WHEN 72 THEN NULL ELSE + - 37 END * + + CAST ( NULL AS INTEGER ) * 63 + AVG ( 41 )
----
NULL

query I rowsort
SELECT DISTINCT - ( 27 ) * 17 + - + ( 73 ) + - + 18
----
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT DISTINCT + 42 * - - 20 * + - 68 + 83 DIV - - 48 AS col2
----
-57119

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + 42 * - - 20 * + - 68 + 83 / - - 48 AS col2
----
-57119

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

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

query II rowsort
SELECT - NULLIF ( 34, - + 89 * + - 18 + - 21 * + + 4 ) AS col0, + 71 - - 57
----
-34
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT + 98 + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-1068
SELECT + 98 + COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT SUM( DISTINCT - - 84 ), + 72 AS col0
----
84
72

skipif mysql # not compatible
query II rowsort label-1069
SELECT SUM ( DISTINCT - - 84 ), + 72 AS col0
----
84
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT - 71 AS col2, - 73 + COUNT( * ) AS col2
----
-71
-72

skipif mysql # not compatible
query II rowsort label-1070
SELECT - 71 AS col2, - 73 + COUNT ( * ) AS col2
----
-71
-72

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1072
SELECT ALL + 48 + CAST( + AVG ( DISTINCT + 80 ) AS SIGNED ) * - - 15 / CAST( NULL AS DECIMAL ) * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL + 48 + CAST ( + AVG ( DISTINCT + 80 ) AS INTEGER ) * - - 15 / CAST ( NULL AS REAL ) * - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1073
SELECT - CAST( + + COUNT( * ) AS SIGNED ) col2, - SUM( + - 34 )
----
-1
34

skipif mysql # not compatible
query II rowsort label-1073
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) col2, - SUM ( + - 34 )
----
-1
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT 91 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT 91 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1075
SELECT DISTINCT 50 + CAST( - 17 AS SIGNED ) + - - 38 * - + 32
----
-1183

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT 50 + CAST ( - 17 AS INTEGER ) + - - 38 * - + 32
----
-1183

query II rowsort
SELECT ALL 26 + - 46 AS col0, + ( + 69 ) - - 34 col0
----
-20
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL MIN( - 4 ) - + ( COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL MIN ( - 4 ) - + ( COUNT ( * ) )
----
-5

query I rowsort
SELECT DISTINCT NULLIF ( - - 17, 21 ) col0
----
17

query I rowsort
SELECT ALL + 3 - 99 AS col1
----
-96

query II rowsort
SELECT - - 45 + + + 9 AS col2, + 84 AS col0
----
54
84

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

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

query I rowsort
SELECT - + 71 + 96 - + 33 AS col2
----
-8

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

query I rowsort
SELECT - - 96 + 83 + - 64 + + 57 * - NULLIF ( 33, - 74 ) - + - ( - - ( 57 ) ) - 35 * 57
----
-3704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1085
SELECT - 79 * + 83 AS col2, SUM( DISTINCT + 2 ) DIV 66 + - 71 + - - 60
----
-6557
-11

skipif mysql # not compatible
query II rowsort label-1085
SELECT - 79 * + 83 AS col2, SUM ( DISTINCT + 2 ) / 66 + - 71 + - - 60
----
-6557
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT - ( + 70 ) + - + SUM( DISTINCT 24 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-1087
SELECT - ( + 70 ) + - + SUM ( DISTINCT 24 ) AS col0
----
-94

query II rowsort
SELECT 26 col0, + 86
----
26
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1089
SELECT DISTINCT + SUM( ALL - 60 ) DIV + 75 * 14
----
0

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT + SUM ( ALL - 60 ) / + 75 * 14
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT ALL - 68 AS col1, + 57 * 28 * + - COUNT( * )
----
-68
-1596

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL - 68 AS col1, + 57 * 28 * + - COUNT ( * )
----
-68
-1596

onlyif mysql # aggregate syntax: 
query II rowsort label-1091
SELECT ALL - 27 AS col1, + 27 - COUNT( * ) * COUNT( * ) + CASE + AVG ( ALL 23 ) WHEN COUNT( * ) THEN 35 WHEN + + COUNT( * ) + + COUNT( * ) THEN NULL ELSE + COUNT( - 79 ) END AS col0
----
-27
27

skipif mysql # not compatible
query II rowsort label-1091
SELECT ALL - 27 AS col1, + 27 - COUNT ( * ) * COUNT ( * ) + CASE + AVG ( ALL 23 ) WHEN COUNT ( * ) THEN 35 WHEN + + COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE + COUNT ( - 79 ) END AS col0
----
-27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT ALL - 14 AS col0, - SUM( DISTINCT - ( + + 35 ) ) AS col1
----
-14
35

skipif mysql # not compatible
query II rowsort label-1092
SELECT ALL - 14 AS col0, - SUM ( DISTINCT - ( + + 35 ) ) AS col1
----
-14
35

query I rowsort
SELECT DISTINCT - 97 * + 51
----
-4947

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT + + 50 AS col1, CASE - 14 WHEN + 38 + COUNT( * ) THEN 71 WHEN + COUNT( * ) THEN - + ( - AVG ( DISTINCT + - 53 ) ) ELSE NULL END AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1095
SELECT + + 50 AS col1, CASE - 14 WHEN + 38 + COUNT ( * ) THEN 71 WHEN + COUNT ( * ) THEN - + ( - AVG ( DISTINCT + - 53 ) ) ELSE NULL END AS col2
----
50
NULL

query I rowsort
SELECT ( + 93 ) * - 61 / + - CASE + - 60 WHEN + + 47 THEN - 14 WHEN + - 35 THEN - - 65 END
----
NULL

query I rowsort
SELECT - 36 * + - 50 + + + 85
----
1885

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 65, - 69 ) AS col2
----
65

query I rowsort
SELECT ALL - + CASE - + CASE + 66 WHEN - ( - - 81 ) / 9 * + - 30 * + + 38 THEN - 12 ELSE NULL END WHEN 20 THEN NULL WHEN + + 30 THEN 53 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT DISTINCT 46 + - 59 DIV 3 * + + 72 AS col0
----
-1322

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT 46 + - 59 / 3 * + + 72 AS col0
----
-1322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1102
SELECT DISTINCT + 24 DIV + MAX( ALL + + 15 )
----
1

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + 24 / + MAX ( ALL + + 15 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1103
SELECT ALL - 69 + - - CAST( + ( 37 ) AS SIGNED ) DIV + 54
----
-69

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - 69 + - - CAST ( + ( 37 ) AS INTEGER ) / + 54
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT COUNT( * ) * + 88 + + + 40 * + + COUNT( * ) - - COUNT( * ) * - 58 DIV - 30 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-1104
SELECT COUNT ( * ) * + 88 + + + 40 * + + COUNT ( * ) - - COUNT ( * ) * - 58 / - 30 AS col1
----
129

query I rowsort
SELECT 97 + + 16 * + + 25
----
497

query I rowsort
SELECT ALL 45 + + + 68 AS col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1107
SELECT MIN( - NULLIF ( - + CAST( NULL AS DECIMAL ), + 32 ) ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1107
SELECT MIN ( - NULLIF ( - + CAST ( NULL AS REAL ), + 32 ) ) * - 94
----
NULL

query I rowsort
SELECT DISTINCT 50 - - 96
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT NULLIF ( COUNT( * ), COUNT( * ) * - + 21 - 52 ) - 23 * 21
----
-482

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT NULLIF ( COUNT ( * ), COUNT ( * ) * - + 21 - 52 ) - 23 * 21
----
-482

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT CASE - 23 WHEN + 69 + + 70 THEN NULL WHEN + COUNT( DISTINCT CASE 30 WHEN + 86 THEN NULL WHEN + 83 THEN + + 94 + - 97 END ) THEN - 69 * 9 + + 52 * 49 END + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT CASE - 23 WHEN + 69 + + 70 THEN NULL WHEN + COUNT ( DISTINCT CASE 30 WHEN + 86 THEN NULL WHEN + 83 THEN + + 94 + - 97 END ) THEN - 69 * 9 + + 52 * 49 END + + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT CASE - 32 WHEN + - 39 * + - COUNT( * ) / - 4 THEN 18 WHEN + 43 THEN NULL END - + + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT CASE - 32 WHEN + - 39 * + - COUNT ( * ) / - 4 THEN 18 WHEN + 43 THEN NULL END - + + 72 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT ALL CASE 66 WHEN - COUNT( * ) * + - 15 / - - 31 + - 33 / 3 THEN 27 WHEN + - 90 THEN - 5 ELSE COUNT( * ) * 94 * 54 + + CAST( 63 AS SIGNED ) * 91 - - 63 END * ( 75 )
----
815400

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL CASE 66 WHEN - COUNT ( * ) * + - 15 / - - 31 + - 33 / 3 THEN 27 WHEN + - 90 THEN - 5 ELSE COUNT ( * ) * 94 * 54 + + CAST ( 63 AS INTEGER ) * 91 - - 63 END * ( 75 )
----
815400

query II rowsort
SELECT DISTINCT - 3 * 50, 20 AS col1
----
-150
20

query I rowsort
SELECT 62 * + - 10 * - 91
----
56420

query I rowsort
SELECT ALL - 59 * + + 8 + + 17
----
-455

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT 73 + - + 90 + + SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT 73 + - + 90 + + SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1119
SELECT - 26 - + ( + - 61 ) DIV CASE 70 WHEN COUNT( * ) THEN - + CASE - - 56 WHEN CAST( 1 AS SIGNED ) DIV - + 26 + + 31 + COUNT( * ) THEN NULL ELSE + 19 * 35 + - AVG ( 6 ) END + - 78 WHEN ( - 98 ) * + 27 + 91 * 77 THEN NULL ELSE + 20 - + 40 END AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1119
SELECT - 26 - + ( + - 61 ) / CASE 70 WHEN COUNT ( * ) THEN - + CASE - - 56 WHEN CAST ( 1 AS INTEGER ) / - + 26 + + 31 + COUNT ( * ) THEN NULL ELSE + 19 * 35 + - AVG ( 6 ) END + - 78 WHEN ( - 98 ) * + 27 + 91 * 77 THEN NULL ELSE + 20 - + 40 END AS col2
----
-29

query II rowsort
SELECT ALL + ( + 64 ) AS col0, + 87 AS col2
----
64
87

query I rowsort
SELECT 19 + - - 77 + - 77
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT - + 93 * + 28 + + CASE + 46 WHEN - + NULLIF ( + CASE + 68 WHEN ( NULLIF ( 60, 3 ) ) THEN NULL WHEN - - 4 THEN + 11 END, - 25 ) THEN NULL ELSE 17 END * - COALESCE ( COALESCE ( 7, 67 + 57 ), COUNT( * ), - 91 ) AS col1
----
-2723

skipif mysql # not compatible
query I rowsort label-1122
SELECT - + 93 * + 28 + + CASE + 46 WHEN - + NULLIF ( + CASE + 68 WHEN ( NULLIF ( 60, 3 ) ) THEN NULL WHEN - - 4 THEN + 11 END, - 25 ) THEN NULL ELSE 17 END * - COALESCE ( COALESCE ( 7, 67 + 57 ), COUNT ( * ), - 91 ) AS col1
----
-2723

query I rowsort
SELECT 8 * - 48 + + 82 * - - 57
----
4290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1124
SELECT ALL + 43 + - - 85 + + COUNT( * ) DIV 91 + + 94
----
222

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL + 43 + - - 85 + + COUNT ( * ) / 91 + + 94
----
222

query I rowsort
SELECT COALESCE ( + 98, - - 60 * - - 55 )
----
98

query I rowsort
SELECT 11 * + 0 * 88
----
0

query I rowsort
SELECT ALL + 93 + + 54 col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL + - CAST( - + 92 AS SIGNED ) + + - 35 col0
----
57

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + - CAST ( - + 92 AS INTEGER ) + + - 35 col0
----
57

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

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

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

query I rowsort
SELECT DISTINCT - 37 * + 68 AS col0
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL + 83 + - 48 * - COUNT( * ) + - ( - 39 )
----
170

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + 83 + - 48 * - COUNT ( * ) + - ( - 39 )
----
170

query I rowsort
SELECT ALL + 20 * - 49 col0
----
-980

query I rowsort
SELECT 55 * + - 7 AS col0
----
-385

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1135
SELECT + 58 AS col1, SUM( 3 ) DIV 42 + - 26 AS col2
----
58
-26

skipif mysql # not compatible
query II rowsort label-1135
SELECT + 58 AS col1, SUM ( 3 ) / 42 + - 26 AS col2
----
58
-26

query II rowsort
SELECT 24, 13 AS col1
----
24
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT ALL COUNT( * ) DIV + + 90 * - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL COUNT ( * ) / + + 90 * - 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1139
SELECT DISTINCT - ( COALESCE ( + + 42, 55, COUNT( * ) + - + 32 ) ) col1, + 82 AS col2
----
-42
82

skipif mysql # not compatible
query II rowsort label-1139
SELECT DISTINCT - ( COALESCE ( + + 42, 55, COUNT ( * ) + - + 32 ) ) col1, + 82 AS col2
----
-42
82

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

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) * - + 3 * 89 AS col1
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-1141
SELECT ALL + 75 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL + 75 / 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT 77 + CASE 94 WHEN + - 1 * + COUNT( DISTINCT 90 ) / - 65 / 9 THEN NULL WHEN - COUNT( + ( - CASE + 57 WHEN - - 15 - - 5 THEN + 53 WHEN - 34 * 42 THEN NULL END ) ) THEN - 23 * - 2 WHEN 54 THEN 12 * 20 - MAX( - 36 ) / 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT 77 + CASE 94 WHEN + - 1 * + COUNT ( DISTINCT 90 ) / - 65 / 9 THEN NULL WHEN - COUNT ( + ( - CASE + 57 WHEN - - 15 - - 5 THEN + 53 WHEN - 34 * 42 THEN NULL END ) ) THEN - 23 * - 2 WHEN 54 THEN 12 * 20 - MAX ( - 36 ) / 32 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT CAST( + 2 AS SIGNED ) * - COALESCE ( 67, + 52 - + 8, - 56 * - - ( 64 ) * + + 98 ) - + - 15 + COALESCE ( + 88, 90 * - 28 )
----
-31

skipif mysql # not compatible
query I rowsort label-1144
SELECT CAST ( + 2 AS INTEGER ) * - COALESCE ( 67, + 52 - + 8, - 56 * - - ( 64 ) * + + 98 ) - + - 15 + COALESCE ( + 88, 90 * - 28 )
----
-31

query II rowsort
SELECT DISTINCT 36 AS col1, 67
----
36
67

query II rowsort
SELECT ( - 31 ) * 95 * - - 34 AS col1, 47
----
-100130
47

query I rowsort
SELECT DISTINCT - 63 * + 79
----
-4977

onlyif mysql # DIV for integer division: 
query I rowsort label-1148
SELECT ALL - 99 DIV 91
----
-1

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL - 99 / 91
----
-1

query II rowsort
SELECT ALL 69, + 85 AS col2
----
69
85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT DISTINCT - 36 col1, - 23 * MIN( DISTINCT - + 47 )
----
-36
1081

skipif mysql # not compatible
query II rowsort label-1151
SELECT DISTINCT - 36 col1, - 23 * MIN ( DISTINCT - + 47 )
----
-36
1081

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

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT + + 75 - 63 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1154
SELECT - + 0, - MIN( - - CAST( NULL AS SIGNED ) ) + + - COUNT( * ) * - COUNT( * ) + 8 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1154
SELECT - + 0, - MIN ( - - CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) * - COUNT ( * ) + 8 AS col2
----
0
NULL

query I rowsort
SELECT + 54 * + - 30
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL - COUNT( + - 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - COUNT ( + - 54 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT + CAST( NULL AS SIGNED ) + + 98 - - 33 / - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT + CAST ( NULL AS INTEGER ) + + 98 - - 33 / - 24 AS col2
----
NULL

query I rowsort
SELECT - - 64 AS col2
----
64

query II rowsort
SELECT 42, + 91 col1
----
42
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL + MIN( 72 ) * - 33 * 76 + - - 7 + 26 * 28 AS col1
----
-179841

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + MIN ( 72 ) * - 33 * 76 + - - 7 + 26 * 28 AS col1
----
-179841

query II rowsort
SELECT - 16 AS col1, 79 * - - 76 AS col2
----
-16
6004

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1162
SELECT ALL - - CASE 67 WHEN CAST( NULL AS SIGNED ) THEN - - ( + 48 ) ELSE - 4 * - 16 - 59 + - - 45 DIV 30 + - 65 + + 75 END * - - 42 + 79 AS col1
----
751

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - - CASE 67 WHEN CAST ( NULL AS INTEGER ) THEN - - ( + 48 ) ELSE - 4 * - 16 - 59 + - - 45 / 30 + - 65 + + 75 END * - - 42 + 79 AS col1
----
751

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL COUNT( * ) * 64 * + 85 + 12
----
5452

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL COUNT ( * ) * 64 * + 85 + 12
----
5452

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

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

query I rowsort
SELECT NULLIF ( - 86, - 73 )
----
-86

query I rowsort
SELECT + 75 * + 88 col1
----
6600

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - 40 * - + MIN( - - 58 ) AS col1
----
2320

skipif mysql # not compatible
query I rowsort label-1168
SELECT - 40 * - + MIN ( - - 58 ) AS col1
----
2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1169
SELECT + ( + COUNT( * ) ) AS col0, - CAST( 91 AS SIGNED ) + + 16
----
1
-75

skipif mysql # not compatible
query II rowsort label-1169
SELECT + ( + COUNT ( * ) ) AS col0, - CAST ( 91 AS INTEGER ) + + 16
----
1
-75

query I rowsort
SELECT ALL - 52 * - - 99 AS col2
----
-5148

query I rowsort
SELECT ALL + CASE AVG ( 95 ) WHEN + - 38 THEN 14 END * + 89 * + 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT DISTINCT + 79 * - 36 - 30 DIV - - 45 + + 98
----
-2746

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT + 79 * - 36 - 30 / - - 45 + + 98
----
-2746

query I rowsort
SELECT ALL + 80 * - 75 AS col0
----
-6000

query I rowsort
SELECT DISTINCT + ( 56 ) AS col0
----
56

query I rowsort
SELECT ALL + 89 * 74
----
6586

query I rowsort
SELECT + ( 77 ) + 16 - + 74 col1
----
19

query I rowsort
SELECT - 74 * 76 * - + 39
----
219336

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

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

query I rowsort
SELECT - 38 * 81 AS col0
----
-3078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1180
SELECT ALL ( - + NULLIF ( + 98, - 48 * - 8 ) ) AS col2, COUNT( * ) * - - 99 * + CASE 18 WHEN + CAST( NULL AS SIGNED ) + - 86 / + 62 * - AVG ( DISTINCT 36 ) THEN + ( 10 ) END * + COUNT( * ) AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-1180
SELECT ALL ( - + NULLIF ( + 98, - 48 * - 8 ) ) AS col2, COUNT ( * ) * - - 99 * + CASE 18 WHEN + CAST ( NULL AS INTEGER ) + - 86 / + 62 * - AVG ( DISTINCT 36 ) THEN + ( 10 ) END * + COUNT ( * ) AS col0
----
-98
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1182
SELECT ALL + MAX( ALL 95 ) AS col1, + CASE + - 75 WHEN + CAST( NULL AS SIGNED ) THEN AVG ( ALL - 12 ) END / + 68 + + 39 col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1182
SELECT ALL + MAX ( ALL 95 ) AS col1, + CASE + - 75 WHEN + CAST ( NULL AS INTEGER ) THEN AVG ( ALL - 12 ) END / + 68 + + 39 col2
----
95
NULL

query I rowsort
SELECT ALL 2 * - - 71 * + 17 + + ( + 90 ) AS col1
----
2504

query I rowsort
SELECT ALL + - 96 + 55 - 77 AS col2
----
-118

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT DISTINCT SUM( ALL - 25 ) + 68
----
43

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT SUM ( ALL - 25 ) + 68
----
43

query I rowsort
SELECT - 61 - + CASE ( - 76 ) WHEN - 29 THEN NULL ELSE - 97 * - 12 END AS col0
----
-1225

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

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

query I rowsort
SELECT ALL - 27 + 88
----
61

query I rowsort
SELECT - 75 - 69 AS col2
----
-144

query I rowsort
SELECT ALL - 16 + + - 21 - - + ( 93 ) + + + 28 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1193
SELECT ALL + 57 * + CAST( - 55 AS SIGNED ) / 43 - + - CASE - 38 WHEN - 49 * NULLIF ( 44, + - 59 ) THEN - 15 * 35 + + 86 + + - CAST( NULL AS SIGNED ) END - + 79 / + COUNT( - 20 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL + 57 * + CAST ( - 55 AS INTEGER ) / 43 - + - CASE - 38 WHEN - 49 * NULLIF ( 44, + - 59 ) THEN - 15 * 35 + + 86 + + - CAST ( NULL AS INTEGER ) END - + 79 / + COUNT ( - 20 ) col0
----
NULL

query I rowsort
SELECT + 88 * 10
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT ALL 32 DIV - 54 * COALESCE ( 79, - COUNT( - + 84 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL 32 / - 54 * COALESCE ( 79, - COUNT ( - + 84 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL - 66 + + 96 + NULLIF ( - COUNT( * ), + 50 ) + + 19 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - 66 + + 96 + NULLIF ( - COUNT ( * ), + 50 ) + + 19 AS col2
----
48

query II rowsort
SELECT + + 55 * + 18 AS col2, - 54 AS col2
----
990
-54

query I rowsort
SELECT - + 86 + + ( + + 96 ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1199
SELECT + - 80 - - CAST( + NULLIF ( + + ( 71 ), NULLIF ( - + CASE 71 WHEN + - 65 + - 87 THEN - 70 - 59 END, + 4 * 99 + + 25 / 19 ) ) AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1199
SELECT + - 80 - - CAST ( + NULLIF ( + + ( 71 ), NULLIF ( - + CASE 71 WHEN + - 65 + - 87 THEN - 70 - 59 END, + 4 * 99 + + 25 / 19 ) ) AS INTEGER ) AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT ALL SUM( - 9 ) DIV + NULLIF ( - 68, - 89 ) - 47
----
-47

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL SUM ( - 9 ) / + NULLIF ( - 68, - 89 ) - 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1201
SELECT + 62 * + + 38 + - 12 + NULLIF ( - COUNT( * ), + 80 ) DIV 41 AS col1
----
2344

skipif mysql # not compatible
query I rowsort label-1201
SELECT + 62 * + + 38 + - 12 + NULLIF ( - COUNT ( * ), + 80 ) / 41 AS col1
----
2344

query I rowsort
SELECT + ( - 72 ) * + ( - - 88 )
----
-6336

query I rowsort
SELECT DISTINCT 63 * - 5 AS col0
----
-315

query I rowsort
SELECT ALL 93 * + - 48 * + 85
----
-379440

query I rowsort
SELECT + 4 + + 55 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1206
SELECT DISTINCT + 29 AS col1, 90 + + CAST( 51 AS SIGNED ) * - + 28 * + - 71 AS col0
----
29
101478

skipif mysql # not compatible
query II rowsort label-1206
SELECT DISTINCT + 29 AS col1, 90 + + CAST ( 51 AS INTEGER ) * - + 28 * + - 71 AS col0
----
29
101478

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

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

query I rowsort
SELECT - COALESCE ( + + 65, + ( + 47 ) + 2 ) * - 59 + - 81
----
3754

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT 94 * + CASE - + 27 WHEN 62 THEN NULL ELSE + 43 * - 73 * SUM( ALL - 78 ) END + 4 + + + 24 + + 29 * 49 AS col0
----
23016597

skipif mysql # not compatible
query I rowsort label-1209
SELECT 94 * + CASE - + 27 WHEN 62 THEN NULL ELSE + 43 * - 73 * SUM ( ALL - 78 ) END + 4 + + + 24 + + 29 * 49 AS col0
----
23016597

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT - 74 DIV + + 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1210
SELECT - 74 / + + 66 AS col0
----
-1

query I rowsort
SELECT + 86 * - 22
----
-1892

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT - 67 DIV - COALESCE ( - 25, + 14 ) + + - 77
----
-79

skipif mysql # not compatible
query I rowsort label-1212
SELECT - 67 / - COALESCE ( - 25, + 14 ) + + - 77
----
-79

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

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

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

query I rowsort
SELECT + 21 * + - 7 col2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL - COUNT( * ) * MIN( DISTINCT + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL - COUNT ( * ) * MIN ( DISTINCT + 71 ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1217
SELECT DISTINCT - COALESCE ( + - CASE 18 WHEN + 8 THEN NULL WHEN + CASE MIN( DISTINCT - - 54 ) WHEN + COUNT( * ) * 40 * + CAST( NULL AS SIGNED ) + - COALESCE ( 99, - + MIN( - 92 ) ) * - 38 * 65 THEN + 21 WHEN + COUNT( * ) * + 67 THEN - COUNT( * ) + + 13 WHEN - 59 THEN + ( ( 52 ) ) ELSE NULL END THEN - 37 * 30 WHEN 36 THEN NULLIF ( + 50, - 98 DIV 65 ) * 34 ELSE 40 * 68 END, NULLIF ( - 84, - CASE - COUNT( * ) WHEN - AVG ( ALL 26 ) * COUNT( * ) + - CAST( NULL AS DECIMAL ) THEN 79 * - SUM( + 53 ) END ) DIV - 62, ( 15 ) ) * 83
----
225760

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT - COALESCE ( + - CASE 18 WHEN + 8 THEN NULL WHEN + CASE MIN ( DISTINCT - - 54 ) WHEN + COUNT ( * ) * 40 * + CAST ( NULL AS INTEGER ) + - COALESCE ( 99, - + MIN ( - 92 ) ) * - 38 * 65 THEN + 21 WHEN + COUNT ( * ) * + 67 THEN - COUNT ( * ) + + 13 WHEN - 59 THEN + ( ( 52 ) ) ELSE NULL END THEN - 37 * 30 WHEN 36 THEN NULLIF ( + 50, - 98 / 65 ) * 34 ELSE 40 * 68 END, NULLIF ( - 84, - CASE - COUNT ( * ) WHEN - AVG ( ALL 26 ) * COUNT ( * ) + - CAST ( NULL AS REAL ) THEN 79 * - SUM ( + 53 ) END ) / - 62, ( 15 ) ) * 83
----
225760

query I rowsort
SELECT DISTINCT 79 + - 72 AS col1
----
7

query I rowsort
SELECT 25 * + + 37 AS col2
----
925

query I rowsort
SELECT ALL 31 + + + 90
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT CAST( + 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1221
SELECT CAST ( + 36 AS INTEGER ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT DISTINCT - MIN( - 57 ) + 69 + - ( - - 55 ) + - 36
----
35

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT - MIN ( - 57 ) + 69 + - ( - - 55 ) + - 36
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1223
SELECT - 73 * - 56 + - - 98 - - 22 + 40 + - - 15 - + + 1 + + + 71 * - + COUNT( * ) + - 79 + + 34 + 32 * + 97 * 16 * + + 57 - - CAST( + NULLIF ( 81, - COALESCE ( 47, - 2 * 2 ) - 3 * COALESCE ( - 60, - 35 ) ) AS SIGNED ) * 80 * + 12 AS col1
----
2912754

skipif mysql # not compatible
query I rowsort label-1223
SELECT - 73 * - 56 + - - 98 - - 22 + 40 + - - 15 - + + 1 + + + 71 * - + COUNT ( * ) + - 79 + + 34 + 32 * + 97 * 16 * + + 57 - - CAST ( + NULLIF ( 81, - COALESCE ( 47, - 2 * 2 ) - 3 * COALESCE ( - 60, - 35 ) ) AS INTEGER ) * 80 * + 12 AS col1
----
2912754

query I rowsort
SELECT - 6 * COALESCE ( + 54, - 48 ) + 7
----
-317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1225
SELECT ALL - COALESCE ( - + 8, - + 97 ) + 95 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - COALESCE ( - + 8, - + 97 ) + 95 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 48 + + 61
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1227
SELECT DISTINCT + + 64 + + + 55 + + + 59 DIV - COUNT( - 45 ) + + + NULLIF ( + 0, + + 55 ), - 48 - + - MAX( ALL + 27 ) AS col2
----
60
-21

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT + + 64 + + + 55 + + + 59 / - COUNT ( - 45 ) + + + NULLIF ( + 0, + + 55 ), - 48 - + - MAX ( ALL + 27 ) AS col2
----
60
-21

query I rowsort
SELECT ALL + + CASE + 80 WHEN - - 26 THEN + + ( + 8 ) ELSE NULL END + + 16 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT - ( 99 ) - + NULLIF ( 87, CAST( NULL AS SIGNED ) ) + + 79 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - ( 99 ) - + NULLIF ( 87, CAST ( NULL AS INTEGER ) ) + + 79 + + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT - + 76 * + COUNT( * ) * - 73 + - + 79 AS col0
----
5469

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - + 76 * + COUNT ( * ) * - 73 + - + 79 AS col0
----
5469

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

query I rowsort
SELECT + 22 + - 58 - - - 44 * + ( 64 ) + + 81
----
-2771

query I rowsort
SELECT ALL - 71 * - 92
----
6532

query I rowsort
SELECT - 36 + + 77
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT ALL - 52 * CAST( + - 78 AS SIGNED )
----
4056

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - 52 * CAST ( + - 78 AS INTEGER )
----
4056

query I rowsort
SELECT DISTINCT - 79 * + 55 AS col2
----
-4345

query I rowsort
SELECT DISTINCT 81 - 76 AS col2
----
5

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL - 61 * COUNT ( * )
----
-61

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

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL COUNT ( * ) / - 91 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT COUNT ( * ) / + 93
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( + + 73, + NULLIF ( 62, - - ( + 49 ) ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT COUNT( * ) * + SUM( DISTINCT + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-1243
SELECT COUNT ( * ) * + SUM ( DISTINCT + 93 )
----
93

query II rowsort
SELECT ALL - 54, - 18 AS col1
----
-54
-18

query I rowsort
SELECT 96 * - 2 * ( + 23 ) * + 82
----
-362112

query I rowsort
SELECT 32 * + 32 * + 97
----
99328

query I rowsort
SELECT DISTINCT 74 + - 19 AS col0
----
55

query I rowsort
SELECT ALL - ( 71 ) AS col1
----
-71

query II rowsort
SELECT ALL 9 + + 23 AS col2, 64
----
32
64

query I rowsort
SELECT 15 - 23 + + 56
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT ALL - 53 * 24 DIV + + 79
----
-16

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - 53 * 24 / + + 79
----
-16

query I rowsort
SELECT ALL 26 * - 47
----
-1222

query I rowsort
SELECT 22 * 20 AS col0
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT 38 + + - COUNT( * ) * + ( + 79 ) - + + 67
----
-108

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT 38 + + - COUNT ( * ) * + ( + 79 ) - + + 67
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1255
SELECT DISTINCT COUNT( + NULLIF ( + 50, - CAST( - 1 AS DECIMAL ) / + + ( - 15 ) + 33 - 34 ) ) + - 63 col0
----
-62

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT COUNT ( + NULLIF ( + 50, - CAST ( - 1 AS REAL ) / + + ( - 15 ) + 33 - 34 ) ) + - 63 col0
----
-62

query I rowsort
SELECT ALL 73 + 73
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT - 94 * - 41 * + 34 * MAX( NULLIF ( - - NULLIF ( - - 37, + 90 ), CAST( + ( - 51 ) AS SIGNED ) ) ) AS col1
----
4848332

skipif mysql # not compatible
query I rowsort label-1257
SELECT - 94 * - 41 * + 34 * MAX ( NULLIF ( - - NULLIF ( - - 37, + 90 ), CAST ( + ( - 51 ) AS INTEGER ) ) ) AS col1
----
4848332

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

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

query I rowsort
SELECT - 77 + 33
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1260
SELECT 52 - - 51 DIV - 43 + - 63 DIV MIN( ALL - + 9 )
----
58

skipif mysql # not compatible
query I rowsort label-1260
SELECT 52 - - 51 / - 43 + - 63 / MIN ( ALL - + 9 )
----
58

query I rowsort
SELECT 83 + - - 98 + + + 68 + 91 + - 34 * - 1 * - 51
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL 60 + + - COUNT( ALL 47 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL 60 + + - COUNT ( ALL 47 ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1263
SELECT 24, + MIN( 31 ) DIV 67 + 97 * - - 34 * + 52 + + 11 * - - 47 AS col2
----
24
172013

skipif mysql # not compatible
query II rowsort label-1263
SELECT 24, + MIN ( 31 ) / 67 + 97 * - - 34 * + 52 + + 11 * - - 47 AS col2
----
24
172013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1264
SELECT ALL - - 4 AS col2, + COALESCE ( MAX( + 30 ), 56 + + 63, + SUM( ALL + + 85 ) * + 7 * CAST( + 72 AS SIGNED ) + + 75 - - COUNT( DISTINCT - + CASE - 87 WHEN 67 + + 63 * 0 THEN - 93 ELSE - COALESCE ( 27, ( 23 ) ) * - 54 END ) + + 79, 33 + - 59 ) DIV - CASE - 40 WHEN - 86 * - 47 THEN + 96 * + 82 ELSE 58 END AS col2
----
4
0

skipif mysql # not compatible
query II rowsort label-1264
SELECT ALL - - 4 AS col2, + COALESCE ( MAX ( + 30 ), 56 + + 63, + SUM ( ALL + + 85 ) * + 7 * CAST ( + 72 AS INTEGER ) + + 75 - - COUNT ( DISTINCT - + CASE - 87 WHEN 67 + + 63 * 0 THEN - 93 ELSE - COALESCE ( 27, ( 23 ) ) * - 54 END ) + + 79, 33 + - 59 ) / - CASE - 40 WHEN - 86 * - 47 THEN + 96 * + 82 ELSE 58 END AS col2
----
4
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1265
SELECT 32 + + MIN( - ( + 83 ) ) + 24 + + CAST( - - COUNT( * ) AS SIGNED ) * + + ( - 50 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT 32 + + MIN ( - ( + 83 ) ) + 24 + + CAST ( - - COUNT ( * ) AS INTEGER ) * + + ( - 50 ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + - 54 * - MAX( - 61 ) * 71 col0
----
-233874

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + - 54 * - MAX ( - 61 ) * 71 col0
----
-233874

query II rowsort
SELECT - 83 AS col1, 68
----
-83
68

query I rowsort
SELECT ALL + 99 - - 6 AS col0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT ALL - 35 * - + 47 DIV + CASE - 64 WHEN + 38 THEN 39 ELSE COUNT( * ) END AS col1
----
1645

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - 35 * - + 47 / + CASE - 64 WHEN + 38 THEN 39 ELSE COUNT ( * ) END AS col1
----
1645

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

skipif mysql # not compatible
query II rowsort label-1270
SELECT - + 8 AS col2, COUNT ( 2 )
----
-8
1

query I rowsort
SELECT NULLIF ( - 48, + ( 18 ) ) * + 86
----
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1272
SELECT 42 + + CAST( - 27 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-1272
SELECT 42 + + CAST ( - 27 AS INTEGER )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT - 93 DIV - 8 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1273
SELECT - 93 / - 8 AS col2
----
11

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

skipif mysql # not compatible
query I rowsort label-1274
SELECT COUNT ( * ) * + - 74 + + 3 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL - SUM( 49 ) * + 86 + - 47 - - 17
----
-4244

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - SUM ( 49 ) * + 86 + - 47 - - 17
----
-4244

query II rowsort
SELECT DISTINCT 62 AS col0, + ( - 93 ) AS col0
----
62
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + COUNT( * ) + + + 67 + 28 + + 34 AS col1, - 15
----
130
-15

skipif mysql # not compatible
query II rowsort label-1277
SELECT + COUNT ( * ) + + + 67 + 28 + + 34 AS col1, - 15
----
130
-15

query II rowsort
SELECT - 7, - 27 AS col2
----
-7
-27

query II rowsort
SELECT ALL 29, + 49 * ( 61 ) * 3 AS col2
----
29
8967

onlyif mysql # aggregate syntax: 
query II rowsort label-1280
SELECT DISTINCT - COUNT( * ), 65 + - 60 col1
----
-1
5

skipif mysql # not compatible
query II rowsort label-1280
SELECT DISTINCT - COUNT ( * ), 65 + - 60 col1
----
-1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL 33 * COALESCE ( 87, ( + 54 ), 22 + - 57 ) - 63 * 57 + - NULLIF ( + COUNT( * ), + 52 * + 74 ) AS col1
----
-721

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL 33 * COALESCE ( 87, ( + 54 ), 22 + - 57 ) - 63 * 57 + - NULLIF ( + COUNT ( * ), + 52 * + 74 ) AS col1
----
-721

query I rowsort
SELECT ALL - COALESCE ( 12, 16, - NULLIF ( - 80, - 70 / - 67 ) + 88 * + 54 ) * - 41 + - + 98 AS col1
----
394

query I rowsort
SELECT 0 * + + 38 AS col2
----
0

query I rowsort
SELECT ALL + ( 16 ) * + 5
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1285
SELECT DISTINCT MIN( - 30 ) AS col1, 68 * + - 14 AS col1
----
-30
-952

skipif mysql # not compatible
query II rowsort label-1285
SELECT DISTINCT MIN ( - 30 ) AS col1, 68 * + - 14 AS col1
----
-30
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT 16 - - COUNT( * ) + - 38 + + 11
----
-10

skipif mysql # not compatible
query I rowsort label-1286
SELECT 16 - - COUNT ( * ) + - 38 + + 11
----
-10

query II rowsort
SELECT ALL + 30 * - + 19 AS col0, ( - 48 )
----
-570
-48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1289
SELECT COALESCE ( CAST( NULL AS SIGNED ), - COALESCE ( - + CAST( NULL AS SIGNED ), - 3, - 9 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1289
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - COALESCE ( - + CAST ( NULL AS INTEGER ), - 3, - 9 ) )
----
3

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

skipif mysql # not compatible
query I rowsort label-1290
SELECT 30 / 84 + + ( - 43 ) * + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - 87 * - COUNT( * ) + MAX( 65 ) * + 65 + CASE + AVG ( DISTINCT - + 50 ) WHEN + 7 THEN NULL WHEN + 82 THEN 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - 87 * - COUNT ( * ) + MAX ( 65 ) * + 65 + CASE + AVG ( DISTINCT - + 50 ) WHEN + 7 THEN NULL WHEN + 82 THEN 41 END
----
NULL

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

query II rowsort
SELECT ALL + 87 * - 88 + + + 82 col1, 6 AS col0
----
-7574
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1294
SELECT - 91 + - SUM( DISTINCT - NULLIF ( - + ( - 85 ), - 47 ) ) * 18 AS col1, + 45 DIV - 51
----
1439
0

skipif mysql # not compatible
query II rowsort label-1294
SELECT - 91 + - SUM ( DISTINCT - NULLIF ( - + ( - 85 ), - 47 ) ) * 18 AS col1, + 45 / - 51
----
1439
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1295
SELECT - 79 * + COUNT( * ) * COUNT( * ), - 51 AS col0
----
-79
-51

skipif mysql # not compatible
query II rowsort label-1295
SELECT - 79 * + COUNT ( * ) * COUNT ( * ), - 51 AS col0
----
-79
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1296
SELECT - 55 * - MAX( DISTINCT - CAST( 21 AS SIGNED ) ) / - CAST( NULL AS DECIMAL ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT - 55 * - MAX ( DISTINCT - CAST ( 21 AS INTEGER ) ) / - CAST ( NULL AS REAL ) * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL + SUM( - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + SUM ( - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT + COALESCE ( + 92, + 82 + - 52 ) * 53 + + CASE - 66 WHEN 88 + - + NULLIF ( COUNT( * ), + - 23 / - CASE + 22 WHEN + - 71 THEN NULL ELSE - - 74 END + - 90 * + + 20 + 50 / + COALESCE ( - 51 * 88, + 52 / 85 ) ) + + NULLIF ( 12, 71 / 68 ) THEN 75 END + CASE 62 WHEN - 85 + + 1 THEN + ( 19 ) - - 2 WHEN - 84 / - COUNT( * ) THEN 93 ELSE NULL END / - 56 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT + COALESCE ( + 92, + 82 + - 52 ) * 53 + + CASE - 66 WHEN 88 + - + NULLIF ( COUNT ( * ), + - 23 / - CASE + 22 WHEN + - 71 THEN NULL ELSE - - 74 END + - 90 * + + 20 + 50 / + COALESCE ( - 51 * 88, + 52 / 85 ) ) + + NULLIF ( 12, 71 / 68 ) THEN 75 END + CASE 62 WHEN - 85 + + 1 THEN + ( 19 ) - - 2 WHEN - 84 / - COUNT ( * ) THEN 93 ELSE NULL END / - 56 + 70
----
NULL

query I rowsort
SELECT + + 51 col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1300
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 96 + 29 / - - COALESCE ( - + 4, + 46 + + 27 / 75 * 44 * + COUNT( * ) ) + 60 + 8 * 61 - + CAST( - 9 AS SIGNED ) + 72 + - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT - CAST ( NULL AS REAL ) * 96 + 29 / - - COALESCE ( - + 4, + 46 + + 27 / 75 * 44 * + COUNT ( * ) ) + 60 + 8 * 61 - + CAST ( - 9 AS INTEGER ) + 72 + - 25 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1301
SELECT + MIN ( - 10 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1302
SELECT ALL + CASE - + 86 WHEN + 61 + - MAX( - ( - - 71 ) ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END, - 4 AS col0
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-1302
SELECT ALL + CASE - + 86 WHEN + 61 + - MAX ( - ( - - 71 ) ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END, - 4 AS col0
----
NULL
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT + NULLIF ( - 70, 48 - - 60 + + CAST( NULL AS SIGNED ) - 59 )
----
-70

skipif mysql # not compatible
query I rowsort label-1303
SELECT + NULLIF ( - 70, 48 - - 60 + + CAST ( NULL AS INTEGER ) - 59 )
----
-70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT ALL + 43 * - + 53 + - NULLIF ( 21, 1 ) + + - 93 - + + 64 DIV - MAX( 14 ) + 58 AS col2
----
-2331

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + 43 * - + 53 + - NULLIF ( 21, 1 ) + + - 93 - + + 64 / - MAX ( 14 ) + 58 AS col2
----
-2331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1306
SELECT DISTINCT + COALESCE ( - + 85, - 9 * + 75 * ( + COUNT( * ) ) + - + 28 DIV - MAX( ALL + + 19 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT + COALESCE ( - + 85, - 9 * + 75 * ( + COUNT ( * ) ) + - + 28 / - MAX ( ALL + + 19 ) )
----
-85

query II rowsort
SELECT ALL 47 * 27 - - 20 * 88 * - 1 + - 21 - + 38 AS col1, - 7 col0
----
-550
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT + 12 - + 47 + + - 28 * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-1309
SELECT + 12 - + 47 + + - 28 * - COUNT ( * )
----
-7

query I rowsort
SELECT + ( + - 40 ) * + 89 col2
----
-3560

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + + 7 + COUNT( * ) col0
----
8

skipif mysql # not compatible
query I rowsort label-1311
SELECT + + 7 + COUNT ( * ) col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT + - 49 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-1312
SELECT + - 49 / + 85
----
0

query I rowsort
SELECT + - NULLIF ( - - 39, - - 39 ) + 32 AS col2
----
NULL

query I rowsort
SELECT + + 57 + - COALESCE ( - - 76, + 39 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT ALL 70 DIV COUNT( * ) * COUNT( * ) * + 62
----
4340

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL 70 / COUNT ( * ) * COUNT ( * ) * + 62
----
4340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT DISTINCT COUNT( * ) * - CASE 23 WHEN - - 51 THEN NULL WHEN - COUNT( * ) + + CAST( NULL AS SIGNED ) + + 18 + + 49 * COALESCE ( - + CAST( NULL AS SIGNED ), - NULLIF ( + 96, - 32 + - ( 0 ) ) + 47 ) + + COALESCE ( - 85, + 70 - - 57 ) * 34 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT COUNT ( * ) * - CASE 23 WHEN - - 51 THEN NULL WHEN - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 18 + + 49 * COALESCE ( - + CAST ( NULL AS INTEGER ), - NULLIF ( + 96, - 32 + - ( 0 ) ) + 47 ) + + COALESCE ( - 85, + 70 - - 57 ) * 34 THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1317
SELECT ALL 63 + + COALESCE ( + COUNT( * ), + + 85 * 66 * 97 + - 26 + - 55 + - 15 + + + 23 - SUM( ALL - - 12 ) * + + ( 5 ), + 23 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL 63 + + COALESCE ( + COUNT ( * ), + + 85 * 66 * 97 + - 26 + - 55 + - 15 + + + 23 - SUM ( ALL - - 12 ) * + + ( 5 ), + 23 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT - COALESCE ( - 34, COUNT( * ), + + 86 * 48 )
----
34

skipif mysql # not compatible
query I rowsort label-1318
SELECT - COALESCE ( - 34, COUNT ( * ), + + 86 * 48 )
----
34

query I rowsort
SELECT - 75 + + 0 + + 21 * - + 1 AS col2
----
-96

query I rowsort
SELECT - ( + NULLIF ( 92, 18 * - + 30 - + - 89 ) ) col2
----
-92

query I rowsort
SELECT - 51 + + - 67
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1322
SELECT ALL COUNT( * ) col1, 10 DIV + - 30
----
1
0

skipif mysql # not compatible
query II rowsort label-1322
SELECT ALL COUNT ( * ) col1, 10 / + - 30
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT + ( - + CASE 50 WHEN ( 33 ) * - ( + + 28 ) * + 2 - + 60 + - COUNT( * ) / - - COALESCE ( 9, + COUNT( * ) - 42 * - 49, + - 4 ) + + COUNT( * ) + - 56 THEN 77 END ) * 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT + ( - + CASE 50 WHEN ( 33 ) * - ( + + 28 ) * + 2 - + 60 + - COUNT ( * ) / - - COALESCE ( 9, + COUNT ( * ) - 42 * - 49, + - 4 ) + + COUNT ( * ) + - 56 THEN 77 END ) * 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT - 27 + 42 * + + 15 + - MIN( 85 ) + + + 57 * + - 6 + - 91
----
85

skipif mysql # not compatible
query I rowsort label-1324
SELECT - 27 + 42 * + + 15 + - MIN ( 85 ) + + + 57 * + - 6 + - 91
----
85

query I rowsort
SELECT ALL + 26 + - - 2
----
28

query II rowsort
SELECT 95 AS col2, + 19 * 80
----
95
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL 4 + 72 + + CASE - - 20 WHEN 79 / COUNT( * ) + 37 + + ( - 34 ) + + 34 * - - 52 * MAX( 62 ) THEN + - 62 * 81 ELSE + 97 * + 32 - - - COALESCE ( - COUNT( * ), + 51 ) END * + 37 AS col0
----
114961

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL 4 + 72 + + CASE - - 20 WHEN 79 / COUNT ( * ) + 37 + + ( - 34 ) + + 34 * - - 52 * MAX ( 62 ) THEN + - 62 * 81 ELSE + 97 * + 32 - - - COALESCE ( - COUNT ( * ), + 51 ) END * + 37 AS col0
----
114961

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT MIN( - 78 ) + - - CASE 75 WHEN + - 84 THEN NULL WHEN - - COUNT( * ) THEN + COUNT( * ) * 20 * + 29 WHEN + - ( - 49 ) THEN - 8 * - 88 ELSE - + 76 + + MIN( DISTINCT + - 38 ) * + - 56 END * - 66 AS col2
----
-135510

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT MIN ( - 78 ) + - - CASE 75 WHEN + - 84 THEN NULL WHEN - - COUNT ( * ) THEN + COUNT ( * ) * 20 * + 29 WHEN + - ( - 49 ) THEN - 8 * - 88 ELSE - + 76 + + MIN ( DISTINCT + - 38 ) * + - 56 END * - 66 AS col2
----
-135510

query I rowsort
SELECT - 91 * + + COALESCE ( - 4, - 99 ) AS col2
----
364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT ALL CASE + 88 WHEN CASE 72 WHEN - - 15 * + 22 * - + ( 21 ) * - CAST( - COUNT( * ) AS SIGNED ) THEN - 41 - + CASE 99 WHEN + 79 + 27 + - 34 + - 50 * - 46 * - 76 THEN CAST( SUM( ALL 10 ) AS SIGNED ) WHEN + 4 * 27 THEN + ( COUNT( * ) ) ELSE 94 END WHEN 42 THEN NULL WHEN 32 * - 37 + - 38 THEN NULL END * + 15 THEN NULL WHEN 73 * - CASE + COUNT( * ) WHEN 97 / + 45 THEN 6 WHEN + 37 THEN - ( + 77 ) ELSE - 30 * 97 END - 71 THEN 83 - - 21 * - COUNT( * ) ELSE NULL END + + NULLIF ( - 82 + - 68, ( - COALESCE ( - 18, CAST( + 34 AS SIGNED ) + 19, - 77 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL CASE + 88 WHEN CASE 72 WHEN - - 15 * + 22 * - + ( 21 ) * - CAST ( - COUNT ( * ) AS INTEGER ) THEN - 41 - + CASE 99 WHEN + 79 + 27 + - 34 + - 50 * - 46 * - 76 THEN CAST ( SUM ( ALL 10 ) AS INTEGER ) WHEN + 4 * 27 THEN + ( COUNT ( * ) ) ELSE 94 END WHEN 42 THEN NULL WHEN 32 * - 37 + - 38 THEN NULL END * + 15 THEN NULL WHEN 73 * - CASE + COUNT ( * ) WHEN 97 / + 45 THEN 6 WHEN + 37 THEN - ( + 77 ) ELSE - 30 * 97 END - 71 THEN 83 - - 21 * - COUNT ( * ) ELSE NULL END + + NULLIF ( - 82 + - 68, ( - COALESCE ( - 18, CAST ( + 34 AS INTEGER ) + 19, - 77 ) ) )
----
NULL

query II rowsort
SELECT DISTINCT + 64 col2, - 22 - + - 9 AS col1
----
64
-13

query I rowsort
SELECT + 79 - + 35
----
44

query II rowsort
SELECT + 27, - 80 * - 30 AS col0
----
27
2400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT - COUNT( * ) * - + 93 * + 79 - - 38 AS col2
----
7385

skipif mysql # not compatible
query I rowsort label-1335
SELECT - COUNT ( * ) * - + 93 * + 79 - - 38 AS col2
----
7385

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT - MAX( - 24 ) * + 60 * + 45 * - + 60 AS col2
----
-3888000

skipif mysql # not compatible
query I rowsort label-1336
SELECT - MAX ( - 24 ) * + 60 * + 45 * - + 60 AS col2
----
-3888000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT ALL - 50 DIV 41 + COUNT( * ) + + - 74 + - 25
----
-99

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - 50 / 41 + COUNT ( * ) + + - 74 + - 25
----
-99

query II rowsort
SELECT + 38, 41 - + 41 AS col0
----
38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT + CASE - + 70 WHEN 96 THEN NULL WHEN + - 37 * 57 * + - ( - COUNT( * ) ) THEN 13 * + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT + CASE - + 70 WHEN 96 THEN NULL WHEN + - 37 * 57 * + - ( - COUNT ( * ) ) THEN 13 * + 91 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT + 89, - ( 16 ) * - 30 + + + 83 + - - COUNT( * ) col2
----
89
564

skipif mysql # not compatible
query II rowsort label-1340
SELECT + 89, - ( 16 ) * - 30 + + + 83 + - - COUNT ( * ) col2
----
89
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1341
SELECT ALL - NULLIF ( - 29, - 86 ) / 97 - - 10 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - NULLIF ( - 29, - 86 ) / 97 - - 10 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 54 * + 48 AS col1
----
2592

onlyif mysql # DIV for integer division: 
query II rowsort label-1343
SELECT ALL + 82 AS col2, - 71 * 36 DIV + 22
----
82
-116

skipif mysql # not compatible
query II rowsort label-1343
SELECT ALL + 82 AS col2, - 71 * 36 / + 22
----
82
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1344
SELECT DISTINCT + 67 * + - 33 / + 46 - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) + - 10
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1344
SELECT DISTINCT + 67 * + - 33 / + 46 - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) + - 10
----
NULL
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT DISTINCT + 77 / + 33 * + 64 * CAST( NULL AS SIGNED ) * + - 88 + + + MIN( + 95 ) + - 3 + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + 77 / + 33 * + 64 * CAST ( NULL AS INTEGER ) * + - 88 + + + MIN ( + 95 ) + - 3 + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT + - MIN( - 21 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-1346
SELECT + - MIN ( - 21 ) col1
----
21

query I rowsort
SELECT - + 27 * - 50 + 87 * + + 9 * - - 96 AS col2
----
76518

query I rowsort
SELECT + + COALESCE ( + 98, 80 ) + + + 75
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT + CAST( 69 AS SIGNED ) - + - 4 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1349
SELECT + CAST ( 69 AS INTEGER ) - + - 4 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT MAX( 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1350
SELECT MAX ( 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL + SUM( ALL ( 62 ) ) col0
----
62

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + SUM ( ALL ( 62 ) ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + - COUNT( * ) + + + MIN( 72 ) + NULLIF ( - - 42, ( 69 ) / - 56 * 29 / + 86 * + MIN( 10 ) ) * - COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1352
SELECT + - COUNT ( * ) + + + MIN ( 72 ) + NULLIF ( - - 42, ( 69 ) / - 56 * 29 / + 86 * + MIN ( 10 ) ) * - COUNT ( * ) AS col1
----
29

query I rowsort
SELECT ALL 85 * - + 14
----
-1190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1354
SELECT DISTINCT ( - NULLIF ( COUNT( * ), 11 + - MAX( 69 ) * - - 97 ) ) * - 55 DIV + 3
----
18

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT ( - NULLIF ( COUNT ( * ), 11 + - MAX ( 69 ) * - - 97 ) ) * - 55 / + 3
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT 1 * - 82 - - 77 * + + 91 AS col0, COUNT( * )
----
6925
1

skipif mysql # not compatible
query II rowsort label-1355
SELECT 1 * - 82 - - 77 * + + 91 AS col0, COUNT ( * )
----
6925
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1356
SELECT + 58 DIV - 99, - 56 AS col2
----
0
-56

skipif mysql # not compatible
query II rowsort label-1356
SELECT + 58 / - 99, - 56 AS col2
----
0
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL 46 * - CASE - COUNT( * ) WHEN + 49 THEN + 78 + COUNT( * ) * + 53 / 60 END + + ( + 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL 46 * - CASE - COUNT ( * ) WHEN + 49 THEN + 78 + COUNT ( * ) * + 53 / 60 END + + ( + 14 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT MIN( + 2 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-1359
SELECT MIN ( + 2 ) col1
----
2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1361
SELECT ALL MIN( ALL 6 ) + + 95 DIV 36, 66 * + 6 AS col2
----
8
396

skipif mysql # not compatible
query II rowsort label-1361
SELECT ALL MIN ( ALL 6 ) + + 95 / 36, 66 * + 6 AS col2
----
8
396

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT 35 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-1362
SELECT 35 / 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT 6 - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1363
SELECT 6 - COUNT ( * ) AS col2
----
5

query I rowsort
SELECT ALL NULLIF ( 21, + 34 ) + + 96
----
117

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

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

query I rowsort
SELECT ALL 86 * - 84 AS col2
----
-7224

query II rowsort
SELECT 25 + 51, - 23 AS col0
----
76
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT ALL - 58 + - + CAST( - 79 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - 58 + - + CAST ( - 79 AS INTEGER ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL 50 * - - 86 * SUM( ALL 95 )
----
408500

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL 50 * - - 86 * SUM ( ALL 95 )
----
408500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT 15 + - + CASE - - 81 WHEN + + 66 * - - 18 THEN + 62 / - 41 + - 18 END + + CAST( + 80 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT 15 + - + CASE - - 81 WHEN + + 66 * - - 18 THEN + 62 / - 41 + - 18 END + + CAST ( + 80 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1371
SELECT 50 - + CAST( NULL AS SIGNED ) * + MIN( + 70 ), - 81 AS col0
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-1371
SELECT 50 - + CAST ( NULL AS INTEGER ) * + MIN ( + 70 ), - 81 AS col0
----
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ( + 22 ) + + - ( + COUNT( + - 27 ) )
----
21

skipif mysql # not compatible
query I rowsort label-1372
SELECT ( + 22 ) + + - ( + COUNT ( + - 27 ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT 60 - + CASE 4 WHEN - ( + ( + - COALESCE ( 11, + 82 ) ) ) + - - 11 + - 65 - + 36 THEN NULL WHEN + 94 THEN - 23 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN + 45 * 5 ELSE 81 + + + COUNT( 44 ) * + 1 END AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1373
SELECT 60 - + CASE 4 WHEN - ( + ( + - COALESCE ( 11, + 82 ) ) ) + - - 11 + - 65 - + 36 THEN NULL WHEN + 94 THEN - 23 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN + 45 * 5 ELSE 81 + + + COUNT ( 44 ) * + 1 END AS col0
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1374
SELECT ALL CAST( NULL AS DECIMAL ) - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL CAST ( NULL AS REAL ) - 44 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT + 51 DIV - 77 + 27 + - 12
----
15

skipif mysql # not compatible
query I rowsort label-1376
SELECT + 51 / - 77 + 27 + - 12
----
15

query I rowsort
SELECT ALL 70 * 50
----
3500

query I rowsort
SELECT - ( 87 ) + - 82 + - 26 AS col2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT 59 * + + SUM( ALL - - 50 ) * - + ( 89 ) + - 8 + - + ( + + 12 ) + - CAST( NULL AS SIGNED ) + + 7 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT 59 * + + SUM ( ALL - - 50 ) * - + ( 89 ) + - 8 + - + ( + + 12 ) + - CAST ( NULL AS INTEGER ) + + 7 * - 5
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT - 34 * + + 78 + COALESCE ( + MIN( - - 85 ), - + COUNT( * ), - MIN( ALL - 45 ) ) AS col1
----
-2567

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 34 * + + 78 + COALESCE ( + MIN ( - - 85 ), - + COUNT ( * ), - MIN ( ALL - 45 ) ) AS col1
----
-2567

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT COUNT( DISTINCT 0 )
----
1

skipif mysql # not compatible
query I rowsort label-1382
SELECT COUNT ( DISTINCT 0 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1383
SELECT + COALESCE ( - COALESCE ( + + COUNT( * ), COUNT( * ), - - 21 ), + ( 97 ) DIV + - 75 * + - 22 ), 90 * + - CAST( + - 29 AS SIGNED ) * 72 + 53 AS col1
----
-1
187973

skipif mysql # not compatible
query II rowsort label-1383
SELECT + COALESCE ( - COALESCE ( + + COUNT ( * ), COUNT ( * ), - - 21 ), + ( 97 ) / + - 75 * + - 22 ), 90 * + - CAST ( + - 29 AS INTEGER ) * 72 + 53 AS col1
----
-1
187973

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

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - - COUNT ( DISTINCT + 93 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1385
SELECT 15 * + + 95 / - 69 * - COUNT( * ) + 66 + + CASE - 70 WHEN + 59 THEN + COALESCE ( + 33, 87 ) WHEN + 3 THEN - 80 WHEN + + 5 THEN ( - + COUNT( * ) ) + - 38 / - - 4 ELSE NULL END * - 89 + - COUNT( * ) / COUNT( * ) + + CASE - COUNT( * ) WHEN COUNT( * ) * MAX( DISTINCT - 39 ) THEN CAST( NULL AS SIGNED ) WHEN 49 * ( - 98 ) THEN NULL WHEN - CAST( + CAST( - 54 AS DECIMAL ) AS SIGNED ) THEN 60 + 76 ELSE 75 + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT 15 * + + 95 / - 69 * - COUNT ( * ) + 66 + + CASE - 70 WHEN + 59 THEN + COALESCE ( + 33, 87 ) WHEN + 3 THEN - 80 WHEN + + 5 THEN ( - + COUNT ( * ) ) + - 38 / - - 4 ELSE NULL END * - 89 + - COUNT ( * ) / COUNT ( * ) + + CASE - COUNT ( * ) WHEN COUNT ( * ) * MAX ( DISTINCT - 39 ) THEN CAST ( NULL AS INTEGER ) WHEN 49 * ( - 98 ) THEN NULL WHEN - CAST ( + CAST ( - 54 AS REAL ) AS INTEGER ) THEN 60 + 76 ELSE 75 + 38 END
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + - 45, 94 * 24 + 52 + + - 37 )
----
45

query I rowsort
SELECT ALL + + 63 + - 5
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT ( + 95 ) + - + CAST( - 83 AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-1388
SELECT ( + 95 ) + - + CAST ( - 83 AS INTEGER )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL - SUM( + 26 ) + + 39 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - SUM ( + 26 ) + + 39 AS col1
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-1390
SELECT 55 * + + 0 DIV - 69 * + - 33 + + 57 * + + 40 + 56, 31 AS col0
----
2336
31

skipif mysql # not compatible
query II rowsort label-1390
SELECT 55 * + + 0 / - 69 * + - 33 + + 57 * + + 40 + 56, 31 AS col0
----
2336
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL + COUNT( * ) + + COUNT( + 26 ) + + - COUNT( * ) * + - 66 + 2 * - NULLIF ( + + 85, + 47 ) * + 33 + - - CASE - 14 WHEN 37 THEN NULL WHEN - - 25 / - 20 + + COALESCE ( + 50, 79 ) + - 83 THEN - COUNT( ALL 74 ) * + 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL + COUNT ( * ) + + COUNT ( + 26 ) + + - COUNT ( * ) * + - 66 + 2 * - NULLIF ( + + 85, + 47 ) * + 33 + - - CASE - 14 WHEN 37 THEN NULL WHEN - - 25 / - 20 + + COALESCE ( + 50, 79 ) + - 83 THEN - COUNT ( ALL 74 ) * + 51 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1392
SELECT DISTINCT + COUNT( * ) + - CASE - COUNT( * ) WHEN + + 44 THEN NULL ELSE ( - COUNT( * ) ) * ( - 67 ) DIV - 74 - + 54 DIV + 97 * - + 90 * - - 59 * + 5 END * - SUM( 25 ) * + - 47 + + + COALESCE ( - - NULLIF ( + 64, 76 ), + 5 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT + COUNT ( * ) + - CASE - COUNT ( * ) WHEN + + 44 THEN NULL ELSE ( - COUNT ( * ) ) * ( - 67 ) / - 74 - + 54 / + 97 * - + 90 * - - 59 * + 5 END * - SUM ( 25 ) * + - 47 + + + COALESCE ( - - NULLIF ( + 64, 76 ), + 5 ) AS col0
----
65

query I rowsort
SELECT ALL 10 + - 78 + + 16 col1
----
-52

query I rowsort
SELECT 15 + + 34
----
49

query I rowsort
SELECT ALL - 26 + - + 26 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1396
SELECT COUNT( * ) + + - SUM( DISTINCT + 59 ) + + 56 DIV - 18 + - 86 AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-1396
SELECT COUNT ( * ) + + - SUM ( DISTINCT + 59 ) + + 56 / - 18 + - 86 AS col2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL - CASE COUNT( * ) WHEN + 17 THEN NULL WHEN + - 79 THEN + 35 END * + 61 * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL - CASE COUNT ( * ) WHEN + 17 THEN NULL WHEN + - 79 THEN + 35 END * + 61 * - 15 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT ALL 67 AS col2, NULLIF ( MIN( 29 ), + 78 ) AS col0
----
67
29

skipif mysql # not compatible
query II rowsort label-1399
SELECT ALL 67 AS col2, NULLIF ( MIN ( 29 ), + 78 ) AS col0
----
67
29

query I rowsort
SELECT 60 + ( + 39 ) col1
----
99

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

skipif mysql # not compatible
query I rowsort label-1401
SELECT 31 * - + MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1402
SELECT 52 AS col2, - ( AVG ( - CAST( NULL AS SIGNED ) ) )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1402
SELECT 52 AS col2, - ( AVG ( - CAST ( NULL AS INTEGER ) ) )
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT ALL SUM( + 38 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL SUM ( + 38 ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT - CASE + ( + 42 ) WHEN + COUNT( * ) + + 79 + + 31 + ( - + MAX( - + 22 ) ) + - 43 * - - COALESCE ( COUNT( * ), + 88 ) THEN NULL WHEN - 65 THEN NULL ELSE 6 + + + 94 END - - 53
----
-47

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT - CASE + ( + 42 ) WHEN + COUNT ( * ) + + 79 + + 31 + ( - + MAX ( - + 22 ) ) + - 43 * - - COALESCE ( COUNT ( * ), + 88 ) THEN NULL WHEN - 65 THEN NULL ELSE 6 + + + 94 END - - 53
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT ALL 96 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL 96 / 82
----
1

query II rowsort
SELECT - - 52 AS col1, NULLIF ( - NULLIF ( 89, 30 + 58 - + + 86 * - 25 + 78 * - 25 * 75 ), 92 / + 92 / - 81 + - 70 + - ( - 13 ) * + ( + 52 ) * 49 - - 19 ) + 85 * 73 AS col2
----
52
6116

query I rowsort
SELECT + - CASE + 36 WHEN + 78 THEN NULL WHEN - 77 THEN NULL WHEN 98 THEN - - 99 - - 71 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1408
SELECT + CAST( NULL AS SIGNED ) * NULLIF ( + - 37, - 37 ) - + + COUNT( * ) AS col2, 64 * - + 41 + 51
----
NULL
-2573

skipif mysql # not compatible
query II rowsort label-1408
SELECT + CAST ( NULL AS INTEGER ) * NULLIF ( + - 37, - 37 ) - + + COUNT ( * ) AS col2, 64 * - + 41 + 51
----
NULL
-2573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1409
SELECT + 21 DIV - + 99 * COALESCE ( 80, - 2 + COUNT( * ) - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-1409
SELECT + 21 / - + 99 * COALESCE ( 80, - 2 + COUNT ( * ) - 87 )
----
0

query I rowsort
SELECT 2 * 41 - ( - 59 )
----
141

query I rowsort
SELECT 62 * + 85 col0
----
5270

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1412
SELECT + CAST( + 20 AS SIGNED ) * - + 40 + - 86 - - 38 DIV - 30 AS col1
----
-887

skipif mysql # not compatible
query I rowsort label-1412
SELECT + CAST ( + 20 AS INTEGER ) * - + 40 + - 86 - - 38 / - 30 AS col1
----
-887

query I rowsort
SELECT 21 * 98 AS col2
----
2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT DISTINCT - 58 * + - 92 + + COUNT( * ) * - + 0 * - 13 * - + CASE + 57 WHEN + - 46 * COUNT( * ) * - 25 + - COUNT( * ) + - + 77 + - COUNT( * ) * + 80 THEN MIN( - + 33 ) * + COUNT( * ) + - - CAST( - 94 AS SIGNED ) END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT - 58 * + - 92 + + COUNT ( * ) * - + 0 * - 13 * - + CASE + 57 WHEN + - 46 * COUNT ( * ) * - 25 + - COUNT ( * ) + - + 77 + - COUNT ( * ) * + 80 THEN MIN ( - + 33 ) * + COUNT ( * ) + - - CAST ( - 94 AS INTEGER ) END * 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1415
SELECT DISTINCT - 15 * + 79 * - + 83 + + CAST( - 22 AS SIGNED ) AS col2
----
98333

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - 15 * + 79 * - + 83 + + CAST ( - 22 AS INTEGER ) AS col2
----
98333

query I rowsort
SELECT DISTINCT - ( - + 71 ) AS col1
----
71

query I rowsort
SELECT DISTINCT - 60 col0
----
-60

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

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL - 64 + - - COUNT ( * ) AS col1
----
-63

query I rowsort
SELECT ALL - 6 + 83
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT COUNT( - - 42 ) + - 71 AS col1, + COUNT( * ) AS col2
----
-70
1

skipif mysql # not compatible
query II rowsort label-1420
SELECT COUNT ( - - 42 ) + - 71 AS col1, + COUNT ( * ) AS col2
----
-70
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT ALL - 15 * ( + 21 ) + + + 38 + + 36 DIV 15 AS col2
----
-275

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - 15 * ( + 21 ) + + + 38 + + 36 / 15 AS col2
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT - 73 * + 91 * - + COUNT( * )
----
6643

skipif mysql # not compatible
query I rowsort label-1423
SELECT - 73 * + 91 * - + COUNT ( * )
----
6643

query I rowsort
SELECT ALL + 30 + + 94 AS col1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1425
SELECT DISTINCT + COUNT( * ), CASE 70 WHEN - 54 THEN 1 ELSE - - 1 DIV - 23 + + ( COUNT( * ) ) * 98 END AS col2
----
1
98

skipif mysql # not compatible
query II rowsort label-1425
SELECT DISTINCT + COUNT ( * ), CASE 70 WHEN - 54 THEN 1 ELSE - - 1 / - 23 + + ( COUNT ( * ) ) * 98 END AS col2
----
1
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT - 16 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-1427
SELECT - 16 / 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL SUM( DISTINCT - 64 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL SUM ( DISTINCT - 64 ) col2
----
-64

query I rowsort
SELECT - 56 + - 96 col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT - 62 * 70 * - COUNT( * )
----
4340

skipif mysql # not compatible
query I rowsort label-1430
SELECT - 62 * 70 * - COUNT ( * )
----
4340

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1432
SELECT ALL + 41 DIV - MIN( ALL 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL + 41 / - MIN ( ALL 79 ) AS col2
----
0

query I rowsort
SELECT - 33 * COALESCE ( - 21, - 84, + 42 )
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT - 50 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-1434
SELECT - 50 / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT DISTINCT CASE + COUNT( DISTINCT + 18 ) WHEN + AVG ( ALL - 59 ) - 40 - - 76 THEN 87 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT CASE + COUNT ( DISTINCT + 18 ) WHEN + AVG ( ALL - 59 ) - 40 - - 76 THEN 87 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 26 - - + 7 AS col1
----
-19

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

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL COUNT ( * ) AS col2, 6
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - COUNT( * ) + + - 47 + + COUNT( * ) * - 66 * + - COUNT( - 7 ) * + 69
----
4506

skipif mysql # not compatible
query I rowsort label-1438
SELECT - COUNT ( * ) + + - 47 + + COUNT ( * ) * - 66 * + - COUNT ( - 7 ) * + 69
----
4506

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL COALESCE ( 34, - 74 * - 27 * - MIN( - 56 ) * 45, - - 74 + 13 )
----
34

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL COALESCE ( 34, - 74 * - 27 * - MIN ( - 56 ) * 45, - - 74 + 13 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1440
SELECT DISTINCT CASE 39 WHEN - + 16 / + 20 * + 47 + + + MIN( - 42 ) - + 27 * - - 60 * + CAST( NULL AS SIGNED ) / - 43 THEN - + 87 + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT CASE 39 WHEN - + 16 / + 20 * + 47 + + + MIN ( - 42 ) - + 27 * - - 60 * + CAST ( NULL AS INTEGER ) / - 43 THEN - + 87 + 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) - 43 AS col2
----
-1
-44

skipif mysql # not compatible
query II rowsort label-1441
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) - 43 AS col2
----
-1
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT + + 42 * 95 - 51 - + SUM( ALL + + 85 ) AS col0
----
3854

skipif mysql # not compatible
query I rowsort label-1443
SELECT + + 42 * 95 - 51 - + SUM ( ALL + + 85 ) AS col0
----
3854

query I rowsort
SELECT - 49 + + + 82 AS col1
----
33

query I rowsort
SELECT + 19 - + + 39 AS col0
----
-20

query I rowsort
SELECT - 62 + 82
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1447
SELECT + ( - 48 ) - 58 + + + ( + 28 ) DIV + 71 * + - NULLIF ( + COUNT( * ), + 35 ) * - 76
----
-106

skipif mysql # not compatible
query I rowsort label-1447
SELECT + ( - 48 ) - 58 + + + ( + 28 ) / + 71 * + - NULLIF ( + COUNT ( * ), + 35 ) * - 76
----
-106

query II rowsort
SELECT - 86 AS col2, + 63 + 4
----
-86
67

query I rowsort
SELECT - 76 * - ( 28 ) col0
----
2128

query I rowsort
SELECT ALL 13 * + 83 + - + 50 AS col1
----
1029

query I rowsort
SELECT ALL + 4 * ( - + 32 ) * + 65 - + 90
----
-8410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT ALL COUNT( * ) * - 54 * - + ( - 43 ) + 18 - COUNT( ALL - 78 ) * - CAST( + 62 AS SIGNED ) + + ( 68 ) * 43 col1
----
682

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL COUNT ( * ) * - 54 * - + ( - 43 ) + 18 - COUNT ( ALL - 78 ) * - CAST ( + 62 AS INTEGER ) + + ( 68 ) * 43 col1
----
682

query I rowsort
SELECT DISTINCT - 77 * + NULLIF ( - - 91, + 98 ) AS col0
----
-7007

query I rowsort
SELECT ALL ( + 32 ) * 52 + 77
----
1741

query II rowsort
SELECT + + 69 AS col2, 1 AS col2
----
69
1

query I rowsort
SELECT + 75 * 98 AS col2
----
7350

query I rowsort
SELECT 35 * + 68 * - + 43 + + + 97 AS col2
----
-102243

onlyif mysql # DIV for integer division: 
query II rowsort label-1458
SELECT + 81 + - 47 AS col2, 33 DIV + + 89 + + 75 AS col2
----
34
75

skipif mysql # not compatible
query II rowsort label-1458
SELECT + 81 + - 47 AS col2, 33 / + + 89 + + 75 AS col2
----
34
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1459
SELECT - 45 * ( + MIN( - - ( CAST( NULL AS SIGNED ) ) ) ) * MAX( - - ( - 30 ) ) + - - 34 + + + COUNT( * ) - 66 * + - COALESCE ( - 35, + 55 + - + 2 ) * 61 / - 19 * - 25 - + - 87 + + + 27 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT - 45 * ( + MIN ( - - ( CAST ( NULL AS INTEGER ) ) ) ) * MAX ( - - ( - 30 ) ) + - - 34 + + + COUNT ( * ) - 66 * + - COALESCE ( - 35, + 55 + - + 2 ) * 61 / - 19 * - 25 - + - 87 + + + 27 + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + 9 * - 37
----
-333

query I rowsort
SELECT ALL + 36 * - 61
----
-2196

query I rowsort
SELECT + 27 + 71 + + 4 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT - 3 + + + COALESCE ( - 15, ( 32 ) ) * ( 40 ) * - - 61 - COUNT( * ) + + - ( + 32 )
----
-36636

skipif mysql # not compatible
query I rowsort label-1463
SELECT - 3 + + + COALESCE ( - 15, ( 32 ) ) * ( 40 ) * - - 61 - COUNT ( * ) + + - ( + 32 )
----
-36636

query II rowsort
SELECT ALL ( - 10 ) AS col1, 40 * - - 9
----
-10
360

query II rowsort
SELECT DISTINCT NULLIF ( - + 57, - 17 ), 18 AS col1
----
-57
18

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

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

query II rowsort
SELECT - + 55 + + 74 AS col0, 56
----
19
56

query I rowsort
SELECT - 47 * + + 92 * - + 73 - - + 19 + 77 * - 18 + ( + + 42 ) AS col0
----
314327

query I rowsort
SELECT - - 80 + + 80 col2
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT - COUNT( DISTINCT 31 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1470
SELECT - COUNT ( DISTINCT 31 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 67 + 46 AS col0
----
-21

query I rowsort
SELECT ALL + - 48 * - + 79 + 23 AS col1
----
3815

query I rowsort
SELECT ALL + 50 + - 67 * + 30 AS col2
----
-1960

query I rowsort
SELECT ALL - 39 + + 70 AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT - 10 * + + 22 * + 96 + CAST( NULL AS SIGNED ) * - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT - 10 * + + 22 * + 96 + CAST ( NULL AS INTEGER ) * - 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1476
SELECT + SUM( 93 ) * - CAST( + ( + + 44 ) AS SIGNED ) - 14 * - 21, NULLIF ( + - 88, 35 ) AS col1, - 70 col1
----
-3798
-88
-70

skipif mysql # not compatible
query III rowsort label-1476
SELECT + SUM ( 93 ) * - CAST ( + ( + + 44 ) AS INTEGER ) - 14 * - 21, NULLIF ( + - 88, 35 ) AS col1, - 70 col1
----
-3798
-88
-70

query I rowsort
SELECT + 41 + - 61 AS col1
----
-20

query I rowsort
SELECT 40 * + 89 - - 24
----
3584

query I rowsort
SELECT ALL - - 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL - 23 - - + 47 * + CASE 48 WHEN COUNT( * ) * + + 45 * + 48 * + - AVG ( DISTINCT - 12 ) + 29 * 84 THEN + + COUNT( * ) * - 78 + + - 12 WHEN + 74 THEN NULL ELSE NULLIF ( + COUNT( * ), - - 99 ) END
----
24

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - 23 - - + 47 * + CASE 48 WHEN COUNT ( * ) * + + 45 * + 48 * + - AVG ( DISTINCT - 12 ) + 29 * 84 THEN + + COUNT ( * ) * - 78 + + - 12 WHEN + 74 THEN NULL ELSE NULLIF ( + COUNT ( * ), - - 99 ) END
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT 49 * + - ( - 39 ) - + COUNT( * ) + - 65 * - 73 * + COUNT( * )
----
6655

skipif mysql # not compatible
query I rowsort label-1482
SELECT 49 * + - ( - 39 ) - + COUNT ( * ) + - 65 * - 73 * + COUNT ( * )
----
6655

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL - COUNT( * ) - COUNT( * ) + 13 - + 7 + - - 7 + 35 * 73
----
2566

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - COUNT ( * ) - COUNT ( * ) + 13 - + 7 + - - 7 + 35 * 73
----
2566

onlyif mysql # aggregate syntax: 
query II rowsort label-1484
SELECT 30, 71 * + 43 + - COUNT( * ) AS col1
----
30
3052

skipif mysql # not compatible
query II rowsort label-1484
SELECT 30, 71 * + 43 + - COUNT ( * ) AS col1
----
30
3052

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT COUNT( * ) + 5
----
6

skipif mysql # not compatible
query I rowsort label-1485
SELECT COUNT ( * ) + 5
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1486
SELECT CAST( NULL AS SIGNED ) * + 80 * - NULLIF ( + + COUNT( * ), 68 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT CAST ( NULL AS INTEGER ) * + 80 * - NULLIF ( + + COUNT ( * ), 68 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - 33 col2
----
-33

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - 33 col2
----
-33

query II rowsort
SELECT COALESCE ( + 47, - ( 84 ) * + 69 ) * + ( + ( - 11 ) ), 51 AS col1
----
-517
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1489
SELECT MAX( + 79 ) - + CAST( - 99 AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-1489
SELECT MAX ( + 79 ) - + CAST ( - 99 AS INTEGER )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT DISTINCT 86 * COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT 86 * COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT COALESCE ( + 95, + CASE + 64 WHEN - + 62 * SUM( + 96 ) - MAX( + ( 86 ) ) + COUNT( * ) THEN - + 46 END * - MAX( 40 ), + - 34 ) * + 85 AS col1
----
8075

skipif mysql # not compatible
query I rowsort label-1491
SELECT COALESCE ( + 95, + CASE + 64 WHEN - + 62 * SUM ( + 96 ) - MAX ( + ( 86 ) ) + COUNT ( * ) THEN - + 46 END * - MAX ( 40 ), + - 34 ) * + 85 AS col1
----
8075

query I rowsort
SELECT ALL CASE WHEN + 20 IS NULL THEN - 47 END * - - 67 + 75
----
NULL

query I rowsort
SELECT 53 + + 62
----
115

query II rowsort
SELECT 81, 14 + + 13 AS col2
----
81
27

query I rowsort
SELECT ( 66 ) * + 77 AS col1
----
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - 59 * + ( - SUM( DISTINCT + - 69 ) ) + + 40 + + COUNT( * ) * + MAX( DISTINCT 29 ) AS col1
----
-4002

skipif mysql # not compatible
query I rowsort label-1496
SELECT - 59 * + ( - SUM ( DISTINCT + - 69 ) ) + + 40 + + COUNT ( * ) * + MAX ( DISTINCT 29 ) AS col1
----
-4002

query I rowsort
SELECT 49 + - 83
----
-34

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

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

query I rowsort
SELECT ALL + NULLIF ( + 62, + 8 - - + 85 ) + - 48 * - 69
----
3374

query II rowsort
SELECT - 98, + 17 + + 16 AS col2
----
-98
33

query I rowsort
SELECT ALL - 29 + - 78 AS col1
----
-107

query II rowsort
SELECT 60 - + 35 + + 25 AS col2, + 11 AS col0
----
50
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1503
SELECT DISTINCT + 1 + - CASE + 2 WHEN - CAST( NULL AS SIGNED ) + + 67 + - 72 - 71 - - - COUNT( * ) + - CASE 32 WHEN 35 + - - 3 * + 76 / + 28 * + - ( - 18 ) THEN 43 ELSE NULL END * - - 43 * - + 59 * + - 28 THEN + COUNT( * ) WHEN + + 12 * - 65 + + COUNT( 96 + + 91 ) THEN - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + 1 + - CASE + 2 WHEN - CAST ( NULL AS INTEGER ) + + 67 + - 72 - 71 - - - COUNT ( * ) + - CASE 32 WHEN 35 + - - 3 * + 76 / + 28 * + - ( - 18 ) THEN 43 ELSE NULL END * - - 43 * - + 59 * + - 28 THEN + COUNT ( * ) WHEN + + 12 * - 65 + + COUNT ( 96 + + 91 ) THEN - 5 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT COUNT( * ) + 55 col2
----
56

skipif mysql # not compatible
query I rowsort label-1505
SELECT COUNT ( * ) + 55 col2
----
56

query I rowsort
SELECT 86 + - 32 col1
----
54

query I rowsort
SELECT 29 * + 61 * - + ( + - 19 ) * - - 70 AS col2
----
2352770

query II rowsort
SELECT ALL 61 AS col1, + 14 AS col0
----
61
14

query I rowsort
SELECT + 47 + 13 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT ( + 31 ) - - + 71 DIV + - 11
----
25

skipif mysql # not compatible
query I rowsort label-1510
SELECT ( + 31 ) - - + 71 / + - 11
----
25

query I rowsort
SELECT 78 + - - 39 AS col1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1512
SELECT + 30 + + 64 + - COUNT( * ) * - 4, - 23 col2
----
98
-23

skipif mysql # not compatible
query II rowsort label-1512
SELECT + 30 + + 64 + - COUNT ( * ) * - 4, - 23 col2
----
98
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL + - 53 - - 33 * + 55 * 83 + - COUNT( * ) AS col2
----
150591

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + - 53 - - 33 * + 55 * 83 + - COUNT ( * ) AS col2
----
150591

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT ALL - MAX( ALL + 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL - MAX ( ALL + 36 ) AS col1
----
-36

query I rowsort
SELECT + + NULLIF ( + 48, 57 * + 43 ) col2
----
48

query I rowsort
SELECT 34 * + 28
----
952

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

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

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

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - MIN ( 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT + 75 DIV 37 + - 96 + - ( COUNT( * ) ) * + + 36 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-1520
SELECT + 75 / 37 + - 96 + - ( COUNT ( * ) ) * + + 36 AS col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT CASE - AVG ( + + 4 ) WHEN - + 46 * - + 68 * 15 THEN - 90 END * - 8 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT CASE - AVG ( + + 4 ) WHEN - + 46 * - + 68 * 15 THEN - 90 END * - 8 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL - CASE + + 30 WHEN - 48 THEN - 88 WHEN + MAX( + 99 ) * + + 38 * 32 * + 23 THEN NULL ELSE 92 + + COALESCE ( + + ( - 37 ), 89, 56 ) * + 19 END
----
611

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL - CASE + + 30 WHEN - 48 THEN - 88 WHEN + MAX ( + 99 ) * + + 38 * 32 * + 23 THEN NULL ELSE 92 + + COALESCE ( + + ( - 37 ), 89, 56 ) * + 19 END
----
611

query I rowsort
SELECT + 55 * 47 * + - 20 + 91 + - 41 + 31
----
-51619

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT - ( COALESCE ( + + 35, + - 96 + 22 + COUNT( * ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT - ( COALESCE ( + + 35, + - 96 + 22 + COUNT ( * ) ) )
----
-35

query I rowsort
SELECT 75 + - 18 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL 38 + - 19 * CASE COUNT( * ) WHEN CASE + 13 WHEN - COALESCE ( COUNT( * ), + 58, - 41 ) THEN - 55 * - 62 + - COALESCE ( + + 23, + - 36 / 15 ) WHEN - 96 THEN SUM( ALL + 59 ) * 31 + - - COALESCE ( + + 79, - + 30 / + 23 * - 20 ) ELSE + 19 / 42 END THEN 2 + - COUNT( ALL 71 ) * ( - 77 + + 68 ) WHEN NULLIF ( + COUNT( * ), 44 ) + - COUNT( * ) THEN NULL END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL 38 + - 19 * CASE COUNT ( * ) WHEN CASE + 13 WHEN - COALESCE ( COUNT ( * ), + 58, - 41 ) THEN - 55 * - 62 + - COALESCE ( + + 23, + - 36 / 15 ) WHEN - 96 THEN SUM ( ALL + 59 ) * 31 + - - COALESCE ( + + 79, - + 30 / + 23 * - 20 ) ELSE + 19 / 42 END THEN 2 + - COUNT ( ALL 71 ) * ( - 77 + + 68 ) WHEN NULLIF ( + COUNT ( * ), 44 ) + - COUNT ( * ) THEN NULL END + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT DISTINCT 97 + - COUNT( * ) * - 46 DIV - 92 * + 54
----
97

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT 97 + - COUNT ( * ) * - 46 / - 92 * + 54
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1528
SELECT 59 DIV MIN( DISTINCT + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT 59 / MIN ( DISTINCT + 60 )
----
0

query II rowsort
SELECT ALL 32 + - 76, + 66 col2
----
-44
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT 65 * - 49 * + - COUNT( * )
----
3185

skipif mysql # not compatible
query I rowsort label-1530
SELECT 65 * - 49 * + - COUNT ( * )
----
3185

query II rowsort
SELECT DISTINCT - 1 * + 79 AS col0, - 28
----
-79
-28

query I rowsort
SELECT - 38 + - ( + 46 ) * - 15
----
652

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT DISTINCT + 30 + - - SUM( ALL + - 13 )
----
17

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT + 30 + - - SUM ( ALL + - 13 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL + 72 + MAX( - - 1 )
----
73

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + 72 + MAX ( - - 1 )
----
73

query II rowsort
SELECT DISTINCT 0 + - ( 56 ) + 76, 20 AS col0
----
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + 4 * + COUNT( * ) - ( 80 )
----
-76

skipif mysql # not compatible
query I rowsort label-1536
SELECT + 4 * + COUNT ( * ) - ( 80 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT - - SUM( DISTINCT - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-1537
SELECT - - SUM ( DISTINCT - 14 ) AS col2
----
-14

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

query I rowsort
SELECT + 40 * + 47 - - 66
----
1946

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT - CAST( NULL AS SIGNED ) + - + COALESCE ( + + 75, + 55 ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT - CAST ( NULL AS INTEGER ) + - + COALESCE ( + + 75, + 55 ) / 59
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT + 67 DIV - COUNT( * ) + - 58 DIV 75
----
-67

skipif mysql # not compatible
query I rowsort label-1542
SELECT + 67 / - COUNT ( * ) + - 58 / 75
----
-67

query I rowsort
SELECT ALL - - 89 * - - 6
----
534

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - 26 * 52 - - COUNT( * ) AS col0
----
-1351

skipif mysql # not compatible
query I rowsort label-1546
SELECT - 26 * 52 - - COUNT ( * ) AS col0
----
-1351

query I rowsort
SELECT - - 35 * 72 AS col2
----
2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1548
SELECT 86 DIV + MIN( + 44 ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-1548
SELECT 86 / + MIN ( + 44 ) + 71
----
72

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

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

query I rowsort
SELECT - 40 + 17 AS col0
----
-23

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

query I rowsort
SELECT - 86 - 58 col1
----
-144

query I rowsort
SELECT ALL + 77 * - 18 AS col2
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT COALESCE ( + COUNT( * ), - 44 - - 77 + - - 30 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1554
SELECT COALESCE ( + COUNT ( * ), - 44 - - 77 + - - 30 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT - 64 * + CASE + + 2 WHEN 12 THEN NULL WHEN 60 * 28 THEN - + ( + + MAX( - 7 ) ) END + - - 49 + + SUM( 6 ) * - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT - 64 * + CASE + + 2 WHEN 12 THEN NULL WHEN 60 * 28 THEN - + ( + + MAX ( - 7 ) ) END + - - 49 + + SUM ( 6 ) * - 58 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1557
SELECT CASE - + 58 WHEN - 39 + + 44 + + + SUM( - 20 ) * + + 26 THEN NULL ELSE 80 END, 80 AS col2
----
80
80

skipif mysql # not compatible
query II rowsort label-1557
SELECT CASE - + 58 WHEN - 39 + + 44 + + + SUM ( - 20 ) * + + 26 THEN NULL ELSE 80 END, 80 AS col2
----
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1558
SELECT ALL COALESCE ( + + 63, + 91 DIV 52, + 0, COUNT( * ) ) * + 69 + + 39, CAST( NULL AS SIGNED ) AS col2
----
4386
NULL

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL COALESCE ( + + 63, + 91 / 52, + 0, COUNT ( * ) ) * + 69 + + 39, CAST ( NULL AS INTEGER ) AS col2
----
4386
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1559
SELECT CASE - + 13 WHEN + + NULLIF ( - - 36, + CAST( + 10 AS SIGNED ) * + 86 ) + 23 THEN COALESCE ( + + 66, - 43 + + 16 ) - - 79 + 8 * - + 69 / - + COUNT( * ) END col1, - 28 AS col0
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-1559
SELECT CASE - + 13 WHEN + + NULLIF ( - - 36, + CAST ( + 10 AS INTEGER ) * + 86 ) + 23 THEN COALESCE ( + + 66, - 43 + + 16 ) - - 79 + 8 * - + 69 / - + COUNT ( * ) END col1, - 28 AS col0
----
NULL
-28

query I rowsort
SELECT NULLIF ( - - 52, - + 21 )
----
52

query I rowsort
SELECT - 50 * 55 AS col1
----
-2750

query I rowsort
SELECT DISTINCT 44 * 24 + - ( 58 ) AS col1
----
998

query I rowsort
SELECT + 41 * + 61 + + 55 AS col1
----
2556

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

query I rowsort
SELECT - NULLIF ( + 18, 74 ) AS col2
----
-18

query I rowsort
SELECT - 2 + - 44
----
-46

query I rowsort
SELECT - ( - - 78 ) + 94 * - 83 + - ( + - 43 ) * 91
----
-3967

query I rowsort
SELECT ALL 55 - + 97 AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT - 29 + - - 42 DIV 14 + - 17 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 29 + - - 42 / 14 + - 17 AS col1
----
-43

query I rowsort
SELECT ALL + - 82 * 85 AS col2
----
-6970

query I rowsort
SELECT + - COALESCE ( + 76, - 93, 32, - - 46 + - 2 ) + - 33
----
-109

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

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

query I rowsort
SELECT + + 30 + + - 7
----
23

query I rowsort
SELECT ALL - + 70 * + - 90
----
6300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL CASE - - ( COUNT( * ) ) WHEN - 29 THEN - - 18 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL CASE - - ( COUNT ( * ) ) WHEN - 29 THEN - - 18 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + 1 - COUNT( * ) * + 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1577
SELECT + 1 - COUNT ( * ) * + 57 AS col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT + 45 + COALESCE ( - 92, + - 47, + - 79 ) + - + 54 DIV - - 64 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 45 + COALESCE ( - 92, + - 47, + - 79 ) + - + 54 / - - 64 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL MIN( DISTINCT - - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL MIN ( DISTINCT - - 13 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT - CAST( 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-1580
SELECT - CAST ( 64 AS INTEGER )
----
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1582
SELECT 91 * + - 73 + 41 + + 36 - - + 61 + + - COUNT( * ) * + 20 * + + COALESCE ( + - 26, + 4 + - - 30 ) AS col2, + 72
----
-5985
72

skipif mysql # not compatible
query II rowsort label-1582
SELECT 91 * + - 73 + 41 + + 36 - - + 61 + + - COUNT ( * ) * + 20 * + + COALESCE ( + - 26, + 4 + - - 30 ) AS col2, + 72
----
-5985
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT + ( + CAST( + 79 AS SIGNED ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1583
SELECT + ( + CAST ( + 79 AS INTEGER ) ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT CAST( 9 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1584
SELECT CAST ( 9 AS INTEGER ) AS col2
----
9

query II rowsort
SELECT + 60 AS col0, - 89
----
60
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + CASE + + 67 WHEN + 42 THEN - ( + 41 ) WHEN + 56 * 65 THEN + - 44 + + COALESCE ( 81, - - CASE - - 70 WHEN - 54 / 21 THEN NULL WHEN 68 * - + 35 THEN NULL ELSE COUNT( * ) - - 18 END / - + 1 ) END * + 81 + COUNT( * ) + + 96 + 30 + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT + CASE + + 67 WHEN + 42 THEN - ( + 41 ) WHEN + 56 * 65 THEN + - 44 + + COALESCE ( 81, - - CASE - - 70 WHEN - 54 / 21 THEN NULL WHEN 68 * - + 35 THEN NULL ELSE COUNT ( * ) - - 18 END / - + 1 ) END * + 81 + COUNT ( * ) + + 96 + 30 + 27
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT + NULLIF ( + + 61, + 44 + + + 13 ) + + 87 * - 77 * COALESCE ( - 77, 47 + 65 + + - 56 DIV 71 ) AS col1
----
515884

skipif mysql # not compatible
query I rowsort label-1588
SELECT + NULLIF ( + + 61, + 44 + + + 13 ) + + 87 * - 77 * COALESCE ( - 77, 47 + 65 + + - 56 / 71 ) AS col1
----
515884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1589
SELECT DISTINCT 9 * COUNT( * ) + + - MAX( DISTINCT - 17 ), CAST( NULL AS SIGNED ) AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-1589
SELECT DISTINCT 9 * COUNT ( * ) + + - MAX ( DISTINCT - 17 ), CAST ( NULL AS INTEGER ) AS col1
----
26
NULL

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

skipif mysql # not compatible
query I rowsort label-1590
SELECT CAST ( NULL AS INTEGER ) * - 52 + - + 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT - ( COUNT( * ) ) DIV + + SUM( - - 16 ) + 81 - + 85 * + 41 * - COUNT( DISTINCT + 75 ) + + 63 AS col1
----
3629

skipif mysql # not compatible
query I rowsort label-1591
SELECT - ( COUNT ( * ) ) / + + SUM ( - - 16 ) + 81 - + 85 * + 41 * - COUNT ( DISTINCT + 75 ) + + 63 AS col1
----
3629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1592
SELECT ALL + COUNT( * ) AS col2, 57 - + ( - 8 ) - + CAST( 99 AS SIGNED ) AS col2
----
1
-34

skipif mysql # not compatible
query II rowsort label-1592
SELECT ALL + COUNT ( * ) AS col2, 57 - + ( - 8 ) - + CAST ( 99 AS INTEGER ) AS col2
----
1
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1593
SELECT - CAST( - 11 AS SIGNED ) + + 94
----
105

skipif mysql # not compatible
query I rowsort label-1593
SELECT - CAST ( - 11 AS INTEGER ) + + 94
----
105

query II rowsort
SELECT + 39, 25 AS col2
----
39
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + COUNT( 58 ) * + SUM( + - 80 ) + COUNT( * ) * COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1595
SELECT + COUNT ( 58 ) * + SUM ( + - 80 ) + COUNT ( * ) * COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1596
SELECT + 18 AS col1, - 98 + CASE + - 67 WHEN - MIN( - 27 ) - + 61 THEN + COALESCE ( COUNT( * ), + 33 + + + CAST( + 65 AS SIGNED ), 49 ) WHEN - AVG ( DISTINCT - 52 ) THEN + 36 * + 83 + - - 32 END col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1596
SELECT + 18 AS col1, - 98 + CASE + - 67 WHEN - MIN ( - 27 ) - + 61 THEN + COALESCE ( COUNT ( * ), + 33 + + + CAST ( + 65 AS INTEGER ), 49 ) WHEN - AVG ( DISTINCT - 52 ) THEN + 36 * + 83 + - - 32 END col1
----
18
NULL

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

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

query I rowsort
SELECT ALL - 20 * - 96
----
1920

query I rowsort
SELECT 15 * + 73 AS col1
----
1095

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT ALL + COALESCE ( 38, 23 * - - COALESCE ( + 6, + 91 ) DIV - + 19 + - 93 )
----
38

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + COALESCE ( 38, 23 * - - COALESCE ( + 6, + 91 ) / - + 19 + - 93 )
----
38

query I rowsort
SELECT ALL - - 18 - + 54
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT DISTINCT COUNT( * ) AS col2, - SUM( DISTINCT 69 ) AS col1
----
1
-69

skipif mysql # not compatible
query II rowsort label-1602
SELECT DISTINCT COUNT ( * ) AS col2, - SUM ( DISTINCT 69 ) AS col1
----
1
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1603
SELECT ALL + CAST( NULL AS SIGNED ) / - + SUM( ALL + 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + CAST ( NULL AS INTEGER ) / - + SUM ( ALL + 56 ) AS col0
----
NULL

query II rowsort
SELECT 7 AS col2, 44 * 74 col2
----
7
3256

query I rowsort
SELECT - 77 * 13 AS col2
----
-1001

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1608
SELECT - 31 AS col1, - SUM( - 72 ) * 77 + + + 34 AS col0
----
-31
5578

skipif mysql # not compatible
query II rowsort label-1608
SELECT - 31 AS col1, - SUM ( - 72 ) * 77 + + + 34 AS col0
----
-31
5578

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

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

query I rowsort
SELECT ALL + - 63 + + 22 * - ( - 88 )
----
1873

query I rowsort
SELECT DISTINCT 22 + - 3 - + 24
----
-5

query I rowsort
SELECT ALL 81 + + 70
----
151

query II rowsort
SELECT DISTINCT - 32 * - 49 AS col1, 91
----
1568
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1614
SELECT DISTINCT + CAST( CAST( - ( + - 91 ) AS SIGNED ) AS SIGNED ) + - 55 DIV 46
----
90

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT + CAST ( CAST ( - ( + - 91 ) AS INTEGER ) AS INTEGER ) + - 55 / 46
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT 23 * - MAX( - CASE + 72 WHEN 36 THEN + - 36 WHEN - 69 THEN + NULLIF ( - + ( 73 ), + 38 ) ELSE NULL END ) + SUM( ALL - + ( + NULLIF ( + - CAST( + 61 AS SIGNED ), 88 + - ( - 73 ) + - ( - 43 ) - - 73 ) ) ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT 23 * - MAX ( - CASE + 72 WHEN 36 THEN + - 36 WHEN - 69 THEN + NULLIF ( - + ( 73 ), + 38 ) ELSE NULL END ) + SUM ( ALL - + ( + NULLIF ( + - CAST ( + 61 AS INTEGER ), 88 + - ( - 73 ) + - ( - 43 ) - - 73 ) ) ) * 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT ALL - CAST( - CAST( - + COALESCE ( + - 3, - - 99 ) AS SIGNED ) AS SIGNED ) + - - NULLIF ( 8, - 46 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - CAST ( - CAST ( - + COALESCE ( + - 3, - - 99 ) AS INTEGER ) AS INTEGER ) + - - NULLIF ( 8, - 46 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL SUM( DISTINCT + 50 ) - - ( - + ( + + ( + 68 ) ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL SUM ( DISTINCT + 50 ) - - ( - + ( + + ( + 68 ) ) ) AS col0
----
-18

query I rowsort
SELECT CASE - 91 WHEN - + 68 THEN + 40 * 70 END - + + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT CASE + 10 WHEN + + SUM( DISTINCT 57 ) THEN + 1 * SUM( + 68 ) WHEN + - COALESCE ( + + 54, 41, - 44 ) * - NULLIF ( - - 64, - + 44 ) THEN - - COALESCE ( 37, - COALESCE ( + 9, + 65 * + + 27 + - COUNT( * ) ) + - - 28 ) * COUNT( * ) + 92 * - 4 END * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT CASE + 10 WHEN + + SUM ( DISTINCT 57 ) THEN + 1 * SUM ( + 68 ) WHEN + - COALESCE ( + + 54, 41, - 44 ) * - NULLIF ( - - 64, - + 44 ) THEN - - COALESCE ( 37, - COALESCE ( + 9, + 65 * + + 27 + - COUNT ( * ) ) + - - 28 ) * COUNT ( * ) + 92 * - 4 END * - 62
----
NULL

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

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

query I rowsort
SELECT + 58 - 0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + 98 * + - COALESCE ( 11, ( - CASE - + ( 71 ) WHEN + 84 * COUNT( ALL - 42 ) / 15 * 91 + + 90 THEN - 95 ELSE NULL END ), 0 ) + + ( - 3 ) AS col1
----
-1081

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 98 * + - COALESCE ( 11, ( - CASE - + ( 71 ) WHEN + 84 * COUNT ( ALL - 42 ) / 15 * 91 + + 90 THEN - 95 ELSE NULL END ), 0 ) + + ( - 3 ) AS col1
----
-1081

query I rowsort
SELECT ALL + ( + NULLIF ( - ( - 86 ), + + 91 ) ) * + 73 + + 93 + 27 AS col0
----
6398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1624
SELECT - - COUNT( * ) * COUNT( - + 44 ) + - MAX( ALL - 96 ) DIV 70 - - 56 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1624
SELECT - - COUNT ( * ) * COUNT ( - + 44 ) + - MAX ( ALL - 96 ) / 70 - - 56 AS col1
----
58

query I rowsort
SELECT ALL - - 50 col1
----
50

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

skipif mysql # not compatible
query I rowsort label-1626
SELECT MIN ( + 35 )
----
35

query I rowsort
SELECT - ( + 59 ) * - 26
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + 94 * - COUNT( * ) * + 45 * - - 79 - 76 + + - COUNT( * ) + COUNT( * ) * - COUNT( * ) * ( NULLIF ( + + 96, + 0 ) ) + + 37 + COUNT( * ) + + + 14 * - 0 + + 71 * + + 63 + - - 42
----
-329790

skipif mysql # not compatible
query I rowsort label-1628
SELECT + 94 * - COUNT ( * ) * + 45 * - - 79 - 76 + + - COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) * ( NULLIF ( + + 96, + 0 ) ) + + 37 + COUNT ( * ) + + + 14 * - 0 + + 71 * + + 63 + - - 42
----
-329790

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT + 0 + - 50 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT + 0 + - 50 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT 99 - - - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1631
SELECT 99 - - - COUNT ( * ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1632
SELECT + 14 + - - 35, CAST( + ( 49 ) AS SIGNED ) + - 37 + - 57 * - 60 AS col0
----
49
3432

skipif mysql # not compatible
query II rowsort label-1632
SELECT + 14 + - - 35, CAST ( + ( 49 ) AS INTEGER ) + - 37 + - 57 * - 60 AS col0
----
49
3432

query I rowsort
SELECT ALL + ( COALESCE ( + NULLIF ( - 14, 37 ), - 29 ) )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT 47 + COUNT( * ) AS col0, 66 AS col2
----
48
66

skipif mysql # not compatible
query II rowsort label-1634
SELECT 47 + COUNT ( * ) AS col0, 66 AS col2
----
48
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1635
SELECT DISTINCT - 15 + + COUNT( * ) * 14 AS col1, - 52 + 49
----
-1
-3

skipif mysql # not compatible
query II rowsort label-1635
SELECT DISTINCT - 15 + + COUNT ( * ) * 14 AS col1, - 52 + 49
----
-1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1636
SELECT ALL + + CAST( NULL AS SIGNED ) + 46 * CASE + 70 WHEN - 37 THEN + NULLIF ( + 58, + - 79 * + NULLIF ( COALESCE ( 49, - - ( + - ( - 51 ) ) ), + 17 ) + 51 / + COUNT( * ) ) END, 42 col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-1636
SELECT ALL + + CAST ( NULL AS INTEGER ) + 46 * CASE + 70 WHEN - 37 THEN + NULLIF ( + 58, + - 79 * + NULLIF ( COALESCE ( 49, - - ( + - ( - 51 ) ) ), + 17 ) + 51 / + COUNT ( * ) ) END, 42 col2
----
NULL
42

query II rowsort
SELECT - 50 + + - 19, + 82 AS col1
----
-69
82

query I rowsort
SELECT ALL + + 10 * + 44 + 39 - 13 AS col0
----
466

query I rowsort
SELECT 53 + + 19 * 6 AS col0
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1640
SELECT 28, - 2 DIV + MAX( DISTINCT 1 ) DIV - COUNT( * ) + 90 AS col2
----
28
92

skipif mysql # not compatible
query II rowsort label-1640
SELECT 28, - 2 / + MAX ( DISTINCT 1 ) / - COUNT ( * ) + 90 AS col2
----
28
92

query II rowsort
SELECT DISTINCT 39 AS col2, - 61 + 51 + + 50 * 30 - - 82 + - 51 - - - 93
----
39
1428

query I rowsort
SELECT 34 * + 66 AS col0
----
2244

query I rowsort
SELECT 72 + + 85
----
157

query I rowsort
SELECT DISTINCT + 73 + 63 + - 8 + + + 23
----
151

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

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

query I rowsort
SELECT 88 + - + 86
----
2

query I rowsort
SELECT 59 * + 35 AS col1
----
2065

query I rowsort
SELECT ALL - 56 * 39
----
-2184

query I rowsort
SELECT DISTINCT + 1 * + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT COUNT( - + 13 ) * ( 34 ) + + 86 + ( MIN( DISTINCT - - 38 ) ) AS col1
----
158

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( - + 13 ) * ( 34 ) + + 86 + ( MIN ( DISTINCT - - 38 ) ) AS col1
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT COALESCE ( 50, + COUNT( * ) + + 56 + - 1 + + 92 DIV + 46, - 99 * + 20 )
----
50

skipif mysql # not compatible
query I rowsort label-1651
SELECT COALESCE ( 50, + COUNT ( * ) + + 56 + - 1 + + 92 / + 46, - 99 * + 20 )
----
50

query I rowsort
SELECT + 20 * + + 37 AS col1
----
740

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

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

query II rowsort
SELECT - 2, - 15 AS col2
----
-2
-15

query II rowsort
SELECT DISTINCT + + 56, 45 AS col0
----
56
45

query II rowsort
SELECT DISTINCT + 96 AS col0, + 30 AS col0
----
96
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT - MAX( - + 87 ) * COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT - MAX ( - + 87 ) * COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1658
SELECT DISTINCT 83 DIV - - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT 83 / - - COUNT ( * ) AS col1
----
83

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

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

query II rowsort
SELECT + 25 col2, 52 AS col1
----
25
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT MAX( 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1661
SELECT MAX ( 49 ) AS col2
----
49

query II rowsort
SELECT + 59, ( - 97 ) AS col0
----
59
-97

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

skipif mysql # not compatible
query I rowsort label-1663
SELECT + - ( + + 25 ) / + CAST ( NULL AS INTEGER ) + - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT + 68 + 20 + - + COALESCE ( - 18, + - 58 + MAX( - 70 ) - + 68 + + + COUNT( * ) + - + 82 + + 46 * + 86 DIV 94 ) * - ( - COUNT( * ) )
----
106

skipif mysql # not compatible
query I rowsort label-1664
SELECT + 68 + 20 + - + COALESCE ( - 18, + - 58 + MAX ( - 70 ) - + 68 + + + COUNT ( * ) + - + 82 + + 46 * + 86 / 94 ) * - ( - COUNT ( * ) )
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-1665
SELECT ALL 51 + - 67 DIV - 25, + 47 AS col1
----
53
47

skipif mysql # not compatible
query II rowsort label-1665
SELECT ALL 51 + - 67 / - 25, + 47 AS col1
----
53
47

query II rowsort
SELECT DISTINCT 4 col1, + 59
----
4
59

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1668
SELECT DISTINCT - + 62 DIV 67 * - 24 AS col0, + 76
----
0
76

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT - + 62 / 67 * - 24 AS col0, + 76
----
0
76

query I rowsort
SELECT DISTINCT + 94 + + + 95 AS col0
----
189

query II rowsort
SELECT 48, + 77 AS col1
----
48
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT + 52 - + - COUNT( DISTINCT 25 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1671
SELECT + 52 - + - COUNT ( DISTINCT 25 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1672
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1, - 41 AS col2
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-1672
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, - 41 AS col2
----
NULL
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT - CAST( NULL AS SIGNED ) * 15 / + + COALESCE ( - - 33, COUNT( * ) ) AS col2
----
NULL

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

query I rowsort
SELECT - ( - - 37 )
----
-37

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

query I rowsort
SELECT - ( 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1677
SELECT DISTINCT NULLIF ( + + 38, - 15 - + 26 ), + CAST( NULL AS SIGNED ) AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-1677
SELECT DISTINCT NULLIF ( + + 38, - 15 - + 26 ), + CAST ( NULL AS INTEGER ) AS col2
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL - MAX( + + 30 ) - 19 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - MAX ( + + 30 ) - 19 AS col1
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - 67 * + COUNT( * ) * - 19 AS col2
----
1273

skipif mysql # not compatible
query I rowsort label-1680
SELECT - 67 * + COUNT ( * ) * - 19 AS col2
----
1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1681
SELECT ALL CASE - COUNT( * ) WHEN + - COUNT( * ) THEN + 5 + + + 7 + 6 DIV 89 WHEN 30 THEN - + 21 END
----
12

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL CASE - COUNT ( * ) WHEN + - COUNT ( * ) THEN + 5 + + + 7 + 6 / 89 WHEN 30 THEN - + 21 END
----
12

query I rowsort
SELECT + COALESCE ( 67, - 44 ) + - 55 col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT ALL - 25 DIV 54 DIV 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - 25 / 54 / 96 col2
----
0

query I rowsort
SELECT - 37 + ( + 88 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + MAX( DISTINCT 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-1685
SELECT + MAX ( DISTINCT 51 ) col2
----
51

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

query I rowsort
SELECT NULLIF ( 33, - 88 )
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1688
SELECT ALL - COUNT( * ) DIV + 50 * + 15 * - COUNT( * ) * - - 67 * - + SUM( ALL - 25 ) AS col2, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL - COUNT ( * ) / + 50 * + 15 * - COUNT ( * ) * - - 67 * - + SUM ( ALL - 25 ) AS col2, + COUNT ( * )
----
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL + - 69 * + 20 + + ( - COUNT( * ) ) AS col0
----
-1381

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + - 69 * + 20 + + ( - COUNT ( * ) ) AS col0
----
-1381

query I rowsort
SELECT - NULLIF ( - 91, - - 49 ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1693
SELECT - COUNT( * ) / + 16 + + - CAST( NULL AS SIGNED ) * - + 71 - CASE 65 WHEN 44 THEN - 67 * - + CAST( - + COUNT( * ) AS DECIMAL ) ELSE NULL END * + - 49 + + - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT - COUNT ( * ) / + 16 + + - CAST ( NULL AS INTEGER ) * - + 71 - CASE 65 WHEN 44 THEN - 67 * - + CAST ( - + COUNT ( * ) AS REAL ) ELSE NULL END * + - 49 + + - 96 AS col2
----
NULL

query I rowsort
SELECT - 69 * - 6 + + 29
----
443

query I rowsort
SELECT - 65 * 33 + 11 * 90 + - 38
----
-1193

query I rowsort
SELECT + 69 * + 1 - 35 * 57
----
-1926

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL - 40 * 93 - + ( - 23 ) + - 32 + - 46 + + COUNT( * ) * 3 + + 41
----
-3731

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL - 40 * 93 - + ( - 23 ) + - 32 + - 46 + + COUNT ( * ) * 3 + + 41
----
-3731

query I rowsort
SELECT 20 * 28 - - + 9
----
569

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL - SUM( - 34 ) * COUNT( DISTINCT 5 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - SUM ( - 34 ) * COUNT ( DISTINCT 5 ) AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1701
SELECT + + 71 DIV + COALESCE ( + NULLIF ( - + 74, - 2 - + 71 + - COALESCE ( - CAST( NULL AS SIGNED ), - CAST( + - 35 AS DECIMAL ) + 92 + - + 41 - + 16 * - 28 ) ), - - 7 DIV + 62, - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT + + 71 / + COALESCE ( + NULLIF ( - + 74, - 2 - + 71 + - COALESCE ( - CAST ( NULL AS INTEGER ), - CAST ( + - 35 AS REAL ) + 92 + - + 41 - + 16 * - 28 ) ), - - 7 / + 62, - 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL + COUNT( * ) * - COUNT( - 75 ) + 53 * 43 + + 78 + + + 1
----
2357

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + COUNT ( * ) * - COUNT ( - 75 ) + 53 * 43 + + 78 + + + 1
----
2357

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

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

query I rowsort
SELECT - 28 + + 38
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT - ( - COUNT( * ) ) * ( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - ( - COUNT ( * ) ) * ( 98 )
----
98

query I rowsort
SELECT + 74 + + + 97 + 89
----
260

query I rowsort
SELECT ALL + 1 * + + 50
----
50

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

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

query I rowsort
SELECT 97 + + 73 + - 98 * - + ( 75 ) AS col2
----
7520

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT DISTINCT 91 DIV - 5 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT 91 / - 5 AS col0
----
-18

query I rowsort
SELECT 13 + + 17 AS col2
----
30

query II rowsort
SELECT DISTINCT 70 AS col2, COALESCE ( 65, - 8, - 5 ) AS col0
----
70
65

query I rowsort
SELECT 94 * - 33 AS col0
----
-3102

query II rowsort
SELECT DISTINCT 27 AS col0, 53
----
27
53

query I rowsort
SELECT DISTINCT 49 + + + 54
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT COUNT( * ) + + SUM( 42 ) + + 38 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT COUNT ( * ) + + SUM ( 42 ) + + 38 AS col1
----
81

query I rowsort
SELECT ALL + 12 + 18 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT 32 DIV 85 - - + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1718
SELECT 32 / 85 - - + 49 AS col2
----
49

query III rowsort
SELECT ALL - - 83, + 27 * - 56 AS col2, 93 * 35 col2
----
83
-1512
3255

query I rowsort
SELECT DISTINCT + 88 + 66
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT ALL - 30 + + + 21 DIV + - 20
----
-31

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL - 30 + + + 21 / + - 20
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT SUM( DISTINCT - 64 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-1722
SELECT SUM ( DISTINCT - 64 ) col1
----
-64

query I rowsort
SELECT 84 + - - 28 * 89 col1
----
2576

query I rowsort
SELECT DISTINCT + 38 * - - 31
----
1178

query I rowsort
SELECT DISTINCT + + 54 + 43 AS col1
----
97

query I rowsort
SELECT ALL - + CASE + + 87 WHEN 14 * ( + 63 ) THEN - 58 * + + 98 WHEN + 87 * + 11 THEN NULL ELSE NULL END + + 94 AS col1
----
NULL

query I rowsort
SELECT ALL + 94 - 11 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT 63 DIV + 54 col1
----
1

skipif mysql # not compatible
query I rowsort label-1728
SELECT 63 / + 54 col1
----
1

query I rowsort
SELECT - 69 * 14
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT CASE + 97 WHEN + SUM( DISTINCT - - 25 ) THEN NULL ELSE + + COUNT( + 31 ) + - 45 END + + MIN( + 6 ) * 41
----
202

skipif mysql # not compatible
query I rowsort label-1730
SELECT CASE + 97 WHEN + SUM ( DISTINCT - - 25 ) THEN NULL ELSE + + COUNT ( + 31 ) + - 45 END + + MIN ( + 6 ) * 41
----
202

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1731
SELECT DISTINCT - 3 * + - COUNT( * ) DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT - 3 * + - COUNT ( * ) / - + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT + COALESCE ( - SUM( - 22 ), + - 65 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1732
SELECT + COALESCE ( - SUM ( - 22 ), + - 65 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT + MAX( 54 ) + - 51
----
3

skipif mysql # not compatible
query I rowsort label-1733
SELECT + MAX ( 54 ) + - 51
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT 14 * + + MIN( ALL + CAST( 0 AS SIGNED ) ) * - 65 + + 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1734
SELECT 14 * + + MIN ( ALL + CAST ( 0 AS INTEGER ) ) * - 65 + + 99 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1735
SELECT - 79, 61 + + + CAST( NULL AS SIGNED ) col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-1735
SELECT - 79, 61 + + + CAST ( NULL AS INTEGER ) col1
----
-79
NULL

query I rowsort
SELECT 96 * + 31 + - 65
----
2911

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

query II rowsort
SELECT ALL 87 AS col2, NULLIF ( - + 25, 93 + 91 )
----
87
-25

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1740
SELECT ALL 41, - ( + COUNT( * ) ) + + 21 col1
----
41
20

skipif mysql # not compatible
query II rowsort label-1740
SELECT ALL 41, - ( + COUNT ( * ) ) + + 21 col1
----
41
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1741
SELECT - 98 AS col0, + 47 + + CAST( NULL AS DECIMAL ) * - + 89 - + 37 + + - 33 AS col1
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-1741
SELECT - 98 AS col0, + 47 + + CAST ( NULL AS REAL ) * - + 89 - + 37 + + - 33 AS col1
----
-98
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1742
SELECT ALL 99, CAST( 2 AS SIGNED ) AS col1
----
99
2

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL 99, CAST ( 2 AS INTEGER ) AS col1
----
99
2

query II rowsort
SELECT 25, - 84 + - + 55 + + 83 AS col2
----
25
-56

query I rowsort
SELECT 62 * + 19
----
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT MAX( ALL - 30 ) * + + 45 + 66 - - 72 + - 81 * - 31
----
1299

skipif mysql # not compatible
query I rowsort label-1745
SELECT MAX ( ALL - 30 ) * + + 45 + 66 - - 72 + - 81 * - 31
----
1299

query II rowsort
SELECT ALL 65 AS col2, 94 * 18
----
65
1692

query I rowsort
SELECT ALL + 25 * 27 AS col0
----
675

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT 3 - - + 4 + - 48 - - 55 DIV 25
----
-39

skipif mysql # not compatible
query I rowsort label-1748
SELECT 3 - - + 4 + - 48 - - 55 / 25
----
-39

query I rowsort
SELECT DISTINCT 8 + - 68
----
-60

query I rowsort
SELECT ALL 43 + - 71 AS col2
----
-28

query II rowsort
SELECT 49, - 69 AS col1
----
49
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1752
SELECT ALL - ( + 81 ) * CASE 87 WHEN + - MAX( DISTINCT 79 ) * + 23 + + CAST( + - 82 AS SIGNED ) + + COALESCE ( 29, - COUNT( * ) ) THEN - - COALESCE ( + ( - 39 ), + + 94, + - 77, - 71 - - COALESCE ( + 43, COUNT( * ) ) ) WHEN - ( - 47 ) + + 13 + - + 8 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL - ( + 81 ) * CASE 87 WHEN + - MAX ( DISTINCT 79 ) * + 23 + + CAST ( + - 82 AS INTEGER ) + + COALESCE ( 29, - COUNT ( * ) ) THEN - - COALESCE ( + ( - 39 ), + + 94, + - 77, - 71 - - COALESCE ( + 43, COUNT ( * ) ) ) WHEN - ( - 47 ) + + 13 + - + 8 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1753
SELECT DISTINCT + + CAST( + COUNT( DISTINCT - 53 ) AS SIGNED ) * - - 32 + - ( + + COUNT( * ) ) * + 86 DIV 72 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT + + CAST ( + COUNT ( DISTINCT - 53 ) AS INTEGER ) * - - 32 + - ( + + COUNT ( * ) ) * + 86 / 72 AS col1
----
31

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

skipif mysql # not compatible
query I rowsort label-1754
SELECT 86 / - - CAST ( NULL AS INTEGER ) + 4 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT CAST( NULL AS SIGNED ) + + 28 * + 66 * 2 * + COALESCE ( - COUNT( 36 ), - 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT CAST ( NULL AS INTEGER ) + + 28 * + 66 * 2 * + COALESCE ( - COUNT ( 36 ), - 8 ) AS col0
----
NULL

query II rowsort
SELECT ALL - + 34 col2, + 1 + - + 3
----
-34
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT DISTINCT - 27 AS col1, - 5 * + 89 * + ( 30 ) * - CASE ( + 13 ) WHEN - 53 / - - 40 + - MIN( ALL + 57 ) + + 61 + CASE - 57 WHEN + 58 * + NULLIF ( + 24, - + 4 + + 47 ) THEN - - 28 END THEN NULL WHEN - 13 * - 71 THEN - 76 / 8 ELSE NULL END
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-1758
SELECT DISTINCT - 27 AS col1, - 5 * + 89 * + ( 30 ) * - CASE ( + 13 ) WHEN - 53 / - - 40 + - MIN ( ALL + 57 ) + + 61 + CASE - 57 WHEN + 58 * + NULLIF ( + 24, - + 4 + + 47 ) THEN - - 28 END THEN NULL WHEN - 13 * - 71 THEN - 76 / 8 ELSE NULL END
----
-27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT + + 65 * - 45 + + 53 * - 80 - + - 24 * COUNT( * ) + + + 60 * - NULLIF ( - + 58, 16 * + 37 ) AS col0
----
-3661

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT + + 65 * - 45 + + 53 * - 80 - + - 24 * COUNT ( * ) + + + 60 * - NULLIF ( - + 58, 16 * + 37 ) AS col0
----
-3661

query III rowsort
SELECT ALL - 58 AS col2, - 64, - 42 + 40 - 27 * 15 * + 79 + - 73 * + ( ( + 51 ) ) * - 38 * 33 AS col2
----
-58
-64
4636645

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1763
SELECT + 12 AS col2, - SUM( 63 ) * - 49 + + MAX( DISTINCT 31 ) + + + 2 * + + 55 + + 44 + + MIN( ALL + + 52 ) col1
----
12
3324

skipif mysql # not compatible
query II rowsort label-1763
SELECT + 12 AS col2, - SUM ( 63 ) * - 49 + + MAX ( DISTINCT 31 ) + + + 2 * + + 55 + + 44 + + MIN ( ALL + + 52 ) col1
----
12
3324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT - + COUNT( * ) DIV + 50 * - 78 - + + 86
----
-86

skipif mysql # not compatible
query I rowsort label-1764
SELECT - + COUNT ( * ) / + 50 * - 78 - + + 86
----
-86

query II rowsort
SELECT + 96 AS col2, 40 * + + 39 AS col2
----
96
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT 70 * + COUNT( ALL 17 ) * - 70
----
-4900

skipif mysql # not compatible
query I rowsort label-1766
SELECT 70 * + COUNT ( ALL 17 ) * - 70
----
-4900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT ALL + + 76 / + 22 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + + 76 / + 22 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1768
SELECT DISTINCT 46 DIV COUNT( * ) * + 71
----
3266

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT 46 / COUNT ( * ) * + 71
----
3266

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT 72 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1769
SELECT 72 / + 61 AS col2
----
1

query I rowsort
SELECT 78 - - + 85 * - 23 AS col1
----
-1877

query I rowsort
SELECT ALL + 28 * + 82
----
2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1772
SELECT DISTINCT + CAST( - 7 AS SIGNED ), - 47 * + ( + + 5 ) + COUNT( * ) DIV - + 72 * + 72 AS col0
----
-7
-235

skipif mysql # not compatible
query II rowsort label-1772
SELECT DISTINCT + CAST ( - 7 AS INTEGER ), - 47 * + ( + + 5 ) + COUNT ( * ) / - + 72 * + 72 AS col0
----
-7
-235

query II rowsort
SELECT + 63 + 98 AS col2, - 34 AS col2
----
161
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT + ( + - COUNT( * ) ) DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-1774
SELECT + ( + - COUNT ( * ) ) / + 11
----
0

query I rowsort
SELECT + 66 * + 10 + + + 96 AS col0
----
756

query I rowsort
SELECT ALL + 38 + - - 89
----
127

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

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

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

query I rowsort
SELECT ALL - 66 + - - 22 col0
----
-44

query I rowsort
SELECT - ( 46 ) * + 98 AS col2
----
-4508

query I rowsort
SELECT DISTINCT - 84 + + CASE - - 39 WHEN - - 49 THEN - - ( 70 ) END * - + 31
----
NULL

query I rowsort
SELECT - 61 + 3 + - 89
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ALL - MIN( - - 75 ) + 31
----
-44

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL - MIN ( - - 75 ) + 31
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - 37 + - + 27 + + 44 + - COUNT( * ) / - CASE - + 91 WHEN 90 THEN + COUNT( 80 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT - 37 + - + 27 + + 44 + - COUNT ( * ) / - CASE - + 91 WHEN 90 THEN + COUNT ( 80 ) END
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 30, - 48 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + COUNT( 44 ) * 17 + - 32 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + COUNT ( 44 ) * 17 + - 32 AS col2
----
-15

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

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

query I rowsort
SELECT - + 15 * - 96 * 9 + 84
----
13044

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT + - NULLIF ( + COUNT( * ), - 27 ) + + 42 + + 87 - + 3 + - 54 * + 40 col2
----
-2035

skipif mysql # not compatible
query I rowsort label-1789
SELECT + - NULLIF ( + COUNT ( * ), - 27 ) + + 42 + + 87 - + 3 + - 54 * + 40 col2
----
-2035

onlyif mysql # aggregate syntax: 
query II rowsort label-1790
SELECT DISTINCT SUM( DISTINCT - - 1 ) col1, SUM( + 64 ) AS col0
----
1
64

skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT SUM ( DISTINCT - - 1 ) col1, SUM ( + 64 ) AS col0
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT DISTINCT + 56 * + COUNT( * ) - - CASE COUNT( * ) WHEN - COUNT( - - 81 ) THEN NULL WHEN - 12 * ( 61 ) + - COALESCE ( + + 89, - + 52, + + 2 * - 31 * + + 44 + - - 39 + + 15 - - ( + 64 ) * NULLIF ( - - 18, + + 77 ) ) THEN - - 81 ELSE + - 19 * 7 END * - 3 + + - 26
----
429

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT + 56 * + COUNT ( * ) - - CASE COUNT ( * ) WHEN - COUNT ( - - 81 ) THEN NULL WHEN - 12 * ( 61 ) + - COALESCE ( + + 89, - + 52, + + 2 * - 31 * + + 44 + - - 39 + + 15 - - ( + 64 ) * NULLIF ( - - 18, + + 77 ) ) THEN - - 81 ELSE + - 19 * 7 END * - 3 + + - 26
----
429

query I rowsort
SELECT - + 89 * + + 94
----
-8366

query I rowsort
SELECT + + ( + - 31 ) * + ( + 50 )
----
-1550

query II rowsort
SELECT - 28 * + 49 + + 99 AS col0, - 58 - ( + 18 ) AS col1
----
-1273
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT - - 48 DIV 77 - + - 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1795
SELECT - - 48 / 77 - + - 50 AS col2
----
50

query I rowsort
SELECT + - 8 * + - 62
----
496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT - + COUNT( DISTINCT + 83 ) / + - ( ( - + CASE - CAST( - 76 AS SIGNED ) WHEN + 21 THEN NULL WHEN + 6 THEN 11 ELSE NULL END ) ) + - MAX( ALL - + 18 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT - + COUNT ( DISTINCT + 83 ) / + - ( ( - + CASE - CAST ( - 76 AS INTEGER ) WHEN + 21 THEN NULL WHEN + 6 THEN 11 ELSE NULL END ) ) + - MAX ( ALL - + 18 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1798
SELECT + 32 * - 17 + - - 41 + 88 / - + 27 + + ( - COUNT( * ) ) - - - CAST( NULL AS SIGNED ) / + SUM( + 34 ) / - + 25 * - - 19 + 0 + + CAST( COALESCE ( - 7, + COALESCE ( 56, 87, 37 + COUNT( * ) * + + ( + 1 ) ) ) AS SIGNED ) * + 80 - + 77 + - AVG ( - 6 ) * + 8 * + 45 * - - MIN( ALL + + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT + 32 * - 17 + - - 41 + 88 / - + 27 + + ( - COUNT ( * ) ) - - - CAST ( NULL AS INTEGER ) / + SUM ( + 34 ) / - + 25 * - - 19 + 0 + + CAST ( COALESCE ( - 7, + COALESCE ( 56, 87, 37 + COUNT ( * ) * + + ( + 1 ) ) ) AS INTEGER ) * + 80 - + 77 + - AVG ( - 6 ) * + 8 * + 45 * - - MIN ( ALL + + 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT + MIN( DISTINCT 31 ) * + CAST( - 57 AS SIGNED )
----
-1767

skipif mysql # not compatible
query I rowsort label-1799
SELECT + MIN ( DISTINCT 31 ) * + CAST ( - 57 AS INTEGER )
----
-1767

onlyif mysql # aggregate syntax: 
query II rowsort label-1800
SELECT DISTINCT + COUNT( * ) * - 87, - NULLIF ( + 37, + 94 + - COUNT( * ) * - COUNT( * ) ) + + COUNT( * ) AS col1
----
-87
-36

skipif mysql # not compatible
query II rowsort label-1800
SELECT DISTINCT + COUNT ( * ) * - 87, - NULLIF ( + 37, + 94 + - COUNT ( * ) * - COUNT ( * ) ) + + COUNT ( * ) AS col1
----
-87
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 56 * + COUNT( * ) + ( + 74 ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-1801
SELECT 56 * + COUNT ( * ) + ( + 74 ) AS col2
----
130

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

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

query I rowsort
SELECT ALL 40 * + ( + 67 ) AS col0
----
2680

query I rowsort
SELECT NULLIF ( - - 62, 3 ) col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT ALL 81 * 43 + + COUNT( * ) AS col2, 54 * + 13
----
3484
702

skipif mysql # not compatible
query II rowsort label-1805
SELECT ALL 81 * 43 + + COUNT ( * ) AS col2, 54 * + 13
----
3484
702

query I rowsort
SELECT + COALESCE ( + - 91, - 92 * + 44 )
----
-91

query I rowsort
SELECT - 21 + - ( 90 ) AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL + NULLIF ( NULLIF ( - 55, 2 / + NULLIF ( 88, + 59 + - 80 + + 9 * - COUNT( * ) ) ), 45 * - + 13 * 98 + - 41 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + NULLIF ( NULLIF ( - 55, 2 / + NULLIF ( 88, + 59 + - 80 + + 9 * - COUNT ( * ) ) ), 45 * - + 13 * 98 + - 41 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT MIN( DISTINCT 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1809
SELECT MIN ( DISTINCT 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL ( + + COUNT( * ) ) * ( - - ( - + 42 ) ) + - 1 + 8 - 34 + - - 28 + + + 90
----
49

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL ( + + COUNT ( * ) ) * ( - - ( - + 42 ) ) + - 1 + 8 - 34 + - - 28 + + + 90
----
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT ALL + 71 * COUNT( * ) + - 92 + - 60 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + 71 * COUNT ( * ) + - 92 + - 60 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1813
SELECT - 62, 67 DIV + 49 AS col2
----
-62
1

skipif mysql # not compatible
query II rowsort label-1813
SELECT - 62, 67 / + 49 AS col2
----
-62
1

query I rowsort
SELECT DISTINCT 26 * - 93
----
-2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT DISTINCT + NULLIF ( 83, + + COUNT( + 27 ) ) + - COUNT( * ) DIV 2
----
83

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + NULLIF ( 83, + + COUNT ( + 27 ) ) + - COUNT ( * ) / 2
----
83

query I rowsort
SELECT + 49 - + + 95 - + + 45
----
-91

query I rowsort
SELECT - 2 - + + 12 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT - 7 DIV - + 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 7 / - + 50 col2
----
0

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

query I rowsort
SELECT ALL 93 - + NULLIF ( 59, 92 + + 79 ) AS col1
----
34

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

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

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

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

query I rowsort
SELECT ALL - + 34 * - - 18 + 44 col2
----
-568

query I rowsort
SELECT - + 43 + + 87
----
44

query I rowsort
SELECT - ( 58 ) * + + 99 * - 45 - + 97
----
258293

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1826
SELECT - - 87 DIV CASE - ( 41 ) WHEN - 6 THEN 72 - - 85 WHEN CASE + 74 WHEN + 94 THEN NULL ELSE + SUM( - - 14 ) END THEN NULL WHEN + 44 THEN NULL ELSE - + 52 + + 22 END + 26, 63 AS col2
----
24
63

skipif mysql # not compatible
query II rowsort label-1826
SELECT - - 87 / CASE - ( 41 ) WHEN - 6 THEN 72 - - 85 WHEN CASE + 74 WHEN + 94 THEN NULL ELSE + SUM ( - - 14 ) END THEN NULL WHEN + 44 THEN NULL ELSE - + 52 + + 22 END + 26, 63 AS col2
----
24
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + 30 * COUNT( * ) - 74 * - 88
----
6542

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 30 * COUNT ( * ) - 74 * - 88
----
6542

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT ALL - + 42 * 56 * COUNT( * ) col1, - 95 AS col1
----
-2352
-95

skipif mysql # not compatible
query II rowsort label-1828
SELECT ALL - + 42 * 56 * COUNT ( * ) col1, - 95 AS col1
----
-2352
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT - CASE - 22 WHEN + ( + 61 ) THEN - 70 ELSE NULL END / ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT - CASE - 22 WHEN + ( + 61 ) THEN - 70 ELSE NULL END / ( COUNT ( * ) ) AS col1
----
NULL

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

query I rowsort
SELECT ALL - 5 + - 11 AS col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1832
SELECT ( + 28 ) * 32 - 77 - - 75 + - + 55 + + 4 DIV + - 63 + + COALESCE ( - COUNT( * ), + 34 ) * - + 82 DIV COUNT( * ) - - - 18 + 2 * 66 AS col1
----
1035

skipif mysql # not compatible
query I rowsort label-1832
SELECT ( + 28 ) * 32 - 77 - - 75 + - + 55 + + 4 / + - 63 + + COALESCE ( - COUNT ( * ), + 34 ) * - + 82 / COUNT ( * ) - - - 18 + 2 * 66 AS col1
----
1035

query I rowsort
SELECT ALL 34 + + - 89
----
-55

query I rowsort
SELECT ALL 27 + 46 * - 6 + 15 - - 47 AS col1
----
-187

query I rowsort
SELECT ALL + 38 + - 5 + + 77 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT DISTINCT - 84 + + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT - 84 + + + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT DISTINCT ( 4 ) * COUNT( * ) + + 31, + COUNT( * ) col1
----
35
1

skipif mysql # not compatible
query II rowsort label-1837
SELECT DISTINCT ( 4 ) * COUNT ( * ) + + 31, + COUNT ( * ) col1
----
35
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL MAX( DISTINCT - 8 ) + + 98 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL MAX ( DISTINCT - 8 ) + + 98 AS col1
----
90

query I rowsort
SELECT - 76 * + 75 - 64 col0
----
-5764

query I rowsort
SELECT ALL 50 * 48 AS col0
----
2400

query I rowsort
SELECT 13 + - - 27
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT ALL COUNT( * ) + 10 AS col0, CASE + + COUNT( * ) WHEN - - 38 THEN NULL ELSE + 34 END + + + 83
----
11
117

skipif mysql # not compatible
query II rowsort label-1842
SELECT ALL COUNT ( * ) + 10 AS col0, CASE + + COUNT ( * ) WHEN - - 38 THEN NULL ELSE + 34 END + + + 83
----
11
117

query I rowsort
SELECT 3 + + 25
----
28

query I rowsort
SELECT 38 - - 63 + - 72
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT - 38 * COUNT( * ) * NULLIF ( - 87, - - NULLIF ( 44, - + COUNT( * ) ) ) * - 16 - - 87 - + + 2 * - 39
----
-52731

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 38 * COUNT ( * ) * NULLIF ( - 87, - - NULLIF ( 44, - + COUNT ( * ) ) ) * - 16 - - 87 - + + 2 * - 39
----
-52731

query I rowsort
SELECT DISTINCT - 71 * + 95 + 40
----
-6705

query I rowsort
SELECT DISTINCT 96 - - 87
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT + 44 + + - CAST( NULL AS SIGNED ) + + - 69 * - CASE - - COUNT( * ) WHEN - 31 * 62 THEN NULL WHEN - + 11 THEN COUNT( * ) WHEN + 46 * - COUNT( * ) + + 31 - - COUNT( * ) - 61 + + 90 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT + 44 + + - CAST ( NULL AS INTEGER ) + + - 69 * - CASE - - COUNT ( * ) WHEN - 31 * 62 THEN NULL WHEN - + 11 THEN COUNT ( * ) WHEN + 46 * - COUNT ( * ) + + 31 - - COUNT ( * ) - 61 + + 90 THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - 22 * + COUNT ( * ) + - 59 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT DISTINCT COUNT( * ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT COUNT ( * ) * - 66
----
-66

query I rowsort
SELECT 53 * - + 65 + + 93
----
-3352

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT - CAST( 68 AS SIGNED ) + + + 84
----
16

skipif mysql # not compatible
query I rowsort label-1854
SELECT - CAST ( 68 AS INTEGER ) + + + 84
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1855
SELECT 76 * 32 + - - CASE - CAST( NULL AS SIGNED ) WHEN + 12 THEN + + NULLIF ( - 36, + 41 ) + CASE + CASE COUNT( * ) WHEN + ( + 4 ) * 1 THEN + ( 63 ) / - 59 * + - 73 WHEN + 20 THEN NULL END WHEN - COUNT( + 0 ) THEN NULL WHEN + + 61 THEN - MAX( ALL + + 28 ) * - + 49 + + 31 + - 79 + - - ( - SUM( 40 ) ) / 85 / CASE - + COUNT( * ) WHEN 52 + + 63 * + COUNT( * ) THEN - 54 * - 6 ELSE 56 END ELSE 1 * COUNT( * ) END - + COUNT( * ) * + 38 END * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT 76 * 32 + - - CASE - CAST ( NULL AS INTEGER ) WHEN + 12 THEN + + NULLIF ( - 36, + 41 ) + CASE + CASE COUNT ( * ) WHEN + ( + 4 ) * 1 THEN + ( 63 ) / - 59 * + - 73 WHEN + 20 THEN NULL END WHEN - COUNT ( + 0 ) THEN NULL WHEN + + 61 THEN - MAX ( ALL + + 28 ) * - + 49 + + 31 + - 79 + - - ( - SUM ( 40 ) ) / 85 / CASE - + COUNT ( * ) WHEN 52 + + 63 * + COUNT ( * ) THEN - 54 * - 6 ELSE 56 END ELSE 1 * COUNT ( * ) END - + COUNT ( * ) * + 38 END * - 14
----
NULL

query I rowsort
SELECT ALL - 75 * - + 70 col1
----
5250

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL - COALESCE ( MAX( + 27 ), - 35 )
----
-27

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - COALESCE ( MAX ( + 27 ), - 35 )
----
-27

query I rowsort
SELECT DISTINCT + 67 + + - 85 + - 42
----
-60

query I rowsort
SELECT DISTINCT - + 57 * + + 73 + + + 58 AS col0
----
-4103

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT - CASE 56 WHEN - 1 + - COUNT( * ) THEN NULL ELSE - 4 END
----
4

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - CASE 56 WHEN - 1 + - COUNT ( * ) THEN NULL ELSE - 4 END
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL + + 77 + - COUNT( ALL + 61 ) + + 27 * + - COUNT( * ) * + - ( + 98 ) AS col2
----
2722

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + + 77 + - COUNT ( ALL + 61 ) + + 27 * + - COUNT ( * ) * + - ( + 98 ) AS col2
----
2722

query I rowsort
SELECT ALL - 76 + 1 AS col2
----
-75

query I rowsort
SELECT + 81 * - 73 + - 97 + - 13 * + 37
----
-6491

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL - 7 + + - 79 + + + MAX( ALL + + 28 ) * 8 * + 29
----
6410

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - 7 + + - 79 + + + MAX ( ALL + + 28 ) * 8 * + 29
----
6410

query I rowsort
SELECT DISTINCT + 52 + + 63 * - NULLIF ( - 20, - CASE + 97 WHEN - 2 THEN NULL ELSE + 99 END ) AS col2
----
1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT DISTINCT - 98 * 25 * CAST( 73 AS SIGNED ) AS col2
----
-178850

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - 98 * 25 * CAST ( 73 AS INTEGER ) AS col2
----
-178850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1868
SELECT COUNT( * ) + 77 * 77 * + 56 + 30 DIV + 88 * + 50 * COALESCE ( - - COUNT( * ), - 92, - MAX( ALL - 46 ) * + + 42 + - COUNT( * ) ) AS col1
----
332025

skipif mysql # not compatible
query I rowsort label-1868
SELECT COUNT ( * ) + 77 * 77 * + 56 + 30 / + 88 * + 50 * COALESCE ( - - COUNT ( * ), - 92, - MAX ( ALL - 46 ) * + + 42 + - COUNT ( * ) ) AS col1
----
332025

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

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

query I rowsort
SELECT ALL - 80 * + + 29 AS col2
----
-2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1871
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + 34 * + - 80 * + 87 * - COUNT( * )
----
NULL
236640

skipif mysql # not compatible
query II rowsort label-1871
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + 34 * + - 80 * + 87 * - COUNT ( * )
----
NULL
236640

query I rowsort
SELECT ALL - 7 - + - 24
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT 3 DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT 3 / + 29
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT NULLIF ( - 57, + 51 + CAST( NULL AS SIGNED ) * 5 / + SUM( + - 69 ) ) + 47
----
-10

skipif mysql # not compatible
query I rowsort label-1874
SELECT NULLIF ( - 57, + 51 + CAST ( NULL AS INTEGER ) * 5 / + SUM ( + - 69 ) ) + 47
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT DISTINCT NULLIF ( - + 32, + 11 * - 83 ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT NULLIF ( - + 32, + 11 * - 83 ) / - 68
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1876
SELECT COUNT( * ) * + 86 * 68, NULLIF ( - COUNT( * ), - 89 * + + 8 ) + + + COUNT( * ) * - COUNT( * ) AS col2
----
5848
-2

skipif mysql # not compatible
query II rowsort label-1876
SELECT COUNT ( * ) * + 86 * 68, NULLIF ( - COUNT ( * ), - 89 * + + 8 ) + + + COUNT ( * ) * - COUNT ( * ) AS col2
----
5848
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL SUM( 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL SUM ( 25 ) AS col2
----
25

query I rowsort
SELECT DISTINCT 25 - + 23 * + 48
----
-1079

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT ALL + 76 AS col0, 51 + CASE - AVG ( DISTINCT + 83 ) WHEN 89 THEN + - 58 + - 97 WHEN - 68 + + 10 THEN NULL ELSE COUNT( * ) * + 32 * 34 END + 9 * - + 67
----
76
536

skipif mysql # not compatible
query II rowsort label-1879
SELECT ALL + 76 AS col0, 51 + CASE - AVG ( DISTINCT + 83 ) WHEN 89 THEN + - 58 + - 97 WHEN - 68 + + 10 THEN NULL ELSE COUNT ( * ) * + 32 * 34 END + 9 * - + 67
----
76
536

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL 12 * - 15 + - NULLIF ( - 14, - COUNT( * ) )
----
-166

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL 12 * - 15 + - NULLIF ( - 14, - COUNT ( * ) )
----
-166

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

query I rowsort
SELECT + 51 * - 61
----
-3111

onlyif mysql # aggregate syntax: 
query II rowsort label-1883
SELECT COUNT( - + 2 ) - SUM( DISTINCT + + 79 ) + - 41 col1, 20 + - 77 AS col2
----
-119
-57

skipif mysql # not compatible
query II rowsort label-1883
SELECT COUNT ( - + 2 ) - SUM ( DISTINCT + + 79 ) + - 41 col1, 20 + - 77 AS col2
----
-119
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-1884
SELECT - 86, 12 + + 80 + - 49 - 18 DIV ( + 92 ) AS col1
----
-86
43

skipif mysql # not compatible
query II rowsort label-1884
SELECT - 86, 12 + + 80 + - 49 - 18 / ( + 92 ) AS col1
----
-86
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT + 8 + + + COALESCE ( - 30, + - 42 * - - 31, + CAST( NULL AS SIGNED ), - COUNT( ALL - 14 ) ) + + 46 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-1885
SELECT + 8 + + + COALESCE ( - 30, + - 42 * - - 31, + CAST ( NULL AS INTEGER ), - COUNT ( ALL - 14 ) ) + + 46 * COUNT ( * )
----
24

query I rowsort
SELECT ALL + 46 + + 2 + 20 AS col1
----
68

query II rowsort
SELECT DISTINCT 3, 81 AS col2
----
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT 37 - + 45 + + COUNT( * ) + + MAX( + + 72 ) * 91 AS col2
----
6545

skipif mysql # not compatible
query I rowsort label-1888
SELECT 37 - + 45 + + COUNT ( * ) + + MAX ( + + 72 ) * 91 AS col2
----
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT DISTINCT + 97 + + - MAX( DISTINCT + 58 )
----
39

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT + 97 + + - MAX ( DISTINCT + 58 )
----
39

query I rowsort
SELECT DISTINCT - 38 + 26 AS col2
----
-12

query I rowsort
SELECT ALL + 63 + 8 AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT + - 83 DIV ( - ( 96 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT + - 83 / ( - ( 96 ) )
----
0

query I rowsort
SELECT + 24 + - - 79 AS col2
----
103

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

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

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

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

query II rowsort
SELECT - + 3 + - 91 + 85 AS col2, + 49 + COALESCE ( + ( 69 ), 7, + 23, 37 * + ( - + 99 ) + + ( - 50 ) )
----
-9
118

query I rowsort
SELECT ALL 74 * + 21
----
1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT COALESCE ( COALESCE ( CAST( NULL AS SIGNED ), - 14 ), + MIN( + 48 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-1898
SELECT COALESCE ( COALESCE ( CAST ( NULL AS INTEGER ), - 14 ), + MIN ( + 48 ) )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1899
SELECT ALL + COALESCE ( + 32, + 63 + + - 74, - 18 * + + 24 DIV 97 - - ( 25 ) - COUNT( * ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL + COALESCE ( + 32, + 63 + + - 74, - 18 * + + 24 / 97 - - ( 25 ) - COUNT ( * ) ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT + COALESCE ( - ( - + 5 ), + + 25 * + COUNT( * ) ) col0
----
5

skipif mysql # not compatible
query I rowsort label-1900
SELECT + COALESCE ( - ( - + 5 ), + + 25 * + COUNT ( * ) ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT COALESCE ( + ( + MAX( ALL 6 ) ), + 66, - 59 ) * + 83 * - COUNT( * ) - - 23 - CASE + 58 WHEN + COUNT( * ) THEN CASE 43 WHEN + COUNT( * ) THEN + - 99 * + 45 END + + 70 - - + COUNT( * ) END * 9 * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT COALESCE ( + ( + MAX ( ALL 6 ) ), + 66, - 59 ) * + 83 * - COUNT ( * ) - - 23 - CASE + 58 WHEN + COUNT ( * ) THEN CASE 43 WHEN + COUNT ( * ) THEN + - 99 * + 45 END + + 70 - - + COUNT ( * ) END * 9 * 74
----
NULL

query I rowsort
SELECT - 26 + 29 * + 20 + + 70
----
624

onlyif mysql # aggregate syntax: 
query II rowsort label-1903
SELECT + 13, COUNT( - 55 ) * - 38 * + 54 AS col2
----
13
-2052

skipif mysql # not compatible
query II rowsort label-1903
SELECT + 13, COUNT ( - 55 ) * - 38 * + 54 AS col2
----
13
-2052

query II rowsort
SELECT DISTINCT + 58 * - + 95, + 97 * - 71 AS col2
----
-5510
-6887

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

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT + ( - MAX ( DISTINCT - - 11 ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT - 55 * + - ( - + 49 ) / - 42 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT - 55 * + - ( - + 49 ) / - 42 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT - COALESCE ( ( - + 40 ), - 96 ) * - 42 + - COUNT( * ) - 24 * - 2 AS col1
----
-1633

skipif mysql # not compatible
query I rowsort label-1907
SELECT - COALESCE ( ( - + 40 ), - 96 ) * - 42 + - COUNT ( * ) - 24 * - 2 AS col1
----
-1633

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

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

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

query I rowsort
SELECT - 19 * - 56 AS col0
----
1064

query I rowsort
SELECT - 26 + - 65 AS col1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT - - COUNT( * ) + - 19 + + 26 col1
----
8

skipif mysql # not compatible
query I rowsort label-1913
SELECT - - COUNT ( * ) + - 19 + + 26 col1
----
8

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

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL MAX ( 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL + 61 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL + 61 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + + 50 - - + COALESCE ( COUNT( * ), - + 64, - 75 )
----
51

skipif mysql # not compatible
query I rowsort label-1916
SELECT + + 50 - - + COALESCE ( COUNT ( * ), - + 64, - 75 )
----
51

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

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

query I rowsort
SELECT ALL 45 + - 53
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT ALL - - 36 + - 79 + - + 83 DIV 22 * 23 + CASE + 26 WHEN - 3 THEN NULL ELSE MAX( ALL NULLIF ( + - 2, + 2 ) ) END * + + COUNT( * ) DIV 83 col2
----
-112

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - - 36 + - 79 + - + 83 / 22 * 23 + CASE + 26 WHEN - 3 THEN NULL ELSE MAX ( ALL NULLIF ( + - 2, + 2 ) ) END * + + COUNT ( * ) / 83 col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT + 29 + - 11 + - 76 - - - COUNT( 55 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-1920
SELECT + 29 + - 11 + - 76 - - - COUNT ( 55 ) AS col1
----
-59

query I rowsort
SELECT DISTINCT + 26 + - 72 AS col2
----
-46

query I rowsort
SELECT DISTINCT - + 86 + 8
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT - CASE + - 6 WHEN + 82 THEN 25 + + MIN( ALL + + 39 ) + + - COUNT( * ) + 35 WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT - CASE + - 6 WHEN + 82 THEN 25 + + MIN ( ALL + + 39 ) + + - COUNT ( * ) + 35 WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + COUNT( DISTINCT - - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( DISTINCT - - 97 )
----
1

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

skipif mysql # not compatible
query I rowsort label-1925
SELECT + 56 + ( + - CAST ( NULL AS REAL ) ) + - - 86 col1
----
NULL

query I rowsort
SELECT ALL - 34 + + 50 AS col0
----
16

query I rowsort
SELECT DISTINCT 30 * + + 1 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL SUM( - 80 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL SUM ( - 80 ) col0
----
-80

query I rowsort
SELECT + + 54 * - 17
----
-918

query I rowsort
SELECT + 18 + 4 AS col1
----
22

query II rowsort
SELECT + ( + - 19 ) AS col1, ( + 33 ) * + 10 + - + 98 AS col2
----
-19
232

query I rowsort
SELECT DISTINCT + - 81 * - 46 - + 28 AS col1
----
3698

query II rowsort
SELECT - ( - 34 ), 13 AS col0
----
34
13

query I rowsort
SELECT ALL COALESCE ( - 30, NULLIF ( + 76, + + 34 - 91 ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1935
SELECT DISTINCT ( - + 55 ) * - CASE - 38 WHEN 12 THEN - - COALESCE ( - COUNT( * ), - - 62 - + + ( + 81 ) + + MAX( + 49 ) * - 92 + 94 * - 20 * + - COALESCE ( - 42, + 37 + - - 6 + + 35 * - 94 + - 49 ) + - + 34 * + 69, + 32 * 60 DIV - CAST( NULL AS SIGNED ) ) DIV - 61 + CAST( - 29 AS SIGNED ) DIV + MIN( DISTINCT 72 ) * + MAX( - 14 ) * - 35 WHEN 40 DIV NULLIF ( - 96, - 60 ) THEN + 22 ELSE + CAST( 71 AS SIGNED ) * 98 END
----
382690

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT ( - + 55 ) * - CASE - 38 WHEN 12 THEN - - COALESCE ( - COUNT ( * ), - - 62 - + + ( + 81 ) + + MAX ( + 49 ) * - 92 + 94 * - 20 * + - COALESCE ( - 42, + 37 + - - 6 + + 35 * - 94 + - 49 ) + - + 34 * + 69, + 32 * 60 / - CAST ( NULL AS INTEGER ) ) / - 61 + CAST ( - 29 AS INTEGER ) / + MIN ( DISTINCT 72 ) * + MAX ( - 14 ) * - 35 WHEN 40 / NULLIF ( - 96, - 60 ) THEN + 22 ELSE + CAST ( 71 AS INTEGER ) * 98 END
----
382690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1936
SELECT 44 * 80 + 20 * 72 + + CAST( - + NULLIF ( - 94, + 95 * + CAST( + 19 AS SIGNED ) - COUNT( * ) ) AS SIGNED ) col0
----
5054

skipif mysql # not compatible
query I rowsort label-1936
SELECT 44 * 80 + 20 * 72 + + CAST ( - + NULLIF ( - 94, + 95 * + CAST ( + 19 AS INTEGER ) - COUNT ( * ) ) AS INTEGER ) col0
----
5054

query I rowsort
SELECT - 32 + + 42 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1938
SELECT + 3 * - 84 col2, 10 * COALESCE ( - + 91, - + 24 ) + - + SUM( ALL ( + 57 ) ) AS col1
----
-252
-967

skipif mysql # not compatible
query II rowsort label-1938
SELECT + 3 * - 84 col2, 10 * COALESCE ( - + 91, - + 24 ) + - + SUM ( ALL ( + 57 ) ) AS col1
----
-252
-967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT ALL + CAST( NULL AS SIGNED ) / + 29 - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + CAST ( NULL AS INTEGER ) / + 29 - 21 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 26 * 32 AS col0, CASE - 10 WHEN 42 THEN - 14 END AS col2
----
832
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1942
SELECT + 97 + - - 21 + + + COUNT( * ), 46 AS col2
----
119
46

skipif mysql # not compatible
query II rowsort label-1942
SELECT + 97 + - - 21 + + + COUNT ( * ), 46 AS col2
----
119
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT COALESCE ( + 16, + 0, - 96 ) * - + ( COUNT( * ) )
----
-16

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT COALESCE ( + 16, + 0, - 96 ) * - + ( COUNT ( * ) )
----
-16

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

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 31 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 67, + 4 )
----
67

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1950
SELECT - COALESCE ( + COUNT( * ), + 59 DIV 30 + 61 DIV 91 * 4 + + 67 ) * + 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1950
SELECT - COALESCE ( + COUNT ( * ), + 59 / 30 + 61 / 91 * 4 + + 67 ) * + 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - COALESCE ( - + 68, 1, - 76 - COUNT( * ) + COUNT( * ) * - 74 ) + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-1951
SELECT - COALESCE ( - + 68, 1, - 76 - COUNT ( * ) + COUNT ( * ) * - 74 ) + - COUNT ( * )
----
67

query I rowsort
SELECT ALL 88 * - 50 + 97 + + 33 col1
----
-4270

query I rowsort
SELECT + - 51 col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT - COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) + - 57 * - + 54 + 57 * - CASE + 48 WHEN - ( - 23 ) + + - NULLIF ( + - 42, - 66 / - - COUNT( * ) + + 94 + 44 ) + - SUM( ALL 53 ) THEN COALESCE ( + 31, + 11 ) WHEN - 41 + + + 93 THEN NULL WHEN 56 THEN NULL ELSE NULL END, + 56 + + 21 * 53 * + + 95 * COUNT( * ) ) + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-1954
SELECT - COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) + - 57 * - + 54 + 57 * - CASE + 48 WHEN - ( - 23 ) + + - NULLIF ( + - 42, - 66 / - - COUNT ( * ) + + 94 + 44 ) + - SUM ( ALL 53 ) THEN COALESCE ( + 31, + 11 ) WHEN - 41 + + + 93 THEN NULL WHEN 56 THEN NULL ELSE NULL END, + 56 + + 21 * 53 * + + 95 * COUNT ( * ) ) + - 59
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1955
SELECT DISTINCT + ( - COUNT( * ) ), - 44 + + 29 * CAST( + 88 AS SIGNED ) * + 26 AS col1
----
-1
66308

skipif mysql # not compatible
query II rowsort label-1955
SELECT DISTINCT + ( - COUNT ( * ) ), - 44 + + 29 * CAST ( + 88 AS INTEGER ) * + 26 AS col1
----
-1
66308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT ALL - CAST( NULL AS SIGNED ) * + 3 / + 59 + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - CAST ( NULL AS INTEGER ) * + 3 / + 59 + + 32
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT 20 * ( - MAX( DISTINCT 93 ) ) * 62 * 65 - + ( - 59 ) + - - ( - 69 ) AS col1
----
-7495810

skipif mysql # not compatible
query I rowsort label-1958
SELECT 20 * ( - MAX ( DISTINCT 93 ) ) * 62 * 65 - + ( - 59 ) + - - ( - 69 ) AS col1
----
-7495810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1959
SELECT ALL - ( 33 ) + CAST( NULL AS SIGNED ) + + 97 * - + 35 * 33 + 50 AS col0, + 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-1959
SELECT ALL - ( 33 ) + CAST ( NULL AS INTEGER ) + + 97 * - + 35 * 33 + 50 AS col0, + 46 AS col2
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - SUM( - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-1960
SELECT - SUM ( - 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1961
SELECT CAST( - 4 AS SIGNED ), - 4
----
-4
-4

skipif mysql # not compatible
query II rowsort label-1961
SELECT CAST ( - 4 AS INTEGER ), - 4
----
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT COALESCE ( COUNT( * ), + + 89 ) - - + COALESCE ( + 79, + 98 ) + - + 34
----
46

skipif mysql # not compatible
query I rowsort label-1962
SELECT COALESCE ( COUNT ( * ), + + 89 ) - - + COALESCE ( + 79, + 98 ) + - + 34
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - 63 * + 23 * - COUNT( * ) + 21 col1
----
1470

skipif mysql # not compatible
query I rowsort label-1963
SELECT - 63 * + 23 * - COUNT ( * ) + 21 col1
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL + ( 10 ) - + + 45 + + + COUNT( * ) + + - 35 * + + 18 * + - 46 AS col0
----
28946

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + ( 10 ) - + + 45 + + + COUNT ( * ) + + - 35 * + + 18 * + - 46 AS col0
----
28946

query II rowsort
SELECT DISTINCT ( 11 ) AS col1, 60
----
11
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1966
SELECT - 29 * + COUNT( * ) DIV + + ( 86 ) + + 17 + + 6
----
23

skipif mysql # not compatible
query I rowsort label-1966
SELECT - 29 * + COUNT ( * ) / + + ( 86 ) + + 17 + + 6
----
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1967
SELECT ALL - + 91 DIV - 79 AS col2, CAST( NULL AS SIGNED ) * - 85 * + + CASE + 12 WHEN + 2 THEN - 21 WHEN - 83 + + 16 THEN NULL ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1967
SELECT ALL - + 91 / - 79 AS col2, CAST ( NULL AS INTEGER ) * - 85 * + + CASE + 12 WHEN + 2 THEN - 21 WHEN - 83 + + 16 THEN NULL ELSE NULL END
----
1
NULL

query I rowsort
SELECT DISTINCT - 95 - + 59
----
-154

query I rowsort
SELECT ALL ( - 88 ) * 24 + - 90
----
-2202

query II rowsort
SELECT DISTINCT 31 AS col1, 75
----
31
75

query I rowsort
SELECT 16 - + 52 col1
----
-36

query II rowsort
SELECT ( + 35 ) * 58 * + 98 - - + ( 5 ) AS col1, 53
----
198945
53

query I rowsort
SELECT ALL ( + CASE 62 WHEN 75 * 14 THEN + 69 END ) * + - 3 + + 84 - - 72 + - - ( + 8 ) + + 26 + + 61 / + 63 * + 85 + 65 / + 71 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 42 col2, - 10 * - 64 * 42 * 38 AS col1
----
42
1021440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1975
SELECT 6 + - + CASE + 65 WHEN + + CAST( NULL AS DECIMAL ) THEN NULL WHEN + 66 THEN 51 END * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT 6 + - + CASE + 65 WHEN + + CAST ( NULL AS REAL ) THEN NULL WHEN + 66 THEN 51 END * 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1976
SELECT DISTINCT 96 AS col2, - 92 + COUNT( ALL 44 )
----
96
-91

skipif mysql # not compatible
query II rowsort label-1976
SELECT DISTINCT 96 AS col2, - 92 + COUNT ( ALL 44 )
----
96
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1977
SELECT DISTINCT - 84, + COUNT( * ) / - - 76 + + + CASE + - 9 WHEN 73 * ( MAX( ALL - + 20 ) ) + CASE + + 11 WHEN + - ( ( 77 ) ) THEN - 20 + + COUNT( * ) + - + 66 + - NULLIF ( - 68, + + 51 ) * 56 * - 23 * + MIN( ALL + + 74 ) * - - 32 END THEN NULL WHEN MIN( + 14 ) / + 56 THEN + ( + 7 ) WHEN - 19 + COALESCE ( + 62, + + 32 * - 30 ) THEN NULL END AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-1977
SELECT DISTINCT - 84, + COUNT ( * ) / - - 76 + + + CASE + - 9 WHEN 73 * ( MAX ( ALL - + 20 ) ) + CASE + + 11 WHEN + - ( ( 77 ) ) THEN - 20 + + COUNT ( * ) + - + 66 + - NULLIF ( - 68, + + 51 ) * 56 * - 23 * + MIN ( ALL + + 74 ) * - - 32 END THEN NULL WHEN MIN ( + 14 ) / + 56 THEN + ( + 7 ) WHEN - 19 + COALESCE ( + 62, + + 32 * - 30 ) THEN NULL END AS col1
----
-84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1978
SELECT DISTINCT - CASE - - SUM( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) WHEN + 73 + 9 + + 51 THEN NULL WHEN - 53 * - 10 + + 83 * + 20 * CASE - ( + COUNT( * ) ) WHEN + 53 THEN - - 69 * ( - 78 ) - - CASE WHEN - 83 IS NOT NULL THEN - + 21 WHEN NOT NULL NOT BETWEEN + 71 * + ( - CASE + 73 WHEN + - 11 THEN NULL WHEN 71 THEN - + COUNT( - 50 ) ELSE - 84 + 71 END ) * + COUNT( * ) + + 93 AND ( + CASE 23 WHEN + 98 THEN - COUNT( DISTINCT + 98 ) END / - 98 + - 80 ) THEN NULL END WHEN 93 THEN - 44 + - 74 * 92 END + 26 THEN NULL ELSE + 24 + COUNT( * ) END
----
-25

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - CASE - - SUM ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) WHEN + 73 + 9 + + 51 THEN NULL WHEN - 53 * - 10 + + 83 * + 20 * CASE - ( + COUNT ( * ) ) WHEN + 53 THEN - - 69 * ( - 78 ) - - CASE WHEN - 83 IS NOT NULL THEN - + 21 WHEN NOT NULL NOT BETWEEN + 71 * + ( - CASE + 73 WHEN + - 11 THEN NULL WHEN 71 THEN - + COUNT ( - 50 ) ELSE - 84 + 71 END ) * + COUNT ( * ) + + 93 AND ( + CASE 23 WHEN + 98 THEN - COUNT ( DISTINCT + 98 ) END / - 98 + - 80 ) THEN NULL END WHEN 93 THEN - 44 + - 74 * 92 END + 26 THEN NULL ELSE + 24 + COUNT ( * ) END
----
-25

query II rowsort
SELECT ALL - 96 AS col0, 61 AS col2
----
-96
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1980
SELECT 72 AS col0, 34 * + - MIN( + + 59 ) AS col1
----
72
-2006

skipif mysql # not compatible
query II rowsort label-1980
SELECT 72 AS col0, 34 * + - MIN ( + + 59 ) AS col1
----
72
-2006

query II rowsort
SELECT DISTINCT - 73 col2, 52
----
-73
52

query I rowsort
SELECT ALL 43 * + 9 AS col2
----
387

query I rowsort
SELECT 48 * - 69 AS col1
----
-3312

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT ALL 55 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL 55 / 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT DISTINCT 73 DIV 38 * + 60 * - 60
----
-3600

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT 73 / 38 * + 60 * - 60
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT - 22 DIV - 10 + 30
----
32

skipif mysql # not compatible
query I rowsort label-1986
SELECT - 22 / - 10 + 30
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT 67 DIV 38 col1
----
1

skipif mysql # not compatible
query I rowsort label-1987
SELECT 67 / 38 col1
----
1

query I rowsort
SELECT ALL 7 + + 62
----
69

query I rowsort
SELECT 37 + 19
----
56

query I rowsort
SELECT 73 * 67
----
4891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT - 40 * - 71 + + CAST( NULL AS SIGNED ) + 86 * - 69 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT - 40 * - 71 + + CAST ( NULL AS INTEGER ) + 86 * - 69 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT COALESCE ( + - 7, - - 28, - - 35 - 95 + ( - 18 ) - 43 * 7 DIV - 95 * 76 + + COUNT( + - 14 ) ) * 35 * 88 + 18 + ( - - 38 ) * 9 AS col2
----
-21200

skipif mysql # not compatible
query I rowsort label-1992
SELECT COALESCE ( + - 7, - - 28, - - 35 - 95 + ( - 18 ) - 43 * 7 / - 95 * 76 + + COUNT ( + - 14 ) ) * 35 * 88 + 18 + ( - - 38 ) * 9 AS col2
----
-21200

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

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + 34 + - 10 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1994
SELECT + 27 * 19 - + 25 AS col0, + 60 + + CASE + + MAX( ALL - + ( + 81 ) ) WHEN + + 50 THEN NULL WHEN - - 92 * CAST( 43 AS SIGNED ) - + 90 THEN + + 61 * - 33 - - + 81 END * + - 25
----
488
NULL

skipif mysql # not compatible
query II rowsort label-1994
SELECT + 27 * 19 - + 25 AS col0, + 60 + + CASE + + MAX ( ALL - + ( + 81 ) ) WHEN + + 50 THEN NULL WHEN - - 92 * CAST ( 43 AS INTEGER ) - + 90 THEN + + 61 * - 33 - - + 81 END * + - 25
----
488
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1995
SELECT ALL - NULLIF ( + + 40, + 18 ) AS col0, CASE + 73 WHEN CAST( + + 74 AS SIGNED ) * - CAST( NULL AS SIGNED ) - - - 13 + + COALESCE ( 66, 61 * + + 52 + - - COUNT( * ) ) * 16 + - + 27 * - COALESCE ( + CAST( + + 72 AS SIGNED ), 82 * + + 95 ) + - 39 THEN + 58 ELSE NULL END
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-1995
SELECT ALL - NULLIF ( + + 40, + 18 ) AS col0, CASE + 73 WHEN CAST ( + + 74 AS INTEGER ) * - CAST ( NULL AS INTEGER ) - - - 13 + + COALESCE ( 66, 61 * + + 52 + - - COUNT ( * ) ) * 16 + - + 27 * - COALESCE ( + CAST ( + + 72 AS INTEGER ), 82 * + + 95 ) + - 39 THEN + 58 ELSE NULL END
----
-40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT + ( ( 86 ) ) + + CASE + CAST( NULL AS SIGNED ) WHEN + 2 * 30 + + + 96 + - 53 THEN - 94 * - CAST( - COUNT( * ) AS SIGNED ) + - - 49 WHEN - 3 THEN NULL WHEN + 84 * 0 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT + ( ( 86 ) ) + + CASE + CAST ( NULL AS INTEGER ) WHEN + 2 * 30 + + + 96 + - 53 THEN - 94 * - CAST ( - COUNT ( * ) AS INTEGER ) + - - 49 WHEN - 3 THEN NULL WHEN + 84 * 0 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL SUM( - - 71 ) + 97 + 71
----
239

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL SUM ( - - 71 ) + 97 + 71
----
239

query I rowsort
SELECT + COALESCE ( - 30, 35 ) AS col2
----
-30

query II rowsort
SELECT - 61 AS col1, 63 AS col1
----
-61
63

query I rowsort
SELECT ALL - - 3 AS col2
----
3

query I rowsort
SELECT - 77 + - 9 AS col2
----
-86

query I rowsort
SELECT - 52 * 39 + + 49 - - 75
----
-1904

query I rowsort
SELECT 14 + + 96 - - - 49 * 29 AS col0
----
-1311

query I rowsort
SELECT ALL - - 56 * + - 2
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT ALL - 4 AS col0, 83 + - - COUNT( * ) AS col2
----
-4
84

skipif mysql # not compatible
query II rowsort label-2005
SELECT ALL - 4 AS col0, 83 + - - COUNT ( * ) AS col2
----
-4
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT ALL 73 AS col2, 85 * - COUNT( * ) * - SUM( + 58 ) * - 49 - + 82
----
73
-241652

skipif mysql # not compatible
query II rowsort label-2006
SELECT ALL 73 AS col2, 85 * - COUNT ( * ) * - SUM ( + 58 ) * - 49 - + 82
----
73
-241652

query I rowsort
SELECT ALL NULLIF ( + 6, 5 ) AS col1
----
6

query I rowsort
SELECT ALL + 91 - + - 67 - + 61 * + 0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT 97 DIV - ( - 19 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2009
SELECT 97 / - ( - 19 ) AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT 32 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-2010
SELECT 32 / - 42
----
0

query I rowsort
SELECT 3 + - 77
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2012
SELECT DISTINCT - COUNT( * ) DIV + + 49, 5 * + ( 35 ) + - - ( 56 ) * 19 AS col0
----
0
1239

skipif mysql # not compatible
query II rowsort label-2012
SELECT DISTINCT - COUNT ( * ) / + + 49, 5 * + ( 35 ) + - - ( 56 ) * 19 AS col0
----
0
1239

query II rowsort
SELECT 13 + + - 0 AS col0, + 93
----
13
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT COUNT( 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT COUNT ( 48 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2015
SELECT 22 DIV + ( - MAX( - + 53 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT 22 / + ( - MAX ( - + 53 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT ALL - COALESCE ( COUNT( * ), - 92, - COUNT( * ) ) DIV 72 + + COUNT( * ) + - 15 - - 63
----
49

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL - COALESCE ( COUNT ( * ), - 92, - COUNT ( * ) ) / 72 + + COUNT ( * ) + - 15 - - 63
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT COALESCE ( + 40, + COUNT( * ) + + + 70, - COUNT( * ) ) * + - 74 * - 72 - - 69
----
213189

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT COALESCE ( + 40, + COUNT ( * ) + + + 70, - COUNT ( * ) ) * + - 74 * - 72 - - 69
----
213189

query I rowsort
SELECT ALL 68 + + 67 + - 33
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT 38 + + 27 * + + NULLIF ( + ( + COUNT( DISTINCT - 96 ) ), - 46 * + 30 * 87 )
----
65

skipif mysql # not compatible
query I rowsort label-2019
SELECT 38 + + 27 * + + NULLIF ( + ( + COUNT ( DISTINCT - 96 ) ), - 46 * + 30 * 87 )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2020
SELECT ALL SUM( + + 85 ), 67 DIV - - 34 AS col2
----
85
1

skipif mysql # not compatible
query II rowsort label-2020
SELECT ALL SUM ( + + 85 ), 67 / - - 34 AS col2
----
85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT 48 + + 1 + + 30 + + ( 21 ) * + - 68 + + + COUNT( * )
----
-1348

skipif mysql # not compatible
query I rowsort label-2021
SELECT 48 + + 1 + + 30 + + ( 21 ) * + - 68 + + + COUNT ( * )
----
-1348

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT CASE - 38 WHEN - + SUM( 8 ) THEN NULL WHEN + - 19 * - + COUNT( * ) THEN + 89 + + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT CASE - 38 WHEN - + SUM ( 8 ) THEN NULL WHEN + - 19 * - + COUNT ( * ) THEN + 89 + + - 0 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2023
SELECT ALL - 27 * - 34, - MIN( DISTINCT 7 ) DIV + 88 AS col0
----
918
0

skipif mysql # not compatible
query II rowsort label-2023
SELECT ALL - 27 * - 34, - MIN ( DISTINCT 7 ) / + 88 AS col0
----
918
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - 37 * - 37 + + CASE + 51 WHEN 40 THEN + CAST( - + 24 AS SIGNED ) WHEN + 98 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - 37 * - 37 + + CASE + 51 WHEN 40 THEN + CAST ( - + 24 AS INTEGER ) WHEN + 98 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL 42 * + - 11 + + COUNT( * )
----
-461

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL 42 * + - 11 + + COUNT ( * )
----
-461

query II rowsort
SELECT DISTINCT 11 * - 16 + - 90 + - 50 AS col1, - ( 89 )
----
-316
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT 41 - - - 7 * + + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2027
SELECT 41 - - - 7 * + + COUNT ( * ) AS col0
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT DISTINCT - 62 * + NULLIF ( + 94, + - 29 * - + COUNT( * ) ) * + - 38 + + ( - + COUNT( * ) ) + COUNT( * ) + + COUNT( * ) * + + 35 AS col1
----
221499

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT - 62 * + NULLIF ( + 94, + - 29 * - + COUNT ( * ) ) * + - 38 + + ( - + COUNT ( * ) ) + COUNT ( * ) + + COUNT ( * ) * + + 35 AS col1
----
221499

query I rowsort
SELECT ALL - 33 * - 26 + + 67 AS col1
----
925

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT - MIN( 94 ), 51 AS col2
----
-94
51

skipif mysql # not compatible
query II rowsort label-2031
SELECT - MIN ( 94 ), 51 AS col2
----
-94
51

query I rowsort
SELECT + 48 * 42 AS col0
----
2016

query I rowsort
SELECT + - 11 * 71
----
-781

query I rowsort
SELECT + + 41 * - 91
----
-3731

query I rowsort
SELECT + + 36 + 29 AS col2
----
65

query I rowsort
SELECT + COALESCE ( + - 32, + 62 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT MIN( ALL + + 33 ) * 79 AS col1
----
2607

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT MIN ( ALL + + 33 ) * 79 AS col1
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL + CASE + 71 WHEN - + 46 / 23 THEN + 90 WHEN + - COUNT( * ) THEN + + 74 ELSE NULL END * ( + 67 ) / CASE - 5 WHEN - 19 THEN - 83 WHEN + + COUNT( * ) + + + 62 THEN NULL ELSE - 1 END * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL + CASE + 71 WHEN - + 46 / 23 THEN + 90 WHEN + - COUNT ( * ) THEN + + 74 ELSE NULL END * ( + 67 ) / CASE - 5 WHEN - 19 THEN - 83 WHEN + + COUNT ( * ) + + + 62 THEN NULL ELSE - 1 END * + 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT DISTINCT CAST( - 75 AS SIGNED ) - 57
----
-132

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT CAST ( - 75 AS INTEGER ) - 57
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT ALL + 6 DIV 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + 6 / 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT - COUNT( * ) - - 58 + - - COUNT( * ) * - SUM( + 52 ) + - 38 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - COUNT ( * ) - - 58 + - - COUNT ( * ) * - SUM ( + 52 ) + - 38 AS col0
----
-33

query II rowsort
SELECT + 64 * + 56 AS col1, + 81
----
3584
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2043
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) AS col0, - 54 * - + 34 + - + 74 AS col1
----
NULL
1762

skipif mysql # not compatible
query II rowsort label-2043
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) AS col0, - 54 * - + 34 + - + 74 AS col1
----
NULL
1762

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + 86 + + - ( + 17 ) * - COUNT( * ) + - 92
----
11

skipif mysql # not compatible
query I rowsort label-2044
SELECT + 86 + + - ( + 17 ) * - COUNT ( * ) + - 92
----
11

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

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

query I rowsort
SELECT + 4 * + 20 AS col1
----
80

query I rowsort
SELECT + 62 + + - 50
----
12

query I rowsort
SELECT - ( - 56 )
----
56

query I rowsort
SELECT ALL - 85 + - 77 + 18 + + 49
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT - COUNT( * ) - - 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2050
SELECT - COUNT ( * ) - - 61 AS col1
----
60

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

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL SUM ( 61 )
----
61

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

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

query I rowsort
SELECT - 9 - 94
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2054
SELECT - COUNT( * ) DIV 84 * 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT - COUNT ( * ) / 84 * 15 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL + SUM( ALL - ( - 99 ) ) + + 55 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + SUM ( ALL - ( - 99 ) ) + + 55 AS col0
----
154

query I rowsort
SELECT + 38 * + 72
----
2736

query I rowsort
SELECT DISTINCT + 68 + + 89 - 9 + - - 96 - - 34 * + 29 * + 11
----
11090

query I rowsort
SELECT - 73 + - 19
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2059
SELECT ALL CASE + + 90 WHEN - + 44 THEN + + 95 WHEN CAST( + 20 AS DECIMAL ) * 33 + + COUNT( ALL 86 ) * - 37 + AVG ( DISTINCT 74 ) THEN NULL ELSE NULL END + - ( + - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL CASE + + 90 WHEN - + 44 THEN + + 95 WHEN CAST ( + 20 AS REAL ) * 33 + + COUNT ( ALL 86 ) * - 37 + AVG ( DISTINCT 74 ) THEN NULL ELSE NULL END + - ( + - 4 )
----
NULL

query I rowsort
SELECT DISTINCT + 41 * + 65
----
2665

query I rowsort
SELECT - COALESCE ( + + 6, - 94 ) * + + 51
----
-306

query I rowsort
SELECT ALL + 23 * + 46
----
1058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2063
SELECT ALL 52 DIV + - 74 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL 52 / + - 74 + - - COUNT ( * )
----
1

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

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

query I rowsort
SELECT DISTINCT - 9 * - ( - 69 ) * - 64 + - 12
----
39732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2066
SELECT + - MIN( 23 ) DIV 33 * - MAX( + 1 ) + 80
----
80

skipif mysql # not compatible
query I rowsort label-2066
SELECT + - MIN ( 23 ) / 33 * - MAX ( + 1 ) + 80
----
80

query II rowsort
SELECT + - 65 * - ( - + 79 ), + 87 + 43 col0
----
-5135
130

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

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + CAST ( + 89 AS INTEGER ) col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT + MIN( ALL + 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT + MIN ( ALL + 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT ALL + - COUNT( ALL - - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + - COUNT ( ALL - - 87 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL 84 * - COUNT( DISTINCT + 39 ) - 31
----
-115

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL 84 * - COUNT ( DISTINCT + 39 ) - 31
----
-115

query I rowsort
SELECT + 9 + - + ( - 70 ) AS col1
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT + + 38 * - 18 + - - MIN( ALL - - 85 ) AS col0
----
-599

skipif mysql # not compatible
query I rowsort label-2074
SELECT + + 38 * - 18 + - - MIN ( ALL - - 85 ) AS col0
----
-599

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

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

query I rowsort
SELECT ALL + + 92 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT AVG ( DISTINCT - 86 ) * 32 * + CASE CASE - 19 WHEN + + 82 * - 27 + - + 83 THEN CAST( - - ( 75 ) AS SIGNED ) + - 63 * - COALESCE ( + - COUNT( * ), 12, 45 ) END WHEN + + 64 - + + AVG ( DISTINCT - + 34 ) + - + 68 THEN + - COUNT( * ) * + + 74 WHEN - COUNT( * ) THEN - 11 ELSE NULL END + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT AVG ( DISTINCT - 86 ) * 32 * + CASE CASE - 19 WHEN + + 82 * - 27 + - + 83 THEN CAST ( - - ( 75 ) AS INTEGER ) + - 63 * - COALESCE ( + - COUNT ( * ), 12, 45 ) END WHEN + + 64 - + + AVG ( DISTINCT - + 34 ) + - + 68 THEN + - COUNT ( * ) * + + 74 WHEN - COUNT ( * ) THEN - 11 ELSE NULL END + - 98 AS col1
----
NULL

query I rowsort
SELECT + + 94 + + - 57
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT - COUNT( * ) * + 76 * + 52 + 51 * + 98 + + 65 * COUNT( * ) * - 3 + 35 - + + 27 + + 89 * + 51 - - 91 AS col1
----
5489

skipif mysql # not compatible
query I rowsort label-2079
SELECT - COUNT ( * ) * + 76 * + 52 + 51 * + 98 + + 65 * COUNT ( * ) * - 3 + 35 - + + 27 + + 89 * + 51 - - 91 AS col1
----
5489

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2080
SELECT ALL CAST( NULL AS DECIMAL ) * + ( + - NULLIF ( 33, 41 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL CAST ( NULL AS REAL ) * + ( + - NULLIF ( 33, 41 ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT + 4 DIV - + 22 * - 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2081
SELECT + 4 / - + 22 * - 10 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2082
SELECT MAX ( - ( + + 48 ) )
----
-48

query I rowsort
SELECT DISTINCT + 75 * - NULLIF ( + 78, - 5 * + 48 ) + + 59 AS col1
----
-5791

query I rowsort
SELECT ALL + 92 * - 10 + 40 AS col2
----
-880

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL ( - 58 ) * + CAST( NULLIF ( + CASE ( + 66 ) WHEN 56 THEN 78 / + 97 + COUNT( * ) ELSE NULL END, - 72 + + - 8 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL ( - 58 ) * + CAST ( NULLIF ( + CASE ( + 66 ) WHEN 56 THEN 78 / + 97 + COUNT ( * ) ELSE NULL END, - 72 + + - 8 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL 27 + SUM( DISTINCT 11 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL 27 + SUM ( DISTINCT 11 ) AS col2
----
38

query I rowsort
SELECT + 33 + + - ( - 49 ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL NULLIF ( - + COUNT( DISTINCT - + 99 ), + 82 / 11 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL NULLIF ( - + COUNT ( DISTINCT - + 99 ), + 82 / 11 ) AS col1
----
-1

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

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

query II rowsort
SELECT 96 AS col2, 3
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL CASE + 53 WHEN 23 * - COUNT( * ) THEN - + 53 - ( - - 22 ) + + 46 / 81 * - + 9 * - 65 END + + + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL CASE + 53 WHEN 23 * - COUNT ( * ) THEN - + 53 - ( - - 22 ) + + 46 / 81 * - + 9 * - 65 END + + + 80 AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2094
SELECT - 52 AS col2, + ( + CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
-52
-1

skipif mysql # not compatible
query II rowsort label-2094
SELECT - 52 AS col2, + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
-52
-1

query I rowsort
SELECT + 14 + - 71
----
-57

query I rowsort
SELECT ALL NULLIF ( + 71, + 59 * + 92 - 83 )
----
71

query I rowsort
SELECT ALL 96 + + 20 - - 39
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2098
SELECT ALL + 55 + + + NULLIF ( + COALESCE ( - 37, - CAST( NULL AS SIGNED ), + 12 + + 64 + - 29 + - - CAST( NULL AS SIGNED ) + - - 51 * COALESCE ( - 35, + + CASE + + COUNT( * ) WHEN + + 27 + 24 + + ( 99 ) + + 9 * + 5 * - + 30 + 34 * + - CAST( - NULLIF ( 43, - + CAST( NULL AS SIGNED ) ) AS DECIMAL ) * - ( - COUNT( * ) ) THEN NULL WHEN + 99 + - + 50 THEN - 23 * - CAST( + + ( - + 17 ) AS SIGNED ) * - 83 + 57 WHEN - 98 DIV COUNT( * ) THEN NULL ELSE - ( + SUM( DISTINCT - + 6 ) ) + 73 DIV - CASE ( - 72 ) WHEN - 48 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 7 ELSE NULL END END + 68 DIV - ( 97 + - MAX( ALL + 1 ) * 31 ) ) ), + 11 * - 52 )
----
18

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + 55 + + + NULLIF ( + COALESCE ( - 37, - CAST ( NULL AS INTEGER ), + 12 + + 64 + - 29 + - - CAST ( NULL AS INTEGER ) + - - 51 * COALESCE ( - 35, + + CASE + + COUNT ( * ) WHEN + + 27 + 24 + + ( 99 ) + + 9 * + 5 * - + 30 + 34 * + - CAST ( - NULLIF ( 43, - + CAST ( NULL AS INTEGER ) ) AS REAL ) * - ( - COUNT ( * ) ) THEN NULL WHEN + 99 + - + 50 THEN - 23 * - CAST ( + + ( - + 17 ) AS INTEGER ) * - 83 + 57 WHEN - 98 / COUNT ( * ) THEN NULL ELSE - ( + SUM ( DISTINCT - + 6 ) ) + 73 / - CASE ( - 72 ) WHEN - 48 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 7 ELSE NULL END END + 68 / - ( 97 + - MAX ( ALL + 1 ) * 31 ) ) ), + 11 * - 52 )
----
18

query I rowsort
SELECT ALL - 0 + + - 91
----
-91

query I rowsort
SELECT 82 + + + ( + 46 ) * - 24 + + 29 AS col1
----
-993

query I rowsort
SELECT ALL + 55 * - 83 AS col0
----
-4565

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

skipif mysql # not compatible
query I rowsort label-2102
SELECT CAST ( NULL AS REAL ) + + - COUNT ( * ) col2
----
NULL

query II rowsort
SELECT ALL - + 47 AS col2, 79 AS col0
----
-47
79

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT DISTINCT - SUM( ALL + 88 ), - 23 col0
----
-88
-23

skipif mysql # not compatible
query II rowsort label-2105
SELECT DISTINCT - SUM ( ALL + 88 ), - 23 col0
----
-88
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2106
SELECT DISTINCT + CAST( + + 38 AS SIGNED ) DIV + NULLIF ( + 86, + + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + CAST ( + + 38 AS INTEGER ) / + NULLIF ( + 86, + + 57 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - 81 - + COUNT( * ) * + 84 AS col2
----
-165

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - 81 - + COUNT ( * ) * + 84 AS col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT 13 * + MIN( - 93 )
----
-1209

skipif mysql # not compatible
query I rowsort label-2109
SELECT 13 * + MIN ( - 93 )
----
-1209

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2110
SELECT ALL - - 40 AS col1, + 32 AS col2, 93 * CAST( NULL AS SIGNED )
----
40
32
NULL

skipif mysql # not compatible
query III rowsort label-2110
SELECT ALL - - 40 AS col1, + 32 AS col2, 93 * CAST ( NULL AS INTEGER )
----
40
32
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2112
SELECT + COUNT ( * ) * + COUNT ( * ) + + 75 AS col2
----
76

onlyif mysql # aggregate syntax: 
query III rowsort label-2113
SELECT 89 * + 30 AS col2, + 5 * + - 42, COUNT( * ) AS col2
----
2670
-210
1

skipif mysql # not compatible
query III rowsort label-2113
SELECT 89 * + 30 AS col2, + 5 * + - 42, COUNT ( * ) AS col2
----
2670
-210
1

query II rowsort
SELECT ALL - + 63 AS col0, 24 col2
----
-63
24

query I rowsort
SELECT + 7 * + 64 col2
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL + + 69 * - + COUNT( * ) * - 23
----
1587

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + + 69 * - + COUNT ( * ) * - 23
----
1587

query II rowsort
SELECT - 75, 21 AS col0
----
-75
21

query II rowsort
SELECT 13 AS col2, 10 + - - 52 AS col1
----
13
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2119
SELECT ALL + - CAST( NULL AS DECIMAL ) * 2 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + - CAST ( NULL AS REAL ) * 2 * 67
----
NULL

query II rowsort
SELECT ALL - 71, 33 AS col2
----
-71
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL + + 78 + NULLIF ( 61, + 27 * 4 * 32 + + - COUNT( * ) ) + - - ( + 33 ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL + + 78 + NULLIF ( 61, + 27 * 4 * 32 + + - COUNT ( * ) ) + - - ( + 33 ) AS col0
----
172

query II rowsort
SELECT DISTINCT - + 47 AS col1, 37 AS col0
----
-47
37

query I rowsort
SELECT ALL 51 + - 13 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT 32 - + COUNT( * ) + + 52 * + 39 * 48 AS col2
----
97375

skipif mysql # not compatible
query I rowsort label-2124
SELECT 32 - + COUNT ( * ) + + 52 * + 39 * 48 AS col2
----
97375

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT ALL + 4 + - + 72 * + + 23 + - 27 DIV + - ( + + 24 )
----
-1651

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + 4 + - + 72 * + + 23 + - 27 / + - ( + + 24 )
----
-1651

onlyif mysql # aggregate syntax: 
query II rowsort label-2126
SELECT COUNT( * ) + + 20 AS col2, 18 + + 26 + + + 20
----
21
64

skipif mysql # not compatible
query II rowsort label-2126
SELECT COUNT ( * ) + + 20 AS col2, 18 + + 26 + + + 20
----
21
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT ( - + COUNT( * ) ) * + 31 + - 52 * - 75 - + - 64 + - 38 col1
----
3895

skipif mysql # not compatible
query I rowsort label-2127
SELECT ( - + COUNT ( * ) ) * + 31 + - 52 * - 75 - + - 64 + - 38 col1
----
3895

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

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

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

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

query I rowsort
SELECT 76 - + - 84 AS col1
----
160

query I rowsort
SELECT 47 * + 23 AS col2
----
1081

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

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

query II rowsort
SELECT + ( 77 ) AS col0, - 1 AS col2
----
77
-1

query I rowsort
SELECT - 88 * - + NULLIF ( + 23, - ( + 79 ) ) * 33 + + 3 + - + 9
----
66786

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT ALL + COALESCE ( 15, + NULLIF ( 13, + - 84 ), + COUNT( * ) ) * ( + - 95 ) * - 13 + - 38, 76 col0
----
18487
76

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL + COALESCE ( 15, + NULLIF ( 13, + - 84 ), + COUNT ( * ) ) * ( + - 95 ) * - 13 + - 38, 76 col0
----
18487
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2136
SELECT + COUNT( * ) DIV + 46 * + - 50 - - COUNT( ALL - + 20 ) * - MIN( 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-2136
SELECT + COUNT ( * ) / + 46 * + - 50 - - COUNT ( ALL - + 20 ) * - MIN ( 77 )
----
-77

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 91, 23, + - 19 + + 65 * 82 ) * - 2
----
-182

query I rowsort
SELECT + 9 * - 5 + - 89 AS col2
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2140
SELECT + ( - 98 ) / - ( + 42 ) * + 72 * + 18 + - - CAST( + 44 AS SIGNED ) + - CASE 81 WHEN - + ( + CAST( NULL AS SIGNED ) ) THEN - COALESCE ( + + CASE - - CASE + 6 WHEN + + COUNT( * ) THEN + CAST( + 61 AS SIGNED ) WHEN + CAST( 44 AS DECIMAL ) + 41 * 76 THEN 97 END WHEN - - CAST( NULL AS SIGNED ) THEN - 15 ELSE NULL END, + - 12, + 16 / 39 + + 82 ) - 78 * - 51 WHEN 24 + + 59 - - COUNT( * ) THEN NULL ELSE NULL END AS col1, + CASE 45 WHEN - - CAST( NULL AS SIGNED ) * + 94 + + + 96 THEN + 65 / 60 END / 19 + - 84
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2140
SELECT + ( - 98 ) / - ( + 42 ) * + 72 * + 18 + - - CAST ( + 44 AS INTEGER ) + - CASE 81 WHEN - + ( + CAST ( NULL AS INTEGER ) ) THEN - COALESCE ( + + CASE - - CASE + 6 WHEN + + COUNT ( * ) THEN + CAST ( + 61 AS INTEGER ) WHEN + CAST ( 44 AS REAL ) + 41 * 76 THEN 97 END WHEN - - CAST ( NULL AS INTEGER ) THEN - 15 ELSE NULL END, + - 12, + 16 / 39 + + 82 ) - 78 * - 51 WHEN 24 + + 59 - - COUNT ( * ) THEN NULL ELSE NULL END AS col1, + CASE 45 WHEN - - CAST ( NULL AS INTEGER ) * + 94 + + + 96 THEN + 65 / 60 END / 19 + - 84
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2141
SELECT - COUNT( * ) + - - 36, 50 - COUNT( * ) - + - 96 + - 93 AS col2
----
35
52

skipif mysql # not compatible
query II rowsort label-2141
SELECT - COUNT ( * ) + - - 36, 50 - COUNT ( * ) - + - 96 + - 93 AS col2
----
35
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT 22 * + 41 - + 47 DIV - 13 AS col1
----
905

skipif mysql # not compatible
query I rowsort label-2142
SELECT 22 * + 41 - + 47 / - 13 AS col1
----
905

query I rowsort
SELECT ALL + + NULLIF ( 1, + 75 + + 57 ) + - 92 * 11 col0
----
-1011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2144
SELECT + + CASE + 48 WHEN + 47 + 43 - + 80 / - 77 - + 26 + - MAX( - 38 ) THEN + CAST( + 42 AS SIGNED ) WHEN + 10 - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT + + CASE + 48 WHEN + 47 + 43 - + 80 / - 77 - + 26 + - MAX ( - 38 ) THEN + CAST ( + 42 AS INTEGER ) WHEN + 10 - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 88 col1
----
88

query I rowsort
SELECT + - COALESCE ( - 57, + 86 ) AS col2
----
57

query I rowsort
SELECT ALL + 92 + 0 + 38
----
130

query I rowsort
SELECT DISTINCT - ( + 21 ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT + CASE 45 WHEN - 82 * - + COUNT( * ) * - - 18 + - + 58 + + 44 THEN NULL ELSE - COUNT( * ) + + 93 * - 42 END AS col0
----
-3907

skipif mysql # not compatible
query I rowsort label-2149
SELECT + CASE 45 WHEN - 82 * - + COUNT ( * ) * - - 18 + - + 58 + + 44 THEN NULL ELSE - COUNT ( * ) + + 93 * - 42 END AS col0
----
-3907

query I rowsort
SELECT 51 + - 65
----
-14

query I rowsort
SELECT ALL + 72 * + 66
----
4752

query I rowsort
SELECT 41 * - + 13 AS col1
----
-533

query II rowsort
SELECT 21 AS col0, 2
----
21
2

query I rowsort
SELECT ALL 38 - - + 90
----
128

query I rowsort
SELECT - 43 * 67
----
-2881

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT CASE + ( + - COALESCE ( + 86, - 38, MIN( DISTINCT - 88 ), - 52 / + + 67 + + 68 * NULLIF ( - 39, 2 ) * + 25 / - + 1 * + 86 ) ) WHEN + 84 * + COUNT( * ) + + 93 THEN - 60 / + NULLIF ( + - 21, - - 91 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT CASE + ( + - COALESCE ( + 86, - 38, MIN ( DISTINCT - 88 ), - 52 / + + 67 + + 68 * NULLIF ( - 39, 2 ) * + 25 / - + 1 * + 86 ) ) WHEN + 84 * + COUNT ( * ) + + 93 THEN - 60 / + NULLIF ( + - 21, - - 91 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 7 * 47 AS col0
----
-329

query I rowsort
SELECT + 13 * - - 17
----
221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT - 25 + - - 76 * - COUNT( * ) + - 24 DIV + - SUM( + 20 ) col1
----
-100

skipif mysql # not compatible
query I rowsort label-2159
SELECT - 25 + - - 76 * - COUNT ( * ) + - 24 / + - SUM ( + 20 ) col1
----
-100

query I rowsort
SELECT - - 83 * - + 67 AS col2
----
-5561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT ALL + 72 * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + 72 * - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT + - 28 + - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT + - 28 + - COUNT ( * ) AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT - 92 * - 85 - - + 51 + - 53 * ( + 6 ) + 45 + SUM( + + CAST( + 3 AS SIGNED ) ) * SUM( + - ( + 72 ) ) * COALESCE ( ( 35 ), - NULLIF ( 29, 33 * ( 93 ) * 58 - - + 13 * + + 62 + + 85 ) + 15 ) + + + 46 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 92 * - 85 - - + 51 + - 53 * ( + 6 ) + 45 + SUM ( + + CAST ( + 3 AS INTEGER ) ) * SUM ( + - ( + 72 ) ) * COALESCE ( ( 35 ), - NULLIF ( 29, 33 * ( 93 ) * 58 - - + 13 * + + 62 + + 85 ) + 15 ) + + + 46 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + 62 + + + 43 * + 80 * + SUM( + 49 ) AS col2
----
168622

skipif mysql # not compatible
query I rowsort label-2164
SELECT + 62 + + + 43 * + 80 * + SUM ( + 49 ) AS col2
----
168622

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 59 ), + 15 ) col1
----
-59

query I rowsort
SELECT + + 51 + + 82 + - 22 * 26 AS col2
----
-439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL + + 78 * + - 62 + COALESCE ( 42, - + 44 * 42, - CAST( NULL AS SIGNED ) ) - + 35 AS col2
----
-4829

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + + 78 * + - 62 + COALESCE ( 42, - + 44 * 42, - CAST ( NULL AS INTEGER ) ) - + 35 AS col2
----
-4829

query I rowsort
SELECT + - 82 * + 84
----
-6888

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT CASE 59 WHEN 45 THEN NULL WHEN 38 * + 54 THEN NULL ELSE + COUNT( * ) END * + COUNT( * ) + - 16 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2169
SELECT CASE 59 WHEN 45 THEN NULL WHEN 38 * + 54 THEN NULL ELSE + COUNT ( * ) END * + COUNT ( * ) + - 16 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL + - NULLIF ( + - 84, + COUNT( 40 ) * SUM( ALL 31 ) - - 32 * 94 * - + 23 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL + - NULLIF ( + - 84, + COUNT ( 40 ) * SUM ( ALL 31 ) - - 32 * 94 * - + 23 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + + ( 18 ) * - 80 + + COUNT( * ) AS col2
----
-1439

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + + ( 18 ) * - 80 + + COUNT ( * ) AS col2
----
-1439

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT 74, 71 + - COUNT( * ) AS col2
----
74
70

skipif mysql # not compatible
query II rowsort label-2172
SELECT 74, 71 + - COUNT ( * ) AS col2
----
74
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL - 21 * - COUNT( * ) + + 52 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL - 21 * - COUNT ( * ) + + 52 AS col2
----
73

query I rowsort
SELECT + 64 * - 64
----
-4096

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

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - - 77 * - + COUNT ( * ) + 60 + + - CAST ( NULL AS INTEGER ) * - 3 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2176
SELECT ALL - COUNT( * ) * 30 DIV - 6 + + NULLIF ( - CAST( 95 AS SIGNED ), - COUNT( * ) ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COUNT ( * ) * 30 / - 6 + + NULLIF ( - CAST ( 95 AS INTEGER ), - COUNT ( * ) ) col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2177
SELECT + 10 DIV - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 10 / - COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT - 27 * + - 46
----
1242

query I rowsort
SELECT DISTINCT 33 * + + 76
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT COALESCE ( - - CASE - COUNT( * ) WHEN - + MIN( DISTINCT - - 95 ) * 94 * - 0 + - 69 THEN - + COUNT( * ) ELSE NULL END, + - MAX( - 24 ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2180
SELECT COALESCE ( - - CASE - COUNT ( * ) WHEN - + MIN ( DISTINCT - - 95 ) * 94 * - 0 + - 69 THEN - + COUNT ( * ) ELSE NULL END, + - MAX ( - 24 ) ) AS col2
----
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2182
SELECT - SUM( ALL 12 ) DIV - - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2182
SELECT - SUM ( ALL 12 ) / - - 78 AS col2
----
0

query I rowsort
SELECT + 91 * + + 65 * + + 82
----
485030

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT CASE - + COUNT( * ) WHEN - 78 * - + COUNT( * ) + 75 THEN - 94 * + 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT CASE - + COUNT ( * ) WHEN - 78 * - + COUNT ( * ) + 75 THEN - 94 * + 34 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2185
SELECT ALL SUM( + 3 ) * + COUNT( * ) - 62 DIV - + 33
----
4

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL SUM ( + 3 ) * + COUNT ( * ) - 62 / - + 33
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT ALL + 96 * NULLIF ( SUM( DISTINCT 79 ), 87 * 44 - 12 ), ( - 25 ) AS col2
----
7584
-25

skipif mysql # not compatible
query II rowsort label-2186
SELECT ALL + 96 * NULLIF ( SUM ( DISTINCT 79 ), 87 * 44 - 12 ), ( - 25 ) AS col2
----
7584
-25

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2188
SELECT + COUNT( * ) DIV - - MIN( DISTINCT + 86 ) * + 53 DIV 35 + 7
----
7

skipif mysql # not compatible
query I rowsort label-2188
SELECT + COUNT ( * ) / - - MIN ( DISTINCT + 86 ) * + 53 / 35 + 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL CASE - 88 WHEN COUNT( * ) THEN + - 47 + - MAX( + CAST( + + 29 AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL CASE - 88 WHEN COUNT ( * ) THEN + - 47 + - MAX ( + CAST ( + + 29 AS INTEGER ) ) END
----
NULL

query II rowsort
SELECT - 84 + ( 68 ) + 12, - 85 col0
----
-4
-85

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

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

query I rowsort
SELECT DISTINCT 25 * - - 87 * + 8
----
17400

query II rowsort
SELECT ALL - 32 * 72, + 99 * + 25 AS col0
----
-2304
2475

query I rowsort
SELECT DISTINCT + - ( - - 54 ) + 80 AS col0
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT NULLIF ( ( + + 26 ), 3 + + 74 * COUNT( * ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2196
SELECT NULLIF ( ( + + 26 ), 3 + + 74 * COUNT ( * ) ) AS col2
----
26

query II rowsort
SELECT DISTINCT + 41 + - 35 AS col1, 11 * - - 78
----
6
858

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL - - 63 * - COUNT( DISTINCT - + 14 ) + - + ( 28 )
----
-91

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - - 63 * - COUNT ( DISTINCT - + 14 ) + - + ( 28 )
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + 82 * + 26 + - COUNT( * ) * + 51 + - 41
----
2040

skipif mysql # not compatible
query I rowsort label-2201
SELECT + 82 * + 26 + - COUNT ( * ) * + 51 + - 41
----
2040

query I rowsort
SELECT DISTINCT 52 + 33
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2203
SELECT DISTINCT + CASE - + 81 WHEN - + 62 * + - 38 * + + COUNT( * ) / CAST( NULL AS SIGNED ) * - + 46 / + 54 + - - 17 THEN + - COALESCE ( - 94, ( 29 ), + 56 ) WHEN + 71 + 80 THEN + 13 * + + 9 END / 98 + 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + CASE - + 81 WHEN - + 62 * + - 38 * + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - + 46 / + 54 + - - 17 THEN + - COALESCE ( - 94, ( 29 ), + 56 ) WHEN + 71 + 80 THEN + 13 * + + 9 END / 98 + 15 col0
----
NULL

query I rowsort
SELECT ALL + 67 * + + 21 AS col0
----
1407

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + COUNT( 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + COUNT ( 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2206
SELECT ALL - MIN( DISTINCT 19 ) DIV - COALESCE ( - 64, - MIN( + 71 ) * - - MIN( DISTINCT - - 5 ) ) + - 85 + + 66 + + + 7 + 10 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - MIN ( DISTINCT 19 ) / - COALESCE ( - 64, - MIN ( + 71 ) * - - MIN ( DISTINCT - - 5 ) ) + - 85 + + 66 + + + 7 + 10 AS col1
----
-2

query I rowsort
SELECT - 98 + 91 col2
----
-7

query I rowsort
SELECT 0 * - - 82 - + - 28 + - 73
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT - MAX( DISTINCT + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - MAX ( DISTINCT + 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2210
SELECT DISTINCT - CAST( MIN( + + 36 ) AS SIGNED ) AS col1, - 83 AS col1
----
-36
-83

skipif mysql # not compatible
query II rowsort label-2210
SELECT DISTINCT - CAST ( MIN ( + + 36 ) AS INTEGER ) AS col1, - 83 AS col1
----
-36
-83

query I rowsort
SELECT ALL 62 - - 87
----
149

query I rowsort
SELECT 57 * - 11 AS col0
----
-627

query I rowsort
SELECT DISTINCT 79 * 89
----
7031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT + 37 * + COUNT( * ) + - CAST( NULL AS SIGNED ) * MAX( ALL 66 ) * + 21 + - ( COUNT( * ) ) * - - 70 + + 19 * - - 23 / 50 - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT + 37 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * MAX ( ALL 66 ) * + 21 + - ( COUNT ( * ) ) * - - 70 + + 19 * - - 23 / 50 - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 18, + + 72, 53 )
----
-18

query I rowsort
SELECT ALL 14 * - 16 col2
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT MAX( ALL - 65 ) + - - 29 col0
----
-36

skipif mysql # not compatible
query I rowsort label-2217
SELECT MAX ( ALL - 65 ) + - - 29 col0
----
-36

query I rowsort
SELECT ALL 26 * - 93 * - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 85 + 45 - + ( + + COUNT( * ) )
----
129

skipif mysql # not compatible
query I rowsort label-2219
SELECT 85 + 45 - + ( + + COUNT ( * ) )
----
129

query II rowsort
SELECT ALL - 27, + 88 * - 67 - - 16 AS col1
----
-27
-5880

query I rowsort
SELECT ALL 78 * 23 * + + 51
----
91494

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT CASE - 38 WHEN COALESCE ( - + 82, + 20, 49 ) - 60 THEN - 60 * - ( + + COUNT( ALL + 93 ) ) ELSE NULL END * 52 * - + ( 25 ) + - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT CASE - 38 WHEN COALESCE ( - + 82, + 20, 49 ) - 60 THEN - 60 * - ( + + COUNT ( ALL + 93 ) ) ELSE NULL END * 52 * - + ( 25 ) + - + 25
----
NULL

query I rowsort
SELECT DISTINCT 25 * - 98 AS col1
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL 84 + - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL 84 + - + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + MIN( 90 ) + - + 0
----
90

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + MIN ( 90 ) + - + 0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT DISTINCT 77 + - + 61 + + - COUNT( * ) DIV 24 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT 77 + - + 61 + + - COUNT ( * ) / 24 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT COUNT( * ) * 50 * + - 4
----
-200

skipif mysql # not compatible
query I rowsort label-2227
SELECT COUNT ( * ) * 50 * + - 4
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT ALL - ( + 31 ) DIV 50 + - 16 * 66
----
-1056

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL - ( + 31 ) / 50 + - 16 * 66
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT 64 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT 64 / 87 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT ALL - + 11 + CAST( + CAST( - + 8 AS SIGNED ) AS SIGNED ) + 46 + - 70
----
-43

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - + 11 + CAST ( + CAST ( - + 8 AS INTEGER ) AS INTEGER ) + 46 + - 70
----
-43

query I rowsort
SELECT 13 - + 74 * + 1 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT 43 + 76 * COUNT( * ) * COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-2232
SELECT 43 + 76 * COUNT ( * ) * COUNT ( * )
----
119

query I rowsort
SELECT CASE + + 83 WHEN - 80 THEN NULL ELSE + 54 END * + + COALESCE ( 71, 58 * - + 98 + 49 ) * 16 * + + 9 + - + 35 * - 53 col1
----
553951

query I rowsort
SELECT ALL 80 + - 44
----
36

query I rowsort
SELECT DISTINCT + COALESCE ( + 49, 52 - + + 79 - - + ( + 64 ) ) col0
----
49

query II rowsort
SELECT DISTINCT + + 69 + - - 18 + - + 57, + COALESCE ( 87, ( 85 ) ) AS col0
----
30
87

query I rowsort
SELECT DISTINCT - - 6 + + ( + - 31 )
----
-25

query I rowsort
SELECT 61 * + 91 * 40 + - 22 * 0 - + - 67 col2
----
222107

query I rowsort
SELECT ALL - 68 - 60 + + + 42 + 51 * - - 23 AS col0
----
1087

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT ALL + 13 * + 23 DIV 22
----
13

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + 13 * + 23 / 22
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT 51 * + COUNT( DISTINCT 2 ) * + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2241
SELECT 51 * + COUNT ( DISTINCT 2 ) * + COUNT ( * ) AS col2
----
51

query I rowsort
SELECT 56 - - 58
----
114

query II rowsort
SELECT + 58 col1, 66
----
58
66

query I rowsort
SELECT DISTINCT + 33 + + 6 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL - 79 + COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL - 79 + COUNT ( * ) col0
----
-78

query I rowsort
SELECT DISTINCT 66 + + - 41 AS col0
----
25

query I rowsort
SELECT 75 + - + 13
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2248
SELECT DISTINCT CAST( - - 53 AS SIGNED ) + + NULLIF ( + 5, - 54 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT CAST ( - - 53 AS INTEGER ) + + NULLIF ( + 5, - 54 ) col1
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL + 91 + + - COUNT( - 68 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + 91 + + - COUNT ( - 68 ) AS col0
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT 27 + + 15 - 99 * - COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-2252
SELECT 27 + + 15 - 99 * - COUNT ( * )
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2253
SELECT - - 58 col0, 22 DIV SUM( + - 52 ) + - 19 AS col1
----
58
-19

skipif mysql # not compatible
query II rowsort label-2253
SELECT - - 58 col0, 22 / SUM ( + - 52 ) + - 19 AS col1
----
58
-19

query I rowsort
SELECT ALL + 89 * + + 79
----
7031

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2255
SELECT DISTINCT + MIN( - + 97 ) DIV - 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT + MIN ( - + 97 ) / - 67 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL COUNT( ALL - + 59 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL COUNT ( ALL - + 59 ) col0
----
1

query I rowsort
SELECT 96 + 67 AS col1
----
163

onlyif mysql # DIV for integer division: 
query II rowsort label-2259
SELECT DISTINCT 9 DIV + 13, 66 AS col2
----
0
66

skipif mysql # not compatible
query II rowsort label-2259
SELECT DISTINCT 9 / + 13, 66 AS col2
----
0
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT ALL 51 AS col2, + MIN( DISTINCT - 24 )
----
51
-24

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL 51 AS col2, + MIN ( DISTINCT - 24 )
----
51
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT 14 - - - ( COUNT( * ) ) * 76 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2261
SELECT 14 - - - ( COUNT ( * ) ) * 76 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2262
SELECT + 88 DIV - - COUNT( * ) AS col1, 19
----
88
19

skipif mysql # not compatible
query II rowsort label-2262
SELECT + 88 / - - COUNT ( * ) AS col1, 19
----
88
19

query I rowsort
SELECT 73 * + ( + 46 )
----
3358

query I rowsort
SELECT DISTINCT - 56 * + + 8 + - 39 - 59
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL + + COUNT( DISTINCT 47 ) * - + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + + COUNT ( DISTINCT 47 ) * - + 52 AS col0
----
-52

query II rowsort
SELECT DISTINCT 18, + 57 AS col1
----
18
57

query I rowsort
SELECT DISTINCT ( + - 51 ) * - 54
----
2754

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2269
SELECT + COUNT( 86 ) DIV - ( - 88 ) - - - 44, CAST( NULL AS SIGNED ) col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-2269
SELECT + COUNT ( 86 ) / - ( - 88 ) - - - 44, CAST ( NULL AS INTEGER ) col1
----
-44
NULL

query I rowsort
SELECT ALL 50 * ( + - 53 )
----
-2650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2271
SELECT - CAST( - + 95 AS SIGNED ) * - - 20 * + 16
----
30400

skipif mysql # not compatible
query I rowsort label-2271
SELECT - CAST ( - + 95 AS INTEGER ) * - - 20 * + 16
----
30400

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2273
SELECT + 29 DIV - SUM( - 26 ) + + 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2273
SELECT + 29 / - SUM ( - 26 ) + + 72 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT COALESCE ( + COUNT( * ), - 20 + + 36 * + 8, 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2274
SELECT COALESCE ( + COUNT ( * ), - 20 + + 36 * + 8, 16 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT COALESCE ( + COUNT( * ), - 52, - 22 * + - COALESCE ( 33, - 94 + + 7 - - 12 * + 74 + - 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2275
SELECT COALESCE ( + COUNT ( * ), - 52, - 22 * + - COALESCE ( 33, - 94 + + 7 - - 12 * + 74 + - 87 ) )
----
1

query I rowsort
SELECT DISTINCT 85 * + 88 * - 80 * - 43 + 57
----
25731257

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL - SUM( - 40 ) * - 22 AS col2
----
-880

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL - SUM ( - 40 ) * - 22 AS col2
----
-880

query I rowsort
SELECT NULLIF ( 59, + - 98 )
----
59

query I rowsort
SELECT ALL 60 * + 10 + 16
----
616

query I rowsort
SELECT ALL - 75 * 64
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT ALL + COALESCE ( + 75, + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL + COALESCE ( + 75, + COUNT ( * ) )
----
75

query I rowsort
SELECT - 7 + + 43 + 88 * - 95 AS col0
----
-8324

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

skipif mysql # not compatible
query I rowsort label-2283
SELECT SUM ( + - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2284
SELECT DISTINCT - 49 * + 76 + + 23 AS col0, COUNT( * ) * MIN( ALL - CASE + - 6 WHEN - 23 / + - ( 27 ) THEN + 94 END ) * - - 22 - - 78
----
-3701
NULL

skipif mysql # not compatible
query II rowsort label-2284
SELECT DISTINCT - 49 * + 76 + + 23 AS col0, COUNT ( * ) * MIN ( ALL - CASE + - 6 WHEN - 23 / + - ( 27 ) THEN + 94 END ) * - - 22 - - 78
----
-3701
NULL

query I rowsort
SELECT - 95 * - NULLIF ( 11, - 73 ) AS col2
----
1045

query I rowsort
SELECT - 56 * 62 * - 74 AS col2
----
256928

onlyif mysql # aggregate syntax: 
query II rowsort label-2287
SELECT SUM( DISTINCT - 98 ) AS col2, - 1 + + + COUNT( * ) AS col2
----
-98
0

skipif mysql # not compatible
query II rowsort label-2287
SELECT SUM ( DISTINCT - 98 ) AS col2, - 1 + + + COUNT ( * ) AS col2
----
-98
0

query I rowsort
SELECT DISTINCT + ( + 71 ) col0
----
71

query I rowsort
SELECT CASE - 29 WHEN - ( 97 ) THEN - - 55 ELSE NULL END
----
NULL

query I rowsort
SELECT + + ( - 26 ) * + 36 + - 10 AS col2
----
-946

query I rowsort
SELECT ALL NULLIF ( - 2, - ( + 23 ) ) * 92
----
-184

query I rowsort
SELECT ALL - 79 - + + 95 AS col1
----
-174

query I rowsort
SELECT - NULLIF ( - + 89, 65 + 70 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2294
SELECT + 15 + - + COUNT( * ), + 49 - + COUNT( * ) AS col1
----
14
48

skipif mysql # not compatible
query II rowsort label-2294
SELECT + 15 + - + COUNT ( * ), + 49 - + COUNT ( * ) AS col1
----
14
48

query I rowsort
SELECT ALL 98 * + 71 AS col0
----
6958

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT + MAX( ALL + - 78 ) - - MIN( ALL 71 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2296
SELECT + MAX ( ALL + - 78 ) - - MIN ( ALL 71 ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT + CAST( - - NULLIF ( - CASE 54 WHEN + 2 + 46 + CAST( - CAST( + + 87 AS SIGNED ) AS SIGNED ) * 39 * + 59 THEN NULL WHEN - - 45 THEN + 80 + 79 - + 84 / + NULLIF ( ( - COUNT( * ) ), - 38 / - 67 ) ELSE + - 7 * + ( - 73 ) END, + 81 ) AS SIGNED ) * + 19 AS col2
----
-9709

skipif mysql # not compatible
query I rowsort label-2297
SELECT + CAST ( - - NULLIF ( - CASE 54 WHEN + 2 + 46 + CAST ( - CAST ( + + 87 AS INTEGER ) AS INTEGER ) * 39 * + 59 THEN NULL WHEN - - 45 THEN + 80 + 79 - + 84 / + NULLIF ( ( - COUNT ( * ) ), - 38 / - 67 ) ELSE + - 7 * + ( - 73 ) END, + 81 ) AS INTEGER ) * + 19 AS col2
----
-9709

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

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

query I rowsort
SELECT ALL - 16 * + - NULLIF ( + 78, + 37 ) * - + 56
----
-69888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2300
SELECT + - 72 DIV - - 33 col2, ( - + COUNT( * ) )
----
-2
-1

skipif mysql # not compatible
query II rowsort label-2300
SELECT + - 72 / - - 33 col2, ( - + COUNT ( * ) )
----
-2
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2301
SELECT ALL 61 DIV + + 64 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL 61 / + + 64 * + - COUNT ( * )
----
0

query I rowsort
SELECT + 45 + + - 69
----
-24

query I rowsort
SELECT - ( - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2304
SELECT DISTINCT 68 + - 17 DIV MAX( - 83 )
----
68

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT 68 + - 17 / MAX ( - 83 )
----
68

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

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 92 / - 55
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + 9 * COUNT( * ) / - CASE + - 40 WHEN - 52 THEN - 25 * 95 + + - 52 WHEN - 80 THEN ( - 82 ) + SUM( ALL - - 11 ) + - + SUM( + 60 ) * + ( - 31 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT + 9 * COUNT ( * ) / - CASE + - 40 WHEN - 52 THEN - 25 * 95 + + - 52 WHEN - 80 THEN ( - 82 ) + SUM ( ALL - - 11 ) + - + SUM ( + 60 ) * + ( - 31 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - 91 + 76 + 37 * + + SUM( ALL + 64 ) * 92
----
217841

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 91 + 76 + 37 * + + SUM ( ALL + 64 ) * 92
----
217841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT ALL - CAST( NULL AS SIGNED ) / + 59 + + - ( 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL - CAST ( NULL AS INTEGER ) / + 59 + + - ( 51 ) AS col0
----
NULL

query I rowsort
SELECT ALL 61 * ( + ( - + 62 ) ) AS col0
----
-3782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT ALL - 99 DIV 66 + COUNT( ALL + 50 ) + - 51 * - 43 - + - 13 + + - 68 * + 32 * + + 55 + + 74 + + 53
----
-117347

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL - 99 / 66 + COUNT ( ALL + 50 ) + - 51 * - 43 - + - 13 + + - 68 * + 32 * + + 55 + + 74 + + 53
----
-117347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL + CASE - COALESCE ( + 82, - 13, - 3 ) WHEN + + 11 * + + ( + 81 ) + + + 18 THEN - CAST( - 15 AS SIGNED ) - + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + CASE - COALESCE ( + 82, - 13, - 3 ) WHEN + + 11 * + + ( + 81 ) + + + 18 THEN - CAST ( - 15 AS INTEGER ) - + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2312
SELECT DISTINCT 68 DIV + - ( + + SUM( + 51 ) ) + + 29 + + - 72 DIV - 96 * 74 + 23
----
51

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT 68 / + - ( + + SUM ( + 51 ) ) + + 29 + + - 72 / - 96 * 74 + 23
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2313
SELECT ALL + 22 DIV MAX( ( - 25 ) ) + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL + 22 / MAX ( ( - 25 ) ) + - 33 AS col1
----
-33

query I rowsort
SELECT ( 86 )
----
86

query I rowsort
SELECT 16 * + - 26 - - ( - - 71 )
----
-345

query I rowsort
SELECT - 77 * + 89
----
-6853

onlyif mysql # DIV for integer division: 
query I rowsort label-2317
SELECT ALL - 33 DIV + 91 - 24
----
-24

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL - 33 / + 91 - 24
----
-24

query I rowsort
SELECT ALL 25 * 63 - - + 96 * + 68 AS col1
----
8103

query II rowsort
SELECT 73 AS col2, 90
----
73
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2320
SELECT ALL - 65 * + - 50 * + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) / 57 - + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - 65 * + - 50 * + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) / 57 - + 73 AS col1
----
NULL

query I rowsort
SELECT - 76 * - 64
----
4864

query II rowsort
SELECT + 90 AS col0, - 25 - 99 * 74 * + 8 col2
----
90
-58633

query I rowsort
SELECT - 34 + + 8 + + NULLIF ( - - 35, 88 ) * 72
----
2494

query I rowsort
SELECT 28 * 12 - + 9 - + - 32 * - 89
----
-2521

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT - 43 DIV + 82 * - + 86
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT - 43 / + 82 * - + 86
----
0

query I rowsort
SELECT - + 11 * 84 AS col1
----
-924

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + - 37 * + 51 * - 34 * COUNT( * )
----
64158

skipif mysql # not compatible
query I rowsort label-2328
SELECT + - 37 * + 51 * - 34 * COUNT ( * )
----
64158

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2329
SELECT + 70 + - - 0 * + 89 * + - CAST( NULL AS DECIMAL ) + ( - CAST( + 60 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT + 70 + - - 0 * + 89 * + - CAST ( NULL AS REAL ) + ( - CAST ( + 60 AS INTEGER ) )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( + - 56, + 77 )
----
-56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL CASE + - 51 WHEN - - 43 - - 25 + - 3 + + 74 * 19 / + 15 + + + 15 * 63 * + 65 * + CAST( - 7 AS SIGNED ) / ( + COUNT( * ) ) THEN - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL CASE + - 51 WHEN - - 43 - - 25 + - 3 + + 74 * 19 / + 15 + + + 15 * 63 * + 65 * + CAST ( - 7 AS INTEGER ) / ( + COUNT ( * ) ) THEN - 98 END
----
NULL

query I rowsort
SELECT ALL 50 * - 14 AS col2
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2336
SELECT ALL - 10 + 62 * NULLIF ( SUM( ALL - + 75 ), + 11 + CAST( NULL AS SIGNED ) + + COUNT( * ) + 55 ) AS col1
----
-4660

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - 10 + 62 * NULLIF ( SUM ( ALL - + 75 ), + 11 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 55 ) AS col1
----
-4660

onlyif mysql # DIV for integer division: 
query II rowsort label-2337
SELECT 66 + + 79 * + 93 * 91, - 65 DIV - - 10 AS col0
----
668643
-6

skipif mysql # not compatible
query II rowsort label-2337
SELECT 66 + + 79 * + 93 * 91, - 65 / - - 10 AS col0
----
668643
-6

query I rowsort
SELECT 1 * - 74
----
-74

query I rowsort
SELECT ALL 50 + - 75 + - 22 + 72 + 63 - + 55 * - 44
----
2508

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2341
SELECT NULLIF ( 19, - + CAST( NULL AS SIGNED ) / 13 ) + 10 * - - COUNT( * ) * + 99 AS col1
----
1009

skipif mysql # not compatible
query I rowsort label-2341
SELECT NULLIF ( 19, - + CAST ( NULL AS INTEGER ) / 13 ) + 10 * - - COUNT ( * ) * + 99 AS col1
----
1009

query I rowsort
SELECT ALL 14 + 76
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2343
SELECT - COUNT( * ) DIV - 12 * + 11 DIV + 1 - COUNT( + - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-2343
SELECT - COUNT ( * ) / - 12 * + 11 / + 1 - COUNT ( + - 8 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2344
SELECT ALL 42 * + NULLIF ( + 69, + 43 + + CASE - + 65 WHEN 68 THEN 21 * - CASE WHEN + 51 NOT IN ( - 65, 32, - + CAST( NULL AS SIGNED ) * CAST( 26 AS SIGNED ) * + 60 - ( + + 34 ) * + + COUNT( ALL - - CAST( NULL AS DECIMAL ) ) ) THEN - 98 END ELSE - COUNT( * ) END ) AS col0
----
2898

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL 42 * + NULLIF ( + 69, + 43 + + CASE - + 65 WHEN 68 THEN 21 * - CASE WHEN + 51 NOT IN ( - 65, 32, - + CAST ( NULL AS INTEGER ) * CAST ( 26 AS INTEGER ) * + 60 - ( + + 34 ) * + + COUNT ( ALL - - CAST ( NULL AS REAL ) ) ) THEN - 98 END ELSE - COUNT ( * ) END ) AS col0
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2345
SELECT 21 * + NULLIF ( + + CASE - 52 WHEN - 17 THEN + - COALESCE ( - - 91, - - CAST( + 34 AS SIGNED ) * 46 + - - 54 ) WHEN + 80 THEN COUNT( * ) + - ( - 22 ) END, - COUNT( * ) ) / - - 72 * - 98 + - + ( 42 ) + + + 70 * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT 21 * + NULLIF ( + + CASE - 52 WHEN - 17 THEN + - COALESCE ( - - 91, - - CAST ( + 34 AS INTEGER ) * 46 + - - 54 ) WHEN + 80 THEN COUNT ( * ) + - ( - 22 ) END, - COUNT ( * ) ) / - - 72 * - 98 + - + ( 42 ) + + + 70 * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 54 - - ( 3 ) AS col2
----
57

query I rowsort
SELECT - + 26 * 27 + - 98
----
-800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2348
SELECT DISTINCT - CAST( 74 AS SIGNED ) AS col0, - ( - - 95 )
----
-74
-95

skipif mysql # not compatible
query II rowsort label-2348
SELECT DISTINCT - CAST ( 74 AS INTEGER ) AS col0, - ( - - 95 )
----
-74
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2349
SELECT ALL 35 * + 40, 12 + + - 44 * - COALESCE ( 65, NULLIF ( 64, - 77 + + - 31 ), + - NULLIF ( - 34, + CASE 78 WHEN 10 * - 4 THEN NULL ELSE + 41 END ) ) + - - CAST( - + 44 AS SIGNED ) AS col0
----
1400
2828

skipif mysql # not compatible
query II rowsort label-2349
SELECT ALL 35 * + 40, 12 + + - 44 * - COALESCE ( 65, NULLIF ( 64, - 77 + + - 31 ), + - NULLIF ( - 34, + CASE 78 WHEN 10 * - 4 THEN NULL ELSE + 41 END ) ) + - - CAST ( - + 44 AS INTEGER ) AS col0
----
1400
2828

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT - 74 + SUM( - 94 ) AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-2350
SELECT - 74 + SUM ( - 94 ) AS col0
----
-168

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

skipif mysql # not compatible
query I rowsort label-2351
SELECT COUNT ( * ) * CAST ( - 23 AS INTEGER )
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + COUNT( - 9 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2353
SELECT + COUNT ( - 9 ) col2
----
1

query I rowsort
SELECT 82 * + 35 + 54 AS col1
----
2924

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT CASE + + AVG ( DISTINCT + 13 ) WHEN - + 13 * - COUNT( * ) + - 13 THEN NULLIF ( + 48, - 43 + ( COUNT( * ) ) ) ELSE + 52 END * - 2 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-2355
SELECT CASE + + AVG ( DISTINCT + 13 ) WHEN - + 13 * - COUNT ( * ) + - 13 THEN NULLIF ( + 48, - 43 + ( COUNT ( * ) ) ) ELSE + 52 END * - 2 AS col1
----
-104

query I rowsort
SELECT + NULLIF ( - + 0, + 2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2357
SELECT DISTINCT + 78 * - 86, + CAST( NULL AS SIGNED ) + - 10 AS col2
----
-6708
NULL

skipif mysql # not compatible
query II rowsort label-2357
SELECT DISTINCT + 78 * - 86, + CAST ( NULL AS INTEGER ) + - 10 AS col2
----
-6708
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2358
SELECT + 43 DIV 71, 27 AS col2
----
0
27

skipif mysql # not compatible
query II rowsort label-2358
SELECT + 43 / 71, 27 AS col2
----
0
27

query I rowsort
SELECT 81 + ( - 86 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL - MAX( DISTINCT - + 58 ) * + 95 * MAX( 31 )
----
170810

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - MAX ( DISTINCT - + 58 ) * + 95 * MAX ( 31 )
----
170810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT - + MIN( ALL - CASE + 1 WHEN - - CAST( NULL AS SIGNED ) THEN NULL ELSE - - 11 END )
----
11

skipif mysql # not compatible
query I rowsort label-2361
SELECT - + MIN ( ALL - CASE + 1 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 11 END )
----
11

query I rowsort
SELECT + 26 * - - 2 * - 79 * + ( - + 75 )
----
308100

query I rowsort
SELECT 57 + - 20 AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + 51 + COUNT ( * ) AS col2
----
52

query I rowsort
SELECT 66 + 18
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT MIN( DISTINCT + 96 ) + - - 16 - - + 55 AS col0
----
167

skipif mysql # not compatible
query I rowsort label-2367
SELECT MIN ( DISTINCT + 96 ) + - - 16 - - + 55 AS col0
----
167

query II rowsort
SELECT - 38 AS col1, - 94 * + - 36 + 37 col1
----
-38
3421

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2369
SELECT ALL + 16 - - 47 + COUNT( * ) DIV - - 50 - + 97 + + 26 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL + 16 - - 47 + COUNT ( * ) / - - 50 - + 97 + + 26 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT DISTINCT COUNT( * ) * - 80 * - 53 col0
----
4240

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT COUNT ( * ) * - 80 * - 53 col0
----
4240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2371
SELECT COUNT( * ) * COALESCE ( - ( + 87 ), + + 71, + - 84 * 46, - 75 ) DIV + - COALESCE ( + - MAX( + 16 ), ( + COUNT( * ) ) ) + CAST( + 57 AS SIGNED ) + + COALESCE ( 14, + 64 ) AS col2, - 2 * 77 + + 69 + + + 69
----
66
-16

skipif mysql # not compatible
query II rowsort label-2371
SELECT COUNT ( * ) * COALESCE ( - ( + 87 ), + + 71, + - 84 * 46, - 75 ) / + - COALESCE ( + - MAX ( + 16 ), ( + COUNT ( * ) ) ) + CAST ( + 57 AS INTEGER ) + + COALESCE ( 14, + 64 ) AS col2, - 2 * 77 + + 69 + + + 69
----
66
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + MAX( + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-2373
SELECT + MAX ( + 92 )
----
92

query I rowsort
SELECT 16 * 52 AS col1
----
832

query I rowsort
SELECT + 82 - 0 AS col1
----
82

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

skipif mysql # not compatible
query I rowsort label-2376
SELECT COUNT ( DISTINCT + 2 ) AS col2
----
1

query I rowsort
SELECT 90 * 38 - - 49
----
3469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT + 76 * + ( - 51 DIV - COUNT( * ) ) AS col2
----
3876

skipif mysql # not compatible
query I rowsort label-2378
SELECT + 76 * + ( - 51 / - COUNT ( * ) ) AS col2
----
3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT ALL CAST( 69 AS SIGNED ) + - 3 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL CAST ( 69 AS INTEGER ) + - 3 AS col1
----
66

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

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

query I rowsort
SELECT ALL + 82 + - 56 AS col1
----
26

query I rowsort
SELECT DISTINCT 52 + 37
----
89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2383
SELECT AVG ( ALL + CASE 30 WHEN - 78 - + CAST( NULLIF ( - 33, 52 ) + CAST( NULL AS SIGNED ) AS DECIMAL ) THEN 95 + 8 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT AVG ( ALL + CASE 30 WHEN - 78 - + CAST ( NULLIF ( - 33, 52 ) + CAST ( NULL AS INTEGER ) AS REAL ) THEN 95 + 8 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 98, 42 * - ( 9 ) + + 81 ) + + 98 AS col2
----
196

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

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

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

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

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

query I rowsort
SELECT ALL + 20 * + 72 AS col1
----
1440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2389
SELECT - 32 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT - 32 / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT DISTINCT + 47 - CASE - CASE 34 WHEN + 50 THEN + 30 END + + 39 WHEN 22 THEN - 68 ELSE + 91 + 23 DIV 23 END
----
-45

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + 47 - CASE - CASE 34 WHEN + 50 THEN + 30 END + + 39 WHEN 22 THEN - 68 ELSE + 91 + 23 / 23 END
----
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT + CAST( 14 AS SIGNED ) * - ( - 13 ) AS col1
----
182

skipif mysql # not compatible
query I rowsort label-2392
SELECT + CAST ( 14 AS INTEGER ) * - ( - 13 ) AS col1
----
182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT - MAX( DISTINCT + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-2394
SELECT - MAX ( DISTINCT + 87 )
----
-87

query I rowsort
SELECT ALL 37 * 83 AS col1
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL - CASE + 54 WHEN + 42 THEN NULL WHEN 99 THEN - MAX( DISTINCT - 33 ) * - 64 ELSE NULL END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - CASE + 54 WHEN + 42 THEN NULL WHEN 99 THEN - MAX ( DISTINCT - 33 ) * - 64 ELSE NULL END / COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT - 42 - 46 DIV + 90 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2398
SELECT - 42 - 46 / + 90 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT + CASE - 38 WHEN + 94 / + COUNT( * ) THEN + 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + CASE - 38 WHEN + 94 / + COUNT ( * ) THEN + 98 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2401
SELECT - 26 * MIN( + 82 ) + - 64 DIV 56
----
-2133

skipif mysql # not compatible
query I rowsort label-2401
SELECT - 26 * MIN ( + 82 ) + - 64 / 56
----
-2133

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

query I rowsort
SELECT DISTINCT + 93 * - 9
----
-837

query I rowsort
SELECT + 83 * + 82 AS col1
----
6806

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL + + 45 * COALESCE ( COUNT( * ) * 66, 36 * 18 ) + 84
----
3054

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL + + 45 * COALESCE ( COUNT ( * ) * 66, 36 * 18 ) + 84
----
3054

query I rowsort
SELECT - 23 + 19 AS col0
----
-4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT + 73 * + 54 + 21 DIV - 61
----
3942

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + 73 * + 54 + 21 / - 61
----
3942

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

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

query I rowsort
SELECT ALL + 66 * + 28 + 77 * 70
----
7238

query I rowsort
SELECT ALL - 30 * 58 + 73 AS col1
----
-1667

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL 54 * - 11 + COUNT( * ) col0
----
-593

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL 54 * - 11 + COUNT ( * ) col0
----
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT + + ( - 25 ) + + 14 * SUM( - 57 ) AS col1
----
-823

skipif mysql # not compatible
query I rowsort label-2413
SELECT + + ( - 25 ) + + 14 * SUM ( - 57 ) AS col1
----
-823

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT - - 44 DIV + 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2414
SELECT - - 44 / + 20 AS col2
----
2

query I rowsort
SELECT + 86 + 50 col0
----
136

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT ALL + 17 DIV COALESCE ( - 88 * + 6, + 19, - COUNT( * ) - + 11, - 9 )
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + 17 / COALESCE ( - 88 * + 6, + 19, - COUNT ( * ) - + 11, - 9 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT + - 8 * + 70 + + MIN( DISTINCT - 16 ) * SUM( ALL 44 + + 7 )
----
-1376

skipif mysql # not compatible
query I rowsort label-2418
SELECT + - 8 * + 70 + + MIN ( DISTINCT - 16 ) * SUM ( ALL 44 + + 7 )
----
-1376

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT + 52 DIV + ( - 72 + + 37 DIV 52 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2419
SELECT + 52 / + ( - 72 + + 37 / 52 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT ALL - COALESCE ( 84, + 40 ) * + CAST( + 36 AS SIGNED ) + 22 * - 79
----
-4762

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - COALESCE ( 84, + 40 ) * + CAST ( + 36 AS INTEGER ) + 22 * - 79
----
-4762

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT ALL - 56 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - 56 / 47
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT SUM( ALL + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2423
SELECT SUM ( ALL + 46 ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT ALL 65 * - + ( - ( 65 ) ) - + 77 DIV 53 AS col2
----
4224

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL 65 * - + ( - ( 65 ) ) - + 77 / 53 AS col2
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT - ( + COUNT( ALL 29 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2425
SELECT - ( + COUNT ( ALL 29 ) ) col1
----
-1

query I rowsort
SELECT ALL COALESCE ( 15, COALESCE ( - 11, 99 + - 66 ) ) col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT DISTINCT 40 * - MAX( ALL - 70 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT 40 * - MAX ( ALL - 70 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL SUM( 42 ) * + 92 AS col1
----
3864

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL SUM ( 42 ) * + 92 AS col1
----
3864

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

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

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

query I rowsort
SELECT - 61 * - + 88
----
5368

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

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

query I rowsort
SELECT DISTINCT ( - 10 ) - 87 AS col1
----
-97

query I rowsort
SELECT ALL - 98 * + 88
----
-8624

query I rowsort
SELECT + 25 * + + 18
----
450

query I rowsort
SELECT - 43 + + 44 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + 89 * - + 41 * MIN( NULLIF ( 44, + 1 + 85 ) * 4 ) AS col2
----
-642224

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 89 * - + 41 * MIN ( NULLIF ( 44, + 1 + 85 ) * 4 ) AS col2
----
-642224

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

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

query I rowsort
SELECT DISTINCT - 81 * + 99 AS col0
----
-8019

query I rowsort
SELECT ALL + 64 + - - 17 col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT - 68 DIV - - 24 + - 3 * 93 col2
----
-281

skipif mysql # not compatible
query I rowsort label-2442
SELECT - 68 / - - 24 + - 3 * 93 col2
----
-281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT 86 + - - COUNT( * ) * 32
----
118

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT 86 + - - COUNT ( * ) * 32
----
118

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT ALL - - 11 + + ( 1 ) * - ( ( - ( 60 ) ) * CAST( 39 AS SIGNED ) )
----
2351

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - - 11 + + ( 1 ) * - ( ( - ( 60 ) ) * CAST ( 39 AS INTEGER ) )
----
2351

query I rowsort
SELECT ALL + 48 + - 71 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT 57 * - - CAST( + 51 AS SIGNED )
----
2907

skipif mysql # not compatible
query I rowsort label-2448
SELECT 57 * - - CAST ( + 51 AS INTEGER )
----
2907

query I rowsort
SELECT 59 + + 27 col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT ALL - + COALESCE ( - 71, - 25 DIV + 47 ) + - 53 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - + COALESCE ( - 71, - 25 / + 47 ) + - 53 AS col2
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT COALESCE ( - + COUNT( * ), + 7 + - 3 ) + 2 * ( + SUM( DISTINCT - 46 ) * - 98 ) AS col1
----
9015

skipif mysql # not compatible
query I rowsort label-2452
SELECT COALESCE ( - + COUNT ( * ), + 7 + - 3 ) + 2 * ( + SUM ( DISTINCT - 46 ) * - 98 ) AS col1
----
9015

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - + 31 - - COUNT( * ) * ( 16 + + 19 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - + 31 - - COUNT ( * ) * ( 16 + + 19 ) AS col0
----
4

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

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

query I rowsort
SELECT DISTINCT - 47 - - 50 + - ( + 82 ) * 13
----
-1063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT 65 * + 31 * - + ( CASE - CAST( 28 AS SIGNED ) WHEN ( CASE WHEN NOT ( + 58 ) IS NOT NULL THEN 71 / - 53 + - 19 WHEN NULL <> + 38 THEN + 16 * 69 + - 91 END ) THEN 80 + + 8 ELSE COUNT( * ) END ) - - 14 * COUNT( 44 - CAST( NULL AS SIGNED ) ) AS col2
----
-2015

skipif mysql # not compatible
query I rowsort label-2456
SELECT 65 * + 31 * - + ( CASE - CAST ( 28 AS INTEGER ) WHEN ( CASE WHEN NOT ( + 58 ) IS NOT NULL THEN 71 / - 53 + - 19 WHEN NULL <> + 38 THEN + 16 * 69 + - 91 END ) THEN 80 + + 8 ELSE COUNT ( * ) END ) - - 14 * COUNT ( 44 - CAST ( NULL AS INTEGER ) ) AS col2
----
-2015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2457
SELECT ALL - 40 AS col0, 97 + - 14 + - CAST( - 51 - 17 AS SIGNED )
----
-40
151

skipif mysql # not compatible
query II rowsort label-2457
SELECT ALL - 40 AS col0, 97 + - 14 + - CAST ( - 51 - 17 AS INTEGER )
----
-40
151

query I rowsort
SELECT 75 * 10 AS col1
----
750

query I rowsort
SELECT - 29 * + + 6 - + 66 AS col1
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2460
SELECT 94 + - 2 * CAST( + MAX( ALL - 37 ) AS SIGNED ) * + 75 col0
----
5644

skipif mysql # not compatible
query I rowsort label-2460
SELECT 94 + - 2 * CAST ( + MAX ( ALL - 37 ) AS INTEGER ) * + 75 col0
----
5644

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT 30 DIV - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT 30 / - 49 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT NULLIF ( ( 52 ), COUNT( 45 ) * + 16 ) + 44
----
96

skipif mysql # not compatible
query I rowsort label-2463
SELECT NULLIF ( ( 52 ), COUNT ( 45 ) * + 16 ) + 44
----
96

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

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - COUNT ( * ) / + ( + ( 15 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2465
SELECT ALL - 3 DIV - NULLIF ( - CAST( - 75 AS SIGNED ), - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - 3 / - NULLIF ( - CAST ( - 75 AS INTEGER ), - 28 )
----
0

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

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

query II rowsort
SELECT ALL 49 AS col1, - NULLIF ( + - 99, + 47 + 30 ) AS col2
----
49
99

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

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT COUNT ( * ) * + ( 40 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT COALESCE ( + + 32, + COUNT( * ) + 95 ) + - CAST( 44 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-2469
SELECT COALESCE ( + + 32, + COUNT ( * ) + 95 ) + - CAST ( 44 AS INTEGER )
----
-12

query II rowsort
SELECT ALL 56 col1, 82
----
56
82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT 86 AS col2, + 19 + 22 + 65 * 69 * COALESCE ( COUNT( * ) * + COALESCE ( - 80 * 38, 31 + + 30, - 13 * COUNT( DISTINCT - 7 ) ), + 71 ) AS col0
----
86
-13634359

skipif mysql # not compatible
query II rowsort label-2472
SELECT 86 AS col2, + 19 + 22 + 65 * 69 * COALESCE ( COUNT ( * ) * + COALESCE ( - 80 * 38, 31 + + 30, - 13 * COUNT ( DISTINCT - 7 ) ), + 71 ) AS col0
----
86
-13634359

query I rowsort
SELECT 55 * - + 35 AS col2
----
-1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT ALL 77 + 84 + 12 DIV COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL 77 + 84 + 12 / COUNT ( * )
----
173

query II rowsort
SELECT - 16 AS col0, 64
----
-16
64

query II rowsort
SELECT 2 AS col2, 15 AS col1
----
2
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL ( - NULLIF ( COUNT( * ), + 66 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL ( - NULLIF ( COUNT ( * ), + 66 ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2478
SELECT 2 + + - 25 + - COALESCE ( + CASE - NULLIF ( COUNT( * ), 94 * - 26 ) WHEN - ( + 37 ) - 13 THEN 59 ELSE 31 END, + CASE - MIN( DISTINCT 47 ) WHEN - ( 18 ) / 35 + NULLIF ( + 9, CAST( + ( + 6 ) AS DECIMAL ) ) * COALESCE ( 38, - 82 + - MIN( 71 + - 40 ) ) THEN NULL ELSE - MAX( + 74 ) END ) * 50
----
-1573

skipif mysql # not compatible
query I rowsort label-2478
SELECT 2 + + - 25 + - COALESCE ( + CASE - NULLIF ( COUNT ( * ), 94 * - 26 ) WHEN - ( + 37 ) - 13 THEN 59 ELSE 31 END, + CASE - MIN ( DISTINCT 47 ) WHEN - ( 18 ) / 35 + NULLIF ( + 9, CAST ( + ( + 6 ) AS REAL ) ) * COALESCE ( 38, - 82 + - MIN ( 71 + - 40 ) ) THEN NULL ELSE - MAX ( + 74 ) END ) * 50
----
-1573

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT ALL MAX( ALL + 25 ) + 37 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL MAX ( ALL + 25 ) + 37 AS col0
----
62

query I rowsort
SELECT DISTINCT - 11 * 59 AS col2
----
-649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), + ( 78 ) ) + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), + ( 78 ) ) + 66 AS col0
----
NULL

query II rowsort
SELECT ALL 66, 13 * 75 AS col1
----
66
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT SUM( DISTINCT - 2 ) DIV + 15 + ( + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2483
SELECT SUM ( DISTINCT - 2 ) / + 15 + ( + 47 ) AS col1
----
47

query I rowsort
SELECT + 41 + - - 47 * - 78
----
-3625

query I rowsort
SELECT DISTINCT 20 * - + CASE - - 87 WHEN + 37 THEN + 10 * 27 + 92 ELSE NULL END * - 40
----
NULL

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

query II rowsort
SELECT + 89, 34 AS col2
----
89
34

query I rowsort
SELECT ALL - 17 + + NULLIF ( 92, 88 / AVG ( + 29 * 79 ) ) AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT + 7 + - CAST( + 72 AS SIGNED ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2489
SELECT + 7 + - CAST ( + 72 AS INTEGER ) AS col0
----
-65

query I rowsort
SELECT - 77 * 46
----
-3542

query II rowsort
SELECT - 56 AS col0, + 13 + 31 - + 81 col0
----
-56
-37

query I rowsort
SELECT DISTINCT ( - 47 ) * - 43
----
2021

query II rowsort
SELECT + 11 AS col1, + 46 * + - 39 * - 60 + + 4
----
11
107644

query I rowsort
SELECT DISTINCT 0 * + 44 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT - 43 * 34 + + COUNT( * ) * 21 col0
----
-1441

skipif mysql # not compatible
query I rowsort label-2496
SELECT - 43 * 34 + + COUNT ( * ) * 21 col0
----
-1441

query I rowsort
SELECT DISTINCT + 23 - - + 46
----
69

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

skipif mysql # not compatible
query I rowsort label-2498
SELECT COUNT ( * ) + ( - + ( ( + 44 ) ) ) / 11 AS col0
----
-3

query I rowsort
SELECT DISTINCT - NULLIF ( + 46, 58 ) AS col2
----
-46

query II rowsort
SELECT ALL - ( + 5 ) AS col2, 48 AS col0
----
-5
48

query I rowsort
SELECT - 25 * + 43 + 40 * 89 AS col0
----
2485

query I rowsort
SELECT DISTINCT - COALESCE ( - 48, - 30 ) AS col1
----
48

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

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

query I rowsort
SELECT ALL - 25 * - 44 col0
----
1100

onlyif mysql # aggregate syntax: 
query II rowsort label-2505
SELECT DISTINCT - COUNT( * ) * - 34 AS col2, 72 col2
----
34
72

skipif mysql # not compatible
query II rowsort label-2505
SELECT DISTINCT - COUNT ( * ) * - 34 AS col2, 72 col2
----
34
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT ALL CAST( NULL AS SIGNED ) + 31 + + 73 - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL CAST ( NULL AS INTEGER ) + 31 + + 73 - 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT SUM( 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT SUM ( 94 ) AS col0
----
94

query I rowsort
SELECT 0 * 38 * 79 AS col1
----
0

query I rowsort
SELECT 36 + - 55 - 71 AS col2
----
-90

query I rowsort
SELECT ALL - 26 + + + 39 * - 13
----
-533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2511
SELECT DISTINCT ( + 47 ) DIV - CAST( + - 52 AS SIGNED ) * - COUNT( - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT ( + 47 ) / - CAST ( + - 52 AS INTEGER ) * - COUNT ( - 66 )
----
0

query I rowsort
SELECT DISTINCT + 81 + + ( + 31 ) * - 19 - + 69
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - NULLIF ( + - 63, - + SUM( ALL + + 98 ) * 33 ) + + 68
----
131

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - NULLIF ( + - 63, - + SUM ( ALL + + 98 ) * 33 ) + + 68
----
131

query I rowsort
SELECT ALL 30 * - 88
----
-2640

query I rowsort
SELECT DISTINCT - - 56 + 5
----
61

query I rowsort
SELECT ALL + 81 + + COALESCE ( 61, + - 54 ) AS col0
----
142

query I rowsort
SELECT DISTINCT 46 + - 21 AS col2
----
25

query I rowsort
SELECT + 16 * 37 AS col0
----
592

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL - 12 * + 82 + CASE - + 55 WHEN - 91 / 52 THEN 60 + 16 * + COUNT( * ) END * ( + 28 * - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - 12 * + 82 + CASE - + 55 WHEN - 91 / 52 THEN 60 + 16 * + COUNT ( * ) END * ( + 28 * - 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT - CASE + CASE + + 17 WHEN 82 THEN + 67 * + 98 + - 75 WHEN + 98 * ( - 34 ) THEN + 50 ELSE CASE 87 WHEN MIN( DISTINCT ( 69 ) ) * - 34 THEN - 48 * 40 WHEN - 22 + - 1 THEN NULL END END WHEN MAX( + 0 ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT - CASE + CASE + + 17 WHEN 82 THEN + 67 * + 98 + - 75 WHEN + 98 * ( - 34 ) THEN + 50 ELSE CASE 87 WHEN MIN ( DISTINCT ( 69 ) ) * - 34 THEN - 48 * 40 WHEN - 22 + - 1 THEN NULL END END WHEN MAX ( + 0 ) THEN + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 21 - - 39 + 2 AS col2
----
20

query I rowsort
SELECT - 78 * + 37 AS col1
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + COUNT( DISTINCT 10 )
----
1

skipif mysql # not compatible
query I rowsort label-2523
SELECT + COUNT ( DISTINCT 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL + 53 * + MIN( ALL + - 87 ) + + 0 * - 40 - 90 AS col1
----
-4701

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + 53 * + MIN ( ALL + - 87 ) + + 0 * - 40 - 90 AS col1
----
-4701

query I rowsort
SELECT + + 49 * - 45
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT + 32 * COUNT( * ) - + 15 + + 33
----
50

skipif mysql # not compatible
query I rowsort label-2526
SELECT + 32 * COUNT ( * ) - + 15 + + 33
----
50

query I rowsort
SELECT ALL + + 56 * - - 69 + + + 88 * + 66
----
9672

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT + + 0 DIV + 6
----
0

skipif mysql # not compatible
query I rowsort label-2528
SELECT + + 0 / + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL + ( - MAX( DISTINCT + + 40 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + ( - MAX ( DISTINCT + + 40 ) ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + - COUNT( * ) + - 65 - + 41 * + - 97
----
3911

skipif mysql # not compatible
query I rowsort label-2530
SELECT + - COUNT ( * ) + - 65 - + 41 * + - 97
----
3911

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

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

query I rowsort
SELECT NULLIF ( - 91, + ( + ( 46 ) ) )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT + 50 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-2533
SELECT + 50 / + 74
----
0

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

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

query I rowsort
SELECT ALL 14 * 97
----
1358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2536
SELECT COALESCE ( + 36, - - 67, - CAST( NULL AS SIGNED ) * 11 - COUNT( DISTINCT 86 ) * 27 )
----
36

skipif mysql # not compatible
query I rowsort label-2536
SELECT COALESCE ( + 36, - - 67, - CAST ( NULL AS INTEGER ) * 11 - COUNT ( DISTINCT 86 ) * 27 )
----
36

query I rowsort
SELECT DISTINCT - 70 * COALESCE ( 30, 98, 26 ) + 56
----
-2044

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

query I rowsort
SELECT - 96 * 45 AS col2
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT COUNT( 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2540
SELECT COUNT ( 7 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - 43 + + + MAX( + 35 ) + - - ( + 66 ) col2
----
58

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 43 + + + MAX ( + 35 ) + - - ( + 66 ) col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT - 60 * - 64 * - COALESCE ( - + 28, + MAX( CAST( NULL AS SIGNED ) ) + CAST( - 17 AS SIGNED ), 14 + + 76 ) * COUNT( * )
----
107520

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 60 * - 64 * - COALESCE ( - + 28, + MAX ( CAST ( NULL AS INTEGER ) ) + CAST ( - 17 AS INTEGER ), 14 + + 76 ) * COUNT ( * )
----
107520

query I rowsort
SELECT DISTINCT + 49 * 68
----
3332

query I rowsort
SELECT ALL - 95 + 17 AS col1
----
-78

query I rowsort
SELECT DISTINCT COALESCE ( + - ( - + 91 ), - - 72 + - 17 ) col1
----
91

query I rowsort
SELECT ALL + 68 * - 81 AS col0
----
-5508

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT - - 36 + - NULLIF ( - + 27, - 99 ) * + CAST( 83 AS SIGNED ) * - 44 + 80 AS col2
----
-98488

skipif mysql # not compatible
query I rowsort label-2548
SELECT - - 36 + - NULLIF ( - + 27, - 99 ) * + CAST ( 83 AS INTEGER ) * - 44 + 80 AS col2
----
-98488

query II rowsort
SELECT - 17 AS col2, 20 * - + 49 AS col0
----
-17
-980

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

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - 25 - - + CAST ( 6 AS INTEGER ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + NULLIF ( 84, + SUM( + 91 ) + - + 78 )
----
84

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + NULLIF ( 84, + SUM ( + 91 ) + - + 78 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL COUNT( * ) / CASE - - 79 WHEN - 81 THEN 28 WHEN 8 * ( + 9 ) + 84 * + 36 THEN - 54 WHEN 9 THEN NULL WHEN + COUNT( * ) THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL COUNT ( * ) / CASE - - 79 WHEN - 81 THEN 28 WHEN 8 * ( + 9 ) + 84 * + 36 THEN - 54 WHEN 9 THEN NULL WHEN + COUNT ( * ) THEN 50 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2553
SELECT - + CAST( - + 62 AS SIGNED ) + 20, + 51 col2
----
82
51

skipif mysql # not compatible
query II rowsort label-2553
SELECT - + CAST ( - + 62 AS INTEGER ) + 20, + 51 col2
----
82
51

query I rowsort
SELECT DISTINCT + + COALESCE ( + 44, + + 54 * - + ( CASE 72 WHEN 0 THEN NULL WHEN + 24 THEN + 91 WHEN - 17 * 77 THEN NULL END ) + 29, + 2 ) - 5 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2555
SELECT DISTINCT 85, NULLIF ( + 22, + CAST( NULL AS SIGNED ) + - 98 ) AS col2
----
85
22

skipif mysql # not compatible
query II rowsort label-2555
SELECT DISTINCT 85, NULLIF ( + 22, + CAST ( NULL AS INTEGER ) + - 98 ) AS col2
----
85
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + 40 * 65 + - COUNT( * ) + 29 AS col2
----
2628

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + 40 * 65 + - COUNT ( * ) + 29 AS col2
----
2628

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2559
SELECT + COALESCE ( 61, 56, - NULLIF ( + + 31, 89 ) DIV 46 + + COUNT( * ) ) + - 50
----
11

skipif mysql # not compatible
query I rowsort label-2559
SELECT + COALESCE ( 61, 56, - NULLIF ( + + 31, 89 ) / 46 + + COUNT ( * ) ) + - 50
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL 9 * MIN( COALESCE ( + 85, 96 * - 76 ) )
----
765

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL 9 * MIN ( COALESCE ( + 85, 96 * - 76 ) )
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT - CASE + 7 WHEN + 17 * + 42 + 8 THEN NULL WHEN 16 + 78 THEN + 94 ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT - CASE + 7 WHEN + 17 * + 42 + 8 THEN NULL WHEN 16 + 78 THEN + 94 ELSE NULL END * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 79 * + 58 + - 50 AS col1
----
4532

query I rowsort
SELECT DISTINCT + 15 * + + 97 + - 90 AS col2
----
1365

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

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

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

query I rowsort
SELECT 7 * 51 + + 34
----
391

query I rowsort
SELECT + 9 * 31 AS col1
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2568
SELECT ALL - NULLIF ( + 20, + 66 * - ( MIN( + 71 ) ) * - 72 + 99 - + 75 DIV COALESCE ( 12 * 14, + CAST( 34 AS SIGNED ) + 42, ( - COUNT( * ) ) + 83 ) ) DIV 42 + 14 col1
----
14

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - NULLIF ( + 20, + 66 * - ( MIN ( + 71 ) ) * - 72 + 99 - + 75 / COALESCE ( 12 * 14, + CAST ( 34 AS INTEGER ) + 42, ( - COUNT ( * ) ) + 83 ) ) / 42 + 14 col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2569
SELECT 71 DIV + ( - 14 ) + + - COUNT( * ), 69 * - - MAX( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) * + NULLIF ( 69 + CAST( NULL AS SIGNED ) * NULLIF ( 4 + 58, 45 ), - 78 DIV + 66 + 42 * - 42 ) AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-2569
SELECT 71 / + ( - 14 ) + + - COUNT ( * ), 69 * - - MAX ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) * + NULLIF ( 69 + CAST ( NULL AS INTEGER ) * NULLIF ( 4 + 58, 45 ), - 78 / + 66 + 42 * - 42 ) AS col0
----
-6
NULL

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

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

query I rowsort
SELECT COALESCE ( + - 77, 52 ) * 55 AS col1
----
-4235

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

skipif mysql # not compatible
query I rowsort label-2572
SELECT CAST ( NULL AS INTEGER ) + + + 6 + + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2573
SELECT ALL ( COALESCE ( - 32, - 66 + COUNT( * ) * + 38 * NULLIF ( 42, + 95 ) + COALESCE ( - COALESCE ( + 68, - 47, 99 + CAST( COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) - 3 AS SIGNED ) ), - 86, - 10 - 0 * - 32, COALESCE ( + COUNT( * ), 52, 65 ) - 39 ) ) ) * COUNT( * ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL ( COALESCE ( - 32, - 66 + COUNT ( * ) * + 38 * NULLIF ( 42, + 95 ) + COALESCE ( - COALESCE ( + 68, - 47, 99 + CAST ( COUNT ( DISTINCT CAST ( NULL AS REAL ) ) - 3 AS INTEGER ) ), - 86, - 10 - 0 * - 32, COALESCE ( + COUNT ( * ), 52, 65 ) - 39 ) ) ) * COUNT ( * ) col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2574
SELECT 94 AS col2, + 93 * - - ( SUM( 12 ) ) * + 11
----
94
12276

skipif mysql # not compatible
query II rowsort label-2574
SELECT 94 AS col2, + 93 * - - ( SUM ( 12 ) ) * + 11
----
94
12276

query I rowsort
SELECT 44 * - 36 + - + 15 AS col2
----
-1599

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2576
SELECT + 43, 71 * COALESCE ( + 69, + 72, - - 17 ) DIV - CAST( + CAST( - 13 AS SIGNED ) * + 50 AS SIGNED ) col2
----
43
7

skipif mysql # not compatible
query II rowsort label-2576
SELECT + 43, 71 * COALESCE ( + 69, + 72, - - 17 ) / - CAST ( + CAST ( - 13 AS INTEGER ) * + 50 AS INTEGER ) col2
----
43
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2577
SELECT 2, + 32 DIV + 13 AS col2
----
2
2

skipif mysql # not compatible
query II rowsort label-2577
SELECT 2, + 32 / + 13 AS col2
----
2
2

query I rowsort
SELECT 63 * - 86 + 5 AS col0
----
-5413

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2580
SELECT 99 * + 71 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT 99 * + 71 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL 66 + - ( - 79 ) * + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL 66 + - ( - 79 ) * + COUNT ( * )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL COUNT( * ) + CASE + 93 WHEN + 85 THEN - - 30 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL COUNT ( * ) + CASE + 93 WHEN + 85 THEN - - 30 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 84 * - 79 col2
----
-6636

query I rowsort
SELECT ALL + 63 + + 25 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT ALL - 9 DIV + 16 * - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - 9 / + 16 * - 18 AS col1
----
0

query I rowsort
SELECT 61 + 19
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2587
SELECT DISTINCT 53 / ( + 40 ) * 90 * + AVG ( ALL + - NULLIF ( - CAST( NULL AS DECIMAL ), + ( 58 ) ) ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT 53 / ( + 40 ) * 90 * + AVG ( ALL + - NULLIF ( - CAST ( NULL AS REAL ), + ( 58 ) ) ) * - 98
----
NULL

query I rowsort
SELECT ALL ( - - 47 ) - - 10
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT NULLIF ( - 14, MIN( ALL - 13 ) ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-2589
SELECT NULLIF ( - 14, MIN ( ALL - 13 ) ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT 77 + - NULLIF ( + ( + - 19 ), COUNT( * ) * + + 16 * - 91 + COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-2590
SELECT 77 + - NULLIF ( + ( + - 19 ), COUNT ( * ) * + + 16 * - 91 + COUNT ( * ) )
----
96

query I rowsort
SELECT ALL + - 89 - - 61 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT 80 * - 73 + + - COUNT( * ) AS col0
----
-5841

skipif mysql # not compatible
query I rowsort label-2592
SELECT 80 * - 73 + + - COUNT ( * ) AS col0
----
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + MAX( - + ( 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-2593
SELECT + MAX ( - + ( 46 ) )
----
-46

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

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

query I rowsort
SELECT + 30 + + 2 * + - ( - 5 ) + - 7 - + 63 AS col1
----
-30

query I rowsort
SELECT ALL NULLIF ( 41, + - 29 + 59 + 78 + 74 / 15 ) AS col0
----
41

query II rowsort
SELECT ALL 74, 63 AS col0
----
74
63

query I rowsort
SELECT + 87 * - 32 - + + 88
----
-2872

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL + 38 * + + ( + CASE 13 WHEN - - 97 THEN + 29 WHEN 42 + 42 THEN NULL ELSE COALESCE ( ( + 83 ), COUNT( * ) ) END )
----
3154

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL + 38 * + + ( + CASE 13 WHEN - - 97 THEN + 29 WHEN 42 + 42 THEN NULL ELSE COALESCE ( ( + 83 ), COUNT ( * ) ) END )
----
3154

query II rowsort
SELECT ALL 57 AS col2, + 88 - + 11 * - 90
----
57
1078

query I rowsort
SELECT DISTINCT + - 22 * - 25 * 8
----
4400

query I rowsort
SELECT - 54 * + - 31 + - - 37
----
1711

query II rowsort
SELECT - - 26, + ( + + 59 ) + + 77 * - + 76 + 90 * + 82 AS col2
----
26
1587

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2604
SELECT ALL - 69 col1, + 78 DIV + MIN( ALL - 14 ) AS col1
----
-69
-5

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL - 69 col1, + 78 / + MIN ( ALL - 14 ) AS col1
----
-69
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT COALESCE ( + 95, + 51, - + 33 DIV - + COUNT( * ) ) col1
----
95

skipif mysql # not compatible
query I rowsort label-2605
SELECT COALESCE ( + 95, + 51, - + 33 / - + COUNT ( * ) ) col1
----
95

query II rowsort
SELECT DISTINCT - 46, + 28 + + + 15 AS col1
----
-46
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT COUNT( * ) * - + ( 53 ) - + 83, + COALESCE ( + NULLIF ( 22, - ( 25 ) * + COALESCE ( - 50 + 73 * 80, - 69 + 20 ) ), 67, COUNT( * ) ) + - COALESCE ( + 63, 32 ) AS col0
----
-136
-41

skipif mysql # not compatible
query II rowsort label-2607
SELECT COUNT ( * ) * - + ( 53 ) - + 83, + COALESCE ( + NULLIF ( 22, - ( 25 ) * + COALESCE ( - 50 + 73 * 80, - 69 + 20 ) ), 67, COUNT ( * ) ) + - COALESCE ( + 63, 32 ) AS col0
----
-136
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT ALL + - 9 + + COALESCE ( + 45, 48 * 78 DIV + MAX( ALL 58 ) * 83 + 10 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + - 9 + + COALESCE ( + 45, 48 * 78 / + MAX ( ALL 58 ) * 83 + 10 ) AS col1
----
36

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

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

query I rowsort
SELECT DISTINCT + 30 + 5 AS col2
----
35

query I rowsort
SELECT ALL 21 + + 45 + + 66
----
132

query I rowsort
SELECT DISTINCT ( - 31 ) * - 21 + - 56 * + 1
----
595

query I rowsort
SELECT ALL + NULLIF ( 59, + 11 ) + + 43
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT - SUM( - + 88 ) + - - 34 * + 71
----
2502

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT - SUM ( - + 88 ) + - - 34 * + 71
----
2502

query I rowsort
SELECT 3 + 61 + + 96 * - + 46
----
-4352

onlyif mysql # DIV for integer division: 
query II rowsort label-2616
SELECT 39 DIV + 23, 73 + 59 AS col0
----
1
132

skipif mysql # not compatible
query II rowsort label-2616
SELECT 39 / + 23, 73 + 59 AS col0
----
1
132

query I rowsort
SELECT ALL - ( + 70 ) + - 34 AS col1
----
-104

query I rowsort
SELECT 76 * - 71 + + 52 AS col0
----
-5344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2619
SELECT ALL - MIN( + ( - 46 ) ), COALESCE ( 76, 6 + + 14, COALESCE ( - CAST( NULL AS SIGNED ), - 55 ), 59 + - 71 ) + 40 AS col2
----
46
116

skipif mysql # not compatible
query II rowsort label-2619
SELECT ALL - MIN ( + ( - 46 ) ), COALESCE ( 76, 6 + + 14, COALESCE ( - CAST ( NULL AS INTEGER ), - 55 ), 59 + - 71 ) + 40 AS col2
----
46
116

query I rowsort
SELECT ALL + 76 - - 77 - 72 * - ( ( + 77 ) ) * - - 99 AS col2
----
549009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2621
SELECT DISTINCT 66 * - COUNT( * ) DIV - - 1 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT 66 * - COUNT ( * ) / - - 1 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT COALESCE ( - - MIN( ALL - + 8 ), - + COUNT( * ) * 63 + + 55 + + 44, 96 + + 35 ) - 21
----
-29

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT COALESCE ( - - MIN ( ALL - + 8 ), - + COUNT ( * ) * 63 + + 55 + + 44, 96 + + 35 ) - 21
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT 30 * + 31 * COUNT( * ) AS col1
----
930

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT 30 * + 31 * COUNT ( * ) AS col1
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + 35 * MIN( ALL 15 )
----
525

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 35 * MIN ( ALL 15 )
----
525

query II rowsort
SELECT 92 * 47, 82 AS col2
----
4324
82

query I rowsort
SELECT ALL - 33 * 94
----
-3102

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

query II rowsort
SELECT ALL ( - + 19 ) col2, 84 AS col0
----
-19
84

query II rowsort
SELECT ALL - 89 * + - 97, 0 AS col0
----
8633
0

query II rowsort
SELECT 71 * + 72 AS col1, + 30
----
5112
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT ALL 41 * - CAST( - - 48 AS SIGNED )
----
-1968

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL 41 * - CAST ( - - 48 AS INTEGER )
----
-1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT ALL + COUNT( * ) DIV - ( MIN( DISTINCT + + 38 ) ) - + COUNT( * ) * + NULLIF ( - 26, 20 DIV - 70 + - ( 72 ) ) + + 81 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + COUNT ( * ) / - ( MIN ( DISTINCT + + 38 ) ) - + COUNT ( * ) * + NULLIF ( - 26, 20 / - 70 + - ( 72 ) ) + + 81 AS col1
----
107

query I rowsort
SELECT + 51 * ( - - 77 ) AS col0
----
3927

query I rowsort
SELECT 40 * - 41 * - - 92 * + 27
----
-4073760

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT ALL + - 57 + + + 57 DIV + 10 + + + 51 + + 41 + + + 27 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + - 57 + + + 57 / + 10 + + + 51 + + 41 + + + 27 AS col0
----
67

query I rowsort
SELECT 74 + - + 83 * 2
----
-92

query I rowsort
SELECT ALL 44 + + - 6 AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT ALL - - 44 + 70 AS col2, - 23 * COUNT( + 36 ) AS col0
----
114
-23

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL - - 44 + 70 AS col2, - 23 * COUNT ( + 36 ) AS col0
----
114
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2640
SELECT - 1 + + 88 AS col1, CAST( - AVG ( ALL - 41 ) AS SIGNED ) * - 84 + 99 + COUNT( * ) * + COUNT( * )
----
87
-3344

skipif mysql # not compatible
query II rowsort label-2640
SELECT - 1 + + 88 AS col1, CAST ( - AVG ( ALL - 41 ) AS INTEGER ) * - 84 + 99 + COUNT ( * ) * + COUNT ( * )
----
87
-3344

query I rowsort
SELECT ALL 71 + - + 63 * + 25 * - 86 + + - COALESCE ( + - 4, - 11 )
----
135525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2642
SELECT DISTINCT + COUNT( * ) + - + 44 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT + COUNT ( * ) + - + 44 / + 49
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2643
SELECT ALL - 71 * - - ( CAST( - - CAST( + 40 AS SIGNED ) AS SIGNED ) )
----
-2840

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - 71 * - - ( CAST ( - - CAST ( + 40 AS INTEGER ) AS INTEGER ) )
----
-2840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT - CASE 22 WHEN 58 + + 57 THEN NULL WHEN - 73 / ( - - 56 ) + - CASE - 51 WHEN 13 * - 10 - - 98 THEN + COUNT( * ) WHEN - 16 + ( + 94 ) THEN NULL WHEN COALESCE ( - 66, 65, 82 / + CASE 66 WHEN 63 THEN 84 / - 84 ELSE NULL END ) THEN COUNT( * ) ELSE + 67 END / CAST( NULL AS SIGNED ) THEN + CAST( 15 AS SIGNED ) + + COUNT( 61 + 36 ) * 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT - CASE 22 WHEN 58 + + 57 THEN NULL WHEN - 73 / ( - - 56 ) + - CASE - 51 WHEN 13 * - 10 - - 98 THEN + COUNT ( * ) WHEN - 16 + ( + 94 ) THEN NULL WHEN COALESCE ( - 66, 65, 82 / + CASE 66 WHEN 63 THEN 84 / - 84 ELSE NULL END ) THEN COUNT ( * ) ELSE + 67 END / CAST ( NULL AS INTEGER ) THEN + CAST ( 15 AS INTEGER ) + + COUNT ( 61 + 36 ) * 81 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2645
SELECT - MIN( ALL CAST( NULL AS SIGNED ) ) + - 5 / + SUM( ALL + + 85 ) - + 10, + 59 AS col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2645
SELECT - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 5 / + SUM ( ALL + + 85 ) - + 10, + 59 AS col0
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL + 55 * + NULLIF ( - + 73, 19 * + 74 * + + 84 ) * - - 61 - + 32 + 22 * + CASE - 4 - + 79 / 28 WHEN - COALESCE ( 62, - 13 * 26, - 97 ) THEN NULL WHEN + 64 THEN - 48 * COUNT( * ) + 53 ELSE + 19 END AS col1
----
-244529

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL + 55 * + NULLIF ( - + 73, 19 * + 74 * + + 84 ) * - - 61 - + 32 + 22 * + CASE - 4 - + 79 / 28 WHEN - COALESCE ( 62, - 13 * 26, - 97 ) THEN NULL WHEN + 64 THEN - 48 * COUNT ( * ) + 53 ELSE + 19 END AS col1
----
-244529

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT + CASE - 5 WHEN COUNT( * ) THEN NULL WHEN + + 43 * NULLIF ( + CASE - 57 WHEN 78 THEN 1 + SUM( ALL - 50 ) WHEN 38 + 52 THEN NULL ELSE NULL END, + 49 ) THEN - 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT + CASE - 5 WHEN COUNT ( * ) THEN NULL WHEN + + 43 * NULLIF ( + CASE - 57 WHEN 78 THEN 1 + SUM ( ALL - 50 ) WHEN 38 + 52 THEN NULL ELSE NULL END, + 49 ) THEN - 32 END AS col0
----
NULL

query I rowsort
SELECT - 67 * + 60 AS col1
----
-4020

query I rowsort
SELECT - 73 * - - 7
----
-511

onlyif mysql # DIV for integer division: 
query II rowsort label-2650
SELECT + 71 DIV 51 DIV - 37 + + - 83 + - 38 DIV + 57 AS col2, 66
----
-83
66

skipif mysql # not compatible
query II rowsort label-2650
SELECT + 71 / 51 / - 37 + + - 83 + - 38 / + 57 AS col2, 66
----
-83
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2652
SELECT DISTINCT CASE + MIN( ALL 11 ) WHEN + 44 THEN 34 ELSE + 63 DIV - 83 * + ( 71 ) END * - CASE - 62 + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN 29 * 42 + 72 ELSE 53 * - 15 END - - 80
----
80

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT CASE + MIN ( ALL 11 ) WHEN + 44 THEN 34 ELSE + 63 / - 83 * + ( 71 ) END * - CASE - 62 + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN 29 * 42 + 72 ELSE 53 * - 15 END - - 80
----
80

query I rowsort
SELECT - 37 * - - ( + 41 ) AS col2
----
-1517

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT ALL 25 * + 78 * + 81 AS col1, COUNT( * ) * - 56 col1
----
157950
-56

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL 25 * + 78 * + 81 AS col1, COUNT ( * ) * - 56 col1
----
157950
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT DISTINCT - ( + COALESCE ( + ( COALESCE ( - 66, - ( 54 ) DIV - 98 + + 40 * - COUNT( * ), NULLIF ( 46, + COUNT( * ) * + COUNT( DISTINCT + 4 ) ) * + ( - 90 * - 93 + 0 ) ) ), 2 * 94 ) ) * - 64 - 49
----
-4273

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - ( + COALESCE ( + ( COALESCE ( - 66, - ( 54 ) / - 98 + + 40 * - COUNT ( * ), NULLIF ( 46, + COUNT ( * ) * + COUNT ( DISTINCT + 4 ) ) * + ( - 90 * - 93 + 0 ) ) ), 2 * 94 ) ) * - 64 - 49
----
-4273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + 66 + + + 69 * + SUM( 94 ) AS col1
----
6552

skipif mysql # not compatible
query I rowsort label-2658
SELECT + 66 + + + 69 * + SUM ( 94 ) AS col1
----
6552

query I rowsort
SELECT ALL - 45 * - 15 * + 8 col0
----
5400

query I rowsort
SELECT ALL - 36 * + 13 AS col1
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT SUM( DISTINCT + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2661
SELECT SUM ( DISTINCT + 6 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT + 26 * 33 * 59 + - 37 + - - COUNT( * ) + 51 + 23 * 58 * CAST( NULL AS SIGNED ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT + 26 * 33 * 59 + - 37 + - - COUNT ( * ) + 51 + 23 * 58 * CAST ( NULL AS INTEGER ) + 35
----
NULL

query I rowsort
SELECT ALL - 93 * ( - 3 ) * 42
----
11718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2664
SELECT - COALESCE ( - - 35, + CASE - 89 WHEN - - 9 - - - 55 THEN 24 WHEN + 64 THEN + ( + 68 ) END * MIN( - 20 ) ) + + CAST( - COALESCE ( + 57, 97 ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-2664
SELECT - COALESCE ( - - 35, + CASE - 89 WHEN - - 9 - - - 55 THEN 24 WHEN + 64 THEN + ( + 68 ) END * MIN ( - 20 ) ) + + CAST ( - COALESCE ( + 57, 97 ) AS INTEGER )
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-2665
SELECT ALL + 96 AS col1, 27 DIV - 46 AS col1
----
96
0

skipif mysql # not compatible
query II rowsort label-2665
SELECT ALL + 96 AS col1, 27 / - 46 AS col1
----
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT + + 16 + - MAX( - 37 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2666
SELECT + + 16 + - MAX ( - 37 ) AS col1
----
53

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

skipif mysql # not compatible
query I rowsort label-2667
SELECT - + 0 * 23 + + COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT ALL + 78 DIV 73 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL + 78 / 73 AS col2
----
1

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

query I rowsort
SELECT + + 66 + - 63
----
3

query I rowsort
SELECT ALL 75 + 61 AS col0
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-2672
SELECT + 45 * + SUM( + + 40 ) - + - 26 AS col0, + 81 - MAX( 54 )
----
1826
27

skipif mysql # not compatible
query II rowsort label-2672
SELECT + 45 * + SUM ( + + 40 ) - + - 26 AS col0, + 81 - MAX ( 54 )
----
1826
27

query II rowsort
SELECT - + 42 AS col2, 30 * + 66 - + + ( - 88 )
----
-42
2068

query I rowsort
SELECT ALL + + 0 + - 17 AS col2
----
-17

query I rowsort
SELECT DISTINCT - COALESCE ( + 64, 72 ) AS col2
----
-64

query I rowsort
SELECT ALL - 95 + - 4
----
-99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2678
SELECT ALL ( + - CASE 86 WHEN - 74 THEN + + ( + 13 ) + 88 DIV + - 45 + 45 ELSE - 58 END ) + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL ( + - CASE 86 WHEN - 74 THEN + + ( + 13 ) + 88 / + - 45 + 45 ELSE - 58 END ) + COUNT ( * ) AS col2
----
59

query I rowsort
SELECT ALL + 45 + - COALESCE ( + 1, + 87 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT + - 40 * SUM( ALL - + 16 ) + + NULLIF ( - CAST( NULL AS SIGNED ), - + ( + MAX( ALL - + ( - 29 ) ) ) * - AVG ( DISTINCT - 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT + - 40 * SUM ( ALL - + 16 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), - + ( + MAX ( ALL - + ( - 29 ) ) ) * - AVG ( DISTINCT - 25 ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL MIN ( ALL 39 )
----
39

query I rowsort
SELECT + 80 * - NULLIF ( - COALESCE ( + 71, + - 36 ), CASE + 7 WHEN 90 - - 71 THEN ( 43 ) * + 1 ELSE + 95 END ) col1
----
5680

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - CASE + MAX( 69 ) WHEN - 57 THEN NULL ELSE - 57 END
----
57

skipif mysql # not compatible
query I rowsort label-2683
SELECT - CASE + MAX ( 69 ) WHEN - 57 THEN NULL ELSE - 57 END
----
57

query I rowsort
SELECT ALL ( - 89 ) - - 95 + ( + + 80 )
----
86

query I rowsort
SELECT + 68 - + - 33 + 71 + 76 + 18
----
266

query II rowsort
SELECT + 44 * 49, - 34 AS col2
----
2156
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL 50 - ( + ( + 54 ) ) + + + 6 - + COUNT( ALL ( + 43 ) ) - + 46 + + 55 * - 35 * + 21
----
-40470

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL 50 - ( + ( + 54 ) ) + + + 6 - + COUNT ( ALL ( + 43 ) ) - + 46 + + 55 * - 35 * + 21
----
-40470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2688
SELECT CAST( + - 11 AS SIGNED ) AS col1, - COUNT( * ) AS col0
----
-11
-1

skipif mysql # not compatible
query II rowsort label-2688
SELECT CAST ( + - 11 AS INTEGER ) AS col1, - COUNT ( * ) AS col0
----
-11
-1

query I rowsort
SELECT ALL + NULLIF ( - 34, 19 * 45 * ( + 81 ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL COUNT( * ) * - 79 * + 39
----
-3081

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL COUNT ( * ) * - 79 * + 39
----
-3081

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT + 51 DIV + 38 - + + 58
----
-57

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 51 / + 38 - + + 58
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT - MIN( + + 74 ) * - - 49
----
-3626

skipif mysql # not compatible
query I rowsort label-2692
SELECT - MIN ( + + 74 ) * - - 49
----
-3626

query II rowsort
SELECT ( - 69 ), 98 AS col1
----
-69
98

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

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

query II rowsort
SELECT ( + 19 ), + 76 - 21 + + ( - 14 ) AS col1
----
19
41

query I rowsort
SELECT + 22 * - 91 + - 76 * - 6 * 89
----
38582

query I rowsort
SELECT - NULLIF ( + 14, + 29 ) * + 85 * + + 55
----
-65450

query I rowsort
SELECT - 6 + 99
----
93

query I rowsort
SELECT ALL - 75 * + - 55 + + - 63
----
4062

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL - ( + COUNT( * ) ) * 54 + - 46 - - + 10
----
-90

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - ( + COUNT ( * ) ) * 54 + - 46 - - + 10
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2701
SELECT DISTINCT 40 * - 21 * 14 - - CAST( NULL AS DECIMAL ) * + COALESCE ( + ( - 59 ), + + AVG ( - - 28 ) ) * 83 + + 24 / 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT 40 * - 21 * 14 - - CAST ( NULL AS REAL ) * + COALESCE ( + ( - 59 ), + + AVG ( - - 28 ) ) * 83 + + 24 / 48 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2703
SELECT - CAST( NULL AS DECIMAL ) * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT - CAST ( NULL AS REAL ) * 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + - NULLIF ( + 88, - + 52 + - 57 ) * - CASE - COUNT( * ) WHEN 20 THEN NULL WHEN - 16 / 22 + + 51 * 49 THEN + 60 * - 58 - - COUNT( * ) END - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT + - NULLIF ( + 88, - + 52 + - 57 ) * - CASE - COUNT ( * ) WHEN 20 THEN NULL WHEN - 16 / 22 + + 51 * 49 THEN + 60 * - 58 - - COUNT ( * ) END - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - - 10 * - + 36 * - CASE 20 WHEN - + SUM( ALL - 71 ) - + - 36 THEN + 5 WHEN - 63 THEN NULL ELSE + 35 * MAX( + 67 ) END AS col2
----
844200

skipif mysql # not compatible
query I rowsort label-2705
SELECT - - 10 * - + 36 * - CASE 20 WHEN - + SUM ( ALL - 71 ) - + - 36 THEN + 5 WHEN - 63 THEN NULL ELSE + 35 * MAX ( + 67 ) END AS col2
----
844200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT - 47 + + - NULLIF ( CAST( NULL AS SIGNED ), + 79 + + 50 ) + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 47 + + - NULLIF ( CAST ( NULL AS INTEGER ), + 79 + + 50 ) + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT - + 36 * + - MIN( DISTINCT 26 ) * - 92 AS col1
----
-86112

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - + 36 * + - MIN ( DISTINCT 26 ) * - 92 AS col1
----
-86112

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

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + 9 * + COUNT ( * ) + COUNT ( * ) AS col1
----
10

query I rowsort
SELECT 80 - + + 21 * - 75
----
1655

query I rowsort
SELECT ALL - 63 + - + 22 * + + 22
----
-547

onlyif mysql # aggregate syntax: 
query III rowsort label-2711
SELECT 83 + + 42 AS col1, 63 * COUNT( * ) - + 15, - - 18 AS col0
----
125
48
18

skipif mysql # not compatible
query III rowsort label-2711
SELECT 83 + + 42 AS col1, 63 * COUNT ( * ) - + 15, - - 18 AS col0
----
125
48
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2713
SELECT DISTINCT NULLIF ( + + 19, - + MAX( - + 77 ) ) * - - 56 - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT NULLIF ( + + 19, - + MAX ( - + 77 ) ) * - - 56 - + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT 19 + + 57
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2715
SELECT COUNT( * ) + - COUNT( * ) * + 87 * + + 50 + 24 DIV + + 39 + - + COUNT( * ) col1
----
-4350

skipif mysql # not compatible
query I rowsort label-2715
SELECT COUNT ( * ) + - COUNT ( * ) * + 87 * + + 50 + 24 / + + 39 + - + COUNT ( * ) col1
----
-4350

query I rowsort
SELECT ALL 56 * ( + 31 )
----
1736

query I rowsort
SELECT DISTINCT + NULLIF ( - 55, - 80 ) * 9 AS col2
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT COALESCE ( - - 51, + MAX( ALL - - 50 ), + COUNT( * ) + 72 * + 23 ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT COALESCE ( - - 51, + MAX ( ALL - - 50 ), + COUNT ( * ) + 72 * + 23 ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT ALL ( + 75 ) * 72 + - 20 * + + 54 * - 56 + + CASE - 7 WHEN + 60 THEN - 37 + + CAST( NULL AS SIGNED ) * + 20 END * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL ( + 75 ) * 72 + - 20 * + + 54 * - 56 + + CASE - 7 WHEN + 60 THEN - 37 + + CAST ( NULL AS INTEGER ) * + 20 END * - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT SUM( + + ( - + 93 ) ) * - - 80
----
-7440

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT SUM ( + + ( - + 93 ) ) * - - 80
----
-7440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2721
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) * COALESCE ( + - 11, + 26 ) * - - 70 + + - 57 + + ( - COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) * COALESCE ( + - 11, + 26 ) * - - 70 + + - 57 + + ( - COUNT ( * ) ) col0
----
NULL

query II rowsort
SELECT DISTINCT 91, 14 col2
----
91
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT ( 89 ) DIV 6 * COUNT( DISTINCT + ( 83 ) ) + - 57
----
-43

skipif mysql # not compatible
query I rowsort label-2723
SELECT ( 89 ) / 6 * COUNT ( DISTINCT + ( 83 ) ) + - 57
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT DISTINCT 90 DIV + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT 90 / + + 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2725
SELECT DISTINCT 7 DIV + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT 7 / + + 84 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT DISTINCT 1 + SUM( + 81 ) + - CAST( + COUNT( * ) AS SIGNED ) * SUM( ALL - - 54 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT 1 + SUM ( + 81 ) + - CAST ( + COUNT ( * ) AS INTEGER ) * SUM ( ALL - - 54 ) AS col0
----
28

query I rowsort
SELECT DISTINCT + 74 + + 32 AS col1
----
106

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

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT COUNT ( * ) * - 13 + 96 AS col1
----
83

query I rowsort
SELECT + 82 * NULLIF ( 21, - + 65 )
----
1722

query II rowsort
SELECT + 20 AS col1, 47 AS col0
----
20
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL 21 * CASE + ( + - COUNT( * ) ) WHEN - 62 THEN + - 31 WHEN - 19 * + + ( - - 3 ) * 47 THEN NULL ELSE NULL END * - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 21 * CASE + ( + - COUNT ( * ) ) WHEN - 62 THEN + - 31 WHEN - 19 * + + ( - - 3 ) * 47 THEN NULL ELSE NULL END * - 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 52 + - - 44 * - - 67 AS col2
----
2896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT DISTINCT + 94 + + + 63 + + 41 - - + MAX( 48 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT + 94 + + + 63 + + 41 - - + MAX ( 48 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 92, - 90 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT DISTINCT 92 + + ( + 65 ) DIV 94 col0
----
92

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT 92 + + ( + 65 ) / 94 col0
----
92

query I rowsort
SELECT DISTINCT + + 13 + - ( + 81 ) AS col1
----
-68

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT DISTINCT + 67 DIV - 30
----
-2

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT + 67 / - 30
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT 49 + + 42 / CAST( NULL AS SIGNED ) / - ( + + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT 49 + + 42 / CAST ( NULL AS INTEGER ) / - ( + + 2 )
----
NULL

query I rowsort
SELECT - CASE - 17 WHEN - - 88 THEN NULL ELSE 77 + ( - + 94 ) END * 43 * + 3
----
2193

query II rowsort
SELECT ALL - - 71 * - 18 * - - 77 AS col0, + 25 AS col0
----
-98406
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT - 3 + - NULLIF ( + 91, - 30 + CASE 74 WHEN + COUNT( + 14 ) + - COALESCE ( + 6, + 70 ) THEN 3 * - 17 + 63 * 59 ELSE NULL END + - 55 ) + 84 * 62
----
5114

skipif mysql # not compatible
query I rowsort label-2743
SELECT - 3 + - NULLIF ( + 91, - 30 + CASE 74 WHEN + COUNT ( + 14 ) + - COALESCE ( + 6, + 70 ) THEN 3 * - 17 + 63 * 59 ELSE NULL END + - 55 ) + 84 * 62
----
5114

onlyif mysql # DIV for integer division: 
query II rowsort label-2744
SELECT - 47 DIV + 94 * 92, + 54 * + 98 - - + 37 AS col0
----
0
5329

skipif mysql # not compatible
query II rowsort label-2744
SELECT - 47 / + 94 * 92, + 54 * + 98 - - + 37 AS col0
----
0
5329

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT 87 * 80 * - + COUNT( * ) + 29 AS col1
----
-6931

skipif mysql # not compatible
query I rowsort label-2745
SELECT 87 * 80 * - + COUNT ( * ) + 29 AS col1
----
-6931

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2746
SELECT ALL 17, CAST( 13 AS SIGNED ) + - - 35 AS col2
----
17
48

skipif mysql # not compatible
query II rowsort label-2746
SELECT ALL 17, CAST ( 13 AS INTEGER ) + - - 35 AS col2
----
17
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT 29 AS col2, 59 + - - COUNT( * )
----
29
60

skipif mysql # not compatible
query II rowsort label-2747
SELECT 29 AS col2, 59 + - - COUNT ( * )
----
29
60

query I rowsort
SELECT ALL + 49 * + - 73 * + - 16 col1
----
57232

query I rowsort
SELECT 45 * + 63
----
2835

query II rowsort
SELECT 37, - 4 AS col1
----
37
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2751
SELECT ALL 28 AS col1, - 55 + + - 97 + MIN( ALL - + 54 ) - 82
----
28
-288

skipif mysql # not compatible
query II rowsort label-2751
SELECT ALL 28 AS col1, - 55 + + - 97 + MIN ( ALL - + 54 ) - 82
----
28
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2752
SELECT ALL 80 AS col0, COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) + - + 84 - - 48 * + 74 * - CAST( + 28 AS SIGNED )
----
80
-99540

skipif mysql # not compatible
query II rowsort label-2752
SELECT ALL 80 AS col0, COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) + - + 84 - - 48 * + 74 * - CAST ( + 28 AS INTEGER )
----
80
-99540

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2754
SELECT ALL COUNT( * ), + CAST( 76 AS SIGNED ) col0
----
1
76

skipif mysql # not compatible
query II rowsort label-2754
SELECT ALL COUNT ( * ), + CAST ( 76 AS INTEGER ) col0
----
1
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2756
SELECT 72 col0, 99 + - 5 * 2 - + CASE - - 80 WHEN + CAST( NULL AS SIGNED ) THEN - MAX( ALL - - 44 ) * + + 81 + + 82 + 63 ELSE COALESCE ( - 89, 35 DIV 13 + 75 ) * 55 END * 60
----
72
293789

skipif mysql # not compatible
query II rowsort label-2756
SELECT 72 col0, 99 + - 5 * 2 - + CASE - - 80 WHEN + CAST ( NULL AS INTEGER ) THEN - MAX ( ALL - - 44 ) * + + 81 + + 82 + 63 ELSE COALESCE ( - 89, 35 / 13 + 75 ) * 55 END * 60
----
72
293789

query I rowsort
SELECT ALL 66 * + + 70
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL 1 + + 6 * - MIN( ALL - 10 ) + - ( + 5 )
----
56

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL 1 + + 6 * - MIN ( ALL - 10 ) + - ( + 5 )
----
56

query I rowsort
SELECT 73 * - 47 AS col2
----
-3431

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL 95 * + 54 * - + CASE + AVG ( DISTINCT + 2 ) WHEN + - COUNT( * ) * MAX( ALL - 24 ) + - - 8 THEN + 85 + - 49 END / 14 + - 13 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL 95 * + 54 * - + CASE + AVG ( DISTINCT + 2 ) WHEN + - COUNT ( * ) * MAX ( ALL - 24 ) + - - 8 THEN + 85 + - 49 END / 14 + - 13 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT - COALESCE ( 41, - ( - 21 ) + + NULLIF ( - - ( + - NULLIF ( + - ( + + 3 ), SUM( DISTINCT + - 62 ) + 97 ) ), 50 ) + - 7 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT - COALESCE ( 41, - ( - 21 ) + + NULLIF ( - - ( + - NULLIF ( + - ( + + 3 ), SUM ( DISTINCT + - 62 ) + 97 ) ), 50 ) + - 7 ) col2
----
-41

query I rowsort
SELECT ALL + 15 * 3 + - 46 * - - 15
----
-645

query I rowsort
SELECT 60 * - 16 * + 67
----
-64320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2764
SELECT NULLIF ( - - 32, + 60 ) DIV + MIN( + 42 ) + - + ( + + 88 ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-2764
SELECT NULLIF ( - - 32, + 60 ) / + MIN ( + 42 ) + - + ( + + 88 ) col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2765
SELECT CAST( - 39 AS DECIMAL ) * - + 50 + - + 43 - 17 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT CAST ( - 39 AS REAL ) * - + 50 + - + 43 - 17 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT + - COALESCE ( - 85, MAX( ALL + - ( - 25 ) ) - - COUNT( * ) + + + 77 - - COUNT( * ), 25 - - 59 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2766
SELECT + - COALESCE ( - 85, MAX ( ALL + - ( - 25 ) ) - - COUNT ( * ) + + + 77 - - COUNT ( * ), 25 - - 59 ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2767
SELECT + 45 DIV 26 * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2767
SELECT + 45 / 26 * + COUNT ( * ) AS col0
----
1

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

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

query I rowsort
SELECT + - COALESCE ( 85, + 34 - + + 45 - 60 ) AS col1
----
-85

query I rowsort
SELECT ALL - 37 * - 59 + 29 + - 56 * + 34 AS col1
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - 15 * + - 13 * + 56 * - - 20 + - COUNT( * ) AS col0
----
218399

skipif mysql # not compatible
query I rowsort label-2771
SELECT - 15 * + - 13 * + 56 * - - 20 + - COUNT ( * ) AS col0
----
218399

query I rowsort
SELECT + 72 * - + 87 col0
----
-6264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2773
SELECT ALL - 74 DIV + 30 + 82 DIV - - MAX( DISTINCT + 91 )
----
-2

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - 74 / + 30 + 82 / - - MAX ( DISTINCT + 91 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL - - COUNT( - + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - - COUNT ( - + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL - - COUNT( ALL - 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL - - COUNT ( ALL - 17 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 45 + CAST( NULL AS SIGNED ) - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 45 + CAST ( NULL AS INTEGER ) - 54 col1
----
NULL

query II rowsort
SELECT DISTINCT - + 3 col0, 1 * - 26 AS col2
----
-3
-26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2779
SELECT + CAST( - 79 AS SIGNED ) * 57 + NULLIF ( COUNT( * ), + 96 )
----
-4502

skipif mysql # not compatible
query I rowsort label-2779
SELECT + CAST ( - 79 AS INTEGER ) * 57 + NULLIF ( COUNT ( * ), + 96 )
----
-4502

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT + - 74 AS col2, - COUNT( ALL ( - 75 ) ) AS col1
----
-74
-1

skipif mysql # not compatible
query II rowsort label-2781
SELECT + - 74 AS col2, - COUNT ( ALL ( - 75 ) ) AS col1
----
-74
-1

query II rowsort
SELECT + + 89 AS col1, 51 AS col2
----
89
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2783
SELECT 69 * + 43 * CAST( - COUNT( * ) AS SIGNED ) + - NULLIF ( + 92, 3 ) - - 98 + - 70 DIV - + 70
----
-2960

skipif mysql # not compatible
query I rowsort label-2783
SELECT 69 * + 43 * CAST ( - COUNT ( * ) AS INTEGER ) + - NULLIF ( + 92, 3 ) - - 98 + - 70 / - + 70
----
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT ( + 7 ) * SUM( - 90 )
----
-630

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT ( + 7 ) * SUM ( - 90 )
----
-630

query II rowsort
SELECT ALL 48 * - 52 AS col0, 20 AS col0
----
-2496
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT + - 83 * 47 * 80 * - CAST( + + 31 AS SIGNED ) AS col2
----
9674480

skipif mysql # not compatible
query I rowsort label-2786
SELECT + - 83 * 47 * 80 * - CAST ( + + 31 AS INTEGER ) AS col2
----
9674480

query I rowsort
SELECT + - 66 - - 4 AS col0
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + COUNT( * ) + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-2789
SELECT + COUNT ( * ) + - 85
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL CASE + 9 WHEN - + ( + MAX( - 92 ) ) THEN + 54 * - 70 + - 73 + - CASE + 3 WHEN 67 * + 10 THEN NULL ELSE - 63 END + 49 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL CASE + 9 WHEN - + ( + MAX ( - 92 ) ) THEN + 54 * - 70 + - 73 + - CASE + 3 WHEN 67 * + 10 THEN NULL ELSE - 63 END + 49 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2791
SELECT - COUNT( * ) - - + 27 * CAST( + - SUM( ALL + CAST( - 49 AS SIGNED ) ) AS SIGNED ) AS col1
----
1322

skipif mysql # not compatible
query I rowsort label-2791
SELECT - COUNT ( * ) - - + 27 * CAST ( + - SUM ( ALL + CAST ( - 49 AS INTEGER ) ) AS INTEGER ) AS col1
----
1322

query I rowsort
SELECT + 85 + + - 73 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT - 91 - - - COUNT( * ) + + 94 + + 75
----
77

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 91 - - - COUNT ( * ) + + 94 + + 75
----
77

query II rowsort
SELECT - ( 25 ) AS col2, 42 col0
----
-25
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2795
SELECT - 37 DIV 1
----
-37

skipif mysql # not compatible
query I rowsort label-2795
SELECT - 37 / 1
----
-37

query I rowsort
SELECT - 55 + + 68 + - 11 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT NULLIF ( + - 48, - + 14 + 22 * - COUNT( * ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT NULLIF ( + - 48, - + 14 + 22 * - COUNT ( * ) ) AS col1
----
-48

query I rowsort
SELECT ALL + 91 + + 75 * - 50 * 71 AS col0
----
-266159

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

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

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

query I rowsort
SELECT ALL - 55 + - 15
----
-70

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

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

query II rowsort
SELECT ALL 95 + - 6 col0, - 41 * - 92 AS col0
----
89
3772

query I rowsort
SELECT - 1 + + 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL NULLIF ( - - COUNT( * ), 72 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL NULLIF ( - - COUNT ( * ), 72 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL + 28 + + 59 - MIN( 6 ) + + 19
----
100

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + 28 + + 59 - MIN ( 6 ) + + 19
----
100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2807
SELECT DISTINCT - 74 + - 56, 96 DIV CAST( - - AVG ( ALL + 39 ) AS SIGNED ) AS col2
----
-130
2

skipif mysql # not compatible
query II rowsort label-2807
SELECT DISTINCT - 74 + - 56, 96 / CAST ( - - AVG ( ALL + 39 ) AS INTEGER ) AS col2
----
-130
2

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

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT + 10 + + COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2809
SELECT ALL COUNT( ALL ( + - 67 ) ) DIV + 60 + 58 * + ( - 83 ) + COUNT( * ) * + 64 + - + 32 AS col2
----
-4782

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL COUNT ( ALL ( + - 67 ) ) / + 60 + 58 * + ( - 83 ) + COUNT ( * ) * + 64 + - + 32 AS col2
----
-4782

query I rowsort
SELECT - - 40 / CASE - 49 WHEN - NULLIF ( 63, + 64 ) THEN NULL WHEN ( + 56 ) THEN - 8 + - 29 ELSE NULL END + + 33 * + 9 AS col2
----
NULL

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

query I rowsort
SELECT ALL + 44 * + + 42 AS col2
----
1848

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL + 61 * 91 * + 34 + 19 DIV + ( + 98 ) * - + 73 - SUM( - 96 )
----
188830

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + 61 * 91 * + 34 + 19 / + ( + 98 ) * - + 73 - SUM ( - 96 )
----
188830

query I rowsort
SELECT DISTINCT - 33 * - + 18 - + 6
----
588

query I rowsort
SELECT + - 73 * - - 47
----
-3431

query I rowsort
SELECT ALL - + 79 * + 32 AS col1
----
-2528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2818
SELECT + + 98 * - + 63 DIV + + COUNT( * )
----
-6174

skipif mysql # not compatible
query I rowsort label-2818
SELECT + + 98 * - + 63 / + + COUNT ( * )
----
-6174

query I rowsort
SELECT + - 81 + + - NULLIF ( - 11, 82 ) * - ( + 67 ) AS col2
----
-818

query I rowsort
SELECT + ( 24 ) * - 35
----
-840

query I rowsort
SELECT + 70 * 84 + - CASE + NULLIF ( + 29, - 4 ) WHEN - - 83 THEN - 46 WHEN + 31 THEN NULL END
----
NULL

query I rowsort
SELECT + - 37 * ( - 8 ) - 29 * - 47
----
1659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT 21 * - - 20 + + SUM( + - CAST( NULL AS SIGNED ) ) * - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT 21 * - - 20 + + SUM ( + - CAST ( NULL AS INTEGER ) ) * - - 47
----
NULL

query I rowsort
SELECT + 52 * - 85 * + 21
----
-92820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2825
SELECT + 15 + + + 58 * 75 * - + COALESCE ( MIN( ALL + 80 ), + 97, - + 97 DIV + 74 * - - 25 ) * 99 + - - COUNT( * ) * + 95 + + ( + 17 )
----
-34451873

skipif mysql # not compatible
query I rowsort label-2825
SELECT + 15 + + + 58 * 75 * - + COALESCE ( MIN ( ALL + 80 ), + 97, - + 97 / + 74 * - - 25 ) * 99 + - - COUNT ( * ) * + 95 + + ( + 17 )
----
-34451873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT + CAST( + + 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2826
SELECT + CAST ( + + 84 AS INTEGER ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT SUM( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-2827
SELECT SUM ( 37 )
----
37

query I rowsort
SELECT + 61 * + 6
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT + 67 + - SUM( - 81 )
----
148

skipif mysql # not compatible
query I rowsort label-2829
SELECT + 67 + - SUM ( - 81 )
----
148

query I rowsort
SELECT ALL ( + 2 ) * + - 96 + + 20 - - 33 + - + 4 + 43
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT MAX( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2831
SELECT MAX ( 95 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT - ( + - CASE + 77 WHEN - - COALESCE ( 73, + + CASE + - MIN( 75 ) WHEN COALESCE ( 38, 60 + - 26 / - + 7 + + COALESCE ( 36, + 4 ) / - COUNT( * ) ) * 21 THEN 61 WHEN 15 * 7 + 15 * 11 THEN 61 + - 4 END * 60, CAST( NULL AS SIGNED ) ) THEN 73 WHEN + 44 / NULLIF ( + COUNT( * ), - 82 * + 13 + - ( - 15 ) ) THEN 44 * COUNT( * ) WHEN + 41 * - CAST( - 20 AS SIGNED ) THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT - ( + - CASE + 77 WHEN - - COALESCE ( 73, + + CASE + - MIN ( 75 ) WHEN COALESCE ( 38, 60 + - 26 / - + 7 + + COALESCE ( 36, + 4 ) / - COUNT ( * ) ) * 21 THEN 61 WHEN 15 * 7 + 15 * 11 THEN 61 + - 4 END * 60, CAST ( NULL AS INTEGER ) ) THEN 73 WHEN + 44 / NULLIF ( + COUNT ( * ), - 82 * + 13 + - ( - 15 ) ) THEN 44 * COUNT ( * ) WHEN + 41 * - CAST ( - 20 AS INTEGER ) THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT - CAST( 50 AS SIGNED ) + - CAST( + - 75 AS SIGNED ) AS col1, + 98 + - - 94 AS col1
----
25
192

skipif mysql # not compatible
query II rowsort label-2833
SELECT - CAST ( 50 AS INTEGER ) + - CAST ( + - 75 AS INTEGER ) AS col1, + 98 + - - 94 AS col1
----
25
192

query I rowsort
SELECT ALL 25 + + 61 + - - 38 AS col0
----
124

query I rowsort
SELECT + 31 * 92
----
2852

query I rowsort
SELECT DISTINCT - 41 + 8 * - 59 * - - 82
----
-38745

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

skipif mysql # not compatible
query II rowsort label-2837
SELECT 97 AS col1, COUNT ( * )
----
97
1

query I rowsort
SELECT ALL 90 + + - 8 * + + 76
----
-518

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2839
SELECT - COUNT( * ) * + - 75 DIV - 28, - 89 * 96 AS col2
----
-2
-8544

skipif mysql # not compatible
query II rowsort label-2839
SELECT - COUNT ( * ) * + - 75 / - 28, - 89 * 96 AS col2
----
-2
-8544

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2841
SELECT ALL 83 + + + 45 DIV - 88 * + - SUM( + 14 ) * + 76 * - 31 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL 83 + + + 45 / - 88 * + - SUM ( + 14 ) * + 76 * - 31 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2842
SELECT - CAST( NULL AS DECIMAL ) AS col1, + 43 * + - COALESCE ( + MAX( + COALESCE ( 60, - 67 ) ), 71 + + 46 DIV - 87 + + + 51, 45 + 31 * 3 ) col0
----
NULL
-2580

skipif mysql # not compatible
query II rowsort label-2842
SELECT - CAST ( NULL AS REAL ) AS col1, + 43 * + - COALESCE ( + MAX ( + COALESCE ( 60, - 67 ) ), 71 + + 46 / - 87 + + + 51, 45 + 31 * 3 ) col0
----
NULL
-2580

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT - 54 DIV + ( 80 )
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT - 54 / + ( 80 )
----
0

query I rowsort
SELECT ALL + 24 + + 85
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2845
SELECT + CASE - 96 WHEN 56 THEN NULL WHEN + - 95 * - CASE - 78 WHEN + - 0 THEN 18 ELSE + 61 + 3 + 40 * - 10 - - 42 + + 50 * - COUNT( * ) END - COALESCE ( SUM( 27 ), COUNT( * ) ) THEN NULL ELSE + 3 - - 17 DIV + 28 END * + 15
----
45

skipif mysql # not compatible
query I rowsort label-2845
SELECT + CASE - 96 WHEN 56 THEN NULL WHEN + - 95 * - CASE - 78 WHEN + - 0 THEN 18 ELSE + 61 + 3 + 40 * - 10 - - 42 + + 50 * - COUNT ( * ) END - COALESCE ( SUM ( 27 ), COUNT ( * ) ) THEN NULL ELSE + 3 - - 17 / + 28 END * + 15
----
45

query I rowsort
SELECT - 71 * - 36 AS col2
----
2556

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT ALL - 32 * - MIN( ALL + + 97 ), 34 * - 8 AS col2
----
3104
-272

skipif mysql # not compatible
query II rowsort label-2848
SELECT ALL - 32 * - MIN ( ALL + + 97 ), 34 * - 8 AS col2
----
3104
-272

query I rowsort
SELECT - 84 - - - 91
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2850
SELECT DISTINCT CASE + 21 WHEN + + ( - CAST( NULL AS SIGNED ) ) THEN + 8 WHEN + - 30 THEN + 1 END * + - 39 AS col2, - 82 col0
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-2850
SELECT DISTINCT CASE + 21 WHEN + + ( - CAST ( NULL AS INTEGER ) ) THEN + 8 WHEN + - 30 THEN + 1 END * + - 39 AS col2, - 82 col0
----
NULL
-82

query I rowsort
SELECT ALL - 82 - - 11
----
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL - - NULLIF ( ( 0 ), + CAST( + - 63 AS SIGNED ) * + 31 + 27 - + 13 * + ( + 50 ) - - MAX( DISTINCT + 11 ) + - 7 ) * - 49
----
0

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL - - NULLIF ( ( 0 ), + CAST ( + - 63 AS INTEGER ) * + 31 + 27 - + 13 * + ( + 50 ) - - MAX ( DISTINCT + 11 ) + - 7 ) * - 49
----
0

query II rowsort
SELECT ALL - + 81, - 86 AS col2
----
-81
-86

query II rowsort
SELECT 79 AS col0, ( 21 )
----
79
21

query II rowsort
SELECT + + 47 AS col2, 54 AS col2
----
47
54

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

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 68 * + 0 + CAST ( + - 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL - - 51 * - 35 * - 34 + 40 - + 62 * - SUM( + 21 ) * + COALESCE ( 23, + + 50 ) + + 93 - + 1 * - 73 * 81 * + 14 AS col0
----
173551

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL - - 51 * - 35 * - 34 + 40 - + 62 * - SUM ( + 21 ) * + COALESCE ( 23, + + 50 ) + + 93 - + 1 * - 73 * 81 * + 14 AS col0
----
173551

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT + 9 * - + 2 * 34 + - + COUNT( * ) * - 83 AS col0
----
-529

skipif mysql # not compatible
query I rowsort label-2859
SELECT + 9 * - + 2 * 34 + - + COUNT ( * ) * - 83 AS col0
----
-529

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

query I rowsort
SELECT ALL + 95 * + - 5
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - 37 + 49 * + 57 * - COUNT( * )
----
-2830

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - 37 + 49 * + 57 * - COUNT ( * )
----
-2830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2863
SELECT - 63 * + 81 + + - 50 + + + COALESCE ( - NULLIF ( 69, + 17 + - + 97 + - - 94 * + 0 - COUNT( * ) + 85 * - 33 ), ( - COUNT( * ) ) - - 81 ) DIV 62
----
-5154

skipif mysql # not compatible
query I rowsort label-2863
SELECT - 63 * + 81 + + - 50 + + + COALESCE ( - NULLIF ( 69, + 17 + - + 97 + - - 94 * + 0 - COUNT ( * ) + 85 * - 33 ), ( - COUNT ( * ) ) - - 81 ) / 62
----
-5154

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2865
SELECT ALL - ( - CAST( NULL AS SIGNED ) ), + 91 + + 92 AS col0
----
NULL
183

skipif mysql # not compatible
query II rowsort label-2865
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ), + 91 + + 92 AS col0
----
NULL
183

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT 83 * + 21 * - + ( CASE + + 48 WHEN COUNT( * ) / - 37 * + 47 THEN - NULLIF ( + 48, + 5 ) / 15 + - 11 + + NULLIF ( + 37, COUNT( * ) ) + + ( - CASE ( - 22 ) WHEN 56 THEN 47 END ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT 83 * + 21 * - + ( CASE + + 48 WHEN COUNT ( * ) / - 37 * + 47 THEN - NULLIF ( + 48, + 5 ) / 15 + - 11 + + NULLIF ( + 37, COUNT ( * ) ) + + ( - CASE ( - 22 ) WHEN 56 THEN 47 END ) END ) AS col0
----
NULL

query I rowsort
SELECT 54 + - 81 AS col2
----
-27

query I rowsort
SELECT ALL 26 + - 5
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT MAX( DISTINCT 84 ) + - 39
----
45

skipif mysql # not compatible
query I rowsort label-2870
SELECT MAX ( DISTINCT 84 ) + - 39
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT DISTINCT + 46 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + 46 / 65 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2872
SELECT ALL 19 + + 52 * - 80 * - + 26 AS col0, 2 DIV ( - 34 )
----
108179
0

skipif mysql # not compatible
query II rowsort label-2872
SELECT ALL 19 + + 52 * - 80 * - + 26 AS col0, 2 / ( - 34 )
----
108179
0

query I rowsort
SELECT DISTINCT 49 + + 74 * + + 89 AS col1
----
6635

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT 63 + - SUM( DISTINCT - 98 ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-2874
SELECT 63 + - SUM ( DISTINCT - 98 ) AS col1
----
161

query I rowsort
SELECT ALL 84 + + + 75
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT MIN( DISTINCT + 14 ) + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2876
SELECT MIN ( DISTINCT + 14 ) + COUNT ( * ) AS col1
----
15

query I rowsort
SELECT DISTINCT 42 * + 87
----
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT + 82 + CAST( NULL AS SIGNED ) + - + 98 + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT + 82 + CAST ( NULL AS INTEGER ) + - + 98 + 73 AS col2
----
NULL

query I rowsort
SELECT ALL + - 4 - + 32 * 95 * 28
----
-85124

query I rowsort
SELECT - 91 * 58 AS col0
----
-5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT DISTINCT + 95 * - 16 * - CAST( NULL AS SIGNED ) / ( - NULLIF ( - COUNT( * ), - 43 * - 84 / 44 + - ( 17 ) ) ) / + COALESCE ( - - 20, - COUNT( * ) + 74 * - 9, 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT + 95 * - 16 * - CAST ( NULL AS INTEGER ) / ( - NULLIF ( - COUNT ( * ), - 43 * - 84 / 44 + - ( 17 ) ) ) / + COALESCE ( - - 20, - COUNT ( * ) + 74 * - 9, 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - NULLIF ( 88, + 18 ) + + COUNT( * ) * - 65 * + 92 + MAX( DISTINCT - 45 ) - - CASE 37 WHEN - 10 * - 75 + - - 74 + + 18 THEN - 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT - NULLIF ( 88, + 18 ) + + COUNT ( * ) * - 65 * + 92 + MAX ( DISTINCT - 45 ) - - CASE 37 WHEN - 10 * - 75 + - - 74 + + 18 THEN - 63 ELSE NULL END
----
NULL

query I rowsort
SELECT 80 + - ( - 87 )
----
167

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2885
SELECT ALL 88 DIV - - 70 AS col1, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-2885
SELECT ALL 88 / - - 70 AS col1, 24
----
1
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2886
SELECT - 57 / CAST( NULL AS DECIMAL ) AS col1, 81 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-2886
SELECT - 57 / CAST ( NULL AS REAL ) AS col1, 81 AS col2
----
NULL
81

query I rowsort
SELECT 69 * + 86 * 19 + - - 2
----
112748

query II rowsort
SELECT ALL - ( - 50 ), + 53 AS col0
----
50
53

query I rowsort
SELECT ALL + 1 * + 31 col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT ALL - MAX( + - 22 ) DIV - 80 + + - SUM( 9 ) + 51 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - MAX ( + - 22 ) / - 80 + + - SUM ( 9 ) + 51 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2891
SELECT - CAST( NULL AS SIGNED ) / - 33 - - + COUNT( ALL 4 ) * + 60 + COUNT( * ) * - + CAST( NULL AS SIGNED ), CASE 80 WHEN + + COUNT( * ) * - 98 + + ( + 43 ) THEN + + 96 WHEN - 0 THEN NULL END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2891
SELECT - CAST ( NULL AS INTEGER ) / - 33 - - + COUNT ( ALL 4 ) * + 60 + COUNT ( * ) * - + CAST ( NULL AS INTEGER ), CASE 80 WHEN + + COUNT ( * ) * - 98 + + ( + 43 ) THEN + + 96 WHEN - 0 THEN NULL END col1
----
NULL
NULL

query I rowsort
SELECT ALL - + NULLIF ( + 77, + 21 )
----
-77

query I rowsort
SELECT + 7 + + 73
----
80

query I rowsort
SELECT ALL 77 + + 58 AS col0
----
135

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

query I rowsort
SELECT ALL - - 11 + + 71 * + 38 col1
----
2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT + CASE + - CAST( NULL AS SIGNED ) WHEN - 55 * + CAST( NULL AS SIGNED ) * 95 THEN NULL WHEN - - 23 THEN + + 13 END - - ( - - CAST( 57 AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT + CASE + - CAST ( NULL AS INTEGER ) WHEN - 55 * + CAST ( NULL AS INTEGER ) * 95 THEN NULL WHEN - - 23 THEN + + 13 END - - ( - - CAST ( 57 AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT + 15 * 75 + COUNT( * )
----
1126

skipif mysql # not compatible
query I rowsort label-2898
SELECT + 15 * 75 + COUNT ( * )
----
1126

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT - ( + 3 ) + - 15 DIV - 34 col0
----
-3

skipif mysql # not compatible
query I rowsort label-2899
SELECT - ( + 3 ) + - 15 / - 34 col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2900
SELECT 59 * - - COUNT( * ) + + 95 AS col0, - 95
----
154
-95

skipif mysql # not compatible
query II rowsort label-2900
SELECT 59 * - - COUNT ( * ) + + 95 AS col0, - 95
----
154
-95

query I rowsort
SELECT DISTINCT - 87 + 50 + + 82 AS col2
----
45

query I rowsort
SELECT ALL + 32 * + 12 AS col1
----
384

query II rowsort
SELECT 31 AS col2, - 61 col1
----
31
-61

query III rowsort
SELECT ALL - 47 col0, ( 26 ), + + 31 AS col0
----
-47
26
31

query I rowsort
SELECT ALL 96 + - 15
----
81

query I rowsort
SELECT 89 + 15 + + 57
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT SUM( ALL - - 55 ) * + ( 98 )
----
5390

skipif mysql # not compatible
query I rowsort label-2907
SELECT SUM ( ALL - - 55 ) * + ( 98 )
----
5390

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

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

query II rowsort
SELECT 30, - 74 + 63 AS col1
----
30
-11

query I rowsort
SELECT ( ( - - 15 ) ) * - 11 - - 0 + + + 51 AS col2
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2911
SELECT DISTINCT 95 - + 85 + + 54 + 79 DIV - - 80 + + MIN( + 83 )
----
147

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT 95 - + 85 + + 54 + 79 / - - 80 + + MIN ( + 83 )
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2912
SELECT + 94 * COUNT( * ) * + - CAST( + 15 AS SIGNED ) col1
----
-1410

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 94 * COUNT ( * ) * + - CAST ( + 15 AS INTEGER ) col1
----
-1410

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT ALL - 97 DIV + 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL - 97 / + 34 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT DISTINCT CASE - - 15 WHEN + 50 + 76 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN + - 69 + + 89 + - 40 - COUNT( * ) / - + 81 THEN NULL END * - - CAST( NULL AS SIGNED ) / - + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT CASE - - 15 WHEN + 50 + 76 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN + - 69 + + 89 + - 40 - COUNT ( * ) / - + 81 THEN NULL END * - - CAST ( NULL AS INTEGER ) / - + 88 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - + 55, + + 48 - 94 ) AS col2
----
-55

query II rowsort
SELECT - + 7, 35 AS col1
----
-7
35

query I rowsort
SELECT - 46 * 84 * - 69 * - 4 * - - 67
----
-71453088

query I rowsort
SELECT + - 94 * + + 73
----
-6862

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT + 89 * - COUNT( * ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT + 89 * - COUNT ( * ) col0
----
-89

query I rowsort
SELECT ALL CASE + 90 WHEN 65 THEN NULL WHEN - 20 + - + 96 THEN NULL ELSE - 50 END
----
-50

query I rowsort
SELECT DISTINCT - 61 * 22 col0
----
-1342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL 65 + - 14 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL 65 + - 14 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT DISTINCT + COUNT( * ) DIV - 39 + + + 88 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + COUNT ( * ) / - 39 + + + 88 / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL - COUNT( * ) * - MIN( DISTINCT + 25 ) + + 97 + + COUNT( * ) * - 24 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT + 25 ) + + 97 + + COUNT ( * ) * - 24 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + MIN( + 65 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-2925
SELECT + MIN ( + 65 ) col2
----
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT + + 73 DIV - 80 + 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2927
SELECT + + 73 / - 80 + 55 AS col1
----
55

query I rowsort
SELECT + + 67 * + - 28
----
-1876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2929
SELECT + 13 DIV - SUM( + - COALESCE ( - - 56, 70, - 13 ) ) - - - 84 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2929
SELECT + 13 / - SUM ( + - COALESCE ( - - 56, 70, - 13 ) ) - - - 84 AS col2
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT DISTINCT 6 DIV + 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT 6 / + 7 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT ALL - ( SUM( 86 ) ) * - 49 + - - NULLIF ( + + 89, - + 13 )
----
4303

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL - ( SUM ( 86 ) ) * - 49 + - - NULLIF ( + + 89, - + 13 )
----
4303

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

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

query I rowsort
SELECT + CASE COALESCE ( + 65, + 2 + - 12 + - ( + 24 ) * - ( - 73 ) ) WHEN - ( - + 95 ) - 90 THEN + 68 + 98 WHEN + 18 * 66 THEN + 9 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2934
SELECT + 76 * CASE - 70 WHEN + 46 * 30 - CAST( + + 69 AS DECIMAL ) + - - 1 THEN NULL WHEN - 51 THEN NULL WHEN 98 THEN - 14 ELSE MAX( ALL 81 ) END + 54 * + - 55 * + 25
----
-68094

skipif mysql # not compatible
query I rowsort label-2934
SELECT + 76 * CASE - 70 WHEN + 46 * 30 - CAST ( + + 69 AS REAL ) + - - 1 THEN NULL WHEN - 51 THEN NULL WHEN 98 THEN - 14 ELSE MAX ( ALL 81 ) END + 54 * + - 55 * + 25
----
-68094

query I rowsort
SELECT DISTINCT 79 * + 18 AS col2
----
1422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT ( - - 60 ) / - + CAST( NULL AS SIGNED ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT ( - - 60 ) / - + CAST ( NULL AS INTEGER ) + - 83
----
NULL

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

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

query I rowsort
SELECT COALESCE ( + 84, + - 63 * 76 * + 2 )
----
84

query I rowsort
SELECT - ( - 52 ) * 51 AS col1
----
2652

query I rowsort
SELECT - 37 * + + 33 + + - 65 * - 48
----
1899

query I rowsort
SELECT ALL + NULLIF ( 23, - 43 * - + 48 / - 72 )
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + ( 39 ) * 69 + - + COUNT( - - 82 ) + + COUNT( * ) + - 48 AS col1
----
2643

skipif mysql # not compatible
query I rowsort label-2943
SELECT + ( 39 ) * 69 + - + COUNT ( - - 82 ) + + COUNT ( * ) + - 48 AS col1
----
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL + MAX( DISTINCT - - 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + MAX ( DISTINCT - - 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT DISTINCT COUNT( * ), + MIN( DISTINCT - ( - 38 ) ) AS col1
----
1
38

skipif mysql # not compatible
query II rowsort label-2945
SELECT DISTINCT COUNT ( * ), + MIN ( DISTINCT - ( - 38 ) ) AS col1
----
1
38

query II rowsort
SELECT - 18 * + + 86 * + - 14 + - - 13 + - 45 * - - 50 AS col0, + 66 AS col1
----
19435
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT - 11 * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - 11 * - COUNT ( * )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2948
SELECT - 71 * - 35 * NULLIF ( MAX( DISTINCT 75 ), - 79 ) AS col1, 93 * + COUNT( * ) + - CAST( + 43 AS SIGNED ) - 42 + - - 69 * - 20 * - ( 60 ) * + - 87
----
186375
-7203592

skipif mysql # not compatible
query II rowsort label-2948
SELECT - 71 * - 35 * NULLIF ( MAX ( DISTINCT 75 ), - 79 ) AS col1, 93 * + COUNT ( * ) + - CAST ( + 43 AS INTEGER ) - 42 + - - 69 * - 20 * - ( 60 ) * + - 87
----
186375
-7203592

query I rowsort
SELECT - 83 + + + 57
----
-26

query I rowsort
SELECT 29 * + 69 - + ( + 5 )
----
1996

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

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

query I rowsort
SELECT - - 20 + + + 60
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT - - ( + + 29 ) + - - CAST( - 70 AS SIGNED ) * - 51 * + CAST( - 46 AS SIGNED ) AS col0
----
-164191

skipif mysql # not compatible
query I rowsort label-2953
SELECT - - ( + + 29 ) + - - CAST ( - 70 AS INTEGER ) * - 51 * + CAST ( - 46 AS INTEGER ) AS col0
----
-164191

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT - + MAX( - + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2954
SELECT - + MAX ( - + 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT - + 45 * + + 47 + - 89 DIV + 71 * COUNT( * )
----
-2116

skipif mysql # not compatible
query I rowsort label-2955
SELECT - + 45 * + + 47 + - 89 / + 71 * COUNT ( * )
----
-2116

query I rowsort
SELECT + + 40 + - - CASE WHEN NOT - 11 IS NULL THEN - 11 ELSE NULL END
----
29

query I rowsort
SELECT - + 29 + + 4 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2958
SELECT COALESCE ( - 61, + 97 - ( + ( - + COUNT( * ) ) ) - 66 DIV + + NULLIF ( + 45, 57 * - COUNT( * ) * 18 + + 24 + - NULLIF ( + + 56, - 61 ) + 65 * + 65 * + 29 ) * + COUNT( * ) + 10 * + 31, + COALESCE ( COALESCE ( 45, CAST( + NULLIF ( - MAX( + 60 ), 75 ) AS SIGNED ) ), + ( + 27 ) + - COALESCE ( + 90, 27 DIV + 63 ) ) + + 10 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2958
SELECT COALESCE ( - 61, + 97 - ( + ( - + COUNT ( * ) ) ) - 66 / + + NULLIF ( + 45, 57 * - COUNT ( * ) * 18 + + 24 + - NULLIF ( + + 56, - 61 ) + 65 * + 65 * + 29 ) * + COUNT ( * ) + 10 * + 31, + COALESCE ( COALESCE ( 45, CAST ( + NULLIF ( - MAX ( + 60 ), 75 ) AS INTEGER ) ), + ( + 27 ) + - COALESCE ( + 90, 27 / + 63 ) ) + + 10 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT - COUNT( * ) AS col1, - 15 + 83
----
-1
68

skipif mysql # not compatible
query II rowsort label-2959
SELECT - COUNT ( * ) AS col1, - 15 + 83
----
-1
68

query I rowsort
SELECT ALL + 59 + - 43 + + 67 * + 91 col2
----
6113

query II rowsort
SELECT - 53 + + 59 + + 36 - - 23, COALESCE ( - 72, ( - 5 ) ) col0
----
65
-72

query I rowsort
SELECT DISTINCT + - 15 + + 92
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT 10 + + SUM( 45 )
----
55

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT 10 + + SUM ( 45 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT DISTINCT - - 3 DIV + 3 + + 73 col1
----
74

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT - - 3 / + 3 + + 73 col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + - 13 + 74 + - 87 + - + 66 + - - 47 DIV 80 * + 57 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2965
SELECT + - 13 + 74 + - 87 + - + 66 + - - 47 / 80 * + 57 AS col2
----
-92

query I rowsort
SELECT - + 44 * - + 6 AS col0
----
264

query I rowsort
SELECT + + 38 + + 65 * - 70
----
-4512

query I rowsort
SELECT DISTINCT 95 + + + 35 AS col2
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT ALL - ( + 20 ) + - 55 DIV + + 73 * 78 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL - ( + 20 ) + - 55 / + + 73 * 78 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT DISTINCT - + 72 DIV + + COUNT( * ) + + 61 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - + 72 / + + COUNT ( * ) + + 61 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2971
SELECT ALL COUNT( * ) DIV - 18 - + + CASE + CASE COUNT( + 90 ) WHEN + 84 + + + 17 + + + 59 THEN - - 16 * - + 4 + + - 99 WHEN - 83 THEN NULL WHEN + 52 * + 48 + - 40 + - 50 * + 33 THEN NULL END WHEN CAST( NULL AS SIGNED ) * 75 - 59 THEN NULL WHEN - 52 * + 37 - + 91 THEN - 99 ELSE + 37 END AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL COUNT ( * ) / - 18 - + + CASE + CASE COUNT ( + 90 ) WHEN + 84 + + + 17 + + + 59 THEN - - 16 * - + 4 + + - 99 WHEN - 83 THEN NULL WHEN + 52 * + 48 + - 40 + - 50 * + 33 THEN NULL END WHEN CAST ( NULL AS INTEGER ) * 75 - 59 THEN NULL WHEN - 52 * + 37 - + 91 THEN - 99 ELSE + 37 END AS col0
----
-37

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

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

query II rowsort
SELECT + COALESCE ( - - ( - 88 ), - + ( + 67 ) ) AS col0, + 25 * 19 * 65 + + 46 AS col2
----
-88
30921

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT + CAST( + + CAST( 47 AS SIGNED ) AS SIGNED ) * 43 + 94
----
2115

skipif mysql # not compatible
query I rowsort label-2975
SELECT + CAST ( + + CAST ( 47 AS INTEGER ) AS INTEGER ) * 43 + 94
----
2115

query I rowsort
SELECT + 55 + + - 79
----
-24

query I rowsort
SELECT ALL 61 * - - 98
----
5978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL 83 / + - CAST( NULL AS SIGNED ) - - COUNT( * ) / - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL 83 / + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) / - 45 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT + COUNT( * ) - - + 67, - 57 col0
----
68
-57

skipif mysql # not compatible
query II rowsort label-2981
SELECT + COUNT ( * ) - - + 67, - 57 col0
----
68
-57

query I rowsort
SELECT ALL - 70 * 32 * + 93
----
-208320

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT NULLIF ( - + CAST( NULL AS SIGNED ), + - 26 * + - COALESCE ( - + 11, + - CAST( NULL AS SIGNED ) / - 19 * + ( - 75 ), NULLIF ( - COUNT( * ), + - 33 / 31 * 71 + - 44 ) + - - 99 ) ) * - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT NULLIF ( - + CAST ( NULL AS INTEGER ), + - 26 * + - COALESCE ( - + 11, + - CAST ( NULL AS INTEGER ) / - 19 * + ( - 75 ), NULLIF ( - COUNT ( * ), + - 33 / 31 * 71 + - 44 ) + - - 99 ) ) * - + 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT 24 + + 82 DIV + + ( - 7 )
----
13

skipif mysql # not compatible
query I rowsort label-2986
SELECT 24 + + 82 / + + ( - 7 )
----
13

query I rowsort
SELECT 98 * + 16
----
1568

query I rowsort
SELECT 34 * + - 92 + - 81 AS col1
----
-3209

query I rowsort
SELECT DISTINCT - 22 + + 27 + 77 * + 67
----
5164

query II rowsort
SELECT ALL + 63 + + 82 AS col0, + NULLIF ( + 34, + 49 + - 50 )
----
145
34

query I rowsort
SELECT NULLIF ( - + 98, 26 - - 36 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - COUNT( + + ( 10 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2992
SELECT - COUNT ( + + ( 10 ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + + 55 + - + 67 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + 14 + + SUM( 5 )
----
19

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + 14 + + SUM ( 5 )
----
19

query I rowsort
SELECT ALL + 3 + - 26 + + + 54 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT COUNT( * ) * - - 6 * + + 80
----
480

skipif mysql # not compatible
query I rowsort label-2996
SELECT COUNT ( * ) * - - 6 * + + 80
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT ALL - 22 + + SUM( DISTINCT 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - 22 + + SUM ( DISTINCT 21 )
----
-1

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

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

query I rowsort
SELECT + 0 * - 23
----
0

query I rowsort
SELECT ALL - 18 * - - NULLIF ( - 99, - 98 / 40 ) + + 95
----
1877

query I rowsort
SELECT - 67 - - 62 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT - CASE 73 WHEN + - COUNT( * ) THEN NULL ELSE 7 * + ( - + 57 ) + 17 - 15 * 54 END AS col2
----
1192

skipif mysql # not compatible
query I rowsort label-3002
SELECT - CASE 73 WHEN + - COUNT ( * ) THEN NULL ELSE 7 * + ( - + 57 ) + 17 - 15 * 54 END AS col2
----
1192

query I rowsort
SELECT 65 + + + 44 AS col0
----
109

query I rowsort
SELECT ALL - 26 - - 67 + + + 92 AS col1
----
133

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

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

query I rowsort
SELECT 11 + 27 * - - 44 * + - 25 AS col0
----
-29689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT ALL SUM( DISTINCT - CAST( + - NULLIF ( + - 6, CAST( NULL AS SIGNED ) * + 20 + + NULLIF ( + - 18, 41 ) + - 29 ) AS SIGNED ) ) - 6 + + 23 + 31 / + + 97 + + + ( 86 ) - - - 40 + - 74 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL SUM ( DISTINCT - CAST ( + - NULLIF ( + - 6, CAST ( NULL AS INTEGER ) * + 20 + + NULLIF ( + - 18, 41 ) + - 29 ) AS INTEGER ) ) - 6 + + 23 + 31 / + + 97 + + + ( 86 ) - - - 40 + - 74 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT COUNT( 44 ) * - 66 + - + 80 AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-3008
SELECT COUNT ( 44 ) * - 66 + - + 80 AS col1
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT ALL + 0 DIV + + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + 0 / + + 23 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT COUNT( * ) DIV - + 29 * - 4 + - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3010
SELECT COUNT ( * ) / - + 29 * - 4 + - COUNT ( * ) * - COUNT ( * )
----
1

query II rowsort
SELECT + 18 AS col0, 49 * + ( - 6 ) * - 67 * + 44 AS col1
----
18
866712

query II rowsort
SELECT 60, 22 col0
----
60
22

query I rowsort
SELECT 11 + - COALESCE ( 65, - 32 ) + + + 26 AS col0
----
-28

query I rowsort
SELECT ALL 20 * 0 col2
----
0

query I rowsort
SELECT 82 * + COALESCE ( - - 17, NULLIF ( + 19, + 29 + + - 37 ) ) * - - 51
----
71094

query I rowsort
SELECT 18 * - 78
----
-1404

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

query I rowsort
SELECT + 29 * + ( + 72 ) + 52
----
2140

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL - COUNT( * ) * - 67 * - 62
----
-4154

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL - COUNT ( * ) * - 67 * - 62
----
-4154

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

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - SUM ( - 9 )
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT + 10 * 59 * - NULLIF ( COUNT( * ), - 82 ) + 11 + + 91
----
-488

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 10 * 59 * - NULLIF ( COUNT ( * ), - 82 ) + 11 + + 91
----
-488

onlyif mysql # aggregate syntax: 
query II rowsort label-3023
SELECT COALESCE ( + - 6, + MAX( ALL + 25 ) ) * 33 * + + 10 col2, 75 AS col2
----
-1980
75

skipif mysql # not compatible
query II rowsort label-3023
SELECT COALESCE ( + - 6, + MAX ( ALL + 25 ) ) * 33 * + + 10 col2, 75 AS col2
----
-1980
75

query I rowsort
SELECT DISTINCT - 84 col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT 86 + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT 86 + + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT DISTINCT + COALESCE ( - ( - 9 ), 22, - 23 DIV - + 9 * 35 * - 35 ) * 81 + + COUNT( * ) AS col0
----
730

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + COALESCE ( - ( - 9 ), 22, - 23 / - + 9 * 35 * - 35 ) * 81 + + COUNT ( * ) AS col0
----
730

query I rowsort
SELECT ALL + ( + 78 ) * + 23 * - 66 * + 6 * + 6 + + ( 0 )
----
-4262544

query I rowsort
SELECT ALL - 32 + + 62 + + 23 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT NULLIF ( - 1, ( + 84 ) * + COUNT( * ) ) * + MAX( DISTINCT - - 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT NULLIF ( - 1, ( + 84 ) * + COUNT ( * ) ) * + MAX ( DISTINCT - - 9 ) AS col0
----
-9

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL COALESCE ( - 91, + - CASE + 56 WHEN - 45 THEN - 0 WHEN + 56 THEN + - CAST( - 59 AS SIGNED ) * SUM( DISTINCT 91 ) + 28 END ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL COALESCE ( - 91, + - CASE + 56 WHEN - 45 THEN - 0 WHEN + 56 THEN + - CAST ( - 59 AS INTEGER ) * SUM ( DISTINCT 91 ) + 28 END ) AS col0
----
-91

query I rowsort
SELECT + 64 + 9 + - 99 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT + MAX( ALL - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + MAX ( ALL - 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL - 75 - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - 75 - COUNT ( * )
----
-76

query I rowsort
SELECT ALL + + 31 * + - 79
----
-2449

query I rowsort
SELECT 56 + - 82
----
-26

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

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

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

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

query I rowsort
SELECT DISTINCT + 97 * + 25 col0
----
2425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT - 19 + - - 96 * + + CASE - CAST( NULL AS SIGNED ) WHEN - + SUM( - + 64 ) THEN + + 34 * + - 39 + + + 79 + - 5 * + + 72 ELSE NULL END + + ( + + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT - 19 + - - 96 * + + CASE - CAST ( NULL AS INTEGER ) WHEN - + SUM ( - + 64 ) THEN + + 34 * + - 39 + + + 79 + - 5 * + + 72 ELSE NULL END + + ( + + 22 ) AS col0
----
NULL

query I rowsort
SELECT - 78 * - 48 col0
----
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT ALL + COALESCE ( - - 91, CAST( - ( + 67 ) AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + COALESCE ( - - 91, CAST ( - ( + 67 ) AS INTEGER ) )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3045
SELECT - 96 DIV - 51 AS col2, - 75
----
1
-75

skipif mysql # not compatible
query II rowsort label-3045
SELECT - 96 / - 51 AS col2, - 75
----
1
-75

query I rowsort
SELECT ALL - 69 * + 74 + - 61
----
-5167

query I rowsort
SELECT 34 * 57 + + 61 AS col2
----
1999

query I rowsort
SELECT COALESCE ( - - 93, - + 12 ) AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3049
SELECT - COALESCE ( + + ( - COUNT( * ) ), 2 * 91 ) DIV - 61 * - + 60 + + - 27 DIV 88 * + 0 + SUM( DISTINCT - + 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3049
SELECT - COALESCE ( + + ( - COUNT ( * ) ), 2 * 91 ) / - 61 * - + 60 + + - 27 / 88 * + 0 + SUM ( DISTINCT - + 73 ) AS col1
----
-73

query I rowsort
SELECT ALL + 92 * 98 + - 57 * + 61 + - 87
----
5452

query I rowsort
SELECT ALL - 80 * + 51
----
-4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL - 59 * - 27 * - CAST( + COALESCE ( + 33, + + 20, - 95 * + COUNT( * ) ) AS SIGNED ) + - 66 + - 87 * - - COALESCE ( + 54, 51 + MIN( - 19 ), + 84 ) * - 23 + + - 14
----
55405

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - 59 * - 27 * - CAST ( + COALESCE ( + 33, + + 20, - 95 * + COUNT ( * ) ) AS INTEGER ) + - 66 + - 87 * - - COALESCE ( + 54, 51 + MIN ( - 19 ), + 84 ) * - 23 + + - 14
----
55405

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT CASE 94 WHEN - 92 * 69 + + 18 THEN 54 * COUNT( * ) WHEN 17 / + 6 - 33 THEN NULL END * + + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT CASE 94 WHEN - 92 * 69 + + 18 THEN 54 * COUNT ( * ) WHEN 17 / + 6 - 33 THEN NULL END * + + 74 AS col0
----
NULL

query I rowsort
SELECT ALL - 93 * 3 + + COALESCE ( 96, + + 2 ) col1
----
-183

query I rowsort
SELECT ALL + 95 * 64 + - 52 - + - 57 AS col0
----
6085

query I rowsort
SELECT DISTINCT + + COALESCE ( + - 69, 8 * 81, - 50 ) * + - 41
----
2829

query I rowsort
SELECT ALL ( 54 ) * + ( + 49 ) + + 3
----
2649

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT - ( + 15 ) DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3058
SELECT - ( + 15 ) / + 87 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT ALL 43 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL 43 / + + 48
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3060
SELECT + - 40 DIV + COUNT( * ) + + MAX( DISTINCT - 95 ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-3060
SELECT + - 40 / + COUNT ( * ) + + MAX ( DISTINCT - 95 ) AS col2
----
-135

query I rowsort
SELECT + - NULLIF ( + 35, 9 ) * ( - 8 )
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT MAX( - 18 ) * + ( - 1 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT MAX ( - 18 ) * + ( - 1 ) AS col0
----
18

query I rowsort
SELECT ALL - + 54 - 94
----
-148

query II rowsort
SELECT DISTINCT 84 * - 78 AS col1, + ( - 93 ) AS col0
----
-6552
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL SUM( DISTINCT 70 ) - + 62 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL SUM ( DISTINCT 70 ) - + 62 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT + 58 * - - 14 * + MIN( - + 24 ) AS col1, - 77 * + - 67 * 60 * - NULLIF ( ( + + 87 ), + ( + 70 ) ) col2
----
-19488
-26929980

skipif mysql # not compatible
query II rowsort label-3066
SELECT + 58 * - - 14 * + MIN ( - + 24 ) AS col1, - 77 * + - 67 * 60 * - NULLIF ( ( + + 87 ), + ( + 70 ) ) col2
----
-19488
-26929980

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT + + 13 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-3068
SELECT + + 13 / + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT + CASE WHEN NOT 76 NOT IN ( - COUNT( * ), + 18 * + - 18 + - - 50 - 24 ) THEN + 36 - 19 WHEN NOT NULL IS NOT NULL THEN NULL END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT + CASE WHEN NOT 76 NOT IN ( - COUNT ( * ), + 18 * + - 18 + - - 50 - 24 ) THEN + 36 - 19 WHEN NOT NULL IS NOT NULL THEN NULL END * 54
----
NULL

query I rowsort
SELECT - 56 * 23 AS col2
----
-1288

query I rowsort
SELECT + 26 - - 87 AS col2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3072
SELECT ALL COUNT( * ) AS col0, 68 * - COUNT( * ) + - 38 DIV + + 95 AS col2
----
1
-68

skipif mysql # not compatible
query II rowsort label-3072
SELECT ALL COUNT ( * ) AS col0, 68 * - COUNT ( * ) + - 38 / + + 95 AS col2
----
1
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL MIN( DISTINCT CAST( 50 AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL MIN ( DISTINCT CAST ( 50 AS INTEGER ) )
----
50

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

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

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

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL 2 + + CAST ( - + 18 AS INTEGER ) + + 10
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT ALL + NULLIF ( CASE WHEN 18 IS NULL THEN CAST( NULL AS SIGNED ) * - 74 ELSE - - 72 END, - SUM( DISTINCT 6 ) ) + 10 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + NULLIF ( CASE WHEN 18 IS NULL THEN CAST ( NULL AS INTEGER ) * - 74 ELSE - - 72 END, - SUM ( DISTINCT 6 ) ) + 10 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT 48 * 37 - + MIN( + 32 )
----
1744

skipif mysql # not compatible
query I rowsort label-3077
SELECT 48 * 37 - + MIN ( + 32 )
----
1744

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - 45 DIV + 51 - + + ( - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3079
SELECT - 45 / + 51 - + + ( - 13 ) AS col2
----
13

query I rowsort
SELECT ALL + 48 * + + 52
----
2496

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ( + NULLIF ( 57, - MIN( 35 ) ) )
----
57

skipif mysql # not compatible
query I rowsort label-3083
SELECT ( + NULLIF ( 57, - MIN ( 35 ) ) )
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-3084
SELECT DISTINCT - 71 DIV + 80 + 62 AS col0, + 67 AS col1
----
62
67

skipif mysql # not compatible
query II rowsort label-3084
SELECT DISTINCT - 71 / + 80 + 62 AS col0, + 67 AS col1
----
62
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL + COALESCE ( - 77, - - COALESCE ( COUNT( * ), 80 ) ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + COALESCE ( - 77, - - COALESCE ( COUNT ( * ), 80 ) ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL + COUNT( ALL - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL + COUNT ( ALL - 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - 51 * 17 * + COUNT( * ) - 41
----
-908

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - 51 * 17 * + COUNT ( * ) - 41
----
-908

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3088
SELECT - - COUNT( * ) DIV 49 DIV 62, 22 AS col2
----
0
22

skipif mysql # not compatible
query II rowsort label-3088
SELECT - - COUNT ( * ) / 49 / 62, 22 AS col2
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - NULLIF ( + 2, + 97 * 40 ) * + + 25 * - - 90 * - SUM( ALL 27 ) + + 1
----
121501

skipif mysql # not compatible
query I rowsort label-3089
SELECT - NULLIF ( + 2, + 97 * 40 ) * + + 25 * - - 90 * - SUM ( ALL 27 ) + + 1
----
121501

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT - COALESCE ( + - COUNT( * ), 72 ) + - + SUM( + - 3 ) DIV ( + - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3090
SELECT - COALESCE ( + - COUNT ( * ), 72 ) + - + SUM ( + - 3 ) / ( + - COUNT ( * ) )
----
-2

query I rowsort
SELECT - + 11 * 62
----
-682

onlyif mysql # aggregate syntax: 
query II rowsort label-3092
SELECT ALL + COUNT( * ) * + 14 * 84 AS col2, - 30 AS col1
----
1176
-30

skipif mysql # not compatible
query II rowsort label-3092
SELECT ALL + COUNT ( * ) * + 14 * 84 AS col2, - 30 AS col1
----
1176
-30

query I rowsort
SELECT - 19 + + 67 AS col0
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - NULLIF ( - - ( - 8 ), + ( - COUNT( * ) ) ) + - 86 + 95 + - - ( 63 )
----
80

skipif mysql # not compatible
query I rowsort label-3095
SELECT - NULLIF ( - - ( - 8 ), + ( - COUNT ( * ) ) ) + - 86 + 95 + - - ( 63 )
----
80

query II rowsort
SELECT DISTINCT NULLIF ( - 47, - - 52 ) col2, - 19 * - 72 + - 21 AS col2
----
-47
1347

query I rowsort
SELECT ALL + 39 * 17 + + 4 AS col1
----
667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT + 22 * CAST( 31 AS SIGNED ) + 84 + - - 34
----
800

skipif mysql # not compatible
query I rowsort label-3098
SELECT + 22 * CAST ( 31 AS INTEGER ) + 84 + - - 34
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT + - ( + + 18 ) + - + 79 DIV - 11
----
-11

skipif mysql # not compatible
query I rowsort label-3099
SELECT + - ( + + 18 ) + - + 79 / - 11
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3100
SELECT + ( - 24 ) DIV - NULLIF ( - 66, 98 + 82 + 30 + - NULLIF ( COUNT( * ), + + 34 DIV COUNT( * ) ) + - + NULLIF ( + - COUNT( * ), + + COUNT( * ) + 45 ) * 25 * 47 )
----
0

skipif mysql # not compatible
query I rowsort label-3100
SELECT + ( - 24 ) / - NULLIF ( - 66, 98 + 82 + 30 + - NULLIF ( COUNT ( * ), + + 34 / COUNT ( * ) ) + - + NULLIF ( + - COUNT ( * ), + + COUNT ( * ) + 45 ) * 25 * 47 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3101
SELECT DISTINCT 61 DIV - CAST( NULLIF ( + 6, - 3 ) AS SIGNED ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT 61 / - CAST ( NULLIF ( + 6, - 3 ) AS INTEGER ) col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL 97 + - - COUNT( * ) + - + 59 * - 20 * + 30 + + ( + - COUNT( * ) ) * + 4 * + ( + 34 )
----
35362

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL 97 + - - COUNT ( * ) + - + 59 * - 20 * + 30 + + ( + - COUNT ( * ) ) * + 4 * + ( + 34 )
----
35362

query I rowsort
SELECT 92 + - 70
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT ALL - 79 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - 79 / 69
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT 98 DIV - 26
----
-3

skipif mysql # not compatible
query I rowsort label-3105
SELECT 98 / - 26
----
-3

query I rowsort
SELECT ALL CASE - - 15 WHEN - 33 THEN NULL ELSE 58 + + + 22 + 94 - - - 9 * + - 82 + 2 * - 46 * 66 END * + 89 + 30 AS col0
----
-459210

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT ALL COUNT( * ) + - ( 9 )
----
-8

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

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

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL 61 + + + COUNT ( * )
----
62

query II rowsort
SELECT 88 + - 91 col1, NULLIF ( + - 12, 43 + - 27 ) + + 59 AS col0
----
-3
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT 57 col1, - COUNT( + 45 ) * 7 * 39 + + 56 AS col2
----
57
-217

skipif mysql # not compatible
query II rowsort label-3110
SELECT 57 col1, - COUNT ( + 45 ) * 7 * 39 + + 56 AS col2
----
57
-217

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT COUNT( * ) + - 2 AS col2, + 75 * + 86 - - 44
----
-1
6494

skipif mysql # not compatible
query II rowsort label-3112
SELECT COUNT ( * ) + - 2 AS col2, + 75 * + 86 - - 44
----
-1
6494

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL COUNT( * ) + - 66 - + CASE 86 WHEN - - 75 * + 74 + - 39 THEN - + 2 * + 92 WHEN COUNT( * ) * - COUNT( DISTINCT 86 ) + - + 75 * - 79 THEN + + MIN( ALL - - 11 ) END * 34 * - - CASE 2 WHEN 16 THEN NULL WHEN - ( 34 ) / - 71 THEN NULL WHEN 68 / - 29 THEN NULL ELSE 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL COUNT ( * ) + - 66 - + CASE 86 WHEN - - 75 * + 74 + - 39 THEN - + 2 * + 92 WHEN COUNT ( * ) * - COUNT ( DISTINCT 86 ) + - + 75 * - 79 THEN + + MIN ( ALL - - 11 ) END * 34 * - - CASE 2 WHEN 16 THEN NULL WHEN - ( 34 ) / - 71 THEN NULL WHEN 68 / - 29 THEN NULL ELSE 79 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 65 col1, 35
----
-65
35

query I rowsort
SELECT ALL - 17 * + 78
----
-1326

query II rowsort
SELECT 94, + NULLIF ( + 56, - 75 ) AS col2
----
94
56

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3118
SELECT 73 AS col1, - COUNT( - + 30 ) + + 44
----
73
43

skipif mysql # not compatible
query II rowsort label-3118
SELECT 73 AS col1, - COUNT ( - + 30 ) + + 44
----
73
43

query I rowsort
SELECT ALL - 95 * - 50 AS col1
----
4750

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT MAX( DISTINCT + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3120
SELECT MAX ( DISTINCT + 53 )
----
53

query I rowsort
SELECT DISTINCT - + 41 * - 96 + NULLIF ( - - 66, + 38 + - 99 ) - + 17 AS col0
----
3985

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT COUNT( ALL + + 84 ) - ( + - 35 ) * 11 AS col2
----
386

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT COUNT ( ALL + + 84 ) - ( + - 35 ) * 11 AS col2
----
386

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT DISTINCT - 67 AS col1, COUNT( * )
----
-67
1

skipif mysql # not compatible
query II rowsort label-3126
SELECT DISTINCT - 67 AS col1, COUNT ( * )
----
-67
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT MAX( ALL + 61 ) * COUNT( * ) + ( + + 13 )
----
74

skipif mysql # not compatible
query I rowsort label-3127
SELECT MAX ( ALL + 61 ) * COUNT ( * ) + ( + + 13 )
----
74

query I rowsort
SELECT + 44 * - + 69 AS col1
----
-3036

query I rowsort
SELECT - 67 * 45
----
-3015

query I rowsort
SELECT + 11 * + 96 AS col0
----
1056

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

skipif mysql # not compatible
query I rowsort label-3131
SELECT 54 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-3133
SELECT 41 - + COUNT ( * ) + - COUNT ( * ) AS col2
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3134
SELECT ALL 92 AS col2, - 89 - + 35 * COALESCE ( - 9, - + 19 DIV - - 20 ) DIV - 43 + + - 44 + + + 29 * - 43 + + 83 AS col1
----
92
-1304

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL 92 AS col2, - 89 - + 35 * COALESCE ( - 9, - + 19 / - - 20 ) / - 43 + + - 44 + + + 29 * - 43 + + 83 AS col1
----
92
-1304

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT - COUNT( * ) AS col0, 98 + 98 - - 24 * - + 29 * - + 40 * - COUNT( DISTINCT - 91 ) + + 74 - + 65 * + 62 * - ( - 59 )
----
-1
-265340

skipif mysql # not compatible
query II rowsort label-3135
SELECT - COUNT ( * ) AS col0, 98 + 98 - - 24 * - + 29 * - + 40 * - COUNT ( DISTINCT - 91 ) + + 74 - + 65 * + 62 * - ( - 59 )
----
-1
-265340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3136
SELECT DISTINCT - 92 * 49 AS col0, ( COUNT( * ) ) * + NULLIF ( CAST( 91 AS SIGNED ), - 10 ) + + - 98 - - 91
----
-4508
84

skipif mysql # not compatible
query II rowsort label-3136
SELECT DISTINCT - 92 * 49 AS col0, ( COUNT ( * ) ) * + NULLIF ( CAST ( 91 AS INTEGER ), - 10 ) + + - 98 - - 91
----
-4508
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3137
SELECT DISTINCT + 38 + - 7 DIV + CASE 13 WHEN + - 67 - 85 THEN - + 65 ELSE 45 * - COUNT( * ) END AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT + 38 + - 7 / + CASE 13 WHEN + - 67 - 85 THEN - + 65 ELSE 45 * - COUNT ( * ) END AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT ALL 91 + 6 AS col1, + MIN( + 33 ) * - - COUNT( * ) + 69 AS col0
----
97
102

skipif mysql # not compatible
query II rowsort label-3138
SELECT ALL 91 + 6 AS col1, + MIN ( + 33 ) * - - COUNT ( * ) + 69 AS col0
----
97
102

query I rowsort
SELECT DISTINCT 8 + 66 + - - 19 col1
----
93

query I rowsort
SELECT 91 + - 77
----
14

query I rowsort
SELECT 27 * - 52 AS col2
----
-1404

onlyif mysql # aggregate syntax: 
query II rowsort label-3142
SELECT DISTINCT SUM( 77 ) AS col0, - COUNT( * ) AS col1
----
77
-1

skipif mysql # not compatible
query II rowsort label-3142
SELECT DISTINCT SUM ( 77 ) AS col0, - COUNT ( * ) AS col1
----
77
-1

query I rowsort
SELECT 1 + + 62 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT ALL 7 + - 11 - + CAST( + 97 AS SIGNED ) - + 51 + 59 / - - 79 * - CASE 67 WHEN + - 6 THEN - COALESCE ( - COUNT( - 92 ), - 94 / MAX( DISTINCT - 57 ) ) WHEN - 10 * - 95 THEN NULL END * + - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL 7 + - 11 - + CAST ( + 97 AS INTEGER ) - + 51 + 59 / - - 79 * - CASE 67 WHEN + - 6 THEN - COALESCE ( - COUNT ( - 92 ), - 94 / MAX ( DISTINCT - 57 ) ) WHEN - 10 * - 95 THEN NULL END * + - 74 AS col1
----
NULL

query I rowsort
SELECT 17 + 36
----
53

query I rowsort
SELECT COALESCE ( - - 84, 19 * + - 22, 62 ) + 95 AS col2
----
179

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

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

query I rowsort
SELECT ALL 77 * + 79 AS col0
----
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT COUNT( * ) + - - CASE - - 1 WHEN ( 83 ) THEN + + 58 WHEN - 67 THEN NULL WHEN + - AVG ( - 68 ) / NULLIF ( + + 95, + 20 * + 44 ) * 31 + + + 77 + + + 5 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT COUNT ( * ) + - - CASE - - 1 WHEN ( 83 ) THEN + + 58 WHEN - 67 THEN NULL WHEN + - AVG ( - 68 ) / NULLIF ( + + 95, + 20 * + 44 ) * 31 + + + 77 + + + 5 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT 32 * 89 * + COUNT( + + 92 ) * - - 81 + 46
----
230734

skipif mysql # not compatible
query I rowsort label-3151
SELECT 32 * 89 * + COUNT ( + + 92 ) * - - 81 + 46
----
230734

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - MIN( ALL - + 70 ) * - 88 AS col0
----
-6160

skipif mysql # not compatible
query I rowsort label-3152
SELECT - MIN ( ALL - + 70 ) * - 88 AS col0
----
-6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3153
SELECT CAST( + - 25 AS SIGNED ) / + 10 * 73 / CASE - + 74 WHEN + + 60 THEN - 98 END * - - 41 * + 10 * - + MAX( ALL + 83 ) + + - ( + 15 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT CAST ( + - 25 AS INTEGER ) / + 10 * 73 / CASE - + 74 WHEN + + 60 THEN - 98 END * - - 41 * + 10 * - + MAX ( ALL + 83 ) + + - ( + 15 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT ALL - + COALESCE ( - + 92, + 49 DIV + + 36 - - 22 + - - 5, - 50 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL - + COALESCE ( - + 92, + 49 / + + 36 - - 22 + - - 5, - 50 ) col2
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3155
SELECT ALL - CAST( - 75 AS SIGNED ) col0, - 1 DIV + 87 + - - 56
----
75
56

skipif mysql # not compatible
query II rowsort label-3155
SELECT ALL - CAST ( - 75 AS INTEGER ) col0, - 1 / + 87 + - - 56
----
75
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3156
SELECT + ( 80 ), 38 + COALESCE ( NULLIF ( - CAST( + + 81 AS SIGNED ), + 64 + + 61 + + + 74 + + 96 + 51 + 97 - - + 43 / - 95 * 93 * - 73 ), + + ( + 18 ) * 67 * - - 69 ) + - - COUNT( * ) * 57 * + CAST( NULL AS SIGNED ) AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-3156
SELECT + ( 80 ), 38 + COALESCE ( NULLIF ( - CAST ( + + 81 AS INTEGER ), + 64 + + 61 + + + 74 + + 96 + 51 + 97 - - + 43 / - 95 * 93 * - 73 ), + + ( + 18 ) * 67 * - - 69 ) + - - COUNT ( * ) * 57 * + CAST ( NULL AS INTEGER ) AS col2
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT 41 + + 67 * - MIN( + 40 ) AS col2
----
-2639

skipif mysql # not compatible
query I rowsort label-3157
SELECT 41 + + 67 * - MIN ( + 40 ) AS col2
----
-2639

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3158
SELECT + - COUNT( * ) * + COUNT( * ) - - - 4 + + COUNT( ALL - 22 ) * - 35 DIV 32 + + 13
----
7

skipif mysql # not compatible
query I rowsort label-3158
SELECT + - COUNT ( * ) * + COUNT ( * ) - - - 4 + + COUNT ( ALL - 22 ) * - 35 / 32 + + 13
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3159
SELECT ( - CASE - 69 WHEN + CASE + - 11 WHEN + - ( - 21 ) - ( ( - 16 ) ) * - ( + 94 ) THEN NULL WHEN - 96 * - 5 * - + 4 THEN NULL WHEN + COUNT( DISTINCT CAST( + 20 AS SIGNED ) ) + - + COUNT( * ) THEN + 71 ELSE NULL END THEN + 11 / - 37 * - 93 + - 54 END ) * + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT ( - CASE - 69 WHEN + CASE + - 11 WHEN + - ( - 21 ) - ( ( - 16 ) ) * - ( + 94 ) THEN NULL WHEN - 96 * - 5 * - + 4 THEN NULL WHEN + COUNT ( DISTINCT CAST ( + 20 AS INTEGER ) ) + - + COUNT ( * ) THEN + 71 ELSE NULL END THEN + 11 / - 37 * - 93 + - 54 END ) * + 78 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT + NULLIF ( 65, + + CAST( NULL AS SIGNED ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3160
SELECT + NULLIF ( 65, + + CAST ( NULL AS INTEGER ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT + COUNT( 79 ) * + - ( - 52 ) + - COUNT( * ) + - 21 + + - 13 + + 15 + - - 23 * 34 + - - ( + + 51 ) AS col0
----
865

skipif mysql # not compatible
query I rowsort label-3161
SELECT + COUNT ( 79 ) * + - ( - 52 ) + - COUNT ( * ) + - 21 + + - 13 + + 15 + - - 23 * 34 + - - ( + + 51 ) AS col0
----
865

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL - 56 + 48 * - COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL - 56 + 48 * - COUNT ( * )
----
-104

query I rowsort
SELECT DISTINCT 96 + + - ( - 10 ) AS col1
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3165
SELECT ALL - 96 + - + 38 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
-134
NULL

skipif mysql # not compatible
query II rowsort label-3165
SELECT ALL - 96 + - + 38 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
-134
NULL

query I rowsort
SELECT - 56 + - 53 AS col0
----
-109

query II rowsort
SELECT 82, + 82 AS col2
----
82
82

query I rowsort
SELECT 15 * - COALESCE ( - 11, 66 + + 61 ) + - 89 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3169
SELECT + ( - - 49 ) / 32 * + - ( CAST( NULL AS SIGNED ) ) - + 99 + COUNT( * ) + 51 * + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT + ( - - 49 ) / 32 * + - ( CAST ( NULL AS INTEGER ) ) - + 99 + COUNT ( * ) + 51 * + + 0
----
NULL

query I rowsort
SELECT - 49 + - + 56
----
-105

query I rowsort
SELECT + ( 78 ) * - - 66
----
5148

query I rowsort
SELECT - 25 + + 84 + 89 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - COUNT( * ) + - - 32 - - + 92
----
123

skipif mysql # not compatible
query I rowsort label-3173
SELECT - COUNT ( * ) + - - 32 - - + 92
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL + 89 - - CASE - 96 WHEN + 3 THEN - - 13 * + 75 * + 25 + - COUNT( * ) * - - 0 + + 48 WHEN + 75 THEN NULL WHEN 69 * - 23 THEN NULL ELSE + NULLIF ( - 54, - - 6 ) END * 47 AS col2
----
-2449

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + 89 - - CASE - 96 WHEN + 3 THEN - - 13 * + 75 * + 25 + - COUNT ( * ) * - - 0 + + 48 WHEN + 75 THEN NULL WHEN 69 * - 23 THEN NULL ELSE + NULLIF ( - 54, - - 6 ) END * 47 AS col2
----
-2449

onlyif mysql # DIV for integer division: 
query II rowsort label-3175
SELECT 12 AS col1, 68 - - 35 DIV + 11
----
12
71

skipif mysql # not compatible
query II rowsort label-3175
SELECT 12 AS col1, 68 - - 35 / + 11
----
12
71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT ALL - 16 * + + 1 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - 16 * + + 1 / - 20
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3178
SELECT DISTINCT 90, - 35 DIV - 33 col0
----
90
1

skipif mysql # not compatible
query II rowsort label-3178
SELECT DISTINCT 90, - 35 / - 33 col0
----
90
1

query I rowsort
SELECT - 54 * - 61
----
3294

query I rowsort
SELECT - 59 * - 29 AS col1
----
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL COALESCE ( - ( COUNT( * ) ), - 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL COALESCE ( - ( COUNT ( * ) ), - 4 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3182
SELECT DISTINCT CASE - + 26 WHEN - ( + COUNT( * ) ) THEN - - COUNT( * ) - + 74 * 4 - + COUNT( * ) + + 36 WHEN - COUNT( * ) - + + ( + 42 ) THEN - CAST( ( + 44 ) AS DECIMAL ) * 66 + + 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT CASE - + 26 WHEN - ( + COUNT ( * ) ) THEN - - COUNT ( * ) - + 74 * 4 - + COUNT ( * ) + + 36 WHEN - COUNT ( * ) - + + ( + 42 ) THEN - CAST ( ( + 44 ) AS REAL ) * 66 + + 73 END AS col1
----
NULL

query I rowsort
SELECT - 23 * + 79 * + ( 7 ) AS col2
----
-12719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT + NULLIF ( + MAX( ALL + 44 ), CASE + - 93 WHEN - 69 + + 54 THEN CASE WHEN ( + CASE + 95 WHEN - + 24 THEN + 9 + - 61 - - 81 + + COUNT( * ) - + + 89 + + 96 + - - 13 - - - 43 - SUM( - + ( + 75 ) ) * + 65 WHEN 22 * + 61 + COUNT( * ) THEN 57 END ) NOT BETWEEN + 6 AND 36 * + CAST( 70 * 99 AS SIGNED ) THEN 84 + + 41 ELSE 22 * CAST( NULL AS SIGNED ) END / 26 END ) * 2
----
88

skipif mysql # not compatible
query I rowsort label-3184
SELECT + NULLIF ( + MAX ( ALL + 44 ), CASE + - 93 WHEN - 69 + + 54 THEN CASE WHEN ( + CASE + 95 WHEN - + 24 THEN + 9 + - 61 - - 81 + + COUNT ( * ) - + + 89 + + 96 + - - 13 - - - 43 - SUM ( - + ( + 75 ) ) * + 65 WHEN 22 * + 61 + COUNT ( * ) THEN 57 END ) NOT BETWEEN + 6 AND 36 * + CAST ( 70 * 99 AS INTEGER ) THEN 84 + + 41 ELSE 22 * CAST ( NULL AS INTEGER ) END / 26 END ) * 2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - + ( - 53 ) - - COALESCE ( 0, - 95 ) + + 22 + - + COUNT( * ) * 14 * - 16
----
299

skipif mysql # not compatible
query I rowsort label-3185
SELECT - + ( - 53 ) - - COALESCE ( 0, - 95 ) + + 22 + - + COUNT ( * ) * 14 * - 16
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT + MAX( - + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT + MAX ( - + 49 )
----
-49

query I rowsort
SELECT ALL - 12 * + ( 63 ) AS col2
----
-756

query II rowsort
SELECT - 86 * 90 * + - 52, - 47 AS col2
----
402480
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3189
SELECT ALL + 1 DIV 40 * COALESCE ( - 81, - - 69 * + 17 + + + ( 93 ) + + 43 - - 3 * + COUNT( * ) * + 26 - - COUNT( * ), - 39 * - 15 * - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + 53, + COUNT( 18 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + 1 / 40 * COALESCE ( - 81, - - 69 * + 17 + + + ( 93 ) + + 43 - - 3 * + COUNT ( * ) * + 26 - - COUNT ( * ), - 39 * - 15 * - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 53, + COUNT ( 18 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3190
SELECT + + 22 AS col1, + COUNT( * ) * - + 15 DIV 8
----
22
-1

skipif mysql # not compatible
query II rowsort label-3190
SELECT + + 22 AS col1, + COUNT ( * ) * - + 15 / 8
----
22
-1

query I rowsort
SELECT - 43 + 22
----
-21

query II rowsort
SELECT + 36 AS col1, + 19 - 49 AS col2
----
36
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL 83 * - - COUNT( * ) * - 15 + - + 97 AS col1
----
-1342

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL 83 * - - COUNT ( * ) * - 15 + - + 97 AS col1
----
-1342

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

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

query I rowsort
SELECT + - 66 + + 71 AS col1
----
5

query I rowsort
SELECT ALL - 13 * - 28 + - + 22 * - 30 + + 20 AS col1
----
1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT + CASE + - 76 WHEN - 79 * - 39 + - 19 - - + 28 + - 78 * + 20 THEN + CAST( + 7 AS SIGNED ) * - 93 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT + CASE + - 76 WHEN - 79 * - 39 + - 19 - - + 28 + - 78 * + 20 THEN + CAST ( + 7 AS INTEGER ) * - 93 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 70 * + 69 + + 3 AS col2
----
4833

query I rowsort
SELECT ALL - 16 * + + 53 * - - 9
----
-7632

query II rowsort
SELECT ALL + + 46, + NULLIF ( 29, 82 ) AS col0
----
46
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL 40 * - CASE - CAST( NULL AS SIGNED ) WHEN - + CAST( 38 AS SIGNED ) THEN - - COUNT( * ) / 51 + - 32 END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL 40 * - CASE - CAST ( NULL AS INTEGER ) WHEN - + CAST ( 38 AS INTEGER ) THEN - - COUNT ( * ) / 51 + - 32 END + 59
----
NULL

query I rowsort
SELECT DISTINCT ( - - 48 ) * - + 92 - + + 86 * - - 33 + 19 col2
----
-7235

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3203
SELECT + COUNT( * ) * 86 * + 11 AS col1, + 14 DIV 41 * 55, - + 10 AS col2
----
946
0
-10

skipif mysql # not compatible
query III rowsort label-3203
SELECT + COUNT ( * ) * 86 * + 11 AS col1, + 14 / 41 * 55, - + 10 AS col2
----
946
0
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3204
SELECT + COALESCE ( + 31, 17, - - 9 + - ( 67 ) + + 86 * CAST( - 58 AS SIGNED ) - 78 DIV + 84 )
----
31

skipif mysql # not compatible
query I rowsort label-3204
SELECT + COALESCE ( + 31, 17, - - 9 + - ( 67 ) + + 86 * CAST ( - 58 AS INTEGER ) - 78 / + 84 )
----
31

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

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

query I rowsort
SELECT + 37 * + 90
----
3330

query I rowsort
SELECT + 14 - + + 91 col0
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT MAX( 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3209
SELECT MAX ( 40 ) AS col2
----
40

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

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

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

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

query I rowsort
SELECT + 54 + 36 - - 86 * 6
----
606

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

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

query I rowsort
SELECT + 71 * + 42
----
2982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT - 36 - + 63 - + 2 + - CASE + 99 WHEN - 71 THEN - + 53 WHEN - - 9 THEN - 58 / - 96 WHEN 76 THEN NULL END / - CAST( - COUNT( * ) AS SIGNED ) * - + COUNT( ALL + ( - + 21 ) ) + ( - + 87 ) + - - 77 * + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT - 36 - + 63 - + 2 + - CASE + 99 WHEN - 71 THEN - + 53 WHEN - - 9 THEN - 58 / - 96 WHEN 76 THEN NULL END / - CAST ( - COUNT ( * ) AS INTEGER ) * - + COUNT ( ALL + ( - + 21 ) ) + ( - + 87 ) + - - 77 * + 98 AS col0
----
NULL

query I rowsort
SELECT + 48 * + - 9
----
-432

query I rowsort
SELECT DISTINCT NULLIF ( + - 57, + 13 ) AS col2
----
-57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL COUNT( ALL 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL COUNT ( ALL 49 ) AS col2
----
1

query I rowsort
SELECT - 0 + + 32 * - 31
----
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT + - 22 + - MAX( 9 )
----
-31

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + - 22 + - MAX ( 9 )
----
-31

query I rowsort
SELECT + 42 col2
----
42

query I rowsort
SELECT + - 87 / 38 + - 79 - + 18 * - CASE 40 WHEN 12 THEN NULL WHEN + 90 THEN - 42 WHEN + 5 + - + ( ( + 94 ) ) - - 45 * - 45 / 90 + 8 / - 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT - + 95 * - 5 + COUNT( * )
----
476

skipif mysql # not compatible
query I rowsort label-3225
SELECT - + 95 * - 5 + COUNT ( * )
----
476

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3226
SELECT ALL + CAST( 19 AS SIGNED ) DIV - ( - 52 ) + - 93 + - - 64 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + CAST ( 19 AS INTEGER ) / - ( - 52 ) + - 93 + - - 64 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL - ( 76 ) + + COUNT( * ) + - COUNT( * ) * + 84 * ( + 63 ) * - + COUNT( * ) * - 26
----
-137667

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - ( 76 ) + + COUNT ( * ) + - COUNT ( * ) * + 84 * ( + 63 ) * - + COUNT ( * ) * - 26
----
-137667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3228
SELECT - NULLIF ( + CASE + 33 WHEN - + 89 * + - 7 THEN - 59 / 58 WHEN + + 95 THEN + 3 WHEN + COUNT( * ) THEN NULL END, + CASE - 90 WHEN - 87 / - + 3 * + 95 + + - 47 THEN NULL WHEN MAX( ALL 57 ) + - CASE - 11 WHEN 72 * + 37 + + 13 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 40 + + 35 END THEN - COUNT( * ) * 91 ELSE NULL END + + ( 97 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT - NULLIF ( + CASE + 33 WHEN - + 89 * + - 7 THEN - 59 / 58 WHEN + + 95 THEN + 3 WHEN + COUNT ( * ) THEN NULL END, + CASE - 90 WHEN - 87 / - + 3 * + 95 + + - 47 THEN NULL WHEN MAX ( ALL 57 ) + - CASE - 11 WHEN 72 * + 37 + + 13 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 40 + + 35 END THEN - COUNT ( * ) * 91 ELSE NULL END + + ( 97 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT + MIN( - - 13 ) * + 34 * + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT + MIN ( - - 13 ) * + 34 * + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 29 + - 98 + - 45
----
-114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT + COALESCE ( 73, + 84 + + - 2 * - 35 * 84, 8 ) - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3232
SELECT + COALESCE ( 73, + 84 + + - 2 * - 35 * 84, 8 ) - COUNT ( * ) AS col2
----
72

query II rowsort
SELECT 45 AS col2, - 35 AS col2
----
45
-35

query I rowsort
SELECT ALL + 61 * + - 18
----
-1098

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

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

query I rowsort
SELECT DISTINCT + 44 * + 29
----
1276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT COALESCE ( - 50, - COALESCE ( + + 97, + + 99 ) + + - CASE + + 29 WHEN - - 12 THEN 77 DIV COALESCE ( COUNT( * ), + 1 ) ELSE NULL END ) * 43
----
-2150

skipif mysql # not compatible
query I rowsort label-3237
SELECT COALESCE ( - 50, - COALESCE ( + + 97, + + 99 ) + + - CASE + + 29 WHEN - - 12 THEN 77 / COALESCE ( COUNT ( * ), + 1 ) ELSE NULL END ) * 43
----
-2150

query I rowsort
SELECT NULLIF ( 70, - 32 * + ( + 43 ) ) * + 55
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT 24 + COUNT( ALL + 65 ) * 82 col2
----
106

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT 24 + COUNT ( ALL + 65 ) * 82 col2
----
106

query I rowsort
SELECT 70 * - 55
----
-3850

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

query I rowsort
SELECT ALL - 85 + - - 65 * 87
----
5570

query I rowsort
SELECT 47 + 73
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + 12 - - 12 - SUM( DISTINCT + 11 ) - 15 * + 91
----
-1352

skipif mysql # not compatible
query I rowsort label-3244
SELECT + 12 - - 12 - SUM ( DISTINCT + 11 ) - 15 * + 91
----
-1352

query I rowsort
SELECT + ( + + 75 ) * - 10 * - 63 * - 17 + - + 50
----
-803300

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT 36 + - - 45 DIV - 97 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3246
SELECT 36 + - - 45 / - 97 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3247
SELECT DISTINCT CAST( - CASE - - 77 WHEN ( 57 ) THEN - 34 + - + 38 END AS SIGNED ) + CAST( NULL AS DECIMAL ) + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT CAST ( - CASE - - 77 WHEN ( 57 ) THEN - 34 + - + 38 END AS INTEGER ) + CAST ( NULL AS REAL ) + + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT - 4 DIV + 29 * 67
----
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT - 4 / + 29 * 67
----
0

query I rowsort
SELECT DISTINCT - + 15 * 18 AS col2
----
-270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT + 91 + - ( + 94 ) + - COUNT( * ) - + ( + - 15 ) * - 21 + + 72 + - + 66 DIV - + 15
----
-243

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT + 91 + - ( + 94 ) + - COUNT ( * ) - + ( + - 15 ) * - 21 + + 72 + - + 66 / - + 15
----
-243

query I rowsort
SELECT DISTINCT - 33 + + + 43 col1
----
10

query I rowsort
SELECT ALL - - 1 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT - SUM( ALL 46 ) + - CAST( NULL AS SIGNED ) + + + 98 + - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT - SUM ( ALL 46 ) + - CAST ( NULL AS INTEGER ) + + + 98 + - + 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3254
SELECT ALL + 58 + + 34 * - + NULLIF ( + + COALESCE ( - CASE AVG ( DISTINCT - 59 ) WHEN + - ( + - 40 ) THEN - + 42 DIV - COUNT( * ) + - 34 END, - - 5 * - - 75 ), 25 ) AS col1, 85 * + SUM( DISTINCT + + 40 ) * + COALESCE ( - + 94, - - 65 * + 63 * - 54 * 6 ) - + 49 + COUNT( * )
----
-12692
-319648

skipif mysql # not compatible
query II rowsort label-3254
SELECT ALL + 58 + + 34 * - + NULLIF ( + + COALESCE ( - CASE AVG ( DISTINCT - 59 ) WHEN + - ( + - 40 ) THEN - + 42 / - COUNT ( * ) + - 34 END, - - 5 * - - 75 ), 25 ) AS col1, 85 * + SUM ( DISTINCT + + 40 ) * + COALESCE ( - + 94, - - 65 * + 63 * - 54 * 6 ) - + 49 + COUNT ( * )
----
-12692
-319648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT CAST( 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3255
SELECT CAST ( 1 AS INTEGER )
----
1

query I rowsort
SELECT ALL + 77 - - + 25 AS col0
----
102

query I rowsort
SELECT ALL - + ( - 4 ) col0
----
4

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

skipif mysql # not compatible
query I rowsort label-3258
SELECT + 56 * + COUNT ( * ) * COUNT ( * ) + + 44 * - COUNT ( * ) AS col1
----
12

query I rowsort
SELECT + 11 * - 5 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT - 69 DIV ( 77 ) + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-3260
SELECT - 69 / ( 77 ) + - 20
----
-20

query I rowsort
SELECT ALL + + 60 - + + 1 AS col0
----
59

query II rowsort
SELECT 97 AS col1, 6 col0
----
97
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT - ( 63 ) + + 92 DIV + + 86
----
-62

skipif mysql # not compatible
query I rowsort label-3263
SELECT - ( 63 ) + + 92 / + + 86
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT ALL - 21 - + CAST( - + NULLIF ( 14, + 3 + + 50 ) AS SIGNED ) * 75 AS col1
----
1029

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - 21 - + CAST ( - + NULLIF ( 14, + 3 + + 50 ) AS INTEGER ) * 75 AS col1
----
1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT ALL - COUNT( DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN + + CASE 62 WHEN - 30 THEN NULL ELSE + + 98 END THEN 74 * + + 86 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - COUNT ( DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN + + CASE 62 WHEN - 30 THEN NULL ELSE + + 98 END THEN 74 * + + 86 END ) AS col1
----
0

query I rowsort
SELECT 36 * - 25 AS col2
----
-900

query I rowsort
SELECT ALL 78 * + + 30
----
2340

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT 42 DIV - + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT 42 / - + 60 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT DISTINCT - ( + 99 ) DIV 98 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT - ( + 99 ) / 98 AS col2
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3271
SELECT - CASE - - 94 WHEN - CAST( - + 85 AS SIGNED ) THEN - 40 END * ( + 19 ) - + ( + ( + ( - 59 ) ) ), MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - COALESCE ( ( MIN( - 2 ) ), - - COALESCE ( - + ( CAST( NULL AS SIGNED ) ), 45 ) ) * NULLIF ( - - 40, - - ( - ( - + 34 ) ) ) * COUNT( * ) - - 69
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3271
SELECT - CASE - - 94 WHEN - CAST ( - + 85 AS INTEGER ) THEN - 40 END * ( + 19 ) - + ( + ( + ( - 59 ) ) ), MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - COALESCE ( ( MIN ( - 2 ) ), - - COALESCE ( - + ( CAST ( NULL AS INTEGER ) ), 45 ) ) * NULLIF ( - - 40, - - ( - ( - + 34 ) ) ) * COUNT ( * ) - - 69
----
NULL
NULL

query III rowsort
SELECT 49 AS col1, - 19 AS col2, 80 + + 54
----
49
-19
134

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 55 DIV 65 * - 74
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT 55 / 65 * - 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3274
SELECT 26 * 0 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT 26 * 0 / 62 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3275
SELECT 30 AS col2, CAST( NULL AS SIGNED )
----
30
NULL

skipif mysql # not compatible
query II rowsort label-3275
SELECT 30 AS col2, CAST ( NULL AS INTEGER )
----
30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3276
SELECT COUNT( * ) - - ( + CAST( + - 15 AS SIGNED ) ) + - - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3276
SELECT COUNT ( * ) - - ( + CAST ( + - 15 AS INTEGER ) ) + - - COUNT ( * ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3277
SELECT DISTINCT + COUNT( * ) + CAST( - 64 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + COUNT ( * ) + CAST ( - 64 AS INTEGER )
----
-63

query I rowsort
SELECT ALL 71 + - - 84 AS col0
----
155

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

skipif mysql # not compatible
query II rowsort label-3279
SELECT - 94 AS col1, COUNT ( * )
----
-94
1

query II rowsort
SELECT 60, NULLIF ( - - 44, - - ( + 21 ) + + 76 ) AS col2
----
60
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT ALL 65 + - - 49 DIV 90 * - 80 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL 65 + - - 49 / 90 * - 80 AS col0
----
65

query II rowsort
SELECT 65 col1, 67 * 93 * + 69
----
65
429939

query I rowsort
SELECT 20 - - 3 * 39 + + 12
----
149

query I rowsort
SELECT + 93 * - 91 + - + 90
----
-8553

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + 32 * - MIN( ALL - + 68 )
----
2176

skipif mysql # not compatible
query I rowsort label-3285
SELECT + 32 * - MIN ( ALL - + 68 )
----
2176

query II rowsort
SELECT DISTINCT + 62 + - 51 AS col1, 19
----
11
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL + NULLIF ( + 94, 44 * + 37 * + COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + NULLIF ( + 94, 44 * + 37 * + COUNT ( * ) ) AS col2
----
94

query I rowsort
SELECT + 59 + + 27
----
86

query I rowsort
SELECT ALL - 29 - 19 * + NULLIF ( + + 73, - 9 ) AS col2
----
-1416

query I rowsort
SELECT - + CASE - 83 WHEN - 13 THEN 56 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 66 AS col0, 97 AS col0
----
66
97

query I rowsort
SELECT + 21 + + 34
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT + + 74 DIV - + 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3293
SELECT + + 74 / - + 62 AS col2
----
-1

query I rowsort
SELECT + + ( - 69 ) * + + 50 AS col0
----
-3450

query II rowsort
SELECT + 84 AS col1, 26 AS col0
----
84
26

query II rowsort
SELECT 31 AS col1, - 34
----
31
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT DISTINCT 74 DIV - ( + 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 74 / - ( + 62 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL + 59 col2, 23 + - NULLIF ( - COUNT( * ), - 39 + + COUNT( * ) ) AS col2
----
59
24

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL + 59 col2, 23 + - NULLIF ( - COUNT ( * ), - 39 + + COUNT ( * ) ) AS col2
----
59
24

query I rowsort
SELECT ALL + 96 * + 60 * 37 col2
----
213120

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT + - CASE COUNT( * ) WHEN - 73 THEN NULL WHEN + + 30 * - 15 + + 48 + - - ( MIN( - ( - 98 ) ) ) * - ( - 98 ) THEN - 27 ELSE NULL END + - 16 + COALESCE ( 73, AVG ( + + 95 ) ) * + 98 + - COUNT( * ) + + 67 + MAX( DISTINCT + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT + - CASE COUNT ( * ) WHEN - 73 THEN NULL WHEN + + 30 * - 15 + + 48 + - - ( MIN ( - ( - 98 ) ) ) * - ( - 98 ) THEN - 27 ELSE NULL END + - 16 + COALESCE ( 73, AVG ( + + 95 ) ) * + 98 + - COUNT ( * ) + + 67 + MAX ( DISTINCT + 45 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT - 85 DIV 22 + 36
----
33

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - 85 / 22 + 36
----
33

query I rowsort
SELECT 62 * + 75 + 36 * + 9
----
4974

query II rowsort
SELECT ALL - 89 * + 35 AS col0, 79 AS col0
----
-3115
79

query I rowsort
SELECT - 43 * + 40
----
-1720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3305
SELECT ALL 49 * + 83 * - - CASE + - CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) - - - 56 + SUM( ALL - 11 ) + MIN( - 67 ) * 73 * - + 29 THEN 5 ELSE - - 10 - 32 END * + 1
----
-89474

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL 49 * + 83 * - - CASE + - CAST ( NULL AS REAL ) WHEN + COUNT ( * ) - - - 56 + SUM ( ALL - 11 ) + MIN ( - 67 ) * 73 * - + 29 THEN 5 ELSE - - 10 - 32 END * + 1
----
-89474

query I rowsort
SELECT - 61 - - 84 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT COALESCE ( - 80, - - COUNT( * ), - + 36 )
----
-80

skipif mysql # not compatible
query I rowsort label-3307
SELECT COALESCE ( - 80, - - COUNT ( * ), - + 36 )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3308
SELECT + 7 * 76 DIV + + CASE 94 WHEN + + COUNT( * ) + 71 THEN - 96 + 53 - - - 97 * + 73 * COUNT( * ) ELSE 24 END
----
22

skipif mysql # not compatible
query I rowsort label-3308
SELECT + 7 * 76 / + + CASE 94 WHEN + + COUNT ( * ) + 71 THEN - 96 + 53 - - - 97 * + 73 * COUNT ( * ) ELSE 24 END
----
22

query I rowsort
SELECT - 13 * - - 6 AS col1
----
-78

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

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

query I rowsort
SELECT ALL 91 * - - 61 * - 30 + - - 51 AS col0
----
-166479

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT - 17 * + 54 * + 53 * + + 53 * COUNT( * ) * 34 AS col2
----
-87674508

skipif mysql # not compatible
query I rowsort label-3312
SELECT - 17 * + 54 * + 53 * + + 53 * COUNT ( * ) * 34 AS col2
----
-87674508

query I rowsort
SELECT ALL - 93 + + 42 + + 47 * 2 * ( - 48 )
----
-4563

query I rowsort
SELECT DISTINCT + 35 * 9
----
315

query I rowsort
SELECT - + 13 * - 36 AS col2
----
468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT - - 38 * CASE - 39 WHEN - 82 - ( + - 46 ) + - 99 THEN - - AVG ( - 81 ) END * - CAST( - 42 AS SIGNED ) * ( - - 16 ) + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT - - 38 * CASE - 39 WHEN - 82 - ( + - 46 ) + - 99 THEN - - AVG ( - 81 ) END * - CAST ( - 42 AS INTEGER ) * ( - - 16 ) + 5
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3317
SELECT ALL - 33 * - 45 AS col0, + 48 DIV COUNT( ALL + 50 ) * - 57 AS col2
----
1485
-2736

skipif mysql # not compatible
query II rowsort label-3317
SELECT ALL - 33 * - 45 AS col0, + 48 / COUNT ( ALL + 50 ) * - 57 AS col2
----
1485
-2736

query I rowsort
SELECT - ( - 75 ) + 85 col0
----
160

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

query II rowsort
SELECT - ( + 44 ) AS col2, 39
----
-44
39

query I rowsort
SELECT - 96 - - 41 + - - 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT + ( + + 42 ) * 18 * + - 53 + - 83 AS col1, - 37 * + - NULLIF ( - + COALESCE ( 36, - + 34 + 76 ), 40 + + MIN( 33 ) * + 85 + COUNT( * ) * + 60 ) AS col1
----
-40151
-1332

skipif mysql # not compatible
query II rowsort label-3322
SELECT + ( + + 42 ) * 18 * + - 53 + - 83 AS col1, - 37 * + - NULLIF ( - + COALESCE ( 36, - + 34 + 76 ), 40 + + MIN ( 33 ) * + 85 + COUNT ( * ) * + 60 ) AS col1
----
-40151
-1332

query II rowsort
SELECT - 10 - - 97 AS col2, - 41
----
87
-41

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

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

query II rowsort
SELECT ALL 63 * + 67 AS col0, - 84 AS col0
----
4221
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT - + 11 * + MAX( ALL 6 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-3326
SELECT - + 11 * + MAX ( ALL 6 ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + + 20 + - MIN( DISTINCT + 12 )
----
8

skipif mysql # not compatible
query I rowsort label-3327
SELECT + + 20 + - MIN ( DISTINCT + 12 )
----
8

query I rowsort
SELECT + 68 + + 55 AS col0
----
123

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT ALL + 72 AS col2, 23 DIV 99 * + 95 col0
----
72
0

skipif mysql # not compatible
query II rowsort label-3329
SELECT ALL + 72 AS col2, 23 / 99 * + 95 col0
----
72
0

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

skipif mysql # not compatible
query I rowsort label-3330
SELECT + 55 * - COUNT ( DISTINCT ( - 78 ) ) AS col1
----
-55

query II rowsort
SELECT + ( + 80 ) * - 84 + - + 56 * 2 * + 68, 70 AS col0
----
-14336
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT 31 DIV - 11 + - + COUNT( * ) + + + 57 + - - 37 * + + 22
----
868

skipif mysql # not compatible
query I rowsort label-3332
SELECT 31 / - 11 + - + COUNT ( * ) + + + 57 + - - 37 * + + 22
----
868

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT ALL 2 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL 2 / 63 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3334
SELECT + 8 DIV + MIN( + 99 ) * + 80 * 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT + 8 / + MIN ( + 99 ) * + 80 * 16 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3336
SELECT ALL - 41 * - MIN( ALL - + 57 ) * 39 AS col2, + 44 DIV - 3 AS col0
----
-91143
-14

skipif mysql # not compatible
query II rowsort label-3336
SELECT ALL - 41 * - MIN ( ALL - + 57 ) * 39 AS col2, + 44 / - 3 AS col0
----
-91143
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT ALL COUNT( * ) * 8 * + 62 + SUM( DISTINCT + 58 ) AS col2
----
554

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL COUNT ( * ) * 8 * + 62 + SUM ( DISTINCT + 58 ) AS col2
----
554

onlyif mysql # aggregate syntax: 
query II rowsort label-3338
SELECT + 90 AS col0, 21 + - 91 * + 59 - + SUM( + 30 ) AS col1
----
90
-5378

skipif mysql # not compatible
query II rowsort label-3338
SELECT + 90 AS col0, 21 + - 91 * + 59 - + SUM ( + 30 ) AS col1
----
90
-5378

query I rowsort
SELECT CASE - 51 WHEN - + 43 THEN NULL WHEN + + 94 / 75 THEN NULL WHEN - - 9 * - 69 THEN + 33 - + - 46 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT 96 * + CAST( + - COALESCE ( - COUNT( * ), + + 17 + 0 ) AS SIGNED ) * + 95 AS col2
----
9120

skipif mysql # not compatible
query I rowsort label-3340
SELECT 96 * + CAST ( + - COALESCE ( - COUNT ( * ), + + 17 + 0 ) AS INTEGER ) * + 95 AS col2
----
9120

query I rowsort
SELECT DISTINCT 58 - 53 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT + 62 * - 14 - + COUNT( * ) DIV 83
----
-868

skipif mysql # not compatible
query I rowsort label-3342
SELECT + 62 * - 14 - + COUNT ( * ) / 83
----
-868

query II rowsort
SELECT ALL - 81 AS col2, + ( + + NULLIF ( - + 79, - ( - 27 ) * - - 23 + 34 + + 34 + - 3 * + - 88 / + 78 ) )
----
-81
-79

query II rowsort
SELECT ALL - 70 AS col0, - 42
----
-70
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT - + 14, - COUNT( + + NULLIF ( 73, 45 ) ) AS col1
----
-14
-1

skipif mysql # not compatible
query II rowsort label-3345
SELECT - + 14, - COUNT ( + + NULLIF ( 73, 45 ) ) AS col1
----
-14
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3346
SELECT ALL + 12 DIV + + CAST( + - 90 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + 12 / + + CAST ( + - 90 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3347
SELECT + 90 * - - NULLIF ( + - 95, + COALESCE ( - COUNT( DISTINCT 73 ), CAST( + - 63 AS SIGNED ) ) * - 79 ), - 30 AS col1
----
-8550
-30

skipif mysql # not compatible
query II rowsort label-3347
SELECT + 90 * - - NULLIF ( + - 95, + COALESCE ( - COUNT ( DISTINCT 73 ), CAST ( + - 63 AS INTEGER ) ) * - 79 ), - 30 AS col1
----
-8550
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - 64 - + COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3348
SELECT - 64 - + COUNT ( * ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3349
SELECT 52 - + 95 * - MIN( ALL - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT 52 - + 95 * - MIN ( ALL - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT SUM( DISTINCT + 68 ) col0
----
68

skipif mysql # not compatible
query I rowsort label-3350
SELECT SUM ( DISTINCT + 68 ) col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + + 87 * - - COUNT( * ) + - 16 col2
----
71

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + + 87 * - - COUNT ( * ) + - 16 col2
----
71

query I rowsort
SELECT DISTINCT - + 24 * - 48
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL - 94 + - + 69 * - - COUNT( * )
----
-163

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - 94 + - + 69 * - - COUNT ( * )
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT 17 + - CAST( - 96 AS SIGNED ) * + 22 AS col1
----
2129

skipif mysql # not compatible
query I rowsort label-3354
SELECT 17 + - CAST ( - 96 AS INTEGER ) * + 22 AS col1
----
2129

query I rowsort
SELECT 26 * - 71 * 66 col0
----
-121836

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT MAX( DISTINCT + 93 ) * + + 14 col2
----
1302

skipif mysql # not compatible
query I rowsort label-3356
SELECT MAX ( DISTINCT + 93 ) * + + 14 col2
----
1302

query I rowsort
SELECT DISTINCT 61 + 22
----
83

query I rowsort
SELECT ALL 19 + + 95
----
114

query I rowsort
SELECT DISTINCT 13 * + 81 AS col2
----
1053

query I rowsort
SELECT DISTINCT + 54 * - - 51
----
2754

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

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

query II rowsort
SELECT ALL 60 + - 54 AS col1, + 81
----
6
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3363
SELECT MIN( COALESCE ( + 47, + CAST( NULL AS SIGNED ), - 54 ) ) - - - 38 - + 65
----
-56

skipif mysql # not compatible
query I rowsort label-3363
SELECT MIN ( COALESCE ( + 47, + CAST ( NULL AS INTEGER ), - 54 ) ) - - - 38 - + 65
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3364
SELECT CAST( + SUM( DISTINCT 74 ) AS SIGNED ) * 61 + + 20, 37 * - 89 * - 26 AS col1
----
4534
85618

skipif mysql # not compatible
query II rowsort label-3364
SELECT CAST ( + SUM ( DISTINCT 74 ) AS INTEGER ) * 61 + + 20, 37 * - 89 * - 26 AS col1
----
4534
85618

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT + 70 * - COUNT( 69 ) + 73 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3365
SELECT + 70 * - COUNT ( 69 ) + 73 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT CAST( + 33 AS SIGNED ) + 35
----
68

skipif mysql # not compatible
query I rowsort label-3366
SELECT CAST ( + 33 AS INTEGER ) + 35
----
68

query I rowsort
SELECT CASE - + 84 WHEN + 2 THEN NULL ELSE 48 * - 78 * - 17 + - 68 END * - 99
----
-6294420

query I rowsort
SELECT DISTINCT 59 - + + 8 AS col0
----
51

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

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

query I rowsort
SELECT ALL ( + 19 ) * + + 17 AS col0
----
323

query I rowsort
SELECT + 21 * - 63 AS col0
----
-1323

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

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT COUNT ( * ) - + - 18 * - + COUNT ( * ) AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3373
SELECT ALL + CAST( + + 6 AS SIGNED ) AS col0, + 45 + + 62 AS col2
----
6
107

skipif mysql # not compatible
query II rowsort label-3373
SELECT ALL + CAST ( + + 6 AS INTEGER ) AS col0, + 45 + + 62 AS col2
----
6
107

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT 75 + - 23 + - 15 + + 19 DIV + - 12
----
36

skipif mysql # not compatible
query I rowsort label-3374
SELECT 75 + - 23 + - 15 + + 19 / + - 12
----
36

query I rowsort
SELECT ALL - 50 * - 79 * + + 24
----
94800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3376
SELECT - MIN( 79 ) * 90 * + - 75 col0, + NULLIF ( - + 85, - - COUNT( * ) ) DIV ( - MAX( + 90 ) ) - + 21 * 78 + - 77 + - + 90 AS col2
----
533250
-1805

skipif mysql # not compatible
query II rowsort label-3376
SELECT - MIN ( 79 ) * 90 * + - 75 col0, + NULLIF ( - + 85, - - COUNT ( * ) ) / ( - MAX ( + 90 ) ) - + 21 * 78 + - 77 + - + 90 AS col2
----
533250
-1805

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + 62 + 29 * - - COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 62 + 29 * - - COUNT ( * ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3378
SELECT 67 + + + CAST( NULL AS SIGNED ), 91 col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3378
SELECT 67 + + + CAST ( NULL AS INTEGER ), 91 col1
----
NULL
91

query I rowsort
SELECT NULLIF ( - 56, - ( + ( + 4 ) ) )
----
-56

query I rowsort
SELECT DISTINCT - 98 + + 84 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT CASE 91 WHEN - + 72 * - SUM( DISTINCT + 79 ) THEN + ( - COALESCE ( + CAST( NULL AS SIGNED ), - 23 ) ) ELSE NULL END / + COUNT( * ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT CASE 91 WHEN - + 72 * - SUM ( DISTINCT + 79 ) THEN + ( - COALESCE ( + CAST ( NULL AS INTEGER ), - 23 ) ) ELSE NULL END / + COUNT ( * ) * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3382
SELECT + 94 - CASE + 9 WHEN - COUNT( + 89 ) THEN + COALESCE ( 47, - 18 ) ELSE NULL END - + + CAST( NULL AS SIGNED ) * + + 16 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT + 94 - CASE + 9 WHEN - COUNT ( + 89 ) THEN + COALESCE ( 47, - 18 ) ELSE NULL END - + + CAST ( NULL AS INTEGER ) * + + 16 * - 44
----
NULL

query I rowsort
SELECT ALL - 48 + 76 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT DISTINCT + 15 + + 98 / - CASE - MIN( 40 ) WHEN - - 97 THEN NULL WHEN - 11 THEN - 54 + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT + 15 + + 98 / - CASE - MIN ( 40 ) WHEN - - 97 THEN NULL WHEN - 11 THEN - 54 + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3385
SELECT 71 + + CAST( 79 AS SIGNED ), 94 AS col1
----
150
94

skipif mysql # not compatible
query II rowsort label-3385
SELECT 71 + + CAST ( 79 AS INTEGER ), 94 AS col1
----
150
94

query I rowsort
SELECT 45 * + 99
----
4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT ALL - CAST( NULL AS SIGNED ) * - - 4 / - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 4 / - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT 55 - 2 + + 74 - + MAX( 63 ) + 28 - 29
----
63

skipif mysql # not compatible
query I rowsort label-3388
SELECT 55 - 2 + + 74 - + MAX ( 63 ) + 28 - 29
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL CASE - 35 WHEN + - 70 * - - 8 + + COUNT( * ) / COUNT( * ) + - + 99 + - - 32 THEN + 41 * - 51 + + - 7 ELSE - 56 * + 57 END AS col2
----
-3192

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL CASE - 35 WHEN + - 70 * - - 8 + + COUNT ( * ) / COUNT ( * ) + - + 99 + - - 32 THEN + 41 * - 51 + + - 7 ELSE - 56 * + 57 END AS col2
----
-3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3390
SELECT COALESCE ( - 0, - 64 * + 22 DIV + + COUNT( * ), - 17 - 2 * 88 + + 12 + - COUNT( * ) * - + COALESCE ( - ( + 46 ), 74 + + + ( 79 ) + - 76 + + - 3 * + + 58 * - 55, 68 * + CAST( NULL AS SIGNED ) * - 58 + - - 25 + 49, + 26 - - NULLIF ( - COUNT( * ), 32 + - - CASE - 34 WHEN 96 THEN NULL WHEN - 36 * COUNT( * ) + 62 THEN + 88 ELSE 72 + 43 END ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT COALESCE ( - 0, - 64 * + 22 / + + COUNT ( * ), - 17 - 2 * 88 + + 12 + - COUNT ( * ) * - + COALESCE ( - ( + 46 ), 74 + + + ( 79 ) + - 76 + + - 3 * + + 58 * - 55, 68 * + CAST ( NULL AS INTEGER ) * - 58 + - - 25 + 49, + 26 - - NULLIF ( - COUNT ( * ), 32 + - - CASE - 34 WHEN 96 THEN NULL WHEN - 36 * COUNT ( * ) + 62 THEN + 88 ELSE 72 + 43 END ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3391
SELECT ALL + COALESCE ( - - 61, 79 ) * 26 DIV - COUNT( * ) + - 82 DIV 30 * - ( - 83 ) DIV - 72 AS col2
----
-1584

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + COALESCE ( - - 61, 79 ) * 26 / - COUNT ( * ) + - 82 / 30 * - ( - 83 ) / - 72 AS col2
----
-1584

query I rowsort
SELECT DISTINCT 42 * - - 27 - - 88
----
1222

query II rowsort
SELECT COALESCE ( - - 34, + 65 ) AS col2, + 0
----
34
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT + COUNT( * ) * 32 * + 26 + + MAX( DISTINCT + + 32 ) * - + COUNT( * )
----
800

skipif mysql # not compatible
query I rowsort label-3395
SELECT + COUNT ( * ) * 32 * + 26 + + MAX ( DISTINCT + + 32 ) * - + COUNT ( * )
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT NULLIF ( - - MAX( 95 ), 73 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3396
SELECT NULLIF ( - - MAX ( 95 ), 73 ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3397
SELECT 5 DIV + 54 + + 40 + - 48 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3397
SELECT 5 / + 54 + + 40 + - 48 AS col2
----
-8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT ALL COUNT( * ) * - 16 DIV COUNT( 32 )
----
-16

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL COUNT ( * ) * - 16 / COUNT ( 32 )
----
-16

query I rowsort
SELECT - ( - - 74 ) * 61 * - 42 AS col1
----
189588

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT ALL ( 91 ) * - 66 + + + COUNT( * ) DIV + 96 * + 16 * + 39
----
-6006

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL ( 91 ) * - 66 + + + COUNT ( * ) / + 96 * + 16 * + 39
----
-6006

query I rowsort
SELECT ALL - 6 * + + 44 * - 37 AS col2
----
9768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT + NULLIF ( - - 93, - 61 + 59 + - 49 - - + 35 + CAST( - - 2 AS SIGNED ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + NULLIF ( - - 93, - 61 + 59 + - 49 - - + 35 + CAST ( - - 2 AS INTEGER ) ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT MAX( ALL 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3405
SELECT MAX ( ALL 28 ) AS col2
----
28

query I rowsort
SELECT + + 1 * 33 * + - 85
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL + + COUNT( + - 64 )
----
1

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL + + COUNT ( + - 64 )
----
1

query I rowsort
SELECT - + 90 + - 0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT - 72 DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3409
SELECT - 72 / + 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - - COUNT( * ) + 85
----
86

skipif mysql # not compatible
query I rowsort label-3410
SELECT - - COUNT ( * ) + 85
----
86

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

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

query I rowsort
SELECT + 99 - + 23 AS col2
----
76

query I rowsort
SELECT ALL + ( + ( 63 ) ) + - 48 + - ( - 31 ) * 9 AS col1
----
294

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

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

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

query I rowsort
SELECT + + 33 * - 5 AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT - COUNT( * ) + + 56 * + 31 AS col0
----
1735

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - COUNT ( * ) + + 56 * + 31 AS col0
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + 88 * + + 88 * - MAX( DISTINCT 85 ) * 69 + + 33 - + ( MAX( ALL - - 49 ) ) + 47 * + - 19
----
-45419469

skipif mysql # not compatible
query I rowsort label-3418
SELECT + 88 * + + 88 * - MAX ( DISTINCT 85 ) * 69 + + 33 - + ( MAX ( ALL - - 49 ) ) + 47 * + - 19
----
-45419469

query I rowsort
SELECT + 62 - NULLIF ( 81, - 58 + - - 10 )
----
-19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3421
SELECT + + 39 + + 26 + - 23 DIV COUNT( * ) * - 4 * 90 AS col2
----
8345

skipif mysql # not compatible
query I rowsort label-3421
SELECT + + 39 + + 26 + - 23 / COUNT ( * ) * - 4 * 90 AS col2
----
8345

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

skipif mysql # not compatible
query I rowsort label-3422
SELECT - CAST ( + + 97 AS INTEGER ) - + COUNT ( * )
----
-98

query I rowsort
SELECT ALL 45 + + 76
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + 81 + + NULLIF ( + - 44, + 43 * 8 + + COUNT( * ) + COUNT( * ) * COUNT( * ) + + 45 * - 77 )
----
37

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + 81 + + NULLIF ( + - 44, + 43 * 8 + + COUNT ( * ) + COUNT ( * ) * COUNT ( * ) + + 45 * - 77 )
----
37

query II rowsort
SELECT 85 AS col1, 6 AS col1
----
85
6

query II rowsort
SELECT ALL 55 AS col1, + ( + + 50 ) AS col2
----
55
50

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

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

query I rowsort
SELECT ALL NULLIF ( + - 66, + + 94 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT - ( + - 64 ) AS col2, + NULLIF ( - + MIN( ( 14 ) ), - AVG ( ALL + 31 ) )
----
64
-14

skipif mysql # not compatible
query II rowsort label-3429
SELECT - ( + - 64 ) AS col2, + NULLIF ( - + MIN ( ( 14 ) ), - AVG ( ALL + 31 ) )
----
64
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3430
SELECT ALL 43 - - 56 + 74 / + 99 * - - MIN( - CAST( NULL AS SIGNED ) ) + + 17 - 65 * + - 88 + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL 43 - - 56 + 74 / + 99 * - - MIN ( - CAST ( NULL AS INTEGER ) ) + + 17 - 65 * + - 88 + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT + MAX( + 34 ) + + 34 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3431
SELECT + MAX ( + 34 ) + + 34 AS col1
----
68

query I rowsort
SELECT + 25 * + - 38
----
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-3433
SELECT ALL 37 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL 37 / 81 AS col2
----
0

query I rowsort
SELECT + 42 + + - 34 AS col0
----
8

query I rowsort
SELECT ALL + NULLIF ( + 5, + 67 * - 31 ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT - 95 * MIN( ALL - 77 ) col2
----
7315

skipif mysql # not compatible
query I rowsort label-3436
SELECT - 95 * MIN ( ALL - 77 ) col2
----
7315

onlyif mysql # DIV for integer division: 
query I rowsort label-3437
SELECT ALL 1 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL 1 / 62
----
0

query I rowsort
SELECT - 12 + + 58 + - 97 + 55
----
4

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) + + 20 AS col1
----
1
19

skipif mysql # not compatible
query II rowsort label-3442
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + + 20 AS col1
----
1
19

query II rowsort
SELECT - 53 + - 78, 27 * - - 58 * + 57 AS col1
----
-131
89262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT 38 DIV 73 - - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3444
SELECT 38 / 73 - - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + - 43 * ( 40 ) + - COUNT( * ) AS col2
----
-1721

skipif mysql # not compatible
query I rowsort label-3445
SELECT + - 43 * ( 40 ) + - COUNT ( * ) AS col2
----
-1721

query I rowsort
SELECT - 17 + - + 91
----
-108

query I rowsort
SELECT - 60 * + 54 AS col0
----
-3240

query II rowsort
SELECT DISTINCT + 17, 18 col0
----
17
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT - + CAST( - 63 AS SIGNED ) + + CAST( + 16 AS SIGNED ) * 16 AS col0
----
319

skipif mysql # not compatible
query I rowsort label-3449
SELECT - + CAST ( - 63 AS INTEGER ) + + CAST ( + 16 AS INTEGER ) * 16 AS col0
----
319

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

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

query I rowsort
SELECT ALL + + ( 97 ) * 93 + - 72
----
8949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT ALL - 99 * - CAST( + + COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + 67 + - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - 99 * - CAST ( + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + 67 + - COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - - 42 * - 88 * + 0 + MIN( - - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-3453
SELECT - - 42 * - 88 * + 0 + MIN ( - - 4 )
----
4

query II rowsort
SELECT DISTINCT + 58 AS col0, + 26
----
58
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - 63 * + 76 * - COUNT( * )
----
4788

skipif mysql # not compatible
query I rowsort label-3455
SELECT - 63 * + 76 * - COUNT ( * )
----
4788

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3456
SELECT - 48 AS col2, 70 DIV ( + ( - 74 ) ) * ( + COUNT( * ) ) * + ( + + COUNT( * ) ) + - + 68 + + - 30 + - 93 + 32 * - 9 + + + COALESCE ( MAX( DISTINCT + - CAST( NULL AS SIGNED ) ), 53 * 57 )
----
-48
2542

skipif mysql # not compatible
query II rowsort label-3456
SELECT - 48 AS col2, 70 / ( + ( - 74 ) ) * ( + COUNT ( * ) ) * + ( + + COUNT ( * ) ) + - + 68 + + - 30 + - 93 + 32 * - 9 + + + COALESCE ( MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ), 53 * 57 )
----
-48
2542

query II rowsort
SELECT ALL - - 67 * - 46 AS col2, - 77 col1
----
-3082
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT - 90 DIV - 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3458
SELECT - 90 / - 40 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT - + COUNT( + 37 ) * - - CASE - + 66 WHEN - 42 THEN NULL WHEN + 40 - COUNT( DISTINCT - - ( - + 78 ) ) + + 43 * - - COUNT( * ) THEN NULL ELSE 33 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT - + COUNT ( + 37 ) * - - CASE - + 66 WHEN - 42 THEN NULL WHEN + 40 - COUNT ( DISTINCT - - ( - + 78 ) ) + + 43 * - - COUNT ( * ) THEN NULL ELSE 33 END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL COUNT( ALL + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL COUNT ( ALL + 21 )
----
1

query I rowsort
SELECT ALL + + 66 * 18 * 63 + 88 + - 34 AS col0
----
74898

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT 47 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT 47 / - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL - MIN( DISTINCT + CAST( + 24 AS SIGNED ) )
----
-24

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - MIN ( DISTINCT + CAST ( + 24 AS INTEGER ) )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT + 22 + - 19 * - - 13 / + + 59 * + + CAST( NULL AS SIGNED ) * - COUNT( * ) * - - ( + 38 ) / + 53 * - - 19 * + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3464
SELECT + 22 + - 19 * - - 13 / + + 59 * + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - - ( + 38 ) / + 53 * - - 19 * + + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT DISTINCT - 67 - + - 73 + COALESCE ( SUM( DISTINCT + + 3 ), 40, + ( - CAST( 39 AS SIGNED ) ), ( + ( - 59 ) ) )
----
9

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - 67 - + - 73 + COALESCE ( SUM ( DISTINCT + + 3 ), 40, + ( - CAST ( 39 AS INTEGER ) ), ( + ( - 59 ) ) )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL + ( - 78 ) DIV - - 10
----
-7

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + ( - 78 ) / - - 10
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT + MIN( 25 ) + 86
----
111

skipif mysql # not compatible
query I rowsort label-3467
SELECT + MIN ( 25 ) + 86
----
111

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3469
SELECT DISTINCT 2 DIV + - COUNT( * ), ( - 94 ) AS col0
----
-2
-94

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT 2 / + - COUNT ( * ), ( - 94 ) AS col0
----
-2
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3470
SELECT - NULLIF ( + 62, - 77 * - 1 + + ( + 86 ) + - 58 ), + ( - COUNT( * ) ) * + 96 - + ( CASE + + 59 WHEN + 63 / + - 43 + - - 98 + - 2 * - + MAX( - 33 ) + - COUNT( * ) + - - 89 * - 22 THEN NULL WHEN - - 43 THEN - 36 END ) AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-3470
SELECT - NULLIF ( + 62, - 77 * - 1 + + ( + 86 ) + - 58 ), + ( - COUNT ( * ) ) * + 96 - + ( CASE + + 59 WHEN + 63 / + - 43 + - - 98 + - 2 * - + MAX ( - 33 ) + - COUNT ( * ) + - - 89 * - 22 THEN NULL WHEN - - 43 THEN - 36 END ) AS col1
----
-62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT - COUNT( * ) - - 49 + + 37 * + + 43
----
1639

skipif mysql # not compatible
query I rowsort label-3471
SELECT - COUNT ( * ) - - 49 + + 37 * + + 43
----
1639

query I rowsort
SELECT DISTINCT 96 * - 61 AS col2
----
-5856

query II rowsort
SELECT 54 - 29, - 8 * - 25 AS col1
----
25
200

query I rowsort
SELECT 90 * + 16 AS col1
----
1440

query I rowsort
SELECT DISTINCT 60 * 18
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT 80 * + + MAX( 90 ) * + - 59 * 20 AS col2
----
-8496000

skipif mysql # not compatible
query I rowsort label-3476
SELECT 80 * + + MAX ( 90 ) * + - 59 * 20 AS col2
----
-8496000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - CASE - COUNT( * ) WHEN 91 + - SUM( - - 75 ) THEN NULL WHEN + 17 * - + ( + + 73 ) - + 79 + + 5 THEN - - SUM( - 73 ) / + 26 * + + 22 + + ( + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - CASE - COUNT ( * ) WHEN 91 + - SUM ( - - 75 ) THEN NULL WHEN + 17 * - + ( + + 73 ) - + 79 + + 5 THEN - - SUM ( - 73 ) / + 26 * + + 22 + + ( + COUNT ( * ) ) END
----
NULL

query II rowsort
SELECT 6 * - 26 + - 77, 65 - 61 + + 57 AS col1
----
-233
61

query I rowsort
SELECT DISTINCT 82 + - ( 9 ) + 93 + + - 83 + 45 * + 25
----
1208

query II rowsort
SELECT + 14 + + 41, 23 AS col2
----
55
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3482
SELECT ALL - - ( 24 ), - CAST( NULL AS SIGNED ) * - 35 col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL - - ( 24 ), - CAST ( NULL AS INTEGER ) * - 35 col0
----
24
NULL

query I rowsort
SELECT ALL + 93 + - 13 + + 9 - + 0
----
89

query I rowsort
SELECT ALL + + 44 + - 93 - + 3 + - + 33 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3485
SELECT - 81 * + 76 + - - CASE + 24 WHEN - 60 - + NULLIF ( 15, 54 + + MAX( + 5 ) + - - 55 * CAST( NULL AS SIGNED ) / - 31 ) THEN - - 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT - 81 * + 76 + - - CASE + 24 WHEN - 60 - + NULLIF ( 15, 54 + + MAX ( + 5 ) + - - 55 * CAST ( NULL AS INTEGER ) / - 31 ) THEN - - 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT - - 66 * - MIN( + 79 ) + - 19 + 36
----
-5197

skipif mysql # not compatible
query I rowsort label-3486
SELECT - - 66 * - MIN ( + 79 ) + - 19 + 36
----
-5197

query I rowsort
SELECT 29 * 88 AS col2
----
2552

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

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

query I rowsort
SELECT ALL - NULLIF ( + 19, - 88 * - ( + + 69 ) )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT + CAST( + 99 AS SIGNED ) + - + 99 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-3490
SELECT + CAST ( + 99 AS INTEGER ) + - + 99 + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT + + COUNT( * ) - + ( - 72 )
----
73

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + + COUNT ( * ) - + ( - 72 )
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3492
SELECT + 69 * + - 77 * + 2 + + 91 - + 99 + - CAST( - 78 AS SIGNED ) DIV - 80 - + + 50
----
-10684

skipif mysql # not compatible
query I rowsort label-3492
SELECT + 69 * + - 77 * + 2 + + 91 - + 99 + - CAST ( - 78 AS INTEGER ) / - 80 - + + 50
----
-10684

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL + COUNT( * ) - - NULLIF ( + + 22, + 78 * 86 )
----
23

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL + COUNT ( * ) - - NULLIF ( + + 22, + 78 * 86 )
----
23

query II rowsort
SELECT ALL 53, 34 AS col0
----
53
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT 71 * - COALESCE ( - MIN( DISTINCT 87 ), - 72 - 6, - 6 * 41 + + 81 )
----
6177

skipif mysql # not compatible
query I rowsort label-3495
SELECT 71 * - COALESCE ( - MIN ( DISTINCT 87 ), - 72 - 6, - 6 * 41 + + 81 )
----
6177

query I rowsort
SELECT ALL + 9 * - 94 AS col1
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT 45 + 17 + - MIN( + 42 )
----
20

skipif mysql # not compatible
query I rowsort label-3497
SELECT 45 + 17 + - MIN ( + 42 )
----
20

query I rowsort
SELECT DISTINCT + 91 * + 74 AS col1
----
6734

query I rowsort
SELECT 54 + - 4 AS col2
----
50

query I rowsort
SELECT 99 - 23 * + - 97 * 5
----
11254

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT DISTINCT 71, - COALESCE ( 12, + + ( + 19 ), + 19 + + COUNT( - 25 ) ) + + + 83 - - 70 * + + 23 * + + 70 col0
----
71
112771

skipif mysql # not compatible
query II rowsort label-3501
SELECT DISTINCT 71, - COALESCE ( 12, + + ( + 19 ), + 19 + + COUNT ( - 25 ) ) + + + 83 - - 70 * + + 23 * + + 70 col0
----
71
112771

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT ALL MIN( 35 ) DIV + 21 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL MIN ( 35 ) / + 21 * + COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT MIN( - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3504
SELECT MIN ( - 81 ) AS col0
----
-81

query I rowsort
SELECT ALL 1 * + 58 + + 39 * + 52
----
2086

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT ALL + - 49 * COUNT( * ) + + 6 col1, 29 AS col1
----
-43
29

skipif mysql # not compatible
query II rowsort label-3506
SELECT ALL + - 49 * COUNT ( * ) + + 6 col1, 29 AS col1
----
-43
29

query I rowsort
SELECT ALL ( - 93 ) * 62 AS col2
----
-5766

query I rowsort
SELECT ALL + - 50 * 5 - - 84 + 39 + + 60
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3509
SELECT ALL 92 * 31 + - - 15, + CAST( - + 74 AS SIGNED ) * + 84 AS col1
----
2867
-6216

skipif mysql # not compatible
query II rowsort label-3509
SELECT ALL 92 * 31 + - - 15, + CAST ( - + 74 AS INTEGER ) * + 84 AS col1
----
2867
-6216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3510
SELECT DISTINCT - 95 AS col0, - 14 / - + CAST( NULL AS SIGNED ) * - 0 / + 13 * - + 17 AS col1
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3510
SELECT DISTINCT - 95 AS col0, - 14 / - + CAST ( NULL AS INTEGER ) * - 0 / + 13 * - + 17 AS col1
----
-95
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT MAX( ALL + - 84 ) + - COUNT( + - 94 ) AS col2, - 8 AS col0
----
-85
-8

skipif mysql # not compatible
query II rowsort label-3512
SELECT MAX ( ALL + - 84 ) + - COUNT ( + - 94 ) AS col2, - 8 AS col0
----
-85
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT + 96 DIV - 70 - - COALESCE ( - 66, 6 + + 83 DIV - - 27 + - 43, - 22, - 82 ) * - 12 + + CASE + SUM( ALL + CASE + + 5 WHEN + 12 THEN NULL ELSE - 81 END ) WHEN - 91 - - + 39 THEN 21 + + 1 ELSE - + COUNT( * ) END AS col1
----
790

skipif mysql # not compatible
query I rowsort label-3513
SELECT + 96 / - 70 - - COALESCE ( - 66, 6 + + 83 / - - 27 + - 43, - 22, - 82 ) * - 12 + + CASE + SUM ( ALL + CASE + + 5 WHEN + 12 THEN NULL ELSE - 81 END ) WHEN - 91 - - + 39 THEN 21 + + 1 ELSE - + COUNT ( * ) END AS col1
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT 80 + COUNT( * ) + - 17
----
64

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT 80 + COUNT ( * ) + - 17
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3515
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) DIV + + 17 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) / + + 17 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 54 * + - 79 col1
----
4266

query I rowsort
SELECT DISTINCT + - 50 * - 15 * + 71 AS col1
----
53250

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

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

query II rowsort
SELECT ALL + 40 * 64 * - + 41, 61 + - - 49 + - + 83 AS col2
----
-104960
27

query I rowsort
SELECT 23 + + 40
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-3521
SELECT - ( 16 ) + + 5 + 7, + 43 DIV 89 * + - 74 AS col0
----
-4
0

skipif mysql # not compatible
query II rowsort label-3521
SELECT - ( 16 ) + + 5 + 7, + 43 / 89 * + - 74 AS col0
----
-4
0

query I rowsort
SELECT ALL 64 - + 17 AS col0
----
47

query I rowsort
SELECT DISTINCT 69 * + - 43
----
-2967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT ALL - + CAST( + + SUM( COALESCE ( + 55, - ( - 11 ) - - 64 ) ) AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - + CAST ( + + SUM ( COALESCE ( + 55, - ( - 11 ) - - 64 ) ) AS INTEGER ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT ALL + COALESCE ( - + 18, - - 45 DIV + 80 + ( + + 88 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + COALESCE ( - + 18, - - 45 / + 80 + ( + + 88 ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + 43 + - 38 + COUNT( ALL + ( - 74 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3526
SELECT + 43 + - 38 + COUNT ( ALL + ( - 74 ) ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT - COALESCE ( - + 6, - CAST( + 37 AS SIGNED ) * - - 97 + - 82 * + 89 )
----
6

skipif mysql # not compatible
query I rowsort label-3527
SELECT - COALESCE ( - + 6, - CAST ( + 37 AS INTEGER ) * - - 97 + - 82 * + 89 )
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-3528
SELECT - 8 + - ( - 13 ) DIV NULLIF ( CASE - 12 WHEN 78 * 65 - + - 21 THEN NULL ELSE - 78 END, - ( + 36 ) ) col0, + 19
----
-8
19

skipif mysql # not compatible
query II rowsort label-3528
SELECT - 8 + - ( - 13 ) / NULLIF ( CASE - 12 WHEN 78 * 65 - + - 21 THEN NULL ELSE - 78 END, - ( + 36 ) ) col0, + 19
----
-8
19

query I rowsort
SELECT - ( - 9 ) + 19
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL CASE 7 WHEN + - 35 THEN - 24 - 70 * - + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL CASE 7 WHEN + - 35 THEN - 24 - 70 * - + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( 88, - ( 83 ) * 56 - - 4 ) AS col0
----
88

query I rowsort
SELECT - 89 + - 91 * + - 71 col1
----
6372

query I rowsort
SELECT DISTINCT COALESCE ( - NULLIF ( - 5, + 22 ), + - 65, + NULLIF ( + 57, - 41 ) ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT - CAST( - 63 AS SIGNED ) + - CASE - - MIN( CAST( NULL AS SIGNED ) ) WHEN CAST( + 74 AS SIGNED ) THEN 83 + 78 END + - 79 + - 61 + - + 74 * + COUNT( * ) * 99 + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT - CAST ( - 63 AS INTEGER ) + - CASE - - MIN ( CAST ( NULL AS INTEGER ) ) WHEN CAST ( + 74 AS INTEGER ) THEN 83 + 78 END + - 79 + - 61 + - + 74 * + COUNT ( * ) * 99 + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL - 15 + - - 45 + 7 * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - 15 + - - 45 + 7 * - COUNT ( * )
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3537
SELECT - ( - - COALESCE ( + CAST( - CASE ( - 23 ) WHEN - COUNT( * ) + - - 16 - - COUNT( * ) * + ( + MIN( + 90 ) ) THEN COUNT( * ) + + 74 + - - 74 + - 59 * - COALESCE ( - + CAST( NULL AS SIGNED ), 4 ) / - 22 / - 97 WHEN - 60 + 7 * + + 96 THEN 11 * - 97 / NULLIF ( ( - CASE + 82 WHEN - 96 + 68 * - + 91 * + - COUNT( 81 ) * 88 + - COUNT( * ) * 97 THEN + 50 END ), COUNT( * ) ) - 82 ELSE NULL END AS SIGNED ), ( + CASE + 71 WHEN MIN( DISTINCT 85 ) * COUNT( * ) THEN - MIN( 13 ) * 10 + + NULLIF ( + COUNT( * ) + - 65 * 99, 48 ) WHEN CAST( + 22 AS SIGNED ) THEN NULL WHEN 81 THEN NULL END ) ) ) - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT - ( - - COALESCE ( + CAST ( - CASE ( - 23 ) WHEN - COUNT ( * ) + - - 16 - - COUNT ( * ) * + ( + MIN ( + 90 ) ) THEN COUNT ( * ) + + 74 + - - 74 + - 59 * - COALESCE ( - + CAST ( NULL AS INTEGER ), 4 ) / - 22 / - 97 WHEN - 60 + 7 * + + 96 THEN 11 * - 97 / NULLIF ( ( - CASE + 82 WHEN - 96 + 68 * - + 91 * + - COUNT ( 81 ) * 88 + - COUNT ( * ) * 97 THEN + 50 END ), COUNT ( * ) ) - 82 ELSE NULL END AS INTEGER ), ( + CASE + 71 WHEN MIN ( DISTINCT 85 ) * COUNT ( * ) THEN - MIN ( 13 ) * 10 + + NULLIF ( + COUNT ( * ) + - 65 * 99, 48 ) WHEN CAST ( + 22 AS INTEGER ) THEN NULL WHEN 81 THEN NULL END ) ) ) - 69 AS col2
----
NULL

query I rowsort
SELECT + 35 + 92
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT ALL COALESCE ( - CAST( + 42 AS SIGNED ), 35 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL COALESCE ( - CAST ( + 42 AS INTEGER ), 35 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + COUNT( * ) + - 68 + - 14 * + 82 * - 22 AS col1
----
25189

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + COUNT ( * ) + - 68 + - 14 * + 82 * - 22 AS col1
----
25189

query I rowsort
SELECT - 0 * - ( - 76 )
----
0

query I rowsort
SELECT DISTINCT + 43 + - 70
----
-27

query I rowsort
SELECT + ( + - 40 ) col1
----
-40

query I rowsort
SELECT - - 5 * + - 82 AS col0
----
-410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3545
SELECT + 99 DIV - 49 + + - COUNT( * ) + - + 81 + - 93 * + ( + + 23 ) - - 35 AS col0
----
-2188

skipif mysql # not compatible
query I rowsort label-3545
SELECT + 99 / - 49 + + - COUNT ( * ) + - + 81 + - 93 * + ( + + 23 ) - - 35 AS col0
----
-2188

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT + COUNT( * ) * - 52 + + - 92
----
-144

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + COUNT ( * ) * - 52 + + - 92
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL + - SUM( ALL + 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL + - SUM ( ALL + 58 ) AS col2
----
-58

query I rowsort
SELECT + + 38 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT + - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT 3 * - + 64 + - 72 + 45 * - 66 + + 66 + - 88 + 70 * - 19 * 31 AS col2
----
-44486

query I rowsort
SELECT + - 40 * ( 22 ) AS col0
----
-880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3552
SELECT + 79 + - - 19 + CASE - 17 WHEN 24 * + - 44 - - 28 THEN NULL WHEN - 16 THEN - - 36 * 30 + 95 ELSE + 98 DIV + + 55 END * + - 72 * + - COUNT( * )
----
170

skipif mysql # not compatible
query I rowsort label-3552
SELECT + 79 + - - 19 + CASE - 17 WHEN 24 * + - 44 - - 28 THEN NULL WHEN - 16 THEN - - 36 * 30 + 95 ELSE + 98 / + + 55 END * + - 72 * + - COUNT ( * )
----
170

query I rowsort
SELECT ALL 8 * + 6
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT DISTINCT 19 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT 19 / + - 81
----
0

query I rowsort
SELECT DISTINCT - 37 * + 11
----
-407

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT 37 * - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT 37 * - COUNT ( * ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT + 66 DIV + + 21
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT + 66 / + + 21
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT ALL COUNT( * ) * 31 DIV + 18 + + + 9 + + 19 * - 15 AS col0
----
-275

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL COUNT ( * ) * 31 / + 18 + + + 9 + + 19 * - 15 AS col0
----
-275

onlyif mysql # aggregate syntax: 
query II rowsort label-3559
SELECT COUNT( * ) AS col0, - SUM( - 23 ) AS col0
----
1
23

skipif mysql # not compatible
query II rowsort label-3559
SELECT COUNT ( * ) AS col0, - SUM ( - 23 ) AS col0
----
1
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT + ( - + 13 ) * + - CAST( - 24 AS SIGNED ) + - ( - 50 ) AS col2
----
-262

skipif mysql # not compatible
query I rowsort label-3560
SELECT + ( - + 13 ) * + - CAST ( - 24 AS INTEGER ) + - ( - 50 ) AS col2
----
-262

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT + 12 + + - 40 DIV - - 50
----
12

skipif mysql # not compatible
query I rowsort label-3561
SELECT + 12 + + - 40 / - - 50
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT + 30 DIV - 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3562
SELECT + 30 / - 23 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3563
SELECT - 36 DIV - CAST( NULL AS SIGNED ) * + 76, 59 DIV + COUNT( * ) AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-3563
SELECT - 36 / - CAST ( NULL AS INTEGER ) * + 76, 59 / + COUNT ( * ) AS col1
----
NULL
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3564
SELECT - 94 - - + CAST( NULL AS DECIMAL ) + + 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 94 - - + CAST ( NULL AS REAL ) + + 96 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT DISTINCT MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT MAX ( + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL + COUNT( * ) + CASE + 46 WHEN + 21 THEN NULL ELSE + - 39 * MIN( ALL + 66 ) * - CAST( - - COUNT( * ) AS SIGNED ) END
----
2575

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + COUNT ( * ) + CASE + 46 WHEN + 21 THEN NULL ELSE + - 39 * MIN ( ALL + 66 ) * - CAST ( - - COUNT ( * ) AS INTEGER ) END
----
2575

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL MIN( DISTINCT 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL MIN ( DISTINCT 61 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT - 35 + - MAX( + 79 ) AS col0, 86
----
-114
86

skipif mysql # not compatible
query II rowsort label-3568
SELECT - 35 + - MAX ( + 79 ) AS col0, 86
----
-114
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT + 86 + 82 + CAST( - 62 AS SIGNED )
----
106

skipif mysql # not compatible
query I rowsort label-3569
SELECT + 86 + 82 + CAST ( - 62 AS INTEGER )
----
106

query I rowsort
SELECT - 70 - - 2
----
-68

query I rowsort
SELECT DISTINCT - + 8 * - 87
----
696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT - 13 + + + CAST( + 95 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-3572
SELECT - 13 + + + CAST ( + 95 AS INTEGER )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT - COUNT( ALL - CAST( + + 69 AS SIGNED ) ) + + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3573
SELECT - COUNT ( ALL - CAST ( + + 69 AS INTEGER ) ) + + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT - COALESCE ( - 13, 69 ) + 58 AS col0
----
71

query I rowsort
SELECT ALL + + ( 15 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT - 25 DIV + 37 + + 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3576
SELECT - 25 / + 37 + + 51 AS col1
----
51

query I rowsort
SELECT DISTINCT - 62 * 37 AS col0
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - - MAX( - 28 ) + + 2 * - - 41
----
54

skipif mysql # not compatible
query I rowsort label-3578
SELECT - - MAX ( - 28 ) + + 2 * - - 41
----
54

query I rowsort
SELECT ALL 2 * 60
----
120

query I rowsort
SELECT ALL + + 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT + + 96 / + ( + AVG ( ALL + 47 ) ) * + 48 + + - 59 * - 92 / - 89 * - - 13 * 63 / + + ( + - 33 ) + + COUNT( * ) + - CASE - + 77 WHEN - ( - + 99 ) * COUNT( * ) THEN - ( 71 ) / - 17 + - 47 WHEN 12 * - - COUNT( * ) * + + 88 + + + 18 * - 41 + + ( - + COUNT( * ) ) * - 83 + + ( - 49 ) THEN NULL END + - - 35 - + CAST( 37 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT + + 96 / + ( + AVG ( ALL + 47 ) ) * + 48 + + - 59 * - 92 / - 89 * - - 13 * 63 / + + ( + - 33 ) + + COUNT ( * ) + - CASE - + 77 WHEN - ( - + 99 ) * COUNT ( * ) THEN - ( 71 ) / - 17 + - 47 WHEN 12 * - - COUNT ( * ) * + + 88 + + + 18 * - 41 + + ( - + COUNT ( * ) ) * - 83 + + ( - 49 ) THEN NULL END + - - 35 - + CAST ( 37 AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( 55, + 61 + 66 * - 10 * - 36, 44 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT 84 * - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-3583
SELECT 84 * - COUNT ( * )
----
-84

query I rowsort
SELECT - 99 + 51
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL - NULLIF ( - - 17, - CAST( NULL AS SIGNED ) ) * - 69
----
1173

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - NULLIF ( - - 17, - CAST ( NULL AS INTEGER ) ) * - 69
----
1173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3586
SELECT + 52 * - 75 - + 37 DIV - - MAX( DISTINCT 82 ) AS col2
----
-3900

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 52 * - 75 - + 37 / - - MAX ( DISTINCT 82 ) AS col2
----
-3900

onlyif mysql # aggregate syntax: 
query II rowsort label-3587
SELECT ALL - COUNT( * ), - 63 AS col1
----
-1
-63

skipif mysql # not compatible
query II rowsort label-3587
SELECT ALL - COUNT ( * ), - 63 AS col1
----
-1
-63

query I rowsort
SELECT ALL 67 + - 9 * - + 83 * 47 AS col1
----
35176

query I rowsort
SELECT ALL - 87 * - 66 AS col0
----
5742

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT ALL - 60 AS col2, 93 + 94 - + + COUNT( * )
----
-60
186

skipif mysql # not compatible
query II rowsort label-3590
SELECT ALL - 60 AS col2, 93 + 94 - + + COUNT ( * )
----
-60
186

query I rowsort
SELECT 99 * ( 22 ) AS col2
----
2178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT ALL 31 + + CAST( - ( 97 ) AS SIGNED ) * 38 AS col0
----
-3655

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL 31 + + CAST ( - ( 97 ) AS INTEGER ) * 38 AS col0
----
-3655

query I rowsort
SELECT DISTINCT 66 + + 94 AS col0
----
160

query II rowsort
SELECT ALL 72 AS col1, 10
----
72
10

query I rowsort
SELECT DISTINCT 83 + + 96
----
179

query I rowsort
SELECT 89 * + 70
----
6230

query II rowsort
SELECT ALL 82, 43 AS col0
----
82
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( * ) * + 40
----
40

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( * ) * + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL - ( - COUNT( * ) ) * ( - 14 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - ( - COUNT ( * ) ) * ( - 14 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT COUNT( * ) + - 11 * - - 32 * + + COUNT( * )
----
-351

skipif mysql # not compatible
query I rowsort label-3600
SELECT COUNT ( * ) + - 11 * - - 32 * + + COUNT ( * )
----
-351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT DISTINCT 82 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT 82 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 92 AS col0, 23 AS col1
----
92
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3603
SELECT ALL COUNT( * ) - + 59 DIV + NULLIF ( - 54, - CAST( NULL AS SIGNED ) DIV + 91 + + + 18 + + 26 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL COUNT ( * ) - + 59 / + NULLIF ( - 54, - CAST ( NULL AS INTEGER ) / + 91 + + + 18 + + 26 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT COUNT( * ) * + 20 AS col2, 11 AS col2
----
20
11

skipif mysql # not compatible
query II rowsort label-3604
SELECT COUNT ( * ) * + 20 AS col2, 11 AS col2
----
20
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3605
SELECT 40 * 23 DIV - - 61
----
15

skipif mysql # not compatible
query I rowsort label-3605
SELECT 40 * 23 / - - 61
----
15

query III rowsort
SELECT - 17 col2, + 16 AS col1, + 60 col0
----
-17
16
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3607
SELECT - 89 - - CASE - 98 WHEN COUNT( * ) DIV + 51 THEN NULL WHEN 91 THEN NULL ELSE - 2 END, - COUNT( * ) DIV + 15 AS col0
----
-91
0

skipif mysql # not compatible
query II rowsort label-3607
SELECT - 89 - - CASE - 98 WHEN COUNT ( * ) / + 51 THEN NULL WHEN 91 THEN NULL ELSE - 2 END, - COUNT ( * ) / + 15 AS col0
----
-91
0

query II rowsort
SELECT 53 AS col2, 29
----
53
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT - ( + 99 ) DIV + - 76
----
1

skipif mysql # not compatible
query I rowsort label-3609
SELECT - ( + 99 ) / + - 76
----
1

query I rowsort
SELECT 52 * + 76 AS col1
----
3952

query I rowsort
SELECT + 81 + + 2 AS col0
----
83

query I rowsort
SELECT ALL NULLIF ( 49, 43 )
----
49

query II rowsort
SELECT 96 AS col2, - 40
----
96
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3614
SELECT ALL - ( - + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - ( - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT CASE + SUM( 24 ) WHEN + ( 50 ) THEN 20 + + 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT CASE + SUM ( 24 ) WHEN + ( 50 ) THEN 20 + + 15 ELSE NULL END
----
NULL

query II rowsort
SELECT + 52 AS col0, - 46 AS col0
----
52
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3617
SELECT ALL - + CAST( NULL AS DECIMAL ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - + CAST ( NULL AS REAL ) * - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT ALL - 67 * 9 DIV - 88 + MIN( - + 74 ) DIV - 91 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 67 * 9 / - 88 + MIN ( - + 74 ) / - 91 AS col1
----
6

query I rowsort
SELECT 62 * + 33 - - 87 + - 89 * 35
----
-982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3620
SELECT + MIN( - - 88 ) AS col1, + CAST( NULL AS SIGNED ) + - + 87, 88 AS col1
----
88
NULL
88

skipif mysql # not compatible
query III rowsort label-3620
SELECT + MIN ( - - 88 ) AS col1, + CAST ( NULL AS INTEGER ) + - + 87, 88 AS col1
----
88
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + COUNT( DISTINCT - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3621
SELECT + COUNT ( DISTINCT - 0 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) * - 44 + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 44 + 38 AS col1
----
NULL

query I rowsort
SELECT 1 * COALESCE ( 74, - ( - 70 ) )
----
74

query I rowsort
SELECT + + NULLIF ( - CASE 1 WHEN - 61 THEN - 48 WHEN - - 88 + + COALESCE ( + 16, - 25, 77 ) * + 2 THEN + + 52 WHEN + 19 THEN NULL END, ( - 58 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 26 + - 94 AS col0
----
-120

query I rowsort
SELECT + + 34 * 93 - - 1 AS col0
----
3163

query I rowsort
SELECT + - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - 57 + - 40 + + + 41 * MAX( + 8 ) - NULLIF ( + 45, - COUNT( + 99 ) + 53 + + - 13 ) AS col1
----
186

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - 57 + - 40 + + + 41 * MAX ( + 8 ) - NULLIF ( + 45, - COUNT ( + 99 ) + 53 + + - 13 ) AS col1
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT ALL - 91 + 41 AS col1, - 86 + 99 + + COUNT( * ) + - + 33
----
-50
-19

skipif mysql # not compatible
query II rowsort label-3629
SELECT ALL - 91 + 41 AS col1, - 86 + 99 + + COUNT ( * ) + - + 33
----
-50
-19

query I rowsort
SELECT ALL + 28 + + + 32 + - 46 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + COUNT( * ) * - + 20 * - + 18 + + - 65
----
295

skipif mysql # not compatible
query I rowsort label-3631
SELECT + COUNT ( * ) * - + 20 * - + 18 + + - 65
----
295

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT ALL + 19 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL + 19 / - + 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT 28 * + CAST( NULL AS SIGNED ) + + ( - 20 ) + - - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT 28 * + CAST ( NULL AS INTEGER ) + + ( - 20 ) + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + ( 97 ), + - 98 + + - 74 ) * - 11
----
-1067

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT 89 + + - ( + COUNT( * ) ) * 28 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3635
SELECT 89 + + - ( + COUNT ( * ) ) * 28 AS col0
----
61

query I rowsort
SELECT 95 * - 60 AS col1
----
-5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3637
SELECT - 0 * + 72 * + 78 + - + 8 DIV + 33, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3637
SELECT - 0 * + 72 * + 78 + - + 8 / + 33, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT - 38 * - COALESCE ( - COUNT( * ), - 27 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - 38 * - COALESCE ( - COUNT ( * ), - 27 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT MIN( DISTINCT 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT MIN ( DISTINCT 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ( + 41 ) + - - 1 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3640
SELECT ( + 41 ) + - - 1 * COUNT ( * )
----
42

query I rowsort
SELECT ALL ( - - 87 ) - 22 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-3642
SELECT COUNT ( * ) * 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3643
SELECT - + CAST( 27 AS SIGNED ) AS col0, - 70 DIV - COUNT( * )
----
-27
70

skipif mysql # not compatible
query II rowsort label-3643
SELECT - + CAST ( 27 AS INTEGER ) AS col0, - 70 / - COUNT ( * )
----
-27
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL - 73 * - ( COUNT( * ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - 73 * - ( COUNT ( * ) ) AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT + 23 + + - 6 DIV + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3645
SELECT + 23 + + - 6 / + COUNT ( * )
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3646
SELECT DISTINCT - ( + ( + NULLIF ( + 16, 57 ) ) ) * - 75 + CAST( + + 81 AS SIGNED ) + 12 + 63 + - 84 - - 80 DIV - 1 AS col1
----
1192

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - ( + ( + NULLIF ( + 16, 57 ) ) ) * - 75 + CAST ( + + 81 AS INTEGER ) + 12 + 63 + - 84 - - 80 / - 1 AS col1
----
1192

query I rowsort
SELECT DISTINCT - 80 * - 82 col0
----
6560

query I rowsort
SELECT ALL - 21 + - 23
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3649
SELECT + - 16 + - ( - 83 ) - 35 * - CAST( NULL AS SIGNED ) * - 28 * - 17 + + 94 * - 87 - + COUNT( * ) + + 47 * + - MAX( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT + - 16 + - ( - 83 ) - 35 * - CAST ( NULL AS INTEGER ) * - 28 * - 17 + + 94 * - 87 - + COUNT ( * ) + + 47 * + - MAX ( - 90 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT + - COALESCE ( - CAST( NULL AS SIGNED ), - 23, + + 63 * 36 + - MIN( ALL 12 ) * - 90 * - COUNT( * ) + - + 40 + COUNT( * ) - + 15 * - 36 ) - + 80 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3650
SELECT + - COALESCE ( - CAST ( NULL AS INTEGER ), - 23, + + 63 * 36 + - MIN ( ALL 12 ) * - 90 * - COUNT ( * ) + - + 40 + COUNT ( * ) - + 15 * - 36 ) - + 80 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - + SUM( ALL - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3651
SELECT - + SUM ( ALL - 59 )
----
59

query I rowsort
SELECT ALL - NULLIF ( - 65, 0 ) AS col2
----
65

query II rowsort
SELECT - + 36 * - 44 + 23, 27 col1
----
1607
27

query I rowsort
SELECT + - 66 * 73 + 95
----
-4723

query I rowsort
SELECT ALL - - 45 * 20 + 90
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT - 3 * - CAST( NULL AS SIGNED ) * - 58 + + COUNT( * ) + + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT - 3 * - CAST ( NULL AS INTEGER ) * - 58 + + COUNT ( * ) + + + 54
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3657
SELECT 33 / 17 + + 78 - 9 + + 84 / - CAST( NULL AS DECIMAL ) * + ( + ( + - 0 ) ) * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT 33 / 17 + + 78 - 9 + + 84 / - CAST ( NULL AS REAL ) * + ( + ( + - 0 ) ) * + 30
----
NULL

query II rowsort
SELECT DISTINCT + 41, + 97 AS col0
----
41
97

query I rowsort
SELECT ALL + 33 * + - 49 AS col0
----
-1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3660
SELECT + COALESCE ( COUNT( * ), SUM( ALL - + 78 ), 58 * 99 + - COUNT( + + 25 ) DIV + 67 ) * 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3660
SELECT + COALESCE ( COUNT ( * ), SUM ( ALL - + 78 ), 58 * 99 + - COUNT ( + + 25 ) / + 67 ) * 34 AS col0
----
34

query II rowsort
SELECT - 19 + - + 51 * - 89 AS col2, - 95 + - 80 AS col2
----
4520
-175

query I rowsort
SELECT + ( 18 )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3663
SELECT + 14 AS col0, 1 + - 6 + - 54 * - 70 * ( + 38 ) + 64 * 92 + - COUNT( - 99 )
----
14
149522

skipif mysql # not compatible
query II rowsort label-3663
SELECT + 14 AS col0, 1 + - 6 + - 54 * - 70 * ( + 38 ) + 64 * 92 + - COUNT ( - 99 )
----
14
149522

query I rowsort
SELECT ALL + 11 * + + 46 - - ( 99 ) + - 79 AS col2
----
526

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT 71 * - 58 - + 3 - 89 + + MAX( ALL - - 51 ) * + 61 AS col2
----
-1099

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT 71 * - 58 - + 3 - 89 + + MAX ( ALL - - 51 ) * + 61 AS col2
----
-1099

query II rowsort
SELECT DISTINCT + 28 * 52 * - 60 - - 74 * - - 70 + - 60, + 16 + - + 55 AS col0
----
-82240
-39

query I rowsort
SELECT - 53 * 54 AS col0
----
-2862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT - 24 - 27 * - 55 + - COUNT( * ) DIV - 56 DIV - - CASE WHEN NOT NULL IS NOT NULL THEN + 17 END + - 69 AS col2
----
1392

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 24 - 27 * - 55 + - COUNT ( * ) / - 56 / - - CASE WHEN NOT NULL IS NOT NULL THEN + 17 END + - 69 AS col2
----
1392

query I rowsort
SELECT - 17 * 34
----
-578

query I rowsort
SELECT DISTINCT + 53 * 53
----
2809

query I rowsort
SELECT ALL ( - 21 ) AS col0
----
-21

query I rowsort
SELECT - 93 * - 22 * + - 41 AS col0
----
-83886

query I rowsort
SELECT ALL COALESCE ( - 16, 92 + - ( - - 6 ) )
----
-16

query I rowsort
SELECT DISTINCT + 44 * - 89 + 89
----
-3827

query I rowsort
SELECT DISTINCT + ( - - 58 ) * + 86
----
4988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3676
SELECT DISTINCT + 10 AS col2, - 79 + 23 - + COUNT( * ) + 35 / + 0 * CAST( NULL AS SIGNED )
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3676
SELECT DISTINCT + 10 AS col2, - 79 + 23 - + COUNT ( * ) + 35 / + 0 * CAST ( NULL AS INTEGER )
----
10
NULL

query I rowsort
SELECT - + 6 + + 88 AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3678
SELECT DISTINCT + CAST( 86 AS SIGNED ) * - + 55 AS col0, NULLIF ( 22, - 73 )
----
-4730
22

skipif mysql # not compatible
query II rowsort label-3678
SELECT DISTINCT + CAST ( 86 AS INTEGER ) * - + 55 AS col0, NULLIF ( 22, - 73 )
----
-4730
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT - CAST( 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-3679
SELECT - CAST ( 73 AS INTEGER )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3680
SELECT ALL + - 47 + + 47 DIV + + 98 + + 96
----
49

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + - 47 + + 47 / + + 98 + + 96
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + MIN( + 25 ) + - + 25 + + CASE - 80 WHEN - 52 THEN COUNT( ALL - 63 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT + MIN ( + 25 ) + - + 25 + + CASE - 80 WHEN - 52 THEN COUNT ( ALL - 63 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 37, + 44 - 44 AS col1
----
-37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + SUM( - + 38 ) + + - 9 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3683
SELECT + SUM ( - + 38 ) + + - 9 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL 35 + + + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL 35 + + + COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL + - CAST( + SUM( ALL - 90 ) AS SIGNED ) + + 2 + - COUNT( * ) + + SUM( ALL 88 ) * 31 * - 56 * 7 AS col1
----
-1069285

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + - CAST ( + SUM ( ALL - 90 ) AS INTEGER ) + + 2 + - COUNT ( * ) + + SUM ( ALL 88 ) * 31 * - 56 * 7 AS col1
----
-1069285

query I rowsort
SELECT + - 79 * CASE 87 WHEN - 46 THEN NULL ELSE - 20 END
----
1580

query I rowsort
SELECT DISTINCT - 68 * 34
----
-2312

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL 62 + + + ( - COUNT( * ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL 62 + + + ( - COUNT ( * ) ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL - - 42 + - - SUM( 80 ) AS col1, 4 * 61 AS col0
----
122
244

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL - - 42 + - - SUM ( 80 ) AS col1, 4 * 61 AS col0
----
122
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT ALL - CAST( NULL AS SIGNED ) + - - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 48 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 49 * - 66 AS col0
----
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT + 14 DIV + + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3692
SELECT + 14 / + + 23 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3693
SELECT + 19 DIV + 2 AS col1, 98 DIV + 69
----
9
1

skipif mysql # not compatible
query II rowsort label-3693
SELECT + 19 / + 2 AS col1, 98 / + 69
----
9
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT ALL - 17 DIV - 83 * - + COUNT( - 89 ) - - 23 + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL - 17 / - 83 * - + COUNT ( - 89 ) - - 23 + COUNT ( * )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT CAST( 99 AS SIGNED ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3695
SELECT CAST ( 99 AS INTEGER ) AS col0
----
99

query I rowsort
SELECT DISTINCT 13 * + - 29
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ALL + MIN( - + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + MIN ( - + 82 ) AS col1
----
-82

query I rowsort
SELECT ( - - 17 ) AS col0
----
17

query II rowsort
SELECT ALL ( + - 4 ) * 65 + 52, - 5 * - COALESCE ( 14, - 51 + + 50 ) * - 14 * 94 AS col0
----
-208
-92120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT 2 * - + CAST( + 64 AS SIGNED ) + - ( - - 93 ) col1
----
-221

skipif mysql # not compatible
query I rowsort label-3700
SELECT 2 * - + CAST ( + 64 AS INTEGER ) + - ( - - 93 ) col1
----
-221

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT + 76 + - + 40 AS col2, ( 86 ) * + SUM( - - 91 ) + + 37
----
36
7863

skipif mysql # not compatible
query II rowsort label-3701
SELECT + 76 + - + 40 AS col2, ( 86 ) * + SUM ( - - 91 ) + + 37
----
36
7863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL + CAST( - - ( - 33 ) AS SIGNED ) * 1 * + 17
----
-561

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + CAST ( - - ( - 33 ) AS INTEGER ) * 1 * + 17
----
-561

query II rowsort
SELECT - - 35 * + - 43, 68 AS col1
----
-1505
68

query I rowsort
SELECT 96 + - 62 AS col1
----
34

query I rowsort
SELECT ALL ( + 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT - MAX( 80 ), - COUNT( * ) AS col1
----
-80
-1

skipif mysql # not compatible
query II rowsort label-3706
SELECT - MAX ( 80 ), - COUNT ( * ) AS col1
----
-80
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT - 67 DIV + 9 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3707
SELECT - 67 / + 9 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT - - ( - 84 ), - COALESCE ( 8, - 72 - + COUNT( * ) ) AS col0
----
-84
-8

skipif mysql # not compatible
query II rowsort label-3708
SELECT - - ( - 84 ), - COALESCE ( 8, - 72 - + COUNT ( * ) ) AS col0
----
-84
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT COUNT( * ) * + 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3709
SELECT COUNT ( * ) * + 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3710
SELECT DISTINCT + 88 + + ( - - COUNT( DISTINCT - 0 ) ) * 39 AS col1, - SUM( - 49 ) * + 26 - + + 35
----
127
1239

skipif mysql # not compatible
query II rowsort label-3710
SELECT DISTINCT + 88 + + ( - - COUNT ( DISTINCT - 0 ) ) * 39 AS col1, - SUM ( - 49 ) * + 26 - + + 35
----
127
1239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3711
SELECT ALL - 30 * 59 DIV COUNT( * ) AS col0
----
-1770

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - 30 * 59 / COUNT ( * ) AS col0
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT + 72 * + - COUNT( * ) + 97 * + + 28 + + 13 * - 44
----
2072

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + 72 * + - COUNT ( * ) + 97 * + + 28 + + 13 * - 44
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3713
SELECT ALL + COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL + COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + 16 - + MAX( ALL 75 ) + 74 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3714
SELECT + 16 - + MAX ( ALL 75 ) + 74 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT - - ( + + COUNT( - 27 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3715
SELECT - - ( + + COUNT ( - 27 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL ( 59 ) + + + 75 + + + 20 - - - 28 * + ( - CAST( + + COUNT( * ) AS SIGNED ) ) AS col0
----
182

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL ( 59 ) + + + 75 + + + 20 - - - 28 * + ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0
----
182

query I rowsort
SELECT - ( + ( - 18 ) )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT 55 + - - CAST( NULL AS SIGNED ) / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT 55 + - - CAST ( NULL AS INTEGER ) / 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT 14 * - 38 DIV 94 DIV + 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT 14 * - 38 / 94 / + 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT 25 - MAX( + 51 )
----
-26

skipif mysql # not compatible
query I rowsort label-3720
SELECT 25 - MAX ( + 51 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL 2 - + 1 * 4 * + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL 2 - + 1 * 4 * + - COUNT ( * )
----
6

query I rowsort
SELECT 95 * 49
----
4655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT 5 + - COALESCE ( - 89, - - 53 * - COUNT( * ) ) DIV + - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3723
SELECT 5 + - COALESCE ( - 89, - - 53 * - COUNT ( * ) ) / + - COUNT ( * ) AS col1
----
-84

query I rowsort
SELECT 8 * - 70 * 98
----
-54880

query II rowsort
SELECT ALL 54 * + 14 * 41 AS col1, COALESCE ( + 55, - 56 * + 68 ) * - ( - 99 )
----
30996
5445

query I rowsort
SELECT 15 + + 60
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL - COUNT( DISTINCT + + 65 ) - - NULLIF ( 98, - SUM( 13 ) + + - 49 + - 2 / - ( - COALESCE ( + 12, + 33 ) ) * - 97 ) - 73 + + 72 * + + 95 AS col0
----
6864

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - COUNT ( DISTINCT + + 65 ) - - NULLIF ( 98, - SUM ( 13 ) + + - 49 + - 2 / - ( - COALESCE ( + 12, + 33 ) ) * - 97 ) - 73 + + 72 * + + 95 AS col0
----
6864

query I rowsort
SELECT ALL - ( - + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT 98 * + COUNT( * ) * - 4 * 84 AS col1
----
-32928

skipif mysql # not compatible
query I rowsort label-3729
SELECT 98 * + COUNT ( * ) * - 4 * 84 AS col1
----
-32928

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT 7 DIV + 30 + + 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3730
SELECT 7 / + 30 + + 32 AS col0
----
32

query I rowsort
SELECT ALL 18 * - + 60
----
-1080

query II rowsort
SELECT 56 AS col1, + 47
----
56
47

query I rowsort
SELECT 24 * - - NULLIF ( - + 7, - 83 + - + 93 ) * + 88 + - 64
----
-14848

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ( SUM( ALL - 6 ) ) * - 53 AS col1
----
318

skipif mysql # not compatible
query I rowsort label-3734
SELECT ( SUM ( ALL - 6 ) ) * - 53 AS col1
----
318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3735
SELECT ALL ( ( + 41 ) ) + - - COUNT( - 99 ) * + - 50 col1, + 58 + + CAST( NULL AS SIGNED ) * + + 64 + - 57
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3735
SELECT ALL ( ( + 41 ) ) + - - COUNT ( - 99 ) * + - 50 col1, + 58 + + CAST ( NULL AS INTEGER ) * + + 64 + - 57
----
-9
NULL

query I rowsort
SELECT ALL 41 + + 32 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT - COALESCE ( + ( - 45 ), + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT - COALESCE ( + ( - 45 ), + COUNT ( * ) )
----
45

query II rowsort
SELECT DISTINCT - 88, 84 AS col2
----
-88
84

query II rowsort
SELECT + 97 AS col2, ( - 40 ) - + 32 AS col1
----
97
-72

query II rowsort
SELECT + 14 AS col2, 98 AS col1
----
14
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3741
SELECT ALL 68 + - 61 + - 93 + - + CAST( NULL AS DECIMAL ) * 89 - COUNT( + + 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL 68 + - 61 + - 93 + - + CAST ( NULL AS REAL ) * 89 - COUNT ( + + 28 ) AS col2
----
NULL

query I rowsort
SELECT - ( + 85 ) - + 98 AS col2
----
-183

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT ALL 95 * 33 DIV + 15 + 64
----
273

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 95 * 33 / + 15 + 64
----
273

query I rowsort
SELECT + 34 + 88 AS col1
----
122

query I rowsort
SELECT ALL + CASE - 31 WHEN - 71 + - 77 + + - 54 * - 15 THEN + 71 WHEN - + 67 THEN + 3 + + - 17 + + 62 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - - ( - COUNT( + - 41 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3746
SELECT - - ( - COUNT ( + - 41 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT MAX( DISTINCT + + 49 ) + + COUNT( * ) * + 3 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT MAX ( DISTINCT + + 49 ) + + COUNT ( * ) * + 3 AS col1
----
52

query I rowsort
SELECT ALL - ( - 16 ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT + 71 * 73 DIV + 2 + + 34
----
2625

skipif mysql # not compatible
query I rowsort label-3749
SELECT + 71 * 73 / + 2 + + 34
----
2625

query I rowsort
SELECT 44 + - + 99 AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT + - COUNT( DISTINCT 0 ) - + ( - - CASE + CASE + 37 WHEN 59 THEN + SUM( - - CAST( - 62 AS SIGNED ) ) + + + 27 * + + NULLIF ( 56, + CAST( NULL AS SIGNED ) ) WHEN - 58 + - 72 + + 69 + + 47 * 77 / + COUNT( - 12 ) THEN 5 WHEN COUNT( * ) + - 97 THEN - - 68 - + 36 END WHEN - + COUNT( * ) * - 13 + - 31 * + 36 + 63 - + 90 - + ( - SUM( + 81 ) ) THEN + 20 + + 64 / CASE 75 WHEN + - 49 - SUM( ALL 89 ) THEN CAST( + 43 AS SIGNED ) ELSE NULL END WHEN 45 * - MIN( + 37 ) THEN + COUNT( * ) * 91 END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT + - COUNT ( DISTINCT 0 ) - + ( - - CASE + CASE + 37 WHEN 59 THEN + SUM ( - - CAST ( - 62 AS INTEGER ) ) + + + 27 * + + NULLIF ( 56, + CAST ( NULL AS INTEGER ) ) WHEN - 58 + - 72 + + 69 + + 47 * 77 / + COUNT ( - 12 ) THEN 5 WHEN COUNT ( * ) + - 97 THEN - - 68 - + 36 END WHEN - + COUNT ( * ) * - 13 + - 31 * + 36 + 63 - + 90 - + ( - SUM ( + 81 ) ) THEN + 20 + + 64 / CASE 75 WHEN + - 49 - SUM ( ALL 89 ) THEN CAST ( + 43 AS INTEGER ) ELSE NULL END WHEN 45 * - MIN ( + 37 ) THEN + COUNT ( * ) * 91 END ) + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT - 67 DIV + 52 + + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-3752
SELECT - 67 / + 52 + + - 44
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT DISTINCT - + 37 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT - + 37 / - 77 AS col1
----
0

query I rowsort
SELECT DISTINCT - 56 * + 40
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL SUM( ALL ( + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL SUM ( ALL ( + 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT DISTINCT - 84 * - COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - 84 * - COUNT ( * ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT COUNT( ALL + + ( + 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT COUNT ( ALL + + ( + 55 ) )
----
1

query II rowsort
SELECT DISTINCT 58 AS col1, - 77 + + - 15 AS col0
----
58
-92

query II rowsort
SELECT 95 - + 95 AS col1, - 27
----
0
-27

query I rowsort
SELECT COALESCE ( 24, + 34 + + 40 )
----
24

query I rowsort
SELECT DISTINCT - ( - - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT COALESCE ( - + 92, + ( - COUNT( * ) ) * - + 4 )
----
-92

skipif mysql # not compatible
query I rowsort label-3762
SELECT COALESCE ( - + 92, + ( - COUNT ( * ) ) * - + 4 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + MIN( ALL 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3763
SELECT + MIN ( ALL 13 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT COUNT( * ) AS col2, - 65
----
1
-65

skipif mysql # not compatible
query II rowsort label-3764
SELECT COUNT ( * ) AS col2, - 65
----
1
-65

query I rowsort
SELECT 33 * - 37 AS col1
----
-1221

query I rowsort
SELECT ALL 89 * 97 + + + 93 * 97
----
17654

query I rowsort
SELECT 3 * 83 * + ( 69 ) * CASE + ( AVG ( ALL + 6 ) ) WHEN + 80 THEN + 15 END - 63
----
NULL

query II rowsort
SELECT ALL + 20 AS col0, 51
----
20
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT MIN( ALL + 51 ), - COUNT( * ) AS col2
----
51
-1

skipif mysql # not compatible
query II rowsort label-3769
SELECT MIN ( ALL + 51 ), - COUNT ( * ) AS col2
----
51
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT COUNT( DISTINCT + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-3770
SELECT COUNT ( DISTINCT + 79 )
----
1

query I rowsort
SELECT ALL 32 * + 41 + + + 63 AS col0
----
1375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT - - 21 * - - 79 * - CAST( NULL AS SIGNED ) * + 72 / - + 58 * CAST( NULL AS SIGNED ) * - 36 + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT - - 21 * - - 79 * - CAST ( NULL AS INTEGER ) * + 72 / - + 58 * CAST ( NULL AS INTEGER ) * - 36 + - + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT + 54 AS col0, - 38
----
54
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - + 74 + - + MAX( 94 )
----
-168

skipif mysql # not compatible
query I rowsort label-3774
SELECT - + 74 + - + MAX ( 94 )
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3775
SELECT + - SUM( DISTINCT - + 64 ) * CAST( - 31 AS SIGNED ) + - + 83 - 9 AS col2
----
-2076

skipif mysql # not compatible
query I rowsort label-3775
SELECT + - SUM ( DISTINCT - + 64 ) * CAST ( - 31 AS INTEGER ) + - + 83 - 9 AS col2
----
-2076

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3776
SELECT ALL + CAST( NULL AS DECIMAL ), - 7 + + 85 + - + CAST( - ( + COALESCE ( - + 88, + 35, 84 + - 57 ) ) AS SIGNED ) AS col1
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL + CAST ( NULL AS REAL ), - 7 + + 85 + - + CAST ( - ( + COALESCE ( - + 88, + 35, 84 + - 57 ) ) AS INTEGER ) AS col1
----
NULL
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3777
SELECT + 16 AS col0, - CAST( 63 AS SIGNED ) - 28
----
16
-91

skipif mysql # not compatible
query II rowsort label-3777
SELECT + 16 AS col0, - CAST ( 63 AS INTEGER ) - 28
----
16
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT + + MAX( DISTINCT + 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + + MAX ( DISTINCT + 73 ) col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT ALL + 14 + - CAST( NULL AS SIGNED ) * - + 97 * - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + 14 + - CAST ( NULL AS INTEGER ) * - + 97 * - + 72
----
NULL

query I rowsort
SELECT + 76 * - 18
----
-1368

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3781
SELECT + MAX( ALL + 51 ) * + 70 / ( CAST( NULL AS DECIMAL ) ) + + - 48 + - + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT + MAX ( ALL + 51 ) * + 70 / ( CAST ( NULL AS REAL ) ) + + - 48 + - + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + + SUM( ALL - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + + SUM ( ALL - + 69 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT + 3 + + MIN( DISTINCT + CAST( - ( 33 ) AS SIGNED ) ) * + - 41 * 37 + 94
----
50158

skipif mysql # not compatible
query I rowsort label-3783
SELECT + 3 + + MIN ( DISTINCT + CAST ( - ( 33 ) AS INTEGER ) ) * + - 41 * 37 + 94
----
50158

query I rowsort
SELECT + + 31 + 87
----
118

query II rowsort
SELECT + + 67 * - + 0, 76 + 83 col0
----
0
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT + - ( + - CAST( NULL AS SIGNED ) ) + CASE + MIN( ALL 44 ) WHEN - - 89 * + 38 THEN NULLIF ( - ( + 84 ), - ( 10 ) - CASE + - 55 WHEN + 66 THEN NULL WHEN - - 37 THEN - 67 END + - - 86 ) WHEN - 10 * + - 5 - + 97 THEN NULL ELSE - 39 / + 88 + + + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + - ( + - CAST ( NULL AS INTEGER ) ) + CASE + MIN ( ALL 44 ) WHEN - - 89 * + 38 THEN NULLIF ( - ( + 84 ), - ( 10 ) - CASE + - 55 WHEN + 66 THEN NULL WHEN - - 37 THEN - 67 END + - - 86 ) WHEN - 10 * + - 5 - + 97 THEN NULL ELSE - 39 / + 88 + + + 93 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3787
SELECT + 28, + CAST( - MIN( + 77 ) AS SIGNED ) AS col0
----
28
-77

skipif mysql # not compatible
query II rowsort label-3787
SELECT + 28, + CAST ( - MIN ( + 77 ) AS INTEGER ) AS col0
----
28
-77

query II rowsort
SELECT - + 82, + 4 AS col1
----
-82
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3789
SELECT + - CAST( NULL AS SIGNED ) * - COUNT( * ) + + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + + 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT DISTINCT COUNT( - ( - + 69 ) ) * + + ( + 20 ) * 40, + 76 * COUNT( * ) * - 71 AS col0
----
800
-5396

skipif mysql # not compatible
query II rowsort label-3790
SELECT DISTINCT COUNT ( - ( - + 69 ) ) * + + ( + 20 ) * 40, + 76 * COUNT ( * ) * - 71 AS col0
----
800
-5396

query II rowsort
SELECT ALL 74 AS col2, - 62
----
74
-62

query II rowsort
SELECT + 61 + + + 11 AS col2, 9 + - + 96 AS col2
----
72
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3793
SELECT ALL CASE + 23 WHEN + - COUNT( * ) * - CAST( + + CASE + 85 WHEN - 36 THEN + 76 * - 1 - - + 92 ELSE + + 61 * + COUNT( * ) * - NULLIF ( + 29, - - AVG ( 61 ) * - - COUNT( * ) ) + - 84 + - 72 * 66 END AS DECIMAL ) / + - 58 THEN NULL WHEN + + 31 THEN - - 26 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL CASE + 23 WHEN + - COUNT ( * ) * - CAST ( + + CASE + 85 WHEN - 36 THEN + 76 * - 1 - - + 92 ELSE + + 61 * + COUNT ( * ) * - NULLIF ( + 29, - - AVG ( 61 ) * - - COUNT ( * ) ) + - 84 + - 72 * 66 END AS REAL ) / + - 58 THEN NULL WHEN + + 31 THEN - - 26 END AS col0
----
NULL

query I rowsort
SELECT - 37 * 77 AS col2
----
-2849

query I rowsort
SELECT + 25 + + - 8 - + 5 * - 20 * - + 29 * + - 74 * - 96 * + 3
----
-61804783

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT + 1 + + + NULLIF ( + - 20, MAX( ALL - - 82 ) ) - + + 31
----
-50

skipif mysql # not compatible
query I rowsort label-3796
SELECT + 1 + + + NULLIF ( + - 20, MAX ( ALL - - 82 ) ) - + + 31
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - COUNT( * ) - + + 61 * + 13
----
-794

skipif mysql # not compatible
query I rowsort label-3797
SELECT - COUNT ( * ) - + + 61 * + 13
----
-794

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3798
SELECT + 77 + 31 * - 96 * - 93 * - CAST( NULL AS SIGNED ) AS col1, 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3798
SELECT + 77 + 31 * - 96 * - 93 * - CAST ( NULL AS INTEGER ) AS col1, 63 AS col2
----
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT - 83 + 92 + - COUNT( + 49 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 83 + 92 + - COUNT ( + 49 ) AS col0
----
8

query I rowsort
SELECT ALL + 7 + + + 58
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT ALL ( COUNT( * ) ) DIV - COUNT( DISTINCT - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL ( COUNT ( * ) ) / - COUNT ( DISTINCT - - 66 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3802
SELECT ALL - 31 DIV - 41 + - - COUNT( * ), - 89 AS col0
----
1
-89

skipif mysql # not compatible
query II rowsort label-3802
SELECT ALL - 31 / - 41 + - - COUNT ( * ), - 89 AS col0
----
1
-89

query I rowsort
SELECT 8 * + 2 + 37 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT - 99 + + - 10 * + 60 * 20 + + 9 * + - COUNT( * ) + - - ( 59 )
----
-12049

skipif mysql # not compatible
query I rowsort label-3804
SELECT - 99 + + - 10 * + 60 * 20 + + 9 * + - COUNT ( * ) + - - ( 59 )
----
-12049

query I rowsort
SELECT - 11 * - 86
----
946

query I rowsort
SELECT + + ( 94 ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT ALL + 95 * - CASE - - 32 WHEN - MIN( 18 ) + MAX( - CAST( - 15 AS SIGNED ) ) + + + COUNT( * ) + - - COUNT( * ) THEN 95 ELSE NULL END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + 95 * - CASE - - 32 WHEN - MIN ( 18 ) + MAX ( - CAST ( - 15 AS INTEGER ) ) + + + COUNT ( * ) + - - COUNT ( * ) THEN 95 ELSE NULL END + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT - 73 DIV - 14 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3808
SELECT - 73 / - 14 + - COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3809
SELECT ALL NULLIF ( CAST( - 51 AS SIGNED ), 65 ) * - 66 - + + CAST( NULL AS SIGNED ) * - + 82 AS col1, + CAST( + - 57 AS SIGNED ) AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-3809
SELECT ALL NULLIF ( CAST ( - 51 AS INTEGER ), 65 ) * - 66 - + + CAST ( NULL AS INTEGER ) * - + 82 AS col1, + CAST ( + - 57 AS INTEGER ) AS col1
----
NULL
-57

query I rowsort
SELECT + ( - + 55 )
----
-55

query I rowsort
SELECT - - 2 - - - 66 + - 96
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3812
SELECT ALL + 91 * COUNT( * ) * CAST( + 70 AS SIGNED ) DIV + 9 col2, 35
----
707
35

skipif mysql # not compatible
query II rowsort label-3812
SELECT ALL + 91 * COUNT ( * ) * CAST ( + 70 AS INTEGER ) / + 9 col2, 35
----
707
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - COUNT( * ) * - + 75 * - 42 * - ( + 16 ) AS col0
----
50400

skipif mysql # not compatible
query I rowsort label-3813
SELECT - COUNT ( * ) * - + 75 * - 42 * - ( + 16 ) AS col0
----
50400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3814
SELECT - + COUNT( * ) - + 11 AS col0, - 95 DIV - 84
----
-12
1

skipif mysql # not compatible
query II rowsort label-3814
SELECT - + COUNT ( * ) - + 11 AS col0, - 95 / - 84
----
-12
1

query I rowsort
SELECT ALL + 47 * + 74 * + 62 * + 96 AS col0
----
20701056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3816
SELECT - COALESCE ( 56, + 50, - - 63 ) * COUNT( * ) * - - CAST( NULL AS SIGNED ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT - COALESCE ( 56, + 50, - - 63 ) * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + COUNT( * ) - - COALESCE ( MIN( ALL - + ( 6 ) ), + 49, - MIN( ALL 47 ) + + + 43 ) + - 94 + 96 * + 83 + - + 18
----
7851

skipif mysql # not compatible
query I rowsort label-3817
SELECT + COUNT ( * ) - - COALESCE ( MIN ( ALL - + ( 6 ) ), + 49, - MIN ( ALL 47 ) + + + 43 ) + - 94 + 96 * + 83 + - + 18
----
7851

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - COUNT( - + 57 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3818
SELECT - COUNT ( - + 57 ) AS col0
----
-1

query I rowsort
SELECT - COALESCE ( - - 36, - 94, + 56 )
----
-36

query I rowsort
SELECT + 13 * - 70
----
-910

query I rowsort
SELECT + 31 + + + 7
----
38

query II rowsort
SELECT DISTINCT 54 AS col0, 36
----
54
36

query I rowsort
SELECT ALL 95 + + 81 AS col2
----
176

query I rowsort
SELECT + 77 * 81
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL ( COUNT( * ) ) + 61 * - 50 col0
----
-3049

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL ( COUNT ( * ) ) + 61 * - 50 col0
----
-3049

query I rowsort
SELECT DISTINCT COALESCE ( 29, - - 86, + - 82 ) * + - 64 * 13 AS col2
----
-24128

query I rowsort
SELECT DISTINCT NULLIF ( - + ( - 7 ), + 31 * + 34 ) AS col0
----
7

query II rowsort
SELECT - 81, 22 * - - 21 + - 7 AS col0
----
-81
455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3829
SELECT + 36 col2, CASE + 12 WHEN - 77 + - 7 + 86 * - 81 - + 37 THEN 45 * + 39 + + + CAST( NULL AS SIGNED ) + - 21 WHEN - 80 * + + 29 + - 37 - + 67 * - + 31 THEN - 82 * - 85 - 32 WHEN + + 75 * + + 6 * 85 THEN NULL ELSE NULL END col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-3829
SELECT + 36 col2, CASE + 12 WHEN - 77 + - 7 + 86 * - 81 - + 37 THEN 45 * + 39 + + + CAST ( NULL AS INTEGER ) + - 21 WHEN - 80 * + + 29 + - 37 - + 67 * - + 31 THEN - 82 * - 85 - 32 WHEN + + 75 * + + 6 * 85 THEN NULL ELSE NULL END col1
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT COUNT( * ) + 0 + - 35 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3830
SELECT COUNT ( * ) + 0 + - 35 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT ALL + 77 - + + COUNT( - + 28 ) + + - 88 AS col2, 7
----
-12
7

skipif mysql # not compatible
query II rowsort label-3831
SELECT ALL + 77 - + + COUNT ( - + 28 ) + + - 88 AS col2, 7
----
-12
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( * ) * + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( * ) * + 62 AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3833
SELECT ALL + 36 DIV + + 13 DIV - NULLIF ( + COUNT( * ), - - 18 + + 38 ) + - 35 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL + 36 / + + 13 / - NULLIF ( + COUNT ( * ), - - 18 + + 38 ) + - 35 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT ALL - 72 * + ( 42 ) AS col1, 58 - - + 71 * - 95 + - COUNT( * ) - 95 + + 87 + - 13
----
-3024
-6709

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL - 72 * + ( 42 ) AS col1, 58 - - + 71 * - 95 + - COUNT ( * ) - 95 + + 87 + - 13
----
-3024
-6709

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3835
SELECT ALL - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT 50 * + + 5 * + CAST( NULL AS SIGNED ) * - - MAX( ALL ( - - 92 ) ) * 17 * 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT 50 * + + 5 * + CAST ( NULL AS INTEGER ) * - - MAX ( ALL ( - - 92 ) ) * 17 * 28 col0
----
NULL

query I rowsort
SELECT + 71 + - 32
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT ALL + 11 * - + 32 + - - COUNT( * ), + 31 * 17 AS col2
----
-351
527

skipif mysql # not compatible
query II rowsort label-3838
SELECT ALL + 11 * - + 32 + - - COUNT ( * ), + 31 * 17 AS col2
----
-351
527

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT 96 * - 42 * + SUM( + 58 ) col2
----
-233856

skipif mysql # not compatible
query I rowsort label-3839
SELECT 96 * - 42 * + SUM ( + 58 ) col2
----
-233856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT + 98 * + + CAST( NULL AS SIGNED ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT + 98 * + + CAST ( NULL AS INTEGER ) + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - 38 + + MIN( 89 )
----
51

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 38 + + MIN ( 89 )
----
51

query I rowsort
SELECT - - 18 * + - 22 - + 38
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT MIN( 15 ) * NULLIF ( + 6, - 17 + - + 31 )
----
90

skipif mysql # not compatible
query I rowsort label-3843
SELECT MIN ( 15 ) * NULLIF ( + 6, - 17 + - + 31 )
----
90

query I rowsort
SELECT DISTINCT - + ( - 55 ) AS col1
----
55

query II rowsort
SELECT ALL - 78 AS col1, 87 AS col1
----
-78
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT + COUNT( * ), - 26 * - + 85 AS col2
----
1
2210

skipif mysql # not compatible
query II rowsort label-3846
SELECT + COUNT ( * ), - 26 * - + 85 AS col2
----
1
2210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT ALL + - 18 DIV 50 DIV 23 + COUNT( * ) + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + - 18 / 50 / 23 + COUNT ( * ) + ( COUNT ( * ) )
----
2

query II rowsort
SELECT + 74 col0, 13
----
74
13

query I rowsort
SELECT ALL + + 93 * - + 26 - + ( - 35 ) + + + 95 * - 90 * - 92 AS col1
----
784217

query I rowsort
SELECT 99 * + 76
----
7524

query I rowsort
SELECT DISTINCT - - 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + MIN( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-3852
SELECT + MIN ( DISTINCT - 53 )
----
-53

query I rowsort
SELECT ALL + - 26 * - 38 col2
----
988

query I rowsort
SELECT 5 + + 52
----
57

query I rowsort
SELECT DISTINCT - 35 * + - 63 * - + 19
----
-41895

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT COUNT( * ) + - + 98 + - 96
----
-193

skipif mysql # not compatible
query I rowsort label-3856
SELECT COUNT ( * ) + - + 98 + - 96
----
-193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3857
SELECT ALL 42 DIV + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL 42 / + COUNT ( * ) AS col1
----
42

query I rowsort
SELECT 49 + + + 44 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - NULLIF ( + 49, - + 46 ) + + COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - NULLIF ( + 49, - + 46 ) + + COUNT ( * ) col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT 30 + COUNT( * ), NULLIF ( 34, + 44 ) AS col1
----
31
34

skipif mysql # not compatible
query II rowsort label-3860
SELECT 30 + COUNT ( * ), NULLIF ( 34, + 44 ) AS col1
----
31
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT 39 + - 61 + + - 38 + + + CAST( - 16 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3861
SELECT 39 + - 61 + + - 38 + + + CAST ( - 16 AS INTEGER ) AS col2
----
-76

query I rowsort
SELECT 75 - 11
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT CAST( + 11 AS SIGNED ) - - + 61
----
72

skipif mysql # not compatible
query I rowsort label-3863
SELECT CAST ( + 11 AS INTEGER ) - - + 61
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL 76 - COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL 76 - COUNT ( * ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL 46 * - 8 * COUNT( * )
----
-368

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL 46 * - 8 * COUNT ( * )
----
-368

query I rowsort
SELECT DISTINCT - - 68 AS col0
----
68

query I rowsort
SELECT DISTINCT 7 * - 84
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL 41 * ( - - SUM( + 77 ) ) * 16 - - - COUNT( * ) AS col0
----
50511

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL 41 * ( - - SUM ( + 77 ) ) * 16 - - - COUNT ( * ) AS col0
----
50511

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT 21 DIV - - 12
----
1

skipif mysql # not compatible
query I rowsort label-3869
SELECT 21 / - - 12
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT 65 * - + 22 * COALESCE ( COUNT( * ), - 31 * - - SUM( + 71 ), - NULLIF ( - COUNT( * ), + COALESCE ( 44, 11 ) + - + 4 + + NULLIF ( - - 40, + 32 ) - - 95 + - 54 ) ) AS col0
----
-1430

skipif mysql # not compatible
query I rowsort label-3870
SELECT 65 * - + 22 * COALESCE ( COUNT ( * ), - 31 * - - SUM ( + 71 ), - NULLIF ( - COUNT ( * ), + COALESCE ( 44, 11 ) + - + 4 + + NULLIF ( - - 40, + 32 ) - - 95 + - 54 ) ) AS col0
----
-1430

query I rowsort
SELECT NULLIF ( + 59, + ( 73 ) * - - 5 * - NULLIF ( + 57, ( + 60 ) ) - + 65 * + 52 ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT + CAST( NULL AS SIGNED ) + + + 22 + + 76 + - 19 + + + COUNT( * ) * 5 * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT + CAST ( NULL AS INTEGER ) + + + 22 + + 76 + - 19 + + + COUNT ( * ) * 5 * - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT 44 DIV COUNT( * ) * + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3873
SELECT 44 / COUNT ( * ) * + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL - + COUNT( ALL + 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - + COUNT ( ALL + 48 ) AS col1
----
-1

query I rowsort
SELECT + - ( - 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT MAX( - 39 ) AS col0, - 88
----
-39
-88

skipif mysql # not compatible
query II rowsort label-3876
SELECT MAX ( - 39 ) AS col0, - 88
----
-39
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - CASE MAX( ALL + + 62 ) WHEN + - COUNT( * ) THEN 47 END + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT - CASE MAX ( ALL + + 62 ) WHEN + - COUNT ( * ) THEN 47 END + - 16 AS col1
----
NULL

query I rowsort
SELECT 13 + + + 61
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT + MIN( 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-3879
SELECT + MIN ( 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT 62 - + - COUNT( * ) + - COALESCE ( + + 27, + 10 + + 88 * COALESCE ( 25, + - 86 + - - 67 ) * + 71 + + - 36 - - 71 + + 68 * + + ( - + 95 ) - + 92 )
----
36

skipif mysql # not compatible
query I rowsort label-3880
SELECT 62 - + - COUNT ( * ) + - COALESCE ( + + 27, + 10 + + 88 * COALESCE ( 25, + - 86 + - - 67 ) * + 71 + + - 36 - - 71 + + 68 * + + ( - + 95 ) - + 92 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT 93 * - 0 + - - 55 * ( 97 ) + - - 57 - + COUNT( DISTINCT - 54 ) + + 27 + + 91 - + 69 * - NULLIF ( - - 93, + 37 ) * 79 * - - ( 32 ) AS col0
----
16227685

skipif mysql # not compatible
query I rowsort label-3881
SELECT 93 * - 0 + - - 55 * ( 97 ) + - - 57 - + COUNT ( DISTINCT - 54 ) + + 27 + + 91 - + 69 * - NULLIF ( - - 93, + 37 ) * 79 * - - ( 32 ) AS col0
----
16227685

query I rowsort
SELECT DISTINCT + 39 + - + 58 * + + 29 AS col2
----
-1643

onlyif mysql # aggregate syntax: 
query II rowsort label-3883
SELECT 22 AS col0, + COUNT( * ) AS col2
----
22
1

skipif mysql # not compatible
query II rowsort label-3883
SELECT 22 AS col0, + COUNT ( * ) AS col2
----
22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - COUNT( * ) + + 16 + + + 4 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3884
SELECT - COUNT ( * ) + + 16 + + + 4 AS col1
----
19

query I rowsort
SELECT - 36 * - - 19
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT - 3 * - + COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT - 3 * - + COUNT ( * ) col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - COALESCE ( - - NULLIF ( - + MIN( ALL - 35 ), 46 ), - - 37 + - 89 ) + + + ( + + 12 ) * + + MAX( - 31 )
----
-407

skipif mysql # not compatible
query I rowsort label-3887
SELECT - COALESCE ( - - NULLIF ( - + MIN ( ALL - 35 ), 46 ), - - 37 + - 89 ) + + + ( + + 12 ) * + + MAX ( - 31 )
----
-407

query I rowsort
SELECT + 77 * 0 AS col2
----
0

query I rowsort
SELECT - 41 * 80
----
-3280

query I rowsort
SELECT ALL - 86 * - 90
----
7740

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT DISTINCT 87 DIV + 73
----
1

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT 87 / + 73
----
1

query I rowsort
SELECT + 40 * - - 87 + + 18
----
3498

onlyif mysql # DIV for integer division: 
query I rowsort label-3893
SELECT + + 58 DIV - - 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3893
SELECT + + 58 / - - 58 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT SUM( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT SUM ( - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL + MAX( ALL + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + MAX ( ALL + 17 ) AS col2
----
17

query I rowsort
SELECT ALL + ( - 27 ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT + CAST( + - CAST( + 90 AS SIGNED ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-3897
SELECT + CAST ( + - CAST ( + 90 AS INTEGER ) AS INTEGER )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT + - 40 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT + - 40 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 36 AS col0, ( - 85 )
----
36
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3900
SELECT ALL - + 11 * ( + - 94 ) * - + SUM( ALL - 94 ) + 35 DIV - 90 + + 70 + - NULLIF ( - COUNT( + 36 ), - + 54 + ( + 85 ) ) * + + 43 AS col0
----
97309

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - + 11 * ( + - 94 ) * - + SUM ( ALL - 94 ) + 35 / - 90 + + 70 + - NULLIF ( - COUNT ( + 36 ), - + 54 + ( + 85 ) ) * + + 43 AS col0
----
97309

query I rowsort
SELECT + 56 - - - 78 - - - 38 * + 8 * 51 col0
----
-15526

onlyif mysql # aggregate syntax: 
query II rowsort label-3902
SELECT DISTINCT + + 30, - COALESCE ( 94, - COUNT( * ) * + + 6, - + 32 ) AS col1
----
30
-94

skipif mysql # not compatible
query II rowsort label-3902
SELECT DISTINCT + + 30, - COALESCE ( 94, - COUNT ( * ) * + + 6, - + 32 ) AS col1
----
30
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT + CAST( - 42 AS SIGNED ) + + 77 * - + 78
----
-6048

skipif mysql # not compatible
query I rowsort label-3903
SELECT + CAST ( - 42 AS INTEGER ) + + 77 * - + 78
----
-6048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT + + CASE + + AVG ( ALL - 59 ) WHEN + - 34 THEN - 99 - + ( + - CAST( NULL AS SIGNED ) ) + + 55 * - 88 * + - NULLIF ( - + NULLIF ( + COUNT( * ), + 70 + - 2 - - - 39 + - 51 * - 22 * + 30 ), - - 25 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT + + CASE + + AVG ( ALL - 59 ) WHEN + - 34 THEN - 99 - + ( + - CAST ( NULL AS INTEGER ) ) + + 55 * - 88 * + - NULLIF ( - + NULLIF ( + COUNT ( * ), + 70 + - 2 - - - 39 + - 51 * - 22 * + 30 ), - - 25 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT + CAST( ( - 45 ) AS SIGNED ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-3905
SELECT + CAST ( ( - 45 ) AS INTEGER ) col1
----
-45

query I rowsort
SELECT + - 38 + - + 30 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3907
SELECT + 55 * - + 88 AS col0, - 47 * 31 * - NULLIF ( + COALESCE ( - ( + 18 ), 69, - 7 DIV - CAST( - 8 AS SIGNED ) DIV + ( + 59 ) ), - 84 * - 88 ) - + CAST( + + 99 AS SIGNED ) * - + 57 - - 19
----
-4840
-20564

skipif mysql # not compatible
query II rowsort label-3907
SELECT + 55 * - + 88 AS col0, - 47 * 31 * - NULLIF ( + COALESCE ( - ( + 18 ), 69, - 7 / - CAST ( - 8 AS INTEGER ) / + ( + 59 ) ), - 84 * - 88 ) - + CAST ( + + 99 AS INTEGER ) * - + 57 - - 19
----
-4840
-20564

query I rowsort
SELECT DISTINCT + 38 * 98 + - 8
----
3716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3909
SELECT + CAST( NULL AS SIGNED ) AS col0, NULLIF ( - SUM( DISTINCT - 41 ), - 0 )
----
NULL
41

skipif mysql # not compatible
query II rowsort label-3909
SELECT + CAST ( NULL AS INTEGER ) AS col0, NULLIF ( - SUM ( DISTINCT - 41 ), - 0 )
----
NULL
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT + 13 * - - 96 * - NULLIF ( + - 64, - 74 + 92 DIV + 91 + ( + ( AVG ( + 75 ) ) ) ) + + COUNT( * ) * 70 DIV + + 15 + + 35
----
79911

skipif mysql # not compatible
query I rowsort label-3910
SELECT + 13 * - - 96 * - NULLIF ( + - 64, - 74 + 92 / + 91 + ( + ( AVG ( + 75 ) ) ) ) + + COUNT ( * ) * 70 / + + 15 + + 35
----
79911

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + 19 * - - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 19 * - - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL 6 * 64 * - - NULLIF ( - + COUNT( * ), + 82 ) AS col2
----
-384

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL 6 * 64 * - - NULLIF ( - + COUNT ( * ), + 82 ) AS col2
----
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3913
SELECT + 12 + + COUNT( * ) + 0 DIV + + ( + COUNT( * ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3913
SELECT + 12 + + COUNT ( * ) + 0 / + + ( + COUNT ( * ) ) AS col1
----
13

query I rowsort
SELECT ALL + 45 - - 85 col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL NULLIF ( 77, + 36 * + - 6 + + MIN( + 89 ) )
----
77

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL NULLIF ( 77, + 36 * + - 6 + + MIN ( + 89 ) )
----
77

query I rowsort
SELECT + 65 + - + 35 * ( NULLIF ( + + 52, + 8 ) ) col0
----
-1755

query I rowsort
SELECT ALL 71 * CASE WHEN 44 NOT BETWEEN - 80 + - 24 + + - 16 + + 88 + 25 + + AVG ( ALL 57 ) AND NULL THEN NULL ELSE + - 86 * - - 91 END
----
NULL

query I rowsort
SELECT - 82 + + 62
----
-20

query I rowsort
SELECT DISTINCT ( - 64 )
----
-64

query I rowsort
SELECT ALL ( - - 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT - ( + 95 ) + COUNT( * ) * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3921
SELECT - ( + 95 ) + COUNT ( * ) * COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - COUNT( * ) + + 68 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3922
SELECT - COUNT ( * ) + + 68 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL - 46 * + + ( + 43 ) * MIN( DISTINCT - - 38 ) + + 15 * 82 * - - CASE + - 52 WHEN 37 / + - 36 * + 31 THEN - 52 ELSE + COUNT( * ) END + + 30 - - ( + - 78 )
----
-73982

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 46 * + + ( + 43 ) * MIN ( DISTINCT - - 38 ) + + 15 * 82 * - - CASE + - 52 WHEN 37 / + - 36 * + 31 THEN - 52 ELSE + COUNT ( * ) END + + 30 - - ( + - 78 )
----
-73982

query II rowsort
SELECT 93 AS col2, + 90
----
93
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT - CAST( NULL AS SIGNED ) + - 29 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT - CAST ( NULL AS INTEGER ) + - 29 * 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT + ( + - COUNT( - 77 ) ) + + - 68
----
-69

skipif mysql # not compatible
query I rowsort label-3926
SELECT + ( + - COUNT ( - 77 ) ) + + - 68
----
-69

query I rowsort
SELECT - + 18 + + - 9 + - 95 AS col1
----
-122

query I rowsort
SELECT - + 13 - + + 21 * + 26 AS col2
----
-559

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT - + 69 DIV + 29 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3929
SELECT - + 69 / + 29 AS col0
----
-2

query I rowsort
SELECT DISTINCT + 41 + - - 84 + - 61
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT ALL 57 + 75 DIV + COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL 57 + 75 / + COUNT ( * )
----
132

query I rowsort
SELECT ALL - - ( + 28 ) * - + 35
----
-980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT - 3 * ( MAX( + 30 ) ) DIV + 12 + + 33 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3933
SELECT - 3 * ( MAX ( + 30 ) ) / + 12 + + 33 AS col2
----
26

query II rowsort
SELECT 79, ( + - 7 ) + + COALESCE ( - NULLIF ( + NULLIF ( + - 85, 49 ), 6 ), + 61, 90 * - 37, 48 ) + + 87 * - - 56 AS col0
----
79
4950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( + - 90 AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( + - 90 AS INTEGER ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT CASE 65 WHEN + 76 THEN + + 39 - - + NULLIF ( - 44, 67 * + - MAX( DISTINCT 96 ) ) * - - 63 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT CASE 65 WHEN + 76 THEN + + 39 - - + NULLIF ( - 44, 67 * + - MAX ( DISTINCT 96 ) ) * - - 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT + - COUNT( * ) + + - 23 + - + 21 col0
----
-45

skipif mysql # not compatible
query I rowsort label-3937
SELECT + - COUNT ( * ) + + - 23 + - + 21 col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT - 16 + + CAST( + 36 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 16 + + CAST ( + 36 AS INTEGER )
----
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3939
SELECT + + CAST( - CASE + - 34 WHEN - - 67 + + 93 THEN - 37 + CAST( NULL AS DECIMAL ) + - - 90 END AS SIGNED ) + - 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT + + CAST ( - CASE + - 34 WHEN - - 67 + + 93 THEN - 37 + CAST ( NULL AS REAL ) + - - 90 END AS INTEGER ) + - 92 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL MIN( - + 99 ) * - MAX( DISTINCT 3 ) * + + 70 - + 50
----
20740

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL MIN ( - + 99 ) * - MAX ( DISTINCT 3 ) * + + 70 - + 50
----
20740

onlyif mysql # DIV for integer division: 
query II rowsort label-3941
SELECT ALL + 20 AS col1, + 55 DIV 50
----
20
1

skipif mysql # not compatible
query II rowsort label-3941
SELECT ALL + 20 AS col1, + 55 / 50
----
20
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3942
SELECT ALL - COUNT( * ) * 1 AS col2, + COUNT( * ) + + - 98 DIV 77 + - + 64 + + 68
----
-1
4

skipif mysql # not compatible
query II rowsort label-3942
SELECT ALL - COUNT ( * ) * 1 AS col2, + COUNT ( * ) + + - 98 / 77 + - + 64 + + 68
----
-1
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT DISTINCT 60 - - MAX( 94 ) + 25 DIV - COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT 60 - - MAX ( 94 ) + 25 / - COUNT ( * ) AS col1
----
129

query I rowsort
SELECT 33 * + 55 col2
----
1815

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT 42 - - + 86 DIV - 96 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3945
SELECT 42 - - + 86 / - 96 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT CAST( NULL AS SIGNED ) * - - 84 + - 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT CAST ( NULL AS INTEGER ) * - - 84 + - 65 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3947
SELECT ALL 59 DIV - 63 DIV CAST( + + 57 AS SIGNED ) * + 34 * ( - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL 59 / - 63 / CAST ( + + 57 AS INTEGER ) * + 34 * ( - 98 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT CASE - 92 WHEN + 17 THEN NULL WHEN 7 THEN - 34 ELSE + - COUNT( * ) END * + - ( + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT CASE - 92 WHEN + 17 THEN NULL WHEN 7 THEN - 34 ELSE + - COUNT ( * ) END * + - ( + 3 ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3949
SELECT CAST( - 13 AS SIGNED ) * - + ( - 39 ) * - - 7 * + 61 + 32 + 37 AS col0
----
-216420

skipif mysql # not compatible
query I rowsort label-3949
SELECT CAST ( - 13 AS INTEGER ) * - + ( - 39 ) * - - 7 * + 61 + 32 + 37 AS col0
----
-216420

query I rowsort
SELECT 58 * 45
----
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3951
SELECT ( + COUNT( * ) ) * + CAST( - 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-3951
SELECT ( + COUNT ( * ) ) * + CAST ( - 35 AS INTEGER )
----
-35

query I rowsort
SELECT 9 + 6 col0
----
15

query I rowsort
SELECT 19 * + 41 AS col2
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - COALESCE ( - 63, + CASE - - 74 WHEN + 59 * + 40 THEN + - 51 END * - 49 - COUNT( * ) - + 35 ) + 6 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3954
SELECT - COALESCE ( - 63, + CASE - - 74 WHEN + 59 * + 40 THEN + - 51 END * - 49 - COUNT ( * ) - + 35 ) + 6 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + 45 + - COUNT( * ) + 68 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + 45 + - COUNT ( * ) + 68 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-3956
SELECT DISTINCT 62 + + COUNT( * ) AS col1, 71 col1
----
63
71

skipif mysql # not compatible
query II rowsort label-3956
SELECT DISTINCT 62 + + COUNT ( * ) AS col1, 71 col1
----
63
71

query I rowsort
SELECT ALL + + 59 + + - 95 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + COUNT( * ) * + 18 * - - 81 * + 52 + - 78 * - - 72 AS col1
----
70200

skipif mysql # not compatible
query I rowsort label-3958
SELECT + COUNT ( * ) * + 18 * - - 81 * + 52 + - 78 * - - 72 AS col1
----
70200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT - CASE ( + 22 ) WHEN + 0 THEN + CAST( + + 0 AS SIGNED ) WHEN + - 89 * + - ( + + COUNT( * ) ) + 7 * - 80 + 28 + 6 / 18 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CASE ( + 22 ) WHEN + 0 THEN + CAST ( + + 0 AS INTEGER ) WHEN + - 89 * + - ( + + COUNT ( * ) ) + 7 * - 80 + 28 + 6 / 18 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - + CASE 22 WHEN - + COUNT( * ) THEN COUNT( * ) * 80 + + + ( + 47 ) * - 33 + - 13 + - 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT - + CASE 22 WHEN - + COUNT ( * ) THEN COUNT ( * ) * 80 + + + ( + 47 ) * - 33 + - 13 + - 5 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3961
SELECT - 77 - - 64 AS col1, CAST( NULL AS SIGNED ) / + 54 AS col1
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-3961
SELECT - 77 - - 64 AS col1, CAST ( NULL AS INTEGER ) / + 54 AS col1
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT 68 + + COUNT( DISTINCT - - 0 ) * + - 92 * - 78 AS col2
----
7244

skipif mysql # not compatible
query I rowsort label-3962
SELECT 68 + + COUNT ( DISTINCT - - 0 ) * + - 92 * - 78 AS col2
----
7244

query I rowsort
SELECT ALL - - COALESCE ( + 21, - 30 ) AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT - 4 + 25 + + COUNT( * ) DIV COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3964
SELECT - 4 + 25 + + COUNT ( * ) / COUNT ( * ) AS col1
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3965
SELECT 58 * + - CAST( NULL AS DECIMAL ) + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT 58 * + - CAST ( NULL AS REAL ) + 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + 13 * + - CASE - - 96 WHEN + - 17 THEN ( 98 ) WHEN + 44 THEN 8 * + - 62 + 38 + + - 12 END + 15 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 13 * + - CASE - - 96 WHEN + - 17 THEN ( 98 ) WHEN + 44 THEN 8 * + - 62 + 38 + + - 12 END + 15 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3967
SELECT + 96 * 12 DIV + COUNT( * ) + - 36 - - + 16 - + 86 * 39 AS col0
----
-2222

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 96 * 12 / + COUNT ( * ) + - 36 - - + 16 - + 86 * 39 AS col0
----
-2222

query I rowsort
SELECT DISTINCT + 58 - + + 40 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL + + 75 * + 15 * 12 - - AVG ( DISTINCT - + 74 ) - + + 33 - 74 - + - 59 * COUNT( * ) * 5 + - - MAX( + CAST( + 37 AS SIGNED ) ) * - 44 * - - 52 * + 61 + ( - 84 ) / + CAST( NULL AS SIGNED ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + + 75 * + 15 * 12 - - AVG ( DISTINCT - + 74 ) - + + 33 - 74 - + - 59 * COUNT ( * ) * 5 + - - MAX ( + CAST ( + 37 AS INTEGER ) ) * - 44 * - - 52 * + 61 + ( - 84 ) / + CAST ( NULL AS INTEGER ) * - 81
----
NULL

query I rowsort
SELECT 52 + - 37 + + + 72 + - 24 * - - 61 + - 4 AS col1
----
-1381

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL - MAX( - + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - MAX ( - + 72 )
----
72

query I rowsort
SELECT - 99 * - + COALESCE ( 26, - 89 ) + 78 + + 65 AS col0
----
2717

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT 39 * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3973
SELECT 39 * COUNT ( * )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3974
SELECT ALL - COALESCE ( + 96, - - COUNT( * ) + + - 96 + 5, + 96 + - CASE + - 79 WHEN - + COUNT( * ) - - CAST( + 1 AS SIGNED ) + + + 79 THEN NULL WHEN + + CAST( - 77 AS SIGNED ) + + + 0 * + + COUNT( * ) THEN - CASE + 62 WHEN - 33 * 28 + + 28 THEN - - COUNT( * ) * + 2 ELSE - 40 - + + 48 END * 1 + + - 70 + - - ( - CASE - 26 WHEN + 55 + - COUNT( * ) * + NULLIF ( - 76, 98 ) THEN NULL WHEN - 47 - + 98 THEN - - 72 ELSE NULL END ) - + 53 + + + 27 ELSE NULL END + + 86 ) col2, - 26 AS col1
----
-96
-26

skipif mysql # not compatible
query II rowsort label-3974
SELECT ALL - COALESCE ( + 96, - - COUNT ( * ) + + - 96 + 5, + 96 + - CASE + - 79 WHEN - + COUNT ( * ) - - CAST ( + 1 AS INTEGER ) + + + 79 THEN NULL WHEN + + CAST ( - 77 AS INTEGER ) + + + 0 * + + COUNT ( * ) THEN - CASE + 62 WHEN - 33 * 28 + + 28 THEN - - COUNT ( * ) * + 2 ELSE - 40 - + + 48 END * 1 + + - 70 + - - ( - CASE - 26 WHEN + 55 + - COUNT ( * ) * + NULLIF ( - 76, 98 ) THEN NULL WHEN - 47 - + 98 THEN - - 72 ELSE NULL END ) - + 53 + + + 27 ELSE NULL END + + 86 ) col2, - 26 AS col1
----
-96
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT 65 col0, 32 + + ( - 89 ) + + 18 + - COUNT( * ) * + 45 + 88 AS col0
----
65
4

skipif mysql # not compatible
query II rowsort label-3975
SELECT 65 col0, 32 + + ( - 89 ) + + 18 + - COUNT ( * ) * + 45 + 88 AS col0
----
65
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT 37, - COUNT( * ) col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-3976
SELECT 37, - COUNT ( * ) col2
----
37
-1

query I rowsort
SELECT ALL - CASE 42 WHEN 21 THEN 22 ELSE + 76 * ( - 86 ) END AS col2
----
6536

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT MIN( 79 ) * + ( 65 )
----
5135

skipif mysql # not compatible
query I rowsort label-3978
SELECT MIN ( 79 ) * + ( 65 )
----
5135

query II rowsort
SELECT 51 AS col0, - 10
----
51
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT 63 * - COUNT( * ) + + - 12
----
-75

skipif mysql # not compatible
query I rowsort label-3980
SELECT 63 * - COUNT ( * ) + + - 12
----
-75

query I rowsort
SELECT DISTINCT + 73 * - 67 * 14 AS col2
----
-68474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT 58 DIV 11 * - 48 DIV + COUNT( * ) AS col2
----
-240

skipif mysql # not compatible
query I rowsort label-3982
SELECT 58 / 11 * - 48 / + COUNT ( * ) AS col2
----
-240

query I rowsort
SELECT ALL 17 + - 26
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT 74 + NULLIF ( + + MIN( + 89 ), + COUNT( * ) ) + + + COUNT( * ) - - - 64 * + 76 + - + 64 * ( - 4 ) * 79 AS col2
----
15524

skipif mysql # not compatible
query I rowsort label-3984
SELECT 74 + NULLIF ( + + MIN ( + 89 ), + COUNT ( * ) ) + + + COUNT ( * ) - - - 64 * + 76 + - + 64 * ( - 4 ) * 79 AS col2
----
15524

query II rowsort
SELECT - 85 AS col0, 26
----
-85
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT + ( COUNT( * ) ) * 31 + - 57, 21 AS col2
----
-26
21

skipif mysql # not compatible
query II rowsort label-3986
SELECT + ( COUNT ( * ) ) * 31 + - 57, 21 AS col2
----
-26
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - 1 + CASE + - 59 WHEN - + 21 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - 1 + CASE + - 59 WHEN - + 21 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 7 + + + 79 * + - NULLIF ( - - 29, 28 ) * + 94
----
-215347

query I rowsort
SELECT + 95 + + 64
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 34
----
NULL

query I rowsort
SELECT 3 + 85
----
88

query I rowsort
SELECT - ( - + 34 ) + + NULLIF ( - + 22, + - 82 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT COUNT( * ) * 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3993
SELECT COUNT ( * ) * 6 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3994
SELECT NULLIF ( - - 5, 8 / - 96 * + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + 85 )
----
5

skipif mysql # not compatible
query I rowsort label-3994
SELECT NULLIF ( - - 5, 8 / - 96 * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + 85 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - 75 + - + 97 - + + 45 * + + 10 * 32 * + 45 * - - NULLIF ( + 21, + COUNT( * ) * 77 * 75 ) + 55
----
-13608117

skipif mysql # not compatible
query I rowsort label-3995
SELECT - 75 + - + 97 - + + 45 * + + 10 * 32 * + 45 * - - NULLIF ( + 21, + COUNT ( * ) * 77 * 75 ) + 55
----
-13608117

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - COUNT( * ) + - 67 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3996
SELECT - COUNT ( * ) + - 67 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL + 89 * - COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + 89 * - COUNT ( * ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - - COUNT( + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-3998
SELECT - - COUNT ( + 38 )
----
1

query I rowsort
SELECT + 58 + - 49 AS col1
----
9

query I rowsort
SELECT ALL + - 40 - 60
----
-100

query I rowsort
SELECT + + 34 + 20 + 64 col2
----
118

query I rowsort
SELECT ALL + 29 * 87 * - - 4 col0
----
10092

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + SUM( 70 ) * - - ( 6 )
----
420

skipif mysql # not compatible
query I rowsort label-4003
SELECT + SUM ( 70 ) * - - ( 6 )
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT - CAST( - 8 AS SIGNED ) + 23 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4004
SELECT - CAST ( - 8 AS INTEGER ) + 23 AS col1
----
31

query I rowsort
SELECT ALL + 58 * - ( + + 92 )
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + 89 * MAX( ALL + 49 ) AS col2
----
4361

skipif mysql # not compatible
query I rowsort label-4006
SELECT + 89 * MAX ( ALL + 49 ) AS col2
----
4361

query I rowsort
SELECT ALL - 59 * - 52
----
3068

query I rowsort
SELECT COALESCE ( + 78, + 17 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4009
SELECT ALL + ( + + 4 ), COUNT( * ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL + ( + + 4 ), COUNT ( * ) AS col1
----
4
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT - NULLIF ( + - 61, - - 64 * + 2 - 1 ) + + CAST( 98 AS SIGNED ) + 34 * 59 * 75
----
150609

skipif mysql # not compatible
query I rowsort label-4010
SELECT - NULLIF ( + - 61, - - 64 * + 2 - 1 ) + + CAST ( 98 AS INTEGER ) + 34 * 59 * 75
----
150609

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT COUNT( * ) * 27 + + - 39
----
-12

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT COUNT ( * ) * 27 + + - 39
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4012
SELECT DISTINCT - 14 DIV + + 31 AS col0, NULLIF ( 93, - 20 ) * CAST( - 96 AS SIGNED ), - 13 - - - 75 col1
----
0
-8928
-88

skipif mysql # not compatible
query III rowsort label-4012
SELECT DISTINCT - 14 / + + 31 AS col0, NULLIF ( 93, - 20 ) * CAST ( - 96 AS INTEGER ), - 13 - - - 75 col1
----
0
-8928
-88

query I rowsort
SELECT - ( - 97 ) * + 64 * + + 1 + + + 79 + - 89 AS col2
----
6198

query I rowsort
SELECT DISTINCT - 81 * - ( + 64 ) + + 68
----
5252

query II rowsort
SELECT ALL 50 * - 86 + - 61 * - 65 + + - 29, NULLIF ( 86, 41 ) col1
----
-364
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT - - CAST( NULL AS SIGNED ) * COALESCE ( + 40, + 42 + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT - - CAST ( NULL AS INTEGER ) * COALESCE ( + 40, + 42 + 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL COUNT( * ) * + + 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL COUNT ( * ) * + + 22 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT - 51 - + 66 + + COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - 51 - + 66 + + COUNT ( * )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - MIN( - 87 ) * + - 28
----
-2436

skipif mysql # not compatible
query I rowsort label-4019
SELECT - MIN ( - 87 ) * + - 28
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT CASE + - COUNT( * ) WHEN - 51 * AVG ( + + 39 ) THEN - + 89 + - 3 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT CASE + - COUNT ( * ) WHEN - 51 * AVG ( + + 39 ) THEN - + 89 + - 3 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 24 * + 99
----
2376

query I rowsort
SELECT ( + 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4023
SELECT ALL - 69 DIV COUNT( + 52 ) + + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - 69 / COUNT ( + 52 ) + + COUNT ( * )
----
-68

query I rowsort
SELECT + 95 - + 47 * 7
----
-234

query I rowsort
SELECT ALL 53 * - 1 AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT ALL 92 DIV - 38
----
-2

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL 92 / - 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT + + COUNT( * ) + 55 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4027
SELECT + + COUNT ( * ) + 55 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT + - NULLIF ( 25, + 52 * + 89 ) * - 92 * 38 DIV - + 23 * 89 DIV + 89
----
-3800

skipif mysql # not compatible
query I rowsort label-4028
SELECT + - NULLIF ( 25, + 52 * + 89 ) * - 92 * 38 / - + 23 * 89 / + 89
----
-3800

query I rowsort
SELECT ALL - 17 * + - ( 81 ) AS col0
----
1377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT + NULLIF ( - 79, 65 * + AVG ( - - ( + + 12 ) ) + + - 56 - + 17 ) + + - COALESCE ( - ( - - 12 ), - COUNT( * ) DIV + + 53 + + + 88 )
----
-67

skipif mysql # not compatible
query I rowsort label-4030
SELECT + NULLIF ( - 79, 65 * + AVG ( - - ( + + 12 ) ) + + - 56 - + 17 ) + + - COALESCE ( - ( - - 12 ), - COUNT ( * ) / + + 53 + + + 88 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4031
SELECT ALL CAST( - + 8 AS SIGNED ) * COUNT( * ) * - 55
----
440

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL CAST ( - + 8 AS INTEGER ) * COUNT ( * ) * - 55
----
440

query I rowsort
SELECT + ( 93 ) * + 7 + + - 44
----
607

query II rowsort
SELECT ALL + 32, - 22 + 88 col2
----
32
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT + CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-4034
SELECT + CAST ( - 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT ALL 90 DIV 37 + + 72 + - SUM( + 61 )
----
13

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL 90 / 37 + + 72 + - SUM ( + 61 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4036
SELECT DISTINCT 59 DIV - 50 * COUNT( ALL - CAST( + - 49 AS DECIMAL ) ) + + + MAX( ALL - 85 )
----
-86

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT 59 / - 50 * COUNT ( ALL - CAST ( + - 49 AS REAL ) ) + + + MAX ( ALL - 85 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT + 36 * + - ( - - COUNT( * ) ) * - 54 AS col1
----
1944

skipif mysql # not compatible
query I rowsort label-4037
SELECT + 36 * + - ( - - COUNT ( * ) ) * - 54 AS col1
----
1944

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT ALL 34 DIV + - 77 + 28
----
28

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL 34 / + - 77 + 28
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT CAST( - + 38 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4039
SELECT CAST ( - + 38 AS INTEGER ) AS col0
----
-38

query I rowsort
SELECT ( + 58 ) AS col1
----
58

query I rowsort
SELECT ALL 94 * 53
----
4982

query I rowsort
SELECT + 0 * + 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT + CAST( 38 AS SIGNED ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4043
SELECT + CAST ( 38 AS INTEGER ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ( COUNT( ALL + 27 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4044
SELECT ( COUNT ( ALL + 27 ) ) AS col1
----
1

query I rowsort
SELECT ALL 58 * - 49
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4046
SELECT ALL - COUNT( * ) * + 58 + 95 + + + MAX( + - 14 ) + - 29 - - - NULLIF ( + - CAST( NULL AS DECIMAL ), + - 30 ) DIV COUNT( * ) AS col2, + 63 DIV 85 + + COALESCE ( + 11, + - 82 ) DIV - 12 + + 15 AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-4046
SELECT ALL - COUNT ( * ) * + 58 + 95 + + + MAX ( + - 14 ) + - 29 - - - NULLIF ( + - CAST ( NULL AS REAL ), + - 30 ) / COUNT ( * ) AS col2, + 63 / 85 + + COALESCE ( + 11, + - 82 ) / - 12 + + 15 AS col0
----
NULL
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT DISTINCT + 70 col1, - COUNT( * )
----
70
-1

skipif mysql # not compatible
query II rowsort label-4047
SELECT DISTINCT + 70 col1, - COUNT ( * )
----
70
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT DISTINCT 93 * CAST( + + 10 AS SIGNED ) AS col1
----
930

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT 93 * CAST ( + + 10 AS INTEGER ) AS col1
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT SUM( ALL - 87 ) * - - 29 * + 45 + 70 + - - 18 - 89 * 76
----
-120211

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT SUM ( ALL - 87 ) * - - 29 * + 45 + 70 + - - 18 - 89 * 76
----
-120211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT ALL - ( 79 ) * - CAST( - 77 AS SIGNED ) - - NULLIF ( - COUNT( * ), - 39 + COALESCE ( + 21, 89 ) )
----
-6084

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - ( 79 ) * - CAST ( - 77 AS INTEGER ) - - NULLIF ( - COUNT ( * ), - 39 + COALESCE ( + 21, 89 ) )
----
-6084

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT COALESCE ( COUNT( 82 ), COUNT( - 12 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4051
SELECT COALESCE ( COUNT ( 82 ), COUNT ( - 12 ) ) col0
----
1

query I rowsort
SELECT - 69 * 43
----
-2967

query I rowsort
SELECT - 75 * 87
----
-6525

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT ALL + ( + 67 ) DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + ( + 67 ) / - 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT - 86 + MIN( DISTINCT + 75 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 86 + MIN ( DISTINCT + 75 ) AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT - 92 DIV - 13 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4056
SELECT - 92 / - 13 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - 51 * NULLIF ( 47, - 64 * - 47 + COALESCE ( + COUNT( * ), NULLIF ( 94, + 64 ), - 40 ) / - 75 ) AS col2
----
-2397

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 51 * NULLIF ( 47, - 64 * - 47 + COALESCE ( + COUNT ( * ), NULLIF ( 94, + 64 ), - 40 ) / - 75 ) AS col2
----
-2397

query I rowsort
SELECT 66 * + 84 + + 48 * 62
----
8520

query I rowsort
SELECT DISTINCT + 75 - - 74
----
149

query I rowsort
SELECT 37 * 90
----
3330

query I rowsort
SELECT 43 + 93
----
136

query I rowsort
SELECT 27 * - 92 col0
----
-2484

query I rowsort
SELECT 62 + - 68 AS col1
----
-6

query I rowsort
SELECT DISTINCT - 58 * 99
----
-5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4065
SELECT ( COUNT( - NULLIF ( CAST( NULL AS SIGNED ), + COALESCE ( 91, 67, 79 * CAST( 30 AS SIGNED ) ) ) ) ) + 55
----
55

skipif mysql # not compatible
query I rowsort label-4065
SELECT ( COUNT ( - NULLIF ( CAST ( NULL AS INTEGER ), + COALESCE ( 91, 67, 79 * CAST ( 30 AS INTEGER ) ) ) ) ) + 55
----
55

query I rowsort
SELECT DISTINCT 2 + 58 * - 4
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL + COUNT( * ) + 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + COUNT ( * ) + 1 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL MIN( DISTINCT - 53 ) + + 98
----
45

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL MIN ( DISTINCT - 53 ) + + 98
----
45

query I rowsort
SELECT DISTINCT - 86 + + 74 * 8
----
506

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4070
SELECT ALL + 32 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL + 32 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT MAX( DISTINCT + 82 ) DIV - 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4071
SELECT MAX ( DISTINCT + 82 ) / - 31 AS col2
----
-2

query I rowsort
SELECT ALL 1 + 86 * 33
----
2839

query I rowsort
SELECT DISTINCT 59 * 43
----
2537

query I rowsort
SELECT ALL 94 * - 29 AS col2
----
-2726

query I rowsort
SELECT DISTINCT 0 * + 90 AS col0
----
0

query I rowsort
SELECT ALL 17 + + 34
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT - COUNT( DISTINCT 29 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT - COUNT ( DISTINCT 29 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 52 - 17 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT CAST( NULL AS SIGNED ) + 37 * - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT CAST ( NULL AS INTEGER ) + 37 * - 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COUNT( * ) * - SUM( ALL 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4080
SELECT COUNT ( * ) * - SUM ( ALL 27 ) AS col2
----
-27

query I rowsort
SELECT ALL 87 - 84
----
3

query I rowsort
SELECT 92 * + 66
----
6072

query I rowsort
SELECT + + ( 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT - 35 * - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - 35 * - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT 58 + + 65 AS col0
----
123

query I rowsort
SELECT 1 * 27
----
27

query I rowsort
SELECT 89 * 13
----
1157

query I rowsort
SELECT ALL + + 8 * + 60
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-4089
SELECT DISTINCT + 91 DIV + ( 21 )
----
4

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + 91 / + ( 21 )
----
4

query I rowsort
SELECT DISTINCT 29 * + 89 AS col0
----
2581

query I rowsort
SELECT + 5 * - 34 AS col2
----
-170

query I rowsort
SELECT 50 * 5 AS col0
----
250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT ALL - CAST( NULL AS SIGNED ) + 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL - CAST ( NULL AS INTEGER ) + 51 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 89 + 26
----
115

query I rowsort
SELECT ALL + 25 + 78 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT - MIN( + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT - MIN ( + 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT DISTINCT + + ( + 64 ) + + 30 * + CASE COALESCE ( 88, + COALESCE ( - 67, 53, + 51 ) ) WHEN 14 THEN NULL WHEN NULLIF ( 42, 84 ) * + 83 THEN COUNT( 48 ) / 17 WHEN 60 + + CASE - 80 + + 46 WHEN + 81 THEN 80 * + 8 WHEN - 68 THEN 1 WHEN - 63 THEN + CAST( 67 AS SIGNED ) END / 35 THEN + 93 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + + ( + 64 ) + + 30 * + CASE COALESCE ( 88, + COALESCE ( - 67, 53, + 51 ) ) WHEN 14 THEN NULL WHEN NULLIF ( 42, 84 ) * + 83 THEN COUNT ( 48 ) / 17 WHEN 60 + + CASE - 80 + + 46 WHEN + 81 THEN 80 * + 8 WHEN - 68 THEN 1 WHEN - 63 THEN + CAST ( 67 AS INTEGER ) END / 35 THEN + 93 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 27 * - - 32
----
-864

query I rowsort
SELECT ALL + 72 + - - 80 + 86 AS col2
----
238

query I rowsort
SELECT ALL + 0 + - - 38 * - 60 AS col0
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT - 45 * + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - 45 * + COUNT ( * )
----
-45

query I rowsort
SELECT 52 + + 33
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT 87 * + + SUM( - 45 )
----
-3915

skipif mysql # not compatible
query I rowsort label-4103
SELECT 87 * + + SUM ( - 45 )
----
-3915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT DISTINCT + 27 * + COUNT( + 62 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT + 27 * + COUNT ( + 62 ) / - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT 68 + 89 + COUNT( * ) * + COUNT( * )
----
158

skipif mysql # not compatible
query I rowsort label-4105
SELECT 68 + 89 + COUNT ( * ) * + COUNT ( * )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT 77 + COUNT( * ) * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4106
SELECT 77 + COUNT ( * ) * COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT COUNT( * ) - - 24
----
25

skipif mysql # not compatible
query I rowsort label-4107
SELECT COUNT ( * ) - - 24
----
25

query I rowsort
SELECT DISTINCT + 28 * + 14
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL - NULLIF ( + 52, - COUNT( ALL ( 18 ) ) / - 54 + + 81 )
----
-52

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - NULLIF ( + 52, - COUNT ( ALL ( 18 ) ) / - 54 + + 81 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT ALL COALESCE ( + + 19, - 45 ) DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL COALESCE ( + + 19, - 45 ) / 81 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT DISTINCT + MIN( 44 ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT + MIN ( 44 ) / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT 92 * - COUNT( DISTINCT - 84 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4112
SELECT 92 * - COUNT ( DISTINCT - 84 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT 2 * + COUNT( ALL 87 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4113
SELECT 2 * + COUNT ( ALL 87 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT MAX( - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4114
SELECT MAX ( - 3 ) AS col1
----
-3

query I rowsort
SELECT 26 + + 37 AS col0
----
63

query I rowsort
SELECT - + 73 * + - 34 * 86 + + 35 + + 5 * 88 AS col2
----
213927

query I rowsort
SELECT + 26 * 24 + 86 AS col0
----
710

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4118
SELECT ALL + 36 * - NULLIF ( 51, SUM( DISTINCT - 63 ) / - CAST( NULL AS DECIMAL ) ) * - 6 AS col2
----
11016

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL + 36 * - NULLIF ( 51, SUM ( DISTINCT - 63 ) / - CAST ( NULL AS REAL ) ) * - 6 AS col2
----
11016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT + + 67 * + - CAST( NULL AS SIGNED ) + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT + + 67 * + - CAST ( NULL AS INTEGER ) + - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + - 89 * - COUNT( * ) + 21 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + - 89 * - COUNT ( * ) + 21 AS col2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT CAST( NULL AS SIGNED ) * 37 * + 6 - 21 / - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 37 * + 6 - 21 / - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - + 37 * + SUM( DISTINCT - 41 ) + + 30
----
1547

skipif mysql # not compatible
query I rowsort label-4122
SELECT - + 37 * + SUM ( DISTINCT - 41 ) + + 30
----
1547

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + 75 * + 8 + + COUNT( * ) AS col0
----
601

skipif mysql # not compatible
query I rowsort label-4123
SELECT + 75 * + 8 + + COUNT ( * ) AS col0
----
601

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT + 15 + 81 DIV 31
----
17

skipif mysql # not compatible
query I rowsort label-4124
SELECT + 15 + 81 / 31
----
17

query I rowsort
SELECT ALL 58 + - 76
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT + COUNT( * ) + CASE + 28 WHEN COALESCE ( 88, + 62 ) * ( + COUNT( * ) ) - + 6 THEN NULL WHEN 4 THEN CAST( - 24 AS SIGNED ) END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT + COUNT ( * ) + CASE + 28 WHEN COALESCE ( 88, + 62 ) * ( + COUNT ( * ) ) - + 6 THEN NULL WHEN 4 THEN CAST ( - 24 AS INTEGER ) END + 66
----
NULL

query I rowsort
SELECT - 85 * + + 45 - + 28 col0
----
-3853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4128
SELECT - - 35 - - + 86 + + 93 DIV COUNT( * ) AS col2
----
214

skipif mysql # not compatible
query I rowsort label-4128
SELECT - - 35 - - + 86 + + 93 / COUNT ( * ) AS col2
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL - CAST( NULL AS SIGNED ) * + 67 * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - CAST ( NULL AS INTEGER ) * + 67 * + 0 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT DISTINCT + 18 + CAST( + ( 22 ) AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + 18 + CAST ( + ( 22 ) AS INTEGER )
----
40

query I rowsort
SELECT ALL + 60 + - 57 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT - - CAST( + ( 86 ) AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4132
SELECT - - CAST ( + ( 86 ) AS INTEGER ) AS col1
----
86

query I rowsort
SELECT DISTINCT - 38 + + 6 + - 16 * + 8
----
-160

query I rowsort
SELECT DISTINCT 43 + 56
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT ALL COUNT( * ) * + + 35 + 94 DIV + 24 col0
----
38

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL COUNT ( * ) * + + 35 + 94 / + 24 col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4136
SELECT ALL - - 26 + - COUNT( * ) + - 84 DIV - 80 col1
----
26

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - - 26 + - COUNT ( * ) + - 84 / - 80 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - + ( + ( COUNT( * ) ) ) + + 89 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4137
SELECT - + ( + ( COUNT ( * ) ) ) + + 89 AS col1
----
88

query I rowsort
SELECT ALL 61 + + 31
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT - CAST( - 98 AS SIGNED ) + COUNT( * ) + - 44 * 4 * - 0 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4139
SELECT - CAST ( - 98 AS INTEGER ) + COUNT ( * ) + - 44 * 4 * - 0 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + COALESCE ( 35, - 68 - NULLIF ( + COALESCE ( - 38, + 37, 53, + NULLIF ( - COUNT( * ), + 99 ) + 93 ) - + 42, 90 / + 84 ), + 86 + SUM( DISTINCT + 4 ) ) * + 50
----
1750

skipif mysql # not compatible
query I rowsort label-4140
SELECT + COALESCE ( 35, - 68 - NULLIF ( + COALESCE ( - 38, + 37, 53, + NULLIF ( - COUNT ( * ), + 99 ) + 93 ) - + 42, 90 / + 84 ), + 86 + SUM ( DISTINCT + 4 ) ) * + 50
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT MAX( - 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT MAX ( - 72 ) AS col2
----
-72

query I rowsort
SELECT ALL - 41 + + 99 + + + 29 - + CASE - 65 WHEN - 38 * 14 THEN + 77 * 60 END / 63
----
NULL

query II rowsort
SELECT 87, 7 AS col1
----
87
7

query II rowsort
SELECT - 50, - 93 AS col1
----
-50
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + 59 DIV - 11 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 59 / - 11 AS col0
----
-5

query I rowsort
SELECT - 65 + - 45
----
-110

query I rowsort
SELECT - 77 * 12
----
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL 42 - - 99 + 53 + SUM( DISTINCT - 54 + 18 / NULLIF ( CASE 56 WHEN ( 36 ) THEN 35 * CAST( NULL AS SIGNED ) END, 96 - 67 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 42 - - 99 + 53 + SUM ( DISTINCT - 54 + 18 / NULLIF ( CASE 56 WHEN ( 36 ) THEN 35 * CAST ( NULL AS INTEGER ) END, 96 - 67 ) ) AS col1
----
NULL

query II rowsort
SELECT - 61 AS col2, + 37 AS col1
----
-61
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT DISTINCT 76 - + - COUNT( * ) + - COALESCE ( + 95, + 10 + 98 ) * - MIN( - COALESCE ( CAST( NULL AS SIGNED ), 71 ) * - 24 )
----
161957

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT 76 - + - COUNT ( * ) + - COALESCE ( + 95, + 10 + 98 ) * - MIN ( - COALESCE ( CAST ( NULL AS INTEGER ), 71 ) * - 24 )
----
161957

query I rowsort
SELECT ALL + 78 * - - 3
----
234

query II rowsort
SELECT 24 AS col1, 85 AS col2
----
24
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT CAST( + CASE + 4 WHEN + 40 + - 6 THEN + 18 * + CAST( 6 AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT CAST ( + CASE + 4 WHEN + 40 + - 6 THEN + 18 * + CAST ( 6 AS INTEGER ) END AS INTEGER )
----
NULL

query II rowsort
SELECT + 24, 15 AS col2
----
24
15

query II rowsort
SELECT + 27, 6 AS col1
----
27
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL + CASE 17 WHEN - NULLIF ( NULLIF ( - 48, NULLIF ( - 94, - CAST( NULL AS SIGNED ) ) * 14 ), - 15 ) + + 77 * 73 THEN + 12 * 73 ELSE NULL END * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + CASE 17 WHEN - NULLIF ( NULLIF ( - 48, NULLIF ( - 94, - CAST ( NULL AS INTEGER ) ) * 14 ), - 15 ) + + 77 * 73 THEN + 12 * 73 ELSE NULL END * - 69
----
NULL

query I rowsort
SELECT - 70 - - - 3 + 0 col0
----
-73

query I rowsort
SELECT - 87 + + 9 - - - 11 + - 86
----
-175

query II rowsort
SELECT + 35, - 96 * - 62 AS col0
----
35
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ( - SUM( ALL - + 75 ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4160
SELECT ( - SUM ( ALL - + 75 ) ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + MIN( + - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + MIN ( + - 55 ) AS col1
----
-55

query II rowsort
SELECT ALL + 53 AS col2, + NULLIF ( + 2, + 60 )
----
53
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL + + 74 * - 98 * - 34 + 27 DIV + 44
----
246568

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + + 74 * - 98 * - 34 + 27 / + 44
----
246568

query II rowsort
SELECT DISTINCT + 31 AS col0, 85 AS col0
----
31
85

query I rowsort
SELECT DISTINCT + - 2 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT - 90 DIV + 58 + 74 + 71
----
144

skipif mysql # not compatible
query I rowsort label-4166
SELECT - 90 / + 58 + 74 + 71
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + MIN( ALL - - 85 ) * - - 9
----
765

skipif mysql # not compatible
query I rowsort label-4167
SELECT + MIN ( ALL - - 85 ) * - - 9
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL + COUNT( * ) * - 64 + 83 + - 32
----
-13

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL + COUNT ( * ) * - 64 + 83 + - 32
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT DISTINCT CASE - - 52 WHEN COUNT( * ) THEN NULL WHEN - 44 / 28 THEN 86 + 40 * - 79 ELSE NULL END * + 63 + 44 * + CAST( - 44 * 11 + 86 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT CASE - - 52 WHEN COUNT ( * ) THEN NULL WHEN - 44 / 28 THEN 86 + 40 * - 79 ELSE NULL END * + 63 + 44 * + CAST ( - 44 * 11 + 86 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT - 17 + + 92 DIV 15
----
-11

skipif mysql # not compatible
query I rowsort label-4170
SELECT - 17 + + 92 / 15
----
-11

query II rowsort
SELECT + - 87 col2, 35 AS col0
----
-87
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4172
SELECT - + 69 DIV + + MAX( 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-4172
SELECT - + 69 / + + MAX ( 43 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT - ( + 24 ) * - 99 + COALESCE ( 20, + 55 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT - ( + 24 ) * - 99 + COALESCE ( 20, + 55 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( - ( 21 ) ) * - 12 + 9
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT - 82 * + COALESCE ( - 81, + COUNT( * ) ) + + COUNT( * ) col0
----
6643

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - 82 * + COALESCE ( - 81, + COUNT ( * ) ) + + COUNT ( * ) col0
----
6643

query II rowsort
SELECT DISTINCT + 38 AS col2, 67 + 4 + 37 * - 54
----
38
-1927

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL + 53 * + 30 * + - COUNT( * ) * 90 + CASE - 63 WHEN - 19 * COUNT( * ) THEN + 63 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL + 53 * + 30 * + - COUNT ( * ) * 90 + CASE - 63 WHEN - 19 * COUNT ( * ) THEN + 63 ELSE NULL END * COUNT ( * )
----
NULL

query II rowsort
SELECT + 98 AS col1, 62 * - 57 * - 89
----
98
314526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT + 76 * CAST( NULL AS SIGNED ) * CASE - 63 WHEN - ( 15 ) THEN - 69 * 88 + 97 END - 10 * + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT + 76 * CAST ( NULL AS INTEGER ) * CASE - 63 WHEN - ( 15 ) THEN - 69 * 88 + 97 END - 10 * + 38 AS col0
----
NULL

query II rowsort
SELECT + 99 AS col2, + 49 AS col0
----
99
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL MAX( ALL - 20 ) * - 59 * + 19 + + 82
----
22502

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL MAX ( ALL - 20 ) * - 59 * + 19 + + 82
----
22502

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - CASE - + COUNT( * ) WHEN - 35 THEN - - 31 * + 87 + ( + 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - CASE - + COUNT ( * ) WHEN - 35 THEN - - 31 * + 87 + ( + 60 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT - CAST( + 46 AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4183
SELECT - CAST ( + 46 AS INTEGER ) AS col2
----
-46

query I rowsort
SELECT + ( + ( + + 55 ) ) - - 21
----
76

query I rowsort
SELECT + 89 * + 53
----
4717

query I rowsort
SELECT ALL 30 * + 26
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT - CAST( + - CASE WHEN NOT 74 IS NOT NULL THEN ( 65 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT - CAST ( + - CASE WHEN NOT 74 IS NOT NULL THEN ( 65 ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + 30 - + SUM( DISTINCT - + 68 )
----
98

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 30 - + SUM ( DISTINCT - + 68 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT ( + SUM( ALL + 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT ( + SUM ( ALL + 47 ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + 18 * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4190
SELECT + 18 * COUNT ( * )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT + 23 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 23 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 29 * + - ( + 66 )
----
-1914

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT ALL MIN( ALL + 30 ) AS col2, 56 + 79
----
30
135

skipif mysql # not compatible
query II rowsort label-4193
SELECT ALL MIN ( ALL + 30 ) AS col2, 56 + 79
----
30
135

query II rowsort
SELECT - 58 * - 11 AS col1, 60
----
638
60

query I rowsort
SELECT ALL COALESCE ( - 69, - - 62 )
----
-69

query I rowsort
SELECT + 70 + 51
----
121

query I rowsort
SELECT 8 * - + 15 * 96 AS col0
----
-11520

query I rowsort
SELECT ( + 94 ) + 69
----
163

query I rowsort
SELECT 47 - + - 66 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT - COUNT( DISTINCT 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT - COUNT ( DISTINCT 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL - NULLIF ( - COUNT( * ), + ( - - 76 ) ) + + 96
----
97

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - NULLIF ( - COUNT ( * ), + ( - - 76 ) ) + + 96
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT DISTINCT - 3 DIV - + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT - 3 / - + 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT - 43 DIV 65 + + 20 + + 41 + + NULLIF ( 3, 7 )
----
64

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 43 / 65 + + 20 + + 41 + + NULLIF ( 3, 7 )
----
64

query I rowsort
SELECT ALL - 54 + ( 97 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - 95 + - - 91 - + - MAX( 27 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - 95 + - - 91 - + - MAX ( 27 ) AS col1
----
23

query I rowsort
SELECT + NULLIF ( + 40, - 97 * - 9 * + 9 )
----
40

query I rowsort
SELECT ( + 56 ) + - ( - 83 ) * - 13
----
-1023

query I rowsort
SELECT + - NULLIF ( + 80, - 5 * 81 ) AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT + 15 * 98 DIV 34 DIV + COUNT( * ) + - ( - 75 )
----
118

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 15 * 98 / 34 / + COUNT ( * ) + - ( - 75 )
----
118

query I rowsort
SELECT ALL - COALESCE ( + 27, - - ( COALESCE ( - 83, + 64, - 17 ) ) * + 50 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL + - ( 99 ) + 51 * - ( - MAX( CAST( + 89 AS SIGNED ) ) )
----
4440

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + - ( 99 ) + 51 * - ( - MAX ( CAST ( + 89 AS INTEGER ) ) )
----
4440

query I rowsort
SELECT DISTINCT - 2 * - ( 40 ) * 88 - 76
----
6964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT DISTINCT + - 17 + 50 DIV + - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + - 17 + 50 / + - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT - - NULLIF ( - + CASE - 9 WHEN - + 77 THEN NULL WHEN + 26 * + 79 THEN - COUNT( * ) WHEN CASE 51 WHEN COUNT( * ) THEN 87 * 9 END * MAX( DISTINCT - CASE + ( - 90 ) WHEN - 76 / 78 THEN + 69 + - 62 WHEN 79 THEN NULL END ) THEN 91 ELSE NULL END, - 47 * 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - - NULLIF ( - + CASE - 9 WHEN - + 77 THEN NULL WHEN + 26 * + 79 THEN - COUNT ( * ) WHEN CASE 51 WHEN COUNT ( * ) THEN 87 * 9 END * MAX ( DISTINCT - CASE + ( - 90 ) WHEN - 76 / 78 THEN + 69 + - 62 WHEN 79 THEN NULL END ) THEN 91 ELSE NULL END, - 47 * 67 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ( + - COALESCE ( + 70, COUNT( * ) ) ) + - SUM( ALL - 54 )
----
-16

skipif mysql # not compatible
query I rowsort label-4215
SELECT ( + - COALESCE ( + 70, COUNT ( * ) ) ) + - SUM ( ALL - 54 )
----
-16

query I rowsort
SELECT + ( + 94 ) * - ( 38 ) col0
----
-3572

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT 35 - - - 27 DIV 87
----
35

skipif mysql # not compatible
query I rowsort label-4217
SELECT 35 - - - 27 / 87
----
35

query I rowsort
SELECT ALL 30 * + 2 * ( + - 46 ) AS col0
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT 87 + + ( - MIN( + - 23 ) )
----
110

skipif mysql # not compatible
query I rowsort label-4219
SELECT 87 + + ( - MIN ( + - 23 ) )
----
110

query I rowsort
SELECT DISTINCT + 23 - - - 86 * + 85 + + 57 AS col1
----
-7230

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT - 69 * + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT - 69 * + - COUNT ( * )
----
69

query I rowsort
SELECT ALL - 5 * - - 58 AS col1
----
-290

query I rowsort
SELECT DISTINCT - 96 * + - 59 AS col1
----
5664

query II rowsort
SELECT - 59 AS col2, 70 + 75 AS col2
----
-59
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT 86 * + CASE 90 WHEN + 69 THEN NULL WHEN - + 52 + COUNT( 54 + 57 * + 20 ) THEN - 12 DIV 67 ELSE NULLIF ( - COUNT( ALL + 53 ), CASE 1 WHEN + ( + 72 ) THEN COALESCE ( 93, + 90 + - 83 * 58 ) ELSE NULL END ) END
----
-86

skipif mysql # not compatible
query I rowsort label-4225
SELECT 86 * + CASE 90 WHEN + 69 THEN NULL WHEN - + 52 + COUNT ( 54 + 57 * + 20 ) THEN - 12 / 67 ELSE NULLIF ( - COUNT ( ALL + 53 ), CASE 1 WHEN + ( + 72 ) THEN COALESCE ( 93, + 90 + - 83 * 58 ) ELSE NULL END ) END
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT 22 + - + CAST( + + 48 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-4226
SELECT 22 + - + CAST ( + + 48 AS INTEGER )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT COALESCE ( - 29, - - 43 + + 6, 8 * MIN( DISTINCT - CAST( NULL AS SIGNED ) + - 56 ), - 85 * + COALESCE ( 7, + 84 + + 60 * ( 48 * 11 ), 23 ) ) + 69 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4227
SELECT COALESCE ( - 29, - - 43 + + 6, 8 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) + - 56 ), - 85 * + COALESCE ( 7, + 84 + + 60 * ( 48 * 11 ), 23 ) ) + 69 AS col0
----
40

query II rowsort
SELECT 49 AS col2, 83 AS col2
----
49
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ( ( + COUNT( * ) ) ) + + 92
----
93

skipif mysql # not compatible
query I rowsort label-4229
SELECT ( ( + COUNT ( * ) ) ) + + 92
----
93

query I rowsort
SELECT 18 * - - 70 * + 60
----
75600

query I rowsort
SELECT DISTINCT 29 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL 10 + - MAX( ALL 87 )
----
-77

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL 10 + - MAX ( ALL 87 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT ALL 22 * 18 DIV + ( - 58 ) * + COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 22 * 18 / + ( - 58 ) * + COUNT ( * ) AS col0
----
-6

query I rowsort
SELECT DISTINCT - 58 + - 21
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT - COUNT( * ) col2, - 88
----
-1
-88

skipif mysql # not compatible
query II rowsort label-4235
SELECT - COUNT ( * ) col2, - 88
----
-1
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT + CAST( - ( + 96 ) AS SIGNED ) + + - 45
----
-141

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + CAST ( - ( + 96 ) AS INTEGER ) + + - 45
----
-141

query I rowsort
SELECT ALL + 25 + 26 AS col2
----
51

query I rowsort
SELECT ( + + NULLIF ( + 46, + 77 + + 16 + - 69 ) ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4239
SELECT + CAST( + + ( 9 ) AS SIGNED ) AS col1, + 57
----
9
57

skipif mysql # not compatible
query II rowsort label-4239
SELECT + CAST ( + + ( 9 ) AS INTEGER ) AS col1, + 57
----
9
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + 99 DIV - - COUNT( * ) + 3 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-4240
SELECT + 99 / - - COUNT ( * ) + 3 AS col2
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4241
SELECT ALL 69 + + COUNT( - 98 ) AS col2, + 37 AS col1
----
70
37

skipif mysql # not compatible
query II rowsort label-4241
SELECT ALL 69 + + COUNT ( - 98 ) AS col2, + 37 AS col1
----
70
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT + - 58, COUNT( * ) * - 41 - + COUNT( * ) * - 46 * 59 AS col1
----
-58
2673

skipif mysql # not compatible
query II rowsort label-4242
SELECT + - 58, COUNT ( * ) * - 41 - + COUNT ( * ) * - 46 * 59 AS col1
----
-58
2673

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4243
SELECT DISTINCT + 42 + - 39 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + 42 + - 39 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 9 + - 59
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT 50 * - CASE - 96 WHEN 10 * + COUNT( * ) * - 61 THEN - 32 WHEN + 4 THEN COUNT( * ) ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT 50 * - CASE - 96 WHEN 10 * + COUNT ( * ) * - 61 THEN - 32 WHEN + 4 THEN COUNT ( * ) ELSE NULL END * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 81 - 63 + 43 AS col1
----
61

query I rowsort
SELECT - 97 * 7 * - - 76 + + 61 AS col0
----
-51543

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT DISTINCT - - MIN( DISTINCT + 48 ) * 97
----
4656

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT - - MIN ( DISTINCT + 48 ) * 97
----
4656

query I rowsort
SELECT - 98 * - - 71 + - 74 AS col2
----
-7032

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT DISTINCT - MIN( DISTINCT + 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - MIN ( DISTINCT + 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL - - COUNT( 16 )
----
1

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL - - COUNT ( 16 )
----
1

query II rowsort
SELECT + 89 AS col0, 47 AS col0
----
89
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT ALL - CAST( + 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - CAST ( + 96 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT - COALESCE ( + COUNT( * ), - - 19 + + 89 + + + 81 * - 45 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - - 19 + + 89 + + + 81 * - 45 ) col1
----
-1

query I rowsort
SELECT ALL - 82 * 21 AS col0
----
-1722

query II rowsort
SELECT 27 AS col1, - 67
----
27
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT MIN( DISTINCT - ( + 79 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT MIN ( DISTINCT - ( + 79 ) )
----
-79

query I rowsort
SELECT 86 * - 95 AS col2
----
-8170

query I rowsort
SELECT 22 * + 84 col1
----
1848

query I rowsort
SELECT 93 - 99
----
-6

query I rowsort
SELECT 47 * 3 - 30
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL COALESCE ( - - COUNT( * ), - - 15 * + - 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL COALESCE ( - - COUNT ( * ), - - 15 * + - 8 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL + 47 + + COUNT( ALL + 23 )
----
48

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL + 47 + + COUNT ( ALL + 23 )
----
48

query I rowsort
SELECT DISTINCT ( COALESCE ( 43, - 41 - + 72, + 51 ) ) + ( 96 ) AS col1
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT - 99 DIV - + 88 col1
----
1

skipif mysql # not compatible
query I rowsort label-4265
SELECT - 99 / - + 88 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - COUNT( * ) - - + MIN( + 69 ) * - 25
----
-1726

skipif mysql # not compatible
query I rowsort label-4266
SELECT - COUNT ( * ) - - + MIN ( + 69 ) * - 25
----
-1726

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4267
SELECT ALL 28 DIV + 51, + CASE - + 56 WHEN - + MIN( DISTINCT - - ( + 38 ) ) - 67 THEN NULL WHEN + 31 THEN NULL WHEN 73 THEN 58 END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT ALL 28 / + 51, + CASE - + 56 WHEN - + MIN ( DISTINCT - - ( + 38 ) ) - 67 THEN NULL WHEN + 31 THEN NULL WHEN 73 THEN 58 END AS col2
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4268
SELECT ALL - CAST( NULL AS DECIMAL ) + - ( + - 84 ) + + COUNT( * ) + 63 + - ( - CAST( 66 AS SIGNED ) ) + 51 * - 93 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - CAST ( NULL AS REAL ) + - ( + - 84 ) + + COUNT ( * ) + 63 + - ( - CAST ( 66 AS INTEGER ) ) + 51 * - 93 * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 56 + - 46 col2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4270
SELECT ALL + 90 AS col2, 88 + + 44 + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL + 90 AS col2, 88 + + 44 + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0
----
90
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4271
SELECT + 82, 38 + 30 DIV + 89 AS col2, COUNT( * ) * + + 80 AS col1
----
82
38
80

skipif mysql # not compatible
query III rowsort label-4271
SELECT + 82, 38 + 30 / + 89 AS col2, COUNT ( * ) * + + 80 AS col1
----
82
38
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT 42 * + - CASE - - 54 WHEN 89 THEN + 97 * 72 WHEN 95 THEN 83 ELSE NULL END / MIN( ALL 69 ) + CAST( ( 4 ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT 42 * + - CASE - - 54 WHEN 89 THEN + 97 * 72 WHEN 95 THEN 83 ELSE NULL END / MIN ( ALL 69 ) + CAST ( ( 4 ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4273
SELECT ALL + COUNT( * ) AS col1, 47 AS col0
----
1
47

skipif mysql # not compatible
query II rowsort label-4273
SELECT ALL + COUNT ( * ) AS col1, 47 AS col0
----
1
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT - 84 DIV + ( - 91 ) + + 53
----
53

skipif mysql # not compatible
query I rowsort label-4274
SELECT - 84 / + ( - 91 ) + + 53
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4275
SELECT + - 58 + - CAST( + 31 AS SIGNED ) + + 18 + + 44 DIV + ( - 97 ) * 50 DIV 79
----
-71

skipif mysql # not compatible
query I rowsort label-4275
SELECT + - 58 + - CAST ( + 31 AS INTEGER ) + + 18 + + 44 / + ( - 97 ) * 50 / 79
----
-71

query I rowsort
SELECT ALL - 52 * - + 52 + - 90
----
2614

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + MIN( DISTINCT - - 65 ) * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4277
SELECT + MIN ( DISTINCT - - 65 ) * + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT + - 95, - COUNT( * ) AS col0
----
-95
-1

skipif mysql # not compatible
query II rowsort label-4278
SELECT + - 95, - COUNT ( * ) AS col0
----
-95
-1

query I rowsort
SELECT ALL - 26 * + + 39 - CASE 97 WHEN - 55 + + + 72 / 71 THEN - 77 + - 28 ELSE NULL END + + 30 AS col1
----
NULL

query I rowsort
SELECT + + 98 col2
----
98

query II rowsort
SELECT + 17, 34 + + - 6 AS col0
----
17
28

query II rowsort
SELECT ALL + 85, - 91 AS col1
----
85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT 55 * + + COUNT( * ) + + MIN( - 30 ) - - + 55 - + CASE 96 WHEN 73 * - CASE NULLIF ( + 40, SUM( + 69 ) ) WHEN - 79 + 81 * 24 THEN COUNT( - 30 ) ELSE NULL END THEN NULL WHEN - 97 THEN + 77 ELSE 96 * + 71 - + 83 END DIV - ( - 97 + 35 ) * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4283
SELECT 55 * + + COUNT ( * ) + + MIN ( - 30 ) - - + 55 - + CASE 96 WHEN 73 * - CASE NULLIF ( + 40, SUM ( + 69 ) ) WHEN - 79 + 81 * 24 THEN COUNT ( - 30 ) ELSE NULL END THEN NULL WHEN - 97 THEN + 77 ELSE 96 * + 71 - + 83 END / - ( - 97 + 35 ) * + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT + 99 DIV - + MAX( ALL + ( + - 40 ) ) + - + 57
----
-55

skipif mysql # not compatible
query I rowsort label-4284
SELECT + 99 / - + MAX ( ALL + ( + - 40 ) ) + - + 57
----
-55

query II rowsort
SELECT DISTINCT + 62, + 68 col2
----
62
68

query II rowsort
SELECT ALL + + 61 col0, + 62 AS col2
----
61
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT + + 31 DIV + ( + + 83 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4287
SELECT + + 31 / + ( + + 83 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT + 31 - 65 DIV + 53 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4288
SELECT + 31 - 65 / + 53 AS col0
----
30

query II rowsort
SELECT + ( - 14 ) AS col0, - 64 * - 87
----
-14
5568

query II rowsort
SELECT ALL - 51 * + + 74 * 50 AS col2, - NULLIF ( + 1, + 42 )
----
-188700
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT 15 * + 92 + - CAST( - 89 AS SIGNED )
----
1469

skipif mysql # not compatible
query I rowsort label-4291
SELECT 15 * + 92 + - CAST ( - 89 AS INTEGER )
----
1469

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL + SUM( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + SUM ( + 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + 95 + + MAX( + 25 )
----
120

skipif mysql # not compatible
query I rowsort label-4293
SELECT + 95 + + MAX ( + 25 )
----
120

query I rowsort
SELECT ALL + 86 * + 50 + + COALESCE ( + + 31, 3, + 97 )
----
4331

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT + 71 + - + 11 AS col1, COUNT( * ) * + 79
----
60
79

skipif mysql # not compatible
query II rowsort label-4295
SELECT + 71 + - + 11 AS col1, COUNT ( * ) * + 79
----
60
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT - 77 - + - ( + COUNT( + 73 ) ) * + - SUM( - 49 ) DIV COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4296
SELECT - 77 - + - ( + COUNT ( + 73 ) ) * + - SUM ( - 49 ) / COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL - COUNT( * ) * - ( - 87 ) + 93 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - COUNT ( * ) * - ( - 87 ) + 93 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL 61 * - + COUNT( * ) + + 68
----
7

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL 61 * - + COUNT ( * ) + + 68
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL + ( COUNT( ALL - 63 ) ) * 6 * - 29 + ( + - CAST( + 49 AS SIGNED ) )
----
-223

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + ( COUNT ( ALL - 63 ) ) * 6 * - 29 + ( + - CAST ( + 49 AS INTEGER ) )
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL + COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL + COUNT ( * ) + - 82
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - MAX( + + 49 ) * - 13 + - 34 col0
----
603

skipif mysql # not compatible
query I rowsort label-4301
SELECT - MAX ( + + 49 ) * - 13 + - 34 col0
----
603

query I rowsort
SELECT DISTINCT ( - 29 ) AS col0
----
-29

query I rowsort
SELECT ALL + 89 + - 30 col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT ALL + CAST( NULL AS SIGNED ) + - 14 * - 73 * 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + CAST ( NULL AS INTEGER ) + - 14 * - 73 * 67 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4305
SELECT - CAST( 34 AS SIGNED ), MIN( ALL - 19 ) AS col0
----
-34
-19

skipif mysql # not compatible
query II rowsort label-4305
SELECT - CAST ( 34 AS INTEGER ), MIN ( ALL - 19 ) AS col0
----
-34
-19

query I rowsort
SELECT ALL ( 59 ) AS col2
----
59

query II rowsort
SELECT ALL + 89 + + + 24 AS col1, 67 AS col1
----
113
67

query I rowsort
SELECT - 68 * + 96
----
-6528

query I rowsort
SELECT ALL - 22 - 32 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL - NULLIF ( + - 24, 33 * + 44 / COUNT( * ) * - - 35 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - NULLIF ( + - 24, 33 * + 44 / COUNT ( * ) * - - 35 ) AS col2
----
24

query I rowsort
SELECT ALL + + 40 - - + 99 AS col0
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4312
SELECT - + COUNT( * ) * COUNT( * ) col2, 77 + + + 59 + - 91 DIV + 33 AS col1
----
-1
134

skipif mysql # not compatible
query II rowsort label-4312
SELECT - + COUNT ( * ) * COUNT ( * ) col2, 77 + + + 59 + - 91 / + 33 AS col1
----
-1
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL - NULLIF ( + ( - COUNT( DISTINCT 32 ) ), - 73 + + + 10 ) * - COUNT( ALL 7 ) * 23 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - NULLIF ( + ( - COUNT ( DISTINCT 32 ) ), - 73 + + + 10 ) * - COUNT ( ALL 7 ) * 23 AS col2
----
-23

query I rowsort
SELECT DISTINCT - 14 - - 6
----
-8

query I rowsort
SELECT - 13 + + + 56
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL - ( - COUNT( * ) ) - - - 39
----
-38

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - ( - COUNT ( * ) ) - - - 39
----
-38

query I rowsort
SELECT + 40 * - - 68 + + 88 * - 94
----
-5552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT ALL + + COALESCE ( - CASE NULLIF ( - NULLIF ( - NULLIF ( 25, COUNT( * ) * COUNT( + 46 ) ), 81 ), COUNT( * ) * - COUNT( * ) ) WHEN + AVG ( ALL + ( - 6 ) ) + + 85 THEN - 16 ELSE + 89 * CAST( NULL AS SIGNED ) + + 40 END, 73 * - 6 ) AS col1
----
-438

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL + + COALESCE ( - CASE NULLIF ( - NULLIF ( - NULLIF ( 25, COUNT ( * ) * COUNT ( + 46 ) ), 81 ), COUNT ( * ) * - COUNT ( * ) ) WHEN + AVG ( ALL + ( - 6 ) ) + + 85 THEN - 16 ELSE + 89 * CAST ( NULL AS INTEGER ) + + 40 END, 73 * - 6 ) AS col1
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT 26 * - COUNT( + + 84 ) - - - 80 + - 33
----
-139

skipif mysql # not compatible
query I rowsort label-4319
SELECT 26 * - COUNT ( + + 84 ) - - - 80 + - 33
----
-139

query I rowsort
SELECT DISTINCT + - 27 AS col0
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-4321
SELECT - + 35 * - + 23 col0, 51 + 83 DIV - ( - 14 )
----
805
56

skipif mysql # not compatible
query II rowsort label-4321
SELECT - + 35 * - + 23 col0, 51 + 83 / - ( - 14 )
----
805
56

query I rowsort
SELECT + NULLIF ( 2, + NULLIF ( - + 35, + 25 ) ) AS col1
----
2

query I rowsort
SELECT DISTINCT + + ( - 30 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4324
SELECT ALL ( + - 38 ) * + + CAST( - 16 AS SIGNED ) * + 16 DIV COUNT( * )
----
9728

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL ( + - 38 ) * + + CAST ( - 16 AS INTEGER ) * + 16 / COUNT ( * )
----
9728

query I rowsort
SELECT + 7 + 82
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL NULLIF ( CASE COALESCE ( COUNT( * ), + 72 ) WHEN - + 91 THEN NULL WHEN 87 * + ( 3 ) - 91 THEN 43 * + COUNT( * ) END, 83 ) * + ( - 16 + + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL NULLIF ( CASE COALESCE ( COUNT ( * ), + 72 ) WHEN - + 91 THEN NULL WHEN 87 * + ( 3 ) - 91 THEN 43 * + COUNT ( * ) END, 83 ) * + ( - 16 + + 17 )
----
NULL

query I rowsort
SELECT + COALESCE ( + 91, - 69 ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT CAST( + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-4328
SELECT CAST ( + 71 AS INTEGER )
----
71

query II rowsort
SELECT DISTINCT - 64, + ( - 62 ) AS col1
----
-64
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4330
SELECT ALL ( + 0 ) + - 4 + + 10 DIV - COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL ( + 0 ) + - 4 + + 10 / - COUNT ( * ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT COUNT( * ) * + + 25 + - - 28 + - 18
----
35

skipif mysql # not compatible
query I rowsort label-4331
SELECT COUNT ( * ) * + + 25 + - - 28 + - 18
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4332
SELECT 95 AS col2, - 27 + + ( COUNT( * ) ) DIV + COUNT( * ) + 75
----
95
49

skipif mysql # not compatible
query II rowsort label-4332
SELECT 95 AS col2, - 27 + + ( COUNT ( * ) ) / + COUNT ( * ) + 75
----
95
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL CASE + COUNT( * ) WHEN ( + + 47 ) + - 87 THEN NULL WHEN + + 24 / + 10 THEN NULL WHEN + + 98 THEN NULL ELSE 93 * CAST( NULL AS SIGNED ) + + 12 * + COUNT( * ) END + MAX( 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL CASE + COUNT ( * ) WHEN ( + + 47 ) + - 87 THEN NULL WHEN + + 24 / + 10 THEN NULL WHEN + + 98 THEN NULL ELSE 93 * CAST ( NULL AS INTEGER ) + + 12 * + COUNT ( * ) END + MAX ( 29 )
----
NULL

query I rowsort
SELECT ALL 29 + - 30 AS col2
----
-1

query I rowsort
SELECT 28 * 27 col0
----
756

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT DISTINCT 53 DIV - 5
----
-10

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT 53 / - 5
----
-10

query I rowsort
SELECT ALL + 20 + 53 + - - 2 col2
----
75

query I rowsort
SELECT ALL NULLIF ( + 62, - 16 ) + + 53 col1
----
115

onlyif mysql # DIV for integer division: 
query II rowsort label-4339
SELECT - 19, 94 DIV + COALESCE ( + 59, + 94 * + 56 + - 13 * - NULLIF ( + 13, + 96 * + 25 ) * - 21 ) * 1 AS col1
----
-19
1

skipif mysql # not compatible
query II rowsort label-4339
SELECT - 19, 94 / + COALESCE ( + 59, + 94 * + 56 + - 13 * - NULLIF ( + 13, + 96 * + 25 ) * - 21 ) * 1 AS col1
----
-19
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT 47 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-4340
SELECT 47 / - + 77
----
0

query II rowsort
SELECT - 73, + 88 AS col1
----
-73
88

query I rowsort
SELECT COALESCE ( + 62, + - 20, + - 2 ) - - - 20 AS col2
----
42

query II rowsort
SELECT 8 col1, - 71 AS col2
----
8
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4344
SELECT 37 - - COUNT( * ) + 11 AS col0, - 83 - - - 54
----
49
-137

skipif mysql # not compatible
query II rowsort label-4344
SELECT 37 - - COUNT ( * ) + 11 AS col0, - 83 - - - 54
----
49
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL + - SUM( + - 22 ) - ( - CASE 56 WHEN 44 * 21 + + 46 THEN NULL ELSE 76 END ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + - SUM ( + - 22 ) - ( - CASE 56 WHEN 44 * 21 + + 46 THEN NULL ELSE 76 END ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL NULLIF ( + NULLIF ( - COUNT( ALL 41 ), - 69 ), + - 23 + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL NULLIF ( + NULLIF ( - COUNT ( ALL 41 ), - 69 ), + - 23 + 4 )
----
-1

query I rowsort
SELECT DISTINCT - ( - ( + 77 ) )
----
77

query I rowsort
SELECT - 32 + 13
----
-19

query I rowsort
SELECT - 1 - - 85
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4350
SELECT ALL + - 8 - CASE - 72 WHEN + - 65 THEN MIN( + + 30 ) END AS col2, CAST( NULL AS DECIMAL ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4350
SELECT ALL + - 8 - CASE - 72 WHEN + - 65 THEN MIN ( + + 30 ) END AS col2, CAST ( NULL AS REAL ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4351
SELECT + CASE + - 91 WHEN + COALESCE ( - 64, + + MAX( ALL 83 ), 53 + - ( - 8 ) - + 17 ) THEN + ( + 23 ) WHEN - COUNT( - 36 ) THEN 58 ELSE + ( 4 ) DIV 12 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT + CASE + - 91 WHEN + COALESCE ( - 64, + + MAX ( ALL 83 ), 53 + - ( - 8 ) - + 17 ) THEN + ( + 23 ) WHEN - COUNT ( - 36 ) THEN 58 ELSE + ( 4 ) / 12 END AS col1
----
0

query I rowsort
SELECT - + NULLIF ( + 30, 41 - - - 0 )
----
-30

query II rowsort
SELECT DISTINCT 90 col2, - 22
----
90
-22

query I rowsort
SELECT 35 + 48 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT ALL - 19 DIV - ( - + 3 )
----
-6

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - 19 / - ( - + 3 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4356
SELECT - - ( NULLIF ( + MIN( ALL + 0 ), + CAST( + + 45 AS SIGNED ) DIV ( - 82 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT - - ( NULLIF ( + MIN ( ALL + 0 ), + CAST ( + + 45 AS INTEGER ) / ( - 82 ) ) ) AS col0
----
NULL

query II rowsort
SELECT - + 12 AS col2, 1 + + 23 * + 89 + - + 68 * 71
----
-12
-2780

query I rowsort
SELECT + 81 + - 3 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL - 69 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - 69 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT - SUM( 98 ) / - 72 + - + CAST( NULL AS SIGNED ) + + COUNT( * ) * - SUM( DISTINCT ( + 61 ) ) + 74 * + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT - SUM ( 98 ) / - 72 + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - SUM ( DISTINCT ( + 61 ) ) + 74 * + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT ALL - - COUNT( * ) DIV 97 * ( + 12 ) + 37
----
37

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - - COUNT ( * ) / 97 * ( + 12 ) + 37
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT ALL - + 65, COUNT( * ) AS col2
----
-65
1

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL - + 65, COUNT ( * ) AS col2
----
-65
1

query I rowsort
SELECT DISTINCT + ( NULLIF ( 6, - 71 ) ) * - - 43
----
258

query I rowsort
SELECT ALL - + 28 * - 81 + + ( + ( + - 38 ) )
----
2230

onlyif mysql # DIV for integer division: 
query I rowsort label-4365
SELECT + ( + + 8 ) DIV + 88 * - - 48 + - - 31 + + 64 + - 65 * 11 + + 50 * - 93 AS col1
----
-5270

skipif mysql # not compatible
query I rowsort label-4365
SELECT + ( + + 8 ) / + 88 * - - 48 + - - 31 + + 64 + - 65 * 11 + + 50 * - 93 AS col1
----
-5270

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT - 31 + + - SUM( + 26 ) + - 51 + + + 44 * - 83 AS col2
----
-3760

skipif mysql # not compatible
query I rowsort label-4366
SELECT - 31 + + - SUM ( + 26 ) + - 51 + + + 44 * - 83 AS col2
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL + CASE + COUNT( ALL - - 23 ) WHEN + 23 THEN + - 22 WHEN - COUNT( * ) * - 29 THEN - AVG ( DISTINCT + 2 ) END + - 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + CASE + COUNT ( ALL - - 23 ) WHEN + 23 THEN + - 22 WHEN - COUNT ( * ) * - 29 THEN - AVG ( DISTINCT + 2 ) END + - 32 AS col1
----
NULL

query I rowsort
SELECT 93 + + - 75 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 51 * - - 27 + + + COUNT( * ) col2
----
1378

skipif mysql # not compatible
query I rowsort label-4369
SELECT 51 * - - 27 + + + COUNT ( * ) col2
----
1378

query I rowsort
SELECT DISTINCT - ( - 25 ) + 11 * - 25 AS col1
----
-250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT - COUNT( * ) * - AVG ( - + 77 ) + + ( + + 59 ) / - 54 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT - COUNT ( * ) * - AVG ( - + 77 ) + + ( + + 59 ) / - 54 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT ALL CAST( - - 34 AS SIGNED ) + - 7 * + - 95 AS col0
----
699

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL CAST ( - - 34 AS INTEGER ) + - 7 * + - 95 AS col0
----
699

query I rowsort
SELECT DISTINCT 77 * ( + 33 ) col2
----
2541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4374
SELECT ALL 12 + - CAST( NULL AS DECIMAL ) * 90 + + 24, SUM( DISTINCT 81 ) * + CAST( NULL AS SIGNED ) * + 6 + - COUNT( - 84 ) + 84 * + 81 + 15 / - 69 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL 12 + - CAST ( NULL AS REAL ) * 90 + + 24, SUM ( DISTINCT 81 ) * + CAST ( NULL AS INTEGER ) * + 6 + - COUNT ( - 84 ) + 84 * + 81 + 15 / - 69 col2
----
NULL
NULL

query I rowsort
SELECT 37 + + - 87
----
-50

query I rowsort
SELECT ALL - 16 + - ( + 28 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL - ( - MIN( + 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - ( - MIN ( + 68 ) )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4378
SELECT - CAST( - + 36 AS SIGNED ) * + + CAST( 35 AS SIGNED ) + + + 66 + + SUM( - ( - + 11 ) ) AS col1
----
1337

skipif mysql # not compatible
query I rowsort label-4378
SELECT - CAST ( - + 36 AS INTEGER ) * + + CAST ( 35 AS INTEGER ) + + + 66 + + SUM ( - ( - + 11 ) ) AS col1
----
1337

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - 84 * + + COUNT( * ) + + 32 + - - 66 + COUNT( ALL + + 79 ) + + 15 + - 69 + + ( COUNT( * ) ) * + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4379
SELECT - 84 * + + COUNT ( * ) + + 32 + - - 66 + COUNT ( ALL + + 79 ) + + 15 + - 69 + + ( COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT COUNT( * ) * + - 92 + - + 79 * - + CASE - COUNT( * ) WHEN - 43 + - COUNT( * ) THEN + 78 + - COUNT( * ) END / COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT COUNT ( * ) * + - 92 + - + 79 * - + CASE - COUNT ( * ) WHEN - 43 + - COUNT ( * ) THEN + 78 + - COUNT ( * ) END / COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT 27 + + CAST( NULL AS SIGNED ) * 41 * - 21 * - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT 27 + + CAST ( NULL AS INTEGER ) * 41 * - 21 * - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT 63 * - + 93 * - + MAX( ALL + 93 ) col2
----
544887

skipif mysql # not compatible
query I rowsort label-4382
SELECT 63 * - + 93 * - + MAX ( ALL + 93 ) col2
----
544887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4383
SELECT COUNT( * ) + - + SUM( + + 65 ) * 17 DIV + NULLIF ( + 40, + 84 * 26 * - 35 * - 78 + + 32 )
----
-26

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( * ) + - + SUM ( + + 65 ) * 17 / + NULLIF ( + 40, + 84 * 26 * - 35 * - 78 + + 32 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT 75 * + COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-4384
SELECT 75 * + COUNT ( * ) col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4385
SELECT DISTINCT SUM( ALL 48 ), - CAST( NULL AS SIGNED ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4385
SELECT DISTINCT SUM ( ALL 48 ), - CAST ( NULL AS INTEGER ) AS col1
----
48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4386
SELECT ALL 46 - 86 - + - 84 DIV 13 + + 55 * - + COALESCE ( - 59, + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) * - 56 ) * - 44 col1
----
-142814

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL 46 - 86 - + - 84 / 13 + + 55 * - + COALESCE ( - 59, + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * - 56 ) * - 44 col1
----
-142814

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4387
SELECT 53 * - - 4, COUNT( * ) DIV - 86 * + + 35 - 42 AS col2
----
212
-42

skipif mysql # not compatible
query II rowsort label-4387
SELECT 53 * - - 4, COUNT ( * ) / - 86 * + + 35 - 42 AS col2
----
212
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT DISTINCT 63 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT 63 / - 39
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4389
SELECT - 63 * 43, 14 * - 19 * COUNT( * ) * - 23 col0
----
-2709
6118

skipif mysql # not compatible
query II rowsort label-4389
SELECT - 63 * 43, 14 * - 19 * COUNT ( * ) * - 23 col0
----
-2709
6118

query II rowsort
SELECT + 25 * + 96 col1, + 80 + + + 27 AS col0
----
2400
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT COUNT( * ) * - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-4391
SELECT COUNT ( * ) * - + 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4392
SELECT + 99 + 66 * 94 DIV - COUNT( * )
----
-6105

skipif mysql # not compatible
query I rowsort label-4392
SELECT + 99 + 66 * 94 / - COUNT ( * )
----
-6105

onlyif mysql # aggregate syntax: 
query II rowsort label-4393
SELECT 63 * COUNT( * ) AS col2, COALESCE ( - - 34, + 22 ) AS col0
----
63
34

skipif mysql # not compatible
query II rowsort label-4393
SELECT 63 * COUNT ( * ) AS col2, COALESCE ( - - 34, + 22 ) AS col0
----
63
34

query I rowsort
SELECT ALL - 90 * + 30 + + - 20
----
-2720

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT ALL 91 * + + 0 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL 91 * + + 0 / - 73 AS col0
----
0

query I rowsort
SELECT 81 * + 19
----
1539

query I rowsort
SELECT 42 * - + ( - 77 )
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL COUNT( * ) + + 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL COUNT ( * ) + + 5 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL + + 5 + COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + + 5 + COUNT ( * ) col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4400
SELECT DISTINCT COUNT( + 28 ) + - COUNT( * ) + 17 col2, + 23 DIV 44 + - + 85
----
17
-85

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT COUNT ( + 28 ) + - COUNT ( * ) + 17 col2, + 23 / 44 + - + 85
----
17
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT + COUNT( * ) * - - 83 * - 16 AS col2
----
-1328

skipif mysql # not compatible
query I rowsort label-4401
SELECT + COUNT ( * ) * - - 83 * - 16 AS col2
----
-1328

onlyif mysql # aggregate syntax: 
query II rowsort label-4402
SELECT - + ( - - 2 ), + 31 * + COUNT( * ) - - 46 col1
----
-2
77

skipif mysql # not compatible
query II rowsort label-4402
SELECT - + ( - - 2 ), + 31 * + COUNT ( * ) - - 46 col1
----
-2
77

query I rowsort
SELECT + - ( 89 ) - 23
----
-112

query I rowsort
SELECT 65 * + + 81 - 53 + - 51 AS col0
----
5161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT - 36 * ( CAST( - + COALESCE ( - 65, + 9 * + + 74, - 63 ) AS SIGNED ) ) * + 20 + + 90
----
-46710

skipif mysql # not compatible
query I rowsort label-4405
SELECT - 36 * ( CAST ( - + COALESCE ( - 65, + 9 * + + 74, - 63 ) AS INTEGER ) ) * + 20 + + 90
----
-46710

query I rowsort
SELECT NULLIF ( + ( - 70 ), 21 + 68 ) col0
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4407
SELECT ALL 43 * - COUNT( * ) DIV 63 + + 49 + 65
----
114

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL 43 * - COUNT ( * ) / 63 + + 49 + 65
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT ALL + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4409
SELECT ALL - 88 * 9 DIV - 67 + + - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - 88 * 9 / - 67 + + - COUNT ( * ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4410
SELECT DISTINCT - CAST( 37 AS SIGNED ) * - COUNT( * ) * - COUNT( * ) + - 62 * - ( + 49 ) + - - 28 AS col1
----
3029

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT - CAST ( 37 AS INTEGER ) * - COUNT ( * ) * - COUNT ( * ) + - 62 * - ( + 49 ) + - - 28 AS col1
----
3029

query I rowsort
SELECT DISTINCT + NULLIF ( 42, + 78 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT + NULLIF ( + - 86, + + COUNT( * ) / - - AVG ( - + CAST( - NULLIF ( - - 8, + - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) + + 11 )
----
-86

skipif mysql # not compatible
query I rowsort label-4412
SELECT + NULLIF ( + - 86, + + COUNT ( * ) / - - AVG ( - + CAST ( - NULLIF ( - - 8, + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) + + 11 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT NULLIF ( 42, - 65 * + + SUM( + 1 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4413
SELECT NULLIF ( 42, - 65 * + + SUM ( + 1 ) )
----
42

query I rowsort
SELECT - 64 * - CASE WHEN ( NULL ) <= NULL THEN NULL ELSE + 94 END * - - 43 * + 48 AS col0
----
12417024

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL + CASE - 6 WHEN + COUNT( * ) THEN + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + CASE - 6 WHEN + COUNT ( * ) THEN + 2 END
----
NULL

query I rowsort
SELECT DISTINCT - 78 * - 10 - - 19 AS col2
----
799

query I rowsort
SELECT - 41 * + 74 AS col1
----
-3034

query I rowsort
SELECT DISTINCT + ( - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL 22 * + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL 22 * + COUNT ( * ) AS col2
----
22

query I rowsort
SELECT - 28 * 76 AS col2
----
-2128

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT + SUM( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4421
SELECT + SUM ( 74 )
----
74

query I rowsort
SELECT - - 80 + - - 25 + 85 + 29
----
219

query I rowsort
SELECT DISTINCT - 52 * + 41 AS col2
----
-2132

query I rowsort
SELECT - 23 - + 8
----
-31

query II rowsort
SELECT + 41, + 93 AS col0
----
41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT + + COUNT( * ) * + + 23 * + 92 * - + COUNT( * ) * 98
----
-207368

skipif mysql # not compatible
query I rowsort label-4426
SELECT + + COUNT ( * ) * + + 23 * + 92 * - + COUNT ( * ) * 98
----
-207368

query I rowsort
SELECT - 36 + 44 AS col1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT - - 97 DIV + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4428
SELECT - - 97 / + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT + 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT + 91 + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT DISTINCT - 67 col2, - 96 * + COUNT( * ) - - 2 AS col0
----
-67
-94

skipif mysql # not compatible
query II rowsort label-4430
SELECT DISTINCT - 67 col2, - 96 * + COUNT ( * ) - - 2 AS col0
----
-67
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT + 63 DIV + 56 * - NULLIF ( 98, - 19 + - + 74 + - 38 * + + 45 ) DIV - 58 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4431
SELECT + 63 / + 56 * - NULLIF ( 98, - 19 + - + 74 + - 38 * + + 45 ) / - 58 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL + 78 + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + 78 + COUNT ( * ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT + + CAST( - 83 AS SIGNED ) - - 79 * + + 84 + + 50 + - 22 AS col0
----
6581

skipif mysql # not compatible
query I rowsort label-4433
SELECT + + CAST ( - 83 AS INTEGER ) - - 79 * + + 84 + + 50 + - 22 AS col0
----
6581

query I rowsort
SELECT - - 3 + + 60
----
63

query I rowsort
SELECT ALL 78 + 69
----
147

query I rowsort
SELECT + ( + - 15 ) + - - 45
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4437
SELECT + - ( - - COUNT( DISTINCT + 16 ) ) * + - 62 + - COALESCE ( + 68, 94, COUNT( * ) * + 11 DIV - - 29 * 55 + 50, - 44 ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-4437
SELECT + - ( - - COUNT ( DISTINCT + 16 ) ) * + - 62 + - COALESCE ( + 68, 94, COUNT ( * ) * + 11 / - - 29 * 55 + 50, - 44 ) col1
----
-6

query I rowsort
SELECT + 66 + + NULLIF ( + 13, - - 40 )
----
79

query I rowsort
SELECT - 36 - - 96
----
60

query I rowsort
SELECT DISTINCT 10 * + 42
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT + 7 + + - 61 + + ( - 86 ) * - - 0 * + ( COUNT( 7 ) ) DIV 80 * 90 DIV + 55
----
-54

skipif mysql # not compatible
query I rowsort label-4441
SELECT + 7 + + - 61 + + ( - 86 ) * - - 0 * + ( COUNT ( 7 ) ) / 80 * 90 / + 55
----
-54

query I rowsort
SELECT ALL 13 + - ( - 55 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT DISTINCT COUNT( ALL - 4 ) AS col0, 85
----
1
85

skipif mysql # not compatible
query II rowsort label-4443
SELECT DISTINCT COUNT ( ALL - 4 ) AS col0, 85
----
1
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT ALL COUNT( * ) AS col2, 66 AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-4444
SELECT ALL COUNT ( * ) AS col2, 66 AS col1
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL + 60 / - - CASE - COALESCE ( + + 94, - MIN( ALL 77 ) ) WHEN - MIN( ALL 73 ) THEN - 20 END / 14 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + 60 / - - CASE - COALESCE ( + + 94, - MIN ( ALL 77 ) ) WHEN - MIN ( ALL 73 ) THEN - 20 END / 14 + - 5
----
NULL

query II rowsort
SELECT ALL + 66, - 17 * - 87 * - 31 + + 47 AS col2
----
66
-45802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4447
SELECT CAST( - 92 AS SIGNED ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4447
SELECT CAST ( - 92 AS INTEGER ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT CAST( 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4448
SELECT CAST ( 85 AS INTEGER ) AS col2
----
85

query I rowsort
SELECT - 53 + 38 * + + 57 - - 63 + - 64 AS col2
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4450
SELECT CAST( - - ( + COUNT( * ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4450
SELECT CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 82 + + + 54 * 83
----
4564

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + 41 * + COUNT( * ) * + 1 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4452
SELECT + 41 * + COUNT ( * ) * + 1 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - COUNT( * ) * - - 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4453
SELECT - COUNT ( * ) * - - 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 50 * + 51 + COUNT( * )
----
-2549

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 50 * + 51 + COUNT ( * )
----
-2549

onlyif mysql # DIV for integer division: 
query II rowsort label-4455
SELECT ( + - 52 ) AS col1, - 63 * 82 * 61 DIV + + 3 AS col0
----
-52
-105042

skipif mysql # not compatible
query II rowsort label-4455
SELECT ( + - 52 ) AS col1, - 63 * 82 * 61 / + + 3 AS col0
----
-52
-105042

onlyif mysql # DIV for integer division: 
query II rowsort label-4456
SELECT ALL + 11, 15 DIV 2 DIV 30 AS col2
----
11
0

skipif mysql # not compatible
query II rowsort label-4456
SELECT ALL + 11, 15 / 2 / 30 AS col2
----
11
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4457
SELECT ALL ( + + 65 ) DIV 63 * COUNT( DISTINCT - + CAST( NULL AS DECIMAL ) ) * + + 29 * - + 69 * 18 + + 44 col2
----
44

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL ( + + 65 ) / 63 * COUNT ( DISTINCT - + CAST ( NULL AS REAL ) ) * + + 29 * - + 69 * 18 + + 44 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - COUNT( * ) * + - 16 col0
----
16

skipif mysql # not compatible
query I rowsort label-4458
SELECT - COUNT ( * ) * + - 16 col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4459
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 58, 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-4459
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 58, 54 AS col2
----
NULL
54

query I rowsort
SELECT - 4 + + ( 37 )
----
33

query I rowsort
SELECT ALL + 36 * + 17 AS col2
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT + COUNT( - - 71 ) * + 68
----
68

skipif mysql # not compatible
query I rowsort label-4462
SELECT + COUNT ( - - 71 ) * + 68
----
68

query I rowsort
SELECT + NULLIF ( - 28, - - 41 ) * - + 17 + 39 AS col0
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL + 27 * + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + 27 * + COUNT ( * ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT + CAST( NULL AS SIGNED ) * + 41 + - COALESCE ( + ( - + 43 ), - COUNT( * ) + 74, + - 58 * - - MAX( ALL + 88 ) * + 76 + - 59, 0 ) + - 50 * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT + CAST ( NULL AS INTEGER ) * + 41 + - COALESCE ( + ( - + 43 ), - COUNT ( * ) + 74, + - 58 * - - MAX ( ALL + 88 ) * + 76 + - 59, 0 ) + - 50 * 99 AS col0
----
NULL

query I rowsort
SELECT - 98 * 28 col2
----
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - MAX( + - ( - + ( 32 ) ) ) + + MIN( 52 )
----
20

skipif mysql # not compatible
query I rowsort label-4467
SELECT - MAX ( + - ( - + ( 32 ) ) ) + + MIN ( 52 )
----
20

query II rowsort
SELECT DISTINCT + + 46, - 96 AS col2
----
46
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - COUNT( * ) + + - 55 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4469
SELECT - COUNT ( * ) + + - 55 AS col0
----
-56

query I rowsort
SELECT - - 37 + + 12 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT ALL + + CASE - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN ( - - 95 ) THEN NULL WHEN + 1 THEN + + MAX( - ( + - CAST( 2 AS SIGNED ) ) ) - - SUM( DISTINCT 14 ) + - COUNT( * ) ELSE 86 + - 61 END
----
25

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL + + CASE - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN ( - - 95 ) THEN NULL WHEN + 1 THEN + + MAX ( - ( + - CAST ( 2 AS INTEGER ) ) ) - - SUM ( DISTINCT 14 ) + - COUNT ( * ) ELSE 86 + - 61 END
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4472
SELECT ALL 75 AS col0, 5 DIV - CAST( 50 AS SIGNED ) AS col2
----
75
0

skipif mysql # not compatible
query II rowsort label-4472
SELECT ALL 75 AS col0, 5 / - CAST ( 50 AS INTEGER ) AS col2
----
75
0

query I rowsort
SELECT - + 68 * 8 - 21 col1
----
-565

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT - + 77 + - 77 + + 9 - + - 5 + 9 * + 90 * - 32 DIV - 32 AS col0
----
670

skipif mysql # not compatible
query I rowsort label-4474
SELECT - + 77 + - 77 + + 9 - + - 5 + 9 * + 90 * - 32 / - 32 AS col0
----
670

query I rowsort
SELECT - 70 + + 29
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT + MIN( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4476
SELECT + MIN ( 30 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT ALL - - 22 + - COALESCE ( - + 3, - CAST( NULL AS SIGNED ) ) + 64 * - - NULLIF ( - - COUNT( * ), - COUNT( * ) * - COUNT( * ) / 46 )
----
89

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - - 22 + - COALESCE ( - + 3, - CAST ( NULL AS INTEGER ) ) + 64 * - - NULLIF ( - - COUNT ( * ), - COUNT ( * ) * - COUNT ( * ) / 46 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT ALL + ( - - 94 ) + - 69 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + ( - - 94 ) + - 69 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 88 + + 62 + 33 * + 12 col2
----
370

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT ALL + - 9 * - 34 AS col0, - 93 + - COUNT( * ) * + 70
----
306
-163

skipif mysql # not compatible
query II rowsort label-4480
SELECT ALL + - 9 * - 34 AS col0, - 93 + - COUNT ( * ) * + 70
----
306
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT CASE + - 91 WHEN CAST( NULL AS SIGNED ) THEN - - 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT CASE + - 91 WHEN CAST ( NULL AS INTEGER ) THEN - - 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT - 44, - COUNT( * ) AS col0
----
-44
-1

skipif mysql # not compatible
query II rowsort label-4482
SELECT - 44, - COUNT ( * ) AS col0
----
-44
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL + + COUNT( * ) - 70 + + + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + + COUNT ( * ) - 70 + + + COUNT ( * )
----
-68

query I rowsort
SELECT ( - 56 ) * + 80
----
-4480

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT COUNT( * ) * - 83, ( + 68 ) AS col1
----
-83
68

skipif mysql # not compatible
query II rowsort label-4485
SELECT COUNT ( * ) * - 83, ( + 68 ) AS col1
----
-83
68

query I rowsort
SELECT ( - - 68 ) + ( + 19 ) * - + 28
----
-464

query I rowsort
SELECT 30 - - 46 col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT 66 DIV SUM( DISTINCT + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT 66 / SUM ( DISTINCT + 99 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4489
SELECT ALL 29 * + - CASE 32 WHEN + - 92 - + 55 * - 87 + 38 THEN - - 17 END col1, 94 * - CAST( - 26 AS SIGNED ) + - COUNT( * ) AS col0
----
NULL
2443

skipif mysql # not compatible
query II rowsort label-4489
SELECT ALL 29 * + - CASE 32 WHEN + - 92 - + 55 * - 87 + 38 THEN - - 17 END col1, 94 * - CAST ( - 26 AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL
2443

query II rowsort
SELECT ALL 47 * - 72 AS col1, + 89
----
-3384
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT CASE 95 WHEN 61 THEN 48 WHEN 53 * 67 - - 48 - - 39 * + 57 + + 27 THEN ( - - 27 ) * - 73 WHEN COUNT( * ) THEN + 32 ELSE NULL END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT CASE 95 WHEN 61 THEN 48 WHEN 53 * 67 - - 48 - - 39 * + 57 + + 27 THEN ( - - 27 ) * - 73 WHEN COUNT ( * ) THEN + 32 ELSE NULL END * 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT CASE - 40 WHEN - 82 * - 80 * - - 2 + - 58 THEN - 63 END * - COUNT( DISTINCT - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT CASE - 40 WHEN - 82 * - 80 * - - 2 + - 58 THEN - 63 END * - COUNT ( DISTINCT - 14 )
----
NULL

query II rowsort
SELECT ALL 93 * - + 22, - 40 * ( + - 36 ) col2
----
-2046
1440

query I rowsort
SELECT 75 - - 77 col2
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-4495
SELECT 91 * + + 55 AS col0, 80 * - - 40 * 15 + - COUNT( * )
----
5005
47999

skipif mysql # not compatible
query II rowsort label-4495
SELECT 91 * + + 55 AS col0, 80 * - - 40 * 15 + - COUNT ( * )
----
5005
47999

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ( 19 ) * + - COUNT( * ) * 54
----
-1026

skipif mysql # not compatible
query I rowsort label-4496
SELECT ( 19 ) * + - COUNT ( * ) * 54
----
-1026

query I rowsort
SELECT DISTINCT - ( - 97 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT ALL + 77 + + - 52 - - 33 + + 29 + 23 * COUNT( DISTINCT - 23 ) * 87 * - CAST( NULL AS SIGNED ) / - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL + 77 + + - 52 - - 33 + + 29 + 23 * COUNT ( DISTINCT - 23 ) * 87 * - CAST ( NULL AS INTEGER ) / - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL + COUNT( * ) * + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + COUNT ( * ) * + 78 AS col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT ( - 12 ) DIV COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT ( - 12 ) / COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT MIN( ALL - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4501
SELECT MIN ( ALL - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL 15 * 97 + 17 * 74 * + MIN( ALL + 77 )
----
98321

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL 15 * 97 + 17 * 74 * + MIN ( ALL + 77 )
----
98321

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT DISTINCT + 84 + - 80 + + 78 - - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + 84 + - 80 + + 78 - - COUNT ( * )
----
83

query II rowsort
SELECT - 68 * + - 35, 74 * - + 66 * + + 7 + + + 16 AS col1
----
2380
-34172

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + 91 * + CASE + 34 WHEN - COUNT( * ) * - 40 - + ( + + 49 ) + 28 THEN + 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 91 * + CASE + 34 WHEN - COUNT ( * ) * - 40 - + ( + + 49 ) + 28 THEN + 40 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4506
SELECT + 34 + + COUNT( * ) - + 21 - + 98 + - 11 * 34 * - CAST( NULL AS SIGNED ) / - ( - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 34 + + COUNT ( * ) - + 21 - + 98 + - 11 * 34 * - CAST ( NULL AS INTEGER ) / - ( - 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL + 90 - + + 61 * - - COUNT( 31 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL + 90 - + + 61 * - - COUNT ( 31 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query III rowsort label-4508
SELECT ALL MIN( ALL + 93 ) AS col0, + 3 * + COUNT( ALL 8 ) + - ( + 10 ) * 70 AS col0, - + 37
----
93
-697
-37

skipif mysql # not compatible
query III rowsort label-4508
SELECT ALL MIN ( ALL + 93 ) AS col0, + 3 * + COUNT ( ALL 8 ) + - ( + 10 ) * 70 AS col0, - + 37
----
93
-697
-37

query I rowsort
SELECT 97 + - 19 + + 1 AS col0
----
79

query I rowsort
SELECT 73 - - NULLIF ( 94, 76 )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT 41 - CASE - 74 WHEN 65 THEN NULL WHEN - - COUNT( * ) / 96 + - MIN( DISTINCT 51 ) - - 78 * - 1 THEN NULL ELSE + 42 END + + 12 * + 33 * 70 AS col1
----
27719

skipif mysql # not compatible
query I rowsort label-4511
SELECT 41 - CASE - 74 WHEN 65 THEN NULL WHEN - - COUNT ( * ) / 96 + - MIN ( DISTINCT 51 ) - - 78 * - 1 THEN NULL ELSE + 42 END + + 12 * + 33 * 70 AS col1
----
27719

onlyif mysql # DIV for integer division: 
query II rowsort label-4512
SELECT - 38, + 70 * 46 DIV + - 73 + 52 AS col0
----
-38
8

skipif mysql # not compatible
query II rowsort label-4512
SELECT - 38, + 70 * 46 / + - 73 + 52 AS col0
----
-38
8

query II rowsort
SELECT DISTINCT 39 AS col2, 99 + + 47 AS col0
----
39
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL + CASE SUM( ( + + 26 ) ) WHEN + COUNT( * ) THEN NULL ELSE + 48 END * - 22
----
-1056

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + CASE SUM ( ( + + 26 ) ) WHEN + COUNT ( * ) THEN NULL ELSE + 48 END * - 22
----
-1056

query I rowsort
SELECT 21 * - - 6 AS col1
----
126

query I rowsort
SELECT 40 + - - 8
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL - 71 * - CAST( + + 1 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - 71 * - CAST ( + + 1 AS INTEGER )
----
71

query I rowsort
SELECT 46 * - 76
----
-3496

query II rowsort
SELECT DISTINCT - 33, 65 AS col2
----
-33
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL 99 / - CASE + ( + - 69 ) WHEN - COUNT( * ) * + - NULLIF ( + 62, ( 65 ) * + 70 * - 46 ) * + + 57 THEN NULL WHEN - + 36 * + 69 THEN NULL WHEN 99 THEN 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL 99 / - CASE + ( + - 69 ) WHEN - COUNT ( * ) * + - NULLIF ( + 62, ( 65 ) * + 70 * - 46 ) * + + 57 THEN NULL WHEN - + 36 * + 69 THEN NULL WHEN 99 THEN 79 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4521
SELECT 72 * 26 DIV - + COUNT( * ), + 68 + - ( + + COUNT( * ) ) - ( + 96 ) AS col1
----
-1872
-29

skipif mysql # not compatible
query II rowsort label-4521
SELECT 72 * 26 / - + COUNT ( * ), + 68 + - ( + + COUNT ( * ) ) - ( + 96 ) AS col1
----
-1872
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT 46 * - - MAX( DISTINCT 32 )
----
1472

skipif mysql # not compatible
query I rowsort label-4522
SELECT 46 * - - MAX ( DISTINCT 32 )
----
1472

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL 46 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL 46 / - 98 AS col0
----
0

query I rowsort
SELECT DISTINCT 81 * - + 63
----
-5103

query II rowsort
SELECT ALL 91 * 58 + + - 52, + 58 + 73 AS col0
----
5226
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + 4 * - ( - 79 ) + + 65 + - + 10 + COUNT( * ) - - + NULLIF ( - - 45, + CASE + + 85 WHEN - 57 THEN NULL WHEN + 91 THEN + - 97 END ) * 82 AS col0
----
4062

skipif mysql # not compatible
query I rowsort label-4526
SELECT + 4 * - ( - 79 ) + + 65 + - + 10 + COUNT ( * ) - - + NULLIF ( - - 45, + CASE + + 85 WHEN - 57 THEN NULL WHEN + 91 THEN + - 97 END ) * 82 AS col0
----
4062

query I rowsort
SELECT 70 + 67 AS col0
----
137

query II rowsort
SELECT ALL - 61 * - 44 + + 34, 73 AS col1
----
2718
73

query I rowsort
SELECT ALL 47 * + + 50 col2
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL + 11 * COALESCE ( + 34, - 92 * - COUNT( * ) ) + COUNT( * ) + + 36
----
411

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + 11 * COALESCE ( + 34, - 92 * - COUNT ( * ) ) + COUNT ( * ) + + 36
----
411

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT ALL - 54 + + ( - 8 ) AS col2, CASE + SUM( DISTINCT 20 ) WHEN + 1 + 30 THEN - 44 + + 6 - - 98 + - COUNT( * ) - - 53 END * - 19 AS col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-4531
SELECT ALL - 54 + + ( - 8 ) AS col2, CASE + SUM ( DISTINCT 20 ) WHEN + 1 + 30 THEN - 44 + + 6 - - 98 + - COUNT ( * ) - - 53 END * - 19 AS col2
----
-62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + COUNT( DISTINCT - + ( + 65 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4532
SELECT + COUNT ( DISTINCT - + ( + 65 ) ) col0
----
1

query I rowsort
SELECT + - 74 * 52 + - + NULLIF ( - 28, 11 ) AS col1
----
-3820

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + - ( 78 ) + MIN( DISTINCT 98 )
----
20

skipif mysql # not compatible
query I rowsort label-4534
SELECT + - ( 78 ) + MIN ( DISTINCT 98 )
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4535
SELECT + 55 AS col1, 78 DIV - CAST( - 23 AS SIGNED ) AS col2
----
55
3

skipif mysql # not compatible
query II rowsort label-4535
SELECT + 55 AS col1, 78 / - CAST ( - 23 AS INTEGER ) AS col2
----
55
3

onlyif mysql # aggregate syntax: 
query III rowsort label-4536
SELECT 78 AS col1, 3 - + 25 + + 53 AS col0, + + MIN( - - 76 )
----
78
31
76

skipif mysql # not compatible
query III rowsort label-4536
SELECT 78 AS col1, 3 - + 25 + + 53 AS col0, + + MIN ( - - 76 )
----
78
31
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + 28 * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 28 * COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT - 56 AS col2, CASE - - COUNT( * ) WHEN + - 31 - + - 55 THEN NULL ELSE 82 END AS col0
----
-56
82

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 56 AS col2, CASE - - COUNT ( * ) WHEN + - 31 - + - 55 THEN NULL ELSE 82 END AS col0
----
-56
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT ALL + + 54 - + + ( 7 ) AS col2, - COUNT( * ) * - 95 * 39 AS col0
----
47
3705

skipif mysql # not compatible
query II rowsort label-4539
SELECT ALL + + 54 - + + ( 7 ) AS col2, - COUNT ( * ) * - 95 * 39 AS col0
----
47
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - COUNT( 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-4540
SELECT - COUNT ( 93 )
----
-1

query I rowsort
SELECT + 46 * + + 7 AS col0
----
322

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4542
SELECT ALL 15 DIV + 64 * - 49 + - + 87 * 32 DIV - + CAST( + - 10 AS SIGNED )
----
-278

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL 15 / + 64 * - 49 + - + 87 * 32 / - + CAST ( + - 10 AS INTEGER )
----
-278

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT ALL - - COALESCE ( + 7, - 5, 42 ) * 74 DIV - 15 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - - COALESCE ( + 7, - 5, 42 ) * 74 / - 15 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query III rowsort label-4544
SELECT - + COUNT( * ) col0, + 49 - + 6 + - 44 + 1 * + - 10, - + 61 AS col0
----
-1
-11
-61

skipif mysql # not compatible
query III rowsort label-4544
SELECT - + COUNT ( * ) col0, + 49 - + 6 + - 44 + 1 * + - 10, - + 61 AS col0
----
-1
-11
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - + ( + 54 ) + + + COALESCE ( - 51, - COALESCE ( + 16, - + COUNT( * ) - - 49 + + ( - - 40 ) ) * + + 91 - 16 + + - COALESCE ( + COUNT( * ), + COUNT( * ) ) + + 98 * 52 ) + + 27
----
-78

skipif mysql # not compatible
query I rowsort label-4545
SELECT - + ( + 54 ) + + + COALESCE ( - 51, - COALESCE ( + 16, - + COUNT ( * ) - - 49 + + ( - - 40 ) ) * + + 91 - 16 + + - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) + + 98 * 52 ) + + 27
----
-78

query I rowsort
SELECT ALL - 78 - 5 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT MAX( COALESCE ( - 87, 72 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-4547
SELECT MAX ( COALESCE ( - 87, 72 ) )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 19 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4549
SELECT + 66 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-4549
SELECT + 66 / + 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4550
SELECT - 71 / - COUNT( * ) / CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT - 71 / - COUNT ( * ) / CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT - ( + COALESCE ( + 87, + COUNT( DISTINCT + NULLIF ( + 79, + 15 ) ), + 77 * - 57 ) ) * + ( + - 35 ) DIV ( - + 35 ) + - 94
----
-181

skipif mysql # not compatible
query I rowsort label-4551
SELECT - ( + COALESCE ( + 87, + COUNT ( DISTINCT + NULLIF ( + 79, + 15 ) ), + 77 * - 57 ) ) * + ( + - 35 ) / ( - + 35 ) + - 94
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + MAX( + - 35 ) + + COUNT( * ) + + + 28 * + 9
----
218

skipif mysql # not compatible
query I rowsort label-4552
SELECT + MAX ( + - 35 ) + + COUNT ( * ) + + + 28 * + 9
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - 18 * - - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4553
SELECT - 18 * - - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT DISTINCT NULLIF ( - - 48, - COUNT( 90 ) / 21 + + 69 + - + 78 ), + 4 col2
----
48
4

skipif mysql # not compatible
query II rowsort label-4554
SELECT DISTINCT NULLIF ( - - 48, - COUNT ( 90 ) / 21 + + 69 + - + 78 ), + 4 col2
----
48
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL NULLIF ( MIN( ALL + - 39 ), 9 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL NULLIF ( MIN ( ALL + - 39 ), 9 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT - 12 * 87 * + COUNT( * ) AS col1
----
-1044

skipif mysql # not compatible
query I rowsort label-4556
SELECT - 12 * 87 * + COUNT ( * ) AS col1
----
-1044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT ALL + CAST( NULL AS SIGNED ) + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL + CAST ( NULL AS INTEGER ) + - 40 AS col0
----
NULL

query II rowsort
SELECT ALL + 67 + - 54 AS col0, 90 col2
----
13
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - COUNT( * ) + 15 + 60
----
74

skipif mysql # not compatible
query I rowsort label-4559
SELECT - COUNT ( * ) + 15 + 60
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL NULLIF ( - + 77, + - COUNT( * ) * 4 )
----
-77

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL NULLIF ( - + 77, + - COUNT ( * ) * 4 )
----
-77

query I rowsort
SELECT ALL + 77 + + + 76 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT - 22 * CASE - 82 WHEN - 4 + 53 THEN + 33 WHEN MAX( - 1 ) THEN NULL ELSE NULL END * + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT - 22 * CASE - 82 WHEN - 4 + 53 THEN + 33 WHEN MAX ( - 1 ) THEN NULL ELSE NULL END * + 40 AS col0
----
NULL

query II rowsort
SELECT ALL + 68 + + 25 AS col1, - COALESCE ( + + 61, - 89 + 77 ) col2
----
93
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT ALL - 4 * + COALESCE ( 42, + COUNT( * ) * 12 + + - 63 + + 65 ), + 29 col2
----
-168
29

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL - 4 * + COALESCE ( 42, + COUNT ( * ) * 12 + + - 63 + + 65 ), + 29 col2
----
-168
29

query I rowsort
SELECT - 46 * - - 79 AS col0
----
-3634

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + 0 * + COUNT( * ) - - 96
----
96

skipif mysql # not compatible
query I rowsort label-4566
SELECT + 0 * + COUNT ( * ) - - 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL + NULLIF ( - 61, - - COUNT( * ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + NULLIF ( - 61, - - COUNT ( * ) ) AS col1
----
-61

query I rowsort
SELECT DISTINCT - 23 * - 99 AS col2
----
2277

query I rowsort
SELECT DISTINCT 40 * + 9 + + - ( + + 70 ) * - ( - 33 ) - + - 42
----
-1908

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT ( 63 ) col0, COUNT( * ) col1
----
63
1

skipif mysql # not compatible
query II rowsort label-4570
SELECT ( 63 ) col0, COUNT ( * ) col1
----
63
1

query I rowsort
SELECT + + 89 * - + 34
----
-3026

query I rowsort
SELECT - ( - + 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT + MIN( ALL + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4573
SELECT + MIN ( ALL + 38 )
----
38

query II rowsort
SELECT - 89 * - 19 col0, ( + + 60 ) * + 53 * - + 98 * 77 col2
----
1691
-23996280

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT + 64 * - + ( - 26 ) * - + 9 * - + 16 AS col1, - COUNT( * ) + - ( - + 14 ) AS col1
----
239616
13

skipif mysql # not compatible
query II rowsort label-4575
SELECT + 64 * - + ( - 26 ) * - + 9 * - + 16 AS col1, - COUNT ( * ) + - ( - + 14 ) AS col1
----
239616
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL 33 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL 33 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 84 * - 95 - + 80 AS col2
----
7900

query I rowsort
SELECT DISTINCT + + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL - 68 * 5 + - COUNT( * )
----
-341

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - 68 * 5 + - COUNT ( * )
----
-341

query I rowsort
SELECT + - 62 * + 5 AS col1
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT DISTINCT + COUNT( + 22 ) * + 10
----
10

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT + COUNT ( + 22 ) * + 10
----
10

query I rowsort
SELECT DISTINCT - - 73 * - 30 AS col1
----
-2190

query I rowsort
SELECT - - 18 + + - 86 AS col2
----
-68

query I rowsort
SELECT ALL + 7 * + 95
----
665

query II rowsort
SELECT - + 55 * + - 73 + + 35 * + 4 col2, 34 AS col0
----
4155
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + COUNT( * ) + + 13 col1
----
14

skipif mysql # not compatible
query I rowsort label-4586
SELECT + COUNT ( * ) + + 13 col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT COUNT( + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT COUNT ( + 70 )
----
1

query I rowsort
SELECT ALL 6 * - 9
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT MIN( ALL - - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-4589
SELECT MIN ( ALL - - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT - 99 + SUM( DISTINCT 0 ) - 58
----
-157

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - 99 + SUM ( DISTINCT 0 ) - 58
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT NULLIF ( + 49, - 0 * - NULLIF ( - + SUM( + 32 ), + + 79 ) ) + + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT NULLIF ( + 49, - 0 * - NULLIF ( - + SUM ( + 32 ), + + 79 ) ) + + - COUNT ( * )
----
48

query I rowsort
SELECT ALL - 35 + - 18
----
-53

query I rowsort
SELECT + 59 * + - 18 AS col2
----
-1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT + MIN( ALL + CAST( 14 AS SIGNED ) ) + + + 74 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4594
SELECT + MIN ( ALL + CAST ( 14 AS INTEGER ) ) + + + 74 AS col1
----
88

query I rowsort
SELECT ALL 70 * 78 * - + 3
----
-16380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4596
SELECT - 41 + + 75 + MAX( ( 0 ) ) - - COUNT( * ) / + CASE - 14 WHEN + 97 + + CAST( NULL AS SIGNED ) - + COUNT( ALL + 45 ) THEN CASE - + 44 WHEN - - CAST( NULL AS DECIMAL ) + + 40 THEN 65 ELSE + CAST( + 1 AS SIGNED ) END WHEN - COALESCE ( 65, 9 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT - 41 + + 75 + MAX ( ( 0 ) ) - - COUNT ( * ) / + CASE - 14 WHEN + 97 + + CAST ( NULL AS INTEGER ) - + COUNT ( ALL + 45 ) THEN CASE - + 44 WHEN - - CAST ( NULL AS REAL ) + + 40 THEN 65 ELSE + CAST ( + 1 AS INTEGER ) END WHEN - COALESCE ( 65, 9 ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4597
SELECT 12, + CAST( NULL AS SIGNED ) AS col0
----
12
NULL

skipif mysql # not compatible
query II rowsort label-4597
SELECT 12, + CAST ( NULL AS INTEGER ) AS col0
----
12
NULL

query I rowsort
SELECT ALL 64 + + + 89
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + COUNT( * ) + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4599
SELECT + COUNT ( * ) + 79 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT - 34 * + CAST( - 55 AS SIGNED )
----
1870

skipif mysql # not compatible
query I rowsort label-4600
SELECT - 34 * + CAST ( - 55 AS INTEGER )
----
1870

query I rowsort
SELECT + 5 + + 31
----
36

query I rowsort
SELECT ALL ( + + 38 )
----
38

query I rowsort
SELECT ALL 28 * + 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4604
SELECT ALL ( ( 61 ) ), COALESCE ( + 44, - 64 * - + CAST( NULL AS SIGNED ) ) AS col1
----
61
44

skipif mysql # not compatible
query II rowsort label-4604
SELECT ALL ( ( 61 ) ), COALESCE ( + 44, - 64 * - + CAST ( NULL AS INTEGER ) ) AS col1
----
61
44

query I rowsort
SELECT DISTINCT 63 + - - 26
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4606
SELECT DISTINCT 20 DIV NULLIF ( + ( 91 ), - 20 DIV + - CAST( NULL AS SIGNED ) * 92 ) * - + 67 + 17
----
17

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT 20 / NULLIF ( + ( 91 ), - 20 / + - CAST ( NULL AS INTEGER ) * 92 ) * - + 67 + 17
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT COUNT( * ) / - 26 + + 63 + - 32 + - + NULLIF ( - 35, - ( + + COUNT( * ) ) * + ( + - 10 ) - + COALESCE ( - 33, 35 ) ) + 57 + CAST( NULL AS SIGNED ) - + 68 / ( 53 * 62 ) * 21 * - 6 + ( + 90 + + 68 ) / + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( * ) / - 26 + + 63 + - 32 + - + NULLIF ( - 35, - ( + + COUNT ( * ) ) * + ( + - 10 ) - + COALESCE ( - 33, 35 ) ) + 57 + CAST ( NULL AS INTEGER ) - + 68 / ( 53 * 62 ) * 21 * - 6 + ( + 90 + + 68 ) / + 78
----
NULL

query I rowsort
SELECT ALL - ( - + ( - - 45 ) ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT 64 + + MAX( - + 97 )
----
-33

skipif mysql # not compatible
query I rowsort label-4609
SELECT 64 + + MAX ( - + 97 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT 79 * + MIN( - 90 ) * + 87 - - - 30 AS col2
----
-618600

skipif mysql # not compatible
query I rowsort label-4610
SELECT 79 * + MIN ( - 90 ) * + 87 - - - 30 AS col2
----
-618600

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL - + 75 * COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - + 75 * COUNT ( * )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT - + ( + 60 ) * + NULLIF ( - 7, - + ( + 14 ) ) + - CAST( NULL AS SIGNED ) - + 83 / - NULLIF ( 78, + + 63 ) + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT - + ( + 60 ) * + NULLIF ( - 7, - + ( + 14 ) ) + - CAST ( NULL AS INTEGER ) - + 83 / - NULLIF ( 78, + + 63 ) + - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4613
SELECT ALL - 72 - ( + ( - COALESCE ( + CAST( NULL AS SIGNED ), 46 * COUNT( * ) - + 84, + 76 DIV + - 48 + - + MAX( ALL - ( - - ( 87 ) ) ) + + ( - 74 ) ) ) )
----
-110

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL - 72 - ( + ( - COALESCE ( + CAST ( NULL AS INTEGER ), 46 * COUNT ( * ) - + 84, + 76 / + - 48 + - + MAX ( ALL - ( - - ( 87 ) ) ) + + ( - 74 ) ) ) )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - MAX( + - 53 ) col2
----
53

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - MAX ( + - 53 ) col2
----
53

query I rowsort
SELECT NULLIF ( 22, + 56 ) + - + 14
----
8

query I rowsort
SELECT ALL + - 83 * - - 79
----
-6557

query I rowsort
SELECT DISTINCT + 69 * + 12 AS col2
----
828

query II rowsort
SELECT ALL - 23 AS col0, - 17 * + + 66 + + + 32 + + - 71 + 94 AS col2
----
-23
-1067

query I rowsort
SELECT 82 * - 2
----
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT 13 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT 13 / - 75 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4621
SELECT + COUNT( * ) * + 73 + + - 51, 82 * - CAST( NULL AS SIGNED ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4621
SELECT + COUNT ( * ) * + 73 + + - 51, 82 * - CAST ( NULL AS INTEGER ) AS col1
----
22
NULL

query I rowsort
SELECT + - COALESCE ( - 65, + 77 ) AS col1
----
65

query I rowsort
SELECT 18 + - 19 * + + 70
----
-1312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT ALL + 87 DIV COUNT( * ) * 40 - 47 + - ( + - 80 )
----
3513

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + 87 / COUNT ( * ) * 40 - 47 + - ( + - 80 )
----
3513

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + 3 * + + MAX( - 6 )
----
-18

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 3 * + + MAX ( - 6 )
----
-18

query I rowsort
SELECT 48 + - - 19 * + 58 * - 3
----
-3258

query I rowsort
SELECT DISTINCT 52 + - 51
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT ALL - 11, - 78 * - - 10 + - COUNT( * ) * + - 86 * + ( + ( 13 ) ) AS col0
----
-11
338

skipif mysql # not compatible
query II rowsort label-4628
SELECT ALL - 11, - 78 * - - 10 + - COUNT ( * ) * + - 86 * + ( + ( 13 ) ) AS col0
----
-11
338

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL 89 * - ( - - COUNT( * ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL 89 * - ( - - COUNT ( * ) ) AS col0
----
-89

query I rowsort
SELECT ALL + 12 + - 63
----
-51

query I rowsort
SELECT 59 * + - 56 AS col2
----
-3304

query II rowsort
SELECT 60, 59 AS col1
----
60
59

query I rowsort
SELECT ALL - 40 * 26 AS col2
----
-1040

query II rowsort
SELECT - 99, 99 AS col1
----
-99
99

query II rowsort
SELECT - 55 AS col1, 41 AS col0
----
-55
41

query I rowsort
SELECT ALL 23 + + 81
----
104

query I rowsort
SELECT DISTINCT 82 + + 38 + - + 76 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT + 22 * + MAX( DISTINCT + 68 ) col1
----
1496

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT + 22 * + MAX ( DISTINCT + 68 ) col1
----
1496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4639
SELECT ALL COUNT( * ) DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL COUNT ( * ) / + 44
----
0

query II rowsort
SELECT - 66 AS col2, 9 col1
----
-66
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT ALL 87 - + 20 * 56 DIV 59 - - - 66
----
3

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL 87 - + 20 * 56 / 59 - - - 66
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT MIN( ALL 9 ) * 60
----
540

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT MIN ( ALL 9 ) * 60
----
540

query I rowsort
SELECT ( + 11 ) * - 22 col2
----
-242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4644
SELECT 54 col1, 61 * - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
54
-61

skipif mysql # not compatible
query II rowsort label-4644
SELECT 54 col1, 61 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
54
-61

query I rowsort
SELECT ( + 94 ) + + 83 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT COUNT( * ) * + + 26
----
26

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT COUNT ( * ) * + + 26
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT ALL - SUM( ALL + COALESCE ( + + 84, - 29 DIV + - 2 ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - SUM ( ALL + COALESCE ( + + 84, - 29 / + - 2 ) ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4648
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - 36
----
NULL

query I rowsort
SELECT + 19 * - 44 AS col1
----
-836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4650
SELECT - - 79 AS col2, - 13 + + MAX( DISTINCT - 53 ) AS col0, NULLIF ( - 85, - 84 - + - COUNT( * ) / - - COUNT( * ) + 57 + - COUNT( * ) * - 28 * + - 35 * + + COUNT( * ) + - 16 + + 42 * CAST( NULL AS SIGNED ) ) AS col2
----
79
-66
-85

skipif mysql # not compatible
query III rowsort label-4650
SELECT - - 79 AS col2, - 13 + + MAX ( DISTINCT - 53 ) AS col0, NULLIF ( - 85, - 84 - + - COUNT ( * ) / - - COUNT ( * ) + 57 + - COUNT ( * ) * - 28 * + - 35 * + + COUNT ( * ) + - 16 + + 42 * CAST ( NULL AS INTEGER ) ) AS col2
----
79
-66
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT DISTINCT COUNT( * ) * + - COUNT( ALL - 85 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT COUNT ( * ) * + - COUNT ( ALL - 85 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4652
SELECT ALL + 43 DIV - 99 * + CASE + 77 WHEN 27 THEN - COUNT( * ) + + 3 ELSE + 89 DIV - - 84 END
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + 43 / - 99 * + CASE + 77 WHEN 27 THEN - COUNT ( * ) + + 3 ELSE + 89 / - - 84 END
----
0

query I rowsort
SELECT DISTINCT + 73 * + - 18
----
-1314

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4654
SELECT CAST( NULL AS DECIMAL ) * + + 4 * + 99 + + CASE 68 WHEN 61 THEN + AVG ( + 97 ) * 30 END + + 62 * - 10 * - 20 * + 95 * - - ( - COUNT( * ) ) + + 41 - + COALESCE ( + 84 + - COUNT( * ), 30 + 22 ) / ( ( COALESCE ( - 51, 56 - - 15, 94, 60 * + ( + 56 ) ) ) ) * NULLIF ( + 98, - NULLIF ( 4, - 9 * + 96 + + COALESCE ( - 2 + 24, COALESCE ( - 26, 56 ) * + 30 + - 40 ) / 58 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT CAST ( NULL AS REAL ) * + + 4 * + 99 + + CASE 68 WHEN 61 THEN + AVG ( + 97 ) * 30 END + + 62 * - 10 * - 20 * + 95 * - - ( - COUNT ( * ) ) + + 41 - + COALESCE ( + 84 + - COUNT ( * ), 30 + 22 ) / ( ( COALESCE ( - 51, 56 - - 15, 94, 60 * + ( + 56 ) ) ) ) * NULLIF ( + 98, - NULLIF ( 4, - 9 * + 96 + + COALESCE ( - 2 + 24, COALESCE ( - 26, 56 ) * + 30 + - 40 ) / 58 ) )
----
NULL

query I rowsort
SELECT ( + + 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT COUNT( * ) AS col2, 62 + - 91
----
1
-29

skipif mysql # not compatible
query II rowsort label-4656
SELECT COUNT ( * ) AS col2, 62 + - 91
----
1
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT SUM( 34 ) * - 66 col0
----
-2244

skipif mysql # not compatible
query I rowsort label-4657
SELECT SUM ( 34 ) * - 66 col0
----
-2244

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4658
SELECT - ( + 80 ) * + - COUNT( * ) + 11 - COUNT( ( - 32 ) ) AS col1, - 0 DIV 90 AS col0
----
90
0

skipif mysql # not compatible
query II rowsort label-4658
SELECT - ( + 80 ) * + - COUNT ( * ) + 11 - COUNT ( ( - 32 ) ) AS col1, - 0 / 90 AS col0
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + SUM( ALL - - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4659
SELECT + SUM ( ALL - - 48 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT DISTINCT - - 27 AS col2, + COUNT( * ) AS col1
----
27
1

skipif mysql # not compatible
query II rowsort label-4660
SELECT DISTINCT - - 27 AS col2, + COUNT ( * ) AS col1
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT 66 + 95 + + COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT 66 + 95 + + COUNT ( * )
----
162

query I rowsort
SELECT ALL + - 55 * - 40 + + - 91 AS col0
----
2109

query I rowsort
SELECT DISTINCT + COALESCE ( - + 72, ( + + 20 ) ) + - 34 - - + 9
----
-97

query I rowsort
SELECT DISTINCT - 35 + + - CASE CASE - 11 WHEN + + ( - 19 ) / - 99 THEN NULL WHEN - 15 THEN - + 80 WHEN 93 THEN 4 * + - 85 WHEN 86 THEN NULL END WHEN 33 * - + CASE 28 WHEN + 81 THEN NULL WHEN - CASE 45 WHEN - 46 * - 22 + 49 THEN NULL ELSE 2 END THEN - ( ( + 46 ) ) + 31 ELSE NULL END + + 36 * 4 THEN NULL ELSE ( + 11 ) * + 56 + 4 * + 31 END col0
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + COUNT( * ) * - 5 * + 14 - - 18
----
-52

skipif mysql # not compatible
query I rowsort label-4665
SELECT + COUNT ( * ) * - 5 * + 14 - - 18
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL - COALESCE ( + 88, + - 39, + COUNT( * ) * + + MAX( - - 27 ) - 59 * - 73 + 98 + - 95 + - 6 + + 83 * + 11 )
----
-88

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - COALESCE ( + 88, + - 39, + COUNT ( * ) * + + MAX ( - - 27 ) - 59 * - 73 + 98 + - 95 + - 6 + + 83 * + 11 )
----
-88

query II rowsort
SELECT 40 + - ( - 64 ) AS col2, 45 * - + 35 + + - NULLIF ( + 32, - 24 + + - 33 )
----
104
-1607

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL + 81 + 50 * + + COUNT( * ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + 81 + 50 * + + COUNT ( * ) AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 56 + + MAX( DISTINCT + + 65 )
----
121

skipif mysql # not compatible
query I rowsort label-4669
SELECT 56 + + MAX ( DISTINCT + + 65 )
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT ALL CASE CAST( + CAST( - - NULLIF ( COUNT( * ), ( + 74 ) ) AS SIGNED ) AS SIGNED ) WHEN 17 THEN - + 10 ELSE + MIN( DISTINCT - - 17 ) END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL CASE CAST ( + CAST ( - - NULLIF ( COUNT ( * ), ( + 74 ) ) AS INTEGER ) AS INTEGER ) WHEN 17 THEN - + 10 ELSE + MIN ( DISTINCT - - 17 ) END AS col1
----
17

query I rowsort
SELECT ALL 17 * 30
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT 84 + - - 54 * SUM( DISTINCT - 44 )
----
-2292

skipif mysql # not compatible
query I rowsort label-4672
SELECT 84 + - - 54 * SUM ( DISTINCT - 44 )
----
-2292

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL + 18 - SUM( ALL + 56 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + 18 - SUM ( ALL + 56 ) AS col0
----
-38

query II rowsort
SELECT + 51 + + 96 AS col0, - 65 AS col0
----
147
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL SUM( ALL + 15 ) * 27
----
405

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL SUM ( ALL + 15 ) * 27
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL COALESCE ( + + 40, + ( + COUNT( * ) ) * 40 )
----
40

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL COALESCE ( + + 40, + ( + COUNT ( * ) ) * 40 )
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-4677
SELECT + 56 * 89 AS col2, - 85 - 6 * + ( - 34 ) + 86 DIV + - 1 AS col0
----
4984
33

skipif mysql # not compatible
query II rowsort label-4677
SELECT + 56 * 89 AS col2, - 85 - 6 * + ( - 34 ) + 86 / + - 1 AS col0
----
4984
33

query I rowsort
SELECT + - 83 + - 20 AS col2
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT DISTINCT + 13 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + 13 / + 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4680
SELECT ALL COUNT( * ) * - + COUNT( * ) * - + 41 AS col2, 76 AS col1
----
41
76

skipif mysql # not compatible
query II rowsort label-4680
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * - + 41 AS col2, 76 AS col1
----
41
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4681
SELECT + + 75 - + ( + COUNT( * ) ) + + COUNT( * ) * COUNT( * ) * + CASE + + 51 WHEN + + CAST( - 75 AS DECIMAL ) THEN - - AVG ( DISTINCT + 77 ) + 42 ELSE 91 END + + 25 * + 15 * + CASE - MAX( - 58 ) WHEN 15 THEN 58 END * 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT + + 75 - + ( + COUNT ( * ) ) + + COUNT ( * ) * COUNT ( * ) * + CASE + + 51 WHEN + + CAST ( - 75 AS REAL ) THEN - - AVG ( DISTINCT + 77 ) + 42 ELSE 91 END + + 25 * + 15 * + CASE - MAX ( - 58 ) WHEN 15 THEN 58 END * 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT + 10 + COUNT( * ) + - MIN( ALL - - 19 ) + + ( - + ( - 66 ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 10 + COUNT ( * ) + - MIN ( ALL - - 19 ) + + ( - + ( - 66 ) ) AS col1
----
58

query I rowsort
SELECT ALL + - 31 * - 68 + + - 9 AS col1
----
2099

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + + NULLIF ( + MAX( ALL 98 ), - 60 * + + 11 * - COUNT( * ) ) + 22 col0
----
120

skipif mysql # not compatible
query I rowsort label-4684
SELECT + + NULLIF ( + MAX ( ALL 98 ), - 60 * + + 11 * - COUNT ( * ) ) + 22 col0
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4685
SELECT + - 50 * + COUNT( * ), 3 DIV + - 87 - + 15 + 94 col2
----
-50
79

skipif mysql # not compatible
query II rowsort label-4685
SELECT + - 50 * + COUNT ( * ), 3 / + - 87 - + 15 + 94 col2
----
-50
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - COUNT( * ) - - 81 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4686
SELECT - COUNT ( * ) - - 81 AS col1
----
80

query I rowsort
SELECT ALL 41 * - 93 + + - 14 AS col1
----
-3827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4688
SELECT + NULLIF ( + + 60, - CASE - + 68 WHEN + 22 * + 55 * + 94 - + + 95 + - CASE MIN( + 72 ) WHEN COUNT( * ) THEN + 37 END THEN + COALESCE ( + + 9, - 88 + - + 41, 17 ) WHEN 60 + 13 THEN NULL ELSE NULL END ) DIV + ( 29 ) + + COUNT( * ) DIV - 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4688
SELECT + NULLIF ( + + 60, - CASE - + 68 WHEN + 22 * + 55 * + 94 - + + 95 + - CASE MIN ( + 72 ) WHEN COUNT ( * ) THEN + 37 END THEN + COALESCE ( + + 9, - 88 + - + 41, 17 ) WHEN 60 + 13 THEN NULL ELSE NULL END ) / + ( 29 ) + + COUNT ( * ) / - 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL COUNT( * ) * - - 20 * + 85 + - 20 - - + 27 + - 48 AS col0
----
1659

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL COUNT ( * ) * - - 20 * + 85 + - 20 - - + 27 + - 48 AS col0
----
1659

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT + + 73 + - COALESCE ( + - 19, - 94 ) + + 50 * - SUM( + 8 )
----
-308

skipif mysql # not compatible
query I rowsort label-4690
SELECT + + 73 + - COALESCE ( + - 19, - 94 ) + + 50 * - SUM ( + 8 )
----
-308

query I rowsort
SELECT ALL + 77 * NULLIF ( - 11, - + 76 ) + + 56 * - 34 AS col2
----
-2751

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT ALL + COUNT( * ) AS col1, - 84 * + NULLIF ( + ( 60 ), - + 67 )
----
1
-5040

skipif mysql # not compatible
query II rowsort label-4692
SELECT ALL + COUNT ( * ) AS col1, - 84 * + NULLIF ( + ( 60 ), - + 67 )
----
1
-5040

query II rowsort
SELECT CASE - + 64 WHEN - 67 THEN - ( - - 93 ) + 67 ELSE NULL END, + 61 AS col1
----
NULL
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT + CASE + ( + 84 ) WHEN - + 18 THEN 61 + + 69 WHEN + + 43 * - 65 THEN NULL END AS col1, COUNT( * ) - - 96 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-4694
SELECT + CASE + ( + 84 ) WHEN - + 18 THEN 61 + + 69 WHEN + + 43 * - 65 THEN NULL END AS col1, COUNT ( * ) - - 96 AS col1
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT SUM( - - 23 ) * - 71 + + - ( + 41 ) * 2 * - 77 AS col0
----
4681

skipif mysql # not compatible
query I rowsort label-4695
SELECT SUM ( - - 23 ) * - 71 + + - ( + 41 ) * 2 * - 77 AS col0
----
4681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4696
SELECT ALL 85 * CAST( NULL AS SIGNED ) + - + COUNT( * ), ( + 14 ) + 28 - + - MAX( ( + 0 ) ) * - + COUNT( * ) * CASE 68 WHEN - 4 THEN + ( 37 ) ELSE NULL END + - 71
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4696
SELECT ALL 85 * CAST ( NULL AS INTEGER ) + - + COUNT ( * ), ( + 14 ) + 28 - + - MAX ( ( + 0 ) ) * - + COUNT ( * ) * CASE 68 WHEN - 4 THEN + ( 37 ) ELSE NULL END + - 71
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT + 50 AS col0, COUNT( 10 ) + - - 28 * 10 AS col2
----
50
281

skipif mysql # not compatible
query II rowsort label-4697
SELECT + 50 AS col0, COUNT ( 10 ) + - - 28 * 10 AS col2
----
50
281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT ALL 22 * - - 68 - - + COUNT( * ) * - + 26 DIV 63 * - 82 + + 47 AS col1
----
1543

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL 22 * - - 68 - - + COUNT ( * ) * - + 26 / 63 * - 82 + + 47 AS col1
----
1543

query I rowsort
SELECT ALL 5 * + 40
----
200

onlyif mysql # aggregate syntax: 
query II rowsort label-4700
SELECT ALL ( + - MAX( DISTINCT 39 ) ) AS col0, - 10 AS col2
----
-39
-10

skipif mysql # not compatible
query II rowsort label-4700
SELECT ALL ( + - MAX ( DISTINCT 39 ) ) AS col0, - 10 AS col2
----
-39
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT COUNT( * ) AS col1, 86 * 84
----
1
7224

skipif mysql # not compatible
query II rowsort label-4701
SELECT COUNT ( * ) AS col1, 86 * 84
----
1
7224

query I rowsort
SELECT - ( - 48 ) AS col2
----
48

query I rowsort
SELECT - 69 * - - 71
----
-4899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT ALL ( - CASE - 67 WHEN + CAST( NULL AS SIGNED ) * + - 80 - - CAST( - - 83 AS SIGNED ) THEN 47 * CAST( NULL AS SIGNED ) * - 19 * + - ( + 52 ) ELSE + 49 END )
----
-49

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL ( - CASE - 67 WHEN + CAST ( NULL AS INTEGER ) * + - 80 - - CAST ( - - 83 AS INTEGER ) THEN 47 * CAST ( NULL AS INTEGER ) * - 19 * + - ( + 52 ) ELSE + 49 END )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - MAX( + + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4705
SELECT - MAX ( + + 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT ALL - 15 DIV COUNT( * ) * - COUNT( 88 )
----
15

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - 15 / COUNT ( * ) * - COUNT ( 88 )
----
15

query I rowsort
SELECT - 33 * - + 2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT - 54 * + 75 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT - 54 * + 75 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 97 * 42 AS col2
----
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL - ( + COUNT( DISTINCT - + 6 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL - ( + COUNT ( DISTINCT - + 6 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT - - ( - 71 ) + + 43 + - + SUM( ALL - 52 ) + - 1 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4711
SELECT - - ( - 71 ) + + 43 + - + SUM ( ALL - 52 ) + - 1 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - + 35 * - 52 + + COUNT( * ) * - - COUNT( * ) AS col2
----
1821

skipif mysql # not compatible
query I rowsort label-4712
SELECT - + 35 * - 52 + + COUNT ( * ) * - - COUNT ( * ) AS col2
----
1821

query I rowsort
SELECT ALL + + 64 + + 82 + + 18
----
164

query II rowsort
SELECT + 20 AS col2, 86 AS col0
----
20
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT + COUNT( 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + COUNT ( 66 ) AS col2
----
1

query I rowsort
SELECT - 56 * + - 36 * - 53
----
-106848

query I rowsort
SELECT + 26 + 93 * - 29
----
-2671

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT 38, 14 * ( + COUNT( * ) ) AS col2
----
38
14

skipif mysql # not compatible
query II rowsort label-4718
SELECT 38, 14 * ( + COUNT ( * ) ) AS col2
----
38
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL - CAST( - ( - 67 ) AS SIGNED ) / ( SUM( NULLIF ( - 52, + 62 ) ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - CAST ( - ( - 67 ) AS INTEGER ) / ( SUM ( NULLIF ( - 52, + 62 ) ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT ALL - 30 DIV 66 + ( - 58 ) * + + 51 col2
----
-2958

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - 30 / 66 + ( - 58 ) * + + 51 col2
----
-2958

query I rowsort
SELECT + + ( 34 )
----
34

query I rowsort
SELECT + + 69 * - 72 AS col0
----
-4968

query II rowsort
SELECT DISTINCT + 54 AS col1, + 65
----
54
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT ALL + NULLIF ( + 30, 22 ) DIV + 10 + - 92
----
-89

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + NULLIF ( + 30, 22 ) / + 10 + - 92
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT CAST( + 37 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4725
SELECT CAST ( + 37 AS INTEGER ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + COALESCE ( - ( - - 50 ), COALESCE ( - MAX( - + ( - 24 ) ), - + 20 ) * 20, - - SUM( ALL - + ( - + ( + 52 ) ) ) ) * - 61 + + - 80 - + MIN( DISTINCT - 5 ) - - - 63
----
2912

skipif mysql # not compatible
query I rowsort label-4726
SELECT + COALESCE ( - ( - - 50 ), COALESCE ( - MAX ( - + ( - 24 ) ), - + 20 ) * 20, - - SUM ( ALL - + ( - + ( + 52 ) ) ) ) * - 61 + + - 80 - + MIN ( DISTINCT - 5 ) - - - 63
----
2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT CAST( + 38 AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4727
SELECT CAST ( + 38 AS INTEGER ) AS col0
----
38

query I rowsort
SELECT DISTINCT 65 * + 72
----
4680

query I rowsort
SELECT ALL 12 * + 43 * 78 AS col0
----
40248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4730
SELECT DISTINCT 70 * - 94 * CAST( + - 34 AS SIGNED ) * + + ( + 52 )
----
11633440

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT 70 * - 94 * CAST ( + - 34 AS INTEGER ) * + + ( + 52 )
----
11633440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4731
SELECT ALL 94 DIV ( + CAST( + 12 AS SIGNED ) ) * 95 AS col1
----
665

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL 94 / ( + CAST ( + 12 AS INTEGER ) ) * 95 AS col1
----
665

query I rowsort
SELECT CASE - 26 WHEN + AVG ( 57 ) * - 94 + 81 THEN NULL WHEN + 78 THEN 65 END / 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT 71 * - COUNT( * ) * - + 47
----
3337

skipif mysql # not compatible
query I rowsort label-4733
SELECT 71 * - COUNT ( * ) * - + 47
----
3337

query I rowsort
SELECT 84 * - CASE 23 WHEN + 43 THEN + 1 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL 51 * - 32 col0, - 81 * - 36
----
-1632
2916

query I rowsort
SELECT ( 8 ) + 78
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT - ( + MIN( ALL - 97 ) ) * - ( - 24 ) * + 41 * + + 2 * + 25
----
4772400

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - ( + MIN ( ALL - 97 ) ) * - ( - 24 ) * + 41 * + + 2 * + 25
----
4772400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT 9 + 61 DIV + 92 - 5 + - COUNT( * ) * COALESCE ( + ( 70 ), - 64 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4738
SELECT 9 + 61 / + 92 - 5 + - COUNT ( * ) * COALESCE ( + ( 70 ), - 64 ) AS col1
----
-66

query I rowsort
SELECT ALL 98 * - 61 * - ( 23 )
----
137494

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT 15 * 7 DIV + 67
----
1

skipif mysql # not compatible
query I rowsort label-4740
SELECT 15 * 7 / + 67
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL + CASE - 74 WHEN + 84 THEN NULL WHEN - 37 THEN - 81 * - 2 * 48 + + 58 * - - 13 * - - SUM( - ( - 9 ) ) + - + 2 * + COUNT( * ) WHEN + - 39 + + 70 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + CASE - 74 WHEN + 84 THEN NULL WHEN - 37 THEN - 81 * - 2 * 48 + + 58 * - - 13 * - - SUM ( - ( - 9 ) ) + - + 2 * + COUNT ( * ) WHEN + - 39 + + 70 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT DISTINCT + 86 + - COALESCE ( CAST( NULL AS SIGNED ), + 34 + 71 * + 92 * + 75 ) - - 28 AS col1
----
-489820

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT + 86 + - COALESCE ( CAST ( NULL AS INTEGER ), + 34 + 71 * + 92 * + 75 ) - - 28 AS col1
----
-489820

query I rowsort
SELECT 0 * + 57 AS col1
----
0

query I rowsort
SELECT DISTINCT - 53 + + 62 + + 19 * + + 7 + - + ( - 86 ) * - + 19 AS col0
----
-1492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) + 57 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 92 + - - 6 - - - 34 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4747
SELECT - CASE - 45 WHEN + ( - 44 ) / - ( + 48 ) THEN 50 * - 72 + 11 END AS col0, CASE - - COUNT( * ) WHEN + 24 THEN 22 * 84 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4747
SELECT - CASE - 45 WHEN + ( - 44 ) / - ( + 48 ) THEN 50 * - 72 + 11 END AS col0, CASE - - COUNT ( * ) WHEN + 24 THEN 22 * 84 END AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 12 + ( - 15 )
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4749
SELECT - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT - + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL - COUNT( * ) * - CASE - 70 WHEN - COUNT( * ) THEN 46 * - - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - COUNT ( * ) * - CASE - 70 WHEN - COUNT ( * ) THEN 46 * - - 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4751
SELECT COUNT( * ) + ( 17 ) * - COUNT( * ) * + COUNT( * ) * - + 45 + + 6 * + + COUNT( * ) * + 35 + - 56 + - 92 * - 98 AS col0, - NULLIF ( - 76, - 49 * - 59 + - 65 + 33 * + COUNT( + 68 ) + 43 * - 63 ) * COALESCE ( - 57 * MIN( ALL 44 ), 66 * 6 ) col1
----
9936
-190608

skipif mysql # not compatible
query II rowsort label-4751
SELECT COUNT ( * ) + ( 17 ) * - COUNT ( * ) * + COUNT ( * ) * - + 45 + + 6 * + + COUNT ( * ) * + 35 + - 56 + - 92 * - 98 AS col0, - NULLIF ( - 76, - 49 * - 59 + - 65 + 33 * + COUNT ( + 68 ) + 43 * - 63 ) * COALESCE ( - 57 * MIN ( ALL 44 ), 66 * 6 ) col1
----
9936
-190608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT + 58 * - 93 + - ( + 28 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT + 58 * - 93 + - ( + 28 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 49 - CASE - 72 WHEN - 87 * - 78 THEN - 22 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT 22 DIV + 35 * - + COUNT( * ) + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4754
SELECT 22 / + 35 * - + COUNT ( * ) + 49 AS col2
----
49

query I rowsort
SELECT 94 * + - 30 AS col2
----
-2820

query II rowsort
SELECT ALL - COALESCE ( - - 40, + - ( - ( - 43 ) ) ) AS col1, - ( - 27 ) col2
----
-40
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT COUNT( * ) + - SUM( 55 ) * + COUNT( * ) * + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4757
SELECT COUNT ( * ) + - SUM ( 55 ) * + COUNT ( * ) * + - COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT 17 * 13
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT 84 * 73 / 3 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT 84 * 73 / 3 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT NULLIF ( 80, 2 + - 39 ) + + + COUNT( * ) * - + 6 * + 1
----
74

skipif mysql # not compatible
query I rowsort label-4760
SELECT NULLIF ( 80, 2 + - 39 ) + + + COUNT ( * ) * - + 6 * + 1
----
74

query I rowsort
SELECT ALL 11 * - 11 AS col1
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT COALESCE ( - + 78, + 48 ) * - CAST( NULL AS SIGNED ) + - MIN( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT COALESCE ( - + 78, + 48 ) * - CAST ( NULL AS INTEGER ) + - MIN ( - 87 )
----
NULL

query II rowsort
SELECT ALL - 80, - 8 AS col1
----
-80
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4764
SELECT ALL COUNT( * ) * 98 DIV - + 75 AS col0, 73 * + - 16 - + - CAST( NULL AS SIGNED ) + + 56 * + - ( 65 ) col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL COUNT ( * ) * 98 / - + 75 AS col0, 73 * + - 16 - + - CAST ( NULL AS INTEGER ) + + 56 * + - ( 65 ) col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 68 AS col0
----
NULL

query I rowsort
SELECT ALL 98 + 66 + - 35 col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT MIN( DISTINCT + 94 ) + MIN( - + CAST( NULL AS SIGNED ) ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT MIN ( DISTINCT + 94 ) + MIN ( - + CAST ( NULL AS INTEGER ) ) + 87
----
NULL

query I rowsort
SELECT DISTINCT ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT COUNT( * ) - + 46
----
-45

skipif mysql # not compatible
query I rowsort label-4769
SELECT COUNT ( * ) - + 46
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4770
SELECT - CASE WHEN + COUNT( * ) IS NULL THEN + CASE + - 63 WHEN + 22 THEN 32 + 65 ELSE NULL END + - CAST( NULL AS DECIMAL ) * - 39 WHEN NOT 1 * - ( + + 79 ) * 89 = - 52 * ( - 6 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT - CASE WHEN + COUNT ( * ) IS NULL THEN + CASE + - 63 WHEN + 22 THEN 32 + 65 ELSE NULL END + - CAST ( NULL AS REAL ) * - 39 WHEN NOT 1 * - ( + + 79 ) * 89 = - 52 * ( - 6 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 48 + + 4 + - 7 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT - + NULLIF ( 92, CAST( - - 48 AS SIGNED ) )
----
-92

skipif mysql # not compatible
query I rowsort label-4772
SELECT - + NULLIF ( 92, CAST ( - - 48 AS INTEGER ) )
----
-92

query II rowsort
SELECT ALL 16 AS col0, - 47 - + - 85 + + 30 * + 54 col0
----
16
1658

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT 86 * - + COUNT( * ) * ( + MAX( + 76 ) )
----
-6536

skipif mysql # not compatible
query I rowsort label-4774
SELECT 86 * - + COUNT ( * ) * ( + MAX ( + 76 ) )
----
-6536

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT MIN( + 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT MIN ( + 88 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4776
SELECT + CAST( NULL AS SIGNED ) + + COUNT( ALL + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( ALL + 11 )
----
NULL

query I rowsort
SELECT - 88 + + 15 + + + 8 + 78
----
13

query I rowsort
SELECT ALL ( + 37 ) col2
----
37

query I rowsort
SELECT 75 * + 43
----
3225

query I rowsort
SELECT ALL + 18 * 36 AS col2
----
648

query II rowsort
SELECT ALL + 20 AS col2, 60 col2
----
20
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT - CAST( + 24 AS SIGNED ) / ( + 30 ) + - COALESCE ( + 21, - - ( - NULLIF ( - 2, - 71 + + 70 ) ) + - CAST( - 3 AS SIGNED ) * + 44 + 32 ) + - + CASE + 83 WHEN - - CASE - SUM( + + 86 ) WHEN 16 THEN NULL WHEN - 15 THEN - 7 / + 19 ELSE - AVG ( - 91 ) END THEN 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT - CAST ( + 24 AS INTEGER ) / ( + 30 ) + - COALESCE ( + 21, - - ( - NULLIF ( - 2, - 71 + + 70 ) ) + - CAST ( - 3 AS INTEGER ) * + 44 + 32 ) + - + CASE + 83 WHEN - - CASE - SUM ( + + 86 ) WHEN 16 THEN NULL WHEN - 15 THEN - 7 / + 19 ELSE - AVG ( - 91 ) END THEN 8 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT + ( 69 ) * + + 3 * - NULLIF ( - 38, 69 ), CASE 84 WHEN - COUNT( * ) / - 94 / 17 + + COALESCE ( + 86, NULLIF ( + + COUNT( * ), + COUNT( * ) + 87 + + + 70 * - 20 ) ) + 62 * + + COALESCE ( CASE WHEN NOT + 69 > NULL THEN 93 END, 78, COUNT( * ) ) * + CASE - 39 * ( 85 * 93 ) WHEN - AVG ( 44 ) - ( - 80 ) THEN + MAX( COALESCE ( 95, - 84 * - 71 + 83 ) ) ELSE 77 * + MAX( + 39 ) END THEN + 77 ELSE ( - 79 ) END AS col2
----
7866
-79

skipif mysql # not compatible
query II rowsort label-4783
SELECT + ( 69 ) * + + 3 * - NULLIF ( - 38, 69 ), CASE 84 WHEN - COUNT ( * ) / - 94 / 17 + + COALESCE ( + 86, NULLIF ( + + COUNT ( * ), + COUNT ( * ) + 87 + + + 70 * - 20 ) ) + 62 * + + COALESCE ( CASE WHEN NOT + 69 > NULL THEN 93 END, 78, COUNT ( * ) ) * + CASE - 39 * ( 85 * 93 ) WHEN - AVG ( 44 ) - ( - 80 ) THEN + MAX ( COALESCE ( 95, - 84 * - 71 + 83 ) ) ELSE 77 * + MAX ( + 39 ) END THEN + 77 ELSE ( - 79 ) END AS col2
----
7866
-79

query II rowsort
SELECT + 93, 67 AS col2
----
93
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT ALL + COUNT( * ) * + - CAST( + - 72 AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + COUNT ( * ) * + - CAST ( + - 72 AS INTEGER ) AS col1
----
72

query I rowsort
SELECT NULLIF ( - 5, + 63 / + 94 * - 87 + - - 28 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT COALESCE ( 28, + - 7 * + 13 + 39 ) * - 71 - - - COUNT( * ) AS col1
----
-1989

skipif mysql # not compatible
query I rowsort label-4787
SELECT COALESCE ( 28, + - 7 * + 13 + 39 ) * - 71 - - - COUNT ( * ) AS col1
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT SUM( DISTINCT + 81 ) * - 89 - - 19 AS col2
----
-7190

skipif mysql # not compatible
query I rowsort label-4788
SELECT SUM ( DISTINCT + 81 ) * - 89 - - 19 AS col2
----
-7190

query I rowsort
SELECT + 5 * + 13 * + - NULLIF ( + - 48, 86 - 66 * - 44 ) AS col1
----
3120

query I rowsort
SELECT ALL - 8 * - + 22 + + 5 col2
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + 55 * - 37 * + + COUNT( * )
----
-2035

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + 55 * - 37 * + + COUNT ( * )
----
-2035

query II rowsort
SELECT DISTINCT + 38 AS col1, - 12 AS col2
----
38
-12

query II rowsort
SELECT DISTINCT + 83 AS col0, 9
----
83
9

query I rowsort
SELECT - 69 * + + ( - 82 )
----
5658

query I rowsort
SELECT DISTINCT ( + 88 ) * 57 * + + 97
----
486552

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4796
SELECT - 57 + + - CAST( NULL AS SIGNED ) col1, + 78 col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-4796
SELECT - 57 + + - CAST ( NULL AS INTEGER ) col1, + 78 col2
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + COUNT( * ) - + + 56 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4797
SELECT + COUNT ( * ) - + + 56 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT SUM( + ( + 7 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4798
SELECT SUM ( + ( + 7 ) ) AS col0
----
7

query I rowsort
SELECT DISTINCT + 36 * + 14 col2
----
504

query I rowsort
SELECT - NULLIF ( + + 70, + 8 )
----
-70

query I rowsort
SELECT - + 98 + NULLIF ( 39, - 13 ) * - - 42 AS col0
----
1540

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT DISTINCT - 91 AS col2, 37 * COUNT( DISTINCT - 67 ) * + ( + ( - 4 ) ) - + ( + + COUNT( * ) ) * - - ( - 13 ) col0
----
-91
-135

skipif mysql # not compatible
query II rowsort label-4802
SELECT DISTINCT - 91 AS col2, 37 * COUNT ( DISTINCT - 67 ) * + ( + ( - 4 ) ) - + ( + + COUNT ( * ) ) * - - ( - 13 ) col0
----
-91
-135

query I rowsort
SELECT ALL ( - 13 ) * - 37
----
481

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - - COUNT( * ) + - 98 + + 53 * + + COALESCE ( + 25, - + 77 + + COALESCE ( - 64, + 79 ) ) * 32 + + NULLIF ( + + COUNT( * ), + COUNT( * ) * + + COALESCE ( - - 39, 82 ) )
----
42304

skipif mysql # not compatible
query I rowsort label-4804
SELECT - - COUNT ( * ) + - 98 + + 53 * + + COALESCE ( + 25, - + 77 + + COALESCE ( - 64, + 79 ) ) * 32 + + NULLIF ( + + COUNT ( * ), + COUNT ( * ) * + + COALESCE ( - - 39, 82 ) )
----
42304

query I rowsort
SELECT DISTINCT + 10 - + 86 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4806
SELECT - - CAST( NULL AS SIGNED ) col1, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-4806
SELECT - - CAST ( NULL AS INTEGER ) col1, 57
----
NULL
57

query I rowsort
SELECT + 77 + - 50 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT MAX( - - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4808
SELECT MAX ( - - 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - COALESCE ( - 28, 25 * - 83 + + SUM( DISTINCT 63 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4809
SELECT - COALESCE ( - 28, 25 * - 83 + + SUM ( DISTINCT 63 ) ) AS col2
----
28

query I rowsort
SELECT + COALESCE ( + 10, + 80 ) + 73
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + + 96 * COUNT( * ) + 94 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-4811
SELECT + + 96 * COUNT ( * ) + 94 AS col2
----
190

query I rowsort
SELECT - + 91 * + 11 * + NULLIF ( + 98, + 22 ) - + + 55
----
-98153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT + 38 + - - ( - - 34 ) - 9 + 71 DIV NULLIF ( 58, COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-4813
SELECT + 38 + - - ( - - 34 ) - 9 + 71 / NULLIF ( 58, COUNT ( * ) )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT ALL + ( - 30 ) * - COUNT( * ) DIV ( ( - + 60 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + ( - 30 ) * - COUNT ( * ) / ( ( - + 60 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4815
SELECT ALL COUNT( * ) * - CASE 31 WHEN + - 75 + - 77 THEN + - 19 + 67 ELSE NULL END AS col2, 60 DIV 75 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL COUNT ( * ) * - CASE 31 WHEN + - 75 + - 77 THEN + - 19 + 67 ELSE NULL END AS col2, 60 / 75 col1
----
NULL
0

query I rowsort
SELECT + ( 7 ) * - 66
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT - MIN( - - 25 ) DIV 11 + - - ( + NULLIF ( 92, - - MAX( DISTINCT - 57 ) - 0 ) )
----
90

skipif mysql # not compatible
query I rowsort label-4817
SELECT - MIN ( - - 25 ) / 11 + - - ( + NULLIF ( 92, - - MAX ( DISTINCT - 57 ) - 0 ) )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + - 36 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 0, + 42 ) + - 44 AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT - 5 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT - 5 / 38
----
0

query I rowsort
SELECT 60 * 36 + + 47
----
2207

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT ALL - 87 DIV 71
----
-1

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - 87 / 71
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT DISTINCT 61 DIV 83 DIV 81 + 64 - - 85 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 61 / 83 / 81 + 64 - - 85 AS col2
----
149

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4824
SELECT ALL ( + CAST( 71 AS SIGNED ) ) DIV 82 DIV - + 48 + + 3
----
3

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL ( + CAST ( 71 AS INTEGER ) ) / 82 / - + 48 + + 3
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT DISTINCT - 81 DIV - - 86 + + + 79 col2
----
79

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT - 81 / - - 86 + + + 79 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - MIN( ALL ( + 12 ) ) * ( 12 ) + - 61
----
-205

skipif mysql # not compatible
query I rowsort label-4826
SELECT - MIN ( ALL ( + 12 ) ) * ( 12 ) + - 61
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + 71 * - COUNT( * ) + - 61 AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + 71 * - COUNT ( * ) + - 61 AS col2
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4828
SELECT + CAST( + + NULLIF ( - 8, - 66 + - COUNT( * ) ) AS SIGNED ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-4828
SELECT + CAST ( + + NULLIF ( - 8, - 66 + - COUNT ( * ) ) AS INTEGER ) col1
----
-8

query I rowsort
SELECT ( + + ( - + 78 ) ) AS col2
----
-78

query I rowsort
SELECT ( - ( + 33 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT - COUNT( * ) + + + CAST( - 90 AS SIGNED ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4831
SELECT - COUNT ( * ) + + + CAST ( - 90 AS INTEGER ) AS col1
----
-91

query I rowsort
SELECT DISTINCT - 29 * ( - 3 ) - 23 - - + 17
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT DISTINCT + + CASE - 65 WHEN + 81 THEN NULL WHEN + COALESCE ( - 26, 46 + - + 16 / + + 9 / + 36 / + - 93 ) THEN NULL ELSE + 87 * - 14 + - 53 END * + COUNT( * ) - - 33 AS col2
----
-1238

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT + + CASE - 65 WHEN + 81 THEN NULL WHEN + COALESCE ( - 26, 46 + - + 16 / + + 9 / + 36 / + - 93 ) THEN NULL ELSE + 87 * - 14 + - 53 END * + COUNT ( * ) - - 33 AS col2
----
-1238

query I rowsort
SELECT DISTINCT + + ( + 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4835
SELECT CAST( 15 AS SIGNED ) AS col2, NULLIF ( + COUNT( * ), - ( + + 86 ) * + 52 ) + + - 17 * + 52
----
15
-883

skipif mysql # not compatible
query II rowsort label-4835
SELECT CAST ( 15 AS INTEGER ) AS col2, NULLIF ( + COUNT ( * ), - ( + + 86 ) * + 52 ) + + - 17 * + 52
----
15
-883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT - CAST( 64 AS SIGNED ) * - - 50 * - 94 - - COUNT( * ) - - COUNT( * ) AS col0
----
300802

skipif mysql # not compatible
query I rowsort label-4836
SELECT - CAST ( 64 AS INTEGER ) * - - 50 * - 94 - - COUNT ( * ) - - COUNT ( * ) AS col0
----
300802

query I rowsort
SELECT + 56 + - 57 AS col0
----
-1

query I rowsort
SELECT ALL - 31 * - COALESCE ( - 40, 96 * 43 + 73 + - NULLIF ( - 23, + 44 + 22 ) ) AS col0
----
-1240

query I rowsort
SELECT - 14 - - NULLIF ( 98, + + NULLIF ( 73, 76 / + 36 * - 1 * + 69 * + - 21 ) )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4840
SELECT DISTINCT - 87 * - 24 + - 98 DIV + COUNT( * ) col2
----
1990

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - 87 * - 24 + - 98 / + COUNT ( * ) col2
----
1990

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL COALESCE ( MIN( ALL - 2 ), - - 20 * 57 * + 62 * + 2 + + 19 * COUNT( ALL + - 39 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL COALESCE ( MIN ( ALL - 2 ), - - 20 * 57 * + 62 * + 2 + + 19 * COUNT ( ALL + - 39 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - + 95 * + COUNT( + + 27 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - + 95 * + COUNT ( + + 27 ) AS col2
----
-95

query II rowsort
SELECT 34 AS col0, + 43 + + 79
----
34
122

query I rowsort
SELECT COALESCE ( + + 72, 32 + - 37 * - + 77 * 30, - 88 * + - 16 * + 49 + - - 61 ) + + 84
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4845
SELECT 3 - + - 20 + - 84 - + 7 * 87 * - + COALESCE ( - + COUNT( * ), + + COUNT( * ), + SUM( + ( 74 ) ) * 37 DIV - COUNT( * ) + + - 80 * - - 49, - - 23 ) * 91 - - CAST( + COUNT( * ) AS SIGNED )
----
-55479

skipif mysql # not compatible
query I rowsort label-4845
SELECT 3 - + - 20 + - 84 - + 7 * 87 * - + COALESCE ( - + COUNT ( * ), + + COUNT ( * ), + SUM ( + ( 74 ) ) * 37 / - COUNT ( * ) + + - 80 * - - 49, - - 23 ) * 91 - - CAST ( + COUNT ( * ) AS INTEGER )
----
-55479

query II rowsort
SELECT 50 AS col0, - 4 * - 66
----
50
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT + 46 + + ( SUM( DISTINCT + ( 24 ) ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + 46 + + ( SUM ( DISTINCT + ( 24 ) ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT COUNT( * ) + - 30 + 75 + 73 * - 30 AS col2
----
-2144

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT COUNT ( * ) + - 30 + 75 + 73 * - 30 AS col2
----
-2144

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT 9 * + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4849
SELECT 9 * + + COUNT ( * )
----
9

query I rowsort
SELECT ALL 99 + + ( + + 91 ) col0
----
190

query I rowsort
SELECT DISTINCT 58 + + ( 36 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL + CAST( NULL AS SIGNED ) + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + CAST ( NULL AS INTEGER ) + + 26 AS col0
----
NULL

query I rowsort
SELECT 35 * - + 28
----
-980

query I rowsort
SELECT DISTINCT 87 * - + 53 * 50
----
-230550

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - COALESCE ( + 30, + COALESCE ( 60, + - 29, - 20 ) + + - ( + + 31 ) + - 94 DIV + ( + 14 ) * + 84 ) * 54 - + 78 + + - 64 AS col0
----
-1762

skipif mysql # not compatible
query I rowsort label-4855
SELECT - COALESCE ( + 30, + COALESCE ( 60, + - 29, - 20 ) + + - ( + + 31 ) + - 94 / + ( + 14 ) * + 84 ) * 54 - + 78 + + - 64 AS col0
----
-1762

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT 6 AS col1, MIN( DISTINCT 91 )
----
6
91

skipif mysql # not compatible
query II rowsort label-4856
SELECT 6 AS col1, MIN ( DISTINCT 91 )
----
6
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT 60 * - COUNT( 26 ) * - + 22 AS col0
----
1320

skipif mysql # not compatible
query I rowsort label-4857
SELECT 60 * - COUNT ( 26 ) * - + 22 AS col0
----
1320

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT ALL - 63 AS col2, MIN( ALL - 40 )
----
-63
-40

skipif mysql # not compatible
query II rowsort label-4858
SELECT ALL - 63 AS col2, MIN ( ALL - 40 )
----
-63
-40

query II rowsort
SELECT DISTINCT - 66 col2, - 36 AS col0
----
-66
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL - 87 DIV + ( - - 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - 87 / + ( - - 47 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4861
SELECT + - 15 AS col1, + 63 / + + CASE + + 2 WHEN SUM( - 28 ) + - + COUNT( * ) * + 98 THEN - ( - - 22 ) END
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-4861
SELECT + - 15 AS col1, + 63 / + + CASE + + 2 WHEN SUM ( - 28 ) + - + COUNT ( * ) * + 98 THEN - ( - - 22 ) END
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL - + SUM( - + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - + SUM ( - + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + COUNT( * ) * - - COALESCE ( - 8, - + 82 * + + 24 ) + 98 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4863
SELECT + COUNT ( * ) * - - COALESCE ( - 8, - + 82 * + + 24 ) + 98 AS col1
----
90

query I rowsort
SELECT DISTINCT 83 - + 12
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT - 71 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT - 71 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4866
SELECT - 41 * - + 4 * + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col2
----
164
NULL

skipif mysql # not compatible
query II rowsort label-4866
SELECT - 41 * - + 4 * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2
----
164
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT DISTINCT - 93 * - - NULLIF ( + CAST( NULL AS SIGNED ), 41 ) / - ( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - 93 * - - NULLIF ( + CAST ( NULL AS INTEGER ), 41 ) / - ( - 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT 71 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4868
SELECT 71 * - COUNT ( * )
----
-71

query I rowsort
SELECT - 54 * 29 col0
----
-1566

query II rowsort
SELECT + 73, + 44 + - 40 AS col1
----
73
4

query I rowsort
SELECT 64 + - 28 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT + CAST( NULL AS SIGNED ) * - 72 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT + CAST ( NULL AS INTEGER ) * - 72 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - - COALESCE ( - 43, - COUNT( * ) - + 13 ) * COUNT( * ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - - COALESCE ( - 43, - COUNT ( * ) - + 13 ) * COUNT ( * ) col1
----
-43

query I rowsort
SELECT DISTINCT - ( + + 45 ) * - 82 AS col0
----
3690

query I rowsort
SELECT ALL + - ( + ( 92 ) ) + 7
----
-85

query I rowsort
SELECT - + ( 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4877
SELECT - 87 + - MIN( + - CAST( - + 61 AS SIGNED ) ) - + ( 51 ) + + + 14 + - 87 DIV 36 AS col0
----
-187

skipif mysql # not compatible
query I rowsort label-4877
SELECT - 87 + - MIN ( + - CAST ( - + 61 AS INTEGER ) ) - + ( 51 ) + + + 14 + - 87 / 36 AS col0
----
-187

query I rowsort
SELECT - 57 * - + 21 + 31
----
1228

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4879
SELECT 33 + - CAST( + 51 AS SIGNED ) AS col2, - 22 * + NULLIF ( - 35, AVG ( ( CAST( NULL AS DECIMAL ) ) ) )
----
-18
770

skipif mysql # not compatible
query II rowsort label-4879
SELECT 33 + - CAST ( + 51 AS INTEGER ) AS col2, - 22 * + NULLIF ( - 35, AVG ( ( CAST ( NULL AS REAL ) ) ) )
----
-18
770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4880
SELECT DISTINCT - 14 + + + SUM( + NULLIF ( - + 59, - - 46 ) ) * - ( COALESCE ( - - 24, - 85 * - 44 - + + ( - 5 ), - 71 + - + 98 DIV ( - 11 ) + - + 57 ) ) col1
----
1402

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - 14 + + + SUM ( + NULLIF ( - + 59, - - 46 ) ) * - ( COALESCE ( - - 24, - 85 * - 44 - + + ( - 5 ), - 71 + - + 98 / ( - 11 ) + - + 57 ) ) col1
----
1402

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT ALL + 59 + - 57 col2, + COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-4881
SELECT ALL + 59 + - 57 col2, + COUNT ( * )
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT - COUNT( DISTINCT 61 ) * - 21
----
21

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT - COUNT ( DISTINCT 61 ) * - 21
----
21

query I rowsort
SELECT DISTINCT - 14 + - + 57
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL SUM( ALL - 3 ) * - 2 * - 70 * 29 - + 37 + + 79
----
-12138

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL SUM ( ALL - 3 ) * - 2 * - 70 * 29 - + 37 + + 79
----
-12138

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT 9 + - - MAX( + 82 ) + - CASE 44 WHEN + - COALESCE ( - 1, + ( - 44 ) ) - + 90 THEN + ( ( + SUM( 17 ) ) ) - - COUNT( * ) + - + 55 / 88 - - ( + - 5 ) WHEN - + 60 THEN NULL WHEN + 39 / 47 THEN - NULLIF ( - ( + 77 ), 35 ) * 15 END + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT 9 + - - MAX ( + 82 ) + - CASE 44 WHEN + - COALESCE ( - 1, + ( - 44 ) ) - + 90 THEN + ( ( + SUM ( 17 ) ) ) - - COUNT ( * ) + - + 55 / 88 - - ( + - 5 ) WHEN - + 60 THEN NULL WHEN + 39 / 47 THEN - NULLIF ( - ( + 77 ), 35 ) * 15 END + 87 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 87 * 67 col2
----
-5829

query I rowsort
SELECT 25 + + 75 + 48 * + 73
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT - ( - 94 ) * 51 + - COUNT( * ) col1
----
4793

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT - ( - 94 ) * 51 + - COUNT ( * ) col1
----
4793

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL SUM( DISTINCT + - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL SUM ( DISTINCT + - 82 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT 33 DIV - 85 + 83 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4890
SELECT 33 / - 85 + 83 AS col2
----
83

query II rowsort
SELECT 15 + - 46, 45 AS col1
----
-31
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT SUM( ALL + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4892
SELECT SUM ( ALL + - 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT ALL - CAST( 55 AS SIGNED ) * 34 + MIN( DISTINCT + - 87 ) / + 37 - - ( CASE - 72 WHEN + COUNT( * ) THEN + 56 - + - 51 + 50 WHEN - + CASE 79 WHEN - CASE + - CASE 97 WHEN 69 - - 77 THEN NULL ELSE + 47 END WHEN + COUNT( * ) / - - COUNT( * ) THEN NULL ELSE + 43 END / + 75 + CASE + COUNT( * ) WHEN 6 THEN NULL WHEN 43 THEN + 85 END THEN - 52 END THEN + AVG ( ALL + 10 ) END ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL - CAST ( 55 AS INTEGER ) * 34 + MIN ( DISTINCT + - 87 ) / + 37 - - ( CASE - 72 WHEN + COUNT ( * ) THEN + 56 - + - 51 + 50 WHEN - + CASE 79 WHEN - CASE + - CASE 97 WHEN 69 - - 77 THEN NULL ELSE + 47 END WHEN + COUNT ( * ) / - - COUNT ( * ) THEN NULL ELSE + 43 END / + 75 + CASE + COUNT ( * ) WHEN 6 THEN NULL WHEN 43 THEN + 85 END THEN - 52 END THEN + AVG ( ALL + 10 ) END ) + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT DISTINCT - - 38 * + ( - 62 ) * + - 9 + - + 68 + + 87 - + 93 DIV - 97
----
21223

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - - 38 * + ( - 62 ) * + - 9 + - + 68 + + 87 - + 93 / - 97
----
21223

onlyif mysql # aggregate syntax: 
query II rowsort label-4895
SELECT COUNT( * ) * - - 7 AS col2, 35
----
7
35

skipif mysql # not compatible
query II rowsort label-4895
SELECT COUNT ( * ) * - - 7 AS col2, 35
----
7
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL 33 * + 5 + + + CASE 74 WHEN + 58 THEN NULL WHEN + + 99 + 90 + 23 + + + 28 * - + 99 - - 22 + - ( - MIN( + + 81 ) ) * ( + + 75 ) / - 56 + - 33 THEN 9 * - 0 * 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL 33 * + 5 + + + CASE 74 WHEN + 58 THEN NULL WHEN + + 99 + 90 + 23 + + + 28 * - + 99 - - 22 + - ( - MIN ( + + 81 ) ) * ( + + 75 ) / - 56 + - 33 THEN 9 * - 0 * 34 END
----
NULL

query I rowsort
SELECT - NULLIF ( + 92, + 47 * + 32 ) + - 74
----
-166

query II rowsort
SELECT 9 * + 89, + ( - 98 ) - ( - COALESCE ( + 43, + + 53 ) ) AS col0
----
801
-55

query I rowsort
SELECT - NULLIF ( + 99, + 62 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4900
SELECT + 38 * + + CAST( AVG ( - 16 ) AS SIGNED ), - 27 * 35 * - + 12 AS col2
----
-608
11340

skipif mysql # not compatible
query II rowsort label-4900
SELECT + 38 * + + CAST ( AVG ( - 16 ) AS INTEGER ), - 27 * 35 * - + 12 AS col2
----
-608
11340

query I rowsort
SELECT DISTINCT - - ( - - 95 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT + 5 DIV + + 71 + + 33 * - 5 * + 0
----
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT + 5 / + + 71 + + 33 * - 5 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + + COUNT( - 79 ) + + + 13 col1
----
14

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + + COUNT ( - 79 ) + + + 13 col1
----
14

query I rowsort
SELECT ALL + 48 + - 27 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT + NULLIF ( + 5, 11 * - AVG ( ALL - 26 ) ) * - + 74 * - COALESCE ( 16, - + 92 ) - 18 * - - CAST( NULL AS SIGNED ) + - 81 + - - 35 + - - 90 / 64 + 76 - - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT + NULLIF ( + 5, 11 * - AVG ( ALL - 26 ) ) * - + 74 * - COALESCE ( 16, - + 92 ) - 18 * - - CAST ( NULL AS INTEGER ) + - 81 + - - 35 + - - 90 / 64 + 76 - - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - - 51 + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4906
SELECT - - 51 + COUNT ( * ) AS col2
----
52

query I rowsort
SELECT DISTINCT - 46 + - 25 * 13 + 31 + + 35 * - 59 AS col1
----
-2405

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT ALL + 87 + + COUNT( * ) + - 32 + 7 AS col0, + 82 * + 82 * + 53 + 62
----
63
356434

skipif mysql # not compatible
query II rowsort label-4908
SELECT ALL + 87 + + COUNT ( * ) + - 32 + 7 AS col0, + 82 * + 82 * + 53 + 62
----
63
356434

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + 0 - + 4 * + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-4909
SELECT + 0 - + 4 * + COUNT ( * )
----
-4

query I rowsort
SELECT ALL - 1 * - 15
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4911
SELECT ALL SUM( DISTINCT - CAST( - 19 AS SIGNED ) ) + - 70 * - COUNT( ALL + - 65 ), - 61 AS col0
----
89
-61

skipif mysql # not compatible
query II rowsort label-4911
SELECT ALL SUM ( DISTINCT - CAST ( - 19 AS INTEGER ) ) + - 70 * - COUNT ( ALL + - 65 ), - 61 AS col0
----
89
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4912
SELECT DISTINCT COALESCE ( + - COUNT( + + CAST( NULL AS DECIMAL ) ), - 79 - - 18 + + COUNT( * ) + - SUM( ALL - 3 ) * + CAST( 23 AS SIGNED ) * + NULLIF ( - + 8, - COUNT( * ) ), - - 9, + + 63 ) AS col0, 15
----
0
15

skipif mysql # not compatible
query II rowsort label-4912
SELECT DISTINCT COALESCE ( + - COUNT ( + + CAST ( NULL AS REAL ) ), - 79 - - 18 + + COUNT ( * ) + - SUM ( ALL - 3 ) * + CAST ( 23 AS INTEGER ) * + NULLIF ( - + 8, - COUNT ( * ) ), - - 9, + + 63 ) AS col0, 15
----
0
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL + 28 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + 28 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT MIN( + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT MIN ( + - 51 )
----
-51

query I rowsort
SELECT - 88 + - + 63 AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL SUM( ALL - NULLIF ( + 34, - - 25 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL SUM ( ALL - NULLIF ( + 34, - - 25 ) )
----
-34

query I rowsort
SELECT - 23 - + 17 - 23
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT ALL CASE - 89 WHEN + - 22 * - CAST( + - 50 AS SIGNED ) + 70 + + 41 * - 92 * - + 17 THEN 50 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL CASE - 89 WHEN + - 22 * - CAST ( + - 50 AS INTEGER ) + 70 + + 41 * - 92 * - + 17 THEN 50 END AS col0
----
NULL

query I rowsort
SELECT - 52 * - 24
----
1248

query I rowsort
SELECT - 87 * 70
----
-6090

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT ALL + 66 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + 66 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL COALESCE ( COUNT( * ), - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL COALESCE ( COUNT ( * ), - 6 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT + COUNT( * ) * + 9 * - 15
----
-135

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT + COUNT ( * ) * + 9 * - 15
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL + NULLIF ( - COUNT( - 89 ), + COALESCE ( + 79, - + 85 ) ) * - + 49
----
49

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + NULLIF ( - COUNT ( - 89 ), + COALESCE ( + 79, - + 85 ) ) * - + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + SUM( DISTINCT - NULLIF ( - ( + 4 ), + ( + - 1 ) + 95 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4925
SELECT + SUM ( DISTINCT - NULLIF ( - ( + 4 ), + ( + - 1 ) + 95 ) ) AS col0
----
4

query I rowsort
SELECT + 91 * + 20
----
1820

query I rowsort
SELECT - - 62 * 11 AS col1
----
682

query I rowsort
SELECT - 44 * 47
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL + COUNT( DISTINCT - 30 )
----
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + COUNT ( DISTINCT - 30 )
----
1

query I rowsort
SELECT + + 24 * - 72 AS col2
----
-1728

query I rowsort
SELECT + + 38 + + 27 + - 65 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT + ( COUNT( + 7 ) ) * CASE + 77 WHEN + 31 * 99 + 53 THEN - - 24 END * - 76 + 53 / 58 + CAST( - + 29 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT + ( COUNT ( + 7 ) ) * CASE + 77 WHEN + 31 * 99 + 53 THEN - - 24 END * - 76 + 53 / 58 + CAST ( - + 29 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL 68 * + MIN( + - 41 ) + - NULLIF ( + 93, + 74 * + 23 ) + 99 + - 73 * 16 AS col2
----
-3950

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 68 * + MIN ( + - 41 ) + - NULLIF ( + 93, + 74 * + 23 ) + 99 + - 73 * 16 AS col2
----
-3950

query I rowsort
SELECT - 60 + + - 68 AS col1
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT + COUNT( * ) - - 85 DIV - + 36
----
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT + COUNT ( * ) - - 85 / - + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT - CASE - - 60 WHEN - - COUNT( * ) THEN ( + 38 ) * + COUNT( * ) + - ( - 38 ) + - CASE - + 97 WHEN - - 15 * 42 + 29 THEN - - 8 WHEN - COALESCE ( + 60, + 10 * 50 - 50, 6 ) * - 98 + CASE - MAX( + 56 ) WHEN - 12 + 95 THEN 68 END + + 88 * 74 THEN NULL WHEN - 0 + + COUNT( * ) * + 77 THEN - 21 + - NULLIF ( ( + 63 ), 64 + - 19 * ( 53 ) ) * + 91 END + 87 * 26 WHEN + 70 * + 46 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT - CASE - - 60 WHEN - - COUNT ( * ) THEN ( + 38 ) * + COUNT ( * ) + - ( - 38 ) + - CASE - + 97 WHEN - - 15 * 42 + 29 THEN - - 8 WHEN - COALESCE ( + 60, + 10 * 50 - 50, 6 ) * - 98 + CASE - MAX ( + 56 ) WHEN - 12 + 95 THEN 68 END + + 88 * 74 THEN NULL WHEN - 0 + + COUNT ( * ) * + 77 THEN - 21 + - NULLIF ( ( + 63 ), 64 + - 19 * ( 53 ) ) * + 91 END + 87 * 26 WHEN + 70 * + 46 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + - ( - 96 )
----
96

query I rowsort
SELECT + + 22 + - 31 col0
----
-9

query I rowsort
SELECT DISTINCT + - 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT + COUNT( - ( - 96 ) ) * + 1 + + + COUNT( * ) + + + 67 + + 91 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + COUNT ( - ( - 96 ) ) * + 1 + + + COUNT ( * ) + + + 67 + + 91 AS col2
----
160

query I rowsort
SELECT ALL + 88 * ( + - ( - 46 ) ) + 64 AS col2
----
4112

query I rowsort
SELECT + 71 * + 58
----
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + COUNT( * ) * - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4943
SELECT + COUNT ( * ) * - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4944
SELECT DISTINCT COUNT( DISTINCT - 69 ) - + + 36 * ( - + 87 ) - - 59 * 2 DIV 55
----
3135

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT COUNT ( DISTINCT - 69 ) - + + 36 * ( - + 87 ) - - 59 * 2 / 55
----
3135

query I rowsort
SELECT + 35 * + 40 * + 82
----
114800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) * - - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL COUNT ( * ) - CAST ( NULL AS INTEGER ) * - - 69 AS col2
----
NULL

query I rowsort
SELECT + 11 * 91
----
1001

query II rowsort
SELECT 17 AS col0, + COALESCE ( - 98, - - 2, + 32 * 85 - + + 73 + - 51 ) AS col1
----
17
-98

query I rowsort
SELECT + 28 + + 94 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT ALL COALESCE ( - - CAST( 18 AS SIGNED ), + + 31 )
----
18

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL COALESCE ( - - CAST ( 18 AS INTEGER ), + + 31 )
----
18

query I rowsort
SELECT + 4 + + - NULLIF ( - 33, - 29 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT CASE - 14 WHEN + - ( - 12 ) THEN - - 2 ELSE - ( - 62 ) DIV - 18 + 77 END
----
74

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT CASE - 14 WHEN + - ( - 12 ) THEN - - 2 ELSE - ( - 62 ) / - 18 + 77 END
----
74

query I rowsort
SELECT + 45 * 41 AS col2
----
1845

query I rowsort
SELECT ALL ( + ( 86 ) ) AS col1
----
86

query I rowsort
SELECT - - 53 + + 48
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT + 20 * - NULLIF ( + 73, - 19 + 42 ) + + + 13 + + COUNT( * ) col0
----
-1446

skipif mysql # not compatible
query I rowsort label-4956
SELECT + 20 * - NULLIF ( + 73, - 19 + 42 ) + + + 13 + + COUNT ( * ) col0
----
-1446

query I rowsort
SELECT ALL - 61 + 34 + 25 + + - 60 col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT DISTINCT + 3 DIV + - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT + 3 / + - 73 AS col1
----
0

query I rowsort
SELECT DISTINCT - - 99 + ( + + 3 ) + + + 94
----
196

query I rowsort
SELECT ALL + - 28 + 11 * + - 42
----
-490

onlyif mysql # DIV for integer division: 
query II rowsort label-4961
SELECT + - ( + ( - - ( - + 9 ) ) ) col1, 70 DIV - + 14
----
9
-5

skipif mysql # not compatible
query II rowsort label-4961
SELECT + - ( + ( - - ( - + 9 ) ) ) col1, 70 / - + 14
----
9
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT ALL - 12 + + 83 * + 40 * - + COALESCE ( 83, + CAST( NULL AS SIGNED ), + COUNT( * ), - - COUNT( - + 2 ) + - + 8 ) * 24 AS col0
----
-6613452

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - 12 + + 83 * + 40 * - + COALESCE ( 83, + CAST ( NULL AS INTEGER ), + COUNT ( * ), - - COUNT ( - + 2 ) + - + 8 ) * 24 AS col0
----
-6613452

query I rowsort
SELECT + - ( - 67 )
----
67

query I rowsort
SELECT - 45 * + + 59 + + 54
----
-2601

query I rowsort
SELECT ALL - ( - 22 ) + - 69
----
-47

query I rowsort
SELECT 26 * - - 29 AS col0
----
754

query I rowsort
SELECT - NULLIF ( + 90, 28 ) AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4968
SELECT CAST( + + 72 AS SIGNED ), + 1 * 82 + - 46 + 31 AS col1
----
72
67

skipif mysql # not compatible
query II rowsort label-4968
SELECT CAST ( + + 72 AS INTEGER ), + 1 * 82 + - 46 + 31 AS col1
----
72
67

query I rowsort
SELECT DISTINCT + 18 + + 45 + - 12
----
51

query I rowsort
SELECT 49 + - 57 * + 49
----
-2744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4971
SELECT ALL + - CASE + 35 WHEN + - ( - + 85 ) THEN + 51 WHEN + COALESCE ( - + MAX( - 49 ), - CAST( NULL AS SIGNED ) * - + COUNT( ALL ( NULLIF ( 56, + + 54 - - 35 ) ) ) * + 65 * - 97 / - 9 * 97 * + CAST( 82 AS DECIMAL ) * 96, - 8 * - ( COUNT( * ) ) + + 94 + + 37 * 46 ) * COUNT( * ) + 62 * AVG ( ALL - 64 ) THEN NULL ELSE NULL END - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL + - CASE + 35 WHEN + - ( - + 85 ) THEN + 51 WHEN + COALESCE ( - + MAX ( - 49 ), - CAST ( NULL AS INTEGER ) * - + COUNT ( ALL ( NULLIF ( 56, + + 54 - - 35 ) ) ) * + 65 * - 97 / - 9 * 97 * + CAST ( 82 AS REAL ) * 96, - 8 * - ( COUNT ( * ) ) + + 94 + + 37 * 46 ) * COUNT ( * ) + 62 * AVG ( ALL - 64 ) THEN NULL ELSE NULL END - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4972
SELECT DISTINCT - + 68, CASE WHEN NOT NULL < NULL THEN 78 END AS col2, 38 * + - 29 + - COUNT( * ) + - NULLIF ( + 38, + 77 * + 42 ) + + 79 * MAX( DISTINCT + - 32 ) AS col0
----
-68
NULL
-3669

skipif mysql # not compatible
query III rowsort label-4972
SELECT DISTINCT - + 68, CASE WHEN NOT NULL < NULL THEN 78 END AS col2, 38 * + - 29 + - COUNT ( * ) + - NULLIF ( + 38, + 77 * + 42 ) + + 79 * MAX ( DISTINCT + - 32 ) AS col0
----
-68
NULL
-3669

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT ( - + COUNT( * ) ) * + + 89
----
-89

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT ( - + COUNT ( * ) ) * + + 89
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL - CAST( - COALESCE ( + 76, + 4, ( - 2 ) + - 44 ) AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - CAST ( - COALESCE ( + 76, + 4, ( - 2 ) + - 44 ) AS INTEGER ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT 93 - + COUNT( - + CAST( - + 48 AS SIGNED ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4975
SELECT 93 - + COUNT ( - + CAST ( - + 48 AS INTEGER ) ) AS col2
----
92

query I rowsort
SELECT NULLIF ( + ( - ( + - 54 ) ), 60 / - COALESCE ( - 71, + 50 ) ) * - 95
----
-5130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT ( SUM( - 19 ) ) + + NULLIF ( 16, CAST( NULL AS SIGNED ) ) * + - 79 * COUNT( * ) + + 14 * - - 89 * - SUM( 51 ) AS col0
----
-64829

skipif mysql # not compatible
query I rowsort label-4977
SELECT ( SUM ( - 19 ) ) + + NULLIF ( 16, CAST ( NULL AS INTEGER ) ) * + - 79 * COUNT ( * ) + + 14 * - - 89 * - SUM ( 51 ) AS col0
----
-64829

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT DISTINCT ( 26 ) * + + COALESCE ( + CASE - 42 WHEN + 53 THEN NULL WHEN - - 18 THEN + 17 ELSE + - 53 END, - + COUNT( * ), + + 83 ) + + + 97 - - 98
----
-1183

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT ( 26 ) * + + COALESCE ( + CASE - 42 WHEN + 53 THEN NULL WHEN - - 18 THEN + 17 ELSE + - 53 END, - + COUNT ( * ), + + 83 ) + + + 97 - - 98
----
-1183

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT NULLIF ( + + MAX( 13 ), 24 * + + 31 ) * - 41 AS col0
----
-533

skipif mysql # not compatible
query I rowsort label-4979
SELECT NULLIF ( + + MAX ( 13 ), 24 * + + 31 ) * - 41 AS col0
----
-533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT CAST( + 66 AS SIGNED ) * 21 + + CAST( NULL AS SIGNED ) + 68 * - NULLIF ( - - 21, COALESCE ( 36, - - 34 * - 5 * + 23 ) + - NULLIF ( + 8, + AVG ( ALL + 18 ) * 25 ) - + ( + - 94 ) + + ( - COALESCE ( - COUNT( * ), - MIN( DISTINCT - ( + 75 ) ) + + 10 + - ( COUNT( * ) ) + + ( 40 ), 59 ) ) + - 31 * 96 * 74 ) * + 87 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT CAST ( + 66 AS INTEGER ) * 21 + + CAST ( NULL AS INTEGER ) + 68 * - NULLIF ( - - 21, COALESCE ( 36, - - 34 * - 5 * + 23 ) + - NULLIF ( + 8, + AVG ( ALL + 18 ) * 25 ) - + ( + - 94 ) + + ( - COALESCE ( - COUNT ( * ), - MIN ( DISTINCT - ( + 75 ) ) + + 10 + - ( COUNT ( * ) ) + + ( 40 ), 59 ) ) + - 31 * 96 * 74 ) * + 87 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 66 * + + 97 AS col0
----
6402

query I rowsort
SELECT 37 - - + 61 * + 43 col2
----
2660

query I rowsort
SELECT 44 * + + 92 AS col1
----
4048

query I rowsort
SELECT DISTINCT 10 * - 4 * + CASE + + 49 WHEN 94 THEN + 80 END * 98
----
NULL

query I rowsort
SELECT DISTINCT 64 col0
----
64

query I rowsort
SELECT 34 * - 3 * - 93 AS col0
----
9486

query I rowsort
SELECT NULLIF ( + - 45, + 14 * - 85 - 31 ) * + - 90
----
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4988
SELECT ALL 65 + - - 44 / + 57 + + CAST( NULL AS SIGNED ) * - 97 - - ( - COUNT( ALL + 79 ) ) - - 70 - + 93 * - - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL 65 + - - 44 / + 57 + + CAST ( NULL AS INTEGER ) * - 97 - - ( - COUNT ( ALL + 79 ) ) - - 70 - + 93 * - - 96 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT 92 * CAST( NULL AS SIGNED ) + + 61 + 64 * 12 / + 51 / + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT 92 * CAST ( NULL AS INTEGER ) + + 61 + 64 * 12 / + 51 / + 47 AS col1
----
NULL

query I rowsort
SELECT - 49 * + + 94 AS col2
----
-4606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT ALL + - CAST( - + 51 AS SIGNED ) + - 40 + ( + 14 ) * + 78 * 43
----
46967

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + - CAST ( - + 51 AS INTEGER ) + - 40 + ( + 14 ) * + 78 * 43
----
46967

query I rowsort
SELECT DISTINCT - 74 * + - 85 * + 42 AS col1
----
264180

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + MAX( ALL - 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4993
SELECT + MAX ( ALL - 13 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT ALL + COUNT( * ) + 46 AS col0, MAX( DISTINCT + 42 )
----
47
42

skipif mysql # not compatible
query II rowsort label-4994
SELECT ALL + COUNT ( * ) + 46 AS col0, MAX ( DISTINCT + 42 )
----
47
42

query I rowsort
SELECT + 15 + - 43 - - 12
----
-16

query I rowsort
SELECT 61 * - ( - + 63 )
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT 61 * - 36 * + 88 + + - COUNT( * ) * 9 * + + 56 * + 34 * + + 53 * 8 * 86 + - 8
----
-625040360

skipif mysql # not compatible
query I rowsort label-4997
SELECT 61 * - 36 * + 88 + + - COUNT ( * ) * 9 * + + 56 * + 34 * + + 53 * 8 * 86 + - 8
----
-625040360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4998
SELECT ALL + + MIN( ALL + CAST( NULL AS SIGNED ) ) + - - 75 * MAX( CAST( - 92 AS SIGNED ) ) * 98 * - COUNT( * ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + - - 75 * MAX ( CAST ( - 92 AS INTEGER ) ) * 98 * - COUNT ( * ) / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT - COUNT( * ) DIV - 51 * 31 + - - 71 + + 60 + COALESCE ( - - 12, - 23 ) col1
----
143

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COUNT ( * ) / - 51 * 31 + - - 71 + + 60 + COALESCE ( - - 12, - 23 ) col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT 69 * + 14 * + + 26 - + 85 + SUM( 24 ) * - 17 * - 35 col2
----
39311

skipif mysql # not compatible
query I rowsort label-5000
SELECT 69 * + 14 * + + 26 - + 85 + SUM ( 24 ) * - 17 * - 35 col2
----
39311

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT 84 * COALESCE ( 43, 11, - + 86 ) * 56 * - + COUNT( * ) + 49
----
-202223

skipif mysql # not compatible
query I rowsort label-5001
SELECT 84 * COALESCE ( 43, 11, - + 86 ) * 56 * - + COUNT ( * ) + 49
----
-202223

onlyif mysql # DIV for integer division: 
query II rowsort label-5002
SELECT DISTINCT - 58 DIV + + 22, 45 AS col2
----
-2
45

skipif mysql # not compatible
query II rowsort label-5002
SELECT DISTINCT - 58 / + + 22, 45 AS col2
----
-2
45

query I rowsort
SELECT 33 + 17 - - 63 AS col2
----
113

query I rowsort
SELECT ALL - - 9 * + - ( + 15 )
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - CASE + - COUNT( * ) WHEN - 7 * - 0 + + - 50 THEN - 47 END * + COALESCE ( + 75, - 26 - + 76 ) * + 72 + CAST( - 50 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - CASE + - COUNT ( * ) WHEN - 7 * - 0 + + - 50 THEN - 47 END * + COALESCE ( + 75, - 26 - + 76 ) * + 72 + CAST ( - 50 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT 93 + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5006
SELECT 93 + + COUNT ( * ) AS col0
----
94

query I rowsort
SELECT 78 * + + 92 - 25
----
7151

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL - COUNT( * ) * 92 * - 5 AS col2
----
460

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - COUNT ( * ) * 92 * - 5 AS col2
----
460

query I rowsort
SELECT 99 * - 34 AS col2
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT COUNT( * ) + - + 44
----
-43

skipif mysql # not compatible
query I rowsort label-5010
SELECT COUNT ( * ) + - + 44
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL + 79 - - 27 - - + SUM( ALL + 89 ) AS col2
----
195

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL + 79 - - 27 - - + SUM ( ALL + 89 ) AS col2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT 18 DIV + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5012
SELECT 18 / + 37 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5013
SELECT 54 DIV 28 DIV NULLIF ( ( 67 ), - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT 54 / 28 / NULLIF ( ( 67 ), - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT ALL - 6 DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - 6 / - 62 AS col1
----
0

query I rowsort
SELECT 28 + 64 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL SUM( ALL 66 ) col0
----
66

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL SUM ( ALL 66 ) col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5017
SELECT 24 + - 45 - - + NULLIF ( 17, COUNT( * ) * 48 ) AS col1, + 27 col0
----
-4
27

skipif mysql # not compatible
query II rowsort label-5017
SELECT 24 + - 45 - - + NULLIF ( 17, COUNT ( * ) * 48 ) AS col1, + 27 col0
----
-4
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT 34 + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5018
SELECT 34 + COUNT ( * ) AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5019
SELECT - SUM( ALL ( + - 98 ) ), COUNT( * ) DIV - - 14 AS col2
----
98
0

skipif mysql # not compatible
query II rowsort label-5019
SELECT - SUM ( ALL ( + - 98 ) ), COUNT ( * ) / - - 14 AS col2
----
98
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT DISTINCT 65, - 83 * COUNT( * ) AS col0
----
65
-83

skipif mysql # not compatible
query II rowsort label-5020
SELECT DISTINCT 65, - 83 * COUNT ( * ) AS col0
----
65
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL 33 + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL 33 + COUNT ( * ) AS col2
----
34

query I rowsort
SELECT 50 + - + 65 col0
----
-15

query I rowsort
SELECT ALL 9 + - + 90
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + NULLIF ( 69, 24 / - 85 * - COUNT( * ) + - 26 ) + + 20
----
89

skipif mysql # not compatible
query I rowsort label-5024
SELECT + NULLIF ( 69, 24 / - 85 * - COUNT ( * ) + - 26 ) + + 20
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT ALL + 72 + - 87 DIV 38 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + 72 + - 87 / 38 AS col0
----
70

query I rowsort
SELECT ALL - 36 * + 24 - + 87 AS col2
----
-951

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL - ( 95 ) + + COUNT( * ) + 68 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - ( 95 ) + + COUNT ( * ) + 68 AS col1
----
-26

query I rowsort
SELECT + + 50 + - 44 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT - 87 + + ( - 79 ) + + + MIN( DISTINCT - 87 ) * + - 25 AS col1
----
2009

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT - 87 + + ( - 79 ) + + + MIN ( DISTINCT - 87 ) * + - 25 AS col1
----
2009

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5030
SELECT - SUM( ALL + 44 ) DIV 3, + MAX( ALL - 47 ) col2
----
-14
-47

skipif mysql # not compatible
query II rowsort label-5030
SELECT - SUM ( ALL + 44 ) / 3, + MAX ( ALL - 47 ) col2
----
-14
-47

query I rowsort
SELECT + 69 + - 51
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT ALL COALESCE ( - + 24, 17 * + + COALESCE ( - - 30, - ( + 20 ) * - - 48 ) ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL COALESCE ( - + 24, 17 * + + COALESCE ( - - 30, - ( + 20 ) * - - 48 ) ) / 33
----
0

query II rowsort
SELECT ALL 88 AS col2, + 18 AS col0
----
88
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5034
SELECT + + 98 / - CASE - - COALESCE ( + 76, + - CAST( NULL AS DECIMAL ), + 84 ) WHEN - 71 THEN 71 WHEN - 64 * + 52 THEN 97 ELSE + - CASE + 72 WHEN - + ( + ( ( - + COUNT( * ) ) ) ) THEN 60 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT + + 98 / - CASE - - COALESCE ( + 76, + - CAST ( NULL AS REAL ), + 84 ) WHEN - 71 THEN 71 WHEN - 64 * + 52 THEN 97 ELSE + - CASE + 72 WHEN - + ( + ( ( - + COUNT ( * ) ) ) ) THEN 60 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - + 93 * + + 76 + - ( - 54 ) + - 75 * + MIN( - - 57 )
----
-11289

skipif mysql # not compatible
query I rowsort label-5035
SELECT - + 93 * + + 76 + - ( - 54 ) + - 75 * + MIN ( - - 57 )
----
-11289

query I rowsort
SELECT ALL - 29 * + 4 AS col0
----
-116

query I rowsort
SELECT + - 24 * - 33 AS col0
----
792

query I rowsort
SELECT ALL - 73 * + - 43 * + 15 - 27 AS col0
----
47058

query I rowsort
SELECT ALL 23 * - + 55 AS col2
----
-1265

query I rowsort
SELECT + + ( - 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5041
SELECT ALL + 8 * - + 87 * 57 * + COALESCE ( 23, 34 ) * - + CAST( COUNT( * ) AS SIGNED ) + COUNT( * ) * - 5 + - + 51 - + CASE + - 58 WHEN - 27 THEN NULL WHEN + 38 THEN + 31 DIV + 11 + + 73 ELSE - 27 END AS col2
----
912427

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + 8 * - + 87 * 57 * + COALESCE ( 23, 34 ) * - + CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( * ) * - 5 + - + 51 - + CASE + - 58 WHEN - 27 THEN NULL WHEN + 38 THEN + 31 / + 11 + + 73 ELSE - 27 END AS col2
----
912427

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5042
SELECT 77, - MAX( - + 62 ) DIV - + 98 AS col1
----
77
0

skipif mysql # not compatible
query II rowsort label-5042
SELECT 77, - MAX ( - + 62 ) / - + 98 AS col1
----
77
0

query II rowsort
SELECT + 6 AS col2, - 29 + 79 AS col2
----
6
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5044
SELECT ALL + 68 col2, COUNT( + 89 ) DIV + + 90 col1
----
68
0

skipif mysql # not compatible
query II rowsort label-5044
SELECT ALL + 68 col2, COUNT ( + 89 ) / + + 90 col1
----
68
0

query II rowsort
SELECT + + 12, 42 AS col1
----
12
42

query I rowsort
SELECT + 36 * + 36
----
1296

query I rowsort
SELECT - 41 * + + 37
----
-1517

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ALL + CASE 41 WHEN + SUM( + ( - 78 ) ) THEN + 12 * - 11 WHEN 96 * - 33 + - 83 THEN + COUNT( * ) * 18 ELSE - 10 END AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL + CASE 41 WHEN + SUM ( + ( - 78 ) ) THEN + 12 * - 11 WHEN 96 * - 33 + - 83 THEN + COUNT ( * ) * 18 ELSE - 10 END AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5049
SELECT CASE - - CASE + - 94 WHEN - 32 + + - MIN( ALL + 74 ) THEN NULLIF ( NULLIF ( - - 4, 89 ), COUNT( - - 41 ) + - 35 + + MAX( ALL - ( + 18 ) ) ) * + NULLIF ( - 95, - COUNT( * ) - - COUNT( * ) ) END WHEN 67 * + 10 + MIN( DISTINCT - + 38 ) THEN 30 WHEN - + ( - 15 ) * + - 91 + + ( 71 ) * - 81 THEN + 74 * - 98 ELSE 16 - + NULLIF ( - CAST( - 9 AS SIGNED ) - 9, - ( - 94 ) + - 23 ) END col1
----
16

skipif mysql # not compatible
query I rowsort label-5049
SELECT CASE - - CASE + - 94 WHEN - 32 + + - MIN ( ALL + 74 ) THEN NULLIF ( NULLIF ( - - 4, 89 ), COUNT ( - - 41 ) + - 35 + + MAX ( ALL - ( + 18 ) ) ) * + NULLIF ( - 95, - COUNT ( * ) - - COUNT ( * ) ) END WHEN 67 * + 10 + MIN ( DISTINCT - + 38 ) THEN 30 WHEN - + ( - 15 ) * + - 91 + + ( 71 ) * - 81 THEN + 74 * - 98 ELSE 16 - + NULLIF ( - CAST ( - 9 AS INTEGER ) - 9, - ( - 94 ) + - 23 ) END col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL - CAST( NULL AS SIGNED ) * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL - CAST ( NULL AS INTEGER ) * + 93 AS col0
----
NULL

query I rowsort
SELECT ALL + ( - - 25 ) AS col2
----
25

query I rowsort
SELECT DISTINCT - 93 * + ( + - 64 )
----
5952

query I rowsort
SELECT DISTINCT + CASE + - 68 WHEN + 92 + - 34 - 92 THEN NULL ELSE + 19 END AS col1
----
19

query I rowsort
SELECT 21 * 89 + 27
----
1896

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL - COUNT( * ) * 24 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - COUNT ( * ) * 24 AS col2
----
-24

query II rowsort
SELECT + 46 * - 92 AS col0, - 23 * - 13 AS col2
----
-4232
299

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT - COUNT( * ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5057
SELECT - COUNT ( * ) * COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( 88, - - 27 * - 47 - 63 )
----
88

query I rowsort
SELECT ALL - 21 + - 27 * - 20 AS col1
----
519

query I rowsort
SELECT - 16 * + 2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT - MAX( ALL - 1 ) - + 78 + - 42 + 71 DIV 29
----
-117

skipif mysql # not compatible
query I rowsort label-5061
SELECT - MAX ( ALL - 1 ) - + 78 + - 42 + 71 / 29
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5062
SELECT ALL + COUNT( * ) DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + COUNT ( * ) / + + 72
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT DISTINCT + + 55 + - + COALESCE ( - + 45, + 77 * + 13 DIV + + 4 DIV + - AVG ( 38 ) ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT + + 55 + - + COALESCE ( - + 45, + 77 * + 13 / + + 4 / + - AVG ( 38 ) ) AS col2
----
100

query I rowsort
SELECT + 5 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT + 83 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + 83 + - COUNT ( * )
----
82

query I rowsort
SELECT - - 28 - 22 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5067
SELECT DISTINCT + 31 * + 17 + + MIN( + 54 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + 31 * + 17 + + MIN ( + 54 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( ( - 33 ) ) * - + 78 + - - 52 - + 82 AS col2
----
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - COUNT( * ) + 24
----
23

skipif mysql # not compatible
query I rowsort label-5069
SELECT - COUNT ( * ) + 24
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5070
SELECT ALL 57 DIV 71 * - 2 - + ( - - 23 ) + - - 61 * 39 * MIN( + 10 ) AS col2, COUNT( * ) AS col1
----
23767
1

skipif mysql # not compatible
query II rowsort label-5070
SELECT ALL 57 / 71 * - 2 - + ( - - 23 ) + - - 61 * 39 * MIN ( + 10 ) AS col2, COUNT ( * ) AS col1
----
23767
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT - - COUNT( * ) * 46 * + - ( - 71 ) + - ( + 29 ) + - 52 AS col1
----
3185

skipif mysql # not compatible
query I rowsort label-5071
SELECT - - COUNT ( * ) * 46 * + - ( - 71 ) + - ( + 29 ) + - 52 AS col1
----
3185

onlyif mysql # DIV for integer division: 
query II rowsort label-5072
SELECT + - 26 DIV + ( ( - 60 ) ) * + + ( - + 90 ) + 20, 49 AS col0
----
20
49

skipif mysql # not compatible
query II rowsort label-5072
SELECT + - 26 / + ( ( - 60 ) ) * + + ( - + 90 ) + 20, 49 AS col0
----
20
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5073
SELECT + + 21 DIV - 20, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5073
SELECT + + 21 / - 20, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT DISTINCT 75 * + 44
----
3300

query I rowsort
SELECT 15 * + + 4 + + - 99
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT CAST( + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-5076
SELECT CAST ( + 4 AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5077
SELECT ALL + COALESCE ( - COUNT( + 13 ), - ( + 63 ) * 2 + + NULLIF ( 40, + 63 - - SUM( DISTINCT + 64 ) + - + 58 + - 14 ) + - 84 + 77 * + + 80, - CASE - 85 WHEN + 75 * + MAX( ALL + + 8 ) THEN + + 14 DIV + - CAST( NULL AS SIGNED ) + + + 70 WHEN - CAST( NULL AS SIGNED ) THEN + - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) END * - 62 - - 39 * 83 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + COALESCE ( - COUNT ( + 13 ), - ( + 63 ) * 2 + + NULLIF ( 40, + 63 - - SUM ( DISTINCT + 64 ) + - + 58 + - 14 ) + - 84 + 77 * + + 80, - CASE - 85 WHEN + 75 * + MAX ( ALL + + 8 ) THEN + + 14 / + - CAST ( NULL AS INTEGER ) + + + 70 WHEN - CAST ( NULL AS INTEGER ) THEN + - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) END * - 62 - - 39 * 83 ) / 80
----
0

query II rowsort
SELECT + 88 + + + 72 * - - 4 col0, + ( - 90 ) AS col0
----
376
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5079
SELECT + COUNT( * ) DIV + 58 * + COUNT( * ), + 68 AS col2
----
0
68

skipif mysql # not compatible
query II rowsort label-5079
SELECT + COUNT ( * ) / + 58 * + COUNT ( * ), + 68 AS col2
----
0
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5080
SELECT - 3 * 39 + NULLIF ( ( 64 ), - 65 ) * - 17 * - - 17 col2, + 70 + + 27 + ( - - 55 ) + + COUNT( * ) * - + 77 + - - 30 * + - 0 - 81 col1
----
-18613
-6

skipif mysql # not compatible
query II rowsort label-5080
SELECT - 3 * 39 + NULLIF ( ( 64 ), - 65 ) * - 17 * - - 17 col2, + 70 + + 27 + ( - - 55 ) + + COUNT ( * ) * - + 77 + - - 30 * + - 0 - 81 col1
----
-18613
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT COUNT( * ) * 64 * 98 AS col1
----
6272

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT COUNT ( * ) * 64 * 98 AS col1
----
6272

query I rowsort
SELECT + ( 89 ) AS col0
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5083
SELECT + 28 + CASE + 67 WHEN 68 THEN - 42 + 22 ELSE - 64 * + 55 / 97 * - CAST( NULL AS DECIMAL ) END col2, 68 * + 42 * - 76 AS col2
----
NULL
-217056

skipif mysql # not compatible
query II rowsort label-5083
SELECT + 28 + CASE + 67 WHEN 68 THEN - 42 + 22 ELSE - 64 * + 55 / 97 * - CAST ( NULL AS REAL ) END col2, 68 * + 42 * - 76 AS col2
----
NULL
-217056

query I rowsort
SELECT 53 * + 14 + 24 + - + 30
----
736

query I rowsort
SELECT ( - 60 ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5086
SELECT ALL CAST( - + CASE COUNT( * ) WHEN 44 * + + 48 - - - CASE 64 WHEN - CAST( - 15 AS SIGNED ) THEN - 94 WHEN 40 * - 82 THEN + CAST( NULL AS SIGNED ) * - 86 END + - + COUNT( * ) * - 75 / 57 * + + COUNT( * ) THEN COUNT( * ) / + 88 WHEN - + SUM( DISTINCT + 96 ) THEN NULL END AS SIGNED ) * + + 9 + + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL CAST ( - + CASE COUNT ( * ) WHEN 44 * + + 48 - - - CASE 64 WHEN - CAST ( - 15 AS INTEGER ) THEN - 94 WHEN 40 * - 82 THEN + CAST ( NULL AS INTEGER ) * - 86 END + - + COUNT ( * ) * - 75 / 57 * + + COUNT ( * ) THEN COUNT ( * ) / + 88 WHEN - + SUM ( DISTINCT + 96 ) THEN NULL END AS INTEGER ) * + + 9 + + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT CASE + + 19 WHEN COUNT( * ) / + 26 * - COUNT( * ) - 36 * + 15 * 96 THEN NULL WHEN 14 / + + 42 * + ( - - 11 ) THEN + COUNT( DISTINCT + 81 ) * - + 67 WHEN + - 95 * 30 THEN NULL ELSE NULL END * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT CASE + + 19 WHEN COUNT ( * ) / + 26 * - COUNT ( * ) - 36 * + 15 * 96 THEN NULL WHEN 14 / + + 42 * + ( - - 11 ) THEN + COUNT ( DISTINCT + 81 ) * - + 67 WHEN + - 95 * 30 THEN NULL ELSE NULL END * 82 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5088
SELECT 62 + 74 DIV + 78 + - CAST( + - ( - - 87 ) AS SIGNED )
----
149

skipif mysql # not compatible
query I rowsort label-5088
SELECT 62 + 74 / + 78 + - CAST ( + - ( - - 87 ) AS INTEGER )
----
149

query I rowsort
SELECT DISTINCT + 63 * - - 26 AS col0
----
1638

query I rowsort
SELECT ALL 57 + - 27
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL + COUNT( * ) + + 32 - 92
----
-59

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + COUNT ( * ) + + 32 - 92
----
-59

query I rowsort
SELECT + 68 + 87
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT + SUM( + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5093
SELECT + SUM ( + 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT - CAST( NULL AS SIGNED ) + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT - CAST ( NULL AS INTEGER ) + + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL + 54 * COUNT( * ) + - CASE + 51 WHEN + ( + 63 ) + + 76 THEN + COUNT( * ) + + 45 * - + 93 WHEN + 73 + + + 8 + - - 26 * + 14 * - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL + 54 * COUNT ( * ) + - CASE + 51 WHEN + ( + 63 ) + + 76 THEN + COUNT ( * ) + + 45 * - + 93 WHEN + 73 + + + 8 + - - 26 * + 14 * - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 95 * - 32 AS col2
----
3040

query I rowsort
SELECT ALL + 37 * + 53 + + 27 AS col0
----
1988

query I rowsort
SELECT 46 + - + 57
----
-11

query I rowsort
SELECT ALL - 93 * 80 AS col2
----
-7440

query I rowsort
SELECT DISTINCT - 35 * - 51 AS col2
----
1785

query II rowsort
SELECT ALL + 95 AS col2, + 85 + 80 col1
----
95
165

query I rowsort
SELECT 39 + - 96
----
-57

query I rowsort
SELECT DISTINCT + 43 - - 22 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT DISTINCT MIN( DISTINCT - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT MIN ( DISTINCT - 21 )
----
-21

query I rowsort
SELECT COALESCE ( - - 53, - 62 ) + + 3 col2
----
56

query I rowsort
SELECT + 67 + 44
----
111

query II rowsort
SELECT ALL CASE + - 40 WHEN 30 / + - ( - 39 ) THEN NULL WHEN + 87 THEN 69 / - + 60 + + 69 WHEN + + 51 THEN NULL END, - 32 AS col1
----
NULL
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT DISTINCT + - 73 * + CASE + 22 WHEN - 73 + + 69 + + 53 + + CAST( + COUNT( * ) AS SIGNED ) / - CASE - + 44 WHEN - + 48 * - 93 + - CASE 65 WHEN + + 54 THEN NULL WHEN - 92 + 54 * - - 48 * 90 THEN COUNT( * ) WHEN + 21 + COUNT( * ) - - COALESCE ( + 99, COUNT( DISTINCT + 84 ), 33 ) * - + 11 THEN 37 * + 17 END * 52 THEN 46 + + 89 WHEN 24 THEN COUNT( * ) + 10 WHEN + 83 + + 16 THEN NULL ELSE + MIN( - 58 ) END * + 88 THEN - 13 + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + - 73 * + CASE + 22 WHEN - 73 + + 69 + + 53 + + CAST ( + COUNT ( * ) AS INTEGER ) / - CASE - + 44 WHEN - + 48 * - 93 + - CASE 65 WHEN + + 54 THEN NULL WHEN - 92 + 54 * - - 48 * 90 THEN COUNT ( * ) WHEN + 21 + COUNT ( * ) - - COALESCE ( + 99, COUNT ( DISTINCT + 84 ), 33 ) * - + 11 THEN 37 * + 17 END * 52 THEN 46 + + 89 WHEN 24 THEN COUNT ( * ) + 10 WHEN + 83 + + 16 THEN NULL ELSE + MIN ( - 58 ) END * + 88 THEN - 13 + 2 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT ALL CAST( - 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL CAST ( - 76 AS INTEGER ) AS col2
----
-76

query I rowsort
SELECT + 94 + - 8
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT ALL + ( CAST( + 48 AS SIGNED ) ) + + 26 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + ( CAST ( + 48 AS INTEGER ) ) + + 26 AS col0
----
74

query I rowsort
SELECT ALL 59 + 95 - - 36 + + - 60 - + 6 * - + 27 col2
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL 53 + + MIN( 4 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL 53 + + MIN ( 4 ) AS col0
----
57

query II rowsort
SELECT 58, - 14 * - COALESCE ( + - 45, 56 ) col0
----
58
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5115
SELECT ALL - SUM( + 21 ) col0, - NULLIF ( + ( 45 ), CAST( NULL AS SIGNED ) ) * - 60 * - 25 AS col0
----
-21
-67500

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL - SUM ( + 21 ) col0, - NULLIF ( + ( 45 ), CAST ( NULL AS INTEGER ) ) * - 60 * - 25 AS col0
----
-21
-67500

query I rowsort
SELECT ALL + 93 + + 69 + - 14 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT 28 * COUNT( + 19 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5117
SELECT 28 * COUNT ( + 19 ) AS col0
----
28

query I rowsort
SELECT ( + 88 ) * - - 75 + - 51
----
6549

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL 17 + - 69 + MIN( ALL 17 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL 17 + - 69 + MIN ( ALL 17 ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5120
SELECT CAST( 37 AS SIGNED ) DIV 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5120
SELECT CAST ( 37 AS INTEGER ) / 27 AS col0
----
1

query I rowsort
SELECT ALL 93 + - 29 * + 82 AS col2
----
-2285

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT 53 - MAX( - 60 ) col1
----
113

skipif mysql # not compatible
query I rowsort label-5122
SELECT 53 - MAX ( - 60 ) col1
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL - 85 DIV 24 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL - 85 / 24 AS col2
----
-3

query I rowsort
SELECT ALL 10 * - 91 AS col0
----
-910

query I rowsort
SELECT ALL 87 * - 95 AS col1
----
-8265

query II rowsort
SELECT 66 col1, - 87
----
66
-87

query II rowsort
SELECT DISTINCT - 4 AS col0, + 88
----
-4
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT 4 - + COUNT( * ) * - + 10 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT 4 - + COUNT ( * ) * - + 10 AS col2
----
14

query I rowsort
SELECT ALL 51 * + 84 * + 1 * - + 34
----
-145656

query II rowsort
SELECT - 23 AS col2, 15
----
-23
15

query I rowsort
SELECT - ( + - 10 ) + 9 * 79
----
721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT - + CAST( + + 98 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5132
SELECT - + CAST ( + + 98 AS INTEGER ) AS col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT ALL - 8 - 14 + - - 45 DIV + 62
----
-22

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - 8 - 14 + - - 45 / + 62
----
-22

query II rowsort
SELECT - 28, 37 - + 4 col0
----
-28
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT - 51, COUNT( * ) AS col1
----
-51
1

skipif mysql # not compatible
query II rowsort label-5135
SELECT - 51, COUNT ( * ) AS col1
----
-51
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5136
SELECT + 67, - 9 * - ( CAST( NULL AS SIGNED ) ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-5136
SELECT + 67, - 9 * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5137
SELECT ALL - 74 AS col2, 41 + + 21 + - 59 * + COUNT( * )
----
-74
3

skipif mysql # not compatible
query II rowsort label-5137
SELECT ALL - 74 AS col2, 41 + + 21 + - 59 * + COUNT ( * )
----
-74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL + COUNT( * ) * - COUNT( * ) + + 33
----
32

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + + 33
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL + COUNT( - 57 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL + COUNT ( - 57 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL + + 50 * - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL + + 50 * - COUNT ( * ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - - MAX( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-5141
SELECT - - MAX ( - 38 )
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5142
SELECT + ( - CAST( NULL AS DECIMAL ) ) * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT + ( - CAST ( NULL AS REAL ) ) * 67
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5143
SELECT - 85, COUNT( * ) AS col2, - + COUNT( * ) + - COALESCE ( + + 19, + 29, + 21 + - + 78 + 67 ) AS col1
----
-85
1
-20

skipif mysql # not compatible
query III rowsort label-5143
SELECT - 85, COUNT ( * ) AS col2, - + COUNT ( * ) + - COALESCE ( + + 19, + 29, + 21 + - + 78 + 67 ) AS col1
----
-85
1
-20

query I rowsort
SELECT DISTINCT - 48 + - 75 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT 64 - + + COALESCE ( - COALESCE ( - COUNT( * ), - 69, + + 65 * - + 95 ), + COUNT( * ), - 22 + 62 + - COUNT( * ), + - 90 )
----
63

skipif mysql # not compatible
query I rowsort label-5145
SELECT 64 - + + COALESCE ( - COALESCE ( - COUNT ( * ), - 69, + + 65 * - + 95 ), + COUNT ( * ), - 22 + 62 + - COUNT ( * ), + - 90 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT - ( + + 24 ) DIV + 58 * + + 80
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT - ( + + 24 ) / + 58 * + + 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT 23 DIV - 96 + - + 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5147
SELECT 23 / - 96 + - + 55 AS col0
----
-55

query I rowsort
SELECT - 18 - - 13 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), - - 62 * - NULLIF ( 34, + - CAST( NULL AS SIGNED ) ) + + 87 ) AS col1
----
-2021

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - - 62 * - NULLIF ( 34, + - CAST ( NULL AS INTEGER ) ) + + 87 ) AS col1
----
-2021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5150
SELECT ALL + 40 + ( 86 ) + + - SUM( ALL + 61 ) DIV 16 * COUNT( ALL - + 48 )
----
123

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL + 40 + ( 86 ) + + - SUM ( ALL + 61 ) / 16 * COUNT ( ALL - + 48 )
----
123

query I rowsort
SELECT ALL + 29 + + - 2 * + 56
----
-83

query I rowsort
SELECT ALL - + COALESCE ( - 21, 82 ) + + 7
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT 2 DIV 16 + + + 89
----
89

skipif mysql # not compatible
query I rowsort label-5153
SELECT 2 / 16 + + + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - 52 + + SUM( 54 ) + 54
----
56

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - 52 + + SUM ( 54 ) + 54
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL CASE 7 WHEN - 50 THEN 20 END * - + SUM( CAST( - 10 AS SIGNED ) ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL CASE 7 WHEN - 50 THEN 20 END * - + SUM ( CAST ( - 10 AS INTEGER ) ) + + 76
----
NULL

query I rowsort
SELECT 28 + - 65
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT NULLIF ( - 74, COUNT( * ) * + + 42 * - MAX( DISTINCT - 44 ) * - COUNT( - - 42 ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5157
SELECT NULLIF ( - 74, COUNT ( * ) * + + 42 * - MAX ( DISTINCT - 44 ) * - COUNT ( - - 42 ) ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL 20 * + 74 + 8 + COUNT( * )
----
1489

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL 20 * + 74 + 8 + COUNT ( * )
----
1489

query I rowsort
SELECT COALESCE ( + COALESCE ( + ( 28 ), - 91 ), + 73, + 0 + + 3 ) AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT - ( + CAST( - 83 AS SIGNED ) ) + 54 col0
----
137

skipif mysql # not compatible
query I rowsort label-5160
SELECT - ( + CAST ( - 83 AS INTEGER ) ) + 54 col0
----
137

query I rowsort
SELECT ALL 63 * - - 33 - + - 96 + + 31 AS col1
----
2206

query I rowsort
SELECT DISTINCT - 72 * - 21 AS col1
----
1512

query I rowsort
SELECT ALL + COALESCE ( + 76, 46 * 87 ) AS col1
----
76

query I rowsort
SELECT + 0 * 57 + ( + 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT + 97 + + + COUNT( - CAST( NULL AS SIGNED ) )
----
97

skipif mysql # not compatible
query I rowsort label-5165
SELECT + 97 + + + COUNT ( - CAST ( NULL AS INTEGER ) )
----
97

query I rowsort
SELECT ALL 19 * - 92 - ( - + 61 )
----
-1687

query II rowsort
SELECT DISTINCT 21 * + + 62 AS col1, 89 AS col2
----
1302
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - MIN( ALL + ( 61 ) ) * - 95 AS col1
----
5795

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - MIN ( ALL + ( 61 ) ) * - 95 AS col1
----
5795

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + + 91 * - SUM( + 58 ) AS col2
----
-5278

skipif mysql # not compatible
query I rowsort label-5169
SELECT + + 91 * - SUM ( + 58 ) AS col2
----
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT - CASE COUNT( * ) WHEN + 28 * - 16 THEN NULLIF ( 94, 75 * - 38 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT - CASE COUNT ( * ) WHEN + 28 * - 16 THEN NULLIF ( 94, 75 * - 38 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + COUNT( * ) - - 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5171
SELECT + COUNT ( * ) - - 13 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + 79 * 31 * - COALESCE ( + - 67, - 63 ) + + CASE 57 WHEN COUNT( ALL - 9 ) * + - 21 + 65 - + NULLIF ( MIN( DISTINCT + - 83 ), - - 69 ) + + - COUNT( * ) * + + 57 * + - 14 THEN NULL WHEN - 23 THEN + 84 ELSE NULL END * + 72 + SUM( - 27 ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT + 79 * 31 * - COALESCE ( + - 67, - 63 ) + + CASE 57 WHEN COUNT ( ALL - 9 ) * + - 21 + 65 - + NULLIF ( MIN ( DISTINCT + - 83 ), - - 69 ) + + - COUNT ( * ) * + + 57 * + - 14 THEN NULL WHEN - 23 THEN + 84 ELSE NULL END * + 72 + SUM ( - 27 ) * - 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT + COUNT( * ) * 79 AS col2, 61 * - + SUM( - 95 ) col2
----
79
5795

skipif mysql # not compatible
query II rowsort label-5173
SELECT + COUNT ( * ) * 79 AS col2, 61 * - + SUM ( - 95 ) col2
----
79
5795

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL 19 + + MIN( + 64 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL 19 + + MIN ( + 64 ) AS col1
----
83

query I rowsort
SELECT + + 39 + + - 36
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT ALL - MIN( 87 ) + - 4 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - MIN ( 87 ) + - 4 AS col0
----
-91

query I rowsort
SELECT + - 64 + 23 * + ( - 50 ) + + 82
----
-1132

query I rowsort
SELECT + + 89 + 10 * - + 47 + - 22 col0
----
-403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT ALL + + COALESCE ( + 46, + CAST( NULL AS SIGNED ), - 72 ) + + 96 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + + COALESCE ( + 46, + CAST ( NULL AS INTEGER ), - 72 ) + + 96 AS col2
----
142

query I rowsort
SELECT ALL - 9 + - 85
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT - CAST( + + 27 AS SIGNED ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5181
SELECT - CAST ( + + 27 AS INTEGER ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5182
SELECT - COALESCE ( + 55, 15 + - ( + 60 ) + 96 - CAST( NULL AS SIGNED ) DIV SUM( DISTINCT + 31 ) + - + 58 * + - COUNT( * ) DIV 38 - CAST( NULL AS SIGNED ), - + 6 ) + 96 + 51 * - - 69
----
3560

skipif mysql # not compatible
query I rowsort label-5182
SELECT - COALESCE ( + 55, 15 + - ( + 60 ) + 96 - CAST ( NULL AS INTEGER ) / SUM ( DISTINCT + 31 ) + - + 58 * + - COUNT ( * ) / 38 - CAST ( NULL AS INTEGER ), - + 6 ) + 96 + 51 * - - 69
----
3560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL CAST( NULL AS SIGNED ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL CAST ( NULL AS INTEGER ) + 77
----
NULL

query I rowsort
SELECT ALL 17 + + 77 col1
----
94

query II rowsort
SELECT ALL + 27 AS col1, 67 * + 2 AS col2
----
27
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5186
SELECT + CAST( NULL AS SIGNED ) col0, - 52
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-5186
SELECT + CAST ( NULL AS INTEGER ) col0, - 52
----
NULL
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT - COUNT( + 7 ) * COUNT( * ) col2, 80 AS col0
----
-1
80

skipif mysql # not compatible
query II rowsort label-5187
SELECT - COUNT ( + 7 ) * COUNT ( * ) col2, 80 AS col0
----
-1
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT DISTINCT - 13 / SUM( ALL 27 ) * + + NULLIF ( CAST( NULL AS SIGNED ), + 45 * - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - 13 / SUM ( ALL 27 ) * + + NULLIF ( CAST ( NULL AS INTEGER ), + 45 * - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5189
SELECT + 99 AS col0, COALESCE ( - 48, - CASE - COUNT( * ) WHEN 40 * 1 THEN NULL ELSE 51 END ) + - - ( - + 55 ) + - - 12 col1, + 7 col2
----
99
-91
7

skipif mysql # not compatible
query III rowsort label-5189
SELECT + 99 AS col0, COALESCE ( - 48, - CASE - COUNT ( * ) WHEN 40 * 1 THEN NULL ELSE 51 END ) + - - ( - + 55 ) + - - 12 col1, + 7 col2
----
99
-91
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT - COUNT( * ) * + 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5190
SELECT - COUNT ( * ) * + 24 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT ALL + 31 DIV + + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + 31 / + + 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + COUNT( * ) * + + COUNT( * ) - + 29 * - + 69 * - ( 60 ) * 53 * + 46 AS col0
----
-292706279

skipif mysql # not compatible
query I rowsort label-5192
SELECT + COUNT ( * ) * + + COUNT ( * ) - + 29 * - + 69 * - ( 60 ) * 53 * + 46 AS col0
----
-292706279

query I rowsort
SELECT ( + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT + 8 AS col0, + CASE - + 86 WHEN ( - COUNT( * ) ) * - ( ( + - 36 ) ) * - ( - 44 ) THEN + 52 END + - + 55 AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5194
SELECT + 8 AS col0, + CASE - + 86 WHEN ( - COUNT ( * ) ) * - ( ( + - 36 ) ) * - ( - 44 ) THEN + 52 END + - + 55 AS col0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT + 33 * SUM( + 22 ) col2
----
726

skipif mysql # not compatible
query I rowsort label-5195
SELECT + 33 * SUM ( + 22 ) col2
----
726

query I rowsort
SELECT ( + - 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL + NULLIF ( + - MAX( DISTINCT + + ( - 94 ) ), + 51 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + NULLIF ( + - MAX ( DISTINCT + + ( - 94 ) ), + 51 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ( - COUNT( DISTINCT + + 37 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5198
SELECT ( - COUNT ( DISTINCT + + 37 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT ALL + NULLIF ( + + 80, + 53 + - COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + NULLIF ( + + 80, + 53 + - COUNT ( * ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - 86 - + - 55 * 52 + 85 - - + COUNT( * ) col1
----
2860

skipif mysql # not compatible
query I rowsort label-5200
SELECT - 86 - + - 55 * 52 + 85 - - + COUNT ( * ) col1
----
2860

query I rowsort
SELECT - 70 + + - 94 * + + 45 AS col0
----
-4300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL - + 47 * + - 1 + CAST( - 82 AS SIGNED ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - + 47 * + - 1 + CAST ( - 82 AS INTEGER ) col1
----
-35

query I rowsort
SELECT + 24 - 11 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT - - CASE - 70 WHEN - + 55 - MIN( - 29 ) THEN + + 95 + - - 41 END / 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT - - CASE - 70 WHEN - + 55 - MIN ( - 29 ) THEN + + 95 + - - 41 END / 51 col1
----
NULL

query I rowsort
SELECT + - 54 + + 24 * + 64 + 56 * + 93 - + + 59
----
6631

query II rowsort
SELECT - + 29, + 12 - - 50 AS col1
----
-29
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL + 66 * 43 + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + 66 * 43 + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT - SUM( - 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5208
SELECT - SUM ( - 88 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT ALL + 98 * + CAST( + + 22 AS SIGNED ) - - - COUNT( DISTINCT + 96 ) - + 93 + + 82 * + - 50 * - 9 AS col1
----
38962

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + 98 * + CAST ( + + 22 AS INTEGER ) - - - COUNT ( DISTINCT + 96 ) - + 93 + + 82 * + - 50 * - 9 AS col1
----
38962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5210
SELECT - ( - MAX( DISTINCT + 4 ) ) DIV ( + COALESCE ( + + 93, 66 * 75 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5210
SELECT - ( - MAX ( DISTINCT + 4 ) ) / ( + COALESCE ( + + 93, 66 * 75 ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 61 + - 53 + - - 62 + - - 38 + - 5 + 42 * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 61 + - 53 + - - 62 + - - 38 + - 5 + 42 * + 94 AS col1
----
NULL

query I rowsort
SELECT - ( + 40 ) - 22 * + - 93
----
2006

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT + - 27 DIV - ( 32 ) * + 84
----
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT + - 27 / - ( 32 ) * + 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT ALL + 46 + - MIN( DISTINCT + 52 ) col2, 46
----
-6
46

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL + 46 + - MIN ( DISTINCT + 52 ) col2, 46
----
-6
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT COUNT( * ) - - 21 col0
----
22

skipif mysql # not compatible
query I rowsort label-5215
SELECT COUNT ( * ) - - 21 col0
----
22

query I rowsort
SELECT 53 - + 6
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5217
SELECT ALL - 89 * 34 DIV 2 DIV 22 AS col1, ( 35 ) * - MAX( ALL - CASE + 20 WHEN - 88 THEN NULL ELSE 51 END )
----
-68
1785

skipif mysql # not compatible
query II rowsort label-5217
SELECT ALL - 89 * 34 / 2 / 22 AS col1, ( 35 ) * - MAX ( ALL - CASE + 20 WHEN - 88 THEN NULL ELSE 51 END )
----
-68
1785

query I rowsort
SELECT ALL 64 - - 39
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT - COUNT( * ) * - 27
----
27

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - COUNT ( * ) * - 27
----
27

query I rowsort
SELECT + 42 * 70 * + 33 + - 12
----
97008

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL 28 * - SUM( + 40 ) AS col0
----
-1120

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL 28 * - SUM ( + 40 ) AS col0
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT MAX( DISTINCT + - 77 ) * 58
----
-4466

skipif mysql # not compatible
query I rowsort label-5222
SELECT MAX ( DISTINCT + - 77 ) * 58
----
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ( + COUNT( * ) ) * 7 + 73 * + ( - 76 ) col0
----
-5541

skipif mysql # not compatible
query I rowsort label-5223
SELECT ( + COUNT ( * ) ) * 7 + 73 * + ( - 76 ) col0
----
-5541

query I rowsort
SELECT 17 * - ( - + 10 ) AS col2
----
170

query II rowsort
SELECT ALL 92 * 66, - 96 AS col1
----
6072
-96

query I rowsort
SELECT 97 + + + 68 + - 68 * + 22 + COALESCE ( - 79, + 35, + - 93 + - - 95, - + 59 - 76 )
----
-1410

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT 3 * + COALESCE ( + + 94, - NULLIF ( - 92, - COUNT( * ) * 34 ) ) AS col1
----
282

skipif mysql # not compatible
query I rowsort label-5227
SELECT 3 * + COALESCE ( + + 94, - NULLIF ( - 92, - COUNT ( * ) * 34 ) ) AS col1
----
282

query I rowsort
SELECT DISTINCT 85 + 74
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT - 27 + + NULLIF ( + - 74, + SUM( ALL - 72 ) / - 74 - - 12 + 71 )
----
-101

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - 27 + + NULLIF ( + - 74, + SUM ( ALL - 72 ) / - 74 - - 12 + 71 )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + COUNT( * ) * + 24 col2
----
24

skipif mysql # not compatible
query I rowsort label-5230
SELECT + COUNT ( * ) * + 24 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT - + COUNT( * ) + - 7 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - + COUNT ( * ) + - 7 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL - + CAST( SUM( DISTINCT - - 0 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - + CAST ( SUM ( DISTINCT - - 0 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT + + SUM( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-5233
SELECT + + SUM ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5234
SELECT ALL - + 64 + COUNT( * ) AS col2, 84 + - - 74 * - - 25 + - + 33 + + 24 * + - 2
----
-63
1853

skipif mysql # not compatible
query II rowsort label-5234
SELECT ALL - + 64 + COUNT ( * ) AS col2, 84 + - - 74 * - - 25 + - + 33 + + 24 * + - 2
----
-63
1853

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - 70 + 77 * - MAX( + 66 ) - 88 + - + NULLIF ( - + 61, + + COUNT( * ) / - 49 * + 88 ) col1
----
-5179

skipif mysql # not compatible
query I rowsort label-5235
SELECT - 70 + 77 * - MAX ( + 66 ) - 88 + - + NULLIF ( - + 61, + + COUNT ( * ) / - 49 * + 88 ) col1
----
-5179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT - + 75 * - 84 + 9 + 90 * 21 * + CAST( NULL AS SIGNED ) * - + 69 * + + 98 + COUNT( * ) * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT - + 75 * - 84 + 9 + 90 * 21 * + CAST ( NULL AS INTEGER ) * - + 69 * + + 98 + COUNT ( * ) * 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT COUNT( ALL 65 ) * + + 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5237
SELECT COUNT ( ALL 65 ) * + + 82 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5238
SELECT DISTINCT MAX( ALL + 97 ) AS col1, CAST( + - CAST( + 50 AS SIGNED ) AS SIGNED )
----
97
-50

skipif mysql # not compatible
query II rowsort label-5238
SELECT DISTINCT MAX ( ALL + 97 ) AS col1, CAST ( + - CAST ( + 50 AS INTEGER ) AS INTEGER )
----
97
-50

query I rowsort
SELECT ALL 38 col2
----
38

query I rowsort
SELECT DISTINCT - ( + + 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT - + CAST( NULL AS SIGNED ) * 53 + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT - + CAST ( NULL AS INTEGER ) * 53 + + 84 AS col1
----
NULL

query I rowsort
SELECT + 34 + 74 * - 38
----
-2778

query I rowsort
SELECT ALL + 76 - + ( 20 ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT ALL + 30 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + 30 / - 67
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5245
SELECT 53 + + MAX( - 74 ) AS col2, - 40 + + + 59 + + + COUNT( * ) AS col1
----
-21
20

skipif mysql # not compatible
query II rowsort label-5245
SELECT 53 + + MAX ( - 74 ) AS col2, - 40 + + + 59 + + + COUNT ( * ) AS col1
----
-21
20

query I rowsort
SELECT ALL + 58 - + 75
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT 63 + ( 22 ) + + COUNT( DISTINCT 85 ) * + - 58
----
27

skipif mysql # not compatible
query I rowsort label-5247
SELECT 63 + ( 22 ) + + COUNT ( DISTINCT 85 ) * + - 58
----
27

query II rowsort
SELECT ALL 31, 42 AS col1
----
31
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT ALL COUNT( * ) * + 40 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL COUNT ( * ) * + 40 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 31 * NULLIF ( 0, 43 ) * - 59, - 26 * 17 + + - 65 AS col0
----
0
-507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5251
SELECT CASE + COUNT( * ) WHEN + 94 THEN NULL ELSE - 11 * + 19 + + 88 * + 81 END DIV 33
----
209

skipif mysql # not compatible
query I rowsort label-5251
SELECT CASE + COUNT ( * ) WHEN + 94 THEN NULL ELSE - 11 * + 19 + + 88 * + 81 END / 33
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT + 13 * - MIN( DISTINCT - 13 ) col2
----
169

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + 13 * - MIN ( DISTINCT - 13 ) col2
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT ( 48 ) + 39 DIV + 56
----
48

skipif mysql # not compatible
query I rowsort label-5253
SELECT ( 48 ) + 39 / + 56
----
48

query I rowsort
SELECT ALL 87 * 42 col1
----
3654

query I rowsort
SELECT 72 * - 32
----
-2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5256
SELECT COUNT( * ) + + - 57 DIV - 69
----
1

skipif mysql # not compatible
query I rowsort label-5256
SELECT COUNT ( * ) + + - 57 / - 69
----
1

query I rowsort
SELECT ALL + 80 * + - 42 + + 32 - - - 47 + + 74 + - 41 + + + 18 * 44 * 80 * - 58
----
-3678222

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT + COUNT( * ), 19 col1
----
1
19

skipif mysql # not compatible
query II rowsort label-5258
SELECT + COUNT ( * ), 19 col1
----
1
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT ALL - 44 * - - ( + COUNT( * ) ) * 76 DIV + COUNT( * ) + 2
----
-3342

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - 44 * - - ( + COUNT ( * ) ) * 76 / + COUNT ( * ) + 2
----
-3342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT + 41 * + + CASE - 91 WHEN - + 32 THEN + 39 + - 86 / CAST( NULL AS SIGNED ) + + 21 - - + COUNT( * ) + - - 28 + - - 66 * - ( - - 66 ) + - 95 ELSE NULL END + - - 7 - + - 15 - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT + 41 * + + CASE - 91 WHEN - + 32 THEN + 39 + - 86 / CAST ( NULL AS INTEGER ) + + 21 - - + COUNT ( * ) + - - 28 + - - 66 * - ( - - 66 ) + - 95 ELSE NULL END + - - 7 - + - 15 - 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT + 14 AS col1, MAX( DISTINCT + 19 ) * 45 + + 26 + 90 AS col1
----
14
971

skipif mysql # not compatible
query II rowsort label-5261
SELECT + 14 AS col1, MAX ( DISTINCT + 19 ) * 45 + + 26 + 90 AS col1
----
14
971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5262
SELECT + NULLIF ( COALESCE ( + ( 8 ), - 31 * + - NULLIF ( 90, + 40 DIV + COALESCE ( - COUNT( * ), 18 ) * 50 ) + COUNT( * ) DIV 52 ), 43 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5262
SELECT + NULLIF ( COALESCE ( + ( 8 ), - 31 * + - NULLIF ( 90, + 40 / + COALESCE ( - COUNT ( * ), 18 ) * 50 ) + COUNT ( * ) / 52 ), 43 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - SUM( - + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - SUM ( - + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT ( - COUNT( * ) ) + - 18
----
-19

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT ( - COUNT ( * ) ) + - 18
----
-19

query I rowsort
SELECT 53 * - 88
----
-4664

query I rowsort
SELECT ALL 90 + + 82 + 71 * - 9 AS col1
----
-467

query I rowsort
SELECT DISTINCT + 4 * - - 26 * - 88 + + 17 + + - 32 * + + 75
----
-11535

query I rowsort
SELECT - ( + ( - - 94 ) ) * + 85 - + - 7 + 23 * 69
----
-6396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT ALL 56 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL 56 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5270
SELECT DISTINCT - + 99 DIV - 44
----
2

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT - + 99 / - 44
----
2

query I rowsort
SELECT 32 * + + 99 + - 20 * 67 * - ( - 63 ) AS col2
----
-81252

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + 9 * 42 + + MAX( + - 72 )
----
306

skipif mysql # not compatible
query I rowsort label-5272
SELECT + 9 * 42 + + MAX ( + - 72 )
----
306

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT ALL - 21 DIV - - 69 col0
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - 21 / - - 69 col0
----
0

query I rowsort
SELECT - ( - 88 ) + - 92
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT - + 52 - + + 90 + - 56 DIV 67 * + + 77 * + + 44
----
-142

skipif mysql # not compatible
query I rowsort label-5275
SELECT - + 52 - + + 90 + - 56 / 67 * + + 77 * + + 44
----
-142

query I rowsort
SELECT ( + + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT - SUM( DISTINCT - ( + 95 ) )
----
95

skipif mysql # not compatible
query I rowsort label-5277
SELECT - SUM ( DISTINCT - ( + 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT - 89 * + COUNT( * ) * - - 16 * MAX( + - 88 ) * 58 + - - 90
----
7268186

skipif mysql # not compatible
query I rowsort label-5278
SELECT - 89 * + COUNT ( * ) * - - 16 * MAX ( + - 88 ) * 58 + - - 90
----
7268186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5279
SELECT - 27 AS col1, 9 + - - ( - 11 ) - - CAST( + - 68 AS SIGNED )
----
-27
-70

skipif mysql # not compatible
query II rowsort label-5279
SELECT - 27 AS col1, 9 + - - ( - 11 ) - - CAST ( + - 68 AS INTEGER )
----
-27
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-5280
SELECT ALL 28, COUNT( + 90 ) * - 59 + - 5 AS col2
----
28
-64

skipif mysql # not compatible
query II rowsort label-5280
SELECT ALL 28, COUNT ( + 90 ) * - 59 + - 5 AS col2
----
28
-64

query I rowsort
SELECT - ( - 22 ) * - 14 AS col2
----
-308

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5282
SELECT + COALESCE ( + COUNT( * ), + 90 + + - CASE COALESCE ( + 56, 48 ) WHEN - 8 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - - 60 - - 75 + - 50 * + ( 60 ) THEN - 24 ELSE + 20 * 88 + - - 75 + + - COUNT( * ) + 2 - + + COALESCE ( 19, + CASE + 55 WHEN + 34 * + - COUNT( * ) THEN NULL WHEN + 7 THEN + 33 END, - + 49 * ( + COALESCE ( 6, - + CAST( + 93 AS DECIMAL ) * + + 1 + - 20 ) ) + 80 * + COUNT( * ) + COUNT( * ) ) * 95 END, - ( + 5 ) ) + + 97 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT + COALESCE ( + COUNT ( * ), + 90 + + - CASE COALESCE ( + 56, 48 ) WHEN - 8 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - - 60 - - 75 + - 50 * + ( 60 ) THEN - 24 ELSE + 20 * 88 + - - 75 + + - COUNT ( * ) + 2 - + + COALESCE ( 19, + CASE + 55 WHEN + 34 * + - COUNT ( * ) THEN NULL WHEN + 7 THEN + 33 END, - + 49 * ( + COALESCE ( 6, - + CAST ( + 93 AS REAL ) * + + 1 + - 20 ) ) + 80 * + COUNT ( * ) + COUNT ( * ) ) * 95 END, - ( + 5 ) ) + + 97 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5283
SELECT - 85 AS col0, CAST( + - 58 AS SIGNED ) col1
----
-85
-58

skipif mysql # not compatible
query II rowsort label-5283
SELECT - 85 AS col0, CAST ( + - 58 AS INTEGER ) col1
----
-85
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT MAX( ALL - 5 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT MAX ( ALL - 5 ) col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL CASE - 92 WHEN COUNT( * ) THEN NULL ELSE - 76 END AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL CASE - 92 WHEN COUNT ( * ) THEN NULL ELSE - 76 END AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - ( + - ( + + 81 ) ) * SUM( DISTINCT 43 ) * 45 - + + 41
----
156694

skipif mysql # not compatible
query I rowsort label-5286
SELECT - ( + - ( + + 81 ) ) * SUM ( DISTINCT 43 ) * 45 - + + 41
----
156694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT - CAST( NULL AS SIGNED ) - COUNT( 80 ) + - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( 80 ) + - + 36
----
NULL

query III rowsort
SELECT 18, 6 AS col1, + - 63 AS col1
----
18
6
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT ALL - COUNT( * ) + MAX( - 43 ) + + + COUNT( * ) - 29 + 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - COUNT ( * ) + MAX ( - 43 ) + + + COUNT ( * ) - 29 + 36 AS col2
----
-36

query I rowsort
SELECT ALL ( + 58 ) col1
----
58

query I rowsort
SELECT - 39 * + 16
----
-624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5292
SELECT ALL + 37 + 66 - + CAST( NULL AS DECIMAL ) * + MIN( - 41 ) * - - CASE + - 15 WHEN ( - 98 ) + - - ( 59 ) THEN + 60 ELSE + 28 END * 33 / - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 37 + 66 - + CAST ( NULL AS REAL ) * + MIN ( - 41 ) * - - CASE + - 15 WHEN ( - 98 ) + - - ( 59 ) THEN + 60 ELSE + 28 END * 33 / - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT - 82 + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT - 82 + COUNT ( * )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5294
SELECT - 27 + - - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT - 27 + - - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT 1 DIV + 95 - + + 42
----
-42

skipif mysql # not compatible
query I rowsort label-5295
SELECT 1 / + 95 - + + 42
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT ALL - 64 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - 64 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT + 96 * - MIN( - 22 ) + 33
----
2145

skipif mysql # not compatible
query I rowsort label-5297
SELECT + 96 * - MIN ( - 22 ) + 33
----
2145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5298
SELECT + CAST( + + 42 AS SIGNED ) - - + 91 DIV - - COUNT( + 94 ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-5298
SELECT + CAST ( + + 42 AS INTEGER ) - - + 91 / - - COUNT ( + 94 ) AS col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5299
SELECT DISTINCT - - COUNT( 78 ) * - 30 + + + 93 * + - 39 + - 60 + + + 68 col1, + CASE - - 29 WHEN COUNT( * ) / - + 74 + + 43 - - - CAST( + - 77 AS SIGNED ) * - - 79 THEN - CASE - - 9 WHEN + ( + 30 ) * - 61 + 33 THEN + 99 * + - CAST( - 17 AS SIGNED ) END + + COALESCE ( ( 55 ), 77 ) ELSE 72 END AS col0
----
-3649
72

skipif mysql # not compatible
query II rowsort label-5299
SELECT DISTINCT - - COUNT ( 78 ) * - 30 + + + 93 * + - 39 + - 60 + + + 68 col1, + CASE - - 29 WHEN COUNT ( * ) / - + 74 + + 43 - - - CAST ( + - 77 AS INTEGER ) * - - 79 THEN - CASE - - 9 WHEN + ( + 30 ) * - 61 + 33 THEN + 99 * + - CAST ( - 17 AS INTEGER ) END + + COALESCE ( ( 55 ), 77 ) ELSE 72 END AS col0
----
-3649
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5300
SELECT ALL + + 85 * + - 12 + + 43 + + + 55 DIV COALESCE ( - 61, 56 + - MIN( - - 14 ), - NULLIF ( - 88, - 34 ) * + 43 * - 45 )
----
-977

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + + 85 * + - 12 + + 43 + + + 55 / COALESCE ( - 61, 56 + - MIN ( - - 14 ), - NULLIF ( - 88, - 34 ) * + 43 * - 45 )
----
-977

onlyif mysql # DIV for integer division: 
query II rowsort label-5301
SELECT - - 39 DIV + 81 + + 31 + - - 22 col1, 74 AS col1
----
53
74

skipif mysql # not compatible
query II rowsort label-5301
SELECT - - 39 / + 81 + + 31 + - - 22 col1, 74 AS col1
----
53
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + - MIN( DISTINCT + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-5302
SELECT + - MIN ( DISTINCT + 35 )
----
-35

query I rowsort
SELECT DISTINCT + + 22 AS col0
----
22

query I rowsort
SELECT ALL + ( - - 8 )
----
8

query II rowsort
SELECT CASE + + 7 WHEN + 34 THEN + 3 END, 88 * 12 * + ( + - 37 ) AS col1
----
NULL
-39072

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT - + 24 * + + COUNT( DISTINCT 88 ) * - - 28 * - - 50 * - NULLIF ( - 8, - 83 ) + - 68 + ( + + 62 ) + - 28 * + 16
----
-269254

skipif mysql # not compatible
query I rowsort label-5306
SELECT - + 24 * + + COUNT ( DISTINCT 88 ) * - - 28 * - - 50 * - NULLIF ( - 8, - 83 ) + - 68 + ( + + 62 ) + - 28 * + 16
----
-269254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT ALL - 67 * - + CAST( NULL AS SIGNED ) * 78 / - + 68 * ( COUNT( * ) ) - + - NULLIF ( - - COUNT( * ), 8 * + ( 15 ) + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - 67 * - + CAST ( NULL AS INTEGER ) * 78 / - + 68 * ( COUNT ( * ) ) - + - NULLIF ( - - COUNT ( * ), 8 * + ( 15 ) + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5308
SELECT DISTINCT + 19, COUNT( - 85 ) AS col1
----
19
1

skipif mysql # not compatible
query II rowsort label-5308
SELECT DISTINCT + 19, COUNT ( - 85 ) AS col1
----
19
1

query I rowsort
SELECT - - 38 * 7 + + ( 24 ) AS col1
----
290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5310
SELECT + COUNT( * ) + 78 + 8 DIV 76
----
79

skipif mysql # not compatible
query I rowsort label-5310
SELECT + COUNT ( * ) + 78 + 8 / 76
----
79

query I rowsort
SELECT + 16 * - - ( + - 62 )
----
-992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5312
SELECT ALL + 73 * MIN( 92 ) + CAST( NULL AS DECIMAL ) * - COUNT( * ) - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 55 * + + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + 73 * MIN ( 92 ) + CAST ( NULL AS REAL ) * - COUNT ( * ) - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 55 * + + 14 AS col2
----
NULL

query I rowsort
SELECT + - 17 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL + ( NULLIF ( + COUNT( + 56 ), 29 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + ( NULLIF ( + COUNT ( + 56 ), 29 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5315
SELECT + 21 * - ( 32 ) * - 68 * NULLIF ( + 51, - 91 DIV - 22 * AVG ( DISTINCT 9 ) * + 21 * + + 34 ) * - 54 + + COUNT( * ) * - + 57 * + 66 DIV + COUNT( * )
----
-125850546

skipif mysql # not compatible
query I rowsort label-5315
SELECT + 21 * - ( 32 ) * - 68 * NULLIF ( + 51, - 91 / - 22 * AVG ( DISTINCT 9 ) * + 21 * + + 34 ) * - 54 + + COUNT ( * ) * - + 57 * + 66 / + COUNT ( * )
----
-125850546

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT SUM( DISTINCT COALESCE ( + - 39, - - 87 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-5316
SELECT SUM ( DISTINCT COALESCE ( + - 39, - - 87 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL CASE 69 WHEN - 17 - + - 75 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL CASE 69 WHEN - 17 - + - 75 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5318
SELECT + 29 DIV - 38, + 6 + + MAX( - 61 ) AS col0
----
0
-55

skipif mysql # not compatible
query II rowsort label-5318
SELECT + 29 / - 38, + 6 + + MAX ( - 61 ) AS col0
----
0
-55

query I rowsort
SELECT + 41 + + 29 + 10
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT + NULLIF ( + NULLIF ( + 19, + + 41 / + - 67 + - 81 * + 56 ), - 69 ) * 58 + + - COUNT( * ) * COUNT( * ) col2
----
1101

skipif mysql # not compatible
query I rowsort label-5320
SELECT + NULLIF ( + NULLIF ( + 19, + + 41 / + - 67 + - 81 * + 56 ), - 69 ) * 58 + + - COUNT ( * ) * COUNT ( * ) col2
----
1101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT - CAST( NULL AS SIGNED ) + - 48 * + + 26 + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT - CAST ( NULL AS INTEGER ) + - 48 * + + 26 + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT MAX( DISTINCT + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5322
SELECT MAX ( DISTINCT + 41 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT ALL 5 + 58 * + 54 + + COUNT( * ) + - 31 * - - COALESCE ( - 35, 90 ) AS col0, + 7 AS col2
----
4223
7

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL 5 + 58 * + 54 + + COUNT ( * ) + - 31 * - - COALESCE ( - 35, 90 ) AS col0, + 7 AS col2
----
4223
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + COUNT( * ) + + - 96 + - - 7 * - + 61 - + - 76 * + + 64 AS col2
----
4342

skipif mysql # not compatible
query I rowsort label-5324
SELECT + COUNT ( * ) + + - 96 + - - 7 * - + 61 - + - 76 * + + 64 AS col2
----
4342

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL 75 + + + CASE 61 WHEN - 88 THEN NULL WHEN - MIN( 96 ) THEN + COUNT( * ) WHEN - 15 THEN - ( + 60 ) ELSE - 94 END AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL 75 + + + CASE 61 WHEN - 88 THEN NULL WHEN - MIN ( 96 ) THEN + COUNT ( * ) WHEN - 15 THEN - ( + 60 ) ELSE - 94 END AS col1
----
-19

query I rowsort
SELECT DISTINCT + ( - - 25 ) * - 15 * - 62 col0
----
23250

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL - COUNT( * ) + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - COUNT ( * ) + - 7
----
-8

query II rowsort
SELECT - 39 * + 95, + 36 AS col1
----
-3705
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5329
SELECT DISTINCT 63 * - 65, - CASE + 14 WHEN + 11 THEN + 26 * + + 11 * - 2 * - 1 + - COUNT( * ) * COALESCE ( 75, - + 15, + 38 * - 37 + - 16 * - 60 ) ELSE NULL END AS col0
----
-4095
NULL

skipif mysql # not compatible
query II rowsort label-5329
SELECT DISTINCT 63 * - 65, - CASE + 14 WHEN + 11 THEN + 26 * + + 11 * - 2 * - 1 + - COUNT ( * ) * COALESCE ( 75, - + 15, + 38 * - 37 + - 16 * - 60 ) ELSE NULL END AS col0
----
-4095
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT - CAST( + 39 AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5330
SELECT - CAST ( + 39 AS INTEGER ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT ALL COALESCE ( - COUNT( * ), - 90, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL COALESCE ( - COUNT ( * ), - 90, COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT + 3 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT + 3 / + 37
----
0

query I rowsort
SELECT DISTINCT ( - + ( - 66 ) ) AS col2
----
66

query I rowsort
SELECT ( + - 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT - + 26 DIV + + 31 + + + 34
----
34

skipif mysql # not compatible
query I rowsort label-5335
SELECT - + 26 / + + 31 + + + 34
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5336
SELECT ALL + COUNT( * ) DIV - 59 * - 26 - + + NULLIF ( + 25, - COUNT( * ) ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + COUNT ( * ) / - 59 * - 26 - + + NULLIF ( + 25, - COUNT ( * ) ) col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT - + ( - + 44 ) * CAST( - COALESCE ( + 94, 39 / 84 ) AS SIGNED ) AS col0
----
-4136

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - + ( - + 44 ) * CAST ( - COALESCE ( + 94, 39 / 84 ) AS INTEGER ) AS col0
----
-4136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT 90 * 21 + - - 92 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT 90 * 21 + - - 92 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5339
SELECT ALL ( - 4 ) DIV + COUNT( * ) - - + 39 * COALESCE ( 13, 21 + + + 44 ) + + - 40
----
463

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL ( - 4 ) / + COUNT ( * ) - - + 39 * COALESCE ( 13, 21 + + + 44 ) + + - 40
----
463

query I rowsort
SELECT - 77 * + 55 + + 69 AS col2
----
-4166

query I rowsort
SELECT DISTINCT - + 15 * + 67 AS col0
----
-1005

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT 94 * - 92 + + - 52 DIV 96 AS col1
----
-8648

skipif mysql # not compatible
query I rowsort label-5342
SELECT 94 * - 92 + + - 52 / 96 AS col1
----
-8648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT + COUNT( * ) * + MIN( ALL 68 ) DIV 99 * - + 6 - + COALESCE ( - 55, + - SUM( DISTINCT - 55 ) ) * - 30 AS col2
----
-1650

skipif mysql # not compatible
query I rowsort label-5343
SELECT + COUNT ( * ) * + MIN ( ALL 68 ) / 99 * - + 6 - + COALESCE ( - 55, + - SUM ( DISTINCT - 55 ) ) * - 30 AS col2
----
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL 19 * COUNT( * ) * + 47 + - ( + + 57 )
----
836

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 19 * COUNT ( * ) * + 47 + - ( + + 57 )
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT - MIN( + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - MIN ( + 12 )
----
-12

query I rowsort
SELECT ALL - ( + + 62 ) AS col2
----
-62

query II rowsort
SELECT 32 AS col1, - 37 * 68 + - + 65 + - + 43 * + - NULLIF ( - 91, 4 ) - 75 * - - 34 AS col0
----
32
-9044

query I rowsort
SELECT 62 * 47 AS col1
----
2914

query I rowsort
SELECT 98 + - + 56 AS col1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5350
SELECT ALL 29 + + 95 DIV - COUNT( DISTINCT - 7 )
----
-66

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL 29 + + 95 / - COUNT ( DISTINCT - 7 )
----
-66

query II rowsort
SELECT - 81, + 9 AS col0
----
-81
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ALL COUNT( * ) + - + 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL COUNT ( * ) + - + 22 AS col2
----
-21

query II rowsort
SELECT 56, 61 * + - 48 AS col0
----
56
-2928

query I rowsort
SELECT ALL - 9 * - + 61
----
549

query II rowsort
SELECT DISTINCT + 54 + - 0 + 33 AS col1, 59 * + - 27 AS col2
----
87
-1593

query I rowsort
SELECT DISTINCT 16 + CASE 35 WHEN - - 72 THEN NULL ELSE 95 END * - 58
----
-5494

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL 28 * + - 84 * - COUNT( * )
----
2352

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL 28 * + - 84 * - COUNT ( * )
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT COUNT( * ) * - - COUNT( DISTINCT - - 40 ), MAX( ( 20 ) ) col1
----
1
20

skipif mysql # not compatible
query II rowsort label-5358
SELECT COUNT ( * ) * - - COUNT ( DISTINCT - - 40 ), MAX ( ( 20 ) ) col1
----
1
20

query I rowsort
SELECT 87 + 12
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT COALESCE ( + COALESCE ( - 62, CAST( NULL AS SIGNED ) * + + COALESCE ( + 21, - 89 ) ), 3 - 48, - 24 + + COUNT( DISTINCT ( + + 31 ) ) ) * MAX( ALL - 4 ) * 72
----
17856

skipif mysql # not compatible
query I rowsort label-5360
SELECT COALESCE ( + COALESCE ( - 62, CAST ( NULL AS INTEGER ) * + + COALESCE ( + 21, - 89 ) ), 3 - 48, - 24 + + COUNT ( DISTINCT ( + + 31 ) ) ) * MAX ( ALL - 4 ) * 72
----
17856

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT AVG ( + 39 ) + + CASE MIN( DISTINCT - 62 ) WHEN + + 48 THEN 76 END + + + 93 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT AVG ( + 39 ) + + CASE MIN ( DISTINCT - 62 ) WHEN + + 48 THEN 76 END + + + 93 * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL COUNT( * ) + 91 col0
----
92

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL COUNT ( * ) + 91 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT COUNT( * ) * - 18
----
-18

skipif mysql # not compatible
query I rowsort label-5363
SELECT COUNT ( * ) * - 18
----
-18

query I rowsort
SELECT ALL 91 - + 36 * + - 82 * - + 45
----
-132749

query I rowsort
SELECT 13 - + 35 * - + 62
----
2183

query II rowsort
SELECT 80 AS col2, - 0 + 29
----
80
29

query I rowsort
SELECT - 12 - 87 AS col1
----
-99

query II rowsort
SELECT ALL - 92 AS col0, + 77
----
-92
77

query II rowsort
SELECT 51 + ( + 58 ), + 0 AS col1
----
109
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT ALL CAST( + 95 AS SIGNED ) - + ( + ( - 68 ) ) - + - COUNT( + + ( 61 ) ) * + + 82 + 21 - - 13 - - 18 * + NULLIF ( 52, 84 ) + - + 79 + 5 * + 39 AS col1
----
1331

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL CAST ( + 95 AS INTEGER ) - + ( + ( - 68 ) ) - + - COUNT ( + + ( 61 ) ) * + + 82 + 21 - - 13 - - 18 * + NULLIF ( 52, 84 ) + - + 79 + 5 * + 39 AS col1
----
1331

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5371
SELECT 82 * COUNT( * ) * - COUNT( * ) * + 47 col1, + COUNT( * ) * + - 83 DIV 64 * + 12 + - 19 DIV - 50
----
-3854
-12

skipif mysql # not compatible
query II rowsort label-5371
SELECT 82 * COUNT ( * ) * - COUNT ( * ) * + 47 col1, + COUNT ( * ) * + - 83 / 64 * + 12 + - 19 / - 50
----
-3854
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5372
SELECT ALL 62 AS col0, + ( MAX( DISTINCT - 35 ) ) AS col1
----
62
-35

skipif mysql # not compatible
query II rowsort label-5372
SELECT ALL 62 AS col0, + ( MAX ( DISTINCT - 35 ) ) AS col1
----
62
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT COUNT( * ) + + - ( + - ( MAX( - COALESCE ( 70, - 55 ) ) ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5373
SELECT COUNT ( * ) + + - ( + - ( MAX ( - COALESCE ( 70, - 55 ) ) ) ) AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT NULLIF ( 59, - 19 ) DIV - 63 - 89 col1
----
-89

skipif mysql # not compatible
query I rowsort label-5374
SELECT NULLIF ( 59, - 19 ) / - 63 - 89 col1
----
-89

query I rowsort
SELECT 62 * + 22
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT COUNT( * ) - - + COUNT( * ) + + 88
----
90

skipif mysql # not compatible
query I rowsort label-5376
SELECT COUNT ( * ) - - + COUNT ( * ) + + 88
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5377
SELECT ALL - + COUNT( * ), - 28 + 67 + 55 * - + CASE - COALESCE ( + SUM( ALL + 46 ), - COUNT( DISTINCT 4 ) + - + 3 ) WHEN 80 / - 34 + + 29 - - 48 + 38 * - 8 * + COALESCE ( + + 34, 73 - + 33, - + 5, + CASE - CAST( 30 AS SIGNED ) WHEN 84 THEN 40 WHEN + 52 + 81 + + 75 * + COUNT( * ) + + 17 + - 95 * - + 34 THEN NULL END ) * 37 * + + 74 - - 88 + + + 41 * COUNT( * ) THEN 87 - 61 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5377
SELECT ALL - + COUNT ( * ), - 28 + 67 + 55 * - + CASE - COALESCE ( + SUM ( ALL + 46 ), - COUNT ( DISTINCT 4 ) + - + 3 ) WHEN 80 / - 34 + + 29 - - 48 + 38 * - 8 * + COALESCE ( + + 34, 73 - + 33, - + 5, + CASE - CAST ( 30 AS INTEGER ) WHEN 84 THEN 40 WHEN + 52 + 81 + + 75 * + COUNT ( * ) + + 17 + - 95 * - + 34 THEN NULL END ) * 37 * + + 74 - - 88 + + + 41 * COUNT ( * ) THEN 87 - 61 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5378
SELECT CAST( NULL AS SIGNED ) + + 81 + 84 AS col1, - 95
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-5378
SELECT CAST ( NULL AS INTEGER ) + + 81 + 84 AS col1, - 95
----
NULL
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT + + 37 + COUNT( * ) + + - COUNT( * ) + ( + 5 ) * 31 col0
----
192

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT + + 37 + COUNT ( * ) + + - COUNT ( * ) + ( + 5 ) * 31 col0
----
192

query I rowsort
SELECT 2 * 38 + - 56 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT + + COUNT( * ) * - COUNT( * ) * + NULLIF ( 89, - - SUM( 27 ) ) - - 74 + - + 50 + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5381
SELECT + + COUNT ( * ) * - COUNT ( * ) * + NULLIF ( 89, - - SUM ( 27 ) ) - - 74 + - + 50 + COUNT ( * ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5382
SELECT MAX( - - 66 ) DIV 86 * + - 20 col0, + CAST( - COUNT( * ) AS SIGNED ) + COALESCE ( + - 86, - 72 + - + 42 ) AS col1
----
0
-87

skipif mysql # not compatible
query II rowsort label-5382
SELECT MAX ( - - 66 ) / 86 * + - 20 col0, + CAST ( - COUNT ( * ) AS INTEGER ) + COALESCE ( + - 86, - 72 + - + 42 ) AS col1
----
0
-87

query I rowsort
SELECT DISTINCT + 67 + 60
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL - COUNT( * ) * - - 39 * + 85
----
-3315

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL - COUNT ( * ) * - - 39 * + 85
----
-3315

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL + NULLIF ( - - 4, + 90 ) + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL + NULLIF ( - - 4, + 90 ) + - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT + 68 + - MAX( DISTINCT - - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + 68 + - MAX ( DISTINCT - - 68 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ( + NULLIF ( + - 69, 53 + 28 * + - 8 ) ) * + + 30 + - 14 + - 98 * - MAX( ALL - 37 ) AS col1
----
-5710

skipif mysql # not compatible
query I rowsort label-5387
SELECT ( + NULLIF ( + - 69, 53 + 28 * + - 8 ) ) * + + 30 + - 14 + - 98 * - MAX ( ALL - 37 ) AS col1
----
-5710

query I rowsort
SELECT DISTINCT 75 + 59 + - 77 * - + COALESCE ( + + 80, 4 * - NULLIF ( + 44, + 99 ) * - 2 + - 19 - 41 ) * - + 19 - - - 46 AS col0
----
-116952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL CAST( + ( ( 99 ) ) AS SIGNED ) + - 88 + - 76
----
-65

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL CAST ( + ( ( 99 ) ) AS INTEGER ) + - 88 + - 76
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT 41 * + + COUNT( * ) + 7
----
48

skipif mysql # not compatible
query I rowsort label-5390
SELECT 41 * + + COUNT ( * ) + 7
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT 32 + - SUM( + - 45 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5391
SELECT 32 + - SUM ( + - 45 ) AS col1
----
77

query I rowsort
SELECT ALL 16 - - - ( + 85 ) AS col0
----
-69

query I rowsort
SELECT 13 + + 97
----
110

query I rowsort
SELECT DISTINCT + 60 * + + 33
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5395
SELECT ALL - NULLIF ( 7, + + 71 * - - 29 + - CAST( + COUNT( * ) AS SIGNED ) ) - + 86 + - - MIN( DISTINCT 74 ) * + 29 * - NULLIF ( - CASE + 29 WHEN + + MAX( - + 29 ) / + 84 THEN 64 END, 61 * + CAST( 85 AS SIGNED ) / - - CAST( NULL AS SIGNED ) ) + - ( + ( - 36 ) ) * + COUNT( - + 55 ) * CASE - 11 WHEN + ( 13 ) * 50 + + + COALESCE ( 30, 4 - - 85 ) THEN + + 75 + + 7 + 75 + - 16 / COUNT( * ) END * - MIN( + 38 / - 57 ) - 89 * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL - NULLIF ( 7, + + 71 * - - 29 + - CAST ( + COUNT ( * ) AS INTEGER ) ) - + 86 + - - MIN ( DISTINCT 74 ) * + 29 * - NULLIF ( - CASE + 29 WHEN + + MAX ( - + 29 ) / + 84 THEN 64 END, 61 * + CAST ( 85 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) ) + - ( + ( - 36 ) ) * + COUNT ( - + 55 ) * CASE - 11 WHEN + ( 13 ) * 50 + + + COALESCE ( 30, 4 - - 85 ) THEN + + 75 + + 7 + 75 + - 16 / COUNT ( * ) END * - MIN ( + 38 / - 57 ) - 89 * - 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT + COUNT( * ) * + 63, - 73 AS col0
----
63
-73

skipif mysql # not compatible
query II rowsort label-5396
SELECT + COUNT ( * ) * + 63, - 73 AS col0
----
63
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5397
SELECT DISTINCT + CAST( 7 AS SIGNED ) * 28 DIV - + 16 * - - 1 + 70 + - + COUNT( * ) * 51 DIV + + 50 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + CAST ( 7 AS INTEGER ) * 28 / - + 16 * - - 1 + 70 + - + COUNT ( * ) * 51 / + + 50 AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5398
SELECT 97 * COUNT( * ) AS col1, + 27 * - - 87 AS col0
----
97
2349

skipif mysql # not compatible
query II rowsort label-5398
SELECT 97 * COUNT ( * ) AS col1, + 27 * - - 87 AS col0
----
97
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - 37 * - CASE + COUNT( * ) WHEN + 10 THEN 99 + + + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT - 37 * - CASE + COUNT ( * ) WHEN + 10 THEN 99 + + + 2 END
----
NULL

query I rowsort
SELECT + + 43 + 25 AS col1
----
68

query I rowsort
SELECT - + 94 + + ( - 99 ) col0
----
-193

query I rowsort
SELECT ALL + 10 col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT ALL 56 + - CAST( ( - 12 ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL 56 + - CAST ( ( - 12 ) AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + COUNT( * ) * + ( - COUNT( * ) ) + - + 80 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5404
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) + - + 80 AS col1
----
-81

query I rowsort
SELECT DISTINCT 14 * + 40
----
560

query I rowsort
SELECT ALL - 10 * - - 66 + 60
----
-600

query I rowsort
SELECT - NULLIF ( 49, 47 - - - 11 + 4 * 4 ) * - 29 - 63 - - 42 * - 47 AS col0
----
-616

query I rowsort
SELECT + ( - 61 ) * - 1
----
61

query I rowsort
SELECT - ( + 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5410
SELECT - + CAST( 48 AS SIGNED ) * - 71
----
3408

skipif mysql # not compatible
query I rowsort label-5410
SELECT - + CAST ( 48 AS INTEGER ) * - 71
----
3408

query I rowsort
SELECT DISTINCT + ( + 96 ) AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT NULLIF ( + MAX( DISTINCT + 30 ), - CAST( NULL AS SIGNED ) * - ( 86 ) * + COUNT( * ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5412
SELECT NULLIF ( + MAX ( DISTINCT + 30 ), - CAST ( NULL AS INTEGER ) * - ( 86 ) * + COUNT ( * ) ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT CASE 2 WHEN - COUNT( * ) THEN + - 38 ELSE - SUM( - 64 ) + - 18 END
----
46

skipif mysql # not compatible
query I rowsort label-5413
SELECT CASE 2 WHEN - COUNT ( * ) THEN + - 38 ELSE - SUM ( - 64 ) + - 18 END
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5414
SELECT NULLIF ( 68, - 19 * 77 + + CAST( NULL AS SIGNED ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5414
SELECT NULLIF ( 68, - 19 * 77 + + CAST ( NULL AS INTEGER ) ) AS col1
----
68

query I rowsort
SELECT COALESCE ( + 59, + 85 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT 55 * 72 * - - CAST( - - MAX( + 96 ) AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT 55 * 72 * - - CAST ( - - MAX ( + 96 ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 52 * + 65
----
3380

query I rowsort
SELECT + ( - 10 ) + + - 93 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT COUNT( ALL - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5419
SELECT COUNT ( ALL - 55 )
----
1

query I rowsort
SELECT - 11 * - - 91 + - + 23 col0
----
-1024

query I rowsort
SELECT DISTINCT - 66 * + 52 - - 3
----
-3429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL + CAST( - - 1 AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + CAST ( - - 1 AS INTEGER ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT - 80 * - - CAST( 67 AS SIGNED ) AS col1
----
-5360

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 80 * - - CAST ( 67 AS INTEGER ) AS col1
----
-5360

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - 86 * + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-5424
SELECT - 86 * + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT MIN( 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT MIN ( 14 ) AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT - 57 * CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 57 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + 86 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL + CASE + + COUNT( * ) WHEN - 56 THEN 10 WHEN + 93 THEN NULL WHEN - 36 * + 99 + - COUNT( * ) THEN NULL ELSE NULL END * + COALESCE ( + - 60, - + 75 ) * + CAST( 15 AS SIGNED ) * - + 94 * - AVG ( + + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + CASE + + COUNT ( * ) WHEN - 56 THEN 10 WHEN + 93 THEN NULL WHEN - 36 * + 99 + - COUNT ( * ) THEN NULL ELSE NULL END * + COALESCE ( + - 60, - + 75 ) * + CAST ( 15 AS INTEGER ) * - + 94 * - AVG ( + + 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL COALESCE ( + - COUNT( * ), + 40 * + COALESCE ( 44, - 95 * NULLIF ( - 76, - 44 ) ) - - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL COALESCE ( + - COUNT ( * ), + 40 * + COALESCE ( 44, - 95 * NULLIF ( - 76, - 44 ) ) - - 85 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5430
SELECT DISTINCT 61 AS col0, MIN( - 81 )
----
61
-81

skipif mysql # not compatible
query II rowsort label-5430
SELECT DISTINCT 61 AS col0, MIN ( - 81 )
----
61
-81

query I rowsort
SELECT - 38 + - 92
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT - - SUM( ALL - 77 ) + - 0 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5432
SELECT - - SUM ( ALL - 77 ) + - 0 AS col0
----
-77

query I rowsort
SELECT - 74 + - 58 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - MIN( DISTINCT - 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5434
SELECT - MIN ( DISTINCT - 12 ) AS col0
----
12

query I rowsort
SELECT - - 60 AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5436
SELECT - + 37 + + MAX( + - 59 ) DIV - 48 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5436
SELECT - + 37 + + MAX ( + - 59 ) / - 48 AS col1
----
-36

query I rowsort
SELECT ALL + + 79 * 27 col1
----
2133

query I rowsort
SELECT DISTINCT 14 col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT + - 62 + 81 + 1 + + 69 - - 89 * 60 DIV - - COUNT( * ) AS col1
----
5429

skipif mysql # not compatible
query I rowsort label-5439
SELECT + - 62 + 81 + 1 + + 69 - - 89 * 60 / - - COUNT ( * ) AS col1
----
5429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT + CAST( - + 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-5440
SELECT + CAST ( - + 84 AS INTEGER )
----
-84

query I rowsort
SELECT ALL + + 3 + 12 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT - + ( + + 19 ) + SUM( - + 13 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5442
SELECT - + ( + + 19 ) + SUM ( - + 13 ) AS col2
----
-32

query II rowsort
SELECT ALL + 50, + ( - + 47 ) * + 94 * 77 AS col1
----
50
-340186

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT - 92 col2, + COUNT( * ) AS col0
----
-92
1

skipif mysql # not compatible
query II rowsort label-5444
SELECT - 92 col2, + COUNT ( * ) AS col0
----
-92
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT 27 * 79 * - - CASE - 22 WHEN 95 THEN 62 * 66 - - - COUNT( * ) - 48 - - 6 END * NULLIF ( - CASE + COUNT( * ) WHEN COALESCE ( - - 88, + 92 * + 38 + 60 + 9 ) THEN NULL WHEN + ( + 64 ) * + 87 * - + 63 / 70 + + + 15 + - COUNT( * ) + COUNT( DISTINCT - 39 ) * 36 * - COUNT( * ) * - 66 * - + 72 THEN NULL ELSE - 23 * - 93 END, - ( + 43 ) / NULLIF ( + CAST( - 60 AS SIGNED ), - + 43 ) ) + 71 + - NULLIF ( + ( + 53 ), - 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT 27 * 79 * - - CASE - 22 WHEN 95 THEN 62 * 66 - - - COUNT ( * ) - 48 - - 6 END * NULLIF ( - CASE + COUNT ( * ) WHEN COALESCE ( - - 88, + 92 * + 38 + 60 + 9 ) THEN NULL WHEN + ( + 64 ) * + 87 * - + 63 / 70 + + + 15 + - COUNT ( * ) + COUNT ( DISTINCT - 39 ) * 36 * - COUNT ( * ) * - 66 * - + 72 THEN NULL ELSE - 23 * - 93 END, - ( + 43 ) / NULLIF ( + CAST ( - 60 AS INTEGER ), - + 43 ) ) + 71 + - NULLIF ( + ( + 53 ), - 93 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5446
SELECT + 73 + + 45 + + SUM( + - 55 ) DIV 42, ( 65 ) AS col1
----
117
65

skipif mysql # not compatible
query II rowsort label-5446
SELECT + 73 + + 45 + + SUM ( + - 55 ) / 42, ( 65 ) AS col1
----
117
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT + 13 * + COUNT( * ) - - 5 col0
----
18

skipif mysql # not compatible
query I rowsort label-5447
SELECT + 13 * + COUNT ( * ) - - 5 col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT DISTINCT + 99 DIV + 23
----
4

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT + 99 / + 23
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT ALL - 32 DIV + 79 + - ( - + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - 32 / + 79 + - ( - + 78 ) AS col1
----
78

query I rowsort
SELECT ALL + 50 * - 41 AS col1
----
-2050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT CAST( - 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5451
SELECT CAST ( - 76 AS INTEGER ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL COUNT( * ) * - - 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL COUNT ( * ) * - - 2 AS col2
----
2

query I rowsort
SELECT 78 * 47 + - + 89
----
3577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT + CAST( ( 66 ) AS SIGNED ) * - 57
----
-3762

skipif mysql # not compatible
query I rowsort label-5454
SELECT + CAST ( ( 66 ) AS INTEGER ) * - 57
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL CASE COUNT( + 62 ) WHEN - 40 + 89 THEN + 98 - 70 WHEN + - 99 / + - 46 THEN NULL ELSE NULL END * - 77 / - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL CASE COUNT ( + 62 ) WHEN - 40 + 89 THEN + 98 - 70 WHEN + - 99 / + - 46 THEN NULL ELSE NULL END * - 77 / - 17 AS col0
----
NULL

query I rowsort
SELECT - 69 + - 34
----
-103

query I rowsort
SELECT DISTINCT 88 * 8 - - + 37 AS col1
----
741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5458
SELECT CASE + - CAST( NULL AS SIGNED ) WHEN - MAX( 37 ) THEN NULL ELSE 78 END
----
78

skipif mysql # not compatible
query I rowsort label-5458
SELECT CASE + - CAST ( NULL AS INTEGER ) WHEN - MAX ( 37 ) THEN NULL ELSE 78 END
----
78

query II rowsort
SELECT ALL + 61, - 34 * - 38 AS col1
----
61
1292

query I rowsort
SELECT ALL - 88 * + 88 * - - 70
----
-542080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5461
SELECT - 27 + + COALESCE ( 83, CAST( NULL AS SIGNED ), - 45 ) * COUNT( * ) AS col2, + 99 * 57
----
56
5643

skipif mysql # not compatible
query II rowsort label-5461
SELECT - 27 + + COALESCE ( 83, CAST ( NULL AS INTEGER ), - 45 ) * COUNT ( * ) AS col2, + 99 * 57
----
56
5643

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5462
SELECT ALL 33 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL 33 / - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL 80, + 80
----
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL - - COUNT( ALL 76 ) * + 8
----
8

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - - COUNT ( ALL 76 ) * + 8
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-5465
SELECT - 58 DIV - 54, + 48 AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-5465
SELECT - 58 / - 54, + 48 AS col0
----
1
48

query I rowsort
SELECT - 72 * + + 21 col1
----
-1512

query I rowsort
SELECT ALL + - 43 + - - 34
----
-9

query I rowsort
SELECT + CASE - 36 WHEN + - 14 THEN + - 33 WHEN - + 2 THEN NULL ELSE NULL END + + + 23 AS col0
----
NULL

query I rowsort
SELECT ALL - 35 * 16 * 37 AS col1
----
-20720

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT - + COUNT( * ) + - 32 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - + COUNT ( * ) + - 32 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + 80 + ( + + SUM( - 86 ) ) + - + MIN( - ( - 70 ) ) + - + 58
----
-134

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + 80 + ( + + SUM ( - 86 ) ) + - + MIN ( - ( - 70 ) ) + - + 58
----
-134

query II rowsort
SELECT - - 83, 51 AS col0
----
83
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL - - 64 + - + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - - 64 + - + COUNT ( * )
----
63

query I rowsort
SELECT - 74 * ( + 19 )
----
-1406

query I rowsort
SELECT 75 + - - 16 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5476
SELECT - 48 AS col1, 61 * - MIN( ALL + - 9 ) + + COUNT( ALL + 34 )
----
-48
550

skipif mysql # not compatible
query II rowsort label-5476
SELECT - 48 AS col1, 61 * - MIN ( ALL + - 9 ) + + COUNT ( ALL + 34 )
----
-48
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT - 58 + + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) * + 85 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5477
SELECT - 58 + + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * + 85 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL - 70 + + + 85 + CAST( - 98 AS SIGNED ) * + - 78 * + 64
----
489231

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL - 70 + + + 85 + CAST ( - 98 AS INTEGER ) * + - 78 * + 64
----
489231

query I rowsort
SELECT ALL - - 63 col2
----
63

query II rowsort
SELECT + - 31, ( - ( + 55 ) ) + 64 AS col0
----
-31
9

query I rowsort
SELECT ALL - ( + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + 16 * + 31 - - - MIN( ALL + 44 )
----
452

skipif mysql # not compatible
query I rowsort label-5482
SELECT + 16 * + 31 - - - MIN ( ALL + 44 )
----
452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5483
SELECT CAST( - COUNT( * ) AS SIGNED ) DIV 92 * + COUNT( * ) + + SUM( - 45 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-5483
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / 92 * + COUNT ( * ) + + SUM ( - 45 ) col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT 26 DIV + ( 65 ) * 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT 26 / + ( 65 ) * 61 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT 97 * COUNT( * ), - 75 + - CASE - + 10 WHEN + - 61 THEN - 82 + 27 END AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-5485
SELECT 97 * COUNT ( * ), - 75 + - CASE - + 10 WHEN + - 61 THEN - 82 + 27 END AS col1
----
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5486
SELECT 32 + - COUNT( * ) col0, 52 + 11 + - + COUNT( ALL - 34 ) + COUNT( * ) * + CAST( - 71 AS SIGNED ) AS col1
----
31
-9

skipif mysql # not compatible
query II rowsort label-5486
SELECT 32 + - COUNT ( * ) col0, 52 + 11 + - + COUNT ( ALL - 34 ) + COUNT ( * ) * + CAST ( - 71 AS INTEGER ) AS col1
----
31
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT ALL - COUNT( * ) / - CAST( NULL AS SIGNED ) / + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) / + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT - MIN( DISTINCT 25 ) * - 90 - 20 AS col2
----
2230

skipif mysql # not compatible
query I rowsort label-5488
SELECT - MIN ( DISTINCT 25 ) * - 90 - 20 AS col2
----
2230

query I rowsort
SELECT ( 44 ) * + 7
----
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT 15 + - + 7 / 74 * - CAST( NULL AS SIGNED ) * + 90 + + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT 15 + - + 7 / 74 * - CAST ( NULL AS INTEGER ) * + 90 + + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT 22 * COUNT( DISTINCT 94 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5491
SELECT 22 * COUNT ( DISTINCT 94 ) AS col0
----
22

query I rowsort
SELECT DISTINCT 44 + - 53
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT ALL - CAST( + 27 AS SIGNED ) + 21 + + COUNT( DISTINCT + - 84 ) * - 2
----
-8

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - CAST ( + 27 AS INTEGER ) + 21 + + COUNT ( DISTINCT + - 84 ) * - 2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5494
SELECT 28 * + 0 - - 79 AS col0, - AVG ( DISTINCT - + CAST( - CASE WHEN 84 IS NULL THEN 34 + + ( - 6 ) ELSE NULL END AS SIGNED ) )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-5494
SELECT 28 * + 0 - - 79 AS col0, - AVG ( DISTINCT - + CAST ( - CASE WHEN 84 IS NULL THEN 34 + + ( - 6 ) ELSE NULL END AS INTEGER ) )
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT COUNT( * ) * + - 61 * 77 col2
----
-4697

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT COUNT ( * ) * + - 61 * 77 col2
----
-4697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT ALL CASE - + 71 WHEN - - 53 THEN NULL WHEN 63 * - SUM( DISTINCT + CASE 71 WHEN + CAST( - 49 AS SIGNED ) + 64 THEN NULL WHEN + 53 THEN - CAST( - - 9 AS SIGNED ) END ) THEN 21 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL CASE - + 71 WHEN - - 53 THEN NULL WHEN 63 * - SUM ( DISTINCT + CASE 71 WHEN + CAST ( - 49 AS INTEGER ) + 64 THEN NULL WHEN + 53 THEN - CAST ( - - 9 AS INTEGER ) END ) THEN 21 END col0
----
NULL

query I rowsort
SELECT - 45 + - 84
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT COUNT( * ) + + NULLIF ( 21, - + 22 * + 53 ) * + NULLIF ( 9, 30 ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-5498
SELECT COUNT ( * ) + + NULLIF ( 21, - + 22 * + 53 ) * + NULLIF ( 9, 30 ) AS col2
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5499
SELECT + COUNT( * ) DIV - - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT + COUNT ( * ) / - - 9 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT 31 * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5500
SELECT 31 * - COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT + 72 + + 90 * - 98 AS col2, - 92 * - COUNT( * ) col1
----
-8748
92

skipif mysql # not compatible
query II rowsort label-5501
SELECT + 72 + + 90 * - 98 AS col2, - 92 * - COUNT ( * ) col1
----
-8748
92

query II rowsort
SELECT 90 * 97, 98 * - 0 + + + 92 AS col1
----
8730
92

query I rowsort
SELECT ALL + + 36 - + - ( - 68 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - 95 + - 1 + - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5504
SELECT - 95 + - 1 + - COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5505
SELECT ALL 64 * - + 57 AS col2, - 20 DIV + ( - 25 ) * ( - NULLIF ( + - 43, - 34 ) ) + 35 + - COUNT( * ) AS col2
----
-3648
34

skipif mysql # not compatible
query II rowsort label-5505
SELECT ALL 64 * - + 57 AS col2, - 20 / + ( - 25 ) * ( - NULLIF ( + - 43, - 34 ) ) + 35 + - COUNT ( * ) AS col2
----
-3648
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - ( + 83 ) * - 96 * + NULLIF ( + - 38, + - 71 / - + 47 ) * ( - COUNT( ALL - 13 ) ) AS col2
----
302784

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - ( + 83 ) * - 96 * + NULLIF ( + - 38, + - 71 / - + 47 ) * ( - COUNT ( ALL - 13 ) ) AS col2
----
302784

query I rowsort
SELECT 69 + 91
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT - COUNT( * ) + - - AVG ( ( - CAST( NULL AS SIGNED ) ) ) * - + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT - COUNT ( * ) + - - AVG ( ( - CAST ( NULL AS INTEGER ) ) ) * - + 56 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT 81 + - 39 + + + 88 DIV 58 * - + 90 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-5509
SELECT 81 + - 39 + + + 88 / 58 * - + 90 AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5510
SELECT 17 * ( - 24 ) DIV - 20 + 93 * 76 + - + COUNT( NULLIF ( - 8, - 19 ) ) DIV 46
----
7088

skipif mysql # not compatible
query I rowsort label-5510
SELECT 17 * ( - 24 ) / - 20 + 93 * 76 + - + COUNT ( NULLIF ( - 8, - 19 ) ) / 46
----
7088

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT COUNT( * ) - - + 87 col1
----
88

skipif mysql # not compatible
query I rowsort label-5511
SELECT COUNT ( * ) - - + 87 col1
----
88

query I rowsort
SELECT 36 + + - 27 * - - 46 * - 16 AS col0
----
19908

query I rowsort
SELECT 6 * + - 12 AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5515
SELECT - 99 DIV - - NULLIF ( 41, - 38 * - - 19 + + 42 ) + - 53 * 28 AS col2, NULLIF ( + + COUNT( * ), - 36 )
----
-1486
1

skipif mysql # not compatible
query II rowsort label-5515
SELECT - 99 / - - NULLIF ( 41, - 38 * - - 19 + + 42 ) + - 53 * 28 AS col2, NULLIF ( + + COUNT ( * ), - 36 )
----
-1486
1

query I rowsort
SELECT 26 + - 39
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL COUNT( * ) * - - 99
----
99

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL COUNT ( * ) * - - 99
----
99

query I rowsort
SELECT 32 * + - 47 * ( - 31 ) AS col0
----
46624

onlyif mysql # aggregate syntax: 
query II rowsort label-5519
SELECT COUNT( * ) AS col2, 77
----
1
77

skipif mysql # not compatible
query II rowsort label-5519
SELECT COUNT ( * ) AS col2, 77
----
1
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT - 80 DIV + SUM( + 69 ) + 21 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5520
SELECT - 80 / + SUM ( + 69 ) + 21 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + COUNT( * ) * - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COUNT ( * ) * - 32 AS col1
----
-32

query I rowsort
SELECT + 80 + - - 79 * + 3 AS col1
----
317

query I rowsort
SELECT - 91 * + - 45
----
4095

query I rowsort
SELECT DISTINCT + 77 + 41 col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5525
SELECT ALL + 46, CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / 61 / 64 AS col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5525
SELECT ALL + 46, CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / 61 / 64 AS col0
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT + 76 + + - 70 + 58 * - - SUM( DISTINCT + + 71 )
----
4124

skipif mysql # not compatible
query I rowsort label-5526
SELECT + 76 + + - 70 + 58 * - - SUM ( DISTINCT + + 71 )
----
4124

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT 51 + SUM( + + ( - 60 ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT 51 + SUM ( + + ( - 60 ) ) AS col0
----
-9

query II rowsort
SELECT - 54, 58 - - 82 AS col2
----
-54
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - + 64 * - + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5529
SELECT - + 64 * - + COUNT ( * ) AS col0
----
64

query I rowsort
SELECT + + ( - 65 ) + + 88 + + 85 AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT ALL - 25 col1, COUNT( * ) + - - 24
----
-25
25

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL - 25 col1, COUNT ( * ) + - - 24
----
-25
25

query I rowsort
SELECT - ( + 2 ) AS col2
----
-2

query II rowsort
SELECT + - 83 + + - 89 + 8 * + 7 AS col0, + 98
----
-116
98

query I rowsort
SELECT ALL 96 - - COALESCE ( 66, - 93, - 5 - + NULLIF ( 93, + 27 ) + 27 ) + - 72 - - - 56 + + 70 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + 20 * - + CASE - NULLIF ( 43, - 71 + + - 66 ) WHEN - - 68 + 66 + 62 - 18 + - 0 + + COUNT( * ) * 32 THEN 62 END + - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT + 20 * - + CASE - NULLIF ( 43, - 71 + + - 66 ) WHEN - - 68 + 66 + 62 - 18 + - 0 + + COUNT ( * ) * 32 THEN 62 END + - 22 AS col2
----
NULL

query I rowsort
SELECT - ( - 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT - - 82 DIV COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5537
SELECT - - 82 / COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL + NULLIF ( + SUM( ALL 64 ), - 12 + 82 * - 0 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + NULLIF ( + SUM ( ALL 64 ), - 12 + 82 * - 0 ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5539
SELECT - 94 + - COUNT( * ) DIV + COUNT( - - 24 ) AS col0, - 93 * 43 AS col1
----
-95
-3999

skipif mysql # not compatible
query II rowsort label-5539
SELECT - 94 + - COUNT ( * ) / + COUNT ( - - 24 ) AS col0, - 93 * 43 AS col1
----
-95
-3999

query II rowsort
SELECT + 64 * + 88 AS col1, 3 * + 27 + 16 - + 94 * + + 75 * 88
----
5632
-620303

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL COALESCE ( 31, - + COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL COALESCE ( 31, - + COUNT ( * ) )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT 26 DIV 84 + + 13
----
13

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT 26 / 84 + + 13
----
13

query I rowsort
SELECT + 39 * - 4 * - 32 AS col0
----
4992

query I rowsort
SELECT ( 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + 26 * - 9 + + 44 - + ( - + SUM( ALL + - 47 ) ) * 13
----
-801

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 26 * - 9 + + 44 - + ( - + SUM ( ALL + - 47 ) ) * 13
----
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT ALL 38 * + CAST( NULL AS SIGNED ) + + 20 * - - COUNT( ALL - 27 ) * + 58 + + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL 38 * + CAST ( NULL AS INTEGER ) + + 20 * - - COUNT ( ALL - 27 ) * + 58 + + 85 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + 75 * 37 + + 87 * 38 * + 60 * - 24 AS col0
----
-4910490

query I rowsort
SELECT ALL + 57 * + 66
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + MIN( DISTINCT - + 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5549
SELECT + MIN ( DISTINCT - + 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL 24 * + + 28 * + 59 + + - 4 + - COUNT( * ) * + COALESCE ( + 84, + COUNT( ALL - - 46 ) ) AS col0
----
39560

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL 24 * + + 28 * + 59 + + - 4 + - COUNT ( * ) * + COALESCE ( + 84, + COUNT ( ALL - - 46 ) ) AS col0
----
39560

query II rowsort
SELECT - + 9 * - 95 AS col1, - 48 * - + 53
----
855
2544

query I rowsort
SELECT + ( - - 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT - 83 * - 39 - - 29 - - COUNT( 32 ) * + - 89 + + + COUNT( * )
----
3178

skipif mysql # not compatible
query I rowsort label-5553
SELECT - 83 * - 39 - - 29 - - COUNT ( 32 ) * + - 89 + + + COUNT ( * )
----
3178

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT NULLIF ( + + 51, + COUNT( * ) * 61 / - SUM( ( - 34 ) ) * - + 94 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5554
SELECT NULLIF ( + + 51, + COUNT ( * ) * 61 / - SUM ( ( - 34 ) ) * - + 94 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT + 36 * + 75 - - COUNT( * ) * + 29
----
2729

skipif mysql # not compatible
query I rowsort label-5555
SELECT + 36 * + 75 - - COUNT ( * ) * + 29
----
2729

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT - 68 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-5556
SELECT - 68 / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL COUNT( * ) * + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL COUNT ( * ) * + 35 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5558
SELECT ALL + + COUNT( DISTINCT - 87 ) DIV + 41 + - - 1
----
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL + + COUNT ( DISTINCT - 87 ) / + 41 + - - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + 13 - - COUNT( - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5559
SELECT + 13 - - COUNT ( - 14 ) AS col1
----
14

query I rowsort
SELECT + - 53 * - 33 AS col0
----
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT COALESCE ( + 92, + 77, - - COUNT( * ) - + - MAX( 90 ) + + 26 * + - 92 * + 12 )
----
92

skipif mysql # not compatible
query I rowsort label-5561
SELECT COALESCE ( + 92, + 77, - - COUNT ( * ) - + - MAX ( 90 ) + + 26 * + - 92 * + 12 )
----
92

query I rowsort
SELECT ( - - 25 ) AS col0
----
25

query I rowsort
SELECT ALL 29 + - 51 AS col2
----
-22

query I rowsort
SELECT + 34 + - 12 * + 39
----
-434

query I rowsort
SELECT ( 4 ) + 82 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT ( - 92 ) * - CAST( 69 AS SIGNED ) * + 1
----
6348

skipif mysql # not compatible
query I rowsort label-5566
SELECT ( - 92 ) * - CAST ( 69 AS INTEGER ) * + 1
----
6348

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT 61 + + + 64 DIV 17
----
64

skipif mysql # not compatible
query I rowsort label-5567
SELECT 61 + + + 64 / 17
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT COUNT( * ) * + COUNT( * ) * - COUNT( * ) + - 69
----
-70

skipif mysql # not compatible
query I rowsort label-5568
SELECT COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) + - 69
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL 62 + + ( - COUNT( * ) ) * COUNT( * ) col1
----
61

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 62 + + ( - COUNT ( * ) ) * COUNT ( * ) col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT 21 * 76 * ( - - 22 ) * + COUNT( * ) AS col1
----
35112

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT 21 * 76 * ( - - 22 ) * + COUNT ( * ) AS col1
----
35112

query I rowsort
SELECT DISTINCT 33 + - 84 + + 48
----
-3

query II rowsort
SELECT + 6 col2, - 98 AS col0
----
6
-98

query I rowsort
SELECT DISTINCT 68 + - 19 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5574
SELECT ALL COALESCE ( + 77, - 81 DIV COUNT( - 92 ), + 31 ) * - 64
----
-4928

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL COALESCE ( + 77, - 81 / COUNT ( - 92 ), + 31 ) * - 64
----
-4928

query I rowsort
SELECT DISTINCT 61 * - + 92 AS col1
----
-5612

query I rowsort
SELECT + 97 * - + ( + 19 ) + 57
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT 75 * - CASE 77 WHEN - COUNT( * ) - - 41 THEN NULL WHEN 89 + - - NULLIF ( - 15, 15 - 43 ) THEN COALESCE ( + 85, + - 35 + 68, COALESCE ( COUNT( + 64 ), + ( - COUNT( * ) ) ) ) * + 11 - + 96 * + 64 + 16 * + 52 * - 18 ELSE - COUNT( * ) END AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5577
SELECT 75 * - CASE 77 WHEN - COUNT ( * ) - - 41 THEN NULL WHEN 89 + - - NULLIF ( - 15, 15 - 43 ) THEN COALESCE ( + 85, + - 35 + 68, COALESCE ( COUNT ( + 64 ), + ( - COUNT ( * ) ) ) ) * + 11 - + 96 * + 64 + 16 * + 52 * - 18 ELSE - COUNT ( * ) END AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT 6 + + SUM( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT 6 + + SUM ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + MIN( ALL - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5579
SELECT + MIN ( ALL - 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL + COUNT( * ) - 52
----
-51

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL + COUNT ( * ) - 52
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5581
SELECT - COUNT( * ) * - - 59 * - - 50 * - 33 * + - SUM( ALL + 20 ) * + 13 - - - 83 AS col2, ( + - 47 ) + SUM( ALL 92 )
----
-25311083
45

skipif mysql # not compatible
query II rowsort label-5581
SELECT - COUNT ( * ) * - - 59 * - - 50 * - 33 * + - SUM ( ALL + 20 ) * + 13 - - - 83 AS col2, ( + - 47 ) + SUM ( ALL 92 )
----
-25311083
45

query I rowsort
SELECT + 47 + + 81 + + 4 AS col0
----
132

query I rowsort
SELECT DISTINCT + 76 - + + 11 - - 36 AS col1
----
101

query I rowsort
SELECT + 75 + + + 39 + 65 AS col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT DISTINCT + NULLIF ( - - COUNT( * ), + - SUM( 90 ) * - + 99 + + + 78 ) * - 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), + - SUM ( 90 ) * - + 99 + + + 78 ) * - 71 AS col0
----
-71

query I rowsort
SELECT ALL - - 58 AS col2
----
58

query I rowsort
SELECT 44 + 78 + 43 col1
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT CAST( - 31 AS SIGNED ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5588
SELECT CAST ( - 31 AS INTEGER ) AS col1
----
-31

query I rowsort
SELECT ALL - 16 + - 69 * + - 41 col2
----
2813

onlyif mysql # aggregate syntax: 
query II rowsort label-5590
SELECT ALL 16 col2, - COUNT( * ) AS col1
----
16
-1

skipif mysql # not compatible
query II rowsort label-5590
SELECT ALL 16 col2, - COUNT ( * ) AS col1
----
16
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT ALL ( + 45 ) + + CAST( NULL AS SIGNED ) * + 11 - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL ( + 45 ) + + CAST ( NULL AS INTEGER ) * + 11 - - 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5592
SELECT 35 DIV MAX( DISTINCT + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT 35 / MAX ( DISTINCT + 44 )
----
0

query I rowsort
SELECT 6 - 94 AS col2
----
-88

query II rowsort
SELECT ALL 28 AS col1, 27
----
28
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL + CAST( NULL AS SIGNED ) + + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT 16 * + + 97, COUNT( * ) AS col0
----
1552
1

skipif mysql # not compatible
query II rowsort label-5596
SELECT 16 * + + 97, COUNT ( * ) AS col0
----
1552
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5597
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + MIN( DISTINCT - 92 ) * + + 32 / + 86 + - MAX( - - 71 ) AS col0, NULLIF ( - ( + + COUNT( * ) ), - + 51 ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5597
SELECT DISTINCT CAST ( NULL AS REAL ) + + MIN ( DISTINCT - 92 ) * + + 32 / + 86 + - MAX ( - - 71 ) AS col0, NULLIF ( - ( + + COUNT ( * ) ), - + 51 ) AS col2
----
NULL
-1

query II rowsort
SELECT - 38, 39 * - + 65 col0
----
-38
-2535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT CAST( - ( 15 ) AS SIGNED ) * + 86 * - + 96 AS col2
----
123840

skipif mysql # not compatible
query I rowsort label-5599
SELECT CAST ( - ( 15 ) AS INTEGER ) * + 86 * - + 96 AS col2
----
123840

onlyif mysql # aggregate syntax: 
query II rowsort label-5600
SELECT ALL COUNT( * ) AS col2, 87 + 57 AS col2
----
1
144

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL COUNT ( * ) AS col2, 87 + 57 AS col2
----
1
144

query II rowsort
SELECT ALL - 11, - 12 * - 47 col0
----
-11
564

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT SUM( + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5602
SELECT SUM ( + 33 )
----
33

query I rowsort
SELECT 85 * + 32 * + + 95
----
258400

query I rowsort
SELECT + 65 + ( + 37 ) * 13 AS col0
----
546

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT DISTINCT - 65 DIV - 95 * - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - 65 / - 95 * - 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5606
SELECT + ( + ( + SUM( 47 ) ) ) DIV + 76 * - - 33 + 99 + + 30
----
129

skipif mysql # not compatible
query I rowsort label-5606
SELECT + ( + ( + SUM ( 47 ) ) ) / + 76 * - - 33 + 99 + + 30
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT 1 * - 15 / 39 * COUNT( * ) + + 47 + + CASE - 13 WHEN - 25 THEN - 77 * + ( - 15 ) WHEN ( - - COUNT( * ) ) THEN NULL END / 38 / + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT 1 * - 15 / 39 * COUNT ( * ) + + 47 + + CASE - 13 WHEN - 25 THEN - 77 * + ( - 15 ) WHEN ( - - COUNT ( * ) ) THEN NULL END / 38 / + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL - 72 * + MAX( DISTINCT - 42 )
----
3024

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL - 72 * + MAX ( DISTINCT - 42 )
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT - 13 * COUNT( DISTINCT 52 )
----
-13

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT - 13 * COUNT ( DISTINCT 52 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5610
SELECT + COUNT( * ) col2, 93
----
1
93

skipif mysql # not compatible
query II rowsort label-5610
SELECT + COUNT ( * ) col2, 93
----
1
93

onlyif mysql # DIV for integer division: 
query II rowsort label-5611
SELECT 34, 58 DIV + 55 AS col0
----
34
1

skipif mysql # not compatible
query II rowsort label-5611
SELECT 34, 58 / + 55 AS col0
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT + - MAX( + ( - 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-5612
SELECT + - MAX ( + ( - 38 ) )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5613
SELECT ALL - + COUNT( DISTINCT + 33 ) AS col0, 47
----
-1
47

skipif mysql # not compatible
query II rowsort label-5613
SELECT ALL - + COUNT ( DISTINCT + 33 ) AS col0, 47
----
-1
47

query I rowsort
SELECT + 39 * 34 AS col0
----
1326

query I rowsort
SELECT 59 * + 58 col2
----
3422

query I rowsort
SELECT DISTINCT 13 + - 23
----
-10

query II rowsort
SELECT 38 * + NULLIF ( 35, 42 ) AS col1, 52
----
1330
52

query II rowsort
SELECT ALL - CASE - 8 WHEN + + 38 - 35 THEN NULL ELSE - 55 + - 80 END * + - 86 + - 30 + - 63 + + - 72 + - 28 + 49 AS col2, + 39 col2
----
-11754
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT - SUM( ALL - 90 ) * - 18 + + 23 * - 17 AS col2
----
-2011

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - SUM ( ALL - 90 ) * - 18 + + 23 * - 17 AS col2
----
-2011

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - 46 * - COUNT( * ) + - 17 + + + 89 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 46 * - COUNT ( * ) + - 17 + + + 89 AS col1
----
118

query I rowsort
SELECT - 75 + - 56 * - 6 AS col2
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT ALL + CAST( 21 AS SIGNED ) + 89 + + MAX( ALL + 75 ) AS col1
----
185

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL + CAST ( 21 AS INTEGER ) + 89 + + MAX ( ALL + 75 ) AS col1
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT DISTINCT COALESCE ( + + COUNT( * ), - - 20 DIV - 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - - 20 / - 25 ) AS col0
----
1

query I rowsort
SELECT - 51 + - ( + 19 ) + - 19 + + + 7 + + 93 + + - 5 + - - 71 * + 76
----
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL - SUM( DISTINCT - 29 ) + - + 54 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - SUM ( DISTINCT - 29 ) + - + 54 AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT DISTINCT + 16 + + 44 + - 49 + + NULLIF ( CAST( - - 78 AS SIGNED ), + - 5 ) * 82 AS col0
----
6407

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + 16 + + 44 + - 49 + + NULLIF ( CAST ( - - 78 AS INTEGER ), + - 5 ) * 82 AS col0
----
6407

query I rowsort
SELECT ALL CASE - 86 WHEN - - 84 THEN + 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL COUNT( DISTINCT 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL COUNT ( DISTINCT 23 ) AS col1
----
1

query I rowsort
SELECT - 21 + - ( - 52 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL 33 * - ( + NULLIF ( + ( 44 ), + 0 * - COUNT( DISTINCT 33 ) * + - COUNT( * ) / + - COUNT( * ) - 43 / + 11 - + 30 ) )
----
-1452

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL 33 * - ( + NULLIF ( + ( 44 ), + 0 * - COUNT ( DISTINCT 33 ) * + - COUNT ( * ) / + - COUNT ( * ) - 43 / + 11 - + 30 ) )
----
-1452

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - COUNT( * ) * + 96 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5631
SELECT - COUNT ( * ) * + 96 AS col2
----
-96

query I rowsort
SELECT - 9 * + 29 * 25
----
-6525

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5633
SELECT - 15 * + CAST( NULL AS SIGNED ) AS col2, - 78 AS col0
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-5633
SELECT - 15 * + CAST ( NULL AS INTEGER ) AS col2, - 78 AS col0
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL CASE + 70 WHEN + 54 THEN NULL WHEN COUNT( * ) THEN NULL WHEN + + 38 THEN NULL WHEN COUNT( * ) THEN + + 20 * + + COUNT( * ) WHEN - + 3 * - 46 THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL CASE + 70 WHEN + 54 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN + + 38 THEN NULL WHEN COUNT ( * ) THEN + + 20 * + + COUNT ( * ) WHEN - + 3 * - 46 THEN - 27 END
----
NULL

query I rowsort
SELECT DISTINCT - 53 - - + 39 AS col0
----
-14

query I rowsort
SELECT ALL 73 * 71 AS col2
----
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - 79 * + COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5637
SELECT - 79 * + COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT ALL - 76 * + + 75 AS col0
----
-5700

query I rowsort
SELECT + 30 * - 45 AS col0
----
-1350

query II rowsort
SELECT DISTINCT + + ( + 37 ), - 79 col1
----
37
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT DISTINCT + CAST( ( - - 31 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + CAST ( ( - - 31 ) AS INTEGER )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT + - 15 DIV + 18 * + - 25 * - 38 * + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5642
SELECT + - 15 / + 18 * + - 25 * - 38 * + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + + 98 - - + 77 * COUNT( * ) * - 54 * 23
----
-95536

skipif mysql # not compatible
query I rowsort label-5643
SELECT + + 98 - - + 77 * COUNT ( * ) * - 54 * 23
----
-95536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5644
SELECT + - 29 + + COUNT( * ) + 82 + + + 73 + - 98 + + 72 + - 2 * - 79 DIV 58
----
103

skipif mysql # not compatible
query I rowsort label-5644
SELECT + - 29 + + COUNT ( * ) + 82 + + + 73 + - 98 + + 72 + - 2 * - 79 / 58
----
103

query I rowsort
SELECT ALL - 60 * + ( - 71 )
----
4260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT 2 / + CASE + NULLIF ( + + 27, + COALESCE ( - - SUM( ALL - CASE ( + 83 ) WHEN - 3 THEN - 60 WHEN + + 76 THEN NULL END ), + + 3 + 45 + COUNT( * ), 93 ) ) WHEN 70 THEN - ( + - CASE - + COUNT( 0 ) WHEN + 13 / - 88 + - 92 THEN + AVG ( + - 21 ) ELSE NULL END ) + - 42 + + 14 - 65 + + CASE - - 73 WHEN - SUM( + ( 66 ) ) THEN - 39 * + 43 + + CASE - 63 WHEN COUNT( * ) * - 79 * - 86 THEN - 77 END - NULLIF ( + AVG ( DISTINCT - - 8 ), 13 * 88 + COUNT( 51 - 38 ) + CAST( + 53 AS SIGNED ) ) END * + 79 / 15 WHEN + 88 THEN NULL ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT 2 / + CASE + NULLIF ( + + 27, + COALESCE ( - - SUM ( ALL - CASE ( + 83 ) WHEN - 3 THEN - 60 WHEN + + 76 THEN NULL END ), + + 3 + 45 + COUNT ( * ), 93 ) ) WHEN 70 THEN - ( + - CASE - + COUNT ( 0 ) WHEN + 13 / - 88 + - 92 THEN + AVG ( + - 21 ) ELSE NULL END ) + - 42 + + 14 - 65 + + CASE - - 73 WHEN - SUM ( + ( 66 ) ) THEN - 39 * + 43 + + CASE - 63 WHEN COUNT ( * ) * - 79 * - 86 THEN - 77 END - NULLIF ( + AVG ( DISTINCT - - 8 ), 13 * 88 + COUNT ( 51 - 38 ) + CAST ( + 53 AS INTEGER ) ) END * + 79 / 15 WHEN + 88 THEN NULL ELSE NULL END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 63 * + - 84 + 37 AS col2
----
-5255

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL + COUNT( * ) * + - NULLIF ( - - MAX( ALL - 30 ), + 42 ) + COALESCE ( - 77, - 9 ) + - + 89 - 45 + - + 15 + + 99 + - 71 * + + 3 - - - COUNT( * ) * + - 50 * - 97 * + - 96 * - 11
----
-5121910

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL + COUNT ( * ) * + - NULLIF ( - - MAX ( ALL - 30 ), + 42 ) + COALESCE ( - 77, - 9 ) + - + 89 - 45 + - + 15 + + 99 + - 71 * + + 3 - - - COUNT ( * ) * + - 50 * - 97 * + - 96 * - 11
----
-5121910

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL 20 * + - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL 20 * + - COUNT ( * ) AS col0
----
-20

query I rowsort
SELECT DISTINCT + 32 * 24 + - 27 + - 99 AS col1
----
642

query I rowsort
SELECT DISTINCT + 71 * 64 + - - 26 * 29 * + + 61 AS col2
----
50538

query I rowsort
SELECT + 82 * 95 AS col0
----
7790

query I rowsort
SELECT - CASE 53 WHEN - 53 + + 1 + + 18 THEN 69 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5654
SELECT - COUNT( * ) + - + 87 + + - CAST( NULL AS SIGNED ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT - COUNT ( * ) + - + 87 + + - CAST ( NULL AS INTEGER ) * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL COUNT( + 70 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL COUNT ( + 70 ) col2
----
1

query I rowsort
SELECT - 81 + + - 45
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT - ( + ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT - ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT SUM( + + CASE - ( + - 41 ) WHEN 67 THEN 36 * - 1 * - + 42 - - 69 * + 48 + + - 98 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT SUM ( + + CASE - ( + - 41 ) WHEN 67 THEN 36 * - 1 * - + 42 - - 69 * + 48 + + - 98 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT DISTINCT 16 - 11 * - - CAST( NULL AS SIGNED ) - + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT 16 - 11 * - - CAST ( NULL AS INTEGER ) - + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL - 39 * COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - 39 * COUNT ( * )
----
-39

query II rowsort
SELECT + 45 * 67 * 66 AS col2, 34 AS col0
----
198990
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT COUNT( + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT COUNT ( + 81 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL 4 * - COUNT( * ) * MAX( + 13 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL 4 * - COUNT ( * ) * MAX ( + 13 ) col2
----
-52

query I rowsort
SELECT + 9 - 98
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT - COUNT( * ) * + - 28
----
28

skipif mysql # not compatible
query I rowsort label-5665
SELECT - COUNT ( * ) * + - 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - COUNT( ALL 20 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5666
SELECT - COUNT ( ALL 20 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT ( - + 40 )
----
-40

query I rowsort
SELECT DISTINCT 3 * ( - 3 ) AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT ALL + 16 DIV - 12 + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + 16 / - 12 + + 23 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - COUNT( * ) - + 25 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5670
SELECT - COUNT ( * ) - + 25 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT - + 94 * MIN( ALL - 51 )
----
4794

skipif mysql # not compatible
query I rowsort label-5671
SELECT - + 94 * MIN ( ALL - 51 )
----
4794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5672
SELECT DISTINCT + 88 + + CASE + 68 WHEN - + COUNT( * ) - + 14 THEN - + 77 DIV + + 83 - + COUNT( * ) ELSE COUNT( * ) END DIV 41 * - 31 * 43 * + 94 * - + ( - 15 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + 88 + + CASE + 68 WHEN - + COUNT ( * ) - + 14 THEN - + 77 / + + 83 - + COUNT ( * ) ELSE COUNT ( * ) END / 41 * - 31 * 43 * + 94 * - + ( - 15 ) AS col1
----
88

query I rowsort
SELECT - - 19 * - 37 AS col1
----
-703

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + COUNT( * ) * + + 19 + - + 87 + + ( + - 87 ) + 19 AS col2
----
-136

skipif mysql # not compatible
query I rowsort label-5674
SELECT + COUNT ( * ) * + + 19 + - + 87 + + ( + - 87 ) + 19 AS col2
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT ( - 83 ) DIV + 45 - - 35 + + COUNT( * ) - - 2 + - 56 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5675
SELECT ( - 83 ) / + 45 - - 35 + + COUNT ( * ) - - 2 + - 56 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT MIN( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5676
SELECT MIN ( 59 )
----
59

query I rowsort
SELECT ALL - + 31 * - - 16
----
-496

query I rowsort
SELECT DISTINCT - 31 * - 1
----
31

query II rowsort
SELECT 26 AS col0, 86 AS col2
----
26
86

query I rowsort
SELECT ALL - - 39 * 46
----
1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT - 60 * - - CAST( NULL AS SIGNED ) - ( - - COUNT( * ) ) + + 68 + - + 46 * ( - - 27 ) * + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT - 60 * - - CAST ( NULL AS INTEGER ) - ( - - COUNT ( * ) ) + + 68 + - + 46 * ( - - 27 ) * + + 94
----
NULL

query I rowsort
SELECT DISTINCT + 70 * + + 7 * - 17 + + 32 col0
----
-8298

query I rowsort
SELECT ALL - - 26 + + 49 + - 21 * + 98 AS col0
----
-1983

query I rowsort
SELECT ALL + 37 + + + 5 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT - COUNT( * ) DIV + + 83 - - 93
----
93

skipif mysql # not compatible
query I rowsort label-5685
SELECT - COUNT ( * ) / + + 83 - - 93
----
93

query I rowsort
SELECT ( - - 82 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT MIN( DISTINCT + + NULLIF ( CAST( NULL AS SIGNED ), + 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT MIN ( DISTINCT + + NULLIF ( CAST ( NULL AS INTEGER ), + 24 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT - COUNT( * ) + + 37 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5688
SELECT - COUNT ( * ) + + 37 AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5689
SELECT ALL ( + - COUNT( * ) ) DIV - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL ( + - COUNT ( * ) ) / - 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT COUNT( * ) * + - COALESCE ( + 90, - 55 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5690
SELECT COUNT ( * ) * + - COALESCE ( + 90, - 55 ) AS col1
----
-90

query I rowsort
SELECT DISTINCT 5 * - 74
----
-370

query I rowsort
SELECT DISTINCT + 52 - 26 AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT ALL + 43 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + 43 / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT CASE + + 40 WHEN 20 + 83 THEN - + SUM( - + 65 ) END - MAX( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT CASE + + 40 WHEN 20 + 83 THEN - + SUM ( - + 65 ) END - MAX ( + 44 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT DISTINCT CAST( - 39 AS SIGNED ) * 33 AS col1
----
-1287

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT CAST ( - 39 AS INTEGER ) * 33 AS col1
----
-1287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT CAST( + 84 AS SIGNED ) * - COUNT( * ) + + + 23 * 86 + - 43 AS col1
----
1851

skipif mysql # not compatible
query I rowsort label-5696
SELECT CAST ( + 84 AS INTEGER ) * - COUNT ( * ) + + + 23 * 86 + - 43 AS col1
----
1851

query I rowsort
SELECT ALL 4 * 58 * + 84
----
19488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT - 99 * - CAST( NULL AS SIGNED ) + - 83 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT - 99 * - CAST ( NULL AS INTEGER ) + - 83 * 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT 50 + - COUNT( + - 19 )
----
49

skipif mysql # not compatible
query I rowsort label-5699
SELECT 50 + - COUNT ( + - 19 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ( + + MAX( - - 75 ) ) + - 65 - 61 * + CASE + + 80 WHEN + + 51 THEN - 26 ELSE NULL END / + ( COALESCE ( + 94, + + 95, 16, + - ( - + 72 ) ) ) * - - 54 / - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT ( + + MAX ( - - 75 ) ) + - 65 - 61 * + CASE + + 80 WHEN + + 51 THEN - 26 ELSE NULL END / + ( COALESCE ( + 94, + + 95, 16, + - ( - + 72 ) ) ) * - - 54 / - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT 95 - ( COUNT( ALL + 68 ) ) + - SUM( DISTINCT + 47 ) * + 69
----
-3149

skipif mysql # not compatible
query I rowsort label-5701
SELECT 95 - ( COUNT ( ALL + 68 ) ) + - SUM ( DISTINCT + 47 ) * + 69
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT MAX( ALL - 23 ) + + 54 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5702
SELECT MAX ( ALL - 23 ) + + 54 AS col1
----
31

query I rowsort
SELECT 85 + - 19
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT CASE - - 95 WHEN - CASE + + 77 WHEN - 69 / + 51 * + + NULLIF ( - 35, + 42 + - - 71 * COUNT( * ) / - 58 ) * + - COUNT( * ) THEN 89 / - + 74 + 90 END * - + 78 * + ( 58 ) + - + 43 + - 75 - + COUNT( DISTINCT + 62 ) * - 51 THEN NULL ELSE + 12 END + - 44 + - 94 * - 48 * - COUNT( 38 ) * - COUNT( * ) - + - ( - 15 )
----
4465

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT CASE - - 95 WHEN - CASE + + 77 WHEN - 69 / + 51 * + + NULLIF ( - 35, + 42 + - - 71 * COUNT ( * ) / - 58 ) * + - COUNT ( * ) THEN 89 / - + 74 + 90 END * - + 78 * + ( 58 ) + - + 43 + - 75 - + COUNT ( DISTINCT + 62 ) * - 51 THEN NULL ELSE + 12 END + - 44 + - 94 * - 48 * - COUNT ( 38 ) * - COUNT ( * ) - + - ( - 15 )
----
4465

query I rowsort
SELECT + 16 + + 26
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT - - MIN( DISTINCT 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5706
SELECT - - MIN ( DISTINCT 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT 44 * - + 79 * COUNT( * )
----
-3476

skipif mysql # not compatible
query I rowsort label-5707
SELECT 44 * - + 79 * COUNT ( * )
----
-3476

query II rowsort
SELECT 88 + - + ( - 79 ) * 56 AS col2, + 88 col1
----
4512
88

query I rowsort
SELECT ALL + 93 * + - 42 + 43
----
-3863

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT 34 + - COUNT( * ) + - 3 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5710
SELECT 34 + - COUNT ( * ) + - 3 AS col0
----
30

query I rowsort
SELECT COALESCE ( + - 38, - 28 ) AS col1
----
-38

query I rowsort
SELECT ALL + 43 + + 63
----
106

query I rowsort
SELECT 67 * + 67 AS col0
----
4489

query I rowsort
SELECT DISTINCT 79 + + 11
----
90

query I rowsort
SELECT ALL + 83 + - CASE - 20 WHEN + ( - - 80 ) * - + 82 + + 3 * 36 + + 67 THEN 55 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5716
SELECT - CAST( NULL AS SIGNED ) / + 26 + 92 + + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5716
SELECT - CAST ( NULL AS INTEGER ) / + 26 + 92 + + - 48 AS col2
----
NULL

query II rowsort
SELECT ( 77 ) AS col0, 93
----
77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT - 7 * + + 87 + + COUNT( * )
----
-608

skipif mysql # not compatible
query I rowsort label-5718
SELECT - 7 * + + 87 + + COUNT ( * )
----
-608

query I rowsort
SELECT ALL + 38 * + + 78
----
2964

query I rowsort
SELECT 41 + + 63 AS col0
----
104

query I rowsort
SELECT DISTINCT + ( + 33 ) * + - 25
----
-825

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5722
SELECT DISTINCT - 22 AS col1, COALESCE ( 76, 11 * - - COALESCE ( - 98, - 52, + - 98 ) DIV - COUNT( * ) + + 51 * - - 73 )
----
-22
76

skipif mysql # not compatible
query II rowsort label-5722
SELECT DISTINCT - 22 AS col1, COALESCE ( 76, 11 * - - COALESCE ( - 98, - 52, + - 98 ) / - COUNT ( * ) + + 51 * - - 73 )
----
-22
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5723
SELECT + 95 * - - 17 + - SUM( 64 ) * + COUNT( * ), 12 - + - 27 AS col1
----
1551
39

skipif mysql # not compatible
query II rowsort label-5723
SELECT + 95 * - - 17 + - SUM ( 64 ) * + COUNT ( * ), 12 - + - 27 AS col1
----
1551
39

onlyif mysql # DIV for integer division: 
query II rowsort label-5724
SELECT 52, - 92 DIV + 82 AS col1
----
52
-1

skipif mysql # not compatible
query II rowsort label-5724
SELECT 52, - 92 / + 82 AS col1
----
52
-1

query I rowsort
SELECT 76 + 35
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5726
SELECT ALL - CAST( NULL AS SIGNED ), 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL - CAST ( NULL AS INTEGER ), 26 AS col2
----
NULL
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5727
SELECT DISTINCT 15 DIV + 93 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT 15 / + 93 * + 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5728
SELECT CASE + MIN( DISTINCT - 23 ) WHEN ( - ( + ( + 78 ) ) ) / - - 58 THEN + ( 15 ) ELSE NULL END * - 47 * - + 59 + - + 88 AS col1, + ( ( + - 38 ) )
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-5728
SELECT CASE + MIN ( DISTINCT - 23 ) WHEN ( - ( + ( + 78 ) ) ) / - - 58 THEN + ( 15 ) ELSE NULL END * - 47 * - + 59 + - + 88 AS col1, + ( ( + - 38 ) )
----
NULL
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT ALL - 4 DIV - 55 col0
----
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - 4 / - 55 col0
----
0

query I rowsort
SELECT ALL + 49 + + 73 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL COUNT( * ) * - 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL COUNT ( * ) * - 20 AS col1
----
-20

query I rowsort
SELECT ALL 3 + 47 - + + 21 + - + 32 * - 11
----
381

query I rowsort
SELECT 95 * + COALESCE ( 98, 76 ) AS col0
----
9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL 14 + - 88 + - ( - CAST( + + NULLIF ( - 59, + - 97 * - - 82 ) AS SIGNED ) ) * 15 AS col0
----
-959

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL 14 + - 88 + - ( - CAST ( + + NULLIF ( - 59, + - 97 * - - 82 ) AS INTEGER ) ) * 15 AS col0
----
-959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5735
SELECT COUNT( ALL - 55 ) - COUNT( ALL + CAST( NULL AS SIGNED ) ) * CASE 45 * 22 WHEN 16 THEN + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT COUNT ( ALL - 55 ) - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * CASE 45 * 22 WHEN 16 THEN + 49 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 67 + ( - 49 )
----
18

query I rowsort
SELECT 85 - 53
----
32

query I rowsort
SELECT 20 * + 56
----
1120

query I rowsort
SELECT 26 + - 28 * - 84
----
2378

query I rowsort
SELECT DISTINCT 2 + - 26 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT ALL 72 * COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL 72 * COUNT ( * )
----
72

query I rowsort
SELECT ALL 37 + + 76
----
113

query I rowsort
SELECT DISTINCT 66 + 45
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL + 42 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL + 42 * COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - CASE + COALESCE ( - ( 12 ), 26 / - 21 ) WHEN + 65 * COUNT( * ) THEN 86 * COUNT( * ) WHEN + ( + 87 ) + + 88 THEN NULL WHEN COUNT( * ) THEN 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT - CASE + COALESCE ( - ( 12 ), 26 / - 21 ) WHEN + 65 * COUNT ( * ) THEN 86 * COUNT ( * ) WHEN + ( + 87 ) + + 88 THEN NULL WHEN COUNT ( * ) THEN 33 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT - NULLIF ( 56, SUM( + 84 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-5746
SELECT - NULLIF ( 56, SUM ( + 84 ) )
----
-56

query I rowsort
SELECT ALL 1 - + 84 AS col2
----
-83

query I rowsort
SELECT + NULLIF ( 84, 54 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT CASE + COUNT( * ) WHEN COUNT( * ) THEN - 21 WHEN 76 * - 59 THEN - 49 ELSE 26 + 52 END AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5749
SELECT CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 21 WHEN 76 * - 59 THEN - 49 ELSE 26 + 52 END AS col0
----
-21

query I rowsort
SELECT - 24 * + 88 + - 53 col2
----
-2165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL CAST( 41 AS SIGNED ) * - 57
----
-2337

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL CAST ( 41 AS INTEGER ) * - 57
----
-2337

query I rowsort
SELECT - 6 + 5 * 75 AS col0
----
369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT - AVG ( ALL 28 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT - AVG ( ALL 28 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL + COUNT( DISTINCT 38 )
----
1

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + COUNT ( DISTINCT 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT + 53 * + ( + COUNT( * ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5755
SELECT + 53 * + ( + COUNT ( * ) ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL 58 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL 58 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT COALESCE ( 0, - COALESCE ( 29, + ( - 56 ) ), + COUNT( * ) DIV 40 + MAX( DISTINCT COALESCE ( 65, + 45 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5757
SELECT COALESCE ( 0, - COALESCE ( 29, + ( - 56 ) ), + COUNT ( * ) / 40 + MAX ( DISTINCT COALESCE ( 65, + 45 ) ) ) AS col1
----
0

query I rowsort
SELECT 52 * + 16 + 85 AS col0
----
917

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL - 80 DIV 72
----
-1

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL - 80 / 72
----
-1

query I rowsort
SELECT - 22 * 7
----
-154

query I rowsort
SELECT + 93 * 10 AS col0
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + COUNT( * ) - - 83
----
84

skipif mysql # not compatible
query I rowsort label-5762
SELECT + COUNT ( * ) - - 83
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5763
SELECT + ( CASE 73 WHEN - 12 THEN ( CASE CAST( NULL AS SIGNED ) WHEN 92 / SUM( - 95 ) THEN COUNT( * ) + + 91 WHEN - 24 THEN NULL END ) + 44 WHEN - 98 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT + ( CASE 73 WHEN - 12 THEN ( CASE CAST ( NULL AS INTEGER ) WHEN 92 / SUM ( - 95 ) THEN COUNT ( * ) + + 91 WHEN - 24 THEN NULL END ) + 44 WHEN - 98 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT ALL - 80 DIV 38
----
-2

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - 80 / 38
----
-2

query I rowsort
SELECT - 87 + 39 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - 92 * COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5766
SELECT - 92 * COUNT ( * ) AS col2
----
-92

query I rowsort
SELECT ALL + 8 * - 53 AS col2
----
-424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), 77 ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5769
SELECT NULLIF ( COUNT( * ), 52 ) * + 82 - 79 DIV + CAST( 30 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5769
SELECT NULLIF ( COUNT ( * ), 52 ) * + 82 - 79 / + CAST ( 30 AS INTEGER ) AS col0
----
80

query I rowsort
SELECT ALL 90 * 9 + - 37
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT CASE 28 WHEN - 73 - 34 / + COUNT( * ) THEN 26 ELSE NULL END * + 52 + 29 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT CASE 28 WHEN - 73 - 34 / + COUNT ( * ) THEN 26 ELSE NULL END * + 52 + 29 * - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL COUNT( * ) + + 29 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL COUNT ( * ) + + 29 AS col1
----
30

query I rowsort
SELECT ALL + 45 + 12 AS col0
----
57

query I rowsort
SELECT DISTINCT - 90 * 45 AS col2
----
-4050

query I rowsort
SELECT DISTINCT CASE 11 WHEN - 38 THEN - 54 END AS col0
----
NULL

query I rowsort
SELECT - 97 + 37
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL + COUNT( * ) + - 42 * - 80
----
3361

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + COUNT ( * ) + - 42 * - 80
----
3361

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT - + MAX( + 5 ) + - CASE + 32 WHEN 16 * - 25 THEN 27 ELSE NULL END / + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT - + MAX ( + 5 ) + - CASE + 32 WHEN 16 * - 25 THEN 27 ELSE NULL END / + 59
----
NULL

query I rowsort
SELECT - 20 * 46 - 34 col1
----
-954

query I rowsort
SELECT - - 87 + COALESCE ( - 58, - 29 ) * - 39
----
2349

query I rowsort
SELECT + + 82 - 64
----
18

query I rowsort
SELECT - 74 + 77
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT DISTINCT - + 57 DIV 2 col1
----
-28

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT - + 57 / 2 col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + COUNT( * ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-5784
SELECT + COUNT ( * ) + 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL + COUNT( * ) - + 46
----
-45

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + COUNT ( * ) - + 46
----
-45

query I rowsort
SELECT DISTINCT - + ( - 75 ) * 1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL + NULLIF ( 68, + 13 * MIN( ALL + 74 ) ) * - SUM( 31 )
----
-2108

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL + NULLIF ( 68, + 13 * MIN ( ALL + 74 ) ) * - SUM ( 31 )
----
-2108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT - - 61 DIV ( - MAX( ALL 72 ) - - NULLIF ( COUNT( * ), + 61 ) DIV + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5788
SELECT - - 61 / ( - MAX ( ALL 72 ) - - NULLIF ( COUNT ( * ), + 61 ) / + 85 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT + - 55 DIV 33
----
-1

skipif mysql # not compatible
query I rowsort label-5789
SELECT + - 55 / 33
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - - COUNT( * ) + + ( 51 + 46 )
----
98

skipif mysql # not compatible
query I rowsort label-5790
SELECT - - COUNT ( * ) + + ( 51 + 46 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT DISTINCT COUNT( * ) - - 79 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT COUNT ( * ) - - 79 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT + - COUNT( * ) + - CAST( + MAX( DISTINCT + 38 ) - + 26 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-5792
SELECT + - COUNT ( * ) + - CAST ( + MAX ( DISTINCT + 38 ) - + 26 AS INTEGER )
----
-13

query I rowsort
SELECT DISTINCT - NULLIF ( - 65, 83 * 82 - 43 ) * 46
----
2990

query I rowsort
SELECT DISTINCT + + 77 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT - 93 * - MIN( DISTINCT + 36 ) * + 76
----
254448

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT - 93 * - MIN ( DISTINCT + 36 ) * + 76
----
254448

query I rowsort
SELECT + 93 * - 41 * - 25
----
95325

query I rowsort
SELECT + 99 * + 90 AS col1
----
8910

query I rowsort
SELECT ALL 5 * 15 AS col2
----
75

query I rowsort
SELECT 75 * - - 43 + - 55
----
3170

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT + MAX( DISTINCT + 45 ) - - CASE - 52 - 31 / 54 WHEN + 89 THEN + 71 * 42 WHEN 31 THEN CASE + 50 WHEN CASE - 98 WHEN - 30 + - 23 THEN 24 ELSE NULL END THEN 92 * 16 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5800
SELECT + MAX ( DISTINCT + 45 ) - - CASE - 52 - 31 / 54 WHEN + 89 THEN + 71 * 42 WHEN 31 THEN CASE + 50 WHEN CASE - 98 WHEN - 30 + - 23 THEN 24 ELSE NULL END THEN 92 * 16 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + ( + NULLIF ( - 78, ( + COUNT( * ) ) / 80 ) ) * + 27 + ( 38 + 27 ) * 15
----
-1131

skipif mysql # not compatible
query I rowsort label-5801
SELECT + ( + NULLIF ( - 78, ( + COUNT ( * ) ) / 80 ) ) * + 27 + ( 38 + 27 ) * 15
----
-1131

query I rowsort
SELECT + 63 * + 32
----
2016

query I rowsort
SELECT ALL ( + NULLIF ( 93, 53 + - 83 * + 67 ) ) * - 82 + + 30
----
-7596

query I rowsort
SELECT + 81 + - - 73 col0
----
154

query I rowsort
SELECT DISTINCT 86 * 50 * - 2 AS col0
----
-8600

query I rowsort
SELECT DISTINCT ( + 31 ) * - 29 + - 84
----
-983

query I rowsort
SELECT DISTINCT 80 * - 52 + + 87 AS col2
----
-4073

query I rowsort
SELECT DISTINCT + COALESCE ( - 99, + 37 + 51, - ( + 67 ), + 74 )
----
-99

query I rowsort
SELECT ALL - 70 * + + 6 * - 5 + 9 * - 54
----
1614

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT COUNT( * ) * + MIN( 36 ) + - 24 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( * ) * + MIN ( 36 ) + - 24 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL COUNT( ALL + 44 ) * 19 + + MAX( ALL 15 )
----
34

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL COUNT ( ALL + 44 ) * 19 + + MAX ( ALL 15 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT CASE WHEN NOT 78 IS NOT NULL THEN - 78 * + 61 ELSE - COUNT( DISTINCT - 44 ) + + 16 DIV 49 END
----
-1

skipif mysql # not compatible
query I rowsort label-5812
SELECT CASE WHEN NOT 78 IS NOT NULL THEN - 78 * + 61 ELSE - COUNT ( DISTINCT - 44 ) + + 16 / 49 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT DISTINCT + NULLIF ( - COUNT( * ), 5 + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 5 + 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - 3 + + - CASE ( - 90 ) WHEN 54 THEN - 69 * 47 WHEN - MIN( DISTINCT 89 ) THEN - 70 / - 68 END - + 23 * 97 / + ( - 25 + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT - 3 + + - CASE ( - 90 ) WHEN 54 THEN - 69 * 47 WHEN - MIN ( DISTINCT 89 ) THEN - 70 / - 68 END - + 23 * 97 / + ( - 25 + 27 ) AS col2
----
NULL

query I rowsort
SELECT + 73 * + - NULLIF ( 12, + 36 ) AS col0
----
-876

query I rowsort
SELECT - 79 + + 72 - + 24
----
-31

query I rowsort
SELECT ALL ( - 15 ) col2
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5818
SELECT - 93 * - 52 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 93 * - 52 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL + - 36 * ( + MAX( - ( + 56 ) ) ) * 51 + - 55 - COUNT( 61 ) AS col1
----
102760

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL + - 36 * ( + MAX ( - ( + 56 ) ) ) * 51 + - 55 - COUNT ( 61 ) AS col1
----
102760

query I rowsort
SELECT NULLIF ( + 16, 6 ) AS col2
----
16

query I rowsort
SELECT DISTINCT 42 * - 56 * + 17 + 11 * - NULLIF ( + 86, + 18 ) - 35 * 46
----
-42540

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT - 3 * - CASE + 35 WHEN ( + 82 ) THEN - 28 WHEN + 4 - 80 THEN NULL WHEN 72 + + MIN( DISTINCT + 59 ) * + 2 THEN NULL ELSE NULL END + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT - 3 * - CASE + 35 WHEN ( + 82 ) THEN - 28 WHEN + 4 - 80 THEN NULL WHEN 72 + + MIN ( DISTINCT + 59 ) * + 2 THEN NULL ELSE NULL END + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT - + COUNT( * ) * + - 73 + + 24
----
97

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - + COUNT ( * ) * + - 73 + + 24
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5824
SELECT 52 * 40 * + 51 + - COUNT( * ) DIV - COUNT( * ) AS col0
----
106081

skipif mysql # not compatible
query I rowsort label-5824
SELECT 52 * 40 * + 51 + - COUNT ( * ) / - COUNT ( * ) AS col0
----
106081

query I rowsort
SELECT + 94 * + 25 - 11
----
2339

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL + SUM( ALL - - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL + SUM ( ALL - - 81 ) AS col1
----
81

query I rowsort
SELECT + ( 56 ) - - 63 col2
----
119

query I rowsort
SELECT + 51 - 62
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT - COUNT( ALL - 18 ) * 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5829
SELECT - COUNT ( ALL - 18 ) * 26 AS col1
----
-26

query I rowsort
SELECT 19 + + - ( 20 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT DISTINCT - 71 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - 71 / + 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT + MIN( - - CASE - 20 WHEN - 66 * 85 THEN NULL WHEN + 49 * 79 + + 72 THEN + 43 ELSE 50 END )
----
50

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT + MIN ( - - CASE - 20 WHEN - 66 * 85 THEN NULL WHEN + 49 * 79 + + 72 THEN + 43 ELSE 50 END )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT ALL + 38 * + ( MAX( DISTINCT + 1 ) ) DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + 38 * + ( MAX ( DISTINCT + 1 ) ) / - 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT DISTINCT + - 87 DIV - 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT + - 87 / - 65 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5835
SELECT DISTINCT + COALESCE ( + 89, + COALESCE ( - 44, - CAST( NULL AS SIGNED ) ) * - 79, CAST( 2 AS SIGNED ) * - 83 + 31 ) * 27
----
2403

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT + COALESCE ( + 89, + COALESCE ( - 44, - CAST ( NULL AS INTEGER ) ) * - 79, CAST ( 2 AS INTEGER ) * - 83 + 31 ) * 27
----
2403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5836
SELECT COUNT( 55 ) DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT COUNT ( 55 ) / - 19
----
0

query I rowsort
SELECT 41 * + 27
----
1107

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT SUM( - 79 ) * - ( 24 ) + 12 AS col0
----
1908

skipif mysql # not compatible
query I rowsort label-5838
SELECT SUM ( - 79 ) * - ( 24 ) + 12 AS col0
----
1908

query II rowsort
SELECT 68, 72 col2
----
68
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT 86 + - + COUNT( * ) * - 16 col0
----
102

skipif mysql # not compatible
query I rowsort label-5840
SELECT 86 + - + COUNT ( * ) * - 16 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT 99 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT 99 + - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5842
SELECT SUM( + CASE 89 WHEN 49 THEN NULL ELSE + 18 * 61 END ) DIV 33
----
33

skipif mysql # not compatible
query I rowsort label-5842
SELECT SUM ( + CASE 89 WHEN 49 THEN NULL ELSE + 18 * 61 END ) / 33
----
33

query II rowsort
SELECT DISTINCT - 37 AS col1, 6 * + 26 col0
----
-37
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL 51 + 51 * + + 25 * + SUM( 91 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL 51 + 51 * + + 25 * + SUM ( 91 * CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 29 AS col1, - 93
----
29
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT - 8 + 41 DIV COUNT( * ) DIV 91 col1
----
-8

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT - 8 + 41 / COUNT ( * ) / 91 col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL COUNT( * ) + - 57
----
-56

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL COUNT ( * ) + - 57
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5848
SELECT DISTINCT 86 + - 39 + - COUNT( * ) DIV + 59 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT 86 + - 39 + - COUNT ( * ) / + 59 AS col0
----
47

query II rowsort
SELECT + 38 AS col2, - 58
----
38
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT SUM( 60 ) + - + NULLIF ( - 41, + ( 2 ) * 15 ) + 2
----
103

skipif mysql # not compatible
query I rowsort label-5850
SELECT SUM ( 60 ) + - + NULLIF ( - 41, + ( 2 ) * 15 ) + 2
----
103

query I rowsort
SELECT COALESCE ( 29, - 44 ) * + 57 AS col2
----
1653

onlyif mysql # aggregate syntax: 
query II rowsort label-5852
SELECT + 4 AS col0, 80 * - 14 + COUNT( * ) * ( - 96 ) AS col1
----
4
-1216

skipif mysql # not compatible
query II rowsort label-5852
SELECT + 4 AS col0, 80 * - 14 + COUNT ( * ) * ( - 96 ) AS col1
----
4
-1216

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT DISTINCT - 72 col0, - MAX( DISTINCT + - 93 )
----
-72
93

skipif mysql # not compatible
query II rowsort label-5853
SELECT DISTINCT - 72 col0, - MAX ( DISTINCT + - 93 )
----
-72
93

query I rowsort
SELECT - 49 * 66 * + 47 * + 75 + 47 * 18 - 76
----
-11399080

query I rowsort
SELECT ALL + 49 * 25 * 39 AS col1
----
47775

query I rowsort
SELECT ( + + 17 ) + - 21
----
-4

query I rowsort
SELECT ALL - 74 - - 22 + + - 60 AS col1
----
-112

query I rowsort
SELECT + 69 + + 5 AS col1
----
74

query I rowsort
SELECT - 57 * - + ( 37 ) + 2 * 16
----
2141

query II rowsort
SELECT DISTINCT 89, - 45 AS col0
----
89
-45

query I rowsort
SELECT 67 + + 73 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT - 92 * ( + COUNT( * ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5862
SELECT - 92 * ( + COUNT ( * ) ) AS col2
----
-92

query I rowsort
SELECT 57 - - 83
----
140

query I rowsort
SELECT ALL + - 65 * - 10
----
650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT 44 DIV COUNT( * ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-5865
SELECT 44 / COUNT ( * ) / 52
----
0

query I rowsort
SELECT - 49 + 68 + + 73 * 28 * 31 AS col2
----
63383

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT + CASE - COUNT( * ) WHEN + 72 - - 12 * - COUNT( * ) THEN - 81 * + 4 ELSE NULL END * 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT + CASE - COUNT ( * ) WHEN + 72 - - 12 * - COUNT ( * ) THEN - 81 * + 4 ELSE NULL END * 39 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - + SUM( DISTINCT - - 84 ) * + 15 * 10 AS col1
----
-12600

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - + SUM ( DISTINCT - - 84 ) * + 15 * 10 AS col1
----
-12600

query I rowsort
SELECT ALL ( - 45 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT ALL - 9 + + 79 + - COALESCE ( + 13, - 93, - 37 * 30 ) + 30 DIV 80
----
57

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL - 9 + + 79 + - COALESCE ( + 13, - 93, - 37 * 30 ) + 30 / 80
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + CASE - + 37 WHEN - 19 + + 58 THEN NULL WHEN 25 * + 86 THEN ( + 36 ) END + SUM( ALL - 34 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT + CASE - + 37 WHEN - 19 + + 58 THEN NULL WHEN 25 * + 86 THEN ( + 36 ) END + SUM ( ALL - 34 ) AS col0
----
NULL

query I rowsort
SELECT ALL + + CASE 48 WHEN + 39 THEN 37 + - 71 END + + 46 AS col2
----
NULL

query II rowsort
SELECT - 36 AS col2, + 97 * 27 AS col2
----
-36
2619

query I rowsort
SELECT ALL - 6 + - NULLIF ( - 97, - CASE 52 WHEN 2 THEN 20 ELSE NULL END * 98 ) col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5875
SELECT DISTINCT 80, + COUNT( * ) AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-5875
SELECT DISTINCT 80, + COUNT ( * ) AS col1
----
80
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT 50 + + - 81 * 7 DIV - 89 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5876
SELECT 50 + + - 81 * 7 / - 89 AS col1
----
56

query I rowsort
SELECT 86 * - 40 AS col0
----
-3440

query I rowsort
SELECT DISTINCT + 76 + - 65
----
11

query I rowsort
SELECT DISTINCT + 67 + - 48
----
19

query I rowsort
SELECT ALL + 94 + - - 52
----
146

query I rowsort
SELECT ALL 79 * 14 * - - 74 + + 75 * + 83
----
88069

query I rowsort
SELECT + 91 * + 74 * 47 * + 51 * - 26 + 32 AS col2
----
-419676316

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT COUNT( DISTINCT 11 ) * - 15 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5883
SELECT COUNT ( DISTINCT 11 ) * - 15 AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT ALL + 58 DIV - - ( 11 )
----
5

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + 58 / - - ( 11 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT AVG ( ALL - + 81 ) + CAST( NULL AS SIGNED ) * 95 * + MIN( 67 * 27 ) + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT AVG ( ALL - + 81 ) + CAST ( NULL AS INTEGER ) * 95 * + MIN ( 67 * 27 ) + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5886
SELECT MAX( 99 ) col0, + CASE AVG ( ( - 30 ) ) WHEN AVG ( 38 ) THEN NULL WHEN 76 THEN NULL ELSE + ( 43 ) END * 15 AS col1
----
99
645

skipif mysql # not compatible
query II rowsort label-5886
SELECT MAX ( 99 ) col0, + CASE AVG ( ( - 30 ) ) WHEN AVG ( 38 ) THEN NULL WHEN 76 THEN NULL ELSE + ( 43 ) END * 15 AS col1
----
99
645

query II rowsort
SELECT 11 + + 32 AS col0, 74 AS col1
----
43
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - SUM( 65 ) * + - 33 - + 66 + - 30
----
2049

skipif mysql # not compatible
query I rowsort label-5888
SELECT - SUM ( 65 ) * + - 33 - + 66 + - 30
----
2049

query I rowsort
SELECT ALL + 88 * - - 12 - + 68 AS col0
----
988

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT ALL - 86 * - + 72, COUNT( 84 ) * + 26 + COUNT( * ) AS col1
----
6192
27

skipif mysql # not compatible
query II rowsort label-5890
SELECT ALL - 86 * - + 72, COUNT ( 84 ) * + 26 + COUNT ( * ) AS col1
----
6192
27

query II rowsort
SELECT - 26 * + 53 AS col2, 35 * + - 64
----
-1378
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT + MAX( ALL 13 ) * + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT + MAX ( ALL 13 ) * + COUNT ( * ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT DISTINCT + 6 * + - NULLIF ( + 10, - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + 26 ) - 15 * 40
----
-660

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT + 6 * + - NULLIF ( + 10, - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + 26 ) - 15 * 40
----
-660

query I rowsort
SELECT + 2 * + 56
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5895
SELECT ALL + NULLIF ( + CASE WHEN NOT 56 < - COUNT( - 35 ) THEN COUNT( * ) DIV 73 ELSE NULL END, 25 )
----
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL + NULLIF ( + CASE WHEN NOT 56 < - COUNT ( - 35 ) THEN COUNT ( * ) / 73 ELSE NULL END, 25 )
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + - 40, - 52 + 26 + + 48 )
----
-40

query I rowsort
SELECT + 67 * - + 6
----
-402

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5898
SELECT ALL + 37 * + 22 AS col1, NULLIF ( - 5, - 70 ) DIV + ( + COUNT( * ) * + 41 + 88 ) AS col1
----
814
0

skipif mysql # not compatible
query II rowsort label-5898
SELECT ALL + 37 * + 22 AS col1, NULLIF ( - 5, - 70 ) / + ( + COUNT ( * ) * + 41 + 88 ) AS col1
----
814
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT + - 68 + + 32 + + 79 + CAST( + ( - 74 ) AS SIGNED ) + + 31 * NULLIF ( 9, 1 ) * 95 AS col0
----
26474

skipif mysql # not compatible
query I rowsort label-5899
SELECT + - 68 + + 32 + + 79 + CAST ( + ( - 74 ) AS INTEGER ) + + 31 * NULLIF ( 9, 1 ) * 95 AS col0
----
26474

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL + MIN( ALL + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + MIN ( ALL + 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - - NULLIF ( 45, + ( - COUNT( 53 ) ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-5901
SELECT - - NULLIF ( 45, + ( - COUNT ( 53 ) ) ) col0
----
45

query I rowsort
SELECT + 33 * + - 26 AS col0
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL + + 46 * + COUNT( * ) + + + 29 * - 28 AS col2
----
-766

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + + 46 * + COUNT ( * ) + + + 29 * - 28 AS col2
----
-766

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT + COUNT( DISTINCT + 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + COUNT ( DISTINCT + 28 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT DISTINCT + 43 * - 7 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + 43 * - 7 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5906
SELECT + - COUNT( * ) * - + 6 DIV NULLIF ( - + ( 87 ), COUNT( * ) + + 95 DIV 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5906
SELECT + - COUNT ( * ) * - + 6 / NULLIF ( - + ( 87 ), COUNT ( * ) + + 95 / 47 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 48 + + + 49
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL 66 + + - CAST( NULL AS SIGNED ) * + - 87 * 86 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL 66 + + - CAST ( NULL AS INTEGER ) * + - 87 * 86 * + 78
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT ALL + 61 DIV 84 + 24
----
24

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + 61 / 84 + 24
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-5910
SELECT + + 55 DIV 35 AS col0, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-5910
SELECT + + 55 / 35 AS col0, 33
----
1
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5911
SELECT + ( - + CASE + COUNT( * ) WHEN - - 12 THEN 75 WHEN CASE + CAST( NULL AS SIGNED ) WHEN 97 + 83 THEN NULL WHEN - COUNT( ALL - 83 ) * CASE 12 WHEN CASE - COALESCE ( 93, 31 * 90, - 32 ) WHEN - 83 * 61 THEN - COUNT( * ) + 30 WHEN - SUM( ALL 58 ) THEN - 97 END THEN NULL WHEN 56 THEN - 32 * + 45 END THEN COUNT( * ) ELSE NULL END * 61 THEN NULL WHEN - 12 THEN NULL ELSE NULL END ) + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT + ( - + CASE + COUNT ( * ) WHEN - - 12 THEN 75 WHEN CASE + CAST ( NULL AS INTEGER ) WHEN 97 + 83 THEN NULL WHEN - COUNT ( ALL - 83 ) * CASE 12 WHEN CASE - COALESCE ( 93, 31 * 90, - 32 ) WHEN - 83 * 61 THEN - COUNT ( * ) + 30 WHEN - SUM ( ALL 58 ) THEN - 97 END THEN NULL WHEN 56 THEN - 32 * + 45 END THEN COUNT ( * ) ELSE NULL END * 61 THEN NULL WHEN - 12 THEN NULL ELSE NULL END ) + - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT - - NULLIF ( 92, + - COUNT( * ) + - 71 * + 51 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5912
SELECT - - NULLIF ( 92, + - COUNT ( * ) + - 71 * + 51 ) AS col1
----
92

query I rowsort
SELECT DISTINCT - 35 * - 66
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT + 80 + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT + 80 + + COUNT ( * )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT + 40 * + - CASE - + CAST( + 91 AS SIGNED ) WHEN - 10 + CASE 18 + + 34 WHEN ( + ( 54 ) ) THEN 16 + 67 * - 90 WHEN 18 + - 15 THEN 94 END THEN - 43 * 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 40 * + - CASE - + CAST ( + 91 AS INTEGER ) WHEN - 10 + CASE 18 + + 34 WHEN ( + ( 54 ) ) THEN 16 + 67 * - 90 WHEN 18 + - 15 THEN 94 END THEN - 43 * 54 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 17 * NULLIF ( + ( ( - 72 ) ), - AVG ( 51 ) )
----
1224

query I rowsort
SELECT ALL + 62 + - 70 col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5918
SELECT - 93 - + COALESCE ( + 67, + - COALESCE ( - - CAST( NULL AS SIGNED ), - 84, 60 + + 61 DIV 94 ) * 83 + + 9 * + 86 ) - + SUM( ALL - 42 ) * COUNT( * )
----
-118

skipif mysql # not compatible
query I rowsort label-5918
SELECT - 93 - + COALESCE ( + 67, + - COALESCE ( - - CAST ( NULL AS INTEGER ), - 84, 60 + + 61 / 94 ) * 83 + + 9 * + 86 ) - + SUM ( ALL - 42 ) * COUNT ( * )
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT ALL COALESCE ( 27, 91 + 50 DIV + 82 + 18 * 1 )
----
27

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL COALESCE ( 27, 91 + 50 / + 82 + 18 * 1 )
----
27

query II rowsort
SELECT - 26 AS col0, + 54 * - 20 AS col0
----
-26
-1080

query II rowsort
SELECT ALL + 63 - + 66 + 50 AS col2, ( - 8 )
----
47
-8

query I rowsort
SELECT + CASE + + 65 WHEN + + ( 98 ) * + 90 + 98 + - 29 THEN 40 ELSE 35 END * - 96
----
-3360

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT DISTINCT 18 DIV + + 15 - - + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT 18 / + + 15 - - + 15 AS col0
----
16

query I rowsort
SELECT DISTINCT + COALESCE ( - + ( - + 57 ), - + ( 25 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL + MAX( ALL - - 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + MAX ( ALL - - 69 ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5926
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 76 AS col0
----
NULL

query I rowsort
SELECT - 3 * + 35
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT + SUM( DISTINCT + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT + SUM ( DISTINCT + 50 ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT DISTINCT - 10 DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT - 10 / + + 84
----
0

query I rowsort
SELECT - + 46 * - - 81 * 54 AS col1
----
-201204

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT - 51 * - + ( - COUNT( * ) ) - 68
----
-119

skipif mysql # not compatible
query I rowsort label-5931
SELECT - 51 * - + ( - COUNT ( * ) ) - 68
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - - 77 + + COUNT( * ) * - 71 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5932
SELECT - - 77 + + COUNT ( * ) * - 71 AS col2
----
6

query I rowsort
SELECT ALL - + 73 * + 98 col1
----
-7154

query I rowsort
SELECT ALL + - 10 * + 25
----
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT - - 56 * + 65 + - - CAST( NULL AS SIGNED ) * + - CAST( 59 AS SIGNED ) * 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT - - 56 * + 65 + - - CAST ( NULL AS INTEGER ) * + - CAST ( 59 AS INTEGER ) * 48 AS col1
----
NULL

query I rowsort
SELECT + CASE WHEN NOT ( 38 ) NOT BETWEEN ( - 88 ) AND ( - 83 / 94 ) THEN + 98 ELSE 71 END
----
71

query I rowsort
SELECT ( + + 66 )
----
66

query I rowsort
SELECT ALL + + CASE + 18 WHEN 71 THEN 34 * 62 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT ALL + - CASE 77 WHEN - + 18 THEN NULL WHEN 76 THEN + 47 * + NULLIF ( NULLIF ( 48, - 92 * - CAST( + 79 AS SIGNED ) ) + + 74, COUNT( * ) ) WHEN 34 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + - CASE 77 WHEN - + 18 THEN NULL WHEN 76 THEN + 47 * + NULLIF ( NULLIF ( 48, - 92 * - CAST ( + 79 AS INTEGER ) ) + + 74, COUNT ( * ) ) WHEN 34 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL COUNT( * ) * + 46 + + + NULLIF ( + - COUNT( * ), + 65 ) * 9
----
37

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL COUNT ( * ) * + 46 + + + NULLIF ( + - COUNT ( * ), + 65 ) * 9
----
37

query I rowsort
SELECT - 40 + - - 49
----
9

query I rowsort
SELECT ALL + + 14 AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT DISTINCT - COUNT( * ) * + CASE - - 54 WHEN - - 56 THEN - CAST( NULL AS SIGNED ) + NULLIF ( - 65, CAST( - 48 AS SIGNED ) / + 19 ) / - 5 WHEN - SUM( 29 ) * 62 + 14 THEN NULL END + + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - COUNT ( * ) * + CASE - - 54 WHEN - - 56 THEN - CAST ( NULL AS INTEGER ) + NULLIF ( - 65, CAST ( - 48 AS INTEGER ) / + 19 ) / - 5 WHEN - SUM ( 29 ) * 62 + 14 THEN NULL END + + 78 AS col2
----
NULL

query I rowsort
SELECT ALL + 98 * 81 + - 25 AS col0
----
7913

query I rowsort
SELECT - - 41 * - 76 + + 58 + - ( - 37 ) * + 18
----
-2392

query I rowsort
SELECT - + 1 + 49 AS col0
----
48

query II rowsort
SELECT ALL - 31 * + 32 + + 21, 35 col2
----
-971
35

query I rowsort
SELECT - - 26 + + 89
----
115

query I rowsort
SELECT + - 20 - 16
----
-36

query II rowsort
SELECT + 71 AS col0, + 94
----
71
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL - ( 13 ) + ( - - SUM( - 39 ) ) * - 41
----
1586

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL - ( 13 ) + ( - - SUM ( - 39 ) ) * - 41
----
1586

query II rowsort
SELECT ALL 32 AS col0, + 49 col0
----
32
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT + 17 + + + CAST( NULL AS SIGNED ) + + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT + 17 + + + CAST ( NULL AS INTEGER ) + + 55 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5954
SELECT ALL 23 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL 23 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5955
SELECT ALL COUNT( * ) AS col1, 71 DIV 72 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-5955
SELECT ALL COUNT ( * ) AS col1, 71 / 72 AS col2
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5956
SELECT - CAST( NULL AS SIGNED ) AS col2, 97 * - 84 * + - 96 + - - 65 AS col1
----
NULL
782273

skipif mysql # not compatible
query II rowsort label-5956
SELECT - CAST ( NULL AS INTEGER ) AS col2, 97 * - 84 * + - 96 + - - 65 AS col1
----
NULL
782273

query I rowsort
SELECT DISTINCT 40 - 82 AS col2
----
-42

query II rowsort
SELECT 84 AS col0, 51 * + + 58
----
84
2958

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5959
SELECT + 69 + + 70, 36 - - 12 DIV - + 34 * + COUNT( DISTINCT + 49 ) * 93 AS col0
----
139
36

skipif mysql # not compatible
query II rowsort label-5959
SELECT + 69 + + 70, 36 - - 12 / - + 34 * + COUNT ( DISTINCT + 49 ) * 93 AS col0
----
139
36

query I rowsort
SELECT ALL 75 - - - NULLIF ( 64, + + 19 + 64 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + 81 * + + ( + 74 ) * + COUNT( * ) col2
----
5994

skipif mysql # not compatible
query I rowsort label-5961
SELECT + 81 * + + ( + 74 ) * + COUNT ( * ) col2
----
5994

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + 87 * + MAX( ALL - 16 )
----
-1392

skipif mysql # not compatible
query I rowsort label-5962
SELECT + 87 * + MAX ( ALL - 16 )
----
-1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT + 98 + + COUNT( * ) / - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5963
SELECT + 98 + + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT + MIN( - 7 ) * + + 52
----
-364

skipif mysql # not compatible
query I rowsort label-5964
SELECT + MIN ( - 7 ) * + + 52
----
-364

query I rowsort
SELECT ALL 62 * - 41
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL + 32 - + + 32 + + - 38 * ( - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 32 - + + 32 + + - 38 * ( - COUNT ( * ) )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT CAST( NULL AS SIGNED ) * - 72 * - 43 / + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT CAST ( NULL AS INTEGER ) * - 72 * - 43 / + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT - COUNT( * ) * 29 + + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5968
SELECT - COUNT ( * ) * 29 + + - COUNT ( * )
----
-30

query II rowsort
SELECT ALL - 94 AS col0, - 16 * - + 84
----
-94
1344

query II rowsort
SELECT DISTINCT - 68 AS col1, + 31
----
-68
31

query I rowsort
SELECT DISTINCT 20 * - 90
----
-1800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5972
SELECT 45 + - ( + 55 ) DIV + CAST( - - 83 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-5972
SELECT 45 + - ( + 55 ) / + CAST ( - - 83 AS INTEGER )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5973
SELECT COUNT( * ) * - CASE - + COALESCE ( - 3, + CAST( - - 8 AS SIGNED ) * 33 - + CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) THEN + 38 WHEN 97 THEN NULL END + ( 98 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT COUNT ( * ) * - CASE - + COALESCE ( - 3, + CAST ( - - 8 AS INTEGER ) * 33 - + CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) THEN + 38 WHEN 97 THEN NULL END + ( 98 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5974
SELECT COUNT( * ) AS col1, 6 AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-5974
SELECT COUNT ( * ) AS col1, 6 AS col1
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL + 46 + + + 80 + - ( + COUNT( * ) ) * - MIN( ALL 13 ) * - COUNT( * ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL + 46 + + + 80 + - ( + COUNT ( * ) ) * - MIN ( ALL 13 ) * - COUNT ( * ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT NULLIF ( + + ( 29 ), SUM( ALL - 91 ) * - + 2 )
----
29

skipif mysql # not compatible
query I rowsort label-5976
SELECT NULLIF ( + + ( 29 ), SUM ( ALL - 91 ) * - + 2 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL 85 + 69 * - 79 * + CASE + - 42 WHEN - 33 THEN NULL ELSE 78 END * COUNT( ALL + 80 ) AS col1
----
-425093

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL 85 + 69 * - 79 * + CASE + - 42 WHEN - 33 THEN NULL ELSE 78 END * COUNT ( ALL + 80 ) AS col1
----
-425093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5978
SELECT DISTINCT - - COUNT( * ) * 34, ( - 58 ) * SUM( - - ( - 52 ) ) * + ( CAST( NULL AS SIGNED ) * - COUNT( * ) ) + + 88 col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5978
SELECT DISTINCT - - COUNT ( * ) * 34, ( - 58 ) * SUM ( - - ( - 52 ) ) * + ( CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) + + 88 col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL + COUNT( DISTINCT + 61 ) + - 93 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL + COUNT ( DISTINCT + 61 ) + - 93 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL - + 78 + COUNT( * ) + 60 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - + 78 + COUNT ( * ) + 60 AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT CAST( NULL AS SIGNED ) * + - ( - - 15 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT CAST ( NULL AS INTEGER ) * + - ( - - 15 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT + 18 DIV + 67 + + - 30 + - - 82
----
52

skipif mysql # not compatible
query I rowsort label-5982
SELECT + 18 / + 67 + + - 30 + - - 82
----
52

query I rowsort
SELECT - 27 * + 80
----
-2160

onlyif mysql # aggregate syntax: 
query II rowsort label-5984
SELECT - COUNT( * ) AS col0, 23
----
-1
23

skipif mysql # not compatible
query II rowsort label-5984
SELECT - COUNT ( * ) AS col0, 23
----
-1
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT DISTINCT - CAST( - - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT - CAST ( - - 89 AS INTEGER )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT - 54 DIV + + 4 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5986
SELECT - 54 / + + 4 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT 85 + + COUNT( * ) + - + 11 + + - 85 + + 49 * - - ( + 68 ) * - COUNT( * ) AS col1
----
-3342

skipif mysql # not compatible
query I rowsort label-5987
SELECT 85 + + COUNT ( * ) + - + 11 + + - 85 + + 49 * - - ( + 68 ) * - COUNT ( * ) AS col1
----
-3342

query I rowsort
SELECT ALL - 63 - - 45 * - 58 + - 20
----
-2693

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT 69 - ( - 86 ) * - ( + + MAX( DISTINCT - 85 ) )
----
7379

skipif mysql # not compatible
query I rowsort label-5989
SELECT 69 - ( - 86 ) * - ( + + MAX ( DISTINCT - 85 ) )
----
7379

query I rowsort
SELECT 79 - - + 63 * 62 AS col1
----
3985

onlyif mysql # DIV for integer division: 
query II rowsort label-5991
SELECT 14 * + 93, 40 DIV - ( + 94 ) AS col2
----
1302
0

skipif mysql # not compatible
query II rowsort label-5991
SELECT 14 * + 93, 40 / - ( + 94 ) AS col2
----
1302
0

query I rowsort
SELECT ALL 21 * - 21 AS col0
----
-441

query II rowsort
SELECT 4 * + 73 AS col1, CASE WHEN ( NOT NULL IS NULL ) THEN + 50 ELSE NULL END
----
292
NULL

query II rowsort
SELECT ALL - 27 * 56 AS col2, 94 AS col0
----
-1512
94

query I rowsort
SELECT NULLIF ( 16, - + 66 ) - + 90 AS col0
----
-74

query I rowsort
SELECT DISTINCT 68 * + 37 * - + 93
----
-233988

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT COUNT( * ) - COUNT( 21 )
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT COUNT ( * ) - COUNT ( 21 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL 85 * SUM( + + 63 )
----
5355

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL 85 * SUM ( + + 63 )
----
5355

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT 94 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT 94 / + 53
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT COUNT( * ) * - 43 AS col2, 4
----
-43
4

skipif mysql # not compatible
query II rowsort label-6000
SELECT COUNT ( * ) * - 43 AS col2, 4
----
-43
4

query I rowsort
SELECT ALL 79 + - 33 - + 0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT MIN( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6002
SELECT MIN ( 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT COUNT( * ) DIV - 20 * - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT COUNT ( * ) / - 20 * - 42 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6004
SELECT DISTINCT 74 + - 44 * + + MAX( + + 11 ) * + CAST( - - COUNT( * ) AS SIGNED )
----
-410

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT 74 + - 44 * + + MAX ( + + 11 ) * + CAST ( - - COUNT ( * ) AS INTEGER )
----
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-6005
SELECT ( + - 86 ) * + 31 AS col2, + COUNT( * ) + + 32 * - 99 AS col1
----
-2666
-3167

skipif mysql # not compatible
query II rowsort label-6005
SELECT ( + - 86 ) * + 31 AS col2, + COUNT ( * ) + + 32 * - 99 AS col1
----
-2666
-3167

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT - + 33 DIV + + 89 + + + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6006
SELECT - + 33 / + + 89 + + + 19 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6007
SELECT ALL CAST( NULL AS SIGNED ) * + 34 AS col2, - 76 col0
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-6007
SELECT ALL CAST ( NULL AS INTEGER ) * + 34 AS col2, - 76 col0
----
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT 36 + + + 76 * 96 + - 58 * - NULLIF ( 57, - 50 / 66 + MIN( DISTINCT - 47 + 80 ) )
----
10638

skipif mysql # not compatible
query I rowsort label-6008
SELECT 36 + + + 76 * 96 + - 58 * - NULLIF ( 57, - 50 / 66 + MIN ( DISTINCT - 47 + 80 ) )
----
10638

query I rowsort
SELECT - 58 * - + 8 + - 99 AS col1
----
365

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + - COALESCE ( - 77, + 15, - 41 ) * + + 1 * - - 69 + CASE - COALESCE ( + 36, NULLIF ( 13, - 99 ) + 48 ) WHEN - 82 THEN 59 + COUNT( * ) / - 61 END * + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT + - COALESCE ( - 77, + 15, - 41 ) * + + 1 * - - 69 + CASE - COALESCE ( + 36, NULLIF ( 13, - 99 ) + 48 ) WHEN - 82 THEN 59 + COUNT ( * ) / - 61 END * + 13 col1
----
NULL

query II rowsort
SELECT DISTINCT - ( - 85 ) col1, 58 + - - 26 AS col1
----
85
84

query I rowsort
SELECT ALL - 98 - + NULLIF ( 4, + 88 ) * - + 92 + 97 AS col0
----
367

query I rowsort
SELECT + 52 + + NULLIF ( - - 7, 66 ) AS col2
----
59

query I rowsort
SELECT ( + + 56 ) * + 46 + ( + 35 )
----
2611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6015
SELECT NULLIF ( + 57, - - 28 ) * + 94 + COALESCE ( + 33, - COALESCE ( + + NULLIF ( + 7, + COUNT( + 35 ) ), + 36 DIV 88, - 12 + 48 ) ) + - 38 AS col0
----
5353

skipif mysql # not compatible
query I rowsort label-6015
SELECT NULLIF ( + 57, - - 28 ) * + 94 + COALESCE ( + 33, - COALESCE ( + + NULLIF ( + 7, + COUNT ( + 35 ) ), + 36 / 88, - 12 + 48 ) ) + - 38 AS col0
----
5353

query II rowsort
SELECT - 11, 3 AS col2
----
-11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL + 4 * 29 * + COUNT( * ) * - + 69 * + - 11 AS col0
----
88044

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + 4 * 29 * + COUNT ( * ) * - + 69 * + - 11 AS col0
----
88044

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT 79 + COUNT( * ) * - - 47 + 6 - 62 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6018
SELECT 79 + COUNT ( * ) * - - 47 + 6 - 62 AS col0
----
70

query I rowsort
SELECT - 25 * + 30 - - 47
----
-703

query I rowsort
SELECT 85 * + + 59
----
5015

query I rowsort
SELECT 88 + + 44 AS col1
----
132

query I rowsort
SELECT 24 + - 74 AS col1
----
-50

query I rowsort
SELECT DISTINCT 98 * 50
----
4900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT ALL CASE - AVG ( ALL + 84 ) WHEN 38 * - - MIN( + 44 ) / CAST( + 87 AS SIGNED ) + + CASE + ( ( COUNT( * ) ) ) WHEN ( + COUNT( * ) ) THEN 97 - - 53 WHEN COUNT( * ) / - 21 THEN 45 / 16 + + 31 END THEN NULL WHEN COUNT( * ) THEN 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL CASE - AVG ( ALL + 84 ) WHEN 38 * - - MIN ( + 44 ) / CAST ( + 87 AS INTEGER ) + + CASE + ( ( COUNT ( * ) ) ) WHEN ( + COUNT ( * ) ) THEN 97 - - 53 WHEN COUNT ( * ) / - 21 THEN 45 / 16 + + 31 END THEN NULL WHEN COUNT ( * ) THEN 29 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT MIN( DISTINCT 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT MIN ( DISTINCT 52 ) AS col2
----
52

query I rowsort
SELECT DISTINCT - 23 + - 18 AS col2
----
-41

query I rowsort
SELECT ALL - ( + + 1 ) + ( - + 74 )
----
-75

query I rowsort
SELECT - 85 + - 96
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - MIN( DISTINCT 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6029
SELECT - MIN ( DISTINCT 64 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT - 61 + + 10 - 97 * - 15 + + COUNT( * ) - + 18 AS col0, NULLIF ( + 91, 47 * 48 ) AS col2
----
1387
91

skipif mysql # not compatible
query II rowsort label-6030
SELECT - 61 + + 10 - 97 * - 15 + + COUNT ( * ) - + 18 AS col0, NULLIF ( + 91, 47 * 48 ) AS col2
----
1387
91

query I rowsort
SELECT ALL COALESCE ( 64, - 7 ) * 83 - - ( + 7 ) col1
----
5319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6032
SELECT 41 AS col1, 83 * + - 41 * - NULLIF ( + ( - - COUNT( * ) ), + MAX( - - 9 ) + CAST( NULL AS SIGNED ) * - 65 ) * 37 AS col1
----
41
125911

skipif mysql # not compatible
query II rowsort label-6032
SELECT 41 AS col1, 83 * + - 41 * - NULLIF ( + ( - - COUNT ( * ) ), + MAX ( - - 9 ) + CAST ( NULL AS INTEGER ) * - 65 ) * 37 AS col1
----
41
125911

query I rowsort
SELECT ALL + 97 + 2
----
99

query I rowsort
SELECT - NULLIF ( + ( 22 ), + + 14 )
----
-22

query I rowsort
SELECT + 83 * 52 * - 11 + + 66 AS col1
----
-47410

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT - - COUNT( * ) * - 90 + - MAX( DISTINCT + 47 ) + + 52 + 13 - + - 61 + - 58 * 85
----
-4941

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT - - COUNT ( * ) * - 90 + - MAX ( DISTINCT + 47 ) + + 52 + 13 - + - 61 + - 58 * 85
----
-4941

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6037
SELECT + 95 DIV 39 + COUNT( * ) AS col1, 5 * - - 20 AS col1
----
3
100

skipif mysql # not compatible
query II rowsort label-6037
SELECT + 95 / 39 + COUNT ( * ) AS col1, 5 * - - 20 AS col1
----
3
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6038
SELECT ALL - - COUNT( * ) * 43 * 59 DIV COUNT( * ) + - 19 + + + MAX( + CASE + 45 WHEN + 22 THEN NULL ELSE 7 END )
----
2525

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - - COUNT ( * ) * 43 * 59 / COUNT ( * ) + - 19 + + + MAX ( + CASE + 45 WHEN + 22 THEN NULL ELSE 7 END )
----
2525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT - 46 * COUNT( ALL - + CASE + 22 WHEN + 20 THEN NULL ELSE ( + 33 ) END ) - + 6 DIV 51 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6039
SELECT - 46 * COUNT ( ALL - + CASE + 22 WHEN + 20 THEN NULL ELSE ( + 33 ) END ) - + 6 / 51 AS col0
----
-46

query I rowsort
SELECT + + ( + 8 ) AS col0
----
8

query I rowsort
SELECT + ( - 99 ) + 8 + ( + - 58 ) AS col2
----
-149

query II rowsort
SELECT + + 59 col2, + 16 AS col1
----
59
16

query I rowsort
SELECT DISTINCT + + 99 AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6044
SELECT - 5 AS col0, + 21 + 28 * - 25 * 88 + + ( 25 ) / + - CASE - COUNT( * ) WHEN + 54 THEN NULL WHEN - 93 THEN CASE + 90 WHEN + 15 THEN - 70 WHEN + ( 64 ) THEN + 56 END + COUNT( ALL - 21 ) WHEN + 4 - 54 * + 55 THEN NULL WHEN - COUNT( * ) THEN NULL END
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-6044
SELECT - 5 AS col0, + 21 + 28 * - 25 * 88 + + ( 25 ) / + - CASE - COUNT ( * ) WHEN + 54 THEN NULL WHEN - 93 THEN CASE + 90 WHEN + 15 THEN - 70 WHEN + ( 64 ) THEN + 56 END + COUNT ( ALL - 21 ) WHEN + 4 - 54 * + 55 THEN NULL WHEN - COUNT ( * ) THEN NULL END
----
-5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT NULLIF ( 41, + MIN( ALL + COALESCE ( - COALESCE ( + 65, - 89 ), 11 ) ) ) * 18 + 86 AS col2
----
824

skipif mysql # not compatible
query I rowsort label-6045
SELECT NULLIF ( 41, + MIN ( ALL + COALESCE ( - COALESCE ( + 65, - 89 ), 11 ) ) ) * 18 + 86 AS col2
----
824

query I rowsort
SELECT ALL 99 * - 7 - 82 + 91 col1
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT + - COUNT( DISTINCT - 71 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6047
SELECT + - COUNT ( DISTINCT - 71 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT + + 22 DIV - 69 + 53 + 93 + 64 * - 99
----
-6190

skipif mysql # not compatible
query I rowsort label-6048
SELECT + + 22 / - 69 + 53 + 93 + 64 * - 99
----
-6190

query I rowsort
SELECT ALL - 53 * - 58 AS col1
----
3074

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT ALL COUNT( * ) * 32 * - COUNT( * ) - + 65 + + ( - 29 ), + COUNT( * ) AS col1
----
-126
1

skipif mysql # not compatible
query II rowsort label-6050
SELECT ALL COUNT ( * ) * 32 * - COUNT ( * ) - + 65 + + ( - 29 ), + COUNT ( * ) AS col1
----
-126
1

query II rowsort
SELECT - 11, + 10 col1
----
-11
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6052
SELECT + 39 AS col1, + CASE 46 WHEN + COUNT( * ) THEN 51 WHEN + - CASE 9 WHEN - + 13 THEN - 38 END THEN - CAST( - COALESCE ( 78, + COUNT( ALL - 55 ) ) AS SIGNED ) ELSE NULL END * NULLIF ( 14 * - 77 + + 71, + 74 )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-6052
SELECT + 39 AS col1, + CASE 46 WHEN + COUNT ( * ) THEN 51 WHEN + - CASE 9 WHEN - + 13 THEN - 38 END THEN - CAST ( - COALESCE ( 78, + COUNT ( ALL - 55 ) ) AS INTEGER ) ELSE NULL END * NULLIF ( 14 * - 77 + + 71, + 74 )
----
39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT - CAST( + + 30 AS SIGNED ) * 9 AS col0
----
-270

skipif mysql # not compatible
query I rowsort label-6053
SELECT - CAST ( + + 30 AS INTEGER ) * 9 AS col0
----
-270

query I rowsort
SELECT + COALESCE ( 31, - 4 )
----
31

query I rowsort
SELECT + ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT SUM( ALL 38 ) AS col0, COUNT( DISTINCT + 63 ) col2
----
38
1

skipif mysql # not compatible
query II rowsort label-6056
SELECT SUM ( ALL 38 ) AS col0, COUNT ( DISTINCT + 63 ) col2
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT ALL + MIN( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL + MIN ( - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6058
SELECT + ( 88 ) * - AVG ( CAST( NULL AS SIGNED ) ), CASE 18 WHEN + + COUNT( * ) THEN 86 END + 72 - 48 * - 19 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6058
SELECT + ( 88 ) * - AVG ( CAST ( NULL AS INTEGER ) ), CASE 18 WHEN + + COUNT ( * ) THEN 86 END + 72 - 48 * - 19 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT MAX( 63 ) AS col2, 26
----
63
26

skipif mysql # not compatible
query II rowsort label-6059
SELECT MAX ( 63 ) AS col2, 26
----
63
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT DISTINCT + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + 87 * - - NULLIF ( 48, + - AVG ( - 16 ) * 92 - 17 * + 42 + 9 ) * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + 87 * - - NULLIF ( 48, + - AVG ( - 16 ) * 92 - 17 * + 42 + 9 ) * + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + 68 - 26 AS col2
----
42

query I rowsort
SELECT + 44 + + 50 AS col0
----
94

query I rowsort
SELECT - 67 + + 52
----
-15

query I rowsort
SELECT ALL ( + 4 ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT DISTINCT COUNT( * ) + - + 93
----
-92

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT COUNT ( * ) + - + 93
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL CAST( 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL CAST ( 58 AS INTEGER )
----
58

query I rowsort
SELECT DISTINCT + + 1 + - + 59 * + 82 AS col0
----
-4837

query I rowsort
SELECT ALL + 84 col2
----
84

query I rowsort
SELECT - + 92 * - + 42 * 69 * + 45 AS col1
----
11997720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6070
SELECT ALL - COALESCE ( 20, 2 DIV + ( - 0 ) DIV - + ( + 3 ) + - 85 + + + 35, - 36 * + 42 + - 23 * 45, 44 * + ( + CASE 1 WHEN + CAST( + 99 AS SIGNED ) THEN NULL ELSE + ( + 32 ) * 74 END ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - COALESCE ( 20, 2 / + ( - 0 ) / - + ( + 3 ) + - 85 + + + 35, - 36 * + 42 + - 23 * 45, 44 * + ( + CASE 1 WHEN + CAST ( + 99 AS INTEGER ) THEN NULL ELSE + ( + 32 ) * 74 END ) ) AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6071
SELECT CASE + 29 WHEN + 54 + ( + 19 ) * - 60 * 97 + CAST( NULL AS SIGNED ) THEN 12 WHEN 58 THEN - 41 - 72 * 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT CASE + 29 WHEN + 54 + ( + 19 ) * - 60 * 97 + CAST ( NULL AS INTEGER ) THEN 12 WHEN 58 THEN - 41 - 72 * 85 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT DISTINCT + 3 DIV + - 45 - - ( - NULLIF ( 26, + + 97 + + 62 + - 93 ) ) DIV - - 64 * - 9 + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT + 3 / + - 45 - - ( - NULLIF ( 26, + + 97 + + 62 + - 93 ) ) / - - 64 * - 9 + - 14
----
-14

query II rowsort
SELECT + ( - 57 ) AS col0, - 60 * + 30
----
-57
-1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6074
SELECT ALL 59 DIV + + COUNT( * ) - + 54 + - 99, + COUNT( * ) AS col0
----
-94
1

skipif mysql # not compatible
query II rowsort label-6074
SELECT ALL 59 / + + COUNT ( * ) - + 54 + - 99, + COUNT ( * ) AS col0
----
-94
1

query I rowsort
SELECT ALL + + 15 col0
----
15

query I rowsort
SELECT DISTINCT 19 * 75 * - + 85 AS col2
----
-121125

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT + + MIN( - - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + + MIN ( - - 91 )
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6078
SELECT + CASE - 9 WHEN - 69 * - 35 THEN - + 49 WHEN - - 0 + - 8 THEN NULL END * - CAST( 5 AS DECIMAL ) * 77 + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6078
SELECT + CASE - 9 WHEN - 69 * - 35 THEN - + 49 WHEN - - 0 + - 8 THEN NULL END * - CAST ( 5 AS REAL ) * 77 + + 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT - + ( - COUNT( * ) ) + - 58 + COUNT( * ) * - ( ( 28 ) ) DIV 1 * + 24 DIV COUNT( * ) + COALESCE ( - ( 72 ), - 34, CASE - COUNT( * ) WHEN 91 * 61 THEN + ( + COALESCE ( + 81, 46 * 4 ) ) ELSE NULL END ) * - 29
----
1359

skipif mysql # not compatible
query I rowsort label-6079
SELECT - + ( - COUNT ( * ) ) + - 58 + COUNT ( * ) * - ( ( 28 ) ) / 1 * + 24 / COUNT ( * ) + COALESCE ( - ( 72 ), - 34, CASE - COUNT ( * ) WHEN 91 * 61 THEN + ( + COALESCE ( + 81, 46 * 4 ) ) ELSE NULL END ) * - 29
----
1359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT ALL + CAST( - NULLIF ( - MIN( ALL + + 24 ), 24 ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL + CAST ( - NULLIF ( - MIN ( ALL + + 24 ), 24 ) AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT 66 * + COUNT( * ) * 80 * - 52 + 60 + 77 * 0 * + + 32
----
-274500

skipif mysql # not compatible
query I rowsort label-6081
SELECT 66 * + COUNT ( * ) * 80 * - 52 + 60 + 77 * 0 * + + 32
----
-274500

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT ALL 46 DIV + + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL 46 / + + 85 AS col1
----
0

query I rowsort
SELECT ALL + 41 + - 4 / + - 58 * + + CASE - 55 WHEN + 80 THEN NULL WHEN 68 THEN - 64 END
----
NULL

query I rowsort
SELECT DISTINCT - 36 col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT 14 + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6085
SELECT 14 + COUNT ( * ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT ALL 10 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL 10 / - 95
----
0

query I rowsort
SELECT ALL 62 + + 0
----
62

query II rowsort
SELECT - 32, + 2 AS col0
----
-32
2

query I rowsort
SELECT - 78 * 31 + + NULLIF ( - 49, - 22 )
----
-2467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT ALL CAST( - + AVG ( DISTINCT 36 ) AS SIGNED ) * 86
----
-3096

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL CAST ( - + AVG ( DISTINCT 36 ) AS INTEGER ) * 86
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT 55 * + COUNT( * ) * + + 14 AS col2
----
770

skipif mysql # not compatible
query I rowsort label-6091
SELECT 55 * + COUNT ( * ) * + + 14 AS col2
----
770

query II rowsort
SELECT ALL 40 AS col2, 26
----
40
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6093
SELECT DISTINCT MAX( DISTINCT 9 ) + 95 DIV + 36 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT MAX ( DISTINCT 9 ) + 95 / + 36 AS col0
----
11

query I rowsort
SELECT 58 + + - 30 * - 25
----
808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT ALL - COUNT( * ) DIV + 31 col2
----
0

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - COUNT ( * ) / + 31 col2
----
0

query I rowsort
SELECT + 28 + - + 47 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ( 25 ) + - NULLIF ( + NULLIF ( + - 29, - 67 * + - 70 * - 31 * + COUNT( * ) ), - 81 * 52 + 9 * NULLIF ( 26 * + 32, + COUNT( * ) ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6097
SELECT ( 25 ) + - NULLIF ( + NULLIF ( + - 29, - 67 * + - 70 * - 31 * + COUNT ( * ) ), - 81 * 52 + 9 * NULLIF ( 26 * + 32, + COUNT ( * ) ) ) AS col0
----
54

query I rowsort
SELECT - ( + 63 ) - 52
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT + - COUNT( * ) - - + COALESCE ( COUNT( * ), - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT + - COUNT ( * ) - - + COALESCE ( COUNT ( * ), - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL - MIN( 19 ) * ( + - 67 ) * - 0 * 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - MIN ( 19 ) * ( + - 67 ) * - 0 * 92 col0
----
0

query I rowsort
SELECT - 55 + - - 60
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL COUNT( ALL 70 )
----
1

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL COUNT ( ALL 70 )
----
1

query II rowsort
SELECT - 67, - 90 AS col1
----
-67
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT DISTINCT + COUNT( * ) * + - 0 * 31 * COUNT( * ) * 6 AS col2, 64 + - 79 + - - 97 + 89 + 9 + 42 * COUNT( * )
----
0
222

skipif mysql # not compatible
query II rowsort label-6104
SELECT DISTINCT + COUNT ( * ) * + - 0 * 31 * COUNT ( * ) * 6 AS col2, 64 + - 79 + - - 97 + 89 + 9 + 42 * COUNT ( * )
----
0
222

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT 80 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT 80 / - 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT - 36 DIV - + 44 + - 29 + - 8 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6106
SELECT - 36 / - + 44 + - 29 + - 8 AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT DISTINCT - + COUNT( * ) DIV + ( + - COUNT( * ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - + COUNT ( * ) / + ( + - COUNT ( * ) ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT COUNT( * ) + + + 93 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6108
SELECT COUNT ( * ) + + + 93 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL - + MIN( DISTINCT 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - + MIN ( DISTINCT 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT - COUNT( * ) + + 39 + 80
----
118

skipif mysql # not compatible
query I rowsort label-6110
SELECT - COUNT ( * ) + + 39 + 80
----
118

query I rowsort
SELECT 50 * 75 * - 61 + + 69 AS col2
----
-228681

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT + + 37 AS col1, 12 * COALESCE ( + + 70, - 13, + + 87 * ( 69 ) * + 68 * - - 3 ) * 27 + COUNT( * )
----
37
22681

skipif mysql # not compatible
query II rowsort label-6112
SELECT + + 37 AS col1, 12 * COALESCE ( + + 70, - 13, + + 87 * ( 69 ) * + 68 * - - 3 ) * 27 + COUNT ( * )
----
37
22681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6113
SELECT - - COUNT( DISTINCT + 20 ) * MAX( - - 28 ) DIV 98 - - 25 + + + 63 * COALESCE ( + - 40, + - 51 ) + + 26 DIV 94 + CASE - 98 WHEN - 61 THEN NULL ELSE + 68 END
----
-2427

skipif mysql # not compatible
query I rowsort label-6113
SELECT - - COUNT ( DISTINCT + 20 ) * MAX ( - - 28 ) / 98 - - 25 + + + 63 * COALESCE ( + - 40, + - 51 ) + + 26 / 94 + CASE - 98 WHEN - 61 THEN NULL ELSE + 68 END
----
-2427

query I rowsort
SELECT + ( 91 ) col1
----
91

query I rowsort
SELECT ALL - NULLIF ( + 48, + 88 )
----
-48

query I rowsort
SELECT 29 * - 13
----
-377

query I rowsort
SELECT ALL - 73 + - 29 AS col2
----
-102

query I rowsort
SELECT DISTINCT 57 + 95 + + 26 AS col1
----
178

query I rowsort
SELECT DISTINCT + 28 + + + 44
----
72

query II rowsort
SELECT 19, - 21 AS col2
----
19
-21

query I rowsort
SELECT DISTINCT ( + 37 ) + 48 AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6122
SELECT 43 AS col1, COUNT( * ) * - 27 AS col2
----
43
-27

skipif mysql # not compatible
query II rowsort label-6122
SELECT 43 AS col1, COUNT ( * ) * - 27 AS col2
----
43
-27

query I rowsort
SELECT ALL + 10 + 9
----
19

query I rowsort
SELECT ALL 9 + - 62 AS col0
----
-53

query I rowsort
SELECT 39 * 17
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ( 15 ) * + COALESCE ( - COUNT( * ), 96 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6126
SELECT ( 15 ) * + COALESCE ( - COUNT ( * ), 96 ) AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT ALL 3 * + 16 DIV + 94 * - - 28
----
0

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL 3 * + 16 / + 94 * - - 28
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6128
SELECT 29 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT 29 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6129
SELECT COUNT( - + CAST( NULL AS DECIMAL ) ) * - 91 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-6129
SELECT COUNT ( - + CAST ( NULL AS REAL ) ) * - 91 + - 0
----
0

query I rowsort
SELECT ALL 49 * - 41
----
-2009

query I rowsort
SELECT 38 + + + 21 AS col1
----
59

query I rowsort
SELECT 74 * + - 76 AS col0
----
-5624

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT COUNT( * ) + - 24 - 45
----
-68

skipif mysql # not compatible
query I rowsort label-6133
SELECT COUNT ( * ) + - 24 - 45
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT 70 - - SUM( DISTINCT - - 14 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6134
SELECT 70 - - SUM ( DISTINCT - - 14 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6135
SELECT DISTINCT 78, + ( - SUM( DISTINCT + 93 ) ) AS col2
----
78
-93

skipif mysql # not compatible
query II rowsort label-6135
SELECT DISTINCT 78, + ( - SUM ( DISTINCT + 93 ) ) AS col2
----
78
-93

query II rowsort
SELECT - 53 * 90 AS col0, - 68
----
-4770
-68

query II rowsort
SELECT ALL 45 AS col2, ( 1 ) * ( + + 32 ) * - 18
----
45
-576

query II rowsort
SELECT ALL - 5 AS col1, 70 AS col1
----
-5
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL COUNT( ( - + 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL COUNT ( ( - + 83 ) )
----
1

query II rowsort
SELECT DISTINCT + 52, 21 + 61 + - 89 AS col1
----
52
-7

query I rowsort
SELECT ALL - 65 * + 28 * + 45 AS col0
----
-81900

onlyif mysql # aggregate syntax: 
query II rowsort label-6142
SELECT + 96, COUNT( * ) * COUNT( - - 95 ) * + - 11 AS col1
----
96
-11

skipif mysql # not compatible
query II rowsort label-6142
SELECT + 96, COUNT ( * ) * COUNT ( - - 95 ) * + - 11 AS col1
----
96
-11

query I rowsort
SELECT 59 - - 80 AS col1
----
139

query I rowsort
SELECT DISTINCT - 46 col2
----
-46

query I rowsort
SELECT + 55 * - 83 AS col1
----
-4565

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT - COALESCE ( + 44, + - 80 ) * COUNT( * ) + COUNT( * ) - - 56 * - 16
----
-939

skipif mysql # not compatible
query I rowsort label-6146
SELECT - COALESCE ( + 44, + - 80 ) * COUNT ( * ) + COUNT ( * ) - - 56 * - 16
----
-939

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT 58 * - 76 + - + 19 + - - MIN( DISTINCT - + 15 ) * + NULLIF ( - - 38, + 35 + + 54 * - 61 * 43 * 85 )
----
-4997

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT 58 * - 76 + - + 19 + - - MIN ( DISTINCT - + 15 ) * + NULLIF ( - - 38, + 35 + + 54 * - 61 * 43 * 85 )
----
-4997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6148
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) * + 54 * + - 97 + - 22 + + 22, - ( - ( + 69 ) ) DIV - NULLIF ( 90, 76 ) AS col1
----
5238
0

skipif mysql # not compatible
query II rowsort label-6148
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) * + 54 * + - 97 + - 22 + + 22, - ( - ( + 69 ) ) / - NULLIF ( 90, 76 ) AS col1
----
5238
0

query I rowsort
SELECT ALL - 50 * - + 35 + + 76
----
1826

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6150
SELECT ALL - NULLIF ( + 76, NULLIF ( + 60, - 92 ) ) * + MAX( DISTINCT - 47 ) * - 72 * + 18, 8 * - 64 DIV COUNT( * ) AS col2
----
-4629312
-512

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL - NULLIF ( + 76, NULLIF ( + 60, - 92 ) ) * + MAX ( DISTINCT - 47 ) * - 72 * + 18, 8 * - 64 / COUNT ( * ) AS col2
----
-4629312
-512

query I rowsort
SELECT ALL - ( 14 ) * - + 48
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT - 81 DIV + ( + - COUNT( * ) ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6152
SELECT - 81 / + ( + - COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6153
SELECT ALL + COUNT( * ) * + + COUNT( DISTINCT - - CASE 4 WHEN 3 THEN 12 - - 91 END ) + 22 + + - COUNT( * ) + 42, 15 AS col0
----
63
15

skipif mysql # not compatible
query II rowsort label-6153
SELECT ALL + COUNT ( * ) * + + COUNT ( DISTINCT - - CASE 4 WHEN 3 THEN 12 - - 91 END ) + 22 + + - COUNT ( * ) + 42, 15 AS col0
----
63
15

query I rowsort
SELECT + 8 * + 54 + 10 AS col0
----
442

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT COALESCE ( - - NULLIF ( - 25, - 42 ), - 41 DIV 95, + 95 ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-6155
SELECT COALESCE ( - - NULLIF ( - 25, - 42 ), - 41 / 95, + 95 ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT + 69 + + - 87 - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-6156
SELECT + 69 + + - 87 - COUNT ( * )
----
-19

query I rowsort
SELECT - 45 + 82 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT 15 * - 49 * + 49 * + 32 + CAST( 24 AS SIGNED ) AS col0
----
-1152456

skipif mysql # not compatible
query I rowsort label-6158
SELECT 15 * - 49 * + 49 * + 32 + CAST ( 24 AS INTEGER ) AS col0
----
-1152456

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT + COUNT( - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT + COUNT ( - 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT - 98 + 53 AS col1, CASE - 51 WHEN + MIN( 64 ) THEN NULL ELSE + 73 END + 0 AS col0
----
-45
73

skipif mysql # not compatible
query II rowsort label-6160
SELECT - 98 + 53 AS col1, CASE - 51 WHEN + MIN ( 64 ) THEN NULL ELSE + 73 END + 0 AS col0
----
-45
73

query I rowsort
SELECT ALL 58 * + + 45 - + ( - + NULLIF ( - 7, - 56 ) )
----
2603

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - 70 * - 65 + - + COUNT( * )
----
4549

skipif mysql # not compatible
query I rowsort label-6162
SELECT - 70 * - 65 + - + COUNT ( * )
----
4549

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6163
SELECT - 91 + ( + 31 ) + - - CAST( NULL AS SIGNED ) + - 2 * + - NULLIF ( + 89, - - 1 ) * + + 38 * 93 AS col0, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6163
SELECT - 91 + ( + 31 ) + - - CAST ( NULL AS INTEGER ) + - 2 * + - NULLIF ( + 89, - - 1 ) * + + 38 * 93 AS col0, 91
----
NULL
91

query I rowsort
SELECT DISTINCT - 34 * 14
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL + ( 70 ) - + + 64 - NULLIF ( NULLIF ( - 1, + 5 + - - 28 ), - - COALESCE ( - ( - MIN( - 52 ) ), + 11 * - 56 ) ) col0
----
7

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + ( 70 ) - + + 64 - NULLIF ( NULLIF ( - 1, + 5 + - - 28 ), - - COALESCE ( - ( - MIN ( - 52 ) ), + 11 * - 56 ) ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + MIN( - + 9 ) * - 78 + + + 60 * - SUM( - - 91 ) * - 86 AS col2
----
470262

skipif mysql # not compatible
query I rowsort label-6166
SELECT + MIN ( - + 9 ) * - 78 + + + 60 * - SUM ( - - 91 ) * - 86 AS col2
----
470262

query I rowsort
SELECT ALL ( - - 73 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT DISTINCT + + 10 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT + + 10 / 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT MAX( DISTINCT + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT MAX ( DISTINCT + 47 ) AS col0
----
47

query I rowsort
SELECT + 73 * + 12
----
876

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6171
SELECT ALL + 83 + + ( CASE 54 WHEN 31 THEN - - 11 WHEN - COUNT( * ) THEN + 67 WHEN - 99 THEN NULL END ) * - - AVG ( DISTINCT - CAST( + - 39 AS DECIMAL ) ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL + 83 + + ( CASE 54 WHEN 31 THEN - - 11 WHEN - COUNT ( * ) THEN + 67 WHEN - 99 THEN NULL END ) * - - AVG ( DISTINCT - CAST ( + - 39 AS REAL ) ) * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL - MIN( + 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - MIN ( + 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + 87 * - 67 * + 74 + + + COUNT( * ) AS col1
----
-431345

skipif mysql # not compatible
query I rowsort label-6173
SELECT + 87 * - 67 * + 74 + + + COUNT ( * ) AS col1
----
-431345

query II rowsort
SELECT - 26 + 71, - 65 * + 41 AS col0
----
45
-2665

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - 31 - + SUM( - 99 )
----
68

skipif mysql # not compatible
query I rowsort label-6175
SELECT - 31 - + SUM ( - 99 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - COUNT( * ) * + NULLIF ( - 8, + 99 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( - 8, + 99 ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6177
SELECT + + CAST( - COUNT( + 36 ) AS DECIMAL ) + ( - - ( + + 34 ) ) * + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - CASE - 34 WHEN - 54 * - - 33 THEN 90 WHEN + 75 + + 77 THEN 43 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT + + CAST ( - COUNT ( + 36 ) AS REAL ) + ( - - ( + + 34 ) ) * + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - CASE - 34 WHEN - 54 * - - 33 THEN 90 WHEN + 75 + + 77 THEN 43 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - ( + ( + + 23 ) ) AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT ALL + CAST( - 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + CAST ( - 40 AS INTEGER ) AS col2
----
-40

query I rowsort
SELECT DISTINCT 54 + - 76 AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT CAST( + - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-6181
SELECT CAST ( + - 89 AS INTEGER )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT CAST( 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6182
SELECT CAST ( 27 AS INTEGER ) AS col2
----
27

query I rowsort
SELECT + 69 * 91
----
6279

query I rowsort
SELECT - 75 + - 55 * COALESCE ( - 40, - 78, - 86 )
----
2125

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT + ( + - COALESCE ( - + 65, 94 * + - COUNT( * ), - 67 ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6185
SELECT + ( + - COALESCE ( - + 65, 94 * + - COUNT ( * ), - 67 ) ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT 10 * - ( 43 ) + + 52 + - 42 * - - 6 * + 51 * MIN( 69 ) AS col1
----
-887166

skipif mysql # not compatible
query I rowsort label-6186
SELECT 10 * - ( 43 ) + + 52 + - 42 * - - 6 * + 51 * MIN ( 69 ) AS col1
----
-887166

query I rowsort
SELECT ( - + 14 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT ALL - 66 DIV - 34 - - 3 - - COUNT( ALL ( - + 44 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - 66 / - 34 - - 3 - - COUNT ( ALL ( - + 44 ) ) AS col0
----
5

query II rowsort
SELECT + 39 * + - 95 * 1 * - + 95, - 99 AS col0
----
351975
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT NULLIF ( + - CASE - - 5 WHEN + - 11 THEN NULL WHEN + 70 THEN NULL WHEN - COUNT( * ) THEN - + ( - 48 ) ELSE - - 79 * 79 * + + 43 END, - 65 * + 72 / 11 ) * + 47
----
-12613061

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT NULLIF ( + - CASE - - 5 WHEN + - 11 THEN NULL WHEN + 70 THEN NULL WHEN - COUNT ( * ) THEN - + ( - 48 ) ELSE - - 79 * 79 * + + 43 END, - 65 * + 72 / 11 ) * + 47
----
-12613061

query II rowsort
SELECT ALL + 3, + 9 AS col2
----
3
9

query I rowsort
SELECT ( - 33 ) col0
----
-33

query I rowsort
SELECT ALL ( - - 65 ) * + - 56 AS col1
----
-3640

query I rowsort
SELECT ALL + ( COALESCE ( 30, + 4 * + 1 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT ( - + CASE - NULLIF ( - COUNT( * ), - 37 + COUNT( * ) - + - NULLIF ( + 99, - - 6 ) ) WHEN + 34 THEN + COUNT( DISTINCT 65 ) WHEN - 93 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT ( - + CASE - NULLIF ( - COUNT ( * ), - 37 + COUNT ( * ) - + - NULLIF ( + 99, - - 6 ) ) WHEN + 34 THEN + COUNT ( DISTINCT 65 ) WHEN - 93 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ( ( + - MAX( DISTINCT + 6 ) ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6196
SELECT ( ( + - MAX ( DISTINCT + 6 ) ) ) AS col0
----
-6

query I rowsort
SELECT - 85 * - 29 AS col2
----
2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6198
SELECT - ( 93 ) * + - ( - ( - 29 ) ) DIV NULLIF ( + COUNT( * ), - + 64 * - COUNT( * ) * + 45 + - + 87 - + - 0 * + + 2 ) AS col1
----
2697

skipif mysql # not compatible
query I rowsort label-6198
SELECT - ( 93 ) * + - ( - ( - 29 ) ) / NULLIF ( + COUNT ( * ), - + 64 * - COUNT ( * ) * + 45 + - + 87 - + - 0 * + + 2 ) AS col1
----
2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6199
SELECT - 40 * - COUNT( * ) - + COUNT( * ) AS col1, 43 DIV COUNT( ALL - 98 ) AS col1
----
39
43

skipif mysql # not compatible
query II rowsort label-6199
SELECT - 40 * - COUNT ( * ) - + COUNT ( * ) AS col1, 43 / COUNT ( ALL - 98 ) AS col1
----
39
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT - ( - - 22 ) DIV + - 32 * + + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6200
SELECT - ( - - 22 ) / + - 32 * + + 90 AS col1
----
0

query I rowsort
SELECT - 49 * + 72
----
-3528

query I rowsort
SELECT NULLIF ( 32, + 1 * - 89 * 86 * - 76 + NULLIF ( - 17, - 50 + - 76 ) ) AS col1
----
32

query I rowsort
SELECT NULLIF ( 34, - 46 / + 98 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6204
SELECT - + COUNT( * ) - + CAST( NULL AS SIGNED ) - - 81 AS col1, 78 * + + 82 * + - 34
----
NULL
-217464

skipif mysql # not compatible
query II rowsort label-6204
SELECT - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - - 81 AS col1, 78 * + + 82 * + - 34
----
NULL
-217464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6205
SELECT ALL + CASE 95 WHEN + - CAST( NULL AS SIGNED ) * - 78 / 18 THEN - 64 * + + COALESCE ( + SUM( + - 28 ), + - 17 / MAX( DISTINCT + 46 ) * - 13 * + CASE + 98 WHEN + 16 THEN 15 END + COUNT( * ) * 56 + 46 + COUNT( * ) ) WHEN 45 + 55 * 16 THEN NULLIF ( - 61, - 10 ) / COALESCE ( - SUM( ALL 61 ), AVG ( - ( + 87 ) ) ) WHEN 40 * 0 THEN 13 + 36 ELSE NULL END * + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL + CASE 95 WHEN + - CAST ( NULL AS INTEGER ) * - 78 / 18 THEN - 64 * + + COALESCE ( + SUM ( + - 28 ), + - 17 / MAX ( DISTINCT + 46 ) * - 13 * + CASE + 98 WHEN + 16 THEN 15 END + COUNT ( * ) * 56 + 46 + COUNT ( * ) ) WHEN 45 + 55 * 16 THEN NULLIF ( - 61, - 10 ) / COALESCE ( - SUM ( ALL 61 ), AVG ( - ( + 87 ) ) ) WHEN 40 * 0 THEN 13 + 36 ELSE NULL END * + 47 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT DISTINCT + 87 * - 2 * 23 + - CAST( 65 AS SIGNED )
----
-4067

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT + 87 * - 2 * 23 + - CAST ( 65 AS INTEGER )
----
-4067

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT - ( + SUM( DISTINCT + 51 ) ) * 66 AS col0
----
-3366

skipif mysql # not compatible
query I rowsort label-6207
SELECT - ( + SUM ( DISTINCT + 51 ) ) * 66 AS col0
----
-3366

onlyif mysql # aggregate syntax: 
query II rowsort label-6208
SELECT + 8 AS col1, COUNT( * ) - 97 col2
----
8
-96

skipif mysql # not compatible
query II rowsort label-6208
SELECT + 8 AS col1, COUNT ( * ) - 97 col2
----
8
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT - - 9 AS col2, + COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-6209
SELECT - - 9 AS col2, + COUNT ( * )
----
9
1

query II rowsort
SELECT 52 AS col2, ( - + 91 ) AS col2
----
52
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6211
SELECT ALL - CASE - CAST( - 25 AS SIGNED ) WHEN - - COUNT( + + 24 ) THEN 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT ALL - CASE - CAST ( - 25 AS INTEGER ) WHEN - - COUNT ( + + 24 ) THEN 2 END
----
NULL

query I rowsort
SELECT - + ( - 80 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6213
SELECT - 42 AS col1, MIN( ALL - - ( + COALESCE ( + 79, - CAST( NULL AS SIGNED ) * + 47 * + 1 ) ) )
----
-42
79

skipif mysql # not compatible
query II rowsort label-6213
SELECT - 42 AS col1, MIN ( ALL - - ( + COALESCE ( + 79, - CAST ( NULL AS INTEGER ) * + 47 * + 1 ) ) )
----
-42
79

query I rowsort
SELECT ALL ( ( 11 ) )
----
11

query II rowsort
SELECT ALL 3 AS col1, 79
----
3
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - COUNT( * ) + + + 50 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - COUNT ( * ) + + + 50 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT - 74 DIV - SUM( DISTINCT + 15 ) + - 35 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6217
SELECT - 74 / - SUM ( DISTINCT + 15 ) + - 35 AS col1
----
-31

query I rowsort
SELECT ALL + + 41 + - 91
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT COUNT( * ) - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-6219
SELECT COUNT ( * ) - + 10
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6220
SELECT - COUNT( * ) * + 34 DIV NULLIF ( SUM( ALL 57 ), - 39 - - + 24 + - 45 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6220
SELECT - COUNT ( * ) * + 34 / NULLIF ( SUM ( ALL 57 ), - 39 - - + 24 + - 45 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT - + COUNT( * ), 19 AS col0
----
-1
19

skipif mysql # not compatible
query II rowsort label-6221
SELECT - + COUNT ( * ), 19 AS col0
----
-1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT ALL COALESCE ( + 42, + 56 ) * + 85 * + - COALESCE ( + + 27, 52, - COUNT( * ) * + 75 ) * - 51 * - 47 + + COALESCE ( - CAST( NULL AS SIGNED ), 27 * CAST( NULL AS SIGNED ) ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL COALESCE ( + 42, + 56 ) * + 85 * + - COALESCE ( + + 27, 52, - COUNT ( * ) * + 75 ) * - 51 * - 47 + + COALESCE ( - CAST ( NULL AS INTEGER ), 27 * CAST ( NULL AS INTEGER ) ) + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT COALESCE ( + + COUNT( * ), - - 76 ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6223
SELECT COALESCE ( + + COUNT ( * ), - - 76 ) * COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL + 51 * + 63 AS col0
----
3213

query I rowsort
SELECT 48 - - 9
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6226
SELECT - ( - 38 ) DIV + 93 * ( + + 36 ) * + 30 + + + 32 - - - SUM( DISTINCT + 18 )
----
14

skipif mysql # not compatible
query I rowsort label-6226
SELECT - ( - 38 ) / + 93 * ( + + 36 ) * + 30 + + + 32 - - - SUM ( DISTINCT + 18 )
----
14

query I rowsort
SELECT ( - ( + 22 ) ) * - 0
----
0

query I rowsort
SELECT 38 + + 79 + 10 col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT - 74 * COUNT( * ) + + 53 * 27 + + CASE - 59 WHEN + + ( - ( + + 54 ) ) THEN + 42 * + 73 WHEN 49 THEN 20 WHEN + 17 THEN NULL WHEN + 8 + 38 THEN 39 ELSE - 3 + 61 END * CAST( + 34 AS SIGNED ) AS col2
----
3329

skipif mysql # not compatible
query I rowsort label-6229
SELECT - 74 * COUNT ( * ) + + 53 * 27 + + CASE - 59 WHEN + + ( - ( + + 54 ) ) THEN + 42 * + 73 WHEN 49 THEN 20 WHEN + 17 THEN NULL WHEN + 8 + 38 THEN 39 ELSE - 3 + 61 END * CAST ( + 34 AS INTEGER ) AS col2
----
3329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6230
SELECT ( + - COUNT( * ) ) DIV + 41 + + ( - - 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6230
SELECT ( + - COUNT ( * ) ) / + 41 + + ( - - 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT DISTINCT SUM( DISTINCT + - ( - - 48 ) ) * - - COUNT( * ) - 66 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT SUM ( DISTINCT + - ( - - 48 ) ) * - - COUNT ( * ) - 66 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ALL + + COALESCE ( - 71, + 1 * NULLIF ( - 38, + 24 * + ( MIN( - + 96 ) ) * + 19 + - + 91 ) + + 81 ) + + COUNT( * ) * - 16 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL + + COALESCE ( - 71, + 1 * NULLIF ( - 38, + 24 * + ( MIN ( - + 96 ) ) * + 19 + - + 91 ) + + 81 ) + + COUNT ( * ) * - 16 AS col0
----
-87

query I rowsort
SELECT - 33 + + 96
----
63

query I rowsort
SELECT ALL 2 * - 37 col0
----
-74

query I rowsort
SELECT 32 * + 88 * 95 * + 70 + - 80 + - 18 * + - 89 AS col2
----
18727922

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6236
SELECT ALL + 67 + + 65 DIV COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + 67 + + 65 / COUNT ( * )
----
132

query II rowsort
SELECT 11 + - 34 AS col0, 48 - - - 68 + 52 * 71 * + 70 * - + 53 * - + 10
----
-23
136973180

query I rowsort
SELECT - ( - 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT DISTINCT - SUM( DISTINCT - - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT - SUM ( DISTINCT - - 56 ) AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6240
SELECT DISTINCT + 73 + 68 - + CAST( + 40 AS SIGNED )
----
101

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + 73 + 68 - + CAST ( + 40 AS INTEGER )
----
101

query I rowsort
SELECT DISTINCT + 9 * - + 77
----
-693

query I rowsort
SELECT DISTINCT - 40 + + 79 + - - 77 AS col2
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6243
SELECT ALL + - 39 * CAST( - COALESCE ( - - 40, - + 32, 40 - 91 ) AS SIGNED ) * 7 - 98 + + ( + COUNT( * ) ) * + 59
----
10881

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + - 39 * CAST ( - COALESCE ( - - 40, - + 32, 40 - 91 ) AS INTEGER ) * 7 - 98 + + ( + COUNT ( * ) ) * + 59
----
10881

query I rowsort
SELECT DISTINCT + 49 * + 59
----
2891

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT CASE 98 WHEN - 11 THEN 59 WHEN 33 THEN NULL ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT CASE 98 WHEN - 11 THEN 59 WHEN 33 THEN NULL ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6246
SELECT - 38 + - - COUNT( 56 ) + + 30 DIV - 16, COUNT( * ) AS col0
----
-38
1

skipif mysql # not compatible
query II rowsort label-6246
SELECT - 38 + - - COUNT ( 56 ) + + 30 / - 16, COUNT ( * ) AS col0
----
-38
1

query I rowsort
SELECT 49 + - 91 col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT DISTINCT - COUNT( * ) * + NULLIF ( 29, COALESCE ( + ( + 54 ), 65 ) ) DIV 6 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( 29, COALESCE ( + ( + 54 ), 65 ) ) / 6 * COUNT ( * ) AS col2
----
-4

query II rowsort
SELECT 32 * + - 72 * + 87, - 59 AS col0
----
-200448
-59

query I rowsort
SELECT 39 + - 14 col2
----
25

query II rowsort
SELECT - 65, - 86 + + - ( + 52 ) AS col0
----
-65
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6252
SELECT COUNT( * ) + + + 59 DIV + - 53 col1
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT COUNT ( * ) + + + 59 / + - 53 col1
----
0

query I rowsort
SELECT ALL - CASE 82 WHEN + - 15 THEN + - 48 END AS col0
----
NULL

query I rowsort
SELECT 19 * 79 AS col0
----
1501

query I rowsort
SELECT 22 * + 20
----
440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT 58 + - - CAST( + 53 AS SIGNED ) col1
----
111

skipif mysql # not compatible
query I rowsort label-6256
SELECT 58 + - - CAST ( + 53 AS INTEGER ) col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-6257
SELECT 64 DIV - - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6257
SELECT 64 / - - 86 AS col2
----
0

query I rowsort
SELECT DISTINCT - 75 * + 90 * + 83 AS col0
----
-560250

query I rowsort
SELECT DISTINCT - ( - - 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT - MIN( DISTINCT + 68 ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT - MIN ( DISTINCT + 68 ) col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT COUNT( ALL - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6261
SELECT COUNT ( ALL - 85 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6262
SELECT ALL COUNT( * ) * - 16 / + 19 + ( 56 ) + + 95 + 82 + - ( + CAST( SUM( ALL 45 ) AS DECIMAL ) ) + - 18 + - CAST( NULL AS SIGNED ) * + + 2 / 18 + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL COUNT ( * ) * - 16 / + 19 + ( 56 ) + + 95 + 82 + - ( + CAST ( SUM ( ALL 45 ) AS REAL ) ) + - 18 + - CAST ( NULL AS INTEGER ) * + + 2 / 18 + 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT 83 * - + COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6263
SELECT 83 * - + COUNT ( * ) AS col1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - - 89 + 48 * - + 34 + 44 + + 70 AS col1
----
-1429

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - - 89 + 48 * - + 34 + 44 + + 70 AS col1
----
-1429

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT + 70 - COUNT( ALL + 33 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6265
SELECT + 70 - COUNT ( ALL + 33 ) AS col1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT ALL + 38 + + - 24 DIV + 67
----
38

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL + 38 + + - 24 / + 67
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT - 83 * - COALESCE ( + 52, - 69 / - CASE - - 47 WHEN + + 4 * - COALESCE ( - 16, - 36 + - COUNT( * ) + - CAST( + MAX( + 7 ) AS SIGNED ) ) THEN ( ( + 23 ) ) WHEN - MIN( DISTINCT + 34 ) - 92 THEN 30 * 74 ELSE 8 + - 79 END + 31 ) + + 12 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 83 * - COALESCE ( + 52, - 69 / - CASE - - 47 WHEN + + 4 * - COALESCE ( - 16, - 36 + - COUNT ( * ) + - CAST ( + MAX ( + 7 ) AS INTEGER ) ) THEN ( ( + 23 ) ) WHEN - MIN ( DISTINCT + 34 ) - 92 THEN 30 * 74 ELSE 8 + - 79 END + 31 ) + + 12 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT COUNT( * ) AS col0, + 34 AS col2
----
1
34

skipif mysql # not compatible
query II rowsort label-6268
SELECT COUNT ( * ) AS col0, + 34 AS col2
----
1
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT DISTINCT - 5 + - CAST( - COUNT( * ) AS SIGNED ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - 5 + - CAST ( - COUNT ( * ) AS INTEGER ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL + SUM( - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + SUM ( - 43 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT DISTINCT - NULLIF ( - + 95, + + 88 + + 64 ) + COUNT( * ) + 88 DIV - ( 61 )
----
95

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT - NULLIF ( - + 95, + + 88 + + 64 ) + COUNT ( * ) + 88 / - ( 61 )
----
95

query II rowsort
SELECT ALL - 11 * + + 6 * - 78 * - 78 * 31 AS col2, + 60
----
-12447864
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT - + MIN( + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-6273
SELECT - + MIN ( + 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6274
SELECT + - 56 + - - 38 + + SUM( ALL - - CAST( NULL AS SIGNED ) ) + + + 60 * - 23 - + - 40 / ( - 45 ) + - 89 * + 55 + + + 13 + CAST( - + 22 AS DECIMAL ) + 33 - + COUNT( * ) * + COUNT( DISTINCT 57 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT + - 56 + - - 38 + + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + + + 60 * - 23 - + - 40 / ( - 45 ) + - 89 * + 55 + + + 13 + CAST ( - + 22 AS REAL ) + 33 - + COUNT ( * ) * + COUNT ( DISTINCT 57 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6275
SELECT - MIN( + 60 ) / + - CAST( + CASE SUM( + - ( + COALESCE ( + 43, + ( + - 18 ) * + 20 / - 14 ) ) ) WHEN - 15 * 33 THEN CAST( NULL AS DECIMAL ) * + 90 WHEN + NULLIF ( + 8, - 84 / - 31 ) * + 20 THEN 92 END AS DECIMAL ) + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT - MIN ( + 60 ) / + - CAST ( + CASE SUM ( + - ( + COALESCE ( + 43, + ( + - 18 ) * + 20 / - 14 ) ) ) WHEN - 15 * 33 THEN CAST ( NULL AS REAL ) * + 90 WHEN + NULLIF ( + 8, - 84 / - 31 ) * + 20 THEN 92 END AS REAL ) + 78 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT + NULLIF ( - - CAST( NULL AS SIGNED ), - 18 ) * 47 + + 83 + ( - ( + 8 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT + NULLIF ( - - CAST ( NULL AS INTEGER ), - 18 ) * 47 + + 83 + ( - ( + 8 ) ) AS col2
----
NULL

query I rowsort
SELECT - 92 + - - 29
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT DISTINCT - + 73 DIV - 12 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - + 73 / - 12 AS col0
----
6

query II rowsort
SELECT 98 AS col0, - ( - 88 )
----
98
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL CASE + - SUM( ALL 19 ) WHEN + - 67 - ( + - COUNT( * ) ) THEN + 16 * + 79 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL CASE + - SUM ( ALL 19 ) WHEN + - 67 - ( + - COUNT ( * ) ) THEN + 16 * + 79 WHEN + COUNT ( * ) THEN NULL END
----
NULL

query II rowsort
SELECT 3 AS col0, + 2 + + 52 * 0
----
3
2

query I rowsort
SELECT - 75 * - 56 AS col1
----
4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6283
SELECT 11, NULLIF ( + + COUNT( * ), + 74 ) DIV - 70 col2
----
11
0

skipif mysql # not compatible
query II rowsort label-6283
SELECT 11, NULLIF ( + + COUNT ( * ), + 74 ) / - 70 col2
----
11
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT ALL COUNT( DISTINCT + 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL COUNT ( DISTINCT + 5 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6285
SELECT 84 AS col0, - COUNT( * ) * + 23
----
84
-23

skipif mysql # not compatible
query II rowsort label-6285
SELECT 84 AS col0, - COUNT ( * ) * + 23
----
84
-23

query II rowsort
SELECT - 66 col2, + 77 AS col2
----
-66
77

query I rowsort
SELECT + 80 - 35 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT + 39 * + MAX( 88 )
----
3432

skipif mysql # not compatible
query I rowsort label-6288
SELECT + 39 * + MAX ( 88 )
----
3432

onlyif mysql # DIV for integer division: 
query II rowsort label-6289
SELECT + 56 + - 36, 64 - 41 DIV + 90 AS col0
----
20
64

skipif mysql # not compatible
query II rowsort label-6289
SELECT + 56 + - 36, 64 - 41 / + 90 AS col0
----
20
64

query II rowsort
SELECT - 23 AS col1, - 15
----
-23
-15

query I rowsort
SELECT ALL + ( + ( + ( + 21 ) ) ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT + MIN( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + MIN ( + 98 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT 16 DIV - 81 - - + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6293
SELECT 16 / - 81 - - + 84 AS col0
----
84

query I rowsort
SELECT - ( + + 98 ) - + 76
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL + NULLIF ( - + 59, + COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + NULLIF ( - + 59, + COUNT ( * ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + ( + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6297
SELECT DISTINCT 34 * - ( 93 ) + - 59 AS col0, COUNT( * )
----
-3221
1

skipif mysql # not compatible
query II rowsort label-6297
SELECT DISTINCT 34 * - ( 93 ) + - 59 AS col0, COUNT ( * )
----
-3221
1

query I rowsort
SELECT - 68 + + 52 + + COALESCE ( + 52, + 51, - 53 ) + + 30
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL + 75 * COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL + 75 * COUNT ( * ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT ALL + + 60 AS col0, COUNT( * )
----
60
1

skipif mysql # not compatible
query II rowsort label-6300
SELECT ALL + + 60 AS col0, COUNT ( * )
----
60
1

query I rowsort
SELECT ALL + 43 * + 45 - 36
----
1899

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + - 20 + - 84 * + 7 + - - COUNT( * ) AS col0
----
-607

skipif mysql # not compatible
query I rowsort label-6302
SELECT + - 20 + - 84 * + 7 + - - COUNT ( * ) AS col0
----
-607

query I rowsort
SELECT ALL - 15 * 3 col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6304
SELECT + + 46 + 24 * + SUM( DISTINCT - 42 ) * + COALESCE ( - 20, + CAST( + AVG ( - - 33 ) AS SIGNED ) * + ( + COUNT( + + 8 ) ), 26 * + ( + 12 ) + - 2 - - 76 * - COUNT( * ) * + ( 96 ) + COUNT( * ) ) + - ( - 29 + CAST( NULL AS DECIMAL ) * MIN( DISTINCT 83 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT + + 46 + 24 * + SUM ( DISTINCT - 42 ) * + COALESCE ( - 20, + CAST ( + AVG ( - - 33 ) AS INTEGER ) * + ( + COUNT ( + + 8 ) ), 26 * + ( + 12 ) + - 2 - - 76 * - COUNT ( * ) * + ( 96 ) + COUNT ( * ) ) + - ( - 29 + CAST ( NULL AS REAL ) * MIN ( DISTINCT 83 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 1 ) AS col1
----
-1

query II rowsort
SELECT 20 AS col2, + 15 AS col2
----
20
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT - MIN( DISTINCT + - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-6307
SELECT - MIN ( DISTINCT + - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + - 68 + 61 - - 56 * - COUNT( * ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6308
SELECT + - 68 + 61 - - 56 * - COUNT ( * ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6309
SELECT ALL + 99 * - + COUNT( * ) + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + 99 * - + COUNT ( * ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + + 94 * + + 60
----
5640

query II rowsort
SELECT ALL 78, 70 - - 1 AS col1
----
78
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6312
SELECT ALL + COALESCE ( 97, - CASE + + 68 WHEN 96 THEN NULL WHEN + - 91 THEN + COUNT( * ) ELSE 5 * - + CAST( - 94 AS SIGNED ) END )
----
97

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL + COALESCE ( 97, - CASE + + 68 WHEN 96 THEN NULL WHEN + - 91 THEN + COUNT ( * ) ELSE 5 * - + CAST ( - 94 AS INTEGER ) END )
----
97

query II rowsort
SELECT 75 AS col1, + 0
----
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT ALL COUNT( DISTINCT - - 8 ) * 85
----
85

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL COUNT ( DISTINCT - - 8 ) * 85
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6315
SELECT + 93 + + COUNT( * ) AS col2, COUNT( * ) + COUNT( * ) AS col0
----
94
2

skipif mysql # not compatible
query II rowsort label-6315
SELECT + 93 + + COUNT ( * ) AS col2, COUNT ( * ) + COUNT ( * ) AS col0
----
94
2

query II rowsort
SELECT + 63 * - - COALESCE ( 90, - 9 + + 1 ) AS col1, - 0
----
5670
0

query I rowsort
SELECT ALL 75 + - 85
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT + 81 + - CAST( - 24 AS SIGNED ) * + CAST( NULL AS SIGNED ) * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT + 81 + - CAST ( - 24 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - + 28
----
NULL

query I rowsort
SELECT + 57 + - 38 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6320
SELECT + 33 * + CAST( + 37 AS SIGNED ) * + CASE 22 WHEN - + 63 THEN NULL WHEN ( + 30 ) * 25 + 89 * - + 76 * + 86 THEN NULL ELSE 3 END - - 11 AS col2
----
3674

skipif mysql # not compatible
query I rowsort label-6320
SELECT + 33 * + CAST ( + 37 AS INTEGER ) * + CASE 22 WHEN - + 63 THEN NULL WHEN ( + 30 ) * 25 + 89 * - + 76 * + 86 THEN NULL ELSE 3 END - - 11 AS col2
----
3674

query I rowsort
SELECT ALL 39 + + 91
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT ALL 3 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL 3 / 47
----
0

query I rowsort
SELECT DISTINCT 74 + - + 72 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6324
SELECT - CAST( + + 2 AS SIGNED ) + + 38 * + 91 AS col1
----
3456

skipif mysql # not compatible
query I rowsort label-6324
SELECT - CAST ( + + 2 AS INTEGER ) + + 38 * + 91 AS col1
----
3456

query I rowsort
SELECT 92 + + 25 * 35 - - 56 AS col0
----
1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT ALL 61 + + 40 - + 86 - - - 16 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL 61 + + 40 - + 86 - - - 16 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( - 65, 14 + + 37 ) AS col1
----
65

query II rowsort
SELECT ALL - 10 - - 10 AS col1, + 23
----
0
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + COUNT( ALL + - 6 ) * - 6 + 51
----
45

skipif mysql # not compatible
query I rowsort label-6329
SELECT + COUNT ( ALL + - 6 ) * - 6 + 51
----
45

query I rowsort
SELECT DISTINCT 53 - 52 * 75 AS col2
----
-3847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6331
SELECT - COUNT( * ) DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-6331
SELECT - COUNT ( * ) / 78
----
0

query I rowsort
SELECT + 51 * + 18 AS col1
----
918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT ALL - CASE + + 25 WHEN + 26 THEN NULL WHEN MAX( ALL + - 16 ) THEN + - 25 + - COUNT( * ) ELSE - AVG ( ( - 28 ) ) + - + 54 - + - 23 * 78 / - CASE + 38 WHEN - COUNT( * ) THEN NULL WHEN 86 + + COUNT( * ) / - ( 95 + 42 * ( + COALESCE ( - 28, - 46, 60 * + 98 ) ) ) THEN + CAST( 12 AS SIGNED ) ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - CASE + + 25 WHEN + 26 THEN NULL WHEN MAX ( ALL + - 16 ) THEN + - 25 + - COUNT ( * ) ELSE - AVG ( ( - 28 ) ) + - + 54 - + - 23 * 78 / - CASE + 38 WHEN - COUNT ( * ) THEN NULL WHEN 86 + + COUNT ( * ) / - ( 95 + 42 * ( + COALESCE ( - 28, - 46, 60 * + 98 ) ) ) THEN + CAST ( 12 AS INTEGER ) ELSE NULL END END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT + CAST( + 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-6334
SELECT + CAST ( + 41 AS INTEGER )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6335
SELECT 58 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-6335
SELECT 58 / 31
----
1

query II rowsort
SELECT + 18 * + 19 AS col1, ( 95 )
----
342
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT - 31 - CASE + ( 88 ) WHEN 16 THEN + SUM( ALL + - 29 ) ELSE NULL END * - + NULLIF ( 61, - SUM( ALL - 65 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT - 31 - CASE + ( 88 ) WHEN 16 THEN + SUM ( ALL + - 29 ) ELSE NULL END * - + NULLIF ( 61, - SUM ( ALL - 65 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT - - 77 * COUNT( * ) col1
----
77

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - - 77 * COUNT ( * ) col1
----
77

query I rowsort
SELECT + - ( - 12 ) * 12 - 79 * - 0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT COUNT( * ) * 94 col2
----
94

skipif mysql # not compatible
query I rowsort label-6341
SELECT COUNT ( * ) * 94 col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6342
SELECT ALL + COUNT( + 21 ) + + COUNT( * ) AS col1, ( + 72 )
----
2
72

skipif mysql # not compatible
query II rowsort label-6342
SELECT ALL + COUNT ( + 21 ) + + COUNT ( * ) AS col1, ( + 72 )
----
2
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6343
SELECT ALL - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) * + 34 * - + 5 * + + CASE - 56 WHEN - 84 THEN NULL WHEN - 80 THEN NULL WHEN - - 12 THEN - 41 / COUNT( * ) - CASE 63 WHEN + + 35 THEN + - 23 + + 9 + - SUM( + 83 ) ELSE COUNT( * ) END * + 46 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) * + 34 * - + 5 * + + CASE - 56 WHEN - 84 THEN NULL WHEN - 80 THEN NULL WHEN - - 12 THEN - 41 / COUNT ( * ) - CASE 63 WHEN + + 35 THEN + - 23 + + 9 + - SUM ( + 83 ) ELSE COUNT ( * ) END * + 46 END + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT - 19 AS col2, 70 * 10 + 95
----
-19
795

query I rowsort
SELECT ALL 21 + - 47
----
-26

query II rowsort
SELECT CASE 60 WHEN - + 62 / 46 THEN NULL WHEN + 27 THEN NULL ELSE + 17 * + 17 * - 91 END * + 2, - 59 AS col0
----
-52598
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6347
SELECT - 27 AS col0, COUNT( * ) + + 32 DIV 91 AS col1
----
-27
1

skipif mysql # not compatible
query II rowsort label-6347
SELECT - 27 AS col0, COUNT ( * ) + + 32 / 91 AS col1
----
-27
1

query I rowsort
SELECT DISTINCT 26 * 84
----
2184

query I rowsort
SELECT ALL 61 + + 6 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT CAST( + 47 AS SIGNED ) * - ( - MIN( ALL - 89 ) ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT CAST ( + 47 AS INTEGER ) * - ( - MIN ( ALL - 89 ) ) * + 0
----
0

query I rowsort
SELECT 73 + - - 59 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ( 12 ) + + COUNT( * ) + 4
----
17

skipif mysql # not compatible
query I rowsort label-6352
SELECT ( 12 ) + + COUNT ( * ) + 4
----
17

query I rowsort
SELECT ALL 25 - - + 21 AS col1
----
46

query I rowsort
SELECT DISTINCT 49 / - CASE - 25 WHEN + + 26 THEN 42 WHEN + ( - + 5 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6355
SELECT ALL 3 - + 32 + + + 53 DIV COALESCE ( + - 30, + - ( COUNT( * ) ) * CASE + 62 WHEN 80 * + 99 THEN 28 + + 91 + + 47 - 43 * - COUNT( + 73 ) + - COUNT( * ) + 96 ELSE CAST( NULL AS SIGNED ) END * + 77, + COALESCE ( + ( 97 ), - 55 DIV - 67 + - 34 ) ) * + 6
----
-35

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL 3 - + 32 + + + 53 / COALESCE ( + - 30, + - ( COUNT ( * ) ) * CASE + 62 WHEN 80 * + 99 THEN 28 + + 91 + + 47 - 43 * - COUNT ( + 73 ) + - COUNT ( * ) + 96 ELSE CAST ( NULL AS INTEGER ) END * + 77, + COALESCE ( + ( 97 ), - 55 / - 67 + - 34 ) ) * + 6
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6356
SELECT 24 - - COUNT( ALL - + ( + 16 ) ) DIV + 21 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6356
SELECT 24 - - COUNT ( ALL - + ( + 16 ) ) / + 21 AS col2
----
24

query II rowsort
SELECT ALL - + 25 AS col1, 88 - + 80 AS col0
----
-25
8

query I rowsort
SELECT - + 71 * - + 57 - + 38 + 88 + - 88 AS col1
----
4009

query I rowsort
SELECT + COALESCE ( + + 98, - 8, + + ( 38 ) ) * - 89 - + - 56 AS col0
----
-8666

query II rowsort
SELECT + 8 * + 2 * + 52 + 51 AS col2, + 8
----
883
8

query I rowsort
SELECT 29 * - 84 + - 19 + ( - 94 ) * + + 88 * - ( + + 13 ) * 22 + - 50
----
2363287

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT COUNT( * ) + - 98 + + COALESCE ( + - 21, 83, + + 21, + - ( - COUNT( * ) ) ) * + 76 - 68 AS col1
----
-1761

skipif mysql # not compatible
query I rowsort label-6362
SELECT COUNT ( * ) + - 98 + + COALESCE ( + - 21, 83, + + 21, + - ( - COUNT ( * ) ) ) * + 76 - 68 AS col1
----
-1761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6363
SELECT - - MIN( + 34 ) DIV + 49 + - 76 + COUNT( * ) - + 59 * - - 56
----
-3379

skipif mysql # not compatible
query I rowsort label-6363
SELECT - - MIN ( + 34 ) / + 49 + - 76 + COUNT ( * ) - + 59 * - - 56
----
-3379

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - 75 * COUNT( * ) + - 70 * + - MIN( - - 5 ) / - ( + - CASE + + ( + + 72 ) WHEN 86 THEN + + NULLIF ( + 87, + - 8 ) WHEN + + 30 THEN NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT - 75 * COUNT ( * ) + - 70 * + - MIN ( - - 5 ) / - ( + - CASE + + ( + + 72 ) WHEN 86 THEN + + NULLIF ( + 87, + - 8 ) WHEN + + 30 THEN NULL END ) col2
----
NULL

query I rowsort
SELECT ALL 72 * + - COALESCE ( ( - 3 ), 53 ) col2
----
216

query I rowsort
SELECT - 15 + 69 col2
----
54

query I rowsort
SELECT ALL - + 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT + - SUM( - 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6368
SELECT + - SUM ( - 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6369
SELECT + ( - 65 ) DIV 30 + + - 45 * COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6369
SELECT + ( - 65 ) / 30 + + - 45 * COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT ALL - + 25 + + - 16
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT + COALESCE ( 21, - 46 DIV - - COUNT( * ) * 38 * - 65 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6371
SELECT + COALESCE ( 21, - 46 / - - COUNT ( * ) * 38 * - 65 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6372
SELECT - COUNT( * ) * MIN( DISTINCT + - 98 ) + - - 7, + COUNT( * ) AS col1
----
105
1

skipif mysql # not compatible
query II rowsort label-6372
SELECT - COUNT ( * ) * MIN ( DISTINCT + - 98 ) + - - 7, + COUNT ( * ) AS col1
----
105
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6373
SELECT 42 * + 13, ( - - NULLIF ( + NULLIF ( 16, COUNT( * ) ), - 1 ) ) col2
----
546
16

skipif mysql # not compatible
query II rowsort label-6373
SELECT 42 * + 13, ( - - NULLIF ( + NULLIF ( 16, COUNT ( * ) ), - 1 ) ) col2
----
546
16

query I rowsort
SELECT ALL - 2 + + 60
----
58

query I rowsort
SELECT 73 + - - 12 + + + 40 col2
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6376
SELECT + 56 + - 31 + 13 - - 65 * + 41 AS col2, + COUNT( DISTINCT 52 ) / COUNT( ALL 72 ) + - - CAST( NULL AS SIGNED ) + - 28 * - 52 + + 95 AS col0
----
2703
NULL

skipif mysql # not compatible
query II rowsort label-6376
SELECT + 56 + - 31 + 13 - - 65 * + 41 AS col2, + COUNT ( DISTINCT 52 ) / COUNT ( ALL 72 ) + - - CAST ( NULL AS INTEGER ) + - 28 * - 52 + + 95 AS col0
----
2703
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT - 68 + + 80 * - CAST( 72 AS SIGNED )
----
-5828

skipif mysql # not compatible
query I rowsort label-6377
SELECT - 68 + + 80 * - CAST ( 72 AS INTEGER )
----
-5828

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT - ( + COUNT( * ) ) + - 5
----
-6

skipif mysql # not compatible
query I rowsort label-6378
SELECT - ( + COUNT ( * ) ) + - 5
----
-6

query I rowsort
SELECT + 50 + + 65 + + 8 AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6380
SELECT DISTINCT + 40 - + 3 * CAST( NULL AS DECIMAL ) * - - 68 / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT + 40 - + 3 * CAST ( NULL AS REAL ) * - - 68 / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 98, + + 63 ) col2
----
98

query I rowsort
SELECT ALL ( + + 77 ) * 12 AS col2
----
924

query I rowsort
SELECT ALL NULLIF ( - 44, 63 )
----
-44

query I rowsort
SELECT - - 38 * + 55 * + 81 AS col0
----
169290

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + - COUNT( * ) + + 12
----
11

skipif mysql # not compatible
query I rowsort label-6385
SELECT + - COUNT ( * ) + + 12
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT SUM( DISTINCT - - 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6386
SELECT SUM ( DISTINCT - - 99 ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT + 6 * - CAST( + 20 AS SIGNED )
----
-120

skipif mysql # not compatible
query I rowsort label-6387
SELECT + 6 * - CAST ( + 20 AS INTEGER )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT + 48 * + 2 * + COUNT( 69 ) + + 87 * - 23
----
-1905

skipif mysql # not compatible
query I rowsort label-6388
SELECT + 48 * + 2 * + COUNT ( 69 ) + + 87 * - 23
----
-1905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6389
SELECT ALL CAST( NULL AS SIGNED ) / + + 59 * 12 + + COUNT( ALL - + 25 ) - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL CAST ( NULL AS INTEGER ) / + + 59 * 12 + + COUNT ( ALL - + 25 ) - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + - 21 AS col2
----
-21

query I rowsort
SELECT ALL + - 76 * 14 + + 71 AS col0
----
-993

query I rowsort
SELECT ALL + + 52 * - 1
----
-52

query I rowsort
SELECT - 43 * - 86 + - 84 AS col0
----
3614

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ( + ( + - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6394
SELECT ( + ( + - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6395
SELECT + - 82 * + - COUNT( * ) * - 72 + - COUNT( * ) * + 64 DIV 64 AS col1
----
-5905

skipif mysql # not compatible
query I rowsort label-6395
SELECT + - 82 * + - COUNT ( * ) * - 72 + - COUNT ( * ) * + 64 / 64 AS col1
----
-5905

query I rowsort
SELECT - + CASE + ( - 29 ) WHEN - 91 * - 59 * 88 THEN NULL WHEN - ( - 42 ) THEN - 89 END * 7 - 96 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 43 * - 32 AS col0
----
1376

query I rowsort
SELECT + 93 + + 50
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT ALL 16 * + + CASE - ( 79 ) WHEN + - ( + COUNT( * ) ) THEN + + 41 END / + - 67 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL 16 * + + CASE - ( 79 ) WHEN + - ( + COUNT ( * ) ) THEN + + 41 END / + - 67 * 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT SUM( DISTINCT 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6400
SELECT SUM ( DISTINCT 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT COUNT( * ) AS col0, 68 AS col0
----
1
68

skipif mysql # not compatible
query II rowsort label-6401
SELECT COUNT ( * ) AS col0, 68 AS col0
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - ( + CASE - 49 WHEN + 18 THEN NULL WHEN 53 THEN NULL ELSE COUNT( ALL + 81 ) END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6402
SELECT - ( + CASE - 49 WHEN + 18 THEN NULL WHEN 53 THEN NULL ELSE COUNT ( ALL + 81 ) END ) AS col1
----
-1

query I rowsort
SELECT ALL 86 - 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL + 71 - - COUNT( + 91 ) * + 70 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL + 71 - - COUNT ( + 91 ) * + 70 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6405
SELECT ALL - 99 DIV - 14 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - 99 / - 14 AS col2
----
7

query I rowsort
SELECT - ( - 84 ) + + + 49 AS col1
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT ALL + 26 * - 10 DIV 71 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + 26 * - 10 / 71 / - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT MAX( + 62 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT MAX ( + 62 ) col2
----
62

query I rowsort
SELECT ALL - 99 * + - 71
----
7029

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL + NULLIF ( + - 12, + COALESCE ( + - 54, + 98, - - COUNT( * ), - COUNT( * ) + + 88 * + + 64 ) ) - 35 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL + NULLIF ( + - 12, + COALESCE ( + - 54, + 98, - - COUNT ( * ), - COUNT ( * ) + + 88 * + + 64 ) ) - 35 AS col0
----
-47

query I rowsort
SELECT - 73 * - 86 AS col2
----
6278

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL + COUNT( * ) * - - 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + COUNT ( * ) * - - 23 AS col1
----
23

query I rowsort
SELECT DISTINCT NULLIF ( - ( - - 70 ), + + 34 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT ALL + COUNT( * ) * - 20
----
-20

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + COUNT ( * ) * - 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT - 7 + ( + + COUNT( * ) ) * 46 * + 1 + 73 * + ( - - 80 )
----
5879

skipif mysql # not compatible
query I rowsort label-6415
SELECT - 7 + ( + + COUNT ( * ) ) * 46 * + 1 + 73 * + ( - - 80 )
----
5879

query I rowsort
SELECT - - 93 * 55 AS col0
----
5115

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT - - CASE + + ( - 1 ) WHEN - + 8 * CASE + 26 WHEN + 60 THEN - COUNT( * ) ELSE NULL END THEN - CASE 98 WHEN 21 * 13 THEN - 49 * - 13 WHEN + 21 * - 57 * + ( + MAX( DISTINCT - 85 ) ) THEN NULL ELSE NULL END END * - 72 * - 60 + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT - - CASE + + ( - 1 ) WHEN - + 8 * CASE + 26 WHEN + 60 THEN - COUNT ( * ) ELSE NULL END THEN - CASE 98 WHEN 21 * 13 THEN - 49 * - 13 WHEN + 21 * - 57 * + ( + MAX ( DISTINCT - 85 ) ) THEN NULL ELSE NULL END END * - 72 * - 60 + - 33 AS col0
----
NULL

query I rowsort
SELECT - 21 + - 80 AS col0
----
-101

query II rowsort
SELECT - - 84 col2, - 23
----
84
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6420
SELECT DISTINCT + COUNT( * ) col0, + 35
----
1
35

skipif mysql # not compatible
query II rowsort label-6420
SELECT DISTINCT + COUNT ( * ) col0, + 35
----
1
35

query I rowsort
SELECT - 34 + + 63 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - 48 + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6422
SELECT - 48 + COUNT ( * )
----
-47

query II rowsort
SELECT ALL + 16 * - 93 * 49 AS col0, + 28 col0
----
-72912
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT + - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT - 18 / - CASE + + 45 WHEN + - 17 THEN + 56 ELSE NULL END * - - COUNT( * ) + + 60 * 71 * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - 18 / - CASE + + 45 WHEN + - 17 THEN + 56 ELSE NULL END * - - COUNT ( * ) + + 60 * 71 * - + 62
----
NULL

query I rowsort
SELECT + ( + + 12 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6427
SELECT ALL + + 67 DIV 69 * + ( + + 8 ) + + - ( - NULLIF ( + ( + 15 ), - COUNT( DISTINCT + - 79 ) - + - 27 ) ) + - 62 + 12 DIV 59 * + CAST( - 27 AS SIGNED ) DIV COUNT( DISTINCT 40 )
----
-47

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL + + 67 / 69 * + ( + + 8 ) + + - ( - NULLIF ( + ( + 15 ), - COUNT ( DISTINCT + - 79 ) - + - 27 ) ) + - 62 + 12 / 59 * + CAST ( - 27 AS INTEGER ) / COUNT ( DISTINCT 40 )
----
-47

query I rowsort
SELECT DISTINCT - + 70 * - 61 AS col1
----
4270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6429
SELECT - 50 + + 96 + COALESCE ( + 73, + MIN( - + 61 ) + + - 64 DIV - 37, - - 92 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-6429
SELECT - 50 + + 96 + COALESCE ( + 73, + MIN ( - + 61 ) + + - 64 / - 37, - - 92 ) AS col1
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6430
SELECT ALL SUM( ALL - 25 ) DIV - 95 * 33 * - 66 * MAX( - + 87 ) + 67 * - 55 * COUNT( * ) * + COUNT( * ), + 70 AS col0
----
-3685
70

skipif mysql # not compatible
query II rowsort label-6430
SELECT ALL SUM ( ALL - 25 ) / - 95 * 33 * - 66 * MAX ( - + 87 ) + 67 * - 55 * COUNT ( * ) * + COUNT ( * ), + 70 AS col0
----
-3685
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT ALL 45 DIV - + COUNT( * ) + + 55 - 74 DIV 98
----
10

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL 45 / - + COUNT ( * ) + + 55 - 74 / 98
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6432
SELECT ALL + CASE - 48 WHEN + 56 + + NULLIF ( - COUNT( * ), + COUNT( * ) + NULLIF ( - + 95, - MIN( ALL - - 61 ) ) / ( - 23 ) ) * + CAST( - 50 AS SIGNED ) THEN NULL WHEN - 20 * - 85 THEN COUNT( * ) - + 5 + - - 82 / - COALESCE ( + 26, + 42 / 65 ) * + 90 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + CASE - 48 WHEN + 56 + + NULLIF ( - COUNT ( * ), + COUNT ( * ) + NULLIF ( - + 95, - MIN ( ALL - - 61 ) ) / ( - 23 ) ) * + CAST ( - 50 AS INTEGER ) THEN NULL WHEN - 20 * - 85 THEN COUNT ( * ) - + 5 + - - 82 / - COALESCE ( + 26, + 42 / 65 ) * + 90 END AS col0
----
NULL

query II rowsort
SELECT ALL + 38 AS col0, 74 * + 97 AS col0
----
38
7178

onlyif mysql # aggregate syntax: 
query II rowsort label-6434
SELECT DISTINCT 27 * + COUNT( * ) - 39 * + 76 AS col2, - 75 * - 27 * + 70 AS col0
----
-2937
141750

skipif mysql # not compatible
query II rowsort label-6434
SELECT DISTINCT 27 * + COUNT ( * ) - 39 * + 76 AS col2, - 75 * - 27 * + 70 AS col0
----
-2937
141750

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT 57 * - - 14 * MAX( ALL + 89 )
----
71022

skipif mysql # not compatible
query I rowsort label-6435
SELECT 57 * - - 14 * MAX ( ALL + 89 )
----
71022

query II rowsort
SELECT 90, - 81 * + 13 col2
----
90
-1053

query II rowsort
SELECT ALL - 37, 31 * 66 AS col2
----
-37
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT + 58 * COUNT( * ) + + 9 - - 90 * + - 16 - - - 2 AS col1
----
-1375

skipif mysql # not compatible
query I rowsort label-6438
SELECT + 58 * COUNT ( * ) + + 9 - - 90 * + - 16 - - - 2 AS col1
----
-1375

query I rowsort
SELECT 12 * - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6440
SELECT DISTINCT 32 * + CASE + 32 WHEN + MIN( 74 ) * + - 43 THEN + 97 * + + ( - + 90 ) - + + 43 * - 83 + + 25 WHEN + + NULLIF ( + ( - 57 ), - - 5 ) * CAST( NULL AS SIGNED ) - + - CASE + SUM( DISTINCT + 25 ) WHEN - + 96 THEN 19 ELSE - 11 + 17 END * + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT 32 * + CASE + 32 WHEN + MIN ( 74 ) * + - 43 THEN + 97 * + + ( - + 90 ) - + + 43 * - 83 + + 25 WHEN + + NULLIF ( + ( - 57 ), - - 5 ) * CAST ( NULL AS INTEGER ) - + - CASE + SUM ( DISTINCT + 25 ) WHEN - + 96 THEN 19 ELSE - 11 + 17 END * + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 61 * + 30
----
1830

query II rowsort
SELECT ALL 38 col0, 86 + + - 81
----
38
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT COUNT( * ) + - MAX( ALL + 96 )
----
-95

skipif mysql # not compatible
query I rowsort label-6443
SELECT COUNT ( * ) + - MAX ( ALL + 96 )
----
-95

query I rowsort
SELECT 17 + + + 95 + 14 * + 33 * + 2 AS col2
----
1036

query II rowsort
SELECT 76 col2, + 53 + - 67
----
76
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT 27 + - MAX( 91 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6446
SELECT 27 + - MAX ( 91 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT MIN( + + 16 ) * 9 + 60 AS col0
----
204

skipif mysql # not compatible
query I rowsort label-6447
SELECT MIN ( + + 16 ) * 9 + 60 AS col0
----
204

query I rowsort
SELECT + 75 + 63
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6449
SELECT 68 * - CAST( - - 95 AS SIGNED ) - - 69 AS col2, 9
----
-6391
9

skipif mysql # not compatible
query II rowsort label-6449
SELECT 68 * - CAST ( - - 95 AS INTEGER ) - - 69 AS col2, 9
----
-6391
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL - - 85 + 47 + - - MAX( DISTINCT + 94 )
----
226

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - - 85 + 47 + - - MAX ( DISTINCT + 94 )
----
226

onlyif mysql # aggregate syntax: 
query II rowsort label-6451
SELECT - MIN( + - 52 ), - 61 col1
----
52
-61

skipif mysql # not compatible
query II rowsort label-6451
SELECT - MIN ( + - 52 ), - 61 col1
----
52
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL 93 DIV - 11 + - 67 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL 93 / - 11 + - 67 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT 97 + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT 97 + + COUNT ( * )
----
98

query I rowsort
SELECT ALL + ( + 86 ) + - 81
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT NULLIF ( + - 65, COUNT( * ) * CAST( NULL AS SIGNED ) ) * - - 66 + - 40
----
-4330

skipif mysql # not compatible
query I rowsort label-6455
SELECT NULLIF ( + - 65, COUNT ( * ) * CAST ( NULL AS INTEGER ) ) * - - 66 + - 40
----
-4330

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + 17 + + - COUNT( - 20 ) + + 94 + + 6 col0
----
116

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + 17 + + - COUNT ( - 20 ) + + 94 + + 6 col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT - 68 + 97 DIV - 5 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6457
SELECT - 68 + 97 / - 5 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6458
SELECT ALL + + MAX( DISTINCT + + 54 ) + + 33 * + + 53 * CASE CASE - - 8 WHEN - 8 * - + 70 * - 94 THEN + 58 ELSE NULL END WHEN + ( - 48 ) / + CAST( NULL AS SIGNED ) THEN - 31 ELSE NULL END * - 10 AS col0, - 37 + 54 + - COUNT( * ) + - 48
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-6458
SELECT ALL + + MAX ( DISTINCT + + 54 ) + + 33 * + + 53 * CASE CASE - - 8 WHEN - 8 * - + 70 * - 94 THEN + 58 ELSE NULL END WHEN + ( - 48 ) / + CAST ( NULL AS INTEGER ) THEN - 31 ELSE NULL END * - 10 AS col0, - 37 + 54 + - COUNT ( * ) + - 48
----
NULL
-32

query I rowsort
SELECT 71 * - 50
----
-3550

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT 58 - + NULLIF ( - 37, + - 0 ) + + COUNT( + + 60 ) * + 95 col1
----
190

skipif mysql # not compatible
query I rowsort label-6460
SELECT 58 - + NULLIF ( - 37, + - 0 ) + + COUNT ( + + 60 ) * + 95 col1
----
190

query I rowsort
SELECT + + 1 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT 50 * 9 * + COUNT( * ) AS col1
----
450

skipif mysql # not compatible
query I rowsort label-6462
SELECT 50 * 9 * + COUNT ( * ) AS col1
----
450

query II rowsort
SELECT DISTINCT - 9, - 60 + + 82 AS col0
----
-9
22

query I rowsort
SELECT DISTINCT - - 27
----
27

query I rowsort
SELECT ALL + + 5 - ( - ( + 25 ) ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6466
SELECT - COUNT( * ), 8 + COUNT( * ) AS col2
----
-1
9

skipif mysql # not compatible
query II rowsort label-6466
SELECT - COUNT ( * ), 8 + COUNT ( * ) AS col2
----
-1
9

query II rowsort
SELECT ALL - - 40 AS col1, 20 + 48 AS col0
----
40
68

query II rowsort
SELECT ALL - 86, + 0 col0
----
-86
0

query I rowsort
SELECT DISTINCT + 41 - 97
----
-56

query I rowsort
SELECT ALL 99 * - - 78
----
7722

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT DISTINCT + 16 * - + 14, - COUNT( * ) AS col1
----
-224
-1

skipif mysql # not compatible
query II rowsort label-6471
SELECT DISTINCT + 16 * - + 14, - COUNT ( * ) AS col1
----
-224
-1

query I rowsort
SELECT 51 + 23 AS col0
----
74

query I rowsort
SELECT 57 * + 31
----
1767

query I rowsort
SELECT ALL + 98 * - 9
----
-882

query I rowsort
SELECT + 54 * - 22 + + + 80 AS col1
----
-1108

onlyif mysql # DIV for integer division: 
query III rowsort label-6476
SELECT ALL + 8 - - 14 * + 75 AS col1, - 64 DIV - 29, + 68 AS col0
----
1058
2
68

skipif mysql # not compatible
query III rowsort label-6476
SELECT ALL + 8 - - 14 * + 75 AS col1, - 64 / - 29, + 68 AS col0
----
1058
2
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6477
SELECT ALL + 99 * CAST( NULL AS SIGNED ) col2, + 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6477
SELECT ALL + 99 * CAST ( NULL AS INTEGER ) col2, + 0
----
NULL
0

query I rowsort
SELECT 92 * + - 39 col1
----
-3588

query I rowsort
SELECT ALL ( - 42 ) * + 80
----
-3360

query I rowsort
SELECT 82 * + 82 AS col1
----
6724

onlyif mysql # aggregate syntax: 
query II rowsort label-6481
SELECT COUNT( * ) * 25 col2, 12 * 96 AS col0
----
25
1152

skipif mysql # not compatible
query II rowsort label-6481
SELECT COUNT ( * ) * 25 col2, 12 * 96 AS col0
----
25
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT ( - NULLIF ( - 34, - + 4 ) ) + - + 9 + - MIN( + 38 )
----
-13

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT ( - NULLIF ( - 34, - + 4 ) ) + - + 9 + - MIN ( + 38 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT COALESCE ( 33, + - MAX( DISTINCT 68 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT COALESCE ( 33, + - MAX ( DISTINCT 68 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT - 46 + + 82 + - + CASE - 85 WHEN + - 77 + + - 58 / - 78 * 24 * ( - + 94 ) / - NULLIF ( COUNT( * ), - + 71 ) * - + 61 - + 17 + - + 73 - + 58 + + ( - + 66 ) + - 75 * 73 * 19 THEN - COALESCE ( + 75, + 75 * + COUNT( * ) ) END * 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT - 46 + + 82 + - + CASE - 85 WHEN + - 77 + + - 58 / - 78 * 24 * ( - + 94 ) / - NULLIF ( COUNT ( * ), - + 71 ) * - + 61 - + 17 + - + 73 - + 58 + + ( - + 66 ) + - 75 * 73 * 19 THEN - COALESCE ( + 75, + 75 * + COUNT ( * ) ) END * 53 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT - 66 DIV 8
----
-8

skipif mysql # not compatible
query I rowsort label-6485
SELECT - 66 / 8
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT NULLIF ( - + NULLIF ( + - 76, - ( 93 ) * + - 75 + - - 84 + 93 ), - CAST( NULL AS SIGNED ) ) + 55 * 24 * - + 48 * COUNT( * )
----
-63284

skipif mysql # not compatible
query I rowsort label-6486
SELECT NULLIF ( - + NULLIF ( + - 76, - ( 93 ) * + - 75 + - - 84 + 93 ), - CAST ( NULL AS INTEGER ) ) + 55 * 24 * - + 48 * COUNT ( * )
----
-63284

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6487
SELECT 73 + - - MIN( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT 73 + - - MIN ( + + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT 11 / - - CASE WHEN + 74 IN ( + ( - - 3 ), + 16 * - + 87, + 18, MAX( ALL + 21 ) ) THEN - 74 - ( + - 18 ) ELSE NULL END + + 41 + + 85 * - - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT 11 / - - CASE WHEN + 74 IN ( + ( - - 3 ), + 16 * - + 87, + 18, MAX ( ALL + 21 ) ) THEN - 74 - ( + - 18 ) ELSE NULL END + + 41 + + 85 * - - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT DISTINCT + + COUNT( * ) * ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT + + COUNT ( * ) * ( COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT CAST( NULL AS SIGNED ) + - 43 / - COALESCE ( - - 50, - COUNT( * ), CAST( NULL AS SIGNED ) + + - ( 82 ) ) * + - COUNT( * ) + - 31 + - AVG ( - - 91 ) + + - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT CAST ( NULL AS INTEGER ) + - 43 / - COALESCE ( - - 50, - COUNT ( * ), CAST ( NULL AS INTEGER ) + + - ( 82 ) ) * + - COUNT ( * ) + - 31 + - AVG ( - - 91 ) + + - 88 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 35, + 89 ) * - 61 AS col2
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT - 88 * 32 - - 14 + + ( - - 92 ) * - 8 * - - 60 + 80 * + 59 * - ( 73 ) * + MAX( + 39 ) + + 0 * - 67 * + 79
----
-13484802

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT - 88 * 32 - - 14 + + ( - - 92 ) * - 8 * - - 60 + 80 * + 59 * - ( 73 ) * + MAX ( + 39 ) + + 0 * - 67 * + 79
----
-13484802

query I rowsort
SELECT ALL 38 * 94 AS col0
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL 74 * MIN( 43 ) - + 51
----
3131

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL 74 * MIN ( 43 ) - + 51
----
3131

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT + + 31 * + - 38 * + + 0 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6495
SELECT + + 31 * + - 38 * + + 0 * - + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 30 * - - 68 AS col2
----
2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6497
SELECT + COALESCE ( 47, - 88, - CAST( + + 76 AS SIGNED ) DIV ( COALESCE ( - + COUNT( * ), + + 1, - COALESCE ( - - 81, - 53 * - - 48 + 79 ) ) ) + 24 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6497
SELECT + COALESCE ( 47, - 88, - CAST ( + + 76 AS INTEGER ) / ( COALESCE ( - + COUNT ( * ), + + 1, - COALESCE ( - - 81, - 53 * - - 48 + 79 ) ) ) + 24 ) AS col1
----
47

query I rowsort
SELECT NULLIF ( - + 62, ( - 40 ) ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + 50 / + + NULLIF ( CASE - + 34 WHEN - 21 * - COUNT( * ) THEN + 45 + - 18 + + COUNT( * ) * 75 WHEN + 41 THEN + COUNT( - - 11 ) END, 80 + + 63 ) + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT + 50 / + + NULLIF ( CASE - + 34 WHEN - 21 * - COUNT ( * ) THEN + 45 + - 18 + + COUNT ( * ) * 75 WHEN + 41 THEN + COUNT ( - - 11 ) END, 80 + + 63 ) + - 79
----
NULL

query I rowsort
SELECT - 33 * + 75 col0
----
-2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6501
SELECT 12 * - + 24 + + 92 + - SUM( DISTINCT 89 ) * CAST( NULL AS SIGNED ) + - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT 12 * - + 24 + + 92 + - SUM ( DISTINCT 89 ) * CAST ( NULL AS INTEGER ) + - + 75
----
NULL

query II rowsort
SELECT + 65 AS col2, + 9
----
65
9

query I rowsort
SELECT ALL + 67 * - - 80 AS col2
----
5360

query II rowsort
SELECT ALL + 37 AS col2, ( - + 50 ) AS col2
----
37
-50

query I rowsort
SELECT - 50 + - 84
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT ALL + 77 * CAST( 35 AS SIGNED ) * 91
----
245245

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + 77 * CAST ( 35 AS INTEGER ) * 91
----
245245

query I rowsort
SELECT - 67 * 94
----
-6298

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT MAX( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6508
SELECT MAX ( 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6509
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 39 / - - AVG ( - 87 ) + - CAST( NULL AS SIGNED ) + + CAST( - 19 AS SIGNED ) * 19 + + + NULLIF ( CAST( NULL AS SIGNED ), - - 30 + + 43 * + 68 * - - 2 ) + - + 53 * 86 + + MIN( + 49 ) AS col1, + 3 AS col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6509
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 39 / - - AVG ( - 87 ) + - CAST ( NULL AS INTEGER ) + + CAST ( - 19 AS INTEGER ) * 19 + + + NULLIF ( CAST ( NULL AS INTEGER ), - - 30 + + 43 * + 68 * - - 2 ) + - + 53 * 86 + + MIN ( + 49 ) AS col1, + 3 AS col1
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6510
SELECT ALL - 5 + + MAX( ALL - 73 ), - 92 col0
----
-78
-92

skipif mysql # not compatible
query II rowsort label-6510
SELECT ALL - 5 + + MAX ( ALL - 73 ), - 92 col0
----
-78
-92

query I rowsort
SELECT ALL ( - 90 ) + - ( - 63 ) AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6512
SELECT + - 23 + + 7 - - - COUNT( * ) DIV 19
----
-16

skipif mysql # not compatible
query I rowsort label-6512
SELECT + - 23 + + 7 - - - COUNT ( * ) / 19
----
-16

query II rowsort
SELECT ALL + 75 AS col2, + 76 * + 79
----
75
6004

query I rowsort
SELECT + + 48 + 72 col0
----
120

query I rowsort
SELECT + ( - 47 ) * - + 45 * - 25 AS col0
----
-52875

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT ALL - - 39 DIV + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - - 39 / + 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN + 72 + + 81 * ( + 23 ) * - COUNT( * ) ELSE NULL END AS col2
----
1791

skipif mysql # not compatible
query I rowsort label-6517
SELECT - CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN + 72 + + 81 * ( + 23 ) * - COUNT ( * ) ELSE NULL END AS col2
----
1791

query I rowsort
SELECT + - 73 + + 72 AS col1
----
-1

query I rowsort
SELECT ALL - 68 + + 29 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL COUNT( 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL COUNT ( 67 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT - COUNT( * ) * - - ( - CAST( - - CASE - + COUNT( * ) WHEN + 37 THEN + COUNT( * ) WHEN + 2 * + COUNT( * ) + NULLIF ( + ( 32 ), + 40 ) THEN NULL ELSE NULL END AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT - COUNT ( * ) * - - ( - CAST ( - - CASE - + COUNT ( * ) WHEN + 37 THEN + COUNT ( * ) WHEN + 2 * + COUNT ( * ) + NULLIF ( + ( 32 ), + 40 ) THEN NULL ELSE NULL END AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6522
SELECT + CAST( + - ( - 48 ) AS SIGNED ) + 64 + 67
----
179

skipif mysql # not compatible
query I rowsort label-6522
SELECT + CAST ( + - ( - 48 ) AS INTEGER ) + 64 + 67
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-6523
SELECT ALL ( + + 24 ) * + - 9, ( 26 ) * 92 + - NULLIF ( + + COALESCE ( - NULLIF ( + - 24, - ( - CASE - + 52 WHEN COUNT( * ) THEN NULL WHEN - + 56 THEN 36 WHEN 48 THEN + - 84 END ) * 1 + - - 53 ), 64 * - + MAX( ( 14 ) ) + + 86, 88 ), + NULLIF ( MAX( ALL ( + ( + 11 ) ) ), 30 ) * ( - 66 ) + - 99 * COUNT( * ) ) AS col2
----
-216
2368

skipif mysql # not compatible
query II rowsort label-6523
SELECT ALL ( + + 24 ) * + - 9, ( 26 ) * 92 + - NULLIF ( + + COALESCE ( - NULLIF ( + - 24, - ( - CASE - + 52 WHEN COUNT ( * ) THEN NULL WHEN - + 56 THEN 36 WHEN 48 THEN + - 84 END ) * 1 + - - 53 ), 64 * - + MAX ( ( 14 ) ) + + 86, 88 ), + NULLIF ( MAX ( ALL ( + ( + 11 ) ) ), 30 ) * ( - 66 ) + - 99 * COUNT ( * ) ) AS col2
----
-216
2368

query I rowsort
SELECT ALL + + 34 * - 57 AS col2
----
-1938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT - 74 - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT - 74 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - - 80, - NULLIF ( - 53, - AVG ( + - 50 ) ) AS col2
----
80
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6527
SELECT DISTINCT 18 * + - COALESCE ( + 3, + 93 * + ( - 84 ) ) AS col1, + SUM( ALL - + 62 ) AS col1
----
-54
-62

skipif mysql # not compatible
query II rowsort label-6527
SELECT DISTINCT 18 * + - COALESCE ( + 3, + 93 * + ( - 84 ) ) AS col1, + SUM ( ALL - + 62 ) AS col1
----
-54
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT ALL + CASE - SUM( + + 26 ) WHEN 70 THEN NULL ELSE - + 54 + - - 62 END
----
8

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL + CASE - SUM ( + + 26 ) WHEN 70 THEN NULL ELSE - + 54 + - - 62 END
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL ( 75 ) * + 31 * + COUNT( * ) AS col0
----
2325

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL ( 75 ) * + 31 * + COUNT ( * ) AS col0
----
2325

query II rowsort
SELECT - - 56 AS col1, 55 * + 89 AS col0
----
56
4895

query I rowsort
SELECT - ( - 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL MIN( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL MIN ( + 75 )
----
75

query I rowsort
SELECT + + 86 - + + 51 AS col0
----
35

query II rowsort
SELECT + COALESCE ( - ( - 30 ), + 63 ), 39 AS col2
----
30
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT ALL 39 DIV - 21 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL 39 / - 21 AS col0
----
-1

query I rowsort
SELECT + ( + + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT + ( CASE + 99 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + - 97 - - + 8 THEN - - 56 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT + ( CASE + 99 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 97 - - + 8 THEN - - 56 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 80 * + 94 AS col2
----
7520

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT ALL 86 DIV - - COALESCE ( - ( - 70 ), + - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL 86 / - - COALESCE ( - ( - 70 ), + - 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT - 96 / 83 + 75 * + CASE 89 WHEN + 83 * 87 THEN - 83 WHEN + COUNT( * ) + - 4 THEN - 21 END - NULLIF ( - + 5, 47 / - + 51 + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT - 96 / 83 + 75 * + CASE 89 WHEN + 83 * 87 THEN - 83 WHEN + COUNT ( * ) + - 4 THEN - 21 END - NULLIF ( - + 5, 47 / - + 51 + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - MAX( - 24 ) * + + 62 + - 98 - 74 * - 19 + + 58 * 75 AS col0
----
7146

skipif mysql # not compatible
query I rowsort label-6541
SELECT - MAX ( - 24 ) * + + 62 + - 98 - 74 * - 19 + + 58 * 75 AS col0
----
7146

query I rowsort
SELECT + 44 + - - 5
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6543
SELECT - 50 * + - SUM( DISTINCT 28 ) / CAST( NULL AS SIGNED ) * - - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT - 50 * + - SUM ( DISTINCT 28 ) / CAST ( NULL AS INTEGER ) * - - 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6544
SELECT ( + 6 ) AS col2, COUNT( * ) DIV + 84 * - COUNT( * ) * - - 65 AS col2
----
6
0

skipif mysql # not compatible
query II rowsort label-6544
SELECT ( + 6 ) AS col2, COUNT ( * ) / + 84 * - COUNT ( * ) * - - 65 AS col2
----
6
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6545
SELECT - 68 DIV - - 36 AS col0, - 53
----
-1
-53

skipif mysql # not compatible
query II rowsort label-6545
SELECT - 68 / - - 36 AS col0, - 53
----
-1
-53

query I rowsort
SELECT DISTINCT + 19 * + 32 * + - 11 + 77 + + - NULLIF ( - 40, 8 + + + 51 )
----
-6571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT ALL - ( - + CAST( 34 AS SIGNED ) ) * 12 + - 58 * + 19
----
-694

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL - ( - + CAST ( 34 AS INTEGER ) ) * 12 + - 58 * + 19
----
-694

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6548
SELECT ( - - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT 82 * + 77 + - 84 * NULLIF ( + + 12, 40 )
----
5306

query I rowsort
SELECT ( - 7 ) col2
----
-7

query I rowsort
SELECT DISTINCT 51 * + 95 + 40 AS col2
----
4885

query I rowsort
SELECT ALL + ( - - 46 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6553
SELECT ALL + 9 * + CAST( NULL AS SIGNED ) + + - 87 / - COUNT( * ) + + + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL + 9 * + CAST ( NULL AS INTEGER ) + + - 87 / - COUNT ( * ) + + + 73 AS col2
----
NULL

query I rowsort
SELECT - + 94 * + ( - 55 )
----
5170

query I rowsort
SELECT - 7 * - - 36 - 57
----
-309

query I rowsort
SELECT DISTINCT - - 37 * - 44 * + + 75
----
-122100

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - - ( + + COUNT( * ) ) * 20 + 4 + - 39 + + 46 * - - COUNT( * ) - MIN( DISTINCT - 96 ) AS col0
----
127

skipif mysql # not compatible
query I rowsort label-6557
SELECT - - ( + + COUNT ( * ) ) * 20 + 4 + - 39 + + 46 * - - COUNT ( * ) - MIN ( DISTINCT - 96 ) AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT - 16 * - 5 - - COUNT( * ) + 25 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - 16 * - 5 - - COUNT ( * ) + 25 AS col0
----
106

query I rowsort
SELECT - 92 + + 70 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6560
SELECT ALL - - CASE 60 WHEN - ( + 44 ) + + + 48 THEN NULL WHEN 22 * - 72 THEN CAST( NULL AS SIGNED ) ELSE + 64 END * 94 + + 46 * + COUNT( * ) AS col2
----
6062

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL - - CASE 60 WHEN - ( + 44 ) + + + 48 THEN NULL WHEN 22 * - 72 THEN CAST ( NULL AS INTEGER ) ELSE + 64 END * 94 + + 46 * + COUNT ( * ) AS col2
----
6062

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT + MIN( - - 24 ), + COUNT( DISTINCT - 60 ) AS col1
----
24
1

skipif mysql # not compatible
query II rowsort label-6561
SELECT + MIN ( - - 24 ), + COUNT ( DISTINCT - 60 ) AS col1
----
24
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6562
SELECT DISTINCT - SUM( DISTINCT + + CAST( NULL AS DECIMAL ) ) / - - CAST( - - 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT - SUM ( DISTINCT + + CAST ( NULL AS REAL ) ) / - - CAST ( - - 16 AS INTEGER )
----
NULL

query I rowsort
SELECT - 3 + - - ( - 64 )
----
-67

query I rowsort
SELECT 2 * - - 41
----
82

query I rowsort
SELECT - 87 - 93
----
-180

query I rowsort
SELECT 63 * + 24 col1
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT COUNT( ALL - 28 ) + + ( + 54 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-6567
SELECT COUNT ( ALL - 28 ) + + ( + 54 ) col0
----
55

query I rowsort
SELECT ALL + 49 + - 59 AS col0
----
-10

query I rowsort
SELECT DISTINCT - 94 * + 1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL - NULLIF ( - - 41, - COUNT( * ) + + + 12 )
----
-41

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - NULLIF ( - - 41, - COUNT ( * ) + + + 12 )
----
-41

query I rowsort
SELECT DISTINCT 97 + 72
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT 85 DIV COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6572
SELECT 85 / COUNT ( * ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT 86 * + + 42 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT 86 * + + 42 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 32 + - + 65
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6575
SELECT - 4 / - CAST( NULL AS SIGNED ) * - 94 + - COUNT( * ) + + 37 * - - 55 / - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT - 4 / - CAST ( NULL AS INTEGER ) * - 94 + - COUNT ( * ) + + 37 * - - 55 / - 11
----
NULL

query I rowsort
SELECT DISTINCT 67 + + + 31 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT DISTINCT COUNT( * ) + + CAST( + 85 AS SIGNED ) col0
----
86

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT COUNT ( * ) + + CAST ( + 85 AS INTEGER ) col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT ALL 96 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL 96 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT - SUM( ALL + - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT - SUM ( ALL + - 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT DISTINCT COUNT( * ) + + 51 col0
----
52

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT COUNT ( * ) + + 51 col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6581
SELECT DISTINCT 31 DIV + 1 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT 31 / + 1 AS col0
----
31

query I rowsort
SELECT ALL - 87 - ( 27 )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT COUNT( * ) * + 13 * - - NULLIF ( ( + 48 ), - 83 + + 74 ) AS col2
----
624

skipif mysql # not compatible
query I rowsort label-6583
SELECT COUNT ( * ) * + 13 * - - NULLIF ( ( + 48 ), - 83 + + 74 ) AS col2
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT DISTINCT - MAX( DISTINCT + 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT - MAX ( DISTINCT + 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6585
SELECT ALL MAX( - 24 ) * - + 59 * - - 26 - - + 35 + - 29 - + 55 + - + ( - + 38 ) + 56 DIV 36 col2
----
36806

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL MAX ( - 24 ) * - + 59 * - - 26 - - + 35 + - 29 - + 55 + - + ( - + 38 ) + 56 / 36 col2
----
36806

onlyif mysql # DIV for integer division: 
query II rowsort label-6586
SELECT ALL 93 - - 95 * + 58, + 0 * + 11 + - - 91 - 7 DIV + - 65 + - 57 - - 34 + - ( + - ( 79 ) ) - + 96 + - ( + - 49 ) * 60 * COALESCE ( - 59, 77 ) * + 76 AS col1
----
5603
-13182909

skipif mysql # not compatible
query II rowsort label-6586
SELECT ALL 93 - - 95 * + 58, + 0 * + 11 + - - 91 - 7 / + - 65 + - 57 - - 34 + - ( + - ( 79 ) ) - + 96 + - ( + - 49 ) * 60 * COALESCE ( - 59, 77 ) * + 76 AS col1
----
5603
-13182909

query I rowsort
SELECT DISTINCT + 9 * 4
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - 76 * + MAX( - + ( - + 58 ) ) AS col1
----
-4408

skipif mysql # not compatible
query I rowsort label-6588
SELECT - 76 * + MAX ( - + ( - + 58 ) ) AS col1
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + 85 + - COUNT( * ) * + 26 + - 74
----
-15

skipif mysql # not compatible
query I rowsort label-6589
SELECT + 85 + - COUNT ( * ) * + 26 + - 74
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 48 + - + COUNT( * ) + + 41
----
88

skipif mysql # not compatible
query I rowsort label-6590
SELECT 48 + - + COUNT ( * ) + + 41
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT - CAST( + - 76 AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6591
SELECT - CAST ( + - 76 AS INTEGER ) AS col1
----
76

query I rowsort
SELECT DISTINCT ( 72 )
----
72

query II rowsort
SELECT - ( + 79 ) * - + 32 col0, + 76 AS col1
----
2528
76

query I rowsort
SELECT 40 + - 17
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL - + 67 * - 96 + - 7 - + 37 + - - COALESCE ( 24, 95 ) * + 95 * - COUNT( * ) AS col2
----
4108

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL - + 67 * - 96 + - 7 - + 37 + - - COALESCE ( 24, 95 ) * + 95 * - COUNT ( * ) AS col2
----
4108

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT - 75 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT - 75 / 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT 19 * 81 * + 77 - + 32 + ( COUNT( * ) ) - + 63 + ( + 13 )
----
118422

skipif mysql # not compatible
query I rowsort label-6597
SELECT 19 * 81 * + 77 - + 32 + ( COUNT ( * ) ) - + 63 + ( + 13 )
----
118422

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + SUM( + + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-6598
SELECT + SUM ( + + 55 )
----
55

query I rowsort
SELECT DISTINCT - 8 * + 87 AS col2
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL + 54 + - SUM( + ( - 99 ) ) AS col1
----
153

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL + 54 + - SUM ( + ( - 99 ) ) AS col1
----
153

query I rowsort
SELECT 2 * + 94 AS col0
----
188

query I rowsort
SELECT 76 * 93 * + - 93
----
-657324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6603
SELECT COUNT( * ) DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6603
SELECT COUNT ( * ) / + 96 AS col2
----
0

query I rowsort
SELECT ALL + 18 + - 22 - + 92 + - 79 * + COALESCE ( - 68, 13, + 12 ) - - 47 * + 79 AS col0
----
8989

query I rowsort
SELECT 92 - + + 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6606
SELECT 61 AS col1, 58 + + 77 - - COUNT( * ) AS col1
----
61
136

skipif mysql # not compatible
query II rowsort label-6606
SELECT 61 AS col1, 58 + + 77 - - COUNT ( * ) AS col1
----
61
136

query I rowsort
SELECT 1 * 80 AS col2
----
80

query II rowsort
SELECT ALL - 72, 1 + - + 35 AS col0
----
-72
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6609
SELECT ALL - 75 AS col1, + CAST( NULL AS SIGNED )
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-6609
SELECT ALL - 75 AS col1, + CAST ( NULL AS INTEGER )
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT COUNT( * ) AS col1, - 64 * COUNT( * )
----
1
-64

skipif mysql # not compatible
query II rowsort label-6610
SELECT COUNT ( * ) AS col1, - 64 * COUNT ( * )
----
1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT ALL 74 * + + COUNT( * ) + + + 37 + + + 6
----
117

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL 74 * + + COUNT ( * ) + + + 37 + + + 6
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT MAX( - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6612
SELECT MAX ( - 72 ) AS col0
----
-72

query I rowsort
SELECT ALL + 32 * - 36 - - 71
----
-1081

query I rowsort
SELECT 27 * + - 5 * - - 66 * 99
----
-882090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL - CAST( - 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL - CAST ( - 57 AS INTEGER ) AS col0
----
57

query I rowsort
SELECT - 11 * - 58 - 71 AS col0
----
567

onlyif mysql # aggregate syntax: 
query II rowsort label-6617
SELECT + 87, + CASE - 21 WHEN - ( - + 30 ) THEN - COUNT( * ) END * + 8 col0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6617
SELECT + 87, + CASE - 21 WHEN - ( - + 30 ) THEN - COUNT ( * ) END * + 8 col0
----
87
NULL

query I rowsort
SELECT - 49 * 94 + + + 83 - 54 + - 45 AS col1
----
-4622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6619
SELECT COUNT( * ) DIV COUNT( * ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-6619
SELECT COUNT ( * ) / COUNT ( * ) * - 74
----
-74

query I rowsort
SELECT ALL - 55 * 11 - - 63
----
-542

query I rowsort
SELECT 17 * 56 * + 58
----
55216

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT COUNT( ALL + 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6622
SELECT COUNT ( ALL + 90 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT COUNT( - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6623
SELECT COUNT ( - 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT - COALESCE ( 81, MAX( - - 32 ) ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6624
SELECT - COALESCE ( 81, MAX ( - - 32 ) ) AS col1
----
-81

query II rowsort
SELECT 86 AS col2, - 55 AS col1
----
86
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT - + 50 * 40 + - - SUM( DISTINCT 8 ) col2
----
-1992

skipif mysql # not compatible
query I rowsort label-6626
SELECT - + 50 * 40 + - - SUM ( DISTINCT 8 ) col2
----
-1992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6627
SELECT NULLIF ( 25, + 14 * - + ( - CAST( NULL AS SIGNED ) ) + + - 7 + - - 0 + + - 49 * + 90 * 73 ) * - - 20 col1, + 7 AS col2
----
500
7

skipif mysql # not compatible
query II rowsort label-6627
SELECT NULLIF ( 25, + 14 * - + ( - CAST ( NULL AS INTEGER ) ) + + - 7 + - - 0 + + - 49 * + 90 * 73 ) * - - 20 col1, + 7 AS col2
----
500
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT + 74 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT + 74 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 56 * 10
----
560

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT + 96 DIV - 60 + + 40
----
39

skipif mysql # not compatible
query I rowsort label-6630
SELECT + 96 / - 60 + + 40
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT ALL 66 DIV 89 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL 66 / 89 * + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 44 col2
----
44

query I rowsort
SELECT ALL 93 * + - 84 - 91
----
-7903

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT + 63 DIV - 30 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6634
SELECT + 63 / - 30 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6635
SELECT - - 84 DIV 81 + - + 52 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6635
SELECT - - 84 / 81 + - + 52 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT + + 64 * + COUNT( * ) - + - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6636
SELECT + + 64 * + COUNT ( * ) - + - COUNT ( * ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6637
SELECT - + 9 * + 55 * 38 + - CAST( NULL AS SIGNED ) + + 14 + + COUNT( * ) + - 43 AS col0, + SUM( DISTINCT 34 )
----
NULL
34

skipif mysql # not compatible
query II rowsort label-6637
SELECT - + 9 * + 55 * 38 + - CAST ( NULL AS INTEGER ) + + 14 + + COUNT ( * ) + - 43 AS col0, + SUM ( DISTINCT 34 )
----
NULL
34

query I rowsort
SELECT ALL + 4 + + 46 + + 71
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + - MAX( ALL - 94 ) - + 68 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6639
SELECT + - MAX ( ALL - 94 ) - + 68 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6640
SELECT - 19 col0, - 30 * - CASE - COUNT( * ) WHEN - - 7 THEN NULL WHEN - + 14 THEN NULL ELSE + + CAST( + 42 AS SIGNED ) - + + 39 END * + ( + 29 ) + + 70
----
-19
2680

skipif mysql # not compatible
query II rowsort label-6640
SELECT - 19 col0, - 30 * - CASE - COUNT ( * ) WHEN - - 7 THEN NULL WHEN - + 14 THEN NULL ELSE + + CAST ( + 42 AS INTEGER ) - + + 39 END * + ( + 29 ) + + 70
----
-19
2680

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT CASE - - 18 WHEN + 92 THEN - 8 * + 45 + - - 20 + + + COUNT( ALL - 77 ) * 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT CASE - - 18 WHEN + 92 THEN - 8 * + 45 + - - 20 + + + COUNT ( ALL - 77 ) * 34 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6642
SELECT - CAST( + 25 AS SIGNED ) AS col1, 66 / + - 11 - - + 41 - - CAST( CASE 92 WHEN - + 75 THEN - 19 + + COUNT( * ) ELSE NULL END AS SIGNED ) * 35
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-6642
SELECT - CAST ( + 25 AS INTEGER ) AS col1, 66 / + - 11 - - + 41 - - CAST ( CASE 92 WHEN - + 75 THEN - 19 + + COUNT ( * ) ELSE NULL END AS INTEGER ) * 35
----
-25
NULL

query I rowsort
SELECT ALL + + 27 + - + 86
----
-59

query I rowsort
SELECT + - 49 * - 32 * + + 3
----
4704

query I rowsort
SELECT ALL - 38 + + NULLIF ( + 71, 72 ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT - 22 - - CAST( + 14 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6646
SELECT - 22 - - CAST ( + 14 AS INTEGER ) AS col2
----
-8

query I rowsort
SELECT ALL 96 + 95 * - + 67 * + - 42 AS col0
----
267426

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + COUNT( * ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6648
SELECT + COUNT ( * ) + 87 AS col1
----
88

query II rowsort
SELECT ALL + 23 * + - 1 AS col1, - 34
----
-23
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT - 15 + - 10 DIV + + 85 * - 63 * - - 13 * 93 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6650
SELECT - 15 + - 10 / + + 85 * - 63 * - - 13 * 93 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT - 21 - - - 39 + COALESCE ( + 51, - 73 + - 97 ) DIV + - 61 + 70 DIV - 96 * 24
----
-60

skipif mysql # not compatible
query I rowsort label-6651
SELECT - 21 - - - 39 + COALESCE ( + 51, - 73 + - 97 ) / + - 61 + 70 / - 96 * 24
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL 97 - + SUM( DISTINCT + - ( - 64 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL 97 - + SUM ( DISTINCT + - ( - 64 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - 67 + 18 + + - COUNT( + 55 ) * ( - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-6653
SELECT - 67 + 18 + + - COUNT ( + 55 ) * ( - 50 )
----
1

query I rowsort
SELECT - 85 * - - ( - 88 ) AS col0
----
7480

query I rowsort
SELECT ( + 54 ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6656
SELECT - 45 * ( - - 4 ) + + - 86 / + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * - + ( + + 35 ) - - 52 + - SUM( ALL + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 45 * ( - - 4 ) + + - 86 / + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * - + ( + + 35 ) - - 52 + - SUM ( ALL + 34 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6657
SELECT - 49 DIV + - 39
----
1

skipif mysql # not compatible
query I rowsort label-6657
SELECT - 49 / + - 39
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6658
SELECT 60 * + 64 + - COUNT( * ) * + ( + + CAST( NULL AS SIGNED ) ) AS col0, ( - - 68 ) AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-6658
SELECT 60 * + 64 + - COUNT ( * ) * + ( + + CAST ( NULL AS INTEGER ) ) AS col0, ( - - 68 ) AS col0
----
NULL
68

query I rowsort
SELECT - 25 * + - 25 AS col1
----
625

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6660
SELECT + 31 * + - 55 AS col2, - 42 + - 46 DIV + CAST( - 64 AS SIGNED ) - - 68 AS col0
----
-1705
26

skipif mysql # not compatible
query II rowsort label-6660
SELECT + 31 * + - 55 AS col2, - 42 + - 46 / + CAST ( - 64 AS INTEGER ) - - 68 AS col0
----
-1705
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT ALL + MAX( + CAST( + 7 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL + MAX ( + CAST ( + 7 AS INTEGER ) )
----
7

query II rowsort
SELECT ( - + 19 ) AS col0, - 29
----
-19
-29

query I rowsort
SELECT + CASE 16 WHEN + 70 THEN NULL ELSE 32 END AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL ( + 47 ) * - CASE 87 WHEN - 11 * + + 41 + + 4 + + - 28 THEN + + 57 END * - CAST( - 28 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL ( + 47 ) * - CASE 87 WHEN - 11 * + + 41 + + 4 + + - 28 THEN + + 57 END * - CAST ( - 28 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - - COUNT( DISTINCT + - 93 ) * - 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6666
SELECT - - COUNT ( DISTINCT + - 93 ) * - 66 AS col0
----
-66

query I rowsort
SELECT DISTINCT + + ( - + NULLIF ( - + 68, - 28 * 84 + 79 - - 40 ) ) * - 26 + + 18
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL + SUM( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + SUM ( 43 )
----
43

query I rowsort
SELECT + ( - + 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT - CASE 40 WHEN - NULLIF ( - 48, + - 69 * + COUNT( * ) / CASE + 96 WHEN - 17 THEN NULL WHEN 64 THEN NULL ELSE - 4 END * 64 ) THEN 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT - CASE 40 WHEN - NULLIF ( - 48, + - 69 * + COUNT ( * ) / CASE + 96 WHEN - 17 THEN NULL WHEN 64 THEN NULL ELSE - 4 END * 64 ) THEN 43 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 51 col2
----
51

query I rowsort
SELECT + 83 + + 51 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT ALL 87 * - - 73 + + - 76 + + COUNT( * ) * - 41 * 77 * - - 26
----
-75807

skipif mysql # not compatible
query I rowsort label-6673
SELECT ALL 87 * - - 73 + + - 76 + + COUNT ( * ) * - 41 * 77 * - - 26
----
-75807

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT ALL COUNT( * ) DIV - - COUNT( * ) + 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL COUNT ( * ) / - - COUNT ( * ) + 57 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL NULLIF ( SUM( DISTINCT - + 52 ), 63 ) * 61 + + 16 AS col0
----
-3156

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL NULLIF ( SUM ( DISTINCT - + 52 ), 63 ) * 61 + + 16 AS col0
----
-3156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT + + 61 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT + + 61 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL + + 50 * + 8 + + 73 + 19 * + ( - 43 ) + COALESCE ( + 56, + 35 * - 63, - - COUNT( * ) ) * - 71 + COUNT( * )
----
-4319

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL + + 50 * + 8 + + 73 + 19 * + ( - 43 ) + COALESCE ( + 56, + 35 * - 63, - - COUNT ( * ) ) * - 71 + COUNT ( * )
----
-4319

query I rowsort
SELECT + - 86 + 71
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6679
SELECT ALL CAST( 33 AS DECIMAL ) * - CASE - + ( + + 11 ) WHEN + 91 THEN NULL WHEN + COUNT( DISTINCT + ( + - ( + 6 ) ) ) THEN - 21 END * + AVG ( ALL 50 ) + - - 13 + + 60 AS col1, + 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-6679
SELECT ALL CAST ( 33 AS REAL ) * - CASE - + ( + + 11 ) WHEN + 91 THEN NULL WHEN + COUNT ( DISTINCT + ( + - ( + 6 ) ) ) THEN - 21 END * + AVG ( ALL 50 ) + - - 13 + + 60 AS col1, + 17
----
NULL
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6680
SELECT - 16 * CAST( NULL AS SIGNED ) + + + 6 + - ( - COALESCE ( ( + 68 ), CASE - 64 WHEN - + COUNT( * ) * + 26 THEN - 71 WHEN + ( + - 79 ) * 24 * + 63 * + ( + ( 70 ) ) + - CAST( - - 70 AS SIGNED ) + + 64 * + 76 * ( - - 77 ) * 16 + 86 + - 41 + 1 THEN + MAX( DISTINCT ( 35 ) ) ELSE COALESCE ( - COUNT( * ), - 29 - + 76 * - SUM( - 44 ) ) * - 90 END * - 21, + 72 + + 60 * 88 ) ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT - 16 * CAST ( NULL AS INTEGER ) + + + 6 + - ( - COALESCE ( ( + 68 ), CASE - 64 WHEN - + COUNT ( * ) * + 26 THEN - 71 WHEN + ( + - 79 ) * 24 * + 63 * + ( + ( 70 ) ) + - CAST ( - - 70 AS INTEGER ) + + 64 * + 76 * ( - - 77 ) * 16 + 86 + - 41 + 1 THEN + MAX ( DISTINCT ( 35 ) ) ELSE COALESCE ( - COUNT ( * ), - 29 - + 76 * - SUM ( - 44 ) ) * - 90 END * - 21, + 72 + + 60 * 88 ) ) * - 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT + CAST( + 19 AS SIGNED ) * - - 94 AS col1
----
1786

skipif mysql # not compatible
query I rowsort label-6681
SELECT + CAST ( + 19 AS INTEGER ) * - - 94 AS col1
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT - COALESCE ( - + 47, 57 * + 85 + + COUNT( * ) * + - 59 - - 59 )
----
47

skipif mysql # not compatible
query I rowsort label-6682
SELECT - COALESCE ( - + 47, 57 * + 85 + + COUNT ( * ) * + - 59 - - 59 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT + 27 + CASE SUM( DISTINCT - 56 ) WHEN + MIN( - 22 ) THEN NULL WHEN + COUNT( * ) + 39 THEN - COUNT( * ) * - CASE 48 WHEN - - 71 THEN + 39 END / - - 60 + - 69 END / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT + 27 + CASE SUM ( DISTINCT - 56 ) WHEN + MIN ( - 22 ) THEN NULL WHEN + COUNT ( * ) + 39 THEN - COUNT ( * ) * - CASE 48 WHEN - - 71 THEN + 39 END / - - 60 + - 69 END / - 3
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6684
SELECT + NULLIF ( - 86, - 89 ) * - 0 * 94 DIV + 17 AS col2, 70 * 70 * + - 39 AS col2
----
0
-191100

skipif mysql # not compatible
query II rowsort label-6684
SELECT + NULLIF ( - 86, - 89 ) * - 0 * 94 / + 17 AS col2, 70 * 70 * + - 39 AS col2
----
0
-191100

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT + 98 * + + 9 * - COALESCE ( - COUNT( * ), + + 85, + 97 * - + 10 ) AS col0
----
882

skipif mysql # not compatible
query I rowsort label-6685
SELECT + 98 * + + 9 * - COALESCE ( - COUNT ( * ), + + 85, + 97 * - + 10 ) AS col0
----
882

query I rowsort
SELECT - ( - 4 ) col2
----
4

query I rowsort
SELECT - 21 + 53 + + - 4 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL 80 * + 56 * + COALESCE ( COUNT( * ), - - 59 )
----
4480

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL 80 * + 56 * + COALESCE ( COUNT ( * ), - - 59 )
----
4480

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT ALL + 18 - - + 5 * 96 * + + 8 AS col2, COUNT( ALL - 16 )
----
3858
1

skipif mysql # not compatible
query II rowsort label-6689
SELECT ALL + 18 - - + 5 * 96 * + + 8 AS col2, COUNT ( ALL - 16 )
----
3858
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6690
SELECT + 9 * + CAST( 77 AS SIGNED ), 3 + + - 38 AS col0
----
693
-35

skipif mysql # not compatible
query II rowsort label-6690
SELECT + 9 * + CAST ( 77 AS INTEGER ), 3 + + - 38 AS col0
----
693
-35

query I rowsort
SELECT DISTINCT ( - - 46 )
----
46

query I rowsort
SELECT ALL ( - 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL SUM( ALL + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL SUM ( ALL + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT + 73 * + - COUNT( * ) DIV - - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6694
SELECT + 73 * + - COUNT ( * ) / - - 83 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6695
SELECT ALL COALESCE ( 34, CASE - 93 WHEN - + 96 / 90 * COUNT( * ) + - - 68 + + + CASE WHEN 10 IS NOT NULL THEN - 2 WHEN NOT NULL NOT IN ( ( + CAST( NULL AS DECIMAL ) ) * + MIN( ALL 5 ) + 51 + + 88 ) THEN - 44 + - 26 ELSE NULL END / + 24 - COUNT( * ) * + 37 * + - 82 + + 61 * + AVG ( ALL + 25 ) + + 22 / + SUM( - ( - COALESCE ( + 28, - 4 ) ) - 98 ) THEN 69 END * + ( + COUNT( DISTINCT + 38 ) ), 13 - + 27 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL COALESCE ( 34, CASE - 93 WHEN - + 96 / 90 * COUNT ( * ) + - - 68 + + + CASE WHEN 10 IS NOT NULL THEN - 2 WHEN NOT NULL NOT IN ( ( + CAST ( NULL AS REAL ) ) * + MIN ( ALL 5 ) + 51 + + 88 ) THEN - 44 + - 26 ELSE NULL END / + 24 - COUNT ( * ) * + 37 * + - 82 + + 61 * + AVG ( ALL + 25 ) + + 22 / + SUM ( - ( - COALESCE ( + 28, - 4 ) ) - 98 ) THEN 69 END * + ( + COUNT ( DISTINCT + 38 ) ), 13 - + 27 ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT CASE + - 98 WHEN - 48 * - - 23 THEN + 46 + COUNT( * ) * - - 91 WHEN + 84 THEN NULL ELSE + 8 END AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT CASE + - 98 WHEN - 48 * - - 23 THEN + 46 + COUNT ( * ) * - - 91 WHEN + 84 THEN NULL ELSE + 8 END AS col0
----
8

query I rowsort
SELECT + 8 * + - 25 AS col1
----
-200

query I rowsort
SELECT + 25 - + 70 col0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT - NULLIF ( - 43, + 95 DIV + COUNT( * ) + + 44 + 21 * - 66 ) * + COUNT( * ) DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6699
SELECT - NULLIF ( - 43, + 95 / + COUNT ( * ) + + 44 + 21 * - 66 ) * + COUNT ( * ) / + 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL + MAX( ALL + + 77 ) * + 63 AS col1
----
4851

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + MAX ( ALL + + 77 ) * + 63 AS col1
----
4851

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT ALL + 0 AS col2, COUNT( * ) - - 24 + + + 15 + + + 83
----
0
123

skipif mysql # not compatible
query II rowsort label-6701
SELECT ALL + 0 AS col2, COUNT ( * ) - - 24 + + + 15 + + + 83
----
0
123

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT DISTINCT + 48 AS col2, + COUNT( * ) AS col2
----
48
1

skipif mysql # not compatible
query II rowsort label-6702
SELECT DISTINCT + 48 AS col2, + COUNT ( * ) AS col2
----
48
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6703
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * + - 1, 52 AS col0
----
-2
52

skipif mysql # not compatible
query II rowsort label-6703
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * + - 1, 52 AS col0
----
-2
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT + 69 * - 55 * 62 - + COUNT( * )
----
-235291

skipif mysql # not compatible
query I rowsort label-6704
SELECT + 69 * - 55 * 62 - + COUNT ( * )
----
-235291

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6705
SELECT CAST( - + 8 AS SIGNED ) DIV 72, + 21 AS col0
----
0
21

skipif mysql # not compatible
query II rowsort label-6705
SELECT CAST ( - + 8 AS INTEGER ) / 72, + 21 AS col0
----
0
21

query I rowsort
SELECT ALL - + 62 col1
----
-62

query I rowsort
SELECT 46 * 8
----
368

query I rowsort
SELECT ALL + + 48 + 24 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6709
SELECT - 54 / + 4 + - 87 * + 3 / + 65 * - CAST( NULL AS SIGNED ) - - 43 * + NULLIF ( 72, - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT - 54 / + 4 + - 87 * + 3 / + 65 * - CAST ( NULL AS INTEGER ) - - 43 * + NULLIF ( 72, - 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6710
SELECT ALL - - 28 AS col0, - 45 + + COUNT( * )
----
28
-44

skipif mysql # not compatible
query II rowsort label-6710
SELECT ALL - - 28 AS col0, - 45 + + COUNT ( * )
----
28
-44

query I rowsort
SELECT DISTINCT - ( 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT + - 47 + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT + - 47 + COUNT ( * ) AS col2
----
-46

query II rowsort
SELECT ALL - - 11, - 99 * + 30 col2
----
11
-2970

query II rowsort
SELECT + + 71 AS col1, 80 + - 31 AS col1
----
71
49

query I rowsort
SELECT ALL - 1 + + + 24 * - + 69 * 42
----
-69553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT DISTINCT + 43 + CAST( NULL AS SIGNED ) + NULLIF ( - + 92, + 34 / COUNT( * ) / + 96 + + CAST( - 63 AS SIGNED ) ) - 46 * - + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + 43 + CAST ( NULL AS INTEGER ) + NULLIF ( - + 92, + 34 / COUNT ( * ) / + 96 + + CAST ( - 63 AS INTEGER ) ) - 46 * - + 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT + CASE + 1 WHEN + NULLIF ( + COUNT( * ), - - 40 + + - COUNT( * ) * + - MAX( ALL 59 ) + 53 ) + - 72 THEN - - 35 ELSE - 91 END AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-6717
SELECT + CASE + 1 WHEN + NULLIF ( + COUNT ( * ), - - 40 + + - COUNT ( * ) * + - MAX ( ALL 59 ) + 53 ) + - 72 THEN - - 35 ELSE - 91 END AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL + 21 * - 21 * + COUNT( * ) AS col0
----
-441

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + 21 * - 21 * + COUNT ( * ) AS col0
----
-441

query I rowsort
SELECT ALL - + 78 col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT + COALESCE ( - 35, - 23, 66 + 4 DIV + 42 )
----
-35

skipif mysql # not compatible
query I rowsort label-6720
SELECT + COALESCE ( - 35, - 23, 66 + 4 / + 42 )
----
-35

query II rowsort
SELECT 1 AS col1, + 62 * - 62
----
1
-3844

query I rowsort
SELECT ALL + + ( - - 91 ) * - 78
----
-7098

query II rowsort
SELECT ALL 16 AS col2, 38 AS col2
----
16
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT MAX( ALL + 42 ) - - 69 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-6724
SELECT MAX ( ALL + 42 ) - - 69 AS col1
----
111

query I rowsort
SELECT 1 + 7 + - 70 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL 3 - + 96 - COUNT( * ) - - COUNT( * ) + - 85 * + 82
----
-7063

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL 3 - + 96 - COUNT ( * ) - - COUNT ( * ) + - 85 * + 82
----
-7063

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT 21 * - + COUNT( * ) * + 99 AS col1
----
-2079

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT 21 * - + COUNT ( * ) * + 99 AS col1
----
-2079

query I rowsort
SELECT ALL 56 * + 85
----
4760

query I rowsort
SELECT 36 - + 75 AS col0
----
-39

query I rowsort
SELECT ALL 68 - + 67
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT COUNT( * ) + - - 14 + + 76 + + 12
----
103

skipif mysql # not compatible
query I rowsort label-6731
SELECT COUNT ( * ) + - - 14 + + 76 + + 12
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT NULLIF ( - 0, + + 35 ) + + COUNT( * ) * - + 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6732
SELECT NULLIF ( - 0, + + 35 ) + + COUNT ( * ) * - + 28 AS col1
----
-28

query I rowsort
SELECT 20 * 93 * + 47 * 97 AS col2
----
8479740

query I rowsort
SELECT ALL 20 * - 28 col0
----
-560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6735
SELECT 62 / - COALESCE ( - 0, 85 + - 99 + COUNT( * ), + 82 * + NULLIF ( + CAST( NULL AS SIGNED ), + 3 / - 74 / - 31 + - 67 * + 45 ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6735
SELECT 62 / - COALESCE ( - 0, 85 + - 99 + COUNT ( * ), + 82 * + NULLIF ( + CAST ( NULL AS INTEGER ), + 3 / - 74 / - 31 + - 67 * + 45 ) ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6736
SELECT ALL 96 * - 31 AS col2, COUNT( * ) DIV - 91
----
-2976
0

skipif mysql # not compatible
query II rowsort label-6736
SELECT ALL 96 * - 31 AS col2, COUNT ( * ) / - 91
----
-2976
0

query I rowsort
SELECT ( - 91 ) * + - 99
----
9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT CAST( 57 AS SIGNED ) + - 37 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6738
SELECT CAST ( 57 AS INTEGER ) + - 37 AS col2
----
20

query II rowsort
SELECT + 63 + + - 24 AS col1, 81
----
39
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6740
SELECT NULLIF ( COUNT( * ), MIN( + - CAST( 76 AS DECIMAL ) ) + - 7 + - 14 + 50 * 18 * - + CASE 92 WHEN CAST( NULL AS DECIMAL ) + - COALESCE ( + 25, CAST( - ( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) / + + 45 - 6 - - + 7 + 93, 11 ) * - 27 THEN + CASE + + 99 WHEN 75 THEN + 43 WHEN + 82 - - 65 THEN NULL END * 97 + 97 * + CAST( NULL AS DECIMAL ) END )
----
1

skipif mysql # not compatible
query I rowsort label-6740
SELECT NULLIF ( COUNT ( * ), MIN ( + - CAST ( 76 AS REAL ) ) + - 7 + - 14 + 50 * 18 * - + CASE 92 WHEN CAST ( NULL AS REAL ) + - COALESCE ( + 25, CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS REAL ) / + + 45 - 6 - - + 7 + 93, 11 ) * - 27 THEN + CASE + + 99 WHEN 75 THEN + 43 WHEN + 82 - - 65 THEN NULL END * 97 + 97 * + CAST ( NULL AS REAL ) END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL 55 + - COUNT( * ) + - - 23
----
77

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL 55 + - COUNT ( * ) + - - 23
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT + COUNT( * ) / - 97 + + COUNT( * ) * 84 * + + 47 + + CAST( NULL AS SIGNED ) - - + CASE 21 WHEN 23 / - MIN( DISTINCT 35 ) * + 45 + + 9 THEN NULL ELSE + 93 + + 84 END + - 30 + + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT + COUNT ( * ) / - 97 + + COUNT ( * ) * 84 * + + 47 + + CAST ( NULL AS INTEGER ) - - + CASE 21 WHEN 23 / - MIN ( DISTINCT 35 ) * + 45 + + 9 THEN NULL ELSE + 93 + + 84 END + - 30 + + 69 AS col1
----
NULL

query I rowsort
SELECT - ( - - 28 ) AS col2
----
-28

query I rowsort
SELECT ALL - 5 + + 85 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL + - 20 + - - COUNT( * ) + - - 20 * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + - 20 + - - COUNT ( * ) + - - 20 * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + 79 * - + 62 AS col1
----
-4898

query I rowsort
SELECT DISTINCT - + 16 + + 90
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT 78 DIV + 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6748
SELECT 78 / + 1 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6749
SELECT ALL - + CAST( NULL AS SIGNED ) / + 17 / 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL - + CAST ( NULL AS INTEGER ) / + 17 / 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT + COALESCE ( - 49, + - 68 + - 88 ) * COUNT( * ) + + 54 * - - 8, 84 + 62 AS col0
----
383
146

skipif mysql # not compatible
query II rowsort label-6750
SELECT + COALESCE ( - 49, + - 68 + - 88 ) * COUNT ( * ) + + 54 * - - 8, 84 + 62 AS col0
----
383
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT - 45 * + - COUNT( * ) + + + COUNT( * ) * MAX( + + 26 ) + - 74
----
-3

skipif mysql # not compatible
query I rowsort label-6751
SELECT - 45 * + - COUNT ( * ) + + + COUNT ( * ) * MAX ( + + 26 ) + - 74
----
-3

query I rowsort
SELECT 5 - - 14 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL - COUNT( DISTINCT 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - COUNT ( DISTINCT 1 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6754
SELECT ALL - COALESCE ( CAST( + ( - + SUM( ALL 86 ) ) AS SIGNED ), - MAX( DISTINCT - 6 ) * 0 + - 26 + - 56 ) * - - 64 col0
----
5504

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - COALESCE ( CAST ( + ( - + SUM ( ALL 86 ) ) AS INTEGER ), - MAX ( DISTINCT - 6 ) * 0 + - 26 + - 56 ) * - - 64 col0
----
5504

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT COUNT( + ( - 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT COUNT ( + ( - 49 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT 27 + - 52 * + MIN( + 20 ) * 32 + + 75 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT 27 + - 52 * + MIN ( + 20 ) * 32 + + 75 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 1 * + 90
----
-90

query I rowsort
SELECT 10 * + 49 AS col1
----
490

query I rowsort
SELECT 46 + 22 + 61
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL CASE + COUNT( * ) WHEN 23 THEN - + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL CASE + COUNT ( * ) WHEN 23 THEN - + 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT DISTINCT COALESCE ( 27, - - SUM( + + 60 ) * - - 63, - 79 )
----
27

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT COALESCE ( 27, - - SUM ( + + 60 ) * - - 63, - 79 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT 65 * - NULLIF ( + 62, + + COUNT( * ) )
----
-4030

skipif mysql # not compatible
query I rowsort label-6762
SELECT 65 * - NULLIF ( + 62, + + COUNT ( * ) )
----
-4030

query I rowsort
SELECT DISTINCT - 83 + - 15 AS col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT + 55 DIV - 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT + 55 / - 85 AS col2
----
0

query I rowsort
SELECT ALL 66 + 12
----
78

query I rowsort
SELECT ALL COALESCE ( + 82, 91 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT - SUM( + + 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6767
SELECT - SUM ( + + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6768
SELECT ALL 93, + COUNT( * ) DIV - 4 AS col2
----
93
0

skipif mysql # not compatible
query II rowsort label-6768
SELECT ALL 93, + COUNT ( * ) / - 4 AS col2
----
93
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT DISTINCT 13 DIV 12 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT 13 / 12 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - COUNT( ALL 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6770
SELECT - COUNT ( ALL 35 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 95 + + 93
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT + + 31 - - CAST( NULL AS SIGNED ) + + 39 + - + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT + + 31 - - CAST ( NULL AS INTEGER ) + + 39 + - + 99 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT + 10 DIV 6 - + - ( 57 )
----
58

skipif mysql # not compatible
query I rowsort label-6774
SELECT + 10 / 6 - + - ( 57 )
----
58

query II rowsort
SELECT ALL + + 66, - 14 * 41 * - + NULLIF ( - 39, - 9 ) AS col0
----
66
-22386

query I rowsort
SELECT DISTINCT + COALESCE ( + - 33, 30, + 10 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT + + MAX( DISTINCT 89 ) * + ( - 21 ) AS col2
----
-1869

skipif mysql # not compatible
query I rowsort label-6777
SELECT + + MAX ( DISTINCT 89 ) * + ( - 21 ) AS col2
----
-1869

query I rowsort
SELECT ALL 14 * 55 * - - 50 + - ( + ( 96 ) )
----
38404

query I rowsort
SELECT + 7 + + 63 + - 75 * - + 4 AS col0
----
370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT + ( - 42 ) col2
----
-42

query I rowsort
SELECT ALL 73 * - 4
----
-292

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + + SUM( ALL - + 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-6783
SELECT + + SUM ( ALL - + 41 )
----
-41

query I rowsort
SELECT ALL 57 * 13 AS col0
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL + COUNT( ALL + NULLIF ( + 56, - - 24 + 25 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL + COUNT ( ALL + NULLIF ( + 56, - - 24 + 25 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT COUNT( ALL - 20 ) * - - 20
----
20

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT COUNT ( ALL - 20 ) * - - 20
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-6787
SELECT ALL + 65 AS col1, 28 DIV + + 16 col0
----
65
1

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL + 65 AS col1, 28 / + + 16 col0
----
65
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6788
SELECT - 17 * + - ( + + CAST( NULL AS SIGNED ) ) * - COUNT( * ) + 14 + - ( SUM( ALL - 67 ) ) * + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT - 17 * + - ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + 14 + - ( SUM ( ALL - 67 ) ) * + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT + 33 * + 24 * COUNT( * ) col1
----
792

skipif mysql # not compatible
query I rowsort label-6789
SELECT + 33 * + 24 * COUNT ( * ) col1
----
792

query I rowsort
SELECT - 79 * - 26 - - + 72 + + - 95 * - 21 AS col2
----
4121

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT + 9 * - + SUM( DISTINCT 76 )
----
-684

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 9 * - + SUM ( DISTINCT 76 )
----
-684

onlyif mysql # aggregate syntax: 
query II rowsort label-6792
SELECT - 12 AS col1, COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-6792
SELECT - 12 AS col1, COUNT ( * )
----
-12
1

query I rowsort
SELECT ALL - ( 59 ) * + 39 + - + ( - 77 )
----
-2224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT - CAST( + + 49 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6794
SELECT - CAST ( + + 49 AS INTEGER ) AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6795
SELECT - 3 + + - 63 DIV - 42 * COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6795
SELECT - 3 + + - 63 / - 42 * COUNT ( * ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT ALL + 24 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + 24 / 91
----
0

query I rowsort
SELECT ALL ( - + 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT DISTINCT COUNT( - ( 78 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT COUNT ( - ( 78 ) )
----
1

query I rowsort
SELECT DISTINCT - 52 + - - 5
----
-47

query I rowsort
SELECT ALL + 97 + - - 91 AS col0
----
188

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT - CASE - 36 WHEN 20 THEN + COUNT( * ) * - + 24 + + ( 25 ) ELSE NULL END - 61 * - + NULLIF ( - 24, + + 87 ) col0, 80 + + - 58 + - - 68
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6801
SELECT - CASE - 36 WHEN 20 THEN + COUNT ( * ) * - + 24 + + ( 25 ) ELSE NULL END - 61 * - + NULLIF ( - 24, + + 87 ) col0, 80 + + - 58 + - - 68
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL - 70 + + NULLIF ( 47, + - 56 + + ( - + MAX( 33 ) ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - 70 + + NULLIF ( 47, + - 56 + + ( - + MAX ( 33 ) ) ) AS col2
----
-23

query I rowsort
SELECT + 43 + 87 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - 49 - - SUM( ALL + 44 ) * - + 85 + - 0 AS col0
----
-3789

skipif mysql # not compatible
query I rowsort label-6804
SELECT - 49 - - SUM ( ALL + 44 ) * - + 85 + - 0 AS col0
----
-3789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6805
SELECT ALL + 98 + SUM( - 4 ) * + - CAST( NULL AS SIGNED ) + + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL + 98 + SUM ( - 4 ) * + - CAST ( NULL AS INTEGER ) + + + 27
----
NULL

query II rowsort
SELECT + 82, 12 * - 25 AS col0
----
82
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT + - COUNT( * ) + + 68 + - ( - 55 ) DIV 46 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + - COUNT ( * ) + + 68 + - ( - 55 ) / 46 AS col0
----
68

query II rowsort
SELECT ALL 26 AS col1, 0 * + 19
----
26
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6809
SELECT ALL + + 74 - 62 DIV COUNT( * ) * + 82 + + - COUNT( DISTINCT - + 51 ) + ( + 80 ) AS col2
----
-4931

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + + 74 - 62 / COUNT ( * ) * + 82 + + - COUNT ( DISTINCT - + 51 ) + ( + 80 ) AS col2
----
-4931

query I rowsort
SELECT DISTINCT ( - + 25 ) AS col0
----
-25

query I rowsort
SELECT - 38 + 39 * - 88 - + 74 + - - 76 col1
----
-3468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6812
SELECT DISTINCT - CAST( ( 21 ) AS SIGNED ) * 79
----
-1659

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT - CAST ( ( 21 ) AS INTEGER ) * 79
----
-1659

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT + 77, CASE WHEN NOT ( - 20 ) IS NOT NULL THEN NULL WHEN NOT NULL NOT BETWEEN ( CASE - + NULLIF ( 5, - - 46 + - 61 ) WHEN + - COALESCE ( 17, 48 * + - 57 ) + - 90 + + 73 * + + COUNT( * ) - - ( - 23 ) * + + COALESCE ( - - 29, COUNT( * ) ) * - CASE + SUM( - ( 6 ) ) WHEN + 82 THEN + + 64 WHEN + + 10 * - ( - 4 ) * - 65 THEN - 53 END * 16 + COUNT( * ) THEN - COUNT( * ) WHEN + 49 THEN NULL ELSE NULL END ) AND ( + 78 ) * 88 THEN ( + COUNT( * ) ) + + 87 ELSE + ( 52 ) END + 59 AS col2
----
77
111

skipif mysql # not compatible
query II rowsort label-6813
SELECT + 77, CASE WHEN NOT ( - 20 ) IS NOT NULL THEN NULL WHEN NOT NULL NOT BETWEEN ( CASE - + NULLIF ( 5, - - 46 + - 61 ) WHEN + - COALESCE ( 17, 48 * + - 57 ) + - 90 + + 73 * + + COUNT ( * ) - - ( - 23 ) * + + COALESCE ( - - 29, COUNT ( * ) ) * - CASE + SUM ( - ( 6 ) ) WHEN + 82 THEN + + 64 WHEN + + 10 * - ( - 4 ) * - 65 THEN - 53 END * 16 + COUNT ( * ) THEN - COUNT ( * ) WHEN + 49 THEN NULL ELSE NULL END ) AND ( + 78 ) * 88 THEN ( + COUNT ( * ) ) + + 87 ELSE + ( 52 ) END + 59 AS col2
----
77
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6814
SELECT + ( - 97 ) + + ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT + ( - 97 ) + + ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + 39 AS col2
----
NULL

query I rowsort
SELECT - - 34 * - 83
----
-2822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT DISTINCT + 23 * - COUNT( * ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT + 23 * - COUNT ( * ) / 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT + CAST( + ( 94 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-6817
SELECT + CAST ( + ( 94 ) AS INTEGER )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-6818
SELECT 89 AS col1, 31 DIV - 3 + - 71 - - 76 * 38 * - 70
----
89
-202241

skipif mysql # not compatible
query II rowsort label-6818
SELECT 89 AS col1, 31 / - 3 + - 71 - - 76 * 38 * - 70
----
89
-202241

query I rowsort
SELECT ALL - 90 * + 16 col2
----
-1440

query I rowsort
SELECT ALL 67 * + ( - - 96 )
----
6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT - - CASE + CASE + COUNT( * ) WHEN + 79 THEN 84 * - ( - 35 ) END WHEN + + 71 - 87 THEN NULL ELSE - NULLIF ( + COUNT( DISTINCT + + 41 ), 9 ) DIV + 41 - + - 27 END DIV + 83 + - 79 - + 40 * + 72
----
-2959

skipif mysql # not compatible
query I rowsort label-6821
SELECT - - CASE + CASE + COUNT ( * ) WHEN + 79 THEN 84 * - ( - 35 ) END WHEN + + 71 - 87 THEN NULL ELSE - NULLIF ( + COUNT ( DISTINCT + + 41 ), 9 ) / + 41 - + - 27 END / + 83 + - 79 - + 40 * + 72
----
-2959

query I rowsort
SELECT DISTINCT + - 57 * - 15 AS col2
----
855

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT + 50 + + 99 DIV 36
----
52

skipif mysql # not compatible
query I rowsort label-6823
SELECT + 50 + + 99 / 36
----
52

query I rowsort
SELECT DISTINCT + + 89 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT DISTINCT - 71 * + COUNT( * ) AS col2, + 47 * - COUNT( * )
----
-71
-47

skipif mysql # not compatible
query II rowsort label-6825
SELECT DISTINCT - 71 * + COUNT ( * ) AS col2, + 47 * - COUNT ( * )
----
-71
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL + - ( SUM( ALL - + 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + - ( SUM ( ALL - + 1 ) )
----
1

query II rowsort
SELECT + 45 * 15 AS col2, 89 AS col1
----
675
89

query I rowsort
SELECT - 57 * + - 16 AS col2
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT + 39 + 92 + - 10 - - 88 * - COUNT( * ) + - 97 * + 68 col2
----
-6563

skipif mysql # not compatible
query I rowsort label-6829
SELECT + 39 + 92 + - 10 - - 88 * - COUNT ( * ) + - 97 * + 68 col2
----
-6563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6830
SELECT - 13 * - - ( 8 ) + + CAST( + SUM( - 10 ) AS DECIMAL ) * - 20 * - - CASE + ( + 83 ) WHEN - COUNT( * ) + - 0 THEN NULL WHEN MAX( DISTINCT 7 ) * + - 6 THEN - 91 + CAST( - + ( - COALESCE ( 77, + - 91 + - - ( 63 ) ) ) AS SIGNED ) * + + 47 / + - ( + 53 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 13 * - - ( 8 ) + + CAST ( + SUM ( - 10 ) AS REAL ) * - 20 * - - CASE + ( + 83 ) WHEN - COUNT ( * ) + - 0 THEN NULL WHEN MAX ( DISTINCT 7 ) * + - 6 THEN - 91 + CAST ( - + ( - COALESCE ( 77, + - 91 + - - ( 63 ) ) ) AS INTEGER ) * + + 47 / + - ( + 53 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( + + 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL 6 * - + 38 + + - 49 * + 87 + + + COUNT( * )
----
-4490

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL 6 * - + 38 + + - 49 * + 87 + + + COUNT ( * )
----
-4490

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT 65 * - 99 * + 51 + 20 - COUNT( * ) * - COALESCE ( - COUNT( * ), - - 41 ) * - 30
----
-328135

skipif mysql # not compatible
query I rowsort label-6833
SELECT 65 * - 99 * + 51 + 20 - COUNT ( * ) * - COALESCE ( - COUNT ( * ), - - 41 ) * - 30
----
-328135

query I rowsort
SELECT ALL 73 * 76 AS col0
----
5548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT COALESCE ( ( + - 92 ), CASE - 42 WHEN + - 17 THEN + MAX( 21 ) * + 44 END * + 65 + - ( + + 59 ) * 26 * - CASE + 29 WHEN 10 THEN + - 54 END + CASE 44 WHEN 31 THEN - - 42 WHEN - + 12 THEN NULL ELSE - 97 END + - 89 + NULLIF ( COALESCE ( + 8, + 34 ), - 3 * + 10 ) + - 65 DIV - 31 DIV 48 - 97 DIV - 92 DIV + 46 - 63, COUNT( * ), - 26 ) * CASE + 15 WHEN COUNT( * ) THEN COUNT( * ) WHEN 96 THEN NULL ELSE 76 END
----
-6992

skipif mysql # not compatible
query I rowsort label-6835
SELECT COALESCE ( ( + - 92 ), CASE - 42 WHEN + - 17 THEN + MAX ( 21 ) * + 44 END * + 65 + - ( + + 59 ) * 26 * - CASE + 29 WHEN 10 THEN + - 54 END + CASE 44 WHEN 31 THEN - - 42 WHEN - + 12 THEN NULL ELSE - 97 END + - 89 + NULLIF ( COALESCE ( + 8, + 34 ), - 3 * + 10 ) + - 65 / - 31 / 48 - 97 / - 92 / + 46 - 63, COUNT ( * ), - 26 ) * CASE + 15 WHEN COUNT ( * ) THEN COUNT ( * ) WHEN 96 THEN NULL ELSE 76 END
----
-6992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT ALL + 29 + CAST( - 22 AS SIGNED ) * + + 18
----
-367

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL + 29 + CAST ( - 22 AS INTEGER ) * + + 18
----
-367

query I rowsort
SELECT ALL - 65 + - + 49 col1
----
-114

query I rowsort
SELECT 61 + - 22
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL 37 * 48 * + COUNT( * ) AS col0
----
1776

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL 37 * 48 * + COUNT ( * ) AS col0
----
1776

onlyif mysql # aggregate syntax: 
query II rowsort label-6840
SELECT 71 + + 8 AS col2, - ( ( - 64 ) ) + - COUNT( ALL COALESCE ( 20, - - 37 ) )
----
79
63

skipif mysql # not compatible
query II rowsort label-6840
SELECT 71 + + 8 AS col2, - ( ( - 64 ) ) + - COUNT ( ALL COALESCE ( 20, - - 37 ) )
----
79
63

query II rowsort
SELECT 80 + - 93, 10 AS col0
----
-13
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6842
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + - 38, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6842
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + - 38, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 96 * + 4 AS col1
----
384

query I rowsort
SELECT 69 * - 62 col1
----
-4278

query I rowsort
SELECT ALL + + 51 * + 69
----
3519

query I rowsort
SELECT ALL - 29 - - - 42 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL + - COUNT( * ) * + 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + - COUNT ( * ) * + 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL + NULLIF ( + 87, 25 + COUNT( * ) ) * - 84 + + + 4 AS col0
----
-7304

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + NULLIF ( + 87, 25 + COUNT ( * ) ) * - 84 + + + 4 AS col0
----
-7304

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT - MAX( DISTINCT 93 ) AS col1, 54 - SUM( - + 1 )
----
-93
55

skipif mysql # not compatible
query II rowsort label-6849
SELECT - MAX ( DISTINCT 93 ) AS col1, 54 - SUM ( - + 1 )
----
-93
55

query I rowsort
SELECT - 98 * - - 57 * + 46 + 7 * + 6
----
-256914

query I rowsort
SELECT 15 * + 48
----
720

query I rowsort
SELECT 17 - + - 14 + - 64
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT + NULLIF ( + COUNT( * ), - COUNT( * ) / + 27 * + - 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6853
SELECT + NULLIF ( + COUNT ( * ), - COUNT ( * ) / + 27 * + - 34 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL + 33 * - + MIN( + - 26 )
----
858

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + 33 * - + MIN ( + - 26 )
----
858

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6855
SELECT 94 * + 3 * 56 AS col2, + 96 DIV - 98 + - ( - 32 ) + - 29 - 88 * - COUNT( * )
----
15792
91

skipif mysql # not compatible
query II rowsort label-6855
SELECT 94 * + 3 * 56 AS col2, + 96 / - 98 + - ( - 32 ) + - 29 - 88 * - COUNT ( * )
----
15792
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT - 39 + + + CAST( NULL AS SIGNED ) * - - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT - 39 + + + CAST ( NULL AS INTEGER ) * - - 74 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL - CASE 32 WHEN COALESCE ( 99, + CAST( NULL AS SIGNED ), 27 * - 31 * + - COUNT( * ) - - 67 + + + 80 ) * 58 * 84 THEN + 57 / - + 98 + 50 * 81 + 39 WHEN 78 / - - ( - 45 ) + - MIN( ALL + 94 ) + + + MIN( ALL + - 18 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - CASE 32 WHEN COALESCE ( 99, + CAST ( NULL AS INTEGER ), 27 * - 31 * + - COUNT ( * ) - - 67 + + + 80 ) * 58 * 84 THEN + 57 / - + 98 + 50 * 81 + 39 WHEN 78 / - - ( - 45 ) + - MIN ( ALL + 94 ) + + + MIN ( ALL + - 18 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT CASE + - 24 WHEN 21 * - AVG ( DISTINCT - 15 ) THEN + ( + 96 ) WHEN + 37 + + 95 + COUNT( * ) THEN 36 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT CASE + - 24 WHEN 21 * - AVG ( DISTINCT - 15 ) THEN + ( + 96 ) WHEN + 37 + + 95 + COUNT ( * ) THEN 36 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL - SUM( + 47 ) * - COUNT( + NULLIF ( - 17, + 3 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL - SUM ( + 47 ) * - COUNT ( + NULLIF ( - 17, + 3 ) ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT DISTINCT - - MAX( + + 89 ) AS col2, + 6 * 93 * + ( + + 20 ) + 70 + + COUNT( * ) AS col2
----
89
11231

skipif mysql # not compatible
query II rowsort label-6860
SELECT DISTINCT - - MAX ( + + 89 ) AS col2, + 6 * 93 * + ( + + 20 ) + 70 + + COUNT ( * ) AS col2
----
89
11231

query I rowsort
SELECT ( - 81 ) * - 51
----
4131

query I rowsort
SELECT - 70 * - - 52 AS col1
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL - MAX( - 1 ) + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL - MAX ( - 1 ) + 94 AS col2
----
95

query I rowsort
SELECT ALL + 42 * + 47 AS col2
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT - COUNT( * ) * 62 + + - 95
----
-157

skipif mysql # not compatible
query I rowsort label-6865
SELECT - COUNT ( * ) * 62 + + - 95
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6866
SELECT ALL 91 + + NULLIF ( SUM( + - CAST( + 48 AS SIGNED ) ), + 91 ) / + 53 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL 91 + + NULLIF ( SUM ( + - CAST ( + 48 AS INTEGER ) ), + 91 ) / + 53 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT 59 AS col0, 90 + + + ( + 60 ) + MIN( - 98 ) AS col0
----
59
52

skipif mysql # not compatible
query II rowsort label-6867
SELECT 59 AS col0, 90 + + + ( + 60 ) + MIN ( - 98 ) AS col0
----
59
52

query II rowsort
SELECT 72, + 98 col0
----
72
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL 55 + + COUNT( * ) + - 34 - CASE + + 96 WHEN + 39 THEN NULL WHEN 39 THEN - COUNT( * ) ELSE + ( + COUNT( * ) ) + + 93 + - - 36 END AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL 55 + + COUNT ( * ) + - 34 - CASE + + 96 WHEN + 39 THEN NULL WHEN 39 THEN - COUNT ( * ) ELSE + ( + COUNT ( * ) ) + + 93 + - - 36 END AS col0
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT 45 AS col0, + COUNT( * ) AS col0
----
45
1

skipif mysql # not compatible
query II rowsort label-6870
SELECT 45 AS col0, + COUNT ( * ) AS col0
----
45
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6871
SELECT ALL 31 + NULLIF ( 14, + COUNT( ALL 55 ) + + + CAST( NULL AS SIGNED ) ) col1
----
45

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL 31 + NULLIF ( 14, + COUNT ( ALL 55 ) + + + CAST ( NULL AS INTEGER ) ) col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6872
SELECT + COUNT( * ) * - COUNT( * ) * - 17 DIV + - COUNT( * ) - + - 50 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6872
SELECT + COUNT ( * ) * - COUNT ( * ) * - 17 / + - COUNT ( * ) - + - 50 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT 61 + 2 + SUM( DISTINCT - - ( + - 80 ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6873
SELECT 61 + 2 + SUM ( DISTINCT - - ( + - 80 ) ) AS col2
----
-17

query I rowsort
SELECT ( 54 ) + - 23 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT SUM( CAST( 42 AS SIGNED ) ) + - + CASE 30 WHEN + 47 THEN NULL WHEN 55 THEN - COUNT( * ) END * + 17 * 90 / + 5 + ( + 66 ) + - 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT SUM ( CAST ( 42 AS INTEGER ) ) + - + CASE 30 WHEN + 47 THEN NULL WHEN 55 THEN - COUNT ( * ) END * + 17 * 90 / + 5 + ( + 66 ) + - 15 col2
----
NULL

query I rowsort
SELECT ALL + 58 - 60
----
-2

query II rowsort
SELECT DISTINCT + 58 AS col0, - 24 * - - 59 AS col2
----
58
-1416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT ALL - CASE + + AVG ( ALL + 53 ) WHEN + + 1 * 64 + 6 THEN COUNT( * ) WHEN - - 52 - - - 96 * + + 83 THEN - - MAX( DISTINCT - 93 ) * + - 33 * - 27 * - COUNT( * ) + + 9 + - CAST( NULL AS SIGNED ) * - COALESCE ( + - ( - 15 ), - 63, - COALESCE ( - 85, + 84 ) * + - 46 ) / 61 + + ( + - MAX( DISTINCT + + 29 ) ) END * 98 + 45 * - + COUNT( ALL 3 ) / 4 + 96 * COALESCE ( + 86 * 23, SUM( 99 ) * COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - CASE + + AVG ( ALL + 53 ) WHEN + + 1 * 64 + 6 THEN COUNT ( * ) WHEN - - 52 - - - 96 * + + 83 THEN - - MAX ( DISTINCT - 93 ) * + - 33 * - 27 * - COUNT ( * ) + + 9 + - CAST ( NULL AS INTEGER ) * - COALESCE ( + - ( - 15 ), - 63, - COALESCE ( - 85, + 84 ) * + - 46 ) / 61 + + ( + - MAX ( DISTINCT + + 29 ) ) END * 98 + 45 * - + COUNT ( ALL 3 ) / 4 + 96 * COALESCE ( + 86 * 23, SUM ( 99 ) * COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT CASE - + CAST( NULL AS SIGNED ) WHEN + 98 THEN + 9 WHEN + + 34 THEN + + 90 END - - + 55 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT CASE - + CAST ( NULL AS INTEGER ) WHEN + 98 THEN + 9 WHEN + + 34 THEN + + 90 END - - + 55 + 24
----
NULL

query I rowsort
SELECT - 29 + 8
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT ALL 99 - + MAX( DISTINCT - + 40 ) DIV - ( + 39 ) + + 50
----
148

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL 99 - + MAX ( DISTINCT - + 40 ) / - ( + 39 ) + + 50
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6882
SELECT COUNT ( * ) * - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT 53 + + COUNT( ALL - 81 )
----
54

skipif mysql # not compatible
query I rowsort label-6883
SELECT 53 + + COUNT ( ALL - 81 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT 40 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT 40 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT MAX( + 77 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT MAX ( + 77 ) col0
----
77

query I rowsort
SELECT - 96 + - 45
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6887
SELECT 63 DIV - COUNT( DISTINCT + - 79 ) + + - ( - 95 ) - - 29
----
61

skipif mysql # not compatible
query I rowsort label-6887
SELECT 63 / - COUNT ( DISTINCT + - 79 ) + + - ( - 95 ) - - 29
----
61

query I rowsort
SELECT 78 + 80 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL + SUM( ALL - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + SUM ( ALL - 24 ) AS col0
----
-24

query I rowsort
SELECT ALL - ( + 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL + 12 + - + 73 + MIN( DISTINCT - - 73 ) + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + 12 + - + 73 + MIN ( DISTINCT - - 73 ) + + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 45 + + 48
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6893
SELECT + COUNT( * ) AS col1, 5 AS col0
----
1
5

skipif mysql # not compatible
query II rowsort label-6893
SELECT + COUNT ( * ) AS col1, 5 AS col0
----
1
5

query I rowsort
SELECT ( - - 13 ) + - - 69 * - + 21 * - - NULLIF ( - 40, - 41 * - 42 ) - - 27 + 62 AS col0
----
58062

query I rowsort
SELECT ALL + - 27 * + - 65
----
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT COUNT( * ) * - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6896
SELECT COUNT ( * ) * - 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + NULLIF ( + ( + 13 ), + MIN( ALL + 22 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6897
SELECT + NULLIF ( + ( + 13 ), + MIN ( ALL + 22 ) ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6898
SELECT NULLIF ( + + 87, - CAST( - 46 AS SIGNED ) ), - 16 AS col1
----
87
-16

skipif mysql # not compatible
query II rowsort label-6898
SELECT NULLIF ( + + 87, - CAST ( - 46 AS INTEGER ) ), - 16 AS col1
----
87
-16

query I rowsort
SELECT ALL - 53 * 86 + - + CASE - + 70 WHEN AVG ( ALL - 85 ) THEN - 36 + - 38 END
----
NULL

query I rowsort
SELECT - 3 + 43
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT 98 * 3 + COUNT( ALL + ( + 44 ) )
----
295

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT 98 * 3 + COUNT ( ALL + ( + 44 ) )
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT - 56 * + MIN( DISTINCT 87 ) AS col1
----
-4872

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT - 56 * + MIN ( DISTINCT 87 ) AS col1
----
-4872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6903
SELECT DISTINCT ( - 81 ) * - 78 + + ( + 85 ) - - CAST( + + 19 AS SIGNED ), 68 col0
----
6422
68

skipif mysql # not compatible
query II rowsort label-6903
SELECT DISTINCT ( - 81 ) * - 78 + + ( + 85 ) - - CAST ( + + 19 AS INTEGER ), 68 col0
----
6422
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6904
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col1, 78 - - MIN( DISTINCT - - 57 ) + + + 83 + - 43
----
NULL
175

skipif mysql # not compatible
query II rowsort label-6904
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col1, 78 - - MIN ( DISTINCT - - 57 ) + + + 83 + - 43
----
NULL
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6905
SELECT ALL COUNT( * ) * + 99 + - 15 DIV 1 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL COUNT ( * ) * + 99 + - 15 / 1 AS col2
----
84

query I rowsort
SELECT + 26 + 74 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - 37 + 29 * + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-6907
SELECT - 37 + 29 * + - COUNT ( * )
----
-66

query I rowsort
SELECT + 66 * + 5 + + - 99
----
231

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6909
SELECT + CAST( NULL AS DECIMAL ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT + CAST ( NULL AS REAL ) + 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6910
SELECT DISTINCT COUNT( * ) * 69 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT COUNT ( * ) * 69 / - 38
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6911
SELECT ALL 1 - + 26 * - + MAX( + 8 ), 29 AS col1
----
209
29

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL 1 - + 26 * - + MAX ( + 8 ), 29 AS col1
----
209
29

query I rowsort
SELECT DISTINCT - 94 * 21
----
-1974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT + CAST( - 79 AS SIGNED ) * 89 AS col2
----
-7031

skipif mysql # not compatible
query I rowsort label-6913
SELECT + CAST ( - 79 AS INTEGER ) * 89 AS col2
----
-7031

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + COUNT( * ) * + CASE MAX( - 64 ) WHEN 51 THEN - 27 END / + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT + COUNT ( * ) * + CASE MAX ( - 64 ) WHEN 51 THEN - 27 END / + + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL NULLIF ( - NULLIF ( - COUNT( * ), - - 87 / 4 + 15 ), - 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL NULLIF ( - NULLIF ( - COUNT ( * ), - - 87 / 4 + 15 ), - 38 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6916
SELECT - + COUNT( * ) * 81 AS col2, CAST( 85 AS SIGNED ) + 10 AS col0
----
-81
95

skipif mysql # not compatible
query II rowsort label-6916
SELECT - + COUNT ( * ) * 81 AS col2, CAST ( 85 AS INTEGER ) + 10 AS col0
----
-81
95

query I rowsort
SELECT - 71 * + 91
----
-6461

query I rowsort
SELECT DISTINCT 28 * 21
----
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT ALL - CASE + + 39 WHEN COUNT( ALL 36 ) THEN COUNT( 90 ) * - - ( 49 ) * CAST( NULL AS SIGNED ) + + 85 + 23 * - - 96 * - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - CASE + + 39 WHEN COUNT ( ALL 36 ) THEN COUNT ( 90 ) * - - ( 49 ) * CAST ( NULL AS INTEGER ) + + 85 + 23 * - - 96 * - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + + 22 * + 80
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL 47 * COUNT( * ) * 81 AS col0
----
3807

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL 47 * COUNT ( * ) * 81 AS col0
----
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT 56 + - COUNT( DISTINCT + 84 ) * + 20
----
36

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT 56 + - COUNT ( DISTINCT + 84 ) * + 20
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6923
SELECT + 74 + CAST( - 11 AS SIGNED ) + - 46 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6923
SELECT + 74 + CAST ( - 11 AS INTEGER ) + - 46 AS col2
----
17

query I rowsort
SELECT + 43 * + 66 + 99 AS col0
----
2937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT ALL 13 + - - 34 + 64 * + CASE - 98 WHEN + - CASE + 86 WHEN + 13 + + - 86 / - 33 THEN 43 END THEN + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL 13 + - - 34 + 64 * + CASE - 98 WHEN + - CASE + 86 WHEN + 13 + + - 86 / - 33 THEN 43 END THEN + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - NULLIF ( - 64, - 78 * + 72 )
----
64

query I rowsort
SELECT ALL ( + 89 ) AS col1
----
89

query I rowsort
SELECT ALL - 1 + - 12
----
-13

query I rowsort
SELECT + - 95 - + 69
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT DISTINCT SUM( DISTINCT + - 22 ) DIV + MIN( DISTINCT + + 4 ) + 3 + - + 17 - - - 38 + + 27 DIV + 53 * + 68 * + COUNT( * ) + - - 8 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT SUM ( DISTINCT + - 22 ) / + MIN ( DISTINCT + + 4 ) + 3 + - + 17 - - - 38 + + 27 / + 53 * + 68 * + COUNT ( * ) + - - 8 AS col2
----
-49

query I rowsort
SELECT ALL + COALESCE ( + 51, + - 46 )
----
51

query I rowsort
SELECT + ( - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6933
SELECT ALL COUNT( * ) DIV - 47 + + 0 * - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL COUNT ( * ) / - 47 + + 0 * - 73 AS col1
----
0

query I rowsort
SELECT ALL + 70 * - 64
----
-4480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6935
SELECT DISTINCT + ( + 62 ) / + + 50 - + 59 * COUNT( * ) * ( 20 ) - + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT + ( + 62 ) / + + 50 - + 59 * COUNT ( * ) * ( 20 ) - + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ( + - ( - ( + + 45 ) ) )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT + 25 DIV + ( + + 34 ) - + - 22
----
22

skipif mysql # not compatible
query I rowsort label-6937
SELECT + 25 / + ( + + 34 ) - + - 22
----
22

query I rowsort
SELECT ( + 34 ) AS col1
----
34

query I rowsort
SELECT + 96 * + 24
----
2304

query I rowsort
SELECT ( + - NULLIF ( - 0, + 71 ) ) AS col2
----
0

query I rowsort
SELECT ALL - 7 * + + NULLIF ( 95, 25 ) AS col2
----
-665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6942
SELECT DISTINCT + COALESCE ( + MIN( - 15 ), + 1 DIV - COUNT( - ( ( - 7 ) ) ) * + - 73 + 64 )
----
-15

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT + COALESCE ( + MIN ( - 15 ), + 1 / - COUNT ( - ( ( - 7 ) ) ) * + - 73 + 64 )
----
-15

query II rowsort
SELECT ALL + 44 col2, - 12 - + + ( - 42 )
----
44
30

query I rowsort
SELECT - 66 * 86
----
-5676

query I rowsort
SELECT ALL 72 * 75
----
5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT ALL + CAST( - 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + CAST ( - 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6947
SELECT DISTINCT + COALESCE ( + 11, + CAST( NULL AS SIGNED ) * - + ( - 21 ) ) col0, - ( + 64 ) + + 20
----
11
-44

skipif mysql # not compatible
query II rowsort label-6947
SELECT DISTINCT + COALESCE ( + 11, + CAST ( NULL AS INTEGER ) * - + ( - 21 ) ) col0, - ( + 64 ) + + 20
----
11
-44

query I rowsort
SELECT 44 * ( + 90 ) + + + 7
----
3967

query I rowsort
SELECT ALL + 3 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT - 42 + + CAST( - + 66 AS SIGNED ) + + 3 * + + 76 + + 98 - - 17 * - COUNT( * ) + - 87 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-6950
SELECT - 42 + + CAST ( - + 66 AS INTEGER ) + + 3 * + + 76 + + 98 - - 17 * - COUNT ( * ) + - 87 AS col0
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6951
SELECT - - COALESCE ( COUNT( * ), - 6 * - 22 DIV - - ( 64 ) ) DIV - - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT - - COALESCE ( COUNT ( * ), - 6 * - 22 / - - ( 64 ) ) / - - 94 AS col0
----
0

query I rowsort
SELECT + - 12 * 40 AS col2
----
-480

query I rowsort
SELECT - - 1 + 93 + - - 16
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT ALL + 95 DIV ( - 41 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + 95 / ( - 41 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT ALL - CASE + + 97 WHEN - COUNT( * ) + + + COUNT( * ) THEN NULL ELSE + COUNT( * ) END AS col1, MIN( DISTINCT + - 46 ) AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-6955
SELECT ALL - CASE + + 97 WHEN - COUNT ( * ) + + + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col1, MIN ( DISTINCT + - 46 ) AS col2
----
-1
-46

query I rowsort
SELECT ALL 17 * 65 AS col0
----
1105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6957
SELECT ALL + - 27 * + MIN( ALL + 44 ) + 44 DIV - - 55 AS col0, COUNT( * ) * 74 AS col1
----
-1188
74

skipif mysql # not compatible
query II rowsort label-6957
SELECT ALL + - 27 * + MIN ( ALL + 44 ) + 44 / - - 55 AS col0, COUNT ( * ) * 74 AS col1
----
-1188
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6958
SELECT - COALESCE ( - + 15, ( - - 55 ) ) * CAST( - 25 AS SIGNED ) DIV - CASE - AVG ( + 8 ) WHEN + - MAX( - 60 ) THEN NULL WHEN - - 32 + - 6 THEN NULL ELSE + 3 END
----
125

skipif mysql # not compatible
query I rowsort label-6958
SELECT - COALESCE ( - + 15, ( - - 55 ) ) * CAST ( - 25 AS INTEGER ) / - CASE - AVG ( + 8 ) WHEN + - MAX ( - 60 ) THEN NULL WHEN - - 32 + - 6 THEN NULL ELSE + 3 END
----
125

query I rowsort
SELECT + 14 + 38
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL - MAX( DISTINCT + - 70 ) * 23
----
1610

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL - MAX ( DISTINCT + - 70 ) * 23
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - COUNT( DISTINCT 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-6961
SELECT - COUNT ( DISTINCT 67 )
----
-1

query I rowsort
SELECT + + 85 + + 76 AS col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6963
SELECT - ( + CAST( - - 15 AS SIGNED ) ) AS col1, - NULLIF ( + 82, 33 )
----
-15
-82

skipif mysql # not compatible
query II rowsort label-6963
SELECT - ( + CAST ( - - 15 AS INTEGER ) ) AS col1, - NULLIF ( + 82, 33 )
----
-15
-82

query I rowsort
SELECT DISTINCT + 63 + + 4 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT - - ( + ( - CAST( NULL AS SIGNED ) ) ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT - - ( + ( - CAST ( NULL AS INTEGER ) ) ) + 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT - CAST( - + 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6966
SELECT - CAST ( - + 77 AS INTEGER ) AS col0
----
77

query I rowsort
SELECT ALL + 30 + + 46
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT CAST( NULL AS SIGNED ) + 56 * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT CAST ( NULL AS INTEGER ) + 56 * + 6 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 77 col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6970
SELECT ALL COUNT( * ) * + 60 DIV - 54 + - 51 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL COUNT ( * ) * + 60 / - 54 + - 51 AS col0
----
-52

query I rowsort
SELECT DISTINCT 9 * + 90 AS col2
----
810

query I rowsort
SELECT ALL 27 - - 67 + - + 18 AS col2
----
76

query I rowsort
SELECT ALL 39 * + 27
----
1053

query II rowsort
SELECT 45 AS col2, 10 * 41 + + ( - 46 )
----
45
364

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT 84 * - + MIN( ALL 21 ) + + 32
----
-1732

skipif mysql # not compatible
query I rowsort label-6975
SELECT 84 * - + MIN ( ALL 21 ) + + 32
----
-1732

query I rowsort
SELECT + 58 * + + 26 + + 68 AS col1
----
1576

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ( 9 ) * 28 - + COUNT( * ) * + COUNT( * ) + + 33
----
284

skipif mysql # not compatible
query I rowsort label-6977
SELECT ( 9 ) * 28 - + COUNT ( * ) * + COUNT ( * ) + + 33
----
284

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT + 21 DIV - 11 + 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6978
SELECT + 21 / - 11 + 84 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6979
SELECT DISTINCT - 3, - CAST( - + 4 AS SIGNED ) * 33 - + - 46 AS col2
----
-3
178

skipif mysql # not compatible
query II rowsort label-6979
SELECT DISTINCT - 3, - CAST ( - + 4 AS INTEGER ) * 33 - + - 46 AS col2
----
-3
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6980
SELECT ALL MIN( 5 ) DIV - 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL MIN ( 5 ) / - 8 AS col0
----
0

query I rowsort
SELECT ( - 80 ) * + + 91 AS col0
----
-7280

query I rowsort
SELECT 90 * + ( 34 ) AS col2
----
3060

onlyif mysql # aggregate syntax: 
query II rowsort label-6983
SELECT ALL - COUNT( * ), ( - 45 ) col1
----
-1
-45

skipif mysql # not compatible
query II rowsort label-6983
SELECT ALL - COUNT ( * ), ( - 45 ) col1
----
-1
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT 69 AS col0, 88 - COUNT( * ) AS col1
----
69
87

skipif mysql # not compatible
query II rowsort label-6984
SELECT 69 AS col0, 88 - COUNT ( * ) AS col1
----
69
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6985
SELECT - 82 / - 46 / - CASE - 61 WHEN 75 * - COUNT( * ) THEN NULL WHEN + COALESCE ( MIN( - 83 ), + CAST( NULL AS SIGNED ) ) * SUM( ALL - 46 ) THEN - 87 END + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT - 82 / - 46 / - CASE - 61 WHEN 75 * - COUNT ( * ) THEN NULL WHEN + COALESCE ( MIN ( - 83 ), + CAST ( NULL AS INTEGER ) ) * SUM ( ALL - 46 ) THEN - 87 END + + 74
----
NULL

query I rowsort
SELECT 15 + - 87 + + 13
----
-59

query I rowsort
SELECT ALL 19 + ( + 8 )
----
27

query I rowsort
SELECT + - ( - - 3 ) AS col0
----
-3

query II rowsort
SELECT + 91 AS col2, 20 AS col2
----
91
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6990
SELECT DISTINCT - 79 AS col1, 49 AS col2, - - CAST( NULL AS SIGNED ) AS col0
----
-79
49
NULL

skipif mysql # not compatible
query III rowsort label-6990
SELECT DISTINCT - 79 AS col1, 49 AS col2, - - CAST ( NULL AS INTEGER ) AS col0
----
-79
49
NULL

query I rowsort
SELECT DISTINCT - 8 + 91
----
83

query I rowsort
SELECT ALL + - 87 + 35
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL + - 12 + - COUNT( * ) - + 93 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL + - 12 + - COUNT ( * ) - + 93 AS col2
----
-106

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6994
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-6994
SELECT ALL - CAST ( NULL AS REAL ) AS col1, 40 AS col2
----
NULL
40

query I rowsort
SELECT ALL NULLIF ( + ( - 35 ), 10 )
----
-35

query II rowsort
SELECT 68, 74 AS col2
----
68
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT + COUNT( * ) DIV + COUNT( + 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6997
SELECT + COUNT ( * ) / + COUNT ( + 77 ) AS col0
----
1

query I rowsort
SELECT - - 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT CASE 15 WHEN + CASE + - 85 WHEN + 95 THEN - COUNT( ALL + 57 ) / + 72 * + 18 END / - - CASE - ( + COALESCE ( 65, 18 - - + 20 * - - COALESCE ( + ( - 2 ), + + MIN( + ( - 0 ) ) + 22 ) ) ) WHEN - 48 THEN - 26 ELSE - 94 END * 9 + - SUM( + ( + 39 ) ) THEN NULL WHEN + - 57 THEN NULL WHEN - MAX( + 98 ) * + 59 + 50 THEN NULL ELSE + 86 END
----
86

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT CASE 15 WHEN + CASE + - 85 WHEN + 95 THEN - COUNT ( ALL + 57 ) / + 72 * + 18 END / - - CASE - ( + COALESCE ( 65, 18 - - + 20 * - - COALESCE ( + ( - 2 ), + + MIN ( + ( - 0 ) ) + 22 ) ) ) WHEN - 48 THEN - 26 ELSE - 94 END * 9 + - SUM ( + ( + 39 ) ) THEN NULL WHEN + - 57 THEN NULL WHEN - MAX ( + 98 ) * + 59 + 50 THEN NULL ELSE + 86 END
----
86

query I rowsort
SELECT 63 * 31 * - + 71 AS col1
----
-138663

query II rowsort
SELECT 29 + - + 5 AS col0, 70 AS col1
----
24
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7002
SELECT 39 + + - SUM( - 53 ) + + 44 DIV + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-7002
SELECT 39 + + - SUM ( - 53 ) + + 44 / + - COUNT ( * )
----
48

query I rowsort
SELECT 45 * - 60 AS col1
----
-2700

query I rowsort
SELECT 70 * - - 87 AS col1
----
6090

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT DISTINCT COUNT( * ) * - - 26 col0, 76 + MAX( ALL 86 ) AS col1
----
26
162

skipif mysql # not compatible
query II rowsort label-7005
SELECT DISTINCT COUNT ( * ) * - - 26 col0, 76 + MAX ( ALL 86 ) AS col1
----
26
162

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT 90 DIV + - 23 + + 38 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7006
SELECT 90 / + - 23 + + 38 AS col0
----
35

query I rowsort
SELECT AVG ( + - 48 ) / - - CASE + 51 WHEN - ( - + 97 ) THEN - 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ( 78 ) * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7008
SELECT ( 78 ) * + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT MAX( + - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-7009
SELECT MAX ( + - 2 )
----
-2

query I rowsort
SELECT + - 67 * + 84 + + 50
----
-5578

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ALL - SUM( DISTINCT - ( - 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL - SUM ( DISTINCT - ( - 52 ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT + 46 DIV + 69 - + ( + - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 46 / + 69 - + ( + - 4 )
----
4

query I rowsort
SELECT ALL - 79 + - - 3 + + - 6
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT DISTINCT 95 + 18 AS col0, + COUNT( * ) * + - 45 AS col0
----
113
-45

skipif mysql # not compatible
query II rowsort label-7014
SELECT DISTINCT 95 + 18 AS col0, + COUNT ( * ) * + - 45 AS col0
----
113
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL + SUM( DISTINCT ( - - ( + 88 ) ) ) + - 71 + + + 33 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + SUM ( DISTINCT ( - - ( + 88 ) ) ) + - 71 + + + 33 AS col0
----
50

query I rowsort
SELECT DISTINCT - - 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT ALL - 23 + + 76 * + 84 * - + MAX( ALL 1 ) + COALESCE ( - 67, - 3 * - + 32 * NULLIF ( 55, + 52 ) )
----
-6474

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - 23 + + 76 * + 84 * - + MAX ( ALL 1 ) + COALESCE ( - 67, - 3 * - + 32 * NULLIF ( 55, + 52 ) )
----
-6474

query I rowsort
SELECT + ( + 16 ) col1
----
16

query I rowsort
SELECT NULLIF ( + + ( - 53 ), - 57 ) col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7020
SELECT ALL SUM( ALL - + COALESCE ( - 20, + - 57 * - 15 ) ) + - + CAST( NULL AS SIGNED ) * CAST( + + 63 AS SIGNED ) * - 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL SUM ( ALL - + COALESCE ( - 20, + - 57 * - 15 ) ) + - + CAST ( NULL AS INTEGER ) * CAST ( + + 63 AS INTEGER ) * - 93 col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - - ( 6 ) ) + - 73 * COALESCE ( - 62, + 36 * 14 ) * + 27 + 20 AS col1
----
122228

onlyif mysql # DIV for integer division: 
query I rowsort label-7022
SELECT + 62 + 72 DIV 1 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-7022
SELECT + 62 + 72 / 1 AS col2
----
134

query I rowsort
SELECT ALL + 71 * + + ( + 52 ) * ( 75 ) AS col0
----
276900

query I rowsort
SELECT ALL + 2 - 75
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7025
SELECT - COUNT( * ) * - + ( - - COUNT( * ) ) + + 41 DIV COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-7025
SELECT - COUNT ( * ) * - + ( - - COUNT ( * ) ) + + 41 / COUNT ( * )
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7026
SELECT - - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT - - CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 12 + 62 * - + 42 col2
----
-2616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT - ( 79 ) + COUNT( * ) + + 15 DIV + + NULLIF ( + 13, + 73 )
----
-77

skipif mysql # not compatible
query I rowsort label-7028
SELECT - ( 79 ) + COUNT ( * ) + + 15 / + + NULLIF ( + 13, + 73 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT - CAST( NULL AS SIGNED ) * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7029
SELECT - CAST ( NULL AS INTEGER ) * - - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - MIN( - 75 ) + - 41 * COUNT( * ) * - 77 * + + 93 AS col1
----
293676

skipif mysql # not compatible
query I rowsort label-7030
SELECT - MIN ( - 75 ) + - 41 * COUNT ( * ) * - 77 * + + 93 AS col1
----
293676

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7031
SELECT 0, + 76 * - COUNT( * ) DIV - COUNT( * ) AS col1
----
0
76

skipif mysql # not compatible
query II rowsort label-7031
SELECT 0, + 76 * - COUNT ( * ) / - COUNT ( * ) AS col1
----
0
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT ALL - COUNT( * ) * + ( + 68 ) AS col1, + 80
----
-68
80

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL - COUNT ( * ) * + ( + 68 ) AS col1, + 80
----
-68
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT - 91 * + SUM( ALL + + 70 ) AS col0
----
-6370

skipif mysql # not compatible
query I rowsort label-7033
SELECT - 91 * + SUM ( ALL + + 70 ) AS col0
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT MAX( ALL - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT MAX ( ALL - + 6 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL - 48 * 74 * ( - COALESCE ( - - CASE - - 74 WHEN 84 * + 6 THEN CAST( 0 AS SIGNED ) END, + CAST( + 34 AS SIGNED ) ) ) AS col1
----
120768

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - 48 * 74 * ( - COALESCE ( - - CASE - - 74 WHEN 84 * + 6 THEN CAST ( 0 AS INTEGER ) END, + CAST ( + 34 AS INTEGER ) ) ) AS col1
----
120768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT - ( - 88 ) + CAST( NULL AS SIGNED ) + - 48 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT - ( - 88 ) + CAST ( NULL AS INTEGER ) + - 48 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT - NULLIF ( COUNT( * ), + - MAX( ALL + 12 ) ) * + + 55
----
-55

skipif mysql # not compatible
query I rowsort label-7037
SELECT - NULLIF ( COUNT ( * ), + - MAX ( ALL + 12 ) ) * + + 55
----
-55

query I rowsort
SELECT - 37 * 23 AS col1
----
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT COUNT( * ) * + 29 + + - 74 col2
----
-45

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT COUNT ( * ) * + 29 + + - 74 col2
----
-45

query I rowsort
SELECT ALL + 58 * - 96 * + - 16 * - - COALESCE ( - 78, - - 19 ) + - 29 AS col0
----
-6948893

query I rowsort
SELECT ( 19 ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT 18 * + + ( 70 ) + + COUNT( * ) * - 5 AS col0
----
1255

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT 18 * + + ( 70 ) + + COUNT ( * ) * - 5 AS col0
----
1255

query I rowsort
SELECT ( - 38 ) AS col2
----
-38

query I rowsort
SELECT ALL 92 * - + NULLIF ( + + 79, 28 ) + 52
----
-7216

query I rowsort
SELECT ALL 54 * 87 + + 52
----
4750

query II rowsort
SELECT DISTINCT + - 79 AS col1, - 54
----
-79
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7048
SELECT ALL + - 84 * + COUNT( DISTINCT 28 ) + 21 - - MAX( - ( - ( - 34 ) ) ) DIV - - ( 26 ) + + - 74 + + 13 + + CAST( 2 AS SIGNED ) DIV - 22 * 76 col0, 77 AS col2
----
-125
77

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL + - 84 * + COUNT ( DISTINCT 28 ) + 21 - - MAX ( - ( - ( - 34 ) ) ) / - - ( 26 ) + + - 74 + + 13 + + CAST ( 2 AS INTEGER ) / - 22 * 76 col0, 77 AS col2
----
-125
77

query II rowsort
SELECT + - 89 * - - 20 * - - 65, + 18 AS col1
----
-115700
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL - + 65 * - COUNT( DISTINCT + 43 ) * + + 13 * + + 57 + + 68 * - - 50 + + + 67
----
51632

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - + 65 * - COUNT ( DISTINCT + 43 ) * + + 13 * + + 57 + + 68 * - - 50 + + + 67
----
51632

query I rowsort
SELECT - 38 * - 87 + 96 - 22 AS col0
----
3380

query II rowsort
SELECT + + NULLIF ( 35, - + 33 ), 18 AS col1
----
35
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT ALL 13 DIV + - COALESCE ( - - ( + + MIN( ALL + 84 ) ), - 39, - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL 13 / + - COALESCE ( - - ( + + MIN ( ALL + 84 ) ), - 39, - 24 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7054
SELECT DISTINCT 53 DIV + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT 53 / + 93 AS col1
----
0

query II rowsort
SELECT ALL 22, 83 AS col1
----
22
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7056
SELECT + CAST( NULL AS SIGNED ) * - - 17 * - 99 * 16, 29 * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7056
SELECT + CAST ( NULL AS INTEGER ) * - - 17 * - 99 * 16, 29 * - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT - MAX( 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-7057
SELECT - MAX ( 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7058
SELECT ALL 80 * + COUNT( * ) * - 44 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL 80 * + COUNT ( * ) * - 44 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT COUNT( DISTINCT 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7059
SELECT COUNT ( DISTINCT 84 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT - CAST( NULL AS SIGNED ) * - - 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT - CAST ( NULL AS INTEGER ) * - - 1 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL 9 * + ( - + COALESCE ( ( - 0 ), + COALESCE ( 15, + + NULLIF ( - - 32, - 47 ) * - 67 ), COUNT( * ) * - - 35 - + 71 + + 57 + + 68 * + 21 * + 70 + CAST( + - 72 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL 9 * + ( - + COALESCE ( ( - 0 ), + COALESCE ( 15, + + NULLIF ( - - 32, - 47 ) * - 67 ), COUNT ( * ) * - - 35 - + 71 + + 57 + + 68 * + 21 * + 70 + CAST ( + - 72 AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - ( - - SUM( ALL - 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT - ( - - SUM ( ALL - 0 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT + 68 * COUNT( * ) DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-7063
SELECT + 68 * COUNT ( * ) / 59
----
1

query I rowsort
SELECT ALL CASE + + 59 WHEN - 50 THEN - 68 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - + ( 83 ) ) AS col1
----
83

query I rowsort
SELECT + 14 + - + 59
----
-45

query I rowsort
SELECT - ( + ( + 48 ) )
----
-48

query I rowsort
SELECT - 37 + 99 + - + 0 + 43 + 65 + 71 * 84 + + - 39 - - 30
----
6125

query I rowsort
SELECT DISTINCT 43 + 17 + 55 * - 67 col1
----
-3625

query II rowsort
SELECT ALL + 90 + - 56, - 24 + - 67 AS col0
----
34
-91

query I rowsort
SELECT - 72 * - ( 62 )
----
4464

query I rowsort
SELECT DISTINCT - 99 + - 92 + 5 col1
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT - 36 + 40 * + 15 * - 73 * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT - 36 + 40 * + 15 * - 73 * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7075
SELECT ALL 88 DIV + COUNT( * ) + ( - + 71 ) + 42 - - ( + 58 ) * + ( + 40 )
----
2379

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL 88 / + COUNT ( * ) + ( - + 71 ) + 42 - - ( + 58 ) * + ( + 40 )
----
2379

query I rowsort
SELECT ALL + 87 * + ( + 22 ) AS col2
----
1914

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7077
SELECT + COUNT( * ) - + 95, - ( - 39 ) / MIN( ALL + 25 ) + 76 + + 48 / - COUNT( DISTINCT + 18 ) * + - 98 + + - 69 - + ( CAST( NULL AS DECIMAL ) ) AS col2
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-7077
SELECT + COUNT ( * ) - + 95, - ( - 39 ) / MIN ( ALL + 25 ) + 76 + + 48 / - COUNT ( DISTINCT + 18 ) * + - 98 + + - 69 - + ( CAST ( NULL AS REAL ) ) AS col2
----
-94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7078
SELECT + - CASE - - 74 WHEN 47 THEN NULL ELSE + 52 END AS col0, 5 + COALESCE ( + COUNT( * ), - + MAX( - 45 ) - + - 90 * + CAST( NULL AS SIGNED ) ) AS col2
----
-52
6

skipif mysql # not compatible
query II rowsort label-7078
SELECT + - CASE - - 74 WHEN 47 THEN NULL ELSE + 52 END AS col0, 5 + COALESCE ( + COUNT ( * ), - + MAX ( - 45 ) - + - 90 * + CAST ( NULL AS INTEGER ) ) AS col2
----
-52
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT DISTINCT - 93 * - - COUNT( * ) AS col0, + 24
----
-93
24

skipif mysql # not compatible
query II rowsort label-7079
SELECT DISTINCT - 93 * - - COUNT ( * ) AS col0, + 24
----
-93
24

query I rowsort
SELECT ALL + 35 - - 97 AS col0
----
132

query I rowsort
SELECT DISTINCT - COALESCE ( 3, - + 30, - ( + 70 ) * 95 + - + 6, + 66 ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT ALL 84 - 61 + + - ( + COUNT( * ) ) + + + 22 * COALESCE ( + 34, + + ( - - 82 ) ) DIV 28 + - 10 - - 76
----
114

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL 84 - 61 + + - ( + COUNT ( * ) ) + + + 22 * COALESCE ( + 34, + + ( - - 82 ) ) / 28 + - 10 - - 76
----
114

query I rowsort
SELECT 31 * - 45 * + 91
----
-126945

query I rowsort
SELECT - 26 * + 95 + - + 16
----
-2486

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT NULLIF ( - + 14, + 37 * - MIN( + 24 ) - + 39 * + 26 ) * 70 * - ( - 12 ) * + 2 * - 89
----
2093280

skipif mysql # not compatible
query I rowsort label-7085
SELECT NULLIF ( - + 14, + 37 * - MIN ( + 24 ) - + 39 * + 26 ) * 70 * - ( - 12 ) * + 2 * - 89
----
2093280

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + 8 * - COUNT( - 17 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 8 * - COUNT ( - 17 ) AS col1
----
-8

query II rowsort
SELECT 41 + 90 AS col1, + 81 * - - ( + 60 ) AS col1
----
131
4860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7088
SELECT SUM( DISTINCT + 98 ) + - + 88 - + + COUNT( * ) + + 78 DIV - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-7088
SELECT SUM ( DISTINCT + 98 ) + - + 88 - + + COUNT ( * ) + + 78 / - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT 74 + 10 - + CASE - ( + 39 ) WHEN SUM( 19 ) / + COUNT( * ) THEN - + 85 * 62 + - 88 END * + - CASE - 28 WHEN - 50 + + ( - NULLIF ( - NULLIF ( 56, - AVG ( + 5 ) ), + COUNT( * ) ) ) + + - 73 THEN NULL WHEN - 79 * - + COUNT( * ) THEN NULL ELSE 84 END / 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT 74 + 10 - + CASE - ( + 39 ) WHEN SUM ( 19 ) / + COUNT ( * ) THEN - + 85 * 62 + - 88 END * + - CASE - 28 WHEN - 50 + + ( - NULLIF ( - NULLIF ( 56, - AVG ( + 5 ) ), + COUNT ( * ) ) ) + + - 73 THEN NULL WHEN - 79 * - + COUNT ( * ) THEN NULL ELSE 84 END / 51
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT ALL 62 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL 62 / - 59
----
-1

query I rowsort
SELECT ( + 27 ) + + 52 - 59 * + - 10
----
669

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7092
SELECT ALL 9 + - 55 + 56 + - ( + CAST( NULL AS DECIMAL ) ) AS col0, + 63 DIV - COUNT( * ) col2
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7092
SELECT ALL 9 + - 55 + 56 + - ( + CAST ( NULL AS REAL ) ) AS col0, + 63 / - COUNT ( * ) col2
----
NULL
-63

query I rowsort
SELECT 64 * 98
----
6272

query II rowsort
SELECT 46 AS col2, + 52
----
46
52

query I rowsort
SELECT 73 * - + 70 col1
----
-5110

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT ( COUNT( * ) ) + - 9 AS col2, 8 * 69
----
-8
552

skipif mysql # not compatible
query II rowsort label-7096
SELECT ( COUNT ( * ) ) + - 9 AS col2, 8 * 69
----
-8
552

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT 62 col1, SUM( - 61 ) + - 13 - + 27 - + 19 * + 61 * + NULLIF ( + 22, - COUNT( * ) ) AS col1
----
62
-25599

skipif mysql # not compatible
query II rowsort label-7097
SELECT 62 col1, SUM ( - 61 ) + - 13 - + 27 - + 19 * + 61 * + NULLIF ( + 22, - COUNT ( * ) ) AS col1
----
62
-25599

query I rowsort
SELECT ALL 55 + + 90 AS col0
----
145

query I rowsort
SELECT DISTINCT 90 + + 94
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT COUNT( * ) * 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-7100
SELECT COUNT ( * ) * 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT 95 + + SUM( - + 59 ) * - 53 + SUM( 64 ) - + - MIN( - 91 ) - + + SUM( - 70 )
----
3265

skipif mysql # not compatible
query I rowsort label-7101
SELECT 95 + + SUM ( - + 59 ) * - 53 + SUM ( 64 ) - + - MIN ( - 91 ) - + + SUM ( - 70 )
----
3265

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT 54 - - ( + COUNT( 60 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT 54 - - ( + COUNT ( 60 ) ) AS col2
----
55

query I rowsort
SELECT ALL + 67 - - - 0 + + ( + 8 ) * 44 * - 20
----
-6973

query I rowsort
SELECT 45 * - 14 + 79 AS col2
----
-551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT + 65 DIV 75 * + COUNT( * ) + + - COUNT( ALL 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 65 / 75 * + COUNT ( * ) + + - COUNT ( ALL 17 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7106
SELECT 7 + - + CAST( + - 41 AS SIGNED ) AS col1, - COUNT( * ) col1
----
48
-1

skipif mysql # not compatible
query II rowsort label-7106
SELECT 7 + - + CAST ( + - 41 AS INTEGER ) AS col1, - COUNT ( * ) col1
----
48
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7107
SELECT ALL + ( ( - 94 ) ) * + CAST( NULL AS SIGNED ) * - MAX( - 76 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL + ( ( - 94 ) ) * + CAST ( NULL AS INTEGER ) * - MAX ( - 76 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL - - 99 * - COUNT( DISTINCT - 59 ) * 70 AS col0
----
-6930

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL - - 99 * - COUNT ( DISTINCT - 59 ) * 70 AS col0
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT COALESCE ( + 17, + + 43, - 53 * + + 12 * 58 - + + 49 * - 72 ) * + + MAX( + 49 ) + + 13 + + - 37 AS col0
----
809

skipif mysql # not compatible
query I rowsort label-7109
SELECT COALESCE ( + 17, + + 43, - 53 * + + 12 * 58 - + + 49 * - 72 ) * + + MAX ( + 49 ) + + 13 + + - 37 AS col0
----
809

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT - 56 DIV 7 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7110
SELECT - 56 / 7 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT COUNT( 25 ) * - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-7111
SELECT COUNT ( 25 ) * - + 31
----
-31

query I rowsort
SELECT ALL + + 69 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT 76 AS col1, + MIN( + 2 ) * - COALESCE ( - 15, 98 * 63, COUNT( * ) * 37 * - 51, + 28 ) + - 9 + 30
----
76
51

skipif mysql # not compatible
query II rowsort label-7113
SELECT 76 AS col1, + MIN ( + 2 ) * - COALESCE ( - 15, 98 * 63, COUNT ( * ) * 37 * - 51, + 28 ) + - 9 + 30
----
76
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT 76 + + 71 * + - ( + 77 ) + 38 DIV - COUNT( ALL - 14 ) AS col1
----
-5429

skipif mysql # not compatible
query I rowsort label-7114
SELECT 76 + + 71 * + - ( + 77 ) + 38 / - COUNT ( ALL - 14 ) AS col1
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT + 92 + + ( + - 23 ) + 65 - - COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 92 + + ( + - 23 ) + 65 - - COUNT ( * )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT + MAX( + - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7116
SELECT + MAX ( + - 57 )
----
-57

query I rowsort
SELECT ALL - 99 + - + 43
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-7118
SELECT ALL - - COUNT( * ) AS col1, + 71 AS col2
----
1
71

skipif mysql # not compatible
query II rowsort label-7118
SELECT ALL - - COUNT ( * ) AS col1, + 71 AS col2
----
1
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7119
SELECT 24 AS col1, 86 * + COUNT( * )
----
24
86

skipif mysql # not compatible
query II rowsort label-7119
SELECT 24 AS col1, 86 * + COUNT ( * )
----
24
86

query I rowsort
SELECT ALL + 89 + + 38
----
127

query I rowsort
SELECT ALL - 34 * 38 AS col0
----
-1292

query I rowsort
SELECT 83 * - 56
----
-4648

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - 62 + - - COUNT( - COALESCE ( + 88, + + 8 - + 31 + - ( 80 ) ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - 62 + - - COUNT ( - COALESCE ( + 88, + + 8 - + 31 + - ( 80 ) ) ) AS col1
----
-61

query II rowsort
SELECT + 97 AS col1, 88 col0
----
97
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7125
SELECT DISTINCT + 44 + + - 99 col0, 23 * + SUM( ALL + 15 ) - + CAST( NULL AS SIGNED ) AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-7125
SELECT DISTINCT + 44 + + - 99 col0, 23 * + SUM ( ALL + 15 ) - + CAST ( NULL AS INTEGER ) AS col2
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT COUNT( * ) * + - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7126
SELECT COUNT ( * ) * + - 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7127
SELECT DISTINCT COUNT( * ), - 39 AS col1
----
1
-39

skipif mysql # not compatible
query II rowsort label-7127
SELECT DISTINCT COUNT ( * ), - 39 AS col1
----
1
-39

query I rowsort
SELECT 89 - 55
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT 99 * + - 94 * + MAX( DISTINCT - 27 ) AS col2
----
251262

skipif mysql # not compatible
query I rowsort label-7129
SELECT 99 * + - 94 * + MAX ( DISTINCT - 27 ) AS col2
----
251262

onlyif mysql # aggregate syntax: 
query II rowsort label-7130
SELECT ALL + 27 + NULLIF ( + 23, + 23 + + 18 * 53 ) * - 13 * + + ( + 50 ), + COUNT( * ) AS col1
----
-14923
1

skipif mysql # not compatible
query II rowsort label-7130
SELECT ALL + 27 + NULLIF ( + 23, + 23 + + 18 * 53 ) * - 13 * + + ( + 50 ), + COUNT ( * ) AS col1
----
-14923
1

query II rowsort
SELECT - 69, + 38 * 66 - + 0 AS col0
----
-69
2508

onlyif mysql # DIV for integer division: 
query II rowsort label-7132
SELECT ALL 22 AS col1, + 7 DIV 48 AS col2
----
22
0

skipif mysql # not compatible
query II rowsort label-7132
SELECT ALL 22 AS col1, + 7 / 48 AS col2
----
22
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7133
SELECT DISTINCT ( - CAST( + 33 AS SIGNED ) ) DIV + - 15 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT ( - CAST ( + 33 AS INTEGER ) ) / + - 15 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT ALL CASE - - 41 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + + COUNT( * ) * - - NULLIF ( + + 86, - 12 ) THEN - 2 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL CASE - - 41 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + COUNT ( * ) * - - NULLIF ( + + 86, - 12 ) THEN - 2 END AS col2
----
NULL

query II rowsort
SELECT - 80 AS col2, 32
----
-80
32

query I rowsort
SELECT 98 + + 39 + + 69 + - 47 * 75 AS col0
----
-3319

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT ALL 33 AS col2, + COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-7137
SELECT ALL 33 AS col2, + COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7138
SELECT - 77 DIV - NULLIF ( + NULLIF ( + 87, + - 18 + - 77 + - 50 ), + 15 - + 98 + - 72 + - 29 * - 92 ) AS col1, + MIN( 62 ) AS col1, - COUNT( * )
----
0
62
-1

skipif mysql # not compatible
query III rowsort label-7138
SELECT - 77 / - NULLIF ( + NULLIF ( + 87, + - 18 + - 77 + - 50 ), + 15 - + 98 + - 72 + - 29 * - 92 ) AS col1, + MIN ( 62 ) AS col1, - COUNT ( * )
----
0
62
-1

query I rowsort
SELECT ALL 16 * - 47 AS col0
----
-752

query II rowsort
SELECT ALL - 42 AS col2, + 53
----
-42
53

query II rowsort
SELECT ALL + 88 AS col1, - ( - 12 ) AS col2
----
88
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT DISTINCT 78 * + - 37 / 81 * - - 30 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT 78 * + - 37 / 81 * - - 30 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 49 * - 47
----
2303

query I rowsort
SELECT ALL - ( + + 4 ) * + 60 * - 83 * + 24
----
478080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT + 75 * - 78 + CAST( + 92 AS SIGNED ) AS col1
----
-5758

skipif mysql # not compatible
query I rowsort label-7145
SELECT + 75 * - 78 + CAST ( + 92 AS INTEGER ) AS col1
----
-5758

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT ALL + + 23 AS col0, - 92 * + 82 + + 79 * 47 * 57 * - - COUNT( DISTINCT - + 38 )
----
23
204097

skipif mysql # not compatible
query II rowsort label-7146
SELECT ALL + + 23 AS col0, - 92 * + 82 + + 79 * 47 * 57 * - - COUNT ( DISTINCT - + 38 )
----
23
204097

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + 93 * + - COUNT( * ) * - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-7147
SELECT + 93 * + - COUNT ( * ) * - COUNT ( * )
----
93

query I rowsort
SELECT NULLIF ( COALESCE ( ( + + 61 ), + 68, + 28 + - 82 ), - + 65 ) AS col0
----
61

query II rowsort
SELECT + - 91 AS col1, 81 AS col1
----
-91
81

query I rowsort
SELECT ALL 54 * + - 69 + COALESCE ( ( + 76 ), - 20, + 30 * + 84 + + 96 ) * + 22 AS col0
----
-2054

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT + 16 - + 90 * - + COUNT( * ) * - 98 AS col1
----
-8804

skipif mysql # not compatible
query I rowsort label-7151
SELECT + 16 - + 90 * - + COUNT ( * ) * - 98 AS col1
----
-8804

query I rowsort
SELECT + + 23 * - 32 + + - 16 AS col1
----
-752

query I rowsort
SELECT DISTINCT + 12 * - 72
----
-864

query I rowsort
SELECT DISTINCT - 98 * 10 * - 61 + + 61 * - 95
----
53985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7155
SELECT 30 * + 51 / - - ( + CAST( NULL AS SIGNED ) ) * + 92 + 94 + SUM( + + ( - 92 ) ) + - 40 + + 95 + + 27 / - - 88 * - 22 + - 8 + - - 79 * + - 7 + + NULLIF ( + 23, 2 ) AS col2, - ( + + 91 ) * 80 + - 10 - + 45 * + 98 AS col1
----
NULL
-11700

skipif mysql # not compatible
query II rowsort label-7155
SELECT 30 * + 51 / - - ( + CAST ( NULL AS INTEGER ) ) * + 92 + 94 + SUM ( + + ( - 92 ) ) + - 40 + + 95 + + 27 / - - 88 * - 22 + - 8 + - - 79 * + - 7 + + NULLIF ( + 23, 2 ) AS col2, - ( + + 91 ) * 80 + - 10 - + 45 * + 98 AS col1
----
NULL
-11700

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT - COALESCE ( - 43, 10 - - + 67 ) - + + 40 - COUNT( ALL 70 ) * 93 * - NULLIF ( - 73, - - COUNT( * ) )
----
-6786

skipif mysql # not compatible
query I rowsort label-7156
SELECT - COALESCE ( - 43, 10 - - + 67 ) - + + 40 - COUNT ( ALL 70 ) * 93 * - NULLIF ( - 73, - - COUNT ( * ) )
----
-6786

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT ALL 21 * - 43 * + + MIN( + 65 ) * 21 + + - COALESCE ( 20, COUNT( * ) * - 8 + + 37, - 75 ) + 60 + + + 0 - 5 AS col0
----
-1232560

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL 21 * - 43 * + + MIN ( + 65 ) * 21 + + - COALESCE ( 20, COUNT ( * ) * - 8 + + 37, - 75 ) + 60 + + + 0 - 5 AS col0
----
-1232560

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT ALL + COALESCE ( ( + 63 ), + ( + COUNT( + - 7 ) ), 73 ), - MIN( 52 ) AS col1
----
63
-52

skipif mysql # not compatible
query II rowsort label-7158
SELECT ALL + COALESCE ( ( + 63 ), + ( + COUNT ( + - 7 ) ), 73 ), - MIN ( 52 ) AS col1
----
63
-52

query I rowsort
SELECT + ( + 94 ) * + 2 + - 17 AS col2
----
171

query I rowsort
SELECT + 9 * - - 29 AS col1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT MIN( DISTINCT 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7161
SELECT MIN ( DISTINCT 14 ) AS col2
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7162
SELECT - CASE + 7 WHEN - 25 THEN NULL ELSE 55 END + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7162
SELECT - CASE + 7 WHEN - 25 THEN NULL ELSE 55 END + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 91 * + - 44
----
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - 58 * + COUNT( * ) + 93
----
35

skipif mysql # not compatible
query I rowsort label-7164
SELECT - 58 * + COUNT ( * ) + 93
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL COALESCE ( + 92, - 67, + + 59, + 14, + 3 + MIN( + 39 ) )
----
92

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL COALESCE ( + 92, - 67, + + 59, + 14, + 3 + MIN ( + 39 ) )
----
92

query I rowsort
SELECT DISTINCT + NULLIF ( + - 61, 82 ) - + - 66 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT - 7 + COALESCE ( 48, 67 * + - 68, + MIN( - + 89 ) ) col0, + 77
----
41
77

skipif mysql # not compatible
query II rowsort label-7167
SELECT - 7 + COALESCE ( 48, 67 * + - 68, + MIN ( - + 89 ) ) col0, + 77
----
41
77

query I rowsort
SELECT ALL + 95 * - 75 AS col1
----
-7125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT - 19 * - + 85 * CAST( NULL AS SIGNED ) * - ( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT - 19 * - + 85 * CAST ( NULL AS INTEGER ) * - ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT - 83 + - 8
----
-91

query I rowsort
SELECT ALL ( + 11 ) AS col2
----
11

query I rowsort
SELECT ALL + ( - + 61 ) * - 81 AS col1
----
4941

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT ALL + - 3 * 39 DIV - 69 + + - 49 * - 46
----
2255

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + - 3 * 39 / - 69 + + - 49 * - 46
----
2255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT DISTINCT + COALESCE ( - + 31, - COUNT( * ) * - - NULLIF ( 66, - 11 * 61 * + 54 * + 9 * + 24 ), - COUNT( * ), - 72 + ( - 25 ) + - NULLIF ( 16, - - CASE + - ( - + 4 ) WHEN CASE ( CAST( NULL AS SIGNED ) ) WHEN CASE + - CAST( NULL AS SIGNED ) WHEN + + 70 THEN NULL WHEN + COUNT( * ) * + 22 THEN NULL ELSE COALESCE ( + 37, 70 ) + + 23 END THEN NULL WHEN NULLIF ( - COUNT( * ), + - 85 - - 52 ) THEN NULL ELSE 63 END THEN - - MAX( DISTINCT + 0 ) - - 71 WHEN + - 68 + + NULLIF ( - + AVG ( ALL ( 32 ) ), 68 / 71 ) * 56 THEN + 58 ELSE NULL END ) + - CASE - COUNT( * ) WHEN - 18 THEN - NULLIF ( 56, 44 ) + - 66 WHEN + 53 / - 86 THEN 27 ELSE + COALESCE ( + 23, + 61 ) END * + ( 83 ) ) * - 32 AS col2
----
992

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT + COALESCE ( - + 31, - COUNT ( * ) * - - NULLIF ( 66, - 11 * 61 * + 54 * + 9 * + 24 ), - COUNT ( * ), - 72 + ( - 25 ) + - NULLIF ( 16, - - CASE + - ( - + 4 ) WHEN CASE ( CAST ( NULL AS INTEGER ) ) WHEN CASE + - CAST ( NULL AS INTEGER ) WHEN + + 70 THEN NULL WHEN + COUNT ( * ) * + 22 THEN NULL ELSE COALESCE ( + 37, 70 ) + + 23 END THEN NULL WHEN NULLIF ( - COUNT ( * ), + - 85 - - 52 ) THEN NULL ELSE 63 END THEN - - MAX ( DISTINCT + 0 ) - - 71 WHEN + - 68 + + NULLIF ( - + AVG ( ALL ( 32 ) ), 68 / 71 ) * 56 THEN + 58 ELSE NULL END ) + - CASE - COUNT ( * ) WHEN - 18 THEN - NULLIF ( 56, 44 ) + - 66 WHEN + 53 / - 86 THEN 27 ELSE + COALESCE ( + 23, + 61 ) END * + ( 83 ) ) * - 32 AS col2
----
992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7175
SELECT - + 95 * + CAST( 73 AS SIGNED ) * 71 + - - 9 * 6 + - - COALESCE ( - 13, + MIN( DISTINCT ( - 0 ) ) * + - 81, - - NULLIF ( ( - 40 ), 88 DIV COUNT( * ) + + + 75 + - 41 * + ( - 36 ) ), COUNT( * ) DIV + - 55 - + COUNT( * ) * - 53 DIV - 49 ) AS col2
----
-492344

skipif mysql # not compatible
query I rowsort label-7175
SELECT - + 95 * + CAST ( 73 AS INTEGER ) * 71 + - - 9 * 6 + - - COALESCE ( - 13, + MIN ( DISTINCT ( - 0 ) ) * + - 81, - - NULLIF ( ( - 40 ), 88 / COUNT ( * ) + + + 75 + - 41 * + ( - 36 ) ), COUNT ( * ) / + - 55 - + COUNT ( * ) * - 53 / - 49 ) AS col2
----
-492344

query I rowsort
SELECT ALL + - ( - ( + 39 ) ) * - - 31
----
1209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7177
SELECT ALL 50 / + CAST( NULL AS SIGNED ) * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 50 / + CAST ( NULL AS INTEGER ) * - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - - NULLIF ( + - 69, + 42 - + 20 + + - MAX( DISTINCT + - 57 ) - + 65 + 88 ) - 55
----
-124

skipif mysql # not compatible
query I rowsort label-7178
SELECT - - NULLIF ( + - 69, + 42 - + 20 + + - MAX ( DISTINCT + - 57 ) - + 65 + 88 ) - 55
----
-124

onlyif mysql # DIV for integer division: 
query II rowsort label-7179
SELECT ALL - - 27 DIV - 98, 28 AS col1
----
0
28

skipif mysql # not compatible
query II rowsort label-7179
SELECT ALL - - 27 / - 98, 28 AS col1
----
0
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT - 77 DIV + 45 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 77 / + 45 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT + + COUNT( * ) * 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7181
SELECT + + COUNT ( * ) * 46 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7182
SELECT ALL 15 DIV 96 + 42 AS col0, - COALESCE ( - - 13, 38 - 52 + - 34 + - 33 * - ( + NULLIF ( - 43, + 71 * 5 ) ), + 46, + + ( 29 ) ) + + 18 - - ( - COUNT( * ) ) + 94 - - 95 + - 45 + - COUNT( * ) * 91 * + COUNT( * ) * + AVG ( ALL 30 ) * + 28 + - 43 + - CASE + 73 WHEN 8 + CAST( + SUM( ALL - 72 ) AS DECIMAL ) THEN NULL WHEN 6 THEN - ( MIN( - - 11 ) ) END * - - CAST( - + 10 AS DECIMAL ) AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-7182
SELECT ALL 15 / 96 + 42 AS col0, - COALESCE ( - - 13, 38 - 52 + - 34 + - 33 * - ( + NULLIF ( - 43, + 71 * 5 ) ), + 46, + + ( 29 ) ) + + 18 - - ( - COUNT ( * ) ) + 94 - - 95 + - 45 + - COUNT ( * ) * 91 * + COUNT ( * ) * + AVG ( ALL 30 ) * + 28 + - 43 + - CASE + 73 WHEN 8 + CAST ( + SUM ( ALL - 72 ) AS REAL ) THEN NULL WHEN 6 THEN - ( MIN ( - - 11 ) ) END * - - CAST ( - + 10 AS REAL ) AS col1
----
42
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7183
SELECT + 6 DIV + + 60 + + 41 - + + COUNT( * ) + + 25
----
65

skipif mysql # not compatible
query I rowsort label-7183
SELECT + 6 / + + 60 + + 41 - + + COUNT ( * ) + + 25
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT DISTINCT - - 87 / 93 * 68 + - - MAX( ALL - - 58 ) + COUNT( * ) - + 92 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - - 87 / 93 * 68 + - - MAX ( ALL - - 58 ) + COUNT ( * ) - + 92 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT DISTINCT - - MAX( ALL + + 61 ) DIV 3 DIV - - CASE - 71 WHEN - COALESCE ( + + 84, - 25 * - 3 DIV - 26 ) THEN NULL ELSE + 47 END + 80 - + 67
----
13

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT - - MAX ( ALL + + 61 ) / 3 / - - CASE - 71 WHEN - COALESCE ( + + 84, - 25 * - 3 / - 26 ) THEN NULL ELSE + 47 END + 80 - + 67
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + + 77 * COUNT( * ) col2
----
77

skipif mysql # not compatible
query I rowsort label-7186
SELECT + + 77 * COUNT ( * ) col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT ALL + 8 DIV - - 99 + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + 8 / - - 99 + - 4
----
-4

query I rowsort
SELECT - COALESCE ( 72, - + ( - - 94 ) ) * 42 + + 16 AS col0
----
-3008

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + 36 * + COALESCE ( - 52, - 29 ) + - MIN( 98 ) AS col2
----
-1970

skipif mysql # not compatible
query I rowsort label-7189
SELECT + 36 * + COALESCE ( - 52, - 29 ) + - MIN ( 98 ) AS col2
----
-1970

query I rowsort
SELECT + COALESCE ( 89, - 22, - 33 ) AS col0
----
89

query I rowsort
SELECT + 97 + - + 50 * ( + - 72 ) + - 96 AS col1
----
3601

query I rowsort
SELECT ( + - 94 ) col2
----
-94

query I rowsort
SELECT + ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL + SUM( DISTINCT - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + SUM ( DISTINCT - 57 )
----
-57

query II rowsort
SELECT ALL + 25 AS col1, + 41 + COALESCE ( ( + ( + 60 ) ), - 16 - 79 ) AS col2
----
25
101

query II rowsort
SELECT ALL + 70 AS col0, 88 AS col2
----
70
88

query I rowsort
SELECT ALL - 72 * - + 51
----
3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7198
SELECT ALL 43 DIV + + COUNT( * ) col1
----
43

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL 43 / + + COUNT ( * ) col1
----
43

query I rowsort
SELECT DISTINCT 67 * + 76 * - - 89 - + 11 AS col2
----
453177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7200
SELECT DISTINCT - ( - - 59 ) * ( + CAST( NULL AS DECIMAL ) ) - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT - ( - - 59 ) * ( + CAST ( NULL AS REAL ) ) - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ALL + MAX( - + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + MAX ( - + 60 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT 5 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT 5 / 34
----
0

query II rowsort
SELECT - 73, + 94 * 67 AS col0
----
-73
6298

query I rowsort
SELECT ( - + 67 ) * - + 8 col2
----
536

query I rowsort
SELECT 50 * 70 AS col0
----
3500

query I rowsort
SELECT 53 * + + 36
----
1908

query II rowsort
SELECT ALL 29 AS col1, 52 + 99 * + - 18
----
29
-1730

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT COUNT( * ) - - 66 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7208
SELECT COUNT ( * ) - - 66 AS col1
----
67

query II rowsort
SELECT DISTINCT NULLIF ( 1, 14 - + 7 * + 68 ) * + 49 + 64 + - + ( 66 ), 89 * - + 84 - - 24 AS col0
----
47
-7452

query II rowsort
SELECT 33 - + + 87 + 63, - 90 AS col0
----
9
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7211
SELECT ALL 87, 95 * MIN( DISTINCT + - 81 ) AS col2
----
87
-7695

skipif mysql # not compatible
query II rowsort label-7211
SELECT ALL 87, 95 * MIN ( DISTINCT + - 81 ) AS col2
----
87
-7695

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT ALL COUNT( * ) AS col2, - 2
----
1
-2

skipif mysql # not compatible
query II rowsort label-7212
SELECT ALL COUNT ( * ) AS col2, - 2
----
1
-2

query II rowsort
SELECT 21, - 29 AS col2
----
21
-29

query I rowsort
SELECT 61 + + 81 AS col1
----
142

query I rowsort
SELECT 92 * 26
----
2392

query I rowsort
SELECT - 53 + + 63
----
10

query I rowsort
SELECT DISTINCT + - 62 + - 48 AS col2
----
-110

query II rowsort
SELECT 65, 1 + + + 11 AS col1
----
65
12

query I rowsort
SELECT ALL + + 12 + + + 27 - - ( + 77 )
----
116

query I rowsort
SELECT ALL - ( 69 ) AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7221
SELECT DISTINCT - + 33 + - 45 DIV COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT - + 33 + - 45 / COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL + + COUNT( * ) + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + + COUNT ( * ) + 0 AS col1
----
1

query I rowsort
SELECT DISTINCT - ( - + 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT + COUNT( ALL - 46 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7224
SELECT + COUNT ( ALL - 46 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7225
SELECT NULLIF ( - 67, - COUNT( * ) ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-7225
SELECT NULLIF ( - 67, - COUNT ( * ) ) / + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7226
SELECT - COALESCE ( + CASE NULLIF ( - 82, - 97 ) WHEN + 60 + + CASE - 81 WHEN 78 - + CAST( NULL AS SIGNED ) DIV - - 4 * + 83 * + 29 DIV COUNT( * ) - - - SUM( ALL - 52 ) DIV COUNT( DISTINCT 37 ) DIV COALESCE ( - 91, - + NULLIF ( - COUNT( * ), + 62 - 89 + + 29 ) * ( + 62 ) + - 4 ) - 57 + 42 DIV + + 42 DIV - 7 THEN NULL ELSE MAX( DISTINCT 24 ) END THEN MAX( - + CASE + + 77 WHEN - CAST( 90 AS DECIMAL ) + + + 6 THEN NULL ELSE - 77 END ) DIV 62 END, 9 * - 64 ) DIV 73 + + MIN( - 76 ) * 43 AS col0
----
-3261

skipif mysql # not compatible
query I rowsort label-7226
SELECT - COALESCE ( + CASE NULLIF ( - 82, - 97 ) WHEN + 60 + + CASE - 81 WHEN 78 - + CAST ( NULL AS INTEGER ) / - - 4 * + 83 * + 29 / COUNT ( * ) - - - SUM ( ALL - 52 ) / COUNT ( DISTINCT 37 ) / COALESCE ( - 91, - + NULLIF ( - COUNT ( * ), + 62 - 89 + + 29 ) * ( + 62 ) + - 4 ) - 57 + 42 / + + 42 / - 7 THEN NULL ELSE MAX ( DISTINCT 24 ) END THEN MAX ( - + CASE + + 77 WHEN - CAST ( 90 AS REAL ) + + + 6 THEN NULL ELSE - 77 END ) / 62 END, 9 * - 64 ) / 73 + + MIN ( - 76 ) * 43 AS col0
----
-3261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7227
SELECT + 21, + NULLIF ( 45, + COALESCE ( - COUNT( * ), + CAST( - - MAX( - - 98 ) AS SIGNED ) + + + 29 + - COUNT( * ), COUNT( * ) * 88 ) ) AS col1
----
21
45

skipif mysql # not compatible
query II rowsort label-7227
SELECT + 21, + NULLIF ( 45, + COALESCE ( - COUNT ( * ), + CAST ( - - MAX ( - - 98 ) AS INTEGER ) + + + 29 + - COUNT ( * ), COUNT ( * ) * 88 ) ) AS col1
----
21
45

query II rowsort
SELECT + + 77 AS col0, 31
----
77
31

query I rowsort
SELECT 83 * - - 88
----
7304

query I rowsort
SELECT 89 - + ( + 69 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT MIN( DISTINCT - - 53 ) * + + ( + - ( + 44 ) )
----
-2332

skipif mysql # not compatible
query I rowsort label-7231
SELECT MIN ( DISTINCT - - 53 ) * + + ( + - ( + 44 ) )
----
-2332

query I rowsort
SELECT DISTINCT 91 * + 5 * + 50 AS col2
----
22750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT DISTINCT - 13 - - 10 + CAST( NULL AS SIGNED ) + + 14 + + - ( - + 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - 13 - - 10 + CAST ( NULL AS INTEGER ) + + 14 + + - ( - + 43 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT 89 + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-7234
SELECT 89 + COUNT ( * )
----
90

query I rowsort
SELECT ALL 37 * + 71 AS col2
----
2627

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT + 50 * + MAX( DISTINCT - 67 ) + - 72
----
-3422

skipif mysql # not compatible
query I rowsort label-7236
SELECT + 50 * + MAX ( DISTINCT - 67 ) + - 72
----
-3422

query I rowsort
SELECT NULLIF ( - + 54, + 63 ) - - + 48 + + + 27 AS col1
----
21

query I rowsort
SELECT 8 * - - 44 AS col1
----
352

query I rowsort
SELECT ALL - 79 col0
----
-79

query I rowsort
SELECT 50 * + 13
----
650

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT - 11 * + 73 + - - COUNT( * ) + + 61 AS col1, 97 AS col1
----
-741
97

skipif mysql # not compatible
query II rowsort label-7241
SELECT - 11 * + 73 + - - COUNT ( * ) + + 61 AS col1, 97 AS col1
----
-741
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7242
SELECT ALL ( MAX( DISTINCT + - 75 ) ) + 7 + COUNT( * ), 14 + + + CAST( NULL AS SIGNED ) AS col1, - 73 AS col2
----
-67
NULL
-73

skipif mysql # not compatible
query III rowsort label-7242
SELECT ALL ( MAX ( DISTINCT + - 75 ) ) + 7 + COUNT ( * ), 14 + + + CAST ( NULL AS INTEGER ) AS col1, - 73 AS col2
----
-67
NULL
-73

query I rowsort
SELECT ALL ( - 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + SUM( - + 79 ) + - 71 + ( + + 2 )
----
-148

skipif mysql # not compatible
query I rowsort label-7244
SELECT + SUM ( - + 79 ) + - 71 + ( + + 2 )
----
-148

query II rowsort
SELECT ALL + 56 * 6, 27 AS col0
----
336
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT + COUNT( * ) DIV - - COUNT( * ) + 90 * - 38
----
-3419

skipif mysql # not compatible
query I rowsort label-7246
SELECT + COUNT ( * ) / - - COUNT ( * ) + 90 * - 38
----
-3419

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ( + + COUNT( * ) ) + - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-7247
SELECT ( + + COUNT ( * ) ) + - + 4
----
-3

query I rowsort
SELECT + 15 * - - 9 + - 69 AS col2
----
66

query I rowsort
SELECT ALL + 7 + - + 37
----
-30

query I rowsort
SELECT - + ( - - 45 ) AS col2
----
-45

query I rowsort
SELECT - 82 + - 74
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT ALL CAST( 27 AS SIGNED ) + + 83 + + 42 * - 24
----
-898

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL CAST ( 27 AS INTEGER ) + + 83 + + 42 * - 24
----
-898

query II rowsort
SELECT DISTINCT + 24 + 27 col0, - 86 AS col1
----
51
-86

query I rowsort
SELECT + 48 + - 9 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7255
SELECT COUNT( * ) - + - COUNT( * ) * - COUNT( * ) - 4 AS col2, CAST( + - 63 AS SIGNED ) + + 26 AS col2
----
-4
-37

skipif mysql # not compatible
query II rowsort label-7255
SELECT COUNT ( * ) - + - COUNT ( * ) * - COUNT ( * ) - 4 AS col2, CAST ( + - 63 AS INTEGER ) + + 26 AS col2
----
-4
-37

query I rowsort
SELECT ALL NULLIF ( + - 19, 88 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT + COUNT( * ) + 25 * 34
----
851

skipif mysql # not compatible
query I rowsort label-7257
SELECT + COUNT ( * ) + 25 * 34
----
851

query I rowsort
SELECT - + ( ( 57 ) )
----
-57

query II rowsort
SELECT ALL - + 55 * 26, 39 AS col2
----
-1430
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT DISTINCT + 61 DIV COALESCE ( 76, + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + 61 / COALESCE ( 76, + 65 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT 93 * - 80 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT 93 * - 80 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7262
SELECT ALL - MAX( + 2 ) * COUNT( * ), 11 AS col1
----
-2
11

skipif mysql # not compatible
query II rowsort label-7262
SELECT ALL - MAX ( + 2 ) * COUNT ( * ), 11 AS col1
----
-2
11

query II rowsort
SELECT 99 + - ( 0 ) AS col2, 9 + + 2
----
99
11

query I rowsort
SELECT ALL - NULLIF ( - - 39, - 63 + 59 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT DISTINCT - COUNT( DISTINCT - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT - COUNT ( DISTINCT - 20 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT DISTINCT - 81 * COUNT( * ) DIV + 86 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT - 81 * COUNT ( * ) / + 86 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL - MAX( DISTINCT + + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - MAX ( DISTINCT + + 28 )
----
-28

query I rowsort
SELECT - 83 * - 14 * + 62 + - + 46
----
71998

query I rowsort
SELECT DISTINCT + CASE 6 WHEN 43 THEN NULL ELSE - 54 END AS col0
----
-54

query I rowsort
SELECT - 78 * 79
----
-6162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7271
SELECT + 84 + - 34 DIV - + 24 + - NULLIF ( + MAX( 23 ), + - CAST( NULL AS SIGNED ) * - 52 * + - 30 + + 1 ) + - 52
----
10

skipif mysql # not compatible
query I rowsort label-7271
SELECT + 84 + - 34 / - + 24 + - NULLIF ( + MAX ( 23 ), + - CAST ( NULL AS INTEGER ) * - 52 * + - 30 + + 1 ) + - 52
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT ALL + CAST( NULL AS SIGNED ) / - COALESCE ( - - 92, + + 6, + 99 ) * + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + CAST ( NULL AS INTEGER ) / - COALESCE ( - - 92, + + 6, + 99 ) * + - 35
----
NULL

query II rowsort
SELECT DISTINCT + 82, + 82
----
82
82

query I rowsort
SELECT - 55 * 80
----
-4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7275
SELECT + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * + 25
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7275
SELECT + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * + 25
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7276
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS DECIMAL ) * - 94 * - - 18 + - MAX( DISTINCT + 75 ) - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS REAL ) * - 94 * - - 18 + - MAX ( DISTINCT + 75 ) - - 33
----
NULL

query I rowsort
SELECT - 48 * - 32
----
1536

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT ALL + 80 * - 61 + - 52 + - 44 DIV - ( + 18 )
----
-4930

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + 80 * - 61 + - 52 + - 44 / - ( + 18 )
----
-4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT ALL 36 + + CAST( NULL AS SIGNED ) + + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL 36 + + CAST ( NULL AS INTEGER ) + + - 17 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7280
SELECT MAX( + NULLIF ( ( - 43 ), + 73 * + 30 + - - CASE 95 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + CAST( ( + 25 ) AS SIGNED ) * - 57 THEN + + 87 WHEN + ( - 28 ) / + 58 THEN NULL ELSE + 98 END * + 62 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-7280
SELECT MAX ( + NULLIF ( ( - 43 ), + 73 * + 30 + - - CASE 95 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + CAST ( ( + 25 ) AS INTEGER ) * - 57 THEN + + 87 WHEN + ( - 28 ) / + 58 THEN NULL ELSE + 98 END * + 62 ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7281
SELECT ALL - COUNT( ALL - 2 ) * - ( + SUM( ALL 70 ) ) AS col2, 8
----
70
8

skipif mysql # not compatible
query II rowsort label-7281
SELECT ALL - COUNT ( ALL - 2 ) * - ( + SUM ( ALL 70 ) ) AS col2, 8
----
70
8

query I rowsort
SELECT ALL - 27 + 49 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7283
SELECT - - 22 * COUNT( * ) * 51, 59 AS col2
----
1122
59

skipif mysql # not compatible
query II rowsort label-7283
SELECT - - 22 * COUNT ( * ) * 51, 59 AS col2
----
1122
59

query I rowsort
SELECT ALL 74 + 83 AS col1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT ALL - + 41 * - CAST( NULL AS SIGNED ) * 22 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL - + 41 * - CAST ( NULL AS INTEGER ) * 22 * + 9
----
NULL

query I rowsort
SELECT DISTINCT + + 79 + 1 * + CASE + + 33 WHEN 64 THEN + 53 + - + 8 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT ALL - CASE + ( + - CASE - 8 WHEN 78 / 61 THEN + 77 END ) WHEN + - COUNT( * ) / - CAST( NULL AS SIGNED ) + - - 66 + MAX( CAST( NULL AS SIGNED ) ) THEN - AVG ( 43 ) WHEN - 66 - + + 22 * - MIN( DISTINCT + 56 ) THEN + - 55 WHEN + - 58 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - CASE + ( + - CASE - 8 WHEN 78 / 61 THEN + 77 END ) WHEN + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - - 66 + MAX ( CAST ( NULL AS INTEGER ) ) THEN - AVG ( 43 ) WHEN - 66 - + + 22 * - MIN ( DISTINCT + 56 ) THEN + - 55 WHEN + - 58 THEN NULL END AS col1
----
NULL

query III rowsort
SELECT - + 99 AS col0, + 37 + - 78 AS col1, - - 90 + 91
----
-99
-41
181

query II rowsort
SELECT DISTINCT + 34 + 91 * - 93 * + + 76 * 75 AS col2, - 72 * - + 81 AS col2
----
-48239066
5832

query I rowsort
SELECT ALL 40 + 62 + + - COALESCE ( + 41, + 34, + + 71 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7291
SELECT - - COUNT( * ) AS col0, + 79
----
1
79

skipif mysql # not compatible
query II rowsort label-7291
SELECT - - COUNT ( * ) AS col0, + 79
----
1
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT DISTINCT + 53 + CASE + 12 WHEN - 44 / + + 75 * + 89 THEN + COUNT( * ) * - NULLIF ( 93, - 48 ) - - + 97 + + + COUNT( * ) / - ( + ( - 4 ) ) ELSE NULL END / + COUNT( * ) col0, 81 * + + 38
----
NULL
3078

skipif mysql # not compatible
query II rowsort label-7292
SELECT DISTINCT + 53 + CASE + 12 WHEN - 44 / + + 75 * + 89 THEN + COUNT ( * ) * - NULLIF ( 93, - 48 ) - - + 97 + + + COUNT ( * ) / - ( + ( - 4 ) ) ELSE NULL END / + COUNT ( * ) col0, 81 * + + 38
----
NULL
3078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7293
SELECT ALL + 95 - - - 23 + - 44, CAST( + COALESCE ( 31, COUNT( * ), 86 * + + 35 - + 76, + 50 ) AS SIGNED ) AS col0
----
28
31

skipif mysql # not compatible
query II rowsort label-7293
SELECT ALL + 95 - - - 23 + - 44, CAST ( + COALESCE ( 31, COUNT ( * ), 86 * + + 35 - + 76, + 50 ) AS INTEGER ) AS col0
----
28
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7294
SELECT + - CAST( - + 94 AS SIGNED ) * 70, + 53 AS col2
----
6580
53

skipif mysql # not compatible
query II rowsort label-7294
SELECT + - CAST ( - + 94 AS INTEGER ) * 70, + 53 AS col2
----
6580
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT + - COUNT( * ) + - + 36 col2
----
-37

skipif mysql # not compatible
query I rowsort label-7295
SELECT + - COUNT ( * ) + - + 36 col2
----
-37

query I rowsort
SELECT - ( + - 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7297
SELECT DISTINCT + CAST( - - 79 AS SIGNED ) * + - 27
----
-2133

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT + CAST ( - - 79 AS INTEGER ) * + - 27
----
-2133

query I rowsort
SELECT + + 45 + - + 23
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7299
SELECT + - 40 - COUNT( * ) * + 48 AS col0, 99 * - 50 * - 84 * + CAST( NULL AS SIGNED ) - - 50 + 75 + - 75 * 12 AS col0
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-7299
SELECT + - 40 - COUNT ( * ) * + 48 AS col0, 99 * - 50 * - 84 * + CAST ( NULL AS INTEGER ) - - 50 + 75 + - 75 * 12 AS col0
----
-88
NULL

query I rowsort
SELECT + 60 * 85
----
5100

query I rowsort
SELECT - 29 * 10
----
-290

query II rowsort
SELECT - + 65 - - 91 * 65, - 41 AS col1
----
5850
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT DISTINCT CASE - CAST( + NULLIF ( - + ( - 82 ), - - 3 + - COUNT( * ) ) AS SIGNED ) WHEN + - 32 THEN - - ( 7 ) * - 92 WHEN - 34 + + - 7 THEN NULL WHEN 51 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT CASE - CAST ( + NULLIF ( - + ( - 82 ), - - 3 + - COUNT ( * ) ) AS INTEGER ) WHEN + - 32 THEN - - ( 7 ) * - 92 WHEN - 34 + + - 7 THEN NULL WHEN 51 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 33, - + 4 ) * + - 6 * - 40 * + + 24
----
-190080

query I rowsort
SELECT ALL + ( 15 ) AS col1
----
15

query I rowsort
SELECT ALL 27 * - 60 * + - 77 * + + 37 * + 4
----
18461520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7307
SELECT DISTINCT 88, NULLIF ( + 18, 72 + CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT + 18 ) + + - 3 AS col2
----
88
-327

skipif mysql # not compatible
query II rowsort label-7307
SELECT DISTINCT 88, NULLIF ( + 18, 72 + CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT + 18 ) + + - 3 AS col2
----
88
-327

query II rowsort
SELECT ALL + ( 13 ), + 35 col0
----
13
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL + MAX( 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + MAX ( 27 ) col0
----
27

query I rowsort
SELECT + COALESCE ( - + 73, + 39 * 24, + + 33 )
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-7311
SELECT 41 DIV - 77 + 61 * 28 col1, 52 AS col1
----
1708
52

skipif mysql # not compatible
query II rowsort label-7311
SELECT 41 / - 77 + 61 * 28 col1, 52 AS col1
----
1708
52

query I rowsort
SELECT ( - 47 ) AS col2
----
-47

query II rowsort
SELECT ALL + 53 AS col1, + 8 * 91 - + 30 AS col0
----
53
698

query I rowsort
SELECT DISTINCT - 69 * + + 38 + + 85 + - - 54 * + 12
----
-1889

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL - COUNT( * ) * - 3 + - 2 + - ( + 46 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - COUNT ( * ) * - 3 + - 2 + - ( + 46 ) AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT 41 * - 64 * - - 70 + CAST( 37 AS SIGNED ) + + 5
----
-183638

skipif mysql # not compatible
query I rowsort label-7316
SELECT 41 * - 64 * - - 70 + CAST ( 37 AS INTEGER ) + + 5
----
-183638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7317
SELECT ALL + 36 * - 48 * - + 19 + - + 35 AS col2, - COALESCE ( 13, CAST( + NULLIF ( + ( + - 72 ), + + 94 ) AS SIGNED ) ) * + 87
----
32797
-1131

skipif mysql # not compatible
query II rowsort label-7317
SELECT ALL + 36 * - 48 * - + 19 + - + 35 AS col2, - COALESCE ( 13, CAST ( + NULLIF ( + ( + - 72 ), + + 94 ) AS INTEGER ) ) * + 87
----
32797
-1131

query I rowsort
SELECT DISTINCT + 69 * - - 58 + - 29 AS col0
----
3973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7319
SELECT ALL 91 * - - CASE - CAST( 35 AS SIGNED ) WHEN + COUNT( * ) * + 69 / + 97 THEN - COALESCE ( - - MAX( 61 ), - COUNT( * ) * 40 * - + 14 - 61 ) * 35 WHEN + 66 THEN + - CAST( + 38 AS SIGNED ) END + - 39 + - - COUNT( 44 ) * AVG ( 58 ) + 23 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL 91 * - - CASE - CAST ( 35 AS INTEGER ) WHEN + COUNT ( * ) * + 69 / + 97 THEN - COALESCE ( - - MAX ( 61 ), - COUNT ( * ) * 40 * - + 14 - 61 ) * 35 WHEN + 66 THEN + - CAST ( + 38 AS INTEGER ) END + - 39 + - - COUNT ( 44 ) * AVG ( 58 ) + 23 * - 30
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7320
SELECT + 73, CAST( NULL AS DECIMAL ) * 83 col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-7320
SELECT + 73, CAST ( NULL AS REAL ) * 83 col2
----
73
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL - ( + 1 ) * + 89 + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - ( + 1 ) * + 89 + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 42 * - 53 + + 33 AS col0
----
-2193

query I rowsort
SELECT - 19 - - 33 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - ( - 35 ) * - - 14 + + COUNT( * ) + - 22 AS col1
----
469

skipif mysql # not compatible
query I rowsort label-7324
SELECT - ( - 35 ) * - - 14 + + COUNT ( * ) + - 22 AS col1
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT - COUNT( * ) * - - 29 col2
----
-29

skipif mysql # not compatible
query I rowsort label-7325
SELECT - COUNT ( * ) * - - 29 col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT + + COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7326
SELECT + + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7327
SELECT DISTINCT - 6 * - 55 + - 11 + + 22, - 61 DIV - 38 AS col2
----
341
1

skipif mysql # not compatible
query II rowsort label-7327
SELECT DISTINCT - 6 * - 55 + - 11 + + 22, - 61 / - 38 AS col2
----
341
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - - 6 * - COUNT( ALL - 67 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - - 6 * - COUNT ( ALL - 67 ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT DISTINCT - 46 DIV + COUNT( + 64 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - 46 / + COUNT ( + 64 ) AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7330
SELECT DISTINCT - 57, CAST( NULL AS SIGNED ) col0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-7330
SELECT DISTINCT - 57, CAST ( NULL AS INTEGER ) col0
----
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL 93 * - - 60 - COUNT( * ) * + COUNT( * ) * - 41 col0
----
5621

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL 93 * - - 60 - COUNT ( * ) * + COUNT ( * ) * - 41 col0
----
5621

onlyif mysql # aggregate syntax: 
query II rowsort label-7332
SELECT - 66 AS col2, COUNT( * ) - + 95 col0
----
-66
-94

skipif mysql # not compatible
query II rowsort label-7332
SELECT - 66 AS col2, COUNT ( * ) - + 95 col0
----
-66
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7333
SELECT ALL + - COUNT( * ) * + 54 * ( - - 20 ) DIV 18 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + - COUNT ( * ) * + 54 * ( - - 20 ) / 18 AS col1
----
-60

query I rowsort
SELECT DISTINCT + + 63 * 51 * - 35 * - - 31
----
-3486105

onlyif mysql # aggregate syntax: 
query II rowsort label-7335
SELECT ALL - 95 AS col2, + COUNT( * )
----
-95
1

skipif mysql # not compatible
query II rowsort label-7335
SELECT ALL - 95 AS col2, + COUNT ( * )
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + 18 + COUNT( * ) - - 49 col0
----
68

skipif mysql # not compatible
query I rowsort label-7336
SELECT + 18 + COUNT ( * ) - - 49 col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - COUNT( + 80 ) * - 2 * - + COALESCE ( - + 1, 17 )
----
2

skipif mysql # not compatible
query I rowsort label-7337
SELECT - COUNT ( + 80 ) * - 2 * - + COALESCE ( - + 1, 17 )
----
2

query I rowsort
SELECT + + 78 * - + 69 + + + 69 AS col2
----
-5313

onlyif mysql # DIV for integer division: 
query II rowsort label-7339
SELECT - 40 AS col0, 14 DIV - + 42 + - - 11
----
-40
11

skipif mysql # not compatible
query II rowsort label-7339
SELECT - 40 AS col0, 14 / - + 42 + - - 11
----
-40
11

query I rowsort
SELECT ALL ( 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query III rowsort label-7341
SELECT DISTINCT - 36 AS col2, 18 AS col1, COUNT( * )
----
-36
18
1

skipif mysql # not compatible
query III rowsort label-7341
SELECT DISTINCT - 36 AS col2, 18 AS col1, COUNT ( * )
----
-36
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL ( - COUNT( * ) ) * + + 34 + 3
----
-31

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL ( - COUNT ( * ) ) * + + 34 + 3
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT COUNT( * ) + + - 98 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + 2 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT COUNT ( * ) + + - 98 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 2 * + 76
----
NULL

query I rowsort
SELECT ALL 67 + - 76 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT 73 / - CAST( NULL AS SIGNED ) + 17 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT 73 / - CAST ( NULL AS INTEGER ) + 17 * 20
----
NULL

query I rowsort
SELECT ALL 79 + + + 97 * + + NULLIF ( + 15, AVG ( DISTINCT 5 ) )
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL COUNT( * ) * + 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL COUNT ( * ) * + 54 AS col2
----
54

query I rowsort
SELECT NULLIF ( 18, - - 16 ) * - 51
----
-918

query II rowsort
SELECT 49 + 95 col1, + 50
----
144
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT + 37 * ( - - COUNT( * ) ) + + 17
----
54

skipif mysql # not compatible
query I rowsort label-7350
SELECT + 37 * ( - - COUNT ( * ) ) + + 17
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7351
SELECT ALL 1 + + CAST( - - 16 AS SIGNED ) * + 44
----
705

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL 1 + + CAST ( - - 16 AS INTEGER ) * + 44
----
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT ALL + NULLIF ( + SUM( ( + 8 ) ), 64 + + - 54 ) - + + 19 + + COALESCE ( + 86, - NULLIF ( + SUM( - - 24 ), + + COUNT( * ) - 24 ) ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL + NULLIF ( + SUM ( ( + 8 ) ), 64 + + - 54 ) - + + 19 + + COALESCE ( + 86, - NULLIF ( + SUM ( - - 24 ), + + COUNT ( * ) - 24 ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 50 * + + 37 AS col2
----
-1850

query I rowsort
SELECT DISTINCT - + 13 col2
----
-13

query I rowsort
SELECT DISTINCT 18 * - 20 AS col0
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7356
SELECT COUNT( * ) * + 16 + CAST( NULL AS SIGNED ) * + 63 * - + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT COUNT ( * ) * + 16 + CAST ( NULL AS INTEGER ) * + 63 * - + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL - - COALESCE ( + COUNT( * ), 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL - - COALESCE ( + COUNT ( * ), 73 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT 31 + - + COUNT( * ), 38 AS col2
----
30
38

skipif mysql # not compatible
query II rowsort label-7358
SELECT 31 + - + COUNT ( * ), 38 AS col2
----
30
38

query I rowsort
SELECT - 19 + 55
----
36

query I rowsort
SELECT - - 20 col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7361
SELECT ALL + SUM( + - 4 ) - - 23 DIV 98 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + SUM ( + - 4 ) - - 23 / 98 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT + NULLIF ( + ( + 7 ), COUNT( DISTINCT - 21 ) ), + SUM( 87 ) AS col0
----
7
87

skipif mysql # not compatible
query II rowsort label-7362
SELECT + NULLIF ( + ( + 7 ), COUNT ( DISTINCT - 21 ) ), + SUM ( 87 ) AS col0
----
7
87

query I rowsort
SELECT DISTINCT 67 col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7364
SELECT ALL - COUNT( * ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL - COUNT ( * ) / - 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT ALL COALESCE ( COALESCE ( - - 10, - - CAST( + 24 AS SIGNED ) - - + 3 + + 6 + - + ( - 53 ) + + + 28 ), 56 * - 74 + + 62 * + 22, - 54 * + + NULLIF ( NULLIF ( COUNT( * ), + 16 * + 14 ), + 17 ) + + 27 * + 58 )
----
10

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL COALESCE ( COALESCE ( - - 10, - - CAST ( + 24 AS INTEGER ) - - + 3 + + 6 + - + ( - 53 ) + + + 28 ), 56 * - 74 + + 62 * + 22, - 54 * + + NULLIF ( NULLIF ( COUNT ( * ), + 16 * + 14 ), + 17 ) + + 27 * + 58 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT COUNT( * ) - - - 45 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7366
SELECT COUNT ( * ) - - - 45 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL - NULLIF ( - COUNT( * ), - NULLIF ( - ( + 1 ), + + 80 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - NULLIF ( - COUNT ( * ), - NULLIF ( - ( + 1 ), + + 80 ) ) AS col0
----
1

query I rowsort
SELECT ALL - 52 * - - 77 + - + 44 AS col2
----
-4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT 10 * - 88 * + + ( + + 12 ) + - CASE + 65 WHEN NULLIF ( + 27, - 89 * - ( + - 54 ) ) THEN - 3 WHEN - - SUM( ALL - + 95 ) THEN 5 ELSE NULL END - COALESCE ( - - 24, ( - COUNT( * ) ), + 21 * 56 / + 7 + + 50 * - - 31 * - + CAST( + COUNT( * ) AS SIGNED ) ) + - COUNT( ALL + 28 ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT 10 * - 88 * + + ( + + 12 ) + - CASE + 65 WHEN NULLIF ( + 27, - 89 * - ( + - 54 ) ) THEN - 3 WHEN - - SUM ( ALL - + 95 ) THEN 5 ELSE NULL END - COALESCE ( - - 24, ( - COUNT ( * ) ), + 21 * 56 / + 7 + + 50 * - - 31 * - + CAST ( + COUNT ( * ) AS INTEGER ) ) + - COUNT ( ALL + 28 ) * 7
----
NULL

query I rowsort
SELECT - 35 + 24 + - 59 * + - 92
----
5417

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT 28 - - + COUNT( * ) - - 16 + 45 * - 51 * - 5 col2
----
11520

skipif mysql # not compatible
query I rowsort label-7371
SELECT 28 - - + COUNT ( * ) - - 16 + 45 * - 51 * - 5 col2
----
11520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7372
SELECT ( 26 ) * COUNT( * ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT ( 26 ) * COUNT ( * ) / - 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7373
SELECT ALL SUM( DISTINCT + 21 ) + + COUNT( * ) - + SUM( ALL 16 ) + + - COALESCE ( - COALESCE ( + 81, - 24 DIV - 22 ), - 58, + 44, + 79 ) * - 68 + 67 + - 58 * - 90 * - 31 * + 22 * - 95 - + + 27 AS col1
----
338198338

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL SUM ( DISTINCT + 21 ) + + COUNT ( * ) - + SUM ( ALL 16 ) + + - COALESCE ( - COALESCE ( + 81, - 24 / - 22 ), - 58, + 44, + 79 ) * - 68 + 67 + - 58 * - 90 * - 31 * + 22 * - 95 - + + 27 AS col1
----
338198338

query I rowsort
SELECT 27 + - - 2 - - 39
----
68

query I rowsort
SELECT DISTINCT 52 col1
----
52

query I rowsort
SELECT DISTINCT 61 + - - 13
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7377
SELECT DISTINCT COUNT( * ) AS col1, 73 AS col0
----
1
73

skipif mysql # not compatible
query II rowsort label-7377
SELECT DISTINCT COUNT ( * ) AS col1, 73 AS col0
----
1
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7378
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT 78 * + 62 DIV - COUNT( * ) + - + COUNT( * ) + - - 65
----
-4772

skipif mysql # not compatible
query I rowsort label-7379
SELECT 78 * + 62 / - COUNT ( * ) + - + COUNT ( * ) + - - 65
----
-4772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7380
SELECT - 58 DIV 19 + + 92 * + - MAX( - 87 )
----
8001

skipif mysql # not compatible
query I rowsort label-7380
SELECT - 58 / 19 + + 92 * + - MAX ( - 87 )
----
8001

query I rowsort
SELECT ALL 60 * + 50 AS col1
----
3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT ALL CAST( COUNT( * ) AS SIGNED ) - - 65 + + CAST( NULL AS SIGNED ) + SUM( DISTINCT 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) - - 65 + + CAST ( NULL AS INTEGER ) + SUM ( DISTINCT 70 ) AS col2
----
NULL

query I rowsort
SELECT ALL 63 - - 12
----
75

query I rowsort
SELECT DISTINCT 11 - - 37
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL - MAX( ALL 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - MAX ( ALL 62 )
----
-62

query II rowsort
SELECT - 50, 6 * 67 AS col0
----
-50
402

query I rowsort
SELECT 76 * + 59
----
4484

query I rowsort
SELECT 20 * - 83
----
-1660

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL - MIN( + - ( + 84 ) )
----
84

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - MIN ( + - ( + 84 ) )
----
84

query I rowsort
SELECT ALL - - NULLIF ( + - 7, - ( 36 ) ) * + + 1 AS col1
----
-7

query I rowsort
SELECT 68 + 81 AS col0
----
149

query II rowsort
SELECT ALL - - 9 AS col0, - 21 AS col0
----
9
-21

query I rowsort
SELECT 99 * - 52
----
-5148

query I rowsort
SELECT DISTINCT - 45 + + - 33
----
-78

query II rowsort
SELECT ALL 96 AS col0, - 78 AS col0
----
96
-78

query I rowsort
SELECT ALL 36 + 85
----
121

query I rowsort
SELECT + + 90 + - 23
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT - + COUNT( * ) + + - 51 * 49 AS col0, + MAX( 22 )
----
-2500
22

skipif mysql # not compatible
query II rowsort label-7398
SELECT - + COUNT ( * ) + + - 51 * 49 AS col0, + MAX ( 22 )
----
-2500
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT - ( 57 ) + MAX( + 63 ) + - 31 - - CAST( NULL AS SIGNED ) + + ( - - 91 ) / - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT - ( 57 ) + MAX ( + 63 ) + - 31 - - CAST ( NULL AS INTEGER ) + + ( - - 91 ) / - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT + - 56 * - COUNT( DISTINCT + 13 )
----
56

skipif mysql # not compatible
query I rowsort label-7400
SELECT + - 56 * - COUNT ( DISTINCT + 13 )
----
56

query I rowsort
SELECT - NULLIF ( 23, + + 66 )
----
-23

query I rowsort
SELECT - 73 + - 82 AS col0
----
-155

query I rowsort
SELECT - 32 * - - 72 * + - 25
----
57600

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT ALL 38 DIV + 11
----
3

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL 38 / + 11
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT SUM( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT SUM ( DISTINCT - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT ALL - COUNT( * ) + 35
----
34

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - COUNT ( * ) + 35
----
34

query I rowsort
SELECT DISTINCT + 64 * 84
----
5376

query I rowsort
SELECT + 96 - - + 43
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT - COUNT( * ) + 54
----
53

skipif mysql # not compatible
query I rowsort label-7409
SELECT - COUNT ( * ) + 54
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT DISTINCT + 74 - + COUNT( * ) col1, - 88
----
73
-88

skipif mysql # not compatible
query II rowsort label-7410
SELECT DISTINCT + 74 - + COUNT ( * ) col1, - 88
----
73
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT DISTINCT NULLIF ( ( 34 ), 98 ) AS col2, - CASE - ( - 22 ) WHEN + 64 THEN NULL WHEN - 95 + - 67 * + 34 THEN - 28 END
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ALL CASE + ( + - 14 ) WHEN ( + 55 ) THEN - - 75 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL CASE + ( + - 14 ) WHEN ( + 55 ) THEN - - 75 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL - COUNT( * ) * 99 * 3 col1
----
-297

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - COUNT ( * ) * 99 * 3 col1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL + CASE + + ( + COUNT( * ) ) WHEN + + 68 * 80 - - 42 * - 71 + - 58 - 7 THEN 9 + - COUNT( * ) WHEN - + 60 THEN + 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + CASE + + ( + COUNT ( * ) ) WHEN + + 68 * 80 - - 42 * - 71 + - 58 - 7 THEN 9 + - COUNT ( * ) WHEN - + 60 THEN + 18 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 6 * - - 11
----
66

query I rowsort
SELECT + 78 * + 98 + + 7 col1
----
7651

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL - 67 * 10 - + CASE + COUNT( * ) WHEN - + 91 THEN - 64 * + + COUNT( + + 32 ) * - 92 WHEN + ( 71 ) * - 37 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - 67 * 10 - + CASE + COUNT ( * ) WHEN - + 91 THEN - 64 * + + COUNT ( + + 32 ) * - 92 WHEN + ( 71 ) * - 37 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7419
SELECT - - 62 * - - CAST( NULL AS DECIMAL ) + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT - - 62 * - - CAST ( NULL AS REAL ) + 93 AS col1
----
NULL

query I rowsort
SELECT + + ( + - ( - - 43 ) ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7421
SELECT DISTINCT - COUNT( * ) * 76 + 59 - + ( + 70 ) * - + 10 + - CAST( + - 4 AS SIGNED )
----
687

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT - COUNT ( * ) * 76 + 59 - + ( + 70 ) * - + 10 + - CAST ( + - 4 AS INTEGER )
----
687

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT + 24 * + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7422
SELECT + 24 * + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT 65 * COUNT( * ) + + + COUNT( * ) * + 51
----
116

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT 65 * COUNT ( * ) + + + COUNT ( * ) * + 51
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT + 51 DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7424
SELECT + 51 / 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT + COUNT( * ) * - 51 - + 55
----
-106

skipif mysql # not compatible
query I rowsort label-7425
SELECT + COUNT ( * ) * - 51 - + 55
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT + + COALESCE ( COUNT( * ), + + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT + + COALESCE ( COUNT ( * ), + + 39 )
----
1

query I rowsort
SELECT + + 86 + COALESCE ( + 16, + + 46 ) AS col0
----
102

query I rowsort
SELECT - - 83 col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7429
SELECT DISTINCT + + 71 * + - COUNT( * ) * 47 * + NULLIF ( + + 29, + 84 ) + - ( + 90 ) + - 63 AS col2, 92 DIV + 88
----
-96926
1

skipif mysql # not compatible
query II rowsort label-7429
SELECT DISTINCT + + 71 * + - COUNT ( * ) * 47 * + NULLIF ( + + 29, + 84 ) + - ( + 90 ) + - 63 AS col2, 92 / + 88
----
-96926
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + - 5 * + 95 + 94 * SUM( DISTINCT - + 24 )
----
-2731

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + - 5 * + 95 + 94 * SUM ( DISTINCT - + 24 )
----
-2731

query I rowsort
SELECT - 32 * 94 - - 6
----
-3002

query I rowsort
SELECT + 9 + + - ( + - 29 ) AS col1
----
38

query I rowsort
SELECT DISTINCT - 78 + - - 0 AS col2
----
-78

query I rowsort
SELECT + 96 + + 42
----
138

onlyif mysql # aggregate syntax: 
query II rowsort label-7435
SELECT ALL COUNT( * ) AS col2, - 37 AS col2
----
1
-37

skipif mysql # not compatible
query II rowsort label-7435
SELECT ALL COUNT ( * ) AS col2, - 37 AS col2
----
1
-37

query I rowsort
SELECT - ( - 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + 73 + + COUNT( * ) + + + 53 * - + COUNT( * ) - - - 45
----
-24

skipif mysql # not compatible
query I rowsort label-7437
SELECT + 73 + + COUNT ( * ) + + + 53 * - + COUNT ( * ) - - - 45
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL COUNT( DISTINCT - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL COUNT ( DISTINCT - 72 )
----
1

query I rowsort
SELECT - ( - 96 ) AS col0
----
96

query II rowsort
SELECT - 11 AS col0, 4
----
-11
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL NULLIF ( + COUNT( * ), CASE + - 89 WHEN - 33 THEN NULL ELSE - COUNT( DISTINCT - 95 ) * + 34 END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL NULLIF ( + COUNT ( * ), CASE + - 89 WHEN - 33 THEN NULL ELSE - COUNT ( DISTINCT - 95 ) * + 34 END ) AS col1
----
1

query I rowsort
SELECT ALL + 61 - - 52
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT + COUNT( * ) DIV - NULLIF ( - - 33, + 53 ) * - - 22
----
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT + COUNT ( * ) / - NULLIF ( - - 33, + 53 ) * - - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL COUNT( 64 )
----
1

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL COUNT ( 64 )
----
1

query I rowsort
SELECT ALL 1 - 71
----
-70

query I rowsort
SELECT - ( - 32 ) * - 54 * + 42 AS col0
----
-72576

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT + COUNT( * ) + + - 67 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7447
SELECT + COUNT ( * ) + + - 67 AS col1
----
-66

query I rowsort
SELECT - 89 * + 92
----
-8188

query II rowsort
SELECT ALL + 22 col0, + 19 AS col1
----
22
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT + COUNT( DISTINCT + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-7450
SELECT + COUNT ( DISTINCT + 2 )
----
1

query I rowsort
SELECT ALL + ( 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL + ( - SUM( ALL 99 ) ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + ( - SUM ( ALL 99 ) ) col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT - MAX( + 67 ) * + 13
----
-871

skipif mysql # not compatible
query I rowsort label-7453
SELECT - MAX ( + 67 ) * + 13
----
-871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7454
SELECT ALL COUNT( * ) DIV - 54 + - 67 * - COUNT( * ) col1
----
67

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL COUNT ( * ) / - 54 + - 67 * - COUNT ( * ) col1
----
67

query I rowsort
SELECT ALL - 80 * + 94
----
-7520

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT DISTINCT ( 7 ) DIV + 34 + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT ( 7 ) / + 34 + 9 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7457
SELECT ALL - 52 DIV MAX( DISTINCT 32 ) + + ( + 56 ) * 83 AS col1
----
4647

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - 52 / MAX ( DISTINCT 32 ) + + ( + 56 ) * 83 AS col1
----
4647

query I rowsort
SELECT - 67 * + 71 + - 58 * 82 col0
----
-9513

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - 99 + COUNT( DISTINCT 6 )
----
-98

skipif mysql # not compatible
query I rowsort label-7459
SELECT - 99 + COUNT ( DISTINCT 6 )
----
-98

query I rowsort
SELECT 83 + - ( 96 + 38 ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) + 69 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 69 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT COUNT( * ) + + ( - 54 ) * - 98
----
5293

skipif mysql # not compatible
query I rowsort label-7462
SELECT COUNT ( * ) + + ( - 54 ) * - 98
----
5293

query I rowsort
SELECT DISTINCT + 9 + 37 AS col2
----
46

query I rowsort
SELECT ALL 74 + + 75
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT - 28 * + SUM( 97 ) + COUNT( DISTINCT 21 ) AS col2
----
-2715

skipif mysql # not compatible
query I rowsort label-7465
SELECT - 28 * + SUM ( 97 ) + COUNT ( DISTINCT 21 ) AS col2
----
-2715

query I rowsort
SELECT ALL ( - 28 ) + + 96
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT COUNT( * ) + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7467
SELECT COUNT ( * ) + - 23 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7468
SELECT DISTINCT + NULLIF ( COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) + 34, + MIN( 67 ) ), + MAX( 96 ) * - 43 + 72 * - 31 ) + 84 col1
----
85

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT + NULLIF ( COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) + 34, + MIN ( 67 ) ), + MAX ( 96 ) * - 43 + 72 * - 31 ) + 84 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT DISTINCT - COUNT( * ) * 16
----
-16

skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT - COUNT ( * ) * 16
----
-16

query I rowsort
SELECT DISTINCT 62 - 21
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT DISTINCT 38 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT 38 / 64
----
0

query I rowsort
SELECT 24 + 13 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT CAST( - 88 AS SIGNED ) + 75
----
-13

skipif mysql # not compatible
query I rowsort label-7473
SELECT CAST ( - 88 AS INTEGER ) + 75
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL 61 - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL 61 - COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT 96 * - 89 AS col0
----
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT 58 + + 57 * COUNT( * ) col1
----
115

skipif mysql # not compatible
query I rowsort label-7476
SELECT 58 + + 57 * COUNT ( * ) col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL 31 * + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL 31 * + COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT CASE + 36 WHEN NULLIF ( + 71, 9 * - 35 + 1 ) THEN - 97 WHEN COUNT( * ) * - 33 THEN NULL END + AVG ( - 55 + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT CASE + 36 WHEN NULLIF ( + 71, 9 * - 35 + 1 ) THEN - 97 WHEN COUNT ( * ) * - 33 THEN NULL END + AVG ( - 55 + 15 )
----
NULL

query I rowsort
SELECT ALL 42 * - COALESCE ( + CASE AVG ( DISTINCT + 86 ) WHEN 42 THEN 49 * 63 WHEN + 8 THEN NULL ELSE NULL END, - 66, - 74 ) AS col2
----
2772

query I rowsort
SELECT DISTINCT + 47 * 16
----
752

query I rowsort
SELECT DISTINCT 60 * - 55
----
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT CAST( 35 AS SIGNED ) / CASE + 85 WHEN - ( - 12 ) THEN 54 + 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT CAST ( 35 AS INTEGER ) / CASE + 85 WHEN - ( - 12 ) THEN 54 + 69 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7483
SELECT ALL 95 * - CASE COUNT( * ) WHEN + 5 - 68 THEN NULL WHEN - COALESCE ( + 0, - 77 ) THEN COUNT( DISTINCT + 93 ) * - COUNT( * ) WHEN 39 + + 43 * - 33 THEN + CAST( 3 AS SIGNED ) * + ( + NULLIF ( - NULLIF ( 78, 68 ), CAST( - 24 AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL 95 * - CASE COUNT ( * ) WHEN + 5 - 68 THEN NULL WHEN - COALESCE ( + 0, - 77 ) THEN COUNT ( DISTINCT + 93 ) * - COUNT ( * ) WHEN 39 + + 43 * - 33 THEN + CAST ( 3 AS INTEGER ) * + ( + NULLIF ( - NULLIF ( 78, 68 ), CAST ( - 24 AS INTEGER ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT CASE 6 WHEN 18 * + 8 - - COUNT( * ) THEN 55 WHEN 25 THEN 60 + - COUNT( * ) END * - ( 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT CASE 6 WHEN 18 * + 8 - - COUNT ( * ) THEN 55 WHEN 25 THEN 60 + - COUNT ( * ) END * - ( 26 )
----
NULL

query I rowsort
SELECT 93 + COALESCE ( + 69, 93 )
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT COUNT( * ) + + 63 * 10
----
631

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT COUNT ( * ) + + 63 * 10
----
631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7487
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7487
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT + COUNT( * ) + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7488
SELECT + COUNT ( * ) + 68 AS col1
----
69

query I rowsort
SELECT + 79 * 87
----
6873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT DISTINCT + 18 DIV - SUM( ALL 39 * 87 + + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT + 18 / - SUM ( ALL 39 * 87 + + 20 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT ALL - - 27 + 56 DIV 71 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - - 27 + 56 / 71 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL 62 + + COUNT( * ) col2
----
63

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL 62 + + COUNT ( * ) col2
----
63

query I rowsort
SELECT ALL + 85 * 56 AS col2
----
4760

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT + 6 DIV - 23 col0
----
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT + 6 / - 23 col0
----
0

query I rowsort
SELECT ALL 76 + + 77
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT DISTINCT ( - 9 ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT ( - 9 ) / 62 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7497
SELECT - 72 DIV SUM( - 27 + + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-7497
SELECT - 72 / SUM ( - 27 + + 99 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT 43 DIV 33 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7498
SELECT 43 / 33 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT - MAX( ALL - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7499
SELECT - MAX ( ALL - 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ( + NULLIF ( - CASE + 67 WHEN 18 THEN + 90 ELSE COUNT( * ) END, 95 / 89 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7500
SELECT ( + NULLIF ( - CASE + 67 WHEN 18 THEN + 90 ELSE COUNT ( * ) END, 95 / 89 ) ) AS col1
----
-1

query I rowsort
SELECT + 55 * 60
----
3300

query I rowsort
SELECT ALL + 33 + 36 col0
----
69

query I rowsort
SELECT CASE 67 WHEN 87 THEN NULL WHEN 10 * + 64 THEN + 35 END AS col0
----
NULL

query I rowsort
SELECT + - ( ( 32 ) )
----
-32

query I rowsort
SELECT ALL + ( 84 ) * 37
----
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + 22 * + SUM( - 83 ) AS col0
----
-1826

skipif mysql # not compatible
query I rowsort label-7506
SELECT + 22 * + SUM ( - 83 ) AS col0
----
-1826

query I rowsort
SELECT ALL + 72 - 42
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7508
SELECT DISTINCT - - CAST( MIN( 47 ) AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - - CAST ( MIN ( 47 ) AS INTEGER )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL - - ( + COUNT( * ) ) - - 40 * - 64
----
-2559

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - - ( + COUNT ( * ) ) - - 40 * - 64
----
-2559

query I rowsort
SELECT - ( + 16 ) * 7 + + 99 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL - ( + MIN( DISTINCT + 48 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL - ( + MIN ( DISTINCT + 48 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL - SUM( - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL - SUM ( - 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT 27 + - 9 DIV - 84
----
27

skipif mysql # not compatible
query I rowsort label-7513
SELECT 27 + - 9 / - 84
----
27

query I rowsort
SELECT ( 59 ) * 12 + 19 AS col0
----
727

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT 43 * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT 43 * - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 52 - - + 7
----
59

query I rowsort
SELECT DISTINCT - 70 * + - 58 AS col2
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT 68 * + CASE - 42 WHEN 16 THEN 6 * AVG ( DISTINCT 72 ) + - COUNT( * ) * - 90 WHEN COALESCE ( + ( + 16 ), - 53 * - MIN( DISTINCT 62 ) ) + ( 31 - - 96 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT 68 * + CASE - 42 WHEN 16 THEN 6 * AVG ( DISTINCT 72 ) + - COUNT ( * ) * - 90 WHEN COALESCE ( + ( + 16 ), - 53 * - MIN ( DISTINCT 62 ) ) + ( 31 - - 96 ) THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7519
SELECT COUNT( + + 10 ) + 88 DIV + 49 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7519
SELECT COUNT ( + + 10 ) + 88 / + 49 AS col1
----
2

query I rowsort
SELECT ALL + 97 * - 52
----
-5044

query I rowsort
SELECT ALL + 88 * - 42
----
-3696

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT 58 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-7522
SELECT 58 / 66
----
0

query I rowsort
SELECT 93 * - 30 col0
----
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7524
SELECT DISTINCT 13 DIV - 69 * - COUNT( ( 20 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT 13 / - 69 * - COUNT ( ( 20 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT SUM( + 12 ) * 88
----
1056

skipif mysql # not compatible
query I rowsort label-7525
SELECT SUM ( + 12 ) * 88
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ( - + 41 ) * COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7526
SELECT ( - + 41 ) * COUNT ( * )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT ALL 7 + - 98 DIV + 33 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL 7 + - 98 / + 33 AS col0
----
5

query I rowsort
SELECT - 77 * + 5 AS col0
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL COUNT( * ) + - - 83 * + 51 col0
----
4234

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL COUNT ( * ) + - - 83 * + 51 col0
----
4234

query I rowsort
SELECT DISTINCT + 56 + - - 47 AS col2
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7531
SELECT ALL CAST( NULL AS DECIMAL ) + + - 45 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL CAST ( NULL AS REAL ) + + - 45 * 36 AS col2
----
NULL

query I rowsort
SELECT ALL 34 * 5 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL MAX( ALL + 15 ) + + 51
----
66

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL MAX ( ALL + 15 ) + + 51
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT + + 17 - - 94 DIV 49 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7534
SELECT + + 17 - - 94 / 49 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7535
SELECT + + 36 DIV - + SUM( DISTINCT + 75 ) + + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7535
SELECT + + 36 / - + SUM ( DISTINCT + 75 ) + + 12 AS col1
----
12

query I rowsort
SELECT ALL + - 71 * + 6 + + 23 + ( - 68 )
----
-471

query I rowsort
SELECT + - 73 + - - 70
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7538
SELECT + - CASE COALESCE ( + 97, 10 + COALESCE ( + 40, + CASE + 89 WHEN - CAST( 98 AS SIGNED ) THEN 33 WHEN + CAST( NULL AS DECIMAL ) THEN NULL WHEN COUNT( DISTINCT + 70 ) THEN 84 END + 64 ) ) WHEN + COUNT( * ) THEN NULL WHEN 86 * 35 - 85 * 91 THEN + ( 70 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT + - CASE COALESCE ( + 97, 10 + COALESCE ( + 40, + CASE + 89 WHEN - CAST ( 98 AS INTEGER ) THEN 33 WHEN + CAST ( NULL AS REAL ) THEN NULL WHEN COUNT ( DISTINCT + 70 ) THEN 84 END + 64 ) ) WHEN + COUNT ( * ) THEN NULL WHEN 86 * 35 - 85 * 91 THEN + ( 70 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + ( 63 ) * 45 + - 60 * 3
----
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT - - 18 * 1 - CASE COUNT( * ) WHEN 13 THEN ( - 95 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - - 18 * 1 - CASE COUNT ( * ) WHEN 13 THEN ( - 95 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7541
SELECT - 12 * + MAX( DISTINCT 93 ) + 15 + ( + COALESCE ( - 86, + 18 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT - 12 * + MAX ( DISTINCT 93 ) + 15 + ( + COALESCE ( - 86, + 18 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 21 * 95 - + 9 AS col0
----
1986

query I rowsort
SELECT - - 41 + - 69 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL + SUM( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + SUM ( 57 ) AS col1
----
57

query I rowsort
SELECT + CASE - 75 WHEN 60 * + 99 THEN 81 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7546
SELECT ALL + CAST( ( - - NULLIF ( - 11, + 16 - 90 ) ) AS SIGNED ) * ( COUNT( * ) * - 30 ) AS col2
----
330

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL + CAST ( ( - - NULLIF ( - 11, + 16 - 90 ) ) AS INTEGER ) * ( COUNT ( * ) * - 30 ) AS col2
----
330

query II rowsort
SELECT ALL + 7 AS col0, + 26
----
7
26

query I rowsort
SELECT + ( 56 ) AS col0
----
56

query II rowsort
SELECT + 42 AS col0, + ( + 38 ) AS col0
----
42
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT ALL CAST( NULL AS SIGNED ) * + ( 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL CAST ( NULL AS INTEGER ) * + ( 65 )
----
NULL

query I rowsort
SELECT - 96 * 12 * 22 * + 70 col1
----
-1774080

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL ( + COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT ( - SUM( ALL - NULLIF ( + 16, 72 * - 71 ) ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT ( - SUM ( ALL - NULLIF ( + 16, 72 * - 71 ) ) ) AS col1
----
16

query I rowsort
SELECT ALL + 2 + - + 6 + + 15
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT COUNT( * ) col0, ( - + 67 )
----
1
-67

skipif mysql # not compatible
query II rowsort label-7555
SELECT COUNT ( * ) col0, ( - + 67 )
----
1
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT - COUNT( * ) + - 14 * + 86 AS col0
----
-1205

skipif mysql # not compatible
query I rowsort label-7556
SELECT - COUNT ( * ) + - 14 * + 86 AS col0
----
-1205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7557
SELECT - 60 * + CAST( - COUNT( ALL + 60 ) AS SIGNED ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7557
SELECT - 60 * + CAST ( - COUNT ( ALL + 60 ) AS INTEGER ) AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT ALL - 30 DIV - - 50 * + 79
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - 30 / - - 50 * + 79
----
0

query II rowsort
SELECT - 18 col2, 3 * - 90
----
-18
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL + 66 + 54 + - 66 + CAST( NULL AS SIGNED ) / 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + 66 + 54 + - 66 + CAST ( NULL AS INTEGER ) / 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7561
SELECT - 72 AS col2, - CAST( NULL AS SIGNED ) + - + COUNT( * ) / 41
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-7561
SELECT - 72 AS col2, - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) / 41
----
-72
NULL

query I rowsort
SELECT DISTINCT + 85 + 78
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL 41 * - COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL 41 * - COUNT ( * ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT - 47 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT - 47 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 21 + 92 * + + 73
----
6695

query I rowsort
SELECT DISTINCT - 1 + 26
----
25

query I rowsort
SELECT ALL + 27 + - 74 * - + 27 AS col1
----
2025

query I rowsort
SELECT ALL ( 41 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT - - 52 DIV 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7569
SELECT - - 52 / 37 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT + - COUNT( * ) + + 30 + - 78
----
-49

skipif mysql # not compatible
query I rowsort label-7570
SELECT + - COUNT ( * ) + + 30 + - 78
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT CASE - - 18 WHEN - 70 THEN NULL WHEN - 16 - COUNT( * ) * + 57 THEN MAX( - 59 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT CASE - - 18 WHEN - 70 THEN NULL WHEN - 16 - COUNT ( * ) * + 57 THEN MAX ( - 59 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7572
SELECT ALL + COUNT( * ) DIV - - 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + COUNT ( * ) / - - 72 col0
----
0

query I rowsort
SELECT + 24 + - - 57 * + 93 * 24
----
127248

query II rowsort
SELECT ALL + 62, 92 col1
----
62
92

query I rowsort
SELECT DISTINCT - 83 * - 44
----
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL + MAX( 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + MAX ( 52 ) AS col2
----
52

query I rowsort
SELECT DISTINCT + + ( + 28 )
----
28

query I rowsort
SELECT DISTINCT - 39 * + 76
----
-2964

query I rowsort
SELECT + + 12 * 25 + - 24 + 51 AS col0
----
327

query I rowsort
SELECT ALL 10 * + 43
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT + COUNT( DISTINCT + 88 ) * - 63
----
-63

skipif mysql # not compatible
query I rowsort label-7581
SELECT + COUNT ( DISTINCT + 88 ) * - 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + CASE + 88 WHEN COUNT( * ) THEN + 5 * NULLIF ( 51 + - AVG ( 3 ), 14 + + 56 ) ELSE + 31 END
----
31

skipif mysql # not compatible
query I rowsort label-7582
SELECT + CASE + 88 WHEN COUNT ( * ) THEN + 5 * NULLIF ( 51 + - AVG ( 3 ), 14 + + 56 ) ELSE + 31 END
----
31

query I rowsort
SELECT + 26 * - 90
----
-2340

query I rowsort
SELECT ALL 28 * + 65 + + + 59
----
1879

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT DISTINCT - 15 DIV - + 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT - 15 / - + 16 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7586
SELECT + CAST( 67 AS SIGNED ) col0, - 45 + - CAST( NULL AS SIGNED ) + 93 * 53 AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7586
SELECT + CAST ( 67 AS INTEGER ) col0, - 45 + - CAST ( NULL AS INTEGER ) + 93 * 53 AS col0
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT MIN( DISTINCT 91 ) * - COUNT( * ) + COUNT( * ) * 0 + - 12
----
-103

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT MIN ( DISTINCT 91 ) * - COUNT ( * ) + COUNT ( * ) * 0 + - 12
----
-103

query I rowsort
SELECT ALL + 97 * + 63
----
6111

query I rowsort
SELECT ( + - 20 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT ALL 19 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL 19 / + 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7591
SELECT ALL CASE - - 29 WHEN - + 24 * - 32 + CAST( NULL AS SIGNED ) THEN 65 * + 88 WHEN ( - 24 ) / + 98 THEN NULL ELSE 39 + + ( - 42 ) END * 11 + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL CASE - - 29 WHEN - + 24 * - 32 + CAST ( NULL AS INTEGER ) THEN 65 * + 88 WHEN ( - 24 ) / + 98 THEN NULL ELSE 39 + + ( - 42 ) END * 11 + COUNT ( * )
----
-32

query I rowsort
SELECT COALESCE ( 27, + + 44 * - 57 ) * 17 + + 63 AS col0
----
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT + 1 * + NULLIF ( - + CAST( NULL AS SIGNED ), - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT + 1 * + NULLIF ( - + CAST ( NULL AS INTEGER ), - 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT + SUM( DISTINCT + 76 ) + - 38 - 56 - - 97
----
79

skipif mysql # not compatible
query I rowsort label-7594
SELECT + SUM ( DISTINCT + 76 ) + - 38 - 56 - - 97
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT - ( - - COUNT( * ) ) * 50 * + 81 * + 91
----
-368550

skipif mysql # not compatible
query I rowsort label-7595
SELECT - ( - - COUNT ( * ) ) * 50 * + 81 * + 91
----
-368550

query I rowsort
SELECT ALL 72 * - 77 AS col0
----
-5544

query I rowsort
SELECT - 42 * - 77 * 39 AS col1
----
126126

query I rowsort
SELECT CASE 46 WHEN + ( 90 ) THEN NULL ELSE 50 * 83 - 0 END AS col1
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL 52 * + + CASE - 92 WHEN - MAX( + 99 ) * - 61 THEN - 76 END + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL 52 * + + CASE - 92 WHEN - MAX ( + 99 ) * - 61 THEN - 76 END + - 97
----
NULL

query I rowsort
SELECT ALL - 92 * COALESCE ( - ( - 98 ), 18 ) + 11
----
-9005

query I rowsort
SELECT + ( + 52 ) + 15 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL MAX( - ( - - 52 ) ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL MAX ( - ( - - 52 ) ) col2
----
-52

query I rowsort
SELECT DISTINCT - 42 * + - 87 + 97
----
3751

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - 6 + + + 94 + - + 12 + COALESCE ( CASE WHEN NOT NULL IN ( COUNT( * ) ) THEN - 45 * + 45 + - 13 ELSE - 59 + 72 END, 47 * - 50 - 51 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7604
SELECT - 6 + + + 94 + - + 12 + COALESCE ( CASE WHEN NOT NULL IN ( COUNT ( * ) ) THEN - 45 * + 45 + - 13 ELSE - 59 + 72 END, 47 * - 50 - 51 ) AS col2
----
89

query I rowsort
SELECT DISTINCT - - 54 + - - 35 + - 77 * + + 11 * 61 + + 43 * 13 * + 27 AS col2
----
-36485

query I rowsort
SELECT + ( - + 62 ) + + - 93 AS col0
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT CAST( NULL AS SIGNED ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT CAST ( NULL AS INTEGER ) * - 84
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 78 ) - - - 76 AS col2
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT 98 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT 98 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7610
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2, 62 * - + 39 * 6 AS col1
----
NULL
-14508

skipif mysql # not compatible
query II rowsort label-7610
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2, 62 * - + 39 * 6 AS col1
----
NULL
-14508

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT 28 - + MAX( + ( + - ( 1 ) ) ) col0
----
29

skipif mysql # not compatible
query I rowsort label-7611
SELECT 28 - + MAX ( + ( + - ( 1 ) ) ) col0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7612
SELECT DISTINCT + + 11 - - 14 + CAST( NULL AS DECIMAL ) * 55 / 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT + + 11 - - 14 + CAST ( NULL AS REAL ) * 55 / 38 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 54 - + - COALESCE ( 49, + - 40, - 44 * 64 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL - 10 * - COUNT( * ) * 66 / + + CASE 78 WHEN COUNT( * ) * COUNT( * ) + COUNT( * ) THEN 9 WHEN 70 + 94 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - 10 * - COUNT ( * ) * 66 / + + CASE 78 WHEN COUNT ( * ) * COUNT ( * ) + COUNT ( * ) THEN 9 WHEN 70 + 94 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT - 41 + + COUNT( * ) + - + 89 + + - 56 * + 33 AS col1
----
-1977

skipif mysql # not compatible
query I rowsort label-7615
SELECT - 41 + + COUNT ( * ) + - + 89 + + - 56 * + 33 AS col1
----
-1977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT 98 - + 38 + CAST( + - 27 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-7616
SELECT 98 - + 38 + CAST ( + - 27 AS INTEGER )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT + 15 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT + 15 / 86
----
0

query I rowsort
SELECT 46 + + 94 * - 5 * - 59 AS col2
----
27776

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 44, + 39 )
----
44

query I rowsort
SELECT ALL 38 + + - 71
----
-33

query I rowsort
SELECT ALL - ( + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT 2 * + - 88 * 76 * + COUNT( * ) * - 28 + 90 col1
----
374618

skipif mysql # not compatible
query I rowsort label-7622
SELECT 2 * + - 88 * 76 * + COUNT ( * ) * - 28 + 90 col1
----
374618

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL 32 * - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL 32 * - COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL + 2 + + 42 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT SUM( DISTINCT + 99 ) + + - 69 * 35
----
-2316

skipif mysql # not compatible
query I rowsort label-7625
SELECT SUM ( DISTINCT + 99 ) + + - 69 * 35
----
-2316

query I rowsort
SELECT ALL 79 + - 32 * - 73 * + 21 - 14 AS col0
----
49121

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT 52 * - - 74 * + + NULLIF ( - COUNT( * ), 82 / - 41 )
----
-3848

skipif mysql # not compatible
query I rowsort label-7627
SELECT 52 * - - 74 * + + NULLIF ( - COUNT ( * ), 82 / - 41 )
----
-3848

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL 96 * COUNT( * ) col2
----
96

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL 96 * COUNT ( * ) col2
----
96

query I rowsort
SELECT 97 + - 54
----
43

query I rowsort
SELECT DISTINCT 31 * - 57 col1
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT MIN( DISTINCT - + ( - 70 ) ) * + 37 * - - 60
----
155400

skipif mysql # not compatible
query I rowsort label-7631
SELECT MIN ( DISTINCT - + ( - 70 ) ) * + 37 * - - 60
----
155400

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL 25 + + 85 + - SUM( 77 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL 25 + + 85 + - SUM ( 77 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7633
SELECT DISTINCT - 54 AS col1, - COUNT( * )
----
-54
-1

skipif mysql # not compatible
query II rowsort label-7633
SELECT DISTINCT - 54 AS col1, - COUNT ( * )
----
-54
-1

query II rowsort
SELECT DISTINCT - 25 AS col2, - 69 AS col0
----
-25
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT CASE + + 54 WHEN 29 THEN - 45 WHEN + COALESCE ( 58, 35 * - 86 ) THEN NULL ELSE ( - 67 ) END DIV 25 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7635
SELECT CASE + + 54 WHEN 29 THEN - 45 WHEN + COALESCE ( 58, 35 * - 86 ) THEN NULL ELSE ( - 67 ) END / 25 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT ALL COALESCE ( + - NULLIF ( 99, + - NULLIF ( + - COUNT( * ), 0 + 77 ) + - 23 ), - MAX( + 80 ), - 33 * ( ( + ( - 82 ) ) ) ) DIV + 54
----
-1

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL COALESCE ( + - NULLIF ( 99, + - NULLIF ( + - COUNT ( * ), 0 + 77 ) + - 23 ), - MAX ( + 80 ), - 33 * ( ( + ( - 82 ) ) ) ) / + 54
----
-1

query II rowsort
SELECT DISTINCT - 70 AS col1, 89 AS col0
----
-70
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT ALL 89 - MIN( + 95 ) * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7638
SELECT ALL 89 - MIN ( + 95 ) * COUNT ( * )
----
-6

query I rowsort
SELECT 83 + + NULLIF ( + 46, 20 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL 40 * + CASE - + 70 WHEN - 6 THEN NULL WHEN + MAX( - 84 ) + 30 THEN - 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL 40 * + CASE - + 70 WHEN - 6 THEN NULL WHEN + MAX ( - 84 ) + 30 THEN - 86 ELSE NULL END
----
NULL

query I rowsort
SELECT - 72 * - 30 + - - ( + 15 ) * - ( 95 ) + + 48 * + ( - 24 * 49 )
----
-55713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT 33 * + - 57 * - CAST( - - 31 AS SIGNED ) * ( 82 ) + 63
----
4781565

skipif mysql # not compatible
query I rowsort label-7642
SELECT 33 * + - 57 * - CAST ( - - 31 AS INTEGER ) * ( 82 ) + 63
----
4781565

query I rowsort
SELECT ALL - 49 * + 72 AS col0
----
-3528

query I rowsort
SELECT DISTINCT - ( - 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL - ( + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - ( + COUNT ( * ) ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT 12 - - ( - 57 ) + - 68 DIV - 43 + - 46
----
-90

skipif mysql # not compatible
query I rowsort label-7646
SELECT 12 - - ( - 57 ) + - 68 / - 43 + - 46
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7647
SELECT COALESCE ( - NULLIF ( CAST( - ( - + 1 ) AS SIGNED ), - 10 ), 73 ) + 11 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7647
SELECT COALESCE ( - NULLIF ( CAST ( - ( - + 1 ) AS INTEGER ), - 10 ), 73 ) + 11 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT 35 * - MIN( - 23 )
----
805

skipif mysql # not compatible
query I rowsort label-7648
SELECT 35 * - MIN ( - 23 )
----
805

query I rowsort
SELECT DISTINCT - ( + - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT NULLIF ( + COUNT( * ), - 93 * ( 88 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7650
SELECT NULLIF ( + COUNT ( * ), - 93 * ( 88 ) )
----
1

query I rowsort
SELECT 12 + 86 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT COUNT( * ) * + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7652
SELECT COUNT ( * ) * + 53 AS col0
----
53

query I rowsort
SELECT ALL + - ( + 21 ) + + 4 * + ( 76 ) * 52 col1
----
15787

query I rowsort
SELECT ALL - 98 + + + 16
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT - COUNT( DISTINCT - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-7655
SELECT - COUNT ( DISTINCT - 90 )
----
-1

query II rowsort
SELECT DISTINCT + 79, + 2 + + + 1 AS col1
----
79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT + COUNT( * ) * + 40 + 55 + 9 * 33 AS col0
----
392

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + COUNT ( * ) * + 40 + 55 + 9 * 33 AS col0
----
392

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT COUNT( * ), + 45 + + + ( - ( + 77 ) ) AS col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-7658
SELECT COUNT ( * ), + 45 + + + ( - ( + 77 ) ) AS col1
----
1
-32

query I rowsort
SELECT ALL 13 * - - 6 + 37 AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7660
SELECT DISTINCT 82 * - CAST( NULL AS DECIMAL ) * - 1 + + 98 + + + MIN( ALL + - 88 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT 82 * - CAST ( NULL AS REAL ) * - 1 + + 98 + + + MIN ( ALL + - 88 ) AS col1
----
NULL

query I rowsort
SELECT 52 * + - 96
----
-4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT 61 * - ( + CAST( NULL AS SIGNED ) ) * - ( - 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT 61 * - ( + CAST ( NULL AS INTEGER ) ) * - ( - 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT COUNT( * ), 31 * - 64 AS col2
----
1
-1984

skipif mysql # not compatible
query II rowsort label-7663
SELECT COUNT ( * ), 31 * - 64 AS col2
----
1
-1984

query I rowsort
SELECT DISTINCT - COALESCE ( - 45, - 30 )
----
45

query I rowsort
SELECT 77 * - 89 * + 36
----
-246708

query II rowsort
SELECT ALL - 13 col2, - 86
----
-13
-86

query I rowsort
SELECT + 87 * 75 - + + 49 AS col2
----
6476

query II rowsort
SELECT DISTINCT - 25 col1, - 60
----
-25
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT DISTINCT + COALESCE ( - ( 86 ), + + ( - 91 ) DIV + 95 + 21 + 7 )
----
-86

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + COALESCE ( - ( 86 ), + + ( - 91 ) / + 95 + 21 + 7 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT SUM( 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7670
SELECT SUM ( 97 ) AS col2
----
97

query I rowsort
SELECT ALL 12 * + 11 * - - 58 * ( - 30 ) - 76 AS col1
----
-229756

query I rowsort
SELECT + 1 * - 19
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT - CAST( NULL AS SIGNED ) + - + 7 + + 84 * - - 10 + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT - CAST ( NULL AS INTEGER ) + - + 7 + + 84 * - - 10 + - 41 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT - + 89 * - - 76 + MAX( ALL + COALESCE ( + + 39, CAST( NULL AS SIGNED ) ) ) + 41 * - ( 78 + 61 ) * NULLIF ( - 98 * - 59 + + 17, 86 * 87 + - 92 * 78 )
----
-33055226

skipif mysql # not compatible
query I rowsort label-7674
SELECT - + 89 * - - 76 + MAX ( ALL + COALESCE ( + + 39, CAST ( NULL AS INTEGER ) ) ) + 41 * - ( 78 + 61 ) * NULLIF ( - 98 * - 59 + + 17, 86 * 87 + - 92 * 78 )
----
-33055226

query I rowsort
SELECT + + 84 * - 96 + + + 15 * - 99 + + - 53 - CASE 12 WHEN 84 / + 73 + 89 THEN 34 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7676
SELECT ALL + + CAST( NULL AS SIGNED ) col0, 32 * + 39 AS col0
----
NULL
1248

skipif mysql # not compatible
query II rowsort label-7676
SELECT ALL + + CAST ( NULL AS INTEGER ) col0, 32 * + 39 AS col0
----
NULL
1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7677
SELECT ALL + 91 AS col1, 9 * 3 DIV + - COUNT( * ) + - + 64
----
91
-91

skipif mysql # not compatible
query II rowsort label-7677
SELECT ALL + 91 AS col1, 9 * 3 / + - COUNT ( * ) + - + 64
----
91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT ALL COUNT( * ) AS col1, 71
----
1
71

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL COUNT ( * ) AS col1, 71
----
1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL MAX( ALL - - 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL MAX ( ALL - - 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - - COUNT( ALL - 27 ) * - ( + 99 ) * + 52 + + + 3 AS col0
----
-5145

skipif mysql # not compatible
query I rowsort label-7680
SELECT - - COUNT ( ALL - 27 ) * - ( + 99 ) * + 52 + + + 3 AS col0
----
-5145

onlyif mysql # DIV for integer division: 
query II rowsort label-7681
SELECT ALL 95 AS col1, + 55 DIV - 74 AS col2
----
95
0

skipif mysql # not compatible
query II rowsort label-7681
SELECT ALL 95 AS col1, + 55 / - 74 AS col2
----
95
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + 43 * - 83 * + COUNT( * )
----
-3569

skipif mysql # not compatible
query I rowsort label-7682
SELECT + 43 * - 83 * + COUNT ( * )
----
-3569

query II rowsort
SELECT ALL 17 AS col1, + ( - + 42 ) AS col0
----
17
-42

query II rowsort
SELECT ALL 45, + 80 AS col2
----
45
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT DISTINCT + 96 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT + 96 / + 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7686
SELECT - - 60, + COUNT( * ) * + COUNT( * ) AS col0
----
60
1

skipif mysql # not compatible
query II rowsort label-7686
SELECT - - 60, + COUNT ( * ) * + COUNT ( * ) AS col0
----
60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + - 63 + + + COUNT( * ) + - + 42 * + 67 + 48 AS col1
----
-2828

skipif mysql # not compatible
query I rowsort label-7687
SELECT + - 63 + + + COUNT ( * ) + - + 42 * + 67 + 48 AS col1
----
-2828

onlyif mysql # aggregate syntax: 
query II rowsort label-7688
SELECT - NULLIF ( + 73, + COUNT( * ) + - 72 ) AS col2, 97
----
-73
97

skipif mysql # not compatible
query II rowsort label-7688
SELECT - NULLIF ( + 73, + COUNT ( * ) + - 72 ) AS col2, 97
----
-73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT ALL + MIN( DISTINCT - 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL + MIN ( DISTINCT - 49 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - - NULLIF ( - MAX( - 70 ), - 64 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7690
SELECT - - NULLIF ( - MAX ( - 70 ), - 64 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - 97 + + - 31 + + + ( - ( - 45 ) ) - + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 97 + + - 31 + + + ( - ( - 45 ) ) - + COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7692
SELECT + - COUNT( * ) DIV + 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT + - COUNT ( * ) / + 33 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT - - 8 DIV - + 47 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-7693
SELECT - - 8 / - + 47 * - 69
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - + 42, + 98, - - 33 ) * 49
----
-2058

query I rowsort
SELECT ALL + 33 + 34 + + 20 * + 54
----
1147

query I rowsort
SELECT + 59 - - 21
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT - COUNT( * ) AS col0, ( - 50 ) * - 49 + + + 9
----
-1
2459

skipif mysql # not compatible
query II rowsort label-7697
SELECT - COUNT ( * ) AS col0, ( - 50 ) * - 49 + + + 9
----
-1
2459

query II rowsort
SELECT - 64, 46 * 36 AS col0
----
-64
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL COUNT( * ) + 3 - 49 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL COUNT ( * ) + 3 - 49 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT + COUNT( * ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-7700
SELECT + COUNT ( * ) + + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL MAX( ALL 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL MAX ( ALL 66 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT + 78 * COUNT( * ) - - - CASE + COUNT( * ) WHEN - 54 THEN NULL WHEN + + 92 * 36 * - COUNT( * ) THEN 67 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT + 78 * COUNT ( * ) - - - CASE + COUNT ( * ) WHEN - 54 THEN NULL WHEN + + 92 * 36 * - COUNT ( * ) THEN 67 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT ( + + CAST( - 15 AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-7703
SELECT ( + + CAST ( - 15 AS INTEGER ) )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL 96 DIV 50 + 53 * 17
----
902

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL 96 / 50 + 53 * 17
----
902

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7705
SELECT ( - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT ( - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) ) AS col0
----
NULL

query II rowsort
SELECT ALL - 67 * + 25, 66 col0
----
-1675
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7707
SELECT 12 DIV MAX( + - 45 ) + - - 71 col1
----
71

skipif mysql # not compatible
query I rowsort label-7707
SELECT 12 / MAX ( + - 45 ) + - - 71 col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT + 95 DIV - 30 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7708
SELECT + 95 / - 30 AS col2
----
-3

query I rowsort
SELECT - 1 * - 98
----
98

query I rowsort
SELECT - 77 + - 99
----
-176

query I rowsort
SELECT ( + - 0 )
----
0

query I rowsort
SELECT + 71 * - 8 AS col0
----
-568

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT DISTINCT - NULLIF ( 54, + MIN( DISTINCT 34 ) / + 42 * 31 ) / + COUNT( * ) / + CASE + 78 * - ( 90 ) WHEN - 51 * - 79 THEN NULL WHEN 96 * + 62 + 1 THEN 52 WHEN ( 28 ) THEN - ( 70 ) * + 70 END + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT - NULLIF ( 54, + MIN ( DISTINCT 34 ) / + 42 * 31 ) / + COUNT ( * ) / + CASE + 78 * - ( 90 ) WHEN - 51 * - 79 THEN NULL WHEN 96 * + 62 + 1 THEN 52 WHEN ( 28 ) THEN - ( 70 ) * + 70 END + 34 AS col2
----
NULL

query II rowsort
SELECT ALL + ( - - 22 ) AS col0, + 90
----
22
90

query I rowsort
SELECT - 41 * 8
----
-328

query I rowsort
SELECT - - 78 * 1 + 64 * 58 * 24 - + 21 AS col0
----
89145

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - + 8 - + - COUNT( * ) + + 43 * + NULLIF ( 43, + + 96 ) AS col1
----
1842

skipif mysql # not compatible
query I rowsort label-7717
SELECT - + 8 - + - COUNT ( * ) + + 43 * + NULLIF ( 43, + + 96 ) AS col1
----
1842

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - - MIN( + + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7718
SELECT - - MIN ( + + 81 ) AS col1
----
81

query I rowsort
SELECT ALL - NULLIF ( 83, - 6 ) AS col2
----
-83

query I rowsort
SELECT - + CASE - 42 WHEN ( - 86 ) THEN 83 END + + 52 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT DISTINCT + 22 * + 4 + 55 DIV - 58 * - - 73
----
88

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT + 22 * + 4 + 55 / - 58 * - - 73
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT ALL 29 * CAST( NULL AS SIGNED ) * + + COUNT( * ) / + SUM( 64 ) * + 53 + + 39 + + 13 * + ( 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL 29 * CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / + SUM ( 64 ) * + 53 + + 39 + + 13 * + ( 43 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT + COUNT( * ) - - MIN( + 5 ) - + COUNT( * ) * + 59 * COUNT( * ) * 60 - + 44
----
-3578

skipif mysql # not compatible
query I rowsort label-7723
SELECT + COUNT ( * ) - - MIN ( + 5 ) - + COUNT ( * ) * + 59 * COUNT ( * ) * 60 - + 44
----
-3578

query I rowsort
SELECT ALL + 71 + + 37 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - + 90 * ( COUNT( * ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7725
SELECT - + 90 * ( COUNT ( * ) ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + ( - 54 ) + + + MAX( + CASE 70 WHEN + + 66 + + 61 THEN NULL WHEN + 67 THEN + 41 ELSE NULL END ) + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT + ( - 54 ) + + + MAX ( + CASE 70 WHEN + + 66 + + 61 THEN NULL WHEN + 67 THEN + 41 ELSE NULL END ) + + 62 AS col1
----
NULL

query I rowsort
SELECT ALL 73 - + 38 - - 19 AS col2
----
54

query I rowsort
SELECT + 43 + + 89 AS col2
----
132

query I rowsort
SELECT + ( - + 53 ) * - 59 - + + 62 * + 94 col2
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + COUNT( * ) * - COUNT( * ) * - 47
----
47

skipif mysql # not compatible
query I rowsort label-7730
SELECT + COUNT ( * ) * - COUNT ( * ) * - 47
----
47

query I rowsort
SELECT ALL 20 * - - 95
----
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7732
SELECT + COUNT( * ) DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT + COUNT ( * ) / + 66 AS col2
----
0

query II rowsort
SELECT 85 AS col1, - NULLIF ( 84, 4 * + 51 * - 8 - NULLIF ( + - 50, - 34 ) ) AS col1
----
85
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL 13 * + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL 13 * + COUNT ( * ) AS col2
----
13

query I rowsort
SELECT 3 * + 49 AS col0
----
147

query II rowsort
SELECT 98 AS col2, - 76 col2
----
98
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT 15 * - - CAST( - 33 AS SIGNED ) AS col1
----
-495

skipif mysql # not compatible
query I rowsort label-7737
SELECT 15 * - - CAST ( - 33 AS INTEGER ) AS col1
----
-495

query I rowsort
SELECT 86 - - + 1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT 93 * - 62 * - MIN( - - 55 ) AS col1
----
317130

skipif mysql # not compatible
query I rowsort label-7739
SELECT 93 * - 62 * - MIN ( - - 55 ) AS col1
----
317130

query II rowsort
SELECT 79 AS col2, + 1 + - 59 AS col2
----
79
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ALL - MIN( + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL - MIN ( + 59 )
----
-59

query I rowsort
SELECT 5 * + 64
----
320

query I rowsort
SELECT ALL - 45 * + 2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL - COALESCE ( - + 28, + - ( - 69 ) * - MAX( ALL - 88 ), + - 96, 93 + 66 ) * 76 AS col0
----
2128

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - COALESCE ( - + 28, + - ( - 69 ) * - MAX ( ALL - 88 ), + - 96, 93 + 66 ) * 76 AS col0
----
2128

query I rowsort
SELECT - 41 * - 64 / + ( CASE - 14 WHEN ( COALESCE ( - NULLIF ( + 66, 49 * - AVG ( 24 ) ), - 60 ) ) - - 35 * - 19 THEN + 81 END ) - + 83 * 57 AS col1
----
NULL

query II rowsort
SELECT ALL - + 42 col0, 90
----
-42
90

query I rowsort
SELECT ALL - 29 * 96 * + 49 * - 3
----
409248

query I rowsort
SELECT - 16 * 24
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL - 18 * COUNT( * ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - 18 * COUNT ( * ) col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT + ( - COUNT( * ) ) DIV - 12 + + 92 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7750
SELECT + ( - COUNT ( * ) ) / - 12 + + 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + - NULLIF ( + - 78, - + 57 / COUNT( * ) * + - 7 + - 65 )
----
78

skipif mysql # not compatible
query I rowsort label-7751
SELECT + - NULLIF ( + - 78, - + 57 / COUNT ( * ) * + - 7 + - 65 )
----
78

query II rowsort
SELECT ALL - - 8, - 9 AS col1
----
8
-9

query II rowsort
SELECT + - 28 AS col2, 39 * + + 40 AS col0
----
-28
1560

query I rowsort
SELECT + 83 + - - 54 AS col1
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT + COUNT( * ) * - 1 - - 73 + ( 43 ) - + CASE + + 97 WHEN COUNT( * ) THEN NULL ELSE ( - MAX( ALL + 40 ) ) END DIV + COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-7755
SELECT + COUNT ( * ) * - 1 - - 73 + ( 43 ) - + CASE + + 97 WHEN COUNT ( * ) THEN NULL ELSE ( - MAX ( ALL + 40 ) ) END / + COUNT ( * )
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-7756
SELECT - ( - 5 ) DIV 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7756
SELECT - ( - 5 ) / 77 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT 18 + - CAST( - + 82 AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-7757
SELECT 18 + - CAST ( - + 82 AS INTEGER )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT 98 / + CAST( NULL AS SIGNED ) / 55 - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT 98 / + CAST ( NULL AS INTEGER ) / 55 - - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT MIN( 78 ) + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7759
SELECT MIN ( 78 ) + COUNT ( * ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7760
SELECT ALL + 41 + - - NULLIF ( CAST( 46 AS DECIMAL ), COUNT( * ) * - COUNT( * ) + - 60 * 12 ) * CASE 59 * + 19 WHEN COUNT( * ) THEN - 50 / AVG ( ALL CAST( - 38 AS SIGNED ) * - 26 ) WHEN + 51 + - 86 * 37 THEN 33 - 16 WHEN NULLIF ( - 37, 4 * CAST( NULL AS DECIMAL ) ) + + COUNT( * ) * - MIN( 0 * - 42 ) THEN 95 WHEN + 91 THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + 41 + - - NULLIF ( CAST ( 46 AS REAL ), COUNT ( * ) * - COUNT ( * ) + - 60 * 12 ) * CASE 59 * + 19 WHEN COUNT ( * ) THEN - 50 / AVG ( ALL CAST ( - 38 AS INTEGER ) * - 26 ) WHEN + 51 + - 86 * 37 THEN 33 - 16 WHEN NULLIF ( - 37, 4 * CAST ( NULL AS REAL ) ) + + COUNT ( * ) * - MIN ( 0 * - 42 ) THEN 95 WHEN + 91 THEN 72 END
----
NULL

query I rowsort
SELECT 77 + 82
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7762
SELECT + ( CASE 56 WHEN - + 56 * COUNT( * ) * + 3 * + 17 THEN + 35 WHEN 59 THEN + 74 WHEN 61 THEN + 72 * CAST( COUNT( * ) AS SIGNED ) ELSE - 35 END ) * - 78
----
2730

skipif mysql # not compatible
query I rowsort label-7762
SELECT + ( CASE 56 WHEN - + 56 * COUNT ( * ) * + 3 * + 17 THEN + 35 WHEN 59 THEN + 74 WHEN 61 THEN + 72 * CAST ( COUNT ( * ) AS INTEGER ) ELSE - 35 END ) * - 78
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + MAX( DISTINCT - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-7763
SELECT + MAX ( DISTINCT - 17 )
----
-17

query I rowsort
SELECT - 8 + - + 41 AS col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT 67 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT 67 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT ALL + 39 - + - 96 AS col1, - 98 * - - 8 AS col2
----
135
-784

query I rowsort
SELECT ALL - 84 * 71
----
-5964

query I rowsort
SELECT 77 - - - 93 col0
----
-16

query II rowsort
SELECT DISTINCT - 94 * - 81 AS col1, 23 col2
----
7614
23

query I rowsort
SELECT 96 + - - 98
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT COUNT( ALL 31 ) + + + 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-7771
SELECT COUNT ( ALL 31 ) + + + 0 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT 12 - ( + ( - COUNT( * ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-7772
SELECT 12 - ( + ( - COUNT ( * ) ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT COUNT( * ) * + + 56
----
56

skipif mysql # not compatible
query I rowsort label-7773
SELECT COUNT ( * ) * + + 56
----
56

query I rowsort
SELECT 86 + 91 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT COUNT( * ) - - + 93 * - + 40
----
-3719

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( * ) - - + 93 * - + 40
----
-3719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7776
SELECT COUNT( * ) DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7776
SELECT COUNT ( * ) / - 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT COUNT( * ) + + 22
----
23

skipif mysql # not compatible
query I rowsort label-7777
SELECT COUNT ( * ) + + 22
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT CASE 17 WHEN + 36 * - - 73 * + 83 THEN + 17 ELSE + COUNT( * ) END * - 18 * + 66
----
-1188

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT CASE 17 WHEN + 36 * - - 73 * + 83 THEN + 17 ELSE + COUNT ( * ) END * - 18 * + 66
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ALL 12 + + MAX( ALL 1 )
----
13

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL 12 + + MAX ( ALL 1 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT 13 * - 8 + + 61 * + NULLIF ( + ( ( - + 40 ) ), + + COUNT( * ) * - 18 + 79 + COUNT( * ) ) AS col2
----
-2544

skipif mysql # not compatible
query I rowsort label-7780
SELECT 13 * - 8 + + 61 * + NULLIF ( + ( ( - + 40 ) ), + + COUNT ( * ) * - 18 + 79 + COUNT ( * ) ) AS col2
----
-2544

query I rowsort
SELECT ALL ( 4 ) + - - 88
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7782
SELECT - CASE 61 WHEN - COALESCE ( + CAST( + 29 AS SIGNED ), + COUNT( * ) / 53 ) THEN - - 8 + ( 53 ) * CAST( NULL AS SIGNED ) WHEN - CASE + 14 WHEN 14 + 12 * 51 THEN NULL WHEN + ( - 73 ) + - 41 THEN - 75 WHEN 70 - + 35 THEN NULL ELSE AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 59 + COUNT( * ) END THEN NULL END * 97 + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT - CASE 61 WHEN - COALESCE ( + CAST ( + 29 AS INTEGER ), + COUNT ( * ) / 53 ) THEN - - 8 + ( 53 ) * CAST ( NULL AS INTEGER ) WHEN - CASE + 14 WHEN 14 + 12 * 51 THEN NULL WHEN + ( - 73 ) + - 41 THEN - 75 WHEN 70 - + 35 THEN NULL ELSE AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 59 + COUNT ( * ) END THEN NULL END * 97 + 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7783
SELECT DISTINCT 79 + 37 AS col1, COUNT( * ) DIV 79
----
116
0

skipif mysql # not compatible
query II rowsort label-7783
SELECT DISTINCT 79 + 37 AS col1, COUNT ( * ) / 79
----
116
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7784
SELECT DISTINCT - 39 + + + CASE WHEN 72 BETWEEN ( + CASE 61 WHEN - - 78 + - NULLIF ( + 93, MIN( DISTINCT - 82 ) ) THEN + 4 * 25 + 66 / - 43 END ) AND - MIN( - COALESCE ( 97, - ( - 12 ) / - 52 - NULLIF ( + 37, - 35 + 54 ) / - 75 ) ) THEN NULL WHEN NULL <> - 82 THEN CAST( NULL AS SIGNED ) * 6 ELSE NULL END + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - 39 + + + CASE WHEN 72 BETWEEN ( + CASE 61 WHEN - - 78 + - NULLIF ( + 93, MIN ( DISTINCT - 82 ) ) THEN + 4 * 25 + 66 / - 43 END ) AND - MIN ( - COALESCE ( 97, - ( - 12 ) / - 52 - NULLIF ( + 37, - 35 + 54 ) / - 75 ) ) THEN NULL WHEN NULL <> - 82 THEN CAST ( NULL AS INTEGER ) * 6 ELSE NULL END + 80
----
NULL

query I rowsort
SELECT - 83 * - 19 + + 31 AS col1
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL COUNT( * ) + - - 31 + MAX( DISTINCT 83 )
----
115

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL COUNT ( * ) + - - 31 + MAX ( DISTINCT 83 )
----
115

query I rowsort
SELECT DISTINCT - - 25 * + 59 + - - 71
----
1546

query II rowsort
SELECT + 54 * 43 + - 64 + 35 AS col1, - 74
----
2293
-74

query I rowsort
SELECT DISTINCT 82 + + 12
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT 12 + - + 17 + - ( + ( - ( - + 56 ) ) ) + + - CAST( NULL AS SIGNED ) - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT 12 + - + 17 + - ( + ( - ( - + 56 ) ) ) + + - CAST ( NULL AS INTEGER ) - - 97
----
NULL

query I rowsort
SELECT DISTINCT + + 50 + 63
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT ALL - ( - - 95 ) AS col0, 64 * + COUNT( ALL + ( 54 ) ) + + 34 + NULLIF ( + ( 51 ), 12 )
----
-95
149

skipif mysql # not compatible
query II rowsort label-7792
SELECT ALL - ( - - 95 ) AS col0, 64 * + COUNT ( ALL + ( 54 ) ) + + 34 + NULLIF ( + ( 51 ), 12 )
----
-95
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7793
SELECT COUNT( * ) * - 94 + - 95 * 85 col1, 42 * - - CAST( NULL AS SIGNED ) + + + 89
----
-8169
NULL

skipif mysql # not compatible
query II rowsort label-7793
SELECT COUNT ( * ) * - 94 + - 95 * 85 col1, 42 * - - CAST ( NULL AS INTEGER ) + + + 89
----
-8169
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7794
SELECT - 83 - CAST( NULL AS DECIMAL ) / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 83 - CAST ( NULL AS REAL ) / + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 96 - + 72
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7796
SELECT - MAX( + 87 ) DIV - 52 + + COUNT( * ) + - 8
----
-6

skipif mysql # not compatible
query I rowsort label-7796
SELECT - MAX ( + 87 ) / - 52 + + COUNT ( * ) + - 8
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL + 19 * - + CASE - + 6 WHEN - + ( - - 4 ) - + ( - 6 ) + + 55 THEN + COUNT( * ) WHEN + 56 THEN 85 * - 55 END + - ( 55 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + 19 * - + CASE - + 6 WHEN - + ( - - 4 ) - + ( - 6 ) + + 55 THEN + COUNT ( * ) WHEN + 56 THEN 85 * - 55 END + - ( 55 ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7798
SELECT DISTINCT 3 * + CAST( NULL AS DECIMAL ) * - 69 * + 10 * - 44 AS col1, 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7798
SELECT DISTINCT 3 * + CAST ( NULL AS REAL ) * - 69 * + 10 * - 44 AS col1, 33
----
NULL
33

query I rowsort
SELECT 81 * 83 AS col1
----
6723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT - CAST( NULL AS SIGNED ) + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT - CAST ( NULL AS INTEGER ) + + 58 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7801
SELECT ALL CASE - 16 WHEN 5 + + ( - MIN( DISTINCT + + 75 ) ) THEN NULL WHEN CAST( NULL AS DECIMAL ) * + 17 * + CASE 78 WHEN 68 THEN 95 WHEN - 36 + - COUNT( * ) * - 27 THEN - MIN( ALL 82 ) * CAST( NULL AS SIGNED ) END + 21 THEN + 88 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL CASE - 16 WHEN 5 + + ( - MIN ( DISTINCT + + 75 ) ) THEN NULL WHEN CAST ( NULL AS REAL ) * + 17 * + CASE 78 WHEN 68 THEN 95 WHEN - 36 + - COUNT ( * ) * - 27 THEN - MIN ( ALL 82 ) * CAST ( NULL AS INTEGER ) END + 21 THEN + 88 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7802
SELECT ALL COUNT( * ), - 42 + - - 54 DIV + + NULLIF ( - 30, 92 ) AS col0
----
1
-43

skipif mysql # not compatible
query II rowsort label-7802
SELECT ALL COUNT ( * ), - 42 + - - 54 / + + NULLIF ( - 30, 92 ) AS col0
----
1
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT - 2 + + + COUNT( * ) + 88 - - 80 * COUNT( * ) AS col0, 89 AS col0
----
167
89

skipif mysql # not compatible
query II rowsort label-7803
SELECT - 2 + + + COUNT ( * ) + 88 - - 80 * COUNT ( * ) AS col0, 89 AS col0
----
167
89

query I rowsort
SELECT DISTINCT - 63 * - + 57 col2
----
3591

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL COALESCE ( + 75, COALESCE ( + - COUNT( * ), + - 1 ) * + 30 * + 9 * 39 + + COALESCE ( 85, + 89, 44 * COUNT( + 76 ), + 99 * 43 ), 39 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL COALESCE ( + 75, COALESCE ( + - COUNT ( * ), + - 1 ) * + 30 * + 9 * 39 + + COALESCE ( 85, + 89, 44 * COUNT ( + 76 ), + 99 * 43 ), 39 ) AS col0
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7806
SELECT 23 AS col0, - 70 DIV 28 AS col1
----
23
-2

skipif mysql # not compatible
query II rowsort label-7806
SELECT 23 AS col0, - 70 / 28 AS col1
----
23
-2

query I rowsort
SELECT DISTINCT + ( + - 28 ) * + ( 81 ) * - + 71 AS col0
----
161028

onlyif mysql # aggregate syntax: 
query II rowsort label-7808
SELECT DISTINCT 11 AS col0, 9 - COUNT( + NULLIF ( + + 56, - 28 / - 97 ) ) * + + 93 * + 9
----
11
-828

skipif mysql # not compatible
query II rowsort label-7808
SELECT DISTINCT 11 AS col0, 9 - COUNT ( + NULLIF ( + + 56, - 28 / - 97 ) ) * + + 93 * + 9
----
11
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL NULLIF ( + COUNT( * ), - + 16 ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL NULLIF ( + COUNT ( * ), - + 16 ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7810
SELECT - 18 * + + ( + CAST( NULL AS SIGNED ) ) * + ( - + 53 ) + + - MAX( ALL 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT - 18 * + + ( + CAST ( NULL AS INTEGER ) ) * + ( - + 53 ) + + - MAX ( ALL 45 )
----
NULL

query I rowsort
SELECT ALL + 45 * 51
----
2295

query I rowsort
SELECT ALL COALESCE ( - 91, - 2 )
----
-91

query I rowsort
SELECT ( ( - - 60 ) ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT ALL 26 * + - 51 + - + CASE + CAST( NULL AS SIGNED ) WHEN + AVG ( DISTINCT + 44 ) THEN NULL WHEN + 58 + + - 41 THEN + 38 / + + 52 + 52 WHEN COUNT( * ) * - COUNT( * ) THEN - 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL 26 * + - 51 + - + CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( DISTINCT + 44 ) THEN NULL WHEN + 58 + + - 41 THEN + 38 / + + 52 + 52 WHEN COUNT ( * ) * - COUNT ( * ) THEN - 71 END AS col0
----
NULL

query II rowsort
SELECT + 72, 39 AS col0
----
72
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL + 8 * + + COALESCE ( + MAX( 76 ), 75 ) + COUNT( * )
----
609

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL + 8 * + + COALESCE ( + MAX ( 76 ), 75 ) + COUNT ( * )
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - CASE 31 WHEN - 79 THEN + + NULLIF ( MIN( DISTINCT - - 25 ), - + 25 / + 90 - + NULLIF ( + MIN( 61 ), 40 / - 36 ) + + ( 62 + COUNT( * ) ) ) * COUNT( ALL + 84 - 95 ) END + 34 * 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT - CASE 31 WHEN - 79 THEN + + NULLIF ( MIN ( DISTINCT - - 25 ), - + 25 / + 90 - + NULLIF ( + MIN ( 61 ), 40 / - 36 ) + + ( 62 + COUNT ( * ) ) ) * COUNT ( ALL + 84 - 95 ) END + 34 * 13 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - NULLIF ( - + 59, - ( + 25 ) ) ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7819
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 27 * 50
----
1350

query I rowsort
SELECT ALL 60 * 31 + 12 AS col0
----
1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT + - MAX( + 21 ) DIV 77 - - 55 * + 43 + + 26
----
2391

skipif mysql # not compatible
query I rowsort label-7822
SELECT + - MAX ( + 21 ) / 77 - - 55 * + 43 + + 26
----
2391

query I rowsort
SELECT ALL + + COALESCE ( + + 57, + 0 ) * - + 36
----
-2052

query I rowsort
SELECT DISTINCT + ( - 5 ) AS col1
----
-5

query I rowsort
SELECT + 14 - - 72
----
86

query I rowsort
SELECT ALL - ( - 18 ) * 82 * - - 36 * - 71 * + 73
----
-275403888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7827
SELECT - 60 * + 9 DIV + COUNT( * ) + CAST( - 83 AS SIGNED ) + 29, - 0 * - CAST( + 5 AS SIGNED ) AS col2
----
-594
0

skipif mysql # not compatible
query II rowsort label-7827
SELECT - 60 * + 9 / + COUNT ( * ) + CAST ( - 83 AS INTEGER ) + 29, - 0 * - CAST ( + 5 AS INTEGER ) AS col2
----
-594
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT + SUM( 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7828
SELECT + SUM ( 17 ) AS col0
----
17

query II rowsort
SELECT + - 60 AS col1, - 14 AS col1
----
-60
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT + 81 + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7830
SELECT + 81 + + COUNT ( * )
----
82

query I rowsort
SELECT + 64 * - ( 32 ) - + 53 AS col2
----
-2101

onlyif mysql # aggregate syntax: 
query II rowsort label-7832
SELECT + - ( + MAX( - 77 ) ) AS col0, 61 * - + 25
----
77
-1525

skipif mysql # not compatible
query II rowsort label-7832
SELECT + - ( + MAX ( - 77 ) ) AS col0, 61 * - + 25
----
77
-1525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT CAST( - - NULLIF ( + 98, 2 * + - COUNT( * ) ) AS SIGNED ) * - 15 + 7
----
-1463

skipif mysql # not compatible
query I rowsort label-7833
SELECT CAST ( - - NULLIF ( + 98, 2 * + - COUNT ( * ) ) AS INTEGER ) * - 15 + 7
----
-1463

query II rowsort
SELECT DISTINCT 80, 47 AS col0
----
80
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT COALESCE ( + - COUNT( * ), - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL + NULLIF ( + 63, - 81 + - 52 - MIN( + - 74 ) + - - 95 + 24 * + COUNT( * ) * 24 * + CASE + 21 WHEN COUNT( * ) / - NULLIF ( 81, 81 - - 36 ) THEN + 42 ELSE 1 + + ( - CASE - 29 WHEN 49 * + 11 THEN 83 ELSE NULL END ) END ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + NULLIF ( + 63, - 81 + - 52 - MIN ( + - 74 ) + - - 95 + 24 * + COUNT ( * ) * 24 * + CASE + 21 WHEN COUNT ( * ) / - NULLIF ( 81, 81 - - 36 ) THEN + 42 ELSE 1 + + ( - CASE - 29 WHEN 49 * + 11 THEN 83 ELSE NULL END ) END ) * - 0 AS col0
----
0

query I rowsort
SELECT - 85 * - - 97 AS col2
----
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL MIN( - 33 ) * - 97
----
3201

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL MIN ( - 33 ) * - 97
----
3201

query I rowsort
SELECT + ( - + 30 ) + 89
----
59

query I rowsort
SELECT - ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7841
SELECT DISTINCT COUNT( * ) col2, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-7841
SELECT DISTINCT COUNT ( * ) col2, 33
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL SUM( + - 45 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL SUM ( + - 45 ) col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - MIN( ALL - 97 ) * + - 89
----
-8633

skipif mysql # not compatible
query I rowsort label-7843
SELECT - MIN ( ALL - 97 ) * + - 89
----
-8633

query I rowsort
SELECT DISTINCT 48 * - + 33
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT - 19 + - + 14 + 9 - - COUNT( * ) - - 62 * - 94 col1
----
-5851

skipif mysql # not compatible
query I rowsort label-7845
SELECT - 19 + - + 14 + 9 - - COUNT ( * ) - - 62 * - 94 col1
----
-5851

query I rowsort
SELECT DISTINCT 42 + + - 62
----
-20

query I rowsort
SELECT ALL + 14 + - 15
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7848
SELECT 25, 69 col1, + CAST( NULL AS SIGNED ) * - 40 AS col0
----
25
69
NULL

skipif mysql # not compatible
query III rowsort label-7848
SELECT 25, 69 col1, + CAST ( NULL AS INTEGER ) * - 40 AS col0
----
25
69
NULL

query I rowsort
SELECT ALL - ( + 97 ) + + + 68
----
-29

query I rowsort
SELECT + 83 + - - 89
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - 88 - - + MAX( - 97 ) AS col1
----
-185

skipif mysql # not compatible
query I rowsort label-7851
SELECT - 88 - - + MAX ( - 97 ) AS col1
----
-185

query I rowsort
SELECT - 59 + 64 * + 26 * - - 51 AS col2
----
84805

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - MIN( ALL + 14 ) - - MIN( + 33 )
----
19

skipif mysql # not compatible
query I rowsort label-7853
SELECT - MIN ( ALL + 14 ) - - MIN ( + 33 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL + ( - 35 ) * + 45 + + 62 + - COUNT( * )
----
-1514

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + ( - 35 ) * + 45 + + 62 + - COUNT ( * )
----
-1514

query II rowsort
SELECT - 76, 46 + + 11 AS col2
----
-76
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT - 4 * - 86 * - 23 + + NULLIF ( 41, MIN( ALL 42 ) * 5 - 24 + - COUNT( * ) ) DIV + 80 + - ( - 68 ) AS col2
----
-7844

skipif mysql # not compatible
query I rowsort label-7856
SELECT - 4 * - 86 * - 23 + + NULLIF ( 41, MIN ( ALL 42 ) * 5 - 24 + - COUNT ( * ) ) / + 80 + - ( - 68 ) AS col2
----
-7844

query I rowsort
SELECT + - 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT ALL + - MIN( + 16 ) * - 11 + 86 AS col2
----
262

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + - MIN ( + 16 ) * - 11 + 86 AS col2
----
262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7859
SELECT 9 * - 23 * - 53 + + NULLIF ( CAST( NULL AS SIGNED ), - 96 ) + + 81 + - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT 9 * - 23 * - 53 + + NULLIF ( CAST ( NULL AS INTEGER ), - 96 ) + + 81 + - - 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT - COALESCE ( - 69, + COUNT( * ) * - + 67 * + - 18 DIV - + 87 DIV + COUNT( * ) * - 62 - CASE + - 96 WHEN 15 THEN + 33 * 83 END ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7860
SELECT - COALESCE ( - 69, + COUNT ( * ) * - + 67 * + - 18 / - + 87 / + COUNT ( * ) * - 62 - CASE + - 96 WHEN 15 THEN + 33 * 83 END ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT + SUM( DISTINCT + ( - - 31 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + SUM ( DISTINCT + ( - - 31 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT ALL + + NULLIF ( + COUNT( * ), - - COUNT( * ) + + 59 + - 43 - 32 ) col0, 86 AS col2
----
1
86

skipif mysql # not compatible
query II rowsort label-7862
SELECT ALL + + NULLIF ( + COUNT ( * ), - - COUNT ( * ) + + 59 + - 43 - 32 ) col0, 86 AS col2
----
1
86

query I rowsort
SELECT - + 18 * - 18 AS col1
----
324

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT ALL + 55 AS col0, 50 + + CASE 94 WHEN ( 26 ) + - AVG ( DISTINCT + - 65 ) + 10 THEN + COALESCE ( + 4, + 93 ) WHEN 79 THEN NULL WHEN + 53 + + AVG ( - 79 ) * + ( + 23 ) THEN + 99 * 7 END - + 97 * 8 * COUNT( DISTINCT - 79 + + 50 )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-7864
SELECT ALL + 55 AS col0, 50 + + CASE 94 WHEN ( 26 ) + - AVG ( DISTINCT + - 65 ) + 10 THEN + COALESCE ( + 4, + 93 ) WHEN 79 THEN NULL WHEN + 53 + + AVG ( - 79 ) * + ( + 23 ) THEN + 99 * 7 END - + 97 * 8 * COUNT ( DISTINCT - 79 + + 50 )
----
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT ALL - 63 DIV COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - 63 / COUNT ( * )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT - 74 * - 97 * - MIN( DISTINCT - - 28 ) AS col0
----
-200984

skipif mysql # not compatible
query I rowsort label-7866
SELECT - 74 * - 97 * - MIN ( DISTINCT - - 28 ) AS col0
----
-200984

query II rowsort
SELECT + 67, + 80 AS col0
----
67
80

query I rowsort
SELECT ALL 31 * + 86 AS col0
----
2666

onlyif mysql # DIV for integer division: 
query I rowsort label-7869
SELECT ALL - 2 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - 2 / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + COALESCE ( - COUNT( * ), + 37 * + - MAX( - 55 ) + + + 7 + - 0, - COUNT( * ) + + + 36, + MAX( ALL - 42 ) - - MIN( + 20 ) * - 85 ) + - 52 * 19
----
-989

skipif mysql # not compatible
query I rowsort label-7870
SELECT + COALESCE ( - COUNT ( * ), + 37 * + - MAX ( - 55 ) + + + 7 + - 0, - COUNT ( * ) + + + 36, + MAX ( ALL - 42 ) - - MIN ( + 20 ) * - 85 ) + - 52 * 19
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT DISTINCT - CASE + COUNT( * ) WHEN + 40 THEN 85 * 40 ELSE - - 57 END col2
----
-57

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - CASE + COUNT ( * ) WHEN + 40 THEN 85 * 40 ELSE - - 57 END col2
----
-57

query I rowsort
SELECT ALL 54 * - 23
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT 44 + - 41 - - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7873
SELECT 44 + - 41 - - + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7874
SELECT ALL + CAST( NULL AS SIGNED ) * + + 75 * + COUNT( * ) * - + COUNT( + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 75 * + COUNT ( * ) * - + COUNT ( + 64 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT ALL COUNT( * ) * - + NULLIF ( - 14, + COUNT( * ) / + COALESCE ( - CAST( - + 25 AS SIGNED ), - COALESCE ( + MAX( - - 58 ), 42, ( - ( ( 56 ) ) ) - 23 ) ) + 52 * 8 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL COUNT ( * ) * - + NULLIF ( - 14, + COUNT ( * ) / + COALESCE ( - CAST ( - + 25 AS INTEGER ), - COALESCE ( + MAX ( - - 58 ), 42, ( - ( ( 56 ) ) ) - 23 ) ) + 52 * 8 ) AS col2
----
14

query I rowsort
SELECT - ( 61 ) * 98 + - 69 AS col1
----
-6047

query I rowsort
SELECT DISTINCT ( + 64 ) + + 37 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ( COUNT( * ) ) + - + 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7878
SELECT ( COUNT ( * ) ) + - + 49 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7879
SELECT DISTINCT NULLIF ( SUM( + 80 ), + - ( - CAST( + COALESCE ( - + 61, + 5 ) AS SIGNED ) ) ) + - ( + 99 ) AS col1, COUNT( * ) * 65
----
-19
65

skipif mysql # not compatible
query II rowsort label-7879
SELECT DISTINCT NULLIF ( SUM ( + 80 ), + - ( - CAST ( + COALESCE ( - + 61, + 5 ) AS INTEGER ) ) ) + - ( + 99 ) AS col1, COUNT ( * ) * 65
----
-19
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT 31 DIV + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7880
SELECT 31 / + COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT 36 + - 28 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT 21 DIV + + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT 21 / + + 87 AS col0
----
0

query I rowsort
SELECT 56 + + 88 + 61
----
205

query I rowsort
SELECT 66 + + COALESCE ( + 99, 3 )
----
165

query I rowsort
SELECT ALL ( - 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT ALL - 69 DIV + + 50 * ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL - 69 / + + 50 * ( + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + NULLIF ( 87, + + 10 * + 83 * COUNT( * ) + - - CASE - 89 WHEN + + 4 THEN MAX( + 89 ) ELSE + - 25 / + + 98 + 66 END + + MIN( DISTINCT + ( 92 ) ) * + CASE + 86 WHEN - 39 THEN + 58 WHEN COUNT( * ) / ( 28 ) THEN NULL ELSE NULL END )
----
87

skipif mysql # not compatible
query I rowsort label-7887
SELECT + NULLIF ( 87, + + 10 * + 83 * COUNT ( * ) + - - CASE - 89 WHEN + + 4 THEN MAX ( + 89 ) ELSE + - 25 / + + 98 + 66 END + + MIN ( DISTINCT + ( 92 ) ) * + CASE + 86 WHEN - 39 THEN + 58 WHEN COUNT ( * ) / ( 28 ) THEN NULL ELSE NULL END )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7888
SELECT ALL - SUM( DISTINCT NULLIF ( CAST( + 58 AS SIGNED ), + - 96 * + - 44 DIV ( + 95 ) ) ) DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - SUM ( DISTINCT NULLIF ( CAST ( + 58 AS INTEGER ), + - 96 * + - 44 / ( + 95 ) ) ) / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT 52 * - + 75 * 13 - + MAX( DISTINCT - + 40 )
----
-50660

skipif mysql # not compatible
query I rowsort label-7889
SELECT 52 * - + 75 * 13 - + MAX ( DISTINCT - + 40 )
----
-50660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT + MIN( DISTINCT + 60 ) DIV 46 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7890
SELECT + MIN ( DISTINCT + 60 ) / 46 * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + - COUNT( DISTINCT + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-7891
SELECT + - COUNT ( DISTINCT + 58 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT 10 * + COUNT( DISTINCT 24 ) + - 78 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7892
SELECT 10 * + COUNT ( DISTINCT 24 ) + - 78 AS col1
----
-68

query I rowsort
SELECT ALL - - 75 AS col1
----
75

query I rowsort
SELECT + 49 + - 78
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT - - COUNT( * ) * + CAST( + - NULLIF ( - - NULLIF ( + 5, 92 * ( + 35 ) + 98 ), + 64 ) AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT - - COUNT ( * ) * + CAST ( + - NULLIF ( - - NULLIF ( + 5, 92 * ( + 35 ) + 98 ), + 64 ) AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + 5 * + 60 + + COUNT( * )
----
301

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 5 * + 60 + + COUNT ( * )
----
301

query II rowsort
SELECT 90 * - 38 AS col2, 25 - + 75
----
-3420
-50

query I rowsort
SELECT ALL - - ( + - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT - ( 18 ) * + COUNT( * ) * 24 * - 9 * + + 0
----
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - ( 18 ) * + COUNT ( * ) * 24 * - 9 * + + 0
----
0

query I rowsort
SELECT - 99 - + 81
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + 8 * - COUNT( * ) + + 35 * + 78 * - 19
----
-51878

skipif mysql # not compatible
query I rowsort label-7901
SELECT + 8 * - COUNT ( * ) + + 35 * + 78 * - 19
----
-51878

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL - + ( MAX( DISTINCT - 56 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - + ( MAX ( DISTINCT - 56 ) ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT + 26, ( + COUNT( * ) ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-7903
SELECT + 26, ( + COUNT ( * ) ) AS col1
----
26
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT 87 * + 23 / CAST( NULL AS SIGNED ) * 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT 87 * + 23 / CAST ( NULL AS INTEGER ) * 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7905
SELECT 22 * - + MIN( + 96 ) AS col1, - 67 col0
----
-2112
-67

skipif mysql # not compatible
query II rowsort label-7905
SELECT 22 * - + MIN ( + 96 ) AS col1, - 67 col0
----
-2112
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7906
SELECT - COUNT( * ) * CAST( NULL AS DECIMAL ) - + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT - COUNT ( * ) * CAST ( NULL AS REAL ) - + - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT - 4 + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - 4 + COUNT ( * )
----
-3

query I rowsort
SELECT 12 * 27
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT SUM( ALL 61 ) * - COUNT( * ) + + - 0 * 4
----
-61

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT SUM ( ALL 61 ) * - COUNT ( * ) + + - 0 * 4
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT 48 + - SUM( DISTINCT 16 ) + 11 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT 48 + - SUM ( DISTINCT 16 ) + 11 AS col0
----
43

query II rowsort
SELECT 2 + 28 + - + 15 AS col1, 45
----
15
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7912
SELECT 11 + 21 - 92 DIV 38 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7912
SELECT 11 + 21 - 92 / 38 AS col1
----
30

query I rowsort
SELECT 47 * + 30 * + - 20 * - 76 AS col2
----
2143200

query I rowsort
SELECT DISTINCT 95 * + 96 AS col2
----
9120

query I rowsort
SELECT 21 + 65 AS col2
----
86

query I rowsort
SELECT 60 * - CASE 57 WHEN - - 75 THEN - 55 WHEN - + 10 THEN + + 86 END col0
----
NULL

query I rowsort
SELECT 30 + 69 col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT - COUNT( * ) AS col1, 66 AS col2
----
-1
66

skipif mysql # not compatible
query II rowsort label-7918
SELECT - COUNT ( * ) AS col1, 66 AS col2
----
-1
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT ALL 47 - - CAST( + - 60 AS SIGNED ) * + - 91
----
5507

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL 47 - - CAST ( + - 60 AS INTEGER ) * + - 91
----
5507

query I rowsort
SELECT 37 - - ( - 31 ) AS col1
----
6

query I rowsort
SELECT NULLIF ( 74, 56 ) + 83 + - 6
----
151

query I rowsort
SELECT 50 * - + 76
----
-3800

query II rowsort
SELECT ALL 25 col1, + ( + 43 ) col2
----
25
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7924
SELECT 56 + + - 98 * + + 31 DIV COUNT( * ) - - ( + 32 ) AS col0
----
-2950

skipif mysql # not compatible
query I rowsort label-7924
SELECT 56 + + - 98 * + + 31 / COUNT ( * ) - - ( + 32 ) AS col0
----
-2950

query I rowsort
SELECT + 81 * 94 + - 82
----
7532

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT 35 + COUNT( * ) + 19 * - 89
----
-1655

skipif mysql # not compatible
query I rowsort label-7926
SELECT 35 + COUNT ( * ) + 19 * - 89
----
-1655

query I rowsort
SELECT ALL + 35 * 35 * + NULLIF ( + 20, + - 68 )
----
24500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7928
SELECT + - 66 + COALESCE ( - 68, + 26 + - - 92 + 42 ) + + 26 + - 31 - NULLIF ( - + 59, + COUNT( * ) ) * COUNT( + + 46 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT + - 66 + COALESCE ( - 68, + 26 + - - 92 + 42 ) + + 26 + - 31 - NULLIF ( - + 59, + COUNT ( * ) ) * COUNT ( + + 46 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 59 + + - 36 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT + MIN( ALL 64 ) * 48
----
3072

skipif mysql # not compatible
query I rowsort label-7930
SELECT + MIN ( ALL 64 ) * 48
----
3072

query I rowsort
SELECT - 33 + - 4 + - + COALESCE ( - COALESCE ( 39, + 3 ), 70 ) * + 73
----
2810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT DISTINCT + 8 * - COALESCE ( + CAST( NULL AS SIGNED ), 62 - - 30 * - 60 * - + 49 ) + - + 83 * + - COUNT( * ) AS col1
----
-706013

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + 8 * - COALESCE ( + CAST ( NULL AS INTEGER ), 62 - - 30 * - 60 * - + 49 ) + - + 83 * + - COUNT ( * ) AS col1
----
-706013

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL - COUNT( * ) * 23 + + 80 * SUM( DISTINCT + 86 ) AS col0
----
6857

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL - COUNT ( * ) * 23 + + 80 * SUM ( DISTINCT + 86 ) AS col0
----
6857

query II rowsort
SELECT DISTINCT + ( - 57 ), - 30 AS col2
----
-57
-30

query I rowsort
SELECT - 19 + + ( 69 ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7936
SELECT - COUNT( + + CAST( NULL AS SIGNED ) ) + + SUM( - ( - 72 ) ) * 63
----
4536

skipif mysql # not compatible
query I rowsort label-7936
SELECT - COUNT ( + + CAST ( NULL AS INTEGER ) ) + + SUM ( - ( - 72 ) ) * 63
----
4536

query I rowsort
SELECT ALL + 98 * + ( 82 ) + - + 55 + + 79 AS col2
----
8060

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT + 66 * - - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7938
SELECT + 66 * - - COUNT ( * ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7939
SELECT - 42 - - - NULLIF ( + + 1, - CASE 15 WHEN + 3 THEN NULL WHEN + 81 / 9 + - + 16 + - 64 * + - CAST( - NULLIF ( ( + - 32 ), + 44 * + MIN( DISTINCT CAST( + 56 AS DECIMAL ) ) ) AS SIGNED ) * 80 + - 92 THEN NULL WHEN 23 THEN COUNT( * ) WHEN 21 THEN NULL ELSE NULL END ) + CASE WHEN NOT ( 81 ) NOT BETWEEN 54 AND - 1 / 50 THEN NULL WHEN ( 12 ) = NULL THEN 80 ELSE NULL END / 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 42 - - - NULLIF ( + + 1, - CASE 15 WHEN + 3 THEN NULL WHEN + 81 / 9 + - + 16 + - 64 * + - CAST ( - NULLIF ( ( + - 32 ), + 44 * + MIN ( DISTINCT CAST ( + 56 AS REAL ) ) ) AS INTEGER ) * 80 + - 92 THEN NULL WHEN 23 THEN COUNT ( * ) WHEN 21 THEN NULL ELSE NULL END ) + CASE WHEN NOT ( 81 ) NOT BETWEEN 54 AND - 1 / 50 THEN NULL WHEN ( 12 ) = NULL THEN 80 ELSE NULL END / 33 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7940
SELECT ALL COALESCE ( - COUNT( * ), + 51 * + MAX( CAST( NULL AS SIGNED ) ), 90 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL COALESCE ( - COUNT ( * ), + 51 * + MAX ( CAST ( NULL AS INTEGER ) ), 90 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT CASE - + 61 WHEN - 13 * - - ( 20 ) + + MAX( ALL - + 67 ) + - 17 THEN NULL WHEN + 7 THEN + 26 - + 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT CASE - + 61 WHEN - 13 * - - ( 20 ) + + MAX ( ALL - + 67 ) + - 17 THEN NULL WHEN + 7 THEN + 26 - + 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT - COUNT( * ) * - 12
----
12

skipif mysql # not compatible
query I rowsort label-7942
SELECT - COUNT ( * ) * - 12
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT + COUNT( * ) + + - 95 + - SUM( DISTINCT + 5 ) * COUNT( * ), + 32 * + + 19 AS col0
----
-99
608

skipif mysql # not compatible
query II rowsort label-7943
SELECT + COUNT ( * ) + + - 95 + - SUM ( DISTINCT + 5 ) * COUNT ( * ), + 32 * + + 19 AS col0
----
-99
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL + 55 / + - NULLIF ( + - CAST( NULL AS SIGNED ), + 97 * 33 ) * ( - 16 ) * - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL + 55 / + - NULLIF ( + - CAST ( NULL AS INTEGER ), + 97 * 33 ) * ( - 16 ) * - 53 AS col0
----
NULL

query I rowsort
SELECT ALL ( - + 43 )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT ALL 0 * - CAST( - - COUNT( * ) AS SIGNED ) * + - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL 0 * - CAST ( - - COUNT ( * ) AS INTEGER ) * + - 27 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT ALL + 56 DIV + 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + 56 / + 52 AS col0
----
1

query II rowsort
SELECT + 65 * - 58 col2, 95 * + - 63 * - 39
----
-3770
233415

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT + - COUNT( * ) + - 91 - 96 * + + 16 * - 87 * - + 35 + + 67
----
-4677145

skipif mysql # not compatible
query I rowsort label-7949
SELECT + - COUNT ( * ) + - 91 - 96 * + + 16 * - 87 * - + 35 + + 67
----
-4677145

query I rowsort
SELECT - + 45 * - + 3 AS col0
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT + + 11 * + 85, 26 * CASE + 51 WHEN - 61 THEN - + COUNT( * ) * + 81 ELSE NULL END * - - 90 AS col0
----
935
NULL

skipif mysql # not compatible
query II rowsort label-7951
SELECT + + 11 * + 85, 26 * CASE + 51 WHEN - 61 THEN - + COUNT ( * ) * + 81 ELSE NULL END * - - 90 AS col0
----
935
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7952
SELECT ALL - + 30 + - CASE - + MAX( - + 13 ) WHEN - 30 * - - 72 + 83 + CAST( NULL AS SIGNED ) * 40 * COUNT( * ) THEN 36 / - + 78 WHEN + - 9 + 57 - COUNT( * ) * + 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - + 30 + - CASE - + MAX ( - + 13 ) WHEN - 30 * - - 72 + 83 + CAST ( NULL AS INTEGER ) * 40 * COUNT ( * ) THEN 36 / - + 78 WHEN + - 9 + 57 - COUNT ( * ) * + 90 THEN NULL END
----
NULL

query I rowsort
SELECT + - 83 * + + 90 - 65 AS col1
----
-7535

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT NULLIF ( 89, + AVG ( 54 ) / + - COUNT( * ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7954
SELECT NULLIF ( 89, + AVG ( 54 ) / + - COUNT ( * ) ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-7955
SELECT ALL - 23 * 74 DIV 54 * 42 AS col0, + 23
----
-1302
23

skipif mysql # not compatible
query II rowsort label-7955
SELECT ALL - 23 * 74 / 54 * 42 AS col0, + 23
----
-1302
23

query I rowsort
SELECT + - ( 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + 47 + + MIN( ALL - 28 ) + + 26 * 51 * - + 75 AS col0
----
-99431

skipif mysql # not compatible
query I rowsort label-7957
SELECT + 47 + + MIN ( ALL - 28 ) + + 26 * 51 * - + 75 AS col0
----
-99431

onlyif mysql # aggregate syntax: 
query II rowsort label-7958
SELECT + - 79 * - 82 AS col1, + 88 + ( - NULLIF ( SUM( ALL - 11 ), - COUNT( * ) ) ) AS col0
----
6478
99

skipif mysql # not compatible
query II rowsort label-7958
SELECT + - 79 * - 82 AS col1, + 88 + ( - NULLIF ( SUM ( ALL - 11 ), - COUNT ( * ) ) ) AS col0
----
6478
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT ALL - COUNT( * ) / CAST( NULL AS SIGNED ) + + 73 * + + COUNT( * ) * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER ) + + 73 * + + COUNT ( * ) * + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ( + - NULLIF ( + 55, + 3 + COUNT( - 99 ) + - 63 * 7 / + + 2 ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7960
SELECT ( + - NULLIF ( + 55, + 3 + COUNT ( - 99 ) + - 63 * 7 / + + 2 ) ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7961
SELECT + CAST( + + ( - - 30 ) AS SIGNED ) AS col0, COUNT( * ) DIV ( + + 74 )
----
30
0

skipif mysql # not compatible
query II rowsort label-7961
SELECT + CAST ( + + ( - - 30 ) AS INTEGER ) AS col0, COUNT ( * ) / ( + + 74 )
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT - MIN( DISTINCT - 78 ) * - 24 + 80 * + 25
----
128

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - MIN ( DISTINCT - 78 ) * - 24 + 80 * + 25
----
128

query I rowsort
SELECT + 66 * + 16 col1
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT - COUNT( + - 74 ) * + 58 + + - 59 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-7964
SELECT - COUNT ( + - 74 ) * + 58 + + - 59 AS col0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT ALL ( - + 21 ) DIV + 55 * + 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL ( - + 21 ) / + 55 * + 23 AS col0
----
0

query I rowsort
SELECT 68 * 37 * 22 + - 23 AS col1
----
55329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7967
SELECT - 48 * + CAST( 16 AS SIGNED ), SUM( - 71 ) AS col0
----
-768
-71

skipif mysql # not compatible
query II rowsort label-7967
SELECT - 48 * + CAST ( 16 AS INTEGER ), SUM ( - 71 ) AS col0
----
-768
-71

query I rowsort
SELECT + 19 + - 90
----
-71

query I rowsort
SELECT ALL 75 * NULLIF ( - + 10, + 89 ) - 33
----
-783

query II rowsort
SELECT DISTINCT + 79 AS col2, 40 + - ( + - 47 )
----
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT DISTINCT CAST( + + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT CAST ( + + 12 AS INTEGER )
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7972
SELECT ALL ( + SUM( - CAST( NULL AS DECIMAL ) ) ) * - 91 - + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL ( + SUM ( - CAST ( NULL AS REAL ) ) ) * - 91 - + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT - CASE - 48 WHEN + AVG ( ALL + - 22 ) THEN - 83 + + - 85 WHEN + COUNT( * ) * 18 THEN + COUNT( * ) ELSE NULL END * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7973
SELECT - CASE - 48 WHEN + AVG ( ALL + - 22 ) THEN - 83 + + - 85 WHEN + COUNT ( * ) * 18 THEN + COUNT ( * ) ELSE NULL END * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT + + ( 41 ) + + + COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7974
SELECT + + ( 41 ) + + + COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - - 90 + 61 + + 39 * - 13 * 69 * + CASE - + COALESCE ( + - ( + COALESCE ( - 37, + + COUNT( * ) * - + 74 - + COUNT( * ) ) ), + COUNT( * ) ) WHEN + 66 THEN NULL WHEN - 27 THEN 47 * - 14 + 17 * - 3 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT - - 90 + 61 + + 39 * - 13 * 69 * + CASE - + COALESCE ( + - ( + COALESCE ( - 37, + + COUNT ( * ) * - + 74 - + COUNT ( * ) ) ), + COUNT ( * ) ) WHEN + 66 THEN NULL WHEN - 27 THEN 47 * - 14 + 17 * - 3 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7976
SELECT + COALESCE ( + NULLIF ( + 23, + + 11 ), + + COUNT( * ) * - 64 * + 58 DIV + COUNT( * ) DIV + 88 )
----
23

skipif mysql # not compatible
query I rowsort label-7976
SELECT + COALESCE ( + NULLIF ( + 23, + + 11 ), + + COUNT ( * ) * - 64 * + 58 / + COUNT ( * ) / + 88 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL + 10 + COUNT( * ) * - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + 10 + COUNT ( * ) * - COUNT ( * ) AS col1
----
9

query I rowsort
SELECT 96 + + 95 - - 89 AS col1
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-7979
SELECT + 29 DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT + 29 / + 73 AS col0
----
0

query I rowsort
SELECT DISTINCT - 77 + + ( 61 ) col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7981
SELECT - CAST( - - 68 AS SIGNED ) + + - MAX( - 42 ) DIV 32 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7981
SELECT - CAST ( - - 68 AS INTEGER ) + + - MAX ( - 42 ) / 32 AS col0
----
-67

query I rowsort
SELECT 34 + - - 24 + 6 * + 65
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - - CASE - - SUM( + + 95 ) WHEN - 53 THEN + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT - - CASE - - SUM ( + + 95 ) WHEN - 53 THEN + 34 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7984
SELECT DISTINCT - - 65 * 40 DIV + 88 + - 13 + + MAX( DISTINCT + 5 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - - 65 * 40 / + 88 + - 13 + + MAX ( DISTINCT + 5 ) AS col0
----
21

query I rowsort
SELECT ALL + 94 + + - 95
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT + 18 + 34 DIV + 45 * - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7986
SELECT + 18 + 34 / + 45 * - COUNT ( * ) AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT + 88 + 91 DIV - 99 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7987
SELECT + 88 + 91 / - 99 AS col1
----
88

query I rowsort
SELECT ALL - - 89 + + - ( - 81 ) + + - 9 AS col2
----
161

query II rowsort
SELECT - - 44, 15 + + - 7 AS col2
----
44
8

query I rowsort
SELECT ALL + 34 + - + 86
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT - COUNT( ALL + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - COUNT ( ALL + 14 )
----
-1

query I rowsort
SELECT DISTINCT - - CASE 82 WHEN + - 71 * + 30 THEN NULL ELSE 52 END AS col0
----
52

query I rowsort
SELECT DISTINCT + + 60 + 46
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT - COUNT( * ) * 36 + - COUNT( * ) - 57 * + 77
----
-4426

skipif mysql # not compatible
query I rowsort label-7994
SELECT - COUNT ( * ) * 36 + - COUNT ( * ) - 57 * + 77
----
-4426

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT - MIN( + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - MIN ( + 95 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7996
SELECT 72 DIV 87 DIV 89 * 3 * - 29 * + - 37 + - COUNT( * ) * COUNT( * ) DIV - - 90 * - - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7996
SELECT 72 / 87 / 89 * 3 * - 29 * + - 37 + - COUNT ( * ) * COUNT ( * ) / - - 90 * - - 28 AS col1
----
0

query II rowsort
SELECT + 35, 11 AS col1
----
35
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7998
SELECT COUNT( * ) DIV 98 * - + 70 DIV - 48 AS col2, + 73 AS col1
----
0
73

skipif mysql # not compatible
query II rowsort label-7998
SELECT COUNT ( * ) / 98 * - + 70 / - 48 AS col2, + 73 AS col1
----
0
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT CAST( + 6 AS SIGNED ) * 44 AS col1
----
264

skipif mysql # not compatible
query I rowsort label-7999
SELECT CAST ( + 6 AS INTEGER ) * 44 AS col1
----
264

query I rowsort
SELECT ALL + 73 * + 67
----
4891

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT 40 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-8001
SELECT 40 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT DISTINCT 36 * + + NULLIF ( + 92, - 15 + 76 - - COUNT( * ) + COUNT( * ) * + 90 )
----
3312

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT 36 * + + NULLIF ( + 92, - 15 + 76 - - COUNT ( * ) + COUNT ( * ) * + 90 )
----
3312

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT 60 AS col1, 1 * - COUNT( * )
----
60
-1

skipif mysql # not compatible
query II rowsort label-8003
SELECT 60 AS col1, 1 * - COUNT ( * )
----
60
-1

query I rowsort
SELECT ( - 38 ) * - 67
----
2546

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT DISTINCT 23 DIV 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT 23 / 91 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8006
SELECT 49 - - - COUNT( + 91 ) + ( + - CASE - 89 WHEN + CASE 52 WHEN CAST( NULL AS SIGNED ) THEN 33 WHEN + + 26 * + 49 * NULLIF ( 87, 69 ) + 25 - 59 * - 68 THEN - SUM( DISTINCT 92 ) ELSE - MIN( 68 ) * 50 END + 18 THEN NULL ELSE 46 + - 59 * - 64 END ) AS col1
----
-3774

skipif mysql # not compatible
query I rowsort label-8006
SELECT 49 - - - COUNT ( + 91 ) + ( + - CASE - 89 WHEN + CASE 52 WHEN CAST ( NULL AS INTEGER ) THEN 33 WHEN + + 26 * + 49 * NULLIF ( 87, 69 ) + 25 - 59 * - 68 THEN - SUM ( DISTINCT 92 ) ELSE - MIN ( 68 ) * 50 END + 18 THEN NULL ELSE 46 + - 59 * - 64 END ) AS col1
----
-3774

query II rowsort
SELECT 3, - 58 AS col0
----
3
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8008
SELECT - 25 * + 3 + + + 66 + + + 44 * + 60 * - 89 + - - 55 + + COUNT( * ) * 45 AS col0, + 35 AS col0
----
-234869
35

skipif mysql # not compatible
query II rowsort label-8008
SELECT - 25 * + 3 + + + 66 + + + 44 * + 60 * - 89 + - - 55 + + COUNT ( * ) * 45 AS col0, + 35 AS col0
----
-234869
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT 34 * 21 * - COUNT( * ) AS col2
----
-714

skipif mysql # not compatible
query I rowsort label-8009
SELECT 34 * 21 * - COUNT ( * ) AS col2
----
-714

query I rowsort
SELECT ALL 70 + - 86
----
-16

query I rowsort
SELECT ALL 97 * + 4 AS col0
----
388

query I rowsort
SELECT + 36 * - - 42 * 64 AS col1
----
96768

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT ALL + - COALESCE ( - 65, + + 59 * + + ( + - 14 ) ) + + 91 AS col2, + 8 * CASE - 43 WHEN - 71 / + CASE + + 64 WHEN 36 * - MAX( ALL 11 ) + - + MAX( ALL 93 ) * + 36 THEN 17 * - 67 ELSE NULL END THEN NULL ELSE + 15 + - 84 END + + AVG ( DISTINCT 6 ) * + CASE + ( + 77 ) WHEN - COALESCE ( - 56, + 68 + - 51, + MIN( - 23 ) ) * 60 THEN CASE - 68 WHEN + 83 THEN + SUM( DISTINCT 29 ) ELSE 67 + - COUNT( * ) END END AS col2
----
156
NULL

skipif mysql # not compatible
query II rowsort label-8013
SELECT ALL + - COALESCE ( - 65, + + 59 * + + ( + - 14 ) ) + + 91 AS col2, + 8 * CASE - 43 WHEN - 71 / + CASE + + 64 WHEN 36 * - MAX ( ALL 11 ) + - + MAX ( ALL 93 ) * + 36 THEN 17 * - 67 ELSE NULL END THEN NULL ELSE + 15 + - 84 END + + AVG ( DISTINCT 6 ) * + CASE + ( + 77 ) WHEN - COALESCE ( - 56, + 68 + - 51, + MIN ( - 23 ) ) * 60 THEN CASE - 68 WHEN + 83 THEN + SUM ( DISTINCT 29 ) ELSE 67 + - COUNT ( * ) END END AS col2
----
156
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8014
SELECT CAST( NULL AS SIGNED ) AS col0, - COALESCE ( - COALESCE ( - - 86, NULLIF ( + - 65, - 11 + + + 34 ) * - - 63, ( - 32 ) ), - COUNT( + 27 ) + + 3 * + + 37 ) AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-8014
SELECT CAST ( NULL AS INTEGER ) AS col0, - COALESCE ( - COALESCE ( - - 86, NULLIF ( + - 65, - 11 + + + 34 ) * - - 63, ( - 32 ) ), - COUNT ( + 27 ) + + 3 * + + 37 ) AS col1
----
NULL
86

query I rowsort
SELECT + 2 * 55 + + - 37 * - - 47
----
-1629

query II rowsort
SELECT 75 col1, + 23 * + - 24 AS col0
----
75
-552

query II rowsort
SELECT - 31, 32 - - - 35 AS col1
----
-31
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL + COUNT( * ) + + + 33
----
34

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + COUNT ( * ) + + + 33
----
34

query II rowsort
SELECT ALL 82 col2, 12 AS col2
----
82
12

query I rowsort
SELECT DISTINCT + 4 - 74 - + 42
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL - 91 * + - 19 + - COALESCE ( + - 98, + + NULLIF ( - - 60, - 67 / + 39 * + 5 + + 82 - - + 29 ), + COUNT( * ) ) * 56 AS col1
----
7217

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL - 91 * + - 19 + - COALESCE ( + - 98, + + NULLIF ( - - 60, - 67 / + 39 * + 5 + + 82 - - + 29 ), + COUNT ( * ) ) * 56 AS col1
----
7217

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT 31 * + - 39 * - + COUNT( * ) * + 81 AS col2
----
97929

skipif mysql # not compatible
query I rowsort label-8022
SELECT 31 * + - 39 * - + COUNT ( * ) * + 81 AS col2
----
97929

query I rowsort
SELECT DISTINCT - 59 * 39 * - 88 * 89 col2
----
18021432

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT 15 + - MIN( ALL + + 53 )
----
-38

skipif mysql # not compatible
query I rowsort label-8024
SELECT 15 + - MIN ( ALL + + 53 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8025
SELECT 50 DIV MIN( 29 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8025
SELECT 50 / MIN ( 29 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT 21 * + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8026
SELECT 21 * + COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT 31 * + COALESCE ( - - COUNT( * ), + 18 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8027
SELECT 31 * + COALESCE ( - - COUNT ( * ), + 18 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL + MIN( + 26 ) * 39 AS col1
----
1014

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + MIN ( + 26 ) * 39 AS col1
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT + CASE + MAX( 1 ) WHEN 14 THEN - 89 + + 46 END * - - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + CASE + MAX ( 1 ) WHEN 14 THEN - 89 + + 46 END * - - 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT DISTINCT - MAX( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - MAX ( - 47 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT ALL - CAST( + 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL - CAST ( + 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT - MIN( - 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT - MIN ( - 34 ) AS col1
----
34

query I rowsort
SELECT 59 + + + 52 + + - 75
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT MIN( DISTINCT + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8034
SELECT MIN ( DISTINCT + 68 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT ALL - COALESCE ( CASE - 56 WHEN - 2 * + - 7 THEN NULL WHEN + - 15 / + 44 + - + 46 THEN NULL WHEN - COALESCE ( + + 13, 36, + COUNT( * ), 71 / + - CAST( + 40 AS SIGNED ) / CAST( NULL AS SIGNED ) - - 66 * + 9 ) * 73 THEN NULL ELSE + 9 END, + 58 * COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - COALESCE ( CASE - 56 WHEN - 2 * + - 7 THEN NULL WHEN + - 15 / + 44 + - + 46 THEN NULL WHEN - COALESCE ( + + 13, 36, + COUNT ( * ), 71 / + - CAST ( + 40 AS INTEGER ) / CAST ( NULL AS INTEGER ) - - 66 * + 9 ) * 73 THEN NULL ELSE + 9 END, + 58 * COUNT ( * ) )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT 75 DIV + ( + + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-8036
SELECT 75 / + ( + + 44 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT 46 * + MAX( + + 55 ) AS col1
----
2530

skipif mysql # not compatible
query I rowsort label-8037
SELECT 46 * + MAX ( + + 55 ) AS col1
----
2530

query I rowsort
SELECT 49 + + 18 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + COUNT( - + 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8039
SELECT + COUNT ( - + 40 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + COUNT( DISTINCT + - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8040
SELECT + COUNT ( DISTINCT + - 38 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT ALL 17 * - CAST( + CAST( - NULLIF ( 81, 99 ) AS SIGNED ) AS SIGNED )
----
1377

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL 17 * - CAST ( + CAST ( - NULLIF ( 81, 99 ) AS INTEGER ) AS INTEGER )
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT + + 36 + - - MIN( DISTINCT - + 24 ) + 81 * - - 90
----
7302

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + + 36 + - - MIN ( DISTINCT - + 24 ) + 81 * - - 90
----
7302

query II rowsort
SELECT ALL - 88 + + - 71, + 77 col2
----
-159
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT DISTINCT + 77 + + - 96 DIV + 67 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT + 77 + + - 96 / + 67 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL + COUNT( * ) * - ( - COUNT( * ) ) + + 72
----
73

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + COUNT ( * ) * - ( - COUNT ( * ) ) + + 72
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8046
SELECT DISTINCT 60 + - - CAST( + - 18 AS SIGNED ) DIV + 95 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT 60 + - - CAST ( + - 18 AS INTEGER ) / + 95 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT CASE - MIN( ALL - CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) * - 25 THEN COUNT( * ) WHEN - + 25 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT CASE - MIN ( ALL - CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) * - 25 THEN COUNT ( * ) WHEN - + 25 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 3 + - 24
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT + CASE + 77 WHEN + COUNT( * ) + + - CASE + 50 WHEN - 78 THEN NULL WHEN + COUNT( * ) THEN - 24 ELSE + COUNT( * ) END * - ( + + NULLIF ( 39, 8 * + - SUM( ALL 62 ) * COALESCE ( SUM( + 92 ), 49 * + CASE 18 * - NULLIF ( + COUNT( * ) * - 68, 30 + - ( + COUNT( * ) + 64 ) ) WHEN + 23 THEN NULL WHEN 4 THEN - 36 END, 19 * - 14 ) + + 45 ) ) THEN 99 * - CAST( + 77 AS SIGNED ) ELSE - 83 + 31 * 48 END + 1
----
1406

skipif mysql # not compatible
query I rowsort label-8049
SELECT + CASE + 77 WHEN + COUNT ( * ) + + - CASE + 50 WHEN - 78 THEN NULL WHEN + COUNT ( * ) THEN - 24 ELSE + COUNT ( * ) END * - ( + + NULLIF ( 39, 8 * + - SUM ( ALL 62 ) * COALESCE ( SUM ( + 92 ), 49 * + CASE 18 * - NULLIF ( + COUNT ( * ) * - 68, 30 + - ( + COUNT ( * ) + 64 ) ) WHEN + 23 THEN NULL WHEN 4 THEN - 36 END, 19 * - 14 ) + + 45 ) ) THEN 99 * - CAST ( + 77 AS INTEGER ) ELSE - 83 + 31 * 48 END + 1
----
1406

query I rowsort
SELECT + + ( - 16 ) * + COALESCE ( + 22, 33 + 13 * + + 77 * 41 ) * + 56
----
-19712

onlyif mysql # aggregate syntax: 
query II rowsort label-8051
SELECT + 56 - - ( + 44 ), - COUNT( * ) AS col2
----
100
-1

skipif mysql # not compatible
query II rowsort label-8051
SELECT + 56 - - ( + 44 ), - COUNT ( * ) AS col2
----
100
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + COUNT( * ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-8052
SELECT + COUNT ( * ) + + 74
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 53 * + + 85
----
-4505

skipif mysql # not compatible
query I rowsort label-8053
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 53 * + + 85
----
-4505

query II rowsort
SELECT + 14 + 15 * 30 AS col2, + 40 * + ( - + 5 )
----
464
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT MAX( ALL 13 ) - + 98 * - 71
----
6971

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT MAX ( ALL 13 ) - + 98 * - 71
----
6971

query I rowsort
SELECT ALL - - 35 * - 10
----
-350

query I rowsort
SELECT ALL - 0 - + + 97 + + - ( - 15 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT 15 * + - COUNT( * ) + 53 col1
----
38

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT 15 * + - COUNT ( * ) + 53 col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT - CASE - 32 WHEN - 93 + COUNT( * ) * - SUM( DISTINCT + 8 ) THEN + COUNT( * ) * - SUM( DISTINCT - 90 ) * - COUNT( * ) / + SUM( DISTINCT - + ( 90 ) ) * - 89 * + 86 * + 73 + - + COUNT( * ) + - ( COUNT( * ) ) * 73 WHEN + COALESCE ( ( SUM( DISTINCT - 59 ) ), + 10 ) THEN - COUNT( * ) * + ( 28 ) END * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT - CASE - 32 WHEN - 93 + COUNT ( * ) * - SUM ( DISTINCT + 8 ) THEN + COUNT ( * ) * - SUM ( DISTINCT - 90 ) * - COUNT ( * ) / + SUM ( DISTINCT - + ( 90 ) ) * - 89 * + 86 * + 73 + - + COUNT ( * ) + - ( COUNT ( * ) ) * 73 WHEN + COALESCE ( ( SUM ( DISTINCT - 59 ) ), + 10 ) THEN - COUNT ( * ) * + ( 28 ) END * - 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT - COUNT( * ) + - - 78 + - 85 col0
----
-8

skipif mysql # not compatible
query I rowsort label-8060
SELECT - COUNT ( * ) + - - 78 + - 85 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL COUNT( ALL 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL COUNT ( ALL 96 )
----
1

query I rowsort
SELECT + 37 * - 61
----
-2257

query I rowsort
SELECT DISTINCT NULLIF ( + - 33, - 48 ) col1
----
-33

query I rowsort
SELECT ( - - 53 ) col0
----
53

query I rowsort
SELECT ALL - 10 * + 63
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT DISTINCT + CASE + + 28 WHEN + 52 THEN + 53 + + COUNT( ALL CASE 92 WHEN + 24 - 53 THEN + + 90 * 32 * - - CAST( NULL AS SIGNED ) ELSE NULL END ) WHEN 52 - + - 42 + + - 29 + MIN( 96 ) THEN NULL WHEN - - 53 + 40 THEN - 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT + CASE + + 28 WHEN + 52 THEN + 53 + + COUNT ( ALL CASE 92 WHEN + 24 - 53 THEN + + 90 * 32 * - - CAST ( NULL AS INTEGER ) ELSE NULL END ) WHEN 52 - + - 42 + + - 29 + MIN ( 96 ) THEN NULL WHEN - - 53 + 40 THEN - 88 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT - 13 * 7 + - 35 * + MAX( - + 58 ) * - 41 AS col2
----
-83321

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - 13 * 7 + - 35 * + MAX ( - + 58 ) * - 41 AS col2
----
-83321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT - ( - + CAST( - 39 AS SIGNED ) ) * - 4 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-8068
SELECT - ( - + CAST ( - 39 AS INTEGER ) ) * - 4 AS col1
----
156

query I rowsort
SELECT - 71 + + 13 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT DISTINCT CAST( + MAX( ( - 79 ) ) AS SIGNED ) * 64 + + 31 + + - COUNT( * )
----
-5026

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT CAST ( + MAX ( ( - 79 ) ) AS INTEGER ) * 64 + + 31 + + - COUNT ( * )
----
-5026

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8071
SELECT - 47 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT - 47 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 53 * + 85
----
-4505

query I rowsort
SELECT + 37 * - 17 + 0
----
-629

query I rowsort
SELECT ALL 87 * - 60 * - 67 + + 32 AS col1
----
349772

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8075
SELECT ALL - 38 * + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - 38 * + CAST ( NULL AS REAL ) col1
----
NULL

query II rowsort
SELECT + 25 col2, 68
----
25
68

query I rowsort
SELECT - NULLIF ( - 25, + 24 ) + + 13
----
38

query I rowsort
SELECT - 57 * + 44 * + 63
----
-158004

query II rowsort
SELECT + 59 AS col2, + 44
----
59
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8080
SELECT - AVG ( 27 ) * + 36 + - CASE + COUNT( - - 70 ) WHEN - 5 THEN - 76 * + 54 + - 37 * - 70 + 2 * - CAST( + NULLIF ( + 19, 80 ) AS SIGNED ) * + + ( - 67 ) + + 12 + COUNT( * ) WHEN - MIN( + 8 ) THEN ( 50 ) END + COUNT( * ) * - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT - AVG ( 27 ) * + 36 + - CASE + COUNT ( - - 70 ) WHEN - 5 THEN - 76 * + 54 + - 37 * - 70 + 2 * - CAST ( + NULLIF ( + 19, 80 ) AS INTEGER ) * + + ( - 67 ) + + 12 + COUNT ( * ) WHEN - MIN ( + 8 ) THEN ( 50 ) END + COUNT ( * ) * - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT + COUNT( * ) * MIN( ALL + 45 ) - 12 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + COUNT ( * ) * MIN ( ALL + 45 ) - 12 AS col1
----
33

query I rowsort
SELECT ALL 15 * COALESCE ( 66, - 10 )
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT + - SUM( ALL - 27 ) + + COUNT( * ) + - + 84 + - - 0 + + 33 * - 36 AS col2
----
-1244

skipif mysql # not compatible
query I rowsort label-8083
SELECT + - SUM ( ALL - 27 ) + + COUNT ( * ) + - + 84 + - - 0 + + 33 * - 36 AS col2
----
-1244

query I rowsort
SELECT + - 52 * + 79 AS col0
----
-4108

query I rowsort
SELECT ALL + NULLIF ( 45, 12 ) * + 46 AS col2
----
2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT - CASE - 89 WHEN 80 THEN 32 * + - 5 + + COALESCE ( + + 82, + COUNT( * ) + + + MIN( - 17 ) / + + 60 ) + 66 * - 25 WHEN - 34 THEN NULL ELSE - 22 - - NULLIF ( + + 73, + + 1 ) * CAST( NULL AS SIGNED ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT - CASE - 89 WHEN 80 THEN 32 * + - 5 + + COALESCE ( + + 82, + COUNT ( * ) + + + MIN ( - 17 ) / + + 60 ) + 66 * - 25 WHEN - 34 THEN NULL ELSE - 22 - - NULLIF ( + + 73, + + 1 ) * CAST ( NULL AS INTEGER ) END * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT ALL ( + 90 ) DIV - 80 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL ( + 90 ) / - 80 AS col1
----
-1

query I rowsort
SELECT + 20 * + 37
----
740

onlyif mysql # DIV for integer division: 
query II rowsort label-8089
SELECT + 37 DIV + + 13, - 76 col0
----
2
-76

skipif mysql # not compatible
query II rowsort label-8089
SELECT + 37 / + + 13, - 76 col0
----
2
-76

query I rowsort
SELECT + 96 * - 41
----
-3936

query I rowsort
SELECT ALL 8 * 77 AS col1
----
616

query I rowsort
SELECT + 14 - + - NULLIF ( - 25, ( + 94 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT 43 * COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT 43 * COUNT ( * ) AS col0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8094
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT CAST ( NULL AS REAL ) + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL 48 + 7 + COUNT( * ) * - - 58 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL 48 + 7 + COUNT ( * ) * - - 58 AS col1
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT - 40 DIV NULLIF ( - 74, - 29 DIV - 19 ) + + + 49
----
49

skipif mysql # not compatible
query I rowsort label-8096
SELECT - 40 / NULLIF ( - 74, - 29 / - 19 ) + + + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT + 30 + + COUNT( * ) * + + 25 * + 9 + + MIN( - ( + 54 ) ) AS col2
----
201

skipif mysql # not compatible
query I rowsort label-8097
SELECT + 30 + + COUNT ( * ) * + + 25 * + 9 + + MIN ( - ( + 54 ) ) AS col2
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT + 58 DIV 29 - + NULLIF ( + 83, - 47 )
----
-81

skipif mysql # not compatible
query I rowsort label-8098
SELECT + 58 / 29 - + NULLIF ( + 83, - 47 )
----
-81

query I rowsort
SELECT DISTINCT 1 + 56 + ( 78 )
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT 15 * - + CAST( NULL AS SIGNED ) + + 64 * - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT 15 * - + CAST ( NULL AS INTEGER ) + + 64 * - 50 AS col2
----
NULL

query I rowsort
SELECT ALL - 34 + - 22
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ( + CASE - MIN( + 93 ) WHEN 89 / - 7 - 41 + + AVG ( ALL + 17 ) + COUNT( * ) + - 62 / + + 61 * + - COALESCE ( 23, - ( - 6 ) ) * ( + 98 ) THEN NULL WHEN - - COUNT( 61 ) THEN 82 END ) / + COUNT( * ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ( + CASE - MIN ( + 93 ) WHEN 89 / - 7 - 41 + + AVG ( ALL + 17 ) + COUNT ( * ) + - 62 / + + 61 * + - COALESCE ( 23, - ( - 6 ) ) * ( + 98 ) THEN NULL WHEN - - COUNT ( 61 ) THEN 82 END ) / + COUNT ( * ) + 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT DISTINCT 41 DIV + - SUM( + + 10 )
----
-4

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT 41 / + - SUM ( + + 10 )
----
-4

query I rowsort
SELECT ALL 63 + + 39
----
102

query I rowsort
SELECT 65 * + 94 * - ( - + 90 ) + + - 98
----
549802

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ( - - NULLIF ( + 69, + - 87 + - - 72 ) ) - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-8106
SELECT ( - - NULLIF ( + 69, + - 87 + - - 72 ) ) - - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT + ( COUNT( * ) ) * - + 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + ( COUNT ( * ) ) * - + 58 AS col0
----
-58

query II rowsort
SELECT + 29 * + 81 AS col2, + 7 + 12 AS col1
----
2349
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL + - MIN( DISTINCT + 80 ) * + 44 AS col0
----
-3520

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + - MIN ( DISTINCT + 80 ) * + 44 AS col0
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8110
SELECT CAST( + MAX( ( - 80 ) ) AS SIGNED ) * + 92 AS col1
----
-7360

skipif mysql # not compatible
query I rowsort label-8110
SELECT CAST ( + MAX ( ( - 80 ) ) AS INTEGER ) * + 92 AS col1
----
-7360

query I rowsort
SELECT DISTINCT 47 * + 91
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT 65 - MIN( 22 ) * + 44 + - 69
----
-972

skipif mysql # not compatible
query I rowsort label-8112
SELECT 65 - MIN ( 22 ) * + 44 + - 69
----
-972

query I rowsort
SELECT DISTINCT - - 26 * - 16 * - + 52
----
21632

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8114
SELECT ( + 82 ) + + + 10 / + CAST( NULL AS DECIMAL ) / + - 31 + + - 42 + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT ( + 82 ) + + + 10 / + CAST ( NULL AS REAL ) / + - 31 + + - 42 + + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT - COUNT( * ) * COALESCE ( 15, 51 - + COUNT( * ) / + - 85 * + SUM( ALL - CAST( - + 32 AS SIGNED ) ) ) - CASE - - 12 WHEN + - 19 THEN + 70 * + ( + 9 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT - COUNT ( * ) * COALESCE ( 15, 51 - + COUNT ( * ) / + - 85 * + SUM ( ALL - CAST ( - + 32 AS INTEGER ) ) ) - CASE - - 12 WHEN + - 19 THEN + 70 * + ( + 9 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL COUNT( + - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL COUNT ( + - 38 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT CAST( NULL AS SIGNED ) + + ( 46 ) * + CASE - MIN( + 70 ) WHEN NULLIF ( - 29, - - 83 + - 99 ) THEN NULL WHEN 4 * 41 THEN - - 53 ELSE - ( - 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT CAST ( NULL AS INTEGER ) + + ( 46 ) * + CASE - MIN ( + 70 ) WHEN NULLIF ( - 29, - - 83 + - 99 ) THEN NULL WHEN 4 * 41 THEN - - 53 ELSE - ( - 29 ) END
----
NULL

query II rowsort
SELECT + 54 - 86 AS col2, 78 AS col1
----
-32
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT ALL NULLIF ( - SUM( DISTINCT + 53 ), 24 + + 10 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL NULLIF ( - SUM ( DISTINCT + 53 ), 24 + + 10 ) AS col2
----
-53

query I rowsort
SELECT 34 * + + 20 AS col0
----
680

query I rowsort
SELECT ALL 8 + 58 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT COUNT( * ) + + 88 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8123
SELECT COUNT ( * ) + + 88 AS col1
----
89

query II rowsort
SELECT ALL + 37 * + 47 * - 98, + 35 AS col2
----
-170422
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8125
SELECT ALL - ( + 87 ) + - + 72 AS col1, - CAST( NULL AS SIGNED ) * - - 46
----
-159
NULL

skipif mysql # not compatible
query II rowsort label-8125
SELECT ALL - ( + 87 ) + - + 72 AS col1, - CAST ( NULL AS INTEGER ) * - - 46
----
-159
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT + COUNT( * ) + 3 * + MIN( 67 )
----
202

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT + COUNT ( * ) + 3 * + MIN ( 67 )
----
202

query I rowsort
SELECT ALL 61 + 29 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT CASE + 66 WHEN - + 64 THEN - 24 ELSE COUNT( * ) END + + COUNT( * ) + + + COUNT( * ) - 60
----
-57

skipif mysql # not compatible
query I rowsort label-8128
SELECT CASE + 66 WHEN - + 64 THEN - 24 ELSE COUNT ( * ) END + + COUNT ( * ) + + + COUNT ( * ) - 60
----
-57

query II rowsort
SELECT - 86 AS col2, 98 AS col1
----
-86
98

query I rowsort
SELECT 69 + + 10 * + + 99
----
1059

query I rowsort
SELECT DISTINCT 7 + - 67 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT ALL 25 + COUNT( * ) * + - 2 AS col0, - 75 AS col2
----
23
-75

skipif mysql # not compatible
query II rowsort label-8132
SELECT ALL 25 + COUNT ( * ) * + - 2 AS col0, - 75 AS col2
----
23
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT CAST( - NULLIF ( + + 68, + - CAST( - 75 AS SIGNED ) * 3 * 39 * + 47 ) AS SIGNED ) + + 19 + + - 43 * + 19 + - + 52 * - - 76 + + MIN( DISTINCT - 71 ) + - COALESCE ( + + 27, - + CAST( - 9 AS SIGNED ) * + 95, + 3 * 31, + 17 * 51 - + 32 )
----
-4916

skipif mysql # not compatible
query I rowsort label-8133
SELECT CAST ( - NULLIF ( + + 68, + - CAST ( - 75 AS INTEGER ) * 3 * 39 * + 47 ) AS INTEGER ) + + 19 + + - 43 * + 19 + - + 52 * - - 76 + + MIN ( DISTINCT - 71 ) + - COALESCE ( + + 27, - + CAST ( - 9 AS INTEGER ) * + 95, + 3 * 31, + 17 * 51 - + 32 )
----
-4916

query I rowsort
SELECT 59 * 38 col0
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT CASE COUNT( * ) WHEN + SUM( 3 ) THEN NULL ELSE + + 98 - - - 92 END + 80
----
86

skipif mysql # not compatible
query I rowsort label-8135
SELECT CASE COUNT ( * ) WHEN + SUM ( 3 ) THEN NULL ELSE + + 98 - - - 92 END + 80
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT ALL 94 + - ( - COALESCE ( + COALESCE ( NULLIF ( + - 20, 90 ), - - 3 * CAST( NULL AS SIGNED ) ), 15 * 66 + + 27 ) ) - + - COALESCE ( - 72, + SUM( 94 ) )
----
2

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL 94 + - ( - COALESCE ( + COALESCE ( NULLIF ( + - 20, 90 ), - - 3 * CAST ( NULL AS INTEGER ) ), 15 * 66 + + 27 ) ) - + - COALESCE ( - 72, + SUM ( 94 ) )
----
2

query I rowsort
SELECT DISTINCT 53 * + ( 78 )
----
4134

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT 24 + + 49 + - - 34 * COUNT( * ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT 24 + + 49 + - - 34 * COUNT ( * ) AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8139
SELECT ALL SUM( DISTINCT - NULLIF ( + - 84, + 32 ) ) * 28 + - ( + + CAST( COALESCE ( + 33, + CASE + + 51 WHEN + CAST( + - CAST( + 10 AS SIGNED ) AS SIGNED ) + - 99 THEN - 66 WHEN - CASE + 63 WHEN - 37 THEN CASE + 88 WHEN + 91 * + 15 THEN - 95 WHEN 26 THEN NULL WHEN CAST( + 49 AS SIGNED ) THEN + 87 END / + 15 ELSE CASE 26 WHEN NULLIF ( + 74, + 81 ) + + ( SUM( 22 ) ) * 12 THEN + 15 END * 50 END * - 17 THEN - 46 * - 84 ELSE - 19 END * - 92 + - 51 * - COUNT( * ) ) AS SIGNED ) )
----
2319

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL SUM ( DISTINCT - NULLIF ( + - 84, + 32 ) ) * 28 + - ( + + CAST ( COALESCE ( + 33, + CASE + + 51 WHEN + CAST ( + - CAST ( + 10 AS INTEGER ) AS INTEGER ) + - 99 THEN - 66 WHEN - CASE + 63 WHEN - 37 THEN CASE + 88 WHEN + 91 * + 15 THEN - 95 WHEN 26 THEN NULL WHEN CAST ( + 49 AS INTEGER ) THEN + 87 END / + 15 ELSE CASE 26 WHEN NULLIF ( + 74, + 81 ) + + ( SUM ( 22 ) ) * 12 THEN + 15 END * 50 END * - 17 THEN - 46 * - 84 ELSE - 19 END * - 92 + - 51 * - COUNT ( * ) ) AS INTEGER ) )
----
2319

query I rowsort
SELECT DISTINCT 0 * + 56 AS col1
----
0

query II rowsort
SELECT DISTINCT 17 * - + 39 * + 86 AS col2, + 56 + + 31 AS col0
----
-57018
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT NULLIF ( - 16, + 78 ) * - COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8142
SELECT NULLIF ( - 16, + 78 ) * - COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL + NULLIF ( 22, - + ( + 62 ) + - 56 ) * - ( + - 11 ) + - 66 - + - 97 + - - 50 * - COUNT( * ) + + 67 + + COUNT( * )
----
291

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + NULLIF ( 22, - + ( + 62 ) + - 56 ) * - ( + - 11 ) + - 66 - + - 97 + - - 50 * - COUNT ( * ) + + 67 + + COUNT ( * )
----
291

query I rowsort
SELECT 10 + + + 97
----
107

query I rowsort
SELECT + ( + 25 )
----
25

query II rowsort
SELECT 22 AS col1, + 4 + - 98 - - + ( 37 ) col2
----
22
-57

query II rowsort
SELECT DISTINCT - NULLIF ( + 31, + - 84 ) AS col2, 31 AS col1
----
-31
31

query I rowsort
SELECT NULLIF ( - 25, + 36 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL + 24 * - 45 * - 90 * - + SUM( - + 22 ) * + 92 AS col1
----
196732800

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + 24 * - 45 * - 90 * - + SUM ( - + 22 ) * + 92 AS col1
----
196732800

query I rowsort
SELECT + 3 + + 8 + + 71 col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8151
SELECT ALL - NULLIF ( - 63, + COUNT( * ) * + 69 * + MIN( + 37 ) ) DIV + 32
----
1

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL - NULLIF ( - 63, + COUNT ( * ) * + 69 * + MIN ( + 37 ) ) / + 32
----
1

query I rowsort
SELECT ALL - - CASE + 88 WHEN - 66 THEN 35 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT + 30 DIV - + 90
----
0

skipif mysql # not compatible
query I rowsort label-8153
SELECT + 30 / - + 90
----
0

query I rowsort
SELECT ALL - ( + ( - + 87 ) ) * + 55
----
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - 69 * - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-8155
SELECT - 69 * - - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT - CAST( + + 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-8156
SELECT - CAST ( + + 69 AS INTEGER )
----
-69

query I rowsort
SELECT DISTINCT - 30 + - 1 + 57
----
26

query I rowsort
SELECT ALL + 72 * 71 AS col0
----
5112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT - CASE + + 27 WHEN 1 THEN NULL ELSE - ( + CAST( NULL AS SIGNED ) ) * - 74 * - MIN( DISTINCT 29 ) * - + 30 + - - 1 END / + 84 * - 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT - CASE + + 27 WHEN 1 THEN NULL ELSE - ( + CAST ( NULL AS INTEGER ) ) * - 74 * - MIN ( DISTINCT 29 ) * - + 30 + - - 1 END / + 84 * - 58 col0
----
NULL

query I rowsort
SELECT ALL 66 + - 68 AS col1
----
-2

query I rowsort
SELECT ALL + ( 68 ) + 15
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT ALL + CAST( NULL AS SIGNED ) + - AVG ( + - 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + CAST ( NULL AS INTEGER ) + - AVG ( + - 79 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8163
SELECT ALL - 51 + 28 + + ( - ( - + 1 ) ) + 69 - + - 95 DIV COUNT( * ) * 48 * + COALESCE ( 86, + 31 + - - COALESCE ( 46, 60 ) + CAST( - COUNT( * ) AS SIGNED ), + + 53 ) * 77 + + - COUNT( + + 31 ) * 78 col1
----
30196289

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL - 51 + 28 + + ( - ( - + 1 ) ) + 69 - + - 95 / COUNT ( * ) * 48 * + COALESCE ( 86, + 31 + - - COALESCE ( 46, 60 ) + CAST ( - COUNT ( * ) AS INTEGER ), + + 53 ) * 77 + + - COUNT ( + + 31 ) * 78 col1
----
30196289

query II rowsort
SELECT 28, - 49 col1
----
28
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8165
SELECT ALL - ( + 55 ) + - - 86 DIV + COUNT( * ) AS col0, 94 * 86 col1
----
31
8084

skipif mysql # not compatible
query II rowsort label-8165
SELECT ALL - ( + 55 ) + - - 86 / + COUNT ( * ) AS col0, 94 * 86 col1
----
31
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT COUNT( * ) - - 21 * + 19 AS col1
----
400

skipif mysql # not compatible
query I rowsort label-8166
SELECT COUNT ( * ) - - 21 * + 19 AS col1
----
400

query II rowsort
SELECT - 84 AS col0, 16 AS col0
----
-84
16

query I rowsort
SELECT DISTINCT + 97 + - - 14
----
111

query II rowsort
SELECT 20, 53 AS col0
----
20
53

query II rowsort
SELECT - 92 AS col0, 57 + - 77 + - - 13 + + 98
----
-92
91

query I rowsort
SELECT ALL + 79 + 60 + + - ( + 30 ) AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8172
SELECT - ( + 85 ) * - CAST( + 91 AS SIGNED ) AS col1, 86 + + 83 + - - 16
----
7735
185

skipif mysql # not compatible
query II rowsort label-8172
SELECT - ( + 85 ) * - CAST ( + 91 AS INTEGER ) AS col1, 86 + + 83 + - - 16
----
7735
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - COUNT( * ) - - 45 * - 63 * + 59
----
-167266

skipif mysql # not compatible
query I rowsort label-8173
SELECT - COUNT ( * ) - - 45 * - 63 * + 59
----
-167266

query I rowsort
SELECT ALL - 88 * - 66
----
5808

query I rowsort
SELECT DISTINCT + 34 - - NULLIF ( - - 59, 91 )
----
93

query I rowsort
SELECT ALL - 79 - - 37
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8177
SELECT 52 col1, + 86 + CAST( NULL AS DECIMAL ) AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-8177
SELECT 52 col1, + 86 + CAST ( NULL AS REAL ) AS col1
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + 16 - + - COUNT( * ) * ( - + 45 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + 16 - + - COUNT ( * ) * ( - + 45 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT DISTINCT NULLIF ( 3, + SUM( - 76 ) )
----
3

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT NULLIF ( 3, + SUM ( - 76 ) )
----
3

query I rowsort
SELECT - 41 + - 38
----
-79

query I rowsort
SELECT - 58 * + 9
----
-522

onlyif mysql # DIV for integer division: 
query II rowsort label-8182
SELECT - 85 DIV 32 * - 88 - 14, + 36 AS col1
----
162
36

skipif mysql # not compatible
query II rowsort label-8182
SELECT - 85 / 32 * - 88 - 14, + 36 AS col1
----
162
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8183
SELECT - - NULLIF ( - + COUNT( * ), - 49 ) * - + 86 + + ( + COUNT( * ) ) - + 43 * AVG ( + CAST( NULL AS SIGNED ) ) col2, ( 83 ) AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-8183
SELECT - - NULLIF ( - + COUNT ( * ), - 49 ) * - + 86 + + ( + COUNT ( * ) ) - + 43 * AVG ( + CAST ( NULL AS INTEGER ) ) col2, ( 83 ) AS col0
----
NULL
83

query II rowsort
SELECT DISTINCT + + 77 AS col2, - 2 * 78 AS col1
----
77
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL - - COUNT( * ) * 71 + ( - - COUNT( DISTINCT - + 24 ) ) - 45
----
27

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - - COUNT ( * ) * 71 + ( - - COUNT ( DISTINCT - + 24 ) ) - 45
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT ALL - - 72 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - - 72 / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + - 25 AS col1, 65 AS col2
----
-25
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + 64 * - 80 - - 27 + COALESCE ( - 83, 15 ) * - COUNT( DISTINCT - 68 ) + - 26 * + 57
----
-6492

skipif mysql # not compatible
query I rowsort label-8188
SELECT + 64 * - 80 - - 27 + COALESCE ( - 83, 15 ) * - COUNT ( DISTINCT - 68 ) + - 26 * + 57
----
-6492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8189
SELECT ALL - 28 * + + 15 * - NULLIF ( ( - NULLIF ( - + 33, + ( + MIN( + 87 ) ) ) ), - 99 ) * - COALESCE ( - 5, + AVG ( ALL - 2 ) ) + + - 46 - COUNT( * ) * 13 * - + MAX( ALL + 10 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL - 28 * + + 15 * - NULLIF ( ( - NULLIF ( - + 33, + ( + MIN ( + 87 ) ) ) ), - 99 ) * - COALESCE ( - 5, + AVG ( ALL - 2 ) ) + + - 46 - COUNT ( * ) * 13 * - + MAX ( ALL + 10 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT DISTINCT + + COUNT( * ), 87 AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-8190
SELECT DISTINCT + + COUNT ( * ), 87 AS col2
----
1
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT ALL + COUNT( * ), - 83 * - - 25 AS col0
----
1
-2075

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL + COUNT ( * ), - 83 * - - 25 AS col0
----
1
-2075

query I rowsort
SELECT + - 89 + 46 col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT ALL - AVG ( - 79 ) * 36 * 52 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - AVG ( - 79 ) * 36 * 52 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 40 + - + 14 * - ( - 75 ) + + CASE 7 WHEN 47 THEN NULL WHEN - 12 - + - 67 THEN + 8 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8195
SELECT ALL + - COUNT( ALL 5 ) AS col2, COUNT( * ) * 80
----
-1
80

skipif mysql # not compatible
query II rowsort label-8195
SELECT ALL + - COUNT ( ALL 5 ) AS col2, COUNT ( * ) * 80
----
-1
80

query II rowsort
SELECT + 7 AS col2, - 89 + + - 31
----
7
-120

query I rowsort
SELECT + 67 * + 36 * - + 71 AS col2
----
-171252

query I rowsort
SELECT ALL - 46 * 6 + 23 AS col2
----
-253

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL - - 56 * 97 DIV 2 + + 78
----
2794

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - - 56 * 97 / 2 + + 78
----
2794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8200
SELECT DISTINCT + + 90 * CASE CAST( - 39 AS SIGNED ) WHEN + 67 * - ( 44 ) * - 93 + 3 THEN NULL WHEN - - 75 * 34 + - - 4 THEN 82 * 16 + 48 * - 49 * - + 89 END * - - COUNT( * ) * - - ( COUNT( * ) ) * COALESCE ( 23, + 29 ) + + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + + 90 * CASE CAST ( - 39 AS INTEGER ) WHEN + 67 * - ( 44 ) * - 93 + 3 THEN NULL WHEN - - 75 * 34 + - - 4 THEN 82 * 16 + 48 * - 49 * - + 89 END * - - COUNT ( * ) * - - ( COUNT ( * ) ) * COALESCE ( 23, + 29 ) + + 12 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8201
SELECT + + 12 AS col1, CAST( + + 72 AS SIGNED ) AS col1
----
12
72

skipif mysql # not compatible
query II rowsort label-8201
SELECT + + 12 AS col1, CAST ( + + 72 AS INTEGER ) AS col1
----
12
72

query II rowsort
SELECT ALL + - 24 * + - 36 + 4 + 70 col1, 17 + - 43 * + 26 * - + ( - 73 ) + 3 + + 7 col0
----
938
-81587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT - CAST( - - COALESCE ( - 1, - ( 96 ) * + - COUNT( * ) * - + ( + 16 ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8203
SELECT - CAST ( - - COALESCE ( - 1, - ( 96 ) * + - COUNT ( * ) * - + ( + 16 ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL COUNT( * ) * 55 + - COUNT( * ) + 32
----
86

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL COUNT ( * ) * 55 + - COUNT ( * ) + 32
----
86

query I rowsort
SELECT - 61 - - 23
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT + COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-8206
SELECT + COUNT ( * ) + + 75
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8207
SELECT - ( - CAST( NULL AS DECIMAL ) ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT - ( - CAST ( NULL AS REAL ) ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 7 + 56
----
63

query I rowsort
SELECT ALL - 47 - + 30
----
-77

query I rowsort
SELECT + 25 * 85
----
2125

query I rowsort
SELECT DISTINCT 31 * + 3 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT NULLIF ( - 91, + - 0 - + COUNT( ALL + 49 ) + 94 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT NULLIF ( - 91, + - 0 - + COUNT ( ALL + 49 ) + 94 ) AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT ALL ( CAST( - 91 AS SIGNED ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL ( CAST ( - 91 AS INTEGER ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT - COUNT( ALL - + ( - 15 ) ) + + ( - 41 )
----
-42

skipif mysql # not compatible
query I rowsort label-8214
SELECT - COUNT ( ALL - + ( - 15 ) ) + + ( - 41 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT ALL 83 - 1 * + - 35, COUNT( - + 74 ) AS col2
----
118
1

skipif mysql # not compatible
query II rowsort label-8215
SELECT ALL 83 - 1 * + - 35, COUNT ( - + 74 ) AS col2
----
118
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - 71 * - COUNT( * ) col2
----
71

skipif mysql # not compatible
query I rowsort label-8216
SELECT - 71 * - COUNT ( * ) col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT NULLIF ( 58, - + ( + - COUNT( * ) ) )
----
58

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT NULLIF ( 58, - + ( + - COUNT ( * ) ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT ALL CASE 6 WHEN + + 72 THEN + 51 ELSE CAST( NULL AS SIGNED ) * + + CASE + - 9 WHEN + - MIN( ALL + 5 ) * + + 33 THEN - + NULLIF ( 99, - 52 * COUNT( * ) + + 29 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL CASE 6 WHEN + + 72 THEN + 51 ELSE CAST ( NULL AS INTEGER ) * + + CASE + - 9 WHEN + - MIN ( ALL + 5 ) * + + 33 THEN - + NULLIF ( 99, - 52 * COUNT ( * ) + + 29 ) END END
----
NULL

query I rowsort
SELECT ALL ( + 93 )
----
93

query I rowsort
SELECT DISTINCT ( 97 )
----
97

query I rowsort
SELECT - 35 * 36 AS col2
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8222
SELECT ALL CAST( + COUNT( ALL + + 58 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL CAST ( + COUNT ( ALL + + 58 ) AS INTEGER )
----
1

query I rowsort
SELECT - 58 + - - 64 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8224
SELECT DISTINCT - COUNT( * ) * - 92 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT - COUNT ( * ) * - 92 + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + ( - - 88 ) * + + 16 + + 71 + + - 30 - 93 + + CASE 23 WHEN + 84 THEN - 18 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8226
SELECT DISTINCT + + MIN( + 95 ) AS col0, 55
----
95
55

skipif mysql # not compatible
query II rowsort label-8226
SELECT DISTINCT + + MIN ( + 95 ) AS col0, 55
----
95
55

onlyif mysql # DIV for integer division: 
query II rowsort label-8227
SELECT 91 DIV 31 + + - 66, 17 col1
----
-64
17

skipif mysql # not compatible
query II rowsort label-8227
SELECT 91 / 31 + + - 66, 17 col1
----
-64
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8228
SELECT - 73 * - 27 * ( ( 84 ) ) * + 97 - + - 56 AS col1, - 3 * MAX( - - CAST( + 26 AS SIGNED ) )
----
16059764
-78

skipif mysql # not compatible
query II rowsort label-8228
SELECT - 73 * - 27 * ( ( 84 ) ) * + 97 - + - 56 AS col1, - 3 * MAX ( - - CAST ( + 26 AS INTEGER ) )
----
16059764
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT DISTINCT + + COUNT( * ) DIV + - 10 + - - COUNT( 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT + + COUNT ( * ) / + - 10 + - - COUNT ( 62 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8230
SELECT - - COALESCE ( MIN( DISTINCT + 1 ), 37 + + - 38 + - AVG ( 78 ) * 10, + 95 ) DIV + 78, - 98 + + 80 + + + CAST( NULL AS DECIMAL ) * - 65 DIV COUNT( * ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8230
SELECT - - COALESCE ( MIN ( DISTINCT + 1 ), 37 + + - 38 + - AVG ( 78 ) * 10, + 95 ) / + 78, - 98 + + 80 + + + CAST ( NULL AS REAL ) * - 65 / COUNT ( * ) AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL + COUNT( DISTINCT - 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + COUNT ( DISTINCT - 48 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8232
SELECT ALL - COUNT( * ) DIV - 33 + + 2 + + + 94 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - COUNT ( * ) / - 33 + + 2 + + + 94 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL 56 / + - 24 + CAST( NULL AS SIGNED ) + + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL 56 / + - 24 + CAST ( NULL AS INTEGER ) + + + 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT DISTINCT - 70 DIV 94 + + 80 + - 14 * + + 19
----
-186

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - 70 / 94 + + 80 + - 14 * + + 19
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ALL + + COUNT( * ) * ( 60 ) + + 58
----
118

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + + COUNT ( * ) * ( 60 ) + + 58
----
118

query I rowsort
SELECT ALL + ( - + 7 ) AS col2
----
-7

query II rowsort
SELECT DISTINCT - 78 * + ( 96 ), - 11 col0
----
-7488
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT 8 + + MAX( 38 ) + + - 73
----
-27

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT 8 + + MAX ( 38 ) + + - 73
----
-27

query I rowsort
SELECT 43 * + 72
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT 84 + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT 84 + COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8241
SELECT + 80 AS col1, - MAX( 26 ) - CAST( 6 AS SIGNED ) col1
----
80
-32

skipif mysql # not compatible
query II rowsort label-8241
SELECT + 80 AS col1, - MAX ( 26 ) - CAST ( 6 AS INTEGER ) col1
----
80
-32

query II rowsort
SELECT ALL 33, 1 col1
----
33
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8243
SELECT ALL 36, + ( + 75 ) DIV + - 79 AS col2
----
36
0

skipif mysql # not compatible
query II rowsort label-8243
SELECT ALL 36, + ( + 75 ) / + - 79 AS col2
----
36
0

query II rowsort
SELECT 78 AS col1, 21
----
78
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8245
SELECT DISTINCT - 34 DIV - COUNT( - - 57 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT - 34 / - COUNT ( - - 57 ) AS col0
----
34

query I rowsort
SELECT 58 * - 22 col0
----
-1276

query II rowsort
SELECT 91, 25 col2
----
91
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT SUM( + 26 ) - COUNT( * ) - + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8248
SELECT SUM ( + 26 ) - COUNT ( * ) - + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT COALESCE ( + COUNT( * ), + 32, + - 12 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8249
SELECT COALESCE ( + COUNT ( * ), + 32, + - 12 ) * - COUNT ( * )
----
-1

query I rowsort
SELECT 10 * - 80
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL COUNT( * ) * + 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL COUNT ( * ) * + 3 col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT DISTINCT 41 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT 41 / 48
----
0

query II rowsort
SELECT DISTINCT 65 col1, 19 + - ( 34 ) AS col2
----
65
-15

query I rowsort
SELECT DISTINCT 35 * - 53 * + 84 AS col1
----
-155820

query I rowsort
SELECT ALL 2 * - 24 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT ALL - + 34 + + SUM( + COALESCE ( - - 10, + 68 + + - 7 ) ) AS col2, COUNT( * ) + - 9 AS col0
----
-24
-8

skipif mysql # not compatible
query II rowsort label-8256
SELECT ALL - + 34 + + SUM ( + COALESCE ( - - 10, + 68 + + - 7 ) ) AS col2, COUNT ( * ) + - 9 AS col0
----
-24
-8

query II rowsort
SELECT - 46 - + 63 + 37 AS col0, - 30 * + - 83 col2
----
-72
2490

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL COUNT( * ) * + 7
----
7

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( * ) * + 7
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8259
SELECT 53, 71 * COUNT( * ) AS col0
----
53
71

skipif mysql # not compatible
query II rowsort label-8259
SELECT 53, 71 * COUNT ( * ) AS col0
----
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL - - COUNT( * ) + + COUNT( * ) * 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) * 65 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT - ( - SUM( ALL - 72 ) ) + 27 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8261
SELECT - ( - SUM ( ALL - 72 ) ) + 27 AS col1
----
-45

query I rowsort
SELECT + 22 * + 45
----
990

query I rowsort
SELECT 26 + 72
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT - - 67 * + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT - - 67 * + - COUNT ( * )
----
-67

query I rowsort
SELECT ALL + 7 + 19
----
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8266
SELECT ALL - CAST( + + 90 AS SIGNED ) + - 74 * 71 DIV - - 93 col1
----
-146

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - CAST ( + + 90 AS INTEGER ) + - 74 * 71 / - - 93 col1
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT ALL + - 54 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + - 54 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 95 + + 57 * 34 AS col1
----
2033

query III rowsort
SELECT ALL + 41 * + + 34 * - + 30 AS col1, 77 AS col0, - 92 AS col2
----
-41820
77
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT - COUNT( * ) col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8270
SELECT - COUNT ( * ) col1, COUNT ( * )
----
-1
1

query I rowsort
SELECT + 12 * + + ( - NULLIF ( 55, + 67 * - 41 + - 65 - - - 3 * + 97 - - 55 / - 13 - + 10 ) ) + - 30 col0
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - COUNT( * ) * 55 + + + 82 * - - 9 + + 56 AS col0
----
739

skipif mysql # not compatible
query I rowsort label-8272
SELECT - COUNT ( * ) * 55 + + + 82 * - - 9 + + 56 AS col0
----
739

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT DISTINCT + 47 - + 83 AS col0, - MAX( + - ( ( - - 35 ) ) ) * - SUM( + 57 )
----
-36
-1995

skipif mysql # not compatible
query II rowsort label-8273
SELECT DISTINCT + 47 - + 83 AS col0, - MAX ( + - ( ( - - 35 ) ) ) * - SUM ( + 57 )
----
-36
-1995

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8274
SELECT DISTINCT + 38 DIV - 1 AS col0, - MIN( DISTINCT + 57 ) AS col0
----
-38
-57

skipif mysql # not compatible
query II rowsort label-8274
SELECT DISTINCT + 38 / - 1 AS col0, - MIN ( DISTINCT + 57 ) AS col0
----
-38
-57

query I rowsort
SELECT ALL + 47 - + - COALESCE ( - 4, - 21 ) col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8276
SELECT ( - COALESCE ( CASE - COUNT( * ) WHEN COUNT( * ) + - + 49 * + 14 THEN - 3 WHEN - 17 + 76 THEN NULL WHEN 52 THEN + SUM( - CAST( NULL AS SIGNED ) ) * + 34 + - 43 + + - 45 + 0 * - SUM( ALL - 58 ) * - COALESCE ( + + COUNT( * ), + 81, 58 ) DIV COUNT( * ) * 45 + 4 + - 0 * - 18 END, 29 ) ) * + COALESCE ( 85 * - 97, MIN( ALL - 7 ) * - ( + 2 * 56 ) ) + - 10 AS col1
----
239095

skipif mysql # not compatible
query I rowsort label-8276
SELECT ( - COALESCE ( CASE - COUNT ( * ) WHEN COUNT ( * ) + - + 49 * + 14 THEN - 3 WHEN - 17 + 76 THEN NULL WHEN 52 THEN + SUM ( - CAST ( NULL AS INTEGER ) ) * + 34 + - 43 + + - 45 + 0 * - SUM ( ALL - 58 ) * - COALESCE ( + + COUNT ( * ), + 81, 58 ) / COUNT ( * ) * 45 + 4 + - 0 * - 18 END, 29 ) ) * + COALESCE ( 85 * - 97, MIN ( ALL - 7 ) * - ( + 2 * 56 ) ) + - 10 AS col1
----
239095

query I rowsort
SELECT ALL 89 * 11
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL MAX( ALL + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL MAX ( ALL + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT SUM( DISTINCT + 0 ) + 32 + - - 59
----
91

skipif mysql # not compatible
query I rowsort label-8279
SELECT SUM ( DISTINCT + 0 ) + 32 + - - 59
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL 36 * + CAST( NULL AS SIGNED ) / - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL 36 * + CAST ( NULL AS INTEGER ) / - 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT 74 + + 38 + + ( - COUNT( * ) ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-8281
SELECT 74 + + 38 + + ( - COUNT ( * ) ) AS col1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL 53 * - CAST( + 11 AS SIGNED ) AS col1
----
-583

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL 53 * - CAST ( + 11 AS INTEGER ) AS col1
----
-583

query I rowsort
SELECT 84 + - - 99
----
183

query I rowsort
SELECT 19 - - 43
----
62

query I rowsort
SELECT ALL + 58 * - 28 AS col0
----
-1624

query I rowsort
SELECT ALL 82 + + + 84 AS col0
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8287
SELECT 9 + - CASE 31 WHEN + COUNT( * ) - + 48 THEN + CAST( + 90 AS SIGNED ) WHEN + 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT 9 + - CASE 31 WHEN + COUNT ( * ) - + 48 THEN + CAST ( + 90 AS INTEGER ) WHEN + 36 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT COALESCE ( + - 7, - 5 * + COUNT( * ) ) + + - 47 - 99 - - 24 AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-8288
SELECT COALESCE ( + - 7, - 5 * + COUNT ( * ) ) + + - 47 - 99 - - 24 AS col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL - COUNT( * ) * + + COUNT( * ) + - + 51 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) + - + 51 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT COUNT( * ) DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT COUNT ( * ) / - 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT + 30 + + COUNT( * ) + - MIN( + 10 ) * - ( - COUNT( * ) ) + - 72 * - 85 AS col1
----
6141

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + 30 + + COUNT ( * ) + - MIN ( + 10 ) * - ( - COUNT ( * ) ) + - 72 * - 85 AS col1
----
6141

query I rowsort
SELECT ALL + 71 + - 54 * + 20 AS col2
----
-1009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT 62 + + 81 - + CAST( - 87 AS SIGNED )
----
230

skipif mysql # not compatible
query I rowsort label-8293
SELECT 62 + + 81 - + CAST ( - 87 AS INTEGER )
----
230

query I rowsort
SELECT + 97 * + 79 * 85 * + 16 + + 63 + - + 11
----
10421732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT - CAST( - 2 AS SIGNED ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8295
SELECT - CAST ( - 2 AS INTEGER ) col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT COUNT( * ) DIV - SUM( - 26 ) * + + 54 * - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8296
SELECT COUNT ( * ) / - SUM ( - 26 ) * + + 54 * - 84 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT ALL + CAST( NULL AS SIGNED ) + + 47 * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + CAST ( NULL AS INTEGER ) + + 47 * + 37 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 57 ) + 79 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT NULLIF ( - 85, - 81 * - MAX( 36 ) + - - 86 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8299
SELECT NULLIF ( - 85, - 81 * - MAX ( 36 ) + - - 86 ) AS col0
----
-85

query II rowsort
SELECT ALL 16 * - 41 AS col2, + ( 70 ) * 39 + + 5
----
-656
2735

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT COUNT( * ) * - - 56 * + + COUNT( * ) + + 27 + - COUNT( * ) * + 84 + - + 64 * + + 75
----
-4801

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT COUNT ( * ) * - - 56 * + + COUNT ( * ) + + 27 + - COUNT ( * ) * + 84 + - + 64 * + + 75
----
-4801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT + - ( - COALESCE ( + CAST( NULL AS SIGNED ), + COALESCE ( 23, MAX( + - 27 ), 27 ) ) ) col0
----
23

skipif mysql # not compatible
query I rowsort label-8302
SELECT + - ( - COALESCE ( + CAST ( NULL AS INTEGER ), + COALESCE ( 23, MAX ( + - 27 ), 27 ) ) ) col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT ( 77 ) * SUM( ALL NULLIF ( + 75, - 92 ) ) + - 66 AS col1, MAX( ALL - COALESCE ( 55, - - 88 + - 70 + - ( 83 ) - + - ( + 36 ) * + 2 * - 20 * + COALESCE ( + 51, - - 22 * 48 + 2 ) ) ) + + COUNT( * ) col2
----
5709
-54

skipif mysql # not compatible
query II rowsort label-8303
SELECT ( 77 ) * SUM ( ALL NULLIF ( + 75, - 92 ) ) + - 66 AS col1, MAX ( ALL - COALESCE ( 55, - - 88 + - 70 + - ( 83 ) - + - ( + 36 ) * + 2 * - 20 * + COALESCE ( + 51, - - 22 * 48 + 2 ) ) ) + + COUNT ( * ) col2
----
5709
-54

query I rowsort
SELECT 10 * - 0 AS col2
----
0

query I rowsort
SELECT + - 89 * 42 * 14
----
-52332

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT - 26 * 19 * - ( - MIN( DISTINCT - ( 57 ) ) ) * - 63 - - - 32 + + - 11 + + 32 AS col1
----
-1773965

skipif mysql # not compatible
query I rowsort label-8306
SELECT - 26 * 19 * - ( - MIN ( DISTINCT - ( 57 ) ) ) * - 63 - - - 32 + + - 11 + + 32 AS col1
----
-1773965

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8307
SELECT - + 34 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT - + 34 * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 51 * + 87
----
4437

query I rowsort
SELECT 52 * + + 91 + - 9 + + 63 * + 2 * 96 AS col1
----
16819

query I rowsort
SELECT DISTINCT 72 * - 91 - 98
----
-6650

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT + COALESCE ( COUNT( * ), + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-8311
SELECT + COALESCE ( COUNT ( * ), + 41 )
----
1

query II rowsort
SELECT + 35 AS col2, 44 AS col0
----
35
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT - ( 19 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-8313
SELECT - ( 19 ) / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - 30 * + MIN( - + 34 ) AS col0
----
1020

skipif mysql # not compatible
query I rowsort label-8314
SELECT - 30 * + MIN ( - + 34 ) AS col0
----
1020

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT DISTINCT + COUNT( * ) AS col1, + COUNT( - - 27 ) + - COALESCE ( + 3, 59 + - 70 )
----
1
-2

skipif mysql # not compatible
query II rowsort label-8315
SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( - - 27 ) + - COALESCE ( + 3, 59 + - 70 )
----
1
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8316
SELECT ALL + COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8316
SELECT ALL + COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT 89 * 92 + + NULLIF ( + - 29, + AVG ( ALL + 21 ) ) + + 84 * 96 * - + 6
----
-40225

query I rowsort
SELECT ALL - 26 + - - 48
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL - 89 + SUM( DISTINCT - 43 ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL - 89 + SUM ( DISTINCT - 43 ) AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL MAX( 89 ) + + 64 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL MAX ( 89 ) + + 64 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT ALL - 99 DIV 60 DIV + + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - 99 / 60 / + + 34 AS col2
----
0

query I rowsort
SELECT DISTINCT + 44 + + 53 AS col1
----
97

query II rowsort
SELECT 16, + 5 * + 46 AS col1
----
16
230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT DISTINCT - CASE - 31 WHEN 1 THEN 54 * 86 WHEN + - 84 + 8 THEN NULL END + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - CASE - 31 WHEN 1 THEN 54 * 86 WHEN + - 84 + 8 THEN NULL END + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + COUNT( * ) + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + COUNT ( * ) + - 19
----
-18

query I rowsort
SELECT - ( + - 69 ) - - 27 AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT - CAST( 69 AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8327
SELECT - CAST ( 69 AS INTEGER ) AS col1
----
-69

query II rowsort
SELECT - 9 AS col1, 14
----
-9
14

query I rowsort
SELECT ALL - 51 * + - 36 AS col2
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT - MIN( ALL - ( - - 65 ) ) + COUNT( DISTINCT 76 ) - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-8330
SELECT - MIN ( ALL - ( - - 65 ) ) + COUNT ( DISTINCT 76 ) - COUNT ( * )
----
65

query III rowsort
SELECT + 64 * + 7 + 68 + - 12 * + + 42 AS col0, - 94 AS col0, 55 col0
----
12
-94
55

query II rowsort
SELECT DISTINCT - 66, + 85 AS col2
----
-66
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8333
SELECT - - 10, - MIN( ALL 5 ) + - COUNT( - - NULLIF ( + 26, - 94 ) ) + + 74 AS col0
----
10
68

skipif mysql # not compatible
query II rowsort label-8333
SELECT - - 10, - MIN ( ALL 5 ) + - COUNT ( - - NULLIF ( + 26, - 94 ) ) + + 74 AS col0
----
10
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL COUNT( DISTINCT - 31 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL COUNT ( DISTINCT - 31 ) + COUNT ( * )
----
2

query I rowsort
SELECT + + 79 - + - 91
----
170

query I rowsort
SELECT ALL + ( + 77 )
----
77

query I rowsort
SELECT + - 4 - + 26 col1
----
-30

query I rowsort
SELECT ( - - ( 68 ) ) AS col1
----
68

query I rowsort
SELECT - - ( - - 72 ) * + 85 + - - 98
----
6218

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8340
SELECT + 67 * - COUNT( ALL - CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT + 67 * - COUNT ( ALL - CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL + - CAST( 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + - CAST ( 85 AS INTEGER )
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8342
SELECT 63 DIV - 55 - - ( - 1 ) + - 36 col0, SUM( + 26 ) * - 99 + + - COUNT( * )
----
-38
-2575

skipif mysql # not compatible
query II rowsort label-8342
SELECT 63 / - 55 - - ( - 1 ) + - 36 col0, SUM ( + 26 ) * - 99 + + - COUNT ( * )
----
-38
-2575

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT + - NULLIF ( + 90, - 59 * + ( COUNT( * ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-8343
SELECT + - NULLIF ( + 90, - 59 * + ( COUNT ( * ) ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ( - COUNT( + 88 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8344
SELECT ( - COUNT ( + 88 ) ) AS col1
----
-1

query I rowsort
SELECT ALL 67 * + 22
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + ( - + ( 44 ) ) + + 49 * + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8346
SELECT + ( - + ( 44 ) ) + + 49 * + COUNT ( * ) AS col1
----
5

query I rowsort
SELECT + ( + + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8348
SELECT ALL + NULLIF ( - CAST( - - ( + + ( - 22 ) ) AS SIGNED ), 94 ) AS col1, - 7 - 66
----
22
-73

skipif mysql # not compatible
query II rowsort label-8348
SELECT ALL + NULLIF ( - CAST ( - - ( + + ( - 22 ) ) AS INTEGER ), 94 ) AS col1, - 7 - 66
----
22
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8349
SELECT + 36 * 40 * - ( + NULLIF ( - SUM( ALL + 31 ), - AVG ( 7 ) ) ) + + - 59 DIV COUNT( * )
----
44581

skipif mysql # not compatible
query I rowsort label-8349
SELECT + 36 * 40 * - ( + NULLIF ( - SUM ( ALL + 31 ), - AVG ( 7 ) ) ) + + - 59 / COUNT ( * )
----
44581

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ( COALESCE ( + 28, - COUNT( * ), 73 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8350
SELECT ( COALESCE ( + 28, - COUNT ( * ), 73 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL - COUNT( * ) * - 37 + - 3 + + - 70 + - 85 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - COUNT ( * ) * - 37 + - 3 + + - 70 + - 85 AS col2
----
-121

query I rowsort
SELECT + 12 - 69 col0
----
-57

query I rowsort
SELECT - 88 + + - 99 * 21 AS col0
----
-2167

onlyif mysql # aggregate syntax: 
query III rowsort label-8354
SELECT DISTINCT - 85 * + 15, - 45 * + 62 AS col1, - 10 * + - 1 + + COUNT( * ) + - + 95 AS col1
----
-1275
-2790
-84

skipif mysql # not compatible
query III rowsort label-8354
SELECT DISTINCT - 85 * + 15, - 45 * + 62 AS col1, - 10 * + - 1 + + COUNT ( * ) + - + 95 AS col1
----
-1275
-2790
-84

query I rowsort
SELECT ALL + 19 * - 86 + + - 64 col2
----
-1698

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL + 42 * + + 99 + COUNT( * ) + + + 38 AS col2
----
4197

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + 42 * + + 99 + COUNT ( * ) + + + 38 AS col2
----
4197

query I rowsort
SELECT - 41 + + 17
----
-24

query I rowsort
SELECT + 53 + - NULLIF ( 15, + + 48 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8359
SELECT DISTINCT - CASE + CASE 39 WHEN + + 98 THEN ( + + 1 ) + CAST( NULL AS SIGNED ) WHEN - 11 + + 24 - - - 47 * + - 72 * - 86 THEN - 35 WHEN + 36 * - + 42 + - 26 THEN NULL END WHEN 42 THEN - 20 ELSE NULL END * + + 29 / COUNT( * ) * - 76 + - 55 + 98 + 55 AS col0, CAST( - + SUM( ALL 79 ) AS SIGNED ) AS col1
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-8359
SELECT DISTINCT - CASE + CASE 39 WHEN + + 98 THEN ( + + 1 ) + CAST ( NULL AS INTEGER ) WHEN - 11 + + 24 - - - 47 * + - 72 * - 86 THEN - 35 WHEN + 36 * - + 42 + - 26 THEN NULL END WHEN 42 THEN - 20 ELSE NULL END * + + 29 / COUNT ( * ) * - 76 + - 55 + 98 + 55 AS col0, CAST ( - + SUM ( ALL 79 ) AS INTEGER ) AS col1
----
NULL
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - COUNT( * ) - - 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8360
SELECT - COUNT ( * ) - - 71 AS col1
----
70

query I rowsort
SELECT - 49 - - 42
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL + 39 * - - 23 - - - 99 * + 13 * + + COUNT( * )
----
-390

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + 39 * - - 23 - - - 99 * + 13 * + + COUNT ( * )
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - - 8 + + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8363
SELECT - - 8 + + - COUNT ( * )
----
7

query I rowsort
SELECT ALL 55 * - 47 + 2 AS col0
----
-2583

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT - + 33 + + - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8365
SELECT - + 33 + + - COUNT ( * )
----
-34

query I rowsort
SELECT ALL + - 31 - - 13
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT + 42 + + - ( - 96 ) - + COUNT( * ) AS col1, 36 + + 35
----
137
71

skipif mysql # not compatible
query II rowsort label-8367
SELECT + 42 + + - ( - 96 ) - + COUNT ( * ) AS col1, 36 + + 35
----
137
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - 65 * - ( 14 ) + NULLIF ( - + 89, - - COUNT( * ) ) AS col0
----
821

skipif mysql # not compatible
query I rowsort label-8368
SELECT - 65 * - ( 14 ) + NULLIF ( - + 89, - - COUNT ( * ) ) AS col0
----
821

query I rowsort
SELECT ALL + 62 * - ( - - 30 ) * + - 34
----
63240

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT COUNT( * ) + + 24 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8370
SELECT COUNT ( * ) + + 24 AS col2
----
25

query II rowsort
SELECT - + 27, + 94 col1
----
-27
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT - + MAX( DISTINCT 24 ) * 61 AS col2
----
-1464

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - + MAX ( DISTINCT 24 ) * 61 AS col2
----
-1464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8373
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 59 col2
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-8373
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 59 col2
----
NULL
-59

query I rowsort
SELECT + 31 * + 88 AS col2
----
2728

query II rowsort
SELECT DISTINCT 1, - 35 + - - 33 + 94 + - - 42 AS col1
----
1
134

query II rowsort
SELECT DISTINCT - 9, - 70 AS col1
----
-9
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8377
SELECT DISTINCT - 52 col2, - MAX( ALL + 81 ) AS col1
----
-52
-81

skipif mysql # not compatible
query II rowsort label-8377
SELECT DISTINCT - 52 col2, - MAX ( ALL + 81 ) AS col1
----
-52
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT 59 DIV - 23 * + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8378
SELECT 59 / - 23 * + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL COUNT( * ) + 69 col0
----
70

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL COUNT ( * ) + 69 col0
----
70

query I rowsort
SELECT 71 * - 94 - 1 + 77 AS col1
----
-6598

query I rowsort
SELECT ALL 13 * + - 43 * + 83
----
-46397

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT COUNT( * ) + - + 8 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8382
SELECT COUNT ( * ) + - + 8 AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8383
SELECT DISTINCT 31 + + 28 DIV + COUNT( * ) DIV COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT 31 + + 28 / + COUNT ( * ) / COUNT ( * )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT DISTINCT - 16 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - 16 / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT COUNT( * ) + 80 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT COUNT ( * ) + 80 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( + + 40, - 96 + - 68 * - 96, + 94 + + COUNT( * ) * - 8 / - CASE 32 WHEN - + 40 / 97 THEN 97 + + CASE - 5 WHEN 18 THEN - 14 - + - COUNT( * ) + + - 33 + 3 ELSE + 77 * - + 60 END + 4 * - 66 + + - 39 ELSE 8 * + 74 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + + 40, - 96 + - 68 * - 96, + 94 + + COUNT ( * ) * - 8 / - CASE 32 WHEN - + 40 / 97 THEN 97 + + CASE - 5 WHEN 18 THEN - 14 - + - COUNT ( * ) + + - 33 + 3 ELSE + 77 * - + 60 END + 4 * - 66 + + - 39 ELSE 8 * + 74 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8387
SELECT DISTINCT 6 + + + COUNT( * ), + 12 AS col2
----
7
12

skipif mysql # not compatible
query II rowsort label-8387
SELECT DISTINCT 6 + + + COUNT ( * ), + 12 AS col2
----
7
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT 27 * - ( + 7 ) * - 23 + COUNT( * ) + + + 51 * - 77 * 57
----
-219491

skipif mysql # not compatible
query I rowsort label-8388
SELECT 27 * - ( + 7 ) * - 23 + COUNT ( * ) + + + 51 * - 77 * 57
----
-219491

query I rowsort
SELECT DISTINCT - - 42 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL - 18 - + 3 + - 37 + + - 58 * MAX( - - 19 ) + - 21 / 54 / - + 47 * - NULLIF ( + + CASE - + AVG ( DISTINCT 64 ) WHEN 0 THEN 71 END, - 39 + + 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL - 18 - + 3 + - 37 + + - 58 * MAX ( - - 19 ) + - 21 / 54 / - + 47 * - NULLIF ( + + CASE - + AVG ( DISTINCT 64 ) WHEN 0 THEN 71 END, - 39 + + 23 ) AS col2
----
NULL

query I rowsort
SELECT 78 * - 94
----
-7332

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT SUM( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8392
SELECT SUM ( DISTINCT 19 )
----
19

query I rowsort
SELECT ALL - ( COALESCE ( + 94, - + 1 ) )
----
-94

query I rowsort
SELECT ALL - 68 * + 38 * - 95
----
245480

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL 83 - MAX( 32 ) * - 25 AS col0
----
883

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL 83 - MAX ( 32 ) * - 25 AS col0
----
883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT + 22 * CASE - AVG ( + - NULLIF ( - ( + + 23 ), + - 58 ) ) WHEN CAST( NULL AS SIGNED ) * + 48 / - NULLIF ( + + COUNT( * ), - 26 ) THEN - ( + 63 ) ELSE + 34 + 24 + - 43 + - 91 END * - COUNT( * ) + + ( - NULLIF ( + - 58, + 66 ) ) - COUNT( * ) * - COUNT( * ) * + SUM( ALL - 45 ) + - 96 AS col2
----
1589

skipif mysql # not compatible
query I rowsort label-8396
SELECT + 22 * CASE - AVG ( + - NULLIF ( - ( + + 23 ), + - 58 ) ) WHEN CAST ( NULL AS INTEGER ) * + 48 / - NULLIF ( + + COUNT ( * ), - 26 ) THEN - ( + 63 ) ELSE + 34 + 24 + - 43 + - 91 END * - COUNT ( * ) + + ( - NULLIF ( + - 58, + 66 ) ) - COUNT ( * ) * - COUNT ( * ) * + SUM ( ALL - 45 ) + - 96 AS col2
----
1589

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT - 66 - - 35 DIV - + 48 + 3
----
-63

skipif mysql # not compatible
query I rowsort label-8397
SELECT - 66 - - 35 / - + 48 + 3
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT ALL - - 16 * + COUNT( * ) DIV + 96 * + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - - 16 * + COUNT ( * ) / + 96 * + 5 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT COUNT( * ) + + 22 - 14 + COUNT( DISTINCT - CAST( - 46 AS SIGNED ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8399
SELECT COUNT ( * ) + + 22 - 14 + COUNT ( DISTINCT - CAST ( - 46 AS INTEGER ) ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT + 88 * + - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-8400
SELECT + 88 * + - COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL COALESCE ( NULLIF ( - 5, - + MAX( 31 ) * + - 84 + - COUNT( * ) + - 27 ), + 39 - + - 24, 97 )
----
-5

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL COALESCE ( NULLIF ( - 5, - + MAX ( 31 ) * + - 84 + - COUNT ( * ) + - 27 ), + 39 - + - 24, 97 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT + 6 * - + AVG ( - 99 ) / + + CAST( NULL AS SIGNED ) + + - NULLIF ( COUNT( * ), + COALESCE ( + - 53, + 79, 72 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT + 6 * - + AVG ( - 99 ) / + + CAST ( NULL AS INTEGER ) + + - NULLIF ( COUNT ( * ), + COALESCE ( + - 53, + 79, 72 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT ALL + COUNT( * ) DIV + - 37 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + COUNT ( * ) / + - 37 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 18 - 33 + + 0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + - ( CASE ( COALESCE ( - 71, + 76 + 95, - 25 ) ) WHEN + COALESCE ( - 75, + - 84 ) * - COUNT( * ) + - 74 - 79 THEN 2 * + COUNT( * ) WHEN + + 27 THEN + - 13 WHEN - COUNT( * ) THEN COALESCE ( + MIN( DISTINCT + 50 ), - 31 ) END ) + SUM( 32 ) + + COUNT( * ) - - 24 + + 91 / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + - ( CASE ( COALESCE ( - 71, + 76 + 95, - 25 ) ) WHEN + COALESCE ( - 75, + - 84 ) * - COUNT ( * ) + - 74 - 79 THEN 2 * + COUNT ( * ) WHEN + + 27 THEN + - 13 WHEN - COUNT ( * ) THEN COALESCE ( + MIN ( DISTINCT + 50 ), - 31 ) END ) + SUM ( 32 ) + + COUNT ( * ) - - 24 + + 91 / + 84
----
NULL

query I rowsort
SELECT 64 - - - 94 * + 17 AS col1
----
-1534

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT DISTINCT NULLIF ( + - 70, COUNT( * ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT NULLIF ( + - 70, COUNT ( * ) ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8408
SELECT 68 + CASE 96 WHEN COALESCE ( 43, + 0 / - + 99 + 78, 70 + - 34 ) + COUNT( - 70 ) * + 66 * 60 / - MIN( DISTINCT + 82 ) * - + MIN( DISTINCT + - 48 ) - + - 26 + 42 - - + 51 THEN - 44 + + + 29 WHEN 59 THEN 97 / ( - + ( - CASE ( + 43 ) WHEN 42 - COALESCE ( 69, + 29 + 58 ) THEN 97 + - CAST( NULL AS SIGNED ) * - 52 ELSE NULL END ) ) WHEN - 86 * 66 THEN NULL END - + NULLIF ( 6, - COUNT( * ) * COUNT( * ) + 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT 68 + CASE 96 WHEN COALESCE ( 43, + 0 / - + 99 + 78, 70 + - 34 ) + COUNT ( - 70 ) * + 66 * 60 / - MIN ( DISTINCT + 82 ) * - + MIN ( DISTINCT + - 48 ) - + - 26 + 42 - - + 51 THEN - 44 + + + 29 WHEN 59 THEN 97 / ( - + ( - CASE ( + 43 ) WHEN 42 - COALESCE ( 69, + 29 + 58 ) THEN 97 + - CAST ( NULL AS INTEGER ) * - 52 ELSE NULL END ) ) WHEN - 86 * 66 THEN NULL END - + NULLIF ( 6, - COUNT ( * ) * COUNT ( * ) + 97 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT ALL - 30 + - - 34 DIV ( - + 64 )
----
-30

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - 30 + - - 34 / ( - + 64 )
----
-30

query I rowsort
SELECT 75 * 90
----
6750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT 78 + - - COALESCE ( - CAST( NULL AS SIGNED ), + 61 * + - COUNT( * ), - - 13 )
----
17

skipif mysql # not compatible
query I rowsort label-8411
SELECT 78 + - - COALESCE ( - CAST ( NULL AS INTEGER ), + 61 * + - COUNT ( * ), - - 13 )
----
17

query II rowsort
SELECT + 75 AS col2, - 41
----
75
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT ( + + 37 ) * + CASE + 15 WHEN + 4 + 23 * 35 THEN 10 * - + COUNT( * ) ELSE + + 27 END + + COUNT( * ) + 91 + 99 * 27 + 26
----
3790

skipif mysql # not compatible
query I rowsort label-8413
SELECT ( + + 37 ) * + CASE + 15 WHEN + 4 + 23 * 35 THEN 10 * - + COUNT ( * ) ELSE + + 27 END + + COUNT ( * ) + 91 + 99 * 27 + 26
----
3790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8414
SELECT ALL - COALESCE ( + 4, 69 * CASE - COUNT( * ) WHEN + 8 THEN NULL ELSE 87 + MIN( - 85 ) + + 32 * - 99 END + + 47 ) * MIN( DISTINCT + 26 ) + + + ( - + 79 ) + - + 22 DIV COUNT( * ) + ( - COUNT( * ) ) + + 49
----
-157

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - COALESCE ( + 4, 69 * CASE - COUNT ( * ) WHEN + 8 THEN NULL ELSE 87 + MIN ( - 85 ) + + 32 * - 99 END + + 47 ) * MIN ( DISTINCT + 26 ) + + + ( - + 79 ) + - + 22 / COUNT ( * ) + ( - COUNT ( * ) ) + + 49
----
-157

onlyif mysql # aggregate syntax: 
query II rowsort label-8415
SELECT COUNT( * ), 64 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-8415
SELECT COUNT ( * ), 64 AS col2
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL + COUNT( * ) * 15 + + - 7 + - + 54 * - 42 AS col2
----
2276

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL + COUNT ( * ) * 15 + + - 7 + - + 54 * - 42 AS col2
----
2276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8417
SELECT DISTINCT - 71, COUNT( * ) DIV COALESCE ( - 21, + 75, + CAST( + 58 AS SIGNED ) * - 72 DIV - COUNT( * ) ) col2
----
-71
0

skipif mysql # not compatible
query II rowsort label-8417
SELECT DISTINCT - 71, COUNT ( * ) / COALESCE ( - 21, + 75, + CAST ( + 58 AS INTEGER ) * - 72 / - COUNT ( * ) ) col2
----
-71
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8418
SELECT 19 DIV - - ( 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8418
SELECT 19 / - - ( 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL + CASE + + 59 WHEN - 34 / ( - - CASE + + ( + 98 ) WHEN + + 69 * + AVG ( DISTINCT 50 ) * + - 14 / + COUNT( * ) * + - 51 THEN - 52 WHEN + 25 THEN NULL WHEN - 39 THEN NULL ELSE NULL END ) * + - 67 THEN + - 43 + - 26 - + 13 + 42 ELSE - 36 END * + COUNT( * ) + + - MAX( 48 ) + - - 10 * + + COUNT( * ) + + COALESCE ( - MAX( + NULLIF ( + ( - 80 ), 95 ) ), - ( - 79 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + CASE + + 59 WHEN - 34 / ( - - CASE + + ( + 98 ) WHEN + + 69 * + AVG ( DISTINCT 50 ) * + - 14 / + COUNT ( * ) * + - 51 THEN - 52 WHEN + 25 THEN NULL WHEN - 39 THEN NULL ELSE NULL END ) * + - 67 THEN + - 43 + - 26 - + 13 + 42 ELSE - 36 END * + COUNT ( * ) + + - MAX ( 48 ) + - - 10 * + + COUNT ( * ) + + COALESCE ( - MAX ( + NULLIF ( + ( - 80 ), 95 ) ), - ( - 79 ) ) AS col2
----
6

query I rowsort
SELECT 3 * 32 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT MIN( - + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8421
SELECT MIN ( - + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT - 83 * - - COUNT( * ) + - - COUNT( * ) col1, 59
----
-82
59

skipif mysql # not compatible
query II rowsort label-8422
SELECT - 83 * - - COUNT ( * ) + - - COUNT ( * ) col1, 59
----
-82
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8423
SELECT COUNT( * ) * 84 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT COUNT ( * ) * 84 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8424
SELECT + COUNT( * ), + ( - - COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-8424
SELECT + COUNT ( * ), + ( - - COUNT ( * ) )
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT 68 DIV - + 29 + 46
----
44

skipif mysql # not compatible
query I rowsort label-8425
SELECT 68 / - + 29 + 46
----
44

query I rowsort
SELECT ALL 17 - + 67 + + 9 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8427
SELECT ALL CASE NULLIF ( - ( + COUNT( * ) ), + - 36 * 9 + + - MAX( - 28 ) + + COUNT( 80 ) ) WHEN + + 78 * - + 61 + - 0 + 42 + - 88 THEN + - COUNT( * ) ELSE ( + + ( + - 8 ) ) DIV 82 END * 32 * + 63
----
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL CASE NULLIF ( - ( + COUNT ( * ) ), + - 36 * 9 + + - MAX ( - 28 ) + + COUNT ( 80 ) ) WHEN + + 78 * - + 61 + - 0 + 42 + - 88 THEN + - COUNT ( * ) ELSE ( + + ( + - 8 ) ) / 82 END * 32 * + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT COUNT( * ) + + 22 col0
----
23

skipif mysql # not compatible
query I rowsort label-8428
SELECT COUNT ( * ) + + 22 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL + CASE 95 WHEN + 97 THEN NULL WHEN + - 7 + COUNT( * ) / - - 51 THEN 23 * + 52 ELSE NULL END / - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + CASE 95 WHEN + 97 THEN NULL WHEN + - 7 + COUNT ( * ) / - - 51 THEN 23 * + 52 ELSE NULL END / - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8430
SELECT COUNT( * ) + 83 DIV + + 56 col0, - COUNT( * ) * + 6
----
2
-6

skipif mysql # not compatible
query II rowsort label-8430
SELECT COUNT ( * ) + 83 / + + 56 col0, - COUNT ( * ) * + 6
----
2
-6

query I rowsort
SELECT DISTINCT 11 * 4 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT 92 + 47 * - 88 * - - 17 * COUNT( + 73 )
----
-70220

skipif mysql # not compatible
query I rowsort label-8432
SELECT 92 + 47 * - 88 * - - 17 * COUNT ( + 73 )
----
-70220

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL + 61 - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL + 61 - COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL - CASE - + 1 WHEN - COUNT( * ) THEN NULL WHEN + 85 THEN + + 33 + - + 44 ELSE - 77 END * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - CASE - + 1 WHEN - COUNT ( * ) THEN NULL WHEN + 85 THEN + + 33 + - + 44 ELSE - 77 END * 66 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8435
SELECT - - 81 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-8435
SELECT - - 81 / - 59
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + + COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT + + COUNT ( * ) + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + + 0 * + 24 * - 86 - - - 90
----
-90

query I rowsort
SELECT + - 31 + 65 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + CASE - 99 WHEN + ( + + ( - SUM( + 16 ) ) ) THEN NULL ELSE - + 38 END * 15 + 25 - - 85 * - - COUNT( * ) + 90 AS col1
----
-370

skipif mysql # not compatible
query I rowsort label-8439
SELECT + CASE - 99 WHEN + ( + + ( - SUM ( + 16 ) ) ) THEN NULL ELSE - + 38 END * 15 + 25 - - 85 * - - COUNT ( * ) + 90 AS col1
----
-370

query I rowsort
SELECT + 86 * + ( - - 37 ) * + ( - 88 ) * + + COALESCE ( ( 90 ), - + 32 + + 96 ) AS col1
----
-25201440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8441
SELECT + 13 + + COUNT( * ) DIV + + 43 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8441
SELECT + 13 + + COUNT ( * ) / + + 43 AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT ALL - 31 col2, 9 * COUNT( * )
----
-31
9

skipif mysql # not compatible
query II rowsort label-8442
SELECT ALL - 31 col2, 9 * COUNT ( * )
----
-31
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT - 46 AS col0, ( + COUNT( + 89 ) ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-8443
SELECT - 46 AS col0, ( + COUNT ( + 89 ) ) col2
----
-46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - 27 + 52 - ( MIN( DISTINCT + 45 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8444
SELECT - 27 + 52 - ( MIN ( DISTINCT + 45 ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL SUM( ALL 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL SUM ( ALL 18 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL - 93 + CAST( - - ( + 52 ) AS SIGNED ) + 89 col2
----
48

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - 93 + CAST ( - - ( + 52 ) AS INTEGER ) + 89 col2
----
48

query II rowsort
SELECT - 80, 48 AS col1
----
-80
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL MIN( DISTINCT + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL MIN ( DISTINCT + 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8449
SELECT ALL 60 + - - 59 AS col1, + 13 * CAST( NULL AS SIGNED ) * - ( + COALESCE ( 99, 92 ) ) * + 63 * + 67 + 49 AS col1
----
119
NULL

skipif mysql # not compatible
query II rowsort label-8449
SELECT ALL 60 + - - 59 AS col1, + 13 * CAST ( NULL AS INTEGER ) * - ( + COALESCE ( 99, 92 ) ) * + 63 * + 67 + 49 AS col1
----
119
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT DISTINCT + 53 DIV - ( - + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT + 53 / - ( - + 44 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT - 66 + + 48 DIV + 89
----
-66

skipif mysql # not compatible
query I rowsort label-8451
SELECT - 66 + + 48 / + 89
----
-66

query I rowsort
SELECT - 24 * 32 AS col0
----
-768

query I rowsort
SELECT ALL - 26 * - 91 + + - 26
----
2340

query I rowsort
SELECT - 12 * - 92 AS col1
----
1104

query I rowsort
SELECT ALL + ( - 48 ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8456
SELECT DISTINCT - 43 * + - 41 * + 11 - + + 84 + - COUNT( * ) + + - SUM( - 71 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT - 43 * + - 41 * + 11 - + + 84 + - COUNT ( * ) + + - SUM ( - 71 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT ( CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT + SUM( - 58 ) * 44 AS col2
----
-2552

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + SUM ( - 58 ) * 44 AS col2
----
-2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8459
SELECT ALL + ( + CAST( - + COALESCE ( 63, + 58 * + 23 ) AS SIGNED ) ) * + NULLIF ( + 50, - 31 + + ( - - CAST( + - 86 AS SIGNED ) ) - + ( + - 74 ) + ( + CAST( - NULLIF ( - - ( - 19 ), 29 ) AS SIGNED ) ) * + + 14 + - SUM( + 8 ) )
----
-3150

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL + ( + CAST ( - + COALESCE ( 63, + 58 * + 23 ) AS INTEGER ) ) * + NULLIF ( + 50, - 31 + + ( - - CAST ( + - 86 AS INTEGER ) ) - + ( + - 74 ) + ( + CAST ( - NULLIF ( - - ( - 19 ), 29 ) AS INTEGER ) ) * + + 14 + - SUM ( + 8 ) )
----
-3150

query I rowsort
SELECT + 3 * - + 77 - + + 33 AS col2
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL + + SUM( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + + SUM ( 59 ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8462
SELECT DISTINCT + COALESCE ( + 81, + COUNT( * ) + 30 ) / 16 * - CASE 43 WHEN 66 THEN + 81 * + 37 - + 6 + + MIN( - 25 ) ELSE 63 END * - + 34 + - COUNT( ALL 58 ) + - 10 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + COALESCE ( + 81, + COUNT ( * ) + 30 ) / 16 * - CASE 43 WHEN 66 THEN + 81 * + 37 - + 6 + + MIN ( - 25 ) ELSE 63 END * - + 34 + - COUNT ( ALL 58 ) + - 10 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8463
SELECT - 61 * - - CAST( - COALESCE ( - + 54, + 72 + - + CAST( + 35 AS SIGNED ) ) AS SIGNED ) * - - CASE ( - NULLIF ( + 46, + 56 + + - 53 * + COUNT( * ) * + + 65 ) ) WHEN - 38 - - + 1 THEN - 26 * + NULLIF ( 17, + + 58 * + COUNT( * ) * + - 28 * + 86 / - 38 + + COUNT( * ) ) + 31 WHEN 80 THEN NULL END * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT - 61 * - - CAST ( - COALESCE ( - + 54, + 72 + - + CAST ( + 35 AS INTEGER ) ) AS INTEGER ) * - - CASE ( - NULLIF ( + 46, + 56 + + - 53 * + COUNT ( * ) * + + 65 ) ) WHEN - 38 - - + 1 THEN - 26 * + NULLIF ( 17, + + 58 * + COUNT ( * ) * + - 28 * + 86 / - 38 + + COUNT ( * ) ) + 31 WHEN 80 THEN NULL END * - 5 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - NULLIF ( - ( + 91 ), 35 ) ) * + 27 + 56 AS col0
----
-2401

onlyif mysql # DIV for integer division: 
query I rowsort label-8465
SELECT DISTINCT - 83 * 91 + 3 DIV 12
----
-7553

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - 83 * 91 + 3 / 12
----
-7553

query I rowsort
SELECT ALL 48 * 11 + - 43
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL + + 32 * + COUNT( ALL + + ( + ( - 98 ) ) ) * - COUNT( * ) * 57 AS col2
----
-1824

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + + 32 * + COUNT ( ALL + + ( + ( - 98 ) ) ) * - COUNT ( * ) * 57 AS col2
----
-1824

query I rowsort
SELECT - - 50 + - 30
----
20

query II rowsort
SELECT ALL - 89 + - 56, 48 AS col2
----
-145
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT + + COUNT( * ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + + COUNT ( * ) + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL 90 + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL 90 + COUNT ( * ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT SUM( 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT SUM ( 75 ) AS col2
----
75

query I rowsort
SELECT DISTINCT 8 + - 70 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT 19 + - + 58 + - ( COUNT( * ) ) + - 28 * - 1
----
-12

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT 19 + - + 58 + - ( COUNT ( * ) ) + - 28 * - 1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL - COUNT( * ) + + ( + 68 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - COUNT ( * ) + + ( + 68 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT + 48 - 19 * + 60 + - NULLIF ( + + 94, + 98 + - COUNT( * ) )
----
-1186

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 48 - 19 * + 60 + - NULLIF ( + + 94, + 98 + - COUNT ( * ) )
----
-1186

query I rowsort
SELECT + 25 + + - 93 AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 7 - - 80
----
87

query I rowsort
SELECT + 12 + 42 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT ( COUNT( * ) ) * - 87 * 8 * COUNT( * )
----
-696

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT ( COUNT ( * ) ) * - 87 * 8 * COUNT ( * )
----
-696

query I rowsort
SELECT + 89 + + 33 AS col2
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT ALL CASE + 70 WHEN - COUNT( 29 ) THEN - 59 * 0 + COALESCE ( + 72, + 92 - 66 DIV + NULLIF ( - NULLIF ( 67, - 20 ), - 51 ) ) + + + 21 * NULLIF ( - - 0, + 29 ) WHEN - 22 THEN NULL WHEN - - MIN( 23 ) THEN NULL ELSE + COUNT( * ) * - 40 DIV MAX( + + 74 ) * 51 END
----
0

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL CASE + 70 WHEN - COUNT ( 29 ) THEN - 59 * 0 + COALESCE ( + 72, + 92 - 66 / + NULLIF ( - NULLIF ( 67, - 20 ), - 51 ) ) + + + 21 * NULLIF ( - - 0, + 29 ) WHEN - 22 THEN NULL WHEN - - MIN ( 23 ) THEN NULL ELSE + COUNT ( * ) * - 40 / MAX ( + + 74 ) * 51 END
----
0

query I rowsort
SELECT + 6 * + 77
----
462

query I rowsort
SELECT ALL COALESCE ( + 84, + 32 ) * + 28 AS col0
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + SUM( ALL - + 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + SUM ( ALL - + 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL + COUNT( DISTINCT 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + COUNT ( DISTINCT 93 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT - 59 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT - 59 / + - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT ALL - 5 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL - 5 / + 48
----
0

query II rowsort
SELECT + 6, + ( 6 ) AS col0
----
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT 63 * + COUNT( - 6 )
----
63

skipif mysql # not compatible
query I rowsort label-8491
SELECT 63 * + COUNT ( - 6 )
----
63

query I rowsort
SELECT - 19 + 18 * 91 * 88 AS col1
----
144125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8493
SELECT COUNT( DISTINCT - 38 ) - + 7 DIV + 15 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8493
SELECT COUNT ( DISTINCT - 38 ) - + 7 / + 15 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8494
SELECT - 93 * 44 DIV - 71, - 88 DIV - 10 AS col2
----
57
8

skipif mysql # not compatible
query II rowsort label-8494
SELECT - 93 * 44 / - 71, - 88 / - 10 AS col2
----
57
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8495
SELECT - - CAST( NULL AS SIGNED ) * - 68 + + ( - - MIN( DISTINCT - 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT - - CAST ( NULL AS INTEGER ) * - 68 + + ( - - MIN ( DISTINCT - 25 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT COUNT( * ) + + 83
----
84

skipif mysql # not compatible
query I rowsort label-8496
SELECT COUNT ( * ) + + 83
----
84

query I rowsort
SELECT ALL + 9 + 96 * + 82 * 81
----
637641

query I rowsort
SELECT ALL - 54 + + 58 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT 24 + COUNT( * ) * + COUNT( + 47 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8499
SELECT 24 + COUNT ( * ) * + COUNT ( + 47 ) AS col0
----
25

query I rowsort
SELECT ALL + CASE - 28 WHEN + + 18 * - - 54 * + 47 THEN 0 + + 9 WHEN + ( - + 6 ) THEN NULL ELSE NULL END * 95 * + + 61 * - 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8501
SELECT + 26 * - COALESCE ( - 0, + - 25 * + ( COUNT( * ) ), NULLIF ( - + COALESCE ( CAST( - 64 AS SIGNED ), NULLIF ( + ( 31 ), 40 - - - 51 ) * + 89 * + COUNT( * ) + - - 80 * + + 75 * + 99 ), 24 ) DIV - 17 DIV + COUNT( * ) + + - COUNT( * ) + + + 25 * + CAST( COUNT( * ) AS SIGNED ) * - ( - + 58 ) + COUNT( * ) ) DIV + COUNT( DISTINCT 28 )
----
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT + 26 * - COALESCE ( - 0, + - 25 * + ( COUNT ( * ) ), NULLIF ( - + COALESCE ( CAST ( - 64 AS INTEGER ), NULLIF ( + ( 31 ), 40 - - - 51 ) * + 89 * + COUNT ( * ) + - - 80 * + + 75 * + 99 ), 24 ) / - 17 / + COUNT ( * ) + + - COUNT ( * ) + + + 25 * + CAST ( COUNT ( * ) AS INTEGER ) * - ( - + 58 ) + COUNT ( * ) ) / + COUNT ( DISTINCT 28 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT + + 21 * + 21 + - 16 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT + + 21 * + 21 + - 16 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL - CASE + + 25 WHEN 36 THEN + 25 * - 10 + + 52 WHEN - COUNT( * ) THEN NULL WHEN + + 48 + + 84 - + + ( 28 ) + - 77 + + + 68 / - + MIN( DISTINCT + 42 ) * - COUNT( * ) * + ( + 2 ) THEN NULL ELSE NULL END + - COUNT( * ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL - CASE + + 25 WHEN 36 THEN + 25 * - 10 + + 52 WHEN - COUNT ( * ) THEN NULL WHEN + + 48 + + 84 - + + ( 28 ) + - 77 + + + 68 / - + MIN ( DISTINCT + 42 ) * - COUNT ( * ) * + ( + 2 ) THEN NULL ELSE NULL END + - COUNT ( * ) + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8504
SELECT 4 + + COUNT( * ) + + - ( 15 ) * + - 6 AS col1, + 69
----
95
69

skipif mysql # not compatible
query II rowsort label-8504
SELECT 4 + + COUNT ( * ) + + - ( 15 ) * + - 6 AS col1, + 69
----
95
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT SUM( - 59 ) * + 14 * - - 98
----
-80948

skipif mysql # not compatible
query I rowsort label-8505
SELECT SUM ( - 59 ) * + 14 * - - 98
----
-80948

query I rowsort
SELECT 93 + + 5 + + + 73
----
171

query I rowsort
SELECT ALL + - 25 + + 59 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL - 52 - - + ( - COUNT( * ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - 52 - - + ( - COUNT ( * ) ) AS col0
----
-53

query I rowsort
SELECT 73 + - + 62 * 87 AS col0
----
-5321

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT ALL - COUNT( + 88 ) DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - COUNT ( + 88 ) / - 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT COUNT( * ) + + + 77 col1
----
78

skipif mysql # not compatible
query I rowsort label-8511
SELECT COUNT ( * ) + + + 77 col1
----
78

query I rowsort
SELECT DISTINCT - 53 * - 27
----
1431

query I rowsort
SELECT 22 + - + 29 AS col1
----
-7

query I rowsort
SELECT 93 * + 56
----
5208

query I rowsort
SELECT 29 * 13 * - - 60
----
22620

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL COALESCE ( + 49, COUNT( * ) - 44 ) * 7
----
343

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL COALESCE ( + 49, COUNT ( * ) - 44 ) * 7
----
343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT COUNT( * ) * COUNT( * ) DIV - 99 * - 60 * - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8517
SELECT COUNT ( * ) * COUNT ( * ) / - 99 * - 60 * - 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ( 84 ) * COUNT( * ) col0
----
84

skipif mysql # not compatible
query I rowsort label-8518
SELECT ( 84 ) * COUNT ( * ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT COUNT( * ) + - - 85
----
86

skipif mysql # not compatible
query I rowsort label-8519
SELECT COUNT ( * ) + - - 85
----
86

query II rowsort
SELECT - 35, 64 * + + 92 + + 37 AS col0
----
-35
5925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8521
SELECT DISTINCT 88 AS col0, 10 * - + COALESCE ( + CASE + 94 WHEN + + 24 THEN + 39 WHEN - COUNT( * ) THEN + CAST( NULL AS SIGNED ) END, + 3 * + 28 + - 7 )
----
88
-770

skipif mysql # not compatible
query II rowsort label-8521
SELECT DISTINCT 88 AS col0, 10 * - + COALESCE ( + CASE + 94 WHEN + + 24 THEN + 39 WHEN - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) END, + 3 * + 28 + - 7 )
----
88
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ( CASE + - 34 WHEN - 86 THEN - - 2 END ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT ( CASE + - 34 WHEN - 86 THEN - - 2 END ) * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8523
SELECT ALL 46, - SUM( ALL + 3 ) * + COUNT( * ) * + - 9 AS col0
----
46
27

skipif mysql # not compatible
query II rowsort label-8523
SELECT ALL 46, - SUM ( ALL + 3 ) * + COUNT ( * ) * + - 9 AS col0
----
46
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT COUNT( * ) + 66 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8524
SELECT COUNT ( * ) + 66 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT - 1, + SUM( DISTINCT + 18 ) * - 80 AS col0
----
-1
-1440

skipif mysql # not compatible
query II rowsort label-8525
SELECT - 1, + SUM ( DISTINCT + 18 ) * - 80 AS col0
----
-1
-1440

query I rowsort
SELECT 18 * + 7
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT MAX( ALL + - 93 ) * COUNT( * ) + - - 88 * 22
----
1843

skipif mysql # not compatible
query I rowsort label-8527
SELECT MAX ( ALL + - 93 ) * COUNT ( * ) + - - 88 * 22
----
1843

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT 66, 1 + - COUNT( * ) AS col2
----
66
0

skipif mysql # not compatible
query II rowsort label-8528
SELECT 66, 1 + - COUNT ( * ) AS col2
----
66
0

query I rowsort
SELECT + 16 * - 71 + 23 col0
----
-1113

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT ( 35 ) DIV + ( 15 ) + COALESCE ( - - 33, - 91 + - + 98 + 28, + + 37 DIV - 95 * - - 59 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8530
SELECT ( 35 ) / + ( 15 ) + COALESCE ( - - 33, - 91 + - + 98 + 28, + + 37 / - 95 * - - 59 ) AS col1
----
35

query II rowsort
SELECT DISTINCT - 7 * 60 AS col1, 53 * + - 21 AS col2
----
-420
-1113

onlyif mysql # aggregate syntax: 
query II rowsort label-8532
SELECT ALL - 26 AS col0, ( 35 ) * + COUNT( * ) * 61
----
-26
2135

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL - 26 AS col0, ( 35 ) * + COUNT ( * ) * 61
----
-26
2135

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT + - MAX( + - ( + 6 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8533
SELECT + - MAX ( + - ( + 6 ) ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT DISTINCT + 80 + - + COUNT( * ) * + 98
----
-18

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + 80 + - + COUNT ( * ) * + 98
----
-18

query I rowsort
SELECT + - ( - + 1 )
----
1

query I rowsort
SELECT ALL - 58 + + 86
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8537
SELECT 47 * + 42 + - - 88 * 27, 10 * + 25 + MAX( DISTINCT - - 50 ) AS col1
----
4350
300

skipif mysql # not compatible
query II rowsort label-8537
SELECT 47 * + 42 + - - 88 * 27, 10 * + 25 + MAX ( DISTINCT - - 50 ) AS col1
----
4350
300

query I rowsort
SELECT - ( ( 31 ) ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT - MAX( + 11 ) + - + 34 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - MAX ( + 11 ) + - + 34 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL COUNT( * ) + - 8 * + 66 * + 81
----
-42767

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL COUNT ( * ) + - 8 * + 66 * + 81
----
-42767

query I rowsort
SELECT 92 * + + 26 - 71
----
2321

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8542
SELECT + 75 AS col2, + ( - SUM( + + 42 ) ) DIV + - 90 AS col0
----
75
0

skipif mysql # not compatible
query II rowsort label-8542
SELECT + 75 AS col2, + ( - SUM ( + + 42 ) ) / + - 90 AS col0
----
75
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8543
SELECT COUNT( * ) DIV - 82 * - + 59 + + + 36 * - + 5
----
-180

skipif mysql # not compatible
query I rowsort label-8543
SELECT COUNT ( * ) / - 82 * - + 59 + + + 36 * - + 5
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8544
SELECT + COUNT( * ) DIV 51 + - - ( 23 ) + - - ( + 88 ) AS col1, 43 AS col2
----
111
43

skipif mysql # not compatible
query II rowsort label-8544
SELECT + COUNT ( * ) / 51 + - - ( 23 ) + - - ( + 88 ) AS col1, 43 AS col2
----
111
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL - - ( + 88 ) * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - - ( + 88 ) * - COUNT ( * )
----
-88

query I rowsort
SELECT + - ( + 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ALL - 62 + + - 86 + 52 + - SUM( 79 ) + - 25 * 70 + + 17 + - - 23
----
-1885

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - 62 + + - 86 + 52 + - SUM ( 79 ) + - 25 * 70 + + 17 + - - 23
----
-1885

query I rowsort
SELECT DISTINCT - 4 - - 81
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT + + COUNT( * ) AS col0, + 84 * - 75
----
1
-6300

skipif mysql # not compatible
query II rowsort label-8549
SELECT + + COUNT ( * ) AS col0, + 84 * - 75
----
1
-6300

query I rowsort
SELECT ALL + + 89 - 9 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8551
SELECT ALL - 85 col2, - 96 * - CAST( + - 77 AS SIGNED ) col1
----
-85
-7392

skipif mysql # not compatible
query II rowsort label-8551
SELECT ALL - 85 col2, - 96 * - CAST ( + - 77 AS INTEGER ) col1
----
-85
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT ALL - 12 * - CAST( 80 AS SIGNED ) AS col1
----
960

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - 12 * - CAST ( 80 AS INTEGER ) AS col1
----
960

query I rowsort
SELECT 84 * - + 20 col2
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ( - 60 ) + - 59 + + 20 * + 77 * - COUNT( * ) AS col0
----
-1659

skipif mysql # not compatible
query I rowsort label-8554
SELECT ( - 60 ) + - 59 + + 20 * + 77 * - COUNT ( * ) AS col0
----
-1659

query I rowsort
SELECT ALL + 12 - - 62 - - 89 * - - 37 AS col1
----
3367

query II rowsort
SELECT 3 + + 17 + - - ( ( 1 ) ) + 81 * - 87 AS col2, + 34
----
-7026
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT 38 * SUM( DISTINCT - 97 ) AS col0
----
-3686

skipif mysql # not compatible
query I rowsort label-8557
SELECT 38 * SUM ( DISTINCT - 97 ) AS col0
----
-3686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8558
SELECT 9 * - 13 / - - COUNT( * ) * + CAST( - + MIN( DISTINCT 87 ) AS SIGNED ) * + + CAST( NULL AS SIGNED ) - + 46 * - ( - 60 ) AS col2, 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-8558
SELECT 9 * - 13 / - - COUNT ( * ) * + CAST ( - + MIN ( DISTINCT 87 ) AS INTEGER ) * + + CAST ( NULL AS INTEGER ) - + 46 * - ( - 60 ) AS col2, 62
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL COUNT( + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL COUNT ( + 32 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8560
SELECT DISTINCT 12 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT 12 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 23 * + 94 col1
----
-2162

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT - 47 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT - 47 / - 80
----
0

query II rowsort
SELECT ALL - 50 * 16 AS col0, 32 AS col1
----
-800
32

query II rowsort
SELECT + 29 * + 51, + 39 * - 9 AS col2
----
1479
-351

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT - SUM( - 17 ), - NULLIF ( - 59, + + ( + 20 ) * + SUM( DISTINCT - 44 ) * - + 65 + - - 21 - - - 27 ) AS col2
----
17
59

skipif mysql # not compatible
query II rowsort label-8565
SELECT - SUM ( - 17 ), - NULLIF ( - 59, + + ( + 20 ) * + SUM ( DISTINCT - 44 ) * - + 65 + - - 21 - - - 27 ) AS col2
----
17
59

onlyif mysql # DIV for integer division: 
query II rowsort label-8566
SELECT - 17 DIV 99 AS col1, + 2 + - - 85 col1
----
0
87

skipif mysql # not compatible
query II rowsort label-8566
SELECT - 17 / 99 AS col1, + 2 + - - 85 col1
----
0
87

query I rowsort
SELECT - 93 * + 94 AS col0
----
-8742

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8568
SELECT ALL COUNT( * ) * + + 13 + - + CAST( NULL AS DECIMAL ) * + 75 * - + 31 - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL COUNT ( * ) * + + 13 + - + CAST ( NULL AS REAL ) * + 75 * - + 31 - + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + 85 * - - 44 + - COUNT( * ) * - 55
----
3795

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + 85 * - - 44 + - COUNT ( * ) * - 55
----
3795

query I rowsort
SELECT + 37 - + 26 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT - CASE 60 WHEN - 33 THEN NULL ELSE MAX( ALL - NULLIF ( - - 77, - 68 ) ) END * 97 + - 63 + - - 91 col2
----
7497

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT - CASE 60 WHEN - 33 THEN NULL ELSE MAX ( ALL - NULLIF ( - - 77, - 68 ) ) END * 97 + - 63 + - - 91 col2
----
7497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT + + CAST( NULL AS SIGNED ) - + 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT + + CAST ( NULL AS INTEGER ) - + 10 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT 56 * COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT 56 * COUNT ( * ) AS col0
----
56

query I rowsort
SELECT ALL - ( + ( + + 69 ) ) * + 16 AS col2
----
-1104

onlyif mysql # aggregate syntax: 
query III rowsort label-8575
SELECT DISTINCT 23 * - - 10 AS col0, - COUNT( * ) + + 41 + - 65 + + - 76 * + - COUNT( DISTINCT - 32 ), - 78 AS col0
----
230
51
-78

skipif mysql # not compatible
query III rowsort label-8575
SELECT DISTINCT 23 * - - 10 AS col0, - COUNT ( * ) + + 41 + - 65 + + - 76 * + - COUNT ( DISTINCT - 32 ), - 78 AS col0
----
230
51
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8576
SELECT + 71 * + 77 / - + CAST( NULL AS SIGNED ) * + + 72 * 85 + 46 * + 57 AS col2, - 84 AS col1
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-8576
SELECT + 71 * + 77 / - + CAST ( NULL AS INTEGER ) * + + 72 * 85 + 46 * + 57 AS col2, - 84 AS col1
----
NULL
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL + - NULLIF ( + + 95, - COUNT( * ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + - NULLIF ( + + 95, - COUNT ( * ) ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT DISTINCT + + ( ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8578
SELECT DISTINCT + + ( ( COUNT ( * ) ) ) AS col1
----
1

query II rowsort
SELECT + - 19 * + 20 * - 39 AS col0, + 19 AS col1
----
14820
19

query I rowsort
SELECT 56 * + + 13 + 66 + - 9
----
785

query I rowsort
SELECT ALL + + 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT + + COUNT( * ) * 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8582
SELECT + + COUNT ( * ) * 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT SUM( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8583
SELECT SUM ( 81 ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8584
SELECT - 19 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-8584
SELECT - 19 / + 74
----
0

query I rowsort
SELECT - ( + 41 ) AS col1
----
-41

query I rowsort
SELECT - 95 + - + 17 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + 7 * - ( - - COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8587
SELECT + 7 * - ( - - COUNT ( * ) )
----
-7

query I rowsort
SELECT + 66 * + - 83 AS col0
----
-5478

onlyif mysql # aggregate syntax: 
query II rowsort label-8589
SELECT - 79, - COALESCE ( - + 48, - + 86 * - 25 * 20 * - - 42 ) * - 29 * - COUNT( * ) + + COUNT( * ) AS col0
----
-79
1393

skipif mysql # not compatible
query II rowsort label-8589
SELECT - 79, - COALESCE ( - + 48, - + 86 * - 25 * 20 * - - 42 ) * - 29 * - COUNT ( * ) + + COUNT ( * ) AS col0
----
-79
1393

query I rowsort
SELECT - ( - + 84 )
----
84

query II rowsort
SELECT 24 AS col0, 83 * - - 46 * - 36
----
24
-137448

query I rowsort
SELECT - 12 * + + 29 AS col0
----
-348

query I rowsort
SELECT - 17 + + 29 + + + 16 * 28
----
460

query I rowsort
SELECT - 76 * + 70 AS col0
----
-5320

query I rowsort
SELECT ALL - 19 + 13
----
-6

query I rowsort
SELECT ALL 56 + - - 90
----
146

query II rowsort
SELECT DISTINCT + + 73 + - + 65 + 35 + - - 45 * - + 90 + - 40 AS col1, - 86 * - 22
----
-4047
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT COUNT( DISTINCT + + 86 ) * 11 + - 33 - - - MIN( ALL - + 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-8598
SELECT COUNT ( DISTINCT + + 86 ) * 11 + - 33 - - - MIN ( ALL - + 21 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT - + CAST( - - 49 AS SIGNED ) * - 61 + - 49
----
2940

skipif mysql # not compatible
query I rowsort label-8599
SELECT - + CAST ( - - 49 AS INTEGER ) * - 61 + - 49
----
2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT + CAST( + + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-8600
SELECT + CAST ( + + 39 AS INTEGER )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT - 1 DIV + + COALESCE ( - + NULLIF ( 62, + 36 + 25 ), + 70 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8601
SELECT - 1 / + + COALESCE ( - + NULLIF ( 62, + 36 + 25 ), + 70 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT - 28 * MIN( ALL - 12 ) AS col0
----
336

skipif mysql # not compatible
query I rowsort label-8602
SELECT - 28 * MIN ( ALL - 12 ) AS col0
----
336

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT ALL + - 54 DIV + - ( 32 ) + - + 12 - 57 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL + - 54 / + - ( 32 ) + - + 12 - 57 AS col0
----
-68

query II rowsort
SELECT ALL + - 72 AS col2, 16
----
-72
16

query I rowsort
SELECT ALL + - ( + 25 )
----
-25

query II rowsort
SELECT 35, - 70 * + ( + 72 ) col2
----
35
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT + - 15 * + 61 - - COUNT( ALL - + 95 ) + - 65
----
-979

skipif mysql # not compatible
query I rowsort label-8607
SELECT + - 15 * + 61 - - COUNT ( ALL - + 95 ) + - 65
----
-979

query I rowsort
SELECT + 7 * + 91 AS col1
----
637

query I rowsort
SELECT + ( + ( + 57 ) )
----
57

query I rowsort
SELECT + 42 * - ( + 22 ) * + 40
----
-36960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL NULLIF ( - 23, + 15 / + COUNT( * ) * + - MAX( CAST( NULL AS SIGNED ) ) + + 45 * + 38 ) + - 8 * 75 + + 15
----
-608

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL NULLIF ( - 23, + 15 / + COUNT ( * ) * + - MAX ( CAST ( NULL AS INTEGER ) ) + + 45 * + 38 ) + - 8 * 75 + + 15
----
-608

query I rowsort
SELECT ALL - 23 + + 41 * 65 AS col0
----
2642

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT MIN( ALL 48 ) * + ( 28 ) AS col1
----
1344

skipif mysql # not compatible
query I rowsort label-8613
SELECT MIN ( ALL 48 ) * + ( 28 ) AS col1
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT COUNT( * ) * - 45
----
-45

skipif mysql # not compatible
query I rowsort label-8614
SELECT COUNT ( * ) * - 45
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( COALESCE ( - + SUM( ALL + 72 ), + + 90, + + 56 ), - COUNT( DISTINCT - 11 ) ) + - COUNT( 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( COALESCE ( - + SUM ( ALL + 72 ), + + 90, + + 56 ), - COUNT ( DISTINCT - 11 ) ) + - COUNT ( 11 )
----
NULL

query I rowsort
SELECT ALL 34 + + + 26 + + 26
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT 72 + - - COUNT( * ) + - 86 * + 31 + 47 AS col2
----
-2546

skipif mysql # not compatible
query I rowsort label-8617
SELECT 72 + - - COUNT ( * ) + - 86 * + 31 + 47 AS col2
----
-2546

query I rowsort
SELECT ALL + 61 + + + 2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8619
SELECT COUNT( * ) + + - COUNT( * ) AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-8619
SELECT COUNT ( * ) + + - COUNT ( * ) AS col0, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT - MIN( DISTINCT + 0 ) * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT - MIN ( DISTINCT + 0 ) * COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT + 18 - - COUNT( + + 44 )
----
19

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT + 18 - - COUNT ( + + 44 )
----
19

query I rowsort
SELECT DISTINCT ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL + COUNT( - - 95 ) * 53 * - 66 + - 95
----
-3593

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL + COUNT ( - - 95 ) * 53 * - 66 + - 95
----
-3593

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT DISTINCT + - COUNT( * ) * - 88 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT + - COUNT ( * ) * - 88 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8625
SELECT - 62 * ( - CAST( NULL AS DECIMAL ) ) + - + CASE - 83 WHEN 71 THEN + 72 * 56 * 12 + + - MIN( DISTINCT + 55 ) WHEN + + 92 THEN NULL ELSE NULL END + 65 + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT - 62 * ( - CAST ( NULL AS REAL ) ) + - + CASE - 83 WHEN 71 THEN + 72 * 56 * 12 + + - MIN ( DISTINCT + 55 ) WHEN + + 92 THEN NULL ELSE NULL END + 65 + + 92 AS col0
----
NULL

query II rowsort
SELECT - 1 + - 53 AS col2, 15
----
-54
15

query I rowsort
SELECT 42 * - 16 AS col0
----
-672

query I rowsort
SELECT ALL + 33 * - - 37 + + 88 col1
----
1309

query I rowsort
SELECT - - 53 * 45 + - - 30 + + ( 51 )
----
2466

query I rowsort
SELECT + 85 - - 21 AS col1
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8631
SELECT 32 DIV + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8631
SELECT 32 / + COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT - 95 * 95 * - 33 + - COUNT( * ) DIV 25 + + - 99
----
297726

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 95 * 95 * - 33 + - COUNT ( * ) / 25 + + - 99
----
297726

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + 89 * 3 * - COUNT( * ) * - 63 + + - 60 * - 9 + - 95
----
17266

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + 89 * 3 * - COUNT ( * ) * - 63 + + - 60 * - 9 + - 95
----
17266

query I rowsort
SELECT DISTINCT - 8 * - 99
----
792

query II rowsort
SELECT DISTINCT ( + 32 ) + 42, - 84 AS col1
----
74
-84

query I rowsort
SELECT DISTINCT + 36 + - 85 AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT ALL 30 + 29 DIV + + 72
----
30

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL 30 + 29 / + + 72
----
30

query I rowsort
SELECT - 99 * + 6 + + 27
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL + COUNT( * ) + 7 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + COUNT ( * ) + 7 AS col2
----
8

query I rowsort
SELECT 91 * 59 * + 92 + - + 52 AS col2
----
493896

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ( - + 22 ) + - + 79 - + 96 + - 48 + + 93 + - + 69 + - COUNT( DISTINCT 17 ) * 29 + + + MIN( - 41 ) + 68 + COUNT( * ) * + 77 * - - 25 * 89 - + - 74 + 85
----
171261

skipif mysql # not compatible
query I rowsort label-8641
SELECT ( - + 22 ) + - + 79 - + 96 + - 48 + + 93 + - + 69 + - COUNT ( DISTINCT 17 ) * 29 + + + MIN ( - 41 ) + 68 + COUNT ( * ) * + 77 * - - 25 * 89 - + - 74 + 85
----
171261

query I rowsort
SELECT ALL 95 + - 47 + + + NULLIF ( 56, + 71 )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8643
SELECT COUNT( * ) * 23 * - COUNT( * ) DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8643
SELECT COUNT ( * ) * 23 * - COUNT ( * ) / 78 AS col1
----
0

query II rowsort
SELECT - 41, 41 AS col2
----
-41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT DISTINCT + COUNT( * ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT + COUNT ( * ) * - 66
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8646
SELECT ( + 92 ) * - + 94 AS col0, MIN( ALL 26 ) * + + COUNT( * ) DIV - 50 + - COUNT( * )
----
-8648
-1

skipif mysql # not compatible
query II rowsort label-8646
SELECT ( + 92 ) * - + 94 AS col0, MIN ( ALL 26 ) * + + COUNT ( * ) / - 50 + - COUNT ( * )
----
-8648
-1

query I rowsort
SELECT DISTINCT 94 - + 62 + + 54
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8648
SELECT 82 DIV 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8648
SELECT 82 / 22 AS col0
----
3

query I rowsort
SELECT ALL 28 - + 25
----
3

query I rowsort
SELECT 53 * 8 AS col0
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT 47 + - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8651
SELECT 47 + - COUNT ( * ) AS col0
----
46

query I rowsort
SELECT + ( - - 90 ) * + 61 + + 85 col1
----
5575

query I rowsort
SELECT DISTINCT + 48 * 69
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + SUM( ALL + 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + SUM ( ALL + 17 ) AS col2
----
17

query I rowsort
SELECT DISTINCT NULLIF ( - - 97, 46 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8656
SELECT DISTINCT - 59 AS col2, COALESCE ( - 24, - 61 ) + - 36 + 65 + + NULLIF ( + + MIN( - 11 ), - ( NULLIF ( + 21, COUNT( - + 60 ) * - CAST( - 69 AS SIGNED ) + - 43 * 36 * 82 * + 58 ) ) )
----
-59
-6

skipif mysql # not compatible
query II rowsort label-8656
SELECT DISTINCT - 59 AS col2, COALESCE ( - 24, - 61 ) + - 36 + 65 + + NULLIF ( + + MIN ( - 11 ), - ( NULLIF ( + 21, COUNT ( - + 60 ) * - CAST ( - 69 AS INTEGER ) + - 43 * 36 * 82 * + 58 ) ) )
----
-59
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - COUNT( * ) + 9 - + NULLIF ( ( - 81 ), + + 65 ) * - 32 col1
----
-2584

skipif mysql # not compatible
query I rowsort label-8657
SELECT - COUNT ( * ) + 9 - + NULLIF ( ( - 81 ), + + 65 ) * - 32 col1
----
-2584

onlyif mysql # DIV for integer division: 
query II rowsort label-8658
SELECT + 45, - 47 DIV + 53 AS col0
----
45
0

skipif mysql # not compatible
query II rowsort label-8658
SELECT + 45, - 47 / + 53 AS col0
----
45
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT - SUM( ALL - - 66 ) * + ( + 95 ) * - + 87 - - - COUNT( * ) + + 71 * - 12
----
544637

skipif mysql # not compatible
query I rowsort label-8659
SELECT - SUM ( ALL - - 66 ) * + ( + 95 ) * - + 87 - - - COUNT ( * ) + + 71 * - 12
----
544637

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT ALL - MAX( DISTINCT + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - MAX ( DISTINCT + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL - + ( - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - + ( - + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT + 26 * 96 + + 13 + COUNT( * ) - + CAST( NULL AS SIGNED ) * + COUNT( * ) / 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT + 26 * 96 + + 13 + COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT MAX( ALL - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-8663
SELECT MAX ( ALL - 58 )
----
-58

query II rowsort
SELECT + 65, 30 AS col1
----
65
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL + SUM( ALL 93 ) col0
----
93

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + SUM ( ALL 93 ) col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT + 31 DIV - + 92 * - 33 * 40 * + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8666
SELECT + 31 / - + 92 * - 33 * 40 * + 76 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT MAX( + 9 ) AS col1, - 7
----
9
-7

skipif mysql # not compatible
query II rowsort label-8667
SELECT MAX ( + 9 ) AS col1, - 7
----
9
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT COUNT( * ) AS col1, + 93 AS col0
----
1
93

skipif mysql # not compatible
query II rowsort label-8668
SELECT COUNT ( * ) AS col1, + 93 AS col0
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL ( - - 7 ) * ( - + 55 ) + + COUNT( * ) AS col1
----
-384

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL ( - - 7 ) * ( - + 55 ) + + COUNT ( * ) AS col1
----
-384

query I rowsort
SELECT - 1 - - 15
----
14

query I rowsort
SELECT DISTINCT + 14 * - ( - 30 )
----
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL - CASE - 29 WHEN 36 THEN - 15 + - NULLIF ( CAST( + 53 AS SIGNED ), + COUNT( * ) ) - - + 32 WHEN 87 THEN NULL ELSE + 24 END + + NULLIF ( 76, - ( 26 ) + + 23 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - CASE - 29 WHEN 36 THEN - 15 + - NULLIF ( CAST ( + 53 AS INTEGER ), + COUNT ( * ) ) - - + 32 WHEN 87 THEN NULL ELSE + 24 END + + NULLIF ( 76, - ( 26 ) + + 23 ) AS col2
----
52

query I rowsort
SELECT - 71 * - + 7
----
497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8674
SELECT DISTINCT 82 DIV MIN( ALL - 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT 82 / MIN ( ALL - 93 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL COUNT( * ) - 62 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL COUNT ( * ) - 62 AS col0
----
-61

query I rowsort
SELECT ALL CASE ( ( + 48 ) ) WHEN 87 + - 81 THEN NULL ELSE + - 50 END
----
-50

query I rowsort
SELECT - 17 + - 26
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT MIN( ALL - 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8678
SELECT MIN ( ALL - 7 ) AS col0
----
-7

query II rowsort
SELECT 21 AS col2, 44 + - 63
----
21
-19

query I rowsort
SELECT - 11 + - 50 + 33
----
-28

query I rowsort
SELECT + 17 * + + 52 AS col1
----
884

query I rowsort
SELECT - + 4 + + 83 AS col2
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT - COALESCE ( + + 26, + 67 + - 21 * 60 DIV - 85 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8683
SELECT - COALESCE ( + + 26, + 67 + - 21 * 60 / - 85 ) AS col1
----
-26

query I rowsort
SELECT - - NULLIF ( + - ( + + 76 ), - 46 ) + 27 AS col0
----
-49

query I rowsort
SELECT ALL + 18 * + 30 AS col2
----
540

query I rowsort
SELECT ALL - + 87 * + ( + 92 ) AS col0
----
-8004

query II rowsort
SELECT - - 54 AS col1, ( - + 10 )
----
54
-10

query I rowsort
SELECT - 47 * - - 78 col0
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + - 47 * + - COUNT( * ) * + - 74 AS col1
----
-3478

skipif mysql # not compatible
query I rowsort label-8689
SELECT + - 47 * + - COUNT ( * ) * + - 74 AS col1
----
-3478

onlyif mysql # aggregate syntax: 
query III rowsort label-8690
SELECT - 51, COUNT( ALL + - 60 ) * - - 53 AS col0, + ( 8 ) + - 18 AS col0
----
-51
53
-10

skipif mysql # not compatible
query III rowsort label-8690
SELECT - 51, COUNT ( ALL + - 60 ) * - - 53 AS col0, + ( 8 ) + - 18 AS col0
----
-51
53
-10

query I rowsort
SELECT ALL + 67 + 38
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT + - 97 DIV - 68
----
1

skipif mysql # not compatible
query I rowsort label-8692
SELECT + - 97 / - 68
----
1

query I rowsort
SELECT + - 86 + - - 98
----
12

query I rowsort
SELECT ALL - 42 * 14 AS col1
----
-588

query I rowsort
SELECT ALL 80 + + 80 - + - 8 AS col0
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8696
SELECT ALL COUNT( * ) DIV - 75 + 99 + - 73
----
26

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL COUNT ( * ) / - 75 + 99 + - 73
----
26

query I rowsort
SELECT 45 * + 61 + + - ( + + 61 ) * - 14 * 12 - - ( - - ( + 24 ) )
----
13017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ( CAST( + + 58 AS SIGNED ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8698
SELECT ( CAST ( + + 58 AS INTEGER ) ) AS col1
----
58

query I rowsort
SELECT ( - 91 ) col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT ALL - ( + 59 ) DIV 52 + + - 75 + 96
----
20

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - ( + 59 ) / 52 + + - 75 + 96
----
20

query I rowsort
SELECT + 25 + + + 71 * - - 28 + - 70 AS col0
----
1943

onlyif mysql # DIV for integer division: 
query II rowsort label-8702
SELECT + ( + + 5 ), 42 * 66 DIV - + 2 AS col0
----
5
-1386

skipif mysql # not compatible
query II rowsort label-8702
SELECT + ( + + 5 ), 42 * 66 / - + 2 AS col0
----
5
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - 91 * - COUNT( * ) + COUNT( * ) + + + 31 * - CASE - + MAX( ALL - 23 ) WHEN + 21 THEN 66 + + - 69 WHEN + 21 * 74 + + 30 * - 64 + + - SUM( DISTINCT + 47 ) * 51 THEN NULL END + + 36 + 8 + + + 22 / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT - 91 * - COUNT ( * ) + COUNT ( * ) + + + 31 * - CASE - + MAX ( ALL - 23 ) WHEN + 21 THEN 66 + + - 69 WHEN + 21 * 74 + + 30 * - 64 + + - SUM ( DISTINCT + 47 ) * 51 THEN NULL END + + 36 + 8 + + + 22 / 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8704
SELECT COUNT( * ) DIV - COUNT( * ) + + 71 * - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-8704
SELECT COUNT ( * ) / - COUNT ( * ) + + 71 * - COUNT ( * )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL + 54 * + + 71 - - CAST( 89 AS SIGNED ) - - + 75 * 53 col1
----
7898

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + 54 * + + 71 - - CAST ( 89 AS INTEGER ) - - + 75 * 53 col1
----
7898

query I rowsort
SELECT + 95 * 14 AS col1
----
1330

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT ALL + MIN( - - 77 ) AS col1, 32 AS col0
----
77
32

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL + MIN ( - - 77 ) AS col1, 32 AS col0
----
77
32

query I rowsort
SELECT DISTINCT - ( - 5 ) * - 70 + + - 12 * + 38 + - 23 - 67 * + 17 AS col2
----
-1968

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT ALL - 28 * 77 DIV 14
----
-154

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - 28 * 77 / 14
----
-154

query I rowsort
SELECT ALL + NULLIF ( 51, + + 49 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT CASE 8 WHEN + + 15 THEN NULL WHEN 48 + - - SUM( - 23 ) - + - COUNT( * ) THEN 48 ELSE + 57 END AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8711
SELECT CASE 8 WHEN + + 15 THEN NULL WHEN 48 + - - SUM ( - 23 ) - + - COUNT ( * ) THEN 48 ELSE + 57 END AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + 94 * NULLIF ( CASE + - 15 WHEN MAX( ALL - + 75 ) THEN - 54 / - COUNT( * ) + - 96 END, - 70 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT + 94 * NULLIF ( CASE + - 15 WHEN MAX ( ALL - + 75 ) THEN - 54 / - COUNT ( * ) + - 96 END, - 70 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8713
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8714
SELECT - COALESCE ( - 31, + + 90 DIV + COALESCE ( + + 40, + 65 + + 59 + - CAST( - 72 AS SIGNED ) ), - COUNT( * ) ) * + 82 AS col2
----
2542

skipif mysql # not compatible
query I rowsort label-8714
SELECT - COALESCE ( - 31, + + 90 / + COALESCE ( + + 40, + 65 + + 59 + - CAST ( - 72 AS INTEGER ) ), - COUNT ( * ) ) * + 82 AS col2
----
2542

query I rowsort
SELECT - 76 + - 35
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT DISTINCT + 11 * CASE - - COUNT( * ) WHEN SUM( + 92 ) + - ( - + 62 ) / + - 53 + - - 48 * + ( + 25 ) - COUNT( * ) * CAST( NULL AS SIGNED ) * + 30 * ( - COUNT( - + 30 ) ) + - + COUNT( * ) / - + ( 57 ) * - COUNT( * ) + COALESCE ( ( + 99 ), ( + 32 ), - + 85 + + 0 - + NULLIF ( - + 98, + COALESCE ( CAST( NULL AS SIGNED ), - 78 ) ) * AVG ( ALL + 46 ) - - 86 - - CASE - 10 WHEN + 6 THEN + COUNT( ALL 81 ) / 97 WHEN 42 THEN NULL ELSE + 66 END, 8 ) * COALESCE ( + ( + 23 ) * 68 + CAST( + 32 AS SIGNED ), 12 ) THEN 9 WHEN + 41 THEN 61 * + 10 END * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT + 11 * CASE - - COUNT ( * ) WHEN SUM ( + 92 ) + - ( - + 62 ) / + - 53 + - - 48 * + ( + 25 ) - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 30 * ( - COUNT ( - + 30 ) ) + - + COUNT ( * ) / - + ( 57 ) * - COUNT ( * ) + COALESCE ( ( + 99 ), ( + 32 ), - + 85 + + 0 - + NULLIF ( - + 98, + COALESCE ( CAST ( NULL AS INTEGER ), - 78 ) ) * AVG ( ALL + 46 ) - - 86 - - CASE - 10 WHEN + 6 THEN + COUNT ( ALL 81 ) / 97 WHEN 42 THEN NULL ELSE + 66 END, 8 ) * COALESCE ( + ( + 23 ) * 68 + CAST ( + 32 AS INTEGER ), 12 ) THEN 9 WHEN + 41 THEN 61 * + 10 END * - 36
----
NULL

query II rowsort
SELECT ALL ( + + 62 ), - 59 col1
----
62
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT - 65 DIV + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT - 65 / + 77 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT + MAX( DISTINCT - 72 ) AS col2, 48 AS col2
----
-72
48

skipif mysql # not compatible
query II rowsort label-8719
SELECT + MAX ( DISTINCT - 72 ) AS col2, 48 AS col2
----
-72
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT - MIN( - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8720
SELECT - MIN ( - 37 ) AS col0
----
37

query I rowsort
SELECT - + 76 + + 78
----
2

query II rowsort
SELECT ALL + 37 + - 77 AS col0, 35
----
-40
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT - CAST( - 40 AS SIGNED ) + - + 49 * + 3
----
-107

skipif mysql # not compatible
query I rowsort label-8723
SELECT - CAST ( - 40 AS INTEGER ) + - + 49 * + 3
----
-107

query I rowsort
SELECT - - ( + - 23 ) - 93 * - 88
----
8161

onlyif mysql # aggregate syntax: 
query II rowsort label-8725
SELECT ALL 12 * ( + MAX( 88 ) ) + - NULLIF ( - + 62, + MIN( + 50 ) ) AS col0, - 9
----
1118
-9

skipif mysql # not compatible
query II rowsort label-8725
SELECT ALL 12 * ( + MAX ( 88 ) ) + - NULLIF ( - + 62, + MIN ( + 50 ) ) AS col0, - 9
----
1118
-9

query II rowsort
SELECT ALL - + 67 + + 19 col0, COALESCE ( 11, 99 ) * - - 10 col0
----
-48
110

query I rowsort
SELECT ALL + + COALESCE ( + 43, - 17 ) + COALESCE ( - - 29, 62 ) * + + 2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT NULLIF ( COUNT( * ), + + 73 ) + + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-8728
SELECT NULLIF ( COUNT ( * ), + + 73 ) + + - 88
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - ( MIN( + - ( - 4 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-8729
SELECT - ( MIN ( + - ( - 4 ) ) )
----
-4

query I rowsort
SELECT + 31 + + + 1 AS col2
----
32

query II rowsort
SELECT ALL ( - 60 ) + + + 0, 61 AS col2
----
-60
61

query I rowsort
SELECT 28 * - ( - 16 )
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT 37 * + COUNT( * ) * + 42 * - COUNT( DISTINCT + 95 ) AS col1
----
-1554

skipif mysql # not compatible
query I rowsort label-8733
SELECT 37 * + COUNT ( * ) * + 42 * - COUNT ( DISTINCT + 95 ) AS col1
----
-1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8734
SELECT DISTINCT - 8, - ( - 47 ) * 43 * - 21 - CAST( - + COUNT( * ) AS SIGNED ) AS col1
----
-8
-42440

skipif mysql # not compatible
query II rowsort label-8734
SELECT DISTINCT - 8, - ( - 47 ) * 43 * - 21 - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1
----
-8
-42440

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL 72 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL 72 / - 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT - COUNT( * ) - + 79
----
-80

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT - COUNT ( * ) - + 79
----
-80

query II rowsort
SELECT ALL - 27 AS col2, 86 col2
----
-27
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT 63 * - + COUNT( - 31 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8738
SELECT 63 * - + COUNT ( - 31 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT 0 - + 31 col1
----
-31

query I rowsort
SELECT 53 * 46
----
2438

query I rowsort
SELECT + 11 * - 86 - + - 77
----
-869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8742
SELECT 1 * + COUNT( * ) DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT 1 * + COUNT ( * ) / 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT COUNT( ALL 74 ) - 97 * - 27
----
2620

skipif mysql # not compatible
query I rowsort label-8743
SELECT COUNT ( ALL 74 ) - 97 * - 27
----
2620

query II rowsort
SELECT + 50, - 40 AS col0
----
50
-40

query II rowsort
SELECT ALL - 43 AS col0, 7
----
-43
7

query II rowsort
SELECT ALL - 46 AS col1, - 26 AS col2
----
-46
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT 84, 91 * + + COUNT( * ) * + - 89 AS col2
----
84
-8099

skipif mysql # not compatible
query II rowsort label-8747
SELECT 84, 91 * + + COUNT ( * ) * + - 89 AS col2
----
84
-8099

query I rowsort
SELECT DISTINCT 28 * 45 AS col0
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL - MIN( DISTINCT + ( - 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL - MIN ( DISTINCT + ( - 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - 40 * - COUNT( * ) * - 95 - + COALESCE ( + 49, + + 75 ) AS col0
----
-3849

skipif mysql # not compatible
query I rowsort label-8750
SELECT - 40 * - COUNT ( * ) * - 95 - + COALESCE ( + 49, + + 75 ) AS col0
----
-3849

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT + 20 + - + 61 + - - MAX( + 48 ) + + 84
----
91

skipif mysql # not compatible
query I rowsort label-8751
SELECT + 20 + - + 61 + - - MAX ( + 48 ) + + 84
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT COUNT( + 70 ) - - + 95 AS col0, COUNT( * ) * - SUM( + - 46 ) + ( + 22 ) AS col2
----
96
68

skipif mysql # not compatible
query II rowsort label-8752
SELECT COUNT ( + 70 ) - - + 95 AS col0, COUNT ( * ) * - SUM ( + - 46 ) + ( + 22 ) AS col2
----
96
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT 14 DIV - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-8753
SELECT 14 / - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL - CASE 93 WHEN 33 * - - COUNT( * ) THEN 59 ELSE - + 3 END + + - MIN( DISTINCT ( 94 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - CASE 93 WHEN 33 * - - COUNT ( * ) THEN 59 ELSE - + 3 END + + - MIN ( DISTINCT ( 94 ) )
----
-91

query I rowsort
SELECT 61 * 21 * - 30 + - 55 - 64 * + + 84
----
-43861

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL + COUNT( ALL + 19 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL + COUNT ( ALL + 19 ) col0
----
1

query I rowsort
SELECT ALL 40 + + 71
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-8758
SELECT DISTINCT COUNT( * ) * + 99 * + + 43 AS col0, 36 AS col2
----
4257
36

skipif mysql # not compatible
query II rowsort label-8758
SELECT DISTINCT COUNT ( * ) * + 99 * + + 43 AS col0, 36 AS col2
----
4257
36

query I rowsort
SELECT ALL - - 31 + 66
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT + CAST( - 67 AS SIGNED ) * - - 85 col2
----
-5695

skipif mysql # not compatible
query I rowsort label-8760
SELECT + CAST ( - 67 AS INTEGER ) * - - 85 col2
----
-5695

query II rowsort
SELECT 96 AS col1, + ( + - 59 ) col2
----
96
-59

query I rowsort
SELECT ALL + - 39 + - COALESCE ( - 9, 6 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8763
SELECT 38 + - COUNT ( * )
----
37

query I rowsort
SELECT DISTINCT + 46 * 75 AS col0
----
3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT DISTINCT + CAST( 53 AS SIGNED ) * - 81 * + 22 AS col1
----
-94446

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT + CAST ( 53 AS INTEGER ) * - 81 * + 22 AS col1
----
-94446

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT COUNT( * ) * - COUNT( + + 84 ) + 21, 25 col0
----
20
25

skipif mysql # not compatible
query II rowsort label-8766
SELECT COUNT ( * ) * - COUNT ( + + 84 ) + 21, 25 col0
----
20
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT 62 + + COUNT( ALL - 49 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8767
SELECT 62 + + COUNT ( ALL - 49 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT ( + 45 ) * - 86 * + - COUNT( * )
----
3870

skipif mysql # not compatible
query I rowsort label-8768
SELECT ( + 45 ) * - 86 * + - COUNT ( * )
----
3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT CAST( NULL AS SIGNED ) - + 20 * - + 35 + + COUNT( * ) + - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT CAST ( NULL AS INTEGER ) - + 20 * - + 35 + + COUNT ( * ) + - - 37
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 2, + 17, - 77 * 25 * - + 46 + + - 33 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT - COALESCE ( + + 62, + - COUNT( * ) - + 67, - - 99 * + 65 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT - COALESCE ( + + 62, + - COUNT ( * ) - + 67, - - 99 * + 65 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT ALL 52 + - 84 + + 95 * 37 AS col1, - 93 * + COUNT( * )
----
3483
-93

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL 52 + - 84 + + 95 * 37 AS col1, - 93 * + COUNT ( * )
----
3483
-93

query I rowsort
SELECT 97 + + - 49 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT ALL 64 DIV - - 70
----
0

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL 64 / - - 70
----
0

query I rowsort
SELECT NULLIF ( - 4, - 18 ) + + 51 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT CAST( NULL AS SIGNED ) / + 25 * SUM( DISTINCT - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT CAST ( NULL AS INTEGER ) / + 25 * SUM ( DISTINCT - 45 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8777
SELECT + ( - - COALESCE ( + + 60, 21 * - 14 DIV 83 * + 83 * COUNT( * ) * 78 ) ) * - 57 + + - COALESCE ( - + 63, + - 88 DIV + 14 ) * + + 25 AS col0
----
-1845

skipif mysql # not compatible
query I rowsort label-8777
SELECT + ( - - COALESCE ( + + 60, 21 * - 14 / 83 * + 83 * COUNT ( * ) * 78 ) ) * - 57 + + - COALESCE ( - + 63, + - 88 / + 14 ) * + + 25 AS col0
----
-1845

query I rowsort
SELECT ALL 44 + 3 AS col2
----
47

query I rowsort
SELECT 98 + 68 col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL + CASE - 2 WHEN 34 THEN - - 53 * COUNT( * ) + + 93 + - 85 WHEN 70 THEN NULL ELSE + + 63 END * + 24
----
1512

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL + CASE - 2 WHEN 34 THEN - - 53 * COUNT ( * ) + + 93 + - 85 WHEN 70 THEN NULL ELSE + + 63 END * + 24
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8781
SELECT ALL - 55 + - - 32 + + COUNT( * ) * - + 72 AS col2, 17 + + 1 + + 13 + - 47 + + 38 - - 16 * + - 16 * CASE 23 WHEN 80 * - 70 * 1 * + 90 THEN + 48 * + 58 + - 87 * + ( + 68 ) + + 74 WHEN + + 99 * 51 + + - CAST( NULL AS SIGNED ) THEN NULL END
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-8781
SELECT ALL - 55 + - - 32 + + COUNT ( * ) * - + 72 AS col2, 17 + + 1 + + 13 + - 47 + + 38 - - 16 * + - 16 * CASE 23 WHEN 80 * - 70 * 1 * + 90 THEN + 48 * + 58 + - 87 * + ( + 68 ) + + 74 WHEN + + 99 * 51 + + - CAST ( NULL AS INTEGER ) THEN NULL END
----
-95
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT MIN( DISTINCT NULLIF ( - 15, 47 ) ), 18 AS col1
----
-15
18

skipif mysql # not compatible
query II rowsort label-8782
SELECT MIN ( DISTINCT NULLIF ( - 15, 47 ) ), 18 AS col1
----
-15
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT CASE + 83 WHEN - 83 + 80 * + 78 * + MIN( 56 ) + 71 - + 92 THEN 48 * + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT CASE + 83 WHEN - 83 + 80 * + 78 * + MIN ( 56 ) + 71 - + 92 THEN 48 * + 60 END
----
NULL

query I rowsort
SELECT + - 74 * 42 + - - 8 col0
----
-3100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8785
SELECT ALL ( - 20 ) - + + CASE 73 WHEN COUNT( * ) * - CAST( + 71 AS SIGNED ) THEN 36 + - 79 + - 62 WHEN - 17 THEN NULL WHEN + 14 THEN + 63 * - 43 ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL ( - 20 ) - + + CASE 73 WHEN COUNT ( * ) * - CAST ( + 71 AS INTEGER ) THEN 36 + - 79 + - 62 WHEN - 17 THEN NULL WHEN + 14 THEN + 63 * - 43 ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 57 * 87 AS col0
----
4959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8787
SELECT - 26 * 11, - COUNT( ALL - - CAST( NULL AS SIGNED ) ) * 73 - + 86 DIV 80 + - - 85 + - 9 AS col0
----
-286
75

skipif mysql # not compatible
query II rowsort label-8787
SELECT - 26 * 11, - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) * 73 - + 86 / 80 + - - 85 + - 9 AS col0
----
-286
75

query I rowsort
SELECT ALL - ( - 61 ) * - - 9
----
549

query I rowsort
SELECT + 70 - - 60
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT ALL - CASE - - 99 WHEN + 60 * 44 * 69 THEN NULLIF ( - ( + 33 ), - 23 ) * 68 * - 37 / + 98 + + + 10 + - - COUNT( * ) END AS col0, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-8790
SELECT ALL - CASE - - 99 WHEN + 60 * 44 * 69 THEN NULLIF ( - ( + 33 ), - 23 ) * 68 * - 37 / + 98 + + + 10 + - - COUNT ( * ) END AS col0, 26
----
NULL
26

query I rowsort
SELECT ALL 60 * 5 AS col2
----
300

query I rowsort
SELECT ALL + 42 - 84
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8793
SELECT - 7 - CAST( - 99 AS SIGNED ) + - 31 + + + 29 DIV 22 * + 35 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-8793
SELECT - 7 - CAST ( - 99 AS INTEGER ) + - 31 + + + 29 / 22 * + 35 AS col2
----
96

query I rowsort
SELECT + 18 * - + 99 * 60 AS col2
----
-106920

query I rowsort
SELECT - 24 + - - 60 AS col0
----
36

query I rowsort
SELECT - ( CASE 15 WHEN 28 + - - 62 + - 67 * - 91 + + + 61 THEN NULL WHEN - + 66 THEN - + 7 + + 44 * - 87 WHEN + ( - 45 ) THEN NULL ELSE 30 END )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8797
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT + ( MIN( DISTINCT + 13 ) ) col0
----
13

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT + ( MIN ( DISTINCT + 13 ) ) col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL MAX( + 85 ) * + ( - 92 ) / COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL MAX ( + 85 ) * + ( - 92 ) / COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 59, 35 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL - 64 * - - MAX( ALL 92 ) + + 74 * + 36 * - 6 + - 97 AS col0
----
-21969

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - 64 * - - MAX ( ALL 92 ) + + 74 * + 36 * - 6 + - 97 AS col0
----
-21969

query I rowsort
SELECT DISTINCT + - ( - + 5 ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT + - CAST( NULL AS SIGNED ) * + 42 * 8 - + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT + - CAST ( NULL AS INTEGER ) * + 42 * 8 - + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT ALL + + COALESCE ( + + 43, + + 82 / + + COUNT( * ) * - NULLIF ( ( 51 ), - - 88 + + 22 ), + 10 ) * - 28 + + 14 + - - 83 - + + CAST( NULL AS SIGNED ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + + COALESCE ( + + 43, + + 82 / + + COUNT ( * ) * - NULLIF ( ( 51 ), - - 88 + + 22 ), + 10 ) * - 28 + + 14 + - - 83 - + + CAST ( NULL AS INTEGER ) * - 5
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8806
SELECT - + 44 + 80 + - 37 + - 89 + - ( + CAST( NULL AS DECIMAL ) ) + - + 6 / 74 * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT - + 44 + 80 + - 37 + - 89 + - ( + CAST ( NULL AS REAL ) ) + - + 6 / 74 * - 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT ( - + NULLIF ( - 98, 98 * 92 - + 83 + + CASE CASE - 11 WHEN + CAST( NULL AS SIGNED ) THEN - + CASE WHEN 57 IN ( - 75 / + + 74 / AVG ( 39 ) + + 57, + ( 52 ) * - 24 - - 22 + - + 46 - - NULLIF ( + 83, + 5 + + + 30 + + - 95 + - CASE - 51 WHEN + 54 * + 14 THEN + 75 + - 79 END / + 19 ) * - 54 - + 71, - + ( - 67 ) ) THEN + 44 * - 14 END WHEN + AVG ( DISTINCT + 15 ) + - NULLIF ( + 56, + 22 + - 20 ) THEN + 29 ELSE NULL END WHEN 99 + COUNT( * ) * 63 THEN 1 WHEN 42 THEN COUNT( * ) * NULLIF ( 31 * - 56, - 12 ) ELSE 53 * - ( 57 * 87 ) - 79 END * 38 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8807
SELECT ( - + NULLIF ( - 98, 98 * 92 - + 83 + + CASE CASE - 11 WHEN + CAST ( NULL AS INTEGER ) THEN - + CASE WHEN 57 IN ( - 75 / + + 74 / AVG ( 39 ) + + 57, + ( 52 ) * - 24 - - 22 + - + 46 - - NULLIF ( + 83, + 5 + + + 30 + + - 95 + - CASE - 51 WHEN + 54 * + 14 THEN + 75 + - 79 END / + 19 ) * - 54 - + 71, - + ( - 67 ) ) THEN + 44 * - 14 END WHEN + AVG ( DISTINCT + 15 ) + - NULLIF ( + 56, + 22 + - 20 ) THEN + 29 ELSE NULL END WHEN 99 + COUNT ( * ) * 63 THEN 1 WHEN 42 THEN COUNT ( * ) * NULLIF ( 31 * - 56, - 12 ) ELSE 53 * - ( 57 * 87 ) - 79 END * 38 ) ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT - - 70 + + 0 DIV 34 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8808
SELECT - - 70 + + 0 / 34 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + COUNT( DISTINCT - - ( + + 26 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8809
SELECT + COUNT ( DISTINCT - - ( + + 26 ) ) AS col0
----
1

query I rowsort
SELECT ALL 0 * + + ( 21 ) + + + ( + ( 68 ) )
----
68

query I rowsort
SELECT - + 92 * + + 68 + - - 93 col1
----
-6163

query I rowsort
SELECT + 88 - + + 66 + - 40 * 44
----
-1738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8813
SELECT ALL - - MAX( DISTINCT - 7 ) * 32 DIV 21 + 23 - - CAST( - 88 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - - MAX ( DISTINCT - 7 ) * 32 / 21 + 23 - - CAST ( - 88 AS INTEGER ) AS col2
----
-75

query I rowsort
SELECT - 1 * + 12 + + 79 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + - CASE ( - + 87 ) WHEN - + 69 THEN NULL ELSE + 94 END + - COUNT( * ) + ( + + 43 ) + - 7
----
-59

skipif mysql # not compatible
query I rowsort label-8815
SELECT + - CASE ( - + 87 ) WHEN - + 69 THEN NULL ELSE + 94 END + - COUNT ( * ) + ( + + 43 ) + - 7
----
-59

query I rowsort
SELECT ALL - 63 * + 42 AS col2
----
-2646

query II rowsort
SELECT DISTINCT 61 AS col1, 99 AS col2
----
61
99

query II rowsort
SELECT ALL - 15, 88 * - ( 31 ) - - 56 - - 16 * - 32 AS col2
----
-15
-3184

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT + 31 * - COUNT( * ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-8819
SELECT + 31 * - COUNT ( * ) col2
----
-31

query I rowsort
SELECT ALL - 1 * + 14 AS col1
----
-14

query I rowsort
SELECT + NULLIF ( 7, + 28 / 74 + 27 ) + - + 92 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT ALL 89 DIV 54 * + + 67 * - 86
----
-5762

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL 89 / 54 * + + 67 * - 86
----
-5762

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT + 95 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8823
SELECT + 95 / + 48 AS col1
----
1

query I rowsort
SELECT - 1 * 10
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT ALL 53 DIV - 23 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL 53 / - 23 AS col0
----
-2

query I rowsort
SELECT + 65 + + 0 AS col0
----
65

query I rowsort
SELECT ALL ( - 52 ) AS col2
----
-52

query I rowsort
SELECT ALL 47 + - + 46 - ( + 5 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT DISTINCT 92 DIV - 4 + - + ( + 79 ) + + 42 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT 92 / - 4 + - + ( + 79 ) + + 42 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT ALL - 47 / + 40 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - 47 / + 40 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT ALL 67 DIV + 7 + - 15 * 86
----
-1281

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL 67 / + 7 + - 15 * 86
----
-1281

query I rowsort
SELECT + 91 * - 13 + + 51 AS col0
----
-1132

onlyif mysql # aggregate syntax: 
query II rowsort label-8833
SELECT + - 81 col1, CASE + + 92 WHEN ( - COALESCE ( - + 23, - AVG ( 72 ) / + 43 + - 24 + - 0 * - - 71, + 95 ) ) THEN + 66 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END
----
-81
1

skipif mysql # not compatible
query II rowsort label-8833
SELECT + - 81 col1, CASE + + 92 WHEN ( - COALESCE ( - + 23, - AVG ( 72 ) / + 43 + - 24 + - 0 * - - 71, + 95 ) ) THEN + 66 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END
----
-81
1

query II rowsort
SELECT ALL + + 40 AS col1, ( 27 ) AS col0
----
40
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL 79 + - COUNT( * ) + + + ( COUNT( * ) ) * 33 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL 79 + - COUNT ( * ) + + + ( COUNT ( * ) ) * 33 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT - - MIN( + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT - - MIN ( + 60 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT - 85 * - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - 85 * - COUNT ( * ) AS col1
----
85

query II rowsort
SELECT 90, 67 + - 28 AS col0
----
90
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT + 81 * 67 AS col1, 11 * + NULLIF ( 43, + 70 / - + 86 + COUNT( * ) * 89 + - - 18 )
----
5427
473

skipif mysql # not compatible
query II rowsort label-8840
SELECT + 81 * 67 AS col1, 11 * + NULLIF ( 43, + 70 / - + 86 + COUNT ( * ) * 89 + - - 18 )
----
5427
473

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT + 50 col1, - COUNT( * )
----
50
-1

skipif mysql # not compatible
query II rowsort label-8841
SELECT + 50 col1, - COUNT ( * )
----
50
-1

query I rowsort
SELECT 48 + 8
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT - 48 * - CAST( 87 AS SIGNED ) * - 31 AS col0
----
-129456

skipif mysql # not compatible
query I rowsort label-8843
SELECT - 48 * - CAST ( 87 AS INTEGER ) * - 31 AS col0
----
-129456

query II rowsort
SELECT ALL 62 AS col2, - 20 * + 68 + + + 15
----
62
-1345

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + CASE - AVG ( ALL 86 ) WHEN + NULLIF ( + 37, - 2 ) * + + 15 * + 4 - - 81 THEN NULL WHEN + 2 * SUM( - - 59 ) THEN - 79 * + 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + CASE - AVG ( ALL 86 ) WHEN + NULLIF ( + 37, - 2 ) * + + 15 * + 4 - - 81 THEN NULL WHEN + 2 * SUM ( - - 59 ) THEN - 79 * + 67 END AS col2
----
NULL

query I rowsort
SELECT ALL - 20 * - - 21 AS col1
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT COALESCE ( 78, + 50 + + - 63 ) + - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8847
SELECT COALESCE ( 78, + 50 + + - 63 ) + - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8848
SELECT DISTINCT + 96 DIV + - SUM( ALL - + 19 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + 96 / + - SUM ( ALL - + 19 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT 47 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8849
SELECT 47 * COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT CASE - + 16 WHEN + 66 THEN + + COUNT( * ) END * + - 3 / - 90 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT CASE - + 16 WHEN + 66 THEN + + COUNT ( * ) END * + - 3 / - 90 col2
----
NULL

query II rowsort
SELECT ALL 7 + + 72 + - 4 AS col0, ( + 53 )
----
75
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT 66 - - ( - - 65 ) + + - 99 * + 9 + COUNT( * ) AS col1
----
-759

skipif mysql # not compatible
query I rowsort label-8852
SELECT 66 - - ( - - 65 ) + + - 99 * + 9 + COUNT ( * ) AS col1
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT MIN( 22 ) - 28 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8853
SELECT MIN ( 22 ) - 28 AS col0
----
-6

query I rowsort
SELECT DISTINCT 6 + + 88 + 82 col2
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL ( + 85 ) + SUM( DISTINCT - 44 )
----
41

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL ( + 85 ) + SUM ( DISTINCT - 44 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT ALL COUNT( * ) + 26 + - 52 AS col2, 67
----
-25
67

skipif mysql # not compatible
query II rowsort label-8856
SELECT ALL COUNT ( * ) + 26 + - 52 AS col2, 67
----
-25
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8857
SELECT COUNT( * ) DIV - SUM( - 92 ) * - - 90 * + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8857
SELECT COUNT ( * ) / - SUM ( - 92 ) * - - 90 * + 56 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT MAX( + - 79 ) * - 96
----
7584

skipif mysql # not compatible
query I rowsort label-8858
SELECT MAX ( + - 79 ) * - 96
----
7584

query I rowsort
SELECT 35 * + 97 * 25 + - - 24 AS col0
----
84899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL CAST( + 27 AS SIGNED ) * + 60 * 20
----
32400

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL CAST ( + 27 AS INTEGER ) * + 60 * 20
----
32400

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT 95 - - - 15 * + - COUNT( + 5 )
----
110

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT 95 - - - 15 * + - COUNT ( + 5 )
----
110

query I rowsort
SELECT ALL - 31 * - 45 AS col0
----
1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL + 56 - 12 + + CAST( NULL AS SIGNED ) - - CASE + 67 WHEN - 22 / + COALESCE ( + - 30, - 7, 31 * - 50 / + - 60 * + 91, + - 31 ) THEN + + 23 ELSE + CAST( NULL AS SIGNED ) * + + 95 END * + CASE WHEN NOT NULL BETWEEN ( NULL ) AND 72 THEN 91 END * 82 - NULLIF ( - 64, - - AVG ( + 97 ) ) * + 78 * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL + 56 - 12 + + CAST ( NULL AS INTEGER ) - - CASE + 67 WHEN - 22 / + COALESCE ( + - 30, - 7, 31 * - 50 / + - 60 * + 91, + - 31 ) THEN + + 23 ELSE + CAST ( NULL AS INTEGER ) * + + 95 END * + CASE WHEN NOT NULL BETWEEN ( NULL ) AND 72 THEN 91 END * 82 - NULLIF ( - 64, - - AVG ( + 97 ) ) * + 78 * - 27 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8864
SELECT + 87 * - - 48, 8 + 18 DIV + - 90 AS col0
----
4176
8

skipif mysql # not compatible
query II rowsort label-8864
SELECT + 87 * - - 48, 8 + 18 / + - 90 AS col0
----
4176
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT - 96 DIV - - 35
----
-2

skipif mysql # not compatible
query I rowsort label-8865
SELECT - 96 / - - 35
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT 83 DIV + ( COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8866
SELECT 83 / + ( COUNT ( * ) ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8867
SELECT + 22 DIV - CAST( - 38 AS SIGNED ) * - 78 + + 20 - - CASE - 24 WHEN - - CASE - + COALESCE ( COUNT( * ), - 78 + - 34 * + 44, SUM( + - 92 ) ) WHEN + 79 + + CAST( - CAST( - 95 AS SIGNED ) AS SIGNED ) + + CASE - 39 WHEN - SUM( ALL + 64 ) THEN 29 END * AVG ( ALL + 92 ) THEN NULL WHEN + - 65 THEN + 45 ELSE NULL END + 82 + - 21 DIV + 97 THEN NULL WHEN + COALESCE ( + MIN( ALL - 91 ), + + ( + COUNT( * ) ) ) + + - COUNT( - - 9 ) + + 68 THEN - 32 END + + 2 * + 11 * - 25 + - NULLIF ( + 95, CASE + 37 WHEN - SUM( ALL + 1 ) + 23 THEN NULL ELSE + 47 + 13 END ) AS col1
----
-657

skipif mysql # not compatible
query I rowsort label-8867
SELECT + 22 / - CAST ( - 38 AS INTEGER ) * - 78 + + 20 - - CASE - 24 WHEN - - CASE - + COALESCE ( COUNT ( * ), - 78 + - 34 * + 44, SUM ( + - 92 ) ) WHEN + 79 + + CAST ( - CAST ( - 95 AS INTEGER ) AS INTEGER ) + + CASE - 39 WHEN - SUM ( ALL + 64 ) THEN 29 END * AVG ( ALL + 92 ) THEN NULL WHEN + - 65 THEN + 45 ELSE NULL END + 82 + - 21 / + 97 THEN NULL WHEN + COALESCE ( + MIN ( ALL - 91 ), + + ( + COUNT ( * ) ) ) + + - COUNT ( - - 9 ) + + 68 THEN - 32 END + + 2 * + 11 * - 25 + - NULLIF ( + 95, CASE + 37 WHEN - SUM ( ALL + 1 ) + 23 THEN NULL ELSE + 47 + 13 END ) AS col1
----
-657

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8868
SELECT - 79 * - COUNT( * ), SUM( DISTINCT + + ( - 77 ) ) DIV + COUNT( * ) + - + 75 AS col2
----
79
-152

skipif mysql # not compatible
query II rowsort label-8868
SELECT - 79 * - COUNT ( * ), SUM ( DISTINCT + + ( - 77 ) ) / + COUNT ( * ) + - + 75 AS col2
----
79
-152

onlyif mysql # DIV for integer division: 
query II rowsort label-8869
SELECT 32 + + 96 AS col1, 91 * 58 DIV 91 AS col1
----
128
58

skipif mysql # not compatible
query II rowsort label-8869
SELECT 32 + + 96 AS col1, 91 * 58 / 91 AS col1
----
128
58

query I rowsort
SELECT DISTINCT - - ( 28 ) AS col2
----
28

query I rowsort
SELECT DISTINCT - ( - 63 )
----
63

query I rowsort
SELECT + 46 * 63 * + 29 * - 73 AS col1
----
-6135066

query I rowsort
SELECT DISTINCT - + 5 * + 73
----
-365

query I rowsort
SELECT DISTINCT - + 88 * + ( - 28 )
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT + 3 + + + COUNT( * ) * + 49
----
52

skipif mysql # not compatible
query I rowsort label-8875
SELECT + 3 + + + COUNT ( * ) * + 49
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL + 80 * MIN( DISTINCT 72 )
----
5760

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL + 80 * MIN ( DISTINCT 72 )
----
5760

query I rowsort
SELECT 32 * + - 23 * + 41
----
-30176

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT + + COUNT( * ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + + COUNT ( * ) + 53
----
54

query I rowsort
SELECT ALL - 38 + 30 + + + 10 + 87 AS col1
----
89

query I rowsort
SELECT ALL + 83 + - 78
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8881
SELECT DISTINCT - 56 + + - 45 + - COUNT( * ) DIV + - 17 * + - 2
----
-101

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - 56 + + - 45 + - COUNT ( * ) / + - 17 * + - 2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL + 84 + + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + 84 + + COUNT ( * ) AS col1
----
85

query II rowsort
SELECT 38 AS col0, 71
----
38
71

query I rowsort
SELECT DISTINCT + 66 + + - 32 AS col1
----
34

query I rowsort
SELECT 72 + + 56
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT 7 * 25 * - - NULLIF ( MIN( - 24 ), - 91 - - COALESCE ( + - 61, - 53 + 38 ) )
----
-4200

skipif mysql # not compatible
query I rowsort label-8886
SELECT 7 * 25 * - - NULLIF ( MIN ( - 24 ), - 91 - - COALESCE ( + - 61, - 53 + 38 ) )
----
-4200

query I rowsort
SELECT ALL + 48 * + - 64 col2
----
-3072

query I rowsort
SELECT DISTINCT NULLIF ( - 65, + 1 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL + 39 + + + 69 + - - MIN( DISTINCT + 52 )
----
160

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL + 39 + + + 69 + - - MIN ( DISTINCT + 52 )
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8890
SELECT 87 + MAX( ALL - 23 ) AS col0, - 96 * - 57 + CASE - 78 WHEN - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + - 30 + ( 90 ) / + + 88 THEN NULL WHEN + MAX( ALL 66 ) THEN - 54 END AS col1, - CAST( NULL AS SIGNED )
----
64
NULL
NULL

skipif mysql # not compatible
query III rowsort label-8890
SELECT 87 + MAX ( ALL - 23 ) AS col0, - 96 * - 57 + CASE - 78 WHEN - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + - 30 + ( 90 ) / + + 88 THEN NULL WHEN + MAX ( ALL 66 ) THEN - 54 END AS col1, - CAST ( NULL AS INTEGER )
----
64
NULL
NULL

query I rowsort
SELECT ALL 93 * - + 87
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT COUNT( * ) * 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8892
SELECT COUNT ( * ) * 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - MAX( ALL - - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-8893
SELECT - MAX ( ALL - - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - 75 + - CASE - 40 WHEN 63 THEN + + COUNT( * ) WHEN COUNT( * ) - + 43 THEN NULL END * + 47 + - ( 56 ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT - 75 + - CASE - 40 WHEN 63 THEN + + COUNT ( * ) WHEN COUNT ( * ) - + 43 THEN NULL END * + 47 + - ( 56 ) * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL 87 - + - CASE + + CASE + 89 WHEN 7 - - 46 THEN + 10 + + 16 WHEN + 79 * + 9 / - + 11 * 9 + + 41 THEN NULL WHEN - - SUM( - 21 ) * + 66 + - COUNT( * ) THEN 43 ELSE NULL END WHEN - 17 + + - 37 - + 42 * - - ( - - 79 ) THEN - 29 * 11 - + + SUM( + 96 ) + + 0 - - SUM( - ( + 31 ) ) - - 99 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 87 - + - CASE + + CASE + 89 WHEN 7 - - 46 THEN + 10 + + 16 WHEN + 79 * + 9 / - + 11 * 9 + + 41 THEN NULL WHEN - - SUM ( - 21 ) * + 66 + - COUNT ( * ) THEN 43 ELSE NULL END WHEN - 17 + + - 37 - + 42 * - - ( - - 79 ) THEN - 29 * 11 - + + SUM ( + 96 ) + + 0 - - SUM ( - ( + 31 ) ) - - 99 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 94, 93 * + 61 * - 29 - + - 28 * + 3 ) AS col0
----
-94

query I rowsort
SELECT DISTINCT - 22 - 67 + - ( - 15 )
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8898
SELECT + + 7 * - 35 / 76 - - CAST( NULL AS DECIMAL ) + - + 29 * - - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT + + 7 * - 35 / 76 - - CAST ( NULL AS REAL ) + - + 29 * - - 3 AS col2
----
NULL

query II rowsort
SELECT ALL + 88 AS col1, 27
----
88
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8900
SELECT - 87 DIV + 18 + - 44 + 83 * + - COUNT( * ) + - COALESCE ( 2, - CAST( NULL AS SIGNED ) * 20 * 32 DIV - 61 DIV - - 6 - + - COUNT( - - 18 ) ) + + 62
----
-71

skipif mysql # not compatible
query I rowsort label-8900
SELECT - 87 / + 18 + - 44 + 83 * + - COUNT ( * ) + - COALESCE ( 2, - CAST ( NULL AS INTEGER ) * 20 * 32 / - 61 / - - 6 - + - COUNT ( - - 18 ) ) + + 62
----
-71

query I rowsort
SELECT ALL + - ( + + 66 )
----
-66

query I rowsort
SELECT + 80 + + 35 AS col0
----
115

query I rowsort
SELECT + 54 + - 4 * + 56
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT ALL 24 * + CAST( NULL AS SIGNED ) + - 38 + - 97 + - - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL 24 * + CAST ( NULL AS INTEGER ) + - 38 + - 97 + - - 82 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT - + 8 * 18 + + CAST( - - 76 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-8905
SELECT - + 8 * 18 + + CAST ( - - 76 AS INTEGER )
----
-68

query II rowsort
SELECT + + 13 AS col0, NULLIF ( + 96, - 5 ) AS col0
----
13
96

query I rowsort
SELECT ALL 51 * - 61
----
-3111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT ALL + CAST( - 7 AS SIGNED ) * - 26 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + CAST ( - 7 AS INTEGER ) * - 26 AS col1
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT + SUM( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-8909
SELECT + SUM ( - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8910
SELECT - COALESCE ( - CASE + 78 WHEN + 34 * COUNT( * ) * + CAST( - 80 AS SIGNED ) * + - 75 + - MIN( DISTINCT - 6 ) - - - 16 THEN + + 25 * 44 * + + COUNT( * ) * 64 * + - 43 END, ( - 66 ) DIV + + COALESCE ( - 21, + - 67 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8910
SELECT - COALESCE ( - CASE + 78 WHEN + 34 * COUNT ( * ) * + CAST ( - 80 AS INTEGER ) * + - 75 + - MIN ( DISTINCT - 6 ) - - - 16 THEN + + 25 * 44 * + + COUNT ( * ) * 64 * + - 43 END, ( - 66 ) / + + COALESCE ( - 21, + - 67 ) )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8911
SELECT + 43 + 53 DIV + COUNT( * ) - - 48 + + - 39 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-8911
SELECT + 43 + 53 / + COUNT ( * ) - - 48 + + - 39 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8912
SELECT ALL COUNT( * ) * + - 10 + 45 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL COUNT ( * ) * + - 10 + 45 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + + 20 * ( + ( 53 ) ) * + + 78 - 88 + - ( - COUNT( * ) ) * 74 * - 49
----
78966

skipif mysql # not compatible
query I rowsort label-8913
SELECT + + 20 * ( + ( 53 ) ) * + + 78 - 88 + - ( - COUNT ( * ) ) * 74 * - 49
----
78966

query I rowsort
SELECT + + 7 * 4 + + - 82 + 61 * + - 83 * - + 58 AS col2
----
293600

query II rowsort
SELECT + 7 AS col2, + 36 AS col2
----
7
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT - 66 DIV + - 3 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8916
SELECT - 66 / + - 3 AS col0
----
22

query I rowsort
SELECT ALL - 42 * - 23 + 34
----
1000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT + 72 * - ( + CAST( ( + + 80 ) AS SIGNED ) )
----
-5760

skipif mysql # not compatible
query I rowsort label-8918
SELECT + 72 * - ( + CAST ( ( + + 80 ) AS INTEGER ) )
----
-5760

query I rowsort
SELECT + 89 + COALESCE ( - + 55, + 82, - + 18 + 7 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8920
SELECT DISTINCT ( - CAST( - 76 AS SIGNED ) ) * - COUNT( * ) DIV 91 * + 62 + + + 58 + + - 93
----
-35

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT ( - CAST ( - 76 AS INTEGER ) ) * - COUNT ( * ) / 91 * + 62 + + + 58 + + - 93
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT ALL 68 * COALESCE ( + 69, 64 * + - ( - 93 ) + - 91 * + 10 DIV + 75 ) + 95
----
4787

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL 68 * COALESCE ( + 69, 64 * + - ( - 93 ) + - 91 * + 10 / + 75 ) + 95
----
4787

query I rowsort
SELECT ALL COALESCE ( + + 57, 80 * + 24 + 38, - ( 52 ) ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT ALL + 52 + - 85 DIV + 21 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + 52 + - 85 / + 21 AS col1
----
48

query I rowsort
SELECT - 18 * 60
----
-1080

query I rowsort
SELECT ALL + 80 * 68
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT + COUNT( ALL + - 73 ) * - - 67 + 47 col1
----
114

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT + COUNT ( ALL + - 73 ) * - - 67 + 47 col1
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8927
SELECT ALL COALESCE ( - + 59, - - 89 DIV + + 62 + + 62 + COUNT( * ) * + - 7 * - 50 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL COALESCE ( - + 59, - - 89 / + + 62 + + 62 + COUNT ( * ) * + - 7 * - 50 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT COUNT( * ) * - + 28
----
-28

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT COUNT ( * ) * - + 28
----
-28

query II rowsort
SELECT ALL ( 48 ), + 4 AS col2
----
48
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT COALESCE ( - COALESCE ( 97, 50 ), + + 82 * - ( COUNT( 28 ) ) * + + 24 * COUNT( * ) * + ( - 13 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT COALESCE ( - COALESCE ( 97, 50 ), + + 82 * - ( COUNT ( 28 ) ) * + + 24 * COUNT ( * ) * + ( - 13 ) )
----
-97

query I rowsort
SELECT DISTINCT ( 83 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8932
SELECT ALL - 17 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - 17 / + 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT - 42 * + 33 DIV COUNT( * )
----
-1386

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 42 * + 33 / COUNT ( * )
----
-1386

query I rowsort
SELECT DISTINCT - 98 * 17 col2
----
-1666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT DISTINCT - - CAST( + 61 AS SIGNED ) * + 51 + - - 89 + 24 * 2
----
3248

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - - CAST ( + 61 AS INTEGER ) * + 51 + - - 89 + 24 * 2
----
3248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8936
SELECT + COUNT( * ) DIV + ( 6 ) * 28 + + - 44 * + 28 AS col0
----
-1232

skipif mysql # not compatible
query I rowsort label-8936
SELECT + COUNT ( * ) / + ( 6 ) * 28 + + - 44 * + 28 AS col0
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL + + COUNT( DISTINCT + 16 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL + + COUNT ( DISTINCT + 16 ) AS col0
----
1

query I rowsort
SELECT ALL - 90 * - 49 AS col0
----
4410

query I rowsort
SELECT ALL + + ( - 13 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT + ( + 65 ) * 40 * - - 49 + 37
----
127437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT DISTINCT + CAST( + + ( - COUNT( * ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT ALL 71 DIV - - 57 + + 52 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 71 / - - 57 + + 52 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT + + COUNT( * ) * - COUNT( * ) - + 55
----
-56

skipif mysql # not compatible
query I rowsort label-8943
SELECT + + COUNT ( * ) * - COUNT ( * ) - + 55
----
-56

query II rowsort
SELECT + + 83 + - 21, NULLIF ( 75, - 65 ) * + 10 + 62 - + 9 AS col1
----
62
803

query I rowsort
SELECT DISTINCT + + ( - 81 ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8946
SELECT ALL 95 * + NULLIF ( - + MAX( DISTINCT + - 4 ), + + 77 * + + COALESCE ( + - 3, - + 82 DIV 11, - - 19 - + 85 * - 53, - - ( 43 ) ) * - 30 + + ( + - NULLIF ( + - SUM( ALL + 96 ), - CAST( NULL AS DECIMAL ) ) ) - + + 86 * COUNT( * ) - + - NULLIF ( + + 85, - 18 * - 32 * + ( 61 ) ) * - - 43 + + + COUNT( * ) ) * - 61 + COALESCE ( - + 75, + CAST( NULL AS SIGNED ) * + - 54 + - CAST( ( + - NULLIF ( 16, + 15 ) ) AS SIGNED ) + - + ( - 53 ) - AVG ( DISTINCT 42 ) * 92 DIV 77 * CAST( MAX( ALL 82 ) - 62 AS SIGNED ), 66 + 5 ) + - 54 * 87 AS col1
----
-27953

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL 95 * + NULLIF ( - + MAX ( DISTINCT + - 4 ), + + 77 * + + COALESCE ( + - 3, - + 82 / 11, - - 19 - + 85 * - 53, - - ( 43 ) ) * - 30 + + ( + - NULLIF ( + - SUM ( ALL + 96 ), - CAST ( NULL AS REAL ) ) ) - + + 86 * COUNT ( * ) - + - NULLIF ( + + 85, - 18 * - 32 * + ( 61 ) ) * - - 43 + + + COUNT ( * ) ) * - 61 + COALESCE ( - + 75, + CAST ( NULL AS INTEGER ) * + - 54 + - CAST ( ( + - NULLIF ( 16, + 15 ) ) AS INTEGER ) + - + ( - 53 ) - AVG ( DISTINCT 42 ) * 92 / 77 * CAST ( MAX ( ALL 82 ) - 62 AS INTEGER ), 66 + 5 ) + - 54 * 87 AS col1
----
-27953

query I rowsort
SELECT DISTINCT 89 * + 42
----
3738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8948
SELECT ALL - 37 * 85 / + 64 * + + CAST( + 50 AS SIGNED ) - - SUM( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - 37 * 85 / + 64 * + + CAST ( + 50 AS INTEGER ) - - SUM ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 84 * - ( + 37 ) - + 17 - - + 70 * - ( - + 77 ) + + 66 * - 32
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-8950
SELECT + 95 + - + COUNT( * ) + 32 AS col2, 67 * - - 18 AS col2
----
126
1206

skipif mysql # not compatible
query II rowsort label-8950
SELECT + 95 + - + COUNT ( * ) + 32 AS col2, 67 * - - 18 AS col2
----
126
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL MIN( + ( + 11 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL MIN ( + ( + 11 ) ) AS col2
----
11

query I rowsort
SELECT ALL + 60 * + 83 - ( - + 36 ) AS col2
----
5016

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT + 82 DIV + - 8
----
-10

skipif mysql # not compatible
query I rowsort label-8953
SELECT + 82 / + - 8
----
-10

query I rowsort
SELECT - 88 * + 89
----
-7832

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ( - ( SUM( - 22 ) ) ) + 69
----
91

skipif mysql # not compatible
query I rowsort label-8955
SELECT ( - ( SUM ( - 22 ) ) ) + 69
----
91

query I rowsort
SELECT ALL 41 - - + 54
----
95

query I rowsort
SELECT 26 * - 34
----
-884

onlyif mysql # DIV for integer division: 
query II rowsort label-8958
SELECT ALL 96 AS col0, - 80 DIV 45 DIV - 33 + + 44
----
96
44

skipif mysql # not compatible
query II rowsort label-8958
SELECT ALL 96 AS col0, - 80 / 45 / - 33 + + 44
----
96
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT 6 AS col2, COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-8959
SELECT 6 AS col2, COUNT ( * )
----
6
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8960
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 45 + 87 * + 93
----
8136

query I rowsort
SELECT 16 * + - 78 AS col0
----
-1248

query I rowsort
SELECT ALL - 69 * + + 79 * 37 AS col0
----
-201687

query I rowsort
SELECT + 49 + + 87 * - 31 * - 4
----
10837

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT DISTINCT - SUM( DISTINCT 17 ) * ( - 6 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-8965
SELECT DISTINCT - SUM ( DISTINCT 17 ) * ( - 6 ) AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT ( + + COUNT( DISTINCT - 11 ) ) + CASE + 91 WHEN + 59 * - + 71 + - + 40 * CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN - - 56 - - 79 / + 55 * 42 THEN 70 ELSE NULL END * - - 52 + - - 73 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT ( + + COUNT ( DISTINCT - 11 ) ) + CASE + 91 WHEN + 59 * - + 71 + - + 40 * CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN - - 56 - - 79 / + 55 * 42 THEN 70 ELSE NULL END * - - 52 + - - 73 col2
----
NULL

query II rowsort
SELECT DISTINCT - 79, - 46 col1
----
-79
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT 41 + + 7 * - + CASE - + CASE COALESCE ( ( - + 58 ), - - 40 + + - 68, + 37 ) WHEN - 1 * 48 + 39 / + NULLIF ( 79, + - 58 ) + NULLIF ( + COUNT( * ), + + 33 + - 89 - - CASE + 90 WHEN + COUNT( * ) * 98 THEN + COUNT( * ) + 23 ELSE NULL END ) + 20 THEN NULL WHEN MAX( DISTINCT + 93 ) THEN NULL ELSE - 7 END WHEN + 13 + + 30 - - 10 THEN - 43 + - 16 * 80 WHEN - + 49 THEN COUNT( ALL - CASE + 29 WHEN COALESCE ( - 62, + COALESCE ( 47, 94 ), 23 * 8 ) THEN - 54 WHEN + 12 THEN - COALESCE ( 75, - COALESCE ( 8, 99, ( - 35 ) * 31 ) ) ELSE 54 END ) + + COUNT( * ) ELSE + 50 + - 14 END * 43
----
-10795

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT 41 + + 7 * - + CASE - + CASE COALESCE ( ( - + 58 ), - - 40 + + - 68, + 37 ) WHEN - 1 * 48 + 39 / + NULLIF ( 79, + - 58 ) + NULLIF ( + COUNT ( * ), + + 33 + - 89 - - CASE + 90 WHEN + COUNT ( * ) * 98 THEN + COUNT ( * ) + 23 ELSE NULL END ) + 20 THEN NULL WHEN MAX ( DISTINCT + 93 ) THEN NULL ELSE - 7 END WHEN + 13 + + 30 - - 10 THEN - 43 + - 16 * 80 WHEN - + 49 THEN COUNT ( ALL - CASE + 29 WHEN COALESCE ( - 62, + COALESCE ( 47, 94 ), 23 * 8 ) THEN - 54 WHEN + 12 THEN - COALESCE ( 75, - COALESCE ( 8, 99, ( - 35 ) * 31 ) ) ELSE 54 END ) + + COUNT ( * ) ELSE + 50 + - 14 END * 43
----
-10795

query I rowsort
SELECT DISTINCT + 61 + + 17
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT ALL COALESCE ( + + 38, - CAST( + 83 AS SIGNED ) * 23 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL COALESCE ( + + 38, - CAST ( + 83 AS INTEGER ) * 23 ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL + + 11 + COUNT( * ) * - 40 * - 91 * - + CAST( NULL AS SIGNED ) * - 92 * - + 3 + - COUNT( * ) * - + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + + 11 + COUNT ( * ) * - 40 * - 91 * - + CAST ( NULL AS INTEGER ) * - 92 * - + 3 + - COUNT ( * ) * - + 50 AS col2
----
NULL

query I rowsort
SELECT - 98 + - 72 + - - 10
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT + 27 DIV + ( 4 ) + - 32
----
-26

skipif mysql # not compatible
query I rowsort label-8973
SELECT + 27 / + ( 4 ) + - 32
----
-26

query I rowsort
SELECT + ( - + 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - + 31 + - COUNT( * ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - + 31 + - COUNT ( * ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ( + 49 ) * + + 83 * + COUNT( * ) - - + 60
----
4127

skipif mysql # not compatible
query I rowsort label-8976
SELECT ( + 49 ) * + + 83 * + COUNT ( * ) - - + 60
----
4127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8977
SELECT - ( + 58 ) * - - 51 * + CASE - CAST( NULL AS SIGNED ) WHEN + 90 * - SUM( DISTINCT - + 97 ) THEN AVG ( ALL - 3 ) + + CAST( NULL AS SIGNED ) * - CAST( + + ( 2 ) AS DECIMAL ) END + - ( - + 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT - ( + 58 ) * - - 51 * + CASE - CAST ( NULL AS INTEGER ) WHEN + 90 * - SUM ( DISTINCT - + 97 ) THEN AVG ( ALL - 3 ) + + CAST ( NULL AS INTEGER ) * - CAST ( + + ( 2 ) AS REAL ) END + - ( - + 45 ) AS col2
----
NULL

query I rowsort
SELECT + 92 * 14 AS col1
----
1288

query I rowsort
SELECT ALL + 1 * + ( 19 ) * - + 35
----
-665

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT DISTINCT - + ( + + COUNT( * ) ) * + 54, 39 AS col0
----
-54
39

skipif mysql # not compatible
query II rowsort label-8980
SELECT DISTINCT - + ( + + COUNT ( * ) ) * + 54, 39 AS col0
----
-54
39

query I rowsort
SELECT 91 * 83
----
7553

query I rowsort
SELECT ALL - 79 * + 12 AS col0
----
-948

query I rowsort
SELECT ALL - NULLIF ( + 28, 73 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8984
SELECT COUNT ( * ) + - - COUNT ( * )
----
2

query II rowsort
SELECT 27, - 23 AS col0
----
27
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8986
SELECT ALL - 52 - + + COUNT( CAST( NULL AS SIGNED ) ) * - 91
----
-52

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - 52 - + + COUNT ( CAST ( NULL AS INTEGER ) ) * - 91
----
-52

query II rowsort
SELECT ALL - 55 col0, 48
----
-55
48

query II rowsort
SELECT 41 col1, 66 * - + 70 col1
----
41
-4620

query II rowsort
SELECT + 27, 83 col1
----
27
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT 7 + - ( - COUNT( * ) ) * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8990
SELECT 7 + - ( - COUNT ( * ) ) * + COUNT ( * )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT - 35 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - 35 / + 94 AS col2
----
0

query II rowsort
SELECT DISTINCT 86 AS col1, 78
----
86
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8993
SELECT ALL 35 * + CASE WHEN NOT 41 > + COALESCE ( 16, 85 + 94 ) * CAST( + COUNT( * ) AS DECIMAL ) - - 46 + 67 THEN NULL ELSE - COALESCE ( + 33, - 17 * - MAX( - - 96 ), - MIN( ALL + - 6 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL 35 * + CASE WHEN NOT 41 > + COALESCE ( 16, 85 + 94 ) * CAST ( + COUNT ( * ) AS REAL ) - - 46 + 67 THEN NULL ELSE - COALESCE ( + 33, - 17 * - MAX ( - - 96 ), - MIN ( ALL + - 6 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 47 * 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 47 * 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT 16 DIV + 37 col2
----
0

skipif mysql # not compatible
query I rowsort label-8995
SELECT 16 / + 37 col2
----
0

query II rowsort
SELECT ALL 3 AS col2, + 83 - + + 51
----
3
32

query I rowsort
SELECT 61 * + NULLIF ( 37, 46 * + 10 ) AS col2
----
2257

query I rowsort
SELECT ALL 77 + + NULLIF ( - + 5, + - 30 + + 81 + - 14 + + 8 * ( - + 57 ) ) AS col2
----
72

query I rowsort
SELECT 4 + + 9
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9000
SELECT ALL MIN( DISTINCT - ( - 3 ) ) DIV + + 39 + - 92 col2
----
-92

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL MIN ( DISTINCT - ( - 3 ) ) / + + 39 + - 92 col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9001
SELECT ALL COUNT( * ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 74 * + + 41 col1
----
-3034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9003
SELECT ALL - 57 + - + COUNT( + + 79 ) + + 95 + - 89 * 64 DIV 56 * 63 + 46
----
-6280

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - 57 + - + COUNT ( + + 79 ) + + 95 + - 89 * 64 / 56 * 63 + 46
----
-6280

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9004
SELECT DISTINCT - COALESCE ( - 25, - 25 + - CAST( - 21 AS SIGNED ), + + 11 DIV + 5 )
----
25

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - COALESCE ( - 25, - 25 + - CAST ( - 21 AS INTEGER ), + + 11 / + 5 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL + 88 + + COUNT( * ) * - 54 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + 88 + + COUNT ( * ) * - 54 AS col1
----
34

query I rowsort
SELECT DISTINCT 75 + - 67 AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9007
SELECT ALL 79 + 20 DIV + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL 79 + 20 / + COUNT ( * )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT - + CAST( - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-9008
SELECT - + CAST ( - 51 AS INTEGER )
----
51

query II rowsort
SELECT - 63 - 28 col0, + 8
----
-91
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT - 37 AS col2, - COUNT( * ) AS col0
----
-37
-1

skipif mysql # not compatible
query II rowsort label-9010
SELECT - 37 AS col2, - COUNT ( * ) AS col0
----
-37
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT 55 * - ( + + MIN( DISTINCT - 44 ) )
----
2420

skipif mysql # not compatible
query I rowsort label-9011
SELECT 55 * - ( + + MIN ( DISTINCT - 44 ) )
----
2420

query II rowsort
SELECT ALL - - 20 AS col2, 85
----
20
85

query II rowsort
SELECT - 26, - ( 16 ) AS col2
----
-26
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL COUNT( * ) * - + 53 - - 19 col0
----
-34

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL COUNT ( * ) * - + 53 - - 19 col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT + MAX( DISTINCT + 35 ) AS col0, + NULLIF ( + + 17, - 91 ) AS col2
----
35
17

skipif mysql # not compatible
query II rowsort label-9015
SELECT + MAX ( DISTINCT + 35 ) AS col0, + NULLIF ( + + 17, - 91 ) AS col2
----
35
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT + MIN( + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9016
SELECT + MIN ( + 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL - 86 * 53 * + 39 - + + MIN( - - ( - 60 ) ) * + 73
----
-173382

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - 86 * 53 * + 39 - + + MIN ( - - ( - 60 ) ) * + 73
----
-173382

query I rowsort
SELECT + 12 * + - 57 AS col2
----
-684

query II rowsort
SELECT - 27 AS col1, + 62
----
-27
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT + CAST( - + COUNT( * ) AS SIGNED ) * - - 99 * + 10 * + 59 * NULLIF ( + 72, + + COUNT( * ) ) * 81 + + + ( 36 ) col1
----
-340647084

skipif mysql # not compatible
query I rowsort label-9020
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) * - - 99 * + 10 * + 59 * NULLIF ( + 72, + + COUNT ( * ) ) * 81 + + + ( 36 ) col1
----
-340647084

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL 99 * - 76 - - COUNT( * ) AS col1
----
-7523

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL 99 * - 76 - - COUNT ( * ) AS col1
----
-7523

query I rowsort
SELECT 81 * - 8 AS col2
----
-648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9023
SELECT 17 * 43 AS col2, - COUNT( + + 71 ) + - MIN( - + 13 ) + CAST( - + CASE + 61 WHEN + CAST( - ( - CAST( - + 47 AS SIGNED ) ) AS SIGNED ) + 83 THEN - ( - - COUNT( * ) ) ELSE NULL END AS SIGNED ) + + + CASE - ( ( CASE + 86 WHEN 24 * + - 34 + + - 6 THEN NULL WHEN + 7 * 15 THEN NULL ELSE ( - + 53 ) * + + 19 * - - 22 * + + 2 + COUNT( * ) + - - 62 + - 39 / + 21 + - 33 END ) ) WHEN + - 70 THEN NULL ELSE COUNT( * ) END
----
731
NULL

skipif mysql # not compatible
query II rowsort label-9023
SELECT 17 * 43 AS col2, - COUNT ( + + 71 ) + - MIN ( - + 13 ) + CAST ( - + CASE + 61 WHEN + CAST ( - ( - CAST ( - + 47 AS INTEGER ) ) AS INTEGER ) + 83 THEN - ( - - COUNT ( * ) ) ELSE NULL END AS INTEGER ) + + + CASE - ( ( CASE + 86 WHEN 24 * + - 34 + + - 6 THEN NULL WHEN + 7 * 15 THEN NULL ELSE ( - + 53 ) * + + 19 * - - 22 * + + 2 + COUNT ( * ) + - - 62 + - 39 / + 21 + - 33 END ) ) WHEN + - 70 THEN NULL ELSE COUNT ( * ) END
----
731
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT CAST( NULL AS SIGNED ) * ( - - 64 ) + + CASE 46 WHEN - 84 THEN NULL ELSE + 65 / - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT CAST ( NULL AS INTEGER ) * ( - - 64 ) + + CASE 46 WHEN - 84 THEN NULL ELSE + 65 / - 78 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT - 48 * 14 * - 61 DIV - 61 AS col2
----
-672

skipif mysql # not compatible
query I rowsort label-9025
SELECT - 48 * 14 * - 61 / - 61 AS col2
----
-672

query I rowsort
SELECT - 77 * 77 col0
----
-5929

onlyif mysql # aggregate syntax: 
query II rowsort label-9027
SELECT ALL - COUNT( * ) * - + 35, + 74 AS col0
----
35
74

skipif mysql # not compatible
query II rowsort label-9027
SELECT ALL - COUNT ( * ) * - + 35, + 74 AS col0
----
35
74

query I rowsort
SELECT - 53 * + 89
----
-4717

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT ALL - COUNT( * ) * - MAX( ALL + 32 ), - 73 * 78 - + SUM( DISTINCT - 8 ) - - 82 * + 1 AS col2
----
32
-5604

skipif mysql # not compatible
query II rowsort label-9029
SELECT ALL - COUNT ( * ) * - MAX ( ALL + 32 ), - 73 * 78 - + SUM ( DISTINCT - 8 ) - - 82 * + 1 AS col2
----
32
-5604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9030
SELECT ALL + ( + ( - - CASE - + 16 WHEN - 30 * - - NULLIF ( + - 30, + ( COUNT( * ) ) ) * + - COUNT( * ) + - CAST( NULL AS DECIMAL ) - - COUNT( * ) + - - 15 * - 56 - + - 25 THEN NULL WHEN 75 - - - 10 + - 44 + 81 * - - CASE + MIN( DISTINCT 18 ) WHEN 54 THEN COUNT( * ) ELSE NULL END THEN NULL ELSE CAST( NULL AS SIGNED ) + 25 * - ( + 18 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL + ( + ( - - CASE - + 16 WHEN - 30 * - - NULLIF ( + - 30, + ( COUNT ( * ) ) ) * + - COUNT ( * ) + - CAST ( NULL AS REAL ) - - COUNT ( * ) + - - 15 * - 56 - + - 25 THEN NULL WHEN 75 - - - 10 + - 44 + 81 * - - CASE + MIN ( DISTINCT 18 ) WHEN 54 THEN COUNT ( * ) ELSE NULL END THEN NULL ELSE CAST ( NULL AS INTEGER ) + 25 * - ( + 18 ) END ) )
----
NULL

query I rowsort
SELECT ALL - ( - 45 ) * 1 - - 2 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT - 99 + - - CAST( COUNT( * ) AS SIGNED ) * + 73 + - 40 * + - 37
----
1454

skipif mysql # not compatible
query I rowsort label-9032
SELECT - 99 + - - CAST ( COUNT ( * ) AS INTEGER ) * + 73 + - 40 * + - 37
----
1454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT 58 * - + 40 + + CAST( - COUNT( * ) AS SIGNED )
----
-2321

skipif mysql # not compatible
query I rowsort label-9033
SELECT 58 * - + 40 + + CAST ( - COUNT ( * ) AS INTEGER )
----
-2321

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - 17 * - COALESCE ( - 14, - - 43 + + MAX( ALL + 46 ) * + 43 + 37 ) AS col0
----
-238

skipif mysql # not compatible
query I rowsort label-9034
SELECT - 17 * - COALESCE ( - 14, - - 43 + + MAX ( ALL + 46 ) * + 43 + 37 ) AS col0
----
-238

query II rowsort
SELECT + 23 * 48 AS col1, 18 * + ( + + 76 )
----
1104
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT - 13 + - - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT - 13 + - - COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT + MIN( + + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT + MIN ( + + 63 )
----
63

query I rowsort
SELECT - 87 * + 41
----
-3567

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9039
SELECT DISTINCT 79 + 85 + + COUNT( - + CAST( NULL AS DECIMAL ) ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT 79 + 85 + + COUNT ( - + CAST ( NULL AS REAL ) ) AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT - CASE + 51 WHEN - COUNT( * ) THEN NULL WHEN 68 - 64 THEN - + 36 + - - ( 60 ) * - + COUNT( + 39 ) ELSE NULL END + - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT - CASE + 51 WHEN - COUNT ( * ) THEN NULL WHEN 68 - 64 THEN - + 36 + - - ( 60 ) * - + COUNT ( + 39 ) ELSE NULL END + - - 1
----
NULL

query I rowsort
SELECT ALL - 28 + - CASE - + 51 WHEN + + 8 THEN NULL ELSE - + 92 END + - 96 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT - COALESCE ( + 87, 4 + - + ( - COUNT( * ) ) + 14 + 5 * + - 32 + + - 95 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9042
SELECT - COALESCE ( + 87, 4 + - + ( - COUNT ( * ) ) + 14 + 5 * + - 32 + + - 95 ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT DISTINCT + 59 + 26 + 45 DIV + - 11 + 75 * + + 12
----
981

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT + 59 + 26 + 45 / + - 11 + 75 * + + 12
----
981

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT + 94 DIV COUNT( DISTINCT 86 ) * + 12 + + 3 AS col2
----
1131

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 94 / COUNT ( DISTINCT 86 ) * + 12 + + 3 AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT ALL 64 + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL 64 + COUNT ( * )
----
65

query I rowsort
SELECT + ( - 2 ) + - 82
----
-84

query I rowsort
SELECT + - 70 + 26 + + 89 + 62 * 55 + - - 55
----
3510

onlyif mysql # aggregate syntax: 
query II rowsort label-9048
SELECT ALL COUNT( 60 ) AS col1, 62 AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-9048
SELECT ALL COUNT ( 60 ) AS col1, 62 AS col1
----
1
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9049
SELECT + + CASE - + 65 WHEN + 93 + + + COUNT( * ) * 29 + - + 13 + COUNT( * ) + + CAST( NULL AS SIGNED ) * 72 * + 99 THEN + 81 + 71 END + - - 18 + COUNT( * ) / - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT + + CASE - + 65 WHEN + 93 + + + COUNT ( * ) * 29 + - + 13 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 72 * + 99 THEN + 81 + 71 END + - - 18 + COUNT ( * ) / - 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT ALL - 85 - - 44 AS col2, 49 * 23 * - COUNT( * )
----
-41
-1127

skipif mysql # not compatible
query II rowsort label-9050
SELECT ALL - 85 - - 44 AS col2, 49 * 23 * - COUNT ( * )
----
-41
-1127

query I rowsort
SELECT + - 21 + + 35 * - 96
----
-3381

query I rowsort
SELECT + 10 + + - 14 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT - 81 DIV + 65 + 30 - + + 98 - - 92
----
23

skipif mysql # not compatible
query I rowsort label-9053
SELECT - 81 / + 65 + 30 - + + 98 - - 92
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + - ( + MAX( 95 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL + - ( + MAX ( 95 ) ) AS col0
----
-95

query I rowsort
SELECT - 72 + + 30
----
-42

query I rowsort
SELECT - 89 * + + 9
----
-801

query I rowsort
SELECT DISTINCT 7 * 88
----
616

query II rowsort
SELECT ALL + 36 col0, + 57 AS col1
----
36
57

query I rowsort
SELECT DISTINCT 24 * 89 * 29 AS col0
----
61944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT + CAST( - - COUNT( + 16 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9060
SELECT + CAST ( - - COUNT ( + 16 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL + CASE - 67 WHEN - SUM( + - 64 ) THEN + 71 * - - 86 WHEN - 76 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL + CASE - 67 WHEN - SUM ( + - 64 ) THEN + 71 * - - 86 WHEN - 76 THEN NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT - 53 DIV + + 39
----
-1

skipif mysql # not compatible
query I rowsort label-9062
SELECT - 53 / + + 39
----
-1

query I rowsort
SELECT ( - 25 ) AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 68 + - 66 * - - COALESCE ( ( - - NULLIF ( COUNT( ALL + 57 ), - 17 / - 39 ) ), COUNT( * ) ) * - 56 + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 68 + - 66 * - - COALESCE ( ( - - NULLIF ( COUNT ( ALL + 57 ), - 17 / - 39 ) ), COUNT ( * ) ) * - 56 + - 60 AS col0
----
NULL

query I rowsort
SELECT + 0 * + 43 * - 7 AS col2
----
0

query I rowsort
SELECT ALL + CASE + + 88 WHEN - 87 + - + 37 * - - 15 THEN + 95 + 42 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - COUNT( * ) * CASE - 84 WHEN - - 73 + + + 72 + - - CASE - COALESCE ( + + 0, + - 96 ) WHEN - 41 * - 60 + + 87 THEN - - 41 END + 83 THEN 98 * - 81 WHEN 78 / + 9 + + 5 + + CASE + 26 WHEN 32 THEN + 34 ELSE NULL END / - - COUNT( * ) + 41 / + AVG ( DISTINCT - - 99 ) THEN NULL ELSE COALESCE ( + 16, + - 46 ) END col2
----
-16

skipif mysql # not compatible
query I rowsort label-9067
SELECT - COUNT ( * ) * CASE - 84 WHEN - - 73 + + + 72 + - - CASE - COALESCE ( + + 0, + - 96 ) WHEN - 41 * - 60 + + 87 THEN - - 41 END + 83 THEN 98 * - 81 WHEN 78 / + 9 + + 5 + + CASE + 26 WHEN 32 THEN + 34 ELSE NULL END / - - COUNT ( * ) + 41 / + AVG ( DISTINCT - - 99 ) THEN NULL ELSE COALESCE ( + 16, + - 46 ) END col2
----
-16

query II rowsort
SELECT + 35, 95 AS col2
----
35
95

query I rowsort
SELECT ALL - 69 * - 35 + - + 74 + - - 87 AS col1
----
2428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT COALESCE ( - 87, - + CAST( NULL AS SIGNED ), 16 )
----
-87

skipif mysql # not compatible
query I rowsort label-9070
SELECT COALESCE ( - 87, - + CAST ( NULL AS INTEGER ), 16 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT + SUM( DISTINCT - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-9071
SELECT + SUM ( DISTINCT - 5 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL + COUNT( * ) * - - COUNT( * ) * + 17 + + COALESCE ( 16, + 74, - + CASE + ( NULLIF ( 46, CAST( 14 AS SIGNED ) ) ) WHEN + 77 THEN - - 9 WHEN + SUM( 17 ) THEN NULL WHEN - + 15 * + + 10 * - + ( + - 66 ) * 84 THEN 40 - + 79 END ) + - 5 + + + 20 col1
----
48

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) * + 17 + + COALESCE ( 16, + 74, - + CASE + ( NULLIF ( 46, CAST ( 14 AS INTEGER ) ) ) WHEN + 77 THEN - - 9 WHEN + SUM ( 17 ) THEN NULL WHEN - + 15 * + + 10 * - + ( + - 66 ) * 84 THEN 40 - + 79 END ) + - 5 + + + 20 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT + COUNT( - + 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT + COUNT ( - + 17 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT - COALESCE ( + - ( + 55 ), + CAST( NULL AS SIGNED ) + MAX( NULLIF ( - 72, - 0 * + 10 ) ) * + - 24 )
----
55

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - COALESCE ( + - ( + 55 ), + CAST ( NULL AS INTEGER ) + MAX ( NULLIF ( - 72, - 0 * + 10 ) ) * + - 24 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9075
SELECT DISTINCT + COALESCE ( - COALESCE ( - + 14, - 22 ), - ( 32 ), + - CASE 98 WHEN - - COUNT( * ) * - NULLIF ( - - 51, 78 ) + + - CASE + MAX( - + ( - + 76 ) ) WHEN + 32 THEN - 99 WHEN + 73 - - COUNT( * ) + - - 33 * 32 THEN CAST( NULL AS DECIMAL ) * - - 77 ELSE - 78 END + 75 * - 74 DIV - + 29 * - 42 THEN + - 41 END * + MIN( - + 44 ) * + + CAST( NULL AS SIGNED ) DIV + - ( + - 73 ) ) * - 96 + - - COUNT( * ) * + 32 DIV + CAST( - 38 AS SIGNED ) * + 17 + 36 AS col1
----
-1308

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT + COALESCE ( - COALESCE ( - + 14, - 22 ), - ( 32 ), + - CASE 98 WHEN - - COUNT ( * ) * - NULLIF ( - - 51, 78 ) + + - CASE + MAX ( - + ( - + 76 ) ) WHEN + 32 THEN - 99 WHEN + 73 - - COUNT ( * ) + - - 33 * 32 THEN CAST ( NULL AS REAL ) * - - 77 ELSE - 78 END + 75 * - 74 / - + 29 * - 42 THEN + - 41 END * + MIN ( - + 44 ) * + + CAST ( NULL AS INTEGER ) / + - ( + - 73 ) ) * - 96 + - - COUNT ( * ) * + 32 / + CAST ( - 38 AS INTEGER ) * + 17 + 36 AS col1
----
-1308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT 82 * NULLIF ( + 32, - 62 + ( - 92 ) + - 70 + + 98 * 50 + - ( - 92 ) ) + - 67 / - + 50 / - - COALESCE ( 8, + 87 ) + 81 + 61 * + 37 / + + CAST( NULL AS SIGNED ) + + - 12 * + 79 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT 82 * NULLIF ( + 32, - 62 + ( - 92 ) + - 70 + + 98 * 50 + - ( - 92 ) ) + - 67 / - + 50 / - - COALESCE ( 8, + 87 ) + 81 + 61 * + 37 / + + CAST ( NULL AS INTEGER ) + + - 12 * + 79 + + 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9077
SELECT - 78 + - MAX( + - 21 ), - COUNT( DISTINCT ( 86 ) ) AS col1
----
-57
-1

skipif mysql # not compatible
query II rowsort label-9077
SELECT - 78 + - MAX ( + - 21 ), - COUNT ( DISTINCT ( 86 ) ) AS col1
----
-57
-1

query I rowsort
SELECT - 83 * - 81 AS col2
----
6723

query I rowsort
SELECT - - 74 * 73
----
5402

onlyif mysql # DIV for integer division: 
query II rowsort label-9080
SELECT ALL + COALESCE ( + 52, + 38 ) AS col2, - 9 + + ( - COALESCE ( - 7, + - 40 DIV 2 + 91 ) ) + + + 82 + 98 * 26
----
52
2628

skipif mysql # not compatible
query II rowsort label-9080
SELECT ALL + COALESCE ( + 52, + 38 ) AS col2, - 9 + + ( - COALESCE ( - 7, + - 40 / 2 + 91 ) ) + + + 82 + 98 * 26
----
52
2628

query I rowsort
SELECT + CASE + 44 WHEN 3 THEN + 2 WHEN + 0 THEN + - 84 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT - 49 - - - CAST( NULL AS SIGNED ) - 88 + 89 * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT - 49 - - - CAST ( NULL AS INTEGER ) - 88 + 89 * - 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9083
SELECT DISTINCT - 66, NULLIF ( 38, - 63 + - 24 ) * 57 + - COUNT( * ) AS col0
----
-66
2165

skipif mysql # not compatible
query II rowsort label-9083
SELECT DISTINCT - 66, NULLIF ( 38, - 63 + - 24 ) * 57 + - COUNT ( * ) AS col0
----
-66
2165

query I rowsort
SELECT ALL 98 - + + 78
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT DISTINCT + 86 DIV - 75 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT + 86 / - 75 AS col1
----
-1

query I rowsort
SELECT + - 75 * + 33 col1
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9087
SELECT ALL + 20 col0, + 36 + + 26 + CASE + 32 WHEN + 30 THEN 30 END / - 56 + - - 3 - 70 * 71 * - + 94 + CAST( NULL AS SIGNED )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-9087
SELECT ALL + 20 col0, + 36 + + 26 + CASE + 32 WHEN + 30 THEN 30 END / - 56 + - - 3 - 70 * 71 * - + 94 + CAST ( NULL AS INTEGER )
----
20
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9088
SELECT - - 64, - CAST( + 11 AS SIGNED ) * + 0 AS col2
----
64
0

skipif mysql # not compatible
query II rowsort label-9088
SELECT - - 64, - CAST ( + 11 AS INTEGER ) * + 0 AS col2
----
64
0

query III rowsort
SELECT - 52 * 52 + - + ( - - 22 ), + 67 + - - 95 AS col2, - 49 AS col1
----
-2726
162
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT 84 DIV MAX( DISTINCT + 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9090
SELECT 84 / MAX ( DISTINCT + 62 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - ( + ( 48 ) )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9092
SELECT ALL 48 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL 48 / - 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT DISTINCT 59 DIV - 13 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT 59 / - 13 AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT DISTINCT 65 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT 65 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT 0 + - MIN( + - 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9095
SELECT 0 + - MIN ( + - 76 ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT - COALESCE ( - 21, + - 57 + 72, + 50 ) * + + 24 + + 48 + 21 * + COALESCE ( + 42, - - 28 ) + - 67 DIV - - ( + - 45 ) AS col2
----
1435

skipif mysql # not compatible
query I rowsort label-9096
SELECT - COALESCE ( - 21, + - 57 + 72, + 50 ) * + + 24 + + 48 + 21 * + COALESCE ( + 42, - - 28 ) + - 67 / - - ( + - 45 ) AS col2
----
1435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT CAST( NULL AS SIGNED ) * + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT CAST ( NULL AS INTEGER ) * + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9098
SELECT 95 DIV + - MIN( ALL - 7 ) + 53 col1
----
66

skipif mysql # not compatible
query I rowsort label-9098
SELECT 95 / + - MIN ( ALL - 7 ) + 53 col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9099
SELECT CAST( NULL AS SIGNED ) + - 28 + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT CAST ( NULL AS INTEGER ) + - 28 + + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9100
SELECT ALL - COALESCE ( - CASE 33 WHEN - ( 79 ) * + 82 + + 92 THEN - COUNT( * ) END, + - CASE + - 22 WHEN - 5 * - CAST( + ( + + 13 ) AS DECIMAL ) THEN - ( + - ( CAST( + 26 AS SIGNED ) ) ) + - MAX( ALL 30 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - COALESCE ( - CASE 33 WHEN - ( 79 ) * + 82 + + 92 THEN - COUNT ( * ) END, + - CASE + - 22 WHEN - 5 * - CAST ( + ( + + 13 ) AS REAL ) THEN - ( + - ( CAST ( + 26 AS INTEGER ) ) ) + - MAX ( ALL 30 ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT CAST( 48 AS SIGNED ) + + + 33 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT CAST ( 48 AS INTEGER ) + + + 33 AS col0
----
81

query II rowsort
SELECT DISTINCT - ( 9 ), 43 col2
----
-9
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT - 87 + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT - 87 + - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT DISTINCT CASE COUNT( * ) WHEN - - COUNT( DISTINCT 87 ) THEN - 33 * - ( - - 63 ) - + 42 + + - CAST( NULL AS SIGNED ) + - 26 END + + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT CASE COUNT ( * ) WHEN - - COUNT ( DISTINCT 87 ) THEN - 33 * - ( - - 63 ) - + 42 + + - CAST ( NULL AS INTEGER ) + - 26 END + + 78 AS col1
----
NULL

query I rowsort
SELECT ( + 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT - MAX( 79 ) + - 51 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-9106
SELECT - MAX ( 79 ) + - 51 AS col1
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT ALL - + 73 DIV + ( + - 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - + 73 / + ( + - 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL + + 10 - - - 89 * - ( + ( + COUNT( * ) ) ) col0
----
99

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + + 10 - - - 89 * - ( + ( + COUNT ( * ) ) ) col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT + COALESCE ( - 17, + 27 ) DIV 73 + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-9109
SELECT + COALESCE ( - 17, + 27 ) / 73 + - 10
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT - 42 * + COALESCE ( - - 25, - - 78 * - + 89 + + 45 * COUNT( * ) + + COUNT( * ) + 98 + - 62 + + CAST( NULL AS SIGNED ) + - 83 * ( + COUNT( * ) ), - 76 ) * COUNT( DISTINCT 98 ) AS col1
----
-1050

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 42 * + COALESCE ( - - 25, - - 78 * - + 89 + + 45 * COUNT ( * ) + + COUNT ( * ) + 98 + - 62 + + CAST ( NULL AS INTEGER ) + - 83 * ( + COUNT ( * ) ), - 76 ) * COUNT ( DISTINCT 98 ) AS col1
----
-1050

query I rowsort
SELECT ALL 12 * 92 - 12
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + ( - COALESCE ( + MIN( + COALESCE ( + 63, - 14 * - 44 ) ), + 81 * - 38 ) ) - + 37
----
-100

skipif mysql # not compatible
query I rowsort label-9112
SELECT + ( - COALESCE ( + MIN ( + COALESCE ( + 63, - 14 * - 44 ) ), + 81 * - 38 ) ) - + 37
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT + - 68 * COUNT( * ) * 53 AS col2
----
-3604

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT + - 68 * COUNT ( * ) * 53 AS col2
----
-3604

query I rowsort
SELECT - 83 * ( - 70 ) AS col2
----
5810

query I rowsort
SELECT + 22 * + 53 AS col0
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT - + CASE + - 76 WHEN + 20 / + COUNT( * ) + COALESCE ( - 18, + 53 * + + NULLIF ( - + 45, - 96 ) ) THEN NULL ELSE - 83 END AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9116
SELECT - + CASE + - 76 WHEN + 20 / + COUNT ( * ) + COALESCE ( - 18, + 53 * + + NULLIF ( - + 45, - 96 ) ) THEN NULL ELSE - 83 END AS col1
----
83

query I rowsort
SELECT + 31 + - 5
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL + SUM( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL + SUM ( 66 )
----
66

query I rowsort
SELECT 9 + - + 88
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - CASE + COUNT( * ) WHEN + - 5 * - 7 THEN NULL WHEN + COALESCE ( - + 53, + COALESCE ( - - 78, 24 / + 71 ) ) + + - MAX( DISTINCT 99 ) THEN + 86 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT - CASE + COUNT ( * ) WHEN + - 5 * - 7 THEN NULL WHEN + COALESCE ( - + 53, + COALESCE ( - - 78, 24 / + 71 ) ) + + - MAX ( DISTINCT 99 ) THEN + 86 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 59 + 11 AS col0, + 87
----
-48
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL - COUNT( * ) * - + 41
----
41

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - COUNT ( * ) * - + 41
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9123
SELECT DISTINCT - COUNT( * ) + ( 47 ), + 90 * - - 37 AS col0
----
46
3330

skipif mysql # not compatible
query II rowsort label-9123
SELECT DISTINCT - COUNT ( * ) + ( 47 ), + 90 * - - 37 AS col0
----
46
3330

query I rowsort
SELECT ALL + 62 + + 73
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT ALL 7 * - ( - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL 7 * - ( - COUNT ( * ) )
----
7

query I rowsort
SELECT 20 * - 80
----
-1600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT ALL - 99 + + - CASE 25 WHEN - + 45 * - 42 + - MAX( DISTINCT + 77 ) THEN + 65 ELSE + - CASE - 76 WHEN + 44 THEN - 29 * + ( + 9 ) - MAX( - + 37 ) + + 19 + COUNT( * ) + - 61 WHEN + 49 THEN NULL ELSE 87 DIV + - 96 + NULLIF ( - - 71, + - 60 DIV - 93 ) END END AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - 99 + + - CASE 25 WHEN - + 45 * - 42 + - MAX ( DISTINCT + 77 ) THEN + 65 ELSE + - CASE - 76 WHEN + 44 THEN - 29 * + ( + 9 ) - MAX ( - + 37 ) + + 19 + COUNT ( * ) + - 61 WHEN + 49 THEN NULL ELSE 87 / + - 96 + NULLIF ( - - 71, + - 60 / - 93 ) END END AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT ALL 24 + + CASE 69 WHEN CAST( + - ( + - 16 ) AS SIGNED ) THEN NULL ELSE + 64 END
----
88

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL 24 + + CASE 69 WHEN CAST ( + - ( + - 16 ) AS INTEGER ) THEN NULL ELSE + 64 END
----
88

query I rowsort
SELECT 26 + - 69 - + + 42
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL - 90 * - - MAX( 21 ) AS col1
----
-1890

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - 90 * - - MAX ( 21 ) AS col1
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT COUNT( * ) + + 91
----
92

skipif mysql # not compatible
query I rowsort label-9131
SELECT COUNT ( * ) + + 91
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL SUM( 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL SUM ( 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT 9 / - SUM( + + CASE - 56 WHEN - 51 THEN + 75 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT 9 / - SUM ( + + CASE - 56 WHEN - 51 THEN + 75 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 72 * - 67 * - + 46
----
-221904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT 35 DIV + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9135
SELECT 35 / + COUNT ( * ) AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT ALL 58 DIV - 13 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL 58 / - 13 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT - SUM( DISTINCT + 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT - SUM ( DISTINCT + 32 ) AS col1
----
-32

query I rowsort
SELECT ALL + 0 + 93 - - + ( - 53 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9139
SELECT DISTINCT 93 DIV 47 * + COUNT( * ), 15 + - - 91 + 6 * + CAST( - - COUNT( * ) AS SIGNED ) + - - 52 + - 39 AS col0
----
1
125

skipif mysql # not compatible
query II rowsort label-9139
SELECT DISTINCT 93 / 47 * + COUNT ( * ), 15 + - - 91 + 6 * + CAST ( - - COUNT ( * ) AS INTEGER ) + - - 52 + - 39 AS col0
----
1
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT MIN( DISTINCT - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-9140
SELECT MIN ( DISTINCT - 23 )
----
-23

query I rowsort
SELECT ALL 10 - - 14 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT MIN( ALL - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9142
SELECT MIN ( ALL - 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT CAST( + ( - 18 ) AS SIGNED ) * + 85
----
-1530

skipif mysql # not compatible
query I rowsort label-9143
SELECT CAST ( + ( - 18 ) AS INTEGER ) * + 85
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT + SUM( ALL + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9144
SELECT + SUM ( ALL + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + COUNT( ALL 98 )
----
1

skipif mysql # not compatible
query I rowsort label-9145
SELECT + COUNT ( ALL 98 )
----
1

query I rowsort
SELECT 60 - + 74 col1
----
-14

query I rowsort
SELECT 95 * + 42 AS col0
----
3990

onlyif mysql # DIV for integer division: 
query I rowsort label-9148
SELECT 66 + 37 DIV - 75
----
66

skipif mysql # not compatible
query I rowsort label-9148
SELECT 66 + 37 / - 75
----
66

query I rowsort
SELECT ALL 15 * 34
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT - SUM( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT - SUM ( 78 )
----
-78

query I rowsort
SELECT 1 + + ( 56 )
----
57

query I rowsort
SELECT 4 - - 59 AS col1
----
63

query I rowsort
SELECT 75 * + 1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT - 96 + COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-9154
SELECT - 96 + COUNT ( * ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + NULLIF ( 20, COUNT( * ) ) + 99 col1
----
119

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + NULLIF ( 20, COUNT ( * ) ) + 99 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT COUNT( * ) + 48 * + MAX( ALL + 74 + 35 * + 10 ) AS col0
----
20353

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT COUNT ( * ) + 48 * + MAX ( ALL + 74 + 35 * + 10 ) AS col0
----
20353

query I rowsort
SELECT ALL + 3 * 87
----
261

query I rowsort
SELECT - 37 * - 56
----
2072

query I rowsort
SELECT ALL 42 + 1 AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9160
SELECT - 13 DIV 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT - 13 / 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL + 31 + MAX( DISTINCT - 5 ) * - 9
----
76

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL + 31 + MAX ( DISTINCT - 5 ) * - 9
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - 30 * + CASE 34 / 88 WHEN 26 THEN COUNT( DISTINCT 88 ) WHEN - 52 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 30 * + CASE 34 / 88 WHEN 26 THEN COUNT ( DISTINCT 88 ) WHEN - 52 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT SUM( 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT SUM ( 60 ) AS col2
----
60

query I rowsort
SELECT + 1 * + 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - 6 * COUNT( - 31 )
----
-6

skipif mysql # not compatible
query I rowsort label-9165
SELECT - 6 * COUNT ( - 31 )
----
-6

query I rowsort
SELECT DISTINCT - 86 + 28 * - 35 AS col2
----
-1066

query I rowsort
SELECT ALL - ( + 85 ) + - 99 * 22 AS col0
----
-2263

query I rowsort
SELECT DISTINCT COALESCE ( + 30, 19, - 87 )
----
30

query I rowsort
SELECT DISTINCT - ( + 23 ) + 66 AS col0
----
43

query I rowsort
SELECT ALL - 41 * 16
----
-656

query I rowsort
SELECT DISTINCT 52 * 82
----
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL 69 * COUNT( * ) - 17
----
52

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL 69 * COUNT ( * ) - 17
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT + 82 DIV 39 - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9173
SELECT + 82 / 39 - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9174
SELECT ALL - CAST( NULL AS SIGNED ) * ( - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT COUNT( * ) * + 70 + 69 col0
----
139

skipif mysql # not compatible
query I rowsort label-9175
SELECT COUNT ( * ) * + 70 + 69 col0
----
139

query I rowsort
SELECT - 4 * - 61 AS col0
----
244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT CASE WHEN - 62 BETWEEN + 16 + + 55 AND + CASE + COALESCE ( 88, 74 * 1, + CAST( NULL AS SIGNED ) / COUNT( * ) ) WHEN COUNT( 21 ) THEN 40 * CAST( - 24 AS SIGNED ) ELSE NULL END THEN COUNT( ALL + 78 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT CASE WHEN - 62 BETWEEN + 16 + + 55 AND + CASE + COALESCE ( 88, 74 * 1, + CAST ( NULL AS INTEGER ) / COUNT ( * ) ) WHEN COUNT ( 21 ) THEN 40 * CAST ( - 24 AS INTEGER ) ELSE NULL END THEN COUNT ( ALL + 78 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT + + 17 DIV 76 + + ( + 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9178
SELECT + + 17 / 76 + + ( + 33 ) AS col0
----
33

query I rowsort
SELECT ALL + NULLIF ( 96, 26 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT DISTINCT 46 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT 46 / + 53
----
0

query I rowsort
SELECT + - 2 * 81 + - 44
----
-206

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT + + 37 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-9182
SELECT + + 37 / 23
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9183
SELECT ALL + NULLIF ( - COUNT( DISTINCT + CAST( 81 AS DECIMAL ) ), - COUNT( * ) ) * AVG ( ALL 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + NULLIF ( - COUNT ( DISTINCT + CAST ( 81 AS REAL ) ), - COUNT ( * ) ) * AVG ( ALL 56 ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 37, 87 * 86 ) AS col1
----
37

query I rowsort
SELECT - 77 * - 62 AS col2
----
4774

query I rowsort
SELECT DISTINCT + ( + 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT ALL - 87 * 90 + - NULLIF ( 75 + MIN( 15 ), 29 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - 87 * 90 + - NULLIF ( 75 + MIN ( 15 ), 29 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 35 * 66
----
2310

query I rowsort
SELECT + 74 * - 37 AS col1
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + + 85 + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9190
SELECT + + 85 + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT DISTINCT + 74 * 6
----
444

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - - 15 * 96 + MIN( DISTINCT + 94 )
----
1534

skipif mysql # not compatible
query I rowsort label-9192
SELECT - - 15 * 96 + MIN ( DISTINCT + 94 )
----
1534

query I rowsort
SELECT ALL 21 * - 96 + - 66 col1
----
-2082

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL COUNT( ALL ( - 99 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL COUNT ( ALL ( - 99 ) ) col1
----
1

query I rowsort
SELECT + + 36 * 79
----
2844

query I rowsort
SELECT ALL + 25 + 49 AS col0
----
74

query I rowsort
SELECT DISTINCT 19 * 81
----
1539

query I rowsort
SELECT ALL + ( - 36 ) + 9 AS col1
----
-27

query I rowsort
SELECT - - COALESCE ( + 81, 30 ) AS col2
----
81

query I rowsort
SELECT + 1 + - 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + 7 - + + ( + NULLIF ( - 33, - COUNT( ALL 3 ) + + 36 ) ) + COUNT( * ) * - 82
----
-42

skipif mysql # not compatible
query I rowsort label-9201
SELECT + 7 - + + ( + NULLIF ( - 33, - COUNT ( ALL 3 ) + + 36 ) ) + COUNT ( * ) * - 82
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT SUM( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT SUM ( + 10 )
----
10

query I rowsort
SELECT ALL 89 + + - 37 * 39
----
-1354

query I rowsort
SELECT + 95 + + - 68
----
27

query I rowsort
SELECT - ( - 59 ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT + 71 + 42 * - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9206
SELECT + 71 + 42 * - COUNT ( * )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT 61 ) AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - COALESCE ( + 38, + 52 * 90, - 54 * 18 ), 37 + 33 )
----
38

query I rowsort
SELECT + 47 + + - 17
----
30

query I rowsort
SELECT ALL 53 - - - 78
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL + 9 * - - 59 * + COUNT( * )
----
531

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + 9 * - - 59 * + COUNT ( * )
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + COUNT( * ) + + + 45 + - 17 * 64 AS col2
----
-1042

skipif mysql # not compatible
query I rowsort label-9212
SELECT + COUNT ( * ) + + + 45 + - 17 * 64 AS col2
----
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - COUNT( * ) * - 68 * + COALESCE ( - 92, + 3 * 5 ) col0
----
-6256

skipif mysql # not compatible
query I rowsort label-9213
SELECT - COUNT ( * ) * - 68 * + COALESCE ( - 92, + 3 * 5 ) col0
----
-6256

query I rowsort
SELECT DISTINCT ( ( 79 ) ) * + 20 AS col2
----
1580

query I rowsort
SELECT ALL ( + + 88 ) AS col2
----
88

query I rowsort
SELECT - 17 + - 20
----
-37

query I rowsort
SELECT DISTINCT - 55 * - - 22 AS col2
----
-1210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT - CAST( CAST( 4 AS SIGNED ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9218
SELECT - CAST ( CAST ( 4 AS INTEGER ) AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT + 81 * - ( 49 ) * + 32
----
-127008

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT 8 DIV - - 24 - 51
----
-51

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT 8 / - - 24 - 51
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT - + 41 * + 52 * ( - CAST( 28 AS SIGNED ) * 14 ) - - 83 AS col0
----
835827

skipif mysql # not compatible
query I rowsort label-9221
SELECT - + 41 * + 52 * ( - CAST ( 28 AS INTEGER ) * 14 ) - - 83 AS col0
----
835827

query I rowsort
SELECT ALL + - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL + + NULLIF ( - - 39, COUNT( * ) ) * - 31
----
-1209

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + + NULLIF ( - - 39, COUNT ( * ) ) * - 31
----
-1209

query I rowsort
SELECT + - 7 AS col0
----
-7

query I rowsort
SELECT DISTINCT - - 74 + - - 10
----
84

query I rowsort
SELECT ALL + - 11 * + 54 col1
----
-594

query I rowsort
SELECT + 2 - 48 + 48
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - NULLIF ( + + COUNT( * ), - COUNT( * ) * 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - NULLIF ( + + COUNT ( * ), - COUNT ( * ) * 46 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + COUNT( * ) + - + 29 * + 32
----
-927

skipif mysql # not compatible
query I rowsort label-9229
SELECT + COUNT ( * ) + - + 29 * + 32
----
-927

query I rowsort
SELECT ALL + - ( + 88 ) * - 59
----
5192

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT DISTINCT - NULLIF ( 19, + 73 ) + 81 DIV - 61 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - NULLIF ( 19, + 73 ) + 81 / - 61 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT DISTINCT MIN( ALL + 45 ) + - 78 DIV + 79 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT MIN ( ALL + 45 ) + - 78 / + 79 AS col2
----
45

query I rowsort
SELECT DISTINCT - 51 + - - 16
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9234
SELECT DISTINCT COALESCE ( - - 2, + 31 + + 86 * + 68 ) * - CASE ( CAST( 72 AS SIGNED ) ) WHEN 71 * COUNT( * ) + + 21 THEN COUNT( * ) WHEN - 13 / 24 THEN NULL ELSE ( - SUM( 44 ) ) END AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT COALESCE ( - - 2, + 31 + + 86 * + 68 ) * - CASE ( CAST ( 72 AS INTEGER ) ) WHEN 71 * COUNT ( * ) + + 21 THEN COUNT ( * ) WHEN - 13 / 24 THEN NULL ELSE ( - SUM ( 44 ) ) END AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT DISTINCT 11 col0, 90 * - - COUNT( * )
----
11
90

skipif mysql # not compatible
query II rowsort label-9235
SELECT DISTINCT 11 col0, 90 * - - COUNT ( * )
----
11
90

query I rowsort
SELECT ALL 42 * - 46
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL 35 - + CASE - + 8 WHEN - ( - 46 ) + 76 / ( - COUNT( * ) + - 79 ) THEN 4 * + 37 WHEN + COUNT( * ) THEN - COUNT( * ) ELSE NULL END - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL 35 - + CASE - + 8 WHEN - ( - 46 ) + 76 / ( - COUNT ( * ) + - 79 ) THEN 4 * + 37 WHEN + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END - - 18
----
NULL

query I rowsort
SELECT ALL ( + 26 ) * + 27
----
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9239
SELECT ( + 12 ) DIV + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9239
SELECT ( + 12 ) / + - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL 99 - - + SUM( DISTINCT - 8 ) * + 39 AS col1
----
-213

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL 99 - - + SUM ( DISTINCT - 8 ) * + 39 AS col1
----
-213

query I rowsort
SELECT COALESCE ( + 17, COALESCE ( 96, 94 + 86, - 7 * 24 ) ) * + 76
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-9242
SELECT 86 DIV - 38
----
-2

skipif mysql # not compatible
query I rowsort label-9242
SELECT 86 / - 38
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT DISTINCT 93 DIV + 1
----
93

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT 93 / + 1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT MIN( + 61 ) - - 91
----
152

skipif mysql # not compatible
query I rowsort label-9244
SELECT MIN ( + 61 ) - - 91
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL COUNT( * ) * + + 10
----
10

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL COUNT ( * ) * + + 10
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT CAST( + 63 AS SIGNED ) - 88
----
-25

skipif mysql # not compatible
query I rowsort label-9246
SELECT CAST ( + 63 AS INTEGER ) - 88
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT ALL 40 DIV 70 * 96 * + 6
----
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL 40 / 70 * 96 * + 6
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT DISTINCT 48, COUNT( DISTINCT + - 87 ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-9248
SELECT DISTINCT 48, COUNT ( DISTINCT + - 87 ) AS col0
----
48
1

query II rowsort
SELECT + 50 AS col2, 22 + + + COALESCE ( + ( - 58 ), - 93 ) AS col0
----
50
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL + + 51 * - + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + + 51 * - + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT ALL CAST( 92 AS SIGNED ) + + ( - 75 ) + COUNT( * ) * - 26 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL CAST ( 92 AS INTEGER ) + + ( - 75 ) + COUNT ( * ) * - 26 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT 60 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-9252
SELECT 60 / 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9253
SELECT + + MAX( - CAST( NULL AS SIGNED ) ) * - 61 + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT + + MAX ( - CAST ( NULL AS INTEGER ) ) * - 61 + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT COUNT( * ) - - 70
----
71

skipif mysql # not compatible
query I rowsort label-9254
SELECT COUNT ( * ) - - 70
----
71

query I rowsort
SELECT ALL + ( - 71 ) * + 30
----
-2130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9256
SELECT + CASE ( - 72 ) WHEN NULLIF ( - CAST( NULL AS SIGNED ), - 78 ) THEN + MIN( ALL 38 ) + 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT + CASE ( - 72 ) WHEN NULLIF ( - CAST ( NULL AS INTEGER ), - 78 ) THEN + MIN ( ALL 38 ) + 40 END AS col0
----
NULL

query I rowsort
SELECT 50 * + 89 AS col0
----
4450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT 71 * - 50 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT 71 * - 50 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + - SUM( DISTINCT + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9259
SELECT + - SUM ( DISTINCT + 33 ) AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT DISTINCT 52 + + 32 + 10 DIV 22 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT 52 + + 32 + 10 / 22 AS col2
----
84

query II rowsort
SELECT ALL - - 26 AS col2, - 76 AS col1
----
26
-76

query I rowsort
SELECT 30 * + 58 AS col1
----
1740

query I rowsort
SELECT + 0 + - 39 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL + ( - COUNT( * ) ) + 1 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL + ( - COUNT ( * ) ) + 1 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT - + COUNT( * ) + + - 2 * + + 9 * COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - + COUNT ( * ) + + - 2 * + + 9 * COUNT ( * ) AS col0
----
-19

query II rowsort
SELECT + 65, ( - + 63 ) + + ( 30 + 0 ) col2
----
65
-33

query II rowsort
SELECT + - 68, 59 AS col0
----
-68
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9268
SELECT + CASE + 54 WHEN - COUNT( * ) + 41 THEN NULL ELSE + 16 DIV - 68 END + NULLIF ( 42, + 98 + MAX( DISTINCT 22 ) ) col2
----
42

skipif mysql # not compatible
query I rowsort label-9268
SELECT + CASE + 54 WHEN - COUNT ( * ) + 41 THEN NULL ELSE + 16 / - 68 END + NULLIF ( 42, + 98 + MAX ( DISTINCT 22 ) ) col2
----
42

query I rowsort
SELECT DISTINCT - 22 - 99
----
-121

query I rowsort
SELECT ALL + 64 * - - 27
----
1728

query I rowsort
SELECT ( - + ( - 49 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - - COUNT( * ) - 76 + - + 68 + + COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - - COUNT ( * ) - 76 + - + 68 + + COUNT ( * )
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT + - ( + SUM( DISTINCT CASE + 80 WHEN 44 THEN 84 + - 68 WHEN - CAST( NULL AS SIGNED ) - ( - 72 - 48 ) THEN 30 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT + - ( + SUM ( DISTINCT CASE + 80 WHEN 44 THEN 84 + - 68 WHEN - CAST ( NULL AS INTEGER ) - ( - 72 - 48 ) THEN 30 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9274
SELECT + 10 col2, + SUM( ALL + - 27 )
----
10
-27

skipif mysql # not compatible
query II rowsort label-9274
SELECT + 10 col2, + SUM ( ALL + - 27 )
----
10
-27

query I rowsort
SELECT 26 + + 83 col0
----
109

query I rowsort
SELECT 72 * + 68 + - 99 col2
----
4797

query I rowsort
SELECT DISTINCT - 0 - 88 + + 33 - + 76 + + 34 AS col0
----
-97

query I rowsort
SELECT 54 * - 23
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT COUNT( DISTINCT - ( + + 51 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT COUNT ( DISTINCT - ( + + 51 ) ) col1
----
1

query I rowsort
SELECT 35 + + 84 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT 50 + + MAX( - + 64 )
----
-14

skipif mysql # not compatible
query I rowsort label-9281
SELECT 50 + + MAX ( - + 64 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT MIN( DISTINCT 65 ) * + 7
----
455

skipif mysql # not compatible
query I rowsort label-9282
SELECT MIN ( DISTINCT 65 ) * + 7
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9283
SELECT ( - CAST( + 18 AS SIGNED ) ) * SUM( DISTINCT ( 74 ) ) * 81 + CASE 29 WHEN + COUNT( 53 ) THEN COALESCE ( - COUNT( * ), - 21 / 77 ) / - ( - 21 * - COUNT( ALL + ( 48 ) ) ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT ( - CAST ( + 18 AS INTEGER ) ) * SUM ( DISTINCT ( 74 ) ) * 81 + CASE 29 WHEN + COUNT ( 53 ) THEN COALESCE ( - COUNT ( * ), - 21 / 77 ) / - ( - 21 * - COUNT ( ALL + ( 48 ) ) ) ELSE NULL END col2
----
NULL

query II rowsort
SELECT ALL 52 * - 81, + 43 AS col2
----
-4212
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL COUNT( ALL + + 56 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL COUNT ( ALL + + 56 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT 69 + MAX( - 75 )
----
-6

skipif mysql # not compatible
query I rowsort label-9286
SELECT 69 + MAX ( - 75 )
----
-6

query I rowsort
SELECT DISTINCT + 19 * + + 89
----
1691

query I rowsort
SELECT DISTINCT 51 + + - 97 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT - - 81 * 71 * + ( - 52 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT - - 81 * 71 * + ( - 52 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT + - 75 + + 15 + COUNT( * ) - + - 23 * - 88 col1
----
-2083

skipif mysql # not compatible
query I rowsort label-9290
SELECT + - 75 + + 15 + COUNT ( * ) - + - 23 * - 88 col1
----
-2083

query I rowsort
SELECT + CASE 1 WHEN - + ( - 91 ) THEN 23 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT - 40 DIV - 39 + - 93 + + ( 98 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 40 / - 39 + - 93 + + ( 98 ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT + CAST( + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-9293
SELECT + CAST ( + 10 AS INTEGER )
----
10

query I rowsort
SELECT + - 25 + 96 + - 74
----
-3

query I rowsort
SELECT ALL - 81 * 7 + - 47 col0
----
-614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9296
SELECT + CAST( NULL AS SIGNED ) * MAX( - 33 ) + + COALESCE ( CAST( + CASE 78 WHEN - 27 THEN NULL WHEN - 24 + - ( + ( ( 17 ) ) ) / + 57 THEN + 7 END AS SIGNED ), - 89 + - COUNT( * ) ) * 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT + CAST ( NULL AS INTEGER ) * MAX ( - 33 ) + + COALESCE ( CAST ( + CASE 78 WHEN - 27 THEN NULL WHEN - 24 + - ( + ( ( 17 ) ) ) / + 57 THEN + 7 END AS INTEGER ), - 89 + - COUNT ( * ) ) * 73 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT + SUM( ALL - - 57 ) DIV + 5 + 82
----
93

skipif mysql # not compatible
query I rowsort label-9297
SELECT + SUM ( ALL - - 57 ) / + 5 + 82
----
93

query I rowsort
SELECT + + 48 * 12 + 13
----
589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT - + 57 + - CASE + CAST( NULL AS SIGNED ) WHEN + 67 * NULLIF ( - 71, 41 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT - + 57 + - CASE + CAST ( NULL AS INTEGER ) WHEN + 67 * NULLIF ( - 71, 41 ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9300
SELECT - + SUM( + + 18 ) / + 45 * - 68 - + COALESCE ( - 1, + 10 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9300
SELECT - + SUM ( + + 18 ) / + 45 * - 68 - + COALESCE ( - 1, + 10 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT + - CASE COUNT( * ) WHEN SUM( ALL + 94 ) THEN NULLIF ( - ( 59 ), COUNT( * ) ) END * CASE + 57 WHEN + 28 THEN - 49 + + 81 * 16 WHEN + 34 + 20 THEN + 48 ELSE 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT + - CASE COUNT ( * ) WHEN SUM ( ALL + 94 ) THEN NULLIF ( - ( 59 ), COUNT ( * ) ) END * CASE + 57 WHEN + 28 THEN - 49 + + 81 * 16 WHEN + 34 + 20 THEN + 48 ELSE 83 END
----
NULL

query I rowsort
SELECT 82 * 32 + - 23 + 53 + 81
----
2735

query I rowsort
SELECT + + 13 * - - 88 + - 2 + 35
----
1177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT + COUNT( 73 ) + - CASE + - 43 WHEN 61 / 39 + - 90 THEN + CASE + 7 WHEN + COUNT( * ) - - 40 THEN 20 END WHEN 52 + ( 8 + + 65 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + - 91 / + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT + COUNT ( 73 ) + - CASE + - 43 WHEN 61 / 39 + - 90 THEN + CASE + 7 WHEN + COUNT ( * ) - - 40 THEN 20 END WHEN 52 + ( 8 + + 65 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + - 91 / + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT + + 32 * + 86 * + 73 - 70
----
200826

onlyif mysql # aggregate syntax: 
query II rowsort label-9306
SELECT DISTINCT + 77 col2, CASE - 71 WHEN + CASE - 36 WHEN + 50 THEN ( - COUNT( * ) ) * - 57 + - 62 END / + 87 + 65 THEN COUNT( * ) ELSE 25 END
----
77
25

skipif mysql # not compatible
query II rowsort label-9306
SELECT DISTINCT + 77 col2, CASE - 71 WHEN + CASE - 36 WHEN + 50 THEN ( - COUNT ( * ) ) * - 57 + - 62 END / + 87 + 65 THEN COUNT ( * ) ELSE 25 END
----
77
25

query I rowsort
SELECT DISTINCT - 95 * 12 col2
----
-1140

query I rowsort
SELECT + 91 * - 29 + + + ( - 26 ) + + - NULLIF ( + 45, + 56 ) * 73
----
-5950

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT DISTINCT COUNT( - 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT COUNT ( - 51 ) AS col0
----
1

query I rowsort
SELECT - 94 + + 50 * 1 AS col2
----
-44

query I rowsort
SELECT DISTINCT - 96 * 54
----
-5184

query II rowsort
SELECT - 74 AS col0, - 34 AS col2
----
-74
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT - 41 DIV + + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 41 / + + 45 AS col1
----
0

query I rowsort
SELECT - 46 * 75 * + 49 col2
----
-169050

query I rowsort
SELECT ALL - 78 + + - 94 AS col2
----
-172

query I rowsort
SELECT - 58 * 95
----
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL COUNT( + 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL COUNT ( + 62 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT - COUNT( 31 ) + - 26
----
-27

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - COUNT ( 31 ) + - 26
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL ( + COALESCE ( + 43, 85 * + 64 + COUNT( * ), + 13 + - 31 ) )
----
43

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL ( + COALESCE ( + 43, 85 * + 64 + COUNT ( * ), + 13 + - 31 ) )
----
43

query I rowsort
SELECT ALL ( 76 ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 79 + + + 33 * + + 67
----
2132

query II rowsort
SELECT - 40 AS col2, + 36 AS col2
----
-40
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9324
SELECT 37 col1, 64 DIV + COUNT( * ) AS col0, + 27 * + 71 * 13 AS col1
----
37
64
24921

skipif mysql # not compatible
query III rowsort label-9324
SELECT 37 col1, 64 / + COUNT ( * ) AS col0, + 27 * + 71 * 13 AS col1
----
37
64
24921

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - COUNT( + ( + + 99 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9325
SELECT - COUNT ( + ( + + 99 ) )
----
-1

query I rowsort
SELECT ALL ( 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - AVG ( DISTINCT + - 40 ) + + + CASE COALESCE ( - + 30, - 42 + 38 ) WHEN + 61 + 68 THEN - AVG ( DISTINCT - 16 ) + + MAX( ALL ( 75 ) ) * + 32 WHEN + 43 * + 47 THEN + 76 - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT - AVG ( DISTINCT + - 40 ) + + + CASE COALESCE ( - + 30, - 42 + 38 ) WHEN + 61 + 68 THEN - AVG ( DISTINCT - 16 ) + + MAX ( ALL ( 75 ) ) * + 32 WHEN + 43 * + 47 THEN + 76 - 92 END
----
NULL

query I rowsort
SELECT DISTINCT ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT + 82 + - COUNT( * ) * - - 74
----
8

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + 82 + - COUNT ( * ) * - - 74
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - NULLIF ( + NULLIF ( + 8, + - 96 + + + 6 ), 15 ) - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9330
SELECT - NULLIF ( + NULLIF ( + 8, + - 96 + + + 6 ), 15 ) - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - 55 - + - 62 * + + MIN( ALL + - 11 ) col0
----
-737

skipif mysql # not compatible
query I rowsort label-9331
SELECT - 55 - + - 62 * + + MIN ( ALL + - 11 ) col0
----
-737

query I rowsort
SELECT ALL + 58 * - 10 AS col0
----
-580

query II rowsort
SELECT 76 AS col1, - 70 + + - 41 AS col1
----
76
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT - + 75 * + COUNT( * ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT - + 75 * + COUNT ( * ) col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL + 98 DIV 1 * - 78 + - - 47 - 78 AS col2
----
-7675

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + 98 / 1 * - 78 + - - 47 - 78 AS col2
----
-7675

query I rowsort
SELECT DISTINCT + - 30 col2
----
-30

query I rowsort
SELECT - + 8 + ( - - ( - 23 ) ) col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9338
SELECT - 8 DIV - - 41 - + CAST( - 33 AS SIGNED ) + + 90
----
123

skipif mysql # not compatible
query I rowsort label-9338
SELECT - 8 / - - 41 - + CAST ( - 33 AS INTEGER ) + + 90
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - 29 * + COUNT( * ) + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9339
SELECT - 29 * + COUNT ( * ) + COUNT ( * )
----
-28

query I rowsort
SELECT + - 28 - ( + 75 )
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT DISTINCT + COALESCE ( + SUM( DISTINCT 91 ), ( - + 99 ), + 72 DIV 1 - 76 * + 18, 34 * - 73 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + COALESCE ( + SUM ( DISTINCT 91 ), ( - + 99 ), + 72 / 1 - 76 * + 18, 34 * - 73 ) AS col2
----
91

query I rowsort
SELECT + 71 * 19 * + + 4 AS col2
----
5396

query I rowsort
SELECT + 41 * NULLIF ( 9, + 60 )
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT + 85 + - COUNT( * ) + + 71 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-9344
SELECT + 85 + - COUNT ( * ) + + 71 AS col1
----
155

query I rowsort
SELECT ALL - 81 * + 38
----
-3078

query I rowsort
SELECT + - 76 * + 43 * + ( + + 43 ) + + 34 * 82 AS col1
----
-137736

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT + 1 * + MAX( - + 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9347
SELECT + 1 * + MAX ( - + 23 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT 9 * CAST( NULL AS SIGNED ) * + COUNT( * ) + ( - 73 ) * - + 13 / - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT 9 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) + ( - 73 ) * - + 13 / - 36 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT ( - CAST( - ( + 43 ) AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-9349
SELECT ( - CAST ( - ( + 43 ) AS INTEGER ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9350
SELECT + CAST( + 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-9350
SELECT + CAST ( + 95 AS INTEGER )
----
95

query I rowsort
SELECT + 89 + + ( 57 )
----
146

query I rowsort
SELECT + 53 + + 94 * - 88
----
-8219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT + 65 * - COALESCE ( - 58, + 19 - - - ( + 46 ) ) * CAST( - COUNT( * ) AS SIGNED )
----
-3770

skipif mysql # not compatible
query I rowsort label-9353
SELECT + 65 * - COALESCE ( - 58, + 19 - - - ( + 46 ) ) * CAST ( - COUNT ( * ) AS INTEGER )
----
-3770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT - 71 * - COALESCE ( - COUNT( * ), - 56, - + 31 ) * + + CASE - 6 WHEN - 87 - ( MAX( ALL - 14 ) ) THEN NULL ELSE + CAST( NULL AS SIGNED ) END * 2 + 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT - 71 * - COALESCE ( - COUNT ( * ), - 56, - + 31 ) * + + CASE - 6 WHEN - 87 - ( MAX ( ALL - 14 ) ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * 2 + 98 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT + 82 + - COUNT( * ) * + 63
----
19

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 82 + - COUNT ( * ) * + 63
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT + CAST( - AVG ( ALL + 63 ) AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-9356
SELECT + CAST ( - AVG ( ALL + 63 ) AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9357
SELECT CASE 40 WHEN + + 33 - - + COUNT( * ) THEN + 25 + - - 13 WHEN + 73 DIV COUNT( 54 DIV + 46 ) THEN NULL WHEN + 36 + 85 THEN 0 * + 42 WHEN + 12 * + 44 + - 2 THEN NULL ELSE + 29 * ( 50 DIV 19 ) END AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9357
SELECT CASE 40 WHEN + + 33 - - + COUNT ( * ) THEN + 25 + - - 13 WHEN + 73 / COUNT ( 54 / + 46 ) THEN NULL WHEN + 36 + 85 THEN 0 * + 42 WHEN + 12 * + 44 + - 2 THEN NULL ELSE + 29 * ( 50 / 19 ) END AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL 23 * - COUNT( * ) * + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL 23 * - COUNT ( * ) * + COUNT ( * )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9359
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) * - - ( + 11 ) + + 11 + + + 89 + ( + 59 ) * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) * - - ( + 11 ) + + 11 + + + 89 + ( + 59 ) * + 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL ( + MAX( DISTINCT + 43 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL ( + MAX ( DISTINCT + 43 ) ) AS col0
----
43

query I rowsort
SELECT DISTINCT ( - - 19 ) * - 43 * ( 59 ) + + + 43 AS col0
----
-48160

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT - 35 AS col2, - SUM( DISTINCT - COALESCE ( + 4, + 54, + + 31 * + 71 + 93 ) ) col0
----
-35
4

skipif mysql # not compatible
query II rowsort label-9362
SELECT - 35 AS col2, - SUM ( DISTINCT - COALESCE ( + 4, + 54, + + 31 * + 71 + 93 ) ) col0
----
-35
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT COUNT( 31 ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT COUNT ( 31 ) + + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT 95 + - MAX( DISTINCT - - 62 ) - - + 25 + + 66 + - 93 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9364
SELECT 95 + - MAX ( DISTINCT - - 62 ) - - + 25 + + 66 + - 93 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT 4 + - 30 * - - ( - + 30 ) * + - CASE - + CAST( NULL AS SIGNED ) WHEN + 31 THEN AVG ( - 34 ) * MIN( ALL 9 ) WHEN + 26 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT 4 + - 30 * - - ( - + 30 ) * + - CASE - + CAST ( NULL AS INTEGER ) WHEN + 31 THEN AVG ( - 34 ) * MIN ( ALL 9 ) WHEN + 26 THEN NULL END
----
NULL

query II rowsort
SELECT 90 col2, - 38 AS col2
----
90
-38

query II rowsort
SELECT 92, + 12 AS col2
----
92
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT 14 + + - 24 + + + MIN( DISTINCT - 65 ) * - COUNT( * ) + - COUNT( * ) col2
----
54

skipif mysql # not compatible
query I rowsort label-9368
SELECT 14 + + - 24 + + + MIN ( DISTINCT - 65 ) * - COUNT ( * ) + - COUNT ( * ) col2
----
54

query I rowsort
SELECT ALL + ( 32 ) col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9370
SELECT + 53 + + + 58 + + 46 DIV - - 84 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-9370
SELECT + 53 + + + 58 + + 46 / - - 84 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT - COUNT( + - 53 ) * + - 59 col2
----
59

skipif mysql # not compatible
query I rowsort label-9371
SELECT - COUNT ( + - 53 ) * + - 59 col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9372
SELECT ALL CAST( - 55 AS SIGNED ) AS col0, 64 col1
----
-55
64

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL CAST ( - 55 AS INTEGER ) AS col0, 64 col1
----
-55
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT + + 10 - 5 + - - 33 + + MIN( DISTINCT - NULLIF ( 39, ( - 3 ) ) ) + 87 * 88
----
7655

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + + 10 - 5 + - - 33 + + MIN ( DISTINCT - NULLIF ( 39, ( - 3 ) ) ) + 87 * 88
----
7655

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + 80 * COUNT( * ) - COUNT( * ) col0
----
79

skipif mysql # not compatible
query I rowsort label-9374
SELECT + 80 * COUNT ( * ) - COUNT ( * ) col0
----
79

query II rowsort
SELECT - + 30, - NULLIF ( + - 70, 71 ) col1
----
-30
70

query I rowsort
SELECT 74 + - 92 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - COUNT( * ) * + 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9377
SELECT - COUNT ( * ) * + 72 AS col2
----
-72

query II rowsort
SELECT 9 AS col1, 24
----
9
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT - 2 + - - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9379
SELECT - 2 + - - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 7 * 4
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9381
SELECT - 46 * - 16 DIV COUNT( * ) + - COUNT( * ) + - + 58
----
677

skipif mysql # not compatible
query I rowsort label-9381
SELECT - 46 * - 16 / COUNT ( * ) + - COUNT ( * ) + - + 58
----
677

query II rowsort
SELECT 53 AS col2, 76 + 51 - - + 7 AS col2
----
53
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9383
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - 5 * 71 ) AS col2, 73 AS col1
----
-355
73

skipif mysql # not compatible
query II rowsort label-9383
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - 5 * 71 ) AS col2, 73 AS col1
----
-355
73

query I rowsort
SELECT ALL - 85 * + + 53
----
-4505

query I rowsort
SELECT DISTINCT - 52 * 63 * + - 98
----
321048

query I rowsort
SELECT - 5 * 32
----
-160

query I rowsort
SELECT - 44 * ( 91 ) + + - 57
----
-4061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT 23 * 71 - 71 * + + 67 * - COUNT( * ) * + 48 + - ( CAST( NULL AS SIGNED ) ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT 23 * 71 - 71 * + + 67 * - COUNT ( * ) * + 48 + - ( CAST ( NULL AS INTEGER ) ) * - 23
----
NULL

query I rowsort
SELECT DISTINCT + 96 + 3 - + - 66 - - - NULLIF ( 3, - - 20 ) AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + 58 * - - 16 + - - COUNT( * )
----
929

skipif mysql # not compatible
query I rowsort label-9390
SELECT + 58 * - - 16 + - - COUNT ( * )
----
929

query I rowsort
SELECT ALL 35 + 96 AS col0
----
131

query I rowsort
SELECT + 57 * + + 4 - - 10 AS col1
----
238

onlyif mysql # DIV for integer division: 
query II rowsort label-9393
SELECT ALL 29 DIV + 20 AS col2, 73 DIV + + 2 AS col0
----
1
36

skipif mysql # not compatible
query II rowsort label-9393
SELECT ALL 29 / + 20 AS col2, 73 / + + 2 AS col0
----
1
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9394
SELECT MAX( + + 59 ) DIV ( + + ( - 21 ) ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9394
SELECT MAX ( + + 59 ) / ( + + ( - 21 ) ) col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9395
SELECT ALL + 78 + + 79 - - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + 78 + + 79 - - CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ALL 23 + + 99 AS col1
----
122

query I rowsort
SELECT + 44 * + 87 * + + 34 + + 52 AS col1
----
130204

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT COUNT( * ) * CASE WHEN NOT + COUNT( ALL - 93 ) <> - 51 THEN + + ( 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT COUNT ( * ) * CASE WHEN NOT + COUNT ( ALL - 93 ) <> - 51 THEN + + ( 65 ) END
----
NULL

query I rowsort
SELECT ALL 33 * + 9
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9400
SELECT ALL CAST( - 69 AS SIGNED ) col2, - 53 + - ( - - 37 ) + + 12 AS col0
----
-69
-78

skipif mysql # not compatible
query II rowsort label-9400
SELECT ALL CAST ( - 69 AS INTEGER ) col2, - 53 + - ( - - 37 ) + + 12 AS col0
----
-69
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL NULLIF ( - + 32, + + COUNT( * ) * - + 11 / COUNT( * ) * - ( - + ( - MIN( + CASE - 49 WHEN - 42 + CAST( 22 AS SIGNED ) / 26 THEN 64 END ) ) ) ) - - 57 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL NULLIF ( - + 32, + + COUNT ( * ) * - + 11 / COUNT ( * ) * - ( - + ( - MIN ( + CASE - 49 WHEN - 42 + CAST ( 22 AS INTEGER ) / 26 THEN 64 END ) ) ) ) - - 57 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - 17 + + ( + - COUNT( - ( + 17 ) ) ) * 3 + + - 20 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 17 + + ( + - COUNT ( - ( + 17 ) ) ) * 3 + + - 20 AS col2
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9403
SELECT CAST( NULL AS DECIMAL ) * 38 * + 30 * - + 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT CAST ( NULL AS REAL ) * 38 * + 30 * - + 65 col1
----
NULL

query I rowsort
SELECT - NULLIF ( + 51, 99 / + + 68 + - AVG ( + - 45 ) ) AS col1
----
-51

query I rowsort
SELECT 22 - - 2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9406
SELECT ALL + 37 DIV - 92 * 20 + + COUNT( * ) - + 31 - - ( COUNT( * ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + 37 / - 92 * 20 + + COUNT ( * ) - + 31 - - ( COUNT ( * ) ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT 32 * - ( - COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT 32 * - ( - COUNT ( * ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL - - COALESCE ( + SUM( DISTINCT - - 6 ), 14 )
----
6

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL - - COALESCE ( + SUM ( DISTINCT - - 6 ), 14 )
----
6

query I rowsort
SELECT ALL - - 59 AS col0
----
59

query I rowsort
SELECT 78 * 70
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT - COALESCE ( + - 39, COUNT( + 32 ) ) + 84 col1
----
123

skipif mysql # not compatible
query I rowsort label-9411
SELECT - COALESCE ( + - 39, COUNT ( + 32 ) ) + 84 col1
----
123

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9412
SELECT + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT + - CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT 80 DIV + - COALESCE ( - + 19, - 73 + + 97, - - 98 * - - ( 74 ) * + 17 )
----
4

skipif mysql # not compatible
query I rowsort label-9413
SELECT 80 / + - COALESCE ( - + 19, - 73 + + 97, - - 98 * - - ( 74 ) * + 17 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT + 54 * - 93 + - - NULLIF ( + 42, MIN( - 96 ) * - COUNT( * ) + 80 + + ( ( + 28 ) ) + COALESCE ( - 69, COUNT( * ) * COUNT( * ) + 46 ) * ( 5 / 14 + 20 ) ) * + 14 AS col2
----
-4434

skipif mysql # not compatible
query I rowsort label-9414
SELECT + 54 * - 93 + - - NULLIF ( + 42, MIN ( - 96 ) * - COUNT ( * ) + 80 + + ( ( + 28 ) ) + COALESCE ( - 69, COUNT ( * ) * COUNT ( * ) + 46 ) * ( 5 / 14 + 20 ) ) * + 14 AS col2
----
-4434

query I rowsort
SELECT DISTINCT - 37 * 94 AS col2
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT DISTINCT - COUNT( * ) * - 46 + + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT - COUNT ( * ) * - 46 + + - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT 63 + - - MAX( - 23 ) + - - 29 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9417
SELECT 63 + - - MAX ( - 23 ) + - - 29 AS col1
----
69

query I rowsort
SELECT ALL 3 * + - 3 + 10
----
1

query I rowsort
SELECT ALL - 36 * 2 + 39
----
-33

query I rowsort
SELECT - CASE + 57 WHEN - AVG ( - 0 ) THEN + + 90 WHEN + 37 THEN + 5 ELSE NULL END * + - 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT + CAST( 31 AS SIGNED ) * 83 * - + 83 * 7 * + 20 col0
----
-29898260

skipif mysql # not compatible
query I rowsort label-9421
SELECT + CAST ( 31 AS INTEGER ) * 83 * - + 83 * 7 * + 20 col0
----
-29898260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9422
SELECT - CASE - + 70 WHEN 70 + - 48 + + - 45 * - 52 THEN NULL ELSE - 14 DIV + 84 END + + NULLIF ( - 62 + + 62 DIV + COUNT( ALL 8 + + 38 ), COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9422
SELECT - CASE - + 70 WHEN 70 + - 48 + + - 45 * - 52 THEN NULL ELSE - 14 / + 84 END + + NULLIF ( - 62 + + 62 / + COUNT ( ALL 8 + + 38 ), COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ALL + COUNT( * ) - + 12 * + 28 AS col2
----
-335

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL + COUNT ( * ) - + 12 * + 28 AS col2
----
-335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9424
SELECT + 33 AS col2, + CAST( NULL AS SIGNED ) * MAX( - CAST( NULL AS SIGNED ) ) - 63
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9424
SELECT + 33 AS col2, + CAST ( NULL AS INTEGER ) * MAX ( - CAST ( NULL AS INTEGER ) ) - 63
----
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT MAX( - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-9425
SELECT MAX ( - 65 ) AS col1
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9426
SELECT - CAST( NULL AS DECIMAL ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT - CAST ( NULL AS REAL ) * - 12
----
NULL

query I rowsort
SELECT + 22 + 53 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL CASE - 24 WHEN MIN( - 11 ) THEN NULL WHEN 88 THEN 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL CASE - 24 WHEN MIN ( - 11 ) THEN NULL WHEN 88 THEN 44 ELSE NULL END
----
NULL

query I rowsort
SELECT + 35 + - + 66 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9430
SELECT DISTINCT - 59 DIV + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - 59 / + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT - - 67 col2, - 59 * MIN( DISTINCT - 73 ) * NULLIF ( 71, - 5 ) AS col0
----
67
305797

skipif mysql # not compatible
query II rowsort label-9431
SELECT - - 67 col2, - 59 * MIN ( DISTINCT - 73 ) * NULLIF ( 71, - 5 ) AS col0
----
67
305797

query I rowsort
SELECT + + 90 + - + 4
----
86

query I rowsort
SELECT - + 21 * + 93 + - 98 - 8
----
-2059

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT + - COUNT( * ) + - + 91
----
-92

skipif mysql # not compatible
query I rowsort label-9434
SELECT + - COUNT ( * ) + - + 91
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL - 10 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL - 10 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( + 15 ) col1
----
-15

query I rowsort
SELECT ALL - CASE - 64 WHEN 39 THEN NULL WHEN 82 THEN - + 5 END * 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + - 27 * 11 AS col1
----
2079

onlyif mysql # DIV for integer division: 
query II rowsort label-9439
SELECT ALL 68, 26 DIV + + 22 AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-9439
SELECT ALL 68, 26 / + + 22 AS col0
----
68
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9440
SELECT - COUNT( * ), 41 col1
----
-1
41

skipif mysql # not compatible
query II rowsort label-9440
SELECT - COUNT ( * ), 41 col1
----
-1
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9441
SELECT CAST( NULL AS SIGNED ) AS col1, NULLIF ( - 1, 94 ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9441
SELECT CAST ( NULL AS INTEGER ) AS col1, NULLIF ( - 1, 94 ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - CASE - + 85 WHEN + COALESCE ( - MIN( ALL + + 25 ), + 70 + - SUM( DISTINCT - 26 ) ) * 33 THEN 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT - CASE - + 85 WHEN + COALESCE ( - MIN ( ALL + + 25 ), + 70 + - SUM ( DISTINCT - 26 ) ) * 33 THEN 84 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL 48 + + - MIN( ALL ( - ( + - 55 ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL 48 + + - MIN ( ALL ( - ( + - 55 ) ) )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT + - 14 + SUM( - - 71 ) - + - ( - + 54 ) * 96 AS col1, 17
----
-5127
17

skipif mysql # not compatible
query II rowsort label-9444
SELECT + - 14 + SUM ( - - 71 ) - + - ( - + 54 ) * 96 AS col1, 17
----
-5127
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT CASE COUNT( * ) WHEN - 32 THEN + 72 * + + 54 / ( 70 ) WHEN ( - ( - AVG ( - 0 ) ) ) THEN 60 + CASE + 17 + 16 WHEN - 79 THEN NULL WHEN NULLIF ( COUNT( DISTINCT 58 ), - COUNT( * ) ) THEN + 20 * + 80 ELSE 7 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT CASE COUNT ( * ) WHEN - 32 THEN + 72 * + + 54 / ( 70 ) WHEN ( - ( - AVG ( - 0 ) ) ) THEN 60 + CASE + 17 + 16 WHEN - 79 THEN NULL WHEN NULLIF ( COUNT ( DISTINCT 58 ), - COUNT ( * ) ) THEN + 20 * + 80 ELSE 7 END ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - + 39 + + MIN( + - 72 )
----
-111

skipif mysql # not compatible
query I rowsort label-9446
SELECT - + 39 + + MIN ( + - 72 )
----
-111

query I rowsort
SELECT ALL + ( - 34 ) + NULLIF ( 5, 41 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT - - 64 + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9448
SELECT - - 64 + COUNT ( * ) AS col1
----
65

query I rowsort
SELECT - 94 * - - 77
----
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + COUNT( * ) * 56 + - - 97
----
153

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + COUNT ( * ) * 56 + - - 97
----
153

query II rowsort
SELECT ( - + 57 ) AS col1, + NULLIF ( 14, + 54 ) * 25
----
-57
350

query I rowsort
SELECT ( - ( 85 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - 64 * + + NULLIF ( - 70, + + COUNT( * ) )
----
4480

skipif mysql # not compatible
query I rowsort label-9453
SELECT - 64 * + + NULLIF ( - 70, + + COUNT ( * ) )
----
4480

query I rowsort
SELECT - 82 + + 11
----
-71

query I rowsort
SELECT DISTINCT 17 * 58 - - + 43
----
1029

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT ( - ( - COALESCE ( - 14, - + 77 DIV - - 10 ) ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9456
SELECT ( - ( - COALESCE ( - 14, - + 77 / - - 10 ) ) ) AS col0
----
-14

query I rowsort
SELECT ALL - 89 * 33
----
-2937

query I rowsort
SELECT NULLIF ( 17, - + 97 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT + 11 * 54 - 77 * - - COUNT( * ), 79 * 41 AS col2
----
517
3239

skipif mysql # not compatible
query II rowsort label-9459
SELECT + 11 * 54 - 77 * - - COUNT ( * ), 79 * 41 AS col2
----
517
3239

query I rowsort
SELECT ALL + 16 * - 4 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT DISTINCT + ( + COALESCE ( - MAX( + + CAST( NULL AS SIGNED ) ), + + 34 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT + ( + COALESCE ( - MAX ( + + CAST ( NULL AS INTEGER ) ), + + 34 ) ) AS col1
----
34

query I rowsort
SELECT - 74 * + - 14 AS col2
----
1036

query I rowsort
SELECT ALL + + 66 * - 14 + + + 87 col2
----
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - - COUNT( + 52 ) * + 59 - + - 17
----
76

skipif mysql # not compatible
query I rowsort label-9464
SELECT - - COUNT ( + 52 ) * + 59 - + - 17
----
76

query I rowsort
SELECT + 69 * + - 27
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL - + ( + - 2 ) * COUNT( ALL + ( + 18 ) ) * + COUNT( * ) + + 68 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - + ( + - 2 ) * COUNT ( ALL + ( + 18 ) ) * + COUNT ( * ) + + 68 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL MIN( DISTINCT + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL MIN ( DISTINCT + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL + SUM( 70 ) * 46 AS col2
----
3220

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL + SUM ( 70 ) * 46 AS col2
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT + - 18 - + 51 + - + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-9469
SELECT + - 18 - + 51 + - + COUNT ( * )
----
-70

query I rowsort
SELECT ALL - 54 + 76 * 45 * - + 26
----
-88974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9471
SELECT - + 48 + 15 - COUNT( * ) + + 21 + 93 + 73 DIV + 78 * + 52 * - NULLIF ( + 46, - 20 + 8 ) - 72
----
8

skipif mysql # not compatible
query I rowsort label-9471
SELECT - + 48 + 15 - COUNT ( * ) + + 21 + 93 + 73 / + 78 * + 52 * - NULLIF ( + 46, - 20 + 8 ) - 72
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT + + COALESCE ( + - 23, + COUNT( * ) + + COUNT( * ) ) * 42
----
-966

skipif mysql # not compatible
query I rowsort label-9472
SELECT + + COALESCE ( + - 23, + COUNT ( * ) + + COUNT ( * ) ) * 42
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL 55 + + ( COUNT( * ) ) + + - 84 * - 61 * COUNT( * ) + - 24 AS col0
----
5156

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL 55 + + ( COUNT ( * ) ) + + - 84 * - 61 * COUNT ( * ) + - 24 AS col0
----
5156

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT - NULLIF ( - + 18, + COUNT( * ) ) * + - MAX( ALL 20 ) AS col2
----
-360

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - NULLIF ( - + 18, + COUNT ( * ) ) * + - MAX ( ALL 20 ) AS col2
----
-360

query I rowsort
SELECT + CASE + - 74 WHEN - COALESCE ( 45, - 41 + - 46 * 96, + 46 ) THEN - 56 WHEN 56 + - 33 THEN NULL ELSE NULL END / 13 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9476
SELECT + COALESCE ( 25, - + COUNT( * ) - + 85, - - ( ( - MIN( DISTINCT 10 ) ) ) DIV - + 61 - - CAST( NULL AS SIGNED ) ) + + 71 * - 36 col2
----
-2531

skipif mysql # not compatible
query I rowsort label-9476
SELECT + COALESCE ( 25, - + COUNT ( * ) - + 85, - - ( ( - MIN ( DISTINCT 10 ) ) ) / - + 61 - - CAST ( NULL AS INTEGER ) ) + + 71 * - 36 col2
----
-2531

query I rowsort
SELECT ALL 82 + + + 77 AS col0
----
159

query I rowsort
SELECT + 51 + - + 34 AS col2
----
17

query I rowsort
SELECT ALL + 92 + 53 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL MIN( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL MIN ( 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT 82 + - COUNT( * ) - + - 1
----
82

skipif mysql # not compatible
query I rowsort label-9481
SELECT 82 + - COUNT ( * ) - + - 1
----
82

query I rowsort
SELECT 53 + + - 59 AS col0
----
-6

query I rowsort
SELECT 89 * + 12
----
1068

onlyif mysql # DIV for integer division: 
query II rowsort label-9484
SELECT DISTINCT - 27 AS col0, + 11 DIV 21 AS col1
----
-27
0

skipif mysql # not compatible
query II rowsort label-9484
SELECT DISTINCT - 27 AS col0, + 11 / 21 AS col1
----
-27
0

query I rowsort
SELECT ( - 2 ) - 29 AS col0
----
-31

query I rowsort
SELECT 8 + 38
----
46

query I rowsort
SELECT ALL 46 - + 31 - + - 62
----
77

query I rowsort
SELECT DISTINCT 76 - - CASE - NULLIF ( - - 35, - - 46 * 88 ) WHEN + 34 THEN NULL WHEN 72 + + - 58 THEN + 29 ELSE 51 END + 99 * + 35 AS col2
----
3592

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - MIN( DISTINCT + - 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - MIN ( DISTINCT + - 65 ) AS col1
----
65

query III rowsort
SELECT + 78 AS col2, + 3 * 23, + 46 + + 9 + + + 68 * - + 14 + + 10 AS col1
----
78
69
-887

query I rowsort
SELECT DISTINCT - 30 col2
----
-30

query I rowsort
SELECT ALL 11 * 84
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT COUNT( * ) * - 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9493
SELECT COUNT ( * ) * - 62 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT ALL - CASE COUNT( * ) WHEN + 18 THEN + 69 WHEN - - 37 THEN 5 WHEN + 98 THEN - ( + - NULLIF ( - NULLIF ( 14, 50 ), + COUNT( * ) * ( - CASE 13 WHEN + ( - CAST( NULL AS SIGNED ) ) THEN 56 WHEN NULLIF ( COALESCE ( 5, + 18 ), + 0 ) THEN NULL END * 26 ) ) ) * 36 + - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - CASE COUNT ( * ) WHEN + 18 THEN + 69 WHEN - - 37 THEN 5 WHEN + 98 THEN - ( + - NULLIF ( - NULLIF ( 14, 50 ), + COUNT ( * ) * ( - CASE 13 WHEN + ( - CAST ( NULL AS INTEGER ) ) THEN 56 WHEN NULLIF ( COALESCE ( 5, + 18 ), + 0 ) THEN NULL END * 26 ) ) ) * 36 + - 74 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT CAST( - 28 AS SIGNED ) * - 53 + 29 * + COUNT( * ) AS col0
----
1513

skipif mysql # not compatible
query I rowsort label-9495
SELECT CAST ( - 28 AS INTEGER ) * - 53 + 29 * + COUNT ( * ) AS col0
----
1513

query I rowsort
SELECT - 70 + - - 62
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT 97 DIV - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9497
SELECT 97 / - COUNT ( * )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT - 53 DIV - - 18 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 53 / - - 18 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT COALESCE ( - 20, - - 33, + + 39 ) + - CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 6 * + 76 END + - 27 * + CASE 79 WHEN 99 THEN 29 ELSE - 8 END AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-9499
SELECT COALESCE ( - 20, - - 33, + + 39 ) + - CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 6 * + 76 END + - 27 * + CASE 79 WHEN 99 THEN 29 ELSE - 8 END AS col2
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9500
SELECT ALL - 18 + COUNT( * ) + 34 DIV + - SUM( DISTINCT + - 89 )
----
-17

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL - 18 + COUNT ( * ) + 34 / + - SUM ( DISTINCT + - 89 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT 13 * 43 + COUNT( * )
----
560

skipif mysql # not compatible
query I rowsort label-9501
SELECT 13 * 43 + COUNT ( * )
----
560

query I rowsort
SELECT ALL + 7 + + 2
----
9

query I rowsort
SELECT + 19 + - 21 + - 0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT ALL - 69 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - 69 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL - - 46 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - - 46 + COUNT ( * )
----
47

query I rowsort
SELECT 97 + + 29 - - - 34 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - 56 + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-9507
SELECT - 56 + + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL + 66 + - 42 - - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + 66 + - 42 - - + COUNT ( * )
----
25

query I rowsort
SELECT - ( - - 14 ) + - + ( - - ( + + 28 ) ) * - 88
----
2450

query I rowsort
SELECT 35 + + COALESCE ( + 19, - 96 + - + 98 ) + - + 87
----
-33

query I rowsort
SELECT + ( + - ( - - 14 ) ) * + 18
----
-252

query I rowsort
SELECT ALL - 31 + 5 * - 53 AS col2
----
-296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9513
SELECT ALL COALESCE ( - + 97, - - 22 DIV - 7 ) - CAST( - 75 AS SIGNED ) - + COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL COALESCE ( - + 97, - - 22 / - 7 ) - CAST ( - 75 AS INTEGER ) - + COUNT ( * ) AS col1
----
-23

query II rowsort
SELECT - 99 AS col0, 85 AS col1
----
-99
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT 53 DIV + + 42
----
1

skipif mysql # not compatible
query I rowsort label-9515
SELECT 53 / + + 42
----
1

query II rowsort
SELECT - 55 AS col1, + 86 AS col0
----
-55
86

query II rowsort
SELECT - 7 AS col0, - 13 AS col2
----
-7
-13

query II rowsort
SELECT ALL 9, - 29 + + 46 AS col1
----
9
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9519
SELECT NULLIF ( 65, 22 * - COALESCE ( - - CASE - 35 WHEN - - 25 / - + NULLIF ( + - 3, 34 + - CAST( NULL AS DECIMAL ) + 31 / MAX( ( 30 ) * - 18 ) ) THEN 84 ELSE NULL END, - ( + 52 ), + 93 / + 30 ) ) + - ( 2 - MIN( - 27 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9519
SELECT NULLIF ( 65, 22 * - COALESCE ( - - CASE - 35 WHEN - - 25 / - + NULLIF ( + - 3, 34 + - CAST ( NULL AS REAL ) + 31 / MAX ( ( 30 ) * - 18 ) ) THEN 84 ELSE NULL END, - ( + 52 ), + 93 / + 30 ) ) + - ( 2 - MIN ( - 27 ) ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT 79 DIV + 15 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9520
SELECT 79 / + 15 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT COALESCE ( + 69, - - 84 ) * + CAST( NULL AS SIGNED ) + - - MIN( 14 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT COALESCE ( + 69, - - 84 ) * + CAST ( NULL AS INTEGER ) + - - MIN ( 14 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL COUNT( DISTINCT + - ( 50 ) ) * + 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL COUNT ( DISTINCT + - ( 50 ) ) * + 49 AS col0
----
49

query I rowsort
SELECT DISTINCT + 16 * ( 52 )
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT 95 + + 20 * + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-9524
SELECT 95 + + 20 * + COUNT ( * )
----
115

query II rowsort
SELECT + 73 AS col1, 33
----
73
33

query I rowsort
SELECT ALL + 98 * + CASE 33 WHEN - 85 THEN NULL WHEN + 81 + - 0 THEN 27 WHEN ( - 95 ) THEN NULL END * + + 45 * + 8 * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT MAX( + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-9527
SELECT MAX ( + 93 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9528
SELECT ALL - 52 col2, - CAST( NULL AS SIGNED )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-9528
SELECT ALL - 52 col2, - CAST ( NULL AS INTEGER )
----
-52
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9529
SELECT CAST( NULL AS DECIMAL ) + + ( 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT CAST ( NULL AS REAL ) + + ( 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT DISTINCT - 65 AS col1, - 37 / + CASE 39 WHEN - CASE - MIN( ALL + + 99 ) WHEN + 2 * - - 62 THEN NULL ELSE - ( - 6 ) END * AVG ( DISTINCT + 24 ) THEN - 35 END * - 91 + - 87 / + 33
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-9530
SELECT DISTINCT - 65 AS col1, - 37 / + CASE 39 WHEN - CASE - MIN ( ALL + + 99 ) WHEN + 2 * - - 62 THEN NULL ELSE - ( - 6 ) END * AVG ( DISTINCT + 24 ) THEN - 35 END * - 91 + - 87 / + 33
----
-65
NULL

query I rowsort
SELECT 4 * + 66
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-9532
SELECT 26 * + MAX( - 50 ) + - - 63 * ( - + COUNT( * ) ) AS col0, - 2 * + 54
----
-1363
-108

skipif mysql # not compatible
query II rowsort label-9532
SELECT 26 * + MAX ( - 50 ) + - - 63 * ( - + COUNT ( * ) ) AS col0, - 2 * + 54
----
-1363
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT COUNT( 45 ) * + 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT COUNT ( 45 ) * + 73 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT ALL - 22 + + - COUNT( * ) DIV + + 79
----
-22

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL - 22 + + - COUNT ( * ) / + + 79
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9535
SELECT DISTINCT - - 46, - COUNT( * ) + + NULLIF ( + CAST( - ( COUNT( * ) ) AS SIGNED ), AVG ( - 14 ) + + 49 ) AS col2
----
46
-2

skipif mysql # not compatible
query II rowsort label-9535
SELECT DISTINCT - - 46, - COUNT ( * ) + + NULLIF ( + CAST ( - ( COUNT ( * ) ) AS INTEGER ), AVG ( - 14 ) + + 49 ) AS col2
----
46
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL - + MIN( - 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL - + MIN ( - 42 ) col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9537
SELECT CASE 35 WHEN 42 THEN NULL ELSE 30 - + 44 + + 49 DIV 16 DIV - MIN( - + 66 ) END * SUM( ALL + - 68 ) - COUNT( * )
----
951

skipif mysql # not compatible
query I rowsort label-9537
SELECT CASE 35 WHEN 42 THEN NULL ELSE 30 - + 44 + + 49 / 16 / - MIN ( - + 66 ) END * SUM ( ALL + - 68 ) - COUNT ( * )
----
951

query II rowsort
SELECT ALL - 1 AS col0, + 23
----
-1
23

query I rowsort
SELECT ALL 87 + + 9 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9540
SELECT 22 * + CAST( 20 AS SIGNED ) - - 41 + + COALESCE ( - COUNT( * ), COUNT( * ) ) + - 48 + 9 * - 23 * - COUNT( * ) AS col1
----
639

skipif mysql # not compatible
query I rowsort label-9540
SELECT 22 * + CAST ( 20 AS INTEGER ) - - 41 + + COALESCE ( - COUNT ( * ), COUNT ( * ) ) + - 48 + 9 * - 23 * - COUNT ( * ) AS col1
----
639

query I rowsort
SELECT - 26 * + 94 col1
----
-2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9542
SELECT + 47 AS col0, - 37 - - 7 - - + 83 * + ( CAST( NULL AS SIGNED ) ) + - + COUNT( * )
----
47
NULL

skipif mysql # not compatible
query II rowsort label-9542
SELECT + 47 AS col0, - 37 - - 7 - - + 83 * + ( CAST ( NULL AS INTEGER ) ) + - + COUNT ( * )
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT COALESCE ( + COUNT( * ), - + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-9543
SELECT COALESCE ( + COUNT ( * ), - + 85 )
----
1

query I rowsort
SELECT ALL + 96 + - 79 * 39 AS col1
----
-2985

onlyif mysql # DIV for integer division: 
query I rowsort label-9545
SELECT + 53 DIV 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9545
SELECT + 53 / 41 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + 93 - - 49 + - COUNT( * )
----
141

skipif mysql # not compatible
query I rowsort label-9546
SELECT + 93 - - 49 + - COUNT ( * )
----
141

query I rowsort
SELECT ALL - - 19 + 6 * 74
----
463

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL + - COUNT( * ) * + + 17
----
-17

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + - COUNT ( * ) * + + 17
----
-17

query II rowsort
SELECT DISTINCT 99, 31 * - - 67 AS col2
----
99
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - 42 * - MIN( + 52 )
----
2184

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 42 * - MIN ( + 52 )
----
2184

query I rowsort
SELECT + 86 + + + 30
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9552
SELECT ALL + 29 * - COUNT( * ), COUNT( * ) + COUNT( * ) - - 80 DIV + 47 + - COUNT( * ) AS col2
----
-29
2

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL + 29 * - COUNT ( * ), COUNT ( * ) + COUNT ( * ) - - 80 / + 47 + - COUNT ( * ) AS col2
----
-29
2

query I rowsort
SELECT - 35 + - - COALESCE ( 36, + + 63, - 92 + + 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT COALESCE ( - COUNT( * ), - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT COALESCE ( - COUNT ( * ), - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 5 + - 76 AS col0
----
-81

query I rowsort
SELECT - 82 + - 85 + + 90 * - 14
----
-1427

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT - 99 DIV - 44
----
2

skipif mysql # not compatible
query I rowsort label-9557
SELECT - 99 / - 44
----
2

query I rowsort
SELECT - 69 + 55 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT ( + + MAX( + + 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-9559
SELECT ( + + MAX ( + + 10 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT + 36 * + COUNT( * ) + + SUM( - 37 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9560
SELECT + 36 * + COUNT ( * ) + + SUM ( - 37 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT + 51 + - - COUNT( * ) + - 85 + - 15 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9561
SELECT + 51 + - - COUNT ( * ) + - 85 + - 15 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9562
SELECT - 63 / CAST( NULL AS SIGNED ) * + - COALESCE ( - + 71, COUNT( * ) * 68 + + AVG ( DISTINCT - 29 ) * + 88 * - + NULLIF ( - ( + 67 ), - 0 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT - 63 / CAST ( NULL AS INTEGER ) * + - COALESCE ( - + 71, COUNT ( * ) * 68 + + AVG ( DISTINCT - 29 ) * + 88 * - + NULLIF ( - ( + 67 ), - 0 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9563
SELECT + COUNT( ALL + 87 ) DIV - - 3 * + 97 * + 16 AS col1, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-9563
SELECT + COUNT ( ALL + 87 ) / - - 3 * + 97 * + 16 AS col1, 70
----
0
70

query I rowsort
SELECT + 45 * + ( - + 35 ) col1
----
-1575

query I rowsort
SELECT ALL + 91 * - ( + - 47 ) + ( - + 92 ) + + - 91 AS col1
----
4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9566
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) / + 35 * - + CAST( AVG ( - 37 ) AS SIGNED ) * + + CAST( ( - 61 ) AS DECIMAL ) / + - 26 * + 42 * 74 * - 66 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 35 * - + CAST ( AVG ( - 37 ) AS INTEGER ) * + + CAST ( ( - 61 ) AS REAL ) / + - 26 * + 42 * 74 * - 66 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL + 67 * - - 37 * + 56 * - + COUNT( * ) * + 46
----
-6385904

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + 67 * - - 37 * + 56 * - + COUNT ( * ) * + 46
----
-6385904

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - + 13 + + 44 - - NULLIF ( - COUNT( DISTINCT - - 82 ), + - 7 ) + - + CASE + + COUNT( * ) WHEN 29 THEN - - 92 ELSE 91 END AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9568
SELECT - + 13 + + 44 - - NULLIF ( - COUNT ( DISTINCT - - 82 ), + - 7 ) + - + CASE + + COUNT ( * ) WHEN 29 THEN - - 92 ELSE 91 END AS col0
----
-61

query I rowsort
SELECT DISTINCT - + 17 * + NULLIF ( + 72, + 49 ) AS col2
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9570
SELECT ALL - + COALESCE ( 80, NULLIF ( - 58, + + ( - COUNT( * ) ) ) DIV - COUNT( * ), - 95 + - NULLIF ( - 19, 48 + - COALESCE ( 1, + 25 * COUNT( * ) ) ) + - COUNT( * ) ) * + 3 + COALESCE ( + 22, + 90 )
----
-218

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL - + COALESCE ( 80, NULLIF ( - 58, + + ( - COUNT ( * ) ) ) / - COUNT ( * ), - 95 + - NULLIF ( - 19, 48 + - COALESCE ( 1, + 25 * COUNT ( * ) ) ) + - COUNT ( * ) ) * + 3 + COALESCE ( + 22, + 90 )
----
-218

query II rowsort
SELECT ( - - 59 ), 12 * 9 AS col2
----
59
108

query I rowsort
SELECT + 59 * 58 + + 1 AS col0
----
3423

query I rowsort
SELECT + + 5 - + + 20 + ( - 85 ) * - 62 AS col2
----
5255

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT - - 36 + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9574
SELECT - - 36 + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT + - 30 * + 68 AS col0, - COUNT( * )
----
-2040
-1

skipif mysql # not compatible
query II rowsort label-9575
SELECT + - 30 * + 68 AS col0, - COUNT ( * )
----
-2040
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9576
SELECT + COALESCE ( - 3, + - CAST( + 8 AS SIGNED ) ) + - + MAX( - - 49 )
----
-52

skipif mysql # not compatible
query I rowsort label-9576
SELECT + COALESCE ( - 3, + - CAST ( + 8 AS INTEGER ) ) + - + MAX ( - - 49 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT SUM( DISTINCT + + COALESCE ( + + 19, - 95 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9577
SELECT SUM ( DISTINCT + + COALESCE ( + + 19, - 95 ) ) AS col1
----
19

query I rowsort
SELECT + 77 + 6
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT - ( - + 17 ), MIN( DISTINCT 49 ) + + 33 * 1 AS col0
----
17
82

skipif mysql # not compatible
query II rowsort label-9579
SELECT - ( - + 17 ), MIN ( DISTINCT 49 ) + + 33 * 1 AS col0
----
17
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL 21 * + CASE - 12 WHEN + 46 * - + 13 THEN - COUNT( + 7 ) WHEN 33 + - 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 21 * + CASE - 12 WHEN + 46 * - + 13 THEN - COUNT ( + 7 ) WHEN 33 + - 14 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT 95 * - + 49 * + - CAST( - 15 AS SIGNED ) + - MAX( - 25 ) AS col1
----
-69800

skipif mysql # not compatible
query I rowsort label-9581
SELECT 95 * - + 49 * + - CAST ( - 15 AS INTEGER ) + - MAX ( - 25 ) AS col1
----
-69800

query I rowsort
SELECT ALL 48 * 3 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + COUNT( * ) + - MIN( + ( + 96 ) )
----
-95

skipif mysql # not compatible
query I rowsort label-9583
SELECT + COUNT ( * ) + - MIN ( + ( + 96 ) )
----
-95

query I rowsort
SELECT ALL ( + 45 ) * - 9 AS col2
----
-405

query I rowsort
SELECT + + 3 * + 15 + + 56 + - + 12 * 1 col0
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-9586
SELECT + ( - - 30 ) DIV + ( 3 ), - 86 * - 27 col2
----
10
2322

skipif mysql # not compatible
query II rowsort label-9586
SELECT + ( - - 30 ) / + ( 3 ), - 86 * - 27 col2
----
10
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT DISTINCT MIN( DISTINCT - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT MIN ( DISTINCT - 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9588
SELECT - 53, + MAX( DISTINCT + 99 ) + ( + 18 ) AS col1
----
-53
117

skipif mysql # not compatible
query II rowsort label-9588
SELECT - 53, + MAX ( DISTINCT + 99 ) + ( + 18 ) AS col1
----
-53
117

query II rowsort
SELECT ALL 59, ( + 88 ) col0
----
59
88

query I rowsort
SELECT + 23 * + - 5 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT DISTINCT MIN( + + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT MIN ( + + 12 ) AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT ALL 88 DIV - 87
----
-1

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL 88 / - 87
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT MIN( + + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT MIN ( + + 99 )
----
99

query I rowsort
SELECT - ( + 85 )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT + ( - CAST( 91 AS SIGNED ) ) * + - ( + 21 ) AS col1
----
1911

skipif mysql # not compatible
query I rowsort label-9595
SELECT + ( - CAST ( 91 AS INTEGER ) ) * + - ( + 21 ) AS col1
----
1911

query II rowsort
SELECT - 27, 45 + - 94 AS col1
----
-27
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - MIN( - - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9597
SELECT - MIN ( - - 92 ) AS col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT ALL - 63 DIV 44 + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL - 63 / 44 + - 63
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9599
SELECT DISTINCT - 19 DIV - 60 + - 11 * COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT - 19 / - 60 + - 11 * COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT ALL - 43 DIV - - 32 - + 87 + - - 88 + + COUNT( * ) * 16 * 12 + - COUNT( * ) DIV 55 * + 23
----
192

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - 43 / - - 32 - + 87 + - - 88 + + COUNT ( * ) * 16 * 12 + - COUNT ( * ) / 55 * + 23
----
192

query I rowsort
SELECT ( + 49 ) AS col0
----
49

query I rowsort
SELECT 81 * - + 92 + - 2
----
-7454

query I rowsort
SELECT - + 76 * ( 12 ) - - 41 - 75 * + 1
----
-946

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT ALL - + NULLIF ( + 31, - 77 ) DIV - 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - + NULLIF ( + 31, - 77 ) / - 23 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + - MIN( ALL + 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9605
SELECT + - MIN ( ALL + 62 ) AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9606
SELECT ALL CAST( NULL AS SIGNED ) / - - 14 - CAST( 61 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL CAST ( NULL AS INTEGER ) / - - 14 - CAST ( 61 AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT - - MIN( ALL - 64 ) * + COALESCE ( + NULLIF ( + 53, - - 65 / - 6 + ( 5 ) + 80 + + 2 + + COUNT( * ) ), + 42 * 31 - 34 ) + + 74 AS col1
----
-3318

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - - MIN ( ALL - 64 ) * + COALESCE ( + NULLIF ( + 53, - - 65 / - 6 + ( 5 ) + 80 + + 2 + + COUNT ( * ) ), + 42 * 31 - 34 ) + + 74 AS col1
----
-3318

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT ALL - - 32 AS col1, 18 + + COUNT( * )
----
32
19

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL - - 32 AS col1, 18 + + COUNT ( * )
----
32
19

query I rowsort
SELECT 20 * 25 AS col0
----
500

query I rowsort
SELECT DISTINCT + ( + 77 ) - 86
----
-9

query I rowsort
SELECT DISTINCT - - ( + 96 ) col1
----
96

query I rowsort
SELECT ALL - + 99 col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT 88 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT 88 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT DISTINCT + 57 + + - 44 AS col0, + COUNT( * )
----
13
1

skipif mysql # not compatible
query II rowsort label-9615
SELECT DISTINCT + 57 + + - 44 AS col0, + COUNT ( * )
----
13
1

query I rowsort
SELECT DISTINCT 35 + + 85
----
120

query I rowsort
SELECT DISTINCT 47 * - 67
----
-3149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9618
SELECT 17 DIV - - COUNT( * ) AS col0, + ( 39 ) DIV - CASE - 43 WHEN + 59 THEN NULL ELSE + - 8 * - MIN( ALL + - 68 ) + + + COUNT( * ) END AS col1
----
17
0

skipif mysql # not compatible
query II rowsort label-9618
SELECT 17 / - - COUNT ( * ) AS col0, + ( 39 ) / - CASE - 43 WHEN + 59 THEN NULL ELSE + - 8 * - MIN ( ALL + - 68 ) + + + COUNT ( * ) END AS col1
----
17
0

query I rowsort
SELECT 23 - + ( - - 18 ) + 55 + - - 31 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL 82 * - - COUNT( ALL - - 42 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL 82 * - - COUNT ( ALL - - 42 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT 7 + - COUNT( * ) AS col2, 82
----
6
82

skipif mysql # not compatible
query II rowsort label-9621
SELECT 7 + - COUNT ( * ) AS col2, 82
----
6
82

query I rowsort
SELECT 42 * 12 * + 5
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT ALL 34 + - CASE - 56 WHEN COUNT( * ) THEN 14 * + ( - AVG ( DISTINCT ( - 49 ) ) ) END, + 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-9623
SELECT ALL 34 + - CASE - 56 WHEN COUNT ( * ) THEN 14 * + ( - AVG ( DISTINCT ( - 49 ) ) ) END, + 33 AS col0
----
NULL
33

query I rowsort
SELECT 13 * - 97 * - 55 AS col2
----
69355

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ( COUNT( * ) ) + - 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9625
SELECT ( COUNT ( * ) ) + - 25 AS col2
----
-24

query I rowsort
SELECT ALL 98 + - 1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL CAST( - + ( 39 ) AS SIGNED ) + ( - - 95 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL CAST ( - + ( 39 ) AS INTEGER ) + ( - - 95 ) AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9628
SELECT DISTINCT COUNT( * ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT COUNT ( * ) / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT NULLIF ( + - 17, 87 * - + 54 + + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-9629
SELECT NULLIF ( + - 17, 87 * - + 54 + + COUNT ( * ) )
----
-17

query I rowsort
SELECT ALL - 8 * + 60
----
-480

query I rowsort
SELECT ALL + 50 - - + CASE 24 WHEN + - 58 THEN - 28 END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9632
SELECT - 64 * - ( 24 ) - 90 + 41 * - + 50 * 76 AS col1, - CAST( NULL AS DECIMAL )
----
-154354
NULL

skipif mysql # not compatible
query II rowsort label-9632
SELECT - 64 * - ( 24 ) - 90 + 41 * - + 50 * 76 AS col1, - CAST ( NULL AS REAL )
----
-154354
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( - - 72, + 62 )
----
72

query I rowsort
SELECT DISTINCT - - 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT 92 * - COUNT( DISTINCT + - 87 ) * 2 * + + 4 + + - 9 * + - 49 + + CASE + COUNT( * ) WHEN + + 36 THEN NULL WHEN + - 69 THEN - - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT 92 * - COUNT ( DISTINCT + - 87 ) * 2 * + + 4 + + - 9 * + - 49 + + CASE + COUNT ( * ) WHEN + + 36 THEN NULL WHEN + - 69 THEN - - 54 END
----
NULL

query I rowsort
SELECT 66 - - CASE + 68 WHEN + 34 THEN 63 END
----
NULL

query I rowsort
SELECT 68 + 3 + 32 AS col0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT + 16 * 78 - - - 46 DIV - + 29 + - 1
----
1248

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 16 * 78 - - - 46 / - + 29 + - 1
----
1248

query I rowsort
SELECT 15 * - 71
----
-1065

query I rowsort
SELECT DISTINCT + 97 * + + 34
----
3298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9641
SELECT ALL - 43 + - - 49 * - 10 + CAST( - - MAX( 40 ) AS SIGNED ) AS col0
----
-493

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - 43 + - - 49 * - 10 + CAST ( - - MAX ( 40 ) AS INTEGER ) AS col0
----
-493

query I rowsort
SELECT 7 * + - ( 21 ) + + + 97
----
-50

query I rowsort
SELECT DISTINCT - 16 * - 21
----
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT ALL 94 + + 73 + + + 42 + + CAST( - 95 AS SIGNED ) * - 52
----
5149

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL 94 + + 73 + + + 42 + + CAST ( - 95 AS INTEGER ) * - 52
----
5149

query I rowsort
SELECT 97 * + 12 * 86
----
100104

query I rowsort
SELECT 33 + 87
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9647
SELECT NULLIF ( + - 87, - - CAST( + 31 AS SIGNED ) ) + COUNT( * ) - 45
----
-131

skipif mysql # not compatible
query I rowsort label-9647
SELECT NULLIF ( + - 87, - - CAST ( + 31 AS INTEGER ) ) + COUNT ( * ) - 45
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL NULLIF ( - 16, - 59 * + + 72 + + 63 + - 3 + - COUNT( * ) - + 97 ) + - - 31
----
15

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL NULLIF ( - 16, - 59 * + + 72 + + 63 + - 3 + - COUNT ( * ) - + 97 ) + - - 31
----
15

query I rowsort
SELECT DISTINCT 21 col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT ALL COUNT( * ) AS col1, 68 + MAX( + 3 ) AS col2
----
1
71

skipif mysql # not compatible
query II rowsort label-9650
SELECT ALL COUNT ( * ) AS col1, 68 + MAX ( + 3 ) AS col2
----
1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT + COUNT( * ) + 0
----
1

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + COUNT ( * ) + 0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL + ( + NULLIF ( + + 50, + - 22 ) ) + - 13 * - CAST( - 78 AS SIGNED ) AS col1
----
-964

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + ( + NULLIF ( + + 50, + - 22 ) ) + - 13 * - CAST ( - 78 AS INTEGER ) AS col1
----
-964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9653
SELECT DISTINCT - MIN( DISTINCT - 99 ) DIV COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - MIN ( DISTINCT - 99 ) / COUNT ( * ) AS col1
----
99

query I rowsort
SELECT ALL 80 - - 54 + + 89
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT 1 DIV + 35 + + 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9655
SELECT 1 / + 35 + + 70 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT + COUNT( * ) * + 30 * 16 DIV COALESCE ( 68, 67 ) * - - 69 + + + 50 + + 34 AS col2
----
567

skipif mysql # not compatible
query I rowsort label-9656
SELECT + COUNT ( * ) * + 30 * 16 / COALESCE ( 68, 67 ) * - - 69 + + + 50 + + 34 AS col2
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT COUNT( * ) * - - 38 * + ( + - 70 ) + - ( - 55 )
----
-2605

skipif mysql # not compatible
query I rowsort label-9657
SELECT COUNT ( * ) * - - 38 * + ( + - 70 ) + - ( - 55 )
----
-2605

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT - MIN( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9658
SELECT - MIN ( DISTINCT 83 )
----
-83

query I rowsort
SELECT ALL COALESCE ( + 25, 88 * - - 26 ) AS col1
----
25

query I rowsort
SELECT DISTINCT - - 13 AS col2
----
13

query I rowsort
SELECT + + ( 48 ) col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT ALL - 76 * - 33 - + - ( - 59 ) DIV - 40
----
2509

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - 76 * - 33 - + - ( - 59 ) / - 40
----
2509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9663
SELECT DISTINCT - MAX( + ( + 94 ) ) DIV 73 + - - COUNT( 31 ) - + 71 * + 10 AS col1
----
-710

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - MAX ( + ( + 94 ) ) / 73 + - - COUNT ( 31 ) - + 71 * + 10 AS col1
----
-710

query II rowsort
SELECT ALL + 45, 73 AS col0
----
45
73

query I rowsort
SELECT ALL + + 97 * 96 * - + 4 col2
----
-37248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT + 84 DIV 53 DIV - 75 * - COUNT( * ) + - 25 - - 49 * + - 7 AS col1
----
-368

skipif mysql # not compatible
query I rowsort label-9666
SELECT + 84 / 53 / - 75 * - COUNT ( * ) + - 25 - - 49 * + - 7 AS col1
----
-368

query I rowsort
SELECT + 23 * + 85 AS col0
----
1955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT + 64 / - 41 + MIN( + - CAST( NULL AS SIGNED ) ) + + MIN( DISTINCT 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT + 64 / - 41 + MIN ( + - CAST ( NULL AS INTEGER ) ) + + MIN ( DISTINCT 33 )
----
NULL

query I rowsort
SELECT + 37 * 69 AS col2
----
2553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT - + 41 + - COUNT( * ) - + + COUNT( * ) + - NULLIF ( + - MAX( - - 14 ), 2 ) * - 53 * + 86 * - + 78 + + + 27 + + CAST( COALESCE ( - CAST( NULL AS SIGNED ), + 17 ) AS SIGNED )
----
4977337

skipif mysql # not compatible
query I rowsort label-9670
SELECT - + 41 + - COUNT ( * ) - + + COUNT ( * ) + - NULLIF ( + - MAX ( - - 14 ), 2 ) * - 53 * + 86 * - + 78 + + + 27 + + CAST ( COALESCE ( - CAST ( NULL AS INTEGER ), + 17 ) AS INTEGER )
----
4977337

query I rowsort
SELECT ALL + 36 * - 99
----
-3564

query I rowsort
SELECT - 89 * + - 36 * 99 + 99
----
317295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL - CAST( NULL AS SIGNED ) * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - CAST ( NULL AS INTEGER ) * + 29 AS col0
----
NULL

query II rowsort
SELECT - 51, + 3 AS col1
----
-51
3

query I rowsort
SELECT ALL + 92 * 51
----
4692

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT - 25 * - - 50 + ( - MAX( - - 48 ) ) + - SUM( 90 ) * + 77 AS col1
----
-8228

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT - 25 * - - 50 + ( - MAX ( - - 48 ) ) + - SUM ( 90 ) * + 77 AS col1
----
-8228

query I rowsort
SELECT ALL 43 * + 6
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL + COUNT( * ) * 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + COUNT ( * ) * 16 AS col1
----
16

query I rowsort
SELECT - 83 * 32 AS col0
----
-2656

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT COUNT( DISTINCT - - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9680
SELECT COUNT ( DISTINCT - - 1 )
----
1

query II rowsort
SELECT + 3, - ( + - 44 ) * - + 69 AS col1
----
3
-3036

query I rowsort
SELECT - 53 * + 65
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + COUNT( * ) + - COUNT( ALL + + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + COUNT ( * ) + - COUNT ( ALL + + 67 )
----
0

query I rowsort
SELECT - 64 * 92 * ( 51 ) AS col2
----
-300288

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT 39 * + 78 - + COUNT( * ) + 57
----
3098

skipif mysql # not compatible
query I rowsort label-9685
SELECT 39 * + 78 - + COUNT ( * ) + 57
----
3098

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT DISTINCT - MAX( + 2 ) + + - 95
----
-97

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT - MAX ( + 2 ) + + - 95
----
-97

query I rowsort
SELECT ALL ( + - 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT ALL - ( - 74 ) - + 59 + + 8 + - 61 + - 36 DIV - 33 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL - ( - 74 ) - + 59 + + 8 + - 61 + - 36 / - 33 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT + COUNT( * ) * - + 14 * + ( + 55 )
----
-770

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT + COUNT ( * ) * - + 14 * + ( + 55 )
----
-770

query II rowsort
SELECT ALL + 77 - - - ( + 31 ) * + 46 AS col0, 12
----
-1349
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT - 9 + - 92 * + ( 39 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 9 + - 92 * + ( 39 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT - COALESCE ( - - 41, - + ( - MAX( ALL 46 ) ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9692
SELECT - COALESCE ( - - 41, - + ( - MAX ( ALL 46 ) ) ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9693
SELECT DISTINCT - SUM( - 57 ) * - + CAST( NULL AS SIGNED ) + - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - SUM ( - 57 ) * - + CAST ( NULL AS INTEGER ) + - + 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9694
SELECT + + CASE - 85 WHEN - 53 THEN - MAX( DISTINCT 97 ) * + + COUNT( - 42 ) * 27 - - 68 ELSE + MIN( + 87 ) + - CASE - 12 WHEN + - COALESCE ( + + CASE + 40 WHEN - 49 * - CAST( 52 AS SIGNED ) THEN + 82 * ( CAST( NULL AS DECIMAL ) * - 29 ) + COALESCE ( 92 + - ( - 61 ), 38 * 12, 22 ) WHEN 98 THEN - COUNT( ALL + 29 ) ELSE NULL END, + 8, + 74 * + MAX( DISTINCT - 3 ) ) THEN + 50 + - 2 * + 6 END + CAST( 12 AS SIGNED ) END + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT + + CASE - 85 WHEN - 53 THEN - MAX ( DISTINCT 97 ) * + + COUNT ( - 42 ) * 27 - - 68 ELSE + MIN ( + 87 ) + - CASE - 12 WHEN + - COALESCE ( + + CASE + 40 WHEN - 49 * - CAST ( 52 AS INTEGER ) THEN + 82 * ( CAST ( NULL AS REAL ) * - 29 ) + COALESCE ( 92 + - ( - 61 ), 38 * 12, 22 ) WHEN 98 THEN - COUNT ( ALL + 29 ) ELSE NULL END, + 8, + 74 * + MAX ( DISTINCT - 3 ) ) THEN + 50 + - 2 * + 6 END + CAST ( 12 AS INTEGER ) END + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9695
SELECT ALL + + 28 * + - 38 col2, CASE 8 WHEN - COUNT( * ) THEN - CASE - - 26 WHEN MAX( ALL + 79 ) - 13 THEN + 96 + CASE 31 WHEN 47 THEN + 47 END WHEN - + 19 + 82 * - COUNT( * ) THEN 44 ELSE NULL END + 55 WHEN + 56 THEN NULL ELSE - 34 + - 72 END
----
-1064
-106

skipif mysql # not compatible
query II rowsort label-9695
SELECT ALL + + 28 * + - 38 col2, CASE 8 WHEN - COUNT ( * ) THEN - CASE - - 26 WHEN MAX ( ALL + 79 ) - 13 THEN + 96 + CASE 31 WHEN 47 THEN + 47 END WHEN - + 19 + 82 * - COUNT ( * ) THEN 44 ELSE NULL END + 55 WHEN + 56 THEN NULL ELSE - 34 + - 72 END
----
-1064
-106

query I rowsort
SELECT - + 72 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - + 51 + - - 60 + + + 15 + - COALESCE ( + 38, + COALESCE ( + - 85, + 56, COALESCE ( - - COUNT( * ), + 48, - - 97 ) ) + + 68, + - 58 * + - CASE - - MIN( DISTINCT - NULLIF ( + 52, 45 * + 38 + 61 / 12 ) ) WHEN 51 THEN 55 END + - 48 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9697
SELECT - + 51 + - - 60 + + + 15 + - COALESCE ( + 38, + COALESCE ( + - 85, + 56, COALESCE ( - - COUNT ( * ), + 48, - - 97 ) ) + + 68, + - 58 * + - CASE - - MIN ( DISTINCT - NULLIF ( + 52, 45 * + 38 + 61 / 12 ) ) WHEN 51 THEN 55 END + - 48 ) AS col0
----
-14

query II rowsort
SELECT - ( + + 14 ), 88 AS col0
----
-14
88

query II rowsort
SELECT + 7 AS col2, - 44
----
7
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT ALL - - 64 DIV + - 28 + - 73 - + 8
----
-83

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - - 64 / + - 28 + - 73 - + 8
----
-83

query I rowsort
SELECT + 45 * + 94 + + 15 AS col2
----
4245

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT DISTINCT - 35 DIV 79 + + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT - 35 / 79 + + 30 AS col0
----
30

query II rowsort
SELECT ALL + 88, 1 * + 3 AS col2
----
88
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9704
SELECT DISTINCT - 71 / 46 + - + 84 - + 0 + + + CASE + - 95 WHEN - 5 THEN + - 28 * + ( + + 87 ) END + - 23, + 14 * + CAST( NULL AS SIGNED ) * + 63 * - 12
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9704
SELECT DISTINCT - 71 / 46 + - + 84 - + 0 + + + CASE + - 95 WHEN - 5 THEN + - 28 * + ( + + 87 ) END + - 23, + 14 * + CAST ( NULL AS INTEGER ) * + 63 * - 12
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT + - COUNT( DISTINCT 36 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9705
SELECT + - COUNT ( DISTINCT 36 ) AS col0
----
-1

query I rowsort
SELECT ( + + 80 ) * 75 * + 3 + - + 75
----
17925

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT 7 * - COUNT( * ) * - + 91 - + + 28
----
609

skipif mysql # not compatible
query I rowsort label-9707
SELECT 7 * - COUNT ( * ) * - + 91 - + + 28
----
609

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT + CAST( - 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-9708
SELECT + CAST ( - 17 AS INTEGER )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL COUNT( * ) * + + 48
----
48

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL COUNT ( * ) * + + 48
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9710
SELECT COALESCE ( - 74, - + 20 * - 12 * + 48 + 78 DIV 35 + - 38 * 73 * - 60 * + - 38 * - - 57 * + - 44 + CAST( NULL AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9710
SELECT COALESCE ( - 74, - + 20 * - 12 * + 48 + 78 / 35 + - 38 * 73 * - 60 * + - 38 * - - 57 * + - 44 + CAST ( NULL AS INTEGER ) )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9711
SELECT + 41 + + 41 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT + 41 + + 41 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9712
SELECT DISTINCT CASE + + 22 WHEN + 45 + - 91 THEN NULL ELSE + MIN( ALL - + ( - + CAST( - - 50 AS DECIMAL ) ) ) * - 14 + - COUNT( * ) + + + CASE + + 60 WHEN + 52 / + CAST( NULL AS SIGNED ) + 14 THEN - + ( CAST( - COUNT( * ) AS SIGNED ) ) ELSE + 8 + + COUNT( * ) * + CASE - 35 + AVG ( + 5 + - 96 ) WHEN - 70 / 44 THEN NULL WHEN 8 / 7 THEN NULL ELSE - 91 END END END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT CASE + + 22 WHEN + 45 + - 91 THEN NULL ELSE + MIN ( ALL - + ( - + CAST ( - - 50 AS REAL ) ) ) * - 14 + - COUNT ( * ) + + + CASE + + 60 WHEN + 52 / + CAST ( NULL AS INTEGER ) + 14 THEN - + ( CAST ( - COUNT ( * ) AS INTEGER ) ) ELSE + 8 + + COUNT ( * ) * + CASE - 35 + AVG ( + 5 + - 96 ) WHEN - 70 / 44 THEN NULL WHEN 8 / 7 THEN NULL ELSE - 91 END END END * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9713
SELECT DISTINCT SUM( DISTINCT + - 40 ) * + - COUNT( * ) + + 6 - COALESCE ( 87, - 56, - - 54 ) + + - 30 + - CASE + 58 WHEN CAST( NULL AS SIGNED ) THEN - - 74 * + 68 + + - 70 * 98 + + ( 64 ) ELSE + 50 + 0 END * - 48
----
2329

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT SUM ( DISTINCT + - 40 ) * + - COUNT ( * ) + + 6 - COALESCE ( 87, - 56, - - 54 ) + + - 30 + - CASE + 58 WHEN CAST ( NULL AS INTEGER ) THEN - - 74 * + 68 + + - 70 * 98 + + ( 64 ) ELSE + 50 + 0 END * - 48
----
2329

query I rowsort
SELECT ALL - 10 * + + 26 - - 88
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL MIN( - 27 ) * + 35
----
-945

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL MIN ( - 27 ) * + 35
----
-945

query I rowsort
SELECT ALL 53 * + - 67 - - 92 AS col1
----
-3459

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT NULLIF ( + 3, 76 * COUNT( * ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9717
SELECT NULLIF ( + 3, 76 * COUNT ( * ) ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - COUNT( * ) * - 98
----
98

skipif mysql # not compatible
query I rowsort label-9718
SELECT - COUNT ( * ) * - 98
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT - CAST( - 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-9719
SELECT - CAST ( - 16 AS INTEGER )
----
16

query I rowsort
SELECT + 75 * - - 99 * - 23 AS col1
----
-170775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT ALL 96 * COALESCE ( + - 4, + COALESCE ( - - 86, - CASE + 41 WHEN + 4 THEN - - 11 ELSE + COUNT( * ) END ), 22 ) - - CAST( NULL AS SIGNED ) + 94 * + - 21 + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL 96 * COALESCE ( + - 4, + COALESCE ( - - 86, - CASE + 41 WHEN + 4 THEN - - 11 ELSE + COUNT ( * ) END ), 22 ) - - CAST ( NULL AS INTEGER ) + 94 * + - 21 + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT + COUNT( * ) * + - 65 * + + CASE 62 WHEN - NULLIF ( - + 52, 56 ) * - 32 - + + 57 + - 70 + 49 THEN - 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT + COUNT ( * ) * + - 65 * + + CASE 62 WHEN - NULLIF ( - + 52, 56 ) * - 32 - + + 57 + - 70 + 49 THEN - 46 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT - ( - - 72 ) + + NULLIF ( 75, - 28 ) DIV + - SUM( 21 ) * + COUNT( - 97 ) + - ( - + COUNT( * ) ) * NULLIF ( 2, COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-9723
SELECT - ( - - 72 ) + + NULLIF ( 75, - 28 ) / + - SUM ( 21 ) * + COUNT ( - 97 ) + - ( - + COUNT ( * ) ) * NULLIF ( 2, COUNT ( * ) )
----
-73

query II rowsort
SELECT ALL + 73 * - 90, 70 AS col2
----
-6570
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT 64 * - 43 AS col1, - COUNT( * )
----
-2752
-1

skipif mysql # not compatible
query II rowsort label-9725
SELECT 64 * - 43 AS col1, - COUNT ( * )
----
-2752
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT ALL - - 89 * - 58 AS col2, - ( - COUNT( * ) ) + - - 70 AS col2
----
-5162
71

skipif mysql # not compatible
query II rowsort label-9726
SELECT ALL - - 89 * - 58 AS col2, - ( - COUNT ( * ) ) + - - 70 AS col2
----
-5162
71

query I rowsort
SELECT ALL + + 26 * - 86
----
-2236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT + CAST( + COUNT( * ) AS SIGNED ) - 37
----
-36

skipif mysql # not compatible
query I rowsort label-9728
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - 37
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT + MIN( DISTINCT + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9729
SELECT + MIN ( DISTINCT + 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT + 92 * + 26 * + MAX( ALL + + ( - 92 ) )
----
-220064

skipif mysql # not compatible
query I rowsort label-9730
SELECT + 92 * + 26 * + MAX ( ALL + + ( - 92 ) )
----
-220064

query I rowsort
SELECT 43 - 53 + + + 70
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT - ( MAX( + 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-9732
SELECT - ( MAX ( + 31 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL + 19 + - + 84 + + + COUNT( * ) + 64 + 29 + NULLIF ( + + MIN( 84 ), + + 9 ) * + 42 + 65 * - + 46 AS col0
----
567

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + 19 + - + 84 + + + COUNT ( * ) + 64 + 29 + NULLIF ( + + MIN ( 84 ), + + 9 ) * + 42 + 65 * - + 46 AS col0
----
567

query I rowsort
SELECT DISTINCT + + 84 + + - 96 + 83 * + + 74 AS col2
----
6130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9735
SELECT ALL - + COUNT( * ) + MIN( + 7 ) DIV - 99
----
-1

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - + COUNT ( * ) + MIN ( + 7 ) / - 99
----
-1

query I rowsort
SELECT ALL - - 16 AS col2
----
16

query I rowsort
SELECT 43 * + + 32 AS col1
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT 92 * - 84 * + COUNT( * )
----
-7728

skipif mysql # not compatible
query I rowsort label-9738
SELECT 92 * - 84 * + COUNT ( * )
----
-7728

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT DISTINCT + - COALESCE ( + ( COUNT( * ) ), 97 ) + - - COUNT( * ) + + - CASE + 27 WHEN 13 THEN NULL WHEN - 36 THEN - 47 * 12 + 4 END + 66 + + 53 * 47, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9739
SELECT DISTINCT + - COALESCE ( + ( COUNT ( * ) ), 97 ) + - - COUNT ( * ) + + - CASE + 27 WHEN 13 THEN NULL WHEN - 36 THEN - 47 * 12 + 4 END + 66 + + 53 * 47, - COUNT ( * ) AS col2
----
NULL
-1

query I rowsort
SELECT - 81 * 55 * + 95 * + 27 - + 19
----
-11427094

query II rowsort
SELECT DISTINCT - 75 AS col2, - 97 AS col1
----
-75
-97

query I rowsort
SELECT DISTINCT - 39 * - - 7
----
-273

query I rowsort
SELECT DISTINCT 70 - + + 65
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT - ( + MIN( + 15 ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT - ( + MIN ( + 15 ) ) AS col2
----
-15

query I rowsort
SELECT ALL 5 - 31 * + 29
----
-894

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9746
SELECT + 65, - CASE 29 WHEN + 69 + - NULLIF ( + + CAST( NULL AS DECIMAL ), + COUNT( * ) ) THEN NULL WHEN - COUNT( * ) THEN - 51 ELSE NULL END - + ( ( NULLIF ( - + COALESCE ( 28, - 46 ), + ( - 67 ) ) ) ) AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9746
SELECT + 65, - CASE 29 WHEN + 69 + - NULLIF ( + + CAST ( NULL AS REAL ), + COUNT ( * ) ) THEN NULL WHEN - COUNT ( * ) THEN - 51 ELSE NULL END - + ( ( NULLIF ( - + COALESCE ( 28, - 46 ), + ( - 67 ) ) ) ) AS col0
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT COUNT( * ) - + - 65
----
66

skipif mysql # not compatible
query I rowsort label-9747
SELECT COUNT ( * ) - + - 65
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT 52 * MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT 52 * MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 23 + - - 18 AS col2
----
41

query II rowsort
SELECT 86, 79 AS col0
----
86
79

query I rowsort
SELECT ALL 69 * - NULLIF ( - 60, + 11 )
----
4140

query I rowsort
SELECT COALESCE ( 21, 69, + 79 ) * + 44
----
924

query I rowsort
SELECT DISTINCT 63 * 56 col1
----
3528

query II rowsort
SELECT DISTINCT 83 AS col2, + 30 AS col1
----
83
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9755
SELECT ( - 86 ) - 59 + + 50 + 25 * + - 2 * CAST( NULL AS SIGNED ) * 83 + - 91 - + 40 + + ( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT ( - 86 ) - 59 + + 50 + 25 * + - 2 * CAST ( NULL AS INTEGER ) * 83 + - 91 - + 40 + + ( 92 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9756
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( DISTINCT + + 0 ) * + COALESCE ( 49, 17 - + ( + ( + 14 ) ) * + 63 + 61 + + COUNT( + COALESCE ( + 82, - 81, + 65 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT + + 0 ) * + COALESCE ( 49, 17 - + ( + ( + 14 ) ) * + 63 + 61 + + COUNT ( + COALESCE ( + 82, - 81, + 65 ) ) )
----
NULL

query I rowsort
SELECT ALL - ( + 93 ) AS col0
----
-93

query I rowsort
SELECT ALL - 31 + - 42 AS col0
----
-73

query I rowsort
SELECT + 67 + 99 + - 4 * + - 25 * - - 40 * + 28
----
112166

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT - - NULLIF ( + + COUNT( * ), + 11 + - 44 + COUNT( * ) + + COALESCE ( - 67, - + 15 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9760
SELECT - - NULLIF ( + + COUNT ( * ), + 11 + - 44 + COUNT ( * ) + + COALESCE ( - 67, - + 15 ) )
----
1

query I rowsort
SELECT + 81 + - 60 * - 33 * - 51 AS col1
----
-100899

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT - 81 + - + MIN( DISTINCT 33 ) - - - COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - 81 + - + MIN ( DISTINCT 33 ) - - - COUNT ( * )
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9763
SELECT - 64 - 69 DIV + - MIN( + 78 )
----
-64

skipif mysql # not compatible
query I rowsort label-9763
SELECT - 64 - 69 / + - MIN ( + 78 )
----
-64

query I rowsort
SELECT ALL - - 11 + 88 + - 48 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - NULLIF ( - - NULLIF ( + ( + + COUNT( * ) ), + 73 ), 72 ) + 35 * + 64 * 15 AS col1
----
33599

skipif mysql # not compatible
query I rowsort label-9765
SELECT - NULLIF ( - - NULLIF ( + ( + + COUNT ( * ) ), + 73 ), 72 ) + 35 * + 64 * 15 AS col1
----
33599

query I rowsort
SELECT - ( + + 67 ) col2
----
-67

query I rowsort
SELECT DISTINCT - 88 + + 47 - + 33
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT 90 AS col0, COUNT( * ) * + + 58 * + 26
----
90
1508

skipif mysql # not compatible
query II rowsort label-9768
SELECT 90 AS col0, COUNT ( * ) * + + 58 * + 26
----
90
1508

query I rowsort
SELECT ALL - - 19 + + 28 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + CASE MIN( - + 78 ) WHEN - 57 THEN 48 ELSE NULL END * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT + CASE MIN ( - + 78 ) WHEN - 57 THEN 48 ELSE NULL END * - 78 AS col0
----
NULL

query I rowsort
SELECT + 66 * 15
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - 6 + + COUNT( DISTINCT - ( + + 10 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9772
SELECT - 6 + + COUNT ( DISTINCT - ( + + 10 ) ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9773
SELECT 35 DIV - + CAST( - - ( + 60 ) AS SIGNED ) - - 35 * + - 18 * - 50 AS col1
----
31500

skipif mysql # not compatible
query I rowsort label-9773
SELECT 35 / - + CAST ( - - ( + 60 ) AS INTEGER ) - - 35 * + - 18 * - 50 AS col1
----
31500

query I rowsort
SELECT DISTINCT + 33 * + 7 - + - 31 * - - 63
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT + + COUNT( DISTINCT + 69 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9775
SELECT + + COUNT ( DISTINCT + 69 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT 96 + ( - - 5 ) DIV - 99 + + - 81 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9776
SELECT 96 + ( - - 5 ) / - 99 + + - 81 AS col0
----
15

query I rowsort
SELECT 44 * + 24 * + 91 * + 10 * - 42 + - 69 col1
----
-40360389

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT DISTINCT 83 * + 10 - - + 32 + 51 DIV + ( + 91 ) AS col2
----
862

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT 83 * + 10 - - + 32 + 51 / + ( + 91 ) AS col2
----
862

query I rowsort
SELECT ALL - CASE + 33 WHEN 34 THEN NULL WHEN + + 27 THEN NULL ELSE - 10 * - 57 END
----
-570

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT ALL - COUNT( DISTINCT + 98 ) AS col2, - ( + + 94 )
----
-1
-94

skipif mysql # not compatible
query II rowsort label-9780
SELECT ALL - COUNT ( DISTINCT + 98 ) AS col2, - ( + + 94 )
----
-1
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9781
SELECT 33 + + 19, COUNT( * ) * + - 41 + + COUNT( * ) AS col2
----
52
-40

skipif mysql # not compatible
query II rowsort label-9781
SELECT 33 + + 19, COUNT ( * ) * + - 41 + + COUNT ( * ) AS col2
----
52
-40

query I rowsort
SELECT ALL 64 * + ( - 99 )
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT 42 * + 5 * - - COUNT( * )
----
210

skipif mysql # not compatible
query I rowsort label-9783
SELECT 42 * + 5 * - - COUNT ( * )
----
210

query I rowsort
SELECT ALL - ( 61 ) * + - 18 AS col2
----
1098

query I rowsort
SELECT 48 - + + 10 * - + 8 AS col0
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9787
SELECT - 20 DIV + NULLIF ( 56, - ( + - 91 ) ) + + 9 * + CASE 73 WHEN - 50 - COUNT( * ) THEN 25 + - 75 WHEN + 74 THEN - 24 + + 17 * 36 + - 63 ELSE - 6 * + - 70 + - COUNT( * ) END
----
3771

skipif mysql # not compatible
query I rowsort label-9787
SELECT - 20 / + NULLIF ( 56, - ( + - 91 ) ) + + 9 * + CASE 73 WHEN - 50 - COUNT ( * ) THEN 25 + - 75 WHEN + 74 THEN - 24 + + 17 * 36 + - 63 ELSE - 6 * + - 70 + - COUNT ( * ) END
----
3771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL - 90 * 73 / + ( CASE + 20 WHEN 81 * + + 20 THEN + CAST( - - SUM( DISTINCT - - 7 ) AS SIGNED ) ELSE - 81 - - CAST( NULL AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - 90 * 73 / + ( CASE + 20 WHEN 81 * + + 20 THEN + CAST ( - - SUM ( DISTINCT - - 7 ) AS INTEGER ) ELSE - 81 - - CAST ( NULL AS INTEGER ) END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9789
SELECT 32 * 11, + 60 * + CAST( NULL AS SIGNED ) AS col0
----
352
NULL

skipif mysql # not compatible
query II rowsort label-9789
SELECT 32 * 11, + 60 * + CAST ( NULL AS INTEGER ) AS col0
----
352
NULL

query I rowsort
SELECT ALL + ( - - 63 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT ALL - CAST( - 61 AS SIGNED ) * + 70 AS col1
----
4270

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL - CAST ( - 61 AS INTEGER ) * + 70 AS col1
----
4270

query I rowsort
SELECT 18 * + 96 + NULLIF ( 11, 29 ) * - 17 * - 79
----
16501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9793
SELECT DISTINCT - 73 + CAST( - 75 AS SIGNED ) + 92 col0, - 10 + - 91 - - - CAST( NULL AS SIGNED ) + - - MAX( 18 ) * + + 41
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-9793
SELECT DISTINCT - 73 + CAST ( - 75 AS INTEGER ) + 92 col0, - 10 + - 91 - - - CAST ( NULL AS INTEGER ) + - - MAX ( 18 ) * + + 41
----
-56
NULL

query I rowsort
SELECT ALL + 19 + + 86 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + SUM( ALL 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9795
SELECT + SUM ( ALL 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT + COUNT( DISTINCT 71 ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-9796
SELECT + COUNT ( DISTINCT 71 ) / 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT ALL 91 DIV 96 * 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL 91 / 96 * 41 AS col0
----
0

query I rowsort
SELECT + 34 + + 9 AS col1
----
43

query II rowsort
SELECT ALL ( + - ( + ( + 34 ) ) ) * + - 56 AS col0, + 22 * + - 50
----
1904
-1100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT + 78 DIV 46 DIV - NULLIF ( - - COUNT( * ), - 66 * + 9 ) + 27
----
26

skipif mysql # not compatible
query I rowsort label-9800
SELECT + 78 / 46 / - NULLIF ( - - COUNT ( * ), - 66 * + 9 ) + 27
----
26

query I rowsort
SELECT - COALESCE ( + + 88, - 6 * - - 65 - + 20 + + 78 * - 54 ) AS col1
----
-88

query I rowsort
SELECT DISTINCT - 77 + 15 + + + 7 * + 96
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL + 19 + SUM( DISTINCT 35 ) * 46
----
1629

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + 19 + SUM ( DISTINCT 35 ) * 46
----
1629

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT 49 + 8 - + 37 - + - COUNT( - 51 )
----
21

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT 49 + 8 - + 37 - + - COUNT ( - 51 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT DISTINCT + 75 * - + 43 * + - SUM( DISTINCT + + 49 )
----
158025

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + 75 * - + 43 * + - SUM ( DISTINCT + + 49 )
----
158025

query I rowsort
SELECT + + 64 * + 36 + - ( + + 31 ) * - 29 + 93
----
3296

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT COALESCE ( + 38, - CASE 2 WHEN MIN( ALL + 81 ) + + 91 + + + 53 THEN - 38 END )
----
38

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT COALESCE ( + 38, - CASE 2 WHEN MIN ( ALL + 81 ) + + 91 + + + 53 THEN - 38 END )
----
38

query I rowsort
SELECT ALL - 84 - 77
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT + CAST( + MAX( - 60 ) AS SIGNED ) - + 91 * + + 89 * 48 + + COUNT( + 24 )
----
-388811

skipif mysql # not compatible
query I rowsort label-9809
SELECT + CAST ( + MAX ( - 60 ) AS INTEGER ) - + 91 * + + 89 * 48 + + COUNT ( + 24 )
----
-388811

query I rowsort
SELECT - 64 * + - 76
----
4864

query I rowsort
SELECT - NULLIF ( - 74, + 77 + + 76 ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT DISTINCT - CASE + NULLIF ( COUNT( ALL - + 1 ), MIN( - 73 ) ) WHEN - + COUNT( * ) / 52 + - 27 THEN + + COALESCE ( CASE 32 WHEN CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN - 87 * + MAX( - - 40 ) THEN 4 END, + + 82 * + 91 ) + + COUNT( * ) WHEN 64 / 25 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT - CASE + NULLIF ( COUNT ( ALL - + 1 ), MIN ( - 73 ) ) WHEN - + COUNT ( * ) / 52 + - 27 THEN + + COALESCE ( CASE 32 WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN - 87 * + MAX ( - - 40 ) THEN 4 END, + + 82 * + 91 ) + + COUNT ( * ) WHEN 64 / 25 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9813
SELECT - + CAST( NULL AS SIGNED ) + + 7 + - 85 + - 55 - - 18 / COALESCE ( + ( 95 ), + 82 ), 51 * - - COUNT( * ) * 1 / 35 - + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9813
SELECT - + CAST ( NULL AS INTEGER ) + + 7 + - 85 + - 55 - - 18 / COALESCE ( + ( 95 ), + 82 ), 51 * - - COUNT ( * ) * 1 / 35 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9814
SELECT ALL - COUNT( * ) - - CASE + 98 WHEN - CAST( + + SUM( - - 64 ) AS SIGNED ) THEN 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL - COUNT ( * ) - - CASE + 98 WHEN - CAST ( + + SUM ( - - 64 ) AS INTEGER ) THEN 53 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + - COUNT( * ) * + - MIN( 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9815
SELECT + - COUNT ( * ) * + - MIN ( 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9816
SELECT + 77 - COUNT( * ) + - ( - - 95 ) * 68 DIV - + 65 * - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9816
SELECT + 77 - COUNT ( * ) + - ( - - 95 ) * 68 / - + 65 * - COUNT ( * )
----
-23

query I rowsort
SELECT - 70 * + ( - 61 )
----
4270

query I rowsort
SELECT - 64 + + - 0 - + 63
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT ALL + MAX( ALL 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL + MAX ( ALL 33 )
----
33

query I rowsort
SELECT + 34 / CASE ( - 20 ) WHEN - 19 THEN - + ( + 5 ) * - 61 / + + 25 + 61 - + 75 * + 49 * - 55 + + AVG ( DISTINCT - - 84 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 20, + 61 + + ( COALESCE ( 99, + 24 ) ) )
----
-20

query I rowsort
SELECT - 11 * + 76
----
-836

query I rowsort
SELECT ALL 84 * - 30 + + - 52 * + 23 AS col1
----
-3716

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ( + CASE - 74 WHEN + CASE - - COALESCE ( - + 46, + 70 ) WHEN + 56 + - 53 + - - 61 THEN + + 21 / - 20 + + COALESCE ( + 98, - 76 + - 1 * - 62 ) + - + 13 + + SUM( - - 83 ) - - NULLIF ( 68, - 55 + 92 * + 78 ) WHEN - 94 THEN NULL END THEN + MAX( - 9 ) ELSE COUNT( ALL 92 ) * 41 END ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9824
SELECT ( + CASE - 74 WHEN + CASE - - COALESCE ( - + 46, + 70 ) WHEN + 56 + - 53 + - - 61 THEN + + 21 / - 20 + + COALESCE ( + 98, - 76 + - 1 * - 62 ) + - + 13 + + SUM ( - - 83 ) - - NULLIF ( 68, - 55 + 92 * + 78 ) WHEN - 94 THEN NULL END THEN + MAX ( - 9 ) ELSE COUNT ( ALL 92 ) * 41 END ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL + COUNT( DISTINCT - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + COUNT ( DISTINCT - 71 )
----
1

query I rowsort
SELECT DISTINCT + ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - 80 * - ( COUNT( * ) ) * - 27 AS col2
----
-2160

skipif mysql # not compatible
query I rowsort label-9827
SELECT - 80 * - ( COUNT ( * ) ) * - 27 AS col2
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL CAST( NULL AS SIGNED ) * + 40 + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL CAST ( NULL AS INTEGER ) * + 40 + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9829
SELECT - COUNT( - 76 ) + - COUNT( * ) + - - 49 + - 34 AS col0, CASE - + 73 WHEN + 2 THEN + CASE - + 8 WHEN + + NULLIF ( + 46, - NULLIF ( COUNT( * ), - - 31 * 23 ) ) * 40 * - AVG ( - - 78 ) THEN + 30 * + COUNT( * ) WHEN + 70 * + 19 THEN NULL END WHEN - COALESCE ( - 17, 2 * - ( 5 ), - 9 + + COUNT( * ) * - 8 ) * COUNT( + 9 + 12 ) + - 85 THEN NULL END
----
13
NULL

skipif mysql # not compatible
query II rowsort label-9829
SELECT - COUNT ( - 76 ) + - COUNT ( * ) + - - 49 + - 34 AS col0, CASE - + 73 WHEN + 2 THEN + CASE - + 8 WHEN + + NULLIF ( + 46, - NULLIF ( COUNT ( * ), - - 31 * 23 ) ) * 40 * - AVG ( - - 78 ) THEN + 30 * + COUNT ( * ) WHEN + 70 * + 19 THEN NULL END WHEN - COALESCE ( - 17, 2 * - ( 5 ), - 9 + + COUNT ( * ) * - 8 ) * COUNT ( + 9 + 12 ) + - 85 THEN NULL END
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT + COUNT( DISTINCT + 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9830
SELECT + COUNT ( DISTINCT + 59 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + ( + + 73 )
----
73

query I rowsort
SELECT - 44 + - 41 col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT - COUNT( ALL + - 21 ) * - + NULLIF ( - + CAST( + + 3 AS SIGNED ), - - CASE 67 WHEN - 94 / COUNT( * ) THEN NULL ELSE 70 * - - 57 * + 21 END / + + 49 * + ( 3 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9833
SELECT - COUNT ( ALL + - 21 ) * - + NULLIF ( - + CAST ( + + 3 AS INTEGER ), - - CASE 67 WHEN - 94 / COUNT ( * ) THEN NULL ELSE 70 * - - 57 * + 21 END / + + 49 * + ( 3 ) ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL - 12 * + 88 * - COUNT( * ) * - 72 + - 64 + 16 + + 67
----
-76013

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - 12 * + 88 * - COUNT ( * ) * - 72 + - 64 + 16 + + 67
----
-76013

query II rowsort
SELECT 2 AS col0, 8
----
2
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL 19 * - 4 + + - ( - + CAST( - + 0 AS SIGNED ) ) * - 8 + COUNT( * ) - + CAST( 43 AS SIGNED )
----
-118

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL 19 * - 4 + + - ( - + CAST ( - + 0 AS INTEGER ) ) * - 8 + COUNT ( * ) - + CAST ( 43 AS INTEGER )
----
-118

query I rowsort
SELECT ALL + 37 * 64 + + ( 55 )
----
2423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9838
SELECT ALL CAST( NULL AS DECIMAL ) * - CAST( + 15 AS SIGNED ) * 40 * + + 12 - + - 33 + - 98 / - 12 + SUM( NULLIF ( 79, - - 35 ) ) + - 54 + - 8 - + 64 / + + 22 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL CAST ( NULL AS REAL ) * - CAST ( + 15 AS INTEGER ) * 40 * + + 12 - + - 33 + - 98 / - 12 + SUM ( NULLIF ( 79, - - 35 ) ) + - 54 + - 8 - + 64 / + + 22 * + 51
----
NULL

query II rowsort
SELECT + 38, 45 AS col1
----
38
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT + + NULLIF ( + - 79, - 70 * + 35 * - 42 + COALESCE ( + 76, + 66 * + COUNT( * ) / + NULLIF ( 85, + - 43 ) + - + ( - COUNT( * ) ) * - 45 + MIN( - 23 ) / + 76, 81 + - 25 + 89 ) ) - + 43 col0
----
-122

skipif mysql # not compatible
query I rowsort label-9840
SELECT + + NULLIF ( + - 79, - 70 * + 35 * - 42 + COALESCE ( + 76, + 66 * + COUNT ( * ) / + NULLIF ( 85, + - 43 ) + - + ( - COUNT ( * ) ) * - 45 + MIN ( - 23 ) / + 76, 81 + - 25 + 89 ) ) - + 43 col0
----
-122

query I rowsort
SELECT + + 10 * - 25 * + 14
----
-3500

query I rowsort
SELECT DISTINCT 27 * 88
----
2376

query I rowsort
SELECT ALL - 47 - + 18 AS col1
----
-65

query I rowsort
SELECT + - 41 * + 75 * + + 19 * + 22 AS col2
----
-1285350

query I rowsort
SELECT + + 66 + + 81 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + COUNT( * ) * - - 58 + - - 78 * + 72 + + + 25 col2
----
5699

skipif mysql # not compatible
query I rowsort label-9846
SELECT + COUNT ( * ) * - - 58 + - - 78 * + 72 + + + 25 col2
----
5699

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL COUNT( * ) * - ( + 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL COUNT ( * ) * - ( + 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT COUNT( * ) * + 74
----
74

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT COUNT ( * ) * + 74
----
74

query I rowsort
SELECT + 58 + 71 * - - 53 + + + 30 AS col0
----
3851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT + 35 + - COUNT( * ) DIV + 18 + - - 10
----
45

skipif mysql # not compatible
query I rowsort label-9850
SELECT + 35 + - COUNT ( * ) / + 18 + - - 10
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT ALL 6 DIV + + ( + 55 ) + + 57
----
57

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 6 / + + ( + 55 ) + + 57
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-9852
SELECT ALL + 6, + 53 DIV ( + 47 ) + - 83 AS col1
----
6
-82

skipif mysql # not compatible
query II rowsort label-9852
SELECT ALL + 6, + 53 / ( + 47 ) + - 83 AS col1
----
6
-82

query I rowsort
SELECT - 24 * 92 + - + 87 col1
----
-2295

query I rowsort
SELECT ALL 10 + - 86
----
-76

query I rowsort
SELECT ALL + 28 * + ( + 32 )
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT ( COUNT( * ) ) + + + 30 * 41
----
1231

skipif mysql # not compatible
query I rowsort label-9856
SELECT ( COUNT ( * ) ) + + + 30 * 41
----
1231

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL 87 + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL 87 + - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT ALL + COUNT( * ) + 39 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL + COUNT ( * ) + 39 AS col1
----
40

query II rowsort
SELECT DISTINCT 4 * - 34 AS col2, 26 + + 72 AS col0
----
-136
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT SUM( - 2 ) * + + 18 + 91
----
55

skipif mysql # not compatible
query I rowsort label-9860
SELECT SUM ( - 2 ) * + + 18 + 91
----
55

query I rowsort
SELECT 83 - - 37 AS col1
----
120

query I rowsort
SELECT DISTINCT 80 * + 38 col0
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL 39 * 63 * 53 * - COUNT( * ) col1
----
-130221

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL 39 * 63 * 53 * - COUNT ( * ) col1
----
-130221

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ( 44 ) + - SUM( ALL 12 )
----
32

skipif mysql # not compatible
query I rowsort label-9864
SELECT ( 44 ) + - SUM ( ALL 12 )
----
32

query I rowsort
SELECT DISTINCT - COALESCE ( 64, - + 23 - 1 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9866
SELECT DISTINCT 26 * 98 DIV 28
----
91

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT 26 * 98 / 28
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL - ( + MAX( - 59 ) )
----
59

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - ( + MAX ( - 59 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - SUM( DISTINCT 38 ) + - 88 col1
----
-126

skipif mysql # not compatible
query I rowsort label-9868
SELECT - SUM ( DISTINCT 38 ) + - 88 col1
----
-126

query I rowsort
SELECT ALL - - ( + + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT COUNT( * ) + + COALESCE ( - - CASE + + 99 WHEN - - 4 + - 90 * - ( 74 ) + 19 THEN NULL ELSE + 96 END, 9 )
----
97

skipif mysql # not compatible
query I rowsort label-9870
SELECT COUNT ( * ) + + COALESCE ( - - CASE + + 99 WHEN - - 4 + - 90 * - ( 74 ) + 19 THEN NULL ELSE + 96 END, 9 )
----
97

query I rowsort
SELECT ALL - 11 - + - 96 * - 13 AS col2
----
-1259

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT + COUNT( * ) * 49 + 99 + - 65 * + 89 * ( + COUNT( * ) ) * 70 + COUNT( * ) AS col1
----
-404801

skipif mysql # not compatible
query I rowsort label-9872
SELECT + COUNT ( * ) * 49 + 99 + - 65 * + 89 * ( + COUNT ( * ) ) * 70 + COUNT ( * ) AS col1
----
-404801

query I rowsort
SELECT + 19 * - COALESCE ( - 12, 48 ) AS col1
----
228

query I rowsort
SELECT ALL + + 75 * 39 + + + 30 AS col2
----
2955

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL SUM( DISTINCT - + ( 56 ) ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL SUM ( DISTINCT - + ( 56 ) ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT + 33 + 55 + - SUM( DISTINCT - 93 ) * - + 82
----
-7538

skipif mysql # not compatible
query I rowsort label-9876
SELECT + 33 + 55 + - SUM ( DISTINCT - 93 ) * - + 82
----
-7538

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT - COUNT( * ) * + COUNT( ALL - 66 ) + 0 AS col2, + 23
----
-1
23

skipif mysql # not compatible
query II rowsort label-9877
SELECT - COUNT ( * ) * + COUNT ( ALL - 66 ) + 0 AS col2, + 23
----
-1
23

query I rowsort
SELECT ALL + - 0 * - 68 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT - CAST( + 2 AS SIGNED ) * ( 50 ) * - 78 + 33 + - + MIN( DISTINCT + 65 ) + - 39 * + ( + 9 ) - + - 90 * - 67 * - 19 * + 74 + - 86 - + 92 * - 86 - + - 85 AS col2
----
8493508

skipif mysql # not compatible
query I rowsort label-9879
SELECT - CAST ( + 2 AS INTEGER ) * ( 50 ) * - 78 + 33 + - + MIN ( DISTINCT + 65 ) + - 39 * + ( + 9 ) - + - 90 * - 67 * - 19 * + 74 + - 86 - + 92 * - 86 - + - 85 AS col2
----
8493508

query I rowsort
SELECT ALL + 65 * - + 38 AS col0
----
-2470

query II rowsort
SELECT ALL + 48 AS col2, + 72 + + 59 AS col1
----
48
131

query I rowsort
SELECT 12 + + + 73 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT DISTINCT + 93 DIV + + 43
----
2

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT + 93 / + + 43
----
2

query II rowsort
SELECT DISTINCT 73 AS col1, - 73
----
73
-73

query II rowsort
SELECT 16 - - 52 + + 63 * + + 63 + - 43 AS col1, - ( - 17 ) AS col0
----
3994
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL + CASE - 63 WHEN - ( + NULLIF ( + - 54, 82 ) ) * - 35 / - 90 THEN + 19 WHEN + 35 * - + NULLIF ( - ( + + 84 ), - - 35 ) * - - 73 THEN + + 97 END / - 12 * + SUM( + 48 ) + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + CASE - 63 WHEN - ( + NULLIF ( + - 54, 82 ) ) * - 35 / - 90 THEN + 19 WHEN + 35 * - + NULLIF ( - ( + + 84 ), - - 35 ) * - - 73 THEN + + 97 END / - 12 * + SUM ( + 48 ) + 32 AS col0
----
NULL

query I rowsort
SELECT 26 - + 16 AS col2
----
10

query I rowsort
SELECT 32 * 48
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT MIN( + 74 ) + - - 84 + + + 34 * + 2 AS col2
----
226

skipif mysql # not compatible
query I rowsort label-9889
SELECT MIN ( + 74 ) + - - 84 + + + 34 * + 2 AS col2
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL 47 + CASE - COUNT( * ) WHEN + 74 THEN COALESCE ( + + 3, + 71 * - + 70 + - - 79 * 98 + + 43 ) - + - COUNT( - 93 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL 47 + CASE - COUNT ( * ) WHEN + 74 THEN COALESCE ( + + 3, + 71 * - + 70 + - - 79 * 98 + + 43 ) - + - COUNT ( - 93 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT 64 * + + COUNT( - 28 )
----
64

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT 64 * + + COUNT ( - 28 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT + ( COUNT( * ) ) + - + 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT + ( COUNT ( * ) ) + - + 38 AS col0
----
-37

query I rowsort
SELECT ALL 99 + ( - ( + + 0 ) ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT COUNT( * ) * - 51 col0
----
-51

skipif mysql # not compatible
query I rowsort label-9894
SELECT COUNT ( * ) * - 51 col0
----
-51

query II rowsort
SELECT DISTINCT 98 + 48 AS col1, - NULLIF ( 19, - 77 ) + - + 13
----
146
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL 57 + 9 + + 63 + - - COUNT( * ) - - COUNT( * ) * - 65
----
65

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL 57 + 9 + + 63 + - - COUNT ( * ) - - COUNT ( * ) * - 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL COUNT( * ) - - 9 + + MIN( + 69 )
----
79

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL COUNT ( * ) - - 9 + + MIN ( + 69 )
----
79

query I rowsort
SELECT - 58 * ( + + 33 ) * 23 * + 44 AS col2
----
-1936968

query I rowsort
SELECT ALL - - 41 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9900
SELECT DISTINCT + 99 * CAST( NULL AS SIGNED ), + 41 * + MIN( DISTINCT 2 ) AS col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-9900
SELECT DISTINCT + 99 * CAST ( NULL AS INTEGER ), + 41 * + MIN ( DISTINCT 2 ) AS col2
----
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + + 39 - + MIN( DISTINCT 40 ) + + COUNT( * ) + 27 * - - 29 AS col0
----
783

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + + 39 - + MIN ( DISTINCT 40 ) + + COUNT ( * ) + 27 * - - 29 AS col0
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + 25 * + MIN( - 75 )
----
-1875

skipif mysql # not compatible
query I rowsort label-9902
SELECT + 25 * + MIN ( - 75 )
----
-1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT ( + CAST( NULL AS SIGNED ) ) * - MIN( - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT ( + CAST ( NULL AS INTEGER ) ) * - MIN ( - 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL - ( 34 ) * 83 * + COUNT( * ) AS col2
----
-2822

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - ( 34 ) * 83 * + COUNT ( * ) AS col2
----
-2822

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT 79 DIV 51 * + 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9905
SELECT 79 / 51 * + 49 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL + SUM( ALL + - 36 ) * 23 AS col2
----
-828

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + SUM ( ALL + - 36 ) * 23 AS col2
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL ( - - MAX( DISTINCT 79 ) ) * + 62 * - - 84 + 43 col1
----
411475

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL ( - - MAX ( DISTINCT 79 ) ) * + 62 * - - 84 + 43 col1
----
411475

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT - 56 * - - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9908
SELECT - 56 * - - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT 16 * + COUNT( * ) + 16
----
32

skipif mysql # not compatible
query I rowsort label-9909
SELECT 16 * + COUNT ( * ) + 16
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL 44 * COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 44 * COUNT ( * ) AS col1
----
44

query I rowsort
SELECT ALL ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT + 97 + + + 65 * MIN( + 17 ) - + 4
----
1198

skipif mysql # not compatible
query I rowsort label-9912
SELECT + 97 + + + 65 * MIN ( + 17 ) - + 4
----
1198

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL + SUM( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + SUM ( 57 )
----
57

query I rowsort
SELECT 96 + + 63 + + 8
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT 26 + - 90 + 41 + 71 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT 26 + - 90 + 41 + 71 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT MAX( ALL + 56 ) - - MIN( DISTINCT - 60 ) AS col2, + COUNT( * ) * - 61 AS col1
----
-4
-61

skipif mysql # not compatible
query II rowsort label-9916
SELECT MAX ( ALL + 56 ) - - MIN ( DISTINCT - 60 ) AS col2, + COUNT ( * ) * - 61 AS col1
----
-4
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9917
SELECT ALL + MAX( 41 ) * - MIN( ALL + 1 ) AS col1, COUNT( * ) * - ( + - 79 ) + 71 AS col0
----
-41
150

skipif mysql # not compatible
query II rowsort label-9917
SELECT ALL + MAX ( 41 ) * - MIN ( ALL + 1 ) AS col1, COUNT ( * ) * - ( + - 79 ) + 71 AS col0
----
-41
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - ( + SUM( ALL 8 ) ) * - 36 AS col2
----
288

skipif mysql # not compatible
query I rowsort label-9918
SELECT - ( + SUM ( ALL 8 ) ) * - 36 AS col2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - COUNT( * ) + + 36
----
35

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COUNT ( * ) + + 36
----
35

query I rowsort
SELECT ALL - 0 + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT + 45 * - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + 45 * - COUNT ( * ) AS col1
----
-45

query I rowsort
SELECT ALL + 91 + 38 AS col2
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT - 5 DIV + - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9923
SELECT - 5 / + - 58 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9924
SELECT DISTINCT - 55 + + + ( CAST( NULL AS SIGNED ) ) AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9924
SELECT DISTINCT - 55 + + + ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT DISTINCT - 18 + + 27 AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9926
SELECT 35 col0, CAST( - 44 AS SIGNED ) + 55 * - 83 + 58 * - 3
----
35
-4783

skipif mysql # not compatible
query II rowsort label-9926
SELECT 35 col0, CAST ( - 44 AS INTEGER ) + 55 * - 83 + 58 * - 3
----
35
-4783

query I rowsort
SELECT DISTINCT 93 + + 38 + + 63
----
194

query I rowsort
SELECT ALL NULLIF ( + 73, - - 63 - + 38 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - COUNT( 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-9929
SELECT - COUNT ( 9 )
----
-1

query I rowsort
SELECT + ( + 82 ) * - - 10 AS col2
----
820

query I rowsort
SELECT DISTINCT + 55 - + + 42 * - 0 AS col2
----
55

query I rowsort
SELECT DISTINCT 51 * + 5 * - 12
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL COUNT( * ) * 55
----
55

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL COUNT ( * ) * 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT DISTINCT 90 * 64 - + 49 + + COUNT( * ) AS col2
----
5712

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT 90 * 64 - + 49 + + COUNT ( * ) AS col2
----
5712

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9935
SELECT ALL + 57 AS col1, CAST( NULL AS DECIMAL )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-9935
SELECT ALL + 57 AS col1, CAST ( NULL AS REAL )
----
57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT CAST( NULL AS SIGNED ) / 9 + - 98 + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT CAST ( NULL AS INTEGER ) / 9 + - 98 + + 80
----
NULL

query I rowsort
SELECT ALL + 38 * + + 61
----
2318

query I rowsort
SELECT DISTINCT + 58 * - + 90
----
-5220

query II rowsort
SELECT DISTINCT + 22 AS col1, 32 * + 36 AS col1
----
22
1152

query II rowsort
SELECT DISTINCT + - 89 AS col1, - ( + 63 ) AS col0
----
-89
-63

query I rowsort
SELECT + 59 * - + 73 AS col1
----
-4307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9942
SELECT ALL - MAX( 9 ) / + - CAST( NULL AS SIGNED ) + 19, + ( + 48 ) col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9942
SELECT ALL - MAX ( 9 ) / + - CAST ( NULL AS INTEGER ) + 19, + ( + 48 ) col0
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT + COUNT( * ) * + COUNT( * ) + - - 93 * COUNT( DISTINCT - - 79 )
----
94

skipif mysql # not compatible
query I rowsort label-9943
SELECT + COUNT ( * ) * + COUNT ( * ) + - - 93 * COUNT ( DISTINCT - - 79 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL + COUNT( * ) * 33 + - 31 + - 56 * - 54 AS col0
----
3026

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + COUNT ( * ) * 33 + - 31 + - 56 * - 54 AS col0
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - ( + 87 ) * - - MAX( ALL - ( - + 94 ) ) + + COUNT( * ) + - + 9 + + 95 + + 63 AS col2
----
-8028

skipif mysql # not compatible
query I rowsort label-9945
SELECT - ( + 87 ) * - - MAX ( ALL - ( - + 94 ) ) + + COUNT ( * ) + - + 9 + + 95 + + 63 AS col2
----
-8028

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9946
SELECT DISTINCT - COALESCE ( - 77, + 31 + - 24 + + + CAST( - - 42 AS SIGNED ) * ( + 70 ), - + 41, + 23 + ( + 55 ) + + + 29 ) DIV + - 63
----
-1

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - COALESCE ( - 77, + 31 + - 24 + + + CAST ( - - 42 AS INTEGER ) * ( + 70 ), - + 41, + 23 + ( + 55 ) + + + 29 ) / + - 63
----
-1

query I rowsort
SELECT DISTINCT - + 54 * 69 * 20 * + 98 + + 62 - 47 AS col0
----
-7302945

query I rowsort
SELECT ( + 9 )
----
9

query I rowsort
SELECT ALL 73 * - - 38
----
2774

query I rowsort
SELECT + + 2 * 5
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT - CAST( NULL AS SIGNED ) + - - ( + 95 ) * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT - CAST ( NULL AS INTEGER ) + - - ( + 95 ) * + 31
----
NULL

query II rowsort
SELECT DISTINCT + 47, + 73 AS col1
----
47
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT - ( - COUNT( * ) ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-9953
SELECT - ( - COUNT ( * ) ) + + 76
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT COUNT( + - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-9954
SELECT COUNT ( + - 70 )
----
1

query I rowsort
SELECT ALL - 4 + - 25 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + 88 * + CASE - COALESCE ( + + 86, 88 ) WHEN - 50 THEN - - 15 END / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT + 88 * + CASE - COALESCE ( + + 86, 88 ) WHEN - 50 THEN - - 15 END / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT + COUNT( * ) + - CASE WHEN + 24 IS NOT NULL THEN NULL ELSE - + MAX( ALL + - NULLIF ( + 90, + + CASE WHEN NOT 69 NOT IN ( - 24 + - ( - - 58 ) ) THEN ( + 71 ) + + - 73 ELSE NULL END ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT + COUNT ( * ) + - CASE WHEN + 24 IS NOT NULL THEN NULL ELSE - + MAX ( ALL + - NULLIF ( + 90, + + CASE WHEN NOT 69 NOT IN ( - 24 + - ( - - 58 ) ) THEN ( + 71 ) + + - 73 ELSE NULL END ) ) END AS col2
----
NULL

query I rowsort
SELECT + 64 * 50 AS col1
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL NULLIF ( + COUNT( * ), - ( - AVG ( ALL - + 36 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL NULLIF ( + COUNT ( * ), - ( - AVG ( ALL - + 36 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL - 41 + SUM( - 83 ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - 41 + SUM ( - 83 ) AS col2
----
-124

query I rowsort
SELECT - 34 * - - 4 col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT DISTINCT - 24 - 64 * ( ( - COUNT( * ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT - 24 - 64 * ( ( - COUNT ( * ) ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT - 28 + - - 92 DIV + + 28
----
-25

skipif mysql # not compatible
query I rowsort label-9963
SELECT - 28 + - - 92 / + + 28
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT ALL 86 DIV + 14 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL 86 / + 14 AS col2
----
6

query I rowsort
SELECT - 98 * + - 34 AS col1
----
3332

query I rowsort
SELECT - 68 * 69 col2
----
-4692

query I rowsort
SELECT + COALESCE ( - 95, - ( - + 23 ) )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT DISTINCT + MIN( 91 ), ( - 21 ) col1
----
91
-21

skipif mysql # not compatible
query II rowsort label-9968
SELECT DISTINCT + MIN ( 91 ), ( - 21 ) col1
----
91
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT - + 49 * + + 21, COUNT( * ) * 70 AS col0
----
-1029
70

skipif mysql # not compatible
query II rowsort label-9969
SELECT - + 49 * + + 21, COUNT ( * ) * 70 AS col0
----
-1029
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT COUNT( DISTINCT + CAST( - - 23 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9970
SELECT COUNT ( DISTINCT + CAST ( - - 23 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT + COALESCE ( + 69, + - NULLIF ( - ( ( - MIN( - 4 ) ) ), - - 31 - - 39 ) ) AS col2, + 42 AS col1
----
69
42

skipif mysql # not compatible
query II rowsort label-9971
SELECT + COALESCE ( + 69, + - NULLIF ( - ( ( - MIN ( - 4 ) ) ), - - 31 - - 39 ) ) AS col2, + 42 AS col1
----
69
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT - + 99 DIV 86 + + + 9
----
8

skipif mysql # not compatible
query I rowsort label-9972
SELECT - + 99 / 86 + + + 9
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL + + NULLIF ( 78, 35 * 8 ) DIV + 27 + - ( - 39 )
----
41

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + + NULLIF ( 78, 35 * 8 ) / + 27 + - ( - 39 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT DISTINCT - 15 DIV - + 21 + 32
----
32

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT - 15 / - + 21 + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL ( - + COUNT( * ) ) * - + CASE + 63 WHEN 49 * 40 THEN NULL ELSE + 17 + - COALESCE ( - ( + COALESCE ( - 79, - + ( - 73 ) ) ), + 69 + 27 ) END * - + ( + 93 )
----
5766

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL ( - + COUNT ( * ) ) * - + CASE + 63 WHEN 49 * 40 THEN NULL ELSE + 17 + - COALESCE ( - ( + COALESCE ( - 79, - + ( - 73 ) ) ), + 69 + 27 ) END * - + ( + 93 )
----
5766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT ALL + 29 * CAST( - ( - 96 ) AS SIGNED ) - 23 + - - 19 * + COUNT( * ) + - - 56 AS col2
----
2836

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + 29 * CAST ( - ( - 96 ) AS INTEGER ) - 23 + - - 19 * + COUNT ( * ) + - - 56 AS col2
----
2836

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + ( CASE 40 WHEN - 26 THEN + COUNT( * ) WHEN + COALESCE ( - ( - MAX( DISTINCT - + 8 ) ), 65 * 44 + - 82 * + 82 + + 18 * SUM( 32 ) * + 1 + - 8 ) * + + 43 THEN + 15 WHEN 30 THEN NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT + ( CASE 40 WHEN - 26 THEN + COUNT ( * ) WHEN + COALESCE ( - ( - MAX ( DISTINCT - + 8 ) ), 65 * 44 + - 82 * + 82 + + 18 * SUM ( 32 ) * + 1 + - 8 ) * + + 43 THEN + 15 WHEN 30 THEN NULL END ) col1
----
NULL

query I rowsort
SELECT + 29 * - + 21 - 37
----
-646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9979
SELECT DISTINCT + 34 + + 56 * - COUNT( * ) DIV + 83 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT + 34 + + 56 * - COUNT ( * ) / + 83 AS col0
----
34

query I rowsort
SELECT ALL + 12 + - + ( - 42 )
----
54

query II rowsort
SELECT ALL 91 AS col0, + 1
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9982
SELECT DISTINCT 42 AS col2, 34 * MIN( DISTINCT 97 ) + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-9982
SELECT DISTINCT 42 AS col2, 34 * MIN ( DISTINCT 97 ) + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
42
NULL

query I rowsort
SELECT ALL 76 * 51
----
3876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9984
SELECT 73, MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9984
SELECT 73, MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
73
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT DISTINCT 88 DIV 54 * + 83 * - + 29
----
-2407

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT 88 / 54 * + 83 * - + 29
----
-2407

query I rowsort
SELECT ALL 46 - + 16 + 29 * 54 AS col1
----
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9987
SELECT ALL 23 * - ( - SUM( + - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 23 * - ( - SUM ( + - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) ) )
----
NULL

query I rowsort
SELECT ALL 40 * - 53
----
-2120

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT 60 AS col1, SUM( - + 61 ) AS col0
----
60
-61

skipif mysql # not compatible
query II rowsort label-9989
SELECT 60 AS col1, SUM ( - + 61 ) AS col0
----
60
-61

query I rowsort
SELECT 60 + + 49
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT 96 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT 96 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 16 * - 57
----
-912

query II rowsort
SELECT DISTINCT 63, + 59 AS col0
----
63
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT DISTINCT 45 * - + 97 * - 15 * + 77 / - CASE + COALESCE ( + COUNT( * ), + + ( 42 ) + - ( + - 47 ) ) WHEN - - 25 THEN - 77 WHEN - CAST( NULL AS SIGNED ) + + 85 + + - 46 THEN + 80 + + - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT 45 * - + 97 * - 15 * + 77 / - CASE + COALESCE ( + COUNT ( * ), + + ( 42 ) + - ( + - 47 ) ) WHEN - - 25 THEN - 77 WHEN - CAST ( NULL AS INTEGER ) + + 85 + + - 46 THEN + 80 + + - 9 END
----
NULL

query I rowsort
SELECT 86 + 13 * - 59 + - COALESCE ( 7, 6 * 36, 90 * + 14 * 96 * + 47 )
----
-688

onlyif mysql # aggregate syntax: 
query II rowsort label-9996
SELECT ALL 80 * - COUNT( * ) * + 11 AS col0, - 57
----
-880
-57

skipif mysql # not compatible
query II rowsort label-9996
SELECT ALL 80 * - COUNT ( * ) * + 11 AS col0, - 57
----
-880
-57

query I rowsort
SELECT 76 * + 4 AS col2
----
304

query I rowsort
SELECT 11 * COALESCE ( 29, 33, + + 9 ) * 93 AS col2
----
29667

query I rowsort
SELECT 82 + 95 + + 68 * - 19 * + 34 + 53 AS col0
----
-43698

