sqllogictest
Artifact Content
Not logged in

Artifact 1a04318b6077859ad1674858878bd315e5f85aaa:


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 ALL ( + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL + + 76 + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL + + 76 + + COUNT ( * )
----
77

query I rowsort
SELECT 94 * - 16 AS col2
----
-1504

query I rowsort
SELECT DISTINCT 68 AS col1
----
68

query I rowsort
SELECT - 69 AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT NULLIF ( CAST( - CAST( + 3 AS SIGNED ) AS SIGNED ), + + AVG ( + 87 ) ) * - + ( + 15 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5
SELECT NULLIF ( CAST ( - CAST ( + 3 AS INTEGER ) AS INTEGER ), + + AVG ( + 87 ) ) * - + ( + 15 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT ALL 14 - + 61 * + + 94 + 93 + 87 DIV - 26
----
-5630

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL 14 - + 61 * + + 94 + 93 + 87 / - 26
----
-5630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7
SELECT 11 - - 94 + 74 - - - 24 - + + 52 * COALESCE ( - + 30, - 96 ) + 32 + 31 + + 45 - + COUNT( * ) * - 34 DIV COUNT( * ) * + - 77 * - COUNT( * ) AS col2
----
4441

skipif mysql # not compatible
query I rowsort label-7
SELECT 11 - - 94 + 74 - - - 24 - + + 52 * COALESCE ( - + 30, - 96 ) + 32 + 31 + + 45 - + COUNT ( * ) * - 34 / COUNT ( * ) * + - 77 * - COUNT ( * ) AS col2
----
4441

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT 17 + 39 * + COUNT( 90 )
----
56

skipif mysql # not compatible
query I rowsort label-8
SELECT 17 + 39 * + COUNT ( 90 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL + 2 * - ( + + 92 ) * + NULLIF ( + 60, - 67 ) + + - 64 + - COUNT( * )
----
-11105

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL + 2 * - ( + + 92 ) * + NULLIF ( + 60, - 67 ) + + - 64 + - COUNT ( * )
----
-11105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL COALESCE ( - 76, COUNT( * ), + + CAST( + + ( 56 ) AS SIGNED ) ) * + 12 AS col0
----
-912

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL COALESCE ( - 76, COUNT ( * ), + + CAST ( + + ( 56 ) AS INTEGER ) ) * + 12 AS col0
----
-912

query I rowsort
SELECT ALL 40 AS col2
----
40

query I rowsort
SELECT ALL 91 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-13
SELECT CAST( NULL AS SIGNED ) * - - 97, - 28 - + - 62 + + COUNT( * ) AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-13
SELECT CAST ( NULL AS INTEGER ) * - - 97, - 28 - + - 62 + + COUNT ( * ) AS col0
----
NULL
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT CASE CAST( + SUM( - 28 ) AS SIGNED ) WHEN - 14 THEN - - 64 ELSE - 4 END - - COUNT( * ) + - NULLIF ( + ( + 34 ), + COUNT( * ) + - + 32 / - COALESCE ( 92, 80 ) + - 82 * + 55 ) * + 3 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-15
SELECT CASE CAST ( + SUM ( - 28 ) AS INTEGER ) WHEN - 14 THEN - - 64 ELSE - 4 END - - COUNT ( * ) + - NULLIF ( + ( + 34 ), + COUNT ( * ) + - + 32 / - COALESCE ( 92, 80 ) + - 82 * + 55 ) * + 3 AS col0
----
-105

query I rowsort
SELECT + 7 / - CASE - + 72 WHEN + - 67 THEN 68 + - + 73 / - + 96 + 94 ELSE NULL END + + 71
----
NULL

query I rowsort
SELECT 36 * + 18 AS col2
----
648

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

query I rowsort
SELECT 55 + 8 * + 60 * - 0 AS col0
----
55

query I rowsort
SELECT 61 * 63 AS col0
----
3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT + 52 - - 88 * - - 89 * COUNT( * ) + CASE + 28 WHEN - 78 - + 60 * 6 THEN NULL WHEN + 98 * 46 THEN 12 - - 36 WHEN + - ( 1 ) THEN - 91 + - 12 * + CASE - - 1 WHEN - - 74 + 84 * COALESCE ( 58, - - 22 ) DIV - 31 + 6 THEN NULL WHEN + 52 * 58 + 84 DIV COUNT( * ) THEN CASE COUNT( ALL 41 ) WHEN - 2 * COALESCE ( + ( + AVG ( DISTINCT 0 ) ), 87 ) THEN + 61 WHEN + 43 THEN NULL ELSE NULL END WHEN 54 * ( 77 ) + 70 THEN NULL ELSE NULL END ELSE ( 58 ) * 86 END DIV - 59
----
7800

skipif mysql # not compatible
query I rowsort label-21
SELECT + 52 - - 88 * - - 89 * COUNT ( * ) + CASE + 28 WHEN - 78 - + 60 * 6 THEN NULL WHEN + 98 * 46 THEN 12 - - 36 WHEN + - ( 1 ) THEN - 91 + - 12 * + CASE - - 1 WHEN - - 74 + 84 * COALESCE ( 58, - - 22 ) / - 31 + 6 THEN NULL WHEN + 52 * 58 + 84 / COUNT ( * ) THEN CASE COUNT ( ALL 41 ) WHEN - 2 * COALESCE ( + ( + AVG ( DISTINCT 0 ) ), 87 ) THEN + 61 WHEN + 43 THEN NULL ELSE NULL END WHEN 54 * ( 77 ) + 70 THEN NULL ELSE NULL END ELSE ( 58 ) * 86 END / - 59
----
7800

query I rowsort
SELECT 47 * - + 81
----
-3807

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT - + 41 * - 22 - - 74 - 99 AS col0, - MAX( - COALESCE ( 73, 13 ) )
----
877
73

skipif mysql # not compatible
query II rowsort label-25
SELECT - + 41 * - 22 - - 74 - 99 AS col0, - MAX ( - COALESCE ( 73, 13 ) )
----
877
73

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

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

query I rowsort
SELECT + 79 * + 59 * 91 AS col2
----
424151

query I rowsort
SELECT ALL - - 18
----
18

query I rowsort
SELECT ALL - NULLIF ( + + 2, 86 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT - 89 + - NULLIF ( 55, + 48 + + MAX( DISTINCT - 22 ) )
----
-144

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - 89 + - NULLIF ( 55, + 48 + + MAX ( DISTINCT - 22 ) )
----
-144

query I rowsort
SELECT 47 - 38
----
9

query I rowsort
SELECT ALL - 6 AS col1
----
-6

query I rowsort
SELECT ALL - 96 AS col2
----
-96

query I rowsort
SELECT ALL + 7 + 30 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-35
SELECT ( 15 ) + - + 46 + + ( + CAST( - 67 AS SIGNED ) ) DIV + 42
----
-32

skipif mysql # not compatible
query I rowsort label-35
SELECT ( 15 ) + - + 46 + + ( + CAST ( - 67 AS INTEGER ) ) / + 42
----
-32

query I rowsort
SELECT + 95 + + 97
----
192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - + NULLIF ( + 1, + - COUNT( * ) + - + 36 ) - 58
----
-59

skipif mysql # not compatible
query I rowsort label-38
SELECT - + NULLIF ( + 1, + - COUNT ( * ) + - + 36 ) - 58
----
-59

query I rowsort
SELECT ALL - 6
----
-6

query I rowsort
SELECT - + 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT - 92 DIV - + 32
----
2

skipif mysql # not compatible
query I rowsort label-41
SELECT - 92 / - + 32
----
2

query I rowsort
SELECT DISTINCT + 13 + 75 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-43
SELECT ALL + 6 - + 6 + - ( - - 20 ) + - CASE ( 94 ) WHEN - COUNT( * ) / - - 99 + - - COUNT( * ) + - - SUM( 68 ) THEN + 24 * - ( + - 42 ) ELSE NULL END - - COALESCE ( + 3, - CAST( 93 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + 6 - + 6 + - ( - - 20 ) + - CASE ( 94 ) WHEN - COUNT ( * ) / - - 99 + - - COUNT ( * ) + - - SUM ( 68 ) THEN + 24 * - ( + - 42 ) ELSE NULL END - - COALESCE ( + 3, - CAST ( 93 AS INTEGER ) ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL MIN( - 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL MIN ( - 43 ) col0
----
-43

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

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

query I rowsort
SELECT - 14 * + - 15 * + - 69
----
-14490

query I rowsort
SELECT - 72 + 21
----
-51

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

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - ( 20 ) / - COUNT ( * ) AS col2
----
20

query I rowsort
SELECT - 78 * - 70 AS col1
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + NULLIF ( - 80, COALESCE ( COUNT( 42 ), - 53 * - 34 ) * 75 ) + - + CASE + 44 WHEN 16 THEN + + ( + + MAX( ALL + + 59 ) ) * + 97 * - + 92 + 52 + - 15 * 76 WHEN - + 77 THEN NULL ELSE NULL END / - - COUNT( * ) + + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT + NULLIF ( - 80, COALESCE ( COUNT ( 42 ), - 53 * - 34 ) * 75 ) + - + CASE + 44 WHEN 16 THEN + + ( + + MAX ( ALL + + 59 ) ) * + 97 * - + 92 + 52 + - 15 * 76 WHEN - + 77 THEN NULL ELSE NULL END / - - COUNT ( * ) + + - 42
----
NULL

query I rowsort
SELECT ALL CASE + + 9 WHEN - 21 + 78 THEN + 34 / 25 + + 58 END
----
NULL

query I rowsort
SELECT DISTINCT - 16 * + 6
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL - 44 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - 44 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT SUM( DISTINCT - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT SUM ( DISTINCT - 54 ) AS col0
----
-54

query I rowsort
SELECT - 47 + + 38 * - + 87 col0
----
-3353

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-59
SELECT - 2 DIV - 6 * - 42 + - - 86 - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-59
SELECT - 2 / - 6 * - 42 + - - 86 - COUNT ( * )
----
85

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

query I rowsort
SELECT + 76 * + - 73 AS col0
----
-5548

query I rowsort
SELECT - 50 + + + 56
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL + - SUM( ALL - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + - SUM ( ALL - 35 ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-64
SELECT + COUNT( * ) - - 96 - 92 - + CAST( + NULLIF ( CASE + ( - MIN( ALL - 13 ) ) WHEN + 70 THEN NULL WHEN - SUM( - 62 ) THEN + - 85 ELSE 65 * - 11 * - 79 + - + 1 + 21 END, - COUNT( 49 ) * - CAST( - MIN( + - 7 ) AS SIGNED ) * - 49 * - 83 ) AS SIGNED ) AS col0
----
-56500

skipif mysql # not compatible
query I rowsort label-64
SELECT + COUNT ( * ) - - 96 - 92 - + CAST ( + NULLIF ( CASE + ( - MIN ( ALL - 13 ) ) WHEN + 70 THEN NULL WHEN - SUM ( - 62 ) THEN + - 85 ELSE 65 * - 11 * - 79 + - + 1 + 21 END, - COUNT ( 49 ) * - CAST ( - MIN ( + - 7 ) AS INTEGER ) * - 49 * - 83 ) AS INTEGER ) AS col0
----
-56500

query I rowsort
SELECT + COALESCE ( - 59, - 12, + 74 )
----
-59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-67
SELECT ALL 64 * + SUM( + 69 ) + - 43 + + - COUNT( * ), - 58 AS col0
----
4372
-58

skipif mysql # not compatible
query II rowsort label-67
SELECT ALL 64 * + SUM ( + 69 ) + - 43 + + - COUNT ( * ), - 58 AS col0
----
4372
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT + ( + 38 ) * + + 63 + + COUNT( * ) * 15 AS col2, 36 * - 89 + 3
----
2409
-3201

skipif mysql # not compatible
query II rowsort label-68
SELECT + ( + 38 ) * + + 63 + + COUNT ( * ) * 15 AS col2, 36 * - 89 + 3
----
2409
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT + COALESCE ( - 51, - COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + COALESCE ( - 51, - COUNT ( * ) )
----
-51

query I rowsort
SELECT ALL + 75 AS col0
----
75

query II rowsort
SELECT DISTINCT + 65 * 55 + - 61 AS col0, 43 col2
----
3514
43

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + 93 * + MIN( DISTINCT - 34 ) + - 35
----
-3197

skipif mysql # not compatible
query I rowsort label-72
SELECT + 93 * + MIN ( DISTINCT - 34 ) + - 35
----
-3197

onlyif mysql # aggregate syntax: 
query II rowsort label-73
SELECT ALL + COUNT( * ) * - - COUNT( * ) * + + ( 84 ) + COUNT( * ), 99 * + ( + 76 ) AS col2
----
85
7524

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) * + + ( 84 ) + COUNT ( * ), 99 * + ( + 76 ) AS col2
----
85
7524

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

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

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

query I rowsort
SELECT ALL 23 * - 17 AS col1
----
-391

query I rowsort
SELECT + 36 col0
----
36

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

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

query I rowsort
SELECT + + 15 * 55 AS col1
----
825

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL CASE + 74 WHEN 69 * + 80 + + 65 THEN + AVG ( DISTINCT 19 ) WHEN 21 * - COALESCE ( CASE - 18 WHEN - ( + - 95 ) * + COUNT( * ) / - 92 - + 48 THEN + COUNT( * ) ELSE NULL END, 72 ) THEN - 83 * ( - + COALESCE ( - SUM( DISTINCT NULLIF ( 43, 14 ) ), 36 * 24 + 73 * 90 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL CASE + 74 WHEN 69 * + 80 + + 65 THEN + AVG ( DISTINCT 19 ) WHEN 21 * - COALESCE ( CASE - 18 WHEN - ( + - 95 ) * + COUNT ( * ) / - 92 - + 48 THEN + COUNT ( * ) ELSE NULL END, 72 ) THEN - 83 * ( - + COALESCE ( - SUM ( DISTINCT NULLIF ( 43, 14 ) ), 36 * 24 + 73 * 90 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 2 ) * - - 31
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT ALL COUNT( * ) col2, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL COUNT ( * ) col2, 45
----
1
45

query I rowsort
SELECT + 84 - + - ( - ( + 83 ) ) * 53 AS col1
----
-4315

query I rowsort
SELECT - 90 * 82
----
-7380

query I rowsort
SELECT + 60 - CASE 82 WHEN 75 THEN - 84 END
----
NULL

query II rowsort
SELECT 91 AS col1, 94 + + + 38
----
91
132

query I rowsort
SELECT 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT - 60 * + COALESCE ( - + COUNT( * ), - - COUNT( * ), + 35 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-90
SELECT - 60 * + COALESCE ( - + COUNT ( * ), - - COUNT ( * ), + 35 ) AS col1
----
60

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

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

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

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

query I rowsort
SELECT DISTINCT + 30 + - 17 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT DISTINCT + 85 + - + ( + ( - COUNT( * ) ) ) + 57 * 38
----
2252

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + 85 + - + ( + ( - COUNT ( * ) ) ) + 57 * 38
----
2252

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL + 13 + + 7 + 52 + + - 55 * MIN( + - 50 ) * 62 - - - 34 * - 45 * + 10 AS col0
----
185872

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 13 + + 7 + 52 + + - 55 * MIN ( + - 50 ) * 62 - - - 34 * - 45 * + 10 AS col0
----
185872

query II rowsort
SELECT - 57, 33 AS col1
----
-57
33

query I rowsort
SELECT 36 col1
----
36

query I rowsort
SELECT - 88 * - 5
----
440

query I rowsort
SELECT - 47 + - 20
----
-67

query I rowsort
SELECT - 64 * - 8
----
512

query I rowsort
SELECT ( - 99 ) * 0 + - 13
----
-13

query I rowsort
SELECT + 22 - + 42 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT DISTINCT + COALESCE ( - - 82, + 34 ) DIV 65 + + 46
----
47

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT + COALESCE ( - - 82, + 34 ) / 65 + + 46
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT ALL - 4 DIV - - 11 + + 84 * - + 3 + 20 col2
----
-232

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL - 4 / - - 11 + + 84 * - + 3 + 20 col2
----
-232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-106
SELECT ALL 62 DIV - - 53 + - MIN( + - 70 ) + - - COUNT( * ) DIV - SUM( 44 ) AS col2, + 33 AS col2
----
71
33

skipif mysql # not compatible
query II rowsort label-106
SELECT ALL 62 / - - 53 + - MIN ( + - 70 ) + - - COUNT ( * ) / - SUM ( 44 ) AS col2, + 33 AS col2
----
71
33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-108
SELECT ALL + 75 DIV + 15 - COUNT( * ) * + - 72 + - 18 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + 75 / + 15 - COUNT ( * ) * + - 72 + - 18 AS col0
----
59

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

query II rowsort
SELECT NULLIF ( - ( 31 ), + + 72 ) AS col2, - 43
----
-31
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT + NULLIF ( - 73, - 72 + + 36 / + 72 * - 41 + - - CAST( NULL AS SIGNED ) + - 16 * + + 17 ) * - + ( 27 ) + + 66 AS col0
----
2037

skipif mysql # not compatible
query I rowsort label-111
SELECT + NULLIF ( - 73, - 72 + + 36 / + 72 * - 41 + - - CAST ( NULL AS INTEGER ) + - 16 * + + 17 ) * - + ( 27 ) + + 66 AS col0
----
2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-112
SELECT COALESCE ( - COUNT( + - CAST( NULL AS SIGNED ) ), - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-112
SELECT COALESCE ( - COUNT ( + - CAST ( NULL AS INTEGER ) ), - 26 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-113
SELECT - COUNT( * ), COUNT( * ) + CAST( NULL AS SIGNED ) * + 65 * + MIN( ALL - - 84 ) * - 33 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-113
SELECT - COUNT ( * ), COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 65 * + MIN ( ALL - - 84 ) * - 33 col1
----
-1
NULL

query I rowsort
SELECT + 0 - 72 col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL - CAST( 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - CAST ( 55 AS INTEGER )
----
-55

query II rowsort
SELECT ALL - + 74 AS col1, + 34 col1
----
-74
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-117
SELECT ALL MAX( CAST( NULL AS DECIMAL ) ) * + - 29 * - COALESCE ( + - MAX( ALL 66 ), - 32 - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL MAX ( CAST ( NULL AS REAL ) ) * + - 29 * - COALESCE ( + - MAX ( ALL 66 ), - 32 - - 33 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT COALESCE ( + - COUNT( * ), 66 * + 66, - 12 * + 69 + + - ( - NULLIF ( ( 4 ), 63 + + - 95 + + 40 + - 46 * COUNT( * ) + + - ( 9 ) ) ) + COALESCE ( - COALESCE ( + 0, 24 DIV - + 14 + ( - - 53 ) + 13 ), 86 ) DIV + 57 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT COALESCE ( + - COUNT ( * ), 66 * + 66, - 12 * + 69 + + - ( - NULLIF ( ( 4 ), 63 + + - 95 + + 40 + - 46 * COUNT ( * ) + + - ( 9 ) ) ) + COALESCE ( - COALESCE ( + 0, 24 / - + 14 + ( - - 53 ) + 13 ), 86 ) / + 57 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT COUNT( * ) + + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-120
SELECT COUNT ( * ) + + 61 AS col2
----
62

query I rowsort
SELECT 46 - - 77
----
123

query I rowsort
SELECT ALL 72 * + + ( 33 ) AS col1
----
2376

query I rowsort
SELECT ALL ( - 22 ) * 65
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT NULLIF ( 47, - 51 ) + + NULLIF ( 75, 45 + + 88 + + 27 + + 13 + - + COUNT( * ) * + 97 + + 59 ) + 76 * - MIN( DISTINCT + 27 ) + + 96 AS col0
----
-1834

skipif mysql # not compatible
query I rowsort label-124
SELECT NULLIF ( 47, - 51 ) + + NULLIF ( 75, 45 + + 88 + + 27 + + 13 + - + COUNT ( * ) * + 97 + + 59 ) + 76 * - MIN ( DISTINCT + 27 ) + + 96 AS col0
----
-1834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-125
SELECT COALESCE ( NULLIF ( - ( - 87 ), - CASE 62 WHEN 79 * + COALESCE ( - 56, 77 ) + 45 + - - COUNT( * ) * - 18 * - - 91 THEN 94 ELSE NULL END ), + COUNT( DISTINCT + + 7 ), 39 * + COUNT( * ) + - 68 ) DIV 21 * - + ( COUNT( * ) ) * - 67 * + + 1 DIV - - CASE + 40 WHEN 77 * - CAST( NULL AS SIGNED ) + ( 22 ) THEN NULL ELSE - 49 * ( SUM( ALL - 27 ) DIV ( 39 DIV 22 + COUNT( * ) ) ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-125
SELECT COALESCE ( NULLIF ( - ( - 87 ), - CASE 62 WHEN 79 * + COALESCE ( - 56, 77 ) + 45 + - - COUNT ( * ) * - 18 * - - 91 THEN 94 ELSE NULL END ), + COUNT ( DISTINCT + + 7 ), 39 * + COUNT ( * ) + - 68 ) / 21 * - + ( COUNT ( * ) ) * - 67 * + + 1 / - - CASE + 40 WHEN 77 * - CAST ( NULL AS INTEGER ) + ( 22 ) THEN NULL ELSE - 49 * ( SUM ( ALL - 27 ) / ( 39 / 22 + COUNT ( * ) ) ) END AS col0
----
0

query I rowsort
SELECT 30 + 32
----
62

query I rowsort
SELECT 76
----
76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-129
SELECT CAST( NULL AS SIGNED ) + + ( - 34 ) - 46 / - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT CAST ( NULL AS INTEGER ) + + ( - 34 ) - 46 / - 20 AS col0
----
NULL

query I rowsort
SELECT ALL 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL 82 + - 58 - 66 + - 46 * - 71 * + 62 * + MAX( ALL + 29 ) AS col0
----
5872226

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL 82 + - 58 - 66 + - 46 * - 71 * + 62 * + MAX ( ALL + 29 ) AS col0
----
5872226

query I rowsort
SELECT 42 + - - 72 AS col2
----
114

query I rowsort
SELECT ALL 59 * 69 * 35 * - 84
----
-11968740

query I rowsort
SELECT 87 * - 26 AS col0
----
-2262

query I rowsort
SELECT DISTINCT + 99 + 25 AS col0
----
124

query I rowsort
SELECT - 12 AS col2
----
-12

query I rowsort
SELECT ALL + + ( 28 ) + + + 55 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-138
SELECT - MAX( DISTINCT 19 ), - COALESCE ( 60, 95 * - 39 * - CAST( - - 8 AS SIGNED ) + - 34 ) col1
----
-19
-60

skipif mysql # not compatible
query II rowsort label-138
SELECT - MAX ( DISTINCT 19 ), - COALESCE ( 60, 95 * - 39 * - CAST ( - - 8 AS INTEGER ) + - 34 ) col1
----
-19
-60

query I rowsort
SELECT ALL - 60 * + 1 * 21
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT - 2 + + MIN( DISTINCT - + 22 ) - - + NULLIF ( - COALESCE ( - - 65, - CASE - + ( COUNT( * ) ) WHEN + - 43 THEN NULL WHEN - 93 THEN + 93 ELSE NULL END * + ( 72 ), + + 77 ), + 48 + + - 82 + - COUNT( * ) ) * + 49
----
-3209

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - 2 + + MIN ( DISTINCT - + 22 ) - - + NULLIF ( - COALESCE ( - - 65, - CASE - + ( COUNT ( * ) ) WHEN + - 43 THEN NULL WHEN - 93 THEN + 93 ELSE NULL END * + ( 72 ), + + 77 ), + 48 + + - 82 + - COUNT ( * ) ) * + 49
----
-3209

query I rowsort
SELECT ALL 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL + COUNT( * ) * 80 * + 92 AS col0
----
7360

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + COUNT ( * ) * 80 * + 92 AS col0
----
7360

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

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

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

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

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

query I rowsort
SELECT - 22 * - ( + - 35 )
----
-770

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT + SUM( DISTINCT + + CAST( - 22 AS SIGNED ) )
----
-22

skipif mysql # not compatible
query I rowsort label-150
SELECT + SUM ( DISTINCT + + CAST ( - 22 AS INTEGER ) )
----
-22

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT + 89 * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT ALL + + COALESCE ( + - 65, - + COALESCE ( 20, + 26, 28, + 69 ) + + 8, + + 85 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + + COALESCE ( + - 65, - + COALESCE ( 20, + 26, 28, + 69 ) + + 8, + + 85 ) / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + MAX( ALL - 78 ) * - + 21 AS col0
----
1638

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + MAX ( ALL - 78 ) * - + 21 AS col0
----
1638

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

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

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

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

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

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

query II rowsort
SELECT 24 AS col0, 94
----
24
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-160
SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), 3 - - CAST( NULL AS SIGNED ) * 51 ) ) * 11 + + + 48 AS col2
----
-91
543

skipif mysql # not compatible
query II rowsort label-160
SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), 3 - - CAST ( NULL AS INTEGER ) * 51 ) ) * 11 + + + 48 AS col2
----
-91
543

query II rowsort
SELECT DISTINCT - 62 AS col1, 46 - 42 + - 1 AS col1
----
-62
3

query I rowsort
SELECT DISTINCT + COALESCE ( - 84, 73, ( - 23 ) + - - 22 ) + + + 10
----
-74

query I rowsort
SELECT ALL 77 + - 19
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT ALL + CAST( NULL AS SIGNED ) + 82 + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL + CAST ( NULL AS INTEGER ) + 82 + - 40
----
NULL

query I rowsort
SELECT 36 - + + 73 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-166
SELECT - COUNT( * ) col1, 90
----
-1
90

skipif mysql # not compatible
query II rowsort label-166
SELECT - COUNT ( * ) col1, 90
----
-1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT NULLIF ( + 87, - ( - 80 ) * 17 * + 93 * 43 * + MIN( 97 ) - - - 91 + + + 39 + + + 87 + - - 3 ) - + + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-167
SELECT NULLIF ( + 87, - ( - 80 ) * 17 * + 93 * 43 * + MIN ( 97 ) - - - 91 + + + 39 + + + 87 + - - 3 ) - + + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT DISTINCT 76 + + 28 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-169
SELECT 71 * - CASE - CAST( NULL AS DECIMAL ) WHEN 34 * - 64 + + 4 THEN + 86 - - COUNT( * ) ELSE NULL END * - 95 * - ( CAST( - 93 AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT 71 * - CASE - CAST ( NULL AS REAL ) WHEN 34 * - 64 + + 4 THEN + 86 - - COUNT ( * ) ELSE NULL END * - 95 * - ( CAST ( - 93 AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT ALL 29 DIV - 33 * + 28 col2
----
0

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 29 / - 33 * + 28 col2
----
0

query I rowsort
SELECT 77 + 75 AS col2
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-172
SELECT DISTINCT + 73 - 74 + + CAST( NULL AS DECIMAL ) + + COUNT( * ) + + - 71 + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT + 73 - 74 + + CAST ( NULL AS REAL ) + + COUNT ( * ) + + - 71 + + 42 AS col2
----
NULL

query I rowsort
SELECT - 30 AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-174
SELECT - MIN( DISTINCT 12 ) - + 0 * - CASE - 8 WHEN + 79 / - 74 * - + 9 * + + 81 THEN - SUM( ALL - 21 ) WHEN 78 THEN NULL WHEN + - COUNT( ALL + CASE 81 WHEN 84 * - 42 - CAST( NULL AS SIGNED ) THEN NULL ELSE - 58 END ) THEN NULL END / + - 42 + 85 col0, - COUNT( * ) - - 85 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-174
SELECT - MIN ( DISTINCT 12 ) - + 0 * - CASE - 8 WHEN + 79 / - 74 * - + 9 * + + 81 THEN - SUM ( ALL - 21 ) WHEN 78 THEN NULL WHEN + - COUNT ( ALL + CASE 81 WHEN 84 * - 42 - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 58 END ) THEN NULL END / + - 42 + 85 col0, - COUNT ( * ) - - 85 AS col2
----
NULL
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-175
SELECT + 23 * + - COALESCE ( - CAST( NULL AS SIGNED ), - 99 DIV + - 86 + + NULLIF ( + 0, + MAX( DISTINCT + 89 ) ) * 28 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-175
SELECT + 23 * + - COALESCE ( - CAST ( NULL AS INTEGER ), - 99 / + - 86 + + NULLIF ( + 0, + MAX ( DISTINCT + 89 ) ) * 28 ) AS col0
----
-23

query I rowsort
SELECT - - 60 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT - - NULLIF ( + COUNT( * ), - COUNT( ALL 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-177
SELECT - - NULLIF ( + COUNT ( * ), - COUNT ( ALL 1 ) )
----
1

query I rowsort
SELECT - ( + 52 ) + ( - 6 ) * + 48 AS col2
----
-340

query II rowsort
SELECT ALL + 80 AS col2, - 27
----
80
-27

query I rowsort
SELECT + 59 * + + 68
----
4012

query I rowsort
SELECT ALL + - COALESCE ( - - 41, 93 )
----
-41

query I rowsort
SELECT 38 AS col2
----
38

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

query I rowsort
SELECT - + ( - 36 ) * - 54
----
-1944

query I rowsort
SELECT ALL + 50
----
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT - + 78 DIV + ( - ( - - 81 ) ) - - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-187
SELECT - + 78 / + ( - ( - - 81 ) ) - - 37 AS col0
----
37

query I rowsort
SELECT - 38 + + 62 - + 71
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL + CASE - - COUNT( * ) WHEN - 93 THEN + 56 * + MIN( ALL + 26 ) - + 3 WHEN - + 37 + - + 5 * + 20 + + MIN( 76 ) + - 54 - COUNT( 51 ) + + 69 * 57 * - + 71 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + CASE - - COUNT ( * ) WHEN - 93 THEN + 56 * + MIN ( ALL + 26 ) - + 3 WHEN - + 37 + - + 5 * + 20 + + MIN ( 76 ) + - 54 - COUNT ( 51 ) + + 69 * 57 * - + 71 THEN NULL END col0
----
NULL

query I rowsort
SELECT + 68
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT SUM( ALL 21 ) * + 82 + - 21 AS col1
----
1701

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT SUM ( ALL 21 ) * + 82 + - 21 AS col1
----
1701

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT ALL 31 * + 69 + COUNT( ALL + 88 ) AS col1, - 99
----
2140
-99

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL 31 * + 69 + COUNT ( ALL + 88 ) AS col1, - 99
----
2140
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL COUNT( * ) * 29 + + + 38
----
67

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL COUNT ( * ) * 29 + + + 38
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL - 54 + - COUNT( * ) * COUNT( * ) - 15 + 78 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - 54 + - COUNT ( * ) * COUNT ( * ) - 15 + 78 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT - COALESCE ( + 44, - 84 ) + - 93 * - COUNT( * ) + 55 col1
----
104

skipif mysql # not compatible
query I rowsort label-197
SELECT - COALESCE ( + 44, - 84 ) + - 93 * - COUNT ( * ) + 55 col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-198
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-198
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0, + 45
----
NULL
45

query I rowsort
SELECT - 99 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL - NULLIF ( + COALESCE ( - - CASE - 72 WHEN - 61 + + - CAST( 45 AS SIGNED ) THEN 49 + + 2 WHEN - MIN( - - 35 ) THEN + 28 WHEN - - ( - - 74 ) / - COUNT( * ) + + SUM( - 45 ) - + + 11 * - + ( - 80 ) + - 15 THEN 98 * + CAST( + 94 AS SIGNED ) * - 26 * + 65 * 67 END, 49 ), - CASE 36 WHEN 73 THEN 71 / 41 ELSE NULL END ) * + 33 AS col1
----
-1617

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - NULLIF ( + COALESCE ( - - CASE - 72 WHEN - 61 + + - CAST ( 45 AS INTEGER ) THEN 49 + + 2 WHEN - MIN ( - - 35 ) THEN + 28 WHEN - - ( - - 74 ) / - COUNT ( * ) + + SUM ( - 45 ) - + + 11 * - + ( - 80 ) + - 15 THEN 98 * + CAST ( + 94 AS INTEGER ) * - 26 * + 65 * 67 END, 49 ), - CASE 36 WHEN 73 THEN 71 / 41 ELSE NULL END ) * + 33 AS col1
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL + 54 + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + 54 + + COUNT ( * )
----
55

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

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

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

query I rowsort
SELECT DISTINCT 62 col1
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-205
SELECT + CASE + 65 WHEN + + ( + 42 ) THEN + + 45 DIV 64 - - 55 - + CASE - 82 WHEN + 23 + + 30 THEN - 97 END DIV - ( - 2 ) ELSE + 41 END + ( + 47 ), + 31 AS col1
----
88
31

skipif mysql # not compatible
query II rowsort label-205
SELECT + CASE + 65 WHEN + + ( + 42 ) THEN + + 45 / 64 - - 55 - + CASE - 82 WHEN + 23 + + 30 THEN - 97 END / - ( - 2 ) ELSE + 41 END + ( + 47 ), + 31 AS col1
----
88
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT DISTINCT - 11 / - CAST( NULL AS SIGNED ) * + 20 * - 45 * - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - 11 / - CAST ( NULL AS INTEGER ) * + 20 * - 45 * - + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT - + 89 DIV - 46 + - + 82
----
-81

skipif mysql # not compatible
query I rowsort label-207
SELECT - + 89 / - 46 + - + 82
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT - 16 + + CAST( + - 65 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-208
SELECT - 16 + + CAST ( + - 65 AS INTEGER ) AS col2
----
-81

query I rowsort
SELECT - NULLIF ( 52, - + 14 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + 4 + 16 + 61 - + SUM( + 31 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-210
SELECT + 4 + 16 + 61 - + SUM ( + 31 ) AS col1
----
50

query I rowsort
SELECT + 43 * 98
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL - 17 * COALESCE ( 92, - + ( ( + - ( COUNT( * ) ) ) ) + - 95 * + ( - ( - 82 ) ) ) * - 21 AS col0
----
32844

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - 17 * COALESCE ( 92, - + ( ( + - ( COUNT ( * ) ) ) ) + - 95 * + ( - ( - 82 ) ) ) * - 21 AS col0
----
32844

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + MIN( ALL - 73 ) * + CASE - 33 WHEN 20 + - 13 THEN 88 * - 47 * - 36 ELSE - 75 END + - 47
----
5428

skipif mysql # not compatible
query I rowsort label-213
SELECT + MIN ( ALL - 73 ) * + CASE - 33 WHEN 20 + - 13 THEN 88 * - 47 * - 36 ELSE - 75 END + - 47
----
5428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT - 26 * + SUM( + 99 ) - + - 69 DIV + CAST( - 33 AS SIGNED ) AS col0
----
-2576

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - 26 * + SUM ( + 99 ) - + - 69 / + CAST ( - 33 AS INTEGER ) AS col0
----
-2576

query I rowsort
SELECT 56 * - + 59 + + + 21 + + + 92
----
-3191

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT + + CAST( - 51 AS SIGNED ) * - CAST( - SUM( + 27 ) AS SIGNED ) AS col2
----
-1377

skipif mysql # not compatible
query I rowsort label-217
SELECT + + CAST ( - 51 AS INTEGER ) * - CAST ( - SUM ( + 27 ) AS INTEGER ) AS col2
----
-1377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-218
SELECT - - COUNT( * ) DIV + - 46 + + 35 - - 17 + 27 + - COUNT( DISTINCT - 28 ) + + 3 + + + 10 + ( - 19 ) + + 58 * + 10 * - 56 DIV COUNT( * ) * - - NULLIF ( + - 42, - - ( + 71 ) * - 72 ) AS col1
----
1364232

skipif mysql # not compatible
query I rowsort label-218
SELECT - - COUNT ( * ) / + - 46 + + 35 - - 17 + 27 + - COUNT ( DISTINCT - 28 ) + + 3 + + + 10 + ( - 19 ) + + 58 * + 10 * - 56 / COUNT ( * ) * - - NULLIF ( + - 42, - - ( + 71 ) * - 72 ) AS col1
----
1364232

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + 46 + - COUNT( * ) * - 8 + 45 + + - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-219
SELECT + 46 + - COUNT ( * ) * - 8 + 45 + + - COUNT ( * ) AS col1
----
98

query II rowsort
SELECT + 60 * - 77 * 69 * + + 9, 52 * 26 + 50 - - 71 AS col2
----
-2869020
1473

query I rowsort
SELECT - 29 + - 62
----
-91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT DISTINCT + 73 DIV - COUNT( * ) + - + 54
----
-127

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + 73 / - COUNT ( * ) + - + 54
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT DISTINCT + 95 / - 23 + COUNT( * ) - - CAST( NULL AS SIGNED ) * COUNT( * ) / + + 37 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT + 95 / - 23 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * COUNT ( * ) / + + 37 * + COUNT ( * )
----
NULL

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

query I rowsort
SELECT + 8 + + + 65 * + 87 AS col1
----
5663

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ALL - 62 * + COUNT( DISTINCT - 11 ) * - 87 + - ( + 14 ) + - 66 col0
----
5314

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL - 62 * + COUNT ( DISTINCT - 11 ) * - 87 + - ( + 14 ) + - 66 col0
----
5314

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

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

query I rowsort
SELECT ( - 39 )
----
-39

query I rowsort
SELECT - 78 * + 84
----
-6552

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

query I rowsort
SELECT + 26 * 10 + + 13 AS col1
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT CASE - - 4 WHEN + 37 * + COUNT( * ) / - 59 * - + 17 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT CASE - - 4 WHEN + 37 * + COUNT ( * ) / - 59 * - + 17 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-235
SELECT - 42 * 55 DIV - 28 AS col2, - 23 col1
----
82
-23

skipif mysql # not compatible
query II rowsort label-235
SELECT - 42 * 55 / - 28 AS col2, - 23 col1
----
82
-23

query I rowsort
SELECT DISTINCT - 40 * - + 87 AS col2
----
3480

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

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

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

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + COUNT ( * ) * + 96 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-239
SELECT - COUNT( ALL + 53 ) DIV + NULLIF ( - + NULLIF ( - 94, CASE + 61 WHEN - ( ( + 16 ) ) THEN NULL WHEN - ( - 75 ) DIV - + 74 * - + 42 * + COALESCE ( + - COUNT( * ), CAST( NULL AS SIGNED ) DIV + - COUNT( * ) ) * + - 60 THEN NULL ELSE 67 + + + COUNT( * ) + + ( 72 ) END ), - 7 - 79 ) AS col0, + 37
----
0
37

skipif mysql # not compatible
query II rowsort label-239
SELECT - COUNT ( ALL + 53 ) / + NULLIF ( - + NULLIF ( - 94, CASE + 61 WHEN - ( ( + 16 ) ) THEN NULL WHEN - ( - 75 ) / - + 74 * - + 42 * + COALESCE ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) / + - COUNT ( * ) ) * + - 60 THEN NULL ELSE 67 + + + COUNT ( * ) + + ( 72 ) END ), - 7 - 79 ) AS col0, + 37
----
0
37

query I rowsort
SELECT DISTINCT NULLIF ( - - 97, 20 * - - 91 * - 58 * 7 * 86 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-241
SELECT COUNT( * ), - 37 + + 87 col2
----
1
50

skipif mysql # not compatible
query II rowsort label-241
SELECT COUNT ( * ), - 37 + + 87 col2
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + + 58 * + + 79 + - COUNT( * ) - COUNT( * ) col1
----
4580

skipif mysql # not compatible
query I rowsort label-242
SELECT + + 58 * + + 79 + - COUNT ( * ) - COUNT ( * ) col1
----
4580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT 0 - COUNT( * ) + COALESCE ( 40, + + 99, - 49 - + 3 ) + + 64 * ( + - 20 ) * ( 75 ) + NULLIF ( ( - 21 ), - - 13 ) * - 56 AS col1
----
-94785

skipif mysql # not compatible
query I rowsort label-244
SELECT 0 - COUNT ( * ) + COALESCE ( 40, + + 99, - 49 - + 3 ) + + 64 * ( + - 20 ) * ( 75 ) + NULLIF ( ( - 21 ), - - 13 ) * - 56 AS col1
----
-94785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-245
SELECT - MAX( - + NULLIF ( + 2, + CAST( NULL AS SIGNED ) ) ) * - 30 AS col0, 73
----
-60
73

skipif mysql # not compatible
query II rowsort label-245
SELECT - MAX ( - + NULLIF ( + 2, + CAST ( NULL AS INTEGER ) ) ) * - 30 AS col0, 73
----
-60
73

query I rowsort
SELECT ALL 4 AS col0
----
4

query I rowsort
SELECT + 84 + - 76
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT - SUM( + NULLIF ( + 71, 60 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-248
SELECT - SUM ( + NULLIF ( + 71, 60 ) ) AS col0
----
-71

query I rowsort
SELECT ALL ( - 44 ) col1
----
-44

query I rowsort
SELECT DISTINCT - 51
----
-51

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

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

query I rowsort
SELECT - 77 * + 75 AS col1
----
-5775

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

query I rowsort
SELECT - 17 * 58
----
-986

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

query I rowsort
SELECT - - 79
----
79

query I rowsort
SELECT + 0 + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT - NULLIF ( + 27, 21 + - 71 ) + ( - COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT - NULLIF ( + 27, 21 + - 71 ) + ( - COUNT ( * ) ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL - ( 49 ) + - COUNT( 40 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - ( 49 ) + - COUNT ( 40 ) AS col2
----
-50

query I rowsort
SELECT 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT - - 14 * - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT - - 14 * - COUNT ( * )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-263
SELECT ALL 2 + - COUNT( * ) + 15 * + + 15 * - CAST( + 29 AS SIGNED ) AS col1, + 87 DIV + 86 + - - 93
----
-6524
94

skipif mysql # not compatible
query II rowsort label-263
SELECT ALL 2 + - COUNT ( * ) + 15 * + + 15 * - CAST ( + 29 AS INTEGER ) AS col1, + 87 / + 86 + - - 93
----
-6524
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-264
SELECT COUNT( * ) DIV + 79 AS col2, NULLIF ( - 7, + - 76 DIV COUNT( * ) * + AVG ( ( + 14 ) ) + - CAST( NULL AS SIGNED ) )
----
0
-7

skipif mysql # not compatible
query II rowsort label-264
SELECT COUNT ( * ) / + 79 AS col2, NULLIF ( - 7, + - 76 / COUNT ( * ) * + AVG ( ( + 14 ) ) + - CAST ( NULL AS INTEGER ) )
----
0
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT DISTINCT 20 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT 20 / - 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT DISTINCT - 88, + 69 + + - COALESCE ( ( 89 ), 56 ) * 95 + + COUNT( * ) AS col1
----
-88
-8385

skipif mysql # not compatible
query II rowsort label-266
SELECT DISTINCT - 88, + 69 + + - COALESCE ( ( 89 ), 56 ) * 95 + + COUNT ( * ) AS col1
----
-88
-8385

onlyif mysql # DIV for integer division: 
query II rowsort label-267
SELECT 26 - - - 79 DIV + 16 - + 89, + 22 * 67 AS col2
----
-67
1474

skipif mysql # not compatible
query II rowsort label-267
SELECT 26 - - - 79 / + 16 - + 89, + 22 * 67 AS col2
----
-67
1474

query I rowsort
SELECT 83 col2
----
83

query I rowsort
SELECT 54 * - ( 12 ) + 35 + - 35
----
-648

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT ALL - 16 col0, COUNT( * )
----
-16
1

skipif mysql # not compatible
query II rowsort label-271
SELECT ALL - 16 col0, COUNT ( * )
----
-16
1

onlyif mysql # aggregate syntax: 
query II rowsort label-272
SELECT 69 AS col2, MAX( 53 ) AS col0
----
69
53

skipif mysql # not compatible
query II rowsort label-272
SELECT 69 AS col2, MAX ( 53 ) AS col0
----
69
53

query I rowsort
SELECT ALL 12 * + + 1
----
12

query I rowsort
SELECT ALL 24 * - NULLIF ( ( + 79 ), 79 * + 32 ) * 53
----
-100488

query I rowsort
SELECT ALL - COALESCE ( + 64, - 14 * + 81 + 0 - + - 37, - 80 ) AS col2
----
-64

query I rowsort
SELECT DISTINCT - 22
----
-22

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

skipif mysql # not compatible
query I rowsort label-277
SELECT COUNT ( - 13 ) * + 23 AS col2
----
23

query I rowsort
SELECT 99 + - 87 col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-279
SELECT 70 + - 47 AS col2, CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-279
SELECT 70 + - 47 AS col2, CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT + COUNT( * ) * - CASE NULLIF ( CASE + 42 WHEN + 47 THEN NULL WHEN - - 22 * - - 73 + - 18 + 19 * + 84 THEN - + COALESCE ( COUNT( * ), 6 / + 76 * - COUNT( * ) ) * - 23 - - 96 * + CAST( NULL AS SIGNED ) WHEN + + ( 4 ) * MIN( + + 19 ) + 89 * 18 THEN + 18 * - + 41 ELSE NULL END, + + 63 * + + 81 - 15 ) WHEN + 51 THEN NULL WHEN + 28 THEN + 69 END * 51 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT + COUNT ( * ) * - CASE NULLIF ( CASE + 42 WHEN + 47 THEN NULL WHEN - - 22 * - - 73 + - 18 + 19 * + 84 THEN - + COALESCE ( COUNT ( * ), 6 / + 76 * - COUNT ( * ) ) * - 23 - - 96 * + CAST ( NULL AS INTEGER ) WHEN + + ( 4 ) * MIN ( + + 19 ) + 89 * 18 THEN + 18 * - + 41 ELSE NULL END, + + 63 * + + 81 - 15 ) WHEN + 51 THEN NULL WHEN + 28 THEN + 69 END * 51 + 60
----
NULL

query I rowsort
SELECT 15 - - 62 AS col2
----
77

query II rowsort
SELECT ALL 60 AS col2, 1 AS col2
----
60
1

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT COUNT( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2
----
49
-5025

skipif mysql # not compatible
query II rowsort label-283
SELECT COUNT ( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX ( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2
----
49
-5025

query I rowsort
SELECT ALL CASE - ( - 7 ) WHEN 65 + + 53 + 60 * + 31 THEN - + ( + ( - - 88 ) ) WHEN + 54 THEN NULL WHEN - 89 + 59 - - 23 * + + 80 + 32 THEN + 97 + + + 20 ELSE NULL END col0
----
NULL

query I rowsort
SELECT 45 * 3 + + - 38
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL + - 96 * + - COUNT( * ) * - 33
----
-3168

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL + - 96 * + - COUNT ( * ) * - 33
----
-3168

query I rowsort
SELECT 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT + 39 + - 70 + + - NULLIF ( + 70, + 90 + + + COUNT( * ) - - + 94 + 68 ) - + 48 * 97 * - ( - 93 ) + - 22 AS col0
----
-433131

skipif mysql # not compatible
query I rowsort label-288
SELECT + 39 + - 70 + + - NULLIF ( + 70, + 90 + + + COUNT ( * ) - - + 94 + 68 ) - + 48 * 97 * - ( - 93 ) + - 22 AS col0
----
-433131

query I rowsort
SELECT ALL - 20 * + 61
----
-1220

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

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

query I rowsort
SELECT ALL - - 66 + 39
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT + 95 AS col2, 10 + COUNT( * )
----
95
11

skipif mysql # not compatible
query II rowsort label-292
SELECT + 95 AS col2, 10 + COUNT ( * )
----
95
11

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + COUNT( * ) + 9 * + ( - + 30 ) * - - CASE - - CASE - - 46 WHEN + - 30 THEN - 51 ELSE + ( + - 58 ) END WHEN 24 THEN - 73 ELSE NULL END + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT + COUNT ( * ) + 9 * + ( - + 30 ) * - - CASE - - CASE - - 46 WHEN + - 30 THEN - 51 ELSE + ( + - 58 ) END WHEN 24 THEN - 73 ELSE NULL END + - 42 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 56, + + 22 * - 53 ) AS col1
----
56

query I rowsort
SELECT 94 + + 90
----
184

query I rowsort
SELECT ALL + 15 + + - 43 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT ALL + 93 + 76 DIV - COUNT( + 92 ) + 29 * - 60 + ( - + 91 )
----
-1814

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + 93 + 76 / - COUNT ( + 92 ) + 29 * - 60 + ( - + 91 )
----
-1814

query I rowsort
SELECT - 64 + - 67 AS col0
----
-131

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

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

query I rowsort
SELECT ALL 8 * 64 col1
----
512

query I rowsort
SELECT 55 + 35
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL + COUNT( * ) * - 28 * + 26 * - + MAX( ALL - - 70 ) + + + 42 col0
----
51002

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL + COUNT ( * ) * - 28 * + 26 * - + MAX ( ALL - - 70 ) + + + 42 col0
----
51002

query I rowsort
SELECT 36 + - + 97 * 41 AS col0
----
-3941

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

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT 78 * - 40 * CASE 14 WHEN - 71 + - 42 + + + 77 * + 67 THEN - + 0 + - MAX( ALL - 62 ) + + 39 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT 78 * - 40 * CASE 14 WHEN - 71 + - 42 + + + 77 * + 67 THEN - + 0 + - MAX ( ALL - 62 ) + + 39 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT + COUNT( * ) * - 39 * - 17 - - 63 col0
----
726

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT + COUNT ( * ) * - 39 * - 17 - - 63 col0
----
726

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT + 18 DIV + + 33 + - 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-307
SELECT + 18 / + + 33 + - 91 AS col1
----
-91

query I rowsort
SELECT ALL + 50 * 55 AS col2
----
2750

query I rowsort
SELECT ALL - 95 * + + 95 AS col0
----
-9025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT ALL CASE COUNT( * ) WHEN + 14 THEN NULL WHEN - 60 * - ( ( COUNT( * ) ) ) + + 13 * - 78 DIV - 98 * - ( ( + - 10 ) ) + - + 72 THEN NULL ELSE + - 25 END DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL CASE COUNT ( * ) WHEN + 14 THEN NULL WHEN - 60 * - ( ( COUNT ( * ) ) ) + + 13 * - 78 / - 98 * - ( ( + - 10 ) ) + - + 72 THEN NULL ELSE + - 25 END / + 61
----
0

query I rowsort
SELECT + 96 col1
----
96

query I rowsort
SELECT DISTINCT + 38
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT 23 * - COUNT( * ) * - 89 + + 63
----
2110

skipif mysql # not compatible
query I rowsort label-314
SELECT 23 * - COUNT ( * ) * - 89 + + 63
----
2110

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL + NULLIF ( 23, + - 25 / + + CASE + 16 WHEN + + MAX( ALL - 39 ) THEN + 4 ELSE COUNT( + + 75 ) + - - 77 + + 77 END + - 38 + - COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL + NULLIF ( 23, + - 25 / + + CASE + 16 WHEN + + MAX ( ALL - 39 ) THEN + 4 ELSE COUNT ( + + 75 ) + - - 77 + + 77 END + - 38 + - COUNT ( * ) ) AS col0
----
23

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

query I rowsort
SELECT ALL 40 + 85
----
125

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

query I rowsort
SELECT DISTINCT + 71 + 80 * - 91 * - 63
----
458711

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

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

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - 38 + - - COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT - - 39 AS col0
----
39

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

query I rowsort
SELECT - - 29 col1
----
29

query I rowsort
SELECT DISTINCT + NULLIF ( 53, + 58 )
----
53

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

query I rowsort
SELECT - + 55
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT - 95 DIV MIN( - + ( 41 ) ) * + - 58 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT - 95 / MIN ( - + ( 41 ) ) * + - 58 AS col2
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT - 53 - - 60 DIV 32
----
-52

skipif mysql # not compatible
query I rowsort label-329
SELECT - 53 - - 60 / 32
----
-52

query I rowsort
SELECT ALL + 62 * + + 70 AS col1
----
4340

query I rowsort
SELECT - + 34
----
-34

query I rowsort
SELECT + 20 col2
----
20

query I rowsort
SELECT - ( 66 ) col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT DISTINCT + 81 * + 12 * COUNT( * ), COUNT( * ) AS col0
----
972
1

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT + 81 * + 12 * COUNT ( * ), COUNT ( * ) AS col0
----
972
1

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

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

query I rowsort
SELECT - ( ( - + 85 ) ) * 60
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + NULLIF ( + 61, COUNT( * ) * - ( + 58 ) * + 82 / MIN( ALL - + 31 ) + + 15 * - 63 + - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + NULLIF ( + 61, COUNT ( * ) * - ( + 58 ) * + 82 / MIN ( ALL - + 31 ) + + 15 * - 63 + - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ( - NULLIF ( + - 7, CASE + - MAX( - 57 ) WHEN 36 / + 8 + - 34 * - 72 + + 55 + + 87 + + 60 * - - 79 + - 78 + 86 + NULLIF ( 41, + 88 ) + 21 / + + 11 THEN - 57 ELSE CASE + 96 WHEN - 96 * ( + + 50 ) THEN - MAX( DISTINCT - - 33 ) ELSE NULL END END + + - 99 + MAX( ALL + 50 ) ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-338
SELECT ( - NULLIF ( + - 7, CASE + - MAX ( - 57 ) WHEN 36 / + 8 + - 34 * - 72 + + 55 + + 87 + + 60 * - - 79 + - 78 + 86 + NULLIF ( 41, + 88 ) + 21 / + + 11 THEN - 57 ELSE CASE + 96 WHEN - 96 * ( + + 50 ) THEN - MAX ( DISTINCT - - 33 ) ELSE NULL END END + + - 99 + MAX ( ALL + 50 ) ) ) AS col0
----
7

query I rowsort
SELECT ALL + COALESCE ( - - 99, - 45, + 1 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL + SUM( ALL + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL + SUM ( ALL + 21 )
----
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT ALL + 25 col1, - ( + 47 ) + - COUNT( * ) + - 44 AS col0
----
25
-92

skipif mysql # not compatible
query II rowsort label-342
SELECT ALL + 25 col1, - ( + 47 ) + - COUNT ( * ) + - 44 AS col0
----
25
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-343
SELECT + COUNT( * ) AS col2, - 72 * - 78 * - - 44 + COUNT( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST( ( + 20 ) AS SIGNED ) * - + COUNT( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-343
SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-344
SELECT COUNT( * ) DIV + + 58 + + 89
----
89

skipif mysql # not compatible
query I rowsort label-344
SELECT COUNT ( * ) / + + 58 + + 89
----
89

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

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

query I rowsort
SELECT - 11 + 91 + 37 AS col2
----
117

query I rowsort
SELECT ALL - 92 * 54 AS col0
----
-4968

query I rowsort
SELECT NULLIF ( + 74, - + 55 * + 37 ) AS col0
----
74

query I rowsort
SELECT ALL - 19 * - - 13
----
-247

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT + - ( - + NULLIF ( - 21, + - 65 ) ), COUNT( * ) col2
----
-21
1

skipif mysql # not compatible
query II rowsort label-350
SELECT + - ( - + NULLIF ( - 21, + - 65 ) ), COUNT ( * ) col2
----
-21
1

query I rowsort
SELECT + + 15 + 27 AS col1
----
42

query I rowsort
SELECT ALL + - 19 * 97 + - 77 + + 67 - + 95 AS col1
----
-1948

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

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT - + COUNT( * ) + 14 + + COALESCE ( - 46, - 43 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-354
SELECT - + COUNT ( * ) + 14 + + COALESCE ( - 46, - 43 ) AS col0
----
-33

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

query I rowsort
SELECT 24 col0
----
24

query I rowsort
SELECT + 57 - 70 + - 30
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT + + 79 + - 79 + - ( - - ( + SUM( ALL 68 ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-358
SELECT + + 79 + - 79 + - ( - - ( + SUM ( ALL 68 ) ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL - 37 * - 63 * - 96 + + CASE ( 43 ) WHEN 64 + - NULLIF ( + 95, - + 55 ) - 98 + + 96 THEN - 70 WHEN - 94 THEN - MAX( ALL + - 0 ) ELSE NULL END - - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - 37 * - 63 * - 96 + + CASE ( 43 ) WHEN 64 + - NULLIF ( + 95, - + 55 ) - 98 + + 96 THEN - 70 WHEN - 94 THEN - MAX ( ALL + - 0 ) ELSE NULL END - - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + 24 * - - 97 + SUM( - 76 ) AS col1
----
2252

skipif mysql # not compatible
query I rowsort label-360
SELECT + 24 * - - 97 + SUM ( - 76 ) AS col1
----
2252

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

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

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

query I rowsort
SELECT DISTINCT + 66 - - 24
----
90

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-365
SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT( * ) - - COALESCE ( + - 40, - - 22 ) * CAST( NULL AS SIGNED ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST( NULL AS SIGNED ) ) * + 13 * + COUNT( * ) * + - 67 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-365
SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT ( * ) - - COALESCE ( + - 40, - - 22 ) * CAST ( NULL AS INTEGER ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST ( NULL AS INTEGER ) ) * + 13 * + COUNT ( * ) * + - 67 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 33 - + 66 AS col2
----
-33

query I rowsort
SELECT + + 27 * + 52
----
1404

query I rowsort
SELECT + + 22 * + 80 + + + 19 + - 22 - 26
----
1731

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT - COUNT( * ) AS col1, + CAST( ( - NULLIF ( - - 6, - 70 ) ) AS SIGNED )
----
-1
-6

skipif mysql # not compatible
query II rowsort label-370
SELECT - COUNT ( * ) AS col1, + CAST ( ( - NULLIF ( - - 6, - 70 ) ) AS INTEGER )
----
-1
-6

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

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

query I rowsort
SELECT 99 AS col0
----
99

query I rowsort
SELECT + 25 + - 95
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM ( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT + 78 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-375
SELECT + 78 / - - 97
----
0

query I rowsort
SELECT + 95 + + 49 + + 61 * + 52 * - - 10 AS col2
----
31864

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL 1 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL 1 / - 15
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-378
SELECT 90 + + + 85 / - CAST( NULL AS DECIMAL ) + ( - 65 ) - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT 90 + + + 85 / - CAST ( NULL AS REAL ) + ( - 65 ) - + 54 AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-381
SELECT 23 DIV ( + COUNT( * ) ) + + 7 * - COUNT( ALL + - 19 ) * + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-381
SELECT 23 / ( + COUNT ( * ) ) + + 7 * - COUNT ( ALL + - 19 ) * + COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL + 32 * - NULLIF ( COUNT( * ), 86 + - 69 ) * - 65
----
2080

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + 32 * - NULLIF ( COUNT ( * ), 86 + - 69 ) * - 65
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT DISTINCT - SUM( 19 ) + 43
----
24

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT - SUM ( 19 ) + 43
----
24

query I rowsort
SELECT DISTINCT 59 * + 64
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL - 60 + + CASE - 94 WHEN 14 THEN NULL WHEN - ( + 10 ) * + COUNT( * ) THEN + + 55 * 37 END * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - 60 + + CASE - 94 WHEN 14 THEN NULL WHEN - ( + 10 ) * + COUNT ( * ) THEN + + 55 * 37 END * 31 AS col2
----
NULL

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

query I rowsort
SELECT ALL 94 + + 66 AS col1
----
160

query I rowsort
SELECT DISTINCT - 76
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT ALL + ( 82 ) + + + CAST( + ( + 38 ) AS SIGNED ) + - 46 * + - 58 AS col0
----
2788

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL + ( 82 ) + + + CAST ( + ( + 38 ) AS INTEGER ) + - 46 * + - 58 AS col0
----
2788

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

query I rowsort
SELECT NULLIF ( + 41, 95 )
----
41

query I rowsort
SELECT + + 66
----
66

query I rowsort
SELECT ALL - - 10 * - 19 * + + 42 col2
----
-7980

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

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + 97 - COUNT ( * ) / + 6
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT - - 34 * - 93 + - 98 + - MAX( - 36 ) * + - 77 * + + NULLIF ( + + 89, CAST( - - ( + 58 ) AS DECIMAL ) ) DIV COUNT( * )
----
-249968

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT - - 34 * - 93 + - 98 + - MAX ( - 36 ) * + - 77 * + + NULLIF ( + + 89, CAST ( - - ( + 58 ) AS REAL ) ) / COUNT ( * )
----
-249968

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL - - 18 * COUNT( * ) * 91 AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - - 18 * COUNT ( * ) * 91 AS col1
----
1638

query I rowsort
SELECT ALL 20 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - NULLIF ( 8, - - ( + - 41 ) / - 67 + ( - 0 ) + + 13 ) * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - NULLIF ( 8, - - ( + - 41 ) / - 67 + ( - 0 ) + + 13 ) * - 58
----
NULL

query I rowsort
SELECT - ( 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT - 74 DIV - + 58 - + 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-400
SELECT - 74 / - + 58 - + 10 AS col2
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT 17 - - 64 DIV - 25
----
15

skipif mysql # not compatible
query I rowsort label-402
SELECT 17 - - 64 / - 25
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-403
SELECT - CASE + 29 WHEN + 84 THEN NULL WHEN - 46 + - COUNT( * ) THEN - - COUNT( * ) ELSE - COALESCE ( - 62, + + MIN( DISTINCT 78 ) DIV 72 * 61 ) * - 27 - - 13 * - 63 END * - 14
----
-34902

skipif mysql # not compatible
query I rowsort label-403
SELECT - CASE + 29 WHEN + 84 THEN NULL WHEN - 46 + - COUNT ( * ) THEN - - COUNT ( * ) ELSE - COALESCE ( - 62, + + MIN ( DISTINCT 78 ) / 72 * 61 ) * - 27 - - 13 * - 63 END * - 14
----
-34902

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

query I rowsort
SELECT 64 * 96 AS col1
----
6144

query I rowsort
SELECT - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT ALL 69, - 59 + - COUNT( * ) AS col2
----
69
-60

skipif mysql # not compatible
query II rowsort label-407
SELECT ALL 69, - 59 + - COUNT ( * ) AS col2
----
69
-60

query I rowsort
SELECT - 70 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT 84 - + ( + - 32 ) + + COUNT( * ) * + MAX( 95 ) * + 60 * - 66
----
-376084

skipif mysql # not compatible
query I rowsort label-409
SELECT 84 - + ( + - 32 ) + + COUNT ( * ) * + MAX ( 95 ) * + 60 * - 66
----
-376084

query I rowsort
SELECT ALL 60 * - 95
----
-5700

query I rowsort
SELECT 54 * - - 63
----
3402

query II rowsort
SELECT - 78 AS col0, 78 col2
----
-78
78

query I rowsort
SELECT ALL 54 + 78
----
132

query I rowsort
SELECT 73 + + 3 AS col1
----
76

query I rowsort
SELECT 80 * 80
----
6400

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT COUNT( * ) * 40 * + 38 AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-416
SELECT COUNT ( * ) * 40 * + 38 AS col1
----
1520

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

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL 47 + + + COUNT ( * ) / + 45
----
47

query I rowsort
SELECT DISTINCT - 19 * - 88 * 22 * + 73 AS col2
----
2685232

query I rowsort
SELECT ( + 1 ) - + 17 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT - MIN( 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - MIN ( 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT MIN( - 89 ) + - 70 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT MIN ( - 89 ) + - 70 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT ALL - ( - MAX( - COALESCE ( + 81, + 4 ) ) ) + + 91 * - 58
----
-5359

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL - ( - MAX ( - COALESCE ( + 81, + 4 ) ) ) + + 91 * - 58
----
-5359

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

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

query I rowsort
SELECT ALL 88 + + + 11 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-425
SELECT ALL COUNT( * ) DIV + + COALESCE ( - - 26, + - 97, + ( - 22 ) + + 92, - COALESCE ( + 72, 99, COUNT( * ) ) ) * - ( ( + ( - - 72 ) ) ) + + CAST( + + 19 AS SIGNED ) * 30
----
570

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL COUNT ( * ) / + + COALESCE ( - - 26, + - 97, + ( - 22 ) + + 92, - COALESCE ( + 72, 99, COUNT ( * ) ) ) * - ( ( + ( - - 72 ) ) ) + + CAST ( + + 19 AS INTEGER ) * 30
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT + 98 * - - CAST( + + 47 AS SIGNED ) + - 98 AS col2
----
4508

skipif mysql # not compatible
query I rowsort label-426
SELECT + 98 * - - CAST ( + + 47 AS INTEGER ) + - 98 AS col2
----
4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-427
SELECT COALESCE ( + - 49, - 52 ) DIV + + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-427
SELECT COALESCE ( + - 49, - 52 ) / + + COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT DISTINCT - 51 * + 65
----
-3315

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

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

query I rowsort
SELECT DISTINCT - + 35 AS col0
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-431
SELECT ALL + 32 * + ( + 28 ) AS col2, + 39 DIV 66 + + 88 AS col1
----
896
88

skipif mysql # not compatible
query II rowsort label-431
SELECT ALL + 32 * + ( + 28 ) AS col2, + 39 / 66 + + 88 AS col1
----
896
88

query I rowsort
SELECT ALL - 73 AS col2
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT - 15 * - + 30 * + 70 * - 35 - + 72 + - 55 * + 17 / - 1 + - CAST( CASE + CAST( NULL AS SIGNED ) WHEN - + CASE - + 46 WHEN CASE + - 42 WHEN - - 37 THEN 97 * - + 46 * - 93 END * - - 6 + - 81 * - + COUNT( + 58 ) THEN + 21 * + - 39 + - 31 END THEN + AVG ( 87 ) * 30 / 81 * + 34 - + 74 WHEN - 72 THEN - COUNT( * ) WHEN - ( - 12 ) / 3 + 13 THEN MAX( 53 ) + - 61 * - COUNT( * ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT - 15 * - + 30 * + 70 * - 35 - + 72 + - 55 * + 17 / - 1 + - CAST ( CASE + CAST ( NULL AS INTEGER ) WHEN - + CASE - + 46 WHEN CASE + - 42 WHEN - - 37 THEN 97 * - + 46 * - 93 END * - - 6 + - 81 * - + COUNT ( + 58 ) THEN + 21 * + - 39 + - 31 END THEN + AVG ( 87 ) * 30 / 81 * + 34 - + 74 WHEN - 72 THEN - COUNT ( * ) WHEN - ( - 12 ) / 3 + 13 THEN MAX ( 53 ) + - 61 * - COUNT ( * ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT 53 + - - COALESCE ( 56, + + ( - - COUNT( * ) ) * + + MAX( + 90 ) * - + 22, - 82 + + 29 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-435
SELECT 53 + - - COALESCE ( 56, + + ( - - COUNT ( * ) ) * + + MAX ( + 90 ) * - + 22, - 82 + + 29 ) AS col2
----
109

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ( ( + + 18 ) ) * - CASE + COUNT( ALL - 51 ) WHEN - 26 * + 91 - 46 * + 84 + - 28 + + ( - 67 ) + + 67 THEN COALESCE ( + 19, - NULLIF ( + 2, - - 60 ) ) ELSE NULL END + + + 39 + - - 94 - + 4 + - 27 / + + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT ( ( + + 18 ) ) * - CASE + COUNT ( ALL - 51 ) WHEN - 26 * + 91 - 46 * + 84 + - 28 + + ( - 67 ) + + 67 THEN COALESCE ( + 19, - NULLIF ( + 2, - - 60 ) ) ELSE NULL END + + + 39 + - - 94 - + 4 + - 27 / + + 47 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-438
SELECT + 42 / COUNT ( * ) + COUNT ( * ) AS col2
----
43

query II rowsort
SELECT + 81 * + - 69 + + 99, 34 AS col2
----
-5490
34

query I rowsort
SELECT - 10 AS col2
----
-10

query I rowsort
SELECT ALL + + 65 * 22 AS col1
----
1430

query I rowsort
SELECT DISTINCT + 22 * 69
----
1518

query I rowsort
SELECT 5 AS col2
----
5

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

skipif mysql # not compatible
query I rowsort label-444
SELECT - ( COUNT ( * ) ) / 41
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-445
SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST( NULL AS SIGNED ), + 73 ) DIV 9 col1
----
-23
84

skipif mysql # not compatible
query II rowsort label-445
SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 73 ) / 9 col1
----
-23
84

query I rowsort
SELECT ALL - 32 + COALESCE ( 68, - - 24 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-447
SELECT - 60 + + - 38 DIV + - 21 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-447
SELECT - 60 + + - 38 / + - 21 AS col0
----
-59

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

query I rowsort
SELECT - ( + 69 ) + - 86 AS col2
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT + 42 DIV + + 14 col1
----
3

skipif mysql # not compatible
query I rowsort label-450
SELECT + 42 / + + 14 col1
----
3

query I rowsort
SELECT DISTINCT + 60 + + - 18 AS col0
----
42

query II rowsort
SELECT - 33 AS col2, - 3
----
-33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT + 78 + - - 34 * - 95 - + COUNT( * )
----
-3153

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT + 78 + - - 34 * - 95 - + COUNT ( * )
----
-3153

query I rowsort
SELECT 42 col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-455
SELECT ALL ( + ( 80 ) ) + - 47 + + 56 DIV + 28 AS col0, - 25 AS col0
----
35
-25

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL ( + ( 80 ) ) + - 47 + + 56 / + 28 AS col0, - 25 AS col0
----
35
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT - 6 + - + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-456
SELECT - 6 + - + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL CASE + 68 WHEN - 57 * + - MAX( DISTINCT + 72 ) + - COALESCE ( 32, + + COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL CASE + 68 WHEN - 57 * + - MAX ( DISTINCT + 72 ) + - COALESCE ( 32, + + COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT - 88 * - 58 * 71 AS col0
----
362384

query I rowsort
SELECT + 2 col1
----
2

query II rowsort
SELECT ( 5 ) AS col0, - 34 + 44
----
5
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT + CASE 42 WHEN COUNT( DISTINCT + 10 ) * 86 - + 51 THEN NULL ELSE - 42 * - - 3 + 40 - 74 * - - CAST( + + 78 AS SIGNED ) + + 90 + + + 39 END AS col0
----
-5729

skipif mysql # not compatible
query I rowsort label-461
SELECT + CASE 42 WHEN COUNT ( DISTINCT + 10 ) * 86 - + 51 THEN NULL ELSE - 42 * - - 3 + 40 - 74 * - - CAST ( + + 78 AS INTEGER ) + + 90 + + + 39 END AS col0
----
-5729

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL COUNT( * ) * + NULLIF ( + COUNT( * ), + + 58 + + 62 - + 0 * 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL COUNT ( * ) * + NULLIF ( + COUNT ( * ), + + 58 + + 62 - + 0 * 68 ) AS col1
----
1

query I rowsort
SELECT - 46 * 77
----
-3542

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL - - 56 * 30 - + CAST( - 59 AS SIGNED ) + 37
----
1776

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - - 56 * 30 - + CAST ( - 59 AS INTEGER ) + 37
----
1776

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT ALL + 9 AS col1, - 97 * - - 80 + COUNT( * ) AS col0
----
9
-7759

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL + 9 AS col1, - 97 * - - 80 + COUNT ( * ) AS col0
----
9
-7759

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-469
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, COALESCE ( + COUNT( * ), 40 - + 78 * 52 * + - 8, - NULLIF ( 6, - 77 * + 34 ) * + 59 * - 14 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-469
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + COUNT ( * ), 40 - + 78 * 52 * + - 8, - NULLIF ( 6, - 77 * + 34 ) * + 59 * - 14 )
----
NULL
1

query II rowsort
SELECT ALL + - 46 AS col1, + 17 AS col1
----
-46
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT COALESCE ( 71, - 40 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 85 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-471
SELECT COALESCE ( 71, - 40 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 85 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-472
SELECT + + 89 DIV NULLIF ( - 93, + + COUNT( * ) * - 57 - - COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT + + 89 / NULLIF ( - 93, + + COUNT ( * ) * - 57 - - COUNT ( * ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + + 84 * SUM( - 73 )
----
-6132

skipif mysql # not compatible
query I rowsort label-473
SELECT + + 84 * SUM ( - 73 )
----
-6132

query I rowsort
SELECT 15 * + 26 - - + 42
----
432

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT + COUNT( * ) * + COUNT( * ) + - 19 + + + 60 AS col2, ( + - COALESCE ( + 22, 71 ) )
----
42
-22

skipif mysql # not compatible
query II rowsort label-475
SELECT + COUNT ( * ) * + COUNT ( * ) + - 19 + + + 60 AS col2, ( + - COALESCE ( + 22, 71 ) )
----
42
-22

query I rowsort
SELECT ALL + 45 * - + 47 * - 45
----
95175

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

query I rowsort
SELECT ALL + 54 * 29
----
1566

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

query I rowsort
SELECT DISTINCT - 26 * + 90 AS col0
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL - 73 * - - COUNT( DISTINCT 71 ) + + 69 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - 73 * - - COUNT ( DISTINCT 71 ) + + 69 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-482
SELECT ALL CASE - 89 WHEN 73 THEN NULL WHEN - 88 + + 55 * + 35 DIV - - 1 THEN - 19 * + 9 + 90 * - - 55 * - 99 END * - 72 * 17 + 72 * - + 69 * + 6 AS col2, + 78 + 14 + - ( 38 ) - - + 41 * COALESCE ( - 21, - 34 * - 10 ) DIV 98 col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL CASE - 89 WHEN 73 THEN NULL WHEN - 88 + + 55 * + 35 / - - 1 THEN - 19 * + 9 + 90 * - - 55 * - 99 END * - 72 * 17 + 72 * - + 69 * + 6 AS col2, + 78 + 14 + - ( 38 ) - - + 41 * COALESCE ( - 21, - 34 * - 10 ) / 98 col1
----
NULL
46

query I rowsort
SELECT + - 8 * + - ( + 95 ) + 34 col2
----
794

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-485
SELECT - COALESCE ( - 34, 73, - + 99 * + SUM( ALL + CASE + 69 WHEN - 65 THEN 73 ELSE NULL END ) DIV + MAX( DISTINCT 81 ) * 4 + + 20 * + 54 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-485
SELECT - COALESCE ( - 34, 73, - + 99 * + SUM ( ALL + CASE + 69 WHEN - 65 THEN 73 ELSE NULL END ) / + MAX ( DISTINCT 81 ) * 4 + + 20 * + 54 ) AS col2
----
34

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

query I rowsort
SELECT + 19 + ( - - 15 ) + - 41 * + 79 * 32 AS col2
----
-103614

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT - 42 + - 70, + NULLIF ( + 73, 15 + + 20 ) + - + COALESCE ( + + 93, 63, COUNT( * ) + + 21 ) AS col2
----
-112
-20

skipif mysql # not compatible
query II rowsort label-488
SELECT - 42 + - 70, + NULLIF ( + 73, 15 + + 20 ) + - + COALESCE ( + + 93, 63, COUNT ( * ) + + 21 ) AS col2
----
-112
-20

query I rowsort
SELECT 4 AS col1
----
4

query I rowsort
SELECT ALL 18 + 7 + 21 + - 1 * + + 81
----
-35

query I rowsort
SELECT ALL 77 + - + 77 + - + ( + ( 42 ) ) * - 45 - - 61 AS col0
----
1951

query II rowsort
SELECT ALL ( + 75 ), + 89 AS col1
----
75
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL + NULLIF ( ( + + 4 ), - CAST( 73 AS SIGNED ) ) + - 92
----
-88

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + NULLIF ( ( + + 4 ), - CAST ( 73 AS INTEGER ) ) + - 92
----
-88

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-495
SELECT ALL ( 36 ) AS col1, 16 DIV + 77
----
36
0

skipif mysql # not compatible
query II rowsort label-495
SELECT ALL ( 36 ) AS col1, 16 / + 77
----
36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - COUNT( * ) * + NULLIF ( ( + COUNT( * ) ), + 10 ) * + 61 + + - 11
----
-72

skipif mysql # not compatible
query I rowsort label-496
SELECT - COUNT ( * ) * + NULLIF ( ( + COUNT ( * ) ), + 10 ) * + 61 + + - 11
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT DISTINCT - NULLIF ( + 90, - - 74 ) DIV + 26 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - NULLIF ( + 90, - - 74 ) / + 26 AS col1
----
-3

query I rowsort
SELECT 20 AS col1
----
20

query I rowsort
SELECT DISTINCT + + 12
----
12

query I rowsort
SELECT DISTINCT + 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT - + 56 * + COALESCE ( COUNT( * ), COALESCE ( - + 34, - 53 DIV + + 31 + - 64 * - 7 ) ) * 49 - + - 52 + 42 - - 50
----
-2600

skipif mysql # not compatible
query I rowsort label-501
SELECT - + 56 * + COALESCE ( COUNT ( * ), COALESCE ( - + 34, - 53 / + + 31 + - 64 * - 7 ) ) * 49 - + - 52 + 42 - - 50
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL + + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + + COUNT ( * ) col1
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT CASE - COUNT( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT CASE - COUNT ( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - + 60 * 70 * + MIN( 33 ) - - + 57
----
-138543

skipif mysql # not compatible
query I rowsort label-506
SELECT - + 60 * 70 * + MIN ( 33 ) - - + 57
----
-138543

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL + - COUNT( DISTINCT + + 33 ) * - + 96 * 41 + - - ( 0 ) AS col1
----
3936

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL + - COUNT ( DISTINCT + + 33 ) * - + 96 * 41 + - - ( 0 ) AS col1
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + 97 * + COUNT( * ) + - 26 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-508
SELECT + 97 * + COUNT ( * ) + - 26 AS col0
----
71

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-510
SELECT - ( 73 ) + COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) AS col0, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-510
SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0
----
NULL
18

query I rowsort
SELECT + 0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT ALL + 48 / - CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), - 85 + MIN( ALL 47 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + 48 / - CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), - 85 + MIN ( ALL 47 ) ) AS col1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT ALL 23 DIV - - ( - 20 ) + - 64 + + 57
----
-8

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL 23 / - - ( - 20 ) + - 64 + + 57
----
-8

query I rowsort
SELECT ALL - 36 AS col2
----
-36

query I rowsort
SELECT DISTINCT 83 + + 67 AS col2
----
150

query I rowsort
SELECT ALL - 73 + 94
----
21

query I rowsort
SELECT 64 * 2 * - + 28
----
-3584

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

query I rowsort
SELECT - 66 AS col0
----
-66

query I rowsort
SELECT ALL 1 + - + 88 AS col0
----
-87

query II rowsort
SELECT - 21 AS col1, - 65 AS col1
----
-21
-65

query I rowsort
SELECT ALL 25 + + 26
----
51

query I rowsort
SELECT 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL 95 * CASE + + COUNT( * ) WHEN - + ( + + 11 ) THEN + 84 WHEN + 69 THEN COUNT( * ) + - 14 ELSE - 65 END * COUNT( * ) + + 62 AS col0
----
-6113

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL 95 * CASE + + COUNT ( * ) WHEN - + ( + + 11 ) THEN + 84 WHEN + 69 THEN COUNT ( * ) + - 14 ELSE - 65 END * COUNT ( * ) + + 62 AS col0
----
-6113

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ( - 67 ) - - MIN( ALL 56 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-528
SELECT ( - 67 ) - - MIN ( ALL 56 ) col0
----
-11

query II rowsort
SELECT - 30, + 30 AS col1
----
-30
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-530
SELECT ALL 89 - - 62 + CAST( NULL AS SIGNED ) AS col2, 45 + - 75 * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL 89 - - 62 + CAST ( NULL AS INTEGER ) AS col2, 45 + - 75 * + CAST ( NULL AS INTEGER )
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-531
SELECT ( + + COUNT ( * ) ) + + CAST ( COUNT ( * ) AS INTEGER ) + + 57
----
59

query I rowsort
SELECT 40 - 32 AS col0
----
8

query II rowsort
SELECT DISTINCT 46 col1, 55
----
46
55

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT ALL + 43 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + 43 / - 96 AS col1
----
0

query I rowsort
SELECT 50 - 91 - - 29 * - 76
----
-2245

query I rowsort
SELECT ALL 88 - - 41
----
129

query II rowsort
SELECT - 52, - 43 AS col0
----
-52
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-538
SELECT ALL 54 AS col1, - ( CAST( NULL AS DECIMAL ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL 54 AS col1, - ( CAST ( NULL AS REAL ) ) AS col2
----
54
NULL

query I rowsort
SELECT 30 + + ( 98 )
----
128

query II rowsort
SELECT DISTINCT 56 AS col2, 38 * - 4
----
56
-152

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

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT ALL + COUNT( * ), COALESCE ( MIN( + 30 ), - + ( - - 95 ) + 46 + + + 81 - - + 72 * - COUNT( * ), - + 78 ) * 75 - - CASE + 58 WHEN + ( + NULLIF ( ( - - 52 ), + MIN( DISTINCT - 51 ) ) ) * - + 61 + - - 5 THEN NULL WHEN + - 20 + - 20 - + - 78 * - + 44 THEN - 86 ELSE NULL END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL + COUNT ( * ), COALESCE ( MIN ( + 30 ), - + ( - - 95 ) + 46 + + + 81 - - + 72 * - COUNT ( * ), - + 78 ) * 75 - - CASE + 58 WHEN + ( + NULLIF ( ( - - 52 ), + MIN ( DISTINCT - 51 ) ) ) * - + 61 + - - 5 THEN NULL WHEN + - 20 + - 20 - + - 78 * - + 44 THEN - 86 ELSE NULL END AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL + CAST( + 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + CAST ( + 26 AS INTEGER ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT + 2 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-544
SELECT + 2 / + 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-545
SELECT 59 + + + 5 * + 64 * + - CAST( NULL AS SIGNED ) + - + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT 59 + + + 5 * + 64 * + - CAST ( NULL AS INTEGER ) + - + 49 col0
----
NULL

query II rowsort
SELECT - + 46, 94 AS col0
----
-46
94

query II rowsort
SELECT + - 89 AS col0, + 24
----
-89
24

onlyif mysql # aggregate syntax: 
query II rowsort label-548
SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2
----
22
-3808

skipif mysql # not compatible
query II rowsort label-548
SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT ( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2
----
22
-3808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-549
SELECT + 22 AS col2, CAST( ( - SUM( + ( 36 ) ) ) AS SIGNED ) AS col2
----
22
-36

skipif mysql # not compatible
query II rowsort label-549
SELECT + 22 AS col2, CAST ( ( - SUM ( + ( 36 ) ) ) AS INTEGER ) AS col2
----
22
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL NULLIF ( 29, COUNT( * ) ) + - 38 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL NULLIF ( 29, COUNT ( * ) ) + - 38 AS col0
----
-9

query I rowsort
SELECT DISTINCT - - ( - + 17 ) col2
----
-17

query I rowsort
SELECT ALL + ( 99 ) + + COALESCE ( + NULLIF ( 87, 84 ), + 43 ) AS col0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-554
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), 83 ) AS col1, ( - 29 )
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-554
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), 83 ) AS col1, ( - 29 )
----
NULL
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL - + 91 + + 76 + COUNT( * ) * 66 * + 88 col0
----
5793

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL - + 91 + + 76 + COUNT ( * ) * 66 * + 88 col0
----
5793

query I rowsort
SELECT DISTINCT 9 + + ( - NULLIF ( + 65, 44 ) )
----
-56

query I rowsort
SELECT DISTINCT - 35 + 19
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL + SUM( + 85 ) + ( + 59 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + SUM ( + 85 ) + ( + 59 ) AS col0
----
144

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

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

query I rowsort
SELECT ALL + + 91 + - 76 AS col0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 87 * - - 71 * + 6 * - 95 * - 88 + + ( - + NULLIF ( - + NULLIF ( + 44, COUNT( * ) ), + - 41 ) ) - - + 29 - + NULLIF ( - 35, 89 * - - 72 / COUNT( * ) ) AS col1
----
309838428

skipif mysql # not compatible
query I rowsort label-563
SELECT 87 * - - 71 * + 6 * - 95 * - 88 + + ( - + NULLIF ( - + NULLIF ( + 44, COUNT ( * ) ), + - 41 ) ) - - + 29 - + NULLIF ( - 35, 89 * - - 72 / COUNT ( * ) ) AS col1
----
309838428

query II rowsort
SELECT 9 * 78, + 78 * - 37 - - + 45 AS col2
----
702
-2841

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT( * ) - + - 3 AS col2
----
1825
45

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT ( * ) - + - 3 AS col2
----
1825
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST( + 87 AS SIGNED ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1
----
-103738

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST ( + 87 AS INTEGER ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1
----
-103738

query I rowsort
SELECT DISTINCT - 60
----
-60

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

query I rowsort
SELECT ALL - 35 col2
----
-35

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

onlyif mysql # aggregate syntax: 
query II rowsort label-571
SELECT DISTINCT MIN( ALL - - 40 ), COUNT( * ) + - 86 AS col2
----
40
-85

skipif mysql # not compatible
query II rowsort label-571
SELECT DISTINCT MIN ( ALL - - 40 ), COUNT ( * ) + - 86 AS col2
----
40
-85

query II rowsort
SELECT 89 * - 56 * - 8 * 82, - 84 AS col2
----
3269504
-84

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

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

query I rowsort
SELECT ALL 83 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT DISTINCT 83 DIV + 74
----
1

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT 83 / + 74
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT 8 + 44, + COUNT( * ) col0
----
52
1

skipif mysql # not compatible
query II rowsort label-576
SELECT 8 + 44, + COUNT ( * ) col0
----
52
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-577
SELECT COUNT( * ) DIV - 68, - CAST( + SUM( + 43 ) AS SIGNED ) + 33 + - 92 col1
----
0
-102

skipif mysql # not compatible
query II rowsort label-577
SELECT COUNT ( * ) / - 68, - CAST ( + SUM ( + 43 ) AS INTEGER ) + 33 + - 92 col1
----
0
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT ALL COUNT( * ) * 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL COUNT ( * ) * 57 col2
----
57

query I rowsort
SELECT 14 * - 46
----
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT ALL - 38 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - 38 / + - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL MIN( DISTINCT 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL MIN ( DISTINCT 45 ) AS col0
----
45

query I rowsort
SELECT DISTINCT - 29 * - 37 AS col2
----
1073

query I rowsort
SELECT ALL 50 col1
----
50

query I rowsort
SELECT ALL 52 AS col2
----
52

query I rowsort
SELECT DISTINCT 40 * + - 13
----
-520

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

query I rowsort
SELECT ALL - 25
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT 14 - NULLIF ( + COALESCE ( 13, - 82, - COUNT( * ) ), + - 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-589
SELECT 14 - NULLIF ( + COALESCE ( 13, - 82, - COUNT ( * ) ), + - 83 ) AS col2
----
1

query I rowsort
SELECT 73 * - 97 AS col0
----
-7081

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

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

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

query I rowsort
SELECT ALL 89 AS col1
----
89

query I rowsort
SELECT DISTINCT - 66 col0
----
-66

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-596
SELECT ALL 15 DIV - - 76 + ( 80 ) + + MIN( 40 ) col2
----
120

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL 15 / - - 76 + ( 80 ) + + MIN ( 40 ) col2
----
120

query I rowsort
SELECT ALL + 17 AS col0
----
17

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT + 43 * - 11 + 13 DIV + 44 * 95 + 66
----
-407

skipif mysql # not compatible
query I rowsort label-602
SELECT + 43 * - 11 + 13 / + 44 * 95 + 66
----
-407

query I rowsort
SELECT 55 col0
----
55

query II rowsort
SELECT ALL + CASE 72 WHEN + - 95 THEN 62 END AS col0, + 18 * 81 + - 95 + + 7
----
NULL
1370

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT + - MIN( DISTINCT - COALESCE ( - 81, + 37 + + + 20, + 97 ) ) * + ( - COUNT( * ) ) + 5 + - 97 + + + 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-605
SELECT + - MIN ( DISTINCT - COALESCE ( - 81, + 37 + + + 20, + 97 ) ) * + ( - COUNT ( * ) ) + 5 + - 97 + + + 6 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - - 24 * - 16 - + - COUNT( * )
----
-383

skipif mysql # not compatible
query I rowsort label-606
SELECT - - 24 * - 16 - + - COUNT ( * )
----
-383

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

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

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

query I rowsort
SELECT ALL - ( + 28 ) * - 85 AS col2
----
2380

query I rowsort
SELECT ALL - 54 * 89 - - 82 AS col0
----
-4724

query I rowsort
SELECT DISTINCT - 60 * + - 39
----
2340

query II rowsort
SELECT - 18 + - ( 50 ) AS col2, - 80 AS col0
----
-68
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT - 36 * + - CAST( - 87 AS SIGNED )
----
-3132

skipif mysql # not compatible
query I rowsort label-613
SELECT - 36 * + - CAST ( - 87 AS INTEGER )
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL - COUNT( * ) * - CASE - 93 WHEN - 45 + + COUNT( + 60 ) THEN 26 WHEN + 51 THEN NULL ELSE + + 20 END
----
20

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - COUNT ( * ) * - CASE - 93 WHEN - 45 + + COUNT ( + 60 ) THEN 26 WHEN + 51 THEN NULL ELSE + + 20 END
----
20

query I rowsort
SELECT - 47 + + 43
----
-4

query I rowsort
SELECT DISTINCT - ( - 39 ) * + 99
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT ( - MAX( - + 56 ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT ( - MAX ( - + 56 ) ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - 43 * + 50 * - COUNT( * )
----
2150

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - 43 * + 50 * - COUNT ( * )
----
2150

query I rowsort
SELECT ALL 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT 44 AS col0, 95 * + COUNT( + 70 ) AS col1
----
44
95

skipif mysql # not compatible
query II rowsort label-620
SELECT 44 AS col0, 95 * + COUNT ( + 70 ) AS col1
----
44
95

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM( 38 ) + + - 36 AS col1
----
-13
-88

skipif mysql # not compatible
query II rowsort label-621
SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM ( 38 ) + + - 36 AS col1
----
-13
-88

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

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

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

query I rowsort
SELECT + 70 * ( - 45 )
----
-3150

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

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

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

query I rowsort
SELECT 40 col2
----
40

query I rowsort
SELECT ALL + 62 + - 13 AS col0
----
49

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

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

query I rowsort
SELECT + + 81 + - 68 + 33 * COALESCE ( - + 53, + 24 ) + 2 * - 55 AS col1
----
-1846

query I rowsort
SELECT DISTINCT 1 col1
----
1

query I rowsort
SELECT ALL 4 * - 99
----
-396

query I rowsort
SELECT DISTINCT + 68 + 93 + - 99 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT ALL 13 + - 55 + - - 19 + - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL 13 + - 55 + - - 19 + - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 57 + + 32 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT ALL + 35 + 42 DIV - + NULLIF ( - 14, 0 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + 35 + 42 / - + NULLIF ( - 14, 0 ) AS col0
----
38

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

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

query I rowsort
SELECT + - 55 * 37
----
-2035

query I rowsort
SELECT + - 49 * + 49 AS col0
----
-2401

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

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

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

query I rowsort
SELECT - ( 0 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-643
SELECT - + 70 / - + 54 + MIN( - - CAST( NULL AS SIGNED ) ) * + - 48 * - CASE - 43 WHEN - COUNT( * ) + 93 THEN NULL ELSE CASE + + COUNT( * ) WHEN NULLIF ( 24, + 41 ) THEN 15 * - 28 + + + COUNT( * ) + 31 * 90 ELSE + + COUNT( * ) * COUNT( * ) / - 52 / + COUNT( * ) END END * - 97 / + + CAST( NULL AS SIGNED ) + COUNT( * ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-643
SELECT - + 70 / - + 54 + MIN ( - - CAST ( NULL AS INTEGER ) ) * + - 48 * - CASE - 43 WHEN - COUNT ( * ) + 93 THEN NULL ELSE CASE + + COUNT ( * ) WHEN NULLIF ( 24, + 41 ) THEN 15 * - 28 + + + COUNT ( * ) + 31 * 90 ELSE + + COUNT ( * ) * COUNT ( * ) / - 52 / + COUNT ( * ) END END * - 97 / + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 21
----
NULL

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

query I rowsort
SELECT + 46 * - 57 AS col1
----
-2622

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

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

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

query I rowsort
SELECT ALL 72 * 32
----
2304

query I rowsort
SELECT ( 58 ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-651
SELECT ALL + 54, CAST( NULL AS SIGNED ) + + ( - NULLIF ( + 54, + 69 / - CAST( - 13 AS SIGNED ) + - 65 * - SUM( DISTINCT 24 ) ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-651
SELECT ALL + 54, CAST ( NULL AS INTEGER ) + + ( - NULLIF ( + 54, + 69 / - CAST ( - 13 AS INTEGER ) + - 65 * - SUM ( DISTINCT 24 ) ) ) AS col2
----
54
NULL

query I rowsort
SELECT + ( 37 ) AS col1
----
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT - 36 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT - 36 / - 65 AS col0
----
0

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

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

query I rowsort
SELECT + 7 - - 97 AS col0
----
104

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

query I rowsort
SELECT + 83 * + + 93 AS col2
----
7719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT ALL + CAST( + 67 AS SIGNED ) / + CAST( - CASE - 24 WHEN + + 10 THEN - 95 WHEN + 41 THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + CAST ( + 67 AS INTEGER ) / + CAST ( - CASE - 24 WHEN + + 10 THEN - 95 WHEN + 41 THEN NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - 0 DIV 83 DIV + + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT - 0 / 83 / + + 63 AS col2
----
0

query II rowsort
SELECT ALL + 63 col1, 89
----
63
89

query II rowsort
SELECT + 38, 27 + - 78 col2
----
38
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-663
SELECT DISTINCT - 83 * CAST( + 35 AS SIGNED ) + + COALESCE ( + - 63, + - ( + - 96 ), - 40 * 11 ), + 43 + 59 + + - 21 * - 12 * + 14 col0
----
-2968
3630

skipif mysql # not compatible
query II rowsort label-663
SELECT DISTINCT - 83 * CAST ( + 35 AS INTEGER ) + + COALESCE ( + - 63, + - ( + - 96 ), - 40 * 11 ), + 43 + 59 + + - 21 * - 12 * + 14 col0
----
-2968
3630

query II rowsort
SELECT DISTINCT + 75, + 71 col1
----
75
71

query I rowsort
SELECT CASE - 68 WHEN - + 73 * + 76 THEN - - 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT COALESCE ( - 85, - 11 * + + NULLIF ( SUM( + + 90 ), - 79 ) + + - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-666
SELECT COALESCE ( - 85, - 11 * + + NULLIF ( SUM ( + + 90 ), - 79 ) + + - COUNT ( * ) )
----
-85

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

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

skipif mysql # not compatible
query I rowsort label-668
SELECT - COUNT ( * ) * - 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL + 1 * + 20 + 99 * + 91 + 61 * - MIN( + + 80 )
----
4149

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + 1 * + 20 + 99 * + 91 + 61 * - MIN ( + + 80 )
----
4149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT ALL 92 * + + MAX( - 93 ) + + - 37 DIV + + 79
----
-8556

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL 92 * + + MAX ( - 93 ) + + - 37 / + + 79
----
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT DISTINCT - COUNT( * ) * + - 42 + 47
----
89

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - COUNT ( * ) * + - 42 + 47
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT - - CAST( CAST( + - ( - 51 ) AS SIGNED ) AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-672
SELECT - - CAST ( CAST ( + - ( - 51 ) AS INTEGER ) AS INTEGER ) AS col0
----
51

query II rowsort
SELECT DISTINCT + 72 AS col2, 50 AS col1
----
72
50

query II rowsort
SELECT ALL - 46, - ( - 5 ) AS col1
----
-46
5

query I rowsort
SELECT ALL - 34 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT DISTINCT + - ( - MIN( 17 ) ) + CAST( + 35 AS SIGNED ) * + + 31 * - 50 + 30 - 25 AS col0
----
-54228

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT + - ( - MIN ( 17 ) ) + CAST ( + 35 AS INTEGER ) * + + 31 * - 50 + 30 - 25 AS col0
----
-54228

query I rowsort
SELECT ALL - 23 AS col2
----
-23

query I rowsort
SELECT 67 * - 14 col2
----
-938

onlyif mysql # aggregate syntax: 
query II rowsort label-679
SELECT + 80 - + 38, - COUNT( * ) col2
----
42
-1

skipif mysql # not compatible
query II rowsort label-679
SELECT + 80 - + 38, - COUNT ( * ) col2
----
42
-1

query I rowsort
SELECT 15 * - - 65 + - - 15
----
990

query I rowsort
SELECT - ( - 50 )
----
50

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

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

query I rowsort
SELECT ( - - 64 ) - - 28 * + 33 + + 5 + 61 + + 63 AS col0
----
1117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT - 7 + + NULLIF ( - + CAST( NULL AS SIGNED ), - 12 * - 5 - 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT - 7 + + NULLIF ( - + CAST ( NULL AS INTEGER ), - 12 * - 5 - 13 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-685
SELECT ALL 42 AS col1, 52 DIV + 11 AS col2
----
42
4

skipif mysql # not compatible
query II rowsort label-685
SELECT ALL 42 AS col1, 52 / + 11 AS col2
----
42
4

query I rowsort
SELECT DISTINCT 64 col1
----
64

query I rowsort
SELECT ALL 60 - + 54 + + + 30 + + + ( + 65 ) AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT DISTINCT + 12 * - 62 + - NULLIF ( + - 66, - - 83 ) + + - MAX( - 40 ) + + + 67 + + 42 * - 21 * 32 / - - CASE + CAST( + 78 AS SIGNED ) WHEN - COUNT( * ) THEN + - 45 ELSE NULL END + + ( + + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + 12 * - 62 + - NULLIF ( + - 66, - - 83 ) + + - MAX ( - 40 ) + + + 67 + + 42 * - 21 * 32 / - - CASE + CAST ( + 78 AS INTEGER ) WHEN - COUNT ( * ) THEN + - 45 ELSE NULL END + + ( + + 47 )
----
NULL

query I rowsort
SELECT DISTINCT + 96 * 61 AS col2
----
5856

query II rowsort
SELECT ALL - - 87 AS col2, - 50
----
87
-50

query I rowsort
SELECT ALL - 63 - - - ( + ( - 26 ) ) AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-692
SELECT ALL 31 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL 31 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT NULLIF ( - + 1, 78 * + 42 * ( + 88 ) * - + MAX( - 35 ) / 43 * - + COUNT( * ) ) + - - COUNT( * ) + - 93 * - 37 AS col0
----
3441

skipif mysql # not compatible
query I rowsort label-693
SELECT NULLIF ( - + 1, 78 * + 42 * ( + 88 ) * - + MAX ( - 35 ) / 43 * - + COUNT ( * ) ) + - - COUNT ( * ) + - 93 * - 37 AS col0
----
3441

query I rowsort
SELECT 89 * - + 72
----
-6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT COALESCE ( + + 88, + 0 * 3 ) * COALESCE ( - 0, - + 19 * 82 + + - ( - 35 ) / - 30 * - + COUNT( * ) ) - - - CASE + CAST( NULL AS SIGNED ) WHEN - ( + 57 ) THEN - 46 * - ( - 85 ) END * - 49 - + - 75 + 68 * + COUNT( * ) / MAX( + - 49 ) + + + NULLIF ( + - 86, + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT COALESCE ( + + 88, + 0 * 3 ) * COALESCE ( - 0, - + 19 * 82 + + - ( - 35 ) / - 30 * - + COUNT ( * ) ) - - - CASE + CAST ( NULL AS INTEGER ) WHEN - ( + 57 ) THEN - 46 * - ( - 85 ) END * - 49 - + - 75 + 68 * + COUNT ( * ) / MAX ( + - 49 ) + + + NULLIF ( + - 86, + 84 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT COUNT( + 44 ) * + 0 + - - 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-697
SELECT COUNT ( + 44 ) * + 0 + - - 48 AS col0
----
48

query I rowsort
SELECT 18 + 83 AS col2
----
101

query I rowsort
SELECT ALL - 89 AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT DISTINCT CAST( - 83 AS SIGNED ) * 8
----
-664

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT CAST ( - 83 AS INTEGER ) * 8
----
-664

query I rowsort
SELECT ALL + 79 + - 93 + - 13
----
-27

query I rowsort
SELECT ALL - 25 + 59
----
34

query I rowsort
SELECT ALL - 79 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT + 63 * 29 + + CAST( - - 86 AS SIGNED ) AS col2
----
1913

skipif mysql # not compatible
query I rowsort label-704
SELECT + 63 * 29 + + CAST ( - - 86 AS INTEGER ) AS col2
----
1913

query I rowsort
SELECT ALL NULLIF ( + 39, + 21 ) + + + 70 + - + 56 - 70 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT COUNT( * ) + COUNT( * ) AS col0, 34
----
2
34

skipif mysql # not compatible
query II rowsort label-706
SELECT COUNT ( * ) + COUNT ( * ) AS col0, 34
----
2
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT 78 + - 72 DIV + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-707
SELECT 78 + - 72 / + COUNT ( * ) col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-708
SELECT ALL 16 + 55 * - 78 + - - CAST( NULL AS SIGNED ) - - COUNT( * ) + - ( 90 ) + - COUNT( * ) + COUNT( DISTINCT + 84 ), 59 * - CASE - COUNT( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT( * ), 6 ) + 58 * + COUNT( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - COUNT( DISTINCT + 36 ) / - ( 24 ) + - COUNT( * ) THEN + 38 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-708
SELECT ALL 16 + 55 * - 78 + - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - ( 90 ) + - COUNT ( * ) + COUNT ( DISTINCT + 84 ), 59 * - CASE - COUNT ( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT ( * ), 6 ) + 58 * + COUNT ( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - COUNT ( DISTINCT + 36 ) / - ( 24 ) + - COUNT ( * ) THEN + 38 END AS col2
----
NULL
NULL

query I rowsort
SELECT + 19 col0
----
19

query I rowsort
SELECT ALL - 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT 63 + 38 AS col0
----
101

query II rowsort
SELECT DISTINCT + 43 + 22 AS col2, - 92 + - 78 * 28 * - 51
----
65
111292

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL - + COUNT( * ) * + 91 + + 70
----
-21

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - + COUNT ( * ) * + 91 + + 70
----
-21

query I rowsort
SELECT + 12 + - + 29
----
-17

query I rowsort
SELECT DISTINCT 81 - - - 86
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT CASE - MAX( + 8 ) WHEN - - 57 * - CAST( NULL AS SIGNED ) THEN + 36 * 73 * + 94 + 44 + + 45 + - 2 - CAST( - 83 AS SIGNED ) WHEN + 77 THEN NULL END + - 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT CASE - MAX ( + 8 ) WHEN - - 57 * - CAST ( NULL AS INTEGER ) THEN + 36 * 73 * + 94 + 44 + + 45 + - 2 - CAST ( - 83 AS INTEGER ) WHEN + 77 THEN NULL END + - 17 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT - CAST( - 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-717
SELECT - CAST ( - 85 AS INTEGER )
----
85

query I rowsort
SELECT ALL 14 AS col0
----
14

query I rowsort
SELECT - 78 + - 55 col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( * ) * + - 83 + - - 9 * 40 col2
----
277

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( * ) * + - 83 + - - 9 * 40 col2
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - MIN( ALL - + ( + 66 ) ) * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-721
SELECT - MIN ( ALL - + ( + 66 ) ) * - COUNT ( * )
----
-66

query I rowsort
SELECT - 61 - - 85 + + 83
----
107

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

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

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

query I rowsort
SELECT - + 7
----
-7

query I rowsort
SELECT ALL 37 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-727
SELECT - COUNT( * ) * + - 44, + 95 - - 21 * 57 DIV + 95 AS col0
----
44
107

skipif mysql # not compatible
query II rowsort label-727
SELECT - COUNT ( * ) * + - 44, + 95 - - 21 * 57 / + 95 AS col0
----
44
107

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

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

query II rowsort
SELECT + 28 + 31 AS col1, + 22 - + 53 AS col0
----
59
-31

query I rowsort
SELECT ALL + 67 * - 55 * - - 61 * 24 + 2 AS col0
----
-5394838

onlyif mysql # aggregate syntax: 
query II rowsort label-731
SELECT ALL + SUM( + 7 ), + 52 * 80 col1
----
7
4160

skipif mysql # not compatible
query II rowsort label-731
SELECT ALL + SUM ( + 7 ), + 52 * 80 col1
----
7
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT NULLIF ( - COUNT( * ), 10 * - + 23 ) + + + 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-732
SELECT NULLIF ( - COUNT ( * ), 10 * - + 23 ) + + + 21 AS col2
----
20

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

query I rowsort
SELECT ALL 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + MAX( DISTINCT - + 92 ) * - 8 AS col1
----
736

skipif mysql # not compatible
query I rowsort label-735
SELECT + MAX ( DISTINCT - + 92 ) * - 8 AS col1
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + 55 + - ( ( - MIN( - 21 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-736
SELECT + 55 + - ( ( - MIN ( - 21 ) ) )
----
34

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT 7 DIV - MAX( DISTINCT 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT 7 / - MAX ( DISTINCT 94 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT 15 DIV 60 * - MIN( ALL - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT 15 / 60 * - MIN ( ALL - 14 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT - 78 * 5 + - + 95 + 92 * + + 44 * MIN( ALL + 39 ) + - MAX( ALL - + 74 ) - - SUM( - 67 ) + 58 AS col2
----
157452

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - 78 * 5 + - + 95 + 92 * + + 44 * MIN ( ALL + 39 ) + - MAX ( ALL - + 74 ) - - SUM ( - 67 ) + 58 AS col2
----
157452

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-741
SELECT ALL + 95 * - 58 + + 40 * CAST( NULL AS SIGNED ) + - 42 + 86 AS col0, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-741
SELECT ALL + 95 * - 58 + + 40 * CAST ( NULL AS INTEGER ) + - 42 + 86 AS col0, 83 AS col1
----
NULL
83

query I rowsort
SELECT DISTINCT 54 * - 98
----
-5292

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT 27 DIV - ( 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-743
SELECT 27 / - ( 70 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-744
SELECT ALL - ( + 6 ) * + - CAST( NULL AS SIGNED ) / + CAST( + MAX( 96 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - ( + 6 ) * + - CAST ( NULL AS INTEGER ) / + CAST ( + MAX ( 96 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT SUM( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-745
SELECT SUM ( - 35 ) AS col2
----
-35

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

skipif mysql # not compatible
query I rowsort label-746
SELECT MAX ( ALL 68 )
----
68

query I rowsort
SELECT ALL - 95 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL - 29 * + 39 + - COUNT( * ) * 59
----
-1190

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL - 29 * + 39 + - COUNT ( * ) * 59
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT COUNT( * ) - + 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( * ) - + 65 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT + SUM( + + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-750
SELECT + SUM ( + + 88 ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT 43 - + 75 DIV + 18
----
39

skipif mysql # not compatible
query I rowsort label-751
SELECT 43 - + 75 / + 18
----
39

query II rowsort
SELECT DISTINCT - 17 AS col0, + 91 AS col0
----
-17
91

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL - ( + 55 ) + + COUNT( * ) - + - 9
----
-45

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - ( + 55 ) + + COUNT ( * ) - + - 9
----
-45

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

onlyif mysql # aggregate syntax: 
query II rowsort label-755
SELECT ALL + COUNT( * ) AS col0, + 54 * + - 60 + COALESCE ( - 99, + 92, - SUM( DISTINCT + 90 ) ) - - 58 col1
----
1
-3281

skipif mysql # not compatible
query II rowsort label-755
SELECT ALL + COUNT ( * ) AS col0, + 54 * + - 60 + COALESCE ( - 99, + 92, - SUM ( DISTINCT + 90 ) ) - - 58 col1
----
1
-3281

query I rowsort
SELECT + 76 * - 55 + 91
----
-4089

onlyif mysql # aggregate syntax: 
query II rowsort label-757
SELECT + + 44 - - + 23 - + + 23 * - ( COUNT( DISTINCT - 70 ) ) AS col1, 67
----
90
67

skipif mysql # not compatible
query II rowsort label-757
SELECT + + 44 - - + 23 - + + 23 * - ( COUNT ( DISTINCT - 70 ) ) AS col1, 67
----
90
67

query I rowsort
SELECT ALL + NULLIF ( + 52, - NULLIF ( 71, - 5 ) * + 37 ) * - 23
----
-1196

query I rowsort
SELECT + 40 * - 5 * - + 88 + 18 * 12 AS col1
----
17816

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT + 9 AS col2, - COALESCE ( + 12, + + 19 ) + + 45 * + + COUNT( + - 92 )
----
9
33

skipif mysql # not compatible
query II rowsort label-760
SELECT + 9 AS col2, - COALESCE ( + 12, + + 19 ) + + 45 * + + COUNT ( + - 92 )
----
9
33

query I rowsort
SELECT ALL 79 * 14
----
1106

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

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL MIN ( ALL 40 )
----
40

query I rowsort
SELECT - 81 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT - 36 * - 3 + - 93 + - + 63 DIV - 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-764
SELECT - 36 * - 3 + - 93 + - + 63 / - 1 AS col1
----
78

query I rowsort
SELECT - NULLIF ( - + 96, - - ( + - 0 ) * - 53 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT - - COUNT( - - 51 ) + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-766
SELECT - - COUNT ( - - 51 ) + 54 AS col1
----
55

query II rowsort
SELECT DISTINCT + 56 - + 80 * 54, 31 AS col2
----
-4264
31

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

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

query I rowsort
SELECT DISTINCT - 47
----
-47

query I rowsort
SELECT DISTINCT - 35 AS col1
----
-35

query II rowsort
SELECT DISTINCT - 96 col0, - 61
----
-96
-61

query I rowsort
SELECT - + 99
----
-99

query I rowsort
SELECT ALL 77 AS col0
----
77

query I rowsort
SELECT + 83 * - - 35 AS col2
----
2905

query I rowsort
SELECT - 53 * - + 64
----
3392

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

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - 71 + - MAX ( ALL - ( - 67 ) ) + - 79 AS col2
----
-217

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

query I rowsort
SELECT + 7 + - - 87
----
94

query I rowsort
SELECT ALL - ( 75 ) * + + ( + 13 ) + - 61
----
-1036

query I rowsort
SELECT ALL 89 + - - NULLIF ( + - 78, - - 87 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT COUNT( * ) + - - 27 + - 57
----
-29

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT COUNT ( * ) + - - 27 + - 57
----
-29

query I rowsort
SELECT ALL + ( 8 ) + COALESCE ( 41, - 47 ) AS col2
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL - COUNT( ALL + 35 ) * - 86 * + 71
----
6106

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - COUNT ( ALL + 35 ) * - 86 * + 71
----
6106

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT 25 DIV 50 - + - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-785
SELECT 25 / 50 - + - 26 AS col1
----
26

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

onlyif mysql # aggregate syntax: 
query II rowsort label-787
SELECT - COUNT( * ) + COUNT( * ), + 97 AS col0
----
0
97

skipif mysql # not compatible
query II rowsort label-787
SELECT - COUNT ( * ) + COUNT ( * ), + 97 AS col0
----
0
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + MIN( - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-789
SELECT + MIN ( - 38 ) AS col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-790
SELECT ( - SUM ( + 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL - 85 * 37 * - 20 + - 79 * + NULLIF ( - - MIN( DISTINCT - 6 ), - 81 * 51 )
----
63374

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL - 85 * 37 * - 20 + - 79 * + NULLIF ( - - MIN ( DISTINCT - 6 ), - 81 * 51 )
----
63374

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT 25 * 93 + 33 * + + COUNT( * ) * + 96
----
5493

skipif mysql # not compatible
query I rowsort label-792
SELECT 25 * 93 + 33 * + + COUNT ( * ) * + 96
----
5493

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL - 53 DIV - - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - 53 / - - 72 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT - ( - 31 ) DIV + 22 + - 97 + 39
----
-57

skipif mysql # not compatible
query I rowsort label-794
SELECT - ( - 31 ) / + 22 + - 97 + 39
----
-57

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

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 24, + 45 ) * ( - 59 ) - - 67 + 46 AS col1
----
-1303

query II rowsort
SELECT DISTINCT + ( + 65 ) AS col0, + 43 + 83 AS col0
----
65
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-798
SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-163
-43

skipif mysql # not compatible
query II rowsort label-798
SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-163
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-799
SELECT - COUNT( * ) * + COUNT( * ) * 36 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT - COUNT ( * ) * + COUNT ( * ) * 36 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT ALL + CAST( NULL AS SIGNED ) * - 19 * - ( - + 80 ) - + 55 - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + CAST ( NULL AS INTEGER ) * - 19 * - ( - + 80 ) - + 55 - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - 38 * + - ( - 58 ) - - + MAX( ALL + 75 )
----
-2129

skipif mysql # not compatible
query I rowsort label-801
SELECT - 38 * + - ( - 58 ) - - + MAX ( ALL + 75 )
----
-2129

query I rowsort
SELECT + COALESCE ( 10, 93 )
----
10

query I rowsort
SELECT - - 71 + + + 43 AS col2
----
114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT - + ( - 32 ) + COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-805
SELECT - + ( - 32 ) + COUNT ( * ) col2
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT COUNT( * ) * - - 40 * + 25 + 50 + ( 0 )
----
1050

skipif mysql # not compatible
query I rowsort label-807
SELECT COUNT ( * ) * - - 40 * + 25 + 50 + ( 0 )
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL - NULLIF ( - 75, + - 31 * + 9 * + 17 + - + COUNT( * ) + + ( - 96 ) * - - 57 )
----
75

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - NULLIF ( - 75, + - 31 * + 9 * + 17 + - + COUNT ( * ) + + ( - 96 ) * - - 57 )
----
75

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

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

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

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

query I rowsort
SELECT - 89 AS col0
----
-89

query I rowsort
SELECT - 11 AS col2
----
-11

query I rowsort
SELECT + 23 + - + 62 * 20 - + + 54 AS col1
----
-1271

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT + + 6 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT + + 6 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT + + SUM( ALL 80 ) + 77 AS col1
----
157

skipif mysql # not compatible
query I rowsort label-817
SELECT + + SUM ( ALL 80 ) + 77 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT + - SUM( + 8 ) - - 97 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-818
SELECT + - SUM ( + 8 ) - - 97 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT 15 * + - 93 * + + ( - COUNT( * ) ) - + - SUM( DISTINCT + NULLIF ( + 35, + + 65 ) )
----
1430

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT 15 * + - 93 * + + ( - COUNT ( * ) ) - + - SUM ( DISTINCT + NULLIF ( + 35, + + 65 ) )
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-820
SELECT ALL - 26 + - CAST( + + COUNT( * ) AS SIGNED ) * 99 * + COUNT( * ) * - 6 AS col1
----
568

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - 26 + - CAST ( + + COUNT ( * ) AS INTEGER ) * 99 * + COUNT ( * ) * - 6 AS col1
----
568

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

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

query I rowsort
SELECT ALL + 15 + 1 - - 34 * + 34 * + 99 AS col1
----
114460

query I rowsort
SELECT ALL + ( NULLIF ( - + 79, 32 + ( - - 19 ) ) )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT + 84 DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-824
SELECT + 84 / 16
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-825
SELECT ALL COUNT( + 97 ) + - 6 AS col0, + COUNT( * ) DIV + + COUNT( * ) AS col1
----
-5
1

skipif mysql # not compatible
query II rowsort label-825
SELECT ALL COUNT ( + 97 ) + - 6 AS col0, + COUNT ( * ) / + + COUNT ( * ) AS col1
----
-5
1

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

query I rowsort
SELECT DISTINCT 59 AS col1
----
59

query I rowsort
SELECT ALL - ( + 31 ) + + + 15
----
-16

query I rowsort
SELECT + 78 + - - 82 AS col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT DISTINCT 1 + - NULLIF ( 15, ( - + 43 ) ) col0, SUM( DISTINCT - 49 ) * + - COUNT( * ) * NULLIF ( - 96, - 18 )
----
-14
-4704

skipif mysql # not compatible
query II rowsort label-830
SELECT DISTINCT 1 + - NULLIF ( 15, ( - + 43 ) ) col0, SUM ( DISTINCT - 49 ) * + - COUNT ( * ) * NULLIF ( - 96, - 18 )
----
-14
-4704

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

query I rowsort
SELECT - 30 + - - 31
----
1

query I rowsort
SELECT ALL 36 + 92 * + 21 AS col0
----
1968

query I rowsort
SELECT DISTINCT - 75 + 24 AS col0
----
-51

query I rowsort
SELECT ALL - 66 * + 1
----
-66

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

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

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - SUM ( - 32 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT + 90 col0, COALESCE ( + + 23, + 63 * COUNT( * ) * - - 54 - 36 )
----
90
23

skipif mysql # not compatible
query II rowsort label-838
SELECT + 90 col0, COALESCE ( + + 23, + 63 * COUNT ( * ) * - - 54 - 36 )
----
90
23

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL - COUNT( - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - COUNT ( - 19 ) AS col1
----
-1

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

skipif mysql # not compatible
query II rowsort label-840
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * )
----
-1
1

query I rowsort
SELECT 68 * + - 85 AS col2
----
-5780

query I rowsort
SELECT ALL 70 * - 52
----
-3640

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

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

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

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

query I rowsort
SELECT DISTINCT - 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT + 91 * - CASE + 18 WHEN + + SUM( ALL 57 ) THEN - + 24 * + + 50 + 45 - 62 + - CASE + + 58 WHEN + COUNT( * ) * - 36 * + 95 * + 71 + 36 THEN NULL ELSE - + 48 END * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT + 91 * - CASE + 18 WHEN + + SUM ( ALL 57 ) THEN - + 24 * + + 50 + 45 - 62 + - CASE + + 58 WHEN + COUNT ( * ) * - 36 * + 95 * + 71 + 36 THEN NULL ELSE - + 48 END * - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT 36 - + 70 AS col2
----
-34

query II rowsort
SELECT + COALESCE ( - 89, 81 ) - + 90 + - 52 AS col0, 89 AS col1
----
-231
89

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

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + COUNT ( * ) / - - 66 col2
----
0

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

query I rowsort
SELECT DISTINCT - 48 * 31 AS col2
----
-1488

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-854
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN 22 + 80 - COUNT( * ) - 23 + - 33 / ( - 12 ) * 42 - + ( - 90 ) THEN + 59 WHEN - + AVG ( + + 79 ) THEN NULL END + - COUNT( DISTINCT - 21 ) + - 40 + + + 68 + CASE CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + - 31 + - CAST( 91 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN 22 + 80 - COUNT ( * ) - 23 + - 33 / ( - 12 ) * 42 - + ( - 90 ) THEN + 59 WHEN - + AVG ( + + 79 ) THEN NULL END + - COUNT ( DISTINCT - 21 ) + - 40 + + + 68 + CASE CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + - 31 + - CAST ( 91 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 38 * + 44 * 7 AS col0
----
11704

query I rowsort
SELECT + ( - - 98 ) * 77
----
7546

query I rowsort
SELECT ALL - - 33 + 90 * + 48 + + 78
----
4431

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT - CASE - + 87 WHEN COALESCE ( - - COUNT( * ), - - 5, - 41 ) THEN + + 88 ELSE - + 37 * - 4 END * 75 - + 39 AS col2
----
-11139

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - CASE - + 87 WHEN COALESCE ( - - COUNT ( * ), - - 5, - 41 ) THEN + + 88 ELSE - + 37 * - 4 END * 75 - + 39 AS col2
----
-11139

query I rowsort
SELECT + 65 + + - 34 * 97
----
-3233

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

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT ALL - 44 + 27 + + COUNT( * ) AS col0, ( - 31 ) AS col0
----
-16
-31

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL - 44 + 27 + + COUNT ( * ) AS col0, ( - 31 ) AS col0
----
-16
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT COUNT( DISTINCT - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT COUNT ( DISTINCT - 78 )
----
1

query I rowsort
SELECT ALL 54 col1
----
54

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

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

query II rowsort
SELECT - 7, 15 AS col0
----
-7
15

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT ALL 8 AS col1, + 97 + 49 + + 71 + - + 60 * - - COUNT( * ) AS col0
----
8
157

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL 8 AS col1, + 97 + 49 + + 71 + - + 60 * - - COUNT ( * ) AS col0
----
8
157

query II rowsort
SELECT - 10, 5 AS col1
----
-10
5

query I rowsort
SELECT ALL 60 + + + 82
----
142

query III rowsort
SELECT 76 AS col2, 95 AS col1, - 11 AS col1
----
76
95
-11

query I rowsort
SELECT ALL ( - 92 ) + NULLIF ( - - 5, + 27 )
----
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-873
SELECT ALL 75, + 12 DIV - CAST( - ( + 42 ) AS SIGNED ) * + + 84 AS col1
----
75
0

skipif mysql # not compatible
query II rowsort label-873
SELECT ALL 75, + 12 / - CAST ( - ( + 42 ) AS INTEGER ) * + + 84 AS col1
----
75
0

query I rowsort
SELECT ALL + 62 - - 65 + + - 41 + + 78
----
164

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

query I rowsort
SELECT 52 + + COALESCE ( + 91, 66 ) AS col2
----
143

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

skipif mysql # not compatible
query II rowsort label-877
SELECT 75, - COUNT ( + 59 ) AS col2
----
75
-1

query II rowsort
SELECT ALL 86 AS col1, 81
----
86
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT ALL + COUNT( - 9 ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + COUNT ( - 9 ) / - 53
----
0

query I rowsort
SELECT 49 * - ( - 58 ) col1
----
2842

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

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

query I rowsort
SELECT 87 + + + 49 + - - 38 + - ( - - 54 ) * 7
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT ALL 22 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 22 / + - 83
----
0

query I rowsort
SELECT + 2 * - 95 + + 51
----
-139

query I rowsort
SELECT 15 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT ALL CAST( + - 43 AS SIGNED ) * - - MIN( - 39 )
----
1677

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL CAST ( + - 43 AS INTEGER ) * - - MIN ( - 39 )
----
1677

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

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

query I rowsort
SELECT 51 + 33
----
84

query II rowsort
SELECT + - 82, + 6 AS col2
----
-82
6

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - ( 41 ) + ( - - COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-891
SELECT - ( 41 ) + ( - - COUNT ( * ) )
----
-40

query I rowsort
SELECT ALL + + 11 * 80 AS col1
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-893
SELECT DISTINCT - 99 AS col0, 4 * - NULLIF ( + ( + MIN( ALL CAST( + 20 AS SIGNED ) ) ), - - 80 * + COUNT( * ) ) AS col2, 37
----
-99
-80
37

skipif mysql # not compatible
query III rowsort label-893
SELECT DISTINCT - 99 AS col0, 4 * - NULLIF ( + ( + MIN ( ALL CAST ( + 20 AS INTEGER ) ) ), - - 80 * + COUNT ( * ) ) AS col2, 37
----
-99
-80
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT + 15 * - NULLIF ( + + 84, - ( - - 12 ) ) + ( - 58 ) * + ( - NULLIF ( + 5, CAST( + 71 AS SIGNED ) ) )
----
-970

skipif mysql # not compatible
query I rowsort label-894
SELECT + 15 * - NULLIF ( + + 84, - ( - - 12 ) ) + ( - 58 ) * + ( - NULLIF ( + 5, CAST ( + 71 AS INTEGER ) ) )
----
-970

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

query I rowsort
SELECT 51 * - 44 AS col2
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + COUNT( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + 57 * CASE + 74 WHEN 2 THEN NULL WHEN + - 98 + + 51 THEN 5 * SUM( - ( + 70 ) ) + + 81 ELSE NULL END + + NULLIF ( - 15, + 77 ) ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-897
SELECT + COUNT ( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + 57 * CASE + 74 WHEN 2 THEN NULL WHEN + - 98 + + 51 THEN 5 * SUM ( - ( + 70 ) ) + + 81 ELSE NULL END + + NULLIF ( - 15, + 77 ) ) ) )
----
-44

query II rowsort
SELECT - 73 AS col0, 63 * + - ( + 58 ) AS col0
----
-73
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL - - NULLIF ( + 34, + 55 / MIN( DISTINCT 27 ) + + 43 ) + + + 93 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - - NULLIF ( + 34, + 55 / MIN ( DISTINCT 27 ) + + 43 ) + + + 93 AS col1
----
127

query I rowsort
SELECT - 45 + + - 82 * 94
----
-7753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT 30 + + + 45 * - 96 + - CAST( - - 27 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT 30 + + + 45 * - 96 + - CAST ( - - 27 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 58, + 18 * + 0 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT ALL CAST( NULL AS SIGNED ) + - 88 / + 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL CAST ( NULL AS INTEGER ) + - 88 / + 40 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT DISTINCT - + 37 AS col0, 0 * + COUNT( ALL 33 ) AS col1
----
-37
0

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT - + 37 AS col0, 0 * + COUNT ( ALL 33 ) AS col1
----
-37
0

query I rowsort
SELECT ALL - 92 + 52
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT - + SUM( ALL + 10 ) + 60 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - + SUM ( ALL + 10 ) + 60 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT - 8 col1, 26 * MAX( DISTINCT + 23 ) col1
----
-8
598

skipif mysql # not compatible
query II rowsort label-908
SELECT - 8 col1, 26 * MAX ( DISTINCT + 23 ) col1
----
-8
598

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL COALESCE ( + 23, - COUNT( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL COALESCE ( + 23, - COUNT ( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0
----
23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT ALL + CASE - MAX( 43 ) WHEN 85 * + NULLIF ( 60, - 25 ) * - 30 THEN NULL ELSE - COUNT( * ) END - + 59 + + 89 * + CAST( - 61 AS SIGNED ) AS col1
----
-5489

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + CASE - MAX ( 43 ) WHEN 85 * + NULLIF ( 60, - 25 ) * - 30 THEN NULL ELSE - COUNT ( * ) END - + 59 + + 89 * + CAST ( - 61 AS INTEGER ) AS col1
----
-5489

query I rowsort
SELECT ALL - 39 * + - 77 * + 26 AS col2
----
78078

query I rowsort
SELECT 17 * + 43
----
731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT 53 + CAST( NULL AS SIGNED ) + CASE ( + 23 ) WHEN + + 82 + + - COUNT( * ) THEN 64 END * + + COUNT( * ) * + + AVG ( ALL + 30 ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT 53 + CAST ( NULL AS INTEGER ) + CASE ( + 23 ) WHEN + + 82 + + - COUNT ( * ) THEN 64 END * + + COUNT ( * ) * + + AVG ( ALL + 30 ) * - 28
----
NULL

query I rowsort
SELECT 24 + 27 * + 3
----
105

query I rowsort
SELECT ALL CASE - + 95 WHEN + 1 THEN + + 46 / 6 + - 70 * + 44 WHEN - - 81 THEN NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 70, - ( + 54 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT CASE + SUM( ALL - ( - 3 ) ) WHEN - - 94 THEN - 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT CASE + SUM ( ALL - ( - 3 ) ) WHEN - - 94 THEN - 84 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT COUNT ( DISTINCT - 1 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-920
SELECT DISTINCT 0 * COALESCE ( COUNT( * ), ( + 1 ) DIV 20 ) * + 35 * 25 * + 75 * - + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT 0 * COALESCE ( COUNT ( * ), ( + 1 ) / 20 ) * + 35 * 25 * + 75 * - + 47 AS col0
----
0

query I rowsort
SELECT DISTINCT 33
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT ALL + 31 DIV ( + - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + 31 / ( + - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - CASE + 93 WHEN 72 * 89 THEN - 32 - 75 + - COUNT( * ) ELSE 28 END * - - COUNT( * ) + 43 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-923
SELECT - CASE + 93 WHEN 72 * 89 THEN - 32 - 75 + - COUNT ( * ) ELSE 28 END * - - COUNT ( * ) + 43 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-924
SELECT DISTINCT 82 * NULLIF ( - 87, + 10 / + CASE - 46 WHEN + 93 + COUNT( DISTINCT + 16 ) THEN NULL WHEN + 64 * - 26 * - - 69 * + CAST( + + SUM( ALL ( - 83 ) ) AS DECIMAL ) * - - 99 THEN COALESCE ( - + 74, - + MIN( - - 1 ) * COALESCE ( - 97, - COUNT( * ), - 70 * - 90 ) * + 8 + 99 + 12, + 50 ) / + 67 + + 29 - - 14 ELSE NULL END * - + 4 - - 19 ) AS col1, 50 + + COUNT( * )
----
-7134
51

skipif mysql # not compatible
query II rowsort label-924
SELECT DISTINCT 82 * NULLIF ( - 87, + 10 / + CASE - 46 WHEN + 93 + COUNT ( DISTINCT + 16 ) THEN NULL WHEN + 64 * - 26 * - - 69 * + CAST ( + + SUM ( ALL ( - 83 ) ) AS REAL ) * - - 99 THEN COALESCE ( - + 74, - + MIN ( - - 1 ) * COALESCE ( - 97, - COUNT ( * ), - 70 * - 90 ) * + 8 + 99 + 12, + 50 ) / + 67 + + 29 - - 14 ELSE NULL END * - + 4 - - 19 ) AS col1, 50 + + COUNT ( * )
----
-7134
51

query I rowsort
SELECT + 11 + + 98 AS col2
----
109

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + SUM( ALL - + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-927
SELECT + SUM ( ALL - + 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-928
SELECT ALL + ( 11 ) AS col2, + CAST( NULL AS DECIMAL )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL + ( 11 ) AS col2, + CAST ( NULL AS REAL )
----
11
NULL

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

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

query I rowsort
SELECT ALL + + 70
----
70

query I rowsort
SELECT ALL + + 10
----
10

query I rowsort
SELECT DISTINCT - 5 * + - 16 + + 84 + - + 3 + 7
----
168

query I rowsort
SELECT ALL + - 93
----
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT + ( + CASE + - 92 WHEN 23 THEN NULL WHEN + 57 + - - NULLIF ( - 8, - 36 + 14 + + COALESCE ( + 35, - ( + MAX( DISTINCT - + 85 ) ) / - ( - 66 ) - 52, + - 2 - - - 56 ) ) THEN + - COUNT( * ) + 67 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT + ( + CASE + - 92 WHEN 23 THEN NULL WHEN + 57 + - - NULLIF ( - 8, - 36 + 14 + + COALESCE ( + 35, - ( + MAX ( DISTINCT - + 85 ) ) / - ( - 66 ) - 52, + - 2 - - - 56 ) ) THEN + - COUNT ( * ) + 67 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT + - 10 * + NULLIF ( + - 83, - CAST( NULL AS SIGNED ) )
----
830

skipif mysql # not compatible
query I rowsort label-937
SELECT + - 10 * + NULLIF ( + - 83, - CAST ( NULL AS INTEGER ) )
----
830

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT - NULLIF ( - 89, + - 58 ) DIV - - 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - NULLIF ( - 89, + - 58 ) / - - 14 AS col0
----
6

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

query II rowsort
SELECT ALL + + ( 20 ) AS col1, - 86
----
20
-86

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + 75 * + 97 - - - 22 * COUNT( * )
----
7253

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT + 75 * + 97 - - - 22 * COUNT ( * )
----
7253

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

query I rowsort
SELECT DISTINCT + + 71
----
71

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

skipif mysql # not compatible
query I rowsort label-948
SELECT MIN ( 45 )
----
45

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

query I rowsort
SELECT - 7 * - 72 col1
----
504

query I rowsort
SELECT - ( - 83 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT - 25 DIV + - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-952
SELECT - 25 / + - 47 AS col1
----
0

query I rowsort
SELECT - 61 AS col1
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-955
SELECT ALL + 62 - 54 + - 99 DIV + ( NULLIF ( 24, + AVG ( 12 ) ) ) + + - 74 col0, - NULLIF ( - - COUNT( DISTINCT + 83 ), + 33 ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-955
SELECT ALL + 62 - 54 + - 99 / + ( NULLIF ( 24, + AVG ( 12 ) ) ) + + - 74 col0, - NULLIF ( - - COUNT ( DISTINCT + 83 ), + 33 ) AS col1
----
-70
-1

query I rowsort
SELECT ALL - 7 * - 57 AS col2
----
399

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT - 72 AS col2, - MIN( - + 55 ) AS col2
----
-72
55

skipif mysql # not compatible
query II rowsort label-957
SELECT - 72 AS col2, - MIN ( - + 55 ) AS col2
----
-72
55

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL COUNT( DISTINCT 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL COUNT ( DISTINCT 92 ) AS col0
----
1

query I rowsort
SELECT ALL + 35 * 53
----
1855

query I rowsort
SELECT - 75 col0
----
-75

query I rowsort
SELECT + 35 + - 94
----
-59

query I rowsort
SELECT - 41 * - 24
----
984

query I rowsort
SELECT ALL + 45 * 93 AS col0
----
4185

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT - COALESCE ( 30, - 71 ) + 30 + 83 + 6 * 78 DIV - - 36 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-964
SELECT - COALESCE ( 30, - 71 ) + 30 + 83 + 6 * 78 / - - 36 AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT - 88 DIV 19 col2
----
-4

skipif mysql # not compatible
query I rowsort label-965
SELECT - 88 / 19 col2
----
-4

query I rowsort
SELECT - 5 + - + 71 AS col2
----
-76

query I rowsort
SELECT + 70 * + 35
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-968
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + - 85 * + - 11 - + - 26 + + 11 + - MAX( - ( - 20 ) ) + - 71 + - 49 - - 31 + + + 22 DIV - + 4 - + 10 AS col1
----
847

skipif mysql # not compatible
query I rowsort label-968
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + - 85 * + - 11 - + - 26 + + 11 + - MAX ( - ( - 20 ) ) + - 71 + - 49 - - 31 + + + 22 / - + 4 - + 10 AS col1
----
847

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

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

query I rowsort
SELECT - 98 col0
----
-98

query I rowsort
SELECT DISTINCT + 27 * 40 col0
----
1080

query I rowsort
SELECT 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT 64 + - COUNT( 56 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT 64 + - COUNT ( 56 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL COUNT( ( 82 ) ) + - + 22 * - + 87
----
1915

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL COUNT ( ( 82 ) ) + - + 22 * - + 87
----
1915

query I rowsort
SELECT - 38 + + 97 col2
----
59

query I rowsort
SELECT ALL - 55
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + + SUM( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-977
SELECT + + SUM ( ALL + 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT ALL 39 / 82 + - 63 + + + 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL 39 / 82 + - 63 + + + 64 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT DISTINCT + 36 DIV + 21 + 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT + 36 / + 21 + 0 col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT DISTINCT - + CAST( + 23 AS SIGNED ) * 65 + CAST( NULL AS SIGNED ) * - + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - + CAST ( + 23 AS INTEGER ) * 65 + CAST ( NULL AS INTEGER ) * - + 32 AS col0
----
NULL

query I rowsort
SELECT ALL + 70 AS col0
----
70

query I rowsort
SELECT DISTINCT + COALESCE ( + + 48, + 1 ) AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT - COUNT( * ) * + 88 DIV 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-984
SELECT - COUNT ( * ) * + 88 / 49 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - + COUNT( * ) * + 17 + + CASE + NULLIF ( ( MAX( - 76 ) ), + - COALESCE ( - 91, - - 88 * + 42 - + COUNT( * ) + + - ( - + 97 ) + - COUNT( * ) + + COUNT( * ) ) * 89 - - 88 ) WHEN + 43 THEN - - 19 END * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT - + COUNT ( * ) * + 17 + + CASE + NULLIF ( ( MAX ( - 76 ) ), + - COALESCE ( - 91, - - 88 * + 42 - + COUNT ( * ) + + - ( - + 97 ) + - COUNT ( * ) + + COUNT ( * ) ) * 89 - - 88 ) WHEN + 43 THEN - - 19 END * 63 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-986
SELECT ALL + - CAST( ( 16 ) AS SIGNED ) AS col0, 54
----
-16
54

skipif mysql # not compatible
query II rowsort label-986
SELECT ALL + - CAST ( ( 16 ) AS INTEGER ) AS col0, 54
----
-16
54

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT DISTINCT + 74 DIV + 4
----
18

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT + 74 / + 4
----
18

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

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

query I rowsort
SELECT + + 46 * + 94 + 31 - - 75 AS col1
----
4430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT + 19 + - CAST( + + 28 AS SIGNED ) * + COALESCE ( + - NULLIF ( + 38, + + ( - 75 ) ), + - ( + COUNT( * ) ) - - 75 )
----
1083

skipif mysql # not compatible
query I rowsort label-990
SELECT + 19 + - CAST ( + + 28 AS INTEGER ) * + COALESCE ( + - NULLIF ( + 38, + + ( - 75 ) ), + - ( + COUNT ( * ) ) - - 75 )
----
1083

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

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT 72 * + + MAX( 47 )
----
3384

skipif mysql # not compatible
query I rowsort label-992
SELECT 72 * + + MAX ( 47 )
----
3384

query I rowsort
SELECT DISTINCT - 75
----
-75

query I rowsort
SELECT DISTINCT 7 * 53 * - 20 * - + 88 * + - 94 AS col1
----
-61378240

query I rowsort
SELECT ALL - 17 col1
----
-17

query I rowsort
SELECT DISTINCT 24 * 4
----
96

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

query I rowsort
SELECT 62 * - 61 AS col0
----
-3782

query I rowsort
SELECT 68 + + 59 + + + 24 + - 89 * - 92 + + 85 AS col2
----
8424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT CAST( SUM( + 87 ) AS SIGNED ) + 13 col2
----
100

skipif mysql # not compatible
query I rowsort label-1000
SELECT CAST ( SUM ( + 87 ) AS INTEGER ) + 13 col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT 87 + + 24 AS col0, 46 - + COUNT( * )
----
111
45

skipif mysql # not compatible
query II rowsort label-1001
SELECT 87 + + 24 AS col0, 46 - + COUNT ( * )
----
111
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1002
SELECT ALL 23 + - + NULLIF ( + + 17, + 38 * + 10 + 19 + - 80 ) + - - 18 * - + COUNT( * ) AS col0, - 81 - CAST( NULL AS SIGNED ) + + ( - 40 )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL 23 + - + NULLIF ( + + 17, + 38 * + 10 + 19 + - 80 ) + - - 18 * - + COUNT ( * ) AS col0, - 81 - CAST ( NULL AS INTEGER ) + + ( - 40 )
----
-12
NULL

query I rowsort
SELECT 80 col0
----
80

query I rowsort
SELECT 16 col2
----
16

query I rowsort
SELECT ALL + 40 + - 25 + - 71
----
-56

query I rowsort
SELECT 86 AS col0
----
86

query I rowsort
SELECT 3 + - + 4 AS col1
----
-1

query I rowsort
SELECT DISTINCT 29 + + - 79
----
-50

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT DISTINCT 22 + - + 54 DIV - COALESCE ( + 73, + + COUNT( + 51 ) ) * + + 38 + - 91 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT 22 + - + 54 / - COALESCE ( + 73, + + COUNT ( + 51 ) ) * + + 38 + - 91 AS col2
----
-69

query I rowsort
SELECT DISTINCT 98 col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1012
SELECT 3 * - 80 AS col1, CAST( NULL AS SIGNED ) AS col1
----
-240
NULL

skipif mysql # not compatible
query II rowsort label-1012
SELECT 3 * - 80 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-240
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT ALL + 69 DIV - + 63
----
-1

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + 69 / - + 63
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT - CASE - - 64 WHEN - ( + MAX( DISTINCT 97 ) ) - - 56 * + 53 + + - 25 + + 45 * + + 7 * CAST( - 11 AS SIGNED ) * + NULLIF ( - COUNT( * ), + MAX( ( - 15 ) ) * + 82 + 98 + 73 + - 41 / + 99 ) + + + 85 THEN - + COUNT( * ) * + + 42 + + 50 + 2 + - - 47 * - - 59 / + 96 * - + 95 * + + 58 * + 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT - CASE - - 64 WHEN - ( + MAX ( DISTINCT 97 ) ) - - 56 * + 53 + + - 25 + + 45 * + + 7 * CAST ( - 11 AS INTEGER ) * + NULLIF ( - COUNT ( * ), + MAX ( ( - 15 ) ) * + 82 + 98 + 73 + - 41 / + 99 ) + + + 85 THEN - + COUNT ( * ) * + + 42 + + 50 + 2 + - - 47 * - - 59 / + 96 * - + 95 * + + 58 * + 76 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + - 55 AS col2
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL + 63 + - CASE 16 WHEN + 22 * 13 - COUNT( * ) - ( - 70 ) THEN NULL ELSE + COUNT( * ) - - 77 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + 63 + - CASE 16 WHEN + 22 * 13 - COUNT ( * ) - ( - 70 ) THEN NULL ELSE + COUNT ( * ) - - 77 END AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT COUNT( ALL 20 ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-1018
SELECT COUNT ( ALL 20 ) * 46
----
46

query I rowsort
SELECT + 58 * + + 5 * 29 AS col1
----
8410

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL - + COUNT( * ) * 34 col2
----
-34

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL - + COUNT ( * ) * 34 col2
----
-34

query I rowsort
SELECT - - 49 AS col0
----
49

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

query I rowsort
SELECT DISTINCT - ( - + 27 ) * + 83 AS col1
----
2241

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

query I rowsort
SELECT DISTINCT - + CASE - - ( + - 76 ) WHEN - - 64 + - 61 THEN NULL ELSE + - 50 END
----
50

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

query I rowsort
SELECT ALL - - 99
----
99

query I rowsort
SELECT 28 * 18
----
504

query I rowsort
SELECT ALL - 15 AS col2
----
-15

query I rowsort
SELECT ALL - - 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT COUNT( DISTINCT - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-1031
SELECT COUNT ( DISTINCT - 28 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1032
SELECT - 3 DIV + 10 * - 17 + - + 38 + - 20, + 98 AS col2
----
-58
98

skipif mysql # not compatible
query II rowsort label-1032
SELECT - 3 / + 10 * - 17 + - + 38 + - 20, + 98 AS col2
----
-58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT COUNT( * ) * - MIN( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-1033
SELECT COUNT ( * ) * - MIN ( 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + MIN( + + 98 ) * - ( - 19 ) + - - 8
----
1870

skipif mysql # not compatible
query I rowsort label-1034
SELECT + MIN ( + + 98 ) * - ( - 19 ) + - - 8
----
1870

query I rowsort
SELECT ALL - + 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + MIN( ( 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-1036
SELECT + MIN ( ( 34 ) )
----
34

query I rowsort
SELECT + 10 col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT ALL - COUNT( * ) * - + ( + MAX( ALL + 6 ) ) AS col2, - 23
----
6
-23

skipif mysql # not compatible
query II rowsort label-1038
SELECT ALL - COUNT ( * ) * - + ( + MAX ( ALL + 6 ) ) AS col2, - 23
----
6
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + 32 + - + COALESCE ( + 27, - CASE - COUNT( ALL + - 38 ) WHEN - 55 * + COUNT( * ) * 80 - + 9 THEN ( 86 ) * + - CASE 59 WHEN - 64 THEN NULL WHEN - 75 * + 57 / + 40 + 57 THEN NULL ELSE + 26 * + COUNT( * ) * - 36 END + 77 WHEN 30 - 43 THEN NULL END + - + 51 ) + + + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1039
SELECT + 32 + - + COALESCE ( + 27, - CASE - COUNT ( ALL + - 38 ) WHEN - 55 * + COUNT ( * ) * 80 - + 9 THEN ( 86 ) * + - CASE 59 WHEN - 64 THEN NULL WHEN - 75 * + 57 / + 40 + 57 THEN NULL ELSE + 26 * + COUNT ( * ) * - 36 END + 77 WHEN 30 - 43 THEN NULL END + - + 51 ) + + + COUNT ( * ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1040
SELECT ALL ( + AVG ( 44 ) ) * - COUNT( * ) * - + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) * - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL ( + AVG ( 44 ) ) * - COUNT ( * ) * - + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) * - + 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT - 41 * - + 49 + 69 + 73 * 67 - - - ( + ( - 32 ) ) DIV - 72 * + 40 AS col1
----
6969

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 41 * - + 49 + 69 + 73 * 67 - - - ( + ( - 32 ) ) / - 72 * + 40 AS col1
----
6969

query II rowsort
SELECT DISTINCT - 20, 90 + - 37 col0
----
-20
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1043
SELECT ALL - 23 AS col1, + 69 + - - CAST( + 55 AS SIGNED ) + - 69 * 26
----
-23
-1670

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL - 23 AS col1, + 69 + - - CAST ( + 55 AS INTEGER ) + - 69 * 26
----
-23
-1670

query I rowsort
SELECT 72 - + ( + 3 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1045
SELECT DISTINCT 89 + - COUNT( DISTINCT + 53 ), 69 col1
----
88
69

skipif mysql # not compatible
query II rowsort label-1045
SELECT DISTINCT 89 + - COUNT ( DISTINCT + 53 ), 69 col1
----
88
69

query II rowsort
SELECT DISTINCT - 20 AS col0, 46
----
-20
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT ALL 24 + + COUNT( * ) DIV - + 60 col0
----
24

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 24 + + COUNT ( * ) / - + 60 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT MAX( - 46 ) * + 98 AS col2, 94 + + - 32 + + COUNT( * ) * 70
----
-4508
132

skipif mysql # not compatible
query II rowsort label-1048
SELECT MAX ( - 46 ) * + 98 AS col2, 94 + + - 32 + + COUNT ( * ) * 70
----
-4508
132

query II rowsort
SELECT - 26 AS col2, - 94 + - - 30 AS col0
----
-26
-64

query I rowsort
SELECT DISTINCT - 27 + - + 87
----
-114

query I rowsort
SELECT ALL + 72 + - + 73 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT SUM( 94 ) - - 43 * - + ( + 10 ), - COUNT( * ) col1
----
-336
-1

skipif mysql # not compatible
query II rowsort label-1053
SELECT SUM ( 94 ) - - 43 * - + ( + 10 ), - COUNT ( * ) col1
----
-336
-1

query I rowsort
SELECT DISTINCT 81 * 91
----
7371

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

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

query I rowsort
SELECT 77 + - 61
----
16

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

skipif mysql # not compatible
query I rowsort label-1057
SELECT NULLIF ( + 59, ( + 68 ) ) * - ( + + COUNT ( * ) ) AS col2
----
-59

query I rowsort
SELECT - 2 col2
----
-2

query I rowsort
SELECT ALL 10 + + 72 AS col0
----
82

query I rowsort
SELECT 93 + 73 AS col2
----
166

query I rowsort
SELECT ALL 13 col0
----
13

query I rowsort
SELECT 12 + 0
----
12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ( - 13 ) + + 50 DIV 75
----
-13

skipif mysql # not compatible
query I rowsort label-1064
SELECT ( - 13 ) + + 50 / 75
----
-13

query I rowsort
SELECT ALL + NULLIF ( + 30, 0 ) - 91 AS col2
----
-61

query I rowsort
SELECT ALL CASE - 31 WHEN 32 THEN - 82 END / + 17 AS col1
----
NULL

query I rowsort
SELECT 37 + - 70 AS col2
----
-33

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

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

query I rowsort
SELECT ( 9 ) * + 35 AS col1
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT CAST( NULL AS SIGNED ) / - ( 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT CAST ( NULL AS INTEGER ) / - ( 32 ) AS col2
----
NULL

query I rowsort
SELECT 53 * 15
----
795

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT DISTINCT + COUNT( * ) * 28 col0
----
28

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT + COUNT ( * ) * 28 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT + NULLIF ( 5, 7 * - 12 + NULLIF ( - ( COUNT( 66 ) ) + 13 * + COUNT( * ), 59 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1073
SELECT + NULLIF ( 5, 7 * - 12 + NULLIF ( - ( COUNT ( 66 ) ) + 13 * + COUNT ( * ), 59 ) ) AS col1
----
5

query I rowsort
SELECT 63 * 65 AS col2
----
4095

query I rowsort
SELECT NULLIF ( - ( 89 ), 16 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT - COUNT( * ) DIV 35 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1076
SELECT - COUNT ( * ) / 35 + COUNT ( * )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL MIN( 98 ) * - 92 col0
----
-9016

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL MIN ( 98 ) * - 92 col0
----
-9016

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

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

query I rowsort
SELECT ALL + COALESCE ( 83, 79, - 8 * 16 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT + COUNT( + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + COUNT ( + 79 ) AS col1
----
1

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

query I rowsort
SELECT ALL 52 * + 29 + + 80
----
1588

query I rowsort
SELECT + 65 * - ( 48 ) + 71
----
-3049

query I rowsort
SELECT - 36 * + 5 AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT - NULLIF ( - NULLIF ( + 97, 75 * + 91 ), + 87 ) * COUNT( DISTINCT - 41 + 83 )
----
97

skipif mysql # not compatible
query I rowsort label-1086
SELECT - NULLIF ( - NULLIF ( + 97, 75 * + 91 ), + 87 ) * COUNT ( DISTINCT - 41 + 83 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT ALL 14 * 72 + 3 DIV 30
----
1008

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL 14 * 72 + 3 / 30
----
1008

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ALL 20 * + COALESCE ( - 36, - 44 * - COUNT( * ) + 53, - 36 ) + 1 AS col1
----
-719

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL 20 * + COALESCE ( - 36, - 44 * - COUNT ( * ) + 53, - 36 ) + 1 AS col1
----
-719

query I rowsort
SELECT - 30 + - 92
----
-122

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

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

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

query I rowsort
SELECT - NULLIF ( 2, 90 ) + 54
----
52

query I rowsort
SELECT + 12 - + 96
----
-84

query I rowsort
SELECT DISTINCT 64 * - 87 + 84 AS col2
----
-5484

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

query I rowsort
SELECT ( 56 ) * 37 + + 72
----
2144

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

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

query I rowsort
SELECT DISTINCT + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL CASE - COUNT( * ) WHEN COUNT( * ) THEN + 66 + + CASE WHEN NOT + 33 - + 62 IS NOT NULL THEN NULL ELSE 69 END WHEN 60 THEN NULL END + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + 66 + + CASE WHEN NOT + 33 - + 62 IS NOT NULL THEN NULL ELSE 69 END WHEN 60 THEN NULL END + + 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + 88 * + COUNT( * ) + 94
----
182

skipif mysql # not compatible
query I rowsort label-1101
SELECT + 88 * + COUNT ( * ) + 94
----
182

query I rowsort
SELECT DISTINCT + 68 * 47
----
3196

query I rowsort
SELECT ALL NULLIF ( + 47, + 59 ) AS col0
----
47

query I rowsort
SELECT + 11 * + 95
----
1045

query I rowsort
SELECT - 91 AS col2
----
-91

query I rowsort
SELECT + 28 + + 28
----
56

query I rowsort
SELECT ALL + 41 - ( 8 ) AS col2
----
33

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

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

query I rowsort
SELECT + 5 + 26
----
31

query I rowsort
SELECT ALL 47 AS col0
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1111
SELECT - NULLIF ( 58, - 87 ) * - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT - NULLIF ( 58, - 87 ) * - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - NULLIF ( 24, - 74 ) AS col2
----
-24

query I rowsort
SELECT DISTINCT 50 AS col1
----
50

query I rowsort
SELECT ALL + 45
----
45

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

query I rowsort
SELECT DISTINCT 81
----
81

query I rowsort
SELECT DISTINCT 32 * 54
----
1728

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

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

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

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

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

query I rowsort
SELECT - 38 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1122
SELECT + 47 * + CASE 68 WHEN 22 + - NULLIF ( - 95, 2 ) * 69 THEN - CAST( 53 AS SIGNED ) ELSE + 38 END AS col2
----
1786

skipif mysql # not compatible
query I rowsort label-1122
SELECT + 47 * + CASE 68 WHEN 22 + - NULLIF ( - 95, 2 ) * 69 THEN - CAST ( 53 AS INTEGER ) ELSE + 38 END AS col2
----
1786

query I rowsort
SELECT + 87 - + 92 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1124
SELECT - 56 DIV COALESCE ( - 68 + 70, + COUNT( * ) - 67 DIV - MAX( ALL 94 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1124
SELECT - 56 / COALESCE ( - 68 + 70, + COUNT ( * ) - 67 / - MAX ( ALL 94 ) )
----
-28

query I rowsort
SELECT ALL 33 AS col1
----
33

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

query I rowsort
SELECT + 14 * + 26 AS col2
----
364

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

query I rowsort
SELECT DISTINCT + - 88
----
-88

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

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

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

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT 98 / + 3 + COUNT ( * ) AS col2
----
33

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

skipif mysql # not compatible
query I rowsort label-1133
SELECT - 25 * COUNT ( * )
----
-25

query I rowsort
SELECT ( - 80 )
----
-80

query I rowsort
SELECT - 42 + - - 55
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1136
SELECT DISTINCT COUNT( * ) DIV + - 16 + NULLIF ( + 69 + NULLIF ( + 58, ( - 91 ) ), 18 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT COUNT ( * ) / + - 16 + NULLIF ( + 69 + NULLIF ( + 58, ( - 91 ) ), 18 ) AS col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT ALL 10 DIV 7 * 12 + 19
----
31

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL 10 / 7 * 12 + 19
----
31

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

query I rowsort
SELECT ALL COALESCE ( ( - ( 68 ) ), 12, + 3, 67 ) * + 14 + 43
----
-909

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

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

query I rowsort
SELECT + 13 col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT + 6 DIV COUNT( 45 )
----
6

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 6 / COUNT ( 45 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT 79 * + COUNT( * ) + - 24
----
55

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT 79 * + COUNT ( * ) + - 24
----
55

query I rowsort
SELECT ALL + COALESCE ( + - 60, - 31 * - 14 ) AS col2
----
-60

query I rowsort
SELECT ( + ( - 9 ) ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT DISTINCT ( - 47 ) * + 14 + MIN( 52 ) AS col2
----
-606

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT ( - 47 ) * + 14 + MIN ( 52 ) AS col2
----
-606

query I rowsort
SELECT DISTINCT 6 * 35 AS col1
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1148
SELECT ALL + 24 * + 97 + COALESCE ( CASE + NULLIF ( 61, 37 ) WHEN CASE - COUNT( * ) WHEN + 61 + 46 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - 30 THEN 33 END THEN 65 END, + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + 24 * + 97 + COALESCE ( CASE + NULLIF ( 61, 37 ) WHEN CASE - COUNT ( * ) WHEN + 61 + 46 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - 30 THEN 33 END THEN 65 END, + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT - 11 - - - 65 * COUNT( ALL 59 - + 16 )
----
-76

skipif mysql # not compatible
query I rowsort label-1151
SELECT - 11 - - - 65 * COUNT ( ALL 59 - + 16 )
----
-76

query I rowsort
SELECT NULLIF ( ( 75 ), 84 * 28 )
----
75

query I rowsort
SELECT ALL 40 * - 24 - 88 AS col1
----
-1048

query I rowsort
SELECT ALL + ( + + COALESCE ( 86, + 16 ) )
----
86

query I rowsort
SELECT NULLIF ( - 95, - ( - NULLIF ( 89, 23 / + 72 ) ) + + 10 ) AS col0
----
-95

query I rowsort
SELECT - NULLIF ( 56, 44 - 56 )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1157
SELECT ALL CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 84 * + 78 * - 32
----
209664

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - SUM( ALL - 60 ) * + 54
----
3240

skipif mysql # not compatible
query I rowsort label-1159
SELECT - SUM ( ALL - 60 ) * + 54
----
3240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1160
SELECT DISTINCT - - COUNT( ALL CAST( NULL AS DECIMAL ) ) * 36
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT - - COUNT ( ALL CAST ( NULL AS REAL ) ) * 36
----
0

query I rowsort
SELECT - - NULLIF ( - 6, - 87 + - 43 ) * - 21
----
126

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

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

query I rowsort
SELECT DISTINCT + 8 col0
----
8

query I rowsort
SELECT 27 AS col1
----
27

query I rowsort
SELECT ALL 5 AS col0
----
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT SUM( ALL - + ( - ( ( 32 ) ) ) ) + - 46 * 86
----
-3924

skipif mysql # not compatible
query I rowsort label-1168
SELECT SUM ( ALL - + ( - ( ( 32 ) ) ) ) + - 46 * 86
----
-3924

query I rowsort
SELECT ALL - 99 + - - 34
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT + 84 + + - CASE 62 WHEN - COUNT( * ) THEN - 2 WHEN 41 THEN + 7 / - MAX( + 91 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT + 84 + + - CASE 62 WHEN - COUNT ( * ) THEN - 2 WHEN 41 THEN + 7 / - MAX ( + 91 ) END
----
NULL

query I rowsort
SELECT ALL - 49 AS col0
----
-49

query I rowsort
SELECT - 93 * - - 52
----
-4836

query I rowsort
SELECT DISTINCT 95
----
95

query I rowsort
SELECT + 11 + + + 93
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL MAX( 73 ) + COUNT( * ) * - 51
----
22

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL MAX ( 73 ) + COUNT ( * ) * - 51
----
22

query I rowsort
SELECT 29 + + 14 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL 60 + - + NULLIF ( ( - 96 ), 16 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 60 + - + NULLIF ( ( - 96 ), 16 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + 52, 57 + 72 )
----
-52

query I rowsort
SELECT ALL 7 + + 60 AS col0
----
67

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

query I rowsort
SELECT + 55 col1
----
55

query I rowsort
SELECT 93 col1
----
93

query II rowsort
SELECT 63 AS col2, - 62 AS col2
----
63
-62

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT DISTINCT 94 + + CAST( - + 26 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT 94 + + CAST ( - + 26 AS INTEGER )
----
68

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

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

query I rowsort
SELECT 79 col1
----
79

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

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

query I rowsort
SELECT DISTINCT 59 - + - 57
----
116

query II rowsort
SELECT + 78 AS col1, 51
----
78
51

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

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

query I rowsort
SELECT 22 * + CASE 68 WHEN 80 THEN NULL WHEN + 6 THEN + 43 END AS col0
----
NULL

query II rowsort
SELECT 17 AS col2, 16 * - - 11 * 60 AS col0
----
17
10560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT ALL + ( - 34 ) * - - MIN( 83 ) * 67 + CAST( - 60 + - 57 * - COUNT( * ) AS SIGNED )
----
-189077

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + ( - 34 ) * - - MIN ( 83 ) * 67 + CAST ( - 60 + - 57 * - COUNT ( * ) AS INTEGER )
----
-189077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1196
SELECT CAST( NULL AS SIGNED ) + - 53 + - - MIN( DISTINCT + 61 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT CAST ( NULL AS INTEGER ) + - 53 + - - MIN ( DISTINCT + 61 ) col0
----
NULL

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

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

query I rowsort
SELECT 51 * + + 85 + + 8
----
4343

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

query I rowsort
SELECT ALL 36 * 62 * - - 0 - 59
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT 33 * + - COALESCE ( 60, 89 + + 2 ) + - CAST( 7 AS SIGNED )
----
-1987

skipif mysql # not compatible
query I rowsort label-1201
SELECT 33 * + - COALESCE ( 60, 89 + + 2 ) + - CAST ( 7 AS INTEGER )
----
-1987

onlyif mysql # DIV for integer division: 
query II rowsort label-1202
SELECT 11 AS col2, 13 + + 5 DIV 38 AS col1
----
11
13

skipif mysql # not compatible
query II rowsort label-1202
SELECT 11 AS col2, 13 + + 5 / 38 AS col1
----
11
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL COALESCE ( + COUNT( + + 33 ), - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL COALESCE ( + COUNT ( + + 33 ), - 77 ) AS col2
----
1

query I rowsort
SELECT - 32 * + 91 * + 25 AS col0
----
-72800

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

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

query I rowsort
SELECT DISTINCT 94 AS col1
----
94

query I rowsort
SELECT ALL - - 98 + 58 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT NULLIF ( + 39, + COUNT( * ) * 72 )
----
39

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT NULLIF ( + 39, + COUNT ( * ) * 72 )
----
39

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

query I rowsort
SELECT ALL + 37 + - + 72
----
-35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1212
SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT( * ) - - 59 * - 52 THEN CAST( 16 AS SIGNED ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST( NULL AS SIGNED ) END, 0 DIV + 59 ) + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT ( * ) - - 59 * - 52 THEN CAST ( 16 AS INTEGER ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST ( NULL AS INTEGER ) END, 0 / + 59 ) + - 42
----
-42

query I rowsort
SELECT 97 * - 5 + + 6
----
-479

query II rowsort
SELECT DISTINCT - 84, + 13 AS col0
----
-84
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT 77 * + ( + + MAX( ALL 51 ) )
----
3927

skipif mysql # not compatible
query I rowsort label-1216
SELECT 77 * + ( + + MAX ( ALL 51 ) )
----
3927

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

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

query I rowsort
SELECT 62 - - 70 * 38 AS col0
----
2722

query I rowsort
SELECT ALL + 54 + 69
----
123

query I rowsort
SELECT DISTINCT 6
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1221
SELECT DISTINCT 52 * + CASE + 86 WHEN 80 THEN CAST( - COALESCE ( 43, COUNT( * ), 65 ) AS SIGNED ) WHEN 32 THEN + 35 * - 69 END - - 87 * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT 52 * + CASE + 86 WHEN 80 THEN CAST ( - COALESCE ( 43, COUNT ( * ), 65 ) AS INTEGER ) WHEN 32 THEN + 35 * - 69 END - - 87 * + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + 3 * NULLIF ( CASE + 33 WHEN - 47 + + 60 THEN 10 WHEN + 50 * + COUNT( * ) THEN NULL WHEN + 76 * 11 THEN + 49 + - 54 END, + 96 ) - + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + 3 * NULLIF ( CASE + 33 WHEN - 47 + + 60 THEN 10 WHEN + 50 * + COUNT ( * ) THEN NULL WHEN + 76 * 11 THEN + 49 + - 54 END, + 96 ) - + 80 AS col0
----
NULL

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

query I rowsort
SELECT ALL - 23 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT ALL - NULLIF ( - + 75, CASE COUNT( * ) WHEN CAST( 59 AS SIGNED ) THEN NULL ELSE ( - 11 ) END ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - NULLIF ( - + 75, CASE COUNT ( * ) WHEN CAST ( 59 AS INTEGER ) THEN NULL ELSE ( - 11 ) END ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT - 77 DIV - + NULLIF ( - - 91, + 57 * - 52 ) * 30 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1226
SELECT - 77 / - + NULLIF ( - - 91, + 57 * - 52 ) * 30 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1227
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ), 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ), 41 AS col1
----
NULL
41

query I rowsort
SELECT ALL 18 * + 20 AS col2
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-1229
SELECT MAX( + - 82 ), 7 AS col1
----
-82
7

skipif mysql # not compatible
query II rowsort label-1229
SELECT MAX ( + - 82 ), 7 AS col1
----
-82
7

query I rowsort
SELECT DISTINCT 53 * + 25 AS col0
----
1325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT 32 * + ( + + COUNT( * ) ) * + - 52 - CASE COALESCE ( - 5, 25 + - 2 ) - + 66 WHEN + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 93 / + 38 THEN CAST( + 51 AS SIGNED ) + ( 72 ) * - 2 WHEN 61 THEN ( - 61 ) ELSE + 60 END AS col2
----
-1724

skipif mysql # not compatible
query I rowsort label-1231
SELECT 32 * + ( + + COUNT ( * ) ) * + - 52 - CASE COALESCE ( - 5, 25 + - 2 ) - + 66 WHEN + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 93 / + 38 THEN CAST ( + 51 AS INTEGER ) + ( 72 ) * - 2 WHEN 61 THEN ( - 61 ) ELSE + 60 END AS col2
----
-1724

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT MAX( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT MAX ( + 1 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1233
SELECT ALL - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL - COUNT( - 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - COUNT ( - 58 ) AS col0
----
-1

query I rowsort
SELECT ALL - 86
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1236
SELECT + MAX( 81 ), ( 44 ) + 23 AS col0
----
81
67

skipif mysql # not compatible
query II rowsort label-1236
SELECT + MAX ( 81 ), ( 44 ) + 23 AS col0
----
81
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1237
SELECT + ( NULLIF ( + COALESCE ( - - MAX( CAST( NULL AS SIGNED ) ), 18 ), + 89 ) )
----
18

skipif mysql # not compatible
query I rowsort label-1237
SELECT + ( NULLIF ( + COALESCE ( - - MAX ( CAST ( NULL AS INTEGER ) ), 18 ), + 89 ) )
----
18

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT ALL + COUNT( * ) DIV - 5 * + 50 + + - 19 - COUNT( 39 )
----
-20

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + COUNT ( * ) / - 5 * + 50 + + - 19 - COUNT ( 39 )
----
-20

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

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

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT + + MAX ( + + 7 )
----
7

query I rowsort
SELECT + CASE - - COALESCE ( + + 52, - 44 ) WHEN - 89 - 73 THEN - 83 / + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL MAX( - 74 ) + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL MAX ( - 74 ) + COUNT ( * )
----
-73

query I rowsort
SELECT + 38 * - ( - 51 ) - - NULLIF ( + 94, 89 + - 71 ) AS col1
----
2032

query I rowsort
SELECT 81 AS col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + - COUNT( * ) + - - 0 + - - 42 * + - 15
----
-631

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + - COUNT ( * ) + - - 0 + - - 42 * + - 15
----
-631

query I rowsort
SELECT DISTINCT + 29 + - + 57 + + - 23
----
-51

query I rowsort
SELECT ALL - 66 + + ( - 67 ) - + 35 + - 3 AS col0
----
-171

query I rowsort
SELECT ALL 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL COUNT( ALL - 7 ) + - COUNT( * ) * + + COUNT( * ) * 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL COUNT ( ALL - 7 ) + - COUNT ( * ) * + + COUNT ( * ) * 6 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT - CAST( 47 AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - CAST ( 47 AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT + - 16 + 65 col0
----
49

query I rowsort
SELECT - - 11 - - - NULLIF ( - 46, + 79 ) * - 11
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL - COUNT( * ) + - - MIN( - 63 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - COUNT ( * ) + - - MIN ( - 63 ) col2
----
-64

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

query I rowsort
SELECT + + 41 + - 89 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + MAX( DISTINCT - CASE WHEN NOT - 65 <> + 0 / 52 + - 12 THEN 66 + 22 END ) + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT + MAX ( DISTINCT - CASE WHEN NOT - 65 <> + 0 / 52 + - 12 THEN 66 + 22 END ) + 98 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT + MIN( DISTINCT + 96 ) + + - 47 + + 26 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1260
SELECT + MIN ( DISTINCT + 96 ) + + - 47 + + 26 AS col2
----
75

query I rowsort
SELECT - 39 * - 70 * 88 AS col0
----
240240

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

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

query I rowsort
SELECT ALL CASE + - 34 WHEN + - 86 * - 57 THEN 47 * COALESCE ( - 93, - 78, 72 ) END
----
NULL

query I rowsort
SELECT - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT - COUNT( * ) + 83 - + 30 + - 74 * 70 * COUNT( * ) AS col0
----
-5128

skipif mysql # not compatible
query I rowsort label-1265
SELECT - COUNT ( * ) + 83 - + 30 + - 74 * 70 * COUNT ( * ) AS col0
----
-5128

query I rowsort
SELECT ALL + 22 - - 75 - + ( - 37 ) - - 15 + 24
----
173

query I rowsort
SELECT DISTINCT + 41 - + - 95 AS col2
----
136

query I rowsort
SELECT - ( - 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT - 12 + 15 * ( + 15 ) * - COUNT( * )
----
-237

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 12 + 15 * ( + 15 ) * - COUNT ( * )
----
-237

query I rowsort
SELECT - 30 * - + 43
----
1290

query I rowsort
SELECT ( - 98 ) AS col2
----
-98

query I rowsort
SELECT ALL + 58
----
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1274
SELECT + 74 AS col0, - CAST( - + 96 AS SIGNED ) AS col2
----
74
96

skipif mysql # not compatible
query II rowsort label-1274
SELECT + 74 AS col0, - CAST ( - + 96 AS INTEGER ) AS col2
----
74
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT + 82 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-1275
SELECT + 82 / + 41
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - NULLIF ( + 60, SUM( DISTINCT - 25 ) * - COUNT( * ) - - 99 ) * - 63 + + 84 * 74
----
9996

skipif mysql # not compatible
query I rowsort label-1276
SELECT - NULLIF ( + 60, SUM ( DISTINCT - 25 ) * - COUNT ( * ) - - 99 ) * - 63 + + 84 * 74
----
9996

query II rowsort
SELECT + 29, 68 AS col1
----
29
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1278
SELECT + 32, + COUNT( * ) DIV + 22 AS col1
----
32
0

skipif mysql # not compatible
query II rowsort label-1278
SELECT + 32, + COUNT ( * ) / + 22 AS col1
----
32
0

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

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

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL CAST ( NULL AS INTEGER ) * 14
----
NULL

query I rowsort
SELECT - 34 * + - 89 AS col2
----
3026

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT NULLIF ( - + 10, + + 17 - + - 40 - + - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-1283
SELECT NULLIF ( - + 10, + + 17 - + - 40 - + - COUNT ( * ) )
----
-10

query I rowsort
SELECT + 84 * - 29 + - - 39 - 50 col2
----
-2447

query II rowsort
SELECT ALL + + 60 * - 26 + - 23 AS col1, - 8 AS col0
----
-1583
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1286
SELECT + 35 * + - 13 - + ( + + CASE 75 WHEN - AVG ( 77 ) THEN + CAST( NULL AS DECIMAL ) END ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT + 35 * + - 13 - + ( + + CASE 75 WHEN - AVG ( 77 ) THEN + CAST ( NULL AS REAL ) END ) * - 66
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1288
SELECT - COUNT( * ) * 39 + - COUNT( * ) DIV 40
----
-39

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

query I rowsort
SELECT DISTINCT + ( - 91 ) * 57 + + + 26 AS col1
----
-5161

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

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

query I rowsort
SELECT ALL + 63 * 50 + + - 70
----
3080

query I rowsort
SELECT ALL - 98 * - 47 + - 39 + NULLIF ( - + 81, + 85 ) col1
----
4486

query I rowsort
SELECT - ( 81 )
----
-81

query I rowsort
SELECT + ( - COALESCE ( + 59, - ( 18 ) * 73 + + ( COALESCE ( + NULLIF ( 21, 37 ), - 98, 10 ) ), - 82 ) ) * + 33
----
-1947

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

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT - COUNT ( * ) / - + ( 13 ) AS col0
----
0

query I rowsort
SELECT - 52 AS col0
----
-52

query I rowsort
SELECT - + 73
----
-73

query I rowsort
SELECT ALL 83 * - 86 AS col2
----
-7138

query I rowsort
SELECT - - 74 + + 58
----
132

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

query I rowsort
SELECT - - 6 AS col2
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-1303
SELECT + 75, + 31 * - 47 - 3 + - 54 DIV + COALESCE ( ( + 5 ) + + 54 * + 59, 64 + 14 ) AS col1
----
75
-1460

skipif mysql # not compatible
query II rowsort label-1303
SELECT + 75, + 31 * - 47 - 3 + - 54 / + COALESCE ( ( + 5 ) + + 54 * + 59, 64 + 14 ) AS col1
----
75
-1460

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

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

query I rowsort
SELECT ALL - NULLIF ( + 56, + 16 ) * 17
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT ALL 42 * - COUNT( DISTINCT + + ( + - 74 ) ) AS col1, 6 * - 21
----
-42
-126

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL 42 * - COUNT ( DISTINCT + + ( + - 74 ) ) AS col1, 6 * - 21
----
-42
-126

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

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

query II rowsort
SELECT 76 col0, 3 * 84 - + 34 + + 36 - + 63
----
76
191

query I rowsort
SELECT - 6 * - 16
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL COALESCE ( - COUNT( * ), - COUNT( * ) + 51, - 94 * 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL COALESCE ( - COUNT ( * ), - COUNT ( * ) + 51, - 94 * 45 )
----
-1

query I rowsort
SELECT + 76 - + 44 + - 59 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT - 19, 11 + + COUNT( * ) AS col0
----
-19
12

skipif mysql # not compatible
query II rowsort label-1313
SELECT - 19, 11 + + COUNT ( * ) AS col0
----
-19
12

query II rowsort
SELECT - 70 * + + 49 AS col0, 95
----
-3430
95

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

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

query II rowsort
SELECT + 30, - 46 AS col1
----
30
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT ALL + 5 DIV + + 86 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + 5 / + + 86 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 92 * - 49
----
-4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT - 30 DIV + + 39 + + - COUNT( * ) - MAX( ALL + - 79 ) + + 74 * - 31
----
-2216

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 30 / + + 39 + + - COUNT ( * ) - MAX ( ALL + - 79 ) + + 74 * - 31
----
-2216

query I rowsort
SELECT ALL - 20 + - 74 AS col2
----
-94

query II rowsort
SELECT + 96 col1, + 64 - - + 12 + + 57 + 19 * + ( - 40 ) * 5
----
96
-3667

query I rowsort
SELECT - 12 + 44 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1323
SELECT DISTINCT - - 87 AS col0, + ( + 65 ) * ( + MAX( + + 59 ) )
----
87
3835

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT - - 87 AS col0, + ( + 65 ) * ( + MAX ( + + 59 ) )
----
87
3835

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1324
SELECT ALL - + 91 / 44 * CAST( NULL AS DECIMAL ) + + 28 + + 66 - 47 * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - + 91 / 44 * CAST ( NULL AS REAL ) + + 28 + + 66 - 47 * - 26 AS col1
----
NULL

query I rowsort
SELECT CASE 24 WHEN + 62 THEN + - 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL - 29 + + MIN( 65 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 29 + + MIN ( 65 ) col2
----
36

query I rowsort
SELECT DISTINCT + 71 + + - 5
----
66

query II rowsort
SELECT + 41 AS col2, + 99 AS col1
----
41
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL MIN( ALL - - 50 ) + 73
----
123

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL MIN ( ALL - - 50 ) + 73
----
123

query I rowsort
SELECT 3 * - + 46 * - 18 + 81 + 60
----
2625

query II rowsort
SELECT ALL - 62, 50 AS col1
----
-62
50

query I rowsort
SELECT DISTINCT - COALESCE ( - - 35, - 33, + + 17 )
----
-35

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

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

query I rowsort
SELECT + + 98
----
98

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

query I rowsort
SELECT 8 * + - 55 - - 1 AS col0
----
-439

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT + + COUNT( * ) - 57 - 84 * - 81 AS col1
----
6748

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT + + COUNT ( * ) - 57 - 84 * - 81 AS col1
----
6748

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT ALL 17 DIV - - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL 17 / - - 78 AS col0
----
0

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

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

query II rowsort
SELECT 71 + 21, - ( - 98 ) * - 82 * 12 * - + 94 * ( + 98 ) AS col2
----
92
888331584

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT COUNT( * ) - + 43 + - + 88
----
-130

skipif mysql # not compatible
query I rowsort label-1342
SELECT COUNT ( * ) - + 43 + - + 88
----
-130

query I rowsort
SELECT 43 AS col0
----
43

query I rowsort
SELECT 16 * - 97 AS col0
----
-1552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1345
SELECT ALL 95 DIV - CAST( - 65 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL 95 / - CAST ( - 65 AS INTEGER )
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT 22 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT 22 / 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT SUM( DISTINCT 7 ) + + COUNT( * ) + + 76 * - 38 * - + 31 * + + COALESCE ( NULLIF ( - 5, - 4 + 48 * 16 ), - 95 ) * + 67
----
-29991872

skipif mysql # not compatible
query I rowsort label-1348
SELECT SUM ( DISTINCT 7 ) + + COUNT ( * ) + + 76 * - 38 * - + 31 * + + COALESCE ( NULLIF ( - 5, - 4 + 48 * 16 ), - 95 ) * + 67
----
-29991872

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT + 51 + - COUNT( ALL 52 )
----
50

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + 51 + - COUNT ( ALL 52 )
----
50

query I rowsort
SELECT NULLIF ( - 86, - 66 ) + - 66
----
-152

query I rowsort
SELECT ALL - 33 + - 5 + + + 30 AS col0
----
-8

query I rowsort
SELECT 31 + 2 - - 31 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT CASE + MIN( - 22 ) WHEN 16 THEN NULLIF ( AVG ( - - 30 ), - 7 ) * COUNT( * ) ELSE NULL END + COALESCE ( - AVG ( 21 ) + + 45 * + 15, NULLIF ( 0, 64 + 41 * 87 ) ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT CASE + MIN ( - 22 ) WHEN 16 THEN NULLIF ( AVG ( - - 30 ), - 7 ) * COUNT ( * ) ELSE NULL END + COALESCE ( - AVG ( 21 ) + + 45 * + 15, NULLIF ( 0, 64 + 41 * 87 ) ) * - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1354
SELECT COALESCE ( + COUNT( DISTINCT + 94 ), 99 + 15 + - 17 * NULLIF ( - 43, - 83 ) * + 38 DIV COUNT( 41 ) ) * MIN( 83 + 50 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-1354
SELECT COALESCE ( + COUNT ( DISTINCT + 94 ), 99 + 15 + - 17 * NULLIF ( - 43, - 83 ) * + 38 / COUNT ( 41 ) ) * MIN ( 83 + 50 ) AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1355
SELECT CAST( NULL AS SIGNED ) + CASE COUNT( * ) WHEN + 48 / - COUNT( * ) THEN NULL WHEN + AVG ( ALL + - ( + 65 ) ) THEN + 94 + 92 * - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT CAST ( NULL AS INTEGER ) + CASE COUNT ( * ) WHEN + 48 / - COUNT ( * ) THEN NULL WHEN + AVG ( ALL + - ( + 65 ) ) THEN + 94 + 92 * - 51 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1356
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2, - ( 25 )
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1356
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2, - ( 25 )
----
NULL
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1357
SELECT CAST( NULL AS SIGNED ) * + - 61 AS col1, NULLIF ( + + COUNT( * ), + 9 / - COUNT( * ) * + + CAST( NULL AS SIGNED ) + 54 ) * 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1357
SELECT CAST ( NULL AS INTEGER ) * + - 61 AS col1, NULLIF ( + + COUNT ( * ), + 9 / - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 54 ) * 66
----
NULL
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT ALL + 61 * + - 62 AS col2, - MAX( DISTINCT - 72 ) AS col2
----
-3782
72

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL + 61 * + - 62 AS col2, - MAX ( DISTINCT - 72 ) AS col2
----
-3782
72

query I rowsort
SELECT - 0 * - + 48 + + + 11 * 64
----
704

query I rowsort
SELECT ALL 75 + + + 9 AS col2
----
84

query I rowsort
SELECT + + 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1362
SELECT ALL + + COUNT( * ) + CASE 36 WHEN + 19 / + 88 - 0 THEN - - 9 + - 84 WHEN + MIN( ALL CAST( NULL AS DECIMAL ) ) * - COUNT( * ) THEN NULL END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + + COUNT ( * ) + CASE 36 WHEN + 19 / + 88 - 0 THEN - - 9 + - 84 WHEN + MIN ( ALL CAST ( NULL AS REAL ) ) * - COUNT ( * ) THEN NULL END / 43
----
NULL

query I rowsort
SELECT + 42 + - ( 74 )
----
-32

query I rowsort
SELECT ALL - - 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT - MIN( DISTINCT + + 42 ) * - - 3 + - - 78 + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-1365
SELECT - MIN ( DISTINCT + + 42 ) * - - 3 + - - 78 + - COUNT ( * )
----
-49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT 79 * + + 12 + - 20 - + COUNT( + 40 ) * + COUNT( * ) * - COUNT( * ) * + 56
----
984

skipif mysql # not compatible
query I rowsort label-1368
SELECT 79 * + + 12 + - 20 - + COUNT ( + 40 ) * + COUNT ( * ) * - COUNT ( * ) * + 56
----
984

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT ALL - 68 DIV - 19 + + + 55 col2
----
58

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - 68 / - 19 + + + 55 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - 63 * - + 49 + + - 5 * - ( - 71 ) + + - COUNT( * ) + + - 10 AS col2
----
2721

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 63 * - + 49 + + - 5 * - ( - 71 ) + + - COUNT ( * ) + + - 10 AS col2
----
2721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT DISTINCT - NULLIF ( + 96, - NULLIF ( 81, - MAX( + 64 ) ) + COALESCE ( - 27, 84 ) + 24 * + 31 * 61 ) / + ( 49 * ( COUNT( * ) ) + 38 / + NULLIF ( + COUNT( * ) / - CAST( NULL AS SIGNED ), - 64 + ( 78 + 76 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT - NULLIF ( + 96, - NULLIF ( 81, - MAX ( + 64 ) ) + COALESCE ( - 27, 84 ) + 24 * + 31 * 61 ) / + ( 49 * ( COUNT ( * ) ) + 38 / + NULLIF ( + COUNT ( * ) / - CAST ( NULL AS INTEGER ), - 64 + ( 78 + 76 ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT DISTINCT - 24 DIV SUM( DISTINCT - 70 ) + 10
----
10

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - 24 / SUM ( DISTINCT - 70 ) + 10
----
10

query II rowsort
SELECT - 76 * 17 AS col2, + 15
----
-1292
15

query I rowsort
SELECT - 27 AS col2
----
-27

query I rowsort
SELECT + 85 + - + ( + 90 )
----
-5

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

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

query II rowsort
SELECT 15, - 79 AS col0
----
15
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT 16 + + - CAST( - 3 AS SIGNED ) + - COUNT( * ) * - CASE - + 53 WHEN + 95 * CAST( NULL AS SIGNED ) THEN 28 + 83 WHEN 30 + COUNT( * ) * 93 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT 16 + + - CAST ( - 3 AS INTEGER ) + - COUNT ( * ) * - CASE - + 53 WHEN + 95 * CAST ( NULL AS INTEGER ) THEN 28 + 83 WHEN 30 + COUNT ( * ) * 93 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - COUNT( * ) * 43 * + 8 * + + 68 * + ( - 29 )
----
678368

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - COUNT ( * ) * 43 * + 8 * + + 68 * + ( - 29 )
----
678368

query I rowsort
SELECT 25 * - - 74 AS col0
----
1850

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL COUNT ( * ) + 91 - + 41 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL + 64 + - - 7 - - COUNT( * ) * - 93 * - COUNT( * ) - + COUNT( * ) AS col1
----
163

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + 64 + - - 7 - - COUNT ( * ) * - 93 * - COUNT ( * ) - + COUNT ( * ) AS col1
----
163

query I rowsort
SELECT 42 AS col2
----
42

query I rowsort
SELECT 15 * 17 * + 54
----
13770

query II rowsort
SELECT 28 AS col2, + 61 col2
----
28
61

query I rowsort
SELECT - 93 * - 59 col1
----
5487

query I rowsort
SELECT + 99 * 71
----
7029

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT - MIN( ALL 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-1388
SELECT - MIN ( ALL 19 ) col2
----
-19

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

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

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

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

query I rowsort
SELECT DISTINCT + 20 + 13 AS col1
----
33

query I rowsort
SELECT ALL 75 * + 4 AS col2
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT 34 * + COALESCE ( 79, - - COUNT( * ) )
----
2686

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 34 * + COALESCE ( 79, - - COUNT ( * ) )
----
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL + COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL + COUNT ( * ) + + 64
----
65

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

query I rowsort
SELECT + 17 * + 58 col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - COUNT( * ) * + 50 + 40
----
-10

skipif mysql # not compatible
query I rowsort label-1397
SELECT - COUNT ( * ) * + 50 + 40
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + 30 - MAX( 92 )
----
-62

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 30 - MAX ( 92 )
----
-62

query I rowsort
SELECT DISTINCT + + 9
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1400
SELECT + + ( CASE + 99 WHEN - 92 + CAST( NULL AS SIGNED ) THEN 86 ELSE 87 DIV - 54 END ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1400
SELECT + + ( CASE + 99 WHEN - 92 + CAST ( NULL AS INTEGER ) THEN 86 ELSE 87 / - 54 END ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + - MAX( - 76 ) * + 3
----
228

skipif mysql # not compatible
query I rowsort label-1401
SELECT + - MAX ( - 76 ) * + 3
----
228

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1404
SELECT ALL + 42 * - 2 - + 5, + NULLIF ( CAST( NULL AS SIGNED ), + 77 * - COUNT( + - 19 ) * 81 ) / 23 AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-1404
SELECT ALL + 42 * - 2 - + 5, + NULLIF ( CAST ( NULL AS INTEGER ), + 77 * - COUNT ( + - 19 ) * 81 ) / 23 AS col2
----
-89
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL - - 19 * + 67 + 22 + 97 + + 28 * + CASE - + AVG ( + - 30 ) WHEN + 83 / + 97 + MIN( DISTINCT 18 + 49 ) THEN + 29 * ( ( 65 ) ) WHEN + 34 THEN + 19 * - 3 ELSE NULL END * COUNT( * ) + + COUNT( * ) / ( + 37 + 60 ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - - 19 * + 67 + 22 + 97 + + 28 * + CASE - + AVG ( + - 30 ) WHEN + 83 / + 97 + MIN ( DISTINCT 18 + 49 ) THEN + 29 * ( ( 65 ) ) WHEN + 34 THEN + 19 * - 3 ELSE NULL END * COUNT ( * ) + + COUNT ( * ) / ( + 37 + 60 ) * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + + MIN( DISTINCT - 74 ) + + MAX( - 86 )
----
-160

skipif mysql # not compatible
query I rowsort label-1407
SELECT + + MIN ( DISTINCT - 74 ) + + MAX ( - 86 )
----
-160

query I rowsort
SELECT ALL - 45 * 0 col1
----
0

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

query I rowsort
SELECT + 22 - + 64
----
-42

query I rowsort
SELECT 25 col1
----
25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT CAST( NULL AS SIGNED ) * - - 17 + - 76 + 50 / - 87 + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT CAST ( NULL AS INTEGER ) * - - 17 + - 76 + 50 / - 87 + - - 85
----
NULL

query I rowsort
SELECT ALL 83 * - 55 AS col1
----
-4565

query I rowsort
SELECT ALL - 56 * + 54 + - 84 + 34
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL 38 * + COUNT( * ) + + - 52
----
-14

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL 38 * + COUNT ( * ) + + - 52
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT - 30 DIV - 53 * - 17
----
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT - 30 / - 53 * - 17
----
0

query II rowsort
SELECT - 23 - 91, 44 AS col1
----
-114
44

query I rowsort
SELECT - 94 + - 60 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - COUNT( * ) + + + 68 * - + 6 * 35 AS col2
----
-14281

skipif mysql # not compatible
query I rowsort label-1421
SELECT - COUNT ( * ) + + + 68 * - + 6 * 35 AS col2
----
-14281

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL + 33 + + + 80 + - COUNT( * ) * 66 - + 22 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + 33 + + + 80 + - COUNT ( * ) * 66 - + 22 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1423
SELECT - MIN( - - 85 ) AS col2, - CAST( NULL AS SIGNED ) AS col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-1423
SELECT - MIN ( - - 85 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
-85
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN( ALL + - 52 ) ) * 39 AS col1
----
-15
2847

skipif mysql # not compatible
query II rowsort label-1424
SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN ( ALL + - 52 ) ) * 39 AS col1
----
-15
2847

onlyif mysql # aggregate syntax: 
query II rowsort label-1425
SELECT - 40 + + COALESCE ( + - 18, - COUNT( * ) ) AS col1, 96
----
-58
96

skipif mysql # not compatible
query II rowsort label-1425
SELECT - 40 + + COALESCE ( + - 18, - COUNT ( * ) ) AS col1, 96
----
-58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL - MAX( - - 97 ) - 66 * - 72 AS col2
----
4655

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL - MAX ( - - 97 ) - 66 * - 72 AS col2
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT DISTINCT CASE - - ( - + 52 ) WHEN + CASE + + NULLIF ( - 99, + + CAST( + + 19 AS SIGNED ) ) WHEN ( 49 ) + 31 THEN + 31 * 77 ELSE 14 / - 87 END THEN MIN( ALL 74 ) WHEN 80 - - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT CASE - - ( - + 52 ) WHEN + CASE + + NULLIF ( - 99, + + CAST ( + + 19 AS INTEGER ) ) WHEN ( 49 ) + 31 THEN + 31 * 77 ELSE 14 / - 87 END THEN MIN ( ALL 74 ) WHEN 80 - - 7 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT - NULLIF ( - 79, + + ( 4 ) + 34 * - 11 - COUNT( * ) ) + - + ( 42 ) + + CAST( - 54 AS SIGNED ) * + 30 AS col1
----
-1583

skipif mysql # not compatible
query I rowsort label-1428
SELECT - NULLIF ( - 79, + + ( 4 ) + 34 * - 11 - COUNT ( * ) ) + - + ( 42 ) + + CAST ( - 54 AS INTEGER ) * + 30 AS col1
----
-1583

query I rowsort
SELECT DISTINCT 43
----
43

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

query I rowsort
SELECT - + 62 * + 4
----
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1432
SELECT COUNT( - + ( CAST( + + 35 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1432
SELECT COUNT ( - + ( CAST ( + + 35 AS INTEGER ) ) ) AS col1
----
1

query I rowsort
SELECT + - 98 + 53
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL - 92 - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - 92 - COUNT ( * )
----
-93

query I rowsort
SELECT + + 23 + - 53 AS col2
----
-30

query I rowsort
SELECT ALL 21 * + 76 + + 54 / - CASE + 59 WHEN 77 * 10 * - + 50 + + + 83 THEN + 75 WHEN 65 * 11 THEN NULL END / 95 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 78 col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT ALL + - MAX( 12 ) AS col1, + 61
----
-12
61

skipif mysql # not compatible
query II rowsort label-1438
SELECT ALL + - MAX ( 12 ) AS col1, + 61
----
-12
61

query I rowsort
SELECT + 84 * + - 44 + + 66 AS col2
----
-3630

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT COUNT ( * ) * - 21
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT - - 85 DIV + 77 + + 5 + 4 * + + ( + COUNT( + + 36 ) ) * + - 84 * - - 3 col1
----
-1002

skipif mysql # not compatible
query I rowsort label-1443
SELECT - - 85 / + 77 + + 5 + 4 * + + ( + COUNT ( + + 36 ) ) * + - 84 * - - 3 col1
----
-1002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT ALL - ( - + 16 ) DIV + + CASE ( - 60 ) WHEN 16 + + + 85 + - - 62 * - + 9 * 95 THEN NULL WHEN 90 THEN NULL ELSE 63 END + + CASE - ( COUNT( * ) ) + 57 WHEN 48 THEN + 69 ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - ( - + 16 ) / + + CASE ( - 60 ) WHEN 16 + + + 85 + - - 62 * - + 9 * 95 THEN NULL WHEN 90 THEN NULL ELSE 63 END + + CASE - ( COUNT ( * ) ) + 57 WHEN 48 THEN + 69 ELSE - 86 END
----
-86

query II rowsort
SELECT ALL + ( + + 46 ) AS col1, ( 70 )
----
46
70

query I rowsort
SELECT + CASE + COALESCE ( 46, - - 7, 97 ) WHEN + 85 THEN NULL ELSE + - 55 * 93 END * 56
----
-286440

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ( + 52 ) * + COUNT( * ) + 35 + - 89
----
-2

skipif mysql # not compatible
query I rowsort label-1447
SELECT ( + 52 ) * + COUNT ( * ) + 35 + - 89
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT COALESCE ( - - 49, - + COUNT( * ), + 65 )
----
49

skipif mysql # not compatible
query I rowsort label-1449
SELECT COALESCE ( - - 49, - + COUNT ( * ), + 65 )
----
49

query I rowsort
SELECT + 20 + - - ( - + 44 ) AS col2
----
-24

query I rowsort
SELECT + 54 * 45 AS col2
----
2430

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1453
SELECT 65 * - - CAST( 65 AS SIGNED ) + - - 7 AS col0
----
4232

skipif mysql # not compatible
query I rowsort label-1453
SELECT 65 * - - CAST ( 65 AS INTEGER ) + - - 7 AS col0
----
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT CASE + - 61 WHEN + COALESCE ( + + 37, + 77, 90 + + 21 ) * 68 THEN - COUNT( + 49 ) - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT CASE + - 61 WHEN + COALESCE ( + + 37, + 77, 90 + + 21 ) * 68 THEN - COUNT ( + 49 ) - + COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( 98, + + ( - 96 ) ) * - - 84 * 23 + - 24
----
189312

query I rowsort
SELECT + 24 + + - 16 + + 87 + 26 + 1 * - 36 + 66 * 89 AS col2
----
5959

query II rowsort
SELECT - 12, 36 AS col2
----
-12
36

query I rowsort
SELECT 41 + 84 col2
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT - 68 col0, - SUM( DISTINCT 84 ) col1
----
-68
-84

skipif mysql # not compatible
query II rowsort label-1460
SELECT - 68 col0, - SUM ( DISTINCT 84 ) col1
----
-68
-84

query I rowsort
SELECT 57 * + 84 AS col1
----
4788

query I rowsort
SELECT DISTINCT 72 AS col1
----
72

query I rowsort
SELECT ALL 23 AS col0
----
23

query I rowsort
SELECT ALL 70 - + 70
----
0

query I rowsort
SELECT ALL + 2 - - - 65
----
-63

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

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

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

query I rowsort
SELECT - 36 AS col2
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT 66 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT 66 / - 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT CAST( NULL AS SIGNED ) * 30 * + 24 / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT CAST ( NULL AS INTEGER ) * 30 * + 24 / - 15
----
NULL

query I rowsort
SELECT 72 + 42
----
114

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

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

query II rowsort
SELECT ALL - + 53 - + 59 * - - 13 col1, + 56 * + 11 AS col1
----
-820
616

query I rowsort
SELECT 26 * - - 58 * - - 68
----
102544

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - SUM( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1476
SELECT - SUM ( 26 )
----
-26

query I rowsort
SELECT - - 85
----
85

query I rowsort
SELECT 72 - - 1 + - 12
----
61

query I rowsort
SELECT - - 16
----
16

query I rowsort
SELECT - 79 - + 91 * + + ( + ( 3 ) ) * + 41 + - - 71
----
-11201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1481
SELECT ALL + + MIN( + 23 ) * - 38 * + 2 * - NULLIF ( + + 74, + + ( + COUNT( * ) ) ) * - 89 * 81 DIV 9 AS col0
----
-103610952

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + + MIN ( + 23 ) * - 38 * + 2 * - NULLIF ( + + 74, + + ( + COUNT ( * ) ) ) * - 89 * 81 / 9 AS col0
----
-103610952

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT 65 + + - 78 DIV - 67
----
66

skipif mysql # not compatible
query I rowsort label-1483
SELECT 65 + + - 78 / - 67
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL + COUNT( * ) * - - ( 57 ) * + - 16
----
-912

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + COUNT ( * ) * - - ( 57 ) * + - 16
----
-912

query I rowsort
SELECT DISTINCT - 13 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT 72 * - 72 + + ( - 74 ) * + - MIN( - 26 ) + 17 * + COALESCE ( - - 61, CAST( NULL AS SIGNED ) * 64 - 51, COUNT( * ) ) * 7 + + 4 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-1487
SELECT 72 * - 72 + + ( - 74 ) * + - MIN ( - 26 ) + 17 * + COALESCE ( - - 61, CAST ( NULL AS INTEGER ) * 64 - 51, COUNT ( * ) ) * 7 + + 4 AS col1
----
155

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

query II rowsort
SELECT - 95 AS col1, 93
----
-95
93

query I rowsort
SELECT ALL - - 12
----
12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT 64 DIV - - 26
----
2

skipif mysql # not compatible
query I rowsort label-1492
SELECT 64 / - - 26
----
2

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

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

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

query I rowsort
SELECT DISTINCT 39 + + 59 AS col2
----
98

query I rowsort
SELECT 13 + 72 AS col1
----
85

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

query I rowsort
SELECT ALL 57 + + 95 * - - 79 AS col2
----
7562

query I rowsort
SELECT ALL - + 61
----
-61

query I rowsort
SELECT ALL - 5 + + + 62 * + - 8 + - 71
----
-572

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT 31 DIV - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT 31 / - 38 AS col2
----
0

query I rowsort
SELECT ALL 30 + - 14
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT( * ) WHEN 67 / + SUM( ALL - 65 ) THEN + 2 + COUNT( * ) * 56 END AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-1504
SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1
----
44
NULL

query I rowsort
SELECT 15 * + - 98
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT 70 * - 46 * - 5 + - - 62 * + NULLIF ( 70, MIN( ALL + 5 ) ) + - + SUM( 35 ) AS col0
----
20405

skipif mysql # not compatible
query I rowsort label-1506
SELECT 70 * - 46 * - 5 + - - 62 * + NULLIF ( 70, MIN ( ALL + 5 ) ) + - + SUM ( 35 ) AS col0
----
20405

query II rowsort
SELECT 87, 20 + - 18 AS col1
----
87
2

query II rowsort
SELECT ALL - 95 AS col2, + 71 AS col2
----
-95
71

query I rowsort
SELECT DISTINCT - 69
----
-69

query I rowsort
SELECT DISTINCT 72 col0
----
72

query I rowsort
SELECT ALL 52 - - 23 - - 70
----
145

query I rowsort
SELECT DISTINCT 26 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT DISTINCT 81 - + 45 * - NULLIF ( - 0, + COUNT( - + 55 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT 81 - + 45 * - NULLIF ( - 0, + COUNT ( - + 55 ) ) AS col0
----
81

query I rowsort
SELECT 30 + 51
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT COALESCE ( - - 80, + 4 DIV - + MAX( DISTINCT - 52 ) ) * + 93 AS col2
----
7440

skipif mysql # not compatible
query I rowsort label-1515
SELECT COALESCE ( - - 80, + 4 / - + MAX ( DISTINCT - 52 ) ) * + 93 AS col2
----
7440

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1517
SELECT DISTINCT 10 * + - COALESCE ( SUM( ALL - 94 ), + - CAST( NULL AS SIGNED ) + - - 36 + - + 57 * + 24, - + 80 ), + 4 * 36 AS col2
----
940
144

skipif mysql # not compatible
query II rowsort label-1517
SELECT DISTINCT 10 * + - COALESCE ( SUM ( ALL - 94 ), + - CAST ( NULL AS INTEGER ) + - - 36 + - + 57 * + 24, - + 80 ), + 4 * 36 AS col2
----
940
144

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

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

query I rowsort
SELECT + COALESCE ( + ( - 3 ), + - ( + - 8 ) ) AS col2
----
-3

query I rowsort
SELECT ALL NULLIF ( - + 26, - 7 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT SUM( ALL + 92 ) + - + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( ALL + 92 ) + - + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT ALL + 90 * 44 + 95 + + COUNT( + 4 ) * + ( - - 13 ), + 99 AS col0
----
4068
99

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL + 90 * 44 + 95 + + COUNT ( + 4 ) * + ( - - 13 ), + 99 AS col0
----
4068
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT 18 * + CASE + 32 WHEN + ( 54 ) THEN NULL ELSE MAX( + - 93 ) END AS col1
----
-1674

skipif mysql # not compatible
query I rowsort label-1523
SELECT 18 * + CASE + 32 WHEN + ( 54 ) THEN NULL ELSE MAX ( + - 93 ) END AS col1
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT COALESCE ( - + 26, + 6, - 70, 87 ) + 55 * - - ( MAX( 0 ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT COALESCE ( - + 26, + 6, - 70, 87 ) + 55 * - - ( MAX ( 0 ) ) col1
----
-26

query I rowsort
SELECT - 86 * 28 col0
----
-2408

query I rowsort
SELECT ALL - 8 AS col0
----
-8

query I rowsort
SELECT ALL + 40 + + 37 * - + 57 AS col0
----
-2069

query I rowsort
SELECT 97 + - 34
----
63

query II rowsort
SELECT + 17, 28 col2
----
17
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT 56 + COUNT( * ) AS col0, - ( + 57 ) col0
----
57
-57

skipif mysql # not compatible
query II rowsort label-1530
SELECT 56 + COUNT ( * ) AS col0, - ( + 57 ) col0
----
57
-57

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

skipif mysql # not compatible
query I rowsort label-1531
SELECT - MIN ( ALL - 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT MAX( + 15 ) * + 6 + + 83 - 97 * + - 18 + + CASE - COUNT( * ) WHEN - - ( + 94 ) + - 83 + - 74 * 51 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT MAX ( + 15 ) * + 6 + + 83 - 97 * + - 18 + + CASE - COUNT ( * ) WHEN - - ( + 94 ) + - 83 + - 74 * 51 THEN 13 END
----
NULL

query I rowsort
SELECT - 26 + + 90 * + 34 AS col2
----
3034

query II rowsort
SELECT DISTINCT 6 AS col2, + 28 AS col2
----
6
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - 58 + SUM( + 37 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - 58 + SUM ( + 37 ) AS col2
----
-21

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

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

query II rowsort
SELECT 76 AS col2, 16
----
76
16

query I rowsort
SELECT + ( 57 ) col1
----
57

query I rowsort
SELECT ALL - 25 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT DISTINCT - 55 * - + 3 / + ( 38 ) * + COUNT( * ) / - - CASE - + 1 WHEN + + 20 * 68 + - CAST( + 10 AS SIGNED ) THEN + 60 - 74 ELSE NULL END + + NULLIF ( 28 + + 20, + 94 - - 52 ) / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - 55 * - + 3 / + ( 38 ) * + COUNT ( * ) / - - CASE - + 1 WHEN + + 20 * 68 + - CAST ( + 10 AS INTEGER ) THEN + 60 - 74 ELSE NULL END + + NULLIF ( 28 + + 20, + 94 - - 52 ) / 21
----
NULL

query I rowsort
SELECT 13 AS col0
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT DISTINCT + + COUNT( * ) * - 63 + + - 83 + + 13 DIV 87
----
-146

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT + + COUNT ( * ) * - 63 + + - 83 + + 13 / 87
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT + COUNT( * ) * - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT + COUNT ( * ) * - 40 AS col2
----
-40

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

query I rowsort
SELECT DISTINCT - 80 * - 96 * - 57 - - 70 AS col0
----
-437690

query I rowsort
SELECT 74 * - 47 + ( - 2 ) + + + 91
----
-3389

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - 12 * COUNT( * ) * - 42 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-1548
SELECT - 12 * COUNT ( * ) * - 42 AS col0
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT + 69 * - - 88 + - + 93 col1, COUNT( * )
----
5979
1

skipif mysql # not compatible
query II rowsort label-1549
SELECT + 69 * - - 88 + - + 93 col1, COUNT ( * )
----
5979
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1550
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN CAST( + 78 AS SIGNED ) ELSE + 0 DIV 80 - - - MIN( ALL 0 ) END
----
0

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN CAST ( + 78 AS INTEGER ) ELSE + 0 / 80 - - - MIN ( ALL 0 ) END
----
0

query I rowsort
SELECT + 6 * - 23 + - 25
----
-163

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

query I rowsort
SELECT ALL 76 * - 18
----
-1368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT - ( - - 7 ) DIV SUM( DISTINCT + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - ( - - 7 ) / SUM ( DISTINCT + 39 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1555
SELECT ALL + CASE + COUNT( * ) WHEN CAST( - NULLIF ( 82, - - ( - - 4 ) * - 5 + 38 ) AS DECIMAL ) THEN - 4 + + 89 + + 70 / - 30 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + CASE + COUNT ( * ) WHEN CAST ( - NULLIF ( 82, - - ( - - 4 ) * - 5 + 38 ) AS REAL ) THEN - 4 + + 89 + + 70 / - 30 ELSE COUNT ( * ) END
----
1

query II rowsort
SELECT - 17 * + 91, - 95 * + ( 24 ) * 9 AS col2
----
-1547
-20520

query I rowsort
SELECT ALL - 11 * - 78 AS col1
----
858

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT ALL - COUNT( * ) * + - SUM( ALL 3 ) AS col2, 28 col2
----
3
28

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2
----
3
28

query I rowsort
SELECT - 81 * + 33 AS col1
----
-2673

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 77 )
----
77

query I rowsort
SELECT ALL - 43 AS col2
----
-43

query I rowsort
SELECT ALL + - 94 + 40
----
-54

query I rowsort
SELECT - ( + 22 ) + - + 78
----
-100

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

query I rowsort
SELECT + 41 + 16 - 88 AS col2
----
-31

query I rowsort
SELECT - + 71
----
-71

query I rowsort
SELECT - + CASE + 45 WHEN + 58 THEN + + 51 - + 39 * - AVG ( + 17 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT SUM( + 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-1569
SELECT SUM ( + 41 ) col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT ALL + ( + 40 ) + - 61 DIV - 77 + MAX( DISTINCT + 42 ) * COALESCE ( + 32, - 96, + NULLIF ( + 50, + - 16 ) * 22 ) col1
----
1384

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + ( + 40 ) + - 61 / - 77 + MAX ( DISTINCT + 42 ) * COALESCE ( + 32, - 96, + NULLIF ( + 50, + - 16 ) * 22 ) col1
----
1384

query I rowsort
SELECT + - 23 - + 93
----
-116

query I rowsort
SELECT DISTINCT 35 AS col1
----
35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1574
SELECT DISTINCT + 85 * + + 78 + - + 63 DIV MIN( + 1 ) col0, ( - 90 ) * - 35
----
6567
3150

skipif mysql # not compatible
query II rowsort label-1574
SELECT DISTINCT + 85 * + + 78 + - + 63 / MIN ( + 1 ) col0, ( - 90 ) * - 35
----
6567
3150

query I rowsort
SELECT ALL 60 + - 83 AS col0
----
-23

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

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

query I rowsort
SELECT ALL + + 83 AS col0
----
83

query I rowsort
SELECT - - 7 - - 90 AS col1
----
97

query I rowsort
SELECT ( + + 72 ) col1
----
72

query I rowsort
SELECT ( - + 24 ) AS col1
----
-24

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT DISTINCT - ( - 68 ) DIV + NULLIF ( - 93, ( + - 92 ) ) - 21 - - COUNT( * ) AS col1, - COALESCE ( 77, 94 * + 82 + + - 55 + 82 ) AS col2
----
-20
-77

skipif mysql # not compatible
query II rowsort label-1582
SELECT DISTINCT - ( - 68 ) / + NULLIF ( - 93, ( + - 92 ) ) - 21 - - COUNT ( * ) AS col1, - COALESCE ( 77, 94 * + 82 + + - 55 + 82 ) AS col2
----
-20
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT CASE - 24 WHEN - 34 * - - 54 * 51 / + + 72 * 19 * + + 78 THEN - - 37 + NULLIF ( 79, + ( + SUM( + 41 ) ) ) WHEN - 45 THEN NULL WHEN NULLIF ( 27, 31 ) / + 59 + 65 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) - - MIN( ALL COALESCE ( 43, + 13 * 92, - ( CAST( NULL AS SIGNED ) ) * - 29 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT CASE - 24 WHEN - 34 * - - 54 * 51 / + + 72 * 19 * + + 78 THEN - - 37 + NULLIF ( 79, + ( + SUM ( + 41 ) ) ) WHEN - 45 THEN NULL WHEN NULLIF ( 27, 31 ) / + 59 + 65 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) - - MIN ( ALL COALESCE ( 43, + 13 * 92, - ( CAST ( NULL AS INTEGER ) ) * - 29 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 16 * 98
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ( MIN( + + ( 29 ) ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1586
SELECT ( MIN ( + + ( 29 ) ) ) AS col2
----
29

query I rowsort
SELECT ALL 47 * - 33 AS col0
----
-1551

query I rowsort
SELECT DISTINCT + 79
----
79

query II rowsort
SELECT DISTINCT + 18 col0, 67
----
18
67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT + 5 + + - CASE 63 WHEN - - MIN( ALL ( 61 ) ) - - 48 THEN + 96 * + 58 WHEN + + AVG ( - - 15 ) THEN + + 21 - - ( + 52 ) * - 19 END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT + 5 + + - CASE 63 WHEN - - MIN ( ALL ( 61 ) ) - - 48 THEN + 96 * + 58 WHEN + + AVG ( - - 15 ) THEN + + 21 - - ( + 52 ) * - 19 END * 2
----
NULL

query II rowsort
SELECT + 21 AS col2, 82 AS col2
----
21
82

query I rowsort
SELECT - 58 * + - 54
----
3132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT + ( - MAX( - 60 ) ) * COUNT( * ) + 40 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + ( - MAX ( - 60 ) ) * COUNT ( * ) + 40 AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT ALL 19 * - - 43 * - - 55 * + + COUNT( * ) + - 47 * - 1 + - COUNT( ALL - + 70 ) AS col0, COUNT( 40 )
----
44981
1

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL 19 * - - 43 * - - 55 * + + COUNT ( * ) + - 47 * - 1 + - COUNT ( ALL - + 70 ) AS col0, COUNT ( 40 )
----
44981
1

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

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

query I rowsort
SELECT ALL 44 * - 95 * - 91 + - - 47 - - 40
----
380467

query II rowsort
SELECT - 39, - 67 AS col1
----
-39
-67

query I rowsort
SELECT - 59 + 72 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT - + MIN( DISTINCT + + 82 ) + CAST( - 33 AS SIGNED ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-1602
SELECT - + MIN ( DISTINCT + + 82 ) + CAST ( - 33 AS INTEGER ) AS col1
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-1603
SELECT - - 18 DIV - - 48 - - - 81 col1, - 6 + 86
----
-81
80

skipif mysql # not compatible
query II rowsort label-1603
SELECT - - 18 / - - 48 - - - 81 col1, - 6 + 86
----
-81
80

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

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

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

query I rowsort
SELECT - + 44 * + 50 - - + 18 + 67 + - ( + 51 ) * + 81 + - + 29 AS col1
----
-6275

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

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

query I rowsort
SELECT - - 70
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL 78 + + COUNT( + 73 ) + + + ( + - 84 ) + + 37 * - NULLIF ( 42, + COUNT( ALL - ( 72 ) ) + 74 ) * - 27 + 91 * 49
----
46412

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 78 + + COUNT ( + 73 ) + + + ( + - 84 ) + + 37 * - NULLIF ( 42, + COUNT ( ALL - ( 72 ) ) + 74 ) * - 27 + 91 * 49
----
46412

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT + 30 + COUNT ( * ) AS col1
----
31

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

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

query I rowsort
SELECT ALL + - CASE - 54 WHEN + 99 THEN 49 * + 98 + + - 48 - - 1 WHEN + 52 THEN + - 82 WHEN 6 * + 49 THEN - 87 * - ( + 97 ) END - + 26 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 24
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1615
SELECT + 97 * + CAST( 45 AS SIGNED ) * + + NULLIF ( + 26, - - NULLIF ( 18, - 51 ) ) col2, + 48
----
113490
48

skipif mysql # not compatible
query II rowsort label-1615
SELECT + 97 * + CAST ( 45 AS INTEGER ) * + + NULLIF ( + 26, - - NULLIF ( 18, - 51 ) ) col2, + 48
----
113490
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL COUNT( ALL + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL COUNT ( ALL + 7 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1617
SELECT + MIN( NULLIF ( 72, + - CAST( 27 AS DECIMAL ) ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1617
SELECT + MIN ( NULLIF ( 72, + - CAST ( 27 AS REAL ) ) ) AS col1
----
72

query II rowsort
SELECT ALL 42 AS col1, + 66
----
42
66

query III rowsort
SELECT 65 * 5 + + 39, - 92 col2, + 8 AS col0
----
364
-92
8

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

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

query I rowsort
SELECT ALL - 66 col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1622
SELECT - 60 DIV 86 DIV COUNT( ALL - 42 ) + - NULLIF ( - 88, - 67 + + 93 - - COUNT( * ) ) AS col0, 71 + 89 AS col2
----
88
160

skipif mysql # not compatible
query II rowsort label-1622
SELECT - 60 / 86 / COUNT ( ALL - 42 ) + - NULLIF ( - 88, - 67 + + 93 - - COUNT ( * ) ) AS col0, 71 + 89 AS col2
----
88
160

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

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL COUNT ( * ) * 74 * 41 AS col1
----
3034

query I rowsort
SELECT DISTINCT - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 56 + - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1625
SELECT 56 + - COUNT ( * ) AS col1
----
55

query I rowsort
SELECT DISTINCT - 92
----
-92

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

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

query I rowsort
SELECT ( - - 40 ) + - 3 AS col1
----
37

query I rowsort
SELECT ALL 93 + - 93 AS col0
----
0

query I rowsort
SELECT ALL 52 * + 26
----
1352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT DISTINCT CAST( - 1 AS SIGNED ) + + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT CAST ( - 1 AS INTEGER ) + + 69 AS col1
----
68

query I rowsort
SELECT ALL 57 + 50 AS col0
----
107

query I rowsort
SELECT ALL - NULLIF ( + 74, 61 * + 51 + 63 )
----
-74

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

query I rowsort
SELECT DISTINCT 92 + - 39 * - 80
----
3212

query I rowsort
SELECT ALL - 49 + + 34
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT ALL COUNT( * ) * + COUNT( - - 43 ) / CAST( 78 AS SIGNED ) * + + CASE + 67 WHEN + 21 THEN - - 35 WHEN - AVG ( 75 ) + + + 12 THEN NULL END * + CAST( 70 AS SIGNED ) - - COALESCE ( 26, - 87 + + MIN( DISTINCT + 23 ), + 86 / + ( 3 ) + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL COUNT ( * ) * + COUNT ( - - 43 ) / CAST ( 78 AS INTEGER ) * + + CASE + 67 WHEN + 21 THEN - - 35 WHEN - AVG ( 75 ) + + + 12 THEN NULL END * + CAST ( 70 AS INTEGER ) - - COALESCE ( 26, - 87 + + MIN ( DISTINCT + 23 ), + 86 / + ( 3 ) + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1638
SELECT ALL - ( + CAST( NULL AS SIGNED ) ), 7 * 84 * + CAST( - 60 AS SIGNED ) * - ( - CAST( - - 39 AS SIGNED ) ) AS col1
----
NULL
-1375920

skipif mysql # not compatible
query II rowsort label-1638
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), 7 * 84 * + CAST ( - 60 AS INTEGER ) * - ( - CAST ( - - 39 AS INTEGER ) ) AS col1
----
NULL
-1375920

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

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

query I rowsort
SELECT COALESCE ( 67, - 20 )
----
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + + COUNT( * ) + + MIN( - + 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + + COUNT ( * ) + + MIN ( - + 6 )
----
-5

query I rowsort
SELECT - - 54 AS col2
----
54

query I rowsort
SELECT + 19
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT ALL + - 35 - + 71 + + 74 - - 56 DIV - + 24
----
-34

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + - 35 - + 71 + + 74 - - 56 / - + 24
----
-34

query I rowsort
SELECT DISTINCT + 79 * 87 AS col0
----
6873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT DISTINCT + COUNT( ALL 39 ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + COUNT ( ALL 39 ) / 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT - 82 DIV 79 * 0 * - 43
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT - 82 / 79 * 0 * - 43
----
0

query I rowsort
SELECT ALL + 35 * 34
----
1190

query II rowsort
SELECT - 21 * 92 AS col1, 75 AS col2
----
-1932
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT - - COUNT( * ) * + 78 * - MIN( ALL + 57 )
----
-4446

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT - - COUNT ( * ) * + 78 * - MIN ( ALL + 57 )
----
-4446

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT - 48 DIV + 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 48 / + 17 AS col1
----
-2

query I rowsort
SELECT 34 * - 36
----
-1224

query I rowsort
SELECT - 62 - + 23 AS col2
----
-85

query I rowsort
SELECT ALL - ( 94 ) AS col2
----
-94

query II rowsort
SELECT 45 AS col0, 50
----
45
50

query I rowsort
SELECT 50 * - 12
----
-600

query I rowsort
SELECT + 6 col0
----
6

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

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

query I rowsort
SELECT 40 * + + 69 col1
----
2760

onlyif mysql # DIV for integer division: 
query III rowsort label-1663
SELECT + 17 col1, + 62 DIV + 14 AS col0, + 8 + - + 28 + - 68 + + COALESCE ( + 11, - ( + 17 ) * - 12 + + - 58 )
----
17
4
-77

skipif mysql # not compatible
query III rowsort label-1663
SELECT + 17 col1, + 62 / + 14 AS col0, + 8 + - + 28 + - 68 + + COALESCE ( + 11, - ( + 17 ) * - 12 + + - 58 )
----
17
4
-77

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

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

query I rowsort
SELECT ALL 46 + 66 * 73 AS col2
----
4864

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT ALL + 81 + + 84 + - + 65 DIV + 81 * 14
----
165

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + 81 + + 84 + - + 65 / + 81 * 14
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT MAX( ALL + 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-1667
SELECT MAX ( ALL + 23 ) col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1668
SELECT DISTINCT - 17 AS col1, - CAST( - + AVG ( CAST( - - 92 AS SIGNED ) ) AS SIGNED ) col1
----
-17
92

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT - 17 AS col1, - CAST ( - + AVG ( CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) col1
----
-17
92

query I rowsort
SELECT ALL - 29 AS col0
----
-29

query III rowsort
SELECT - 74, - ( 65 ) AS col0, + 44 * 51 * 33 + + 24 AS col1
----
-74
-65
74076

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1671
SELECT + 3 + + COALESCE ( 33, + + AVG ( - 81 ) + + + CAST( - 37 AS SIGNED ) ) DIV - 52, + 98 AS col0
----
3
98

skipif mysql # not compatible
query II rowsort label-1671
SELECT + 3 + + COALESCE ( 33, + + AVG ( - 81 ) + + + CAST ( - 37 AS INTEGER ) ) / - 52, + 98 AS col0
----
3
98

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

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

query I rowsort
SELECT DISTINCT - 74 * + - 29 + - 98 - NULLIF ( - + 84, + 71 ) AS col2
----
2132

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

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

query I rowsort
SELECT ALL - 41 * 8 AS col2
----
-328

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

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

query I rowsort
SELECT + 43 + - - 9 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1679
SELECT - 81 AS col2, 91 * + CAST( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS SIGNED ) AS col2
----
-81
-7007

skipif mysql # not compatible
query II rowsort label-1679
SELECT - 81 AS col2, 91 * + CAST ( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS INTEGER ) AS col2
----
-81
-7007

query II rowsort
SELECT + 98 AS col0, 64 AS col0
----
98
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT - 79 + 93 + COUNT( * ) * + + 25
----
39

skipif mysql # not compatible
query I rowsort label-1681
SELECT - 79 + 93 + COUNT ( * ) * + + 25
----
39

query I rowsort
SELECT + - 84 * + - 88 + - - 89
----
7481

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

query I rowsort
SELECT ALL - 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1685
SELECT DISTINCT + 33, 8 + + + 40 + - COUNT( * ) + + 73 * - - 81 * - 7 AS col0
----
33
-41344

skipif mysql # not compatible
query II rowsort label-1685
SELECT DISTINCT + 33, 8 + + + 40 + - COUNT ( * ) + + 73 * - - 81 * - 7 AS col0
----
33
-41344

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT - - CAST( - 73 AS SIGNED ) * - 48 * - 40
----
-140160

skipif mysql # not compatible
query I rowsort label-1688
SELECT - - CAST ( - 73 AS INTEGER ) * - 48 * - 40
----
-140160

query I rowsort
SELECT ALL + 57 * 37 AS col2
----
2109

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT ALL + 84 DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + 84 / 72
----
1

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

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

query I rowsort
SELECT - ( 65 )
----
-65

query I rowsort
SELECT - 49 col0
----
-49

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

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

query II rowsort
SELECT ALL - 57 * 80, 68 col2
----
-4560
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT - 88 DIV + 15 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1696
SELECT - 88 / + 15 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + 94 + + 16 + - + ( + - MAX( ALL - - 54 ) ) + - 84 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + 94 + + 16 + - + ( + - MAX ( ALL - - 54 ) ) + - 84 AS col2
----
80

query II rowsort
SELECT 17 AS col1, - 51
----
17
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1699
SELECT 52 col0, SUM( ALL 12 )
----
52
12

skipif mysql # not compatible
query II rowsort label-1699
SELECT 52 col0, SUM ( ALL 12 )
----
52
12

query I rowsort
SELECT ALL + 85 + + 71 * + + 69
----
4984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL COUNT( * ) * 31 + + 59 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL COUNT ( * ) * 31 + + 59 AS col1
----
90

query I rowsort
SELECT ALL + NULLIF ( + - 7, - 72 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1704
SELECT ( + CASE NULLIF ( 86, + - 85 * 43 + + 56 * - 89 ) WHEN - - NULLIF ( + CAST( - 79 AS SIGNED ), 34 ) THEN NULL WHEN 66 + + + 15 THEN 78 * - 91 WHEN + CAST( NULLIF ( 50, - 56 * CAST( CAST( NULL AS DECIMAL ) * ( 76 ) AS SIGNED ) + + 6 * CASE 52 WHEN 99 * - 49 THEN COUNT( * ) END ) AS SIGNED ) + - ( 97 ) / + CAST( NULL AS SIGNED ) THEN 74 / 47 WHEN 60 * - COUNT( * ) + + 30 * + 23 THEN NULL ELSE + 88 END )
----
88

skipif mysql # not compatible
query I rowsort label-1704
SELECT ( + CASE NULLIF ( 86, + - 85 * 43 + + 56 * - 89 ) WHEN - - NULLIF ( + CAST ( - 79 AS INTEGER ), 34 ) THEN NULL WHEN 66 + + + 15 THEN 78 * - 91 WHEN + CAST ( NULLIF ( 50, - 56 * CAST ( CAST ( NULL AS REAL ) * ( 76 ) AS INTEGER ) + + 6 * CASE 52 WHEN 99 * - 49 THEN COUNT ( * ) END ) AS INTEGER ) + - ( 97 ) / + CAST ( NULL AS INTEGER ) THEN 74 / 47 WHEN 60 * - COUNT ( * ) + + 30 * + 23 THEN NULL ELSE + 88 END )
----
88

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

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

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

query I rowsort
SELECT + 22 + + + 23 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1708
SELECT + COUNT( DISTINCT + 26 ) AS col2, + AVG ( DISTINCT + 28 ) * - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1708
SELECT + COUNT ( DISTINCT + 26 ) AS col2, + AVG ( DISTINCT + 28 ) * - CAST ( NULL AS INTEGER )
----
1
NULL

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

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

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

query I rowsort
SELECT NULLIF ( - 11, 22 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT 22 * + + 16 + 1 DIV 76 AS col1
----
352

skipif mysql # not compatible
query I rowsort label-1712
SELECT 22 * + + 16 + 1 / 76 AS col1
----
352

query II rowsort
SELECT + 40 AS col2, - CASE + 20 WHEN 79 * 12 THEN + - 26 * - 63 ELSE NULL END AS col0
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL - 45 * - - ( + 12 ) * COUNT( * ) - ( + 74 ) + 15
----
-599

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - 45 * - - ( + 12 ) * COUNT ( * ) - ( + 74 ) + 15
----
-599

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT - 1 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT - 1 / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL 43 * - ( + 37 ) - SUM( DISTINCT + 57 )
----
-1648

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL 43 * - ( + 37 ) - SUM ( DISTINCT + 57 )
----
-1648

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL + + ( ( - CASE - - ( + AVG ( - 64 ) ) WHEN - COUNT( ALL - + 66 ) THEN + 15 * + 77 - 97 WHEN - + 76 + - - 70 THEN NULL ELSE NULL END ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL + + ( ( - CASE - - ( + AVG ( - 64 ) ) WHEN - COUNT ( ALL - + 66 ) THEN + 15 * + 77 - 97 WHEN - + 76 + - - 70 THEN NULL ELSE NULL END ) ) col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + 93
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT( * ), 84 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT ( * ), 84 ) ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT - + COALESCE ( + - 58, - + 40, 83 ) * - COALESCE ( - COUNT( * ), - 64 ) / + 70 + COUNT( * ) - + 1 + + - CASE 25 WHEN - 58 * - 63 THEN CAST( + - 38 AS SIGNED ) * 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT - + COALESCE ( + - 58, - + 40, 83 ) * - COALESCE ( - COUNT ( * ), - 64 ) / + 70 + COUNT ( * ) - + 1 + + - CASE 25 WHEN - 58 * - 63 THEN CAST ( + - 38 AS INTEGER ) * 23 ELSE NULL END
----
NULL

query II rowsort
SELECT 62 col0, - 98
----
62
-98

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT - 71 * + 2 + - 8 * - 39 - - 96 DIV + 99 + - + 49 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-1726
SELECT - 71 * + 2 + - 8 * - 39 - - 96 / + 99 + - + 49 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + MAX( DISTINCT + 96 ) * - 35 AS col1
----
-3360

skipif mysql # not compatible
query I rowsort label-1727
SELECT + MAX ( DISTINCT + 96 ) * - 35 AS col1
----
-3360

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

query I rowsort
SELECT ALL + 69 * + + 9 AS col1
----
621

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT + 39 DIV 48 * + 74 DIV - - 10 * 11
----
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT + 39 / 48 * + 74 / - - 10 * 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1731
SELECT ALL 50 AS col2, ( + 0 ) * + + CASE 58 WHEN - 39 THEN + CAST( NULL AS SIGNED ) * + COUNT( ALL - 53 ) ELSE NULL END AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1731
SELECT ALL 50 AS col2, ( + 0 ) * + + CASE 58 WHEN - 39 THEN + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 53 ) ELSE NULL END AS col0
----
50
NULL

query II rowsort
SELECT ALL 11 AS col2, + 35 - - + 53 + - - 87 * - - CASE + 45 WHEN 59 THEN NULL ELSE 92 END col1
----
11
8092

query I rowsort
SELECT - COALESCE ( - 87, + - 77, 66 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT ALL COUNT( * ), 38 col0
----
1
38

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL COUNT ( * ), 38 col0
----
1
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT ALL 40 + 30 + - MIN( + 69 ) AS col2, + ( NULLIF ( - + ( 98 ), - 65 + 4 * 24 * + + 26 * + 87 ) ) + + 22
----
1
-76

skipif mysql # not compatible
query II rowsort label-1735
SELECT ALL 40 + 30 + - MIN ( + 69 ) AS col2, + ( NULLIF ( - + ( 98 ), - 65 + 4 * 24 * + + 26 * + 87 ) ) + + 22
----
1
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1736
SELECT - CASE 89 WHEN + + 42 + 11 THEN NULL ELSE 17 END - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT - CASE 89 WHEN + + 42 + 11 THEN NULL ELSE 17 END - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( - - 19 ) + + 51 * 54 AS col2
----
2735

query II rowsort
SELECT DISTINCT 18 + - 49 AS col0, 4 AS col2
----
-31
4

query I rowsort
SELECT - ( 31 )
----
-31

query I rowsort
SELECT 14 col1
----
14

query I rowsort
SELECT - 47 * + 94 AS col1
----
-4418

query I rowsort
SELECT ALL NULLIF ( + + 2, - 93 * - 39 ) AS col0
----
2

query I rowsort
SELECT + 76 * 7
----
532

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT DISTINCT 82 + - 6 * 47 DIV - 43 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT 82 + - 6 * 47 / - 43 AS col1
----
88

query I rowsort
SELECT ALL 59 AS col0
----
59

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

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - 35 + + 12 / + COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT ALL CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL CAST ( 12 AS INTEGER )
----
12

query I rowsort
SELECT - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT DISTINCT - 36 + + CASE - CASE - COUNT( * ) WHEN + + AVG ( ALL + 9 ) - + 86 THEN - + 9 END WHEN + - 50 * - NULLIF ( NULLIF ( - COUNT( * ), - ( - 92 ) * + 73 + - 78 ), + NULLIF ( - 18, - ( 5 ) ) ) DIV 8 THEN NULL WHEN 28 + 25 THEN + 33 ELSE 40 DIV 52 END
----
-36

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - 36 + + CASE - CASE - COUNT ( * ) WHEN + + AVG ( ALL + 9 ) - + 86 THEN - + 9 END WHEN + - 50 * - NULLIF ( NULLIF ( - COUNT ( * ), - ( - 92 ) * + 73 + - 78 ), + NULLIF ( - 18, - ( 5 ) ) ) / 8 THEN NULL WHEN 28 + 25 THEN + 33 ELSE 40 / 52 END
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1750
SELECT + 75 + - 97 * COUNT( * ), - COUNT( * ) + 6 AS col2
----
-22
5

skipif mysql # not compatible
query II rowsort label-1750
SELECT + 75 + - 97 * COUNT ( * ), - COUNT ( * ) + 6 AS col2
----
-22
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT - 81 * + 47, COUNT( * ) col2
----
-3807
1

skipif mysql # not compatible
query II rowsort label-1751
SELECT - 81 * + 47, COUNT ( * ) col2
----
-3807
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1752
SELECT ALL 3 DIV - + 23 * + 63 * 55 - + + COALESCE ( + 74, + 15, + - ( - - ( + + 61 ) ) + + 4 + - 83 * - 41 DIV + 46 DIV + COALESCE ( 20, - + CAST( NULL AS SIGNED ) ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 3 / - + 23 * + 63 * 55 - + + COALESCE ( + 74, + 15, + - ( - - ( + + 61 ) ) + + 4 + - 83 * - 41 / + 46 / + COALESCE ( 20, - + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-74

query I rowsort
SELECT ALL + 63 * + 63
----
3969

query I rowsort
SELECT DISTINCT - 9 * + 58 AS col2
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + 22 * + 3 * - 81 * + + COUNT( * ) - + + 61 * MAX( ALL + + 48 ) * - 71 + 99
----
202641

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 22 * + 3 * - 81 * + + COUNT ( * ) - + + 61 * MAX ( ALL + + 48 ) * - 71 + 99
----
202641

query I rowsort
SELECT - 51 * - 57
----
2907

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT ( - - 24 ) / COUNT( ALL 26 ) + 17 - + + COUNT( 2 ) / 2 * + CAST( NULL AS SIGNED ) - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT ( - - 24 ) / COUNT ( ALL 26 ) + 17 - + + COUNT ( 2 ) / 2 * + CAST ( NULL AS INTEGER ) - 16 AS col1
----
NULL

query I rowsort
SELECT ALL + 64 * 60 AS col2
----
3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1760
SELECT DISTINCT - 41 DIV - CAST( + + COUNT( DISTINCT - 55 ) AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - 41 / - CAST ( + + COUNT ( DISTINCT - 55 ) AS INTEGER ) AS col2
----
41

query II rowsort
SELECT DISTINCT - ( 31 ) AS col1, + 60 AS col0
----
-31
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1762
SELECT ALL - + CAST( + - 55 AS SIGNED ) AS col1, 59
----
55
59

skipif mysql # not compatible
query II rowsort label-1762
SELECT ALL - + CAST ( + - 55 AS INTEGER ) AS col1, 59
----
55
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT - COUNT( * ) * - COUNT( 66 ) + 79 + 68 * - 98 * - - 82 + + - 92 AS col2
----
-546460

skipif mysql # not compatible
query I rowsort label-1763
SELECT - COUNT ( * ) * - COUNT ( 66 ) + 79 + 68 * - 98 * - - 82 + + - 92 AS col2
----
-546460

query I rowsort
SELECT - 24 * 53 - 64
----
-1336

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT 19 + + 4 * 97 + + COUNT( * ) * + 98 DIV 75
----
408

skipif mysql # not compatible
query I rowsort label-1766
SELECT 19 + + 4 * 97 + + COUNT ( * ) * + 98 / 75
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT - 89 * - NULLIF ( + 96, 5 ) * - 89 * 45 + - 32 + + COUNT( * ) * - + 10 * + 64 * 29
----
-34237312

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - 89 * - NULLIF ( + 96, 5 ) * - 89 * 45 + - 32 + + COUNT ( * ) * - + 10 * + 64 * 29
----
-34237312

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + COUNT( ALL 81 ) * SUM( - - 7 ) + + 86 col0
----
93

skipif mysql # not compatible
query I rowsort label-1768
SELECT + COUNT ( ALL 81 ) * SUM ( - - 7 ) + + 86 col0
----
93

query I rowsort
SELECT ( 76 ) * - - 48 * - 30
----
-109440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1770
SELECT DISTINCT 40 * - 16 + + COALESCE ( - - 41, - CAST( - COALESCE ( - 98, + COUNT( * ) ) AS SIGNED ) DIV 30 ) * + MIN( ALL ( - - 59 ) ) + - CAST( + - 34 AS SIGNED )
----
1813

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT 40 * - 16 + + COALESCE ( - - 41, - CAST ( - COALESCE ( - 98, + COUNT ( * ) ) AS INTEGER ) / 30 ) * + MIN ( ALL ( - - 59 ) ) + - CAST ( + - 34 AS INTEGER )
----
1813

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

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

query I rowsort
SELECT ALL - - CASE 44 WHEN - ( - 32 ) THEN NULL WHEN - 32 THEN 89 + + + 1 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT - - 73 * - - COUNT( 42 )
----
73

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - - 73 * - - COUNT ( 42 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT MAX( 17 ) + + NULLIF ( - COUNT( * ), NULLIF ( 71, 25 ) ) DIV + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1774
SELECT MAX ( 17 ) + + NULLIF ( - COUNT ( * ), NULLIF ( 71, 25 ) ) / + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL - + 67
----
-67

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

query II rowsort
SELECT - 42 + - + 1 AS col1, 37
----
-43
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + 64 + + - 20 + - - SUM( 82 )
----
126

skipif mysql # not compatible
query I rowsort label-1778
SELECT + 64 + + - 20 + - - SUM ( 82 )
----
126

query I rowsort
SELECT ALL COALESCE ( 35, + 47 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + 88 * + - SUM( ( + + 3 ) ) * + 83 + + 66 + - ( 75 ) AS col2
----
-21921

skipif mysql # not compatible
query I rowsort label-1780
SELECT + 88 * + - SUM ( ( + + 3 ) ) * + 83 + + 66 + - ( 75 ) AS col2
----
-21921

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL 77 + - - 95 + 97 - + + COUNT( * )
----
268

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL 77 + - - 95 + 97 - + + COUNT ( * )
----
268

query I rowsort
SELECT 48 AS col1
----
48

query I rowsort
SELECT - 94 AS col0
----
-94

query I rowsort
SELECT DISTINCT 94 + 81
----
175

query I rowsort
SELECT 50 * + + 8
----
400

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

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

query I rowsort
SELECT ALL 71 * 66 * + 2 AS col2
----
9372

query I rowsort
SELECT ALL 29 + + - 74
----
-45

query I rowsort
SELECT DISTINCT 88 + - 59 col1
----
29

query I rowsort
SELECT ALL 23 * + - 37 AS col2
----
-851

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT( * ) AS col0
----
-4346
-82

skipif mysql # not compatible
query II rowsort label-1791
SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT ( * ) AS col0
----
-4346
-82

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

query I rowsort
SELECT 55 + - 12
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT - 67 col2, CASE WHEN + 29 IS NOT NULL THEN 69 ELSE + MIN( + 72 ) END AS col0
----
-67
69

skipif mysql # not compatible
query II rowsort label-1794
SELECT - 67 col2, CASE WHEN + 29 IS NOT NULL THEN 69 ELSE + MIN ( + 72 ) END AS col0
----
-67
69

query II rowsort
SELECT ALL 69, + 4 * - 69 * + 73 col1
----
69
-20148

query I rowsort
SELECT 4 * + 35
----
140

query I rowsort
SELECT 75 * + + 64 AS col2
----
4800

query II rowsort
SELECT DISTINCT - 32 AS col2, - 31 AS col0
----
-32
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL - COUNT( - + 82 ) * + 8 * ( + ( + COALESCE ( 3, MIN( ALL - 46 ) ) ) ) + - - 7
----
-17

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - COUNT ( - + 82 ) * + 8 * ( + ( + COALESCE ( 3, MIN ( ALL - 46 ) ) ) ) + - - 7
----
-17

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT ( + + 39 ) * + 39 + + 58 + - 93 + - SUM( DISTINCT 47 ) * - + 10 DIV - + 1 AS col0
----
1016

skipif mysql # not compatible
query I rowsort label-1801
SELECT ( + + 39 ) * + 39 + + 58 + - 93 + - SUM ( DISTINCT 47 ) * - + 10 / - + 1 AS col0
----
1016

query I rowsort
SELECT + 49 * + 21
----
1029

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL - COALESCE ( + MIN( - 81 ), COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - COALESCE ( + MIN ( - 81 ), COUNT ( * ) ) AS col0
----
81

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

query I rowsort
SELECT + + 18 col0
----
18

query I rowsort
SELECT ALL + 2 + 97 AS col1
----
99

query I rowsort
SELECT 48 col2
----
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT ALL - + 13 + + - 15 - - + CAST( + COUNT( * ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - + 13 + + - 15 - - + CAST ( + COUNT ( * ) AS INTEGER )
----
-27

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

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

query II rowsort
SELECT ALL - + 38, 74 - + 28 col2
----
-38
46

query I rowsort
SELECT ALL + - 0 + + - 37 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT + - 83 + - 14 + - + CAST( - 90 AS SIGNED ) DIV 28 + + 67 DIV + + 74
----
-94

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + - 83 + - 14 + - + CAST ( - 90 AS INTEGER ) / 28 + + 67 / + + 74
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + COALESCE ( 36, 80 ) + + COUNT( * ) + - 8
----
29

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + COALESCE ( 36, 80 ) + + COUNT ( * ) + - 8
----
29

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

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

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

query I rowsort
SELECT 82 * - 91 AS col1
----
-7462

query I rowsort
SELECT - 62 * - 8 AS col0
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL + - 33 + + - COUNT( * ) * NULLIF ( + - 99, - + 40 )
----
66

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL + - 33 + + - COUNT ( * ) * NULLIF ( + - 99, - + 40 )
----
66

query I rowsort
SELECT 50 - - + 24 * + NULLIF ( + 79, 99 * - 79 )
----
1946

query II rowsort
SELECT ALL - 35 + + 38 AS col0, - 86 + + 55 AS col0
----
3
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1823
SELECT 59 - + 99 * - + COALESCE ( - 38, MAX( ALL - 57 ) DIV + 77 + + - 47 ) + - - 8 DIV 17 DIV - 50 AS col2
----
-3703

skipif mysql # not compatible
query I rowsort label-1823
SELECT 59 - + 99 * - + COALESCE ( - 38, MAX ( ALL - 57 ) / + 77 + + - 47 ) + - - 8 / 17 / - 50 AS col2
----
-3703

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL - SUM( ALL - 13 ) * - 42
----
-546

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - SUM ( ALL - 13 ) * - 42
----
-546

query I rowsort
SELECT ALL 47 * + 13 * - 37
----
-22607

query I rowsort
SELECT DISTINCT + 53 * 60
----
3180

query I rowsort
SELECT DISTINCT 53
----
53

query I rowsort
SELECT - 54 col1
----
-54

query II rowsort
SELECT ALL + 35 * + + 28 * + - 40 * + 23, 12 AS col2
----
-901600
12

query I rowsort
SELECT 59 + - 98 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT 94 - + 5 DIV + 32 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1831
SELECT 94 - + 5 / + 32 AS col1
----
94

query I rowsort
SELECT ALL NULLIF ( + CASE + 55 WHEN + 5 + + ( 75 ) THEN NULL ELSE + + 23 END, - + 56 ) AS col2
----
23

query I rowsort
SELECT DISTINCT 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT SUM( ALL - 41 ) * + 86 col1
----
-3526

skipif mysql # not compatible
query I rowsort label-1834
SELECT SUM ( ALL - 41 ) * + 86 col1
----
-3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT COALESCE ( 70, - + ( + 28 ) ) * ( - COUNT( * ) ) + - 8 + + + NULLIF ( - CAST( + 72 AS SIGNED ), 63 + - - 54 - - CAST( NULL AS SIGNED ) + - 17 + - 57 * - CASE - - 24 WHEN + 70 THEN NULL WHEN + 37 * 20 THEN ( - 8 ) ELSE 27 * 70 END + - 10 * 32 ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-1835
SELECT COALESCE ( 70, - + ( + 28 ) ) * ( - COUNT ( * ) ) + - 8 + + + NULLIF ( - CAST ( + 72 AS INTEGER ), 63 + - - 54 - - CAST ( NULL AS INTEGER ) + - 17 + - 57 * - CASE - - 24 WHEN + 70 THEN NULL WHEN + 37 * 20 THEN ( - 8 ) ELSE 27 * 70 END + - 10 * 32 ) AS col1
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT ALL COUNT( ALL + 70 ) DIV 2 * + + SUM( + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL COUNT ( ALL + 70 ) / 2 * + + SUM ( + 30 )
----
0

query I rowsort
SELECT 84 * + 59 * + + 67
----
332052

query I rowsort
SELECT - 26 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT CASE + + 6 WHEN 1 THEN NULL ELSE - 68 END + - + MAX( - 4 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1839
SELECT CASE + + 6 WHEN 1 THEN NULL ELSE - 68 END + - + MAX ( - 4 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT ALL + 0 DIV - 12 * - - 80
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL + 0 / - 12 * - - 80
----
0

query I rowsort
SELECT NULLIF ( - 50, + 44 * - 83 * + 52 - - + 89 + + + 59 ) * + 2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL + 91 DIV 20 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + 91 / 20 AS col1
----
4

query I rowsort
SELECT ALL 10 * + 89 AS col2
----
890

query I rowsort
SELECT + 16 * + 83 * 14 AS col2
----
18592

query I rowsort
SELECT DISTINCT 39 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1846
SELECT - MIN( - - COALESCE ( + 26, 35 DIV - + 91 - + - 79 + + 9 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-1846
SELECT - MIN ( - - COALESCE ( + 26, 35 / - + 91 - + - 79 + + 9 ) )
----
-26

query I rowsort
SELECT DISTINCT 94 col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT + 47 * + SUM( ALL 80 ) DIV - - COUNT( * ) + + + MIN( 72 ) AS col2
----
3832

skipif mysql # not compatible
query I rowsort label-1848
SELECT + 47 * + SUM ( ALL 80 ) / - - COUNT ( * ) + + + MIN ( 72 ) AS col2
----
3832

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT ALL + 23 * - ( - - NULLIF ( 38, - 6 + + 33 ) ) + + - 50 * MIN( ALL 81 ) + + 98 + - 51 + - 91 - - + 19 / + 62 + 34 - + 91 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + 23 * - ( - - NULLIF ( 38, - 6 + + 33 ) ) + + - 50 * MIN ( ALL 81 ) + + 98 + - 51 + - 91 - - + 19 / + 62 + 34 - + 91 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 25 * + 54 - + - 98 AS col2
----
1448

query I rowsort
SELECT DISTINCT + - NULLIF ( - + 56, + - 89 / - 98 * + 25 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL + 7 * - - 3 * - - 74 + + - CASE - + MAX( ALL 17 ) WHEN - 99 + - 76 THEN 15 * + 81 + - 7 WHEN + 18 THEN + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 7 * - - 3 * - - 74 + + - CASE - + MAX ( ALL 17 ) WHEN - 99 + - 76 THEN 15 * + 81 + - 7 WHEN + 18 THEN + 86 END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL - ( - - 25 ) * + 38 + - 72 + - COUNT( * ) AS col0
----
-1023

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - ( - - 25 ) * + 38 + - 72 + - COUNT ( * ) AS col0
----
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT - 19 - + 66 * + CAST( 53 AS SIGNED ) + - 74 AS col2
----
-3591

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 19 - + 66 * + CAST ( 53 AS INTEGER ) + - 74 AS col2
----
-3591

query I rowsort
SELECT DISTINCT + - 89 AS col0
----
-89

query II rowsort
SELECT + 63 + + 17 AS col2, 98 * 69 * 38
----
80
256956

query I rowsort
SELECT 10 * + 63 - + + 13
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL 7 * - 15 * COUNT( + 54 )
----
-105

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL 7 * - 15 * COUNT ( + 54 )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + - ( MIN( ALL - 16 ) ) * - - 13 * MAX( ALL - 32 )
----
-6656

skipif mysql # not compatible
query I rowsort label-1862
SELECT + - ( MIN ( ALL - 16 ) ) * - - 13 * MAX ( ALL - 32 )
----
-6656

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL + + CASE CASE + 23 WHEN - ( - COUNT( * ) ) * CAST( - 29 AS SIGNED ) THEN - - 34 END WHEN COALESCE ( + 49, + MIN( DISTINCT - 18 ) ) + - 35 * - - 33 THEN - 49 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + + CASE CASE + 23 WHEN - ( - COUNT ( * ) ) * CAST ( - 29 AS INTEGER ) THEN - - 34 END WHEN COALESCE ( + 49, + MIN ( DISTINCT - 18 ) ) + - 35 * - - 33 THEN - 49 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL + ( COUNT( * ) ) * + + COUNT( * ) + + 87 - - 12 + + 4 * 91 AS col2
----
464

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + ( COUNT ( * ) ) * + + COUNT ( * ) + + 87 - - 12 + + 4 * 91 AS col2
----
464

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

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

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

query I rowsort
SELECT DISTINCT 59 * 93 * - 55 AS col2
----
-301785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1869
SELECT ALL 98 * + - ( + NULLIF ( - - 59, + CAST( - 10 AS DECIMAL ) / + NULLIF ( MIN( ALL 49 ), - + 70 - - - ( - - 58 ) - 86 * CAST( NULL AS SIGNED ) ) ) ) - - 90 * COUNT( * ) * + - 11 * + + 94
----
-98842

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL 98 * + - ( + NULLIF ( - - 59, + CAST ( - 10 AS REAL ) / + NULLIF ( MIN ( ALL 49 ), - + 70 - - - ( - - 58 ) - 86 * CAST ( NULL AS INTEGER ) ) ) ) - - 90 * COUNT ( * ) * + - 11 * + + 94
----
-98842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1870
SELECT DISTINCT + SUM( CAST( NULL AS SIGNED ) ) / - 16 AS col2, SUM( - 64 ) * - 74 - - ( + 52 ) * + 5 * - 70 - + 32 + - ( 16 ) * - 45 - + - 41 * - 5 + + + ( + 31 ) AS col1
----
NULL
-12950

skipif mysql # not compatible
query II rowsort label-1870
SELECT DISTINCT + SUM ( CAST ( NULL AS INTEGER ) ) / - 16 AS col2, SUM ( - 64 ) * - 74 - - ( + 52 ) * + 5 * - 70 - + 32 + - ( 16 ) * - 45 - + - 41 * - 5 + + + ( + 31 ) AS col1
----
NULL
-12950

query I rowsort
SELECT ALL 17 * 3 - 75 + + 12
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT - 6 DIV ( + 49 ) * 1 * 18 DIV - COALESCE ( - - 69, 33 * + + COUNT( * ) + + 49 * + - COUNT( * ), 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1872
SELECT - 6 / ( + 49 ) * 1 * 18 / - COALESCE ( - - 69, 33 * + + COUNT ( * ) + + 49 * + - COUNT ( * ), 88 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT + 17 + + - 97 - - 6 + - 19 + 55 + + COUNT( * ) * + COUNT( * ) - - - COUNT( * ) DIV 8
----
-37

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 17 + + - 97 - - 6 + - 19 + 55 + + COUNT ( * ) * + COUNT ( * ) - - - COUNT ( * ) / 8
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT MIN( DISTINCT + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1874
SELECT MIN ( DISTINCT + 24 ) AS col0
----
24

query I rowsort
SELECT ALL CASE 19 WHEN - 45 THEN NULL WHEN - 39 * - 52 THEN NULL WHEN - + 84 * 44 THEN + 74 ELSE NULL END
----
NULL

query I rowsort
SELECT - 58 col1
----
-58

query I rowsort
SELECT ALL ( + 28 ) col2
----
28

query I rowsort
SELECT ALL + 4 * - + 79 AS col2
----
-316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT - ( COUNT( * ) ) + - 16 * 18 DIV - ( + 1 )
----
287

skipif mysql # not compatible
query I rowsort label-1879
SELECT - ( COUNT ( * ) ) + - 16 * 18 / - ( + 1 )
----
287

query I rowsort
SELECT - 21 AS col2
----
-21

query I rowsort
SELECT ALL + 5 * - 50 AS col0
----
-250

query I rowsort
SELECT - 16 * 29
----
-464

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

query I rowsort
SELECT ALL 32 AS col0
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - COUNT( * ) + + 65 * + - 77
----
-5006

skipif mysql # not compatible
query I rowsort label-1886
SELECT - COUNT ( * ) + + 65 * + - 77
----
-5006

query II rowsort
SELECT + 10 + - - 1 * + 72 AS col0, + ( 11 )
----
82
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT - 80 DIV 10 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 80 / 10 AS col1
----
-8

query II rowsort
SELECT + + 40 + - + 51 + 91 AS col2, + 65 * + + 79
----
80
5135

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL + 35 + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + 35 + - COUNT ( * )
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL + CASE - 5 WHEN - COUNT( * ) THEN + ( + 87 ) * + 98 / + 67 * - COUNT( * ) / - + 17 END + + MAX( + + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + CASE - 5 WHEN - COUNT ( * ) THEN + ( + 87 ) * + 98 / + 67 * - COUNT ( * ) / - + 17 END + + MAX ( + + 11 )
----
NULL

query I rowsort
SELECT - 54 + 85 + - 6 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1895
SELECT ALL ( + SUM( DISTINCT 76 ) ), - 19 * 50 col2
----
76
-950

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL ( + SUM ( DISTINCT 76 ) ), - 19 * 50 col2
----
76
-950

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1897
SELECT DISTINCT - - 91 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT - - 91 / - 75
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT ALL + - 3 DIV - 52 + + + 15 + - 42 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + - 3 / - 52 + + + 15 + - 42 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT - 77 * - - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - 77 * - - COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT ALL 33 DIV + + COUNT( * ) + - MIN( + - 50 ) + + 32 * 78 * + + ( + 59 ) AS col0
----
147347

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL 33 / + + COUNT ( * ) + - MIN ( + - 50 ) + + 32 * 78 * + + ( + 59 ) AS col0
----
147347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1901
SELECT DISTINCT + 8 * 40 * ( 72 ) * 18 DIV 78 + 70 + + COUNT( DISTINCT - CASE 60 WHEN 56 THEN + 28 END ) * 53
----
5386

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT + 8 * 40 * ( 72 ) * 18 / 78 + 70 + + COUNT ( DISTINCT - CASE 60 WHEN 56 THEN + 28 END ) * 53
----
5386

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - + COUNT( * ) * 52 + 63 + - 39 col2
----
-28

skipif mysql # not compatible
query I rowsort label-1902
SELECT - + COUNT ( * ) * 52 + 63 + - 39 col2
----
-28

query II rowsort
SELECT ALL + 76 col0, + 27 col2
----
76
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT 64 * 70 + + 0 + COUNT( * ) AS col1
----
4481

skipif mysql # not compatible
query I rowsort label-1905
SELECT 64 * 70 + + 0 + COUNT ( * ) AS col1
----
4481

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1906
SELECT + + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT + + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 64 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1908
SELECT + COUNT( ALL 17 ) DIV + CAST( + - 61 AS SIGNED ) + + 52
----
52

skipif mysql # not compatible
query I rowsort label-1908
SELECT + COUNT ( ALL 17 ) / + CAST ( + - 61 AS INTEGER ) + + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL + MIN( - 65 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + MIN ( - 65 ) col1
----
-65

query I rowsort
SELECT ALL + - 36 AS col0
----
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1913
SELECT DISTINCT + 7 col1, + COUNT( * ) + - - COALESCE ( - ( 38 ), - + COUNT( * ) ) AS col0
----
7
-37

skipif mysql # not compatible
query II rowsort label-1913
SELECT DISTINCT + 7 col1, + COUNT ( * ) + - - COALESCE ( - ( 38 ), - + COUNT ( * ) ) AS col0
----
7
-37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1915
SELECT DISTINCT 0 * + - NULLIF ( - MIN( + 69 ), - 44 * - + COUNT( * ) ) - COUNT( * ) * + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) DIV - 46 * 81 AS col2, + ( - 84 ) DIV - + 83 - 38 col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-1915
SELECT DISTINCT 0 * + - NULLIF ( - MIN ( + 69 ), - 44 * - + COUNT ( * ) ) - COUNT ( * ) * + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 46 * 81 AS col2, + ( - 84 ) / - + 83 - 38 col1
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT ALL 71 DIV + 26
----
2

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL 71 / + 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + CASE + + 78 WHEN - - 59 THEN - + 9 * 60 WHEN 71 THEN NULL WHEN + 75 * + CASE + 12 WHEN 32 THEN NULL WHEN - + 81 + - + ( + 32 ) / - 84 THEN 69 ELSE NULL END + + 84 + 7 * - 25 THEN NULL ELSE NULL END * + 34 * - - 13 - - COUNT( * ) * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT + CASE + + 78 WHEN - - 59 THEN - + 9 * 60 WHEN 71 THEN NULL WHEN + 75 * + CASE + 12 WHEN 32 THEN NULL WHEN - + 81 + - + ( + 32 ) / - 84 THEN 69 ELSE NULL END + + 84 + 7 * - 25 THEN NULL ELSE NULL END * + 34 * - - 13 - - COUNT ( * ) * - 85 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT - 35 * ( - - CASE - 93 WHEN + - COUNT( * ) / + 58 THEN - + 96 + + 19 + + 71 / 35 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 35 * ( - - CASE - 93 WHEN + - COUNT ( * ) / + 58 THEN - + 96 + + 19 + + 71 / 35 END )
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL 67 AS col0
----
67

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

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

query I rowsort
SELECT 3 * - 10 * + 73 * - 29 * + 22 AS col1
----
1397220

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT - 28 + MIN( ALL 38 )
----
10

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT - 28 + MIN ( ALL 38 )
----
10

query I rowsort
SELECT ( - 49 ) + 45
----
-4

query I rowsort
SELECT ( 43 ) * ( + + 43 ) * - - 95
----
175655

query I rowsort
SELECT 93 + 53
----
146

query I rowsort
SELECT DISTINCT + 83 + + + 45
----
128

query I rowsort
SELECT DISTINCT - ( + - 27 ) + - 58 + + 93 - 60 + - - 30 + 83 * - ( + 30 ) * 73 * - 10 * - + 99
----
-179952268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1933
SELECT ALL + COUNT( DISTINCT + COALESCE ( - 43, - + 68, + 48 ) ) + - 70, - 46 * + CASE + - 88 WHEN 91 THEN - 2 + + 62 WHEN + CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL + COUNT ( DISTINCT + COALESCE ( - 43, - + 68, + 48 ) ) + - 70, - 46 * + CASE + - 88 WHEN 91 THEN - 2 + + 62 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
-69
NULL

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

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

query I rowsort
SELECT ALL + 40 * + 69 col2
----
2760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT - - 64 * - NULLIF ( + COUNT( * ), - + 21 ) * - 18 + - ( - - 99 ) + 82 * + MAX( - 6 ) + - COUNT( * )
----
560

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - - 64 * - NULLIF ( + COUNT ( * ), - + 21 ) * - 18 + - ( - - 99 ) + 82 * + MAX ( - 6 ) + - COUNT ( * )
----
560

query I rowsort
SELECT ALL + 48 + - 52
----
-4

query II rowsort
SELECT - 2, - 25 * - - 9 + - 0 + + - 84 AS col0
----
-2
-309

query I rowsort
SELECT ALL - ( + 81 ) * + - 99 AS col1
----
8019

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + ( - 20 ) - COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + ( - 20 ) - COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT + 59 * + 65 AS col2
----
3835

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1946
SELECT - 53 AS col0, CAST( + CASE - - 31 WHEN - ( - 17 ) + - 52 THEN + AVG ( DISTINCT - - 70 ) * + CASE + ( 33 ) WHEN - 85 * - ( 58 ) THEN - 74 + + ( - + 76 ) + - 55 + + 75 * - 3 * 55 END + 79 END AS SIGNED ) + - 67 * 94 AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-1946
SELECT - 53 AS col0, CAST ( + CASE - - 31 WHEN - ( - 17 ) + - 52 THEN + AVG ( DISTINCT - - 70 ) * + CASE + ( 33 ) WHEN - 85 * - ( 58 ) THEN - 74 + + ( - + 76 ) + - 55 + + 75 * - 3 * 55 END + 79 END AS INTEGER ) + - 67 * 94 AS col2
----
-53
NULL

query I rowsort
SELECT + 5 * 42 * + + 16 - + + 62 + 5 + 9 + 94 - + - 7 + + 25 * + NULLIF ( - - 77, + 68 )
----
5338

query II rowsort
SELECT - 92 AS col1, + 93 * ( 93 )
----
-92
8649

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + 27 - + 31 - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + 27 - + 31 - COUNT ( * )
----
-5

query I rowsort
SELECT - 76 col0
----
-76

query I rowsort
SELECT ALL + 47 - - ( 57 ) + 5 * + 37 AS col2
----
289

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT 88 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1952
SELECT 88 / 48 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + 17 * 94 - - + COUNT( * )
----
1599

skipif mysql # not compatible
query I rowsort label-1953
SELECT + 17 * 94 - - + COUNT ( * )
----
1599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT CAST( NULL AS SIGNED ) * - CAST( - - 32 AS SIGNED ) - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT CAST ( NULL AS INTEGER ) * - CAST ( - - 32 AS INTEGER ) - + 59 AS col0
----
NULL

query I rowsort
SELECT 49 col2
----
49

query I rowsort
SELECT ALL 17 + + 37 AS col1
----
54

query II rowsort
SELECT ALL 29 * NULLIF ( 37, - 48 ) * + + 7 AS col1, 60 AS col2
----
7511
60

query I rowsort
SELECT 0 * 19 AS col1
----
0

query I rowsort
SELECT 79 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL COUNT ( * ) + - + 61 AS col1
----
-60

query I rowsort
SELECT 60 col2
----
60

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

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

query I rowsort
SELECT 38 + - 23 * + + 4 - + 70 AS col0
----
-124

query I rowsort
SELECT ALL 51 + CASE + 76 WHEN - 23 THEN - 0 / - + 89 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT MAX( DISTINCT 92 ) * + 35 * 92 AS col0
----
296240

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT MAX ( DISTINCT 92 ) * + 35 * 92 AS col0
----
296240

query I rowsort
SELECT ALL 87 AS col1
----
87

query I rowsort
SELECT 85 + 47
----
132

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT + 49 + + COUNT( * ) + - + 80 + - 6 * - NULLIF ( + 56, - COUNT( * ) + + + 71 ) AS col1
----
306

skipif mysql # not compatible
query I rowsort label-1970
SELECT + 49 + + COUNT ( * ) + - + 80 + - 6 * - NULLIF ( + 56, - COUNT ( * ) + + + 71 ) AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT - - COALESCE ( + 22, + 58 * ( - + COUNT( * ) ) ) + - + SUM( + 14 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT - - COALESCE ( + 22, + 58 * ( - + COUNT ( * ) ) ) + - + SUM ( + 14 ) AS col0
----
8

query I rowsort
SELECT ALL - 34 col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1973
SELECT ALL ( 99 ) AS col1, CAST( 31 AS SIGNED ) DIV - + 9 AS col1
----
99
-3

skipif mysql # not compatible
query II rowsort label-1973
SELECT ALL ( 99 ) AS col1, CAST ( 31 AS INTEGER ) / - + 9 AS col1
----
99
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1974
SELECT ALL - CAST( COUNT( * ) AS SIGNED ), + 90 / COUNT( * ) * - COUNT( * ) * + 85 + + 55 + + ( + COUNT( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ), + 90 / COUNT ( * ) * - COUNT ( * ) * + 85 + + 55 + + ( + COUNT ( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2
----
-1
NULL

query I rowsort
SELECT - + 11
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT 54 + + 50 DIV COALESCE ( - - 40, - 54 * + 82 + 53 + - 23 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1976
SELECT 54 + + 50 / COALESCE ( - - 40, - 54 * + 82 + 53 + - 23 ) AS col1
----
55

query I rowsort
SELECT - 99 + + 90 AS col0
----
-9

query I rowsort
SELECT ALL 86 AS col2
----
86

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

query I rowsort
SELECT DISTINCT COALESCE ( + - ( - 7 ), + 71 ) AS col1
----
7

query I rowsort
SELECT ALL - - ( 84 ) * + ( + 4 ) AS col0
----
336

query I rowsort
SELECT + ( 83 ) + - 94
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT ALL - NULLIF ( + - 43, CAST( NULL AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - NULLIF ( + - 43, CAST ( NULL AS INTEGER ) )
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - - 94 * + COUNT( DISTINCT 78 ) + + SUM( DISTINCT 84 ) + - 27
----
151

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - - 94 * + COUNT ( DISTINCT 78 ) + + SUM ( DISTINCT 84 ) + - 27
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1986
SELECT 96 DIV + - COALESCE ( - 76, + COUNT( * ) + - - COUNT( CAST( NULL AS SIGNED ) ) ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1986
SELECT 96 / + - COALESCE ( - 76, + COUNT ( * ) + - - COUNT ( CAST ( NULL AS INTEGER ) ) ) + + + COUNT ( * ) AS col2
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL - SUM( - + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - SUM ( - + 45 )
----
45

query I rowsort
SELECT + - 5
----
-5

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

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

query I rowsort
SELECT 68 * - - 54
----
3672

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1992
SELECT - 29 DIV - - COALESCE ( + CAST( NULL AS SIGNED ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20
----
20

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1993
SELECT ALL - 28 * CAST( NULL AS SIGNED ) + - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL - 28 * CAST ( NULL AS INTEGER ) + - 97 AS col2
----
NULL

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

query II rowsort
SELECT + 6, 91 AS col0
----
6
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT + 76 DIV + 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 76 / + 71 AS col0
----
1

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

skipif mysql # not compatible
query II rowsort label-1997
SELECT COUNT ( * ) AS col0, 60
----
1
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1998
SELECT ALL - CASE - 53 WHEN + 21 THEN - CAST( 41 AS DECIMAL ) + + - COUNT( * ) - + + 2 * - 57 END * - 51 AS col1, + NULLIF ( + 87, + - 0 ) - + 86
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1998
SELECT ALL - CASE - 53 WHEN + 21 THEN - CAST ( 41 AS REAL ) + + - COUNT ( * ) - + + 2 * - 57 END * - 51 AS col1, + NULLIF ( + 87, + - 0 ) - + 86
----
NULL
1

query I rowsort
SELECT + 87 + + + 95
----
182

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

skipif mysql # not compatible
query I rowsort label-2000
SELECT + MAX ( - + 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2001
SELECT ALL CASE + 17 WHEN MAX( - 10 ) THEN + 12 WHEN 53 THEN - 45 END + 12 + - - CASE + CAST( NULL AS DECIMAL ) WHEN 9 THEN + 29 END + - - 73 AS col1, - 13 * + ( - + 14 )
----
NULL
182

skipif mysql # not compatible
query II rowsort label-2001
SELECT ALL CASE + 17 WHEN MAX ( - 10 ) THEN + 12 WHEN 53 THEN - 45 END + 12 + - - CASE + CAST ( NULL AS REAL ) WHEN 9 THEN + 29 END + - - 73 AS col1, - 13 * + ( - + 14 )
----
NULL
182

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

query I rowsort
SELECT ALL 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + 9 - + - SUM( + 76 )
----
85

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 9 - + - SUM ( + 76 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT ALL + 10 + + ( - - 90 ) col2, COUNT( * ) * + ( + 74 ) * - - 41 - - COUNT( * )
----
100
3035

skipif mysql # not compatible
query II rowsort label-2005
SELECT ALL + 10 + + ( - - 90 ) col2, COUNT ( * ) * + ( + 74 ) * - - 41 - - COUNT ( * )
----
100
3035

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT + COALESCE ( COUNT( * ), - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 12 ) AS col2
----
1

query I rowsort
SELECT - - 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + SUM( ALL 57 ) - - 85
----
142

skipif mysql # not compatible
query I rowsort label-2009
SELECT + SUM ( ALL 57 ) - - 85
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT ALL CAST( NULL AS SIGNED ) / - - MAX( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL CAST ( NULL AS INTEGER ) / - - MAX ( - 21 )
----
NULL

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

query I rowsort
SELECT + 88 - - 28 - - 88 * 88
----
7860

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

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL 57 - 83 * COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - CASE + SUM( DISTINCT 54 ) WHEN CASE - COALESCE ( - 57, - 7 ) WHEN - ( 46 ) THEN NULL WHEN + 11 + + ( MAX( + - 75 ) ) THEN - - CASE 86 WHEN 33 THEN - - 11 ELSE NULL END / - 61 ELSE NULL END * + + 38 * + + 73 THEN NULL ELSE + - ( + 49 ) END
----
49

skipif mysql # not compatible
query I rowsort label-2015
SELECT - CASE + SUM ( DISTINCT 54 ) WHEN CASE - COALESCE ( - 57, - 7 ) WHEN - ( 46 ) THEN NULL WHEN + 11 + + ( MAX ( + - 75 ) ) THEN - - CASE 86 WHEN 33 THEN - - 11 ELSE NULL END / - 61 ELSE NULL END * + + 38 * + + 73 THEN NULL ELSE + - ( + 49 ) END
----
49

query I rowsort
SELECT DISTINCT + 60 - - + 3 + + 45
----
108

query I rowsort
SELECT ALL - 96 * 45 AS col0
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT + + COUNT( * ) + CASE 6 WHEN - 77 * 70 THEN NULL WHEN + + ( + 76 ) * 70 THEN - 97 * 77 + - CAST( COALESCE ( + 79, - CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN COUNT( * ) + + + 69 * + + CAST( NULL AS SIGNED ) THEN + + 72 * - 41 * + - NULLIF ( - 54, - 56 * + - 94 ) + CAST( 63 AS SIGNED ) * COUNT( * ) + - 46 ELSE 86 END * - MIN( ALL + 42 - ( 43 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2018
SELECT + + COUNT ( * ) + CASE 6 WHEN - 77 * 70 THEN NULL WHEN + + ( + 76 ) * 70 THEN - 97 * 77 + - CAST ( COALESCE ( + 79, - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN COUNT ( * ) + + + 69 * + + CAST ( NULL AS INTEGER ) THEN + + 72 * - 41 * + - NULLIF ( - 54, - 56 * + - 94 ) + CAST ( 63 AS INTEGER ) * COUNT ( * ) + - 46 ELSE 86 END * - MIN ( ALL + 42 - ( 43 ) ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-2019
SELECT ALL 10 AS col1, 29 DIV + 7
----
10
4

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL 10 AS col1, 29 / + 7
----
10
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT + 77 DIV + 26 + - 52 + - + 29 + 99 + - - 30 + - 52 + - 31 DIV 65 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2020
SELECT + 77 / + 26 + - 52 + - + 29 + 99 + - - 30 + - 52 + - 31 / 65 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT + 16 + + MIN( CAST( + + 92 AS SIGNED ) )
----
108

skipif mysql # not compatible
query I rowsort label-2021
SELECT + 16 + + MIN ( CAST ( + + 92 AS INTEGER ) )
----
108

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

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

query I rowsort
SELECT + 30 + + 79 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST( + 48 AS SIGNED ) ) * - - 19 AS col0
----
17
-1691

skipif mysql # not compatible
query II rowsort label-2024
SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST ( + 48 AS INTEGER ) ) * - - 19 AS col0
----
17
-1691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2025
SELECT ALL COUNT( ALL + 7 ) DIV COUNT( * ) * 13 * + COALESCE ( 57, - - CAST( 84 AS SIGNED ) )
----
741

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL COUNT ( ALL + 7 ) / COUNT ( * ) * 13 * + COALESCE ( 57, - - CAST ( 84 AS INTEGER ) )
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + COUNT( * ) * + 89 * MIN( DISTINCT + 76 ) * 70 + - 69 * 70 AS col0
----
468650

skipif mysql # not compatible
query I rowsort label-2026
SELECT + COUNT ( * ) * + 89 * MIN ( DISTINCT + 76 ) * 70 + - 69 * 70 AS col0
----
468650

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT COUNT( * ) * - 95 * + + 11 - 50 col1
----
-1095

skipif mysql # not compatible
query I rowsort label-2027
SELECT COUNT ( * ) * - 95 * + + 11 - 50 col1
----
-1095

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2029
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1, - 77 AS col2
----
1
-77

skipif mysql # not compatible
query II rowsort label-2029
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - 77 AS col2
----
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT 38 * 14 * - SUM( - 68 ) + 14 + - 89
----
36101

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT 38 * 14 * - SUM ( - 68 ) + 14 + - 89
----
36101

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL - 67 * - - ( 19 ) + + + SUM( 24 ) AS col0
----
-1249

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL - 67 * - - ( 19 ) + + + SUM ( 24 ) AS col0
----
-1249

query I rowsort
SELECT ( - 71 ) AS col2
----
-71

query I rowsort
SELECT ALL 12 * CASE - - 42 WHEN + 37 / + 87 THEN + 50 * 37 + - 60 * - 58 WHEN + 11 * + 58 * 49 * + 96 THEN 8 + - 78 END * - 89 + COALESCE ( - 93, - 79 * ( - 42 ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT CAST( + 76 AS SIGNED ) / + 34 * - 20 + + COUNT( * ) + + 48 - - 13 * - ( 98 ) * + + CASE + 0 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 31 / - - 80 * - - 73 THEN + 16 ELSE NULL END + 95 + 47 + + 26 * - 70 / + - MAX( - 64 ) / - NULLIF ( - AVG ( DISTINCT CAST( NULL AS SIGNED ) ), 1 / - 67 + COUNT( * ) ) + 83 * 7 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT CAST ( + 76 AS INTEGER ) / + 34 * - 20 + + COUNT ( * ) + + 48 - - 13 * - ( 98 ) * + + CASE + 0 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 31 / - - 80 * - - 73 THEN + 16 ELSE NULL END + 95 + 47 + + 26 * - 70 / + - MAX ( - 64 ) / - NULLIF ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ), 1 / - 67 + COUNT ( * ) ) + 83 * 7 * 70 AS col1
----
NULL

query I rowsort
SELECT 41 * + 56 - + 6
----
2290

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2036
SELECT ALL + CASE - 14 WHEN - - 38 * CAST( NULL AS DECIMAL ) + - + 29 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + CASE - 14 WHEN - - 38 * CAST ( NULL AS REAL ) + - + 29 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ( - - 4 ) col1
----
4

query I rowsort
SELECT - 46 + - 55 AS col1
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT NULLIF ( CAST( + 31 AS SIGNED ), + COALESCE ( - COUNT( * ), + 50 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2039
SELECT NULLIF ( CAST ( + 31 AS INTEGER ), + COALESCE ( - COUNT ( * ), + 50 ) ) AS col2
----
31

query I rowsort
SELECT NULLIF ( + - 40, + COALESCE ( - 0, + 77 ) )
----
-40

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

query I rowsort
SELECT ALL - 91 * 9 + 0 * + 41 - + 98
----
-917

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

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

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

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

query I rowsort
SELECT - 10 + - 62
----
-72

query I rowsort
SELECT DISTINCT + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL CAST( NULL AS SIGNED ) * + 23 * + COUNT( * ) - + COUNT( * ) + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL CAST ( NULL AS INTEGER ) * + 23 * + COUNT ( * ) - + COUNT ( * ) + - 60 AS col2
----
NULL

query I rowsort
SELECT - 75 * - 38 * + 98 * ( - 40 ) AS col2
----
-11172000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2049
SELECT - COALESCE ( + ( - ( - - 41 ) ), - - COALESCE ( 76, + MIN( ALL + - 93 ), + + 7 + + COUNT( * ) + - 77 ) ) * - + CAST( NULL AS DECIMAL ) * - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COALESCE ( + ( - ( - - 41 ) ), - - COALESCE ( 76, + MIN ( ALL + - 93 ), + + 7 + + COUNT ( * ) + - 77 ) ) * - + CAST ( NULL AS REAL ) * - + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT COUNT( DISTINCT + 93 ) * 29 + + 56 - - 62 * + - CASE WHEN NULL IS NOT NULL THEN COUNT( * ) END / - - CAST( NULL AS SIGNED ) * + 97 + 79 + AVG ( ALL - 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( DISTINCT + 93 ) * 29 + + 56 - - 62 * + - CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) END / - - CAST ( NULL AS INTEGER ) * + 97 + 79 + AVG ( ALL - 28 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT + ( 61 ) * - 62 DIV COUNT( * ) + - 38 DIV ( + COUNT( * ) ) + + ( + 63 ) + + - 95 * + 48 AS col2
----
-8317

skipif mysql # not compatible
query I rowsort label-2051
SELECT + ( 61 ) * - 62 / COUNT ( * ) + - 38 / ( + COUNT ( * ) ) + + ( + 63 ) + + - 95 * + 48 AS col2
----
-8317

query I rowsort
SELECT ALL + 92 * 57
----
5244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT + CASE - 24 WHEN 30 + - 94 + - + CASE COUNT( * ) WHEN 82 THEN NULL WHEN - COALESCE ( 94, - ( - 46 ) + + + 72 + CAST( NULL AS SIGNED ) + + NULLIF ( - 39, + 70 + + 19 ) + - - 4 * - - CAST( - 56 AS SIGNED ) / + 58 ) THEN NULL WHEN + - 35 THEN + + 87 ELSE NULL END THEN - + 4 END + - 48 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT + CASE - 24 WHEN 30 + - 94 + - + CASE COUNT ( * ) WHEN 82 THEN NULL WHEN - COALESCE ( 94, - ( - 46 ) + + + 72 + CAST ( NULL AS INTEGER ) + + NULLIF ( - 39, + 70 + + 19 ) + - - 4 * - - CAST ( - 56 AS INTEGER ) / + 58 ) THEN NULL WHEN + - 35 THEN + + 87 ELSE NULL END THEN - + 4 END + - 48 * 29 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT DISTINCT + - CAST( + + 19 AS SIGNED ) * - + CASE - CAST( NULL AS SIGNED ) WHEN 64 THEN - 85 WHEN - 78 THEN AVG ( 96 ) + - 91 / COUNT( * ) + - 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT + - CAST ( + + 19 AS INTEGER ) * - + CASE - CAST ( NULL AS INTEGER ) WHEN 64 THEN - 85 WHEN - 78 THEN AVG ( 96 ) + - 91 / COUNT ( * ) + - 81 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 34 + - 96 AS col1
----
-130

query I rowsort
SELECT + NULLIF ( - 25, 41 * 97 )
----
-25

query I rowsort
SELECT + 47 + - + 58 AS col2
----
-11

query I rowsort
SELECT ALL - 66 AS col0
----
-66

query I rowsort
SELECT + 44 col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2062
SELECT - + 84 * - NULLIF ( + 49, - + 0 * + - 24 * 74 + + - 11 + - 2 * - 89 * - CAST( NULL AS DECIMAL ) - 74 * + ( COUNT( - - 85 ) ) )
----
4116

skipif mysql # not compatible
query I rowsort label-2062
SELECT - + 84 * - NULLIF ( + 49, - + 0 * + - 24 * 74 + + - 11 + - 2 * - 89 * - CAST ( NULL AS REAL ) - 74 * + ( COUNT ( - - 85 ) ) )
----
4116

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

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

query I rowsort
SELECT + 36 + + 52 AS col0
----
88

query I rowsort
SELECT DISTINCT + 6 col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT ALL + 24 + + 34 - + + CASE + 30 WHEN MIN( - 81 ) THEN - COUNT( * ) * + 92 END + - - 55 + 8 + 11 + - 24 * - 26 + + 71, - 87 AS col2
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL + 24 + + 34 - + + CASE + 30 WHEN MIN ( - 81 ) THEN - COUNT ( * ) * + 92 END + - - 55 + 8 + 11 + - 24 * - 26 + + 71, - 87 AS col2
----
NULL
-87

query I rowsort
SELECT ALL 20 + + - 25
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT MAX( 81 ) + - + 42
----
39

skipif mysql # not compatible
query I rowsort label-2068
SELECT MAX ( 81 ) + - + 42
----
39

query II rowsort
SELECT ALL 41 AS col1, 61
----
41
61

query I rowsort
SELECT ALL 92 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * + 33 col1
----
NULL

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

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

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

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

query I rowsort
SELECT + 4 col1
----
4

query I rowsort
SELECT 29 + - 32
----
-3

query I rowsort
SELECT 0 * + 92 * + 67
----
0

query I rowsort
SELECT COALESCE ( + 2, - + 51 ) * + + 10
----
20

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

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

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

query I rowsort
SELECT DISTINCT - ( 56 ) - + CASE 27 WHEN 65 / 53 THEN + 96 END col2
----
NULL

query I rowsort
SELECT ALL + 10 * 16
----
160

query I rowsort
SELECT ALL - 2 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2083
SELECT ALL - 73 AS col2, + 61 * + - CAST( NULL AS SIGNED )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-2083
SELECT ALL - 73 AS col2, + 61 * + - CAST ( NULL AS INTEGER )
----
-73
NULL

query I rowsort
SELECT DISTINCT + 93 * - 88 col0
----
-8184

query I rowsort
SELECT 13 AS col1
----
13

query I rowsort
SELECT 54 * - 96 AS col0
----
-5184

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT - 9 - - 64 * - 57 * 50 + + SUM( ALL - ( - 33 ) ) * + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 8 END AS col0
----
-182145

skipif mysql # not compatible
query I rowsort label-2091
SELECT - 9 - - 64 * - 57 * 50 + + SUM ( ALL - ( - 33 ) ) * + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 8 END AS col0
----
-182145

query I rowsort
SELECT ALL 27 AS col2
----
27

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

skipif mysql # not compatible
query I rowsort label-2093
SELECT 1 - + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - 69 + - 49 AS col2
----
-118

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT ALL - 19 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL - 19 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT 11 DIV - - 49 + - + ( 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2097
SELECT 11 / - - 49 + - + ( 40 ) AS col0
----
-40

query I rowsort
SELECT + 68 * + 28
----
1904

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

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

query I rowsort
SELECT 1 * - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + - 75 + 6 + 18 + 10 + - + COUNT( * ) * 27
----
-68

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + - 75 + 6 + 18 + 10 + - + COUNT ( * ) * 27
----
-68

query I rowsort
SELECT DISTINCT + 95 + - 81
----
14

query I rowsort
SELECT - 73
----
-73

query I rowsort
SELECT DISTINCT - 25 + + 31 AS col1
----
6

query I rowsort
SELECT DISTINCT - ( - 9 ) + 26 + - ( NULLIF ( - 91, ( - 73 ) + 69 ) ) AS col1
----
126

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT 84 + - COUNT( * ) AS col0, CASE + COUNT( * ) WHEN + ( - - MAX( + 26 ) ) THEN + 53 END * - 14 * + 84 + + MAX( ALL + - 86 ) + - 17 AS col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-2107
SELECT 84 + - COUNT ( * ) AS col0, CASE + COUNT ( * ) WHEN + ( - - MAX ( + 26 ) ) THEN + 53 END * - 14 * + 84 + + MAX ( ALL + - 86 ) + - 17 AS col2
----
83
NULL

query I rowsort
SELECT ( - 29 ) * - + 40 + + - 88 + 0
----
1072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT DISTINCT MIN( + CAST( + 74 AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT MIN ( + CAST ( + 74 AS INTEGER ) )
----
74

query I rowsort
SELECT 78 * + 68 + 1 AS col2
----
5305

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT - 35 DIV - COUNT( * ) + - COUNT( * ) DIV - 49 + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2112
SELECT - 35 / - COUNT ( * ) + - COUNT ( * ) / - 49 + COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2113
SELECT ALL - 73 AS col0, SUM( - 40 )
----
-73
-40

skipif mysql # not compatible
query II rowsort label-2113
SELECT ALL - 73 AS col0, SUM ( - 40 )
----
-73
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT 51 - MAX( 77 ) + 22 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT 51 - MAX ( 77 ) + 22 AS col2
----
-4

query I rowsort
SELECT 47 * - 51 AS col2
----
-2397

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT 52 DIV + 69 + + 60 - - 56 * - 32 * + + 72 + + + 28
----
-128936

skipif mysql # not compatible
query I rowsort label-2116
SELECT 52 / + 69 + + 60 - - 56 * - 32 * + + 72 + + + 28
----
-128936

query II rowsort
SELECT ALL - 89 AS col0, - 44 AS col1
----
-89
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2118
SELECT COALESCE ( - CAST( 54 AS SIGNED ), NULLIF ( - CASE - - 24 WHEN - + 26 + 21 THEN NULL ELSE - - 68 END, + 76 ) DIV 10 ) + - + 65
----
-119

skipif mysql # not compatible
query I rowsort label-2118
SELECT COALESCE ( - CAST ( 54 AS INTEGER ), NULLIF ( - CASE - - 24 WHEN - + 26 + 21 THEN NULL ELSE - - 68 END, + 76 ) / 10 ) + - + 65
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT + MIN( + + 33 ) * 69 + + 85 AS col0
----
2362

skipif mysql # not compatible
query I rowsort label-2119
SELECT + MIN ( + + 33 ) * 69 + + 85 AS col0
----
2362

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT COALESCE ( 53, + + 83 ) * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2120
SELECT COALESCE ( 53, + + 83 ) * COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2121
SELECT ALL 10 DIV - + 6, - CAST( 98 AS SIGNED ) DIV 98 + + 93 AS col2
----
-1
92

skipif mysql # not compatible
query II rowsort label-2121
SELECT ALL 10 / - + 6, - CAST ( 98 AS INTEGER ) / 98 + + 93 AS col2
----
-1
92

query II rowsort
SELECT ALL - - 49 AS col2, 23 AS col2
----
49
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT ALL - - NULLIF ( CAST( - 10 AS SIGNED ), + + 25 ) AS col1, 52 + + 12 AS col2
----
-10
64

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL - - NULLIF ( CAST ( - 10 AS INTEGER ), + + 25 ) AS col1, 52 + + 12 AS col2
----
-10
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - ( COUNT( * ) ) + - + 5 + + 62
----
56

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - ( COUNT ( * ) ) + - + 5 + + 62
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT COUNT( * ) + - + CASE + 94 WHEN - MIN( DISTINCT + 84 ) + 68 + + 19 * - COUNT( * ) * 21 THEN - 14 WHEN - 92 / - 12 + + SUM( DISTINCT + 14 ) + - + NULLIF ( + 37, - + 7 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT COUNT ( * ) + - + CASE + 94 WHEN - MIN ( DISTINCT + 84 ) + 68 + + 19 * - COUNT ( * ) * 21 THEN - 14 WHEN - 92 / - 12 + + SUM ( DISTINCT + 14 ) + - + NULLIF ( + 37, - + 7 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 75 col0
----
-75

query I rowsort
SELECT 34 + 58
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT - + CASE - 74 WHEN - COUNT( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT - + CASE - 74 WHEN - COUNT ( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT ( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT CAST( - - CASE - 48 WHEN + 0 THEN 44 END AS SIGNED ) * - CAST( NULL AS SIGNED ) + + - MAX( + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT CAST ( - - CASE - 48 WHEN + 0 THEN 44 END AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + - MAX ( + 56 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT 79 * - CAST( NULL AS SIGNED ) + 82 * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT 79 * - CAST ( NULL AS INTEGER ) + 82 * - + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2133
SELECT + 29, CASE 22 WHEN + COUNT( * ) THEN 97 ELSE NULL END + 45 AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2133
SELECT + 29, CASE 22 WHEN + COUNT ( * ) THEN 97 ELSE NULL END + 45 AS col1
----
29
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT - 66 DIV - NULLIF ( + + 70, - 21 * - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT - 66 / - NULLIF ( + + 70, - 21 * - COUNT ( * ) )
----
0

query I rowsort
SELECT ALL - - 35 + - 96
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2136
SELECT ALL + - MIN( ALL + 42 ) + + + 69 / - - 18 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + - MIN ( ALL + 42 ) + + + 69 / - - 18 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2137
SELECT - 79 AS col1, + NULLIF ( + 61, - 74 * - CAST( - 52 AS SIGNED ) + MAX( ALL + 20 ) )
----
-79
61

skipif mysql # not compatible
query II rowsort label-2137
SELECT - 79 AS col1, + NULLIF ( + 61, - 74 * - CAST ( - 52 AS INTEGER ) + MAX ( ALL + 20 ) )
----
-79
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT - 23 * - 54 * + - 47 - + 31 AS col1, ( - - 60 ) * + 10 * - SUM( - 40 )
----
-58405
24000

skipif mysql # not compatible
query II rowsort label-2138
SELECT - 23 * - 54 * + - 47 - + 31 AS col1, ( - - 60 ) * + 10 * - SUM ( - 40 )
----
-58405
24000

query II rowsort
SELECT DISTINCT - 77 AS col2, 65
----
-77
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT ALL + 96 + + 53 + + MAX( CAST( + - 40 AS SIGNED ) )
----
109

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL + 96 + + 53 + + MAX ( CAST ( + - 40 AS INTEGER ) )
----
109

query I rowsort
SELECT - - COALESCE ( + 47, 51, + - 22 ) + + - 86
----
-39

query I rowsort
SELECT - + 52 * - 91 AS col2
----
4732

onlyif mysql # aggregate syntax: 
query II rowsort label-2143
SELECT - COALESCE ( - + COUNT( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0
----
1
91

skipif mysql # not compatible
query II rowsort label-2143
SELECT - COALESCE ( - + COUNT ( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL MIN( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL MIN ( DISTINCT - 1 )
----
-1

query II rowsort
SELECT DISTINCT - 0 * - 48 AS col1, - 16
----
0
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-2146
SELECT - 29 DIV 24 AS col1, + 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-2146
SELECT - 29 / 24 AS col1, + 26
----
-1
26

query I rowsort
SELECT - 41 * - + 68 AS col0
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT + COUNT( * ) * - + 13 * - - COUNT( * ) * - 51 * 90 AS col0
----
59670

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + COUNT ( * ) * - + 13 * - - COUNT ( * ) * - 51 * 90 AS col0
----
59670

query II rowsort
SELECT DISTINCT ( + 68 ) AS col1, + 80
----
68
80

query II rowsort
SELECT DISTINCT ( + 19 ) col1, - 53 col0
----
19
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT DISTINCT - COUNT( * ) * 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT - COUNT ( * ) * 4 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL CASE + 47 WHEN 62 + CAST( NULL AS SIGNED ) THEN + + 86 ELSE - 62 + - 37 END
----
-99

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL CASE + 47 WHEN 62 + CAST ( NULL AS INTEGER ) THEN + + 86 ELSE - 62 + - 37 END
----
-99

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

query I rowsort
SELECT - 4 * 40
----
-160

query I rowsort
SELECT DISTINCT + 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + COUNT( 7 ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-2156
SELECT + COUNT ( 7 ) + 92
----
93

query II rowsort
SELECT - 51 * - + 58 * 38, 42 AS col0
----
112404
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT COUNT( * ) * + 75 + - - 51 col2
----
126

skipif mysql # not compatible
query I rowsort label-2158
SELECT COUNT ( * ) * + 75 + - - 51 col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT - 68 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT - 68 / + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT + CASE + 13 WHEN 86 / - COUNT( * ) * + 47 * + + CASE - 74 WHEN + - AVG ( ALL - 68 ) / + 56 + + + 89 * + 96 + + 29 * - 6 THEN NULL WHEN 44 / - 26 THEN 5 ELSE - - 92 END THEN - 48 WHEN + - CAST( + + 76 AS SIGNED ) * + + 97 * - 58 THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT + CASE + 13 WHEN 86 / - COUNT ( * ) * + 47 * + + CASE - 74 WHEN + - AVG ( ALL - 68 ) / + 56 + + + 89 * + 96 + + 29 * - 6 THEN NULL WHEN 44 / - 26 THEN 5 ELSE - - 92 END THEN - 48 WHEN + - CAST ( + + 76 AS INTEGER ) * + + 97 * - 58 THEN - 55 END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL + 13 * + CASE + - 48 WHEN COUNT( * ) THEN - 46 ELSE + 71 END AS col0
----
923

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + 13 * + CASE + - 48 WHEN COUNT ( * ) THEN - 46 ELSE + 71 END AS col0
----
923

query I rowsort
SELECT ALL - 17 * + 33 + - - 37 + 93 * + + 31 AS col1
----
2359

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL - - 13 * - 12 + - 0 + - + 75 + + - MIN( - + 99 )
----
-132

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - - 13 * - 12 + - 0 + - + 75 + + - MIN ( - + 99 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT 38 * - COUNT( * ) + - 24 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT 38 * - COUNT ( * ) + - 24 AS col0
----
-62

query I rowsort
SELECT + - 74 * 97 AS col2
----
-7178

query I rowsort
SELECT + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL CASE WHEN NOT 10 IS NULL THEN + - 68 ELSE + COUNT( + - 99 ) * 57 * - 53 * + 92 END * + 67 + - 1
----
-4557

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL CASE WHEN NOT 10 IS NULL THEN + - 68 ELSE + COUNT ( + - 99 ) * 57 * - 53 * + 92 END * + 67 + - 1
----
-4557

query I rowsort
SELECT - 58 + 6 AS col1
----
-52

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

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT 46 * - + 26 / - - COUNT ( * ) + + COUNT ( * ) + + 15 + - 63 AS col2
----
-1243

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

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

query I rowsort
SELECT ALL - 2 * + 43 + - - 52 + 35 * + 52 + - + 62
----
1724

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

query I rowsort
SELECT + + 47 - + - 54 + + 44 col2
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT - NULLIF ( + 5, 82 + - COALESCE ( AVG ( ALL - 54 ), + 21 + + + 31 + + + MAX( 53 ) * - - 60, + + COUNT( DISTINCT - 31 ) ) + - + 7 * + 59 + + - 72 - 78 + + COALESCE ( AVG ( + - 2 ), - 48 * + CAST( NULL AS SIGNED ) - + 35 + 52 ) * + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2175
SELECT - NULLIF ( + 5, 82 + - COALESCE ( AVG ( ALL - 54 ), + 21 + + + 31 + + + MAX ( 53 ) * - - 60, + + COUNT ( DISTINCT - 31 ) ) + - + 7 * + 59 + + - 72 - 78 + + COALESCE ( AVG ( + - 2 ), - 48 * + CAST ( NULL AS INTEGER ) - + 35 + 52 ) * + COUNT ( * ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT + 9 * - 89 * COUNT( * ) + - 71 col2
----
-872

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT + 9 * - 89 * COUNT ( * ) + - 71 col2
----
-872

query I rowsort
SELECT 3 AS col1
----
3

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

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - + COUNT ( * ) - - + 45 AS col1
----
44

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

query I rowsort
SELECT - - 10
----
10

query I rowsort
SELECT + 41 col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2182
SELECT - 36, - 38 + + - 17 + + - 6 * - 30 * 38 + + + COUNT( * ) AS col0
----
-36
6786

skipif mysql # not compatible
query II rowsort label-2182
SELECT - 36, - 38 + + - 17 + + - 6 * - 30 * 38 + + + COUNT ( * ) AS col0
----
-36
6786

query I rowsort
SELECT DISTINCT 77 - 33
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT + 59 - - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-2186
SELECT + 59 - - - COUNT ( * )
----
58

query I rowsort
SELECT + 17 * + - 44
----
-748

query I rowsort
SELECT DISTINCT 97 col1
----
97

query I rowsort
SELECT ALL ( + CASE - 95 WHEN 74 THEN + 23 ELSE - 3 END )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL SUM( DISTINCT - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL SUM ( DISTINCT - 72 ) AS col0
----
-72

query I rowsort
SELECT - 87 * 4 * 2 AS col2
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT - 5 - + - 97 + + CAST( 20 AS SIGNED ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT - 5 - + - 97 + + CAST ( 20 AS INTEGER ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT DISTINCT + 79 DIV + NULLIF ( - 14, - 92 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + 79 / + NULLIF ( - 14, - 92 ) AS col0
----
-5

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

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

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

skipif mysql # not compatible
query I rowsort label-2195
SELECT - COUNT ( * ) / - - 75
----
0

query II rowsort
SELECT 5 AS col0, - 68 AS col0
----
5
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT 52 * - COUNT( * ) + + 42 / + CAST( NULL AS SIGNED ) + + ( - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT 52 * - COUNT ( * ) + + 42 / + CAST ( NULL AS INTEGER ) + + ( - - 33 )
----
NULL

query I rowsort
SELECT DISTINCT - 80 * 4 AS col2
----
-320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2199
SELECT DISTINCT + 78 / - 23 + CAST( NULL AS SIGNED ) AS col1, ( + 54 )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-2199
SELECT DISTINCT + 78 / - 23 + CAST ( NULL AS INTEGER ) AS col1, ( + 54 )
----
NULL
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT ALL ( + - 79 ) DIV - 75 - 44 + + + 95 + + 40 + + 32 + + 66 * - - 18
----
1312

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL ( + - 79 ) / - 75 - 44 + + + 95 + + 40 + + 32 + + 66 * - - 18
----
1312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT ALL - 45 DIV - 89 + - + COUNT( * ) * + 75 * - 38 * - - 9 + + - 77
----
25573

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 45 / - 89 + - + COUNT ( * ) * + 75 * - 38 * - - 9 + + - 77
----
25573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2202
SELECT + + 99 * - 44 + - - 93 + - 7 * - 33 + + 96 * + COUNT( * ) + - 23 DIV - 95 * 16 + - + 25 AS col1
----
-3961

skipif mysql # not compatible
query I rowsort label-2202
SELECT + + 99 * - 44 + - - 93 + - 7 * - 33 + + 96 * + COUNT ( * ) + - 23 / - 95 * 16 + - + 25 AS col1
----
-3961

query I rowsort
SELECT - 73 * - + 45 + - - 83
----
3368

query I rowsort
SELECT + 18 col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2205
SELECT ALL 94 DIV 94 DIV - COUNT( * ) + + - 2 + - 47 * + 42 col1
----
-1977

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL 94 / 94 / - COUNT ( * ) + + - 2 + - 47 * + 42 col1
----
-1977

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2206
SELECT - NULLIF ( + - COUNT( * ), + - MIN( - CAST( NULL AS DECIMAL ) ) * - + 23 * - - 92 ) + + + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2206
SELECT - NULLIF ( + - COUNT ( * ), + - MIN ( - CAST ( NULL AS REAL ) ) * - + 23 * - - 92 ) + + + 36 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - 77 * - 29 * - + COUNT( + + 51 ) + 90 + - + 89 + 36 * - - 50 + COUNT( * ) + - 63 AS col1
----
-494

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 77 * - 29 * - + COUNT ( + + 51 ) + 90 + - + 89 + 36 * - - 50 + COUNT ( * ) + - 63 AS col1
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT + - ( - NULLIF ( - COUNT( * ), + 94 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2208
SELECT + - ( - NULLIF ( - COUNT ( * ), + 94 ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2209
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 62 + - + 14 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT CAST ( NULL AS REAL ) / + 62 + - + 14 * 48
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + - NULLIF ( - COUNT( * ), + 59 / 85 * - + 51 / - 63 * + 23 * - ( AVG ( - 14 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2211
SELECT + - NULLIF ( - COUNT ( * ), + 59 / 85 * - + 51 / - 63 * + 23 * - ( AVG ( - 14 ) ) ) AS col2
----
1

query I rowsort
SELECT + 39 + 87 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2213
SELECT + 78 * + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2, + 6 + + 14 + 18
----
NULL
38

skipif mysql # not compatible
query II rowsort label-2213
SELECT + 78 * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2, + 6 + + 14 + 18
----
NULL
38

query I rowsort
SELECT ALL 17 * + 90 + - 66
----
1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2215
SELECT DISTINCT + COALESCE ( - + 78, 91 + - - 23 * + 23 + - + 39 + - 87, 75 * COALESCE ( - 7, + 84 * + 48 DIV - COALESCE ( 93, + + 98 ) + - 85 - - + CAST( NULL AS SIGNED ) + - + 35 + 71 + - + NULLIF ( + 22, - NULLIF ( + 2, - 73 ) ), - COUNT( ALL + ( - + 41 ) ) ) + + CAST( 45 AS SIGNED ) ) + - SUM( ALL - 98 + 0 * + 10 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + COALESCE ( - + 78, 91 + - - 23 * + 23 + - + 39 + - 87, 75 * COALESCE ( - 7, + 84 * + 48 / - COALESCE ( 93, + + 98 ) + - 85 - - + CAST ( NULL AS INTEGER ) + - + 35 + 71 + - + NULLIF ( + 22, - NULLIF ( + 2, - 73 ) ), - COUNT ( ALL + ( - + 41 ) ) ) + + CAST ( 45 AS INTEGER ) ) + - SUM ( ALL - 98 + 0 * + 10 ) AS col0
----
20

query I rowsort
SELECT ALL + 7 * 13 AS col2
----
91

query I rowsort
SELECT + 5 + + 85
----
90

query I rowsort
SELECT DISTINCT - + 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ( 93 ) + - MAX( - + 26 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-2219
SELECT ( 93 ) + - MAX ( - + 26 ) AS col1
----
119

query II rowsort
SELECT - 14 AS col0, 84
----
-14
84

onlyif mysql # DIV for integer division: 
query II rowsort label-2221
SELECT 24 DIV 52 * - + 94 AS col2, 49 col1
----
0
49

skipif mysql # not compatible
query II rowsort label-2221
SELECT 24 / 52 * - + 94 AS col2, 49 col1
----
0
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT - - CASE - 84 WHEN + ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE - + COUNT( * ) * + NULLIF ( - + 8, AVG ( DISTINCT - 3 ) ) END AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2222
SELECT - - CASE - 84 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - + COUNT ( * ) * + NULLIF ( - + 8, AVG ( DISTINCT - 3 ) ) END AS col1
----
8

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

query I rowsort
SELECT - NULLIF ( + 4, + 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2225
SELECT NULLIF ( - CAST( + - 50 AS SIGNED ), - 45 - - 33 ) DIV + + 26
----
1

skipif mysql # not compatible
query I rowsort label-2225
SELECT NULLIF ( - CAST ( + - 50 AS INTEGER ), - 45 - - 33 ) / + + 26
----
1

query I rowsort
SELECT ( 23 ) + - 41 * - 55
----
2278

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + + 49, - 95, - 28 * + 93 ) * - + 28
----
-1372

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

skipif mysql # not compatible
query I rowsort label-2229
SELECT COUNT ( * ) * + + 82 * + 44 AS col1
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT 63 + - 47 + - 76 + - - COUNT( * ) * + + 35 DIV + + 20
----
-59

skipif mysql # not compatible
query I rowsort label-2230
SELECT 63 + - 47 + - 76 + - - COUNT ( * ) * + + 35 / + + 20
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT NULLIF ( - + 21, + COUNT( * ) + + 40 + - 65 * - - 4 + + + MIN( DISTINCT - 12 ) ) * - ( 93 ) * + 68 * 84 * + 46 AS col2
----
513154656

skipif mysql # not compatible
query I rowsort label-2231
SELECT NULLIF ( - + 21, + COUNT ( * ) + + 40 + - 65 * - - 4 + + + MIN ( DISTINCT - 12 ) ) * - ( 93 ) * + 68 * 84 * + 46 AS col2
----
513154656

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT 73 + + COUNT( * ) - + + 77
----
-3

skipif mysql # not compatible
query I rowsort label-2232
SELECT 73 + + COUNT ( * ) - + + 77
----
-3

query II rowsort
SELECT ALL - 93 + + + 21 AS col2, 6 AS col2
----
-72
6

query I rowsort
SELECT ALL 27 + + - 79 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT CAST( - + 77 AS SIGNED ) * + 59 * + + COUNT( * )
----
-4543

skipif mysql # not compatible
query I rowsort label-2235
SELECT CAST ( - + 77 AS INTEGER ) * + 59 * + + COUNT ( * )
----
-4543

query I rowsort
SELECT ALL + 21 + + - 55
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT ALL + 52 DIV + MIN( + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + 52 / + MIN ( + 85 )
----
0

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

skipif mysql # not compatible
query I rowsort label-2238
SELECT + 26 / + ( + 53 ) * - ( + COUNT ( ALL - 88 ) )
----
0

query I rowsort
SELECT + 96 * 99 AS col1
----
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL - + NULLIF ( + - MAX( - 21 ), - + 24 ) + 82
----
61

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - + NULLIF ( + - MAX ( - 21 ), - + 24 ) + 82
----
61

query I rowsort
SELECT + - 32
----
-32

query I rowsort
SELECT - NULLIF ( 98, - 47 ) AS col2
----
-98

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

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

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

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

query I rowsort
SELECT ALL - - 45
----
45

query I rowsort
SELECT - COALESCE ( 46, - 84 * 53 )
----
-46

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - COUNT( - ( - 2 ) ) * 50 + + + 30 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2249
SELECT - COUNT ( - ( - 2 ) ) * 50 + + + 30 AS col0
----
-20

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

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

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

query I rowsort
SELECT ALL + 84 - - 16 * ( + 34 ) col1
----
628

query I rowsort
SELECT - 78 * + + 84 AS col0
----
-6552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2254
SELECT 70 * - 13 + 83 * + 2 AS col1, + 51 + + - 84 DIV - + COALESCE ( - CASE COUNT( * ) WHEN + 90 + 14 * 18 THEN + + 51 ELSE + + 18 END, 96, + 81 )
----
-744
47

skipif mysql # not compatible
query II rowsort label-2254
SELECT 70 * - 13 + 83 * + 2 AS col1, + 51 + + - 84 / - + COALESCE ( - CASE COUNT ( * ) WHEN + 90 + 14 * 18 THEN + + 51 ELSE + + 18 END, 96, + 81 )
----
-744
47

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

query I rowsort
SELECT ALL - 60
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL + 96 DIV - 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 96 / - 40 AS col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-2258
SELECT COUNT ( * ) * - COUNT ( * ) * - - 16
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT 32 + - + MIN( + 0 ) * - COUNT( * ) * - + 24 + + + 11 + + COALESCE ( + 37, 68, + 52 ) AS col1, - 39
----
80
-39

skipif mysql # not compatible
query II rowsort label-2259
SELECT 32 + - + MIN ( + 0 ) * - COUNT ( * ) * - + 24 + + + 11 + + COALESCE ( + 37, 68, + 52 ) AS col1, - 39
----
80
-39

query II rowsort
SELECT ALL 42, 17 * + 9 AS col2
----
42
153

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT - 43, MAX( ALL - 65 ) col2
----
-43
-65

skipif mysql # not compatible
query II rowsort label-2261
SELECT - 43, MAX ( ALL - 65 ) col2
----
-43
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT 12 + + SUM( DISTINCT - + 96 ) - 64
----
-148

skipif mysql # not compatible
query I rowsort label-2262
SELECT 12 + + SUM ( DISTINCT - + 96 ) - 64
----
-148

query I rowsort
SELECT 18 * - + 16
----
-288

query I rowsort
SELECT 54 * + 61 * - - 18
----
59292

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2266
SELECT 38 AS col1, 5 - 46 - - + COALESCE ( - 56, - COUNT( * ) ) + + + ( - - 8 )
----
38
-89

skipif mysql # not compatible
query II rowsort label-2266
SELECT 38 AS col1, 5 - 46 - - + COALESCE ( - 56, - COUNT ( * ) ) + + + ( - - 8 )
----
38
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT + ( MAX( - - 25 ) ) + 94 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + ( MAX ( - - 25 ) ) + 94 AS col1
----
119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT MAX( - - 52 ) * + + 58
----
3016

skipif mysql # not compatible
query I rowsort label-2269
SELECT MAX ( - - 52 ) * + + 58
----
3016

query I rowsort
SELECT ALL + 89 + + 42
----
131

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

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

query I rowsort
SELECT ALL 68 * 17 * 24
----
27744

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - SUM( DISTINCT 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-2273
SELECT - SUM ( DISTINCT 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL 80 + MIN( 61 ) * - 5 + - 72
----
-297

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL 80 + MIN ( 61 ) * - 5 + - 72
----
-297

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

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

query I rowsort
SELECT ( - 13 ) - + + ( + - 48 ) + + - ( - 17 ) - + 70 * - 88 * + 40 * - - 64 col2
----
15769652

query I rowsort
SELECT 53 + + 27 * + 13
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT SUM( - + 55 ) - - COUNT( ALL 84 ) - + COUNT( * ) * 18 * + 5 * - 86 AS col1
----
7686

skipif mysql # not compatible
query I rowsort label-2278
SELECT SUM ( - + 55 ) - - COUNT ( ALL 84 ) - + COUNT ( * ) * 18 * + 5 * - 86 AS col1
----
7686

query I rowsort
SELECT + 94 * - + 89
----
-8366

query I rowsort
SELECT ALL + - 90
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT + + 75 DIV 59 + + + 40 + + - 65 + - - COUNT( * ) DIV ( - ( - 82 ) ) + COUNT( * ) DIV + COALESCE ( 7, - - 70 + 43 )
----
-24

skipif mysql # not compatible
query I rowsort label-2281
SELECT + + 75 / 59 + + + 40 + + - 65 + - - COUNT ( * ) / ( - ( - 82 ) ) + COUNT ( * ) / + COALESCE ( 7, - - 70 + 43 )
----
-24

query I rowsort
SELECT ALL 10 * 67 * - - NULLIF ( + 92, - - 11 * - + 65 ) - - + 22 - 27 AS col0
----
61635

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT 85, 49 AS col2
----
85
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT - + 69 DIV + 57 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2287
SELECT - + 69 / + 57 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT MIN( DISTINCT - 21 ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT MIN ( DISTINCT - 21 ) / 55
----
0

query I rowsort
SELECT - 23 + - + 6
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-2290
SELECT + 62 DIV 76 * 85 AS col1, - 10
----
0
-10

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 62 / 76 * 85 AS col1, - 10
----
0
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2291
SELECT - 32 * + ( - 52 ) AS col1, 71 DIV + 14 AS col2
----
1664
5

skipif mysql # not compatible
query II rowsort label-2291
SELECT - 32 * + ( - 52 ) AS col1, 71 / + 14 AS col2
----
1664
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT + COUNT( - 29 ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + COUNT ( - 29 ) / + 25 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2294
SELECT ALL - 53 * + 63 * CAST( + + ( 50 ) AS SIGNED ) - + MIN( + 93 ) * - 20 + + + 50 DIV - 78
----
-165090

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - 53 * + 63 * CAST ( + + ( 50 ) AS INTEGER ) - + MIN ( + 93 ) * - 20 + + + 50 / - 78
----
-165090

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

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT 64 * + COUNT ( * ) AS col2
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2296
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, - 19 + + 42 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL + CAST ( NULL AS REAL ) AS col1, - 19 + + 42 AS col1
----
NULL
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT - MAX( DISTINCT + 10 ) * 34 * - CAST( 56 AS SIGNED ) * + - COUNT( DISTINCT 15 )
----
-19040

skipif mysql # not compatible
query I rowsort label-2297
SELECT - MAX ( DISTINCT + 10 ) * 34 * - CAST ( 56 AS INTEGER ) * + - COUNT ( DISTINCT 15 )
----
-19040

query I rowsort
SELECT + ( ( - + 66 ) ) AS col1
----
-66

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT + 96 AS col2, - ( + 5 ) * MIN( + 90 )
----
96
-450

skipif mysql # not compatible
query II rowsort label-2301
SELECT + 96 AS col2, - ( + 5 ) * MIN ( + 90 )
----
96
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL CASE - 18 WHEN + - 64 THEN - - COUNT( ALL + - 14 ) ELSE 77 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL CASE - 18 WHEN + - 64 THEN - - COUNT ( ALL + - 14 ) ELSE 77 END AS col0
----
77

query I rowsort
SELECT - 52 * NULLIF ( - 10, + + 51 ) * 56
----
29120

query I rowsort
SELECT DISTINCT NULLIF ( 18, + 5 ) AS col0
----
18

query I rowsort
SELECT ALL + 93 + + 55 * - NULLIF ( - - 43, + + ( - ( + 72 ) ) + + 12 )
----
-2272

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

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - 22 + COUNT( * ) * + 85 + + 70 + 71 + 31
----
235

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 22 + COUNT ( * ) * + 85 + + 70 + 71 + 31
----
235

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

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

query I rowsort
SELECT ALL 69 * + 48
----
3312

query II rowsort
SELECT 45, 52 * + + 72 AS col0
----
45
3744

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

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

query I rowsort
SELECT + ( + 14 ) + - + 49 AS col1
----
-35

query II rowsort
SELECT - 30 AS col0, + 88 * + 80 * + 39
----
-30
274560

query II rowsort
SELECT DISTINCT + 56 AS col0, 91 + + 88
----
56
179

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2315
SELECT ALL 47 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2315
SELECT ALL 47 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
47
NULL

query I rowsort
SELECT ALL CASE - 94 WHEN 75 THEN + 81 WHEN + 78 + + 94 THEN - 31 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2317
SELECT DISTINCT - - 45 DIV - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT - - 45 / - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + SUM( ALL + 25 ) * + + 57 + - COUNT( * ) * - MAX( - 90 ) col2
----
1335

skipif mysql # not compatible
query I rowsort label-2318
SELECT + SUM ( ALL + 25 ) * + + 57 + - COUNT ( * ) * - MAX ( - 90 ) col2
----
1335

query I rowsort
SELECT - 11 - - 43 col1
----
32

query II rowsort
SELECT + + 84 col1, 69
----
84
69

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

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

query II rowsort
SELECT 25 AS col0, 34 AS col1
----
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + - 12 * - COUNT( - 77 )
----
12

skipif mysql # not compatible
query I rowsort label-2323
SELECT + - 12 * - COUNT ( - 77 )
----
12

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

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

query I rowsort
SELECT ALL 91 * - 61 * - 44 AS col0
----
244244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT + - 62 - MIN( + 42 ) DIV - MAX( + 4 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - 62 - MIN ( + 42 ) / - MAX ( + 4 ) AS col1
----
-52

query I rowsort
SELECT ALL - 57 * - ( + - 37 ) AS col0
----
-2109

query I rowsort
SELECT ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT ALL + + COUNT( * ) col2, 51 * COUNT( * ) + + 46
----
1
97

skipif mysql # not compatible
query II rowsort label-2329
SELECT ALL + + COUNT ( * ) col2, 51 * COUNT ( * ) + + 46
----
1
97

query II rowsort
SELECT + + 33 col0, - ( - - 30 ) * + + 3 + + 77
----
33
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2331
SELECT ALL + 78 * + CAST( - 59 AS SIGNED ) + + ( - + 93 ) * - - 18 * + + COUNT( * ) AS col1, - 43 AS col1
----
-6276
-43

skipif mysql # not compatible
query II rowsort label-2331
SELECT ALL + 78 * + CAST ( - 59 AS INTEGER ) + + ( - + 93 ) * - - 18 * + + COUNT ( * ) AS col1, - 43 AS col1
----
-6276
-43

query III rowsort
SELECT + 59 + - + 19 AS col1, 6 AS col2, + 76 + + 94 + + 55
----
40
6
225

query I rowsort
SELECT ( + COALESCE ( + + 62, + - 9 + + - 4 ) )
----
62

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

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

query I rowsort
SELECT - 41 - - - 55 AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2336
SELECT ALL COUNT( * ) DIV 67 * 9 * + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL COUNT ( * ) / 67 * 9 * + - 89 AS col2
----
0

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

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

query I rowsort
SELECT - 58 + 38 * + + NULLIF ( NULLIF ( + 59, - 67 ), 98 ) + + 88 AS col2
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL 79 * - 97 + + MAX( ALL 84 ) + + - ( 42 )
----
-7621

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 79 * - 97 + + MAX ( ALL 84 ) + + - ( 42 )
----
-7621

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL 48 * + - 65 + MAX( - + 46 )
----
-3166

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 48 * + - 65 + MAX ( - + 46 )
----
-3166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2341
SELECT + 5 * + + COUNT( * ) DIV COUNT( * ) * + 49
----
245

skipif mysql # not compatible
query I rowsort label-2341
SELECT + 5 * + + COUNT ( * ) / COUNT ( * ) * + 49
----
245

query I rowsort
SELECT - 81 + + NULLIF ( + 30, + - 35 ) AS col2
----
-51

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

query I rowsort
SELECT NULLIF ( - - 79, - 67 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL - 69 * COUNT( * ) + + + 78
----
9

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - 69 * COUNT ( * ) + + + 78
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT - NULLIF ( + CASE - 32 WHEN CAST( NULL AS SIGNED ) THEN ( - 12 ) ELSE NULL END, + - 50 ) * + + COUNT( * ) / - 50 - - CAST( + COUNT( * ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT - NULLIF ( + CASE - 32 WHEN CAST ( NULL AS INTEGER ) THEN ( - 12 ) ELSE NULL END, + - 50 ) * + + COUNT ( * ) / - 50 - - CAST ( + COUNT ( * ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 45 * + 30 AS col2
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2348
SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST( NULL AS SIGNED ), - 44 * + CAST( NULL AS SIGNED ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT( * ) AS col1
----
-199584
NULL

skipif mysql # not compatible
query II rowsort label-2348
SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 * + CAST ( NULL AS INTEGER ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT ( * ) AS col1
----
-199584
NULL

query II rowsort
SELECT 78 - - + 15 AS col0, + 12 AS col0
----
93
12

query I rowsort
SELECT 17 col0
----
17

query I rowsort
SELECT DISTINCT - 58 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2352
SELECT ALL - 13 DIV CAST( - COUNT( * ) AS SIGNED ) AS col1
----
13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT - CASE + 69 WHEN - CAST( + - 21 AS SIGNED ) + - - 30 THEN - + NULLIF ( + 99, + - 79 + + - 75 ) * + + 17 * - 42 END - + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT - CASE + 69 WHEN - CAST ( + - 21 AS INTEGER ) + - - 30 THEN - + NULLIF ( + 99, + - 79 + + - 75 ) * + + 17 * - 42 END - + 0 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - 22 + - COUNT( * ) + - ( 92 ) * - 84 AS col2
----
7705

skipif mysql # not compatible
query I rowsort label-2355
SELECT - 22 + - COUNT ( * ) + - ( 92 ) * - 84 AS col2
----
7705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2356
SELECT DISTINCT - 61 * - 87 AS col0, 76 * + 21 * + CAST( NULL AS SIGNED )
----
5307
NULL

skipif mysql # not compatible
query II rowsort label-2356
SELECT DISTINCT - 61 * - 87 AS col0, 76 * + 21 * + CAST ( NULL AS INTEGER )
----
5307
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL + 97 + - - COUNT( - 38 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 97 + - - COUNT ( - 38 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2358
SELECT - - NULLIF ( - 68, 1 + + - 66 ) DIV - 3 + 15 + COUNT( * ) * - - 52 + 27 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2358
SELECT - - NULLIF ( - 68, 1 + + - 66 ) / - 3 + 15 + COUNT ( * ) * - - 52 + 27 AS col0
----
116

query I rowsort
SELECT ALL - - 14 AS col0
----
14

query I rowsort
SELECT ALL - - 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT 55 * - + NULLIF ( - COUNT( * ), + + CAST( + + 39 AS SIGNED ) - - + 0 )
----
55

skipif mysql # not compatible
query I rowsort label-2361
SELECT 55 * - + NULLIF ( - COUNT ( * ), + + CAST ( + + 39 AS INTEGER ) - - + 0 )
----
55

query I rowsort
SELECT ALL + - 75 + + 70 col0
----
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT 67 * - 14 * COUNT( * ) + + 60 + + 92 AS col0, - 74
----
-786
-74

skipif mysql # not compatible
query II rowsort label-2364
SELECT 67 * - 14 * COUNT ( * ) + + 60 + + 92 AS col0, - 74
----
-786
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2365
SELECT DISTINCT + NULLIF ( 28, + COALESCE ( 0, + CAST( - + MIN( + - 20 ) AS DECIMAL ), 95 ) + ( - 27 ) + - - 43 * - 43 ) + + ( + 79 )
----
107

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + NULLIF ( 28, + COALESCE ( 0, + CAST ( - + MIN ( + - 20 ) AS REAL ), 95 ) + ( - 27 ) + - - 43 * - 43 ) + + ( + 79 )
----
107

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

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

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

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

query I rowsort
SELECT ALL - 66 * + 76 * + 61 * 85 AS col2
----
-26007960

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

query I rowsort
SELECT 44 + + NULLIF ( + 83, + 67 * + 43 ) + - 29 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT CASE CASE - + ( 98 ) WHEN 31 THEN - - COALESCE ( - 57, ( - 9 ), - + 29 - NULLIF ( + + 62, ( - 99 ) * - COUNT( + 45 ) ) + + 83 ) - + 59 - + - 92 * - COALESCE ( - 32, COUNT( * ) ) ELSE + - 3 END WHEN 15 / - + 39 + - ( + 46 ) * - + 65 - - 79 THEN NULLIF ( - - 98, 35 - ( - ( - 8 ) ) * - COUNT( * ) ) ELSE NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT CASE CASE - + ( 98 ) WHEN 31 THEN - - COALESCE ( - 57, ( - 9 ), - + 29 - NULLIF ( + + 62, ( - 99 ) * - COUNT ( + 45 ) ) + + 83 ) - + 59 - + - 92 * - COALESCE ( - 32, COUNT ( * ) ) ELSE + - 3 END WHEN 15 / - + 39 + - ( + 46 ) * - + 65 - - 79 THEN NULLIF ( - - 98, 35 - ( - ( - 8 ) ) * - COUNT ( * ) ) ELSE NULL END * 82
----
NULL

query I rowsort
SELECT ( - + 30 ) + + 49 + - 81
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT DISTINCT 92 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT 92 / - 49
----
-1

query II rowsort
SELECT DISTINCT 21, + 63 * + + 6 AS col2
----
21
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT ALL 21 / 64 * CAST( NULL AS SIGNED ) * + + ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL 21 / 64 * CAST ( NULL AS INTEGER ) * + + ( + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ( + 50 ) + ( - + COALESCE ( + 69, + SUM( DISTINCT - 62 ) * 48 + + - 62, COUNT( * ) ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( + 50 ) + ( - + COALESCE ( + 69, + SUM ( DISTINCT - 62 ) * 48 + + - 62, COUNT ( * ) ) ) AS col0
----
-19

query I rowsort
SELECT 82 * + 44
----
3608

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

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

query I rowsort
SELECT 44 + 86 AS col0
----
130

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

query I rowsort
SELECT - 70 * - - 15 AS col2
----
-1050

query II rowsort
SELECT 91 * ( 52 ) AS col2, + 70
----
4732
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT + COUNT( * ) AS col0, 6 - - 80
----
1
86

skipif mysql # not compatible
query II rowsort label-2383
SELECT + COUNT ( * ) AS col0, 6 - - 80
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT COUNT( * ) + - + 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2384
SELECT COUNT ( * ) + - + 99 AS col0
----
-98

query I rowsort
SELECT + 62 + 11 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL + + 15 + + - 95 * 68 + + MIN( + - 89 ) AS col2
----
-6534

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL + + 15 + + - 95 * 68 + + MIN ( + - 89 ) AS col2
----
-6534

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT MAX ( ALL - 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT DISTINCT + 99 + COUNT( * ) * + 70 - + - 97 + 19 * 28 * - 41 + 76 + - - 28 + - CASE - COUNT( DISTINCT + - 54 ) WHEN + CAST( NULL AS SIGNED ) THEN + MAX( DISTINCT - 52 ) WHEN - 84 * - 49 + + 91 + - 10 THEN NULL WHEN - 40 THEN - 23 END * - 84 + + - 77 + + 48 - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT + 99 + COUNT ( * ) * + 70 - + - 97 + 19 * 28 * - 41 + 76 + - - 28 + - CASE - COUNT ( DISTINCT + - 54 ) WHEN + CAST ( NULL AS INTEGER ) THEN + MAX ( DISTINCT - 52 ) WHEN - 84 * - 49 + + 91 + - 10 THEN NULL WHEN - 40 THEN - 23 END * - 84 + + - 77 + + 48 - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 23 + - - ( 72 ) + - 12
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - 66 + + + COUNT( * ) + - - COUNT( * ) * 82 * + 29
----
2313

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - 66 + + + COUNT ( * ) + - - COUNT ( * ) * 82 * + 29
----
2313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT DISTINCT + + 73 * + MAX( ALL + - CAST( 56 AS SIGNED ) ) + 16
----
-4072

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + + 73 * + MAX ( ALL + - CAST ( 56 AS INTEGER ) ) + 16
----
-4072

query I rowsort
SELECT + 78 * - - 59
----
4602

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2395
SELECT ALL 97 * 33 + + - COUNT( * ) + 56, - 58 + + - CASE + COUNT( * ) WHEN - - CAST( + 61 AS SIGNED ) THEN + 73 ELSE NULL END AS col2
----
3256
NULL

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL 97 * 33 + + - COUNT ( * ) + 56, - 58 + + - CASE + COUNT ( * ) WHEN - - CAST ( + 61 AS INTEGER ) THEN + 73 ELSE NULL END AS col2
----
3256
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2396
SELECT 38 * 37 * - - CAST( - COALESCE ( COUNT( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS SIGNED ) AS col2, 88 * 14 * + - 71 AS col2
----
-1406
-87472

skipif mysql # not compatible
query II rowsort label-2396
SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2
----
-1406
-87472

query I rowsort
SELECT ALL + 34 * 5 AS col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2398
SELECT ALL - CAST( + 0 AS SIGNED ) * + COUNT( * ) * 29 DIV 21 + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - CAST ( + 0 AS INTEGER ) * + COUNT ( * ) * 29 / 21 + 19 AS col0
----
19

query I rowsort
SELECT 47 - 54 + + 38 AS col1
----
31

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2401
SELECT CASE 31 WHEN - 88 * + + 29 - 78 * 3 + + NULLIF ( + 74, + SUM( 61 ) ) THEN - 30 DIV + 75 ELSE + ( COUNT( * ) ) DIV - - 12 END * + ( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT CASE 31 WHEN - 88 * + + 29 - 78 * 3 + + NULLIF ( + 74, + SUM ( 61 ) ) THEN - 30 / + 75 ELSE + ( COUNT ( * ) ) / - - 12 END * + ( 0 ) AS col0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT ALL 40 * + COUNT( * ) * - 4 * SUM( DISTINCT - + 68 ) - + 68 DIV - COALESCE ( 95, + 0 * 77, 14 ) col0
----
10880

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 40 * + COUNT ( * ) * - 4 * SUM ( DISTINCT - + 68 ) - + 68 / - COALESCE ( 95, + 0 * 77, 14 ) col0
----
10880

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT 37 * - + SUM( ALL + 82 )
----
-3034

skipif mysql # not compatible
query I rowsort label-2404
SELECT 37 * - + SUM ( ALL + 82 )
----
-3034

query I rowsort
SELECT + 50 col1
----
50

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

query I rowsort
SELECT DISTINCT + NULLIF ( 25, - 27 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT + NULLIF ( + ( + 47 ), + CAST( NULL AS SIGNED ) * - - 82 + - + 4 ) - + NULLIF ( - 53, + 96 * - 50 ) + + 19 - - + 95 * - 44
----
-4061

skipif mysql # not compatible
query I rowsort label-2408
SELECT + NULLIF ( + ( + 47 ), + CAST ( NULL AS INTEGER ) * - - 82 + - + 4 ) - + NULLIF ( - 53, + 96 * - 50 ) + + 19 - - + 95 * - 44
----
-4061

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

skipif mysql # not compatible
query I rowsort label-2409
SELECT - COUNT ( * ) * - - ( 5 )
----
-5

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

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

query II rowsort
SELECT DISTINCT 51 * - 29 col2, 46 + 23 + - + 74
----
-1479
-5

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

query I rowsort
SELECT DISTINCT + 99 * + 30 AS col1
----
2970

query I rowsort
SELECT 42 AS col1
----
42

query I rowsort
SELECT - - 90
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT + ( 73 ), + SUM( 91 ) AS col1
----
73
91

skipif mysql # not compatible
query II rowsort label-2416
SELECT + ( 73 ), + SUM ( 91 ) AS col1
----
73
91

query I rowsort
SELECT - - 36
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + 91 DIV 4
----
22

skipif mysql # not compatible
query I rowsort label-2418
SELECT + 91 / 4
----
22

query I rowsort
SELECT + 60 * - 99 + + 83
----
-5857

query I rowsort
SELECT - 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL 74 + CASE - 87 WHEN + COUNT( * ) THEN + 80 / 2 + - COUNT( * ) + + 56 + - - 89 WHEN - 54 THEN 26 END * - - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL 74 + CASE - 87 WHEN + COUNT ( * ) THEN + 80 / 2 + - COUNT ( * ) + + 56 + - - 89 WHEN - 54 THEN 26 END * - - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2422
SELECT DISTINCT + COUNT( * ) + - 85 col0, 2 * + - 53
----
-84
-106

skipif mysql # not compatible
query II rowsort label-2422
SELECT DISTINCT + COUNT ( * ) + - 85 col0, 2 * + - 53
----
-84
-106

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + - 75 + + 16 + COUNT( ALL 26 )
----
-58

skipif mysql # not compatible
query I rowsort label-2425
SELECT + - 75 + + 16 + COUNT ( ALL 26 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2426
SELECT ALL - 69 + + 8 * - + MIN( + - CAST( NULL AS SIGNED ) ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - 69 + + 8 * - + MIN ( + - CAST ( NULL AS INTEGER ) ) + 78
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT MAX( - 94 ) col1, 73 AS col0
----
-94
73

skipif mysql # not compatible
query II rowsort label-2428
SELECT MAX ( - 94 ) col1, 73 AS col0
----
-94
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + + COUNT( * ) + - + 94 - 12
----
-105

skipif mysql # not compatible
query I rowsort label-2429
SELECT + + COUNT ( * ) + - + 94 - 12
----
-105

query II rowsort
SELECT - + COALESCE ( + 23, 71 ) - - - 7 AS col1, + 44
----
-30
44

query I rowsort
SELECT + - 40 + - - 50 + - - 50 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - 76 - 60 + + NULLIF ( - 0, 10 * - COUNT( * ) ) + - 54 - - - 73 AS col0
----
-263

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 76 - 60 + + NULLIF ( - 0, 10 * - COUNT ( * ) ) + - 54 - - - 73 AS col0
----
-263

query I rowsort
SELECT + + 65 + - + 92 AS col2
----
-27

query I rowsort
SELECT - 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL - - COUNT( * ) - 38 * - 40 AS col1
----
1521

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - - COUNT ( * ) - 38 * - 40 AS col1
----
1521

query I rowsort
SELECT - + 79
----
-79

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

query I rowsort
SELECT - 82 + + 79 + + - 29 + - ( COALESCE ( + - ( + + 5 ), + + 18 * 29 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + 55 * - 62 + - COUNT( * )
----
-3411

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 55 * - 62 + - COUNT ( * )
----
-3411

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + SUM( DISTINCT - 14 ) * - SUM( + 28 ) col0
----
392

skipif mysql # not compatible
query I rowsort label-2440
SELECT + SUM ( DISTINCT - 14 ) * - SUM ( + 28 ) col0
----
392

query I rowsort
SELECT - ( - + 44 ) * + 59 * 24 AS col0
----
62304

onlyif mysql # aggregate syntax: 
query II rowsort label-2442
SELECT ALL + 3 * ( - - COUNT( * ) ) AS col0, 8
----
3
8

skipif mysql # not compatible
query II rowsort label-2442
SELECT ALL + 3 * ( - - COUNT ( * ) ) AS col0, 8
----
3
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT 12 DIV 37 + + 7 + - 60 * + 45
----
-2693

skipif mysql # not compatible
query I rowsort label-2445
SELECT 12 / 37 + + 7 + - 60 * + 45
----
-2693

query I rowsort
SELECT - 40 * 88 AS col0
----
-3520

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

query I rowsort
SELECT ALL + NULLIF ( - 10, 34 * + 46 * - 42 * - + 91 )
----
-10

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

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

query I rowsort
SELECT DISTINCT - 85 * + 40 AS col2
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT + 31 * + 38 * COUNT( * ) AS col2
----
1178

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + 31 * + 38 * COUNT ( * ) AS col2
----
1178

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL - 40 DIV - + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - 40 / - + 76 AS col1
----
0

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

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

query I rowsort
SELECT - 74 + - 83
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT + 84 * - - 14 - - - COUNT( * )
----
1175

skipif mysql # not compatible
query I rowsort label-2456
SELECT + 84 * - - 14 - - - COUNT ( * )
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + CASE + COUNT( * ) WHEN - + 45 THEN - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT + CASE + COUNT ( * ) WHEN - + 45 THEN - 16 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + 31 + - ( 1 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT 94 * + 13 / + AVG ( + - 56 ) * COUNT( * ) * + + CASE - COUNT( * ) WHEN + 97 THEN NULL WHEN - + 25 THEN + ( 15 ) / + ( - + 62 ) * - + 15 * - 84 END + + 76 / + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT 94 * + 13 / + AVG ( + - 56 ) * COUNT ( * ) * + + CASE - COUNT ( * ) WHEN + 97 THEN NULL WHEN - + 25 THEN + ( 15 ) / + ( - + 62 ) * - + 15 * - 84 END + + 76 / + - 50 AS col1
----
NULL

query I rowsort
SELECT ALL + CASE - 29 WHEN - 47 THEN 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + + 4 + + - COUNT( * ) * - 58 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2462
SELECT + + 4 + + - COUNT ( * ) * - 58 AS col0
----
62

query I rowsort
SELECT ALL - + 98 * + 54 - - + 70 + + 2
----
-5220

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2464
SELECT ALL - CAST( NULL AS DECIMAL ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - CAST ( NULL AS REAL ) * + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT + 47 + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 47 + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT + - COUNT( ALL - 80 ) * + + 12 * + + NULLIF ( + ( - SUM( ALL - - 28 ) ), ( + + CASE - MAX( ALL + + 51 ) WHEN CAST( NULL AS SIGNED ) THEN 43 ELSE NULL END ) * + - 22 + + 80 * 9 * 72 ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-2466
SELECT + - COUNT ( ALL - 80 ) * + + 12 * + + NULLIF ( + ( - SUM ( ALL - - 28 ) ), ( + + CASE - MAX ( ALL + + 51 ) WHEN CAST ( NULL AS INTEGER ) THEN 43 ELSE NULL END ) * + - 22 + + 80 * 9 * 72 ) AS col2
----
336

query I rowsort
SELECT - 63 col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT + CAST( + + 48 AS SIGNED ) + - 37 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2468
SELECT + CAST ( + + 48 AS INTEGER ) + - 37 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT + 74 + + 27 DIV - 34 + + NULLIF ( - 25, ( - ( + - 76 ) ) * ( + - 26 ) )
----
49

skipif mysql # not compatible
query I rowsort label-2469
SELECT + 74 + + 27 / - 34 + + NULLIF ( - 25, ( - ( + - 76 ) ) * ( + - 26 ) )
----
49

query I rowsort
SELECT DISTINCT 48 * 79 AS col2
----
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT ALL - COUNT( + 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - COUNT ( + 61 )
----
-1

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

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

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

query I rowsort
SELECT ALL - ( - 1 ) * + 59 * - 36
----
-2124

query II rowsort
SELECT DISTINCT 83 AS col0, 34
----
83
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT + 76 DIV NULLIF ( - 47, + - COUNT( * ) * + 83 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2476
SELECT + 76 / NULLIF ( - 47, + - COUNT ( * ) * + 83 ) AS col2
----
-1

query I rowsort
SELECT ALL 82 * - - 19 col2
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT - COUNT( * ) * - 19 - 76
----
-57

skipif mysql # not compatible
query I rowsort label-2478
SELECT - COUNT ( * ) * - 19 - 76
----
-57

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

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

query II rowsort
SELECT 98 + + + 73, 87 AS col1
----
171
87

query I rowsort
SELECT ALL 5 * 33
----
165

query I rowsort
SELECT ALL - 17 AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2483
SELECT ALL - SUM( DISTINCT - 72 ) + - CASE + 37 WHEN 74 * - + 43 THEN - - 44 * - + 61 / + - CAST( - - AVG ( DISTINCT - 62 ) AS SIGNED ) * + 54 * - CAST( 63 AS DECIMAL ) / + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - SUM ( DISTINCT - 72 ) + - CASE + 37 WHEN 74 * - + 43 THEN - - 44 * - + 61 / + - CAST ( - - AVG ( DISTINCT - 62 ) AS INTEGER ) * + 54 * - CAST ( 63 AS REAL ) / + 82 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL + COUNT( * ) + + 80 + - + 50 + - 86
----
-55

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + COUNT ( * ) + + 80 + - + 50 + - 86
----
-55

query I rowsort
SELECT 86 col2
----
86

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

skipif mysql # not compatible
query I rowsort label-2487
SELECT 81 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT 88 DIV - - 7 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2488
SELECT 88 / - - 7 AS col1
----
12

query II rowsort
SELECT 73 * + - 84 * + 88 + - 85 AS col0, 26 col2
----
-539701
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT - COUNT( * ) + + 17 * 93 * + 18 * - + 61 * + 64 + + + SUM( ALL + - 9 ) + COALESCE ( 0, + - CAST( NULL AS SIGNED ) ) + - ( 84 )
----
-111100126

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - COUNT ( * ) + + 17 * 93 * + 18 * - + 61 * + 64 + + + SUM ( ALL + - 9 ) + COALESCE ( 0, + - CAST ( NULL AS INTEGER ) ) + - ( 84 )
----
-111100126

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2493
SELECT + CASE - + COUNT( * ) WHEN CASE + - COUNT( * ) WHEN + + MAX( - 13 ) THEN NULL WHEN + 25 + + 27 THEN + 13 END THEN + - 79 * - - 95 * + - 98 + - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT + CASE - + COUNT ( * ) WHEN CASE + - COUNT ( * ) WHEN + + MAX ( - 13 ) THEN NULL WHEN + 25 + + 27 THEN + 13 END THEN + - 79 * - - 95 * + - 98 + - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - - 8 + ( + + 66 ) * - + 54 * + - 6
----
21392

query I rowsort
SELECT ALL - + 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT + 0 + 74 * - 67 + 39 * - + COALESCE ( - COUNT( * ), + - 59 ) * - - 47 * + 60 + - COUNT( * ) AS col1
----
105021

skipif mysql # not compatible
query I rowsort label-2496
SELECT + 0 + 74 * - 67 + 39 * - + COALESCE ( - COUNT ( * ), + - 59 ) * - - 47 * + 60 + - COUNT ( * ) AS col1
----
105021

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - ( + - SUM( ALL - + 66 ) ) + - - 89 - - 54
----
77

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - ( + - SUM ( ALL - + 66 ) ) + - - 89 - - 54
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT 47 * 58 * + 34 * + MAX( + 97 ) * + COALESCE ( 23, + 24 + + - COUNT( * ) + - 23 + - + MAX( DISTINCT + 51 ) ) - 9 + - + ( 73 ) DIV + 71 col0
----
206777994

skipif mysql # not compatible
query I rowsort label-2499
SELECT 47 * 58 * + 34 * + MAX ( + 97 ) * + COALESCE ( 23, + 24 + + - COUNT ( * ) + - 23 + - + MAX ( DISTINCT + 51 ) ) - 9 + - + ( 73 ) / + 71 col0
----
206777994

query I rowsort
SELECT - 47 AS col1
----
-47

query I rowsort
SELECT ALL - 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT SUM( ALL + ( - + 58 ) ) + - 47, 76 AS col0
----
-105
76

skipif mysql # not compatible
query II rowsort label-2502
SELECT SUM ( ALL + ( - + 58 ) ) + - 47, 76 AS col0
----
-105
76

query I rowsort
SELECT + 31 * - 2
----
-62

query I rowsort
SELECT DISTINCT - ( + 80 ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + 87 - - SUM( + 82 )
----
169

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + 87 - - SUM ( + 82 )
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2506
SELECT - - 17, CAST( NULL AS SIGNED ) * + 86 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2506
SELECT - - 17, CAST ( NULL AS INTEGER ) * + 86 AS col1
----
17
NULL

query I rowsort
SELECT DISTINCT - 76 col2
----
-76

query I rowsort
SELECT ALL + + 24 - 13 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT ALL - - ( - 3 ) * - CAST( NULL AS SIGNED ) * - 75 + + + COUNT( * ) + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - - ( - 3 ) * - CAST ( NULL AS INTEGER ) * - 75 + + + COUNT ( * ) + 53 col2
----
NULL

query I rowsort
SELECT 93 + + 62 - 67
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT DISTINCT COALESCE ( 55, + 7 * + 83 - NULLIF ( CAST( NULL AS SIGNED ), + 27 ) * + + 42 * + 88 * - + 53 - 38, - 52 )
----
55

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT COALESCE ( 55, + 7 * + 83 - NULLIF ( CAST ( NULL AS INTEGER ), + 27 ) * + + 42 * + 88 * - + 53 - 38, - 52 )
----
55

query I rowsort
SELECT DISTINCT - 35 * ( + 27 )
----
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT ALL - 83, 39 * + COUNT( * ) AS col1
----
-83
39

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL - 83, 39 * + COUNT ( * ) AS col1
----
-83
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT 27 + - + COUNT( * ) + + - ( - 53 ) * + - 16 / + CAST( NULL AS SIGNED ) - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT 27 + - + COUNT ( * ) + + - ( - 53 ) * + - 16 / + CAST ( NULL AS INTEGER ) - + 77
----
NULL

query I rowsort
SELECT 61 col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT 47 + + 35, + 32 * + 81 + + + 76 + + 22 * + + COUNT( ALL 62 ) * - COUNT( * ) AS col2
----
82
2646

skipif mysql # not compatible
query II rowsort label-2516
SELECT 47 + + 35, + 32 * + 81 + + + 76 + + 22 * + + COUNT ( ALL 62 ) * - COUNT ( * ) AS col2
----
82
2646

query II rowsort
SELECT ( + + 47 ) - + 40, - 84 col1
----
7
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT 66 * - MAX( 6 )
----
-396

skipif mysql # not compatible
query I rowsort label-2518
SELECT 66 * - MAX ( 6 )
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT CAST( NULL AS SIGNED ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT CAST ( NULL AS INTEGER ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT 57 DIV + + 6
----
9

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT 57 / + + 6
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT SUM( ALL - + 85 ) + COALESCE ( 11, ( + 3 ), + 4, 64 + + 64 * 44 + + 38, - MAX( + 28 ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2521
SELECT SUM ( ALL - + 85 ) + COALESCE ( 11, ( + 3 ), + 4, 64 + + 64 * 44 + + 38, - MAX ( + 28 ) ) AS col1
----
-74

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

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

query I rowsort
SELECT DISTINCT 92 + 86
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2524
SELECT ALL COUNT( * ) + - 39 AS col0, - 42 DIV CAST( + - 12 AS SIGNED ) * + 78 * + 51 + 64 AS col2
----
-38
11998

skipif mysql # not compatible
query II rowsort label-2524
SELECT ALL COUNT ( * ) + - 39 AS col0, - 42 / CAST ( + - 12 AS INTEGER ) * + 78 * + 51 + 64 AS col2
----
-38
11998

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT MAX( ALL 60 ) * - + 13 - + + 70 + 75 * COUNT( * ) AS col0
----
-775

skipif mysql # not compatible
query I rowsort label-2525
SELECT MAX ( ALL 60 ) * - + 13 - + + 70 + 75 * COUNT ( * ) AS col0
----
-775

query I rowsort
SELECT - 51 * - 69 * + + 84 + - 44 AS col2
----
295552

onlyif mysql # DIV for integer division: 
query II rowsort label-2527
SELECT 91 * NULLIF ( 37, AVG ( + + 18 ) ), - 32 DIV - 9 AS col0
----
3367
3

skipif mysql # not compatible
query II rowsort label-2527
SELECT 91 * NULLIF ( 37, AVG ( + + 18 ) ), - 32 / - 9 AS col0
----
3367
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT 86 / - - CAST( NULL AS SIGNED ) * + + COUNT( * ) + + 69 + - COUNT( * ) / + 68 + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT 86 / - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + 69 + - COUNT ( * ) / + 68 + - - 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2529
SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + 33 + - 82 + + + COUNT( * ) DIV - 51, + 7 * - 86, + - 46 + + 89 + - 31 * - 68 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + 33 + - 82 + + + COUNT ( * ) / - 51, + 7 * - 86, + - 46 + + 89 + - 31 * - 68 ) AS col1
----
143

query II rowsort
SELECT DISTINCT 50 + 92 AS col2, 24 AS col2
----
142
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT ALL - + 6 + + SUM( - - 20 ) DIV - 81 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - + 6 + + SUM ( - - 20 ) / - 81 AS col0
----
-6

query I rowsort
SELECT + 70 * + + 48 * - 22 + + - 80
----
-74000

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

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

query I rowsort
SELECT DISTINCT - 51 + 10 AS col1
----
-41

query I rowsort
SELECT + - 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query III rowsort label-2536
SELECT ALL - + COUNT( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2
----
-1
64
-80

skipif mysql # not compatible
query III rowsort label-2536
SELECT ALL - + COUNT ( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2
----
-1
64
-80

query I rowsort
SELECT - 37 * - 60
----
2220

query I rowsort
SELECT + 46 + 95 AS col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT ALL - + MAX( 95 ), + SUM( 62 ) + - ( - 62 ) col0
----
-95
124

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL - + MAX ( 95 ), + SUM ( 62 ) + - ( - 62 ) col0
----
-95
124

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2541
SELECT 52 DIV 29, 41 + - + 64 AS col2
----
1
-23

skipif mysql # not compatible
query II rowsort label-2541
SELECT 52 / 29, 41 + - + 64 AS col2
----
1
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2542
SELECT ALL + 58 * 56 + + + 86 - COUNT( ALL 76 ) DIV + - 69 * COALESCE ( - - 42, + 45 * - - 33 + 3 + + + COUNT( DISTINCT + 74 ) ) AS col2
----
3334

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + 58 * 56 + + + 86 - COUNT ( ALL 76 ) / + - 69 * COALESCE ( - - 42, + 45 * - - 33 + 3 + + + COUNT ( DISTINCT + 74 ) ) AS col2
----
3334

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT + MIN( ALL 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + MIN ( ALL 95 ) col2
----
95

query I rowsort
SELECT ALL 98 AS col0
----
98

query I rowsort
SELECT DISTINCT 54 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT ALL + - MAX( DISTINCT - 19 ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + - MAX ( DISTINCT - 19 ) / 52
----
0

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

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

query I rowsort
SELECT ALL - 52 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT + 66 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 66 / 48
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2551
SELECT - COUNT( * ) DIV - 64 AS col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-2551
SELECT - COUNT ( * ) / - 64 AS col1, + COUNT ( * )
----
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + 44 / - + COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - COUNT( * ) + COALESCE ( + 93, + 97, CASE - 9 WHEN 67 THEN - 72 WHEN + 17 THEN NULL ELSE NULL END )
----
92

skipif mysql # not compatible
query I rowsort label-2554
SELECT - COUNT ( * ) + COALESCE ( + 93, + 97, CASE - 9 WHEN 67 THEN - 72 WHEN + 17 THEN NULL ELSE NULL END )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL CASE - 48 WHEN + COUNT( * ) THEN 9 + - 98 WHEN - + 7 THEN - - 4 * - - 49 - - 94 - + - SUM( - 7 ) + - - 50 * + + 15 + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL CASE - 48 WHEN + COUNT ( * ) THEN 9 + - 98 WHEN - + 7 THEN - - 4 * - - 49 - - 94 - + - SUM ( - 7 ) + - - 50 * + + 15 + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2556
SELECT 19 col2, 66 DIV + 27 AS col1
----
19
2

skipif mysql # not compatible
query II rowsort label-2556
SELECT 19 col2, 66 / + 27 AS col1
----
19
2

query II rowsort
SELECT 33, 15 col2
----
33
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2558
SELECT ALL - 81 * 84 DIV COUNT( * ) DIV + - COUNT( * )
----
6804

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - 81 * 84 / COUNT ( * ) / + - COUNT ( * )
----
6804

query I rowsort
SELECT ALL 0 col1
----
0

query II rowsort
SELECT - 1 AS col2, 7
----
-1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT - COUNT( * ) + - 59 * + 62 * 63 * - 13 AS col2
----
2995901

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - COUNT ( * ) + - 59 * + 62 * 63 * - 13 AS col2
----
2995901

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - 33 - + 2 * + + NULLIF ( + - 85, + COUNT( * ) * + - NULLIF ( 88, 67 ) )
----
137

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 33 - + 2 * + + NULLIF ( + - 85, + COUNT ( * ) * + - NULLIF ( 88, 67 ) )
----
137

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

query I rowsort
SELECT ( 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT + 15 * + 95 * - 84 * - + NULLIF ( - + COUNT( * ), - 42 ), + 41 AS col1
----
-119700
41

skipif mysql # not compatible
query II rowsort label-2565
SELECT + 15 * + 95 * - 84 * - + NULLIF ( - + COUNT ( * ), - 42 ), + 41 AS col1
----
-119700
41

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2568
SELECT DISTINCT 60 * + - CAST( NULL AS SIGNED ) + - 4 * 62 * + CAST( - 70 AS DECIMAL ), - 80 * - 52 col2
----
NULL
4160

skipif mysql # not compatible
query II rowsort label-2568
SELECT DISTINCT 60 * + - CAST ( NULL AS INTEGER ) + - 4 * 62 * + CAST ( - 70 AS REAL ), - 80 * - 52 col2
----
NULL
4160

query II rowsort
SELECT ALL + 13 * + 51 + - + 48 AS col1, ( - 55 ) AS col0
----
615
-55

query I rowsort
SELECT + 79 - - 1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT CASE + 28 WHEN - 53 * - CAST( 73 AS SIGNED ) THEN + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT CASE + 28 WHEN - 53 * - CAST ( 73 AS INTEGER ) THEN + COUNT ( * ) END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + + COUNT ( * ) / + + ( 45 ) AS col1
----
0

query II rowsort
SELECT + + 82 AS col0, 61 + - 40 + + 11 + ( - - 5 ) AS col2
----
82
37

query I rowsort
SELECT + + 42 * + 20 - - 73 AS col0
----
913

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

skipif mysql # not compatible
query I rowsort label-2575
SELECT COUNT ( 34 )
----
1

query I rowsort
SELECT - 78 * + ( 33 ) + 6 col2
----
-2568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT ALL - 62 * - 84 + + COALESCE ( 56, 6 * + 97 + - ( 79 ) DIV 12 DIV SUM( DISTINCT - 59 ) DIV - 13 )
----
5264

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL - 62 * - 84 + + COALESCE ( 56, 6 * + 97 + - ( 79 ) / 12 / SUM ( DISTINCT - 59 ) / - 13 )
----
5264

query II rowsort
SELECT DISTINCT + + 78, 19 AS col0
----
78
19

query II rowsort
SELECT + 81, 47 AS col2
----
81
47

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

query II rowsort
SELECT DISTINCT + + 36 AS col0, - 90 col1
----
36
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL COUNT( * ) * - 43 * CASE - 97 WHEN + 5 THEN - - ( - AVG ( - - 38 ) ) / + 62 WHEN - ( + ( COUNT( * ) ) ) + + 21 + + 35 + 39 + + 8 * - - 31 * + 36 THEN NULL WHEN - 18 THEN + ( + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL COUNT ( * ) * - 43 * CASE - 97 WHEN + 5 THEN - - ( - AVG ( - - 38 ) ) / + 62 WHEN - ( + ( COUNT ( * ) ) ) + + 21 + + 35 + 39 + + 8 * - - 31 * + 36 THEN NULL WHEN - 18 THEN + ( + COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT + 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT + 84 + + 72 + COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-2584
SELECT + 84 + + 72 + COUNT ( * )
----
157

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - - 61 * 49 + MIN( + + 52 ) AS col0
----
3041

skipif mysql # not compatible
query I rowsort label-2587
SELECT - - 61 * 49 + MIN ( + + 52 ) AS col0
----
3041

query I rowsort
SELECT + - 55 + 87 * - 70 col2
----
-6145

query I rowsort
SELECT - - 54
----
54

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

query I rowsort
SELECT ALL + 85 * - + 65 * + - ( + 60 )
----
331500

query I rowsort
SELECT - 43 * + + 24 AS col2
----
-1032

query II rowsort
SELECT - ( 86 ), - 47 - + ( - 73 ) col0
----
-86
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - 85 + - COUNT( * ) - + 85 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - 85 + - COUNT ( * ) - + 85 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + 17 - - - SUM( ALL - 93 ) - 34 * + 70
----
-2270

skipif mysql # not compatible
query I rowsort label-2595
SELECT + 17 - - - SUM ( ALL - 93 ) - 34 * + 70
----
-2270

query I rowsort
SELECT DISTINCT 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT ALL 82 + - 83 + + 21 DIV + 46 + - 81
----
-82

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL 82 + - 83 + + 21 / + 46 + - 81
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2598
SELECT - CAST( + 34 AS SIGNED ) + + + ( 65 ) * + COALESCE ( + COUNT( * ), - - 42, - MIN( ALL - + 48 ) ) DIV 67 * ( - + 87 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2598
SELECT - CAST ( + 34 AS INTEGER ) + + + ( 65 ) * + COALESCE ( + COUNT ( * ), - - 42, - MIN ( ALL - + 48 ) ) / 67 * ( - + 87 ) AS col2
----
-34

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL 75 + - - 2 - + CAST( NULL AS SIGNED ) * - 72 * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL 75 + - - 2 - + CAST ( NULL AS INTEGER ) * - 72 * - 57 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - 46 + MIN( ALL + 52 ) * 27 AS col2
----
1358

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 46 + MIN ( ALL + 52 ) * 27 AS col2
----
1358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL + 22 + + ( COALESCE ( 52, + COALESCE ( - + CAST( - + 75 AS SIGNED ), - 10 ) + + 95 ) ) col1
----
74

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL + 22 + + ( COALESCE ( 52, + COALESCE ( - + CAST ( - + 75 AS INTEGER ), - 10 ) + + 95 ) ) col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2604
SELECT + NULLIF ( COUNT( * ), + + ( - COUNT( * ) ) + + 64 * - 32 + + - 16 ) + + 61 * 70 - 69 * - - MIN( ALL - CAST( NULL AS DECIMAL ) ) + + + 82 / - 64 * + 56, + 87 * - - 47 AS col1
----
NULL
4089

skipif mysql # not compatible
query II rowsort label-2604
SELECT + NULLIF ( COUNT ( * ), + + ( - COUNT ( * ) ) + + 64 * - 32 + + - 16 ) + + 61 * 70 - 69 * - - MIN ( ALL - CAST ( NULL AS REAL ) ) + + + 82 / - 64 * + 56, + 87 * - - 47 AS col1
----
NULL
4089

query I rowsort
SELECT - 39 - + 46
----
-85

query I rowsort
SELECT - 56 AS col0
----
-56

query I rowsort
SELECT - 10 + 63 AS col0
----
53

query I rowsort
SELECT - 16 + + + 19 - 81 col0
----
-78

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

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

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + ( 29 ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - 3 + - 53 * COUNT( * ) * - + 99 - + - 92 * + 25
----
7544

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 3 + - 53 * COUNT ( * ) * - + 99 - + - 92 * + 25
----
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL NULLIF ( 54, COUNT( * ) * - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL NULLIF ( 54, COUNT ( * ) * - COUNT ( * ) ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2613
SELECT - 80 + + 4 AS col2, - 63 * - CAST( + COUNT( * ) AS SIGNED )
----
-76
63

skipif mysql # not compatible
query II rowsort label-2613
SELECT - 80 + + 4 AS col2, - 63 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-76
63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT ALL + 42 DIV - 11 - - - 86 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + 42 / - 11 - - - 86 AS col0
----
-89

query I rowsort
SELECT 96 * + + 33 * - + 4 + + 6 AS col2
----
-12666

query I rowsort
SELECT ALL + + 36 AS col0
----
36

query II rowsort
SELECT DISTINCT + 24 * - - 33 AS col2, + 82 * 63 col0
----
792
5166

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT 60 * + MIN( + 76 ) * - 14 + COUNT( - NULLIF ( - 0, + 82 ) ) - - 6 col2
----
-63833

skipif mysql # not compatible
query I rowsort label-2620
SELECT 60 * + MIN ( + 76 ) * - 14 + COUNT ( - NULLIF ( - 0, + 82 ) ) - - 6 col2
----
-63833

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT - 14 DIV 58 + 76 + - 93 * - + 3
----
355

skipif mysql # not compatible
query I rowsort label-2621
SELECT - 14 / 58 + 76 + - 93 * - + 3
----
355

query I rowsort
SELECT + 98 col0
----
98

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT ALL ( 31 ) DIV + 82 * COUNT( ALL + + 3 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL ( 31 ) / + 82 * COUNT ( ALL + + 3 ) col0
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2629
SELECT ALL - + MAX( DISTINCT 63 ) DIV + 57
----
-1

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - + MAX ( DISTINCT 63 ) / + 57
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT - - 75 DIV 29 + + 77
----
79

skipif mysql # not compatible
query I rowsort label-2630
SELECT - - 75 / 29 + + 77
----
79

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

skipif mysql # not compatible
query I rowsort label-2631
SELECT + 91 + - COUNT ( * ) AS col1
----
90

query I rowsort
SELECT 33 * - 76 AS col2
----
-2508

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

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

query I rowsort
SELECT 22 + 81
----
103

query I rowsort
SELECT ALL - 81 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT - 57 / CASE - SUM( DISTINCT - 80 ) WHEN - + COUNT( * ) * + - 62 * + + 30 + 17 THEN - 32 - + 77 + - + COUNT( + + 75 ) + - - 5 - + 17 + - 77 * - + 4 END / + 13 + ( - - 11 ) AS col0, + 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-2636
SELECT - 57 / CASE - SUM ( DISTINCT - 80 ) WHEN - + COUNT ( * ) * + - 62 * + + 30 + 17 THEN - 32 - + 77 + - + COUNT ( + + 75 ) + - - 5 - + 17 + - 77 * - + 4 END / + 13 + ( - - 11 ) AS col0, + 36 AS col1
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL + 98 + 17 + + NULLIF ( + - 82, - 70 * - 8 + 20 + - - COUNT( * ) * 45 * + 1 - - COUNT( * ) * COUNT( * ) * + CAST( 63 AS SIGNED ) - + CAST( + 16 AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + 98 + 17 + + NULLIF ( + - 82, - 70 * - 8 + 20 + - - COUNT ( * ) * 45 * + 1 - - COUNT ( * ) * COUNT ( * ) * + CAST ( 63 AS INTEGER ) - + CAST ( + 16 AS INTEGER ) )
----
33

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

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

query I rowsort
SELECT ALL - 23 + 2
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2640
SELECT 2 + 83 col0, 18 + - 54 DIV CAST( - 92 AS SIGNED ) * + 45
----
85
18

skipif mysql # not compatible
query II rowsort label-2640
SELECT 2 + 83 col0, 18 + - 54 / CAST ( - 92 AS INTEGER ) * + 45
----
85
18

query II rowsort
SELECT DISTINCT + 12 * - ( - 1 ) + + - 22 AS col0, NULLIF ( + - 7, - 64 + - - 64 )
----
-10
-7

query I rowsort
SELECT DISTINCT 41 + + - 56 + - 67
----
-82

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT ALL 76 + + - 66 * - 81 DIV + + COUNT( * ) col2
----
5422

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL 76 + + - 66 * - 81 / + + COUNT ( * ) col2
----
5422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2645
SELECT DISTINCT COUNT( * ) + 89 - CASE - COUNT( * ) WHEN 36 - + COALESCE ( 24, 33, - ( + CAST( - 54 AS SIGNED ) ) * + + 90 ) + 11 / ( - - 32 ) * + COUNT( * ) * 81 * + + 61 - + 39 THEN NULL ELSE - ( + CAST( + 45 AS SIGNED ) ) * - CASE - CASE - + 88 WHEN + 3 - - ( 39 ) * - + 48 / + 87 THEN - - 7 WHEN AVG ( ALL + 85 ) * + 30 / - 64 + CAST( - 67 AS SIGNED ) * + AVG ( DISTINCT - 20 ) * + - 51 * ( - 51 ) THEN NULL END WHEN - MIN( ALL 75 ) THEN + 22 END END + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT COUNT ( * ) + 89 - CASE - COUNT ( * ) WHEN 36 - + COALESCE ( 24, 33, - ( + CAST ( - 54 AS INTEGER ) ) * + + 90 ) + 11 / ( - - 32 ) * + COUNT ( * ) * 81 * + + 61 - + 39 THEN NULL ELSE - ( + CAST ( + 45 AS INTEGER ) ) * - CASE - CASE - + 88 WHEN + 3 - - ( 39 ) * - + 48 / + 87 THEN - - 7 WHEN AVG ( ALL + 85 ) * + 30 / - 64 + CAST ( - 67 AS INTEGER ) * + AVG ( DISTINCT - 20 ) * + - 51 * ( - 51 ) THEN NULL END WHEN - MIN ( ALL 75 ) THEN + 22 END END + 94 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2646
SELECT ALL NULLIF ( - + 3, + 99 - 66 + + CAST( 23 AS SIGNED ) * + - ( + 76 ) ) DIV - 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL NULLIF ( - + 3, + 99 - 66 + + CAST ( 23 AS INTEGER ) * + - ( + 76 ) ) / - 4 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT 17 + - ( + COUNT( * ) ) AS col1, - ( 35 ) + - + 9
----
16
-44

skipif mysql # not compatible
query II rowsort label-2648
SELECT 17 + - ( + COUNT ( * ) ) AS col1, - ( 35 ) + - + 9
----
16
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2649
SELECT ALL 50 AS col0, 86 * + COUNT( * )
----
50
86

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL 50 AS col0, 86 * + COUNT ( * )
----
50
86

query I rowsort
SELECT DISTINCT 63 * - 56
----
-3528

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

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

query I rowsort
SELECT ALL - ( + 50 ) - 15 col0
----
-65

query I rowsort
SELECT ALL 10 * 44 AS col0
----
440

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

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

query I rowsort
SELECT 32 * - + 38 col0
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ( COUNT( * ) ) - + - 15
----
16

skipif mysql # not compatible
query I rowsort label-2657
SELECT ( COUNT ( * ) ) - + - 15
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT 42 * + - COUNT( * ) * + + 31 AS col0, COUNT( * ) * - 57 AS col2
----
-1302
-57

skipif mysql # not compatible
query II rowsort label-2658
SELECT 42 * + - COUNT ( * ) * + + 31 AS col0, COUNT ( * ) * - 57 AS col2
----
-1302
-57

query I rowsort
SELECT 68 + - + 8
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT 99 * - CASE - - ( - COUNT( * ) ) WHEN - + 71 THEN NULL WHEN 62 - + CASE + 83 WHEN COUNT( * ) THEN 33 ELSE NULL END + + 75 * + + 44 - + - COALESCE ( + COALESCE ( 0, - 23 * + 62 * + - MIN( + + 60 ) * 74 * - 85 + + 28 + - 99, + COUNT( * ) ), - 31 ) * 9 THEN + - ( - 2 ) * - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT 99 * - CASE - - ( - COUNT ( * ) ) WHEN - + 71 THEN NULL WHEN 62 - + CASE + 83 WHEN COUNT ( * ) THEN 33 ELSE NULL END + + 75 * + + 44 - + - COALESCE ( + COALESCE ( 0, - 23 * + 62 * + - MIN ( + + 60 ) * 74 * - 85 + + 28 + - 99, + COUNT ( * ) ), - 31 ) * 9 THEN + - ( - 2 ) * - 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2661
SELECT - 11 DIV + 91 + + 11 + - COUNT( * ) * 58
----
-47

skipif mysql # not compatible
query I rowsort label-2661
SELECT - 11 / + 91 + + 11 + - COUNT ( * ) * 58
----
-47

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

query I rowsort
SELECT ALL - 47 AS col0
----
-47

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

skipif mysql # not compatible
query I rowsort label-2664
SELECT CAST ( - + 22 AS INTEGER ) AS col0
----
-22

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

query I rowsort
SELECT ALL + 79 * - 49 AS col2
----
-3871

query I rowsort
SELECT DISTINCT + 68 + + 56 col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2668
SELECT ALL - NULLIF ( + + 3, + 38 * + COUNT( * ) + - + 94 ) AS col0, + CAST( NULL AS SIGNED )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL - NULLIF ( + + 3, + 38 * + COUNT ( * ) + - + 94 ) AS col0, + CAST ( NULL AS INTEGER )
----
-3
NULL

query I rowsort
SELECT DISTINCT - - 53 * 94
----
4982

query I rowsort
SELECT 17 + 39
----
56

query I rowsort
SELECT ALL - 18 * + 69 * 93 * 20 AS col0
----
-2310120

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT 47 * COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-2672
SELECT 47 * COUNT ( * ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + - 9 * - 73 - + 47 + + MIN( - - 33 )
----
643

skipif mysql # not compatible
query I rowsort label-2673
SELECT + - 9 * - 73 - + 47 + + MIN ( - - 33 )
----
643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2674
SELECT DISTINCT - CASE - NULLIF ( - 10, 4 ) WHEN 5 + - 20 + 57 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 6 THEN NULL ELSE - 50 * - + 62 + - - CAST( NULL AS SIGNED ) + 89 + - 96 / + + 88 + + 52 END + - + COUNT( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - CASE - NULLIF ( - 10, 4 ) WHEN 5 + - 20 + 57 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 6 THEN NULL ELSE - 50 * - + 62 + - - CAST ( NULL AS INTEGER ) + 89 + - 96 / + + 88 + + 52 END + - + COUNT ( + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL + ( 43 ) + + COUNT( * ) + 97 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + ( 43 ) + + COUNT ( * ) + 97 AS col0
----
141

query II rowsort
SELECT ALL - 96 AS col2, + 10
----
-96
10

query I rowsort
SELECT ALL - + 11 + + 35 * + 90 - - + 64 AS col2
----
3203

query I rowsort
SELECT + 1 col0
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2682
SELECT ALL + COUNT( ALL 70 ) + + 24, + 48 - + - CAST( NULL AS SIGNED ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2682
SELECT ALL + COUNT ( ALL 70 ) + + 24, + 48 - + - CAST ( NULL AS INTEGER ) AS col0
----
25
NULL

query I rowsort
SELECT ALL 64 * + 87 AS col2
----
5568

query I rowsort
SELECT ALL - 22 + - 97 + - - 49
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT DISTINCT - COUNT( * ) DIV - 70 * 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2686
SELECT 62 AS col2, + 74 * CAST( + 69 AS SIGNED ) * 64 AS col2
----
62
326784

skipif mysql # not compatible
query II rowsort label-2686
SELECT 62 AS col2, + 74 * CAST ( + 69 AS INTEGER ) * 64 AS col2
----
62
326784

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT MIN( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT MIN ( ALL - 3 )
----
-3

query I rowsort
SELECT 81 + 97 col2
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT COUNT( * ) DIV 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT COUNT ( * ) / 58 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2690
SELECT 78 AS col1, 81 * 13 DIV - - 31
----
78
33

skipif mysql # not compatible
query II rowsort label-2690
SELECT 78 AS col1, 81 * 13 / - - 31
----
78
33

query I rowsort
SELECT DISTINCT + 50 * CASE - - 55 WHEN - + 97 THEN + - 55 WHEN + + 36 + + 31 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL + SUM( + - 85 ) * MAX( + 36 ) AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + SUM ( + - 85 ) * MAX ( + 36 ) AS col0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT COUNT( * ) + - 29 + - 15 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2693
SELECT COUNT ( * ) + - 29 + - 15 AS col2
----
-43

query II rowsort
SELECT DISTINCT 54 AS col0, + 36
----
54
36

query I rowsort
SELECT ALL 60 AS col2
----
60

query I rowsort
SELECT ALL 62 AS col0
----
62

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

query II rowsort
SELECT DISTINCT 65 AS col1, 86
----
65
86

query I rowsort
SELECT 42 * - 48
----
-2016

query II rowsort
SELECT ALL 19 AS col1, - NULLIF ( - + 78, - + ( 13 ) ) AS col0
----
19
78

query II rowsort
SELECT ALL 71 AS col1, - 59 * 49
----
71
-2891

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT NULLIF ( + - MIN( DISTINCT - 62 ), 69 ) + 82
----
144

skipif mysql # not compatible
query I rowsort label-2702
SELECT NULLIF ( + - MIN ( DISTINCT - 62 ), 69 ) + 82
----
144

query II rowsort
SELECT 64 AS col2, - 30
----
64
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT 25 * - + CASE + 48 WHEN + - 87 * + 28 THEN + COUNT( * ) * - - 88 + - + 29 * + 75 ELSE 64 END
----
-1600

skipif mysql # not compatible
query I rowsort label-2704
SELECT 25 * - + CASE + 48 WHEN + - 87 * + 28 THEN + COUNT ( * ) * - - 88 + - + 29 * + 75 ELSE 64 END
----
-1600

onlyif mysql # aggregate syntax: 
query II rowsort label-2705
SELECT + 71 + + 61 * + 18 + - MAX( DISTINCT - 62 ) * - 11 AS col1, 90 AS col2
----
487
90

skipif mysql # not compatible
query II rowsort label-2705
SELECT + 71 + + 61 * + 18 + - MAX ( DISTINCT - 62 ) * - 11 AS col1, 90 AS col2
----
487
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL - MIN( ALL + - 81 ) * 58
----
4698

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - MIN ( ALL + - 81 ) * 58
----
4698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT ALL SUM( - + 7 ) DIV COALESCE ( - 7, - 85 * 71 + 51 * 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL SUM ( - + 7 ) / COALESCE ( - 7, - 85 * 71 + 51 * 65 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2708
SELECT ALL - CASE + COUNT( * ) WHEN + - ( + COUNT( 16 ) ) + - 87 THEN ( 17 ) DIV + 81 ELSE - + 28 * - + 23 END, ( - COUNT( * ) ) col2
----
-644
-1

skipif mysql # not compatible
query II rowsort label-2708
SELECT ALL - CASE + COUNT ( * ) WHEN + - ( + COUNT ( 16 ) ) + - 87 THEN ( 17 ) / + 81 ELSE - + 28 * - + 23 END, ( - COUNT ( * ) ) col2
----
-644
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + ( + SUM( ALL + 21 ) ) + - + 12 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2709
SELECT + ( + SUM ( ALL + 21 ) ) + - + 12 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL - COUNT( * ) + + 42 * + 80 AS col2
----
3359

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - COUNT ( * ) + + 42 * + 80 AS col2
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT - 37 + - - COUNT( * ) + + 64 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 37 + - - COUNT ( * ) + + 64 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL COUNT( * ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL COUNT ( * ) * - 87
----
-87

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

skipif mysql # not compatible
query I rowsort label-2713
SELECT - COUNT ( * ) / 69 / 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + 51 + + - 98 * + - MAX( DISTINCT - - 4 )
----
443

skipif mysql # not compatible
query I rowsort label-2714
SELECT + 51 + + - 98 * + - MAX ( DISTINCT - - 4 )
----
443

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT + ( - CAST( NULL AS SIGNED ) ) * - 74 + 42 + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - 74 + 42 + + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - MAX( DISTINCT - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2717
SELECT - MAX ( DISTINCT - 70 ) AS col2
----
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT DISTINCT 38 * + COUNT( * ) + 79 + + - 77 + CAST( NULL AS SIGNED ) - - 15 * + 26 + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT 38 * + COUNT ( * ) + 79 + + - 77 + CAST ( NULL AS INTEGER ) - - 15 * + 26 + + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT - 56 AS col2, + NULLIF ( + 70, 37 + + 55 ) - 72 * + COUNT( - 68 ) - + 14 + 82
----
-56
66

skipif mysql # not compatible
query II rowsort label-2720
SELECT - 56 AS col2, + NULLIF ( + 70, 37 + + 55 ) - 72 * + COUNT ( - 68 ) - + 14 + 82
----
-56
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT ALL + + ( 56 ) DIV - 66 * - 65 + MAX( ALL + ( - 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + + ( 56 ) / - 66 * - 65 + MAX ( ALL + ( - 6 ) )
----
-6

query I rowsort
SELECT - NULLIF ( + 40, 89 )
----
-40

query I rowsort
SELECT DISTINCT - 83 * - 28 - 71 + 83 AS col1
----
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2724
SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN( + - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2724
SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT + 66 * - 40 + - 75
----
-2715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT DISTINCT MIN( - 9 ) * - + 68 * - + 7 * 92 + - 41 + + - COALESCE ( - 41, + MAX( CAST( NULL AS SIGNED ) ) ) AS col0
----
-394128

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT MIN ( - 9 ) * - + 68 * - + 7 * 92 + - 41 + + - COALESCE ( - 41, + MAX ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-394128

query I rowsort
SELECT ALL + - 36
----
-36

query I rowsort
SELECT + 79 * + - 51 * - + 3 * - - 98 + 52 AS col1
----
1184578

query I rowsort
SELECT ALL + 97 * - 31 + - - 18 + + 91
----
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + MAX( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-2730
SELECT + MAX ( - 23 )
----
-23

query I rowsort
SELECT ALL - 26 * - 25 * 62 AS col1
----
40300

query II rowsort
SELECT + 58 * + + 64, + 61 + + - 36 AS col1
----
3712
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT + 38 * CASE 89 WHEN COUNT( DISTINCT + 52 ) THEN NULL WHEN + - 24 THEN - 93 END - + 91 + - + 87 + - - 25 * + 41 * - - 15 + + + CAST( + 98 AS SIGNED ) * + ( + - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT + 38 * CASE 89 WHEN COUNT ( DISTINCT + 52 ) THEN NULL WHEN + - 24 THEN - 93 END - + 91 + - + 87 + - - 25 * + 41 * - - 15 + + + CAST ( + 98 AS INTEGER ) * + ( + - 43 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT - 40 + - 46 + + 64 DIV - - 57 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 40 + - 46 + + 64 / - - 57 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT - 86 * + 83 - - 84 * COUNT( * ) AS col2
----
-7054

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - 86 * + 83 - - 84 * COUNT ( * ) AS col2
----
-7054

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL + MAX( ALL - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + MAX ( ALL - 11 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2737
SELECT ALL + CAST( - + 57 AS SIGNED ), + 80 AS col0
----
-57
80

skipif mysql # not compatible
query II rowsort label-2737
SELECT ALL + CAST ( - + 57 AS INTEGER ), + 80 AS col0
----
-57
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT ALL - ( - 95 ) DIV - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - ( - 95 ) / - COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT 1 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT NULLIF ( + - 86, - 34 + - COUNT( * ) ) * - CASE - - COUNT( * ) WHEN - COUNT( * ) THEN + 19 - - 13 + - + COUNT( * ) WHEN 10 THEN - + 11 * - SUM( DISTINCT + + 2 ) + - 44 ELSE NULL END + - ( + CAST( COUNT( * ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT NULLIF ( + - 86, - 34 + - COUNT ( * ) ) * - CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN + 19 - - 13 + - + COUNT ( * ) WHEN 10 THEN - + 11 * - SUM ( DISTINCT + + 2 ) + - 44 ELSE NULL END + - ( + CAST ( COUNT ( * ) AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT DISTINCT + 73 DIV 17 DIV + + 79 * - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT + 73 / 17 / + + 79 * - 15 AS col1
----
0

query I rowsort
SELECT - 27 * - 29
----
783

query I rowsort
SELECT + 33 * - 97 AS col0
----
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL + 64 * + + ( MIN( NULLIF ( - 8, + - 80 * - + 94 * 12 ) ) )
----
-512

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + 64 * + + ( MIN ( NULLIF ( - 8, + - 80 * - + 94 * 12 ) ) )
----
-512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT DISTINCT + ( - COUNT( * ) ) * SUM( DISTINCT + - 38 ) * + - CASE + MAX( DISTINCT 34 ) WHEN - 26 THEN NULL ELSE CAST( NULL AS SIGNED ) + ( + COUNT( * ) ) END * 83 + 90 + - 6 + - 14 * - + CAST( NULL AS SIGNED ) * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + ( - COUNT ( * ) ) * SUM ( DISTINCT + - 38 ) * + - CASE + MAX ( DISTINCT 34 ) WHEN - 26 THEN NULL ELSE CAST ( NULL AS INTEGER ) + ( + COUNT ( * ) ) END * 83 + 90 + - 6 + - 14 * - + CAST ( NULL AS INTEGER ) * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - COUNT( + 21 ) * ( + 40 ) * - 74
----
2960

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - COUNT ( + 21 ) * ( + 40 ) * - 74
----
2960

query I rowsort
SELECT ALL + 56 * 26 * 5
----
7280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL MIN( - + CAST( NULL AS SIGNED ) ) + - 22 - ( 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL MIN ( - + CAST ( NULL AS INTEGER ) ) + - 22 - ( 6 ) AS col2
----
NULL

query II rowsort
SELECT + 35 * - + 54 AS col1, + 79 AS col2
----
-1890
79

query I rowsort
SELECT DISTINCT 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL - 51 + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - 51 + COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL - 93 + COALESCE ( - MAX( 62 ), - 26 )
----
-155

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - 93 + COALESCE ( - MAX ( 62 ), - 26 )
----
-155

query I rowsort
SELECT 4 col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT + + 13 + - 45 - - CAST( - 59 AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-2754
SELECT + + 13 + - 45 - - CAST ( - 59 AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + + COUNT( * ) * - 2 col1
----
-2

skipif mysql # not compatible
query I rowsort label-2755
SELECT + + COUNT ( * ) * - 2 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL - COUNT( * ) * + 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - COUNT ( * ) * + 31 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT ALL 48 DIV - 52 + + + COUNT( - ( - + 79 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL 48 / - 52 + + + COUNT ( - ( - + 79 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT + COUNT( - - 75 ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT + COUNT ( - - 75 ) * 76 AS col1
----
76

query I rowsort
SELECT ALL + - 77
----
-77

query I rowsort
SELECT ALL + - 21 AS col2
----
-21

query I rowsort
SELECT DISTINCT 25 * 60
----
1500

query I rowsort
SELECT + + ( + - 68 )
----
-68

query I rowsort
SELECT + + 11 + 31 * - 74 * + 79
----
-181215

query I rowsort
SELECT ( 54 )
----
54

query I rowsort
SELECT - 99 - 64
----
-163

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2766
SELECT ALL COALESCE ( + 60, CAST( + 76 AS SIGNED ) ) DIV + 10
----
6

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL COALESCE ( + 60, CAST ( + 76 AS INTEGER ) ) / + 10
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT + CAST( NULL AS SIGNED ) * - + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT + CAST ( NULL AS INTEGER ) * - + 99 AS col2
----
NULL

query I rowsort
SELECT ( - 55 )
----
-55

query I rowsort
SELECT DISTINCT + 50 * - 75
----
-3750

onlyif mysql # DIV for integer division: 
query II rowsort label-2770
SELECT ALL + 71 AS col1, - 45 DIV 42
----
71
-1

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL + 71 AS col1, - 45 / 42
----
71
-1

query I rowsort
SELECT DISTINCT 65 * - 64 - + 22 + - 87 + + 87 * 66 AS col2
----
1473

query I rowsort
SELECT ALL + ( 15 ) AS col0
----
15

query I rowsort
SELECT COALESCE ( ( - 83 ), - 44 * 42, 78 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL + COUNT( DISTINCT - + CASE + - 34 WHEN - 80 THEN NULL WHEN 70 + 65 * - 2 + + 67 THEN - 85 + + 45 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + COUNT ( DISTINCT - + CASE + - 34 WHEN - 80 THEN NULL WHEN 70 + 65 * - 2 + + 67 THEN - 85 + + 45 ELSE NULL END )
----
0

query I rowsort
SELECT DISTINCT + ( 17 ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT + CASE COUNT( * ) WHEN SUM( - ( + ( + 24 ) ) ) THEN COUNT( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT + CASE COUNT ( * ) WHEN SUM ( - ( + ( + 24 ) ) ) THEN COUNT ( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL COALESCE ( + - COUNT( * ), + + 60, - 64 * + 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL COALESCE ( + - COUNT ( * ), + + 60, - 64 * + 27 ) AS col1
----
-1

query I rowsort
SELECT 96 * - 2 * 9 + - ( + 2 ) col1
----
-1730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT - 51 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 51 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 21 + + 75 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - MIN( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-2781
SELECT - MIN ( 97 )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2782
SELECT ALL ( + - CASE + 27 WHEN + COUNT( * ) - + 92 THEN - 5 * 12 * - + 38 DIV - 76 WHEN + 50 THEN NULL ELSE + - 31 + + 69 END )
----
-38

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL ( + - CASE + 27 WHEN + COUNT ( * ) - + 92 THEN - 5 * 12 * - + 38 / - 76 WHEN + 50 THEN NULL ELSE + - 31 + + 69 END )
----
-38

query I rowsort
SELECT ALL ( 56 )
----
56

query I rowsort
SELECT - 97 + - 27 AS col0
----
-124

query I rowsort
SELECT ALL - 39 * - - 57 + - 54
----
-2277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT DISTINCT CAST( 79 AS SIGNED ) col2
----
79

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT CAST ( 79 AS INTEGER ) col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT - 74 DIV - 80 * + 73 DIV COUNT( ALL + 41 ) * 28 + - COALESCE ( - 80, - 19 + + 49 + - ( 69 ) )
----
80

skipif mysql # not compatible
query I rowsort label-2787
SELECT - 74 / - 80 * + 73 / COUNT ( ALL + 41 ) * 28 + - COALESCE ( - 80, - 19 + + 49 + - ( 69 ) )
----
80

query I rowsort
SELECT ALL + 89 * + 86 + 29
----
7683

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL COUNT( * ) * - COUNT( * ) * - 84 + - 60
----
24

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 84 + - 60
----
24

query I rowsort
SELECT ALL - 70 + - - 1
----
-69

query I rowsort
SELECT - 67 + - - 82
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2792
SELECT ALL - + CASE - 42 WHEN 33 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN + - 67 + + 17 END + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - + CASE - 42 WHEN 33 THEN NULL WHEN CAST ( NULL AS REAL ) THEN + - 67 + + 17 END + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL + ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + ( + - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 55 + + 74 + - + 21 * + + 15 + + 70 AS col0
----
-226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT + 58 * + COUNT( * ) DIV + + 86 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 58 * + COUNT ( * ) / + + 86 + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - + 8 + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - + 8 + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - MAX( ALL + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2797
SELECT - MAX ( ALL + 29 ) AS col0
----
-29

query II rowsort
SELECT - 96 AS col2, 2
----
-96
2

query I rowsort
SELECT 12 + - 22 + + - 88 - 63 * + 1
----
-161

query I rowsort
SELECT ALL + + 96 * - 5 col0
----
-480

query I rowsort
SELECT DISTINCT - + 33 * + + 14 AS col1
----
-462

query II rowsort
SELECT - - 15 AS col1, - 72 * + + 27 col1
----
15
-1944

query I rowsort
SELECT DISTINCT 41
----
41

query I rowsort
SELECT ALL 52 - - 70 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT MAX( ALL - + 82 ) + - 91
----
-173

skipif mysql # not compatible
query I rowsort label-2805
SELECT MAX ( ALL - + 82 ) + - 91
----
-173

query I rowsort
SELECT ALL - - ( 76 ) * 84
----
6384

query I rowsort
SELECT + 35 + - 38 AS col2
----
-3

query I rowsort
SELECT ALL + 95 * + 22
----
2090

query I rowsort
SELECT ALL - + 74 AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2810
SELECT DISTINCT - 12, ( + 78 ) * NULLIF ( - 64, - - COUNT( * ) + 95 + - CAST( 1 AS SIGNED ) ) AS col0
----
-12
-4992

skipif mysql # not compatible
query II rowsort label-2810
SELECT DISTINCT - 12, ( + 78 ) * NULLIF ( - 64, - - COUNT ( * ) + 95 + - CAST ( 1 AS INTEGER ) ) AS col0
----
-12
-4992

query I rowsort
SELECT ALL - - 27
----
27

query I rowsort
SELECT + 2 * 75
----
150

query II rowsort
SELECT ALL - 50 AS col0, 6
----
-50
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT - 26 AS col0, - MAX( ALL 77 )
----
-26
-77

skipif mysql # not compatible
query II rowsort label-2814
SELECT - 26 AS col0, - MAX ( ALL 77 )
----
-26
-77

query I rowsort
SELECT ALL - ( + 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL ( + + 74 ) * 81 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL ( + + 74 ) * 81 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT COUNT( * ) * + - 20 col0
----
-20

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT COUNT ( * ) * + - 20 col0
----
-20

query I rowsort
SELECT ALL - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT 64 * + - COUNT( * ) + - + 57 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-2819
SELECT 64 * + - COUNT ( * ) + - + 57 AS col2
----
-121

query I rowsort
SELECT DISTINCT - 87 AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL - MIN( - 79 ), + 44 + + ( - - COUNT( * ) ) * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL - MIN ( - 79 ), + 44 + + ( - - COUNT ( * ) ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT - 92 * - SUM( DISTINCT 12 ) + 20 AS col1
----
1124

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 92 * - SUM ( DISTINCT 12 ) + 20 AS col1
----
1124

query I rowsort
SELECT ALL ( ( 18 ) ) * - 71 col0
----
-1278

query I rowsort
SELECT 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL COUNT ( * ) + + 24
----
25

query I rowsort
SELECT DISTINCT - 74 AS col2
----
-74

query I rowsort
SELECT + 1
----
1

query I rowsort
SELECT 51 + 78 + + + 74 AS col2
----
203

query I rowsort
SELECT ALL - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL COUNT( * ) + - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL COUNT ( * ) + - 31 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT 62 + COUNT ( * ) AS col2
----
63

query I rowsort
SELECT DISTINCT + 56 + 12 * + 33 * + 61 col2
----
24212

query I rowsort
SELECT 41 * + 52 * + - 45 * ( + + 64 ) * - 59
----
362269440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT ALL 97 DIV - ( - COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL 97 / - ( - COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ( - 46 ) * + COUNT( DISTINCT + 66 )
----
-46

skipif mysql # not compatible
query I rowsort label-2835
SELECT ( - 46 ) * + COUNT ( DISTINCT + 66 )
----
-46

query I rowsort
SELECT ALL + 29 * 41 AS col0
----
1189

query I rowsort
SELECT DISTINCT 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - COUNT( * ) - + 33 + + 80 * - - 26 AS col1
----
2046

skipif mysql # not compatible
query I rowsort label-2838
SELECT - COUNT ( * ) - + 33 + + 80 * - - 26 AS col1
----
2046

query I rowsort
SELECT ALL 87 + - 12 * - - 64 AS col2
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT 91 * - COUNT( ALL + 5 ) * 29
----
-2639

skipif mysql # not compatible
query I rowsort label-2840
SELECT 91 * - COUNT ( ALL + 5 ) * 29
----
-2639

query II rowsort
SELECT - 26 * - ( ( - - 83 ) ), - 61 AS col1
----
2158
-61

query I rowsort
SELECT - 2 AS col1
----
-2

query I rowsort
SELECT + 41 col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT ALL 53 + 73 + + 82 + + + 34 DIV 25 + + 69
----
278

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL 53 + 73 + + 82 + + + 34 / 25 + + 69
----
278

query I rowsort
SELECT ALL - 10 - - - 95 + - - 2 * 93 AS col1
----
81

query I rowsort
SELECT + 25 AS col2
----
25

query I rowsort
SELECT - - ( + ( + 4 ) ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL - + 68 * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - + 68 * - COUNT ( * )
----
68

query I rowsort
SELECT 37 * + NULLIF ( - 34, 6 + + - 10 )
----
-1258

query I rowsort
SELECT - ( + 56 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2851
SELECT 29 DIV + + 67, - COALESCE ( - 46, + 46 - - CAST( NULL AS SIGNED ) ) AS col1
----
0
46

skipif mysql # not compatible
query II rowsort label-2851
SELECT 29 / + + 67, - COALESCE ( - 46, + 46 - - CAST ( NULL AS INTEGER ) ) AS col1
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL - 58 * + + 0 * - MIN( + - 54 ) * + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - 58 * + + 0 * - MIN ( + - 54 ) * + 66 AS col2
----
0

query I rowsort
SELECT 16 * + - 63 - + NULLIF ( 61, - 89 ) + + 80 AS col1
----
-989

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT - 99 + - - CAST( NULL AS SIGNED ) AS col0, - 60 AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-2854
SELECT - 99 + - - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col0
----
NULL
-60

query I rowsort
SELECT 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + - MIN( - + 45 ) * + 9 + + 76 + - + 61 AS col1
----
420

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + - MIN ( - + 45 ) * + 9 + + 76 + - + 61 AS col1
----
420

query I rowsort
SELECT DISTINCT + 67 * + 7 + - 34
----
435

query I rowsort
SELECT DISTINCT - 37 AS col1
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-2859
SELECT ALL - 72 AS col1, - 14 + - 33 DIV - 28 + + 28
----
-72
15

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL - 72 AS col1, - 14 + - 33 / - 28 + + 28
----
-72
15

query I rowsort
SELECT ALL - 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT COUNT( * ) - + - 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2861
SELECT COUNT ( * ) - + - 20 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT 77 * - - 72 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT 77 * - - 72 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT ALL - 91 AS col1, + 9 * + COUNT( * ) + + 57 AS col0
----
-91
66

skipif mysql # not compatible
query II rowsort label-2864
SELECT ALL - 91 AS col1, + 9 * + COUNT ( * ) + + 57 AS col0
----
-91
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT MAX( - + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2865
SELECT MAX ( - + 88 )
----
-88

query I rowsort
SELECT ALL + 77 * - + ( + + 96 ) + - + 88 AS col2
----
-7480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL - CAST( + 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - CAST ( + 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT 7 * CASE + 23 WHEN + COUNT( ALL - + 5 ) / 83 THEN NULL WHEN + + 96 THEN - 59 - + + 8 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT 7 * CASE + 23 WHEN + COUNT ( ALL - + 5 ) / 83 THEN NULL WHEN + + 96 THEN - 59 - + + 8 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT 10 + + CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT 10 + + CAST ( NULL AS INTEGER ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT MIN( + ( - 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2870
SELECT MIN ( + ( - 4 ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT CAST( - 99 AS SIGNED ) - + 13 - - 84
----
-28

skipif mysql # not compatible
query I rowsort label-2871
SELECT CAST ( - 99 AS INTEGER ) - + 13 - - 84
----
-28

query I rowsort
SELECT ALL 92 * 63
----
5796

query I rowsort
SELECT 26 * - 52 AS col2
----
-1352

query I rowsort
SELECT ALL 10 + - 97 - 68 AS col2
----
-155

query II rowsort
SELECT ALL 86 + - ( - 92 ) * 13 + - 88, 75 AS col2
----
1194
75

query I rowsort
SELECT ALL - COALESCE ( - + 86, 32, + 62 ) * + ( 82 ) * - 50
----
-352600

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT 91 * MIN( - 37 )
----
-3367

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT 91 * MIN ( - 37 )
----
-3367

query I rowsort
SELECT + COALESCE ( + 61, - + 92 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT 70 * 27 + - 6 + + 2 + - 34 * + 72 + - CAST( - CASE - 32 WHEN - - 46 THEN NULL ELSE - + 25 END AS SIGNED ) * - COUNT( ALL + CAST( + 70 AS SIGNED ) )
----
-537

skipif mysql # not compatible
query I rowsort label-2879
SELECT 70 * 27 + - 6 + + 2 + - 34 * + 72 + - CAST ( - CASE - 32 WHEN - - 46 THEN NULL ELSE - + 25 END AS INTEGER ) * - COUNT ( ALL + CAST ( + 70 AS INTEGER ) )
----
-537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT + 38 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT + 38 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 35 AS col1
----
35

query I rowsort
SELECT + - 0 + + 33
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2883
SELECT ALL 98 DIV 83 * 87 + COALESCE ( + 30, + 74 - - 32 + - 23 * - 4 * 28, + 40 ) AS col2, + COUNT( * ) + + - 36 + 33 * + NULLIF ( 32, - MIN( - 87 ) * 47 )
----
117
1021

skipif mysql # not compatible
query II rowsort label-2883
SELECT ALL 98 / 83 * 87 + COALESCE ( + 30, + 74 - - 32 + - 23 * - 4 * 28, + 40 ) AS col2, + COUNT ( * ) + + - 36 + 33 * + NULLIF ( 32, - MIN ( - 87 ) * 47 )
----
117
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + + COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-2884
SELECT + + COUNT ( * ) + 88
----
89

query I rowsort
SELECT ALL - 14 - + + 38 + - 61
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - + COUNT( DISTINCT 70 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2886
SELECT - + COUNT ( DISTINCT 70 ) AS col2
----
-1

query I rowsort
SELECT ALL - ( + + 24 ) col1
----
-24

query I rowsort
SELECT + 90 + + + 17
----
107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2889
SELECT ALL - ( 3 ) DIV - CAST( 85 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - ( 3 ) / - CAST ( 85 AS INTEGER )
----
0

query I rowsort
SELECT + 4 + - ( 43 )
----
-39

query II rowsort
SELECT - 70 AS col1, 98 AS col2
----
-70
98

query II rowsort
SELECT ALL 92 col1, + 75
----
92
75

query I rowsort
SELECT + 57 * - 97
----
-5529

query I rowsort
SELECT - - 68 * - 1 * 87 * 13 * + 9 AS col1
----
-692172

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - 31 + 36 + COUNT( * ) * 24 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2895
SELECT - 31 + 36 + COUNT ( * ) * 24 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 18 + + 14
----
32

query I rowsort
SELECT ALL - ( + 77 )
----
-77

query I rowsort
SELECT ALL - 21 AS col2
----
-21

query I rowsort
SELECT ALL - 80 AS col2
----
-80

query II rowsort
SELECT DISTINCT COALESCE ( + 49, + + 72, ( + + 79 ) ) AS col1, + 41
----
49
41

query I rowsort
SELECT ALL - 11 AS col0
----
-11

query I rowsort
SELECT - 82 * 92
----
-7544

query II rowsort
SELECT ( - 12 ) AS col0, 35 + - 22 - 19 * + 49 * + 77 AS col1
----
-12
-71674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2905
SELECT ALL + 33 DIV + 37 * 47 + - - 90 + 95 + - + ( - - ( 21 ) ) * CAST( + - 49 AS SIGNED ) + NULLIF ( + 93, - 7 DIV - COUNT( * ) * - ( 98 ) ) AS col0, - 92
----
1307
-92

skipif mysql # not compatible
query II rowsort label-2905
SELECT ALL + 33 / + 37 * 47 + - - 90 + 95 + - + ( - - ( 21 ) ) * CAST ( + - 49 AS INTEGER ) + NULLIF ( + 93, - 7 / - COUNT ( * ) * - ( 98 ) ) AS col0, - 92
----
1307
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT ALL - 50 DIV - + 88 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - 50 / - + 88 + - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT 1 * + 93 * - + MIN( + 69 ) + + 87 * 5 col2
----
-5982

skipif mysql # not compatible
query I rowsort label-2907
SELECT 1 * + 93 * - + MIN ( + 69 ) + + 87 * 5 col2
----
-5982

query I rowsort
SELECT DISTINCT + 17 * + 15 + - 35
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2909
SELECT - 84 DIV COUNT( ALL 36 ) + - CAST( + 53 AS SIGNED )
----
-137

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 84 / COUNT ( ALL 36 ) + - CAST ( + 53 AS INTEGER )
----
-137

query I rowsort
SELECT + 96 * - - 28 + - 17 AS col0
----
2671

query I rowsort
SELECT - 87 * 96
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - 18 * 54 * - 56 + - + 23 * - ( 34 ) * - COUNT( * )
----
53650

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - 18 * 54 * - 56 + - + 23 * - ( 34 ) * - COUNT ( * )
----
53650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2913
SELECT ( - COALESCE ( + + 19, + 93 * + COUNT( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) ) ), 40 + + 7 AS col2
----
-19
47

skipif mysql # not compatible
query II rowsort label-2913
SELECT ( - COALESCE ( + + 19, + 93 * + COUNT ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) ) ), 40 + + 7 AS col2
----
-19
47

query I rowsort
SELECT ALL + 71 AS col1
----
71

query I rowsort
SELECT - 92 + - 90 AS col1
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT - 51 * + CAST( + + 80 AS SIGNED ) AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-2916
SELECT - 51 * + CAST ( + + 80 AS INTEGER ) AS col0
----
-4080

query I rowsort
SELECT ALL + 16 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2918
SELECT NULLIF ( - + CAST( NULL AS DECIMAL ), - 51 + 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT NULLIF ( - + CAST ( NULL AS REAL ), - 51 + 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT 75 DIV 95 * NULLIF ( - 24, - + 89 ) + COUNT( - - NULLIF ( + 24, - - ( + 56 ) + - + 11 ) ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-2919
SELECT 75 / 95 * NULLIF ( - 24, - + 89 ) + COUNT ( - - NULLIF ( + 24, - - ( + 56 ) + - + 11 ) ) * 48
----
48

query I rowsort
SELECT - 56 * + 2 col0
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-2921
SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT( * ) ) AS col0
----
2
-82

skipif mysql # not compatible
query II rowsort label-2921
SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT ( * ) ) AS col0
----
2
-82

query I rowsort
SELECT DISTINCT + ( 50 ) AS col0
----
50

query II rowsort
SELECT + 53, + 23 AS col2
----
53
23

query I rowsort
SELECT - 86 AS col2
----
-86

query I rowsort
SELECT DISTINCT - + 60 * + 1 col1
----
-60

query I rowsort
SELECT - 32 * 16 AS col0
----
-512

query II rowsort
SELECT - 37 AS col0, - 84 * - 67
----
-37
5628

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - + COUNT( * ) - + 78
----
-79

skipif mysql # not compatible
query I rowsort label-2928
SELECT - + COUNT ( * ) - + 78
----
-79

query I rowsort
SELECT - ( + 79 ) AS col2
----
-79

query I rowsort
SELECT + + CASE 2 WHEN - + NULLIF ( + - 15, 62 ) / + 47 * + 13 * 60 * 97 * - 86 THEN + - 63 END * + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), + 7 * + 84 - + COUNT( ALL - - 68 ) + + - 80 + 40 * ( - CAST( NULL AS SIGNED ) ) * - 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + 7 * + 84 - + COUNT ( ALL - - 68 ) + + - 80 + 40 * ( - CAST ( NULL AS INTEGER ) ) * - 23 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL 65 + + 5 * + - CAST( - 13 AS SIGNED ) * + CAST( - - COUNT( * ) AS SIGNED ) * - 7 + - COALESCE ( - + 13, + SUM( + - 54 ) * 61 ) + - 17
----
-394

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL 65 + + 5 * + - CAST ( - 13 AS INTEGER ) * + CAST ( - - COUNT ( * ) AS INTEGER ) * - 7 + - COALESCE ( - + 13, + SUM ( + - 54 ) * 61 ) + - 17
----
-394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT ALL COUNT( * ) + SUM( - CAST( + 61 AS SIGNED ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL COUNT ( * ) + SUM ( - CAST ( + 61 AS INTEGER ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL COUNT( ALL - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL COUNT ( ALL - 64 ) AS col0
----
1

query I rowsort
SELECT + + 95 * + 82
----
7790

query I rowsort
SELECT ALL NULLIF ( 96, - 17 ) + - 71 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2937
SELECT + 29 + - - NULLIF ( 20, CASE - NULLIF ( + 19, - 34 ) WHEN + 77 THEN 76 END * 66 + - 44 + + CAST( NULL AS SIGNED ) - 5 / + + 38 * - + 40 * + 26 ) * + 80, + 26 * - COALESCE ( - - CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col1
----
1629
26

skipif mysql # not compatible
query II rowsort label-2937
SELECT + 29 + - - NULLIF ( 20, CASE - NULLIF ( + 19, - 34 ) WHEN + 77 THEN 76 END * 66 + - 44 + + CAST ( NULL AS INTEGER ) - 5 / + + 38 * - + 40 * + 26 ) * + 80, + 26 * - COALESCE ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col1
----
1629
26

query I rowsort
SELECT + 5 + - + 96 + 41
----
-50

query II rowsort
SELECT ALL 17 * 7 AS col2, + 48 AS col2
----
119
48

query I rowsort
SELECT DISTINCT ( - 66 ) + + 53 * 30
----
1524

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT + 81 + + - 79 * + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 81 + + - 79 * + + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL 11 DIV + 91 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 11 / + 91 + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT + 88 + + + ( - - 39 )
----
127

query I rowsort
SELECT + 35 * 4 + - 19 AS col0
----
121

query I rowsort
SELECT 41 + 84
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT ( + 0 ) DIV + 97 + ( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-2947
SELECT ( + 0 ) / + 97 + ( + + 62 )
----
62

query I rowsort
SELECT ALL + 80 * - 22 * - 87 * + 9 AS col1
----
1378080

query I rowsort
SELECT DISTINCT - 18 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT ( - 83 ) DIV + 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT ( - 83 ) / + 88 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ALL - COUNT( * ) * 58 * + + 92
----
-5336

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - COUNT ( * ) * 58 * + + 92
----
-5336

query I rowsort
SELECT 71 * - - 58 - + 80
----
4038

onlyif mysql # DIV for integer division: 
query II rowsort label-2953
SELECT 35 * - 91 * + 88 AS col0, - 57 DIV 54 * + 78 AS col2
----
-280280
-78

skipif mysql # not compatible
query II rowsort label-2953
SELECT 35 * - 91 * + 88 AS col0, - 57 / 54 * + 78 AS col2
----
-280280
-78

query I rowsort
SELECT DISTINCT - 94
----
-94

query I rowsort
SELECT - 63 * CASE COALESCE ( - - 73, + 38 ) WHEN - 78 THEN 99 * 27 * 77 ELSE NULL END * - 19 * - 59
----
NULL

query I rowsort
SELECT ALL - + 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + ( ( + CASE - ( - - 96 ) WHEN 36 THEN - + 61 + + - 6 / + CASE + 70 WHEN 54 THEN NULL WHEN + MIN( 91 ) THEN NULL WHEN + - 45 THEN + 86 + + - 17 END - + AVG ( - ( 53 ) ) - + + COUNT( * ) END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT + ( ( + CASE - ( - - 96 ) WHEN 36 THEN - + 61 + + - 6 / + CASE + 70 WHEN 54 THEN NULL WHEN + MIN ( 91 ) THEN NULL WHEN + - 45 THEN + 86 + + - 17 END - + AVG ( - ( 53 ) ) - + + COUNT ( * ) END ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + 61 * 39 * COUNT( * ) + + 80 + - 34 * + - 87
----
5417

skipif mysql # not compatible
query I rowsort label-2958
SELECT + 61 * 39 * COUNT ( * ) + + 80 + - 34 * + - 87
----
5417

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT COUNT( * ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-2959
SELECT COUNT ( * ) * + 58
----
58

query I rowsort
SELECT ALL - + 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT 92 + - 19 + - 42 + + - 99 * - - COUNT( * ), - 89 AS col2
----
-68
-89

skipif mysql # not compatible
query II rowsort label-2961
SELECT 92 + - 19 + - 42 + + - 99 * - - COUNT ( * ), - 89 AS col2
----
-68
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT - 65 * + 99 - 13 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT - 65 * + 99 - 13 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 94 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - - ( + + COUNT( * ) ) * - - COUNT( * ) - - COUNT( * ) + - COUNT( * ) + + 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2964
SELECT - - ( + + COUNT ( * ) ) * - - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) + + 61 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT DISTINCT + MAX( + 61 ), 31 AS col2
----
61
31

skipif mysql # not compatible
query II rowsort label-2965
SELECT DISTINCT + MAX ( + 61 ), 31 AS col2
----
61
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2966
SELECT 84 + + 39 AS col0, - CASE + COUNT( * ) WHEN - 22 THEN - AVG ( 8 ) + - COUNT( * ) ELSE NULL END
----
123
NULL

skipif mysql # not compatible
query II rowsort label-2966
SELECT 84 + + 39 AS col0, - CASE + COUNT ( * ) WHEN - 22 THEN - AVG ( 8 ) + - COUNT ( * ) ELSE NULL END
----
123
NULL

query I rowsort
SELECT ALL ( - - 14 ) + + - 48 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT 15 + + 6 + 74 + + - 52 - - - CASE 61 WHEN + COALESCE ( - 83, 27 + - + 13 ) THEN + 91 WHEN - - 54 THEN NULL END / - + ( + 98 ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT 15 + + 6 + 74 + + - 52 - - - CASE 61 WHEN + COALESCE ( - 83, 27 + - + 13 ) THEN + 91 WHEN - - 54 THEN NULL END / - + ( + 98 ) / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 80 * - + 78 + + 57 + 7 * + + 32 AS col0
----
6521

query I rowsort
SELECT ALL + 47 + + 58
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL + COUNT( * ) + + + 49 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + COUNT ( * ) + + + 49 * + COUNT ( * )
----
50

query I rowsort
SELECT + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT NULLIF ( + SUM( + ( 6 ) ), - 91 + + 45 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2973
SELECT NULLIF ( + SUM ( + ( 6 ) ), - 91 + + 45 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT AVG ( ALL 93 ) + + 43 - 13 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT AVG ( ALL 93 ) + + 43 - 13 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT - CASE - - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT - CASE - - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-2976
SELECT COUNT ( * ) * + 52
----
52

query I rowsort
SELECT NULLIF ( + + 35, 29 + + 96 ) + 89 AS col1
----
124

query II rowsort
SELECT DISTINCT 28 AS col2, 23 AS col2
----
28
23

query I rowsort
SELECT DISTINCT ( 17 ) + + 55
----
72

query I rowsort
SELECT ALL 69 + 93 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2981
SELECT DISTINCT ( + CAST( 81 AS SIGNED ) ) - + COUNT( * ) DIV - - 57 * 12 * + - 68 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT ( + CAST ( 81 AS INTEGER ) ) - + COUNT ( * ) / - - 57 * 12 * + - 68 AS col2
----
81

query II rowsort
SELECT - 44 col2, - 84
----
-44
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT NULLIF ( - 49, COUNT( * ) + + 61 + - SUM( DISTINCT - + 38 ) - + 8 / + 95 ) * + 20 * 35 col0
----
-34300

skipif mysql # not compatible
query I rowsort label-2983
SELECT NULLIF ( - 49, COUNT ( * ) + + 61 + - SUM ( DISTINCT - + 38 ) - + 8 / + 95 ) * + 20 * 35 col0
----
-34300

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT COUNT( * ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2984
SELECT COUNT ( * ) * + 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT - 31 * + + 72 + 60 DIV + NULLIF ( + + 96, - + NULLIF ( + 45, 83 ) * - 97 - 93 )
----
-2232

skipif mysql # not compatible
query I rowsort label-2985
SELECT - 31 * + + 72 + 60 / + NULLIF ( + + 96, - + NULLIF ( + 45, 83 ) * - 97 - 93 )
----
-2232

query I rowsort
SELECT DISTINCT 62 * + + 80 AS col2
----
4960

query I rowsort
SELECT ALL 79 * - 3 AS col2
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL 56 - 35 + + COUNT( * ) - 85
----
-63

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 56 - 35 + + COUNT ( * ) - 85
----
-63

query II rowsort
SELECT ALL - 41 AS col1, 70
----
-41
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT 76 + ( COUNT( * ) ) * - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2990
SELECT 76 + ( COUNT ( * ) ) * - - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + SUM( + + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2991
SELECT + SUM ( + + 63 ) AS col1
----
63

query I rowsort
SELECT ALL - ( - - 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT + + 83 * 21 / - - 17 + + + ( - - 53 ) + - - ( + 24 ) * - - COUNT( * ) / + 58 + + 90 + + 32 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + 83 * 21 / - - 17 + + + ( - - 53 ) + - - ( + 24 ) * - - COUNT ( * ) / + 58 + + 90 + + 32 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT - CAST( MIN( + 85 ) AS SIGNED ) * - 60 * - ( + 42 ) AS col2
----
-214200

skipif mysql # not compatible
query I rowsort label-2994
SELECT - CAST ( MIN ( + 85 ) AS INTEGER ) * - 60 * - ( + 42 ) AS col2
----
-214200

query II rowsort
SELECT 60 * ( + + 14 ) AS col1, 57 AS col0
----
840
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - 93 + - + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2996
SELECT - 93 + - + COUNT ( * ) AS col2
----
-94

query II rowsort
SELECT + - 19 AS col1, - 90 + + 35
----
-19
-55

query I rowsort
SELECT + - 6
----
-6

query I rowsort
SELECT ALL + 42 * + 1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3000
SELECT - 50 DIV + ( + + SUM( ALL + - 52 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 50 / + ( + + SUM ( ALL + - 52 ) )
----
0

query I rowsort
SELECT + 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT ALL + + 55 + - + ( + - 56 ) col2, - COUNT( * ) AS col1
----
111
-1

skipif mysql # not compatible
query II rowsort label-3002
SELECT ALL + + 55 + - + ( + - 56 ) col2, - COUNT ( * ) AS col1
----
111
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL - COUNT( * ) + - - 83 col0
----
82

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - COUNT ( * ) + - - 83 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL - 76 + CASE - 49 WHEN + COUNT( * ) + + 20 THEN - 9 / + + 9 + + 23 + 59 + + 47 + 2 END - ( + COALESCE ( - - COUNT( * ), - 99 + + + 0 + + - 19, + + 61 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - 76 + CASE - 49 WHEN + COUNT ( * ) + + 20 THEN - 9 / + + 9 + + 23 + 59 + + 47 + 2 END - ( + COALESCE ( - - COUNT ( * ), - 99 + + + 0 + + - 19, + + 61 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT + CASE + 62 WHEN + 38 THEN 16 * + 24 WHEN + + ( + 30 ) * - 80 THEN - NULLIF ( + 52, + 47 ) ELSE NULL END / + + NULLIF ( 15, - 71 ) + - + COALESCE ( + 17, - + COUNT( * ) * - ( + CAST( - CASE - ( - - 49 ) WHEN 55 * - - 80 + + CAST( NULL AS SIGNED ) * - COUNT( * ) THEN + - CASE - ( + - COUNT( * ) ) WHEN - 27 - + AVG ( - - 48 ) THEN - 82 + + 67 ELSE + 86 * 30 + 31 END WHEN 9 * COUNT( * ) + - 2 + - 66 + 55 THEN NULL END AS SIGNED ) ) + - - 95, 1, + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT + CASE + 62 WHEN + 38 THEN 16 * + 24 WHEN + + ( + 30 ) * - 80 THEN - NULLIF ( + 52, + 47 ) ELSE NULL END / + + NULLIF ( 15, - 71 ) + - + COALESCE ( + 17, - + COUNT ( * ) * - ( + CAST ( - CASE - ( - - 49 ) WHEN 55 * - - 80 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN + - CASE - ( + - COUNT ( * ) ) WHEN - 27 - + AVG ( - - 48 ) THEN - 82 + + 67 ELSE + 86 * 30 + 31 END WHEN 9 * COUNT ( * ) + - 2 + - 66 + 55 THEN NULL END AS INTEGER ) ) + - - 95, 1, + 67 )
----
NULL

query I rowsort
SELECT DISTINCT - 50 AS col0
----
-50

query I rowsort
SELECT 9 - + - ( + 55 ) * + + ( + 75 ) * + 35 + - ( + 96 )
----
144288

query II rowsort
SELECT - 40 AS col1, 73
----
-40
73

query I rowsort
SELECT 3 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT ALL - - 75 + - COUNT( * ) DIV + 97 * + - 59
----
75

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - - 75 + - COUNT ( * ) / + 97 * + - 59
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3011
SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT( * ) ELSE NULL END - + MAX( DISTINCT - ( + 67 ) ) / - 60 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-3011
SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT ( * ) ELSE NULL END - + MAX ( DISTINCT - ( + 67 ) ) / - 60 AS col0
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3012
SELECT - 66 * - COUNT( - - 53 ) * + + 79, - CAST( + 65 AS SIGNED ) * + 7 col2
----
5214
-455

skipif mysql # not compatible
query II rowsort label-3012
SELECT - 66 * - COUNT ( - - 53 ) * + + 79, - CAST ( + 65 AS INTEGER ) * + 7 col2
----
5214
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT ALL + CAST( NULL AS SIGNED ) + - MAX( - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + CAST ( NULL AS INTEGER ) + - MAX ( - 47 )
----
NULL

query I rowsort
SELECT DISTINCT + 97 * COALESCE ( 39, 23 )
----
3783

query I rowsort
SELECT ALL 46 * + + 69
----
3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3016
SELECT ALL COUNT( ALL + 55 ) AS col1, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3016
SELECT ALL COUNT ( ALL + 55 ) AS col1, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - COUNT( * ) + - 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3017
SELECT - COUNT ( * ) + - 56 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT ALL NULLIF ( + 3, CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL NULLIF ( + 3, CAST ( NULL AS INTEGER ) )
----
3

query I rowsort
SELECT - 92 + 27 + + 40 AS col1
----
-25

query I rowsort
SELECT 67 col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT + NULLIF ( + - 31, 65 + + - 31 * - COALESCE ( - - COALESCE ( - COUNT( * ), - MIN( DISTINCT - 77 ) + - + COUNT( * ) ), - 38 / 12 / - 10 ) ) + + + 8 AS col1, - 43 * - COALESCE ( + - 88, 43 )
----
-23
-3784

skipif mysql # not compatible
query II rowsort label-3021
SELECT + NULLIF ( + - 31, 65 + + - 31 * - COALESCE ( - - COALESCE ( - COUNT ( * ), - MIN ( DISTINCT - 77 ) + - + COUNT ( * ) ), - 38 / 12 / - 10 ) ) + + + 8 AS col1, - 43 * - COALESCE ( + - 88, 43 )
----
-23
-3784

query I rowsort
SELECT ALL + 96 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT + CASE - COALESCE ( + ( + 69 ), - 57 / ( 83 ) + + - 47 + + 27 / COUNT( * ) * - - 84 + - COUNT( * ) / COALESCE ( - 82, - 63, - 88 ), - 77 ) WHEN + + COUNT( * ) + + 86 THEN + 28 + 97 END * - + 76 / - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT + CASE - COALESCE ( + ( + 69 ), - 57 / ( 83 ) + + - 47 + + 27 / COUNT ( * ) * - - 84 + - COUNT ( * ) / COALESCE ( - 82, - 63, - 88 ), - 77 ) WHEN + + COUNT ( * ) + + 86 THEN + 28 + 97 END * - + 76 / - 68 AS col1
----
NULL

query I rowsort
SELECT ALL + 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + SUM( ALL - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3025
SELECT + SUM ( ALL - 60 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3026
SELECT + 55 * - - SUM( - CAST( + 28 AS SIGNED ) ) AS col1, - 49
----
-1540
-49

skipif mysql # not compatible
query II rowsort label-3026
SELECT + 55 * - - SUM ( - CAST ( + 28 AS INTEGER ) ) AS col1, - 49
----
-1540
-49

query I rowsort
SELECT + 89 * + + 8 + + 13 - 60 * - 84 AS col1
----
5765

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT - COALESCE ( 66, + 70 * - + 81 DIV + ( 5 ) + ( 6 ) ) * 52
----
-3432

skipif mysql # not compatible
query I rowsort label-3028
SELECT - COALESCE ( 66, + 70 * - + 81 / + ( 5 ) + ( 6 ) ) * 52
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT + 54 * - 31 * - + 76 * + - CASE + - 68 WHEN + ( + 74 ) * MIN( DISTINCT 13 ) THEN NULL WHEN + + 1 THEN NULL ELSE + 5 * - + 92 END
----
58523040

skipif mysql # not compatible
query I rowsort label-3029
SELECT + 54 * - 31 * - + 76 * + - CASE + - 68 WHEN + ( + 74 ) * MIN ( DISTINCT 13 ) THEN NULL WHEN + + 1 THEN NULL ELSE + 5 * - + 92 END
----
58523040

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL 90 * + 17 + ( COUNT( * ) )
----
1531

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL 90 * + 17 + ( COUNT ( * ) )
----
1531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT + + CAST( NULL AS SIGNED ) / - 12 - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT + + CAST ( NULL AS INTEGER ) / - 12 - - 92
----
NULL

query I rowsort
SELECT + + 15 + 84 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + SUM( ALL - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3033
SELECT + SUM ( ALL - 57 ) AS col2
----
-57

query I rowsort
SELECT DISTINCT + 16
----
16

query I rowsort
SELECT + - 40 * + 94 + 82 + + 11 AS col0
----
-3667

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL - 28 * + ( + + COUNT( * ) ) * - - COUNT( ALL - + 46 ) + 17 + - 57 + + - 7
----
-75

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - 28 * + ( + + COUNT ( * ) ) * - - COUNT ( ALL - + 46 ) + 17 + - 57 + + - 7
----
-75

query I rowsort
SELECT ALL 98 * + 72 + 44 + 37 AS col0
----
7137

query I rowsort
SELECT ALL + + NULLIF ( - + 86, - 82 + - 95 )
----
-86

query I rowsort
SELECT + 70 + - ( - + 50 ) col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + 10 + + COUNT( * ) + 10
----
21

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 10 + + COUNT ( * ) + 10
----
21

query I rowsort
SELECT DISTINCT + + 49 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - - 7 * - - SUM( + ( + 94 ) ) + + - 6
----
652

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - - 7 * - - SUM ( + ( + 94 ) ) + + - 6
----
652

query I rowsort
SELECT - + 8 * 25
----
-200

query I rowsort
SELECT + + 36 AS col2
----
36

query I rowsort
SELECT + - 39 + + 17 + - 5 + - 95 * ( COALESCE ( + 75, 56 ) ) + - 52 AS col0
----
-7204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3046
SELECT - - 13 * - + 59 - - COUNT( * ) * + + 0 DIV + 11 - 83 * - + 49
----
3300

skipif mysql # not compatible
query I rowsort label-3046
SELECT - - 13 * - + 59 - - COUNT ( * ) * + + 0 / + 11 - 83 * - + 49
----
3300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT + - 47 * - CAST( 44 AS SIGNED ) * - - ( 38 ) + + - 98 DIV - 94 + - 81 + - 27 + 49 AS col1
----
78526

skipif mysql # not compatible
query I rowsort label-3047
SELECT + - 47 * - CAST ( 44 AS INTEGER ) * - - ( 38 ) + + - 98 / - 94 + - 81 + - 27 + 49 AS col1
----
78526

query I rowsort
SELECT DISTINCT 23 - + 49
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL NULLIF ( MAX( DISTINCT + 51 ), 60 * - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL NULLIF ( MAX ( DISTINCT + 51 ), 60 * - 51 )
----
51

query II rowsort
SELECT - 52 + + 56 - - 46, 98 AS col2
----
50
98

query I rowsort
SELECT ALL 58 * - - 7 * - 36 * + 10
----
-146160

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT DISTINCT ( - 67 ) * + NULLIF ( 32, + 58 ) col0, MAX( - - 73 )
----
-2144
73

skipif mysql # not compatible
query II rowsort label-3052
SELECT DISTINCT ( - 67 ) * + NULLIF ( 32, + 58 ) col0, MAX ( - - 73 )
----
-2144
73

query I rowsort
SELECT + 40 * - 13
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT + 16 / 20 * - CASE 86 WHEN 47 * 67 * 48 / CAST( - 60 AS SIGNED ) / CASE - 17 WHEN + COUNT( DISTINCT - 17 ) * + 11 + + 3 + - + MIN( 70 ) THEN NULL WHEN + SUM( ALL + 7 ) + + - 70 + 50 * + 24 * + + CAST( NULL AS SIGNED ) THEN + 65 ELSE NULL END * + - COUNT( * ) - - 77 * - 55 THEN + + 18 * 2 * - + NULLIF ( + - 4, - + 48 + + 43 - - - 39 * - - 34 ) + + - ( 13 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT + 16 / 20 * - CASE 86 WHEN 47 * 67 * 48 / CAST ( - 60 AS INTEGER ) / CASE - 17 WHEN + COUNT ( DISTINCT - 17 ) * + 11 + + 3 + - + MIN ( 70 ) THEN NULL WHEN + SUM ( ALL + 7 ) + + - 70 + 50 * + 24 * + + CAST ( NULL AS INTEGER ) THEN + 65 ELSE NULL END * + - COUNT ( * ) - - 77 * - 55 THEN + + 18 * 2 * - + NULLIF ( + - 4, - + 48 + + 43 - - - 39 * - - 34 ) + + - ( 13 ) END AS col2
----
NULL

query I rowsort
SELECT ALL ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - NULLIF ( NULLIF ( - + SUM( 53 ), + 93 ), - 84 + - 97 ) * + 9 * + 72 AS col1
----
34344

skipif mysql # not compatible
query I rowsort label-3056
SELECT - NULLIF ( NULLIF ( - + SUM ( 53 ), + 93 ), - 84 + - 97 ) * + 9 * + 72 AS col1
----
34344

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL ( + COUNT( DISTINCT 75 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL ( + COUNT ( DISTINCT 75 ) ) col0
----
1

query II rowsort
SELECT 15 col2, - 84 + + 25 col1
----
15
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3059
SELECT DISTINCT CASE ( + 29 ) WHEN + 31 THEN NULL WHEN - NULLIF ( + COUNT( * ), - 57 ) * + + COUNT( * ) + + SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) * - - 64 + 89 + + 80 * - 71 * - - 6 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT CASE ( + 29 ) WHEN + 31 THEN NULL WHEN - NULLIF ( + COUNT ( * ), - 57 ) * + + COUNT ( * ) + + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) * - - 64 + 89 + + 80 * - 71 * - - 6 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - COUNT( * ) * + 45 * - 41 col2
----
1845

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - COUNT ( * ) * + 45 * - 41 col2
----
1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT ALL CAST( 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL CAST ( 70 AS INTEGER ) AS col2
----
70

query II rowsort
SELECT - 60 AS col0, - 27 * + 25 + + 51 AS col0
----
-60
-624

query I rowsort
SELECT ALL ( - 71 ) col2
----
-71

query I rowsort
SELECT DISTINCT - 67 * - - 22 AS col2
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - 32 * + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-3065
SELECT - 32 * + + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT COUNT( * ) * + + ( COUNT( * ) ) + ( - + 54 ) * - 92 + - COUNT( * ) + - 12 * 63
----
4212

skipif mysql # not compatible
query I rowsort label-3066
SELECT COUNT ( * ) * + + ( COUNT ( * ) ) + ( - + 54 ) * - 92 + - COUNT ( * ) + - 12 * 63
----
4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT CAST( + 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3067
SELECT CAST ( + 77 AS INTEGER ) AS col0
----
77

query I rowsort
SELECT + 26 + 39
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT 9 DIV + 38 + 73
----
73

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 9 / + 38 + 73
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3070
SELECT - 96 DIV + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 96 / + COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT ALL + 59 AS col0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3072
SELECT CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT ALL + 56 DIV + NULLIF ( COUNT( * ), 88 ) + + 36
----
92

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + 56 / + NULLIF ( COUNT ( * ), 88 ) + + 36
----
92

query I rowsort
SELECT - 90 + - 54 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT 50 * 41 + - 37 AS col2
----
2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT - 9 DIV COUNT( * ) - + 49
----
-58

skipif mysql # not compatible
query I rowsort label-3077
SELECT - 9 / COUNT ( * ) - + 49
----
-58

query I rowsort
SELECT ( + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3079
SELECT ALL COUNT( * ) DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL COUNT ( * ) / + 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT - 30 DIV + 7
----
-4

skipif mysql # not compatible
query I rowsort label-3080
SELECT - 30 / + 7
----
-4

query I rowsort
SELECT ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + NULLIF ( ( 80 ), + COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3082
SELECT + NULLIF ( ( 80 ), + COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + 12 + + NULLIF ( 44 + 5, + COUNT( * ) ) * - 92
----
-4496

skipif mysql # not compatible
query I rowsort label-3083
SELECT + 12 + + NULLIF ( 44 + 5, + COUNT ( * ) ) * - 92
----
-4496

query I rowsort
SELECT ALL 18 * 79 AS col0
----
1422

query I rowsort
SELECT ALL + 84 AS col0
----
84

query I rowsort
SELECT + CASE - 43 WHEN + 39 THEN NULL ELSE 42 END AS col2
----
42

query I rowsort
SELECT ALL + CASE WHEN 68 IN ( + 31 ) THEN - 91 ELSE - 17 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + ( + MAX( ALL 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3088
SELECT + ( + MAX ( ALL 16 ) ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 97
----
-97

query I rowsort
SELECT ALL 82 * 59
----
4838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3091
SELECT DISTINCT 5 - COUNT( * ) DIV COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT 5 - COUNT ( * ) / COUNT ( * )
----
4

query I rowsort
SELECT ALL 17 * - 45 AS col0
----
-765

query I rowsort
SELECT DISTINCT 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT 25 * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3094
SELECT 25 * COUNT ( * ) AS col2
----
25

query I rowsort
SELECT 61 * 59
----
3599

query I rowsort
SELECT NULLIF ( - ( 62 ), 78 * + 18 ) - + 4 * 80
----
-382

query I rowsort
SELECT - 83 AS col2
----
-83

query I rowsort
SELECT 73 * + 0
----
0

query I rowsort
SELECT DISTINCT 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL - 25 * NULLIF ( 8, CASE ( - 16 ) WHEN COUNT( * ) + + COUNT( 72 + + 56 ) * - 13 THEN NULL WHEN + 98 + 44 THEN ( 56 ) ELSE 95 END * COUNT( 64 ) - - COUNT( 24 + + 12 ) * 74 )
----
-200

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - 25 * NULLIF ( 8, CASE ( - 16 ) WHEN COUNT ( * ) + + COUNT ( 72 + + 56 ) * - 13 THEN NULL WHEN + 98 + 44 THEN ( 56 ) ELSE 95 END * COUNT ( 64 ) - - COUNT ( 24 + + 12 ) * 74 )
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT ALL 68 * - CASE 85 WHEN - 80 - - 32 * - CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN + 54 * - 69 + - 85 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 68 * - CASE 85 WHEN - 80 - - 32 * - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN + 54 * - 69 + - 85 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 62 + 40
----
-22

query I rowsort
SELECT 79 - 0 AS col1
----
79

query I rowsort
SELECT DISTINCT 3 * 15 col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT 62 + - ( - CAST( NULL AS SIGNED ) + + 2 * + COALESCE ( 59 / + 78, 51 ) ) / + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 62 + - ( - CAST ( NULL AS INTEGER ) + + 2 * + COALESCE ( 59 / + 78, 51 ) ) / + 10 AS col1
----
NULL

query I rowsort
SELECT 69 + + 90
----
159

query I rowsort
SELECT 76 * 89 col0
----
6764

query I rowsort
SELECT ( + 56 ) + - 92
----
-36

query I rowsort
SELECT 14 - - 10
----
24

query I rowsort
SELECT ALL 70 col0
----
70

query I rowsort
SELECT - + 12 AS col2
----
-12

query I rowsort
SELECT ALL + COALESCE ( 46, + 83 ) + 43 AS col2
----
89

query I rowsort
SELECT - + 58
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL - 13 + - CAST( - 74 + + 84 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - 13 + - CAST ( - 74 + + 84 AS INTEGER ) AS col2
----
-23

query I rowsort
SELECT ALL - - 86
----
86

query I rowsort
SELECT + 64 * + 91 + + ( 9 )
----
5833

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL - 63 * COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - 63 * COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT ALL - 52 + - 57 col0
----
-109

query I rowsort
SELECT - 63 col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT + CAST( + AVG ( 14 ) AS SIGNED ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3120
SELECT + CAST ( + AVG ( 14 ) AS INTEGER ) AS col0
----
14

query I rowsort
SELECT + 96 * 75
----
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT 4 DIV + 32 col0
----
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT 4 / + 32 col0
----
0

query I rowsort
SELECT CASE + 30 WHEN 21 * + 28 THEN NULL WHEN + 70 + 9 * 58 THEN - 13 END
----
NULL

query I rowsort
SELECT + + 7
----
7

query I rowsort
SELECT ALL - - 88
----
88

query I rowsort
SELECT DISTINCT + ( 90 ) - - 34 * - 14 col2
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT 53 * COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-3127
SELECT 53 * COUNT ( * )
----
53

query I rowsort
SELECT ALL - - 72
----
72

query I rowsort
SELECT - - 75 * 6 - - ( 65 + - 46 ) col1
----
469

query I rowsort
SELECT DISTINCT - + 11
----
-11

query I rowsort
SELECT DISTINCT - + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT COUNT( * ) * + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3132
SELECT COUNT ( * ) * + 25 AS col2
----
25

query I rowsort
SELECT + ( 48 ) + + 19 AS col0
----
67

query I rowsort
SELECT - 97 * - 81 * - 20 + + 50
----
-157090

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT 56 * - ( 7 ) + - 72 * CASE - NULLIF ( + 0, - 76 + ( - ( - 50 ) + 8 ) ) / ( 50 ) WHEN - MAX( - 71 ) THEN + 0 * 36 + 1 WHEN 79 * 39 THEN CASE 83 WHEN 73 * ( + 21 ) THEN 29 / + 44 END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT 56 * - ( 7 ) + - 72 * CASE - NULLIF ( + 0, - 76 + ( - ( - 50 ) + 8 ) ) / ( 50 ) WHEN - MAX ( - 71 ) THEN + 0 * 36 + 1 WHEN 79 * 39 THEN CASE 83 WHEN 73 * ( + 21 ) THEN 29 / + 44 END END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3136
SELECT + NULLIF ( - - NULLIF ( + CAST( 41 AS SIGNED ), + CAST( + COUNT( * ) AS DECIMAL ) ), - 47 ) * ( ( 79 ) ) - 64
----
3175

skipif mysql # not compatible
query I rowsort label-3136
SELECT + NULLIF ( - - NULLIF ( + CAST ( 41 AS INTEGER ), + CAST ( + COUNT ( * ) AS REAL ) ), - 47 ) * ( ( 79 ) ) - 64
----
3175

query I rowsort
SELECT ALL 63 * - 69 * 51 AS col0
----
-221697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT 54 + - CAST( - CAST( + 6 AS SIGNED ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3138
SELECT 54 + - CAST ( - CAST ( + 6 AS INTEGER ) AS INTEGER ) AS col1
----
60

query I rowsort
SELECT ALL 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL COUNT( + 32 ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL COUNT ( + 32 ) + 40
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ( + - 93 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT ( + - 93 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 66 + + 3 + + 37
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3143
SELECT MAX( DISTINCT 28 ) + 44 DIV CAST( COUNT( * ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-3143
SELECT MAX ( DISTINCT 28 ) + 44 / CAST ( COUNT ( * ) AS INTEGER )
----
72

query I rowsort
SELECT ALL 49 AS col2
----
49

query I rowsort
SELECT DISTINCT 62 + + CASE 2 WHEN 17 / 78 THEN 32 WHEN + 13 THEN NULL WHEN 76 THEN 65 END + ( - 98 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT 14 + - 31 DIV 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3146
SELECT 14 + - 31 / 2 AS col1
----
-1

query I rowsort
SELECT ALL 61 + 63 AS col0
----
124

query I rowsort
SELECT 78 col1
----
78

query I rowsort
SELECT ALL - - 21 + + 47 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - CASE - 74 WHEN - 17 + - COUNT( ALL + 39 - 40 ) * 21 THEN + 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT - CASE - 74 WHEN - 17 + - COUNT ( ALL + 39 - 40 ) * 21 THEN + 10 END AS col2
----
NULL

query I rowsort
SELECT ALL + 17 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 50 + + 43 col0
----
93

query I rowsort
SELECT ALL - 23 - 88 AS col2
----
-111

query I rowsort
SELECT + 95 * + 70 + + 75 + 31 AS col0
----
6756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT - + 79 DIV + COUNT( * ) - + 4
----
-83

skipif mysql # not compatible
query I rowsort label-3156
SELECT - + 79 / + COUNT ( * ) - + 4
----
-83

query I rowsort
SELECT 88 * + + 23 * 35 AS col2
----
70840

query I rowsort
SELECT COALESCE ( - - 44, 51 ) col0
----
44

query I rowsort
SELECT - - 60 + - 97 AS col1
----
-37

query I rowsort
SELECT - + 2 * - 33 + + 21
----
87

query I rowsort
SELECT ALL + + 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT - - 14 * CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT - - 14 * CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( ( + 83 ) )
----
83

query I rowsort
SELECT DISTINCT + - 61 * 3 + - 70 AS col1
----
-253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT + + COALESCE ( - 91, CAST( NULL AS SIGNED ), 12 ) * + 7
----
-637

skipif mysql # not compatible
query I rowsort label-3165
SELECT + + COALESCE ( - 91, CAST ( NULL AS INTEGER ), 12 ) * + 7
----
-637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - CAST( + 19 AS SIGNED ) * + COALESCE ( + 49, ( + 61 ), - 2 )
----
-931

skipif mysql # not compatible
query I rowsort label-3166
SELECT - CAST ( + 19 AS INTEGER ) * + COALESCE ( + 49, ( + 61 ), - 2 )
----
-931

query I rowsort
SELECT - COALESCE ( + 39, - 17 + + 81 * - 47 ) + 59 * 23 AS col1
----
1318

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT + 52 * - + CASE + - 22 WHEN 31 THEN NULLIF ( 95, + 5 ) * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT + 52 * - + CASE + - 22 WHEN 31 THEN NULLIF ( 95, + 5 ) * - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3169
SELECT ALL + 9 AS col1, COUNT( * ) * - - 17
----
9
17

skipif mysql # not compatible
query II rowsort label-3169
SELECT ALL + 9 AS col1, COUNT ( * ) * - - 17
----
9
17

query I rowsort
SELECT - 99 + + 83 + 22 col1
----
6

query I rowsort
SELECT + 81 col2
----
81

query I rowsort
SELECT DISTINCT + 41 AS col0
----
41

query I rowsort
SELECT DISTINCT - 80 + 29 AS col1
----
-51

query II rowsort
SELECT - 92 AS col0, + 7 AS col0
----
-92
7

query I rowsort
SELECT - 10 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3176
SELECT - COUNT( * ) AS col2, + 17 + + + COUNT( * ) + + 0 AS col2
----
-1
18

skipif mysql # not compatible
query II rowsort label-3176
SELECT - COUNT ( * ) AS col2, + 17 + + + COUNT ( * ) + + 0 AS col2
----
-1
18

query I rowsort
SELECT ALL - 62 + + 24 AS col0
----
-38

query I rowsort
SELECT - 27 - + 32 AS col1
----
-59

query I rowsort
SELECT ALL - 90 * + 13 AS col0
----
-1170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3180
SELECT - CASE 19 WHEN + CAST( NULL AS DECIMAL ) * - 38 THEN 99 * 17 END + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT - CASE 19 WHEN + CAST ( NULL AS REAL ) * - 38 THEN 99 * 17 END + - 33 AS col2
----
NULL

query I rowsort
SELECT - 59 col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT - 56 + + 99 + + + 68 + 57 * ( - 76 * - CAST( ( 86 ) AS SIGNED ) ) AS col1
----
372663

skipif mysql # not compatible
query I rowsort label-3182
SELECT - 56 + + 99 + + + 68 + 57 * ( - 76 * - CAST ( ( 86 ) AS INTEGER ) ) AS col1
----
372663

query I rowsort
SELECT DISTINCT ( - + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT + + 58 + - COUNT( * ) * - 49 + 88 * 6 AS col1
----
635

skipif mysql # not compatible
query I rowsort label-3184
SELECT + + 58 + - COUNT ( * ) * - 49 + 88 * 6 AS col1
----
635

query I rowsort
SELECT - 51 * 1 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT + NULLIF ( + 8, 25 ) * CAST( + CAST( COUNT( * ) AS SIGNED ) * - NULLIF ( - 14, 63 * + CASE 27 WHEN 39 THEN 96 END ) AS SIGNED ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3186
SELECT + NULLIF ( + 8, 25 ) * CAST ( + CAST ( COUNT ( * ) AS INTEGER ) * - NULLIF ( - 14, 63 * + CASE 27 WHEN 39 THEN 96 END ) AS INTEGER ) AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT - 65 + - + CASE + 19 WHEN + 69 + NULLIF ( 65, ( NULLIF ( 11, CAST( 79 AS SIGNED ) ) ) - + AVG ( DISTINCT 44 ) ) THEN NULL WHEN - 24 THEN NULL ELSE + 66 END / CASE + 23 WHEN ( - 72 ) THEN 94 * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 65 + - + CASE + 19 WHEN + 69 + NULLIF ( 65, ( NULLIF ( 11, CAST ( 79 AS INTEGER ) ) ) - + AVG ( DISTINCT 44 ) ) THEN NULL WHEN - 24 THEN NULL ELSE + 66 END / CASE + 23 WHEN ( - 72 ) THEN 94 * 19 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT ( + + CAST( + - CAST( - MIN( - 41 ) AS SIGNED ) AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-3188
SELECT ( + + CAST ( + - CAST ( - MIN ( - 41 ) AS INTEGER ) AS INTEGER ) )
----
-41

query I rowsort
SELECT ALL 48 AS col2
----
48

query II rowsort
SELECT 65 col1, 48 col1
----
65
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT( ALL 2 * CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT ( ALL 2 * CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - 20, - 77 + + 5 ) - - 8 * + ( 92 )
----
716

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3193
SELECT + - COUNT( + 46 ) * 3 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT + - COUNT ( + 46 ) * 3 + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT 54, ( - 80 ) AS col1
----
54
-80

query I rowsort
SELECT ALL - ( + - 66 ) AS col0
----
66

query II rowsort
SELECT + + 21, 82 + + 47 AS col1
----
21
129

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT + - 31 DIV ( + + ( - 3 ) ) * 18 col2
----
180

skipif mysql # not compatible
query I rowsort label-3197
SELECT + - 31 / ( + + ( - 3 ) ) * 18 col2
----
180

query I rowsort
SELECT ALL 54 * 63 AS col2
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT + COUNT( * ) * 82 + - 94
----
-12

skipif mysql # not compatible
query I rowsort label-3199
SELECT + COUNT ( * ) * 82 + - 94
----
-12

query I rowsort
SELECT ALL 93 * + 33
----
3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT - 76 * + 1 + + - 52 + - CAST( NULL AS SIGNED ) * 42 * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT - 76 * + 1 + + - 52 + - CAST ( NULL AS INTEGER ) * 42 * - 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT + 81 DIV - + NULLIF ( 71, 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3202
SELECT + 81 / - + NULLIF ( 71, 39 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT - 50 DIV - + 43
----
1

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 50 / - + 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + COUNT( ALL - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-3204
SELECT + COUNT ( ALL - 47 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3205
SELECT + 94, COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-3205
SELECT + 94, COUNT ( * ) AS col0
----
94
1

query I rowsort
SELECT + + 36 col2
----
36

query I rowsort
SELECT ALL + 83 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL CAST( 20 AS SIGNED ) * + + COUNT( * ) + - 97 + + 50 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL CAST ( 20 AS INTEGER ) * + + COUNT ( * ) + - 97 + + 50 AS col0
----
-27

query I rowsort
SELECT ( - 42 ) AS col1
----
-42

query I rowsort
SELECT DISTINCT + 96 AS col0
----
96

query I rowsort
SELECT ALL + ( - + 41 ) * 53 * 91 + 23 * + 68
----
-196179

query I rowsort
SELECT ( + 23 ) col1
----
23

query I rowsort
SELECT ALL 7 * - ( - 15 ) + + 38
----
143

query I rowsort
SELECT - 39 + 13 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL NULLIF ( - 18, 22 ) * - CAST( NULL AS SIGNED ) * 7 + 47 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL NULLIF ( - 18, 22 ) * - CAST ( NULL AS INTEGER ) * 7 + 47 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT CASE - + 38 WHEN - AVG ( 30 ) THEN COUNT( * ) + + COALESCE ( - 82, - 35 + 26 ) * 14 ELSE - 54 END AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3216
SELECT CASE - + 38 WHEN - AVG ( 30 ) THEN COUNT ( * ) + + COALESCE ( - 82, - 35 + 26 ) * 14 ELSE - 54 END AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT + CAST( + + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3217
SELECT + CAST ( + + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT - CAST( NULL AS SIGNED ) + + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT - CAST ( NULL AS INTEGER ) + + - 83 AS col0
----
NULL

query I rowsort
SELECT + 50 * + + 49 + - 32 AS col1
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT 30 * - CAST( NULL AS SIGNED ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT 30 * - CAST ( NULL AS INTEGER ) + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - 9 - + + COALESCE ( - 14, + MIN( DISTINCT + 65 ) + - MIN( 74 ) ) * - ( 77 ) AS col1
----
-1087

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 9 - + + COALESCE ( - 14, + MIN ( DISTINCT + 65 ) + - MIN ( 74 ) ) * - ( 77 ) AS col1
----
-1087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3222
SELECT COALESCE ( COUNT( * ), 81 DIV - 16, - 0 * + CAST( + 35 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3222
SELECT COALESCE ( COUNT ( * ), 81 / - 16, - 0 * + CAST ( + 35 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT ALL + COUNT( * ) * + - 40, + 27 * + 24 * 25 AS col2
----
-40
16200

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL + COUNT ( * ) * + - 40, + 27 * + 24 * 25 AS col2
----
-40
16200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT - CAST( COUNT( - CAST( + 32 AS SIGNED ) ) AS SIGNED ) + + 24 col2
----
23

skipif mysql # not compatible
query I rowsort label-3224
SELECT - CAST ( COUNT ( - CAST ( + 32 AS INTEGER ) ) AS INTEGER ) + + 24 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 4 * + ( 62 )
----
-248

query I rowsort
SELECT - 50 + 89
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL 30 * - + 65 - + CAST( + 60 AS SIGNED )
----
-2010

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL 30 * - + 65 - + CAST ( + 60 AS INTEGER )
----
-2010

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - MAX( - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3229
SELECT - MAX ( - 42 )
----
42

query I rowsort
SELECT - 96 + - ( + 72 ) * - - 43
----
-3192

query I rowsort
SELECT - - 70 * + 6
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT ALL - + COALESCE ( 68, - + 16 ) DIV + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - + COALESCE ( 68, - + 16 ) / + COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT + + 95 * 7 AS col2
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - - MAX( ALL + 92 ) + + 30
----
122

skipif mysql # not compatible
query I rowsort label-3234
SELECT - - MAX ( ALL + 92 ) + + 30
----
122

query I rowsort
SELECT DISTINCT 37 col0
----
37

query I rowsort
SELECT DISTINCT 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL - 40 * - CAST( + 65 AS SIGNED )
----
2600

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - 40 * - CAST ( + 65 AS INTEGER )
----
2600

query I rowsort
SELECT 59 * - 6 + + 49 * - - 23
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL COUNT( 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL COUNT ( 88 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 48 * 79 / - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 48 * 79 / - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 38 * + + 82 + 39 col1
----
3155

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + COUNT( * ) + - + ( + 94 ) * - - 18
----
-1691

skipif mysql # not compatible
query I rowsort label-3242
SELECT + COUNT ( * ) + - + ( + 94 ) * - - 18
----
-1691

query I rowsort
SELECT ALL - 88 + - 42 AS col1
----
-130

query I rowsort
SELECT + NULLIF ( 99, + 41 ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT 25 DIV - 86 - + ( - ( 9 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3245
SELECT 25 / - 86 - + ( - ( 9 ) ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT COALESCE ( - 1, + COALESCE ( + - ( 84 ), - 99 ) + - 0, + 80 ) + - 19 DIV - 2 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT COALESCE ( - 1, + COALESCE ( + - ( 84 ), - 99 ) + - 0, + 80 ) + - 19 / - 2 AS col0
----
8

query I rowsort
SELECT DISTINCT - - 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + COUNT( * ) + + + ( - 72 ) + + 60 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + COUNT ( * ) + + + ( - 72 ) + + 60 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3249
SELECT ALL - NULLIF ( + 52, 73 ) + + 30 - CAST( 8 AS SIGNED ) DIV 20
----
-22

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL - NULLIF ( + 52, 73 ) + + 30 - CAST ( 8 AS INTEGER ) / 20
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT 11 + + + 40 DIV + + 69 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT 11 + + + 40 / + + 69 AS col2
----
11

query I rowsort
SELECT ALL 4 * 56 AS col2
----
224

query I rowsort
SELECT + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT 60 * + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3253
SELECT 60 * + COUNT ( * ) AS col0
----
60

query I rowsort
SELECT DISTINCT 39 * - - 9
----
351

query I rowsort
SELECT ( 91 ) * + 96
----
8736

query I rowsort
SELECT 8 * - - 42 * 53
----
17808

query I rowsort
SELECT + 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT COUNT( + 88 ) * - + 98 + - 46
----
-144

skipif mysql # not compatible
query I rowsort label-3258
SELECT COUNT ( + 88 ) * - + 98 + - 46
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT 80 col2, - COUNT( * ) AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-3259
SELECT 80 col2, - COUNT ( * ) AS col1
----
80
-1

query I rowsort
SELECT ALL 62 * + 45
----
2790

query I rowsort
SELECT DISTINCT 97 - - 0 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3262
SELECT ALL 32 - + NULLIF ( - CAST( NULL AS SIGNED ), + - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL 32 - + NULLIF ( - CAST ( NULL AS INTEGER ), + - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT 85 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT 85 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 20 * + ( + 95 ) AS col0, 71 AS col1
----
1900
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3265
SELECT CASE + 69 WHEN CAST( + ( - COUNT( * ) ) AS DECIMAL ) / 54 + 83 THEN NULL WHEN 92 THEN - 97 END - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT CASE + 69 WHEN CAST ( + ( - COUNT ( * ) ) AS REAL ) / 54 + 83 THEN NULL WHEN 92 THEN - 97 END - - 94
----
NULL

query I rowsort
SELECT ALL 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL - COUNT( * ) * - 89 + - 70 - + 37 - 17 * 63
----
-1089

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - COUNT ( * ) * - 89 + - 70 - + 37 - 17 * 63
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT COUNT ( * ) - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT NULLIF ( - 49, COUNT( * ) * - ( - 74 ) * 84 ) * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3269
SELECT NULLIF ( - 49, COUNT ( * ) * - ( - 74 ) * 84 ) * - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT 35 * 22 AS col0
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + COALESCE ( - + 44, 99 * - COUNT( * ) * 12 + + 26, 68, 4 * 64 ) + - 7 * 12 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-3271
SELECT + COALESCE ( - + 44, 99 * - COUNT ( * ) * 12 + + 26, 68, 4 * 64 ) + - 7 * 12 AS col2
----
-128

query I rowsort
SELECT DISTINCT - 91 * - - 56
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT SUM( ALL + + 70 ) + - 61 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3273
SELECT SUM ( ALL + + 70 ) + - 61 AS col0
----
9

query I rowsort
SELECT ALL 30 * - 3
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT 27 DIV + - COALESCE ( + + NULLIF ( + 96, 25 ), + 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT 27 / + - COALESCE ( + + NULLIF ( + 96, 25 ), + 24 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT ALL - NULLIF ( + 44, - COUNT( * ) ) AS col2, 29 + + 74
----
-44
103

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL - NULLIF ( + 44, - COUNT ( * ) ) AS col2, 29 + + 74
----
-44
103

query I rowsort
SELECT DISTINCT - 42 * - 13
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL - + 47 + + 77 + - - COUNT( * ) * - 32 * - + 84 AS col2
----
2718

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - + 47 + + 77 + - - COUNT ( * ) * - 32 * - + 84 AS col2
----
2718

query I rowsort
SELECT - 96 - 58
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT + 5 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 5 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT 66 + - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3281
SELECT 66 + - - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ALL + - 17 + - - 31 DIV 86
----
-17

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + - 17 + - - 31 / 86
----
-17

query I rowsort
SELECT 12 AS col0
----
12

query I rowsort
SELECT DISTINCT + - 4 + - 16 col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3285
SELECT DISTINCT + - 88 DIV - + 42 + COUNT( * ) + - 70 * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + - 88 / - + 42 + COUNT ( * ) + - 70 * COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - - COUNT( * ) + - COUNT( * ) * + 6 * 77 + 58
----
-403

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) * + 6 * 77 + 58
----
-403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN - - 73 THEN - ( - 44 ) + + 22 WHEN CASE - 73 WHEN + 99 + 45 * + 73 THEN NULL ELSE + 75 END + 16 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN - - 73 THEN - ( - 44 ) + + 22 WHEN CASE - 73 WHEN + 99 + 45 * + 73 THEN NULL ELSE + 75 END + 16 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT + 72 * COUNT( * ) + - 16 + + 31 * SUM( 87 )
----
2753

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + 72 * COUNT ( * ) + - 16 + + 31 * SUM ( 87 )
----
2753

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT 80 * COUNT( * ) AS col2, + 43 * - 39 AS col2
----
80
-1677

skipif mysql # not compatible
query II rowsort label-3289
SELECT 80 * COUNT ( * ) AS col2, + 43 * - 39 AS col2
----
80
-1677

query I rowsort
SELECT ALL - ( + - 95 )
----
95

query I rowsort
SELECT DISTINCT - 21 * 76
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT 69 + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3292
SELECT 69 + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT COUNT( + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-3293
SELECT COUNT ( + 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT COUNT( + 93 ) + + 22 * + + 33 col2
----
727

skipif mysql # not compatible
query I rowsort label-3294
SELECT COUNT ( + 93 ) + + 22 * + + 33 col2
----
727

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + 8 * ( 20 ) - 42 - + - 80 - + COUNT( * ) * 9 * + COUNT( * ) AS col0
----
189

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + 8 * ( 20 ) - 42 - + - 80 - + COUNT ( * ) * 9 * + COUNT ( * ) AS col0
----
189

query I rowsort
SELECT DISTINCT + 49 - - 52 col1
----
101

query I rowsort
SELECT + 96 AS col0
----
96

query I rowsort
SELECT DISTINCT - COALESCE ( 44, - 62 )
----
-44

query I rowsort
SELECT ALL - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( * ) + + + 66 + + COUNT( * ) + - 49 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( * ) + + + 66 + + COUNT ( * ) + - 49 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT 85 DIV ( + - 36 ) DIV + - 58 + 41 * 96 - + 12
----
3924

skipif mysql # not compatible
query I rowsort label-3301
SELECT 85 / ( + - 36 ) / + - 58 + 41 * 96 - + 12
----
3924

query I rowsort
SELECT + 6 col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3303
SELECT 68 * + 1 + + COALESCE ( + - ( 68 ), NULLIF ( - COALESCE ( - CASE - 58 WHEN + 12 THEN NULL WHEN - 29 THEN + 38 ELSE NULLIF ( + CASE - 7 WHEN 35 - 32 * + 59 THEN + 95 * ( 62 * 47 ) WHEN 15 * CAST( ( - ( + 58 ) ) * + 10 AS SIGNED ) THEN 30 END, - MAX( ALL + 42 ) - + 38 / + COUNT( * ) ) + - 89 END, + 21 ), - 90 ), 80 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT 68 * + 1 + + COALESCE ( + - ( 68 ), NULLIF ( - COALESCE ( - CASE - 58 WHEN + 12 THEN NULL WHEN - 29 THEN + 38 ELSE NULLIF ( + CASE - 7 WHEN 35 - 32 * + 59 THEN + 95 * ( 62 * 47 ) WHEN 15 * CAST ( ( - ( + 58 ) ) * + 10 AS INTEGER ) THEN 30 END, - MAX ( ALL + 42 ) - + 38 / + COUNT ( * ) ) + - 89 END, + 21 ), - 90 ), 80 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL CASE 11 WHEN + 15 THEN + + ( - - 13 ) / - 29 * + COUNT( * ) WHEN 32 THEN - 98 * + 3 END * MAX( 27 * + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL CASE 11 WHEN + 15 THEN + + ( - - 13 ) / - 29 * + COUNT ( * ) WHEN 32 THEN - 98 * + 3 END * MAX ( 27 * + 59 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT - ( - + CASE + + COUNT( * ) WHEN + 78 THEN NULL WHEN - ( CAST( NULL AS SIGNED ) ) / 31 THEN 81 * + 14 WHEN 44 THEN NULL ELSE NULL END ) * - COUNT( * ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT - ( - + CASE + + COUNT ( * ) WHEN + 78 THEN NULL WHEN - ( CAST ( NULL AS INTEGER ) ) / 31 THEN 81 * + 14 WHEN 44 THEN NULL ELSE NULL END ) * - COUNT ( * ) - 34
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3306
SELECT + 67 + + 64 AS col0, 12 DIV - 63
----
131
0

skipif mysql # not compatible
query II rowsort label-3306
SELECT + 67 + + 64 AS col0, 12 / - 63
----
131
0

query I rowsort
SELECT ALL + - 70 AS col2
----
-70

query I rowsort
SELECT + + 68 * + - 50 * - 82 * + + COALESCE ( + + 44, - ( - 55 ), + 5 )
----
12267200

query I rowsort
SELECT DISTINCT + 62 * - 14 + + 16 - - 25
----
-827

query II rowsort
SELECT DISTINCT 19 * + 61, - 54 * + - 89 col2
----
1159
4806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT DISTINCT - CAST( + CASE + 61 WHEN + 98 THEN NULL WHEN + - 32 THEN NULL ELSE - 57 END AS SIGNED ) + + 90
----
147

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - CAST ( + CASE + 61 WHEN + 98 THEN NULL WHEN + - 32 THEN NULL ELSE - 57 END AS INTEGER ) + + 90
----
147

query I rowsort
SELECT ALL - + 94 + - 3 + + ( 38 ) * - 40 AS col1
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - 86 * + + ( COUNT( * ) ) + - + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 86 * + + ( COUNT ( * ) ) + - + COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3314
SELECT + - CAST( NULL AS DECIMAL ) + + 24 AS col2, - 2 col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-3314
SELECT + - CAST ( NULL AS REAL ) + + 24 AS col2, - 2 col1
----
NULL
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT 96 AS col0, - NULLIF ( + COUNT( * ), 66 ) AS col1
----
96
-1

skipif mysql # not compatible
query II rowsort label-3315
SELECT 96 AS col0, - NULLIF ( + COUNT ( * ), 66 ) AS col1
----
96
-1

query I rowsort
SELECT ALL - 88 + - 46 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT + COUNT( * ) + - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + COUNT ( * ) + - 82 AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT + CAST( + 11 AS SIGNED ) + 58
----
69

skipif mysql # not compatible
query I rowsort label-3318
SELECT + CAST ( + 11 AS INTEGER ) + 58
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT + 61 + - NULLIF ( + CAST( - 71 AS SIGNED ), + - CASE + ( 74 ) WHEN - SUM( DISTINCT - 0 ) THEN - ( + 16 ) ELSE NULL END ) col2
----
132

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + 61 + - NULLIF ( + CAST ( - 71 AS INTEGER ), + - CASE + ( 74 ) WHEN - SUM ( DISTINCT - 0 ) THEN - ( + 16 ) ELSE NULL END ) col2
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL + 97 * + 7 AS col2, COUNT( * ) - - 55 AS col0
----
679
56

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL + 97 * + 7 AS col2, COUNT ( * ) - - 55 AS col0
----
679
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT + COUNT( * ), COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3321
SELECT + COUNT ( * ), COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL 44 + - - COUNT( ALL - 80 )
----
45

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL 44 + - - COUNT ( ALL - 80 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT DISTINCT 48 * + + 52 AS col1, 16 + + ( COUNT( 76 ) ) + NULLIF ( - 78 + - 15 * COUNT( * ), 83 ) * 85
----
2496
-7888

skipif mysql # not compatible
query II rowsort label-3323
SELECT DISTINCT 48 * + + 52 AS col1, 16 + + ( COUNT ( 76 ) ) + NULLIF ( - 78 + - 15 * COUNT ( * ), 83 ) * 85
----
2496
-7888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT - - 0 + - 84 + + - CAST( - COUNT( * ) AS SIGNED ) * + CASE - COUNT( * ) WHEN CAST( 77 AS SIGNED ) THEN - 12 END + - 61 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT - - 0 + - 84 + + - CAST ( - COUNT ( * ) AS INTEGER ) * + CASE - COUNT ( * ) WHEN CAST ( 77 AS INTEGER ) THEN - 12 END + - 61 / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL - NULLIF ( + 92, - 47 ) * - COUNT( * ) + - 0 * - 51 + - 48
----
44

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - NULLIF ( + 92, - 47 ) * - COUNT ( * ) + - 0 * - 51 + - 48
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + CASE - 65 WHEN NULLIF ( + + CASE 60 WHEN 36 * - 74 + 23 THEN NULL ELSE - 76 END, ( MAX( ALL - 76 ) ) + 22 ) * - 51 THEN 22 * + 41 + - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT + CASE - 65 WHEN NULLIF ( + + CASE 60 WHEN 36 * - 74 + 23 THEN NULL ELSE - 76 END, ( MAX ( ALL - 76 ) ) + 22 ) * - 51 THEN 22 * + 41 + - 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT MAX( DISTINCT - - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT MAX ( DISTINCT - - 15 ) AS col0
----
15

query I rowsort
SELECT + CASE 16 WHEN 32 THEN NULL ELSE 5 * - - 28 + - 82 END * + ( - 19 ) AS col0
----
-1102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - 71 * - 77 AS col1
----
5467

skipif mysql # not compatible
query I rowsort label-3329
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - 71 * - 77 AS col1
----
5467

query I rowsort
SELECT DISTINCT + 37 AS col2
----
37

query I rowsort
SELECT + 30 col1
----
30

query I rowsort
SELECT ALL + 14 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT - CAST( - 60 AS SIGNED ) * + 9 AS col0
----
540

skipif mysql # not compatible
query I rowsort label-3333
SELECT - CAST ( - 60 AS INTEGER ) * + 9 AS col0
----
540

query I rowsort
SELECT DISTINCT + 27
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-3335
SELECT DISTINCT + 63 DIV 4 DIV 56 AS col0, 82 AS col2
----
0
82

skipif mysql # not compatible
query II rowsort label-3335
SELECT DISTINCT + 63 / 4 / 56 AS col0, 82 AS col2
----
0
82

query I rowsort
SELECT ( + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT ALL + ( + 74 ) AS col0, MAX( + ( + 91 ) ) AS col0
----
74
91

skipif mysql # not compatible
query II rowsort label-3337
SELECT ALL + ( + 74 ) AS col0, MAX ( + ( + 91 ) ) AS col0
----
74
91

query I rowsort
SELECT + 99 AS col0
----
99

query I rowsort
SELECT - CASE - - ( - + 19 ) WHEN - 29 THEN + - 1 ELSE NULL END * 7 + - 84 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT COALESCE ( 61, 99 - - CAST( + 53 AS SIGNED ), + - 6 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3340
SELECT COALESCE ( 61, 99 - - CAST ( + 53 AS INTEGER ), + - 6 ) AS col0
----
61

query I rowsort
SELECT ALL + 73 * 15 AS col0
----
1095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT COALESCE ( + + ( + ( - + 57 ) ), - 47 + MIN( - - 9 ) DIV - COUNT( * ), - ( + 1 ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-3342
SELECT COALESCE ( + + ( + ( - + 57 ) ), - 47 + MIN ( - - 9 ) / - COUNT ( * ), - ( + 1 ) ) col2
----
-57

query I rowsort
SELECT ALL + 75
----
75

query II rowsort
SELECT - 67 * 13 AS col1, + 71 * - 48
----
-871
-3408

query I rowsort
SELECT ALL - 61 * + + 36 + + + ( + 28 )
----
-2168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3346
SELECT DISTINCT + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL + COUNT( - 34 ) * - 42 + - COALESCE ( 15, - 82 ) * + 19 - + 15
----
-342

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + COUNT ( - 34 ) * - 42 + - COALESCE ( 15, - 82 ) * + 19 - + 15
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT + - COUNT( ALL 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + - COUNT ( ALL 70 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT - + 78 + - COUNT( * ) - CAST( - 85 AS SIGNED ) * ( + 27 ) - - - 89
----
2127

skipif mysql # not compatible
query I rowsort label-3349
SELECT - + 78 + - COUNT ( * ) - CAST ( - 85 AS INTEGER ) * ( + 27 ) - - - 89
----
2127

query I rowsort
SELECT ALL + ( + 63 ) * 11 + - 25
----
668

query I rowsort
SELECT - COALESCE ( - 39, 67 ) - 65
----
-26

query I rowsort
SELECT ALL - 23 AS col1
----
-23

query I rowsort
SELECT ALL + - 71 + 27 + 98 * 75
----
7306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT DISTINCT 93 + - + 94 + - 6, 32 + COUNT( * ) col2
----
-7
33

skipif mysql # not compatible
query II rowsort label-3355
SELECT DISTINCT 93 + - + 94 + - 6, 32 + COUNT ( * ) col2
----
-7
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT + + 71 - + - 3 DIV 6 * - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3356
SELECT + + 71 - + - 3 / 6 * - + COUNT ( * )
----
71

query I rowsort
SELECT DISTINCT - 64 AS col2
----
-64

query I rowsort
SELECT + 14 AS col2
----
14

query I rowsort
SELECT - + 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT - 69 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - 69 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 80 col1, + 75 * 73 AS col1
----
80
5475

query I rowsort
SELECT ALL 45 - - 3
----
48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3363
SELECT - CAST( NULL AS DECIMAL ) AS col0, CAST( + 16 AS SIGNED ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-3363
SELECT - CAST ( NULL AS REAL ) AS col0, CAST ( + 16 AS INTEGER ) AS col1
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT + CAST( NULL AS SIGNED ) * + + 73 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT + CAST ( NULL AS INTEGER ) * + + 73 * 34
----
NULL

query II rowsort
SELECT DISTINCT + 72, + 15 AS col2
----
72
15

query I rowsort
SELECT 77 * + 98 * + 95 * - + 30 + COALESCE ( + 15, + - 18 ) AS col0
----
-21506085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3367
SELECT + CAST( + 75 AS SIGNED ) DIV + MAX( ALL + - 65 ), 65 + 69 AS col0
----
-1
134

skipif mysql # not compatible
query II rowsort label-3367
SELECT + CAST ( + 75 AS INTEGER ) / + MAX ( ALL + - 65 ), 65 + 69 AS col0
----
-1
134

query I rowsort
SELECT - 3 * - + 22 AS col2
----
66

query I rowsort
SELECT ALL + CASE - + 99 WHEN 80 * - + 97 + - 73 + 23 THEN + 8 ELSE - - 53 * + 3 END
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT + 58 DIV + + NULLIF ( - - 79, + 75 * - - 54 * + - ( - 70 ) DIV - ( - SUM( ALL 86 ) ) - 49 + ( ( 81 ) + 53 ) ) * - 25 + 73 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT + 58 / + + NULLIF ( - - 79, + 75 * - - 54 * + - ( - 70 ) / - ( - SUM ( ALL 86 ) ) - 49 + ( ( 81 ) + 53 ) ) * - 25 + 73 / 62 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3371
SELECT ALL - COALESCE ( ( + 45 ), 20, - + CAST( NULL AS SIGNED ) ) DIV - ( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - COALESCE ( ( + 45 ), 20, - + CAST ( NULL AS INTEGER ) ) / - ( - + 88 )
----
0

query I rowsort
SELECT 78 * + 52 + - 68
----
3988

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL 73 + - - 34 - COUNT( * ) * + - ( COUNT( * ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL 73 + - - 34 - COUNT ( * ) * + - ( COUNT ( * ) ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT DISTINCT - 52, - 40 + SUM( 78 ) AS col2
----
-52
38

skipif mysql # not compatible
query II rowsort label-3374
SELECT DISTINCT - 52, - 40 + SUM ( 78 ) AS col2
----
-52
38

query I rowsort
SELECT ALL + NULLIF ( 42, + 78 + - 82 * + + 8 ) + - 34 + + - 79 + 32 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - 14 * - 43 * - COUNT( * ) + ( - + 90 ) * 24 col1
----
-2762

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 14 * - 43 * - COUNT ( * ) + ( - + 90 ) * 24 col1
----
-2762

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL - 14 + - - COUNT( + + 57 ) * - + 79 col0
----
-93

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - 14 + - - COUNT ( + + 57 ) * - + 79 col0
----
-93

query I rowsort
SELECT ALL - - 75 AS col2
----
75

query I rowsort
SELECT 82 * - - 78
----
6396

query I rowsort
SELECT - CASE - 72 WHEN 44 THEN + - 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3381
SELECT SUM( + + 70 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT SUM ( + + 70 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 21 + + - 59 AS col2
----
-80

query I rowsort
SELECT DISTINCT + 63 * + 35
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT + COUNT( * ) * + ( ( + MIN( 94 ) ) ) + - - 88 + - 30 - + 84 DIV 1 * - NULLIF ( - 76 + 2, - 15 ) AS col1
----
-6064

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( * ) * + ( ( + MIN ( 94 ) ) ) + - - 88 + - 30 - + 84 / 1 * - NULLIF ( - 76 + 2, - 15 ) AS col1
----
-6064

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + 16 * COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3385
SELECT + 16 * COUNT ( * ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL - CAST( + CASE + - 32 WHEN COUNT( * ) THEN + + 49 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - CAST ( + CASE + - 32 WHEN COUNT ( * ) THEN + + 49 ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT ALL - + 59 AS col2, - 9 + + 95 * + COUNT( - 77 ) AS col0
----
-59
86

skipif mysql # not compatible
query II rowsort label-3387
SELECT ALL - + 59 AS col2, - 9 + + 95 * + COUNT ( - 77 ) AS col0
----
-59
86

query I rowsort
SELECT DISTINCT - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - COUNT( - + 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3389
SELECT - COUNT ( - + 94 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT ALL CAST( - NULLIF ( - CAST( NULL AS SIGNED ), 59 * - 50 ) AS SIGNED ) - 53 * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL CAST ( - NULLIF ( - CAST ( NULL AS INTEGER ), 59 * - 50 ) AS INTEGER ) - 53 * - 5 AS col0
----
NULL

query I rowsort
SELECT 28 * + - 18 AS col1
----
-504

query I rowsort
SELECT ALL - 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT ALL COALESCE ( - 23, + - CAST( - 14 AS SIGNED ) * - COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL COALESCE ( - 23, + - CAST ( - 14 AS INTEGER ) * - COUNT ( * ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT DISTINCT - - 68 DIV NULLIF ( + - 26, - - 70 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - - 68 / NULLIF ( + - 26, - - 70 ) col1
----
-2

query I rowsort
SELECT - + 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL - COUNT( * ) - - NULLIF ( - - 88, - CASE - - COUNT( * ) WHEN + 80 * - 75 + + 85 + 31 THEN - 37 WHEN 33 THEN NULL WHEN 79 + - COALESCE ( 22, - MIN( 76 ) * 71 ) THEN - 76 ELSE NULL END ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - COUNT ( * ) - - NULLIF ( - - 88, - CASE - - COUNT ( * ) WHEN + 80 * - 75 + + 85 + 31 THEN - 37 WHEN 33 THEN NULL WHEN 79 + - COALESCE ( 22, - MIN ( 76 ) * 71 ) THEN - 76 ELSE NULL END ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 7 * - MAX( + 11 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3397
SELECT 7 * - MAX ( + 11 ) AS col2
----
-77

query I rowsort
SELECT 51 * - - 38
----
1938

query I rowsort
SELECT - + 66 AS col0
----
-66

query I rowsort
SELECT ALL - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - + MAX( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-3401
SELECT - + MAX ( 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + COUNT( 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3402
SELECT + COUNT ( 38 ) AS col0
----
1

query I rowsort
SELECT + 41 + 86 AS col1
----
127

query II rowsort
SELECT + 20 AS col1, - 48 AS col2
----
20
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - COUNT( ALL + 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - COUNT ( ALL + 52 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT 79 + + 81 AS col1, COALESCE ( - 87, - ( - COUNT( * ) ) )
----
160
-87

skipif mysql # not compatible
query II rowsort label-3406
SELECT 79 + + 81 AS col1, COALESCE ( - 87, - ( - COUNT ( * ) ) )
----
160
-87

query I rowsort
SELECT ALL - 71 * ( + 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 63 * ( + 65 ) col0
----
-4095

query I rowsort
SELECT ALL 74 col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3410
SELECT ALL 28 DIV NULLIF ( - COUNT( ALL + - 97 ), + + 31 )
----
-28

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL 28 / NULLIF ( - COUNT ( ALL + - 97 ), + + 31 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT 98 DIV + 8 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3411
SELECT 98 / + 8 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT 5 + + - MIN( 9 ) * - 9
----
86

skipif mysql # not compatible
query I rowsort label-3412
SELECT 5 + + - MIN ( 9 ) * - 9
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ( - 23 ) + + COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3413
SELECT ( - 23 ) + + COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT DISTINCT 42 AS col0
----
42

query I rowsort
SELECT ( + 94 ) * 32 AS col2
----
3008

onlyif mysql # DIV for integer division: 
query II rowsort label-3416
SELECT 39 + 21 DIV - - 51 * - - 76 AS col0, + 74 AS col2
----
39
74

skipif mysql # not compatible
query II rowsort label-3416
SELECT 39 + 21 / - - 51 * - - 76 AS col0, + 74 AS col2
----
39
74

query I rowsort
SELECT ALL - 78 col0
----
-78

query I rowsort
SELECT DISTINCT 20 + 8
----
28

query I rowsort
SELECT DISTINCT 32 + - - 71 * - 53 - - 35 AS col2
----
-3696

query I rowsort
SELECT DISTINCT - 55 AS col1
----
-55

query I rowsort
SELECT ALL - NULLIF ( - - 10, 93 * 8 ) + 44 + 12 * - 30 * + 18
----
-6446

query I rowsort
SELECT ALL 19 + 19
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ( COUNT( * ) ) - - MAX( + CASE WHEN NULL IS NOT NULL THEN 22 ELSE - 44 - - 20 * 23 END ) AS col2
----
417

skipif mysql # not compatible
query I rowsort label-3424
SELECT ( COUNT ( * ) ) - - MAX ( + CASE WHEN NULL IS NOT NULL THEN 22 ELSE - 44 - - 20 * 23 END ) AS col2
----
417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT + CAST( + + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3425
SELECT + CAST ( + + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3426
SELECT 73 DIV COUNT( * ) + - 73 + - + 86 DIV + + 14 + - + 35 * 81 * 15 AS col0
----
-42531

skipif mysql # not compatible
query I rowsort label-3426
SELECT 73 / COUNT ( * ) + - 73 + - + 86 / + + 14 + - + 35 * 81 * 15 AS col0
----
-42531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL - CASE + + 96 WHEN + + 4 + + 28 / + ( + CAST( + 36 AS SIGNED ) ) THEN - - CAST( NULL AS SIGNED ) * + + 36 WHEN - 73 * 66 THEN - 31 WHEN 44 THEN NULL ELSE 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - CASE + + 96 WHEN + + 4 + + 28 / + ( + CAST ( + 36 AS INTEGER ) ) THEN - - CAST ( NULL AS INTEGER ) * + + 36 WHEN - 73 * 66 THEN - 31 WHEN 44 THEN NULL ELSE 56 END
----
-56

query I rowsort
SELECT + + ( 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT DISTINCT - + CAST( 38 AS SIGNED ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - + CAST ( 38 AS INTEGER ) AS col1
----
-38

query I rowsort
SELECT DISTINCT - 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - COUNT( * ) - - - COUNT( * ) * 24 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) * 24 AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT ALL + 99 DIV - - 87 + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL + 99 / - - 87 + - 22
----
-21

query I rowsort
SELECT DISTINCT - + 54 * - - 18
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + NULLIF ( - 82, - - 42 + 36 - + 97 + - 65 * + 19 * CASE - COUNT( * ) WHEN 58 THEN + 37 WHEN NULLIF ( 2, + ( + CASE COALESCE ( + COALESCE ( + 18, SUM( ALL 29 ), - SUM( + ( - 50 ) ) ), 38, MAX( + 64 ) ) WHEN MIN( + 31 ) THEN - 99 * - 7 WHEN - ( - ( - 22 ) ) THEN NULL END ) ) THEN NULL ELSE NULL END / + 94 )
----
-82

skipif mysql # not compatible
query I rowsort label-3434
SELECT + NULLIF ( - 82, - - 42 + 36 - + 97 + - 65 * + 19 * CASE - COUNT ( * ) WHEN 58 THEN + 37 WHEN NULLIF ( 2, + ( + CASE COALESCE ( + COALESCE ( + 18, SUM ( ALL 29 ), - SUM ( + ( - 50 ) ) ), 38, MAX ( + 64 ) ) WHEN MIN ( + 31 ) THEN - 99 * - 7 WHEN - ( - ( - 22 ) ) THEN NULL END ) ) THEN NULL ELSE NULL END / + 94 )
----
-82

query I rowsort
SELECT 45 + + - 45 * - - 50
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT - - COUNT( * ) * - - 53 - - 23 * + - 75 col1
----
-1672

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - - COUNT ( * ) * - - 53 - - 23 * + - 75 col1
----
-1672

query I rowsort
SELECT 22 + 33 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT COUNT( DISTINCT - - 74 ) * + - 36 * - + 9 * + 56
----
18144

skipif mysql # not compatible
query I rowsort label-3438
SELECT COUNT ( DISTINCT - - 74 ) * + - 36 * - + 9 * + 56
----
18144

query I rowsort
SELECT ALL + 9 col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT 12 - - 87 DIV + - ( - - 50 ) + + + 61 * - 61 AS col0
----
-3710

skipif mysql # not compatible
query I rowsort label-3440
SELECT 12 - - 87 / + - ( - - 50 ) + + + 61 * - 61 AS col0
----
-3710

query I rowsort
SELECT ALL - 13 * - 93 + - ( 5 ) AS col1
----
1204

query I rowsort
SELECT 45 * - - 53
----
2385

query I rowsort
SELECT ALL 69 AS col0
----
69

query II rowsort
SELECT DISTINCT 87 * + ( - 75 ) AS col2, + 82 * - + 0 AS col2
----
-6525
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3445
SELECT DISTINCT COUNT( * ), + COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3445
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT MIN( ALL - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT MIN ( ALL - + 4 )
----
-4

query I rowsort
SELECT 79 * 33
----
2607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT 14 * CAST( - 33 AS SIGNED ) * 40 * + - 36 - 46
----
665234

skipif mysql # not compatible
query I rowsort label-3448
SELECT 14 * CAST ( - 33 AS INTEGER ) * 40 * + - 36 - 46
----
665234

query I rowsort
SELECT ALL - 40 + - 48
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL MIN( DISTINCT - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL MIN ( DISTINCT - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT - COUNT( * ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - COUNT ( * ) * - 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT 95 - COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-3452
SELECT 95 - COUNT ( * ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - ( - SUM( DISTINCT 86 ) ) + NULLIF ( + 93, 76 ) - + COUNT( * )
----
178

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - ( - SUM ( DISTINCT 86 ) ) + NULLIF ( + 93, 76 ) - + COUNT ( * )
----
178

query II rowsort
SELECT - 92 * - - 58 * + 24 AS col0, 10 * ( - + 46 )
----
-128064
-460

query I rowsort
SELECT + 97 * - ( - - 72 ) AS col2
----
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL MIN( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL MIN ( DISTINCT - 28 )
----
-28

query I rowsort
SELECT - 68 * 33 * - 8 AS col1
----
17952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT ALL CAST( - + ( 9 ) AS SIGNED ) + + + 1 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL CAST ( - + ( 9 ) AS INTEGER ) + + + 1 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT DISTINCT + CASE 60 WHEN + 67 THEN + - 82 / - + 31 + ( + 23 ) + + CASE WHEN ( - 16 ) >= - CAST( + 82 AS SIGNED ) / - 58 THEN - ( 30 ) * - 92 + MAX( 32 + + 86 ) END / - 86 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + CASE 60 WHEN + 67 THEN + - 82 / - + 31 + ( + 23 ) + + CASE WHEN ( - 16 ) >= - CAST ( + 82 AS INTEGER ) / - 58 THEN - ( 30 ) * - 92 + MAX ( 32 + + 86 ) END / - 86 END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - COUNT( * ) + + - 10 col2
----
-11

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - COUNT ( * ) + + - 10 col2
----
-11

query I rowsort
SELECT + 62 - + 30 col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT 73 DIV + - 69
----
-1

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT 73 / + - 69
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT DISTINCT + ( + 67 ) + - 2 / + SUM( + + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * + + COALESCE ( + 1, - 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + ( + 67 ) + - 2 / + SUM ( + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * + + COALESCE ( + 1, - 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT - 68 * NULLIF ( - + 86, - 46 + - MIN( DISTINCT - - 63 ) * + 9 ) + - - 53 * 77 AS col0
----
9929

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 68 * NULLIF ( - + 86, - 46 + - MIN ( DISTINCT - - 63 ) * + 9 ) + - - 53 * 77 AS col0
----
9929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT + COUNT( * ) DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT + COUNT ( * ) / - 39 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * 72 + 47 + 26 * + CASE 42 WHEN - + 41 + - - 12 + NULLIF ( 54 + ( 45 ), - 66 * - NULLIF ( - 11, COUNT( * ) + 62 * + 49 ) + - 35 ) THEN NULL WHEN - 27 + - 67 THEN + CASE + COUNT( * ) WHEN - 71 + - MIN( ALL + 85 ) * 87 THEN MAX( - 67 ) * 92 WHEN 75 * + 99 THEN NULL ELSE + 14 END * - 71 + 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 72 + 47 + 26 * + CASE 42 WHEN - + 41 + - - 12 + NULLIF ( 54 + ( 45 ), - 66 * - NULLIF ( - 11, COUNT ( * ) + 62 * + 49 ) + - 35 ) THEN NULL WHEN - 27 + - 67 THEN + CASE + COUNT ( * ) WHEN - 71 + - MIN ( ALL + 85 ) * 87 THEN MAX ( - 67 ) * 92 WHEN 75 * + 99 THEN NULL ELSE + 14 END * - 71 + 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - 6 * + COUNT( * ) + + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3467
SELECT - 6 * + COUNT ( * ) + + COUNT ( * ) AS col0
----
-5

query II rowsort
SELECT + 13, + 66 * - 94 + - 10 AS col0
----
13
-6214

query I rowsort
SELECT + 40 * - + 82 AS col0
----
-3280

query I rowsort
SELECT ALL + - ( 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT + COUNT( 53 ) + 73 AS col0, 19
----
74
19

skipif mysql # not compatible
query II rowsort label-3471
SELECT + COUNT ( 53 ) + 73 AS col0, 19
----
74
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL - 95 * + 61 - SUM( ALL + - 49 ) AS col0
----
-5746

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - 95 * + 61 - SUM ( ALL + - 49 ) AS col0
----
-5746

query I rowsort
SELECT ALL + - ( - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT + 25 * + 6 + + 81 - + 21 * - + 2 + + - 57 + COUNT( * ) * - + 51 - - 82 + - + 39 * COUNT( - 35 ) * + 90 col2
----
-3263

skipif mysql # not compatible
query I rowsort label-3474
SELECT + 25 * + 6 + + 81 - + 21 * - + 2 + + - 57 + COUNT ( * ) * - + 51 - - 82 + - + 39 * COUNT ( - 35 ) * + 90 col2
----
-3263

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL 94 * + - 17 * + ( + CASE COUNT( * ) WHEN - - 22 * 29 * - 51 / 99 THEN NULL WHEN - COUNT( * ) THEN + 31 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 94 * + - 17 * + ( + CASE COUNT ( * ) WHEN - - 22 * 29 * - 51 / 99 THEN NULL WHEN - COUNT ( * ) THEN + 31 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + 53 * + + COUNT( * ) + - 92 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + 53 * + + COUNT ( * ) + - 92 AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT + + CAST( NULL AS SIGNED ) * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT + + CAST ( NULL AS INTEGER ) * - - 9
----
NULL

query I rowsort
SELECT + + ( 58 ) AS col0
----
58

query I rowsort
SELECT + - 84 + 79 + CASE - + 14 WHEN + 52 + - 19 THEN + + 63 END
----
NULL

query I rowsort
SELECT - 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - 85 * - 26 + + MAX( + - 71 )
----
2139

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 85 * - 26 + + MAX ( + - 71 )
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT - COUNT( ALL + 15 ) DIV - 68 * + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT - COUNT ( ALL + 15 ) / - 68 * + 24 AS col2
----
0

query I rowsort
SELECT ALL + - 44
----
-44

query I rowsort
SELECT + ( 70 ) * + 71
----
4970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3486
SELECT ALL + COALESCE ( - + 94, 58 * 53 DIV - - 62 * - - 85 - - CASE + - 80 WHEN + COUNT( * ) * COALESCE ( + 55, + 1 * CAST( NULL AS SIGNED ) ) + 66 + 16 THEN NULL WHEN 15 THEN 42 END, COUNT( * ) * + CASE - 27 WHEN SUM( - 55 ) THEN NULL ELSE + 58 END, + 88 ) * 32 AS col1
----
-3008

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + COALESCE ( - + 94, 58 * 53 / - - 62 * - - 85 - - CASE + - 80 WHEN + COUNT ( * ) * COALESCE ( + 55, + 1 * CAST ( NULL AS INTEGER ) ) + 66 + 16 THEN NULL WHEN 15 THEN 42 END, COUNT ( * ) * + CASE - 27 WHEN SUM ( - 55 ) THEN NULL ELSE + 58 END, + 88 ) * 32 AS col1
----
-3008

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT ALL - 26 DIV + + 1 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - 26 / + + 1 AS col1
----
-26

query I rowsort
SELECT - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - - COUNT( 4 ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - - COUNT ( 4 ) * + 82
----
82

query I rowsort
SELECT DISTINCT 58 + - 68
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL COUNT( * ) * + 23
----
23

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( * ) * + 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3492
SELECT + COALESCE ( + - SUM( DISTINCT + + CASE 33 WHEN 15 THEN + - CAST( + 59 AS SIGNED ) * ( + ( - 5 ) ) ELSE - 9 * CASE 82 WHEN + 23 THEN NULL WHEN CAST( + 80 AS SIGNED ) - + ( + 88 ) * 35 THEN NULL WHEN 37 * 33 THEN 73 * 12 END END ), 91 * - 61 - 46 * - 38 ) DIV 61
----
-62

skipif mysql # not compatible
query I rowsort label-3492
SELECT + COALESCE ( + - SUM ( DISTINCT + + CASE 33 WHEN 15 THEN + - CAST ( + 59 AS INTEGER ) * ( + ( - 5 ) ) ELSE - 9 * CASE 82 WHEN + 23 THEN NULL WHEN CAST ( + 80 AS INTEGER ) - + ( + 88 ) * 35 THEN NULL WHEN 37 * 33 THEN 73 * 12 END END ), 91 * - 61 - 46 * - 38 ) / 61
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT - 28 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT - 28 / + 58
----
0

query I rowsort
SELECT - ( - ( + 53 ) ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL - 45 + ( - COALESCE ( - - COUNT( * ), - 16 + - 57 * 66 * + 84, NULLIF ( - 11, - - 97 ), - 17 - 37 * + NULLIF ( 42 * 83 + 58, 10 + MAX( ALL - 50 ) ) ) ) + 33
----
-13

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL - 45 + ( - COALESCE ( - - COUNT ( * ), - 16 + - 57 * 66 * + 84, NULLIF ( - 11, - - 97 ), - 17 - 37 * + NULLIF ( 42 * 83 + 58, 10 + MAX ( ALL - 50 ) ) ) ) + 33
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT + CAST( 50 AS SIGNED ) - 39
----
11

skipif mysql # not compatible
query I rowsort label-3496
SELECT + CAST ( 50 AS INTEGER ) - 39
----
11

query I rowsort
SELECT - 92 + - 26
----
-118

query I rowsort
SELECT ALL 57 * - 69 col1
----
-3933

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT MIN( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT MIN ( - 78 )
----
-78

query I rowsort
SELECT DISTINCT - ( + 24 ) + + 19
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL CASE + 88 WHEN + 92 + ( + 87 ) * + COUNT( * ) THEN + 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL CASE + 88 WHEN + 92 + ( + 87 ) * + COUNT ( * ) THEN + 96 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 28 + - - 54
----
26

query I rowsort
SELECT - 45
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-3504
SELECT ALL - 82 * - CASE 13 WHEN - + COUNT( * ) / 75 THEN COUNT( * ) - - 3 ELSE NULL END / - 81 * + 92 AS col1, + ( - 82 ) AS col2
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-3504
SELECT ALL - 82 * - CASE 13 WHEN - + COUNT ( * ) / 75 THEN COUNT ( * ) - - 3 ELSE NULL END / - 81 * + 92 AS col1, + ( - 82 ) AS col2
----
NULL
-82

query I rowsort
SELECT - 38 + + + 7 + 33
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) + + COUNT( * ) * COUNT( - + 48 ) * 37 * - 68 + + + 48 + - ( + 62 ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * COUNT ( - + 48 ) * 37 * - 68 + + + 48 + - ( + 62 ) + 27
----
NULL

query I rowsort
SELECT ALL ( - + 81 ) AS col2
----
-81

query I rowsort
SELECT - 14 + + 38
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT ALL + ( + 35 ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + ( + 35 ) / 68 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT - 2 DIV + 91 * - NULLIF ( + + ( - 49 ), COALESCE ( 47, 67 * + 68 * 9 * 22 * - ( - 89 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT - 2 / + 91 * - NULLIF ( + + ( - 49 ), COALESCE ( 47, 67 * + 68 * 9 * 22 * - ( - 89 ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-3511
SELECT - 14, + 44 AS col0, - 12 + + COUNT( * ) * + ( 94 ) AS col2
----
-14
44
82

skipif mysql # not compatible
query III rowsort label-3511
SELECT - 14, + 44 AS col0, - 12 + + COUNT ( * ) * + ( 94 ) AS col2
----
-14
44
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ( 29 ) * + COUNT( * ) + + 13 + 50 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3512
SELECT ( 29 ) * + COUNT ( * ) + + 13 + 50 AS col0
----
92

query I rowsort
SELECT ALL + + 37 * + 6 AS col2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT ALL 4 DIV MAX( ALL 97 ) + + SUM( - 34 ) - 40
----
-74

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL 4 / MAX ( ALL 97 ) + + SUM ( - 34 ) - 40
----
-74

query I rowsort
SELECT ALL + - 26 AS col2
----
-26

query I rowsort
SELECT DISTINCT + + 62 * + ( + 53 ) + + + NULLIF ( + 34, ( ( + 97 ) ) + 59 ) AS col2
----
3320

query I rowsort
SELECT + + 4 * - 94 * - - 64
----
-24064

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL - 93 DIV 75
----
-1

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - 93 / 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT CASE - 98 WHEN + ( - - ( 43 ) ) THEN - COUNT( + CAST( NULL AS SIGNED ) ) WHEN + 91 - CASE + + 76 WHEN + + COALESCE ( 40, ( - 78 ) ) THEN NULL ELSE - 45 END THEN 41 ELSE 70 END
----
70

skipif mysql # not compatible
query I rowsort label-3519
SELECT CASE - 98 WHEN + ( - - ( 43 ) ) THEN - COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN + 91 - CASE + + 76 WHEN + + COALESCE ( 40, ( - 78 ) ) THEN NULL ELSE - 45 END THEN 41 ELSE 70 END
----
70

query I rowsort
SELECT - 71 - + 49 AS col0
----
-120

query II rowsort
SELECT DISTINCT + + 10 AS col2, - 74 AS col0
----
10
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT - 84 - - ( - + COUNT( * ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3522
SELECT - 84 - - ( - + COUNT ( * ) ) AS col0
----
-85

query II rowsort
SELECT DISTINCT + 77, 56 AS col1
----
77
56

query II rowsort
SELECT DISTINCT + 64 col1, - NULLIF ( + 35, - ( 44 ) + - 52 ) - - - 13
----
64
-48

query I rowsort
SELECT DISTINCT + + 77
----
77

query I rowsort
SELECT ALL + + 51 AS col2
----
51

query I rowsort
SELECT + - ( - 76 )
----
76

query II rowsort
SELECT ALL + 26 AS col2, 88
----
26
88

query II rowsort
SELECT DISTINCT + 57 AS col0, - 85
----
57
-85

query II rowsort
SELECT ALL + 15 AS col0, 44
----
15
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT + + COUNT( * ) - - + 82
----
83

skipif mysql # not compatible
query I rowsort label-3531
SELECT + + COUNT ( * ) - - + 82
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT ALL + - 17, COUNT( * ) * - 6 * 37 AS col0
----
-17
-222

skipif mysql # not compatible
query II rowsort label-3532
SELECT ALL + - 17, COUNT ( * ) * - 6 * 37 AS col0
----
-17
-222

query I rowsort
SELECT DISTINCT - 47 * - + 29 AS col2
----
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + 87 * - - SUM( + - 7 ) AS col2
----
-609

skipif mysql # not compatible
query I rowsort label-3534
SELECT + 87 * - - SUM ( + - 7 ) AS col2
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL COUNT( * ) + + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL COUNT ( * ) + + 76 AS col2
----
77

query II rowsort
SELECT ALL 69 + - - 41 AS col2, 15 - + - 60 AS col0
----
110
75

query I rowsort
SELECT 98 + + 2 + + 36 AS col1
----
136

query I rowsort
SELECT ( + 77 ) + 39 + 52 * 35
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL MAX( DISTINCT + 78 ) + - - COUNT( * ) * + 2
----
80

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL MAX ( DISTINCT + 78 ) + - - COUNT ( * ) * + 2
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3540
SELECT ALL AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) + + + 14 + + - 3 * - - 6 * 80 + + + 28 / 92 * + 40 - - - 85 * SUM( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS REAL ) ) + + + 14 + + - 3 * - - 6 * 80 + + + 28 / 92 * + 40 - - - 85 * SUM ( 91 )
----
NULL

query I rowsort
SELECT DISTINCT 68 + + + 78 AS col0
----
146

query I rowsort
SELECT ALL + 51 * - 44 AS col0
----
-2244

query II rowsort
SELECT ALL - 96 - 38, 35 AS col1
----
-134
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT 42 + + + COUNT( * ) * - 71
----
-29

skipif mysql # not compatible
query I rowsort label-3544
SELECT 42 + + + COUNT ( * ) * - 71
----
-29

query I rowsort
SELECT ALL 44 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT DISTINCT CAST( - - 33 AS SIGNED ) * ( + - 96 ) + - 85
----
-3253

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT CAST ( - - 33 AS INTEGER ) * ( + - 96 ) + - 85
----
-3253

query I rowsort
SELECT 23 * - ( 51 ) AS col0
----
-1173

query I rowsort
SELECT - 1 col1
----
-1

query I rowsort
SELECT ALL 2 col1
----
2

query I rowsort
SELECT 29 - - 5 AS col1
----
34

query I rowsort
SELECT 27 AS col0
----
27

query I rowsort
SELECT 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT DISTINCT + 79 - + + COUNT( * ) col0, 51 col0
----
78
51

skipif mysql # not compatible
query II rowsort label-3553
SELECT DISTINCT + 79 - + + COUNT ( * ) col0, 51 col0
----
78
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT CAST( + 34 AS SIGNED ) * - 19 col0
----
-646

skipif mysql # not compatible
query I rowsort label-3554
SELECT CAST ( + 34 AS INTEGER ) * - 19 col0
----
-646

query I rowsort
SELECT DISTINCT - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT - COUNT( * ) - 45, MAX( 66 ) + COUNT( * ) AS col2
----
-46
67

skipif mysql # not compatible
query II rowsort label-3556
SELECT - COUNT ( * ) - 45, MAX ( 66 ) + COUNT ( * ) AS col2
----
-46
67

query I rowsort
SELECT ALL - - 76 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT 51 * + CASE - 51 WHEN + 35 + - 5 THEN 18 * 31 - - + 41 - - + 79 WHEN + - 93 THEN NULL END * CASE 95 WHEN 49 * - 42 THEN - 46 WHEN 35 THEN COUNT( * ) - CAST( - CASE + 15 WHEN 57 * 68 THEN 94 WHEN ( 72 ) THEN NULL ELSE - ( - 37 ) END + + 48 * + 46 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT 51 * + CASE - 51 WHEN + 35 + - 5 THEN 18 * 31 - - + 41 - - + 79 WHEN + - 93 THEN NULL END * CASE 95 WHEN 49 * - 42 THEN - 46 WHEN 35 THEN COUNT ( * ) - CAST ( - CASE + 15 WHEN 57 * 68 THEN 94 WHEN ( 72 ) THEN NULL ELSE - ( - 37 ) END + + 48 * + 46 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT - 16 * 75
----
-1200

query I rowsort
SELECT + + 93 * + 66 - 70 + 49 AS col0
----
6117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT + COUNT( - 50 ) + - - 92 - + CAST( + 65 AS SIGNED ) * - 5 AS col1
----
418

skipif mysql # not compatible
query I rowsort label-3561
SELECT + COUNT ( - 50 ) + - - 92 - + CAST ( + 65 AS INTEGER ) * - 5 AS col1
----
418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3562
SELECT ALL - + ( + COUNT( * ) ) AS col2, 27 + COUNT( * ) - - - 74 DIV + - 67
----
-1
29

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL - + ( + COUNT ( * ) ) AS col2, 27 + COUNT ( * ) - - - 74 / + - 67
----
-1
29

query I rowsort
SELECT - 13 * - 32 + + + 99
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL - COUNT( * ) + - 48 + 29
----
-20

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - COUNT ( * ) + - 48 + 29
----
-20

query I rowsort
SELECT DISTINCT - + 40
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3566
SELECT + COUNT( * ) DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT + COUNT ( * ) / 64 AS col1
----
0

query I rowsort
SELECT DISTINCT + - ( 0 ) + + 67
----
67

query I rowsort
SELECT ALL 62 + ( ( - 44 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT - 32 + - - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3569
SELECT - 32 + - - COUNT ( * )
----
-31

query I rowsort
SELECT ALL + 35 + + 80
----
115

query I rowsort
SELECT DISTINCT - - 6 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT - SUM( + 20 ) DIV - - 80 * 54 - - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3572
SELECT - SUM ( + 20 ) / - - 80 * 54 - - + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3573
SELECT 89 + + CASE + - 41 WHEN 26 * + 27 THEN NULL WHEN - 37 * - ( + COALESCE ( - + CASE + 87 WHEN - 84 + CAST( COALESCE ( MAX( 95 ), - 67 * COUNT( * ) ) AS DECIMAL ) / + 99 THEN 82 + + 62 ELSE NULL END, 47 * 37 ) ) + - CAST( - 45 + - 39 * - 86 AS SIGNED ) THEN 60 + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT 89 + + CASE + - 41 WHEN 26 * + 27 THEN NULL WHEN - 37 * - ( + COALESCE ( - + CASE + 87 WHEN - 84 + CAST ( COALESCE ( MAX ( 95 ), - 67 * COUNT ( * ) ) AS REAL ) / + 99 THEN 82 + + 62 ELSE NULL END, 47 * 37 ) ) + - CAST ( - 45 + - 39 * - 86 AS INTEGER ) THEN 60 + 95 END
----
NULL

query I rowsort
SELECT DISTINCT - + 24
----
-24

query I rowsort
SELECT + 66 col1
----
66

query I rowsort
SELECT DISTINCT NULLIF ( + + 12, + 67 ) + - ( - 91 )
----
103

query I rowsort
SELECT DISTINCT - ( 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT COUNT( * ) * 41 col1
----
41

skipif mysql # not compatible
query I rowsort label-3578
SELECT COUNT ( * ) * 41 col1
----
41

query I rowsort
SELECT DISTINCT - 91 AS col2
----
-91

query I rowsort
SELECT DISTINCT + COALESCE ( 57, - 54, + - 27 ) - - 96 col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-3581
SELECT COUNT ( * ) * 40
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3582
SELECT ALL CAST( NULL AS DECIMAL ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL CAST ( NULL AS REAL ) * 80
----
NULL

query II rowsort
SELECT - 44, 5 AS col0
----
-44
5

query II rowsort
SELECT ALL 46 AS col2, + 52 col2
----
46
52

query I rowsort
SELECT 29 + + + 97
----
126

query I rowsort
SELECT ( 48 ) - - - CASE - 21 WHEN - 50 - + + ( COALESCE ( + 92, 78 - + 33 + + 72 / - 19 ) ) THEN NULL ELSE 62 END
----
-14

query I rowsort
SELECT 39 + 17 AS col0
----
56

query II rowsort
SELECT 69 AS col1, 92
----
69
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL 54, - 55 + + - 52 + + MAX( - 52 ) AS col1
----
54
-159

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL 54, - 55 + + - 52 + + MAX ( - 52 ) AS col1
----
54
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT 8 DIV - 52 * ( - 89 ) * - 86 * - + SUM( ALL - - 36 ) + - + 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT 8 / - 52 * ( - 89 ) * - 86 * - + SUM ( ALL - - 36 ) + - + 35 AS col0
----
-35

query I rowsort
SELECT ALL 8 AS col2
----
8

query I rowsort
SELECT 58 * - 2
----
-116

query I rowsort
SELECT ALL - 20 * 60
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT 55 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT 55 / 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT 17 + - - 72 * - - 26 * ( - COUNT( * ) )
----
-1855

skipif mysql # not compatible
query I rowsort label-3595
SELECT 17 + - - 72 * - - 26 * ( - COUNT ( * ) )
----
-1855

query I rowsort
SELECT - 91 - - ( 12 ) / CASE + 69 WHEN - 47 THEN 22 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT - 30 DIV + 64 * + + 55
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT - 30 / + 64 * + + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT + COALESCE ( + 74, - + ( - 41 ) ) + + - ( - COUNT( * ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3598
SELECT + COALESCE ( + 74, - + ( - 41 ) ) + + - ( - COUNT ( * ) ) AS col1
----
75

query I rowsort
SELECT ALL + 65 * + 97 + - - 28 + - + ( 21 ) * + + 98
----
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT - CAST( + + 75 AS SIGNED ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3600
SELECT - CAST ( + + 75 AS INTEGER ) AS col1
----
-75

query I rowsort
SELECT 66 * + 68
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + 14 * + - COUNT( * ) + + + 69 * - 94 AS col2
----
-6500

skipif mysql # not compatible
query I rowsort label-3602
SELECT + 14 * + - COUNT ( * ) + + + 69 * - 94 AS col2
----
-6500

query II rowsort
SELECT DISTINCT 55 AS col2, 16 AS col0
----
55
16

query I rowsort
SELECT - - ( - 53 )
----
-53

query II rowsort
SELECT - + 43 AS col0, + 12
----
-43
12

query I rowsort
SELECT ALL - - 6 AS col0
----
6

query I rowsort
SELECT ALL 65 * - - 30 + - 24 + 26 * - - 82 * - 54
----
-113202

query II rowsort
SELECT - 0, CASE - 40 WHEN - + 9 THEN NULL ELSE 97 END + - 6 AS col2
----
0
91

query I rowsort
SELECT - 34 AS col1
----
-34

query I rowsort
SELECT ALL - 25 col1
----
-25

query I rowsort
SELECT + ( - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT - - 79 * - - ( + ( 92 ) ) + + - COUNT( + 28 ) + - + 37 * - + 85 * 25 + + 88 * + 57 * - 31 * - + 2 + 33
----
396917

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - - 79 * - - ( + ( 92 ) ) + + - COUNT ( + 28 ) + - + 37 * - + 85 * 25 + + 88 * + 57 * - 31 * - + 2 + 33
----
396917

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3613
SELECT ALL + + COALESCE ( + + 49, - COUNT( * ) * 76 ) * + 96 - 70 + + COUNT( * ) + - + 59, 70 + + 28 * + 18 DIV 9 + + 43 AS col2
----
4576
169

skipif mysql # not compatible
query II rowsort label-3613
SELECT ALL + + COALESCE ( + + 49, - COUNT ( * ) * 76 ) * + 96 - 70 + + COUNT ( * ) + - + 59, 70 + + 28 * + 18 / 9 + + 43 AS col2
----
4576
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT + CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-3614
SELECT + CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - 52 * COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3615
SELECT - 52 * COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT DISTINCT - 68 * + 60
----
-4080

query I rowsort
SELECT DISTINCT + ( - + 5 )
----
-5

query I rowsort
SELECT DISTINCT + 94 AS col1
----
94

query I rowsort
SELECT - 21 - + - ( - 15 )
----
-36

query I rowsort
SELECT DISTINCT + 71 AS col0
----
71

query I rowsort
SELECT - 15 * + 46 * - 41 AS col2
----
28290

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT + MAX( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + MAX ( ALL - 48 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3623
SELECT - 62 + + COUNT( * ) DIV 99 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 62 + + COUNT ( * ) / 99 AS col0
----
-62

query I rowsort
SELECT DISTINCT COALESCE ( - 2, + 56 )
----
-2

query I rowsort
SELECT ALL COALESCE ( + 62, + 70 * + 52, 52 )
----
62

query I rowsort
SELECT ALL 2 * - 40 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT ( - MIN( DISTINCT + - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT ( - MIN ( DISTINCT + - 24 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT 49 * + 42 + + + 58 + + ( - CASE WHEN NOT - 76 IS NULL THEN + 34 + 26 - + COUNT( * ) END ) + - 84 AS col0
----
1973

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT 49 * + 42 + + + 58 + + ( - CASE WHEN NOT - 76 IS NULL THEN + 34 + 26 - + COUNT ( * ) END ) + - 84 AS col0
----
1973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT + CAST( 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-3629
SELECT + CAST ( 82 AS INTEGER )
----
82

query II rowsort
SELECT + 37 + + + 95 AS col1, 65 AS col1
----
132
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT NULLIF ( - MIN( DISTINCT 72 ), 2 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3631
SELECT NULLIF ( - MIN ( DISTINCT 72 ), 2 ) AS col2
----
-72

query I rowsort
SELECT + 51 + + + 1 col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT + 64 DIV - 2 + 87
----
55

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 64 / - 2 + 87
----
55

query I rowsort
SELECT ALL 34 + - 87 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL + 79 + + - COALESCE ( + 74, - SUM( - - 99 ), + 6 ) + - 21 + + 92 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + 79 + + - COALESCE ( + 74, - SUM ( - - 99 ), + 6 ) + - 21 + + 92 AS col2
----
76

query I rowsort
SELECT DISTINCT COALESCE ( 42, - + 84 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT ALL - ( + COUNT( * ) ) DIV - SUM( + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - ( + COUNT ( * ) ) / - SUM ( + 33 )
----
0

query I rowsort
SELECT + - 4 + - - 53
----
49

query I rowsort
SELECT + + ( - 41 )
----
-41

query I rowsort
SELECT + - 54 * - 88
----
4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT + MAX( + - 46 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT + MAX ( + - 46 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT - 33 * - 43 - - 10 + + 3 * - + COUNT( * ) DIV 22 * + - 48 * + CASE + 87 WHEN - SUM( DISTINCT + 11 ) THEN NULL ELSE 36 * - 4 + - 5 + 64 END * 19 AS col1
----
1429

skipif mysql # not compatible
query I rowsort label-3642
SELECT - 33 * - 43 - - 10 + + 3 * - + COUNT ( * ) / 22 * + - 48 * + CASE + 87 WHEN - SUM ( DISTINCT + 11 ) THEN NULL ELSE 36 * - 4 + - 5 + 64 END * 19 AS col1
----
1429

query I rowsort
SELECT ALL 11 * + 55 + - 64 col0
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - + ( 55 ) * + 63 + NULLIF ( + 42, COALESCE ( + COUNT( * ), - 79 * 70 * - COUNT( * ) * ( + 55 ) + + 66, - 79 + - 59 * 47 ) * + 64 + 52 ) AS col1
----
-3423

skipif mysql # not compatible
query I rowsort label-3644
SELECT - + ( 55 ) * + 63 + NULLIF ( + 42, COALESCE ( + COUNT ( * ), - 79 * 70 * - COUNT ( * ) * ( + 55 ) + + 66, - 79 + - 59 * 47 ) * + 64 + 52 ) AS col1
----
-3423

query I rowsort
SELECT ALL - 86 * 42 - + - 99 + 91 AS col1
----
-3422

query I rowsort
SELECT ( + + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL + COUNT( + - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + COUNT ( + - 73 )
----
1

query I rowsort
SELECT ( + 11 )
----
11

query I rowsort
SELECT ( 64 )
----
64

query I rowsort
SELECT ALL + 87 col1
----
87

query I rowsort
SELECT + 86 * 77 AS col2
----
6622

query I rowsort
SELECT - 92 * - + 16
----
1472

query I rowsort
SELECT + 92 * + 53 + 84 AS col1
----
4960

query I rowsort
SELECT DISTINCT - 47 * - 36
----
1692

query I rowsort
SELECT ALL + ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT + COUNT( + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + COUNT ( + 19 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ALL COUNT( * ) DIV - - 81 * 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL COUNT ( * ) / - - 81 * 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - 56 * + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3658
SELECT - 56 * + - COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT - 20 * - 7
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL + CASE + CAST( - - 61 AS SIGNED ) WHEN + + CAST( NULL AS SIGNED ) / + NULLIF ( - 55, + - AVG ( DISTINCT + 30 ) * - + 1 + - 61 ) + - - 48 + + 45 + - + 79 + + + ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) THEN - 21 WHEN + 57 THEN - 40 + 68 / 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + CASE + CAST ( - - 61 AS INTEGER ) WHEN + + CAST ( NULL AS INTEGER ) / + NULLIF ( - 55, + - AVG ( DISTINCT + 30 ) * - + 1 + - 61 ) + - - 48 + + 45 + - + 79 + + + ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) THEN - 21 WHEN + 57 THEN - 40 + 68 / 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL CAST( + 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL CAST ( + 91 AS INTEGER )
----
91

query I rowsort
SELECT - 52 AS col2
----
-52

query I rowsort
SELECT ALL + 29 * - - 14
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT - 20 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT - 20 / + - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - COUNT( * ) + - 15
----
-16

skipif mysql # not compatible
query I rowsort label-3666
SELECT - COUNT ( * ) + - 15
----
-16

query I rowsort
SELECT DISTINCT 22 * - 13 * 13 + 5
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 93 * - 93 + COUNT( * )
----
-8648

skipif mysql # not compatible
query I rowsort label-3668
SELECT 93 * - 93 + COUNT ( * )
----
-8648

query I rowsort
SELECT ALL 29 * - 68 + - 75 * + - 18 AS col0
----
-622

query I rowsort
SELECT - 21 + 38 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - COUNT( * ) - - 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3671
SELECT - COUNT ( * ) - - 99 AS col1
----
98

query I rowsort
SELECT - + 93 col0
----
-93

query I rowsort
SELECT ALL - 36 col2
----
-36

query I rowsort
SELECT - - 69 * - 35 + - - ( 0 ) AS col2
----
-2415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3675
SELECT ALL - 63 + + 93 * - + 65 + + + COUNT( * ) + + 44 + 75 + - COUNT( 90 ) * 23 / + 61 - - - ( - AVG ( ALL + 6 ) ) * 79 * + - COUNT( * ) * CAST( NULL AS DECIMAL ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 63 + + 93 * - + 65 + + + COUNT ( * ) + + 44 + 75 + - COUNT ( 90 ) * 23 / + 61 - - - ( - AVG ( ALL + 6 ) ) * 79 * + - COUNT ( * ) * CAST ( NULL AS REAL ) * 30
----
NULL

query I rowsort
SELECT ALL + 5 + 67
----
72

query II rowsort
SELECT DISTINCT ( + + 61 ) + - 5 col1, + 67
----
56
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT ALL + 83 + - 49 DIV + - 16 col1
----
86

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + 83 + - 49 / + - 16 col1
----
86

query I rowsort
SELECT ALL - 24 * 35 * + 88 * 11 AS col1
----
-813120

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - COALESCE ( + 76, COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-3680
SELECT - COALESCE ( + 76, COUNT ( * ) )
----
-76

query I rowsort
SELECT + 71 + 67 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3682
SELECT - - COALESCE ( - MIN( DISTINCT - 57 ), + ( + 9 ) * - 33 + + ( CAST( 84 AS SIGNED ) ) + 66 * + - ( - 28 ) DIV + 74 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-3682
SELECT - - COALESCE ( - MIN ( DISTINCT - 57 ), + ( + 9 ) * - 33 + + ( CAST ( 84 AS INTEGER ) ) + 66 * + - ( - 28 ) / + 74 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL CASE + 84 WHEN - 66 THEN - MAX( ALL - 82 ) * 61 + + ( - 9 ) - + + 36 ELSE + 22 END
----
22

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL CASE + 84 WHEN - 66 THEN - MAX ( ALL - 82 ) * 61 + + ( - 9 ) - + + 36 ELSE + 22 END
----
22

query I rowsort
SELECT ALL + COALESCE ( + 84, 13 * 37, + ( 20 ) * + + ( 97 ) - - 59, - + 57 * + - ( + 22 ) ) + 74
----
158

query II rowsort
SELECT + 35 AS col0, + NULLIF ( + 93, 88 ) AS col1
----
35
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3686
SELECT 95 + + 31 + + - CAST( NULL AS DECIMAL ) * - CAST( NULL AS DECIMAL ) * 73 * + - 88 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT 95 + + 31 + + - CAST ( NULL AS REAL ) * - CAST ( NULL AS REAL ) * 73 * + - 88 + - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL 68 + CAST( NULL AS SIGNED ) - + 72 - + MIN( 1 ) + + 72 * + - 55 * + - 0 * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL 68 + CAST ( NULL AS INTEGER ) - + 72 - + MIN ( 1 ) + + 72 * + - 55 * + - 0 * + 80 AS col2
----
NULL

query I rowsort
SELECT - + 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT + 21 + - + 71 * + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 21 + - + 71 * + COUNT ( * )
----
-50

query I rowsort
SELECT 87 * - 50 AS col1
----
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT ALL 58, - 56 * + COUNT( * ) AS col1
----
58
-56

skipif mysql # not compatible
query II rowsort label-3691
SELECT ALL 58, - 56 * + COUNT ( * ) AS col1
----
58
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL + - COUNT( * ) - - 97 - + 3
----
93

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + - COUNT ( * ) - - 97 - + 3
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT DISTINCT 13 DIV + - 92
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT 13 / + - 92
----
0

query I rowsort
SELECT ALL - 6 - 28 col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT DISTINCT + 48 DIV - MIN( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT + 48 / - MIN ( - 86 )
----
0

query II rowsort
SELECT ALL - 72 AS col0, 8 * 14
----
-72
112

query I rowsort
SELECT 13 * - 99
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT COUNT( * ) * - - 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3698
SELECT COUNT ( * ) * - - 44 AS col2
----
44

query I rowsort
SELECT ALL ( + 36 ) * + - 89 AS col2
----
-3204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3700
SELECT CAST( 96 AS SIGNED ) DIV + 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3700
SELECT CAST ( 96 AS INTEGER ) / + 78 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL 74 * + MAX( ALL - + 41 )
----
-3034

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL 74 * + MAX ( ALL - + 41 )
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT COUNT( * ) * - 61 * + 76 AS col2
----
-4636

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT COUNT ( * ) * - 61 * + 76 AS col2
----
-4636

query II rowsort
SELECT ALL - 22, + ( - 92 ) AS col1
----
-22
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3704
SELECT DISTINCT - COALESCE ( + NULLIF ( CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) - 60 THEN COUNT( * ) + + 40 WHEN - 18 + 21 THEN - 65 * 67 * 51 + - 71 END, + - COUNT( * ) ), - 41 + - 75, COALESCE ( - 57, - 25 ) * COUNT( + 95 * - 44 ), + COUNT( * ) DIV 65 ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT - COALESCE ( + NULLIF ( CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) - 60 THEN COUNT ( * ) + + 40 WHEN - 18 + 21 THEN - 65 * 67 * 51 + - 71 END, + - COUNT ( * ) ), - 41 + - 75, COALESCE ( - 57, - 25 ) * COUNT ( + 95 * - 44 ), + COUNT ( * ) / 65 ) AS col0
----
116

query I rowsort
SELECT + ( + - 99 ) * - 39 * - 33 + 29 + + - 78 * - 76 * - + 32 * + + 89 - - ( 63 )
----
-17010265

query I rowsort
SELECT ALL - 12 AS col0
----
-12

query II rowsort
SELECT + 52, 53 AS col0
----
52
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT 83 * + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-3708
SELECT 83 * + COUNT ( * ) col2
----
83

query I rowsort
SELECT ALL - 71 + - 26
----
-97

query I rowsort
SELECT + 7 col1
----
7

query I rowsort
SELECT ALL - 62 + - 9 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3712
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT ( * )
----
31

query II rowsort
SELECT 28 AS col1, + 26 AS col1
----
28
26

query I rowsort
SELECT ALL + - 50 * 13 * + 28
----
-18200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT + COUNT( * ) DIV - - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT + COUNT ( * ) / - - 10 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3716
SELECT ALL - ( - MIN( ALL + - 81 ) ) + + 90 AS col2, - CAST( - + 28 AS SIGNED ) DIV - 73 AS col1
----
9
0

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL - ( - MIN ( ALL + - 81 ) ) + + 90 AS col2, - CAST ( - + 28 AS INTEGER ) / - 73 AS col1
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - MIN( + + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3717
SELECT - MIN ( + + 82 ) AS col1
----
-82

query I rowsort
SELECT ALL + + 58 * - 10 * + 87
----
-50460

query I rowsort
SELECT DISTINCT - - 96 + - + NULLIF ( + 70, + 65 * + 62 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3720
SELECT ( - + COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT ALL - + 46 - + + 96 AS col2, - 96
----
-142
-96

query I rowsort
SELECT 20 * + ( 37 ) + + 71 + 27 AS col1
----
838

query II rowsort
SELECT - + 64 col1, + 32 AS col2
----
-64
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT 51 + - + COUNT( * ) + + ( 42 )
----
92

skipif mysql # not compatible
query I rowsort label-3724
SELECT 51 + - + COUNT ( * ) + + ( 42 )
----
92

query I rowsort
SELECT + 41 AS col2
----
41

query II rowsort
SELECT - - 10 AS col1, - 54 * ( + + 71 ) + - 90
----
10
-3924

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3727
SELECT + CAST( NULL AS DECIMAL ) + + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT + CAST ( NULL AS REAL ) + + - 15
----
NULL

query I rowsort
SELECT ALL + 10 - - - 95 + 66 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL CAST( NULL AS SIGNED ) * + AVG ( ALL + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL CAST ( NULL AS INTEGER ) * + AVG ( ALL + 71 ) AS col0
----
NULL

query I rowsort
SELECT 20 - + + 48 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT ALL 37 AS col2, COUNT( ALL + 44 )
----
37
1

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL 37 AS col2, COUNT ( ALL + 44 )
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT + MIN( + - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT + MIN ( + - 46 ) AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT CAST( - + 69 AS SIGNED ) * + 24
----
-1656

skipif mysql # not compatible
query I rowsort label-3733
SELECT CAST ( - + 69 AS INTEGER ) * + 24
----
-1656

query II rowsort
SELECT - - 69, - 26 AS col2
----
69
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3735
SELECT 12 + 14 DIV + + 94 + + + 84 + + + 64 * COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-3735
SELECT 12 + 14 / + + 94 + + + 84 + + + 64 * COUNT ( * )
----
160

query I rowsort
SELECT 13 * NULLIF ( - 15, + - 55 )
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT COUNT( * ) * - COUNT( * ) + - 15 + - 12
----
-28

skipif mysql # not compatible
query I rowsort label-3737
SELECT COUNT ( * ) * - COUNT ( * ) + - 15 + - 12
----
-28

query I rowsort
SELECT DISTINCT - 94 col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT 32 + - SUM( 80 ) + NULLIF ( + - 21, COUNT( * ) * - 54 ) AS col0, + ( + 39 )
----
-69
39

skipif mysql # not compatible
query II rowsort label-3739
SELECT 32 + - SUM ( 80 ) + NULLIF ( + - 21, COUNT ( * ) * - 54 ) AS col0, + ( + 39 )
----
-69
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + CASE + 75 WHEN - - COUNT( * ) + - - COUNT( * ) THEN 98 + 27 / - 93 WHEN - 95 THEN + NULLIF ( + + COALESCE ( - 83, + - 34 ), + 67 + - 68 ) END * + 1 * - - NULLIF ( + 78, - 57 ) - - 40 * ( + 27 / - 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT + CASE + 75 WHEN - - COUNT ( * ) + - - COUNT ( * ) THEN 98 + 27 / - 93 WHEN - 95 THEN + NULLIF ( + + COALESCE ( - 83, + - 34 ), + 67 + - 68 ) END * + 1 * - - NULLIF ( + 78, - 57 ) - - 40 * ( + 27 / - 12 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 13 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3742
SELECT MAX( - 11 ) AS col2, CAST( + NULLIF ( + ( - + 23 ), 20 ) AS SIGNED ) * - COUNT( - + 24 ) AS col2
----
-11
23

skipif mysql # not compatible
query II rowsort label-3742
SELECT MAX ( - 11 ) AS col2, CAST ( + NULLIF ( + ( - + 23 ), 20 ) AS INTEGER ) * - COUNT ( - + 24 ) AS col2
----
-11
23

query I rowsort
SELECT + 84 * - 65 + - 6
----
-5466

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT ALL 27 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL 27 / - 71 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT DISTINCT 44 + - 92 + - CAST( ( CASE + 0 WHEN + + COUNT( * ) * - 96 / 92 / + - 47 * + CAST( NULL AS SIGNED ) + + 60 THEN - + 36 * + - CASE 20 WHEN + - ( + - ( ( - 16 ) ) ) + - 42 THEN 73 * SUM( 88 / 91 ) WHEN 77 THEN + 85 ELSE COUNT( * ) * - 67 + 28 END ELSE 92 + + 31 * COUNT( * ) END ) AS SIGNED ) + 97 * 49
----
4582

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT 44 + - 92 + - CAST ( ( CASE + 0 WHEN + + COUNT ( * ) * - 96 / 92 / + - 47 * + CAST ( NULL AS INTEGER ) + + 60 THEN - + 36 * + - CASE 20 WHEN + - ( + - ( ( - 16 ) ) ) + - 42 THEN 73 * SUM ( 88 / 91 ) WHEN 77 THEN + 85 ELSE COUNT ( * ) * - 67 + 28 END ELSE 92 + + 31 * COUNT ( * ) END ) AS INTEGER ) + 97 * 49
----
4582

query I rowsort
SELECT DISTINCT 56 + 49 - - ( - - 39 ) AS col0
----
144

query I rowsort
SELECT ALL 91 + + 15 - 71 col0
----
35

query I rowsort
SELECT + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT MIN( DISTINCT - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3749
SELECT MIN ( DISTINCT - 43 ) col1
----
-43

query I rowsort
SELECT ALL - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT ALL - 3 DIV - COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - 3 / - COUNT ( * ) col0
----
3

query I rowsort
SELECT ALL 87 * 17 AS col2
----
1479

query I rowsort
SELECT ALL 61 + + 5 AS col1
----
66

query I rowsort
SELECT DISTINCT - + 65
----
-65

query I rowsort
SELECT ALL 46 AS col0
----
46

query I rowsort
SELECT - + 14 * + 94 + + 21 AS col0
----
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT - 80 - - 32 + 96 * - COUNT( * )
----
-144

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - 80 - - 32 + 96 * - COUNT ( * )
----
-144

query I rowsort
SELECT + 47 AS col1
----
47

query I rowsort
SELECT - + 11 + 10
----
-1

query I rowsort
SELECT + + 42 * - 50 * + 43 * 94 AS col2
----
-8488200

query II rowsort
SELECT - - ( + 67 ) * - 83 * + ( - 91 ) AS col0, + 0 + 7 col2
----
506051
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT ALL - 31 DIV 78 * - + MIN( + 67 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - 31 / 78 * - + MIN ( + 67 ) col0
----
0

query I rowsort
SELECT DISTINCT + + ( - 62 ) * 66 col0
----
-4092

onlyif mysql # DIV for integer division: 
query II rowsort label-3764
SELECT ALL + 81 * - - 43 col0, + 97 DIV + + 27
----
3483
3

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL + 81 * - - 43 col0, + 97 / + + 27
----
3483
3

onlyif mysql # aggregate syntax: 
query III rowsort label-3765
SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT( * ) AS col2
----
-1602
81
-11

skipif mysql # not compatible
query III rowsort label-3765
SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT ( * ) AS col2
----
-1602
81
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3766
SELECT ALL 16 DIV - + NULLIF ( 50, 69 DIV COALESCE ( 69, + 10 ) + - CAST( NULL AS SIGNED ) - - - 48 * + - 41 * 20 * 90 DIV NULLIF ( + 75, + 41 ) * - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL 16 / - + NULLIF ( 50, 69 / COALESCE ( 69, + 10 ) + - CAST ( NULL AS INTEGER ) - - - 48 * + - 41 * 20 * 90 / NULLIF ( + 75, + 41 ) * - 85 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3767
SELECT DISTINCT - ( - COUNT( * ) ), CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3767
SELECT DISTINCT - ( - COUNT ( * ) ), CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT DISTINCT 34 * - 62 * - COALESCE ( + 50, - 83 ) + - + 35
----
105365

query II rowsort
SELECT 0 AS col0, 62 col0
----
0
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT - 13, SUM( DISTINCT 34 ) * + 74 * 98 AS col2
----
-13
246568

skipif mysql # not compatible
query II rowsort label-3770
SELECT - 13, SUM ( DISTINCT 34 ) * + 74 * 98 AS col2
----
-13
246568

query I rowsort
SELECT - 63 * + + 43 AS col1
----
-2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT - 88 + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - 88 + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 74, - 17 col1
----
74
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT + SUM( DISTINCT + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + SUM ( DISTINCT + 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL - 0 * - - MAX( ALL - 99 ) + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 0 * - - MAX ( ALL - 99 ) + - 33 AS col1
----
-33

query I rowsort
SELECT ( + 3 ) AS col2
----
3

query I rowsort
SELECT ( + - 22 )
----
-22

query I rowsort
SELECT ALL + ( + - 13 ) AS col2
----
-13

query I rowsort
SELECT - 79 + 44 AS col0
----
-35

query II rowsort
SELECT + 39, ( + 88 ) AS col2
----
39
88

query I rowsort
SELECT ( + 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3782
SELECT + CAST( + 19 AS SIGNED ) * - 82 + - 68 + + COUNT( * ) * + ( - + ( 37 ) ) AS col2, 22 AS col0
----
-1663
22

skipif mysql # not compatible
query II rowsort label-3782
SELECT + CAST ( + 19 AS INTEGER ) * - 82 + - 68 + + COUNT ( * ) * + ( - + ( 37 ) ) AS col2, 22 AS col0
----
-1663
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3783
SELECT ALL + 98 * - CAST( + - 18 AS SIGNED ) AS col0, - 63 AS col1
----
1764
-63

skipif mysql # not compatible
query II rowsort label-3783
SELECT ALL + 98 * - CAST ( + - 18 AS INTEGER ) AS col0, - 63 AS col1
----
1764
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT ALL 85 * ( 94 ) DIV 93 + 62
----
147

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL 85 * ( 94 ) / 93 + 62
----
147

query I rowsort
SELECT DISTINCT - 16 * + 29
----
-464

query I rowsort
SELECT DISTINCT + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT ALL 22 * + - 98 - + - COUNT( * ) col1, COUNT( * ) - + 4 AS col0
----
-2155
-3

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL 22 * + - 98 - + - COUNT ( * ) col1, COUNT ( * ) - + 4 AS col0
----
-2155
-3

query I rowsort
SELECT ALL + + 54 AS col1
----
54

query I rowsort
SELECT + - 32 - + 58
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3790
SELECT ALL + + 98, - NULLIF ( - - 87, - COUNT( * ) + COALESCE ( - ( 4 ), - 85 + + - 89, - MAX( ALL - - ( 81 ) ) ) * + + COALESCE ( + CAST( NULL AS SIGNED ), - - 61 * + + CAST( NULL AS SIGNED ), - - 37 * + 42 + 71 ) + CASE + SUM( - 4 ) + ( 14 + + 67 * 60 ) * 17 WHEN 24 THEN NULL WHEN ( 87 ) THEN - MIN( ALL 60 ) END ) * - 57 col1
----
98
4959

skipif mysql # not compatible
query II rowsort label-3790
SELECT ALL + + 98, - NULLIF ( - - 87, - COUNT ( * ) + COALESCE ( - ( 4 ), - 85 + + - 89, - MAX ( ALL - - ( 81 ) ) ) * + + COALESCE ( + CAST ( NULL AS INTEGER ), - - 61 * + + CAST ( NULL AS INTEGER ), - - 37 * + 42 + 71 ) + CASE + SUM ( - 4 ) + ( 14 + + 67 * 60 ) * 17 WHEN 24 THEN NULL WHEN ( 87 ) THEN - MIN ( ALL 60 ) END ) * - 57 col1
----
98
4959

query I rowsort
SELECT - + 21 * - 92 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query II rowsort label-3792
SELECT 91 AS col0, - COALESCE ( - MAX( ALL - - 18 ), - COALESCE ( 24, 41 * + - 24 * 53 + 85 ) + - - 10 ) * 52 * 39 + - COUNT( * )
----
91
36503

skipif mysql # not compatible
query II rowsort label-3792
SELECT 91 AS col0, - COALESCE ( - MAX ( ALL - - 18 ), - COALESCE ( 24, 41 * + - 24 * 53 + 85 ) + - - 10 ) * 52 * 39 + - COUNT ( * )
----
91
36503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT - - 24 * + + 66 + + + SUM( DISTINCT + 2 ) * + 30 - - + 58 * + + 7 + ( + - CAST( + 41 AS SIGNED ) )
----
2009

skipif mysql # not compatible
query I rowsort label-3793
SELECT - - 24 * + + 66 + + + SUM ( DISTINCT + 2 ) * + 30 - - + 58 * + + 7 + ( + - CAST ( + 41 AS INTEGER ) )
----
2009

query I rowsort
SELECT + + 57 AS col0
----
57

query II rowsort
SELECT + - 1 AS col1, 40
----
-1
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - + 71 DIV 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3796
SELECT - + 71 / 42 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + SUM( ALL + 54 ) * + - 69
----
-3726

skipif mysql # not compatible
query I rowsort label-3797
SELECT + SUM ( ALL + 54 ) * + - 69
----
-3726

query I rowsort
SELECT ALL ( - 49 ) * + 23 AS col1
----
-1127

query I rowsort
SELECT ALL + 2 * + 5
----
10

query II rowsort
SELECT + - 96 + - 75 + - 87 AS col1, - 70
----
-258
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + 33 * + - 97 + + ( - COUNT( * ) ) - - - 8
----
-3210

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 33 * + - 97 + + ( - COUNT ( * ) ) - - - 8
----
-3210

query I rowsort
SELECT ALL 76 AS col0
----
76

query I rowsort
SELECT ALL 5 * - 8
----
-40

query I rowsort
SELECT + 44 * 91
----
4004

query II rowsort
SELECT ALL 60 AS col0, 34 col1
----
60
34

query I rowsort
SELECT DISTINCT + 8 * + 98 AS col1
----
784

query I rowsort
SELECT ALL - ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + + 69 * - 1 * - 89 * - CASE 13 WHEN - COUNT( * ) THEN NULL WHEN 1 THEN - COUNT( * ) * - + AVG ( - + 95 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + + 69 * - 1 * - 89 * - CASE 13 WHEN - COUNT ( * ) THEN NULL WHEN 1 THEN - COUNT ( * ) * - + AVG ( - + 95 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT ALL MIN( - 5 ) + + 95, 10 + + - MAX( ALL + + 81 ) AS col2
----
90
-71

skipif mysql # not compatible
query II rowsort label-3809
SELECT ALL MIN ( - 5 ) + + 95, 10 + + - MAX ( ALL + + 81 ) AS col2
----
90
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT + CAST( NULL AS SIGNED ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT + CAST ( NULL AS INTEGER ) + - - 65
----
NULL

query II rowsort
SELECT - - 42 AS col0, 97 + + 77
----
42
174

query I rowsort
SELECT + 33 + + 20 + - - 31
----
84

query I rowsort
SELECT ALL - 1 + + 97
----
96

query I rowsort
SELECT DISTINCT - 92 + + ( - 11 ) * - 2 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3815
SELECT DISTINCT 80 + + + 2, COUNT( * ) AS col1
----
82
1

skipif mysql # not compatible
query II rowsort label-3815
SELECT DISTINCT 80 + + + 2, COUNT ( * ) AS col1
----
82
1

query I rowsort
SELECT DISTINCT ( 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT ALL - 74 + - 46, 60 * - MIN( 64 ) AS col2
----
-120
-3840

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL - 74 + - 46, 60 * - MIN ( 64 ) AS col2
----
-120
-3840

query I rowsort
SELECT - 9 + 7 - - + 57 - 93 * + 55
----
-5060

query I rowsort
SELECT ALL 15 * 29 AS col2
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT - CAST( - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-3820
SELECT - CAST ( - 20 AS INTEGER )
----
20

query I rowsort
SELECT - ( + + 68 ) + + - 78
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT + CAST( 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-3822
SELECT + CAST ( 78 AS INTEGER )
----
78

query I rowsort
SELECT DISTINCT + NULLIF ( + 41, 94 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3824
SELECT ALL NULLIF ( + ( + 46 ), + COUNT( * ) ) DIV - 62 + COUNT( * ) + - + 50 AS col0, MAX( DISTINCT - + ( + 12 ) ) + - 58 AS col1
----
-49
-70

skipif mysql # not compatible
query II rowsort label-3824
SELECT ALL NULLIF ( + ( + 46 ), + COUNT ( * ) ) / - 62 + COUNT ( * ) + - + 50 AS col0, MAX ( DISTINCT - + ( + 12 ) ) + - 58 AS col1
----
-49
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + COUNT( 26 )
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT + COUNT ( 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT ALL + ( + + CAST( + - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + ( + + CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - ( - + COUNT( + + 59 ) ) + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT - ( - + COUNT ( + + 59 ) ) + - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT ALL 56 DIV + COUNT( * ) - - - 76 * + 24 AS col0
----
-1768

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL 56 / + COUNT ( * ) - - - 76 * + 24 AS col0
----
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT - COUNT( * ) * MIN( ALL + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3829
SELECT - COUNT ( * ) * MIN ( ALL + 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT COUNT( * ) DIV - 40 - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT COUNT ( * ) / - 40 - + 21
----
-21

query I rowsort
SELECT 95 col0
----
95

query I rowsort
SELECT DISTINCT - 40 col0
----
-40

query I rowsort
SELECT + - 95 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT COUNT( * ) + + - 55 + + 80 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3834
SELECT COUNT ( * ) + + - 55 + + 80 AS col1
----
26

query I rowsort
SELECT 69 * - 93 + - 19 * + 77 * + 38 * - + 25
----
1383433

query I rowsort
SELECT ALL - 31 * + 96 AS col0
----
-2976

query I rowsort
SELECT 24 AS col0
----
24

query I rowsort
SELECT DISTINCT - 77 AS col1
----
-77

query I rowsort
SELECT ALL - + 46
----
-46

query I rowsort
SELECT DISTINCT - 67 AS col2
----
-67

query I rowsort
SELECT DISTINCT - - ( + 90 )
----
90

query I rowsort
SELECT - 38 + - 36 col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT - - MIN( DISTINCT 97 ) AS col0, 49
----
97
49

skipif mysql # not compatible
query II rowsort label-3843
SELECT - - MIN ( DISTINCT 97 ) AS col0, 49
----
97
49

query I rowsort
SELECT DISTINCT - - 22 + - 28 * - + 76 AS col0
----
2150

query I rowsort
SELECT - + 21 col0
----
-21

query I rowsort
SELECT 64 + 2 * - + 68
----
-72

query I rowsort
SELECT ALL 34 + - + 9 * 24 - + 18 + + 3 + - 33 AS col1
----
-230

query I rowsort
SELECT - - 97
----
97

query I rowsort
SELECT - 22 - - 82
----
60

query I rowsort
SELECT ALL 62 * + 52 - 27 AS col1
----
3197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3851
SELECT COUNT( * ) DIV 96 * 78
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( * ) / 96 * 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT ALL + + 80 + COUNT( * ) DIV - 43
----
80

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + + 80 + COUNT ( * ) / - 43
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL 28 + COUNT( * ) + + + MIN( DISTINCT + 95 )
----
124

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL 28 + COUNT ( * ) + + + MIN ( DISTINCT + 95 )
----
124

query I rowsort
SELECT DISTINCT 39 * 50
----
1950

query I rowsort
SELECT ALL 4 + + 79 * + - 71 * + 34 + 43
----
-190659

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT CASE + - 57 WHEN - 44 THEN COALESCE ( - COUNT( * ), + - COUNT( * ) + - COUNT( * ) - 88 * - + CASE - + 82 WHEN + - 48 + + + 82 THEN NULL ELSE - COUNT( * ) * + 5 END ) WHEN 17 * + + SUM( ALL + 55 ) * + SUM( ALL + 79 ) + 82 THEN NULL END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT CASE + - 57 WHEN - 44 THEN COALESCE ( - COUNT ( * ), + - COUNT ( * ) + - COUNT ( * ) - 88 * - + CASE - + 82 WHEN + - 48 + + + 82 THEN NULL ELSE - COUNT ( * ) * + 5 END ) WHEN 17 * + + SUM ( ALL + 55 ) * + SUM ( ALL + 79 ) + 82 THEN NULL END + 44
----
NULL

query I rowsort
SELECT DISTINCT 74
----
74

query I rowsort
SELECT 57 AS col0
----
57

query I rowsort
SELECT 92 col2
----
92

query I rowsort
SELECT ALL 68 + - + 81
----
-13

query I rowsort
SELECT 61 * 88 AS col2
----
5368

query I rowsort
SELECT ALL 62 * + - 45 AS col1
----
-2790

query II rowsort
SELECT DISTINCT 39, - 88 AS col0
----
39
-88

query I rowsort
SELECT ALL 32 - - 39 AS col2
----
71

query I rowsort
SELECT ALL - 44 * + - 92 AS col0
----
4048

query I rowsort
SELECT ALL 26 * - 2 AS col1
----
-52

query I rowsort
SELECT + 3 AS col1
----
3

query II rowsort
SELECT + 56, 16 AS col2
----
56
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT 18 * + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3869
SELECT 18 * + - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - COUNT( + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - COUNT ( + 13 )
----
-1

query I rowsort
SELECT ALL - - CASE + 41 WHEN + + COALESCE ( - + ( - 77 ), - - 64 ) THEN 60 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 61 AS col1
----
-61

query I rowsort
SELECT ALL - + ( + 67 )
----
-67

query I rowsort
SELECT DISTINCT - 52 + + 51
----
-1

query I rowsort
SELECT ALL - + 43 AS col2
----
-43

query I rowsort
SELECT 43 * - + 25
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - COUNT( * ) * - + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3877
SELECT - COUNT ( * ) * - + 32 AS col2
----
32

query I rowsort
SELECT DISTINCT - 91 + + 77 AS col0
----
-14

query I rowsort
SELECT ALL + + 32 + + 77
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL - 58 + + 33 + - 38 - - - SUM( 52 ) + 60 * - - 66 - + 38 * + COUNT( * ) AS col1
----
3807

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - 58 + + 33 + - 38 - - - SUM ( 52 ) + 60 * - - 66 - + 38 * + COUNT ( * ) AS col1
----
3807

query I rowsort
SELECT DISTINCT - - 28
----
28

query II rowsort
SELECT DISTINCT + COALESCE ( 21, + 70 ) + + 49 * 82 AS col1, 70
----
4039
70

query I rowsort
SELECT ALL + ( + 44 ) + - - 53 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL SUM( + - ( - 16 ) ) + + 14 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL SUM ( + - ( - 16 ) ) + + 14 AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT ALL + COALESCE ( + 90, - - 56 + - 24 + - 93 + COUNT( ALL + 27 ) ) + - 48 + + 89 + - 98 DIV ( - - 33 ) * + - 27 * - 52 AS col2
----
-2677

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + COALESCE ( + 90, - - 56 + - 24 + - 93 + COUNT ( ALL + 27 ) ) + - 48 + + 89 + - 98 / ( - - 33 ) * + - 27 * - 52 AS col2
----
-2677

query I rowsort
SELECT 42 + + 48 * - 45
----
-2118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3887
SELECT 53 col0, - 60 DIV - + COUNT( * )
----
53
60

skipif mysql # not compatible
query II rowsort label-3887
SELECT 53 col0, - 60 / - + COUNT ( * )
----
53
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3888
SELECT ALL + 75 - - ( MIN( + 64 ) ) AS col2, ( - 72 )
----
139
-72

skipif mysql # not compatible
query II rowsort label-3888
SELECT ALL + 75 - - ( MIN ( + 64 ) ) AS col2, ( - 72 )
----
139
-72

query I rowsort
SELECT - 22 AS col1
----
-22

query I rowsort
SELECT ALL NULLIF ( 44, - 54 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT 57 + + COUNT( * ) * + 44 * 98 + + COUNT( * ) AS col1
----
4370

skipif mysql # not compatible
query I rowsort label-3891
SELECT 57 + + COUNT ( * ) * + 44 * 98 + + COUNT ( * ) AS col1
----
4370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3892
SELECT 61 * CAST( NULL AS SIGNED ) col0, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-3892
SELECT 61 * CAST ( NULL AS INTEGER ) col0, - 73
----
NULL
-73

query II rowsort
SELECT 77 + + + 41 AS col1, + 55
----
118
55

query I rowsort
SELECT ALL 90 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3895
SELECT + CAST( NULL AS SIGNED ) + + NULLIF ( - 53, + 62 ) * - ( - + 13 ), 51 col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3895
SELECT + CAST ( NULL AS INTEGER ) + + NULLIF ( - 53, + 62 ) * - ( - + 13 ), 51 col0
----
NULL
51

query I rowsort
SELECT + 96 + - 48 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3897
SELECT - COUNT( * ) * COUNT( * ) AS col0, 79 DIV + 31, + 49 + - 57 * - - 18 AS col0
----
-1
2
-977

skipif mysql # not compatible
query III rowsort label-3897
SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 79 / + 31, + 49 + - 57 * - - 18 AS col0
----
-1
2
-977

query I rowsort
SELECT - 99 col0
----
-99

query I rowsort
SELECT + 72 + 61 - + + 67
----
66

query I rowsort
SELECT ALL 1
----
1

query II rowsort
SELECT - 2 col2, + 66 + - + 51 AS col1
----
-2
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - COUNT( * ) * - 53 + + - 12 + + 9
----
50

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COUNT ( * ) * - 53 + + - 12 + + 9
----
50

query II rowsort
SELECT ALL + 56 AS col0, + 98 AS col0
----
56
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT( * ) THEN - CAST( 32 AS SIGNED ) + 99 + COALESCE ( + COUNT( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM( ALL - 56 + + CAST( - 67 AS SIGNED ) / - 3 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT ( * ) THEN - CAST ( 32 AS INTEGER ) + 99 + COALESCE ( + COUNT ( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT ( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM ( ALL - 56 + + CAST ( - 67 AS INTEGER ) / - 3 ) END
----
NULL

query II rowsort
SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT ALL + - COUNT( * ) AS col2, 86 AS col1
----
-1
86

skipif mysql # not compatible
query II rowsort label-3906
SELECT ALL + - COUNT ( * ) AS col2, 86 AS col1
----
-1
86

query I rowsort
SELECT + - 9 * - 88
----
792

query I rowsort
SELECT ALL + + 44
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT 22 AS col2, + NULLIF ( + COUNT( * ), - ( + + 25 ) + COUNT( * ) - - COUNT( * ) )
----
22
1

skipif mysql # not compatible
query II rowsort label-3909
SELECT 22 AS col2, + NULLIF ( + COUNT ( * ), - ( + + 25 ) + COUNT ( * ) - - COUNT ( * ) )
----
22
1

query I rowsort
SELECT + - ( + ( + 11 ) ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3911
SELECT ALL - 4 * - 21 + + - 10 + - + 41 DIV - 87 DIV 1 * - + 31 - + CAST( + 80 AS SIGNED ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - 4 * - 21 + + - 10 + - + 41 / - 87 / 1 * - + 31 - + CAST ( + 80 AS INTEGER ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3912
SELECT + 5 AS col0, + CAST( + COUNT( * ) AS SIGNED )
----
5
1

skipif mysql # not compatible
query II rowsort label-3912
SELECT + 5 AS col0, + CAST ( + COUNT ( * ) AS INTEGER )
----
5
1

query II rowsort
SELECT ALL + - 67, + 5 AS col1
----
-67
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT ALL + + 11 * + CASE 93 WHEN 46 + - + 45 THEN NULL WHEN - 37 + + COUNT( * ) THEN NULL ELSE + CASE - - CAST( NULL AS SIGNED ) WHEN - 32 THEN - + AVG ( ALL + 66 ) ELSE NULL END + 79 END + + SUM( DISTINCT 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + + 11 * + CASE 93 WHEN 46 + - + 45 THEN NULL WHEN - 37 + + COUNT ( * ) THEN NULL ELSE + CASE - - CAST ( NULL AS INTEGER ) WHEN - 32 THEN - + AVG ( ALL + 66 ) ELSE NULL END + 79 END + + SUM ( DISTINCT 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT + COUNT ( * ) * + 1
----
1

query I rowsort
SELECT + 11 + 84 - + 78 + - + 6 * + + 23
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - - 46 * + 17 + + 33 + + + COUNT( * ) AS col0
----
816

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - - 46 * + 17 + + 33 + + + COUNT ( * ) AS col0
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + + 80 * 47 + + COUNT( * ) AS col1
----
3761

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + + 80 * 47 + + COUNT ( * ) AS col1
----
3761

query I rowsort
SELECT + ( + + 61 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + COUNT( * ) * CASE - COUNT( DISTINCT - + 2 ) WHEN - - 12 THEN MAX( ALL 0 ) ELSE NULL END * - 64 + 14 * 21 - + - 22 / + - 22 + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT + COUNT ( * ) * CASE - COUNT ( DISTINCT - + 2 ) WHEN - - 12 THEN MAX ( ALL 0 ) ELSE NULL END * - 64 + 14 * 21 - + - 22 / + - 22 + - 92
----
NULL

query I rowsort
SELECT + + 82 * - 55 AS col1
----
-4510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3922
SELECT + - CAST( NULL AS SIGNED ), - NULLIF ( - + CAST( - 96 AS SIGNED ), + 18 / 50 * 8 ) * + - CAST( + + 89 AS SIGNED ) * + 21 * - + ( + 2 ) + - 41 AS col1
----
NULL
-358889

skipif mysql # not compatible
query II rowsort label-3922
SELECT + - CAST ( NULL AS INTEGER ), - NULLIF ( - + CAST ( - 96 AS INTEGER ), + 18 / 50 * 8 ) * + - CAST ( + + 89 AS INTEGER ) * + 21 * - + ( + 2 ) + - 41 AS col1
----
NULL
-358889

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT ALL + + 17 AS col1, COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-3923
SELECT ALL + + 17 AS col1, COUNT ( * ) AS col2
----
17
1

query I rowsort
SELECT - ( + + 38 ) * 94 + - 86 + + 41 AS col2
----
-3617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 56 - - COUNT( * ) / ( + - COUNT( * ) ) * - ( + 50 ) / 48 * + 12 * + CAST( NULL AS SIGNED ) + + + MAX( - 60 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 56 - - COUNT ( * ) / ( + - COUNT ( * ) ) * - ( + 50 ) / 48 * + 12 * + CAST ( NULL AS INTEGER ) + + + MAX ( - 60 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 37
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3927
SELECT + COALESCE ( CAST( NULL AS SIGNED ), + 7 ) + 79 AS col0, 4 AS col2
----
86
4

skipif mysql # not compatible
query II rowsort label-3927
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), + 7 ) + 79 AS col0, 4 AS col2
----
86
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT + + 32 DIV 48 * - - 84 * - - 27 * - 99 - 72 + + + 2 - - 20 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3928
SELECT + + 32 / 48 * - - 84 * - - 27 * - 99 - 72 + + + 2 - - 20 AS col0
----
-50

query I rowsort
SELECT ALL - - 61 * - 56 + 32
----
-3384

query II rowsort
SELECT DISTINCT + 55 col0, 68 AS col0
----
55
68

query I rowsort
SELECT ALL 42 * + 88 + 69 AS col1
----
3765

query I rowsort
SELECT + + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + SUM( ALL 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3933
SELECT + SUM ( ALL 12 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3934
SELECT + COUNT( * ), COUNT( * ) * 52 col0
----
1
52

skipif mysql # not compatible
query II rowsort label-3934
SELECT + COUNT ( * ), COUNT ( * ) * 52 col0
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + 88 - + 6 * - COUNT( ALL 8 )
----
94

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + 88 - + 6 * - COUNT ( ALL 8 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT - ( + 39 ) + + COUNT( DISTINCT + 33 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3936
SELECT - ( + 39 ) + + COUNT ( DISTINCT + 33 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT - 25 - - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - 25 - - COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL NULLIF ( MAX( + ( 82 ) ), - 83 )
----
82

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL NULLIF ( MAX ( + ( 82 ) ), - 83 )
----
82

query I rowsort
SELECT ALL ( - 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT ( 16 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT DISTINCT + 71 * + - COUNT( * ) AS col2, + ( COUNT( * ) ) * - + 11 * COALESCE ( - 56, 32 ) col0
----
-71
616

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT + 71 * + - COUNT ( * ) AS col2, + ( COUNT ( * ) ) * - + 11 * COALESCE ( - 56, 32 ) col0
----
-71
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT - CAST( + 9 AS SIGNED ) * + SUM( DISTINCT + - CASE - + CAST( NULL AS SIGNED ) WHEN 4 THEN - 99 / + 47 WHEN + ( + + 20 ) THEN - - 37 / - 51 * 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT - CAST ( + 9 AS INTEGER ) * + SUM ( DISTINCT + - CASE - + CAST ( NULL AS INTEGER ) WHEN 4 THEN - 99 / + 47 WHEN + ( + + 20 ) THEN - - 37 / - 51 * 76 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL CASE + - 41 WHEN + AVG ( + - CASE + 94 WHEN - 28 + + 51 THEN NULL ELSE 80 END ) THEN NULL WHEN COUNT( * ) * ( - 93 ) THEN + + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL CASE + - 41 WHEN + AVG ( + - CASE + 94 WHEN - 28 + + 51 THEN NULL ELSE 80 END ) THEN NULL WHEN COUNT ( * ) * ( - 93 ) THEN + + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( + + ( - - 97 ) ) * + + ( ( 53 ) ) + 81
----
-5060

query I rowsort
SELECT ALL ( + 4 ) col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3946
SELECT - CAST( NULL AS DECIMAL ) / + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - CAST ( NULL AS REAL ) / + 56
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 54, + 57 ) * + + 73 AS col0
----
3942

query II rowsort
SELECT - 13 * - + 13 col0, 8
----
169
8

query I rowsort
SELECT DISTINCT + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3950
SELECT ALL - MAX( DISTINCT 11 ) DIV 39 + 33 + - + 46, + 38 * + COUNT( * ) AS col0
----
-13
38

skipif mysql # not compatible
query II rowsort label-3950
SELECT ALL - MAX ( DISTINCT 11 ) / 39 + 33 + - + 46, + 38 * + COUNT ( * ) AS col0
----
-13
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + + COUNT( * ) - - - 98 * + + 86 AS col1
----
-8427

skipif mysql # not compatible
query I rowsort label-3951
SELECT + + COUNT ( * ) - - - 98 * + + 86 AS col1
----
-8427

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL + + 34 DIV ( + 29 ) + + ( - 91 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + + 34 / ( + 29 ) + + ( - 91 ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3953
SELECT 77 DIV - 99 + + 86 + + COUNT( * ) * 87 * + + 65 col1
----
5741

skipif mysql # not compatible
query I rowsort label-3953
SELECT 77 / - 99 + + 86 + + COUNT ( * ) * 87 * + + 65 col1
----
5741

query I rowsort
SELECT + - 93 col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3955
SELECT + - MAX( DISTINCT 79 ), + NULLIF ( - + 59, 78 ) * - 41 * + - CAST( NULL AS SIGNED ) / + + 29 + - 68 + - COUNT( * ) * - + 94 - - 68 + ( 92 ) * - + 13 / + + 7 * 95 AS col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-3955
SELECT + - MAX ( DISTINCT 79 ), + NULLIF ( - + 59, 78 ) * - 41 * + - CAST ( NULL AS INTEGER ) / + + 29 + - 68 + - COUNT ( * ) * - + 94 - - 68 + ( 92 ) * - + 13 / + + 7 * 95 AS col1
----
-79
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3956
SELECT ALL + + 2 DIV - COUNT( * ) + 56
----
54

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + + 2 / - COUNT ( * ) + 56
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT ( + + NULLIF ( COUNT( * ), - + 48 + 59 + + COUNT( * ) / - 50 ) ), ( + 9 ) AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-3957
SELECT ( + + NULLIF ( COUNT ( * ), - + 48 + 59 + + COUNT ( * ) / - 50 ) ), ( + 9 ) AS col2
----
1
9

query I rowsort
SELECT - ( - 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT ALL - 6 DIV - 94 + + + 82 * - 25 AS col1
----
-2050

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 6 / - 94 + + + 82 * - 25 AS col1
----
-2050

query I rowsort
SELECT + 89 + 8 AS col0
----
97

query I rowsort
SELECT DISTINCT + ( + 50 )
----
50

query I rowsort
SELECT ALL - 20 * - 78 - 15 * + + 15 AS col0
----
1335

query I rowsort
SELECT DISTINCT + 1 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3964
SELECT - 14 * NULLIF ( COALESCE ( + CAST( NULL AS SIGNED ), - - ( COUNT( * ) ) + + 80, + COUNT( * ), - 4 + CASE - MAX( + 58 ) WHEN + ( - 7 ) THEN - COUNT( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT( * ) + 91 THEN 16 * 92 + + COUNT( * ) DIV + 91 WHEN 95 THEN + NULLIF ( - 71, - 89 ) WHEN - ( 60 ) * 38 THEN NULL END * - 38 END ), CAST( NULL AS SIGNED ) + + 12 ) * 70 + 4 + 13 * - 92
----
-80572

skipif mysql # not compatible
query I rowsort label-3964
SELECT - 14 * NULLIF ( COALESCE ( + CAST ( NULL AS INTEGER ), - - ( COUNT ( * ) ) + + 80, + COUNT ( * ), - 4 + CASE - MAX ( + 58 ) WHEN + ( - 7 ) THEN - COUNT ( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT ( * ) + 91 THEN 16 * 92 + + COUNT ( * ) / + 91 WHEN 95 THEN + NULLIF ( - 71, - 89 ) WHEN - ( 60 ) * 38 THEN NULL END * - 38 END ), CAST ( NULL AS INTEGER ) + + 12 ) * 70 + 4 + 13 * - 92
----
-80572

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + NULLIF ( - 98, + - MIN( DISTINCT 92 ) - + 46 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3965
SELECT + NULLIF ( - 98, + - MIN ( DISTINCT 92 ) - + 46 ) AS col0
----
-98

query I rowsort
SELECT - 63 * - + 11
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3967
SELECT + ( + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT + COUNT( * ) + - + 38 * - 31 * MIN( - CAST( 42 AS SIGNED ) ) + + SUM( - 49 ) AS col1
----
-49524

skipif mysql # not compatible
query I rowsort label-3968
SELECT + COUNT ( * ) + - + 38 * - 31 * MIN ( - CAST ( 42 AS INTEGER ) ) + + SUM ( - 49 ) AS col1
----
-49524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL 57 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL 57 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 27 * - 64
----
-1728

query I rowsort
SELECT ALL ( - 99 ) AS col2
----
-99

query I rowsort
SELECT 92 - + + 1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT 96 DIV + - 71
----
-1

skipif mysql # not compatible
query I rowsort label-3973
SELECT 96 / + - 71
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3974
SELECT 67 + + 77 - - 41 - + + CAST( NULL AS DECIMAL ) + - - 13 * + + COALESCE ( 47, - 14 ) * + 23 / 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT 67 + + 77 - - 41 - + + CAST ( NULL AS REAL ) + - - 13 * + + COALESCE ( 47, - 14 ) * + 23 / 79
----
NULL

query II rowsort
SELECT 5 + + + 45 * + 5 AS col2, + ( - 83 ) AS col1
----
230
-83

query II rowsort
SELECT 16 AS col2, 77 * + - 25 * + + 9
----
16
-17325

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT SUM( + 10 ) + + 49 - - 51 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-3977
SELECT SUM ( + 10 ) + + 49 - - 51 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 27 - + COUNT( * ) + + COALESCE ( + 7, - 34 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3978
SELECT 27 - + COUNT ( * ) + + COALESCE ( + 7, - 34 ) AS col2
----
33

query I rowsort
SELECT ALL + 22 + + 98 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT 1 + - 59 - + + 61 DIV - 81 * 58
----
-58

skipif mysql # not compatible
query I rowsort label-3980
SELECT 1 + - 59 - + + 61 / - 81 * 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL COUNT( * ) + - 12 + - - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL COUNT ( * ) + - 12 + - - COUNT ( * )
----
-10

query I rowsort
SELECT 11 + 24
----
35

query II rowsort
SELECT 16 AS col0, ( + 53 )
----
16
53

query I rowsort
SELECT DISTINCT 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 66 + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 66 + + COUNT ( * )
----
67

query I rowsort
SELECT ( - + 50 ) AS col0
----
-50

query II rowsort
SELECT 76 AS col0, + 28
----
76
28

query I rowsort
SELECT - + 64
----
-64

query I rowsort
SELECT 8 + 64 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - COUNT( * ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-3990
SELECT - COUNT ( * ) * 49
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT DISTINCT - + 13 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT - + 13 / + - 87 AS col1
----
0

query I rowsort
SELECT + + 85
----
85

query I rowsort
SELECT ALL - - 46 + - 22 AS col2
----
24

query I rowsort
SELECT DISTINCT - 46
----
-46

query II rowsort
SELECT + 91, 92 * - 34 col2
----
91
-3128

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT ALL - COUNT( * ) AS col1, 28
----
-1
28

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - COUNT ( * ) AS col1, 28
----
-1
28

query I rowsort
SELECT ALL - - 71 * 9 col0
----
639

query I rowsort
SELECT 56 + - - 0 - 99
----
-43

query I rowsort
SELECT + - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + 22 + - + 99 + 17 + + ( + 56 ) * - 40 - - - 98 * + - COUNT( * )
----
-2202

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 22 + - + 99 + 17 + + ( + 56 ) * - 40 - - - 98 * + - COUNT ( * )
----
-2202

query I rowsort
SELECT DISTINCT - + 97 AS col0
----
-97

query I rowsort
SELECT DISTINCT - 38 AS col0
----
-38

query I rowsort
SELECT DISTINCT - 9 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 48
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT ALL 98 * COUNT( * ) AS col1, - 23
----
98
-23

skipif mysql # not compatible
query II rowsort label-4005
SELECT ALL 98 * COUNT ( * ) AS col1, - 23
----
98
-23

query I rowsort
SELECT 86 * + 17 * + ( 91 ) AS col0
----
133042

query I rowsort
SELECT DISTINCT - 25 col0
----
-25

query I rowsort
SELECT 42 col1
----
42

query I rowsort
SELECT ALL 62 * 28
----
1736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT 76 DIV + COALESCE ( + 71, + 18 + + COUNT( * ), + + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT 76 / + COALESCE ( + 71, + 18 + + COUNT ( * ), + + 95 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT COUNT( * ) * ( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4011
SELECT COUNT ( * ) * ( + 64 ) AS col0
----
64

query I rowsort
SELECT ALL + 18 + + - 20 - - + 73 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4013
SELECT ALL - CAST( 56 AS SIGNED ) DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - CAST ( 56 AS INTEGER ) / - 50
----
1

query I rowsort
SELECT DISTINCT 1 AS col0
----
1

query I rowsort
SELECT DISTINCT 54 + - 72
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4016
SELECT 1 * + COUNT( * ) DIV + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86
----
0
-90
5310

skipif mysql # not compatible
query III rowsort label-4016
SELECT 1 * + COUNT ( * ) / + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86
----
0
-90
5310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT 36 * + CAST( - 92 AS SIGNED )
----
-3312

skipif mysql # not compatible
query I rowsort label-4017
SELECT 36 * + CAST ( - 92 AS INTEGER )
----
-3312

query I rowsort
SELECT ALL ( + 52 ) AS col1
----
52

query I rowsort
SELECT - + 76 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4020
SELECT CASE - 7 WHEN COALESCE ( - ( 18 ), + 53, - 83 * AVG ( - 27 ) + - NULLIF ( + - 25, - 75 / + COALESCE ( COUNT( * ), + + MAX( DISTINCT + - 35 ), - 44 ) * + - 20 ), + 90 + + CAST( + - 69 AS DECIMAL ) - - MAX( - 53 ) * COUNT( * ) / - 50 ) / COUNT( * ) - 30 THEN NULL WHEN 36 THEN NULL WHEN - 54 + 74 THEN 77 ELSE NULL END - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT CASE - 7 WHEN COALESCE ( - ( 18 ), + 53, - 83 * AVG ( - 27 ) + - NULLIF ( + - 25, - 75 / + COALESCE ( COUNT ( * ), + + MAX ( DISTINCT + - 35 ), - 44 ) * + - 20 ), + 90 + + CAST ( + - 69 AS REAL ) - - MAX ( - 53 ) * COUNT ( * ) / - 50 ) / COUNT ( * ) - 30 THEN NULL WHEN 36 THEN NULL WHEN - 54 + 74 THEN 77 ELSE NULL END - + 95
----
NULL

query I rowsort
SELECT - + 7 AS col2
----
-7

query I rowsort
SELECT DISTINCT 18 * + 42
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - + 10 - - COUNT( * ) + - - COUNT( * ) + 11 * ( + 34 ) * + 38 * + COUNT( * ) * + 82 * - 72 AS col1
----
-83907656

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - + 10 - - COUNT ( * ) + - - COUNT ( * ) + 11 * ( + 34 ) * + 38 * + COUNT ( * ) * + 82 * - 72 AS col1
----
-83907656

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT 33 * - MAX( DISTINCT ( - 92 ) )
----
3036

skipif mysql # not compatible
query I rowsort label-4024
SELECT 33 * - MAX ( DISTINCT ( - 92 ) )
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT - COALESCE ( ( COUNT( + - 45 ) ), + - 5 * + + ( - - 9 ) ) * COUNT( * ) * - + 2 - + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - COALESCE ( ( COUNT ( + - 45 ) ), + - 5 * + + ( - - 9 ) ) * COUNT ( * ) * - + 2 - + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT 81 + - COALESCE ( 75, - COUNT( * ) DIV - + 51 DIV - 90 + + 74 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4026
SELECT 81 + - COALESCE ( 75, - COUNT ( * ) / - + 51 / - 90 + + 74 ) AS col2
----
6

query I rowsort
SELECT + + 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + 90 * - 92 + - 78 * COALESCE ( + - 24, - COUNT( * ) * - ( + 54 ) + - - 58 ) - + COUNT( * ) col2
----
-6409

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + 90 * - 92 + - 78 * COALESCE ( + - 24, - COUNT ( * ) * - ( + 54 ) + - - 58 ) - + COUNT ( * ) col2
----
-6409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4029
SELECT 12 * CAST( NULL AS SIGNED ) AS col1, 92 + CAST( 94 AS SIGNED ) AS col2
----
NULL
186

skipif mysql # not compatible
query II rowsort label-4029
SELECT 12 * CAST ( NULL AS INTEGER ) AS col1, 92 + CAST ( 94 AS INTEGER ) AS col2
----
NULL
186

query I rowsort
SELECT + 2 * + 16 * + 73 AS col1
----
2336

onlyif mysql # aggregate syntax: 
query II rowsort label-4031
SELECT ALL - + MIN( - 24 ) AS col2, COUNT( * ) AS col2
----
24
1

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL - + MIN ( - 24 ) AS col2, COUNT ( * ) AS col2
----
24
1

query I rowsort
SELECT ALL - + 29 AS col2
----
-29

query I rowsort
SELECT + 69 * - 55
----
-3795

query I rowsort
SELECT + 47 * 38 + 86 * 52 + - - 22 AS col0
----
6280

onlyif mysql # DIV for integer division: 
query II rowsort label-4035
SELECT DISTINCT + - 76 DIV - 91, + 11 * ( + 80 ) AS col1
----
0
880

skipif mysql # not compatible
query II rowsort label-4035
SELECT DISTINCT + - 76 / - 91, + 11 * ( + 80 ) AS col1
----
0
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT - COALESCE ( COUNT( * ), - 95 ) DIV 78 - - - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4036
SELECT - COALESCE ( COUNT ( * ), - 95 ) / 78 - - - 15 AS col0
----
-15

query I rowsort
SELECT ALL + 57
----
57

query I rowsort
SELECT DISTINCT + 12 * + 28
----
336

query I rowsort
SELECT - 92 * 39 AS col2
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - 13 * 33 * + 48 + - COUNT( * ) col2
----
-20593

skipif mysql # not compatible
query I rowsort label-4040
SELECT - 13 * 33 * + 48 + - COUNT ( * ) col2
----
-20593

query I rowsort
SELECT ALL + ( + - 85 )
----
-85

query I rowsort
SELECT + 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4043
SELECT SUM ( 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL - COUNT( * ) + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - COUNT ( * ) + 65 AS col1
----
64

query I rowsort
SELECT ALL + ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT COUNT( * ) AS col0, + 3
----
1
3

skipif mysql # not compatible
query II rowsort label-4046
SELECT COUNT ( * ) AS col0, + 3
----
1
3

query I rowsort
SELECT DISTINCT ( 9 ) + - 24 * - + 53
----
1281

query I rowsort
SELECT ALL - 22 + 71
----
49

query II rowsort
SELECT ALL 93 AS col2, + 52 + 69 * + - 89 + - - ( - + 92 ) AS col2
----
93
-6181

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT - MAX( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4050
SELECT - MAX ( DISTINCT - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT ( + COALESCE ( 32, - - 76 * - 65 + COUNT( * ) + + - 29 * + - 69 * - 1 * + 19 + 66, COUNT( * ) * + - 21 ) )
----
32

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT ( + COALESCE ( 32, - - 76 * - 65 + COUNT ( * ) + + - 29 * + - 69 * - 1 * + 19 + 66, COUNT ( * ) * + - 21 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - 78 + + 31 + + - COUNT( ALL + 75 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4052
SELECT - 78 + + 31 + + - COUNT ( ALL + 75 ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4053
SELECT + 84 * CAST( NULL AS DECIMAL ) * - - 99, + ( - - COUNT( * ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4053
SELECT + 84 * CAST ( NULL AS REAL ) * - - 99, + ( - - COUNT ( * ) ) AS col1
----
NULL
1

query I rowsort
SELECT - + 73 + - - 93
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT ALL + 4 * + 91 + MAX( ALL + 58 ) + 66 AS col1, - 81 * + MIN( - + 77 ) * - 52 * + 10 * + 40 + + 50
----
488
-129729550

skipif mysql # not compatible
query II rowsort label-4055
SELECT ALL + 4 * + 91 + MAX ( ALL + 58 ) + 66 AS col1, - 81 * + MIN ( - + 77 ) * - 52 * + 10 * + 40 + + 50
----
488
-129729550

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT + - 98 + + COUNT( * ) * 57 AS col0, + 19 + + MIN( DISTINCT - + 4 )
----
-41
15

skipif mysql # not compatible
query II rowsort label-4056
SELECT + - 98 + + COUNT ( * ) * 57 AS col0, + 19 + + MIN ( DISTINCT - + 4 )
----
-41
15

query I rowsort
SELECT ALL + 93 - - + 88 AS col1
----
181

query I rowsort
SELECT DISTINCT 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT - - COALESCE ( + 96, 5 ), + COUNT( * ) * - COUNT( * ) + + + 20 AS col2
----
96
19

skipif mysql # not compatible
query II rowsort label-4059
SELECT - - COALESCE ( + 96, 5 ), + COUNT ( * ) * - COUNT ( * ) + + + 20 AS col2
----
96
19

query I rowsort
SELECT ALL + 4 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT + MIN( ALL - + 14 ) + COALESCE ( + 36, - - 67, - CAST( NULL AS SIGNED ) * 11 - + 14 * - 27 ) + - - MIN( - 68 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4061
SELECT + MIN ( ALL - + 14 ) + COALESCE ( + 36, - - 67, - CAST ( NULL AS INTEGER ) * 11 - + 14 * - 27 ) + - - MIN ( - 68 ) AS col1
----
-46

query I rowsort
SELECT ALL CASE - + CASE + + 3 WHEN + 99 THEN + 64 + - + 32 WHEN - 79 * - 95 - - 95 THEN NULL END WHEN + 15 THEN 81 + - - 4 + - 88 WHEN - 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT + 8 * + 11 * - CAST( 26 AS SIGNED )
----
-2288

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 8 * + 11 * - CAST ( 26 AS INTEGER )
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + COUNT( DISTINCT - 95 ) + + 71 * 18 AS col2
----
1279

skipif mysql # not compatible
query I rowsort label-4064
SELECT + COUNT ( DISTINCT - 95 ) + + 71 * 18 AS col2
----
1279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT - CAST( 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - CAST ( 72 AS INTEGER ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - - 91 * - + 64 * - - 12 * - SUM( DISTINCT - 59 ) AS col1
----
-4123392

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - 91 * - + 64 * - - 12 * - SUM ( DISTINCT - 59 ) AS col1
----
-4123392

query I rowsort
SELECT ALL + + 74
----
74

query II rowsort
SELECT + 66 * - 69 - - + 36, + 42 AS col2
----
-4518
42

query I rowsort
SELECT ALL + - 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT - COUNT( * ) * - MIN( - 12 ) * 62 * 98 + + 9
----
-72903

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - COUNT ( * ) * - MIN ( - 12 ) * 62 * 98 + + 9
----
-72903

query I rowsort
SELECT ( 39 ) AS col1
----
39

query I rowsort
SELECT + 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + COUNT( DISTINCT - - 45 ) * + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4073
SELECT + COUNT ( DISTINCT - - 45 ) * + 66 AS col2
----
66

query II rowsort
SELECT - 98 * + + 73 AS col2, 81 - - 33
----
-7154
114

query I rowsort
SELECT ( COALESCE ( + 90, + - 19, + 12 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4076
SELECT ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ( - + 15 ) col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT + CAST( - 93 AS SIGNED ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-4078
SELECT + CAST ( - 93 AS INTEGER ) col0
----
-93

query I rowsort
SELECT ( + + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + COUNT( * ) * - 69 + + COUNT( * ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-4080
SELECT + COUNT ( * ) * - 69 + + COUNT ( * ) col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4081
SELECT - 21 - - - ( + 18 ) DIV + + COUNT( * ) + - 98 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-4081
SELECT - 21 - - - ( + 18 ) / + + COUNT ( * ) + - 98 AS col1
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4082
SELECT - 97 * - 57 AS col1, 12 + - CASE - + ( 25 ) WHEN ( - 15 ) * + 6 THEN NULL WHEN 58 * - + 13 * + + AVG ( ALL + 49 ) * + + COUNT( * ) + CAST( - 28 AS SIGNED ) THEN NULL ELSE - - 73 END + COUNT( * )
----
5529
-60

skipif mysql # not compatible
query II rowsort label-4082
SELECT - 97 * - 57 AS col1, 12 + - CASE - + ( 25 ) WHEN ( - 15 ) * + 6 THEN NULL WHEN 58 * - + 13 * + + AVG ( ALL + 49 ) * + + COUNT ( * ) + CAST ( - 28 AS INTEGER ) THEN NULL ELSE - - 73 END + COUNT ( * )
----
5529
-60

query I rowsort
SELECT ALL + 63 * 92
----
5796

query I rowsort
SELECT ALL 34 * - 74 + - 5 * - + ( - 46 )
----
-2746

query I rowsort
SELECT ALL + 29 * - 77 + - - 30 + + 71 * - + 32 AS col1
----
-4475

query I rowsort
SELECT - 8 + + 53 * - 58 AS col0
----
-3082

query I rowsort
SELECT DISTINCT - 96 * + 43 + - 87 AS col1
----
-4215

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT COALESCE ( 80, - COALESCE ( - ( - 59 ), + - 64 ), - CASE - 78 WHEN - 14 * - 45 + + ( + ( + + ( + 70 ) ) ) + - 37 * - + 18 * COUNT( * ) THEN NULL ELSE + - 79 END ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4088
SELECT COALESCE ( 80, - COALESCE ( - ( - 59 ), + - 64 ), - CASE - 78 WHEN - 14 * - 45 + + ( + ( + + ( + 70 ) ) ) + - 37 * - + 18 * COUNT ( * ) THEN NULL ELSE + - 79 END ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT - CAST( - ( + COUNT( * ) ) AS SIGNED ) * + - 77 + COALESCE ( 31, + 33 ) * 49 * + 50 * - 97 * + COUNT( * ) AS col0
----
-7367227

skipif mysql # not compatible
query I rowsort label-4089
SELECT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * + - 77 + COALESCE ( 31, + 33 ) * 49 * + 50 * - 97 * + COUNT ( * ) AS col0
----
-7367227

query I rowsort
SELECT - 43 * 37 AS col1
----
-1591

query I rowsort
SELECT DISTINCT ( - - NULLIF ( - + 72, 12 + 37 + - 90 * - + 48 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - 72 * - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4092
SELECT - 72 * - COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - + 69 * - 5 AS col0
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL + - CASE COUNT( * ) WHEN 92 THEN + MAX( - 55 ) END * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + - CASE COUNT ( * ) WHEN 92 THEN + MAX ( - 55 ) END * 63 AS col2
----
NULL

query II rowsort
SELECT ALL - 96 AS col2, 77
----
-96
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4096
SELECT DISTINCT + + 77 - + - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST( NULL AS SIGNED ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 DIV - NULLIF ( 90, - CASE + + ( - - COUNT( * ) ) WHEN - 86 + + 63 THEN 67 + 54 WHEN 10 - + 89 THEN - ( - ( COUNT( * ) ) ) ELSE + 52 END + 75 ) + 71, - CAST( NULL AS SIGNED ) ) ) * - COALESCE ( - 1 - 62, 60 + NULLIF ( 28, ( - NULLIF ( 27, 63 DIV - 93 ) ) * - COUNT( * ) + 77 * + 41 ) * + 95 ) ELSE NULL END * + 31 + + 34, + 88 DIV - 9, - 73 )
----
40

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + + 77 - + - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 / - NULLIF ( 90, - CASE + + ( - - COUNT ( * ) ) WHEN - 86 + + 63 THEN 67 + 54 WHEN 10 - + 89 THEN - ( - ( COUNT ( * ) ) ) ELSE + 52 END + 75 ) + 71, - CAST ( NULL AS INTEGER ) ) ) * - COALESCE ( - 1 - 62, 60 + NULLIF ( 28, ( - NULLIF ( 27, 63 / - 93 ) ) * - COUNT ( * ) + 77 * + 41 ) * + 95 ) ELSE NULL END * + 31 + + 34, + 88 / - 9, - 73 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT + 39 * 62, - COUNT( * ) AS col1
----
2418
-1

skipif mysql # not compatible
query II rowsort label-4097
SELECT + 39 * 62, - COUNT ( * ) AS col1
----
2418
-1

query II rowsort
SELECT - - 72 AS col0, - 29
----
72
-29

query II rowsort
SELECT + ( 41 ), - 89 AS col1
----
41
-89

query I rowsort
SELECT ALL CASE - 0 WHEN 47 THEN 59 ELSE 23 END AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL - MAX( + + ( - 31 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - MAX ( + + ( - 31 ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT COUNT( + - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( + - 80 ) AS col0
----
1

query I rowsort
SELECT - - ( - - 79 ) col1
----
79

query I rowsort
SELECT - + 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - - 43 * + 28 + COUNT( * )
----
1205

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - 43 * + 28 + COUNT ( * )
----
1205

query I rowsort
SELECT + - 37 * - 85 * - - 59
----
185555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL + 32 * + COALESCE ( + - 83, - - 53 * - CAST( COUNT( * ) AS SIGNED ) + - 71, - 59 ) AS col0
----
-2656

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + 32 * + COALESCE ( + - 83, - - 53 * - CAST ( COUNT ( * ) AS INTEGER ) + - 71, - 59 ) AS col0
----
-2656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT - ( - + CAST( NULL AS SIGNED ) ) - - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT - ( - + CAST ( NULL AS INTEGER ) ) - - + 97
----
NULL

query I rowsort
SELECT - 93 col2
----
-93

query I rowsort
SELECT DISTINCT - 49 + - + 56 + - + 90 + + 33 AS col0
----
-162

query I rowsort
SELECT DISTINCT - 93
----
-93

query I rowsort
SELECT DISTINCT + 74 + - 3 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT ALL - + 47, + MIN( DISTINCT - 73 ) AS col2
----
-47
-73

skipif mysql # not compatible
query II rowsort label-4113
SELECT ALL - + 47, + MIN ( DISTINCT - 73 ) AS col2
----
-47
-73

query II rowsort
SELECT + + 98, - 10 AS col1
----
98
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT MIN( + + 67 ) + - 26 - 69 + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4115
SELECT MIN ( + + 67 ) + - 26 - 69 + + COUNT ( * )
----
-27

query I rowsort
SELECT + 60 col2
----
60

query I rowsort
SELECT ALL 39 + + + 20 + + 55 * - 4
----
-161

query I rowsort
SELECT DISTINCT 44 + - 25 AS col2
----
19

query I rowsort
SELECT 66 AS col1
----
66

query I rowsort
SELECT ALL - 66 AS col2
----
-66

query I rowsort
SELECT - 67 * + 34 + 84 + + 90
----
-2104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT CAST( NULL AS SIGNED ) * - + 6 * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT CAST ( NULL AS INTEGER ) * - + 6 * - 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 59 col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT 30 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT 30 / + 40 AS col2
----
0

query I rowsort
SELECT ALL - 32 * 26
----
-832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT - MIN( DISTINCT - 42 ) * - - 54 + 89 DIV + + 99 AS col2
----
2268

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - MIN ( DISTINCT - 42 ) * - - 54 + 89 / + + 99 AS col2
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + MAX( - 28 ) + - 54 + - 84 + - 20 AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-4127
SELECT + MAX ( - 28 ) + - 54 + - 84 + - 20 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT 0 * 89 AS col0, COUNT( * ) + + 24
----
0
25

skipif mysql # not compatible
query II rowsort label-4128
SELECT 0 * 89 AS col0, COUNT ( * ) + + 24
----
0
25

query I rowsort
SELECT ALL + 52 * 54 col2
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT SUM( + 72 ) + + 87 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-4130
SELECT SUM ( + 72 ) + + 87 AS col1
----
159

query I rowsort
SELECT + 46 + + + 13
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT + SUM( + + 75 ) DIV - + 57 + + + ( + 47 ) + + NULLIF ( - 28, - ( + 15 ) )
----
18

skipif mysql # not compatible
query I rowsort label-4132
SELECT + SUM ( + + 75 ) / - + 57 + + + ( + 47 ) + + NULLIF ( - 28, - ( + 15 ) )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT 77 * + + 73 AS col2, 81 * + COUNT( - + 96 )
----
5621
81

skipif mysql # not compatible
query II rowsort label-4133
SELECT 77 * + + 73 AS col2, 81 * + COUNT ( - + 96 )
----
5621
81

query I rowsort
SELECT - 73 * - + 26 + - - NULLIF ( + + 8, - - 45 )
----
1906

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT - - 70 + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - - 70 + + COUNT ( * )
----
71

query I rowsort
SELECT ALL - 11 + + + ( 92 ) + - 30 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - 39 + + MIN( + 80 ) + - 62 * 62
----
-3803

skipif mysql # not compatible
query I rowsort label-4137
SELECT - 39 + + MIN ( + 80 ) + - 62 * 62
----
-3803

query I rowsort
SELECT - NULLIF ( + - 22, - 36 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT ALL - - 57 DIV + - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - - 57 / + - 22 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4140
SELECT + CAST( NULL AS SIGNED ) * - 2 AS col2, - 65
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-4140
SELECT + CAST ( NULL AS INTEGER ) * - 2 AS col2, - 65
----
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL COUNT( * ) + - + 78 + 91 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL COUNT ( * ) + - + 78 + 91 AS col0
----
14

query II rowsort
SELECT - 58 AS col0, + 96 AS col2
----
-58
96

query I rowsort
SELECT ALL - 8 * - 20
----
160

query I rowsort
SELECT DISTINCT + 53 + + 64
----
117

query II rowsort
SELECT ALL - 66, 18 * + 66 - + - ( + - 52 ) + - + 84 AS col1
----
-66
1052

query I rowsort
SELECT DISTINCT - 90 * + + 28
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT SUM( - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4147
SELECT SUM ( - + 16 )
----
-16

query I rowsort
SELECT ALL 85 - + + 66 col1
----
19

query I rowsort
SELECT 21 * - 80
----
-1680

query II rowsort
SELECT ALL - 56 col2, 28 + + 52
----
-56
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT DISTINCT 32 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT 32 / + 92 AS col2
----
0

query II rowsort
SELECT DISTINCT - 72 AS col1, + 81 * + + 97 * + 47 AS col0
----
-72
369279

query I rowsort
SELECT 11 * - + 62 AS col1
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT COUNT( * ) * + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4154
SELECT COUNT ( * ) * + - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL CAST( NULL AS SIGNED ) - - 78 + CAST( + 89 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL CAST ( NULL AS INTEGER ) - - 78 + CAST ( + 89 AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 82, - 6 * + 49 + - 65 + + 8 * - 19 * 78 ) * - 4 AS col2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT COUNT( ALL + - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT COUNT ( ALL + - 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT - COUNT( - 30 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT - COUNT ( - 30 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT COUNT( * ) - + NULLIF ( - SUM( + 42 ), + CAST( NULL AS SIGNED ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4159
SELECT COUNT ( * ) - + NULLIF ( - SUM ( + 42 ), + CAST ( NULL AS INTEGER ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT 78 * - COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT 78 * - COUNT ( * ) col0
----
-78

query I rowsort
SELECT 46 * - 17 * - 83 * 6
----
389436

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - SUM( DISTINCT 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - SUM ( DISTINCT 88 )
----
-88

query I rowsort
SELECT + + 10
----
10

query I rowsort
SELECT 53 + - + 19
----
34

query I rowsort
SELECT + + ( 46 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4166
SELECT 56 * + + 16 - + + COUNT( * ) - ( + + CASE - + 25 WHEN + - 71 + + - 24 THEN NULL WHEN - + COALESCE ( + 91, - - ( 85 ) / - CAST( 96 AS DECIMAL ) * + - 37 + + MIN( ALL + 36 ), 85 * + 15 + - 10 - - 66 ) THEN ( - 70 ) * 89 - + 26 / + + 82 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT 56 * + + 16 - + + COUNT ( * ) - ( + + CASE - + 25 WHEN + - 71 + + - 24 THEN NULL WHEN - + COALESCE ( + 91, - - ( 85 ) / - CAST ( 96 AS REAL ) * + - 37 + + MIN ( ALL + 36 ), 85 * + 15 + - 10 - - 66 ) THEN ( - 70 ) * 89 - + 26 / + + 82 ELSE NULL END ) col1
----
NULL

query II rowsort
SELECT + 77, 42 AS col2
----
77
42

query I rowsort
SELECT DISTINCT 62 + - + ( + ( - COALESCE ( 78, + ( 47 ) * - 37, + - 71 ) ) ) + + 10 + ( 13 ) AS col1
----
163

query I rowsort
SELECT ALL - 4 + + 31
----
27

query I rowsort
SELECT ALL + + 97 + - 52 * - - 10 + 79
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - + SUM( DISTINCT 94 ) + - 43 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - + SUM ( DISTINCT 94 ) + - 43 AS col2
----
-137

query I rowsort
SELECT - 33 * - 43 AS col0
----
1419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT DISTINCT COUNT( * ) DIV ( + 54 ) + - 34 * + 4 + - 58 col2
----
-194

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT COUNT ( * ) / ( + 54 ) + - 34 * + 4 + - 58 col2
----
-194

query I rowsort
SELECT ALL - - 92 + 28
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT + ( - + 69 ) * - + 28 + 47 + - COUNT( * ) DIV + - 17 AS col1
----
1979

skipif mysql # not compatible
query I rowsort label-4176
SELECT + ( - + 69 ) * - + 28 + 47 + - COUNT ( * ) / + - 17 AS col1
----
1979

query I rowsort
SELECT - 1 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4178
SELECT - - 8 - + + COUNT( ALL + 59 ) DIV 30 * - + 11 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4178
SELECT - - 8 - + + COUNT ( ALL + 59 ) / 30 * - + 11 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - - COUNT( - 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4179
SELECT - - COUNT ( - 65 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT + COALESCE ( 14, CASE - 81 WHEN 61 + COUNT( * ) THEN - 90 END, - 30 * - 97 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + COALESCE ( 14, CASE - 81 WHEN 61 + COUNT ( * ) THEN - 90 END, - 30 * - 97 ) AS col2
----
14

query I rowsort
SELECT DISTINCT 69 + - 98 - 36 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL COALESCE ( + ( + MAX( DISTINCT ( - - ( 32 ) ) ) ), 92 + COUNT( * ) * - ( + ( + 46 ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL COALESCE ( + ( + MAX ( DISTINCT ( - - ( 32 ) ) ) ), 92 + COUNT ( * ) * - ( + ( + 46 ) ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT DISTINCT + COUNT( * ) - + 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT + COUNT ( * ) - + 64 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT MIN( ALL + - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT MIN ( ALL + - 53 ) AS col2
----
-53

query I rowsort
SELECT 29 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT ALL + CAST( NULL AS SIGNED ) - 70 * - + MAX( + 50 ) * - 66 * - + COUNT( * ) * + CAST( NULL AS SIGNED ) * - - 52 * + - 83 * COUNT( ALL + 73 ) - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + CAST ( NULL AS INTEGER ) - 70 * - + MAX ( + 50 ) * - 66 * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - 52 * + - 83 * COUNT ( ALL + 73 ) - - 64 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 44 * + - 96 AS col1
----
-4224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4188
SELECT ( - - CAST( + - 38 AS SIGNED ) ) DIV + + 47 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-4188
SELECT ( - - CAST ( + - 38 AS INTEGER ) ) / + + 47 + + 22
----
22

query I rowsort
SELECT - 79 * - COALESCE ( 40, + 44 ) AS col2
----
3160

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT - 38 + 71, - COUNT( * ) AS col0
----
33
-1

skipif mysql # not compatible
query II rowsort label-4190
SELECT - 38 + 71, - COUNT ( * ) AS col0
----
33
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT - 21 DIV - 40 - + 96 + - COUNT( * ) + 97 * + 44 - - + 69
----
4240

skipif mysql # not compatible
query I rowsort label-4191
SELECT - 21 / - 40 - + 96 + - COUNT ( * ) + 97 * + 44 - - + 69
----
4240

query I rowsort
SELECT ( 10 ) AS col1
----
10

query I rowsort
SELECT + 37 * + ( + 21 ) AS col2
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL + ( - SUM( 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL + ( - SUM ( 21 ) )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT ALL - ( - - 89 ) * 91 + + - 41 - + 56 * - 33 * - - 85 DIV - + COUNT( * ) AS col2
----
-165220

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - ( - - 89 ) * 91 + + - 41 - + 56 * - 33 * - - 85 / - + COUNT ( * ) AS col2
----
-165220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4196
SELECT DISTINCT + CAST( 37 AS SIGNED ) AS col0, - 81 AS col2
----
37
-81

skipif mysql # not compatible
query II rowsort label-4196
SELECT DISTINCT + CAST ( 37 AS INTEGER ) AS col0, - 81 AS col2
----
37
-81

query I rowsort
SELECT ALL + 91 AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT - 45 DIV 66 * - - 34 * - 8 * 62 * + 20
----
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 45 / 66 * - - 34 * - 8 * 62 * + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + + 99 * + MIN( DISTINCT - - ( + 63 ) ) * - 83 * + - 57
----
29507247

skipif mysql # not compatible
query I rowsort label-4199
SELECT + + 99 * + MIN ( DISTINCT - - ( + 63 ) ) * - 83 * + - 57
----
29507247

query I rowsort
SELECT DISTINCT + 88
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT + + COUNT( * ) + 72, 46 * - 38 + COALESCE ( + + COUNT( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
73
-1696

skipif mysql # not compatible
query II rowsort label-4201
SELECT + + COUNT ( * ) + 72, 46 * - 38 + COALESCE ( + + COUNT ( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
73
-1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT ALL - - 93 * - + 71 * + 82 + - - CAST( 99 AS SIGNED ) * - 54 * - - COUNT( * )
----
-546792

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - - 93 * - + 71 * + 82 + - - CAST ( 99 AS INTEGER ) * - 54 * - - COUNT ( * )
----
-546792

query I rowsort
SELECT ALL - 26 * - + 52 + + 54 AS col0
----
1406

query I rowsort
SELECT + 34 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT + 31 - - CAST( NULL AS SIGNED ) * - 33 / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 31 - - CAST ( NULL AS INTEGER ) * - 33 / 91 AS col1
----
NULL

query I rowsort
SELECT - - 19 AS col0
----
19

query I rowsort
SELECT + - 23 + - 5
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - + COUNT( 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4208
SELECT - + COUNT ( 5 ) AS col1
----
-1

query I rowsort
SELECT - 57 AS col2
----
-57

query I rowsort
SELECT - - 31 * - ( + 66 )
----
-2046

query I rowsort
SELECT ALL 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + - 62 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4212
SELECT + - 62 + + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL + COALESCE ( + 12, - + CASE - CAST( 57 AS SIGNED ) WHEN - 10 THEN NULL WHEN - COUNT( * ) * - 40 THEN NULL WHEN 36 THEN - + CASE 64 WHEN + + 65 THEN NULL WHEN + CASE + 66 WHEN - - COUNT( * ) THEN - 93 ELSE - NULLIF ( - ( 89 ), - - 46 ) + + 88 * 84 END THEN COALESCE ( - 38, - 28 ) + CASE - 59 WHEN 88 THEN + 13 ELSE NULL END END ELSE NULL END * 56 + + 44 )
----
12

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + COALESCE ( + 12, - + CASE - CAST ( 57 AS INTEGER ) WHEN - 10 THEN NULL WHEN - COUNT ( * ) * - 40 THEN NULL WHEN 36 THEN - + CASE 64 WHEN + + 65 THEN NULL WHEN + CASE + 66 WHEN - - COUNT ( * ) THEN - 93 ELSE - NULLIF ( - ( 89 ), - - 46 ) + + 88 * 84 END THEN COALESCE ( - 38, - 28 ) + CASE - 59 WHEN 88 THEN + 13 ELSE NULL END END ELSE NULL END * 56 + + 44 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL + 36 - + - 81 + + MAX( + 87 ) + NULLIF ( + - 32, COUNT( ALL 54 ) * - + COUNT( * ) + - COUNT( * ) ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + 36 - + - 81 + + MAX ( + 87 ) + NULLIF ( + - 32, COUNT ( ALL 54 ) * - + COUNT ( * ) + - COUNT ( * ) ) AS col0
----
172

query I rowsort
SELECT + 15 * - - 36 AS col2
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT DISTINCT 21 DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT 21 / - 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT + COUNT( * ) * + + 88 col1
----
88

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + COUNT ( * ) * + + 88 col1
----
88

query I rowsort
SELECT 76 col0
----
76

query I rowsort
SELECT - 68 + 7 AS col1
----
-61

query I rowsort
SELECT + 56 * 6
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - COUNT( * ) + 77 col0
----
76

skipif mysql # not compatible
query I rowsort label-4221
SELECT - COUNT ( * ) + 77 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT + MIN( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + MIN ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + SUM( 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + SUM ( 72 ) AS col1
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4224
SELECT ALL + CAST( NULL AS DECIMAL ), - 66 + - + 58 + CAST( NULL AS DECIMAL ) * + - 89 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4224
SELECT ALL + CAST ( NULL AS REAL ), - 66 + - + 58 + CAST ( NULL AS REAL ) * + - 89 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL + CASE + + COALESCE ( + - ( - 98 ), - - 20 * + + COUNT( * ) / AVG ( + 16 ) ) WHEN + CASE - SUM( + + 19 ) WHEN + 83 - + + 73 + - 49 - - - COUNT( * ) / 10 THEN - - 45 END THEN - 37 WHEN - - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + CASE + + COALESCE ( + - ( - 98 ), - - 20 * + + COUNT ( * ) / AVG ( + 16 ) ) WHEN + CASE - SUM ( + + 19 ) WHEN + 83 - + + 73 + - 49 - - - COUNT ( * ) / 10 THEN - - 45 END THEN - 37 WHEN - - 68 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4226
SELECT + 90 * CAST( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS SIGNED ) AS col1, 66 AS col1
----
4860
66

skipif mysql # not compatible
query II rowsort label-4226
SELECT + 90 * CAST ( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS INTEGER ) AS col1, 66 AS col1
----
4860
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - COUNT( * ) - + + 20
----
-21

skipif mysql # not compatible
query I rowsort label-4227
SELECT - COUNT ( * ) - + + 20
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4228
SELECT COALESCE ( - CAST( - 99 AS SIGNED ), - NULLIF ( - CAST( - 75 AS SIGNED ), - 12 ) ) DIV - 58 - - COALESCE ( 95, + 9 ) - MAX( - + 67 ) + + - 39 * - + 93 * COALESCE ( + ( + 53 ), + + 73 ) - - 10 - - - 87 * COUNT( * ) * - NULLIF ( - 49, - 32 - - 56 - 71 * - 87 ) + - + ( + ( 69 ) ) AS col2
----
188070

skipif mysql # not compatible
query I rowsort label-4228
SELECT COALESCE ( - CAST ( - 99 AS INTEGER ), - NULLIF ( - CAST ( - 75 AS INTEGER ), - 12 ) ) / - 58 - - COALESCE ( 95, + 9 ) - MAX ( - + 67 ) + + - 39 * - + 93 * COALESCE ( + ( + 53 ), + + 73 ) - - 10 - - - 87 * COUNT ( * ) * - NULLIF ( - 49, - 32 - - 56 - 71 * - 87 ) + - + ( + ( 69 ) ) AS col2
----
188070

query I rowsort
SELECT ALL + 11 * - 84 AS col0
----
-924

query I rowsort
SELECT - + 54 * - ( - 84 )
----
-4536

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT ALL + 50 DIV + 86 + + + 49 + + 44
----
93

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + 50 / + 86 + + + 49 + + 44
----
93

query I rowsort
SELECT DISTINCT - + 88 + - 83
----
-171

query I rowsort
SELECT ALL + + 26 * - 20
----
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 52 AS col0
----
-52

query I rowsort
SELECT + - 42
----
-42

query I rowsort
SELECT - 21 * + 93 + - 99
----
-2052

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4238
SELECT ALL - 88 / + 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - 88 / + 32 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 34 * + + 34 col0
----
1156

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT 65 DIV + + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT 65 / + + 89 AS col1
----
0

query I rowsort
SELECT ALL + 8 AS col0
----
8

query I rowsort
SELECT ALL 86 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4243
SELECT - 97, 69 * + - 13 * - 99 + + CAST( NULL AS SIGNED ) + 62 + + 11 * COUNT( * ) AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-4243
SELECT - 97, 69 * + - 13 * - 99 + + CAST ( NULL AS INTEGER ) + 62 + + 11 * COUNT ( * ) AS col0
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL - MAX( ( - 77 ) ) - + 46
----
31

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - MAX ( ( - 77 ) ) - + 46
----
31

query I rowsort
SELECT ALL - 70 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT ( SUM( DISTINCT + + 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT ( SUM ( DISTINCT + + 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL COUNT( * ) - + ( 29 ) + - 31 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL COUNT ( * ) - + ( 29 ) + - 31 AS col2
----
-59

query I rowsort
SELECT DISTINCT 5 AS col0
----
5

query I rowsort
SELECT ALL 11 AS col2
----
11

query II rowsort
SELECT - 12, + 78 + - ( - 79 ) AS col2
----
-12
157

query I rowsort
SELECT 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT COUNT( * ) * - - 98
----
98

skipif mysql # not compatible
query I rowsort label-4252
SELECT COUNT ( * ) * - - 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ( + + 62 ) * + MIN( - 32 ) col1
----
-1984

skipif mysql # not compatible
query I rowsort label-4253
SELECT ( + + 62 ) * + MIN ( - 32 ) col1
----
-1984

query I rowsort
SELECT DISTINCT 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT 20 - 2, NULLIF ( 46, + 15 ) + - COUNT( * ) AS col2
----
18
45

skipif mysql # not compatible
query II rowsort label-4255
SELECT 20 - 2, NULLIF ( 46, + 15 ) + - COUNT ( * ) AS col2
----
18
45

query I rowsort
SELECT ALL 22 AS col0
----
22

query II rowsort
SELECT ALL 74 AS col0, 32 * - 31 * - - ( - + 54 ) + - 79
----
74
53489

query I rowsort
SELECT ( 52 ) - + - 63 + + CASE + - 85 WHEN + 91 THEN + - 78 * + 27 / + 51 / - - 89 END * + 62 * + 50 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT CAST( NULL AS SIGNED ) * 57 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT CAST ( NULL AS INTEGER ) * 57 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT 71 * + - NULLIF ( - 82, + 20 - + NULLIF ( - 10, + COUNT( * ) ) * + AVG ( ALL + ( - 40 ) ) * + + 14 + + 15 + - - 40 * + 31 / + + ( - + 36 ) ) AS col1, 15 AS col0
----
5822
15

skipif mysql # not compatible
query II rowsort label-4261
SELECT 71 * + - NULLIF ( - 82, + 20 - + NULLIF ( - 10, + COUNT ( * ) ) * + AVG ( ALL + ( - 40 ) ) * + + 14 + + 15 + - - 40 * + 31 / + + ( - + 36 ) ) AS col1, 15 AS col0
----
5822
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT + 6 * + + 15 + - CAST( NULL AS SIGNED ) - - + 51 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT + 6 * + + 15 + - CAST ( NULL AS INTEGER ) - - + 51 * 73
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4263
SELECT - CAST( NULL AS DECIMAL ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT - CAST ( NULL AS REAL ) * + 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT 39 * - - COUNT( DISTINCT 10 ) * 91 + + ( + - 49 ) + + + COUNT( + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT 39 * - - COUNT ( DISTINCT 10 ) * 91 + + ( + - 49 ) + + + COUNT ( + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT ALL 24 * + 55 + - 62 * - 96 DIV + COUNT( * )
----
7272

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL 24 * + 55 + - 62 * - 96 / + COUNT ( * )
----
7272

query I rowsort
SELECT DISTINCT - 75 * 89
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL + 17 + + COUNT( * ) * - 36
----
-19

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + 17 + + COUNT ( * ) * - 36
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - - COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4269
SELECT ALL - 20, + CAST( NULL AS DECIMAL ) AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL - 20, + CAST ( NULL AS REAL ) AS col1
----
-20
NULL

query I rowsort
SELECT + - 79
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT + ( 25 ), SUM( - 37 ) col0
----
25
-37

skipif mysql # not compatible
query II rowsort label-4271
SELECT + ( 25 ), SUM ( - 37 ) col0
----
25
-37

query I rowsort
SELECT ALL - + 73 col1
----
-73

query II rowsort
SELECT + - 56, ( 27 ) AS col1
----
-56
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4274
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4274
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 35 - + + NULLIF ( + - 25, + 69 ) * + 2 - + ( + + 56 ) + + 62
----
91

query I rowsort
SELECT 79 + - - 63
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4277
SELECT DISTINCT + + 73 * + - 14 col0, + COUNT( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN( - + CAST( NULL AS SIGNED ) ) ), + + COUNT( * ) ) ) AS col0
----
-1022
-72

skipif mysql # not compatible
query II rowsort label-4277
SELECT DISTINCT + + 73 * + - 14 col0, + COUNT ( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX ( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN ( - + CAST ( NULL AS INTEGER ) ) ), + + COUNT ( * ) ) ) AS col0
----
-1022
-72

query I rowsort
SELECT DISTINCT + + ( 72 ) * ( + 80 ) + - - 83 AS col0
----
5843

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT ALL - 69 AS col1, MAX( + 45 )
----
-69
45

skipif mysql # not compatible
query II rowsort label-4279
SELECT ALL - 69 AS col1, MAX ( + 45 )
----
-69
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4280
SELECT + COUNT( * ) * - CASE + + MAX( - 70 ) WHEN + - 8 THEN 16 * COUNT( * ) / 55 WHEN - CAST( + 22 AS DECIMAL ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) + ( + 31 ) * 37 - - 99 THEN NULL WHEN - 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT + COUNT ( * ) * - CASE + + MAX ( - 70 ) WHEN + - 8 THEN 16 * COUNT ( * ) / 55 WHEN - CAST ( + 22 AS REAL ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + ( + 31 ) * 37 - - 99 THEN NULL WHEN - 8 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL + - NULLIF ( + CAST( NULL AS SIGNED ), - 50 / + 10 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + - NULLIF ( + CAST ( NULL AS INTEGER ), - 50 / + 10 ) * 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT MAX( ALL + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT MAX ( ALL + 11 )
----
11

query I rowsort
SELECT DISTINCT - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 5 + + - MAX( ALL + 99 ) + - 55 * + - 71
----
3811

skipif mysql # not compatible
query I rowsort label-4284
SELECT 5 + + - MAX ( ALL + 99 ) + - 55 * + - 71
----
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL SUM( DISTINCT + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL SUM ( DISTINCT + 83 ) AS col1
----
83

query II rowsort
SELECT 14 * - 85 AS col1, - 58
----
-1190
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL MIN( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL MIN ( 80 )
----
80

query I rowsort
SELECT ALL 20 * + 19 AS col1
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL + ( - SUM( DISTINCT 5 ) ) + - NULLIF ( 66, 46 * - 29 + ( + NULLIF ( + + 50, + - MAX( + 33 ) + - 92 ) ) ) * - - MIN( + + 52 ) AS col0
----
-3437

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + ( - SUM ( DISTINCT 5 ) ) + - NULLIF ( 66, 46 * - 29 + ( + NULLIF ( + + 50, + - MAX ( + 33 ) + - 92 ) ) ) * - - MIN ( + + 52 ) AS col0
----
-3437

query I rowsort
SELECT DISTINCT 14 + - 10 col2
----
4

onlyif mysql # aggregate syntax: 
query III rowsort label-4291
SELECT DISTINCT + 28 + + 3, + 67 * - COUNT( * ) + - 21 AS col0, + COUNT( - 51 ) * MIN( 55 ) AS col0
----
31
-88
55

skipif mysql # not compatible
query III rowsort label-4291
SELECT DISTINCT + 28 + + 3, + 67 * - COUNT ( * ) + - 21 AS col0, + COUNT ( - 51 ) * MIN ( 55 ) AS col0
----
31
-88
55

query I rowsort
SELECT ALL 32 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT COUNT( * ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-4293
SELECT COUNT ( * ) * - 35
----
-35

query I rowsort
SELECT ( NULLIF ( 63, + 53 ) ) + NULLIF ( - CASE 54 WHEN - - 39 THEN - 52 ELSE 39 + 59 END, + 93 )
----
-35

query I rowsort
SELECT ALL 61 * - 65 AS col2
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL 13 + + 12 + - SUM( ALL 20 ) * 89
----
-1755

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL 13 + + 12 + - SUM ( ALL 20 ) * 89
----
-1755

onlyif mysql # aggregate syntax: 
query II rowsort label-4297
SELECT DISTINCT COALESCE ( + 48, COUNT( * ) ) AS col0, 48 AS col0
----
48
48

skipif mysql # not compatible
query II rowsort label-4297
SELECT DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0
----
48
48

query I rowsort
SELECT DISTINCT + - 12
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT + 52 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 52 / + 57 AS col2
----
0

query I rowsort
SELECT DISTINCT + - 96
----
-96

query I rowsort
SELECT ALL - - 25 * + - 38
----
-950

query I rowsort
SELECT + + 7 - + ( - 22 ) - 40 * ( - + 68 )
----
2749

query I rowsort
SELECT + - 92 AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4304
SELECT + CAST( NULL AS SIGNED ) * - 58 + 73 - + + COUNT( * ) + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT + CAST ( NULL AS INTEGER ) * - 58 + 73 - + + COUNT ( * ) + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL CASE + COUNT( * ) WHEN COUNT( * ) + + 28 + + - 53 + + CASE 76 WHEN - - 68 * - 75 * - + COUNT( * ) THEN 43 WHEN 31 * + 66 + - 48 THEN - + 97 * - COUNT( * ) ELSE 58 * - SUM( ALL ( + 16 ) ) END + - COALESCE ( + 26, 41 ) * 61 - - + 40 * + + 10 * + 77 THEN + SUM( ALL + + 65 ) * - 44 WHEN 62 THEN - 59 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL CASE + COUNT ( * ) WHEN COUNT ( * ) + + 28 + + - 53 + + CASE 76 WHEN - - 68 * - 75 * - + COUNT ( * ) THEN 43 WHEN 31 * + 66 + - 48 THEN - + 97 * - COUNT ( * ) ELSE 58 * - SUM ( ALL ( + 16 ) ) END + - COALESCE ( + 26, 41 ) * 61 - - + 40 * + + 10 * + 77 THEN + SUM ( ALL + + 65 ) * - 44 WHEN 62 THEN - 59 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + 27 * + 78 * + COUNT( * )
----
2106

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 27 * + 78 * + COUNT ( * )
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT + 37 * - 3 + - 95 DIV - 75 + - - 77
----
-33

skipif mysql # not compatible
query I rowsort label-4307
SELECT + 37 * - 3 + - 95 / - 75 + - - 77
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT ALL COALESCE ( 57, - + COUNT( * ) DIV + 86 * - COUNT( * ) ) * - 24 * + 29 * - - MIN( + 58 ) + 81
----
-2300895

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL COALESCE ( 57, - + COUNT ( * ) / + 86 * - COUNT ( * ) ) * - 24 * + 29 * - - MIN ( + 58 ) + 81
----
-2300895

query I rowsort
SELECT DISTINCT 28 * - 56 * - 44 * - 12 * + + 13
----
-10762752

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + CASE - COUNT( * ) WHEN + 90 * 26 + 26 THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + CASE - COUNT ( * ) WHEN + 90 * 26 + 26 THEN - 10 END
----
NULL

query I rowsort
SELECT ALL + - 30 AS col0
----
-30

query I rowsort
SELECT DISTINCT + 15 AS col0
----
15

query I rowsort
SELECT + - 73
----
-73

query I rowsort
SELECT ALL + - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT + COUNT( ALL - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + COUNT ( ALL - 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT MIN( - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4316
SELECT MIN ( - 53 ) AS col1
----
-53

query I rowsort
SELECT - 21 * - - 48
----
-1008

query I rowsort
SELECT ALL - 14 + - 18 + + 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL MIN( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL MIN ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT DISTINCT 56 + + 7
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4321
SELECT ALL - 87 * - + COALESCE ( 5, 44 * + + COUNT( * ) + + + ( - 37 ), + 7 DIV AVG ( ALL + ( + 2 ) ) * - 42 )
----
435

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - 87 * - + COALESCE ( 5, 44 * + + COUNT ( * ) + + + ( - 37 ), + 7 / AVG ( ALL + ( + 2 ) ) * - 42 )
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT - 85 * + - CASE - 97 WHEN - 67 * 52 + + + COUNT( * ) THEN NULL WHEN - - 17 THEN - + COUNT( * ) * + 46 * + - 28 ELSE - - 81 + + 59 - - 27 END
----
14195

skipif mysql # not compatible
query I rowsort label-4322
SELECT - 85 * + - CASE - 97 WHEN - 67 * 52 + + + COUNT ( * ) THEN NULL WHEN - - 17 THEN - + COUNT ( * ) * + 46 * + - 28 ELSE - - 81 + + 59 - - 27 END
----
14195

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT SUM( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT SUM ( DISTINCT + 48 )
----
48

query II rowsort
SELECT 30 AS col2, + 93 AS col2
----
30
93

query I rowsort
SELECT - 73 + - - 36
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT - 69 + - 95 DIV + + 13 + - 95 + CAST( 60 AS SIGNED ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - 69 + - 95 / + + 13 + - 95 + CAST ( 60 AS INTEGER ) AS col1
----
-111

query I rowsort
SELECT 22 AS col2
----
22

query I rowsort
SELECT ALL - 52 + 22 AS col1
----
-30

query I rowsort
SELECT - 19 - + 23
----
-42

query I rowsort
SELECT ALL COALESCE ( + 19, + 61 )
----
19

query I rowsort
SELECT ALL 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - SUM( + - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4332
SELECT - SUM ( + - 60 ) AS col2
----
60

query I rowsort
SELECT DISTINCT ( - + ( - 20 ) ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ALL + 52 - - 6 DIV - 68 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + 52 - - 6 / - 68 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT DISTINCT 30, COUNT( * ) * + - ( - 51 ) * NULLIF ( + + CAST( + + 72 AS SIGNED ), - AVG ( 11 ) + + NULLIF ( + 46, - - 92 - - 57 ) ) + + ( - - 3 ) AS col2
----
30
3675

skipif mysql # not compatible
query II rowsort label-4335
SELECT DISTINCT 30, COUNT ( * ) * + - ( - 51 ) * NULLIF ( + + CAST ( + + 72 AS INTEGER ), - AVG ( 11 ) + + NULLIF ( + 46, - - 92 - - 57 ) ) + + ( - - 3 ) AS col2
----
30
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT - 89 + - + 35 + - 40 DIV + 77 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-4336
SELECT - 89 + - + 35 + - 40 / + 77 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + MAX( - 80 ) * - 78 * 55 AS col2
----
343200

skipif mysql # not compatible
query I rowsort label-4337
SELECT + MAX ( - 80 ) * - 78 * 55 AS col2
----
343200

query I rowsort
SELECT ALL - - 6 * + - 22
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT - - COUNT( * ) AS col2, 47 - - 62 + + 27 * + - MIN( + - 35 ) AS col2
----
1
1054

skipif mysql # not compatible
query II rowsort label-4339
SELECT - - COUNT ( * ) AS col2, 47 - - 62 + + 27 * + - MIN ( + - 35 ) AS col2
----
1
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + COUNT( * ) * 71 + + - COUNT( * ) - - 47 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-4340
SELECT + COUNT ( * ) * 71 + + - COUNT ( * ) - - 47 AS col1
----
117

query I rowsort
SELECT + + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + MIN( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + MIN ( + 13 ) AS col2
----
13

query I rowsort
SELECT - + 70 * 96 + - 35 + - + 23 col2
----
-6778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT + + CAST( + 56 AS SIGNED ) * + 22 + 92 + + 22
----
1346

skipif mysql # not compatible
query I rowsort label-4344
SELECT + + CAST ( + 56 AS INTEGER ) * + 22 + 92 + + 22
----
1346

query I rowsort
SELECT ALL + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + - COUNT( ALL + 48 ) * + 74 + - + 95
----
-169

skipif mysql # not compatible
query I rowsort label-4346
SELECT + - COUNT ( ALL + 48 ) * + 74 + - + 95
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT DISTINCT - - 64 * - CAST( 24 AS SIGNED ) * 33
----
-50688

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - - 64 * - CAST ( 24 AS INTEGER ) * 33
----
-50688

query I rowsort
SELECT - 47 * + 79 * + 44 + - ( + ( - - 15 ) ) * - - ( + 26 ) * 41 AS col0
----
-179362

query I rowsort
SELECT ALL + 19 AS col1
----
19

query I rowsort
SELECT ALL + + 35
----
35

query I rowsort
SELECT DISTINCT + + 53
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT ALL 58 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL 58 / 53
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - 59 * + + 27 / - CASE - - 97 WHEN - 52 THEN NULL WHEN 52 * - - 83 * COUNT( * ) + 2 THEN + 60 END + - 51 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 59 * + + 27 / - CASE - - 97 WHEN - 52 THEN NULL WHEN 52 * - - 83 * COUNT ( * ) + 2 THEN + 60 END + - 51 + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT COUNT( + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4354
SELECT COUNT ( + 89 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - + 88 DIV 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4355
SELECT - + 88 / 31 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 17 * 68 * 6 + CASE ( + 38 ) WHEN + 1 THEN - ( - - 89 ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL - 33 * - 90 + 69 * - ( + ( + 57 ) ) * + + 57 + 16 - - - 55 AS col0, 0
----
-221250
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT ALL + 84 * - 65 + MIN( 13 ) AS col1, - 47
----
-5447
-47

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL + 84 * - 65 + MIN ( 13 ) AS col1, - 47
----
-5447
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT + 0 * + 78 * 33 + - COALESCE ( 50, - ( - 72 ), + 92 + + - COUNT( DISTINCT 89 ) * - COUNT( * ) ) + CAST( 0 AS SIGNED ) * 28 * - CAST( + 29 AS SIGNED ) * + 56 + - 42 col1
----
-92

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + 0 * + 78 * 33 + - COALESCE ( 50, - ( - 72 ), + 92 + + - COUNT ( DISTINCT 89 ) * - COUNT ( * ) ) + CAST ( 0 AS INTEGER ) * 28 * - CAST ( + 29 AS INTEGER ) * + 56 + - 42 col1
----
-92

query I rowsort
SELECT + 73 + - 99 + - 2
----
-28

query I rowsort
SELECT COALESCE ( - - 10, + 83 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT - CAST( + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-4362
SELECT - CAST ( + 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT SUM( + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4363
SELECT SUM ( + - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL SUM( ALL - 40 ) * COUNT( * ) * - COUNT( * ) * + ( + 40 ) * + - COUNT( * ) + + 94 AS col1
----
-1506

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL SUM ( ALL - 40 ) * COUNT ( * ) * - COUNT ( * ) * + ( + 40 ) * + - COUNT ( * ) + + 94 AS col1
----
-1506

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT 84 + - - 3 + + 72 + + MIN( ALL + 20 ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-4365
SELECT 84 + - - 3 + + 72 + + MIN ( ALL + 20 ) AS col0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4366
SELECT CAST( - - 54 AS DECIMAL ) + + 33 - + 23 - - + CASE + 50 WHEN + - CAST( NULL AS SIGNED ) + - 95 THEN - - 26 WHEN 45 + - 99 THEN NULL END * + - 4 / - - 97 / - 37 + - + NULLIF ( ( + - 52 ), - MAX( + 69 ) ), + 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4366
SELECT CAST ( - - 54 AS REAL ) + + 33 - + 23 - - + CASE + 50 WHEN + - CAST ( NULL AS INTEGER ) + - 95 THEN - - 26 WHEN 45 + - 99 THEN NULL END * + - 4 / - - 97 / - 37 + - + NULLIF ( ( + - 52 ), - MAX ( + 69 ) ), + 18 AS col1
----
NULL
18

query I rowsort
SELECT ALL 36 col2
----
36

query I rowsort
SELECT DISTINCT 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 74 + - COUNT( * ) + NULLIF ( + 26, - 67 ) * + - 23 AS col2
----
-525

skipif mysql # not compatible
query I rowsort label-4369
SELECT 74 + - COUNT ( * ) + NULLIF ( + 26, - 67 ) * + - 23 AS col2
----
-525

query I rowsort
SELECT - 47 AS col0
----
-47

query I rowsort
SELECT ALL + 48 * - - ( 78 ) * - 54
----
-202176

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT DISTINCT - NULLIF ( 74, COUNT( + 11 ) * MIN( 92 ) + - 16 * + COALESCE ( MAX( + - 69 ), - 79, COUNT( * ) ) ) AS col0, 94
----
-74
94

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT - NULLIF ( 74, COUNT ( + 11 ) * MIN ( 92 ) + - 16 * + COALESCE ( MAX ( + - 69 ), - 79, COUNT ( * ) ) ) AS col0, 94
----
-74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + SUM( DISTINCT 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4373
SELECT + SUM ( DISTINCT 10 ) AS col0
----
10

query I rowsort
SELECT + 70 + - 61
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT + 9 DIV + + NULLIF ( + - 65, + 14 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 9 / + + NULLIF ( + - 65, + 14 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL + COUNT( 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + COUNT ( 53 ) AS col0
----
1

query I rowsort
SELECT - 87 AS col2
----
-87

query I rowsort
SELECT ALL 9
----
9

query I rowsort
SELECT 85 + - + 43 + 71 + - 14 AS col1
----
99

query I rowsort
SELECT DISTINCT - - 1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT 31 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT 31 / + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - 59 * + COUNT( * ) * 55 col1
----
-3245

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 59 * + COUNT ( * ) * 55 col1
----
-3245

query I rowsort
SELECT + - 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - + COALESCE ( 96, + 97 - + + MIN( + 11 ) - + 39 )
----
-96

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - + COALESCE ( 96, + 97 - + + MIN ( + 11 ) - + 39 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT - + CASE 0 WHEN - 79 THEN MIN( ALL 61 ) + + CASE 90 WHEN + 51 * + 89 * - 52 * - COUNT( * ) / - - 1 + 98 + + - 45 + 40 * - 31 + - 85 THEN NULL WHEN + COUNT( * ) * - + ( - - CAST( + - 36 AS SIGNED ) ) THEN + - COALESCE ( + 96, - ( - 29 ) / - 54, + - 99 ) END ELSE NULL END * ( + NULLIF ( - 49, + 1 - 63 * - CASE - 28 WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( ALL 94 ) / 73 + 7 END / - CAST( NULL AS SIGNED ) - + CASE + COUNT( * ) WHEN + 31 / 97 THEN 42 + + 54 * 46 END ) ) * 24 + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT - + CASE 0 WHEN - 79 THEN MIN ( ALL 61 ) + + CASE 90 WHEN + 51 * + 89 * - 52 * - COUNT ( * ) / - - 1 + 98 + + - 45 + 40 * - 31 + - 85 THEN NULL WHEN + COUNT ( * ) * - + ( - - CAST ( + - 36 AS INTEGER ) ) THEN + - COALESCE ( + 96, - ( - 29 ) / - 54, + - 99 ) END ELSE NULL END * ( + NULLIF ( - 49, + 1 - 63 * - CASE - 28 WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( ALL 94 ) / 73 + 7 END / - CAST ( NULL AS INTEGER ) - + CASE + COUNT ( * ) WHEN + 31 / 97 THEN 42 + + 54 * 46 END ) ) * 24 + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + 25 * - + ( + - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-4386
SELECT + 25 * - + ( + - COUNT ( * ) )
----
25

query I rowsort
SELECT DISTINCT - 75 AS col0
----
-75

query I rowsort
SELECT DISTINCT - 59 + + + 65 AS col0
----
6

query I rowsort
SELECT ALL - - 92
----
92

query I rowsort
SELECT - ( - 6 ) * - 31 + + - 3
----
-189

query I rowsort
SELECT ALL - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4392
SELECT DISTINCT 39 + - ( COUNT( * ) ) * + 99 DIV + 57, 15 - 12 + COALESCE ( + + 68, + + 94 + + + 71 DIV + 26 ) * + COUNT( * ) + + - 18 AS col1
----
38
53

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT 39 + - ( COUNT ( * ) ) * + 99 / + 57, 15 - 12 + COALESCE ( + + 68, + + 94 + + + 71 / + 26 ) * + COUNT ( * ) + + - 18 AS col1
----
38
53

query I rowsort
SELECT ALL 98 + - 17 AS col1
----
81

query I rowsort
SELECT ALL - 85 AS col2
----
-85

query I rowsort
SELECT 20 * + - 62
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL 38 - - 25 * + + 31 + - NULLIF ( + - 62, MIN( ALL 5 ) ) + - - 37 - + 46 + 39 * + 18 col1
----
1568

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL 38 - - 25 * + + 31 + - NULLIF ( + - 62, MIN ( ALL 5 ) ) + - - 37 - + 46 + 39 * + 18 col1
----
1568

query I rowsort
SELECT DISTINCT 55 * + NULLIF ( + 16, - + 83 * - - 45 * + - 24 ) AS col2
----
880

query I rowsort
SELECT DISTINCT ( ( - 25 ) ) - - + 70
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT 31 * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 31 * - COUNT ( * )
----
-31

query I rowsort
SELECT DISTINCT 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL 2 - COUNT( + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL 2 - COUNT ( + 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT COUNT( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) )
----
-62

query II rowsort
SELECT DISTINCT 96 * + 36 * - - 93 AS col2, 56 AS col2
----
321408
56

query II rowsort
SELECT 98 col1, + ( + + 81 )
----
98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT MAX( + + 28 ) + + + 96 + - 60 - - 73 * 69 * + COUNT( - 45 ) * + 54
----
272062

skipif mysql # not compatible
query I rowsort label-4405
SELECT MAX ( + + 28 ) + + + 96 + - 60 - - 73 * 69 * + COUNT ( - 45 ) * + 54
----
272062

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL 48 - - 47 * - COUNT( * ) - + 36 * + 25
----
-899

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL 48 - - 47 * - COUNT ( * ) - + 36 * + 25
----
-899

query I rowsort
SELECT + 84 + + 11 AS col2
----
95

query I rowsort
SELECT DISTINCT - ( + + 12 )
----
-12

query I rowsort
SELECT DISTINCT 15 AS col0
----
15

query I rowsort
SELECT - 7 - - + 67
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + - 39 * - - CASE + 63 WHEN 90 - - 78 THEN NULL WHEN - + 60 + - 15 + + SUM( - 29 ) + - 72 THEN NULL ELSE - COUNT( + 67 ) + 52 END + + 65 col1
----
-1924

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + - 39 * - - CASE + 63 WHEN 90 - - 78 THEN NULL WHEN - + 60 + - 15 + + SUM ( - 29 ) + - 72 THEN NULL ELSE - COUNT ( + 67 ) + 52 END + + 65 col1
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + COUNT( * ) * 90 * 85 col0
----
7650

skipif mysql # not compatible
query I rowsort label-4412
SELECT + COUNT ( * ) * 90 * 85 col0
----
7650

query I rowsort
SELECT ALL + 13 AS col0
----
13

query I rowsort
SELECT - 34 + - - 1 + - - 94 AS col1
----
61

query I rowsort
SELECT DISTINCT 71 AS col0
----
71

query I rowsort
SELECT ALL + 82 * - 80 AS col2
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT + SUM( - + 15 ) * + 24 AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-4417
SELECT + SUM ( - + 15 ) * + 24 AS col1
----
-360

query I rowsort
SELECT 49 + - - 67
----
116

query I rowsort
SELECT ( 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4421
SELECT 69 DIV - + 90 + + - 75 + CAST( - 40 AS SIGNED ) * - ( + + CASE - MIN( DISTINCT 31 ) WHEN - + 68 THEN NULL ELSE - ( + 1 ) END ) * 25 + + 74 - - 31 AS col2
----
-970

skipif mysql # not compatible
query I rowsort label-4421
SELECT 69 / - + 90 + + - 75 + CAST ( - 40 AS INTEGER ) * - ( + + CASE - MIN ( DISTINCT 31 ) WHEN - + 68 THEN NULL ELSE - ( + 1 ) END ) * 25 + + 74 - - 31 AS col2
----
-970

query I rowsort
SELECT DISTINCT - + 58 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL - - 54 * 98 + CAST( 43 AS SIGNED ) AS col0
----
5335

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - - 54 * 98 + CAST ( 43 AS INTEGER ) AS col0
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT - 13 * COUNT( * ) + 62 + - 59 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT - 13 * COUNT ( * ) + 62 + - 59 AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + 66 / - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + 66 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT 48 DIV 25 * - - 93 + + 69 AS col1
----
162

skipif mysql # not compatible
query I rowsort label-4426
SELECT 48 / 25 * - - 93 + + 69 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - COUNT( * ) * 41 + - - 61 + 38 + - 67
----
-9

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - COUNT ( * ) * 41 + - - 61 + 38 + - 67
----
-9

query I rowsort
SELECT ALL 57 * 58
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - ( + ( - COALESCE ( - - 29, CASE 21 WHEN + COUNT( * ) THEN + - 48 + - 58 END ) ) ) * - + ( - 86 ) AS col2
----
2494

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - ( + ( - COALESCE ( - - 29, CASE 21 WHEN + COUNT ( * ) THEN + - 48 + - 58 END ) ) ) * - + ( - 86 ) AS col2
----
2494

query I rowsort
SELECT 20 + + 95 AS col0
----
115

query II rowsort
SELECT + 5 col2, - 45 + + 70 AS col2
----
5
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT COUNT( * ) AS col0, 80
----
1
80

skipif mysql # not compatible
query II rowsort label-4432
SELECT COUNT ( * ) AS col0, 80
----
1
80

query I rowsort
SELECT - 93 * 81 + + - 15
----
-7548

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT MIN( + + 28 ) * - 88 * 8 col2
----
-19712

skipif mysql # not compatible
query I rowsort label-4434
SELECT MIN ( + + 28 ) * - 88 * 8 col2
----
-19712

query II rowsort
SELECT ALL NULLIF ( 13, - 4 ) * + + ( - 96 ) - - 91 AS col1, 58 * 46
----
-1157
2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4436
SELECT + COUNT( * ) AS col0, - 5 DIV 88 + - - 96
----
1
96

skipif mysql # not compatible
query II rowsort label-4436
SELECT + COUNT ( * ) AS col0, - 5 / 88 + - - 96
----
1
96

query I rowsort
SELECT ALL + 92 * 19 AS col0
----
1748

query I rowsort
SELECT DISTINCT + 87 AS col1
----
87

query I rowsort
SELECT ALL + 83 - - 95 AS col1
----
178

query I rowsort
SELECT ALL + 29 AS col2
----
29

query I rowsort
SELECT ALL + ( 36 ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4442
SELECT ALL MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) / + 5 + - 97 AS col2, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4442
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS REAL ) ) / + 5 + - 97 AS col2, 61
----
NULL
61

query I rowsort
SELECT + ( + 61 ) * - 37
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT CASE + 54 WHEN - COUNT( * ) THEN + NULLIF ( + + 8, + 92 * + 10 ) WHEN + 86 - - 44 * 90 * + 65 + - 8 * 68 - + 83 * 40 * 54 THEN NULL WHEN - 92 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT CASE + 54 WHEN - COUNT ( * ) THEN + NULLIF ( + + 8, + 92 * + 10 ) WHEN + 86 - - 44 * 90 * + 65 + - 8 * 68 - + 83 * 40 * 54 THEN NULL WHEN - 92 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL NULLIF ( - 72, + - COUNT( * ) + - 61 * + 79 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL NULLIF ( - 72, + - COUNT ( * ) + - 61 * + 79 ) AS col1
----
-72

query II rowsort
SELECT 32, 0 col2
----
32
0

query I rowsort
SELECT ( + 18 ) * + - 36 + - 94 + + 54 AS col0
----
-688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT + CAST( NULL AS SIGNED ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT + CAST ( NULL AS INTEGER ) * 82
----
NULL

query I rowsort
SELECT - ( - 56 ) * - 78 AS col0
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT ALL COUNT( * ) DIV + 44 * - + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL COUNT ( * ) / + 44 * - + 86 AS col1
----
0

query I rowsort
SELECT - 45 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT ALL - 30 DIV + 64 * - 9
----
0

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - 30 / + 64 * - 9
----
0

query I rowsort
SELECT ALL - 77 * - 23 AS col0
----
1771

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL COUNT( * ) + + + MIN( ALL + CASE - 46 WHEN - 40 * + - ( 3 ) - - + 92 THEN + + 90 * 93 * + 13 END ), - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL COUNT ( * ) + + + MIN ( ALL + CASE - 46 WHEN - 40 * + - ( 3 ) - - + 92 THEN + + 90 * 93 * + 13 END ), - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT + 5 + - ( 3 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT DISTINCT + 86 + - COUNT( * ) DIV + + 36 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + 86 + - COUNT ( * ) / + + 36 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT ALL - COUNT( * ) DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - COUNT ( * ) / + 14
----
0

query I rowsort
SELECT ALL + 58 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT - CAST( + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4459
SELECT - CAST ( + 34 AS INTEGER ) AS col2
----
-34

query I rowsort
SELECT + + 42 + 87 AS col1
----
129

query I rowsort
SELECT DISTINCT 20 + + 90 - - + 78 AS col0
----
188

query I rowsort
SELECT 28 col1
----
28

query I rowsort
SELECT ALL NULLIF ( 32, + - 31 )
----
32

query I rowsort
SELECT + 34 * ( 31 ) + - - 9 * - + 65 + - - 63 col0
----
532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT ALL + 51 DIV - ( - 67 ) * SUM( DISTINCT - 35 ) - - 98 - + 68 + - - 22 + + - 0
----
52

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + 51 / - ( - 67 ) * SUM ( DISTINCT - 35 ) - - 98 - + 68 + - - 22 + + - 0
----
52

query I rowsort
SELECT + + 96 AS col2
----
96

query I rowsort
SELECT + - 71 - - - 12
----
-83

query I rowsort
SELECT - 39 * + + 44 * + ( - 5 ) AS col2
----
8580

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4469
SELECT ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT COUNT( * ) * - 29 - 56 DIV - 51 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT COUNT ( * ) * - 29 - 56 / - 51 AS col1
----
-28

query II rowsort
SELECT ( + 56 ) AS col0, - 91 col1
----
56
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT - NULLIF ( - 19, + 49 * - 53 ) + - 89, - NULLIF ( + + 18, - 25 + + 71 + + + COALESCE ( + - 29, + 62, 39 * + - 61 ) - 14 * 2 * COALESCE ( - - 87, + 91, + 46 ) * COUNT( * ) + + 77 / + 16 ) + + 42 + 3 * + 4 * + - 5 AS col0
----
-70
-36

skipif mysql # not compatible
query II rowsort label-4472
SELECT - NULLIF ( - 19, + 49 * - 53 ) + - 89, - NULLIF ( + + 18, - 25 + + 71 + + + COALESCE ( + - 29, + 62, 39 * + - 61 ) - 14 * 2 * COALESCE ( - - 87, + 91, + 46 ) * COUNT ( * ) + + 77 / + 16 ) + + 42 + 3 * + 4 * + - 5 AS col0
----
-70
-36

query I rowsort
SELECT - 3 * - + 42
----
126

query I rowsort
SELECT DISTINCT + COALESCE ( + 55, + 8 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
0

query I rowsort
SELECT + 69 AS col2
----
69

query I rowsort
SELECT ALL 1 * + + ( - ( + - 26 ) ) - 10 AS col2
----
16

query I rowsort
SELECT - 73 * + + 2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT ALL - 25 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - 25 / - 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT - 90 DIV - 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4480
SELECT - 90 / - 43 AS col0
----
2

query I rowsort
SELECT - ( + + 94 ) * - + 2 col1
----
188

query I rowsort
SELECT ALL + COALESCE ( + + 28, - + 74 ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 7 * + - 44 AS col0
----
308

query I rowsort
SELECT ALL + ( + 65 )
----
65

query I rowsort
SELECT NULLIF ( 46, ( - - 28 ) * + 36 ) AS col0
----
46

query I rowsort
SELECT NULLIF ( - - 87, + 67 )
----
87

query I rowsort
SELECT DISTINCT + 16 * - 97 * + - 8 AS col0
----
12416

query I rowsort
SELECT ALL + 35 * + + 4
----
140

query I rowsort
SELECT - - 37 * - 42 - - 20 col0
----
-1534

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4490
SELECT ( + - 40 ), + CAST( NULL AS SIGNED ) * - 69 AS col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-4490
SELECT ( + - 40 ), + CAST ( NULL AS INTEGER ) * - 69 AS col1
----
-40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT - 55 + SUM( + 40 ) / - 51 + - CAST( NULL AS SIGNED ) / - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 55 + SUM ( + 40 ) / - 51 + - CAST ( NULL AS INTEGER ) / - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + 25 * + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 25 * + COUNT ( * )
----
25

query I rowsort
SELECT ALL + 73 col0
----
73

query I rowsort
SELECT - 69 + + ( - 32 ) AS col0
----
-101

query II rowsort
SELECT - 83 + NULLIF ( + 10, - 11 * 0 ) col0, 48
----
-73
48

onlyif mysql # DIV for integer division: 
query II rowsort label-4496
SELECT + 52 DIV 79, - NULLIF ( - 88, + + 52 ) AS col2
----
0
88

skipif mysql # not compatible
query II rowsort label-4496
SELECT + 52 / 79, - NULLIF ( - 88, + + 52 ) AS col2
----
0
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT - + 10 * - 33 AS col0, + CASE + 27 WHEN - COUNT( * ) + - 77 + + 97 * + 33 THEN 35 END
----
330
NULL

skipif mysql # not compatible
query II rowsort label-4497
SELECT - + 10 * - 33 AS col0, + CASE + 27 WHEN - COUNT ( * ) + - 77 + + 97 * + 33 THEN 35 END
----
330
NULL

query I rowsort
SELECT + - 35 + - 59 AS col0
----
-94

query I rowsort
SELECT ALL - 98 AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4500
SELECT DISTINCT - 72 * CASE - - CAST( - 70 AS SIGNED ) WHEN - 17 * + - MIN( ALL - + 44 ) THEN + 41 ELSE + 79 END
----
-5688

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - 72 * CASE - - CAST ( - 70 AS INTEGER ) WHEN - 17 * + - MIN ( ALL - + 44 ) THEN + 41 ELSE + 79 END
----
-5688

query I rowsort
SELECT + + 61 + 23 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL - CAST( - + NULLIF ( ( - + CAST( 34 AS SIGNED ) ), + COALESCE ( 65, + 9 ) ) AS SIGNED ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - CAST ( - + NULLIF ( ( - + CAST ( 34 AS INTEGER ) ), + COALESCE ( 65, + 9 ) ) AS INTEGER ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL 97 * COUNT( * ) - - + 98 * - COALESCE ( 26, 59 * COUNT( * ) ) * 68 col0
----
-173167

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL 97 * COUNT ( * ) - - + 98 * - COALESCE ( 26, 59 * COUNT ( * ) ) * 68 col0
----
-173167

query I rowsort
SELECT ALL - 80 - 90
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL MAX( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL MAX ( + 70 )
----
70

query I rowsort
SELECT + 55 - 49 + + ( - 92 ) col1
----
-86

query I rowsort
SELECT ALL 8 AS col0
----
8

query I rowsort
SELECT - + 11 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + 99 + - + MAX( - + 55 ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 99 + - + MAX ( - + 55 ) AS col2
----
154

query I rowsort
SELECT ALL - - 38
----
38

query I rowsort
SELECT DISTINCT - 7 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT 50 - - CASE + 88 WHEN - + CAST( NULL AS SIGNED ) / 85 + 85 + AVG ( + 37 ) THEN NULL WHEN 44 THEN + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT 50 - - CASE + 88 WHEN - + CAST ( NULL AS INTEGER ) / 85 + 85 + AVG ( + 37 ) THEN NULL WHEN 44 THEN + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT ALL - 20, - COUNT( * ) AS col1
----
-20
-1

skipif mysql # not compatible
query II rowsort label-4513
SELECT ALL - 20, - COUNT ( * ) AS col1
----
-20
-1

query II rowsort
SELECT 76 AS col1, 62 AS col1
----
76
62

query I rowsort
SELECT ALL - 94 col2
----
-94

query I rowsort
SELECT DISTINCT - 20 * - 68 col2
----
1360

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT ALL - COUNT( * ) col1, - 2 + 11
----
-1
9

skipif mysql # not compatible
query II rowsort label-4517
SELECT ALL - COUNT ( * ) col1, - 2 + 11
----
-1
9

query I rowsort
SELECT DISTINCT 38 * 66 AS col1
----
2508

query I rowsort
SELECT 84 * + 44
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT ( - + MAX( - + 68 ) ) DIV + 51 - 62
----
-61

skipif mysql # not compatible
query I rowsort label-4520
SELECT ( - + MAX ( - + 68 ) ) / + 51 - 62
----
-61

query I rowsort
SELECT DISTINCT 73 * - 92 AS col1
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + 46 * - 49 + 26 * COUNT( * ) + - 32 + COUNT( * ) + + 84 * + ( MAX( - 65 ) ) * + - 88 + - - COUNT( * ) AS col1
----
478222

skipif mysql # not compatible
query I rowsort label-4522
SELECT + 46 * - 49 + 26 * COUNT ( * ) + - 32 + COUNT ( * ) + + 84 * + ( MAX ( - 65 ) ) * + - 88 + - - COUNT ( * ) AS col1
----
478222

query II rowsort
SELECT 14 AS col2, 42 AS col0
----
14
42

query I rowsort
SELECT ALL - 38
----
-38

query I rowsort
SELECT 57 * + ( + - 16 ) + - 71 + 43 AS col1
----
-940

query I rowsort
SELECT DISTINCT 37 * 81
----
2997

onlyif mysql # DIV for integer division: 
query II rowsort label-4527
SELECT 90 + - ( + 65 ) AS col2, 7 DIV - 19
----
25
0

skipif mysql # not compatible
query II rowsort label-4527
SELECT 90 + - ( + 65 ) AS col2, 7 / - 19
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL 13 + COUNT( * ) col2
----
14

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 13 + COUNT ( * ) col2
----
14

query I rowsort
SELECT DISTINCT - ( - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT COUNT( * ) + - - 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT COUNT ( * ) + - - 57 AS col2
----
58

query II rowsort
SELECT ALL - ( - 82 ) + - 27 AS col2, - 69
----
55
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL - CAST( 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - CAST ( 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL - COUNT( * ) + + - 67 + 93
----
25

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - COUNT ( * ) + + - 67 + 93
----
25

query II rowsort
SELECT 14 AS col0, 89 col1
----
14
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - - 8 * + - COUNT( * ) + 72 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4535
SELECT - - 8 * + - COUNT ( * ) + 72 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4536
SELECT 44 + - COUNT( - CAST( 45 AS DECIMAL ) ) + 70 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4536
SELECT 44 + - COUNT ( - CAST ( 45 AS REAL ) ) + 70 AS col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT - CASE + 96 WHEN ( + COUNT( * ) ) THEN - COALESCE ( 98, - - 60, - CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT - CASE + 96 WHEN ( + COUNT ( * ) ) THEN - COALESCE ( 98, - - 60, - CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 45 + + 30 AS col1
----
75

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4539
SELECT - CAST( NULL AS DECIMAL ), + 74 DIV 3 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-4539
SELECT - CAST ( NULL AS REAL ), + 74 / 3 AS col2
----
NULL
24

query II rowsort
SELECT ( 75 ) * + 9, - 29 * - 89 AS col2
----
675
2581

query I rowsort
SELECT DISTINCT - ( + 91 ) * - - 8 AS col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT COUNT( * ) * - - 77 * 38 + 44 + + - 53
----
2917

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( * ) * - - 77 * 38 + 44 + + - 53
----
2917

query I rowsort
SELECT - 25 * + + 53 col0
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT 34 + + + 6 + - COUNT( * ) * COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4544
SELECT 34 + + + 6 + - COUNT ( * ) * COUNT ( * ) AS col1
----
39

query I rowsort
SELECT ALL ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + 92 * - NULLIF ( + 72, - AVG ( DISTINCT + 69 ) ) + COUNT( * ) + + COUNT( * ) AS col0
----
-6622

skipif mysql # not compatible
query I rowsort label-4546
SELECT + 92 * - NULLIF ( + 72, - AVG ( DISTINCT + 69 ) ) + COUNT ( * ) + + COUNT ( * ) AS col0
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT + 62 * COUNT( * ) * 82 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-4547
SELECT + 62 * COUNT ( * ) * 82 AS col0
----
5084

query I rowsort
SELECT ALL 31 * + NULLIF ( - 83, + + 18 ) AS col0
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + NULLIF ( - COUNT( * ), CASE + ( - 30 ) WHEN + ( + 89 ) THEN 84 / + 99 END * - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + NULLIF ( - COUNT ( * ), CASE + ( - 30 ) WHEN + ( + 89 ) THEN 84 / + 99 END * - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - SUM( - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4550
SELECT - SUM ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT 55 + + ( CASE - COUNT( * ) WHEN - - COUNT( * ) + + 74 THEN + 95 * - 63 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT 55 + + ( CASE - COUNT ( * ) WHEN - - COUNT ( * ) + + 74 THEN + 95 * - 63 END )
----
NULL

query II rowsort
SELECT DISTINCT 33 * - 25 AS col2, - 24 AS col0
----
-825
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT COUNT( ALL + 51 ) + + CASE 29 WHEN + 81 THEN - COUNT( * ) + + - ( 86 ) + - 75 WHEN + 7 THEN NULL ELSE 40 * + 75 END * - 56
----
-167999

skipif mysql # not compatible
query I rowsort label-4553
SELECT COUNT ( ALL + 51 ) + + CASE 29 WHEN + 81 THEN - COUNT ( * ) + + - ( 86 ) + - 75 WHEN + 7 THEN NULL ELSE 40 * + 75 END * - 56
----
-167999

query I rowsort
SELECT ALL + 24 * + 61 * - 48 AS col2
----
-70272

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL - 61 * - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - 61 * - COUNT ( * )
----
61

query I rowsort
SELECT ALL 38 * 89 AS col0
----
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4557
SELECT 55 * + COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT + 80 * + - COUNT( * ) * + 65 + + - 87 * - 86 / - CAST( NULL AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 80 * + - COUNT ( * ) * + 65 + + - 87 * - 86 / - CAST ( NULL AS INTEGER ) + + 34
----
NULL

query I rowsort
SELECT DISTINCT - 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 64 * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4560
SELECT 64 * COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL COUNT ( * ) + 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT SUM( ALL - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4563
SELECT SUM ( ALL - 12 ) AS col1
----
-12

query I rowsort
SELECT + 30 col2
----
30

query I rowsort
SELECT ( + 69 ) - - 79
----
148

query I rowsort
SELECT ALL - 28 AS col2
----
-28

query I rowsort
SELECT 78 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ( COUNT( ALL + 45 ) ) * - ( - 49 ) - + NULLIF ( - 62, - 53 * + 86 ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-4568
SELECT ( COUNT ( ALL + 45 ) ) * - ( - 49 ) - + NULLIF ( - 62, - 53 * + 86 ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT COUNT( * ) * - ( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-4569
SELECT COUNT ( * ) * - ( 22 )
----
-22

query II rowsort
SELECT DISTINCT 83 * + - CASE - 30 WHEN 85 THEN - - 7 END * - - 71 / + COALESCE ( - 11, 90 ) col2, 21 AS col0
----
NULL
21

query I rowsort
SELECT ALL - ( - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + 65 * - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + 65 * - COUNT ( * )
----
-65

query I rowsort
SELECT + ( - - 50 )
----
50

query I rowsort
SELECT ALL - - ( 4 ) + + 31
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT - SUM( - ( - 88 ) ) - - 92 AS col1, 42 * + 68 * - - 57 AS col0
----
4
162792

skipif mysql # not compatible
query II rowsort label-4575
SELECT - SUM ( - ( - 88 ) ) - - 92 AS col1, 42 * + 68 * - - 57 AS col0
----
4
162792

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL - 5 * - 13 * + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - 5 * - 13 * + COUNT ( * ) col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT 92 DIV + 4 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4577
SELECT 92 / + 4 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4578
SELECT DISTINCT SUM( DISTINCT + - 26 ) AS col2, + 78 * - - 18 - - 6 * - ( ( + 39 ) ) * + 63 - + 86 + + + NULLIF ( - 94, - AVG ( + 68 ) ) + - NULLIF ( 30, - 67 * + + 8 + - 75 + + COUNT( * ) - + ( - CAST( COUNT( * ) AS SIGNED ) ) ) * COUNT( * ) * + - 29 col0
----
-26
-12648

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT SUM ( DISTINCT + - 26 ) AS col2, + 78 * - - 18 - - 6 * - ( ( + 39 ) ) * + 63 - + 86 + + + NULLIF ( - 94, - AVG ( + 68 ) ) + - NULLIF ( 30, - 67 * + + 8 + - 75 + + COUNT ( * ) - + ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) * COUNT ( * ) * + - 29 col0
----
-26
-12648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - - 88 AS col0
----
NULL

query I rowsort
SELECT - - 69 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT ALL 70 DIV SUM( DISTINCT + 7 ) * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 70 / SUM ( DISTINCT + 7 ) * COUNT ( * )
----
10

query I rowsort
SELECT 72 + + 54 + - 15
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT + 10 DIV + ( + - 17 )
----
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT + 10 / + ( + - 17 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4584
SELECT ALL + + 21 DIV - 16 AS col2, - 0 + + 71 col1
----
-1
71

skipif mysql # not compatible
query II rowsort label-4584
SELECT ALL + + 21 / - 16 AS col2, - 0 + + 71 col1
----
-1
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT ( + + 91 ) + - - 64 + + COUNT( * ) col0, + 64 AS col2
----
156
64

skipif mysql # not compatible
query II rowsort label-4585
SELECT ( + + 91 ) + - - 64 + + COUNT ( * ) col0, + 64 AS col2
----
156
64

query I rowsort
SELECT 61 - 83
----
-22

query I rowsort
SELECT - - 48 AS col0
----
48

query I rowsort
SELECT 8 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + ( + MAX( DISTINCT + 3 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT + ( + MAX ( DISTINCT + 3 ) ) AS col2
----
3

query I rowsort
SELECT ALL 43 col1
----
43

query I rowsort
SELECT DISTINCT - ( 61 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT - CAST( NULL AS SIGNED ) + + + 65 - - 96 * + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT - CAST ( NULL AS INTEGER ) + + + 65 - - 96 * + 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4593
SELECT DISTINCT - NULLIF ( - - 43, 82 + - ( COUNT( * ) ) + CASE 24 WHEN - COUNT( * ) THEN NULL ELSE - - AVG ( 98 ) * - ( 93 ) END * - + NULLIF ( + + 24, - - 69 + - CAST( MAX( ALL 3 ) AS SIGNED ) + - 71 + + 76 * 62 * 45 + COUNT( * ) ) * 66 * 38 * + CASE + COUNT( * ) WHEN + 58 * + + 95 * 25 + - 75 * 17 + NULLIF ( COUNT( * ), 47 * 99 ) + 4 * + + 83 THEN + - 95 WHEN - 27 THEN - CAST( NULL AS DECIMAL ) + 20 END ) * + 23 col2
----
-989

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - NULLIF ( - - 43, 82 + - ( COUNT ( * ) ) + CASE 24 WHEN - COUNT ( * ) THEN NULL ELSE - - AVG ( 98 ) * - ( 93 ) END * - + NULLIF ( + + 24, - - 69 + - CAST ( MAX ( ALL 3 ) AS INTEGER ) + - 71 + + 76 * 62 * 45 + COUNT ( * ) ) * 66 * 38 * + CASE + COUNT ( * ) WHEN + 58 * + + 95 * 25 + - 75 * 17 + NULLIF ( COUNT ( * ), 47 * 99 ) + 4 * + + 83 THEN + - 95 WHEN - 27 THEN - CAST ( NULL AS REAL ) + 20 END ) * + 23 col2
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - SUM( - 14 ) + + 78 * - 3 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-4594
SELECT - SUM ( - 14 ) + + 78 * - 3 AS col2
----
-220

query I rowsort
SELECT ALL + 38 * - 13
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - SUM( DISTINCT + ( + - 79 ) ) * - 38 AS col1
----
-3002

skipif mysql # not compatible
query I rowsort label-4596
SELECT - SUM ( DISTINCT + ( + - 79 ) ) * - 38 AS col1
----
-3002

query I rowsort
SELECT ALL NULLIF ( 74, + 11 * - 71 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT - ( + COALESCE ( - ( - 57 ), 72 DIV + + 63 ) ) + + 49 * + MIN( - 2 ) DIV + + 99
----
-57

skipif mysql # not compatible
query I rowsort label-4598
SELECT - ( + COALESCE ( - ( - 57 ), 72 / + + 63 ) ) + + 49 * + MIN ( - 2 ) / + + 99
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4599
SELECT + 44 * COALESCE ( SUM( ALL ( - 72 ) ), + - 17 DIV + - COUNT( + 32 ) + 23 ) * 86 * - - 75 + + 32
----
-20433568

skipif mysql # not compatible
query I rowsort label-4599
SELECT + 44 * COALESCE ( SUM ( ALL ( - 72 ) ), + - 17 / + - COUNT ( + 32 ) + 23 ) * 86 * - - 75 + + 32
----
-20433568

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT + 93 + MAX( + ( + 37 ) )
----
130

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + 93 + MAX ( + ( + 37 ) )
----
130

query I rowsort
SELECT ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL 32 * + COUNT( * ) + - MAX( 59 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL 32 * + COUNT ( * ) + - MAX ( 59 ) AS col2
----
-27

query I rowsort
SELECT ( + 75 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL + 3 DIV - COALESCE ( + 42, + 3, + 34 - - 90 + - + 31 * + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + 3 / - COALESCE ( + 42, + 3, + 34 - - 90 + - + 31 * + 44 )
----
0

query II rowsort
SELECT ALL + 64 AS col1, 89
----
64
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL 69 * + CAST( NULL AS SIGNED ) + - + ( - 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL 69 * + CAST ( NULL AS INTEGER ) + - + ( - 10 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4607
SELECT - ( - + 27 ) + - + NULLIF ( + - 82, - CAST( NULL AS SIGNED ) ) * + 70, COUNT( * ) * + 5 AS col2, COUNT( * ) AS col0
----
5767
5
1

skipif mysql # not compatible
query III rowsort label-4607
SELECT - ( - + 27 ) + - + NULLIF ( + - 82, - CAST ( NULL AS INTEGER ) ) * + 70, COUNT ( * ) * + 5 AS col2, COUNT ( * ) AS col0
----
5767
5
1

query I rowsort
SELECT ALL - 4 * + 25 * + 35 AS col1
----
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COUNT( * ) + 9 + + 73 * COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COUNT ( * ) + 9 + + 73 * COUNT ( * )
----
81

query I rowsort
SELECT + 54 - 11
----
43

query I rowsort
SELECT + 12 * + 43
----
516

query I rowsort
SELECT ALL + - 75
----
-75

query I rowsort
SELECT DISTINCT + + ( + 86 ) AS col0
----
86

query I rowsort
SELECT ALL + + 97
----
97

query I rowsort
SELECT ALL 2 * - 75
----
-150

query I rowsort
SELECT + - 48 + + + 27 AS col1
----
-21

query I rowsort
SELECT DISTINCT + 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL - AVG ( DISTINCT + + 73 ) * ( CAST( NULL AS SIGNED ) ) * - + 14 + - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - AVG ( DISTINCT + + 73 ) * ( CAST ( NULL AS INTEGER ) ) * - + 14 + - - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + 8 + + 49 AS col0
----
57

query I rowsort
SELECT + 47 * + 50 AS col1
----
2350

query I rowsort
SELECT - 37 col2
----
-37

query I rowsort
SELECT ALL - 66
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-4623
SELECT ALL - NULLIF ( - 20, 31 ) AS col0, 9 DIV - + 75 AS col1
----
20
0

skipif mysql # not compatible
query II rowsort label-4623
SELECT ALL - NULLIF ( - 20, 31 ) AS col0, 9 / - + 75 AS col1
----
20
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT + CAST( 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4624
SELECT + CAST ( 22 AS INTEGER )
----
22

query I rowsort
SELECT DISTINCT + 24 + 7
----
31

query I rowsort
SELECT DISTINCT 94 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT - - 55 DIV - 62 * 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT - - 55 / - 62 * 32 AS col0
----
0

query I rowsort
SELECT - 49 AS col1
----
-49

query II rowsort
SELECT - 52 AS col2, 36
----
-52
36

query I rowsort
SELECT - 26 * 14 AS col1
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT DISTINCT + COUNT( * ) + - 45 * + CAST( + 65 AS SIGNED ) + 86
----
-2838

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + COUNT ( * ) + - 45 * + CAST ( + 65 AS INTEGER ) + 86
----
-2838

query I rowsort
SELECT ALL + 7 + 9 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT - CAST( + 47 AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4633
SELECT - CAST ( + 47 AS INTEGER ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL - COUNT( * ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - COUNT ( * ) + - 61
----
-62

query I rowsort
SELECT - 18 AS col1
----
-18

query I rowsort
SELECT ALL ( + - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT ALL CAST( - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL CAST ( - 18 AS INTEGER )
----
-18

query I rowsort
SELECT 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL + COUNT( + + 99 ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + COUNT ( + + 99 ) + - 31
----
-30

query I rowsort
SELECT DISTINCT + 90 * - 61
----
-5490

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + ( - - ( - - 13 ) ) + + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4641
SELECT + ( - - ( - - 13 ) ) + + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4642
SELECT + 86 AS col0, - COUNT( * ) AS col2
----
86
-1

skipif mysql # not compatible
query II rowsort label-4642
SELECT + 86 AS col0, - COUNT ( * ) AS col2
----
86
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT DISTINCT + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT + CAST ( - 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT - 1 * COALESCE ( - 6, + 50 + - 39, - - ( - 60 ) - + SUM( - 36 ) ) AS col2, - 4 AS col1
----
6
-4

skipif mysql # not compatible
query II rowsort label-4644
SELECT - 1 * COALESCE ( - 6, + 50 + - 39, - - ( - 60 ) - + SUM ( - 36 ) ) AS col2, - 4 AS col1
----
6
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT - 18 DIV 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4645
SELECT - 18 / 13 AS col2
----
-1

query II rowsort
SELECT + - 99, - 56 * - 80 * + ( + 14 ) * + + 15 AS col0
----
-99
940800

query II rowsort
SELECT ALL + + 72 AS col0, ( - 12 ) * - 71 AS col1
----
72
852

query II rowsort
SELECT + - 29, + ( + 65 ) * - 4 AS col1
----
-29
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT ALL - 53 DIV 66 - + 70 + + + 24 * 12 AS col2
----
218

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - 53 / 66 - + 70 + + + 24 * 12 AS col2
----
218

query I rowsort
SELECT ALL + 83 * + + 78
----
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - - 54 * - COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - - 54 * - COUNT ( * ) col1
----
-54

query I rowsort
SELECT ALL + 63 AS col2
----
63

query I rowsort
SELECT - 58 * + - 23 - - 81 - + 63
----
1352

query I rowsort
SELECT 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT + + COUNT( * ) * + + 26 * + 55
----
1430

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + + COUNT ( * ) * + + 26 * + 55
----
1430

query I rowsort
SELECT - 22 * 79 + + ( - 89 )
----
-1827

onlyif mysql # aggregate syntax: 
query II rowsort label-4657
SELECT 26 AS col1, NULLIF ( + + 71, COUNT( * ) )
----
26
71

skipif mysql # not compatible
query II rowsort label-4657
SELECT 26 AS col1, NULLIF ( + + 71, COUNT ( * ) )
----
26
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL - SUM( + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - SUM ( + 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4659
SELECT 63 AS col0, 45 * + 67 * 67 * COUNT( * ) * + CAST( NULL AS SIGNED ) col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4659
SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT MIN( DISTINCT 33 ) - - 14 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4660
SELECT MIN ( DISTINCT 33 ) - - 14 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL + 81 + - ( + - ( 99 ) ) + - - 90 + - + 85 * - - COUNT( * ) * + 22
----
-1600

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 81 + - ( + - ( 99 ) ) + - - 90 + - + 85 * - - COUNT ( * ) * + 22
----
-1600

query II rowsort
SELECT ALL - 68, 87 AS col0
----
-68
87

query I rowsort
SELECT ALL - 6 + + + ( + - 55 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4664
SELECT + 44 AS col2, 85 / + 49 + CAST( NULL AS SIGNED ) / - - 70 * - 15
----
44
NULL

skipif mysql # not compatible
query II rowsort label-4664
SELECT + 44 AS col2, 85 / + 49 + CAST ( NULL AS INTEGER ) / - - 70 * - 15
----
44
NULL

query I rowsort
SELECT ALL + 95 + + + 58 + + 85 + + 58
----
296

query I rowsort
SELECT - - 1 col0
----
1

query I rowsort
SELECT - 38 + - - 46
----
8

query I rowsort
SELECT - 52 AS col1
----
-52

query I rowsort
SELECT 67 + + + 89 * + 0
----
67

query I rowsort
SELECT 3 * 79
----
237

query I rowsort
SELECT DISTINCT 57
----
57

query I rowsort
SELECT ALL 63 AS col2
----
63

query II rowsort
SELECT ALL 61 + 11, - 49 AS col0
----
72
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT 93 + + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4674
SELECT 93 + + - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT DISTINCT 69 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT 83 DIV 29 DIV - + 29
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT 83 / 29 / - + 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT ALL 43 DIV 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL 43 / 77 AS col1
----
0

query I rowsort
SELECT DISTINCT 80 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT 28 + COALESCE ( - COALESCE ( - 6, + 99, + + MIN( DISTINCT - 75 ) ), NULLIF ( COUNT( * ), 20 + + CAST( + + COALESCE ( + + CAST( NULL AS SIGNED ), + 71, - 24 + - - 36 ) AS SIGNED ) - - 97 * COALESCE ( 94, 47, 56 - + - 28 ) * + - 30 * + + 46 ) * + + COALESCE ( + COUNT( * ), + - 59 ) - 32 + 93 + - COUNT( * ) + - - MIN( 13 ), - 86 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4679
SELECT 28 + COALESCE ( - COALESCE ( - 6, + 99, + + MIN ( DISTINCT - 75 ) ), NULLIF ( COUNT ( * ), 20 + + CAST ( + + COALESCE ( + + CAST ( NULL AS INTEGER ), + 71, - 24 + - - 36 ) AS INTEGER ) - - 97 * COALESCE ( 94, 47, 56 - + - 28 ) * + - 30 * + + 46 ) * + + COALESCE ( + COUNT ( * ), + - 59 ) - 32 + 93 + - COUNT ( * ) + - - MIN ( 13 ), - 86 ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT 37 + - MIN( - 12 ) + - 32 * - 19 * + + COUNT( * ) col1
----
657

skipif mysql # not compatible
query I rowsort label-4680
SELECT 37 + - MIN ( - 12 ) + - 32 * - 19 * + + COUNT ( * ) col1
----
657

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT COUNT( * ) * 35 AS col0, - 19 + + + 77
----
35
58

skipif mysql # not compatible
query II rowsort label-4681
SELECT COUNT ( * ) * 35 AS col0, - 19 + + + 77
----
35
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT ALL 7 DIV + 31 * 92
----
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL 7 / + 31 * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT COUNT( * ) - - - 32
----
-31

skipif mysql # not compatible
query I rowsort label-4683
SELECT COUNT ( * ) - - - 32
----
-31

query I rowsort
SELECT 24 + 85 - + + 90 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL ( + ( + CASE - 54 WHEN COUNT( * ) + - COUNT( * ) THEN NULL ELSE - 46 + - 59 END ) ) * COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL ( + ( + CASE - 54 WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL ELSE - 46 + - 59 END ) ) * COUNT ( * )
----
-105

query I rowsort
SELECT + - 44
----
-44

query I rowsort
SELECT ALL - - 79 AS col0
----
79

query I rowsort
SELECT DISTINCT - + 19 AS col2
----
-19

query I rowsort
SELECT ALL - 26 * - 61 AS col2
----
1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT 15 * + 14 * + CAST( NULL AS SIGNED ) - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT 15 * + 14 * + CAST ( NULL AS INTEGER ) - - 14
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( 50, + 97 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - 31 * - COUNT( * ) + - - 41 * - 68
----
-2757

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 31 * - COUNT ( * ) + - - 41 * - 68
----
-2757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT CASE 34 WHEN 83 * + 67 THEN + + 79 / + + COUNT( * ) WHEN - - NULLIF ( - - COUNT( * ), 15 ) + - + 99 - + 79 * + - 71 THEN NULL WHEN + 10 + - 73 + - - 48 - - 22 / - 17 + + COUNT( * ) + + + 75 THEN + CAST( - 74 AS SIGNED ) + - - 77 * 40 + - COUNT( * ) + + 14 END - - - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT CASE 34 WHEN 83 * + 67 THEN + + 79 / + + COUNT ( * ) WHEN - - NULLIF ( - - COUNT ( * ), 15 ) + - + 99 - + 79 * + - 71 THEN NULL WHEN + 10 + - 73 + - - 48 - - 22 / - 17 + + COUNT ( * ) + + + 75 THEN + CAST ( - 74 AS INTEGER ) + - - 77 * 40 + - COUNT ( * ) + + 14 END - - - 38 AS col0
----
NULL

query I rowsort
SELECT + + 82 AS col0
----
82

query II rowsort
SELECT + 20 * - - 51, 52 * + - 85 * + 35 AS col1
----
1020
-154700

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4696
SELECT ALL - MIN( ALL - + 21 ) AS col2, - 94 AS col1, 38 DIV + - 93 * - + 74 * 93 * - - COUNT( - 11 ) + - 21 AS col1
----
21
-94
-21

skipif mysql # not compatible
query III rowsort label-4696
SELECT ALL - MIN ( ALL - + 21 ) AS col2, - 94 AS col1, 38 / + - 93 * - + 74 * 93 * - - COUNT ( - 11 ) + - 21 AS col1
----
21
-94
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT DISTINCT - + COUNT( * ) DIV COUNT( DISTINCT - 26 ) * 86 + - MAX( DISTINCT + 17 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - + COUNT ( * ) / COUNT ( DISTINCT - 26 ) * 86 + - MAX ( DISTINCT + 17 ) AS col1
----
-103

query I rowsort
SELECT DISTINCT - + 84 + - - 49
----
-35

query I rowsort
SELECT DISTINCT - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT ALL - COALESCE ( - 54, 61 DIV - - 4 * + 92 ) + + + 55 - NULLIF ( - ( - 64 ), - 16 * SUM( + - 31 ) ) * + NULLIF ( + ( 54 ), 20 ) * - 32 + + 58 AS col2
----
110759

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - COALESCE ( - 54, 61 / - - 4 * + 92 ) + + + 55 - NULLIF ( - ( - 64 ), - 16 * SUM ( + - 31 ) ) * + NULLIF ( + ( 54 ), 20 ) * - 32 + + 58 AS col2
----
110759

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT 93 + COUNT( - 85 )
----
94

skipif mysql # not compatible
query I rowsort label-4701
SELECT 93 + COUNT ( - 85 )
----
94

query I rowsort
SELECT ALL - - 34 + 1 * - - 85
----
119

query I rowsort
SELECT + 55 * 79 + - 92
----
4253

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL 9 + + SUM( DISTINCT + 29 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 9 + + SUM ( DISTINCT + 29 ) col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT 85 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-4705
SELECT 85 / + 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - COUNT( * ) * COUNT( * ) + - - ( + 31 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4706
SELECT - COUNT ( * ) * COUNT ( * ) + - - ( + 31 ) AS col1
----
30

query I rowsort
SELECT - ( ( - 29 ) ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT 68 DIV - + ( 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-4708
SELECT 68 / - + ( 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT COUNT( * ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-4709
SELECT COUNT ( * ) + + 0
----
1

query I rowsort
SELECT 74 * + 39 AS col2
----
2886

query I rowsort
SELECT DISTINCT + 62 + - 19
----
43

query I rowsort
SELECT ALL 7 AS col0
----
7

query II rowsort
SELECT ALL 58 AS col2, - 73 + + + 14
----
58
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT 20 - + COUNT( * ) * + ( 22 ) * 54 * + SUM( - + 5 ) * - - 52 * - MIN( DISTINCT + - 0 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT 20 - + COUNT ( * ) * + ( 22 ) * 54 * + SUM ( - + 5 ) * - - 52 * - MIN ( DISTINCT + - 0 ) AS col0
----
20

query I rowsort
SELECT 55 col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL 55 * NULLIF ( - + 40, - - 87 * - + CAST( - 36 AS SIGNED ) )
----
-2200

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL 55 * NULLIF ( - + 40, - - 87 * - + CAST ( - 36 AS INTEGER ) )
----
-2200

query I rowsort
SELECT 83 - + 62
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-4718
SELECT 41 AS col2, ( - 0 ) DIV + + 8 AS col1
----
41
0

skipif mysql # not compatible
query II rowsort label-4718
SELECT 41 AS col2, ( - 0 ) / + + 8 AS col1
----
41
0

query I rowsort
SELECT ALL 19 * + 46
----
874

query II rowsort
SELECT 99 * + ( 55 ), + 9 AS col1
----
5445
9

query I rowsort
SELECT 34 + - + 66 + 67 AS col0
----
35

query II rowsort
SELECT ALL ( + 77 ) - 55, ( - 88 ) AS col2
----
22
-88

query I rowsort
SELECT DISTINCT 54 * 35 col1
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ( - MAX( + - 11 ) ) - - 72 * - 51
----
-3661

skipif mysql # not compatible
query I rowsort label-4724
SELECT ( - MAX ( + - 11 ) ) - - 72 * - 51
----
-3661

query II rowsort
SELECT DISTINCT 44 AS col2, 32 col2
----
44
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT ALL - 66 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - 66 / + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT 59 DIV - COUNT( * ) + - + 33 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4727
SELECT 59 / - COUNT ( * ) + - + 33 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT + MIN( DISTINCT 75 ) * + + CAST( 58 AS SIGNED ) AS col0
----
4350

skipif mysql # not compatible
query I rowsort label-4728
SELECT + MIN ( DISTINCT 75 ) * + + CAST ( 58 AS INTEGER ) AS col0
----
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4729
SELECT + 51 * - 99 + - 96 + - SUM( DISTINCT - ( + 77 ) ) DIV - COUNT( * )
----
-5222

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 51 * - 99 + - 96 + - SUM ( DISTINCT - ( + 77 ) ) / - COUNT ( * )
----
-5222

query II rowsort
SELECT 74, 88 col2
----
74
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT ALL + COUNT( * ) DIV - COALESCE ( + - 90, - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + COUNT ( * ) / - COALESCE ( + - 90, - 44 ) AS col2
----
0

query I rowsort
SELECT + + 84
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4733
SELECT ALL + 36 * CAST( NULL AS SIGNED ) + + 52 + + 43 * + 6 / + - 95 AS col1, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-4733
SELECT ALL + 36 * CAST ( NULL AS INTEGER ) + + 52 + + 43 * + 6 / + - 95 AS col1, - 97
----
NULL
-97

query II rowsort
SELECT ALL + 59 AS col0, - 17
----
59
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4735
SELECT ALL 11 * + CASE - 72 WHEN + + 28 THEN + 30 END + - ( + - 37 ) + - 13 * COUNT( * ) + 90 * + 58 + + 90 * - 16 AS col1, - 86
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL 11 * + CASE - 72 WHEN + + 28 THEN + 30 END + - ( + - 37 ) + - 13 * COUNT ( * ) + 90 * + 58 + + 90 * - 16 AS col1, - 86
----
NULL
-86

query I rowsort
SELECT ALL + 48 AS col1
----
48

query I rowsort
SELECT DISTINCT 70 * - 15 + + 28 + + + 17
----
-1005

query II rowsort
SELECT + 95, 22 AS col2
----
95
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT - 11 * CAST( NULL AS SIGNED ) - - COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT - 11 * CAST ( NULL AS INTEGER ) - - COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + ( + 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4741
SELECT + + 98 * + COUNT( + 87 ), 33 + - - 58 + + - 9 + + 82 - 42 * + ( 61 ) col0
----
98
-2398

skipif mysql # not compatible
query II rowsort label-4741
SELECT + + 98 * + COUNT ( + 87 ), 33 + - - 58 + + - 9 + + 82 - 42 * + ( 61 ) col0
----
98
-2398

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - + 93 * + 78 + - + MAX( ( 4 ) )
----
-7258

skipif mysql # not compatible
query I rowsort label-4742
SELECT - + 93 * + 78 + - + MAX ( ( 4 ) )
----
-7258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4743
SELECT ALL + 21 * + COUNT( * ) + + + COUNT( - 42 ), CAST( NULL AS SIGNED ) * - CAST( NULLIF ( - - 5, 54 ) AS SIGNED ) AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL + 21 * + COUNT ( * ) + + + COUNT ( - 42 ), CAST ( NULL AS INTEGER ) * - CAST ( NULLIF ( - - 5, 54 ) AS INTEGER ) AS col2
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT + ( - MAX( 54 ) ) AS col0, + 15 AS col2
----
-54
15

skipif mysql # not compatible
query II rowsort label-4744
SELECT + ( - MAX ( 54 ) ) AS col0, + 15 AS col2
----
-54
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT + COALESCE ( + CASE - - 43 WHEN - MAX( DISTINCT 28 ) * 0 - + 32 THEN NULL ELSE + 32 DIV 82 DIV - ( - COALESCE ( + - 65, - 26 ) ) + - - COUNT( * ) END, + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4745
SELECT + COALESCE ( + CASE - - 43 WHEN - MAX ( DISTINCT 28 ) * 0 - + 32 THEN NULL ELSE + 32 / 82 / - ( - COALESCE ( + - 65, - 26 ) ) + - - COUNT ( * ) END, + 17 ) AS col1
----
1

query II rowsort
SELECT - 62 AS col0, - ( 33 ) col2
----
-62
-33

query I rowsort
SELECT + - ( - 34 )
----
34

query I rowsort
SELECT ALL + 19 AS col0
----
19

query I rowsort
SELECT - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + COUNT( * ) - - + ( 83 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + COUNT ( * ) - - + ( 83 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL NULLIF ( - COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL NULLIF ( - COUNT ( * ), COUNT ( * ) )
----
-1

query I rowsort
SELECT - ( - 26 ) + + 37 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT - 14 - + CAST( + 56 AS SIGNED ) * + 78 + - COUNT( * ) * + 44 AS col2
----
-4426

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 14 - + CAST ( + 56 AS INTEGER ) * + 78 + - COUNT ( * ) * + 44 AS col2
----
-4426

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4754
SELECT ALL ( + 83 ) col2, - 77 * - CAST( NULL AS DECIMAL ) + + 80 col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL ( + 83 ) col2, - 77 * - CAST ( NULL AS REAL ) + + 80 col2
----
83
NULL

query I rowsort
SELECT + 31 * 1 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT + 90 - + 10 DIV - 32 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4756
SELECT + 90 - + 10 / - 32 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL ( MAX( + - 34 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL ( MAX ( + - 34 ) )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4758
SELECT ALL ( ( - SUM( - - 50 ) ) ) DIV + - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL ( ( - SUM ( - - 50 ) ) ) / + - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - 54 + COUNT( * ) + 42 * + 48 AS col1
----
1963

skipif mysql # not compatible
query I rowsort label-4759
SELECT - 54 + COUNT ( * ) + 42 * + 48 AS col1
----
1963

query I rowsort
SELECT DISTINCT ( 8 ) col0
----
8

query I rowsort
SELECT ALL ( - + 83 ) AS col1
----
-83

query I rowsort
SELECT 56 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT DISTINCT CAST( ( - + 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT CAST ( ( - + 83 ) AS INTEGER )
----
-83

query I rowsort
SELECT + 45 * - + 82 AS col0
----
-3690

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT - 76 + - 74 + + COUNT( * )
----
-149

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - 76 + - 74 + + COUNT ( * )
----
-149

query I rowsort
SELECT + - 38 + 21 + ( 66 ) + + + 98
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT DISTINCT - - COUNT( * ) DIV 9 + - 91 + 14
----
-77

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - - COUNT ( * ) / 9 + - 91 + 14
----
-77

query I rowsort
SELECT ALL + - 85 AS col1
----
-85

query I rowsort
SELECT - 63 * + 7 + - - 62
----
-379

query I rowsort
SELECT ALL + + 68 col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT + - SUM( - 8 ) DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT + - SUM ( - 8 ) / - 23
----
0

query I rowsort
SELECT 57 col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - MAX( ALL - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4773
SELECT - MAX ( ALL - 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT + ( 84 ) DIV - - 61 - + + COUNT( * ) * - + 79 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4774
SELECT + ( 84 ) / - - 61 - + + COUNT ( * ) * - + 79 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL 67 * + ( + + ( 12 ) ) * - MIN( + CAST( + 23 AS SIGNED ) ) + - COUNT( * ) AS col0
----
-18493

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL 67 * + ( + + ( 12 ) ) * - MIN ( + CAST ( + 23 AS INTEGER ) ) + - COUNT ( * ) AS col0
----
-18493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT ALL + + COALESCE ( 27, - 62 + + 37 + - - 54 + - + 66 * + - 96 - + 23 DIV - - 78 DIV + 86 + - 50 + + - COUNT( * ) DIV - 0 )
----
27

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + + COALESCE ( 27, - 62 + + 37 + - - 54 + - + 66 * + - 96 - + 23 / - - 78 / + 86 + - 50 + + - COUNT ( * ) / - 0 )
----
27

query I rowsort
SELECT + + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT 36 * - 49 + + + CASE 21 WHEN - 64 THEN - COUNT( * ) + - 43 * + 33 + - + 69 WHEN + + 20 THEN NULL WHEN 94 THEN + ( + 60 ) + - 28 + - 35 ELSE 61 * + + COUNT( * ) * 74 END
----
2750

skipif mysql # not compatible
query I rowsort label-4778
SELECT 36 * - 49 + + + CASE 21 WHEN - 64 THEN - COUNT ( * ) + - 43 * + 33 + - + 69 WHEN + + 20 THEN NULL WHEN 94 THEN + ( + 60 ) + - 28 + - 35 ELSE 61 * + + COUNT ( * ) * 74 END
----
2750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4779
SELECT + 32 * - + 42 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
-1344
NULL

skipif mysql # not compatible
query II rowsort label-4779
SELECT + 32 * - + 42 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
-1344
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT ALL 71 * + - 82 + CAST( NULL AS SIGNED ) * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL 71 * + - 82 + CAST ( NULL AS INTEGER ) * + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + + COUNT( DISTINCT + 33 ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-4781
SELECT + + COUNT ( DISTINCT + 33 ) + + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL - COALESCE ( + MIN( ALL - 7 ), + + 88 ) * - 33 + - COUNT( * )
----
-232

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - COALESCE ( + MIN ( ALL - 7 ), + + 88 ) * - 33 + - COUNT ( * )
----
-232

query I rowsort
SELECT ALL + 67
----
67

query I rowsort
SELECT 53 * + + 79 + + 29 AS col2
----
4216

query I rowsort
SELECT + ( + + COALESCE ( - + 21, + 5, - 22 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - COUNT( * ) * - - 83 + - - 41 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4787
SELECT - COUNT ( * ) * - - 83 + - - 41 AS col2
----
-42

query I rowsort
SELECT - 14 + + 86 AS col1
----
72

query I rowsort
SELECT ALL COALESCE ( - + 28, - 46 + + 60 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT NULLIF ( 87, + 70 + - ( 49 ) * + + COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-4790
SELECT NULLIF ( 87, + 70 + - ( 49 ) * + + COUNT ( * ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT DISTINCT COALESCE ( - + 83, + CAST( + - 38 AS SIGNED ) + 64, + - ( 73 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT COALESCE ( - + 83, + CAST ( + - 38 AS INTEGER ) + 64, + - ( 73 ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4792
SELECT + 2 DIV - 39 * - 48 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT + 2 / - 39 * - 48 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL ( 58 ) AS col2
----
58

query I rowsort
SELECT DISTINCT + 0 * + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + ( - 30 ) * - - 22 + - 20 + SUM( - 50 ) AS col0
----
-730

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + ( - 30 ) * - - 22 + - 20 + SUM ( - 50 ) AS col0
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - 72 * - COALESCE ( - 98, 46, + + COALESCE ( + ( - 39 ), + SUM( + - 92 ) ) + + ( 10 ) * + 25 + 91 ) * + COUNT( * ) - - + CASE - 50 WHEN + - NULLIF ( + 58, + 10 ) * + 76 + + 51 + MIN( - 20 ) * SUM( DISTINCT - 82 ) / - - 31 * - - 94 THEN - 46 WHEN ( + + CASE + ( + - 20 ) WHEN + 40 THEN + 57 WHEN 43 THEN - 79 END ) THEN NULL END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT - 72 * - COALESCE ( - 98, 46, + + COALESCE ( + ( - 39 ), + SUM ( + - 92 ) ) + + ( 10 ) * + 25 + 91 ) * + COUNT ( * ) - - + CASE - 50 WHEN + - NULLIF ( + 58, + 10 ) * + 76 + + 51 + MIN ( - 20 ) * SUM ( DISTINCT - 82 ) / - - 31 * - - 94 THEN - 46 WHEN ( + + CASE + ( + - 20 ) WHEN + 40 THEN + 57 WHEN 43 THEN - 79 END ) THEN NULL END * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4797
SELECT ALL + NULLIF ( 54, + COUNT( * ) DIV - - 7 + + MAX( ALL - - CAST( - - 64 AS SIGNED ) ) * - 41 * + COUNT( * ) ) + - - CAST( NULL AS SIGNED ) col2, - 84 * + 15 + + 45 DIV + 34
----
NULL
-1259

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL + NULLIF ( 54, + COUNT ( * ) / - - 7 + + MAX ( ALL - - CAST ( - - 64 AS INTEGER ) ) * - 41 * + COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) col2, - 84 * + 15 + + 45 / + 34
----
NULL
-1259

query I rowsort
SELECT ALL COALESCE ( - + 94, - 65 ) AS col2
----
-94

query I rowsort
SELECT + 42 - 19 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT 24 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT 24 / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT MIN( - 73 ) + - + 33 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-4801
SELECT MIN ( - 73 ) + - + 33 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL - 47 + + + CAST( + 68 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - 47 + + + CAST ( + 68 AS INTEGER )
----
21

query I rowsort
SELECT DISTINCT + 36 * - - 62
----
2232

query I rowsort
SELECT ALL - ( - 43 )
----
43

query I rowsort
SELECT 98 * 52 * - 93 AS col0
----
-473928

query I rowsort
SELECT + 13 - + ( - CASE + 0 WHEN - ( + NULLIF ( + + 23, - 75 ) ) + - 7 / - 10 THEN - 74 ELSE NULL END ) + + 92 + - + 8 + + 99 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 89, - 79 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT + CAST( - 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4808
SELECT + CAST ( - 63 AS INTEGER ) AS col2
----
-63

query I rowsort
SELECT ALL - + 28 + + 1 * + 34
----
6

query I rowsort
SELECT 78 * - - 53 col0
----
4134

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT + 23 * - 63 + 99 AS col2, + COUNT( * ) AS col0
----
-1350
1

skipif mysql # not compatible
query II rowsort label-4811
SELECT + 23 * - 63 + 99 AS col2, + COUNT ( * ) AS col0
----
-1350
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) / 28 + - - 86 + + - MIN( DISTINCT - 10 ) + + 37 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) / 28 + - - 86 + + - MIN ( DISTINCT - 10 ) + + 37 * + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT - 63 - + + ( 51 ) DIV + 55
----
-63

skipif mysql # not compatible
query I rowsort label-4813
SELECT - 63 - + + ( 51 ) / + 55
----
-63

query I rowsort
SELECT + 41 AS col1
----
41

query I rowsort
SELECT - 72 + + - 47 * + 39
----
-1905

query I rowsort
SELECT ALL + 71 - + 10
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT NULLIF ( ( + 82 ), COUNT( * ) ) * 71 + + 56
----
5878

skipif mysql # not compatible
query I rowsort label-4817
SELECT NULLIF ( ( + 82 ), COUNT ( * ) ) * 71 + + 56
----
5878

query I rowsort
SELECT ALL - + 55 col0
----
-55

query I rowsort
SELECT + - 47
----
-47

query I rowsort
SELECT ALL + - 73 * + 93 col0
----
-6789

query I rowsort
SELECT + + ( 63 ) col1
----
63

query I rowsort
SELECT ALL - 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT COUNT( * ) * - COUNT( * ) - 26
----
-27

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( * ) * - COUNT ( * ) - 26
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT CAST( NULL AS SIGNED ) * + 64 * + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT CAST ( NULL AS INTEGER ) * + 64 * + 69 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT 85 * - COUNT( * ) + - + 94 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-4825
SELECT 85 * - COUNT ( * ) + - + 94 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT MAX( - 88 ) * 37 AS col0
----
-3256

skipif mysql # not compatible
query I rowsort label-4826
SELECT MAX ( - 88 ) * 37 AS col0
----
-3256

query I rowsort
SELECT 38 * - 81
----
-3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT ALL 8 DIV + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL 8 / + COUNT ( * )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL CASE + 17 WHEN 21 + - CAST( + 19 AS SIGNED ) + 50 THEN + 96 ELSE NULL END * - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL CASE + 17 WHEN 21 + - CAST ( + 19 AS INTEGER ) + 50 THEN + 96 ELSE NULL END * - + 47
----
NULL

query I rowsort
SELECT ALL ( - 83 ) * - 13 AS col1
----
1079

query I rowsort
SELECT DISTINCT NULLIF ( - 65, 9 ) + + - 52 AS col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4832
SELECT ALL 24 AS col0, - CASE + 37 WHEN + 40 * - COALESCE ( - - 65, + 12 / + SUM( ALL + - 14 ), - CAST( - 81 AS SIGNED ) ) THEN - 92 WHEN + 69 THEN NULL ELSE NULL END + + + 31 AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4832
SELECT ALL 24 AS col0, - CASE + 37 WHEN + 40 * - COALESCE ( - - 65, + 12 / + SUM ( ALL + - 14 ), - CAST ( - 81 AS INTEGER ) ) THEN - 92 WHEN + 69 THEN NULL ELSE NULL END + + + 31 AS col2
----
24
NULL

query I rowsort
SELECT DISTINCT 75
----
75

query I rowsort
SELECT ( + 41 ) * - + 99
----
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT 17 + 53 + COALESCE ( + 65, COUNT( * ), + + COUNT( * ) ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-4835
SELECT 17 + 53 + COALESCE ( + 65, COUNT ( * ), + + COUNT ( * ) ) AS col2
----
135

query I rowsort
SELECT 53 - - 25 col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT ALL 35 AS col1, - 90 + + COUNT( - 94 ) AS col0
----
35
-89

skipif mysql # not compatible
query II rowsort label-4837
SELECT ALL 35 AS col1, - 90 + + COUNT ( - 94 ) AS col0
----
35
-89

query I rowsort
SELECT ( 6 ) + - 5 AS col0
----
1

query I rowsort
SELECT 62 - 74
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT 69 * - CAST( NULL AS SIGNED ) * - ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT 69 * - CAST ( NULL AS INTEGER ) * - ( 9 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4841
SELECT DISTINCT + 78 + + 27 - 69 + + CAST( NULL AS DECIMAL ) + - 75 * CAST( NULL AS SIGNED ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + 78 + + 27 - 69 + + CAST ( NULL AS REAL ) + - 75 * CAST ( NULL AS INTEGER ) * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - 23 + 32 * - COUNT( * ) + - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - 23 + 32 * - COUNT ( * ) + - COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4843
SELECT 89, + COUNT( * ) DIV - + 52 - + - 11 DIV - 64 col0
----
89
0

skipif mysql # not compatible
query II rowsort label-4843
SELECT 89, + COUNT ( * ) / - + 52 - + - 11 / - 64 col0
----
89
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4844
SELECT ALL + 43 + - 63, - CASE COALESCE ( + 96, 98, + + COUNT( * ) + CAST( NULL AS SIGNED ) ) WHEN - 39 * COUNT( * ) THEN - 53 / + SUM( 60 ) / - - 58 + + 93 + + + 83 + + + COUNT( * ) / 72 ELSE - 87 * - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + 3 END AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL + 43 + - 63, - CASE COALESCE ( + 96, 98, + + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) WHEN - 39 * COUNT ( * ) THEN - 53 / + SUM ( 60 ) / - - 58 + + 93 + + + 83 + + + COUNT ( * ) / 72 ELSE - 87 * - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + 3 END AS col2
----
-20
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT COUNT( * ) + 28 AS col1, MAX( 39 )
----
29
39

skipif mysql # not compatible
query II rowsort label-4845
SELECT COUNT ( * ) + 28 AS col1, MAX ( 39 )
----
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - - 92 * + + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - - 92 * + + COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT 63 + + + COUNT( * ) + + 55
----
119

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 63 + + + COUNT ( * ) + + 55
----
119

query I rowsort
SELECT ALL + ( + 97 ) + - + 24 + + 50 AS col0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-4849
SELECT - 13 AS col0, - COUNT( * ) + - 85
----
-13
-86

skipif mysql # not compatible
query II rowsort label-4849
SELECT - 13 AS col0, - COUNT ( * ) + - 85
----
-13
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - COUNT( * ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-4850
SELECT - COUNT ( * ) + + 8
----
7

query I rowsort
SELECT DISTINCT 65 * + ( - ( + 11 ) ) AS col1
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL + 31 * + MIN( ALL + + 47 )
----
1457

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + 31 * + MIN ( ALL + + 47 )
----
1457

query I rowsort
SELECT 16 + - 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL - 50 DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 50 / 51 AS col0
----
0

query I rowsort
SELECT ALL - 64 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT - 29 DIV - + 58 + + 91 * + 62 + - - 83 AS col0
----
5725

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 29 / - + 58 + + 91 * + 62 + - - 83 AS col0
----
5725

query I rowsort
SELECT 95 + + 34 * - 91
----
-2999

query I rowsort
SELECT + 45 * - 36 * - 65 AS col0
----
105300

query I rowsort
SELECT 83 + 21
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT 17 DIV + - NULLIF ( + COUNT( * ), + 87 ) - - 96 + + 43 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-4860
SELECT 17 / + - NULLIF ( + COUNT ( * ), + 87 ) - - 96 + + 43 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4861
SELECT COALESCE ( 50, COUNT( * ) DIV - CASE CAST( NULL AS SIGNED ) WHEN - - 28 THEN COUNT( * ) ELSE NULL END, 31 ) * - 39 AS col1
----
-1950

skipif mysql # not compatible
query I rowsort label-4861
SELECT COALESCE ( 50, COUNT ( * ) / - CASE CAST ( NULL AS INTEGER ) WHEN - - 28 THEN COUNT ( * ) ELSE NULL END, 31 ) * - 39 AS col1
----
-1950

query I rowsort
SELECT 93 * 43
----
3999

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT 28 + - - COUNT( - 64 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-4863
SELECT 28 + - - COUNT ( - 64 ) col0
----
29

query I rowsort
SELECT + 2 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT - CAST( - + 11 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 20 * - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT - CAST ( - + 11 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 20 * - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - 97 * + - MAX( DISTINCT - 9 ) + + 79 AS col1
----
-794

skipif mysql # not compatible
query I rowsort label-4866
SELECT - 97 * + - MAX ( DISTINCT - 9 ) + + 79 AS col1
----
-794

query I rowsort
SELECT 12 * + + 33 col0
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL - COUNT( * ) * - - 96
----
-96

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL - COUNT ( * ) * - - 96
----
-96

query I rowsort
SELECT 18 + - ( 76 ) * 65 AS col2
----
-4922

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL ( + COUNT( * ) ) + - - 31 * + 74
----
2295

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL ( + COUNT ( * ) ) + - - 31 * + 74
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-4871
SELECT ALL + MAX( - - 95 ) + 81 AS col0, 4 AS col0
----
176
4

skipif mysql # not compatible
query II rowsort label-4871
SELECT ALL + MAX ( - - 95 ) + 81 AS col0, 4 AS col0
----
176
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT SUM( + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-4872
SELECT SUM ( + 26 )
----
26

query I rowsort
SELECT 27 * - 5 * + 79 + - 50 AS col0
----
-10715

query I rowsort
SELECT - 43 * - 77
----
3311

query I rowsort
SELECT ALL + 79 col2
----
79

query I rowsort
SELECT 37 AS col2
----
37

query I rowsort
SELECT + 59 * + 57 + + - 30 AS col0
----
3333

query I rowsort
SELECT ALL + 92 AS col1
----
92

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4879
SELECT - 95 DIV 65 AS col2, 29 * - NULLIF ( 49, - 41 DIV + - COALESCE ( - + CAST( + 35 AS DECIMAL ), 37 * + - 24 + + + 48 - 85, - - 93 ) ) + 35 AS col1
----
-1
-1386

skipif mysql # not compatible
query II rowsort label-4879
SELECT - 95 / 65 AS col2, 29 * - NULLIF ( 49, - 41 / + - COALESCE ( - + CAST ( + 35 AS REAL ), 37 * + - 24 + + + 48 - 85, - - 93 ) ) + 35 AS col1
----
-1
-1386

query I rowsort
SELECT + 1 + - 5 * - 67
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - MAX( DISTINCT - - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-4881
SELECT - MAX ( DISTINCT - - 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT - MIN( DISTINCT - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4882
SELECT - MIN ( DISTINCT - 88 ) AS col1
----
88

query I rowsort
SELECT ALL CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL WHEN - 24 IS NOT NULL THEN NULL ELSE - 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + 65 * - COUNT( * ) * COUNT( * ) * + 51 AS col2
----
-3315

skipif mysql # not compatible
query I rowsort label-4884
SELECT + 65 * - COUNT ( * ) * COUNT ( * ) * + 51 AS col2
----
-3315

query I rowsort
SELECT ALL 8 * + 95
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT - COUNT( * ) + - + 34 + - + 65 * - 38 AS col2
----
2435

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - COUNT ( * ) + - + 34 + - + 65 * - 38 AS col2
----
2435

query I rowsort
SELECT + 79 col1
----
79

query I rowsort
SELECT - 96 AS col2
----
-96

query I rowsort
SELECT ALL 41 col1
----
41

query I rowsort
SELECT - ( - 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + 48 - - COUNT( + 3 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 48 - - COUNT ( + 3 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4892
SELECT - - 9 + + 56 * + 45 + + CAST( - NULLIF ( - COUNT( * ), + 92 ) AS SIGNED ), + 53 AS col0
----
2530
53

skipif mysql # not compatible
query II rowsort label-4892
SELECT - - 9 + + 56 * + 45 + + CAST ( - NULLIF ( - COUNT ( * ), + 92 ) AS INTEGER ), + 53 AS col0
----
2530
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT - COUNT( * ) + + + ( + + 79 ) AS col2, + 51 + + + 82 * - - 20
----
78
1691

skipif mysql # not compatible
query II rowsort label-4893
SELECT - COUNT ( * ) + + + ( + + 79 ) AS col2, + 51 + + + 82 * - - 20
----
78
1691

query I rowsort
SELECT ALL + 71 - + 99 * + - 36
----
3635

query I rowsort
SELECT ALL + 97 AS col1
----
97

query I rowsort
SELECT - + 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - - 22 * - 11 / + ( + 80 ) * - ( 11 ) + - 98 * CASE - 3 WHEN + + 45 * 19 THEN NULL WHEN + - 66 + - - 54 * COUNT( * ) THEN + - COUNT( * ) END * + 11 - - 46 - - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - - 22 * - 11 / + ( + 80 ) * - ( 11 ) + - 98 * CASE - 3 WHEN + + 45 * 19 THEN NULL WHEN + - 66 + - - 54 * COUNT ( * ) THEN + - COUNT ( * ) END * + 11 - - 46 - - 61 AS col1
----
NULL

query I rowsort
SELECT ALL 15 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT - + SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT - + SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + + ( + 33 ) AS col2
----
33

query I rowsort
SELECT - - 39 * 54 + 39 + - + 21 AS col1
----
2124

query I rowsort
SELECT + + COALESCE ( + 60, + + 9 ) * + ( - 88 ) * - 80
----
422400

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT + 89 DIV 12 + 24
----
31

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 89 / 12 + 24
----
31

query I rowsort
SELECT ALL - 85 * + 59 AS col0
----
-5015

query I rowsort
SELECT ( - - 46 ) AS col1
----
46

query I rowsort
SELECT ( - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL ( + 73 ) * - 36 + - 83 + - COUNT( * ) AS col1
----
-2712

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL ( + 73 ) * - 36 + - 83 + - COUNT ( * ) AS col1
----
-2712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) / - 69 / + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) / - 69 / + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT ALL - 33 * + - 86 + COUNT( * ) - + 73 - + 35 * + + COUNT( DISTINCT - - 26 ) * + 62 + - 54 * SUM( - COALESCE ( + + 35, + - 85 ) ) - - CAST( + 81 AS SIGNED ) * - - 38
----
5564

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - 33 * + - 86 + COUNT ( * ) - + 73 - + 35 * + + COUNT ( DISTINCT - - 26 ) * + 62 + - 54 * SUM ( - COALESCE ( + + 35, + - 85 ) ) - - CAST ( + 81 AS INTEGER ) * - - 38
----
5564

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + MAX( ALL 34 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + MAX ( ALL 34 ) col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT COALESCE ( + 69, - 58 ) AS col1, 9 + - COUNT( * ) col0
----
69
8

skipif mysql # not compatible
query II rowsort label-4911
SELECT COALESCE ( + 69, - 58 ) AS col1, 9 + - COUNT ( * ) col0
----
69
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - 68 * + COALESCE ( ( 79 ), - 73, 89 ) - SUM( - + 5 )
----
-5367

skipif mysql # not compatible
query I rowsort label-4912
SELECT - 68 * + COALESCE ( ( 79 ), - 73, 89 ) - SUM ( - + 5 )
----
-5367

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT COALESCE ( - 52, + ( - + COUNT( + 96 ) ) + + 60 + - 63 - + 45 * - + 92 * - COALESCE ( + + 82, + 27 ) * + 53 - - 80 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-4913
SELECT COALESCE ( - 52, + ( - + COUNT ( + 96 ) ) + + 60 + - 63 - + 45 * - + 92 * - COALESCE ( + + 82, + 27 ) * + 53 - - 80 ) col1
----
-52

query II rowsort
SELECT NULLIF ( - 26, - 30 * - 19 ) AS col1, 60
----
-26
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT + SUM( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4915
SELECT + SUM ( - 88 )
----
-88

query I rowsort
SELECT ALL - 40 * + 62 + - + 16
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT NULLIF ( - - 98, - 17 + + - COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-4917
SELECT NULLIF ( - - 98, - 17 + + - COUNT ( * ) )
----
98

query I rowsort
SELECT - 89 - + 66 AS col2
----
-155

query I rowsort
SELECT ALL - 51 * 67 * - 25 AS col2
----
85425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4920
SELECT ALL + 23 AS col2, CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-4920
SELECT ALL + 23 AS col2, CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + MIN( DISTINCT 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4921
SELECT + MIN ( DISTINCT 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - COUNT( * ) * - 7 - + - 15 + - 74
----
-52

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - COUNT ( * ) * - 7 - + - 15 + - 74
----
-52

query I rowsort
SELECT DISTINCT ( + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + MIN( DISTINCT + + 75 ) + 84 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-4924
SELECT + MIN ( DISTINCT + + 75 ) + 84 AS col2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT - + 35 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT - + 35 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL CAST ( 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + - COUNT( * ) * + 22 + - NULLIF ( + 55, + 27 + - - 88 * 33 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4927
SELECT + - COUNT ( * ) * + 22 + - NULLIF ( + 55, + 27 + - - 88 * 33 ) AS col2
----
-77

query I rowsort
SELECT - 42 * 33
----
-1386

query I rowsort
SELECT - + 86 + 93
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4930
SELECT + 69 DIV + - NULLIF ( - 5, COUNT( * ) * 90 )
----
13

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 69 / + - NULLIF ( - 5, COUNT ( * ) * 90 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + MIN( DISTINCT - + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4931
SELECT + MIN ( DISTINCT - + 81 )
----
-81

query I rowsort
SELECT ALL - 9 * 12
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT COUNT( * ) * + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT COUNT ( * ) * + - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL MAX( DISTINCT + 11 ) * + 7 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL MAX ( DISTINCT + 11 ) * + 7 AS col0
----
77

query I rowsort
SELECT DISTINCT - 73 AS col1
----
-73

query I rowsort
SELECT - - 17 + + - 80
----
-63

query I rowsort
SELECT - ( + 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT + - 53 * + - COUNT( - 20 ) + 68 + + ( + 23 ) DIV + NULLIF ( 30, - - 69 - 47 - + + 64 )
----
121

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - 53 * + - COUNT ( - 20 ) + 68 + + ( + 23 ) / + NULLIF ( 30, - - 69 - 47 - + + 64 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL + COUNT( * ) * + 65
----
65

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + COUNT ( * ) * + 65
----
65

query I rowsort
SELECT - - ( + + 30 ) AS col2
----
30

query I rowsort
SELECT ALL 10 + + 57
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT + 3 + - ( + ( - + SUM( 76 ) ) ) AS col1, 96 * 72
----
79
6912

skipif mysql # not compatible
query II rowsort label-4942
SELECT + 3 + - ( + ( - + SUM ( 76 ) ) ) AS col1, 96 * 72
----
79
6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4943
SELECT ALL + 39 DIV 3 + - ( - COUNT( * ) ) AS col0, + COUNT( * ) + ( - - 94 ) col1
----
14
95

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL + 39 / 3 + - ( - COUNT ( * ) ) AS col0, + COUNT ( * ) + ( - - 94 ) col1
----
14
95

query I rowsort
SELECT + 79 + + 8 * 10
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT ALL + COUNT( DISTINCT + 48 ) DIV 53 + MAX( ALL - 56 ) * COUNT( ALL + 19 )
----
-56

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + COUNT ( DISTINCT + 48 ) / 53 + MAX ( ALL - 56 ) * COUNT ( ALL + 19 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - 64 * COUNT( * ) + - 35 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 64 * COUNT ( * ) + - 35 AS col0
----
-99

query I rowsort
SELECT DISTINCT - 69 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT 54 * + 11 - + MIN( - 25 ) + 58 DIV - + 20 + 49
----
666

skipif mysql # not compatible
query I rowsort label-4948
SELECT 54 * + 11 - + MIN ( - 25 ) + 58 / - + 20 + 49
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL COALESCE ( + - 40, - MAX( ALL - + 54 ), - ( - 2 ) ) * 69
----
-2760

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL COALESCE ( + - 40, - MAX ( ALL - + 54 ), - ( - 2 ) ) * 69
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT NULLIF ( + - 22, 44 ) + COUNT( * ) * - - 57
----
35

skipif mysql # not compatible
query I rowsort label-4950
SELECT NULLIF ( + - 22, 44 ) + COUNT ( * ) * - - 57
----
35

query I rowsort
SELECT 53 + + 96 col1
----
149

query I rowsort
SELECT 63 + 15 + + 80 AS col1
----
158

query I rowsort
SELECT ALL - 91 + + 25
----
-66

query I rowsort
SELECT DISTINCT + 37 * 78
----
2886

query I rowsort
SELECT ALL - 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT 52 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4956
SELECT 52 + - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL 71 - 96 * COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 71 - 96 * COUNT ( * )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT + 63 * + + CAST( NULL AS SIGNED ) + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + 63 * + + CAST ( NULL AS INTEGER ) + 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT ALL + 92 DIV + + 98 * 86
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + 92 / + + 98 * 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT 68 * + COUNT( * ) col2
----
68

skipif mysql # not compatible
query I rowsort label-4960
SELECT 68 * + COUNT ( * ) col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - COALESCE ( COUNT( * ), - 93 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - COALESCE ( COUNT ( * ), - 93 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT COUNT( * ) * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT 78 * + SUM( ALL 57 ) AS col2
----
4446

skipif mysql # not compatible
query I rowsort label-4963
SELECT 78 * + SUM ( ALL 57 ) AS col2
----
4446

query I rowsort
SELECT ALL - ( - - ( - 30 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - COALESCE ( - - 38, + - CASE + COUNT( * ) WHEN 20 + + 47 * - 12 * 64 THEN NULL WHEN 17 THEN + 63 ELSE NULL END, 22 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - COALESCE ( - - 38, + - CASE + COUNT ( * ) WHEN 20 + + 47 * - 12 * 64 THEN NULL WHEN 17 THEN + 63 ELSE NULL END, 22 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - COUNT( * ) * + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4966
SELECT - COUNT ( * ) * + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL COUNT( ( 9 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL COUNT ( ( 9 ) )
----
1

query I rowsort
SELECT - - 91 AS col2
----
91

query I rowsort
SELECT ALL + + NULLIF ( - 70, - 22 ) * + - 41 AS col0
----
2870

query I rowsort
SELECT ALL + + 14 * 8
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + ( + 3 ) + - MAX( + 68 )
----
-65

skipif mysql # not compatible
query I rowsort label-4971
SELECT + ( + 3 ) + - MAX ( + 68 )
----
-65

query I rowsort
SELECT ALL 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT CASE COUNT( * ) WHEN + COUNT( * ) * COUNT( * ) THEN - 8 * 31 - COUNT( * ) ELSE NULL END col2
----
-249

skipif mysql # not compatible
query I rowsort label-4973
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) * COUNT ( * ) THEN - 8 * 31 - COUNT ( * ) ELSE NULL END col2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - + COUNT( * ) + - + 7 * - 52
----
363

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - + COUNT ( * ) + - + 7 * - 52
----
363

query I rowsort
SELECT + 33 - - 84 AS col2
----
117

query II rowsort
SELECT ( + 8 ) AS col2, 9
----
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - COUNT( DISTINCT - + NULLIF ( - - 57, + + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4977
SELECT - COUNT ( DISTINCT - + NULLIF ( - - 57, + + 2 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT - COUNT( * ) + + ( + 62 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4978
SELECT - COUNT ( * ) + + ( + 62 ) col2
----
61

query I rowsort
SELECT 52 * 68 col1
----
3536

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL 99 DIV 17 DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL 99 / 17 / 21 AS col1
----
0

query I rowsort
SELECT - - 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL + COUNT( * ) + - - 40 + - 66
----
-25

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL + COUNT ( * ) + - - 40 + - 66
----
-25

query I rowsort
SELECT DISTINCT - + 59 + + 38
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT - + COUNT( + 84 ) AS col2, 0 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-4984
SELECT - + COUNT ( + 84 ) AS col2, 0 AS col1
----
-1
0

query I rowsort
SELECT - + 16 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT ALL - COUNT( * ) + + 91 AS col0, COUNT( - - 20 ) * + 91 col0
----
90
91

skipif mysql # not compatible
query II rowsort label-4986
SELECT ALL - COUNT ( * ) + + 91 AS col0, COUNT ( - - 20 ) * + 91 col0
----
90
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4987
SELECT ALL + 68 DIV - MIN( + - 24 )
----
2

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + 68 / - MIN ( + - 24 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4988
SELECT ( - - 25 ) DIV 77 AS col2, - 88 + - COUNT( * ) * + COUNT( * ) * ( + 5 ) * ( - 66 )
----
0
242

skipif mysql # not compatible
query II rowsort label-4988
SELECT ( - - 25 ) / 77 AS col2, - 88 + - COUNT ( * ) * + COUNT ( * ) * ( + 5 ) * ( - 66 )
----
0
242

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL COUNT( * ) + 57 + 80
----
138

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COUNT ( * ) + 57 + 80
----
138

query I rowsort
SELECT 8 * + 31
----
248

query I rowsort
SELECT ALL 31 + 16 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT COUNT( * ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-4992
SELECT COUNT ( * ) * - 1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT + 16, 42 + - - COALESCE ( + + 40, - 96 * - 62, - COUNT( * ) ) AS col0
----
16
82

skipif mysql # not compatible
query II rowsort label-4993
SELECT + 16, 42 + - - COALESCE ( + + 40, - 96 * - 62, - COUNT ( * ) ) AS col0
----
16
82

query II rowsort
SELECT ALL - 72 AS col2, 10 * - 90 col0
----
-72
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT + 78 - + 60 - + - COUNT( * ) * - 40 + - ( - 47 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + 78 - + 60 - + - COUNT ( * ) * - 40 + - ( - 47 ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT NULLIF ( + 96, + - SUM( - 23 ) ) * + 72 AS col2
----
6912

skipif mysql # not compatible
query I rowsort label-4996
SELECT NULLIF ( + 96, + - SUM ( - 23 ) ) * + 72 AS col2
----
6912

query I rowsort
SELECT + 74 col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4998
SELECT ALL - 60 - CAST( - - COUNT( * ) AS SIGNED ) + + - MIN( + 14 ), 81 - - ( 88 ) AS col2
----
-75
169

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL - 60 - CAST ( - - COUNT ( * ) AS INTEGER ) + + - MIN ( + 14 ), 81 - - ( 88 ) AS col2
----
-75
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT NULLIF ( 42, - COUNT( * ) ) * + - 66 * + NULLIF ( 55, - + 9 ) + + + 92 * 33 + - - COUNT( * )
----
-149423

skipif mysql # not compatible
query I rowsort label-4999
SELECT NULLIF ( 42, - COUNT ( * ) ) * + - 66 * + NULLIF ( 55, - + 9 ) + + + 92 * 33 + - - COUNT ( * )
----
-149423

query II rowsort
SELECT 91 AS col2, 48 AS col0
----
91
48

query I rowsort
SELECT + 40 AS col1
----
40

query I rowsort
SELECT + 42 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5003
SELECT CAST( 49 AS SIGNED ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT CAST ( 49 AS INTEGER ) / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5004
SELECT COUNT( * ) * 28 + + CAST( 30 AS SIGNED ) DIV 35 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5004
SELECT COUNT ( * ) * 28 + + CAST ( 30 AS INTEGER ) / 35 AS col0
----
28

query I rowsort
SELECT DISTINCT 23 * 88
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT( * ) ) * - COUNT( * ) + 67
----
68

skipif mysql # not compatible
query I rowsort label-5006
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT ( * ) ) * - COUNT ( * ) + 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT 96 + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5007
SELECT 96 + + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT 3 * 5 col2
----
15

query I rowsort
SELECT ALL 52 + 81 AS col1
----
133

query I rowsort
SELECT ALL - 71 + 99 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-5011
SELECT 77 + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT + ( COUNT( * ) ) * - COALESCE ( + 92, - COUNT( - 2 ) * + CAST( - 68 * 85 AS SIGNED ) + 38 ) + - CASE + ( 55 ) - 82 WHEN 75 + - 87 * - ( 82 ) THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT + ( COUNT ( * ) ) * - COALESCE ( + 92, - COUNT ( - 2 ) * + CAST ( - 68 * 85 AS INTEGER ) + 38 ) + - CASE + ( 55 ) - 82 WHEN 75 + - 87 * - ( 82 ) THEN 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 22 - - COUNT( * ) * 1 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5013
SELECT 22 - - COUNT ( * ) * 1 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - CASE 4 WHEN 33 * + 68 THEN + 17 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 28 * 39
----
1092

query I rowsort
SELECT 31 - 7 * 95 AS col0
----
-634

query I rowsort
SELECT DISTINCT + 81 * ( - 52 ) AS col2
----
-4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL - CAST( NULL AS SIGNED ) + ( 38 + 91 ) / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - CAST ( NULL AS INTEGER ) + ( 38 + 91 ) / + 99
----
NULL

query I rowsort
SELECT DISTINCT 9 + 29 col0
----
38

query I rowsort
SELECT 18 * - 85 AS col1
----
-1530

query I rowsort
SELECT 21 + + 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT + 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT + 81 * - COUNT ( * )
----
-81

query I rowsort
SELECT ALL + 63 * 72
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - 20 + - 55 * - COUNT( 22 )
----
35

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 20 + - 55 * - COUNT ( 22 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + COUNT( DISTINCT 78 ) - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + COUNT ( DISTINCT 78 ) - + 75
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT - 96 + + COUNT( * ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-5027
SELECT - 96 + + COUNT ( * ) col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT DISTINCT - 19 DIV COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - 19 / COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT SUM( DISTINCT + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT SUM ( DISTINCT + 37 ) AS col0
----
37

query I rowsort
SELECT - 66 + 83
----
17

query I rowsort
SELECT DISTINCT 78 * - 45 col0
----
-3510

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT - 13 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT - 13 / - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT 38 DIV 32 + - 32
----
-31

skipif mysql # not compatible
query I rowsort label-5033
SELECT 38 / 32 + - 32
----
-31

query I rowsort
SELECT ALL - 1 * 2
----
-2

query I rowsort
SELECT NULLIF ( + 81, + 18 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT COUNT( * ) DIV + 17 + - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) / + 17 + - 95 AS col0
----
-95

query I rowsort
SELECT + ( 88 ) * 84 AS col2
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT COALESCE ( COUNT( * ), - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-5038
SELECT COALESCE ( COUNT ( * ), - 46 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT + CAST( NULL AS SIGNED ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT + CAST ( NULL AS INTEGER ) + - 96
----
NULL

query I rowsort
SELECT ALL 18 * 92
----
1656

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5041
SELECT + AVG ( DISTINCT - 44 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT + AVG ( DISTINCT - 44 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 47 * 73
----
3431

query I rowsort
SELECT DISTINCT + - 87
----
-87

query I rowsort
SELECT ALL + ( + 4 ) * 53
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL + SUM( ALL 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + SUM ( ALL 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT SUM( - 76 ) * 2 + 89
----
-63

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT SUM ( - 76 ) * 2 + 89
----
-63

query I rowsort
SELECT + - 30 + 53 AS col2
----
23

query I rowsort
SELECT + + 72 * - 70
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + + MIN( ALL + 17 ) + - ( - 9 )
----
26

skipif mysql # not compatible
query I rowsort label-5049
SELECT + + MIN ( ALL + 17 ) + - ( - 9 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL + CASE + 62 WHEN - CAST( 64 AS SIGNED ) THEN + 71 END * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + CASE + 62 WHEN - CAST ( 64 AS INTEGER ) THEN + 71 END * + 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT DISTINCT 3 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT 3 / 83 AS col2
----
0

query I rowsort
SELECT ALL + + 6 * - 97 + 97
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL + ( 83 ) + + COUNT( * ) * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + ( 83 ) + + COUNT ( * ) * COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5054
SELECT + 51 * COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL ( + 32 ) * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL ( + 32 ) * - COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT MAX( DISTINCT 3 ) * NULLIF ( 50 DIV ( SUM( + 31 ) ), 94 * - 79 ) + + COUNT( * ) * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5056
SELECT MAX ( DISTINCT 3 ) * NULLIF ( 50 / ( SUM ( + 31 ) ), 94 * - 79 ) + + COUNT ( * ) * - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT - MAX( DISTINCT + 48 ) + + 15
----
-33

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - MAX ( DISTINCT + 48 ) + + 15
----
-33

query I rowsort
SELECT DISTINCT CASE 79 WHEN - 22 THEN 33 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT ALL + NULLIF ( 65, CASE 7 WHEN - COALESCE ( + ( + 8 ), + 82 ) * + 81 + + CAST( - 9 AS SIGNED ) * 9 THEN NULL WHEN 66 THEN 97 + + 52 / - 65 ELSE NULL END )
----
65

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + NULLIF ( 65, CASE 7 WHEN - COALESCE ( + ( + 8 ), + 82 ) * + 81 + + CAST ( - 9 AS INTEGER ) * 9 THEN NULL WHEN 66 THEN 97 + + 52 / - 65 ELSE NULL END )
----
65

query I rowsort
SELECT + 17 * 9 AS col1
----
153

query I rowsort
SELECT 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - COALESCE ( + - 16, - 33 * - 99, + COUNT( * ) ) + 27 * + 43
----
1177

skipif mysql # not compatible
query I rowsort label-5062
SELECT - COALESCE ( + - 16, - 33 * - 99, + COUNT ( * ) ) + 27 * + 43
----
1177

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT ( * ) )
----
-75

query I rowsort
SELECT - 61 * + 46
----
-2806

query I rowsort
SELECT DISTINCT 53 AS col1
----
53

query I rowsort
SELECT ALL - 32 * - 68 col0
----
2176

query I rowsort
SELECT ALL + 78 - - 83 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL COUNT( ALL + 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL COUNT ( ALL + 67 ) AS col0
----
1

query I rowsort
SELECT - 25 - + + 41 + + 23 AS col2
----
-43

query I rowsort
SELECT ALL - 5 * - 38 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL - COALESCE ( - 1, - COALESCE ( 14, + COUNT( * ), + 69 * 8 ) + + 20 ) * - 64 col1
----
-64

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - COALESCE ( - 1, - COALESCE ( 14, + COUNT ( * ), + 69 * 8 ) + + 20 ) * - 64 col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT - CAST( - 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5072
SELECT - CAST ( - 14 AS INTEGER ) AS col1
----
14

query I rowsort
SELECT DISTINCT ( 74 )
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5074
SELECT CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - + 13 / - - 62 * CASE + 88 * - 38 WHEN + 13 / - COUNT( * ) THEN 59 END + - 43 * + ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - + 13 / - - 62 * CASE + 88 * - 38 WHEN + 13 / - COUNT ( * ) THEN 59 END + - 43 * + ( 89 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT - CAST( NULL AS SIGNED ) / - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT - CAST ( NULL AS INTEGER ) / - 37 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL 7 DIV + 22 + + 72 col1
----
72

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL 7 / + 22 + + 72 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + 46 * - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5080
SELECT + 46 * - - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL - - 95 * + CASE 21 WHEN + NULLIF ( NULLIF ( - COUNT( * ), COUNT( * ) * - 39 + NULLIF ( COUNT( * ), 89 - + ( 48 ) ) ), 67 * 2 ) * + CASE + 16 WHEN + 46 + - 35 THEN NULL ELSE + 50 END + 18 * COUNT( * ) THEN NULL WHEN 67 THEN NULL ELSE + 48 * + 40 END * 87 AS col0
----
15868800

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL - - 95 * + CASE 21 WHEN + NULLIF ( NULLIF ( - COUNT ( * ), COUNT ( * ) * - 39 + NULLIF ( COUNT ( * ), 89 - + ( 48 ) ) ), 67 * 2 ) * + CASE + 16 WHEN + 46 + - 35 THEN NULL ELSE + 50 END + 18 * COUNT ( * ) THEN NULL WHEN 67 THEN NULL ELSE + 48 * + 40 END * 87 AS col0
----
15868800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5082
SELECT + + 90 DIV + + ( 87 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5082
SELECT + + 90 / + + ( 87 ) + + COUNT ( * )
----
2

query I rowsort
SELECT + + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT - COUNT( * ) * 70 + - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - COUNT ( * ) * 70 + - COUNT ( * )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT ALL - CAST( NULL AS SIGNED ) * 55 + + 68 * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - CAST ( NULL AS INTEGER ) * 55 + + 68 * + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + COUNT( * ) + + 93 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COUNT ( * ) + + 93 AS col1
----
94

query I rowsort
SELECT DISTINCT - + 52 * 58 + + 46
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - COUNT( * ) * + ( 36 ) + - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5088
SELECT - COUNT ( * ) * + ( 36 ) + - COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT + + 68 AS col0
----
68

query I rowsort
SELECT DISTINCT - + 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL + 79 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + 79 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT 17 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT 17 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 85 * - + 29 AS col2
----
-2465

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT ALL - 88 DIV 81 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL - 88 / 81 / 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5095
SELECT - - 60 * + CAST( NULL AS DECIMAL ) + - CASE - 86 WHEN + CAST( - 47 AS SIGNED ) THEN COUNT( * ) * 26 WHEN + 68 THEN NULL END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT - - 60 * + CAST ( NULL AS REAL ) + - CASE - 86 WHEN + CAST ( - 47 AS INTEGER ) THEN COUNT ( * ) * 26 WHEN + 68 THEN NULL END * 76
----
NULL

query I rowsort
SELECT ( + 62 ) - 41 AS col0
----
21

query II rowsort
SELECT - 93, - 27 + - 42 AS col2
----
-93
-69

query I rowsort
SELECT DISTINCT 95 AS col1
----
95

query I rowsort
SELECT DISTINCT 97 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL MAX( - 16 ) * 99 * - ( 99 ) AS col2
----
156816

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL MAX ( - 16 ) * 99 * - ( 99 ) AS col2
----
156816

query I rowsort
SELECT ALL 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT NULLIF ( + + 26, - - 20 * 73 ) * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT NULLIF ( + + 26, - - 20 * 73 ) * COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT 73 * + 33
----
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT COUNT( * ) + - 87 * - COUNT( * ) + + 21
----
109

skipif mysql # not compatible
query I rowsort label-5104
SELECT COUNT ( * ) + - 87 * - COUNT ( * ) + + 21
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT 72 * CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN NULL ELSE 28 + COUNT( - 81 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT 72 * CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN NULL ELSE 28 + COUNT ( - 81 ) END
----
NULL

query I rowsort
SELECT 78 - 76
----
2

query I rowsort
SELECT DISTINCT 17
----
17

query I rowsort
SELECT 88 * 9
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT 62 + + COUNT( * ) * + 27
----
89

skipif mysql # not compatible
query I rowsort label-5109
SELECT 62 + + COUNT ( * ) * + 27
----
89

query I rowsort
SELECT 97 * - 43 AS col2
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - COUNT( * ) + - - 58
----
57

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - COUNT ( * ) + - - 58
----
57

query I rowsort
SELECT 68 + + - 46 col2
----
22

query I rowsort
SELECT DISTINCT 28
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5114
SELECT CAST( - + COUNT( * ) AS SIGNED ) + - + COUNT( * ) DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-5114
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) / + 46
----
-1

query I rowsort
SELECT DISTINCT 84
----
84

query I rowsort
SELECT DISTINCT 0 + - + 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL 59 + + 26 + + 5 + - COALESCE ( - COUNT( 29 ), 3 ) * 3 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL 59 + + 26 + + 5 + - COALESCE ( - COUNT ( 29 ), 3 ) * 3 AS col1
----
93

query II rowsort
SELECT + 73 AS col1, 96
----
73
96

query I rowsort
SELECT 91 * - + 32 AS col2
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT 99 / + CASE - SUM( ALL 56 ) WHEN 13 * 1 THEN NULL WHEN 71 + 11 THEN + 56 * 83 END / 63 + 75 + COALESCE ( 70, + 77 * - 19, 91 ) * - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT 99 / + CASE - SUM ( ALL 56 ) WHEN 13 * 1 THEN NULL WHEN 71 + 11 THEN + 56 * 83 END / 63 + 75 + COALESCE ( 70, + 77 * - 19, 91 ) * - 10 AS col0
----
NULL

query I rowsort
SELECT ALL - 94 * - 21 AS col2
----
1974

query I rowsort
SELECT + + 37 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT 80 + + ( - ( + ( 70 ) ) ) + 46 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT 80 + + ( - ( + ( 70 ) ) ) + 46 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - SUM( ALL + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-5124
SELECT - SUM ( ALL + 14 )
----
-14

query I rowsort
SELECT + - 83 col0
----
-83

query I rowsort
SELECT ALL + 44 + - - ( + 80 ) + 67
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL - + MAX( ALL + + 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - + MAX ( ALL + + 98 ) AS col1
----
-98

query II rowsort
SELECT 57 AS col1, 0 AS col1
----
57
0

query I rowsort
SELECT ALL - + 59 AS col1
----
-59

query I rowsort
SELECT DISTINCT - - 98
----
98

query I rowsort
SELECT ALL + + 88 - + + 17 * + ( 3 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT - COUNT( * ) * + + SUM( ALL + 98 ) DIV + 81
----
-1

skipif mysql # not compatible
query I rowsort label-5132
SELECT - COUNT ( * ) * + + SUM ( ALL + 98 ) / + 81
----
-1

query I rowsort
SELECT ALL - 9 - + ( - 23 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT COUNT( * ) * - + 63 - + - 61 col2
----
-2

skipif mysql # not compatible
query I rowsort label-5134
SELECT COUNT ( * ) * - + 63 - + - 61 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + + SUM( - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5135
SELECT + + SUM ( - 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT ALL + + 87 * - - 8 + COUNT( * ) + 61 DIV - 73 AS col1
----
697

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + + 87 * - - 8 + COUNT ( * ) + 61 / - 73 AS col1
----
697

query I rowsort
SELECT - 8 * 79 + - - 95
----
-537

query I rowsort
SELECT - 83 * 36
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL + SUM( ALL - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL + SUM ( ALL - 70 ) AS col2
----
-70

query I rowsort
SELECT ALL 92 AS col1
----
92

query I rowsort
SELECT 46 - - 71 * 30
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT COUNT( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT COUNT ( + 66 )
----
1

query I rowsort
SELECT 43 * 19 col1
----
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT 46 + - - CAST( - 1 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-5145
SELECT 46 + - - CAST ( - 1 AS INTEGER )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT 60 + + 69 DIV + - 22
----
57

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT 60 + + 69 / + - 22
----
57

query I rowsort
SELECT 84 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL 95 + + COALESCE ( COUNT( * ), - 97 ) * 18 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL 95 + + COALESCE ( COUNT ( * ), - 97 ) * 18 AS col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT + 97 DIV + + 64 * + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 97 / + + 64 * + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - 43 + - 42 * + ( + 15 ) * 32 AS col1
----
-20203

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT 24 + + CASE - 98 WHEN + COUNT( DISTINCT + 51 ) THEN NULL WHEN - MAX( DISTINCT 12 ) THEN 81 * - ( 68 * 41 ) ELSE - NULLIF ( - 7, 6 * 36 ) END AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT 24 + + CASE - 98 WHEN + COUNT ( DISTINCT + 51 ) THEN NULL WHEN - MAX ( DISTINCT 12 ) THEN 81 * - ( 68 * 41 ) ELSE - NULLIF ( - 7, 6 * 36 ) END AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL COUNT( * ) + NULLIF ( 27, - + 20 ) * ( 90 * - COUNT( * ) ) AS col0
----
-2429

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL COUNT ( * ) + NULLIF ( 27, - + 20 ) * ( 90 * - COUNT ( * ) ) AS col0
----
-2429

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ( + 6 ) * + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5153
SELECT ( + 6 ) * + COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL 59 + - + CASE + 39 WHEN - + 48 + + CAST( 90 + 92 AS SIGNED ) / 48 THEN 87 WHEN - SUM( DISTINCT 21 ) * 36 - 58 * - CASE - COUNT( * ) * 27 + ( + 56 - - 50 ) WHEN ( - 13 ) THEN NULL ELSE + CASE - 13 WHEN 36 THEN - 16 * + COUNT( 86 ) ELSE NULL END END THEN NULL END + ( + 56 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL 59 + - + CASE + 39 WHEN - + 48 + + CAST ( 90 + 92 AS INTEGER ) / 48 THEN 87 WHEN - SUM ( DISTINCT 21 ) * 36 - 58 * - CASE - COUNT ( * ) * 27 + ( + 56 - - 50 ) WHEN ( - 13 ) THEN NULL ELSE + CASE - 13 WHEN 36 THEN - 16 * + COUNT ( 86 ) ELSE NULL END END THEN NULL END + ( + 56 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5155
SELECT MAX( 43 ) * 21 DIV - 10
----
-90

skipif mysql # not compatible
query I rowsort label-5155
SELECT MAX ( 43 ) * 21 / - 10
----
-90

query II rowsort
SELECT 68 - 43 AS col2, 97 * + 6 * 74 col0
----
25
43068

query I rowsort
SELECT - 88 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT 59 DIV - + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT 59 / - + 62 AS col0
----
0

query I rowsort
SELECT - 24 * + 81 AS col0
----
-1944

query I rowsort
SELECT ALL + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + MIN( DISTINCT - + 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5161
SELECT + MIN ( DISTINCT - + 22 ) AS col0
----
-22

query II rowsort
SELECT ( - 3 ) AS col0, ( + 61 ) AS col1
----
-3
61

query I rowsort
SELECT DISTINCT - 26 AS col1
----
-26

query I rowsort
SELECT ALL - + 64
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT + CASE 70 WHEN + COALESCE ( + 30, 69 + + 61 * 84 ) + + 40 * 66 THEN NULL WHEN CASE - 61 WHEN 96 - 99 THEN - 12 + 64 ELSE NULL END * 48 THEN + NULLIF ( + 61, - MAX( 74 ) ) END * - CAST( NULL AS SIGNED ) - - COUNT( * ) * 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + CASE 70 WHEN + COALESCE ( + 30, 69 + + 61 * 84 ) + + 40 * 66 THEN NULL WHEN CASE - 61 WHEN 96 - 99 THEN - 12 + 64 ELSE NULL END * 48 THEN + NULLIF ( + 61, - MAX ( 74 ) ) END * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT + - COUNT( * ) * + 3 + COUNT( DISTINCT + 21 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + - COUNT ( * ) * + 3 + COUNT ( DISTINCT + 21 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5167
SELECT ALL - - 87 * + MIN( ALL 4 ) - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - - 87 * + MIN ( ALL 4 ) - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT - COUNT( ALL + 83 ) * - + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT - COUNT ( ALL + 83 ) * - + 82 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT - NULLIF ( - CAST( 29 AS SIGNED ), - 4 ) * + 84
----
2436

skipif mysql # not compatible
query I rowsort label-5169
SELECT - NULLIF ( - CAST ( 29 AS INTEGER ), - 4 ) * + 84
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5170
SELECT CASE + 6 WHEN - + 63 + + - 47 + CAST( - 6 AS SIGNED ) * COALESCE ( - 97 - 95, COUNT( * ) + - COALESCE ( ( - 19 ), 6 ), - CAST( NULL AS DECIMAL ) + COUNT( * ) * 15 ) THEN NULL WHEN 93 + COALESCE ( 55, - 83 ) THEN - 59 * 73 WHEN CAST( 61 AS SIGNED ) - COUNT( ALL 21 ) THEN AVG ( DISTINCT 76 ) + + 40 END * - 19 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT CASE + 6 WHEN - + 63 + + - 47 + CAST ( - 6 AS INTEGER ) * COALESCE ( - 97 - 95, COUNT ( * ) + - COALESCE ( ( - 19 ), 6 ), - CAST ( NULL AS REAL ) + COUNT ( * ) * 15 ) THEN NULL WHEN 93 + COALESCE ( 55, - 83 ) THEN - 59 * 73 WHEN CAST ( 61 AS INTEGER ) - COUNT ( ALL 21 ) THEN AVG ( DISTINCT 76 ) + + 40 END * - 19 + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - MIN( ALL + 34 ) - 64
----
-98

skipif mysql # not compatible
query I rowsort label-5171
SELECT - MIN ( ALL + 34 ) - 64
----
-98

query I rowsort
SELECT + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT + 97 + MIN( + + 48 ) * - - 78
----
3841

skipif mysql # not compatible
query I rowsort label-5173
SELECT + 97 + MIN ( + + 48 ) * - - 78
----
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5174
SELECT + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT - - ( - 91 ) * - 15 AS col2
----
1365

query I rowsort
SELECT ALL + COALESCE ( - 43, - 73 * - 5 + + 28, - 57 ) AS col2
----
-43

query I rowsort
SELECT DISTINCT + - 99 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT ALL + 73 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + 73 / + 24
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT DISTINCT + CASE NULLIF ( + AVG ( DISTINCT 74 ), + + 78 ) WHEN - ( - 29 ) * - 39 + CAST( COALESCE ( COUNT( * ), 86 / COUNT( * ) + - 91 ) - + 65 AS SIGNED ) * ( CASE ( - MAX( ALL - 92 ) ) WHEN COUNT( * ) THEN NULL ELSE + 97 + - 34 END * 30 ) THEN NULL ELSE NULLIF ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - CASE - 54 WHEN + COALESCE ( 44, + 67 * + 38 - + 52, 63 ) + + 63 THEN NULL WHEN 88 THEN 99 / AVG ( ALL 13 * 98 ) ELSE NULL END * ( CAST( NULL AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + CASE NULLIF ( + AVG ( DISTINCT 74 ), + + 78 ) WHEN - ( - 29 ) * - 39 + CAST ( COALESCE ( COUNT ( * ), 86 / COUNT ( * ) + - 91 ) - + 65 AS INTEGER ) * ( CASE ( - MAX ( ALL - 92 ) ) WHEN COUNT ( * ) THEN NULL ELSE + 97 + - 34 END * 30 ) THEN NULL ELSE NULLIF ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - CASE - 54 WHEN + COALESCE ( 44, + 67 * + 38 - + 52, 63 ) + + 63 THEN NULL WHEN 88 THEN 99 / AVG ( ALL 13 * 98 ) ELSE NULL END * ( CAST ( NULL AS INTEGER ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT CASE + COUNT( DISTINCT + 20 ) WHEN 41 THEN NULL WHEN + 11 + + 84 / 96 THEN - 91 - - 69 WHEN 97 THEN ( + 57 ) / 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT CASE + COUNT ( DISTINCT + 20 ) WHEN 41 THEN NULL WHEN + 11 + + 84 / 96 THEN - 91 - - 69 WHEN 97 THEN ( + 57 ) / 29 END
----
NULL

query I rowsort
SELECT ALL - 74 + - + 80 col2
----
-154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5182
SELECT - 54, + CAST( - 0 AS SIGNED ) DIV - 84 * 5 AS col1
----
-54
0

skipif mysql # not compatible
query II rowsort label-5182
SELECT - 54, + CAST ( - 0 AS INTEGER ) / - 84 * 5 AS col1
----
-54
0

query I rowsort
SELECT 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - COUNT( * ) * + + ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5184
SELECT - COUNT ( * ) * + + ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT - 66 * 32 AS col1
----
-2112

query I rowsort
SELECT ALL + 84 + 2 AS col0
----
86

query I rowsort
SELECT 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL + 11 * - + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + 11 * - + COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT - 56 + SUM( ALL - - 62 )
----
6

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - 56 + SUM ( ALL - - 62 )
----
6

query I rowsort
SELECT DISTINCT + 2 + - 56 AS col1
----
-54

query I rowsort
SELECT ALL ( + 8 )
----
8

query I rowsort
SELECT DISTINCT ( 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT - NULLIF ( - - 13, COUNT( * ) + - 3 ) + 14 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5193
SELECT - NULLIF ( - - 13, COUNT ( * ) + - 3 ) + 14 AS col1
----
1

query I rowsort
SELECT DISTINCT ( + 11 ) AS col0
----
11

query I rowsort
SELECT ALL ( + 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5196
SELECT + 24 - - CAST( + 85 AS SIGNED ) AS col0, + 69 + 92 + - 47
----
109
114

skipif mysql # not compatible
query II rowsort label-5196
SELECT + 24 - - CAST ( + 85 AS INTEGER ) AS col0, + 69 + 92 + - 47
----
109
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + 82 * - SUM( + 13 )
----
-1066

skipif mysql # not compatible
query I rowsort label-5197
SELECT + 82 * - SUM ( + 13 )
----
-1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT - CAST( - 76 AS SIGNED ) + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5198
SELECT - CAST ( - 76 AS INTEGER ) + - COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + + 83 - - 21 + - 93 DIV - 98 + + 2 * 87
----
278

skipif mysql # not compatible
query I rowsort label-5199
SELECT + + 83 - - 21 + - 93 / - 98 + + 2 * 87
----
278

query I rowsort
SELECT - - 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT ALL - MAX( + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL - MAX ( + 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + + NULLIF ( + - NULLIF ( + + 36, - 87 ), - 62 * - 28 ) * MAX( 90 )
----
-3240

skipif mysql # not compatible
query I rowsort label-5202
SELECT + + NULLIF ( + - NULLIF ( + + 36, - 87 ), - 62 * - 28 ) * MAX ( 90 )
----
-3240

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT ALL + - 21 DIV - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + - 21 / - + 55 AS col2
----
0

query I rowsort
SELECT ALL - 16 * + 4 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT - 17 * + ( - 24 ) * CAST( NULL AS SIGNED ) + - 46 + ( - 10 - CAST( NULL AS SIGNED ) ) * + 82 * + ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 17 * + ( - 24 ) * CAST ( NULL AS INTEGER ) + - 46 + ( - 10 - CAST ( NULL AS INTEGER ) ) * + 82 * + ( - 6 )
----
NULL

query I rowsort
SELECT ALL + - ( + 8 ) col2
----
-8

query I rowsort
SELECT DISTINCT + 83 * 24 col2
----
1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT( * ) END, + COUNT( * ) DIV - 12 ) * 71
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT ( * ) END, + COUNT ( * ) / - 12 ) * 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT 72 / CASE - 73 WHEN 79 THEN NULL WHEN COUNT( * ) * CAST( + 96 AS SIGNED ) THEN - 79 ELSE NULL END + 73 * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT 72 / CASE - 73 WHEN 79 THEN NULL WHEN COUNT ( * ) * CAST ( + 96 AS INTEGER ) THEN - 79 ELSE NULL END + 73 * + 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5210
SELECT + - 56 DIV 19 + - 86 AS col2, NULLIF ( + + 37, - 88 ) AS col1
----
-88
37

skipif mysql # not compatible
query II rowsort label-5210
SELECT + - 56 / 19 + - 86 AS col2, NULLIF ( + + 37, - 88 ) AS col1
----
-88
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT DISTINCT + COUNT( DISTINCT 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT + COUNT ( DISTINCT 61 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT - - 48 DIV + ( - 82 ) * + 80 + - 39 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5212
SELECT - - 48 / + ( - 82 ) * + 80 + - 39 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT + - NULLIF ( - + 73, 29 * 8 / - COALESCE ( 36, 13 * - 15 ) * + 22 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT + - NULLIF ( - + 73, 29 * 8 / - COALESCE ( 36, 13 * - 15 ) * + 22 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT + - 6 + + + CASE + 22 WHEN 49 * - COUNT( CAST( NULL AS SIGNED ) ) THEN + SUM( + 20 ) WHEN - COALESCE ( 5, 93 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT + - 6 + + + CASE + 22 WHEN 49 * - COUNT ( CAST ( NULL AS INTEGER ) ) THEN + SUM ( + 20 ) WHEN - COALESCE ( 5, 93 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT ALL + 1 DIV + 22 - 37 * + 3 col0
----
-111

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + 1 / + 22 - 37 * + 3 col0
----
-111

query I rowsort
SELECT DISTINCT + 43 AS col2
----
43

query I rowsort
SELECT DISTINCT + + 39 AS col0
----
39

query II rowsort
SELECT ALL + + 78 AS col2, + ( - 26 ) AS col2
----
78
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL + CASE - 44 WHEN 72 / + 24 / + + CASE + 52 WHEN + 16 / 27 THEN NULL WHEN - 1 THEN ( + 26 ) END THEN + COUNT( * ) / 57 END * + 74 + CAST( + 25 AS SIGNED ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + CASE - 44 WHEN 72 / + 24 / + + CASE + 52 WHEN + 16 / 27 THEN NULL WHEN - 1 THEN ( + 26 ) END THEN + COUNT ( * ) / 57 END * + 74 + CAST ( + 25 AS INTEGER ) * + 25
----
NULL

query I rowsort
SELECT DISTINCT + 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT + + NULLIF ( COUNT( * ), - + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + + NULLIF ( COUNT ( * ), - + 29 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT DISTINCT + 60 * CASE - - COUNT( * ) WHEN - 1 * + 50 * + + 44 * 13 + - NULLIF ( 54, 27 * SUM( DISTINCT 27 ) ) - + 99 THEN NULL WHEN - COUNT( * ) / + CAST( NULL AS SIGNED ) THEN NULL WHEN - 44 - + 64 THEN MAX( DISTINCT + 84 ) END + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + 60 * CASE - - COUNT ( * ) WHEN - 1 * + 50 * + + 44 * 13 + - NULLIF ( 54, 27 * SUM ( DISTINCT 27 ) ) - + 99 THEN NULL WHEN - COUNT ( * ) / + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 44 - + 64 THEN MAX ( DISTINCT + 84 ) END + 93 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 75 * 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 75 * 2 col2
----
NULL

query II rowsort
SELECT + 99 AS col2, 73 AS col2
----
99
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT + 8 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 8 / - 48 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5227
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5228
SELECT ALL + COUNT( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 DIV - 53 ) AS col0
----
1
46

skipif mysql # not compatible
query II rowsort label-5228
SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 / - 53 ) AS col0
----
1
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX( ALL + CAST( - 63 AS SIGNED ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX ( ALL + CAST ( - 63 AS INTEGER ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL + 34 * 53 + ( - 73 ) + - COUNT( DISTINCT - - 97 ) + 18 * 57 AS col1
----
2754

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + 34 * 53 + ( - 73 ) + - COUNT ( DISTINCT - - 97 ) + 18 * 57 AS col1
----
2754

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5231
SELECT ALL COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT ( 59 ) * + 2 + - - COUNT( * ) - ( + MAX( 65 ) ) + 92 * 21 AS col1
----
1986

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT ( 59 ) * + 2 + - - COUNT ( * ) - ( + MAX ( 65 ) ) + 92 * 21 AS col1
----
1986

query I rowsort
SELECT - 13 * - 10 * 58 AS col2
----
7540

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL NULLIF ( 86, MIN( ALL - 90 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL NULLIF ( 86, MIN ( ALL - 90 ) )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT ALL - 43 DIV - 69 * - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL - 43 / - 69 * - 40 AS col1
----
0

query I rowsort
SELECT ALL ( + - 43 )
----
-43

query I rowsort
SELECT - 83 * + + ( - + 84 )
----
6972

query I rowsort
SELECT - 0 + CASE 58 WHEN + + 53 THEN 60 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 7 - - 1 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL + COUNT( ALL + 19 ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + COUNT ( ALL + 19 ) * + 97
----
97

query II rowsort
SELECT 17 col0, + ( - 11 ) * - - 73
----
17
-803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL CASE 88 WHEN + - 90 THEN CAST( 37 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL CASE 88 WHEN + - 90 THEN CAST ( 37 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 79 - + 18 AS col0
----
-97

query II rowsort
SELECT - 30, 79 AS col2
----
-30
79

query I rowsort
SELECT - - 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL - - 56 - - - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - - 56 - - - COUNT ( * ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT ALL + - COUNT( DISTINCT - 32 ) * - ( + - COUNT( * ) ), 94 AS col2
----
-1
94

skipif mysql # not compatible
query II rowsort label-5247
SELECT ALL + - COUNT ( DISTINCT - 32 ) * - ( + - COUNT ( * ) ), 94 AS col2
----
-1
94

query I rowsort
SELECT ALL - 65 - 43 * - 49 + - 6 + - 36 AS col0
----
2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT ALL CASE - + 9 WHEN MAX( DISTINCT + 75 ) + + NULLIF ( + 76, + 8 * CAST( NULL AS SIGNED ) + - 16 ) + 81 THEN + 26 + + 31 / + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL CASE - + 9 WHEN MAX ( DISTINCT + 75 ) + + NULLIF ( + 76, + 8 * CAST ( NULL AS INTEGER ) + - 16 ) + 81 THEN + 26 + + 31 / + 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ( - ( - 90 ) ) - - 5 + - SUM( ALL - 45 )
----
140

skipif mysql # not compatible
query I rowsort label-5250
SELECT ( - ( - 90 ) ) - - 5 + - SUM ( ALL - 45 )
----
140

query I rowsort
SELECT + 13 * 76 AS col0
----
988

query II rowsort
SELECT ALL - 48 AS col0, 42 * - ( + 67 ) AS col2
----
-48
-2814

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - + MAX( ALL 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-5253
SELECT - + MAX ( ALL 10 )
----
-10

query II rowsort
SELECT 88 AS col1, - 4 AS col0
----
88
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT + + 81, - 88 * MIN( + 27 ) AS col1
----
81
-2376

skipif mysql # not compatible
query II rowsort label-5255
SELECT + + 81, - 88 * MIN ( + 27 ) AS col1
----
81
-2376

query I rowsort
SELECT DISTINCT - - 44
----
44

query II rowsort
SELECT + 88, - 99 AS col1
----
88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL 32 + CASE ( - COUNT( * ) ) WHEN + ( - 13 ) * 64 + COUNT( * ) THEN NULL ELSE 78 + - COUNT( * ) END
----
109

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL 32 + CASE ( - COUNT ( * ) ) WHEN + ( - 13 ) * 64 + COUNT ( * ) THEN NULL ELSE 78 + - COUNT ( * ) END
----
109

query II rowsort
SELECT ALL - 4 col0, 91 col0
----
-4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL - 11 * - COALESCE ( - 34, + COUNT( * ) + + 19 ) AS col1
----
-374

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - 11 * - COALESCE ( - 34, + COUNT ( * ) + + 19 ) AS col1
----
-374

query I rowsort
SELECT ALL - ( - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - 59 * - MAX( - + 28 )
----
-1652

skipif mysql # not compatible
query I rowsort label-5262
SELECT - 59 * - MAX ( - + 28 )
----
-1652

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5263
SELECT - 22 AS col0, 98 DIV - + ( - + COUNT( * ) ) AS col0
----
-22
98

skipif mysql # not compatible
query II rowsort label-5263
SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0
----
-22
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - COUNT( 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5264
SELECT - COUNT ( 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT SUM( DISTINCT + 2 ) DIV 7 + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5265
SELECT SUM ( DISTINCT + 2 ) / 7 + 43 AS col1
----
43

query I rowsort
SELECT ALL 85 + - 82 * + + 46 * - 82 AS col2
----
309389

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT COUNT( * ) * + 61 + + 5 - - 89 + + + 87
----
242

skipif mysql # not compatible
query I rowsort label-5267
SELECT COUNT ( * ) * + 61 + + 5 - - 89 + + + 87
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT + 0 * + + COUNT( * ) - 8 / + + 43 / - COALESCE ( 49, + NULLIF ( 89, - ( - CASE 41 WHEN 72 + COUNT( DISTINCT + 96 ) / - 15 THEN + 21 END ) ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 0 * + + COUNT ( * ) - 8 / + + 43 / - COALESCE ( 49, + NULLIF ( 89, - ( - CASE 41 WHEN 72 + COUNT ( DISTINCT + 96 ) / - 15 THEN + 21 END ) ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 26 AS col2
----
-26

query I rowsort
SELECT 62 col1
----
62

query I rowsort
SELECT ALL - 97 AS col2
----
-97

query II rowsort
SELECT DISTINCT 8 + 56 AS col0, - 32 AS col1
----
64
-32

query I rowsort
SELECT + 43 * 92 + - 69 AS col1
----
3887

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT 71 * - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5274
SELECT 71 * - COUNT ( * ) AS col2
----
-71

query II rowsort
SELECT 77 + 82, 50 * - 17 AS col2
----
159
-850

query I rowsort
SELECT - 73 AS col2
----
-73

query I rowsort
SELECT ALL 75 col0
----
75

query I rowsort
SELECT 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT 25 + + + ( - - 53 ) + + 19 * - - CASE + - 37 WHEN - - 65 THEN COUNT( * ) + 27 * 26 ELSE - 28 END * 94
----
-49930

skipif mysql # not compatible
query I rowsort label-5279
SELECT 25 + + + ( - - 53 ) + + 19 * - - CASE + - 37 WHEN - - 65 THEN COUNT ( * ) + 27 * 26 ELSE - 28 END * 94
----
-49930

query I rowsort
SELECT ALL 30 AS col0
----
30

query I rowsort
SELECT 96 * + - 90 AS col0
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL 77 * - CASE 26 WHEN - COUNT( * ) / - - 91 + + 97 THEN - 4 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL 77 * - CASE 26 WHEN - COUNT ( * ) / - - 91 + + 97 THEN - 4 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 94 * 53 AS col1
----
4982

query I rowsort
SELECT 12 + - ( + 67 ) AS col1
----
-55

query I rowsort
SELECT ALL 48 AS col1
----
48

query I rowsort
SELECT DISTINCT + 9
----
9

query I rowsort
SELECT DISTINCT - 55
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL COALESCE ( + 48, CAST( 70 AS SIGNED ) * 99 * + 1 + + + 54 - - 85 + 35, - 99 + 49 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL COALESCE ( + 48, CAST ( 70 AS INTEGER ) * 99 * + 1 + + + 54 - - 85 + 35, - 99 + 49 ) AS col1
----
48

query I rowsort
SELECT 14 + 59 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5290
SELECT + 27 DIV + ( - + COUNT( DISTINCT - - 70 ) ) + 38 + + 97 * + 94 AS col0
----
9129

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 27 / + ( - + COUNT ( DISTINCT - - 70 ) ) + 38 + + 97 * + 94 AS col0
----
9129

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT - NULLIF ( - - NULLIF ( - COUNT( * ), - - ( - ( - - 41 ) ) + 35 ), - 61 ) + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5291
SELECT - NULLIF ( - - NULLIF ( - COUNT ( * ), - - ( - ( - - 41 ) ) + 35 ), - 61 ) + 0 AS col1
----
1

query I rowsort
SELECT 3 - + 86 AS col1
----
-83

query I rowsort
SELECT - 50 + 77 * - 56 * - 2 AS col1
----
8574

query I rowsort
SELECT - 20 - + 54
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT 52 DIV + 83 * 62 * 81 + + 38
----
38

skipif mysql # not compatible
query I rowsort label-5295
SELECT 52 / + 83 * 62 * 81 + + 38
----
38

query I rowsort
SELECT ALL 33 + 87 - 23 * - 18 * - 8 * + 91 + + + 48
----
-301224

query I rowsort
SELECT DISTINCT 21
----
21

query I rowsort
SELECT DISTINCT + 73 * - 34 AS col1
----
-2482

query I rowsort
SELECT ALL - + 66 + - - 43 AS col0
----
-23

query II rowsort
SELECT + 86 + 85 AS col1, + 21 * - 30 AS col2
----
171
-630

query I rowsort
SELECT ALL 5 AS col2
----
5

query I rowsort
SELECT DISTINCT - 82 + - 89 AS col0
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-5303
SELECT ( - COUNT( * ) ) AS col2, 52 col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-5303
SELECT ( - COUNT ( * ) ) AS col2, 52 col2
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + COUNT( * ) * - COUNT( * ) + - 19 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 19 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + COALESCE ( + MAX( - 29 ), - 31, + - 58 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5305
SELECT + COALESCE ( + MAX ( - 29 ), - 31, + - 58 ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - COUNT( DISTINCT + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-5307
SELECT - COUNT ( DISTINCT + 3 )
----
-1

query I rowsort
SELECT 56 * - + 6
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT 91 + + 28 + - - COUNT( + 35 ) + + COUNT( * ) + - MAX( + 54 ) + 93 * + CAST( NULL AS SIGNED ) / - COALESCE ( + 85, CAST( NULL AS SIGNED ) ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT 91 + + 28 + - - COUNT ( + 35 ) + + COUNT ( * ) + - MAX ( + 54 ) + 93 * + CAST ( NULL AS INTEGER ) / - COALESCE ( + 85, CAST ( NULL AS INTEGER ) ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT 96 * - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT 96 * - COUNT ( * ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT 2 * - SUM( ALL + 67 ) + + 60 + + - 91
----
-165

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT 2 * - SUM ( ALL + 67 ) + + 60 + + - 91
----
-165

query I rowsort
SELECT 81 * 73 AS col1
----
5913

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL + 52 * - COALESCE ( COUNT( * ), - ( 39 ) - - 37 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL + 52 * - COALESCE ( COUNT ( * ), - ( 39 ) - - 37 ) AS col1
----
-52

query I rowsort
SELECT DISTINCT + 43 * - 17 AS col0
----
-731

query I rowsort
SELECT ALL - 80 * - 3
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL + COUNT( * ) - - + 4 * + + 46 * - + 68 - 60 * - 22 + - NULLIF ( - + ( NULLIF ( + MIN( ALL + ( 35 ) ), - 2 * + COUNT( * ) ) ), 97 ) + 11 AS col1
----
-11145

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + COUNT ( * ) - - + 4 * + + 46 * - + 68 - 60 * - 22 + - NULLIF ( - + ( NULLIF ( + MIN ( ALL + ( 35 ) ), - 2 * + COUNT ( * ) ) ), 97 ) + 11 AS col1
----
-11145

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT 71 - - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5317
SELECT 71 - - COUNT ( * ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT NULLIF ( + - 62, - 95 + + COUNT( ALL - CAST( NULL AS SIGNED ) ) ) * + 2 * - 17 + - + 65 AS col1
----
2043

skipif mysql # not compatible
query I rowsort label-5318
SELECT NULLIF ( + - 62, - 95 + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) * + 2 * - 17 + - + 65 AS col1
----
2043

query I rowsort
SELECT 80 - 62
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT 16 * + - 23 * + - COUNT( * ) AS col2
----
368

skipif mysql # not compatible
query I rowsort label-5320
SELECT 16 * + - 23 * + - COUNT ( * ) AS col2
----
368

query I rowsort
SELECT ALL - 51 AS col0
----
-51

query I rowsort
SELECT 80 * + 67 * 94 + - 47 AS col0
----
503793

query I rowsort
SELECT + 47 * + 72 AS col1
----
3384

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT 81 * + + NULLIF ( - + 13, - 54 ) + COUNT( * ) * - 57 AS col0, 19 + - COUNT( ALL 55 )
----
-1110
18

skipif mysql # not compatible
query II rowsort label-5324
SELECT 81 * + + NULLIF ( - + 13, - 54 ) + COUNT ( * ) * - 57 AS col0, 19 + - COUNT ( ALL 55 )
----
-1110
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT + 24 - - CASE - 85 WHEN + 42 THEN + - COUNT( ALL 77 ) * + ( - 33 ) WHEN CAST( + 78 AS SIGNED ) THEN 92 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 24 - - CASE - 85 WHEN + 42 THEN + - COUNT ( ALL 77 ) * + ( - 33 ) WHEN CAST ( + 78 AS INTEGER ) THEN 92 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL COUNT ( * ) * - 71
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5328
SELECT - 99 AS col2, + COUNT( * ) DIV COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-5328
SELECT - 99 AS col2, + COUNT ( * ) / COUNT ( * ) AS col1
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - COUNT ( * ) * - 26
----
26

query I rowsort
SELECT ALL 65 * + 19 * - + 52 AS col1
----
-64220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT + CAST( NULL AS SIGNED ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + CAST ( NULL AS INTEGER ) * - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT - - 94 + + + COUNT( * ) + + + CASE 92 WHEN - - 12 THEN - + 93 - - CAST( + + COALESCE ( 56, 88 ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT - - 94 + + + COUNT ( * ) + + + CASE 92 WHEN - - 12 THEN - + 93 - - CAST ( + + COALESCE ( 56, 88 ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL - - 14 + - 88 + + CAST( - COUNT( * ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - - 14 + - 88 + + CAST ( - COUNT ( * ) AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ( - MIN( DISTINCT 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT ( - MIN ( DISTINCT 0 ) ) AS col0
----
0

query I rowsort
SELECT ALL - 44 + - 81
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5336
SELECT + - ( - CASE + SUM( DISTINCT - + 68 ) WHEN - 92 THEN 85 END ) * + 27 / CAST( + NULLIF ( - 23, COUNT( * ) ) AS SIGNED ) * + 87 + NULLIF ( - ( - 30 ), + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT + - ( - CASE + SUM ( DISTINCT - + 68 ) WHEN - 92 THEN 85 END ) * + 27 / CAST ( + NULLIF ( - 23, COUNT ( * ) ) AS INTEGER ) * + 87 + NULLIF ( - ( - 30 ), + 53 ) AS col2
----
NULL

query II rowsort
SELECT ALL 61 AS col1, - 51 AS col0
----
61
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT NULLIF ( - COUNT( * ), 94 ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT NULLIF ( - COUNT ( * ), 94 ) + + 84 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5339
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + - 76 DIV - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + - 76 / - 40 AS col0
----
2

query I rowsort
SELECT + 23 - - 77
----
100

query II rowsort
SELECT - - 46, 21 + + 28 col0
----
46
49

query I rowsort
SELECT - 34 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL 67 + - SUM( - + 50 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL 67 + - SUM ( - + 50 ) AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT DISTINCT + + NULLIF ( + 94, - - 37 ) DIV + - 71
----
-1

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + + NULLIF ( + 94, - - 37 ) / + - 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + 50 + - - 46 * + - NULLIF ( - 30, + - NULLIF ( - COUNT( * ), 60 * - + 39 ) + ( 52 + AVG ( 26 ) ) ) * + 49
----
67670

skipif mysql # not compatible
query I rowsort label-5345
SELECT + 50 + - - 46 * + - NULLIF ( - 30, + - NULLIF ( - COUNT ( * ), 60 * - + 39 ) + ( 52 + AVG ( 26 ) ) ) * + 49
----
67670

query I rowsort
SELECT - - 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL NULLIF ( - 49, + + CASE + 4 WHEN 47 * - 31 + - - 35 * 43 THEN NULL WHEN 27 * COUNT( * ) THEN + CAST( - 67 AS SIGNED ) * COALESCE ( 55, 94 ) END + 40 * 32 )
----
-49

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL NULLIF ( - 49, + + CASE + 4 WHEN 47 * - 31 + - - 35 * 43 THEN NULL WHEN 27 * COUNT ( * ) THEN + CAST ( - 67 AS INTEGER ) * COALESCE ( 55, 94 ) END + 40 * 32 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL + 28 * + 78 * 79 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + 28 * + 78 * 79 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + SUM( ALL - 8 ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-5349
SELECT + SUM ( ALL - 8 ) col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT - + 17 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT - + 17 / + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT DISTINCT + 28, + COUNT( * ) AS col1
----
28
1

skipif mysql # not compatible
query II rowsort label-5351
SELECT DISTINCT + 28, + COUNT ( * ) AS col1
----
28
1

query I rowsort
SELECT ALL + 7 col1
----
7

query I rowsort
SELECT ALL 26 * + 59
----
1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT + 91 * + + ( MIN( DISTINCT - COALESCE ( NULLIF ( 15, - 85 ), + - 40 * - ( + 11 ) ) ) ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 91 * + + ( MIN ( DISTINCT - COALESCE ( NULLIF ( 15, - 85 ), + - 40 * - ( + 11 ) ) ) ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - ( + 75 ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT ALL 10 * + + 77 - - - 88 * + ( 16 ) + - SUM( 17 ) + - + CASE - + MIN( ALL 76 ) WHEN 48 THEN NULL WHEN - CASE - CAST( - 15 AS SIGNED ) WHEN - ( - 71 ) THEN NULL WHEN + ( + 99 ) * COUNT( * ) + - 55 THEN NULLIF ( - 68, - 53 ) + + COUNT( * ) END + + 35 THEN + 30 END * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL 10 * + + 77 - - - 88 * + ( 16 ) + - SUM ( 17 ) + - + CASE - + MIN ( ALL 76 ) WHEN 48 THEN NULL WHEN - CASE - CAST ( - 15 AS INTEGER ) WHEN - ( - 71 ) THEN NULL WHEN + ( + 99 ) * COUNT ( * ) + - 55 THEN NULLIF ( - 68, - 53 ) + + COUNT ( * ) END + + 35 THEN + 30 END * - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + COUNT( * ) * - ( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-5357
SELECT + COUNT ( * ) * - ( - 8 )
----
8

query I rowsort
SELECT ( - 58 ) col0
----
-58

query I rowsort
SELECT ALL + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT NULLIF ( - SUM( DISTINCT + + 13 ), 62 * 4 * + 3 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5360
SELECT NULLIF ( - SUM ( DISTINCT + + 13 ), 62 * 4 * + 3 ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT + CAST( NULL AS SIGNED ) / - 3 + + + 57 - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT + CAST ( NULL AS INTEGER ) / - 3 + + + 57 - 39
----
NULL

query I rowsort
SELECT ALL + 25 col0
----
25

query I rowsort
SELECT NULLIF ( - ( - 88 ), 35 ) AS col2
----
88

query I rowsort
SELECT DISTINCT + 67 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT ALL + SUM( DISTINCT - CAST( 49 AS SIGNED ) ) * - 79
----
3871

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + SUM ( DISTINCT - CAST ( 49 AS INTEGER ) ) * - 79
----
3871

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT - 48 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT - 48 / + + 64
----
0

query I rowsort
SELECT ALL + COALESCE ( - 83, 67 )
----
-83

query I rowsort
SELECT ALL + 86
----
86

query I rowsort
SELECT DISTINCT + 57
----
57

query I rowsort
SELECT ALL + 95 * - 65
----
-6175

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT + 18 DIV 25 * 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 18 / 25 * 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + COUNT( - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + COUNT ( - 23 )
----
1

query I rowsort
SELECT + + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT COALESCE ( CASE 58 WHEN 27 * - COUNT( * ) + - 51 * SUM( DISTINCT + - 24 ) THEN NULL ELSE 12 * - 17 END, + 36 ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-5374
SELECT COALESCE ( CASE 58 WHEN 27 * - COUNT ( * ) + - 51 * SUM ( DISTINCT + - 24 ) THEN NULL ELSE 12 * - 17 END, + 36 ) AS col2
----
-204

query I rowsort
SELECT - + 56 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5376
SELECT - + 28 DIV + NULLIF ( CAST( + 86 AS SIGNED ), + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT - + 28 / + NULLIF ( CAST ( + 86 AS INTEGER ), + 67 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT + + CAST( NULL AS SIGNED ) * + 96 + + + COALESCE ( - AVG ( 18 ), - + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT + + CAST ( NULL AS INTEGER ) * + 96 + + + COALESCE ( - AVG ( 18 ), - + 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL 71 + + - CASE - + 3 WHEN 77 + + - 15 THEN NULL WHEN - COUNT( * ) THEN 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL 71 + + - CASE - + 3 WHEN 77 + + - 15 THEN NULL WHEN - COUNT ( * ) THEN 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - 66 * + 77 - + COUNT( * ) AS col0
----
-5083

skipif mysql # not compatible
query I rowsort label-5379
SELECT - 66 * + 77 - + COUNT ( * ) AS col0
----
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT MIN( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5380
SELECT MIN ( + 57 )
----
57

query I rowsort
SELECT ALL CASE + - 17 WHEN - 72 * 89 THEN NULL WHEN - 77 THEN 29 * - 56 - - - 56 END
----
NULL

query I rowsort
SELECT DISTINCT + + 32 + + 27
----
59

query I rowsort
SELECT DISTINCT - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL 99 * + + 79 + + + 34 * + 16 * - COUNT( * )
----
7277

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 99 * + + 79 + + + 34 * + 16 * - COUNT ( * )
----
7277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5385
SELECT ALL COUNT( * ) + - - CAST( - COUNT( 90 ) AS SIGNED ) DIV 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL COUNT ( * ) + - - CAST ( - COUNT ( 90 ) AS INTEGER ) / 12 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT - - 1 + + COUNT( * ) * + COUNT( * ) DIV - + 61
----
1

skipif mysql # not compatible
query I rowsort label-5386
SELECT - - 1 + + COUNT ( * ) * + COUNT ( * ) / - + 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL + COUNT( * ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL + COUNT ( * ) * 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5388
SELECT + + 21 - 63, COALESCE ( 39, + 77 * + CAST( 74 AS SIGNED ) - - 21 + 29 ) AS col2
----
-42
39

skipif mysql # not compatible
query II rowsort label-5388
SELECT + + 21 - 63, COALESCE ( 39, + 77 * + CAST ( 74 AS INTEGER ) - - 21 + 29 ) AS col2
----
-42
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT + - 52 + SUM( - 44 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5389
SELECT + - 52 + SUM ( - 44 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT - - 46 + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5390
SELECT - - 46 + + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT ALL - 41 - + - 87 - - 86 + + 5 + + - 95 * + COALESCE ( + 77, + 61 ) + + 26 * - 76
----
-9154

query I rowsort
SELECT - + 69 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT - CAST( 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-5393
SELECT - CAST ( 43 AS INTEGER )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5394
SELECT ALL ( + 49 ) - - - 39 / + 9 / + - CAST( NULL AS SIGNED ) * 27 + + CASE + + 46 WHEN - 64 THEN 71 WHEN CASE 98 WHEN + CAST( 93 AS DECIMAL ) THEN - 12 * - COUNT( * ) WHEN 65 THEN - 25 + 27 END * SUM( ALL 0 ) THEN 87 + - 25 ELSE NULL END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL ( + 49 ) - - - 39 / + 9 / + - CAST ( NULL AS INTEGER ) * 27 + + CASE + + 46 WHEN - 64 THEN 71 WHEN CASE 98 WHEN + CAST ( 93 AS REAL ) THEN - 12 * - COUNT ( * ) WHEN 65 THEN - 25 + 27 END * SUM ( ALL 0 ) THEN 87 + - 25 ELSE NULL END * + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5395
SELECT + COUNT( * ) + + 33 + + 50 DIV + 30
----
35

skipif mysql # not compatible
query I rowsort label-5395
SELECT + COUNT ( * ) + + 33 + + 50 / + 30
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT ALL + 97 DIV 9
----
10

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + 97 / 9
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT + CAST( NULL AS SIGNED ) + - - CAST( 61 AS SIGNED ) AS col2, 69 + - 61
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5397
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( 61 AS INTEGER ) AS col2, 69 + - 61
----
NULL
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT + ( 2 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5398
SELECT + ( 2 ) / 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT 98 DIV 80 + + - 41 * - 75
----
3076

skipif mysql # not compatible
query I rowsort label-5399
SELECT 98 / 80 + + - 41 * - 75
----
3076

query I rowsort
SELECT - 66 * - 84
----
5544

query I rowsort
SELECT - 84 + + 28
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + 96 * + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5402
SELECT + 96 * + COUNT ( * ) AS col1
----
96

query I rowsort
SELECT DISTINCT - 80 * - 44
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + COUNT( * ) * + COALESCE ( + 57, + 34 * - CASE - ( - COUNT( * ) ) WHEN + - 55 * - 10 * - 22 + + 55 THEN NULL ELSE NULLIF ( 3, COUNT( ALL + 34 ) + 69 ) * - ( - 75 ) END + 96 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + COUNT ( * ) * + COALESCE ( + 57, + 34 * - CASE - ( - COUNT ( * ) ) WHEN + - 55 * - 10 * - 22 + + 55 THEN NULL ELSE NULLIF ( 3, COUNT ( ALL + 34 ) + 69 ) * - ( - 75 ) END + 96 ) AS col2
----
57

query I rowsort
SELECT ALL - 32 AS col0
----
-32

query I rowsort
SELECT DISTINCT + 8 * + - 85
----
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT 71 * + CAST( NULL AS SIGNED ) * + 0 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT 71 * + CAST ( NULL AS INTEGER ) * + 0 * 36 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 88 ) AS col2
----
-88

query I rowsort
SELECT 22 + - - 89
----
111

query I rowsort
SELECT DISTINCT + 17 + - - 41 * 22 * + 66 * + - ( + 41 )
----
-2440795

query II rowsort
SELECT + 27 AS col1, - ( - + 32 ) * - 74
----
27
-2368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5412
SELECT CAST( NULL AS DECIMAL ) - + 79 + - ( + + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT CAST ( NULL AS REAL ) - + 79 + - ( + + 44 )
----
NULL

query I rowsort
SELECT 12 * 78 * + + 21 AS col1
----
19656

query I rowsort
SELECT 15 - + + 43 - ( + 61 ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT CAST( - 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5415
SELECT CAST ( - 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT MAX( ALL COALESCE ( 82, 23, - 42 * + 39 ) ) * - 29 * 93 + + - ( + 29 ) * - 12 AS col0
----
-220806

skipif mysql # not compatible
query I rowsort label-5416
SELECT MAX ( ALL COALESCE ( 82, 23, - 42 * + 39 ) ) * - 29 * 93 + + - ( + 29 ) * - 12 AS col0
----
-220806

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT - COUNT( * ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * )
----
-2

query I rowsort
SELECT + - 58
----
-58

query I rowsort
SELECT ALL - - 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - COUNT( * ) + + - ( - - CASE - + 32 WHEN 53 THEN - 47 WHEN - 23 + - COUNT( * ) + - 18 THEN NULL END ) * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - COUNT ( * ) + + - ( - - CASE - + 32 WHEN 53 THEN - 47 WHEN - 23 + - COUNT ( * ) + - 18 THEN NULL END ) * + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT ALL COUNT( * ) col1, 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL COUNT ( * ) col1, 0 AS col2
----
1
0

query I rowsort
SELECT DISTINCT + + 30 + + 41 * - - 18 * 5 * 51 + 76 AS col1
----
188296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL - 11 + + NULLIF ( 11, - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - 11 + + NULLIF ( 11, - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT - + 83 AS col2
----
-83

query I rowsort
SELECT NULLIF ( + 42, + 93 ) * + 26
----
1092

query I rowsort
SELECT - + 60
----
-60

query I rowsort
SELECT - 89 + 88 col0
----
-1

query I rowsort
SELECT DISTINCT 74 AS col0
----
74

query I rowsort
SELECT ALL - 96
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT DISTINCT - + 25 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - + 25 / + 73
----
0

query I rowsort
SELECT 61 - + - 26 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT CAST( NULL AS SIGNED ) * - - 83 * 47 * + - COALESCE ( NULLIF ( + 63, - NULLIF ( + 28, + COUNT( * ) ) ), - + 48, - 40 + 41 * + 1 ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT CAST ( NULL AS INTEGER ) * - - 83 * 47 * + - COALESCE ( NULLIF ( + 63, - NULLIF ( + 28, + COUNT ( * ) ) ), - + 48, - 40 + 41 * + 1 ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT COUNT( * ) * + 79 DIV - + 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT COUNT ( * ) * + 79 / - + 71 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT 81 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT 81 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL 66 * - + COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 66 * - + COUNT ( * ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL - 21 * + CAST( NULL AS SIGNED ) * + ( - COUNT( ALL - + 79 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - 21 * + CAST ( NULL AS INTEGER ) * + ( - COUNT ( ALL - + 79 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT - NULLIF ( - 4, 90 * 48 * - 76 + - 36 + - - COUNT( * ) + + 80 + - CAST( - COUNT( * ) AS SIGNED ) * ( + ( 32 ) ) + - COUNT( * ) ) * 9 - + 96 * - 87
----
8388

skipif mysql # not compatible
query I rowsort label-5437
SELECT - NULLIF ( - 4, 90 * 48 * - 76 + - 36 + - - COUNT ( * ) + + 80 + - CAST ( - COUNT ( * ) AS INTEGER ) * ( + ( 32 ) ) + - COUNT ( * ) ) * 9 - + 96 * - 87
----
8388

query I rowsort
SELECT ALL 13 * 12 col2
----
156

query I rowsort
SELECT ALL 19 + 0 AS col2
----
19

query I rowsort
SELECT 22 * - 20 * - + 62 AS col0
----
27280

query I rowsort
SELECT ( - 95 ) + - - 83
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL COUNT( * ) + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL COUNT ( * ) + ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5443
SELECT 58 AS col2, - NULLIF ( - 19, - 98 + + + 83 ) * + + CAST( 50 AS SIGNED ) + - 62 + - - 55
----
58
943

skipif mysql # not compatible
query II rowsort label-5443
SELECT 58 AS col2, - NULLIF ( - 19, - 98 + + + 83 ) * + + CAST ( 50 AS INTEGER ) + - 62 + - - 55
----
58
943

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT ( * ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT ALL 0 DIV - - COALESCE ( - CASE + 30 WHEN - + 37 * - 14 + - 77 + - - 76 THEN - COUNT( * ) END, + 74 DIV + NULLIF ( ( 60 ), - 15 ) + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 0 / - - COALESCE ( - CASE + 30 WHEN - + 37 * - 14 + - 77 + - - 76 THEN - COUNT ( * ) END, + 74 / + NULLIF ( ( 60 ), - 15 ) + 70 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT 12 DIV + ( 81 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT 12 / + ( 81 ) col1
----
0

query I rowsort
SELECT + 0 * + 49 - - ( - 33 )
----
-33

query II rowsort
SELECT + 82, - 74 - - 30 AS col0
----
82
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5449
SELECT 24 + + - 60 - + CAST( 40 AS SIGNED ) - - - ( - - 11 ) DIV - - 27 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5449
SELECT 24 + + - 60 - + CAST ( 40 AS INTEGER ) - - - ( - - 11 ) / - - 27 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT NULLIF ( 92, COUNT( * ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-5450
SELECT NULLIF ( 92, COUNT ( * ) ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL MIN( - - 15 ) + - 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL MIN ( - - 15 ) + - 14 AS col2
----
1

query II rowsort
SELECT DISTINCT - ( - 6 ) AS col1, ( + - 91 ) + - 42 AS col2
----
6
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL - + CASE 1 WHEN + 14 * + COUNT( * ) + - 53 + + CAST( - - 34 AS SIGNED ) + + 7 * ( - 30 ) - + ( COUNT( * ) ) * + 85 * - 55 THEN NULL WHEN - 37 THEN NULL WHEN 82 + 62 THEN 74 * 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - + CASE 1 WHEN + 14 * + COUNT ( * ) + - 53 + + CAST ( - - 34 AS INTEGER ) + + 7 * ( - 30 ) - + ( COUNT ( * ) ) * + 85 * - 55 THEN NULL WHEN - 37 THEN NULL WHEN 82 + 62 THEN 74 * 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT 3 * + CASE + - COUNT( * ) WHEN COUNT( * ) * - ( - - 51 ) * - + ( + 16 ) THEN + 25 WHEN - - 32 - - COUNT( * ) THEN - 31 WHEN 46 * 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT 3 * + CASE + - COUNT ( * ) WHEN COUNT ( * ) * - ( - - 51 ) * - + ( + 16 ) THEN + 25 WHEN - - 32 - - COUNT ( * ) THEN - 31 WHEN 46 * 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( - 59 ) * + 50 * + + 73 * - 39 col1
----
-8398650

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT MIN( ALL 89 ) + + NULLIF ( 96, - 35 ) + - 66 AS col1, + 15 - - 95 AS col0
----
119
110

skipif mysql # not compatible
query II rowsort label-5456
SELECT MIN ( ALL 89 ) + + NULLIF ( 96, - 35 ) + - 66 AS col1, + 15 - - 95 AS col0
----
119
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( DISTINCT - 15 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5458
SELECT + CAST( NULL AS SIGNED ) AS col0, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-5458
SELECT + CAST ( NULL AS INTEGER ) AS col0, 27
----
NULL
27

query I rowsort
SELECT 83 + - + 25 * + ( - 64 ) + + 52 AS col2
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + + COUNT( + ( - 28 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT + + COUNT ( + ( - 28 ) ) AS col0
----
1

query I rowsort
SELECT - 3 + + + 31
----
28

query II rowsort
SELECT + 85 col0, - 46
----
85
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT + - COUNT( * ) - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + - COUNT ( * ) - + 28
----
-29

query II rowsort
SELECT ALL - 62 AS col0, 95 * - 65
----
-62
-6175

query I rowsort
SELECT ALL 64 AS col1
----
64

query I rowsort
SELECT DISTINCT 3 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5467
SELECT - 44 * + + CAST( + - AVG ( + NULLIF ( + 50, - - 35 ) ) AS SIGNED ), + 10 * - COALESCE ( - + 31, + 18 DIV - 93 ) * 48 AS col2
----
2200
14880

skipif mysql # not compatible
query II rowsort label-5467
SELECT - 44 * + + CAST ( + - AVG ( + NULLIF ( + 50, - - 35 ) ) AS INTEGER ), + 10 * - COALESCE ( - + 31, + 18 / - 93 ) * 48 AS col2
----
2200
14880

query I rowsort
SELECT + ( + 97 ) + + 79 + - 8 col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL MIN( - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL MIN ( - - 47 )
----
47

query I rowsort
SELECT + 66 + 59
----
125

query I rowsort
SELECT 31 + 72
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT + 10 * 77 DIV + - 1 + + 88 * - 71
----
-7018

skipif mysql # not compatible
query I rowsort label-5472
SELECT + 10 * 77 / + - 1 + + 88 * - 71
----
-7018

query II rowsort
SELECT ALL - - COALESCE ( - 28, + 93, 10, + 62 ) * - 41 * 80 AS col1, + 57 * 25
----
91840
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT 71 + ( - + 25 ) + - 60 + + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5474
SELECT 71 + ( - + 25 ) + - 60 + + COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5475
SELECT ALL MIN( ALL + 50 ) col0, + 46 + - 56 AS col0
----
50
-10

skipif mysql # not compatible
query II rowsort label-5475
SELECT ALL MIN ( ALL + 50 ) col0, + 46 + - 56 AS col0
----
50
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT 81 + ( + - COUNT( * ) ) DIV + + 60 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5476
SELECT 81 + ( + - COUNT ( * ) ) / + + 60 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL COALESCE ( - ( - 79 ), ( + 2 ) + - + COUNT( DISTINCT - + COALESCE ( - 74, + - 44 ) ), + 51 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL COALESCE ( - ( - 79 ), ( + 2 ) + - + COUNT ( DISTINCT - + COALESCE ( - 74, + - 44 ) ), + 51 ) AS col2
----
79

query I rowsort
SELECT DISTINCT 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT - 31 * - COUNT( * ) * - 76
----
-2356

skipif mysql # not compatible
query I rowsort label-5479
SELECT - 31 * - COUNT ( * ) * - 76
----
-2356

query I rowsort
SELECT ALL - 35 + - 20 + + 99
----
44

query I rowsort
SELECT DISTINCT 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL NULLIF ( + 78, + 91 + 47 ) + - 70 + - SUM( DISTINCT + - 92 ) + + COUNT( - 94 ) * 64
----
164

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL NULLIF ( + 78, + 91 + 47 ) + - 70 + - SUM ( DISTINCT + - 92 ) + + COUNT ( - 94 ) * 64
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT - 25 + + CAST( NULL AS SIGNED ) / - + 62 + + MAX( ALL - CASE - 89 WHEN + + 20 THEN - 59 ELSE 74 / - - 27 END ) * + NULLIF ( 64, 17 ) + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT - 25 + + CAST ( NULL AS INTEGER ) / - + 62 + + MAX ( ALL - CASE - 89 WHEN + + 20 THEN - 59 ELSE 74 / - - 27 END ) * + NULLIF ( 64, 17 ) + - 84 AS col0
----
NULL

query I rowsort
SELECT + 1 + - 90 - + + 7 AS col2
----
-96

query I rowsort
SELECT DISTINCT + ( + - 1 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + MIN( DISTINCT - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5487
SELECT + MIN ( DISTINCT - 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL + 78 * + - COUNT( * ) + 94 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + 78 * + - COUNT ( * ) + 94 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5489
SELECT + 71 + 66 col1, CAST( NULL AS DECIMAL )
----
137
NULL

skipif mysql # not compatible
query II rowsort label-5489
SELECT + 71 + 66 col1, CAST ( NULL AS REAL )
----
137
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT NULLIF ( - 13, + COUNT( * ) - + + 25 )
----
-13

skipif mysql # not compatible
query I rowsort label-5490
SELECT NULLIF ( - 13, + COUNT ( * ) - + + 25 )
----
-13

query I rowsort
SELECT DISTINCT + 57 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + 62 * - 42 * - COUNT( * ) * + ( + ( + 78 ) ) + + 68 AS col0
----
203180

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + 62 * - 42 * - COUNT ( * ) * + ( + ( + 78 ) ) + + 68 AS col0
----
203180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT ALL + CAST( - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + CAST ( - 16 AS INTEGER )
----
-16

query I rowsort
SELECT DISTINCT + 2 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + 18 * + 32 + + 33 - + 4 * - + 76 - + + 70 + - ( + + MAX( ALL - - 50 ) ) * + 88 * 13
----
-56357

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + 18 * + 32 + + 33 - + 4 * - + 76 - + + 70 + - ( + + MAX ( ALL - - 50 ) ) * + 88 * 13
----
-56357

query I rowsort
SELECT + 65 * 74 - + ( - - 92 ) * + 86
----
-3102

query I rowsort
SELECT ALL + + 9
----
9

query I rowsort
SELECT + - 10
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-5499
SELECT DISTINCT 22 DIV - - 6, - 25 + - 79 * + 38 AS col2
----
3
-3027

skipif mysql # not compatible
query II rowsort label-5499
SELECT DISTINCT 22 / - - 6, - 25 + - 79 * + 38 AS col2
----
3
-3027

query I rowsort
SELECT + 92 - - 0 - + 48 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT - MIN( - 52 ) DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-5501
SELECT - MIN ( - 52 ) / - 40
----
-1

query I rowsort
SELECT ALL 31 * + 46 AS col0
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + + 39 * + - COALESCE ( CASE WHEN NOT ( NULL ) <= NULL THEN + ( SUM( 88 ) ) END, + 53 ) * - 97 * - ( - - 13 ) * 11 AS col0
----
-28671357

skipif mysql # not compatible
query I rowsort label-5503
SELECT + + 39 * + - COALESCE ( CASE WHEN NOT ( NULL ) <= NULL THEN + ( SUM ( 88 ) ) END, + 53 ) * - 97 * - ( - - 13 ) * 11 AS col0
----
-28671357

query I rowsort
SELECT ALL + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT 49 * COALESCE ( COUNT( * ), 75, + 2 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT 49 * COALESCE ( COUNT ( * ), 75, + 2 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - + SUM( ALL - - ( 40 ) ) * - - 29 AS col2
----
-1160

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - + SUM ( ALL - - ( 40 ) ) * - - 29 AS col2
----
-1160

query II rowsort
SELECT + + ( - 49 ), 35 AS col0
----
-49
35

query I rowsort
SELECT + 37 * + + 70 AS col1
----
2590

query I rowsort
SELECT ALL 7 * + + 49 * 65 + - + 26
----
22269

query I rowsort
SELECT DISTINCT + 54 AS col2
----
54

query I rowsort
SELECT - - 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - - ( 22 ) + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5512
SELECT - - ( 22 ) + COUNT ( * )
----
23

query I rowsort
SELECT - 78 * 86
----
-6708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT + CAST( NULL AS SIGNED ) * + - 31 + - ( + 45 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT + CAST ( NULL AS INTEGER ) * + - 31 + - ( + 45 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT - 85 + - - COUNT( * ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-5515
SELECT - 85 + - - COUNT ( * ) col2
----
-84

query I rowsort
SELECT 97 col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL 61 + CAST( + 83 AS SIGNED ) * - 72 AS col0
----
-5915

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL 61 + CAST ( + 83 AS INTEGER ) * - 72 AS col0
----
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5518
SELECT 2 col2, - 37 + 96 + - CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5518
SELECT 2 col2, - 37 + 96 + - CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

query I rowsort
SELECT - 31 * + 41 * + + 75
----
-95325

query I rowsort
SELECT ALL 37 + - - 52 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5521
SELECT ALL - COUNT( ( 94 ) ) + + + 76 + + 19 - - 95 * 29 * - ( - SUM( - + 19 ) ) + 91 + + + 18 DIV SUM( DISTINCT + NULLIF ( - ( + 92 ), 79 ) ) * - 57 AS col2
----
-52160

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - COUNT ( ( 94 ) ) + + + 76 + + 19 - - 95 * 29 * - ( - SUM ( - + 19 ) ) + 91 + + + 18 / SUM ( DISTINCT + NULLIF ( - ( + 92 ), 79 ) ) * - 57 AS col2
----
-52160

query I rowsort
SELECT ALL ( - 97 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5523
SELECT - CAST( - MAX( ( + 51 ) ) AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5523
SELECT - CAST ( - MAX ( ( + 51 ) ) AS INTEGER ) AS col1
----
51

query I rowsort
SELECT - 1 * 37 AS col0
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5525
SELECT - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - 89 + - 2
----
-91

query II rowsort
SELECT 40, 78 AS col2
----
40
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - MIN( DISTINCT + + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5528
SELECT - MIN ( DISTINCT + + 55 ) AS col2
----
-55

query I rowsort
SELECT - 65 + 94 + - - 53
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - SUM( DISTINCT 10 ) * + 22 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-5530
SELECT - SUM ( DISTINCT 10 ) * + 22 AS col2
----
-220

query I rowsort
SELECT ALL ( + + COALESCE ( - - 59, + + 38 ) )
----
59

query II rowsort
SELECT - 70, + 56 AS col2
----
-70
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL - COUNT( * ) + - 55 + + + 14
----
-42

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - COUNT ( * ) + - 55 + + + 14
----
-42

query I rowsort
SELECT DISTINCT + 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT 5 DIV - 73 + + 79
----
79

skipif mysql # not compatible
query I rowsort label-5535
SELECT 5 / - 73 + + 79
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT ALL - 41 DIV 93 * + 58 - - 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - 41 / 93 * + 58 - - 57 col2
----
57

query I rowsort
SELECT + + ( 26 ) AS col1
----
26

query I rowsort
SELECT + 10 + - 11
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT 71 * - 88 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT 71 * - 88 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 92 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5541
SELECT - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * + 55 + + + 45 + SUM( DISTINCT 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * + 55 + + + 45 + SUM ( DISTINCT 76 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT + COALESCE ( COUNT( * ), + + COUNT( * ) * - - 26 + + - CAST( - + AVG ( - 24 ) AS SIGNED ) ) * + 20 + + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5542
SELECT + COALESCE ( COUNT ( * ), + + COUNT ( * ) * - - 26 + + - CAST ( - + AVG ( - 24 ) AS INTEGER ) ) * + 20 + + - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT + + ( 18 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5544
SELECT - 76 + + 99 + - COUNT( * ) * + 2 DIV 85
----
23

skipif mysql # not compatible
query I rowsort label-5544
SELECT - 76 + + 99 + - COUNT ( * ) * + 2 / 85
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + MIN( ALL - 44 ) * - 99 - + 15 AS col0
----
4341

skipif mysql # not compatible
query I rowsort label-5545
SELECT + MIN ( ALL - 44 ) * - 99 - + 15 AS col0
----
4341

query I rowsort
SELECT ALL + + 16 col1
----
16

query I rowsort
SELECT ALL + + 81 * + 14 AS col2
----
1134

query I rowsort
SELECT + + ( - - 93 ) * - + 15 AS col0
----
-1395

query I rowsort
SELECT ALL + - 38 AS col0
----
-38

query I rowsort
SELECT ALL + 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5551
SELECT + - COUNT( * ) * - 25 + - CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5551
SELECT + - COUNT ( * ) * - 25 + - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT - 65 * + 19 - - + 46 AS col1
----
-1189

query I rowsort
SELECT + 35 * 24 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL - COUNT( ALL + 44 ) * - - 1 + - 63 col0
----
-64

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - COUNT ( ALL + 44 ) * - - 1 + - 63 col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5555
SELECT + + 42 + - - 25 + - 17 AS col0, - COUNT( * ) * - 60
----
50
60

skipif mysql # not compatible
query II rowsort label-5555
SELECT + + 42 + - - 25 + - 17 AS col0, - COUNT ( * ) * - 60
----
50
60

query I rowsort
SELECT + - 30 col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + 71 * + 24 + + 0 - COUNT( * ) AS col2
----
1703

skipif mysql # not compatible
query I rowsort label-5557
SELECT + 71 * + 24 + + 0 - COUNT ( * ) AS col2
----
1703

onlyif mysql # DIV for integer division: 
query II rowsort label-5558
SELECT DISTINCT + 56 DIV + 37 + 32 AS col1, - 7
----
33
-7

skipif mysql # not compatible
query II rowsort label-5558
SELECT DISTINCT + 56 / + 37 + 32 AS col1, - 7
----
33
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5559
SELECT ALL - CASE - - 99 WHEN ( - - 89 ) + NULLIF ( 89, 88 + 70 + 91 ) THEN NULL WHEN + 41 + + CAST( CAST( - 27 AS DECIMAL ) AS SIGNED ) THEN - 11 ELSE - 51 * 33 END AS col2
----
1683

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - CASE - - 99 WHEN ( - - 89 ) + NULLIF ( 89, 88 + 70 + 91 ) THEN NULL WHEN + 41 + + CAST ( CAST ( - 27 AS REAL ) AS INTEGER ) THEN - 11 ELSE - 51 * 33 END AS col2
----
1683

query I rowsort
SELECT - 85 * 31 * - 87 * - 63 * 37 + + + 81 + NULLIF ( + 90, - 4 ) AS col2
----
-534369924

query I rowsort
SELECT DISTINCT 20 + - - 27 * - + 36
----
-952

query I rowsort
SELECT DISTINCT 38 col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT CAST( NULL AS SIGNED ) + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT CAST ( NULL AS INTEGER ) + - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT SUM( - 45 ) * - - 31 AS col2
----
-1395

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT SUM ( - 45 ) * - - 31 AS col2
----
-1395

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT COUNT( * ) + - 1 AS col0, 98 AS col2
----
0
98

skipif mysql # not compatible
query II rowsort label-5565
SELECT COUNT ( * ) + - 1 AS col0, 98 AS col2
----
0
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT COUNT( * ) * + + 21
----
21

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT COUNT ( * ) * + + 21
----
21

query I rowsort
SELECT ALL 7 + - 52
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT 42 + + - COALESCE ( - 23, 52 * + COUNT( * ) + - + 37 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT 42 + + - COALESCE ( - 23, 52 * + COUNT ( * ) + - + 37 ) AS col2
----
65

query I rowsort
SELECT DISTINCT 58 AS col2
----
58

query I rowsort
SELECT 51 + - 47 AS col0
----
4

query I rowsort
SELECT ALL - ( + + 47 ) + 29
----
-18

query I rowsort
SELECT DISTINCT 15 col0
----
15

query I rowsort
SELECT DISTINCT 6 - + + 85
----
-79

query I rowsort
SELECT 40 + 3 col2
----
43

query I rowsort
SELECT 50 + 7 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ( - 86 ) * - 39 * - COUNT( * )
----
-3354

skipif mysql # not compatible
query I rowsort label-5576
SELECT ( - 86 ) * - 39 * - COUNT ( * )
----
-3354

query I rowsort
SELECT 56 * - 78
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + COUNT( * ) * - + ( - 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + COUNT ( * ) * - + ( - 38 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT CASE - ( COALESCE ( + 80, 49, + 67 * + 56 * 52, + 16 ) ) WHEN - 63 THEN - 22 * + CAST( - 24 AS SIGNED ) + + 68 + 10 + 7 / 40 WHEN + 70 - + 2 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT CASE - ( COALESCE ( + 80, 49, + 67 * + 56 * 52, + 16 ) ) WHEN - 63 THEN - 22 * + CAST ( - 24 AS INTEGER ) + + 68 + 10 + 7 / 40 WHEN + 70 - + 2 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT 48 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT 48 / 96
----
0

query I rowsort
SELECT - 56 + + 91 + + 61 + 7 * + + 52
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + ( - 61 ) + + 87 * - - COUNT( * ) + - 81 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5582
SELECT + ( - 61 ) + + 87 * - - COUNT ( * ) + - 81 AS col1
----
-55

query I rowsort
SELECT + 92 col0
----
92

query I rowsort
SELECT ALL - 34 * 49 - 24 AS col0
----
-1690

query I rowsort
SELECT ALL - - 22
----
22

query I rowsort
SELECT DISTINCT - + 71 AS col2
----
-71

query I rowsort
SELECT DISTINCT - + NULLIF ( - 98, + 85 / 19 ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5588
SELECT COUNT( * ) DIV COUNT( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-5588
SELECT COUNT ( * ) / COUNT ( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1
----
1
18

query I rowsort
SELECT ALL - + NULLIF ( + 26, + + 43 * - - 74 ) + - 5 + 13 AS col1
----
-18

query I rowsort
SELECT ALL - 9 col2
----
-9

query I rowsort
SELECT + + 53 AS col1
----
53

query I rowsort
SELECT 96 * - ( + 29 )
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT SUM( 28 ) - - 62
----
90

skipif mysql # not compatible
query I rowsort label-5593
SELECT SUM ( 28 ) - - 62
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT ALL - CAST( 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - CAST ( 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL - 27 * - + 72
----
1944

query I rowsort
SELECT DISTINCT + 68 + - + 45 + + 7 * 0 + - 25 + + 91 * + 13 * + 16 AS col1
----
18926

query II rowsort
SELECT ALL 52 + 84 + NULLIF ( + 68, 40 ) AS col0, 55 AS col1
----
204
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT ALL ( + + 59 ) + - COUNT( * ) AS col2, 65 col2
----
58
65

skipif mysql # not compatible
query II rowsort label-5598
SELECT ALL ( + + 59 ) + - COUNT ( * ) AS col2, 65 col2
----
58
65

query I rowsort
SELECT 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + 76 * COUNT( * ) * + NULLIF ( 46, + 45 ) col0
----
3496

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + 76 * COUNT ( * ) * + NULLIF ( 46, + 45 ) col0
----
3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT DISTINCT - COUNT( * ) + 17 + + 39 DIV 32 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - COUNT ( * ) + 17 + + 39 / 32 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT MIN( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT MIN ( 1 )
----
1

query II rowsort
SELECT ALL 8 + ( - 5 ) col0, - 48 * - + 46 + + 65
----
3
2273

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT - 97, 97 * - 87 + - COUNT( * ) AS col1
----
-97
-8440

skipif mysql # not compatible
query II rowsort label-5604
SELECT - 97, 97 * - 87 + - COUNT ( * ) AS col1
----
-97
-8440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5605
SELECT COALESCE ( + COUNT( * ), + 5 ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5605
SELECT COALESCE ( + COUNT ( * ), + 5 ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT 41 * + - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5606
SELECT 41 * + - COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT ALL 53 AS col2
----
53

query II rowsort
SELECT 51 AS col1, - 31
----
51
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT - MIN( ALL + + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5609
SELECT - MIN ( ALL + + 80 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5610
SELECT ALL 36 DIV + ( - ( - NULLIF ( 5, - CAST( + COUNT( * ) AS SIGNED ) - + 81 ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL 36 / + ( - ( - NULLIF ( 5, - CAST ( + COUNT ( * ) AS INTEGER ) - + 81 ) ) )
----
7

query I rowsort
SELECT DISTINCT 59 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL 54 - 18 + - COALESCE ( COUNT( * ), + MIN( DISTINCT 57 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL 54 - 18 + - COALESCE ( COUNT ( * ), + MIN ( DISTINCT 57 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT 31 - ( - 61 ) * + 13 * + COALESCE ( + 75, - - COUNT( * ) * + 29 * + - 59 ) AS col2
----
59506

skipif mysql # not compatible
query I rowsort label-5613
SELECT 31 - ( - 61 ) * + 13 * + COALESCE ( + 75, - - COUNT ( * ) * + 29 * + - 59 ) AS col2
----
59506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5614
SELECT DISTINCT 65 DIV COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT 65 / COUNT ( * )
----
65

query I rowsort
SELECT ALL 30 * + NULLIF ( - 23, - 76 ) AS col1
----
-690

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5616
SELECT NULLIF ( + + 29, - - 49 ) * + MIN( + 25 ) * + - MAX( ALL + 1 ) + + COUNT( ALL + 79 ) DIV + 89 * 88 * 91 * - COUNT( * ), COUNT( * ) AS col0
----
-725
1

skipif mysql # not compatible
query II rowsort label-5616
SELECT NULLIF ( + + 29, - - 49 ) * + MIN ( + 25 ) * + - MAX ( ALL + 1 ) + + COUNT ( ALL + 79 ) / + 89 * 88 * 91 * - COUNT ( * ), COUNT ( * ) AS col0
----
-725
1

query I rowsort
SELECT DISTINCT 47 * 10
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT COUNT( * ) + 71 - + 9 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5618
SELECT COUNT ( * ) + 71 - + 9 AS col2
----
63

query II rowsort
SELECT 89 col2, - 44
----
89
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT ALL CAST( + + 19 AS SIGNED ) * + ( 34 ) AS col2
----
646

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL CAST ( + + 19 AS INTEGER ) * + ( 34 ) AS col2
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT NULLIF ( + - COUNT( * ), - + SUM( DISTINCT + 70 ) * COUNT( * ) + + + 95 + - 66 + - 28 * 73 * - 26 ) + - 91 + + 99
----
7

skipif mysql # not compatible
query I rowsort label-5621
SELECT NULLIF ( + - COUNT ( * ), - + SUM ( DISTINCT + 70 ) * COUNT ( * ) + + + 95 + - 66 + - 28 * 73 * - 26 ) + - 91 + + 99
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT CAST( + ( 33 ) AS SIGNED ) * + - COUNT( * ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-5622
SELECT CAST ( + ( 33 ) AS INTEGER ) * + - COUNT ( * ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT SUM( 83 ) * + 61 + - 57 / CASE - 77 WHEN + 63 THEN 31 * + 31 ELSE NULL END * - 96 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT SUM ( 83 ) * + 61 + - 57 / CASE - 77 WHEN + 63 THEN 31 * + 31 ELSE NULL END * - 96 * + 6
----
NULL

query I rowsort
SELECT 40 + + 84
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT + 45 + 86 + + CAST( NULL AS SIGNED ) - - - 78 * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT + 45 + 86 + + CAST ( NULL AS INTEGER ) - - - 78 * 89 AS col2
----
NULL

query I rowsort
SELECT - - 62
----
62

query II rowsort
SELECT ALL - 52 col2, - 52 AS col1
----
-52
-52

query I rowsort
SELECT - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL + 83 * 70 * - 98 + + ( - - COUNT( * ) ) + - - 95 + + + 29 + 64
----
-569191

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + 83 * 70 * - 98 + + ( - - COUNT ( * ) ) + - - 95 + + + 29 + 64
----
-569191

query I rowsort
SELECT ALL + - 81 * + 94 - 93 * + - 39
----
-3987

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT COUNT( + + 11 ) * 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT COUNT ( + + 11 ) * 43 + + COUNT ( * )
----
44

query II rowsort
SELECT - 21 AS col2, + 37
----
-21
37

query I rowsort
SELECT + ( - 74 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT ALL + 40 * - SUM( - + NULLIF ( - 91, + 92 ) ) + - 28 / + CASE - + 16 WHEN - 42 THEN NULL WHEN + + 26 THEN - 62 ELSE 16 * + NULLIF ( + + CAST( 89 AS SIGNED ), CASE 72 WHEN + 83 THEN 68 END * 85 ) - - COUNT( + 57 ) END * - CASE - 7 WHEN 41 THEN NULL WHEN 46 * 81 + 25 THEN NULL WHEN + 82 - + 56 * - COUNT( * ) THEN + 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + 40 * - SUM ( - + NULLIF ( - 91, + 92 ) ) + - 28 / + CASE - + 16 WHEN - 42 THEN NULL WHEN + + 26 THEN - 62 ELSE 16 * + NULLIF ( + + CAST ( 89 AS INTEGER ), CASE 72 WHEN + 83 THEN 68 END * 85 ) - - COUNT ( + 57 ) END * - CASE - 7 WHEN 41 THEN NULL WHEN 46 * 81 + 25 THEN NULL WHEN + 82 - + 56 * - COUNT ( * ) THEN + 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT + MAX( + - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5635
SELECT + MAX ( + - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT + + 76 * + COUNT( * ) + + - 55 * 84 + + - 16 + - - COUNT( * ) * - - 42 DIV ( + + 19 )
----
-4558

skipif mysql # not compatible
query I rowsort label-5636
SELECT + + 76 * + COUNT ( * ) + + - 55 * 84 + + - 16 + - - COUNT ( * ) * - - 42 / ( + + 19 )
----
-4558

query I rowsort
SELECT + + 98 AS col0
----
98

query I rowsort
SELECT + + 67 + + - 42
----
25

query I rowsort
SELECT + - 44 AS col2
----
-44

query I rowsort
SELECT ALL - 46 * 90 + + 5 + + 95 * + + 19 AS col0
----
-2330

query I rowsort
SELECT 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - 39 * + MAX( + 62 ) + - 35
----
-2453

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - 39 * + MAX ( + 62 ) + - 35
----
-2453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT ALL - 90 DIV COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - 90 / COUNT ( * )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT - - 84 DIV 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5644
SELECT - - 84 / 63 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL + ( - + COALESCE ( ( - + 63 ), + + 82 * + MIN( DISTINCT + 59 ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL + ( - + COALESCE ( ( - + 63 ), + + 82 * + MIN ( DISTINCT + 59 ) ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - COUNT( ALL - 38 ) * 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5646
SELECT - COUNT ( ALL - 38 ) * 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5647
SELECT - 78 * COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT COUNT( * ) * 14 - + - 43
----
57

skipif mysql # not compatible
query I rowsort label-5648
SELECT COUNT ( * ) * 14 - + - 43
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT ALL + CAST( + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL + CAST ( + 65 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5650
SELECT ALL + 18 - + 93 + + 8 * + MAX( DISTINCT 32 ) * - 63 AS col0, - 5
----
-16203
-5

skipif mysql # not compatible
query II rowsort label-5650
SELECT ALL + 18 - + 93 + + 8 * + MAX ( DISTINCT 32 ) * - 63 AS col0, - 5
----
-16203
-5

query I rowsort
SELECT ALL ( - + 82 ) AS col2
----
-82

query I rowsort
SELECT - 68 * + + 43 + - 9 + + 4
----
-2929

query I rowsort
SELECT DISTINCT CASE - 2 WHEN + 19 * 5 THEN 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL - 45 * - ( - - CASE - - 90 WHEN - 97 THEN NULL WHEN + 10 * - ( SUM( DISTINCT + + 48 ) ) THEN - 37 END ) / - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - 45 * - ( - - CASE - - 90 WHEN - 97 THEN NULL WHEN + 10 * - ( SUM ( DISTINCT + + 48 ) ) THEN - 37 END ) / - + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - MIN( ALL + ( 74 ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5655
SELECT - MIN ( ALL + ( 74 ) ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT DISTINCT - NULLIF ( - - COUNT( * ), CAST( + - COUNT( * ) AS SIGNED ) / COALESCE ( + + 61, + + 16 ) ) * - - 84
----
-84

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), CAST ( + - COUNT ( * ) AS INTEGER ) / COALESCE ( + + 61, + + 16 ) ) * - - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL CASE - MAX( - 67 ) WHEN + - 96 * + 86 THEN - 58 WHEN + - ( + - 58 ) - CASE - - 71 WHEN 80 * - - ( - 75 ) THEN - COUNT( * ) * - 78 / - - COUNT( * ) WHEN COUNT( * ) / 38 THEN - ( 92 ) + + AVG ( ALL + ( 98 ) + + ( 28 ) * - 99 ) END THEN + 58 ELSE COUNT( * ) * - 73 END col2
----
-73

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL CASE - MAX ( - 67 ) WHEN + - 96 * + 86 THEN - 58 WHEN + - ( + - 58 ) - CASE - - 71 WHEN 80 * - - ( - 75 ) THEN - COUNT ( * ) * - 78 / - - COUNT ( * ) WHEN COUNT ( * ) / 38 THEN - ( 92 ) + + AVG ( ALL + ( 98 ) + + ( 28 ) * - 99 ) END THEN + 58 ELSE COUNT ( * ) * - 73 END col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT - 83 * + - CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT - 83 * + - CAST ( NULL AS INTEGER ) * - 74
----
NULL

query I rowsort
SELECT ALL ( + 75 )
----
75

query I rowsort
SELECT DISTINCT ( + - 18 )
----
-18

query I rowsort
SELECT 37 AS col0
----
37

query I rowsort
SELECT - 53 * + 10 AS col2
----
-530

query I rowsort
SELECT DISTINCT ( - + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - CASE + 62 WHEN - + SUM( + 96 ) - + - 41 * + 13 THEN + - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT - CASE + 62 WHEN - + SUM ( + 96 ) - + - 41 * + 13 THEN + - 80 END AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - + 62, + 64 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL - - 74 + + SUM( - - 88 ) + + - ( + 7 ) + - - 30
----
185

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL - - 74 + + SUM ( - - 88 ) + + - ( + 7 ) + - - 30
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT ALL - 95 * 21 DIV 28 + + - 73 + - 58
----
-202

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - 95 * 21 / 28 + + - 73 + - 58
----
-202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5668
SELECT + MIN( ALL - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT + MIN ( ALL - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 26 + - 81 * + 96
----
-7750

onlyif mysql # DIV for integer division: 
query II rowsort label-5670
SELECT - 89 AS col1, - 62 DIV + 11 AS col1
----
-89
-5

skipif mysql # not compatible
query II rowsort label-5670
SELECT - 89 AS col1, - 62 / + 11 AS col1
----
-89
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5671
SELECT ALL - SUM( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST( - 13 * + 7 + 96 AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL - SUM ( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST ( - 13 * + 7 + 96 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END
----
NULL

query I rowsort
SELECT + 31 * 67 * + NULLIF ( - 55, - 21 * + 90 ) AS col2
----
-114235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5673
SELECT + 78, CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN 92 + COUNT( * ) ELSE + 95 END + + - 22 - CAST( - COUNT( * ) AS SIGNED ) * 31 AS col0
----
78
104

skipif mysql # not compatible
query II rowsort label-5673
SELECT + 78, CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN 92 + COUNT ( * ) ELSE + 95 END + + - 22 - CAST ( - COUNT ( * ) AS INTEGER ) * 31 AS col0
----
78
104

query I rowsort
SELECT ALL + - 84 AS col2
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-5675
SELECT + 11 AS col1, 39 + + 55 + - + 1 * - 9 DIV + 14 AS col2
----
11
94

skipif mysql # not compatible
query II rowsort label-5675
SELECT + 11 AS col1, 39 + + 55 + - + 1 * - 9 / + 14 AS col2
----
11
94

query I rowsort
SELECT DISTINCT 33 * 63 AS col1
----
2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5677
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) + - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - - 79 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5679
SELECT DISTINCT + 18 AS col1, + COUNT( * ) - COUNT( * ) + - 43 AS col2
----
18
-43

skipif mysql # not compatible
query II rowsort label-5679
SELECT DISTINCT + 18 AS col1, + COUNT ( * ) - COUNT ( * ) + - 43 AS col2
----
18
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5680
SELECT 71 AS col0, CAST( NULL AS SIGNED )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5680
SELECT 71 AS col0, CAST ( NULL AS INTEGER )
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT ALL + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT + COUNT( * ) + - - 43 + COUNT( * ) + - 35, + 11 * 43 + + 7 AS col0
----
10
480

skipif mysql # not compatible
query II rowsort label-5682
SELECT + COUNT ( * ) + - - 43 + COUNT ( * ) + - 35, + 11 * 43 + + 7 AS col0
----
10
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT DISTINCT - - COALESCE ( - 71, + + COUNT( * ) ) * 14 * 12 + + + MAX( ALL 3 ) + + 69 AS col2
----
-11856

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - - COALESCE ( - 71, + + COUNT ( * ) ) * 14 * 12 + + + MAX ( ALL 3 ) + + 69 AS col2
----
-11856

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL + - ( - NULLIF ( + 39, - 68 ) ) * - 7 * COUNT( * ) + + 66 * 64 AS col0
----
3951

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + - ( - NULLIF ( + 39, - 68 ) ) * - 7 * COUNT ( * ) + + 66 * 64 AS col0
----
3951

query II rowsort
SELECT + - 38, + 66 AS col1
----
-38
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL + + 50 * + - 86 - - MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + + 50 * + - 86 - - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ( + 13 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5688
SELECT + ( 3 ), SUM( ALL - ( + 19 ) ) * + COUNT( * ) + - + 79 DIV - 8 AS col2
----
3
-10

skipif mysql # not compatible
query II rowsort label-5688
SELECT + ( 3 ), SUM ( ALL - ( + 19 ) ) * + COUNT ( * ) + - + 79 / - 8 AS col2
----
3
-10

query I rowsort
SELECT + 49 - - 64 AS col2
----
113

query I rowsort
SELECT - 55 * 28 * - 15 AS col0
----
23100

query I rowsort
SELECT CASE + + 78 WHEN - - 96 THEN - 21 * 37 - + 31 * - 96 * + 79 ELSE 39 END AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT DISTINCT 90 * + ( + + MAX( CAST( 35 AS SIGNED ) ) ) AS col2
----
3150

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT 90 * + ( + + MAX ( CAST ( 35 AS INTEGER ) ) ) AS col2
----
3150

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT ALL + ( - - 56 ) AS col2, COUNT( * ) + 31
----
56
32

skipif mysql # not compatible
query II rowsort label-5693
SELECT ALL + ( - - 56 ) AS col2, COUNT ( * ) + 31
----
56
32

query I rowsort
SELECT - 19 * + 36 col2
----
-684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5695
SELECT ALL COUNT( * ) * 89 DIV + 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL COUNT ( * ) * 89 / + 66 AS col1
----
1

query I rowsort
SELECT DISTINCT + 73 AS col2
----
73

query I rowsort
SELECT - 95 * + 40
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL COALESCE ( 16, + 70 + + 98, - + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL COALESCE ( 16, + 70 + + 98, - + COUNT ( * ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT + 83 / - + ( - CAST( NULL AS SIGNED ) ) * + - NULLIF ( - 72, - 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT + 83 / - + ( - CAST ( NULL AS INTEGER ) ) * + - NULLIF ( - 72, - 18 ) AS col0
----
NULL

query I rowsort
SELECT - 65 * - + 4 * 82 AS col1
----
21320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT ALL CAST( - 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL CAST ( - 40 AS INTEGER ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5702
SELECT DISTINCT CASE WHEN ( CASE - 25 WHEN - 20 THEN NULL ELSE + COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 3 - + + 42 * - CAST( + 47 AS SIGNED ) + - 23 + - COALESCE ( + - 16, 7, COUNT( * ) + - + 73, SUM( 52 ) * - COUNT( * ) + - ( + 3 - 54 ) * 7 ) - - ( + 98 ) * 44 END ) IS NULL THEN 68 * ( + CASE 27 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END ) END
----
68

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT CASE WHEN ( CASE - 25 WHEN - 20 THEN NULL ELSE + COUNT ( * ) * - CAST ( NULL AS REAL ) + - 3 - + + 42 * - CAST ( + 47 AS INTEGER ) + - 23 + - COALESCE ( + - 16, 7, COUNT ( * ) + - + 73, SUM ( 52 ) * - COUNT ( * ) + - ( + 3 - 54 ) * 7 ) - - ( + 98 ) * 44 END ) IS NULL THEN 68 * ( + CASE 27 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) END
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL - 78 + - MAX( - 71 ) DIV + - 53
----
-79

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - 78 + - MAX ( - 71 ) / + - 53
----
-79

query I rowsort
SELECT - 47 - - 61 * - CASE + 90 WHEN 14 + - 76 THEN NULL ELSE - 47 END
----
2820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL - CAST( 33 AS SIGNED ) + - + 25 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - CAST ( 33 AS INTEGER ) + - + 25 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL - 55 + MAX( 43 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - 55 + MAX ( 43 ) AS col2
----
-12

query I rowsort
SELECT + 61 col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT - COALESCE ( - - 45, - + 65 ) + + CAST( NULL AS SIGNED ) * - COALESCE ( + 40, - COUNT( * ) + - 55, - MAX( - + 95 ) ) - 45 + + NULLIF ( 35, 54 * - 25 ) * + 49 * + 78 * + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT - COALESCE ( - - 45, - + 65 ) + + CAST ( NULL AS INTEGER ) * - COALESCE ( + 40, - COUNT ( * ) + - 55, - MAX ( - + 95 ) ) - 45 + + NULLIF ( 35, 54 * - 25 ) * + 49 * + 78 * + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5709
SELECT COUNT( 40 ), - 71 AS col2
----
1
-71

skipif mysql # not compatible
query II rowsort label-5709
SELECT COUNT ( 40 ), - 71 AS col2
----
1
-71

query I rowsort
SELECT - + 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL - COUNT( * ) + 0 - 14 * - ( + MIN( DISTINCT - 52 ) ) AS col1
----
-729

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - COUNT ( * ) + 0 - 14 * - ( + MIN ( DISTINCT - 52 ) ) AS col1
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT 4 + MAX( 88 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5712
SELECT 4 + MAX ( 88 ) AS col1
----
92

query I rowsort
SELECT + 99 - ( - 45 )
----
144

query II rowsort
SELECT - - NULLIF ( NULLIF ( - ( - 56 ), + 72 - 37 + 17 + + 73 + - 32 / - 92 + + 73 ), + 36 ), - 53 col2
----
56
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5715
SELECT + 65 * MIN( ALL - 16 ) * - 20 DIV + 2, COUNT( ALL + 20 ) * + + 84 AS col0
----
10400
84

skipif mysql # not compatible
query II rowsort label-5715
SELECT + 65 * MIN ( ALL - 16 ) * - 20 / + 2, COUNT ( ALL + 20 ) * + + 84 AS col0
----
10400
84

query I rowsort
SELECT ALL 5 * 45 * - 15
----
-3375

query I rowsort
SELECT DISTINCT + 12 - 85
----
-73

query I rowsort
SELECT ALL 18 * 26 * + - 31
----
-14508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT CAST( NULL AS SIGNED ) / - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT CAST ( NULL AS INTEGER ) / - + 68 AS col2
----
NULL

query I rowsort
SELECT 18 + - 74
----
-56

query I rowsort
SELECT DISTINCT - 57 AS col2
----
-57

query I rowsort
SELECT ALL 49 * 21 AS col1
----
1029

query I rowsort
SELECT DISTINCT - 2 AS col0
----
-2

query I rowsort
SELECT ALL - NULLIF ( ( + - 24 ), + 69 ) AS col0
----
24

query I rowsort
SELECT 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT COUNT( DISTINCT + 57 ) * 44 * 83 - - 87 + - - 2 AS col2, + 58
----
3741
58

skipif mysql # not compatible
query II rowsort label-5726
SELECT COUNT ( DISTINCT + 57 ) * 44 * 83 - - 87 + - - 2 AS col2, + 58
----
3741
58

query I rowsort
SELECT + 51 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5728
SELECT ALL - 89 AS col1, + 66 * - 95 * + + CAST( - 17 AS SIGNED )
----
-89
106590

skipif mysql # not compatible
query II rowsort label-5728
SELECT ALL - 89 AS col1, + 66 * - 95 * + + CAST ( - 17 AS INTEGER )
----
-89
106590

query I rowsort
SELECT + 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT COALESCE ( - 12, - 45, + + 23 * - 11, + COUNT( * ) ) + 22 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5730
SELECT COALESCE ( - 12, - 45, + + 23 * - 11, + COUNT ( * ) ) + 22 AS col0
----
10

query I rowsort
SELECT 76 - - + 35 AS col0
----
111

onlyif mysql # DIV for integer division: 
query III rowsort label-5732
SELECT ( - - 46 ) DIV + + 34 AS col1, 77, + 29 AS col0
----
1
77
29

skipif mysql # not compatible
query III rowsort label-5732
SELECT ( - - 46 ) / + + 34 AS col1, 77, + 29 AS col0
----
1
77
29

query I rowsort
SELECT + 21 * - 19 * 19 * + 85 + - + NULLIF ( 25, - NULLIF ( 87, - 93 * - 83 + + 46 * 45 ) )
----
-644410

query II rowsort
SELECT ALL - 83 + + 96 + 30 AS col1, 58 * - - 12 AS col1
----
43
696

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT 75 + + COUNT( * ) col0
----
76

skipif mysql # not compatible
query I rowsort label-5735
SELECT 75 + + COUNT ( * ) col0
----
76

query I rowsort
SELECT ALL 29 + - 94 AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5737
SELECT ( + 10 ) DIV 44 + COUNT( * ) DIV 76 * - + ( 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT ( + 10 ) / 44 + COUNT ( * ) / 76 * - + ( 17 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT - ( + 44 ) + + COUNT( * ) - 76 * 39 + + - 86 - + CAST( - 84 AS SIGNED ) + 55 AS col2
----
-2954

skipif mysql # not compatible
query I rowsort label-5738
SELECT - ( + 44 ) + + COUNT ( * ) - 76 * 39 + + - 86 - + CAST ( - 84 AS INTEGER ) + 55 AS col2
----
-2954

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT - - SUM( DISTINCT + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5739
SELECT - - SUM ( DISTINCT + 20 ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-5740
SELECT + ( - 35 ) DIV + 3 col0, + 31 DIV 92 AS col2
----
-11
0

skipif mysql # not compatible
query II rowsort label-5740
SELECT + ( - 35 ) / + 3 col0, + 31 / 92 AS col2
----
-11
0

query I rowsort
SELECT 17 + + 60
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT DISTINCT + COALESCE ( 35, + - MAX( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2
----
53
67

skipif mysql # not compatible
query II rowsort label-5742
SELECT DISTINCT + COALESCE ( 35, + - MAX ( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2
----
53
67

query I rowsort
SELECT - - 50
----
50

query I rowsort
SELECT DISTINCT + 94
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT DISTINCT + ( 87 ) * - - 89 * + MIN( ALL - - 37 ) * + - 56 + + 13 DIV - ( 27 )
----
-16043496

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + ( 87 ) * - - 89 * + MIN ( ALL - - 37 ) * + - 56 + + 13 / - ( 27 )
----
-16043496

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT - COUNT( 79 ) * - - COUNT( * ), 7 + 51 AS col0
----
-1
58

skipif mysql # not compatible
query II rowsort label-5746
SELECT - COUNT ( 79 ) * - - COUNT ( * ), 7 + 51 AS col0
----
-1
58

query I rowsort
SELECT - + 45
----
-45

query I rowsort
SELECT DISTINCT + - 52 * - 58
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT ( + MIN( - 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT ( + MIN ( - 25 ) )
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-5750
SELECT + 30 - + + 50 - - - ( + COALESCE ( + 61, - + 76 ) ) + + - 11 + - 92, + 7 DIV + + 75 * - - 39 AS col0
----
-184
0

skipif mysql # not compatible
query II rowsort label-5750
SELECT + 30 - + + 50 - - - ( + COALESCE ( + 61, - + 76 ) ) + + - 11 + - 92, + 7 / + + 75 * - - 39 AS col0
----
-184
0

query I rowsort
SELECT ALL - + 73 AS col2
----
-73

query I rowsort
SELECT DISTINCT - 40 AS col0
----
-40

query I rowsort
SELECT 7 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT COUNT( * ) * + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5754
SELECT COUNT ( * ) * + 54 AS col1
----
54

query I rowsort
SELECT ALL - ( - + 47 )
----
47

query I rowsort
SELECT DISTINCT 72 * + - 5
----
-360

query I rowsort
SELECT ALL 90 * - - 95
----
8550

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT COUNT( - 42 ) col1, - 49 * + - COUNT( * ) AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-5758
SELECT COUNT ( - 42 ) col1, - 49 * + - COUNT ( * ) AS col1
----
1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL + 86 DIV 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + 86 / 64 AS col2
----
1

query I rowsort
SELECT + 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT MIN( DISTINCT CASE + - 77 WHEN 84 THEN NULL ELSE - + 88 END ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5761
SELECT MIN ( DISTINCT CASE + - 77 WHEN 84 THEN NULL ELSE - + 88 END ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT ALL CASE - COUNT( * ) WHEN 6 + + ( + 62 ) THEN NULL ELSE 16 END + + 62 AS col2, - COUNT( * ) + + - COUNT( * ) + + 80 + - 88 * + COUNT( * ) - COUNT( * )
----
78
-11

skipif mysql # not compatible
query II rowsort label-5762
SELECT ALL CASE - COUNT ( * ) WHEN 6 + + ( + 62 ) THEN NULL ELSE 16 END + + 62 AS col2, - COUNT ( * ) + + - COUNT ( * ) + + 80 + - 88 * + COUNT ( * ) - COUNT ( * )
----
78
-11

query I rowsort
SELECT 40 * - 4
----
-160

query I rowsort
SELECT DISTINCT - 11 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5765
SELECT ALL 65 + + + CAST( CASE COUNT( * ) WHEN - ( - + CASE + NULLIF ( - 59, + - 16 - - + CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) THEN 51 END ) + + AVG ( + + 63 ) THEN 94 * CAST( NULL AS DECIMAL ) - - 71 ELSE NULL END AS SIGNED ) AS col0, 53 DIV + 32
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5765
SELECT ALL 65 + + + CAST ( CASE COUNT ( * ) WHEN - ( - + CASE + NULLIF ( - 59, + - 16 - - + CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) THEN 51 END ) + + AVG ( + + 63 ) THEN 94 * CAST ( NULL AS REAL ) - - 71 ELSE NULL END AS INTEGER ) AS col0, 53 / + 32
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5766
SELECT ALL COUNT( * ) + + + 27 + COALESCE ( + 95, - - 91 + + + COUNT( 24 ) * + 29 ) DIV + + ( - + ( 87 ) )
----
27

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL COUNT ( * ) + + + 27 + COALESCE ( + 95, - - 91 + + + COUNT ( 24 ) * + 29 ) / + + ( - + ( 87 ) )
----
27

query I rowsort
SELECT ALL - 14 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT 56 - - - COUNT( * ) + + + 37 * - 34
----
-1203

skipif mysql # not compatible
query I rowsort label-5768
SELECT 56 - - - COUNT ( * ) + + + 37 * - 34
----
-1203

query I rowsort
SELECT 90 col2
----
90

query I rowsort
SELECT ALL + 38 + - 95 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT + + CAST( NULL AS SIGNED ) - + 27 * 86 + + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT + + CAST ( NULL AS INTEGER ) - + 27 * 86 + + + 32 AS col1
----
NULL

query I rowsort
SELECT + 54 * - 65 AS col2
----
-3510

query I rowsort
SELECT - - 55 col2
----
55

query I rowsort
SELECT - - 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + - 17 - - - COUNT( ALL + 57 ) * - 79 * + 2 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-5775
SELECT + - 17 - - - COUNT ( ALL + 57 ) * - 79 * + 2 AS col2
----
141

query I rowsort
SELECT ALL - 12 - + 67 - - + 21 * 59 AS col1
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT CAST( - - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-5777
SELECT CAST ( - - 55 AS INTEGER )
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5778
SELECT - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 68 * + - 63 AS col2
----
-4284

query I rowsort
SELECT + + 57 + - 86 + - 50
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5781
SELECT - 84 DIV + NULLIF ( + 50, - CAST( NULL AS SIGNED ) DIV - 21 - + - 70 * + 6 ) - ( + + CAST( + 76 AS SIGNED ) ) * - + COUNT( * ) DIV 87 * 98 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5781
SELECT - 84 / + NULLIF ( + 50, - CAST ( NULL AS INTEGER ) / - 21 - + - 70 * + 6 ) - ( + + CAST ( + 76 AS INTEGER ) ) * - + COUNT ( * ) / 87 * 98 AS col2
----
-1

query I rowsort
SELECT ALL - 24 col0
----
-24

query I rowsort
SELECT - + 67
----
-67

query I rowsort
SELECT DISTINCT - 11
----
-11

query I rowsort
SELECT 40 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5786
SELECT - 54 + COALESCE ( + + 27, - - COUNT( 70 ), + 61 * - + CAST( NULL AS SIGNED ) ), + MIN( - 40 ) AS col2
----
-27
-40

skipif mysql # not compatible
query II rowsort label-5786
SELECT - 54 + COALESCE ( + + 27, - - COUNT ( 70 ), + 61 * - + CAST ( NULL AS INTEGER ) ), + MIN ( - 40 ) AS col2
----
-27
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT + MAX( ALL + + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT + MAX ( ALL + + 43 )
----
43

query I rowsort
SELECT ALL + 81 * + 90 AS col2
----
7290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT CASE + 72 WHEN + - CAST( NULL AS SIGNED ) + + COALESCE ( - 34, - 0 ) THEN NULL WHEN - 93 THEN - NULLIF ( + - 26, - 79 ) WHEN + 25 + - - 87 + + - ( 38 ) + + 66 * - 7 * + SUM( DISTINCT 25 ) THEN - CASE + ( COALESCE ( - 36, 34 * ( + 39 * + COUNT( * ) ) + 53 * + 14 ) ) WHEN + NULLIF ( + COUNT( * ), + 31 * - 88 ) THEN CASE COUNT( * ) WHEN - AVG ( ALL + 55 ) THEN - 80 ELSE NULL END END END / 37 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT CASE + 72 WHEN + - CAST ( NULL AS INTEGER ) + + COALESCE ( - 34, - 0 ) THEN NULL WHEN - 93 THEN - NULLIF ( + - 26, - 79 ) WHEN + 25 + - - 87 + + - ( 38 ) + + 66 * - 7 * + SUM ( DISTINCT 25 ) THEN - CASE + ( COALESCE ( - 36, 34 * ( + 39 * + COUNT ( * ) ) + 53 * + 14 ) ) WHEN + NULLIF ( + COUNT ( * ), + 31 * - 88 ) THEN CASE COUNT ( * ) WHEN - AVG ( ALL + 55 ) THEN - 80 ELSE NULL END END END / 37 + 42
----
NULL

query I rowsort
SELECT ALL + 79
----
79

query I rowsort
SELECT ( - 75 )
----
-75

query I rowsort
SELECT + 38 AS col2
----
38

query I rowsort
SELECT ( + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5794
SELECT ALL + 83 * CAST( + 28 AS SIGNED ) DIV COUNT( * ) + ( COUNT( * ) ) AS col1
----
2325

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + 83 * CAST ( + 28 AS INTEGER ) / COUNT ( * ) + ( COUNT ( * ) ) AS col1
----
2325

query I rowsort
SELECT ALL + 99 * + 74 + + 63 + - - 27
----
7416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5796
SELECT + 46, 35 + + + COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
46
35

skipif mysql # not compatible
query II rowsort label-5796
SELECT + 46, 35 + + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
46
35

query I rowsort
SELECT ( 85 ) AS col2
----
85

query I rowsort
SELECT NULLIF ( 40, - - 39 ) AS col1
----
40

query I rowsort
SELECT - 36 * 61
----
-2196

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT + COUNT( * ) AS col0, + 22 * + - 29
----
1
-638

skipif mysql # not compatible
query II rowsort label-5800
SELECT + COUNT ( * ) AS col0, + 22 * + - 29
----
1
-638

query I rowsort
SELECT ALL + 14
----
14

query I rowsort
SELECT ALL + NULLIF ( - 21, + - 50 * 69 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT COALESCE ( 45, - COUNT( * ) + SUM( DISTINCT + 14 ) * 78 )
----
45

skipif mysql # not compatible
query I rowsort label-5803
SELECT COALESCE ( 45, - COUNT ( * ) + SUM ( DISTINCT + 14 ) * 78 )
----
45

query I rowsort
SELECT DISTINCT + COALESCE ( + 12, 17, + 98 ) AS col2
----
12

query I rowsort
SELECT ALL 18 * 9 col1
----
162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5806
SELECT - 24 + CAST( NULL AS DECIMAL ) / 64, - COALESCE ( - 53, - + COUNT( * ) ) AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-5806
SELECT - 24 + CAST ( NULL AS REAL ) / 64, - COALESCE ( - 53, - + COUNT ( * ) ) AS col1
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + SUM( ALL - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5807
SELECT + SUM ( ALL - 7 )
----
-7

query I rowsort
SELECT ALL + COALESCE ( - + 36, 26 + - - 95 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5809
SELECT + 78 AS col2, + 75 + - CAST( NULL AS SIGNED ) + + 73
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5809
SELECT + 78 AS col2, + 75 + - CAST ( NULL AS INTEGER ) + + 73
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + 52 - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 52 - COUNT ( * )
----
51

query I rowsort
SELECT ALL + - 26
----
-26

query II rowsort
SELECT DISTINCT + 74, 38 AS col1
----
74
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL MAX( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL MAX ( DISTINCT 19 )
----
19

query I rowsort
SELECT + + 46 + + - 73
----
-27

query I rowsort
SELECT - + 82 AS col1
----
-82

query I rowsort
SELECT + - 71 + + 89 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT - 85 * - + ( 86 ) col2, - COUNT( ALL - + 96 ) + + NULLIF ( 76, - 63 * - ( 65 ) ) + - + 67
----
7310
8

skipif mysql # not compatible
query II rowsort label-5817
SELECT - 85 * - + ( 86 ) col2, - COUNT ( ALL - + 96 ) + + NULLIF ( 76, - 63 * - ( 65 ) ) + - + 67
----
7310
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + + MIN( DISTINCT 81 ) + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5818
SELECT + + MIN ( DISTINCT 81 ) + COUNT ( * )
----
82

query II rowsort
SELECT 18, 64 AS col1
----
18
64

query I rowsort
SELECT + - 22 * + + 81
----
-1782

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5821
SELECT ALL CAST( 67 AS SIGNED ) * + 69 DIV - NULLIF ( - - ( + 3 ), - - 55 * + 71 ) AS col0, + 92 AS col1
----
-1541
92

skipif mysql # not compatible
query II rowsort label-5821
SELECT ALL CAST ( 67 AS INTEGER ) * + 69 / - NULLIF ( - - ( + 3 ), - - 55 * + 71 ) AS col0, + 92 AS col1
----
-1541
92

query I rowsort
SELECT + + 94 * - 29
----
-2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5823
SELECT DISTINCT - CAST( + CASE + - ( - 91 ) WHEN + COUNT( * ) + + COUNT( * ) + + 39 * 36 THEN + + COUNT( * ) * + + 98 + + 82 + 75 * 33 * + ( - COUNT( * ) ) WHEN - MIN( 62 ) + - 27 THEN NULL ELSE NULL END AS SIGNED ) / + 90 * + 96 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - CAST ( + CASE + - ( - 91 ) WHEN + COUNT ( * ) + + COUNT ( * ) + + 39 * 36 THEN + + COUNT ( * ) * + + 98 + + 82 + 75 * 33 * + ( - COUNT ( * ) ) WHEN - MIN ( 62 ) + - 27 THEN NULL ELSE NULL END AS INTEGER ) / + 90 * + 96 * 48
----
NULL

query I rowsort
SELECT ALL 21 AS col1
----
21

query I rowsort
SELECT - ( - 89 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5826
SELECT + ( 29 ) * + 85 AS col0, - 33 DIV - 24 AS col0
----
2465
1

skipif mysql # not compatible
query II rowsort label-5826
SELECT + ( 29 ) * + 85 AS col0, - 33 / - 24 AS col0
----
2465
1

query I rowsort
SELECT ALL - 39 * - 19 AS col2
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL + 75 + COUNT( * ) + + - 97 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL + 75 + COUNT ( * ) + + - 97 AS col2
----
-21

query I rowsort
SELECT ( + 70 ) AS col1
----
70

query I rowsort
SELECT + 67 * 14 col1
----
938

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - ( + CASE + MIN( - 98 ) WHEN + 67 * + 34 THEN - COUNT( * ) WHEN - + 52 THEN NULL ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT - ( + CASE + MIN ( - 98 ) WHEN + 67 * + 34 THEN - COUNT ( * ) WHEN - + 52 THEN NULL ELSE NULL END ) col2
----
NULL

query II rowsort
SELECT - 88 AS col2, + 20 + + 85 - - 27 AS col1
----
-88
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5833
SELECT + 91 AS col0, + 75 + - ( + CAST( + + MIN( ALL + 43 ) AS SIGNED ) )
----
91
32

skipif mysql # not compatible
query II rowsort label-5833
SELECT + 91 AS col0, + 75 + - ( + CAST ( + + MIN ( ALL + 43 ) AS INTEGER ) )
----
91
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT + 37 * - - 21 col0, MAX( - 50 ) col2
----
777
-50

skipif mysql # not compatible
query II rowsort label-5834
SELECT + 37 * - - 21 col0, MAX ( - 50 ) col2
----
777
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT ALL - 23 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - 23 / - 82 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5836
SELECT ALL - COUNT( - 83 ) DIV + 41 + 72 + CAST( 31 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - COUNT ( - 83 ) / + 41 + 72 + CAST ( 31 AS INTEGER ) AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5837
SELECT ALL 91 DIV - 49 + - ( + + 94 ) * + - 99 - 77 + 19 + + - ( + + COUNT( * ) ) * COUNT( * ) AS col2
----
9246

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL 91 / - 49 + - ( + + 94 ) * + - 99 - 77 + 19 + + - ( + + COUNT ( * ) ) * COUNT ( * ) AS col2
----
9246

query I rowsort
SELECT + 56 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5839
SELECT + 9 DIV + - NULLIF ( + - 98, MAX( + 54 ) ) * 71 + - 16 AS col0, - 74 * - - 37 AS col1, - 52
----
-16
-2738
-52

skipif mysql # not compatible
query III rowsort label-5839
SELECT + 9 / + - NULLIF ( + - 98, MAX ( + 54 ) ) * 71 + - 16 AS col0, - 74 * - - 37 AS col1, - 52
----
-16
-2738
-52

query I rowsort
SELECT - 0 + - 55 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT ALL 28 DIV + 37 * - 74 + + 72 + + + 8 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 28 / + 37 * - 74 + + 72 + + + 8 AS col1
----
80

query I rowsort
SELECT 29 col0
----
29

query I rowsort
SELECT + 70 AS col1
----
70

query I rowsort
SELECT 68 * - 35 col1
----
-2380

query I rowsort
SELECT 4 * + ( + 53 )
----
212

query II rowsort
SELECT 7, + 91 * 25 + - 85 AS col2
----
7
2190

query I rowsort
SELECT 52 * + + 61 + - 80 AS col0
----
3092

query I rowsort
SELECT ALL - ( - - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL - CASE - 5 WHEN 94 * NULLIF ( + COUNT( * ), + 94 ) * 19 + 10 THEN NULL ELSE - 18 END - 93 + + 54 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - CASE - 5 WHEN 94 * NULLIF ( + COUNT ( * ), + 94 ) * 19 + 10 THEN NULL ELSE - 18 END - 93 + + 54 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + SUM( - - 61 ) * 99
----
6039

skipif mysql # not compatible
query I rowsort label-5850
SELECT + SUM ( - - 61 ) * 99
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL + + COUNT( * ) - 89 col0
----
-88

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + + COUNT ( * ) - 89 col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5852
SELECT ALL - + 77 AS col2, - 24 + 69 + - - 39 + + MAX( ALL - 85 ) * - 96 + - CASE - CAST( NULL AS SIGNED ) WHEN - 54 THEN + + 95 * 39 * + 58 + 46 + - + 99 / - 86 + + + COUNT( * ) ELSE NULL END * + 78
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-5852
SELECT ALL - + 77 AS col2, - 24 + 69 + - - 39 + + MAX ( ALL - 85 ) * - 96 + - CASE - CAST ( NULL AS INTEGER ) WHEN - 54 THEN + + 95 * 39 * + 58 + 46 + - + 99 / - 86 + + + COUNT ( * ) ELSE NULL END * + 78
----
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5853
SELECT 94 * - CAST( NULL AS SIGNED ) * - 72 / + 45 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5853
SELECT 94 * - CAST ( NULL AS INTEGER ) * - 72 / + 45 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5854
SELECT ALL - COUNT( DISTINCT - 37 ) * - COUNT( - CAST( NULL AS SIGNED ) ), - 85 * - AVG ( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5854
SELECT ALL - COUNT ( DISTINCT - 37 ) * - COUNT ( - CAST ( NULL AS INTEGER ) ), - 85 * - AVG ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5855
SELECT - 69 - 95 + + + ( - COUNT( * ) ) DIV - 57 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-5855
SELECT - 69 - 95 + + + ( - COUNT ( * ) ) / - 57 AS col0
----
-164

query I rowsort
SELECT - 82 - 52
----
-134

query I rowsort
SELECT DISTINCT - - 83 * 10 AS col1
----
830

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 74 * - + CASE + 14 WHEN COUNT( 36 ) THEN - ( + + 7 ) + - COUNT( + 5 ) WHEN - COUNT( * ) * - 65 + - + 53 + 13 THEN NULL WHEN + 70 / - 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5858
SELECT 74 * - + CASE + 14 WHEN COUNT ( 36 ) THEN - ( + + 7 ) + - COUNT ( + 5 ) WHEN - COUNT ( * ) * - 65 + - + 53 + 13 THEN NULL WHEN + 70 / - 13 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5859
SELECT - + 17 AS col1, - 31 + CASE COUNT( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN( + + 47 ) + + - CAST( 3 AS SIGNED ) * - 36 THEN 81 * - 76 + 15 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) END AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-5859
SELECT - + 17 AS col1, - 31 + CASE COUNT ( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN ( + + 47 ) + + - CAST ( 3 AS INTEGER ) * - 36 THEN 81 * - 76 + 15 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) END AS col1
----
-17
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5860
SELECT DISTINCT ( - - 82 ) + + 32 DIV 29 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT ( - - 82 ) + + 32 / 29 + - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT + + 54 * COUNT( * ) - 44 + ( + 83 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT + + 54 * COUNT ( * ) - 44 + ( + 83 ) AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT + 23 DIV - - MIN( DISTINCT + - ( - 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5862
SELECT + 23 / - - MIN ( DISTINCT + - ( - 12 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SEL