sqllogictest
Artifact Content
Not logged in

Artifact c2cf903d9c21741e68ed21144c00927a40124596:


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 WHE