sqllogictest
Artifact Content
Not logged in

Artifact 485815a91b9a44c4ccfddb3e9b154e4dff5b5f7b:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

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

query I rowsort
SELECT ALL + + 61 + 17
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3
SELECT + - 40 + - CASE WHEN 36 + + 65 * + 55 IN ( 32 * SUM( 13 ) + 61 / 8 ) THEN 95 WHEN NOT + CASE 19 WHEN 90 * + ( - 27 ) + 93 * + 2 THEN NULL WHEN + 32 * - 81 THEN 64 WHEN + ( CAST( + AVG ( + 62 ) AS SIGNED ) ) * + 12 THEN NULL END NOT IN ( - 46 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3
SELECT + - 40 + - CASE WHEN 36 + + 65 * + 55 IN ( 32 * SUM ( 13 ) + 61 / 8 ) THEN 95 WHEN NOT + CASE 19 WHEN 90 * + ( - 27 ) + 93 * + 2 THEN NULL WHEN + 32 * - 81 THEN 64 WHEN + ( CAST ( + AVG ( + 62 ) AS INTEGER ) ) * + 12 THEN NULL END NOT IN ( - 46 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT - - COALESCE ( + 31, COUNT( * ) ) - 30
----
1

skipif mysql # not compatible
query I rowsort label-4
SELECT - - COALESCE ( + 31, COUNT ( * ) ) - 30
----
1

query I rowsort
SELECT ALL - - 32 + 97 col2
----
129

query I rowsort
SELECT - - 32 * 16
----
512

query I rowsort
SELECT - 41 * + 17
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT + COALESCE ( + COUNT( * ), COUNT( * ) + 77 ) * 96 col2
----
96

skipif mysql # not compatible
query I rowsort label-8
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) + 77 ) * 96 col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL - - CASE + 41 WHEN 78 + + 36 THEN NULL WHEN 53 THEN + COUNT( * ) * - 32 + 74 ELSE CASE 84 WHEN CAST( NULL AS SIGNED ) THEN - AVG ( 12 ) + + AVG ( DISTINCT 16 ) WHEN + COUNT( * ) THEN AVG ( - 69 ) ELSE NULL END * 71 END * - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - - CASE + 41 WHEN 78 + + 36 THEN NULL WHEN 53 THEN + COUNT ( * ) * - 32 + 74 ELSE CASE 84 WHEN CAST ( NULL AS INTEGER ) THEN - AVG ( 12 ) + + AVG ( DISTINCT 16 ) WHEN + COUNT ( * ) THEN AVG ( - 69 ) ELSE NULL END * 71 END * - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT SUM( DISTINCT 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-10
SELECT SUM ( DISTINCT 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL - - 40 - + CASE MAX( - 93 ) WHEN 19 THEN + 65 + - 61 WHEN ( - 55 ) THEN NULL WHEN + NULLIF ( + MIN( DISTINCT ( 50 ) ), 33 ) + + 47 THEN - 85 / + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - - 40 - + CASE MAX ( - 93 ) WHEN 19 THEN + 65 + - 61 WHEN ( - 55 ) THEN NULL WHEN + NULLIF ( + MIN ( DISTINCT ( 50 ) ), 33 ) + + 47 THEN - 85 / + 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL - 71 - NULLIF ( - CASE - ( - 40 ) WHEN CASE + 35 WHEN + MIN( 72 ) * 98 THEN + 96 * ( 73 ) + - 71 ELSE + 10 END THEN 38 END, ( 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - 71 - NULLIF ( - CASE - ( - 40 ) WHEN CASE + 35 WHEN + MIN ( 72 ) * 98 THEN + 96 * ( 73 ) + - 71 ELSE + 10 END THEN 38 END, ( 76 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-13
SELECT CAST( - 35 AS SIGNED ) DIV 39 - 86 * - 8 AS col2
----
688

skipif mysql # not compatible
query I rowsort label-13
SELECT CAST ( - 35 AS INTEGER ) / 39 - 86 * - 8 AS col2
----
688

query I rowsort
SELECT - - 33 * - 89
----
-2937

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT - - 28 * COUNT( * ) + + 27
----
55

skipif mysql # not compatible
query I rowsort label-16
SELECT - - 28 * COUNT ( * ) + + 27
----
55

query I rowsort
SELECT ALL + 14 * - 74 - 43
----
-1079

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT 47 DIV - 34 + 22
----
21

skipif mysql # not compatible
query I rowsort label-18
SELECT 47 / - 34 + 22
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT + MIN( DISTINCT 25 ) DIV 80 + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-19
SELECT + MIN ( DISTINCT 25 ) / 80 + - 80
----
-80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL + COALESCE ( + - COUNT( * ), 48 - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + COALESCE ( + - COUNT ( * ), 48 - 5 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT COALESCE ( MAX( CAST( NULL AS SIGNED ) ), 83 - + CASE + 60 WHEN + 43 - 67 THEN AVG ( 84 ) ELSE NULL END * COALESCE ( 9, 17 * - 72, + 99 + 88 ) ) * - 6 + + NULLIF ( + 95 + - 19 * COUNT( * ), 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT COALESCE ( MAX ( CAST ( NULL AS INTEGER ) ), 83 - + CASE + 60 WHEN + 43 - 67 THEN AVG ( 84 ) ELSE NULL END * COALESCE ( 9, 17 * - 72, + 99 + 88 ) ) * - 6 + + NULLIF ( + 95 + - 19 * COUNT ( * ), 9 )
----
NULL

query I rowsort
SELECT ALL 68 * + 19
----
1292

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT + 74 DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT + 74 / + 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT + 77 * ( - COUNT( * ) ) + + 68 * + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-26
SELECT + 77 * ( - COUNT ( * ) ) + + 68 * + COUNT ( * ) AS col1
----
-9

query I rowsort
SELECT + 15 * + + 78 * + 1 + 66
----
1236

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

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

query I rowsort
SELECT - 20 * + 44 * 15 AS col2
----
-13200

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT + 26 + NULLIF ( ( COUNT( * ) ), 5 * + 59 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-30
SELECT + 26 + NULLIF ( ( COUNT ( * ) ), 5 * + 59 ) AS col2
----
27

query I rowsort
SELECT NULLIF ( 45, 10 ) AS col0
----
45

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

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

query I rowsort
SELECT + 2 + + 97
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT SUM( - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-34
SELECT SUM ( - 0 ) AS col2
----
0

query I rowsort
SELECT + 66 + + 3
----
69

query I rowsort
SELECT ALL ( 63 ) * - 31 + 43 * 52 AS col2
----
283

query I rowsort
SELECT DISTINCT 31 * 53
----
1643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL COALESCE ( 28, + 63 + + ( COALESCE ( - 39, + 79 * COUNT( * ), - MAX( ALL 10 ) ) + 11 ) * 17, + 10 ) + - 14
----
14

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL COALESCE ( 28, + 63 + + ( COALESCE ( - 39, + 79 * COUNT ( * ), - MAX ( ALL 10 ) ) + 11 ) * 17, + 10 ) + - 14
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT DISTINCT + 16 + 7 DIV 47
----
16

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT + 16 + 7 / 47
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - 73 + + - 70 * COUNT( * )
----
-143

skipif mysql # not compatible
query I rowsort label-41
SELECT - 73 + + - 70 * COUNT ( * )
----
-143

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL + 22 * 69 * MAX( + 4 * 34 ) AS col2
----
206448

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL + 22 * 69 * MAX ( + 4 * 34 ) AS col2
----
206448

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL - ( - COUNT( * ) ) - ( - 42 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL - ( - COUNT ( * ) ) - ( - 42 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT DISTINCT + SUM( 88 ) * + 22 AS col1
----
1936

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT + SUM ( 88 ) * + 22 AS col1
----
1936

query I rowsort
SELECT - ( - 37 ) * - 81
----
-2997

query I rowsort
SELECT - 84 + - 59
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL COALESCE ( - MIN( DISTINCT 53 ), + 61 + - COUNT( * ) * + 52 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL COALESCE ( - MIN ( DISTINCT 53 ), + 61 + - COUNT ( * ) * + 52 ) col0
----
-53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT - 42 DIV 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-51
SELECT - 42 / 39 AS col2
----
-1

query I rowsort
SELECT - - 96 + + 34
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT - CAST( - COALESCE ( 49, - AVG ( + ( - 31 ) ) * 28 + 87 * - 12 ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-53
SELECT - CAST ( - COALESCE ( 49, - AVG ( + ( - 31 ) ) * 28 + 87 * - 12 ) AS INTEGER )
----
49

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT ALL + COUNT( * ) * CASE - + 9 WHEN + 94 * 60 THEN 26 + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + COUNT ( * ) * CASE - + 9 WHEN + 94 * 60 THEN 26 + 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL - 58 * + - 67 * + COALESCE ( - COUNT( * ), + 24 ) AS col1
----
-3886

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL - 58 * + - 67 * + COALESCE ( - COUNT ( * ), + 24 ) AS col1
----
-3886

query I rowsort
SELECT - 33 * + 66 col2
----
-2178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-61
SELECT ALL COUNT( * ) DIV COUNT( + 74 ) + + 50 * + 49 col0
----
2451

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL COUNT ( * ) / COUNT ( + 74 ) + + 50 * + 49 col0
----
2451

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT + COUNT( + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-63
SELECT + COUNT ( + 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + NULLIF ( - COALESCE ( - 25, + 48 * COUNT( * ) ), + SUM( 38 ) )
----
25

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + NULLIF ( - COALESCE ( - 25, + 48 * COUNT ( * ) ), + SUM ( 38 ) )
----
25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT + 3 * + + COALESCE ( - - 10, + 21 + SUM( DISTINCT - 26 ) )
----
30

skipif mysql # not compatible
query I rowsort label-67
SELECT + 3 * + + COALESCE ( - - 10, + 21 + SUM ( DISTINCT - 26 ) )
----
30

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

query II rowsort
SELECT + 70 AS col1, + 38 AS col2
----
70
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL + CASE WHEN NOT ( + COUNT( * ) ) IN ( 77 - 5 ) THEN - 38 * + COUNT( * ) END + MIN( - 78 ) * ( + 7 )
----
-584

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL + CASE WHEN NOT ( + COUNT ( * ) ) IN ( 77 - 5 ) THEN - 38 * + COUNT ( * ) END + MIN ( - 78 ) * ( + 7 )
----
-584

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

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL 61 + COUNT ( * )
----
62

query I rowsort
SELECT ALL - 50 + + + 78 col1
----
28

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

onlyif mysql # DIV for integer division: 
query II rowsort label-75
SELECT 50 AS col0, - 15 + - 14 DIV + 22
----
50
-15

skipif mysql # not compatible
query II rowsort label-75
SELECT 50 AS col0, - 15 + - 14 / + 22
----
50
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT COUNT( * ) * + + 62 * - 65
----
-4030

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT COUNT ( * ) * + + 62 * - 65
----
-4030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-77
SELECT ALL - 23 + + CAST( - 79 AS SIGNED ) - 37
----
-139

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - 23 + + CAST ( - 79 AS INTEGER ) - 37
----
-139

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

skipif mysql # not compatible
query I rowsort label-78
SELECT COUNT ( * ) + - 63 AS col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-79
SELECT COUNT( * ) DIV - NULLIF ( 20, - 52 * 72 )
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT COUNT ( * ) / - NULLIF ( 20, - 52 * 72 )
----
0

query I rowsort
SELECT + 96 * 15 AS col2
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT 75 * - 31 + + + 13 + ( 12 + NULLIF ( + 45, - 55 ) ) DIV 79
----
-2312

skipif mysql # not compatible
query I rowsort label-81
SELECT 75 * - 31 + + + 13 + ( 12 + NULLIF ( + 45, - 55 ) ) / 79
----
-2312

query I rowsort
SELECT ALL 36 * + ( + + 22 )
----
792

query I rowsort
SELECT ALL - 37 - + 38 col2
----
-75

query I rowsort
SELECT + NULLIF ( + + 68, AVG ( DISTINCT 54 ) ) + 75 * 47
----
3593

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

query I rowsort
SELECT DISTINCT CASE - 25 WHEN + 44 THEN NULL WHEN 99 THEN ( 34 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 24 + 62 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-88
SELECT ALL 93 * + + 58 + - - ( 38 ) + - CAST( + 65 AS SIGNED )
----
5367

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL 93 * + + 58 + - - ( 38 ) + - CAST ( + 65 AS INTEGER )
----
5367

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT - COUNT( * ), - MAX( 42 ) + 96 AS col1
----
-1
54

skipif mysql # not compatible
query II rowsort label-90
SELECT - COUNT ( * ), - MAX ( 42 ) + 96 AS col1
----
-1
54

query II rowsort
SELECT - 61, + 9 AS col1
----
-61
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-92
SELECT DISTINCT MAX( - - CAST( 80 AS SIGNED ) )
----
80

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT MAX ( - - CAST ( 80 AS INTEGER ) )
----
80

query I rowsort
SELECT ALL NULLIF ( + 58, 17 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT + 12 * NULLIF ( + + COUNT( + COALESCE ( 55, 13, + 42 ) ), - 14 / 5 )
----
12

skipif mysql # not compatible
query I rowsort label-94
SELECT + 12 * NULLIF ( + + COUNT ( + COALESCE ( 55, 13, + 42 ) ), - 14 / 5 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-95
SELECT - 23, ( - 42 ) + - COUNT( * ) DIV ( + 38 ) AS col1
----
-23
-42

skipif mysql # not compatible
query II rowsort label-95
SELECT - 23, ( - 42 ) + - COUNT ( * ) / ( + 38 ) AS col1
----
-23
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT 3 * ( + COUNT( DISTINCT 41 ) ) col2
----
3

skipif mysql # not compatible
query I rowsort label-97
SELECT 3 * ( + COUNT ( DISTINCT 41 ) ) col2
----
3

query I rowsort
SELECT DISTINCT - + 85 * + 82 * + - 83
----
578510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT DISTINCT + 17 * + - 98 / CASE + 8 WHEN CASE 20 WHEN 32 THEN 29 WHEN COUNT( * ) + - 84 THEN NULL WHEN - ( 54 ) - 47 * 39 THEN NULL END THEN NULL WHEN - COUNT( * ) THEN 18 - - CAST( NULL AS SIGNED ) * 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT + 17 * + - 98 / CASE + 8 WHEN CASE 20 WHEN 32 THEN 29 WHEN COUNT ( * ) + - 84 THEN NULL WHEN - ( 54 ) - 47 * 39 THEN NULL END THEN NULL WHEN - COUNT ( * ) THEN 18 - - CAST ( NULL AS INTEGER ) * 53 END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT 88 DIV 44 * MIN( + 63 ) * COUNT( * ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-101
SELECT 88 / 44 * MIN ( + 63 ) * COUNT ( * ) AS col2
----
126

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-102
SELECT ALL 39 + - + CAST( NULL AS DECIMAL ) + + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL 39 + - + CAST ( NULL AS REAL ) + + + 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 56 * + 98 * - + 51
----
-279888

query I rowsort
SELECT ALL - 81 + - 0 + 77 + - - 59 * + 92
----
5424

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT 13 DIV 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT 13 / 25 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT + 9 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + 9 / + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL - CASE - 49 WHEN + - COUNT( * ) THEN 52 ELSE NULL END + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - CASE - 49 WHEN + - COUNT ( * ) THEN 52 ELSE NULL END + + 31 AS col0
----
NULL

query I rowsort
SELECT 94 + 93 AS col1
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT ALL + ( - COUNT( * ) ) * - + COUNT( ALL - - 39 ) DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + ( - COUNT ( * ) ) * - + COUNT ( ALL - - 39 ) / + 38 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-111
SELECT ALL - 55 + + + CASE COUNT( * ) WHEN + - 2 + - 87 THEN 41 / MAX( CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL - 55 + + + CASE COUNT ( * ) WHEN + - 2 + - 87 THEN 41 / MAX ( CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT - 31 DIV + 14 + + - 46 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-112
SELECT - 31 / + 14 + + - 46 AS col2
----
-48

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

query I rowsort
SELECT 38 + + 84 AS col0
----
122

query I rowsort
SELECT ALL - 19 * + 14 AS col0
----
-266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-116
SELECT DISTINCT - ( + 96 ) AS col1, NULLIF ( - - CAST( NULL AS SIGNED ), 50 + - 19 )
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-116
SELECT DISTINCT - ( + 96 ) AS col1, NULLIF ( - - CAST ( NULL AS INTEGER ), 50 + - 19 )
----
-96
NULL

query II rowsort
SELECT - 94 * + - 74 AS col2, ( + 66 )
----
6956
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT COALESCE ( + COUNT( * ), - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-119
SELECT COALESCE ( + COUNT ( * ), - 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ( NULLIF ( + + 2, - 70 * 33 + - COUNT( - 5 ) ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-120
SELECT ( NULLIF ( + + 2, - 70 * 33 + - COUNT ( - 5 ) ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL + MAX( DISTINCT + - 81 ) * + - 16
----
1296

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + MAX ( DISTINCT + - 81 ) * + - 16
----
1296

query I rowsort
SELECT 46 + 67 AS col0
----
113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT ALL + 40 * - ( + 41 ) * - SUM( DISTINCT 8 ) * 82 + - 38 * + 45
----
1074130

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL + 40 * - ( + 41 ) * - SUM ( DISTINCT 8 ) * 82 + - 38 * + 45
----
1074130

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL COUNT( * ) * + 68 col0
----
68

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL COUNT ( * ) * + 68 col0
----
68

query I rowsort
SELECT 26 + 65 + + 22
----
113

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

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

query I rowsort
SELECT DISTINCT - - 16 + - 37
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL - + 66 + + + 41 + + 32 - - COUNT( + 3 ) + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - + 66 + + + 41 + + 32 - - COUNT ( + 3 ) + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL ( + - 50 ) + 65 + + 87 * + COUNT( * )
----
102

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL ( + - 50 ) + 65 + + 87 * + COUNT ( * )
----
102

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

query I rowsort
SELECT ALL - COALESCE ( + 1, - 67 + 84 ) + - 35 * 90
----
-3151

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT SUM( - 86 ) + - + 62 * 73 AS col0
----
-4612

skipif mysql # not compatible
query I rowsort label-133
SELECT SUM ( - 86 ) + - + 62 * 73 AS col0
----
-4612

query I rowsort
SELECT 13 + + 98
----
111

query I rowsort
SELECT ALL 9 + 28
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - COUNT( DISTINCT - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-136
SELECT - COUNT ( DISTINCT - 50 )
----
-1

query I rowsort
SELECT ALL + 98 * + 66 + + COALESCE ( - 26, 98 ) col0
----
6442

query I rowsort
SELECT + CASE + 86 WHEN 8 + - ( + 84 ) * - 50 THEN - 86 / 83 + + 88 WHEN 37 THEN 65 * 57 END * - 51 col1
----
NULL

query I rowsort
SELECT ALL 64 * + 64 - 77 AS col2
----
4019

query I rowsort
SELECT DISTINCT - 37 * + 28 - 62 AS col1
----
-1098

query I rowsort
SELECT ALL - 82 * - 72 - + 57 AS col2
----
5847

query I rowsort
SELECT NULLIF ( + + 62, 90 * + 41 + - + 59 ) AS col0
----
62

query I rowsort
SELECT ALL COALESCE ( + 88, - - 37, + 62 * + 48 + 53 - - 80 ) * 14 AS col1
----
1232

query I rowsort
SELECT + 25 * - - 34 AS col2
----
850

query I rowsort
SELECT CASE + 57 WHEN - 43 / + + ( - 50 ) THEN - ( 32 ) + + NULLIF ( 55, 3 ) ELSE - 37 * + 46 END AS col2
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT MAX( + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-146
SELECT MAX ( + 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-147
SELECT - CASE - 37 WHEN - + NULLIF ( - 59, - + 85 * - 14 ) * COUNT( * ) + 29 THEN 50 WHEN - 26 THEN 91 * - CAST( 42 * 68 AS SIGNED ) ELSE NULL END * - 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT - CASE - 37 WHEN - + NULLIF ( - 59, - + 85 * - 14 ) * COUNT ( * ) + 29 THEN 50 WHEN - 26 THEN 91 * - CAST ( 42 * 68 AS INTEGER ) ELSE NULL END * - 11 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT ALL + ( - - 36 ) DIV + COUNT( + 98 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL + ( - - 36 ) / + COUNT ( + 98 ) AS col2
----
36

query I rowsort
SELECT DISTINCT + ( ( - COALESCE ( - 23, 77 ) ) ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT ALL + COUNT( * ) DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL + COUNT ( * ) / + 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT DISTINCT + COUNT( DISTINCT - - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT + COUNT ( DISTINCT - - 13 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT + CASE - 95 WHEN CASE WHEN - 42 IN ( + CAST( + SUM( 19 ) AS SIGNED ) ) THEN 30 + - ( - 31 ) ELSE 78 * - MIN( + 44 ) END + ( - 17 ) THEN - 26 WHEN - 36 THEN - CASE AVG ( + 78 ) WHEN + 30 / + NULLIF ( + COUNT( ALL + 37 ), + SUM( DISTINCT 24 ) ) THEN NULL ELSE + CASE + 88 WHEN 42 THEN NULL WHEN + NULLIF ( + 60, 93 * - CAST( NULL AS SIGNED ) ) + 40 * + 74 THEN NULL WHEN - COUNT( * ) * COUNT( * ) THEN 20 * 61 ELSE NULL END * - 0 END * 46 - 58 ELSE NULL END * + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT + CASE - 95 WHEN CASE WHEN - 42 IN ( + CAST ( + SUM ( 19 ) AS INTEGER ) ) THEN 30 + - ( - 31 ) ELSE 78 * - MIN ( + 44 ) END + ( - 17 ) THEN - 26 WHEN - 36 THEN - CASE AVG ( + 78 ) WHEN + 30 / + NULLIF ( + COUNT ( ALL + 37 ), + SUM ( DISTINCT 24 ) ) THEN NULL ELSE + CASE + 88 WHEN 42 THEN NULL WHEN + NULLIF ( + 60, 93 * - CAST ( NULL AS INTEGER ) ) + 40 * + 74 THEN NULL WHEN - COUNT ( * ) * COUNT ( * ) THEN 20 * 61 ELSE NULL END * - 0 END * 46 - 58 ELSE NULL END * + 37 AS col2
----
NULL

query I rowsort
SELECT 74 * + 74 - 99 * - 93 AS col2
----
14683

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT DISTINCT - 52 + - COUNT( * ) + COUNT( * ) + - 46 * + 66 col0
----
-3088

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT - 52 + - COUNT ( * ) + COUNT ( * ) + - 46 * + 66 col0
----
-3088

query I rowsort
SELECT ALL + - 43 * - + 11 * 31
----
14663

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - 64 * - 30 + - MIN( ALL + 45 )
----
1875

skipif mysql # not compatible
query I rowsort label-156
SELECT - 64 * - 30 + - MIN ( ALL + 45 )
----
1875

query I rowsort
SELECT ALL - 19 + 43
----
24

query II rowsort
SELECT ALL - 53 AS col0, ( + 97 ) - + - 8
----
-53
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + MIN( + + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-160
SELECT + MIN ( + + 21 ) AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 98 * + COUNT( * ) - - 17 - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 98 * + COUNT ( * ) - - 17 - 34
----
NULL

query I rowsort
SELECT ALL - ( - 7 ) AS col1
----
7

query I rowsort
SELECT ALL + 17 + + - 90 + + 37 + + - 91
----
-127

query I rowsort
SELECT ALL 70 + - - 78
----
148

query I rowsort
SELECT ALL 83 + - 18 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT - + SUM( DISTINCT 20 ) * 92 AS col1
----
-1840

skipif mysql # not compatible
query I rowsort label-166
SELECT - + SUM ( DISTINCT 20 ) * 92 AS col1
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT DISTINCT - 9 + + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - 9 + + - COUNT ( * )
----
-10

query I rowsort
SELECT DISTINCT + + 1 * + 36 * + 48 * + 79 col0
----
136512

query II rowsort
SELECT ALL - 54 + + - 82 AS col0, COALESCE ( 20, - - 88 * 76 ) * - 66
----
-136
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT - COUNT( * ) - 48
----
-49

skipif mysql # not compatible
query I rowsort label-170
SELECT - COUNT ( * ) - 48
----
-49

query I rowsort
SELECT - 74 * - + 43 AS col0
----
3182

query I rowsort
SELECT - NULLIF ( - + 49, NULLIF ( - 14, - - 76 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT - COUNT( ALL + + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-173
SELECT - COUNT ( ALL + + 49 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT DISTINCT - 9 * COALESCE ( - + 70, - + COUNT( * ) + 45 )
----
630

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT - 9 * COALESCE ( - + 70, - + COUNT ( * ) + 45 )
----
630

query I rowsort
SELECT - NULLIF ( - 87, 65 * 27 - + 65 ) AS col1
----
87

query I rowsort
SELECT ALL - 91 * + 34 AS col2
----
-3094

query I rowsort
SELECT ALL 55 - + ( - 71 )
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT + 61 DIV 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT + 61 / 89 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT - 23 DIV ( - 74 ) - + 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-180
SELECT - 23 / ( - 74 ) - + 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT 28 * + 34 + + - COUNT( * ) AS col1
----
951

skipif mysql # not compatible
query I rowsort label-181
SELECT 28 * + 34 + + - COUNT ( * ) AS col1
----
951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-182
SELECT + CAST( - + 39 AS SIGNED ) AS col0, 51 * + COALESCE ( + 47, + COUNT( * ) ) AS col2
----
-39
2397

skipif mysql # not compatible
query II rowsort label-182
SELECT + CAST ( - + 39 AS INTEGER ) AS col0, 51 * + COALESCE ( + 47, + COUNT ( * ) ) AS col2
----
-39
2397

query II rowsort
SELECT ALL + 83 AS col1, 71
----
83
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-184
SELECT - 60 DIV - 88 * + 76 DIV COALESCE ( + NULLIF ( COALESCE ( 72, 15 * + 83 ), - 93 ), 73 - 65, + 45 + COALESCE ( COUNT( * ), + 2 * + 6 + - COALESCE ( 86 + - 55, - 65 ) ) ) * 99 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-184
SELECT - 60 / - 88 * + 76 / COALESCE ( + NULLIF ( COALESCE ( 72, 15 * + 83 ), - 93 ), 73 - 65, + 45 + COALESCE ( COUNT ( * ), + 2 * + 6 + - COALESCE ( 86 + - 55, - 65 ) ) ) * 99 + 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + NULLIF ( - 5, + ( - + COUNT( * ) ) + - 0 * + 65 ) * + ( - 98 )
----
490

skipif mysql # not compatible
query I rowsort label-185
SELECT + NULLIF ( - 5, + ( - + COUNT ( * ) ) + - 0 * + 65 ) * + ( - 98 )
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT ALL 48 * + - MAX( DISTINCT - 55 ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL 48 * + - MAX ( DISTINCT - 55 ) AS col1
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - 72 * - - 54 * 46 + - COUNT( * ) - - 46
----
-178803

skipif mysql # not compatible
query I rowsort label-187
SELECT - 72 * - - 54 * 46 + - COUNT ( * ) - - 46
----
-178803

query II rowsort
SELECT ALL + 73 col2, 73 AS col1
----
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT + MAX( - - 75 ) * - 3 + + + 31 + - - MIN( DISTINCT - 10 ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-189
SELECT + MAX ( - - 75 ) * - 3 + + + 31 + - - MIN ( DISTINCT - 10 ) AS col2
----
-204

query I rowsort
SELECT 65 * - + 85 + + CASE - - 83 WHEN + + ( - 52 ) * + 49 THEN 60 WHEN ( 30 ) THEN NULL END * 98
----
NULL

query I rowsort
SELECT DISTINCT + 6 * + 3 + 75
----
93

query II rowsort
SELECT ALL + 50 AS col0, 56
----
50
56

onlyif mysql # DIV for integer division: 
query II rowsort label-193
SELECT 9 AS col2, - 62 DIV + 22 col1
----
9
-2

skipif mysql # not compatible
query II rowsort label-193
SELECT 9 AS col2, - 62 / + 22 col1
----
9
-2

query II rowsort
SELECT 78 * + 85 + - 28 * - 36 AS col1, + 50 * + + 33 * 16 AS col0
----
7638
26400

query I rowsort
SELECT ALL 82 * + 30 * 50
----
123000

query II rowsort
SELECT + + 55 AS col0, 0
----
55
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-197
SELECT - ( + 29 ) + - - NULLIF ( + 32, + + CASE - 9 WHEN - SUM( DISTINCT 86 ) * - 95 THEN NULL WHEN 44 THEN - 3 ELSE CAST( NULL AS SIGNED ) + 58 END ) + COALESCE ( + 52 - + 78, 73 DIV 65, + ( COUNT( * ) ) * + ( - 1 ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-197
SELECT - ( + 29 ) + - - NULLIF ( + 32, + + CASE - 9 WHEN - SUM ( DISTINCT 86 ) * - 95 THEN NULL WHEN 44 THEN - 3 ELSE CAST ( NULL AS INTEGER ) + 58 END ) + COALESCE ( + 52 - + 78, 73 / 65, + ( COUNT ( * ) ) * + ( - 1 ) ) AS col0
----
-23

query II rowsort
SELECT - 91, 53 AS col2
----
-91
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT ALL - 0 * + 47 + + CASE + - COUNT( * ) WHEN + 82 THEN NULL ELSE + NULLIF ( + SUM( DISTINCT + 45 ), CAST( NULL AS SIGNED ) + - MAX( - 18 ) / + ( COALESCE ( 63, 8 + + 33, 88 + - ( 75 ), - 82 * - 28 + 69 ) ) ) * + 55 - - 93 END + - 73 + + ( 56 + + 20 ) * 6 AS col1
----
2951

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL - 0 * + 47 + + CASE + - COUNT ( * ) WHEN + 82 THEN NULL ELSE + NULLIF ( + SUM ( DISTINCT + 45 ), CAST ( NULL AS INTEGER ) + - MAX ( - 18 ) / + ( COALESCE ( 63, 8 + + 33, 88 + - ( 75 ), - 82 * - 28 + 69 ) ) ) * + 55 - - 93 END + - 73 + + ( 56 + + 20 ) * 6 AS col1
----
2951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT DISTINCT NULLIF ( + 97, + + 61 * CAST( NULL AS SIGNED ) ) * - + 83 + COUNT( * ) + - 27 AS col1
----
-8077

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT NULLIF ( + 97, + + 61 * CAST ( NULL AS INTEGER ) ) * - + 83 + COUNT ( * ) + - 27 AS col1
----
-8077

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT + - 68 * + MIN( + ( + + ( ( 58 ) ) ) )
----
-3944

skipif mysql # not compatible
query I rowsort label-201
SELECT + - 68 * + MIN ( + ( + + ( ( 58 ) ) ) )
----
-3944

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT ALL + 71 * COALESCE ( - - 12, - 12 DIV + - 20 ) + - 8
----
844

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL + 71 * COALESCE ( - - 12, - 12 / + - 20 ) + - 8
----
844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-203
SELECT + 64 AS col2, - 40 * + COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ), + - ( + 78 ) ) col1
----
64
-40

skipif mysql # not compatible
query II rowsort label-203
SELECT + 64 AS col2, - 40 * + COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ), + - ( + 78 ) ) col1
----
64
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT 78 * 12 * + 25 + + COUNT( * )
----
23401

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT 78 * 12 * + 25 + + COUNT ( * )
----
23401

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL - + 4 * - 7 * + 40 / - NULLIF ( - 37, ( 86 ) ) * - MAX( DISTINCT - CASE 94 WHEN + 10 THEN + 52 END ) + 87 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - + 4 * - 7 * + 40 / - NULLIF ( - 37, ( 86 ) ) * - MAX ( DISTINCT - CASE 94 WHEN + 10 THEN + 52 END ) + 87 * 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-206
SELECT + + ( COUNT( * ) ) * - + 83 DIV - NULLIF ( + SUM( + 5 ), - CASE 22 WHEN + 91 THEN - 9 * - 38 END + 16 * 17 ) + 52 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-206
SELECT + + ( COUNT ( * ) ) * - + 83 / - NULLIF ( + SUM ( + 5 ), - CASE 22 WHEN + 91 THEN - 9 * - 38 END + 16 * 17 ) + 52 AS col0
----
68

query I rowsort
SELECT + 72 - - - ( - 96 )
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT - COUNT( * ) * COALESCE ( + 53, + - COUNT( ALL 26 ), + + 99, + MAX( ALL - 39 ) ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-208
SELECT - COUNT ( * ) * COALESCE ( + 53, + - COUNT ( ALL 26 ), + + 99, + MAX ( ALL - 39 ) ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - + 11 * + COUNT( * ) * + - 22
----
242

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - + 11 * + COUNT ( * ) * + - 22
----
242

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

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

query I rowsort
SELECT DISTINCT 86 * 30 + - ( - 86 ) AS col0
----
2666

query I rowsort
SELECT + COALESCE ( + 9, 58 ) AS col0
----
9

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

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

query I rowsort
SELECT - - NULLIF ( 96, - 97 / + 3 + - - 72 )
----
96

query I rowsort
SELECT 97 - - 46 * + 71 * - NULLIF ( - 50, - + 86 )
----
163397

query I rowsort
SELECT ALL 1 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT 3 + 17 * 6 - + + 78 * - - 69 * MAX( + 8 ) AS col0
----
-42951

skipif mysql # not compatible
query I rowsort label-217
SELECT 3 + 17 * 6 - + + 78 * - - 69 * MAX ( + 8 ) AS col0
----
-42951

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

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

query I rowsort
SELECT DISTINCT - 5 - 55 * + 76
----
-4185

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT 12 * - COALESCE ( - ( - 31 ), 71 + + 20, - COUNT( * ) )
----
-372

skipif mysql # not compatible
query I rowsort label-220
SELECT 12 * - COALESCE ( - ( - 31 ), 71 + + 20, - COUNT ( * ) )
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-221
SELECT 48 + 29 / + CAST( NULL AS SIGNED ) - - 64 * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT 48 + 29 / + CAST ( NULL AS INTEGER ) - - 64 * - - 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT ALL - CAST( 2 AS SIGNED ) * + COUNT( + + 62 ) + + 81
----
79

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL - CAST ( 2 AS INTEGER ) * + COUNT ( + + 62 ) + + 81
----
79

query I rowsort
SELECT DISTINCT - 51 * 20 AS col2
----
-1020

query II rowsort
SELECT DISTINCT - ( + 50 ), - 63 AS col0
----
-50
-63

query I rowsort
SELECT DISTINCT 83 + - 38 col2
----
45

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

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 1 / COUNT ( * )
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT + 36 DIV - 50 * 57 DIV 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-228
SELECT + 36 / - 50 * 57 / 37 AS col1
----
0

query I rowsort
SELECT 24 * - ( + 6 ) * - 60
----
8640

query I rowsort
SELECT + COALESCE ( + 56, - ( - 76 ) * 70 + - ( + 58 ), 43 ) col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT + NULLIF ( + 55, - 29 / + - 37 ) * CAST( + 13 AS SIGNED ) * - ( 21 ) + + 5 + - ( MAX( 76 ) )
----
-15086

skipif mysql # not compatible
query I rowsort label-231
SELECT + NULLIF ( + 55, - 29 / + - 37 ) * CAST ( + 13 AS INTEGER ) * - ( 21 ) + + 5 + - ( MAX ( 76 ) )
----
-15086

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-232
SELECT ALL - 83 + + 55 / 71 * - 33 / - MIN( CASE - 52 WHEN 46 THEN NULL ELSE 40 * - CASE - CAST( + 80 AS DECIMAL ) WHEN + 63 THEN NULL WHEN 31 THEN 43 * + 18 - 53 END + 66 END ) * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - 83 + + 55 / 71 * - 33 / - MIN ( CASE - 52 WHEN 46 THEN NULL ELSE 40 * - CASE - CAST ( + 80 AS REAL ) WHEN + 63 THEN NULL WHEN 31 THEN 43 * + 18 - 53 END + 66 END ) * + 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-233
SELECT DISTINCT + COUNT( * ) + 56 AS col1, 54 DIV + 92 + - 39 AS col2
----
57
-39

skipif mysql # not compatible
query II rowsort label-233
SELECT DISTINCT + COUNT ( * ) + 56 AS col1, 54 / + 92 + - 39 AS col2
----
57
-39

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

query I rowsort
SELECT DISTINCT + 44 + + - 87 AS col0
----
-43

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

query I rowsort
SELECT - 4 * 37 + + + 68 * 86 * 74
----
432604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-238
SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT( * ) THEN NULL WHEN 94 THEN ( ( COUNT( * ) ) ) + CAST( NULL AS SIGNED ) * + 71 END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-238
SELECT ALL + 0 * - - 3 AS col0, - ( - ( - + 99 ) ) / - 17 * + CASE - 9 WHEN COUNT ( * ) THEN NULL WHEN 94 THEN ( ( COUNT ( * ) ) ) + CAST ( NULL AS INTEGER ) * + 71 END AS col0
----
0
NULL

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

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

query I rowsort
SELECT - 26 - - 32 + - 59 + + 1 * - 84 - 44
----
-181

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-241
SELECT DISTINCT COUNT( * ) * - - 38 + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT COUNT ( * ) * - - 38 + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT + 92 * - + 69 + - - 74 + + AVG ( DISTINCT - 43 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT + 92 * - + 69 + - - 74 + + AVG ( DISTINCT - 43 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT ALL + NULLIF ( 27, + 41 / + + 25 * - CAST( NULL AS SIGNED ) * - 96 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + NULLIF ( 27, + 41 / + + 25 * - CAST ( NULL AS INTEGER ) * - 96 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT + CASE - 25 WHEN - CASE 1 WHEN + 75 + + 71 * 81 THEN 79 * + 6 END THEN + 56 * 86 WHEN COUNT( * ) THEN - 88 - - NULLIF ( COUNT( 13 ), - 71 ) END * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT + CASE - 25 WHEN - CASE 1 WHEN + 75 + + 71 * 81 THEN 79 * + 6 END THEN + 56 * 86 WHEN COUNT ( * ) THEN - 88 - - NULLIF ( COUNT ( 13 ), - 71 ) END * - 63 AS col1
----
NULL

query I rowsort
SELECT CASE + + 33 WHEN + ( + 62 ) * + AVG ( + 81 ) THEN NULL WHEN 38 THEN 81 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + COALESCE ( + 9, + ( - ( 52 ) ), 20 )
----
-9

query II rowsort
SELECT ALL 46, - 67 * 75 AS col2
----
46
-5025

query I rowsort
SELECT DISTINCT - ( + 67 ) - + 93 AS col2
----
-160

query I rowsort
SELECT ALL + 37 * 51
----
1887

query I rowsort
SELECT 22 * 65 AS col0
----
1430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT ALL COUNT( * ) DIV + - NULLIF ( 65, + + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL COUNT ( * ) / + - NULLIF ( 65, + + COUNT ( * ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-252
SELECT MAX( + - 9 ) + - + CAST( - - 72 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-252
SELECT MAX ( + - 9 ) + - + CAST ( - - 72 AS INTEGER ) AS col1
----
-81

query II rowsort
SELECT 10 AS col2, 50 * 58
----
10
2900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT + NULLIF ( + 34, + 98 * - + 3 + + 1 - + 32 - + COUNT( * ) ) * + 73
----
2482

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT + NULLIF ( + 34, + 98 * - + 3 + + 1 - + 32 - + COUNT ( * ) ) * + 73
----
2482

query I rowsort
SELECT ALL - 92 * - 75 AS col1
----
6900

query II rowsort
SELECT 91 AS col0, - 31 col2
----
91
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ( - + COUNT( * ) ) - ( 84 )
----
-85

skipif mysql # not compatible
query I rowsort label-258
SELECT ( - + COUNT ( * ) ) - ( 84 )
----
-85

query I rowsort
SELECT 22 * - - 65 col2
----
1430

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

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

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

query I rowsort
SELECT ALL 84 * - - 6 AS col1
----
504

onlyif mysql # DIV for integer division: 
query I rowsort label-263
SELECT 38 + - + 24 * 16 DIV 2
----
-154

skipif mysql # not compatible
query I rowsort label-263
SELECT 38 + - + 24 * 16 / 2
----
-154

query I rowsort
SELECT 47 * - 20 AS col0
----
-940

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

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

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

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

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

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

query I rowsort
SELECT - 64 * 92 + - 48 AS col2
----
-5936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT COUNT( * ) * + 77 + + 37 DIV - COUNT( * ) col2
----
40

skipif mysql # not compatible
query I rowsort label-269
SELECT COUNT ( * ) * + 77 + + 37 / - COUNT ( * ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT ALL 95 * + + COUNT( * ) + + - 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL 95 * + + COUNT ( * ) + + - 48 AS col0
----
47

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

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

query I rowsort
SELECT - 61 + 67
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL 32 * + - COUNT( * ) + + 31 + - 13 * + - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL 32 * + - COUNT ( * ) + + 31 + - 13 * + - COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT DISTINCT + - MAX( DISTINCT - - 4 ) * + COUNT( ALL - 42 ) - CASE - 73 WHEN CASE 84 WHEN - 91 THEN NULL WHEN + 35 + + 14 THEN CASE 96 WHEN - 26 THEN - 1 / ( SUM( DISTINCT 77 ) ) WHEN - 11 THEN NULL END / - 4 + + 90 * 56 WHEN - COUNT( * ) THEN NULL ELSE 86 + - 12 * 5 END THEN NULL ELSE + 61 END - MIN( 94 ) * + 98 AS col0
----
-9277

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT + - MAX ( DISTINCT - - 4 ) * + COUNT ( ALL - 42 ) - CASE - 73 WHEN CASE 84 WHEN - 91 THEN NULL WHEN + 35 + + 14 THEN CASE 96 WHEN - 26 THEN - 1 / ( SUM ( DISTINCT 77 ) ) WHEN - 11 THEN NULL END / - 4 + + 90 * 56 WHEN - COUNT ( * ) THEN NULL ELSE 86 + - 12 * 5 END THEN NULL ELSE + 61 END - MIN ( 94 ) * + 98 AS col0
----
-9277

query I rowsort
SELECT 39 * - - 40
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL - + MAX( COALESCE ( 23, + NULLIF ( - - 95, + + 64 ), + 66 ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL - + MAX ( COALESCE ( 23, + NULLIF ( - - 95, + + 64 ), + 66 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT COUNT( * ) * + 67 * - SUM( + 58 )
----
-3886

skipif mysql # not compatible
query I rowsort label-277
SELECT COUNT ( * ) * + 67 * - SUM ( + 58 )
----
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT + ( MIN( + + 85 ) ) + + 9 + + + 67 + + 66 * - COUNT( * ) * ( + 21 )
----
-1225

skipif mysql # not compatible
query I rowsort label-278
SELECT + ( MIN ( + + 85 ) ) + + 9 + + + 67 + + 66 * - COUNT ( * ) * ( + 21 )
----
-1225

query II rowsort
SELECT + - 87 col2, 66 * + + 99 * - 66 * - COALESCE ( - 54, - + 80 + - COALESCE ( - ( - 52 ), - 58 ), + 97, + 16 + 45 )
----
-87
-23287176

query I rowsort
SELECT + - 85 + - 86
----
-171

query I rowsort
SELECT ALL - ( - 97 ) - ( + - 32 ) + 45
----
174

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

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

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

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

query I rowsort
SELECT ALL - 44 - 22 AS col0
----
-66

query I rowsort
SELECT ALL 43 * 33 * + 87 + - - 96 + - 64 AS col1
----
123485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-286
SELECT + - 33 * - ( - 75 ) DIV - COUNT( * )
----
2475

skipif mysql # not compatible
query I rowsort label-286
SELECT + - 33 * - ( - 75 ) / - COUNT ( * )
----
2475

onlyif mysql # aggregate syntax: 
query II rowsort label-287
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) * + 69 - - COUNT( * ) AS col2
----
1
70

skipif mysql # not compatible
query II rowsort label-287
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) * + 69 - - COUNT ( * ) AS col2
----
1
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT ALL CAST( NULL AS SIGNED ) - + 15 * - - 17 / + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL CAST ( NULL AS INTEGER ) - + 15 * - - 17 / + 31 AS col2
----
NULL

query I rowsort
SELECT + 9 * + 82 * 74
----
54612

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL COUNT( * ) * - SUM( ALL + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL COUNT ( * ) * - SUM ( ALL + 50 )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT + 91 + 37 + + + CASE + 87 WHEN + + 46 THEN + 37 - - - 31 * COALESCE ( - NULLIF ( 38, AVG ( - ( ( 95 ) ) ) * 15 - + 34 * 85 ), ( - CAST( NULL AS SIGNED ) ) ) WHEN 57 / - MAX( ALL 81 ) - 29 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT + 91 + 37 + + + CASE + 87 WHEN + + 46 THEN + 37 - - - 31 * COALESCE ( - NULLIF ( 38, AVG ( - ( ( 95 ) ) ) * 15 - + 34 * 85 ), ( - CAST ( NULL AS INTEGER ) ) ) WHEN 57 / - MAX ( ALL 81 ) - 29 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-292
SELECT + 2 + 81, ( CAST( NULL AS DECIMAL ) ) + + MAX( - 90 ) + - 6 AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-292
SELECT + 2 + 81, ( CAST ( NULL AS REAL ) ) + + MAX ( - 90 ) + - 6 AS col0
----
83
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL ( - ( + 34 ) ) + + 88 * SUM( COALESCE ( - ( + 43 ), - ( - 61 ), + 30 ) )
----
-3818

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL ( - ( + 34 ) ) + + 88 * SUM ( COALESCE ( - ( + 43 ), - ( - 61 ), + 30 ) )
----
-3818

query II rowsort
SELECT + 79 + ( - 63 ) * NULLIF ( 31, + - 27 ) + + 75 AS col2, COALESCE ( + + 16, + 77 * 55 ) + 0 AS col1
----
-1799
16

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT + 37 - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-296
SELECT + 37 - + COUNT ( * )
----
36

query I rowsort
SELECT ALL + 6 * + 21 * 83 AS col2
----
10458

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT - NULLIF ( + - COUNT( * ), COALESCE ( COUNT( - 92 ), - + 91, + 86, 6 - + 2 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-301
SELECT - NULLIF ( + - COUNT ( * ), COALESCE ( COUNT ( - 92 ), - + 91, + 86, 6 - + 2 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - 25 + + 74 + SUM( DISTINCT 49 ) * 63 * - 95 AS col2
----
-293216

skipif mysql # not compatible
query I rowsort label-302
SELECT - 25 + + 74 + SUM ( DISTINCT 49 ) * 63 * - 95 AS col2
----
-293216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT + SUM( ALL 48 ) DIV - 60 * COUNT( ALL - - 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT + SUM ( ALL 48 ) / - 60 * COUNT ( ALL - - 80 ) AS col0
----
0

query I rowsort
SELECT - ( + - 49 ) + - + 5 AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT DISTINCT - 94 * + 36 AS col0, - COUNT( * ) col0
----
-3384
-1

skipif mysql # not compatible
query II rowsort label-305
SELECT DISTINCT - 94 * + 36 AS col0, - COUNT ( * ) col0
----
-3384
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT ALL 97 DIV 30 + COUNT( * ) * + - NULLIF ( - NULLIF ( - NULLIF ( + 36, - COUNT( * ) DIV + 10 ), ( + 86 ) + + 92 ), - COUNT( * ) * 15 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL 97 / 30 + COUNT ( * ) * + - NULLIF ( - NULLIF ( - NULLIF ( + 36, - COUNT ( * ) / + 10 ), ( + 86 ) + + 92 ), - COUNT ( * ) * 15 ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL CASE + 39 WHEN - CAST( NULL AS SIGNED ) THEN - 38 END * 92 + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CASE + 39 WHEN - CAST ( NULL AS INTEGER ) THEN - 38 END * 92 + + 84 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 37 * 55 * + + 30 AS col1
----
61050

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - 95 * - + 78 * + COUNT( ALL 35 ) + + 94
----
7504

skipif mysql # not compatible
query I rowsort label-312
SELECT - 95 * - + 78 * + COUNT ( ALL 35 ) + + 94
----
7504

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL + - COUNT( ALL + - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + - COUNT ( ALL + - 46 )
----
-1

query I rowsort
SELECT + 34 * + - 45
----
-1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT ALL 4 * + MAX( - 11 ) + - + NULLIF ( - + 95, - 95 / - + 40 + + COALESCE ( - CAST( NULL AS SIGNED ), 65 ) + CAST( NULL AS SIGNED ) ) * + 0 - SUM( - 5 ) * - COALESCE ( + MIN( 60 ), - 81, COUNT( * ) + COUNT( * ) * 17 ) AS col0
----
-344

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL 4 * + MAX ( - 11 ) + - + NULLIF ( - + 95, - 95 / - + 40 + + COALESCE ( - CAST ( NULL AS INTEGER ), 65 ) + CAST ( NULL AS INTEGER ) ) * + 0 - SUM ( - 5 ) * - COALESCE ( + MIN ( 60 ), - 81, COUNT ( * ) + COUNT ( * ) * 17 ) AS col0
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT + CASE 49 WHEN - + 18 THEN NULLIF ( + + 94, - 92 * - SUM( ALL ( - 89 ) ) / - 18 - 80 + 7 ) WHEN 5 THEN 48 END / 98
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT + CASE 49 WHEN - + 18 THEN NULLIF ( + + 94, - 92 * - SUM ( ALL ( - 89 ) ) / - 18 - 80 + 7 ) WHEN 5 THEN 48 END / 98
----
NULL

query I rowsort
SELECT DISTINCT + 90 * + + 2
----
180

query I rowsort
SELECT - + 79 - + 16 + + 6
----
-89

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

query I rowsort
SELECT ALL + ( + ( - 87 ) ) * - 39 * + 16 AS col1
----
54288

query I rowsort
SELECT - - 88 * + 31 * + + 1 AS col2
----
2728

query I rowsort
SELECT + 88 * - 83 + 78 AS col2
----
-7226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT ALL + CAST( - + 57 AS SIGNED ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL + CAST ( - + 57 AS INTEGER ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT - 9 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-324
SELECT - 9 / 93
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT - 7 * 21 - - 30 - - COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-326
SELECT - 7 * 21 - - 30 - - COUNT ( * )
----
-116

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

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

query I rowsort
SELECT + 91 * 84 AS col0
----
7644

onlyif mysql # aggregate syntax: 
query II rowsort label-329
SELECT ALL + 35 * + 36 + + + 13 * COUNT( * ) * + 27 - - - 65 AS col1, + NULLIF ( + 16, - 36 )
----
1546
16

skipif mysql # not compatible
query II rowsort label-329
SELECT ALL + 35 * + 36 + + + 13 * COUNT ( * ) * + 27 - - - 65 AS col1, + NULLIF ( + 16, - 36 )
----
1546
16

query I rowsort
SELECT - 38 + + - 89 AS col0
----
-127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - NULLIF ( 46, 64 + CASE - + 81 WHEN - COUNT( * ) + + 98 THEN - MAX( - + 18 ) ELSE + 27 END ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-332
SELECT - NULLIF ( 46, 64 + CASE - + 81 WHEN - COUNT ( * ) + + 98 THEN - MAX ( - + 18 ) ELSE + 27 END ) AS col2
----
-46

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

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL - COUNT ( * ) + + + 23 AS col0
----
22

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

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

query II rowsort
SELECT 67 AS col2, 21 AS col0
----
67
21

query I rowsort
SELECT - 19 + + 8 - 4
----
-15

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

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

query II rowsort
SELECT ALL 29, + 2 AS col2
----
29
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-339
SELECT - CAST( MIN( DISTINCT 62 ) AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-339
SELECT - CAST ( MIN ( DISTINCT 62 ) AS INTEGER ) AS col2
----
-62

query I rowsort
SELECT ALL 83 + - 56
----
27

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

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

query I rowsort
SELECT + 65 + 19
----
84

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

query I rowsort
SELECT DISTINCT - 46 - + 64 AS col1
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT + 79 - + 11 - + + 99 + + 60 * - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT + 79 - + 11 - + + 99 + + 60 * - + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL ( + 19 ) * - 89 * + 33 * - - 32 AS col0
----
-1785696

query I rowsort
SELECT 9 * 77 AS col2
----
693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT - + COUNT( * ) * - + CASE WHEN NOT 68 IS NULL THEN - - 51 + - 84 * 9 + + + 86 ELSE + NULLIF ( + - MAX( DISTINCT - 21 ), COUNT( * ) * 59 ) DIV - 87 END + + 74 DIV + 74
----
-618

skipif mysql # not compatible
query I rowsort label-348
SELECT - + COUNT ( * ) * - + CASE WHEN NOT 68 IS NULL THEN - - 51 + - 84 * 9 + + + 86 ELSE + NULLIF ( + - MAX ( DISTINCT - 21 ), COUNT ( * ) * 59 ) / - 87 END + + 74 / + 74
----
-618

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

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

query I rowsort
SELECT 71 * - 11 - - - 27
----
-808

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

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

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

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

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

query I rowsort
SELECT 78 * + - 23 AS col0
----
-1794

query I rowsort
SELECT DISTINCT 38 * - 41 AS col0
----
-1558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-356
SELECT ALL - 81, 92 / CAST( NULL AS SIGNED ) AS col0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-356
SELECT ALL - 81, 92 / CAST ( NULL AS INTEGER ) AS col0
----
-81
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( 24, - AVG ( DISTINCT 27 ) )
----
-24

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

query I rowsort
SELECT 58 + + + 15 AS col2
----
73

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

onlyif mysql # aggregate syntax: 
query III rowsort label-361
SELECT 53 AS col0, + COUNT( * ) - + + 83, 15 AS col2
----
53
-82
15

skipif mysql # not compatible
query III rowsort label-361
SELECT 53 AS col0, + COUNT ( * ) - + + 83, 15 AS col2
----
53
-82
15

query I rowsort
SELECT 19 * + 58 * 57 AS col2
----
62814

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT 41 + - - MIN( ALL - 53 ) * 93 * + + 71
----
-349918

skipif mysql # not compatible
query I rowsort label-363
SELECT 41 + - - MIN ( ALL - 53 ) * 93 * + + 71
----
-349918

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-365
SELECT ALL + CAST( NULL AS SIGNED ) + 4 + + 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + CAST ( NULL AS INTEGER ) + 4 + + 50 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - 2 * CASE + ( 54 ) WHEN - 24 + CASE COUNT( * ) WHEN + ( - 82 ) THEN COUNT( * ) + 71 * + 68 ELSE - ( 36 ) END + 28 THEN + 74 + 56 END * - ( 85 ) + 28 * - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT - 2 * CASE + ( 54 ) WHEN - 24 + CASE COUNT ( * ) WHEN + ( - 82 ) THEN COUNT ( * ) + 71 * + 68 ELSE - ( 36 ) END + 28 THEN + 74 + 56 END * - ( 85 ) + 28 * - 45 col1
----
NULL

query I rowsort
SELECT 31 * - 19
----
-589

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

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - 6 * - 75 / + COUNT ( * )
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT 38 + + COUNT( * ) - + + 10 * 74 + - 71 + - 95 + 11 DIV + - COUNT( * ) - 56 * 65
----
-4518

skipif mysql # not compatible
query I rowsort label-369
SELECT 38 + + COUNT ( * ) - + + 10 * 74 + - 71 + - 95 + 11 / + - COUNT ( * ) - 56 * 65
----
-4518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-370
SELECT ALL - NULLIF ( - 85, - - COUNT( * ) - - + 93 ) + + CAST( NULL AS SIGNED ) * 98 * - 3 + - 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - NULLIF ( - 85, - - COUNT ( * ) - - + 93 ) + + CAST ( NULL AS INTEGER ) * 98 * - 3 + - 18 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT DISTINCT 13, COUNT( * ) + 55 AS col2
----
13
56

skipif mysql # not compatible
query II rowsort label-371
SELECT DISTINCT 13, COUNT ( * ) + 55 AS col2
----
13
56

query I rowsort
SELECT ALL + 33 + - 32
----
1

query I rowsort
SELECT 21 - 46 AS col2
----
-25

query II rowsort
SELECT - 17 AS col0, COALESCE ( - + 35, - 29 ) AS col2
----
-17
-35

query I rowsort
SELECT 63 + + 93 col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT DISTINCT - SUM( ALL - - 1 ) + - 97
----
-98

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT - SUM ( ALL - - 1 ) + - 97
----
-98

query II rowsort
SELECT ALL 72, ( - + 37 ) AS col2
----
72
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-378
SELECT 76 DIV - - COALESCE ( + ( + + ( 56 ) ), + 76, - CASE + 60 WHEN + - 82 THEN NULL ELSE - SUM( + 79 ) + + 69 END + - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-378
SELECT 76 / - - COALESCE ( + ( + + ( 56 ) ), + 76, - CASE + 60 WHEN + - 82 THEN NULL ELSE - SUM ( + 79 ) + + 69 END + - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT 47 * - COUNT( * ) * + 4
----
-188

skipif mysql # not compatible
query I rowsort label-379
SELECT 47 * - COUNT ( * ) * + 4
----
-188

query I rowsort
SELECT 53 + - - 59
----
112

query II rowsort
SELECT 44, 66 col2
----
44
66

query II rowsort
SELECT ALL 40, 24 AS col0
----
40
24

query I rowsort
SELECT ALL 80 * 87
----
6960

query I rowsort
SELECT DISTINCT + 17 * 51
----
867

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + MIN( - 47 ) + + + 21
----
-26

skipif mysql # not compatible
query I rowsort label-385
SELECT + MIN ( - 47 ) + + + 21
----
-26

query I rowsort
SELECT ALL + 42 - - 42 + 79
----
163

query I rowsort
SELECT 24 * 34 * + 80 * - 5 AS col0
----
-326400

query I rowsort
SELECT ALL - COALESCE ( + + 30, - 99 )
----
-30

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

query I rowsort
SELECT ALL - - 58 * - + 2 AS col2
----
-116

query I rowsort
SELECT 93 * - 33
----
-3069

query I rowsort
SELECT - 70 * + 64
----
-4480

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

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + COUNT ( * ) / 65 + COUNT ( * ) AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT COUNT( * ) * 83 + + - 60 * 53 + - + 46
----
-3143

skipif mysql # not compatible
query I rowsort label-395
SELECT COUNT ( * ) * 83 + + - 60 * 53 + - + 46
----
-3143

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

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

query I rowsort
SELECT DISTINCT 85 + - CASE + + ( + ( + - AVG ( ALL - 97 ) ) ) WHEN - 52 THEN - COALESCE ( + ( 41 ), - 60, - 3 / 46 + + 34, - 72 ) * 63 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT DISTINCT COUNT( * ) + - - MAX( - 85 ) col2, + COALESCE ( 45, - - 45 ) - + - COUNT( * ) * + - ( + + 21 ) * 85 + - 58 AS col2
----
-84
-1798

skipif mysql # not compatible
query II rowsort label-398
SELECT DISTINCT COUNT ( * ) + - - MAX ( - 85 ) col2, + COALESCE ( 45, - - 45 ) - + - COUNT ( * ) * + - ( + + 21 ) * 85 + - 58 AS col2
----
-84
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT 46 * + COUNT( * ) - + 18 - - 11 + + 39 + + COUNT( - 63 ) * + 27 * 48 AS col2
----
1374

skipif mysql # not compatible
query I rowsort label-399
SELECT 46 * + COUNT ( * ) - + 18 - - 11 + + 39 + + COUNT ( - 63 ) * + 27 * 48 AS col2
----
1374

query II rowsort
SELECT ALL 20 + 48, + 90 AS col2
----
68
90

query I rowsort
SELECT DISTINCT - 1 + - ( - - 68 ) * - + 79 + - + 68 AS col1
----
5303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-402
SELECT + MAX( + + 4 ) AS col1, - COALESCE ( CAST( 26 AS SIGNED ), + - CASE 89 WHEN + 64 THEN + 69 ELSE NULL END )
----
4
-26

skipif mysql # not compatible
query II rowsort label-402
SELECT + MAX ( + + 4 ) AS col1, - COALESCE ( CAST ( 26 AS INTEGER ), + - CASE 89 WHEN + 64 THEN + 69 ELSE NULL END )
----
4
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT 84 * + 48 + - COUNT( * ) - + - 27 * - 58 * - COUNT( * ) * + 77 * + - 87
----
-10486603

skipif mysql # not compatible
query I rowsort label-403
SELECT 84 * + 48 + - COUNT ( * ) - + - 27 * - 58 * - COUNT ( * ) * + 77 * + - 87
----
-10486603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT COALESCE ( COUNT( * ), 34 / 56, 63 ) * - + 32 * CAST( NULL AS SIGNED ) - + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT COALESCE ( COUNT ( * ), 34 / 56, 63 ) * - + 32 * CAST ( NULL AS INTEGER ) - + 71 AS col1
----
NULL

query I rowsort
SELECT ALL - 2 + - 60 + + - 19 col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-406
SELECT ALL - 84 - - 70 * + SUM( ALL CAST( + - 73 AS SIGNED ) ) + + 7 AS col1
----
-5187

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 84 - - 70 * + SUM ( ALL CAST ( + - 73 AS INTEGER ) ) + + 7 AS col1
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 56 * + COUNT( * ) * - 90 * 49 * 48 AS col0
----
-11854080

skipif mysql # not compatible
query I rowsort label-407
SELECT 56 * + COUNT ( * ) * - 90 * 49 * 48 AS col0
----
-11854080

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT ALL MAX( + 8 ) col1, - 44 + - 37
----
8
-81

skipif mysql # not compatible
query II rowsort label-408
SELECT ALL MAX ( + 8 ) col1, - 44 + - 37
----
8
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT DISTINCT - COUNT( ALL + + 79 ) * - 41
----
41

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - COUNT ( ALL + + 79 ) * - 41
----
41

query I rowsort
SELECT 82 * ( 96 )
----
7872

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-411
SELECT 88 DIV COUNT( * ), 9 + + 64 col0
----
88
73

skipif mysql # not compatible
query II rowsort label-411
SELECT 88 / COUNT ( * ), 9 + + 64 col0
----
88
73

query II rowsort
SELECT DISTINCT - 67 * + - 22 col0, + COALESCE ( - 78, + 96 )
----
1474
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-413
SELECT - - COUNT( * ) DIV COUNT( * ) + - 77 + 81 * + 75 AS col2, CAST( NULL AS SIGNED ) + - 96
----
5999
NULL

skipif mysql # not compatible
query II rowsort label-413
SELECT - - COUNT ( * ) / COUNT ( * ) + - 77 + 81 * + 75 AS col2, CAST ( NULL AS INTEGER ) + - 96
----
5999
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - - NULLIF ( + 30, - MAX( - 49 ) ) + + - COUNT( * ) + 78
----
107

skipif mysql # not compatible
query I rowsort label-414
SELECT - - NULLIF ( + 30, - MAX ( - 49 ) ) + + - COUNT ( * ) + 78
----
107

query I rowsort
SELECT - 14 + - - 97 - - 2 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT + COALESCE ( + + ( 2 ), + + ( - + NULLIF ( + COUNT( * ), - + 61 ) ) - 10 + - 82 * - 13, + - 41 )
----
2

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + COALESCE ( + + ( 2 ), + + ( - + NULLIF ( + COUNT ( * ), - + 61 ) ) - 10 + - 82 * - 13, + - 41 )
----
2

query I rowsort
SELECT - 41 + - 77 AS col1
----
-118

query I rowsort
SELECT + - 75 - - 34
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-419
SELECT ALL - 11 + 10 + - CAST( + - COUNT( * ) AS SIGNED ) + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL - 11 + 10 + - CAST ( + - COUNT ( * ) AS INTEGER ) + 58 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT 6 * - 36 DIV - 12 + - + 14 + + - ( + 27 ) + COUNT( * ) * 99 DIV - 93 + + 20 + 22 * 76 * - 61
----
-101996

skipif mysql # not compatible
query I rowsort label-420
SELECT 6 * - 36 / - 12 + - + 14 + + - ( + 27 ) + COUNT ( * ) * 99 / - 93 + + 20 + 22 * 76 * - 61
----
-101996

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

skipif mysql # not compatible
query I rowsort label-421
SELECT MIN ( - CAST ( + + 31 AS INTEGER ) )
----
-31

query I rowsort
SELECT ALL + - 75 * - 9 * - 82 + + 22 + - 94 + ( - ( - + 57 ) )
----
-55365

query I rowsort
SELECT - 44 + + - 67
----
-111

query I rowsort
SELECT DISTINCT + 30 * - 95 + + 57 AS col0
----
-2793

query I rowsort
SELECT DISTINCT 44 * + 2 AS col0
----
88

query II rowsort
SELECT + COALESCE ( + + 36, + - 90 ) AS col0, + 53 AS col1
----
36
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-427
SELECT ALL + 92, CASE - 32 WHEN + AVG ( - + 60 ) + 93 * - 54 + + + MIN( ALL + CAST( NULL AS SIGNED ) ) / - 50 * + 68 THEN NULL WHEN 54 + + - 18 THEN - 63 WHEN - 6 + MIN( DISTINCT 18 ) THEN NULL ELSE 91 END + 6 AS col2
----
92
97

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL + 92, CASE - 32 WHEN + AVG ( - + 60 ) + 93 * - 54 + + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) / - 50 * + 68 THEN NULL WHEN 54 + + - 18 THEN - 63 WHEN - 6 + MIN ( DISTINCT 18 ) THEN NULL ELSE 91 END + 6 AS col2
----
92
97

query I rowsort
SELECT - 20 + + 59
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT - 79 DIV + - 39
----
2

skipif mysql # not compatible
query I rowsort label-429
SELECT - 79 / + - 39
----
2

query I rowsort
SELECT + 96 * 14
----
1344

query I rowsort
SELECT CASE + 65 WHEN 14 THEN NULL ELSE 94 END AS col0
----
94

query I rowsort
SELECT DISTINCT 8 * - 45 AS col2
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL 0 * - + 19 * - COUNT( * ) - - COALESCE ( + ( COUNT( * ) ), + 88 + + - NULLIF ( 76, - AVG ( + 73 ) / 94 + + - 27 * 50 ) + - 15 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL 0 * - + 19 * - COUNT ( * ) - - COALESCE ( + ( COUNT ( * ) ), + 88 + + - NULLIF ( 76, - AVG ( + 73 ) / 94 + + - 27 * 50 ) + - 15 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT + NULLIF ( - NULLIF ( - + COUNT( * ), + CAST( NULL AS SIGNED ) + AVG ( DISTINCT 77 ) * 27 ), + NULLIF ( - - 85, + - 43 / - CAST( 67 AS SIGNED ) - + + 99 ) / 96 - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-434
SELECT + NULLIF ( - NULLIF ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT 77 ) * 27 ), + NULLIF ( - - 85, + - 43 / - CAST ( 67 AS INTEGER ) - + + 99 ) / 96 - 71 )
----
1

query I rowsort
SELECT ALL 6 * 96 * + 3 - - 49
----
1777

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

skipif mysql # not compatible
query I rowsort label-436
SELECT + COUNT ( * ) / + 17
----
0

query I rowsort
SELECT + 56 * + - 40 + + 85
----
-2155

query I rowsort
SELECT + 42 + + 70
----
112

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

query I rowsort
SELECT + 89 - + 75
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT MAX( ALL ( - 35 ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-441
SELECT MAX ( ALL ( - 35 ) ) AS col0
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT COUNT( DISTINCT - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-443
SELECT COUNT ( DISTINCT - 41 )
----
1

query I rowsort
SELECT - 45 + + 95 col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT ALL + COUNT( * ), - 66 * - - 65 AS col1
----
1
-4290

skipif mysql # not compatible
query II rowsort label-445
SELECT ALL + COUNT ( * ), - 66 * - - 65 AS col1
----
1
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT + SUM( ALL - + 58 ) * - - 66
----
-3828

skipif mysql # not compatible
query I rowsort label-446
SELECT + SUM ( ALL - + 58 ) * - - 66
----
-3828

query II rowsort
SELECT DISTINCT 84 AS col2, NULLIF ( 37, - - 85 + 7 ) AS col0
----
84
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-449
SELECT DISTINCT - ( + - 64 ) + - 32 DIV + 70 - - 67 + + 76 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - ( + - 64 ) + - 32 / + 70 - - 67 + + 76 AS col2
----
207

query I rowsort
SELECT ALL + + 83 * - - 34
----
2822

query I rowsort
SELECT - + 95 * - + 13 AS col0
----
1235

query I rowsort
SELECT DISTINCT 4 * - - 19 - - - 69
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - MAX( ALL - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-453
SELECT - MAX ( ALL - 9 )
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-455
SELECT ALL + - 91 + - - COUNT( * ) - - + CAST( 96 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL + - 91 + - - COUNT ( * ) - - + CAST ( 96 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-456
SELECT - 61 + + COALESCE ( - 45, 75 DIV + - COUNT( * ) + 66 - - 48 )
----
-106

skipif mysql # not compatible
query I rowsort label-456
SELECT - 61 + + COALESCE ( - 45, 75 / + - COUNT ( * ) + 66 - - 48 )
----
-106

query I rowsort
SELECT - 5 * + 27
----
-135

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

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT ALL - - 78 + 19 DIV - 98
----
78

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - - 78 + 19 / - 98
----
78

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

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

query I rowsort
SELECT - 28 * + 64
----
-1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-462
SELECT ALL + + COUNT( DISTINCT - - CAST( 90 AS SIGNED ) ) DIV 35, - 14 + - 86 AS col0
----
0
-100

skipif mysql # not compatible
query II rowsort label-462
SELECT ALL + + COUNT ( DISTINCT - - CAST ( 90 AS INTEGER ) ) / 35, - 14 + - 86 AS col0
----
0
-100

query I rowsort
SELECT - + 94 * + - 72 * - 90 + + 86
----
-609034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-464
SELECT ALL - CAST( NULL AS SIGNED ) / 39 + - 27 + 67 * 3 + + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - CAST ( NULL AS INTEGER ) / 39 + - 27 + 67 * 3 + + + 99 AS col1
----
NULL

query I rowsort
SELECT + + 79 col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-466
SELECT ALL 84 / + - 66 / - CAST( NULL AS DECIMAL ) + - 52 AS col2, + CAST( NULL AS SIGNED ) + - + 21 + 88 + - 69 * - 16 * - 75 + - 73 * - - COUNT( * ) * - 23 + COUNT( * ) / - 31 * + 91
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL 84 / + - 66 / - CAST ( NULL AS REAL ) + - 52 AS col2, + CAST ( NULL AS INTEGER ) + - + 21 + 88 + - 69 * - 16 * - 75 + - 73 * - - COUNT ( * ) * - 23 + COUNT ( * ) / - 31 * + 91
----
NULL
NULL

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

query I rowsort
SELECT - 79 + + + 89
----
10

query I rowsort
SELECT + COALESCE ( + - 49, - - ( - 63 ) * + 73 ) AS col1
----
-49

query I rowsort
SELECT 75 * - 49 + 24
----
-3651

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-472
SELECT ALL NULLIF ( 22, - CAST( - 94 AS SIGNED ) ) DIV ( - 94 ) + - 21 - - - 37 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL NULLIF ( 22, - CAST ( - 94 AS INTEGER ) ) / ( - 94 ) + - 21 - - - 37 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-473
SELECT + 52 * - CAST( + COUNT( * ) AS SIGNED ) - NULLIF ( 45, - - 63 )
----
-97

skipif mysql # not compatible
query I rowsort label-473
SELECT + 52 * - CAST ( + COUNT ( * ) AS INTEGER ) - NULLIF ( 45, - - 63 )
----
-97

query I rowsort
SELECT + 1 + - - 15 * + 76
----
1141

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT DISTINCT + ( + ( + COUNT( ALL + 43 ) ) ) AS col0, - 92 AS col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT + ( + ( + COUNT ( ALL + 43 ) ) ) AS col0, - 92 AS col2
----
1
-92

query I rowsort
SELECT + 89 * - 78 + - 3
----
-6945

query I rowsort
SELECT ( - 10 ) * - 23 * - - 95 AS col1
----
21850

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

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

query I rowsort
SELECT DISTINCT - 27 + - 73 * + - 56 * - 37 * ( + - 94 )
----
14218037

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT - COALESCE ( - 81, - - 55, + - 81 * MAX( + 27 ) DIV - ( 1 ) + - 26, COUNT( * ) * - 15 )
----
81

skipif mysql # not compatible
query I rowsort label-480
SELECT - COALESCE ( - 81, - - 55, + - 81 * MAX ( + 27 ) / - ( 1 ) + - 26, COUNT ( * ) * - 15 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL COUNT( * ) + - - MAX( ALL 4 ) - 66
----
-61

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL COUNT ( * ) + - - MAX ( ALL 4 ) - 66
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT ALL CASE - + COUNT( * ) WHEN - 44 THEN - 59 ELSE NULL END + CAST( + 85 AS SIGNED ) + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL CASE - + COUNT ( * ) WHEN - 44 THEN - 59 ELSE NULL END + CAST ( + 85 AS INTEGER ) + - 91 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-483
SELECT 1 + 93 AS col2, - CAST( NULL AS SIGNED ) - + + 30
----
94
NULL

skipif mysql # not compatible
query II rowsort label-483
SELECT 1 + 93 AS col2, - CAST ( NULL AS INTEGER ) - + + 30
----
94
NULL

query I rowsort
SELECT - 76 + 43 AS col0
----
-33

query I rowsort
SELECT ALL + 53 + - 66 col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT - 89 + - SUM( + 13 ) * - - 44
----
-661

skipif mysql # not compatible
query I rowsort label-486
SELECT - 89 + - SUM ( + 13 ) * - - 44
----
-661

query I rowsort
SELECT - 59 * - + 15 * + 63 AS col1
----
55755

onlyif mysql # DIV for integer division: 
query II rowsort label-488
SELECT + 98 + - 21, 80 + + COALESCE ( 96, + + 87 + - 29, + 92 ) DIV 3 AS col1
----
77
112

skipif mysql # not compatible
query II rowsort label-488
SELECT + 98 + - 21, 80 + + COALESCE ( 96, + + 87 + - 29, + 92 ) / 3 AS col1
----
77
112

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-490
SELECT ALL + COUNT( * ) * - - 48 * - 61 DIV + COUNT( DISTINCT + 54 )
----
-2928

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + COUNT ( * ) * - - 48 * - 61 / + COUNT ( DISTINCT + 54 )
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + ( ( + CASE - + 85 WHEN - - 89 THEN NULL ELSE + COUNT( * ) END ) ) + + 68 - + AVG ( ALL - + 3 ) * - 73 + CASE - - NULLIF ( - 89, + 25 + 77 ) WHEN 21 * - 35 THEN 30 + NULLIF ( - 24, + 31 ) END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + ( ( + CASE - + 85 WHEN - - 89 THEN NULL ELSE + COUNT ( * ) END ) ) + + 68 - + AVG ( ALL - + 3 ) * - 73 + CASE - - NULLIF ( - 89, + 25 + 77 ) WHEN 21 * - 35 THEN 30 + NULLIF ( - 24, + 31 ) END * 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT DISTINCT SUM( + 54 ) AS col2, CASE + 59 WHEN - + COALESCE ( + CASE + 39 WHEN - 53 * + COUNT( + 13 ) THEN + NULLIF ( + 67, 64 ) WHEN + 19 THEN NULL ELSE 18 * COUNT( + 82 ) END, 63 * + COUNT( * ) + + 2 / + 99 ) THEN - MIN( + 69 ) * - 58 ELSE COUNT( 9 ) END
----
54
1

skipif mysql # not compatible
query II rowsort label-492
SELECT DISTINCT SUM ( + 54 ) AS col2, CASE + 59 WHEN - + COALESCE ( + CASE + 39 WHEN - 53 * + COUNT ( + 13 ) THEN + NULLIF ( + 67, 64 ) WHEN + 19 THEN NULL ELSE 18 * COUNT ( + 82 ) END, 63 * + COUNT ( * ) + + 2 / + 99 ) THEN - MIN ( + 69 ) * - 58 ELSE COUNT ( 9 ) END
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT + ( + COUNT( * ) ) + + MAX( + - 59 ) + - 18 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-493
SELECT + ( + COUNT ( * ) ) + + MAX ( + - 59 ) + - 18 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL - COUNT( * ) - + - 60
----
59

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - COUNT ( * ) - + - 60
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - ( - - COUNT( 66 ) ) + ( + 92 )
----
91

skipif mysql # not compatible
query I rowsort label-496
SELECT - ( - - COUNT ( 66 ) ) + ( + 92 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-497
SELECT - 45, - 83 / + + CAST( NULL AS SIGNED ) AS col1, + 71 AS col1
----
-45
NULL
71

skipif mysql # not compatible
query III rowsort label-497
SELECT - 45, - 83 / + + CAST ( NULL AS INTEGER ) AS col1, + 71 AS col1
----
-45
NULL
71

query I rowsort
SELECT 67 + + 80 + CASE - 57 WHEN - 29 * + 16 THEN NULL WHEN + - 19 THEN NULL ELSE 91 END * 49 + - + CASE - 74 WHEN - 7 / - + 25 * - + AVG ( DISTINCT + 11 ) THEN NULL ELSE + 19 + - 61 END + 5
----
4653

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT 47 DIV - + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT 47 / - + 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT 82 * + - 70 * - + COALESCE ( 37, + COUNT( * ) * - ( 63 ) ) AS col1
----
212380

skipif mysql # not compatible
query I rowsort label-500
SELECT 82 * + - 70 * - + COALESCE ( 37, + COUNT ( * ) * - ( 63 ) ) AS col1
----
212380

query I rowsort
SELECT ALL NULLIF ( - - 54, - + 43 ) * 5
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-502
SELECT ALL - COALESCE ( 25, MIN( ALL - 14 ) * + COUNT( * ) + + - COUNT( * ), + 99, + 91 * 21 - + 35 + - + 89 * - 41 + + 78 DIV 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL - COALESCE ( 25, MIN ( ALL - 14 ) * + COUNT ( * ) + + - COUNT ( * ), + 99, + 91 * 21 - + 35 + - + 89 * - 41 + + 78 / 25 ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT ALL - 25 DIV + 98 * 75
----
0

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - 25 / + 98 * 75
----
0

query I rowsort
SELECT + 85 * + + 34 + - + 72 * 17
----
1666

query I rowsort
SELECT ALL + 53 * + 11
----
583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + 94 * - - COALESCE ( - ( 10 ), + 6 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + 94 * - - COALESCE ( - ( 10 ), + 6 ) ) AS col0
----
NULL

query II rowsort
SELECT 2, + 96 AS col1
----
2
96

query I rowsort
SELECT 62 + + 86 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT COUNT( * ) + - - 89 * - - 37
----
3294

skipif mysql # not compatible
query I rowsort label-509
SELECT COUNT ( * ) + - - 89 * - - 37
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + MIN( ALL - + 74 ) * - + 64
----
4736

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + MIN ( ALL - + 74 ) * - + 64
----
4736

query I rowsort
SELECT 72 * - + 26 AS col1
----
-1872

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT 26 * 95 + 26 DIV - - 16
----
2471

skipif mysql # not compatible
query I rowsort label-513
SELECT 26 * 95 + 26 / - - 16
----
2471

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ( MIN( ALL - 11 ) ) * 40 * COALESCE ( 18, + MAX( ALL - 15 ) ) + - 10
----
-7930

skipif mysql # not compatible
query I rowsort label-514
SELECT ( MIN ( ALL - 11 ) ) * 40 * COALESCE ( 18, + MAX ( ALL - 15 ) ) + - 10
----
-7930

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT - 8 + - - CASE + 70 WHEN - - 70 THEN NULL WHEN - - 23 / - 68 THEN NULL ELSE 35 + + - 51 * - - COUNT( * ) * + 90 END + + - 82 - - COALESCE ( - 44, + 1 * ( 4 ) ) * + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - 8 + - - CASE + 70 WHEN - - 70 THEN NULL WHEN - - 23 / - 68 THEN NULL ELSE 35 + + - 51 * - - COUNT ( * ) * + 90 END + + - 82 - - COALESCE ( - 44, + 1 * ( 4 ) ) * + 16 AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 15, - COALESCE ( + 59, - + 43 ) ) + + + 54 AS col0
----
39

query I rowsort
SELECT + + 19 * - 53 + - 71 AS col0
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT + + 49 * - COALESCE ( + ( COUNT( * ) ), - - COALESCE ( - - 89, - 28 ) * 60 )
----
-49

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + + 49 * - COALESCE ( + ( COUNT ( * ) ), - - COALESCE ( - - 89, - 28 ) * 60 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL 38 / - CASE - 26 WHEN - CASE 53 WHEN 76 THEN + - 6 * - 2 END THEN + - COALESCE ( + 66, - - 35 ) WHEN + 97 THEN + 7 WHEN 0 * + 15 * + COUNT( * ) + 65 THEN 74 + 75 END + + 84 * + NULLIF ( 57, + CASE 67 WHEN - 61 THEN NULLIF ( 84, COUNT( ALL + 22 ) ) - - 85 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL 38 / - CASE - 26 WHEN - CASE 53 WHEN 76 THEN + - 6 * - 2 END THEN + - COALESCE ( + 66, - - 35 ) WHEN + 97 THEN + 7 WHEN 0 * + 15 * + COUNT ( * ) + 65 THEN 74 + 75 END + + 84 * + NULLIF ( 57, + CASE 67 WHEN - 61 THEN NULLIF ( 84, COUNT ( ALL + 22 ) ) - - 85 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-520
SELECT + 14, CAST( NULL AS SIGNED ) * + MIN( 37 ) * - 63 + 24 + ( - 10 ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-520
SELECT + 14, CAST ( NULL AS INTEGER ) * + MIN ( 37 ) * - 63 + 24 + ( - 10 ) AS col0
----
14
NULL

query I rowsort
SELECT ALL - 82 + + 28 * + 69 + - 39
----
1811

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-522
SELECT ALL 4 DIV SUM( ALL - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL 4 / SUM ( ALL - 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT SUM( DISTINCT 85 )
----
85

skipif mysql # not compatible
query I rowsort label-523
SELECT SUM ( DISTINCT 85 )
----
85

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

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

query I rowsort
SELECT - 96 * 52
----
-4992

query I rowsort
SELECT ALL + + 94 + - 4
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT ALL CASE + 19 WHEN + - 97 * - 16 / - + 41 - 15 / 48 + - ( + 12 ) THEN NULL WHEN + - 92 + - CASE - + AVG ( + 46 ) WHEN - CAST( NULL AS SIGNED ) / 74 THEN 66 * 39 + - 47 ELSE - CAST( COUNT( * ) AS SIGNED ) * - 86 END * 88 THEN NULL ELSE 20 * 54 END
----
1080

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL CASE + 19 WHEN + - 97 * - 16 / - + 41 - 15 / 48 + - ( + 12 ) THEN NULL WHEN + - 92 + - CASE - + AVG ( + 46 ) WHEN - CAST ( NULL AS INTEGER ) / 74 THEN 66 * 39 + - 47 ELSE - CAST ( COUNT ( * ) AS INTEGER ) * - 86 END * 88 THEN NULL ELSE 20 * 54 END
----
1080

query I rowsort
SELECT DISTINCT - 99 - - 55
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-529
SELECT DISTINCT + 59 AS col1, CAST( NULL AS DECIMAL ) * + + 30 * - - 52 * - ( + 64 ) AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-529
SELECT DISTINCT + 59 AS col1, CAST ( NULL AS REAL ) * + + 30 * - - 52 * - ( + 64 ) AS col0
----
59
NULL

query I rowsort
SELECT ALL 63 - - 74 col0
----
137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT CASE + 60 WHEN - COUNT( * ) THEN - 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT CASE + 60 WHEN - COUNT ( * ) THEN - 21 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL + COUNT ( * ) - + 24 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-534
SELECT 69, - ( + COUNT( * ) ) + - 95 AS col2
----
69
-96

skipif mysql # not compatible
query II rowsort label-534
SELECT 69, - ( + COUNT ( * ) ) + - 95 AS col2
----
69
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT ( COUNT( * ) ) * + 24 col2
----
24

skipif mysql # not compatible
query I rowsort label-535
SELECT ( COUNT ( * ) ) * + 24 col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-536
SELECT + CASE - - COUNT( DISTINCT + 54 ) WHEN + 88 THEN + + 18 + 99 + - + 86 * + CAST( + COUNT( * ) AS DECIMAL ) * + ( + - 55 ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT + CASE - - COUNT ( DISTINCT + 54 ) WHEN + 88 THEN + + 18 + 99 + - + 86 * + CAST ( + COUNT ( * ) AS REAL ) * + ( + - 55 ) * - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT 76 * - SUM( 20 )
----
-1520

skipif mysql # not compatible
query I rowsort label-537
SELECT 76 * - SUM ( 20 )
----
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-538
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( ALL - 18 ) / 60 * + - COUNT( * ) + + 45 + - 76 + - COUNT( - - 93 ), + 56 AS col1
----
NULL
56

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( ALL - 18 ) / 60 * + - COUNT ( * ) + + 45 + - 76 + - COUNT ( - - 93 ), + 56 AS col1
----
NULL
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-539
SELECT + COALESCE ( + - 36, + COUNT( * ), 46 * CASE COUNT( * ) WHEN + + COUNT( * ) - + + 30 THEN 31 END ) DIV + 10 + - CAST( - + CAST( - 89 AS SIGNED ) AS SIGNED ) + + 5 * - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) DIV COUNT( * ) ) DIV 32 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-539
SELECT + COALESCE ( + - 36, + COUNT ( * ), 46 * CASE COUNT ( * ) WHEN + + COUNT ( * ) - + + 30 THEN 31 END ) / + 10 + - CAST ( - + CAST ( - 89 AS INTEGER ) AS INTEGER ) + + 5 * - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) / COUNT ( * ) ) / 32 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-540
SELECT + SUM( - + 97 ), - CAST( NULL AS SIGNED ) * + 12 * 85 AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-540
SELECT + SUM ( - + 97 ), - CAST ( NULL AS INTEGER ) * + 12 * 85 AS col0
----
-97
NULL

query I rowsort
SELECT + 66 + 69 * 64 - - + 44 * - 76
----
1138

query II rowsort
SELECT ALL + 36 AS col1, ( + 9 ) AS col2
----
36
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT CASE 51 WHEN + - 72 THEN - 41 * - 19 - - CAST( + 69 AS SIGNED ) * - + 48 + + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT CASE 51 WHEN + - 72 THEN - 41 * - 19 - - CAST ( + 69 AS INTEGER ) * - + 48 + + 62 END
----
NULL

query I rowsort
SELECT COALESCE ( - + 7, 11 )
----
-7

query I rowsort
SELECT ALL + 35 * + 48 + - ( + 92 )
----
1588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-546
SELECT ALL - CAST( + 60 AS SIGNED ) * + 77 + 50 + + - 72 AS col2
----
-4642

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL - CAST ( + 60 AS INTEGER ) * + 77 + 50 + + - 72 AS col2
----
-4642

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT COUNT( ALL - 22 ) * ( - - 13 ) + - COUNT( DISTINCT + 33 ) * 54 + + + 26 - - 96
----
81

skipif mysql # not compatible
query I rowsort label-547
SELECT COUNT ( ALL - 22 ) * ( - - 13 ) + - COUNT ( DISTINCT + 33 ) * 54 + + + 26 - - 96
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT - MIN( - + 88 ) DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-548
SELECT - MIN ( - + 88 ) / + 26
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT - 5 DIV 75 DIV + - 73 + - + COUNT( * ) * + - 23 - - 50 * 70 * + COUNT( * )
----
3523

skipif mysql # not compatible
query I rowsort label-549
SELECT - 5 / 75 / + - 73 + - + COUNT ( * ) * + - 23 - - 50 * 70 * + COUNT ( * )
----
3523

query II rowsort
SELECT 49 AS col0, 33 + + 86 col0
----
49
119

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT + - COUNT( * ) * MIN( ALL 64 ) + MIN( DISTINCT - 12 ) * + - MIN( ALL - ( - 10 ) )
----
56

skipif mysql # not compatible
query I rowsort label-551
SELECT + - COUNT ( * ) * MIN ( ALL 64 ) + MIN ( DISTINCT - 12 ) * + - MIN ( ALL - ( - 10 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + + CASE - 22 WHEN + - COUNT( * ) THEN - MAX( DISTINCT - COALESCE ( 34, - - 84 - NULLIF ( 30, 65 ) - - 94 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT + + CASE - 22 WHEN + - COUNT ( * ) THEN - MAX ( DISTINCT - COALESCE ( 34, - - 84 - NULLIF ( 30, 65 ) - - 94 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-553
SELECT - + 17 * + - COUNT( * ) AS col1, + 15 AS col0
----
17
15

skipif mysql # not compatible
query II rowsort label-553
SELECT - + 17 * + - COUNT ( * ) AS col1, + 15 AS col0
----
17
15

query III rowsort
SELECT + - 31 AS col0, 44 col2, + 78
----
-31
44
78

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-556
SELECT COUNT( * ) col2, - 29 + - + 51 AS col0
----
1
-80

skipif mysql # not compatible
query II rowsort label-556
SELECT COUNT ( * ) col2, - 29 + - + 51 AS col0
----
1
-80

query I rowsort
SELECT DISTINCT + 70 - 26
----
44

query I rowsort
SELECT ALL NULLIF ( 74, + 68 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT + MIN( + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-559
SELECT + MIN ( + 74 )
----
74

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

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

query I rowsort
SELECT - + 71 + - 50 col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT - 97 + 61 + - COUNT( * ) * - + 24
----
-12

skipif mysql # not compatible
query I rowsort label-562
SELECT - 97 + 61 + - COUNT ( * ) * - + 24
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT - 32 DIV + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-563
SELECT - 32 / + COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT ALL 44 * - 64
----
-2816

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

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT + ( MIN( 65 ) ) + + 9 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-566
SELECT + ( MIN ( 65 ) ) + + 9 AS col0
----
74

query I rowsort
SELECT ALL 38 * + + 9 * + 77
----
26334

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT - 80 * + NULLIF ( + ( 29 ), + 5 * + - CASE - 34 WHEN + 23 THEN + - 81 + COUNT( * ) END + + COALESCE ( - AVG ( + 53 ), + 22 * - - 72 + 77 ) * - 73 * COALESCE ( 47 * + 31, - 99 ) + - 99 ) * - 70
----
162400

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT - 80 * + NULLIF ( + ( 29 ), + 5 * + - CASE - 34 WHEN + 23 THEN + - 81 + COUNT ( * ) END + + COALESCE ( - AVG ( + 53 ), + 22 * - - 72 + 77 ) * - 73 * COALESCE ( 47 * + 31, - 99 ) + - 99 ) * - 70
----
162400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL CAST( - 22 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL CAST ( - 22 AS INTEGER ) AS col2
----
-22

query I rowsort
SELECT DISTINCT 43 + - 37 AS col2
----
6

query II rowsort
SELECT ALL 2 * + + 37 col1, + 75 * + 70 - 69 AS col0
----
74
5181

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT - SUM( DISTINCT 9 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-572
SELECT - SUM ( DISTINCT 9 ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + 72 + - - 28 + - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-573
SELECT + 72 + - - 28 + - COUNT ( * )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-574
SELECT CAST( 82 AS SIGNED ) col1, + COUNT( * ) * + 30 + - 28
----
82
2

skipif mysql # not compatible
query II rowsort label-574
SELECT CAST ( 82 AS INTEGER ) col1, + COUNT ( * ) * + 30 + - 28
----
82
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 2 + MIN( + COALESCE ( - 72, 26, + + 96 ) ) + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 2 + MIN ( + COALESCE ( - 72, 26, + + 96 ) ) + 60 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), 27 * 46 ) AS col2
----
1242

skipif mysql # not compatible
query I rowsort label-576
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), 27 * 46 ) AS col2
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-577
SELECT ALL - 8 DIV + COUNT( * ) + + COALESCE ( + 26, - 50 * + COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - 8 / + COUNT ( * ) + + COALESCE ( + 26, - 50 * + COUNT ( * ) )
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-578
SELECT DISTINCT + 25 DIV + CAST( - 15 AS SIGNED ) + - NULLIF ( 30, - 20 )
----
-31

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT + 25 / + CAST ( - 15 AS INTEGER ) + - NULLIF ( 30, - 20 )
----
-31

query I rowsort
SELECT + 12 * - CASE - - 19 WHEN 89 * - - 4 THEN + 75 END
----
NULL

query I rowsort
SELECT ( - 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT + 1 DIV - 53 + - - 54
----
54

skipif mysql # not compatible
query I rowsort label-581
SELECT + 1 / - 53 + - - 54
----
54

query I rowsort
SELECT - - ( - 32 ) * - 47 * - + 75 col1
----
-112800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT + + ( + - SUM( - + 77 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT + + ( + - SUM ( - + 77 ) ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-585
SELECT ALL + COUNT( ALL + + 89 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-585
SELECT ALL + COUNT ( ALL + + 89 ), COUNT ( * )
----
1
1

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

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

query I rowsort
SELECT - + 88 * + + 49 + - - 48
----
-4264

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT - + ( - + 72 ) * + COALESCE ( + + 82, - 24 DIV - AVG ( + 66 ) - 74 * 42 + + 92, - 93 )
----
5904

skipif mysql # not compatible
query I rowsort label-590
SELECT - + ( - + 72 ) * + COALESCE ( + + 82, - 24 / - AVG ( + 66 ) - 74 * 42 + + 92, - 93 )
----
5904

onlyif mysql # DIV for integer division: 
query II rowsort label-591
SELECT ALL + 30 DIV 71 AS col0, - 26 * 66 AS col1
----
0
-1716

skipif mysql # not compatible
query II rowsort label-591
SELECT ALL + 30 / 71 AS col0, - 26 * 66 AS col1
----
0
-1716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-592
SELECT ALL + COALESCE ( + - 3, - + 1, + + ( - + CAST( NULL AS SIGNED ) ) DIV - SUM( + + ( + 98 ) ) - COUNT( * ) + + 76 * + 97 * - + 31 - - - 46 * + + 83 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + COALESCE ( + - 3, - + 1, + + ( - + CAST ( NULL AS INTEGER ) ) / - SUM ( + + ( + 98 ) ) - COUNT ( * ) + + 76 * + 97 * - + 31 - - - 46 * + + 83 ) AS col0
----
-3

query I rowsort
SELECT - - 61 * + 58 + 89
----
3627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT - 14 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT - 14 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT - 42 + - 79 + + 49 * - + COUNT( * )
----
-170

skipif mysql # not compatible
query I rowsort label-595
SELECT - 42 + - 79 + + 49 * - + COUNT ( * )
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-596
SELECT DISTINCT - 12 + + CAST( + 47 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - 12 + + CAST ( + 47 AS INTEGER )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT 85 DIV + + 21
----
4

skipif mysql # not compatible
query I rowsort label-597
SELECT 85 / + + 21
----
4

query I rowsort
SELECT 92 * + + 23 col0
----
2116

query I rowsort
SELECT ALL - 67 + - - 13
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-600
SELECT 18, COUNT( * ) DIV - + 96 AS col2
----
18
0

skipif mysql # not compatible
query II rowsort label-600
SELECT 18, COUNT ( * ) / - + 96 AS col2
----
18
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-601
SELECT 75 DIV 63 DIV - 62 AS col0, 39 * ( - 73 ) AS col0, - + COUNT( + + 61 ) AS col2
----
0
-2847
-1

skipif mysql # not compatible
query III rowsort label-601
SELECT 75 / 63 / - 62 AS col0, 39 * ( - 73 ) AS col0, - + COUNT ( + + 61 ) AS col2
----
0
-2847
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT 81 - + 53 * + - ( CAST( NULL AS SIGNED ) ) / - MIN( + 82 ) + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT 81 - + 53 * + - ( CAST ( NULL AS INTEGER ) ) / - MIN ( + 82 ) + + 68 AS col2
----
NULL

query II rowsort
SELECT - 19 AS col1, 22 * + 43
----
-19
946

query I rowsort
SELECT DISTINCT - 49 + 51 AS col1
----
2

query I rowsort
SELECT DISTINCT 83 * - ( ( - - 60 ) ) AS col0
----
-4980

query I rowsort
SELECT DISTINCT ( - 13 ) + + + 88 col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-607
SELECT ALL - 61 AS col2, ( - - 8 ) * - SUM( - 43 ) + 7 * - ( + 58 ) AS col1
----
-61
-62

skipif mysql # not compatible
query II rowsort label-607
SELECT ALL - 61 AS col2, ( - - 8 ) * - SUM ( - 43 ) + 7 * - ( + 58 ) AS col1
----
-61
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT 81 * - 31 * - COUNT( * )
----
2511

skipif mysql # not compatible
query I rowsort label-608
SELECT 81 * - 31 * - COUNT ( * )
----
2511

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT ALL - + NULLIF ( + COUNT( * ), 50 ) col1, + 34
----
-1
34

skipif mysql # not compatible
query II rowsort label-610
SELECT ALL - + NULLIF ( + COUNT ( * ), 50 ) col1, + 34
----
-1
34

query II rowsort
SELECT ALL - - 32, 11 + - 65 AS col0
----
32
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-612
SELECT DISTINCT - 12 * - - CAST( + 94 AS SIGNED )
----
-1128

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - 12 * - - CAST ( + 94 AS INTEGER )
----
-1128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-613
SELECT ALL - NULLIF ( + NULLIF ( - COUNT( ALL - - 33 ), CASE 30 WHEN + - COUNT( * ) THEN NULL ELSE 63 END ), 71 ) DIV 63 + + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - NULLIF ( + NULLIF ( - COUNT ( ALL - - 33 ), CASE 30 WHEN + - COUNT ( * ) THEN NULL ELSE 63 END ), 71 ) / 63 + + - 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT NULLIF ( - 54, - - COUNT( * ) ) DIV + 24 + 75 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-614
SELECT NULLIF ( - 54, - - COUNT ( * ) ) / + 24 + 75 AS col2
----
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT - ( CAST( - 91 AS SIGNED ) ) * - 35
----
-3185

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT - ( CAST ( - 91 AS INTEGER ) ) * - 35
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT + - 97 * + 73 * + COUNT( * ) * + - 23 + + - ( - 76 ) * + + 44 * - 96 + 56 - - 3 + + ( - - COUNT( * ) ) + - + 26 * ( - 35 ) * 69 + + 31 AS col2
----
-95280

skipif mysql # not compatible
query I rowsort label-617
SELECT + - 97 * + 73 * + COUNT ( * ) * + - 23 + + - ( - 76 ) * + + 44 * - 96 + 56 - - 3 + + ( - - COUNT ( * ) ) + - + 26 * ( - 35 ) * 69 + + 31 AS col2
----
-95280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-618
SELECT + 26 * CAST( NULL AS SIGNED ) * 68, CASE - + CAST( NULL AS SIGNED ) WHEN 46 THEN + 23 END + - 71 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-618
SELECT + 26 * CAST ( NULL AS INTEGER ) * 68, CASE - + CAST ( NULL AS INTEGER ) WHEN 46 THEN + 23 END + - 71 AS col0
----
NULL
NULL

query I rowsort
SELECT - + 11 * + + 89 + 55 * + - 1 * - 28 - + + 18 + + + 60 AS col1
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-620
SELECT ALL + 69 / COUNT( * ) * + + ( + - 62 ) + - CASE + - 28 WHEN ( - 53 ) * + - 60 + 41 THEN - - ( CAST( NULL AS SIGNED ) ) END + - CAST( + 69 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + 69 / COUNT ( * ) * + + ( + - 62 ) + - CASE + - 28 WHEN ( - 53 ) * + - 60 + 41 THEN - - ( CAST ( NULL AS INTEGER ) ) END + - CAST ( + 69 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + 92 * - + COUNT( * ) + + 4
----
-88

skipif mysql # not compatible
query I rowsort label-621
SELECT + 92 * - + COUNT ( * ) + + 4
----
-88

query I rowsort
SELECT ALL 62 + + 33 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT 76 * MIN( ALL - ( + 68 ) ) col2
----
-5168

skipif mysql # not compatible
query I rowsort label-623
SELECT 76 * MIN ( ALL - ( + 68 ) ) col2
----
-5168

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT DISTINCT 67 + - COUNT( * ) - 72 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT 67 + - COUNT ( * ) - 72 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-625
SELECT CAST( - + COUNT( ALL - 50 ) AS SIGNED ) + - - 82 col0, 24 + - - 52 + COUNT( DISTINCT 32 ) AS col2
----
81
77

skipif mysql # not compatible
query II rowsort label-625
SELECT CAST ( - + COUNT ( ALL - 50 ) AS INTEGER ) + - - 82 col0, 24 + - - 52 + COUNT ( DISTINCT 32 ) AS col2
----
81
77

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

query I rowsort
SELECT ALL - 62 + + 90 * + 96
----
8578

query I rowsort
SELECT 82 + + 17 - - CASE + 86 WHEN 80 - - 75 + + + 28 + - - 53 THEN 6 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL 25 * + 13, - 35 AS col2
----
325
-35

query I rowsort
SELECT 91 + - - 51 col0
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT 10 + - - MIN( + 2 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-631
SELECT 10 + - - MIN ( + 2 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ( + 63 ) * + COUNT( * ) * - 71 AS col0
----
-4473

skipif mysql # not compatible
query I rowsort label-632
SELECT ( + 63 ) * + COUNT ( * ) * - 71 AS col0
----
-4473

query I rowsort
SELECT 26 + + 98 * + 85 + + + 63 AS col0
----
8419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-634
SELECT COALESCE ( MAX( + 31 ), + 35 * - + NULLIF ( + 86, + 75 - - 21 - 53 * - 3 * 30 ) ) * - - ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT COALESCE ( MAX ( + 31 ), + 35 * - + NULLIF ( + 86, + 75 - - 21 - 53 * - 3 * 30 ) ) * - - ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT 37 * + 47 * + MIN( + - 84 ) + 71 AS col0, 14
----
-146005
14

skipif mysql # not compatible
query II rowsort label-635
SELECT 37 * + 47 * + MIN ( + - 84 ) + 71 AS col0, 14
----
-146005
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-636
SELECT + COALESCE ( + 77, - CASE - + 0 WHEN 96 + - 56 / + ( - SUM( + + 35 ) ) THEN + + COUNT( * ) - + COUNT( * ) - + CASE - + 43 WHEN - COUNT( * ) THEN + + MAX( DISTINCT - CASE + 80 WHEN + 29 THEN - 92 END ) * + 19 + - MAX( DISTINCT + 18 + 72 ) * + COALESCE ( 92, - ( 8 ) * CAST( ( + 76 ) + - 47 AS SIGNED ) + - 9 ) END * 24 ELSE NULL END )
----
77

skipif mysql # not compatible
query I rowsort label-636
SELECT + COALESCE ( + 77, - CASE - + 0 WHEN 96 + - 56 / + ( - SUM ( + + 35 ) ) THEN + + COUNT ( * ) - + COUNT ( * ) - + CASE - + 43 WHEN - COUNT ( * ) THEN + + MAX ( DISTINCT - CASE + 80 WHEN + 29 THEN - 92 END ) * + 19 + - MAX ( DISTINCT + 18 + 72 ) * + COALESCE ( 92, - ( 8 ) * CAST ( ( + 76 ) + - 47 AS INTEGER ) + - 9 ) END * 24 ELSE NULL END )
----
77

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

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT ALL 77 * + + 99 AS col1, - 22 AS col1
----
7623
-22

query II rowsort
SELECT - 47 * + - 28 AS col1, 5 * - + 33 * 8 * - - 75
----
1316
-99000

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT 8 - - MIN( DISTINCT + + 71 )
----
79

skipif mysql # not compatible
query I rowsort label-640
SELECT 8 - - MIN ( DISTINCT + + 71 )
----
79

query I rowsort
SELECT ( - 47 ) * - 72 AS col2
----
3384

query I rowsort
SELECT ALL + 78 * + - 30
----
-2340

query I rowsort
SELECT DISTINCT - 20 + 58 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT 54 + + COALESCE ( 86, - 80 + 52 ) DIV - - 57
----
55

skipif mysql # not compatible
query I rowsort label-644
SELECT 54 + + COALESCE ( 86, - 80 + 52 ) / - - 57
----
55

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

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL - + COUNT ( ALL + + 37 ) + - COUNT ( * ) AS col0
----
-2

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

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 29 + - + COUNT ( * ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + COUNT( ALL 3 ) + - + 56
----
-55

skipif mysql # not compatible
query I rowsort label-647
SELECT + COUNT ( ALL 3 ) + - + 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL COUNT( DISTINCT 71 ) + - + 42 * - + ( + 4 ) AS col0
----
169

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL COUNT ( DISTINCT 71 ) + - + 42 * - + ( + 4 ) AS col0
----
169

query I rowsort
SELECT ALL 25 * 49 AS col1
----
1225

query I rowsort
SELECT DISTINCT 84 + - + 25 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL SUM( 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL SUM ( 82 ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-652
SELECT DISTINCT - COALESCE ( + 46, + + CAST( - - 42 AS SIGNED ), + - MAX( ALL - - 74 ) ) - + - 44 * + 39
----
1670

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - COALESCE ( + 46, + + CAST ( - - 42 AS INTEGER ), + - MAX ( ALL - - 74 ) ) - + - 44 * + 39
----
1670

query II rowsort
SELECT + 1 - - 15 + + 13 AS col2, - 31 AS col2
----
29
-31

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

skipif mysql # not compatible
query I rowsort label-654
SELECT - 7 / + COUNT ( * ) col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT ALL 13 DIV + ( + + NULLIF ( + - 40, 13 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL 13 / + ( + + NULLIF ( + - 40, 13 ) ) AS col2
----
0

query I rowsort
SELECT - 83 * - 40
----
3320

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT SUM( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT SUM ( - 97 )
----
-97

query I rowsort
SELECT + 47 - + + 33 AS col1
----
14

query I rowsort
SELECT DISTINCT CASE - + 99 WHEN 31 + + 25 THEN NULL WHEN - 62 THEN 84 * - 9 + + 0 * - - NULLIF ( + + 43, + 84 ) END * 90
----
NULL

query I rowsort
SELECT ALL 5 * 42 * 0 col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-662
SELECT - + 62 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-662
SELECT - + 62 / 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT + NULLIF ( + + 90, + - 43 + - 64 ) * - 71 + - - ( - COUNT( * ) ) AS col2
----
-6391

skipif mysql # not compatible
query I rowsort label-663
SELECT + NULLIF ( + + 90, + - 43 + - 64 ) * - 71 + - - ( - COUNT ( * ) ) AS col2
----
-6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-664
SELECT DISTINCT 20 * - + ( - - 81 ) + 28 - - + CAST( NULL AS SIGNED ), COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-664
SELECT DISTINCT 20 * - + ( - - 81 ) + 28 - - + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-665
SELECT DISTINCT + + 73 AS col2, - CAST( NULL AS DECIMAL ) AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-665
SELECT DISTINCT + + 73 AS col2, - CAST ( NULL AS REAL ) AS col2
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT - ( + 91 ) * - - 87 / + 87 * + 13 * + + CASE - 78 WHEN + + 36 THEN 0 / - - MAX( ALL 56 ) END * + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-666
SELECT - ( + 91 ) * - - 87 / + 87 * + 13 * + + CASE - 78 WHEN + + 36 THEN 0 / - - MAX ( ALL 56 ) END * + 0 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 38 * - + 99 + 44 + + 82 * + + 24 + + ( - - 93 )
----
-1657

query I rowsort
SELECT - 65 + - 40 * NULLIF ( - - 9, 1 * 22 )
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL - CASE - COALESCE ( - - 25, - + NULLIF ( + + 20, + 43 ) * - NULLIF ( - NULLIF ( 78, + 14 * - + 53 + 33 * + NULLIF ( - 58, + + 38 ) + + 53 + + 90 ), - CASE COUNT( * ) WHEN + - 78 THEN - 25 * 0 ELSE 23 * + ( + 28 ) - - 75 END + + 13 / 69 ) + + 50, + 75 / COUNT( * ) ) WHEN 73 THEN - 95 ELSE + 8 END * + 64 + 79
----
-433

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - CASE - COALESCE ( - - 25, - + NULLIF ( + + 20, + 43 ) * - NULLIF ( - NULLIF ( 78, + 14 * - + 53 + 33 * + NULLIF ( - 58, + + 38 ) + + 53 + + 90 ), - CASE COUNT ( * ) WHEN + - 78 THEN - 25 * 0 ELSE 23 * + ( + 28 ) - - 75 END + + 13 / 69 ) + + 50, + 75 / COUNT ( * ) ) WHEN 73 THEN - 95 ELSE + 8 END * + 64 + 79
----
-433

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-670
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0, ( + ( + 48 ) ) + - + 45
----
NULL
3

skipif mysql # not compatible
query II rowsort label-670
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, ( + ( + 48 ) ) + - + 45
----
NULL
3

query II rowsort
SELECT - - 36 + + + ( - 31 ), 15 * + 11 AS col0
----
5
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-672
SELECT + COUNT( * ), 84 DIV + 88 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-672
SELECT + COUNT ( * ), 84 / + 88 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + + CASE + 21 WHEN 90 THEN NULL WHEN 79 THEN - + 69 * COALESCE ( + 96, - MIN( DISTINCT - 68 ), - 19 ) ELSE NULL END * - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT + + CASE + 21 WHEN 90 THEN NULL WHEN 79 THEN - + 69 * COALESCE ( + 96, - MIN ( DISTINCT - 68 ), - 19 ) ELSE NULL END * - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL NULLIF ( - - 72, - 62 + + 66 * 98 + CASE COUNT( * ) WHEN - - 97 THEN - + 81 END / + ( MIN( DISTINCT 81 ) ) ) * - - 33 + 70 * - 96 + + 83 AS col2
----
-4261

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL NULLIF ( - - 72, - 62 + + 66 * 98 + CASE COUNT ( * ) WHEN - - 97 THEN - + 81 END / + ( MIN ( DISTINCT 81 ) ) ) * - - 33 + 70 * - 96 + + 83 AS col2
----
-4261

query I rowsort
SELECT DISTINCT 74 * + 54 - + + 37
----
3959

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

query I rowsort
SELECT ALL 48 * - 58 - - ( - 49 ) AS col0
----
-2833

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT ALL - COUNT( * ) * 11 - - 17 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - COUNT ( * ) * 11 - - 17 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - COALESCE ( - + 92, - - 87 * - MIN( ALL + 99 ) * - 31 ) + - ( - 72 ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-679
SELECT - COALESCE ( - + 92, - - 87 * - MIN ( ALL + 99 ) * - 31 ) + - ( - 72 ) AS col2
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-680
SELECT + 7 - + ( - 1 ) + + - 18 * NULLIF ( CAST( - 44 AS SIGNED ), + NULLIF ( ( 90 ), 46 * - 95 ) )
----
800

skipif mysql # not compatible
query I rowsort label-680
SELECT + 7 - + ( - 1 ) + + - 18 * NULLIF ( CAST ( - 44 AS INTEGER ), + NULLIF ( ( 90 ), 46 * - 95 ) )
----
800

query I rowsort
SELECT + 66 * - 16
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT - 78 + - 33 + 66 * + - COUNT( * ) + - - 1
----
-176

skipif mysql # not compatible
query I rowsort label-682
SELECT - 78 + - 33 + 66 * + - COUNT ( * ) + - - 1
----
-176

query I rowsort
SELECT + 84 - - 16
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-684
SELECT + 54 + - + COUNT( * ) * + - 13 * - 82, COUNT( * ) AS col0
----
-1012
1

skipif mysql # not compatible
query II rowsort label-684
SELECT + 54 + - + COUNT ( * ) * + - 13 * - 82, COUNT ( * ) AS col0
----
-1012
1

query I rowsort
SELECT + 60 - 0 * + 5 * - 34
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT ALL 72 AS col0, COALESCE ( - + 75, + COUNT( * ) )
----
72
-75

skipif mysql # not compatible
query II rowsort label-686
SELECT ALL 72 AS col0, COALESCE ( - + 75, + COUNT ( * ) )
----
72
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT + 30 * 71 DIV 12
----
177

skipif mysql # not compatible
query I rowsort label-687
SELECT + 30 * 71 / 12
----
177

query I rowsort
SELECT ALL - 73 * 26
----
-1898

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT + 48 + - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-689
SELECT + 48 + - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT ALL COUNT( 61 ), + 49 AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-690
SELECT ALL COUNT ( 61 ), + 49 AS col2
----
1
49

query I rowsort
SELECT + 24 + 46 col1
----
70

query I rowsort
SELECT DISTINCT 88 * - 34 AS col2
----
-2992

query I rowsort
SELECT + 0 + - 27
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-694
SELECT + + 52 DIV + + 28 + COALESCE ( 92, 39 * + + SUM( + 81 ), + 32 * + 12 ), - 91 * 42 * - - ( 77 ) AS col1
----
93
-294294

skipif mysql # not compatible
query II rowsort label-694
SELECT + + 52 / + + 28 + COALESCE ( 92, 39 * + + SUM ( + 81 ), + 32 * + 12 ), - 91 * 42 * - - ( 77 ) AS col1
----
93
-294294

query I rowsort
SELECT + 33 + 85
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT MAX( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-696
SELECT MAX ( 38 )
----
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT + + CAST( NULL AS SIGNED ) * - 45 AS col2, + 28 * - 6
----
NULL
-168

skipif mysql # not compatible
query II rowsort label-698
SELECT + + CAST ( NULL AS INTEGER ) * - 45 AS col2, + 28 * - 6
----
NULL
-168

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

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

query I rowsort
SELECT NULLIF ( - - 19, + - AVG ( 71 ) ) AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-701
SELECT + - 33 * COUNT( ALL 96 ) DIV - - 76 - - - COUNT( DISTINCT + 32 ) + + 87
----
86

skipif mysql # not compatible
query I rowsort label-701
SELECT + - 33 * COUNT ( ALL 96 ) / - - 76 - - - COUNT ( DISTINCT + 32 ) + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT ALL 18 / + 48 + + 47 * SUM( ALL - 85 ) + CASE - + 30 WHEN - COALESCE ( + - 51, - - 68 * - 29 ) THEN - 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 18 / + 48 + + 47 * SUM ( ALL - 85 ) + CASE - + 30 WHEN - COALESCE ( + - 51, - - 68 * - 29 ) THEN - 16 ELSE NULL END AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL - + 75 DIV + 76 + + 10
----
10

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - + 75 / + 76 + + 10
----
10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT ALL 6 * - - ( - + 83 ) * - SUM( + 78 ) * - 90 AS col1, - 80 * 48
----
-3495960
-3840

skipif mysql # not compatible
query II rowsort label-706
SELECT ALL 6 * - - ( - + 83 ) * - SUM ( + 78 ) * - 90 AS col1, - 80 * 48
----
-3495960
-3840

query I rowsort
SELECT DISTINCT - - 10
----
10

query I rowsort
SELECT ALL - + COALESCE ( 24, 76 ) col1
----
-24

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

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

query I rowsort
SELECT 63 * + 29
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT COALESCE ( 6, + 81 + + 64 - COUNT( 50 ), + 38 - - + ( 19 ) * + - 75, + + 13 ) * + 60 + - 68 * + 42 * + 1 col2
----
-2496

skipif mysql # not compatible
query I rowsort label-711
SELECT COALESCE ( 6, + 81 + + 64 - COUNT ( 50 ), + 38 - - + ( 19 ) * + - 75, + + 13 ) * + 60 + - 68 * + 42 * + 1 col2
----
-2496

query I rowsort
SELECT ALL + 31 - - - 86
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT ALL - 76 DIV - NULLIF ( - 8, 52 )
----
-9

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - 76 / - NULLIF ( - 8, 52 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT DISTINCT - COALESCE ( + 57, - COUNT( * ) ), + 55 AS col0
----
-57
55

skipif mysql # not compatible
query II rowsort label-714
SELECT DISTINCT - COALESCE ( + 57, - COUNT ( * ) ), + 55 AS col0
----
-57
55

query I rowsort
SELECT 17 + 93
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT 20 DIV + ( 20 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-716
SELECT 20 / + ( 20 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT 91 * - MAX( ALL + 54 ) AS col1
----
-4914

skipif mysql # not compatible
query I rowsort label-717
SELECT 91 * - MAX ( ALL + 54 ) AS col1
----
-4914

query I rowsort
SELECT 26 + 19 * - - 57 AS col2
----
1109

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT ALL + NULLIF ( - 79, - + 14 ) - - NULLIF ( - - 95, 6 + - 24 ) * - 63 * - COUNT( DISTINCT - - 3 ) - 38 AS col1
----
5868

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL + NULLIF ( - 79, - + 14 ) - - NULLIF ( - - 95, 6 + - 24 ) * - 63 * - COUNT ( DISTINCT - - 3 ) - 38 AS col1
----
5868

query I rowsort
SELECT 4 * - 6 + + 27 * + 88 + - - 90
----
2442

query I rowsort
SELECT DISTINCT 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 9 * - COUNT( - 12 ) * + 36
----
-324

skipif mysql # not compatible
query I rowsort label-722
SELECT 9 * - COUNT ( - 12 ) * + 36
----
-324

query I rowsort
SELECT 45 * + ( - 41 )
----
-1845

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT ALL - ( MIN( + 22 ) ) + + CASE - COALESCE ( COUNT( * ), + 25 * - 31 + - 86 ) WHEN + + 6 * - COUNT( * ) + - 80 + - 28 / - 33 + + COUNT( * ) THEN + - 42 END + - ( + 75 ) + + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - ( MIN ( + 22 ) ) + + CASE - COALESCE ( COUNT ( * ), + 25 * - 31 + - 86 ) WHEN + + 6 * - COUNT ( * ) + - 80 + - 28 / - 33 + + COUNT ( * ) THEN + - 42 END + - ( + 75 ) + + 14 AS col2
----
NULL

query I rowsort
SELECT 16 - + - ( + 53 ) AS col0
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT - 84 * + COUNT( * ) * - ( + 62 )
----
5208

skipif mysql # not compatible
query I rowsort label-727
SELECT - 84 * + COUNT ( * ) * - ( + 62 )
----
5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT 50 * + - COUNT( * ) * + 19 * + 57 * - 11 - + 49 + ( 83 ) DIV COUNT( * ) AS col2
----
595684

skipif mysql # not compatible
query I rowsort label-728
SELECT 50 * + - COUNT ( * ) * + 19 * + 57 * - 11 - + 49 + ( 83 ) / COUNT ( * ) AS col2
----
595684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-729
SELECT ALL CASE - 57 WHEN - + 45 THEN - 96 DIV - + 97 + + COALESCE ( - 57, + - 5 * - 24 ) WHEN - + 4 * + CAST( NULL AS SIGNED ) + + 97 THEN NULL ELSE + - 55 + - + 37 + + + COALESCE ( - 74, - - 56 DIV COALESCE ( + 6, - + 90 ) + + 77 - 6 * - 18 ) + COUNT( + ( - 71 ) ) END col1
----
-165

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL CASE - 57 WHEN - + 45 THEN - 96 / - + 97 + + COALESCE ( - 57, + - 5 * - 24 ) WHEN - + 4 * + CAST ( NULL AS INTEGER ) + + 97 THEN NULL ELSE + - 55 + - + 37 + + + COALESCE ( - 74, - - 56 / COALESCE ( + 6, - + 90 ) + + 77 - 6 * - 18 ) + COUNT ( + ( - 71 ) ) END col1
----
-165

query I rowsort
SELECT ALL 51 + 14
----
65

query II rowsort
SELECT 29 - + - 33 AS col0, - ( - - 32 ) col0
----
62
-32

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

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-734
SELECT ALL - 41 + + 39 AS col2, - 3 * + - 44 * - - 98 * + COUNT( * ) + + NULLIF ( + + 39, + 89 * + 39 ), - 73 * 55 AS col2
----
-2
12975
-4015

skipif mysql # not compatible
query III rowsort label-734
SELECT ALL - 41 + + 39 AS col2, - 3 * + - 44 * - - 98 * + COUNT ( * ) + + NULLIF ( + + 39, + 89 * + 39 ), - 73 * 55 AS col2
----
-2
12975
-4015

onlyif mysql # DIV for integer division: 
query II rowsort label-735
SELECT DISTINCT - 47 - - - 28, - ( - 11 ) DIV + 26 - 33 AS col2
----
-75
-33

skipif mysql # not compatible
query II rowsort label-735
SELECT DISTINCT - 47 - - - 28, - ( - 11 ) / + 26 - 33 AS col2
----
-75
-33

query I rowsort
SELECT DISTINCT 61 * - - 85 AS col2
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT ALL - COUNT( - 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - COUNT ( - 10 )
----
-1

query I rowsort
SELECT 10 * - 97 AS col2
----
-970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-739
SELECT ALL 96 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL 96 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT CAST( CASE - COUNT( * ) WHEN CAST( - 84 AS SIGNED ) * + + 90 * 67 + + 87 THEN 90 * + 12 + + 2 END AS SIGNED ) * - 61 - - 95 + - 38 + 65 / - - SUM( + COALESCE ( + 96, 76 ) ) * + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT CAST ( CASE - COUNT ( * ) WHEN CAST ( - 84 AS INTEGER ) * + + 90 * 67 + + 87 THEN 90 * + 12 + + 2 END AS INTEGER ) * - 61 - - 95 + - 38 + 65 / - - SUM ( + COALESCE ( + 96, 76 ) ) * + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-741
SELECT 36 * + - COUNT( ALL - 47 ) AS col0, - ( + 26 )
----
-36
-26

skipif mysql # not compatible
query II rowsort label-741
SELECT 36 * + - COUNT ( ALL - 47 ) AS col0, - ( + 26 )
----
-36
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT - COUNT( - - 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT - COUNT ( - - 52 ) AS col0
----
-1

query I rowsort
SELECT 16 - + 24 + 17 + 53 AS col0
----
62

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

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

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

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

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

query I rowsort
SELECT ALL - 73 + + - 85
----
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT 45 DIV - - 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-748
SELECT 45 / - - 29 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT ALL + ( 45 ) + - 43 DIV - MIN( 11 )
----
48

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + ( 45 ) + - 43 / - MIN ( 11 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-750
SELECT CAST( NULL AS DECIMAL ) + - + ( - 19 ) AS col2, + COUNT( * ) * 42 * 99 - 54 + + + 87
----
NULL
4191

skipif mysql # not compatible
query II rowsort label-750
SELECT CAST ( NULL AS REAL ) + - + ( - 19 ) AS col2, + COUNT ( * ) * 42 * 99 - 54 + + + 87
----
NULL
4191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-751
SELECT + COUNT( * ) * 88 - - + COUNT( * ) + - 54 DIV + 54
----
88

skipif mysql # not compatible
query I rowsort label-751
SELECT + COUNT ( * ) * 88 - - + COUNT ( * ) + - 54 / + 54
----
88

query I rowsort
SELECT 25 + 68
----
93

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

skipif mysql # not compatible
query I rowsort label-753
SELECT 61 - - COUNT ( * ) * - COUNT ( * ) * + + 4 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT ALL - CAST( NULL AS SIGNED ) * 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL - CAST ( NULL AS INTEGER ) * 40 AS col1
----
NULL

query II rowsort
SELECT 70, 39 AS col2
----
70
39

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

skipif mysql # not compatible
query I rowsort label-756
SELECT 75 + + COUNT ( * ) * NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 19 + 33 * - + 78
----
-2555

query II rowsort
SELECT 44 AS col0, 26 * - 12 AS col1
----
44
-312

query I rowsort
SELECT ALL - 6 + + 40
----
34

query I rowsort
SELECT + 91 + CASE 52 WHEN - 85 THEN NULL WHEN - + NULLIF ( + 99, - 24 ) THEN NULL WHEN + 94 THEN + 0 END - - 71 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-761
SELECT - + 25 + + ( - 37 ) + - 89 + - + 22 * - COUNT( * ) * - 16 * - 78 * 61 * - + CASE + - COUNT( * ) WHEN + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) THEN COUNT( * ) ELSE NULL END * + 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT - + 25 + + ( - 37 ) + - 89 + - + 22 * - COUNT ( * ) * - 16 * - 78 * 61 * - + CASE + - COUNT ( * ) WHEN + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN COUNT ( * ) ELSE NULL END * + 17 col1
----
NULL

query II rowsort
SELECT ALL 92 AS col1, - 49
----
92
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-763
SELECT ALL + CAST( NULL AS SIGNED ) + + + 3 + ( + 54 ) * + + COUNT( * ) + + 32 * 24 + - ( 15 ) AS col2, + MIN( ALL - 30 )
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-763
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 3 + ( + 54 ) * + + COUNT ( * ) + + 32 * 24 + - ( 15 ) AS col2, + MIN ( ALL - 30 )
----
NULL
-30

query I rowsort
SELECT + ( + - 92 ) + + 97
----
5

query II rowsort
SELECT + 93 AS col1, 31 * + 2
----
93
62

query I rowsort
SELECT - - 48 + 48 * + - 83 * - - 36 col1
----
-143376

query I rowsort
SELECT - - 23 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT + COUNT( ALL 6 ) + COUNT( * ) - - - 27 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-768
SELECT + COUNT ( ALL 6 ) + COUNT ( * ) - - - 27 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - SUM( ALL - 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-769
SELECT - SUM ( ALL - 44 ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT + - 10 + 5 DIV + + 43 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-770
SELECT + - 10 + 5 / + + 43 AS col1
----
-10

query I rowsort
SELECT + NULLIF ( 14, + - 90 + + 49 * 96 ) col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT ALL + CASE - 7 WHEN + 97 THEN 31 + - + NULLIF ( + + CASE + - COUNT( * ) WHEN 23 THEN 38 + + 58 + + + 15 WHEN - NULLIF ( + 46, - 15 + - - ( + ( - COUNT( * ) ) ) ) + - CAST( - + 70 AS SIGNED ) - 65 * - 19 THEN + + 86 ELSE + COUNT( * ) END, - MAX( 88 ) ) * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + CASE - 7 WHEN + 97 THEN 31 + - + NULLIF ( + + CASE + - COUNT ( * ) WHEN 23 THEN 38 + + 58 + + + 15 WHEN - NULLIF ( + 46, - 15 + - - ( + ( - COUNT ( * ) ) ) ) + - CAST ( - + 70 AS INTEGER ) - 65 * - 19 THEN + + 86 ELSE + COUNT ( * ) END, - MAX ( 88 ) ) * - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL + + 67 * 77 * + COUNT( - 18 )
----
5159

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + + 67 * 77 * + COUNT ( - 18 )
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT ALL + - MAX( DISTINCT 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + - MAX ( DISTINCT 67 ) AS col0
----
-67

query I rowsort
SELECT + 43 + - 44 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT + 91 DIV - + 26 col0
----
-3

skipif mysql # not compatible
query I rowsort label-776
SELECT + 91 / - + 26 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - MIN( - ( + 74 ) ) - - + COUNT( * ) + 8 + 66 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-777
SELECT - MIN ( - ( + 74 ) ) - - + COUNT ( * ) + 8 + 66 AS col2
----
149

query I rowsort
SELECT + 67 * + 52
----
3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT CASE + 6 WHEN - 11 * 99 THEN 4 WHEN + ( - 15 ) * - CASE + 98 WHEN MAX( DISTINCT - + 20 ) THEN NULL ELSE - 9 END - - 15 - - 3 + 22 * - COALESCE ( 48, + COALESCE ( - ( + ( + 18 ) ), - 81 * + + COUNT( * ) * ( 12 ) * 97 + CAST( - 7 + 52 AS SIGNED ) ), - COUNT( * ) ) THEN - NULLIF ( - 33, 20 * - 60 ) / - 72 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT CASE + 6 WHEN - 11 * 99 THEN 4 WHEN + ( - 15 ) * - CASE + 98 WHEN MAX ( DISTINCT - + 20 ) THEN NULL ELSE - 9 END - - 15 - - 3 + 22 * - COALESCE ( 48, + COALESCE ( - ( + ( + 18 ) ), - 81 * + + COUNT ( * ) * ( 12 ) * 97 + CAST ( - 7 + 52 AS INTEGER ) ), - COUNT ( * ) ) THEN - NULLIF ( - 33, 20 * - 60 ) / - 72 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT 4 * + - 30 * + 88 + 42 * - - COALESCE ( + 46, + COALESCE ( 18, + 49 ) ) + + 70 * - CAST( - + 78 AS SIGNED ) - + + ( + SUM( DISTINCT + ( 14 ) ) ) * ( - 42 ) + - COUNT( * ) * NULLIF ( + 19, 43 - ( 42 ) - NULLIF ( 65, 21 ) ) AS col0
----
-2599

skipif mysql # not compatible
query I rowsort label-780
SELECT 4 * + - 30 * + 88 + 42 * - - COALESCE ( + 46, + COALESCE ( 18, + 49 ) ) + + 70 * - CAST ( - + 78 AS INTEGER ) - + + ( + SUM ( DISTINCT + ( 14 ) ) ) * ( - 42 ) + - COUNT ( * ) * NULLIF ( + 19, 43 - ( 42 ) - NULLIF ( 65, 21 ) ) AS col0
----
-2599

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT ALL 49 DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL 49 / 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT + 55 DIV + + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT + 55 / + + 57 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL - COUNT( * ) * + 27 + - - 80
----
53

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - COUNT ( * ) * + 27 + - - 80
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT CASE - ( + COUNT( * ) ) WHEN + 64 THEN NULL ELSE - 96 END col2
----
-96

skipif mysql # not compatible
query I rowsort label-785
SELECT CASE - ( + COUNT ( * ) ) WHEN + 64 THEN NULL ELSE - 96 END col2
----
-96

query II rowsort
SELECT ALL + 14 * 37 AS col2, - 8
----
518
-8

query I rowsort
SELECT + 1 * - - 37 * - 98 AS col0
----
-3626

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT DISTINCT + 47 * - + 1 DIV - - ( + 89 ) + 30 + - - 27 * - 55
----
-1455

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + 47 * - + 1 / - - ( + 89 ) + 30 + - - 27 * - 55
----
-1455

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-790
SELECT + ( + - CAST( NULL AS DECIMAL ) ) AS col2, 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-790
SELECT + ( + - CAST ( NULL AS REAL ) ) AS col2, 84 AS col0
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT + NULLIF ( NULLIF ( - + ( 87 ), + CAST( - + ( - ( - 10 ) ) AS SIGNED ) ), - CASE - 47 WHEN - 42 THEN 67 * + - 15 + ( - 67 ) * + + 36 + - + 76 END )
----
-87

skipif mysql # not compatible
query I rowsort label-791
SELECT + NULLIF ( NULLIF ( - + ( 87 ), + CAST ( - + ( - ( - 10 ) ) AS INTEGER ) ), - CASE - 47 WHEN - 42 THEN 67 * + - 15 + ( - 67 ) * + + 36 + - + 76 END )
----
-87

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

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

query I rowsort
SELECT + 65 * + - 8 * - 36 * - 37 AS col2
----
-692640

onlyif mysql # aggregate syntax: 
query II rowsort label-794
SELECT + MIN( 5 ) * - COUNT( * ) + - 85 AS col0, 21 * - 76
----
-90
-1596

skipif mysql # not compatible
query II rowsort label-794
SELECT + MIN ( 5 ) * - COUNT ( * ) + - 85 AS col0, 21 * - 76
----
-90
-1596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-795
SELECT MAX( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT MAX ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-796
SELECT - 47 + COALESCE ( - 8, + 82 ) * COUNT( * ) * - + 45 * + CAST( 54 AS SIGNED ) + COUNT( * ) AS col1, - 30 + + - 25 AS col0
----
19394
-55

skipif mysql # not compatible
query II rowsort label-796
SELECT - 47 + COALESCE ( - 8, + 82 ) * COUNT ( * ) * - + 45 * + CAST ( 54 AS INTEGER ) + COUNT ( * ) AS col1, - 30 + + - 25 AS col0
----
19394
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT MAX( - ( + - 38 ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-797
SELECT MAX ( - ( + - 38 ) ) AS col2
----
38

query I rowsort
SELECT ALL + + 11 + + + 60 + + + 40 AS col2
----
111

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

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

query I rowsort
SELECT - - 63 * - 40 * - + 29 + + CASE 89 WHEN + - 2 THEN 70 WHEN + + 56 THEN NULL END
----
NULL

query I rowsort
SELECT + - 94 - 39 AS col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT + COUNT( - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-802
SELECT + COUNT ( - 4 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-803
SELECT + + ( + 76 ) + + + 37 + CAST( NULL AS SIGNED ) * + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-803
SELECT + + ( + 76 ) + + + 37 + CAST ( NULL AS INTEGER ) * + - 7 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-804
SELECT - - 14 DIV - 28 + + - ( - 84 ), + ( - 55 ) * 8 * - 47 AS col2
----
84
20680

skipif mysql # not compatible
query II rowsort label-804
SELECT - - 14 / - 28 + + - ( - 84 ), + ( - 55 ) * 8 * - 47 AS col2
----
84
20680

query I rowsort
SELECT - - 2 * - 13 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-806
SELECT DISTINCT CAST( 94 AS SIGNED ) - + + 80 DIV - 80 + 31 + - 73
----
53

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT CAST ( 94 AS INTEGER ) - + + 80 / - 80 + 31 + - 73
----
53

query I rowsort
SELECT ALL 61 * - 44 * 36
----
-96624

query I rowsort
SELECT - 5 - + 42 AS col0
----
-47

query I rowsort
SELECT DISTINCT + + ( - 55 ) * 86
----
-4730

query I rowsort
SELECT - - 62 * CASE + 87 WHEN + - 56 THEN + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT + COUNT( DISTINCT + - NULLIF ( + 88, 2 - - - 71 ) )
----
1

skipif mysql # not compatible
query I rowsort label-811
SELECT + COUNT ( DISTINCT + - NULLIF ( + 88, 2 - - - 71 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT SUM( 38 ), - 31 + + 52 + + + 41 * - 51 * + 82 AS col0
----
38
-171441

skipif mysql # not compatible
query II rowsort label-812
SELECT SUM ( 38 ), - 31 + + 52 + + + 41 * - 51 * + 82 AS col0
----
38
-171441

onlyif mysql # DIV for integer division: 
query I rowsort label-813
SELECT + 51 DIV + NULLIF ( - 60, 32 ) + - - 63 + - 10 * - + 33 AS col1
----
393

skipif mysql # not compatible
query I rowsort label-813
SELECT + 51 / + NULLIF ( - 60, 32 ) + - - 63 + - 10 * - + 33 AS col1
----
393

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT - CAST( - 60 AS SIGNED ) * - 17 AS col0
----
-1020

skipif mysql # not compatible
query I rowsort label-815
SELECT - CAST ( - 60 AS INTEGER ) * - 17 AS col0
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + 85 * - COUNT( * ) * + 44 AS col0
----
-3740

skipif mysql # not compatible
query I rowsort label-816
SELECT + 85 * - COUNT ( * ) * + 44 AS col0
----
-3740

query I rowsort
SELECT DISTINCT + 27 * + 25 * + + 27 * 19 col2
----
346275

onlyif mysql # aggregate syntax: 
query II rowsort label-818
SELECT DISTINCT + COUNT( * ) AS col1, 38 + + 69 * 2
----
1
176

skipif mysql # not compatible
query II rowsort label-818
SELECT DISTINCT + COUNT ( * ) AS col1, 38 + + 69 * 2
----
1
176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-819
SELECT ALL - 45 / 33 * CAST( NULL AS DECIMAL ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - 45 / 33 * CAST ( NULL AS REAL ) * + 66
----
NULL

query I rowsort
SELECT - 49 * - 75
----
3675

onlyif mysql # DIV for integer division: 
query II rowsort label-821
SELECT ALL - 86 DIV + 61 + + + 84, - 23 * + - 34 * - 80 * - 80 AS col2
----
83
5004800

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL - 86 / + 61 + + + 84, - 23 * + - 34 * - 80 * - 80 AS col2
----
83
5004800

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT ALL + 2 DIV 90 + 62 + - 10 * 26 * + - 48 AS col2
----
12542

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + 2 / 90 + 62 + - 10 * 26 * + - 48 AS col2
----
12542

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

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

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

query I rowsort
SELECT - 89 + + 93 col0
----
4

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

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

query I rowsort
SELECT 46 * + + 45 + + 2 AS col0
----
2072

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT + 71 DIV 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-829
SELECT + 71 / 64 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT + CASE + - 69 WHEN - + 55 THEN 29 ELSE + COUNT( * ) * 51 + + 66 END AS col1
----
117

skipif mysql # not compatible
query I rowsort label-830
SELECT + CASE + - 69 WHEN - + 55 THEN 29 ELSE + COUNT ( * ) * 51 + + 66 END AS col1
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT DISTINCT + CAST( - 3 AS SIGNED ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + CAST ( - 3 AS INTEGER ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL + MAX( ALL + 86 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL + MAX ( ALL + 86 ) col2
----
86

query I rowsort
SELECT 51 + + 84 AS col1
----
135

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

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT - COUNT ( - - 1 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT MAX( DISTINCT - + 89 ) + + COUNT( * ) + 35
----
-53

skipif mysql # not compatible
query I rowsort label-836
SELECT MAX ( DISTINCT - + 89 ) + + COUNT ( * ) + 35
----
-53

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT 15 + + COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-839
SELECT 15 + + COUNT ( * ) col1
----
16

query I rowsort
SELECT ALL 79 * - 87 AS col2
----
-6873

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT + MIN( DISTINCT - 41 ) + - COUNT( * ) * - + MIN( DISTINCT 12 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-841
SELECT + MIN ( DISTINCT - 41 ) + - COUNT ( * ) * - + MIN ( DISTINCT 12 ) AS col2
----
-29

query I rowsort
SELECT ( + 62 ) - + 15 AS col2
----
47

query I rowsort
SELECT - 36 + - 24 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT 38 / + + ( - CAST( + - COUNT( * ) AS SIGNED ) ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) + + 98 * - CAST( NULL AS SIGNED ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT 38 / + + ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 98 * - CAST ( NULL AS INTEGER ) + 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-845
SELECT COUNT( DISTINCT - - 76 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT COUNT ( DISTINCT - - 76 ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 78, - + 78 )
----
-78

query I rowsort
SELECT - 3 + + - 95
----
-98

query II rowsort
SELECT ALL + 20 AS col2, 41 + ( - - NULLIF ( - 22, - 48 + 47 ) ) * - 48 * 32
----
20
33833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT DISTINCT 90 DIV + MIN( DISTINCT + 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT 90 / + MIN ( DISTINCT + 77 ) AS col1
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-852
SELECT ALL - + 0 * - 55 + + NULLIF ( CAST( NULL AS DECIMAL ), - 32 * - 26 * + 53 ) + + COUNT( * ) * + ( 76 ) + - - ( + 48 ) - + 67 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - + 0 * - 55 + + NULLIF ( CAST ( NULL AS REAL ), - 32 * - 26 * + 53 ) + + COUNT ( * ) * + ( 76 ) + - - ( + 48 ) - + 67 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT - MAX( DISTINCT + 93 ) + - 8
----
-101

skipif mysql # not compatible
query I rowsort label-853
SELECT - MAX ( DISTINCT + 93 ) + - 8
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-854
SELECT DISTINCT - NULLIF ( 10, - - 20 * - CASE - 26 WHEN CASE 68 WHEN + ( 78 ) / 69 * - 21 THEN CAST( 42 AS SIGNED ) END THEN + + 72 ELSE - 59 END - MIN( 28 ) * + - 70 ) + - 65 AS col1, 77 AS col1
----
-75
77

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - NULLIF ( 10, - - 20 * - CASE - 26 WHEN CASE 68 WHEN + ( 78 ) / 69 * - 21 THEN CAST ( 42 AS INTEGER ) END THEN + + 72 ELSE - 59 END - MIN ( 28 ) * + - 70 ) + - 65 AS col1, 77 AS col1
----
-75
77

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - 3, - - 80 ) + 81 col1
----
78

query I rowsort
SELECT ALL - 86 + - + 17
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT - SUM( DISTINCT + - 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - SUM ( DISTINCT + - 91 ) AS col0
----
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT DISTINCT - 41 + + + 9 DIV 53 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT - 41 + + + 9 / 53 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL - COUNT( DISTINCT - - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL - COUNT ( DISTINCT - - 76 )
----
-1

query I rowsort
SELECT ALL - COALESCE ( - 48, - 82, - 30 ) + + ( 82 ) * + 27 AS col2
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - MAX( ALL 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - MAX ( ALL 77 ) AS col1
----
-77

query I rowsort
SELECT 19 - - 24
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT 70 + CASE - 15 WHEN + + 83 + + AVG ( + + 82 ) + - + 38 * + + SUM( + + 16 ) * - 19 - - 12 + - CASE 23 WHEN - 27 THEN + - 35 END + - SUM( - + CAST( NULL AS SIGNED ) ) THEN + 13 * + COUNT( * ) * - 6 + - + ( - 68 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT 70 + CASE - 15 WHEN + + 83 + + AVG ( + + 82 ) + - + 38 * + + SUM ( + + 16 ) * - 19 - - 12 + - CASE 23 WHEN - 27 THEN + - 35 END + - SUM ( - + CAST ( NULL AS INTEGER ) ) THEN + 13 * + COUNT ( * ) * - 6 + - + ( - 68 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 79 - + 32
----
-111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT DISTINCT - ( 34 ) DIV + + 21 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - ( 34 ) / + + 21 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL - 79 - - 98 * + 26 * CAST( 46 AS SIGNED ) + 55 AS col0
----
117184

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - 79 - - 98 * + 26 * CAST ( 46 AS INTEGER ) + 55 AS col0
----
117184

query I rowsort
SELECT - 10 * 64 AS col0
----
-640

query I rowsort
SELECT 52 * 26 + + + 59
----
1411

query II rowsort
SELECT ALL - + 54 AS col1, + ( - 84 )
----
-54
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT - 93 + - CASE + CAST( - 77 AS SIGNED ) WHEN + 85 THEN + + 22 + - 54 + + 81 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT - 93 + - CASE + CAST ( - 77 AS INTEGER ) WHEN + 85 THEN + + 22 + - 54 + + 81 END AS col0
----
NULL

query II rowsort
SELECT ALL - - 68 AS col1, + 12 AS col2
----
68
12

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + - COUNT( * ) * COUNT( ALL - ( - 91 ) ) + - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-876
SELECT + - COUNT ( * ) * COUNT ( ALL - ( - 91 ) ) + - + 75
----
-76

query II rowsort
SELECT ALL + 16 AS col2, + 70 AS col0
----
16
70

query I rowsort
SELECT - 20 + - 84 * + 27 AS col0
----
-2288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT - CASE - 87 WHEN 66 * + 7 / + + 27 - 85 THEN + CAST( - - 90 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT - CASE - 87 WHEN 66 * + 7 / + + 27 - 85 THEN + CAST ( - - 90 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT ALL + 80 DIV 19
----
4

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + 80 / 19
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 32 - + - ( + COUNT( + 6 ) )
----
33

skipif mysql # not compatible
query I rowsort label-882
SELECT 32 - + - ( + COUNT ( + 6 ) )
----
33

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT ALL - 82 DIV - - COUNT( - 85 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - 82 / - - COUNT ( - 85 ) AS col1
----
-82

query I rowsort
SELECT DISTINCT 31 + - 93
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT COALESCE ( - ( 78 ), COUNT( DISTINCT NULLIF ( + 92, + 72 ) ) + + 22 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-888
SELECT COALESCE ( - ( 78 ), COUNT ( DISTINCT NULLIF ( + 92, + 72 ) ) + + 22 ) AS col2
----
-78

query I rowsort
SELECT NULLIF ( 50, - 61 )
----
50

query I rowsort
SELECT DISTINCT + 65 * - + 1
----
-65

query I rowsort
SELECT NULLIF ( 47, - 55 ) + - 31 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-892
SELECT + COUNT( * ) DIV - 2 - CASE CAST( NULL AS DECIMAL ) WHEN + 38 * + 91 + + - 97 THEN NULL WHEN - CAST( 75 AS SIGNED ) + - + 52 + + COUNT( * ) * 33 + + 13 THEN + - 0 ELSE + + MIN( 36 ) + - 44 * 44 END * 5
----
9500

skipif mysql # not compatible
query I rowsort label-892
SELECT + COUNT ( * ) / - 2 - CASE CAST ( NULL AS REAL ) WHEN + 38 * + 91 + + - 97 THEN NULL WHEN - CAST ( 75 AS INTEGER ) + - + 52 + + COUNT ( * ) * 33 + + 13 THEN + - 0 ELSE + + MIN ( 36 ) + - 44 * 44 END * 5
----
9500

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT ALL + MAX( + 0 ) * 65
----
0

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL + MAX ( + 0 ) * 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT CASE + 80 WHEN + - 67 THEN + 79 / - 78 / + ( ( COUNT( * ) ) ) ELSE 25 END AS col2
----
25

skipif mysql # not compatible
query I rowsort label-894
SELECT CASE + 80 WHEN + - 67 THEN + 79 / - 78 / + ( ( COUNT ( * ) ) ) ELSE 25 END AS col2
----
25

query I rowsort
SELECT ALL 24 * 5 * - + 67 * + 48
----
-385920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT DISTINCT ( + 91 ) * 16 * - - MIN( ALL - CAST( 83 AS SIGNED ) ) + + ( + - 82 )
----
-120930

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT ( + 91 ) * 16 * - - MIN ( ALL - CAST ( 83 AS INTEGER ) ) + + ( + - 82 )
----
-120930

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-897
SELECT DISTINCT - 55 * + + CASE CASE - - 43 WHEN + 79 THEN - 57 - + + ( ( 75 ) ) WHEN - 72 THEN NULL WHEN - + 66 THEN COALESCE ( - - COUNT( * ), - 29 ) * + 72 + 36 ELSE NULL END WHEN - 84 * - COUNT( * ) + + 94 THEN 95 * - 32 + - 62 WHEN - - 54 * - - CAST( - - COUNT( ALL 25 ) AS DECIMAL ) THEN NULL ELSE + - 6 END - + 45 AS col1
----
285

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT - 55 * + + CASE CASE - - 43 WHEN + 79 THEN - 57 - + + ( ( 75 ) ) WHEN - 72 THEN NULL WHEN - + 66 THEN COALESCE ( - - COUNT ( * ), - 29 ) * + 72 + 36 ELSE NULL END WHEN - 84 * - COUNT ( * ) + + 94 THEN 95 * - 32 + - 62 WHEN - - 54 * - - CAST ( - - COUNT ( ALL 25 ) AS REAL ) THEN NULL ELSE + - 6 END - + 45 AS col1
----
285

query I rowsort
SELECT ALL 77 * + 65 AS col0
----
5005

query I rowsort
SELECT + 0 + - + 29 + - + 24
----
-53

query I rowsort
SELECT + 94 col0
----
94

query I rowsort
SELECT + 8 + + - 67
----
-59

query I rowsort
SELECT - 82 * 93 AS col1
----
-7626

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL - + ( + - SUM( ALL + - 16 ) ) * - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - + ( + - SUM ( ALL + - 16 ) ) * - COUNT ( * )
----
16

query I rowsort
SELECT - 35 + + 2 + - 28 * - 94
----
2599

onlyif mysql # aggregate syntax: 
query II rowsort label-905
SELECT - - 40 + 47 AS col2, + COALESCE ( - COUNT( * ), NULLIF ( + ( + 27 ), - COUNT( * ) ) * + COUNT( * ) * - MAX( - 85 ) )
----
87
-1

skipif mysql # not compatible
query II rowsort label-905
SELECT - - 40 + 47 AS col2, + COALESCE ( - COUNT ( * ), NULLIF ( + ( + 27 ), - COUNT ( * ) ) * + COUNT ( * ) * - MAX ( - 85 ) )
----
87
-1

query I rowsort
SELECT ALL + 35 * - 77
----
-2695

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

query I rowsort
SELECT - + CASE + - CASE 30 WHEN 42 THEN NULL ELSE - ( + - AVG ( DISTINCT - + 96 ) ) - + 1 - + - 97 END WHEN - + 75 * - 69 THEN + - 51 * 59 * 83 END + + - ( - + 82 )
----
NULL

query I rowsort
SELECT DISTINCT - - 95 + - ( 54 )
----
41

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

query I rowsort
SELECT ALL - - 45 + - 83 col1
----
-38

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT + - 25 + - NULLIF ( - 56, + + CASE WHEN - CASE - + CAST( - + 28 AS SIGNED ) WHEN - 17 * + MAX( ALL + - 68 ) * 9 * - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - CAST( + 54 AS SIGNED ) - + 95 ELSE NULL END BETWEEN ( - - 86 * + ( - 40 ) - 6 ) AND + 59 * + ( 29 ) THEN - 30 / + ( + AVG ( ALL 63 ) ) * + ( 45 * - 41 ) END ) + + MIN( 57 + ( 21 ) )
----
109

skipif mysql # not compatible
query I rowsort label-914
SELECT + - 25 + - NULLIF ( - 56, + + CASE WHEN - CASE - + CAST ( - + 28 AS INTEGER ) WHEN - 17 * + MAX ( ALL + - 68 ) * 9 * - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - CAST ( + 54 AS INTEGER ) - + 95 ELSE NULL END BETWEEN ( - - 86 * + ( - 40 ) - 6 ) AND + 59 * + ( 29 ) THEN - 30 / + ( + AVG ( ALL 63 ) ) * + ( 45 * - 41 ) END ) + + MIN ( 57 + ( 21 ) )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT ALL - CAST( NULL AS SIGNED ) + + 9 AS col1, + 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-915
SELECT ALL - CAST ( NULL AS INTEGER ) + + 9 AS col1, + 80 AS col0
----
NULL
80

query I rowsort
SELECT ALL - + 53 + - 74 AS col2
----
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-917
SELECT DISTINCT 8 DIV + + 60
----
0

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT 8 / + + 60
----
0

query I rowsort
SELECT DISTINCT - - 3 + - 23
----
-20

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

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

query I rowsort
SELECT ALL - ( + 1 ) + + 57 + 74 AS col1
----
130

query I rowsort
SELECT DISTINCT ( 99 ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT + COUNT( - 34 ) + 98 * - 70 + 73 + NULLIF ( 37, - 8 ) AS col0
----
-6749

skipif mysql # not compatible
query I rowsort label-922
SELECT + COUNT ( - 34 ) + 98 * - 70 + 73 + NULLIF ( 37, - 8 ) AS col0
----
-6749

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT - 49 * - + COALESCE ( + 30, + - 63 * - 7 DIV - 68 )
----
1470

skipif mysql # not compatible
query I rowsort label-924
SELECT - 49 * - + COALESCE ( + 30, + - 63 * - 7 / - 68 )
----
1470

query I rowsort
SELECT + 55 * 64
----
3520

query I rowsort
SELECT + 66 + - + 39 * - 87 - + 49 AS col0
----
3410

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

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

query I rowsort
SELECT + 19 * + 68 AS col1
----
1292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT + 19 DIV + COUNT( + - 9 ) + - 7 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-929
SELECT + 19 / + COUNT ( + - 9 ) + - 7 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT + 12 + - COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-930
SELECT + 12 + - COUNT ( * ) AS col2
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + CASE + + COALESCE ( SUM( + 15 ), + + 9 + 53 ) WHEN 21 THEN - 2 + - + CASE - 85 WHEN - 77 * 36 THEN + 50 WHEN COUNT( * ) + 54 + + MAX( DISTINCT + 29 ) * 22 THEN NULL WHEN - - 27 * + 93 THEN NULL END WHEN + - 67 + - 61 / - - ( - + 71 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT + CASE + + COALESCE ( SUM ( + 15 ), + + 9 + 53 ) WHEN 21 THEN - 2 + - + CASE - 85 WHEN - 77 * 36 THEN + 50 WHEN COUNT ( * ) + 54 + + MAX ( DISTINCT + 29 ) * 22 THEN NULL WHEN - - 27 * + 93 THEN NULL END WHEN + - 67 + - 61 / - - ( - + 71 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( - - 43, 50 ) AS col1
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-934
SELECT ( 64 ) * - + 30 * - ( - - 45 ) + - - CAST( NULL AS DECIMAL ) * - + 80 + 5, 36 * - 86 AS col2
----
NULL
-3096

skipif mysql # not compatible
query II rowsort label-934
SELECT ( 64 ) * - + 30 * - ( - - 45 ) + - - CAST ( NULL AS REAL ) * - + 80 + 5, 36 * - 86 AS col2
----
NULL
-3096

query I rowsort
SELECT DISTINCT + 21 col2
----
21

query II rowsort
SELECT ALL - 25 * + - 58 + 71 AS col2, 39 AS col0
----
1521
39

query I rowsort
SELECT + + 61 * + + 45
----
2745

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

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

query I rowsort
SELECT + COALESCE ( + 16, + 98 ) col1
----
16

query I rowsort
SELECT + COALESCE ( - - 80, - + 95 ) * - 69
----
-5520

query II rowsort
SELECT - 55 * + - 98 + 30 AS col2, + 56 AS col0
----
5420
56

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT DISTINCT 56 * - - 26 + ( + COALESCE ( - + 16, 29, 79 ) ) * + 78 * - + ( - - SUM( + 33 ) ) + + - ( 28 ) + + + 55 AS col0
----
42667

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 56 * - - 26 + ( + COALESCE ( - + 16, 29, 79 ) ) * + 78 * - + ( - - SUM ( + 33 ) ) + + - ( 28 ) + + + 55 AS col0
----
42667

query I rowsort
SELECT ALL 93 * - 33 + 59 AS col1
----
-3010

query I rowsort
SELECT + + CASE - 5 WHEN - - 89 THEN + 11 + NULLIF ( + ( + ( 32 ) ), - 32 ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 25 * - 68 + + 90
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT + - 34 * + 25 + + CAST( + CASE 48 WHEN + 18 THEN + + 25 * 79 ELSE 64 END AS SIGNED ) col0
----
-786

skipif mysql # not compatible
query I rowsort label-946
SELECT + - 34 * + 25 + + CAST ( + CASE 48 WHEN + 18 THEN + + 25 * 79 ELSE 64 END AS INTEGER ) col0
----
-786

query II rowsort
SELECT ALL + COALESCE ( - - 87, - ( - 49 ) ) col0, 55 * + 26 + - + 10
----
87
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - NULLIF ( - 92, + - 47 / - 17 + + 69 / + 95 + 2 + + CASE + COUNT( * ) WHEN - 59 + - 99 THEN - - COUNT( * ) - + + 77 + 4 END - - MAX( ALL 31 ) + - 94 / - 31 )
----
92

skipif mysql # not compatible
query I rowsort label-948
SELECT - NULLIF ( - 92, + - 47 / - 17 + + 69 / + 95 + 2 + + CASE + COUNT ( * ) WHEN - 59 + - 99 THEN - - COUNT ( * ) - + + 77 + 4 END - - MAX ( ALL 31 ) + - 94 / - 31 )
----
92

query I rowsort
SELECT ALL - 96 * - 95 + - 21
----
9099

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT - - ( ( - MAX( ALL + 30 ) ) ) AS col1, - NULLIF ( - COUNT( * ), - 38 + + - 68 ) col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-950
SELECT - - ( ( - MAX ( ALL + 30 ) ) ) AS col1, - NULLIF ( - COUNT ( * ), - 38 + + - 68 ) col0
----
-30
1

query I rowsort
SELECT DISTINCT + 96 * - 94 + + 30 * 1
----
-8994

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT - 85 DIV - 13
----
6

skipif mysql # not compatible
query I rowsort label-952
SELECT - 85 / - 13
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT - MAX( + 68 ), - MAX( DISTINCT - + CASE - + 98 WHEN 24 THEN NULL WHEN + 96 * - 26 THEN 72 + 25 WHEN - 20 THEN - 42 END ) + 48 AS col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-953
SELECT - MAX ( + 68 ), - MAX ( DISTINCT - + CASE - + 98 WHEN 24 THEN NULL WHEN + 96 * - 26 THEN 72 + 25 WHEN - 20 THEN - 42 END ) + 48 AS col0
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL - NULLIF ( 57, + AVG ( - ( + 60 ) ) * - - 15 - - ( COUNT( DISTINCT 16 ) ) / + COUNT( * ) ) - + 29 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL - NULLIF ( 57, + AVG ( - ( + 60 ) ) * - - 15 - - ( COUNT ( DISTINCT 16 ) ) / + COUNT ( * ) ) - + 29 AS col1
----
-86

query I rowsort
SELECT - 73 - 69 * + 1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT - 49 + - - NULLIF ( + 76, + 24 * 62 / - - 35 - ( ( - + 92 ) ) - - - COUNT( * ) / + 22 + + 43 )
----
27

skipif mysql # not compatible
query I rowsort label-956
SELECT - 49 + - - NULLIF ( + 76, + 24 * 62 / - - 35 - ( ( - + 92 ) ) - - - COUNT ( * ) / + 22 + + 43 )
----
27

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

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL CAST ( + + MIN ( + 31 ) AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-958
SELECT - 66 * 65, 29 + COUNT( * ) + - 68 * 77 AS col2
----
-4290
-5206

skipif mysql # not compatible
query II rowsort label-958
SELECT - 66 * 65, 29 + COUNT ( * ) + - 68 * 77 AS col2
----
-4290
-5206

query I rowsort
SELECT - 25 + + - 97 * 12
----
-1189

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT + COUNT( * ) * + 8 * + + 81 AS col0
----
648

skipif mysql # not compatible
query I rowsort label-960
SELECT + COUNT ( * ) * + 8 * + + 81 AS col0
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-961
SELECT DISTINCT - 37 DIV + - 59, 69 * CASE + - COUNT( * ) WHEN - + 50 THEN - 41 WHEN - 85 * 22 * - 63 THEN NULL ELSE + ( - 72 ) END AS col2
----
0
-4968

skipif mysql # not compatible
query II rowsort label-961
SELECT DISTINCT - 37 / + - 59, 69 * CASE + - COUNT ( * ) WHEN - + 50 THEN - 41 WHEN - 85 * 22 * - 63 THEN NULL ELSE + ( - 72 ) END AS col2
----
0
-4968

query I rowsort
SELECT DISTINCT + COALESCE ( 50, - - 78 ) - + ( - 65 )
----
115

query I rowsort
SELECT DISTINCT 48 - + 64 AS col1
----
-16

query I rowsort
SELECT 63 + + 24 * + 14
----
399

query I rowsort
SELECT ALL + 66 * - 60 * 59 AS col0
----
-233640

query I rowsort
SELECT 44 + + + 24 + + + 38 AS col2
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT + 76 DIV 72 - - 75
----
76

skipif mysql # not compatible
query I rowsort label-967
SELECT + 76 / 72 - - 75
----
76

query I rowsort
SELECT ALL + 84 + + 12 + + 3
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT DISTINCT + + NULLIF ( + 43, + 4 ) * + - SUM( - + CASE WHEN NOT NULL <> NULL THEN - 28 ELSE NULL END ) * - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT + + NULLIF ( + 43, + 4 ) * + - SUM ( - + CASE WHEN NOT NULL <> NULL THEN - 28 ELSE NULL END ) * - - 40
----
NULL

query I rowsort
SELECT ALL 56 + - 59 + - 17
----
-20

query I rowsort
SELECT DISTINCT 61 + + 21 * + - 68
----
-1367

query I rowsort
SELECT DISTINCT + 76 + 58 AS col0
----
134

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

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

query II rowsort
SELECT ALL - 43 + ( 46 ) * - 45 AS col2, 29
----
-2113
29

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT COUNT( * ) + + + COUNT( - 7 ) + + 90 * + 30 * ( + SUM( - 43 ) ) * - - 11 + + 13 AS col2
----
-1277085

skipif mysql # not compatible
query I rowsort label-975
SELECT COUNT ( * ) + + + COUNT ( - 7 ) + + 90 * + 30 * ( + SUM ( - 43 ) ) * - - 11 + + 13 AS col2
----
-1277085

query II rowsort
SELECT + 57 * 34 * 64 + + 96 + - 92, 91 AS col1
----
124036
91

query I rowsort
SELECT 27 * + - 78 AS col1
----
-2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT DISTINCT 45 * - CAST( NULL AS SIGNED ) / 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT 45 * - CAST ( NULL AS INTEGER ) / 8 AS col2
----
NULL

query I rowsort
SELECT ALL + 19 * + 15 - + COALESCE ( + 66, - 72 + 61 * 43 ) AS col1
----
219

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT ALL - 91 * CASE COUNT( * ) WHEN 47 THEN - ( - MAX( + 80 ) ) * - ( + - 5 ) END, 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-980
SELECT ALL - 91 * CASE COUNT ( * ) WHEN 47 THEN - ( - MAX ( + 80 ) ) * - ( + - 5 ) END, 28 AS col0
----
NULL
28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT ALL + 17 + - 92 * - - 88 + + 17 - + 29 / + NULLIF ( ( 24 ), - CAST( NULL AS SIGNED ) ) / - + 16 * - CAST( NULL AS SIGNED ) * 77 * 53 + + + ( + 83 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + 17 + - 92 * - - 88 + + 17 - + 29 / + NULLIF ( ( 24 ), - CAST ( NULL AS INTEGER ) ) / - + 16 * - CAST ( NULL AS INTEGER ) * 77 * 53 + + + ( + 83 ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 0 * 79 - - 79 * 52 * + - 2 col2
----
-8216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-984
SELECT ALL + CASE - 80 WHEN - 50 THEN - 74 WHEN + 96 THEN - - 81 * + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + CASE - 80 WHEN - 50 THEN - 74 WHEN + 96 THEN - - 81 * + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-986
SELECT 45 * - 30 DIV - 5, ( - CAST( NULL AS SIGNED ) ) col1
----
270
NULL

skipif mysql # not compatible
query II rowsort label-986
SELECT 45 * - 30 / - 5, ( - CAST ( NULL AS INTEGER ) ) col1
----
270
NULL

query I rowsort
SELECT 55 + 58 * + - 76 + + 90
----
-4263

query II rowsort
SELECT ALL 90 AS col2, 96
----
90
96

query I rowsort
SELECT 64 + - 1
----
63

query I rowsort
SELECT DISTINCT + 51 * + - 42 * + 94
----
-201348

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

query I rowsort
SELECT ALL - 33 * 61
----
-2013

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT ALL - 24 * + + ( + CAST( + 84 AS SIGNED ) )
----
-2016

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - 24 * + + ( + CAST ( + 84 AS INTEGER ) )
----
-2016

query II rowsort
SELECT 60 * - 22 * 18 AS col1, + 92 col1
----
-23760
92

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT ALL 62, 32 + + MAX( DISTINCT + 65 ) AS col2
----
62
97

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL 62, 32 + + MAX ( DISTINCT + 65 ) AS col2
----
62
97

query I rowsort
SELECT ALL - 34 * - 32
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT MIN( DISTINCT + + 63 ) + + ( + + 43 ) - + 52
----
54

skipif mysql # not compatible
query I rowsort label-998
SELECT MIN ( DISTINCT + + 63 ) + + ( + + 43 ) - + 52
----
54

query I rowsort
SELECT DISTINCT - 7 + - 72 AS col2
----
-79

query I rowsort
SELECT 63 * - 74 AS col1
----
-4662

query I rowsort
SELECT 98 + - 94 + - 15 + + 14
----
3

query I rowsort
SELECT ALL - 89 + 31
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL - 58 * SUM( ALL - + ( - 79 ) )
----
-4582

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - 58 * SUM ( ALL - + ( - 79 ) )
----
-4582

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT ALL - 24 * 64 * + 4 + + - 61 + - COUNT( * ) col1, - 20 AS col1
----
-6206
-20

skipif mysql # not compatible
query II rowsort label-1006
SELECT ALL - 24 * 64 * + 4 + + - 61 + - COUNT ( * ) col1, - 20 AS col1
----
-6206
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1007
SELECT - 77 * - CAST( - 1 AS SIGNED ) * - - 33 + + 53 + - MAX( - 11 ) * 48
----
-1960

skipif mysql # not compatible
query I rowsort label-1007
SELECT - 77 * - CAST ( - 1 AS INTEGER ) * - - 33 + + 53 + - MAX ( - 11 ) * 48
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT + 56 * + ( MAX( DISTINCT + + 89 ) ) + - - 17
----
5001

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT + 56 * + ( MAX ( DISTINCT + + 89 ) ) + - - 17
----
5001

onlyif mysql # DIV for integer division: 
query II rowsort label-1009
SELECT + 42 col0, + 56 * 4 DIV - 32
----
42
-7

skipif mysql # not compatible
query II rowsort label-1009
SELECT + 42 col0, + 56 * 4 / - 32
----
42
-7

query I rowsort
SELECT DISTINCT + 45 * + 54 * - NULLIF ( + 69, + 94 + - - 71 ) + - 92 AS col1
----
-167762

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

query I rowsort
SELECT ALL + 32 + + - 61 col0
----
-29

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1014
SELECT MAX( DISTINCT 2 ) * + 31 * 17 + - + 44 DIV - 72 + 67 * + CAST( COUNT( * ) AS SIGNED )
----
1121

skipif mysql # not compatible
query I rowsort label-1014
SELECT MAX ( DISTINCT 2 ) * + 31 * 17 + - + 44 / - 72 + 67 * + CAST ( COUNT ( * ) AS INTEGER )
----
1121

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT 21 DIV 93 * + 81
----
0

skipif mysql # not compatible
query I rowsort label-1015
SELECT 21 / 93 * + 81
----
0

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

skipif mysql # not compatible
query II rowsort label-1016
SELECT ALL - COUNT ( * ) AS col0, - 84
----
-1
-84

query I rowsort
SELECT CASE WHEN NOT NULL IS NULL THEN NULL ELSE + 44 END AS col1
----
44

query I rowsort
SELECT ALL + 71 - - 92 + ( 58 ) AS col0
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT 70 * - MIN( - 96 ) * - + 76
----
-510720

skipif mysql # not compatible
query I rowsort label-1019
SELECT 70 * - MIN ( - 96 ) * - + 76
----
-510720

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT + COUNT( * ) - + + 84 * + + 65
----
-5459

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT + COUNT ( * ) - + + 84 * + + 65
----
-5459

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT DISTINCT ( 25 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT ( 25 ) / - 76
----
0

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

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

query I rowsort
SELECT + COALESCE ( + 2, + - ( + 64 ) ) col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1024
SELECT DISTINCT 87 AS col0, + 87 * COUNT( * )
----
87
87

skipif mysql # not compatible
query II rowsort label-1024
SELECT DISTINCT 87 AS col0, + 87 * COUNT ( * )
----
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT - MAX( + - 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1025
SELECT - MAX ( + - 10 ) AS col1
----
10

query I rowsort
SELECT ALL 14 * + 67 * 72
----
67536

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL MAX( - 25 ) * - - 67 AS col0
----
-1675

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL MAX ( - 25 ) * - - 67 AS col0
----
-1675

query I rowsort
SELECT - COALESCE ( + 71, 16, - NULLIF ( 16, - + 15 + 56 ) * - + 35 ) AS col1
----
-71

query II rowsort
SELECT 92, - 7 AS col1
----
92
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT + 89 * - - CAST( NULL AS SIGNED ) / 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT + 89 * - - CAST ( NULL AS INTEGER ) / 99 AS col2
----
NULL

query II rowsort
SELECT 0 AS col1, 26 AS col1
----
0
26

query I rowsort
SELECT ALL 54 + + 26 AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1034
SELECT + 60 + + 40 + 77 - - COUNT( * ) DIV - 35 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-1034
SELECT + 60 + + 40 + 77 - - COUNT ( * ) / - 35 AS col1
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1035
SELECT ALL 60, ( - + 52 ) DIV - COUNT( - + 98 ) + 80 DIV - COUNT( * ) - + + 62 + 52 AS col2, - 61 + 35 * - 99 * + ( 79 ) AS col1
----
60
-38
-273796

skipif mysql # not compatible
query III rowsort label-1035
SELECT ALL 60, ( - + 52 ) / - COUNT ( - + 98 ) + 80 / - COUNT ( * ) - + + 62 + 52 AS col2, - 61 + 35 * - 99 * + ( 79 ) AS col1
----
60
-38
-273796

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + 36 + - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-1036
SELECT + 36 + - + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query III rowsort label-1037
SELECT - 13 AS col0, + 81, - CASE - 97 WHEN + 89 - 69 THEN NULL WHEN - MAX( DISTINCT 3 ) THEN + 46 ELSE 3 END + + 84
----
-13
81
81

skipif mysql # not compatible
query III rowsort label-1037
SELECT - 13 AS col0, + 81, - CASE - 97 WHEN + 89 - 69 THEN NULL WHEN - MAX ( DISTINCT 3 ) THEN + 46 ELSE 3 END + + 84
----
-13
81
81

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

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

query II rowsort
SELECT DISTINCT 19, 48 AS col2
----
19
48

query I rowsort
SELECT DISTINCT + 57 + - 37 * + CASE WHEN NOT ( NULL NOT IN ( - 59 ) ) THEN 87 END AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT - ( + - 65 ) + - 11 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1044
SELECT - 81 AS col0, - 20 AS col0, - ( - CASE COUNT( * ) WHEN - 17 + + 93 + + COALESCE ( - 9, + COUNT( * ) + 31 * CASE WHEN NOT + COUNT( * ) NOT BETWEEN + ( + CAST( - ( + + 79 ) AS SIGNED ) ) AND NULL THEN 77 ELSE NULL END, 42 * COUNT( * ) + + + 48 ) - - 33 THEN + COUNT( * ) WHEN 69 THEN NULL WHEN 42 + - 73 THEN - - 96 END )
----
-81
-20
NULL

skipif mysql # not compatible
query III rowsort label-1044
SELECT - 81 AS col0, - 20 AS col0, - ( - CASE COUNT ( * ) WHEN - 17 + + 93 + + COALESCE ( - 9, + COUNT ( * ) + 31 * CASE WHEN NOT + COUNT ( * ) NOT BETWEEN + ( + CAST ( - ( + + 79 ) AS INTEGER ) ) AND NULL THEN 77 ELSE NULL END, 42 * COUNT ( * ) + + + 48 ) - - 33 THEN + COUNT ( * ) WHEN 69 THEN NULL WHEN 42 + - 73 THEN - - 96 END )
----
-81
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL - 18 + + + ( - + COUNT( * ) ) * + 78
----
-96

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - 18 + + + ( - + COUNT ( * ) ) * + 78
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + ( - + COUNT( ALL 69 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1046
SELECT + ( - + COUNT ( ALL 69 ) )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1047
SELECT + COUNT ( ALL 71 ) * + 10 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1048
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ), + COALESCE ( + + 55, COALESCE ( + 0, + CASE + - CAST( + 81 AS SIGNED ) WHEN + + 89 THEN COALESCE ( - 50, - + 56 ) * + COUNT( * ) * - + 9 * - - 66 + + CAST( NULL AS SIGNED ) + 67 WHEN - 21 * + AVG ( - 35 ) * 64 * - + 6 THEN NULL ELSE 30 DIV - - 39 * + 27 + + - NULLIF ( + - 11, + ( - + COUNT( * ) ) ) - + - ( 97 ) END * + 42 ), - 47 - - 51, ( - CAST( NULL AS SIGNED ) ) ) - + COALESCE ( - 72, 16 ) col0
----
NULL
127

skipif mysql # not compatible
query II rowsort label-1048
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ), + COALESCE ( + + 55, COALESCE ( + 0, + CASE + - CAST ( + 81 AS INTEGER ) WHEN + + 89 THEN COALESCE ( - 50, - + 56 ) * + COUNT ( * ) * - + 9 * - - 66 + + CAST ( NULL AS INTEGER ) + 67 WHEN - 21 * + AVG ( - 35 ) * 64 * - + 6 THEN NULL ELSE 30 / - - 39 * + 27 + + - NULLIF ( + - 11, + ( - + COUNT ( * ) ) ) - + - ( 97 ) END * + 42 ), - 47 - - 51, ( - CAST ( NULL AS INTEGER ) ) ) - + COALESCE ( - 72, 16 ) col0
----
NULL
127

query I rowsort
SELECT - 49 * - - 35
----
-1715

query II rowsort
SELECT ALL + - 18 col0, + COALESCE ( 33, 49 )
----
-18
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT + + MAX( DISTINCT + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + + MAX ( DISTINCT + 93 ) AS col1
----
93

query I rowsort
SELECT - - 55 - - 9 + - 92 * + 24
----
-2144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1053
SELECT DISTINCT + 87 AS col1, 33 * CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-1053
SELECT DISTINCT + 87 AS col1, 33 * CAST ( NULL AS INTEGER )
----
87
NULL

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

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL + + 85 AS col0, - COUNT ( * ) - - - CAST ( NULL AS INTEGER )
----
85
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT - 28 DIV - 45 * - 73 + - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-1056
SELECT - 28 / - 45 * - 73 + - + 72
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1057
SELECT DISTINCT + 58 DIV + + 15 + - + 63 + - 52 + + COUNT( * ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT + 58 / + + 15 + - + 63 + - 52 + + COUNT ( * ) AS col1
----
-111

query II rowsort
SELECT + + 82 AS col2, - 39 AS col1
----
82
-39

query I rowsort
SELECT - 90 * 89 - + 79 AS col2
----
-8089

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1060
SELECT + 65 * - ( + + 83 ) - - + CAST( NULL AS DECIMAL ) AS col2, - 10 AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-1060
SELECT + 65 * - ( + + 83 ) - - + CAST ( NULL AS REAL ) AS col2, - 10 AS col0
----
NULL
-10

query I rowsort
SELECT ALL - 50 * + NULLIF ( + 40, - + 0 ) AS col2
----
-2000

query I rowsort
SELECT - 11 * + 60 + - ( + 32 ) + + - 64 + - + ( 72 )
----
-828

query I rowsort
SELECT + + NULLIF ( - - 78, - - 64 ) - 9 AS col1
----
69

query II rowsort
SELECT + 83 col1, 51 * 93
----
83
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - - 68 * + - 47 + + - CASE - 64 WHEN + COUNT( * ) THEN + 28 - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT - - 68 * + - 47 + + - CASE - 64 WHEN + COUNT ( * ) THEN + 28 - 29 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 6 * + 50 + - ( - - COALESCE ( - 79, - 24, - - 72 ) )
----
-221

query I rowsort
SELECT COALESCE ( - - 56, 69 * - 44 + - 18 + + 11 )
----
56

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT DISTINCT 59 * - - 1 DIV + 88 * + MAX( COALESCE ( + 18, - 49, ( 27 ) + - 53 ) ) + 94 + - - 4 - + - 13
----
111

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT 59 * - - 1 / + 88 * + MAX ( COALESCE ( + 18, - 49, ( 27 ) + - 53 ) ) + 94 + - - 4 - + - 13
----
111

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT + 9 * - CAST( NULL AS SIGNED ) + + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT + 9 * - CAST ( NULL AS INTEGER ) + + + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT + NULLIF ( - 98, + + 84 ) + + - CASE + 22 WHEN - - 39 THEN + 1 / + - 16 * + 7 ELSE AVG ( + - 75 ) END - + CASE + SUM( DISTINCT - 54 ) WHEN - 56 THEN ( + 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT + NULLIF ( - 98, + + 84 ) + + - CASE + 22 WHEN - - 39 THEN + 1 / + - 16 * + 7 ELSE AVG ( + - 75 ) END - + CASE + SUM ( DISTINCT - 54 ) WHEN - 56 THEN ( + 9 ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT ALL 24 + - - NULLIF ( 95, 25 * - 96 * - 47 ) - - 71 + + - CASE - COUNT( * ) WHEN + 46 - + 51 THEN + 3 WHEN + CASE - + 72 WHEN - + 82 - + COUNT( * ) THEN SUM( DISTINCT 59 ) * + ( - SUM( ALL + CAST( NULL AS SIGNED ) ) ) ELSE + 22 + + 32 + + - 60 END + 80 THEN + - MIN( - 40 ) END * - COUNT( DISTINCT - - 20 ) + + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL 24 + - - NULLIF ( 95, 25 * - 96 * - 47 ) - - 71 + + - CASE - COUNT ( * ) WHEN + 46 - + 51 THEN + 3 WHEN + CASE - + 72 WHEN - + 82 - + COUNT ( * ) THEN SUM ( DISTINCT 59 ) * + ( - SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) ELSE + 22 + + 32 + + - 60 END + 80 THEN + - MIN ( - 40 ) END * - COUNT ( DISTINCT - - 20 ) + + - 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1075
SELECT - COALESCE ( + 91, 98, + CAST( NULL AS SIGNED ) DIV - 11 )
----
-91

skipif mysql # not compatible
query I rowsort label-1075
SELECT - COALESCE ( + 91, 98, + CAST ( NULL AS INTEGER ) / - 11 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL COUNT( * ) + + COALESCE ( - - 33, + + COUNT( NULLIF ( - 9, 37 ) ) + - 58 ) * + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL COUNT ( * ) + + COALESCE ( - - 33, + + COUNT ( NULLIF ( - 9, 37 ) ) + - 58 ) * + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT + NULLIF ( - 17, COUNT( * ) / - MIN( - 74 ) ) * 36 * 35 AS col2
----
-21420

skipif mysql # not compatible
query I rowsort label-1077
SELECT + NULLIF ( - 17, COUNT ( * ) / - MIN ( - 74 ) ) * 36 * 35 AS col2
----
-21420

query I rowsort
SELECT DISTINCT 29 + 62 * + 92
----
5733

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT - CAST( - + NULLIF ( - 95, - COUNT( * ) + + 45 - - - 78 ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-1080
SELECT - CAST ( - + NULLIF ( - 95, - COUNT ( * ) + + 45 - - - 78 ) AS INTEGER )
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1081
SELECT + 50 * + CASE - 99 WHEN ( 66 ) + - ( + AVG ( - 49 ) ) / + - 55 THEN - 26 * - CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT + 50 * + CASE - 99 WHEN ( 66 ) + - ( + AVG ( - 49 ) ) / + - 55 THEN - 26 * - CAST ( NULL AS REAL ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT DISTINCT 12 - COALESCE ( + COUNT( * ), + 37 + 46 DIV + COUNT( * ) - + 4, - - 72 )
----
11

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT 12 - COALESCE ( + COUNT ( * ), + 37 + 46 / + COUNT ( * ) - + 4, - - 72 )
----
11

query I rowsort
SELECT ALL NULLIF ( - 89, + 59 ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT + + ( + CAST( - + 43 AS SIGNED ) ) * + ( - 76 )
----
3268

skipif mysql # not compatible
query I rowsort label-1084
SELECT + + ( + CAST ( - + 43 AS INTEGER ) ) * + ( - 76 )
----
3268

query I rowsort
SELECT ALL + + 84 - 41 * + 49
----
-1925

query II rowsort
SELECT ( - - 89 ) AS col2, - 17
----
89
-17

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT - 22 + - - 59 AS col2, 15 * + 81 + - + 10 + + COUNT( ALL + ( 31 ) ) AS col0
----
37
1206

skipif mysql # not compatible
query II rowsort label-1090
SELECT - 22 + - - 59 AS col2, 15 * + 81 + - + 10 + + COUNT ( ALL + ( 31 ) ) AS col0
----
37
1206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1091
SELECT ALL 92 * - 4 * + - 29 * AVG ( ALL + CAST( NULL AS SIGNED ) ) + - - 61 * 25 * - + COUNT( * ) * + CASE - - 6 WHEN + 32 THEN + COUNT( * ) * COALESCE ( - ( + + 11 ), + MAX( + + 83 ) + - 79 * 61 + - COUNT( * ) ) * + 34 WHEN - ( - + 74 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 92 * - 4 * + - 29 * AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - - 61 * 25 * - + COUNT ( * ) * + CASE - - 6 WHEN + 32 THEN + COUNT ( * ) * COALESCE ( - ( + + 11 ), + MAX ( + + 83 ) + - 79 * 61 + - COUNT ( * ) ) * + 34 WHEN - ( - + 74 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + + 7 col0
----
7

query II rowsort
SELECT ALL + 80 * + 3 AS col2, 43 AS col0
----
240
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ( - 49 ) + + - 86 + MIN( ALL + - 59 )
----
-194

skipif mysql # not compatible
query I rowsort label-1094
SELECT ( - 49 ) + + - 86 + MIN ( ALL + - 59 )
----
-194

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT + 15 DIV 93 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 15 / 93 * - 69
----
0

query I rowsort
SELECT ALL - 38 + + 44 AS col2
----
6

query I rowsort
SELECT ALL + 74 * - NULLIF ( 43, + 97 ) * - COALESCE ( + 75, + 88 + + 74 ) + - 23
----
238627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT 64 DIV - SUM( ALL 19 ) * - MAX( DISTINCT - + 1 )
----
-3

skipif mysql # not compatible
query I rowsort label-1098
SELECT 64 / - SUM ( ALL 19 ) * - MAX ( DISTINCT - + 1 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1099
SELECT ALL + CAST( NULL AS SIGNED ) + + - MAX( - 68 ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1099
SELECT ALL + CAST ( NULL AS INTEGER ) + + - MAX ( - 68 ) AS col2, 60
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT DISTINCT + 93 DIV + - 80
----
-1

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + 93 / + - 80
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT 2 * - 76 DIV - + 5 - - + 57
----
87

skipif mysql # not compatible
query I rowsort label-1101
SELECT 2 * - 76 / - + 5 - - + 57
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT 44, NULLIF ( + 89, - + 60 * 67 + 26 + - 12 + + COUNT( * ) + + + 60 ) * + 27 * - ( COUNT( * ) ) * - SUM( - 36 ) AS col0
----
44
-86508

skipif mysql # not compatible
query II rowsort label-1102
SELECT 44, NULLIF ( + 89, - + 60 * 67 + 26 + - 12 + + COUNT ( * ) + + + 60 ) * + 27 * - ( COUNT ( * ) ) * - SUM ( - 36 ) AS col0
----
44
-86508

onlyif mysql # aggregate syntax: 
query II rowsort label-1103
SELECT + 97 AS col1, ( - 39 ) * - + COUNT( * ) - - - 6
----
97
33

skipif mysql # not compatible
query II rowsort label-1103
SELECT + 97 AS col1, ( - 39 ) * - + COUNT ( * ) - - - 6
----
97
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT ALL + 75 + - CAST( + 79 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + 75 + - CAST ( + 79 AS INTEGER )
----
-4

query I rowsort
SELECT 63 * 84
----
5292

query II rowsort
SELECT DISTINCT 7, 59 AS col2
----
7
59

query I rowsort
SELECT 79 - 21 col0
----
58

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

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

query I rowsort
SELECT ALL + 3 + - + 92
----
-89

query II rowsort
SELECT - 69 AS col1, - 82 AS col1
----
-69
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - 40 + + COALESCE ( - 19, COUNT( * ), + - 94 ) + + 43 * 10 AS col1
----
371

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - 40 + + COALESCE ( - 19, COUNT ( * ), + - 94 ) + + 43 * 10 AS col1
----
371

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT 78 + + + ( + COUNT( - - 91 ) ), 91 * - ( + 58 ) * 50 AS col2
----
79
-263900

skipif mysql # not compatible
query II rowsort label-1112
SELECT 78 + + + ( + COUNT ( - - 91 ) ), 91 * - ( + 58 ) * 50 AS col2
----
79
-263900

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT COALESCE ( - + COUNT( * ), - - 46 + + - 39 ) * + 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1113
SELECT COALESCE ( - + COUNT ( * ), - - 46 + + - 39 ) * + 53 AS col0
----
-53

query II rowsort
SELECT ALL 79, + 51 col1
----
79
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + 48 + + - 66 + - SUM( ALL - 71 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1115
SELECT + 48 + + - 66 + - SUM ( ALL - 71 ) AS col2
----
53

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

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

query I rowsort
SELECT ALL + 36 - - 52
----
88

query I rowsort
SELECT 50 * - - 42 * - 22 AS col0
----
-46200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1119
SELECT ALL + COUNT( * ) DIV + 66 * + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + COUNT ( * ) / + 66 * + 32 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1120
SELECT 96 * + 37 * + 98 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT 96 * + 37 * + 98 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - 97 + - 98 * NULLIF ( 1, + NULLIF ( + COUNT( DISTINCT - + 67 ), - CASE AVG ( DISTINCT + 81 ) WHEN - COALESCE ( 32, - - ( + + 16 ), - + SUM( - 40 ) ) / - - COUNT( * ) + - 54 + + 45 + - - 92 THEN - + 99 * - - 28 * - + COUNT( * ) + + ( 2 ) + + 0 * - + COUNT( * ) - COUNT( * ) + COALESCE ( + + 52, + 27 ) * - - COUNT( * ) WHEN 57 + AVG ( DISTINCT - 39 ) THEN NULL END + 15 * 71 ) + - ( 62 ) )
----
-195

skipif mysql # not compatible
query I rowsort label-1121
SELECT - 97 + - 98 * NULLIF ( 1, + NULLIF ( + COUNT ( DISTINCT - + 67 ), - CASE AVG ( DISTINCT + 81 ) WHEN - COALESCE ( 32, - - ( + + 16 ), - + SUM ( - 40 ) ) / - - COUNT ( * ) + - 54 + + 45 + - - 92 THEN - + 99 * - - 28 * - + COUNT ( * ) + + ( 2 ) + + 0 * - + COUNT ( * ) - COUNT ( * ) + COALESCE ( + + 52, + 27 ) * - - COUNT ( * ) WHEN 57 + AVG ( DISTINCT - 39 ) THEN NULL END + 15 * 71 ) + - ( 62 ) )
----
-195

query I rowsort
SELECT ALL 67 * - + 46 AS col0
----
-3082

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT 89 + + + 85 + - + 75 DIV + 14 AS col0
----
169

skipif mysql # not compatible
query I rowsort label-1124
SELECT 89 + + + 85 + - + 75 / + 14 AS col0
----
169

query I rowsort
SELECT ALL 80 * 34
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT CASE - 97 WHEN - COUNT( * ) THEN - 0 WHEN - 59 THEN NULL END * - 71 * + MIN( DISTINCT 63 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT CASE - 97 WHEN - COUNT ( * ) THEN - 0 WHEN - 59 THEN NULL END * - 71 * + MIN ( DISTINCT 63 ) col0
----
NULL

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

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

query I rowsort
SELECT ALL - ( 17 ) * - + 89 + - + 48
----
1465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1129
SELECT - NULLIF ( 49, + COUNT( * ) ) AS col0, 14 DIV - ( 52 )
----
-49
0

skipif mysql # not compatible
query II rowsort label-1129
SELECT - NULLIF ( 49, + COUNT ( * ) ) AS col0, 14 / - ( 52 )
----
-49
0

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

query I rowsort
SELECT 99 * - 51 AS col0
----
-5049

onlyif mysql # aggregate syntax: 
query II rowsort label-1132
SELECT ALL - + 30 AS col0, + COUNT( * ) * + 85
----
-30
85

skipif mysql # not compatible
query II rowsort label-1132
SELECT ALL - + 30 AS col0, + COUNT ( * ) * + 85
----
-30
85

query I rowsort
SELECT DISTINCT + 90 + 57 * ( + - 23 )
----
-1221

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT ALL + MIN( + CAST( 21 AS SIGNED ) ) + - + COUNT( * ) - - COUNT( - 99 ) * 30
----
50

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + MIN ( + CAST ( 21 AS INTEGER ) ) + - + COUNT ( * ) - - COUNT ( - 99 ) * 30
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1136
SELECT + 22 * - COUNT( * ) + + - 47 - CAST( NULL AS SIGNED ) * - 31 * 81 + - 81 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 22 * - COUNT ( * ) + + - 47 - CAST ( NULL AS INTEGER ) * - 31 * 81 + - 81 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1137
SELECT ALL + ( + 78 ) + + 94 + 24 + 46 + 55 DIV + + 67 + - COUNT( * )
----
241

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + ( + 78 ) + + 94 + 24 + 46 + 55 / + + 67 + - COUNT ( * )
----
241

query I rowsort
SELECT ALL - - ( 2 ) AS col2
----
2

query I rowsort
SELECT ( + 40 ) + - - 48 col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT + 1 DIV - - 91 * 51 DIV + 74 - 42 col2
----
-42

skipif mysql # not compatible
query I rowsort label-1140
SELECT + 1 / - - 91 * 51 / + 74 - 42 col2
----
-42

query I rowsort
SELECT ALL - 34 + 88
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT + 0 * + + MAX( - 25 ) + + - 36 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 0 * + + MAX ( - 25 ) + + - 36 / - 73
----
0

query II rowsort
SELECT ALL + 71 + + 11 col2, + 30
----
82
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1144
SELECT DISTINCT 54 + - 4 DIV - COALESCE ( 16, COUNT( * ), 86, + - 35 ) + + 61 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT 54 + - 4 / - COALESCE ( 16, COUNT ( * ), 86, + - 35 ) + + 61 AS col2
----
115

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

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - COUNT ( * ) / 46 / - - ( 70 )
----
0

query I rowsort
SELECT 89 + - 55
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1147
SELECT + 56 * + 99 + 99 DIV + 55, 97 AS col0
----
5545
97

skipif mysql # not compatible
query II rowsort label-1147
SELECT + 56 * + 99 + 99 / + 55, 97 AS col0
----
5545
97

query II rowsort
SELECT 8 + - 25 AS col0, + 71
----
-17
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT COUNT( * ) + 6 - - 78
----
85

skipif mysql # not compatible
query I rowsort label-1150
SELECT COUNT ( * ) + 6 - - 78
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT DISTINCT ( 5 ), + 6 + + - COUNT( * )
----
5
5

skipif mysql # not compatible
query II rowsort label-1151
SELECT DISTINCT ( 5 ), + 6 + + - COUNT ( * )
----
5
5

query I rowsort
SELECT 65 * + - 59 * - + ( NULLIF ( 89, - 61 ) )
----
341315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1153
SELECT ALL - CASE - 14 WHEN COUNT( * ) DIV 6 * 69 THEN NULLIF ( + - 87, + 68 ) * + ( - 93 ) * ( + - CAST( COUNT( * ) AS SIGNED ) ) DIV + 73 + - + 95 ELSE - + 18 END AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - CASE - 14 WHEN COUNT ( * ) / 6 * 69 THEN NULLIF ( + - 87, + 68 ) * + ( - 93 ) * ( + - CAST ( COUNT ( * ) AS INTEGER ) ) / + 73 + - + 95 ELSE - + 18 END AS col2
----
18

query I rowsort
SELECT - COALESCE ( - - 33, + 14 * - - 70, + + 44 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + NULLIF ( - 96, COUNT( * ) + - - 67 ) * - NULLIF ( - 9, + + COUNT( DISTINCT + NULLIF ( + ( 13 ), - 15 * 80 ) ) + + 35 ) * 82
----
-70848

skipif mysql # not compatible
query I rowsort label-1155
SELECT + NULLIF ( - 96, COUNT ( * ) + - - 67 ) * - NULLIF ( - 9, + + COUNT ( DISTINCT + NULLIF ( + ( 13 ), - 15 * 80 ) ) + + 35 ) * 82
----
-70848

query II rowsort
SELECT 75 + - + 50, - 53 col0
----
25
-53

query I rowsort
SELECT - 57 + 15
----
-42

query I rowsort
SELECT + 27 + - 47 + + + 55 + - 89 * + - 42 * 71
----
265433

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - CASE - 68 WHEN - 43 THEN 76 / - 15 WHEN - + 58 / + - 67 THEN + + COUNT( * ) WHEN + + COUNT( * ) + - 16 + - 80 THEN NULL END / + + 59 / + 98 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT - CASE - 68 WHEN - 43 THEN 76 / - 15 WHEN - + 58 / + - 67 THEN + + COUNT ( * ) WHEN + + COUNT ( * ) + - 16 + - 80 THEN NULL END / + + 59 / + 98 + 83
----
NULL

query I rowsort
SELECT ALL - - 95 + + 34
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT DISTINCT - 30 * - - 67 + + 40 DIV 80
----
-2010

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT - 30 * - - 67 + + 40 / 80
----
-2010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT + + COUNT( 95 ) + CASE COUNT( * ) WHEN + 78 * + 81 THEN - COALESCE ( + 85, 50 + + + 0 + + + 96 + - 69, - ( + - 96 ), + CASE - AVG ( ALL - + 5 ) WHEN + 86 THEN - 30 - + NULLIF ( + - MAX( ALL 21 ), + 36 ) / + CAST( NULL AS SIGNED ) ELSE NULL END ) WHEN CASE WHEN NULL IS NOT NULL THEN - 27 END - - 88 / 71 * + 54 + + - 9 + + 5 + + COUNT( ALL ( COALESCE ( - 89, - 18, 2 ) ) ) * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT + + COUNT ( 95 ) + CASE COUNT ( * ) WHEN + 78 * + 81 THEN - COALESCE ( + 85, 50 + + + 0 + + + 96 + - 69, - ( + - 96 ), + CASE - AVG ( ALL - + 5 ) WHEN + 86 THEN - 30 - + NULLIF ( + - MAX ( ALL 21 ), + 36 ) / + CAST ( NULL AS INTEGER ) ELSE NULL END ) WHEN CASE WHEN NULL IS NOT NULL THEN - 27 END - - 88 / 71 * + 54 + + - 9 + + 5 + + COUNT ( ALL ( COALESCE ( - 89, - 18, 2 ) ) ) * COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT + + SUM( DISTINCT - - 16 ) + + 35 - - - 57 * - 97 * + COALESCE ( COUNT( * ), - + 77 ) - - COUNT( * ) AS col0
----
5581

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT + + SUM ( DISTINCT - - 16 ) + + 35 - - - 57 * - 97 * + COALESCE ( COUNT ( * ), - + 77 ) - - COUNT ( * ) AS col0
----
5581

query I rowsort
SELECT ALL + 97 + + 87
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT 91 DIV 2 + 77 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-1165
SELECT 91 / 2 + 77 AS col2
----
122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1166
SELECT DISTINCT SUM( DISTINCT + 46 ) * 45 * - 77 * COUNT( * ) * - CAST( NULL AS DECIMAL ) - + 75 + CAST( NULL AS DECIMAL ) + - - 3 + 69 + COUNT( * ) * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT SUM ( DISTINCT + 46 ) * 45 * - 77 * COUNT ( * ) * - CAST ( NULL AS REAL ) - + 75 + CAST ( NULL AS REAL ) + - - 3 + 69 + COUNT ( * ) * - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + MAX( ALL 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1167
SELECT + MAX ( ALL 58 ) AS col1
----
58

query I rowsort
SELECT + COALESCE ( 81, - 65 * - 2 - - - 10 * + 42 + - 76 ) AS col0
----
81

query I rowsort
SELECT + COALESCE ( + 43, + 93 - - - 67 + 62 ) * - 12 AS col2
----
-516

query I rowsort
SELECT + 34 * + - 39 + - 22 col2
----
-1348

query II rowsort
SELECT ALL 47 * + 91 + - 77, 59 + - 10 * 20 + - 70 AS col1
----
4200
-211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1172
SELECT CASE + 90 WHEN + 85 * + 84 - - NULLIF ( + - 38, + - 56 + + + 4 + - + ( + + 68 ) + - 66 * - 49 ) * - 90 + 94 * 16 * - COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) * + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN - 6 / - 61 + + 16 * 55 * + - 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1172
SELECT CASE + 90 WHEN + 85 * + 84 - - NULLIF ( + - 38, + - 56 + + + 4 + - + ( + + 68 ) + - 66 * - 49 ) * - 90 + 94 * 16 * - COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN - 6 / - 61 + + 16 * 55 * + - 79 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1173
SELECT ALL - COUNT( * ) * - 13 + - - 31 + 69 + + 2 AS col1, 66 AS col2
----
115
66

skipif mysql # not compatible
query II rowsort label-1173
SELECT ALL - COUNT ( * ) * - 13 + - - 31 + 69 + + 2 AS col1, 66 AS col2
----
115
66

query I rowsort
SELECT ALL 59 * + 96 + - + 59 * - 99 AS col1
----
11505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT + CAST( NULL AS SIGNED ) * + CASE - 51 WHEN + 83 + 39 THEN + AVG ( DISTINCT 5 ) * - 69 + - + 79 + - - 39 - - 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT + CAST ( NULL AS INTEGER ) * + CASE - 51 WHEN + 83 + 39 THEN + AVG ( DISTINCT 5 ) * - 69 + - + 79 + - - 39 - - 4 END AS col2
----
NULL

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

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

query I rowsort
SELECT + 77 * 21 * - 80 AS col0
----
-129360

query I rowsort
SELECT DISTINCT 83 * - 55 AS col1
----
-4565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT + COUNT( * ) * + 56 - + CAST( NULL AS SIGNED ) - - + COALESCE ( 59, - - AVG ( + + 2 ), - 1, + 66 ) + - 75 * - 22 * + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + COUNT ( * ) * + 56 - + CAST ( NULL AS INTEGER ) - - + COALESCE ( 59, - - AVG ( + + 2 ), - 1, + 66 ) + - 75 * - 22 * + 6 AS col2
----
NULL

query I rowsort
SELECT + 41 * - 30 AS col2
----
-1230

query I rowsort
SELECT DISTINCT 47 * + + 74 * - 74 AS col0
----
-257372

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT SUM ( 87 )
----
87

query I rowsort
SELECT - + 64 * + 80 AS col2
----
-5120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1184
SELECT - 88 DIV + 15 + 38 * COALESCE ( + - 74, - 41 * 40, - - 26, - - COUNT( * ) ) AS col0
----
-2817

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 88 / + 15 + 38 * COALESCE ( + - 74, - 41 * 40, - - 26, - - COUNT ( * ) ) AS col0
----
-2817

query II rowsort
SELECT + 32 + - 41 * 34, - 64 col0
----
-1362
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT COUNT( * ) AS col2, 17 * - 96 + - 57 + - 5 + 40 + - COUNT( DISTINCT + 80 ) AS col2
----
1
-1655

skipif mysql # not compatible
query II rowsort label-1186
SELECT COUNT ( * ) AS col2, 17 * - 96 + - 57 + - 5 + 40 + - COUNT ( DISTINCT + 80 ) AS col2
----
1
-1655

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - + MIN( DISTINCT + 10 ) * 28 * - 15
----
4200

skipif mysql # not compatible
query I rowsort label-1187
SELECT - + MIN ( DISTINCT + 10 ) * 28 * - 15
----
4200

query I rowsort
SELECT DISTINCT - 34 + 93 AS col0
----
59

query I rowsort
SELECT ALL - 1 + - 15 AS col0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1190
SELECT - - 37 + - 83 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT - - 37 + - 83 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT - + CAST( + 89 AS SIGNED ) + + MIN( + 43 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1191
SELECT - + CAST ( + 89 AS INTEGER ) + + MIN ( + 43 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - SUM( ALL 80 ) + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1192
SELECT - SUM ( ALL 80 ) + + COUNT ( * )
----
-79

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

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

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

skipif mysql # not compatible
query I rowsort label-1194
SELECT + 43 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1195
SELECT DISTINCT MIN( ALL + - 90 ) DIV COUNT( * ) * + 80 + + 92 + - + 1 * - 58 + 38 AS col1
----
-7012

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT MIN ( ALL + - 90 ) / COUNT ( * ) * + 80 + + 92 + - + 1 * - 58 + 38 AS col1
----
-7012

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1196
SELECT ALL + CAST( NULL AS SIGNED ), 24 col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-1196
SELECT ALL + CAST ( NULL AS INTEGER ), 24 col1
----
NULL
24

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

query I rowsort
SELECT ALL 2 * 90 AS col0
----
180

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

skipif mysql # not compatible
query I rowsort label-1199
SELECT - COUNT ( * ) - - + 73 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT + COUNT( * ) * - 41 * 70 + 19 + - COUNT( * ) * - 48 * 93 AS col1
----
1613

skipif mysql # not compatible
query I rowsort label-1200
SELECT + COUNT ( * ) * - 41 * 70 + 19 + - COUNT ( * ) * - 48 * 93 AS col1
----
1613

query I rowsort
SELECT + CASE WHEN NOT - 30 IS NULL THEN - 45 + + - 2 END AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT ALL + 44 * COALESCE ( + COUNT( * ), - - 63 + + 3 + + COUNT( * ) * 52 - + + 32 + + 44 + - AVG ( + 72 ) DIV 6 * + - 83 + - ( - 48 ) + + + 9 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + 44 * COALESCE ( + COUNT ( * ), - - 63 + + 3 + + COUNT ( * ) * 52 - + + 32 + + 44 + - AVG ( + 72 ) / 6 * + - 83 + - ( - 48 ) + + + 9 ) AS col0
----
44

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

skipif mysql # not compatible
query I rowsort label-1203
SELECT + 77 / - + COUNT ( * )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1204
SELECT ( 67 ), CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-1204
SELECT ( 67 ), CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

query I rowsort
SELECT - 48 + 66 AS col0
----
18

query I rowsort
SELECT + 53 - + + 39 + - 78 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT + 12 DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT + 12 / - 71 AS col0
----
0

query I rowsort
SELECT + 48 * + - 93 + - 87 AS col0
----
-4551

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + CASE + MIN( ALL + 20 ) WHEN 33 + + 44 * - 31 THEN 9 + COALESCE ( - - COUNT( * ), + 66, + - 47 * 34 ) + + 71 WHEN - - 61 THEN - MAX( - 40 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT + CASE + MIN ( ALL + 20 ) WHEN 33 + + 44 * - 31 THEN 9 + COALESCE ( - - COUNT ( * ), + 66, + - 47 * 34 ) + + 71 WHEN - - 61 THEN - MAX ( - 40 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 0 + + 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL - 81 * + SUM( - - 53 ) col1
----
-4293

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - 81 * + SUM ( - - 53 ) col1
----
-4293

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

query I rowsort
SELECT + 94 + 25 * - - 97
----
2519

query I rowsort
SELECT + 70 + - + 6 + - 56 AS col1
----
8

query II rowsort
SELECT DISTINCT + 0 AS col2, - 17 col1
----
0
-17

query I rowsort
SELECT + 0 + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT DISTINCT + SUM( DISTINCT + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + SUM ( DISTINCT + 92 ) AS col0
----
92

query I rowsort
SELECT ALL - 52 + 98
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ALL + - 20 + - + SUM( - 51 ) * 20 + + 45 AS col0
----
1045

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + - 20 + - + SUM ( - 51 ) * 20 + + 45 AS col0
----
1045

query I rowsort
SELECT ALL - + ( + 6 ) + 59 - + 72
----
-19

query I rowsort
SELECT + 42 + - + 40 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT + NULLIF ( + COUNT( * ), - 49 + + 49 + COUNT( ALL + - 60 ) ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT + NULLIF ( + COUNT ( * ), - 49 + + 49 + COUNT ( ALL + - 60 ) ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL + - 53 * MIN( ALL - 2 ) * - 18 col2
----
-1908

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL + - 53 * MIN ( ALL - 2 ) * - 18 col2
----
-1908

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + 25 + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-1224
SELECT + 25 + + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT 12 * MIN( + 86 ) + + + 70 * - - 75
----
6282

skipif mysql # not compatible
query I rowsort label-1225
SELECT 12 * MIN ( + 86 ) + + + 70 * - - 75
----
6282

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL - COALESCE ( - COUNT( * ), NULLIF ( + COALESCE ( - - 51, - - 29 * - 39 * + 10 ), - 35 / + 74 ) * + 94 - + COUNT( * ) + 23 ) * - ( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - COALESCE ( - COUNT ( * ), NULLIF ( + COALESCE ( - - 51, - - 29 * - 39 * + 10 ), - 35 / + 74 ) * + 94 - + COUNT ( * ) + 23 ) * - ( + 73 )
----
-73

query I rowsort
SELECT ALL - 75 * 63
----
-4725

query I rowsort
SELECT 79 + 35
----
114

query I rowsort
SELECT ALL - 84 * 54 * + 58 col0
----
-263088

query I rowsort
SELECT 89 + + 26 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT - ( - - COUNT( * ) ) - + 1 - - 97 * + 74 * - - 66 + - 15 * - 65 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - ( - - COUNT ( * ) ) - + 1 - - 97 * + 74 * - - 66 + - 15 * - 65 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT 72 * - 67 * - - MAX( 63 )
----
-303912

skipif mysql # not compatible
query I rowsort label-1233
SELECT 72 * - 67 * - - MAX ( 63 )
----
-303912

query II rowsort
SELECT 8 * 67, 70 col1
----
536
70

query I rowsort
SELECT DISTINCT - CASE - 31 WHEN 30 THEN + - 23 - 93 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT ALL + ( + + ( - + ( - 26 ) ) ) DIV - SUM( - 36 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + ( + + ( - + ( - 26 ) ) ) / - SUM ( - 36 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1238
SELECT 98 * + COUNT( + CAST( + 28 AS DECIMAL ) )
----
98

skipif mysql # not compatible
query I rowsort label-1238
SELECT 98 * + COUNT ( + CAST ( + 28 AS REAL ) )
----
98

query II rowsort
SELECT ALL + 13 * - 87 AS col1, ( 50 ) col2
----
-1131
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1240
SELECT DISTINCT COALESCE ( - CASE CAST( 35 AS SIGNED ) WHEN MAX( + - 46 ) THEN + 15 * - - 87 END, + 28 ) * 54
----
1512

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT COALESCE ( - CASE CAST ( 35 AS INTEGER ) WHEN MAX ( + - 46 ) THEN + 15 * - - 87 END, + 28 ) * 54
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT DISTINCT - 68 + 18 + 35 + - 75 - + 15 - + 29 DIV + + 40 - - 5
----
-100

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT - 68 + 18 + 35 + - 75 - + 15 - + 29 / + + 40 - - 5
----
-100

query I rowsort
SELECT 97 * - 67
----
-6499

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT 9 DIV - + 1
----
-9

skipif mysql # not compatible
query I rowsort label-1243
SELECT 9 / - + 1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT - - COUNT( * ) * 83 - + 48 DIV 23 * - 49 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-1244
SELECT - - COUNT ( * ) * 83 - + 48 / 23 * - 49 AS col0
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1245
SELECT COALESCE ( COUNT( * ), - - ( - 54 ) * 98, - + 87 ) * - CAST( - + 74 AS SIGNED ) * - COUNT( * ) + - 81 AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-1245
SELECT COALESCE ( COUNT ( * ), - - ( - 54 ) * 98, - + 87 ) * - CAST ( - + 74 AS INTEGER ) * - COUNT ( * ) + - 81 AS col0
----
-155

query II rowsort
SELECT + 14 * - 20 col2, ( 22 )
----
-280
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1247
SELECT ALL ( - 84 ) + - - COUNT( * ) + - 40 - + 1 DIV - - ( - 32 ) * - + NULLIF ( - ( + 9 ), + 94 + + + 54 + - + 67 DIV + CAST( NULL AS DECIMAL ) * + + 83 ) * ( - + 5 )
----
-123

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL ( - 84 ) + - - COUNT ( * ) + - 40 - + 1 / - - ( - 32 ) * - + NULLIF ( - ( + 9 ), + 94 + + + 54 + - + 67 / + CAST ( NULL AS REAL ) * + + 83 ) * ( - + 5 )
----
-123

query I rowsort
SELECT ALL 81 + - - 19 col0
----
100

query I rowsort
SELECT - 50 - 30 col1
----
-80

query II rowsort
SELECT ALL 47 + + 36, - 22 col2
----
83
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + COUNT( * ) + 3 - + 18 * 57 * 74 col2
----
-75920

skipif mysql # not compatible
query I rowsort label-1251
SELECT + COUNT ( * ) + 3 - + 18 * 57 * 74 col2
----
-75920

query I rowsort
SELECT + 30 + + 4
----
34

query I rowsort
SELECT DISTINCT + ( - 1 ) * 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT 68 * + + 61 AS col2, + NULLIF ( + COUNT( * ), + + 53 * + COUNT( - 33 ) ) AS col1
----
4148
1

skipif mysql # not compatible
query II rowsort label-1254
SELECT 68 * + + 61 AS col2, + NULLIF ( + COUNT ( * ), + + 53 * + COUNT ( - 33 ) ) AS col1
----
4148
1

query I rowsort
SELECT ALL 97 - 36 * 66 col0
----
-2279

query I rowsort
SELECT ( + 93 ) + - + 74 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT - COUNT( DISTINCT + COALESCE ( + - ( 29 ), - 70 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1257
SELECT - COUNT ( DISTINCT + COALESCE ( + - ( 29 ), - 70 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1258
SELECT ALL 85, - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
85
NULL

skipif mysql # not compatible
query II rowsort label-1258
SELECT ALL 85, - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
85
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1259
SELECT 66, COUNT( * ) - - + SUM( DISTINCT + + 92 ) DIV 41 + - COUNT( * ) AS col0
----
66
2

skipif mysql # not compatible
query II rowsort label-1259
SELECT 66, COUNT ( * ) - - + SUM ( DISTINCT + + 92 ) / 41 + - COUNT ( * ) AS col0
----
66
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1260
SELECT ( SUM( ALL 96 ) ) DIV - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-1260
SELECT ( SUM ( ALL 96 ) ) / - COUNT ( * )
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT 8 DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-1261
SELECT 8 / 13
----
0

query II rowsort
SELECT ALL 48 AS col2, 61
----
48
61

query I rowsort
SELECT COALESCE ( - 82, 17 * 88 + + - 71 + - 83 * - 51 * - 12 * 45 * + 52 )
----
-82

query I rowsort
SELECT 7 * + COALESCE ( + 85, - 55 + - 78 - - 80 )
----
595

query II rowsort
SELECT ALL - 43 AS col0, 48
----
-43
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT 14 - + 53 DIV + 70 * + 10
----
14

skipif mysql # not compatible
query I rowsort label-1266
SELECT 14 - + 53 / + 70 * + 10
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT DISTINCT - CASE 22 WHEN - + CAST( - 16 AS SIGNED ) THEN 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT - CASE 22 WHEN - + CAST ( - 16 AS INTEGER ) THEN 52 END AS col0
----
NULL

query I rowsort
SELECT 18 * + + ( + 91 ) + - 87 AS col0
----
1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1269
SELECT ALL + ( + 68 ) * - + 22 * + - 62 + - - 80 - + - ( + 4 ) * - - CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
92828

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + ( + 68 ) * - + 22 * + - 62 + - - 80 - + - ( + 4 ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
92828

onlyif mysql # aggregate syntax: 
query II rowsort label-1270
SELECT 33 * SUM( DISTINCT - - 17 ) col0, + 1
----
561
1

skipif mysql # not compatible
query II rowsort label-1270
SELECT 33 * SUM ( DISTINCT - - 17 ) col0, + 1
----
561
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ( - 24 ) + 63 * - MAX( ALL + ( - - 95 ) ) * 53 + - 65
----
-317294

skipif mysql # not compatible
query I rowsort label-1271
SELECT ( - 24 ) + 63 * - MAX ( ALL + ( - - 95 ) ) * 53 + - 65
----
-317294

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT 18 * - 98 * 6 + COUNT( * ) * 67
----
-10517

skipif mysql # not compatible
query I rowsort label-1272
SELECT 18 * - 98 * 6 + COUNT ( * ) * 67
----
-10517

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT - 40 - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1273
SELECT - 40 - COUNT ( * ) AS col2
----
-41

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

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

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

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

query I rowsort
SELECT DISTINCT + + ( - - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT DISTINCT COUNT( * ) * - - 12 + 14
----
26

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT COUNT ( * ) * - - 12 + 14
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1278
SELECT ALL 66 * - 10 * 82 * COALESCE ( + + COUNT( * ), - + 1 DIV - + 12 ) + - 99 AS col2, + COUNT( * )
----
-54219
1

skipif mysql # not compatible
query II rowsort label-1278
SELECT ALL 66 * - 10 * 82 * COALESCE ( + + COUNT ( * ), - + 1 / - + 12 ) + - 99 AS col2, + COUNT ( * )
----
-54219
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL + - MAX( DISTINCT - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + - MAX ( DISTINCT - 59 ) AS col0
----
59

query I rowsort
SELECT ALL - 13 * + 79 AS col2
----
-1027

query II rowsort
SELECT DISTINCT + 2 * - 39 + 80 AS col1, - 70 + + 10 AS col0
----
2
-60

query I rowsort
SELECT ALL - - 74 - + 59 - + 37 AS col1
----
-22

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

skipif mysql # not compatible
query I rowsort label-1283
SELECT + + ( + NULLIF ( - COUNT ( * ), + + 85 + 66 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT - - 64 DIV - - 96 * + SUM( ( - 74 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1284
SELECT - - 64 / - - 96 * + SUM ( ( - 74 ) ) AS col1
----
0

query I rowsort
SELECT ALL - 53 * - + 26 AS col1
----
1378

query I rowsort
SELECT - + 89 * - + 39
----
3471

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1287
SELECT + 84 + + 91 DIV + - 35 + 37, 43 + - + 31 + - - ( + 55 ) + + 14 - - - CAST( NULL AS DECIMAL ) * - 75 * + + 61 * + + 22 AS col2
----
119
NULL

skipif mysql # not compatible
query II rowsort label-1287
SELECT + 84 + + 91 / + - 35 + 37, 43 + - + 31 + - - ( + 55 ) + + 14 - - - CAST ( NULL AS REAL ) * - 75 * + + 61 * + + 22 AS col2
----
119
NULL

query I rowsort
SELECT ALL - COALESCE ( + - 2, ( + 81 ) ) - - 26
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL MAX( ALL + - COALESCE ( + 20, + + 34 ) ) - + 83
----
-103

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL MAX ( ALL + - COALESCE ( + 20, + + 34 ) ) - + 83
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + MAX( ALL + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1290
SELECT + MAX ( ALL + 91 ) AS col1
----
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT + 84 + - 37 + - 83 * - 83 * 91 * - + CAST( - COUNT( * ) AS SIGNED ) * - + MAX( + ( 40 ) )
----
-25075913

skipif mysql # not compatible
query I rowsort label-1292
SELECT + 84 + - 37 + - 83 * - 83 * 91 * - + CAST ( - COUNT ( * ) AS INTEGER ) * - + MAX ( + ( 40 ) )
----
-25075913

query II rowsort
SELECT DISTINCT ( 37 ) AS col0, - 59 AS col1
----
37
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT + CAST( + 95 AS SIGNED ) * 25 + COUNT( * )
----
2376

skipif mysql # not compatible
query I rowsort label-1294
SELECT + CAST ( + 95 AS INTEGER ) * 25 + COUNT ( * )
----
2376

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

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

query I rowsort
SELECT + 31 + - 20
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT + 40 * - 29 * - COUNT( * ) * + 70 AS col0
----
81200

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT + 40 * - 29 * - COUNT ( * ) * + 70 AS col0
----
81200

onlyif mysql # aggregate syntax: 
query II rowsort label-1298
SELECT ALL COUNT( * ) + 68 AS col0, 31 AS col1
----
69
31

skipif mysql # not compatible
query II rowsort label-1298
SELECT ALL COUNT ( * ) + 68 AS col0, 31 AS col1
----
69
31

query I rowsort
SELECT ALL 83 * 21
----
1743

query I rowsort
SELECT DISTINCT 42 + - ( + 35 ) + + 82
----
89

query I rowsort
SELECT ALL + ( - - ( - 34 ) ) + - 95 AS col0
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1302
SELECT + 71 + + CAST( + 26 AS SIGNED ) DIV 46 DIV 54 * 59 DIV - 89 + + 86 DIV COUNT( * ) - - + 46 * + ( - COALESCE ( + 4, + + 11 ) ) + - 77 col0
----
-104

skipif mysql # not compatible
query I rowsort label-1302
SELECT + 71 + + CAST ( + 26 AS INTEGER ) / 46 / 54 * 59 / - 89 + + 86 / COUNT ( * ) - - + 46 * + ( - COALESCE ( + 4, + + 11 ) ) + - 77 col0
----
-104

onlyif mysql # DIV for integer division: 
query II rowsort label-1303
SELECT + 47 DIV - 59 AS col1, 56 * + 52 * - 57 col2
----
0
-165984

skipif mysql # not compatible
query II rowsort label-1303
SELECT + 47 / - 59 AS col1, 56 * + 52 * - 57 col2
----
0
-165984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1304
SELECT + 59 * - + 87 * 23 * COALESCE ( + CAST( - + COUNT( * ) AS SIGNED ), - 20 + - ( CAST( NULL AS SIGNED ) ) DIV 24 DIV 86, 76 )
----
118059

skipif mysql # not compatible
query I rowsort label-1304
SELECT + 59 * - + 87 * 23 * COALESCE ( + CAST ( - + COUNT ( * ) AS INTEGER ), - 20 + - ( CAST ( NULL AS INTEGER ) ) / 24 / 86, 76 )
----
118059

query II rowsort
SELECT ( - - 83 ) AS col2, ( ( + 6 ) )
----
83
6

query I rowsort
SELECT - 35 * + + 23 + + 8 AS col0
----
-797

query I rowsort
SELECT ( 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT + 11 DIV 85 DIV 73 * - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1308
SELECT + 11 / 85 / 73 * - 9 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT 87 / AVG ( ( - 41 ) ) + ( - 5 ) + NULLIF ( - - CAST( NULL AS SIGNED ), + 25 + - 3 ) + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT 87 / AVG ( ( - 41 ) ) + ( - 5 ) + NULLIF ( - - CAST ( NULL AS INTEGER ), + 25 + - 3 ) + - 12 AS col2
----
NULL

query I rowsort
SELECT + + 3 * 37 AS col1
----
111

query I rowsort
SELECT + - 28 * + 32 AS col1
----
-896

query I rowsort
SELECT DISTINCT + 17 * - 90
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT + 72 * - 9 * - ( + + COUNT( * ) )
----
648

skipif mysql # not compatible
query I rowsort label-1313
SELECT + 72 * - 9 * - ( + + COUNT ( * ) )
----
648

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

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

query I rowsort
SELECT - 68 * - NULLIF ( - + 39, 53 * + + 67 * - 38 ) AS col1
----
-2652

query I rowsort
SELECT - + 2 * 41 AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT - ( - + CAST( - 32 AS SIGNED ) ) + + 4 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1317
SELECT - ( - + CAST ( - 32 AS INTEGER ) ) + + 4 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL + 63 * - 99 - - 53 + - NULLIF ( - 48, - 54 - - + 46 ) * - CASE 55 WHEN + COUNT( * ) THEN + - 29 END * + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + 63 * - 99 - - 53 + - NULLIF ( - 48, - 54 - - + 46 ) * - CASE 55 WHEN + COUNT ( * ) THEN + - 29 END * + - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT - 26 * + SUM( - CASE 89 WHEN + 62 + - - 77 THEN + 5 ELSE + 1 END ) col2
----
26

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 26 * + SUM ( - CASE 89 WHEN + 62 + - - 77 THEN + 5 ELSE + 1 END ) col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT - + 52 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT - + 52 / + 60 AS col0
----
0

query I rowsort
SELECT ALL - - 83 * 93 AS col1
----
7719

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - + 2 - - - 76 + + - COUNT( * ) * + 43 * - + 47 AS col1
----
1943

skipif mysql # not compatible
query I rowsort label-1322
SELECT - + 2 - - - 76 + + - COUNT ( * ) * + 43 * - + 47 AS col1
----
1943

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL - + MAX( ALL - 40 ) * + 46
----
1840

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL - + MAX ( ALL - 40 ) * + 46
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1324
SELECT - 1 DIV + 30 + - 11 DIV - 52, ( - 68 ) * - 76 DIV 51 - - + NULLIF ( CAST( NULL AS SIGNED ), - 90 * + - 70 + - 74 DIV - 46 ) + + COUNT( * ) + 98 * 84 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1324
SELECT - 1 / + 30 + - 11 / - 52, ( - 68 ) * - 76 / 51 - - + NULLIF ( CAST ( NULL AS INTEGER ), - 90 * + - 70 + - 74 / - 46 ) + + COUNT ( * ) + 98 * 84 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT - ( 91 ) + + 54 * - - 15 * - 62 - + - 47 + + 37 - - 2 + 57 * + COUNT( * ) + + 64 + + - 9
----
-50113

skipif mysql # not compatible
query I rowsort label-1325
SELECT - ( 91 ) + + 54 * - - 15 * - 62 - + - 47 + + 37 - - 2 + 57 * + COUNT ( * ) + + 64 + + - 9
----
-50113

query I rowsort
SELECT - 8 + - - 65
----
57

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

skipif mysql # not compatible
query I rowsort label-1327
SELECT - COUNT ( * ) / + + 13
----
0

query I rowsort
SELECT + 31 * 42 AS col0
----
1302

query I rowsort
SELECT ALL + 54 + ( + 58 ) * 69 * - 10
----
-39966

query I rowsort
SELECT DISTINCT - 81 + 30
----
-51

query II rowsort
SELECT ALL 2 col0, - 68 + - 80 AS col2
----
2
-148

query I rowsort
SELECT ALL 29 * - - 60 col0
----
1740

query I rowsort
SELECT 13 + - - ( + 61 )
----
74

query I rowsort
SELECT 49 * 3 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT COUNT( * ) + + - ( + - 1 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1335
SELECT COUNT ( * ) + + - ( + - 1 ) AS col2
----
2

query I rowsort
SELECT ALL ( 22 ) + 36
----
58

query I rowsort
SELECT ALL 82 * - 16
----
-1312

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1339
SELECT 39 - + + CASE - 40 WHEN + CAST( AVG ( ALL 68 ) AS SIGNED ) / 8 - + 66 THEN - 79 WHEN + MAX( - CAST( 15 AS DECIMAL ) ) * + 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT 39 - + + CASE - 40 WHEN + CAST ( AVG ( ALL 68 ) AS INTEGER ) / 8 - + 66 THEN - 79 WHEN + MAX ( - CAST ( 15 AS REAL ) ) * + 58 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 68 * + 24
----
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT ALL - CASE - 5 WHEN + 46 * 86 * 29 THEN + 76 * + CAST( NULL AS SIGNED ) + - + 25 - + 2 * - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - CASE - 5 WHEN + 46 * 86 * 29 THEN + 76 * + CAST ( NULL AS INTEGER ) + - + 25 - + 2 * - 84 END
----
NULL

query I rowsort
SELECT - 3 * + 74 + 45 * + 92 + + ( - 55 ) * 33 * + 92 AS col2
----
-163062

query I rowsort
SELECT - 70 + 23
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1345
SELECT ALL COUNT( * ) DIV - + 56 + - 74 AS col2, - 26 AS col1
----
-74
-26

skipif mysql # not compatible
query II rowsort label-1345
SELECT ALL COUNT ( * ) / - + 56 + - 74 AS col2, - 26 AS col1
----
-74
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1346
SELECT + COUNT( * ) * - 9 + 76 + + - 97 + COALESCE ( + CASE - 70 WHEN - + 85 + + 4 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 99 * + 5 - + + COUNT( * ) + - 12 THEN - 13 * - 77 / - 63 + 78 + - 37 * - NULLIF ( 34, ( + 30 ) * + 87 ) END, - CAST( NULL AS SIGNED ) ) + + 6 * + AVG ( ALL - ( - - 42 ) ) / + 40 AS col0, - COUNT( * ) * + ( + 23 ) * 67 - + 55 + + 85 * - COUNT( * )
----
NULL
-1681

skipif mysql # not compatible
query II rowsort label-1346
SELECT + COUNT ( * ) * - 9 + 76 + + - 97 + COALESCE ( + CASE - 70 WHEN - + 85 + + 4 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 99 * + 5 - + + COUNT ( * ) + - 12 THEN - 13 * - 77 / - 63 + 78 + - 37 * - NULLIF ( 34, ( + 30 ) * + 87 ) END, - CAST ( NULL AS INTEGER ) ) + + 6 * + AVG ( ALL - ( - - 42 ) ) / + 40 AS col0, - COUNT ( * ) * + ( + 23 ) * 67 - + 55 + + 85 * - COUNT ( * )
----
NULL
-1681

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT + MIN( - 44 ) - MIN( - 12 ) * - + 27
----
-368

skipif mysql # not compatible
query I rowsort label-1347
SELECT + MIN ( - 44 ) - MIN ( - 12 ) * - + 27
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT MAX( + 56 ) * + COUNT( * ) + 37 + 85 * + - 79
----
-6622

skipif mysql # not compatible
query I rowsort label-1348
SELECT MAX ( + 56 ) * + COUNT ( * ) + 37 + 85 * + - 79
----
-6622

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT ( COUNT( * ) ) * - 3 + 82 + - + 68 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1350
SELECT ( COUNT ( * ) ) * - 3 + 82 + - + 68 AS col1
----
11

query I rowsort
SELECT DISTINCT - - 75 col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + 19 + MAX( ALL 62 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 19 + MAX ( ALL 62 ) AS col2
----
81

query II rowsort
SELECT DISTINCT - - 59 AS col0, 22 + 33
----
59
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT ALL - - 31 * - 13 + + + 40 - + NULLIF ( 31, + 61 ) DIV - 66 AS col1
----
-363

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - - 31 * - 13 + + + 40 - + NULLIF ( 31, + 61 ) / - 66 AS col1
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL 2 * MAX( DISTINCT + 85 ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 2 * MAX ( DISTINCT + 85 ) AS col2
----
170

query II rowsort
SELECT + 35 * - 95 + - 56, + 80 AS col2
----
-3381
80

query I rowsort
SELECT DISTINCT - 68 * - 35
----
2380

query I rowsort
SELECT DISTINCT - + NULLIF ( 36, + 9 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT - MIN( ALL + 1 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1360
SELECT - MIN ( ALL + 1 ) col1
----
-1

query I rowsort
SELECT ALL + 76 + + 79 AS col1
----
155

query II rowsort
SELECT - 77 AS col1, 85
----
-77
85

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

skipif mysql # not compatible
query I rowsort label-1363
SELECT 17 + + ( - COUNT ( * ) ) AS col1
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT COUNT( DISTINCT - 13 ) * - 39 + + 76
----
37

skipif mysql # not compatible
query I rowsort label-1365
SELECT COUNT ( DISTINCT - 13 ) * - 39 + + 76
----
37

query I rowsort
SELECT ALL 7 + + 78
----
85

query II rowsort
SELECT 11 AS col2, 61 AS col1
----
11
61

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

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL + ( - 59 ) + COUNT ( * ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 14 + - 78 + - 11 DIV + 45 col1
----
-64

skipif mysql # not compatible
query I rowsort label-1369
SELECT 14 + - 78 + - 11 / + 45 col1
----
-64

query I rowsort
SELECT DISTINCT + 49 + - + 76 col1
----
-27

query II rowsort
SELECT - 0 AS col1, 99 + 73 + + 9 * + 75
----
0
847

onlyif mysql # aggregate syntax: 
query II rowsort label-1372
SELECT 7 * CASE + 71 WHEN - + 63 - + 30 THEN + 21 ELSE NULL END AS col0, COUNT( * ) * + - 32 * + 84 AS col1
----
NULL
-2688

skipif mysql # not compatible
query II rowsort label-1372
SELECT 7 * CASE + 71 WHEN - + 63 - + 30 THEN + 21 ELSE NULL END AS col0, COUNT ( * ) * + - 32 * + 84 AS col1
----
NULL
-2688

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1374
SELECT 11 AS col0, + CAST( - 29 AS SIGNED ) AS col0
----
11
-29

skipif mysql # not compatible
query II rowsort label-1374
SELECT 11 AS col0, + CAST ( - 29 AS INTEGER ) AS col0
----
11
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT 49 + 91 * - + 51 - - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT 49 + 91 * - + 51 - - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 48 + - ( - - ( 37 ) )
----
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1378
SELECT 89 * + 27 + - MIN( - 18 ), 71 + + 11 AS col0
----
2421
82

skipif mysql # not compatible
query II rowsort label-1378
SELECT 89 * + 27 + - MIN ( - 18 ), 71 + + 11 AS col0
----
2421
82

query I rowsort
SELECT ALL - + ( ( 81 ) ) col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT + 63 * - 70 + - ( 6 ) + - + 8 * COUNT( * ) + 5 AS col2
----
-4419

skipif mysql # not compatible
query I rowsort label-1380
SELECT + 63 * - 70 + - ( 6 ) + - + 8 * COUNT ( * ) + 5 AS col2
----
-4419

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + 42 * + ( + + MAX( + 92 ) )
----
3864

skipif mysql # not compatible
query I rowsort label-1381
SELECT + 42 * + ( + + MAX ( + 92 ) )
----
3864

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT DISTINCT + - COALESCE ( + + 81, 24 * + + 93 + + MAX( ALL + 36 ), + + 78 ) * 17 + - - 36 col1
----
-1341

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT + - COALESCE ( + + 81, 24 * + + 93 + + MAX ( ALL + 36 ), + + 78 ) * 17 + - - 36 col1
----
-1341

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT ALL - - 47, + 36 + + COUNT( * ) AS col2
----
47
37

skipif mysql # not compatible
query II rowsort label-1385
SELECT ALL - - 47, + 36 + + COUNT ( * ) AS col2
----
47
37

query I rowsort
SELECT ALL 87 * 53 * 6
----
27666

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT - COUNT ( - 4 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT + ( COUNT( + - 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1388
SELECT + ( COUNT ( + - 28 ) )
----
1

query I rowsort
SELECT DISTINCT - 39 + - 71 AS col1
----
-110

query I rowsort
SELECT ALL - 80 + - 7
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT 81 AS col2, COALESCE ( - 0, CASE - ( - 28 ) WHEN 29 + - + 66 THEN NULL WHEN - 64 THEN NULL ELSE 77 - - + 18 END + + + 88 * ( + 92 ) + 1 ) * + 53 * + 12 + - COUNT( * ) AS col2
----
81
-1

skipif mysql # not compatible
query II rowsort label-1391
SELECT 81 AS col2, COALESCE ( - 0, CASE - ( - 28 ) WHEN 29 + - + 66 THEN NULL WHEN - 64 THEN NULL ELSE 77 - - + 18 END + + + 88 * ( + 92 ) + 1 ) * + 53 * + 12 + - COUNT ( * ) AS col2
----
81
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1392
SELECT + ( - NULLIF ( - 9, 55 * - 97 * + CAST( NULL AS SIGNED ) / + 59 ) ) + + 45 col2
----
54

skipif mysql # not compatible
query I rowsort label-1392
SELECT + ( - NULLIF ( - 9, 55 * - 97 * + CAST ( NULL AS INTEGER ) / + 59 ) ) + + 45 col2
----
54

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

query I rowsort
SELECT DISTINCT - 78 + - 98 col1
----
-176

query I rowsort
SELECT DISTINCT COALESCE ( + - 73, - 39 ) + ( - - 34 ) + 39 + + 79
----
79

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

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

query I rowsort
SELECT ALL ( + 40 ) + 98 AS col1
----
138

query I rowsort
SELECT + 18 + 80 AS col1
----
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1400
SELECT - CASE - 75 WHEN + - 37 * CAST( NULL AS DECIMAL ) THEN NULL ELSE + 24 + COUNT( * ) END
----
-25

skipif mysql # not compatible
query I rowsort label-1400
SELECT - CASE - 75 WHEN + - 37 * CAST ( NULL AS REAL ) THEN NULL ELSE + 24 + COUNT ( * ) END
----
-25

query I rowsort
SELECT DISTINCT 11 - - 1
----
12

query I rowsort
SELECT DISTINCT NULLIF ( + 53, + 53 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT + 46 DIV - 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT + 46 / - 37 AS col2
----
-1

query I rowsort
SELECT + 28 * - 87 AS col2
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - - 91 * COUNT( * ) * + - 25
----
-2275

skipif mysql # not compatible
query I rowsort label-1405
SELECT - - 91 * COUNT ( * ) * + - 25
----
-2275

query I rowsort
SELECT + + 22 * + 99
----
2178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT NULLIF ( + 21, - CAST( - 47 AS SIGNED ) + + 96 + - - 18 + + 76 * 3 / - COUNT( * ) + + - 32 * + 70 + + - MIN( DISTINCT 29 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT NULLIF ( + 21, - CAST ( - 47 AS INTEGER ) + + 96 + - - 18 + + 76 * 3 / - COUNT ( * ) + + - 32 * + 70 + + - MIN ( DISTINCT 29 ) ) AS col1
----
21

query I rowsort
SELECT ALL 35 * 96 * + 36 * - ( + 74 )
----
-8951040

query II rowsort
SELECT - 79 * + 43, - 30 + - - 91 AS col2
----
-3397
61

query I rowsort
SELECT ALL - 34 * 85 + - 74
----
-2964

query I rowsort
SELECT + 56 * - ( - ( + 62 ) ) + + 12 - + 43
----
3441

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1412
SELECT + + 15 + - COUNT( * ) + - 59 + - - CAST( NULL AS DECIMAL ) * - 92 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT + + 15 + - COUNT ( * ) + - 59 + - - CAST ( NULL AS REAL ) * - 92 * 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - - COALESCE ( - + SUM( ALL + + 54 ), + 73 ) + + 74 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1413
SELECT - - COALESCE ( - + SUM ( ALL + + 54 ), + 73 ) + + 74 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT MAX( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-1414
SELECT MAX ( 90 )
----
90

query I rowsort
SELECT DISTINCT 31 * - - 32 + - + 13 AS col2
----
979

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1416
SELECT ALL MAX( - + 26 ) * - 76 + + COALESCE ( + AVG ( 94 ), + + 99, - 17, + COALESCE ( 10, - 96 * 59 * - 43 + - 73 ) ) + + 77 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL MAX ( - + 26 ) * - 76 + + COALESCE ( + AVG ( 94 ), + + 99, - 17, + COALESCE ( 10, - 96 * 59 * - 43 + - 73 ) ) + + 77 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL + 75 * 69 * - - 98 + - - COALESCE ( 38, COUNT( * ) )
----
507188

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + 75 * 69 * - - 98 + - - COALESCE ( 38, COUNT ( * ) )
----
507188

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + 78 + + COUNT( * ) col1
----
79

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 78 + + COUNT ( * ) col1
----
79

query II rowsort
SELECT + 33 col2, - 74 + + 72 + + 71 - - 83 + + 5 * - 34 AS col0
----
33
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT CASE - COUNT( * ) WHEN + MAX( DISTINCT 30 ) + - 18 THEN - 16 WHEN 99 * - + 69 * 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT CASE - COUNT ( * ) WHEN + MAX ( DISTINCT 30 ) + - 18 THEN - 16 WHEN 99 * - + 69 * 31 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT + COUNT( * ) * - + 21 * - COUNT( * ) * + + 35 * + 81
----
59535

skipif mysql # not compatible
query I rowsort label-1422
SELECT + COUNT ( * ) * - + 21 * - COUNT ( * ) * + + 35 * + 81
----
59535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT ALL - 48 * 94 - + 47 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - 48 * 94 - + 47 / CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT + 95 DIV + 13 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1425
SELECT + 95 / + 13 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1426
SELECT + COALESCE ( - - COALESCE ( + 99, 74 * + + 23 - - SUM( DISTINCT - 74 ) * 96, 98 ), - 18 * + 53 * CAST( - - 95 AS SIGNED ) ) + - 73 AS col1, - 38 + - + 23 * + CASE COUNT( * ) WHEN + - 19 THEN + - CAST( + 23 AS DECIMAL ) END - + 65
----
26
NULL

skipif mysql # not compatible
query II rowsort label-1426
SELECT + COALESCE ( - - COALESCE ( + 99, 74 * + + 23 - - SUM ( DISTINCT - 74 ) * 96, 98 ), - 18 * + 53 * CAST ( - - 95 AS INTEGER ) ) + - 73 AS col1, - 38 + - + 23 * + CASE COUNT ( * ) WHEN + - 19 THEN + - CAST ( + 23 AS REAL ) END - + 65
----
26
NULL

query I rowsort
SELECT + 12 * - + 46
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - CASE - COUNT( * ) WHEN + - COUNT( * ) * - + 94 THEN - 14 - + 90 + + 1 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT - CASE - COUNT ( * ) WHEN + - COUNT ( * ) * - + 94 THEN - 14 - + 90 + + 1 ELSE NULL END AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT - 50 / + - ( + COUNT ( * ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL 59 * - COUNT( DISTINCT - 16 )
----
-59

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL 59 * - COUNT ( DISTINCT - 16 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1432
SELECT + 65 DIV + - 40 * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1432
SELECT + 65 / + - 40 * + + COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT ALL 71 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL 71 / + 91
----
0

query II rowsort
SELECT 82 AS col0, 53 * - + 21
----
82
-1113

query I rowsort
SELECT - NULLIF ( - 44, + 85 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - NULLIF ( - ( 0 ), - COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT - NULLIF ( - ( 0 ), - COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1437
SELECT DISTINCT COUNT( * ), ( - 38 ) * 65 + + - 31 AS col1
----
1
-2501

skipif mysql # not compatible
query II rowsort label-1437
SELECT DISTINCT COUNT ( * ), ( - 38 ) * 65 + + - 31 AS col1
----
1
-2501

query II rowsort
SELECT + 36 * + 15 + ( - 4 ) AS col0, - 99 col0
----
536
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT ALL 19 + CAST( - + 16 AS SIGNED ) * - 80 + - COUNT( * ) * - - 80 * 92
----
-6061

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL 19 + CAST ( - + 16 AS INTEGER ) * - 80 + - COUNT ( * ) * - - 80 * 92
----
-6061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1440
SELECT + CASE ( + ( - COUNT( * ) ) ) WHEN NULLIF ( + - 19, CASE CAST( NULL AS DECIMAL ) WHEN - - 74 - 3 - CAST( NULL AS SIGNED ) + - 25 * - 1 THEN + + ( - 30 ) / - 91 + - 69 + - 0 * + 69 - + 88 WHEN 8 THEN SUM( 94 ) WHEN COUNT( * ) * + 5 + COUNT( * ) THEN + - 83 * - 41 + + 48 END ) * ( 0 ) + + COUNT( * ) * - - 39 + 74 THEN + 21 + - 92 ELSE NULL END * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT + CASE ( + ( - COUNT ( * ) ) ) WHEN NULLIF ( + - 19, CASE CAST ( NULL AS REAL ) WHEN - - 74 - 3 - CAST ( NULL AS INTEGER ) + - 25 * - 1 THEN + + ( - 30 ) / - 91 + - 69 + - 0 * + 69 - + 88 WHEN 8 THEN SUM ( 94 ) WHEN COUNT ( * ) * + 5 + COUNT ( * ) THEN + - 83 * - 41 + + 48 END ) * ( 0 ) + + COUNT ( * ) * - - 39 + 74 THEN + 21 + - 92 ELSE NULL END * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - + COUNT( ALL - 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-1441
SELECT - + COUNT ( ALL - 12 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-1442
SELECT DISTINCT - 59, + 97 DIV 90 * + 33 col1
----
-59
33

skipif mysql # not compatible
query II rowsort label-1442
SELECT DISTINCT - 59, + 97 / 90 * + 33 col1
----
-59
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT + + 24 DIV ( + 48 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT + + 24 / ( + 48 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT - + 19 * + 12 + + SUM( DISTINCT - + 37 ) DIV + - 67 DIV - 88 DIV - - 49 AS col1
----
-228

skipif mysql # not compatible
query I rowsort label-1444
SELECT - + 19 * + 12 + + SUM ( DISTINCT - + 37 ) / + - 67 / - 88 / - - 49 AS col1
----
-228

query II rowsort
SELECT + 58 AS col0, 58 + + + ( - 79 )
----
58
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT + 65 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-1446
SELECT + 65 / - 96
----
0

query II rowsort
SELECT ALL + 0, + 88 AS col2
----
0
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1448
SELECT + 58, + 65 * + - 82 * COUNT( * ) AS col2
----
58
-5330

skipif mysql # not compatible
query II rowsort label-1448
SELECT + 58, + 65 * + - 82 * COUNT ( * ) AS col2
----
58
-5330

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT ALL - 74 DIV - - 73 + + 54 * 91
----
4913

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL - 74 / - - 73 + + 54 * 91
----
4913

query I rowsort
SELECT DISTINCT - 61 * - 2 col0
----
122

query I rowsort
SELECT - - 92 * 15 AS col2
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL + + COUNT( + ( - 35 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + + COUNT ( + ( - 35 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL + + 53 * + + NULLIF ( CASE + 85 WHEN 84 THEN - + 3 - - 47 WHEN + 51 THEN + - 70 ELSE NULL END, - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL + + 53 * + + NULLIF ( CASE + 85 WHEN 84 THEN - + 3 - - 47 WHEN + 51 THEN + - 70 ELSE NULL END, - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - + 17 * - 34
----
578

query II rowsort
SELECT ALL - 36 - + 62 AS col0, 59 AS col1
----
-98
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT - 22 * 61 + + 36 / CASE 31 WHEN - COUNT( * ) THEN - - 38 END * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT - 22 * 61 + + 36 / CASE 31 WHEN - COUNT ( * ) THEN - - 38 END * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT COUNT( * ) * + 16 col1
----
16

skipif mysql # not compatible
query I rowsort label-1457
SELECT COUNT ( * ) * + 16 col1
----
16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1459
SELECT 17 + + + COUNT( * ) + - 54 + 38 DIV - SUM( + - 95 ) * 17 - + - ( - 93 ) DIV 44 + 20
----
-18

skipif mysql # not compatible
query I rowsort label-1459
SELECT 17 + + + COUNT ( * ) + - 54 + 38 / - SUM ( + - 95 ) * 17 - + - ( - 93 ) / 44 + 20
----
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1460
SELECT DISTINCT + ( 75 ) * - CAST( NULL AS SIGNED ) + + + 55 AS col0, 53 + + 28 + - CAST( NULL AS DECIMAL ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1460
SELECT DISTINCT + ( 75 ) * - CAST ( NULL AS INTEGER ) + + + 55 AS col0, 53 + + 28 + - CAST ( NULL AS REAL ) col0
----
NULL
NULL

query I rowsort
SELECT 26 + - 32
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT DISTINCT - MAX( - - 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT - MAX ( - - 52 ) col0
----
-52

query II rowsort
SELECT 42 - - 7 AS col0, 89 * - 88 col1
----
49
-7832

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT ALL - SUM( + 11 ) AS col0, 97
----
-11
97

skipif mysql # not compatible
query II rowsort label-1464
SELECT ALL - SUM ( + 11 ) AS col0, 97
----
-11
97

query I rowsort
SELECT 58 * + 82 * 71 AS col1
----
337676

query I rowsort
SELECT ALL - ( 91 ) * + 0 * - + 80 AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1468
SELECT 48 * COUNT ( * )
----
48

query I rowsort
SELECT 83 * + 36
----
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL + 78 + + COUNT( * ) * + + 65 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL + 78 + + COUNT ( * ) * + + 65 AS col0
----
143

query I rowsort
SELECT ALL - 9 + - 20
----
-29

query I rowsort
SELECT 94 * + - 60
----
-5640

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

query I rowsort
SELECT DISTINCT + 76 + - 61 col1
----
15

query II rowsort
SELECT 56 + + + ( + + 56 ) * - 63 * 47 + - 98 * + 23 AS col0, - 94 AS col2
----
-168014
-94

query I rowsort
SELECT ALL 53 + - - 3
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT + 36 + + 43 - - - 8 - - - CAST( NULL AS SIGNED ) * + 72 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT + 36 + + 43 - - - 8 - - - CAST ( NULL AS INTEGER ) * + 72 * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT 64 - - - 25 + + 43 + + COALESCE ( + 78, - MIN( + - 1 ) ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-1478
SELECT 64 - - - 25 + + 43 + + COALESCE ( + 78, - MIN ( + - 1 ) ) AS col1
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1479
SELECT DISTINCT - 51 * + + NULLIF ( - + 86, 51 ) * + 16 + CAST( - 38 AS SIGNED ) + 0 AS col1
----
70138

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT - 51 * + + NULLIF ( - + 86, 51 ) * + 16 + CAST ( - 38 AS INTEGER ) + 0 AS col1
----
70138

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT MIN( DISTINCT - 97 ) + - 85
----
-182

skipif mysql # not compatible
query I rowsort label-1480
SELECT MIN ( DISTINCT - 97 ) + - 85
----
-182

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

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

query I rowsort
SELECT 12 + + + 54 col1
----
66

query II rowsort
SELECT 43 * + + 64 AS col0, + 56
----
2752
56

query I rowsort
SELECT DISTINCT - - COALESCE ( - 7, - NULLIF ( + - 54, + + 95 ) ) AS col2
----
-7

query II rowsort
SELECT ALL - ( + 43 ) AS col0, 52 + + 6 * - + 76 * + - 7
----
-43
3244

query I rowsort
SELECT 4 * + 96 AS col2
----
384

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

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

query I rowsort
SELECT 22 * - 84 * 4 AS col0
----
-7392

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1490
SELECT DISTINCT 96 DIV + CAST( + 78 AS SIGNED ) AS col1, 21
----
1
21

skipif mysql # not compatible
query II rowsort label-1490
SELECT DISTINCT 96 / + CAST ( + 78 AS INTEGER ) AS col1, 21
----
1
21

query I rowsort
SELECT 52 + - - 54 AS col1
----
106

query I rowsort
SELECT DISTINCT 60 * - COALESCE ( + 7, 25 )
----
-420

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT DISTINCT ( + MIN( + + 57 ) ) - - + 68
----
125

skipif mysql # not compatible
query I rowsort label-1494
SELECT DISTINCT ( + MIN ( + + 57 ) ) - - + 68
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT 42 + CAST( + + 51 AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-1495
SELECT 42 + CAST ( + + 51 AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER )
----
94

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT 78 * ( + + 81 ) * + 91 * ( - 83 ) - CAST( - 87 AS SIGNED ) + + COUNT( * )
----
-47719766

skipif mysql # not compatible
query I rowsort label-1497
SELECT 78 * ( + + 81 ) * + 91 * ( - 83 ) - CAST ( - 87 AS INTEGER ) + + COUNT ( * )
----
-47719766

query I rowsort
SELECT 67 * + 90 AS col0
----
6030

query I rowsort
SELECT ALL - NULLIF ( - 53, - ( 65 ) )
----
53

query I rowsort
SELECT 48 + + + 20 col1
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-1501
SELECT ALL 16 AS col2, 83 DIV + 59
----
16
1

skipif mysql # not compatible
query II rowsort label-1501
SELECT ALL 16 AS col2, 83 / + 59
----
16
1

query I rowsort
SELECT 57 * + 70
----
3990

query I rowsort
SELECT DISTINCT - 97 + + - ( + ( + 65 ) )
----
-162

query I rowsort
SELECT ALL + 43 + 88 * 12 * - 74 * - - 20 + - - 22
----
-1562815

query I rowsort
SELECT ALL + 70 + - 6
----
64

query I rowsort
SELECT DISTINCT - + 66 + + - 76 * - 59
----
4418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT CASE + COUNT( * ) WHEN - COALESCE ( ( + CAST( + + COUNT( * ) AS SIGNED ) ), 55, - 11 * - 8 ) * 30 * + COALESCE ( 99, 81 ) + - COUNT( * ) THEN MAX( DISTINCT + ( 79 ) ) + + 62 * - 86 WHEN - + 72 * - NULLIF ( + 65, - 43 ) / + 93 + - 11 * + 35 + + 61 THEN NULL ELSE NULL END / MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT CASE + COUNT ( * ) WHEN - COALESCE ( ( + CAST ( + + COUNT ( * ) AS INTEGER ) ), 55, - 11 * - 8 ) * 30 * + COALESCE ( 99, 81 ) + - COUNT ( * ) THEN MAX ( DISTINCT + ( 79 ) ) + + 62 * - 86 WHEN - + 72 * - NULLIF ( + 65, - 43 ) / + 93 + - 11 * + 35 + + 61 THEN NULL ELSE NULL END / MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 25 - 36 + - 46 AS col2
----
-107

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

query I rowsort
SELECT - - ( 89 )
----
89

query I rowsort
SELECT ALL ( - 34 ) - + 27
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1512
SELECT ALL COALESCE ( + 80, - - 36 * - COUNT( * ), - + CASE + 33 WHEN + - COUNT( * ) THEN + - CAST( + 68 AS SIGNED ) WHEN 15 * 2 THEN + 10 + + - 39 ELSE - 97 END ) * - 81 * 67 + - 0 AS col1
----
-434160

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL COALESCE ( + 80, - - 36 * - COUNT ( * ), - + CASE + 33 WHEN + - COUNT ( * ) THEN + - CAST ( + 68 AS INTEGER ) WHEN 15 * 2 THEN + 10 + + - 39 ELSE - 97 END ) * - 81 * 67 + - 0 AS col1
----
-434160

query I rowsort
SELECT DISTINCT + 79 * + 14
----
1106

query I rowsort
SELECT + 84 * + - 67 AS col0
----
-5628

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1515
SELECT CASE - 55 WHEN - 83 THEN + - CAST( + 92 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT CASE - 55 WHEN - 83 THEN + - CAST ( + 92 AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 73 * + 57 AS col1
----
-4161

query I rowsort
SELECT DISTINCT 19 * - 19
----
-361

query II rowsort
SELECT ALL + 68 AS col2, 99
----
68
99

query II rowsort
SELECT ALL + 71 AS col2, - 7 AS col0
----
71
-7

query II rowsort
SELECT DISTINCT + 74, - 1 AS col0
----
74
-1

query I rowsort
SELECT ALL + NULLIF ( 84, + - 47 * 32 )
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT COALESCE ( - - COALESCE ( + 13, + ( + 1 ), 38 ), + - COUNT( * ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1523
SELECT COALESCE ( - - COALESCE ( + 13, + ( + 1 ), 38 ), + - COUNT ( * ) ) AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT 10 * + 77 * - + 57 * - COALESCE ( + 18, - 16 * - 44 * - 15 ) + 99 + - CAST( + COALESCE ( + 13, 4 + + 76 + - - 67, - 9 / - 28 ) AS SIGNED ) AS col1
----
790106

skipif mysql # not compatible
query I rowsort label-1524
SELECT 10 * + 77 * - + 57 * - COALESCE ( + 18, - 16 * - 44 * - 15 ) + 99 + - CAST ( + COALESCE ( + 13, 4 + + 76 + - - 67, - 9 / - 28 ) AS INTEGER ) AS col1
----
790106

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + NULLIF ( - - COUNT( * ), + + 96 * 56 + + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-1525
SELECT + NULLIF ( - - COUNT ( * ), + + 96 * 56 + + 68 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + MIN( ALL 48 ) + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-1526
SELECT + MIN ( ALL 48 ) + - COUNT ( * )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1527
SELECT ALL + 46 * + - 61 + - - 43 * 41 + + + ( - CAST( NULL AS DECIMAL ) ) * 75 + + COUNT( ( - 10 ) ) * + + 42 / - COUNT( * ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + 46 * + - 61 + - - 43 * 41 + + + ( - CAST ( NULL AS REAL ) ) * 75 + + COUNT ( ( - 10 ) ) * + + 42 / - COUNT ( * ) * - 51
----
NULL

query II rowsort
SELECT ALL - 80 * + + 61 * + ( 31 ) + 29 + - 2 * CASE 40 WHEN - + 71 THEN 78 + + 22 ELSE NULL END AS col1, + 35 - 24 col1
----
NULL
11

query I rowsort
SELECT ALL 12 * 34 + + 62 + 87
----
557

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1530
SELECT ALL + 2 AS col0, + SUM( DISTINCT + ( - 2 ) ) DIV - 1
----
2
2

skipif mysql # not compatible
query II rowsort label-1530
SELECT ALL + 2 AS col0, + SUM ( DISTINCT + ( - 2 ) ) / - 1
----
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT ALL + COUNT( * ) DIV + - 79 DIV + - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + COUNT ( * ) / + - 79 / + - 24 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1532
SELECT DISTINCT - 76 + + ( - 23 ) * + 81 AS col0, CAST( NULL AS DECIMAL ) / + COUNT( * )
----
-1939
NULL

skipif mysql # not compatible
query II rowsort label-1532
SELECT DISTINCT - 76 + + ( - 23 ) * + 81 AS col0, CAST ( NULL AS REAL ) / + COUNT ( * )
----
-1939
NULL

query I rowsort
SELECT - COALESCE ( + 58, 71 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT - MAX( ALL 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-1534
SELECT - MAX ( ALL 85 )
----
-85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1536
SELECT - 92, SUM( DISTINCT - - NULLIF ( + 49, 33 ) ) * - CASE 8 WHEN - 92 * - 85 THEN NULL WHEN + 77 THEN 46 END + - NULLIF ( 8, COUNT( * ) + 37 ) * + - NULLIF ( + + 90, - ( - 84 ) ) AS col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-1536
SELECT - 92, SUM ( DISTINCT - - NULLIF ( + 49, 33 ) ) * - CASE 8 WHEN - 92 * - 85 THEN NULL WHEN + 77 THEN 46 END + - NULLIF ( 8, COUNT ( * ) + 37 ) * + - NULLIF ( + + 90, - ( - 84 ) ) AS col0
----
-92
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1537
SELECT 62 * - CAST( + - COUNT( * ) AS SIGNED ) + + + 21 * 32 + - 30, 5 - - + 63 AS col0
----
704
68

skipif mysql # not compatible
query II rowsort label-1537
SELECT 62 * - CAST ( + - COUNT ( * ) AS INTEGER ) + + + 21 * 32 + - 30, 5 - - + 63 AS col0
----
704
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - - COALESCE ( - - 46, - + COUNT( * ) + - - 11 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1538
SELECT - - COALESCE ( - - 46, - + COUNT ( * ) + - - 11 ) AS col0
----
46

query I rowsort
SELECT DISTINCT - + 88 - 56 col1
----
-144

query I rowsort
SELECT DISTINCT ( - ( ( - 94 ) ) ) col2
----
94

query I rowsort
SELECT ALL - + 38 * 98 * 56 * - 15
----
3128160

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1543
SELECT DISTINCT 4 AS col1, 16 * + 85 * 48 * COUNT( * )
----
4
65280

skipif mysql # not compatible
query II rowsort label-1543
SELECT DISTINCT 4 AS col1, 16 * + 85 * 48 * COUNT ( * )
----
4
65280

query I rowsort
SELECT DISTINCT + 74 - 47 col1
----
27

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

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

query I rowsort
SELECT ALL - ( 29 ) AS col2
----
-29

query I rowsort
SELECT ALL + - 46 * - 13 * 10
----
5980

query I rowsort
SELECT - + 35 * - 60
----
2100

query I rowsort
SELECT - NULLIF ( + - 26, - 81 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - MAX( 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1550
SELECT - MAX ( 8 ) AS col1
----
-8

query II rowsort
SELECT 79 col1, + 16 AS col2
----
79
16

query I rowsort
SELECT ALL ( 98 ) AS col2
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL CASE + 18 WHEN - 50 - 53 THEN 23 * 14 END / COUNT( * ) * + 89 - + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL CASE + 18 WHEN - 50 - 53 THEN 23 * 14 END / COUNT ( * ) * + 89 - + 21 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1558
SELECT - COUNT( * ) DIV - - SUM( + 81 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1558
SELECT - COUNT ( * ) / - - SUM ( + 81 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT ALL + COUNT( * ) DIV + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL + COUNT ( * ) / + 18 AS col1
----
0

query II rowsort
SELECT ALL 53 / ( - ( + 66 ) ) + + 13 + CASE - + 33 WHEN - 67 THEN + 64 * - + 37 * - ( + - 13 ) ELSE NULL END AS col1, 34 AS col2
----
NULL
34

query I rowsort
SELECT 78 * - + 18 + + 86 * + - 53
----
-5962

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT ALL + MIN( 95 ) AS col0, + COALESCE ( 7, - + 74 + + 2, + 63 ) + + 8
----
95
15

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL + MIN ( 95 ) AS col0, + COALESCE ( 7, - + 74 + + 2, + 63 ) + + 8
----
95
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT DISTINCT + 87 * - ( + COUNT( * ) ) * - CASE + 24 WHEN - 34 * 13 * - ( COUNT( * ) ) + COUNT( * ) * 37 * - 65 THEN - COUNT( DISTINCT + 77 ) + + - 11 * - 73 * - - MAX( DISTINCT - + 99 ) ELSE 43 * + ( + 50 ) + 92 END AS col2
----
195054

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT + 87 * - ( + COUNT ( * ) ) * - CASE + 24 WHEN - 34 * 13 * - ( COUNT ( * ) ) + COUNT ( * ) * 37 * - 65 THEN - COUNT ( DISTINCT + 77 ) + + - 11 * - 73 * - - MAX ( DISTINCT - + 99 ) ELSE 43 * + ( + 50 ) + 92 END AS col2
----
195054

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT - 12 DIV + - ( + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT - 12 / + - ( + 77 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT + 71 DIV - - COUNT( * ) + 64 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-1565
SELECT + 71 / - - COUNT ( * ) + 64 AS col2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT ALL 90 DIV 80 * - 6 + 79 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL 90 / 80 * - 6 + 79 AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT + COUNT( * ) + + 25, NULLIF ( + 67, - - COUNT( * ) * - 18 ) col2
----
26
67

skipif mysql # not compatible
query II rowsort label-1567
SELECT + COUNT ( * ) + + 25, NULLIF ( + 67, - - COUNT ( * ) * - 18 ) col2
----
26
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT + COALESCE ( + + 61, - COUNT( * ) * + - 16 * + 71 * + 22 + + + 63 ), 87 AS col2
----
61
87

skipif mysql # not compatible
query II rowsort label-1568
SELECT + COALESCE ( + + 61, - COUNT ( * ) * + - 16 * + 71 * + 22 + + + 63 ), 87 AS col2
----
61
87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT ALL + 52 * + + 79 + + ( + CAST( + COUNT( * ) AS SIGNED ) )
----
4109

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + 52 * + + 79 + + ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
4109

query I rowsort
SELECT ALL 33 * + 39 * - 22 * + - 25 + - 12
----
707838

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT + COUNT( DISTINCT + 29 ) * + - COALESCE ( + COUNT( * ), - COUNT( * ) * - 74 - + - 94 + - - CASE + 99 WHEN + + 77 * 5 * - 21 * - 83 - 25 * + CAST( 8 AS SIGNED ) + 51 THEN NULL ELSE + - 25 + 42 END - 1 + - + CASE - 10 WHEN - - 63 THEN NULL ELSE 11 * + COUNT( * ) + - + 20 END * + - 41 - + 45, + COUNT( 8 ) + - 74 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1573
SELECT + COUNT ( DISTINCT + 29 ) * + - COALESCE ( + COUNT ( * ), - COUNT ( * ) * - 74 - + - 94 + - - CASE + 99 WHEN + + 77 * 5 * - 21 * - 83 - 25 * + CAST ( 8 AS INTEGER ) + 51 THEN NULL ELSE + - 25 + 42 END - 1 + - + CASE - 10 WHEN - - 63 THEN NULL ELSE 11 * + COUNT ( * ) + - + 20 END * + - 41 - + 45, + COUNT ( 8 ) + - 74 ) AS col1
----
-1

query I rowsort
SELECT - 63 * + 83
----
-5229

query I rowsort
SELECT ALL NULLIF ( + 1, 2 ) * - - 22 * + 66 AS col2
----
1452

query II rowsort
SELECT ALL 90 * - 47 col1, 42 * 34 AS col2
----
-4230
1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1577
SELECT + - 25 * - - MIN( ALL + 95 ) + + 78 DIV - 55 + 48
----
-2328

skipif mysql # not compatible
query I rowsort label-1577
SELECT + - 25 * - - MIN ( ALL + 95 ) + + 78 / - 55 + 48
----
-2328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT + ( - ( - 73 ) ) + + 95 + - 51 * + 29 DIV NULLIF ( + COUNT( * ), AVG ( + 8 ) * - COUNT( * ) ) AS col2
----
-1311

skipif mysql # not compatible
query I rowsort label-1578
SELECT + ( - ( - 73 ) ) + + 95 + - 51 * + 29 / NULLIF ( + COUNT ( * ), AVG ( + 8 ) * - COUNT ( * ) ) AS col2
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT COUNT( * ) - - 82
----
83

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT COUNT ( * ) - - 82
----
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT 41 + - - 79 col1, + COUNT( * )
----
120
1

skipif mysql # not compatible
query II rowsort label-1581
SELECT 41 + - - 79 col1, + COUNT ( * )
----
120
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT 87 + + MAX( 88 ) + - - 1 * 4 DIV 2 DIV 74, 64 * + 58 AS col0
----
175
3712

skipif mysql # not compatible
query II rowsort label-1582
SELECT 87 + + MAX ( 88 ) + - - 1 * 4 / 2 / 74, 64 * + 58 AS col0
----
175
3712

query I rowsort
SELECT 90 * 68 * - 38 AS col0
----
-232560

query I rowsort
SELECT - 79 * - + 79 * - 83
----
-518003

query I rowsort
SELECT - 23 - + + 28
----
-51

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL COALESCE ( COUNT ( * ), + - 49 )
----
1

query I rowsort
SELECT ALL + NULLIF ( 2, - 33 ) * - + 16 AS col0
----
-32

query I rowsort
SELECT - 46 * - 88 AS col1
----
4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1589
SELECT DISTINCT + 0 * - 7 DIV + 52 DIV + COUNT( * ) * - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT + 0 * - 7 / + 52 / + COUNT ( * ) * - 42 AS col1
----
0

query I rowsort
SELECT ALL + 19 * + 94
----
1786

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

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

query I rowsort
SELECT 52 * + 90
----
4680

query I rowsort
SELECT DISTINCT + ( - 81 ) + - ( 44 ) AS col1
----
-125

query II rowsort
SELECT 9 AS col1, + 19 AS col1
----
9
19

query I rowsort
SELECT ALL + 83 + + + 68 AS col1
----
151

query I rowsort
SELECT 42 * 69 col0
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1597
SELECT DISTINCT + 1 + + CASE - 68 WHEN 93 THEN + 68 + - ( + MIN( + - NULLIF ( - CAST( NULL AS SIGNED ), 88 ) ) ) ELSE NULL END * + 7, - COUNT( * ) * + 41 + - ( - 57 ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-1597
SELECT DISTINCT + 1 + + CASE - 68 WHEN 93 THEN + 68 + - ( + MIN ( + - NULLIF ( - CAST ( NULL AS INTEGER ), 88 ) ) ) ELSE NULL END * + 7, - COUNT ( * ) * + 41 + - ( - 57 ) AS col1
----
NULL
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT DISTINCT + 56 DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + 56 / - 25
----
-2

query I rowsort
SELECT ALL - ( - 92 ) + - - 25 AS col0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1600
SELECT DISTINCT + 29 + - - 31 + + - ( - 98 ) + + 65 + + + SUM( NULLIF ( - 35, + + 96 ) ) * + - COUNT( * ) * 83 AS col1, ( - 61 ) AS col1
----
3128
-61

skipif mysql # not compatible
query II rowsort label-1600
SELECT DISTINCT + 29 + - - 31 + + - ( - 98 ) + + 65 + + + SUM ( NULLIF ( - 35, + + 96 ) ) * + - COUNT ( * ) * 83 AS col1, ( - 61 ) AS col1
----
3128
-61

query I rowsort
SELECT DISTINCT 88 * 18
----
1584

query I rowsort
SELECT ALL 47 + 50 * - 83 + 47 * + 68 * 64 * + 15
----
3064057

query I rowsort
SELECT ALL - COALESCE ( - + 5, + 75 ) AS col2
----
5

query I rowsort
SELECT 57 * + 20
----
1140

query I rowsort
SELECT ALL + 84 - 92
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1606
SELECT + 22 * ( 32 ) * + 79 + + COALESCE ( + 10, + - 50, CASE + ( 61 ) WHEN 2 - - CAST( + 14 AS DECIMAL ) THEN ( 43 ) WHEN - 83 THEN NULL ELSE NULL END * - 49 + + - 52 ) - - COUNT( * ) * - - 87 * 16 * 67 - - - 35 * 44 AS col0
----
147350

skipif mysql # not compatible
query I rowsort label-1606
SELECT + 22 * ( 32 ) * + 79 + + COALESCE ( + 10, + - 50, CASE + ( 61 ) WHEN 2 - - CAST ( + 14 AS REAL ) THEN ( 43 ) WHEN - 83 THEN NULL ELSE NULL END * - 49 + + - 52 ) - - COUNT ( * ) * - - 87 * 16 * 67 - - - 35 * 44 AS col0
----
147350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT DISTINCT - CAST( + + 60 AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT - CAST ( + + 60 AS INTEGER ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - - COALESCE ( - 1, 54 ) * 59 * COUNT( * ) - + 95 + - MAX( - 1 ) * 15
----
-139

skipif mysql # not compatible
query I rowsort label-1608
SELECT - - COALESCE ( - 1, 54 ) * 59 * COUNT ( * ) - + 95 + - MAX ( - 1 ) * 15
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT CAST( NULL AS SIGNED ) + - 23 + + - 72 + - 70 * 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT CAST ( NULL AS INTEGER ) + - 23 + + - 72 + - 70 * 30 col2
----
NULL

query II rowsort
SELECT - 22 AS col1, + 98
----
-22
98

query I rowsort
SELECT - 63 * - 80 + + - 99 + 63
----
5004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT + CAST( NULL AS SIGNED ) + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT + CAST ( NULL AS INTEGER ) + - 86
----
NULL

query I rowsort
SELECT ALL + ( 81 ) + - 47 + 97
----
131

query I rowsort
SELECT ALL + 58 * + 42
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT + CAST( NULL AS SIGNED ) / 73 * + 28 / + 75 + COUNT( * ) + CASE + 66 WHEN - COALESCE ( - 83, + 98, + + CASE 36 WHEN - + MIN( ALL 16 ) THEN - 62 WHEN - NULLIF ( 53, + + 70 * 91 + COUNT( * ) / - - 40 ) THEN NULL ELSE NULL END ) THEN NULL WHEN - 98 + + - 91 + - 2 + 81 + - COUNT( * ) THEN - 52 * 88 * 44 WHEN 48 + + - 23 + - 17 + - - 9 - + 56 THEN ( 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT + CAST ( NULL AS INTEGER ) / 73 * + 28 / + 75 + COUNT ( * ) + CASE + 66 WHEN - COALESCE ( - 83, + 98, + + CASE 36 WHEN - + MIN ( ALL 16 ) THEN - 62 WHEN - NULLIF ( 53, + + 70 * 91 + COUNT ( * ) / - - 40 ) THEN NULL ELSE NULL END ) THEN NULL WHEN - 98 + + - 91 + - 2 + 81 + - COUNT ( * ) THEN - 52 * 88 * 44 WHEN 48 + + - 23 + - 17 + - - 9 - + 56 THEN ( 85 ) END
----
NULL

query I rowsort
SELECT ALL - 47 + 68 * - - ( + 89 ) AS col0
----
6005

query I rowsort
SELECT DISTINCT - 89 + + + 30 AS col1
----
-59

query I rowsort
SELECT ALL 31 * + + 84
----
2604

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT 16 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-1619
SELECT 16 / + 23
----
0

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

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

query I rowsort
SELECT 23 + - 19 + - + 26 col0
----
-22

query I rowsort
SELECT 61 * - 29 * + 8 AS col0
----
-14152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1623
SELECT ALL CAST( NULL AS SIGNED ) + + 29 / + 60 * + 49 * 20 * - ( - 25 ) + + 40 / - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL CAST ( NULL AS INTEGER ) + + 29 / + 60 * + 49 * 20 * - ( - 25 ) + + 40 / - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT COUNT( * ) + + MAX( DISTINCT + + 26 )
----
27

skipif mysql # not compatible
query I rowsort label-1624
SELECT COUNT ( * ) + + MAX ( DISTINCT + + 26 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT 77 - + + 31, SUM( ALL + 46 ) AS col1
----
46
46

skipif mysql # not compatible
query II rowsort label-1625
SELECT 77 - + + 31, SUM ( ALL + 46 ) AS col1
----
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1626
SELECT CAST( NULLIF ( - COUNT( * ), + + 59 * - ( CASE + 27 WHEN + 82 THEN 80 - - ( 8 ) ELSE NULL END ) ) AS SIGNED ) + - + 69 - - + 98 * CAST( 89 AS SIGNED ) DIV - 32
----
-342

skipif mysql # not compatible
query I rowsort label-1626
SELECT CAST ( NULLIF ( - COUNT ( * ), + + 59 * - ( CASE + 27 WHEN + 82 THEN 80 - - ( 8 ) ELSE NULL END ) ) AS INTEGER ) + - + 69 - - + 98 * CAST ( 89 AS INTEGER ) / - 32
----
-342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1627
SELECT ALL CAST( + 41 AS SIGNED ) + + COALESCE ( + - 26, + + 39 * - 76 ) + + + 63, 81 AS col2
----
78
81

skipif mysql # not compatible
query II rowsort label-1627
SELECT ALL CAST ( + 41 AS INTEGER ) + + COALESCE ( + - 26, + + 39 * - 76 ) + + + 63, 81 AS col2
----
78
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT - MIN( + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-1628
SELECT - MIN ( + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT 61 + + 17 * - + 86 + + COUNT( ALL - 83 )
----
-1400

skipif mysql # not compatible
query I rowsort label-1629
SELECT 61 + + 17 * - + 86 + + COUNT ( ALL - 83 )
----
-1400

query I rowsort
SELECT ALL 59 * - - NULLIF ( + ( + 84 ), 35 / + 42 ) * + - 88 * - 83 AS col2
----
36198624

query I rowsort
SELECT + 19 * + + 49 + + 76
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT + MIN( + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-1632
SELECT + MIN ( + 61 )
----
61

query II rowsort
SELECT 67 * 92, - 26 AS col2
----
6164
-26

query I rowsort
SELECT 2 * - 81 * - 47
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT 5 + + COUNT( ALL 11 ) - 6 * 75 + + - 52
----
-496

skipif mysql # not compatible
query I rowsort label-1635
SELECT 5 + + COUNT ( ALL 11 ) - 6 * 75 + + - 52
----
-496

query I rowsort
SELECT DISTINCT 12 * 51 * - 18 * - 78 * - 49 - - 69
----
-42103083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT ALL - NULLIF ( - MAX( DISTINCT 87 ), 55 * CAST( + 60 AS SIGNED ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL - NULLIF ( - MAX ( DISTINCT 87 ), 55 * CAST ( + 60 AS INTEGER ) ) AS col0
----
87

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

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

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL + 14 * COUNT ( * ) AS col2
----
14

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

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL - CAST ( NULL AS INTEGER ) / 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1641
SELECT - 51 DIV - SUM( 63 ) - 9, + 41 * + + 24 AS col1
----
-9
984

skipif mysql # not compatible
query II rowsort label-1641
SELECT - 51 / - SUM ( 63 ) - 9, + 41 * + + 24 AS col1
----
-9
984

query I rowsort
SELECT - 21 * + 83 AS col0
----
-1743

query I rowsort
SELECT + + 17 * + 63
----
1071

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT ALL - 54 * 45 DIV + 63 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL - 54 * 45 / + 63 AS col2
----
-38

query I rowsort
SELECT DISTINCT + 95 * + ( - 73 ) + 20
----
-6915

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT CASE 54 WHEN + + 61 THEN NULL ELSE - 46 + - 80 DIV - 43 END AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1647
SELECT CASE 54 WHEN + + 61 THEN NULL ELSE - 46 + - 80 / - 43 END AS col1
----
-45

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT - - 57 * + ( COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) + + 25 col1
----
NULL

query I rowsort
SELECT ALL 53 + - + 88
----
-35

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

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - 74 * - 83 AS col1
----
-6142

query I rowsort
SELECT - 31 * 14
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1652
SELECT DISTINCT 43 / - CASE - 97 WHEN - COUNT( * ) THEN NULL WHEN + 40 * 29 * - 78 THEN - + CAST( + - 78 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT 43 / - CASE - 97 WHEN - COUNT ( * ) THEN NULL WHEN + 40 * 29 * - 78 THEN - + CAST ( + - 78 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + ( + - MIN( ALL + 42 ) ) + 31
----
-11

skipif mysql # not compatible
query I rowsort label-1653
SELECT + ( + - MIN ( ALL + 42 ) ) + 31
----
-11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1654
SELECT + 72 * + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) / 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 72 * + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) / 95 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1655
SELECT ALL - CAST( + ( - 9 ) AS SIGNED ) + + - 97 + - + 62 col1, - 32 * + - 73 AS col2
----
-150
2336

skipif mysql # not compatible
query II rowsort label-1655
SELECT ALL - CAST ( + ( - 9 ) AS INTEGER ) + + - 97 + - + 62 col1, - 32 * + - 73 AS col2
----
-150
2336

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

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

query I rowsort
SELECT ALL 42 * - + 51 AS col1
----
-2142

query I rowsort
SELECT ALL 18 * - + 36
----
-648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT - MIN( - NULLIF ( - 91, + CAST( - 43 AS SIGNED ) ) ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1659
SELECT - MIN ( - NULLIF ( - 91, + CAST ( - 43 AS INTEGER ) ) ) AS col2
----
-91

query I rowsort
SELECT + 41 * 66 AS col1
----
2706

onlyif mysql # aggregate syntax: 
query III rowsort label-1661
SELECT + COUNT( * ) - - 30 * + 57 AS col0, + 55 + + COALESCE ( + COUNT( + 33 ), 44 ) AS col2, - 82 - COUNT( * ) AS col0
----
1711
56
-83

skipif mysql # not compatible
query III rowsort label-1661
SELECT + COUNT ( * ) - - 30 * + 57 AS col0, + 55 + + COALESCE ( + COUNT ( + 33 ), 44 ) AS col2, - 82 - COUNT ( * ) AS col0
----
1711
56
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT 29 DIV 2 * - ( - 22 )
----
308

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 29 / 2 * - ( - 22 )
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT + 93 - - CASE + + 76 WHEN CASE COALESCE ( - ( 29 ), + 12 + COUNT( * ) ) WHEN + 48 THEN + 31 ELSE + 53 END * ( + COALESCE ( + 25, 18 ) ) THEN + + 89 + 14 WHEN + COALESCE ( + 69, - + 88 / - - NULLIF ( + CAST( + - 31 AS SIGNED ), - 15 ) ) THEN NULL END + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT + 93 - - CASE + + 76 WHEN CASE COALESCE ( - ( 29 ), + 12 + COUNT ( * ) ) WHEN + 48 THEN + 31 ELSE + 53 END * ( + COALESCE ( + 25, 18 ) ) THEN + + 89 + 14 WHEN + COALESCE ( + 69, - + 88 / - - NULLIF ( + CAST ( + - 31 AS INTEGER ), - 15 ) ) THEN NULL END + + 3
----
NULL

query I rowsort
SELECT - 99 * + + 57 AS col2
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT ALL + SUM( DISTINCT + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + SUM ( DISTINCT + 24 ) AS col0
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1666
SELECT ( - ( CASE 61 WHEN + + ( ( 9 ) ) THEN - 13 + - COALESCE ( + CAST( + 6 AS DECIMAL ), + 68 * 65 ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ( - ( CASE 61 WHEN + + ( ( 9 ) ) THEN - 13 + - COALESCE ( + CAST ( + 6 AS REAL ), + 68 * 65 ) END ) )
----
NULL

query I rowsort
SELECT + ( - + NULLIF ( + - 60, - 70 - + + 2 + - 94 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL - COUNT( * ) * 13
----
-13

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL - COUNT ( * ) * 13
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1669
SELECT - 39 DIV - MAX( 31 * + 59 ) - 0
----
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT - 39 / - MAX ( 31 * + 59 ) - 0
----
0

query I rowsort
SELECT DISTINCT 4 * 75 AS col1
----
300

query I rowsort
SELECT 94 * 40 + + 62
----
3822

query I rowsort
SELECT ALL - 22 * - 58 AS col1
----
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COALESCE ( 83, - COUNT( * ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1673
SELECT COALESCE ( 83, - COUNT ( * ) ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT ALL + ( - CASE WHEN NOT - NULLIF ( + 4, + COUNT( * ) ) NOT BETWEEN + 5 / + 9 AND + ( 81 ) - 45 THEN NULL WHEN + 90 < + CAST( NULL AS SIGNED ) THEN ( + 30 ) WHEN ( - NULLIF ( COUNT( * ), SUM( ALL + 6 ) + COALESCE ( + 56 + + 65, 8 / + 46 ) * - 78 ) / 40 ) IS NULL THEN COUNT( ALL + 34 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + ( - CASE WHEN NOT - NULLIF ( + 4, + COUNT ( * ) ) NOT BETWEEN + 5 / + 9 AND + ( 81 ) - 45 THEN NULL WHEN + 90 < + CAST ( NULL AS INTEGER ) THEN ( + 30 ) WHEN ( - NULLIF ( COUNT ( * ), SUM ( ALL + 6 ) + COALESCE ( + 56 + + 65, 8 / + 46 ) * - 78 ) / 40 ) IS NULL THEN COUNT ( ALL + 34 ) END )
----
NULL

query I rowsort
SELECT - 80 + - 20 * ( COALESCE ( 92, 23, + 47 ) * + 60 ) AS col2
----
-110480

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT NULLIF ( 91, + 12 + + COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1676
SELECT NULLIF ( 91, + 12 + + COUNT ( * ) ) AS col2
----
91

query I rowsort
SELECT ALL + 30 * 75 + - 53
----
2197

query I rowsort
SELECT ALL 19 * 42 + 75
----
873

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT 59 * 25 + NULLIF ( ( 45 ), CAST( - COUNT( * ) AS SIGNED ) + CASE - 5 WHEN ( - 18 ) THEN - 6 / 61 END / COUNT( * ) )
----
1520

skipif mysql # not compatible
query I rowsort label-1680
SELECT 59 * 25 + NULLIF ( ( 45 ), CAST ( - COUNT ( * ) AS INTEGER ) + CASE - 5 WHEN ( - 18 ) THEN - 6 / 61 END / COUNT ( * ) )
----
1520

query I rowsort
SELECT NULLIF ( + CASE WHEN NOT NULL IS NOT NULL THEN 55 END, 78 ) AS col1
----
55

query I rowsort
SELECT - 43 * + 34
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL - 53 * - MIN( NULLIF ( - 33, + 39 + 10 ) ) + 43 col0
----
-1706

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL - 53 * - MIN ( NULLIF ( - 33, + 39 + 10 ) ) + 43 col0
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL - AVG ( + 46 ) * 82 + CASE 39 - + 39 WHEN COALESCE ( 47, + 30 * MIN( + 90 * 55 ) - + COUNT( ALL - 70 + 89 ) * NULLIF ( - 56 + 8 * - 15, + 87 / + 69 ), - ( COUNT( * ) ) ) * - COUNT( * ) THEN 86 / 17 WHEN + 31 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - AVG ( + 46 ) * 82 + CASE 39 - + 39 WHEN COALESCE ( 47, + 30 * MIN ( + 90 * 55 ) - + COUNT ( ALL - 70 + 89 ) * NULLIF ( - 56 + 8 * - 15, + 87 / + 69 ), - ( COUNT ( * ) ) ) * - COUNT ( * ) THEN 86 / 17 WHEN + 31 THEN NULL END col0
----
NULL

query I rowsort
SELECT - 31 + ( + 19 )
----
-12

query I rowsort
SELECT DISTINCT + 42 * 27
----
1134

query I rowsort
SELECT ALL - 87 * + 90
----
-7830

query I rowsort
SELECT - 7 + - 99
----
-106

query I rowsort
SELECT + 13 * 65 col1
----
845

query I rowsort
SELECT DISTINCT - 69 * - 57 AS col1
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL 95 - COUNT( ALL NULLIF ( + NULLIF ( + 38, + 22 + 2 ), 42 ) )
----
94

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL 95 - COUNT ( ALL NULLIF ( + NULLIF ( + 38, + 22 + 2 ), 42 ) )
----
94

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

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

query I rowsort
SELECT - 77 - - 99
----
22

query I rowsort
SELECT DISTINCT - 79 * - 13 col2
----
1027

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT ALL CAST( 28 AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL CAST ( 28 AS INTEGER ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 70 * 16 col1
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT + COUNT( * ) + + 10 * SUM( ALL + 60 )
----
601

skipif mysql # not compatible
query I rowsort label-1697
SELECT + COUNT ( * ) + + 10 * SUM ( ALL + 60 )
----
601

query I rowsort
SELECT - 41 + 57
----
16

query I rowsort
SELECT - 18 + + 19 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1700
SELECT - COUNT ( DISTINCT 52 ) * + 7 AS col0
----
-7

query I rowsort
SELECT + 82 * + 91
----
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT ALL 88 DIV 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL 88 / 72 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - COUNT( + 54 ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-1703
SELECT - COUNT ( + 54 ) + - 64
----
-65

query I rowsort
SELECT + 0 - 2
----
-2

query I rowsort
SELECT + 70 + + 44 col0
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT DISTINCT + 35 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + 35 / - 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT MIN( ALL + ( 28 ) ) * - 18
----
-504

skipif mysql # not compatible
query I rowsort label-1707
SELECT MIN ( ALL + ( 28 ) ) * - 18
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL CASE 48 WHEN 18 + 83 THEN + 24 WHEN - 9 + + MIN( DISTINCT 2 ) THEN + AVG ( DISTINCT + 64 ) END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL CASE 48 WHEN 18 + 83 THEN + 24 WHEN - 9 + + MIN ( DISTINCT 2 ) THEN + AVG ( DISTINCT + 64 ) END * 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1709
SELECT COALESCE ( SUM( DISTINCT 13 ), 65, 27 ) + + CAST( - 99 + - 94 * 53 AS SIGNED )
----
-5068

skipif mysql # not compatible
query I rowsort label-1709
SELECT COALESCE ( SUM ( DISTINCT 13 ), 65, 27 ) + + CAST ( - 99 + - 94 * 53 AS INTEGER )
----
-5068

query I rowsort
SELECT ALL 69 * CASE - 26 WHEN 31 * - 88 THEN - 39 ELSE NULL END
----
NULL

query I rowsort
SELECT 72 * 69
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT MIN( + ( + 15 ) ) + + MAX( DISTINCT 90 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT MIN ( + ( + 15 ) ) + + MAX ( DISTINCT 90 ) AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT + CASE COUNT( * ) WHEN COUNT( * ) THEN 48 DIV + 76 - COUNT( * ) * 75 END
----
-75

skipif mysql # not compatible
query I rowsort label-1713
SELECT + CASE COUNT ( * ) WHEN COUNT ( * ) THEN 48 / + 76 - COUNT ( * ) * 75 END
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT 62 DIV 4
----
15

skipif mysql # not compatible
query I rowsort label-1714
SELECT 62 / 4
----
15

query I rowsort
SELECT + 7 + + 18
----
25

query I rowsort
SELECT DISTINCT - + 81 col2
----
-81

query I rowsort
SELECT ALL + ( 4 ) + - 51 AS col0
----
-47

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

skipif mysql # not compatible
query I rowsort label-1718
SELECT 10 * - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL NULLIF ( + COALESCE ( COUNT( * ), 83 + 43 ), + 5 ) + + 82 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL NULLIF ( + COALESCE ( COUNT ( * ), 83 + 43 ), + 5 ) + + 82 * COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT 4 + - 64 * 15
----
-956

query I rowsort
SELECT - 74 * + 21 AS col2
----
-1554

query I rowsort
SELECT ALL 43 + + 13 * + 22 AS col1
----
329

query I rowsort
SELECT ALL 13 + 25
----
38

query I rowsort
SELECT ALL + 71 + 78 col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT CASE COUNT( * ) WHEN 36 THEN NULL WHEN 68 - 62 * 34 THEN + ( 13 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT CASE COUNT ( * ) WHEN 36 THEN NULL WHEN 68 - 62 * 34 THEN + ( 13 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 75 + ( + 92 + 81 ) AS col0
----
248

query I rowsort
SELECT 10 + + 15
----
25

query I rowsort
SELECT DISTINCT 88 + 45
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT ALL - ( SUM( - CAST( + 6 AS SIGNED ) ) ) + - ( + 98 )
----
-92

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL - ( SUM ( - CAST ( + 6 AS INTEGER ) ) ) + - ( + 98 )
----
-92

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

query I rowsort
SELECT ALL + 19 * - 16
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT - NULLIF ( - COUNT( * ), - 14 * - 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - 14 * - 38 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 83 - + 52 * - 43
----
2153

query I rowsort
SELECT 61 * + + 83
----
5063

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1736
SELECT DISTINCT + COUNT( * ) DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT + COUNT ( * ) / 21 AS col1
----
0

query I rowsort
SELECT DISTINCT - 84 - 98
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT 86 + + MIN( 57 )
----
143

skipif mysql # not compatible
query I rowsort label-1738
SELECT 86 + + MIN ( 57 )
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT ALL + 20 DIV + 7 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + 20 / + 7 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT DISTINCT + 11 DIV - + COALESCE ( + 21, 80 * MAX( DISTINCT 64 ) ) * 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + 11 / - + COALESCE ( + 21, 80 * MAX ( DISTINCT 64 ) ) * 8 AS col1
----
0

query I rowsort
SELECT 2 + + 53
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL + MAX( ALL + 82 ) * COUNT( * ) col0
----
82

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + MAX ( ALL + 82 ) * COUNT ( * ) col0
----
82

query I rowsort
SELECT 76 * + 13
----
988

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT ALL + 21 DIV + - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + 21 / + - 57 AS col2
----
0

query I rowsort
SELECT ALL + COALESCE ( 79, + 7 ) * 11 AS col1
----
869

query I rowsort
SELECT DISTINCT + 48 * + + 11
----
528

query I rowsort
SELECT 5 * - 16
----
-80

query I rowsort
SELECT ALL + 30 * - 94
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT - MAX( DISTINCT 88 ) + 0
----
-88

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - MAX ( DISTINCT 88 ) + 0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL - 16 + - - COUNT( * ) + 41 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - 16 + - - COUNT ( * ) + 41 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT - MIN( ALL - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT - MIN ( ALL - 37 ) AS col2
----
37

query I rowsort
SELECT - + NULLIF ( - - 55, 83 * + 34 ) AS col1
----
-55

query I rowsort
SELECT 46 * - + 65 * + 4
----
-11960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1754
SELECT - 31 - SUM( 68 ) + NULLIF ( 70, - MAX( - 29 ) ) DIV + 23
----
-96

skipif mysql # not compatible
query I rowsort label-1754
SELECT - 31 - SUM ( 68 ) + NULLIF ( 70, - MAX ( - 29 ) ) / + 23
----
-96

query I rowsort
SELECT ALL 75 + + + 43
----
118

query I rowsort
SELECT - 44 - + - 78 - 70
----
-36

query I rowsort
SELECT ALL - 55 + + 57 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT + + COALESCE ( + + COUNT( 83 ), ( - 20 ) + + 13 * ( + 47 + + ( 36 ) ), 15 * ( 73 ) + + COUNT( * ) * MIN( CAST( 11 AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1758
SELECT + + COALESCE ( + + COUNT ( 83 ), ( - 20 ) + + 13 * ( + 47 + + ( 36 ) ), 15 * ( 73 ) + + COUNT ( * ) * MIN ( CAST ( 11 AS INTEGER ) ) ) AS col1
----
1

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

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

query I rowsort
SELECT ALL - 75 + - 20 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT - CAST( NULL AS SIGNED ) * CASE + ( + COUNT( * ) ) WHEN + ( 75 ) THEN + 26 ELSE NULL END / - 19 - - ( - 10 + NULLIF ( 87, + 68 + 67 ) / - 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT - CAST ( NULL AS INTEGER ) * CASE + ( + COUNT ( * ) ) WHEN + ( 75 ) THEN + 26 ELSE NULL END / - 19 - - ( - 10 + NULLIF ( 87, + 68 + 67 ) / - 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT 59 + + 85 * SUM( 28 )
----
2439

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT 59 + + 85 * SUM ( 28 )
----
2439

query I rowsort
SELECT + 57 * - 18 * 87 + 86
----
-89176

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL MAX( - 84 ) - 22 * + 71 AS col0
----
-1646

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL MAX ( - 84 ) - 22 * + 71 AS col0
----
-1646

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

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

query I rowsort
SELECT 59 * 8 + 95
----
567

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT - COUNT ( * ) * - 27
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT SUM( DISTINCT 51 ) + COALESCE ( NULLIF ( - 15, 89 ), 93 + COUNT( * ) * + 66 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1770
SELECT SUM ( DISTINCT 51 ) + COALESCE ( NULLIF ( - 15, 89 ), 93 + COUNT ( * ) * + 66 ) AS col1
----
36

query I rowsort
SELECT ALL + 79 - - 80
----
159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - 87 + - ( - COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-1773
SELECT - 87 + - ( - COUNT ( * ) )
----
-86

query II rowsort
SELECT ALL - 96 AS col2, 47 AS col1
----
-96
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ( - + CASE + COUNT( * ) WHEN 33 + + 88 THEN - 24 END ) * 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT ( - + CASE + COUNT ( * ) WHEN 33 + + 88 THEN - 24 END ) * 10 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 95 * + 41 AS col0
----
3895

query I rowsort
SELECT ( + 18 ) * 40 AS col1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT 96 * MIN( DISTINCT + + 90 ) AS col1
----
8640

skipif mysql # not compatible
query I rowsort label-1779
SELECT 96 * MIN ( DISTINCT + + 90 ) AS col1
----
8640

query I rowsort
SELECT ALL 12 * 46
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ( 7 ) + + + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1781
SELECT ( 7 ) + + + COUNT ( * ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT COUNT( + + 32 ) + - + ( 22 ) + 37
----
16

skipif mysql # not compatible
query I rowsort label-1782
SELECT COUNT ( + + 32 ) + - + ( 22 ) + 37
----
16

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

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL 59 * ( + + COUNT ( DISTINCT ( + 63 ) ) ) AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT 94 * CAST( NULL AS SIGNED ) / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT 94 * CAST ( NULL AS INTEGER ) / 76
----
NULL

query I rowsort
SELECT DISTINCT 11 + - + 77 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT SUM( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT SUM ( ALL - 38 )
----
-38

query I rowsort
SELECT ALL - 62 + + - 91
----
-153

query I rowsort
SELECT - 40 + - 19 AS col1
----
-59

query I rowsort
SELECT ALL - 90 + - + 40 AS col1
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1790
SELECT + COALESCE ( - + 33, 51, + 17 ) * CAST( + NULLIF ( - 5, COUNT( * ) ) + - 51 DIV - 33 AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-1790
SELECT + COALESCE ( - + 33, 51, + 17 ) * CAST ( + NULLIF ( - 5, COUNT ( * ) ) + - 51 / - 33 AS INTEGER )
----
132

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

query I rowsort
SELECT + ( + ( + 40 ) ) + - 16
----
24

query I rowsort
SELECT ALL - ( + COALESCE ( - 48, 56 - + 86 ) ) + 35
----
83

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

query I rowsort
SELECT - + 90 + + - 35 * + 65 + 90 AS col2
----
-2275

query I rowsort
SELECT ALL + 79 * - ( - + ( + 73 ) ) col0
----
5767

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

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

query I rowsort
SELECT ALL - + 80 + + 83 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT - + 24 col1, + 79 + 31 + - COUNT( * ) AS col2
----
-24
109

skipif mysql # not compatible
query II rowsort label-1799
SELECT - + 24 col1, + 79 + 31 + - COUNT ( * ) AS col2
----
-24
109

query I rowsort
SELECT ALL + 35 * - 4 + + 6
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT - MAX( - CAST( + + 85 AS SIGNED ) ) + 74
----
159

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - MAX ( - CAST ( + + 85 AS INTEGER ) ) + 74
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT + 24 * 14 + - - COUNT( * )
----
337

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + 24 * 14 + - - COUNT ( * )
----
337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT + + 38 / + 44 - 15 / CAST( NULL AS SIGNED ) + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT + + 38 / + 44 - 15 / CAST ( NULL AS INTEGER ) + - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT - - 63 * - - 69 * 71
----
308637

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + ( - CASE ( + 33 ) WHEN - COALESCE ( 41, 35 ) THEN + 14 * 53 - COALESCE ( 84 + + 31, 84, COUNT( * ) ) ELSE 16 - + 57 END )
----
41

skipif mysql # not compatible
query I rowsort label-1805
SELECT + ( - CASE ( + 33 ) WHEN - COALESCE ( 41, 35 ) THEN + 14 * 53 - COALESCE ( 84 + + 31, 84, COUNT ( * ) ) ELSE 16 - + 57 END )
----
41

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

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

query I rowsort
SELECT - - 72 + COALESCE ( 84, + 35 ) + - 51 * 30 col2
----
-1374

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL + COUNT( * ) * + 71 * - + 65 AS col1
----
-4615

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + COUNT ( * ) * + 71 * - + 65 AS col1
----
-4615

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - 87 * 46 + - COUNT( * ) - 14 AS col1
----
-4017

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - 87 * 46 + - COUNT ( * ) - 14 AS col1
----
-4017

query I rowsort
SELECT DISTINCT - 69 * + - 9 + - 75 + - 83 * 59 AS col2
----
-4351

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

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

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

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

query I rowsort
SELECT DISTINCT - 20 * - + 4 AS col1
----
80

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

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

query I rowsort
SELECT DISTINCT 78 * 93 * - 75 col2
----
-544050

query I rowsort
SELECT + COALESCE ( + 38, + + 46 ) AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT - 1 DIV - + 81 * - - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 1 / - + 81 * - - 18 AS col0
----
0

query I rowsort
SELECT 57 * - NULLIF ( + 16, - + 90 ) + 61 AS col2
----
-851

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

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

query I rowsort
SELECT + 83 * + 58
----
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT COUNT( DISTINCT - - 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1822
SELECT COUNT ( DISTINCT - - 23 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 65 DIV + NULLIF ( + 57, + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 65 / + NULLIF ( + 57, + 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1824
SELECT + MAX( ALL + - 30 ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT + MAX ( ALL + - 30 ) / + + 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL CAST( NULL AS SIGNED ) * - 5 + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL CAST ( NULL AS INTEGER ) * - 5 + 1 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - CASE + COUNT( * ) WHEN - - 88 THEN + 97 * 44 WHEN COUNT( * ) / + 69 THEN NULL ELSE 49 + 1 END AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1826
SELECT - CASE + COUNT ( * ) WHEN - - 88 THEN + 97 * 44 WHEN COUNT ( * ) / + 69 THEN NULL ELSE 49 + 1 END AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL 17 * SUM( + 31 ) + COUNT( 82 )
----
528

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL 17 * SUM ( + 31 ) + COUNT ( 82 )
----
528

query I rowsort
SELECT ALL + 13 * 69 + - + 73
----
824

query II rowsort
SELECT + 64 + 49 AS col0, + 83
----
113
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT MIN( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-1830
SELECT MIN ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL COUNT( * ) + - 49 + + CASE - ( 91 ) WHEN - SUM( DISTINCT 52 ) THEN ( + 52 ) / - 95 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL COUNT ( * ) + - 49 + + CASE - ( 91 ) WHEN - SUM ( DISTINCT 52 ) THEN ( + 52 ) / - 95 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - COUNT( * ) * + 22 + - - 13 * 63 AS col1
----
797

skipif mysql # not compatible
query I rowsort label-1832
SELECT - COUNT ( * ) * + 22 + - - 13 * 63 AS col1
----
797

query I rowsort
SELECT ALL 47 + + 98 * 40 + + 77 AS col1
----
4044

query I rowsort
SELECT - COALESCE ( + + 47, - 32 )
----
-47

query I rowsort
SELECT + 17 * - 10
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - COALESCE ( + + COUNT( * ), + + 54 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1836
SELECT - COALESCE ( + + COUNT ( * ), + + 54 ) AS col0
----
-1

query I rowsort
SELECT - 11 + + - NULLIF ( 35, + + 8 * - COALESCE ( 7 * 92 + 98 * - 14, + 22 + + ( + 34 ) ) ) * 62 AS col1
----
-2181

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

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

query I rowsort
SELECT ALL 52 + + - 83
----
-31

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

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

query I rowsort
SELECT ALL 96 + ( + 60 )
----
156

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT - COUNT( * ) * - + 52 - - 29 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1844
SELECT - COUNT ( * ) * - + 52 - - 29 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT + 93 + + - 25 * - 5 * + ( CAST( + ( 97 ) AS SIGNED ) )
----
12218

skipif mysql # not compatible
query I rowsort label-1845
SELECT + 93 + + - 25 * - 5 * + ( CAST ( + ( 97 ) AS INTEGER ) )
----
12218

query II rowsort
SELECT ALL - 72 - - - 0, COALESCE ( - NULLIF ( 77, + 54 ), 77 ) AS col1
----
-72
-77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT - 81 DIV - 77
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - 81 / - 77
----
1

query I rowsort
SELECT + + 17 - - ( 60 ) * + 33 AS col2
----
1997

query I rowsort
SELECT - + 12 * - - 91 + 26
----
-1066

query I rowsort
SELECT - - 43 + + 1 + - 68 * - 62
----
4260

query I rowsort
SELECT DISTINCT NULLIF ( 59, 10 / - 27 ) * 65 AS col1
----
3835

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT - 29 * COUNT( - 52 ) + + + 16
----
-13

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT - 29 * COUNT ( - 52 ) + + + 16
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1855
SELECT + 90 DIV - 12 - + - 91 * + 96 AS col2
----
8729

skipif mysql # not compatible
query I rowsort label-1855
SELECT + 90 / - 12 - + - 91 * + 96 AS col2
----
8729

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

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

query I rowsort
SELECT - - 85 * + 95 AS col1
----
8075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT - ( 23 ) + - CAST( NULL AS SIGNED ) * + SUM( DISTINCT 16 ) + - 36 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT - ( 23 ) + - CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT 16 ) + - 36 * + 60
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT ALL 70 DIV - 63 + + 49 * + 68 AS col2
----
3331

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 70 / - 63 + + 49 * + 68 AS col2
----
3331

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

query I rowsort
SELECT - 95 * - + ( 38 ) col1
----
3610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1863
SELECT - ( + - ( 65 ) ) + + - 47 * - + CASE + 13 WHEN CAST( MAX( + 1 ) AS DECIMAL ) THEN - 85 * CAST( 12 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT - ( + - ( 65 ) ) + + - 47 * - + CASE + 13 WHEN CAST ( MAX ( + 1 ) AS REAL ) THEN - 85 * CAST ( 12 AS INTEGER ) END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 24 + 8 * 66 AS col2
----
552

query II rowsort
SELECT ALL - 7 + + ( - 21 ) AS col2, + 31 AS col1
----
-28
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT ALL 59 + + 33 + + + CAST( - 79 AS SIGNED ) * + 35 col0
----
-2673

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL 59 + + 33 + + + CAST ( - 79 AS INTEGER ) * + 35 col0
----
-2673

query I rowsort
SELECT ALL ( 65 ) + + 87 AS col1
----
152

query I rowsort
SELECT 8 * 86 + 31 AS col1
----
719

query I rowsort
SELECT ALL - 72 * + + 76 AS col1
----
-5472

query I rowsort
SELECT 1 + - 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL CASE - 94 WHEN + - SUM( ALL + - 57 ) THEN + 36 END + 84 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL CASE - 94 WHEN + - SUM ( ALL + - 57 ) THEN + 36 END + 84 / + COUNT ( * )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT + 45 - + CASE - 32 WHEN + ( + 13 ) THEN NULL WHEN + 6 * - 45 + 56 * 41 THEN + MAX( + 42 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT + 45 - + CASE - 32 WHEN + ( + 13 ) THEN NULL WHEN + 6 * - 45 + 56 * 41 THEN + MAX ( + 42 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 98 - + 1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1876
SELECT ( 27 ) + - - COUNT( * ), + ( + 85 ) AS col1
----
28
85

skipif mysql # not compatible
query II rowsort label-1876
SELECT ( 27 ) + - - COUNT ( * ), + ( + 85 ) AS col1
----
28
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1877
SELECT 41 * + + 97 * - CAST( NULL AS SIGNED ), - 6 DIV - 58 - - NULLIF ( 84, + 23 + 82 ) * 70 AS col0
----
NULL
5880

skipif mysql # not compatible
query II rowsort label-1877
SELECT 41 * + + 97 * - CAST ( NULL AS INTEGER ), - 6 / - 58 - - NULLIF ( 84, + 23 + 82 ) * 70 AS col0
----
NULL
5880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT CAST( - 24 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-1878
SELECT CAST ( - 24 AS INTEGER )
----
-24

query I rowsort
SELECT ( 7 ) * - 11 - + 5
----
-82

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

query I rowsort
SELECT 33 + 1 AS col0
----
34

query I rowsort
SELECT - 83 - + 47 AS col1
----
-130

query I rowsort
SELECT ALL 53 * + 38
----
2014

query I rowsort
SELECT DISTINCT + 24 * + + 2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL + SUM( ALL 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + SUM ( ALL 33 ) AS col0
----
33

query I rowsort
SELECT - - NULLIF ( - 3, + AVG ( DISTINCT - + 29 ) ) AS col1
----
-3

query I rowsort
SELECT ALL 10 * - - 80
----
800

query II rowsort
SELECT - 61 AS col1, 70 AS col2
----
-61
70

onlyif mysql # DIV for integer division: 
query II rowsort label-1889
SELECT DISTINCT - 31, 52 DIV + + 9 - + 2 AS col1
----
-31
3

skipif mysql # not compatible
query II rowsort label-1889
SELECT DISTINCT - 31, 52 / + + 9 - + 2 AS col1
----
-31
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1890
SELECT + 50 * CAST( NULL AS SIGNED ) + + 95 / + MAX( DISTINCT - 4 ) * ( 7 ) + SUM( 87 + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT + 50 * CAST ( NULL AS INTEGER ) + + 95 / + MAX ( DISTINCT - 4 ) * ( 7 ) + SUM ( 87 + - 66 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT 55 + - COUNT( * ) + - 11 - NULLIF ( - + 12, + 70 * - 34 ) * - 77
----
-881

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT 55 + - COUNT ( * ) + - 11 - NULLIF ( - + 12, + 70 * - 34 ) * - 77
----
-881

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

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

query I rowsort
SELECT ALL + 75 + + - 90 * + - 1
----
165

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT ( + + NULLIF ( - - COUNT( * ), + COUNT( * ) ) ) + ( + - MIN( ALL - CAST( NULL AS SIGNED ) ) ) - - 27 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT ( + + NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) ) + ( + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) ) - - 27 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT 1 + ( - 96 ) * 35 + - COUNT( * ) AS col1
----
-3360

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT 1 + ( - 96 ) * 35 + - COUNT ( * ) AS col1
----
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1898
SELECT ALL - COUNT( * ) * 20 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL - COUNT ( * ) * 20 / + + 96
----
0

query I rowsort
SELECT ALL 36 + + 72 AS col0
----
108

query II rowsort
SELECT DISTINCT - 28 AS col2, + 48 + - COALESCE ( - + 88, - 80 + 90 ) AS col0
----
-28
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL + COUNT( * ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + COUNT ( * ) + + 37
----
38

query I rowsort
SELECT ALL - 76 + - + 91 AS col2
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT DISTINCT - CAST( + 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT - CAST ( + 78 AS INTEGER )
----
-78

query I rowsort
SELECT 11 + 63
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + COUNT( + 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1905
SELECT + COUNT ( + 9 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT COUNT( * ) + - COALESCE ( - ( + + 24 ), - - 41, - ( + 1 ) )
----
25

skipif mysql # not compatible
query I rowsort label-1906
SELECT COUNT ( * ) + - COALESCE ( - ( + + 24 ), - - 41, - ( + 1 ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT ALL + 31 + - 8 AS col0, 37 * + + 76 * COUNT( + 90 )
----
23
2812

skipif mysql # not compatible
query II rowsort label-1907
SELECT ALL + 31 + - 8 AS col0, 37 * + + 76 * COUNT ( + 90 )
----
23
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL - CASE WHEN NOT ( - COUNT( * ) ) > + 36 / - + 75 THEN NULL ELSE - - 15 + 4 END + 11 * - MIN( 80 + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - CASE WHEN NOT ( - COUNT ( * ) ) > + 36 / - + 75 THEN NULL ELSE - - 15 + 4 END + 11 * - MIN ( 80 + 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT 1 * + CASE - + 97 WHEN COALESCE ( - 23, + + 6 + + 98 / 13 ) * 84 THEN + 87 - - 75 WHEN 24 * COUNT( * ) + 23 * 15 THEN COUNT( 15 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1909
SELECT 1 * + CASE - + 97 WHEN COALESCE ( - 23, + + 6 + + 98 / 13 ) * 84 THEN + 87 - - 75 WHEN 24 * COUNT ( * ) + 23 * 15 THEN COUNT ( 15 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT 4 - COUNT( * ) - 25 * + 41 * ( 36 ) * - 65 AS col0
----
2398503

skipif mysql # not compatible
query I rowsort label-1910
SELECT 4 - COUNT ( * ) - 25 * + 41 * ( 36 ) * - 65 AS col0
----
2398503

query II rowsort
SELECT 47, + ( 29 ) * 86 AS col0
----
47
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL - COUNT( * ) - + + 63 * - 37 + - 12 + + - ( - 46 ) + 77 AS col0
----
2441

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL - COUNT ( * ) - + + 63 * - 37 + - 12 + + - ( - 46 ) + 77 AS col0
----
2441

query I rowsort
SELECT ALL + ( + 47 ) - + 10 + + 22 AS col1
----
59

query II rowsort
SELECT DISTINCT 62 AS col0, 75 AS col2
----
62
75

query II rowsort
SELECT ALL 15, 62 col0
----
15
62

query I rowsort
SELECT 32 * + - 93 + 50 + - 87 AS col0
----
-3013

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + COUNT( * ) * + - 28 + + 75 col2
----
47

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + COUNT ( * ) * + - 28 + + 75 col2
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1918
SELECT - - CAST( NULL AS DECIMAL ) AS col1, NULLIF ( + - 25, - 19 + + 92 ) * - - 23
----
NULL
-575

skipif mysql # not compatible
query II rowsort label-1918
SELECT - - CAST ( NULL AS REAL ) AS col1, NULLIF ( + - 25, - 19 + + 92 ) * - - 23
----
NULL
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT + 98 - + - 87 + - - 14 * + MAX( DISTINCT 21 ) col2
----
479

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + 98 - + - 87 + - - 14 * + MAX ( DISTINCT 21 ) col2
----
479

query I rowsort
SELECT - 88 * - - CASE + 31 WHEN 62 THEN - + 55 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT DISTINCT + ( - CASE + 13 WHEN - COUNT( * ) + + CASE CAST( 97 AS SIGNED ) WHEN 29 THEN - 83 * + 25 ELSE NULL END THEN - 52 WHEN + 40 THEN 95 / - 53 WHEN COUNT( * ) * 25 THEN CASE 60 WHEN + 15 THEN 6 - 36 END + 68 * COUNT( * ) END ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + ( - CASE + 13 WHEN - COUNT ( * ) + + CASE CAST ( 97 AS INTEGER ) WHEN 29 THEN - 83 * + 25 ELSE NULL END THEN - 52 WHEN + 40 THEN 95 / - 53 WHEN COUNT ( * ) * 25 THEN CASE 60 WHEN + 15 THEN 6 - 36 END + 68 * COUNT ( * ) END ) * 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL - CAST( - 6 AS SIGNED ) * - 3
----
-18

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - CAST ( - 6 AS INTEGER ) * - 3
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT MAX( - - 59 ) * CASE - + 97 WHEN 50 * + 21 + 98 * + 38 THEN NULL ELSE - 76 END AS col1
----
-4484

skipif mysql # not compatible
query I rowsort label-1924
SELECT MAX ( - - 59 ) * CASE - + 97 WHEN 50 * + 21 + 98 * + 38 THEN NULL ELSE - 76 END AS col1
----
-4484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1925
SELECT ALL + COALESCE ( - 26, - 18 DIV + 5 * + - COUNT( - + ( + 12 ) ) * ( - 12 - CAST( NULL AS SIGNED ) ) ) DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + COALESCE ( - 26, - 18 / + 5 * + - COUNT ( - + ( + 12 ) ) * ( - 12 - CAST ( NULL AS INTEGER ) ) ) / 22
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT + 38 * - 45 * + - CASE - 91 WHEN COALESCE ( 72, CAST( - 9 AS SIGNED ), 46 ) THEN ( 21 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT + 38 * - 45 * + - CASE - 91 WHEN COALESCE ( 72, CAST ( - 9 AS INTEGER ), 46 ) THEN ( 21 ) END AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT + 4 * - CAST( 43 AS SIGNED ) AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 4 * - CAST ( 43 AS INTEGER ) AS col2
----
-172

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT - COUNT( * ) - + 35 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1930
SELECT - COUNT ( * ) - + 35 AS col2
----
-36

query II rowsort
SELECT - 85 col2, 95 * + 17
----
-85
1615

query II rowsort
SELECT - + 9 AS col1, + 0 * - 95
----
-9
0

query II rowsort
SELECT - + 40 AS col2, 33 col1
----
-40
33

query I rowsort
SELECT + + NULLIF ( + - 77, + ( + 23 ) / ( + 80 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT 80 * 33 + - - 64 + - COUNT( * )
----
2703

skipif mysql # not compatible
query I rowsort label-1935
SELECT 80 * 33 + - - 64 + - COUNT ( * )
----
2703

query I rowsort
SELECT - 93 * 16 - - 17 AS col0
----
-1471

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT + SUM( - 57 ) col0, - ( - + 86 ) * - - 93 * 63 AS col1
----
-57
503874

skipif mysql # not compatible
query II rowsort label-1937
SELECT + SUM ( - 57 ) col0, - ( - + 86 ) * - - 93 * 63 AS col1
----
-57
503874

query I rowsort
SELECT + CASE 47 WHEN - - 78 / 19 * - 60 * ( + + 3 ) THEN 53 + 17 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 77 + 86
----
9

query I rowsort
SELECT ALL + 20 * 34 - ( + 93 ) col2
----
587

query II rowsort
SELECT - 94 * - 49 AS col2, - 83 * + 25
----
4606
-2075

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT CASE + 15 WHEN + - ( - + 21 ) + 76 THEN + COUNT( * ) * 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT CASE + 15 WHEN + - ( - + 21 ) + 76 THEN + COUNT ( * ) * 8 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT + NULLIF ( - CAST( + 31 AS SIGNED ), + CAST( CASE - ( + - COUNT( * ) ) WHEN + 64 + 83 * 63 THEN + 56 ELSE 31 END AS SIGNED ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1943
SELECT + NULLIF ( - CAST ( + 31 AS INTEGER ), + CAST ( CASE - ( + - COUNT ( * ) ) WHEN + 64 + 83 * 63 THEN + 56 ELSE 31 END AS INTEGER ) ) AS col1
----
-31

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

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

query I rowsort
SELECT ALL 54 * 47 - - 4 AS col0
----
2542

query I rowsort
SELECT + 58 * + 92
----
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL - COUNT( * ) * - + 57 * - - 51 * - - 9 - 34
----
26129

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - COUNT ( * ) * - + 57 * - - 51 * - - 9 - 34
----
26129

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT 73 * NULLIF ( + COUNT( * ), COUNT( * ) * - 40 ) + - - 48 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-1948
SELECT 73 * NULLIF ( + COUNT ( * ), COUNT ( * ) * - 40 ) + - - 48 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - COUNT( ALL - - 33 ) + 98
----
97

skipif mysql # not compatible
query I rowsort label-1949
SELECT - COUNT ( ALL - - 33 ) + 98
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT + + 80 + CAST( + - 66 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-1950
SELECT + + 80 + CAST ( + - 66 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - - ( + NULLIF ( - 56, - - MIN( ALL - 8 ) * + 46 ) ) + NULLIF ( 97, - 43 )
----
41

skipif mysql # not compatible
query I rowsort label-1951
SELECT - - ( + NULLIF ( - 56, - - MIN ( ALL - 8 ) * + 46 ) ) + NULLIF ( 97, - 43 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL - MAX( 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL - MAX ( 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL COALESCE ( + 19, + COUNT( * ) * - 60 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL COALESCE ( + 19, + COUNT ( * ) * - 60 ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT - + 80 DIV + + 80
----
-1

skipif mysql # not compatible
query I rowsort label-1954
SELECT - + 80 / + + 80
----
-1

query I rowsort
SELECT ALL + + ( + 5 ) + + 64 AS col2
----
69

query I rowsort
SELECT - 31 + - 47 * 83 col1
----
-3932

query I rowsort
SELECT DISTINCT + - 25 + - ( + - 36 ) * ( 61 )
----
2171

query I rowsort
SELECT ALL - - 62 + - 99 * 38 AS col0
----
-3700

query I rowsort
SELECT - 58 + - - 91
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1960
SELECT ALL - 9 + - CAST( NULL AS SIGNED ) AS col2, + MAX( + CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1960
SELECT ALL - 9 + - CAST ( NULL AS INTEGER ) AS col2, + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT DISTINCT - - SUM( ALL - - 93 ) * COUNT( * ) * - - ( - CAST( - ( NULLIF ( + 92, 25 ) ) AS SIGNED ) ) * ( + 98 - + 24 * 81 ) + + CAST( NULL AS SIGNED ) * CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - - SUM ( ALL - - 93 ) * COUNT ( * ) * - - ( - CAST ( - ( NULLIF ( + 92, 25 ) ) AS INTEGER ) ) * ( + 98 - + 24 * 81 ) + + CAST ( NULL AS INTEGER ) * CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT - + 28 + + - 25 * + + 10 * COUNT( * ) * 62 col1
----
-15528

skipif mysql # not compatible
query I rowsort label-1962
SELECT - + 28 + + - 25 * + + 10 * COUNT ( * ) * 62 col1
----
-15528

query I rowsort
SELECT + + 23 - + 70 + ( - 73 ) AS col1
----
-120

query I rowsort
SELECT - - 54 + - 41 * - - 50 AS col1
----
-1996

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - MIN( - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1965
SELECT - MIN ( - 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL COUNT( * ) + CAST( + 96 AS SIGNED ) + + COUNT( * ) * + - COUNT( * ) * + + 66 * 36 * + 46 * ( - 43 ) AS col1
----
4699825

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL COUNT ( * ) + CAST ( + 96 AS INTEGER ) + + COUNT ( * ) * + - COUNT ( * ) * + + 66 * 36 * + 46 * ( - 43 ) AS col1
----
4699825

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - COUNT( + - COALESCE ( + 16, - 6 + 94, 17 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1967
SELECT - COUNT ( + - COALESCE ( + 16, - 6 + 94, 17 ) )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL ( SUM ( ( - 90 ) ) )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT DISTINCT 70 / - 29 * ( - CAST( NULL AS SIGNED ) ) + + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT 70 / - 29 * ( - CAST ( NULL AS INTEGER ) ) + + 12 AS col1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 49 DIV - 66 * - - 98 + + - 26 col0
----
-26

skipif mysql # not compatible
query I rowsort label-1972
SELECT 49 / - 66 * - - 98 + + - 26 col0
----
-26

query I rowsort
SELECT + 65 * - 64
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL ( - + 72 ) * - SUM( + - 85 )
----
-6120

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL ( - + 72 ) * - SUM ( + - 85 )
----
-6120

query I rowsort
SELECT + 82 + + 92
----
174

query I rowsort
SELECT + NULLIF ( + 19, + AVG ( + + 99 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1977
SELECT ALL - 99 DIV - 98 - 27 + - 80 AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - 99 / - 98 - 27 + - 80 AS col2
----
-106

query I rowsort
SELECT DISTINCT + 59 * - 32 AS col1
----
-1888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1979
SELECT ALL - 60 DIV 96 - SUM( - 7 ), - 37 * + 26 AS col1
----
7
-962

skipif mysql # not compatible
query II rowsort label-1979
SELECT ALL - 60 / 96 - SUM ( - 7 ), - 37 * + 26 AS col1
----
7
-962

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

query I rowsort
SELECT + 99 * + 17
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT + 4 + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-1982
SELECT + 4 + + COUNT ( * )
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + + MAX( - ( + 63 ) ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-1984
SELECT + + MAX ( - ( + 63 ) ) col1
----
-63

query I rowsort
SELECT ALL - 65 * + 72 + + CASE 54 WHEN 34 + + 40 THEN 52 WHEN + + 34 + - 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + - ( - - 65 ) * + - COUNT( 26 ) * NULLIF ( + 97, + SUM( DISTINCT NULLIF ( - 54, 33 ) ) ) * + 56 - + 68
----
353012

skipif mysql # not compatible
query I rowsort label-1986
SELECT + - ( - - 65 ) * + - COUNT ( 26 ) * NULLIF ( + 97, + SUM ( DISTINCT NULLIF ( - 54, 33 ) ) ) * + 56 - + 68
----
353012

query I rowsort
SELECT ALL - + 2 * 3
----
-6

query I rowsort
SELECT DISTINCT CASE - 0 WHEN - 14 + + ( 45 ) THEN - 70 + - 88 + - 36 + 76 * COALESCE ( + 43 * + 54, - 25, 82 ) * + 18 END / 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL 14 * - CAST( NULL AS SIGNED ) + 33 * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL 14 * - CAST ( NULL AS INTEGER ) + 33 * 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT + 57 * - + MAX( 25 )
----
-1425

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + 57 * - + MAX ( 25 )
----
-1425

query I rowsort
SELECT + 59 * + 60
----
3540

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL + 87 * COUNT( ALL + + 2 ) * 11 + 17 AS col1
----
974

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL + 87 * COUNT ( ALL + + 2 ) * 11 + 17 AS col1
----
974

query I rowsort
SELECT + CASE - 66 WHEN + 40 * + - 1 + 50 THEN - 76 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL + 63 + - COUNT( * ) * + + 41 col2
----
22

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + 63 + - COUNT ( * ) * + + 41 col2
----
22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1996
SELECT ALL MIN( 23 ) + - + 66 AS col2, 36 + 45
----
-43
81

skipif mysql # not compatible
query II rowsort label-1996
SELECT ALL MIN ( 23 ) + - + 66 AS col2, 36 + 45
----
-43
81

query II rowsort
SELECT ALL 75, + 86 AS col1
----
75
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1998
SELECT DISTINCT - 54 AS col2, - 75 - - ( - COUNT( * ) ) AS col0
----
-54
-76

skipif mysql # not compatible
query II rowsort label-1998
SELECT DISTINCT - 54 AS col2, - 75 - - ( - COUNT ( * ) ) AS col0
----
-54
-76

query I rowsort
SELECT ALL - - ( - - 81 ) + + - ( + 76 ) - + + 49
----
-44

query I rowsort
SELECT DISTINCT - - ( - 86 ) * - 63 * - + 29
----
-157122

query I rowsort
SELECT DISTINCT - 62 - 84 AS col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT 79 + + COUNT( ALL + + 40 )
----
80

skipif mysql # not compatible
query I rowsort label-2002
SELECT 79 + + COUNT ( ALL + + 40 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT 15 DIV - 82 * + 74
----
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT 15 / - 82 * + 74
----
0

query I rowsort
SELECT ALL - 44 - 73 * - + 41 AS col2
----
2949

query I rowsort
SELECT 86 * 35 * - 28 col2
----
-84280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT 95 + - MIN( 51 ) + CAST( NULL AS SIGNED ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT 95 + - MIN ( 51 ) + CAST ( NULL AS INTEGER ) * - 80
----
NULL

query I rowsort
SELECT 5 + - 26 * 34
----
-879

query I rowsort
SELECT 11 * + - 45
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT 14 + - + NULLIF ( ( + CASE + 86 WHEN + NULLIF ( + - NULLIF ( + + 32, + + MIN( DISTINCT - 61 ) * NULLIF ( 42, 98 - - 19 ) + 77 / + 73 ), + 66 + + CAST( NULL AS SIGNED ) ) THEN - 27 END ), 98 * 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT 14 + - + NULLIF ( ( + CASE + 86 WHEN + NULLIF ( + - NULLIF ( + + 32, + + MIN ( DISTINCT - 61 ) * NULLIF ( 42, 98 - - 19 ) + 77 / + 73 ), + 66 + + CAST ( NULL AS INTEGER ) ) THEN - 27 END ), 98 * 88 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL + MIN( ALL 4 ) * 50
----
200

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + MIN ( ALL 4 ) * 50
----
200

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT 30 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT 30 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2013
SELECT ALL 47 DIV + + 33, - 20 AS col1
----
1
-20

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL 47 / + + 33, - 20 AS col1
----
1
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2014
SELECT DISTINCT - COUNT( * ) DIV + 2 * NULLIF ( + 42, - 74 ) * - - 10 * + 89 - + COUNT( ALL 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT - COUNT ( * ) / + 2 * NULLIF ( + 42, - 74 ) * - - 10 * + 89 - + COUNT ( ALL 86 )
----
-1

query I rowsort
SELECT 10 * 78
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2016
SELECT - NULLIF ( 10, + + 79 * + - 35 + + 52 - - - 66 ) * - + 62 * - 35 * + ( 54 ) + + NULLIF ( 73, CAST( NULL AS SIGNED ) * COALESCE ( - 68 * 14, 33 * + 63, - 38 ) )
----
-1171727

skipif mysql # not compatible
query I rowsort label-2016
SELECT - NULLIF ( 10, + + 79 * + - 35 + + 52 - - - 66 ) * - + 62 * - 35 * + ( 54 ) + + NULLIF ( 73, CAST ( NULL AS INTEGER ) * COALESCE ( - 68 * 14, 33 * + 63, - 38 ) )
----
-1171727

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT COUNT( * ) + - - 30 + + + ( + 41 ) - COUNT( DISTINCT 55 ) + 3
----
74

skipif mysql # not compatible
query I rowsort label-2017
SELECT COUNT ( * ) + - - 30 + + + ( + 41 ) - COUNT ( DISTINCT 55 ) + 3
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2018
SELECT 65 * - + 66, 46 * - - ( - + SUM( DISTINCT + 78 ) ) AS col1
----
-4290
-3588

skipif mysql # not compatible
query II rowsort label-2018
SELECT 65 * - + 66, 46 * - - ( - + SUM ( DISTINCT + 78 ) ) AS col1
----
-4290
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL 87 * COUNT( * ) * - 82 col1
----
-7134

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL 87 * COUNT ( * ) * - 82 col1
----
-7134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT 36 * + + ( CAST( 85 AS SIGNED ) )
----
3060

skipif mysql # not compatible
query I rowsort label-2020
SELECT 36 * + + ( CAST ( 85 AS INTEGER ) )
----
3060

query I rowsort
SELECT + - 54 col2
----
-54

query I rowsort
SELECT DISTINCT - 77 + + 56 * - + ( + - 47 )
----
2555

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2023
SELECT 0 * - COUNT( * ) - 67 * 79 AS col0, CAST( NULL AS DECIMAL )
----
-5293
NULL

skipif mysql # not compatible
query II rowsort label-2023
SELECT 0 * - COUNT ( * ) - 67 * 79 AS col0, CAST ( NULL AS REAL )
----
-5293
NULL

query I rowsort
SELECT ALL - 8 + + - 20 + + NULLIF ( 27, - 55 * - 86 * - + 14 / - 19 )
----
-1

query I rowsort
SELECT ALL 21 + + 67 + 96
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL - 28 + - CAST( + - 59 AS SIGNED ) * + 51 AS col1
----
2981

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - 28 + - CAST ( + - 59 AS INTEGER ) * + 51 AS col1
----
2981

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

query I rowsort
SELECT DISTINCT - 17 + 8 + - 90
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT MIN( ALL + 51 ) + - 93
----
-42

skipif mysql # not compatible
query I rowsort label-2029
SELECT MIN ( ALL + 51 ) + - 93
----
-42

query I rowsort
SELECT ( 88 ) * + 64 AS col1
----
5632

query I rowsort
SELECT DISTINCT - - 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - 66 + + COUNT( + - 7 ) * + + 6
----
-60

skipif mysql # not compatible
query I rowsort label-2032
SELECT - 66 + + COUNT ( + - 7 ) * + + 6
----
-60

query I rowsort
SELECT - - CASE + AVG ( ALL + 32 ) WHEN - 38 + + 21 + 37 THEN + - 21 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2034
SELECT + CAST( 53 AS SIGNED ) col0, + 46 + - 0 AS col1
----
53
46

skipif mysql # not compatible
query II rowsort label-2034
SELECT + CAST ( 53 AS INTEGER ) col0, + 46 + - 0 AS col1
----
53
46

query I rowsort
SELECT + 12 * - + 87 + - + 29 col0
----
-1073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2036
SELECT ALL + 1 + - - CAST( - 12 AS SIGNED ) * - COALESCE ( + 42, + SUM( + + ( + + ( + - ( - 74 ) ) ) ) DIV MIN( DISTINCT 30 ) + - 78 * 55, + COUNT( * ) ) + 31
----
536

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + 1 + - - CAST ( - 12 AS INTEGER ) * - COALESCE ( + 42, + SUM ( + + ( + + ( + - ( - 74 ) ) ) ) / MIN ( DISTINCT 30 ) + - 78 * 55, + COUNT ( * ) ) + 31
----
536

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

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

query I rowsort
SELECT + 16 + + - 64 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), 26, ( 45 ) * + + CASE + + CAST( NULL AS SIGNED ) WHEN + ( 32 ) THEN 38 + + 68 WHEN ( + 50 ) / 36 THEN - COALESCE ( 66, - 4 - + 92 * - CASE COUNT( * ) * - 42 WHEN 93 THEN NULL WHEN + 50 * - 14 THEN 53 END, 2 + - CAST( NULL AS SIGNED ) ) + 69 END * 50 - + 73 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), 26, ( 45 ) * + + CASE + + CAST ( NULL AS INTEGER ) WHEN + ( 32 ) THEN 38 + + 68 WHEN ( + 50 ) / 36 THEN - COALESCE ( 66, - 4 - + 92 * - CASE COUNT ( * ) * - 42 WHEN 93 THEN NULL WHEN + 50 * - 14 THEN 53 END, 2 + - CAST ( NULL AS INTEGER ) ) + 69 END * 50 - + 73 ) AS col1
----
-26

query I rowsort
SELECT ( + 70 ) + + 98
----
168

query I rowsort
SELECT ALL + 40 * 31
----
1240

query I rowsort
SELECT + ( + NULLIF ( 80, 16 * + ( + 94 ) ) )
----
80

query I rowsort
SELECT DISTINCT 66 * + + 97
----
6402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2044
SELECT 24 + + ( 56 ) + + MIN( ALL 97 ) + + - CAST( 30 AS SIGNED ) DIV - + 85 AS col2, 32
----
177
32

skipif mysql # not compatible
query II rowsort label-2044
SELECT 24 + + ( 56 ) + + MIN ( ALL 97 ) + + - CAST ( 30 AS INTEGER ) / - + 85 AS col2, 32
----
177
32

query I rowsort
SELECT 95 * - 17 * + 41 AS col1
----
-66215

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT 31 * + + COUNT( * ) * - - 75 AS col0, - COUNT( - 68 )
----
2325
-1

skipif mysql # not compatible
query II rowsort label-2046
SELECT 31 * + + COUNT ( * ) * - - 75 AS col0, - COUNT ( - 68 )
----
2325
-1

query I rowsort
SELECT 34 + - 43 AS col1
----
-9

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

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

query I rowsort
SELECT DISTINCT 30 * + 47 * - 34
----
-47940

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL - NULLIF ( + 97, + MAX( DISTINCT 86 ) * - 37 * - + 28 * + - 64 ) - - + NULLIF ( + + 34, - + 67 + + COUNT( * ) ) + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - NULLIF ( + 97, + MAX ( DISTINCT 86 ) * - 37 * - + 28 * + - 64 ) - - + NULLIF ( + + 34, - + 67 + + COUNT ( * ) ) + COUNT ( * )
----
-62

query I rowsort
SELECT 21 * + 48
----
1008

query II rowsort
SELECT 11 AS col0, 22 AS col1
----
11
22

query I rowsort
SELECT 40 + - 97 + 97 + + 80 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT ALL - 14 DIV - - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - 14 / - - 56 AS col2
----
0

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

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

query I rowsort
SELECT 46 * 37 * 50
----
85100

query II rowsort
SELECT + 54 AS col0, 21
----
54
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL + 78 * 62 * - COUNT( DISTINCT 20 )
----
-4836

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL + 78 * 62 * - COUNT ( DISTINCT 20 )
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT 36 + - + MIN( - - 10 ) * NULLIF ( 16, + 85 )
----
-124

skipif mysql # not compatible
query I rowsort label-2059
SELECT 36 + - + MIN ( - - 10 ) * NULLIF ( 16, + 85 )
----
-124

query I rowsort
SELECT DISTINCT - NULLIF ( - + 5, - 2 )
----
5

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

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

query II rowsort
SELECT + 65 AS col1, ( 24 ) AS col0
----
65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL 47 * + 56 + COUNT( * ) + - 45 * - 18 * - + 36 * COUNT( * )
----
-26527

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL 47 * + 56 + COUNT ( * ) + - 45 * - 18 * - + 36 * COUNT ( * )
----
-26527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT - NULLIF ( 50, - ( 22 ) + 8 + COUNT( * ) + 74 - + - 69 + - 14 + - 55 * + 44 / 43 ) / + COUNT( * ) + - MIN( ( 93 ) ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT - NULLIF ( 50, - ( 22 ) + 8 + COUNT ( * ) + 74 - + - 69 + - 14 + - 55 * + 44 / 43 ) / + COUNT ( * ) + - MIN ( ( 93 ) ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + - 34 + + 79
----
-2879

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - 98 + - - 75 * COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2066
SELECT - 98 + - - 75 * COUNT ( * ) AS col1
----
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2068
SELECT ALL - + CAST( + 85 AS SIGNED ) + + - 39, 53 AS col1
----
-124
53

skipif mysql # not compatible
query II rowsort label-2068
SELECT ALL - + CAST ( + 85 AS INTEGER ) + + - 39, 53 AS col1
----
-124
53

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT ALL - 30 - - 87 + - + ( + 51 ) - + 29 * + COUNT( * ) AS col1, 98 + + - 81 * + 37 + - - 95
----
-23
-2804

skipif mysql # not compatible
query II rowsort label-2071
SELECT ALL - 30 - - 87 + - + ( + 51 ) - + 29 * + COUNT ( * ) AS col1, 98 + + - 81 * + 37 + - - 95
----
-23
-2804

query I rowsort
SELECT DISTINCT - - 13 - + 48 AS col1
----
-35

query I rowsort
SELECT + + 91 * + - 64 * + 35
----
-203840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL + ( MIN( - + NULLIF ( 13, - ( + 80 ) + - 33 + - - 80 + - 35 ) ) ) - + MAX( DISTINCT + 80 ) + + NULLIF ( 62, + 82 ) * COALESCE ( - 13, 46 * + CAST( - 18 AS SIGNED ) ) col2
----
-899

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + ( MIN ( - + NULLIF ( 13, - ( + 80 ) + - 33 + - - 80 + - 35 ) ) ) - + MAX ( DISTINCT + 80 ) + + NULLIF ( 62, + 82 ) * COALESCE ( - 13, 46 * + CAST ( - 18 AS INTEGER ) ) col2
----
-899

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

query I rowsort
SELECT - 71 * COALESCE ( + 38, + 48 )
----
-2698

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + ( - MIN( + 30 ) ) - + - ( 63 )
----
33

skipif mysql # not compatible
query I rowsort label-2077
SELECT + ( - MIN ( + 30 ) ) - + - ( 63 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - NULLIF ( + COUNT( 4 ), - ( + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2078
SELECT - NULLIF ( + COUNT ( 4 ), - ( + 2 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT COALESCE ( CAST( NULL AS SIGNED ), + 18 + - 99, COUNT( * ) - - + 24 ) DIV + - 84
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT COALESCE ( CAST ( NULL AS INTEGER ), + 18 + - 99, COUNT ( * ) - - + 24 ) / + - 84
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL ( 50 ) * + MAX( - 68 ) AS col1
----
-3400

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL ( 50 ) * + MAX ( - 68 ) AS col1
----
-3400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2083
SELECT + 59 DIV CAST( + - 96 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2083
SELECT + 59 / CAST ( + - 96 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2084
SELECT DISTINCT CASE - - NULLIF ( - 56, - 96 DIV + MIN( 91 ) ) WHEN + - COUNT( * ) THEN + + 52 WHEN + 30 + + 26 * + 70 THEN - 17 * 87 + + 99 ELSE 98 END DIV - 2
----
-49

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT CASE - - NULLIF ( - 56, - 96 / + MIN ( 91 ) ) WHEN + - COUNT ( * ) THEN + + 52 WHEN + 30 + + 26 * + 70 THEN - 17 * 87 + + 99 ELSE 98 END / - 2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT - 9 * - 8 * + NULLIF ( + COUNT( * ), + 90 )
----
72

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - 9 * - 8 * + NULLIF ( + COUNT ( * ), + 90 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2086
SELECT + 23 DIV + COUNT( * ) AS col1, 34 + 2 AS col0
----
23
36

skipif mysql # not compatible
query II rowsort label-2086
SELECT + 23 / + COUNT ( * ) AS col1, 34 + 2 AS col0
----
23
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT + 82 + - - 94 DIV + + 25
----
85

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 82 + - - 94 / + + 25
----
85

query I rowsort
SELECT - 5 * 42
----
-210

query I rowsort
SELECT ALL 46 + - 90 + ( + + ( COALESCE ( - + 40, - 37 ) ) )
----
-84

query I rowsort
SELECT + 52 + + + 6
----
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2092
SELECT DISTINCT + 8 DIV 19 + - MIN( ALL - 11 ) + + 62 + - + ( + - 16 ), 29 AS col2
----
89
29

skipif mysql # not compatible
query II rowsort label-2092
SELECT DISTINCT + 8 / 19 + - MIN ( ALL - 11 ) + + 62 + - + ( + - 16 ), 29 AS col2
----
89
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT + 91 * - COUNT( * ) + 54 + + 41 + + + 84
----
88

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT + 91 * - COUNT ( * ) + 54 + + 41 + + + 84
----
88

query I rowsort
SELECT ALL + ( - + 60 ) * - 33
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT + - 28 + COUNT( * ) AS col2
----
-27

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2097
SELECT 22 DIV - 60 + ( 78 ) AS col0, 88 AS col0
----
78
88

skipif mysql # not compatible
query II rowsort label-2097
SELECT 22 / - 60 + ( 78 ) AS col0, 88 AS col0
----
78
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT + + 66 DIV - + 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT + + 66 / - + 44 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT + COUNT( * ), - 27 - + - SUM( 38 ) * - 3 AS col2
----
1
-141

skipif mysql # not compatible
query II rowsort label-2099
SELECT + COUNT ( * ), - 27 - + - SUM ( 38 ) * - 3 AS col2
----
1
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-2100
SELECT ALL + COUNT( * ) * 72 AS col1, - 29 AS col0
----
72
-29

skipif mysql # not compatible
query II rowsort label-2100
SELECT ALL + COUNT ( * ) * 72 AS col1, - 29 AS col0
----
72
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2101
SELECT + + 9, - 46 DIV NULLIF ( - - 17, COUNT( * ) + - 86 ) AS col1
----
9
-2

skipif mysql # not compatible
query II rowsort label-2101
SELECT + + 9, - 46 / NULLIF ( - - 17, COUNT ( * ) + - 86 ) AS col1
----
9
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT + 81 AS col1, 42 + COUNT( * )
----
81
43

skipif mysql # not compatible
query II rowsort label-2102
SELECT + 81 AS col1, 42 + COUNT ( * )
----
81
43

query I rowsort
SELECT - 53 + 84 * - + 55 + + - 52
----
-4725

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2104
SELECT ALL + COUNT( * ) AS col0, 12 DIV + 64 + - 76
----
1
-76

skipif mysql # not compatible
query II rowsort label-2104
SELECT ALL + COUNT ( * ) AS col0, 12 / + 64 + - 76
----
1
-76

query I rowsort
SELECT + + CASE + 24 WHEN 59 / + 14 - 19 THEN NULL ELSE 69 END
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + 65 * + NULLIF ( + COUNT( * ), - 21 + - + COUNT( * ) ) + + - MIN( - 28 )
----
93

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + 65 * + NULLIF ( + COUNT ( * ), - 21 + - + COUNT ( * ) ) + + - MIN ( - 28 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2107
SELECT - 4, 62 DIV COUNT( * ) col2
----
-4
62

skipif mysql # not compatible
query II rowsort label-2107
SELECT - 4, 62 / COUNT ( * ) col2
----
-4
62

query II rowsort
SELECT DISTINCT + 91 AS col1, - 83 * + 44 * 23
----
91
-83996

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2110
SELECT DISTINCT - ( - MAX( - 30 ) ) DIV + 31 AS col0, 64 AS col2
----
0
64

skipif mysql # not compatible
query II rowsort label-2110
SELECT DISTINCT - ( - MAX ( - 30 ) ) / + 31 AS col0, 64 AS col2
----
0
64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT - CASE + - ( + ( CAST( NULL AS SIGNED ) ) ) WHEN + ( + 5 ) THEN + 75 + + 28 / + + 0 END / + 17 + + 74 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT - CASE + - ( + ( CAST ( NULL AS INTEGER ) ) ) WHEN + ( + 5 ) THEN + 75 + + 28 / + + 0 END / + 17 + + 74 + COUNT ( * )
----
NULL

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

query I rowsort
SELECT 38 * - NULLIF ( + 73, - 99 ) - + 74 col1
----
-2848

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

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

query I rowsort
SELECT - + 68 + - ( - 90 ) + - 45 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT 22 * - + CASE + - CAST( NULL AS SIGNED ) WHEN 10 + COALESCE ( - 32, - AVG ( DISTINCT 38 ), + 83 ) THEN - 79 + + 94 + + 47 * - COUNT( * ) * 72 END * + ( 71 ) + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT 22 * - + CASE + - CAST ( NULL AS INTEGER ) WHEN 10 + COALESCE ( - 32, - AVG ( DISTINCT 38 ), + 83 ) THEN - 79 + + 94 + + 47 * - COUNT ( * ) * 72 END * + ( 71 ) + + 76 AS col1
----
NULL

query I rowsort
SELECT - 18 * + - 54
----
972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2119
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2120
SELECT ALL + ( + COUNT( * ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL + ( + COUNT ( * ) ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 82 * - 13 * 20 AS col1
----
21320

onlyif mysql # aggregate syntax: 
query II rowsort label-2122
SELECT - MAX( - 80 ) col2, + 88
----
80
88

skipif mysql # not compatible
query II rowsort label-2122
SELECT - MAX ( - 80 ) col2, + 88
----
80
88

query I rowsort
SELECT - ( + 15 ) col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2124
SELECT + 64 + - CASE COUNT( * ) WHEN COUNT( * ) THEN + 32 * - COUNT( ALL + 5 ) DIV 34 END + + 66
----
130

skipif mysql # not compatible
query I rowsort label-2124
SELECT + 64 + - CASE COUNT ( * ) WHEN COUNT ( * ) THEN + 32 * - COUNT ( ALL + 5 ) / 34 END + + 66
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL MAX( DISTINCT + 32 ) + + 52 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL MAX ( DISTINCT + 32 ) + + 52 AS col1
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + MAX( ALL - 96 ) * - - 73 + + + 0 col2
----
-7008

skipif mysql # not compatible
query I rowsort label-2127
SELECT + MAX ( ALL - 96 ) * - - 73 + + + 0 col2
----
-7008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT ALL 64 DIV + + 92 * + COALESCE ( COUNT( * ), + 61 * COALESCE ( - - ( + + 96 ), 83 ), - - 86 * - 62 + + + 81 + - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL 64 / + + 92 * + COALESCE ( COUNT ( * ), + 61 * COALESCE ( - - ( + + 96 ), 83 ), - - 86 * - 62 + + + 81 + - 64 )
----
0

query I rowsort
SELECT DISTINCT + ( + 18 ) + - 72 + 83 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2130
SELECT ALL + COUNT( * ) + + 46 DIV 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + COUNT ( * ) + + 46 / 49 AS col1
----
1

query II rowsort
SELECT - ( 21 ) AS col2, + 8 AS col0
----
-21
8

query I rowsort
SELECT ALL 16 + + ( - + 67 ) AS col2
----
-51

query I rowsort
SELECT + 22 * - - 6
----
132

query I rowsort
SELECT - 93 * - + NULLIF ( + 95, + 38 / 84 + - + ( - + 60 ) ) * ( 20 ) AS col1
----
176700

query I rowsort
SELECT 8 + + 83 - - 47 * - - 74 * 36 AS col2
----
125299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT + CASE + 46 WHEN + 23 THEN - CAST( NULL AS SIGNED ) / 22 * - 57 + + 20 / + + CAST( NULL AS SIGNED ) + + COUNT( * ) WHEN COUNT( - - COALESCE ( 20, + 92 * + 32 ) ) * MAX( 9 + + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT + CASE + 46 WHEN + 23 THEN - CAST ( NULL AS INTEGER ) / 22 * - 57 + + 20 / + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) WHEN COUNT ( - - COALESCE ( 20, + 92 * + 32 ) ) * MAX ( 9 + + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 35 - 24 AS col1
----
-59

query I rowsort
SELECT - 60 * + ( + 55 ) AS col0
----
-3300

query I rowsort
SELECT ALL - - 26 - ( - - 72 )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2140
SELECT ( - COUNT( * ) ) DIV - 90 * + - 62 + - 39 DIV + 25 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT ( - COUNT ( * ) ) / - 90 * + - 62 + - 39 / + 25 + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2141
SELECT - CASE 79 WHEN - - 46 THEN NULL WHEN 0 * + 51 / - + 66 / - NULLIF ( 51, + 58 * - + 53 / 81 - + CAST( 38 AS DECIMAL ) * + 1 ) + COUNT( ALL NULLIF ( 3, + CASE + 53 WHEN + 66 THEN NULL ELSE - 80 - 20 * - 53 END ) ) THEN + ( 84 ) END / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT - CASE 79 WHEN - - 46 THEN NULL WHEN 0 * + 51 / - + 66 / - NULLIF ( 51, + 58 * - + 53 / 81 - + CAST ( 38 AS REAL ) * + 1 ) + COUNT ( ALL NULLIF ( 3, + CASE + 53 WHEN + 66 THEN NULL ELSE - 80 - 20 * - 53 END ) ) THEN + ( 84 ) END / 90
----
NULL

query I rowsort
SELECT + ( - 21 ) * - - 90 + 0
----
-1890

query I rowsort
SELECT + 96 + + + 80
----
176

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

skipif mysql # not compatible
query I rowsort label-2144
SELECT - SUM ( ALL - 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT CAST( NULL AS SIGNED ) * + 93 + - 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT CAST ( NULL AS INTEGER ) * + 93 + - 39 col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - NULLIF ( 98, + 55 - + 16 + + + 8 * SUM( ALL + 82 ) * + 4 - 73 + 28 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - NULLIF ( 98, + 55 - + 16 + + + 8 * SUM ( ALL + 82 ) * + 4 - 73 + 28 ) AS col1
----
-98

query I rowsort
SELECT DISTINCT + 59 * + 89
----
5251

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT 24 DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT 24 / - 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT ALL - MAX( 85 ) + 22 col0
----
-63

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - MAX ( 85 ) + 22 col0
----
-63

query II rowsort
SELECT DISTINCT 19 AS col1, - COALESCE ( + + 20, + 96 )
----
19
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2152
SELECT ALL + 27 + + MIN( DISTINCT ( 76 ) ), 8 AS col2
----
103
8

skipif mysql # not compatible
query II rowsort label-2152
SELECT ALL + 27 + + MIN ( DISTINCT ( 76 ) ), 8 AS col2
----
103
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT 14 DIV - 75 * - 56 * + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT 14 / - 75 * - 56 * + 57 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT 49 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT 49 / + - 74
----
0

query I rowsort
SELECT 20 - + + 17 AS col1
----
3

query II rowsort
SELECT - 81, 60 col1
----
-81
60

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

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

query I rowsort
SELECT DISTINCT + 10 + + 67 + - 37 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL + 64 * - + MIN( DISTINCT - + 13 ) * - + 42
----
-34944

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + 64 * - + MIN ( DISTINCT - + 13 ) * - + 42
----
-34944

query I rowsort
SELECT 49 * 32
----
1568

query II rowsort
SELECT - 47 AS col0, 50
----
-47
50

query I rowsort
SELECT ALL 17 + + - 77 * + 54 * - 68
----
282761

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT 65 - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2163
SELECT 65 - COUNT ( * ) AS col0
----
64

query II rowsort
SELECT - 7 AS col2, + 33
----
-7
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT ALL + 92 - - SUM( DISTINCT + 56 ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + 92 - - SUM ( DISTINCT + 56 ) AS col0
----
148

query II rowsort
SELECT 64 col0, 15 + + + 41
----
64
56

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

skipif mysql # not compatible
query I rowsort label-2167
SELECT - + SUM ( + 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT + COUNT( * ) + + 58 + + + COUNT( * ) + 45 + - 83 + - 83
----
-61

skipif mysql # not compatible
query I rowsort label-2168
SELECT + COUNT ( * ) + + 58 + + + COUNT ( * ) + 45 + - 83 + - 83
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2169
SELECT - CAST( + 10 AS SIGNED ) * - - COUNT( * ) / - 16 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT - CAST ( + 10 AS INTEGER ) * - - COUNT ( * ) / - 16 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT DISTINCT + ( + - 2 ) DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT + ( + - 2 ) / 85 AS col0
----
0

query I rowsort
SELECT DISTINCT - + 9
----
-9

query I rowsort
SELECT ALL - 72 col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT - 57 * + CAST( NULL AS SIGNED ) * - - COUNT( * ) / - AVG ( DISTINCT - 21 ) * - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 57 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / - AVG ( DISTINCT - 21 ) * - + 82
----
NULL

query II rowsort
SELECT + 89, 49 AS col2
----
89
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2175
SELECT + CAST( NULL AS SIGNED ) AS col2, - 42 * + NULLIF ( - - 10, + 57 ) * 65
----
NULL
-27300

skipif mysql # not compatible
query II rowsort label-2175
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 42 * + NULLIF ( - - 10, + 57 ) * 65
----
NULL
-27300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2176
SELECT COALESCE ( + COUNT( * ), 12 ) DIV - 18 + 55
----
55

skipif mysql # not compatible
query I rowsort label-2176
SELECT COALESCE ( + COUNT ( * ), 12 ) / - 18 + 55
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT + 10 DIV + 1
----
10

skipif mysql # not compatible
query I rowsort label-2177
SELECT + 10 / + 1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL 50 * + - SUM( 49 ) - 22 * - 22 + 89 + - + 42 AS col1
----
-1919

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL 50 * + - SUM ( 49 ) - 22 * - 22 + 89 + - + 42 AS col1
----
-1919

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT ALL + 24 * + SUM( + 85 ) AS col0, COUNT( ALL + 96 ) + - 80 + - + 82
----
2040
-161

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL + 24 * + SUM ( + 85 ) AS col0, COUNT ( ALL + 96 ) + - 80 + - + 82
----
2040
-161

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2181
SELECT + 94 * 39 DIV 6 * - 66 AS col1, 60 AS col0
----
-40326
60

skipif mysql # not compatible
query II rowsort label-2181
SELECT + 94 * 39 / 6 * - 66 AS col1, 60 AS col0
----
-40326
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT - 33 - - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2182
SELECT - 33 - - COUNT ( * )
----
-32

query II rowsort
SELECT ALL - - 16, 98 AS col2
----
16
98

query I rowsort
SELECT - 60 * + - 58 AS col2
----
3480

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - 41 + 49 * - - SUM( + - 34 ) * + COUNT( ALL - 7 ) AS col1, + 87
----
-1707
87

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - 41 + 49 * - - SUM ( + - 34 ) * + COUNT ( ALL - 7 ) AS col1, + 87
----
-1707
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT ALL + + 81 + 47 * - CAST( NULL AS SIGNED ) * + - NULLIF ( + 83, - 0 ) / + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + + 81 + 47 * - CAST ( NULL AS INTEGER ) * + - NULLIF ( + 83, - 0 ) / + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT + 83 - 25 * + COUNT( DISTINCT 85 ) + + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-2188
SELECT + 83 - 25 * + COUNT ( DISTINCT 85 ) + + + COUNT ( * )
----
59

query I rowsort
SELECT 40 - + 52 + ( + - 26 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT + MIN( DISTINCT 50 ) AS col2, 2
----
50
2

skipif mysql # not compatible
query II rowsort label-2190
SELECT + MIN ( DISTINCT 50 ) AS col2, 2
----
50
2

query I rowsort
SELECT ALL ( - 43 ) + + - 45
----
-88

query I rowsort
SELECT 30 + + 41 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT 65 - - + ( + 31 ) DIV 68 * 48 - - + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2193
SELECT 65 - - + ( + 31 ) / 68 * 48 - - + COUNT ( * ) AS col0
----
66

query I rowsort
SELECT ALL ( + 12 ) + - - 53 AS col2
----
65

query I rowsort
SELECT ALL - 23 + - ( - 57 ) AS col2
----
34

query I rowsort
SELECT 55 * + 91
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL + 60 - - COUNT( * ) * - 15 * - 23 + + + ( 25 ) AS col0
----
430

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + 60 - - COUNT ( * ) * - 15 * - 23 + + + ( 25 ) AS col0
----
430

query I rowsort
SELECT 65 + + + 32
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT 74 + - ( + + MIN( - 7 ) ) * - - 42 + - 3
----
365

skipif mysql # not compatible
query I rowsort label-2199
SELECT 74 + - ( + + MIN ( - 7 ) ) * - - 42 + - 3
----
365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT NULLIF ( - - SUM( ALL + 83 ), + 84 ) * + CAST( - - COUNT( * ) AS SIGNED ) * 51 AS col2
----
4233

skipif mysql # not compatible
query I rowsort label-2200
SELECT NULLIF ( - - SUM ( ALL + 83 ), + 84 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) * 51 AS col2
----
4233

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT - 75 + 78 DIV 16 * 52 * 5
----
965

skipif mysql # not compatible
query I rowsort label-2201
SELECT - 75 + 78 / 16 * 52 * 5
----
965

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

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL - 61 - + COUNT ( * )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2203
SELECT + 87 * + 38 * - ( - + 4 ) * 58 + - CAST( NULLIF ( + CASE - 18 WHEN 10 THEN + 13 WHEN COUNT( * ) THEN NULL ELSE NULL END, - - CASE - MAX( ALL + 73 ) WHEN 97 THEN - 3 / COALESCE ( COUNT( DISTINCT 52 ), 56, 32 ) + 74 * + MIN( ALL - 23 + + 3 ) WHEN - 36 + ( - 54 ) * - ( 76 ) THEN + 42 * 96 ELSE NULL END ) AS DECIMAL ) * + ( + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 87 * + 38 * - ( - + 4 ) * 58 + - CAST ( NULLIF ( + CASE - 18 WHEN 10 THEN + 13 WHEN COUNT ( * ) THEN NULL ELSE NULL END, - - CASE - MAX ( ALL + 73 ) WHEN 97 THEN - 3 / COALESCE ( COUNT ( DISTINCT 52 ), 56, 32 ) + 74 * + MIN ( ALL - 23 + + 3 ) WHEN - 36 + ( - 54 ) * - ( 76 ) THEN + 42 * 96 ELSE NULL END ) AS REAL ) * + ( + 13 ) AS col1
----
NULL

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

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

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

query II rowsort
SELECT ALL 75 - + - 44 AS col0, ( - 71 ) AS col0
----
119
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT DISTINCT - COALESCE ( + 51, - COUNT( * ) ) * + + 46 AS col1, + 55 col0
----
-2346
55

skipif mysql # not compatible
query II rowsort label-2207
SELECT DISTINCT - COALESCE ( + 51, - COUNT ( * ) ) * + + 46 AS col1, + 55 col0
----
-2346
55

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

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

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

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

query I rowsort
SELECT - - ( 87 ) * 92
----
8004

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

skipif mysql # not compatible
query I rowsort label-2211
SELECT - - COUNT ( 93 )
----
1

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

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

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

query I rowsort
SELECT + 78 * 55
----
4290

query I rowsort
SELECT - - 56 + - + 72 AS col2
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT + + 73 * - + 23 * + - NULLIF ( + - SUM( ALL - - 71 ), + ( + 34 ) ) + - + 88 + 51 + 13 * + 4
----
-119194

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + + 73 * - + 23 * + - NULLIF ( + - SUM ( ALL - - 71 ), + ( + 34 ) ) + - + 88 + 51 + 13 * + 4
----
-119194

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL - 89 * + COUNT( * ) + + 22 + + + 43 * - 89 * 56 AS col0
----
-214379

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - 89 * + COUNT ( * ) + + 22 + + + 43 * - 89 * 56 AS col0
----
-214379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT - - 20 / - 46 * 21 + + CAST( NULL AS SIGNED ) + CAST( + 37 AS SIGNED ) * + 61 + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT - - 20 / - 46 * 21 + + CAST ( NULL AS INTEGER ) + CAST ( + 37 AS INTEGER ) * + 61 + + 51 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT ALL - - 53 * - 46 + - + CAST( CASE + 70 WHEN - 50 THEN - NULLIF ( - COUNT( * ), 94 * + 53 ) ELSE NULL END AS SIGNED ) + + ( + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL - - 53 * - 46 + - + CAST ( CASE + 70 WHEN - 50 THEN - NULLIF ( - COUNT ( * ), 94 * + 53 ) ELSE NULL END AS INTEGER ) + + ( + 85 )
----
NULL

query I rowsort
SELECT + 89 + + - ( 40 ) + 97 col1
----
146

query I rowsort
SELECT - 59 * + 67
----
-3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT + CASE + + 58 WHEN - 0 THEN - 97 * - + AVG ( NULLIF ( - 33, + 74 ) ) WHEN - CASE 77 WHEN + 7 * + 25 THEN NULL ELSE 31 END + 24 + - 5 / CAST( 10 * - 31 AS SIGNED ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT + CASE + + 58 WHEN - 0 THEN - 97 * - + AVG ( NULLIF ( - 33, + 74 ) ) WHEN - CASE 77 WHEN + 7 * + 25 THEN NULL ELSE 31 END + 24 + - 5 / CAST ( 10 * - 31 AS INTEGER ) THEN COUNT ( * ) ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2225
SELECT + 77 / - - COUNT ( * ) col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT CASE + 72 WHEN + COUNT( * ) * - 73 THEN - - 50 + - 64 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT CASE + 72 WHEN + COUNT ( * ) * - 73 THEN - - 50 + - 64 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - + 55 ) * 41 + + 79 col2
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL MIN( ALL + - 9 ) * + + 84 - + 78 AS col2
----
-834

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL MIN ( ALL + - 9 ) * + + 84 - + 78 AS col2
----
-834

query I rowsort
SELECT + 23 * - - 77
----
1771

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT ALL 21 * - + 58 * - 53 * 31 - + 47 DIV + 60 AS col0
----
2001174

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL 21 * - + 58 * - 53 * 31 - + 47 / + 60 AS col0
----
2001174

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

skipif mysql # not compatible
query I rowsort label-2233
SELECT COUNT ( 89 )
----
1

query I rowsort
SELECT + 87 - + 7 * + 33
----
-144

query I rowsort
SELECT DISTINCT 99 * 74 AS col2
----
7326

query I rowsort
SELECT ALL 34 * 9 AS col1
----
306

query I rowsort
SELECT ALL 45 * 8 * 46
----
16560

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2238
SELECT - CAST( NULL AS SIGNED ), + 6 DIV CAST( + - 8 AS SIGNED ) col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2238
SELECT - CAST ( NULL AS INTEGER ), + 6 / CAST ( + - 8 AS INTEGER ) col0
----
NULL
0

query II rowsort
SELECT ALL 17 AS col2, - 2
----
17
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL + ( + CAST( - 84 AS SIGNED ) ) * + 97 + ( + 58 ) - - 18 + + CASE 46 WHEN + 92 + 23 THEN + 52 * + 31 WHEN - 87 THEN + - CASE 77 WHEN + 31 THEN ( - COUNT( * ) ) * + 92 WHEN - 48 THEN NULL ELSE NULL END ELSE NULL END / - 82 * CASE - CAST( - COUNT( ALL - 59 ) AS SIGNED ) WHEN 4 THEN NULL ELSE + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + ( + CAST ( - 84 AS INTEGER ) ) * + 97 + ( + 58 ) - - 18 + + CASE 46 WHEN + 92 + 23 THEN + 52 * + 31 WHEN - 87 THEN + - CASE 77 WHEN + 31 THEN ( - COUNT ( * ) ) * + 92 WHEN - 48 THEN NULL ELSE NULL END ELSE NULL END / - 82 * CASE - CAST ( - COUNT ( ALL - 59 ) AS INTEGER ) WHEN 4 THEN NULL ELSE + 91 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2241
SELECT - COUNT( * ) - ( CAST( NULL AS SIGNED ) ) * 47 / + 86 AS col0, - 22
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-2241
SELECT - COUNT ( * ) - ( CAST ( NULL AS INTEGER ) ) * 47 / + 86 AS col0, - 22
----
NULL
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - COUNT( * ) - 54 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2242
SELECT - COUNT ( * ) - 54 AS col0
----
-55

query I rowsort
SELECT - 49 * 53 AS col2
----
-2597

onlyif mysql # aggregate syntax: 
query II rowsort label-2244
SELECT ALL + 65 + + 52 * 75, + COUNT( * ) AS col0
----
3965
1

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + 65 + + 52 * 75, + COUNT ( * ) AS col0
----
3965
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - + 85 * - - CASE + 62 WHEN - 55 THEN - - 67 / - 8 + - + ( + SUM( DISTINCT + - 15 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT - + 85 * - - CASE + 62 WHEN - 55 THEN - - 67 / - 8 + - + ( + SUM ( DISTINCT + - 15 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL - ( + - ( 7 ) ) + + CASE 96 WHEN + 53 / 97 THEN CASE COUNT( * ) WHEN 36 THEN - COUNT( * ) END ELSE - 83 + + - 46 + + NULLIF ( 26, + 71 ) END
----
-96

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - ( + - ( 7 ) ) + + CASE 96 WHEN + 53 / 97 THEN CASE COUNT ( * ) WHEN 36 THEN - COUNT ( * ) END ELSE - 83 + + - 46 + + NULLIF ( 26, + 71 ) END
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MAX( ALL 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-2247
SELECT MAX ( ALL 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT ALL - - 29 DIV SUM( 64 ) + - + 35 col0
----
-35

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - - 29 / SUM ( 64 ) + - + 35 col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2249
SELECT + 25, 72 * - COUNT( - COALESCE ( + + 28, - 99 ) ) DIV + ( + 98 ) AS col1, - - ( + 44 ) * 95 AS col2
----
25
0
4180

skipif mysql # not compatible
query III rowsort label-2249
SELECT + 25, 72 * - COUNT ( - COALESCE ( + + 28, - 99 ) ) / + ( + 98 ) AS col1, - - ( + 44 ) * 95 AS col2
----
25
0
4180

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

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

query I rowsort
SELECT 59 * + + 79 + - + 3
----
4658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT DISTINCT + 3 / - COUNT( * ) + CAST( NULL AS SIGNED ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT + 3 / - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT ALL + MIN( - 19 ) * CASE - 66 WHEN - CAST( NULL AS SIGNED ) THEN + - COUNT( * ) * + 27 + 41 * + COUNT( * ) WHEN + 60 THEN 17 END * - 58 * + CAST( 52 AS SIGNED ) + - 84 * COUNT( * ) - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL + MIN ( - 19 ) * CASE - 66 WHEN - CAST ( NULL AS INTEGER ) THEN + - COUNT ( * ) * + 27 + 41 * + COUNT ( * ) WHEN + 60 THEN 17 END * - 58 * + CAST ( 52 AS INTEGER ) + - 84 * COUNT ( * ) - + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2254
SELECT DISTINCT 5 DIV + ( ( + - 60 ) ) - - 96 - + + CAST( - 80 AS SIGNED ) DIV + 54
----
97

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT 5 / + ( ( + - 60 ) ) - - 96 - + + CAST ( - 80 AS INTEGER ) / + 54
----
97

query I rowsort
SELECT ALL 0 * + 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2256
SELECT DISTINCT + 97 col2, ( 70 ) + + - 3 - 41 + - + COUNT( * ) col1
----
97
25

skipif mysql # not compatible
query II rowsort label-2256
SELECT DISTINCT + 97 col2, ( 70 ) + + - 3 - 41 + - + COUNT ( * ) col1
----
97
25

query II rowsort
SELECT ALL + 6 * + 78, - 84 col2
----
468
-84

query I rowsort
SELECT 48 * + + 2
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-2259
SELECT ( 43 ) * + 29 * + 63, 13 DIV 6 * - 43 AS col0
----
78561
-86

skipif mysql # not compatible
query II rowsort label-2259
SELECT ( 43 ) * + 29 * + 63, 13 / 6 * - 43 AS col0
----
78561
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT COUNT( DISTINCT - + 43 ) + 43 + - 6 AS col2, + 99 AS col2
----
38
99

skipif mysql # not compatible
query II rowsort label-2260
SELECT COUNT ( DISTINCT - + 43 ) + 43 + - 6 AS col2, + 99 AS col2
----
38
99

query I rowsort
SELECT DISTINCT 99 * + - 49 * - 13
----
63063

query II rowsort
SELECT ALL 58 * 30, 57 AS col1
----
1740
57

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

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

query I rowsort
SELECT ALL + 6 * + - 48 AS col1
----
-288

query II rowsort
SELECT - 58 AS col0, 18 AS col1
----
-58
18

query II rowsort
SELECT 69, - 39 AS col0
----
69
-39

query II rowsort
SELECT ALL 10, + NULLIF ( 19, - 10 ) * - 86 AS col2
----
10
-1634

query II rowsort
SELECT DISTINCT - 49 AS col1, + ( - 83 )
----
-49
-83

query I rowsort
SELECT - 54 * + 15 * - - 64 col0
----
-51840

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT MAX( DISTINCT - 94 ) + + ( + MAX( ALL + 46 ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2270
SELECT MAX ( DISTINCT - 94 ) + + ( + MAX ( ALL + 46 ) ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + COALESCE ( + 49, + COUNT( * ), + 67 * - 59 * - 2 )
----
49

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + COALESCE ( + 49, + COUNT ( * ), + 67 * - 59 * - 2 )
----
49

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

query I rowsort
SELECT 98 * 12 + - 84 AS col1
----
1092

onlyif mysql # DIV for integer division: 
query II rowsort label-2274
SELECT - 37 + + 83 AS col2, 22 DIV + 21 AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-2274
SELECT - 37 + + 83 AS col2, 22 / + 21 AS col1
----
46
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2276
SELECT - + NULLIF ( + 96, NULLIF ( - 34, MAX( 31 ) ) * - - COALESCE ( - - 64, + + NULLIF ( + 72, - 2 ), + MAX( ALL - + 70 ) * COUNT( DISTINCT - 32 ) + - 32 / 55 ) + CAST( NULL AS SIGNED ) / 72 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2276
SELECT - + NULLIF ( + 96, NULLIF ( - 34, MAX ( 31 ) ) * - - COALESCE ( - - 64, + + NULLIF ( + 72, - 2 ), + MAX ( ALL - + 70 ) * COUNT ( DISTINCT - 32 ) + - 32 / 55 ) + CAST ( NULL AS INTEGER ) / 72 ) AS col0
----
-96

query I rowsort
SELECT ALL + 94 + - 80
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT 47 * - - COUNT( * ) * - + 75
----
-3525

skipif mysql # not compatible
query I rowsort label-2278
SELECT 47 * - - COUNT ( * ) * - + 75
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT + MAX( + CASE - 37 WHEN + + 92 THEN + 52 WHEN 41 THEN NULL END ) * - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT + MAX ( + CASE - 37 WHEN + + 92 THEN + 52 WHEN 41 THEN NULL END ) * - 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - ( COUNT( * ) ) - - 4 * 82
----
327

skipif mysql # not compatible
query I rowsort label-2280
SELECT - ( COUNT ( * ) ) - - 4 * 82
----
327

onlyif mysql # aggregate syntax: 
query II rowsort label-2281
SELECT COUNT( * ) AS col2, - ( 88 ) * - 18 + - - 67 + + ( NULLIF ( ( 11 ), + 87 ) ) - + COALESCE ( - 61, + ( + 86 ) * 16, CASE 12 WHEN 46 / COUNT( * ) THEN COUNT( * ) - COALESCE ( + 74, 52 ) WHEN + 25 - 63 THEN COUNT( * ) + + SUM( ALL ( 51 ) ) * - 18 WHEN - 8 / CASE WHEN MIN( DISTINCT 1 ) / + ( 57 + - 89 * 90 ) BETWEEN ( 44 * 61 + + 67 ) AND ( NULL ) THEN - 15 WHEN NOT ( COALESCE ( 54, 76, 49 + NULLIF ( 31 + + 5, CASE - COUNT( * ) WHEN + 62 THEN NULL ELSE - 15 END ) ) + - COUNT( * ) ) BETWEEN 36 + 47 AND NULLIF ( + COUNT( * ), 56 ) * + 17 + + 84 THEN NULL ELSE NULL END THEN NULL END + - MIN( DISTINCT + 63 ) ) * 13
----
1
2455

skipif mysql # not compatible
query II rowsort label-2281
SELECT COUNT ( * ) AS col2, - ( 88 ) * - 18 + - - 67 + + ( NULLIF ( ( 11 ), + 87 ) ) - + COALESCE ( - 61, + ( + 86 ) * 16, CASE 12 WHEN 46 / COUNT ( * ) THEN COUNT ( * ) - COALESCE ( + 74, 52 ) WHEN + 25 - 63 THEN COUNT ( * ) + + SUM ( ALL ( 51 ) ) * - 18 WHEN - 8 / CASE WHEN MIN ( DISTINCT 1 ) / + ( 57 + - 89 * 90 ) BETWEEN ( 44 * 61 + + 67 ) AND ( NULL ) THEN - 15 WHEN NOT ( COALESCE ( 54, 76, 49 + NULLIF ( 31 + + 5, CASE - COUNT ( * ) WHEN + 62 THEN NULL ELSE - 15 END ) ) + - COUNT ( * ) ) BETWEEN 36 + 47 AND NULLIF ( + COUNT ( * ), 56 ) * + 17 + + 84 THEN NULL ELSE NULL END THEN NULL END + - MIN ( DISTINCT + 63 ) ) * 13
----
1
2455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT 46 + + 11 - + 33 * CAST( NULL AS SIGNED ) + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT 46 + + 11 - + 33 * CAST ( NULL AS INTEGER ) + 74 AS col2
----
NULL

query I rowsort
SELECT - 53 * 73 * + 17
----
-65773

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + ( + + SUM( + + 36 ) ) + + 59 * + COUNT( * ) + - - COUNT( * ) + - - 36 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-2284
SELECT + ( + + SUM ( + + 36 ) ) + + 59 * + COUNT ( * ) + - - COUNT ( * ) + - - 36 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT COUNT( * ) * - 54 * + 13 * - 73 * + + 32 AS col2
----
1639872

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( * ) * - 54 * + 13 * - 73 * + + 32 AS col2
----
1639872

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT - 74 DIV 99 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 74 / 99 + 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2287
SELECT ALL - ( 41 ) AS col2, 77 / - + CAST( + 6 AS DECIMAL ) / COUNT( 69 ) / ( + COUNT( * ) ) - - MAX( DISTINCT - - 71 ) - + 50 * + - ( 53 ) * + + 27 - + + 6 + - CASE + 82 WHEN - COUNT( * ) THEN + 83 / 54 END AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-2287
SELECT ALL - ( 41 ) AS col2, 77 / - + CAST ( + 6 AS REAL ) / COUNT ( 69 ) / ( + COUNT ( * ) ) - - MAX ( DISTINCT - - 71 ) - + 50 * + - ( 53 ) * + + 27 - + + 6 + - CASE + 82 WHEN - COUNT ( * ) THEN + 83 / 54 END AS col1
----
-41
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2288
SELECT - 77 DIV - COUNT( - 30 ) - 52 + SUM( + 58 ) + - 9 AS col1, COUNT( * ) + 82 + - 33 + - 0 + 21 * 77 AS col0, - 37 + - - 71 AS col2
----
74
1667
34

skipif mysql # not compatible
query III rowsort label-2288
SELECT - 77 / - COUNT ( - 30 ) - 52 + SUM ( + 58 ) + - 9 AS col1, COUNT ( * ) + 82 + - 33 + - 0 + 21 * 77 AS col0, - 37 + - - 71 AS col2
----
74
1667
34

query I rowsort
SELECT DISTINCT + 19 * - 33 AS col2
----
-627

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2290
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) * - - 88 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) * - - 88 + + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT 68 * + 94, + 33 * + 5 * + 18 AS col2
----
6392
2970

query I rowsort
SELECT 74 + + 43 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT NULLIF ( + 42, + 48 ) * + 56 * - COUNT( * ) * + + COUNT( 94 ) - + 67 + - ( + 39 ) + 63
----
-2395

skipif mysql # not compatible
query I rowsort label-2293
SELECT NULLIF ( + 42, + 48 ) * + 56 * - COUNT ( * ) * + + COUNT ( 94 ) - + 67 + - ( + 39 ) + 63
----
-2395

query I rowsort
SELECT DISTINCT + 19 * 95 * - 47
----
-84835

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL 70 * COALESCE ( - 57, - 75, - NULLIF ( - 16, + - 0 / + 83 + ( COUNT( * ) ) + + AVG ( DISTINCT + ( - 2 ) ) * 50 / + 53 * 82 * - - ( 30 ) ) )
----
-3990

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL 70 * COALESCE ( - 57, - 75, - NULLIF ( - 16, + - 0 / + 83 + ( COUNT ( * ) ) + + AVG ( DISTINCT + ( - 2 ) ) * 50 / + 53 * 82 * - - ( 30 ) ) )
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT + 20 * + + NULLIF ( - 27, - 55 + COUNT( * ) ) col0
----
-540

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + 20 * + + NULLIF ( - 27, - 55 + COUNT ( * ) ) col0
----
-540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT ALL - COALESCE ( - + 66, - 60, + CASE + 56 WHEN + 42 - + 1 * - COUNT( * ) THEN - - 30 DIV - 54 DIV + CASE 38 WHEN - MIN( - 5 ) + + + COUNT( * ) THEN 35 * - 96 WHEN + 28 THEN NULL ELSE + 96 END + - 3 ELSE - 9 END DIV 92 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL - COALESCE ( - + 66, - 60, + CASE + 56 WHEN + 42 - + 1 * - COUNT ( * ) THEN - - 30 / - 54 / + CASE 38 WHEN - MIN ( - 5 ) + + + COUNT ( * ) THEN 35 * - 96 WHEN + 28 THEN NULL ELSE + 96 END + - 3 ELSE - 9 END / 92 ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT ALL + 75 DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL + 75 / 27
----
2

query II rowsort
SELECT ALL - 2 + - + 26 AS col1, ( + 55 ) AS col2
----
-28
55

query I rowsort
SELECT + 53 col0
----
53

query II rowsort
SELECT ALL - NULLIF ( - - 85, - - 92 ), 7 * 48 * + 9 AS col1
----
-85
3024

query I rowsort
SELECT 73 * - - 11 * + 1 col2
----
803

query I rowsort
SELECT + 61 - + 88
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT + 35 DIV + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT + 35 / + 53 AS col0
----
0

query I rowsort
SELECT ALL + 65 + 86 AS col1
----
151

query I rowsort
SELECT - COALESCE ( + 18, - 83, 26 * + + 21 + - - 45 + - - 99 ) * - + 59 - 53 + 41 + 91 col0
----
1141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2307
SELECT ALL - + 31 + CASE 23 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) * - SUM( ALL 46 ) * 87 THEN - 25 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - + 31 + CASE 23 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) * - SUM ( ALL 46 ) * 87 THEN - 25 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT DISTINCT - NULLIF ( + + COUNT( * ), + 12 * - + COUNT( * ) ) + - - ( + - 85 ) - - 12
----
-74

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), + 12 * - + COUNT ( * ) ) + - - ( + - 85 ) - - 12
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT - CASE + COUNT( * ) WHEN - ( COUNT( * ) ) * + 60 * 62 THEN - 34 WHEN + 78 THEN NULL ELSE + 94 END
----
-94

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - ( COUNT ( * ) ) * + 60 * 62 THEN - 34 WHEN + 78 THEN NULL ELSE + 94 END
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT ALL - + 56 + 23 DIV - 52 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL - + 56 + 23 / - 52 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT 41 + - + COUNT( * ) - + 62
----
-22

skipif mysql # not compatible
query I rowsort label-2311
SELECT 41 + - + COUNT ( * ) - + 62
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT 84 - + + CAST( NULL AS SIGNED ) + + SUM( DISTINCT 16 ) * - - COALESCE ( + 67, - 88 * + + 15, - 60 * CAST( NULL AS SIGNED ) / + ( - 73 ) ) + - 53 * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2312
SELECT 84 - + + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT 16 ) * - - COALESCE ( + 67, - 88 * + + 15, - 60 * CAST ( NULL AS INTEGER ) / + ( - 73 ) ) + - 53 * - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL CASE COUNT( * ) WHEN + + COALESCE ( - + 8, - + 89 * - - 45, + - COUNT( * ), + 45, 26 ) THEN - 13 / - + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL CASE COUNT ( * ) WHEN + + COALESCE ( - + 8, - + 89 * - - 45, + - COUNT ( * ), + 45, 26 ) THEN - 13 / - + 83 END
----
NULL

query I rowsort
SELECT ( + + 99 ) - - - NULLIF ( 81, + 47 ) col1
----
18

query I rowsort
SELECT ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT - - MIN( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2316
SELECT - - MIN ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ( + 24 ) * COUNT( + ( + - 83 ) ) * - 34 * 45 - + - 32 + - 49 + + 27 AS col1
----
-36710

skipif mysql # not compatible
query I rowsort label-2317
SELECT ( + 24 ) * COUNT ( + ( + - 83 ) ) * - 34 * 45 - + - 32 + - 49 + + 27 AS col1
----
-36710

query I rowsort
SELECT - 60 * + + 32 AS col2
----
-1920

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL COUNT( ALL + - 78 ) * + 44 * + - MIN( DISTINCT - 41 ) + - COUNT( * ) + + 73 * - COUNT( * ) + - 95 * 41 AS col2
----
-2165

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL COUNT ( ALL + - 78 ) * + 44 * + - MIN ( DISTINCT - 41 ) + - COUNT ( * ) + + 73 * - COUNT ( * ) + - 95 * 41 AS col2
----
-2165

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 49 * CASE - 1 WHEN - + 18 + - COUNT( * ) THEN 33 * - 97 + - 75 + + + 76 + 9 * - ( 50 ) / - 9 * - 67 / 22 WHEN - - COUNT( * ) THEN 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT 49 * CASE - 1 WHEN - + 18 + - COUNT ( * ) THEN 33 * - 97 + - 75 + + + 76 + 9 * - ( 50 ) / - 9 * - 67 / 22 WHEN - - COUNT ( * ) THEN 3 END
----
NULL

query I rowsort
SELECT ALL 36 * + 80
----
2880

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT - 72 DIV - + 23 + + 68 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 72 / - + 23 + + 68 AS col2
----
71

query I rowsort
SELECT ALL 89 * ( - 2 ) AS col1
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT - ( + 58 ) + + 81 * + CASE WHEN + COUNT( * ) <> + 52 THEN - COUNT( DISTINCT - 54 ) ELSE 32 END * - - CAST( + ( + - 48 ) AS SIGNED )
----
3830

skipif mysql # not compatible
query I rowsort label-2326
SELECT - ( + 58 ) + + 81 * + CASE WHEN + COUNT ( * ) <> + 52 THEN - COUNT ( DISTINCT - 54 ) ELSE 32 END * - - CAST ( + ( + - 48 ) AS INTEGER )
----
3830

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT + 77 col2, 80 + + - MAX( - 23 ) + - - 26 + + 23 * 38 * + 8
----
77
7121

skipif mysql # not compatible
query II rowsort label-2327
SELECT + 77 col2, 80 + + - MAX ( - 23 ) + - - 26 + + 23 * 38 * + 8
----
77
7121

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT ALL + COUNT( * ) AS col0, - 55 * - 85 AS col2
----
1
4675

skipif mysql # not compatible
query II rowsort label-2328
SELECT ALL + COUNT ( * ) AS col0, - 55 * - 85 AS col2
----
1
4675

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT + 47 DIV + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT + 47 / + 63 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT 21 * - - COUNT( * ) + + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT 21 * - - COUNT ( * ) + + COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT - 10 - - 93 + - 56 + 5 * - 71 + + COUNT( * ), 20 col1
----
-327
20

skipif mysql # not compatible
query II rowsort label-2332
SELECT - 10 - - 93 + - 56 + 5 * - 71 + + COUNT ( * ), 20 col1
----
-327
20

query I rowsort
SELECT ALL 16 * + + 40 AS col1
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT MIN( DISTINCT - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT MIN ( DISTINCT - 0 ) col1
----
0

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

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

query II rowsort
SELECT + 45 + 35 * + 92 col2, + 97
----
3265
97

query II rowsort
SELECT + + 81, + ( 20 ) * + - 65 + - + 48 + 92 * - ( + 14 ) * 51 AS col2
----
81
-67036

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

query I rowsort
SELECT ALL + 34 + - 11
----
23

query I rowsort
SELECT DISTINCT - 76 + - 47 AS col1
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT - + 53 DIV - 75 - 52 - ( 38 ) - - ( + 29 ) * + 67 * - - 28 AS col1
----
54314

skipif mysql # not compatible
query I rowsort label-2341
SELECT - + 53 / - 75 - 52 - ( 38 ) - - ( + 29 ) * + 67 * - - 28 AS col1
----
54314

query I rowsort
SELECT - - 48 + - 7 + + 68 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2343
SELECT ALL - CAST( NULL AS SIGNED ) / - + CASE - MAX( 82 ) WHEN ( - - 93 ) THEN - - 79 + 55 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL - CAST ( NULL AS INTEGER ) / - + CASE - MAX ( 82 ) WHEN ( - - 93 ) THEN - - 79 + 55 END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT MIN( DISTINCT 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-2344
SELECT MIN ( DISTINCT 17 ) col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2345
SELECT - + 73 + - NULLIF ( 52, NULLIF ( - + COUNT( * ), + 47 - + 0 ) DIV + 61 ) AS col0, 4 DIV COALESCE ( + 21, - NULLIF ( + - 53, - + COUNT( * ) * - 67 + + 36 ) - + - 24 DIV CAST( 36 AS SIGNED ), + 74 * 2 ) + + 48 DIV 42 AS col0
----
-125
1

skipif mysql # not compatible
query II rowsort label-2345
SELECT - + 73 + - NULLIF ( 52, NULLIF ( - + COUNT ( * ), + 47 - + 0 ) / + 61 ) AS col0, 4 / COALESCE ( + 21, - NULLIF ( + - 53, - + COUNT ( * ) * - 67 + + 36 ) - + - 24 / CAST ( 36 AS INTEGER ), + 74 * 2 ) + + 48 / 42 AS col0
----
-125
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT - - 86 AS col0, 15 - COUNT( * ) AS col1
----
86
14

skipif mysql # not compatible
query II rowsort label-2346
SELECT - - 86 AS col0, 15 - COUNT ( * ) AS col1
----
86
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - 93 - - - 64 + COUNT( * )
----
-156

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - 93 - - - 64 + COUNT ( * )
----
-156

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

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

query II rowsort
SELECT - 77 AS col0, - 82
----
-77
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2350
SELECT ALL + 2 * - MAX( DISTINCT - + 15 ) + - COUNT( * ) col0, - ( ( + - 15 ) ) * COUNT( * ) * 53 * - NULLIF ( COALESCE ( 38, + 22 + - 40, + 57 ), + 36 - + + ( - 66 ) + + 5 ) AS col2
----
29
-30210

skipif mysql # not compatible
query II rowsort label-2350
SELECT ALL + 2 * - MAX ( DISTINCT - + 15 ) + - COUNT ( * ) col0, - ( ( + - 15 ) ) * COUNT ( * ) * 53 * - NULLIF ( COALESCE ( 38, + 22 + - 40, + 57 ), + 36 - + + ( - 66 ) + + 5 ) AS col2
----
29
-30210

query I rowsort
SELECT - - 96 + + 57 - 19 + - + 56
----
78

query I rowsort
SELECT ALL + NULLIF ( + 26, + - 30 ) * + ( - - 27 ) col1
----
702

query I rowsort
SELECT - + 21 * 64 * - 59
----
79296

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT + SUM ( - + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL - - NULLIF ( - 33, + 59 ) * + ( COALESCE ( COUNT( * ), + 70 ) ) + - 44
----
-77

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - - NULLIF ( - 33, + 59 ) * + ( COALESCE ( COUNT ( * ), + 70 ) ) + - 44
----
-77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2357
SELECT + NULLIF ( - 91, + SUM( 66 ) ) + + + CAST( - 47 AS SIGNED ) + 28 AS col2, 41 * 96 + 74 - + - 6 AS col0
----
-110
4016

skipif mysql # not compatible
query II rowsort label-2357
SELECT + NULLIF ( - 91, + SUM ( 66 ) ) + + + CAST ( - 47 AS INTEGER ) + 28 AS col2, 41 * 96 + 74 - + - 6 AS col0
----
-110
4016

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT - COALESCE ( + 16, + - COALESCE ( + 82, - COALESCE ( - + 63, + + 64 DIV - 60 + + 79 * + - 41 ), + + 10 ) + 10, 97 + - CASE + ( + + 24 ) WHEN - + 92 * - - 66 * 28 THEN NULL ELSE - 36 DIV 53 END )
----
-16

skipif mysql # not compatible
query I rowsort label-2358
SELECT - COALESCE ( + 16, + - COALESCE ( + 82, - COALESCE ( - + 63, + + 64 / - 60 + + 79 * + - 41 ), + + 10 ) + 10, 97 + - CASE + ( + + 24 ) WHEN - + 92 * - - 66 * 28 THEN NULL ELSE - 36 / 53 END )
----
-16

query II rowsort
SELECT + 77 + 9 col1, 71 AS col2
----
86
71

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

query I rowsort
SELECT ALL 35 * - 80
----
-2800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2362
SELECT ALL 74 DIV - - COUNT( * ) + - 98 * + 45, - ( ( 14 ) ) AS col2
----
-4336
-14

skipif mysql # not compatible
query II rowsort label-2362
SELECT ALL 74 / - - COUNT ( * ) + - 98 * + 45, - ( ( 14 ) ) AS col2
----
-4336
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2363
SELECT ALL - 40 DIV + 64 + - COUNT( * ) * - 29 AS col1, - 56
----
29
-56

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL - 40 / + 64 + - COUNT ( * ) * - 29 AS col1, - 56
----
29
-56

query II rowsort
SELECT + ( + + 17 ) AS col2, 34 + - 83 * + 12
----
17
-962

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2365
SELECT ALL CAST( - 53 AS SIGNED ) DIV 83 + - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL CAST ( - 53 AS INTEGER ) / 83 + - + 69
----
-69

query I rowsort
SELECT ( - + COALESCE ( + 49, - 14 ) ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2367
SELECT + 87 + + - 49 + 77 + + - CAST( NULL AS SIGNED ) AS col1, 29 AS col2
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2367
SELECT + 87 + + - 49 + 77 + + - CAST ( NULL AS INTEGER ) AS col1, 29 AS col2
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ( + SUM( - + 92 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2368
SELECT ( + SUM ( - + 92 ) ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT DISTINCT ( - 74 ) * + - CASE WHEN NOT ( NOT + CAST( NULL AS SIGNED ) IS NULL ) THEN NULL ELSE ( 24 ) / + + CAST( 50 AS SIGNED ) + - + AVG ( + 15 ) END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT ( - 74 ) * + - CASE WHEN NOT ( NOT + CAST ( NULL AS INTEGER ) IS NULL ) THEN NULL ELSE ( 24 ) / + + CAST ( 50 AS INTEGER ) + - + AVG ( + 15 ) END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL 64 * - 75 * 24 * - COUNT( * ) + - 67
----
115133

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL 64 * - 75 * 24 * - COUNT ( * ) + - 67
----
115133

query I rowsort
SELECT + - 83 + 59
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT ALL + NULLIF ( - 72, - 6 ) * + 73, + 50 * + - CASE + 69 WHEN + 36 THEN - 50 WHEN COALESCE ( + COUNT( * ), + + 33, ( + - COUNT( * ) ) * + - 66 * + 0 + + - 14 ) * - ( + 37 ) THEN - NULLIF ( 83, 45 + 64 ) * - 27 WHEN 5 THEN COUNT( * ) END * - 4 AS col0
----
-5256
NULL

skipif mysql # not compatible
query II rowsort label-2372
SELECT ALL + NULLIF ( - 72, - 6 ) * + 73, + 50 * + - CASE + 69 WHEN + 36 THEN - 50 WHEN COALESCE ( + COUNT ( * ), + + 33, ( + - COUNT ( * ) ) * + - 66 * + 0 + + - 14 ) * - ( + 37 ) THEN - NULLIF ( 83, 45 + 64 ) * - 27 WHEN 5 THEN COUNT ( * ) END * - 4 AS col0
----
-5256
NULL

query I rowsort
SELECT + 36 + + 42
----
78

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2375
SELECT DISTINCT 51 * - 10 AS col2, + ( + + 83 ) * 86 * + + 58 + 71 - - + 7 * - 71 DIV 70 * - ( + 31 ) + - + 29
----
-510
414263

skipif mysql # not compatible
query II rowsort label-2375
SELECT DISTINCT 51 * - 10 AS col2, + ( + + 83 ) * 86 * + + 58 + 71 - - + 7 * - 71 / 70 * - ( + 31 ) + - + 29
----
-510
414263

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT - - 92 * - 12 * MAX( DISTINCT - - 46 )
----
-50784

skipif mysql # not compatible
query I rowsort label-2376
SELECT - - 92 * - 12 * MAX ( DISTINCT - - 46 )
----
-50784

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2377
SELECT - COALESCE ( + 69, + 98 ) DIV 36 * + CAST( + AVG ( ALL 25 ) AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2377
SELECT - COALESCE ( + 69, + 98 ) / 36 * + CAST ( + AVG ( ALL 25 ) AS INTEGER ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + COALESCE ( + 94, + 33 ) * - COUNT( DISTINCT 96 ) + ( - + 94 ) AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-2378
SELECT + COALESCE ( + 94, + 33 ) * - COUNT ( DISTINCT 96 ) + ( - + 94 ) AS col0
----
-188

query I rowsort
SELECT 73 + - NULLIF ( 21, - 38 ) - ( + 24 )
----
28

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

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

query I rowsort
SELECT 42 + ( + 35 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT 78 - + 77 + - CAST( - CASE - - COALESCE ( - CAST( - 56 AS SIGNED ), + + 59 * - 83, 17 * - + 86 + - + 28 ) WHEN - AVG ( + 54 ) THEN + 4 * + 35 + - 47 - + 29 + - CAST( + + 68 AS SIGNED ) WHEN - 41 + - SUM( 10 - + ( 51 ) * 51 ) THEN - 5 + ( - 93 + - CAST( NULL AS SIGNED ) ) ELSE 6 END AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-2382
SELECT 78 - + 77 + - CAST ( - CASE - - COALESCE ( - CAST ( - 56 AS INTEGER ), + + 59 * - 83, 17 * - + 86 + - + 28 ) WHEN - AVG ( + 54 ) THEN + 4 * + 35 + - 47 - + 29 + - CAST ( + + 68 AS INTEGER ) WHEN - 41 + - SUM ( 10 - + ( 51 ) * 51 ) THEN - 5 + ( - 93 + - CAST ( NULL AS INTEGER ) ) ELSE 6 END AS INTEGER )
----
7

query I rowsort
SELECT 87 + 85 AS col1
----
172

query I rowsort
SELECT DISTINCT + 88 + + + 93 AS col0
----
181

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT - 33 + 30 + + 37 DIV + 89
----
-3

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - 33 + 30 + + 37 / + 89
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT 74 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-2386
SELECT 74 / 30
----
2

query I rowsort
SELECT DISTINCT + 61 * - ( + ( - + 3 ) )
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL 29 + - - 97 + - COUNT( ALL + 81 )
----
125

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL 29 + - - 97 + - COUNT ( ALL + 81 )
----
125

query I rowsort
SELECT 73 + + - 44 * + + 26 AS col0
----
-1071

query I rowsort
SELECT 9 * - 82
----
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - MIN( - - 24 ) + - CASE + 72 WHEN + 33 THEN + 73 ELSE NULL END / + ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - MIN ( - - 24 ) + - CASE + 72 WHEN + 33 THEN + 73 ELSE NULL END / + ( 35 )
----
NULL

query II rowsort
SELECT + 49 AS col1, 42 + - - 63 AS col2
----
49
105

query I rowsort
SELECT ALL - 8 - + 44
----
-52

query I rowsort
SELECT ALL + 9 - + 9 col1
----
0

query I rowsort
SELECT + 54 + + - 40 * NULLIF ( 70, + 96 ) AS col1
----
-2746

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT - COUNT( - 79 ) - 66 col2
----
-67

skipif mysql # not compatible
query I rowsort label-2397
SELECT - COUNT ( - 79 ) - 66 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT ( + COUNT( * ) ) * 13 + + 18 * 14 col2
----
265

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT ( + COUNT ( * ) ) * 13 + + 18 * 14 col2
----
265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2399
SELECT 12 * + COALESCE ( - + 7, AVG ( - 16 ) * ( - + ( COALESCE ( + + 51, + - COALESCE ( 46, - CASE + - 2 WHEN + 63 * + ( + + 90 ) THEN - COUNT( * ) / + 19 * + 79 - + CAST( NULL AS SIGNED ) + - 49 * + 20 ELSE NULL END + 6 ) ) ) ) / SUM( 48 ) ) + ( 58 + - 60 * - CASE - 88 WHEN 16 - 84 THEN + MAX( + 15 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT 12 * + COALESCE ( - + 7, AVG ( - 16 ) * ( - + ( COALESCE ( + + 51, + - COALESCE ( 46, - CASE + - 2 WHEN + 63 * + ( + + 90 ) THEN - COUNT ( * ) / + 19 * + 79 - + CAST ( NULL AS INTEGER ) + - 49 * + 20 ELSE NULL END + 6 ) ) ) ) / SUM ( 48 ) ) + ( 58 + - 60 * - CASE - 88 WHEN 16 - 84 THEN + MAX ( + 15 ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT 90 + - CAST( - 49 AS SIGNED )
----
139

skipif mysql # not compatible
query I rowsort label-2400
SELECT 90 + - CAST ( - 49 AS INTEGER )
----
139

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT + 30 DIV - 3 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2402
SELECT + 30 / - 3 AS col2
----
-10

query I rowsort
SELECT - 4 + - 44
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT MIN( + CAST( NULL AS SIGNED ) ) + - 20 + - + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + - 20 + - + 40 AS col0
----
NULL

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

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

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

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

query II rowsort
SELECT ALL + 10 * - + 59 - - + 90 AS col1, CASE + 1 WHEN + - 81 THEN + 57 ELSE + + 54 END + - 31
----
-500
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT - - COUNT( * ) AS col1, + ( - 41 ) + + + COUNT( + - 60 ) col2
----
1
-40

skipif mysql # not compatible
query II rowsort label-2408
SELECT - - COUNT ( * ) AS col1, + ( - 41 ) + + + COUNT ( + - 60 ) col2
----
1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT 87 + + 16 + COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-2409
SELECT 87 + + 16 + COUNT ( * ) AS col1
----
104

query I rowsort
SELECT ALL + 74 + - 60 AS col0
----
14

query I rowsort
SELECT DISTINCT 71 + 65
----
136

query I rowsort
SELECT 77 * - 16 * 59 col1
----
-72688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2413
SELECT - 73 AS col0, - CASE 74 WHEN - ( 33 ) THEN + 10 WHEN + CAST( NULL AS SIGNED ) + - + ( + + 65 ) THEN NULL ELSE - - 39 END + 32 * - 95 * + 17
----
-73
-51719

skipif mysql # not compatible
query II rowsort label-2413
SELECT - 73 AS col0, - CASE 74 WHEN - ( 33 ) THEN + 10 WHEN + CAST ( NULL AS INTEGER ) + - + ( + + 65 ) THEN NULL ELSE - - 39 END + 32 * - 95 * + 17
----
-73
-51719

query II rowsort
SELECT 16, + 91 AS col2
----
16
91

query I rowsort
SELECT DISTINCT + 57 + + - 4
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT CAST( + 28 AS SIGNED ) - + 32 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2416
SELECT CAST ( + 28 AS INTEGER ) - + 32 AS col2
----
-4

query I rowsort
SELECT 3 * + + 16 AS col1
----
48

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

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

query I rowsort
SELECT 9 + 23 * 51
----
1182

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT 18 + - COUNT( DISTINCT + 28 ) + - + MIN( + 82 ) * 38
----
-3099

skipif mysql # not compatible
query I rowsort label-2420
SELECT 18 + - COUNT ( DISTINCT + 28 ) + - + MIN ( + 82 ) * 38
----
-3099

query I rowsort
SELECT 92 * 25
----
2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2422
SELECT ALL + COUNT( * ) * + + 70 DIV + + 92 col1
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + COUNT ( * ) * + + 70 / + + 92 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT + 67 * + 91 * + - 58 * COUNT( * ) * + 11
----
-3889886

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + 67 * + 91 * + - 58 * COUNT ( * ) * + 11
----
-3889886

query I rowsort
SELECT ALL - 13 * + 98
----
-1274

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT 24 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT 24 / 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL + 46 * - 31 * + + COUNT( * ) + + - 87
----
-1513

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + 46 * - 31 * + + COUNT ( * ) + + - 87
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT 50 * - ( 55 ) * 44 - + COUNT( * )
----
-121001

skipif mysql # not compatible
query I rowsort label-2427
SELECT 50 * - ( 55 ) * 44 - + COUNT ( * )
----
-121001

query I rowsort
SELECT + 19 * - + 81 col1
----
-1539

query II rowsort
SELECT ALL - - 11 AS col0, 3
----
11
3

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

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

query II rowsort
SELECT ALL 94 * 85, - 53 * - 59 AS col2
----
7990
3127

query I rowsort
SELECT DISTINCT + 3 * + - 15 - - 68 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT + 82 DIV + 46 col1
----
1

skipif mysql # not compatible
query I rowsort label-2433
SELECT + 82 / + 46 col1
----
1

query I rowsort
SELECT ALL - ( 89 ) * 32 AS col1
----
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT MIN( + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-2435
SELECT MIN ( + 97 )
----
97

query I rowsort
SELECT - + 90 + + 28 * + 41 AS col0
----
1058

query II rowsort
SELECT CASE + ( 79 ) WHEN - 63 - - 27 * + 50 THEN NULL ELSE - 56 * + 35 + + + 63 + 83 * - + 35 END AS col0, 65 AS col2
----
-4802
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT + - 15 DIV + 10
----
-1

skipif mysql # not compatible
query I rowsort label-2438
SELECT + - 15 / + 10
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2439
SELECT + - 9 DIV - - 1 AS col0, 96 * - 94 * 76
----
-9
-685824

skipif mysql # not compatible
query II rowsort label-2439
SELECT + - 9 / - - 1 AS col0, 96 * - 94 * 76
----
-9
-685824

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - NULLIF ( - - 62, COUNT( * ) ) * - COUNT( * ) - 59
----
3

skipif mysql # not compatible
query I rowsort label-2440
SELECT - NULLIF ( - - 62, COUNT ( * ) ) * - COUNT ( * ) - 59
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2441
SELECT ALL + 15 + - COUNT( * ) AS col1, COUNT( * ) - - + CAST( NULL AS DECIMAL ) * - 96 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2441
SELECT ALL + 15 + - COUNT ( * ) AS col1, COUNT ( * ) - - + CAST ( NULL AS REAL ) * - 96 AS col1
----
14
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2442
SELECT + 0 + - 18 + + COUNT( * ) + + CAST( - + 22 AS SIGNED ) + - + 92 * - + 62 + 15 * - AVG ( 45 ) + - 16 * + CASE 22 WHEN - 22 * 74 THEN 82 END - - - 5 * - MIN( ALL - 70 ) * + 49 * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 0 + - 18 + + COUNT ( * ) + + CAST ( - + 22 AS INTEGER ) + - + 92 * - + 62 + 15 * - AVG ( 45 ) + - 16 * + CASE 22 WHEN - 22 * 74 THEN 82 END - - - 5 * - MIN ( ALL - 70 ) * + 49 * + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL 82 + COALESCE ( - - 93, + NULLIF ( COUNT( - 21 ), - 23 ) )
----
175

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL 82 + COALESCE ( - - 93, + NULLIF ( COUNT ( - 21 ), - 23 ) )
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT - SUM( 0 ), NULLIF ( + 8, 88 ) * + NULLIF ( CASE 9 WHEN + NULLIF ( 67, 71 ) + 77 THEN NULL WHEN - CASE + COUNT( * ) WHEN - + COUNT( * ) * 98 THEN + COUNT( * ) + + 36 END / + 3 THEN + 46 ELSE + 69 END, - 10 ) * 89 AS col0
----
0
49128

skipif mysql # not compatible
query II rowsort label-2444
SELECT - SUM ( 0 ), NULLIF ( + 8, 88 ) * + NULLIF ( CASE 9 WHEN + NULLIF ( 67, 71 ) + 77 THEN NULL WHEN - CASE + COUNT ( * ) WHEN - + COUNT ( * ) * 98 THEN + COUNT ( * ) + + 36 END / + 3 THEN + 46 ELSE + 69 END, - 10 ) * 89 AS col0
----
0
49128

query II rowsort
SELECT + 64 + + ( - - 65 ) + + 14 * - 43, + 42 + 0 AS col2
----
-473
42

query I rowsort
SELECT + 70 - - + 82
----
152

query I rowsort
SELECT DISTINCT 81 - + 80
----
1

query I rowsort
SELECT - COALESCE ( - - 44, 1 + - - 15 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL COUNT( * ) * - - 13 col2
----
13

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL COUNT ( * ) * - - 13 col2
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL COALESCE ( + 48, COUNT( * ), - - ( - + 3 ) )
----
48

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL COALESCE ( + 48, COUNT ( * ), - - ( - + 3 ) )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT + 75 DIV - 89 * - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 75 / - 89 * - 3 AS col1
----
0

query II rowsort
SELECT - 80 * + + 43 AS col2, 99 + - 49 AS col0
----
-3440
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + + 95 + - 23 * COUNT( * ) col0
----
72

skipif mysql # not compatible
query I rowsort label-2454
SELECT + + 95 + - 23 * COUNT ( * ) col0
----
72

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

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

query I rowsort
SELECT - 72 * - 15 - + - ( + 83 ) col0
----
1163

query I rowsort
SELECT - - 70 * + 2 + - + 6 AS col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT + 86 DIV + - 9 + 45 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2458
SELECT + 86 / + - 9 + 45 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2459
SELECT DISTINCT - + 52 * CAST( NULL AS SIGNED ), 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-2459
SELECT DISTINCT - + 52 * CAST ( NULL AS INTEGER ), 58 AS col2
----
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT - + 94 DIV - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2460
SELECT - + 94 / - 40 AS col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2461
SELECT - + 88 + - CAST( NULL AS DECIMAL ) - - 39 * - 56 / 44 * - 98 * + 63 * ( - - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT - + 88 + - CAST ( NULL AS REAL ) - - 39 * - 56 / 44 * - 98 * + 63 * ( - - 49 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL - ( - CAST( COALESCE ( 54, COUNT( * ) + - ( - ( + 25 ) ) ) AS SIGNED ) ) * - - COUNT( * ) + 50
----
104

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL - ( - CAST ( COALESCE ( 54, COUNT ( * ) + - ( - ( + 25 ) ) ) AS INTEGER ) ) * - - COUNT ( * ) + 50
----
104

query I rowsort
SELECT - - 19 * - 20 AS col1
----
-380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2464
SELECT DISTINCT + COALESCE ( + ( 4 ), + CAST( 67 AS SIGNED ) DIV + 31 )
----
4

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + COALESCE ( + ( 4 ), + CAST ( 67 AS INTEGER ) / + 31 )
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL + 4 * - NULLIF ( + - 90, - 50 * - - 96 ) - - - COUNT( * ) + + - 93 * + + 5 - + - 8 - - 71
----
-27

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + 4 * - NULLIF ( + - 90, - 50 * - - 96 ) - - - COUNT ( * ) + + - 93 * + + 5 - + - 8 - - 71
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT - 41 + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2467
SELECT - 41 + + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - COUNT( * ) * 68 + + + 8 col2
----
-60

skipif mysql # not compatible
query I rowsort label-2468
SELECT - COUNT ( * ) * 68 + + + 8 col2
----
-60

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

query I rowsort
SELECT - 89 * - 2
----
178

query I rowsort
SELECT DISTINCT - 39 - + 9 + + 77
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT 35 * - COUNT( DISTINCT 93 ) * MIN( ALL - 33 )
----
1155

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT 35 * - COUNT ( DISTINCT 93 ) * MIN ( ALL - 33 )
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + 47 + - 28 * + 8 * - NULLIF ( - NULLIF ( - - 79, + 85 ), 2 - + + ( + + 14 ) + 72 ) + - + CASE - + 46 WHEN - 91 + - 42 * 17 THEN + 59 WHEN - COUNT( ALL + + 51 ) + - 5 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 47 + - 28 * + 8 * - NULLIF ( - NULLIF ( - - 79, + 85 ), 2 - + + ( + + 14 ) + 72 ) + - + CASE - + 46 WHEN - 91 + - 42 * 17 THEN + 59 WHEN - COUNT ( ALL + + 51 ) + - 5 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 58 * - 12
----
696

query I rowsort
SELECT + 64 * 51 AS col0
----
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + CAST( - 74 AS SIGNED ) + 29
----
-45

skipif mysql # not compatible
query I rowsort label-2477
SELECT + CAST ( - 74 AS INTEGER ) + 29
----
-45

query I rowsort
SELECT ALL - 21 - + - NULLIF ( + - 68, - 43 )
----
-89

query I rowsort
SELECT - ( + - 66 ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL COUNT( ALL 21 )
----
1

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL COUNT ( ALL 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT - MIN( ALL - 75 ) - ( ( 35 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2481
SELECT - MIN ( ALL - 75 ) - ( ( 35 ) ) AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT + 81 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-2482
SELECT + 81 / 34
----
2

query I rowsort
SELECT + 98 + + 94
----
192

onlyif mysql # DIV for integer division: 
query II rowsort label-2484
SELECT DISTINCT 51 AS col0, + ( + 36 ) DIV - 46 * + 36 AS col2
----
51
0

skipif mysql # not compatible
query II rowsort label-2484
SELECT DISTINCT 51 AS col0, + ( + 36 ) / - 46 * + 36 AS col2
----
51
0

query I rowsort
SELECT + 69 * - 68 AS col2
----
-4692

query I rowsort
SELECT + 74 + 9
----
83

query II rowsort
SELECT 19 AS col1, + 67 + - 57 * - 4 AS col1
----
19
295

query II rowsort
SELECT - - 75 AS col0, + 33 * + 95 col2
----
75
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL 70 * + 33 * COUNT( * )
----
2310

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL 70 * + 33 * COUNT ( * )
----
2310

query I rowsort
SELECT + + 58 * + NULLIF ( + - ( + 65 ), + ( - 22 ) + - + ( 36 ) + + 76 - + - 69 ) AS col0
----
-3770

query I rowsort
SELECT - 71 * - + 72 - - + COALESCE ( + 22, - 58 * 80 )
----
5134

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL + + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL + 3 + + 6
----
9

query I rowsort
SELECT + 76 * - + 63 + + ( + 46 ) AS col0
----
-4742

query I rowsort
SELECT + COALESCE ( + + 53, - + 90 ) AS col1
----
53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL 29 + - + CAST( 71 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL 29 + - + CAST ( 71 AS INTEGER ) AS col1
----
-42

query I rowsort
SELECT DISTINCT + 95 + 46 col0
----
141

query I rowsort
SELECT DISTINCT - 20 * 28 * + 30 col1
----
-16800

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT ALL 0 DIV + + 2 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL 0 / + + 2 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ALL - 71 * 94 * - COUNT( * )
----
6674

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - 71 * 94 * - COUNT ( * )
----
6674

query II rowsort
SELECT DISTINCT COALESCE ( - - 28, 73 * - 56 ) * 80 * + 54 AS col1, 50 AS col0
----
120960
50

query I rowsort
SELECT ALL + 27 * - 50 AS col0
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2506
SELECT 67 + 29 + + CAST( - COALESCE ( 53, + - MAX( 43 ), + - 48 / + COUNT( * ) + + + COUNT( DISTINCT + - 55 ) ) AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2506
SELECT 67 + 29 + + CAST ( - COALESCE ( 53, + - MAX ( 43 ), + - 48 / + COUNT ( * ) + + + COUNT ( DISTINCT + - 55 ) ) AS INTEGER ) AS col2
----
43

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

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

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

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

query I rowsort
SELECT 12 + + 30 * - 74
----
-2208

query I rowsort
SELECT 92 + + 94 AS col1
----
186

query I rowsort
SELECT 2 + 44 AS col2
----
46

query I rowsort
SELECT ALL - CASE 32 WHEN - - 90 THEN NULL WHEN + + 12 THEN 3 * + + 56 END * + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT 8 * + 70 * + 65 * - ( - - NULLIF ( + 89, - CAST( + ( + - ( + MAX( 91 ) ) ) AS SIGNED ) ) ) AS col2
----
-3239600

skipif mysql # not compatible
query I rowsort label-2513
SELECT 8 * + 70 * + 65 * - ( - - NULLIF ( + 89, - CAST ( + ( + - ( + MAX ( 91 ) ) ) AS INTEGER ) ) ) AS col2
----
-3239600

query I rowsort
SELECT DISTINCT - ( 5 ) * - 15
----
75

query I rowsort
SELECT ALL 57 + - 2 col0
----
55

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

query II rowsort
SELECT ALL + 91 * + - 54 AS col1, 88
----
-4914
88

query I rowsort
SELECT + 98 + 16 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT ALL CAST( + 20 AS SIGNED ) AS col1, + 96 + - ( + 91 )
----
20
5

skipif mysql # not compatible
query II rowsort label-2519
SELECT ALL CAST ( + 20 AS INTEGER ) AS col1, + 96 + - ( + 91 )
----
20
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2520
SELECT + 7 * 9 AS col2, - 56 * - CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2520
SELECT + 7 * 9 AS col2, - 56 * - CAST ( NULL AS INTEGER )
----
63
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT ALL - + 98 + 54 DIV + 88 + + - CASE - + 27 WHEN + 93 THEN NULL ELSE + 7 END * + 22 + - 55 * + - 54 AS col0
----
2718

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - + 98 + 54 / + 88 + + - CASE - + 27 WHEN + 93 THEN NULL ELSE + 7 END * + 22 + - 55 * + - 54 AS col0
----
2718

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

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

query I rowsort
SELECT 70 + + 42 col0
----
112

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL - - COALESCE ( - COUNT( * ), NULLIF ( - CAST( NULL AS SIGNED ), + 33 ), + 7 * CASE + - MIN( - 40 ) WHEN - 29 + 23 + - + 81 + NULLIF ( - 90, - - COALESCE ( + COUNT( * ), - COUNT( * ) + - COUNT( * ), + CAST( + 9 AS SIGNED ) + COALESCE ( + 39, - 4 / - 30 ) + - 90 * + ( 8 ) ) / 57 ) * CASE - 27 * 28 WHEN COUNT( * ) THEN + 40 * 91 END THEN + COUNT( * ) WHEN 87 + 72 THEN NULL END * - 30 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - - COALESCE ( - COUNT ( * ), NULLIF ( - CAST ( NULL AS INTEGER ), + 33 ), + 7 * CASE + - MIN ( - 40 ) WHEN - 29 + 23 + - + 81 + NULLIF ( - 90, - - COALESCE ( + COUNT ( * ), - COUNT ( * ) + - COUNT ( * ), + CAST ( + 9 AS INTEGER ) + COALESCE ( + 39, - 4 / - 30 ) + - 90 * + ( 8 ) ) / 57 ) * CASE - 27 * 28 WHEN COUNT ( * ) THEN + 40 * 91 END THEN + COUNT ( * ) WHEN 87 + 72 THEN NULL END * - 30 ) AS col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT - COUNT ( * ) / + 56 + - - 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT CASE MIN( DISTINCT - 47 ) WHEN + 79 + + - 27 THEN + 57 ELSE NULL END * + - 7 + 95 + 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT CASE MIN ( DISTINCT - 47 ) WHEN + 79 + + - 27 THEN + 57 ELSE NULL END * + - 7 + 95 + 5 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT + - COUNT( * ) / ( + - 99 ) + CAST( NULL AS SIGNED ) + - + COALESCE ( 52, COUNT( * ), + 91 ) / - - 41 * + COUNT( * ) * - - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT + - COUNT ( * ) / ( + - 99 ) + CAST ( NULL AS INTEGER ) + - + COALESCE ( 52, COUNT ( * ), + 91 ) / - - 41 * + COUNT ( * ) * - - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL 18 * - + 45 * - + 85 * - 32 - + + MIN( DISTINCT + 92 ) * - 69 + - + 69 AS col0
----
-2196921

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 18 * - + 45 * - + 85 * - 32 - + + MIN ( DISTINCT + 92 ) * - 69 + - + 69 AS col0
----
-2196921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT NULLIF ( - - 39, + + CASE + + 19 WHEN + COUNT( * ) / - 11 + + - ( ( - ( - 61 ) ) ) / ( 86 ) / 19 * - 24 * - AVG ( ALL - - 5 ) + ( - COALESCE ( - + 95, - ( + 77 ) ) ) * - COUNT( * ) / + 76 + COUNT( * ) + + ( - ( - 76 ) + 88 ) THEN NULL WHEN 65 + 68 / 14 THEN 30 * - COUNT( * ) WHEN 28 THEN NULL END * 69 - - CAST( NULL AS SIGNED ) ) col0
----
39

skipif mysql # not compatible
query I rowsort label-2530
SELECT NULLIF ( - - 39, + + CASE + + 19 WHEN + COUNT ( * ) / - 11 + + - ( ( - ( - 61 ) ) ) / ( 86 ) / 19 * - 24 * - AVG ( ALL - - 5 ) + ( - COALESCE ( - + 95, - ( + 77 ) ) ) * - COUNT ( * ) / + 76 + COUNT ( * ) + + ( - ( - 76 ) + 88 ) THEN NULL WHEN 65 + 68 / 14 THEN 30 * - COUNT ( * ) WHEN 28 THEN NULL END * 69 - - CAST ( NULL AS INTEGER ) ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - MAX( DISTINCT - - 56 ) + - 86 + - 68
----
-210

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - MAX ( DISTINCT - - 56 ) + - 86 + - 68
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT 86 * ( + 28 ) + - COUNT( * ) * + 64 + - 33 AS col1
----
2311

skipif mysql # not compatible
query I rowsort label-2532
SELECT 86 * ( + 28 ) + - COUNT ( * ) * + 64 + - 33 AS col1
----
2311

query I rowsort
SELECT DISTINCT 49 * + 32
----
1568

query I rowsort
SELECT DISTINCT 89 * + 68 AS col2
----
6052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT + 37 + NULLIF ( ( + 20 ), + CAST( - - 21 AS SIGNED ) + 39 + NULLIF ( 47, - CASE - 65 WHEN 49 THEN + 2 END ) / 38 - - 46 )
----
57

skipif mysql # not compatible
query I rowsort label-2535
SELECT + 37 + NULLIF ( ( + 20 ), + CAST ( - - 21 AS INTEGER ) + 39 + NULLIF ( 47, - CASE - 65 WHEN 49 THEN + 2 END ) / 38 - - 46 )
----
57

query I rowsort
SELECT ALL 7 * 61 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT + 98 - + - MIN( ALL - 18 )
----
80

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + 98 - + - MIN ( ALL - 18 )
----
80

query I rowsort
SELECT - 64 * + 25 AS col2
----
-1600

query I rowsort
SELECT ALL + 94 * + - 38 AS col2
----
-3572

query II rowsort
SELECT 87 AS col1, + 52 col0
----
87
52

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

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - 21 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL + ( + 28 ) * 68 * CAST( NULL AS SIGNED ) + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + ( + 28 ) * 68 * CAST ( NULL AS INTEGER ) + + 40 AS col0
----
NULL

query I rowsort
SELECT 12 * - + 80
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT 18 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT 18 / - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT COUNT( DISTINCT + 70 ) * + COALESCE ( - + 23, COUNT( * ) + 42, + 19 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2545
SELECT COUNT ( DISTINCT + 70 ) * + COALESCE ( - + 23, COUNT ( * ) + 42, + 19 ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2546
SELECT - 88, - 65 / - - 68 * - 51 * - - 69 * CASE 23 WHEN + 90 + + 30 * - + ( + AVG ( ALL + 83 ) ) THEN NULL WHEN 79 THEN - + 7 + + ( + - CAST( NULL AS SIGNED ) ) END * - 30 AS col0
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-2546
SELECT - 88, - 65 / - - 68 * - 51 * - - 69 * CASE 23 WHEN + 90 + + 30 * - + ( + AVG ( ALL + 83 ) ) THEN NULL WHEN 79 THEN - + 7 + + ( + - CAST ( NULL AS INTEGER ) ) END * - 30 AS col0
----
-88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT 43 DIV + - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT 43 / + - 92 AS col1
----
0

query I rowsort
SELECT DISTINCT + ( - + 24 ) + 43 AS col2
----
19

query I rowsort
SELECT 53 * - 49 AS col2
----
-2597

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL + 31 + + - 98 + + - COUNT( * ) + - + 13 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL + 31 + + - 98 + + - COUNT ( * ) + - + 13 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT COUNT( DISTINCT 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT COUNT ( DISTINCT 77 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT - MAX( ALL 62 ) + - NULLIF ( - + 89, + 4 ) + - 50
----
-23

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - MAX ( ALL 62 ) + - NULLIF ( - + 89, + 4 ) + - 50
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2553
SELECT DISTINCT - 89 + + + MAX( ALL + CAST( NULL AS SIGNED ) ) + + - 87 + - 4 * + - 59 - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - 89 + + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + - 87 + - 4 * + - 59 - 49 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT DISTINCT - NULLIF ( + 40, COUNT( * ) ) + + 42 * - 20, 5 AS col0
----
-880
5

skipif mysql # not compatible
query II rowsort label-2555
SELECT DISTINCT - NULLIF ( + 40, COUNT ( * ) ) + + 42 * - 20, 5 AS col0
----
-880
5

query II rowsort
SELECT - + ( + ( 32 ) ), - 55 AS col0
----
-32
-55

query I rowsort
SELECT ALL + 37 + 71 AS col0
----
108

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

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

query I rowsort
SELECT ALL + - 91 * - + 8 AS col1
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT - 94 DIV - 11 + + 97 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-2560
SELECT - 94 / - 11 + + 97 AS col2
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-2561
SELECT - 92, + 39 DIV - 93 * - 65 AS col0
----
-92
0

skipif mysql # not compatible
query II rowsort label-2561
SELECT - 92, + 39 / - 93 * - 65 AS col0
----
-92
0

query II rowsort
SELECT DISTINCT + ( + 80 ) * 57 AS col2, + 4 AS col2
----
4560
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL + 20 * + CASE + + COALESCE ( - COUNT( * ), - NULLIF ( COUNT( + 86 ), 14 ) * - - 0 - + 20 - - 43, + COUNT( * ), COUNT( ALL + 94 ) / - 42 ) WHEN - 51 + 37 * + 85 + + 85 THEN - ( 7 ) - - - 42 * + + 65 END - AVG ( - 9 ) + - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + 20 * + CASE + + COALESCE ( - COUNT ( * ), - NULLIF ( COUNT ( + 86 ), 14 ) * - - 0 - + 20 - - 43, + COUNT ( * ), COUNT ( ALL + 94 ) / - 42 ) WHEN - 51 + 37 * + 85 + + 85 THEN - ( 7 ) - - - 42 * + + 65 END - AVG ( - 9 ) + - 93 AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT DISTINCT + 77 * 21 + - - NULLIF ( - ( - 75 ), - 9 * - 52 ) - - CAST( NULL AS SIGNED ) + ( + 56 ) - - 58 * + 71 * - 88 * 79 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + 77 * 21 + - - NULLIF ( - ( - 75 ), - 9 * - 52 ) - - CAST ( NULL AS INTEGER ) + ( + 56 ) - - 58 * + 71 * - 88 * 79 col0
----
NULL

query II rowsort
SELECT DISTINCT + + 14 AS col1, + ( - - 62 ) AS col0
----
14
62

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT + COALESCE ( - 39, + ( - - 4 ) - - COUNT( * ) ) * - + COUNT( * ) * 66 - 48 - 57 + - - 26 * + 59 + NULLIF ( - 49, + - 96 * - - 10 + - + ( - 95 ) ) col2
----
3954

skipif mysql # not compatible
query I rowsort label-2569
SELECT + COALESCE ( - 39, + ( - - 4 ) - - COUNT ( * ) ) * - + COUNT ( * ) * 66 - 48 - 57 + - - 26 * + 59 + NULLIF ( - 49, + - 96 * - - 10 + - + ( - 95 ) ) col2
----
3954

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL COALESCE ( - COUNT( * ), - 62 ) * COUNT( DISTINCT - + 77 )
----
-1

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL COALESCE ( - COUNT ( * ), - 62 ) * COUNT ( DISTINCT - + 77 )
----
-1

query I rowsort
SELECT ALL 18 * - 22 AS col2
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + NULLIF ( + 30, 94 / + + 55 * - 4 + SUM( + - 22 ) )
----
30

skipif mysql # not compatible
query I rowsort label-2573
SELECT + NULLIF ( + 30, 94 / + + 55 * - 4 + SUM ( + - 22 ) )
----
30

query I rowsort
SELECT - 63 * - 1 - CASE - 64 WHEN - 13 THEN - 0 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT + CAST( - 51 AS SIGNED ) * 14
----
-714

skipif mysql # not compatible
query I rowsort label-2575
SELECT + CAST ( - 51 AS INTEGER ) * 14
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + 52 + COUNT( * ) * + - 53
----
-1

skipif mysql # not compatible
query I rowsort label-2576
SELECT + 52 + COUNT ( * ) * + - 53
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT + 12 * + 33 + 85 + - + COUNT( * )
----
480

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + 12 * + 33 + 85 + - + COUNT ( * )
----
480

query II rowsort
SELECT ALL - NULLIF ( - 7, - ( - 16 ) ) * 97 + + + 88 AS col2, + 85 * + 86 * + + 23
----
767
168130

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - CASE 32 WHEN + 30 THEN COUNT( * ) * - + COALESCE ( ( - 40 ), + 32 ) * + - 61 WHEN 63 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT - CASE 32 WHEN + 30 THEN COUNT ( * ) * - + COALESCE ( ( - 40 ), + 32 ) * + - 61 WHEN 63 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 95 col2
----
95

query I rowsort
SELECT ALL + 36 + + 62 + - 73 + - 54 * 86
----
-4619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL CAST( NULL AS SIGNED ) + + 32 + - - 53 * 19 * - 34 * + - 56 / + NULLIF ( - MIN( 25 ), - MIN( DISTINCT + + ( - 79 ) ) / - 89 * + 38 + 60 * - + 56 ) * - CASE - ( - + 97 ) WHEN 46 - - + 3 * - 16 * - 14 THEN NULL ELSE - 66 * NULLIF ( - - COALESCE ( + CASE 56 WHEN - 38 + - 78 / AVG ( 28 ) THEN NULL ELSE + 75 - MAX( 58 ) END, - COUNT( * ) ), 2 * + 67 ) + 10 END + COUNT( * ) * + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL CAST ( NULL AS INTEGER ) + + 32 + - - 53 * 19 * - 34 * + - 56 / + NULLIF ( - MIN ( 25 ), - MIN ( DISTINCT + + ( - 79 ) ) / - 89 * + 38 + 60 * - + 56 ) * - CASE - ( - + 97 ) WHEN 46 - - + 3 * - 16 * - 14 THEN NULL ELSE - 66 * NULLIF ( - - COALESCE ( + CASE 56 WHEN - 38 + - 78 / AVG ( 28 ) THEN NULL ELSE + 75 - MAX ( 58 ) END, - COUNT ( * ) ), 2 * + 67 ) + 10 END + COUNT ( * ) * + 28 AS col1
----
NULL

query I rowsort
SELECT + 74 + + - ( + 34 ) col2
----
40

query I rowsort
SELECT ALL + 64 + - + 60
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT ALL + 63 AS col2, COUNT( * ) * - - 99
----
63
99

skipif mysql # not compatible
query II rowsort label-2586
SELECT ALL + 63 AS col2, COUNT ( * ) * - - 99
----
63
99

query I rowsort
SELECT + - 85 * - 25
----
2125

query II rowsort
SELECT + + 27 * + - 80 + + + 77 * - 89 AS col0, 92
----
-9013
92

query I rowsort
SELECT - + 21 * - - 56 col2
----
-1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT ALL + 16 * - COUNT( * ) DIV + + NULLIF ( 53, - - ( + 31 ) ) DIV + 4
----
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + 16 * - COUNT ( * ) / + + NULLIF ( 53, - - ( + 31 ) ) / + 4
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT - 12 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT - 12 / - 56
----
0

query I rowsort
SELECT - + 72 + - - 62 AS col0
----
-10

query I rowsort
SELECT ALL - - 68 - + 70 AS col1
----
-2

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

query I rowsort
SELECT DISTINCT - 97 * - - COALESCE ( + 44, + 27 - 78 )
----
-4268

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL SUM( DISTINCT + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL SUM ( DISTINCT + 33 ) AS col2
----
33

query II rowsort
SELECT DISTINCT + 42 * - 79 AS col2, + 6 AS col0
----
-3318
6

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

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

query I rowsort
SELECT - - 3 - + + 89
----
-86

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

query II rowsort
SELECT ALL + - 11, + 84 AS col1
----
-11
84

query I rowsort
SELECT - 55 * + + 43
----
-2365

query I rowsort
SELECT - 95 + - 85 AS col0
----
-180

query I rowsort
SELECT DISTINCT - + 21 * - 12 - - 82 * - 51
----
-3930

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT ALL - 94 * + ( + 50 ) * + 44 + - - 51 DIV 39
----
-206799

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - 94 * + ( + 50 ) * + 44 + - - 51 / 39
----
-206799

query II rowsort
SELECT - 88 + + - 21 AS col0, 89 * + + 53
----
-109
4717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT + 82 + - - 45 DIV MIN( ALL + + 54 ) + ( 72 ) * + + COUNT( * ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-2609
SELECT + 82 + - - 45 / MIN ( ALL + + 54 ) + ( 72 ) * + + COUNT ( * ) AS col2
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL + 35 * 5 * 60 + CAST( - 87 AS SIGNED ) + + 24 + - - 34 + - 44
----
10427

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + 35 * 5 * 60 + CAST ( - 87 AS INTEGER ) + + 24 + - - 34 + - 44
----
10427

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT - 28 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 28 / - 83
----
0

query I rowsort
SELECT ALL - 85 * + 88 + + 98
----
-7382

query II rowsort
SELECT - 46 * - + 26, 73 AS col0
----
1196
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2614
SELECT ALL - 24 * + + 1 + COALESCE ( + + COUNT( * ), - ( - COUNT( * ) ) * - 22 DIV - ( 18 ), - 99 * + COALESCE ( + ( + COUNT( * ) ), + + COUNT( * ) * - 17 + + 53 * - 1 + 3, 26 ) * + - COALESCE ( + CASE + + ( + + 61 ) WHEN COUNT( * ) + 30 THEN + 80 ELSE + 72 END, 62 ) * ( COALESCE ( + 42, 90 - + 62 ) ) ) * 9
----
-15

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - 24 * + + 1 + COALESCE ( + + COUNT ( * ), - ( - COUNT ( * ) ) * - 22 / - ( 18 ), - 99 * + COALESCE ( + ( + COUNT ( * ) ), + + COUNT ( * ) * - 17 + + 53 * - 1 + 3, 26 ) * + - COALESCE ( + CASE + + ( + + 61 ) WHEN COUNT ( * ) + 30 THEN + 80 ELSE + 72 END, 62 ) * ( COALESCE ( + 42, 90 - + 62 ) ) ) * 9
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT + COUNT( * ) * - - 87 + - ( + 73 )
----
14

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + COUNT ( * ) * - - 87 + - ( + 73 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL 28 * + 14 + + 37 + COUNT( * ) AS col1
----
430

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL 28 * + 14 + + 37 + COUNT ( * ) AS col1
----
430

query I rowsort
SELECT ALL - 8 * - - 34 + + - 56 AS col2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT + CASE 83 WHEN 66 THEN NULL ELSE - - 16 END * - 54 * - - COUNT( * )
----
-864

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT + CASE 83 WHEN 66 THEN NULL ELSE - - 16 END * - 54 * - - COUNT ( * )
----
-864

query I rowsort
SELECT ALL 86 + - - AVG ( CASE + 90 WHEN + + 11 THEN - + NULLIF ( 9, + - 0 ) + - 26 WHEN ( - - 27 ) THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT COUNT( DISTINCT + + 22 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT COUNT ( DISTINCT + + 22 ) col1
----
1

query I rowsort
SELECT - 40 * - - 77
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL COUNT( + 49 ) - + 3 * 42
----
-125

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL COUNT ( + 49 ) - + 3 * 42
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT + CAST( NULL AS SIGNED ) / ( - - 17 ) + + 69 + - 11 + + - 70 * + 19 * - - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( - - 17 ) + + 69 + - 11 + + - 70 * + 19 * - - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT + COUNT( - + 57 ) - ( 10 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + COUNT ( - + 57 ) - ( 10 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + COUNT( - 58 ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-2625
SELECT + COUNT ( - 58 ) + + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT - + 90 - - 31 - + COUNT( * ) + 28 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT - + 90 - - 31 - + COUNT ( * ) + 28 AS col1
----
-32

query I rowsort
SELECT + 17 * - ( ( + 73 ) )
----
-1241

query I rowsort
SELECT DISTINCT COALESCE ( + 48, 66 ) AS col2
----
48

query I rowsort
SELECT ALL 96 * - 91 AS col0
----
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2630
SELECT 62 / + + CAST( NULL AS SIGNED ), - NULLIF ( - 94, - + 81 ) + - 30 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-2630
SELECT 62 / + + CAST ( NULL AS INTEGER ), - NULLIF ( - 94, - + 81 ) + - 30 AS col0
----
NULL
64

query I rowsort
SELECT - 83 * - 19 AS col2
----
1577

query I rowsort
SELECT ALL COALESCE ( - 84, 14 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - NULLIF ( + CASE - - 22 WHEN - - 54 THEN + 72 + + 7 * - - COUNT( * ) ELSE + + ( - 13 ) END, COUNT( * ) + + + 76 + + + 51 * 34 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - NULLIF ( + CASE - - 22 WHEN - - 54 THEN + 72 + + 7 * - - COUNT ( * ) ELSE + + ( - 13 ) END, COUNT ( * ) + + + 76 + + + 51 * 34 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL - MAX( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - MAX ( 93 )
----
-93

query I rowsort
SELECT 12 * - 79
----
-948

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

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL - 62 + + COUNT ( * ) col1
----
-61

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

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

query I rowsort
SELECT DISTINCT - 81 + 56
----
-25

query I rowsort
SELECT 2 * - + 58
----
-116

query I rowsort
SELECT 37 * + + 25 AS col1
----
925

query I rowsort
SELECT ALL - CASE + 67 WHEN 0 THEN NULL ELSE - - 62 END + 34 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT - MIN( ALL 68 ) * + COUNT( * ) + - 91 - + 10
----
-169

skipif mysql # not compatible
query I rowsort label-2642
SELECT - MIN ( ALL 68 ) * + COUNT ( * ) + - 91 - + 10
----
-169

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

query I rowsort
SELECT 27 - - 2 AS col1
----
29

query I rowsort
SELECT ALL - 63 + + 49
----
-14

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

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

query II rowsort
SELECT 27 AS col1, - 44 * + 70 + + 63 - - NULLIF ( + 86, - 89 ) AS col2
----
27
-2931

query I rowsort
SELECT ALL 87 + - 71 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT ALL - COUNT( + - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
0

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

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

query I rowsort
SELECT 27 + 24 + 14 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2652
SELECT + 17 * - COUNT( * ) - 8 * 10 * + - 92 + - 81 * + 66 + - + 61, - 74 col1, + 97 DIV + 1 - - - 30 * SUM( - 42 ) AS col1
----
1936
-74
1357

skipif mysql # not compatible
query III rowsort label-2652
SELECT + 17 * - COUNT ( * ) - 8 * 10 * + - 92 + - 81 * + 66 + - + 61, - 74 col1, + 97 / + 1 - - - 30 * SUM ( - 42 ) AS col1
----
1936
-74
1357

query I rowsort
SELECT 36 + + 3 AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2654
SELECT MIN( - - 9 ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT MIN ( - - 9 ) / + 37
----
0

query I rowsort
SELECT 43 * + + 20 col2
----
860

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT 82 * 64 DIV - 53 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2656
SELECT 82 * 64 / - 53 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT ALL - COALESCE ( + 90, 92 - + COALESCE ( 28, - ( - 52 ) DIV - + COUNT( * ) ) * + + 96 + - ( 18 ) + + 28 ) * + - 80
----
7200

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - COALESCE ( + 90, 92 - + COALESCE ( 28, - ( - 52 ) / - + COUNT ( * ) ) * + + 96 + - ( 18 ) + + 28 ) * + - 80
----
7200

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT ALL COUNT( * ) AS col0, 41 + + COUNT( * )
----
1
42

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL COUNT ( * ) AS col0, 41 + + COUNT ( * )
----
1
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL - 64 * - 64 * COUNT( * ) - 80 * + - 35 AS col2
----
6896

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - 64 * - 64 * COUNT ( * ) - 80 * + - 35 AS col2
----
6896

query I rowsort
SELECT - 74 * + 84 AS col0
----
-6216

query I rowsort
SELECT ALL - - 72 * - 67 AS col1
----
-4824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2663
SELECT - - CAST( NULL AS SIGNED ), ( + NULLIF ( + COUNT( * ), + 50 ) ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2663
SELECT - - CAST ( NULL AS INTEGER ), ( + NULLIF ( + COUNT ( * ), + 50 ) ) col0
----
NULL
1

query I rowsort
SELECT - - 51 col0
----
51

query I rowsort
SELECT - ( + 20 ) * + + 35 * 50 + 27 AS col1
----
-34973

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT COUNT( * ) * 3 - 64
----
-61

skipif mysql # not compatible
query I rowsort label-2666
SELECT COUNT ( * ) * 3 - 64
----
-61

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

query I rowsort
SELECT 8 + + 64
----
72

query I rowsort
SELECT DISTINCT + 98 + 63
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT COUNT( * ) + 69 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT COUNT ( * ) + 69 * COUNT ( * ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT 0 DIV - 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT 0 / - 3 AS col1
----
0

query II rowsort
SELECT ALL 71 + + 88 - - 78 + - 43, - 84 col0
----
194
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT 92 + 12 + - - 68 * - COUNT( * ) + - COUNT( * ) * - 1 * + 18 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2673
SELECT 92 + 12 + - - 68 * - COUNT ( * ) + - COUNT ( * ) * - 1 * + 18 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2674
SELECT ALL + 47 * - + 21 + - CASE + 79 WHEN + 88 + - ( COUNT( * ) ) - + 24 - 59 * - 22 * - - 9 / + 32 + - - CAST( NULL AS SIGNED ) + - + ( COUNT( * ) ) THEN NULL WHEN CAST( NULL AS DECIMAL ) - - + 29 + - 97 - 88 * + 54 THEN 37 + - CAST( 72 AS SIGNED ) ELSE + 58 END AS col0
----
-1045

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL + 47 * - + 21 + - CASE + 79 WHEN + 88 + - ( COUNT ( * ) ) - + 24 - 59 * - 22 * - - 9 / + 32 + - - CAST ( NULL AS INTEGER ) + - + ( COUNT ( * ) ) THEN NULL WHEN CAST ( NULL AS REAL ) - - + 29 + - 97 - 88 * + 54 THEN 37 + - CAST ( 72 AS INTEGER ) ELSE + 58 END AS col0
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT CASE - 32 WHEN 90 - + + 72 * + + 21 THEN + 59 * + + CASE - 32 WHEN + - 65 THEN NULL WHEN + 21 * - + 61 / + 68 + - 54 + - ( + 12 ) THEN - 49 / - 54 + - ( MAX( 5 ) ) WHEN + COUNT( * ) / + - 49 THEN NULL END WHEN + 81 + + 44 THEN ( 87 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT CASE - 32 WHEN 90 - + + 72 * + + 21 THEN + 59 * + + CASE - 32 WHEN + - 65 THEN NULL WHEN + 21 * - + 61 / + 68 + - 54 + - ( + 12 ) THEN - 49 / - 54 + - ( MAX ( 5 ) ) WHEN + COUNT ( * ) / + - 49 THEN NULL END WHEN + 81 + + 44 THEN ( 87 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT 47 * ( + + COUNT( * ) ) * - 48
----
-2256

skipif mysql # not compatible
query I rowsort label-2676
SELECT 47 * ( + + COUNT ( * ) ) * - 48
----
-2256

query I rowsort
SELECT 18 + - 77 + + 42 + - 50 + + - 15
----
-82

query I rowsort
SELECT ( + 68 ) * - 38 AS col2
----
-2584

query I rowsort
SELECT - 89 * - - ( + 27 ) + + 21 AS col0
----
-2382

query I rowsort
SELECT ALL - 70 * 69 + + 89
----
-4741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2681
SELECT COUNT( * ) DIV - + COUNT( * ) + + + SUM( 52 )
----
51

skipif mysql # not compatible
query I rowsort label-2681
SELECT COUNT ( * ) / - + COUNT ( * ) + + + SUM ( 52 )
----
51

query I rowsort
SELECT ALL 20 * 37 + - - 92 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL + COUNT( + 82 )
----
1

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + COUNT ( + 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT COUNT( + 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2684
SELECT COUNT ( + 33 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT - 69 + - 18 + + 61 + + - CAST( + - 94 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2685
SELECT - 69 + - 18 + + 61 + + - CAST ( + - 94 AS INTEGER ) AS col2
----
68

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

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - CAST ( NULL AS INTEGER ) * 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT COUNT( + ( 6 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2687
SELECT COUNT ( + ( 6 ) )
----
1

query I rowsort
SELECT + 50 * - 80 + - 91
----
-4091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT + CASE + 12 WHEN - CAST( NULL AS SIGNED ) THEN + 7 + + 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CASE + 12 WHEN - CAST ( NULL AS INTEGER ) THEN + 7 + + 76 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2691
SELECT DISTINCT + 60 * + - CAST( NULL AS DECIMAL ) - - SUM( ALL 74 ) + + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + 60 * + - CAST ( NULL AS REAL ) - - SUM ( ALL 74 ) + + - 26
----
NULL

query I rowsort
SELECT ALL + 96 * 37
----
3552

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT DISTINCT + 9 * - + 92 AS col2, 9 * MIN( ALL - - 21 ) + 90 AS col0
----
-828
279

skipif mysql # not compatible
query II rowsort label-2693
SELECT DISTINCT + 9 * - + 92 AS col2, 9 * MIN ( ALL - - 21 ) + 90 AS col0
----
-828
279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT + COUNT( * ) - - 35 + COALESCE ( 14, + + 33 - - CASE 77 WHEN + 78 * + 90 - + 51 - - ( + - 58 ) + - 31 * + 94 THEN NULL ELSE - - 40 - 78 + - - 76 END * + COALESCE ( + 84, 79 ) ) + 15 * - 89 + - 11 AS col2
----
-1296

skipif mysql # not compatible
query I rowsort label-2696
SELECT + COUNT ( * ) - - 35 + COALESCE ( 14, + + 33 - - CASE 77 WHEN + 78 * + 90 - + 51 - - ( + - 58 ) + - 31 * + 94 THEN NULL ELSE - - 40 - 78 + - - 76 END * + COALESCE ( + 84, 79 ) ) + 15 * - 89 + - 11 AS col2
----
-1296

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT - - 21 DIV 53 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-2698
SELECT - - 21 / 53 * - 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT - + 46 * - + 33 * - + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-1518

skipif mysql # not compatible
query I rowsort label-2699
SELECT - + 46 * - + 33 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL + MIN( ALL 41 ) + + ( CASE + NULLIF ( - - 11, - 63 ) WHEN - ( + 94 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL + MIN ( ALL 41 ) + + ( CASE + NULLIF ( - - 11, - 63 ) WHEN - ( + 94 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2701
SELECT DISTINCT + 33 + - 10 AS col2, 43 + - 3 DIV + NULLIF ( + COUNT( 15 ), - 35 * + 64 * 81 ) + 57 * - - 37 * ( - 33 )
----
23
-69557

skipif mysql # not compatible
query II rowsort label-2701
SELECT DISTINCT + 33 + - 10 AS col2, 43 + - 3 / + NULLIF ( + COUNT ( 15 ), - 35 * + 64 * 81 ) + 57 * - - 37 * ( - 33 )
----
23
-69557

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT 14 + + NULLIF ( 64, + + COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT 14 + + NULLIF ( 64, + + COUNT ( * ) )
----
78

query I rowsort
SELECT DISTINCT + 53 + - ( - 35 )
----
88

query I rowsort
SELECT ALL - - 2 + 88 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2705
SELECT - ( + 98 ) + - 96 DIV 87 * 46 AS col2, + ( COUNT( * ) ) * + CAST( NULL AS DECIMAL ) col0
----
-144
NULL

skipif mysql # not compatible
query II rowsort label-2705
SELECT - ( + 98 ) + - 96 / 87 * 46 AS col2, + ( COUNT ( * ) ) * + CAST ( NULL AS REAL ) col0
----
-144
NULL

query I rowsort
SELECT - - 20 * - 55 AS col2
----
-1100

query I rowsort
SELECT + - 14 + + ( 93 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT + + 52 + - 42 DIV + + 93
----
52

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + + 52 + - 42 / + + 93
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + 59 + + + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 59 + + + COUNT ( * ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2710
SELECT ALL NULLIF ( + - 26, - COALESCE ( - CAST( NULL AS SIGNED ), 19, - 59, - - 62 ) ) + - 9 * - 0
----
-26

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL NULLIF ( + - 26, - COALESCE ( - CAST ( NULL AS INTEGER ), 19, - 59, - - 62 ) ) + - 9 * - 0
----
-26

query I rowsort
SELECT + 47 * - - 41 * - + 93 AS col1
----
-179211

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT ( - 85 ) - - 25 + + 31 + 64 * + - 28 - 75 DIV + 35
----
-1823

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT ( - 85 ) - - 25 + + 31 + 64 * + - 28 - 75 / + 35
----
-1823

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT + 82 + - - 49 DIV - 28
----
81

skipif mysql # not compatible
query I rowsort label-2714
SELECT + 82 + - - 49 / - 28
----
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2716
SELECT DISTINCT + 69, COALESCE ( - + COALESCE ( - 7, + COUNT( * ), + - CAST( + - NULLIF ( - 10, - 39 ) AS SIGNED ) * - + COUNT( * ) * + 96 ), - 3 * - 97 DIV + + ( + 52 ) + 27, - 39 - + - ( - + 45 ) ) + + COALESCE ( - - CAST( + + 77 AS SIGNED ), - 89 * - 33 ) * ( + - 39 ) AS col1
----
69
-2996

skipif mysql # not compatible
query II rowsort label-2716
SELECT DISTINCT + 69, COALESCE ( - + COALESCE ( - 7, + COUNT ( * ), + - CAST ( + - NULLIF ( - 10, - 39 ) AS INTEGER ) * - + COUNT ( * ) * + 96 ), - 3 * - 97 / + + ( + 52 ) + 27, - 39 - + - ( - + 45 ) ) + + COALESCE ( - - CAST ( + + 77 AS INTEGER ), - 89 * - 33 ) * ( + - 39 ) AS col1
----
69
-2996

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + 63 + - - COUNT( * ) * - + 64 + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-2719
SELECT + 63 + - - COUNT ( * ) * - + 64 + - 84
----
-85

query I rowsort
SELECT ALL 34 * - 7 col2
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + NULLIF ( + + 88, - CASE - NULLIF ( + ( + 20 ), - 8 ) WHEN - 73 / - + 76 + 51 * + 17 + 44 * 0 THEN - 6 WHEN - 69 THEN NULL END * - 27 * - 44 * + 67 + + 43 + - - 39 + + COUNT( * ) + - - ( 7 ) )
----
88

skipif mysql # not compatible
query I rowsort label-2721
SELECT + NULLIF ( + + 88, - CASE - NULLIF ( + ( + 20 ), - 8 ) WHEN - 73 / - + 76 + 51 * + 17 + 44 * 0 THEN - 6 WHEN - 69 THEN NULL END * - 27 * - 44 * + 67 + + 43 + - - 39 + + COUNT ( * ) + - - ( 7 ) )
----
88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT + COUNT( * ) * + NULLIF ( - 48, + - 23 ) DIV + 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2723
SELECT + COUNT ( * ) * + NULLIF ( - 48, + - 23 ) / + 14 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT + COUNT( * ) - + SUM( - - 24 ), + CASE WHEN NULL IS NOT NULL THEN 85 ELSE + SUM( 98 ) END + 10 + 61 AS col2
----
-23
169

skipif mysql # not compatible
query II rowsort label-2724
SELECT + COUNT ( * ) - + SUM ( - - 24 ), + CASE WHEN NULL IS NOT NULL THEN 85 ELSE + SUM ( 98 ) END + 10 + 61 AS col2
----
-23
169

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2726
SELECT + COUNT( * ) * 56 DIV + 53 + - 35 - - + CAST( + 88 AS SIGNED ) * + 78
----
6830

skipif mysql # not compatible
query I rowsort label-2726
SELECT + COUNT ( * ) * 56 / + 53 + - 35 - - + CAST ( + 88 AS INTEGER ) * + 78
----
6830

query II rowsort
SELECT + - 89 AS col2, + ( 69 ) - 50
----
-89
19

query I rowsort
SELECT + - 67 + 33 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - COALESCE ( - 18, 24 ) * COALESCE ( - ( + - 15 ), + - 31 ) - SUM( ALL - + 66 )
----
336

skipif mysql # not compatible
query I rowsort label-2729
SELECT - COALESCE ( - 18, 24 ) * COALESCE ( - ( + - 15 ), + - 31 ) - SUM ( ALL - + 66 )
----
336

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT - - ( - 11 ) - - 15 + 90 * + COUNT( - 43 )
----
94

skipif mysql # not compatible
query I rowsort label-2731
SELECT - - ( - 11 ) - - 15 + 90 * + COUNT ( - 43 )
----
94

query I rowsort
SELECT - 92 * - 48
----
4416

query I rowsort
SELECT - 33 * + 53 + + 78 AS col1
----
-1671

query II rowsort
SELECT ALL 90 AS col0, - 50 AS col2
----
90
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + - 90 * + - 70 * + 24 + + - COUNT( * ) AS col2
----
151199

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + - 90 * + - 70 * + 24 + + - COUNT ( * ) AS col2
----
151199

query I rowsort
SELECT - 50 + - 34 + + 14 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT - NULLIF ( - 2, - MAX( + 76 ) )
----
2

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - NULLIF ( - 2, - MAX ( + 76 ) )
----
2

query I rowsort
SELECT + + 65 * - + 65 * + + 10 + - 25 AS col2
----
-42275

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

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

query I rowsort
SELECT + + 49 + 26 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT + COUNT( * ) + + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT + COUNT ( * ) + + 64 AS col2
----
65

query I rowsort
SELECT - + 10 + 6 * + - 74 col0
----
-454

query I rowsort
SELECT - 47 - 4 + - 80 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL CASE COUNT( * ) WHEN - 29 / - COUNT( * ) + - 57 THEN - + ( + - 52 ) + - 13 WHEN - 5 THEN - NULLIF ( 75, + - 58 + + 45 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL CASE COUNT ( * ) WHEN - 29 / - COUNT ( * ) + - 57 THEN - + ( + - 52 ) + - 13 WHEN - 5 THEN - NULLIF ( 75, + - 58 + + 45 ) END AS col0
----
NULL

query I rowsort
SELECT 27 + COALESCE ( 57, - ( + - 93 ) )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT 31 DIV - 68 * + 46 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT 31 / - 68 * + 46 * - 71
----
0

query II rowsort
SELECT ALL 70 * + 43, 28 AS col1
----
3010
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2748
SELECT 17 + + COUNT( * ) AS col1, - 83 + - 5 col2
----
18
-88

skipif mysql # not compatible
query II rowsort label-2748
SELECT 17 + + COUNT ( * ) AS col1, - 83 + - 5 col2
----
18
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT COUNT( DISTINCT + + 24 ) - - ( - 71 )
----
-70

skipif mysql # not compatible
query I rowsort label-2749
SELECT COUNT ( DISTINCT + + 24 ) - - ( - 71 )
----
-70

query I rowsort
SELECT 27 + - + 9 + - 43 AS col1
----
-25

query I rowsort
SELECT 62 - + + 33 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT ALL - CAST( 73 AS SIGNED ) - + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - CAST ( 73 AS INTEGER ) - + COUNT ( * ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT 30 AS col2, - 80 * - - ( - 60 ) - - 62 + - + ( + - ( - NULLIF ( + + 19, - - 28 * - COUNT( * ) ) ) )
----
30
4843

skipif mysql # not compatible
query II rowsort label-2753
SELECT 30 AS col2, - 80 * - - ( - 60 ) - - 62 + - + ( + - ( - NULLIF ( + + 19, - - 28 * - COUNT ( * ) ) ) )
----
30
4843

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

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

query I rowsort
SELECT DISTINCT - 14 col1
----
-14

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL - COALESCE ( + COUNT( * ), - 98 - + + ( + 28 ), - 93 * + - 66 + + 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL - COALESCE ( + COUNT ( * ), - 98 - + + ( + 28 ), - 93 * + - 66 + + 7 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT ALL 56 * - - CAST( NULL AS SIGNED ) * 51 AS col0
----
NULL

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

query I rowsort
SELECT + + 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT 3 + COUNT( - 6 ) + + 45 + + 51 * - 18 * + - 59 + - + 81 + - + CASE 1 WHEN + ( + 95 ) THEN COUNT( * ) + + 92 WHEN - 68 + - COALESCE ( + - COALESCE ( 28, - - 34 * - ( + 87 ) + 98, + - 84 * ( 41 ) ), - 24 ) / 91 THEN NULL END * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT 3 + COUNT ( - 6 ) + + 45 + + 51 * - 18 * + - 59 + - + 81 + - + CASE 1 WHEN + ( + 95 ) THEN COUNT ( * ) + + 92 WHEN - 68 + - COALESCE ( + - COALESCE ( 28, - - 34 * - ( + 87 ) + 98, + - 84 * ( 41 ) ), - 24 ) / 91 THEN NULL END * - 57
----
NULL

query I rowsort
SELECT ALL - 27 * 87 AS col1
----
-2349

query I rowsort
SELECT + 98 * 12 + - - 0
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + COUNT( DISTINCT - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2765
SELECT + COUNT ( DISTINCT - 12 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2766
SELECT ALL 51 + - 65 + - - CASE - COUNT( * ) WHEN - 53 DIV + CAST( - 52 AS SIGNED ) THEN NULL WHEN + MAX( DISTINCT - 27 ) THEN 76 + - + COUNT( * ) + 33 DIV - 55 ELSE 94 END + 48 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL 51 + - 65 + - - CASE - COUNT ( * ) WHEN - 53 / + CAST ( - 52 AS INTEGER ) THEN NULL WHEN + MAX ( DISTINCT - 27 ) THEN 76 + - + COUNT ( * ) + 33 / - 55 ELSE 94 END + 48 AS col2
----
128

query I rowsort
SELECT ALL 95 + + ( - - 70 )
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2768
SELECT ALL - 44 DIV + + 77 + - COUNT( * ) + 78 AS col2, - 80 * - 82
----
77
6560

skipif mysql # not compatible
query II rowsort label-2768
SELECT ALL - 44 / + + 77 + - COUNT ( * ) + 78 AS col2, - 80 * - 82
----
77
6560

onlyif mysql # aggregate syntax: 
query II rowsort label-2769
SELECT + 43 + - 26 AS col1, - COUNT( * ) + - 10 - 17 + + - 96 + + + CASE + - 72 WHEN + - 76 THEN NULL ELSE ( + 32 ) END * + COUNT( * ) * 85 AS col0
----
17
2596

skipif mysql # not compatible
query II rowsort label-2769
SELECT + 43 + - 26 AS col1, - COUNT ( * ) + - 10 - 17 + + - 96 + + + CASE + - 72 WHEN + - 76 THEN NULL ELSE ( + 32 ) END * + COUNT ( * ) * 85 AS col0
----
17
2596

query I rowsort
SELECT DISTINCT - 33 + 93 * - 75 + + - 16 - 45
----
-7069

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

query II rowsort
SELECT + - ( - + 72 ) AS col0, 48 AS col0
----
72
48

query I rowsort
SELECT + 0 - + 6
----
-6

query II rowsort
SELECT ALL - 96, + 27 AS col0
----
-96
27

query I rowsort
SELECT + - 58 * + 20 - - 26 AS col2
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + ( CASE - 32 WHEN - MAX( + 28 ) + ( - - 18 ) THEN + 57 * - 25 WHEN 57 + 65 THEN + - 27 + - COUNT( * ) - - COUNT( * ) * - 97 END ) * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT + ( CASE - 32 WHEN - MAX ( + 28 ) + ( - - 18 ) THEN + 57 * - 25 WHEN 57 + 65 THEN + - 27 + - COUNT ( * ) - - COUNT ( * ) * - 97 END ) * - 32 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 83 ) AS col0
----
83

query I rowsort
SELECT ALL - - NULLIF ( 57, + + 36 + + 97 ) - - 32 + - 28
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2779
SELECT - CAST( + 36 AS SIGNED ) * + + 35 - - 44 AS col0, ( - 4 )
----
-1216
-4

skipif mysql # not compatible
query II rowsort label-2779
SELECT - CAST ( + 36 AS INTEGER ) * + + 35 - - 44 AS col0, ( - 4 )
----
-1216
-4

query I rowsort
SELECT ALL 12 * 42
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT COALESCE ( - 11, - 14, + ( + 56 ) * - 40 - COUNT( * ) ) - 91 + - 41
----
-143

skipif mysql # not compatible
query I rowsort label-2781
SELECT COALESCE ( - 11, - 14, + ( + 56 ) * - 40 - COUNT ( * ) ) - 91 + - 41
----
-143

onlyif mysql # DIV for integer division: 
query II rowsort label-2782
SELECT ALL 64 - 74 AS col0, 78 + 22 DIV + ( 39 ) col0
----
-10
78

skipif mysql # not compatible
query II rowsort label-2782
SELECT ALL 64 - 74 AS col0, 78 + 22 / + ( 39 ) col0
----
-10
78

query II rowsort
SELECT 46 * - - 89, 97 AS col1
----
4094
97

query I rowsort
SELECT ( 34 ) + 94
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT 65 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT 65 / 71
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT 36 * 32 * + - 46 AS col2, CASE + - 3 WHEN - + COUNT( * ) THEN + COUNT( * ) ELSE NULL END AS col1
----
-52992
NULL

skipif mysql # not compatible
query II rowsort label-2786
SELECT 36 * 32 * + - 46 AS col2, CASE + - 3 WHEN - + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END AS col1
----
-52992
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT ALL - 73 DIV MAX( DISTINCT + 16 )
----
-4

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - 73 / MAX ( DISTINCT + 16 )
----
-4

query II rowsort
SELECT DISTINCT - 55 * + 5 AS col2, + 29 * - ( 55 ) + 81
----
-275
-1514

query I rowsort
SELECT 62 * + 72
----
4464

query I rowsort
SELECT 52 - 84 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL COUNT( * ) * + 53 + ( - - 51 ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL COUNT ( * ) * + 53 + ( - - 51 ) AS col1
----
104

query I rowsort
SELECT 61 + - COALESCE ( + 90, + 2 + - 13 )
----
-29

query I rowsort
SELECT DISTINCT 12 * 16 * 84 + + 98 AS col2
----
16226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2794
SELECT + 54 DIV - COUNT( * ) - + 16 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2794
SELECT + 54 / - COUNT ( * ) - + 16 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT DISTINCT - 37 + + COUNT( * ), + 97 * 84 AS col0
----
-36
8148

skipif mysql # not compatible
query II rowsort label-2795
SELECT DISTINCT - 37 + + COUNT ( * ), + 97 * 84 AS col0
----
-36
8148

query I rowsort
SELECT ALL + 15 * + - 4 AS col1
----
-60

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

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

query I rowsort
SELECT ALL - - NULLIF ( ( + 57 ), 46 + + - 97 ) AS col0
----
57

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

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

query I rowsort
SELECT - 7 * - 79 * - 52
----
-28756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2801
SELECT + - SUM( - + 64 ) AS col1, - CAST( + 99 AS SIGNED ) AS col2
----
64
-99

skipif mysql # not compatible
query II rowsort label-2801
SELECT + - SUM ( - + 64 ) AS col1, - CAST ( + 99 AS INTEGER ) AS col2
----
64
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT + 21 * - COUNT( * ) * 90 col1
----
-1890

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + 21 * - COUNT ( * ) * 90 col1
----
-1890

query I rowsort
SELECT ALL - - 65 col2
----
65

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

query II rowsort
SELECT ALL 55 col2, + 43 AS col1
----
55
43

query II rowsort
SELECT DISTINCT 7 AS col1, - 70 AS col0
----
7
-70

query I rowsort
SELECT + 88 + 84 col0
----
172

query I rowsort
SELECT + 53 * - 37 * 64 * + 34
----
-4267136

query I rowsort
SELECT + 64 + - 38 AS col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT + COALESCE ( - 80, + 67 DIV 68, + 11 ) + + + ( - 90 ) col1
----
-170

skipif mysql # not compatible
query I rowsort label-2810
SELECT + COALESCE ( - 80, + 67 / 68, + 11 ) + + + ( - 90 ) col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - 5 + MIN( DISTINCT + 30 )
----
25

skipif mysql # not compatible
query I rowsort label-2811
SELECT - 5 + MIN ( DISTINCT + 30 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT + 17 * + 43 * - COALESCE ( - - ( 97 ), - + CAST( NULL AS SIGNED ) * 80, - + 33 * 32 ) AS col0
----
-70907

skipif mysql # not compatible
query I rowsort label-2812
SELECT + 17 * + 43 * - COALESCE ( - - ( 97 ), - + CAST ( NULL AS INTEGER ) * 80, - + 33 * 32 ) AS col0
----
-70907

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + 34 + + COUNT( * ) * 55 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2813
SELECT + 34 + + COUNT ( * ) * 55 AS col2
----
89

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

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

query I rowsort
SELECT + 87 + - - 33
----
120

query I rowsort
SELECT DISTINCT 10 * + + 77 * - ( 62 ) AS col1
----
-47740

query I rowsort
SELECT - CASE - 23 WHEN + 49 THEN NULL WHEN + 28 * + 75 THEN 55 END + 15 col0
----
NULL

query I rowsort
SELECT + 27 * - + 78 * + 40
----
-84240

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT 15 DIV + 47 + + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-2819
SELECT 15 / + 47 + + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL 10 * + 91 + 39 + COUNT( * )
----
950

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL 10 * + 91 + 39 + COUNT ( * )
----
950

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

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

query I rowsort
SELECT ALL 18 * + 26 + + 18 AS col1
----
486

query I rowsort
SELECT - 16 + - - 94 + 64
----
142

query I rowsort
SELECT - 69 * - 88
----
6072

query I rowsort
SELECT - 38 + 62 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT DISTINCT + 71 * + COUNT( * ) * + 6 * + 73 * - CAST( NULL AS SIGNED ) - - 87 / 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT + 71 * + COUNT ( * ) * + 6 * + 73 * - CAST ( NULL AS INTEGER ) - - 87 / 24
----
NULL

query II rowsort
SELECT 45, 53 AS col2
----
45
53

query I rowsort
SELECT - + 86 * 97 - 33 + 19 AS col0
----
-8356

query I rowsort
SELECT ALL - - ( - 85 ) * - 35 * - ( - 41 ) AS col1
----
121975

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

query II rowsort
SELECT ALL + 2 AS col1, 92 col0
----
2
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT + - CASE 79 WHEN - 69 / + 1 + - 28 THEN NULL WHEN 70 THEN + 39 - - + COUNT( - 51 ) * + + 39 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT + - CASE 79 WHEN - 69 / + 1 + - 28 THEN NULL WHEN 70 THEN + 39 - - + COUNT ( - 51 ) * + + 39 END col1
----
NULL

query I rowsort
SELECT ALL + 99 * - + 84 - + ( - - 66 ) * - - 17
----
-9438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT - CAST( NULL AS SIGNED ) + 47 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT - CAST ( NULL AS INTEGER ) + 47 * 29 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( 45, + 78 )
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2836
SELECT ALL + 94 AS col1, - 51 DIV 92 AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-2836
SELECT ALL + 94 AS col1, - 51 / 92 AS col2
----
94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - 47 - - - 74 - - 49 * + COUNT( * ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 47 - - - 74 - - 49 * + COUNT ( * ) col0
----
-72

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

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

query I rowsort
SELECT - 65 * - 85 AS col2
----
5525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2840
SELECT 91 * - ( + 36 ) - - - 87 DIV - COUNT( * )
----
-3189

skipif mysql # not compatible
query I rowsort label-2840
SELECT 91 * - ( + 36 ) - - - 87 / - COUNT ( * )
----
-3189

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT - COALESCE ( + + ( 71 ), - + 95, - + COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-2841
SELECT - COALESCE ( + + ( 71 ), - + 95, - + COUNT ( * ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT + 47 + + + 20 + + 4 * 17 * - - COALESCE ( + 64, - 20 + ( COUNT( * ) ) + + - 31 DIV + 29 * + - 6 DIV 60, MAX( DISTINCT + 43 ) + + 6 )
----
4419

skipif mysql # not compatible
query I rowsort label-2842
SELECT + 47 + + + 20 + + 4 * 17 * - - COALESCE ( + 64, - 20 + ( COUNT ( * ) ) + + - 31 / + 29 * + - 6 / 60, MAX ( DISTINCT + 43 ) + + 6 )
----
4419

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

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

query I rowsort
SELECT ALL 11 * + + 0
----
0

query I rowsort
SELECT DISTINCT 70 * - ( + 45 ) AS col0
----
-3150

query I rowsort
SELECT DISTINCT - ( + 40 ) + - + 54
----
-94

query I rowsort
SELECT ALL 5 + + 0 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT - 41 IN ( 59 * 93 * COALESCE ( + - 13, - + 83 / + CAST( NULL AS SIGNED ) ) + + + 36 + + 0 + 15 + 61 + - CAST( NULL AS SIGNED ) * - + 15 * + + 93 - + - 30, + 76 + MIN( 6 ) - + 11 + 41 ) THEN NULL WHEN 99 NOT IN ( - CAST( NULL AS SIGNED ) / + ( 47 ) + - 11 * - - NULLIF ( - 90, 95 ) + - 22 ) THEN NULL ELSE 31 END - - 22 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2848
SELECT + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT - 41 IN ( 59 * 93 * COALESCE ( + - 13, - + 83 / + CAST ( NULL AS INTEGER ) ) + + + 36 + + 0 + 15 + 61 + - CAST ( NULL AS INTEGER ) * - + 15 * + + 93 - + - 30, + 76 + MIN ( 6 ) - + 11 + 41 ) THEN NULL WHEN 99 NOT IN ( - CAST ( NULL AS INTEGER ) / + ( 47 ) + - 11 * - - NULLIF ( - 90, 95 ) + - 22 ) THEN NULL ELSE 31 END - - 22 AS col0
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + CASE - - 73 WHEN - 25 THEN 16 END / - + COUNT( ALL + + 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT + CASE - - 73 WHEN - 25 THEN 16 END / - + COUNT ( ALL + + 64 ) AS col1
----
NULL

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

query I rowsort
SELECT ALL 69 + + 67 + - + 79 - - - 98 * + + 13 * + 20 + + + 34
----
-25389

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

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

query I rowsort
SELECT DISTINCT 4 + - ( + 1 ) AS col1
----
3

query I rowsort
SELECT + 33 * + + 37
----
1221

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

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

query I rowsort
SELECT DISTINCT 56 * - 86 AS col1
----
-4816

query I rowsort
SELECT DISTINCT 68 + 69 * - 76
----
-5176

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT + COUNT( * ) * - 56 + ( + ( - 16 ) ) + + 29 * - 22 AS col2, 57 * + ( + 44 ) AS col1
----
-710
2508

skipif mysql # not compatible
query II rowsort label-2859
SELECT + COUNT ( * ) * - 56 + ( + ( - 16 ) ) + + 29 * - 22 AS col2, 57 * + ( + 44 ) AS col1
----
-710
2508

query I rowsort
SELECT + + 82 + - 16
----
66

query I rowsort
SELECT - + 76 * - 53 AS col2
----
4028

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT COUNT( * ) * 94 + COUNT( * ) + - - 12 * - 33
----
-301

skipif mysql # not compatible
query I rowsort label-2862
SELECT COUNT ( * ) * 94 + COUNT ( * ) + - - 12 * - 33
----
-301

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT MAX( - ( + 14 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2863
SELECT MAX ( - ( + 14 ) ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT + 89 DIV - ( + 18 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2864
SELECT + 89 / - ( + 18 ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT + 7 DIV 6 * ( - 40 ) - - 34
----
-6

skipif mysql # not compatible
query I rowsort label-2865
SELECT + 7 / 6 * ( - 40 ) - - 34
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - MIN( + 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - MIN ( + 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + MAX( ALL - - 41 ) * + - 61
----
-2501

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + MAX ( ALL - - 41 ) * + - 61
----
-2501

query I rowsort
SELECT 29 + 4
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT 60 DIV 59 + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-2869
SELECT 60 / 59 + - 40
----
-39

query II rowsort
SELECT + 32 * - + 19 + 25 * - 42, 28 AS col2
----
-1658
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT ALL - + COALESCE ( COUNT( * ), COALESCE ( - NULLIF ( 57, - + CAST( NULL AS SIGNED ) ), + 18, + 4 ) ) * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - + COALESCE ( COUNT ( * ), COALESCE ( - NULLIF ( 57, - + CAST ( NULL AS INTEGER ) ), + 18, + 4 ) ) * - + COUNT ( * )
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2874
SELECT + + MIN( 11 ), 84 AS col1
----
11
84

skipif mysql # not compatible
query II rowsort label-2874
SELECT + + MIN ( 11 ), 84 AS col1
----
11
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2875
SELECT 66 - + CAST( NULL AS SIGNED ) + + CASE - - COUNT( * ) WHEN + + NULLIF ( - - 14, + 25 ) * + ( + SUM( DISTINCT - 29 ) ) THEN + SUM( DISTINCT - 41 ) WHEN - 48 * + 67 THEN - 47 * ( - - 84 ) * 58 WHEN - COUNT( * ) * 86 * CASE SUM( ALL + 63 ) WHEN + - 56 * - NULLIF ( - COUNT( * ), - 81 / - COUNT( * ) * + 28 ) THEN 23 WHEN - 46 * - 73 + + - MIN( - 52 ) THEN + 9 * - COUNT( * ) + + 7 * CAST( NULL AS SIGNED ) ELSE NULL END / + 41 THEN + 19 + - 53 END + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT 66 - + CAST ( NULL AS INTEGER ) + + CASE - - COUNT ( * ) WHEN + + NULLIF ( - - 14, + 25 ) * + ( + SUM ( DISTINCT - 29 ) ) THEN + SUM ( DISTINCT - 41 ) WHEN - 48 * + 67 THEN - 47 * ( - - 84 ) * 58 WHEN - COUNT ( * ) * 86 * CASE SUM ( ALL + 63 ) WHEN + - 56 * - NULLIF ( - COUNT ( * ), - 81 / - COUNT ( * ) * + 28 ) THEN 23 WHEN - 46 * - 73 + + - MIN ( - 52 ) THEN + 9 * - COUNT ( * ) + + 7 * CAST ( NULL AS INTEGER ) ELSE NULL END / + 41 THEN + 19 + - 53 END + 40 AS col0
----
NULL

query I rowsort
SELECT ALL + 87 * - + 96 AS col2
----
-8352

query I rowsort
SELECT 37 * 94 AS col2
----
3478

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT - COUNT( * ) + 51 col0
----
50

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT - COUNT ( * ) + 51 col0
----
50

query I rowsort
SELECT ALL + 51 + + 25 AS col0
----
76

query I rowsort
SELECT 62 * 8
----
496

onlyif mysql # DIV for integer division: 
query II rowsort label-2882
SELECT 65 + + ( + 33 ) + - 37 * + 78 * - - 22, 42 + - + 49 DIV + 59 AS col1
----
-63394
42

skipif mysql # not compatible
query II rowsort label-2882
SELECT 65 + + ( + 33 ) + - 37 * + 78 * - - 22, 42 + - + 49 / + 59 AS col1
----
-63394
42

query I rowsort
SELECT DISTINCT 99 + + COALESCE ( + 81, 3, + 23 - + + 29 * + + ( + 55 ) ) * + 84 AS col2
----
6903

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

query I rowsort
SELECT 61 + - - 62
----
123

query I rowsort
SELECT ALL + 24 * + 67
----
1608

query I rowsort
SELECT DISTINCT + 34 + + 57 * + 71 * + 97
----
392593

query I rowsort
SELECT DISTINCT - 79 - 39 * - 7
----
194

query II rowsort
SELECT ALL 98 col1, 50
----
98
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT CASE WHEN NULL IS NOT NULL THEN 44 ELSE + ( COALESCE ( - 5, - 23, + 61 * + 64 + - + 39 * - MAX( - NULLIF ( 69, + CAST( NULL AS SIGNED ) ) ) + - + ( COUNT( * ) ), COUNT( * ) ) ) END + - 13 + + 56 + - - 83 + + 26 + 59 * SUM( + - 52 ) * - 31 + - CASE 43 WHEN - - CAST( 4 AS SIGNED ) + - - SUM( DISTINCT - 44 ) THEN NULL ELSE - - CASE + + 98 WHEN - - 2 / + 4 THEN NULLIF ( + 50, - CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) - 38 ) * - 73 + 67 ELSE NULL END / 63 END * 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT CASE WHEN NULL IS NOT NULL THEN 44 ELSE + ( COALESCE ( - 5, - 23, + 61 * + 64 + - + 39 * - MAX ( - NULLIF ( 69, + CAST ( NULL AS INTEGER ) ) ) + - + ( COUNT ( * ) ), COUNT ( * ) ) ) END + - 13 + + 56 + - - 83 + + 26 + 59 * SUM ( + - 52 ) * - 31 + - CASE 43 WHEN - - CAST ( 4 AS INTEGER ) + - - SUM ( DISTINCT - 44 ) THEN NULL ELSE - - CASE + + 98 WHEN - - 2 / + 4 THEN NULLIF ( + 50, - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) - 38 ) * - 73 + 67 ELSE NULL END / 63 END * 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + COUNT( DISTINCT + 83 ) + + 79 * - 77 AS col2
----
-6082

skipif mysql # not compatible
query I rowsort label-2891
SELECT + COUNT ( DISTINCT + 83 ) + + 79 * - 77 AS col2
----
-6082

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2892
SELECT ALL + 86 - + - MIN( - - 28 ) col0, + 17 DIV + 27
----
114
0

skipif mysql # not compatible
query II rowsort label-2892
SELECT ALL + 86 - + - MIN ( - - 28 ) col0, + 17 / + 27
----
114
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT + NULLIF ( + 56, - 59 + + - CASE - - COUNT( * ) WHEN NULLIF ( + 12, - + MIN( - + 21 ) + - + 54 * - - CAST( 86 AS SIGNED ) + + COALESCE ( + 51, - CASE - + 74 WHEN - + 59 + - - 10 THEN NULL ELSE + + 11 * - 7 END, - 28 ) ) THEN - 98 * - 28 WHEN - - 77 THEN COUNT( + - 36 ) ELSE + ( + 67 ) / + 79 + 92 END * - 28 - + 18 ) * + ( + 22 ) col2
----
1232

skipif mysql # not compatible
query I rowsort label-2893
SELECT + NULLIF ( + 56, - 59 + + - CASE - - COUNT ( * ) WHEN NULLIF ( + 12, - + MIN ( - + 21 ) + - + 54 * - - CAST ( 86 AS INTEGER ) + + COALESCE ( + 51, - CASE - + 74 WHEN - + 59 + - - 10 THEN NULL ELSE + + 11 * - 7 END, - 28 ) ) THEN - 98 * - 28 WHEN - - 77 THEN COUNT ( + - 36 ) ELSE + ( + 67 ) / + 79 + 92 END * - 28 - + 18 ) * + ( + 22 ) col2
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT 96 * - + 77 + 28 + + + 46 + COUNT( * ) + + 90
----
-7227

skipif mysql # not compatible
query I rowsort label-2894
SELECT 96 * - + 77 + 28 + + + 46 + COUNT ( * ) + + 90
----
-7227

query I rowsort
SELECT + 37 + - 56 + + 59
----
40

query II rowsort
SELECT 26 + + 8 + + 37 col2, ( - 0 ) AS col2
----
71
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2897
SELECT ALL 90 - COUNT( DISTINCT CAST( + 49 AS DECIMAL ) ) col1
----
89

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL 90 - COUNT ( DISTINCT CAST ( + 49 AS REAL ) ) col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2898
SELECT ALL NULLIF ( - 22, + 75 - + 26 + - CAST( + - SUM( - 66 ) AS DECIMAL ) * 3 + + CAST( + + 45 AS DECIMAL ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL NULLIF ( - 22, + 75 - + 26 + - CAST ( + - SUM ( - 66 ) AS REAL ) * 3 + + CAST ( + + 45 AS REAL ) ) AS col1
----
-22

query I rowsort
SELECT ALL 17 * + + 15 AS col2
----
255

query I rowsort
SELECT ALL - ( ( 99 ) ) AS col0
----
-99

query I rowsort
SELECT 44 * 64
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT - COUNT( - + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-2902
SELECT - COUNT ( - + 70 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT ALL + COUNT( * ) + 83 + - 56 DIV 12
----
80

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL + COUNT ( * ) + 83 + - 56 / 12
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2905
SELECT + 37 + - MAX( + 82 ) AS col2, 40 * - CAST( + + 22 AS SIGNED )
----
-45
-880

skipif mysql # not compatible
query II rowsort label-2905
SELECT + 37 + - MAX ( + 82 ) AS col2, 40 * - CAST ( + + 22 AS INTEGER )
----
-45
-880

query II rowsort
SELECT 79 AS col1, 9
----
79
9

query I rowsort
SELECT + 10 * 51 + 20 * + 10 + - ( 60 ) AS col1
----
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT ALL + 82 + - - ( + CAST( - 76 AS SIGNED ) ) + 80 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + 82 + - - ( + CAST ( - 76 AS INTEGER ) ) + 80 AS col1
----
86

query I rowsort
SELECT 56 * + - 53 AS col2
----
-2968

query I rowsort
SELECT 62 + - + NULLIF ( 48, + 1 * 78 * + 10 ) AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT DISTINCT - 10 + + CAST( NULL AS SIGNED ) + + 16 + - - 61 + + 10 / + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - 10 + + CAST ( NULL AS INTEGER ) + + 16 + - - 61 + + 10 / + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - COALESCE ( MIN( 90 ), - 99 )
----
-90

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - COALESCE ( MIN ( 90 ), - 99 )
----
-90

query I rowsort
SELECT 46 * + 76 AS col1
----
3496

query I rowsort
SELECT 97 + 65 * - 53 - - 31
----
-3317

query II rowsort
SELECT 8 AS col2, COALESCE ( - 48, + + ( 42 ) * COALESCE ( 21, + 92, - - 35, 54 ) * 49 )
----
8
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT ALL - MAX( - 30 ) - + + ( - CAST( NULL AS SIGNED ) ) + - 16 * - 69 / - 50 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - MAX ( - 30 ) - + + ( - CAST ( NULL AS INTEGER ) ) + - 16 * - 69 / - 50 * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2917
SELECT ALL 41, MAX( DISTINCT - - ( + 16 ) ) AS col2
----
41
16

skipif mysql # not compatible
query II rowsort label-2917
SELECT ALL 41, MAX ( DISTINCT - - ( + 16 ) ) AS col2
----
41
16

query II rowsort
SELECT - 97, 34 col1
----
-97
34

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

query II rowsort
SELECT + 88 AS col0, ( + 69 ) AS col1
----
88
69

query I rowsort
SELECT 10 * + 12
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT - COUNT( * ) * - + ( + COUNT( ALL - - 98 ) ) * - 98 - 21 + NULLIF ( - 99, - ( - 21 ) ) + - NULLIF ( 57, - NULLIF ( + - 39, + 46 / - 53 ) ) * - 18
----
808

skipif mysql # not compatible
query I rowsort label-2922
SELECT - COUNT ( * ) * - + ( + COUNT ( ALL - - 98 ) ) * - 98 - 21 + NULLIF ( - 99, - ( - 21 ) ) + - NULLIF ( 57, - NULLIF ( + - 39, + 46 / - 53 ) ) * - 18
----
808

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL SUM( + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL SUM ( + 24 ) AS col2
----
24

query II rowsort
SELECT DISTINCT - 92, 27 AS col2
----
-92
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2925
SELECT ALL - CASE + 87 WHEN - 90 / + + 66 + + 89 / 20 * - 98 + COUNT( * ) THEN + 67 - - MIN( + - NULLIF ( 42, 34 * 11 ) ) * + 73 + + + COUNT( DISTINCT - 64 ) + - + COALESCE ( + 33, - 46 ) * 97 WHEN - COALESCE ( - + COUNT( * ), 99 ) * 86 * + - 80 * - 88 / CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - CASE + 87 WHEN - 90 / + + 66 + + 89 / 20 * - 98 + COUNT ( * ) THEN + 67 - - MIN ( + - NULLIF ( 42, 34 * 11 ) ) * + 73 + + + COUNT ( DISTINCT - 64 ) + - + COALESCE ( + 33, - 46 ) * 97 WHEN - COALESCE ( - + COUNT ( * ), 99 ) * 86 * + - 80 * - 88 / CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2926
SELECT + + 49 * + CASE - + ( - COUNT( * ) ) WHEN + CAST( NULL AS SIGNED ) * + 72 * 37 + - 38 + COUNT( * ) - + + 1 DIV - - ( 59 ) * - NULLIF ( + 19, + 34 * + 28 DIV - 97 ) THEN NULL ELSE + COALESCE ( - - 28, 46 * + 46, - CAST( NULL AS SIGNED ) DIV - CAST( NULL AS SIGNED ) * COUNT( * ) DIV 68 ) END + - COUNT( * )
----
1371

skipif mysql # not compatible
query I rowsort label-2926
SELECT + + 49 * + CASE - + ( - COUNT ( * ) ) WHEN + CAST ( NULL AS INTEGER ) * + 72 * 37 + - 38 + COUNT ( * ) - + + 1 / - - ( 59 ) * - NULLIF ( + 19, + 34 * + 28 / - 97 ) THEN NULL ELSE + COALESCE ( - - 28, 46 * + 46, - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * COUNT ( * ) / 68 ) END + - COUNT ( * )
----
1371

query I rowsort
SELECT + - 75 * + 94 + - 36 AS col2
----
-7086

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT + ( - 37 ) * - 75 * + - 31 + NULLIF ( 60, + COUNT( * ) * 89 ) * - - MAX( DISTINCT + - 78 ) * - 5 + - 3
----
-62628

skipif mysql # not compatible
query I rowsort label-2928
SELECT + ( - 37 ) * - 75 * + - 31 + NULLIF ( 60, + COUNT ( * ) * 89 ) * - - MAX ( DISTINCT + - 78 ) * - 5 + - 3
----
-62628

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT MAX( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2929
SELECT MAX ( 86 ) AS col0
----
86

query I rowsort
SELECT + NULLIF ( - - 25, - + 22 * - 14 ) * 94
----
2350

query I rowsort
SELECT DISTINCT + + 73 * - 90 + - + 17 AS col2
----
-6587

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT + 70 + - COALESCE ( - - ( 35 ), + COUNT( * ) - + - 38 - - 1 * MAX( - + 23 ) ) + - - COALESCE ( - 88, NULLIF ( + SUM( DISTINCT + - CASE - + 39 WHEN + 67 + - + 25 THEN NULL WHEN + ( - 27 ) THEN + 47 END ), - 11 * 57 * NULLIF ( - 52, ( + ( + + 19 ) ) ) * + - CASE 45 WHEN + 77 THEN 78 END - + ( - COUNT( * ) ) + 61 ) ) / - - CASE - + COALESCE ( 12, ( 23 ) * - 80 ) WHEN - 79 THEN NULL WHEN 88 / - 72 THEN + 17 ELSE NULL END * MIN( ALL + 48 + - 23 ) + - MAX( 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 70 + - COALESCE ( - - ( 35 ), + COUNT ( * ) - + - 38 - - 1 * MAX ( - + 23 ) ) + - - COALESCE ( - 88, NULLIF ( + SUM ( DISTINCT + - CASE - + 39 WHEN + 67 + - + 25 THEN NULL WHEN + ( - 27 ) THEN + 47 END ), - 11 * 57 * NULLIF ( - 52, ( + ( + + 19 ) ) ) * + - CASE 45 WHEN + 77 THEN 78 END - + ( - COUNT ( * ) ) + 61 ) ) / - - CASE - + COALESCE ( 12, ( 23 ) * - 80 ) WHEN - 79 THEN NULL WHEN 88 / - 72 THEN + 17 ELSE NULL END * MIN ( ALL + 48 + - 23 ) + - MAX ( 69 )
----
NULL

query II rowsort
SELECT ALL 82 * 98 AS col0, 7
----
8036
7

query I rowsort
SELECT DISTINCT 94 * - 6 AS col2
----
-564

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT MAX( DISTINCT + + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2936
SELECT MAX ( DISTINCT + + 51 ) AS col0
----
51

query II rowsort
SELECT + 16 - - - 11, 8 AS col2
----
5
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT DISTINCT COUNT( * ) * 98 - + 16 AS col2, + ( + 98 ) + + 98
----
82
196

skipif mysql # not compatible
query II rowsort label-2938
SELECT DISTINCT COUNT ( * ) * 98 - + 16 AS col2, + ( + 98 ) + + 98
----
82
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + SUM( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + SUM ( 37 ) AS col2
----
37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT + 57 + ( - CAST( + 39 AS SIGNED ) ) col2
----
18

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 57 + ( - CAST ( + 39 AS INTEGER ) ) col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT + 74 * - 79 * CASE COALESCE ( - + COUNT( * ), + CASE - 75 WHEN - + COUNT( * ) THEN + + 54 END ) WHEN - - 69 THEN + 17 WHEN - 21 - - 16 / + - 83 THEN NULL WHEN - 85 THEN NULL ELSE + CASE + 73 WHEN 89 * - COUNT( * ) + 41 * - 34 + + MIN( - 23 ) THEN + + 92 * + COUNT( * ) WHEN - - 57 + - 9 THEN NULL ELSE NULL END + + COUNT( * ) * + 53 END * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT + 74 * - 79 * CASE COALESCE ( - + COUNT ( * ), + CASE - 75 WHEN - + COUNT ( * ) THEN + + 54 END ) WHEN - - 69 THEN + 17 WHEN - 21 - - 16 / + - 83 THEN NULL WHEN - 85 THEN NULL ELSE + CASE + 73 WHEN 89 * - COUNT ( * ) + 41 * - 34 + + MIN ( - 23 ) THEN + + 92 * + COUNT ( * ) WHEN - - 57 + - 9 THEN NULL ELSE NULL END + + COUNT ( * ) * + 53 END * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2943
SELECT ALL 80 DIV - - 54 AS col0, 12 * 73 col0
----
1
876

skipif mysql # not compatible
query II rowsort label-2943
SELECT ALL 80 / - - 54 AS col0, 12 * 73 col0
----
1
876

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + MIN( + 34 ) + 96
----
130

skipif mysql # not compatible
query I rowsort label-2944
SELECT + MIN ( + 34 ) + 96
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2945
SELECT + CAST( NULL AS SIGNED ) * 79, MAX( DISTINCT - 39 ) AS col0
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-2945
SELECT + CAST ( NULL AS INTEGER ) * 79, MAX ( DISTINCT - 39 ) AS col0
----
NULL
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT + CAST( + 12 AS SIGNED ) + + + 69
----
81

skipif mysql # not compatible
query I rowsort label-2946
SELECT + CAST ( + 12 AS INTEGER ) + + + 69
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT ( - 7 ) - - COUNT( DISTINCT - 61 )
----
-6

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT ( - 7 ) - - COUNT ( DISTINCT - 61 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + ( + 96 ) + + 61 + + - COALESCE ( - - 15, + 88 * - 92 + COUNT( * ), + - ( - 77 ) ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-2948
SELECT + ( + 96 ) + + 61 + + - COALESCE ( - - 15, + 88 * - 92 + COUNT ( * ), + - ( - 77 ) ) AS col1
----
142

query I rowsort
SELECT - NULLIF ( 83, - 87 )
----
-83

query I rowsort
SELECT - 94 + - 12
----
-106

query I rowsort
SELECT + - 20 * ( - 80 ) AS col0
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT ALL - + 84 * 46 - - 62 DIV + + 13
----
-3860

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - + 84 * 46 - - 62 / + + 13
----
-3860

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + + 3 + 8 * - - 19 * COUNT( * ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-2953
SELECT + + 3 + 8 * - - 19 * COUNT ( * ) AS col0
----
155

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

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

query I rowsort
SELECT ALL + 64 * 60
----
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT DISTINCT NULLIF ( + 22, CAST( 90 AS SIGNED ) ) + - CAST( - ( + 56 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT NULLIF ( + 22, CAST ( 90 AS INTEGER ) ) + - CAST ( - ( + 56 ) AS INTEGER ) AS col1
----
78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2958
SELECT - 35 * - + COUNT( * ), - 80 * COALESCE ( + 92, + 33 + + CASE + 85 WHEN + 9 + NULLIF ( + - CAST( NULL AS SIGNED ), 95 ) * - + COUNT( * ) THEN 8 + - ( - ( - + SUM( - 71 ) ) ) WHEN 44 * - 33 THEN - MIN( 75 ) ELSE 69 END ) + + CAST( NULL AS SIGNED ) AS col2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-2958
SELECT - 35 * - + COUNT ( * ), - 80 * COALESCE ( + 92, + 33 + + CASE + 85 WHEN + 9 + NULLIF ( + - CAST ( NULL AS INTEGER ), 95 ) * - + COUNT ( * ) THEN 8 + - ( - ( - + SUM ( - 71 ) ) ) WHEN 44 * - 33 THEN - MIN ( 75 ) ELSE 69 END ) + + CAST ( NULL AS INTEGER ) AS col2
----
35
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2959
SELECT - - 87 + + 0 AS col1, - COUNT( * ) + - 57 + - + 71 * 59 + MAX( ALL + + 65 ) DIV 75 + + NULLIF ( + MAX( ALL - ( + - 73 ) ), + ( + - 57 ) + + 3 ) AS col1
----
87
-4174

skipif mysql # not compatible
query II rowsort label-2959
SELECT - - 87 + + 0 AS col1, - COUNT ( * ) + - 57 + - + 71 * 59 + MAX ( ALL + + 65 ) / 75 + + NULLIF ( + MAX ( ALL - ( + - 73 ) ), + ( + - 57 ) + + 3 ) AS col1
----
87
-4174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT ALL - 82 DIV + 56 * - - COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - 82 / + 56 * - - COUNT ( * ) / + COUNT ( * )
----
-1

query I rowsort
SELECT - + 12 + + - 67 AS col2
----
-79

query I rowsort
SELECT - - 27 * - 75 AS col0
----
-2025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2963
SELECT ALL - COUNT( * ) DIV + 4, - COUNT( * ) DIV + - ( + 86 )
----
0
0

skipif mysql # not compatible
query II rowsort label-2963
SELECT ALL - COUNT ( * ) / + 4, - COUNT ( * ) / + - ( + 86 )
----
0
0

query I rowsort
SELECT + + 17 * - 33 + - 53 + 22 * + 25 * 16 AS col2
----
8186

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL - 88 * - COUNT( * ) + 51 + - + 68 + 96 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - 88 * - COUNT ( * ) + 51 + - + 68 + 96 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + SUM( DISTINCT + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2966
SELECT + SUM ( DISTINCT + 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT ALL COUNT( * ) DIV - ( - - 57 ) + + + COUNT( * ) * 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) / - ( - - 57 ) + + + COUNT ( * ) * 60 AS col1
----
60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT CAST( - 68 AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-2969
SELECT CAST ( - 68 AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT - COUNT( * ) DIV - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT - COUNT ( * ) / - 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL + 92 / + - CASE + COALESCE ( 40, + 34 + - 88 * - - 0, + - 42 ) WHEN + COUNT( * ) + + 77 + CAST( + 86 AS SIGNED ) + - 75 * + COUNT( * ) THEN - + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + 92 / + - CASE + COALESCE ( 40, + 34 + - 88 * - - 0, + - 42 ) WHEN + COUNT ( * ) + + 77 + CAST ( + 86 AS INTEGER ) + - 75 * + COUNT ( * ) THEN - + 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT - MIN( DISTINCT + 37 ) * - - 51 AS col1
----
-1887

skipif mysql # not compatible
query I rowsort label-2972
SELECT - MIN ( DISTINCT + 37 ) * - - 51 AS col1
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT 65 * - 8 + 49 + COUNT( * ) * - 14 AS col1
----
-485

skipif mysql # not compatible
query I rowsort label-2973
SELECT 65 * - 8 + 49 + COUNT ( * ) * - 14 AS col1
----
-485

onlyif mysql # aggregate syntax: 
query II rowsort label-2974
SELECT + COUNT( * ) AS col2, + 97 * 70 * - + 54
----
1
-366660

skipif mysql # not compatible
query II rowsort label-2974
SELECT + COUNT ( * ) AS col2, + 97 * 70 * - + 54
----
1
-366660

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT ALL ( - CAST( - ( COUNT( * ) ) AS SIGNED ) ) * - - ( COUNT( * ) ) - - 28
----
29

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL ( - CAST ( - ( COUNT ( * ) ) AS INTEGER ) ) * - - ( COUNT ( * ) ) - - 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ( + + SUM( - 86 ) ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-2977
SELECT ( + + SUM ( - 86 ) ) col2
----
-86

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

query I rowsort
SELECT + 81 * + + ( + NULLIF ( 4, + 40 ) )
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL 92 * - - MAX( 33 ) * - 62
----
-188232

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL 92 * - - MAX ( 33 ) * - 62
----
-188232

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT + MIN( 71 ) + 30 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-2981
SELECT + MIN ( 71 ) + 30 AS col0
----
101

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

query I rowsort
SELECT ALL 39 * 85
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - COUNT( * ) - + - 17
----
16

skipif mysql # not compatible
query I rowsort label-2984
SELECT - COUNT ( * ) - + - 17
----
16

query I rowsort
SELECT + 51 * 63 AS col2
----
3213

query I rowsort
SELECT + 38 * + 87 - + 13 - - 0
----
3293

query II rowsort
SELECT ALL 94 AS col1, 52
----
94
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT - CASE ( - 59 ) WHEN - 61 - + COUNT( * ) THEN 64 * - 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT - CASE ( - 59 ) WHEN - 61 - + COUNT ( * ) THEN 64 * - 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + COUNT( * ) + - + 44 * - - 26
----
-1143

skipif mysql # not compatible
query I rowsort label-2989
SELECT + COUNT ( * ) + - + 44 * - - 26
----
-1143

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT 81 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-2990
SELECT 81 / 49
----
1

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

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

query II rowsort
SELECT ALL - 71, + 5 + - + ( + 72 ) AS col1
----
-71
-67

query II rowsort
SELECT 25 AS col1, 44
----
25
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT ALL 84 * + 53 * - 14 * - COUNT( * ) AS col0, NULLIF ( 63, 79 ) AS col2
----
62328
63

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL 84 * + 53 * - 14 * - COUNT ( * ) AS col0, NULLIF ( 63, 79 ) AS col2
----
62328
63

query I rowsort
SELECT - 53 * + 27 AS col0
----
-1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2996
SELECT ALL 23 + 7 * 54 AS col0, 56 - + + CAST( + MIN( + 55 ) AS SIGNED ) + + + 49
----
401
50

skipif mysql # not compatible
query II rowsort label-2996
SELECT ALL 23 + 7 * 54 AS col0, 56 - + + CAST ( + MIN ( + 55 ) AS INTEGER ) + + + 49
----
401
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT SUM( COALESCE ( - 42, + - 84 * + 86 + - 7 ) ) * - 85
----
3570

skipif mysql # not compatible
query I rowsort label-2997
SELECT SUM ( COALESCE ( - 42, + - 84 * + 86 + - 7 ) ) * - 85
----
3570

query II rowsort
SELECT - + 37, 91 AS col2
----
-37
91

query I rowsort
SELECT + 89 * 47 + + 80 + - + 98 + 69
----
4234

query II rowsort
SELECT - 85, 40 AS col1
----
-85
40

query I rowsort
SELECT ALL + CASE - ( + 75 ) WHEN + 98 THEN + + ( + + 89 ) WHEN + 28 THEN - + 49 END * - - 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL + + CASE + CAST( + 1 AS SIGNED ) WHEN + 24 * 54 * 16 THEN + + ( 26 ) * 63 + + + 77 * CAST( NULL AS SIGNED ) / - 81 / - COUNT( * ) * 3 END + + ( - COUNT( * ) ) * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL + + CASE + CAST ( + 1 AS INTEGER ) WHEN + 24 * 54 * 16 THEN + + ( 26 ) * 63 + + + 77 * CAST ( NULL AS INTEGER ) / - 81 / - COUNT ( * ) * 3 END + + ( - COUNT ( * ) ) * + 26
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT - 69 * + - COUNT( + 79 ) + - 16 DIV ( + 10 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3003
SELECT - 69 * + - COUNT ( + 79 ) + - 16 / ( + 10 ) AS col0
----
68

query I rowsort
SELECT DISTINCT + 59 * 16 * - - 85 * - + COALESCE ( + 63, + 9 )
----
-5055120

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL 53 + + - 85 + - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL 53 + + - 85 + - COUNT ( * )
----
-33

query I rowsort
SELECT 81 * + ( - 79 ) AS col2
----
-6399

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT 55 + - ( + 49 ) + + SUM( ALL - - 48 ) * + 18
----
870

skipif mysql # not compatible
query I rowsort label-3007
SELECT 55 + - ( + 49 ) + + SUM ( ALL - - 48 ) * + 18
----
870

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT ALL + 6 DIV + + 24
----
0

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + 6 / + + 24
----
0

query I rowsort
SELECT + 73 * - 24 + - 0 AS col0
----
-1752

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT 71 * - 59 * NULLIF ( - COUNT( * ), + 23 ) AS col0
----
4189

skipif mysql # not compatible
query I rowsort label-3010
SELECT 71 * - 59 * NULLIF ( - COUNT ( * ), + 23 ) AS col0
----
4189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3011
SELECT 97 * 79 / + 47 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT 97 * 79 / + 47 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 90 + 31 + 21 - + + 2 * + 48 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3013
SELECT - 34 * 0 + + + ( MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - 34 * 0 + + + ( MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) )
----
NULL

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

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

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

query I rowsort
SELECT 86 * - ( + - 24 ) * 15 - 26
----
30934

query I rowsort
SELECT 96 * + 65 AS col1
----
6240

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

skipif mysql # not compatible
query I rowsort label-3018
SELECT ( + + COUNT ( * ) ) + + 48 AS col0
----
49

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( 37, 9 + + NULLIF ( + + 91, + 70 + + ( - - 76 ) ) + 61, - + 92 ) + 47 AS col0
----
10

query I rowsort
SELECT - 29 + - 18
----
-47

query I rowsort
SELECT ALL + 48 + + 77
----
125

query I rowsort
SELECT ( 41 ) col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - MAX( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT - MAX ( DISTINCT - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + 4 + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 4 + COUNT ( * )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3026
SELECT - NULLIF ( 4, + ( - + 72 ) + CAST( NULL AS SIGNED ) - SUM( + 22 ) ) AS col1, COUNT( * ) * 44 AS col1
----
-4
44

skipif mysql # not compatible
query II rowsort label-3026
SELECT - NULLIF ( 4, + ( - + 72 ) + CAST ( NULL AS INTEGER ) - SUM ( + 22 ) ) AS col1, COUNT ( * ) * 44 AS col1
----
-4
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT 98 + 42 AS col0, + COUNT( * )
----
140
1

skipif mysql # not compatible
query II rowsort label-3027
SELECT 98 + 42 AS col0, + COUNT ( * )
----
140
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3028
SELECT - SUM( - 23 ) * + + CAST( ( + - 62 ) AS SIGNED ) AS col2, COUNT( * ) * 37 AS col0
----
-1426
37

skipif mysql # not compatible
query II rowsort label-3028
SELECT - SUM ( - 23 ) * + + CAST ( ( + - 62 ) AS INTEGER ) AS col2, COUNT ( * ) * 37 AS col0
----
-1426
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT ALL CAST( - - 20 AS SIGNED ) + 11
----
31

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL CAST ( - - 20 AS INTEGER ) + 11
----
31

query I rowsort
SELECT 67 + - 8 + 79 AS col0
----
138

query I rowsort
SELECT ALL + 30 - - + 14 + + 57
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT 41 DIV + MIN( + - 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT 41 / + MIN ( + - 46 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT + ( ( + 70 ) ) * + - ( - - 33 ) - - ( COUNT( * ) ) col0, 7 * - - 48
----
-2309
336

skipif mysql # not compatible
query II rowsort label-3033
SELECT + ( ( + 70 ) ) * + - ( - - 33 ) - - ( COUNT ( * ) ) col0, 7 * - - 48
----
-2309
336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3034
SELECT ( + CAST( NULL AS DECIMAL ) ) + + 29 * + ( + 30 ) + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ( + CAST ( NULL AS REAL ) ) + + 29 * + ( + 30 ) + 93 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT + 20 / + COUNT( * ) + + 82 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 20 / + COUNT ( * ) + + 82 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT MAX( 8 ) DIV + 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT MAX ( 8 ) / + 18 AS col1
----
0

query I rowsort
SELECT 65 * 65 AS col0
----
4225

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL 23 - - 45 - + - MIN( DISTINCT 41 ) * 58 * - + 63
----
-149746

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL 23 - - 45 - + - MIN ( DISTINCT 41 ) * 58 * - + 63
----
-149746

query I rowsort
SELECT ALL 63 * + 98
----
6174

query I rowsort
SELECT 6 * - 7
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT MAX( ALL + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3041
SELECT MAX ( ALL + 50 ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3042
SELECT ALL - 51 AS col0, COUNT( * ) + - CAST( NULL AS SIGNED ) + - + 87 * - 0 * - 53 * 95
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-3042
SELECT ALL - 51 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + 87 * - 0 * - 53 * 95
----
-51
NULL

query I rowsort
SELECT ALL - ( + 65 ) * 73 * - 7 + - 46 + - NULLIF ( + 91, - 74 ) AS col0
----
33078

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + CASE + - 66 WHEN 32 + - - 82 THEN - + NULLIF ( COUNT( * ), - - 63 ) ELSE - 48 END AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3044
SELECT + CASE + - 66 WHEN 32 + - - 82 THEN - + NULLIF ( COUNT ( * ), - - 63 ) ELSE - 48 END AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT + CAST( NULL AS SIGNED ) * + 91 * + + 99 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT + CAST ( NULL AS INTEGER ) * + 91 * + + 99 * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL ( - 56 ) * ( 82 ) + - - SUM( - 94 )
----
-4686

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL ( - 56 ) * ( 82 ) + - - SUM ( - 94 )
----
-4686

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

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

query I rowsort
SELECT ALL - 85 * - 72 + + + 53 * - 52
----
3364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT - NULLIF ( - 82, + COUNT( * ) ) * + 32 * - CAST( 18 AS SIGNED ) + + 27 + CAST( NULL AS SIGNED ) - + - 19 * + COUNT( * ) + - + 72 + - 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - NULLIF ( - 82, + COUNT ( * ) ) * + 32 * - CAST ( 18 AS INTEGER ) + + 27 + CAST ( NULL AS INTEGER ) - + - 19 * + COUNT ( * ) + - + 72 + - 15 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT - - 41 + + 24 * - + COUNT( * ) + + 18 + 20 - - 57, 72 AS col2
----
112
72

skipif mysql # not compatible
query II rowsort label-3050
SELECT - - 41 + + 24 * - + COUNT ( * ) + + 18 + 20 - - 57, 72 AS col2
----
112
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - + 83 * 36 + - COUNT( * )
----
-2989

skipif mysql # not compatible
query I rowsort label-3051
SELECT - + 83 * 36 + - COUNT ( * )
----
-2989

query I rowsort
SELECT ALL + + 81 * + 31 + + 28 AS col0
----
2539

query I rowsort
SELECT DISTINCT + - 48 * + 94 * - + 92 AS col2
----
415104

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT - 75 DIV + 8
----
-9

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 75 / + 8
----
-9

query I rowsort
SELECT ALL + - COALESCE ( - - 71, 74 )
----
-71

query I rowsort
SELECT - 88 * + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT + + ( 36 ) * 30 + - COUNT( DISTINCT 41 ) + - 0
----
1079

skipif mysql # not compatible
query I rowsort label-3057
SELECT + + ( 36 ) * 30 + - COUNT ( DISTINCT 41 ) + - 0
----
1079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT - CAST( 22 AS SIGNED ) * - - 78 + + 77
----
-1639

skipif mysql # not compatible
query I rowsort label-3058
SELECT - CAST ( 22 AS INTEGER ) * - - 78 + + 77
----
-1639

query I rowsort
SELECT + 71 + - + 9
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL MIN( ALL + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL MIN ( ALL + 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3061
SELECT ALL - - 93 - COUNT( * ) + - 54 * 7 DIV + + 53 AS col0, 42 + - 80 AS col1
----
85
-38

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL - - 93 - COUNT ( * ) + - 54 * 7 / + + 53 AS col0, 42 + - 80 AS col1
----
85
-38

query I rowsort
SELECT DISTINCT + 42 * - 70 * - - 27 * 18 * + + 7 AS col2
----
-10001880

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - COALESCE ( + 69, - - 17 * + 98 ) - - COUNT( * ) + COUNT( * ) + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3063
SELECT - COALESCE ( + 69, - - 17 * + 98 ) - - COUNT ( * ) + COUNT ( * ) + - COUNT ( * )
----
-68

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

query I rowsort
SELECT + - 15 * - 71 col2
----
1065

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

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

query II rowsort
SELECT ALL 99, 19 + - + 32 AS col0
----
99
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-3068
SELECT - 88 * - 0, - 35 DIV - + 54
----
0
0

skipif mysql # not compatible
query II rowsort label-3068
SELECT - 88 * - 0, - 35 / - + 54
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL - 6 * SUM( ALL + - 63 )
----
378

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL - 6 * SUM ( ALL + - 63 )
----
378

query I rowsort
SELECT + 5 - - - 63 col2
----
-58

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

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

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

query I rowsort
SELECT + 58 * - 10 AS col0
----
-580

query II rowsort
SELECT ALL 69 * - 44 AS col1, 82 col2
----
-3036
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT + 75 DIV - 91 * + 31
----
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT + 75 / - 91 * + 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT + 10 DIV + - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 10 / + - 66 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT ALL - 73 DIV + + 52 + 91
----
90

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - 73 / + + 52 + 91
----
90

query II rowsort
SELECT + 22 + - 95 AS col1, - 93 AS col2
----
-73
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3079
SELECT 71 DIV 19 - + + 49 + - 48 * CASE 8 WHEN - 4 + - COUNT( * ) + + + 32 + - - 46 * - + 81 + - 34 * + COUNT( * ) THEN - 69 * - CASE + - 94 WHEN 52 DIV - CAST( NULL AS SIGNED ) THEN NULL ELSE - 94 END WHEN - ( + CAST( CAST( 43 AS DECIMAL ) AS SIGNED ) ) + + ( + 93 ) * + - 7 * 62 THEN COUNT( * ) ELSE + 36 * - + NULLIF ( 47, SUM( + 73 ) - + COUNT( - - 11 ) + + 56 ) + - 2 * - 53 END + - COUNT( * ), + 58 + 77 * CAST( 55 * COUNT( * ) AS SIGNED ) AS col0
----
76081
4293

skipif mysql # not compatible
query II rowsort label-3079
SELECT 71 / 19 - + + 49 + - 48 * CASE 8 WHEN - 4 + - COUNT ( * ) + + + 32 + - - 46 * - + 81 + - 34 * + COUNT ( * ) THEN - 69 * - CASE + - 94 WHEN 52 / - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 94 END WHEN - ( + CAST ( CAST ( 43 AS REAL ) AS INTEGER ) ) + + ( + 93 ) * + - 7 * 62 THEN COUNT ( * ) ELSE + 36 * - + NULLIF ( 47, SUM ( + 73 ) - + COUNT ( - - 11 ) + + 56 ) + - 2 * - 53 END + - COUNT ( * ), + 58 + 77 * CAST ( 55 * COUNT ( * ) AS INTEGER ) AS col0
----
76081
4293

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL COUNT( * ) * - 1 + 32 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL COUNT ( * ) * - 1 + 32 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT COUNT( * ) * + 52 + - + 47 + - COUNT( ALL 3 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT COUNT ( * ) * + 52 + - + 47 + - COUNT ( ALL 3 ) AS col0
----
4

query I rowsort
SELECT + NULLIF ( - 38, + 39 ) AS col2
----
-38

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT + 25 AS col1, + ( COALESCE ( COUNT( * ), 13 * 58 * - - COUNT( * ) ) ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-3085
SELECT + 25 AS col1, + ( COALESCE ( COUNT ( * ), 13 * 58 * - - COUNT ( * ) ) ) AS col0
----
25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT + MIN( - 22 ) * - + 5 + 40 + + - 81 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + MIN ( - 22 ) * - + 5 + 40 + + - 81 AS col0
----
69

query II rowsort
SELECT 56 AS col1, CASE - ( - 14 ) WHEN - 73 THEN 78 ELSE + 85 END AS col2
----
56
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3088
SELECT - 60 + - - 30 + + + 45 * + ( + - 94 ) DIV - COUNT( + 46 )
----
4200

skipif mysql # not compatible
query I rowsort label-3088
SELECT - 60 + - - 30 + + + 45 * + ( + - 94 ) / - COUNT ( + 46 )
----
4200

query I rowsort
SELECT ALL - 65 * - - 43 + + 13
----
-2782

onlyif mysql # aggregate syntax: 
query II rowsort label-3090
SELECT + - 60 * + + COUNT( + + 29 ) * - 7 AS col0, 86
----
420
86

skipif mysql # not compatible
query II rowsort label-3090
SELECT + - 60 * + + COUNT ( + + 29 ) * - 7 AS col0, 86
----
420
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT DISTINCT + - 74 AS col2, + 43 * + - COUNT( * )
----
-74
-43

skipif mysql # not compatible
query II rowsort label-3091
SELECT DISTINCT + - 74 AS col2, + 43 * + - COUNT ( * )
----
-74
-43

query II rowsort
SELECT + - 58, 82 AS col0
----
-58
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT ALL - 5 * - - ( - - 69 ) + - + 23 + + COUNT( * ) * ( MIN( DISTINCT - 68 ) ) * - + 58 + - 25 + - 47, 7 * - 60 AS col1
----
3504
-420

skipif mysql # not compatible
query II rowsort label-3093
SELECT ALL - 5 * - - ( - - 69 ) + - + 23 + + COUNT ( * ) * ( MIN ( DISTINCT - 68 ) ) * - + 58 + - 25 + - 47, 7 * - 60 AS col1
----
3504
-420

query I rowsort
SELECT ALL + 13 * - + 32
----
-416

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT + 93 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-3095
SELECT + 93 / + 53
----
1

query I rowsort
SELECT - ( + 24 ) * - 15 * + + ( + 88 ) + - + 46
----
31634

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - COUNT( * ) + + 87
----
86

skipif mysql # not compatible
query I rowsort label-3098
SELECT - COUNT ( * ) + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - 82 + + 5 + + ( COUNT( DISTINCT 66 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3099
SELECT - 82 + + 5 + + ( COUNT ( DISTINCT 66 ) ) AS col1
----
-76

query I rowsort
SELECT ALL ( - 91 ) AS col2
----
-91

query I rowsort
SELECT DISTINCT - 93 + 42
----
-51

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

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

query I rowsort
SELECT ALL - 75 + - - 49 AS col1
----
-26

query I rowsort
SELECT + 52 + + 98 - + 17 AS col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3105
SELECT DISTINCT - CASE - 5 WHEN NULLIF ( - 19, + 51 + - - COUNT( * ) ) THEN - + CAST( NULL AS DECIMAL ) WHEN - 13 * 44 + - 7 THEN + 96 * - 14 * CAST( NULL AS SIGNED ) * + ( CASE + NULLIF ( + - 69, + 15 + 90 ) WHEN - COUNT( * ) + - + 51 THEN - ( 75 ) + COUNT( * ) END ) WHEN - - 7 + + 90 THEN - 41 * + 95 - - 54 + + ( 52 ) ELSE NULL END + - 16 - MIN( - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - CASE - 5 WHEN NULLIF ( - 19, + 51 + - - COUNT ( * ) ) THEN - + CAST ( NULL AS REAL ) WHEN - 13 * 44 + - 7 THEN + 96 * - 14 * CAST ( NULL AS INTEGER ) * + ( CASE + NULLIF ( + - 69, + 15 + 90 ) WHEN - COUNT ( * ) + - + 51 THEN - ( 75 ) + COUNT ( * ) END ) WHEN - - 7 + + 90 THEN - 41 * + 95 - - 54 + + ( 52 ) ELSE NULL END + - 16 - MIN ( - 2 )
----
NULL

query I rowsort
SELECT 99 * - - 34
----
3366

query II rowsort
SELECT 35 + - + 51 AS col1, + 0 * ( - 83 ) * + 96 + - 32
----
-16
-32

query I rowsort
SELECT DISTINCT 28 + + 16 + + ( 25 ) * + - 15
----
-331

query I rowsort
SELECT DISTINCT - 58 + - 48 AS col2
----
-106

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

query I rowsort
SELECT 25 * + 62 * + 19 AS col0
----
29450

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT ALL - NULLIF ( - 8, - - 14 ) + - 10 DIV + 27 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - NULLIF ( - 8, - - 14 ) + - 10 / + 27 AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT DISTINCT - CAST( + - 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT - CAST ( + - 42 AS INTEGER )
----
42

query I rowsort
SELECT DISTINCT - ( + + ( - 19 ) ) + + COALESCE ( + + 11, + 28 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT ALL COUNT( * ) + MAX( DISTINCT 36 ) + + - 89 * + CASE - + SUM( ALL + + ( - 98 ) ) WHEN + 40 THEN 94 DIV - + 81 * - 19 WHEN + 9 * 15 DIV 56 * + 84 DIV + 82 THEN ( + 34 ) + 77 ELSE - 39 * + - 29 + + - 55 * - 27 END AS col0
----
-232787

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL COUNT ( * ) + MAX ( DISTINCT 36 ) + + - 89 * + CASE - + SUM ( ALL + + ( - 98 ) ) WHEN + 40 THEN 94 / - + 81 * - 19 WHEN + 9 * 15 / 56 * + 84 / + 82 THEN ( + 34 ) + 77 ELSE - 39 * + - 29 + + - 55 * - 27 END AS col0
----
-232787

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT 77 * 87 - + + MAX( + 39 ) * - + 36 AS col0
----
8103

skipif mysql # not compatible
query I rowsort label-3116
SELECT 77 * 87 - + + MAX ( + 39 ) * - + 36 AS col0
----
8103

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT MAX( + 25 ) * + 24 AS col1
----
600

skipif mysql # not compatible
query I rowsort label-3117
SELECT MAX ( + 25 ) * + 24 AS col1
----
600

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3120
SELECT DISTINCT 63 - - - 2 + + CAST( NULL AS DECIMAL ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3120
SELECT DISTINCT 63 - - - 2 + + CAST ( NULL AS REAL ), + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ALL 67 * - 47 * + 69 AS col0
----
-217281

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - 6 + NULLIF ( MAX( 57 ), 99 / + 15 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 6 + NULLIF ( MAX ( 57 ), 99 / + 15 ) AS col2
----
51

query I rowsort
SELECT DISTINCT - 75 * - + 57
----
4275

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

skipif mysql # not compatible
query I rowsort label-3124
SELECT COUNT ( * ) * 62
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT 22 + - + MIN( ALL - 85 ) + - 5 + - 17 * + MIN( + 19 )
----
-221

skipif mysql # not compatible
query I rowsort label-3126
SELECT 22 + - + MIN ( ALL - 85 ) + - 5 + - 17 * + MIN ( + 19 )
----
-221

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

skipif mysql # not compatible
query I rowsort label-3127
SELECT COUNT ( * ) - - - 37 * + COUNT ( * ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3128
SELECT ALL - + COALESCE ( COUNT( * ), + 82 * 93 + + 28 * + CAST( + MAX( ALL - 50 ) AS SIGNED ) * - 99 + - 26 + 39 * 60 ) AS col0, + 34 AS col2
----
-1
34

skipif mysql # not compatible
query II rowsort label-3128
SELECT ALL - + COALESCE ( COUNT ( * ), + 82 * 93 + + 28 * + CAST ( + MAX ( ALL - 50 ) AS INTEGER ) * - 99 + - 26 + 39 * 60 ) AS col0, + 34 AS col2
----
-1
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3129
SELECT CAST( - - 12 AS SIGNED ) * - - 60 AS col0, + 28
----
720
28

skipif mysql # not compatible
query II rowsort label-3129
SELECT CAST ( - - 12 AS INTEGER ) * - - 60 AS col0, + 28
----
720
28

query I rowsort
SELECT 42 + - 1 * - 4 + - - 79
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT + ( - 0 ) AS col0, ( 24 ) * + COUNT( * ) + - COUNT( * )
----
0
23

skipif mysql # not compatible
query II rowsort label-3131
SELECT + ( - 0 ) AS col0, ( 24 ) * + COUNT ( * ) + - COUNT ( * )
----
0
23

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

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

query I rowsort
SELECT 22 * + 63
----
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3134
SELECT DISTINCT 6 + 8 * - CASE - 39 WHEN NULLIF ( 48, + 44 ) THEN NULL ELSE - 26 * + 44 END * 55 * + + CAST( 32 AS SIGNED ) + - - 32 / CASE + + 58 WHEN + + 82 THEN COALESCE ( - 1, - - 71 + + 8 ) WHEN + 77 * - 46 + + - 99 + - - ( + - NULLIF ( - - 94, + 40 ) ) / - COUNT( * ) THEN - 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT 6 + 8 * - CASE - 39 WHEN NULLIF ( 48, + 44 ) THEN NULL ELSE - 26 * + 44 END * 55 * + + CAST ( 32 AS INTEGER ) + - - 32 / CASE + + 58 WHEN + + 82 THEN COALESCE ( - 1, - - 71 + + 8 ) WHEN + 77 * - 46 + + - 99 + - - ( + - NULLIF ( - - 94, + 40 ) ) / - COUNT ( * ) THEN - 9 END AS col2
----
NULL

query I rowsort
SELECT ALL 64 + - - 0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT 9 DIV + 9 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3136
SELECT 9 / + 9 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL + 43 + - 24 + - NULLIF ( NULLIF ( - - 20, COUNT( * ) ), COALESCE ( - + 23, - SUM( - 46 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + 43 + - 24 + - NULLIF ( NULLIF ( - - 20, COUNT ( * ) ), COALESCE ( - + 23, - SUM ( - 46 ) ) ) AS col2
----
-1

query I rowsort
SELECT 16 * + + 73 AS col1
----
1168

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT 35 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT 35 / - 79 AS col1
----
0

query I rowsort
SELECT DISTINCT 63 + - 62 * - + 94 AS col1
----
5891

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT + 98 DIV 57 * + 65 * - + 53
----
-3445

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + 98 / 57 * + 65 * - + 53
----
-3445

query I rowsort
SELECT 15 - + 68
----
-53

query I rowsort
SELECT 25 - + 53 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT ALL COUNT( DISTINCT + ( + 31 ) ), - 50 * + 73 AS col2
----
1
-3650

skipif mysql # not compatible
query II rowsort label-3144
SELECT ALL COUNT ( DISTINCT + ( + 31 ) ), - 50 * + 73 AS col2
----
1
-3650

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

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

query II rowsort
SELECT ALL 87 AS col1, 58 * + 84
----
87
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT 60 - + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3147
SELECT 60 - + - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - + 43 * CASE WHEN NOT + 39 IS NULL THEN - 5 END + COALESCE ( 67, - COUNT( * ) + COUNT( * ), + 30 + + + 24 ) * - - COUNT( * ) * + COUNT( * ) + 10 + + 38
----
330

skipif mysql # not compatible
query I rowsort label-3148
SELECT - + 43 * CASE WHEN NOT + 39 IS NULL THEN - 5 END + COALESCE ( 67, - COUNT ( * ) + COUNT ( * ), + 30 + + + 24 ) * - - COUNT ( * ) * + COUNT ( * ) + 10 + + 38
----
330

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

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

query I rowsort
SELECT ALL + - 99 * - 63 * - 8 + - ( - ( + - 95 ) ) AS col1
----
-49991

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

query I rowsort
SELECT - 95 + - 80 col0
----
-175

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT 44 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT 44 / 64
----
0

query I rowsort
SELECT 88 * 50 * - - 33 col2
----
145200

query II rowsort
SELECT + 6 AS col2, 95 - 69
----
6
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3157
SELECT + 45 + + CASE - 26 WHEN + CAST( NULL AS DECIMAL ) THEN + 0 END + COALESCE ( + + 82, - - COUNT( * ) / - - 75 * - ( COUNT( DISTINCT 83 ) ) ) + + 63 - + - 50 / 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT + 45 + + CASE - 26 WHEN + CAST ( NULL AS REAL ) THEN + 0 END + COALESCE ( + + 82, - - COUNT ( * ) / - - 75 * - ( COUNT ( DISTINCT 83 ) ) ) + + 63 - + - 50 / 85 AS col1
----
NULL

query I rowsort
SELECT ALL - 22 * 68 * + ( 95 )
----
-142120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT - 54 * + 38 * CAST( - 59 AS SIGNED ) col0
----
121068

skipif mysql # not compatible
query I rowsort label-3160
SELECT - 54 * + 38 * CAST ( - 59 AS INTEGER ) col0
----
121068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT ALL - ( - - CASE 15 WHEN + CASE CAST( + - 36 AS SIGNED ) WHEN - + ( + 70 ) THEN NULL WHEN + - 66 + - + 95 * + 25 * + - 52 THEN + 34 * - 31 WHEN + + 34 THEN NULL ELSE + 12 END THEN + + 99 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - ( - - CASE 15 WHEN + CASE CAST ( + - 36 AS INTEGER ) WHEN - + ( + 70 ) THEN NULL WHEN + - 66 + - + 95 * + 25 * + - 52 THEN + 34 * - 31 WHEN + + 34 THEN NULL ELSE + 12 END THEN + + 99 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL 37 + - 5 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT 85 + + COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT 85 + + COUNT ( * ) AS col2
----
86

query I rowsort
SELECT DISTINCT 99 + - 13 AS col1
----
86

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

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

query I rowsort
SELECT COALESCE ( - ( + 65 ), - + 5 + + 15 + + + 27 ) + - 32 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - CASE + 20 WHEN - COUNT( + + 80 ) THEN - 8 * - 72 + - 10 + - + CASE COUNT( * ) WHEN - 93 + COUNT( * ) THEN + COALESCE ( - - CASE - 44 WHEN 9 THEN + 79 WHEN + ( - - 7 ) THEN + ( 89 ) END, 27 * + 12 + MAX( ALL - 51 ) + - 23 ) WHEN - COUNT( * ) THEN NULL WHEN - MAX( + - 5 ) THEN + - 69 * COUNT( ALL + + 25 ) END - - 81 + - - 51 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT - CASE + 20 WHEN - COUNT ( + + 80 ) THEN - 8 * - 72 + - 10 + - + CASE COUNT ( * ) WHEN - 93 + COUNT ( * ) THEN + COALESCE ( - - CASE - 44 WHEN 9 THEN + 79 WHEN + ( - - 7 ) THEN + ( 89 ) END, 27 * + 12 + MAX ( ALL - 51 ) + - 23 ) WHEN - COUNT ( * ) THEN NULL WHEN - MAX ( + - 5 ) THEN + - 69 * COUNT ( ALL + + 25 ) END - - 81 + - - 51 END col2
----
NULL

query I rowsort
SELECT ALL + ( - 57 ) + + NULLIF ( + 80, - + 93 ) AS col0
----
23

query I rowsort
SELECT + 93 + + 42 * + 10 AS col0
----
513

query II rowsort
SELECT - NULLIF ( + ( + 32 ), - ( 59 ) ) AS col2, 5 AS col2
----
-32
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT COUNT( * ) DIV 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT COUNT ( * ) / 37 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3172
SELECT + 57 * + 40 AS col0, 54 DIV + COUNT( * )
----
2280
54

skipif mysql # not compatible
query II rowsort label-3172
SELECT + 57 * + 40 AS col0, 54 / + COUNT ( * )
----
2280
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - CASE 1 WHEN 37 + 76 THEN COUNT( * ) ELSE NULL END * + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT - CASE 1 WHEN 37 + 76 THEN COUNT ( * ) ELSE NULL END * + - 68
----
NULL

query I rowsort
SELECT + 27 * 31 AS col0
----
837

query I rowsort
SELECT ALL + + COALESCE ( 62, 26 ) AS col2
----
62

query I rowsort
SELECT ALL + 86 * + - 21 * - 9
----
16254

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - NULLIF ( + + 98, - COUNT( * ) / - 73 + 93 + + 81 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3178
SELECT - NULLIF ( + + 98, - COUNT ( * ) / - 73 + 93 + + 81 ) AS col2
----
-98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3180
SELECT ALL + COUNT( * ) * + + 11 + + COALESCE ( - MAX( DISTINCT - + ( - + CAST( NULL AS SIGNED ) ) ), + - 8 * 21 + + - NULLIF ( CAST( 87 AS SIGNED ), - + CASE - 51 WHEN - - 85 - - + 71 THEN NULL WHEN - + 13 THEN + - 69 * 27 * - COUNT( * ) + COUNT( * ) - - - 74 * COALESCE ( - 83, 12 DIV + - 39 ) END * - - 12 * + 21 - - 46 * - 29 + - + 33 * - 31 * 86 + + 45 ) + + 64, - 66 ) + + + COALESCE ( - - 50, + - 69, - MAX( - 2 ) DIV NULLIF ( 90, ( 11 ) + + COALESCE ( 5, 87 ) ) * + 45 )
----
-130

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + COUNT ( * ) * + + 11 + + COALESCE ( - MAX ( DISTINCT - + ( - + CAST ( NULL AS INTEGER ) ) ), + - 8 * 21 + + - NULLIF ( CAST ( 87 AS INTEGER ), - + CASE - 51 WHEN - - 85 - - + 71 THEN NULL WHEN - + 13 THEN + - 69 * 27 * - COUNT ( * ) + COUNT ( * ) - - - 74 * COALESCE ( - 83, 12 / + - 39 ) END * - - 12 * + 21 - - 46 * - 29 + - + 33 * - 31 * 86 + + 45 ) + + 64, - 66 ) + + + COALESCE ( - - 50, + - 69, - MAX ( - 2 ) / NULLIF ( 90, ( 11 ) + + COALESCE ( 5, 87 ) ) * + 45 )
----
-130

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT + 93 * COUNT( * ) * + - ( - - 69 ) AS col2
----
-6417

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + 93 * COUNT ( * ) * + - ( - - 69 ) AS col2
----
-6417

query II rowsort
SELECT DISTINCT 59 * + 23 * + NULLIF ( + 44, + 57 + - 41 ) + + 56 col2, 99 - 75
----
59764
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL + - MAX( DISTINCT + 84 ) * + 78
----
-6552

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + - MAX ( DISTINCT + 84 ) * + 78
----
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL - 37 * + + 25 * 30 * COUNT( * ) + 35 AS col1
----
-27715

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - 37 * + + 25 * 30 * COUNT ( * ) + 35 AS col1
----
-27715

query I rowsort
SELECT - 95 - + 53
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3187
SELECT ALL + COUNT( * ) DIV + + 84 + + + 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + COUNT ( * ) / + + 84 + + + 59 col0
----
59

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

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

query II rowsort
SELECT + + 44 * + 58 + - 9 - + + 5 * + 17, 63 AS col1
----
2458
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT COUNT( 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3190
SELECT COUNT ( 15 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL + 16 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL + 16 / 99 AS col2
----
0

query I rowsort
SELECT + 88 - + 58 AS col1
----
30

query II rowsort
SELECT ALL - 81 * 16 * 40 * - 95 + + - 23, + 85 col2
----
4924777
85

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT + 93 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT + 93 / + 76
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT ALL + COALESCE ( 80, + CASE 6 WHEN 74 THEN NULL WHEN + 94 THEN NULL ELSE - + CAST( + ( 89 ) AS SIGNED ) END ) - + 52 * + ( + - ( + 66 ) ) * - 54
----
-185248

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + COALESCE ( 80, + CASE 6 WHEN 74 THEN NULL WHEN + 94 THEN NULL ELSE - + CAST ( + ( 89 ) AS INTEGER ) END ) - + 52 * + ( + - ( + 66 ) ) * - 54
----
-185248

query I rowsort
SELECT - ( - 19 )
----
19

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

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

query I rowsort
SELECT + 33 - 64 AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT + COUNT( * ) * + CAST( 24 AS SIGNED ) * + ( - ( MIN( 82 ) ) ) - - - CASE + - 84 WHEN + COALESCE ( - + 32, + 51 + - - 60 ) THEN NULL ELSE - + 44 END + - 37 + + 83 * 56 - + + COUNT( DISTINCT + COALESCE ( - + 54, 57 ) ) col0
----
2686

skipif mysql # not compatible
query I rowsort label-3202
SELECT + COUNT ( * ) * + CAST ( 24 AS INTEGER ) * + ( - ( MIN ( 82 ) ) ) - - - CASE + - 84 WHEN + COALESCE ( - + 32, + 51 + - - 60 ) THEN NULL ELSE - + 44 END + - 37 + + 83 * 56 - + + COUNT ( DISTINCT + COALESCE ( - + 54, 57 ) ) col0
----
2686

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3203
SELECT 88, CAST( NULL AS SIGNED ) + 49 * - + 25 * + 79 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-3203
SELECT 88, CAST ( NULL AS INTEGER ) + 49 * - + 25 * + 79 AS col2
----
88
NULL

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

query II rowsort
SELECT ALL 88 AS col2, + 28
----
88
28

query I rowsort
SELECT + 79 - - 81 * + 80 AS col0
----
6559

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL NULLIF ( + - 29, + 75 * + COUNT( - + COALESCE ( + 60, + 99 * - - 59 ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL NULLIF ( + - 29, + 75 * + COUNT ( - + COALESCE ( + 60, + 99 * - - 59 ) ) )
----
-29

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

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

query I rowsort
SELECT - COALESCE ( + 18, - - 29 - + 50 ) AS col1
----
-18

query I rowsort
SELECT + 17 + + 3 AS col1
----
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT + 40 DIV - 70 - - 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3212
SELECT + 40 / - 70 - - 28 AS col0
----
28

query I rowsort
SELECT ALL 69 * - + 56 AS col1
----
-3864

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT + - 49 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT + - 49 / - 85
----
0

query I rowsort
SELECT - 13 - - 16 * 62 * + CASE + 50 WHEN + 41 THEN NULL ELSE - - 40 * + 19 END - - - 85 AS col1
----
753822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT ALL 77 DIV - COUNT( * ) + - ( - 93 ) * + 28 AS col1
----
2527

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL 77 / - COUNT ( * ) + - ( - 93 ) * + 28 AS col1
----
2527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3217
SELECT DISTINCT + 97 DIV + COUNT( * ) + + + 74 + 90
----
261

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + 97 / + COUNT ( * ) + + + 74 + 90
----
261

query II rowsort
SELECT + 80 AS col2, 97 AS col1
----
80
97

query I rowsort
SELECT - 43 + + 74 col2
----
31

query I rowsort
SELECT ALL + 12 - - + 52 + 92 AS col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL - CASE + - 75 WHEN - + ( + - 34 ) * - 6 THEN NULL ELSE + + 88 + - 67 + 17 * + CAST( NULL AS SIGNED ) + 96 END - + 93 + - + NULLIF ( + COUNT( * ), - 53 ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL - CASE + - 75 WHEN - + ( + - 34 ) * - 6 THEN NULL ELSE + + 88 + - 67 + 17 * + CAST ( NULL AS INTEGER ) + 96 END - + 93 + - + NULLIF ( + COUNT ( * ), - 53 ) + + COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 30 * + 74 AS col0
----
-2220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3224
SELECT ALL - 89 AS col1, - 97 DIV + COUNT( * )
----
-89
-97

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL - 89 AS col1, - 97 / + COUNT ( * )
----
-89
-97

query I rowsort
SELECT 49 * - 24 + + 20 AS col2
----
-1156

query I rowsort
SELECT 5 + - 69
----
-64

query I rowsort
SELECT 8 * + 40 AS col2
----
320

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

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

query II rowsort
SELECT ALL 17 AS col1, 32 + + + 47 + - 82 - + 99 AS col2
----
17
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3230
SELECT 15 + + 55 col0, + CAST( - 85 AS SIGNED )
----
70
-85

skipif mysql # not compatible
query II rowsort label-3230
SELECT 15 + + 55 col0, + CAST ( - 85 AS INTEGER )
----
70
-85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT - 71 col0, - COUNT( - + 90 ) AS col0
----
-71
-1

skipif mysql # not compatible
query II rowsort label-3232
SELECT - 71 col0, - COUNT ( - + 90 ) AS col0
----
-71
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT 24 + - 53 + - 75 - - + 29 + + CASE CAST( + ( CASE 11 WHEN + 45 / + 69 + - ( - - 43 ) THEN NULL WHEN + 64 * + + 63 THEN + 19 + 64 ELSE NULL END ) AS SIGNED ) WHEN - + 93 * - - 57 THEN NULL ELSE - 64 + - + 61 - + 71 * - - 5 END + - + COALESCE ( 40, - - ( COUNT( + 75 ) ), + + 97 ) * + ( + 40 ) * - + 39 * 92 AS col0
----
5740245

skipif mysql # not compatible
query I rowsort label-3233
SELECT 24 + - 53 + - 75 - - + 29 + + CASE CAST ( + ( CASE 11 WHEN + 45 / + 69 + - ( - - 43 ) THEN NULL WHEN + 64 * + + 63 THEN + 19 + 64 ELSE NULL END ) AS INTEGER ) WHEN - + 93 * - - 57 THEN NULL ELSE - 64 + - + 61 - + 71 * - - 5 END + - + COALESCE ( 40, - - ( COUNT ( + 75 ) ), + + 97 ) * + ( + 40 ) * - + 39 * 92 AS col0
----
5740245

query I rowsort
SELECT 34 * - 10
----
-340

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

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 98 * + + COUNT ( + 89 ) AS col1
----
98

query I rowsort
SELECT 40 + - 15 AS col1
----
25

query II rowsort
SELECT ALL 83 AS col2, 90 AS col1
----
83
90

query I rowsort
SELECT DISTINCT - 68 * 81
----
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT 91 * - + MAX( - + 30 )
----
2730

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT 91 * - + MAX ( - + 30 )
----
2730

query I rowsort
SELECT ALL - ( + - 99 ) * - 71 * + - 27 + - + 96
----
189687

query I rowsort
SELECT DISTINCT + 96 * - 11
----
-1056

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

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

query III rowsort
SELECT 42 AS col2, 97 AS col1, + ( + 25 ) AS col1
----
42
97
25

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

skipif mysql # not compatible
query II rowsort label-3244
SELECT - COUNT ( * ) AS col0, - 17
----
-1
-17

query I rowsort
SELECT + 84 + + 5 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL ( + 26 ) + + 9 + - 51 + - 30 * - COUNT( * ) * + - 43 * - 30
----
38684

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL ( + 26 ) + + 9 + - 51 + - 30 * - COUNT ( * ) * + - 43 * - 30
----
38684

query I rowsort
SELECT NULLIF ( - 81, - + 74 * - 0 + 98 ) * 8
----
-648

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT - 13 AS col2, + 53 * + + COUNT( * ) + + 30 + 10 + - + 17
----
-13
76

skipif mysql # not compatible
query II rowsort label-3248
SELECT - 13 AS col2, + 53 * + + COUNT ( * ) + + 30 + 10 + - + 17
----
-13
76

query I rowsort
SELECT ALL + ( 38 ) + 31
----
69

query I rowsort
SELECT DISTINCT 29 + + + 88 + - 65
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL 3 * MIN( DISTINCT - 8 )
----
-24

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL 3 * MIN ( DISTINCT - 8 )
----
-24

query I rowsort
SELECT ALL + 85 + + 43
----
128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT + COUNT( * ) * + 93 * - - 85
----
7905

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + COUNT ( * ) * + 93 * - - 85
----
7905

query I rowsort
SELECT 94 * - 37 - 45 + 44
----
-3479

query I rowsort
SELECT ALL + 83 * - 95
----
-7885

query I rowsort
SELECT + - 35 * 41 - - 63 AS col1
----
-1372

query II rowsort
SELECT 59 AS col0, 84
----
59
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3259
SELECT DISTINCT - - 88, ( + CAST( NULL AS SIGNED ) ) / 85 AS col2
----
88
NULL

skipif mysql # not compatible
query II rowsort label-3259
SELECT DISTINCT - - 88, ( + CAST ( NULL AS INTEGER ) ) / 85 AS col2
----
88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT 44 DIV - + 98 * ( 4 ) - 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3260
SELECT 44 / - + 98 * ( 4 ) - 93 AS col0
----
-93

query I rowsort
SELECT + CASE 97 WHEN 98 - + 29 + + - 79 * - - 15 - - 87 - + 13 * - + 47 THEN + + 3 + 64 END * 61
----
NULL

query II rowsort
SELECT ALL 36 * 14 * + + ( - + 94 ), 45 AS col1
----
-47376
45

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

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + 58 - + - COUNT ( * ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT DISTINCT - 71 DIV - - 68
----
-1

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - 71 / - - 68
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN 73 + - COUNT( * ) * - + 31 THEN NULL ELSE 19 END - + 94 + - COUNT( * ) * + COUNT( * ) + + - ( - 56 ) - - 62 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN 73 + - COUNT ( * ) * - + 31 THEN NULL ELSE 19 END - + 94 + - COUNT ( * ) * + COUNT ( * ) + + - ( - 56 ) - - 62 AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL + ( - - 4 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL + ( - - 4 ) / 38
----
0

query I rowsort
SELECT 99 * 73 * - - 92
----
664884

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL - MAX( DISTINCT - 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - MAX ( DISTINCT - 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT 53 * - MIN( ALL 12 )
----
-636

skipif mysql # not compatible
query I rowsort label-3269
SELECT 53 * - MIN ( ALL 12 )
----
-636

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT DISTINCT - CASE + SUM( + 30 ) WHEN - 14 + + - 31 + - - 35 * - COUNT( - 48 ) + + 73 * - 30 + + 13 THEN + ( - COUNT( * ) ) WHEN + + COUNT( * ) + - 61 / 6 THEN NULL ELSE COUNT( * ) END col2, 38 AS col1
----
-1
38

skipif mysql # not compatible
query II rowsort label-3270
SELECT DISTINCT - CASE + SUM ( + 30 ) WHEN - 14 + + - 31 + - - 35 * - COUNT ( - 48 ) + + 73 * - 30 + + 13 THEN + ( - COUNT ( * ) ) WHEN + + COUNT ( * ) + - 61 / 6 THEN NULL ELSE COUNT ( * ) END col2, 38 AS col1
----
-1
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3271
SELECT ALL - 81 * 18 AS col1, 27 * CAST( 78 AS SIGNED ) AS col2
----
-1458
2106

skipif mysql # not compatible
query II rowsort label-3271
SELECT ALL - 81 * 18 AS col1, 27 * CAST ( 78 AS INTEGER ) AS col2
----
-1458
2106

query I rowsort
SELECT 43 * - + 90
----
-3870

query I rowsort
SELECT ALL 68 * - 36 * + ( - 13 ) AS col0
----
31824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT ALL - CAST( 72 AS SIGNED ) * - COALESCE ( + 10, + 38, 35 )
----
720

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL - CAST ( 72 AS INTEGER ) * - COALESCE ( + 10, + 38, 35 )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL MAX( DISTINCT + - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL MAX ( DISTINCT + - 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT DISTINCT - 37 + 19 * CASE WHEN NOT NULL IS NOT NULL THEN - COUNT( 78 ) END * - 33
----
590

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - 37 + 19 * CASE WHEN NOT NULL IS NOT NULL THEN - COUNT ( 78 ) END * - 33
----
590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3277
SELECT 33 / - CAST( NULL AS SIGNED ), + 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-3277
SELECT 33 / - CAST ( NULL AS INTEGER ), + 53 AS col2
----
NULL
53

query I rowsort
SELECT 69 * 33
----
2277

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT 40 - - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3279
SELECT 40 - - COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL + 92 + 52 + - + 9 * - 50 * CAST( NULL AS SIGNED ) - + - COALESCE ( - 38, + 67 ) + - COUNT( + + COALESCE ( - 87, 11 ) ) - 10 * - - CASE - 10 WHEN + 32 THEN - 48 END * - 1 * + COALESCE ( - ( + + 37 ), + 56 ) * + + 44 + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + 92 + 52 + - + 9 * - 50 * CAST ( NULL AS INTEGER ) - + - COALESCE ( - 38, + 67 ) + - COUNT ( + + COALESCE ( - 87, 11 ) ) - 10 * - - CASE - 10 WHEN + 32 THEN - 48 END * - 1 * + COALESCE ( - ( + + 37 ), + 56 ) * + + 44 + + 83 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT + 12 + 17 + - 75 * + 70 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 12 + 17 + - 75 * + 70 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL + COALESCE ( COUNT( * ), - 66 - + COUNT( - 86 ) + - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + COALESCE ( COUNT ( * ), - 66 - + COUNT ( - 86 ) + - 73 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT - - CAST( 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-3283
SELECT - - CAST ( 51 AS INTEGER )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT ALL - - ( 73 ) + 99 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - - ( 73 ) + 99 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 88 - - 29 AS col1
----
117

query I rowsort
SELECT DISTINCT - + 35 + 50
----
15

query II rowsort
SELECT - 62 + - 41, + COALESCE ( + 24, + + 11 * - 17 + + 76 ) AS col2
----
-103
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3288
SELECT + - 68 - 32 + - CASE WHEN NOT 84 >= 89 THEN COALESCE ( + 32, + 9 ) * 93 ELSE NULL END, ( + 93 ) * - CAST( NULL AS DECIMAL ) * NULLIF ( + + 43, - 85 ) AS col1
----
-3076
NULL

skipif mysql # not compatible
query II rowsort label-3288
SELECT + - 68 - 32 + - CASE WHEN NOT 84 >= 89 THEN COALESCE ( + 32, + 9 ) * 93 ELSE NULL END, ( + 93 ) * - CAST ( NULL AS REAL ) * NULLIF ( + + 43, - 85 ) AS col1
----
-3076
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL ( - COUNT( DISTINCT - + 32 ) ) * - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL ( - COUNT ( DISTINCT - + 32 ) ) * - 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + 78 + - - MAX( DISTINCT 65 )
----
143

skipif mysql # not compatible
query I rowsort label-3291
SELECT + 78 + - - MAX ( DISTINCT 65 )
----
143

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

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

query I rowsort
SELECT + 29 + + 26
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - COALESCE ( COUNT( * ), ( 72 ) ) * 26
----
-26

skipif mysql # not compatible
query I rowsort label-3294
SELECT - COALESCE ( COUNT ( * ), ( 72 ) ) * 26
----
-26

query I rowsort
SELECT + 46 * 74
----
3404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT + NULLIF ( ( + 28 ), + CAST( + + COUNT( * ) AS SIGNED ) ) col2
----
28

skipif mysql # not compatible
query I rowsort label-3296
SELECT + NULLIF ( ( + 28 ), + CAST ( + + COUNT ( * ) AS INTEGER ) ) col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT 86 * + COUNT( * ) + - 99 + ( - COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3297
SELECT 86 * + COUNT ( * ) + - 99 + ( - COUNT ( * ) ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT + COUNT( ALL - NULLIF ( + + 69, + - 29 ) ) / - + 24 * + CAST( NULL AS SIGNED ) * - 85 + + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT + COUNT ( ALL - NULLIF ( + + 69, + - 29 ) ) / - + 24 * + CAST ( NULL AS INTEGER ) * - 85 + + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + 10 + - 62 + + MIN( DISTINCT - + 49 )
----
-101

skipif mysql # not compatible
query I rowsort label-3299
SELECT + 10 + - 62 + + MIN ( DISTINCT - + 49 )
----
-101

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3301
SELECT DISTINCT COALESCE ( + 40, - COUNT( * ) + + 27 * COUNT( * ) ) * + 30 AS col2, 62 + + - 79 + - - 58 AS col2
----
1200
41

skipif mysql # not compatible
query II rowsort label-3301
SELECT DISTINCT COALESCE ( + 40, - COUNT ( * ) + + 27 * COUNT ( * ) ) * + 30 AS col2, 62 + + - 79 + - - 58 AS col2
----
1200
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + CASE - 30 WHEN CAST( NULL AS SIGNED ) + - 34 THEN - 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT + CASE - 30 WHEN CAST ( NULL AS INTEGER ) + - 34 THEN - 66 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + ( 85 ) * + ( ( + + 7 ) ) + - + COUNT( * ) AS col0
----
594

skipif mysql # not compatible
query I rowsort label-3304
SELECT + ( 85 ) * + ( ( + + 7 ) ) + - + COUNT ( * ) AS col0
----
594

query II rowsort
SELECT DISTINCT + 85 AS col2, ( 41 ) AS col0
----
85
41

query II rowsort
SELECT ALL + 88, 92 AS col2
----
88
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT COUNT( * ) * - - CASE - + 4 WHEN + 97 + + CAST( + + AVG ( 62 ) AS SIGNED ) THEN + 22 * + 73 * ( + 3 ) END + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT COUNT ( * ) * - - CASE - + 4 WHEN + 97 + + CAST ( + + AVG ( 62 ) AS INTEGER ) THEN + 22 * + 73 * ( + 3 ) END + + 33 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL 38 + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3310
SELECT + COUNT( * ) + - COUNT( * ) DIV + 6 col0
----
1

skipif mysql # not compatible
query I rowsort label-3310
SELECT + COUNT ( * ) + - COUNT ( * ) / + 6 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 63 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 63 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT 23 * 99 * + - 37 * COUNT( - 75 ) + + NULLIF ( MIN( + 71 ), + 69 - + - 32 - + COUNT( * ) ) DIV - + 19 AS col1
----
-84252

skipif mysql # not compatible
query I rowsort label-3312
SELECT 23 * 99 * + - 37 * COUNT ( - 75 ) + + NULLIF ( MIN ( + 71 ), + 69 - + - 32 - + COUNT ( * ) ) / - + 19 AS col1
----
-84252

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - COUNT( * ) - + + 19
----
-20

skipif mysql # not compatible
query I rowsort label-3313
SELECT - COUNT ( * ) - + + 19
----
-20

query II rowsort
SELECT - 90 AS col2, 95 + + 33
----
-90
128

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - COUNT ( * ) + + + 78 col1
----
77

query I rowsort
SELECT - - 12 + - - ( + 44 )
----
56

query I rowsort
SELECT ALL + + 70 * + 6 AS col0
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT + + COUNT( * ) * COUNT( * ) * + 6 AS col0, - 99 + + COUNT( ALL - 34 )
----
6
-98

skipif mysql # not compatible
query II rowsort label-3320
SELECT + + COUNT ( * ) * COUNT ( * ) * + 6 AS col0, - 99 + + COUNT ( ALL - 34 )
----
6
-98

query I rowsort
SELECT ALL - 57 - NULLIF ( + 11, - 29 ) + 25 - - - 77 * - 86 * + - 51 AS col2
----
-337765

query I rowsort
SELECT - - ( - 82 )
----
-82

query II rowsort
SELECT ALL 21, 58 AS col0
----
21
58

query I rowsort
SELECT - 21 * - 67 * + + 2
----
2814

query I rowsort
SELECT + 96 + + NULLIF ( - 80, 74 ) + - 36 * - + ( + 5 )
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3326
SELECT ALL - + ( - CASE - 54 WHEN - 81 THEN - 72 WHEN + - 49 - 92 THEN NULL WHEN + 60 THEN NULL ELSE 6 END ) - CAST( 66 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - + ( - CASE - 54 WHEN - 81 THEN - 72 WHEN + - 49 - 92 THEN NULL WHEN + 60 THEN NULL ELSE 6 END ) - CAST ( 66 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + - 45 * - 2 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - + CASE - - CAST( + 48 AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 78 THEN + 45 * - 59 * + COUNT( * ) * + COUNT( * ) * - 74 + + 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT - + CASE - - CAST ( + 48 AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 78 THEN + 45 * - 59 * + COUNT ( * ) * + COUNT ( * ) * - 74 + + 76 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT ALL + ( NULLIF ( + 8, + + 53 * - - 90 * + NULLIF ( - 74, - - 33 ) + 38 - + + CAST( ( - 22 ) AS SIGNED ) ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + ( NULLIF ( + 8, + + 53 * - - 90 * + NULLIF ( - 74, - - 33 ) + 38 - + + CAST ( ( - 22 ) AS INTEGER ) ) ) AS col0
----
8

query I rowsort
SELECT DISTINCT + 72 * 3 AS col0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT - + 50 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT - + 50 / - 68 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3333
SELECT - COUNT( * ) DIV - + 73 * + + 14 * - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT - COUNT ( * ) / - + 73 * + + 14 * - 8 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT ALL + AVG ( ALL - 69 ) * CASE CAST( - MAX( 24 ) AS SIGNED ) WHEN - 22 THEN + + 73 ELSE NULL END + + CAST( + COUNT( * ) AS SIGNED ) + + 16 - + + 4 / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL + AVG ( ALL - 69 ) * CASE CAST ( - MAX ( 24 ) AS INTEGER ) WHEN - 22 THEN + + 73 ELSE NULL END + + CAST ( + COUNT ( * ) AS INTEGER ) + + 16 - + + 4 / - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3335
SELECT + 23 * + COALESCE ( + 79, - + CAST( ( + 64 ) AS SIGNED ) + - 50 ), 39 - - - COUNT( * ) AS col2
----
1817
38

skipif mysql # not compatible
query II rowsort label-3335
SELECT + 23 * + COALESCE ( + 79, - + CAST ( ( + 64 ) AS INTEGER ) + - 50 ), 39 - - - COUNT ( * ) AS col2
----
1817
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3336
SELECT CAST( + - 22 AS SIGNED ) AS col1, + 73 AS col0
----
-22
73

skipif mysql # not compatible
query II rowsort label-3336
SELECT CAST ( + - 22 AS INTEGER ) AS col1, + 73 AS col0
----
-22
73

query I rowsort
SELECT + 16 + + 37
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT + CASE + COUNT( * ) WHEN ( CAST( - 71 AS SIGNED ) ) THEN + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + CASE + COUNT ( * ) WHEN ( CAST ( - 71 AS INTEGER ) ) THEN + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ( - 72 )
----
-72

query I rowsort
SELECT DISTINCT + 35 * 37 * ( + 67 ) + - 6 + + 90 * - - ( 60 )
----
92159

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT - 68 * + COUNT( * ) + - 17
----
-85

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - 68 * + COUNT ( * ) + - 17
----
-85

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT CASE WHEN 29 IS NOT NULL THEN - 0 + - 53 + 49 * - 7 * ( - - COUNT( * ) ) + - 70 WHEN NOT NULL IS NULL THEN NULL ELSE - 45 END, COUNT( * ) AS col1
----
-466
1

skipif mysql # not compatible
query II rowsort label-3345
SELECT CASE WHEN 29 IS NOT NULL THEN - 0 + - 53 + 49 * - 7 * ( - - COUNT ( * ) ) + - 70 WHEN NOT NULL IS NULL THEN NULL ELSE - 45 END, COUNT ( * ) AS col1
----
-466
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT + 42 * - 65 * ( - MIN( ALL - + 43 ) ) + + MAX( + 17 ) + + COUNT( 23 ) - ( 87 ) AS col0
----
-117459

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 42 * - 65 * ( - MIN ( ALL - + 43 ) ) + + MAX ( + 17 ) + + COUNT ( 23 ) - ( 87 ) AS col0
----
-117459

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT + COUNT( * ) + - - 94 + - 4 + - 7 + - 70 * + CAST( - MAX( - - 73 ) AS SIGNED ) * + + NULLIF ( - - 73, + 90 )
----
373114

skipif mysql # not compatible
query I rowsort label-3349
SELECT + COUNT ( * ) + - - 94 + - 4 + - 7 + - 70 * + CAST ( - MAX ( - - 73 ) AS INTEGER ) * + + NULLIF ( - - 73, + 90 )
----
373114

query II rowsort
SELECT ALL 79 * 20 AS col0, 48 * - - 9 AS col1
----
1580
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT ALL CAST( - 61 AS SIGNED ) * + COALESCE ( - 48, ( + + 30 ) * + 69, - 11 ) * + 36 + 65 * + - 45
----
102483

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL CAST ( - 61 AS INTEGER ) * + COALESCE ( - 48, ( + + 30 ) * + 69, - 11 ) * + 36 + 65 * + - 45
----
102483

query II rowsort
SELECT + - 16 * - - 46 AS col0, - 44
----
-736
-44

query I rowsort
SELECT + + 42 * - 92
----
-3864

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT DISTINCT ( - + 24 ) DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT ( - + 24 ) / + 23 AS col1
----
-1

query I rowsort
SELECT - 53 * - + 40
----
2120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT 97 + CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) * SUM( + + 0 ) * - + COUNT( * ) / 19 / + - 58 * - COUNT( * ) + CASE + + 18 WHEN 32 THEN 55 ELSE NULL END * - 87 + + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT 97 + CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) * SUM ( + + 0 ) * - + COUNT ( * ) / 19 / + - 58 * - COUNT ( * ) + CASE + + 18 WHEN 32 THEN 55 ELSE NULL END * - 87 + + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL COUNT( - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL COUNT ( - 51 ) AS col1
----
1

query II rowsort
SELECT - 10 + + + 36 AS col1, - 12 + 91 + ( + 70 )
----
26
149

query II rowsort
SELECT + 19 * 56, - 14 * + NULLIF ( ( - - 88 ), NULLIF ( - - 28, + + 3 ) ) AS col0
----
1064
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL - CASE + ( - 33 ) WHEN - 34 + - 77 THEN NULL ELSE + + COUNT( * ) * + 44 + + - NULLIF ( + + SUM( - - 3 ), - 89 ) END AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - CASE + ( - 33 ) WHEN - 34 + - 77 THEN NULL ELSE + + COUNT ( * ) * + 44 + + - NULLIF ( + + SUM ( - - 3 ), - 89 ) END AS col1
----
-41

query III rowsort
SELECT + 33 - + 67, + 43 * ( 58 ) + - 92 + - + 48 AS col0, 15 AS col2
----
-34
2354
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL NULLIF ( + MIN( DISTINCT - 81 ), 44 + CASE + 82 WHEN - 99 + COUNT( * ) THEN NULL WHEN - + 37 THEN NULL ELSE - 75 / + COALESCE ( - 10, COUNT( * ) ) END )
----
-81

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL NULLIF ( + MIN ( DISTINCT - 81 ), 44 + CASE + 82 WHEN - 99 + COUNT ( * ) THEN NULL WHEN - + 37 THEN NULL ELSE - 75 / + COALESCE ( - 10, COUNT ( * ) ) END )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3363
SELECT ALL + 60 * - 49, CAST( ( + + 11 ) AS SIGNED ) AS col2
----
-2940
11

skipif mysql # not compatible
query II rowsort label-3363
SELECT ALL + 60 * - 49, CAST ( ( + + 11 ) AS INTEGER ) AS col2
----
-2940
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT COUNT( * ) * 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT COUNT ( * ) * 73 AS col1
----
73

query I rowsort
SELECT - 11 col0
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT 18 + - 25 * - COUNT( * ) * - 30
----
-732

skipif mysql # not compatible
query I rowsort label-3367
SELECT 18 + - 25 * - COUNT ( * ) * - 30
----
-732

query I rowsort
SELECT 54 - 83
----
-29

query I rowsort
SELECT DISTINCT + ( + - 71 ) + - 50 AS col0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3370
SELECT - 33 * - 90 + + - 55 * CASE + 25 WHEN + 57 + + 25 + - - 88 * + 1 THEN NULL WHEN - 41 * NULLIF ( - SUM( DISTINCT + 2 ), CAST( NULL AS SIGNED ) ) * - - ( + 36 ) * + 58 - - CAST( SUM( + - 60 ) AS SIGNED ) - + 14 THEN + 2 ELSE NULL END + - 45 col0, 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-3370
SELECT - 33 * - 90 + + - 55 * CASE + 25 WHEN + 57 + + 25 + - - 88 * + 1 THEN NULL WHEN - 41 * NULLIF ( - SUM ( DISTINCT + 2 ), CAST ( NULL AS INTEGER ) ) * - - ( + 36 ) * + 58 - - CAST ( SUM ( + - 60 ) AS INTEGER ) - + 14 THEN + 2 ELSE NULL END + - 45 col0, 17 AS col1
----
NULL
17

query I rowsort
SELECT ALL 76 + + 91 col0
----
167

query I rowsort
SELECT DISTINCT - NULLIF ( + 19, - ( + 29 ) )
----
-19

query I rowsort
SELECT DISTINCT - 22 + + - 86
----
-108

query I rowsort
SELECT ALL + 68 + + ( - 16 ) + 89
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL - SUM( DISTINCT 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - SUM ( DISTINCT 97 ) col0
----
-97

query I rowsort
SELECT ALL - 4 + + + 20 * + - 63 AS col0
----
-1264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT 53 + + COALESCE ( + COUNT( * ), + 19 DIV 78 * 80 - 18 + + - 81 DIV + 51, 97 ) + - 69
----
-15

skipif mysql # not compatible
query I rowsort label-3377
SELECT 53 + + COALESCE ( + COUNT ( * ), + 19 / 78 * 80 - 18 + + - 81 / + 51, 97 ) + - 69
----
-15

query I rowsort
SELECT ALL - ( - + 65 ) + - 42
----
23

query I rowsort
SELECT ALL + 59 + - + 45 * + 91
----
-4036

query I rowsort
SELECT - 51 * + ( - - 62 ) + - 28
----
-3190

query I rowsort
SELECT 43 * 21 col0
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3382
SELECT 60 * + AVG ( DISTINCT - - 70 ) + + + COUNT( * ) * - + AVG ( ALL + - CAST( NULL AS SIGNED ) ), - 10 * + COALESCE ( - 56, + COUNT( * ), - - 14 + + 50 ) AS col0
----
NULL
560

skipif mysql # not compatible
query II rowsort label-3382
SELECT 60 * + AVG ( DISTINCT - - 70 ) + + + COUNT ( * ) * - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ), - 10 * + COALESCE ( - 56, + COUNT ( * ), - - 14 + + 50 ) AS col0
----
NULL
560

query I rowsort
SELECT 53 * - ( - 72 ) * 15
----
57240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT 59 + + MIN( 76 ) DIV - ( - - 8 )
----
50

skipif mysql # not compatible
query I rowsort label-3384
SELECT 59 + + MIN ( 76 ) / - ( - - 8 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3385
SELECT CASE + 64 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( * ) * 14 * 66 * ( 23 ) + MIN( 88 ) + 60 + + 48 END * + - 48 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT CASE + 64 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( * ) * 14 * 66 * ( 23 ) + MIN ( 88 ) + 60 + + 48 END * + - 48 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ALL - ( + 59 ) + + MAX( DISTINCT 0 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - ( + 59 ) + + MAX ( DISTINCT 0 ) AS col0
----
-59

query III rowsort
SELECT 37, + 34 + - 34 AS col2, + 45 * + 18 * 78 AS col2
----
37
0
63180

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL 85 + 56 * - - NULLIF ( + 49, - 67 * + - 64 / + + 38 ) * - ( ( - 16 ) ) + - + ( - 69 ) + - COUNT( * ) * + + 38 - - 31 - + 50
----
44001

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL 85 + 56 * - - NULLIF ( + 49, - 67 * + - 64 / + + 38 ) * - ( ( - 16 ) ) + - + ( - 69 ) + - COUNT ( * ) * + + 38 - - 31 - + 50
----
44001

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT MIN( DISTINCT ( - 58 ) ) * 50
----
-2900

skipif mysql # not compatible
query I rowsort label-3390
SELECT MIN ( DISTINCT ( - 58 ) ) * 50
----
-2900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3391
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, 22 + + 55 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 22 + + 55 AS col1
----
NULL
77

query I rowsort
SELECT DISTINCT CASE 84 WHEN - 3 THEN 89 - 82 WHEN 26 - 55 * + 46 THEN NULL END * 94 AS col1
----
NULL

query I rowsort
SELECT 65 + 54 AS col0
----
119

query I rowsort
SELECT 3 + 28
----
31

query I rowsort
SELECT 74 + + 10 AS col0
----
84

query I rowsort
SELECT 10 + + 5 col2
----
15

query I rowsort
SELECT DISTINCT 43 * + 7 AS col2
----
301

query I rowsort
SELECT 22 * - 24 AS col0
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL 78 * - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL 78 * - COUNT ( * ) AS col0
----
-78

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

skipif mysql # not compatible
query I rowsort label-3400
SELECT 93 * - COUNT ( * ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL - 98 * + COUNT( DISTINCT - 15 * 90 )
----
-98

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - 98 * + COUNT ( DISTINCT - 15 * 90 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + 43 - - 7 * - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + 43 - - 7 * - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT DISTINCT - 80 * 82
----
-6560

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL 65 DIV 22 col0
----
2

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL 65 / 22 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ( - 18 ) + 92 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3405
SELECT ( - 18 ) + 92 * + COUNT ( * )
----
74

query I rowsort
SELECT ( 82 ) * 61
----
5002

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT COUNT( * ) * 95
----
95

skipif mysql # not compatible
query I rowsort label-3407
SELECT COUNT ( * ) * 95
----
95

query I rowsort
SELECT ALL 12 + 39
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT ALL COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL COUNT ( * ) / COUNT ( * )
----
1

query I rowsort
SELECT 54 + + 53
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT - 90 + COUNT( 68 + 56 )
----
-89

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT - 90 + COUNT ( 68 + 56 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT ALL + 36 + - 37 DIV 30
----
35

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL + 36 + - 37 / 30
----
35

query I rowsort
SELECT ALL 69 * - 16 AS col0
----
-1104

query I rowsort
SELECT DISTINCT NULLIF ( 73, - 42 - ( + 62 + 63 ) / + 7 ) + CASE WHEN NOT 99 NOT BETWEEN NULL AND ( 20 ) THEN NULL ELSE 80 * - 78 END
----
-6167

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT - MIN( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-3415
SELECT - MIN ( 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3416
SELECT DISTINCT 4 * CAST( + 26 AS SIGNED )
----
104

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT 4 * CAST ( + 26 AS INTEGER )
----
104

query I rowsort
SELECT DISTINCT 4 * - 48 + 9 col0
----
-183

query I rowsort
SELECT 63 * 2 AS col1
----
126

query I rowsort
SELECT ALL - 13 * 31 + + 99
----
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT ALL CAST( NULL AS SIGNED ) * + 17 + + 47 * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL CAST ( NULL AS INTEGER ) * + 17 + + 47 * 44
----
NULL

query I rowsort
SELECT - 47 * - 35 - + 83
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT SUM( 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3422
SELECT SUM ( 95 ) AS col0
----
95

query I rowsort
SELECT 88 * - 98
----
-8624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT + COALESCE ( 88, ( CAST( NULL AS SIGNED ) ), CASE 86 WHEN + ( + 43 ) * 52 THEN NULL WHEN - MAX( + 15 ) THEN NULL ELSE - 15 END ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3424
SELECT + COALESCE ( 88, ( CAST ( NULL AS INTEGER ) ), CASE 86 WHEN + ( + 43 ) * 52 THEN NULL WHEN - MAX ( + 15 ) THEN NULL ELSE - 15 END ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT 15 * + COALESCE ( + COUNT( + CASE 67 WHEN COALESCE ( 31, + 38, - 86 * 56 ) THEN ( + 71 ) ELSE NULL END ), - 79 ) - ( - COUNT( * ) + 35 )
----
-34

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT 15 * + COALESCE ( + COUNT ( + CASE 67 WHEN COALESCE ( 31, + 38, - 86 * 56 ) THEN ( + 71 ) ELSE NULL END ), - 79 ) - ( - COUNT ( * ) + 35 )
----
-34

query I rowsort
SELECT ALL - ( 18 ) col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT ALL MIN( + 12 ) * + 32 - - 30 DIV + 13
----
386

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL MIN ( + 12 ) * + 32 - - 30 / + 13
----
386

query I rowsort
SELECT 78 * - 78 AS col2
----
-6084

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT ALL - 1 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - 1 / 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - NULLIF ( + 33, COALESCE ( - ( + 74 ), 13 * - 71, 20 * SUM( DISTINCT + 84 ) ) ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - NULLIF ( + 33, COALESCE ( - ( + 74 ), 13 * - 71, 20 * SUM ( DISTINCT + 84 ) ) ) col0
----
-33

query I rowsort
SELECT + 9 * 42 - 96 * + 28 AS col0
----
-2310

query I rowsort
SELECT ALL + 2 * 29
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL CASE + ( + CASE 75 WHEN 47 - - CAST( + CAST( NULLIF ( ( + 41 ), + ( 77 ) * 18 ) AS SIGNED ) AS SIGNED ) THEN - 15 + 42 ELSE NULL END ) WHEN - 77 + + 38 THEN + ( - 22 ) * 14 + 6 WHEN + 73 THEN NULL WHEN - 19 + ( 33 ) THEN NULL END * + 32 - ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL CASE + ( + CASE 75 WHEN 47 - - CAST ( + CAST ( NULLIF ( ( + 41 ), + ( 77 ) * 18 ) AS INTEGER ) AS INTEGER ) THEN - 15 + 42 ELSE NULL END ) WHEN - 77 + + 38 THEN + ( - 22 ) * 14 + 6 WHEN + 73 THEN NULL WHEN - 19 + ( 33 ) THEN NULL END * + 32 - ( 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT - COALESCE ( - 7, CASE - 48 WHEN 32 / - MAX( 65 ) THEN - 9 WHEN 37 + - 0 * 0 THEN NULL ELSE - CAST( 85 AS SIGNED ) END ) * 26 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-3434
SELECT - COALESCE ( - 7, CASE - 48 WHEN 32 / - MAX ( 65 ) THEN - 9 WHEN 37 + - 0 * 0 THEN NULL ELSE - CAST ( 85 AS INTEGER ) END ) * 26 AS col1
----
182

query I rowsort
SELECT - 56 * + 11
----
-616

query I rowsort
SELECT ALL + + ( 29 ) * 34
----
986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT - CASE 38 WHEN 40 + + CAST( NULL AS SIGNED ) THEN ( 65 ) + 49 * 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT - CASE 38 WHEN 40 + + CAST ( NULL AS INTEGER ) THEN ( 65 ) + 49 * 3 END AS col0
----
NULL

query I rowsort
SELECT + - 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT + - SUM( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + - SUM ( 71 )
----
-71

query I rowsort
SELECT DISTINCT ( + 34 ) AS col1
----
34

query I rowsort
SELECT ALL 59 * + 63
----
3717

query I rowsort
SELECT - - 38 + + 4
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT + - 99 DIV - 32
----
3

skipif mysql # not compatible
query I rowsort label-3443
SELECT + - 99 / - 32
----
3

query I rowsort
SELECT ALL + NULLIF ( ( + 13 ), - 53 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT - + 13 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT - + 13 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 49 * 45
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + - 38 + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3447
SELECT + - 38 + + COUNT ( * )
----
-37

query I rowsort
SELECT ALL 58 + 23 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3449
SELECT + 64 - + CASE + 61 WHEN - 72 + + 2 DIV + 87 THEN 66 DIV 49 WHEN 82 THEN 46 WHEN ( ( + COALESCE ( + COUNT( * ), - 37 * + ( COUNT( * ) DIV - 36 ) + 74, 47 * - 70 ) ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) * + 71 THEN NULL ELSE - 18 + 89 END
----
-7

skipif mysql # not compatible
query I rowsort label-3449
SELECT + 64 - + CASE + 61 WHEN - 72 + + 2 / + 87 THEN 66 / 49 WHEN 82 THEN 46 WHEN ( ( + COALESCE ( + COUNT ( * ), - 37 * + ( COUNT ( * ) / - 36 ) + 74, 47 * - 70 ) ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * + 71 THEN NULL ELSE - 18 + 89 END
----
-7

query I rowsort
SELECT ALL - NULLIF ( - ( 12 ), + 21 ) * ( 73 ) col0
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL + 77 * SUM( + 33 )
----
2541

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + 77 * SUM ( + 33 )
----
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT MAX( ALL 98 ) + - COUNT( ALL 5 )
----
97

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT MAX ( ALL 98 ) + - COUNT ( ALL 5 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT 63 + + 70 * COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT 63 + + 70 * COUNT ( * )
----
133

query I rowsort
SELECT ALL NULLIF ( + + 9, 14 ) + 84 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - 28 * + 56 * + MAX( DISTINCT - 41 * 30 )
----
1928640

skipif mysql # not compatible
query I rowsort label-3455
SELECT - 28 * + 56 * + MAX ( DISTINCT - 41 * 30 )
----
1928640

query I rowsort
SELECT + 93 + + 92 * 25 AS col1
----
2393

query I rowsort
SELECT + 4 + 69
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT ALL 75 DIV + 65
----
1

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL 75 / + 65
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT + MIN( DISTINCT 59 ) + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3459
SELECT + MIN ( DISTINCT 59 ) + COUNT ( * ) AS col1
----
60

query I rowsort
SELECT + ( - + 38 ) - 48 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3461
SELECT ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT COUNT( - 52 ) * + ( 82 ) + + CAST( CAST( COALESCE ( - 60, 10, 47 * + 75 ) AS SIGNED ) - - 27 AS SIGNED ) col0
----
49

skipif mysql # not compatible
query I rowsort label-3462
SELECT COUNT ( - 52 ) * + ( 82 ) + + CAST ( CAST ( COALESCE ( - 60, 10, 47 * + 75 ) AS INTEGER ) - - 27 AS INTEGER ) col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL 12 / + CAST( NULL AS SIGNED ) - CASE - 27 WHEN - 3 / 68 THEN NULL WHEN - 11 / 86 THEN 57 / 89 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL 12 / + CAST ( NULL AS INTEGER ) - CASE - 27 WHEN - 3 / 68 THEN NULL WHEN - 11 / 86 THEN 57 / 89 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT + COALESCE ( 62, ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * 12, COUNT( * ) + + 82, - COALESCE ( + 47, - 27 + + 69 * 5 ) + 5 )
----
62

skipif mysql # not compatible
query I rowsort label-3464
SELECT + COALESCE ( 62, ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 12, COUNT ( * ) + + 82, - COALESCE ( + 47, - 27 + + 69 * 5 ) + 5 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT ALL 18 DIV - ( + 73 ) - + NULLIF ( - 55 - + 5, + 5 )
----
60

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL 18 / - ( + 73 ) - + NULLIF ( - 55 - + 5, + 5 )
----
60

query I rowsort
SELECT + ( 15 ) AS col1
----
15

query I rowsort
SELECT DISTINCT 15 * - 12
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + 27 + + 54 + - COALESCE ( COUNT( 20 ), - 83 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3468
SELECT + 27 + + 54 + - COALESCE ( COUNT ( 20 ), - 83 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ( + MAX( ALL + 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-3469
SELECT ( + MAX ( ALL + 37 ) )
----
37

query I rowsort
SELECT ALL 50 * + + 20
----
1000

query I rowsort
SELECT ALL 55 * 15 - - NULLIF ( - 95, - 13 ) * 92 AS col0
----
-7915

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + SUM( + 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT + SUM ( + 0 ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT 94 DIV ( - 43 ) + ( 6 )
----
4

skipif mysql # not compatible
query I rowsort label-3473
SELECT 94 / ( - 43 ) + ( 6 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3474
SELECT ALL + 49 DIV - MAX( CAST( 46 AS SIGNED ) ) + + 11
----
10

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL + 49 / - MAX ( CAST ( 46 AS INTEGER ) ) + + 11
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT - 77 DIV 27 * 3
----
-6

skipif mysql # not compatible
query I rowsort label-3475
SELECT - 77 / 27 * 3
----
-6

query I rowsort
SELECT - + 27 + + 17 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL - 74 * SUM( - 60 ) + + 39 AS col2
----
4479

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - 74 * SUM ( - 60 ) + + 39 AS col2
----
4479

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3478
SELECT CAST( + 25 AS SIGNED ) * + 44 + - 75 DIV 63 col2
----
1099

skipif mysql # not compatible
query I rowsort label-3478
SELECT CAST ( + 25 AS INTEGER ) * + 44 + - 75 / 63 col2
----
1099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT + - MAX( ALL 21 ) DIV COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3479
SELECT + - MAX ( ALL 21 ) / COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT - + 78 + NULLIF ( COUNT( * ), COUNT( - NULLIF ( - ( 71 ), + 68 * + 69 + 73 ) ) + 12 )
----
-77

skipif mysql # not compatible
query I rowsort label-3480
SELECT - + 78 + NULLIF ( COUNT ( * ), COUNT ( - NULLIF ( - ( 71 ), + 68 * + 69 + 73 ) ) + 12 )
----
-77

query I rowsort
SELECT + + 67 * - 43 - 77 * - 58
----
1585

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + MAX( ALL + - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-3482
SELECT + MAX ( ALL + - 87 )
----
-87

query I rowsort
SELECT - - 3 + - 36
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - COUNT( * ) + 42 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3484
SELECT - COUNT ( * ) + 42 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT - - 6 * + + COUNT( * ) + + 86
----
92

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT - - 6 * + + COUNT ( * ) + + 86
----
92

query I rowsort
SELECT ALL + 38 * + 25 + 4 + 72
----
1026

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3487
SELECT - CAST( - + 19 AS SIGNED ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT - CAST ( - + 19 AS INTEGER ) / 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - COUNT( * ) + - 58
----
-59

skipif mysql # not compatible
query I rowsort label-3488
SELECT - COUNT ( * ) + - 58
----
-59

query I rowsort
SELECT DISTINCT - - 14 * 90 AS col1
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL + - CASE 36 WHEN - COUNT( * ) THEN + 31 WHEN + 61 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL + - CASE 36 WHEN - COUNT ( * ) THEN + 31 WHEN + 61 THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL 35 + - - 49 + - 41 DIV + 96
----
84

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL 35 + - - 49 + - 41 / + 96
----
84

query I rowsort
SELECT - 40 * + ( - 15 )
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3493
SELECT ALL - COUNT( * ) + - CASE + 30 WHEN COUNT( * ) + 74 THEN NULL ELSE COUNT( * ) DIV + 42 END * + CASE ( - 83 ) WHEN + 55 - SUM( - ( - 42 ) ) THEN NULL ELSE 79 + 15 END
----
-1

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - COUNT ( * ) + - CASE + 30 WHEN COUNT ( * ) + 74 THEN NULL ELSE COUNT ( * ) / + 42 END * + CASE ( - 83 ) WHEN + 55 - SUM ( - ( - 42 ) ) THEN NULL ELSE 79 + 15 END
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL + 73 - - + 32 + + CAST( NULL AS SIGNED ) + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + 73 - - + 32 + + CAST ( NULL AS INTEGER ) + 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT 53 col1, COUNT( * ) * - 70
----
53
-70

skipif mysql # not compatible
query II rowsort label-3495
SELECT 53 col1, COUNT ( * ) * - 70
----
53
-70

query I rowsort
SELECT - 5 * - + 59
----
295

query I rowsort
SELECT ALL + 0 * 43
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3498
SELECT - COUNT( * ) AS col0, + 94 + + - ( - 18 ) DIV 56
----
-1
94

skipif mysql # not compatible
query II rowsort label-3498
SELECT - COUNT ( * ) AS col0, + 94 + + - ( - 18 ) / 56
----
-1
94

query I rowsort
SELECT + 87 + - ( - - 58 )
----
29

query I rowsort
SELECT ALL 69 - 90
----
-21

query I rowsort
SELECT ALL + 1 * - 50
----
-50

query I rowsort
SELECT + 1 * + - NULLIF ( 82, 89 * 89 ) * 13 + 52 AS col1
----
-1014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT 68 * - 36 DIV + - 36 * ( - COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-3503
SELECT 68 * - 36 / + - 36 * ( - COUNT ( * ) )
----
-68

query I rowsort
SELECT + 0 * - 80 * + + 98 - 44 * - 58
----
2552

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT ( + 6 ) DIV + 93 - 70 * + 75 AS col2
----
-5250

skipif mysql # not compatible
query I rowsort label-3505
SELECT ( + 6 ) / + 93 - 70 * + 75 AS col2
----
-5250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT ALL COUNT( * ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL COUNT ( * ) / 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT CAST( NULL AS SIGNED ) + MAX( DISTINCT 55 ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 55 ) * - 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT DISTINCT NULLIF ( 46, + - 75 + ( 86 + - 43 ) * - 18 ) DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT NULLIF ( 46, + - 75 + ( 86 + - 43 ) * - 18 ) / + 64
----
0

query I rowsort
SELECT ALL - NULLIF ( 77, 84 )
----
-77

query I rowsort
SELECT ALL + 87 + - + 73 AS col1
----
14

query I rowsort
SELECT ( 90 ) * + - 23
----
-2070

query I rowsort
SELECT ALL ( + 89 ) + + + 4
----
93

query I rowsort
SELECT ALL - ( + - 51 ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT 96 * - 24 - + - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT 96 * - 24 - + - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL CASE ( 22 ) WHEN COUNT( * ) * 98 THEN - 12 END + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL CASE ( 22 ) WHEN COUNT ( * ) * 98 THEN - 12 END + 73
----
NULL

query I rowsort
SELECT 20 * - + 13
----
-260

query I rowsort
SELECT - ( - 79 ) * + 25
----
1975

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT COUNT( * ), 96 AS col1
----
1
96

skipif mysql # not compatible
query II rowsort label-3518
SELECT COUNT ( * ), 96 AS col1
----
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL + 35 + - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + 35 + - COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT DISTINCT - + COUNT( * ), 20 + 81 AS col0
----
-1
101

skipif mysql # not compatible
query II rowsort label-3520
SELECT DISTINCT - + COUNT ( * ), 20 + 81 AS col0
----
-1
101

query I rowsort
SELECT ALL + 60 + 61
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT 49, - COUNT( * ) AS col2
----
49
-1

skipif mysql # not compatible
query II rowsort label-3522
SELECT 49, - COUNT ( * ) AS col2
----
49
-1

query I rowsort
SELECT DISTINCT 65 + + 86 AS col1
----
151

query I rowsort
SELECT + 4 * 14
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3525
SELECT ALL + COUNT( * ) * + 24 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + COUNT ( * ) * + 24 / - 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT 35 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3526
SELECT 35 / 86 AS col0
----
0

query I rowsort
SELECT ALL 83 - + 96
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT CAST( NULL AS SIGNED ) * - - COALESCE ( + 62, - 52, - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT CAST ( NULL AS INTEGER ) * - - COALESCE ( + 62, - 52, - 58 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL + 78 * NULLIF ( + ( - + CAST( COUNT( * ) AS SIGNED ) ), 73 * 59 )
----
-78

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL + 78 * NULLIF ( + ( - + CAST ( COUNT ( * ) AS INTEGER ) ), 73 * 59 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT 79 - SUM( - + 66 )
----
145

skipif mysql # not compatible
query I rowsort label-3530
SELECT 79 - SUM ( - + 66 )
----
145

query I rowsort
SELECT 53 + + - 16 * - ( + 30 )
----
533

query I rowsort
SELECT 88 * - - 57 col1
----
5016

query I rowsort
SELECT ALL + 5 * - + 68 AS col2
----
-340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT NULLIF ( + - 69, NULLIF ( + - 71, - 73 * - 63 + - CAST( CASE COUNT( * ) WHEN 13 + 51 THEN + COUNT( * ) + 61 * 37 END AS SIGNED ) ) + + ( ( 78 ) + 34 ) ) * - COALESCE ( + 35, + 97 * - 83 ) AS col1
----
2415

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT NULLIF ( + - 69, NULLIF ( + - 71, - 73 * - 63 + - CAST ( CASE COUNT ( * ) WHEN 13 + 51 THEN + COUNT ( * ) + 61 * 37 END AS INTEGER ) ) + + ( ( 78 ) + 34 ) ) * - COALESCE ( + 35, + 97 * - 83 ) AS col1
----
2415

query I rowsort
SELECT ALL + 15 * - COALESCE ( - 16, - 60 * + 64 )
----
240

query I rowsort
SELECT 78 + - 95 AS col0
----
-17

query I rowsort
SELECT 88 + + 81
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT 97 + - NULLIF ( + 23, + 3 * - 71 + + 42 * ( 26 * + 2 ) ) + + COUNT( 8 )
----
75

skipif mysql # not compatible
query I rowsort label-3538
SELECT 97 + - NULLIF ( + 23, + 3 * - 71 + + 42 * ( 26 * + 2 ) ) + + COUNT ( 8 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT DISTINCT + MAX( + 80 ) + + + 10 * + + 49 * - 5 - - CASE WHEN + 39 + + 43 <> NULL THEN 50 + 19 * + 25 WHEN NOT ( - 65 ) BETWEEN CAST( NULL AS SIGNED ) * 61 AND - 67 + + 94 * - 45 THEN NULL END * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT + MAX ( + 80 ) + + + 10 * + + 49 * - 5 - - CASE WHEN + 39 + + 43 <> NULL THEN 50 + 19 * + 25 WHEN NOT ( - 65 ) BETWEEN CAST ( NULL AS INTEGER ) * 61 AND - 67 + + 94 * - 45 THEN NULL END * - 45
----
NULL

query I rowsort
SELECT 87 + + 96 col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT COALESCE ( + - 71, + + COUNT( * ), 13 ) + + 57 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3541
SELECT COALESCE ( + - 71, + + COUNT ( * ), 13 ) + + 57 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT ALL + 70 + - - COUNT( ALL - 47 ) DIV - 98 * 10
----
70

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + 70 + - - COUNT ( ALL - 47 ) / - 98 * 10
----
70

query I rowsort
SELECT ALL - 68 col0
----
-68

query I rowsort
SELECT DISTINCT 80 * + 30 * + + 71
----
170400

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL 84 + + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL 84 + + - COUNT ( * )
----
83

query I rowsort
SELECT DISTINCT - - 15 + 43 + 59
----
117

query I rowsort
SELECT ALL 98 + + 41
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - 68 * + COUNT( * ) * - - 2
----
-136

skipif mysql # not compatible
query I rowsort label-3548
SELECT - 68 * + COUNT ( * ) * - - 2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT COUNT( * ) + + + 70 * COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3549
SELECT COUNT ( * ) + + + 70 * COUNT ( * ) AS col1
----
71

query I rowsort
SELECT ALL 64 + 67 col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT MIN( ALL 13 ) * + - 77 + - 71 + + CASE - 66 + - 21 WHEN 74 THEN 93 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT MIN ( ALL 13 ) * + - 77 + - 71 + + CASE - 66 + - 21 WHEN 74 THEN 93 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 64 + 14
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3553
SELECT ALL - COUNT( * ) DIV - - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL - COUNT ( * ) / - - 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT SUM( 53 ) + + COALESCE ( + 16, - 88 ) * ( 19 * 13 ) AS col1
----
4005

skipif mysql # not compatible
query I rowsort label-3554
SELECT SUM ( 53 ) + + COALESCE ( + 16, - 88 ) * ( 19 * 13 ) AS col1
----
4005

query I rowsort
SELECT ALL + 31 * - ( + + 42 ) col2
----
-1302

query I rowsort
SELECT ALL 14 * + 28 AS col2
----
392

query II rowsort
SELECT - 84 + - - 9 AS col2, + 10 + + 42 * - 36 AS col0
----
-75
-1502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT - SUM( + 29 ) * - + COALESCE ( + - 40, MIN( 91 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT - SUM ( + 29 ) * - + COALESCE ( + - 40, MIN ( 91 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL 71 * + + 7 + ( MAX( - 89 ) ) + + 96
----
504

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL 71 * + + 7 + ( MAX ( - 89 ) ) + + 96
----
504

query I rowsort
SELECT 50 + + 86
----
136

query I rowsort
SELECT DISTINCT + 38 * + 2 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT 58 - - MAX( ALL 99 ) + + 25 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT 58 - - MAX ( ALL 99 ) + + 25 AS col1
----
182

query I rowsort
SELECT 82 * - 20
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - MIN( ALL - + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-3564
SELECT - MIN ( ALL - + 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3565
SELECT 88 + + COUNT( - CAST( NULL AS SIGNED ) ) + 94 col2
----
182

skipif mysql # not compatible
query I rowsort label-3565
SELECT 88 + + COUNT ( - CAST ( NULL AS INTEGER ) ) + 94 col2
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL 93 - - 63 + - + COUNT( * ) * NULLIF ( - + 72, ( + 62 ) + MIN( - 82 ) * - COALESCE ( 52 * 99 - 62, 3 * 41 + + 7 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL 93 - - 63 + - + COUNT ( * ) * NULLIF ( - + 72, ( + 62 ) + MIN ( - 82 ) * - COALESCE ( 52 * 99 - 62, 3 * 41 + + 7 ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT CAST( + COALESCE ( + 20, + 20 * + 44 ) AS SIGNED ) * 70
----
1400

skipif mysql # not compatible
query I rowsort label-3567
SELECT CAST ( + COALESCE ( + 20, + 20 * + 44 ) AS INTEGER ) * 70
----
1400

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT DISTINCT - 55 DIV - - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - 55 / - - 74 AS col1
----
0

query I rowsort
SELECT 72 * 28
----
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT ALL - 46 DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - 46 / - 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + COUNT( * ) * - - 31
----
31

skipif mysql # not compatible
query I rowsort label-3571
SELECT + COUNT ( * ) * - - 31
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT + 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT + 98 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 15 - 16 AS col1
----
-1

query I rowsort
SELECT ALL 27 * + 56 AS col2
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL + MIN( + - 15 ) + + 45 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL + MIN ( + - 15 ) + + 45 AS col0
----
30

query I rowsort
SELECT + 68 * + 28 AS col1
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 74 * - 88 * - 1 * MIN( + 30 ) AS col2
----
-195360

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 74 * - 88 * - 1 * MIN ( + 30 ) AS col2
----
-195360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT ALL 50 + - COUNT( * ) DIV ( + - NULLIF ( 29, - 16 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL 50 + - COUNT ( * ) / ( + - NULLIF ( 29, - 16 ) ) AS col1
----
50

query I rowsort
SELECT ALL + NULLIF ( 59, AVG ( 23 ) ) + + 89 AS col1
----
148

query I rowsort
SELECT - 38 - 48 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT - ( + 34 ) + - 54 * - 41 + + + CASE - SUM( DISTINCT - ( + 12 ) ) WHEN 55 THEN 13 WHEN - COALESCE ( 3, - NULLIF ( CASE + COUNT( * ) WHEN - 8 THEN - 20 + COUNT( * ) END, - 12 + 3 ) ) THEN 70 ELSE NULL END * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT - ( + 34 ) + - 54 * - 41 + + + CASE - SUM ( DISTINCT - ( + 12 ) ) WHEN 55 THEN 13 WHEN - COALESCE ( 3, - NULLIF ( CASE + COUNT ( * ) WHEN - 8 THEN - 20 + COUNT ( * ) END, - 12 + 3 ) ) THEN 70 ELSE NULL END * 11 AS col0
----
NULL

query I rowsort
SELECT ALL - 90 * - + 29 + - - 67
----
2677

query I rowsort
SELECT + 75 col0
----
75

query I rowsort
SELECT 21 * - 88 * - 30 * 41 + + 64 * - 93 AS col2
----
2267088

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT MAX( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3586
SELECT MAX ( + 95 )
----
95

query II rowsort
SELECT + + NULLIF ( + + 76, + 16 ) AS col2, - 15
----
76
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3588
SELECT ALL + CAST( NULL AS SIGNED ), 90 AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3588
SELECT ALL + CAST ( NULL AS INTEGER ), 90 AS col2
----
NULL
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3589
SELECT - CASE + + COUNT( * ) WHEN COUNT( * ) THEN + + CAST( - MIN( DISTINCT 72 ) AS SIGNED ) END * - 82 AS col2
----
-5904

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CASE + + COUNT ( * ) WHEN COUNT ( * ) THEN + + CAST ( - MIN ( DISTINCT 72 ) AS INTEGER ) END * - 82 AS col2
----
-5904

query I rowsort
SELECT ALL + - ( + 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT - 68 DIV COUNT( * ) * - 47
----
3196

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 68 / COUNT ( * ) * - 47
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT + 75 * + COUNT( * ) - - MAX( DISTINCT - 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT + 75 * + COUNT ( * ) - - MAX ( DISTINCT - 76 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - COALESCE ( - + 57, - COUNT( * ) * - + 52 + + 56 - 44 * + 55, COUNT( * ) ) * 73 AS col0
----
4161

skipif mysql # not compatible
query I rowsort label-3593
SELECT - COALESCE ( - + 57, - COUNT ( * ) * - + 52 + + 56 - 44 * + 55, COUNT ( * ) ) * 73 AS col0
----
4161

query I rowsort
SELECT ALL + + ( - 92 )
----
-92

query I rowsort
SELECT 78 * - 35 - - 6
----
-2724

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3596
SELECT DISTINCT + - 83 AS col1, - 69 * COUNT( * ) DIV - ( 6 )
----
-83
11

skipif mysql # not compatible
query II rowsort label-3596
SELECT DISTINCT + - 83 AS col1, - 69 * COUNT ( * ) / - ( 6 )
----
-83
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - - ( - ( COUNT( * ) ) ) * 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3597
SELECT - - ( - ( COUNT ( * ) ) ) * 81 AS col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3598
SELECT ALL 93 DIV 99 col2, + 42 - + NULLIF ( COUNT( * ), + 64 * - 26 )
----
0
41

skipif mysql # not compatible
query II rowsort label-3598
SELECT ALL 93 / 99 col2, + 42 - + NULLIF ( COUNT ( * ), + 64 * - 26 )
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT + SUM( DISTINCT + 77 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-3599
SELECT + SUM ( DISTINCT + 77 ) col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL + CAST( 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + CAST ( 95 AS INTEGER )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT MIN( ALL + - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3601
SELECT MIN ( ALL + - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT + SUM( - 20 ) - - 75 * + - CAST( NULL AS SIGNED ) * 0 * + 27 + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT + SUM ( - 20 ) - - 75 * + - CAST ( NULL AS INTEGER ) * 0 * + 27 + 82 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL CAST( + 52 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL CAST ( + 52 AS INTEGER ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3604
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-3604
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 67
----
NULL
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT DISTINCT 51 + + - 19 DIV COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT 51 + + - 19 / COUNT ( * ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT ALL 10 + + - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL 10 + + - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3607
SELECT - ( - + COUNT( * ) ), + 6 + - MAX( ALL + 77 ) DIV 38 AS col1
----
1
4

skipif mysql # not compatible
query II rowsort label-3607
SELECT - ( - + COUNT ( * ) ), + 6 + - MAX ( ALL + 77 ) / 38 AS col1
----
1
4

query II rowsort
SELECT + 80 * + + ( + + ( - 20 ) ), - 87 * 74 AS col1
----
-1600
-6438

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + 92 + COUNT( * ) + 56 + SUM( ALL + + 16 ) col0
----
165

skipif mysql # not compatible
query I rowsort label-3609
SELECT + 92 + COUNT ( * ) + 56 + SUM ( ALL + + 16 ) col0
----
165

query I rowsort
SELECT + ( + + 30 ) + + 8
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT ALL 72 col0, SUM( DISTINCT + 13 )
----
72
13

skipif mysql # not compatible
query II rowsort label-3611
SELECT ALL 72 col0, SUM ( DISTINCT + 13 )
----
72
13

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3612
SELECT 69 col1, + CAST( NULL AS DECIMAL ) * + 49 AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-3612
SELECT 69 col1, + CAST ( NULL AS REAL ) * + 49 AS col2
----
69
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + 44 + ( - + 83 ) - + 53 DIV - 27
----
-38

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 44 + ( - + 83 ) - + 53 / - 27
----
-38

query I rowsort
SELECT ALL 50 + + 98 + + 89
----
237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3615
SELECT DISTINCT 9 + - + MAX( - 99 ) DIV + - 72, SUM( ALL CAST( NULL AS SIGNED ) ) col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3615
SELECT DISTINCT 9 + - + MAX ( - 99 ) / + - 72, SUM ( ALL CAST ( NULL AS INTEGER ) ) col1
----
8
NULL

query I rowsort
SELECT DISTINCT 73 + + 46 AS col1
----
119

query I rowsort
SELECT ALL + 52 + + + 43 - + 57 AS col0
----
38

query I rowsort
SELECT + 38 + - 97
----
-59

query II rowsort
SELECT ALL 82, + 31 + 75 AS col0
----
82
106

query I rowsort
SELECT + 14 + - 50
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3621
SELECT - COALESCE ( - + 69, + - COUNT( * ), + 65 ) AS col0, 76 DIV + 18 col0
----
69
4

skipif mysql # not compatible
query II rowsort label-3621
SELECT - COALESCE ( - + 69, + - COUNT ( * ), + 65 ) AS col0, 76 / + 18 col0
----
69
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3622
SELECT 82 AS col2, - COALESCE ( - 71, - CAST( NULL AS SIGNED ) * 43, - + 62 )
----
82
71

skipif mysql # not compatible
query II rowsort label-3622
SELECT 82 AS col2, - COALESCE ( - 71, - CAST ( NULL AS INTEGER ) * 43, - + 62 )
----
82
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT DISTINCT + 89 DIV - + 64
----
-1

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + 89 / - + 64
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3624
SELECT ALL - 30 + + 30 + - MIN( DISTINCT + 7 ) * + CAST( + COUNT( DISTINCT + CAST( 33 AS SIGNED ) ) AS SIGNED ) DIV - 51 col0
----
0

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - 30 + + 30 + - MIN ( DISTINCT + 7 ) * + CAST ( + COUNT ( DISTINCT + CAST ( 33 AS INTEGER ) ) AS INTEGER ) / - 51 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT + + 50 DIV 59 * 63
----
0

skipif mysql # not compatible
query I rowsort label-3625
SELECT + + 50 / 59 * 63
----
0

query I rowsort
SELECT - + ( + 77 ) * - 51
----
3927

query I rowsort
SELECT ALL - - 85 * ( + + 60 ) AS col1
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT NULLIF ( + + 37, 31 * + + 55 * - CASE + 16 WHEN + 24 + + MAX( DISTINCT 10 ) * COUNT( * ) THEN - COUNT( DISTINCT 75 ) WHEN + 41 THEN - 74 * - 91 ELSE NULL END * COALESCE ( 51, 76 - - 96 ) + + 78 )
----
37

skipif mysql # not compatible
query I rowsort label-3628
SELECT NULLIF ( + + 37, 31 * + + 55 * - CASE + 16 WHEN + 24 + + MAX ( DISTINCT 10 ) * COUNT ( * ) THEN - COUNT ( DISTINCT 75 ) WHEN + 41 THEN - 74 * - 91 ELSE NULL END * COALESCE ( 51, 76 - - 96 ) + + 78 )
----
37

query I rowsort
SELECT + - 75 * ( - 7 )
----
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT ( + COALESCE ( + 0, + 96 + + CAST( NULL AS SIGNED ), - + 23 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT ( + COALESCE ( + 0, + 96 + + CAST ( NULL AS INTEGER ), - + 23 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL COUNT( * ) * - 47 * - 59
----
2773

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL COUNT ( * ) * - 47 * - 59
----
2773

query I rowsort
SELECT DISTINCT + - ( - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - 70 + COUNT( * ) - + 7
----
-76

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 70 + COUNT ( * ) - + 7
----
-76

query I rowsort
SELECT - - 49 * 26 * + - ( + - 87 ) + 66
----
110904

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + + 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3635
SELECT + + 49 * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - + COUNT( * ) * + COUNT( DISTINCT + - 3 ) + - - 82 * 66 AS col0
----
5411

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + COUNT ( * ) * + COUNT ( DISTINCT + - 3 ) + - - 82 * 66 AS col0
----
5411

query I rowsort
SELECT 32 * - 7 + 5
----
-219

query I rowsort
SELECT - 2 - - 22 + - 88 AS col2
----
-68

query I rowsort
SELECT DISTINCT - 21 * - + 22
----
462

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT ALL + 23 AS col2, - MIN( + 22 ) + + + 83 col2
----
23
61

skipif mysql # not compatible
query II rowsort label-3640
SELECT ALL + 23 AS col2, - MIN ( + 22 ) + + + 83 col2
----
23
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - COUNT( * ) + ( + + 50 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3641
SELECT - COUNT ( * ) + ( + + 50 ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT ALL - 46 * COUNT( * ) DIV 45 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - 46 * COUNT ( * ) / 45 col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT - 76 + - 30 AS col1, - 19 * + - NULLIF ( COUNT( * ), - 29 * + 56 ) + + 62 AS col0
----
-106
81

skipif mysql # not compatible
query II rowsort label-3643
SELECT - 76 + - 30 AS col1, - 19 * + - NULLIF ( COUNT ( * ), - 29 * + 56 ) + + 62 AS col0
----
-106
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3644
SELECT + 67 * + 82 + - + 18 * + + 49 DIV - 47 + COUNT( * ) AS col2
----
5513

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 67 * + 82 + - + 18 * + + 49 / - 47 + COUNT ( * ) AS col2
----
5513

query I rowsort
SELECT ALL - 56 * 4 AS col2
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT DISTINCT + 1 + + + CASE - - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN - COALESCE ( - - 32, - 86 ) + + 47 * + NULLIF ( 94, + MIN( 15 ) ) END + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + 1 + + + CASE - - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN - COALESCE ( - - 32, - 86 ) + + 47 * + NULLIF ( 94, + MIN ( 15 ) ) END + - 33 AS col0
----
NULL

query I rowsort
SELECT 97 + + 37 AS col1
----
134

query I rowsort
SELECT ALL - 83 + 88 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3649
SELECT COUNT( * ) DIV + - 47, + 1 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3649
SELECT COUNT ( * ) / + - 47, + 1 AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3650
SELECT 78 * + - 82 AS col0, - 78 + COALESCE ( - - 44, NULLIF ( + NULLIF ( + ( 0 ), + 5 - + COUNT( * ) ), CAST( NULL AS SIGNED ) + 47 ), 93 )
----
-6396
-34

skipif mysql # not compatible
query II rowsort label-3650
SELECT 78 * + - 82 AS col0, - 78 + COALESCE ( - - 44, NULLIF ( + NULLIF ( + ( 0 ), + 5 - + COUNT ( * ) ), CAST ( NULL AS INTEGER ) + 47 ), 93 )
----
-6396
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT ALL + 11 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL + 11 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT 87 * - CAST( - COUNT( + + 72 ) AS SIGNED ) * 68
----
5916

skipif mysql # not compatible
query I rowsort label-3652
SELECT 87 * - CAST ( - COUNT ( + + 72 ) AS INTEGER ) * 68
----
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL - 84 + + MIN( - 59 ) + - + CASE 22 WHEN 4 * - + COUNT( * ) THEN NULL ELSE + CASE - 46 WHEN ( - 15 ) + 10 THEN - 10 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - 84 + + MIN ( - 59 ) + - + CASE 22 WHEN 4 * - + COUNT ( * ) THEN NULL ELSE + CASE - 46 WHEN ( - 15 ) + 10 THEN - 10 END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3654
SELECT ALL COUNT( * ) DIV - + 23
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL COUNT ( * ) / - + 23
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3655
SELECT 97 / - CASE - 52 WHEN + 65 * - 35 THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT 97 / - CASE - 52 WHEN + 65 * - 35 THEN NULL WHEN + CAST ( NULL AS REAL ) THEN 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT COUNT( * ) * - ( + 24 ) * - + 84 + - 72 + - - 50 * 87 AS col2
----
6294

skipif mysql # not compatible
query I rowsort label-3656
SELECT COUNT ( * ) * - ( + 24 ) * - + 84 + - 72 + - - 50 * 87 AS col2
----
6294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ALL + 11 DIV - + COALESCE ( + COUNT( * ), 84 - - 19 * - 24, COUNT( * ) - 94 DIV ( + 37 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + 11 / - + COALESCE ( + COUNT ( * ), 84 - - 19 * - 24, COUNT ( * ) - 94 / ( + 37 ) ) AS col2
----
-11

query II rowsort
SELECT ALL 32 + + 0, - 36 + + - 77 - + 4 * + ( 42 ) AS col2
----
32
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT 13 * 95 * COUNT( * ) * 72
----
88920

skipif mysql # not compatible
query I rowsort label-3659
SELECT 13 * 95 * COUNT ( * ) * 72
----
88920

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL 50 * 88 * COUNT( * )
----
4400

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL 50 * 88 * COUNT ( * )
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT - COUNT( * ) + + - 62 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - COUNT ( * ) + + - 62 AS col1
----
-63

query I rowsort
SELECT 3 - 6 + + - 46 AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL - + CAST( + ( + CAST( - + 28 AS SIGNED ) ) AS SIGNED ) - + 69 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL - + CAST ( + ( + CAST ( - + 28 AS INTEGER ) ) AS INTEGER ) - + 69 AS col1
----
-41

query I rowsort
SELECT 86 * 2 + + 58 AS col1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ALL CASE - 37 WHEN - 29 THEN - - 5 END - 14 + - 15 - + - ( - COUNT( ALL - 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL CASE - 37 WHEN - 29 THEN - - 5 END - 14 + - 15 - + - ( - COUNT ( ALL - 14 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3666
SELECT ALL + 44 DIV - - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + 44 / - - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT 79 - + - ( - COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-3667
SELECT 79 - + - ( - COUNT ( * ) )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT ALL - 83 DIV - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - 83 / - + COUNT ( * )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 58 DIV 68 + - - 93 + - + 88 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3669
SELECT 58 / 68 + - - 93 + - + 88 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT 89 * 23 + + + 2 DIV - 94
----
2047

skipif mysql # not compatible
query I rowsort label-3670
SELECT 89 * 23 + + + 2 / - 94
----
2047

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT 48 * + + 0 - - MIN( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3671
SELECT 48 * + + 0 - - MIN ( 16 ) AS col0
----
16

query I rowsort
SELECT ALL 60 * + - 50 AS col1
----
-3000

query I rowsort
SELECT DISTINCT 65 * - 15
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL COUNT( * ) * COUNT( * ) - + 22 * - - 65 AS col1
----
-1429

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL COUNT ( * ) * COUNT ( * ) - + 22 * - - 65 AS col1
----
-1429

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT DISTINCT 22 * - 61 col1, + SUM( - NULLIF ( + 77, + - ( 57 ) * 96 ) ) AS col2
----
-1342
-77

skipif mysql # not compatible
query II rowsort label-3675
SELECT DISTINCT 22 * - 61 col1, + SUM ( - NULLIF ( + 77, + - ( 57 ) * 96 ) ) AS col2
----
-1342
-77

query I rowsort
SELECT DISTINCT - ( - 49 )
----
49

query II rowsort
SELECT + 88 AS col1, - 53
----
88
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL + 87 + + 89 / + CASE + - ( - 87 ) WHEN + 52 THEN + MIN( + 87 ) * 70 WHEN - 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + 87 + + 89 / + CASE + - ( - 87 ) WHEN + 52 THEN + MIN ( + 87 ) * 70 WHEN - 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 34 + 72
----
106

query II rowsort
SELECT 81, 54 AS col1
----
81
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT 97 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT 97 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3682
SELECT 15 DIV + 87 - ( 30 ) DIV COUNT( * ) - + 41, COUNT( * ) + 63 + 97 AS col0
----
-71
161

skipif mysql # not compatible
query II rowsort label-3682
SELECT 15 / + 87 - ( 30 ) / COUNT ( * ) - + 41, COUNT ( * ) + 63 + 97 AS col0
----
-71
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT 78 - - NULLIF ( - NULLIF ( + COUNT( * ), + 85 ), 49 ) - + 28 * - COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-3683
SELECT 78 - - NULLIF ( - NULLIF ( + COUNT ( * ), + 85 ), 49 ) - + 28 * - COUNT ( * )
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL + COUNT( * ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + COUNT ( * ) * 96
----
96

query I rowsort
SELECT 87 * + 19 col1
----
1653

query I rowsort
SELECT ALL 74 + + 97
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT + ( + - CASE 91 WHEN - NULLIF ( - 91, + 34 ) THEN - CASE + - 1 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 39 + + COUNT( * ) THEN 40 ELSE NULL END * 25 WHEN 10 THEN + 48 + - 41 WHEN + 96 THEN NULL WHEN 38 / + 75 + + 52 THEN - 91 + SUM( ALL 68 ) END ) * - AVG ( DISTINCT 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT + ( + - CASE 91 WHEN - NULLIF ( - 91, + 34 ) THEN - CASE + - 1 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 39 + + COUNT ( * ) THEN 40 ELSE NULL END * 25 WHEN 10 THEN + 48 + - 41 WHEN + 96 THEN NULL WHEN 38 / + 75 + + 52 THEN - 91 + SUM ( ALL 68 ) END ) * - AVG ( DISTINCT 30 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - SUM( - 95 ) + 12
----
107

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - SUM ( - 95 ) + 12
----
107

query I rowsort
SELECT 16 * + + 51 - NULLIF ( + 51, + 10 ) * - 74 * + 50 * + + 34
----
6416616

query II rowsort
SELECT 18 AS col1, - 48 AS col2
----
18
-48

query I rowsort
SELECT ALL + 25 * + - 2
----
-50

query I rowsort
SELECT 13 - - - 22 + 11 + - 52 * - 98
----
5098

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL COUNT( DISTINCT + + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL COUNT ( DISTINCT + + 81 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT + COUNT( * ) * - 39
----
-39

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + COUNT ( * ) * - 39
----
-39

query II rowsort
SELECT 5 col1, 58
----
5
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - 30 * 49 + - MAX( 10 ) + + NULLIF ( 38, + COALESCE ( + + 30, + 71, 68 ) )
----
-1442

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 30 * 49 + - MAX ( 10 ) + + NULLIF ( 38, + COALESCE ( + + 30, + 71, 68 ) )
----
-1442

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT COUNT( * ) * 78 col0
----
78

skipif mysql # not compatible
query I rowsort label-3697
SELECT COUNT ( * ) * 78 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL SUM( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL SUM ( + 49 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT 12 + + 16 DIV + 45 * - - 3 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3699
SELECT 12 + + 16 / + 45 * - - 3 AS col2
----
12

query I rowsort
SELECT 24 + 78
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3701
SELECT CASE + CAST( NULLIF ( - 50, + 17 ) AS DECIMAL ) WHEN - NULLIF ( + 29, + - NULLIF ( ( + 49 ), - 99 * - 39 ) ) THEN + 86 + + 66 END * + ( - 8 + - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT CASE + CAST ( NULLIF ( - 50, + 17 ) AS REAL ) WHEN - NULLIF ( + 29, + - NULLIF ( ( + 49 ), - 99 * - 39 ) ) THEN + 86 + + 66 END * + ( - 8 + - 49 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL ( + CAST( 1 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL ( + CAST ( 1 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT + 12 * + 15
----
180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3704
SELECT ALL + CASE + 25 WHEN 92 + + CAST( NULL AS DECIMAL ) THEN NULL WHEN 55 + - 37 / - 1 THEN + 76 * - COALESCE ( 7 + + 50, + 95 ) END / - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + CASE + 25 WHEN 92 + + CAST ( NULL AS REAL ) THEN NULL WHEN 55 + - 37 / - 1 THEN + 76 * - COALESCE ( 7 + + 50, + 95 ) END / - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + COUNT( * ) + 83
----
84

skipif mysql # not compatible
query I rowsort label-3705
SELECT + COUNT ( * ) + 83
----
84

query II rowsort
SELECT - + 50 col2, 96
----
-50
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3707
SELECT 93 + + 88 * - 42 + 82 + + - 33 DIV 68 DIV - 88 - - - CAST( 8 AS SIGNED ) * 44 * + ( + 97 ) AS col0
----
-37665

skipif mysql # not compatible
query I rowsort label-3707
SELECT 93 + + 88 * - 42 + 82 + + - 33 / 68 / - 88 - - - CAST ( 8 AS INTEGER ) * 44 * + ( + 97 ) AS col0
----
-37665

query I rowsort
SELECT - 52 + - 97 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT + 54 * - 87 * - MIN( ALL - - ( 8 ) ) AS col1
----
37584

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + 54 * - 87 * - MIN ( ALL - - ( 8 ) ) AS col1
----
37584

query I rowsort
SELECT + 1 + + 66 - + 54 + + + 27
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT NULLIF ( + CASE COUNT( * ) WHEN - 31 THEN NULL WHEN 20 / - 81 THEN - - 51 + - COALESCE ( 83, 63 * CAST( NULL AS SIGNED ) ) ELSE - ( 71 ) + 18 * - 80 END, COUNT( * ) ) * - COUNT( * ) AS col1
----
1511

skipif mysql # not compatible
query I rowsort label-3711
SELECT NULLIF ( + CASE COUNT ( * ) WHEN - 31 THEN NULL WHEN 20 / - 81 THEN - - 51 + - COALESCE ( 83, 63 * CAST ( NULL AS INTEGER ) ) ELSE - ( 71 ) + 18 * - 80 END, COUNT ( * ) ) * - COUNT ( * ) AS col1
----
1511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT DISTINCT + CAST( + SUM( ( + - 52 ) ) AS SIGNED ) * - 37 + + SUM( DISTINCT + 86 ) * 87 * ( 13 )
----
99190

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + CAST ( + SUM ( ( + - 52 ) ) AS INTEGER ) * - 37 + + SUM ( DISTINCT + 86 ) * 87 * ( 13 )
----
99190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT ALL 25 * 8 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL 25 * 8 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT + CAST( + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-3714
SELECT + CAST ( + 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3715
SELECT + NULLIF ( - 59, + COUNT( * ) * + 14 ) DIV 15 + + 22, CASE - 60 WHEN + COUNT( * ) - - 57 DIV - 34 THEN + 29 * COUNT( * ) ELSE - 82 END * - ( - 52 ) + 18 AS col2
----
19
-4246

skipif mysql # not compatible
query II rowsort label-3715
SELECT + NULLIF ( - 59, + COUNT ( * ) * + 14 ) / 15 + + 22, CASE - 60 WHEN + COUNT ( * ) - - 57 / - 34 THEN + 29 * COUNT ( * ) ELSE - 82 END * - ( - 52 ) + 18 AS col2
----
19
-4246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT + 58 * CAST( + 75 AS SIGNED ) * + MAX( ALL 64 ) + - NULLIF ( + 80, + 2 ) col2
----
278320

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 58 * CAST ( + 75 AS INTEGER ) * + MAX ( ALL 64 ) + - NULLIF ( + 80, + 2 ) col2
----
278320

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT COUNT( * ) * - 95 * - + 96 AS col1
----
9120

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT COUNT ( * ) * - 95 * - + 96 AS col1
----
9120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3718
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) + - 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3719
SELECT 83 * + 93 - - CAST( NULL AS SIGNED ) * - 71 AS col0, 82 + + 75 AS col2
----
NULL
157

skipif mysql # not compatible
query II rowsort label-3719
SELECT 83 * + 93 - - CAST ( NULL AS INTEGER ) * - 71 AS col0, 82 + + 75 AS col2
----
NULL
157

query I rowsort
SELECT DISTINCT 92 * 98
----
9016

query I rowsort
SELECT + 63 + 60 + + 67 AS col2
----
190

query I rowsort
SELECT + 21 * - 4 * - - 43 AS col1
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT DISTINCT MIN( 14 ) * - - COUNT( * ) + - 65 + - + 78 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT MIN ( 14 ) * - - COUNT ( * ) + - 65 + - + 78 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT SUM( ALL + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3724
SELECT SUM ( ALL + 6 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT ALL - 26 * 59 - + 29 * + CAST( + + ( - COUNT( * ) ) AS SIGNED ) + + + ( - 46 ) AS col2
----
-1551

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL - 26 * 59 - + 29 * + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) + + + ( - 46 ) AS col2
----
-1551

query I rowsort
SELECT + ( + 88 ) * + - 12
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - 91 + - COALESCE ( - + COUNT( * ), - ( - SUM( 39 ) ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3727
SELECT - 91 + - COALESCE ( - + COUNT ( * ), - ( - SUM ( 39 ) ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL + SUM( DISTINCT 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + SUM ( DISTINCT 17 ) col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT + CASE NULLIF ( - - 94, CAST( - COUNT( ALL + 45 ) AS SIGNED ) * + 42 ) WHEN + + 65 + - - 27 * - 74 THEN NULL WHEN AVG ( + 80 ) / ( - 99 ) + 7 THEN 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT + CASE NULLIF ( - - 94, CAST ( - COUNT ( ALL + 45 ) AS INTEGER ) * + 42 ) WHEN + + 65 + - - 27 * - 74 THEN NULL WHEN AVG ( + 80 ) / ( - 99 ) + 7 THEN 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT + 76 * COUNT( * ) col0
----
76

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT + 76 * COUNT ( * ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - COUNT( * ) * + 10
----
-10

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - COUNT ( * ) * + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + - 99 * SUM( - 57 ) + 24 + 92 * + + 99 + + + 39 + + - 20 AS col0
----
14794

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + - 99 * SUM ( - 57 ) + 24 + 92 * + + 99 + + + 39 + + - 20 AS col0
----
14794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT + + COUNT( * ) DIV + + 20
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT + + COUNT ( * ) / + + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - - COUNT( * ) * - - 89 * 71 AS col1
----
6319

skipif mysql # not compatible
query I rowsort label-3734
SELECT - - COUNT ( * ) * - - 89 * 71 AS col1
----
6319

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL - + 23 + + - MAX( ALL + ( 80 ) ) + COUNT( * ) - + 79 - 68 AS col2
----
-249

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - + 23 + + - MAX ( ALL + ( 80 ) ) + COUNT ( * ) - + 79 - 68 AS col2
----
-249

query I rowsort
SELECT ALL + ( - 69 ) col0
----
-69

query I rowsort
SELECT ALL - 1 + - 76
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3738
SELECT ALL 65 + + MAX( ALL 94 ) DIV - 74
----
64

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 65 + + MAX ( ALL 94 ) / - 74
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT - ( - 78 ) + 68 + + - 14 + COUNT( * ), - 5 AS col1
----
133
-5

skipif mysql # not compatible
query II rowsort label-3739
SELECT - ( - 78 ) + 68 + + - 14 + COUNT ( * ), - 5 AS col1
----
133
-5

query I rowsort
SELECT ALL - 40 + 56
----
16

query I rowsort
SELECT - ( 92 ) * + + 31 AS col2
----
-2852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT CAST( + + 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-3742
SELECT CAST ( + + 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT + COUNT( * ) AS col2, 44 col1
----
1
44

skipif mysql # not compatible
query II rowsort label-3743
SELECT + COUNT ( * ) AS col2, 44 col1
----
1
44

query II rowsort
SELECT ALL + 62, + 59 * - - 4 - - - 80 col2
----
62
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + COUNT( - - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3745
SELECT + COUNT ( - - 70 )
----
1

query I rowsort
SELECT DISTINCT + 74 col2
----
74

query I rowsort
SELECT ( 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT ALL 60 DIV - COUNT( * ) - + + 6 * 29 AS col1
----
-234

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL 60 / - COUNT ( * ) - + + 6 * 29 AS col1
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT + COUNT( * ) AS col1, + 37 col0
----
1
37

skipif mysql # not compatible
query II rowsort label-3749
SELECT + COUNT ( * ) AS col1, + 37 col0
----
1
37

query I rowsort
SELECT ( + 85 ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 53 * + 45 - - COALESCE ( - - CASE WHEN NOT MIN( ALL ( + + 3 ) ) NOT IN ( - CASE - 35 WHEN - 48 THEN NULL ELSE 54 * 4 END ) THEN + 81 * - 5 ELSE 79 END, 34, 19 ) * - 82 col2
----
-4093

skipif mysql # not compatible
query I rowsort label-3751
SELECT 53 * + 45 - - COALESCE ( - - CASE WHEN NOT MIN ( ALL ( + + 3 ) ) NOT IN ( - CASE - 35 WHEN - 48 THEN NULL ELSE 54 * 4 END ) THEN + 81 * - 5 ELSE 79 END, 34, 19 ) * - 82 col2
----
-4093

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT DISTINCT 39 DIV - 5
----
-7

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT 39 / - 5
----
-7

query I rowsort
SELECT + 68 * + - 55 AS col0
----
-3740

query I rowsort
SELECT ALL 74 * + 67 * - 8 AS col0
----
-39664

query I rowsort
SELECT + 79 + - 68
----
11

query I rowsort
SELECT + 73 * - + 1 * + + 7 AS col2
----
-511

query I rowsort
SELECT + 32 * - - 86 col0
----
2752

query I rowsort
SELECT ALL 38 * - - 16 AS col1
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT 90 * SUM( DISTINCT - 39 ) - + + MAX( - + COALESCE ( + 97, - + 91 ) )
----
-3413

skipif mysql # not compatible
query I rowsort label-3759
SELECT 90 * SUM ( DISTINCT - 39 ) - + + MAX ( - + COALESCE ( + 97, - + 91 ) )
----
-3413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3760
SELECT + COUNT( * ) * - ( COUNT( * ) ) * SUM( + 44 ) AS col0, + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-44
1

skipif mysql # not compatible
query II rowsort label-3760
SELECT + COUNT ( * ) * - ( COUNT ( * ) ) * SUM ( + 44 ) AS col0, + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL + 20 * CAST( + - CAST( 35 AS SIGNED ) AS SIGNED ) + - - 4
----
-696

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + 20 * CAST ( + - CAST ( 35 AS INTEGER ) AS INTEGER ) + - - 4
----
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT + - 51 + + + NULLIF ( ( + 9 ), + - CAST( NULL AS SIGNED ) ) + - + 43 + - COUNT( * ) - 91 + COUNT( * ) * + 44 * 15
----
483

skipif mysql # not compatible
query I rowsort label-3762
SELECT + - 51 + + + NULLIF ( ( + 9 ), + - CAST ( NULL AS INTEGER ) ) + - + 43 + - COUNT ( * ) - 91 + COUNT ( * ) * + 44 * 15
----
483

query I rowsort
SELECT - ( 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - CASE 16 WHEN + 15 THEN + 65 ELSE MIN( + 12 ) + + COUNT( * ) END
----
-13

skipif mysql # not compatible
query I rowsort label-3764
SELECT - CASE 16 WHEN + 15 THEN + 65 ELSE MIN ( + 12 ) + + COUNT ( * ) END
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT + - ( + + COUNT( * ) ) * - NULLIF ( + CAST( NULL AS SIGNED ), - 30 * - 42 - 38 / - 85 * + 77 / 75 / 41 ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT + - ( + + COUNT ( * ) ) * - NULLIF ( + CAST ( NULL AS INTEGER ), - 30 * - 42 - 38 / - 85 * + 77 / 75 / 41 ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT + - COALESCE ( - - 22, - 4 * + + 21, - 52 DIV - - 96 ) + + - 20
----
-42

skipif mysql # not compatible
query I rowsort label-3766
SELECT + - COALESCE ( - - 22, - 4 * + + 21, - 52 / - - 96 ) + + - 20
----
-42

query II rowsort
SELECT ALL - 4 + 50 + + ( + 27 ) * - 58 AS col2, - 20
----
-1520
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3768
SELECT ALL MAX( ALL - + CAST( NULL AS DECIMAL ) ) + - - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL MAX ( ALL - + CAST ( NULL AS REAL ) ) + - - 77 AS col0
----
NULL

query I rowsort
SELECT ALL - 55 + - 46 * + - 33
----
1463

query I rowsort
SELECT ALL - 44 * - - 8
----
-352

query II rowsort
SELECT DISTINCT - 11 * + 72 + - 25 AS col1, - 36 AS col0
----
-817
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT + COUNT( DISTINCT - 64 ) * + COUNT( ALL - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3772
SELECT + COUNT ( DISTINCT - 64 ) * + COUNT ( ALL - 49 ) AS col1
----
1

query I rowsort
SELECT ( + 57 ) * - + 24
----
-1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT - CAST( 82 AS SIGNED ) + 2 + + - NULLIF ( 32, + + CASE - 16 WHEN + CAST( NULL AS SIGNED ) + + + 63 + - 5 + + COUNT( * ) THEN 72 * + 79 ELSE NULL END ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-3774
SELECT - CAST ( 82 AS INTEGER ) + 2 + + - NULLIF ( 32, + + CASE - 16 WHEN + CAST ( NULL AS INTEGER ) + + + 63 + - 5 + + COUNT ( * ) THEN 72 * + 79 ELSE NULL END ) col1
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT ALL - 66 DIV COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 66 / COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT 57 * + 90 + - + 47 col0
----
5083

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3777
SELECT ALL + 66 DIV - ( - + ( - 65 ) ) AS col2, + SUM( ALL 12 ) AS col1
----
-1
12

skipif mysql # not compatible
query II rowsort label-3777
SELECT ALL + 66 / - ( - + ( - 65 ) ) AS col2, + SUM ( ALL 12 ) AS col1
----
-1
12

query I rowsort
SELECT 87 * + 68
----
5916

query I rowsort
SELECT 22 + - + 64
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT 96 * + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3780
SELECT 96 * + - COUNT ( * )
----
-96

query I rowsort
SELECT 57 * + 20 + - 17 AS col2
----
1123

query I rowsort
SELECT DISTINCT - ( + + 72 )
----
-72

query I rowsort
SELECT DISTINCT - CASE - - 75 WHEN - 61 THEN + 65 / - ( - 89 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3784
SELECT 28 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT 28 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT DISTINCT - 99 AS col1, COUNT( * ) + - 43 * 61 * - - SUM( ALL + + 69 ) AS col1
----
-99
-180986

skipif mysql # not compatible
query II rowsort label-3785
SELECT DISTINCT - 99 AS col1, COUNT ( * ) + - 43 * 61 * - - SUM ( ALL + + 69 ) AS col1
----
-99
-180986

query I rowsort
SELECT 41 * + 41 AS col0
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 95 * - - COUNT( * ) + + + 26
----
121

skipif mysql # not compatible
query I rowsort label-3787
SELECT 95 * - - COUNT ( * ) + + + 26
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL - MAX( DISTINCT - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - MAX ( DISTINCT - 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT ALL - CAST( + + ( 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - CAST ( + + ( 49 ) AS INTEGER )
----
-49

query II rowsort
SELECT 29 AS col2, 27
----
29
27

query I rowsort
SELECT ( 20 ) + - + 95
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT 2 DIV COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3792
SELECT 2 / COUNT ( * ) AS col0
----
2

query I rowsort
SELECT + 5 + - + 97
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3794
SELECT ALL - ( - + 86 ) + 61 DIV 97 * - + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - ( - + 86 ) + 61 / 97 * - + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT + 68 AS col0, COUNT( * )
----
68
1

skipif mysql # not compatible
query II rowsort label-3795
SELECT + 68 AS col0, COUNT ( * )
----
68
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3796
SELECT + - CAST( - + 23 AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3796
SELECT + - CAST ( - + 23 AS INTEGER ) AS col2
----
23

query I rowsort
SELECT + - 79 AS col1
----
-79

query I rowsort
SELECT - 28 + + - 99 - - 74
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3799
SELECT ALL + 66 AS col0, CAST( NULL AS DECIMAL ) + - ( COUNT( * ) ) + + - COUNT( * )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-3799
SELECT ALL + 66 AS col0, CAST ( NULL AS REAL ) + - ( COUNT ( * ) ) + + - COUNT ( * )
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - + COUNT( * ) + + + 75
----
74

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - + COUNT ( * ) + + + 75
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + MIN( ALL + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3801
SELECT + MIN ( ALL + 49 ) AS col0
----
49

query I rowsort
SELECT DISTINCT - 17 + - NULLIF ( + 27, + - 41 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT 59 + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT 59 + - COUNT ( * )
----
58

query I rowsort
SELECT ALL + 84 + - + ( 53 ) * 99 AS col1
----
-5163

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ( - + 93 ) * + - 60 * + COUNT( * ) * + AVG ( - 72 ) * - CASE - 97 WHEN - 48 THEN NULL WHEN + 24 THEN + ( 0 ) + ( + 11 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT ( - + 93 ) * + - 60 * + COUNT ( * ) * + AVG ( - 72 ) * - CASE - 97 WHEN - 48 THEN NULL WHEN + 24 THEN + ( 0 ) + ( + 11 ) END col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3806
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, + 28 - 34
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-3806
SELECT ALL CAST ( NULL AS REAL ) AS col1, + 28 - 34
----
NULL
-6

query I rowsort
SELECT - ( - 29 )
----
29

query I rowsort
SELECT 78 + 31 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + COUNT( * ) * - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( * ) * - 59 AS col2
----
-59

query II rowsort
SELECT - 75, 53 AS col0
----
-75
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL - 23 + + CAST( + - 23 AS SIGNED ) + - + 38 * + ( 63 )
----
-2440

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL - 23 + + CAST ( + - 23 AS INTEGER ) + - + 38 * + ( 63 )
----
-2440

query I rowsort
SELECT 27 - - 5 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - + COALESCE ( - 24, - 98 * + - 61 * + + 60 + COUNT( * ) + - + 76 * - 33 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3813
SELECT - + COALESCE ( - 24, - 98 * + - 61 * + + 60 + COUNT ( * ) + - + 76 * - 33 ) AS col0
----
24

query II rowsort
SELECT ALL - 48 AS col2, 61 + - + 1 + + + 76 + 59
----
-48
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT 16 - ( - - 91 ) DIV 93 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3815
SELECT 16 - ( - - 91 ) / 93 AS col1
----
16

query I rowsort
SELECT DISTINCT 63 * + 58
----
3654

query I rowsort
SELECT 32 * + 81 AS col2
----
2592

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT ALL + ( - COUNT( * ) ) * 93 * + - 20 * 33 * + + MIN( - 2 ) * - 30 AS col0, ( - + 33 ) * - 63
----
3682800
2079

skipif mysql # not compatible
query II rowsort label-3818
SELECT ALL + ( - COUNT ( * ) ) * 93 * + - 20 * 33 * + + MIN ( - 2 ) * - 30 AS col0, ( - + 33 ) * - 63
----
3682800
2079

query I rowsort
SELECT 22 * + + 38 AS col1
----
836

query I rowsort
SELECT 31 * ( 52 )
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT - COUNT( 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - COUNT ( 29 )
----
-1

query I rowsort
SELECT 47 * + 31
----
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT 21 * - ( + COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3823
SELECT 21 * - ( + COUNT ( * ) )
----
-21

query I rowsort
SELECT 57 * - 32 AS col1
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL + 46 * 39 * + + COUNT( * ) * - 66 * + COUNT( * ) + ( + 44 ) * - MIN( - 80 ) * - + 78
----
-392964

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL + 46 * 39 * + + COUNT ( * ) * - 66 * + COUNT ( * ) + ( + 44 ) * - MIN ( - 80 ) * - + 78
----
-392964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT - 29 - - - 80 + - - COUNT( * ) + - 91 * 43 * SUM( DISTINCT + CASE CAST( + - 83 AS SIGNED ) WHEN 74 THEN - 48 ELSE + + 63 END ) col2
----
-246627

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 29 - - - 80 + - - COUNT ( * ) + - 91 * 43 * SUM ( DISTINCT + CASE CAST ( + - 83 AS INTEGER ) WHEN 74 THEN - 48 ELSE + + 63 END ) col2
----
-246627

query I rowsort
SELECT 47 + + 48 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + COUNT( + - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COUNT ( + - 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL - - SUM( ALL - 59 ) * + ( - COUNT( ALL ( - - 14 ) ) ) * 76 AS col0
----
4484

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - - SUM ( ALL - 59 ) * + ( - COUNT ( ALL ( - - 14 ) ) ) * 76 AS col0
----
4484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT - 27 * + COALESCE ( MIN( DISTINCT + ( + 14 ) ), 57, 88 ) * + 61 + + 70 * 11 + 43 DIV 21 + - 92 DIV + MAX( DISTINCT - 14 + 31 ) AS col1
----
-22291

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT - 27 * + COALESCE ( MIN ( DISTINCT + ( + 14 ) ), 57, 88 ) * + 61 + + 70 * 11 + 43 / 21 + - 92 / + MAX ( DISTINCT - 14 + 31 ) AS col1
----
-22291

query I rowsort
SELECT ALL + 68 + + 99 + 33
----
200

query I rowsort
SELECT ALL + 88 + - 54 - - 52 * + 4 AS col2
----
242

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3833
SELECT + + CAST( - NULLIF ( - + 83, + CAST( - 93 AS DECIMAL ) - 26 ) AS DECIMAL ) * - 64 - - CASE + 88 WHEN - + 20 THEN - 46 * - NULLIF ( - MIN( DISTINCT + 41 ), + 29 ) WHEN NULLIF ( 10, 32 + - COUNT( * ) ) * 56 THEN 5 * + 26 END / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT + + CAST ( - NULLIF ( - + 83, + CAST ( - 93 AS REAL ) - 26 ) AS REAL ) * - 64 - - CASE + 88 WHEN - + 20 THEN - 46 * - NULLIF ( - MIN ( DISTINCT + 41 ), + 29 ) WHEN NULLIF ( 10, 32 + - COUNT ( * ) ) * 56 THEN 5 * + 26 END / 7
----
NULL

query I rowsort
SELECT ALL + 77 * - 92 + 80 AS col2
----
-7004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT - - 8 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT - - 8 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( NULLIF ( + 39, 0 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + ( + COUNT( * ) ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-3837
SELECT + ( + COUNT ( * ) ) + + 10
----
11

query I rowsort
SELECT - 45 * 24
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + COUNT( * ) * - NULLIF ( - 64, + + 94 * - + 40 )
----
64

skipif mysql # not compatible
query I rowsort label-3839
SELECT + COUNT ( * ) * - NULLIF ( - 64, + + 94 * - + 40 )
----
64

query I rowsort
SELECT - 72 + + ( - 7 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - + ( + 60 ) * + 21 + COUNT( * ) * 70 + - 97
----
-1287

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + ( + 60 ) * + 21 + COUNT ( * ) * 70 + - 97
----
-1287

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3842
SELECT DISTINCT + - 95 DIV 92 AS col1, + CAST( + AVG ( ALL + 76 ) AS SIGNED ) - - 82 col0
----
-1
158

skipif mysql # not compatible
query II rowsort label-3842
SELECT DISTINCT + - 95 / 92 AS col1, + CAST ( + AVG ( ALL + 76 ) AS INTEGER ) - - 82 col0
----
-1
158

query I rowsort
SELECT ALL 34 * + 19 * - + 69 AS col2
----
-44574

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL COUNT ( * ) * - 31
----
-31

query I rowsort
SELECT - CASE - 66 WHEN + + 72 THEN NULL WHEN - 83 THEN - 33 ELSE - 82 * - 10 * 68 * + 8 - 49 END
----
-446031

query I rowsort
SELECT ALL 22 * - 38 AS col2
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - COUNT( ALL 12 )
----
-1

skipif mysql # not compatible
query I rowsort label-3847
SELECT - COUNT ( ALL 12 )
----
-1

query II rowsort
SELECT 86 AS col2, - 30
----
86
-30

query I rowsort
SELECT + 4 + - 79 * - + ( + 84 )
----
6640

query I rowsort
SELECT + 69 * - 78
----
-5382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3851
SELECT + 80 + - + 50 + + 44 col1, + CAST( 1 AS SIGNED ) * - - COUNT( * )
----
74
1

skipif mysql # not compatible
query II rowsort label-3851
SELECT + 80 + - + 50 + + 44 col1, + CAST ( 1 AS INTEGER ) * - - COUNT ( * )
----
74
1

query I rowsort
SELECT ALL 62 + + 29 AS col0
----
91

query I rowsort
SELECT + 33 * 86
----
2838

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL 10 DIV - + 6 + 65 + + 50 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL 10 / - + 6 + 65 + + 50 AS col1
----
114

query I rowsort
SELECT + ( 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT 31 DIV COUNT( * ) + 86 + 19 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-3856
SELECT 31 / COUNT ( * ) + 86 + 19 AS col2
----
136

query I rowsort
SELECT ( + 28 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT + 97 / COUNT( ALL + - ( - + 82 ) ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 97 / COUNT ( ALL + - ( - + 82 ) ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT - COUNT( * ) + - - 16 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3859
SELECT - COUNT ( * ) + - - 16 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL - 7 * - + COUNT( * ) * - 2 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - 7 * - + COUNT ( * ) * - 2 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 14 + - + 71 * + 18 * 60 + 74
----
-76592

query I rowsort
SELECT + NULLIF ( + 87, 90 + + + 13 / NULLIF ( - 46, - 76 ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT COUNT( * ) * + 63 + + CASE ( - 17 ) WHEN - 86 / + 22 - + 61 THEN - CASE + COALESCE ( - NULLIF ( - 93, 21 ), + 35 - + 20 ) WHEN 44 THEN + 32 + 82 WHEN 54 - + 69 * 97 THEN NULL END ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT COUNT ( * ) * + 63 + + CASE ( - 17 ) WHEN - 86 / + 22 - + 61 THEN - CASE + COALESCE ( - NULLIF ( - 93, 21 ), + 35 - + 20 ) WHEN 44 THEN + 32 + 82 WHEN 54 - + 69 * 97 THEN NULL END ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT - 96 - - - ( ( 86 ) ) DIV + 1 + + 36
----
-146

skipif mysql # not compatible
query I rowsort label-3864
SELECT - 96 - - - ( ( 86 ) ) / + 1 + + 36
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT DISTINCT COUNT( * ) * CASE - COUNT( * ) WHEN + - 19 * ( + 37 ) * + - 61 THEN 2 ELSE + - 61 END DIV + + 15 + + NULLIF ( 60, - ( SUM( DISTINCT 23 ) ) + + 12 )
----
56

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT COUNT ( * ) * CASE - COUNT ( * ) WHEN + - 19 * ( + 37 ) * + - 61 THEN 2 ELSE + - 61 END / + + 15 + + NULLIF ( 60, - ( SUM ( DISTINCT 23 ) ) + + 12 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3866
SELECT DISTINCT - COUNT( * ) * - 23 + + 19 + + NULLIF ( - + 86, - + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) + + - 71 + + 2
----
-113

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - COUNT ( * ) * - 23 + + 19 + + NULLIF ( - + 86, - + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) + + - 71 + + 2
----
-113

query I rowsort
SELECT - 63 + 87
----
24

query I rowsort
SELECT ALL + - NULLIF ( 74, + - 44 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT ALL + 98, COUNT( * ) * - 21 AS col2
----
98
-21

skipif mysql # not compatible
query II rowsort label-3869
SELECT ALL + 98, COUNT ( * ) * - 21 AS col2
----
98
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + + 34 * - COUNT( * ) - + + 48 + 93 + NULLIF ( + - COUNT( * ), 12 * - 29 / - 38 * + ( - 26 ) * - 93 )
----
10

skipif mysql # not compatible
query I rowsort label-3870
SELECT + + 34 * - COUNT ( * ) - + + 48 + 93 + NULLIF ( + - COUNT ( * ), 12 * - 29 / - 38 * + ( - 26 ) * - 93 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + MIN( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + MIN ( - 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - - 25 * + 94 - 85 col0
----
-85

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - - 25 * + 94 - 85 col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT + + 51 DIV - + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT + + 51 / - + 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL + SUM( DISTINCT - - 42 ) * - 6 * - - 95 AS col0
----
-23940

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + SUM ( DISTINCT - - 42 ) * - 6 * - - 95 AS col0
----
-23940

query I rowsort
SELECT + - COALESCE ( - 21, NULLIF ( 61, + ( + 86 ) ) ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT ALL - CAST( NULL AS SIGNED ) * - 13 - 99 + - + COALESCE ( + 0, + 21, - 94 - - 90 ) * + + MIN( + - 33 ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - CAST ( NULL AS INTEGER ) * - 13 - 99 + - + COALESCE ( + 0, + 21, - 94 - - 90 ) * + + MIN ( + - 33 ) * 17
----
NULL

query I rowsort
SELECT DISTINCT + 32 * 44 * - 21 AS col1
----
-29568

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT - COUNT( * ) AS col0, 10 col1
----
-1
10

skipif mysql # not compatible
query II rowsort label-3878
SELECT - COUNT ( * ) AS col0, 10 col1
----
-1
10

query I rowsort
SELECT ALL + 21 * - + 14 AS col2
----
-294

query I rowsort
SELECT ALL + - 68 * - + 52 * 12
----
42432

query II rowsort
SELECT ALL 99 AS col2, + 32 AS col1
----
99
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3882
SELECT DISTINCT + ( + + 9 ) * 43 AS col1, SUM( ALL 7 )
----
387
7

skipif mysql # not compatible
query II rowsort label-3882
SELECT DISTINCT + ( + + 9 ) * 43 AS col1, SUM ( ALL 7 )
----
387
7

query I rowsort
SELECT - 16 + - 83 + - 57 + - CASE 86 WHEN + 81 + + 43 THEN NULL ELSE - - 21 + - 14 END * ( + - ( - 66 ) ) col0
----
-618

query I rowsort
SELECT - NULLIF ( - 88, NULLIF ( + 16, 83 ) + - 68 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3885
SELECT - 63 - + CAST( + CAST( + 5 AS SIGNED ) AS SIGNED ) AS col2, - COUNT( - 93 ) + - + 2 AS col0
----
-68
-3

skipif mysql # not compatible
query II rowsort label-3885
SELECT - 63 - + CAST ( + CAST ( + 5 AS INTEGER ) AS INTEGER ) AS col2, - COUNT ( - 93 ) + - + 2 AS col0
----
-68
-3

query I rowsort
SELECT ALL ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - MAX( ALL + + NULLIF ( + - 84, + ( 0 ) + 79 ) )
----
84

skipif mysql # not compatible
query I rowsort label-3887
SELECT - MAX ( ALL + + NULLIF ( + - 84, + ( 0 ) + 79 ) )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT DISTINCT CAST( + 17 AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT CAST ( + 17 AS INTEGER ) AS col1
----
17

query I rowsort
SELECT ALL - 35 + + ( - - 3 ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT ALL 3 + + 52 + 68 + - 59 DIV 52
----
122

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 3 + + 52 + 68 + - 59 / 52
----
122

query I rowsort
SELECT DISTINCT - ( + + ( 82 ) ) + ( - 92 ) + - - 37 - - 70
----
-67

query I rowsort
SELECT + 85 - - 89 AS col0
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT ALL 9 + - COUNT( * ) DIV - + 63 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL 9 + - COUNT ( * ) / - + 63 AS col2
----
9

query I rowsort
SELECT ALL ( - 21 ) + 76 + + 30
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT - CAST( + SUM( 75 ) AS SIGNED ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-3895
SELECT - CAST ( + SUM ( 75 ) AS INTEGER ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT + 91 * + 45 * - MAX( 93 )
----
-380835

skipif mysql # not compatible
query I rowsort label-3896
SELECT + 91 * + 45 * - MAX ( 93 )
----
-380835

query I rowsort
SELECT ALL - ( + 85 ) + + 56 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3898
SELECT ALL - CAST( - - 12 AS SIGNED ), + 59 AS col2
----
-12
59

skipif mysql # not compatible
query II rowsort label-3898
SELECT ALL - CAST ( - - 12 AS INTEGER ), + 59 AS col2
----
-12
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL 64 + - - COUNT( ALL - 85 ) - + - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL 64 + - - COUNT ( ALL - 85 ) - + - COUNT ( * ) AS col1
----
66

query II rowsort
SELECT DISTINCT 82 - + 40 * + 68 * + 65 * - 25 * + 99 + + NULLIF ( - + 3, + 45 ) * + 21, + 43 col1
----
437580019
43

query I rowsort
SELECT DISTINCT - + NULLIF ( 86, - 75 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT + COUNT( * ) * - + 17
----
-17

skipif mysql # not compatible
query I rowsort label-3902
SELECT + COUNT ( * ) * - + 17
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT 77 DIV - - 84 DIV + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT 77 / - - 84 / + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT 6 * - + CASE 28 WHEN COALESCE ( + + MAX( - 70 ), + 92 * + 35 / 66 * + + 60 * - + NULLIF ( + + 29, - 68 * + 10 ), 21 ) THEN NULL WHEN + 6 * 76 THEN 49 + 66 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT 6 * - + CASE 28 WHEN COALESCE ( + + MAX ( - 70 ), + 92 * + 35 / 66 * + + 60 * - + NULLIF ( + + 29, - 68 * + 10 ), 21 ) THEN NULL WHEN + 6 * 76 THEN 49 + 66 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + 67 * + + CAST( + 99 AS SIGNED ) col2
----
6633

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + 67 * + + CAST ( + 99 AS INTEGER ) col2
----
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - 92 - + 0 * 12 + + 80 + - COUNT( * ) * COALESCE ( - 47, + - 10 + 18 )
----
35

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - 92 - + 0 * 12 + + 80 + - COUNT ( * ) * COALESCE ( - 47, + - 10 + 18 )
----
35

query I rowsort
SELECT - COALESCE ( + + 8, + 62, ( - 29 ) ) * + NULLIF ( - ( - CASE + AVG ( + - 69 ) WHEN - + 49 THEN 35 ELSE - 27 + + 21 + + 94 END ), - 96 * 35 - - 71 ) * - 21 - 71 * 54
----
10950

query I rowsort
SELECT + 90 + - 20 + + + 53 * 75
----
4045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3909
SELECT COUNT( * ) DIV - COALESCE ( + 14, 24 * + CASE - + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * - 74 THEN - ( - 28 ) WHEN - - 24 * + - 95 * + - 4 + - + 10 * COUNT( * ) THEN - 47 ELSE - 9 END + 39 * + ( + 22 DIV 4 ), - 2 ) + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-3909
SELECT COUNT ( * ) / - COALESCE ( + 14, 24 * + CASE - + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * - 74 THEN - ( - 28 ) WHEN - - 24 * + - 95 * + - 4 + - + 10 * COUNT ( * ) THEN - 47 ELSE - 9 END + 39 * + ( + 22 / 4 ), - 2 ) + - 56
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT + SUM( + + 0 ) DIV 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT + SUM ( + + 0 ) / 71 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL + COALESCE ( - + 89, - CASE - 63 WHEN - + 94 THEN NULL WHEN + - 40 / + CAST( NULL AS SIGNED ) * 59 + - + 47 THEN 68 + - 50 + 89 END * ( CAST( - 88 AS SIGNED ) ) ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + COALESCE ( - + 89, - CASE - 63 WHEN - + 94 THEN NULL WHEN + - 40 / + CAST ( NULL AS INTEGER ) * 59 + - + 47 THEN 68 + - 50 + 89 END * ( CAST ( - 88 AS INTEGER ) ) ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT - - CAST( + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-3912
SELECT - - CAST ( + 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT 32 * - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3913
SELECT 32 * - - COUNT ( * )
----
32

query I rowsort
SELECT ALL + 48 + + 18 + - 69 * - - 56
----
-3798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT 16 + + + 41 + 48 * - 22 * + - 16 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT 16 + + + 41 + 48 * - 22 * + - 16 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 * - 30 AS col1
----
-660

query I rowsort
SELECT 25 + - COALESCE ( - + 78, 91 )
----
103

query I rowsort
SELECT ALL - 76 + 87 AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3919
SELECT ALL 49 AS col1, + 32 * NULLIF ( + COUNT( - - 77 ), + 94 * + 24 ) DIV COUNT( * ) + 88
----
49
120

skipif mysql # not compatible
query II rowsort label-3919
SELECT ALL 49 AS col1, + 32 * NULLIF ( + COUNT ( - - 77 ), + 94 * + 24 ) / COUNT ( * ) + 88
----
49
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT + ( COUNT( * ) ) + 22 + - 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + ( COUNT ( * ) ) + 22 + - 20 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT 60 + - MIN( - + 99 )
----
159

skipif mysql # not compatible
query I rowsort label-3921
SELECT 60 + - MIN ( - + 99 )
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 37 + - 40 * - - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3922
SELECT 37 + - 40 * - - COUNT ( * ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT 22 AS col0, COUNT( * ) AS col1
----
22
1

skipif mysql # not compatible
query II rowsort label-3923
SELECT 22 AS col0, COUNT ( * ) AS col1
----
22
1

query I rowsort
SELECT 47 + - 29
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL + ( - COALESCE ( 99, 37 ) ) + + COUNT( * ) + 56 + + - 83 * 76 * COUNT( * ) AS col1
----
-6350

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + ( - COALESCE ( 99, 37 ) ) + + COUNT ( * ) + 56 + + - 83 * 76 * COUNT ( * ) AS col1
----
-6350

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT ALL - 14 + + COUNT( * ) + - 72, - 95 AS col0
----
-85
-95

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL - 14 + + COUNT ( * ) + - 72, - 95 AS col0
----
-85
-95

query I rowsort
SELECT DISTINCT 75 col2
----
75

query I rowsort
SELECT DISTINCT - 87 * 6
----
-522

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3929
SELECT 69, 91 * + 75 + 9 + MAX( DISTINCT + - 62 ) DIV - 55 AS col1
----
69
6835

skipif mysql # not compatible
query II rowsort label-3929
SELECT 69, 91 * + 75 + 9 + MAX ( DISTINCT + - 62 ) / - 55 AS col1
----
69
6835

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT + + COUNT( * ) AS col2, + ( + 48 )
----
1
48

skipif mysql # not compatible
query II rowsort label-3930
SELECT + + COUNT ( * ) AS col2, + ( + 48 )
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ( - - COUNT( DISTINCT + 62 ) ) + + 42 * - 38 * + 37 AS col0
----
-59051

skipif mysql # not compatible
query I rowsort label-3931
SELECT ( - - COUNT ( DISTINCT + 62 ) ) + + 42 * - 38 * + 37 AS col0
----
-59051

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT 34 * + + 35 + 24 * - CASE 3 WHEN 44 * 36 THEN NULL WHEN + - COUNT( * ) THEN + - 89 + + 68 ELSE - - 64 - + 47 * - 0 - - 71 END * SUM( COALESCE ( - 69, 23, 53 ) ) + 98 - 46 AS col0
----
224802

skipif mysql # not compatible
query I rowsort label-3932
SELECT 34 * + + 35 + 24 * - CASE 3 WHEN 44 * 36 THEN NULL WHEN + - COUNT ( * ) THEN + - 89 + + 68 ELSE - - 64 - + 47 * - 0 - - 71 END * SUM ( COALESCE ( - 69, 23, 53 ) ) + 98 - 46 AS col0
----
224802

query I rowsort
SELECT - 81 + + 20
----
-61

query I rowsort
SELECT 60 * + 69
----
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL - SUM( ALL - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - SUM ( ALL - - 77 )
----
-77

query I rowsort
SELECT DISTINCT - ( + 12 ) AS col0
----
-12

query I rowsort
SELECT ALL - - 21
----
21

query I rowsort
SELECT DISTINCT - 82 * + 56
----
-4592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT - 22 * - - AVG ( DISTINCT + - 7 ) * 77 - + + CASE WHEN NULL IS NOT NULL THEN - 57 END / - MIN( + + 49 ) + CAST( NULL AS SIGNED ) + 61 * - 2 * 47 + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 22 * - - AVG ( DISTINCT + - 7 ) * 77 - + + CASE WHEN NULL IS NOT NULL THEN - 57 END / - MIN ( + + 49 ) + CAST ( NULL AS INTEGER ) + 61 * - 2 * 47 + - - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL - CAST( + 70 AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL - CAST ( + 70 AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT 19 * 86
----
1634

query I rowsort
SELECT + 88 * 30 AS col2
----
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3943
SELECT + 45 AS col0, ( CASE - + COALESCE ( + 52, + ( - COALESCE ( - 72, - CAST( NULL AS SIGNED ), 6 + - + COALESCE ( COUNT( * ), + 22 / + ( 62 ) ) ) ) ) WHEN + 12 THEN - ( NULLIF ( + 50, - 14 ) ) WHEN + 69 THEN NULL WHEN 57 + + 78 / NULLIF ( - 64, + CASE 2 WHEN 65 THEN NULL WHEN - 28 + 55 / + CAST( NULLIF ( - COUNT( * ), - 76 ) AS SIGNED ) THEN NULL ELSE + 24 + 20 END + - MAX( 79 + + 20 ) ) THEN 25 / + NULLIF ( + 16, + 95 ) ELSE NULL END )
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3943
SELECT + 45 AS col0, ( CASE - + COALESCE ( + 52, + ( - COALESCE ( - 72, - CAST ( NULL AS INTEGER ), 6 + - + COALESCE ( COUNT ( * ), + 22 / + ( 62 ) ) ) ) ) WHEN + 12 THEN - ( NULLIF ( + 50, - 14 ) ) WHEN + 69 THEN NULL WHEN 57 + + 78 / NULLIF ( - 64, + CASE 2 WHEN 65 THEN NULL WHEN - 28 + 55 / + CAST ( NULLIF ( - COUNT ( * ), - 76 ) AS INTEGER ) THEN NULL ELSE + 24 + 20 END + - MAX ( 79 + + 20 ) ) THEN 25 / + NULLIF ( + 16, + 95 ) ELSE NULL END )
----
45
NULL

query I rowsort
SELECT ( 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT 67 * - COUNT( * ) * - 4 AS col0
----
268

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT 67 * - COUNT ( * ) * - 4 AS col0
----
268

query I rowsort
SELECT ALL 34 + - 74 - - + 17
----
-23

query I rowsort
SELECT 16 * + 85
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL 46 + + - MAX( ALL + CASE + - 80 WHEN + 30 THEN NULL ELSE + 85 + - 69 END ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL 46 + + - MAX ( ALL + CASE + - 80 WHEN + 30 THEN NULL ELSE + 85 + - 69 END ) AS col1
----
30

query I rowsort
SELECT DISTINCT 63 + - 38 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL + 44 + - - 17 + + 46 - + - 45 * MIN( - 33 ) * - 44
----
65447

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + 44 + - - 17 + + 46 - + - 45 * MIN ( - 33 ) * - 44
----
65447

onlyif mysql # DIV for integer division: 
query II rowsort label-3951
SELECT DISTINCT 42 col0, 11 DIV 70
----
42
0

skipif mysql # not compatible
query II rowsort label-3951
SELECT DISTINCT 42 col0, 11 / 70
----
42
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT ALL - 72 / - - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - 72 / - - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 48 + 62
----
110

query II rowsort
SELECT - 4 AS col0, + 27 col1
----
-4
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT 60 DIV - + COUNT( - - 11 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3955
SELECT 60 / - + COUNT ( - - 11 ) AS col2
----
-60

query I rowsort
SELECT 67 * - - 69 AS col2
----
4623

query I rowsort
SELECT ALL + 72 * 50 * 14 col2
----
50400

query I rowsort
SELECT + 50 - + 20 + - - 56
----
86

query I rowsort
SELECT - NULLIF ( + 94, 14 * - + 83 * - + AVG ( 41 ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT + COUNT( * ) + 15 col1
----
16

skipif mysql # not compatible
query I rowsort label-3960
SELECT + COUNT ( * ) + 15 col1
----
16

query I rowsort
SELECT ALL ( - 5 ) - 43 AS col1
----
-48

query II rowsort
SELECT DISTINCT 19 AS col0, 29 * - - 89
----
19
2581

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3963
SELECT DISTINCT 76, - NULLIF ( 84, + 22 - - 93 + + 85 / - - 79 ) + - + NULLIF ( CAST( + - 22 AS SIGNED ), + 62 + + 41 + - 85 * 96 + + + 52 ) * - - 78 AS col1
----
76
1632

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT 76, - NULLIF ( 84, + 22 - - 93 + + 85 / - - 79 ) + - + NULLIF ( CAST ( + - 22 AS INTEGER ), + 62 + + 41 + - 85 * 96 + + + 52 ) * - - 78 AS col1
----
76
1632

query I rowsort
SELECT DISTINCT - 0 - + - 11 AS col0
----
11

query I rowsort
SELECT - + 66 - 62
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3966
SELECT + 73 * + CAST( CASE + - 40 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + CAST( 63 AS DECIMAL ) THEN + - MIN( ALL + 4 ) / + 2 + - CASE 17 WHEN + 35 THEN + + ( - 52 ) WHEN + - ( 62 ) / ( - 7 + MAX( DISTINCT 72 ) ) THEN NULL END END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 73 * + CAST ( CASE + - 40 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + CAST ( 63 AS REAL ) THEN + - MIN ( ALL + 4 ) / + 2 + - CASE 17 WHEN + 35 THEN + + ( - 52 ) WHEN + - ( 62 ) / ( - 7 + MAX ( DISTINCT 72 ) ) THEN NULL END END AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - - 37, 17 AS col1
----
37
17

onlyif mysql # DIV for integer division: 
query II rowsort label-3968
SELECT + 60, + 91 + - 32 DIV + + 42 + 73 AS col2
----
60
164

skipif mysql # not compatible
query II rowsort label-3968
SELECT + 60, + 91 + - 32 / + + 42 + 73 AS col2
----
60
164

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT COUNT( * ) AS col2, - 99 AS col1
----
1
-99

skipif mysql # not compatible
query II rowsort label-3969
SELECT COUNT ( * ) AS col2, - 99 AS col1
----
1
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + SUM( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3970
SELECT + SUM ( DISTINCT + 28 )
----
28

query I rowsort
SELECT - - 89 * - 12 + + 5 AS col0
----
-1063

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3972
SELECT DISTINCT + - CAST( + 97 AS SIGNED ), + 52 AS col1
----
-97
52

skipif mysql # not compatible
query II rowsort label-3972
SELECT DISTINCT + - CAST ( + 97 AS INTEGER ), + 52 AS col1
----
-97
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL + + 86 DIV - 85 + 33
----
32

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + + 86 / - 85 + 33
----
32

query I rowsort
SELECT DISTINCT + - COALESCE ( - 29, + + 30 ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT COUNT( ALL - + 15 ) * 52 + + 83
----
135

skipif mysql # not compatible
query I rowsort label-3975
SELECT COUNT ( ALL - + 15 ) * 52 + + 83
----
135

query II rowsort
SELECT 8, - 70 AS col2
----
8
-70

query I rowsort
SELECT ALL + - 11 * - ( + 6 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT + 72 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT + 72 / + 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT + 77 DIV 9 + - - 87 col2
----
95

skipif mysql # not compatible
query I rowsort label-3979
SELECT + 77 / 9 + - - 87 col2
----
95

onlyif mysql # DIV for integer division: 
query II rowsort label-3980
SELECT + - 62 AS col1, + 72 DIV - 20 + + 99 AS col1
----
-62
96

skipif mysql # not compatible
query II rowsort label-3980
SELECT + - 62 AS col1, + 72 / - 20 + + 99 AS col1
----
-62
96

query II rowsort
SELECT DISTINCT + 6 AS col0, 70 + - 26 + - 99
----
6
-55

query I rowsort
SELECT ALL + + ( - 77 ) * 67 + - + 27 + - 23 AS col0
----
-5209

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3983
SELECT - COUNT( * ) + - 30 + + 48 DIV 44, 58 AS col2
----
-30
58

skipif mysql # not compatible
query II rowsort label-3983
SELECT - COUNT ( * ) + - 30 + + 48 / 44, 58 AS col2
----
-30
58

query II rowsort
SELECT ALL + 24 AS col0, 87 col0
----
24
87

query I rowsort
SELECT - 2 * + 73 + + 22 AS col0
----
-124

query II rowsort
SELECT ALL + + 78, 50 AS col0
----
78
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3987
SELECT DISTINCT + ( - + 54 ) AS col1, CAST( NULL AS SIGNED )
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-3987
SELECT DISTINCT + ( - + 54 ) AS col1, CAST ( NULL AS INTEGER )
----
-54
NULL

query I rowsort
SELECT - 80 * + ( + - CASE + + 10 WHEN - 74 THEN + + 48 + - - 67 ELSE + - 37 END )
----
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL + 97 * - 49 + MIN( ( - 13 ) ) + COUNT( * ) AS col0
----
-4765

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + 97 * - 49 + MIN ( ( - 13 ) ) + COUNT ( * ) AS col0
----
-4765

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT MIN( ALL + ( ( - - 25 ) ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3990
SELECT MIN ( ALL + ( ( - - 25 ) ) ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT 13 * + 84 * + CASE 75 WHEN + + COUNT( * ) + COUNT( * ) THEN 69 ELSE NULL END + - + ( - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT 13 * + 84 * + CASE 75 WHEN + + COUNT ( * ) + COUNT ( * ) THEN 69 ELSE NULL END + - + ( - 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - ( + MIN( + 82 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3992
SELECT - ( + MIN ( + 82 ) ) AS col1
----
-82

query I rowsort
SELECT + 50 + + 4 AS col0
----
54

query I rowsort
SELECT + CASE 47 WHEN + 12 THEN - 72 END * + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT MIN( + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3995
SELECT MIN ( + 51 ) AS col0
----
51

query II rowsort
SELECT + 27 + - 38 * + ( 36 ) + + 32 + 84 * + 4, + 12 AS col0
----
-973
12

query I rowsort
SELECT ALL ( + 22 ) * - + ( - 90 )
----
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT ALL + 41 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + 41 / 29
----
1

query I rowsort
SELECT + 71 * + 8 AS col0
----
568

query I rowsort
SELECT - 40 * ( 83 )
----
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT - MIN( ALL 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4001
SELECT - MIN ( ALL 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT ALL - COUNT( * ) * - CAST( + - COUNT( * ) AS SIGNED ) - MAX( DISTINCT + 60 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL - COUNT ( * ) * - CAST ( + - COUNT ( * ) AS INTEGER ) - MAX ( DISTINCT + 60 ) AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT + + 43 * COUNT( * ) * + CAST( NULL AS SIGNED ) + - + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT + + 43 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - + 14 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT ALL + ( + - 39 ) + + + CAST( + - 54 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL + ( + - 39 ) + + + CAST ( + - 54 AS INTEGER ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL COUNT( * ) * + + 3
----
3

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL COUNT ( * ) * + + 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4006
SELECT - - MIN( ALL - 14 ) DIV 34 + - CAST( + 80 AS SIGNED ) + - ( NULLIF ( + - 92, 62 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4006
SELECT - - MIN ( ALL - 14 ) / 34 + - CAST ( + 80 AS INTEGER ) + - ( NULLIF ( + - 92, 62 ) ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4007
SELECT DISTINCT - 59 DIV - MAX( DISTINCT - + 82 ) * - 66 + - 35 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - 59 / - MAX ( DISTINCT - + 82 ) * - 66 + - 35 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT + COUNT( DISTINCT 79 ) AS col1, 96 + + - COUNT( * )
----
1
95

skipif mysql # not compatible
query II rowsort label-4008
SELECT + COUNT ( DISTINCT 79 ) AS col1, 96 + + - COUNT ( * )
----
1
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT ALL + 15 DIV 41 + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + 15 / 41 + - 58
----
-58

query I rowsort
SELECT - - 16 * + 64 * + 32 AS col1
----
32768

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT ALL + - 9 DIV + 97 + 10 + - 86
----
-76

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + - 9 / + 97 + 10 + - 86
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT ALL - MAX( ALL - 84 ) DIV 31 + 89 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - MAX ( ALL - 84 ) / 31 + 89 AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT DISTINCT + 51 DIV + SUM( 61 ) * + 88 + + - 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT + 51 / + SUM ( 61 ) * + 88 + + - 73 AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT ALL 15 DIV + COUNT( * ) + + MAX( - 52 ) + + 92 * ( - 84 ) * COUNT( * ) + 70 AS col2
----
-7695

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 15 / + COUNT ( * ) + + MAX ( - 52 ) + + 92 * ( - 84 ) * COUNT ( * ) + 70 AS col2
----
-7695

query I rowsort
SELECT ALL + ( 18 ) * - - 86 * + 29 col1
----
44892

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT - 98 * + MIN( + 62 ) AS col1, + 24
----
-6076
24

skipif mysql # not compatible
query II rowsort label-4016
SELECT - 98 * + MIN ( + 62 ) AS col1, + 24
----
-6076
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - NULLIF ( + SUM( 11 ), - 71 ) * + 73
----
-803

skipif mysql # not compatible
query I rowsort label-4017
SELECT - NULLIF ( + SUM ( 11 ), - 71 ) * + 73
----
-803

query I rowsort
SELECT DISTINCT + 72 * + NULLIF ( - + 31, + 13 ) AS col1
----
-2232

query I rowsort
SELECT ( - + 55 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4020
SELECT COUNT( * ) DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT COUNT ( * ) / - 82 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT 76 DIV + CASE 9 WHEN 56 THEN NULL WHEN - + 84 * - 94 - + + ( 99 ) THEN NULL ELSE + 89 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT 76 / + CASE 9 WHEN 56 THEN NULL WHEN - + 84 * - 94 - + + ( 99 ) THEN NULL ELSE + 89 END AS col2
----
0

query I rowsort
SELECT DISTINCT + 27 * + 35 AS col2
----
945

query II rowsort
SELECT ALL 9 AS col2, 99 + - 69 * - + 58 AS col2
----
9
4101

query I rowsort
SELECT DISTINCT + ( 67 ) - 77 + - 25 * 30
----
-760

query I rowsort
SELECT ALL 91 * - ( - 99 )
----
9009

query II rowsort
SELECT - 65 AS col0, 77 * + 17 + + 82
----
-65
1391

query II rowsort
SELECT - 20 AS col0, 18 * - 28
----
-20
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL 55 * + MAX( - - 66 ) * + - 0 * COUNT( * ) + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL 55 * + MAX ( - - 66 ) * + - 0 * COUNT ( * ) + - 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ( 73 ) * + - 70 + COUNT( * ) AS col2
----
-5109

skipif mysql # not compatible
query I rowsort label-4029
SELECT ( 73 ) * + - 70 + COUNT ( * ) AS col2
----
-5109

query I rowsort
SELECT 75 - - - 25 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4031
SELECT DISTINCT + + 44 * + 1 + + 36, ( + + COUNT( * ) ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT + + 44 * + 1 + + 36, ( + + COUNT ( * ) ) AS col0
----
80
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4032
SELECT - 91 DIV - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 91 / - - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4033
SELECT ALL 61 + + COUNT( * ) - - - 6 + + + CAST( NULL AS SIGNED ) * + 1 + - 66 * - ( CAST( NULL AS SIGNED ) ) * NULLIF ( + ( - 96 ), - 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL 61 + + COUNT ( * ) - - - 6 + + + CAST ( NULL AS INTEGER ) * + 1 + - 66 * - ( CAST ( NULL AS INTEGER ) ) * NULLIF ( + ( - 96 ), - 5 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4034
SELECT 56 AS col2, COUNT( * ) DIV 60 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-4034
SELECT 56 AS col2, COUNT ( * ) / 60 AS col1
----
56
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT - 75 + - 96 DIV ( CASE + 45 WHEN + 83 THEN 30 WHEN - COUNT( * ) THEN NULL ELSE 8 END ) + ( + - 7 )
----
-94

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - 75 + - 96 / ( CASE + 45 WHEN + 83 THEN 30 WHEN - COUNT ( * ) THEN NULL ELSE 8 END ) + ( + - 7 )
----
-94

query I rowsort
SELECT 23 * 63
----
1449

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4037
SELECT DISTINCT CAST( NULL AS DECIMAL ) / 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT CAST ( NULL AS REAL ) / 69 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL - 26 + - + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - 26 + - + COUNT ( * )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT 56 - - + CAST( NULL AS SIGNED ) + - - 18 * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT 56 - - + CAST ( NULL AS INTEGER ) + - - 18 * - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT ( + + ( + - COUNT( * ) ) ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-4040
SELECT ( + + ( + - COUNT ( * ) ) ) / + 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4041
SELECT + 64 AS col1, 14 - + - CASE + 19 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 41 - + 75 THEN COUNT( * ) + - 87 WHEN - - 43 - + 77 * + 38 THEN + 93 ELSE - 43 * 49 * + + 29 + + - 50 END + + - 81 DIV 90 AS col0
----
64
-61139

skipif mysql # not compatible
query II rowsort label-4041
SELECT + 64 AS col1, 14 - + - CASE + 19 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 41 - + 75 THEN COUNT ( * ) + - 87 WHEN - - 43 - + 77 * + 38 THEN + 93 ELSE - 43 * 49 * + + 29 + + - 50 END + + - 81 / 90 AS col0
----
64
-61139

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - - COUNT( - 96 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - - COUNT ( - 96 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT + COALESCE ( ( NULLIF ( + - 5, - COALESCE ( CAST( NULL AS SIGNED ), - - 95, + 24 ) * + 81 ) ), - 44 ) + 11 + - - 17 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + COALESCE ( ( NULLIF ( + - 5, - COALESCE ( CAST ( NULL AS INTEGER ), - - 95, + 24 ) * + 81 ) ), - 44 ) + 11 + - - 17 AS col1
----
23

query I rowsort
SELECT DISTINCT - + 99 AS col0
----
-99

query I rowsort
SELECT 71 * + 65 AS col2
----
4615

query I rowsort
SELECT ALL + 99 * - 30
----
-2970

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT 22 DIV 31 + - - 47 col2
----
47

skipif mysql # not compatible
query I rowsort label-4047
SELECT 22 / 31 + - - 47 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT CAST( NULL AS SIGNED ) + 34 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT CAST ( NULL AS INTEGER ) + 34 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT COALESCE ( - CAST( 23 AS SIGNED ), COUNT( * ) ) + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4049
SELECT COALESCE ( - CAST ( 23 AS INTEGER ), COUNT ( * ) ) + + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT + 4 * - + COUNT( * ) * + - 84 * + NULLIF ( + + 30, - 56 ) + + 0 + - 66 - + 98
----
9916

skipif mysql # not compatible
query I rowsort label-4050
SELECT + 4 * - + COUNT ( * ) * + - 84 * + NULLIF ( + + 30, - 56 ) + + 0 + - 66 - + 98
----
9916

query I rowsort
SELECT 57 * 95 AS col1
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + 10 * - COUNT( * ) + 33
----
23

skipif mysql # not compatible
query I rowsort label-4052
SELECT + 10 * - COUNT ( * ) + 33
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4054
SELECT 76 + + - ( + - COUNT( * ) ) DIV - 98 AS col1, 8
----
76
8

skipif mysql # not compatible
query II rowsort label-4054
SELECT 76 + + - ( + - COUNT ( * ) ) / - 98 AS col1, 8
----
76
8

query I rowsort
SELECT 47 * 66 AS col2
----
3102

query I rowsort
SELECT DISTINCT - 41 * 25 AS col1
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT 56 * + COUNT( ALL 1 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-4057
SELECT 56 * + COUNT ( ALL 1 ) col0
----
56

query I rowsort
SELECT ALL + 78 * 29 AS col0
----
2262

query I rowsort
SELECT DISTINCT + 69 * 31
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ALL MIN( + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL MIN ( + 89 ) AS col2
----
89

query I rowsort
SELECT 82 * - + 3 AS col1
----
-246

query I rowsort
SELECT ALL + 79 + - + 73
----
6

query I rowsort
SELECT ALL - 24 + - + ( - 91 )
----
67

query I rowsort
SELECT DISTINCT - ( - + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4065
SELECT + 98 * - 78 + + + COUNT( * ) + - - 47 DIV - 99, 41 AS col2
----
-7643
41

skipif mysql # not compatible
query II rowsort label-4065
SELECT + 98 * - 78 + + + COUNT ( * ) + - - 47 / - 99, 41 AS col2
----
-7643
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + MIN( + - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4066
SELECT + MIN ( + - 36 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL - COUNT( * ) + + SUM( DISTINCT + 62 )
----
61

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - COUNT ( * ) + + SUM ( DISTINCT + 62 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT MIN( - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4068
SELECT MIN ( - 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT 4 * COUNT( * ) * - + 55
----
-220

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT 4 * COUNT ( * ) * - + 55
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4070
SELECT ALL NULLIF ( + COUNT( * ), + - 14 ) * - COUNT( * ) DIV - 60 * - 99 + + COALESCE ( - - 77, 25, 7 + - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL NULLIF ( + COUNT ( * ), + - 14 ) * - COUNT ( * ) / - 60 * - 99 + + COALESCE ( - - 77, 25, 7 + - COUNT ( * ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - 91 + - COUNT( * ) + 79 + - COUNT( * ) + 94 * - 83 AS col1
----
-7816

skipif mysql # not compatible
query I rowsort label-4071
SELECT - 91 + - COUNT ( * ) + 79 + - COUNT ( * ) + 94 * - 83 AS col1
----
-7816

query I rowsort
SELECT ALL + + 12 + - 75 * 5 AS col0
----
-363

query I rowsort
SELECT ALL - 14 - - 59
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + NULLIF ( 18, 25 + - - COUNT( * ) + - 19 - + 68 * - 99 - + CASE MIN( ALL - 67 ) WHEN - 84 THEN + CASE + - 47 WHEN 67 THEN - 0 WHEN 86 - + 48 + 53 + 50 * 75 THEN NULL END + - 87 WHEN 99 THEN NULL WHEN + NULLIF ( 60, ( 26 ) ) + 56 THEN MIN( DISTINCT 53 ) + 29 END ) + 17 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4074
SELECT + NULLIF ( 18, 25 + - - COUNT ( * ) + - 19 - + 68 * - 99 - + CASE MIN ( ALL - 67 ) WHEN - 84 THEN + CASE + - 47 WHEN 67 THEN - 0 WHEN 86 - + 48 + 53 + 50 * 75 THEN NULL END + - 87 WHEN 99 THEN NULL WHEN + NULLIF ( 60, ( 26 ) ) + 56 THEN MIN ( DISTINCT 53 ) + 29 END ) + 17 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT + - NULLIF ( + - 13, 19 ) / + CAST( + - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) + ( + COUNT( * ) ) / + + 90 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT + - NULLIF ( + - 13, 19 ) / + CAST ( + - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + ( + COUNT ( * ) ) / + + 90 + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL + CASE + 8 WHEN + + 19 THEN NULL WHEN 93 * - 40 * - 94 + - + 9 * + MIN( + 25 ) + + + 38 + 24 + - + ( 86 ) * 34 THEN + - 29 ELSE NULL END * 99 - - - 73 + + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + CASE + 8 WHEN + + 19 THEN NULL WHEN 93 * - 40 * - 94 + - + 9 * + MIN ( + 25 ) + + + 38 + 24 + - + ( 86 ) * 34 THEN + - 29 ELSE NULL END * 99 - - - 73 + + + 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT CAST( - ( 46 ) AS SIGNED ) * + + 30
----
-1380

skipif mysql # not compatible
query I rowsort label-4077
SELECT CAST ( - ( 46 ) AS INTEGER ) * + + 30
----
-1380

query I rowsort
SELECT + 54 + + 17 + - 83
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 75 * - + 32 * - + 26 - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 75 * - + 32 * - + 26 - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + MAX( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4080
SELECT + MAX ( 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + MIN( DISTINCT 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4081
SELECT + MIN ( DISTINCT 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4082
SELECT ALL 22 * - 65 * + - 21 AS col2, 42 * - COUNT( * ) * - + COUNT( * )
----
30030
42

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL 22 * - 65 * + - 21 AS col2, 42 * - COUNT ( * ) * - + COUNT ( * )
----
30030
42

query I rowsort
SELECT + 27 * - 23 AS col0
----
-621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT ALL COUNT( * ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL COUNT ( * ) / - 91
----
0

query II rowsort
SELECT DISTINCT + 89 AS col1, 25 AS col2
----
89
25

query I rowsort
SELECT ALL + 55 * - - 19
----
1045

query I rowsort
SELECT + 68 * - 70 AS col1
----
-4760

query I rowsort
SELECT - 91 * - - 14 * COALESCE ( - 12, 38 * + 0 )
----
15288

onlyif mysql # aggregate syntax: 
query II rowsort label-4089
SELECT COUNT( * ) AS col0, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-4089
SELECT COUNT ( * ) AS col0, 5
----
1
5

query I rowsort
SELECT ALL COALESCE ( - - 88, - 26 ) * + 55 + 78 * + + 1 * - - 36 * + 71 * 94 + - 14
----
18745418

query I rowsort
SELECT + COALESCE ( + 33, + 98 + - + 79 + + + 57 + - - 39 * 74 * 9 ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT + 55 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT + 55 / + 82
----
0

query I rowsort
SELECT DISTINCT 61 + 46 * 30
----
1441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4094
SELECT ALL 20 + + COUNT( * ) * - - COALESCE ( MAX( ALL + 71 ), - 92 DIV - 47 * 47 * + 80 ) * - 47 AS col0, - COUNT( * ) * + 64 + - + 10 * + CAST( NULL AS SIGNED )
----
-3317
NULL

skipif mysql # not compatible
query II rowsort label-4094
SELECT ALL 20 + + COUNT ( * ) * - - COALESCE ( MAX ( ALL + 71 ), - 92 / - 47 * 47 * + 80 ) * - 47 AS col0, - COUNT ( * ) * + 64 + - + 10 * + CAST ( NULL AS INTEGER )
----
-3317
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT DISTINCT + 47 + + 57 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT + 47 + + 57 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT ALL + 50 DIV COALESCE ( + 4, 68 * 93 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + 50 / COALESCE ( + 4, 68 * 93 ) AS col1
----
12

query I rowsort
SELECT + - 86 + - - CASE + 74 WHEN - ( 10 ) THEN - - 78 END + 91
----
NULL

query I rowsort
SELECT ALL - - 52 + - - 20 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT COALESCE ( + 14, - + 34 * + 12, + + SUM( DISTINCT + - 59 ) * - CASE - 16 WHEN - + 4 + 38 THEN NULL ELSE 64 - COUNT( * ) END ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT COALESCE ( + 14, - + 34 * + 12, + + SUM ( DISTINCT + - 59 ) * - CASE - 16 WHEN - + 4 + 38 THEN NULL ELSE 64 - COUNT ( * ) END ) AS col1
----
14

query I rowsort
SELECT DISTINCT + 98 + - 43 + + - 73
----
-18

query II rowsort
SELECT - 25 AS col1, 71
----
-25
71

query I rowsort
SELECT ALL ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - - COUNT( + - ( 59 ) ) - SUM( + 33 ) * + 60 AS col1
----
-1979

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - - COUNT ( + - ( 59 ) ) - SUM ( + 33 ) * + 60 AS col1
----
-1979

query I rowsort
SELECT ALL - 85 - + 50 + - 99 - - - 5 AS col1
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL NULLIF ( 43, + ( + MIN( ALL - COALESCE ( - 63, 95 + - 25 ) ) ) * - 60 )
----
43

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL NULLIF ( 43, + ( + MIN ( ALL - COALESCE ( - 63, 95 + - 25 ) ) ) * - 60 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT - + 4 * + + CASE - 56 WHEN 3 + + 66 + - - 88 + + + SUM( DISTINCT + 34 ) THEN NULL WHEN - CASE - - 54 WHEN 46 THEN - - 37 ELSE - + 41 / - 65 END THEN + 2 + 18 ELSE - ( ( + 2 ) ) * - 43 - - CAST( + MIN( DISTINCT - ( 39 ) ) AS SIGNED ) END
----
-188

skipif mysql # not compatible
query I rowsort label-4106
SELECT - + 4 * + + CASE - 56 WHEN 3 + + 66 + - - 88 + + + SUM ( DISTINCT + 34 ) THEN NULL WHEN - CASE - - 54 WHEN 46 THEN - - 37 ELSE - + 41 / - 65 END THEN + 2 + 18 ELSE - ( ( + 2 ) ) * - 43 - - CAST ( + MIN ( DISTINCT - ( 39 ) ) AS INTEGER ) END
----
-188

query II rowsort
SELECT - + 11 col1, 90
----
-11
90

query I rowsort
SELECT NULLIF ( + - 35, - 76 - + ( + + 3 ) )
----
-35

query I rowsort
SELECT - - NULLIF ( 68, - 33 * + - 42 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + 52 * + 82 + + COUNT( * ) AS col0
----
4265

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 52 * + 82 + + COUNT ( * ) AS col0
----
4265

query II rowsort
SELECT ALL + 76 col1, 46
----
76
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT + MIN( + + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4112
SELECT + MIN ( + + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + ( ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + ( ( - COUNT ( * ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT 86 DIV + 42 - 17 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4114
SELECT 86 / + 42 - 17 AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4115
SELECT + CAST( + - 11 AS SIGNED ) - + COUNT( 72 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4115
SELECT + CAST ( + - 11 AS INTEGER ) - + COUNT ( 72 ) AS col1
----
-12

query II rowsort
SELECT ( - + 29 ) col2, - 22 AS col0
----
-29
-22

query I rowsort
SELECT + ( - 80 ) col2
----
-80

query I rowsort
SELECT + 62 + 58 AS col0
----
120

query II rowsort
SELECT ALL + 37 AS col1, - CASE - 7 WHEN + ( + 81 ) + + 5 + - 60 * 88 - 29 THEN - - 54 * + 60 + - 76 * 5 END AS col0
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT ALL COUNT( * ) * + 33 + + 61 + CAST( ( + + 23 ) AS SIGNED ) + + + 66 + - 20 * - 63 * + + 11
----
14043

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL COUNT ( * ) * + 33 + + 61 + CAST ( ( + + 23 ) AS INTEGER ) + + + 66 + - 20 * - 63 * + + 11
----
14043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL 64 * 26 * + CAST( NULL AS SIGNED ) * - 41 * - 64 * + - 58 + NULLIF ( - 48, - 17 * COUNT( * ) / 51 * - CASE 69 WHEN - - 97 - + 47 * 31 * + + ( - 87 ) THEN 17 WHEN 1 THEN NULL ELSE NULL END + ( 84 ) ) * + SUM( - 49 + 99 * + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL 64 * 26 * + CAST ( NULL AS INTEGER ) * - 41 * - 64 * + - 58 + NULLIF ( - 48, - 17 * COUNT ( * ) / 51 * - CASE 69 WHEN - - 97 - + 47 * 31 * + + ( - 87 ) THEN 17 WHEN 1 THEN NULL ELSE NULL END + ( 84 ) ) * + SUM ( - 49 + 99 * + 34 )
----
NULL

query I rowsort
SELECT ( - + 35 )
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4123
SELECT 97 * - 28 + + + CAST( NULL AS DECIMAL ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT 97 * - 28 + + + CAST ( NULL AS REAL ) * - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL 70 * - - COALESCE ( - 74, + 31 * - 97 ) + - + 0 + + - 84 * - CASE - 16 WHEN - 28 + COUNT( * ) THEN + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 70 * - - COALESCE ( - 74, + 31 * - 97 ) + - + 0 + + - 84 * - CASE - 16 WHEN - 28 + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( - + 23 )
----
-23

query I rowsort
SELECT + ( - 10 ) + + - 22 + 7 * + + 22
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT + CAST( + - MAX( DISTINCT + 94 ) AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4127
SELECT + CAST ( + - MAX ( DISTINCT + 94 ) AS INTEGER ) AS col2
----
-94

query I rowsort
SELECT ALL 72 * 95
----
6840

query I rowsort
SELECT + 78 * + 4 AS col0
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT + 84 + + + CAST( - 85 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4130
SELECT + 84 + + + CAST ( - 85 AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + COUNT( - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT + COUNT ( - 84 )
----
1

query I rowsort
SELECT DISTINCT - + 29 * + 28 + - - 80
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT + 71 * - COUNT( * ) + - 0 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + 71 * - COUNT ( * ) + - 0 AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT + CAST( NULL AS SIGNED ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT + CAST ( NULL AS INTEGER ) * 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT ALL SUM( + CAST( - + 97 AS SIGNED ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL SUM ( + CAST ( - + 97 AS INTEGER ) ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT DISTINCT + COUNT( * ) AS col1, - 51 * - COUNT( * ) AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT + COUNT ( * ) AS col1, - 51 * - COUNT ( * ) AS col0
----
1
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT - 98 AS col1, MAX( - 60 )
----
-98
-60

skipif mysql # not compatible
query II rowsort label-4137
SELECT - 98 AS col1, MAX ( - 60 )
----
-98
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL - COUNT( * ) * - COUNT( * ) - 55
----
-54

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - 55
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT ALL + 89 DIV 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + 89 / 19 AS col2
----
4

query I rowsort
SELECT + - 83 * 38
----
-3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4141
SELECT ALL - - 37 - - + 78 + COUNT( * ) - - COUNT( * ) + CAST( NULL AS SIGNED ) * - ( + 84 ), + 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL - - 37 - - + 78 + COUNT ( * ) - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - ( + 84 ), + 87 AS col2
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL - + NULLIF ( + CASE - 89 WHEN - + 54 * 90 THEN - - 45 WHEN - 28 THEN NULL ELSE NULL END, + + ( + - 92 ) + - + 69 ) - + MIN( ALL + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL - + NULLIF ( + CASE - 89 WHEN - + 54 * 90 THEN - - 45 WHEN - 28 THEN NULL ELSE NULL END, + + ( + - 92 ) + - + 69 ) - + MIN ( ALL + - 39 )
----
NULL

query I rowsort
SELECT + 62 + + 86 + - 98
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT - SUM( + 56 ) DIV + 10
----
-5

skipif mysql # not compatible
query I rowsort label-4144
SELECT - SUM ( + 56 ) / + 10
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT + 37 DIV - 22
----
-1

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 37 / - 22
----
-1

query II rowsort
SELECT ALL 77 AS col0, 65
----
77
65

query I rowsort
SELECT + 76 + + 73 + + 78 AS col2
----
227

query I rowsort
SELECT ALL - 51 * + 81 + + 14 AS col1
----
-4117

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MIN( - 75 ) * 47 - + 17
----
3508

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MIN ( - 75 ) * 47 - + 17
----
3508

query I rowsort
SELECT 66 + 87
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT 40 * - MAX( DISTINCT + 77 ) AS col1
----
-3080

skipif mysql # not compatible
query I rowsort label-4151
SELECT 40 * - MAX ( DISTINCT + 77 ) AS col1
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT 76 + - - ( + 33 ) DIV + 39 col0
----
76

skipif mysql # not compatible
query I rowsort label-4152
SELECT 76 + - - ( + 33 ) / + 39 col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4153
SELECT ALL + 91 + - - 4 AS col2, + MAX( ALL - - ( + CAST( NULL AS DECIMAL ) ) ) / + 43
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4153
SELECT ALL + 91 + - - 4 AS col2, + MAX ( ALL - - ( + CAST ( NULL AS REAL ) ) ) / + 43
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT + 82 + 77 * - COUNT( * ) * + - 83
----
6473

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 82 + 77 * - COUNT ( * ) * + - 83
----
6473

query II rowsort
SELECT DISTINCT + 19 * - - 85 AS col2, + 23
----
1615
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4156
SELECT ALL - 65 + - 27 + - 96 + - + 60 + + COUNT( * ) AS col0, - COUNT( * ) * + 22 AS col0
----
-247
-22

skipif mysql # not compatible
query II rowsort label-4156
SELECT ALL - 65 + - 27 + - 96 + - + 60 + + COUNT ( * ) AS col0, - COUNT ( * ) * + 22 AS col0
----
-247
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT + COUNT( * ) + - + COALESCE ( - - MIN( - ( - 96 ) ), - 31 )
----
-95

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + COUNT ( * ) + - + COALESCE ( - - MIN ( - ( - 96 ) ), - 31 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT DISTINCT + 37 DIV + - 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + 37 / + - 88 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL COUNT( * ) + - ( + + 12 )
----
-11

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL COUNT ( * ) + - ( + + 12 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4160
SELECT DISTINCT + 20 * - COUNT( * ) DIV - ( + - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT + 20 * - COUNT ( * ) / - ( + - 59 )
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-4161
SELECT ALL + COUNT( * ) * - 19 AS col0, 64, + - ( 14 ) * 0 col1
----
-19
64
0

skipif mysql # not compatible
query III rowsort label-4161
SELECT ALL + COUNT ( * ) * - 19 AS col0, 64, + - ( 14 ) * 0 col1
----
-19
64
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT 75 DIV + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4162
SELECT 75 / + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT - 77 * + - 64 - 42 + + + ( - 4 )
----
4882

query I rowsort
SELECT + ( - - 40 ) * + 41 + - 32 col1
----
1608

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ALL + 67 DIV - 8
----
-8

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + 67 / - 8
----
-8

query II rowsort
SELECT ALL - ( - 14 ) AS col2, + 11 + 73 AS col0
----
14
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT + 35 * 71 * - - CAST( NULL AS SIGNED ) / 47 + + 42 + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + 35 * 71 * - - CAST ( NULL AS INTEGER ) / 47 + + 42 + + 57 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT ALL - 98 - - 3 DIV - 95
----
-98

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL - 98 - - 3 / - 95
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-4169
SELECT DISTINCT + 40 DIV 77 AS col2, ( + 85 ) * - + 78
----
0
-6630

skipif mysql # not compatible
query II rowsort label-4169
SELECT DISTINCT + 40 / 77 AS col2, ( + 85 ) * - + 78
----
0
-6630

query I rowsort
SELECT DISTINCT - - 83 AS col0
----
83

query I rowsort
SELECT ALL 88 * 39 col2
----
3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4172
SELECT - ( + COUNT( * ) ) * + 54 AS col0, - 11 DIV - - COALESCE ( + 13, - + CASE - 60 WHEN + COUNT( * ) DIV + - 2 THEN - 75 + - MIN( + + 18 ) DIV + - 8 ELSE 39 * + COUNT( * ) + 65 - 71 END ) AS col0
----
-54
0

skipif mysql # not compatible
query II rowsort label-4172
SELECT - ( + COUNT ( * ) ) * + 54 AS col0, - 11 / - - COALESCE ( + 13, - + CASE - 60 WHEN + COUNT ( * ) / + - 2 THEN - 75 + - MIN ( + + 18 ) / + - 8 ELSE 39 * + COUNT ( * ) + 65 - 71 END ) AS col0
----
-54
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT ALL 27 DIV 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 27 / 87 AS col0
----
0

query I rowsort
SELECT 15 * - + 98 * 53 + - 13 AS col2
----
-77923

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT COALESCE ( - 90, 83 DIV 90 * - 26 ) + - - 50
----
-40

skipif mysql # not compatible
query I rowsort label-4175
SELECT COALESCE ( - 90, 83 / 90 * - 26 ) + - - 50
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT DISTINCT + COALESCE ( - CASE 1 WHEN + 80 THEN - COUNT( * ) + + - 43 WHEN + 7 + - 60 THEN 61 ELSE 41 END, - 10 ) * + + 16, 65 * - ( - - 98 ) AS col1
----
-656
-6370

skipif mysql # not compatible
query II rowsort label-4176
SELECT DISTINCT + COALESCE ( - CASE 1 WHEN + 80 THEN - COUNT ( * ) + + - 43 WHEN + 7 + - 60 THEN 61 ELSE 41 END, - 10 ) * + + 16, 65 * - ( - - 98 ) AS col1
----
-656
-6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4177
SELECT ALL - COALESCE ( - 70, - 44 + - + 73 + 62 * + - COUNT( * ) DIV + - 2 * - CASE + ( + - 47 ) WHEN + 55 THEN COALESCE ( - + 82, + + 18 ) - 35 + COUNT( * ) ELSE NULL END )
----
70

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - COALESCE ( - 70, - 44 + - + 73 + 62 * + - COUNT ( * ) / + - 2 * - CASE + ( + - 47 ) WHEN + 55 THEN COALESCE ( - + 82, + + 18 ) - 35 + COUNT ( * ) ELSE NULL END )
----
70

query II rowsort
SELECT + 7 * + - 27 AS col0, + 14
----
-189
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4179
SELECT ALL + CAST( - + 9 AS SIGNED ) AS col0, 9 + + 3
----
-9
12

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL + CAST ( - + 9 AS INTEGER ) AS col0, 9 + + 3
----
-9
12

query II rowsort
SELECT ALL + 22 * + 88, 87 AS col1
----
1936
87

query I rowsort
SELECT DISTINCT - NULLIF ( - + 96, - 74 + - 7 / - 44 + 22 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT CAST( - - 49 AS SIGNED ) + + - 74
----
-25

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT CAST ( - - 49 AS INTEGER ) + + - 74
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT 76 * + ( + COUNT( * ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4183
SELECT 76 * + ( + COUNT ( * ) ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL 4 + COUNT( * ) - + 34 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL 4 + COUNT ( * ) - + 34 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4185
SELECT ALL 36, 38 * + 26 - + COUNT( ALL + 40 ) - SUM( DISTINCT - + 18 ) AS col0
----
36
1005

skipif mysql # not compatible
query II rowsort label-4185
SELECT ALL 36, 38 * + 26 - + COUNT ( ALL + 40 ) - SUM ( DISTINCT - + 18 ) AS col0
----
36
1005

query II rowsort
SELECT - 38 col2, 75 * - 60 AS col2
----
-38
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT COUNT( - 33 ) - - 93 * - - 75 AS col1
----
6976

skipif mysql # not compatible
query I rowsort label-4187
SELECT COUNT ( - 33 ) - - 93 * - - 75 AS col1
----
6976

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4188
SELECT DISTINCT 42, 66 * + 96 * - ( NULLIF ( - + NULLIF ( - + 94, + + CAST( + 4 AS DECIMAL ) * - + COUNT( * ) * + 3 * - 63 ), - 66 ) ) AS col1
----
42
-595584

skipif mysql # not compatible
query II rowsort label-4188
SELECT DISTINCT 42, 66 * + 96 * - ( NULLIF ( - + NULLIF ( - + 94, + + CAST ( + 4 AS REAL ) * - + COUNT ( * ) * + 3 * - 63 ), - 66 ) ) AS col1
----
42
-595584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT ALL + 96 + - ( + 42 ) + - COUNT( * ) * 78 + + - 26 + + CASE - 32 WHEN - 90 THEN + 87 ELSE NULL END * - 8 + 46 + - - COALESCE ( - 49, + COUNT( * ) + + CAST( NULL AS SIGNED ) + 36 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + 96 + - ( + 42 ) + - COUNT ( * ) * 78 + + - 26 + + CASE - 32 WHEN - 90 THEN + 87 ELSE NULL END * - 8 + 46 + - - COALESCE ( - 49, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 36 ) col1
----
NULL

query I rowsort
SELECT 1 * - + 79 col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT + SUM( - + NULLIF ( 98, + - 99 ) ) + - + 44
----
-142

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + SUM ( - + NULLIF ( 98, + - 99 ) ) + - + 44
----
-142

query I rowsort
SELECT ALL 3 * 71 AS col1
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT 62 * + COUNT( * ) * ( MIN( ALL - + 69 ) ) AS col0
----
-4278

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT 62 * + COUNT ( * ) * ( MIN ( ALL - + 69 ) ) AS col0
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT 91 * 21 * + + COUNT( * ) AS col0
----
1911

skipif mysql # not compatible
query I rowsort label-4194
SELECT 91 * 21 * + + COUNT ( * ) AS col0
----
1911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4195
SELECT DISTINCT CASE - - 13 WHEN + 43 / - 96 THEN COALESCE ( - + MIN( ALL CAST( 43 AS SIGNED ) ), - CASE - MIN( - - ( + - 44 ) ) WHEN + + COUNT( * ) THEN NULL WHEN - ( + - SUM( ALL - 13 ) ) THEN + ( - 81 ) * + CAST( NULL AS DECIMAL ) * - 46 * + 95 * + 69 / + - 87 ELSE NULL END / 38 ) + - 45 END * 58 + - ( - 11 + 20 ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT CASE - - 13 WHEN + 43 / - 96 THEN COALESCE ( - + MIN ( ALL CAST ( 43 AS INTEGER ) ), - CASE - MIN ( - - ( + - 44 ) ) WHEN + + COUNT ( * ) THEN NULL WHEN - ( + - SUM ( ALL - 13 ) ) THEN + ( - 81 ) * + CAST ( NULL AS REAL ) * - 46 * + 95 * + 69 / + - 87 ELSE NULL END / 38 ) + - 45 END * 58 + - ( - 11 + 20 ) * 80
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ( - - 93 ) * - + CAST( - 68 AS SIGNED ) + + + 62 + - 32 * + 23 * + - 41 * + ( - - 87 ) AS col0
----
2631698

skipif mysql # not compatible
query I rowsort label-4196
SELECT ( - - 93 ) * - + CAST ( - 68 AS INTEGER ) + + + 62 + - 32 * + 23 * + - 41 * + ( - - 87 ) AS col0
----
2631698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4197
SELECT 10 - 98 DIV + - 77 * COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4197
SELECT 10 - 98 / + - 77 * COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - NULLIF ( + COUNT( * ), + - AVG ( DISTINCT 81 ) * - 65 + ( 60 ) - 37 * - ( + 68 ) * - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + - AVG ( DISTINCT 81 ) * - 65 + ( 60 ) - 37 * - ( + 68 ) * - 1 ) AS col1
----
-1

query II rowsort
SELECT + 27, 98 * + 16 + + - 13 AS col2
----
27
1555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT ALL + 38 * + + MIN( CAST( + 99 AS SIGNED ) )
----
3762

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + 38 * + + MIN ( CAST ( + 99 AS INTEGER ) )
----
3762

query II rowsort
SELECT ALL + - 41 - - - 25 * + - 36 AS col0, + 4
----
859
4

query I rowsort
SELECT ALL + - 33 * + - 31 * - ( 8 )
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT MAX( - + 92 ) * 88 + - 38 + - 13
----
-8147

skipif mysql # not compatible
query I rowsort label-4203
SELECT MAX ( - + 92 ) * 88 + - 38 + - 13
----
-8147

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + COUNT( * ) * 58 * - 21 + - + 23 + 92 * COUNT( * ) * - 27
----
-3725

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + COUNT ( * ) * 58 * - 21 + - + 23 + 92 * COUNT ( * ) * - 27
----
-3725

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL MIN( 30 ) - + - 33
----
63

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL MIN ( 30 ) - + - 33
----
63

query I rowsort
SELECT ALL + + 66 * 75 + + + 91
----
5041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4207
SELECT 71 * + ( - 84 ) AS col1, - CASE - 79 WHEN COALESCE ( + 98, + - 89 * - CAST( NULL AS SIGNED ) - - 28 * - 34 ) THEN + MIN( ALL + 21 ) ELSE NULL END AS col1
----
-5964
NULL

skipif mysql # not compatible
query II rowsort label-4207
SELECT 71 * + ( - 84 ) AS col1, - CASE - 79 WHEN COALESCE ( + 98, + - 89 * - CAST ( NULL AS INTEGER ) - - 28 * - 34 ) THEN + MIN ( ALL + 21 ) ELSE NULL END AS col1
----
-5964
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT DISTINCT + 45 * + 17 * - - 98 DIV - COUNT( * ) AS col1
----
-74970

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT + 45 * + 17 * - - 98 / - COUNT ( * ) AS col1
----
-74970

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT ALL - + COUNT( * ) AS col1, 24 + 48
----
-1
72

skipif mysql # not compatible
query II rowsort label-4209
SELECT ALL - + COUNT ( * ) AS col1, 24 + 48
----
-1
72

query I rowsort
SELECT + + ( - 9 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4211
SELECT + + ( 98 ) + - + 30 + 17 + + - NULLIF ( 24, - 39 ) DIV ( COUNT( * ) ) * - - 72 + 30
----
-1613

skipif mysql # not compatible
query I rowsort label-4211
SELECT + + ( 98 ) + - + 30 + 17 + + - NULLIF ( 24, - 39 ) / ( COUNT ( * ) ) * - - 72 + 30
----
-1613

query I rowsort
SELECT DISTINCT + - 57 AS col2
----
-57

query II rowsort
SELECT 97 AS col0, + 2
----
97
2

query I rowsort
SELECT - 44 + 57 AS col0
----
13

query I rowsort
SELECT ALL 88 * 8 + 71 + - ( + 46 )
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT + CASE - ( 39 ) WHEN 24 + 62 THEN NULLIF ( COUNT( * ), - 0 ) END / + + ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT + CASE - ( 39 ) WHEN 24 + 62 THEN NULLIF ( COUNT ( * ), - 0 ) END / + + ( + + COUNT ( * ) ) AS col0
----
NULL

query II rowsort
SELECT ALL - - 49 + 56 + - 2 AS col2, + 63 - 80 col2
----
103
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL + SUM( 23 ) + + 43 + 53 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + SUM ( 23 ) + + 43 + 53 AS col1
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL - 54 + - 7 + + 32 / - 91 * AVG ( + NULLIF ( - 84, 56 * 29 ) ) * 28 * - 92 - - - ( + 78 ) + CASE + 69 WHEN + COUNT( * ) THEN + 94 WHEN + 35 * + COALESCE ( ( - + 14 ), NULLIF ( - COUNT( * ), - ( - 42 ) * 32 ), - ( CAST( - ( 80 ) AS SIGNED ) ) * + 6 ) - - 92 + COALESCE ( + 3, COUNT( * ) ) THEN 96 END + + 32 * AVG ( DISTINCT + 11 * - 74 ) * 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - 54 + - 7 + + 32 / - 91 * AVG ( + NULLIF ( - 84, 56 * 29 ) ) * 28 * - 92 - - - ( + 78 ) + CASE + 69 WHEN + COUNT ( * ) THEN + 94 WHEN + 35 * + COALESCE ( ( - + 14 ), NULLIF ( - COUNT ( * ), - ( - 42 ) * 32 ), - ( CAST ( - ( 80 ) AS INTEGER ) ) * + 6 ) - - 92 + COALESCE ( + 3, COUNT ( * ) ) THEN 96 END + + 32 * AVG ( DISTINCT + 11 * - 74 ) * 42 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 43 + - - 33 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT 4 + + ( SUM( ALL + + 95 ) ) + - + 16 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT 4 + + ( SUM ( ALL + + 95 ) ) + - + 16 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL 63 * 24 * + SUM( - 41 ) col0
----
-61992

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL 63 * 24 * + SUM ( - 41 ) col0
----
-61992

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT 98 * - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT 98 * - COUNT ( * )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT + 63 + - CAST( NULL AS SIGNED ) + + 74 + MAX( + 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT + 63 + - CAST ( NULL AS INTEGER ) + + 74 + MAX ( + 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4225
SELECT ALL + 37 * + CASE + + 19 WHEN - COUNT( * ) THEN 30 DIV + ( CASE + 89 WHEN COUNT( * ) THEN + 36 + + ( - - 44 ) - + 53 * + - 39 DIV 0 END ) + MAX( DISTINCT + 53 ) WHEN + 0 + MIN( 2 ) + + 85 * - 35 DIV MAX( DISTINCT - - 50 ) THEN NULL ELSE + 81 END
----
2997

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + 37 * + CASE + + 19 WHEN - COUNT ( * ) THEN 30 / + ( CASE + 89 WHEN COUNT ( * ) THEN + 36 + + ( - - 44 ) - + 53 * + - 39 / 0 END ) + MAX ( DISTINCT + 53 ) WHEN + 0 + MIN ( 2 ) + + 85 * - 35 / MAX ( DISTINCT - - 50 ) THEN NULL ELSE + 81 END
----
2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4226
SELECT ALL - 65 - + 8 * + 73 * + COALESCE ( - ( + COUNT( * ) ), - COUNT( * ) DIV - 80 * + 46 + - - 87 + + 9 * - + 40 * COALESCE ( - 34, + 0, 47 ) DIV - 10 - 89 - - 49 ) AS col0
----
519

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - 65 - + 8 * + 73 * + COALESCE ( - ( + COUNT ( * ) ), - COUNT ( * ) / - 80 * + 46 + - - 87 + + 9 * - + 40 * COALESCE ( - 34, + 0, 47 ) / - 10 - 89 - - 49 ) AS col0
----
519

query I rowsort
SELECT + 9 + + 49 AS col1
----
58

query I rowsort
SELECT - ( + 0 ) AS col0
----
0

query I rowsort
SELECT ALL 91 - - - 27 - + ( 13 )
----
51

query I rowsort
SELECT - 79 * - - 36 AS col1
----
-2844

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT 84 * - - CAST( 56 AS SIGNED ) AS col2
----
4704

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT 84 * - - CAST ( 56 AS INTEGER ) AS col2
----
4704

query I rowsort
SELECT + ( + NULLIF ( - 58, - 15 * 69 / + 3 ) )
----
-58

query I rowsort
SELECT ALL 14 * - 59 * + 65
----
-53690

query I rowsort
SELECT DISTINCT + 40 * - - 85 * + - 38 AS col0
----
-129200

query I rowsort
SELECT ALL + 82 * 94
----
7708

query I rowsort
SELECT - + 71 * + 23 * 92 + + ( - ( + - 44 ) ) - + 76 + + - 47 * + 79
----
-153981

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT ALL - 1 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - 1 / + 32
----
0

query I rowsort
SELECT ( - 61 )
----
-61

query I rowsort
SELECT ALL + ( - 80 ) col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + COUNT( ALL - - 82 ) DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COUNT ( ALL - - 82 ) / + 84 AS col2
----
0

query I rowsort
SELECT + 93 * - 32
----
-2976

query I rowsort
SELECT + 97 * + + 0 + + ( + - 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - MIN( ALL + 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4243
SELECT - MIN ( ALL + 98 ) AS col0
----
-98

query I rowsort
SELECT - + 44 * 52
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - COUNT( * ) * - COUNT( * ) - + 10
----
-9

skipif mysql # not compatible
query I rowsort label-4245
SELECT - COUNT ( * ) * - COUNT ( * ) - + 10
----
-9

query I rowsort
SELECT ALL + + 72 AS col1
----
72

query I rowsort
SELECT - 47 * 87 AS col2
----
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + 49 * + + 10 + - COUNT( ALL + 11 ) AS col0
----
489

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + 49 * + + 10 + - COUNT ( ALL + 11 ) AS col0
----
489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL + 21 * - 48 + CASE CAST( NULL AS SIGNED ) WHEN + + 73 THEN 59 ELSE 1 - - + 77 END + - 18 * 58 + + 38 AS col2
----
-1936

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + 21 * - 48 + CASE CAST ( NULL AS INTEGER ) WHEN + + 73 THEN 59 ELSE 1 - - + 77 END + - 18 * 58 + + 38 AS col2
----
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + MAX( + 83 ) * + - 82 - - + 72 + 75 - - 74 AS col1
----
-6585

skipif mysql # not compatible
query I rowsort label-4250
SELECT + MAX ( + 83 ) * + - 82 - - + 72 + 75 - - 74 AS col1
----
-6585

query I rowsort
SELECT ALL - ( 8 )
----
-8

query I rowsort
SELECT - CASE - - 38 WHEN - - 70 THEN + + 73 END
----
NULL

query II rowsort
SELECT DISTINCT - 78 + - 64 - 44 * - 52 + + 18 AS col1, 94 AS col0
----
2164
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT - 22 + + 48 + - 20 DIV - - 9 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4254
SELECT - 22 + + 48 + - 20 / - - 9 AS col2
----
24

query I rowsort
SELECT DISTINCT ( - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - COUNT( + + 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4256
SELECT - COUNT ( + + 57 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL CAST( - 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL CAST ( - 56 AS INTEGER ) AS col0
----
-56

query I rowsort
SELECT DISTINCT - 78 - 93 * + 40 AS col2
----
-3798

query I rowsort
SELECT + CASE - 79 WHEN 65 * - 70 THEN NULL ELSE + 45 END * - + 79 * - - 94
----
-334170

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT + 9 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT + 9 / - 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT - 61 * + NULLIF ( + + 91, COUNT( * ) + + 28 ) * - 25 AS col2
----
138775

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - 61 * + NULLIF ( + + 91, COUNT ( * ) + + 28 ) * - 25 AS col2
----
138775

query I rowsort
SELECT DISTINCT 8 * + 56 AS col2
----
448

query I rowsort
SELECT + 32 * + COALESCE ( + 62, + 43 + + 39 * + + ( 61 ) )
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + 49 - 98 + + CASE + 57 WHEN + 1 THEN + 83 + - 38 * - 21 WHEN - 23 THEN - 9 ELSE NULL END + - - 45 - COUNT( * ) + + 67 / + 20 * + 39 + - + 48 + - 8 - + + 83 - MAX( DISTINCT - 27 ) * - - 17 / - 25 + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 49 - 98 + + CASE + 57 WHEN + 1 THEN + 83 + - 38 * - 21 WHEN - 23 THEN - 9 ELSE NULL END + - - 45 - COUNT ( * ) + + 67 / + 20 * + 39 + - + 48 + - 8 - + + 83 - MAX ( DISTINCT - 27 ) * - - 17 / - 25 + - 86
----
NULL

query I rowsort
SELECT + 55 * + 96
----
5280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL + + CAST( + - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + + CAST ( + - 58 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + 24 - MIN( DISTINCT + 26 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4267
SELECT + 24 - MIN ( DISTINCT + 26 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL + COUNT( DISTINCT - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + COUNT ( DISTINCT - 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT 56 * + 4 + + - MAX( ALL + ( + 98 ) )
----
126

skipif mysql # not compatible
query I rowsort label-4269
SELECT 56 * + 4 + + - MAX ( ALL + ( + 98 ) )
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT - COUNT( * ) - 64 * + - 97, - 7 + 35 col0
----
6207
28

skipif mysql # not compatible
query II rowsort label-4270
SELECT - COUNT ( * ) - 64 * + - 97, - 7 + 35 col0
----
6207
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT + + SUM( ( 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-4271
SELECT + + SUM ( ( 93 ) )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT - 28 + - - CAST( + 97 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - 28 + - - CAST ( + 97 AS INTEGER ) AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT - ( + + 44 ) DIV + 66 + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-4273
SELECT - ( + + 44 ) / + 66 + - 54
----
-54

query I rowsort
SELECT + + 44 AS col0
----
44

query I rowsort
SELECT 59 * - - 91 AS col1
----
5369

query I rowsort
SELECT ALL 34 + 33 / - CASE - 9 WHEN + 61 THEN ( + 43 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + COUNT( * ) + - + CASE + + 64 WHEN + + 46 THEN NULL WHEN - 38 - - 85 THEN - 90 / 59 * - 28 * - 62 + - + 30 + + 74 + - - 39 + 40 END / + - MAX( - 40 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT + COUNT ( * ) + - + CASE + + 64 WHEN + + 46 THEN NULL WHEN - 38 - - 85 THEN - 90 / 59 * - 28 * - 62 + - + 30 + + 74 + - - 39 + 40 END / + - MAX ( - 40 ) col1
----
NULL

query I rowsort
SELECT ALL - 78 * + + 43
----
-3354

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4279
SELECT DISTINCT 83 + + - 65 * + 13 * - 95 + 1 - + CAST( 56 AS DECIMAL ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT 83 + + - 65 * + 13 * - 95 + 1 - + CAST ( 56 AS REAL ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - CASE - 47 WHEN - 69 + - 37 THEN NULL ELSE + - 77 END
----
77

query I rowsort
SELECT DISTINCT - + ( + 20 )
----
-20

query I rowsort
SELECT ALL + 34 + + 60
----
94

query I rowsort
SELECT DISTINCT 5 * - + 36 col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - + NULLIF ( - + 87, + COUNT( + + 55 ) * 18 * - ( + MAX( DISTINCT + 61 ) ) * + - COALESCE ( - + AVG ( DISTINCT - 36 ), - - 64, + 2 ) + + COALESCE ( + - COALESCE ( - - 8, - 45 ), - 49 + - 58 ) + 40 + - 64 - - 13 ) + + - 56
----
31

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - + NULLIF ( - + 87, + COUNT ( + + 55 ) * 18 * - ( + MAX ( DISTINCT + 61 ) ) * + - COALESCE ( - + AVG ( DISTINCT - 36 ), - - 64, + 2 ) + + COALESCE ( + - COALESCE ( - - 8, - 45 ), - 49 + - 58 ) + 40 + - 64 - - 13 ) + + - 56
----
31

query I rowsort
SELECT 3 + 46 * + - ( - 59 ) + 93 + + 22 AS col2
----
2832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT - CASE + 48 WHEN + 79 + - COUNT( * ) + 95 - + COUNT( * ) THEN - ( 88 ) WHEN 6 THEN - + NULLIF ( + 35, - + 69 ) ELSE + 26 / - - CAST( NULL AS SIGNED ) + 19 END * + 42 / + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT - CASE + 48 WHEN + 79 + - COUNT ( * ) + 95 - + COUNT ( * ) THEN - ( 88 ) WHEN 6 THEN - + NULLIF ( + 35, - + 69 ) ELSE + 26 / - - CAST ( NULL AS INTEGER ) + 19 END * + 42 / + 16
----
NULL

query I rowsort
SELECT ALL + - 81 + + + 95 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + COUNT( 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT + COUNT ( 30 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + - COALESCE ( + + 23, - COUNT( * ), 89 + - 41 * - 57 * + ( + - COUNT( - - 96 ) ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4289
SELECT + - COALESCE ( + + 23, - COUNT ( * ), 89 + - 41 * - 57 * + ( + - COUNT ( - - 96 ) ) ) AS col0
----
-23

query I rowsort
SELECT ALL 45 - - 48
----
93

query I rowsort
SELECT ALL - 74 * - 50
----
3700

query I rowsort
SELECT DISTINCT - 92 * - 1
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4293
SELECT ALL 91 AS col0, - ( + + 53 ) DIV - ( - COALESCE ( 43, - 76, + AVG ( DISTINCT NULLIF ( CAST( NULL AS SIGNED ), - + 28 * + 12 ) ) ) ) AS col1
----
91
-1

skipif mysql # not compatible
query II rowsort label-4293
SELECT ALL 91 AS col0, - ( + + 53 ) / - ( - COALESCE ( 43, - 76, + AVG ( DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), - + 28 * + 12 ) ) ) ) AS col1
----
91
-1

query I rowsort
SELECT 1 + + CASE 68 WHEN + 43 THEN NULL ELSE + 33 * 25 * + 10 + - - ( ( - - 32 ) ) END AS col1
----
8283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT + 29 - - CASE - - 42 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN + + COUNT( * ) * 52 THEN + MAX( DISTINCT + + 57 ) * - + 64 ELSE MAX( ALL 55 ) END
----
84

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT + 29 - - CASE - - 42 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + COUNT ( * ) * 52 THEN + MAX ( DISTINCT + + 57 ) * - + 64 ELSE MAX ( ALL 55 ) END
----
84

query II rowsort
SELECT 3, + 30 + + 47 AS col2
----
3
77

query I rowsort
SELECT 10 + ( + 70 )
----
80

query II rowsort
SELECT - 0 AS col1, + 35
----
0
35

query I rowsort
SELECT 20 + - + 60 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT 94 * 4 * - COUNT( * )
----
-376

skipif mysql # not compatible
query I rowsort label-4300
SELECT 94 * 4 * - COUNT ( * )
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT COUNT( * ) * 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4301
SELECT COUNT ( * ) * 57 AS col0
----
57

query I rowsort
SELECT 0 + + 72
----
72

query I rowsort
SELECT 19 * - 69
----
-1311

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT DISTINCT + 30 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + 30 / 84 AS col0
----
0

query I rowsort
SELECT ALL 90 * - 53 AS col0
----
-4770

query I rowsort
SELECT 35 + 73 + + + 73 * - 51 - - 35 AS col1
----
-3580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - 52 / + - CAST( NULL AS SIGNED ) + + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT - 52 / + - CAST ( NULL AS INTEGER ) + + + 39
----
NULL

query II rowsort
SELECT 35 + 57, - 66 col1
----
92
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4309
SELECT - NULLIF ( - ( - - 7 ), 28 * + CASE - - 47 WHEN + ( + - CAST( CAST( - 50 AS SIGNED ) AS DECIMAL ) ) + - ( - - COUNT( DISTINCT + - 81 ) ) THEN + COALESCE ( 83, + + 76 ) * - COUNT( * ) - + + 29 + - - 69 END + + 63 * - ( - + ( + 38 ) ) + + + COUNT( * ) * + 62 / + - 28 * 79 ) + 70 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4309
SELECT - NULLIF ( - ( - - 7 ), 28 * + CASE - - 47 WHEN + ( + - CAST ( CAST ( - 50 AS INTEGER ) AS REAL ) ) + - ( - - COUNT ( DISTINCT + - 81 ) ) THEN + COALESCE ( 83, + + 76 ) * - COUNT ( * ) - + + 29 + - - 69 END + + 63 * - ( - + ( + 38 ) ) + + + COUNT ( * ) * + 62 / + - 28 * 79 ) + 70 AS col1
----
77

query I rowsort
SELECT + NULLIF ( + ( + 15 ), CASE - 72 WHEN + 68 * 40 + 34 / - 93 THEN + 97 + + - ( 48 ) WHEN - 77 * 89 + 32 THEN 64 ELSE NULL END + + CASE + + 55 WHEN 63 - + 46 THEN - + 99 END - + ( - 78 ) / 78 * - 69 / 21 ) * 46
----
690

onlyif mysql # aggregate syntax: 
query III rowsort label-4311
SELECT + 18 AS col1, ( 13 ) + COUNT( * ) AS col2, + 41
----
18
14
41

skipif mysql # not compatible
query III rowsort label-4311
SELECT + 18 AS col1, ( 13 ) + COUNT ( * ) AS col2, + 41
----
18
14
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT ALL CASE + - 34 WHEN ( - 44 ) * + 55 - + 81 + - + COUNT( * ) + - 3 + + - 63 * - 15 THEN + - ( + CAST( 10 AS SIGNED ) ) + + + 6 ELSE NULL END + 25 / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL CASE + - 34 WHEN ( - 44 ) * + 55 - + 81 + - + COUNT ( * ) + - 3 + + - 63 * - 15 THEN + - ( + CAST ( 10 AS INTEGER ) ) + + + 6 ELSE NULL END + 25 / + 84
----
NULL

query I rowsort
SELECT ALL - - ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT 84 * NULLIF ( ( + 57 ), - COUNT( * ) ) * 95 + COUNT( * )
----
454861

skipif mysql # not compatible
query I rowsort label-4314
SELECT 84 * NULLIF ( ( + 57 ), - COUNT ( * ) ) * 95 + COUNT ( * )
----
454861

query II rowsort
SELECT 28 col0, 64
----
28
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4316
SELECT + + COUNT( * ) AS col0, + 14 - 73
----
1
-59

skipif mysql # not compatible
query II rowsort label-4316
SELECT + + COUNT ( * ) AS col0, + 14 - 73
----
1
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT + 92, COUNT( * ) AS col1
----
92
1

skipif mysql # not compatible
query II rowsort label-4317
SELECT + 92, COUNT ( * ) AS col1
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT MIN( + 98 ) * - + SUM( ALL - 49 ) * - + 94 + - 2 * 41
----
-451470

skipif mysql # not compatible
query I rowsort label-4318
SELECT MIN ( + 98 ) * - + SUM ( ALL - 49 ) * - + 94 + - 2 * 41
----
-451470

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - 23 - + + 83 * COUNT( * ) * 7 - + 73 AS col0
----
-677

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - 23 - + + 83 * COUNT ( * ) * 7 - + 73 AS col0
----
-677

query I rowsort
SELECT - 83 * + - 48 - + + 45 col0
----
3939

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT ALL - 97 AS col2, + MIN( ALL + - 70 ) AS col1
----
-97
-70

skipif mysql # not compatible
query II rowsort label-4321
SELECT ALL - 97 AS col2, + MIN ( ALL + - 70 ) AS col1
----
-97
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT DISTINCT - 73 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - 73 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT MAX( DISTINCT - 59 ) - 59
----
-118

skipif mysql # not compatible
query I rowsort label-4323
SELECT MAX ( DISTINCT - 59 ) - 59
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL + 62 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + 62 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 22 ) * + 31
----
-682

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 4 DIV + - 8 * - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT 4 / + - 8 * - 61 AS col1
----
0

query I rowsort
SELECT 10 * + + 43
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT 15 * COUNT( * ) - 16
----
-1

skipif mysql # not compatible
query I rowsort label-4328
SELECT 15 * COUNT ( * ) - 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT MIN( + - 85 ) * - 57 + + 18 col0
----
4863

skipif mysql # not compatible
query I rowsort label-4329
SELECT MIN ( + - 85 ) * - 57 + + 18 col0
----
4863

query I rowsort
SELECT DISTINCT 48 col0
----
48

query I rowsort
SELECT ALL + 43 * 68 * - 22 col2
----
-64328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT 10 * - CAST( + - SUM( 54 ) AS SIGNED )
----
540

skipif mysql # not compatible
query I rowsort label-4332
SELECT 10 * - CAST ( + - SUM ( 54 ) AS INTEGER )
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + COALESCE ( - 30, + - SUM( 66 ), + COUNT( * ) ) * - 42 AS col2
----
1260

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + COALESCE ( - 30, + - SUM ( 66 ), + COUNT ( * ) ) * - 42 AS col2
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT ALL + ( + 32 ) * CAST( NULL AS SIGNED ) / 48 - - 2 * - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + ( + 32 ) * CAST ( NULL AS INTEGER ) / 48 - - 2 * - + 93
----
NULL

query I rowsort
SELECT 29 * + 93 AS col1
----
2697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4336
SELECT ALL + NULLIF ( CASE - 70 WHEN + ( + - 43 ) DIV 38 DIV + + CAST( - 27 AS SIGNED ) THEN - + CASE - - 23 WHEN - 57 THEN NULL ELSE - 65 + + COUNT( * ) END ELSE + CASE + + 45 WHEN + 37 - 72 * - + 73 THEN + + 61 + + + 30 ELSE + + SUM( ALL - 14 ) + - + 39 END * + 4 + + 31 + CAST( - + 56 AS SIGNED ) DIV + ( + 54 * 30 ) END, + 51 * - 42 ) + + 77 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL + NULLIF ( CASE - 70 WHEN + ( + - 43 ) / 38 / + + CAST ( - 27 AS INTEGER ) THEN - + CASE - - 23 WHEN - 57 THEN NULL ELSE - 65 + + COUNT ( * ) END ELSE + CASE + + 45 WHEN + 37 - 72 * - + 73 THEN + + 61 + + + 30 ELSE + + SUM ( ALL - 14 ) + - + 39 END * + 4 + + 31 + CAST ( - + 56 AS INTEGER ) / + ( + 54 * 30 ) END, + 51 * - 42 ) + + 77 AS col0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT ALL - ( 96 ) + + + CAST( + COUNT( * ) AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - ( 96 ) + + + CAST ( + COUNT ( * ) AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT - - 34 * + 22 * + 39 + - + COUNT( * ) + - COUNT( * ) AS col1
----
29170

skipif mysql # not compatible
query I rowsort label-4338
SELECT - - 34 * + 22 * + 39 + - + COUNT ( * ) + - COUNT ( * ) AS col1
----
29170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) + - COUNT( ALL + 70 ) * - 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - COUNT ( ALL + 70 ) * - 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - 59 - - - MAX( + 66 ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-4340
SELECT - 59 - - - MAX ( + 66 ) AS col1
----
-125

query I rowsort
SELECT - ( + + COALESCE ( - 22, - 52 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + - 65 + - - COUNT( * ) + 78 + 17 + - + 14 * 58 AS col1
----
-781

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + - 65 + - - COUNT ( * ) + 78 + 17 + - + 14 * 58 AS col1
----
-781

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT - 86 + - 26 AS col2, - COUNT( * ) AS col0
----
-112
-1

skipif mysql # not compatible
query II rowsort label-4343
SELECT - 86 + - 26 AS col2, - COUNT ( * ) AS col0
----
-112
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + + COUNT( * ) + 25 + 61
----
87

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + + COUNT ( * ) + 25 + 61
----
87

query I rowsort
SELECT DISTINCT + ( - 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT ALL - 30 * + CAST( + 61 AS SIGNED ) + - ( - 0 ) + + 82
----
-1748

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - 30 * + CAST ( + 61 AS INTEGER ) + - ( - 0 ) + + 82
----
-1748

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT ALL + + 40 DIV - 76 * - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + + 40 / - 76 * - 68 AS col0
----
0

query I rowsort
SELECT - 31 * - ( - 34 ) * 72 * 21 + - 46
----
-1593694

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL 27 * + 88 * - + MIN( DISTINCT 62 ) - - + 6 col0
----
-147306

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL 27 * + 88 * - + MIN ( DISTINCT 62 ) - - + 6 col0
----
-147306

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - COUNT( * ) * - 12 + 88 + ( - 99 ) * 15 col0
----
-1385

skipif mysql # not compatible
query I rowsort label-4350
SELECT - COUNT ( * ) * - 12 + 88 + ( - 99 ) * 15 col0
----
-1385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4351
SELECT - COUNT( * ) DIV + CAST( 55 AS SIGNED ) + - 3 * + + 17, 93 AS col0
----
-51
93

skipif mysql # not compatible
query II rowsort label-4351
SELECT - COUNT ( * ) / + CAST ( 55 AS INTEGER ) + - 3 * + + 17, 93 AS col0
----
-51
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4352
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 54 - + - COUNT( * ) AS col2, COUNT( * ) + - - 96 * + - COUNT( * ) + - 21 * - 89 AS col0
----
NULL
1774

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 54 - + - COUNT ( * ) AS col2, COUNT ( * ) + - - 96 * + - COUNT ( * ) + - 21 * - 89 AS col0
----
NULL
1774

query I rowsort
SELECT + - 14 * - 95 + - 24 AS col1
----
1306

query I rowsort
SELECT ALL + - 74 * + 60 - + - 88
----
-4352

query I rowsort
SELECT + 69 + 32
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - 80 + - - 14 * - COUNT( * ) + + 89 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 80 + - - 14 * - COUNT ( * ) + + 89 AS col0
----
-5

query I rowsort
SELECT + NULLIF ( - 48, 3 * + + 85 - - 10 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + 45 + + 34 * + CASE + 16 WHEN - 87 + + 30 + + MAX( + + 5 ) * 0 THEN + 12 * + + 27 + - 79 ELSE NULL END + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT + 45 + + 34 * + CASE + 16 WHEN - 87 + + 30 + + MAX ( + + 5 ) * 0 THEN + 12 * + + 27 + - 79 ELSE NULL END + + 16
----
NULL

query I rowsort
SELECT + 62 * - 25
----
-1550

query I rowsort
SELECT 20 * - 84 * - 75 + - 47
----
125953

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT ( - 5 ) * + 13 + - 60 DIV 24
----
-67

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT ( - 5 ) * + 13 + - 60 / 24
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 38 * 64 + - 89 + NULLIF ( - - 25, MIN( DISTINCT 99 ) * 44 + - + 37 + - 17 ) - 51 AS col1
----
2317

skipif mysql # not compatible
query I rowsort label-4362
SELECT 38 * 64 + - 89 + NULLIF ( - - 25, MIN ( DISTINCT 99 ) * 44 + - + 37 + - 17 ) - 51 AS col1
----
2317

query I rowsort
SELECT DISTINCT ( - 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4364
SELECT ALL CAST( NULL AS SIGNED ) * 2 * + 12 AS col0, 97 DIV - 3 AS col2
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-4364
SELECT ALL CAST ( NULL AS INTEGER ) * 2 * + 12 AS col0, 97 / - 3 AS col2
----
NULL
-32

query I rowsort
SELECT + 26 + 38 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4366
SELECT DISTINCT 38 * 98 DIV + + 64 AS col1, CAST( NULL AS SIGNED ) - 84
----
58
NULL

skipif mysql # not compatible
query II rowsort label-4366
SELECT DISTINCT 38 * 98 / + + 64 AS col1, CAST ( NULL AS INTEGER ) - 84
----
58
NULL

query I rowsort
SELECT DISTINCT 50 * - ( + 58 ) AS col0
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT COUNT ( - 90 )
----
1

query I rowsort
SELECT + 90 * + + 68 AS col0
----
6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4370
SELECT + 96 + - + ( COUNT( * ) ) * - 14 DIV - NULLIF ( - - 19, + + 20 - - - 74 ) + SUM( ALL - 44 )
----
52

skipif mysql # not compatible
query I rowsort label-4370
SELECT + 96 + - + ( COUNT ( * ) ) * - 14 / - NULLIF ( - - 19, + + 20 - - - 74 ) + SUM ( ALL - 44 )
----
52

query I rowsort
SELECT + 67 * ( 91 ) AS col1
----
6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4372
SELECT - SUM( ALL + 67 ) + - NULLIF ( + 12, - + 5 ) * + 73 AS col2, + SUM( - 21 ) + + - CAST( - CAST( - + 12 AS SIGNED ) AS SIGNED )
----
-943
-33

skipif mysql # not compatible
query II rowsort label-4372
SELECT - SUM ( ALL + 67 ) + - NULLIF ( + 12, - + 5 ) * + 73 AS col2, + SUM ( - 21 ) + + - CAST ( - CAST ( - + 12 AS INTEGER ) AS INTEGER )
----
-943
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT - ( + - SUM( DISTINCT + 19 ) ), 77 + 6 AS col1
----
19
83

skipif mysql # not compatible
query II rowsort label-4373
SELECT - ( + - SUM ( DISTINCT + 19 ) ), 77 + 6 AS col1
----
19
83

query I rowsort
SELECT - 49 + - + ( - - 12 )
----
-61

query I rowsort
SELECT + 60 + - - 66
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT ALL + COUNT( * ) + - ( + 54 ) - + COUNT( * ) + + 51 * + 53 AS col1, 68
----
2649
68

skipif mysql # not compatible
query II rowsort label-4376
SELECT ALL + COUNT ( * ) + - ( + 54 ) - + COUNT ( * ) + + 51 * + 53 AS col1, 68
----
2649
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + 57 + 93 * + COUNT( * ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-4377
SELECT + 57 + 93 * + COUNT ( * ) AS col0
----
150

query II rowsort
SELECT 40 col0, 0
----
40
0

query I rowsort
SELECT ALL - 91 + + 53 * + 94 AS col0
----
4891

query I rowsort
SELECT DISTINCT ( - + 28 ) AS col0
----
-28

query II rowsort
SELECT ALL + - 79 + 17 * - - 49 AS col2, 47
----
754
47

query I rowsort
SELECT - + ( - + 73 ) + - 6 * + 76 AS col1
----
-383

query I rowsort
SELECT DISTINCT 71 - 76 + - 48 * + 7 AS col2
----
-341

query I rowsort
SELECT - + 61 + 64 AS col2
----
3

query I rowsort
SELECT + 59 * + - 93
----
-5487

query I rowsort
SELECT - 33 + - + 96 AS col0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT DISTINCT + CAST( - + 51 AS SIGNED ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + CAST ( - + 51 AS INTEGER ) AS col1
----
-51

query I rowsort
SELECT ALL + + ( NULLIF ( + 19, - 48 - - 66 ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT - MAX( - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4389
SELECT - MAX ( - 86 )
----
86

query I rowsort
SELECT ALL - 15 * 69
----
-1035

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT + 63 DIV 97 * + + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT + 63 / 97 * + + 69 AS col2
----
0

query I rowsort
SELECT ( ( - 21 ) ) AS col2
----
-21

query I rowsort
SELECT ( - - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT MIN( DISTINCT - + 19 ) * + SUM( + 48 ) + + ( 46 )
----
-866

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT MIN ( DISTINCT - + 19 ) * + SUM ( + 48 ) + + ( 46 )
----
-866

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + MIN( ALL - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + MIN ( ALL - 16 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL + MAX( DISTINCT - + ( - - 27 ) ) * - - CAST( NULL AS SIGNED ) + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + MAX ( DISTINCT - + ( - - 27 ) ) * - - CAST ( NULL AS INTEGER ) + - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT - COUNT( * ) + - 29 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - COUNT ( * ) + - 29 AS col1
----
-30

query I rowsort
SELECT 39 - - - COALESCE ( + ( - - 79 ), - 53 )
----
-40

query II rowsort
SELECT 45 * - - 60 AS col2, 49 * - 87
----
2700
-4263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4400
SELECT - COUNT( DISTINCT + 18 ) * + + COUNT( - 45 ) - - COALESCE ( - - CAST( 23 AS SIGNED ), - 74 * 83 DIV - - COUNT( * ) + + - 58 DIV + - 96 + + 1 + - + COUNT( * ) + 99 + + 96, - + 47, - 9 )
----
22

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COUNT ( DISTINCT + 18 ) * + + COUNT ( - 45 ) - - COALESCE ( - - CAST ( 23 AS INTEGER ), - 74 * 83 / - - COUNT ( * ) + + - 58 / + - 96 + + 1 + - + COUNT ( * ) + 99 + + 96, - + 47, - 9 )
----
22

query I rowsort
SELECT DISTINCT 13 col2
----
13

query I rowsort
SELECT ALL 31 * - 35 AS col0
----
-1085

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT 35 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT 35 / 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - COUNT( * ) + - - 80 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - COUNT ( * ) + - - 80 AS col2
----
79

query I rowsort
SELECT DISTINCT 89 * + 43 AS col0
----
3827

query I rowsort
SELECT 44 * - - 71 AS col1
----
3124

query I rowsort
SELECT 90 * + + 53
----
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL SUM( - - 39 ) - + 42
----
-3

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL SUM ( - - 39 ) - + 42
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT 92 + + 67 * COUNT( * ) * + CASE + AVG ( + 44 ) WHEN - + COALESCE ( 39, - + COALESCE ( + COUNT( * ), + ( - COUNT( * ) ) ) * + ( + 99 ) ) THEN + 48 END + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT 92 + + 67 * COUNT ( * ) * + CASE + AVG ( + 44 ) WHEN - + COALESCE ( 39, - + COALESCE ( + COUNT ( * ), + ( - COUNT ( * ) ) ) * + ( + 99 ) ) THEN + 48 END + - 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT COUNT( * ) DIV + 17 col1
----
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT COUNT ( * ) / + 17 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT 69 + - + MIN( + 22 )
----
47

skipif mysql # not compatible
query I rowsort label-4411
SELECT 69 + - + MIN ( + 22 )
----
47

query I rowsort
SELECT + 71 + - 35 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL + 24 - + 75 * + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + 24 - + 75 * + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT + MIN( DISTINCT ( - ( - 5 ) ) ) col2
----
5

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + MIN ( DISTINCT ( - ( - 5 ) ) ) col2
----
5

query I rowsort
SELECT 92 * - 70 AS col0
----
-6440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4416
SELECT + CAST( + 8 AS SIGNED ) DIV + + 12 + - + MIN( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-4416
SELECT + CAST ( + 8 AS INTEGER ) / + + 12 + - + MIN ( 79 )
----
-79

query II rowsort
SELECT DISTINCT - 11 * 66 AS col2, + 80
----
-726
80

query I rowsort
SELECT 94 * + 45 + - 52 + - 47 + + 94 * 58 AS col1
----
9583

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT - COUNT( * ) - - - 50 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT - COUNT ( * ) - - - 50 / - 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL 90 * + 23 - COUNT( * )
----
2069

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 90 * + 23 - COUNT ( * )
----
2069

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT 72 * + - MAX( - 24 )
----
1728

skipif mysql # not compatible
query I rowsort label-4421
SELECT 72 * + - MAX ( - 24 )
----
1728

onlyif mysql # DIV for integer division: 
query II rowsort label-4422
SELECT - 88 * 47 DIV - 11 + + 5, 14 AS col0
----
381
14

skipif mysql # not compatible
query II rowsort label-4422
SELECT - 88 * 47 / - 11 + + 5, 14 AS col0
----
381
14

query I rowsort
SELECT DISTINCT - 29 * 48
----
-1392

query I rowsort
SELECT 4 + - + 76
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4425
SELECT DISTINCT 74 * - COALESCE ( - - COUNT( + ( - 62 ) ), + 43 ) * - CAST( NULL AS SIGNED ) * - - 95 AS col2, + 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4425
SELECT DISTINCT 74 * - COALESCE ( - - COUNT ( + ( - 62 ) ), + 43 ) * - CAST ( NULL AS INTEGER ) * - - 95 AS col2, + 27
----
NULL
27

query I rowsort
SELECT 57 * + + 28 + 26 + + 83 + - - 97 * - 52
----
-3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4427
SELECT ALL - CAST( + 12 AS SIGNED ) DIV + - COALESCE ( - 94, - COUNT( * ) * + 75 ) - + SUM( DISTINCT - 82 ) + + 2 + + 79 + + 67 + - 79 * + 51 * + + 86 - - 3 AS col1
----
-346261

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - CAST ( + 12 AS INTEGER ) / + - COALESCE ( - 94, - COUNT ( * ) * + 75 ) - + SUM ( DISTINCT - 82 ) + + 2 + + 79 + + 67 + - 79 * + 51 * + + 86 - - 3 AS col1
----
-346261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT - CAST( - + 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - CAST ( - + 70 AS INTEGER )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL + COUNT( + 44 ) + - 52 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + COUNT ( + 44 ) + - 52 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT COALESCE ( 47, 18, - ( - 27 ), COUNT( * ), 85 ) * - 86 AS col0
----
-4042

skipif mysql # not compatible
query I rowsort label-4430
SELECT COALESCE ( 47, 18, - ( - 27 ), COUNT ( * ), 85 ) * - 86 AS col0
----
-4042

query I rowsort
SELECT 39 + ( - 94 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4432
SELECT ALL + CASE - 21 WHEN - - 56 * MIN( ALL + 46 ) THEN - 4 * - ( - + 24 ) + - COUNT( * ) + + + COUNT( * ) + - + CAST( NULL AS SIGNED ) END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + CASE - 21 WHEN - - 56 * MIN ( ALL + 46 ) THEN - 4 * - ( - + 24 ) + - COUNT ( * ) + + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) END / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT 45 DIV - + 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4433
SELECT 45 / - + 38 AS col1
----
-1

query I rowsort
SELECT 48 + ( + 42 ) AS col1
----
90

query I rowsort
SELECT 29 * 68
----
1972

query I rowsort
SELECT ALL - NULLIF ( - 64, - + 26 / 46 + + 27 ) AS col1
----
64

query I rowsort
SELECT 38 * + - 82 col0
----
-3116

query I rowsort
SELECT ALL - 22 * + 20 AS col0
----
-440

query I rowsort
SELECT 44 + - - ( - 77 )
----
-33

query I rowsort
SELECT DISTINCT 25 - + 96 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT - - 45 - + - COUNT( * ) - - 36
----
82

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT - - 45 - + - COUNT ( * ) - - 36
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT 58 + + - 72 DIV 57 * 63
----
-5

skipif mysql # not compatible
query I rowsort label-4442
SELECT 58 + + - 72 / 57 * 63
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4443
SELECT ALL - - MIN( DISTINCT - 22 ) - - + CAST( NULL AS SIGNED ), 44 * - AVG ( 91 ) - + - CAST( NULL AS DECIMAL ) + + COUNT( * ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL - - MIN ( DISTINCT - 22 ) - - + CAST ( NULL AS INTEGER ), 44 * - AVG ( 91 ) - + - CAST ( NULL AS REAL ) + + COUNT ( * ) col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT COALESCE ( - COALESCE ( CAST( + - 73 AS SIGNED ), 36 * - 88 + - + 43 + + + 87 ), - 93 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4444
SELECT COALESCE ( - COALESCE ( CAST ( + - 73 AS INTEGER ), 36 * - 88 + - + 43 + + + 87 ), - 93 ) AS col2
----
73

query I rowsort
SELECT + 88 + + 34 AS col1
----
122

query I rowsort
SELECT + ( + - 73 ) col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 7 * COUNT( * ) * - 87
----
-609

skipif mysql # not compatible
query I rowsort label-4447
SELECT 7 * COUNT ( * ) * - 87
----
-609

query I rowsort
SELECT + 2 + + - 65
----
-63

query I rowsort
SELECT ALL + ( 54 ) / - - CASE + 33 WHEN - 20 THEN - 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + ( ( - + COUNT( * ) ) ) / + - 32 + - MIN( DISTINCT CASE + 44 WHEN 4 THEN + 73 * 75 WHEN + 78 THEN - 39 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT + ( ( - + COUNT ( * ) ) ) / + - 32 + - MIN ( DISTINCT CASE + 44 WHEN 4 THEN + 73 * 75 WHEN + 78 THEN - 39 END ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + 85 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4452
SELECT - COALESCE ( - ( + 90 ), - 47 + 78 ) col1, - ( + + NULLIF ( + + 58, + COUNT( * ) ) ) * - 78 + 76 AS col1
----
90
4600

skipif mysql # not compatible
query II rowsort label-4452
SELECT - COALESCE ( - ( + 90 ), - 47 + 78 ) col1, - ( + + NULLIF ( + + 58, + COUNT ( * ) ) ) * - 78 + 76 AS col1
----
90
4600

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT ALL - 95 DIV + - 82 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL - 95 / + - 82 AS col0
----
1

query II rowsort
SELECT + 68 * - + 92 + - 14 AS col2, - 44 AS col2
----
-6270
-44

query I rowsort
SELECT ALL 8 * - 87 AS col1
----
-696

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - 77 DIV - 5
----
15

skipif mysql # not compatible
query I rowsort label-4456
SELECT - 77 / - 5
----
15

query I rowsort
SELECT DISTINCT - 45 * + 21
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT - 95 DIV 79 * + ( + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 95 / 79 * + ( + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4459
SELECT - 35 * - 88 * - 70 * 62 * + 27 AS col1, + COUNT( * ) AS col2
----
-360914400
1

skipif mysql # not compatible
query II rowsort label-4459
SELECT - 35 * - 88 * - 70 * 62 * + 27 AS col1, + COUNT ( * ) AS col2
----
-360914400
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - 4 + - CASE - - 67 WHEN + - 63 * NULLIF ( 83, + 45 ) + + MAX( 62 ) / - NULLIF ( 70, + ( - 27 ) ) * - 37 THEN - - 77 WHEN + NULLIF ( + - 26, + 53 * 1 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT - 4 + - CASE - - 67 WHEN + - 63 * NULLIF ( 83, + 45 ) + + MAX ( 62 ) / - NULLIF ( 70, + ( - 27 ) ) * - 37 THEN - - 77 WHEN + NULLIF ( + - 26, + 53 * 1 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT + 44 DIV - NULLIF ( - 35, - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-4461
SELECT + 44 / - NULLIF ( - 35, - 41 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT 45 DIV - 88 * - 73 DIV - - 45 + 14 + - + 81
----
-67

skipif mysql # not compatible
query I rowsort label-4462
SELECT 45 / - 88 * - 73 / - - 45 + 14 + - + 81
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - COUNT( * ) * + 45 + - 76 AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - COUNT ( * ) * + 45 + - 76 AS col0
----
-121

query I rowsort
SELECT + 71 * - 72 AS col0
----
-5112

query I rowsort
SELECT ALL - 62 * + 36 * - 92 + + 48 AS col0
----
205392

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NULL THEN NULL ELSE 70 END
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4467
SELECT COUNT( * ) * + 16, + 31 AS col2
----
16
31

skipif mysql # not compatible
query II rowsort label-4467
SELECT COUNT ( * ) * + 16, + 31 AS col2
----
16
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT - NULLIF ( - 57, CASE 36 WHEN + 43 + + + 36 THEN - - COUNT( - 60 ) * + ( - + 69 ) * - COUNT( * ) END ) * - 22 * + 16 * + ( + 4 ) + + 53
----
-80203

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - NULLIF ( - 57, CASE 36 WHEN + 43 + + + 36 THEN - - COUNT ( - 60 ) * + ( - + 69 ) * - COUNT ( * ) END ) * - 22 * + 16 * + ( + 4 ) + + 53
----
-80203

onlyif mysql # aggregate syntax: 
query II rowsort label-4469
SELECT + COUNT( * ), COUNT( * ) + + + 73 col2
----
1
74

skipif mysql # not compatible
query II rowsort label-4469
SELECT + COUNT ( * ), COUNT ( * ) + + + 73 col2
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL + SUM( DISTINCT + + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + SUM ( DISTINCT + + 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT MIN( + ( + 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-4471
SELECT MIN ( + ( + 73 ) )
----
73

query I rowsort
SELECT ALL - 70 * - ( + 16 ) * + 98 - - 47 AS col2
----
109807

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT COUNT( * ), - 56 col2
----
1
-56

skipif mysql # not compatible
query II rowsort label-4473
SELECT COUNT ( * ), - 56 col2
----
1
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT COUNT( * ) col2, - 24
----
1
-24

skipif mysql # not compatible
query II rowsort label-4474
SELECT COUNT ( * ) col2, - 24
----
1
-24

query I rowsort
SELECT 65 * - 22 - + 11
----
-1441

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL COALESCE ( + 69, + + NULLIF ( + COUNT( * ), + ( - - 73 ) ), + COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL COALESCE ( + 69, + + NULLIF ( + COUNT ( * ), + ( - - 73 ) ), + COUNT ( * ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - - SUM( - + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-4477
SELECT - - SUM ( - + 20 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT - + 79 DIV + 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4478
SELECT - + 79 / + 61 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4479
SELECT DISTINCT - NULLIF ( - 4, + SUM( + - ( - 75 ) ) ) * COUNT( - CAST( 32 AS SIGNED ) ) + - - CAST( + + 87 AS SIGNED ) + 20, CAST( NULL AS SIGNED ) col0
----
111
NULL

skipif mysql # not compatible
query II rowsort label-4479
SELECT DISTINCT - NULLIF ( - 4, + SUM ( + - ( - 75 ) ) ) * COUNT ( - CAST ( 32 AS INTEGER ) ) + - - CAST ( + + 87 AS INTEGER ) + 20, CAST ( NULL AS INTEGER ) col0
----
111
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT - - 4 * - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4480
SELECT - - 4 * - COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT - - ( - COUNT( * ) ) * + 67 + + 83 - + - 97 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT - - ( - COUNT ( * ) ) * + 67 + + 83 - + - 97 AS col0
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT ALL + 55 AS col1, - 24 - + COUNT( DISTINCT - + 74 )
----
55
-25

skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL + 55 AS col1, - 24 - + COUNT ( DISTINCT - + 74 )
----
55
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4483
SELECT ALL - 1 AS col1, - COUNT( * ) * ( - 51 ) DIV - 75 + + MIN( DISTINCT + 7 ) AS col2
----
-1
7

skipif mysql # not compatible
query II rowsort label-4483
SELECT ALL - 1 AS col1, - COUNT ( * ) * ( - 51 ) / - 75 + + MIN ( DISTINCT + 7 ) AS col2
----
-1
7

query I rowsort
SELECT - - ( - 58 ) - + 58
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4485
SELECT DISTINCT + 16 * + CASE + - CASE - 77 WHEN + 29 THEN - COUNT( * ) + + + 53 WHEN NULLIF ( - - 3, 9 ) * CAST( + - 60 AS SIGNED ) * + 11 + - ( - 52 ) THEN NULL END WHEN + - CASE + CASE COALESCE ( + - 95, + + 91 + - MIN( + - 7 ) ) WHEN - 17 THEN + - 86 END WHEN - + ( + SUM( DISTINCT + 8 ) ) * + 23 THEN CASE CASE - 75 WHEN 82 THEN - NULLIF ( COALESCE ( + 71, AVG ( DISTINCT + 55 ) + - 89, COUNT( * ) * 81 ), 13 * 46 ) * 29 END WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 31 THEN + 34 WHEN - COUNT( * ) * 89 THEN - NULLIF ( - COALESCE ( + 59, + MIN( 35 ) + 49, MAX( - 92 ) ), 33 * 54 ) ELSE NULL END * + ( 66 ) + + 16 * COUNT( * ) WHEN ( 97 ) - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) THEN 57 * - 34 ELSE COUNT( * ) END THEN 53 ELSE NULL END * CASE + 81 WHEN + ( 12 ) THEN NULL WHEN 50 THEN NULL WHEN + 58 THEN NULL ELSE 75 END + + 48 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + 16 * + CASE + - CASE - 77 WHEN + 29 THEN - COUNT ( * ) + + + 53 WHEN NULLIF ( - - 3, 9 ) * CAST ( + - 60 AS INTEGER ) * + 11 + - ( - 52 ) THEN NULL END WHEN + - CASE + CASE COALESCE ( + - 95, + + 91 + - MIN ( + - 7 ) ) WHEN - 17 THEN + - 86 END WHEN - + ( + SUM ( DISTINCT + 8 ) ) * + 23 THEN CASE CASE - 75 WHEN 82 THEN - NULLIF ( COALESCE ( + 71, AVG ( DISTINCT + 55 ) + - 89, COUNT ( * ) * 81 ), 13 * 46 ) * 29 END WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 31 THEN + 34 WHEN - COUNT ( * ) * 89 THEN - NULLIF ( - COALESCE ( + 59, + MIN ( 35 ) + 49, MAX ( - 92 ) ), 33 * 54 ) ELSE NULL END * + ( 66 ) + + 16 * COUNT ( * ) WHEN ( 97 ) - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) THEN 57 * - 34 ELSE COUNT ( * ) END THEN 53 ELSE NULL END * CASE + 81 WHEN + ( 12 ) THEN NULL WHEN 50 THEN NULL WHEN + 58 THEN NULL ELSE 75 END + + 48 * - COUNT ( * )
----
NULL

query I rowsort
SELECT - - 52 + + - 53
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4487
SELECT + - 72 * + COALESCE ( + 73, MAX( + 18 ) + - COUNT( * ) ) AS col1, 59 + + 94
----
-5256
153

skipif mysql # not compatible
query II rowsort label-4487
SELECT + - 72 * + COALESCE ( + 73, MAX ( + 18 ) + - COUNT ( * ) ) AS col1, 59 + + 94
----
-5256
153

onlyif mysql # DIV for integer division: 
query III rowsort label-4488
SELECT - + 55, + 69 DIV + 87 * - 57 AS col1, + 68 AS col1
----
-55
0
68

skipif mysql # not compatible
query III rowsort label-4488
SELECT - + 55, + 69 / + 87 * - 57 AS col1, + 68 AS col1
----
-55
0
68

query II rowsort
SELECT - 46 AS col0, + 57 AS col2
----
-46
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT - CAST( - - 35 AS SIGNED ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4490
SELECT - CAST ( - - 35 AS INTEGER ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - 55 + - - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 55 + - - COUNT ( * ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4492
SELECT + 63 + + CAST( - CAST( + 34 AS SIGNED ) AS SIGNED ) + - + SUM( - 40 ) + 39 AS col0, + 80 * 82 + + CAST( + 56 AS SIGNED ) AS col1
----
108
6616

skipif mysql # not compatible
query II rowsort label-4492
SELECT + 63 + + CAST ( - CAST ( + 34 AS INTEGER ) AS INTEGER ) + - + SUM ( - 40 ) + 39 AS col0, + 80 * 82 + + CAST ( + 56 AS INTEGER ) AS col1
----
108
6616

query I rowsort
SELECT + 80 * 7 col2
----
560

query I rowsort
SELECT 94 * - 25 + + + 53
----
-2297

query I rowsort
SELECT + 56 + + 87 * + + 25 AS col1
----
2231

query II rowsort
SELECT ( - + 42 ) AS col1, 11 col1
----
-42
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT - SUM( ALL - 27 ) * - 18 + 72 - 96 * 19
----
-2238

skipif mysql # not compatible
query I rowsort label-4497
SELECT - SUM ( ALL - 27 ) * - 18 + 72 - 96 * 19
----
-2238

query I rowsort
SELECT + 44 * + 94 * - 31 col2
----
-128216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT + CASE - 67 WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN - + CAST( + 81 AS SIGNED ) THEN + 56 * + COUNT( * ) + + 60 END * - - 82 * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT + CASE - 67 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN - + CAST ( + 81 AS INTEGER ) THEN + 56 * + COUNT ( * ) + + 60 END * - - 82 * + 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT 30 DIV - - 46 + - 28 + 62 + + - COUNT( * ) + - 73 DIV - + ( 17 ) - - CASE COUNT( * ) WHEN COUNT( * ) THEN + - ( - 66 ) ELSE - 37 + + ( MIN( DISTINCT + - 77 ) ) END * - 97 * - 43 * + - 65 col0
----
-17893553

skipif mysql # not compatible
query I rowsort label-4500
SELECT 30 / - - 46 + - 28 + 62 + + - COUNT ( * ) + - 73 / - + ( 17 ) - - CASE COUNT ( * ) WHEN COUNT ( * ) THEN + - ( - 66 ) ELSE - 37 + + ( MIN ( DISTINCT + - 77 ) ) END * - 97 * - 43 * + - 65 col0
----
-17893553

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4501
SELECT + 20 + COUNT( * ) - - 37 * - + 85 + - ( COUNT( * ) ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT + 20 + COUNT ( * ) - - 37 * - + 85 + - ( COUNT ( * ) ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL - 22 * 3, - 69 AS col2
----
-66
-69

query I rowsort
SELECT DISTINCT + 67 col1
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4504
SELECT ALL + 49 * + - 55 AS col0, 26 DIV CAST( 58 AS SIGNED )
----
-2695
0

skipif mysql # not compatible
query II rowsort label-4504
SELECT ALL + 49 * + - 55 AS col0, 26 / CAST ( 58 AS INTEGER )
----
-2695
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT + 78 + + - 28 DIV - - 47 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 78 + + - 28 / - - 47 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4506
SELECT + CASE + 55 WHEN - 30 * + ( + 17 ) + CAST( NULL AS DECIMAL ) - - + 25 THEN NULL ELSE + 57 - 27 * 79 - - SUM( + ( + ( + 68 ) ) ) + MIN( ALL + + 99 ) END
----
-1909

skipif mysql # not compatible
query I rowsort label-4506
SELECT + CASE + 55 WHEN - 30 * + ( + 17 ) + CAST ( NULL AS REAL ) - - + 25 THEN NULL ELSE + 57 - 27 * 79 - - SUM ( + ( + ( + 68 ) ) ) + MIN ( ALL + + 99 ) END
----
-1909

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + MAX( DISTINCT 20 ) * - + 42
----
-840

skipif mysql # not compatible
query I rowsort label-4507
SELECT + MAX ( DISTINCT 20 ) * - + 42
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4508
SELECT COALESCE ( 60, - 61, 27 + + 63 * + 82 * 67 ) col2, CAST( - 55 AS SIGNED ) * MIN( ALL + 6 )
----
60
-330

skipif mysql # not compatible
query II rowsort label-4508
SELECT COALESCE ( 60, - 61, 27 + + 63 * + 82 * 67 ) col2, CAST ( - 55 AS INTEGER ) * MIN ( ALL + 6 )
----
60
-330

query I rowsort
SELECT ALL 66 * - 23
----
-1518

query I rowsort
SELECT + 32 * - 15 + - 3 + - 63
----
-546

query I rowsort
SELECT DISTINCT + + 49 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4512
SELECT - - 67 DIV - - CAST( NULL AS DECIMAL ), ( - COUNT( + + 25 ) ) + 24 DIV COUNT( * ) AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4512
SELECT - - 67 / - - CAST ( NULL AS REAL ), ( - COUNT ( + + 25 ) ) + 24 / COUNT ( * ) AS col2
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL + + 88 * + 5 + - MIN( - 52 ) - 67 * 89 + - ( 31 ) AS col0
----
-5502

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + + 88 * + 5 + - MIN ( - 52 ) - 67 * 89 + - ( 31 ) AS col0
----
-5502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT + + 7 DIV - ( - 51 ) DIV - COUNT( * ) - + 61 + + - COUNT( * ) * - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4514
SELECT + + 7 / - ( - 51 ) / - COUNT ( * ) - + 61 + + - COUNT ( * ) * - 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT - 86 + + 26 AS col0, CASE - 90 WHEN 19 THEN + AVG ( ALL - 97 ) - - COUNT( * ) WHEN 40 * + + 91 THEN NULL END
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4515
SELECT - 86 + + 26 AS col0, CASE - 90 WHEN 19 THEN + AVG ( ALL - 97 ) - - COUNT ( * ) WHEN 40 * + + 91 THEN NULL END
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + 26 * + + COUNT( DISTINCT - + 48 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 26 * + + COUNT ( DISTINCT - + 48 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT - 0 + + + 57 col1, - 77 - - COUNT( + 37 ) + ( + 21 )
----
57
-55

skipif mysql # not compatible
query II rowsort label-4517
SELECT - 0 + + + 57 col1, - 77 - - COUNT ( + 37 ) + ( + 21 )
----
57
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT DISTINCT + + 48 * CAST( MIN( DISTINCT + 23 ) AS SIGNED ) * - 51 * - ( + 12 ) - - 32 + - COUNT( * ) - - 92 + 82
----
675853

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + + 48 * CAST ( MIN ( DISTINCT + 23 ) AS INTEGER ) * - 51 * - ( + 12 ) - - 32 + - COUNT ( * ) - - 92 + 82
----
675853

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT DISTINCT + 93 + 18 AS col1, COUNT( * )
----
111
1

skipif mysql # not compatible
query II rowsort label-4519
SELECT DISTINCT + 93 + 18 AS col1, COUNT ( * )
----
111
1

query I rowsort
SELECT ALL + 71 * + + 44 - + - 5
----
3129

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT NULLIF ( + - COUNT( - 11 ), + 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-4521
SELECT NULLIF ( + - COUNT ( - 11 ), + 55 )
----
-1

query I rowsort
SELECT ALL + 60 + - 88 * 39
----
-3372

query I rowsort
SELECT ALL - ( + + 67 ) + - + 72
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4524
SELECT ALL 78 AS col2, - CAST( - + NULLIF ( COALESCE ( + ( - 28 ), 64 + 39 + + + 22 ), - 41 * 52 + 36 ) AS SIGNED ) AS col1
----
78
-28

skipif mysql # not compatible
query II rowsort label-4524
SELECT ALL 78 AS col2, - CAST ( - + NULLIF ( COALESCE ( + ( - 28 ), 64 + 39 + + + 22 ), - 41 * 52 + 36 ) AS INTEGER ) AS col1
----
78
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4525
SELECT ALL - COUNT( * ) - + ( - 21 ) AS col1, 43 DIV 94
----
20
0

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL - COUNT ( * ) - + ( - 21 ) AS col1, 43 / 94
----
20
0

query II rowsort
SELECT - 38 AS col1, + 2 + 8 AS col2
----
-38
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT 29 * - 76 * + 31 DIV - COUNT( * ) AS col0
----
68324

skipif mysql # not compatible
query I rowsort label-4527
SELECT 29 * - 76 * + 31 / - COUNT ( * ) AS col0
----
68324

query I rowsort
SELECT ALL + 53 * - + 51 AS col1
----
-2703

query I rowsort
SELECT DISTINCT - ( + NULLIF ( + 29, - + 75 ) ) col2
----
-29

query I rowsort
SELECT DISTINCT 67 * - 54
----
-3618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4531
SELECT ALL - ( - + 86 ) DIV + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - ( - + 86 ) / + COUNT ( * )
----
86

query II rowsort
SELECT 58 AS col0, 83 AS col0
----
58
83

onlyif mysql # DIV for integer division: 
query II rowsort label-4533
SELECT + 59, + 15 DIV + 40 AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-4533
SELECT + 59, + 15 / + 40 AS col2
----
59
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4534
SELECT CASE - + 38 WHEN + 63 * CAST( - 92 AS SIGNED ) / + + 9 THEN NULL WHEN 16 * - 49 * + 52 + + + ( COUNT( * ) ) / ( - - 44 ) THEN + COUNT( * ) * - 33 + + 23 * 34 + - CAST( - 61 AS SIGNED ) END * 68 + - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT CASE - + 38 WHEN + 63 * CAST ( - 92 AS INTEGER ) / + + 9 THEN NULL WHEN 16 * - 49 * + 52 + + + ( COUNT ( * ) ) / ( - - 44 ) THEN + COUNT ( * ) * - 33 + + 23 * 34 + - CAST ( - 61 AS INTEGER ) END * 68 + - 23 AS col1
----
NULL

query I rowsort
SELECT + ( - 15 ) * - NULLIF ( 89, - 32 ) - - - 62 - + NULLIF ( 88, - 6 ) AS col1
----
1185

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT ALL + 52 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 52 / + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT - - MIN( - - 9 ) + + ( - 47 )
----
-38

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - - MIN ( - - 9 ) + + ( - 47 )
----
-38

query I rowsort
SELECT + 21 * - 43 col0
----
-903

query I rowsort
SELECT DISTINCT 60 + - + 9
----
51

query I rowsort
SELECT ALL 74 + - 11
----
63

query I rowsort
SELECT + ( - 23 )
----
-23

query I rowsort
SELECT - 88 * 97
----
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + SUM( - - 23 ) * - - 70 * MAX( ALL + 98 ) - - - 17 + 33 AS col2
----
157796

skipif mysql # not compatible
query I rowsort label-4543
SELECT + SUM ( - - 23 ) * - - 70 * MAX ( ALL + 98 ) - - - 17 + 33 AS col2
----
157796

query I rowsort
SELECT ALL 40 + - 9 + - 67
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT 19 * ( COUNT( DISTINCT 11 ) ) - + - 38 - - 71 - + 96 + + 60 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4545
SELECT 19 * ( COUNT ( DISTINCT 11 ) ) - + - 38 - - 71 - + 96 + + 60 AS col2
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-4546
SELECT - - 54, - 93 DIV 30 AS col0
----
54
-3

skipif mysql # not compatible
query II rowsort label-4546
SELECT - - 54, - 93 / 30 AS col0
----
54
-3

query II rowsort
SELECT ALL 30, 55 + + + 76 * + + 37 col2
----
30
2867

query I rowsort
SELECT - ( + 96 )
----
-96

query I rowsort
SELECT - - ( - 18 ) AS col2
----
-18

query I rowsort
SELECT ALL - 84 + + + 95
----
11

query I rowsort
SELECT 61 * + - 84
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) + 38 + - 37 * - + 2 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) + 38 + - 37 * - + 2 AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT CAST( NULL AS SIGNED ) * + + 52 + CAST( - 60 AS SIGNED ) + - + COUNT( * ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT CAST ( NULL AS INTEGER ) * + + 52 + CAST ( - 60 AS INTEGER ) + - + COUNT ( * ) * + 65
----
NULL

query II rowsort
SELECT 10 * - 31 AS col2, 58
----
-310
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4555
SELECT ( - + CAST( NULL AS SIGNED ) ) + + 52 + - ( - - CASE - + NULLIF ( COUNT( + - 16 ), + ( 39 ) + + AVG ( DISTINCT - CASE + 67 WHEN 54 + + 98 * - 74 THEN + + 70 + - 47 END ) * 57 * + - 85 * - 37 * COUNT( * ) + + 82 * - - AVG ( ALL 2 ) + + - 47 + - 53 ) WHEN 99 THEN + 26 ELSE + 96 * 74 END ) * + COUNT( * ) - - 0 + + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT ( - + CAST ( NULL AS INTEGER ) ) + + 52 + - ( - - CASE - + NULLIF ( COUNT ( + - 16 ), + ( 39 ) + + AVG ( DISTINCT - CASE + 67 WHEN 54 + + 98 * - 74 THEN + + 70 + - 47 END ) * 57 * + - 85 * - 37 * COUNT ( * ) + + 82 * - - AVG ( ALL 2 ) + + - 47 + - 53 ) WHEN 99 THEN + 26 ELSE + 96 * 74 END ) * + COUNT ( * ) - - 0 + + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT COUNT( * ) + - - ( + 68 )
----
69

skipif mysql # not compatible
query I rowsort label-4556
SELECT COUNT ( * ) + - - ( + 68 )
----
69

query I rowsort
SELECT ALL - 21 * + 27 AS col2
----
-567

query I rowsort
SELECT 48 + 58 * + 41
----
2426

query I rowsort
SELECT 64 + 12 * 6 AS col0
----
136

query I rowsort
SELECT 73 + 64 + + 84
----
221

query I rowsort
SELECT 47 * + 17
----
799

query I rowsort
SELECT 68 * - 83 + 18 AS col0
----
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL - COUNT( * ) + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - COUNT ( * ) + + 6 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ( 12 ) * COUNT( * ) + - COUNT( * ) + + + 42 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4564
SELECT ( 12 ) * COUNT ( * ) + - COUNT ( * ) + + + 42 AS col0
----
53

query I rowsort
SELECT ALL - COALESCE ( 25, 76 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT 45 + + 58 * NULLIF ( - 39, - - 0 / - MAX( DISTINCT + + 80 ) )
----
-2217

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT 45 + + 58 * NULLIF ( - 39, - - 0 / - MAX ( DISTINCT + + 80 ) )
----
-2217

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL + + 82 + + + 6 + + - ( + 83 ) * - - SUM( 32 )
----
-2568

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + + 82 + + + 6 + + - ( + 83 ) * - - SUM ( 32 )
----
-2568

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT 28 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4568
SELECT 28 / + 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT DISTINCT - 29 + - + 58 DIV - 76 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT - 29 + - + 58 / - 76 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4570
SELECT SUM( DISTINCT + - 2 ) AS col0, NULLIF ( - COALESCE ( - 40, - 96 - + COUNT( * ) + - 44 + + 49 ), + 96 + + + 60 ) AS col0
----
-2
40

skipif mysql # not compatible
query II rowsort label-4570
SELECT SUM ( DISTINCT + - 2 ) AS col0, NULLIF ( - COALESCE ( - 40, - 96 - + COUNT ( * ) + - 44 + + 49 ), + 96 + + + 60 ) AS col0
----
-2
40

query I rowsort
SELECT ALL 29 + - - 12 AS col2
----
41

query II rowsort
SELECT 76 * + 74, 39 AS col0
----
5624
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4573
SELECT DISTINCT + 26 + + + 77, + CASE + + 16 WHEN + CAST( 16 AS SIGNED ) + + CAST( - 75 AS DECIMAL ) THEN NULL WHEN + 82 - - NULLIF ( - 28, - 50 ) THEN + COUNT( * ) END / + + 76 * + AVG ( DISTINCT + - 14 ) - 48 * - 67 + COALESCE ( + 66, - 39 * 32 + - 54 + - + 18 - - 24 / + ( - 21 ) + - + 55 * 12 ) AS col0
----
103
NULL

skipif mysql # not compatible
query II rowsort label-4573
SELECT DISTINCT + 26 + + + 77, + CASE + + 16 WHEN + CAST ( 16 AS INTEGER ) + + CAST ( - 75 AS REAL ) THEN NULL WHEN + 82 - - NULLIF ( - 28, - 50 ) THEN + COUNT ( * ) END / + + 76 * + AVG ( DISTINCT + - 14 ) - 48 * - 67 + COALESCE ( + 66, - 39 * 32 + - 54 + - + 18 - - 24 / + ( - 21 ) + - + 55 * 12 ) AS col0
----
103
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT + MAX( + + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4574
SELECT + MAX ( + + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + COALESCE ( - 40, 64 - + - 29 * + SUM( - 69 ) + + 5 ) + - + 68
----
-108

skipif mysql # not compatible
query I rowsort label-4575
SELECT + COALESCE ( - 40, 64 - + - 29 * + SUM ( - 69 ) + + 5 ) + - + 68
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT + 57 + - CAST( + 98 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-4576
SELECT + 57 + - CAST ( + 98 AS INTEGER )
----
-41

query I rowsort
SELECT + + 58 + - + 3 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4578
SELECT ALL + 52 - + + 11 AS col1, - COUNT( + 49 ) + + 61 DIV - + ( - 9 ), - - COUNT( * ) AS col1
----
41
5
1

skipif mysql # not compatible
query III rowsort label-4578
SELECT ALL + 52 - + + 11 AS col1, - COUNT ( + 49 ) + + 61 / - + ( - 9 ), - - COUNT ( * ) AS col1
----
41
5
1

query II rowsort
SELECT + 33 + + 20 * - 75 AS col1, 30
----
-1467
30

query I rowsort
SELECT + 45 * - 67 AS col2
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT - MAX( + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4581
SELECT - MAX ( + 26 ) AS col2
----
-26

query I rowsort
SELECT ALL 3 * - 42 AS col0
----
-126

query II rowsort
SELECT ALL 43 AS col0, 33
----
43
33

query I rowsort
SELECT - ( + 15 )
----
-15

query I rowsort
SELECT + 14 * - - 43
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT + 25 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT + 25 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 5 * 34 + + + 0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL 73 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL 73 * COUNT ( * )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT + MAX( DISTINCT - 94 ) DIV - ( - 67 ) + + - MAX( - ( - 77 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4589
SELECT + MAX ( DISTINCT - 94 ) / - ( - 67 ) + + - MAX ( - ( - 77 ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT + - 65, + MIN( DISTINCT - 13 ) AS col1
----
-65
-13

skipif mysql # not compatible
query II rowsort label-4590
SELECT + - 65, + MIN ( DISTINCT - 13 ) AS col1
----
-65
-13

query I rowsort
SELECT - + 63 + 49
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT - COALESCE ( - - COALESCE ( 25, 25 + - - MIN( + 32 ), ( + + COUNT( * ) ), + 68 ), + 76 DIV - 48 * + 93 )
----
-25

skipif mysql # not compatible
query I rowsort label-4592
SELECT - COALESCE ( - - COALESCE ( 25, 25 + - - MIN ( + 32 ), ( + + COUNT ( * ) ), + 68 ), + 76 / - 48 * + 93 )
----
-25

query I rowsort
SELECT DISTINCT + - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + CASE ( - 27 ) WHEN + COUNT( ALL - 60 ) + - ( - - 9 ) + + COUNT( * ) THEN + + 27 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + CASE ( - 27 ) WHEN + COUNT ( ALL - 60 ) + - ( - - 9 ) + + COUNT ( * ) THEN + + 27 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + 70 + + 16
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL COUNT( ALL + - 66 ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL COUNT ( ALL + - 66 ) * + + COUNT ( * )
----
1

query I rowsort
SELECT - 33 * + - ( - 55 ) AS col2
----
-1815

query I rowsort
SELECT ALL + + 75 * - 26 + + 13 + + 5
----
-1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT CAST( + - ( ( - 86 ) ) AS SIGNED ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4599
SELECT CAST ( + - ( ( - 86 ) ) AS INTEGER ) col2
----
86

query I rowsort
SELECT + + 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - 8 * - 97 + + + COUNT( * ) - 46 AS col1
----
731

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 8 * - 97 + + + COUNT ( * ) - 46 AS col1
----
731

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT + + 12 * + + SUM( - 51 ), MAX( DISTINCT - 39 ) AS col1
----
-612
-39

skipif mysql # not compatible
query II rowsort label-4602
SELECT + + 12 * + + SUM ( - 51 ), MAX ( DISTINCT - 39 ) AS col1
----
-612
-39

query I rowsort
SELECT - 66 * + 22 - - 59 AS col1
----
-1393

query I rowsort
SELECT - 21 - + - 68 AS col0
----
47

query II rowsort
SELECT ALL - 94 * + 77 AS col0, 92 * - + ( + 17 ) * - 91 AS col2
----
-7238
142324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT DISTINCT CAST( - 86 AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT CAST ( - 86 AS INTEGER ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - COALESCE ( + 80, + COALESCE ( - 42, - 37 ), - CASE - 48 WHEN + COUNT( * ) * + COUNT( * ) + 9 + 54 THEN NULL WHEN 77 THEN - 61 END - COUNT( * ) * COUNT( * ) + 15 * + - 54 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4607
SELECT - COALESCE ( + 80, + COALESCE ( - 42, - 37 ), - CASE - 48 WHEN + COUNT ( * ) * + COUNT ( * ) + 9 + 54 THEN NULL WHEN 77 THEN - 61 END - COUNT ( * ) * COUNT ( * ) + 15 * + - 54 ) AS col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT - 62 + 96 - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - + ( 67 ) * MIN( DISTINCT + 76 ) + 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT - 62 + 96 - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - + ( 67 ) * MIN ( DISTINCT + 76 ) + 36 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4609
SELECT + ( + - COUNT( * ) ) - - 74 - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4609
SELECT + ( + - COUNT ( * ) ) - - 74 - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - 38 + - + SUM( DISTINCT - 74 )
----
36

skipif mysql # not compatible
query I rowsort label-4610
SELECT - 38 + - + SUM ( DISTINCT - 74 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4611
SELECT 74, + COALESCE ( + 92, - 56 * + 19, - 96 ) - CAST( - 98 AS SIGNED ) AS col0
----
74
190

skipif mysql # not compatible
query II rowsort label-4611
SELECT 74, + COALESCE ( + 92, - 56 * + 19, - 96 ) - CAST ( - 98 AS INTEGER ) AS col0
----
74
190

onlyif mysql # aggregate syntax: 
query II rowsort label-4612
SELECT - COUNT( * ), 39 AS col1
----
-1
39

skipif mysql # not compatible
query II rowsort label-4612
SELECT - COUNT ( * ), 39 AS col1
----
-1
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT - CAST( + 23 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4613
SELECT - CAST ( + 23 AS INTEGER ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT 43 + - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 43 + - COUNT ( * ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT - CAST( + ( + 21 ) AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4615
SELECT - CAST ( + ( + 21 ) AS INTEGER ) AS col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL 45 / - CAST( NULL AS SIGNED ) + - 44 * 89 * + AVG ( DISTINCT - + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL 45 / - CAST ( NULL AS INTEGER ) + - 44 * 89 * + AVG ( DISTINCT - + 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT - - 13 * + 17 + 9 + - CASE + NULLIF ( - 27, COUNT( * ) * - 57 ) WHEN + - SUM( 51 ) THEN NULL WHEN - 13 / + 10 * COUNT( * ) + - + COUNT( * ) * - NULLIF ( - 2, - ( 87 ) * - 85 ) THEN + + 56 * + + 28 + - + 96 END + + SUM( ALL + + 16 ) * - 2 * - 1 * - - AVG ( + 71 ) * 89 AS col1, - 43
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-4617
SELECT - - 13 * + 17 + 9 + - CASE + NULLIF ( - 27, COUNT ( * ) * - 57 ) WHEN + - SUM ( 51 ) THEN NULL WHEN - 13 / + 10 * COUNT ( * ) + - + COUNT ( * ) * - NULLIF ( - 2, - ( 87 ) * - 85 ) THEN + + 56 * + + 28 + - + 96 END + + SUM ( ALL + + 16 ) * - 2 * - 1 * - - AVG ( + 71 ) * 89 AS col1, - 43
----
NULL
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4618
SELECT COALESCE ( - ( - 89 ), + + 60 ) AS col2, + COUNT( * ) col2
----
89
1

skipif mysql # not compatible
query II rowsort label-4618
SELECT COALESCE ( - ( - 89 ), + + 60 ) AS col2, + COUNT ( * ) col2
----
89
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT ALL 51 DIV - - 55
----
0

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL 51 / - - 55
----
0

query II rowsort
SELECT 50, 2 * 25 AS col1
----
50
50

query II rowsort
SELECT + - 6 col2, 65
----
-6
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4622
SELECT MIN( - + 41 ) AS col2, + COUNT( * ) DIV - 15, + + COUNT( * ) * - 77 + + 89 - - 86 + - + 49 * + 70 * - COUNT( + 16 ) * + + NULLIF ( + + 80, - COUNT( * ) ) AS col0
----
-41
0
274498

skipif mysql # not compatible
query III rowsort label-4622
SELECT MIN ( - + 41 ) AS col2, + COUNT ( * ) / - 15, + + COUNT ( * ) * - 77 + + 89 - - 86 + - + 49 * + 70 * - COUNT ( + 16 ) * + + NULLIF ( + + 80, - COUNT ( * ) ) AS col0
----
-41
0
274498

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT + 17 * 74 + COUNT( * ) AS col2
----
1259

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 17 * 74 + COUNT ( * ) AS col2
----
1259

query I rowsort
SELECT + 56 + - - 41 AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4625
SELECT - 49 AS col1, - COALESCE ( - CASE + + 91 WHEN 77 DIV + COUNT( * ) + - 55 THEN - + ( COALESCE ( 28, 27, - 88 DIV 78 * - 32 + - 83 ) ) WHEN - 27 DIV + CASE - - ( - + 86 ) WHEN - 50 * + 7 * + 23 THEN NULL ELSE COALESCE ( 22, + 44 + - 97 + - MIN( ALL ( 67 ) ) ) END THEN 28 * + 96 WHEN + 48 THEN - 85 + - - 60 + + SUM( 91 ) ELSE - 88 DIV 25 END, + 38, + 40 ) * 89
----
-49
-267

skipif mysql # not compatible
query II rowsort label-4625
SELECT - 49 AS col1, - COALESCE ( - CASE + + 91 WHEN 77 / + COUNT ( * ) + - 55 THEN - + ( COALESCE ( 28, 27, - 88 / 78 * - 32 + - 83 ) ) WHEN - 27 / + CASE - - ( - + 86 ) WHEN - 50 * + 7 * + 23 THEN NULL ELSE COALESCE ( 22, + 44 + - 97 + - MIN ( ALL ( 67 ) ) ) END THEN 28 * + 96 WHEN + 48 THEN - 85 + - - 60 + + SUM ( 91 ) ELSE - 88 / 25 END, + 38, + 40 ) * 89
----
-49
-267

query II rowsort
SELECT 93 AS col0, 52 + + - 32
----
93
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - - 18 * 56 * + COUNT( * ) * + - ( - + COUNT( * ) ) + 35 + - 62
----
981

skipif mysql # not compatible
query I rowsort label-4627
SELECT - - 18 * 56 * + COUNT ( * ) * + - ( - + COUNT ( * ) ) + 35 + - 62
----
981

query I rowsort
SELECT + ( - 2 ) AS col1
----
-2

query I rowsort
SELECT - 39 * - 40 + + - 91 + - 33
----
1436

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT 38 + - 26 + COALESCE ( + 98, + + 65 ) * COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-4630
SELECT 38 + - 26 + COALESCE ( + 98, + + 65 ) * COUNT ( * )
----
110

query I rowsort
SELECT ALL + 8 * - 78 AS col2
----
-624

query I rowsort
SELECT 48 * + NULLIF ( - 32, - - 25 + + 96 )
----
-1536

query I rowsort
SELECT ALL + ( 88 ) + - + 66 AS col2
----
22

query I rowsort
SELECT 54 + - + 9 + 4 * - ( 49 ) AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT 38 * - SUM( 77 )
----
-2926

skipif mysql # not compatible
query I rowsort label-4635
SELECT 38 * - SUM ( 77 )
----
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + 4 * + + 28 * - 72 + + + COUNT( * ) AS col1
----
-8063

skipif mysql # not compatible
query I rowsort label-4636
SELECT + 4 * + + 28 * - 72 + + + COUNT ( * ) AS col1
----
-8063

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT + 91 + + COUNT( * ) * + 50 * - 44 AS col2
----
-2109

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + 91 + + COUNT ( * ) * + 50 * - 44 AS col2
----
-2109

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT ALL + 46 * CASE - 30 WHEN - + 43 THEN NULL WHEN + - 14 THEN 33 + SUM( DISTINCT + 67 ) * + + ( - 95 ) ELSE NULL END AS col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL + 46 * CASE - 30 WHEN - + 43 THEN NULL WHEN + - 14 THEN 33 + SUM ( DISTINCT + 67 ) * + + ( - 95 ) ELSE NULL END AS col2, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT - 91 + 81
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT ALL 55 DIV 40 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL 55 / 40 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT 89 * - - ( - COUNT( * ) ) * COUNT( * ) / CASE WHEN NOT - 41 IS NOT NULL THEN COUNT( * ) / - 25 * 36 + - 27 + - 90 + 17 * + - 41 * 13 * + + MAX( - 71 ) / - - COUNT( * ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT 89 * - - ( - COUNT ( * ) ) * COUNT ( * ) / CASE WHEN NOT - 41 IS NOT NULL THEN COUNT ( * ) / - 25 * 36 + - 27 + - 90 + 17 * + - 41 * 13 * + + MAX ( - 71 ) / - - COUNT ( * ) * COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 0 * + 44 * - - 29 col1
----
0

query II rowsort
SELECT - COALESCE ( + 61, + 92 * - 43 + - 72 + - ( 6 ) * - + 15 ) AS col0, 50 col1
----
-61
50

query I rowsort
SELECT DISTINCT - ( - - 5 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT 5 * - - COALESCE ( - ( - - 11 ), - 32 DIV - COUNT( * ) + - + 77, + - 49 ) + - - 92
----
37

skipif mysql # not compatible
query I rowsort label-4645
SELECT 5 * - - COALESCE ( - ( - - 11 ), - 32 / - COUNT ( * ) + - + 77, + - 49 ) + - - 92
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL - 6 * + - 92 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - 6 * + - 92 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4647
SELECT + - 93 DIV + 12 + NULLIF ( + MIN( + 43 ), - COUNT( * ) ) + 19 AS col1, CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-4647
SELECT + - 93 / + 12 + NULLIF ( + MIN ( + 43 ), - COUNT ( * ) ) + 19 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT 84 * + - 55 * + + MAX( DISTINCT + 55 ) AS col2
----
-254100

skipif mysql # not compatible
query I rowsort label-4648
SELECT 84 * + - 55 * + + MAX ( DISTINCT + 55 ) AS col2
----
-254100

onlyif mysql # aggregate syntax: 
query II rowsort label-4649
SELECT - 91 * - 82 + - SUM( DISTINCT + - 20 ) + - - ( + COUNT( * ) ) + + COUNT( * ) AS col0, 94 AS col1
----
7484
94

skipif mysql # not compatible
query II rowsort label-4649
SELECT - 91 * - 82 + - SUM ( DISTINCT + - 20 ) + - - ( + COUNT ( * ) ) + + COUNT ( * ) AS col0, 94 AS col1
----
7484
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT - 28 DIV 74 + 26 + - - 86 * + - COALESCE ( + COUNT( * ), + 63 * 48 ) - - + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 28 / 74 + 26 + - - 86 * + - COALESCE ( + COUNT ( * ), + 63 * 48 ) - - + COUNT ( * )
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4651
SELECT DISTINCT + 23 DIV - - 80 AS col1, + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4651
SELECT DISTINCT + 23 / - - 80 AS col1, + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL - + 7 AS col1
----
-7

query I rowsort
SELECT + 90 * + + 52 AS col2
----
4680

onlyif mysql # aggregate syntax: 
query II rowsort label-4654
SELECT - 36 * + - 1 + + + COUNT( * ) col2, 80
----
37
80

skipif mysql # not compatible
query II rowsort label-4654
SELECT - 36 * + - 1 + + + COUNT ( * ) col2, 80
----
37
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT ALL - CAST( NULL AS SIGNED ) + - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - CAST ( NULL AS INTEGER ) + - 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT ( 40 ) DIV - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4656
SELECT ( 40 ) / - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + COUNT( * ) + 25
----
26

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + COUNT ( * ) + 25
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4658
SELECT DISTINCT CAST( 79 AS SIGNED ) + - MAX( ALL - + 18 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT CAST ( 79 AS INTEGER ) + - MAX ( ALL - + 18 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4659
SELECT DISTINCT 34, + 13 * 73 / 20 * + 27 * + CASE 18 WHEN + 62 * - 62 THEN - 6 WHEN + 95 THEN NULL WHEN + 60 * + 17 * 17 THEN NULL WHEN 21 * + + COUNT( * ) / COUNT( * ) + - CASE + + NULLIF ( - 90, + - 72 ) WHEN + CAST( - 6 AS DECIMAL ) * 15 * COUNT( * ) THEN + - AVG ( 79 ) - - + 15 * - NULLIF ( - CASE - + 2 WHEN - 64 THEN - 97 END, - 21 ) + + COALESCE ( + 11, + - COUNT( - + 16 ) * 14 + - 1, - SUM( ALL 56 ) ) + - 68 * 95 WHEN + 6 + 37 * + 31 THEN ( - 14 ) - - 33 ELSE NULL END + - ( 8 ) THEN NULLIF ( 48, 78 ) * + COUNT( * ) END AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4659
SELECT DISTINCT 34, + 13 * 73 / 20 * + 27 * + CASE 18 WHEN + 62 * - 62 THEN - 6 WHEN + 95 THEN NULL WHEN + 60 * + 17 * 17 THEN NULL WHEN 21 * + + COUNT ( * ) / COUNT ( * ) + - CASE + + NULLIF ( - 90, + - 72 ) WHEN + CAST ( - 6 AS REAL ) * 15 * COUNT ( * ) THEN + - AVG ( 79 ) - - + 15 * - NULLIF ( - CASE - + 2 WHEN - 64 THEN - 97 END, - 21 ) + + COALESCE ( + 11, + - COUNT ( - + 16 ) * 14 + - 1, - SUM ( ALL 56 ) ) + - 68 * 95 WHEN + 6 + 37 * + 31 THEN ( - 14 ) - - 33 ELSE NULL END + - ( 8 ) THEN NULLIF ( 48, 78 ) * + COUNT ( * ) END AS col0
----
34
NULL

query I rowsort
SELECT ALL + 4 + - + 26 + + + 70 * + 58
----
4038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4661
SELECT CAST( - 24 AS SIGNED ) - + COALESCE ( 10, - - COUNT( * ), + 89 ) + - 79 DIV - - COUNT( * ) AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-4661
SELECT CAST ( - 24 AS INTEGER ) - + COALESCE ( 10, - - COUNT ( * ), + 89 ) + - 79 / - - COUNT ( * ) AS col2
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 34
----
NULL

query I rowsort
SELECT ALL 90 + + - 83 col1
----
7

query I rowsort
SELECT DISTINCT - 60 * 7
----
-420

query II rowsort
SELECT 23, + 71 * - 8 AS col0
----
23
-568

query I rowsort
SELECT 63 + + 6
----
69

query I rowsort
SELECT 98 - 80
----
18

query I rowsort
SELECT ALL - 69 * 47 AS col1
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL MAX( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL MAX ( + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 8 - - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4670
SELECT 8 - - COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT MIN( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT MIN ( DISTINCT + 6 )
----
6

query I rowsort
SELECT 88 + - - 47
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT ( - 12 ) + - 99 + + 6 / - NULLIF ( + COUNT( + 37 ), CAST( + COUNT( * ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT ( - 12 ) + - 99 + + 6 / - NULLIF ( + COUNT ( + 37 ), CAST ( + COUNT ( * ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4674
SELECT DISTINCT + 10 * - 40 + - - COUNT( * ) AS col1, 44 DIV + - CAST( - 40 AS SIGNED ) + - 32
----
-399
-31

skipif mysql # not compatible
query II rowsort label-4674
SELECT DISTINCT + 10 * - 40 + - - COUNT ( * ) AS col1, 44 / + - CAST ( - 40 AS INTEGER ) + - 32
----
-399
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL - MAX( DISTINCT + 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - MAX ( DISTINCT + 57 ) AS col0
----
-57

query III rowsort
SELECT - + ( + 1 ) + + 68 AS col0, + 75, + + 81 col2
----
67
75
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT - 86 * + + 96 - - - 61 DIV - + 93 + - + COUNT( ALL + 74 ) + - 95 AS col2
----
-8352

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 86 * + + 96 - - - 61 / - + 93 + - + COUNT ( ALL + 74 ) + - 95 AS col2
----
-8352

query I rowsort
SELECT - 25 + + 14 + - + 54
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4679
SELECT COUNT( * ) AS col2, 42 DIV 71 + 0 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4679
SELECT COUNT ( * ) AS col2, 42 / 71 + 0 AS col1
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - - COALESCE ( CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ), + 71 ) * - 9 * 40 + - 37
----
-25597

skipif mysql # not compatible
query I rowsort label-4680
SELECT - - COALESCE ( CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ), + 71 ) * - 9 * 40 + - 37
----
-25597

query I rowsort
SELECT + + 0 * - + 58 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4682
SELECT 60 AS col0, - COUNT( DISTINCT 14 ) DIV - - 62 AS col0
----
60
0

skipif mysql # not compatible
query II rowsort label-4682
SELECT 60 AS col0, - COUNT ( DISTINCT 14 ) / - - 62 AS col0
----
60
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT DISTINCT + 60 * + NULLIF ( + 32, - 25 * - - 92 + + + 28 - - 16 * + - 5 ) + 68 DIV - 86
----
1920

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + 60 * + NULLIF ( + 32, - 25 * - - 92 + + + 28 - - 16 * + - 5 ) + 68 / - 86
----
1920

query I rowsort
SELECT ( - - 38 )
----
38

query II rowsort
SELECT ALL + 45 * - + ( 70 ), + 13 AS col1
----
-3150
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + 88 * 24 + + + COUNT( * ) AS col1
----
2113

skipif mysql # not compatible
query I rowsort label-4686
SELECT + 88 * 24 + + + COUNT ( * ) AS col1
----
2113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4687
SELECT - COALESCE ( + 84, 63 + + - 10 * + - 24 DIV - + 65 + - 60 - + MIN( 38 ), 4 ) - - 60 + + 91 - - 55 AS col0, MAX( DISTINCT 72 ) * + + SUM( 68 ) AS col1
----
122
4896

skipif mysql # not compatible
query II rowsort label-4687
SELECT - COALESCE ( + 84, 63 + + - 10 * + - 24 / - + 65 + - 60 - + MIN ( 38 ), 4 ) - - 60 + + 91 - - 55 AS col0, MAX ( DISTINCT 72 ) * + + SUM ( 68 ) AS col1
----
122
4896

query I rowsort
SELECT - 54 + - 77 * 26 AS col2
----
-2056

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT COALESCE ( - 13, SUM( DISTINCT 80 ) ) * 97 + + 83 + - 70 * + COUNT( DISTINCT + - ( + + 48 ) ) * + 32 + + - NULLIF ( + 99, + 91 ) AS col1
----
-3517

skipif mysql # not compatible
query I rowsort label-4689
SELECT COALESCE ( - 13, SUM ( DISTINCT 80 ) ) * 97 + + 83 + - 70 * + COUNT ( DISTINCT + - ( + + 48 ) ) * + 32 + + - NULLIF ( + 99, + 91 ) AS col1
----
-3517

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT CASE CASE - - COUNT( * ) WHEN + - 90 / COUNT( * ) THEN NULL ELSE + - 47 END WHEN 80 THEN + 39 * + COUNT( * ) * - 76 + + 5 * + - 95 ELSE - 86 + - NULLIF ( - COUNT( * ), - 63 - - + 88 ) END
----
-85

skipif mysql # not compatible
query I rowsort label-4690
SELECT CASE CASE - - COUNT ( * ) WHEN + - 90 / COUNT ( * ) THEN NULL ELSE + - 47 END WHEN 80 THEN + 39 * + COUNT ( * ) * - 76 + + 5 * + - 95 ELSE - 86 + - NULLIF ( - COUNT ( * ), - 63 - - + 88 ) END
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT DISTINCT CAST( NULL AS SIGNED ) * 80 * + - 6 * + COUNT( * ) * 56 / 24 + 88 * + COALESCE ( + - 10, + + 71, + 73 * + - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 80 * + - 6 * + COUNT ( * ) * 56 / 24 + 88 * + COALESCE ( + - 10, + + 71, + 73 * + - 40 )
----
NULL

query I rowsort
SELECT + 3 * 53
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT MAX( ALL 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4693
SELECT MAX ( ALL 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT ALL 78 * 65 + + - 39 + - CAST( - 21 AS SIGNED ) * - 4
----
4947

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL 78 * 65 + + - 39 + - CAST ( - 21 AS INTEGER ) * - 4
----
4947

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT DISTINCT + MAX( - - 34 ) col2
----
34

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + MAX ( - - 34 ) col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT ALL + CAST( - CAST( - 34 AS SIGNED ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + CAST ( - CAST ( - 34 AS INTEGER ) AS INTEGER )
----
34

query I rowsort
SELECT + 67 - 75
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL 79 * 35 * COUNT( * ) AS col0
----
2765

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL 79 * 35 * COUNT ( * ) AS col0
----
2765

query II rowsort
SELECT - ( + 90 ) AS col0, 63
----
-90
63

query I rowsort
SELECT + COALESCE ( 38, - + 25 * - 82, + 35 ) * + + 48 AS col2
----
1824

query I rowsort
SELECT + CASE + + 13 WHEN + 53 THEN + 42 END + 51 - + 31 * + COALESCE ( + 62, 46 / + + 8 * - 84, - 41 * - 27 )
----
NULL

query I rowsort
SELECT ALL 19 * - ( 3 ) AS col0
----
-57

query I rowsort
SELECT + 43 * 49 col0
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - 7 + - - 58 + - 14 + - + 43 * + 96 * - 68 - + COUNT( * ) + + + 47 AS col2
----
280787

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 7 + - - 58 + - 14 + - + 43 * + 96 * - 68 - + COUNT ( * ) + + + 47 AS col2
----
280787

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL MIN( 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL MIN ( 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - ( - - SUM( ALL + 50 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4706
SELECT - ( - - SUM ( ALL + 50 ) ) AS col1
----
-50

query I rowsort
SELECT - ( 42 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT ALL COALESCE ( + 71, + + 92 * + 61, + COUNT( * ) ) AS col1, + 39 AS col0
----
71
39

skipif mysql # not compatible
query II rowsort label-4708
SELECT ALL COALESCE ( + 71, + + 92 * + 61, + COUNT ( * ) ) AS col1, + 39 AS col0
----
71
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4709
SELECT ALL + CAST( 96 AS SIGNED ) col2, 98 * - COUNT( * ) * - 55
----
96
5390

skipif mysql # not compatible
query II rowsort label-4709
SELECT ALL + CAST ( 96 AS INTEGER ) col2, 98 * - COUNT ( * ) * - 55
----
96
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT COALESCE ( + 82, + - 99 * - - 52 + - 26 + COUNT( * ) - 46 * - 89 )
----
82

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT COALESCE ( + 82, + - 99 * - - 52 + - 26 + COUNT ( * ) - 46 * - 89 )
----
82

query I rowsort
SELECT - 61 * 42
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT COALESCE ( CASE 85 WHEN + + MAX( - 67 ) THEN NULL ELSE - COUNT( * ) + + 66 END, - COUNT( * ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4712
SELECT COALESCE ( CASE 85 WHEN + + MAX ( - 67 ) THEN NULL ELSE - COUNT ( * ) + + 66 END, - COUNT ( * ) ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT ALL + 89 DIV 15 col0
----
5

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + 89 / 15 col0
----
5

query I rowsort
SELECT + 14 - - + 80
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT DISTINCT - + MAX( + CAST( NULL AS SIGNED ) ) * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - + MAX ( + CAST ( NULL AS INTEGER ) ) * 27 AS col2
----
NULL

query II rowsort
SELECT + 27 * + 44 AS col2, 95 - + 79
----
1188
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT - - 29 DIV 93 + + 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4717
SELECT - - 29 / 93 + + 5 AS col0
----
5

query I rowsort
SELECT + NULLIF ( 49, + 89 )
----
49

query I rowsort
SELECT DISTINCT + 96 + - 56 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4720
SELECT - SUM( + 11 ) / + CASE - 62 WHEN - - 31 THEN 68 WHEN + 49 + CAST( NULL AS DECIMAL ) THEN CAST( NULL AS SIGNED ) + - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT - SUM ( + 11 ) / + CASE - 62 WHEN - - 31 THEN 68 WHEN + 49 + CAST ( NULL AS REAL ) THEN CAST ( NULL AS INTEGER ) + - 53 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT - 62 DIV - 98 + + + 14 + - 99 * - - 50
----
-4936

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - 62 / - 98 + + + 14 + - 99 * - - 50
----
-4936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4722
SELECT ALL + 27 DIV - 7 * + COUNT( * ) + 18 + + - 59 + - 20 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + 27 / - 7 * + COUNT ( * ) + 18 + + - 59 + - 20 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT + + CASE - 45 WHEN SUM( - 54 ) THEN NULL WHEN - - 35 THEN - 30 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + + CASE - 45 WHEN SUM ( - 54 ) THEN NULL WHEN - - 35 THEN - 30 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT ALL + 13 DIV 78 * + 21 * - 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + 13 / 78 * + 21 * - 0 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT - + 8 DIV 63 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-4725
SELECT - + 8 / 63 + + 36
----
36

query I rowsort
SELECT + ( + 46 ) AS col1
----
46

query I rowsort
SELECT + - 27 * - 44
----
1188

query I rowsort
SELECT ( + + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT DISTINCT - 53 * + - COUNT( * ) - + + 49 * 12 + - + 50 * 32 col1
----
-2135

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - 53 * + - COUNT ( * ) - + + 49 * 12 + - + 50 * 32 col1
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + SUM( DISTINCT + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4730
SELECT + SUM ( DISTINCT + 43 )
----
43

query I rowsort
SELECT ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT - 69 * + ( + 92 ) * 58 * - + ( + + ( - + 37 ) ) * COUNT( * )
----
-13622808

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - 69 * + ( + 92 ) * 58 * - + ( + + ( - + 37 ) ) * COUNT ( * )
----
-13622808

query I rowsort
SELECT + 14 * - 38
----
-532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4734
SELECT - COUNT( * ) DIV + COALESCE ( - + 79, 67 + - 1, + 47 * - NULLIF ( COUNT( * ), - ( - - 9 ) - - 21 * - + CAST( NULL AS DECIMAL ) DIV + 59 + - 33 ) ) * - 11
----
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT - COUNT ( * ) / + COALESCE ( - + 79, 67 + - 1, + 47 * - NULLIF ( COUNT ( * ), - ( - - 9 ) - - 21 * - + CAST ( NULL AS REAL ) / + 59 + - 33 ) ) * - 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT NULLIF ( + + COUNT( * ), - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-4735
SELECT NULLIF ( + + COUNT ( * ), - 52 )
----
1

query I rowsort
SELECT + CASE WHEN NOT 34 <= ( 63 ) THEN 71 ELSE NULL END * + 14 * 3 * - 77 * + 67 + - - 60 + 85 + - 5 * - 82 * 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4737
SELECT ALL 15, COUNT( * ) AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-4737
SELECT ALL 15, COUNT ( * ) AS col0
----
15
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT DISTINCT COUNT( * ) DIV - ( - 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT COUNT ( * ) / - ( - 79 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT + CAST( - - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + CAST ( - - 77 AS INTEGER )
----
77

query I rowsort
SELECT + 84 + - 23
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT 57 - + 65 + + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4741
SELECT 57 - + 65 + + - COUNT ( * )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4742
SELECT ALL + 60 * + 57 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + 60 * + 57 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 90 * 55 AS col1
----
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT + 11 + CASE - + 90 WHEN + COUNT( * ) THEN - MIN( ALL - - COALESCE ( - 34, 22 ) ) WHEN + 46 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 11 + CASE - + 90 WHEN + COUNT ( * ) THEN - MIN ( ALL - - COALESCE ( - 34, 22 ) ) WHEN + 46 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4745
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 92
----
NULL
92

query II rowsort
SELECT 21 col1, 52 * - 76
----
21
-3952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4747
SELECT + CAST( + 40 AS SIGNED ) * 13 - - CAST( 30 AS DECIMAL ) * - 13 + - - 61 + + COALESCE ( + 59, + 25 ) * - 71 * + CASE - 17 WHEN + 69 THEN - CAST( + - MIN( DISTINCT + 68 ) AS SIGNED ) * + 34 + + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT + CAST ( + 40 AS INTEGER ) * 13 - - CAST ( 30 AS REAL ) * - 13 + - - 61 + + COALESCE ( + 59, + 25 ) * - 71 * + CASE - 17 WHEN + 69 THEN - CAST ( + - MIN ( DISTINCT + 68 ) AS INTEGER ) * + 34 + + 34 END AS col1
----
NULL

query I rowsort
SELECT - 34 + 39
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL - 25 + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - 25 + COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + 67 + - + 60 AS col2
----
7

query I rowsort
SELECT ALL NULLIF ( + 30, + 68 * + 60 + + + COALESCE ( + + 55, - 29 ) / 97 + 87 ) + - 9 + + 96 + + - 39 + COALESCE ( + + 97, - 92, 55 + + 96 + + 35 * - 73 ) + - + 19 * 0 * - + 25 * + 16 * - - 35
----
175

query II rowsort
SELECT 58 AS col2, 75
----
58
75

query I rowsort
SELECT - 61 + - 91
----
-152

query I rowsort
SELECT ALL 31 + - 76 AS col2
----
-45

query I rowsort
SELECT - + ( + 88 )
----
-88

query I rowsort
SELECT 39 + 51
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT + 27 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT + 27 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT COUNT( ALL - 30 ) + + + 98 - ( + 18 ) * 4 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4758
SELECT COUNT ( ALL - 30 ) + + + 98 - ( + 18 ) * 4 AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL - ( - + 94 ) + - 89 + - 62 DIV - 5
----
17

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - ( - + 94 ) + - 89 + - 62 / - 5
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT 57 * - CAST( NULLIF ( - - NULLIF ( 30, - 47 * - 55 + - + 76 + - 56 ), - 9 + + - 92 ) AS SIGNED ) * - CASE - COUNT( * ) WHEN - + 87 THEN - - 93 END * - 86 + 49 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT 57 * - CAST ( NULLIF ( - - NULLIF ( 30, - 47 * - 55 + - + 76 + - 56 ), - 9 + + - 92 ) AS INTEGER ) * - CASE - COUNT ( * ) WHEN - + 87 THEN - - 93 END * - 86 + 49 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( ( - 62 ), 85 * 18 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4762
SELECT ALL - 2 AS col0, - CAST( NULL AS SIGNED ) * + CAST( 50 AS SIGNED ) / 86 * + + 49 + + ( + + 1 ) - ( - + COUNT( * ) ) AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4762
SELECT ALL - 2 AS col0, - CAST ( NULL AS INTEGER ) * + CAST ( 50 AS INTEGER ) / 86 * + + 49 + + ( + + 1 ) - ( - + COUNT ( * ) ) AS col1
----
-2
NULL

query I rowsort
SELECT 83 * + 47
----
3901

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL - COALESCE ( + 36, + 22 + - + 50 + 64, 4 ), - COUNT( * ) AS col0
----
-36
-1

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL - COALESCE ( + 36, + 22 + - + 50 + 64, 4 ), - COUNT ( * ) AS col0
----
-36
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT + 88 * 92 + 43 + + 27 * CAST( NULL AS SIGNED ) + + - 33 - - 16 / - + 87 * 67 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT + 88 * 92 + 43 + + 27 * CAST ( NULL AS INTEGER ) + + - 33 - - 16 / - + 87 * 67 * + 87
----
NULL

query II rowsort
SELECT ALL - 28, 61 + 8 + 9 + 49 - 11 + + 78 * - 55 AS col0
----
-28
-4174

query II rowsort
SELECT 1, 48 AS col2
----
1
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT NULLIF ( 83, - - 77 ) * - 11 / - + CAST( NULL AS SIGNED ) + + AVG ( - 35 ) / + COUNT( * ) + + 77 * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT NULLIF ( 83, - - 77 ) * - 11 / - + CAST ( NULL AS INTEGER ) + + AVG ( - 35 ) / + COUNT ( * ) + + 77 * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 73 - 34 + - 49 AS col1
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4770
SELECT 73 * + COALESCE ( + 1, + COALESCE ( + ( 68 ), 77 ) DIV - 78, + 20 * - + CASE WHEN NOT ( NULL >= NULL ) THEN NULL WHEN 25 IS NOT NULL THEN - + ( - 58 ) * - CAST( - + COUNT( * ) AS SIGNED ) * - 16 * - 16 + + - 58 - - 14 ELSE NULL END * 47 * + - 27 * + 46 )
----
73

skipif mysql # not compatible
query I rowsort label-4770
SELECT 73 * + COALESCE ( + 1, + COALESCE ( + ( 68 ), 77 ) / - 78, + 20 * - + CASE WHEN NOT ( NULL >= NULL ) THEN NULL WHEN 25 IS NOT NULL THEN - + ( - 58 ) * - CAST ( - + COUNT ( * ) AS INTEGER ) * - 16 * - 16 + + - 58 - - 14 ELSE NULL END * 47 * + - 27 * + 46 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT COUNT( * ) + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4771
SELECT COUNT ( * ) + 19 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4772
SELECT ALL - CAST( NULL AS SIGNED ), 94 col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-4772
SELECT ALL - CAST ( NULL AS INTEGER ), 94 col1
----
NULL
94

query I rowsort
SELECT DISTINCT - COALESCE ( - 47, - 77, - 33 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT ALL - COUNT( * ) AS col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4774
SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * )
----
-1
-1

query I rowsort
SELECT 7 + + 65 * - 74
----
-4803

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT DISTINCT - 46, 9 - - COALESCE ( + CASE + 17 WHEN - + 32 / - COUNT( * ) * + CASE 16 WHEN + COUNT( * ) THEN + 44 ELSE NULL END - - - 25 THEN + - 13 + + + 75 ELSE NULL END, + 56 + + ( 23 ) * - 13 ) * + 74 AS col0
----
-46
-17973

skipif mysql # not compatible
query II rowsort label-4776
SELECT DISTINCT - 46, 9 - - COALESCE ( + CASE + 17 WHEN - + 32 / - COUNT ( * ) * + CASE 16 WHEN + COUNT ( * ) THEN + 44 ELSE NULL END - - - 25 THEN + - 13 + + + 75 ELSE NULL END, + 56 + + ( 23 ) * - 13 ) * + 74 AS col0
----
-46
-17973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT DISTINCT + NULLIF ( + + COUNT( * ), - 48 / + 29 + + 29 ) * - CASE + - 87 WHEN + + 10 + 43 THEN + 26 + + CAST( + + 83 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + NULLIF ( + + COUNT ( * ), - 48 / + 29 + + 29 ) * - CASE + - 87 WHEN + + 10 + 43 THEN + 26 + + CAST ( + + 83 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT ALL - SUM( ALL CASE - 12 WHEN - - 4 THEN 15 WHEN - - 40 THEN NULL END ) + + 62 * - CAST( - COUNT( * ) AS SIGNED ) + - 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - SUM ( ALL CASE - 12 WHEN - - 4 THEN 15 WHEN - - 40 THEN NULL END ) + + 62 * - CAST ( - COUNT ( * ) AS INTEGER ) + - 0 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL + 89 + - MIN( DISTINCT + 0 )
----
89

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + 89 + - MIN ( DISTINCT + 0 )
----
89

query I rowsort
SELECT 72 + + 48 + 5 * - 31
----
-35

query II rowsort
SELECT 99 col0, 55
----
99
55

query I rowsort
SELECT ALL 35 + 69 * - 40
----
-2725

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT 64 + - ( - COUNT( * ) ) + COUNT( * ) - + + ( - 45 ) + - - 26
----
137

skipif mysql # not compatible
query I rowsort label-4783
SELECT 64 + - ( - COUNT ( * ) ) + COUNT ( * ) - + + ( - 45 ) + - - 26
----
137

query I rowsort
SELECT DISTINCT - + ( 64 ) + 92
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4785
SELECT DISTINCT + 7 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + 7 / + 88
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT ALL 62 + + + 31 * + 36 * COUNT( * ), - NULLIF ( - - 88, 45 * 1 + NULLIF ( AVG ( DISTINCT 46 ), - 27 ) ) AS col2
----
1178
-88

skipif mysql # not compatible
query II rowsort label-4786
SELECT ALL 62 + + + 31 * + 36 * COUNT ( * ), - NULLIF ( - - 88, 45 * 1 + NULLIF ( AVG ( DISTINCT 46 ), - 27 ) ) AS col2
----
1178
-88

query I rowsort
SELECT ALL - 37 + 28 AS col0
----
-9

query II rowsort
SELECT DISTINCT 41 AS col0, 35 - + 74
----
41
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4789
SELECT COUNT( * ) DIV - 91 + 81 + - 89 + 94 * + COUNT( 75 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4789
SELECT COUNT ( * ) / - 91 + 81 + - 89 + 94 * + COUNT ( 75 ) col2
----
86

query I rowsort
SELECT ALL - 88 + 23 - - - 65
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT + 98 - - NULLIF ( + COUNT( * ), + 34 + - 65 ) DIV 30 col2
----
98

skipif mysql # not compatible
query I rowsort label-4791
SELECT + 98 - - NULLIF ( + COUNT ( * ), + 34 + - 65 ) / 30 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + NULLIF ( COUNT( * ), + + 83 * + + 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT + NULLIF ( COUNT ( * ), + + 83 * + + 2 ) AS col1
----
1

query II rowsort
SELECT - + 7, 56 * 63 AS col2
----
-7
3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4794
SELECT - ( 29 ) DIV + SUM( 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4794
SELECT - ( 29 ) / + SUM ( 89 ) AS col0
----
0

query I rowsort
SELECT 13 * - 32
----
-416

query II rowsort
SELECT 35 AS col0, - 92 * + 93
----
35
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + SUM( ALL + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-4797
SELECT + SUM ( ALL + + 19 )
----
19

query I rowsort
SELECT 76 - - 32 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT MAX( DISTINCT + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4799
SELECT MAX ( DISTINCT + + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT MAX( DISTINCT + ( - 37 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-4800
SELECT MAX ( DISTINCT + ( - 37 ) ) AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4801
SELECT + 84 DIV + - SUM( + 38 ) + + + 53 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 84 / + - SUM ( + 38 ) + + + 53 AS col0
----
51

query II rowsort
SELECT 92 * - 71 AS col0, + 42 * 78
----
-6532
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + NULLIF ( + 35, - ( + ( COUNT( * ) ) ) - + 92 ) * + 83 col0
----
2905

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + NULLIF ( + 35, - ( + ( COUNT ( * ) ) ) - + 92 ) * + 83 col0
----
2905

query I rowsort
SELECT 18 * 81
----
1458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4805
SELECT COUNT( ALL COALESCE ( 35, - + ( + 16 ) + - 50 - + CAST( NULL AS SIGNED ) + NULLIF ( + + 37, - 4 * - - 90 * + ( 98 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT COUNT ( ALL COALESCE ( 35, - + ( + 16 ) + - 50 - + CAST ( NULL AS INTEGER ) + NULLIF ( + + 37, - 4 * - - 90 * + ( 98 ) ) ) )
----
1

query II rowsort
SELECT DISTINCT 26 * 8, 70 AS col1
----
208
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT ALL + COUNT( DISTINCT + 73 ) AS col2, 19
----
1
19

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL + COUNT ( DISTINCT + 73 ) AS col2, 19
----
1
19

query I rowsort
SELECT DISTINCT + ( + CASE - 95 WHEN + NULLIF ( - 79, + 81 * + 8 ) THEN 28 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4809
SELECT - COUNT( * ) * 45 * + - CASE - CASE - + MAX( DISTINCT + + 27 ) WHEN - 42 * - 91 * - + 20 THEN - COUNT( * ) * - + COUNT( * ) * - COALESCE ( + + 97, + NULLIF ( 79, - - 8 ) * - 76 * - 59 DIV + 95 + 24 + - + MAX( - 64 ) + - 53 + - ( - COUNT( * ) ) * - 61 * + CASE 57 WHEN 17 THEN 6 DIV + - ( CAST( NULL AS SIGNED ) ) * + 65 + + - 84 WHEN + 66 THEN NULL WHEN + - 42 THEN NULL END - + COALESCE ( - 13, 71, COALESCE ( + - 57, + 26 * 22 + ( + NULLIF ( ( ( 7 ) ), + 18 DIV 87 ) ) DIV + ( - 54 * 45 + 45 * 3 ) ) ) * 39 ) WHEN + 26 THEN + 0 END WHEN + 1 THEN 55 ELSE 70 DIV 75 END * + 66 + SUM( 27 ) * 81 col2
----
2187

skipif mysql # not compatible
query I rowsort label-4809
SELECT - COUNT ( * ) * 45 * + - CASE - CASE - + MAX ( DISTINCT + + 27 ) WHEN - 42 * - 91 * - + 20 THEN - COUNT ( * ) * - + COUNT ( * ) * - COALESCE ( + + 97, + NULLIF ( 79, - - 8 ) * - 76 * - 59 / + 95 + 24 + - + MAX ( - 64 ) + - 53 + - ( - COUNT ( * ) ) * - 61 * + CASE 57 WHEN 17 THEN 6 / + - ( CAST ( NULL AS INTEGER ) ) * + 65 + + - 84 WHEN + 66 THEN NULL WHEN + - 42 THEN NULL END - + COALESCE ( - 13, 71, COALESCE ( + - 57, + 26 * 22 + ( + NULLIF ( ( ( 7 ) ), + 18 / 87 ) ) / + ( - 54 * 45 + 45 * 3 ) ) ) * 39 ) WHEN + 26 THEN + 0 END WHEN + 1 THEN 55 ELSE 70 / 75 END * + 66 + SUM ( 27 ) * 81 col2
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL 61 * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 61 * - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT DISTINCT 19 * - - 33, 52 * + MAX( DISTINCT 61 ) * 98 * - 37 - + - MIN( + NULLIF ( - + 65, 70 ) ) AS col2
----
627
-11501737

skipif mysql # not compatible
query II rowsort label-4811
SELECT DISTINCT 19 * - - 33, 52 * + MAX ( DISTINCT 61 ) * 98 * - 37 - + - MIN ( + NULLIF ( - + 65, 70 ) ) AS col2
----
627
-11501737

query I rowsort
SELECT - 48 * + 48 AS col0
----
-2304

query I rowsort
SELECT ALL + 23 * 17 + + ( 24 ) AS col2
----
415

query I rowsort
SELECT + COALESCE ( - 51, + 23 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT MAX( DISTINCT - + ( - + 49 ) ) * - + MAX( DISTINCT + 5 ) * - - 66 * + - 61 + - - 99 AS col1
----
986469

skipif mysql # not compatible
query I rowsort label-4815
SELECT MAX ( DISTINCT - + ( - + 49 ) ) * - + MAX ( DISTINCT + 5 ) * - - 66 * + - 61 + - - 99 AS col1
----
986469

query II rowsort
SELECT - 42 * 90 AS col1, 40 + + 28 AS col2
----
-3780
68

query I rowsort
SELECT - + 44 * + - 93 - - 47 + - + 35 AS col2
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL MIN( + 91 ) + + 84
----
175

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL MIN ( + 91 ) + + 84
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT 68 + MIN( ALL 52 ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT 68 + MIN ( ALL 52 ) AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT ALL + - COUNT( * ) + - MIN( ALL 41 ) DIV ( COUNT( * ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + - COUNT ( * ) + - MIN ( ALL 41 ) / ( COUNT ( * ) ) AS col2
----
-42

query I rowsort
SELECT - + 72 + - - ( - ( - - 55 ) ) AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL COUNT( + 77 ) + + COALESCE ( + 44, 50 ) + + 52 * 58 * 77
----
232277

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL COUNT ( + 77 ) + + COALESCE ( + 44, 50 ) + + 52 * 58 * 77
----
232277

query I rowsort
SELECT DISTINCT CASE 33 WHEN + + 56 THEN - ( + 28 ) ELSE + 86 END
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL + - 54 * + - 78 + - + COUNT( * ) AS col0
----
4211

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + - 54 * + - 78 + - + COUNT ( * ) AS col0
----
4211

query I rowsort
SELECT + 66 - 31 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - CASE + + 21 WHEN + 10 / + COUNT( * ) THEN NULL WHEN + 90 THEN + 24 WHEN - 98 * + 90 THEN - 26 * - 83 * - 69 + + 51 / - - 22 + 34 * - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT - CASE + + 21 WHEN + 10 / + COUNT ( * ) THEN NULL WHEN + 90 THEN + 24 WHEN - 98 * + 90 THEN - 26 * - 83 * - 69 + + 51 / - - 22 + 34 * - 32 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT - COUNT( * ) + + + 98 * - 40 DIV COUNT( * ) * - ( - 26 ) AS col0
----
-101921

skipif mysql # not compatible
query I rowsort label-4827
SELECT - COUNT ( * ) + + + 98 * - 40 / COUNT ( * ) * - ( - 26 ) AS col0
----
-101921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT - - 12 - - COUNT( * ) DIV - 90 + 42 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT - - 12 - - COUNT ( * ) / - 90 + 42 AS col2
----
54

query I rowsort
SELECT ALL - ( ( - 81 ) )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT ALL - 1 DIV + - 14
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - 1 / + - 14
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT + CASE + 57 WHEN + + 78 + + 99 THEN NULL WHEN - - 19 THEN NULL WHEN - CAST( 50 AS SIGNED ) THEN - 89 END * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT + CASE + 57 WHEN + + 78 + + 99 THEN NULL WHEN - - 19 THEN NULL WHEN - CAST ( 50 AS INTEGER ) THEN - 89 END * + 7
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4832
SELECT DISTINCT - - 37 DIV + - 24 AS col1, 38 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-4832
SELECT DISTINCT - - 37 / + - 24 AS col1, 38 AS col2
----
-1
38

query I rowsort
SELECT ALL ( + 2 ) AS col0
----
2

query I rowsort
SELECT ALL - 28 * - 67 * 41 col1
----
76916

query II rowsort
SELECT DISTINCT 72, - 4 AS col0
----
72
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4836
SELECT - 50 + COUNT( * ) * - COALESCE ( - COALESCE ( - - 61, + - 23, + ( + 81 ) ), + 28 + - 66 ) * + 73 + CAST( NULL AS DECIMAL ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 50 + COUNT ( * ) * - COALESCE ( - COALESCE ( - - 61, + - 23, + ( + 81 ) ), + 28 + - 66 ) * + 73 + CAST ( NULL AS REAL ) + - 55
----
NULL

query I rowsort
SELECT DISTINCT 62 * + 56 * + 14 * + 81 * + 73
----
287419104

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL COUNT( * ) * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL COUNT ( * ) * - - COUNT ( * )
----
1

query I rowsort
SELECT - ( 86 ) * + - CASE + + NULLIF ( + 60, 75 ) WHEN - - 1 THEN - - 98 * + 10 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT 28 * + CAST( + + COUNT( * ) AS SIGNED ) + MAX( + 38 ) + - CAST( - 71 AS SIGNED ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-4840
SELECT 28 * + CAST ( + + COUNT ( * ) AS INTEGER ) + MAX ( + 38 ) + - CAST ( - 71 AS INTEGER ) AS col2
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT + 3 DIV + - 60 * 27
----
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 3 / + - 60 * 27
----
0

query I rowsort
SELECT ( - + 13 )
----
-13

query I rowsort
SELECT ( + + 65 )
----
65

query II rowsort
SELECT + 72 + ( - + 69 ) - - - 36 AS col2, - 56
----
-33
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL + CASE - 97 WHEN 91 - 90 THEN NULL WHEN 33 THEN - + ( COUNT( * ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + CASE - 97 WHEN 91 - 90 THEN NULL WHEN 33 THEN - + ( COUNT ( * ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( - 19 ) AS col0
----
-19

query I rowsort
SELECT + 60 * - + 34
----
-2040

query I rowsort
SELECT 47 * - 64 + 55 AS col0
----
-2953

query I rowsort
SELECT ( + 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + ( - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4850
SELECT + ( - ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL - CAST( NULL AS SIGNED ) * + - 71 / + + 39 + - + 81 * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 71 / + + 39 + - + 81 * - + 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT - + ( + 49 ) * - + COUNT( * ) + 27 DIV 14
----
50

skipif mysql # not compatible
query I rowsort label-4852
SELECT - + ( + 49 ) * - + COUNT ( * ) + 27 / 14
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL - COUNT( * ) * MAX( + - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - COUNT ( * ) * MAX ( + - 55 )
----
55

query II rowsort
SELECT ALL + 22, - NULLIF ( + 73, 55 / - - ( 46 ) * - + 39 + + 21 ) AS col2
----
22
-73

query I rowsort
SELECT DISTINCT + 79 * - 9 AS col1
----
-711

query I rowsort
SELECT ALL + - 85 * + ( + 2 ) + - 24 * + 17
----
-578

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT + 67 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 67 / - 88
----
0

query II rowsort
SELECT 83, + 80 AS col1
----
83
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT - + MAX( DISTINCT - 33 ) + CASE - MIN( DISTINCT ( - + 21 ) ) WHEN 17 * 29 THEN NULL WHEN 57 * CASE + 15 WHEN + + 93 + + 98 THEN NULL ELSE + + CAST( NULL AS SIGNED ) * + + 12 END THEN CAST( NULL AS SIGNED ) + 39 ELSE - 84 END
----
-51

skipif mysql # not compatible
query I rowsort label-4859
SELECT - + MAX ( DISTINCT - 33 ) + CASE - MIN ( DISTINCT ( - + 21 ) ) WHEN 17 * 29 THEN NULL WHEN 57 * CASE + 15 WHEN + + 93 + + 98 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * + + 12 END THEN CAST ( NULL AS INTEGER ) + 39 ELSE - 84 END
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT - + 74 DIV ( COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-4860
SELECT - + 74 / ( COUNT ( * ) )
----
-74

query I rowsort
SELECT DISTINCT - 63 * - - 39
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + COUNT( * ) - 26 + - 50 + + + 8 * + 77
----
541

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + COUNT ( * ) - 26 + - 50 + + + 8 * + 77
----
541

query I rowsort
SELECT ALL - COALESCE ( - - 51, - + 71 + 38 + + 56, + 9 )
----
-51

query I rowsort
SELECT ALL - 45 * 74
----
-3330

query I rowsort
SELECT - 52 * 50
----
-2600

onlyif mysql # aggregate syntax: 
query II rowsort label-4866
SELECT - 96 - + MIN( - 21 ) AS col0, CASE - + 11 WHEN + - 8 THEN COUNT( * ) WHEN + 5 + - COUNT( * ) THEN NULL END AS col2
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-4866
SELECT - 96 - + MIN ( - 21 ) AS col0, CASE - + 11 WHEN + - 8 THEN COUNT ( * ) WHEN + 5 + - COUNT ( * ) THEN NULL END AS col2
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT - COUNT( - + 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4867
SELECT - COUNT ( - + 70 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL CAST( - 14 AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL CAST ( - 14 AS INTEGER ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT - NULLIF ( + - 75, + COUNT( * ) )
----
75

skipif mysql # not compatible
query I rowsort label-4869
SELECT - NULLIF ( + - 75, + COUNT ( * ) )
----
75

query I rowsort
SELECT + 33 + + - 30 * - 95 - 51 + 7
----
2839

query I rowsort
SELECT ALL + 51 + + 31 + + 99 AS col2
----
181

query I rowsort
SELECT 92 - - - 38 * + + 46 + 10 * + 61 AS col1
----
-1046

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT DISTINCT + 69 + 67 AS col2, + 70 * COUNT( * ) AS col0
----
136
70

skipif mysql # not compatible
query II rowsort label-4873
SELECT DISTINCT + 69 + 67 AS col2, + 70 * COUNT ( * ) AS col0
----
136
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT COUNT( * ) - + ( - 32 ) * - CAST( - 97 AS SIGNED ) AS col2
----
3105

skipif mysql # not compatible
query I rowsort label-4874
SELECT COUNT ( * ) - + ( - 32 ) * - CAST ( - 97 AS INTEGER ) AS col2
----
3105

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT ALL + MIN( DISTINCT - + NULLIF ( + 51, + + ( - + 94 ) ) ) + 53 * - 3 AS col0, + 97 - + + 58 + COALESCE ( + + 45, 67 * + 56, - - 9 * + 40 - 34 - + + 51 ) * + COUNT( * ) col0
----
-210
84

skipif mysql # not compatible
query II rowsort label-4875
SELECT ALL + MIN ( DISTINCT - + NULLIF ( + 51, + + ( - + 94 ) ) ) + 53 * - 3 AS col0, + 97 - + + 58 + COALESCE ( + + 45, 67 * + 56, - - 9 * + 40 - 34 - + + 51 ) * + COUNT ( * ) col0
----
-210
84

query I rowsort
SELECT ALL - 97 + + 8 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT 88 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-4877
SELECT 88 / + 46
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT + 37 DIV - SUM( DISTINCT - 88 ) * - + 69 - + ( + 4 ) + + NULLIF ( - 50, + NULLIF ( + 75, - + 28 ) * + + 41 - - 74 * - NULLIF ( + 61, - - 5 + + 10 ) + + 30 + + 35 + - COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-4878
SELECT + 37 / - SUM ( DISTINCT - 88 ) * - + 69 - + ( + 4 ) + + NULLIF ( - 50, + NULLIF ( + 75, - + 28 ) * + + 41 - - 74 * - NULLIF ( + 61, - - 5 + + 10 ) + + 30 + + 35 + - COUNT ( * ) ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 98 * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4879
SELECT 98 * COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4880
SELECT - 56 DIV 35 - + 14 + + + 21 AS col2, 84
----
6
84

skipif mysql # not compatible
query II rowsort label-4880
SELECT - 56 / 35 - + 14 + + + 21 AS col2, 84
----
6
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL COUNT( * ) * + + CASE - 50 WHEN 0 + - 20 THEN - + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL COUNT ( * ) * + + CASE - 50 WHEN 0 + - 20 THEN - + 74 END
----
NULL

query I rowsort
SELECT 23 * - 16 col1
----
-368

query I rowsort
SELECT DISTINCT - 16 + 83
----
67

query I rowsort
SELECT DISTINCT - 7 * + + 85
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL - - MIN( DISTINCT - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - - MIN ( DISTINCT - - 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT + MIN( - CAST( + - 80 AS SIGNED ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4886
SELECT + MIN ( - CAST ( + - 80 AS INTEGER ) ) AS col0
----
80

query I rowsort
SELECT + 51 + + 99 + + 20 * 62
----
1390

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + NULLIF ( - 18, + + COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-4888
SELECT + NULLIF ( - 18, + + COUNT ( * ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + 78 + - + COUNT( ALL + + 63 )
----
77

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 78 + - + COUNT ( ALL + + 63 )
----
77

query I rowsort
SELECT - 66 * 52 - - 85
----
-3347

query I rowsort
SELECT DISTINCT - 49 col1
----
-49

query I rowsort
SELECT ALL 31 * + 2 + 50
----
112

query I rowsort
SELECT - NULLIF ( + 6, 96 + - 80 + 74 + 90 * - 28 * + - 23 * 87 * + + 48 ) + + + 68 AS col1
----
62

query I rowsort
SELECT DISTINCT + ( + 93 )
----
93

query I rowsort
SELECT ALL 97 * + 5
----
485

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT + 37 DIV + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT + 37 / + 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT COUNT( DISTINCT - + 67 ) + - + 5
----
-4

skipif mysql # not compatible
query I rowsort label-4897
SELECT COUNT ( DISTINCT - + 67 ) + - + 5
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT + 50 - - ( 76 ) + 4 - + - CAST( NULL AS SIGNED ) * - 7 / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT + 50 - - ( 76 ) + 4 - + - CAST ( NULL AS INTEGER ) * - 7 / COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 94 + + 88 AS col1, - 59
----
182
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT 67 + 73 + - - MAX( 21 ) + - 43 * 0 * - 9 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-4900
SELECT 67 + 73 + - - MAX ( 21 ) + - 43 * 0 * - 9 AS col1
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT 8 DIV - 54 * 15
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT 8 / - 54 * 15
----
0

query I rowsort
SELECT 92 + 73 AS col2
----
165

query I rowsort
SELECT DISTINCT 44 + - 70
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT 3 + 6 * + COUNT( * ) + + + 38 - SUM( ALL - 0 ) * + 12 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT 3 + 6 * + COUNT ( * ) + + + 38 - SUM ( ALL - 0 ) * + 12 AS col2
----
47

query I rowsort
SELECT DISTINCT + 38 + + 50 col2
----
88

query I rowsort
SELECT 11 + 81 AS col0
----
92

query I rowsort
SELECT ALL + 65 + - 72
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT - NULLIF ( - 86, + 62 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - NULLIF ( - 86, + 62 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT 98 + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4909
SELECT 98 + COUNT ( * )
----
99

query I rowsort
SELECT 33 * + 59 AS col1
----
1947

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT - 83 * + + 43 + + 36 AS col0, MIN( - 28 ) AS col1
----
-3533
-28

skipif mysql # not compatible
query II rowsort label-4911
SELECT - 83 * + + 43 + + 36 AS col0, MIN ( - 28 ) AS col1
----
-3533
-28

query I rowsort
SELECT ALL - 20 + 32 AS col2
----
12

query I rowsort
SELECT 17 * - 71 * - - 81 AS col1
----
-97767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4914
SELECT - 51 DIV - 85 + + - MIN( - 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4914
SELECT - 51 / - 85 + + - MIN ( - 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT - MAX( ALL + 42 ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - MAX ( ALL + 42 ) col1
----
-42

query I rowsort
SELECT ALL 54 * - 72
----
-3888

query I rowsort
SELECT ALL - + ( NULLIF ( - 91, 59 ) )
----
91

query I rowsort
SELECT ALL - COALESCE ( - 92, 93 ) - - 59 AS col2
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT + CASE - 79 WHEN - 0 THEN + - CAST( NULL AS SIGNED ) ELSE + + 71 END
----
71

skipif mysql # not compatible
query I rowsort label-4919
SELECT + CASE - 79 WHEN - 0 THEN + - CAST ( NULL AS INTEGER ) ELSE + + 71 END
----
71

query I rowsort
SELECT + 18 * - 4 + + - 21 col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT - - COUNT( + + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT - - COUNT ( + + 70 )
----
1

query I rowsort
SELECT DISTINCT - + 84 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT MAX( DISTINCT + - 10 ) * + 28
----
-280

skipif mysql # not compatible
query I rowsort label-4923
SELECT MAX ( DISTINCT + - 10 ) * + 28
----
-280

query I rowsort
SELECT DISTINCT + 96 * - 21
----
-2016

query I rowsort
SELECT ALL 2 * 88 AS col0
----
176

query II rowsort
SELECT ALL - 46, + 65 AS col2
----
-46
65

query I rowsort
SELECT ALL + 69 * + - 52 AS col2
----
-3588

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT + + 20 AS col1, COUNT( * ) + 27
----
20
28

skipif mysql # not compatible
query II rowsort label-4928
SELECT + + 20 AS col1, COUNT ( * ) + 27
----
20
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT DISTINCT - COUNT( + + 64 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT - COUNT ( + + 64 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT DISTINCT - - CAST( 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - - CAST ( 29 AS INTEGER ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT - 35 + + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4931
SELECT - 35 + + COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT ALL ( + 38 ) col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - COUNT( ALL 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-4933
SELECT - COUNT ( ALL 84 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - 63 * + 8 + + 8 DIV + - 29
----
-504

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 63 * + 8 + + 8 / + - 29
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + 92 * + - COUNT( * ) * - + 70 - - - ( 25 )
----
6415

skipif mysql # not compatible
query I rowsort label-4935
SELECT + 92 * + - COUNT ( * ) * - + 70 - - - ( 25 )
----
6415

query I rowsort
SELECT + 62 * + - 13 col1
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL 31 + + + 16 + - ( + SUM( ALL + - 94 ) ) * - - ( - - 74 ) AS col1
----
7003

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL 31 + + + 16 + - ( + SUM ( ALL + - 94 ) ) * - - ( - - 74 ) AS col1
----
7003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT - NULLIF ( - NULLIF ( + 55, + CASE - 46 WHEN - 25 * - + 74 THEN + CAST( NULL AS SIGNED ) ELSE NULL END * 35 ), + - 70 * 76 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - NULLIF ( - NULLIF ( + 55, + CASE - 46 WHEN - 25 * - + 74 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END * 35 ), + - 70 * 76 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + + + 32 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + + + 32 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT 44 * 10 * + - COUNT( * ) * - + COUNT( * ) * - 25
----
-11000

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT 44 * 10 * + - COUNT ( * ) * - + COUNT ( * ) * - 25
----
-11000

query I rowsort
SELECT + 56 * 44 col0
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL 62 + - - 11 + 71 * COUNT( * ) * + 1 * + COALESCE ( + 74, + 27 + - SUM( ALL - - 3 ) )
----
5327

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL 62 + - - 11 + 71 * COUNT ( * ) * + 1 * + COALESCE ( + 74, + 27 + - SUM ( ALL - - 3 ) )
----
5327

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - CASE + + ( - - COUNT( * ) ) WHEN MAX( DISTINCT + 42 ) THEN NULL WHEN + 15 - - ( - 37 ) * + + 79 / - + 93 THEN + 43 * - 88 + + 30 / + 59 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT - CASE + + ( - - COUNT ( * ) ) WHEN MAX ( DISTINCT + 42 ) THEN NULL WHEN + 15 - - ( - 37 ) * + + 79 / - + 93 THEN + 43 * - 88 + + 30 / + 59 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 78 ) + - 58 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4945
SELECT + 44 - - - MIN( DISTINCT 45 ) - 79 * - + ( 56 ) + + - 55 / + CAST( NULL AS DECIMAL ) + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 44 - - - MIN ( DISTINCT 45 ) - 79 * - + ( 56 ) + + - 55 / + CAST ( NULL AS REAL ) + - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT + CAST( NULL AS SIGNED ) + - + 61 - + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT + CAST ( NULL AS INTEGER ) + - + 61 - + - 99 AS col1
----
NULL

query I rowsort
SELECT - 26 * - - 31 AS col1
----
-806

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT + 96 + 46 DIV 46
----
97

skipif mysql # not compatible
query I rowsort label-4948
SELECT + 96 + 46 / 46
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4949
SELECT - CASE - 11 WHEN + 38 * 67 THEN + CAST( NULL AS SIGNED ) WHEN - 79 THEN 57 + 53 ELSE + - 89 * + COUNT( * ) END DIV 97 - + - 40 * - 79 AS col2
----
-3160

skipif mysql # not compatible
query I rowsort label-4949
SELECT - CASE - 11 WHEN + 38 * 67 THEN + CAST ( NULL AS INTEGER ) WHEN - 79 THEN 57 + 53 ELSE + - 89 * + COUNT ( * ) END / 97 - + - 40 * - 79 AS col2
----
-3160

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT ALL + ( - - 71 ) - 32 DIV - 4
----
79

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + ( - - 71 ) - 32 / - 4
----
79

query I rowsort
SELECT + 90 * - + 61 AS col1
----
-5490

query I rowsort
SELECT + 66 - - - 78
----
-12

query I rowsort
SELECT ALL - 20 * - + 19 - 74
----
306

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT + 8, 35 + + 27 + - + 30 + + NULLIF ( - 86, COUNT( * ) + + COUNT( * ) + + 66 ) * + 68 AS col0
----
8
-5816

skipif mysql # not compatible
query II rowsort label-4954
SELECT + 8, 35 + + 27 + - + 30 + + NULLIF ( - 86, COUNT ( * ) + + COUNT ( * ) + + 66 ) * + 68 AS col0
----
8
-5816

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL + MAX( DISTINCT + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL + MAX ( DISTINCT + 14 )
----
14

query I rowsort
SELECT + 30 * 76 AS col1
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT - COUNT( * ) * + ( 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4957
SELECT - COUNT ( * ) * + ( 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + CASE - 81 WHEN - - 69 THEN - COALESCE ( - - 61, 16, + 88 + + - 57 ) * - 19 + 98 + MIN( 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + CASE - 81 WHEN - - 69 THEN - COALESCE ( - - 61, 16, + 88 + + - 57 ) * - 19 + 98 + MIN ( 2 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT 70 DIV - ( + COALESCE ( COUNT( * ), + 33 DIV - + COUNT( DISTINCT + ( + 86 ) ) ) ) + + COUNT( * ) + - 30 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4959
SELECT 70 / - ( + COALESCE ( COUNT ( * ), + 33 / - + COUNT ( DISTINCT + ( + 86 ) ) ) ) + + COUNT ( * ) + - 30 AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT ALL + + CASE + MAX( DISTINCT 14 ) WHEN 30 + 85 * + - 34 * - 8 * 10 THEN 63 WHEN 98 THEN - 20 * - 16 WHEN - CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 81 ) THEN - + 3 ELSE + COUNT( * ) * - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + + CASE + MAX ( DISTINCT 14 ) WHEN 30 + 85 * + - 34 * - 8 * 10 THEN 63 WHEN 98 THEN - 20 * - 16 WHEN - CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 81 ) THEN - + 3 ELSE + COUNT ( * ) * - COUNT ( * ) END AS col0
----
-1

query I rowsort
SELECT - 47 * - + NULLIF ( 88, - + 6 ) col2
----
4136

query I rowsort
SELECT - 16 * - - 76
----
-1216

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT - - 62 - 21 + + - 20 DIV 23 + + + 22 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4963
SELECT - - 62 - 21 + + - 20 / 23 + + + 22 AS col1
----
63

query I rowsort
SELECT DISTINCT + 56 * - 63 col0
----
-3528

query I rowsort
SELECT ALL + + 30 AS col1
----
30

query II rowsort
SELECT + + 4 AS col1, + 96
----
4
96

query I rowsort
SELECT DISTINCT + - 48 AS col2
----
-48

query II rowsort
SELECT DISTINCT + 7, + COALESCE ( 82, + 37 ) AS col1
----
7
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT ALL + + CAST( 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + + CAST ( 6 AS INTEGER ) AS col0
----
6

query I rowsort
SELECT DISTINCT - ( 96 ) * + 92 + - 98 AS col0
----
-8930

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - 36 + + + MAX( ALL 3 )
----
-33

skipif mysql # not compatible
query I rowsort label-4971
SELECT - 36 + + + MAX ( ALL 3 )
----
-33

query I rowsort
SELECT + ( 28 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4973
SELECT - + 63 DIV 5 * + 60
----
-720

skipif mysql # not compatible
query I rowsort label-4973
SELECT - + 63 / 5 * + 60
----
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + 11 * + 64 + - 11 + + - ( - - COUNT( * ) ) AS col1
----
692

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + 11 * + 64 + - 11 + + - ( - - COUNT ( * ) ) AS col1
----
692

query I rowsort
SELECT - 49 + + + 60
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-4976
SELECT - 84 AS col0, 84 DIV + 17
----
-84
4

skipif mysql # not compatible
query II rowsort label-4976
SELECT - 84 AS col0, 84 / + 17
----
-84
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT + + 46 * - + COUNT( * ) + + ( 79 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4977
SELECT + + 46 * - + COUNT ( * ) + + ( 79 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL 15 * 4 * - 94 + + 25 + - COUNT( * )
----
-5616

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 15 * 4 * - 94 + + 25 + - COUNT ( * )
----
-5616

query II rowsort
SELECT + ( + - 37 ), 33 AS col0
----
-37
33

query I rowsort
SELECT - 76 + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT ALL - CASE - - 81 WHEN + CAST( - 69 AS SIGNED ) THEN NULL ELSE 65 END * 73
----
-4745

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - CASE - - 81 WHEN + CAST ( - 69 AS INTEGER ) THEN NULL ELSE 65 END * 73
----
-4745

query II rowsort
SELECT DISTINCT + + 25 AS col1, - 58
----
25
-58

query I rowsort
SELECT ALL + 96 * - - 47 + - + ( 36 ) - + 35
----
4441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4985
SELECT ALL AVG ( DISTINCT + 78 ) * CAST( - 9 AS SIGNED ) * + 26 * + ( 89 ) + - CASE 18 WHEN - 55 THEN + CASE + NULLIF ( - + 88, + + 14 * + 15 + + 88 ) WHEN 42 THEN + 49 * - 96 ELSE - + COALESCE ( - - ( - 29 ), + - 32 * + 89 - + COUNT( * ) * - 40 ) * + 61 END END * + 5 * + 98 + - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL AVG ( DISTINCT + 78 ) * CAST ( - 9 AS INTEGER ) * + 26 * + ( 89 ) + - CASE 18 WHEN - 55 THEN + CASE + NULLIF ( - + 88, + + 14 * + 15 + + 88 ) WHEN 42 THEN + 49 * - 96 ELSE - + COALESCE ( - - ( - 29 ), + - 32 * + 89 - + COUNT ( * ) * - 40 ) * + 61 END END * + 5 * + 98 + - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT DISTINCT + 10 * - 17 * + - MIN( 91 ) * - 81 col1, 75 * - 94 AS col2
----
-1253070
-7050

skipif mysql # not compatible
query II rowsort label-4986
SELECT DISTINCT + 10 * - 17 * + - MIN ( 91 ) * - 81 col1, 75 * - 94 AS col2
----
-1253070
-7050

onlyif mysql # DIV for integer division: 
query II rowsort label-4987
SELECT - 88 * + - 39 + - COALESCE ( 71, + + 53 ) AS col0, 9 + - - ( + + 70 ) DIV - - NULLIF ( + 52, + 90 * - 30 * - 2 ) col0
----
3361
10

skipif mysql # not compatible
query II rowsort label-4987
SELECT - 88 * + - 39 + - COALESCE ( 71, + + 53 ) AS col0, 9 + - - ( + + 70 ) / - - NULLIF ( + 52, + 90 * - 30 * - 2 ) col0
----
3361
10

query I rowsort
SELECT - ( + 80 ) * + 80
----
-6400

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - CASE 4 WHEN - 9 THEN - - ( NULLIF ( - 13, 25 ) ) * + ( - 81 ) WHEN - NULLIF ( + SUM( + 14 ), - + 42 ) + + - COUNT( * ) THEN + MAX( ALL - 40 ) + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT - CASE 4 WHEN - 9 THEN - - ( NULLIF ( - 13, 25 ) ) * + ( - 81 ) WHEN - NULLIF ( + SUM ( + 14 ), - + 42 ) + + - COUNT ( * ) THEN + MAX ( ALL - 40 ) + 34 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4990
SELECT ALL CAST( - 83 AS SIGNED ), - COUNT( * ) DIV - + 85 AS col0
----
-83
0

skipif mysql # not compatible
query II rowsort label-4990
SELECT ALL CAST ( - 83 AS INTEGER ), - COUNT ( * ) / - + 85 AS col0
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - 20 + COUNT( + 93 )
----
-19

skipif mysql # not compatible
query I rowsort label-4991
SELECT - 20 + COUNT ( + 93 )
----
-19

query I rowsort
SELECT ALL 81 col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL ( 32 ) - - 83 + - + 42 / 49 * - - CASE + + CAST( 29 AS SIGNED ) WHEN + - 4 THEN + - 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL ( 32 ) - - 83 + - + 42 / 49 * - - CASE + + CAST ( 29 AS INTEGER ) WHEN + - 4 THEN + - 70 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT + 78 + + MAX( - + 69 ) + - - 27 + - 37 AS col1, - 31 AS col1
----
-1
-31

skipif mysql # not compatible
query II rowsort label-4994
SELECT + 78 + + MAX ( - + 69 ) + - - 27 + - 37 AS col1, - 31 AS col1
----
-1
-31

query I rowsort
SELECT DISTINCT - 21 - + 46 - - - 62 + + - ( - + 83 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT DISTINCT ( + MAX( ALL + 70 ) ) * - ( 60 )
----
-4200

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT ( + MAX ( ALL + 70 ) ) * - ( 60 )
----
-4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT + 30 DIV MIN( + + 98 ) * 22 + + - 30 + - SUM( + 88 ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-4997
SELECT + 30 / MIN ( + + 98 ) * 22 + + - 30 + - SUM ( + 88 ) AS col0
----
-118

query I rowsort
SELECT ALL 42 * + ( - 53 ) col1
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + 48 + MAX( - - 17 ) * - 34 - - + ( 43 ) AS col2
----
-487

skipif mysql # not compatible
query I rowsort label-4999
SELECT + 48 + MAX ( - - 17 ) * - 34 - - + ( 43 ) AS col2
----
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + COUNT( * ) * 83 * COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5000
SELECT + COUNT ( * ) * 83 * COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5001
SELECT + + 7 DIV - COUNT( * ) col2, + 15 * - 51 col2
----
-7
-765

skipif mysql # not compatible
query II rowsort label-5001
SELECT + + 7 / - COUNT ( * ) col2, + 15 * - 51 col2
----
-7
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT - + 2 * + CAST( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT - + 2 * + CAST ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT + + 36 DIV - 61 + + + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5003
SELECT + + 36 / - 61 + + + 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + SUM( DISTINCT + - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5004
SELECT + SUM ( DISTINCT + - 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - + CASE + COALESCE ( + 92, - - CAST( NULL AS SIGNED ) - - CAST( 24 AS SIGNED ) * + 34 ) WHEN 6 THEN 36 * - 74 + + - 94 * + + 44 ELSE 75 END * + ( 22 ) * - 34 * + MIN( - + 92 ) AS col2
----
-5161200

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - + CASE + COALESCE ( + 92, - - CAST ( NULL AS INTEGER ) - - CAST ( 24 AS INTEGER ) * + 34 ) WHEN 6 THEN 36 * - 74 + + - 94 * + + 44 ELSE 75 END * + ( 22 ) * - 34 * + MIN ( - + 92 ) AS col2
----
-5161200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5006
SELECT + 67 + - CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5006
SELECT + 67 + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT ALL 63 DIV - - 25 + + 99 * - - COUNT( * ) col2
----
101

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL 63 / - - 25 + + 99 * - - COUNT ( * ) col2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT + + NULLIF ( + - 24, - 1 * + 54 * - 83 / 5 / 65 * + + CASE - 42 WHEN 46 * 47 THEN + 53 / + COALESCE ( 5, 7, COUNT( * ), - 96 * - 84 * COALESCE ( - 95, + - COUNT( DISTINCT - + 81 ) ) ) * - COUNT( * ) + ( - + CAST( - ( + - AVG ( + ( 19 ) ) ) AS SIGNED ) ) + - + 69 + - 86 + 61 * - 5 - 65 + + 93 + - ( + 79 ) / - MAX( - COALESCE ( 41, - 92, - + 82 ) ) + 85 - - + COUNT( * ) + COUNT( * ) WHEN - 39 + - 4 THEN NULL WHEN - 87 * + 0 THEN 88 END ) * - 37 + 18
----
906

skipif mysql # not compatible
query I rowsort label-5008
SELECT + + NULLIF ( + - 24, - 1 * + 54 * - 83 / 5 / 65 * + + CASE - 42 WHEN 46 * 47 THEN + 53 / + COALESCE ( 5, 7, COUNT ( * ), - 96 * - 84 * COALESCE ( - 95, + - COUNT ( DISTINCT - + 81 ) ) ) * - COUNT ( * ) + ( - + CAST ( - ( + - AVG ( + ( 19 ) ) ) AS INTEGER ) ) + - + 69 + - 86 + 61 * - 5 - 65 + + 93 + - ( + 79 ) / - MAX ( - COALESCE ( 41, - 92, - + 82 ) ) + 85 - - + COUNT ( * ) + COUNT ( * ) WHEN - 39 + - 4 THEN NULL WHEN - 87 * + 0 THEN 88 END ) * - 37 + 18
----
906

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT - 44 * + - CASE - 48 WHEN + - 76 * - - 77 * - 89 + 8 THEN + + 42 WHEN MAX( DISTINCT 33 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT - 44 * + - CASE - 48 WHEN + - 76 * - - 77 * - 89 + 8 THEN + + 42 WHEN MAX ( DISTINCT 33 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT + + 6 * + ( + COUNT( * ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5010
SELECT + + 6 * + ( + COUNT ( * ) ) AS col0
----
6

query I rowsort
SELECT - - 35 / 78 + + CASE + 24 WHEN - + 77 - - 95 THEN + + 37 END
----
NULL

query I rowsort
SELECT ALL - 45 + 29
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 52 * - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5013
SELECT 52 * - - COUNT ( * )
----
52

query I rowsort
SELECT ALL 53 + ( - 72 ) + - 11 + + 1 + + 81 AS col1
----
52

query I rowsort
SELECT DISTINCT - + 50 + + 79
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT - + CASE - - 48 WHEN 3 THEN - + 21 + - CAST( - CASE NULLIF ( - CAST( NULL AS SIGNED ), - 93 ) WHEN + - 84 THEN NULLIF ( 17, + MIN( ALL - 87 ) ) WHEN + 31 + + 84 THEN - 32 * - 33 * - 4 + 2 * + COALESCE ( + - 36, - 36 + - + CAST( - 79 AS SIGNED ) / - 7 / + + 20, 24 * - 63 * - - 5 ) + - 26 ELSE NULL END AS SIGNED ) * COUNT( * ) + - 12 + + COUNT( * ) + + - 25 / - 97 * + 19 * + - 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - + CASE - - 48 WHEN 3 THEN - + 21 + - CAST ( - CASE NULLIF ( - CAST ( NULL AS INTEGER ), - 93 ) WHEN + - 84 THEN NULLIF ( 17, + MIN ( ALL - 87 ) ) WHEN + 31 + + 84 THEN - 32 * - 33 * - 4 + 2 * + COALESCE ( + - 36, - 36 + - + CAST ( - 79 AS INTEGER ) / - 7 / + + 20, 24 * - 63 * - - 5 ) + - 26 ELSE NULL END AS INTEGER ) * COUNT ( * ) + - 12 + + COUNT ( * ) + + - 25 / - 97 * + 19 * + - 33 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5017
SELECT DISTINCT - COUNT( * ) AS col0, 36 * + 99 * + 63 AS col0
----
-1
224532

skipif mysql # not compatible
query II rowsort label-5017
SELECT DISTINCT - COUNT ( * ) AS col0, 36 * + 99 * + 63 AS col0
----
-1
224532

query I rowsort
SELECT 82 * 77 AS col1
----
6314

query I rowsort
SELECT 17 * + + 19
----
323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT - SUM( ALL + 45 ) DIV - - 58 * + ( + 56 ) * + + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT - SUM ( ALL + 45 ) / - - 58 * + ( + 56 ) * + + 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5021
SELECT 5 AS col2, + CAST( NULL AS SIGNED ) * ( - 76 ) * + 90 AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-5021
SELECT 5 AS col2, + CAST ( NULL AS INTEGER ) * ( - 76 ) * + 90 AS col0
----
5
NULL

query II rowsort
SELECT DISTINCT 76 AS col0, 79 + + 52 AS col2
----
76
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT 7 * MIN( - CAST( NULL AS SIGNED ) ) * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT 7 * MIN ( - CAST ( NULL AS INTEGER ) ) * - 78 AS col0
----
NULL

query I rowsort
SELECT 17 - - - 92
----
-75

query I rowsort
SELECT ALL + 61 * + 2 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL - NULLIF ( + 20, + 1 ) * - SUM( 38 )
----
760

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL - NULLIF ( + 20, + 1 ) * - SUM ( 38 )
----
760

query I rowsort
SELECT 33 * + 8 AS col2
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT DISTINCT 96 DIV + + 78
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT 96 / + + 78
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT COALESCE ( - + 30, - ( - 89 ) ) * + + MAX( 46 ) AS col2, + CASE - 67 WHEN - - 91 THEN NULL WHEN - COALESCE ( 51, - + 91 + - 24 ) * + 89 + + + 36 THEN - + 70 ELSE COALESCE ( COUNT( * ), - 27 * 46 + + 91 * - 8 * + 85 ) END
----
-1380
1

skipif mysql # not compatible
query II rowsort label-5029
SELECT COALESCE ( - + 30, - ( - 89 ) ) * + + MAX ( 46 ) AS col2, + CASE - 67 WHEN - - 91 THEN NULL WHEN - COALESCE ( 51, - + 91 + - 24 ) * + 89 + + + 36 THEN - + 70 ELSE COALESCE ( COUNT ( * ), - 27 * 46 + + 91 * - 8 * + 85 ) END
----
-1380
1

query I rowsort
SELECT 16 + 11 AS col0
----
27

query I rowsort
SELECT 26 + 15
----
41

query I rowsort
SELECT 32 * 68 AS col0
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT 68 + + + 77 + 72 * COUNT( * ) AS col2
----
217

skipif mysql # not compatible
query I rowsort label-5033
SELECT 68 + + + 77 + 72 * COUNT ( * ) AS col2
----
217

query II rowsort
SELECT ALL 59, 89 AS col2
----
59
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5035
SELECT - 61 AS col0, - 75 DIV + - COALESCE ( + - 39, - - 48 ) AS col1
----
-61
-1

skipif mysql # not compatible
query II rowsort label-5035
SELECT - 61 AS col0, - 75 / + - COALESCE ( + - 39, - - 48 ) AS col1
----
-61
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT - + CAST( - 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-5036
SELECT - + CAST ( - 77 AS INTEGER )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - 38 * - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 38 * - COUNT ( * ) AS col0
----
38

query II rowsort
SELECT ALL + 85, + 88 AS col2
----
85
88

query I rowsort
SELECT + 4 - - 63
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - SUM( ALL + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5040
SELECT - SUM ( ALL + 18 )
----
-18

query I rowsort
SELECT ALL + 15 + - + 30 + + 30 AS col0
----
15

query I rowsort
SELECT DISTINCT 52 + NULLIF ( 20, CASE 33 WHEN - 71 THEN + - 60 ELSE NULL END ) * + + CASE 89 WHEN + - 73 THEN - + 15 + 22 * + 9 WHEN + - 74 * + 88 * - 91 + - + 1 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 67 + - + NULLIF ( 17, + - 61 ) + 13
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5044
SELECT MAX( 92 ) DIV - + 59
----
-1

skipif mysql # not compatible
query I rowsort label-5044
SELECT MAX ( 92 ) / - + 59
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5045
SELECT + ( + NULLIF ( + - CAST( + 71 AS SIGNED ), 87 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-5045
SELECT + ( + NULLIF ( + - CAST ( + 71 AS INTEGER ), 87 ) )
----
-71

query I rowsort
SELECT DISTINCT - 96 + - 35 * - + 84
----
2844

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT MIN( DISTINCT 12 ) * - 20, - 85 * + + 77 AS col0
----
-240
-6545

skipif mysql # not compatible
query II rowsort label-5047
SELECT MIN ( DISTINCT 12 ) * - 20, - 85 * + + 77 AS col0
----
-240
-6545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT ALL CASE - - 65 WHEN + 12 * - CAST( NULL AS SIGNED ) + + - 23 * 65 THEN 95 WHEN + 95 + + + 36 + + 38 THEN + - 82 END / 26 - ( - 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL CASE - - 65 WHEN + 12 * - CAST ( NULL AS INTEGER ) + + - 23 * 65 THEN 95 WHEN + 95 + + + 36 + + 38 THEN + - 82 END / 26 - ( - 66 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT 21 DIV + - 31
----
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT 21 / + - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL COALESCE ( CASE - COALESCE ( + + COUNT( * ), + - 46, + - 69, 14 ) WHEN - 92 * + 84 + CAST( NULL AS SIGNED ) THEN NULL WHEN + 95 THEN NULL ELSE + + ( 32 ) + + 9 END, 48 ) + - NULLIF ( - + 3, - 78 / 16 + + + ( 9 ) * 30 )
----
44

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL COALESCE ( CASE - COALESCE ( + + COUNT ( * ), + - 46, + - 69, 14 ) WHEN - 92 * + 84 + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 95 THEN NULL ELSE + + ( 32 ) + + 9 END, 48 ) + - NULLIF ( - + 3, - 78 / 16 + + + ( 9 ) * 30 )
----
44

query I rowsort
SELECT DISTINCT + 41 + - NULLIF ( + 72, 6 )
----
-31

query I rowsort
SELECT ALL - 83 + - + 68
----
-151

onlyif mysql # DIV for integer division: 
query II rowsort label-5053
SELECT DISTINCT - + 59 AS col2, - NULLIF ( + 74, - 12 ) * - + 75 * 65 - 60 + - 59 DIV - + 3 AS col1
----
-59
360709

skipif mysql # not compatible
query II rowsort label-5053
SELECT DISTINCT - + 59 AS col2, - NULLIF ( + 74, - 12 ) * - + 75 * 65 - 60 + - 59 / - + 3 AS col1
----
-59
360709

query I rowsort
SELECT 27 - + + 89
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5055
SELECT ALL 33 * + - COALESCE ( + - 3, 90 DIV + 44 )
----
99

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL 33 * + - COALESCE ( + - 3, 90 / + 44 )
----
99

query I rowsort
SELECT ALL + 2 - - - 64
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT 10 + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5057
SELECT 10 + - COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 26 + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5058
SELECT 26 + - COUNT ( * )
----
25

query I rowsort
SELECT 36 + + 44 + 98
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT 42 * + COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5060
SELECT 42 * + COUNT ( * ) AS col0
----
42

query I rowsort
SELECT 45 + 55 AS col0
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT ALL - 12 DIV + 3
----
-4

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - 12 / + 3
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT 32 DIV - 13 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5063
SELECT 32 / - 13 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT 71 + COUNT( * ) + - - AVG ( ALL + + 85 ) / - 68 + - 36 + + + CASE 64 WHEN + COUNT( * ) + - 41 * - 58 + - 57 + - COUNT( * ) * - 84 THEN NULL WHEN + ( + 78 ) * 19 THEN NULL WHEN - SUM( DISTINCT - 59 ) THEN - - 98 END * + 31 * + - 7 + + ( - - ( 61 ) ) / + 21 * + 10 AS col2, - 62 AS col0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-5064
SELECT 71 + COUNT ( * ) + - - AVG ( ALL + + 85 ) / - 68 + - 36 + + + CASE 64 WHEN + COUNT ( * ) + - 41 * - 58 + - 57 + - COUNT ( * ) * - 84 THEN NULL WHEN + ( + 78 ) * 19 THEN NULL WHEN - SUM ( DISTINCT - 59 ) THEN - - 98 END * + 31 * + - 7 + + ( - - ( 61 ) ) / + 21 * + 10 AS col2, - 62 AS col0
----
NULL
-62

query I rowsort
SELECT DISTINCT + 85 * + 74
----
6290

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL - 13 + + SUM( DISTINCT + 0 )
----
-13

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL - 13 + + SUM ( DISTINCT + 0 )
----
-13

query II rowsort
SELECT 56 * 95 col2, + 34 * - - 61 AS col0
----
5320
2074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5068
SELECT ALL + COUNT( * ) DIV - 86 - - 8
----
8

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL + COUNT ( * ) / - 86 - - 8
----
8

query I rowsort
SELECT ALL + - 96 + 9 * - 63 * + - 76
----
42996

query I rowsort
SELECT ALL - - 34 + + - 97 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT - - 84 + + - 29 - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - - 84 + + - 29 - - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT + - 0 + + COUNT( * ) * ( + + 16 ) DIV + 8
----
2

skipif mysql # not compatible
query I rowsort label-5072
SELECT + - 0 + + COUNT ( * ) * ( + + 16 ) / + 8
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5073
SELECT DISTINCT + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT + + 98 DIV + 53 + SUM( ALL + ( + 6 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5074
SELECT + + 98 / + 53 + SUM ( ALL + ( + 6 ) )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT ALL - - 42 DIV COUNT( * ) * - 43
----
-1806

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - - 42 / COUNT ( * ) * - 43
----
-1806

query I rowsort
SELECT ALL + + 9 AS col1
----
9

query I rowsort
SELECT + ( - + 80 ) AS col1
----
-80

query I rowsort
SELECT - 12 * ( - 9 ) + + + 6 AS col0
----
114

query II rowsort
SELECT + + 74 * + 59, 13 AS col2
----
4366
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT CASE 1 WHEN + - 87 - CAST( NULL AS SIGNED ) * - - 96 THEN COUNT( ALL 28 ) + + - COALESCE ( + - 62, - 90, + 49 + + - CAST( 92 AS SIGNED ) * 29 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT CASE 1 WHEN + - 87 - CAST ( NULL AS INTEGER ) * - - 96 THEN COUNT ( ALL 28 ) + + - COALESCE ( + - 62, - 90, + 49 + + - CAST ( 92 AS INTEGER ) * 29 ) END AS col1
----
NULL

query I rowsort
SELECT + 3 + - ( + 6 ) AS col1
----
-3

query I rowsort
SELECT + 74 * - - 33 AS col0
----
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT MAX( - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-5083
SELECT MAX ( - 93 ) AS col0
----
-93

query I rowsort
SELECT + NULLIF ( - 66, + 35 * - 41 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT + COUNT( * ) * MAX( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5085
SELECT + COUNT ( * ) * MAX ( ALL - 65 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5086
SELECT + MAX( + + 54 ) DIV - - 3, ( COALESCE ( - 4, - 45 + - 87 ) ) col1
----
18
-4

skipif mysql # not compatible
query II rowsort label-5086
SELECT + MAX ( + + 54 ) / - - 3, ( COALESCE ( - 4, - 45 + - 87 ) ) col1
----
18
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT DISTINCT ( - 24 ) DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT ( - 24 ) / 66
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT 8 * - COALESCE ( 80, - + 59 DIV - 2 ) - 51 * + + 9 - ( + 89 ) AS col2
----
-1188

skipif mysql # not compatible
query I rowsort label-5088
SELECT 8 * - COALESCE ( 80, - + 59 / - 2 ) - 51 * + + 9 - ( + 89 ) AS col2
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT COUNT( + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-5089
SELECT COUNT ( + 95 )
----
1

query II rowsort
SELECT ALL 92 AS col0, - 69
----
92
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT + 84 * - - COALESCE ( + 58, + - 91 DIV + 91 * + ( 35 ) + - 55 * 95 + - 34 - 0 )
----
4872

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 84 * - - COALESCE ( + 58, + - 91 / + 91 * + ( 35 ) + - 55 * 95 + - 34 - 0 )
----
4872

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT COUNT( * ), + 39 AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-5092
SELECT COUNT ( * ), + 39 AS col1
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT MIN( + + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5093
SELECT MIN ( + + 69 )
----
69

query I rowsort
SELECT - ( - + 27 )
----
27

query I rowsort
SELECT ALL - 45 + - 49 AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5096
SELECT + 77 - - ( ( - CASE - 68 WHEN + COUNT( * ) DIV ( - - ( - 55 ) ) + + 48 THEN - 90 * CAST( - - COUNT( * ) AS SIGNED ) WHEN - - 13 THEN + + NULLIF ( - ( 41 ), - 55 ) * + NULLIF ( COALESCE ( - 93, + 34, + + 12 * + - 73, + 37 * + 16 DIV - 65 + + 75 ), + AVG ( 73 ) - - 73 + - 12 DIV 91 ) WHEN - + 73 + MAX( ALL 63 ) THEN NULL ELSE 88 END ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5096
SELECT + 77 - - ( ( - CASE - 68 WHEN + COUNT ( * ) / ( - - ( - 55 ) ) + + 48 THEN - 90 * CAST ( - - COUNT ( * ) AS INTEGER ) WHEN - - 13 THEN + + NULLIF ( - ( 41 ), - 55 ) * + NULLIF ( COALESCE ( - 93, + 34, + + 12 * + - 73, + 37 * + 16 / - 65 + + 75 ), + AVG ( 73 ) - - 73 + - 12 / 91 ) WHEN - + 73 + MAX ( ALL 63 ) THEN NULL ELSE 88 END ) ) AS col0
----
-11

query I rowsort
SELECT ALL + 81 + 68
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT + MIN( ALL 26 ) * 50 AS col1
----
1300

skipif mysql # not compatible
query I rowsort label-5098
SELECT + MIN ( ALL 26 ) * 50 AS col1
----
1300

query I rowsort
SELECT DISTINCT 77 + + + ( 63 ) AS col2
----
140

query I rowsort
SELECT ALL NULLIF ( + 18, - 20 * 94 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + COUNT( * ) + + 19 * 55
----
1046

skipif mysql # not compatible
query I rowsort label-5101
SELECT + COUNT ( * ) + + 19 * 55
----
1046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT - ( + ( - CAST( - CASE 64 WHEN 62 THEN NULL WHEN 99 + 77 THEN ( - 15 ) / 58 ELSE NULL END AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - ( + ( - CAST ( - CASE 64 WHEN 62 THEN NULL WHEN 99 + 77 THEN ( - 15 ) / 58 ELSE NULL END AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT + 94 + - 20 DIV 30 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5103
SELECT + 94 + - 20 / 30 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - 0 - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5104
SELECT - 0 - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL NULLIF ( CAST( 14 AS SIGNED ), 45 )
----
14

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL NULLIF ( CAST ( 14 AS INTEGER ), 45 )
----
14

query I rowsort
SELECT DISTINCT + 55 * + 41
----
2255

query I rowsort
SELECT - 76 * - ( 65 ) AS col0
----
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL + COALESCE ( COALESCE ( 52, - 94 ), ( CAST( MAX( - 84 ) AS SIGNED ) ) ) * - 51 col0
----
-2652

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + COALESCE ( COALESCE ( 52, - 94 ), ( CAST ( MAX ( - 84 ) AS INTEGER ) ) ) * - 51 col0
----
-2652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5109
SELECT ALL - MAX( 33 ) - CAST( + 82 - 11 / + 79 AS SIGNED )
----
-115

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL - MAX ( 33 ) - CAST ( + 82 - 11 / + 79 AS INTEGER )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT DISTINCT + 19 - - 78 * ( ( - COUNT( ALL 3 ) ) * 84 )
----
-6533

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + 19 - - 78 * ( ( - COUNT ( ALL 3 ) ) * 84 )
----
-6533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT - CAST( NULL AS SIGNED ) + 45 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - CAST ( NULL AS INTEGER ) + 45 / COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 38 * 19
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - COUNT( * ) - 67 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5113
SELECT - COUNT ( * ) - 67 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + MIN( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + MIN ( ALL 27 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT - 76 DIV + ( 66 ) - 92 col0
----
-93

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - 76 / + ( 66 ) - 92 col0
----
-93

query I rowsort
SELECT DISTINCT + ( ( + 34 ) )
----
34

query I rowsort
SELECT - 91 - - 93
----
2

query I rowsort
SELECT - 50 * - 56 AS col1
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT DISTINCT ( COUNT( - 92 ) ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT ( COUNT ( - 92 ) ) * 74
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT + ( ( 80 ) ) DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + ( ( 80 ) ) / 73
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT - 14 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT - 14 / + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - 32 + - COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 32 + - COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT + 34 * + 5 - COUNT( * )
----
169

skipif mysql # not compatible
query I rowsort label-5123
SELECT + 34 * + 5 - COUNT ( * )
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT + COUNT( * ) * 71 col2
----
71

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + COUNT ( * ) * 71 col2
----
71

query I rowsort
SELECT 12 * 45 + + 12
----
552

query I rowsort
SELECT + 14 - 10
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - COUNT( * ) * - 38 + - 17 * 47 AS col1
----
-761

skipif mysql # not compatible
query I rowsort label-5127
SELECT - COUNT ( * ) * - 38 + - 17 * 47 AS col1
----
-761

query I rowsort
SELECT + ( 13 ) * - 77
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT + CASE 59 WHEN - 12 - - 49 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5129
SELECT + CASE 59 WHEN - 12 - - 49 THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT + 60 * - 72 AS col2
----
-4320

query I rowsort
SELECT ALL 64 * 55 + + 13
----
3533

query I rowsort
SELECT + 78 + - 60 * + 45 col0
----
-2622

query I rowsort
SELECT ALL + CASE 28 WHEN + ( 14 ) THEN NULL ELSE - 83 + + ( 50 ) END AS col2
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5134
SELECT + 54 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT + 54 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 66 * 34
----
2244

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5136
SELECT ALL 1 * - CAST( NULL AS SIGNED ) + CAST( - 20 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL 1 * - CAST ( NULL AS INTEGER ) + CAST ( - 20 AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5137
SELECT - CAST( 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5137
SELECT - CAST ( 25 AS INTEGER ) AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT + 6 + 69 DIV + 97
----
6

skipif mysql # not compatible
query I rowsort label-5138
SELECT + 6 + 69 / + 97
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT COUNT( * ) + + 6
----
7

skipif mysql # not compatible
query I rowsort label-5139
SELECT COUNT ( * ) + + 6
----
7

query I rowsort
SELECT ALL + 28 * 45
----
1260

query I rowsort
SELECT DISTINCT - 11 + - 99 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - + COUNT( + ( 94 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5142
SELECT - + COUNT ( + ( 94 ) )
----
-1

query I rowsort
SELECT ALL + 78 - 36 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT 27 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT 27 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT - MIN( 87 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-5145
SELECT - MIN ( 87 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL 8 - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 8 - - COUNT ( * )
----
9

query I rowsort
SELECT 75 * - 93 AS col2
----
-6975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT COUNT( * ) + + 80 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT COUNT ( * ) + + 80 / - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT ALL + 52 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + 52 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + ( - 88 ) * + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-5150
SELECT + ( - 88 ) * + COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT COALESCE ( + 9, - 14 * - 31, 93 + ( COUNT( * ) + 55 ) * COUNT( * ), + 14 ) * CASE ( CAST( + 75 AS SIGNED ) ) + - AVG ( 67 ) * + 52 WHEN CAST( 51 AS SIGNED ) THEN + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT COALESCE ( + 9, - 14 * - 31, 93 + ( COUNT ( * ) + 55 ) * COUNT ( * ), + 14 ) * CASE ( CAST ( + 75 AS INTEGER ) ) + - AVG ( 67 ) * + 52 WHEN CAST ( 51 AS INTEGER ) THEN + 5 END
----
NULL

query I rowsort
SELECT ALL - + 49 * 88 AS col0
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - - MAX( ALL - 52 ) * 55 + 34
----
-2826

skipif mysql # not compatible
query I rowsort label-5153
SELECT - - MAX ( ALL - 52 ) * 55 + 34
----
-2826

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT + + COUNT( * ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT + + COUNT ( * ) * - 5
----
-5

query I rowsort
SELECT 26 + + 89 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL + COUNT( * ) + 10 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + COUNT ( * ) + 10 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5157
SELECT 46 DIV - COUNT( * ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5157
SELECT 46 / - COUNT ( * ) AS col0
----
-46

query I rowsort
SELECT 16 * 30
----
480

query I rowsort
SELECT ALL + 17 + NULLIF ( - 16, - 59 * 63 + - 73 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT 26 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5160
SELECT 26 * COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT + 99 + + + 32 AS col1
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5162
SELECT ALL + 81 + + + 5 - 30 DIV - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL + 81 + + + 5 - 30 / - COUNT ( * )
----
116

query I rowsort
SELECT DISTINCT + 72 * - NULLIF ( + 58, 0 * - 48 - + 22 )
----
-4176

query I rowsort
SELECT DISTINCT + 99 + 24 AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL COUNT( * ) * - CAST( 48 AS SIGNED ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL COUNT ( * ) * - CAST ( 48 AS INTEGER ) AS col1
----
-48

query I rowsort
SELECT ALL + 81 + - 48
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + 47 * + + ( + CASE 77 WHEN COUNT( * ) THEN + ( + COUNT( DISTINCT - 9 ) ) WHEN SUM( + 42 ) - 5 THEN NULL WHEN COUNT( * ) + + 86 THEN NULL END ) - + 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 47 * + + ( + CASE 77 WHEN COUNT ( * ) THEN + ( + COUNT ( DISTINCT - 9 ) ) WHEN SUM ( + 42 ) - 5 THEN NULL WHEN COUNT ( * ) + + 86 THEN NULL END ) - + 51 col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 80, + AVG ( 96 ) ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5169
SELECT 60 DIV - - ( + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5169
SELECT 60 / - - ( + 47 ) AS col1
----
1

query I rowsort
SELECT 96 * 36 col1
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5171
SELECT CASE + 42 WHEN 35 / COALESCE ( - 8 * - COALESCE ( 84, + MAX( DISTINCT 38 ) * - 48, 91 ), - CAST( 48 AS SIGNED ) * 91 + - 70, - 98 ) - 26 * 97 THEN - 46 + 36 END * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT CASE + 42 WHEN 35 / COALESCE ( - 8 * - COALESCE ( 84, + MAX ( DISTINCT 38 ) * - 48, 91 ), - CAST ( 48 AS INTEGER ) * 91 + - 70, - 98 ) - 26 * 97 THEN - 46 + 36 END * 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + COUNT( DISTINCT - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5172
SELECT + COUNT ( DISTINCT - 61 )
----
1

query I rowsort
SELECT ALL - NULLIF ( - 72, - 2 + - 47 ) col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT ALL COUNT( * ) DIV - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL COUNT ( * ) / - 36 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT CASE + COUNT( * ) WHEN - ( - 34 ) + 95 * - 2 THEN NULL WHEN 41 THEN 31 END / NULLIF ( 92 / - COALESCE ( - 92, - 12 * 50, MIN( 84 ) ) + 63, 0 + 90 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT CASE + COUNT ( * ) WHEN - ( - 34 ) + 95 * - 2 THEN NULL WHEN 41 THEN 31 END / NULLIF ( 92 / - COALESCE ( - 92, - 12 * 50, MIN ( 84 ) ) + 63, 0 + 90 ) col2
----
NULL

query I rowsort
SELECT 90 + 52 * 50 AS col1
----
2690

query I rowsort
SELECT + 45 * - + 33
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL SUM( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL SUM ( - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT + COUNT( DISTINCT + 32 ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-5179
SELECT + COUNT ( DISTINCT + 32 ) + + 76
----
77

query I rowsort
SELECT ( + 82 ) - 6
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5181
SELECT 10 + - 53 * MIN( ALL - 43 DIV + 89 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-5181
SELECT 10 + - 53 * MIN ( ALL - 43 / + 89 ) col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT MIN( + 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-5182
SELECT MIN ( + 5 ) col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL + COUNT( * ) * + 45 + + 97 col2
----
142

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + COUNT ( * ) * + 45 + + 97 col2
----
142

query I rowsort
SELECT + 11 * - 73 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL NULLIF ( + COUNT( * ), - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL NULLIF ( + COUNT ( * ), - 88 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT DISTINCT - 62 + + 85 DIV - 56 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - 62 + + 85 / - 56 AS col2
----
-63

query I rowsort
SELECT ALL - 75 + 13
----
-62

query I rowsort
SELECT - 76 * + 66 + - 83 AS col1
----
-5099

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT COUNT( * ) AS col2, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-5189
SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT 26 * MAX( + 75 )
----
1950

skipif mysql # not compatible
query I rowsort label-5190
SELECT 26 * MAX ( + 75 )
----
1950

query I rowsort
SELECT 61 * + 25 AS col0
----
1525

query II rowsort
SELECT + 74 AS col1, NULLIF ( + 90, - 7 + 40 ) + + 29 * 98 AS col2
----
74
2932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL 13 * - 72 + - + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL 13 * - 72 + - + 59 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT MAX( 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-5194
SELECT MAX ( 18 ) col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT ALL 67 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL 67 / - + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT SUM( 45 ) - - - NULLIF ( 81, 47 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5196
SELECT SUM ( 45 ) - - - NULLIF ( 81, 47 ) AS col2
----
-36

query II rowsort
SELECT + 85 AS col0, + 71 * - 23 * 81 + - 16
----
85
-132289

query I rowsort
SELECT ALL + 86 * 77 * 83 AS col2
----
549626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT 77 * CAST( NULL AS SIGNED ) * - CASE - 5 WHEN 81 * + ( 98 ) + CASE + 99 WHEN 83 THEN + SUM( + 37 ) END THEN 42 + - 52 * CASE + 59 WHEN + 59 THEN 75 END WHEN 13 * + 15 THEN 3 * 45 WHEN 29 THEN 92 * - 47 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT 77 * CAST ( NULL AS INTEGER ) * - CASE - 5 WHEN 81 * + ( 98 ) + CASE + 99 WHEN 83 THEN + SUM ( + 37 ) END THEN 42 + - 52 * CASE + 59 WHEN + 59 THEN 75 END WHEN 13 * + 15 THEN 3 * 45 WHEN 29 THEN 92 * - 47 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT + COALESCE ( - 67, + 12 * 49, 76 - 26 * 51, + 94 ) + + CASE 40 WHEN 96 THEN + 48 * CAST( - 6 * 47 AS SIGNED ) ELSE + COUNT( * ) + 8 END * - 12
----
-175

skipif mysql # not compatible
query I rowsort label-5200
SELECT + COALESCE ( - 67, + 12 * 49, 76 - 26 * 51, + 94 ) + + CASE 40 WHEN 96 THEN + 48 * CAST ( - 6 * 47 AS INTEGER ) ELSE + COUNT ( * ) + 8 END * - 12
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT ALL + COUNT( * ) AS col2, 64 - + + 19 * ( COUNT( * ) * - 25 ) AS col0
----
1
539

skipif mysql # not compatible
query II rowsort label-5201
SELECT ALL + COUNT ( * ) AS col2, 64 - + + 19 * ( COUNT ( * ) * - 25 ) AS col0
----
1
539

query I rowsort
SELECT - COALESCE ( + + 34, 95 ) - 35
----
-69

query I rowsort
SELECT - 71 + ( 42 ) AS col2
----
-29

query I rowsort
SELECT 87 * - + 89 - + 97 AS col1
----
-7840

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT - 88 * + 90 * + - ( CASE COUNT( * ) WHEN + 73 + + 87 THEN ( 57 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 88 * + 90 * + - ( CASE COUNT ( * ) WHEN + 73 + + 87 THEN ( 57 ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5206
SELECT ALL + 46, + COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-5206
SELECT ALL + 46, + COUNT ( * ) AS col2
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL - - COUNT( - 58 ) - + - 98 AS col2