sqllogictest
Artifact Content
Not logged in

Artifact cba5718731933a08b4ca9611132d00534c9236d3:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 25 * + + 79 * - - COALESCE ( + 14, - 88 ) col2
----
-27650

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT COUNT( * ) + 37 + + COUNT( * ) + - - 71 * SUM( - - COALESCE ( COALESCE ( 86, 44 ), + - 92 * 61 ) ) AS col0
----
6145

skipif mysql # not compatible
query I rowsort label-1
SELECT COUNT ( * ) + 37 + + COUNT ( * ) + - - 71 * SUM ( - - COALESCE ( COALESCE ( 86, 44 ), + - 92 * 61 ) ) AS col0
----
6145

query I rowsort
SELECT 88 - - 12 - - 55 + + 61 * + 8
----
643

query I rowsort
SELECT 27 * - 74 * + + 13
----
-25974

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL 3 + - 46 * + 17 - - 70 + COUNT( - 60 ) * + 34 AS col2
----
-675

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL 3 + - 46 * + 17 - - 70 + COUNT ( - 60 ) * + 34 AS col2
----
-675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT DISTINCT 37 + + + CAST( NULL AS SIGNED ) * + MIN( ALL NULLIF ( - - 23, - 7 ) ) * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT 37 + + + CAST ( NULL AS INTEGER ) * + MIN ( ALL NULLIF ( - - 23, - 7 ) ) * 18 AS col0
----
NULL

query I rowsort
SELECT ALL ( - - ( - + 0 ) ) + 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL MIN( DISTINCT + - 81 ) * - 27 AS col1
----
2187

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL MIN ( DISTINCT + - 81 ) * - 27 AS col1
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT 23 - ( - 60 ) + + COUNT( * ) col2
----
84

skipif mysql # not compatible
query I rowsort label-8
SELECT 23 - ( - 60 ) + + COUNT ( * ) col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT ALL - MAX( ALL - COALESCE ( + 94, - 33 ) ), 52 * + 46 AS col1
----
94
2392

skipif mysql # not compatible
query II rowsort label-9
SELECT ALL - MAX ( ALL - COALESCE ( + 94, - 33 ) ), 52 * + 46 AS col1
----
94
2392

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

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

query I rowsort
SELECT 2 * - + 13 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ( - + 92 ) + + + 31 - + 26 * COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-12
SELECT ( - + 92 ) + + + 31 - + 26 * COUNT ( * )
----
-87

query I rowsort
SELECT + + NULLIF ( - 72, - 76 * 99 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL - ( - 56 ) + - 13 * - 63 * - ( COUNT( * ) ) * - + 35 AS col0
----
28721

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - ( - 56 ) + - 13 * - 63 * - ( COUNT ( * ) ) * - + 35 AS col0
----
28721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT 78 - CAST( - - 52 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-15
SELECT 78 - CAST ( - - 52 AS INTEGER ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT + 54 * - 79 + 85 * - 47 AS col0, - COUNT( * ) + + 80 col0
----
-8261
79

skipif mysql # not compatible
query II rowsort label-16
SELECT + 54 * - 79 + 85 * - 47 AS col0, - COUNT ( * ) + + 80 col0
----
-8261
79

query I rowsort
SELECT - 69 + + 53 * + - 48 col2
----
-2613

query I rowsort
SELECT DISTINCT - - 87 * 50 AS col1
----
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-19
SELECT ALL - + 62 * 23 DIV - 16 + 17, - 77 AS col0
----
106
-77

skipif mysql # not compatible
query II rowsort label-19
SELECT ALL - + 62 * 23 / - 16 + 17, - 77 AS col0
----
106
-77

query I rowsort
SELECT 50 + + 47 AS col2
----
97

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

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

query I rowsort
SELECT + 18 + + 65 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT + 58 * COUNT( * ) * - - 26 * - 11 * - 4 + 10
----
66362

skipif mysql # not compatible
query I rowsort label-23
SELECT + 58 * COUNT ( * ) * - - 26 * - 11 * - 4 + 10
----
66362

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT COUNT( * ) * + NULLIF ( - + 60, + 46 * 7 / COUNT( DISTINCT - 55 ) + - - 82 * + 14 * 59 ) * - 1
----
60

skipif mysql # not compatible
query I rowsort label-24
SELECT COUNT ( * ) * + NULLIF ( - + 60, + 46 * 7 / COUNT ( DISTINCT - 55 ) + - - 82 * + 14 * 59 ) * - 1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL + CASE 97 WHEN + 6 THEN NULL ELSE - - COUNT( + + 49 ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + CASE 97 WHEN + 6 THEN NULL ELSE - - COUNT ( + + 49 ) END AS col2
----
1

query II rowsort
SELECT ALL 51, 86 * 67 AS col0
----
51
5762

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - - 13 THEN + + 66 END * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - - 13 THEN + + 66 END * 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT DISTINCT + 66 DIV - + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + 66 / - + 85 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT ALL + 57 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + 57 / - 73 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT CASE - 52 WHEN 7 + - 74 THEN - 81 + + CASE - 38 WHEN + ( - 74 ) * + ( - + SUM( 27 ) ) + - 84 + - 98 THEN NULL WHEN + - ( + + COALESCE ( 20, - COUNT( * ) * - MAX( DISTINCT + + 20 ) - + + 81, + 65 * + 99 + + 2 + + 77 * + - COUNT( * ) + + - 32 ) ) DIV - ( NULLIF ( - 73, 17 - - 36 ) ) * - 90 THEN NULL ELSE + 87 + - AVG ( - 59 ) * + 5 END - - 29 * 35 ELSE 99 END DIV + 90
----
1

skipif mysql # not compatible
query I rowsort label-30
SELECT CASE - 52 WHEN 7 + - 74 THEN - 81 + + CASE - 38 WHEN + ( - 74 ) * + ( - + SUM ( 27 ) ) + - 84 + - 98 THEN NULL WHEN + - ( + + COALESCE ( 20, - COUNT ( * ) * - MAX ( DISTINCT + + 20 ) - + + 81, + 65 * + 99 + + 2 + + 77 * + - COUNT ( * ) + + - 32 ) ) / - ( NULLIF ( - 73, 17 - - 36 ) ) * - 90 THEN NULL ELSE + 87 + - AVG ( - 59 ) * + 5 END - - 29 * 35 ELSE 99 END / + 90
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT + MAX( - 0 ) DIV + - 67 * - 17 + 50
----
50

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + MAX ( - 0 ) / + - 67 * - 17 + 50
----
50

query I rowsort
SELECT ALL - 12 + + 15
----
3

query II rowsort
SELECT - 73, + ( ( + 44 ) ) AS col2
----
-73
44

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

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

query I rowsort
SELECT 98 + + 24 AS col2
----
122

query I rowsort
SELECT 1 - 46 * ( - - 18 ) * + - 25 + 41
----
20742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + - 23 * + 67 AS col0
----
-1540

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - 23 * + 67 AS col0
----
-1540

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL + 29 * 72 DIV + - 94 + 67 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + 29 * 72 / + - 94 + 67 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT ALL - MAX( DISTINCT + 43 ) * + + 37 + - - 65 + - CASE 66 WHEN - COUNT( * ) THEN NULL WHEN 32 / COUNT( * ) * - COUNT( * ) + + ( COALESCE ( CAST( NULL AS SIGNED ), - 6, + + AVG ( DISTINCT - 41 ) ) ) THEN NULL WHEN - 29 THEN + 99 * + COUNT( - + 69 ) + - + 21 END / + 27 + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - MAX ( DISTINCT + 43 ) * + + 37 + - - 65 + - CASE 66 WHEN - COUNT ( * ) THEN NULL WHEN 32 / COUNT ( * ) * - COUNT ( * ) + + ( COALESCE ( CAST ( NULL AS INTEGER ), - 6, + + AVG ( DISTINCT - 41 ) ) ) THEN NULL WHEN - 29 THEN + 99 * + COUNT ( - + 69 ) + - + 21 END / + 27 + + 65
----
NULL

query I rowsort
SELECT ALL - ( - 9 ) AS col0
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT - MAX( DISTINCT - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - MAX ( DISTINCT - 58 )
----
58

query I rowsort
SELECT 57 * - 49 AS col0
----
-2793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT COALESCE ( 32, + CAST( CAST( 34 AS SIGNED ) AS SIGNED ), - 81 )
----
32

skipif mysql # not compatible
query I rowsort label-46
SELECT COALESCE ( 32, + CAST ( CAST ( 34 AS INTEGER ) AS INTEGER ), - 81 )
----
32

query I rowsort
SELECT + 0 * - + 51
----
0

query I rowsort
SELECT DISTINCT + ( - 7 ) * - 17 AS col2
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT DISTINCT + 37 - 49 + - 29 + - - 25 DIV 50 * + COUNT( * ) * + 16 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT + 37 - 49 + - 29 + - - 25 / 50 * + COUNT ( * ) * + 16 AS col1
----
-41

query I rowsort
SELECT - 67 * 89
----
-5963

query I rowsort
SELECT - - 65 * + 90
----
5850

query I rowsort
SELECT + + 60 * + 19
----
1140

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-54
SELECT ALL 95, + CAST( + + COALESCE ( - 18, + 51 / - COUNT( * ) + + + 53 ) AS SIGNED ) AS col1
----
95
-18

skipif mysql # not compatible
query II rowsort label-54
SELECT ALL 95, + CAST ( + + COALESCE ( - 18, + 51 / - COUNT ( * ) + + + 53 ) AS INTEGER ) AS col1
----
95
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT - COUNT( * ) AS col0, 18 + 72 + 15 AS col1
----
-1
105

skipif mysql # not compatible
query II rowsort label-55
SELECT - COUNT ( * ) AS col0, 18 + 72 + 15 AS col1
----
-1
105

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT ALL SUM( DISTINCT 43 ) + - - 5 + + MIN( ALL - + 88 ) * 50 * 13 - - ( 51 )
----
-57101

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL SUM ( DISTINCT 43 ) + - - 5 + + MIN ( ALL - + 88 ) * 50 * 13 - - ( 51 )
----
-57101

query I rowsort
SELECT ALL 22 + + ( + + 32 )
----
54

query I rowsort
SELECT + 27 - + COALESCE ( + - 91, + 92 ) * 8
----
755

query II rowsort
SELECT 55, 98 col2
----
55
98

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

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

query I rowsort
SELECT + 4 - - NULLIF ( - 43, + 55 * 92 + - 93 + - 80 - + - 15 + - + 45 + 41 ) col1
----
-39

query II rowsort
SELECT + 21 * 14 AS col0, 0 col2
----
294
0

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL COUNT( * ) + CASE - 1 WHEN - COUNT( * ) THEN NULL WHEN + MAX( + 97 ) THEN COUNT( 84 ) + 57 ELSE NULL END - + 35 + - + 37 * + 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL COUNT ( * ) + CASE - 1 WHEN - COUNT ( * ) THEN NULL WHEN + MAX ( + 97 ) THEN COUNT ( 84 ) + 57 ELSE NULL END - + 35 + - + 37 * + 80 col2
----
NULL

query I rowsort
SELECT ALL 86 + 94 col1
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-65
SELECT - COALESCE ( + 85, + - 54, + NULLIF ( + NULLIF ( - 11, + - 72 ), + - 70 * + COUNT( ALL CAST( NULL AS SIGNED ) ) ) + 75 * - 93 * CAST( 57 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-65
SELECT - COALESCE ( + 85, + - 54, + NULLIF ( + NULLIF ( - 11, + - 72 ), + - 70 * + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) + 75 * - 93 * CAST ( 57 AS INTEGER ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + 68 + + 72 - + COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-66
SELECT + 68 + + 72 - + COUNT ( * )
----
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL COUNT( ALL + 97 ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL COUNT ( ALL + 97 ) + 77
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-69
SELECT ALL - ( - NULLIF ( + 38, + 5 + 98 ) ) + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL - ( - NULLIF ( + 38, + 5 + 98 ) ) + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-70
SELECT ALL + COALESCE ( + CAST( 19 AS SIGNED ), 95 * 8 + + - COUNT( * ) - 5 ) + + 67 * - - 36 + - 46
----
2385

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL + COALESCE ( + CAST ( 19 AS INTEGER ), 95 * 8 + + - COUNT ( * ) - 5 ) + + 67 * - - 36 + - 46
----
2385

onlyif mysql # DIV for integer division: 
query I rowsort label-71
SELECT - 55 DIV - 21 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-71
SELECT - 55 / - 21 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + 2 * - + 8 * COUNT( * ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-72
SELECT + 2 * - + 8 * COUNT ( * ) AS col2
----
-16

query II rowsort
SELECT + 8 col2, + 36
----
8
36

query I rowsort
SELECT - - 74 * - 49 AS col0
----
-3626

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

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

query I rowsort
SELECT - + 5 + + + 92 * 20 AS col0
----
1835

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

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + ( + 76 ) * 12 * - + COUNT ( * ) AS col0
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-78
SELECT - COALESCE ( - - 47, + CASE - 56 WHEN CAST( NULL AS SIGNED ) * + - MIN( 81 ) THEN NULL WHEN + 25 + - 70 THEN - - COUNT( * ) WHEN + 40 THEN - ( - - COUNT( * ) ) DIV - - COUNT( ALL + - COALESCE ( + - COALESCE ( - ( + 8 ), - 31 + 84 + + 51 * + 9 ), 58 - + 64 ) ) + COUNT( * ) - ( + COUNT( * ) ) - - 33 ELSE NULL END DIV + 88 + 5 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-78
SELECT - COALESCE ( - - 47, + CASE - 56 WHEN CAST ( NULL AS INTEGER ) * + - MIN ( 81 ) THEN NULL WHEN + 25 + - 70 THEN - - COUNT ( * ) WHEN + 40 THEN - ( - - COUNT ( * ) ) / - - COUNT ( ALL + - COALESCE ( + - COALESCE ( - ( + 8 ), - 31 + 84 + + 51 * + 9 ), 58 - + 64 ) ) + COUNT ( * ) - ( + COUNT ( * ) ) - - 33 ELSE NULL END / + 88 + 5 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT DISTINCT + - 54 * + COUNT( - 77 )
----
-54

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + - 54 * + COUNT ( - 77 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT 38 * + - CASE - 60 WHEN + 52 + - SUM( - 94 ) + - 60 + + + 53 + CAST( 41 AS SIGNED ) * - + CASE + + 70 WHEN + COUNT( * ) + 27 THEN NULL WHEN - + 11 THEN 36 ELSE NULL END * + + 36 - + + COUNT( * ) + + ( + 5 ) * + 4 * + COUNT( * ) / + 83 * + + 29 THEN - + 89 ELSE NULL END - - + MIN( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT 38 * + - CASE - 60 WHEN + 52 + - SUM ( - 94 ) + - 60 + + + 53 + CAST ( 41 AS INTEGER ) * - + CASE + + 70 WHEN + COUNT ( * ) + 27 THEN NULL WHEN - + 11 THEN 36 ELSE NULL END * + + 36 - + + COUNT ( * ) + + ( + 5 ) * + 4 * + COUNT ( * ) / + 83 * + + 29 THEN - + 89 ELSE NULL END - - + MIN ( - 82 )
----
NULL

query II rowsort
SELECT ALL + 75 * 42 AS col2, 54 AS col2
----
3150
54

query I rowsort
SELECT - + 69 + + 96 col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT + + CASE + 98 WHEN - ( + MAX( DISTINCT + + 0 ) ) / CAST( NULL AS SIGNED ) THEN - - COALESCE ( - 58, + + 91 ) END * - CAST( NULL AS SIGNED ) + - 52 * - - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT + + CASE + 98 WHEN - ( + MAX ( DISTINCT + + 0 ) ) / CAST ( NULL AS INTEGER ) THEN - - COALESCE ( - 58, + + 91 ) END * - CAST ( NULL AS INTEGER ) + - 52 * - - 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT - ( 67 ) * MIN( ALL - 74 )
----
4958

skipif mysql # not compatible
query I rowsort label-84
SELECT - ( 67 ) * MIN ( ALL - 74 )
----
4958

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-86
SELECT + NULLIF ( CASE + CAST( - + 78 AS SIGNED ) WHEN - 25 THEN - COUNT( * ) WHEN - + 89 - - COUNT( * ) THEN ( 77 ) ELSE - 17 END, + 19 ) * - 3
----
51

skipif mysql # not compatible
query I rowsort label-86
SELECT + NULLIF ( CASE + CAST ( - + 78 AS INTEGER ) WHEN - 25 THEN - COUNT ( * ) WHEN - + 89 - - COUNT ( * ) THEN ( 77 ) ELSE - 17 END, + 19 ) * - 3
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT + - 40 * - - ( COUNT( * ) ) + - 45 + - 43 * - 27
----
1076

skipif mysql # not compatible
query I rowsort label-87
SELECT + - 40 * - - ( COUNT ( * ) ) + - 45 + - 43 * - 27
----
1076

onlyif mysql # aggregate syntax: 
query II rowsort label-88
SELECT DISTINCT + COUNT( * ), - 29 + + 46 * - 38 AS col1
----
1
-1777

skipif mysql # not compatible
query II rowsort label-88
SELECT DISTINCT + COUNT ( * ), - 29 + + 46 * - 38 AS col1
----
1
-1777

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

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL - 42 * NULLIF ( + COUNT( * ), - + 0 ) * 3 * - 41 AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL - 42 * NULLIF ( + COUNT ( * ), - + 0 ) * 3 * - 41 AS col0
----
5166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-91
SELECT COALESCE ( + COUNT( * ), CAST( NULL AS SIGNED ) * - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-91
SELECT COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) * - 16 )
----
1

query I rowsort
SELECT ALL + 84 * + 29
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT + 28 + + + 83 * + COALESCE ( - - 28, - COALESCE ( - - COUNT( * ), + CASE + - 38 WHEN 72 THEN - 57 - MIN( ALL - - CASE + ( + 61 ) WHEN - - 8 / + CAST( NULL AS SIGNED ) + - 83 * - - 48 THEN NULL WHEN - 43 THEN + 54 ELSE NULL END ) + + 5 + + + 97 END ) ) + + 17 - 60 AS col0
----
2309

skipif mysql # not compatible
query I rowsort label-93
SELECT + 28 + + + 83 * + COALESCE ( - - 28, - COALESCE ( - - COUNT ( * ), + CASE + - 38 WHEN 72 THEN - 57 - MIN ( ALL - - CASE + ( + 61 ) WHEN - - 8 / + CAST ( NULL AS INTEGER ) + - 83 * - - 48 THEN NULL WHEN - 43 THEN + 54 ELSE NULL END ) + + 5 + + + 97 END ) ) + + 17 - 60 AS col0
----
2309

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT ( 28 ) * + 47 + + ( - MAX( + 21 ) )
----
1295

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT ( 28 ) * + 47 + + ( - MAX ( + 21 ) )
----
1295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-95
SELECT - 98 * - CAST( + 42 AS SIGNED )
----
4116

skipif mysql # not compatible
query I rowsort label-95
SELECT - 98 * - CAST ( + 42 AS INTEGER )
----
4116

onlyif mysql # aggregate syntax: 
query II rowsort label-96
SELECT + 80 + - - CASE - 70 WHEN - 92 THEN + - 29 * 17 + - 59 / - 54 + - CASE WHEN NOT + 8 BETWEEN NULL AND 39 / - MAX( ALL + 45 ) THEN 37 * + 18 * + 37 ELSE NULL END ELSE NULL END, 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-96
SELECT + 80 + - - CASE - 70 WHEN - 92 THEN + - 29 * 17 + - 59 / - 54 + - CASE WHEN NOT + 8 BETWEEN NULL AND 39 / - MAX ( ALL + 45 ) THEN 37 * + 18 * + 37 ELSE NULL END ELSE NULL END, 76 AS col0
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL + 84 * + - MIN( - + 45 ) * - COALESCE ( + COUNT( * ), + + 78 * + 64 ) + - 90 + + 85 + - 5 + 19 * - + 1 AS col2
----
-3809

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + 84 * + - MIN ( - + 45 ) * - COALESCE ( + COUNT ( * ), + + 78 * + 64 ) + - 90 + + 85 + - 5 + 19 * - + 1 AS col2
----
-3809

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT - 68 * - 88, SUM( DISTINCT 82 ) AS col2
----
5984
82

skipif mysql # not compatible
query II rowsort label-99
SELECT - 68 * - 88, SUM ( DISTINCT 82 ) AS col2
----
5984
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-100
SELECT ALL 80 DIV 28, + COUNT( * ) col2
----
2
1

skipif mysql # not compatible
query II rowsort label-100
SELECT ALL 80 / 28, + COUNT ( * ) col2
----
2
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT ALL - COUNT( * ) + 93 - + + 47 DIV - - 11 - + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - COUNT ( * ) + 93 - + + 47 / - - 11 - + COUNT ( * ) AS col0
----
87

query II rowsort
SELECT ALL + 94 + + - 14 col2, 4 AS col1
----
80
4

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT ALL 32 + 40 DIV + + 12 + + - 49 * - 52 AS col0
----
2583

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL 32 + 40 / + + 12 + + - 49 * - 52 AS col0
----
2583

query II rowsort
SELECT + 55 + + 60 AS col0, 97
----
115
97

onlyif mysql # aggregate syntax: 
query II rowsort label-106
SELECT + COUNT( * ) + + - 59 AS col2, 7 * - 62 col1
----
-58
-434

skipif mysql # not compatible
query II rowsort label-106
SELECT + COUNT ( * ) + + - 59 AS col2, 7 * - 62 col1
----
-58
-434

query I rowsort
SELECT ALL ( + - 42 ) - 93
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT + 19 + + + COUNT( * ) * - COUNT( * ) * + 60 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-108
SELECT + 19 + + + COUNT ( * ) * - COUNT ( * ) * + 60 AS col0
----
-41

query I rowsort
SELECT + 78 * - 44 AS col1
----
-3432

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

skipif mysql # not compatible
query I rowsort label-110
SELECT + + COUNT ( * ) + - 91 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-111
SELECT - + NULLIF ( - - 48, NULLIF ( + COUNT( * ), COUNT( * ) + + 84 + + 59 + - CAST( NULL AS SIGNED ) + 76 * + 85 + - - CASE + + NULLIF ( + COUNT( * ), - ( - COUNT( * ) ) * + CASE + 99 WHEN - + COUNT( * ) THEN - 26 * CASE - NULLIF ( - + 23, COALESCE ( - 11, COALESCE ( ( - - 75 ), + 43, + - 43, + - CAST( ( + 14 ) AS SIGNED ) * 7 + - 79 * CASE 76 * 21 WHEN + 90 * COUNT( * ) + - 16 THEN ( - 91 ) + - 94 ELSE NULL END ) ) ) WHEN 16 THEN - 17 * 24 + 88 * + 64 ELSE COUNT( * ) END * - SUM( DISTINCT + 70 ) WHEN + 43 THEN 13 * 80 END - NULLIF ( CAST( NULL AS SIGNED ), + 69 * + 63 - 79 ) / CAST( 63 / 82 - + ( CAST( ( - CAST( + 34 AS DECIMAL ) ) AS SIGNED ) ) AS SIGNED ) ) WHEN 56 * 70 - - 89 THEN 19 END + - 84 * 83 / COUNT( * ) ) ) - - 72 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-111
SELECT - + NULLIF ( - - 48, NULLIF ( + COUNT ( * ), COUNT ( * ) + + 84 + + 59 + - CAST ( NULL AS INTEGER ) + 76 * + 85 + - - CASE + + NULLIF ( + COUNT ( * ), - ( - COUNT ( * ) ) * + CASE + 99 WHEN - + COUNT ( * ) THEN - 26 * CASE - NULLIF ( - + 23, COALESCE ( - 11, COALESCE ( ( - - 75 ), + 43, + - 43, + - CAST ( ( + 14 ) AS INTEGER ) * 7 + - 79 * CASE 76 * 21 WHEN + 90 * COUNT ( * ) + - 16 THEN ( - 91 ) + - 94 ELSE NULL END ) ) ) WHEN 16 THEN - 17 * 24 + 88 * + 64 ELSE COUNT ( * ) END * - SUM ( DISTINCT + 70 ) WHEN + 43 THEN 13 * 80 END - NULLIF ( CAST ( NULL AS INTEGER ), + 69 * + 63 - 79 ) / CAST ( 63 / 82 - + ( CAST ( ( - CAST ( + 34 AS REAL ) ) AS INTEGER ) ) AS INTEGER ) ) WHEN 56 * 70 - - 89 THEN 19 END + - 84 * 83 / COUNT ( * ) ) ) - - 72 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT - 97 * SUM( ALL - - 80 ) col1
----
-7760

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT - 97 * SUM ( ALL - - 80 ) col1
----
-7760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-113
SELECT ALL + COALESCE ( + + 91, 76 - + 17 * + COUNT( 22 ) DIV + 21 DIV 64 + NULLIF ( - + 32, + NULLIF ( - - 89, + CASE + 55 WHEN - + 51 THEN NULL WHEN - MAX( - - 53 ) THEN + 8 ELSE + 82 END + + 60 + + + 41 ) + - COUNT( * ) ), - - 80 + - 70 * - + MIN( + 36 ) - - 32 )
----
91

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + COALESCE ( + + 91, 76 - + 17 * + COUNT ( 22 ) / + 21 / 64 + NULLIF ( - + 32, + NULLIF ( - - 89, + CASE + 55 WHEN - + 51 THEN NULL WHEN - MAX ( - - 53 ) THEN + 8 ELSE + 82 END + + 60 + + + 41 ) + - COUNT ( * ) ), - - 80 + - 70 * - + MIN ( + 36 ) - - 32 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL + SUM( + 16 ) - 25 * - - 19 AS col2
----
-459

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + SUM ( + 16 ) - 25 * - - 19 AS col2
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT + + 59 * SUM( ALL + 73 )
----
4307

skipif mysql # not compatible
query I rowsort label-115
SELECT + + 59 * SUM ( ALL + 73 )
----
4307

query II rowsort
SELECT - 44 + 40, 92 AS col0
----
-4
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT CAST( NULL AS SIGNED ) / + - 6 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT CAST ( NULL AS INTEGER ) / + - 6 + - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-118
SELECT 56 + CAST( NULL AS DECIMAL ) + 88 * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT 56 + CAST ( NULL AS REAL ) + 88 * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-119
SELECT ALL 27 DIV - COALESCE ( - 97, + 37 * + COUNT( * ) ), - 97 * - 93 AS col2
----
0
9021

skipif mysql # not compatible
query II rowsort label-119
SELECT ALL 27 / - COALESCE ( - 97, + 37 * + COUNT ( * ) ), - 97 * - 93 AS col2
----
0
9021

query II rowsort
SELECT DISTINCT - 54 * - 24 col0, 88 AS col0
----
1296
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-121
SELECT - 85 DIV - COUNT( ALL 3 )
----
85

skipif mysql # not compatible
query I rowsort label-121
SELECT - 85 / - COUNT ( ALL 3 )
----
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT + 51 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT + 51 / + 76
----
0

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

query I rowsort
SELECT ALL + 2 + 56 col0
----
58

query I rowsort
SELECT ALL - 25 + - 14 * + 53
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-127
SELECT 21 * + CAST( - 23 AS SIGNED ) AS col2
----
-483

skipif mysql # not compatible
query I rowsort label-127
SELECT 21 * + CAST ( - 23 AS INTEGER ) AS col2
----
-483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT CAST( NULL AS SIGNED ) * - 15 * + 35 * - - 47 * - 4 - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT CAST ( NULL AS INTEGER ) * - 15 * + 35 * - - 47 * - 4 - - 85
----
NULL

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

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

query I rowsort
SELECT 10 + + + 47 * - - 80
----
3770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-131
SELECT ALL - 62 + + + 1 + + - COUNT( * ) DIV - ( + ( - + 26 ) ) + - 67 + + ( + + 71 ) + 65 * + 66 - - ( - MAX( - - 48 ) ) DIV + 2 - - + 25 * 65 + - + COALESCE ( - COUNT( * ), + 33, 65 - 34 + - + 71 + - 91 - CAST( - 22 AS SIGNED ) * - - 31 * + - CASE + CAST( COALESCE ( - 17, - - 28 + + COUNT( DISTINCT + 48 ) ) AS SIGNED ) WHEN 45 * 39 THEN + 74 + - ( CAST( NULL AS SIGNED ) ) ELSE 60 END * + 89, 64 ) * + 70 AS col1
----
5904

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 62 + + + 1 + + - COUNT ( * ) / - ( + ( - + 26 ) ) + - 67 + + ( + + 71 ) + 65 * + 66 - - ( - MAX ( - - 48 ) ) / + 2 - - + 25 * 65 + - + COALESCE ( - COUNT ( * ), + 33, 65 - 34 + - + 71 + - 91 - CAST ( - 22 AS INTEGER ) * - - 31 * + - CASE + CAST ( COALESCE ( - 17, - - 28 + + COUNT ( DISTINCT + 48 ) ) AS INTEGER ) WHEN 45 * 39 THEN + 74 + - ( CAST ( NULL AS INTEGER ) ) ELSE 60 END * + 89, 64 ) * + 70 AS col1
----
5904

query I rowsort
SELECT DISTINCT 74 * + 7
----
518

query I rowsort
SELECT ALL ( 4 ) - + - 72 * + 62 + - 43
----
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT DISTINCT - 36 * COALESCE ( - 40, CAST( - - COALESCE ( - - 90, - 78 ) AS SIGNED ) ) AS col1
----
1440

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - 36 * COALESCE ( - 40, CAST ( - - COALESCE ( - - 90, - 78 ) AS INTEGER ) ) AS col1
----
1440

query I rowsort
SELECT 7 * 48
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT - COUNT( * ) * - + 38 * - + 99 AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - COUNT ( * ) * - + 38 * - + 99 AS col0
----
-3762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-137
SELECT ALL + CAST( + 6 AS SIGNED ) - 89 - - - 59 * - 43
----
2454

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + CAST ( + 6 AS INTEGER ) - 89 - - - 59 * - 43
----
2454

query II rowsort
SELECT 61 AS col2, - ( - - NULLIF ( + 35, - 99 ) )
----
61
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-139
SELECT 26 DIV + 67 * + 70 col1, 92 + + 89
----
0
181

skipif mysql # not compatible
query II rowsort label-139
SELECT 26 / + 67 * + 70 col1, 92 + + 89
----
0
181

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-140
SELECT 61 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT 61 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT COUNT( * ) + + 52 col2
----
53

skipif mysql # not compatible
query I rowsort label-141
SELECT COUNT ( * ) + + 52 col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT DISTINCT 25 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT 25 / + 62
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-143
SELECT DISTINCT - 43, MIN( DISTINCT - 85 ) / - 15 + 29 - - + CAST( - - 9 AS SIGNED ) + CAST( NULL AS DECIMAL ) * + 92 * + 39 * COUNT( * ) AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-143
SELECT DISTINCT - 43, MIN ( DISTINCT - 85 ) / - 15 + 29 - - + CAST ( - - 9 AS INTEGER ) + CAST ( NULL AS REAL ) * + 92 * + 39 * COUNT ( * ) AS col2
----
-43
NULL

query II rowsort
SELECT DISTINCT - 30 AS col0, + 14
----
-30
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-145
SELECT ALL ( + AVG ( 79 ) ) * - AVG ( 54 ) / - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT - 17 ) + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL ( + AVG ( 79 ) ) * - AVG ( 54 ) / - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT - 17 ) + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT - NULLIF ( - MIN( + 0 ), - 66 ) * - COUNT( - ( - - 1 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-146
SELECT - NULLIF ( - MIN ( + 0 ), - 66 ) * - COUNT ( - ( - - 1 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-147
SELECT ALL 5 AS col0, + 61 * + - 61 + COUNT( * ) AS col1
----
5
-3720

skipif mysql # not compatible
query II rowsort label-147
SELECT ALL 5 AS col0, + 61 * + - 61 + COUNT ( * ) AS col1
----
5
-3720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL SUM( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL SUM ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL 16 * - COUNT( * ) + 39 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL 16 * - COUNT ( * ) + 39 AS col1
----
23

query I rowsort
SELECT + 86 * - 21 * - 61
----
110166

query I rowsort
SELECT 71 * - + 23 AS col1
----
-1633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT + COUNT( * ) * + SUM( ALL 90 ) + CAST( + - 69 AS SIGNED ) * ( - 32 ) * + CASE + 14 WHEN - - CASE - 40 WHEN ( + + 32 ) * + - 71 * 64 / - + 15 * 57 * + - 52 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + 74 WHEN + - 54 * - - 84 + 13 THEN NULL ELSE NULL END THEN NULL WHEN + ( + - 93 ) THEN 95 WHEN + - 8 THEN NULL ELSE NULL END * + 52 * - 82 + - + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT + COUNT ( * ) * + SUM ( ALL 90 ) + CAST ( + - 69 AS INTEGER ) * ( - 32 ) * + CASE + 14 WHEN - - CASE - 40 WHEN ( + + 32 ) * + - 71 * 64 / - + 15 * 57 * + - 52 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + 74 WHEN + - 54 * - - 84 + 13 THEN NULL ELSE NULL END THEN NULL WHEN + ( + - 93 ) THEN 95 WHEN + - 8 THEN NULL ELSE NULL END * + 52 * - 82 + - + 98
----
NULL

query II rowsort
SELECT + + ( + ( 30 ) ), + 52 AS col1
----
30
52

query I rowsort
SELECT ALL + 67 + - + 96 + + + ( + + 15 ) - - + 50
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT + 15 DIV 49 + - NULLIF ( - 98, - - 61 ) + - 37 * - + 0 + - 60 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-156
SELECT + 15 / 49 + - NULLIF ( - 98, - - 61 ) + - 37 * - + 0 + - 60 AS col0
----
38

query I rowsort
SELECT 50 + - 12
----
38

query I rowsort
SELECT DISTINCT + 64 * + - 81 AS col0
----
-5184

query I rowsort
SELECT ALL 75 + 50 AS col1
----
125

query I rowsort
SELECT DISTINCT + 73 + + 60 AS col0
----
133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT 30 * + CASE 25 WHEN - 42 / 65 THEN 80 END * + + 11 - + + 46 / 78 + - 82 + + 74 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT 30 * + CASE 25 WHEN - 42 / 65 THEN 80 END * + + 11 - + + 46 / 78 + - 82 + + 74 / + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 74 + - - 58 AS col1
----
132

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

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

query II rowsort
SELECT NULLIF ( - 11, - 7 + + - 8 + - ( 88 ) ) + 12 AS col0, + 38
----
1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + CASE + AVG ( - 86 ) WHEN - + 21 THEN - COUNT( * ) * - 55 / - - SUM( DISTINCT 8 ) ELSE NULL END - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + CASE + AVG ( - 86 ) WHEN - + 21 THEN - COUNT ( * ) * - 55 / - - SUM ( DISTINCT 8 ) ELSE NULL END - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL - COUNT( * ) - - - NULLIF ( 90, + + 60 )
----
-91

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL - COUNT ( * ) - - - NULLIF ( 90, + + 60 )
----
-91

query I rowsort
SELECT 26 * - 64 AS col0
----
-1664

query I rowsort
SELECT DISTINCT 62 - + + 21 * + 11 + 14 col1
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-170
SELECT ALL - CAST( NULL AS SIGNED ) - 97 * - 87 - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL - CAST ( NULL AS INTEGER ) - 97 * - 87 - + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT 16 * MIN( DISTINCT + 85 )
----
1360

skipif mysql # not compatible
query I rowsort label-171
SELECT 16 * MIN ( DISTINCT + 85 )
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT 42 + 0 - + + MIN( DISTINCT 0 ) + + - 49 - + 25 - + ( + 46 ) * + 42 + 55 * + 53 * COUNT( * ) AS col0
----
951

skipif mysql # not compatible
query I rowsort label-172
SELECT 42 + 0 - + + MIN ( DISTINCT 0 ) + + - 49 - + 25 - + ( + 46 ) * + 42 + 55 * + 53 * COUNT ( * ) AS col0
----
951

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT DISTINCT - 87 * + + MIN( + 80 ) col0
----
-6960

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - 87 * + + MIN ( + 80 ) col0
----
-6960

query I rowsort
SELECT ALL - 48 * - 22 * - 83 AS col0
----
-87648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT - 4 / - 20 - CASE CAST( + ( + + ( - - COUNT( * ) ) ) AS SIGNED ) WHEN - 90 THEN ( + - 85 ) WHEN 92 THEN NULL END * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT - 4 / - 20 - CASE CAST ( + ( + + ( - - COUNT ( * ) ) ) AS INTEGER ) WHEN - 90 THEN ( + - 85 ) WHEN 92 THEN NULL END * 16
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-176
SELECT ALL + 31 * + + CAST( + + COUNT( * ) AS SIGNED ) + 11 * 92 col1
----
1043

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + 31 * + + CAST ( + + COUNT ( * ) AS INTEGER ) + 11 * 92 col1
----
1043

query I rowsort
SELECT DISTINCT - + 47 * + 61
----
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT - - 51 + - - MIN( DISTINCT 45 )
----
96

skipif mysql # not compatible
query I rowsort label-178
SELECT - - 51 + - - MIN ( DISTINCT 45 )
----
96

query I rowsort
SELECT ALL + + 97 * + 71
----
6887

query I rowsort
SELECT - 79 + - 86 * 38 * + - 55
----
179661

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT DISTINCT + 38 + - 66 - MIN( ALL + 2 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT + 38 + - 66 - MIN ( ALL + 2 ) AS col1
----
-30

query I rowsort
SELECT ALL + - 5 * + 44 * - - 67 * + 25 AS col1
----
-368500

query I rowsort
SELECT ALL - 5 + + 17 * - + ( + ( + ( - 25 ) ) ) - + 39
----
381

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT DISTINCT + COUNT( DISTINCT 1 ) AS col1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT ALL AVG ( ALL 82 ) * - CAST( NULL AS SIGNED ) + - - MAX( ALL 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL AVG ( ALL 82 ) * - CAST ( NULL AS INTEGER ) + - - MAX ( ALL 21 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT + - 49 + - + 2 DIV + 50 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-186
SELECT + - 49 + - + 2 / + 50 AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT 34 * + 19 + - + 53 + - ( - - 68 ) DIV 39
----
592

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT 34 * + 19 + - + 53 + - ( - - 68 ) / 39
----
592

query I rowsort
SELECT + 69 * - 23 AS col0
----
-1587

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-189
SELECT ALL NULLIF ( ( 94 ), - COUNT( * ) ) * + COALESCE ( - 45, 27, + MIN( + 99 ) * - + 48 - + 87 + - 47 * + + 70 DIV - + MAX( ALL + 68 ) ) * NULLIF ( COUNT( * ), - - 96 ) + 77 + - 65 - - - 68 AS col2
----
-4286

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL NULLIF ( ( 94 ), - COUNT ( * ) ) * + COALESCE ( - 45, 27, + MIN ( + 99 ) * - + 48 - + 87 + - 47 * + + 70 / - + MAX ( ALL + 68 ) ) * NULLIF ( COUNT ( * ), - - 96 ) + 77 + - 65 - - - 68 AS col2
----
-4286

query I rowsort
SELECT DISTINCT + 52 col0
----
52

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

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

query I rowsort
SELECT + 39 * + NULLIF ( - NULLIF ( - + ( + 49 ), - 39 * - 23 + - + 70 ), - ( + 33 ) + + + 28 ) col1
----
1911

query II rowsort
SELECT DISTINCT + 97 col2, 5 * + 61 AS col2
----
97
305

query I rowsort
SELECT + 9 + + + 6
----
15

query II rowsort
SELECT ALL + 71, - 28 AS col0
----
71
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT + 3 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-196
SELECT + 3 / - 75 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT + COUNT( * ) * - COALESCE ( + - 50, + + 11 * + CAST( + 86 AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-197
SELECT + COUNT ( * ) * - COALESCE ( + - 50, + + 11 * + CAST ( + 86 AS INTEGER ) )
----
50

query I rowsort
SELECT 0 * 79 - 41
----
-41

query I rowsort
SELECT + 55 - + + 12 AS col1
----
43

query I rowsort
SELECT + 31 + ( - - 46 ) col1
----
77

query I rowsort
SELECT ALL - 0 * - - 32
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-202
SELECT + 49 * + 32 * - CAST( - - 79 AS SIGNED ) AS col1
----
-123872

skipif mysql # not compatible
query I rowsort label-202
SELECT + 49 * + 32 * - CAST ( - - 79 AS INTEGER ) AS col1
----
-123872

query II rowsort
SELECT ALL 35 AS col2, 42
----
35
42

query I rowsort
SELECT DISTINCT NULLIF ( 75, + 67 - + 84 )
----
75

query I rowsort
SELECT + 96 + 58 * - 5 * + 5 * - 32 AS col2
----
46496

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + 41 * - SUM( 30 )
----
-1230

skipif mysql # not compatible
query I rowsort label-206
SELECT + 41 * - SUM ( 30 )
----
-1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT - COALESCE ( + 42, 35 - - - 46 - + COUNT( ALL + 57 ), + COUNT( * ) - + + CAST( NULL AS SIGNED ) + + - 44, + 27 ) * 27 * + 20 AS col2
----
-22680

skipif mysql # not compatible
query I rowsort label-207
SELECT - COALESCE ( + 42, 35 - - - 46 - + COUNT ( ALL + 57 ), + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + + - 44, + 27 ) * 27 * + 20 AS col2
----
-22680

query I rowsort
SELECT - - 22 - - 26 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT DISTINCT NULLIF ( + 42, 80 - - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT NULLIF ( + 42, 80 - - COUNT ( * ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-210
SELECT - - COUNT( * ) * ( 43 ) AS col0, 51 * - ( - 9 ) * - CAST( NULL AS SIGNED ) + 66 * - ( - - 30 )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-210
SELECT - - COUNT ( * ) * ( 43 ) AS col0, 51 * - ( - 9 ) * - CAST ( NULL AS INTEGER ) + 66 * - ( - - 30 )
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - 81 + + ( - COUNT( * ) ) - + 35 + - + COUNT( ALL + 42 ) * - 28 * - 73 AS col0
----
-2161

skipif mysql # not compatible
query I rowsort label-211
SELECT - 81 + + ( - COUNT ( * ) ) - + 35 + - + COUNT ( ALL + 42 ) * - 28 * - 73 AS col0
----
-2161

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL COALESCE ( - ( + 11 ), - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL COALESCE ( - ( + 11 ), - COUNT ( * ) )
----
-11

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

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

query I rowsort
SELECT DISTINCT + + 19 * 20
----
380

query I rowsort
SELECT ALL + 15 * - + 56 * - - ( + 95 ) AS col1
----
-79800

query I rowsort
SELECT - 70 + + + 57 AS col1
----
-13

query II rowsort
SELECT - - 59 AS col2, - 23 * - 41
----
59
943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-218
SELECT CAST( NULL AS SIGNED ) * + 84 - COUNT( * ) + + 84 + + MAX( DISTINCT + 95 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT CAST ( NULL AS INTEGER ) * + 84 - COUNT ( * ) + + 84 + + MAX ( DISTINCT + 95 ) AS col2
----
NULL

query I rowsort
SELECT + 67 * + - 84 AS col1
----
-5628

onlyif mysql # DIV for integer division: 
query II rowsort label-220
SELECT - 69 DIV - + 41 + - + 17 col1, ( - + 62 ) + 96
----
-16
34

skipif mysql # not compatible
query II rowsort label-220
SELECT - 69 / - + 41 + - + 17 col1, ( - + 62 ) + 96
----
-16
34

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT 51 * - - ( ( + + 65 ) ) * + NULLIF ( + 82, + - 75 * + MIN( DISTINCT + 24 ) ) + 34 AS col2
----
271864

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT 51 * - - ( ( + + 65 ) ) * + NULLIF ( + 82, + - 75 * + MIN ( DISTINCT + 24 ) ) + 34 AS col2
----
271864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-224
SELECT - 9 + 70 + - + MIN( 79 ) DIV + COUNT( DISTINCT 53 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-224
SELECT - 9 + 70 + - + MIN ( 79 ) / + COUNT ( DISTINCT 53 ) AS col1
----
-18

query I rowsort
SELECT - 7 * - 22 + + - 84
----
70

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

skipif mysql # not compatible
query I rowsort label-226
SELECT COUNT ( * ) / + 93 + + - 58 AS col2
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL ( - 58 ) * + MAX( DISTINCT + ( 84 ) ) AS col0
----
-4872

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL ( - 58 ) * + MAX ( DISTINCT + ( 84 ) ) AS col0
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - COALESCE ( + + NULLIF ( - SUM( DISTINCT + 37 ), COUNT( * ) * - + 78 + 84 - - 36 ), ( 78 ) * COUNT( * ) - - 0 ) * - 41 + + 36 + 15
----
-1466

skipif mysql # not compatible
query I rowsort label-229
SELECT - COALESCE ( + + NULLIF ( - SUM ( DISTINCT + 37 ), COUNT ( * ) * - + 78 + 84 - - 36 ), ( 78 ) * COUNT ( * ) - - 0 ) * - 41 + + 36 + 15
----
-1466

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT + MAX( DISTINCT - 14 ) * - 39
----
546

skipif mysql # not compatible
query I rowsort label-230
SELECT + MAX ( DISTINCT - 14 ) * - 39
----
546

query I rowsort
SELECT 4 * - + 81 + + 48 + 44 - - 0 AS col0
----
-232

query I rowsort
SELECT DISTINCT + 14 * 30
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT + COUNT( * ) + + 2 + + - 75
----
-72

skipif mysql # not compatible
query I rowsort label-233
SELECT + COUNT ( * ) + + 2 + + - 75
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT DISTINCT 61 + 55 - + CAST( - 81 AS SIGNED )
----
197

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT 61 + 55 - + CAST ( - 81 AS INTEGER )
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ( - + MIN( DISTINCT - + ( - - 73 ) ) ) * ( 96 ) + - 6 - - + 75 + - 33 AS col0
----
7044

skipif mysql # not compatible
query I rowsort label-235
SELECT ( - + MIN ( DISTINCT - + ( - - 73 ) ) ) * ( 96 ) + - 6 - - + 75 + - 33 AS col0
----
7044

query I rowsort
SELECT ALL 82 + + - 74 + - - 43 + 77 AS col0
----
128

query I rowsort
SELECT 79 * + 64 AS col2
----
5056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-238
SELECT - 85, + CAST( + 91 AS SIGNED ) DIV 27 * + 52 * + - ( - + 54 ) + + - NULLIF ( 10, + - 54 + CAST( NULL AS SIGNED ) * - COUNT( * ) - + 49 ) AS col1
----
-85
8414

skipif mysql # not compatible
query II rowsort label-238
SELECT - 85, + CAST ( + 91 AS INTEGER ) / 27 * + 52 * + - ( - + 54 ) + + - NULLIF ( 10, + - 54 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + 49 ) AS col1
----
-85
8414

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL - + 4 + - - 80 * + COUNT( * ) + 47 * 77 - - 15
----
3710

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - + 4 + - - 80 * + COUNT ( * ) + 47 * 77 - - 15
----
3710

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT + CASE - 58 WHEN 39 + + COALESCE ( + ( ( - 32 ) ), - - 35 * + - ( + 97 ) + - 34 / - 36 - + 2 + - + 42 * - + 40 * - 68 * - + MAX( + - 87 ) * + CAST( + - 73 AS SIGNED ) + + 31 ) / - + 75 THEN - - ( + 72 ) * + + 3 END * - 91 - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT + CASE - 58 WHEN 39 + + COALESCE ( + ( ( - 32 ) ), - - 35 * + - ( + 97 ) + - 34 / - 36 - + 2 + - + 42 * - + 40 * - 68 * - + MAX ( + - 87 ) * + CAST ( + - 73 AS INTEGER ) + + 31 ) / - + 75 THEN - - ( + 72 ) * + + 3 END * - 91 - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT - - COUNT( DISTINCT 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-242
SELECT - - COUNT ( DISTINCT 30 ) AS col0
----
1

query I rowsort
SELECT - 13 * - 58
----
754

query I rowsort
SELECT DISTINCT + ( + 95 ) * + 41 AS col0
----
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT - CASE - - 63 WHEN - + 39 * + + 74 THEN 50 + - MIN( DISTINCT - - 8 ) * - 88 WHEN - - COALESCE ( 45, + 1 + 51 * - 32 ) + 94 + + 46 + - 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT - CASE - - 63 WHEN - + 39 * + + 74 THEN 50 + - MIN ( DISTINCT - - 8 ) * - 88 WHEN - - COALESCE ( 45, + 1 + 51 * - 32 ) + 94 + + 46 + - 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT 30 * - 66 AS col0, - 79 + COUNT( * ) col1
----
-1980
-78

skipif mysql # not compatible
query II rowsort label-246
SELECT 30 * - 66 AS col0, - 79 + COUNT ( * ) col1
----
-1980
-78

query I rowsort
SELECT 36 + 94 AS col2
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT 7 DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-248
SELECT 7 / - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT - COUNT( ALL - - 18 ) * 90
----
-90

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT - COUNT ( ALL - - 18 ) * 90
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-250
SELECT 20 * - + COUNT( * ), + 15 * - + 33 + 15 AS col1
----
-20
-480

skipif mysql # not compatible
query II rowsort label-250
SELECT 20 * - + COUNT ( * ), + 15 * - + 33 + 15 AS col1
----
-20
-480

query I rowsort
SELECT ALL - ( + 6 ) * - 55
----
330

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-253
SELECT DISTINCT + ( - + CAST( + 51 AS SIGNED ) ) + + 10 col1
----
-41

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + ( - + CAST ( + 51 AS INTEGER ) ) + + 10 col1
----
-41

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-255
SELECT 32 * - 63 AS col2, - 57 * - COUNT( * ) + + SUM( 45 ) * + ( 76 )
----
-2016
3477

skipif mysql # not compatible
query II rowsort label-255
SELECT 32 * - 63 AS col2, - 57 * - COUNT ( * ) + + SUM ( 45 ) * + ( 76 )
----
-2016
3477

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

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

query I rowsort
SELECT 77 + - + 26 - + 66 * - 97
----
6453

query I rowsort
SELECT DISTINCT - 28 + 45 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL 60 + - - COUNT( DISTINCT + 53 )
----
61

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL 60 + - - COUNT ( DISTINCT + 53 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT + COALESCE ( 2, - 84 * - + 7 - 16 DIV - 4 * + 37 ) - 16 + 25 + 52 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-260
SELECT + COALESCE ( 2, - 84 * - + 7 - 16 / - 4 * + 37 ) - 16 + 25 + 52 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-261
SELECT DISTINCT ( 41 ), - 92 * - 64 * - 89 * + - 9 + - CAST( - ( + - 39 ) AS SIGNED ) * ( + CAST( NULL AS SIGNED ) ) AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-261
SELECT DISTINCT ( 41 ), - 92 * - 64 * - 89 * + - 9 + - CAST ( - ( + - 39 ) AS INTEGER ) * ( + CAST ( NULL AS INTEGER ) ) AS col1
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-262
SELECT CAST( NULL AS SIGNED ) + - 30 + + COALESCE ( - - 69, + 17 ) + - + CASE - ( + 84 ) WHEN COUNT( * ) THEN 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT CAST ( NULL AS INTEGER ) + - 30 + + COALESCE ( - - 69, + 17 ) + - + CASE - ( + 84 ) WHEN COUNT ( * ) THEN 34 END AS col1
----
NULL

query I rowsort
SELECT ALL - + 85 * + 32 AS col1
----
-2720

query I rowsort
SELECT - + 27 col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT DISTINCT 1 DIV + - 17 + 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT 1 / + - 17 + 14 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT ALL 19 * - 18 DIV + COUNT( * ) AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL 19 * - 18 / + COUNT ( * ) AS col1
----
-342

query I rowsort
SELECT 19 * - 5 * 88
----
-8360

onlyif mysql # aggregate syntax: 
query II rowsort label-268
SELECT ALL 58 / - CASE - 78 WHEN 16 + + + 24 THEN NULL WHEN COUNT( * ) THEN - + COUNT( * ) ELSE NULL END, - 2 AS col0
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-268
SELECT ALL 58 / - CASE - 78 WHEN 16 + + + 24 THEN NULL WHEN COUNT ( * ) THEN - + COUNT ( * ) ELSE NULL END, - 2 AS col0
----
NULL
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT 11 DIV SUM( ALL - 40 ) * + NULLIF ( 29, + + 87 DIV ( - 38 ) ) + 8 col0
----
8

skipif mysql # not compatible
query I rowsort label-269
SELECT 11 / SUM ( ALL - 40 ) * + NULLIF ( 29, + + 87 / ( - 38 ) ) + 8 col0
----
8

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

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

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

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

query II rowsort
SELECT 10 AS col2, 19 * + 82
----
10
1558

query I rowsort
SELECT - 99 * - 34 + + - 72
----
3294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-274
SELECT 61 - + - COUNT( * ) * - COALESCE ( - ( + + 70 ), - - 40 DIV + - 53, MAX( + 84 ), + COUNT( * ) ) + - 76 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-274
SELECT 61 - + - COUNT ( * ) * - COALESCE ( - ( + + 70 ), - - 40 / + - 53, MAX ( + 84 ), + COUNT ( * ) ) + - 76 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT - COUNT( * ) * + - 96 + + + 56
----
152

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT - COUNT ( * ) * + - 96 + + + 56
----
152

query I rowsort
SELECT + 32 + - 39 AS col1
----
-7

query I rowsort
SELECT ALL 42 * - 93 + 93 + - - 88 + 27
----
-3698

query I rowsort
SELECT 5 * + - 94 + - COALESCE ( + 95, + 30 )
----
-565

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT + CASE - 77 WHEN + 68 * 91 + - - 71 THEN + COUNT( * ) - - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT + CASE - 77 WHEN + 68 * 91 + - - 71 THEN + COUNT ( * ) - - 62 END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-281
SELECT - CAST( COUNT( * ) AS SIGNED ) + 15 + + NULLIF ( 83, - ( - 6 ) )
----
97

skipif mysql # not compatible
query I rowsort label-281
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + 15 + + NULLIF ( 83, - ( - 6 ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT DISTINCT COUNT( * ) * + 4 * 31
----
124

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT COUNT ( * ) * + 4 * 31
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT - 47, 62 - + MAX( DISTINCT + 58 ) AS col1
----
-47
4

skipif mysql # not compatible
query II rowsort label-283
SELECT - 47, 62 - + MAX ( DISTINCT + 58 ) AS col1
----
-47
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-284
SELECT - - ( COUNT( * ) ) DIV 6, + 17 AS col2
----
0
17

skipif mysql # not compatible
query II rowsort label-284
SELECT - - ( COUNT ( * ) ) / 6, + 17 AS col2
----
0
17

query I rowsort
SELECT - + 71 * 80 AS col1
----
-5680

query II rowsort
SELECT + 70 AS col2, + 77 AS col2
----
70
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT - 66 * - 63 * - 36 + + + 80 * - CAST( + COUNT( * ) AS SIGNED ) + + CAST( + - 0 AS SIGNED ) + + + COUNT( * ) * + 88 * + COUNT( * )
----
-149680

skipif mysql # not compatible
query I rowsort label-287
SELECT - 66 * - 63 * - 36 + + + 80 * - CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( + - 0 AS INTEGER ) + + + COUNT ( * ) * + 88 * + COUNT ( * )
----
-149680

query II rowsort
SELECT ALL 26, 26
----
26
26

query I rowsort
SELECT ALL + 27 - 22 * + ( - 20 )
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + SUM( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-290
SELECT + SUM ( - 16 )
----
-16

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

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

query I rowsort
SELECT - - 47 * - 29
----
-1363

query II rowsort
SELECT - 54 AS col2, ( 52 ) AS col0
----
-54
52

query I rowsort
SELECT ALL + - 78 - 36
----
-114

query I rowsort
SELECT ALL - 92 * - 19 AS col2
----
1748

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

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL MAX ( ALL - 21 )
----
-21

query I rowsort
SELECT + - 90 + + - 27
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - + 20 * + CASE 84 WHEN + CASE - 72 WHEN + + 1 THEN MAX( ALL + 62 ) END THEN NULL ELSE 87 * 67 END - + 52
----
-116632

skipif mysql # not compatible
query I rowsort label-298
SELECT - + 20 * + CASE 84 WHEN + CASE - 72 WHEN + + 1 THEN MAX ( ALL + 62 ) END THEN NULL ELSE 87 * 67 END - + 52
----
-116632

query I rowsort
SELECT + 92 + + + CASE 86 WHEN - 70 * + 14 THEN 80 END
----
NULL

query II rowsort
SELECT - ( NULLIF ( - 30, - + 49 ) ) AS col1, 27
----
30
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-301
SELECT + ( - 80 ) + - + CAST( + 53 AS SIGNED ) AS col0, NULLIF ( + - 4, - CAST( NULL AS SIGNED ) * + 24 * - MAX( - 22 ) + + 1 )
----
-133
-4

skipif mysql # not compatible
query II rowsort label-301
SELECT + ( - 80 ) + - + CAST ( + 53 AS INTEGER ) AS col0, NULLIF ( + - 4, - CAST ( NULL AS INTEGER ) * + 24 * - MAX ( - 22 ) + + 1 )
----
-133
-4

query I rowsort
SELECT ALL 51 + + - ( 44 )
----
7

query I rowsort
SELECT + 56 * + 97 col0
----
5432

query I rowsort
SELECT + 33 * + ( - + 48 )
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT - COALESCE ( COUNT( * ), 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-305
SELECT - COALESCE ( COUNT ( * ), 13 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-306
SELECT + 97 * - 48 * - ( - 35 ) * - 90, - ( - 90 ) - - - COUNT( * ) AS col2
----
14666400
89

skipif mysql # not compatible
query II rowsort label-306
SELECT + 97 * - 48 * - ( - 35 ) * - 90, - ( - 90 ) - - - COUNT ( * ) AS col2
----
14666400
89

query I rowsort
SELECT + 3 * 31
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT + NULLIF ( - NULLIF ( - COUNT( ALL 14 ), 54 ), + 85 * ( - + 9 ) / 79 + + 61 + - COUNT( * ) + + 38 + + COUNT( * ) * + 16 ) AS col2, - ( 81 ) * - 63 - + 80
----
1
5023

skipif mysql # not compatible
query II rowsort label-308
SELECT + NULLIF ( - NULLIF ( - COUNT ( ALL 14 ), 54 ), + 85 * ( - + 9 ) / 79 + + 61 + - COUNT ( * ) + + 38 + + COUNT ( * ) * + 16 ) AS col2, - ( 81 ) * - 63 - + 80
----
1
5023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT + CAST( + 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-309
SELECT + CAST ( + 48 AS INTEGER ) AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT ALL 6 DIV 56 + + ( - COUNT( * ) ) + - MAX( ALL NULLIF ( + 75, - 38 ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL 6 / 56 + + ( - COUNT ( * ) ) + - MAX ( ALL NULLIF ( + 75, - 38 ) ) AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT + ( + + 32 ) DIV + + 90 - - - 24 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-311
SELECT + ( + + 32 ) / + + 90 - - - 24 AS col2
----
-24

query II rowsort
SELECT + 67 * - 53 AS col1, ( - - 78 ) + + 71
----
-3551
149

query I rowsort
SELECT DISTINCT 90 * + + 91 AS col1
----
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL 43 * + 8 - - - 78 + COUNT( * ) + - 54
----
213

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL 43 * + 8 - - - 78 + COUNT ( * ) + - 54
----
213

query I rowsort
SELECT DISTINCT + COALESCE ( + 47, - 12 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-316
SELECT ALL - 25 * + - 11 * - 26 - CAST( 67 AS SIGNED ) + + - 25 + 60 * 95 * - 54
----
-315042

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - 25 * + - 11 * - 26 - CAST ( 67 AS INTEGER ) + + - 25 + 60 * 95 * - 54
----
-315042

query I rowsort
SELECT + - 86 * 79 * - 65 * + + ( COALESCE ( + 34, 6 * 8 ) ) - 79 AS col1
----
15014661

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT DISTINCT - 48 DIV - 43
----
1

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT - 48 / - 43
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-319
SELECT NULLIF ( - 54, - - 95 ) * + - 97 + - 19 + - MIN( + + 19 ) - - ( - 18 ) - + - 12 + + ( + ( 37 ) ) * + ( - + 80 ) + 19 * - - ( COUNT( * ) ) * - COUNT( ALL - - CAST( NULL AS SIGNED ) ) DIV + 94
----
2234

skipif mysql # not compatible
query I rowsort label-319
SELECT NULLIF ( - 54, - - 95 ) * + - 97 + - 19 + - MIN ( + + 19 ) - - ( - 18 ) - + - 12 + + ( + ( 37 ) ) * + ( - + 80 ) + 19 * - - ( COUNT ( * ) ) * - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) / + 94
----
2234

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + NULLIF ( - + ( + ( NULLIF ( 69, + - 68 ) ) ), 67 ) * - - MAX( DISTINCT - 32 ) * + COUNT( * ) + - 1 - + - 73 + - 23 AS col2
----
2257

skipif mysql # not compatible
query I rowsort label-320
SELECT + NULLIF ( - + ( + ( NULLIF ( 69, + - 68 ) ) ), 67 ) * - - MAX ( DISTINCT - 32 ) * + COUNT ( * ) + - 1 - + - 73 + - 23 AS col2
----
2257

query I rowsort
SELECT DISTINCT + 98 * + - 95 AS col1
----
-9310

query I rowsort
SELECT - + 60 * + 7 col2
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT DISTINCT - 54 * 75 * 67 * + + 29 AS col0, NULLIF ( + MAX( 93 ), - - 90 ) col0
----
-7869150
93

skipif mysql # not compatible
query II rowsort label-323
SELECT DISTINCT - 54 * 75 * 67 * + + 29 AS col0, NULLIF ( + MAX ( 93 ), - - 90 ) col0
----
-7869150
93

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT COUNT( * ) * - 1 * + 99 + - 68 + 43 * - 71 - - - 90 col0
----
-3310

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT COUNT ( * ) * - 1 * + 99 + - 68 + 43 * - 71 - - - 90 col0
----
-3310

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT DISTINCT - ( 43 ) AS col0, MAX( ALL + - 4 ) * - 83 + - - 26
----
-43
358

skipif mysql # not compatible
query II rowsort label-325
SELECT DISTINCT - ( 43 ) AS col0, MAX ( ALL + - 4 ) * - 83 + - - 26
----
-43
358

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT - + 10 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-326
SELECT - + 10 / - 68 AS col0
----
0

query I rowsort
SELECT + 23 * 20 AS col0
----
460

query I rowsort
SELECT - COALESCE ( + 45, - - 78, 0 ) * + - 5
----
225

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-329
SELECT - 81 * + 40 * - COALESCE ( 0, + 62 DIV + ( - 82 ) + CASE + + CAST( NULL AS DECIMAL ) WHEN + - 36 DIV - 16 THEN + COUNT( * ) - - 76 * + 0 * 67 END + + 55 * - + 45 + - 0 + 63, ( 17 ) )
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT - 81 * + 40 * - COALESCE ( 0, + 62 / + ( - 82 ) + CASE + + CAST ( NULL AS REAL ) WHEN + - 36 / - 16 THEN + COUNT ( * ) - - 76 * + 0 * 67 END + + 55 * - + 45 + - 0 + 63, ( 17 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT - COALESCE ( + COUNT( * ), + + 24 - - - 97 ) + + 96 AS col1, COUNT( * ) * - 71 + + 7
----
95
-64

skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + + 24 - - - 97 ) + + 96 AS col1, COUNT ( * ) * - 71 + + 7
----
95
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ALL + 13 + - + COUNT( * ) + 22
----
34

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL + 13 + - + COUNT ( * ) + 22
----
34

query I rowsort
SELECT DISTINCT - 59 + - 62
----
-121

query II rowsort
SELECT ALL 47 AS col1, + 24 + - 93 + 27 AS col2
----
47
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-334
SELECT DISTINCT 98 AS col0, CAST( - 80 AS SIGNED )
----
98
-80

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT 98 AS col0, CAST ( - 80 AS INTEGER )
----
98
-80

query I rowsort
SELECT 35 + - 1 AS col2
----
34

query I rowsort
SELECT 41 * 24 * + - 58
----
-57072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-337
SELECT 54 * + CAST( 76 AS SIGNED )
----
4104

skipif mysql # not compatible
query I rowsort label-337
SELECT 54 * + CAST ( 76 AS INTEGER )
----
4104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-338
SELECT COUNT( * ) DIV - 47 + + - CASE NULLIF ( + 21, + + 44 ) WHEN + + 47 THEN NULL ELSE 46 END
----
-46

skipif mysql # not compatible
query I rowsort label-338
SELECT COUNT ( * ) / - 47 + + - CASE NULLIF ( + 21, + + 44 ) WHEN + + 47 THEN NULL ELSE 46 END
----
-46

query I rowsort
SELECT ALL - 79 - 11
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT ALL COUNT( * ) - - + 85 - + 37 * + 4 + - MIN( ALL - ( + 6 ) ) DIV + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL COUNT ( * ) - - + 85 - + 37 * + 4 + - MIN ( ALL - ( + 6 ) ) / + COUNT ( * )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL + 6 DIV + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL + 6 / + 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT 79 * - 7 + + COUNT( * ), + COUNT( * ) - + ( - - 0 ) AS col2
----
-552
1

skipif mysql # not compatible
query II rowsort label-342
SELECT 79 * - 7 + + COUNT ( * ), + COUNT ( * ) - + ( - - 0 ) AS col2
----
-552
1

query I rowsort
SELECT ALL 22 - 72 * - 82
----
5926

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT 99 * - + COUNT( + 50 ) * - 56
----
5544

skipif mysql # not compatible
query I rowsort label-344
SELECT 99 * - + COUNT ( + 50 ) * - 56
----
5544

onlyif mysql # DIV for integer division: 
query II rowsort label-345
SELECT - 66 + + - 5 DIV - 20 AS col1, ( + + 86 ) - + 53
----
-66
33

skipif mysql # not compatible
query II rowsort label-345
SELECT - 66 + + - 5 / - 20 AS col1, ( + + 86 ) - + 53
----
-66
33

query I rowsort
SELECT - 5 * + 88 * 98 AS col0
----
-43120

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

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

query I rowsort
SELECT DISTINCT + ( - 56 ) * - - 3 col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + - CASE - 10 WHEN + SUM( DISTINCT - 86 ) + + 56 THEN 8 + NULLIF ( - 28, - - 96 ) WHEN - - 51 THEN 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT + - CASE - 10 WHEN + SUM ( DISTINCT - 86 ) + + 56 THEN 8 + NULLIF ( - 28, - - 96 ) WHEN - - 51 THEN 64 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-351
SELECT ALL + 25 * - 8 * + 16 * + 6 + - COUNT( * ), - 56 AS col0
----
-19201
-56

skipif mysql # not compatible
query II rowsort label-351
SELECT ALL + 25 * - 8 * + 16 * + 6 + - COUNT ( * ), - 56 AS col0
----
-19201
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-352
SELECT DISTINCT - - COALESCE ( + 61, 39 + - + 52 + 52 * - COUNT( * ) DIV - CASE - 56 WHEN - 67 THEN NULL ELSE + 46 + - + 3 + 58 + - 90 + - 98 * - ( 61 ) END ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - - COALESCE ( + 61, 39 + - + 52 + 52 * - COUNT ( * ) / - CASE - 56 WHEN - 67 THEN NULL ELSE + 46 + - + 3 + 58 + - 90 + - 98 * - ( 61 ) END ) AS col0
----
61

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

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

query I rowsort
SELECT ALL + 75 + + + 39
----
114

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

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

query I rowsort
SELECT 48 * - - 47
----
2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-357
SELECT DISTINCT - COALESCE ( + 59, - + COUNT( * ) DIV - 37 + - 81, + 8 ) + + COUNT( * ) + COUNT( DISTINCT 89 ) + - 64 * 23 + + ( - 40 ) * + + COUNT( * ) + - - COALESCE ( COALESCE ( - + 1, 71 + + - 14 DIV + - 72 * 52 ), + 93 * - + 74 * + 13 + - + COUNT( - - 3 ) * + 38 * + 66 + + 21, - CAST( NULL AS SIGNED ) - + 56 - 83 ) + + - ( + + 0 )
----
-1570

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT - COALESCE ( + 59, - + COUNT ( * ) / - 37 + - 81, + 8 ) + + COUNT ( * ) + COUNT ( DISTINCT 89 ) + - 64 * 23 + + ( - 40 ) * + + COUNT ( * ) + - - COALESCE ( COALESCE ( - + 1, 71 + + - 14 / + - 72 * 52 ), + 93 * - + 74 * + 13 + - + COUNT ( - - 3 ) * + 38 * + 66 + + 21, - CAST ( NULL AS INTEGER ) - + 56 - 83 ) + + - ( + + 0 )
----
-1570

query II rowsort
SELECT DISTINCT 29 AS col1, 24 + + 65
----
29
89

query I rowsort
SELECT 74 + + 27
----
101

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-361
SELECT DISTINCT 42 AS col1, COUNT( - 57 ) / - 2 + - CAST( NULL AS SIGNED ) * - CASE + - 19 WHEN + - 86 / + - 34 + + 20 THEN - 70 WHEN - 70 THEN COALESCE ( - 54, 75 * - ( - 8 ) + - + 99, - 51 ) ELSE NULL END * - COUNT( * ) AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-361
SELECT DISTINCT 42 AS col1, COUNT ( - 57 ) / - 2 + - CAST ( NULL AS INTEGER ) * - CASE + - 19 WHEN + - 86 / + - 34 + + 20 THEN - 70 WHEN - 70 THEN COALESCE ( - 54, 75 * - ( - 8 ) + - + 99, - 51 ) ELSE NULL END * - COUNT ( * ) AS col2
----
42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT ALL CAST( NULL AS SIGNED ) + 31 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL CAST ( NULL AS INTEGER ) + 31 * - 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-363
SELECT DISTINCT + 0 DIV - COALESCE ( - COUNT( * ), - - 8 * MAX( + - 54 ) * - SUM( DISTINCT - 51 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT + 0 / - COALESCE ( - COUNT ( * ), - - 8 * MAX ( + - 54 ) * - SUM ( DISTINCT - 51 ) ) AS col2
----
0

query I rowsort
SELECT 64 * + - 65
----
-4160

query I rowsort
SELECT 71 + + 1 + - 30 AS col2
----
42

query I rowsort
SELECT 80 + - - 44 * + 54
----
2456

query I rowsort
SELECT 51 * - + 8 * + 91 col1
----
-37128

query II rowsort
SELECT - 13 AS col1, - 17 * - 22 + + 10 AS col0
----
-13
384

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL 73 - SUM( + 66 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL 73 - SUM ( + 66 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT ALL 68 AS col1, CASE + + 6 WHEN + ( 54 ) + SUM( 59 ) THEN 53 END + - COUNT( * ) AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-371
SELECT ALL 68 AS col1, CASE + + 6 WHEN + ( 54 ) + SUM ( 59 ) THEN 53 END + - COUNT ( * ) AS col2
----
68
NULL

query II rowsort
SELECT - 70 AS col2, 12
----
-70
12

query I rowsort
SELECT ALL + 10 - - 69 AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-374
SELECT COUNT( DISTINCT - 33 ) * + 5 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-374
SELECT COUNT ( DISTINCT - 33 ) * + 5 / 39
----
0

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

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + 20 * + 56 / - COUNT ( * )
----
-1120

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

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

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

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

skipif mysql # not compatible
query I rowsort label-378
SELECT MAX ( ( + ( + 4 ) ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT - MAX( ALL - 85 ) * + - 90 * - 34 AS col1
----
260100

skipif mysql # not compatible
query I rowsort label-379
SELECT - MAX ( ALL - 85 ) * + - 90 * - 34 AS col1
----
260100

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT + + 48 DIV - 69 - - 47 + + + 93 * 90 * - - 33 * + 77 AS col2
----
21268217

skipif mysql # not compatible
query I rowsort label-380
SELECT + + 48 / - 69 - - 47 + + + 93 * 90 * - - 33 * + 77 AS col2
----
21268217

query I rowsort
SELECT 14 / - CASE - 15 WHEN + 96 THEN AVG ( + 26 ) / - 6 WHEN - + ( + AVG ( DISTINCT 70 ) ) THEN NULL WHEN + 88 THEN - + 66 ELSE NULL END * 61
----
NULL

query II rowsort
SELECT ALL 56 * - 39, - 80 AS col2
----
-2184
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT 94 / CASE + 33 WHEN + MIN( + 93 ) THEN - 75 - + NULLIF ( + - MAX( ALL + 57 ), - + 48 ) * 89 ELSE NULL END * + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-383
SELECT 94 / CASE + 33 WHEN + MIN ( + 93 ) THEN - 75 - + NULLIF ( + - MAX ( ALL + 57 ), - + 48 ) * 89 ELSE NULL END * + - 84
----
NULL

query I rowsort
SELECT ALL - ( 84 ) * + + 76 + 5 AS col2
----
-6379

onlyif mysql # DIV for integer division: 
query II rowsort label-385
SELECT + 6, 59 + 16 DIV + 98 AS col1
----
6
59

skipif mysql # not compatible
query II rowsort label-385
SELECT + 6, 59 + 16 / + 98 AS col1
----
6
59

query I rowsort
SELECT ALL - 57 + - - ( 5 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT 42 + - 9 DIV + 99
----
42

skipif mysql # not compatible
query I rowsort label-387
SELECT 42 + - 9 / + 99
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-388
SELECT - COALESCE ( + 40, - 83 ) * + - 14 + - CAST( - - 46 AS SIGNED ), + 91 col0
----
514
91

skipif mysql # not compatible
query II rowsort label-388
SELECT - COALESCE ( + 40, - 83 ) * + - 14 + - CAST ( - - 46 AS INTEGER ), + 91 col0
----
514
91

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT DISTINCT COUNT( * ) * - + 65 * + ( + 67 ) AS col1, + 22 * + 3 AS col0
----
-4355
66

skipif mysql # not compatible
query II rowsort label-389
SELECT DISTINCT COUNT ( * ) * - + 65 * + ( + 67 ) AS col1, + 22 * + 3 AS col0
----
-4355
66

query II rowsort
SELECT + NULLIF ( ( + + 34 ), + 2 * - 85 ) * + 71 AS col2, + 33
----
2414
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT + - 58 + - ( - - CAST( NULL AS SIGNED ) ) - + SUM( DISTINCT + 15 ) - - - 6 / 73 * + 13 / + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-391
SELECT + - 58 + - ( - - CAST ( NULL AS INTEGER ) ) - + SUM ( DISTINCT + 15 ) - - - 6 / 73 * + 13 / + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 53 * + 56 + + - 92 AS col1
----
2876

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

query II rowsort
SELECT 20, - 98 col2
----
20
-98

query I rowsort
SELECT ALL + 14 * + + 57 * - ( 42 )
----
-33516

query I rowsort
SELECT + ( + 82 ) * + 65 AS col2
----
5330

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - COALESCE ( - COUNT( * ), - 55 + - - 75 * 94, 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-397
SELECT - COALESCE ( - COUNT ( * ), - 55 + - - 75 * 94, 84 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-398
SELECT + CAST( 28 AS SIGNED ) + - 48
----
-20

skipif mysql # not compatible
query I rowsort label-398
SELECT + CAST ( 28 AS INTEGER ) + - 48
----
-20

query I rowsort
SELECT + 91 - ( - - 24 ) AS col2
----
67

query I rowsort
SELECT - CASE - + 79 WHEN - 64 THEN + - 41 ELSE NULL END
----
NULL

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

query I rowsort
SELECT ALL 32 * - 57 AS col0
----
-1824

query I rowsort
SELECT ALL - 79 - - 32
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL MIN( - - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL MIN ( - - 98 )
----
98

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

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

query I rowsort
SELECT DISTINCT 84 * - 65
----
-5460

query I rowsort
SELECT + 8 + + 22 AS col1
----
30

query II rowsort
SELECT - 14 - + - 42 col0, - 29
----
28
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT - CAST( + 95 AS SIGNED ) * COUNT( * ) * + 72 AS col1
----
-6840

skipif mysql # not compatible
query I rowsort label-409
SELECT - CAST ( + 95 AS INTEGER ) * COUNT ( * ) * + 72 AS col1
----
-6840

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

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

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

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

query I rowsort
SELECT - 66 * + 10 AS col2
----
-660

query I rowsort
SELECT ALL + 69 + + 32 + 74 AS col1
----
175

query I rowsort
SELECT DISTINCT + 19 * + 66 * + - 22
----
-27588

query I rowsort
SELECT - 14 + - - 51 + - - 46 * + 69 + + + 49
----
3260

onlyif mysql # aggregate syntax: 
query II rowsort label-416
SELECT ALL - - 23 * + 70 * - + MIN( DISTINCT - 1 ) + - COUNT( * ) col0, + 85 col1
----
1609
85

skipif mysql # not compatible
query II rowsort label-416
SELECT ALL - - 23 * + 70 * - + MIN ( DISTINCT - 1 ) + - COUNT ( * ) col0, + 85 col1
----
1609
85

query III rowsort
SELECT + ( + + 14 ), 22 AS col2, + 83 + 91 AS col0
----
14
22
174

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT - + CASE - + 84 WHEN + SUM( 74 ) * AVG ( - - 98 ) / - + 40 THEN COUNT( * ) END * 55 - - - 81 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT - + CASE - + 84 WHEN + SUM ( 74 ) * AVG ( - - 98 ) / - + 40 THEN COUNT ( * ) END * 55 - - - 81 * 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT DISTINCT + - COALESCE ( ( 46 ), - 54 - - - 42, + + NULLIF ( - + 76, NULLIF ( - 81, 51 ) ) + MAX( ALL + - 19 ) ), MAX( ALL - 48 ) * 10 + - 13 AS col0
----
-46
-493

skipif mysql # not compatible
query II rowsort label-419
SELECT DISTINCT + - COALESCE ( ( 46 ), - 54 - - - 42, + + NULLIF ( - + 76, NULLIF ( - 81, 51 ) ) + MAX ( ALL + - 19 ) ), MAX ( ALL - 48 ) * 10 + - 13 AS col0
----
-46
-493

query I rowsort
SELECT DISTINCT + 57 * - - 58 + - - 32 + + 29
----
3367

query I rowsort
SELECT - ( 33 ) * + - 82
----
2706

query I rowsort
SELECT DISTINCT + + 41 * + 19 + 25
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT 74 * ( 2 ) - - 53 + 3 + - COUNT( * )
----
203

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT 74 * ( 2 ) - - 53 + 3 + - COUNT ( * )
----
203

query I rowsort
SELECT ALL + 85 * + 3 - - 9 * + - 60 AS col0
----
-285

query I rowsort
SELECT + - 21 * + ( - - 33 ) + - - 67 * - 23 * + 1
----
-2234

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

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

query I rowsort
SELECT - 80 * + 55 col0
----
-4400

query I rowsort
SELECT DISTINCT - 0 * + 98 * 88 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-429
SELECT + MAX( ALL - 30 ) DIV + + 97 AS col2, 97 + + 0 + + + 69 + 90
----
0
256

skipif mysql # not compatible
query II rowsort label-429
SELECT + MAX ( ALL - 30 ) / + + 97 AS col2, 97 + + 0 + + + 69 + 90
----
0
256

query I rowsort
SELECT - 74 * + - 57
----
4218

query I rowsort
SELECT - 50 * + - 43 AS col1
----
2150

query I rowsort
SELECT + 68 + - 67
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - CASE 55 WHEN - + 67 THEN 79 WHEN + ( - - ( - MAX( ALL - 31 ) ) ) THEN + + MAX( - - 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT - CASE 55 WHEN - + 67 THEN 79 WHEN + ( - - ( - MAX ( ALL - 31 ) ) ) THEN + + MAX ( - - 40 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 37 * + 53 AS col2
----
-1961

query I rowsort
SELECT + 20 * - - 3 AS col1
----
60

query II rowsort
SELECT DISTINCT 64, 1 * - 4 AS col1
----
64
-4

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

query I rowsort
SELECT + ( - - 98 ) + - - 47 * 8
----
474

query I rowsort
SELECT + 84 * + - 34 AS col1
----
-2856

query I rowsort
SELECT - COALESCE ( 2, ( - - 81 ) ) AS col0
----
-2

query I rowsort
SELECT DISTINCT 13 * - 55 AS col2
----
-715

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-442
SELECT ALL MAX( + + 81 ) + + 75 AS col1, + 98 DIV + 94 + - 72
----
156
-71

skipif mysql # not compatible
query II rowsort label-442
SELECT ALL MAX ( + + 81 ) + + 75 AS col1, + 98 / + 94 + - 72
----
156
-71

query I rowsort
SELECT - 43 * - - ( 79 ) col0
----
-3397

query I rowsort
SELECT ALL 66 * + 62 col2
----
4092

query I rowsort
SELECT DISTINCT - 71 + 16 AS col2
----
-55

query I rowsort
SELECT ALL - 12 + - 16 * + 6 AS col1
----
-108

query II rowsort
SELECT 76 AS col0, 22 AS col1
----
76
22

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL - 21 * + CASE 97 WHEN - + 57 THEN NULL WHEN + COUNT( * ) * 5 THEN NULL WHEN - - COUNT( * ) + - + COUNT( * ) THEN + 23 END / + COUNT( * ) * + MIN( ALL + 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - 21 * + CASE 97 WHEN - + 57 THEN NULL WHEN + COUNT ( * ) * 5 THEN NULL WHEN - - COUNT ( * ) + - + COUNT ( * ) THEN + 23 END / + COUNT ( * ) * + MIN ( ALL + 33 ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-450
SELECT - - 77 DIV - SUM( - 55 ) col1, - 55 DIV + + 51 * + - ( + COUNT( * ) ) + 71 + - 64 AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-450
SELECT - - 77 / - SUM ( - 55 ) col1, - 55 / + + 51 * + - ( + COUNT ( * ) ) + 71 + - 64 AS col1
----
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT COALESCE ( - 12, COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-451
SELECT COALESCE ( - 12, COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT + - 67 DIV 69 * + COUNT( * ) * 33
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + - 67 / 69 * + COUNT ( * ) * 33
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-453
SELECT ALL + 67 DIV 17 * 93 + - COUNT( * )
----
278

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + 67 / 17 * 93 + - COUNT ( * )
----
278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-454
SELECT - CAST( - COUNT( * ) AS SIGNED ) DIV + ( - 20 ) - 63 * - 50
----
3150

skipif mysql # not compatible
query I rowsort label-454
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / + ( - 20 ) - 63 * - 50
----
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-455
SELECT + + 46 col1, 1 - - ( COALESCE ( - 12, + + 48 DIV 78 + COUNT( * ) ) ) + ( + COUNT( * ) ) DIV - 90 * - - 72 AS col1
----
46
-11

skipif mysql # not compatible
query II rowsort label-455
SELECT + + 46 col1, 1 - - ( COALESCE ( - 12, + + 48 / 78 + COUNT ( * ) ) ) + ( + COUNT ( * ) ) / - 90 * - - 72 AS col1
----
46
-11

query I rowsort
SELECT - 1 - 14 AS col0
----
-15

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL - COUNT( * ) - + - 0 + + + 72 col0
----
71

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL - COUNT ( * ) - + - 0 + + + 72 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT MAX( - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-460
SELECT MAX ( - - 41 )
----
41

query I rowsort
SELECT DISTINCT - 14 * - 59 * - 32
----
-26432

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

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

query I rowsort
SELECT + 81 + + + 1 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + 51 - ( - COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-464
SELECT + 51 - ( - COUNT ( * ) )
----
52

query I rowsort
SELECT ALL - 70 * + 60 * + - 66 + - 47 AS col1
----
277153

query I rowsort
SELECT 54 * + 58
----
3132

query I rowsort
SELECT 90 * - 63 * - ( + 13 )
----
73710

query I rowsort
SELECT DISTINCT - CASE + 84 WHEN 56 THEN NULL WHEN + 1 * 44 THEN - - 47 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-469
SELECT 80 * - 28 col0, + 93 DIV + 63 + COUNT( * )
----
-2240
2

skipif mysql # not compatible
query II rowsort label-469
SELECT 80 * - 28 col0, + 93 / + 63 + COUNT ( * )
----
-2240
2

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL COUNT( * ) * + CASE + - 99 WHEN + 1 / 74 * COUNT( * ) THEN ( + - MAX( 99 ) ) END * - 50 / - + 79 - + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL COUNT ( * ) * + CASE + - 99 WHEN + 1 / 74 * COUNT ( * ) THEN ( + - MAX ( 99 ) ) END * - 50 / - + 79 - + + 69 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT DISTINCT + 79 DIV + 14 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT + 79 / + 14 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-472
SELECT 70 DIV - - 96, COUNT( * ) DIV + 19 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-472
SELECT 70 / - - 96, COUNT ( * ) / + 19 AS col0
----
0
0

query II rowsort
SELECT 79 * + 9 AS col1, - 54 col2
----
711
-54

query I rowsort
SELECT ALL 72 + - - 12 * - + 60
----
-648

query I rowsort
SELECT 86 - - 41 * - 93
----
-3727

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL + 61 * + ( - CASE - 7 WHEN 79 THEN - CASE 42 WHEN - + 64 THEN 40 WHEN + 18 * - - 41 - + 3 * ( ( + 6 ) ) - 68 + - + 0 - + 36 + + 80 * - COUNT( * ) THEN NULL END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL + 61 * + ( - CASE - 7 WHEN 79 THEN - CASE 42 WHEN - + 64 THEN 40 WHEN + 18 * - - 41 - + 3 * ( ( + 6 ) ) - 68 + - + 0 - + 36 + + 80 * - COUNT ( * ) THEN NULL END END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT DISTINCT - 7 + - COUNT( * ) - CASE + 91 WHEN 44 THEN NULL WHEN - 7 THEN - 31 * - CAST( 54 AS SIGNED ) ELSE + 97 * 17 END AS col2
----
-1657

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - 7 + - COUNT ( * ) - CASE + 91 WHEN 44 THEN NULL WHEN - 7 THEN - 31 * - CAST ( 54 AS INTEGER ) ELSE + 97 * 17 END AS col2
----
-1657

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + - - 90
----
92

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + - - 90
----
92

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-481
SELECT 48 + - - CAST( NULL AS SIGNED ) AS col1, COALESCE ( + - 59, 48 )
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-481
SELECT 48 + - - CAST ( NULL AS INTEGER ) AS col1, COALESCE ( + - 59, 48 )
----
NULL
-59

query I rowsort
SELECT - 5 - 69 * + - 37 AS col0
----
2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT 38 + + - CAST( + 15 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-483
SELECT 38 + + - CAST ( + 15 AS INTEGER )
----
23

query I rowsort
SELECT ALL ( - 56 ) + 21 AS col1
----
-35

query I rowsort
SELECT ALL 2 + + 43 + - - 74 * - 21 - + - 59 * 14 col1
----
-683

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT + MAX( DISTINCT + 87 ) + - - 69
----
156

skipif mysql # not compatible
query I rowsort label-486
SELECT + MAX ( DISTINCT + 87 ) + - - 69
----
156

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + SUM( ALL 60 ) + - 52
----
8

skipif mysql # not compatible
query I rowsort label-489
SELECT + SUM ( ALL 60 ) + - 52
----
8

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

skipif mysql # not compatible
query I rowsort label-490
SELECT - CAST ( NULL AS INTEGER ) * + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-491
SELECT - 94 * 66 + + ( COUNT( * ) ) col2, - ( + ( - 10 ) )
----
-6203
10

skipif mysql # not compatible
query II rowsort label-491
SELECT - 94 * 66 + + ( COUNT ( * ) ) col2, - ( + ( - 10 ) )
----
-6203
10

query I rowsort
SELECT ALL - CASE + - 95 WHEN + + 67 + - 99 THEN + 48 WHEN - 13 * - + 1 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT + - 55 * COUNT( * ) - + 38 + + 27 * MAX( DISTINCT - - 59 ) AS col2
----
1500

skipif mysql # not compatible
query I rowsort label-493
SELECT + - 55 * COUNT ( * ) - + 38 + + 27 * MAX ( DISTINCT - - 59 ) AS col2
----
1500

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT 17 * 90 DIV - 93 + - - 45 * + - 71 * + + 24
----
-76696

skipif mysql # not compatible
query I rowsort label-494
SELECT 17 * 90 / - 93 + - - 45 * + - 71 * + + 24
----
-76696

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT 30 DIV - 14 + 36 + + 57 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-495
SELECT 30 / - 14 + 36 + + 57 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT + + MIN( + 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-496
SELECT + + MIN ( + 18 ) col2
----
18

query I rowsort
SELECT ALL 3 * - + 99
----
-297

query I rowsort
SELECT CASE - - 43 WHEN + + 93 / - 92 * - 12 * - 23 * - ( + 51 ) THEN + 94 WHEN + 93 THEN - - 87 END * + 80 / + 17 + + 67 * - + CASE 22 WHEN - 14 THEN NULL ELSE + 37 - + - 58 END
----
NULL

query I rowsort
SELECT 96 + + 59
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-500
SELECT DISTINCT + 75 + - 33 * + 57, ( + COUNT( * ) ) + - 45 col1
----
-1806
-44

skipif mysql # not compatible
query II rowsort label-500
SELECT DISTINCT + 75 + - 33 * + 57, ( + COUNT ( * ) ) + - 45 col1
----
-1806
-44

query I rowsort
SELECT ALL + 66 * 10 AS col0
----
660

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

skipif mysql # not compatible
query I rowsort label-502
SELECT 15 * + 30 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-503
SELECT 86 + - CAST( - 30 AS SIGNED ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-503
SELECT 86 + - CAST ( - 30 AS INTEGER ) AS col1
----
116

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

query I rowsort
SELECT ALL 61 + + 91
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT 5 DIV + 1 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-506
SELECT 5 / + 1 AS col1
----
5

query I rowsort
SELECT ALL + 57 + - + 49
----
8

query I rowsort
SELECT ALL 19 + + 96 AS col2
----
115

query I rowsort
SELECT 21 + - ( - ( - 59 ) )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT ALL + NULLIF ( + 79, - + 84 ) DIV 32 * + 21 * 99 DIV + + 76 + + 96
----
150

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + NULLIF ( + 79, - + 84 ) / 32 * + 21 * 99 / + + 76 + + 96
----
150

query I rowsort
SELECT DISTINCT + 88 * - 13 AS col2
----
-1144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT - - MIN( 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-513
SELECT - - MIN ( 47 ) AS col2
----
47

query I rowsort
SELECT + + 60 + - 26 + - 76 AS col2
----
-42

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

skipif mysql # not compatible
query I rowsort label-515
SELECT - - 49 / + COUNT ( * ) AS col0
----
49

query I rowsort
SELECT DISTINCT - 27 * + 58 * 2
----
-3132

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

query I rowsort
SELECT DISTINCT + COALESCE ( - 59, + 42 ) * 95 AS col2
----
-5605

query I rowsort
SELECT + 6 * - 50
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-520
SELECT - 50 + - + COUNT( * ) + - 85 DIV - + 35 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-520
SELECT - 50 + - + COUNT ( * ) + - 85 / - + 35 AS col1
----
-49

query I rowsort
SELECT + - 42 * ( - + 20 ) * 15 + ( 19 )
----
12619

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT + + MIN( ALL - 80 ) - + - 97 * - - 10 col0
----
890

skipif mysql # not compatible
query I rowsort label-522
SELECT + + MIN ( ALL - 80 ) - + - 97 * - - 10 col0
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT DISTINCT + CASE 31 WHEN + AVG ( - + ( + ( 81 ) ) ) THEN - COUNT( * ) * - + AVG ( + 81 ) WHEN - 3 THEN NULL ELSE + CASE - + 27 WHEN 94 THEN NULL ELSE COALESCE ( - ( - 32 ), - - 28 + + NULLIF ( + + 29, - + 71 ) ) - + - 34 END * - - 13 * - 17 * 99 END AS col2
----
-1444014

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT + CASE 31 WHEN + AVG ( - + ( + ( 81 ) ) ) THEN - COUNT ( * ) * - + AVG ( + 81 ) WHEN - 3 THEN NULL ELSE + CASE - + 27 WHEN 94 THEN NULL ELSE COALESCE ( - ( - 32 ), - - 28 + + NULLIF ( + + 29, - + 71 ) ) - + - 34 END * - - 13 * - 17 * 99 END AS col2
----
-1444014

query I rowsort
SELECT ALL + 4 * - 95
----
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT + - CAST( + 4 AS SIGNED ) - 58 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-525
SELECT + - CAST ( + 4 AS INTEGER ) - 58 AS col1
----
-62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-527
SELECT + COALESCE ( ( - + 42 ), + ( 10 ) + - CAST( NULL AS SIGNED ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-527
SELECT + COALESCE ( ( - + 42 ), + ( 10 ) + - CAST ( NULL AS INTEGER ) ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-528
SELECT DISTINCT 68 * + 30 * + NULLIF ( + ( + 43 ), + + 5 * CAST( 17 AS SIGNED ) + + 68 )
----
87720

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT 68 * + 30 * + NULLIF ( + ( + 43 ), + + 5 * CAST ( 17 AS INTEGER ) + + 68 )
----
87720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-529
SELECT ALL + CASE - + 23 WHEN - 73 THEN + 81 / - 46 / - 37 / + - 83 * + - 2 - + - 20 + - CAST( + AVG ( ALL 89 ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL + CASE - + 23 WHEN - 73 THEN + 81 / - 46 / - 37 / + - 83 * + - 2 - + - 20 + - CAST ( + AVG ( ALL 89 ) AS INTEGER ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-530
SELECT + CASE WHEN 83 >= + 90 THEN + - 42 * ( - 75 ) * - 86 ELSE + 83 + - 20 DIV - NULLIF ( + 21, - 63 ) * + 31 END, 15 AS col1
----
83
15

skipif mysql # not compatible
query II rowsort label-530
SELECT + CASE WHEN 83 >= + 90 THEN + - 42 * ( - 75 ) * - 86 ELSE + 83 + - 20 / - NULLIF ( + 21, - 63 ) * + 31 END, 15 AS col1
----
83
15

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL 3 * - - CASE 63 WHEN 70 * - - COUNT( * ) THEN + + 47 WHEN 18 THEN NULL WHEN - 18 THEN - COUNT( * ) ELSE - COUNT( * ) * + 19 * + - 11 END
----
627

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL 3 * - - CASE 63 WHEN 70 * - - COUNT ( * ) THEN + + 47 WHEN 18 THEN NULL WHEN - 18 THEN - COUNT ( * ) ELSE - COUNT ( * ) * + 19 * + - 11 END
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + ( - 70 ) / - 57 + + 40 - - CASE 69 WHEN + + 63 THEN + + 6 ELSE NULL END + - - COUNT( * ) - COUNT( * ) * - COUNT( * ) * + + 45 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-532
SELECT + ( - 70 ) / - 57 + + 40 - - CASE 69 WHEN + + 63 THEN + + 6 ELSE NULL END + - - COUNT ( * ) - COUNT ( * ) * - COUNT ( * ) * + + 45 * - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT CASE - 30 WHEN + ( - COUNT( * ) ) THEN NULL ELSE + 22 END AS col2
----
22

skipif mysql # not compatible
query I rowsort label-533
SELECT CASE - 30 WHEN + ( - COUNT ( * ) ) THEN NULL ELSE + 22 END AS col2
----
22

query I rowsort
SELECT ALL 59 * - + 24 + + + 83
----
-1333

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT ALL 20 DIV ( - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL 20 / ( - 70 )
----
0

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

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

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

query II rowsort
SELECT ALL 75 AS col1, - 11 * - - 93 * 44 - + 88 * - 18 AS col2
----
75
-43428

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT MAX( DISTINCT - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-541
SELECT MAX ( DISTINCT - - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT + SUM( ALL + ( + 7 ) ) + 97 * + + 60 * + + 34 + - + 58 AS col0
----
197829

skipif mysql # not compatible
query I rowsort label-542
SELECT + SUM ( ALL + ( + 7 ) ) + 97 * + + 60 * + + 34 + - + 58 AS col0
----
197829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-543
SELECT DISTINCT 7 - 10 / CASE + 79 WHEN - + COUNT( * ) * 9 * + 3 * ( - 61 ) THEN + + 3 END * - ( 24 ) * - 7 - + CAST( + 52 AS SIGNED ) / 83 * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT 7 - 10 / CASE + 79 WHEN - + COUNT ( * ) * 9 * + 3 * ( - 61 ) THEN + + 3 END * - ( 24 ) * - 7 - + CAST ( + 52 AS INTEGER ) / 83 * - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT + 27 - - 17 * + 23 AS col2
----
418

query I rowsort
SELECT + 40 - - 4 * - 41
----
-124

query I rowsort
SELECT - + 20 * 6
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT ALL 24 - + 0 DIV + 73 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL 24 - + 0 / + 73 AS col1
----
24

query I rowsort
SELECT DISTINCT - + 31 - + 76 * + + 51
----
-3907

query II rowsort
SELECT - 81 * - 26, ( - - 41 ) AS col0
----
2106
41

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT ALL 21 AS col0, + COUNT( * )
----
21
1

skipif mysql # not compatible
query II rowsort label-550
SELECT ALL 21 AS col0, + COUNT ( * )
----
21
1

query II rowsort
SELECT - + 93 AS col0, + 58 AS col2
----
-93
58

query I rowsort
SELECT - + 68 + + 4 col1
----
-64

query I rowsort
SELECT - + 63 - + 61 col1
----
-124

query II rowsort
SELECT - + 11, 75 col0
----
-11
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT ALL - - CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 72
----
NULL

query I rowsort
SELECT - 70 + - 41 col1
----
-111

query I rowsort
SELECT ALL + 91 * - 1 * + 89 AS col1
----
-8099

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

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

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

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

query I rowsort
SELECT - 97 + 96
----
-1

query I rowsort
SELECT ALL + 92 * + + CASE + + 49 WHEN - + 3 THEN - 13 WHEN 87 / - 3 THEN - + 51 + - 56 END AS col2
----
NULL

query I rowsort
SELECT 92 * - 10 + - 80
----
-1000

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

skipif mysql # not compatible
query I rowsort label-563
SELECT - ( + CAST ( NULL AS INTEGER ) ) * 18 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT + 68 * - + MAX( - 71 ) + - 59
----
4769

skipif mysql # not compatible
query I rowsort label-564
SELECT + 68 * - + MAX ( - 71 ) + - 59
----
4769

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT 38 DIV - 21 + - + ( - - 11 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-565
SELECT 38 / - 21 + - + ( - - 11 ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT ALL + 46 DIV + 71 + 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + 46 / + 71 + 12 AS col2
----
12

query I rowsort
SELECT ALL 50 * + 96 * 60
----
288000

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT + 55 + COALESCE ( 96, + 72 ) * + COALESCE ( + 18, - - COUNT( * ) ) + COUNT( - 36 ) AS col2
----
1784

skipif mysql # not compatible
query I rowsort label-568
SELECT + 55 + COALESCE ( 96, + 72 ) * + COALESCE ( + 18, - - COUNT ( * ) ) + COUNT ( - 36 ) AS col2
----
1784

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT DISTINCT + 30 DIV 97 + + NULLIF ( - 42, 92 * + + 46 * + 20 )
----
-42

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT + 30 / 97 + + NULLIF ( - 42, 92 * + + 46 * + 20 )
----
-42

query II rowsort
SELECT ALL 14 * - 16 AS col0, ( 93 )
----
-224
93

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT + COUNT( * ) * + COUNT( * ) * 91 - - 3 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-571
SELECT + COUNT ( * ) * + COUNT ( * ) * 91 - - 3 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT + 1 + + 33 DIV + 24 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-572
SELECT + 1 + + 33 / + 24 AS col1
----
2

query I rowsort
SELECT DISTINCT - 3 * 56 - 54 * - 50
----
2532

query I rowsort
SELECT + 72 * + + 57
----
4104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-575
SELECT ALL ( 40 ) - - 27 - + - 46 * + CAST( NULL AS SIGNED ) col2, - CAST( + 95 AS SIGNED ) - - - 78 * + ( + 41 ) * + + ( 36 )
----
NULL
-115223

skipif mysql # not compatible
query II rowsort label-575
SELECT ALL ( 40 ) - - 27 - + - 46 * + CAST ( NULL AS INTEGER ) col2, - CAST ( + 95 AS INTEGER ) - - - 78 * + ( + 41 ) * + + ( 36 )
----
NULL
-115223

query I rowsort
SELECT - 25 + + 55 AS col0
----
30

query I rowsort
SELECT DISTINCT 94 - 55 + - 42 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-578
SELECT ALL CASE - AVG ( + - 56 ) WHEN - ( + - ( - + 22 ) ) THEN + + 52 WHEN + 67 THEN - + 12 / + + 11 END / 79 * 16 * 3 / + 37 * + + CAST( + CAST( + 38 AS SIGNED ) AS SIGNED ) + - - 5 + - + 13 * - 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL CASE - AVG ( + - 56 ) WHEN - ( + - ( - + 22 ) ) THEN + + 52 WHEN + 67 THEN - + 12 / + + 11 END / 79 * 16 * 3 / + 37 * + + CAST ( + CAST ( + 38 AS INTEGER ) AS INTEGER ) + - - 5 + - + 13 * - 42 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL CASE 26 WHEN 45 THEN + 35 * + 38 * 7 WHEN - COUNT( * ) THEN NULL ELSE - 6 * 63 * - 99 + - + COUNT( * ) * + COALESCE ( + 52, - + 72 ) + + 32 END
----
37402

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL CASE 26 WHEN 45 THEN + 35 * + 38 * 7 WHEN - COUNT ( * ) THEN NULL ELSE - 6 * 63 * - 99 + - + COUNT ( * ) * + COALESCE ( + 52, - + 72 ) + + 32 END
----
37402

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT DISTINCT - 11 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - 11 / 65 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-581
SELECT ALL CASE + 65 WHEN ( - 73 ) * + 66 - - CAST( ( - 59 ) AS SIGNED ) THEN 44 * + 76 + + 35 WHEN + 50 * + + 90 * + + 13 * - MIN( ALL 66 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL CASE + 65 WHEN ( - 73 ) * + 66 - - CAST ( ( - 59 ) AS INTEGER ) THEN 44 * + 76 + + 35 WHEN + 50 * + + 90 * + + 13 * - MIN ( ALL 66 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT ALL 57 * + 25 DIV - COUNT( * ) AS col0
----
-1425

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL 57 * + 25 / - COUNT ( * ) AS col0
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-583
SELECT - - CAST( - - MAX( - 29 ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-583
SELECT - - CAST ( - - MAX ( - 29 ) AS INTEGER )
----
-29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-585
SELECT COUNT( * ) * + 39 + - + NULLIF ( COUNT( * ), - 79 ) AS col2, ( + + 68 )
----
38
68

skipif mysql # not compatible
query II rowsort label-585
SELECT COUNT ( * ) * + 39 + - + NULLIF ( COUNT ( * ), - 79 ) AS col2, ( + + 68 )
----
38
68

query I rowsort
SELECT 84 * - 68 + - + 68 - - - 28
----
-5808

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - - MAX( DISTINCT + + 74 ) + + 59 * + + 31 AS col1
----
1903

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - - MAX ( DISTINCT + + 74 ) + + 59 * + + 31 AS col1
----
1903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL + CAST( + ( - COUNT( * ) ) AS SIGNED ) + + + 48 * - 85
----
-4081

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + + + 48 * - 85
----
-4081

query I rowsort
SELECT DISTINCT - 4 + + 83 + 43 * + ( + - 71 )
----
-2974

onlyif mysql # aggregate syntax: 
query II rowsort label-590
SELECT ALL ( 65 ), COUNT( * ) - + 20 AS col1
----
65
-19

skipif mysql # not compatible
query II rowsort label-590
SELECT ALL ( 65 ), COUNT ( * ) - + 20 AS col1
----
65
-19

query II rowsort
SELECT ALL - + 78 + - 84, + 0 AS col0
----
-162
0

query II rowsort
SELECT DISTINCT ( 4 ) AS col0, + 52 AS col2
----
4
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT ALL + COUNT( * ) + - ( + + COUNT( * ) ) DIV + NULLIF ( - 7, + - 35 ) DIV - + COUNT( * ) + + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + COUNT ( * ) + - ( + + COUNT ( * ) ) / + NULLIF ( - 7, + - 35 ) / - + COUNT ( * ) + + 19 AS col1
----
20

query I rowsort
SELECT - - NULLIF ( + 90, - + 2 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-595
SELECT SUM( + COALESCE ( + + NULLIF ( 61, + + 18 * 2 - 53 ), - + 2 + - - CAST( NULL AS SIGNED ) ) ) + + 40 * - 14, + 29 AS col0
----
-499
29

skipif mysql # not compatible
query II rowsort label-595
SELECT SUM ( + COALESCE ( + + NULLIF ( 61, + + 18 * 2 - 53 ), - + 2 + - - CAST ( NULL AS INTEGER ) ) ) + + 40 * - 14, + 29 AS col0
----
-499
29

query I rowsort
SELECT 99 * + ( + + 51 )
----
5049

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT ALL - 33 DIV - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - 33 / - 56 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT 73 * 11 * - 99 * - 49 * MAX( - 71 ) AS col1, + 38
----
-276570063
38

skipif mysql # not compatible
query II rowsort label-599
SELECT 73 * 11 * - 99 * - 49 * MAX ( - 71 ) AS col1, + 38
----
-276570063
38

query I rowsort
SELECT DISTINCT - 16 * + - 95
----
1520

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

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

query I rowsort
SELECT ALL - 7 + 97
----
90

query I rowsort
SELECT 89 - 17 col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT ALL + 34 * + CAST( - 88 AS SIGNED ) AS col0
----
-2992

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + 34 * + CAST ( - 88 AS INTEGER ) AS col0
----
-2992

onlyif mysql # aggregate syntax: 
query II rowsort label-605
SELECT + 52 AS col2, 16 * - + NULLIF ( 53, + - COUNT( * ) ) + - 41 AS col0
----
52
-889

skipif mysql # not compatible
query II rowsort label-605
SELECT + 52 AS col2, 16 * - + NULLIF ( 53, + - COUNT ( * ) ) + - 41 AS col0
----
52
-889

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

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + COUNT ( * ) * 90 AS col1
----
90

query I rowsort
SELECT ALL - 62 * - + 22 * 36 * + 72
----
3535488

onlyif mysql # aggregate syntax: 
query II rowsort label-608
SELECT ALL COALESCE ( 83, + MIN( - - 88 ) + - 61 + + 5, - - 63, - 58 * + CASE + COUNT( * ) WHEN - + 90 THEN - 84 END * + 78 * - 2 + - 76 + - 4 ) - + COALESCE ( - + COUNT( * ), + - 84 ) + + + 49 * + - 81 * - 77 - + 5 AS col2, + 71 * - 5 - - + SUM( ALL 98 ) + - 74
----
305692
-331

skipif mysql # not compatible
query II rowsort label-608
SELECT ALL COALESCE ( 83, + MIN ( - - 88 ) + - 61 + + 5, - - 63, - 58 * + CASE + COUNT ( * ) WHEN - + 90 THEN - 84 END * + 78 * - 2 + - 76 + - 4 ) - + COALESCE ( - + COUNT ( * ), + - 84 ) + + + 49 * + - 81 * - 77 - + 5 AS col2, + 71 * - 5 - - + SUM ( ALL 98 ) + - 74
----
305692
-331

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT 14 * COUNT( * ) * 55 AS col1
----
770

skipif mysql # not compatible
query I rowsort label-609
SELECT 14 * COUNT ( * ) * 55 AS col1
----
770

query I rowsort
SELECT 88 + - + 93 + 7 * 69 AS col0
----
478

query I rowsort
SELECT 24 * + 72
----
1728

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + 81 * - + 7 + + SUM( DISTINCT 35 ) - ( - - 29 )
----
-561

skipif mysql # not compatible
query I rowsort label-612
SELECT + 81 * - + 7 + + SUM ( DISTINCT 35 ) - ( - - 29 )
----
-561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT 44 * - NULLIF ( - CAST( NULL AS SIGNED ), + + 39 + 13 * - CAST( + 20 AS SIGNED ) * 89 ) * + + 96 - - - CAST( - 73 AS SIGNED ) - - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT 44 * - NULLIF ( - CAST ( NULL AS INTEGER ), + + 39 + 13 * - CAST ( + 20 AS INTEGER ) * 89 ) * + + 96 - - - CAST ( - 73 AS INTEGER ) - - 47 AS col0
----
NULL

query I rowsort
SELECT 14 * 11 AS col1
----
154

query II rowsort
SELECT DISTINCT - 56 AS col2, - COALESCE ( + + 25, - + 42 + + 62, + 77 )
----
-56
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT 7 + COUNT( * ) + + - 73
----
-65

skipif mysql # not compatible
query I rowsort label-616
SELECT 7 + COUNT ( * ) + + - 73
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-617
SELECT ALL + ( + + 4 ) * + COUNT( * ) + - 6 * - - NULLIF ( + COALESCE ( + + ( - COALESCE ( - NULLIF ( + NULLIF ( + + 71, + 97 + - 56 ), 84 ), - 88 DIV - + 87, + 54 ) ), + - 23 + 92 ), - COUNT( ALL + 64 ) + + ( + 87 ) ) + 77
----
-345

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + ( + + 4 ) * + COUNT ( * ) + - 6 * - - NULLIF ( + COALESCE ( + + ( - COALESCE ( - NULLIF ( + NULLIF ( + + 71, + 97 + - 56 ), 84 ), - 88 / - + 87, + 54 ) ), + - 23 + 92 ), - COUNT ( ALL + 64 ) + + ( + 87 ) ) + 77
----
-345

query I rowsort
SELECT NULLIF ( + - 16, 57 * 94 - + 1 ) * - - 5
----
-80

query I rowsort
SELECT ALL - + 14 * - - 38 * 0 * + 80
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-620
SELECT - 55, 23 - COUNT( * ) * + 70 + 16 DIV - 40 * + + 86 AS col0
----
-55
-47

skipif mysql # not compatible
query II rowsort label-620
SELECT - 55, 23 - COUNT ( * ) * + 70 + 16 / - 40 * + + 86 AS col0
----
-55
-47

query II rowsort
SELECT DISTINCT 66 AS col0, ( + 7 ) AS col0
----
66
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT 76 + - ( - MAX( ALL - - 35 ) ) + COUNT( * ) * + AVG ( CAST( NULL AS SIGNED ) ) * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT 76 + - ( - MAX ( ALL - - 35 ) ) + COUNT ( * ) * + AVG ( CAST ( NULL AS INTEGER ) ) * 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT NULLIF ( CASE + 59 WHEN - - 27 + + - SUM( - 33 ) + + 52 THEN NULL ELSE 22 END, + + COUNT( * ) - + 91 - - 16 )
----
22

skipif mysql # not compatible
query I rowsort label-623
SELECT NULLIF ( CASE + 59 WHEN - - 27 + + - SUM ( - 33 ) + + 52 THEN NULL ELSE 22 END, + + COUNT ( * ) - + 91 - - 16 )
----
22

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-625
SELECT DISTINCT + 81 AS col0, + 76 DIV + - 48
----
81
-1

skipif mysql # not compatible
query II rowsort label-625
SELECT DISTINCT + 81 AS col0, + 76 / + - 48
----
81
-1

query I rowsort
SELECT ALL 69 + + - 68 + - + 69 * + - 41
----
2830

query I rowsort
SELECT 40 + + 18
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL ( + - MAX( 88 ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL ( + - MAX ( 88 ) ) AS col2
----
-88

query II rowsort
SELECT + 66 + + + ( + + 72 ), 64 AS col1
----
138
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-630
SELECT ALL - 5 + - - 30 - - ( + 11 ) - + NULLIF ( - 3, + 65 ) / 20 / - 68 / + - COALESCE ( - - 67, 95 ) / - COUNT( DISTINCT - 54 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - 5 + - - 30 - - ( + 11 ) - + NULLIF ( - 3, + 65 ) / 20 / - 68 / + - COALESCE ( - - 67, 95 ) / - COUNT ( DISTINCT - 54 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT - COUNT( 56 ) * 16 + - CAST( + - ( + 74 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-631
SELECT - COUNT ( 56 ) * 16 + - CAST ( + - ( + 74 ) AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - - ( - + CASE - COUNT( * ) WHEN - + 91 + + - 50 THEN NULL WHEN 53 THEN + 50 ELSE - SUM( ( + 52 ) ) END ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-632
SELECT - - ( - + CASE - COUNT ( * ) WHEN - + 91 + + - 50 THEN NULL WHEN 53 THEN + 50 ELSE - SUM ( ( + 52 ) ) END ) AS col2
----
52

query I rowsort
SELECT ALL + 30 + - + 89
----
-59

query I rowsort
SELECT 9 - 29
----
-20

query I rowsort
SELECT 55 + - + 97 col2
----
-42

query I rowsort
SELECT DISTINCT 39 * + 22
----
858

query I rowsort
SELECT 9 + 47 * - NULLIF ( + - COALESCE ( + ( 6 ), + 70 * 61 - - 21 ), 0 ) * - 56
----
-15783

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT SUM( + + 49 ) * + 16 AS col2
----
784

skipif mysql # not compatible
query I rowsort label-638
SELECT SUM ( + + 49 ) * + 16 AS col2
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT CAST( + 23 AS SIGNED ) + - 26
----
-3

skipif mysql # not compatible
query I rowsort label-639
SELECT CAST ( + 23 AS INTEGER ) + - 26
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT DISTINCT 3 * - CASE - 28 WHEN - - 16 + - 93 THEN NULL WHEN + 46 THEN - 69 ELSE NULL END * + 58 / COUNT( * ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT 3 * - CASE - 28 WHEN - - 16 + - 93 THEN NULL WHEN + 46 THEN - 69 ELSE NULL END * + 58 / COUNT ( * ) * + 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT ALL - MAX( + 85 ) AS col1, - 95 AS col0
----
-85
-95

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL - MAX ( + 85 ) AS col1, - 95 AS col0
----
-85
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-642
SELECT + CASE + - 14 WHEN + 21 THEN NULL WHEN + ( + - COUNT( * ) ) THEN + - NULLIF ( - - 9, + + 51 ) * + MAX( DISTINCT - - NULLIF ( - - 77, - 71 ) ) + + CAST( NULL AS SIGNED ) - MIN( ALL - 38 ) * - CAST( 86 AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT + CASE + - 14 WHEN + 21 THEN NULL WHEN + ( + - COUNT ( * ) ) THEN + - NULLIF ( - - 9, + + 51 ) * + MAX ( DISTINCT - - NULLIF ( - - 77, - 71 ) ) + + CAST ( NULL AS INTEGER ) - MIN ( ALL - 38 ) * - CAST ( 86 AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL - COUNT( - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - COUNT ( - 4 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT + ( + - 5 ) * + + 40 * - 37 + - 75 DIV 33 + + COUNT( * ) * 98 + - - 17 * - 27 * + + 14
----
1070

skipif mysql # not compatible
query I rowsort label-644
SELECT + ( + - 5 ) * + + 40 * - 37 + - 75 / 33 + + COUNT ( * ) * 98 + - - 17 * - 27 * + + 14
----
1070

query I rowsort
SELECT 76 * + 78 + + 95 + + 61 + - 67
----
6017

onlyif mysql # DIV for integer division: 
query II rowsort label-646
SELECT DISTINCT + 85 DIV 82, 97 col1
----
1
97

skipif mysql # not compatible
query II rowsort label-646
SELECT DISTINCT + 85 / 82, 97 col1
----
1
97

query I rowsort
SELECT - 0 * - 20
----
0

query I rowsort
SELECT - 7 * - + 12 * + 59 + 80 + + 56 AS col1
----
5092

query II rowsort
SELECT DISTINCT - 67 + + - COALESCE ( + + 6, + - 85 ) - 14 - + - 12 + + 50 * - 43 * - + 41 * 48, + 42 AS col1
----
4231125
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-650
SELECT ALL 76 + - 50 + + 81 + + + 30 AS col1, + COALESCE ( COUNT( * ), 91 ) DIV - 15
----
137
0

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL 76 + - 50 + + 81 + + + 30 AS col1, + COALESCE ( COUNT ( * ), 91 ) / - 15
----
137
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT DISTINCT + ( CASE + - 57 WHEN 2 THEN + ( COUNT( DISTINCT - 14 ) ) / + 87 END ) + CAST( - COALESCE ( - + COUNT( * ), - COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT + ( CASE + - 57 WHEN 2 THEN + ( COUNT ( DISTINCT - 14 ) ) / + 87 END ) + CAST ( - COALESCE ( - + COUNT ( * ), - COUNT ( * ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 3 * - 64 * 12 AS col1
----
2304

query I rowsort
SELECT + - 74 + - 87
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT - - COUNT( ALL - 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-654
SELECT - - COUNT ( ALL - 65 ) AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT DISTINCT CASE 2 WHEN + + ( - MIN( ALL + 52 ) ) + ( - + 28 ) + 35 * - 98 * + - 26 THEN NULL WHEN 21 * - COUNT( * ) * 89 + + - 29 - + 19 + - + 86 THEN NULL ELSE - + 58 END - + - 76 * - + 53
----
-4086

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT CASE 2 WHEN + + ( - MIN ( ALL + 52 ) ) + ( - + 28 ) + 35 * - 98 * + - 26 THEN NULL WHEN 21 * - COUNT ( * ) * 89 + + - 29 - + 19 + - + 86 THEN NULL ELSE - + 58 END - + - 76 * - + 53
----
-4086

query II rowsort
SELECT ALL 39 AS col0, - 80 AS col0
----
39
-80

query II rowsort
SELECT 62 AS col1, - NULLIF ( + 18, - 27 ) AS col0
----
62
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-659
SELECT ALL ( COALESCE ( + - ( NULLIF ( + 96, - 0 + - ( + COUNT( * ) ) + - 43 * - 44 * + ( + + 22 ) + COUNT( * ) + - 66 DIV COALESCE ( 44, SUM( - 0 ) ) + - 84 - + - 32 ) ), 77 + + - 2 + - - CAST( 36 AS SIGNED ), - NULLIF ( MAX( 21 ), + 28 + + - 28 ), - 71 + + 29 + - + 58 ) ) DIV - + MAX( ALL 31 )
----
3

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL ( COALESCE ( + - ( NULLIF ( + 96, - 0 + - ( + COUNT ( * ) ) + - 43 * - 44 * + ( + + 22 ) + COUNT ( * ) + - 66 / COALESCE ( 44, SUM ( - 0 ) ) + - 84 - + - 32 ) ), 77 + + - 2 + - - CAST ( 36 AS INTEGER ), - NULLIF ( MAX ( 21 ), + 28 + + - 28 ), - 71 + + 29 + - + 58 ) ) / - + MAX ( ALL 31 )
----
3

query I rowsort
SELECT + 33 * 13 * + - ( - 25 ) AS col1
----
10725

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

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT COUNT ( * ) / - 48
----
0

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

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

query I rowsort
SELECT - 79 + - 62 AS col1
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-664
SELECT + CASE - - 53 WHEN + 0 THEN 31 DIV + COUNT( * ) * - COUNT( * ) + - + 13 + + 3 * + 42 * 32 WHEN + MIN( DISTINCT - 18 ) THEN NULL ELSE 83 END + + + COALESCE ( - + 61, + 32, + + SUM( - 30 ) ) + + 5
----
27

skipif mysql # not compatible
query I rowsort label-664
SELECT + CASE - - 53 WHEN + 0 THEN 31 / + COUNT ( * ) * - COUNT ( * ) + - + 13 + + 3 * + 42 * 32 WHEN + MIN ( DISTINCT - 18 ) THEN NULL ELSE 83 END + + + COALESCE ( - + 61, + 32, + + SUM ( - 30 ) ) + + 5
----
27

query I rowsort
SELECT + 73 * + - 18 * + 24
----
-31536

query I rowsort
SELECT + NULLIF ( - ( - + 72 ), 38 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL + MAX( ALL + 58 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + MAX ( ALL + 58 ) col0
----
58

query I rowsort
SELECT + 43 * 66
----
2838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-669
SELECT - 98 * 15 DIV + 27 + + CASE + COUNT( * ) WHEN 74 THEN - 29 WHEN - ( COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-669
SELECT - 98 * 15 / + 27 + + CASE + COUNT ( * ) WHEN 74 THEN - 29 WHEN - ( COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END AS col0
----
-55

query I rowsort
SELECT + 65 + - 76 col0
----
-11

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

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

query I rowsort
SELECT - ( 95 ) - 75 * - 57
----
4180

query I rowsort
SELECT DISTINCT 28 * + 9 + COALESCE ( 42 - ( 35 ), 70 )
----
259

query I rowsort
SELECT ALL 97 * + 47 + 91 col0
----
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL 66 * - 84 + MIN( 64 + 77 * 70 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL 66 * - 84 + MIN ( 64 + 77 * 70 ) AS col2
----
-90

query I rowsort
SELECT DISTINCT 72 * 66 + - 57
----
4695

query I rowsort
SELECT ALL - 10 * ( 40 ) AS col2
----
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT - 29 DIV - 21
----
1

skipif mysql # not compatible
query I rowsort label-678
SELECT - 29 / - 21
----
1

query I rowsort
SELECT COALESCE ( - CASE - 59 WHEN 34 THEN - 90 END, - 11 - - 84 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL 40 * - 67 + + COUNT( * ) AS col2
----
-2679

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL 40 * - 67 + + COUNT ( * ) AS col2
----
-2679

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT - 99 DIV 47 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-681
SELECT - 99 / 47 AS col0
----
-2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT - CASE - MIN( - CAST( NULL AS SIGNED ) ) WHEN - 90 THEN NULL ELSE - 61 END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT - CASE - MIN ( - CAST ( NULL AS INTEGER ) ) WHEN - 90 THEN NULL ELSE - 61 END + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - 89 ) * 8 AS col2
----
712

query I rowsort
SELECT - 63 + 17 col1
----
-46

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

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

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

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

query I rowsort
SELECT ALL ( + 82 ) * + 34
----
2788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT - 92 + + ( - ( + 48 ) + - CASE - NULLIF ( + 90, - 18 ) + 5 WHEN - 90 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 31 * 20 THEN 92 - 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT - 92 + + ( - ( + 48 ) + - CASE - NULLIF ( + 90, - 18 ) + 5 WHEN - 90 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 31 * 20 THEN 92 - 44 END )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 12, - 28 + - 24 ) * 41 AS col1
----
492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT ALL CAST( NULL AS SIGNED ) * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL CAST ( NULL AS INTEGER ) * 82 AS col2
----
NULL

query I rowsort
SELECT - 9 * 95 col2
----
-855

query I rowsort
SELECT DISTINCT + 3 * - 71 AS col0
----
-213

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL + MIN( - 37 ) * 18
----
-666

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL + MIN ( - 37 ) * 18
----
-666

query I rowsort
SELECT 34 + - 26
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT 4 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-697
SELECT 4 / - 75
----
0

query I rowsort
SELECT 14 + 3 * 4 AS col2
----
26

query I rowsort
SELECT ALL - 85 * - 77
----
6545

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT 23 + SUM( 57 )
----
80

skipif mysql # not compatible
query I rowsort label-700
SELECT 23 + SUM ( 57 )
----
80

query I rowsort
SELECT 30 * 88 AS col2
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT - SUM( + 74 ) + + MAX( + 96 + - 41 )
----
-19

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - SUM ( + 74 ) + + MAX ( + 96 + - 41 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT 43 + + 27 DIV 29 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-703
SELECT 43 + + 27 / 29 AS col0
----
43

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

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - ( 13 ) + - COUNT ( * ) / - 96 AS col2
----
-13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT ALL 1 DIV 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL 1 / 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT 4 * - COUNT( - 69 ) + - 11
----
-15

skipif mysql # not compatible
query I rowsort label-707
SELECT 4 * - COUNT ( - 69 ) + - 11
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + 68 * 25 + - COUNT( * ) col0
----
1699

skipif mysql # not compatible
query I rowsort label-708
SELECT + 68 * 25 + - COUNT ( * ) col0
----
1699

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

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

query I rowsort
SELECT ( - 76 ) * - 20
----
1520

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

query I rowsort
SELECT CASE + 81 WHEN - 28 * 13 - + 23 THEN NULL ELSE - 60 END AS col0
----
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + 70 + COUNT( * ) * ( - 84 )
----
-14

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + 70 + COUNT ( * ) * ( - 84 )
----
-14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT DISTINCT + COUNT( * ) + - MIN( + 50 + 47 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT + COUNT ( * ) + - MIN ( + 50 + 47 ) AS col0
----
-96

query I rowsort
SELECT 73 * 75 + + 99 AS col0
----
5574

query I rowsort
SELECT - 9 * 75 AS col1
----
-675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT + CASE COUNT( * ) WHEN ( - ( + 68 ) ) + 6 THEN AVG ( + 30 ) ELSE 43 + + NULLIF ( + 56, + 5 ) * - COUNT( DISTINCT CAST( 12 AS SIGNED ) + 36 ) END
----
-13

skipif mysql # not compatible
query I rowsort label-719
SELECT + CASE COUNT ( * ) WHEN ( - ( + 68 ) ) + 6 THEN AVG ( + 30 ) ELSE 43 + + NULLIF ( + 56, + 5 ) * - COUNT ( DISTINCT CAST ( 12 AS INTEGER ) + 36 ) END
----
-13

query I rowsort
SELECT ALL - 87 + 97 AS col0
----
10

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

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

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

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

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

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

query I rowsort
SELECT 61 + 89 AS col0
----
150

query I rowsort
SELECT ALL 24 - - 3
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT - COUNT( * ) * 73 + + ( + COUNT( * ) + - COALESCE ( + COUNT( + 83 ), 51, + 37 ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-726
SELECT - COUNT ( * ) * 73 + + ( + COUNT ( * ) + - COALESCE ( + COUNT ( + 83 ), 51, + 37 ) ) AS col1
----
-73

query I rowsort
SELECT - 12 * + 29
----
-348

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

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

query I rowsort
SELECT ALL 9 * 16
----
144

query I rowsort
SELECT 8 * - 94
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT DISTINCT MAX( 3 ) * 17
----
51

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT MAX ( 3 ) * 17
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT CAST( + 51 AS SIGNED ) * 8
----
408

skipif mysql # not compatible
query I rowsort label-732
SELECT CAST ( + 51 AS INTEGER ) * 8
----
408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT 8 * CAST( NULLIF ( COUNT( * ), - 40 * - 77 ) AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-734
SELECT 8 * CAST ( NULLIF ( COUNT ( * ), - 40 * - 77 ) AS INTEGER ) AS col2
----
8

query I rowsort
SELECT ALL - 81 + + 92 * - 6
----
-633

query I rowsort
SELECT DISTINCT 31 + + 82 AS col2
----
113

query I rowsort
SELECT ALL 90 + 65 * ( + 95 ) AS col0
----
6265

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT COUNT( - 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT COUNT ( - 39 ) col2
----
1

query I rowsort
SELECT 33 + - 81
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL + 82 + + 94 - - SUM( DISTINCT + CAST( - 26 AS SIGNED ) + - 4 ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + 82 + + 94 - - SUM ( DISTINCT + CAST ( - 26 AS INTEGER ) + - 4 ) AS col2
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT 78 DIV 12 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-741
SELECT 78 / 12 / + 58
----
0

query I rowsort
SELECT - 66 * + + 29 * 61 + + 99 AS col2
----
-116655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT DISTINCT + COALESCE ( - + COUNT( * ), - 70 ) * + 76 + + 41 DIV 14 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT + COALESCE ( - + COUNT ( * ), - 70 ) * + 76 + + 41 / 14 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT CAST( NULL AS SIGNED ) * + + 75 + NULLIF ( + ( 12 ), 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT CAST ( NULL AS INTEGER ) * + + 75 + NULLIF ( + ( 12 ), 58 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT ALL 13 * + - CAST( NULL AS SIGNED ) / 33 + - 83 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL 13 * + - CAST ( NULL AS INTEGER ) / 33 + - 83 * 45
----
NULL

query I rowsort
SELECT DISTINCT ( + 16 ) + 94
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT ALL + 58 - + NULLIF ( + 76, - 11 * - 61 ) + 62 DIV 7
----
-10

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + 58 - + NULLIF ( + 76, - 11 * - 61 ) + 62 / 7
----
-10

query I rowsort
SELECT + 60 + + ( + COALESCE ( - 79, + 36, + 25 ) ) - - 12 * + 59
----
689

query I rowsort
SELECT 86 * + 61
----
5246

query I rowsort
SELECT - 43 - + + 22 + 35 AS col0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT ALL 26 - + - CASE CASE + MAX( DISTINCT + ( + 47 ) ) WHEN 3 * - CAST( - COUNT( * ) AS SIGNED ) THEN NULL ELSE - 64 * 42 END WHEN - ( 71 ) + 19 THEN 71 ELSE NULL END + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL 26 - + - CASE CASE + MAX ( DISTINCT + ( + 47 ) ) WHEN 3 * - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL ELSE - 64 * 42 END WHEN - ( 71 ) + 19 THEN 71 ELSE NULL END + 51 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + + 18 + - 59
----
1093

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT - MIN( + - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-754
SELECT - MIN ( + - 6 ) AS col1
----
6

query I rowsort
SELECT DISTINCT 97 * 8 * + 56 AS col1
----
43456

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT NULLIF ( + 36, 69 ) * + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-756
SELECT NULLIF ( + 36, 69 ) * + COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT CAST( NULL AS SIGNED ) * + 51 + 19 + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT CAST ( NULL AS INTEGER ) * + 51 + 19 + - 29
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-759
SELECT ALL 89 AS col1, COUNT( * ) DIV 76 AS col1
----
89
0

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL 89 AS col1, COUNT ( * ) / 76 AS col1
----
89
0

query II rowsort
SELECT 70 AS col2, - 15 AS col0
----
70
-15

query I rowsort
SELECT + 32 * 98 col0
----
3136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-762
SELECT - 38 * - NULLIF ( 59, - CAST( NULL AS DECIMAL ) )
----
2242

skipif mysql # not compatible
query I rowsort label-762
SELECT - 38 * - NULLIF ( 59, - CAST ( NULL AS REAL ) )
----
2242

query I rowsort
SELECT ALL + 85 + + 97
----
182

query I rowsort
SELECT + 26 + + 35 * - 74 * + 11 + 31
----
-28433

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

query I rowsort
SELECT + 2 + + 95 * - 1
----
-93

query I rowsort
SELECT ALL - 49 + - 29
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT + 66 DIV - + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-768
SELECT + 66 / - + 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - MIN( + 96 ) + + 95 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-769
SELECT - MIN ( + 96 ) + + 95 AS col2
----
-1

query I rowsort
SELECT + 43 * ( 23 ) AS col2
----
989

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-773
SELECT - ( + 8 ) + - CASE - MIN( + 87 ) WHEN + 85 THEN NULL WHEN + 73 * 98 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-773
SELECT - ( + 8 ) + - CASE - MIN ( + 87 ) WHEN + 85 THEN NULL WHEN + 73 * 98 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT ALL - 23 + + CASE + + COUNT( * ) WHEN + ( 81 ) THEN CASE 22 WHEN 73 * + CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND ( - ( - 62 ) / - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN - 20 ELSE + 48 + - 79 / 36 END THEN + 36 END + - 77 / - 73 END + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL - 23 + + CASE + + COUNT ( * ) WHEN + ( 81 ) THEN CASE 22 WHEN 73 * + CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND ( - ( - 62 ) / - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN - 20 ELSE + 48 + - 79 / 36 END THEN + 36 END + - 77 / - 73 END + 76 AS col2
----
NULL

query I rowsort
SELECT - 12 + - 17 * 93
----
-1593

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-776
SELECT ALL + COUNT( * ), 96 * - 91 * - 39 + + 3 DIV + 20 AS col2
----
1
340704

skipif mysql # not compatible
query II rowsort label-776
SELECT ALL + COUNT ( * ), 96 * - 91 * - 39 + + 3 / + 20 AS col2
----
1
340704

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - + COUNT( ALL - 64 ) + + SUM( ALL 5 ) + 93 * 36
----
3352

skipif mysql # not compatible
query I rowsort label-777
SELECT - + COUNT ( ALL - 64 ) + + SUM ( ALL 5 ) + 93 * 36
----
3352

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + COALESCE ( - ( 46 ), - COUNT( * ) * 40 )
----
-46

skipif mysql # not compatible
query I rowsort label-779
SELECT + COALESCE ( - ( 46 ), - COUNT ( * ) * 40 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT + COUNT( * ) * + + 39 * - - 66 - 57
----
2517

skipif mysql # not compatible
query I rowsort label-780
SELECT + COUNT ( * ) * + + 39 * - - 66 - 57
----
2517

query I rowsort
SELECT - 0 * + 35 * 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT DISTINCT + 88 * COALESCE ( + ( - 52 ), - 92 * MAX( DISTINCT - ( 14 ) ) ) * + 22 - - 65 AS col0
----
-100607

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT + 88 * COALESCE ( + ( - 52 ), - 92 * MAX ( DISTINCT - ( 14 ) ) ) * + 22 - - 65 AS col0
----
-100607

query II rowsort
SELECT + - 55 col2, + 85 AS col2
----
-55
85

query I rowsort
SELECT + COALESCE ( + 25, - 19 + 57 )
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-785
SELECT - 93 DIV + 87 + + 99 + 23 + CAST( 13 AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-785
SELECT - 93 / + 87 + + 99 + 23 + CAST ( 13 AS INTEGER )
----
134

query I rowsort
SELECT ALL + + 85 * 17 * + - ( 26 )
----
-37570

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT - + 21 * + 74 + COALESCE ( 70, 69 + + 99 DIV - AVG ( + 64 ) ) AS col2
----
-1484

skipif mysql # not compatible
query I rowsort label-787
SELECT - + 21 * + 74 + COALESCE ( 70, 69 + + 99 / - AVG ( + 64 ) ) AS col2
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + + 15 * - - MAX( + 95 )
----
1425

skipif mysql # not compatible
query I rowsort label-788
SELECT + + 15 * - - MAX ( + 95 )
----
1425

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

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + NULLIF ( - 90, - COUNT ( * ) ) col2
----
-90

query I rowsort
SELECT - + ( - 82 ) + 14 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL + + SUM( ALL + NULLIF ( + 5, 87 ) )
----
5

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + + SUM ( ALL + NULLIF ( + 5, 87 ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-792
SELECT + 76 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - ( - CAST( 97 AS SIGNED ) ) + - MAX( 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT + 76 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( - CAST ( 97 AS INTEGER ) ) + - MAX ( 23 ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT + + 44 * - - 68 - - + 11 + 86 DIV - 61
----
3002

skipif mysql # not compatible
query I rowsort label-794
SELECT + + 44 * - - 68 - - + 11 + 86 / - 61
----
3002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-795
SELECT + 30 DIV + 56 * + MIN( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-795
SELECT + 30 / + 56 * + MIN ( 98 )
----
0

query I rowsort
SELECT - 69 * + - 2
----
138

query I rowsort
SELECT + + 89 + + 41
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - MIN( - 8 ) * + - 41 col0
----
-328

skipif mysql # not compatible
query I rowsort label-798
SELECT - MIN ( - 8 ) * + - 41 col0
----
-328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT + 62 + 51 + 54 + CAST( NULL AS SIGNED ) - 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-799
SELECT + 62 + 51 + 54 + CAST ( NULL AS INTEGER ) - 15 col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 96, + 21 ) * - 99 * + 59 + 3 AS col0
----
-560733

query I rowsort
SELECT ALL - NULLIF ( - 70, + - 43 ) * 18 + 94
----
1354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL CAST( 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL CAST ( 84 AS INTEGER ) AS col2
----
84

query I rowsort
SELECT ALL 26 * - 2 * + 63 * - + 73 + - ( 90 - ( 37 ) ) col1
----
239095

onlyif mysql # aggregate syntax: 
query II rowsort label-804
SELECT - ( + 38 ) AS col2, 41 + - + COUNT( + 65 ) AS col1
----
-38
40

skipif mysql # not compatible
query II rowsort label-804
SELECT - ( + 38 ) AS col2, 41 + - + COUNT ( + 65 ) AS col1
----
-38
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-805
SELECT - 90 * + CAST( NULL AS DECIMAL ) * + + MAX( DISTINCT 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-805
SELECT - 90 * + CAST ( NULL AS REAL ) * + + MAX ( DISTINCT 63 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT - ( + + 53 ) col1, - 91 + + COUNT( * ) + 19 * 31
----
-53
499

skipif mysql # not compatible
query II rowsort label-806
SELECT - ( + + 53 ) col1, - 91 + + COUNT ( * ) + 19 * 31
----
-53
499

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-807
SELECT DISTINCT NULLIF ( + + CASE - - 2 WHEN 12 + CAST( NULL AS SIGNED ) THEN NULL ELSE 39 END, 49 ) + CAST( NULL AS DECIMAL ) * COALESCE ( 76 + + ( 95 ) * + NULLIF ( 49 * - COALESCE ( 9, + 26, 60 ), - AVG ( DISTINCT 7 ) / 41 ), - 4 * 99 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT NULLIF ( + + CASE - - 2 WHEN 12 + CAST ( NULL AS INTEGER ) THEN NULL ELSE 39 END, 49 ) + CAST ( NULL AS REAL ) * COALESCE ( 76 + + ( 95 ) * + NULLIF ( 49 * - COALESCE ( 9, + 26, 60 ), - AVG ( DISTINCT 7 ) / 41 ), - 4 * 99 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT - CASE - COUNT( * ) WHEN + + 59 THEN + 46 * ( 62 ) + 54 ELSE COUNT( * ) + - 87 END AS col1
----
86

skipif mysql # not compatible
query I rowsort label-808
SELECT - CASE - COUNT ( * ) WHEN + + 59 THEN + 46 * ( 62 ) + 54 ELSE COUNT ( * ) + - 87 END AS col1
----
86

query II rowsort
SELECT + 60 * + 1 AS col1, - 82
----
60
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-810
SELECT DISTINCT 72 DIV 12 * + 50
----
300

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT 72 / 12 * + 50
----
300

query I rowsort
SELECT ALL 7 * + - COALESCE ( - - 4, 21 ) * 30 AS col0
----
-840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-812
SELECT + COALESCE ( + MIN( ALL + - 52 ), + 69 DIV - 49 + CASE + 50 WHEN 58 THEN NULL ELSE + COUNT( * ) END DIV MIN( ALL 44 ) ) DIV + 68 col0
----
0

skipif mysql # not compatible
query I rowsort label-812
SELECT + COALESCE ( + MIN ( ALL + - 52 ), + 69 / - 49 + CASE + 50 WHEN 58 THEN NULL ELSE + COUNT ( * ) END / MIN ( ALL 44 ) ) / + 68 col0
----
0

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

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

query I rowsort
SELECT ALL 45 * - 0 + + 97
----
97

query I rowsort
SELECT + 15 + 78 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT + - 0 * ( - 9 ) + NULLIF ( - COUNT( * ), - 31 + + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-816
SELECT + - 0 * ( - 9 ) + NULLIF ( - COUNT ( * ), - 31 + + 58 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT + NULLIF ( - 33, CASE 40 WHEN 57 THEN 38 ELSE NULL END + + MIN( DISTINCT - 59 - - CAST( NULL AS SIGNED ) ) * + COUNT( * ) ) + + 81
----
48

skipif mysql # not compatible
query I rowsort label-817
SELECT + NULLIF ( - 33, CASE 40 WHEN 57 THEN 38 ELSE NULL END + + MIN ( DISTINCT - 59 - - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) ) + + 81
----
48

query I rowsort
SELECT - 98 * - 42 AS col0
----
4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-819
SELECT ALL + NULLIF ( 58, - - COALESCE ( 95, - CAST( NULL AS SIGNED ) * + MAX( 8 ) ) ) * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL + NULLIF ( 58, - - COALESCE ( 95, - CAST ( NULL AS INTEGER ) * + MAX ( 8 ) ) ) * - COUNT ( * )
----
-58

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

query II rowsort
SELECT - + 19 + - + 51, - 34 AS col2
----
-70
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL + 56 - + 87 * + CASE - COUNT( * ) WHEN + COUNT( DISTINCT 69 ) + 62 THEN + 2 + - 58 * + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + 56 - + 87 * + CASE - COUNT ( * ) WHEN + COUNT ( DISTINCT 69 ) + 62 THEN + 2 + - 58 * + 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT + - MAX( 37 ) / + + 7 / + 86 * CASE + COUNT( ALL 37 ) / 39 WHEN + COUNT( * ) * - 74 THEN - 76 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-823
SELECT + - MAX ( 37 ) / + + 7 / + 86 * CASE + COUNT ( ALL 37 ) / 39 WHEN + COUNT ( * ) * - 74 THEN - 76 END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT CASE + ( ( + 28 ) ) WHEN - COUNT( * ) * 89 + 67 * + 12 THEN - COUNT( * ) WHEN + 96 + - AVG ( - 23 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT CASE + ( ( + 28 ) ) WHEN - COUNT ( * ) * 89 + 67 * + 12 THEN - COUNT ( * ) WHEN + 96 + - AVG ( - 23 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT + NULLIF ( - 3, - + 81 * + 70 ) DIV 79 + 6
----
6

skipif mysql # not compatible
query I rowsort label-825
SELECT + NULLIF ( - 3, - + 81 * + 70 ) / 79 + 6
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT - - COALESCE ( 40, 27 ) + - 46 + + 10 DIV 51 col2
----
-6

skipif mysql # not compatible
query I rowsort label-826
SELECT - - COALESCE ( 40, 27 ) + - 46 + + 10 / 51 col2
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - 74 * COUNT( * ) - - 22 * - 64 + + 25
----
-1457

skipif mysql # not compatible
query I rowsort label-828
SELECT - 74 * COUNT ( * ) - - 22 * - 64 + + 25
----
-1457

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

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

query I rowsort
SELECT + 45 + + 6
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + CASE + 93 WHEN - CASE - 63 WHEN - 88 / - 67 THEN NULL WHEN AVG ( DISTINCT 65 ) * 61 + ( - COUNT( * ) + + 94 ) THEN MAX( 97 ) / + 55 ELSE 9 END THEN NULL WHEN - ( - AVG ( DISTINCT - 0 ) ) THEN - 6 - 68 WHEN - 73 THEN - ( 53 ) * + 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT + CASE + 93 WHEN - CASE - 63 WHEN - 88 / - 67 THEN NULL WHEN AVG ( DISTINCT 65 ) * 61 + ( - COUNT ( * ) + + 94 ) THEN MAX ( 97 ) / + 55 ELSE 9 END THEN NULL WHEN - ( - AVG ( DISTINCT - 0 ) ) THEN - 6 - 68 WHEN - 73 THEN - ( 53 ) * + 24 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT - 28 - - 89 * - - 8 + - 68 DIV + NULLIF ( - ( - 52 ), NULLIF ( 77, 74 ) )
----
683

skipif mysql # not compatible
query I rowsort label-832
SELECT - 28 - - 89 * - - 8 + - 68 / + NULLIF ( - ( - 52 ), NULLIF ( 77, 74 ) )
----
683

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

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + CAST ( + ( 26 ) AS INTEGER ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT COUNT( * ) * - - SUM( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-834
SELECT COUNT ( * ) * - - SUM ( 62 )
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT MIN( DISTINCT 3 ) + 65 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-836
SELECT MIN ( DISTINCT 3 ) + 65 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT 24 * NULLIF ( - SUM( ALL - 71 ), - 51 )
----
1704

skipif mysql # not compatible
query I rowsort label-837
SELECT 24 * NULLIF ( - SUM ( ALL - 71 ), - 51 )
----
1704

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT ALL 73 DIV - + 91
----
0

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 73 / - + 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT COALESCE ( 44, ( - 6 ) * ( - MAX( + CASE + 27 WHEN + 73 THEN + 2 DIV 22 WHEN + 45 THEN NULL ELSE NULL END ) ) ) - 94
----
-50

skipif mysql # not compatible
query I rowsort label-841
SELECT COALESCE ( 44, ( - 6 ) * ( - MAX ( + CASE + 27 WHEN + 73 THEN + 2 / 22 WHEN + 45 THEN NULL ELSE NULL END ) ) ) - 94
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT 23 + + + SUM( 27 ) + - + ( COUNT( DISTINCT - 97 ) ) + 74 * - ( ( + 13 ) + 40 ) AS col2
----
-3873

skipif mysql # not compatible
query I rowsort label-842
SELECT 23 + + + SUM ( 27 ) + - + ( COUNT ( DISTINCT - 97 ) ) + 74 * - ( ( + 13 ) + 40 ) AS col2
----
-3873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT ALL - MIN( DISTINCT ( - 95 ) ) DIV - + 86 + - 46 + 49
----
2

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - MIN ( DISTINCT ( - 95 ) ) / - + 86 + - 46 + 49
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-844
SELECT 68 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-844
SELECT 68 / + 84
----
0

query I rowsort
SELECT 39 * + + 79
----
3081

query II rowsort
SELECT 71 AS col1, 51 - 69 + - 70 * 87 + + 45
----
71
-6063

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT ALL 31 * + COALESCE ( 35, - ( + - ( + 56 ) ) + + 39, - SUM( DISTINCT - 29 ) ) AS col1
----
1085

skipif mysql # not compatible
query I rowsort label-847
SELECT ALL 31 * + COALESCE ( 35, - ( + - ( + 56 ) ) + + 39, - SUM ( DISTINCT - 29 ) ) AS col1
----
1085

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT 49 + + 63 - 99 * - + 81 + + NULLIF ( 83, - COUNT( * ) ) AS col0
----
8214

skipif mysql # not compatible
query I rowsort label-848
SELECT 49 + + 63 - 99 * - + 81 + + NULLIF ( 83, - COUNT ( * ) ) AS col0
----
8214

query I rowsort
SELECT 58 + + COALESCE ( - 40, - 32 )
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT COUNT( ALL + + 38 ) + - ( 9 ) + + - 6 * - ( 95 ) AS col2
----
562

skipif mysql # not compatible
query I rowsort label-851
SELECT COUNT ( ALL + + 38 ) + - ( 9 ) + + - 6 * - ( 95 ) AS col2
----
562

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL COUNT( * ) - - MAX( DISTINCT - - 97 ) + 10 * - + ( - 40 )
----
498

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL COUNT ( * ) - - MAX ( DISTINCT - - 97 ) + 10 * - + ( - 40 )
----
498

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT 77 + + NULLIF ( - 9, 71 ) + + 69 - - 42 DIV - ( + 98 ) * + 2 col0
----
137

skipif mysql # not compatible
query I rowsort label-853
SELECT 77 + + NULLIF ( - 9, 71 ) + + 69 - - 42 / - ( + 98 ) * + 2 col0
----
137

query I rowsort
SELECT DISTINCT 30 - + + 38 AS col1
----
-8

query I rowsort
SELECT 5 + + ( 43 ) * + - 70 - + 45 AS col1
----
-3050

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT + COUNT( 87 ) + 18 * - 63 AS col2
----
-1133

skipif mysql # not compatible
query I rowsort label-857
SELECT + COUNT ( 87 ) + 18 * - 63 AS col2
----
-1133

onlyif mysql # aggregate syntax: 
query II rowsort label-858
SELECT DISTINCT - 25 col1, MAX( DISTINCT + 74 ) AS col1
----
-25
74

skipif mysql # not compatible
query II rowsort label-858
SELECT DISTINCT - 25 col1, MAX ( DISTINCT + 74 ) AS col1
----
-25
74

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT ALL 79 DIV - 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL 79 / - 56 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT DISTINCT + 77 * + - 84 + - COUNT( * ) AS col1, + NULLIF ( + + 70, + 6 )
----
-6469
70

skipif mysql # not compatible
query II rowsort label-860
SELECT DISTINCT + 77 * + - 84 + - COUNT ( * ) AS col1, + NULLIF ( + + 70, + 6 )
----
-6469
70

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT DISTINCT 37 DIV + 2
----
18

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT 37 / + 2
----
18

query I rowsort
SELECT DISTINCT - 8 + - COALESCE ( - 56, + + 68 ) - + 57
----
-9

query I rowsort
SELECT ALL - + 18 * - COALESCE ( 29, - - 61 ) - + 3 * ( 0 + - 54 )
----
684

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT DISTINCT 64 * - SUM( ALL + 44 ) + 3 col1
----
-2813

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT 64 * - SUM ( ALL + 44 ) + 3 col1
----
-2813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-866
SELECT + COUNT( * ) * - COUNT( * ) DIV - COALESCE ( + 26, - COUNT( * ) * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-866
SELECT + COUNT ( * ) * - COUNT ( * ) / - COALESCE ( + 26, - COUNT ( * ) * COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-867
SELECT + + 87 AS col1, COALESCE ( - 70, COUNT( * ) + + 49 DIV 63 ) * - 63
----
87
4410

skipif mysql # not compatible
query II rowsort label-867
SELECT + + 87 AS col1, COALESCE ( - 70, COUNT ( * ) + + 49 / 63 ) * - 63
----
87
4410

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

skipif mysql # not compatible
query I rowsort label-868
SELECT - 21 / - COUNT ( * ) AS col1
----
21

query II rowsort
SELECT + 62 AS col0, 40 * + 65 + - 60 AS col1
----
62
2540

query I rowsort
SELECT ALL + - 13 + 79
----
66

query I rowsort
SELECT ALL - - 51 + ( 94 ) col2
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - COUNT( * ) - 75 / - 10 * 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) - 75 / - 10 * 33 AS col1
----
NULL

query I rowsort
SELECT - 56 * + 91 + + 89 + - 9 AS col0
----
-5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT - CASE 5 WHEN - + 49 + - - 85 + + 51 - - + CAST( 24 AS SIGNED ) - 13 * - 31 THEN CAST( - 52 AS SIGNED ) + 79 * 27 ELSE 12 * 90 END * ( 71 ) - - COUNT( * )
----
-76679

skipif mysql # not compatible
query I rowsort label-874
SELECT - CASE 5 WHEN - + 49 + - - 85 + + 51 - - + CAST ( 24 AS INTEGER ) - 13 * - 31 THEN CAST ( - 52 AS INTEGER ) + 79 * 27 ELSE 12 * 90 END * ( 71 ) - - COUNT ( * )
----
-76679

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT 18 AS col1, + CASE - 88 WHEN 19 + - 23 THEN + - SUM( DISTINCT 37 ) * + CASE - 73 * 37 WHEN 96 * 65 THEN NULL WHEN 62 THEN 20 * 57 END WHEN - 32 THEN + 62 END + 7 AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-875
SELECT 18 AS col1, + CASE - 88 WHEN 19 + - 23 THEN + - SUM ( DISTINCT 37 ) * + CASE - 73 * 37 WHEN 96 * 65 THEN NULL WHEN 62 THEN 20 * 57 END WHEN - 32 THEN + 62 END + 7 AS col0
----
18
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL - MAX( DISTINCT - + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL - MAX ( DISTINCT - + 25 ) AS col0
----
25

query II rowsort
SELECT 68 + + 0 + 94 * 19, NULLIF ( + 91, + 81 * + 49 ) + 0 AS col0
----
1854
91

query I rowsort
SELECT 42 * - 19 AS col1
----
-798

query I rowsort
SELECT ALL - 91 * 94 AS col0
----
-8554

onlyif mysql # DIV for integer division: 
query I rowsort label-881
SELECT 49 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-881
SELECT 49 / 48 AS col0
----
1

query I rowsort
SELECT ALL 43 * 75
----
3225

query II rowsort
SELECT 18 AS col2, - 42 * - 31
----
18
1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-884
SELECT 74 DIV SUM( COALESCE ( + - NULLIF ( + - 53, + CAST( 62 AS SIGNED ) ), + 98 ) ) * CAST( - 68 * - 41 AS SIGNED )
----
2788

skipif mysql # not compatible
query I rowsort label-884
SELECT 74 / SUM ( COALESCE ( + - NULLIF ( + - 53, + CAST ( 62 AS INTEGER ) ), + 98 ) ) * CAST ( - 68 * - 41 AS INTEGER )
----
2788

query I rowsort
SELECT 58 * - 69
----
-4002

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

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL - - 78 * - + COALESCE ( + MAX( - 18 ), + + 28 )
----
1404

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - - 78 * - + COALESCE ( + MAX ( - 18 ), + + 28 )
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - NULLIF ( + 55, 80 + - 24 - + 85 + - + 72 + - 49 ) - + COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-888
SELECT - NULLIF ( + 55, 80 + - 24 - + 85 + - + 72 + - 49 ) - + COUNT ( * ) AS col1
----
-56

query II rowsort
SELECT ALL - 12, 71 AS col2
----
-12
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-890
SELECT ALL + CAST( NULL AS DECIMAL ) * 73 * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + CAST ( NULL AS REAL ) * 73 * - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ( 96 ) * + + NULLIF ( 37, + CASE CASE - 22 WHEN ( + ( - COUNT( * ) ) ) THEN + 61 WHEN 6 THEN + 58 ELSE ( 82 ) END WHEN COUNT( * ) THEN 55 END + - 1 )
----
3552

skipif mysql # not compatible
query I rowsort label-891
SELECT ( 96 ) * + + NULLIF ( 37, + CASE CASE - 22 WHEN ( + ( - COUNT ( * ) ) ) THEN + 61 WHEN 6 THEN + 58 ELSE ( 82 ) END WHEN COUNT ( * ) THEN 55 END + - 1 )
----
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT DISTINCT + + 49 + + 22 + - 59 DIV 7
----
63

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT + + 49 + + 22 + - 59 / 7
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT ALL - 78 + - - 64 + - 24 + 87 * + - 96 + CAST( NULL AS SIGNED ) + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL - 78 + - - 64 + - 24 + 87 * + - 96 + CAST ( NULL AS INTEGER ) + 57 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-894
SELECT + + ( 30 ) * 58 * + + COUNT ( * ) AS col0
----
1740

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

skipif mysql # not compatible
query I rowsort label-895
SELECT - + 98 + + - COUNT ( * ) / - 7
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT MAX( DISTINCT - - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT MAX ( DISTINCT - - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - + COUNT( * ) + - 16 + - + 85
----
-102

skipif mysql # not compatible
query I rowsort label-898
SELECT - + COUNT ( * ) + - 16 + - + 85
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL - + 1 * - 44 * + - CASE - - 49 WHEN COUNT( * ) THEN + 18 ELSE NULL END + AVG ( ALL + 49 + 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - + 1 * - 44 * + - CASE - - 49 WHEN COUNT ( * ) THEN + 18 ELSE NULL END + AVG ( ALL + 49 + 56 ) AS col2
----
NULL

query I rowsort
SELECT + 63 + + 32 + + - 44
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT CAST( - 13 AS SIGNED ) * - 99 + NULLIF ( 82, + 92 )
----
1369

skipif mysql # not compatible
query I rowsort label-901
SELECT CAST ( - 13 AS INTEGER ) * - 99 + NULLIF ( 82, + 92 )
----
1369

query I rowsort
SELECT ALL - 52 * + - CASE - 54 WHEN 73 + + 78 THEN NULL WHEN - + 45 THEN - - 98 ELSE NULL END + 68 * + 67
----
NULL

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

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

query II rowsort
SELECT + 56 * 61 col1, 44 AS col0
----
3416
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT CASE - 95 WHEN MAX( + ( - + 54 ) ) THEN - COUNT( * ) + ( + COALESCE ( + 58, - 84 ) ) + 19 WHEN 87 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT CASE - 95 WHEN MAX ( + ( - + 54 ) ) THEN - COUNT ( * ) + ( + COALESCE ( + 58, - 84 ) ) + 19 WHEN 87 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( + 6 ) + - + 51 AS col2
----
-45

query I rowsort
SELECT CASE - 54 WHEN - 13 THEN 58 ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT + 20 * - 5 DIV 1 AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-909
SELECT + 20 * - 5 / 1 AS col2
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL 2 * 33 * - + 32 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL 2 * 33 * - + 32 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT + COALESCE ( CASE + 59 WHEN - COUNT( * ) + + + 29 THEN NULL ELSE + - 15 * + + 59 END, - NULLIF ( 65, COUNT( * ) ) )
----
-885

skipif mysql # not compatible
query I rowsort label-911
SELECT + COALESCE ( CASE + 59 WHEN - COUNT ( * ) + + + 29 THEN NULL ELSE + - 15 * + + 59 END, - NULLIF ( 65, COUNT ( * ) ) )
----
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT SUM( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-912
SELECT SUM ( DISTINCT - 14 )
----
-14

query II rowsort
SELECT - 66 * 12 AS col0, 5
----
-792
5

onlyif mysql # aggregate syntax: 
query II rowsort label-914
SELECT + COUNT( * ) * + 18 - - COUNT( * ) + + - ( - 71 ) col2, + ( 68 ) * + 28
----
90
1904

skipif mysql # not compatible
query II rowsort label-914
SELECT + COUNT ( * ) * + 18 - - COUNT ( * ) + + - ( - 71 ) col2, + ( 68 ) * + 28
----
90
1904

query I rowsort
SELECT - 36 * - ( 44 )
----
1584

query I rowsort
SELECT ALL - 60 * + 55 AS col1
----
-3300

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT 96 + + - 18 * - + COUNT( * ) * NULLIF ( - 37, - 88 * - COUNT( * ) * + 95 - - MAX( DISTINCT + 88 + + 62 ) * 51 ) col1
----
-570

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT 96 + + - 18 * - + COUNT ( * ) * NULLIF ( - 37, - 88 * - COUNT ( * ) * + 95 - - MAX ( DISTINCT + 88 + + 62 ) * 51 ) col1
----
-570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT ALL + COALESCE ( + MIN( DISTINCT + 19 ), - 96, 0 * - 2 + + - 94 ) + - COUNT( DISTINCT - ( - ( - 78 ) ) ) DIV 58 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL + COALESCE ( + MIN ( DISTINCT + 19 ), - 96, 0 * - 2 + + - 94 ) + - COUNT ( DISTINCT - ( - ( - 78 ) ) ) / 58 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT - + 13 + - 30 AS col1, - NULLIF ( 52, + - NULLIF ( + 13, - - ( MIN( ALL 56 ) ) ) )
----
-43
-52

skipif mysql # not compatible
query II rowsort label-920
SELECT - + 13 + - 30 AS col1, - NULLIF ( 52, + - NULLIF ( + 13, - - ( MIN ( ALL 56 ) ) ) )
----
-43
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT - MIN( DISTINCT - - 15 ) + COUNT( + 88 )
----
-14

skipif mysql # not compatible
query I rowsort label-922
SELECT - MIN ( DISTINCT - - 15 ) + COUNT ( + 88 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT - 24 DIV + - 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-923
SELECT - 24 / + - 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT - SUM( DISTINCT - 39 ) + COUNT( * ) * 40 * - + 28
----
-1081

skipif mysql # not compatible
query I rowsort label-924
SELECT - SUM ( DISTINCT - 39 ) + COUNT ( * ) * 40 * - + 28
----
-1081

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-925
SELECT ALL + - 42 / - - CAST( NULL AS DECIMAL ) / 14 * + - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + - 42 / - - CAST ( NULL AS REAL ) / 14 * + - 88 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT - + 29 + - MIN( DISTINCT - 16 )
----
-13

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - + 29 + - MIN ( DISTINCT - 16 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT CASE - + 19 WHEN + COUNT( * ) THEN - + 96 ELSE + 77 - 27 * COUNT( * ) END col0
----
50

skipif mysql # not compatible
query I rowsort label-928
SELECT CASE - + 19 WHEN + COUNT ( * ) THEN - + 96 ELSE + 77 - 27 * COUNT ( * ) END col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-929
SELECT - 46 * CAST( NULL AS SIGNED ) + 22 - + 48 / - 95 * + COALESCE ( ( 85 ), - 26 ) + - 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT - 46 * CAST ( NULL AS INTEGER ) + 22 - + 48 / - 95 * + COALESCE ( ( 85 ), - 26 ) + - 75 AS col2
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT + 32 * + SUM( DISTINCT - 37 ), 76 AS col2
----
-1184
76

skipif mysql # not compatible
query II rowsort label-933
SELECT + 32 * + SUM ( DISTINCT - 37 ), 76 AS col2
----
-1184
76

query I rowsort
SELECT - 44 * + - 23 AS col1
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT + ( + + MAX( ALL + + 19 ) ) col0
----
19

skipif mysql # not compatible
query I rowsort label-935
SELECT + ( + + MAX ( ALL + + 19 ) ) col0
----
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT ALL 47 DIV 10 DIV ( - 89 ) - + - 40 + + + 61 * ( ( - 26 ) ) * 21
----
-33266

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL 47 / 10 / ( - 89 ) - + - 40 + + + 61 * ( ( - 26 ) ) * 21
----
-33266

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - COALESCE ( - - COUNT( * ), + 59, + COUNT( - 91 ) ) + - - ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-938
SELECT - COALESCE ( - - COUNT ( * ), + 59, + COUNT ( - 91 ) ) + - - ( COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT + 96 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-939
SELECT + 96 / 65
----
1

query I rowsort
SELECT ALL 8 * + + 54 col1
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-941
SELECT DISTINCT 43 * - MAX( ALL + CAST( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT 43 * - MAX ( ALL + CAST ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-942
SELECT - MAX( + 26 ) * - - 36 AS col2, 3 AS col0
----
-936
3

skipif mysql # not compatible
query II rowsort label-942
SELECT - MAX ( + 26 ) * - - 36 AS col2, 3 AS col0
----
-936
3

query I rowsort
SELECT + 43 * - 33
----
-1419

query I rowsort
SELECT + 60 + - 21
----
39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-946
SELECT + NULLIF ( - 4, + 75 ) DIV + 98 * + - 98 * 59, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-946
SELECT + NULLIF ( - 4, + 75 ) / + 98 * + - 98 * 59, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT - 65 * 9 DIV 34 + - - 88 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-947
SELECT - 65 * 9 / 34 + - - 88 AS col2
----
71

query I rowsort
SELECT DISTINCT 54 * - - 92 * - ( 40 ) col0
----
-198720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-949
SELECT CASE + 27 WHEN + + 20 THEN NULL WHEN - ( 95 ) - - - CAST( NULL AS SIGNED ) THEN + + 70 WHEN + 96 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT CASE + 27 WHEN + + 20 THEN NULL WHEN - ( 95 ) - - - CAST ( NULL AS INTEGER ) THEN + + 70 WHEN + 96 THEN NULL ELSE NULL END AS col1
----
NULL

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

query I rowsort
SELECT ALL + 60 * - 1 + + + 84 + - 53 - + + 37 + - 27 - 90 * - + 72 + 90 * 44 AS col0
----
10347

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL + 45 * + COUNT( * ) * 7 + + 97 + + 25
----
437

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + 45 * + COUNT ( * ) * 7 + + 97 + + 25
----
437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT ALL - COALESCE ( + ( 2 ), 51, - 91 * 38 - + + NULLIF ( + + COUNT( * ), - 73 + SUM( ALL - 14 ) ) DIV + 34 ) + 51 * + 97
----
4945

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - COALESCE ( + ( 2 ), 51, - 91 * 38 - + + NULLIF ( + + COUNT ( * ), - 73 + SUM ( ALL - 14 ) ) / + 34 ) + 51 * + 97
----
4945

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-955
SELECT - - CASE - 33 WHEN - 18 THEN + 50 / - CAST( + AVG ( + 76 ) AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-955
SELECT - - CASE - 33 WHEN - 18 THEN + 50 / - CAST ( + AVG ( + 76 ) AS REAL ) END
----
NULL

query I rowsort
SELECT 62 * + - 33 AS col2
----
-2046

query I rowsort
SELECT - + CASE + 15 WHEN 55 THEN 48 ELSE 94 END AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT DISTINCT + 37 * - + 52 + 21 * - CASE - 85 WHEN - + NULLIF ( - 99, - + 85 ) THEN NULL WHEN - 77 + 66 THEN NULL WHEN 79 + 91 * - 60 THEN + 30 / COUNT( * ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + 37 * - + 52 + 21 * - CASE - 85 WHEN - + NULLIF ( - 99, - + 85 ) THEN NULL WHEN - 77 + 66 THEN NULL WHEN 79 + 91 * - 60 THEN + 30 / COUNT ( * ) END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT + ( - MAX( + CAST( 16 AS SIGNED ) ) ) - ( + 24 ) + 67 * + 37 AS col0
----
2439

skipif mysql # not compatible
query I rowsort label-959
SELECT + ( - MAX ( + CAST ( 16 AS INTEGER ) ) ) - ( + 24 ) + 67 * + 37 AS col0
----
2439

query II rowsort
SELECT ALL - 87 AS col0, 0 AS col0
----
-87
0

query I rowsort
SELECT ALL 14 - + 17
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT DISTINCT + COALESCE ( + 63, + CASE - 84 WHEN CAST( - SUM( ALL + 17 ) AS SIGNED ) - - ( + ( - 38 ) ) * + 50 THEN + 28 ELSE NULL END )
----
63

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + COALESCE ( + 63, + CASE - 84 WHEN CAST ( - SUM ( ALL + 17 ) AS INTEGER ) - - ( + ( - 38 ) ) * + 50 THEN + 28 ELSE NULL END )
----
63

query I rowsort
SELECT ALL + + COALESCE ( + CASE + 75 WHEN + + 43 + 63 + - ( 86 ) THEN 30 ELSE - 35 END, - COALESCE ( ( + ( + 84 ) ), - 30 ) ) - 3 AS col0
----
-38

query I rowsort
SELECT 8 * - + 72
----
-576

query I rowsort
SELECT 10 + 37
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT 62 - - - MAX( + - 55 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-966
SELECT 62 - - - MAX ( + - 55 ) AS col2
----
117

query II rowsort
SELECT 33 * 65 AS col1, 95 col2
----
2145
95

query I rowsort
SELECT 42 * 57 col0
----
2394

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT DISTINCT + ( + + 70 ) DIV - 14 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-969
SELECT DISTINCT + ( + + 70 ) / - 14 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT 52 + - + 90 + + 52 + 94 - ( + 9 ) - + COUNT( + + 28 ) * - 87 * - COALESCE ( - 26 * + NULLIF ( - 81, 5 ), - 0, + 53, + 1 ) AS col1
----
-183123

skipif mysql # not compatible
query I rowsort label-970
SELECT 52 + - + 90 + + 52 + 94 - ( + 9 ) - + COUNT ( + + 28 ) * - 87 * - COALESCE ( - 26 * + NULLIF ( - 81, 5 ), - 0, + 53, + 1 ) AS col1
----
-183123

query I rowsort
SELECT ALL + 32 * 33
----
1056

query I rowsort
SELECT 68 * - + 17 * - - 65
----
-75140

query I rowsort
SELECT DISTINCT + 87 * + 80
----
6960

query I rowsort
SELECT 58 * - + 47 AS col2
----
-2726

query I rowsort
SELECT ALL - COALESCE ( - 14, 20 )
----
14

query I rowsort
SELECT 74 - 53 col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-977
SELECT ALL + 70 + 5 + - - 63 DIV 41 * 42 - 6 col2
----
111

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL + 70 + 5 + - - 63 / 41 * 42 - 6 col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT - 15 + - - 99 * MAX( 95 )
----
9390

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT - 15 + - - 99 * MAX ( 95 )
----
9390

query I rowsort
SELECT ALL 95 + 6 AS col1
----
101

query I rowsort
SELECT 93 + - 36 AS col2
----
57

query I rowsort
SELECT ALL - 97 + - COALESCE ( + 88, 28 )
----
-185

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

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

query II rowsort
SELECT ALL + 60 + + + 39, CASE - ( 2 ) WHEN - 39 THEN + 11 * - 83 ELSE NULL END AS col0
----
99
NULL

query I rowsort
SELECT DISTINCT + 49 * 36
----
1764

query I rowsort
SELECT CASE 62 WHEN 4 THEN 46 WHEN 32 THEN + - 37 / + CASE 95 WHEN 18 * 36 THEN 26 * 9 END ELSE NULL END * + 7 + - 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT + 36 - + - 46 - - 10 * - 57 * - 70 + + SUM( ALL - 51 ) + + 0 + - NULLIF ( + ( + 72 ), CAST( NULL AS SIGNED ) ) * 12
----
39067

skipif mysql # not compatible
query I rowsort label-986
SELECT + 36 - + - 46 - - 10 * - 57 * - 70 + + SUM ( ALL - 51 ) + + 0 + - NULLIF ( + ( + 72 ), CAST ( NULL AS INTEGER ) ) * 12
----
39067

query I rowsort
SELECT + 79 + + 64
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-988
SELECT - - 55 * + COUNT( * ) * - + 17 + + - 52 - - CAST( - 74 AS SIGNED ) - - 63 * 67 AS col2
----
3160

skipif mysql # not compatible
query I rowsort label-988
SELECT - - 55 * + COUNT ( * ) * - + 17 + + - 52 - - CAST ( - 74 AS INTEGER ) - - 63 * 67 AS col2
----
3160

query I rowsort
SELECT ALL - 0 + 29 * 40 col2
----
1160

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

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

query I rowsort
SELECT - 2 + 11
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-992
SELECT CAST( NULL AS SIGNED ) * - 38 - + 82 / - COUNT( * ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT CAST ( NULL AS INTEGER ) * - 38 - + 82 / - COUNT ( * ) * 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL - CASE + ( - 83 ) WHEN NULLIF ( 35, - 32 + - - 58 ) / 26 THEN + ( 77 ) ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL - CASE + ( - 83 ) WHEN NULLIF ( 35, - 32 + - - 58 ) / 26 THEN + ( 77 ) ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT + ( 57 ) - + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT + ( 57 ) - + + COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-995
SELECT - 96 * - CASE - - 26 WHEN - CAST( NULL AS SIGNED ) / + - 6 / 31 THEN - + 47 * + + 84 * - - 59 ELSE - COUNT( * ) - 72 END + 23 * - 80
----
-8848

skipif mysql # not compatible
query I rowsort label-995
SELECT - 96 * - CASE - - 26 WHEN - CAST ( NULL AS INTEGER ) / + - 6 / 31 THEN - + 47 * + + 84 * - - 59 ELSE - COUNT ( * ) - 72 END + 23 * - 80
----
-8848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-996
SELECT ALL SUM( DISTINCT + CAST( + 89 AS SIGNED ) ) - - + COUNT( - - 6 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL SUM ( DISTINCT + CAST ( + 89 AS INTEGER ) ) - - + COUNT ( - - 6 ) AS col0
----
90

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

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

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

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

query I rowsort
SELECT 23 + - 20 col0
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT COALESCE ( 98, + NULLIF ( - + ( + 95 ), + CAST( - ( 17 ) AS SIGNED ) - - 90 ) * + 8 + 45 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT COALESCE ( 98, + NULLIF ( - + ( + 95 ), + CAST ( - ( 17 ) AS INTEGER ) - - 90 ) * + 8 + 45 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 63 * + 49
----
3087

query I rowsort
SELECT DISTINCT ( 42 ) * + + 35 + + - 7
----
1463

query I rowsort
SELECT 68 * - - 83 AS col2
----
5644

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1007
SELECT COUNT( - 30 ) * + + 94 - 44 + + + 12 * 60 + + + 20 DIV - 9 AS col1
----
768

skipif mysql # not compatible
query I rowsort label-1007
SELECT COUNT ( - 30 ) * + + 94 - 44 + + + 12 * 60 + + + 20 / - 9 AS col1
----
768

onlyif mysql # DIV for integer division: 
query I rowsort label-1008
SELECT + 63 DIV + - 18 - + + 9 * + 43 * - 25
----
9672

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 63 / + - 18 - + + 9 * + 43 * - 25
----
9672

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT 58 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT 58 / - 60
----
0

query I rowsort
SELECT DISTINCT 26 * - 27 + 70
----
-632

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT ALL - COUNT( * ), ( - 66 ) * + 91 + - 63 * + - 51 AS col0
----
-1
-2793

skipif mysql # not compatible
query II rowsort label-1011
SELECT ALL - COUNT ( * ), ( - 66 ) * + 91 + - 63 * + - 51 AS col0
----
-1
-2793

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT MIN( ALL + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1012
SELECT MIN ( ALL + 91 ) AS col1
----
91

query I rowsort
SELECT ALL 38 * - 33 + + 23 AS col2
----
-1231

query I rowsort
SELECT 83 + - 41
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT 63 * 71 + - 71 - MAX( 70 )
----
4332

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT 63 * 71 + - 71 - MAX ( 70 )
----
4332

query I rowsort
SELECT + 56 * + 86 + 75
----
4891

query I rowsort
SELECT DISTINCT - 96 * - + 51 + - 42 * - - 11
----
4434

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1018
SELECT ALL + - 40 * NULLIF ( + - 21, + COALESCE ( - 91, - 42 - - CAST( - - COUNT( * ) AS DECIMAL ) ) )
----
840

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + - 40 * NULLIF ( + - 21, + COALESCE ( - 91, - 42 - - CAST ( - - COUNT ( * ) AS REAL ) ) )
----
840

query I rowsort
SELECT - + 15 * - 53 * - - 7
----
5565

query I rowsort
SELECT - 33 + 64 AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1021
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - 57 + - 31
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-1021
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 57 + - 31
----
NULL
-88

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

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

query II rowsort
SELECT 12, 60 AS col0
----
12
60

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

query I rowsort
SELECT ALL - + NULLIF ( 15, - 13 ) - + 62 AS col2
----
-77

query I rowsort
SELECT - - 13 - - 70
----
83

query I rowsort
SELECT + - 49 * + 24 col2
----
-1176

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

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

query I rowsort
SELECT ALL 33 * + - 97 * 35 * + - 52
----
5825820

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL + 5 * - ( + 29 ) * - + 34 * - COUNT( * ) AS col0
----
-4930

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + 5 * - ( + 29 ) * - + 34 * - COUNT ( * ) AS col0
----
-4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT + NULLIF ( + CASE - NULLIF ( - 28, 13 + - - 51 * 6 ) WHEN + CAST( 11 AS SIGNED ) + + + 93 THEN + - 73 * + 32 WHEN 46 * NULLIF ( + AVG ( + 95 ), 53 ) THEN NULL END, - 97 ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT + NULLIF ( + CASE - NULLIF ( - 28, 13 + - - 51 * 6 ) WHEN + CAST ( 11 AS INTEGER ) + + + 93 THEN + - 73 * + 32 WHEN 46 * NULLIF ( + AVG ( + 95 ), 53 ) THEN NULL END, - 97 ) * 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT + 74 - + 65 * + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1033
SELECT + 74 - + 65 * + + COUNT ( * )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT ALL 85 DIV 10 * + 82
----
656

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL 85 / 10 * + 82
----
656

query I rowsort
SELECT ALL 97 + 70
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1036
SELECT + 38 + 84 + + COUNT( * ) DIV + + 28 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-1036
SELECT + 38 + 84 + + COUNT ( * ) / + + 28 AS col1
----
122

query II rowsort
SELECT 89, 28 * + 81 AS col1
----
89
2268

query II rowsort
SELECT 59, - 65 + - 58 AS col0
----
59
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT - 37 * - + CASE - 33 WHEN + 35 + + ( + - 74 ) * + 47 THEN - - CAST( + ( - ( - 1 ) ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT - 37 * - + CASE - 33 WHEN + 35 + + ( + - 74 ) * + 47 THEN - - CAST ( + ( - ( - 1 ) ) AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 55 + + ( - 61 ) * + 80 AS col0
----
-4825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT + 84 + - CAST( - - 11 AS SIGNED ) * - ( 97 )
----
1151

skipif mysql # not compatible
query I rowsort label-1041
SELECT + 84 + - CAST ( - - 11 AS INTEGER ) * - ( 97 )
----
1151

query I rowsort
SELECT ALL 90 * 75 col1
----
6750

query I rowsort
SELECT DISTINCT 24 * + 88
----
2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT - 71 DIV NULLIF ( - NULLIF ( + 62, + COUNT( * ) * + 35 - - + ( 28 ) ), + 46 + - COALESCE ( + 31, - 59 ) - + 53 )
----
1

skipif mysql # not compatible
query I rowsort label-1044
SELECT - 71 / NULLIF ( - NULLIF ( + 62, + COUNT ( * ) * + 35 - - + ( 28 ) ), + 46 + - COALESCE ( + 31, - 59 ) - + 53 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1045
SELECT + 48 + 26, 36 / - CASE - 51 WHEN 61 * - 1 THEN + 78 + + 51 WHEN - + COUNT( + + 91 ) * AVG ( 46 ) - + CASE 32 - - 6 * + 13 WHEN - 66 THEN NULL WHEN 33 THEN - 87 END * - 96 THEN NULL ELSE NULL END AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-1045
SELECT + 48 + 26, 36 / - CASE - 51 WHEN 61 * - 1 THEN + 78 + + 51 WHEN - + COUNT ( + + 91 ) * AVG ( 46 ) - + CASE 32 - - 6 * + 13 WHEN - 66 THEN NULL WHEN 33 THEN - 87 END * - 96 THEN NULL ELSE NULL END AS col2
----
74
NULL

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT - 22 + - COUNT ( * ) AS col1
----
-23

query I rowsort
SELECT + 61 * - 17 + + - 31 - + + 88
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT DISTINCT - 4 * - - 23 - + SUM( + 97 )
----
-189

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - 4 * - - 23 - + SUM ( + 97 )
----
-189

query I rowsort
SELECT ALL - + ( - 13 ) * + 80 - 33 + 62 AS col2
----
1069

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

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

query I rowsort
SELECT ALL + 96 * - ( 74 ) * - ( 99 ) - - 20 AS col1
----
703316

query II rowsort
SELECT ALL + 27 AS col1, 55
----
27
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1053
SELECT + 12 * + - CAST( NULL AS SIGNED ) + + COUNT( * ) + + 56
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT - 20 * + 75 * + COUNT( * ) AS col1
----
-1500

skipif mysql # not compatible
query I rowsort label-1054
SELECT - 20 * + 75 * + COUNT ( * ) AS col1
----
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT - COALESCE ( 17, - NULLIF ( + + 81, 82 + - 93 ), - 27 ) * 49 DIV - 71 + + 81 + - 73 + 93 * 21
----
1972

skipif mysql # not compatible
query I rowsort label-1055
SELECT - COALESCE ( 17, - NULLIF ( + + 81, 82 + - 93 ), - 27 ) * 49 / - 71 + + 81 + - 73 + 93 * 21
----
1972

query I rowsort
SELECT - 34 - 68 + - 45
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - COUNT( + 92 ) + ( 10 ) + + - 93
----
-84

skipif mysql # not compatible
query I rowsort label-1057
SELECT - COUNT ( + 92 ) + ( 10 ) + + - 93
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT - COUNT( * ) * MAX( ALL + 87 ) - - + 32 + - + 56 + - NULLIF ( COUNT( - - 73 ), + + 1 / 21 + - COUNT( * ) ) * 25 col2
----
-136

skipif mysql # not compatible
query I rowsort label-1058
SELECT - COUNT ( * ) * MAX ( ALL + 87 ) - - + 32 + - + 56 + - NULLIF ( COUNT ( - - 73 ), + + 1 / 21 + - COUNT ( * ) ) * 25 col2
----
-136

query II rowsort
SELECT DISTINCT + 80, + 34 * - + 97 AS col1
----
80
-3298

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT ALL 45 * ( + 32 ) + + COUNT( * ) + 7 AS col0
----
1448

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL 45 * ( + 32 ) + + COUNT ( * ) + 7 AS col0
----
1448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1062
SELECT - + 26 + - - 86 + - 26 - COUNT( - 64 ) DIV COUNT( * ) * - 67 * + 13
----
905

skipif mysql # not compatible
query I rowsort label-1062
SELECT - + 26 + - - 86 + - 26 - COUNT ( - 64 ) / COUNT ( * ) * - 67 * + 13
----
905

query I rowsort
SELECT - - 52 + + 41 * + 1
----
93

query I rowsort
SELECT DISTINCT + 0 + 27
----
27

query I rowsort
SELECT ALL - 46 + 77
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1066
SELECT DISTINCT - 28 + ( - + 95 ) * - - COALESCE ( CAST( + 1 AS SIGNED ), 55 ) AS col0, + 46 * + + 38 AS col1
----
-123
1748

skipif mysql # not compatible
query II rowsort label-1066
SELECT DISTINCT - 28 + ( - + 95 ) * - - COALESCE ( CAST ( + 1 AS INTEGER ), 55 ) AS col0, + 46 * + + 38 AS col1
----
-123
1748

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1067
SELECT - 14 DIV - - COUNT( - + 55 ) AS col0, - 54 * + 55 col1
----
-14
-2970

skipif mysql # not compatible
query II rowsort label-1067
SELECT - 14 / - - COUNT ( - + 55 ) AS col0, - 54 * + 55 col1
----
-14
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT MIN( + + 90 ) * + CASE + - 70 WHEN + 88 THEN + 83 WHEN + + 6 THEN NULL END + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT MIN ( + + 90 ) * + CASE + - 70 WHEN + 88 THEN + 83 WHEN + + 6 THEN NULL END + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT 43 + + 73 + + COUNT( * ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT 43 + + 73 + + COUNT ( * ) AS col0
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT DISTINCT - 28 + + + COUNT( * ), - 41 AS col1
----
-27
-41

skipif mysql # not compatible
query II rowsort label-1070
SELECT DISTINCT - 28 + + + COUNT ( * ), - 41 AS col1
----
-27
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1071
SELECT ALL CAST( + + 9 AS SIGNED ) AS col1, 19 AS col1
----
9
19

skipif mysql # not compatible
query II rowsort label-1071
SELECT ALL CAST ( + + 9 AS INTEGER ) AS col1, 19 AS col1
----
9
19

query I rowsort
SELECT ALL 78 + + + 99 * + 17
----
1761

query I rowsort
SELECT ALL + 11 * + ( + - 30 )
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT - 56 * + - 55 / + 85 * - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT - 56 * + - 55 / + 85 * - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 96 * + + 97
----
9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1076
SELECT DISTINCT COUNT( * ) DIV + 34 AS col1, - MAX( DISTINCT 19 )
----
0
-19

skipif mysql # not compatible
query II rowsort label-1076
SELECT DISTINCT COUNT ( * ) / + 34 AS col1, - MAX ( DISTINCT 19 )
----
0
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL 42 - + 21 - + ( - - COALESCE ( - 33, - COUNT( * ) * 99 + - + 13 ) ) * + 85 - + 89 / + - SUM( ALL + CASE - 42 WHEN 26 * - NULLIF ( 8, 61 ) THEN - 15 WHEN 60 - + 70 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL 42 - + 21 - + ( - - COALESCE ( - 33, - COUNT ( * ) * 99 + - + 13 ) ) * + 85 - + 89 / + - SUM ( ALL + CASE - 42 WHEN 26 * - NULLIF ( 8, 61 ) THEN - 15 WHEN 60 - + 70 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1078
SELECT 76 - - NULLIF ( + 0, + COALESCE ( + 83, - SUM( + 43 ) ) + + 87 + + 32 + + COUNT( * ) * + CAST( NULL AS SIGNED ) + + 77 * + 19 ) + - 35 * 98 AS col0
----
-3354

skipif mysql # not compatible
query I rowsort label-1078
SELECT 76 - - NULLIF ( + 0, + COALESCE ( + 83, - SUM ( + 43 ) ) + + 87 + + 32 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 77 * + 19 ) + - 35 * 98 AS col0
----
-3354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT 84 DIV - COUNT( * ) - + 33 * + ( 98 ) - - 95 + - + 28
----
-3251

skipif mysql # not compatible
query I rowsort label-1079
SELECT 84 / - COUNT ( * ) - + 33 * + ( 98 ) - - 95 + - + 28
----
-3251

query I rowsort
SELECT 39 * + 42 * + - 48 + - - 33 AS col2
----
-78591

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT 71 * - ( - ( - 34 ) ) * + - COUNT( DISTINCT - NULLIF ( - + 66, 99 ) )
----
2414

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT 71 * - ( - ( - 34 ) ) * + - COUNT ( DISTINCT - NULLIF ( - + 66, 99 ) )
----
2414

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT COUNT( * ) * - + 21 AS col1, + 34 + 67
----
-21
101

skipif mysql # not compatible
query II rowsort label-1082
SELECT COUNT ( * ) * - + 21 AS col1, + 34 + 67
----
-21
101

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT ALL - CASE + + COUNT( * ) WHEN - 68 THEN - 18 ELSE - COUNT( * ) END AS col0, + 43
----
1
43

skipif mysql # not compatible
query II rowsort label-1083
SELECT ALL - CASE + + COUNT ( * ) WHEN - 68 THEN - 18 ELSE - COUNT ( * ) END AS col0, + 43
----
1
43

query I rowsort
SELECT - + 28 * + 48 - - 20 AS col1
----
-1324

query I rowsort
SELECT DISTINCT - 10 * + 81
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1086
SELECT 52 * + 25 * + - CAST( NULL AS SIGNED ) * - - 65 + + COALESCE ( + - 25, + 62 ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT 52 * + 25 * + - CAST ( NULL AS INTEGER ) * - - 65 + + COALESCE ( + - 25, + 62 ) * 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT 66 * + - 89 + 99 + - + 70 + + 65 + 0 DIV + + 14 + + - 0 * 66 AS col2
----
-5780

skipif mysql # not compatible
query I rowsort label-1087
SELECT 66 * + - 89 + 99 + - + 70 + + 65 + 0 / + + 14 + + - 0 * 66 AS col2
----
-5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT NULLIF ( + 39, - CASE - 54 WHEN COUNT( * ) THEN + COALESCE ( + ( - - 67 ), CAST( NULL AS SIGNED ) * 52, - CAST( + - 86 AS SIGNED ) ) * 45 ELSE NULL END / - MIN( ALL + 66 ) - 25 ) + 31 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1088
SELECT NULLIF ( + 39, - CASE - 54 WHEN COUNT ( * ) THEN + COALESCE ( + ( - - 67 ), CAST ( NULL AS INTEGER ) * 52, - CAST ( + - 86 AS INTEGER ) ) * 45 ELSE NULL END / - MIN ( ALL + 66 ) - 25 ) + 31 AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT ALL - ( - - CASE + COUNT( * ) WHEN + 7 * - 8 THEN + + 12 WHEN 25 THEN NULL ELSE NULL END ) AS col0, - 72
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-1089
SELECT ALL - ( - - CASE + COUNT ( * ) WHEN + 7 * - 8 THEN + + 12 WHEN 25 THEN NULL ELSE NULL END ) AS col0, - 72
----
NULL
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT 31 * - + 43, + 98 * - COUNT( * ) AS col2
----
-1333
-98

skipif mysql # not compatible
query II rowsort label-1090
SELECT 31 * - + 43, + 98 * - COUNT ( * ) AS col2
----
-1333
-98

query I rowsort
SELECT + 31 + + + ( 16 ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-1092
SELECT DISTINCT + - 55 DIV 91, + 36 AS col2
----
0
36

skipif mysql # not compatible
query II rowsort label-1092
SELECT DISTINCT + - 55 / 91, + 36 AS col2
----
0
36

query I rowsort
SELECT - 98 * + + 94
----
-9212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1094
SELECT DISTINCT + 34 + COUNT( + 11 ) + - 54 DIV 64 AS col0, COUNT( * ) AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-1094
SELECT DISTINCT + 34 + COUNT ( + 11 ) + - 54 / 64 AS col0, COUNT ( * ) AS col1
----
35
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1095
SELECT - 25 DIV 41, COUNT( ALL - - 31 ) + - 59 + - 40 + - 72 * + - 59 AS col0
----
0
4150

skipif mysql # not compatible
query II rowsort label-1095
SELECT - 25 / 41, COUNT ( ALL - - 31 ) + - 59 + - 40 + - 72 * + - 59 AS col0
----
0
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT ALL CASE + COUNT( * ) WHEN + 99 THEN + COUNT( * ) END + COUNT( * ) * + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL CASE + COUNT ( * ) WHEN + 99 THEN + COUNT ( * ) END + COUNT ( * ) * + 44 AS col2
----
NULL

query I rowsort
SELECT - 64 - ( 89 ) AS col0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT - 76 AS col1, - COUNT( * ) + 80
----
-76
79

skipif mysql # not compatible
query II rowsort label-1098
SELECT - 76 AS col1, - COUNT ( * ) + 80
----
-76
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1099
SELECT 52 + ( + CASE + 96 WHEN - 6 * + 61 + 20 + - 88 * - 1 - CAST( NULL AS SIGNED ) + - COUNT( * ) THEN - 3 WHEN - + 44 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT 52 + ( + CASE + 96 WHEN - 6 * + 61 + 20 + - 88 * - 1 - CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN - 3 WHEN - + 44 THEN NULL ELSE NULL END ) AS col0
----
NULL

query II rowsort
SELECT 28, 26 AS col2
----
28
26

query I rowsort
SELECT ALL - 42 * - - 34
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT 61 + + + COUNT( - + 13 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1102
SELECT 61 + + + COUNT ( - + 13 ) AS col0
----
62

query II rowsort
SELECT 36 AS col0, ( ( + + 75 ) ) AS col0
----
36
75

query II rowsort
SELECT ALL - 15 + - 48 * + 88 + - 54 * - 49 - + + 25 AS col0, 7 + - + ( - 84 ) - - NULLIF ( - 71, + 49 * - ( - COALESCE ( + NULLIF ( 94, + 29 ), - 39 ) ) + 10 ) col1
----
-1618
20

query I rowsort
SELECT 77 - + 22
----
55

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

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL 14 * - 41 * COUNT ( * ) AS col1
----
-574

query I rowsort
SELECT 86 - 72
----
14

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

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

query I rowsort
SELECT ALL - 52 - - 26
----
-26

query I rowsort
SELECT 76 + 15
----
91

query II rowsort
SELECT 14, - 70 + 51 AS col1
----
14
-19

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

skipif mysql # not compatible
query I rowsort label-1112
SELECT COUNT ( * ) - + 53 AS col1
----
-52

query I rowsort
SELECT 92 * 96 AS col1
----
8832

query I rowsort
SELECT DISTINCT - 34 - 8 AS col0
----
-42

query I rowsort
SELECT ALL + 80 * 96
----
7680

query II rowsort
SELECT DISTINCT - + 31, + 79 * + - 16 + - + 40 AS col0
----
-31
-1304

query I rowsort
SELECT ALL - 81 * 8 AS col0
----
-648

query I rowsort
SELECT 54 + 91 AS col2
----
145

query I rowsort
SELECT + 46 + - 81 + - 27 + - - 40 AS col1
----
-22

query I rowsort
SELECT 46 * + - 8 + + - 67 * - + 9 AS col1
----
235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT - + 87 * COUNT( - + CAST( - 89 AS SIGNED ) ) + 93 + + - 15 * 41 AS col1
----
-609

skipif mysql # not compatible
query I rowsort label-1121
SELECT - + 87 * COUNT ( - + CAST ( - 89 AS INTEGER ) ) + 93 + + - 15 * 41 AS col1
----
-609

query II rowsort
SELECT DISTINCT - - 38 AS col2, 14 AS col1
----
38
14

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

query I rowsort
SELECT ALL 26 + 37
----
63

query I rowsort
SELECT ALL 65 + + 75 + + 0
----
140

query I rowsort
SELECT 15 + + + 11 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1127
SELECT 24 * + - CAST( + - 76 AS SIGNED ) * + COALESCE ( 53, + MAX( DISTINCT 29 ) ) + - 31 AS col0
----
96641

skipif mysql # not compatible
query I rowsort label-1127
SELECT 24 * + - CAST ( + - 76 AS INTEGER ) * + COALESCE ( 53, + MAX ( DISTINCT 29 ) ) + - 31 AS col0
----
96641

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT - + CASE COUNT( * ) WHEN + 16 + + 79 * 82 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT - + CASE COUNT ( * ) WHEN + 16 + + 79 * 82 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1129
SELECT DISTINCT 68 + - 39 AS col0, COALESCE ( - 94, + + NULLIF ( - CAST( 60 AS SIGNED ), MIN( - 32 ) * 27 - + 25 ) * - 53 )
----
29
-94

skipif mysql # not compatible
query II rowsort label-1129
SELECT DISTINCT 68 + - 39 AS col0, COALESCE ( - 94, + + NULLIF ( - CAST ( 60 AS INTEGER ), MIN ( - 32 ) * 27 - + 25 ) * - 53 )
----
29
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - SUM( DISTINCT 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-1130
SELECT - SUM ( DISTINCT 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1131
SELECT CAST( + 0 AS SIGNED ) + + 1 DIV + 74 * - + 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT CAST ( + 0 AS INTEGER ) + + 1 / + 74 * - + 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT 32 - - 98 + + - COUNT( * ) * - 64 + - 48
----
146

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT 32 - - 98 + + - COUNT ( * ) * - 64 + - 48
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT ALL COUNT( - 35 ) - 97
----
-96

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL COUNT ( - 35 ) - 97
----
-96

query I rowsort
SELECT - 78 * COALESCE ( - + 35, 62 ) AS col2
----
2730

query I rowsort
SELECT - 37 + - + 29 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + COUNT( * ) * + 2 * - 67 col2
----
-134

skipif mysql # not compatible
query I rowsort label-1136
SELECT + COUNT ( * ) * + 2 * - 67 col2
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT - 55 * ( + - COALESCE ( - CAST( NULL AS SIGNED ), + 43 ) )
----
2365

skipif mysql # not compatible
query I rowsort label-1137
SELECT - 55 * ( + - COALESCE ( - CAST ( NULL AS INTEGER ), + 43 ) )
----
2365

query I rowsort
SELECT ALL 60 * 13
----
780

query I rowsort
SELECT - 7 + - 73 - + 30 col0
----
-110

query I rowsort
SELECT + 19 * + 3 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT COUNT( 84 ) * + 60
----
60

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT COUNT ( 84 ) * + 60
----
60

query I rowsort
SELECT - 88 + - - 14
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1143
SELECT - - 71 - + + 96, 5 * - - 61 * + + 0 AS col0, + 16 + 53 + + - MIN( DISTINCT + - 74 ) * 90 DIV - 3 AS col0
----
-25
0
-2151

skipif mysql # not compatible
query III rowsort label-1143
SELECT - - 71 - + + 96, 5 * - - 61 * + + 0 AS col0, + 16 + 53 + + - MIN ( DISTINCT + - 74 ) * 90 / - 3 AS col0
----
-25
0
-2151

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - 17 * - - COUNT( * ) * COUNT( DISTINCT + 75 ) * + 46
----
-782

skipif mysql # not compatible
query I rowsort label-1144
SELECT - 17 * - - COUNT ( * ) * COUNT ( DISTINCT + 75 ) * + 46
----
-782

query II rowsort
SELECT DISTINCT + - 0 * - - ( - - 50 ) + + 30 AS col1, - ( - 82 ) col2
----
30
82

query I rowsort
SELECT ALL - + 33 * - 18 + + 14 + + 87 + + 28 + 66 * 36 * + 20
----
48243

query I rowsort
SELECT ALL - 47 * 29 + - 14
----
-1377

query I rowsort
SELECT DISTINCT - COALESCE ( - 3, - 19 * + 62 ) * - 70 + - ( - + 86 ) + - 95
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL - 68 * COUNT( * ) * + 77 + + 56
----
-5180

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - 68 * COUNT ( * ) * + 77 + + 56
----
-5180

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

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

query I rowsort
SELECT - + 53 * + 95
----
-5035

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT + 17 * 88 - + 86 + - COALESCE ( - 25, - COUNT( * ) * + 75 ) * + - 26 + - + 28 AS col0, 98 AS col2
----
732
98

skipif mysql # not compatible
query II rowsort label-1152
SELECT + 17 * 88 - + 86 + - COALESCE ( - 25, - COUNT ( * ) * + 75 ) * + - 26 + - + 28 AS col0, 98 AS col2
----
732
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT + 16 + 94 - - + COUNT( * ) * - 34 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1153
SELECT + 16 + 94 - - + COUNT ( * ) * - 34 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT DISTINCT + + MIN( ALL - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT + + MIN ( ALL - 75 ) AS col1
----
-75

query I rowsort
SELECT - 69 * - + NULLIF ( - 15, + - 5 * - 35 )
----
-1035

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT DISTINCT + COUNT( * ), 55 + - + ( 51 ) AS col2
----
1
4

skipif mysql # not compatible
query II rowsort label-1156
SELECT DISTINCT + COUNT ( * ), 55 + - + ( 51 ) AS col2
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL 68 * ( - 72 ) - 1 + - + CASE + 61 WHEN 35 + - 78 + 83 THEN NULL ELSE + COALESCE ( - + 60, - 25, - 99 ) * COUNT( * ) * + + 63 + 93 END - 57 * 29 AS col0
----
-2863

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL 68 * ( - 72 ) - 1 + - + CASE + 61 WHEN 35 + - 78 + 83 THEN NULL ELSE + COALESCE ( - + 60, - 25, - 99 ) * COUNT ( * ) * + + 63 + 93 END - 57 * 29 AS col0
----
-2863

onlyif mysql # aggregate syntax: 
query II rowsort label-1158
SELECT + COALESCE ( COUNT( * ), 44 * + ( - 61 ) ) col1, 39
----
1
39

skipif mysql # not compatible
query II rowsort label-1158
SELECT + COALESCE ( COUNT ( * ), 44 * + ( - 61 ) ) col1, 39
----
1
39

query II rowsort
SELECT ALL + 32 AS col2, + 14 col2
----
32
14

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

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

query I rowsort
SELECT + 55 * + 39
----
2145

query II rowsort
SELECT ALL 48 AS col2, + 76 AS col1
----
48
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1163
SELECT + COUNT( * ) + - - 20 + - 25 DIV - 84 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1163
SELECT + COUNT ( * ) + - - 20 + - 25 / - 84 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT MIN( 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1164
SELECT MIN ( 50 ) AS col0
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL COUNT( 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL COUNT ( 88 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT + 47 + - SUM( DISTINCT + 35 )
----
12

skipif mysql # not compatible
query I rowsort label-1167
SELECT + 47 + - SUM ( DISTINCT + 35 )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT DISTINCT 12 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT 12 / 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + - COALESCE ( + ( - 18 ), + + 50 ) + - COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1169
SELECT + - COALESCE ( + ( - 18 ), + + 50 ) + - COUNT ( * ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1170
SELECT - 11, COUNT( * ) - - 6 AS col1
----
-11
7

skipif mysql # not compatible
query II rowsort label-1170
SELECT - 11, COUNT ( * ) - - 6 AS col1
----
-11
7

query I rowsort
SELECT ALL 31 * + 35
----
1085

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

skipif mysql # not compatible
query I rowsort label-1172
SELECT + COUNT ( * ) / + 14 + - - 59 - + COUNT ( * )
----
58

query I rowsort
SELECT + + 26 + 41 AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1174
SELECT + COUNT( * ) * 55 * - 94 + + - 84 * + 85 AS col0, 81 * - 74
----
-12310
-5994

skipif mysql # not compatible
query II rowsort label-1174
SELECT + COUNT ( * ) * 55 * - 94 + + - 84 * + 85 AS col0, 81 * - 74
----
-12310
-5994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1175
SELECT - CAST( + - 91 AS SIGNED ) * + ( 66 ) AS col0
----
6006

skipif mysql # not compatible
query I rowsort label-1175
SELECT - CAST ( + - 91 AS INTEGER ) * + ( 66 ) AS col0
----
6006

onlyif mysql # DIV for integer division: 
query II rowsort label-1176
SELECT ALL + 39 AS col0, 49 DIV + 17
----
39
2

skipif mysql # not compatible
query II rowsort label-1176
SELECT ALL + 39 AS col0, 49 / + 17
----
39
2

query I rowsort
SELECT DISTINCT 2 + - + 53 AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1178
SELECT DISTINCT + 85 DIV + 81 + ( - 20 ) DIV + 81 + - 33 + + 14 * - COUNT( * ) AS col0, MAX( 16 ) AS col0
----
-46
16

skipif mysql # not compatible
query II rowsort label-1178
SELECT DISTINCT + 85 / + 81 + ( - 20 ) / + 81 + - 33 + + 14 * - COUNT ( * ) AS col0, MAX ( 16 ) AS col0
----
-46
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL - MAX( DISTINCT + 57 ) / - - CASE - 4 WHEN - 68 * - + SUM( + 48 ) THEN - + 95 ELSE NULL END + - ( + 39 ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - MAX ( DISTINCT + 57 ) / - - CASE - 4 WHEN - 68 * - + SUM ( + 48 ) THEN - + 95 ELSE NULL END + - ( + 39 ) + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1180
SELECT + CAST( NULL AS SIGNED ) AS col1, + 27 AS col0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-1180
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 27 AS col0
----
NULL
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT 82 / - + COUNT( * ) * 42 + - + 60 + + CAST( NULL AS SIGNED ) * + 33 + COUNT( + 87 ) - - 93 * - - CAST( NULL AS SIGNED ) - - 82 * + 60 - - CASE COUNT( * ) WHEN - - 58 + + CASE - 27 WHEN 8 * AVG ( ALL + 54 ) THEN + 17 + + 60 WHEN 45 * 9 THEN NULL ELSE NULL END THEN NULL WHEN + 58 + + 48 / - 23 THEN CAST( 73 AS SIGNED ) END + 48 * + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT 82 / - + COUNT ( * ) * 42 + - + 60 + + CAST ( NULL AS INTEGER ) * + 33 + COUNT ( + 87 ) - - 93 * - - CAST ( NULL AS INTEGER ) - - 82 * + 60 - - CASE COUNT ( * ) WHEN - - 58 + + CASE - 27 WHEN 8 * AVG ( ALL + 54 ) THEN + 17 + + 60 WHEN 45 * 9 THEN NULL ELSE NULL END THEN NULL WHEN + 58 + + 48 / - 23 THEN CAST ( 73 AS INTEGER ) END + 48 * + 65 col2
----
NULL

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

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

query I rowsort
SELECT - 5 * + 85 AS col2
----
-425

query I rowsort
SELECT - 44 + + 17 col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT ALL 94 / - CAST( NULL AS SIGNED ) / + + COUNT( * ) * - 0 - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL 94 / - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * - 0 - 79
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1186
SELECT DISTINCT + 11 / + + 30 + - ( - - ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + 11 / + + 30 + - ( - - ( CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1187
SELECT DISTINCT - 94 * - + 55 + + MIN( ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT - 94 * - + 55 + + MIN ( ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 24 * + - 86
----
-2064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1189
SELECT DISTINCT - NULLIF ( COUNT( * ), - + 4 * - CAST( NULL AS SIGNED ) + + 42 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT - NULLIF ( COUNT ( * ), - + 4 * - CAST ( NULL AS INTEGER ) + + 42 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1190
SELECT ALL - 83 - - 22 - - + 2 DIV + - MAX( + 51 )
----
-61

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL - 83 - - 22 - - + 2 / + - MAX ( + 51 )
----
-61

query I rowsort
SELECT ALL + 29 * - 4 col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT SUM( DISTINCT - 20 ) + 62 * ( 24 ) - 43 col0
----
1425

skipif mysql # not compatible
query I rowsort label-1192
SELECT SUM ( DISTINCT - 20 ) + 62 * ( 24 ) - 43 col0
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT COUNT( * ) * - + COALESCE ( - 68, + 56 + + 41 )
----
68

skipif mysql # not compatible
query I rowsort label-1193
SELECT COUNT ( * ) * - + COALESCE ( - 68, + 56 + + 41 )
----
68

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT 12 - - 39 * + NULLIF ( ( - COUNT( * ) ), 69 * + ( + COALESCE ( + 81, 82 ) ) * + 3 / - AVG ( DISTINCT + 35 ) ) * + - SUM( 18 ) AS col0
----
714

skipif mysql # not compatible
query I rowsort label-1196
SELECT 12 - - 39 * + NULLIF ( ( - COUNT ( * ) ), 69 * + ( + COALESCE ( + 81, 82 ) ) * + 3 / - AVG ( DISTINCT + 35 ) ) * + - SUM ( 18 ) AS col0
----
714

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT 86 + + ( + - COALESCE ( + 22, - - 81, - COUNT( * ) ) ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1198
SELECT 86 + + ( + - COALESCE ( + 22, - - 81, - COUNT ( * ) ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 39 * - - 14 + 9
----
-537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT MIN( - ( + 2 ) ) * + + CAST( 93 AS SIGNED ) + + - 12 * + 72
----
-1050

skipif mysql # not compatible
query I rowsort label-1200
SELECT MIN ( - ( + 2 ) ) * + + CAST ( 93 AS INTEGER ) + + - 12 * + 72
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT 12 + + SUM( DISTINCT - 74 )
----
-62

skipif mysql # not compatible
query I rowsort label-1201
SELECT 12 + + SUM ( DISTINCT - 74 )
----
-62

query I rowsort
SELECT ALL 7 * - 99
----
-693

query II rowsort
SELECT ALL 59 AS col2, - 46 AS col2
----
59
-46

query I rowsort
SELECT DISTINCT - 67 * + 66 AS col2
----
-4422

query I rowsort
SELECT 31 + - - 17 * + 65 * 34 col0
----
37601

query I rowsort
SELECT ALL 71 + - 74 AS col0
----
-3

query I rowsort
SELECT ALL COALESCE ( - - 9, - 4 ) + + 78 + - 83
----
4

query I rowsort
SELECT - 90 * + - 24 AS col2
----
2160

query II rowsort
SELECT - 59 + - 61 AS col1, - 99
----
-120
-99

query II rowsort
SELECT - NULLIF ( - 61, 65 * + 84 ), 38 AS col2
----
61
38

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT COUNT ( * ) / - ( - 95 ) / + 33 AS col1
----
0

query I rowsort
SELECT ALL + 69 + - 38
----
31

query II rowsort
SELECT 68 AS col1, 95
----
68
95

query I rowsort
SELECT DISTINCT 87 + 14
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1215
SELECT DISTINCT 91 + + 80 + - MAX( ALL 46 ) + + 42 + + + 14 + 45 * - 8 * - + COUNT( * ) * 35 - + - 71 * - ( CAST( - + 27 AS SIGNED ) ) + 72 * + + NULLIF ( - 4, 64 * - MAX( 33 ) ) AS col1
----
14410

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT 91 + + 80 + - MAX ( ALL 46 ) + + 42 + + + 14 + 45 * - 8 * - + COUNT ( * ) * 35 - + - 71 * - ( CAST ( - + 27 AS INTEGER ) ) + 72 * + + NULLIF ( - 4, 64 * - MAX ( 33 ) ) AS col1
----
14410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1216
SELECT DISTINCT ( - - 50 ) + COALESCE ( 2, - 78 * MIN( - 21 ) * 88 + - 90 + - CASE 38 WHEN + 72 THEN NULL WHEN + - ( 38 ) THEN 34 ELSE NULL END * + CAST( NULL AS SIGNED ) + + MIN( DISTINCT 3 ) * ( - 79 + - 45 ) ) - - 65 * ( + 44 + + 20 )
----
4212

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT ( - - 50 ) + COALESCE ( 2, - 78 * MIN ( - 21 ) * 88 + - 90 + - CASE 38 WHEN + 72 THEN NULL WHEN + - ( 38 ) THEN 34 ELSE NULL END * + CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT 3 ) * ( - 79 + - 45 ) ) - - 65 * ( + 44 + + 20 )
----
4212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1217
SELECT DISTINCT - 50 DIV + COUNT( + 20 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT - 50 / + COUNT ( + 20 ) AS col0
----
-50

query II rowsort
SELECT - 25 AS col2, 20
----
-25
20

query I rowsort
SELECT - COALESCE ( - + 33, + + 52 ) AS col2
----
33

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

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

query I rowsort
SELECT DISTINCT + 26 - 40
----
-14

query I rowsort
SELECT ALL - 93 * - + 50 AS col0
----
4650

query II rowsort
SELECT ALL + 82 * - - 20 AS col1, 33
----
1640
33

query I rowsort
SELECT DISTINCT 21 - + 75
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1225
SELECT ALL - - COUNT( * ) AS col0, - 62 + + + COUNT( * )
----
1
-61

skipif mysql # not compatible
query II rowsort label-1225
SELECT ALL - - COUNT ( * ) AS col0, - 62 + + + COUNT ( * )
----
1
-61

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

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

query I rowsort
SELECT 15 * 97 * 83 AS col1
----
120765

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL - 52 * - - 11 * - ( - + COUNT( * ) ) AS col2
----
-572

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - 52 * - - 11 * - ( - + COUNT ( * ) ) AS col2
----
-572

query I rowsort
SELECT DISTINCT - NULLIF ( - 67, + 80 * + + 37 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL - 53 * - COALESCE ( + ( + + 93 ), - 36 - 61 * 14, + SUM( - 17 ) ) * - - 12 AS col2
----
59148

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL - 53 * - COALESCE ( + ( + + 93 ), - 36 - 61 * 14, + SUM ( - 17 ) ) * - - 12 AS col2
----
59148

query I rowsort
SELECT ALL - ( 90 ) + - + 46 * - 54 AS col1
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT DISTINCT + 7 + - + CASE + - NULLIF ( ( 16 ), + 41 ) WHEN + 84 THEN NULL WHEN + COALESCE ( 44, 21, - 88 * - 0 ) / + 84 * - 44 * 85 THEN NULL ELSE + + CASE 85 WHEN 41 THEN COUNT( * ) END END * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT + 7 + - + CASE + - NULLIF ( ( 16 ), + 41 ) WHEN + 84 THEN NULL WHEN + COALESCE ( 44, 21, - 88 * - 0 ) / + 84 * - 44 * 85 THEN NULL ELSE + + CASE 85 WHEN 41 THEN COUNT ( * ) END END * + 6 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 35 * - + 73 AS col1
----
-2555

onlyif mysql # aggregate syntax: 
query II rowsort label-1234
SELECT DISTINCT - ( + 31 ) + + COUNT( * ) AS col2, 99 + 89 AS col2
----
-30
188

skipif mysql # not compatible
query II rowsort label-1234
SELECT DISTINCT - ( + 31 ) + + COUNT ( * ) AS col2, 99 + 89 AS col2
----
-30
188

query II rowsort
SELECT 40 * 43 AS col0, 97 * - COALESCE ( + + 57, + 26 + 14 )
----
1720
-5529

query II rowsort
SELECT ALL - 62 + + 33 AS col1, 11
----
-29
11

query I rowsort
SELECT 11 + 88 AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1238
SELECT 21 + + COALESCE ( + NULLIF ( + 90, 41 ), - + COUNT( * ) + + 74 + - 60 + + - 39 + + + COALESCE ( COALESCE ( - 1, 76 ), - - MAX( - 9 ) DIV + 10 + - 59 ) DIV 19 * + 59, 11 )
----
111

skipif mysql # not compatible
query I rowsort label-1238
SELECT 21 + + COALESCE ( + NULLIF ( + 90, 41 ), - + COUNT ( * ) + + 74 + - 60 + + - 39 + + + COALESCE ( COALESCE ( - 1, 76 ), - - MAX ( - 9 ) / + 10 + - 59 ) / 19 * + 59, 11 )
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-1239
SELECT ALL + 90 DIV + 7 col2, + ( - ( + COALESCE ( + - 54, 42 * + 95 + + 82 * + 49 + 0, + NULLIF ( - 76, + 42 ) ) ) ) + 25
----
12
79

skipif mysql # not compatible
query II rowsort label-1239
SELECT ALL + 90 / + 7 col2, + ( - ( + COALESCE ( + - 54, 42 * + 95 + + 82 * + 49 + 0, + NULLIF ( - 76, + 42 ) ) ) ) + 25
----
12
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT MAX( + 31 ) + - 13 * + - 82 AS col2
----
1097

skipif mysql # not compatible
query I rowsort label-1240
SELECT MAX ( + 31 ) + - 13 * + - 82 AS col2
----
1097

query I rowsort
SELECT 66 * + 46 AS col0
----
3036

query I rowsort
SELECT ALL + + 40 + - 38 - - 9 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL - + 2 * + - COUNT( DISTINCT 14 )
----
2

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL - + 2 * + - COUNT ( DISTINCT 14 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT - - COUNT( + 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1244
SELECT - - COUNT ( + 39 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - ( MAX( DISTINCT - NULLIF ( - 89, - - 11 ) ) ) + + - 64
----
-153

skipif mysql # not compatible
query I rowsort label-1245
SELECT - ( MAX ( DISTINCT - NULLIF ( - 89, - - 11 ) ) ) + + - 64
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT COALESCE ( - 85, - 59 + + - SUM( DISTINCT + ( + + 8 ) ) ) * - 75 * 68 + + 52 + - 52 * - - 39
----
431524

skipif mysql # not compatible
query I rowsort label-1246
SELECT COALESCE ( - 85, - 59 + + - SUM ( DISTINCT + ( + + 8 ) ) ) * - 75 * 68 + + 52 + - 52 * - - 39
----
431524

query I rowsort
SELECT 38 + + 43
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT + 73 - - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-1248
SELECT + 73 - - COUNT ( * )
----
74

query I rowsort
SELECT ALL + - 60 * - 0
----
0

query I rowsort
SELECT DISTINCT + 94 - - 81 AS col0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT + + MIN( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-1251
SELECT + + MIN ( 35 )
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-1252
SELECT ALL - 45 DIV + 88 AS col2, - 72
----
0
-72

skipif mysql # not compatible
query II rowsort label-1252
SELECT ALL - 45 / + 88 AS col2, - 72
----
0
-72

query I rowsort
SELECT + 27 * 17 + + + 49 + + ( - 0 )
----
508

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT + COUNT( * ) * + - 86 + COUNT( DISTINCT 5 ) + - 49
----
-134

skipif mysql # not compatible
query I rowsort label-1254
SELECT + COUNT ( * ) * + - 86 + COUNT ( DISTINCT 5 ) + - 49
----
-134

query I rowsort
SELECT + NULLIF ( + 11, - - ( - 31 ) ) AS col0
----
11

query I rowsort
SELECT 20 * - 20 - - 55 col1
----
-345

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

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

query I rowsort
SELECT ALL NULLIF ( - 36, + 86 + - 54 ) * + 53 * + ( + - ( - ( - 78 ) ) ) AS col1
----
148824

query I rowsort
SELECT ALL 96 * + - 31
----
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1260
SELECT NULLIF ( CAST( NULL AS SIGNED ), - - 47 * ( + - 28 ) - - 22 + + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1260
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - - 47 * ( + - 28 ) - - 22 + + 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT + 20 + 38 + - NULLIF ( + + 24, + COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-1261
SELECT + 20 + 38 + - NULLIF ( + + 24, + COUNT ( * ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL + 83 * + - COUNT( DISTINCT + + 22 ) + - + 51
----
-134

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL + 83 * + - COUNT ( DISTINCT + + 22 ) + - + 51
----
-134

query I rowsort
SELECT ALL 61 * - - 61
----
3721

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL + COUNT( 26 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL + COUNT ( 26 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT + SUM( ALL + 54 ) * 36 + 55 DIV - COUNT( * ) AS col0
----
1889

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT + SUM ( ALL + 54 ) * 36 + 55 / - COUNT ( * ) AS col0
----
1889

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1266
SELECT ALL + COALESCE ( - 7, + 1 + 8 + 26 + + COUNT( * ) ) * - 64 + - 71 + COUNT( * ) DIV 65 col0
----
377

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + COALESCE ( - 7, + 1 + 8 + 26 + + COUNT ( * ) ) * - 64 + - 71 + COUNT ( * ) / 65 col0
----
377

query I rowsort
SELECT + NULLIF ( + ( 60 ), ( 59 ) - - + 65 * + 8 - 46 )
----
60

query II rowsort
SELECT ALL - 57 * - 96 + + 29 AS col2, - 7 * - + 14 AS col0
----
5501
98

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

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

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

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

query I rowsort
SELECT DISTINCT + 86 * + 73
----
6278

query I rowsort
SELECT + - ( + 57 ) * - 98 + + 10 * + 8
----
5666

query II rowsort
SELECT ALL + 68, 20 AS col0
----
68
20

query I rowsort
SELECT - - 56 * - 22
----
-1232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1275
SELECT ALL - + CAST( NULL AS SIGNED ) - - 90 + - + 61 + - 15 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - + CAST ( NULL AS INTEGER ) - - 90 + - + 61 + - 15 * + 6
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1277
SELECT - - NULLIF ( 43, - 8 * - 84 + + - 82 ) DIV 45 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1277
SELECT - - NULLIF ( 43, - 8 * - 84 + + - 82 ) / 45 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL ( 12 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1279
SELECT + CASE - - COALESCE ( 81, - + COUNT( * ) ) WHEN - 27 + - - 32 * + CAST( + 53 AS DECIMAL ) * - + COALESCE ( - + 22, + COALESCE ( + 25, - 99 * - 25 - - 89 * 38 + 30 * + 34 ) + - 19 ) + 55 THEN NULL WHEN - 59 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT + CASE - - COALESCE ( 81, - + COUNT ( * ) ) WHEN - 27 + - - 32 * + CAST ( + 53 AS REAL ) * - + COALESCE ( - + 22, + COALESCE ( + 25, - 99 * - 25 - - 89 * 38 + 30 * + 34 ) + - 19 ) + 55 THEN NULL WHEN - 59 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT + 67 / + 64 * 96 + + - CASE - - 13 WHEN - - 4 + + 40 THEN COUNT( * ) END - - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT + 67 / + 64 * 96 + + - CASE - - 13 WHEN - - 4 + + 40 THEN COUNT ( * ) END - - + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL 82 AS col2, 7 * + 8 + - - 16
----
82
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1282
SELECT DISTINCT + COUNT( * ) * + - 91 + - 59 AS col1, 7 * - 31 * + COUNT( * ) AS col1
----
-150
-217

skipif mysql # not compatible
query II rowsort label-1282
SELECT DISTINCT + COUNT ( * ) * + - 91 + - 59 AS col1, 7 * - 31 * + COUNT ( * ) AS col1
----
-150
-217

query I rowsort
SELECT - + 79 + - 71 AS col2
----
-150

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1284
SELECT + CAST( NULL AS DECIMAL ) col1, + 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-1284
SELECT + CAST ( NULL AS REAL ) col1, + 47
----
NULL
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1285
SELECT + - COUNT( * ) * + 77 + + ( - 34 ) * - 4 * + MAX( ALL + 90 ) + + CAST( + 32 AS SIGNED ) AS col2
----
12195

skipif mysql # not compatible
query I rowsort label-1285
SELECT + - COUNT ( * ) * + 77 + + ( - 34 ) * - 4 * + MAX ( ALL + 90 ) + + CAST ( + 32 AS INTEGER ) AS col2
----
12195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1286
SELECT + ( - SUM( 60 ) ) + COUNT( * ) DIV 79 * 14 + + 64 - - + 29 + - 31 * - + ( 3 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-1286
SELECT + ( - SUM ( 60 ) ) + COUNT ( * ) / 79 * 14 + + 64 - - + 29 + - 31 * - + ( 3 ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT DISTINCT + - MAX( - + 98 ) * + 13 * + COUNT( ALL + - 59 ) + - 56 AS col2
----
1218

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT + - MAX ( - + 98 ) * + 13 * + COUNT ( ALL + - 59 ) + - 56 AS col2
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + 32 + - CASE + 16 WHEN 63 + - 68 THEN 10 * 99 + + - 1 + + COUNT( * ) * 19 * - CASE - + AVG ( 95 ) WHEN + + 69 THEN NULLIF ( 27, + SUM( + 23 ) + - CASE WHEN COUNT( * ) < COUNT( * ) THEN 75 WHEN 52 NOT BETWEEN CASE 69 WHEN + 75 THEN NULL WHEN - 42 THEN NULL WHEN ( - 14 ) * + 62 THEN 17 END * 8 AND - COUNT( * ) THEN 91 ELSE - 80 - 85 * 4 END + + 4 ) END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT + 32 + - CASE + 16 WHEN 63 + - 68 THEN 10 * 99 + + - 1 + + COUNT ( * ) * 19 * - CASE - + AVG ( 95 ) WHEN + + 69 THEN NULLIF ( 27, + SUM ( + 23 ) + - CASE WHEN COUNT ( * ) < COUNT ( * ) THEN 75 WHEN 52 NOT BETWEEN CASE 69 WHEN + 75 THEN NULL WHEN - 42 THEN NULL WHEN ( - 14 ) * + 62 THEN 17 END * 8 AND - COUNT ( * ) THEN 91 ELSE - 80 - 85 * 4 END + + 4 ) END END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT ALL - 89 DIV 22 + 52 * - 53 AS col2
----
-2760

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL - 89 / 22 + 52 * - 53 AS col2
----
-2760

query I rowsort
SELECT DISTINCT + 52 * - 71
----
-3692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT ALL 70 DIV + MAX( DISTINCT 96 ) + + - MIN( - 13 ) + + 74 + - 50
----
37

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 70 / + MAX ( DISTINCT 96 ) + + - MIN ( - 13 ) + + 74 + - 50
----
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1294
SELECT DISTINCT - 95 DIV - - 68 + 4
----
3

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT - 95 / - - 68 + 4
----
3

query I rowsort
SELECT + 49 * + 7 AS col2
----
343

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL + CASE 33 WHEN 70 * 3 THEN - 28 WHEN 89 + - + 39 THEN NULL END / + 9 * + 41 * - ( - - CAST( - 57 AS SIGNED ) ) + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + CASE 33 WHEN 70 * 3 THEN - 28 WHEN 89 + - + 39 THEN NULL END / + 9 * + 41 * - ( - - CAST ( - 57 AS INTEGER ) ) + + 63 AS col2
----
NULL

query I rowsort
SELECT - 60 - + - NULLIF ( + - NULLIF ( - - 27, + COALESCE ( + ( + 22 ), - 38 ) / 49 / - 48 + 11 ), 85 ) AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1298
SELECT + ( - - CAST( NULL AS SIGNED ) ) AS col1, 67 * - - 67 + + SUM( - 68 ) - - + COUNT( * ) * + 81 DIV + 15 + - + 10 + 49
----
NULL
4465

skipif mysql # not compatible
query II rowsort label-1298
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col1, 67 * - - 67 + + SUM ( - 68 ) - - + COUNT ( * ) * + 81 / + 15 + - + 10 + 49
----
NULL
4465

query II rowsort
SELECT ( - 82 ), 79 AS col2
----
-82
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT - 37 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 37 / - 46
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT + 42 * + 34 / - CAST( NULL AS SIGNED ) * - - 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT + 42 * + 34 / - CAST ( NULL AS INTEGER ) * - - 78 col2
----
NULL

query I rowsort
SELECT ALL 48 * - 81
----
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + COUNT( * ) * - COALESCE ( + 5, - 48 + 0 + ( - - MIN( ALL + + 29 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1303
SELECT + COUNT ( * ) * - COALESCE ( + 5, - 48 + 0 + ( - - MIN ( ALL + + 29 ) ) )
----
-5

query I rowsort
SELECT DISTINCT ( - + 95 ) * 13 AS col1
----
-1235

query I rowsort
SELECT ALL 38 * + ( ( - 24 ) ) - + 45 AS col2
----
-957

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + SUM( ALL + 5 ) * + 95 col1
----
475

skipif mysql # not compatible
query I rowsort label-1307
SELECT + SUM ( ALL + 5 ) * + 95 col1
----
475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT DISTINCT ( + ( 21 ) ) * - 71 + CAST( + 22 AS SIGNED ) AS col1
----
-1469

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT ( + ( 21 ) ) * - 71 + CAST ( + 22 AS INTEGER ) AS col1
----
-1469

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

query I rowsort
SELECT ALL + + NULLIF ( - + 40, - - 45 * - - 84 )
----
-40

query I rowsort
SELECT + 15 * 45
----
675

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1312
SELECT + 72 + - 78 * 27 + + 57 + 71 + + 53 * + 71 + + NULLIF ( - - 42, NULLIF ( + 37, - ( + 73 ) ) + - + 93 ) / CAST( - 15 AS DECIMAL ) + ( 21 ) + + - 4 + ( 22 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1312
SELECT + 72 + - 78 * 27 + + 57 + 71 + + 53 * + 71 + + NULLIF ( - - 42, NULLIF ( + 37, - ( + 73 ) ) + - + 93 ) / CAST ( - 15 AS REAL ) + ( 21 ) + + - 4 + ( 22 ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 81 * - 45
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - + 44 * MIN( - 17 )
----
748

skipif mysql # not compatible
query I rowsort label-1314
SELECT - + 44 * MIN ( - 17 )
----
748

query II rowsort
SELECT DISTINCT + + 35 * + + 29, - 74 AS col0
----
1015
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1316
SELECT ALL + + 85 * - COUNT( * ) AS col0, - 39
----
-85
-39

skipif mysql # not compatible
query II rowsort label-1316
SELECT ALL + + 85 * - COUNT ( * ) AS col0, - 39
----
-85
-39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1318
SELECT DISTINCT 87 * - CAST( 30 AS SIGNED ) + + 37 AS col0
----
-2573

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 87 * - CAST ( 30 AS INTEGER ) + + 37 AS col0
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL + - 55 + + - COUNT( * ) + - COUNT( * ) * NULLIF ( NULLIF ( - 82, - 29 ), + 11 * - + 21 - + 89 ) * - 59
----
-4894

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + - 55 + + - COUNT ( * ) + - COUNT ( * ) * NULLIF ( NULLIF ( - 82, - 29 ), + 11 * - + 21 - + 89 ) * - 59
----
-4894

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT + NULLIF ( - 39, + - 2 * + 10 * - + CASE + 77 WHEN + 6 THEN + 7 WHEN COUNT( * ) THEN 97 / MAX( DISTINCT - 12 ) * + ( + + 88 ) ELSE 34 * 97 END )
----
-39

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT + NULLIF ( - 39, + - 2 * + 10 * - + CASE + 77 WHEN + 6 THEN + 7 WHEN COUNT ( * ) THEN 97 / MAX ( DISTINCT - 12 ) * + ( + + 88 ) ELSE 34 * 97 END )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT COUNT( * ) + - COUNT( * ) + - 60 * - 19
----
1140

skipif mysql # not compatible
query I rowsort label-1322
SELECT COUNT ( * ) + - COUNT ( * ) + - 60 * - 19
----
1140

query I rowsort
SELECT 13 + - + 49 * + 58
----
-2829

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT DISTINCT + COUNT( * ) + - 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT + COUNT ( * ) + - 13 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1325
SELECT DISTINCT + 21 * 79 * + + 27 AS col1, - CASE + + 4 WHEN + MIN( 83 ) + - ( + CAST( NULL AS DECIMAL ) ) + + CAST( + COALESCE ( - MAX( 94 ), + + COUNT( * ), + 99 ) AS SIGNED ) + - 6 * 96 THEN + - COUNT( ALL + 48 ) * + 60 * 47 + + 10 ELSE NULL END col0
----
44793
NULL

skipif mysql # not compatible
query II rowsort label-1325
SELECT DISTINCT + 21 * 79 * + + 27 AS col1, - CASE + + 4 WHEN + MIN ( 83 ) + - ( + CAST ( NULL AS REAL ) ) + + CAST ( + COALESCE ( - MAX ( 94 ), + + COUNT ( * ), + 99 ) AS INTEGER ) + - 6 * 96 THEN + - COUNT ( ALL + 48 ) * + 60 * 47 + + 10 ELSE NULL END col0
----
44793
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT + 48 + - MAX( - 9 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT + 48 + - MAX ( - 9 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT ALL CAST( NULL AS SIGNED ) * - - NULLIF ( 50, + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL CAST ( NULL AS INTEGER ) * - - NULLIF ( 50, + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT 30 DIV + 33 + + - 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1328
SELECT 30 / + 33 + + - 96 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT 94 * ( - COUNT( * ) ) * 80 * - 56 * - 44 + + 25 - 11, - 73 * + 53 AS col0
----
-18529266
-3869

skipif mysql # not compatible
query II rowsort label-1329
SELECT 94 * ( - COUNT ( * ) ) * 80 * - 56 * - 44 + + 25 - 11, - 73 * + 53 AS col0
----
-18529266
-3869

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

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

query I rowsort
SELECT 21 + 28
----
49

query I rowsort
SELECT ( + - 41 ) * - - ( + + 2 )
----
-82

query I rowsort
SELECT - 40 * + 42 + - 92
----
-1772

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

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT ALL - COALESCE ( - - NULLIF ( - 11, - COUNT( * ) ), CAST( NULL AS SIGNED ) ) * - 20 * 53 * 50 AS col2
----
-583000

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL - COALESCE ( - - NULLIF ( - 11, - COUNT ( * ) ), CAST ( NULL AS INTEGER ) ) * - 20 * 53 * 50 AS col2
----
-583000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1336
SELECT DISTINCT 95 DIV - + COALESCE ( + 71, - 73 * 2, - - 90 ) col0, + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-1336
SELECT DISTINCT 95 / - + COALESCE ( + 71, - 73 * 2, - - 90 ) col0, + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT MIN( DISTINCT + - 45 ) + - COUNT( * ) + - - 69
----
23

skipif mysql # not compatible
query I rowsort label-1337
SELECT MIN ( DISTINCT + - 45 ) + - COUNT ( * ) + - - 69
----
23

query II rowsort
SELECT ALL + ( - 55 ) - 76, 46 * 94 AS col1
----
-131
4324

query I rowsort
SELECT 30 * 15
----
450

query I rowsort
SELECT 65 + + 40 + - 38
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT ALL - 68 DIV 13 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - 68 / 13 AS col1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT ALL 69 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL 69 / - 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1343
SELECT 41 + + 29 + 29 col0, COUNT( - 52 ) AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-1343
SELECT 41 + + 29 + 29 col0, COUNT ( - 52 ) AS col2
----
99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1344
SELECT COUNT( * ) * + 17 DIV ( + 27 ) * - + 42, COUNT( * ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-1344
SELECT COUNT ( * ) * + 17 / ( + 27 ) * - + 42, COUNT ( * ) col0
----
0
1

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

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

query I rowsort
SELECT ALL + 9 * - 56 AS col0
----
-504

query I rowsort
SELECT ALL - ( + 48 ) col2
----
-48

query I rowsort
SELECT DISTINCT 71 + + 98 AS col2
----
169

query I rowsort
SELECT - 15 * 24 AS col1
----
-360

query I rowsort
SELECT ALL 89 + - - 87 * 62
----
5483

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT + ( + COUNT( * ) ) + 78 * COUNT( * ) * COUNT( * ) * - 50 AS col0, - 59 AS col2
----
-3899
-59

skipif mysql # not compatible
query II rowsort label-1352
SELECT + ( + COUNT ( * ) ) + 78 * COUNT ( * ) * COUNT ( * ) * - 50 AS col0, - 59 AS col2
----
-3899
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1353
SELECT + 81 * - + CAST( + MAX( 27 ) AS SIGNED ) AS col1
----
-2187

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 81 * - + CAST ( + MAX ( 27 ) AS INTEGER ) AS col1
----
-2187

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

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

query I rowsort
SELECT DISTINCT + 66 + + 80
----
146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL - 33 + + + 0 + - - COUNT( * ) * - 45 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - 33 + + + 0 + - - COUNT ( * ) * - 45 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT DISTINCT COUNT( * ) + + 23 * - - 70
----
1611

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT COUNT ( * ) + + 23 * - - 70
----
1611

query I rowsort
SELECT DISTINCT 20 * + 26
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL CASE + - 13 WHEN - 26 THEN NULL WHEN - 79 + + 38 + - 35 - - 6 THEN 2 * MAX( 97 ) END + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL CASE + - 13 WHEN - 26 THEN NULL WHEN - 79 + + 38 + - 35 - - 6 THEN 2 * MAX ( 97 ) END + 34
----
NULL

query I rowsort
SELECT ALL 38 * + NULLIF ( - 91, 97 )
----
-3458

onlyif mysql # DIV for integer division: 
query II rowsort label-1362
SELECT 2 DIV + - 99, 12 DIV 76 * 42
----
0
0

skipif mysql # not compatible
query II rowsort label-1362
SELECT 2 / + - 99, 12 / 76 * 42
----
0
0

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

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

query I rowsort
SELECT 50 * - 68 AS col0
----
-3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1365
SELECT ALL 41 AS col1, COUNT( * ) DIV + + 34 * 85 + - - 79 + 37 + - 92 * - 32 AS col1
----
41
3060

skipif mysql # not compatible
query II rowsort label-1365
SELECT ALL 41 AS col1, COUNT ( * ) / + + 34 * 85 + - - 79 + 37 + - 92 * - 32 AS col1
----
41
3060

onlyif mysql # aggregate syntax: 
query II rowsort label-1366
SELECT DISTINCT 92 AS col0, - SUM( + + 67 ) * + ( + 14 ) * + 83 + - 6 col2
----
92
-77860

skipif mysql # not compatible
query II rowsort label-1366
SELECT DISTINCT 92 AS col0, - SUM ( + + 67 ) * + ( + 14 ) * + 83 + - 6 col2
----
92
-77860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1367
SELECT 37 * - 84 / + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT 37 * - 84 / + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1368
SELECT 40 * - + COALESCE ( 21, - NULLIF ( - 57, 33 ) DIV + 83 * - + MAX( DISTINCT 97 ) + NULLIF ( - - CASE - 67 WHEN - + 21 + - + 26 * + 86 THEN + 48 + - 83 WHEN - 98 * 40 + + COUNT( * ) + - 99 * + 25 + + 32 * 53 THEN NULL WHEN NULLIF ( COALESCE ( COUNT( * ), - 98 * 93 ), - ( 74 ) ) THEN - MAX( DISTINCT 62 ) * - MAX( ALL + 43 ) ELSE NULL END, + 14 ) )
----
-840

skipif mysql # not compatible
query I rowsort label-1368
SELECT 40 * - + COALESCE ( 21, - NULLIF ( - 57, 33 ) / + 83 * - + MAX ( DISTINCT 97 ) + NULLIF ( - - CASE - 67 WHEN - + 21 + - + 26 * + 86 THEN + 48 + - 83 WHEN - 98 * 40 + + COUNT ( * ) + - 99 * + 25 + + 32 * 53 THEN NULL WHEN NULLIF ( COALESCE ( COUNT ( * ), - 98 * 93 ), - ( 74 ) ) THEN - MAX ( DISTINCT 62 ) * - MAX ( ALL + 43 ) ELSE NULL END, + 14 ) )
----
-840

query I rowsort
SELECT DISTINCT - COALESCE ( 16, 65 - - COALESCE ( - - 24, + 51 ) )
----
-16

query I rowsort
SELECT ALL - 72 * 51 * - 47
----
172584

query II rowsort
SELECT + 8 AS col0, + 68
----
8
68

query I rowsort
SELECT 36 - + ( 18 ) AS col2
----
18

query III rowsort
SELECT + 66 AS col1, 60, - NULLIF ( 72, + 76 ) + - 89 * - 7 * - - 83 AS col2
----
66
60
51637

query I rowsort
SELECT ALL - 73 * - 55 AS col1
----
4015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT + NULLIF ( + 31, - CAST( + 57 AS SIGNED ) )
----
31

skipif mysql # not compatible
query I rowsort label-1375
SELECT + NULLIF ( + 31, - CAST ( + 57 AS INTEGER ) )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT ALL - COALESCE ( - 85, 14, 0 * 57 DIV + 71 DIV - 45 )
----
85

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - COALESCE ( - 85, 14, 0 * 57 / + 71 / - 45 )
----
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ( - COUNT( * ) ) * + 33 - 82 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-1378
SELECT ( - COUNT ( * ) ) * + 33 - 82 AS col1
----
-115

query I rowsort
SELECT ALL - 27 * - 47 * - - 78
----
98982

query I rowsort
SELECT ALL + - 14 + 83
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-1381
SELECT DISTINCT - + 51 + - 1 + 44 DIV - 72 + + ( + - 46 ), - 2 col1
----
-98
-2

skipif mysql # not compatible
query II rowsort label-1381
SELECT DISTINCT - + 51 + - 1 + 44 / - 72 + + ( + - 46 ), - 2 col1
----
-98
-2

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 21 + COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT - 90 * - 16 * + 98 + + CASE 14 WHEN + COUNT( * ) THEN + - 98 WHEN - 64 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT - 90 * - 16 * + 98 + + CASE 14 WHEN + COUNT ( * ) THEN + - 98 WHEN - 64 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL - 78 + - + COUNT( * ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - 78 + - + COUNT ( * ) col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1385
SELECT DISTINCT + + 64, CASE + ( - - CAST( NULL AS SIGNED ) ) WHEN CAST( NULL AS SIGNED ) / + + 84 + - + 16 + - CAST( NULL AS SIGNED ) + + + 79 + + + COUNT( * ) / - + COUNT( DISTINCT - 49 ) THEN 77 END col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-1385
SELECT DISTINCT + + 64, CASE + ( - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS INTEGER ) / + + 84 + - + 16 + - CAST ( NULL AS INTEGER ) + + + 79 + + + COUNT ( * ) / - + COUNT ( DISTINCT - 49 ) THEN 77 END col2
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT ALL 87 + 73 + + 10 + - 55 DIV - 50 col2
----
171

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL 87 + 73 + + 10 + - 55 / - 50 col2
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT - + COUNT( * ) + - 79 + + 67 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1387
SELECT - + COUNT ( * ) + - 79 + + 67 AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1388
SELECT + + 17 - + 71 - + 86 + + ( - CASE - 63 WHEN + COALESCE ( + 94, + COALESCE ( 61, - 55 ) * CAST( + + 42 AS SIGNED ) * 40 + - 65 * + + 70, + 7 ) THEN - COALESCE ( + + 89, ( - + 22 ) * + 31, 46 * ( 76 ) + - 7 ) WHEN - 45 + - CAST( 1 AS DECIMAL ) THEN COUNT( ALL + 56 ) + - 94 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1388
SELECT + + 17 - + 71 - + 86 + + ( - CASE - 63 WHEN + COALESCE ( + 94, + COALESCE ( 61, - 55 ) * CAST ( + + 42 AS INTEGER ) * 40 + - 65 * + + 70, + 7 ) THEN - COALESCE ( + + 89, ( - + 22 ) * + 31, 46 * ( 76 ) + - 7 ) WHEN - 45 + - CAST ( 1 AS REAL ) THEN COUNT ( ALL + 56 ) + - 94 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - - 48 + - COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1389
SELECT - - 48 + - COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT + COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT + COUNT ( * ) + - 41
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT DISTINCT 79 + - 28 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT 79 + - 28 + - COUNT ( * )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT DISTINCT 85 + + + 39 + - 36 DIV - 26 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT 85 + + + 39 + - 36 / - 26 AS col2
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT DISTINCT 97 * - 39 * - + CAST( - + 73 AS SIGNED )
----
-276159

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 97 * - 39 * - + CAST ( - + 73 AS INTEGER )
----
-276159

query I rowsort
SELECT + 20 * - 79
----
-1580

query I rowsort
SELECT - NULLIF ( 90, - 27 )
----
-90

query I rowsort
SELECT + 37 + - 72 * ( + 24 ) col2
----
-1691

query I rowsort
SELECT + 43 * 44 * + 97 AS col0
----
183524

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL CAST( NULL AS SIGNED ) - - 30 * - + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL CAST ( NULL AS INTEGER ) - - 30 * - + 20 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1400
SELECT ALL SUM( DISTINCT - - ( + 12 ) ) DIV - CAST( + 89 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL SUM ( DISTINCT - - ( + 12 ) ) / - CAST ( + 89 AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + 7 - - ( - MAX( DISTINCT + 90 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-1402
SELECT + 7 - - ( - MAX ( DISTINCT + 90 ) )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT + 42 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1403
SELECT + 42 / 73 AS col0
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - 47, + - 37 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT + NULLIF ( - 20, - AVG ( ALL + CAST( NULL AS SIGNED ) ) + + - COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-1405
SELECT + NULLIF ( - 20, - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + + - COUNT ( * ) )
----
-20

query II rowsort
SELECT ( - - 9 ) AS col2, 57 * - - 44
----
9
2508

query I rowsort
SELECT + 94 * + 61 - + 27
----
5707

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT - 88 * 0 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-1408
SELECT - 88 * 0 / 53
----
0

query I rowsort
SELECT + 0 + 39 * - 6
----
-234

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

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL + ( - COUNT ( * ) ) / - - COUNT ( DISTINCT + 78 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1411
SELECT ALL - CASE COALESCE ( - CAST( + - 1 AS SIGNED ), + - 70 + - 56, + 39 ) WHEN - 56 THEN 43 / 49 + + - CASE - - COUNT( * ) WHEN + + 12 THEN + + 75 END + - 47 WHEN - 76 THEN NULL END * + 25 + ( AVG ( - ( + 14 ) ) ) + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL - CASE COALESCE ( - CAST ( + - 1 AS INTEGER ), + - 70 + - 56, + 39 ) WHEN - 56 THEN 43 / 49 + + - CASE - - COUNT ( * ) WHEN + + 12 THEN + + 75 END + - 47 WHEN - 76 THEN NULL END * + 25 + ( AVG ( - ( + 14 ) ) ) + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + - 42 * + 77 * - 51 + - 46
----
164888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT ALL + ( - COUNT( * ) ) * 96 * - 72 + - + 85 DIV 17 + 51
----
6958

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + ( - COUNT ( * ) ) * 96 * - 72 + - + 85 / 17 + 51
----
6958

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT 87 * - 31 + - - 22 + + - SUM( 10 ) + + 97 + 0 * - 39 + + - SUM( ALL + 34 ) AS col0
----
-2622

skipif mysql # not compatible
query I rowsort label-1414
SELECT 87 * - 31 + - - 22 + + - SUM ( 10 ) + + 97 + 0 * - 39 + + - SUM ( ALL + 34 ) AS col0
----
-2622

query II rowsort
SELECT ALL - 84 * - 12 - + NULLIF ( + 2, 1 ) + - 0 + + 72, + 69 AS col1
----
1078
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1416
SELECT + NULLIF ( + + SUM( ALL + - 27 ), ( 73 ) ), 89 AS col0
----
-27
89

skipif mysql # not compatible
query II rowsort label-1416
SELECT + NULLIF ( + + SUM ( ALL + - 27 ), ( 73 ) ), 89 AS col0
----
-27
89

query I rowsort
SELECT ALL - + 49 * + 34 AS col1
----
-1666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1418
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 94 * + + 99 + SUM( DISTINCT - + 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 94 * + + 99 + SUM ( DISTINCT - + 66 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - + COUNT( DISTINCT - 83 ) * - MIN( + 50 ) - - 16 * + - 29
----
-414

skipif mysql # not compatible
query I rowsort label-1419
SELECT - + COUNT ( DISTINCT - 83 ) * - MIN ( + 50 ) - - 16 * + - 29
----
-414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1420
SELECT ALL + + CASE + + 30 WHEN - 44 * + 44 THEN + 7 END * + NULLIF ( + ( - 73 ), - 26 ) + COUNT( * ) + MIN( + + 55 ) / 40 + - - 62 + 6 + + + COUNT( CAST( NULL AS SIGNED ) ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + + CASE + + 30 WHEN - 44 * + 44 THEN + 7 END * + NULLIF ( + ( - 73 ), - 26 ) + COUNT ( * ) + MIN ( + + 55 ) / 40 + - - 62 + 6 + + + COUNT ( CAST ( NULL AS INTEGER ) ) * 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1421
SELECT DISTINCT + - 7 * - COUNT( * ) + ( + 2 ) DIV + CASE + - COUNT( * ) WHEN - 12 * - 70 * 21 THEN NULL ELSE + + 24 * - 3 END
----
7

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT + - 7 * - COUNT ( * ) + ( + 2 ) / + CASE + - COUNT ( * ) WHEN - 12 * - 70 * 21 THEN NULL ELSE + + 24 * - 3 END
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT DISTINCT + COUNT( * ) * + - MIN( ALL - 61 ) - + 45
----
16

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT + COUNT ( * ) * + - MIN ( ALL - 61 ) - + 45
----
16

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1424
SELECT ALL + 71 DIV - - ( + + COUNT( - 94 ) ), COUNT( * ) - - 47 col2
----
71
48

skipif mysql # not compatible
query II rowsort label-1424
SELECT ALL + 71 / - - ( + + COUNT ( - 94 ) ), COUNT ( * ) - - 47 col2
----
71
48

query I rowsort
SELECT - 96 * + ( + + 13 ) * - 59 * - 40 - 82
----
-2945362

query I rowsort
SELECT + 20 + 12 + - 5 col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1427
SELECT ALL CAST( - + 14 AS SIGNED ) * + 65 col2, 79 AS col0
----
-910
79

skipif mysql # not compatible
query II rowsort label-1427
SELECT ALL CAST ( - + 14 AS INTEGER ) * + 65 col2, 79 AS col0
----
-910
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1428
SELECT - 90 * + CAST( - 87 AS SIGNED ), 22 col1
----
7830
22

skipif mysql # not compatible
query II rowsort label-1428
SELECT - 90 * + CAST ( - 87 AS INTEGER ), 22 col1
----
7830
22

query I rowsort
SELECT + 66 * 94 AS col0
----
6204

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ALL 78 * + - 22 * - SUM( ALL ( - 48 ) ) col2
----
-82368

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL 78 * + - 22 * - SUM ( ALL ( - 48 ) ) col2
----
-82368

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1431
SELECT DISTINCT - CAST( + 40 AS SIGNED ) * - 87 AS col0, 7
----
3480
7

skipif mysql # not compatible
query II rowsort label-1431
SELECT DISTINCT - CAST ( + 40 AS INTEGER ) * - 87 AS col0, 7
----
3480
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT + CASE WHEN 26 IS NOT NULL THEN - 95 * + + 53 END + + 37 + + 6 + + - 41 * - COUNT( * )
----
-4951

skipif mysql # not compatible
query I rowsort label-1432
SELECT + CASE WHEN 26 IS NOT NULL THEN - 95 * + + 53 END + + 37 + + 6 + + - 41 * - COUNT ( * )
----
-4951

query I rowsort
SELECT - 30 * 75
----
-2250

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

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

query I rowsort
SELECT ALL 42 * + 48 AS col0
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - NULLIF ( + + 31, - 44 + - MIN( 76 ) * - 38 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1436
SELECT - NULLIF ( + + 31, - 44 + - MIN ( 76 ) * - 38 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT + 30 + SUM( ALL - 36 )
----
-6

skipif mysql # not compatible
query I rowsort label-1437
SELECT + 30 + SUM ( ALL - 36 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT ( + + 95 ) + - CAST( NULL AS SIGNED ) + - - COUNT( * ) - + AVG ( + + 80 ) + 78 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT ( + + 95 ) + - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - + AVG ( + + 80 ) + 78 * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL 82 + + 55 + 79 + 65 * + + NULLIF ( - - 84, 32 * + - 42 * - - 30 ) * - COUNT( + 81 )
----
-5244

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL 82 + + 55 + 79 + 65 * + + NULLIF ( - - 84, 32 * + - 42 * - - 30 ) * - COUNT ( + 81 )
----
-5244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1440
SELECT ALL + 22 + 74 + 30 * COUNT( * ) DIV - 80
----
96

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + 22 + 74 + 30 * COUNT ( * ) / - 80
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL - 11 + + COUNT( * ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - 11 + + COUNT ( * ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT - CASE - 12 WHEN - + 6 THEN + 17 WHEN + 6 THEN NULL WHEN 46 + + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT - CASE - 12 WHEN - + 6 THEN + 17 WHEN + 6 THEN NULL WHEN 46 + + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 61 + 14
----
-47

query I rowsort
SELECT - 12 - + 99 col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT 96 * + + CASE - NULLIF ( + ( - 13 ), + - 10 + + - 37 + + 66 / - 78 ) WHEN + 42 THEN NULL ELSE + + 72 END * + - COALESCE ( + 55, - 87 ) * - COUNT( * ) * - 44 AS col0
----
-16727040

skipif mysql # not compatible
query I rowsort label-1445
SELECT 96 * + + CASE - NULLIF ( + ( - 13 ), + - 10 + + - 37 + + 66 / - 78 ) WHEN + 42 THEN NULL ELSE + + 72 END * + - COALESCE ( + 55, - 87 ) * - COUNT ( * ) * - 44 AS col0
----
-16727040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL + MIN( + + 87 ) + - - 19 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL + MIN ( + + 87 ) + - - 19 AS col0
----
106

query I rowsort
SELECT ALL + 95 + - 19 col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT DISTINCT + + ( + ( + 28 ) ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT + + ( + ( + 28 ) ) / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT COALESCE ( - 18, - ( 31 ) ) - + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT COALESCE ( - 18, - ( 31 ) ) - + + COUNT ( * )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT ALL - 45 DIV - 38
----
1

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL - 45 / - 38
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT ALL + 34 DIV - ( 8 ) + - + 86 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + 34 / - ( 8 ) + - + 86 AS col1
----
-90

query I rowsort
SELECT + 28 * - + 6
----
-168

query I rowsort
SELECT ALL - COALESCE ( - 37, + 74 * + 71 ) col1
----
37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1456
SELECT 50 - + 19, 27 * - + COUNT( * ) - 31 * - CASE + 32 WHEN 7 * + AVG ( + 74 ) THEN - MAX( ALL + - 28 ) WHEN + - 24 * + 76 THEN + ( + + 88 ) WHEN CAST( - + 78 AS SIGNED ) THEN - 3 * MAX( DISTINCT - 88 ) * - 13 + 73 ELSE - COALESCE ( - 34, - MAX( ALL 17 ) ) END - + 19 AS col1
----
31
1008

skipif mysql # not compatible
query II rowsort label-1456
SELECT 50 - + 19, 27 * - + COUNT ( * ) - 31 * - CASE + 32 WHEN 7 * + AVG ( + 74 ) THEN - MAX ( ALL + - 28 ) WHEN + - 24 * + 76 THEN + ( + + 88 ) WHEN CAST ( - + 78 AS INTEGER ) THEN - 3 * MAX ( DISTINCT - 88 ) * - 13 + 73 ELSE - COALESCE ( - 34, - MAX ( ALL 17 ) ) END - + 19 AS col1
----
31
1008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT ALL + 76 * COUNT( * ) DIV - 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL + 76 * COUNT ( * ) / - 42 AS col0
----
-1

query I rowsort
SELECT 21 * + 15
----
315

query I rowsort
SELECT 85 * - 75 + 53 + + 18 AS col2
----
-6304

query I rowsort
SELECT DISTINCT + CASE + + ( 60 ) WHEN AVG ( - 49 ) THEN - + 76 * + 1 * + 63 + 68 END * 0 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT 40 DIV - 17
----
-2

skipif mysql # not compatible
query I rowsort label-1461
SELECT 40 / - 17
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1462
SELECT DISTINCT + CAST( 96 AS SIGNED ) * 61 * - 90 * COALESCE ( + COUNT( * ), 26, + + 0 DIV - COALESCE ( + 65, + 42 * + + 68 * 90 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - 78 ) ) + + ( 43 ) * 56 - + + 35 * + 43 * + + 21 * - - 5
----
-682657

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT + CAST ( 96 AS INTEGER ) * 61 * - 90 * COALESCE ( + COUNT ( * ), 26, + + 0 / - COALESCE ( + 65, + 42 * + + 68 * 90 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - 78 ) ) + + ( 43 ) * 56 - + + 35 * + 43 * + + 21 * - - 5
----
-682657

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1463
SELECT AVG ( DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) + + ( 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT AVG ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) + + ( 93 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT MAX( ALL + 43 ) * - COUNT( * ) - - 56 DIV + 70 - + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-1464
SELECT MAX ( ALL + 43 ) * - COUNT ( * ) - - 56 / + 70 - + COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT ALL + 41 + + CASE + 32 WHEN - CASE + + 3 WHEN - 81 - + 59 THEN 82 * - 18 + + COALESCE ( - - ( 38 ), - COUNT( * ) * + ( 89 ) * 8 ) / + + 98 WHEN + 14 THEN - - 32 END + 2 THEN COUNT( * ) * - - 26 END + CAST( + 37 AS SIGNED ) + 41 * + 78 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + 41 + + CASE + 32 WHEN - CASE + + 3 WHEN - 81 - + 59 THEN 82 * - 18 + + COALESCE ( - - ( 38 ), - COUNT ( * ) * + ( 89 ) * 8 ) / + + 98 WHEN + 14 THEN - - 32 END + 2 THEN COUNT ( * ) * - - 26 END + CAST ( + 37 AS INTEGER ) + 41 * + 78 * 75
----
NULL

query I rowsort
SELECT 36 + - ( 37 )
----
-1

query I rowsort
SELECT ALL - 14 * + 11
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT 55 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-1468
SELECT 55 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT DISTINCT 30 + - - COUNT( * ) + COUNT( + 36 ) + + ( ( - 90 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT 30 + - - COUNT ( * ) + COUNT ( + 36 ) + + ( ( - 90 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL 88 + + SUM( + 55 ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL 88 + + SUM ( + 55 ) AS col2
----
143

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1472
SELECT ALL 65 + + NULLIF ( - - COUNT( * ), + ( - - 62 ) ) - + + 39 * 39 DIV + + 81 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL 65 + + NULLIF ( - - COUNT ( * ), + ( - - 62 ) ) - + + 39 * 39 / + + 81 AS col0
----
48

query I rowsort
SELECT 81 + - 2
----
79

query I rowsort
SELECT ALL - 5 + + - 46 col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT ALL + - 7 * 92 + - - 2 + - + COUNT( + 97 ) DIV + + 66 + + COUNT( ALL - 16 )
----
-641

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + - 7 * 92 + - - 2 + - + COUNT ( + 97 ) / + + 66 + + COUNT ( ALL - 16 )
----
-641

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT - - 45 + 80 DIV + 60 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - - 45 + 80 / + 60 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + COALESCE ( - + COUNT( * ), + 67 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1477
SELECT + COALESCE ( - + COUNT ( * ), + 67 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT - CAST( + - 31 AS SIGNED ) / + 40 + CAST( NULL AS SIGNED ) * + 50 + + - 67 - AVG ( 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT - CAST ( + - 31 AS INTEGER ) / + 40 + CAST ( NULL AS INTEGER ) * + 50 + + - 67 - AVG ( 42 ) AS col1
----
NULL

query I rowsort
SELECT - 10 + - - 33 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - 90 * + 94 * + - ( COUNT( * ) ) - - 88
----
8548

skipif mysql # not compatible
query I rowsort label-1480
SELECT - 90 * + 94 * + - ( COUNT ( * ) ) - - 88
----
8548

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1482
SELECT COUNT( * ) + 31, - 65 DIV - COUNT( * ) col0
----
32
65

skipif mysql # not compatible
query II rowsort label-1482
SELECT COUNT ( * ) + 31, - 65 / - COUNT ( * ) col0
----
32
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT + 2 DIV - 84 + - 83 DIV - 83
----
1

skipif mysql # not compatible
query I rowsort label-1483
SELECT + 2 / - 84 + - 83 / - 83
----
1

query II rowsort
SELECT ALL - ( - - 93 ) AS col0, - 19 + - 48 AS col0
----
-93
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1485
SELECT ALL - CAST( 66 AS SIGNED ) col0, 13 * - - 83 AS col0
----
-66
1079

skipif mysql # not compatible
query II rowsort label-1485
SELECT ALL - CAST ( 66 AS INTEGER ) col0, 13 * - - 83 AS col0
----
-66
1079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT 69 DIV COUNT( * ) - + + COUNT( * ) + 41 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-1486
SELECT 69 / COUNT ( * ) - + + COUNT ( * ) + 41 AS col0
----
109

query II rowsort
SELECT ALL 29 - 88, - 42 AS col0
----
-59
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1488
SELECT DISTINCT - COUNT( * ) / CAST( NULL AS SIGNED ) * 96 / + 66 AS col1, 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-1488
SELECT DISTINCT - COUNT ( * ) / CAST ( NULL AS INTEGER ) * 96 / + 66 AS col1, 70 AS col2
----
NULL
70

query I rowsort
SELECT 69 * - 97 * - 60
----
401580

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

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

query I rowsort
SELECT 92 * 89 * - 53
----
-433964

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT - CASE - - MIN( 50 ) WHEN - MAX( DISTINCT + 22 ) / + COUNT( * ) THEN 22 * + 28 * + - COUNT( * ) WHEN - 53 THEN - 29 WHEN + 26 - - ( 32 ) * - 23 THEN NULL ELSE 23 END
----
-23

skipif mysql # not compatible
query I rowsort label-1493
SELECT - CASE - - MIN ( 50 ) WHEN - MAX ( DISTINCT + 22 ) / + COUNT ( * ) THEN 22 * + 28 * + - COUNT ( * ) WHEN - 53 THEN - 29 WHEN + 26 - - ( 32 ) * - 23 THEN NULL ELSE 23 END
----
-23

query II rowsort
SELECT ALL 81 AS col0, + 55
----
81
55

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

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL MAX ( ALL - 45 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1496
SELECT 56 + 63 + - - 94 + 6 * - + 2 * + ( COUNT( * ) ) * + 46 - 79 DIV 64 AS col2
----
-340

skipif mysql # not compatible
query I rowsort label-1496
SELECT 56 + 63 + - - 94 + 6 * - + 2 * + ( COUNT ( * ) ) * + 46 - 79 / 64 AS col2
----
-340

query I rowsort
SELECT ALL 1 + + 67
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1498
SELECT CAST( NULL AS SIGNED ) - SUM( ALL 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT CAST ( NULL AS INTEGER ) - SUM ( ALL 14 ) AS col1
----
NULL

query I rowsort
SELECT + 83 - - 13 + + 97 AS col0
----
193

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

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

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

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL - COUNT ( * ) + - ( - + ( 87 ) ) AS col2
----
86

query I rowsort
SELECT - 95 + + + 87
----
-8

query I rowsort
SELECT DISTINCT 0 + - 76
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1504
SELECT - CASE + + 34 WHEN + 70 * + 6 + - + 96 + - - 19 - + - 53 * + COALESCE ( + + MIN( ALL + 27 ), + + 84 * COUNT( * ) * + 24 * + 45 ) THEN NULL WHEN - 51 * - CAST( NULL AS SIGNED ) + 94 * - 60 * + 51 * + 93 + - - 70 THEN NULL ELSE - 37 END + 53 * CAST( + 78 AS SIGNED )
----
4171

skipif mysql # not compatible
query I rowsort label-1504
SELECT - CASE + + 34 WHEN + 70 * + 6 + - + 96 + - - 19 - + - 53 * + COALESCE ( + + MIN ( ALL + 27 ), + + 84 * COUNT ( * ) * + 24 * + 45 ) THEN NULL WHEN - 51 * - CAST ( NULL AS INTEGER ) + 94 * - 60 * + 51 * + 93 + - - 70 THEN NULL ELSE - 37 END + 53 * CAST ( + 78 AS INTEGER )
----
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - 30 - + CASE 21 WHEN - 54 THEN + + COUNT( * ) * - 77 * + - COALESCE ( - 68, 23 ) + - 95 END * - + 27 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 30 - + CASE 21 WHEN - 54 THEN + + COUNT ( * ) * - 77 * + - COALESCE ( - 68, 23 ) + - 95 END * - + 27 * - 42
----
NULL

query I rowsort
SELECT - 47 + + + ( - 63 )
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT ALL - 10 + CAST( 18 AS SIGNED ) - - MAX( ALL + - NULLIF ( + 35, + COALESCE ( - 3, + + 92 ) ) ) + CASE - - 6 WHEN - + 57 THEN CASE - 57 WHEN - CAST( NULL AS SIGNED ) * 40 * - ( - 76 ) + + - 18 THEN - 86 WHEN 35 THEN - 52 ELSE NULL END * - + 58 WHEN + COUNT( * ) THEN NULL END * 15 * - ( NULLIF ( ( - 14 ), - 87 * MAX( + 90 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL - 10 + CAST ( 18 AS INTEGER ) - - MAX ( ALL + - NULLIF ( + 35, + COALESCE ( - 3, + + 92 ) ) ) + CASE - - 6 WHEN - + 57 THEN CASE - 57 WHEN - CAST ( NULL AS INTEGER ) * 40 * - ( - 76 ) + + - 18 THEN - 86 WHEN 35 THEN - 52 ELSE NULL END * - + 58 WHEN + COUNT ( * ) THEN NULL END * 15 * - ( NULLIF ( ( - 14 ), - 87 * MAX ( + 90 ) ) ) AS col1
----
NULL

query I rowsort
SELECT + 59 * + 82 * + 59 * - 80 AS col1
----
-22835360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1509
SELECT DISTINCT - 61 + + COUNT( DISTINCT - 25 ) * + - 33 DIV + 38 * + - 65
----
-61

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - 61 + + COUNT ( DISTINCT - 25 ) * + - 33 / + 38 * + - 65
----
-61

query I rowsort
SELECT - 85 * + - 34 col1
----
2890

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - MAX( ALL - - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1512
SELECT - MAX ( ALL - - 85 ) AS col1
----
-85

query I rowsort
SELECT - + COALESCE ( - 69, + 64 * + 5 + + 34 - 71 * - 4, - - 50 ) + + 16 + + 12 AS col0
----
97

query I rowsort
SELECT ALL - - 42 - + - 7 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT DISTINCT - 11 * CASE + NULLIF ( 30, - + 77 + + - ( 26 ) ) WHEN + 48 * + + 0 + 18 + - 93 - - + 3 / + 87 * + - 41 THEN NULL WHEN - 13 / ( + CASE + + 62 WHEN + - CAST( NULL AS SIGNED ) * 50 / - 18 / - 19 THEN COUNT( * ) + + - 25 WHEN - + 17 / - 38 + 67 THEN NULL ELSE - ( + 27 ) END ) * 86 THEN 58 * 83 END + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - 11 * CASE + NULLIF ( 30, - + 77 + + - ( 26 ) ) WHEN + 48 * + + 0 + 18 + - 93 - - + 3 / + 87 * + - 41 THEN NULL WHEN - 13 / ( + CASE + + 62 WHEN + - CAST ( NULL AS INTEGER ) * 50 / - 18 / - 19 THEN COUNT ( * ) + + - 25 WHEN - + 17 / - 38 + 67 THEN NULL ELSE - ( + 27 ) END ) * 86 THEN 58 * 83 END + 99
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT + 76 * SUM( DISTINCT - - 44 )
----
3344

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + 76 * SUM ( DISTINCT - - 44 )
----
3344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT COUNT( * ) DIV - 77 - 85 - + - COUNT( * ) + - - 9 - 16
----
-91

skipif mysql # not compatible
query I rowsort label-1518
SELECT COUNT ( * ) / - 77 - 85 - + - COUNT ( * ) + - - 9 - 16
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1519
SELECT - 1 * - - COUNT( * ) DIV - COUNT( * ) AS col2, + CASE + - 59 WHEN - 11 DIV 20 + + NULLIF ( - 14, + + COUNT( * ) * - 13 ) THEN COALESCE ( 37, + COUNT( * ) * 72, 74 ) END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1519
SELECT - 1 * - - COUNT ( * ) / - COUNT ( * ) AS col2, + CASE + - 59 WHEN - 11 / 20 + + NULLIF ( - 14, + + COUNT ( * ) * - 13 ) THEN COALESCE ( 37, + COUNT ( * ) * 72, 74 ) END AS col1
----
1
NULL

query I rowsort
SELECT ALL - - 87 * - 5
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - + 37 - + + 90 + + - 85 * - COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-1521
SELECT - + 37 - + + 90 + + - 85 * - COUNT ( * ) col2
----
-42

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

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

query I rowsort
SELECT - 91 * + COALESCE ( - 38, + 54 ) * 14 - 79 + - - 79
----
48412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1524
SELECT ALL + COALESCE ( 92, + - CAST( CAST( 48 AS DECIMAL ) AS SIGNED ) * - - 10 + + - ( 93 ), - NULLIF ( - 57, + + COUNT( * ) ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL + COALESCE ( 92, + - CAST ( CAST ( 48 AS REAL ) AS INTEGER ) * - - 10 + + - ( 93 ), - NULLIF ( - 57, + + COUNT ( * ) ) ) col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT + - CASE - + 33 WHEN + CAST( - - ( - - 47 ) AS SIGNED ) THEN NULL ELSE + + 47 END
----
-47

skipif mysql # not compatible
query I rowsort label-1525
SELECT + - CASE - + 33 WHEN + CAST ( - - ( - - 47 ) AS INTEGER ) THEN NULL ELSE + + 47 END
----
-47

query I rowsort
SELECT + 46 * + - 17
----
-782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT + 67 - + 83 + + 85 + - + COALESCE ( COUNT( * ), + ( + ( + - 91 ) ), - SUM( DISTINCT - 16 ) ) * + 26 DIV - - 14
----
68

skipif mysql # not compatible
query I rowsort label-1527
SELECT + 67 - + 83 + + 85 + - + COALESCE ( COUNT ( * ), + ( + ( + - 91 ) ), - SUM ( DISTINCT - 16 ) ) * + 26 / - - 14
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT ALL + 79, + COUNT( * ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-1528
SELECT ALL + 79, + COUNT ( * ) AS col0
----
79
1

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

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

query I rowsort
SELECT + 61 * + - 6 AS col0
----
-366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT DISTINCT + 61 * + - 40 + + + CASE + - 31 WHEN + 98 * + 59 * 83 / + CAST( NULL AS SIGNED ) + + + 0 / - + COUNT( * ) * + 56 * 2 / - 42 + + + ( + + 7 ) THEN NULL WHEN - 94 + + - COUNT( * ) + COUNT( * ) + 21 THEN + 15 + - + CAST( NULL AS SIGNED ) END * + + COALESCE ( + 95, - 10 ) + + 47 * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT + 61 * + - 40 + + + CASE + - 31 WHEN + 98 * + 59 * 83 / + CAST ( NULL AS INTEGER ) + + + 0 / - + COUNT ( * ) * + 56 * 2 / - 42 + + + ( + + 7 ) THEN NULL WHEN - 94 + + - COUNT ( * ) + COUNT ( * ) + 21 THEN + 15 + - + CAST ( NULL AS INTEGER ) END * + + COALESCE ( + 95, - 10 ) + + 47 * - 1 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1532
SELECT ALL - COUNT( ALL 87 ) * CAST( - 42 AS SIGNED ) + 33 DIV 64 * - 22 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - COUNT ( ALL 87 ) * CAST ( - 42 AS INTEGER ) + 33 / 64 * - 22 AS col1
----
42

query I rowsort
SELECT + 8 + - 11 * + + 51 col2
----
-553

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1534
SELECT + ( - 71 ) AS col0, CAST( - 20 AS SIGNED ) / - CAST( NULL AS DECIMAL ) * - + 53 + 98
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-1534
SELECT + ( - 71 ) AS col0, CAST ( - 20 AS INTEGER ) / - CAST ( NULL AS REAL ) * - + 53 + 98
----
-71
NULL

query I rowsort
SELECT ALL 19 * - 71 * + - 17
----
22933

onlyif mysql # DIV for integer division: 
query II rowsort label-1536
SELECT + 25 DIV + - 37 AS col0, - 26
----
0
-26

skipif mysql # not compatible
query II rowsort label-1536
SELECT + 25 / + - 37 AS col0, - 26
----
0
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1537
SELECT + CASE - + CAST( NULL AS SIGNED ) WHEN + 59 * - 37 THEN NULL WHEN + CAST( 38 AS SIGNED ) THEN COUNT( * ) * + 31 * + COUNT( * ) + - 91 * - + COUNT( * ) * - AVG ( ALL - 94 ) + 12 * - ( + - 15 ) WHEN 12 THEN NULL END + 36 + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT + CASE - + CAST ( NULL AS INTEGER ) WHEN + 59 * - 37 THEN NULL WHEN + CAST ( 38 AS INTEGER ) THEN COUNT ( * ) * + 31 * + COUNT ( * ) + - 91 * - + COUNT ( * ) * - AVG ( ALL - 94 ) + 12 * - ( + - 15 ) WHEN 12 THEN NULL END + 36 + + 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT + CAST( - ( + - 44 ) AS SIGNED ) - 51 * + 69 * - 67 * + 76
----
17918792

skipif mysql # not compatible
query I rowsort label-1538
SELECT + CAST ( - ( + - 44 ) AS INTEGER ) - 51 * + 69 * - 67 * + 76
----
17918792

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

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

query I rowsort
SELECT ALL 48 + 63
----
111

query I rowsort
SELECT + 71 * - - ( 8 ) AS col2
----
568

query I rowsort
SELECT ALL + 51 * ( + + 34 ) AS col0
----
1734

query I rowsort
SELECT ALL 53 + - + 27 * 11
----
-244

query I rowsort
SELECT - COALESCE ( + 33, - - 54 ) AS col0
----
-33

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

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

query I rowsort
SELECT + - 68 + - - 30 - + + ( + 65 ) AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT - + COUNT( * ) * + 94 - + NULLIF ( 37, 70 + + - 62 + - - CASE + 33 WHEN + 51 * - ( + MAX( ALL 67 ) ) * - 27 * - - 8 + - - 66 - - 42 + - 19 THEN - 77 * + - ( 88 ) WHEN - COUNT( * ) THEN NULL END )
----
-131

skipif mysql # not compatible
query I rowsort label-1547
SELECT - + COUNT ( * ) * + 94 - + NULLIF ( 37, 70 + + - 62 + - - CASE + 33 WHEN + 51 * - ( + MAX ( ALL 67 ) ) * - 27 * - - 8 + - - 66 - - 42 + - 19 THEN - 77 * + - ( 88 ) WHEN - COUNT ( * ) THEN NULL END )
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1548
SELECT ALL - - 40 * + NULLIF ( - - 27, 25 ) + + 82 - - 29, + 84 * + 20 + ( - ( 99 ) ) * CASE + 0 WHEN - NULLIF ( - 69, - - 54 + + COUNT( * ) * - + CAST( NULL AS SIGNED ) + + 1 ) DIV - - 84 THEN NULL ELSE + CASE 34 WHEN - 40 + + CASE + 86 WHEN - 50 DIV - 70 THEN NULL WHEN + 18 DIV + 62 THEN - 0 + + COUNT( * ) END THEN - ( 65 ) + + 18 * + 98 ELSE 90 END DIV 94 - + 91 * 78 END AS col0
----
1191
NULL

skipif mysql # not compatible
query II rowsort label-1548
SELECT ALL - - 40 * + NULLIF ( - - 27, 25 ) + + 82 - - 29, + 84 * + 20 + ( - ( 99 ) ) * CASE + 0 WHEN - NULLIF ( - 69, - - 54 + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + + 1 ) / - - 84 THEN NULL ELSE + CASE 34 WHEN - 40 + + CASE + 86 WHEN - 50 / - 70 THEN NULL WHEN + 18 / + 62 THEN - 0 + + COUNT ( * ) END THEN - ( 65 ) + + 18 * + 98 ELSE 90 END / 94 - + 91 * 78 END AS col0
----
1191
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT + CASE - - 87 WHEN 30 + + COUNT( * ) THEN - - 28 * - 82 + + CAST( NULL AS SIGNED ) + 22 - 68 + + 65 WHEN 78 THEN - 68 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT + CASE - - 87 WHEN 30 + + COUNT ( * ) THEN - - 28 * - 82 + + CAST ( NULL AS INTEGER ) + 22 - 68 + + 65 WHEN 78 THEN - 68 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 82 * COALESCE ( + 80, + - 12 ) AS col1
----
-6560

query I rowsort
SELECT DISTINCT 70 * + 66
----
4620

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT ALL CAST( - 42 AS SIGNED ) * + 12
----
-504

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL CAST ( - 42 AS INTEGER ) * + 12
----
-504

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

skipif mysql # not compatible
query II rowsort label-1554
SELECT DISTINCT COUNT ( * ), COUNT ( * ) - + COUNT ( * ) col1
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1555
SELECT ALL SUM( DISTINCT - 81 ), 93 AS col1
----
-81
93

skipif mysql # not compatible
query II rowsort label-1555
SELECT ALL SUM ( DISTINCT - 81 ), 93 AS col1
----
-81
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1556
SELECT - + 52 + CAST( NULL AS DECIMAL ) * 84 * + ( + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT - + 52 + CAST ( NULL AS REAL ) * 84 * + ( + 17 )
----
NULL

query I rowsort
SELECT ( - 29 ) * + - 73 - - 82 + 33 * + 88 * 38
----
112551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1558
SELECT - + 92 + 2 + + ( CASE - SUM( DISTINCT + - 75 ) WHEN + CAST( NULL AS SIGNED ) THEN + + 60 * - 40 + - - 48 - - + 0 ELSE 11 END ) AS col2, 24 DIV + + 48 * + + COUNT( * ) * COUNT( * ) + + + 40 + 49 AS col1
----
-79
89

skipif mysql # not compatible
query II rowsort label-1558
SELECT - + 92 + 2 + + ( CASE - SUM ( DISTINCT + - 75 ) WHEN + CAST ( NULL AS INTEGER ) THEN + + 60 * - 40 + - - 48 - - + 0 ELSE 11 END ) AS col2, 24 / + + 48 * + + COUNT ( * ) * COUNT ( * ) + + + 40 + 49 AS col1
----
-79
89

query I rowsort
SELECT - 64 * - 91 + + + 31
----
5855

query I rowsort
SELECT ALL + - 47 * 80 AS col1
----
-3760

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL + 22 DIV - + 92 + - NULLIF ( - 73, + - 70 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL + 22 / - + 92 + - NULLIF ( - 73, + - 70 ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT 26 * + 8 - + - COALESCE ( + COUNT( * ), + - 28 DIV - 93 * + 26 * + SUM( ALL + 30 ) + + ( 32 ) * 4 + + + 8 ) + + ( + 72 ) * 81 + 71
----
6112

skipif mysql # not compatible
query I rowsort label-1562
SELECT 26 * + 8 - + - COALESCE ( + COUNT ( * ), + - 28 / - 93 * + 26 * + SUM ( ALL + 30 ) + + ( 32 ) * 4 + + + 8 ) + + ( + 72 ) * 81 + 71
----
6112

query I rowsort
SELECT ALL - 15 * ( - - 8 ) AS col2
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT DISTINCT + 36 DIV 69 + - 22 - - 15 + - 70
----
-77

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT + 36 / 69 + - 22 - - 15 + - 70
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT - MIN( ALL + + ( - + 32 ) ) DIV + 83 * - 89
----
0

skipif mysql # not compatible
query I rowsort label-1565
SELECT - MIN ( ALL + + ( - + 32 ) ) / + 83 * - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT - 20 + + CASE - 64 WHEN - - COUNT( 44 ) THEN NULL WHEN + - 55 + + 27 * + 10 THEN - 11 END + - 54 * + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT - 20 + + CASE - 64 WHEN - - COUNT ( 44 ) THEN NULL WHEN + - 55 + + 27 * + 10 THEN - 11 END + - 54 * + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT DISTINCT 37 * - 23 + - COALESCE ( COUNT( * ), + COUNT( * ) ) + + 25 AS col1
----
-827

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT 37 * - 23 + - COALESCE ( COUNT ( * ), + COUNT ( * ) ) + + 25 AS col1
----
-827

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT - 18 * 83 * 95 + + + COUNT ( * ) AS col2
----
-141929

query I rowsort
SELECT 49 * + 22 * - 28 * - - 54 col0
----
-1629936

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL 72 + SUM( ALL - 18 )
----
54

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL 72 + SUM ( ALL - 18 )
----
54

query I rowsort
SELECT ALL 66 * + - 43
----
-2838

query I rowsort
SELECT ALL 12 - + - 85 * 0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1573
SELECT ( 44 ) / - MIN( + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT ( 44 ) / - MIN ( + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT 19 * - 85 DIV COUNT( * ) * + - 32
----
51680

skipif mysql # not compatible
query I rowsort label-1574
SELECT 19 * - 85 / COUNT ( * ) * + - 32
----
51680

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT ALL 59 * ( - 58 ) DIV - + 16 + + 19
----
232

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL 59 * ( - 58 ) / - + 16 + + 19
----
232

onlyif mysql # aggregate syntax: 
query II rowsort label-1576
SELECT 96 + - - COUNT( * ), - 68 AS col1
----
97
-68

skipif mysql # not compatible
query II rowsort label-1576
SELECT 96 + - - COUNT ( * ), - 68 AS col1
----
97
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT 65 + + COUNT( * ) * 56 + - 61 - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1577
SELECT 65 + + COUNT ( * ) * 56 + - 61 - - COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1578
SELECT + 53 * - SUM( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 53 * - SUM ( ALL CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 62 + 61
----
-1

query I rowsort
SELECT ALL - 35 + + 84 - + 36 + - CASE + - 32 WHEN - 90 THEN 13 + + - 65 * 9 END / + 13 + - 95
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1581
SELECT DISTINCT + 77 * NULLIF ( + COALESCE ( 72, + 69 ), - 92 ) DIV + 34, - 54 + + 55 AS col0
----
163
1

skipif mysql # not compatible
query II rowsort label-1581
SELECT DISTINCT + 77 * NULLIF ( + COALESCE ( 72, + 69 ), - 92 ) / + 34, - 54 + + 55 AS col0
----
163
1

query I rowsort
SELECT ALL 89 + - 94
----
-5

query II rowsort
SELECT ( 47 ) AS col0, 53 - - 11 + - 87 AS col1
----
47
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-1584
SELECT + 85 DIV - 93, 87 AS col1
----
0
87

skipif mysql # not compatible
query II rowsort label-1584
SELECT + 85 / - 93, 87 AS col1
----
0
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1585
SELECT + ( + 1 ) * + + 17 + - 78 * - CAST( - 87 AS SIGNED ) * + 80
----
-542863

skipif mysql # not compatible
query I rowsort label-1585
SELECT + ( + 1 ) * + + 17 + - 78 * - CAST ( - 87 AS INTEGER ) * + 80
----
-542863

query II rowsort
SELECT 20, 75 AS col2
----
20
75

query II rowsort
SELECT 40 - ( 43 ), 11 col1
----
-3
11

onlyif mysql # aggregate syntax: 
query II rowsort label-1588
SELECT + 23 AS col0, 9 * - - MAX( - 83 )
----
23
-747

skipif mysql # not compatible
query II rowsort label-1588
SELECT + 23 AS col0, 9 * - - MAX ( - 83 )
----
23
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT - NULLIF ( - COUNT( ALL + + 32 ), - 89 + - 7 ) * - 79 + + 33
----
-46

skipif mysql # not compatible
query I rowsort label-1589
SELECT - NULLIF ( - COUNT ( ALL + + 32 ), - 89 + - 7 ) * - 79 + + 33
----
-46

query I rowsort
SELECT 85 * - 80 AS col2
----
-6800

query II rowsort
SELECT + 34 col1, + 50
----
34
50

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

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

query I rowsort
SELECT 75 - - 70 + 37 + 25
----
207

query I rowsort
SELECT ALL - 96 * + COALESCE ( CASE 3 WHEN + 2 - + 52 THEN NULL ELSE 26 END, + - 45, 81 )
----
-2496

query I rowsort
SELECT 84 - + + 88
----
-4

query I rowsort
SELECT 74 + ( 32 ) * 67 - - 99 + 0 col2
----
2317

query I rowsort
SELECT 9 * 88
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT 84 + + ( 29 ) + + CAST( NULL AS SIGNED ) / + 74 - + 60 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT 84 + + ( 29 ) + + CAST ( NULL AS INTEGER ) / + 74 - + 60 + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT 19 - 47 * + ( 38 ) * + MAX( ALL 94 ) AS col1
----
-167865

skipif mysql # not compatible
query I rowsort label-1599
SELECT 19 - 47 * + ( 38 ) * + MAX ( ALL 94 ) AS col1
----
-167865

query I rowsort
SELECT DISTINCT + 6 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT ALL SUM( + 38 ) - - + 35 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL SUM ( + 38 ) - - + 35 AS col2
----
73

query I rowsort
SELECT 99 * - + 79 AS col0
----
-7821

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

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

query II rowsort
SELECT 62 col0, 89 AS col2
----
62
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT DISTINCT - 33 * - CAST( + 47 AS SIGNED )
----
1551

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT - 33 * - CAST ( + 47 AS INTEGER )
----
1551

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL CASE - + COUNT( * ) WHEN + - 68 * 1 * - - MAX( DISTINCT - 93 ) THEN - 7 * + + 44 + 92 WHEN - - 40 / - 56 + + ( + ( + NULLIF ( + 43, 70 ) ) ) + - COUNT( ALL CASE 41 WHEN + COALESCE ( + - 3, ( 67 ), + - 27, - 22 + + - 57 ) THEN + 58 ELSE + 46 END ) * + 64 / - COUNT( * ) THEN - 2 ELSE 17 END AS col2
----
17

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL CASE - + COUNT ( * ) WHEN + - 68 * 1 * - - MAX ( DISTINCT - 93 ) THEN - 7 * + + 44 + 92 WHEN - - 40 / - 56 + + ( + ( + NULLIF ( + 43, 70 ) ) ) + - COUNT ( ALL CASE 41 WHEN + COALESCE ( + - 3, ( 67 ), + - 27, - 22 + + - 57 ) THEN + 58 ELSE + 46 END ) * + 64 / - COUNT ( * ) THEN - 2 ELSE 17 END AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1608
SELECT - NULLIF ( CASE + 39 WHEN - 21 THEN NULL ELSE - COUNT( * ) END, 26 ) * - + COUNT( * ) * - + 42, CAST( 50 AS SIGNED ) col1
----
42
50

skipif mysql # not compatible
query II rowsort label-1608
SELECT - NULLIF ( CASE + 39 WHEN - 21 THEN NULL ELSE - COUNT ( * ) END, 26 ) * - + COUNT ( * ) * - + 42, CAST ( 50 AS INTEGER ) col1
----
42
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT COUNT( * ) + ( + + NULLIF ( - 22, + + ( + 99 ) * - 20 + + + CASE - - 45 WHEN 59 * 57 - - 4 THEN CAST( - MIN( + 35 ) AS SIGNED ) ELSE + + 34 END + + 71 + + 51 + + ( - - COUNT( * ) ) * MIN( - 63 ) / - CAST( + SUM( - 95 ) AS SIGNED ) / - NULLIF ( 60, + - CAST( 86 AS SIGNED ) * + COUNT( * ) ) + MAX( 62 ) + 3 ) ) + + 11 * - 40
----
-461

skipif mysql # not compatible
query I rowsort label-1609
SELECT COUNT ( * ) + ( + + NULLIF ( - 22, + + ( + 99 ) * - 20 + + + CASE - - 45 WHEN 59 * 57 - - 4 THEN CAST ( - MIN ( + 35 ) AS INTEGER ) ELSE + + 34 END + + 71 + + 51 + + ( - - COUNT ( * ) ) * MIN ( - 63 ) / - CAST ( + SUM ( - 95 ) AS INTEGER ) / - NULLIF ( 60, + - CAST ( 86 AS INTEGER ) * + COUNT ( * ) ) + MAX ( 62 ) + 3 ) ) + + 11 * - 40
----
-461

query I rowsort
SELECT DISTINCT + 89 * 30
----
2670

query I rowsort
SELECT + 46 * ( + 6 ) + - + 9 + - + 53
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT ALL - 39 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - 39 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 28 * ( 50 ) AS col1
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1614
SELECT ALL + 64 + - 20 + - CAST( + COUNT( DISTINCT 95 ) AS SIGNED ) * 37 * - - 37 + + - 79 AS col0, - 93
----
-1404
-93

skipif mysql # not compatible
query II rowsort label-1614
SELECT ALL + 64 + - 20 + - CAST ( + COUNT ( DISTINCT 95 ) AS INTEGER ) * 37 * - - 37 + + - 79 AS col0, - 93
----
-1404
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1615
SELECT CAST( NULL AS DECIMAL ) - - COALESCE ( - 10, - NULLIF ( - 63, + COUNT( * ) + + CAST( + - 51 AS DECIMAL ) * 1 ) * - 85 + - 6 ) * 27 + 71 - - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT CAST ( NULL AS REAL ) - - COALESCE ( - 10, - NULLIF ( - 63, + COUNT ( * ) + + CAST ( + - 51 AS REAL ) * 1 ) * - 85 + - 6 ) * 27 + 71 - - 74 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT DISTINCT 38 + - CAST( + AVG ( DISTINCT + 3 ) AS SIGNED ) + - 93 * - 55 - - COUNT( * )
----
5151

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT 38 + - CAST ( + AVG ( DISTINCT + 3 ) AS INTEGER ) + - 93 * - 55 - - COUNT ( * )
----
5151

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT DISTINCT 52 DIV + 69 * + 5
----
0

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT 52 / + 69 * + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL + COUNT( * ) + 32 + + + 17 * - COUNT( * ) * - ( - + 69 ) AS col2
----
-1140

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + COUNT ( * ) + 32 + + + 17 * - COUNT ( * ) * - ( - + 69 ) AS col2
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT + 26 + - + COUNT( * ) + - SUM( + 62 ) + + 55
----
18

skipif mysql # not compatible
query I rowsort label-1619
SELECT + 26 + - + COUNT ( * ) + - SUM ( + 62 ) + + 55
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT 51 + - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1620
SELECT 51 + - COUNT ( * ) AS col0
----
50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1622
SELECT DISTINCT + 12 DIV - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT + 12 / - + 4
----
-3

query I rowsort
SELECT + COALESCE ( + 95, 88 )
----
95

query I rowsort
SELECT + 85 + - 31
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT CASE + COUNT( * ) WHEN - 91 * ( CAST( NULL AS SIGNED ) ) + 25 * + ( - - 20 ) + - + 19 + + 78 + 53 THEN + 93 - - - SUM( DISTINCT 69 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT CASE + COUNT ( * ) WHEN - 91 * ( CAST ( NULL AS INTEGER ) ) + 25 * + ( - - 20 ) + - + 19 + + 78 + 53 THEN + 93 - - - SUM ( DISTINCT 69 ) ELSE NULL END col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT + CASE + 37 WHEN - COUNT( * ) THEN SUM( - 3 ) WHEN + COUNT( - + NULLIF ( + + 11, - ( + 5 ) * - - 4 + + ( + + 51 ) ) ) THEN - + 48 - - 57 + + + 16 * 84 * + + 22 - 41 + - 91 / - COUNT( * ) * - 52 / - - 46 ELSE NULL END * + 49 + 95 + 82 + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT + CASE + 37 WHEN - COUNT ( * ) THEN SUM ( - 3 ) WHEN + COUNT ( - + NULLIF ( + + 11, - ( + 5 ) * - - 4 + + ( + + 51 ) ) ) THEN - + 48 - - 57 + + + 16 * 84 * + + 22 - 41 + - 91 / - COUNT ( * ) * - 52 / - - 46 ELSE NULL END * + 49 + 95 + 82 + 39 AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( + 64, + - 64 )
----
64

query I rowsort
SELECT DISTINCT 35 * + ( - 52 ) - 25 - + ( + - 34 ) col0
----
-1811

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT ALL COUNT( * ) * - + CAST( - NULLIF ( + - 8, - 24 / - 39 - + 3 ) AS SIGNED ) - + 71 col0
----
-79

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL COUNT ( * ) * - + CAST ( - NULLIF ( + - 8, - 24 / - 39 - + 3 ) AS INTEGER ) - + 71 col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT + COALESCE ( - COUNT( * ), 7 ) * - - 48 col1
----
-48

skipif mysql # not compatible
query I rowsort label-1632
SELECT + COALESCE ( - COUNT ( * ), 7 ) * - - 48 col1
----
-48

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

skipif mysql # not compatible
query I rowsort label-1633
SELECT + COALESCE ( COUNT ( * ), - - SUM ( ( - - 26 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL + COALESCE ( - - 71, + COUNT( * ), - 20 * - - 85 + - 13 )
----
71

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL + COALESCE ( - - 71, + COUNT ( * ), - 20 * - - 85 + - 13 )
----
71

query I rowsort
SELECT - 1 * - - 40 * + + 71
----
-2840

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

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

query I rowsort
SELECT - 53 * 95 + - 32
----
-5067

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT MIN ( DISTINCT - - CAST ( 93 AS INTEGER ) )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT ALL - COUNT( * ) * + - 3 AS col0, - 36 AS col1
----
3
-36

skipif mysql # not compatible
query II rowsort label-1639
SELECT ALL - COUNT ( * ) * + - 3 AS col0, - 36 AS col1
----
3
-36

query I rowsort
SELECT ALL - NULLIF ( - 28, + + 39 ) * ( 99 ) AS col1
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT DISTINCT 88 DIV + ( + 98 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT 88 / + ( + 98 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT + 24 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1642
SELECT + 24 / - 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT - ( + + 61 ) * 89 + 7 * MAX( - 58 ) * - 79 - + + 12 + 36 + - 57 AS col1
----
26612

skipif mysql # not compatible
query I rowsort label-1643
SELECT - ( + + 61 ) * 89 + 7 * MAX ( - 58 ) * - 79 - + + 12 + 36 + - 57 AS col1
----
26612

query I rowsort
SELECT DISTINCT - 1 + 73
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1645
SELECT - + 74 + + CASE 38 WHEN + + 41 + ( 71 ) THEN - SUM( DISTINCT - + 30 ) * + 45 WHEN - 76 THEN - 36 WHEN + 29 THEN NULL END, 88 + - + 14 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1645
SELECT - + 74 + + CASE 38 WHEN + + 41 + ( 71 ) THEN - SUM ( DISTINCT - + 30 ) * + 45 WHEN - 76 THEN - 36 WHEN + 29 THEN NULL END, 88 + - + 14 AS col1
----
NULL
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1647
SELECT - - COUNT( * ) * + 73 * - CAST( + CASE - 56 WHEN + + NULLIF ( - + 4, - CASE + 72 WHEN - - 23 THEN - + 58 / + - 10 WHEN COUNT( * ) * + 88 THEN + + CASE + ( + 51 ) WHEN + - 1 THEN 78 + + 10 WHEN + - COALESCE ( - 50, - - CAST( + - 46 AS SIGNED ), COUNT( * ) + - - 87 ) THEN NULL ELSE + SUM( ALL + 96 ) * - + 91 + - 47 END ELSE 14 END ) + - 64 THEN - 27 * 9 WHEN + 36 THEN NULL ELSE NULL END AS SIGNED ) * 69 - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT - - COUNT ( * ) * + 73 * - CAST ( + CASE - 56 WHEN + + NULLIF ( - + 4, - CASE + 72 WHEN - - 23 THEN - + 58 / + - 10 WHEN COUNT ( * ) * + 88 THEN + + CASE + ( + 51 ) WHEN + - 1 THEN 78 + + 10 WHEN + - COALESCE ( - 50, - - CAST ( + - 46 AS INTEGER ), COUNT ( * ) + - - 87 ) THEN NULL ELSE + SUM ( ALL + 96 ) * - + 91 + - 47 END ELSE 14 END ) + - 64 THEN - 27 * 9 WHEN + 36 THEN NULL ELSE NULL END AS INTEGER ) * 69 - 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1648
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), ( - 33 ), + 50 DIV - 44 + + 25 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), ( - 33 ), + 50 / - 44 + + 25 ) AS col2
----
-33

query I rowsort
SELECT ALL 40 * - 32 * + + 3 AS col0
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT - MAX( - - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1650
SELECT - MAX ( - - 53 ) AS col2
----
-53

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

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

query I rowsort
SELECT + - 97 + ( + 95 )
----
-2

query I rowsort
SELECT ALL - 92 - - 65 AS col1
----
-27

query I rowsort
SELECT ALL 55 * + - 49 AS col1
----
-2695

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1656
SELECT DISTINCT - 78 * - + SUM( - 0 ) AS col2, - 86 * - 62 * + 29 col2, + NULLIF ( + - 33, + + 4 ) - - - COUNT( * ) + + 73 * + 60 col1
----
0
154628
4346

skipif mysql # not compatible
query III rowsort label-1656
SELECT DISTINCT - 78 * - + SUM ( - 0 ) AS col2, - 86 * - 62 * + 29 col2, + NULLIF ( + - 33, + + 4 ) - - - COUNT ( * ) + + 73 * + 60 col1
----
0
154628
4346

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT ALL 25 DIV + 16
----
1

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 25 / + 16
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT + COALESCE ( - ( 46 ), + 9 - + - 19 + - + 54, 94 - + - 62, + + COUNT( * ) * - 56 * + 95 * + 43 * ( - + 82 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1658
SELECT + COALESCE ( - ( 46 ), + 9 - + - 19 + - + 54, 94 - + - 62, + + COUNT ( * ) * - 56 * + 95 * + 43 * ( - + 82 ) ) AS col1
----
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT - COALESCE ( - + 90, - 85 DIV - 38 * 30 ) - - + 65
----
155

skipif mysql # not compatible
query I rowsort label-1660
SELECT - COALESCE ( - + 90, - 85 / - 38 * 30 ) - - + 65
----
155

query I rowsort
SELECT + 25 * + ( + 30 ) AS col2
----
750

query I rowsort
SELECT + 83 * - 91
----
-7553

query I rowsort
SELECT ( - 79 ) * + - 72 + - 62 col1
----
5626

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

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

query II rowsort
SELECT ALL + 25 AS col0, + 87 AS col1
----
25
87

query I rowsort
SELECT DISTINCT 18 * - ( 12 ) * + 22 - - 31 AS col0
----
-4721

query I rowsort
SELECT + 41 - 16 AS col2
----
25

query I rowsort
SELECT ALL 47 * - + 46 AS col2
----
-2162

query I rowsort
SELECT + 59 * + + 6 AS col1
----
354

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1670
SELECT - 23 * + - 24 + COALESCE ( 31, + + 13 * - + 74 + - + COUNT( * ) DIV 76 + + COUNT( * ) ) + - 17 * - - 57 AS col0, - 75 AS col2
----
-386
-75

skipif mysql # not compatible
query II rowsort label-1670
SELECT - 23 * + - 24 + COALESCE ( 31, + + 13 * - + 74 + - + COUNT ( * ) / 76 + + COUNT ( * ) ) + - 17 * - - 57 AS col0, - 75 AS col2
----
-386
-75

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

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

query I rowsort
SELECT + + 83 * - 26 AS col2
----
-2158

query I rowsort
SELECT + + 25 + 94 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + 70 * + 25 + 93 + - - MAX( ( - 75 ) ) AS col0
----
1768

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + 70 * + 25 + 93 + - - MAX ( ( - 75 ) ) AS col0
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT - 6 * - - COUNT( * ) * + 65 * - - 47 AS col1
----
-18330

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT - 6 * - - COUNT ( * ) * + 65 * - - 47 AS col1
----
-18330

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL - 6 * - 89 + 92 * - ( + - ( + 20 ) ) * - + COUNT( * )
----
-1306

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL - 6 * - 89 + 92 * - ( + - ( + 20 ) ) * - + COUNT ( * )
----
-1306

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1678
SELECT ALL SUM( + - 3 ) DIV - - 5 - + - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL SUM ( + - 3 ) / - - 5 - + - COUNT ( * ) AS col0
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1681
SELECT ALL + - ( 67 ) + CAST( - 15 AS SIGNED ) + - 74, - CAST( NULL AS SIGNED ) col1
----
-156
NULL

skipif mysql # not compatible
query II rowsort label-1681
SELECT ALL + - ( 67 ) + CAST ( - 15 AS INTEGER ) + - 74, - CAST ( NULL AS INTEGER ) col1
----
-156
NULL

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

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

query I rowsort
SELECT 22 + + 54 col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - 30 DIV 24
----
-1

skipif mysql # not compatible
query I rowsort label-1684
SELECT - 30 / 24
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + CASE + ( + 17 ) WHEN 88 THEN + ( + 40 ) WHEN + 45 + + COUNT( * ) + - 50 + + + 36 THEN NULL ELSE NULL END + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT + CASE + ( + 17 ) WHEN 88 THEN + ( + 40 ) WHEN + 45 + + COUNT ( * ) + - 50 + + + 36 THEN NULL ELSE NULL END + - 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT 14 + + + COUNT( * ) + - - 46 * - CAST( NULL AS SIGNED ) + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT 14 + + + COUNT ( * ) + - - 46 * - CAST ( NULL AS INTEGER ) + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT - CASE 69 WHEN - - 9 * - 80 THEN + + 73 - + 40 ELSE NULL END - + ( + 14 ) + - COALESCE ( + 9, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - CASE 69 WHEN - - 9 * - 80 THEN + + 73 - + 40 ELSE NULL END - + ( + 14 ) + - COALESCE ( + 9, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT 68 * + MIN( DISTINCT - 82 ) * - + 41 + 23 AS col1
----
228639

skipif mysql # not compatible
query I rowsort label-1688
SELECT 68 * + MIN ( DISTINCT - 82 ) * - + 41 + 23 AS col1
----
228639

query I rowsort
SELECT 84 + + 30 AS col0
----
114

query II rowsort
SELECT 7 AS col2, + ( - 41 ) AS col0
----
7
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1691
SELECT 58 * + MIN( 0 ) * - CAST( + MIN( - - 24 ) AS SIGNED ) DIV - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT 58 * + MIN ( 0 ) * - CAST ( + MIN ( - - 24 ) AS INTEGER ) / - 44 AS col2
----
0

query I rowsort
SELECT 94 + - 15
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT 65 + - COUNT( * ) + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1693
SELECT 65 + - COUNT ( * ) + - COUNT ( * ) AS col2
----
63

query I rowsort
SELECT 0 * 33 AS col1
----
0

query I rowsort
SELECT 84 * - + 9
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT 90 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-1696
SELECT 90 / + 78
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL COUNT( * ) + - + 93 - + 35
----
-127

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL COUNT ( * ) + - + 93 - + 35
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT - 44 * + 34 * 22 + COUNT( * ) + 62 AS col1
----
-32849

skipif mysql # not compatible
query I rowsort label-1699
SELECT - 44 * + 34 * 22 + COUNT ( * ) + 62 AS col1
----
-32849

query II rowsort
SELECT 19 + - + 14 col2, 16 * - 44 AS col0
----
5
-704

query I rowsort
SELECT 25 * + 49
----
1225

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1704
SELECT 74 AS col0, NULLIF ( + CAST( - + COUNT( * ) AS SIGNED ), + 75 )
----
74
-1

skipif mysql # not compatible
query II rowsort label-1704
SELECT 74 AS col0, NULLIF ( + CAST ( - + COUNT ( * ) AS INTEGER ), + 75 )
----
74
-1

query II rowsort
SELECT 94 AS col2, + 96 AS col2
----
94
96

query I rowsort
SELECT DISTINCT - ( + 29 ) + + 1 AS col2
----
-28

query I rowsort
SELECT ALL + 77 * + 17
----
1309

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

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL 0 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT DISTINCT - 60 * - 94 + NULLIF ( + COUNT( * ), - ( + - 68 ) ) * + + 96 + + - 88 AS col1
----
5648

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - 60 * - 94 + NULLIF ( + COUNT ( * ), - ( + - 68 ) ) * + + 96 + + - 88 AS col1
----
5648

query I rowsort
SELECT DISTINCT 44 * - 44 AS col1
----
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT COUNT( * ) * - - MAX( - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-1711
SELECT COUNT ( * ) * - - MAX ( - 58 )
----
-58

query II rowsort
SELECT 74 AS col0, ( + 73 ) col0
----
74
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT COALESCE ( - 57, - 81 * NULLIF ( 15, - 83 * + + 95 ) + - 92, MAX( 83 ), - - 45 DIV 72 ) * - 99 DIV - 3 + 53 * + 97 + - - 69 + + 42 * + + 38 + - 31 * + 22
----
4243

skipif mysql # not compatible
query I rowsort label-1713
SELECT COALESCE ( - 57, - 81 * NULLIF ( 15, - 83 * + + 95 ) + - 92, MAX ( 83 ), - - 45 / 72 ) * - 99 / - 3 + 53 * + 97 + - - 69 + + 42 * + + 38 + - 31 * + 22
----
4243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1714
SELECT ALL - 16 * - + 37 * COUNT( * ) + - - 97 DIV + 2 AS col1
----
640

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - 16 * - + 37 * COUNT ( * ) + - - 97 / + 2 AS col1
----
640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT - - MAX( DISTINCT ( + 47 ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1716
SELECT - - MAX ( DISTINCT ( + 47 ) ) AS col0
----
47

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

query II rowsort
SELECT - 75 AS col2, 10 AS col0
----
-75
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT - COUNT( * ) + + 18 + - 94 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-1719
SELECT - COUNT ( * ) + + 18 + - 94 AS col2
----
-77

query II rowsort
SELECT ALL + 93 col0, NULLIF ( - 13, + - ( - 84 ) * - ( - 48 ) )
----
93
-13

query I rowsort
SELECT - - 36 col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1722
SELECT + 75 col2, CAST( NULL AS SIGNED ) + AVG ( DISTINCT 30 ) + + COUNT( * )
----
75
NULL

skipif mysql # not compatible
query II rowsort label-1722
SELECT + 75 col2, CAST ( NULL AS INTEGER ) + AVG ( DISTINCT 30 ) + + COUNT ( * )
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT ALL + CASE + 44 WHEN - - 29 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 5 THEN + + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + CASE + 44 WHEN - - 29 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 5 THEN + + 99 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1724
SELECT + COUNT( * ), + COUNT( * ) * + CASE - COALESCE ( + CAST( NULL AS DECIMAL ), 53, - 12 ) WHEN - 83 THEN CAST( NULL AS SIGNED ) * + 69 END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1724
SELECT + COUNT ( * ), + COUNT ( * ) * + CASE - COALESCE ( + CAST ( NULL AS REAL ), 53, - 12 ) WHEN - 83 THEN CAST ( NULL AS INTEGER ) * + 69 END AS col0
----
1
NULL

query I rowsort
SELECT 55 - - 80
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1726
SELECT CASE - 6 WHEN 99 * + 78 / + 89 + 94 THEN + CAST( NULL AS SIGNED ) WHEN - - COUNT( ALL 19 ) * 76 THEN - 92 * - 80 + - 32 END * + CASE + 94 WHEN NULLIF ( - + ( - - 0 ), - CASE 85 WHEN - CAST( NULL AS SIGNED ) * - + 49 + - 62 + 44 THEN + + 81 WHEN - + COALESCE ( + - MIN( DISTINCT + 28 ), 29, + ( 40 ) ) THEN NULL END ) THEN + 14 WHEN + 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT CASE - 6 WHEN 99 * + 78 / + 89 + 94 THEN + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( ALL 19 ) * 76 THEN - 92 * - 80 + - 32 END * + CASE + 94 WHEN NULLIF ( - + ( - - 0 ), - CASE 85 WHEN - CAST ( NULL AS INTEGER ) * - + 49 + - 62 + 44 THEN + + 81 WHEN - + COALESCE ( + - MIN ( DISTINCT + 28 ), 29, + ( 40 ) ) THEN NULL END ) THEN + 14 WHEN + 41 THEN NULL END
----
NULL

query I rowsort
SELECT 94 * 50 AS col1
----
4700

query I rowsort
SELECT 3 * - 91 * - 82
----
22386

query II rowsort
SELECT 84 * + - 87, + 84 AS col1
----
-7308
84

query I rowsort
SELECT 93 * 14
----
1302

onlyif mysql # aggregate syntax: 
query II rowsort label-1731
SELECT ALL - COUNT( * ) + - 42, - 44 * + SUM( DISTINCT + + 63 ) AS col0
----
-43
-2772

skipif mysql # not compatible
query II rowsort label-1731
SELECT ALL - COUNT ( * ) + - 42, - 44 * + SUM ( DISTINCT + + 63 ) AS col0
----
-43
-2772

query I rowsort
SELECT 0 - 12 * 58 AS col1
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL - COUNT( * ) * 64 + - COUNT( * ) + + - 60
----
-125

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - COUNT ( * ) * 64 + - COUNT ( * ) + + - 60
----
-125

query I rowsort
SELECT DISTINCT + 61 * + 21 + + 18 + - - 38 AS col0
----
1337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT - ( 26 ) * + 35 + - 30 + - 64 + + ( - + CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN 15 ELSE CASE + MAX( ALL + 17 ) WHEN COALESCE ( + + ( + + 90 ), - 70 * - MIN( 25 ) + - ( + CAST( NULL AS SIGNED ) ) + 66 ) + 56 THEN - 64 * COUNT( DISTINCT - 73 ) WHEN + - NULLIF ( - 39, - 56 ) * 37 * 36 * - 4 THEN NULL ELSE - 83 * - ( 40 ) + 50 END END ) * - 48 + - 30
----
160726

skipif mysql # not compatible
query I rowsort label-1735
SELECT - ( 26 ) * + 35 + - 30 + - 64 + + ( - + CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN 15 ELSE CASE + MAX ( ALL + 17 ) WHEN COALESCE ( + + ( + + 90 ), - 70 * - MIN ( 25 ) + - ( + CAST ( NULL AS INTEGER ) ) + 66 ) + 56 THEN - 64 * COUNT ( DISTINCT - 73 ) WHEN + - NULLIF ( - 39, - 56 ) * 37 * 36 * - 4 THEN NULL ELSE - 83 * - ( 40 ) + 50 END END ) * - 48 + - 30
----
160726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL + CAST( SUM( - + NULLIF ( 65, 28 / - 67 ) ) AS SIGNED ) * 38 * - - 70 AS col2
----
-172900

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + CAST ( SUM ( - + NULLIF ( 65, 28 / - 67 ) ) AS INTEGER ) * 38 * - - 70 AS col2
----
-172900

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT 7 * + SUM( DISTINCT 77 ) + 2 AS col2
----
541

skipif mysql # not compatible
query I rowsort label-1737
SELECT 7 * + SUM ( DISTINCT 77 ) + 2 AS col2
----
541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1738
SELECT + + CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - - COUNT( * ) * + 12 + - 64 WHEN + - 58 + + - 10 THEN + 76 * + 72 WHEN 3 THEN + 23 WHEN - 76 THEN + MAX( ALL + + 28 ) END, + 29 AS col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-1738
SELECT + + CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - - COUNT ( * ) * + 12 + - 64 WHEN + - 58 + + - 10 THEN + 76 * + 72 WHEN 3 THEN + 23 WHEN - 76 THEN + MAX ( ALL + + 28 ) END, + 29 AS col0
----
NULL
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL - - COUNT( + 49 ) * + NULLIF ( + COUNT( * ), - 1 + 22 + + - 4 ) + 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL - - COUNT ( + 49 ) * + NULLIF ( + COUNT ( * ), - 1 + 22 + + - 4 ) + 67 AS col1
----
68

query II rowsort
SELECT ALL + 11 * 65 AS col1, 24 * 58 * - - 23
----
715
32016

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL + 48 + - 39 + - - COUNT( DISTINCT - - 16 ) * - 93 * - + 53
----
4938

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL + 48 + - 39 + - - COUNT ( DISTINCT - - 16 ) * - 93 * - + 53
----
4938

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT - COUNT( * ) * - 48 AS col0, 86 * 72
----
48
6192

skipif mysql # not compatible
query II rowsort label-1742
SELECT - COUNT ( * ) * - 48 AS col0, 86 * 72
----
48
6192

query I rowsort
SELECT + 76 * - 66 AS col0
----
-5016

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT DISTINCT + 29 DIV 45 - + + 62 * 13 + + - ( - 6 ) * - 5 AS col1
----
-836

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT + 29 / 45 - + + 62 * 13 + + - ( - 6 ) * - 5 AS col1
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT - COUNT( * ) + - 85 col0
----
-86

skipif mysql # not compatible
query I rowsort label-1745
SELECT - COUNT ( * ) + - 85 col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT ALL + - 38 DIV - 31 - - + 0 + + 18 + + 28 + 27 - + 93 * + + 66 * - ( - - 88 ) * ( 72 ) + - 41 AS col1
----
38890401

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + - 38 / - 31 - - + 0 + + 18 + + 28 + 27 - + 93 * + + 66 * - ( - - 88 ) * ( 72 ) + - 41 AS col1
----
38890401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT ALL + COUNT( * ) * + 6 * - 34 * 17 + + ( + - COUNT( * ) ) * - 94 DIV 35
----
-3466

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + COUNT ( * ) * + 6 * - 34 * 17 + + ( + - COUNT ( * ) ) * - 94 / 35
----
-3466

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT + - COUNT( ALL 52 ) + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-1748
SELECT + - COUNT ( ALL 52 ) + - 79
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT ALL MAX( - + 42 ) AS col0, + 64 AS col0
----
-42
64

skipif mysql # not compatible
query II rowsort label-1749
SELECT ALL MAX ( - + 42 ) AS col0, + 64 AS col0
----
-42
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL 62 * CASE + + 73 WHEN + ( - - COUNT( * ) ) THEN NULL WHEN + + COUNT( * ) * + COUNT( * ) THEN - 10 + + 1 - 26 * - + 42 END * + + ( + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL 62 * CASE + + 73 WHEN + ( - - COUNT ( * ) ) THEN NULL WHEN + + COUNT ( * ) * + COUNT ( * ) THEN - 10 + + 1 - 26 * - + 42 END * + + ( + 89 )
----
NULL

query I rowsort
SELECT + 84 * - + 81
----
-6804

query I rowsort
SELECT + 72 + + 61
----
133

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT + CAST( NULL AS SIGNED ) / - 17 * AVG ( DISTINCT + + 57 ) * - CASE 41 WHEN - 44 / 74 THEN - - 8 * MAX( ALL + 75 ) - + 75 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT + CAST ( NULL AS INTEGER ) / - 17 * AVG ( DISTINCT + + 57 ) * - CASE 41 WHEN - 44 / 74 THEN - - 8 * MAX ( ALL + 75 ) - + 75 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1755
SELECT - NULLIF ( + + NULLIF ( - 80, COUNT( - - CAST( - 72 AS SIGNED ) ) * COUNT( * ) ), 29 - - 54 ) col2, + 49 col1
----
80
49

skipif mysql # not compatible
query II rowsort label-1755
SELECT - NULLIF ( + + NULLIF ( - 80, COUNT ( - - CAST ( - 72 AS INTEGER ) ) * COUNT ( * ) ), 29 - - 54 ) col2, + 49 col1
----
80
49

query I rowsort
SELECT ALL 30 + + 35 - - + 97 + 37 + - 66 * + 48 AS col2
----
-2969

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT + 42 + - ( + MAX( 48 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1757
SELECT + 42 + - ( + MAX ( 48 ) ) AS col1
----
-6

query II rowsort
SELECT + 18 + - ( + 41 ), + 40 AS col0
----
-23
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT + CAST( NULL AS SIGNED ) * 37 * + + 48 / - - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT + CAST ( NULL AS INTEGER ) * 37 * + + 48 / - - 98 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1761
SELECT + 82 DIV 3 * + COUNT( * ) * 64
----
1728

skipif mysql # not compatible
query I rowsort label-1761
SELECT + 82 / 3 * + COUNT ( * ) * 64
----
1728

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

query I rowsort
SELECT + 59 * - 26 AS col1
----
-1534

query I rowsort
SELECT ALL - + 88 * - 52 - - + 93 AS col0
----
4669

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

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

query I rowsort
SELECT DISTINCT + - ( 12 ) AS col1
----
-12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1768
SELECT - 14 AS col2, + CAST( NULL AS SIGNED ) * + 90 * - MIN( DISTINCT - 49 )
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-1768
SELECT - 14 AS col2, + CAST ( NULL AS INTEGER ) * + 90 * - MIN ( DISTINCT - 49 )
----
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - NULLIF ( + 39, COUNT( * ) ) * - - 7 + + 65
----
-208

skipif mysql # not compatible
query I rowsort label-1769
SELECT - NULLIF ( + 39, COUNT ( * ) ) * - - 7 + + 65
----
-208

query I rowsort
SELECT - 74 * 24 AS col2
----
-1776

query I rowsort
SELECT ALL + + 2 * + 54 * 55
----
5940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT - 94 * - CAST( 57 AS SIGNED ) + 20 + - 75 AS col1
----
5303

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 94 * - CAST ( 57 AS INTEGER ) + 20 + - 75 AS col1
----
5303

query I rowsort
SELECT DISTINCT + - 60 * 92 col0
----
-5520

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

skipif mysql # not compatible
query I rowsort label-1774
SELECT + CAST ( 23 AS INTEGER ) AS col2
----
23

query I rowsort
SELECT - 21 * 89 + 64 AS col2
----
-1805

query II rowsort
SELECT - 72 AS col0, - 12 * 75 * - 53
----
-72
47700

query I rowsort
SELECT DISTINCT COALESCE ( - 55, 83 * - - 53, - 83 )
----
-55

query I rowsort
SELECT - 96 * + 40
----
-3840

query I rowsort
SELECT + 2 + + - 59 AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1780
SELECT - ( - COALESCE ( 34, COUNT( * ) + + - 76 DIV - 38 ) ) * + - 96
----
-3264

skipif mysql # not compatible
query I rowsort label-1780
SELECT - ( - COALESCE ( 34, COUNT ( * ) + + - 76 / - 38 ) ) * + - 96
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL MAX( + - ( - + 15 ) ) + + 53 * - + 31
----
-1628

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL MAX ( + - ( - + 15 ) ) + + 53 * - + 31
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT - SUM( 74 ) + CASE - ( + COUNT( * ) ) WHEN 26 THEN + 34 / COUNT( * ) * 92 - - - COUNT( * ) + - COUNT( * ) END - 41 + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - SUM ( 74 ) + CASE - ( + COUNT ( * ) ) WHEN 26 THEN + 34 / COUNT ( * ) * 92 - - - COUNT ( * ) + - COUNT ( * ) END - 41 + 70
----
NULL

query I rowsort
SELECT - ( - + 79 ) col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - COUNT( * ) - 23
----
-24

skipif mysql # not compatible
query I rowsort label-1784
SELECT - COUNT ( * ) - 23
----
-24

query I rowsort
SELECT DISTINCT ( - + 42 ) * - 12 AS col0
----
504

query I rowsort
SELECT ALL 71 - + 83
----
-12

query I rowsort
SELECT + 53 - 54
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1788
SELECT + CAST( NULL AS SIGNED ) / - 74 * + - CASE + COUNT( * ) WHEN + AVG ( DISTINCT NULLIF ( - + 69, - + 23 ) ) THEN 0 WHEN - - 73 * + 45 THEN CAST( - 30 AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT + CAST ( NULL AS INTEGER ) / - 74 * + - CASE + COUNT ( * ) WHEN + AVG ( DISTINCT NULLIF ( - + 69, - + 23 ) ) THEN 0 WHEN - - 73 * + 45 THEN CAST ( - 30 AS REAL ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1789
SELECT - 66 + - COUNT( * ) AS col0, + 32
----
-67
32

skipif mysql # not compatible
query II rowsort label-1789
SELECT - 66 + - COUNT ( * ) AS col0, + 32
----
-67
32

query I rowsort
SELECT DISTINCT ( + 31 ) * 11 * - + 88 - - - COALESCE ( + 27, + + 35, - 26 ) AS col0
----
-30035

query I rowsort
SELECT 65 + + - ( - 52 ) - - 13 * + + 24 * - 15 AS col2
----
-4563

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1792
SELECT + 58 DIV CAST( - + NULLIF ( COALESCE ( 20, + 77 * + 58 ), 91 ) AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1792
SELECT + 58 / CAST ( - + NULLIF ( COALESCE ( 20, + 77 * + 58 ), 91 ) AS INTEGER ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL - 70 * COUNT( DISTINCT + 45 )
----
-70

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - 70 * COUNT ( DISTINCT + 45 )
----
-70

query I rowsort
SELECT DISTINCT ( 44 ) * 64
----
2816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1795
SELECT 90 DIV + MAX( + 36 ) + + 60 + - + MIN( - + ( + ( - 82 ) ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1795
SELECT 90 / + MAX ( + 36 ) + + 60 + - + MIN ( - + ( + ( - 82 ) ) ) AS col1
----
-20

query II rowsort
SELECT ALL 95 * + 30, - CASE 15 WHEN - + 84 THEN - + ( + - 46 ) + - 32 END AS col1
----
2850
NULL

query I rowsort
SELECT 81 + + 42 + + ( - 27 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1798
SELECT + 74 * 19 * - 48 - 39 - + 13 + + - 50 * + 40 * - + COUNT( DISTINCT + 37 ) + - 59 + - 4 * 0 + + 65 + NULLIF ( + - 82, - 32 + - NULLIF ( - - CAST( + ( 12 ) AS SIGNED ), - 67 ) + + 1 + + 84 ) - - 43
----
-65573

skipif mysql # not compatible
query I rowsort label-1798
SELECT + 74 * 19 * - 48 - 39 - + 13 + + - 50 * + 40 * - + COUNT ( DISTINCT + 37 ) + - 59 + - 4 * 0 + + 65 + NULLIF ( + - 82, - 32 + - NULLIF ( - - CAST ( + ( 12 ) AS INTEGER ), - 67 ) + + 1 + + 84 ) - - 43
----
-65573

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT + SUM( + 33 ), - SUM( + 45 ) + + + ( + + 86 ) AS col0
----
33
41

skipif mysql # not compatible
query II rowsort label-1799
SELECT + SUM ( + 33 ), - SUM ( + 45 ) + + + ( + + 86 ) AS col0
----
33
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT DISTINCT - MAX( ALL ( - - 41 ) ) + + + 37 + COUNT( * ) + + COUNT( * ) * - 54 + - + 7 * 11
----
-134

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT - MAX ( ALL ( - - 41 ) ) + + + 37 + COUNT ( * ) + + COUNT ( * ) * - 54 + - + 7 * 11
----
-134

query II rowsort
SELECT + 32 + + 76 AS col2, - 93
----
108
-93

query I rowsort
SELECT 84 * + + 23
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL - NULLIF ( - COALESCE ( COUNT( * ), + 3 + + + 40 ), - 85 ) + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - NULLIF ( - COALESCE ( COUNT ( * ), + 3 + + + 40 ), - 85 ) + 48 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT DISTINCT 96 DIV + 93
----
1

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT 96 / + 93
----
1

query I rowsort
SELECT ALL + 74 + + 72 AS col2
----
146

query I rowsort
SELECT 0 - + 83
----
-83

query I rowsort
SELECT ALL - 74 + + 7
----
-67

query I rowsort
SELECT ALL - 2 + + 54 * - 95
----
-5132

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

query II rowsort
SELECT DISTINCT 83 AS col0, - 91 AS col1
----
83
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT 99 + - COUNT( - 31 )
----
98

skipif mysql # not compatible
query I rowsort label-1812
SELECT 99 + - COUNT ( - 31 )
----
98

query I rowsort
SELECT 35 - + 29 AS col1
----
6

query I rowsort
SELECT 9 + + + 94 * 21 + + + 42 AS col1
----
2025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1815
SELECT 47 * COUNT( * ) * + COALESCE ( COUNT( + + CAST( + 75 AS DECIMAL ) ), - - 49 * - CASE + + 5 WHEN + - 11 + NULLIF ( - 28, + - COUNT( * ) ) THEN ( + ( + ( - 93 ) ) ) DIV - - 1 ELSE + 35 END + 87, + ( + 8 ) * - 78 + - + 50 )
----
47

skipif mysql # not compatible
query I rowsort label-1815
SELECT 47 * COUNT ( * ) * + COALESCE ( COUNT ( + + CAST ( + 75 AS REAL ) ), - - 49 * - CASE + + 5 WHEN + - 11 + NULLIF ( - 28, + - COUNT ( * ) ) THEN ( + ( + ( - 93 ) ) ) / - - 1 ELSE + 35 END + 87, + ( + 8 ) * - 78 + - + 50 )
----
47

query I rowsort
SELECT 18 + 83 col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL MAX( 14 ) - - 86 + + 3 + + COUNT( * ) * + COUNT( * ) - - 37 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL MAX ( 14 ) - - 86 + + 3 + + COUNT ( * ) * + COUNT ( * ) - - 37 AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT 25 / - - CASE + - 89 WHEN + 66 THEN COUNT( * ) END * 95 * - 11 + - 29 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT 25 / - - CASE + - 89 WHEN + 66 THEN COUNT ( * ) END * 95 * - 11 + - 29 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT 34 + 89
----
123

query I rowsort
SELECT DISTINCT 64 * + 24
----
1536

query I rowsort
SELECT ALL + 40 - + ( 2 ) * - - 28
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1822
SELECT 24 AS col0, CAST( NULL AS DECIMAL ) AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1822
SELECT 24 AS col0, CAST ( NULL AS REAL ) AS col0
----
24
NULL

query I rowsort
SELECT 53 + + 15
----
68

query I rowsort
SELECT 88 * - - 40
----
3520

query I rowsort
SELECT 31 * ( + + 86 ) * + ( - - 88 ) + + 72 + + + 44 AS col0
----
234724

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1827
SELECT + 76 AS col0, 16 * + 54 + - SUM( ALL + - 33 ) - + 63 col2
----
76
834

skipif mysql # not compatible
query II rowsort label-1827
SELECT + 76 AS col0, 16 * + 54 + - SUM ( ALL + - 33 ) - + 63 col2
----
76
834

query II rowsort
SELECT 96, + 4 col2
----
96
4

query I rowsort
SELECT 11 * + 48 AS col1
----
528

query I rowsort
SELECT DISTINCT - + COALESCE ( + - 3, 83 ) * + 26 col1
----
78

query I rowsort
SELECT ALL 66 + + 55 * + - 87 + - 77
----
-4796

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT - - NULLIF ( + 62, - 27 * - + 41 + 94 / 46 * + COUNT( * ) - + 31 + + 77 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - - NULLIF ( + 62, - 27 * - + 41 + 94 / 46 * + COUNT ( * ) - + 31 + + 77 ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT ALL ( - 83 ) + - - 47 DIV 74
----
-83

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL ( - 83 ) + - - 47 / 74
----
-83

query I rowsort
SELECT + 72 * + - 3 - + 73 * + + 27 - 62
----
-2249

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT + 47 * COALESCE ( + - 44, 27, - COUNT( DISTINCT - 16 ) ) + - 21 AS col2
----
-2089

skipif mysql # not compatible
query I rowsort label-1835
SELECT + 47 * COALESCE ( + - 44, 27, - COUNT ( DISTINCT - 16 ) ) + - 21 AS col2
----
-2089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1836
SELECT ALL 95 + - 19 + + - 87 + - 43 * CAST( 47 AS SIGNED ) + COUNT( * ) AS col1
----
-2031

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 95 + - 19 + + - 87 + - 43 * CAST ( 47 AS INTEGER ) + COUNT ( * ) AS col1
----
-2031

query I rowsort
SELECT DISTINCT 14 + - 73
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1838
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS DECIMAL ) * - 50 / - COALESCE ( + 5, 56 / + COUNT( * ) ) AS col2, + 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-1838
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS REAL ) * - 50 / - COALESCE ( + 5, 56 / + COUNT ( * ) ) AS col2, + 40
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT 43 * + 7 * - + 41 * - 54 * - - 89 + - COUNT( * )
----
59310845

skipif mysql # not compatible
query I rowsort label-1839
SELECT 43 * + 7 * - + 41 * - 54 * - - 89 + - COUNT ( * )
----
59310845

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1840
SELECT ALL 79 AS col0, 34 * 83 + + 33 + - CAST( NULL AS SIGNED ) * 1 * - 84 * 60
----
79
NULL

skipif mysql # not compatible
query II rowsort label-1840
SELECT ALL 79 AS col0, 34 * 83 + + 33 + - CAST ( NULL AS INTEGER ) * 1 * - 84 * 60
----
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT 2 * + 8 AS col2, + MAX( + ( + 5 ) ) AS col1
----
16
5

skipif mysql # not compatible
query II rowsort label-1841
SELECT 2 * + 8 AS col2, + MAX ( + ( + 5 ) ) AS col1
----
16
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT - COUNT( * ), + COALESCE ( MIN( 41 ), - 99 * - 23 * 70 ) AS col2
----
-1
41

skipif mysql # not compatible
query II rowsort label-1842
SELECT - COUNT ( * ), + COALESCE ( MIN ( 41 ), - 99 * - 23 * 70 ) AS col2
----
-1
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1843
SELECT DISTINCT - CAST( + - 75 AS SIGNED ) - - 35 * - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT - CAST ( + - 75 AS INTEGER ) - - 35 * - COUNT ( * )
----
40

query II rowsort
SELECT ALL 89 AS col1, + 51 AS col1
----
89
51

query I rowsort
SELECT 28 * + 78 AS col0
----
2184

query I rowsort
SELECT + 0 * - 7 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1847
SELECT - 55 AS col2, + 90 * - - COUNT( * ) col2
----
-55
90

skipif mysql # not compatible
query II rowsort label-1847
SELECT - 55 AS col2, + 90 * - - COUNT ( * ) col2
----
-55
90

query I rowsort
SELECT - 17 - + 48 AS col1
----
-65

query I rowsort
SELECT - 93 - - 0 AS col0
----
-93

query II rowsort
SELECT - - 46, - 89 / + ( - 46 ) + CASE + 2 WHEN + - 93 THEN 63 * - 12 / 26 ELSE NULL END AS col2
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT - MAX( 53 ) * + 20 - + COUNT( * )
----
-1061

skipif mysql # not compatible
query I rowsort label-1851
SELECT - MAX ( 53 ) * + 20 - + COUNT ( * )
----
-1061

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

skipif mysql # not compatible
query I rowsort label-1852
SELECT - - ( + 3 ) / - - 99 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1853
SELECT - SUM( + + 6 ) DIV - SUM( DISTINCT 40 ) * + 31
----
0

skipif mysql # not compatible
query I rowsort label-1853
SELECT - SUM ( + + 6 ) / - SUM ( DISTINCT 40 ) * + 31
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT DISTINCT + 0 AS col1, COUNT( * ) * - 61 AS col1
----
0
-61

skipif mysql # not compatible
query II rowsort label-1854
SELECT DISTINCT + 0 AS col1, COUNT ( * ) * - 61 AS col1
----
0
-61

query II rowsort
SELECT ALL 16, + 11 - - - COALESCE ( - 66, 82 ) AS col1
----
16
77

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT - 28 col0, COUNT( * ) * + 22 * - 0 AS col1
----
-28
0

skipif mysql # not compatible
query II rowsort label-1857
SELECT - 28 col0, COUNT ( * ) * + 22 * - 0 AS col1
----
-28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ALL - 87 * - 80 + + + 64 + + COUNT( * )
----
7025

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL - 87 * - 80 + + + 64 + + COUNT ( * )
----
7025

query I rowsort
SELECT - - 5 * 95
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT + - ( - 86 ) * - ( + + MAX( DISTINCT - 85 ) )
----
7310

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT + - ( - 86 ) * - ( + + MAX ( DISTINCT - 85 ) )
----
7310

query I rowsort
SELECT ALL COALESCE ( - 3, - 28 ) * + 50 + + 20 col2
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT ALL + CASE + 69 WHEN 84 THEN - + 68 WHEN - 1 THEN NULL WHEN - 25 THEN NULL ELSE COUNT( * ) * - 53 * - + COUNT( * ) DIV + + 98 + 40 END * + 79 DIV + COUNT( * ) + + + 92 + + 86
----
3338

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + CASE + 69 WHEN 84 THEN - + 68 WHEN - 1 THEN NULL WHEN - 25 THEN NULL ELSE COUNT ( * ) * - 53 * - + COUNT ( * ) / + + 98 + 40 END * + 79 / + COUNT ( * ) + + + 92 + + 86
----
3338

query I rowsort
SELECT + 2 + NULLIF ( 97, 91 + ( - + 37 ) ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1864
SELECT + COUNT( 0 ) * - 38, 76 + - 37 + 76 - + - 32 * NULLIF ( 22, - - 13 ) * CAST( NULL AS SIGNED ) * - 61 * - + 72 * - - 32 AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-1864
SELECT + COUNT ( 0 ) * - 38, 76 + - 37 + 76 - + - 32 * NULLIF ( 22, - - 13 ) * CAST ( NULL AS INTEGER ) * - 61 * - + 72 * - - 32 AS col2
----
-38
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1865
SELECT SUM( 41 ), 44 AS col1
----
41
44

skipif mysql # not compatible
query II rowsort label-1865
SELECT SUM ( 41 ), 44 AS col1
----
41
44

query I rowsort
SELECT + 36 * + 43 * - 51 AS col2
----
-78948

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1867
SELECT ALL COUNT( - 82 ) AS col1, + 46 / + + 99 / - 13 * + CAST( NULL AS DECIMAL ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1867
SELECT ALL COUNT ( - 82 ) AS col1, + 46 / + + 99 / - 13 * + CAST ( NULL AS REAL ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + SUM( - 60 ) - 42 col1
----
-102

skipif mysql # not compatible
query I rowsort label-1868
SELECT + SUM ( - 60 ) - 42 col1
----
-102

query I rowsort
SELECT + 12 * 20 * + - 27 col1
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + 17 + CASE - 78 WHEN + 52 * - - 19 THEN - SUM( DISTINCT - - 11 ) + + CASE + + NULLIF ( - COUNT( * ), + COALESCE ( - 99, + NULLIF ( 0, 1 ) * - 68 ) ) WHEN COALESCE ( - - 45, - COUNT( * ) ) * + - 92 + 96 THEN 40 END * - 15 - + + 55 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT + 17 + CASE - 78 WHEN + 52 * - - 19 THEN - SUM ( DISTINCT - - 11 ) + + CASE + + NULLIF ( - COUNT ( * ), + COALESCE ( - 99, + NULLIF ( 0, 1 ) * - 68 ) ) WHEN COALESCE ( - - 45, - COUNT ( * ) ) * + - 92 + 96 THEN 40 END * - 15 - + + 55 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 76 * ( - 86 ) AS col1
----
-6536

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - COUNT( + 8 ) * 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1872
SELECT - COUNT ( + 8 ) * 80 AS col2
----
-80

query I rowsort
SELECT + 94 + + + 18
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1874
SELECT + 70 + + 56 col2, + COUNT( * ) DIV 49
----
126
0

skipif mysql # not compatible
query II rowsort label-1874
SELECT + 70 + + 56 col2, + COUNT ( * ) / 49
----
126
0

query I rowsort
SELECT ALL + 72 + + 18
----
90

query I rowsort
SELECT DISTINCT + 50 + - 46 col1
----
4

query I rowsort
SELECT ALL - + 80 + + 77 + 54 + - + 73 AS col1
----
-22

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

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + ( + COUNT ( * ) ) + + 36 AS col2
----
37

query I rowsort
SELECT - 5 + - 64
----
-69

query I rowsort
SELECT - 18 + 94 + + 8 * - - 26
----
284

query I rowsort
SELECT - 32 + - - 57 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL + 56 + 98 + + CAST( NULL AS SIGNED ) - - 4 * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + 56 + 98 + + CAST ( NULL AS INTEGER ) - - 4 * 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1883
SELECT - 71 * + 71, 79 * NULLIF ( + 44, COALESCE ( 11, + ( 42 ), + - 17 / + - 97 * - + CAST( + - 48 AS SIGNED ) * - - 98, + CAST( NULL AS SIGNED ) / + ( - 39 ) ) ) + + 5 + - 50 + 10 AS col2
----
-5041
3441

skipif mysql # not compatible
query II rowsort label-1883
SELECT - 71 * + 71, 79 * NULLIF ( + 44, COALESCE ( 11, + ( 42 ), + - 17 / + - 97 * - + CAST ( + - 48 AS INTEGER ) * - - 98, + CAST ( NULL AS INTEGER ) / + ( - 39 ) ) ) + + 5 + - 50 + 10 AS col2
----
-5041
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT - - 45 * - COUNT( + + 65 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1884
SELECT - - 45 * - COUNT ( + + 65 ) AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT DISTINCT + 7 DIV 79 * + 52 col2
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + 7 / 79 * + 52 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT - + 85 * + + 5 + - - 66, 49 + - + COALESCE ( 85, - + 31, - MAX( + - 33 ) ) AS col1
----
-359
-36

skipif mysql # not compatible
query II rowsort label-1886
SELECT - + 85 * + + 5 + - - 66, 49 + - + COALESCE ( 85, - + 31, - MAX ( + - 33 ) ) AS col1
----
-359
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT DISTINCT - + SUM( 56 ) * + ( - CAST( - - 34 AS SIGNED ) ) AS col1
----
1904

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - + SUM ( 56 ) * + ( - CAST ( - - 34 AS INTEGER ) ) AS col1
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL - - 83 / - 84 - + - CASE - 74 WHEN 34 + + 70 + + 84 * - - ( 92 ) THEN 27 ELSE NULL END + 52 * - CASE + 34 WHEN - 48 + 30 THEN NULLIF ( + 6, 52 / - - 19 / + CASE - - 52 WHEN 95 - + + 11 / + - 18 - 6 THEN NULL WHEN + 56 + 26 * - + COUNT( * ) THEN + 84 - + - ( + 11 ) + + 55 ELSE NULL END ) * - ( 92 ) - - 81 ELSE 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL - - 83 / - 84 - + - CASE - 74 WHEN 34 + + 70 + + 84 * - - ( 92 ) THEN 27 ELSE NULL END + 52 * - CASE + 34 WHEN - 48 + 30 THEN NULLIF ( + 6, 52 / - - 19 / + CASE - - 52 WHEN 95 - + + 11 / + - 18 - 6 THEN NULL WHEN + 56 + 26 * - + COUNT ( * ) THEN + 84 - + - ( + 11 ) + + 55 ELSE NULL END ) * - ( 92 ) - - 81 ELSE 45 END
----
NULL

query I rowsort
SELECT + NULLIF ( - - ( + 0 ), 60 * + + 18 ) AS col2
----
0

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

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

query I rowsort
SELECT 89 * 12 - + 74 + 56
----
1050

query I rowsort
SELECT + 90 + + - ( - ( + 63 ) ) * - 95 AS col0
----
-5895

query II rowsort
SELECT ALL + 83 AS col1, - 1 AS col0
----
83
-1

query I rowsort
SELECT - 60 * - 18
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + COUNT( DISTINCT + - 14 ) * + 95 + - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + COUNT ( DISTINCT + - 14 ) * + 95 + - COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + 54 + - 60 + - COALESCE ( - + COALESCE ( - 1, + 53 ), + ( + 18 ) ) + COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-1896
SELECT + 54 + - 60 + - COALESCE ( - + COALESCE ( - 1, + 53 ), + ( + 18 ) ) + COUNT ( * ) col2
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT - SUM( DISTINCT - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - SUM ( DISTINCT - - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT 17 * ( + - COUNT( ALL ( - + 75 ) ) ) + + 74 + - + 97 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1899
SELECT 17 * ( + - COUNT ( ALL ( - + 75 ) ) ) + + 74 + - + 97 AS col0
----
-40

query II rowsort
SELECT - 96, - 15 * - 89 AS col2
----
-96
1335

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1901
SELECT CAST( + - 79 AS SIGNED ) DIV + 45
----
-1

skipif mysql # not compatible
query I rowsort label-1901
SELECT CAST ( + - 79 AS INTEGER ) / + 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT 69 + - 43 - 56 + - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-1902
SELECT 69 + - 43 - 56 + - COUNT ( * )
----
-31

query I rowsort
SELECT DISTINCT 6 * 51
----
306

query I rowsort
SELECT ALL 41 * + + 72
----
2952

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT 53 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT 53 / - 74 AS col0
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - - 91, - - 50, - 52 ) + + 28 AS col0
----
119

query I rowsort
SELECT DISTINCT 32 * - 54 AS col2
----
-1728

query I rowsort
SELECT ALL 6 + 97
----
103

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

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

query II rowsort
SELECT ALL 45 AS col1, - 74 * 90
----
45
-6660

query I rowsort
SELECT DISTINCT - 18 + 75 + - - ( 90 )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT + COUNT( * ) - - 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1912
SELECT + COUNT ( * ) - - 52 AS col0
----
53

query I rowsort
SELECT ( - 6 ) - + - 23 AS col2
----
17

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

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

query I rowsort
SELECT ALL + 0 + - 69
----
-69

query I rowsort
SELECT 4 - - 96 + - 86
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + NULLIF ( + + 91, + 66 + + 93 + 43 / + COUNT( * ) + + 39 * + 75 * + ( - 41 ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1917
SELECT + NULLIF ( + + 91, + 66 + + 93 + 43 / + COUNT ( * ) + + 39 * + 75 * + ( - 41 ) ) AS col2
----
91

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1919
SELECT ( + NULLIF ( 10, + 35 + - - 83 ) ) DIV + 86, + COALESCE ( 64, ( 5 ) + - 1 + + + 50, + 6 ) AS col2
----
0
64

skipif mysql # not compatible
query II rowsort label-1919
SELECT ( + NULLIF ( 10, + 35 + - - 83 ) ) / + 86, + COALESCE ( 64, ( 5 ) + - 1 + + + 50, + 6 ) AS col2
----
0
64

query I rowsort
SELECT + 41 * + + 2 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT - MIN( + + 18 ) * - + CAST( - - COUNT( * ) AS SIGNED ) + - - 77 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1921
SELECT - MIN ( + + 18 ) * - + CAST ( - - COUNT ( * ) AS INTEGER ) + - - 77 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT 93 * + + SUM( - 15 ) + - AVG ( DISTINCT - 86 ) + + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT 93 * + + SUM ( - 15 ) + - AVG ( DISTINCT - 86 ) + + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 18 * + 45 AS col1
----
810

query I rowsort
SELECT 28 * - 16 * - 22
----
9856

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ALL - MIN( ALL + 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL - MIN ( ALL + 60 ) AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT ALL - 21 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - 21 / - 31
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1928
SELECT 18 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 49 + 56
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT COUNT( * ) * + 46 DIV + SUM( ALL - - 1 ) + + + 83 * 26 AS col2
----
2204

skipif mysql # not compatible
query I rowsort label-1930
SELECT COUNT ( * ) * + 46 / + SUM ( ALL - - 1 ) + + + 83 * 26 AS col2
----
2204

query I rowsort
SELECT ALL + 22 * - 77 AS col0
----
-1694

query I rowsort
SELECT 43 + - - 6 * 78
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - MAX( DISTINCT - ( - 65 ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - MAX ( DISTINCT - ( - 65 ) ) AS col2
----
-65

query I rowsort
SELECT DISTINCT 0 + + + 20 + 1 AS col2
----
21

query I rowsort
SELECT ALL 58 + + 15 - - COALESCE ( - COALESCE ( 53, - 68 ), + 67 * 93 * + 83 + 11 ) - + 37 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT ALL - COUNT( * ) + - 30 AS col2, + 85 + 2
----
-31
87

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL - COUNT ( * ) + - 30 AS col2, + 85 + 2
----
-31
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT 50 * + + MIN( - 35 ) * 34 - COUNT( * ) AS col1
----
-59501

skipif mysql # not compatible
query I rowsort label-1937
SELECT 50 * + + MIN ( - 35 ) * 34 - COUNT ( * ) AS col1
----
-59501

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL + COUNT( - - 73 ) + - 74 * 33 + - 77 AS col0
----
-2518

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + COUNT ( - - 73 ) + - 74 * 33 + - 77 AS col0
----
-2518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1940
SELECT ALL - - NULLIF ( + CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ), - - 35 ) + COALESCE ( 20, 83, + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - - NULLIF ( + CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ), - - 35 ) + COALESCE ( 20, 83, + 22 )
----
NULL

query I rowsort
SELECT + ( NULLIF ( + ( + 40 ), + 1 ) )
----
40

query I rowsort
SELECT + 40 + - 69
----
-29

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

query I rowsort
SELECT + NULLIF ( + 87, + ( + 88 ) / - + 83 ) * - NULLIF ( + 37, - - 69 + - 55 + + - 59 * - + 33 ) AS col1
----
-3219

query I rowsort
SELECT ALL + 40 * - ( - ( + 78 ) )
----
3120

query I rowsort
SELECT 49 + + 97 AS col2
----
146

query I rowsort
SELECT ALL - 29 - 54 - - 11
----
-72

query I rowsort
SELECT ALL ( - 49 ) - + 9
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1949
SELECT ALL + 57 DIV 42 + + 43 + + COUNT( * ) * + 15 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + 57 / 42 + + 43 + + COUNT ( * ) * + 15 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT + SUM( - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-1950
SELECT + SUM ( - + 6 )
----
-6

query I rowsort
SELECT NULLIF ( 32, + 56 ) + - 14
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT ALL + CASE - 62 WHEN 80 - AVG ( + - 17 ) * COUNT( * ) * + 77 THEN NULL ELSE - 77 END - - 32 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + CASE - 62 WHEN 80 - AVG ( + - 17 ) * COUNT ( * ) * + 77 THEN NULL ELSE - 77 END - - 32 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + 42 * - + 50 + - 1 + COUNT( * ) AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-1953
SELECT + 42 * - + 50 + - 1 + COUNT ( * ) AS col1
----
-2100

query I rowsort
SELECT + 16 + - 38
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT COALESCE ( - + 43, - 98 + 15 + ( - COUNT( * ) ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1955
SELECT COALESCE ( - + 43, - 98 + 15 + ( - COUNT ( * ) ) ) AS col1
----
-43

query I rowsort
SELECT + 30 + - + 49
----
-19

query I rowsort
SELECT - 39 * - 37 AS col0
----
1443

query I rowsort
SELECT 29 + + 34 + + 5
----
68

query I rowsort
SELECT 22 * + 1 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL - COUNT( * ) * - 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL - COUNT ( * ) * - 76 AS col0
----
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT - 89 * - ( + COUNT( * ) ) + + NULLIF ( 53, + 91 * - COUNT( DISTINCT + CAST( 24 AS SIGNED ) ) * - 39 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-1962
SELECT - 89 * - ( + COUNT ( * ) ) + + NULLIF ( 53, + 91 * - COUNT ( DISTINCT + CAST ( 24 AS INTEGER ) ) * - 39 ) AS col1
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-1963
SELECT 53 DIV + - ( 23 ) + - + 30 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1963
SELECT 53 / + - ( 23 ) + - + 30 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1964
SELECT ALL + 33 * NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ) + + + 79, + 41 + 75 * + + 65 - - + 40 AS col0
----
NULL
4956

skipif mysql # not compatible
query II rowsort label-1964
SELECT ALL + 33 * NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) + + + 79, + 41 + 75 * + + 65 - - + 40 AS col0
----
NULL
4956

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - 26 * 12 + ( - - COUNT( * ) ) + - + SUM( ALL - 5 ) AS col1
----
-306

skipif mysql # not compatible
query I rowsort label-1965
SELECT - 26 * 12 + ( - - COUNT ( * ) ) + - + SUM ( ALL - 5 ) AS col1
----
-306

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT + 71 DIV - - 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-1966
SELECT + 71 / - - 98 col1
----
0

query I rowsort
SELECT ALL - 23 * + 37 + + + 89 + 35 * + 87 AS col2
----
2283

query II rowsort
SELECT DISTINCT + 85 AS col1, - 76
----
85
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT COUNT( * ) * 93 + + - 49
----
44

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT COUNT ( * ) * 93 + + - 49
----
44

query I rowsort
SELECT ALL 0 * - - 80 * 80 + 73 * - 87 AS col2
----
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT - + 7 + + COUNT( ALL + 20 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT - + 7 + + COUNT ( ALL + 20 ) AS col2
----
-6

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

query I rowsort
SELECT ALL - - 82 * + - 17 AS col1
----
-1394

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT - 94 + + MAX( ALL + 71 ) AS col1, + 32 * + + 26 AS col1
----
-23
832

skipif mysql # not compatible
query II rowsort label-1974
SELECT - 94 + + MAX ( ALL + 71 ) AS col1, + 32 * + + 26 AS col1
----
-23
832

query I rowsort
SELECT ALL + + 77 - + 10 - + 83
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT DISTINCT - + 15 * MAX( - 88 ) * + SUM( DISTINCT - 35 ) + - + 80 col1
----
-46280

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT - + 15 * MAX ( - 88 ) * + SUM ( DISTINCT - 35 ) + - + 80 col1
----
-46280

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

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT - CAST ( + 5 AS INTEGER ) AS col2
----
-5

query I rowsort
SELECT DISTINCT - 66 * + - 10
----
660

query II rowsort
SELECT DISTINCT - 15 AS col2, 84 AS col1
----
-15
84

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

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL NULLIF ( - 66, + COUNT ( * ) ) AS col1
----
-66

query II rowsort
SELECT + - 73 * + 7 * - 5 * - 25 * - - 51 + - + 2 * - 43 * - 0 col0, - 43 * - 16 AS col1
----
-3257625
688

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT ALL - 67 DIV 31
----
-2

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - 67 / 31
----
-2

query I rowsort
SELECT - 67 + - 8
----
-75

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

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) + 51
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT + CASE 22 WHEN - + COUNT( * ) THEN + 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + CASE 22 WHEN - + COUNT ( * ) THEN + 20 END AS col0
----
NULL

query I rowsort
SELECT ALL - 66 + 6 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1987
SELECT DISTINCT + NULLIF ( - - 9, + + 94 ) * 97 - - 44 + 60 DIV - 37 + COUNT( * ) + CAST( + - 76 AS SIGNED ) + 37 DIV - + 50
----
841

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT + NULLIF ( - - 9, + + 94 ) * 97 - - 44 + 60 / - 37 + COUNT ( * ) + CAST ( + - 76 AS INTEGER ) + 37 / - + 50
----
841

query II rowsort
SELECT - 25 * 71 AS col1, + 12
----
-1775
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT - CASE - 13 WHEN 87 + - - 64 * + - COUNT( * ) / - 98 THEN - CASE - COUNT( * ) WHEN - 98 * + 47 - - COUNT( * ) + + 49 + 66 THEN NULL ELSE 30 END END / - - 11 + - CASE - COUNT( * ) WHEN + 50 + 68 + + ( - 1 ) / - 87 THEN + + MIN( + 33 ) ELSE + 50 END + + ( - 39 ) * + ( - 56 ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT - CASE - 13 WHEN 87 + - - 64 * + - COUNT ( * ) / - 98 THEN - CASE - COUNT ( * ) WHEN - 98 * + 47 - - COUNT ( * ) + + 49 + 66 THEN NULL ELSE 30 END END / - - 11 + - CASE - COUNT ( * ) WHEN + 50 + 68 + + ( - 1 ) / - 87 THEN + + MIN ( + 33 ) ELSE + 50 END + + ( - 39 ) * + ( - 56 ) + 78
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT + COUNT ( * ) / 61 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1991
SELECT ALL COUNT( * ) DIV NULLIF ( 75, + 99 * + COUNT( * ) * MIN( + 95 ) ) * + COUNT( * ) + + 60 AS col0, ( CAST( NULL AS SIGNED ) )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-1991
SELECT ALL COUNT ( * ) / NULLIF ( 75, + 99 * + COUNT ( * ) * MIN ( + 95 ) ) * + COUNT ( * ) + + 60 AS col0, ( CAST ( NULL AS INTEGER ) )
----
60
NULL

query I rowsort
SELECT - 22 * ( + 75 ) * - + 74 + + - ( 39 ) + + 92 AS col0
----
122153

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

query I rowsort
SELECT 67 * - 83 + + 2
----
-5559

query II rowsort
SELECT ALL + 88 AS col0, 91 AS col0
----
88
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL 59 * 29 + COUNT( * ) AS col1
----
1712

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL 59 * 29 + COUNT ( * ) AS col1
----
1712

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1998
SELECT ALL + 98, CAST( - - 38 AS SIGNED ) AS col2
----
98
38

skipif mysql # not compatible
query II rowsort label-1998
SELECT ALL + 98, CAST ( - - 38 AS INTEGER ) AS col2
----
98
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT DISTINCT 53 * - - 1 * CAST( - + ( - 27 ) AS SIGNED ) + - 67 + - - 56
----
1420

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT 53 * - - 1 * CAST ( - + ( - 27 ) AS INTEGER ) + - 67 + - - 56
----
1420

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

skipif mysql # not compatible
query I rowsort label-2000
SELECT 59 * 56 + + - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT 41 ) AS col1
----
NULL

query I rowsort
SELECT + + 67 + + + 12 AS col0
----
79

query I rowsort
SELECT + - 92 + + 49 + + 50 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + + 18 * - 13 * - MIN( 21 ) - COUNT( * )
----
4913

skipif mysql # not compatible
query I rowsort label-2003
SELECT + + 18 * - 13 * - MIN ( 21 ) - COUNT ( * )
----
4913

query II rowsort
SELECT - 9 AS col2, + 81 * + 59 + - 26 + - CASE - 50 WHEN - 91 THEN NULL WHEN ( - 66 ) + 76 THEN - 7 * + 63 - 99 END AS col0
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT 26 * + 99 + - - ( - COUNT( * ) ) + + - 71 * + MAX( ALL + 93 ) + COUNT( * )
----
-4029

skipif mysql # not compatible
query I rowsort label-2005
SELECT 26 * + 99 + - - ( - COUNT ( * ) ) + + - 71 * + MAX ( ALL + 93 ) + COUNT ( * )
----
-4029

query I rowsort
SELECT ALL - 8 * - 44 + + 0 - + - 2 * + 3 - - 95 * + + 87
----
8623

query I rowsort
SELECT + 2 * + 61 AS col2
----
122

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT + 11 DIV - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2009
SELECT + 11 / - 16 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + 15 * + - MAX( DISTINCT - 74 ) AS col1
----
1110

skipif mysql # not compatible
query I rowsort label-2010
SELECT + 15 * + - MAX ( DISTINCT - 74 ) AS col1
----
1110

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT ALL + 91 col2, - 95 * - COUNT( * ) AS col0
----
91
95

skipif mysql # not compatible
query II rowsort label-2012
SELECT ALL + 91 col2, - 95 * - COUNT ( * ) AS col0
----
91
95

query I rowsort
SELECT - - 91 + 61
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - + COUNT( * ) + + 38 col2
----
37

skipif mysql # not compatible
query I rowsort label-2014
SELECT - + COUNT ( * ) + + 38 col2
----
37

query I rowsort
SELECT ALL - + 62 * - ( + 80 ) AS col0
----
4960

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

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

query I rowsort
SELECT ALL - 36 + 54 + - - 85 * - - 4 AS col0
----
358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT + CASE - 32 WHEN + 47 THEN + 12 + + 44 ELSE ( - 97 ) * - - 40 + - 31 END * + 3 / CAST( NULL AS SIGNED ) + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT + CASE - 32 WHEN + 47 THEN + 12 + + 44 ELSE ( - 97 ) * - - 40 + - 31 END * + 3 / CAST ( NULL AS INTEGER ) + + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL + - MIN( 29 ) + - + 88 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL + - MIN ( 29 ) + - + 88 AS col2
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2020
SELECT 47 + - + 37 - COALESCE ( 68, - 37 * + 24 DIV - - COALESCE ( + 21, + 92 * 62 ) + - 80 ) + - 60 - + 0 * + - CAST( - + NULLIF ( 99, + - 89 ) AS SIGNED ) + + COUNT( * ) * + NULLIF ( + + 28, 65 ) + + 34 DIV - 96 * - ( - - 47 ) + 76
----
-14

skipif mysql # not compatible
query I rowsort label-2020
SELECT 47 + - + 37 - COALESCE ( 68, - 37 * + 24 / - - COALESCE ( + 21, + 92 * 62 ) + - 80 ) + - 60 - + 0 * + - CAST ( - + NULLIF ( 99, + - 89 ) AS INTEGER ) + + COUNT ( * ) * + NULLIF ( + + 28, 65 ) + + 34 / - 96 * - ( - - 47 ) + 76
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT - 53 + + 86 - - 6 + + - 69 * + COUNT( * ) * - COUNT( 48 ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - 53 + + 86 - - 6 + + - 69 * + COUNT ( * ) * - COUNT ( 48 ) AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT 28 * + CAST( NULL AS SIGNED ) * - 49 * 49 * - + 26 / + 19 * 11 * + + 47 * 29 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT 28 * + CAST ( NULL AS INTEGER ) * - 49 * 49 * - + 26 / + 19 * 11 * + + 47 * 29 * + 85
----
NULL

query I rowsort
SELECT DISTINCT + 81 + 19 col0
----
100

query I rowsort
SELECT 43 + + - 43 - - 58 * 10
----
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2025
SELECT COUNT( * ) DIV - 98 AS col0, - 39
----
0
-39

skipif mysql # not compatible
query II rowsort label-2025
SELECT COUNT ( * ) / - 98 AS col0, - 39
----
0
-39

query I rowsort
SELECT ALL 42 * + + 34
----
1428

query I rowsort
SELECT DISTINCT + 72 * - ( 62 ) AS col0
----
-4464

query I rowsort
SELECT ALL + 63 * + 96 * + 7
----
42336

query I rowsort
SELECT + 42 * - 29 + 63
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT SUM( - 65 ) * + 44 AS col2
----
-2860

skipif mysql # not compatible
query I rowsort label-2030
SELECT SUM ( - 65 ) * + 44 AS col2
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL 82 - COUNT( ALL - 16 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL 82 - COUNT ( ALL - 16 ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT CAST( NULL AS SIGNED ) / - 93 + - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT CAST ( NULL AS INTEGER ) / - 93 + - + 54
----
NULL

query I rowsort
SELECT ALL + 1 * - 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - ( - COALESCE ( COUNT( * ), + CASE - + 98 WHEN + - CASE WHEN NOT NULL NOT IN ( + 0, + 88 ) THEN NULL ELSE + COUNT( * ) * 6 * 10 - + AVG ( - + ( + NULLIF ( - 87, + 14 ) ) ) + + 53 * - + 27 END THEN NULL WHEN + - 35 THEN NULL ELSE - 55 END + + 72, 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2034
SELECT - ( - COALESCE ( COUNT ( * ), + CASE - + 98 WHEN + - CASE WHEN NOT NULL NOT IN ( + 0, + 88 ) THEN NULL ELSE + COUNT ( * ) * 6 * 10 - + AVG ( - + ( + NULLIF ( - 87, + 14 ) ) ) + + 53 * - + 27 END THEN NULL WHEN + - 35 THEN NULL ELSE - 55 END + + 72, 8 ) )
----
1

query I rowsort
SELECT ( + 62 ) * - + 23 + - 71 AS col1
----
-1497

query I rowsort
SELECT ALL ( - 81 ) * + 96 AS col0
----
-7776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2037
SELECT COUNT( * ) * - - COUNT( ALL - - 10 ) DIV - - ( 88 ) AS col0, + 98 * - 32 + - ( + 14 ) - + - 52 * + 55 AS col1
----
0
-290

skipif mysql # not compatible
query II rowsort label-2037
SELECT COUNT ( * ) * - - COUNT ( ALL - - 10 ) / - - ( 88 ) AS col0, + 98 * - 32 + - ( + 14 ) - + - 52 * + 55 AS col1
----
0
-290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT - ( + - NULLIF ( + 99, 5 + + 25 ) ) * - COUNT( * ) + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT - ( + - NULLIF ( + 99, 5 + + 25 ) ) * - COUNT ( * ) + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 0 * 11
----
0

query I rowsort
SELECT - - NULLIF ( ( + 76 ), + + 89 )
----
76

query I rowsort
SELECT ALL - ( 72 ) * + ( - + 92 )
----
6624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2042
SELECT ALL MIN( DISTINCT - ( + + 43 ) ), - NULLIF ( MAX( + CAST( NULL AS DECIMAL ) ), - 60 ) * 20 AS col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-2042
SELECT ALL MIN ( DISTINCT - ( + + 43 ) ), - NULLIF ( MAX ( + CAST ( NULL AS REAL ) ), - 60 ) * 20 AS col0
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL COUNT( * ) + - 83 + 78
----
-4

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL COUNT ( * ) + - 83 + 78
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT - 7 + COALESCE ( + 89, + 38 * 3 + - COUNT( * ) * + CAST( - 22 AS SIGNED ) * - - 37 - 74, 40 ) * 81 AS col1
----
7202

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - 7 + COALESCE ( + 89, + 38 * 3 + - COUNT ( * ) * + CAST ( - 22 AS INTEGER ) * - - 37 - 74, 40 ) * 81 AS col1
----
7202

query II rowsort
SELECT ALL - 85 + 14 AS col0, 32 AS col1
----
-71
32

query II rowsort
SELECT 73 * + - 14, 31 AS col2
----
-1022
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT - SUM( NULLIF ( + 54, 77 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2047
SELECT - SUM ( NULLIF ( + 54, 77 ) ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT 75 + - + CAST( + 69 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-2048
SELECT 75 + - + CAST ( + 69 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2049
SELECT DISTINCT 61 AS col2, + COUNT( * ) DIV - 49 * + 32 AS col1
----
61
0

skipif mysql # not compatible
query II rowsort label-2049
SELECT DISTINCT 61 AS col2, + COUNT ( * ) / - 49 * + 32 AS col1
----
61
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT ALL - ( - CASE - 41 WHEN - - 10 THEN NULL WHEN 93 * - 66 THEN NULL ELSE COUNT( * ) END ) + + 89 DIV 3 * ( 19 ) AS col1
----
552

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - ( - CASE - 41 WHEN - - 10 THEN NULL WHEN 93 * - 66 THEN NULL ELSE COUNT ( * ) END ) + + 89 / 3 * ( 19 ) AS col1
----
552

query II rowsort
SELECT 28 - + - ( - 75 ) AS col2, + 45 AS col0
----
-47
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2052
SELECT - 15 col2, - COUNT( * ) + + + MIN( + + CASE + - 56 WHEN - NULLIF ( + 16, + ( 70 ) ) - - 27 THEN NULL ELSE - 42 END ) + + CAST( + 13 AS SIGNED ) * 75 - ( - 7 ) AS col0
----
-15
939

skipif mysql # not compatible
query II rowsort label-2052
SELECT - 15 col2, - COUNT ( * ) + + + MIN ( + + CASE + - 56 WHEN - NULLIF ( + 16, + ( 70 ) ) - - 27 THEN NULL ELSE - 42 END ) + + CAST ( + 13 AS INTEGER ) * 75 - ( - 7 ) AS col0
----
-15
939

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL + 3 + + - COUNT( * ) + - - 40
----
42

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + 3 + + - COUNT ( * ) + - - 40
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ( + + ( - 9 ) ) + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-2054
SELECT ( + + ( - 9 ) ) + + COUNT ( * )
----
-8

query II rowsort
SELECT 32 AS col0, 54 AS col0
----
32
54

query II rowsort
SELECT DISTINCT 72 AS col0, + 71 AS col2
----
72
71

query I rowsort
SELECT ALL - 31 + - 89 AS col2
----
-120

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

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL MAX ( - - 53 )
----
53

query II rowsort
SELECT DISTINCT 87, - 82 AS col2
----
87
-82

query I rowsort
SELECT 46 + 83 + - - 47
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + 38 * - ( 48 ) * - 6 - + 94 - + SUM( ALL 56 ) + + 51 * - + 83 * + ( 76 )
----
-310914

skipif mysql # not compatible
query I rowsort label-2061
SELECT + 38 * - ( 48 ) * - 6 - + 94 - + SUM ( ALL 56 ) + + 51 * - + 83 * + ( 76 )
----
-310914

query I rowsort
SELECT 52 * - 70
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT COUNT( DISTINCT + - 57 ) * - 32
----
-32

skipif mysql # not compatible
query I rowsort label-2063
SELECT COUNT ( DISTINCT + - 57 ) * - 32
----
-32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT 62 + - 70 * - - ( - 74 ) * + CASE + 22 WHEN 56 * + 84 THEN NULL WHEN + + ( 68 ) THEN - 2 DIV - 41 - + 39 ELSE 18 + - - COALESCE ( - 7, 70 DIV + 57 ) * + 21 * - + NULLIF ( - - 57, + 69 ) END + + - 26
----
43496496

skipif mysql # not compatible
query I rowsort label-2065
SELECT 62 + - 70 * - - ( - 74 ) * + CASE + 22 WHEN 56 * + 84 THEN NULL WHEN + + ( 68 ) THEN - 2 / - 41 - + 39 ELSE 18 + - - COALESCE ( - 7, 70 / + 57 ) * + 21 * - + NULLIF ( - - 57, + 69 ) END + + - 26
----
43496496

query II rowsort
SELECT + 46 AS col2, 24 + + 71 + 90 AS col0
----
46
185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT COUNT( * ) * + COUNT( * ) * 40 + - + 30
----
10

skipif mysql # not compatible
query I rowsort label-2068
SELECT COUNT ( * ) * + COUNT ( * ) * 40 + - + 30
----
10

query II rowsort
SELECT ALL - 7, + 2 * 88 AS col0
----
-7
176

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

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

query I rowsort
SELECT 78 * + + 27
----
2106

query II rowsort
SELECT + 57 AS col0, 78
----
57
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2073
SELECT ALL - - 8 DIV + 42 * - + 20 * 97 + 78 + + 82 + - 32 * + COALESCE ( + + 94, 79 * + - CAST( NULL AS SIGNED ) DIV 79 * + 53 * + NULLIF ( - COUNT( * ), - 80 DIV + ( - 6 ) ) - - MAX( ALL - 28 ) + 73 + + 65 )
----
-2848

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - - 8 / + 42 * - + 20 * 97 + 78 + + 82 + - 32 * + COALESCE ( + + 94, 79 * + - CAST ( NULL AS INTEGER ) / 79 * + 53 * + NULLIF ( - COUNT ( * ), - 80 / + ( - 6 ) ) - - MAX ( ALL - 28 ) + 73 + + 65 )
----
-2848

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT DISTINCT - + CAST( 18 AS SIGNED ) * - SUM( ALL + 46 ) * 92
----
76176

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT - + CAST ( 18 AS INTEGER ) * - SUM ( ALL + 46 ) * 92
----
76176

query I rowsort
SELECT ALL + - 95 * - 26 AS col1
----
2470

query I rowsort
SELECT + 87 * - 11 + - 29 + 66 * 55
----
2644

onlyif mysql # aggregate syntax: 
query II rowsort label-2078
SELECT 68, - COUNT( ALL + 28 ) AS col0
----
68
-1

skipif mysql # not compatible
query II rowsort label-2078
SELECT 68, - COUNT ( ALL + 28 ) AS col0
----
68
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT 52 * 68 + - 50 - 74 DIV + COALESCE ( + 71, + 10 )
----
3485

skipif mysql # not compatible
query I rowsort label-2079
SELECT 52 * 68 + - 50 - 74 / + COALESCE ( + 71, + 10 )
----
3485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT COUNT( * ) DIV - 72 + 95 * - 50 * 96 + + 87 AS col0
----
-455913

skipif mysql # not compatible
query I rowsort label-2080
SELECT COUNT ( * ) / - 72 + 95 * - 50 * 96 + + 87 AS col0
----
-455913

query I rowsort
SELECT ALL - + 83 + 37
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT - 74 * - NULLIF ( + 74, - 22 ) - - - 69 + + COUNT( * )
----
5408

skipif mysql # not compatible
query I rowsort label-2082
SELECT - 74 * - NULLIF ( + 74, - 22 ) - - - 69 + + COUNT ( * )
----
5408

query I rowsort
SELECT + 67 * - + 52 AS col0
----
-3484

query I rowsort
SELECT - 6 + - 28 * - - 67
----
-1882

query II rowsort
SELECT + + 16 AS col1, 70 + + 81 AS col1
----
16
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT 18 + - 7 - + ( + COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-2086
SELECT 18 + - 7 - + ( + COUNT ( * ) )
----
10

query I rowsort
SELECT - - 6 * + - 13 + + 36 + - + 3 * - 83
----
207

query I rowsort
SELECT ALL + 94 + + 70
----
164

query I rowsort
SELECT DISTINCT - - 41 + - - 6
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT DISTINCT + NULLIF ( + 94, + COALESCE ( + MIN( + 48 ), + - 88 * + 62 ) * - 65 + - 7 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + NULLIF ( + 94, + COALESCE ( + MIN ( + 48 ), + - 88 * + 62 ) * - 65 + - 7 ) AS col0
----
94

query I rowsort
SELECT ALL 86 + + - 34
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT 8 * - 91 + 39 + + NULLIF ( 60, 37 - - SUM( DISTINCT + ( NULLIF ( + - 49, 90 ) ) ) ) * 63 + + 7 AS col1
----
3098

skipif mysql # not compatible
query I rowsort label-2092
SELECT 8 * - 91 + 39 + + NULLIF ( 60, 37 - - SUM ( DISTINCT + ( NULLIF ( + - 49, 90 ) ) ) ) * 63 + + 7 AS col1
----
3098

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT ALL - 3 + - 57 * + COUNT( * ) + - 71 + - 66 AS col0
----
-197

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - 3 + - 57 * + COUNT ( * ) + - 71 + - 66 AS col0
----
-197

query I rowsort
SELECT DISTINCT 35 + + + 33 * + 1 + 72 * + 59 * + 94 + - - 37 AS col2
----
399417

query II rowsort
SELECT DISTINCT 78 * + + 89 AS col0, - 92 col2
----
6942
-92

query I rowsort
SELECT ALL - 36 - 80
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2097
SELECT + 24 + - CAST( NULL AS SIGNED ) * - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT + 24 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT 65 DIV 40 * - - 23 * + - 43 AS col0
----
-989

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT 65 / 40 * - - 23 * + - 43 AS col0
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT - 77 + + 48 + + + COUNT( * ) * + CASE - 5 WHEN ( - 36 ) THEN + 0 * 67 + 19 - + - 47 + - + 2 ELSE NULL END + 47 + 53 * + 41 + + ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT - 77 + + 48 + + + COUNT ( * ) * + CASE - 5 WHEN ( - 36 ) THEN + 0 * 67 + 19 - + - 47 + - + 2 ELSE NULL END + 47 + 53 * + 41 + + ( 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL MAX( DISTINCT 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL MAX ( DISTINCT 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT + MIN( - 26 ) * - SUM( 34 )
----
884

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + MIN ( - 26 ) * - SUM ( 34 )
----
884

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

query II rowsort
SELECT ( + 16 ), - 85 AS col0
----
16
-85

query I rowsort
SELECT - 35 * + 46 * - - COALESCE ( - 88, - 25 ) AS col1
----
141680

query I rowsort
SELECT - 27 * ( + 91 ) + - + 99 AS col2
----
-2556

query I rowsort
SELECT + - 44 * - 54
----
2376

query I rowsort
SELECT + 39 * - - 24 * 47 + - ( + 15 )
----
43977

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT - SUM( + - ( 99 ) ) * 41 * - 81 col2
----
-328779

skipif mysql # not compatible
query I rowsort label-2108
SELECT - SUM ( + - ( 99 ) ) * 41 * - 81 col2
----
-328779

query I rowsort
SELECT - 95 - + 94 AS col0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT + 81 * + - 95 + - - 50 * CASE 53 WHEN + 33 THEN - 63 + + COUNT( * ) - + + ( - + 21 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT + 81 * + - 95 + - - 50 * CASE 53 WHEN + 33 THEN - 63 + + COUNT ( * ) - + + ( - + 21 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL - - ( - + 6 ) * 66 + + - COUNT( * ) + + COUNT( - 81 ) AS col1
----
-396

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - - ( - + 6 ) * 66 + + - COUNT ( * ) + + COUNT ( - 81 ) AS col1
----
-396

query I rowsort
SELECT ALL - - 93 * - 44 + + + 61
----
-4031

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT - - 12 * + COALESCE ( - 15, - 39 * + COUNT( * ) ) - - 44
----
-136

skipif mysql # not compatible
query I rowsort label-2113
SELECT - - 12 * + COALESCE ( - 15, - 39 * + COUNT ( * ) ) - - 44
----
-136

query I rowsort
SELECT DISTINCT - 7 * 72 * + 67
----
-33768

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT - + 79 * - - 97 AS col0, MIN( ALL + + 59 )
----
-7663
59

skipif mysql # not compatible
query II rowsort label-2115
SELECT - + 79 * - - 97 AS col0, MIN ( ALL + + 59 )
----
-7663
59

query I rowsort
SELECT ALL - + 88 * - - NULLIF ( - - 79, + 43 + - - 48 )
----
-6952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT AVG ( CASE + 88 WHEN + 28 THEN NULL WHEN - 89 THEN + - CAST( NULL AS SIGNED ) + 55 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT AVG ( CASE + 88 WHEN + 28 THEN NULL WHEN - 89 THEN + - CAST ( NULL AS INTEGER ) + 55 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2118
SELECT - - SUM( DISTINCT - 77 ) DIV 75 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2118
SELECT - - SUM ( DISTINCT - 77 ) / 75 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - 93 * + + CASE - - 30 WHEN - - 81 THEN 92 * + + 57 + - - COUNT( * ) - + - 41 + - + 7 / + COUNT( * ) WHEN 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT - 93 * + + CASE - - 30 WHEN - - 81 THEN 92 * + + 57 + - - COUNT ( * ) - + - 41 + - + 7 / + COUNT ( * ) WHEN 90 THEN NULL END
----
NULL

query I rowsort
SELECT CASE AVG ( + 80 ) WHEN + + 82 THEN NULL ELSE 99 END AS col1
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2121
SELECT - CAST( NULL AS DECIMAL ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT - CAST ( NULL AS REAL ) * 49
----
NULL

query II rowsort
SELECT - - 18 * - 43, + 67 col1
----
-774
67

query II rowsort
SELECT ALL ( + ( - + 31 ) ) AS col0, + 13 - - ( - + 33 ) * 86
----
-31
-2825

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT SUM( ALL - + 91 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-2124
SELECT SUM ( ALL - + 91 ) col0
----
-91

query I rowsort
SELECT DISTINCT - ( - 70 ) - + 45
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2126
SELECT DISTINCT 78 * - ( - CAST( - AVG ( DISTINCT - - 69 ) AS SIGNED ) ), + ( - + COALESCE ( + 37, ( + 62 ) * COALESCE ( - 96, - 11 ) + COUNT( + 71 ) ) ) * + - 15 col0
----
-5382
555

skipif mysql # not compatible
query II rowsort label-2126
SELECT DISTINCT 78 * - ( - CAST ( - AVG ( DISTINCT - - 69 ) AS INTEGER ) ), + ( - + COALESCE ( + 37, ( + 62 ) * COALESCE ( - 96, - 11 ) + COUNT ( + 71 ) ) ) * + - 15 col0
----
-5382
555

query I rowsort
SELECT + 83 * 15 * ( - 29 ) AS col2
----
-36105

query I rowsort
SELECT - 13 * + 70 AS col2
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - SUM( DISTINCT - 98 ) + 93
----
191

skipif mysql # not compatible
query I rowsort label-2129
SELECT - SUM ( DISTINCT - 98 ) + 93
----
191

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2130
SELECT - ( - COUNT( DISTINCT + + 35 ) ), - ( - + NULLIF ( + COUNT( - 24 ), - 5 * - 2 ) ) DIV + 60 + - 46 AS col2
----
1
-46

skipif mysql # not compatible
query II rowsort label-2130
SELECT - ( - COUNT ( DISTINCT + + 35 ) ), - ( - + NULLIF ( + COUNT ( - 24 ), - 5 * - 2 ) ) / + 60 + - 46 AS col2
----
1
-46

query I rowsort
SELECT ALL 59 * 27
----
1593

query I rowsort
SELECT + 65 + 36
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT + SUM( - 10 ) * 19 AS col0
----
-190

skipif mysql # not compatible
query I rowsort label-2133
SELECT + SUM ( - 10 ) * 19 AS col0
----
-190

query I rowsort
SELECT ALL 77 * 96 * + 57
----
421344

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT MIN( DISTINCT - + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT MIN ( DISTINCT - + 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL CASE - 47 WHEN MAX( DISTINCT + 65 ) THEN MIN( ALL 43 ) - - + 32 WHEN + 73 + - - 12 + + - 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL CASE - 47 WHEN MAX ( DISTINCT + 65 ) THEN MIN ( ALL 43 ) - - + 32 WHEN + 73 + - - 12 + + - 30 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT + 5 DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2137
SELECT + 5 / + 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL 5 * - NULLIF ( + - 42, + 44 + - ( - - 18 ) ) * - COUNT( - 34 )
----
-210

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL 5 * - NULLIF ( + - 42, + 44 + - ( - - 18 ) ) * - COUNT ( - 34 )
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-2139
SELECT + - 7 DIV - 69 * + - 81
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT + - 7 / - 69 * + - 81
----
0

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

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

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

query I rowsort
SELECT DISTINCT - 22 + - 90 AS col0
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT DISTINCT 67 * - NULLIF ( - + 50, NULLIF ( + COUNT( ALL + ( + 57 ) ), - + 72 ) * - + 50 + - 79 / + 16 + 97 * - - CASE - 83 WHEN - + 87 + - 29 * + - COUNT( * ) + - - AVG ( DISTINCT 40 ) * MIN( ALL - 94 ) * + 57 * - 54 THEN CAST( NULL AS SIGNED ) END ) - - CASE - CAST( NULLIF ( 93, + CASE + 66 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 30 THEN + - 65 * 59 / 1 END ) AS SIGNED ) WHEN + 26 / + - MIN( + - 8 ) * - 56 * - 22 THEN - + 44 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT 67 * - NULLIF ( - + 50, NULLIF ( + COUNT ( ALL + ( + 57 ) ), - + 72 ) * - + 50 + - 79 / + 16 + 97 * - - CASE - 83 WHEN - + 87 + - 29 * + - COUNT ( * ) + - - AVG ( DISTINCT 40 ) * MIN ( ALL - 94 ) * + 57 * - 54 THEN CAST ( NULL AS INTEGER ) END ) - - CASE - CAST ( NULLIF ( 93, + CASE + 66 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 30 THEN + - 65 * 59 / 1 END ) AS INTEGER ) WHEN + 26 / + - MIN ( + - 8 ) * - 56 * - 22 THEN - + 44 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL - - MIN( DISTINCT 16 ) + - 49
----
-33

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - - MIN ( DISTINCT 16 ) + - 49
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT - 19 + + + 72 DIV 50 DIV + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - 19 + + + 72 / 50 / + COUNT ( * ) AS col2
----
-18

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

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

query I rowsort
SELECT ALL + + 24 + + ( 10 ) * 1
----
34

query I rowsort
SELECT NULLIF ( + 65, AVG ( ALL + + 51 ) ) * - 7 + + + 76 + 81 * - - 65 AS col0
----
4886

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

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

query I rowsort
SELECT + 4 + + 22 AS col2
----
26

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL - + CASE - COUNT( * ) WHEN + SUM( DISTINCT - 15 ) * - 22 * 72 + - + 94 THEN NULL WHEN + 29 + + + COUNT( * ) THEN + + 96 * + 4 - + + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL - + CASE - COUNT ( * ) WHEN + SUM ( DISTINCT - 15 ) * - 22 * 72 + - + 94 THEN NULL WHEN + 29 + + + COUNT ( * ) THEN + + 96 * + 4 - + + 96 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2154
SELECT ALL + - 36 - SUM( - + 57 ) + + 5 + + 35 - - + 0 * - 6 * + + 73 AS col1, - 43 col1
----
61
-43

skipif mysql # not compatible
query II rowsort label-2154
SELECT ALL + - 36 - SUM ( - + 57 ) + + 5 + + 35 - - + 0 * - 6 * + + 73 AS col1, - 43 col1
----
61
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2155
SELECT DISTINCT + CASE - 27 WHEN - + 92 * + - COUNT( * ) THEN NULL WHEN + - 92 THEN NULL WHEN - CAST( NULL AS SIGNED ) / 62 * 21 * - + ( - + 77 ) THEN + 63 END / + - 13 AS col2, CAST( 16 AS SIGNED )
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2155
SELECT DISTINCT + CASE - 27 WHEN - + 92 * + - COUNT ( * ) THEN NULL WHEN + - 92 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / 62 * 21 * - + ( - + 77 ) THEN + 63 END / + - 13 AS col2, CAST ( 16 AS INTEGER )
----
NULL
16

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

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

query II rowsort
SELECT DISTINCT 15, - 89 AS col2
----
15
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT 43 DIV + 37
----
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT 43 / + 37
----
1

query I rowsort
SELECT 82 + + 81 AS col2
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2160
SELECT ALL - 73 * - COUNT( * ) AS col2, 92 DIV + 33 AS col0, COUNT( * ) + - 8 + - 20 AS col2
----
73
2
-27

skipif mysql # not compatible
query III rowsort label-2160
SELECT ALL - 73 * - COUNT ( * ) AS col2, 92 / + 33 AS col0, COUNT ( * ) + - 8 + - 20 AS col2
----
73
2
-27

query I rowsort
SELECT 88 * - 71 * - - 45 AS col0
----
-281160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT MIN( + 11 ) + + - 6 - - + 75 + + - 47 DIV 56 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2162
SELECT MIN ( + 11 ) + + - 6 - - + 75 + + - 47 / 56 AS col1
----
80

query I rowsort
SELECT 62 + - - 59 * + 5 AS col1
----
357

query I rowsort
SELECT 1 * + ( - - 43 ) AS col0
----
43

query I rowsort
SELECT ALL - 73 * + - 98 AS col2
----
7154

query II rowsort
SELECT DISTINCT 38, + 2 AS col1
----
38
2

query I rowsort
SELECT 97 + + 72
----
169

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

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

query I rowsort
SELECT DISTINCT - 28 + - 11
----
-39

query I rowsort
SELECT 81 * + 23
----
1863

query I rowsort
SELECT DISTINCT 85 * - 89 AS col1
----
-7565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT CAST( COUNT( * ) AS SIGNED ) + + + NULLIF ( 18, + 82 ) - + COUNT( * ) * + - 42
----
61

skipif mysql # not compatible
query I rowsort label-2172
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + + NULLIF ( 18, + 82 ) - + COUNT ( * ) * + - 42
----
61

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

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

query I rowsort
SELECT DISTINCT + + 47 * ( + - 65 )
----
-3055

query II rowsort
SELECT ALL - 14 col2, + 82 AS col1
----
-14
82

query I rowsort
SELECT ALL - 18 + + + ( - 52 )
----
-70

query I rowsort
SELECT 16 * 19 AS col2
----
304

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT ALL 39 DIV - 19 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL 39 / - 19 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT - 80 * - - 94 + - 82 DIV + 62 - - + COALESCE ( + 15, 30, - 42 )
----
-7506

skipif mysql # not compatible
query I rowsort label-2180
SELECT - 80 * - - 94 + - 82 / + 62 - - + COALESCE ( + 15, 30, - 42 )
----
-7506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT + CAST( 66 AS SIGNED ) - 83
----
-17

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT + CAST ( 66 AS INTEGER ) - 83
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT - 27 DIV - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2182
SELECT - 27 / - 47 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT ALL MIN( + 22 ) - - 16 + - 5 + 41 + + MAX( - 34 ) + - 0 * - 91 + - 2 * + MAX( - 57 ) * + + 78 - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + 27 * - 60 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL MIN ( + 22 ) - - 16 + - 5 + 41 + + MAX ( - 34 ) + - 0 * - 91 + - 2 * + MAX ( - 57 ) * + + 78 - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 27 * - 60 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT + COUNT( * ) * - COALESCE ( - COUNT( ALL - 75 ), + COUNT( ALL - + 85 ) DIV ( - 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2184
SELECT + COUNT ( * ) * - COALESCE ( - COUNT ( ALL - 75 ), + COUNT ( ALL - + 85 ) / ( - 45 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT MAX( 82 ) * COUNT( * ) * - 8 * - - 5 - + 93 AS col1, + ( + 81 ) AS col2
----
-3373
81

skipif mysql # not compatible
query II rowsort label-2185
SELECT MAX ( 82 ) * COUNT ( * ) * - 8 * - - 5 - + 93 AS col1, + ( + 81 ) AS col2
----
-3373
81

query I rowsort
SELECT + - CASE WHEN NOT NULL > NULL THEN NULL ELSE - 63 END AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT ALL + 96 DIV 67
----
1

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + 96 / 67
----
1

query I rowsort
SELECT ALL + 16 * - ( - - 28 )
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL 85 * NULLIF ( + + MIN( DISTINCT + 23 ), 50 ) col0
----
1955

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 85 * NULLIF ( + + MIN ( DISTINCT + 23 ), 50 ) col0
----
1955

query II rowsort
SELECT - 87 AS col0, - 58 * - + 83 - 41 - - ( - - 11 ) - - 80 * + 97 AS col1
----
-87
12544

query I rowsort
SELECT DISTINCT 49 * + - 21 AS col0
----
-1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2192
SELECT COALESCE ( - + CAST( - 42 AS SIGNED ), - COUNT( * ) * 76 * - MIN( DISTINCT + 48 ) DIV 97 ) * - 31 AS col2
----
-1302

skipif mysql # not compatible
query I rowsort label-2192
SELECT COALESCE ( - + CAST ( - 42 AS INTEGER ), - COUNT ( * ) * 76 * - MIN ( DISTINCT + 48 ) / 97 ) * - 31 AS col2
----
-1302

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT 1 * - 42 DIV 37 * - + 98
----
98

skipif mysql # not compatible
query I rowsort label-2193
SELECT 1 * - 42 / 37 * - + 98
----
98

query I rowsort
SELECT ALL 0 + 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2195
SELECT DISTINCT + 69 * + - 9 AS col1, NULLIF ( CAST( NULL AS SIGNED ), - 13 ) AS col0
----
-621
NULL

skipif mysql # not compatible
query II rowsort label-2195
SELECT DISTINCT + 69 * + - 9 AS col1, NULLIF ( CAST ( NULL AS INTEGER ), - 13 ) AS col0
----
-621
NULL

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

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

query I rowsort
SELECT 87 * - - 91 AS col1
----
7917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT 97 + CAST( - - 46 AS SIGNED ) * - 46 AS col0
----
-2019

skipif mysql # not compatible
query I rowsort label-2198
SELECT 97 + CAST ( - - 46 AS INTEGER ) * - 46 AS col0
----
-2019

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

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

query I rowsort
SELECT ( + ( + 28 ) ) + - + 1
----
27

query I rowsort
SELECT ALL - - 57 + + + 23 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT DISTINCT + - 95 * - - COALESCE ( + COUNT( * ), - 35 + + COALESCE ( - 10, + 15 + 41 + + ( 83 ) + - 72 * - + 75, - 12 + + 46 + 47 - + 55 * + - 41 * 26 ) * + CAST( NULL AS SIGNED ) ) + - COUNT( - - 42 )
----
-96

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT + - 95 * - - COALESCE ( + COUNT ( * ), - 35 + + COALESCE ( - 10, + 15 + 41 + + ( 83 ) + - 72 * - + 75, - 12 + + 46 + 47 - + 55 * + - 41 * 26 ) * + CAST ( NULL AS INTEGER ) ) + - COUNT ( - - 42 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2203
SELECT - - 33 + + ( + COALESCE ( - + CAST( NULL AS SIGNED ), - + 7 + + ( - - MIN( DISTINCT + 73 ) ) ) ) * - 2
----
-99

skipif mysql # not compatible
query I rowsort label-2203
SELECT - - 33 + + ( + COALESCE ( - + CAST ( NULL AS INTEGER ), - + 7 + + ( - - MIN ( DISTINCT + 73 ) ) ) ) * - 2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2204
SELECT ALL COUNT( * ) + 94 + + 18 - - 5 * - 24 * + 63 * 48 DIV + COUNT( * ) AS col1
----
-362767

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL COUNT ( * ) + 94 + + 18 - - 5 * - 24 * + 63 * 48 / + COUNT ( * ) AS col1
----
-362767

query I rowsort
SELECT DISTINCT - NULLIF ( 61, - + 45 ) AS col2
----
-61

query I rowsort
SELECT DISTINCT - 88 * 62 * - 50
----
272800

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2207
SELECT + 97 + + 81 * + CAST( NULL AS DECIMAL ) + + 22 / - 4, 40 AS col1
----
NULL
40

skipif mysql # not compatible
query II rowsort label-2207
SELECT + 97 + + 81 * + CAST ( NULL AS REAL ) + + 22 / - 4, 40 AS col1
----
NULL
40

query I rowsort
SELECT + + 0 * + 47 * - + 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2209
SELECT ALL - 81 * - SUM( + + CAST( - + 7 AS SIGNED ) ) * 43 - COUNT( * )
----
-24382

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - 81 * - SUM ( + + CAST ( - + 7 AS INTEGER ) ) * 43 - COUNT ( * )
----
-24382

onlyif mysql # aggregate syntax: 
query II rowsort label-2210
SELECT ALL + - ( + MAX( 16 ) ), 87 + + - ( - 28 ) AS col0
----
-16
115

skipif mysql # not compatible
query II rowsort label-2210
SELECT ALL + - ( + MAX ( 16 ) ), 87 + + - ( - 28 ) AS col0
----
-16
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2211
SELECT ALL + COALESCE ( 69, - 78 * - COUNT( + 44 ) + - + COUNT( * ) * - CAST( NULL AS SIGNED ) ) * + 52, 99 AS col2
----
3588
99

skipif mysql # not compatible
query II rowsort label-2211
SELECT ALL + COALESCE ( 69, - 78 * - COUNT ( + 44 ) + - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) * + 52, 99 AS col2
----
3588
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2212
SELECT - + COUNT( - - 57 ) + - 22 * - + ( 71 ) - - COALESCE ( - 99, - 19 ) + 42 * + - 23 AS col2, 69 AS col0
----
496
69

skipif mysql # not compatible
query II rowsort label-2212
SELECT - + COUNT ( - - 57 ) + - 22 * - + ( 71 ) - - COALESCE ( - 99, - 19 ) + 42 * + - 23 AS col2, 69 AS col0
----
496
69

query I rowsort
SELECT 90 * + 87 * + 72 + 24 * + 37
----
564648

query II rowsort
SELECT ALL + 11 AS col0, + 55
----
11
55

query I rowsort
SELECT + 78 * + 74 col1
----
5772

onlyif mysql # aggregate syntax: 
query II rowsort label-2216
SELECT + COUNT( * ) * 17 * - SUM( + 80 ), 30 AS col0
----
-1360
30

skipif mysql # not compatible
query II rowsort label-2216
SELECT + COUNT ( * ) * 17 * - SUM ( + 80 ), 30 AS col0
----
-1360
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2217
SELECT ALL 94 * COUNT( * ) DIV - + 63 + - + 74
----
-75

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 94 * COUNT ( * ) / - + 63 + - + 74
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + 6 * 89 / + 17 * 14 * - 13 + - NULLIF ( + COUNT( * ), + + COUNT( * ) ) + + 16 + + - COUNT( * ) * ( - COUNT( DISTINCT - 93 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 6 * 89 / + 17 * 14 * - 13 + - NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) + + 16 + + - COUNT ( * ) * ( - COUNT ( DISTINCT - 93 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT + NULLIF ( + + 80, 22 * + MIN( ALL - 61 ) ) * 83 * 24 - + CASE - MIN( + 21 ) WHEN - 61 THEN - 54 * + - 77 + + - 74 WHEN - - 42 * - 56 + + 2 THEN - - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT + NULLIF ( + + 80, 22 * + MIN ( ALL - 61 ) ) * 83 * 24 - + CASE - MIN ( + 21 ) WHEN - 61 THEN - 54 * + - 77 + + - 74 WHEN - - 42 * - 56 + + 2 THEN - - 65 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT + 30 DIV 7 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2220
SELECT + 30 / 7 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL COUNT( * ) * + - 2 + 11 col1
----
9

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL COUNT ( * ) * + - 2 + 11 col1
----
9

query I rowsort
SELECT + 42 + - - 63
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT DISTINCT 65 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT 65 / + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2224
SELECT ALL + 55 AS col1, CASE - + COUNT( ALL - CAST( 46 AS SIGNED ) ) WHEN + CAST( NULL AS SIGNED ) * - 69 + + 40 + - 46 * + - 48 + 35 * - 68 + + 76 THEN NULLIF ( + 90, + ( - CAST( NULL AS SIGNED ) ) * + 92 + - 29 * + + 48 + + 46 ) WHEN + 11 + 14 THEN - COUNT( ALL - 71 ) * 86 * - CASE 51 WHEN + MAX( ALL + - 77 ) / - 35 THEN 58 ELSE - CAST( NULL AS SIGNED ) END END - + 49
----
55
NULL

skipif mysql # not compatible
query II rowsort label-2224
SELECT ALL + 55 AS col1, CASE - + COUNT ( ALL - CAST ( 46 AS INTEGER ) ) WHEN + CAST ( NULL AS INTEGER ) * - 69 + + 40 + - 46 * + - 48 + 35 * - 68 + + 76 THEN NULLIF ( + 90, + ( - CAST ( NULL AS INTEGER ) ) * + 92 + - 29 * + + 48 + + 46 ) WHEN + 11 + 14 THEN - COUNT ( ALL - 71 ) * 86 * - CASE 51 WHEN + MAX ( ALL + - 77 ) / - 35 THEN 58 ELSE - CAST ( NULL AS INTEGER ) END END - + 49
----
55
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT ALL 37 * + + 73 + 13 + - COUNT( * ) DIV - 89 AS col2
----
2714

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL 37 * + + 73 + 13 + - COUNT ( * ) / - 89 AS col2
----
2714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT DISTINCT 6 * + CAST( - 14 AS SIGNED ) + - 63
----
-147

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT 6 * + CAST ( - 14 AS INTEGER ) + - 63
----
-147

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT - 64 + + 47 * 88 + - 91 * + ( + 20 ) DIV + COUNT( + 2 ) + - 5 AS col0
----
2247

skipif mysql # not compatible
query I rowsort label-2229
SELECT - 64 + + 47 * 88 + - 91 * + ( + 20 ) / + COUNT ( + 2 ) + - 5 AS col0
----
2247

query I rowsort
SELECT - 41 + + - 18
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT DISTINCT - ( + - 25 ) + - 59 + - 73 DIV + 3 col1
----
-58

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT - ( + - 25 ) + - 59 + - 73 / + 3 col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2232
SELECT ALL - + COALESCE ( 10, - - 25, - + MIN( + + 69 ) + - 47 ) - + - 44 + - + 24 * - + 71 + - + 36 + 31 - + + ( - 36 ) DIV 41 * - 75 AS col1
----
1733

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - + COALESCE ( 10, - - 25, - + MIN ( + + 69 ) + - 47 ) - + - 44 + - + 24 * - + 71 + - + 36 + 31 - + + ( - 36 ) / 41 * - 75 AS col1
----
1733

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

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

query I rowsort
SELECT - ( + NULLIF ( - 80, + 57 * + 56 ) )
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2235
SELECT 54 AS col0, - COUNT( * ) + + COALESCE ( - - COALESCE ( 3, 80 ), - 94 ) * - AVG ( + - 15 ) * + 21 * + 61 + CAST( NULL AS DECIMAL )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2235
SELECT 54 AS col0, - COUNT ( * ) + + COALESCE ( - - COALESCE ( 3, 80 ), - 94 ) * - AVG ( + - 15 ) * + 21 * + 61 + CAST ( NULL AS REAL )
----
54
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT - - 96 DIV - 89
----
-1

skipif mysql # not compatible
query I rowsort label-2236
SELECT - - 96 / - 89
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL - 90 * 16 / CAST( NULL AS SIGNED ) * - 19 + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - 90 * 16 / CAST ( NULL AS INTEGER ) * - 19 + 53 AS col1
----
NULL

query I rowsort
SELECT + - 85 * - 47
----
3995

query I rowsort
SELECT - 91 * - ( + 68 ) + + 83 * 57
----
10919

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2241
SELECT 10 AS col1, - 49 * 61 DIV - 46 AS col2
----
10
64

skipif mysql # not compatible
query II rowsort label-2241
SELECT 10 AS col1, - 49 * 61 / - 46 AS col2
----
10
64

query I rowsort
SELECT ALL + 38 * 84
----
3192

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

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL + - COUNT ( * ) AS col2, + 82
----
-1
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2244
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1, 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1, 13
----
NULL
13

query I rowsort
SELECT - - 83 * 67 AS col0
----
5561

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + - 27 * - SUM( 44 ) * - 29 + SUM( + 7 ) + + - 13 * + + 61 + + 67 AS col0
----
-35171

skipif mysql # not compatible
query I rowsort label-2246
SELECT + - 27 * - SUM ( 44 ) * - 29 + SUM ( + 7 ) + + - 13 * + + 61 + + 67 AS col0
----
-35171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT + 45 DIV - 13 + + COUNT( * ) + - + 50 DIV - - 62
----
-2

skipif mysql # not compatible
query I rowsort label-2247
SELECT + 45 / - 13 + + COUNT ( * ) + - + 50 / - - 62
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT + 55 * - - 37 AS col1, MAX( + 11 )
----
2035
11

skipif mysql # not compatible
query II rowsort label-2248
SELECT + 55 * - - 37 AS col1, MAX ( + 11 )
----
2035
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT ALL 21 DIV - 53 + - COUNT( ALL + 98 ) + MAX( + 82 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL 21 / - 53 + - COUNT ( ALL + 98 ) + MAX ( + 82 ) AS col0
----
81

query I rowsort
SELECT DISTINCT + COALESCE ( 89, - 8 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT ALL 58 DIV + + ( + + 33 ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL 58 / + + ( + + 33 ) + + 79
----
80

query I rowsort
SELECT ALL - 45 * + ( + + 67 ) * NULLIF ( - 20, + 18 ) + - + 37 AS col1
----
60263

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

query I rowsort
SELECT + 88 * ( - 61 ) AS col2
----
-5368

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT - CAST( - 90 AS SIGNED ) - - 95
----
185

skipif mysql # not compatible
query I rowsort label-2257
SELECT - CAST ( - 90 AS INTEGER ) - - 95
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT ALL 47 DIV - - ( + 82 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL 47 / - - ( + 82 ) AS col2
----
0

query I rowsort
SELECT + 58 * - - 89 AS col2
----
5162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2260
SELECT DISTINCT MAX( DISTINCT 12 ) - - CAST( - 11 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT MAX ( DISTINCT 12 ) - - CAST ( - 11 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL MAX( - 67 ) * - 33 + - COALESCE ( + - 52, + + 15 * 86 * - 81, - - COUNT( * ) + + + 87 ) * - 98 AS col2
----
-2885

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL MAX ( - 67 ) * - 33 + - COALESCE ( + - 52, + + 15 * 86 * - 81, - - COUNT ( * ) + + + 87 ) * - 98 AS col2
----
-2885

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT ALL 11 DIV + + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL 11 / + + 60 AS col1
----
0

query I rowsort
SELECT DISTINCT 75 * - 95 AS col2
----
-7125

query I rowsort
SELECT DISTINCT 18 - + 47
----
-29

query I rowsort
SELECT ALL 22 * + ( + - 64 )
----
-1408

query I rowsort
SELECT + 96 + 51 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL 36 - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL 36 - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT DISTINCT + 61 * 85 + + COALESCE ( 23, ( + 9 ) )
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT 71 + ( - COALESCE ( + 1, COUNT( * ) ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2269
SELECT 71 + ( - COALESCE ( + 1, COUNT ( * ) ) ) AS col0
----
70

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT - COUNT( * ) + + ( + NULLIF ( + + MIN( DISTINCT - - 76 ), - 34 ) ) col0
----
75

skipif mysql # not compatible
query I rowsort label-2272
SELECT - COUNT ( * ) + + ( + NULLIF ( + + MIN ( DISTINCT - - 76 ), - 34 ) ) col0
----
75

query I rowsort
SELECT DISTINCT 7 * 6
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - COUNT( * ) + 80 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2274
SELECT - COUNT ( * ) + 80 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT + 55 * + ( + 34 ) + + CASE + + MIN( DISTINCT 81 ) WHEN + + 60 * - 29 THEN + AVG ( ALL + - 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT + 55 * + ( + 34 ) + + CASE + + MIN ( DISTINCT 81 ) WHEN + + 60 * - 29 THEN + AVG ( ALL + - 29 ) END
----
NULL

query I rowsort
SELECT ALL - + 27 * 92 + - 48 col2
----
-2532

query I rowsort
SELECT + 82 + - 11
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT - 21 * + CAST( + 64 AS SIGNED ) * - 77
----
103488

skipif mysql # not compatible
query I rowsort label-2278
SELECT - 21 * + CAST ( + 64 AS INTEGER ) * - 77
----
103488

query I rowsort
SELECT 48 * - 15 - 79
----
-799

query I rowsort
SELECT + 96 + 9 col0
----
105

query I rowsort
SELECT ALL + - 97 + + 30 AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2282
SELECT + 1 DIV 47 * MIN( + - 28 ) + + 71 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2282
SELECT + 1 / 47 * MIN ( + - 28 ) + + 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL - - COALESCE ( COUNT( * ), + 1 * + 71 + - 49 + 31, - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - - COALESCE ( COUNT ( * ), + 1 * + 71 + - 49 + 31, - 55 )
----
1

query I rowsort
SELECT DISTINCT 90 + - - 60 AS col1
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT + 36 DIV + + MAX( - 8 ) + 25 * + 14 AS col2
----
346

skipif mysql # not compatible
query I rowsort label-2285
SELECT + 36 / + + MAX ( - 8 ) + 25 * + 14 AS col2
----
346

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT ALL + 55 DIV - - 61
----
0

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + 55 / - - 61
----
0

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

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

query I rowsort
SELECT DISTINCT - 28 + + 18
----
-10

query II rowsort
SELECT + 14 col2, 69 AS col1
----
14
69

query I rowsort
SELECT ALL - 83 + - 62
----
-145

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2291
SELECT 46 * 84 - 67 AS col2, NULLIF ( + 0, + 44 DIV - NULLIF ( + 84, + 19 ) ) + + - 47 * 13 col2, - - COUNT( * ) + - - ( + COUNT( * ) )
----
3797
NULL
2

skipif mysql # not compatible
query III rowsort label-2291
SELECT 46 * 84 - 67 AS col2, NULLIF ( + 0, + 44 / - NULLIF ( + 84, + 19 ) ) + + - 47 * 13 col2, - - COUNT ( * ) + - - ( + COUNT ( * ) )
----
3797
NULL
2

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

query I rowsort
SELECT ( - 21 ) * - + 90 + - + 19
----
1871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT DISTINCT - CAST( - ( NULLIF ( 66, 21 - - ( - 40 ) + + 51 * + 79 ) ) AS SIGNED ) col0
----
66

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT - CAST ( - ( NULLIF ( 66, 21 - - ( - 40 ) + + 51 * + 79 ) ) AS INTEGER ) col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT - MIN( 0 ) - - 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT - MIN ( 0 ) - - 4 AS col1
----
4

query I rowsort
SELECT 25 * + ( + - 39 )
----
-975

query I rowsort
SELECT 41 + - 81 AS col2
----
-40

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

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

query I rowsort
SELECT 15 * 59
----
885

query I rowsort
SELECT 60 + 77
----
137

query I rowsort
SELECT ALL 27 * + 70
----
1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT NULLIF ( 3, + SUM( 39 ) + 31 DIV + CASE WHEN NOT 49 IS NOT NULL THEN 75 ELSE NULL END ) DIV MAX( + 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT NULLIF ( 3, + SUM ( 39 ) + 31 / + CASE WHEN NOT 49 IS NOT NULL THEN 75 ELSE NULL END ) / MAX ( + 32 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT 45 * - COUNT( - 51 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT 45 * - COUNT ( - 51 ) AS col2
----
-45

query I rowsort
SELECT DISTINCT ( 76 ) * + 21 AS col0
----
1596

query I rowsort
SELECT DISTINCT 21 + - 50 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - SUM( ALL + 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2306
SELECT - SUM ( ALL + 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT 50 + - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT 50 + - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT 40 * + 88
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT SUM( DISTINCT 33 ) * COUNT( * ) col1
----
33

skipif mysql # not compatible
query I rowsort label-2309
SELECT SUM ( DISTINCT 33 ) * COUNT ( * ) col1
----
33

query I rowsort
SELECT DISTINCT 85 + 55 AS col2
----
140

query I rowsort
SELECT ALL 44 + 97 AS col2
----
141

query I rowsort
SELECT ALL 49 + 95 AS col0
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2313
SELECT DISTINCT + MIN( DISTINCT - 29 ) DIV 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + MIN ( DISTINCT - 29 ) / 72 col2
----
0

query I rowsort
SELECT ALL - 14 + - 60
----
-74

query I rowsort
SELECT ALL + 51 * 22
----
1122

query I rowsort
SELECT ( + 96 ) + 0 AS col2
----
96

query I rowsort
SELECT CASE ( 6 ) WHEN ( - 54 ) THEN 49 END AS col1
----
NULL

query I rowsort
SELECT 10 * 35
----
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT CASE 2 WHEN + 88 - CAST( NULL AS SIGNED ) THEN + COUNT( * ) END * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT CASE 2 WHEN + 88 - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END * 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL MIN( DISTINCT 25 ) * - 90
----
-2250

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL MIN ( DISTINCT 25 ) * - 90
----
-2250

query I rowsort
SELECT + COALESCE ( - 37, - 67 * 23 ) AS col1
----
-37

query I rowsort
SELECT + COALESCE ( + NULLIF ( + 12, + 83 + 4 ), ( + 90 ), 80 * + 91 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT - 56 DIV - COUNT( * ) + 23
----
79

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 56 / - COUNT ( * ) + 23
----
79

query I rowsort
SELECT - 23 * 13
----
-299

query I rowsort
SELECT - 82 * - 12 AS col0
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT MIN( + 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2326
SELECT MIN ( + 87 ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2327
SELECT + 87 * CAST( - MIN( + 98 ) AS SIGNED ) AS col2
----
-8526

skipif mysql # not compatible
query I rowsort label-2327
SELECT + 87 * CAST ( - MIN ( + 98 ) AS INTEGER ) AS col2
----
-8526

query I rowsort
SELECT - + ( ( + 89 ) ) * + 41
----
-3649

query I rowsort
SELECT - + 22 - + 83
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL COALESCE ( 97, 90 + 13, - 30 * - MAX( + 96 ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL COALESCE ( 97, 90 + 13, - 30 * - MAX ( + 96 ) ) col2
----
97

query I rowsort
SELECT ALL + 51 * 46 AS col0
----
2346

query I rowsort
SELECT - 81 + 29 * 96 AS col1
----
2703

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

query I rowsort
SELECT - 94 + - 7
----
-101

query I rowsort
SELECT + 64 * 29 AS col1
----
1856

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

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

skipif mysql # not compatible
query I rowsort label-2337
SELECT - MIN ( ALL - CAST ( + 64 AS INTEGER ) ) AS col2
----
64

query I rowsort
SELECT ALL - + 55 + - 7
----
-62

query I rowsort
SELECT - - 21 + 61 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - + 46 + - COUNT( * ) * COALESCE ( 12, - 1 - - 36 )
----
-58

skipif mysql # not compatible
query I rowsort label-2340
SELECT - + 46 + - COUNT ( * ) * COALESCE ( 12, - 1 - - 36 )
----
-58

query I rowsort
SELECT DISTINCT + 24 + + 79 AS col1
----
103

query I rowsort
SELECT ALL - 66 + - CASE ( 57 ) WHEN 6 - - 95 THEN 43 * 42 WHEN + 0 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 2 * - 4
----
8

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

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT + COUNT ( * ) + + ( 5 + COUNT ( * ) ) AS col2
----
7

query I rowsort
SELECT + 67 * + 38
----
2546

query I rowsort
SELECT ALL - 74 * + 55
----
-4070

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT - SUM( + 17 ) * - COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2347
SELECT - SUM ( + 17 ) * - COUNT ( * ) AS col1
----
17

query I rowsort
SELECT + 72 + 42 + 25 col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL COUNT( * ) - + COUNT( ( 39 ) ) * 9
----
-8

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL COUNT ( * ) - + COUNT ( ( 39 ) ) * 9
----
-8

query I rowsort
SELECT + ( - 13 ) * 68
----
-884

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

skipif mysql # not compatible
query I rowsort label-2351
SELECT + ( - CAST ( 91 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + NULLIF ( + 73, COALESCE ( - 99, 22 + COUNT( ALL 16 ) * - 35 ) )
----
73

skipif mysql # not compatible
query I rowsort label-2352
SELECT + NULLIF ( + 73, COALESCE ( - 99, 22 + COUNT ( ALL 16 ) * - 35 ) )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT ALL ( - COALESCE ( + 1, 31, 17 DIV 32 ) ) DIV 40 - - 61 * 39
----
2379

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL ( - COALESCE ( + 1, 31, 17 / 32 ) ) / 40 - - 61 * 39
----
2379

query I rowsort
SELECT + 6 * - 86 * 6 AS col2
----
-3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2355
SELECT + SUM( - ( + 48 ) ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-2355
SELECT + SUM ( - ( + 48 ) ) / 68
----
0

query I rowsort
SELECT + 70 * + + 32 AS col0
----
2240

query I rowsort
SELECT ALL ( - + 68 ) * + 70
----
-4760

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT 21 * + COUNT( * ) + - 26 * + 2
----
-31

skipif mysql # not compatible
query I rowsort label-2359
SELECT 21 * + COUNT ( * ) + - 26 * + 2
----
-31

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

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

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

query I rowsort
SELECT DISTINCT + COALESCE ( 83, 60 + ( - 98 ) ) * - 75 + 99
----
-6126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT + 99 + + + ( + 18 ) DIV + COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-2363
SELECT + 99 + + + ( + 18 ) / + COUNT ( * )
----
117

query I rowsort
SELECT DISTINCT 73 * 39 AS col1
----
2847

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT - 12 DIV + 79 * + 80
----
0

skipif mysql # not compatible
query I rowsort label-2365
SELECT - 12 / + 79 * + 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2366
SELECT ALL CASE + - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN 50 WHEN 71 * MAX( ALL 40 ) THEN 16 + 40 * - CAST( NULL AS SIGNED ) ELSE NULL END * - 82 + CASE - 8 WHEN 44 + + COUNT( * ) THEN 25 WHEN 61 THEN NULL ELSE + 20 / + COALESCE ( + CAST( + 38 AS SIGNED ), + COUNT( ALL + ( NULLIF ( - 55, + CAST( NULL AS SIGNED ) * + ( - 24 ) + CAST( NULL AS SIGNED ) ) ) ) + 8, COUNT( * ) + + COUNT( * ), 62 + 28 ) END / - 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL CASE + - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN 50 WHEN 71 * MAX ( ALL 40 ) THEN 16 + 40 * - CAST ( NULL AS INTEGER ) ELSE NULL END * - 82 + CASE - 8 WHEN 44 + + COUNT ( * ) THEN 25 WHEN 61 THEN NULL ELSE + 20 / + COALESCE ( + CAST ( + 38 AS INTEGER ), + COUNT ( ALL + ( NULLIF ( - 55, + CAST ( NULL AS INTEGER ) * + ( - 24 ) + CAST ( NULL AS INTEGER ) ) ) ) + 8, COUNT ( * ) + + COUNT ( * ), 62 + 28 ) END / - 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + - NULLIF ( + + 19, 36 * 90 ) * COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2367
SELECT + - NULLIF ( + + 19, 36 * 90 ) * COUNT ( * ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT CAST( - + CASE 28 WHEN 85 * + 5 THEN NULL WHEN + ( - ( - 91 ) ) + 96 * + 58 THEN 36 * + 48 WHEN - ( - 14 ) THEN NULL ELSE 15 * CAST( NULL AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT CAST ( - + CASE 28 WHEN 85 * + 5 THEN NULL WHEN + ( - ( - 91 ) ) + 96 * + 58 THEN 36 * + 48 WHEN - ( - 14 ) THEN NULL ELSE 15 * CAST ( NULL AS INTEGER ) END AS INTEGER )
----
NULL

query I rowsort
SELECT - - COALESCE ( - 28, - 56 + - 48 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT - + COUNT( * ) + + CAST( CASE 36 WHEN 46 THEN ( COUNT( * ) ) + + 35 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT - + COUNT ( * ) + + CAST ( CASE 36 WHEN 46 THEN ( COUNT ( * ) ) + + 35 END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 3 * - 84 + 1 AS col2
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + + 91 * MAX( DISTINCT 13 ) AS col0
----
1183

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + + 91 * MAX ( DISTINCT 13 ) AS col0
----
1183

query I rowsort
SELECT DISTINCT + - 87 * + 66 * 69 + 56 + + 88 * - 29 col1
----
-398694

query I rowsort
SELECT - COALESCE ( + CASE 6 WHEN 96 * 28 THEN - 58 END, 16 ) col0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2375
SELECT - ( 91 ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT - ( 91 ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ALL - 14 - 57 + MAX( ALL 37 )
----
-34

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - 14 - 57 + MAX ( ALL 37 )
----
-34

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

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

query I rowsort
SELECT ALL + - 48 * - + 14 + - 53
----
619

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

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

query I rowsort
SELECT - + 34 * - 30
----
1020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT - 90 + ( 17 ) + + CAST( - 17 AS SIGNED ) * + 70
----
-1263

skipif mysql # not compatible
query I rowsort label-2381
SELECT - 90 + ( 17 ) + + CAST ( - 17 AS INTEGER ) * + 70
----
-1263

query II rowsort
SELECT 46 AS col0, 80 AS col0
----
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL + 96 - - - 39 - - 4 + 71 * 83 * - ( + COUNT( * ) )
----
-5832

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL + 96 - - - 39 - - 4 + 71 * 83 * - ( + COUNT ( * ) )
----
-5832

query II rowsort
SELECT 17 AS col1, - 11 col2
----
17
-11

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

skipif mysql # not compatible
query I rowsort label-2385
SELECT 91 / COUNT ( * ) AS col2
----
91

query I rowsort
SELECT 26 * 66 AS col2
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT 97 + + 59 * 54 * - COUNT( ALL 25 ) + 35 AS col0
----
-3054

skipif mysql # not compatible
query I rowsort label-2387
SELECT 97 + + 59 * 54 * - COUNT ( ALL 25 ) + 35 AS col0
----
-3054

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT 0 - - NULLIF ( + 84, + NULLIF ( 39, + CASE - 94 WHEN ( COUNT( * ) ) THEN + 29 WHEN + CASE - 98 WHEN 9 * 94 THEN - 7 + + 97 WHEN 20 THEN - MIN( 99 ) + 86 ELSE NULL END THEN - 90 ELSE NULL END ) + + 5 / + 11 )
----
84

skipif mysql # not compatible
query I rowsort label-2388
SELECT 0 - - NULLIF ( + 84, + NULLIF ( 39, + CASE - 94 WHEN ( COUNT ( * ) ) THEN + 29 WHEN + CASE - 98 WHEN 9 * 94 THEN - 7 + + 97 WHEN 20 THEN - MIN ( 99 ) + 86 ELSE NULL END THEN - 90 ELSE NULL END ) + + 5 / + 11 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2389
SELECT ALL - NULLIF ( + 23, + 90 ) DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - NULLIF ( + 23, + 90 ) / + 34
----
0

query II rowsort
SELECT DISTINCT 72, 78 * - 70 AS col0
----
72
-5460

query I rowsort
SELECT ALL 18 * + 8 AS col0
----
144

query I rowsort
SELECT ALL ( 22 ) * ( + 10 )
----
220

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT DISTINCT - COUNT( * ) * - 35 * ( ( + 61 ) ) DIV 2
----
1067

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - COUNT ( * ) * - 35 * ( ( + 61 ) ) / 2
----
1067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2395
SELECT COUNT( * ) DIV 83 + - - 57 * 4 col0
----
228

skipif mysql # not compatible
query I rowsort label-2395
SELECT COUNT ( * ) / 83 + - - 57 * 4 col0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2396
SELECT ALL - 77 AS col2, + CAST( NULL AS SIGNED ) * + + 80
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-2396
SELECT ALL - 77 AS col2, + CAST ( NULL AS INTEGER ) * + + 80
----
-77
NULL

query I rowsort
SELECT ALL ( + - ( - - 51 ) ) * 48 AS col2
----
-2448

query I rowsort
SELECT ( - - 17 ) * - 90 - 48 AS col0
----
-1578

query II rowsort
SELECT DISTINCT - 93 AS col2, + 42
----
-93
42

query I rowsort
SELECT ALL COALESCE ( + - 64, 80, NULLIF ( - 87, + 98 - 8 * 58 ) ) + 31 * - 93
----
-2947

query II rowsort
SELECT ALL - 5, 61 * + 71 AS col0
----
-5
4331

query I rowsort
SELECT 41 * - 68 * + 77 AS col2
----
-214676

query I rowsort
SELECT ALL 28 + - 3 + 84 * 75 AS col2
----
6325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL - 20 + + 37 * - COUNT( * ) * - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - 20 + + 37 * - COUNT ( * ) * - COUNT ( * ) AS col2
----
17

query I rowsort
SELECT DISTINCT 40 * + + 77
----
3080

query I rowsort
SELECT ALL + 51 + - + 3 + - 36
----
12

query I rowsort
SELECT - 68 * + 15 * - 36 - + ( 11 ) + 17 AS col2
----
36726

query II rowsort
SELECT + + 25 AS col0, 40
----
25
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT 71 - + - 66 + + + ( + 76 ) DIV 12 col2
----
143

skipif mysql # not compatible
query I rowsort label-2411
SELECT 71 - + - 66 + + + ( + 76 ) / 12 col2
----
143

query I rowsort
SELECT DISTINCT - 68 * + 70 AS col2
----
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT + MAX( ALL - 13 ) + - 74 + ( - 26 )
----
-113

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + MAX ( ALL - 13 ) + - 74 + ( - 26 )
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-2414
SELECT - 19 AS col2, 79 * - NULLIF ( + 46, + MIN( 32 ) + + AVG ( - 83 ) )
----
-19
-3634

skipif mysql # not compatible
query II rowsort label-2414
SELECT - 19 AS col2, 79 * - NULLIF ( + 46, + MIN ( 32 ) + + AVG ( - 83 ) )
----
-19
-3634

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT + NULLIF ( - - 18, - - 14 ) * + COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-2416
SELECT + NULLIF ( - - 18, - - 14 ) * + COUNT ( * ) col1
----
18

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

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

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

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT - 85 / - ( - COUNT ( * ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT + COALESCE ( + 29, NULLIF ( - MAX( + 73 ), 15 + + COUNT( * ) ) + + 2, - 79 * 46, 58 DIV + 85 ) - 25
----
4

skipif mysql # not compatible
query I rowsort label-2419
SELECT + COALESCE ( + 29, NULLIF ( - MAX ( + 73 ), 15 + + COUNT ( * ) ) + + 2, - 79 * 46, 58 / + 85 ) - 25
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2420
SELECT CAST( CASE + CASE 38 WHEN - SUM( + 73 ) THEN 57 * - 33 ELSE NULL END WHEN - 84 * + 29 THEN NULL ELSE 77 END AS SIGNED ) + - 7
----
70

skipif mysql # not compatible
query I rowsort label-2420
SELECT CAST ( CASE + CASE 38 WHEN - SUM ( + 73 ) THEN 57 * - 33 ELSE NULL END WHEN - 84 * + 29 THEN NULL ELSE 77 END AS INTEGER ) + - 7
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT 32 - 55 * 78 + - ( SUM( DISTINCT CAST( - 41 AS SIGNED ) ) ) * 15 AS col2
----
-3643

skipif mysql # not compatible
query I rowsort label-2421
SELECT 32 - 55 * 78 + - ( SUM ( DISTINCT CAST ( - 41 AS INTEGER ) ) ) * 15 AS col2
----
-3643

query I rowsort
SELECT ALL + 83 - 40 col2
----
43

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

query II rowsort
SELECT ALL - 38 * 78 AS col1, - ( + 23 ) AS col2
----
-2964
-23

query I rowsort
SELECT 0 + 45
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2426
SELECT 6 * 90 AS col1, + NULLIF ( 24, - 71 ) DIV + 24 AS col2
----
540
1

skipif mysql # not compatible
query II rowsort label-2426
SELECT 6 * 90 AS col1, + NULLIF ( 24, - 71 ) / + 24 AS col2
----
540
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT 10 + - CAST( + 55 AS SIGNED ) * - - 2
----
-100

skipif mysql # not compatible
query I rowsort label-2427
SELECT 10 + - CAST ( + 55 AS INTEGER ) * - - 2
----
-100

query I rowsort
SELECT DISTINCT 54 * + 18
----
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT 96 + + 68 DIV + COUNT( * ) AS col1
----
164

skipif mysql # not compatible
query I rowsort label-2429
SELECT 96 + + 68 / + COUNT ( * ) AS col1
----
164

query I rowsort
SELECT 32 * - 57 * + ( - 27 )
----
49248

query I rowsort
SELECT 45 + + + 49 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT 51 DIV - - MAX( DISTINCT - + 91 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2432
SELECT 51 / - - MAX ( DISTINCT - + 91 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL - 56 * 4 + - 24 - - MAX( DISTINCT ( - 81 ) ) col2
----
-329

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 56 * 4 + - 24 - - MAX ( DISTINCT ( - 81 ) ) col2
----
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL 99 * 19 + - + COUNT( * ) * - 40 * 56 AS col0
----
4121

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 99 * 19 + - + COUNT ( * ) * - 40 * 56 AS col0
----
4121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT 58 * - 7 * - + 45 - CAST( - 75 AS SIGNED ) + 25 * - 92
----
16045

skipif mysql # not compatible
query I rowsort label-2435
SELECT 58 * - 7 * - + 45 - CAST ( - 75 AS INTEGER ) + 25 * - 92
----
16045

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT 29 * 62 + - CASE COUNT( * ) WHEN + 8 * 3 THEN NULL WHEN 6 THEN NULL WHEN SUM( - ( 69 ) ) THEN + 28 END + + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT 29 * 62 + - CASE COUNT ( * ) WHEN + 8 * 3 THEN NULL WHEN 6 THEN NULL WHEN SUM ( - ( 69 ) ) THEN + 28 END + + 14 AS col1
----
NULL

query I rowsort
SELECT 16 + - 55
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT + - 74 / - CAST( NULL AS SIGNED ) + COUNT( * ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT + - 74 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 6
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 57, - - NULLIF ( + + 17, 75 / 32 + - 93 * ( 38 / 61 ) ) * 35 ) + ( 77 )
----
134

query I rowsort
SELECT 6 + + NULLIF ( 81, - 81 ) + + 79
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT CASE CAST( NULL AS SIGNED ) WHEN 15 + + 4 THEN NULL WHEN 73 THEN 12 ELSE NULL END * + 85 + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT CASE CAST ( NULL AS INTEGER ) WHEN 15 + + 4 THEN NULL WHEN 73 THEN 12 ELSE NULL END * + 85 + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT - CAST( MAX( DISTINCT + 14 ) AS SIGNED ) * - + 67 * - 61
----
-57218

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - CAST ( MAX ( DISTINCT + 14 ) AS INTEGER ) * - + 67 * - 61
----
-57218

query I rowsort
SELECT 86 + 99 AS col0
----
185

query I rowsort
SELECT ALL - 28 - - 11
----
-17

query I rowsort
SELECT ALL + 48 - - + 89 + - 89
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT - 40 * - 18 - + + 39 + - + 2 + 53 DIV 83 AS col1
----
679

skipif mysql # not compatible
query I rowsort label-2446
SELECT - 40 * - 18 - + + 39 + - + 2 + 53 / 83 AS col1
----
679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT + MAX( + + CAST( 98 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-2447
SELECT + MAX ( + + CAST ( 98 AS INTEGER ) )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2448
SELECT - 46 + + CASE + 67 WHEN - - 4 + + 95 THEN COUNT( * ) WHEN + 23 + 9 THEN NULL ELSE NULL END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT - 46 + + CASE + 67 WHEN - - 4 + + 95 THEN COUNT ( * ) WHEN + 23 + 9 THEN NULL ELSE NULL END + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT + + CAST( NULL AS SIGNED ) / 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT + + CAST ( NULL AS INTEGER ) / 60 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT DISTINCT - 96 * + 78 * 95 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - 96 * + 78 * 95 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL 19 * + 91
----
1729

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT + 7 * - - COUNT( + - 62 ) AS col1, - 9 * + 30
----
7
-270

skipif mysql # not compatible
query II rowsort label-2454
SELECT + 7 * - - COUNT ( + - 62 ) AS col1, - 9 * + 30
----
7
-270

query I rowsort
SELECT - CASE + 5 WHEN - 20 / - + 76 + + 63 THEN 23 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT + ( + 88 ) / COUNT( * ) / - + CASE - + CAST( + 56 AS SIGNED ) WHEN COUNT( * ) * + ( 69 ) THEN - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT + ( + 88 ) / COUNT ( * ) / - + CASE - + CAST ( + 56 AS INTEGER ) WHEN COUNT ( * ) * + ( 69 ) THEN - 71 END
----
NULL

query I rowsort
SELECT + 53 - - 99
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT ALL 19 AS col1, 70 + - NULLIF ( - 55, COUNT( * ) ) AS col2
----
19
125

skipif mysql # not compatible
query II rowsort label-2458
SELECT ALL 19 AS col1, 70 + - NULLIF ( - 55, COUNT ( * ) ) AS col2
----
19
125

query I rowsort
SELECT + 71 * - + ( + + 54 )
----
-3834

query I rowsort
SELECT - 77 + + 73 * - 57 * + 39 col2
----
-162356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT - COUNT( * ) * 28 DIV + + NULLIF ( 76, 71 + - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT - COUNT ( * ) * 28 / + + NULLIF ( 76, 71 + - 51 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL ( - 57 ) + - - COUNT( - - 0 ) + COUNT( - CAST( NULL AS SIGNED ) )
----
-56

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL ( - 57 ) + - - COUNT ( - - 0 ) + COUNT ( - CAST ( NULL AS INTEGER ) )
----
-56

query I rowsort
SELECT ALL - 71 * - + 12
----
852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2464
SELECT DISTINCT CAST( + MAX( DISTINCT 84 ) AS SIGNED ) + - + 18 + ( - 43 ) * 93
----
-3933

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT CAST ( + MAX ( DISTINCT 84 ) AS INTEGER ) + - + 18 + ( - 43 ) * 93
----
-3933

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT + 96 col0, - CAST( - - CAST( - 74 AS SIGNED ) AS SIGNED ) * - ( 39 ) + 2 AS col2
----
96
-2884

skipif mysql # not compatible
query II rowsort label-2465
SELECT + 96 col0, - CAST ( - - CAST ( - 74 AS INTEGER ) AS INTEGER ) * - ( 39 ) + 2 AS col2
----
96
-2884

query I rowsort
SELECT ALL + NULLIF ( - 88, 13 * - ( - 0 ) ) * 5
----
-440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT + - 12 DIV - 61 + + 27 + + 33 + - COUNT( * ) + - 87 * + COUNT( - 62 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2467
SELECT + - 12 / - 61 + + 27 + + 33 + - COUNT ( * ) + - 87 * + COUNT ( - 62 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - SUM( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT - SUM ( + 0 ) AS col1
----
0

query I rowsort
SELECT - - 79 * 75 AS col0
----
5925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2470
SELECT ALL + 51 DIV + - 62 + 70 + + 52 + + CASE COUNT( * ) WHEN 56 THEN NULL ELSE + MIN( ALL + 34 ) * - COUNT( * ) END * 89
----
-2904

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + 51 / + - 62 + 70 + + 52 + + CASE COUNT ( * ) WHEN 56 THEN NULL ELSE + MIN ( ALL + 34 ) * - COUNT ( * ) END * 89
----
-2904

query II rowsort
SELECT + 31, + 22 AS col1
----
31
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT ALL + + 17 DIV 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + + 17 / 66 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT - 4 DIV - 60 - + ( - 10 ) + - COUNT( * ) * - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2473
SELECT - 4 / - 60 - + ( - 10 ) + - COUNT ( * ) * - COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + 21 * NULLIF ( COUNT( * ), 24 * + - 45 ) - COUNT( * ) * + 31 + 20
----
10

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 21 * NULLIF ( COUNT ( * ), 24 * + - 45 ) - COUNT ( * ) * + 31 + 20
----
10

query I rowsort
SELECT ALL + 32 * - - 39 - + 24 AS col2
----
1224

query I rowsort
SELECT - + 11 * + + 47 + - 41
----
-558

query I rowsort
SELECT - 61 * - 97 AS col0
----
5917

query I rowsort
SELECT + - 47 * 25 + + - 10 AS col1
----
-1185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT + - NULLIF ( + 45, - 14 / - - CAST( NULL AS SIGNED ) * 30 + - 46 * + 83 )
----
-45

skipif mysql # not compatible
query I rowsort label-2479
SELECT + - NULLIF ( + 45, - 14 / - - CAST ( NULL AS INTEGER ) * 30 + - 46 * + 83 )
----
-45

query I rowsort
SELECT - + 61 - + 5
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2481
SELECT - CAST( NULL AS SIGNED ) * - 95 + COUNT( * ) + - 2 * - 86 + 6 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT - CAST ( NULL AS INTEGER ) * - 95 + COUNT ( * ) + - 2 * - 86 + 6 + 93
----
NULL

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

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

query I rowsort
SELECT + 59 - - 2
----
61

query I rowsort
SELECT + 77 * 90
----
6930

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

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

query I rowsort
SELECT ALL ( - 1 ) + + 85 + - 34 AS col2
----
50

query I rowsort
SELECT + 24 + 20 + - + 69 * + 41 * + 91 * 35 * + COALESCE ( 78, 5 ) + 46
----
-702808380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2488
SELECT + 41 DIV - MIN( - + 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 41 / - MIN ( - + 89 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT + 0 + - ( - - 49 ) / MAX( - CAST( NULL AS SIGNED ) ) * - - CASE + 71 WHEN + 67 * + 28 THEN AVG ( DISTINCT 41 ) + 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT + 0 + - ( - - 49 ) / MAX ( - CAST ( NULL AS INTEGER ) ) * - - CASE + 71 WHEN + 67 * + 28 THEN AVG ( DISTINCT 41 ) + 93 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2490
SELECT DISTINCT ( 46 ) * - 46 + - 12 col2, 93 - - 46 + ( - CAST( 28 AS SIGNED ) + 72 ) DIV 88 AS col1
----
-2128
139

skipif mysql # not compatible
query II rowsort label-2490
SELECT DISTINCT ( 46 ) * - 46 + - 12 col2, 93 - - 46 + ( - CAST ( 28 AS INTEGER ) + 72 ) / 88 AS col1
----
-2128
139

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2492
SELECT ALL 5 + 85, - 33 * + CAST( + 9 AS SIGNED ) AS col0
----
90
-297

skipif mysql # not compatible
query II rowsort label-2492
SELECT ALL 5 + 85, - 33 * + CAST ( + 9 AS INTEGER ) AS col0
----
90
-297

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT + 81 + NULLIF ( + 60, - 77 ) * - MAX( DISTINCT + 40 ) AS col1
----
-2319

skipif mysql # not compatible
query I rowsort label-2494
SELECT + 81 + NULLIF ( + 60, - 77 ) * - MAX ( DISTINCT + 40 ) AS col1
----
-2319

query I rowsort
SELECT + ( + - 5 ) + - - 59 + - 33 + 64 * - - 26
----
1685

query I rowsort
SELECT + ( + 85 ) + - - 2 col0
----
87

query I rowsort
SELECT + 52 + + 72 * + - 68
----
-4844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 88 - + ( MIN( + 38 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 88 - + ( MIN ( + 38 ) ) AS col0
----
NULL

query I rowsort
SELECT + + 22 * 58 + - 75
----
1201

query II rowsort
SELECT ALL + - 35, ( - + 93 ) * NULLIF ( + 69, - 76 + + 52 ) - 30 * 32 AS col2
----
-35
-7377

query II rowsort
SELECT DISTINCT + 89 * - 92 AS col2, - 17 AS col2
----
-8188
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2502
SELECT DISTINCT CASE - 25 WHEN AVG ( ALL - 29 ) DIV - + COUNT( * ) THEN NULL ELSE + 68 + 60 END * COALESCE ( - 87 DIV - ( - 36 DIV - CAST( NULL AS SIGNED ) ), - COALESCE ( - 38, - 8 + 89, COUNT( * ) ) * COALESCE ( + 8 * - COUNT( * ), + 32 * - 4 ), - 61 + - 33 * + 81, - 1 + 2 )
----
-38912

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT CASE - 25 WHEN AVG ( ALL - 29 ) / - + COUNT ( * ) THEN NULL ELSE + 68 + 60 END * COALESCE ( - 87 / - ( - 36 / - CAST ( NULL AS INTEGER ) ), - COALESCE ( - 38, - 8 + 89, COUNT ( * ) ) * COALESCE ( + 8 * - COUNT ( * ), + 32 * - 4 ), - 61 + - 33 * + 81, - 1 + 2 )
----
-38912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT DISTINCT + + CAST( CASE - + 13 WHEN - 5 * COALESCE ( + COUNT( * ), + 14 ) THEN SUM( + 71 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT + + CAST ( CASE - + 13 WHEN - 5 * COALESCE ( + COUNT ( * ), + 14 ) THEN SUM ( + 71 ) END AS INTEGER )
----
NULL

query I rowsort
SELECT - - 51 + - - 86 + - + 54 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT + COUNT( NULLIF ( - 78, - 75 - - ( + 35 ) + - 82 * 30 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2505
SELECT + COUNT ( NULLIF ( - 78, - 75 - - ( + 35 ) + - 82 * 30 ) ) AS col2
----
1

query I rowsort
SELECT + 59 * NULLIF ( - + ( - - 24 ), + ( - 37 ) )
----
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT 84 * COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2507
SELECT 84 * COUNT ( * ) AS col1
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2508
SELECT + + CAST( NULL AS DECIMAL ) * + 53 + + 69 + 88 / 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT + + CAST ( NULL AS REAL ) * + 53 + + 69 + 88 / 42
----
NULL

query I rowsort
SELECT ALL 38 * + + 43 col1
----
1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2510
SELECT ALL + - 97 + + 50 + - 92 DIV + COUNT( * ), CAST( NULL AS SIGNED ) col0
----
-139
NULL

skipif mysql # not compatible
query II rowsort label-2510
SELECT ALL + - 97 + + 50 + - 92 / + COUNT ( * ), CAST ( NULL AS INTEGER ) col0
----
-139
NULL

query I rowsort
SELECT ALL + ( - + 14 ) + 44 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - ( - COUNT( * ) ) * ( + + 25 ) + + COALESCE ( - + ( - 76 ), COUNT( * ) ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-2512
SELECT - ( - COUNT ( * ) ) * ( + + 25 ) + + COALESCE ( - + ( - 76 ), COUNT ( * ) ) AS col2
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2513
SELECT 0 DIV - - COUNT( * ) AS col2, + NULLIF ( + 75, 71 ), COUNT( * ) AS col1
----
0
75
1

skipif mysql # not compatible
query III rowsort label-2513
SELECT 0 / - - COUNT ( * ) AS col2, + NULLIF ( + 75, 71 ), COUNT ( * ) AS col1
----
0
75
1

query I rowsort
SELECT 35 + + NULLIF ( 80, + + 43 * + - 39 * - 92 * 54 )
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-2515
SELECT COUNT( * ) + - - 58 AS col0, 18 + + 93 + + COALESCE ( + 14, 35, + 27 * - 92 ) * 56
----
59
895

skipif mysql # not compatible
query II rowsort label-2515
SELECT COUNT ( * ) + - - 58 AS col0, 18 + + 93 + + COALESCE ( + 14, 35, + 27 * - 92 ) * 56
----
59
895

query I rowsort
SELECT 54 + + 61 + + 19 + 25 * - 40
----
-866

query I rowsort
SELECT ALL - 43 + 11
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT DISTINCT + COALESCE ( - + COUNT( DISTINCT 72 ), + 33 + + ( - 64 ), + + 67 * 6 ) * - 24
----
24

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT + COALESCE ( - + COUNT ( DISTINCT 72 ), + 33 + + ( - 64 ), + + 67 * 6 ) * - 24
----
24

query I rowsort
SELECT 35 * 69
----
2415

query I rowsort
SELECT ALL + 98 * + 60 AS col0
----
5880

query I rowsort
SELECT ALL - ( - 34 ) + + 46
----
80

query I rowsort
SELECT ALL 64 - + + 35 + + - 18 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT CASE + 71 WHEN + 8 THEN + 12 END * + 13 * + ( - 40 ) * + 56 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT CASE + 71 WHEN + 8 THEN + 12 END * + 13 * + ( - 40 ) * + 56 + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2524
SELECT 76 + 57 AS col2, + CAST( NULL AS SIGNED ) AS col1
----
133
NULL

skipif mysql # not compatible
query II rowsort label-2524
SELECT 76 + 57 AS col2, + CAST ( NULL AS INTEGER ) AS col1
----
133
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT CAST( - + 73 AS SIGNED ) * + 79 + - - 93
----
-5674

skipif mysql # not compatible
query I rowsort label-2525
SELECT CAST ( - + 73 AS INTEGER ) * + 79 + - - 93
----
-5674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT DISTINCT - - 75 DIV - + COUNT( * ) DIV - COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - - 75 / - + COUNT ( * ) / - COUNT ( * ) AS col0
----
75

query I rowsort
SELECT - 41 - 92 * + 40 - 54
----
-3775

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL MIN( ( + + 10 ) ) * + 44
----
440

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL MIN ( ( + + 10 ) ) * + 44
----
440

query I rowsort
SELECT ALL - + 25 * - ( 51 ) AS col1
----
1275

query I rowsort
SELECT 14 + 30 * 75
----
2264

query I rowsort
SELECT DISTINCT 42 * - 30
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT ALL - CASE - ( ( COALESCE ( + 24, - COUNT( * ) ) ) ) WHEN + SUM( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE 92 + - 12 * - 48 END
----
-668

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - CASE - ( ( COALESCE ( + 24, - COUNT ( * ) ) ) ) WHEN + SUM ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 92 + - 12 * - 48 END
----
-668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2533
SELECT - + 45 / - MIN( DISTINCT + CAST( + + 97 AS DECIMAL ) ) - 13 + CASE + ( + 56 ) WHEN 75 * COUNT( * ) THEN ( + ( - CAST( CAST( 7 AS SIGNED ) AS SIGNED ) ) ) + CASE 38 + 64 WHEN 10 THEN NULL WHEN 80 + + 1 THEN 52 * 98 + 81 ELSE NULL END / - 79 WHEN + 62 THEN + COUNT( * ) + - 45 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT - + 45 / - MIN ( DISTINCT + CAST ( + + 97 AS REAL ) ) - 13 + CASE + ( + 56 ) WHEN 75 * COUNT ( * ) THEN ( + ( - CAST ( CAST ( 7 AS INTEGER ) AS INTEGER ) ) ) + CASE 38 + 64 WHEN 10 THEN NULL WHEN 80 + + 1 THEN 52 * 98 + 81 ELSE NULL END / - 79 WHEN + 62 THEN + COUNT ( * ) + - 45 END AS col0
----
NULL

query I rowsort
SELECT 63 * 38
----
2394

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT 9 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT 9 / + 87
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2536
SELECT 53 DIV 73, + 59 DIV 44 AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-2536
SELECT 53 / 73, + 59 / 44 AS col2
----
0
1

query I rowsort
SELECT DISTINCT - 97 + - - 7 col1
----
-90

query I rowsort
SELECT DISTINCT + 17 + 56 AS col0
----
73

query I rowsort
SELECT DISTINCT 53 + + 26 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT ALL + + 62 + - COUNT( * ) + - 2 + + 93 * SUM( ALL - - 3 ) * + - 88 AS col0
----
-24493

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL + + 62 + - COUNT ( * ) + - 2 + + 93 * SUM ( ALL - - 3 ) * + - 88 AS col0
----
-24493

query II rowsort
SELECT + 49, + 8 col0
----
49
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2542
SELECT ALL - MAX( ALL - 42 ) + + 56 AS col0, + COUNT( * ) * 45 * - 77 - + 96
----
98
-3561

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL - MAX ( ALL - 42 ) + + 56 AS col0, + COUNT ( * ) * 45 * - 77 - + 96
----
98
-3561

query I rowsort
SELECT 16 - - 59 col2
----
75

query I rowsort
SELECT ( 14 ) - - 84 - - - 78 + 6 AS col0
----
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT DISTINCT NULLIF ( MIN( + 93 ), + - 52 * - 37 - - 86 + CAST( NULL AS SIGNED ) / SUM( 40 ) ) + - 99 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT NULLIF ( MIN ( + 93 ), + - 52 * - 37 - - 86 + CAST ( NULL AS INTEGER ) / SUM ( 40 ) ) + - 99 AS col0
----
-6

query II rowsort
SELECT DISTINCT - COALESCE ( - 28, + - 60 ), - 98 col0
----
28
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT 44 + - 96 * - - COUNT( * ) + 74 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2548
SELECT 44 + - 96 * - - COUNT ( * ) + 74 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2549
SELECT DISTINCT 22 AS col1, ( + + CAST( + COUNT( + + 36 ) AS SIGNED ) ) / - 74 * + CASE WHEN NOT ( 23 ) = NULL THEN 3 * CASE + ( 91 ) * 65 WHEN - 30 / 19 THEN 47 ELSE SUM( DISTINCT - 83 ) END ELSE NULL END
----
22
NULL

skipif mysql # not compatible
query II rowsort label-2549
SELECT DISTINCT 22 AS col1, ( + + CAST ( + COUNT ( + + 36 ) AS INTEGER ) ) / - 74 * + CASE WHEN NOT ( 23 ) = NULL THEN 3 * CASE + ( 91 ) * 65 WHEN - 30 / 19 THEN 47 ELSE SUM ( DISTINCT - 83 ) END ELSE NULL END
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2550
SELECT 25 + - + ( COUNT( * ) ) + - - 70 * + 40 + + 18 AS col0, 41 + - 31 AS col2
----
2842
10

skipif mysql # not compatible
query II rowsort label-2550
SELECT 25 + - + ( COUNT ( * ) ) + - - 70 * + 40 + + 18 AS col0, 41 + - 31 AS col2
----
2842
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT - 89 * - COUNT( * ) + + 47
----
136

skipif mysql # not compatible
query I rowsort label-2551
SELECT - 89 * - COUNT ( * ) + + 47
----
136

query I rowsort
SELECT ALL - 13 - 79 AS col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2553
SELECT 85 * - MAX( DISTINCT - 83 ) AS col1, - 19 DIV - 18 * - + COUNT( * )
----
7055
-1

skipif mysql # not compatible
query II rowsort label-2553
SELECT 85 * - MAX ( DISTINCT - 83 ) AS col1, - 19 / - 18 * - + COUNT ( * )
----
7055
-1

query I rowsort
SELECT 60 + 75
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL + 41 * - 21 * - - ( - - COUNT( + 18 ) ) col2
----
-861

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + 41 * - 21 * - - ( - - COUNT ( + 18 ) ) col2
----
-861

onlyif mysql # DIV for integer division: 
query II rowsort label-2556
SELECT 25 AS col0, - 91 DIV - 78 + + 96
----
25
97

skipif mysql # not compatible
query II rowsort label-2556
SELECT 25 AS col0, - 91 / - 78 + + 96
----
25
97

query I rowsort
SELECT DISTINCT + 68 * + + 34
----
2312

query I rowsort
SELECT + 47 * 10 * - 62 * - 10 AS col0
----
291400

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT + 99 AS col0, COUNT( * ) * - - 76 * - 67 AS col2
----
99
-5092

skipif mysql # not compatible
query II rowsort label-2559
SELECT + 99 AS col0, COUNT ( * ) * - - 76 * - 67 AS col2
----
99
-5092

query II rowsort
SELECT 86 + 63 + - 78 AS col0, 45
----
71
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT + 74 + + + 2 + + MAX( - 77 ) * + COUNT( * ) * - + 28
----
2232

skipif mysql # not compatible
query I rowsort label-2561
SELECT + 74 + + + 2 + + MAX ( - 77 ) * + COUNT ( * ) * - + 28
----
2232

query I rowsort
SELECT - 14 * - 89
----
1246

query I rowsort
SELECT ALL - - 98 + + - 70
----
28

query I rowsort
SELECT - + 48 + 84
----
36

query I rowsort
SELECT - - 73 + - COALESCE ( - + 61, + ( + 95 ) ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - 34 * COUNT( ALL + + 30 ) * + 87 + + 58 AS col1
----
-2900

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - 34 * COUNT ( ALL + + 30 ) * + 87 + + 58 AS col1
----
-2900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT - ( 52 ) * - COUNT( * ) DIV - + 62 * 42 + - - 37 + 85 + 40
----
162

skipif mysql # not compatible
query I rowsort label-2567
SELECT - ( 52 ) * - COUNT ( * ) / - + 62 * 42 + - - 37 + 85 + 40
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL - 69 * - 35 + + 20 + + - NULLIF ( - 85, - ( - + 95 ) + + COUNT( * ) ) * - 91
----
-5300

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - 69 * - 35 + + 20 + + - NULLIF ( - 85, - ( - + 95 ) + + COUNT ( * ) ) * - 91
----
-5300

query I rowsort
SELECT - 16 * + 10 AS col2
----
-160

query II rowsort
SELECT 92 col1, - 48 AS col2
----
92
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - ( + + MIN( + + 33 ) ) * - 52 AS col2
----
1716

skipif mysql # not compatible
query I rowsort label-2571
SELECT - ( + + MIN ( + + 33 ) ) * - 52 AS col2
----
1716

query I rowsort
SELECT + 0 + + 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT + COUNT( * ) + + + 19 + - COALESCE ( + CASE + - 79 WHEN + + NULLIF ( - 58, - 71 ) THEN COUNT( * ) + - 83 END, + 34, ( - 28 ) * - 5 ) - - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-2573
SELECT + COUNT ( * ) + + + 19 + - COALESCE ( + CASE + - 79 WHEN + + NULLIF ( - 58, - 71 ) THEN COUNT ( * ) + - 83 END, + 34, ( - 28 ) * - 5 ) - - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2574
SELECT ALL - + 81 * 68 + - 56, COUNT( * ) DIV 87 AS col1
----
-5564
0

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL - + 81 * 68 + - 56, COUNT ( * ) / 87 AS col1
----
-5564
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT + 54 * + 58 col1, - 81 * - 75 - - COUNT( * ) - + 99 + + 61 AS col0
----
3132
6038

skipif mysql # not compatible
query II rowsort label-2575
SELECT + 54 * + 58 col1, - 81 * - 75 - - COUNT ( * ) - + 99 + + 61 AS col0
----
3132
6038

query I rowsort
SELECT 16 * + CASE 94 WHEN - ( + + 33 ) THEN + + 50 + 76 WHEN + 82 + + 61 THEN NULL ELSE NULL END + + 32 * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT + 7 * + COUNT( * ) * + COALESCE ( - 11, 45 * - 34 ) * 19 + + 74 * - - ( - 94 ) * - 16 + + 81 AS col1
----
109914

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + 7 * + COUNT ( * ) * + COALESCE ( - 11, 45 * - 34 ) * 19 + + 74 * - - ( - 94 ) * - 16 + + 81 AS col1
----
109914

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL - COUNT( + + 66 ) * - ( + 84 ) - COUNT( DISTINCT - 10 )
----
83

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - COUNT ( + + 66 ) * - ( + 84 ) - COUNT ( DISTINCT - 10 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT SUM( + COALESCE ( - + 78, 80 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-2579
SELECT SUM ( + COALESCE ( - + 78, 80 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT + NULLIF ( - 19, - + 82 + + SUM( + - 0 ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2580
SELECT + NULLIF ( - 19, - + 82 + + SUM ( + - 0 ) ) AS col0
----
-19

query I rowsort
SELECT + 94 * 41
----
3854

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT + COUNT( * ) * + + 15 * - + MIN( ALL - 15 ) + ( + + MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) ) + - + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT + COUNT ( * ) * + + 15 * - + MIN ( ALL - 15 ) + ( + + MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) + - + 7 AS col2
----
NULL

query I rowsort
SELECT ALL 35 * - + 69 * + 21 AS col2
----
-50715

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT MAX( + 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2585
SELECT MAX ( + 87 ) AS col2
----
87

query I rowsort
SELECT - 47 + - 29 AS col1
----
-76

query I rowsort
SELECT + 58 * 21
----
1218

query I rowsort
SELECT - 64 * + 14 AS col2
----
-896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - CASE + + 73 WHEN - 45 THEN NULL WHEN + - 59 * - + MIN( + 54 ) * - 89 THEN - - COUNT( ALL + 84 ) ELSE ( - 39 ) * 4 END
----
156

skipif mysql # not compatible
query I rowsort label-2590
SELECT - CASE + + 73 WHEN - 45 THEN NULL WHEN + - 59 * - + MIN ( + 54 ) * - 89 THEN - - COUNT ( ALL + 84 ) ELSE ( - 39 ) * 4 END
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - MIN( - ( ( - 92 ) ) ) * 45
----
-4140

skipif mysql # not compatible
query I rowsort label-2591
SELECT - MIN ( - ( ( - 92 ) ) ) * 45
----
-4140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2592
SELECT - ( + COALESCE ( NULLIF ( + 9, - 46 * - + ( - CAST( NULL AS SIGNED ) ) * + + 7 + + MAX( 39 ) ), + 24 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-2592
SELECT - ( + COALESCE ( NULLIF ( + 9, - 46 * - + ( - CAST ( NULL AS INTEGER ) ) * + + 7 + + MAX ( 39 ) ), + 24 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT 72 * ( - 81 ) + - + 28 + + + 70 + + 62 + + - CASE - 60 WHEN - - SUM( DISTINCT - 42 ) * 1 THEN - 38 END * - 9 * + COUNT( * ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT 72 * ( - 81 ) + - + 28 + + + 70 + + 62 + + - CASE - 60 WHEN - - SUM ( DISTINCT - 42 ) * 1 THEN - 38 END * - 9 * + COUNT ( * ) * + 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2594
SELECT DISTINCT 34 * 17 * + 96 * - 18 AS col2, COUNT( * )
----
-998784
1

skipif mysql # not compatible
query II rowsort label-2594
SELECT DISTINCT 34 * 17 * + 96 * - 18 AS col2, COUNT ( * )
----
-998784
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - MIN( DISTINCT 91 ) * - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2595
SELECT - MIN ( DISTINCT 91 ) * - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2596
SELECT - MIN( + - 38 ) DIV - ( COALESCE ( 73, - 64, MIN( ALL + 36 ) + 91 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2596
SELECT - MIN ( + - 38 ) / - ( COALESCE ( 73, - 64, MIN ( ALL + 36 ) + 91 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + 76 - + COUNT( * ) * + - 6 col1
----
82

skipif mysql # not compatible
query I rowsort label-2597
SELECT + 76 - + COUNT ( * ) * + - 6 col1
----
82

query I rowsort
SELECT DISTINCT + - 8 + 37 AS col2
----
29

query I rowsort
SELECT + ( - 91 ) + - 73
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL - - SUM( ALL + 50 ) + + 89 * - - ( - - 5 ) col0
----
495

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - - SUM ( ALL + 50 ) + + 89 * - - ( - - 5 ) col0
----
495

query I rowsort
SELECT DISTINCT 86 + 64 - ( 81 ) * - 12 AS col0
----
1122

query I rowsort
SELECT DISTINCT 90 + + 35 * + 43 col2
----
1595

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL COUNT( ALL - - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL COUNT ( ALL - - 26 )
----
1

query I rowsort
SELECT ALL - + 3 * + 84 + 68 AS col2
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2605
SELECT ALL - COALESCE ( - 53, + + ( - + 47 ) DIV - NULLIF ( - - 22, + + ( - 93 ) DIV + - ( - 77 ) * 82 ) * CASE - 85 WHEN 8 DIV 37 + CAST( + ( - 60 ) AS SIGNED ) THEN + COUNT( * ) WHEN - 79 + + 42 THEN + 95 * COUNT( * ) END ) + - 32
----
21

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - COALESCE ( - 53, + + ( - + 47 ) / - NULLIF ( - - 22, + + ( - 93 ) / + - ( - 77 ) * 82 ) * CASE - 85 WHEN 8 / 37 + CAST ( + ( - 60 ) AS INTEGER ) THEN + COUNT ( * ) WHEN - 79 + + 42 THEN + 95 * COUNT ( * ) END ) + - 32
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2606
SELECT DISTINCT - 22 DIV + 60 + NULLIF ( - 96, - + CAST( NULL AS SIGNED ) ) * - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - 22 / + 60 + NULLIF ( - 96, - + CAST ( NULL AS INTEGER ) ) * - COUNT ( * )
----
96

query II rowsort
SELECT ALL + 99 col0, + 68
----
99
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT DISTINCT 54 * 76 DIV + 46
----
89

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT 54 * 76 / + 46
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT DISTINCT + CASE 35 WHEN - + 39 + + + 80 * + 58 * + - ( + CASE + COUNT( * ) WHEN + COUNT( * ) / - 73 + 33 + 3 * - 26 THEN NULL WHEN 39 / + CASE - COUNT( * ) WHEN ( + CAST( NULL AS SIGNED ) ) / - 55 THEN + 53 + + 24 WHEN - 43 THEN 60 * 93 WHEN SUM( COALESCE ( 52, + 0 / + 27 ) ) * COUNT( * ) THEN NULL END THEN NULL ELSE COUNT( * ) + 26 END ) THEN NULL WHEN + MIN( + 71 ) THEN COUNT( * ) ELSE NULL END / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT + CASE 35 WHEN - + 39 + + + 80 * + 58 * + - ( + CASE + COUNT ( * ) WHEN + COUNT ( * ) / - 73 + 33 + 3 * - 26 THEN NULL WHEN 39 / + CASE - COUNT ( * ) WHEN ( + CAST ( NULL AS INTEGER ) ) / - 55 THEN + 53 + + 24 WHEN - 43 THEN 60 * 93 WHEN SUM ( COALESCE ( 52, + 0 / + 27 ) ) * COUNT ( * ) THEN NULL END THEN NULL ELSE COUNT ( * ) + 26 END ) THEN NULL WHEN + MIN ( + 71 ) THEN COUNT ( * ) ELSE NULL END / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL 31 DIV + - 45 - 53 - + 40
----
-93

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL 31 / + - 45 - 53 - + 40
----
-93

query I rowsort
SELECT DISTINCT + 39 * - + 27 col2
----
-1053

query I rowsort
SELECT 49 * ( + 13 ) + + 69 + - 10
----
696

query I rowsort
SELECT + 71 * - 86 col0
----
-6106

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT + NULLIF ( 30, 38 DIV + 43 + - + 6 ) + + 21 + - ( + 88 ) + - 83 DIV 15 + 65 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2615
SELECT + NULLIF ( 30, 38 / + 43 + - + 6 ) + + 21 + - ( + 88 ) + - 83 / 15 + 65 AS col1
----
23

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

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

query I rowsort
SELECT + 5 * - 39 col2
----
-195

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

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

query I rowsort
SELECT + 51 + - ( - 86 ) + + + 26 - + 33 + 61
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT 65 * + - CAST( 41 AS SIGNED ) AS col0
----
-2665

skipif mysql # not compatible
query I rowsort label-2620
SELECT 65 * + - CAST ( 41 AS INTEGER ) AS col0
----
-2665

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL MAX( - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL MAX ( - 66 ) AS col1
----
-66

query II rowsort
SELECT - 83 col1, 42 col2
----
-83
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT 28 + + - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2623
SELECT 28 + + - COUNT ( * ) AS col0
----
27

query I rowsort
SELECT - NULLIF ( + + 22, + 70 - - 38 )
----
-22

query I rowsort
SELECT ALL 35 + 51 AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT ( + 62 ) + - + 79 DIV + COUNT( * ) + 30 + + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT ( + 62 ) + - + 79 / + COUNT ( * ) + 30 + + COUNT ( * ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT + COUNT( + - 78 ) + - + NULLIF ( - + 1, + 79 ) + + - COALESCE ( + 89, - + 20, - 80 )
----
-87

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + COUNT ( + - 78 ) + - + NULLIF ( - + 1, + 79 ) + + - COALESCE ( + 89, - + 20, - 80 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT COUNT( * ) + - + 3 - CAST( SUM( - - ( - + 2 ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT COUNT ( * ) + - + 3 - CAST ( SUM ( - - ( - + 2 ) ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL 93 + + - 41 * - ( - 35 ) + 64 + 86 * + COUNT( * ) * + 65 AS col0
----
4312

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL 93 + + - 41 * - ( - 35 ) + 64 + 86 * + COUNT ( * ) * + 65 AS col0
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT + SUM( 62 ) + + COUNT( * ) - 59
----
4

skipif mysql # not compatible
query I rowsort label-2630
SELECT + SUM ( 62 ) + + COUNT ( * ) - 59
----
4

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

query I rowsort
SELECT ALL + 85 - + 30
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT 94 + + COALESCE ( NULLIF ( + MAX( DISTINCT - + 50 ), - - 75 ), + + 15, - + COALESCE ( - 95, - - 99 ) + + COUNT( ALL 64 ) )
----
44

skipif mysql # not compatible
query I rowsort label-2634
SELECT 94 + + COALESCE ( NULLIF ( + MAX ( DISTINCT - + 50 ), - - 75 ), + + 15, - + COALESCE ( - 95, - - 99 ) + + COUNT ( ALL 64 ) )
----
44

query I rowsort
SELECT + 25 * 41
----
1025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2636
SELECT ALL + ( - - 56 ) * + 98 DIV - COUNT( * ) AS col1
----
-5488

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + ( - - 56 ) * + 98 / - COUNT ( * ) AS col1
----
-5488

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL COUNT( * ) - - MIN( + 87 )
----
88

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL COUNT ( * ) - - MIN ( + 87 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT + 67 * - + NULLIF ( - MAX( ( - + 41 ) ), - COUNT( * ) + - CASE 29 WHEN + 13 THEN 57 * - 57 END ) + 47 AS col1
----
-2700

skipif mysql # not compatible
query I rowsort label-2639
SELECT + 67 * - + NULLIF ( - MAX ( ( - + 41 ) ), - COUNT ( * ) + - CASE 29 WHEN + 13 THEN 57 * - 57 END ) + 47 AS col1
----
-2700

query I rowsort
SELECT ALL - 44 - + 94 * - 57 AS col0
----
5314

query I rowsort
SELECT DISTINCT + 71 * - 21 AS col0
----
-1491

query I rowsort
SELECT COALESCE ( + CASE - 2 WHEN - 36 THEN - + 82 ELSE NULL END, + 81 + + 35 ) * 43 + + + 73
----
5061

query I rowsort
SELECT 54 * + 72 * + 38
----
147744

query II rowsort
SELECT 98 AS col0, + 8 - - 51 + + NULLIF ( - - 16, - 2 + + 38 )
----
98
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2645
SELECT + ( + COALESCE ( COUNT( * ), + 74 * + + CAST( - 92 AS SIGNED ) DIV + 45 + 83 + + MAX( + 76 ) ) ) DIV 44 + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2645
SELECT + ( + COALESCE ( COUNT ( * ), + 74 * + + CAST ( - 92 AS INTEGER ) / + 45 + 83 + + MAX ( + 76 ) ) ) / 44 + 26 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT 70 + + - 27 + + + 93 + + ( + NULLIF ( + - 33, COUNT( * ) * + COALESCE ( + - CASE - - SUM( - 47 ) WHEN - 65 * - CASE + 47 WHEN - MAX( - 24 ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE 25 END THEN NULL WHEN - CAST( NULL AS SIGNED ) + 2 THEN + 72 ELSE NULL END, + 6 + + CASE - 81 WHEN SUM( DISTINCT 12 ) / + 37 THEN 0 + 29 END ) ) )
----
103

skipif mysql # not compatible
query I rowsort label-2646
SELECT 70 + + - 27 + + + 93 + + ( + NULLIF ( + - 33, COUNT ( * ) * + COALESCE ( + - CASE - - SUM ( - 47 ) WHEN - 65 * - CASE + 47 WHEN - MAX ( - 24 ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE 25 END THEN NULL WHEN - CAST ( NULL AS INTEGER ) + 2 THEN + 72 ELSE NULL END, + 6 + + CASE - 81 WHEN SUM ( DISTINCT 12 ) / + 37 THEN 0 + 29 END ) ) )
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT ALL - 5 col2, MIN( + 32 )
----
-5
32

skipif mysql # not compatible
query II rowsort label-2647
SELECT ALL - 5 col2, MIN ( + 32 )
----
-5
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT 44 * 5 * + COUNT( * ) AS col0
----
220

skipif mysql # not compatible
query I rowsort label-2648
SELECT 44 * 5 * + COUNT ( * ) AS col0
----
220

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT MIN( + + CAST( - + 21 AS SIGNED ) ) * + 5
----
-105

skipif mysql # not compatible
query I rowsort label-2650
SELECT MIN ( + + CAST ( - + 21 AS INTEGER ) ) * + 5
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT DISTINCT + 8 DIV - 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + 8 / - 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT 69 * + 63 * + COUNT( * )
----
4347

skipif mysql # not compatible
query I rowsort label-2652
SELECT 69 * + 63 * + COUNT ( * )
----
4347

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL COUNT( DISTINCT ( 16 ) ) * - 69 + + 66 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL COUNT ( DISTINCT ( 16 ) ) * - 69 + + 66 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2654
SELECT DISTINCT + 9 * + + 54 * - CAST( - 48 AS SIGNED ) * + COUNT( * ) + ( + + 96 )
----
23424

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 9 * + + 54 * - CAST ( - 48 AS INTEGER ) * + COUNT ( * ) + ( + + 96 )
----
23424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL - 54 + - 46 + CASE + 98 WHEN COUNT( * ) THEN NULL WHEN - - COUNT( * ) * - CAST( NULL AS SIGNED ) - - ( 51 ) + - ( 60 ) / - 77 THEN 86 WHEN - 1 THEN - COUNT( * ) + + 37 / + 30 END + 52 * 40 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - 54 + - 46 + CASE + 98 WHEN COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - - ( 51 ) + - ( 60 ) / - 77 THEN 86 WHEN - 1 THEN - COUNT ( * ) + + 37 / + 30 END + 52 * 40 * + 30
----
NULL

query I rowsort
SELECT ALL 40 + - 33 - - 59 * - - 60 * + 12 + - NULLIF ( - - 96, + - 79 )
----
42391

query II rowsort
SELECT 35, - 69 col2
----
35
-69

query I rowsort
SELECT 84 * + - 64 AS col1
----
-5376

query I rowsort
SELECT ALL 24 + - - 89
----
113

query I rowsort
SELECT - - ( ( 79 ) ) * - - NULLIF ( 37, + + 74 ) + + 3 * - 75 + - - 52 * - + 81 AS col2
----
-1514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2661
SELECT - - CASE + 22 WHEN 80 THEN 60 * 32 + + MAX( ALL + 39 ) * - 88 + + 3 WHEN COUNT( * ) + + - CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) THEN 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT - - CASE + 22 WHEN 80 THEN 60 * 32 + + MAX ( ALL + 39 ) * - 88 + + 3 WHEN COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) THEN 18 ELSE NULL END
----
NULL

query I rowsort
SELECT + 74 + - 35 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT + SUM( 35 ) * - NULLIF ( 81, - 93 * + 33 * 25 + - 58 / - 75 * 34 * - 3 )
----
-2835

skipif mysql # not compatible
query I rowsort label-2663
SELECT + SUM ( 35 ) * - NULLIF ( 81, - 93 * + 33 * 25 + - 58 / - 75 * 34 * - 3 )
----
-2835

query II rowsort
SELECT - 47 AS col1, - 38 * 59
----
-47
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL SUM( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL SUM ( - 83 )
----
-83

query II rowsort
SELECT DISTINCT - 81 AS col0, - ( 36 )
----
-81
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT ALL 93 * - + NULLIF ( - 20, - 26 ) AS col0, + 17 * COUNT( ALL 27 )
----
1860
17

skipif mysql # not compatible
query II rowsort label-2667
SELECT ALL 93 * - + NULLIF ( - 20, - 26 ) AS col0, + 17 * COUNT ( ALL 27 )
----
1860
17

onlyif mysql # aggregate syntax: 
query III rowsort label-2668
SELECT DISTINCT 25 AS col2, + 22 * + 18 * + 38, - MIN( - 84 ) AS col1
----
25
15048
84

skipif mysql # not compatible
query III rowsort label-2668
SELECT DISTINCT 25 AS col2, + 22 * + 18 * + 38, - MIN ( - 84 ) AS col1
----
25
15048
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + SUM( + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + SUM ( + 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT 61 AS col0, - 67 * - ( + 38 ) * - 10 + + COUNT( * ) AS col0
----
61
-25459

skipif mysql # not compatible
query II rowsort label-2670
SELECT 61 AS col0, - 67 * - ( + 38 ) * - 10 + + COUNT ( * ) AS col0
----
61
-25459

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT DISTINCT 9 AS col2, + COUNT( 24 )
----
9
1

skipif mysql # not compatible
query II rowsort label-2671
SELECT DISTINCT 9 AS col2, + COUNT ( 24 )
----
9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT MIN( - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2672
SELECT MIN ( - 61 ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT 50 - + CAST( + 25 AS SIGNED ) + COUNT( * ) + - + COALESCE ( - 42, + 39 + - 8 + + 1 * + - COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-2673
SELECT 50 - + CAST ( + 25 AS INTEGER ) + COUNT ( * ) + - + COALESCE ( - 42, + 39 + - 8 + + 1 * + - COUNT ( * ) )
----
68

query I rowsort
SELECT ALL 76 * - + 93 AS col1
----
-7068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT 79 * + + COUNT( * ) DIV 59 DIV 15 * - + ( - 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT 79 * + + COUNT ( * ) / 59 / 15 * - + ( - 89 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT 41 * + COUNT( * ) + 91 * + 30 col1
----
2771

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT 41 * + COUNT ( * ) + 91 * + 30 col1
----
2771

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT COUNT( * ) * - 84 + + + 89 col1
----
5

skipif mysql # not compatible
query I rowsort label-2677
SELECT COUNT ( * ) * - 84 + + + 89 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + COALESCE ( 82, - + COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-2678
SELECT + COALESCE ( 82, - + COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT + ( MIN( ALL + 43 ) ) + NULLIF ( + + 85, ( 53 ) ) + 53 - - SUM( ALL - 30 ), 19 * - 72 AS col1
----
151
-1368

skipif mysql # not compatible
query II rowsort label-2679
SELECT + ( MIN ( ALL + 43 ) ) + NULLIF ( + + 85, ( 53 ) ) + 53 - - SUM ( ALL - 30 ), 19 * - 72 AS col1
----
151
-1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2680
SELECT - COUNT( * ) + + CAST( + + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS SIGNED ) + - 12 * - - 57 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT - COUNT ( * ) + + CAST ( + + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS INTEGER ) + - 12 * - - 57 * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT DISTINCT + + COUNT( 8 ) AS col2, 41
----
1
41

skipif mysql # not compatible
query II rowsort label-2681
SELECT DISTINCT + + COUNT ( 8 ) AS col2, 41
----
1
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2682
SELECT + COALESCE ( + 65, + CAST( NULL AS SIGNED ) ) + - CAST( + - CASE NULLIF ( - - 34, + 62 ) WHEN COUNT( * ) THEN + 40 ELSE NULL END AS DECIMAL ) + COALESCE ( - - 22, - 10 * - 11 ) + NULLIF ( - MIN( DISTINCT 25 ) + 24, COUNT( * ) ) * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT + COALESCE ( + 65, + CAST ( NULL AS INTEGER ) ) + - CAST ( + - CASE NULLIF ( - - 34, + 62 ) WHEN COUNT ( * ) THEN + 40 ELSE NULL END AS REAL ) + COALESCE ( - - 22, - 10 * - 11 ) + NULLIF ( - MIN ( DISTINCT 25 ) + 24, COUNT ( * ) ) * + 69 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + 7 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT + 41 + - COUNT( * ) AS col0, 75 AS col1
----
40
75

skipif mysql # not compatible
query II rowsort label-2684
SELECT + 41 + - COUNT ( * ) AS col0, 75 AS col1
----
40
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT + SUM( DISTINCT + 72 ) * - 54 AS col0, + 11 * - 43 AS col1
----
-3888
-473

skipif mysql # not compatible
query II rowsort label-2685
SELECT + SUM ( DISTINCT + 72 ) * - 54 AS col0, + 11 * - 43 AS col1
----
-3888
-473

query I rowsort
SELECT - + 38 * 20 + + + 78
----
-682

query I rowsort
SELECT - 94 * 57 AS col2
----
-5358

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL + ( MAX( - 54 ) ) * - 70
----
3780

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL + ( MAX ( - 54 ) ) * - 70
----
3780

query I rowsort
SELECT + - 39 * 1 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2690
SELECT DISTINCT ( + COUNT( * ) ) AS col2, 66 * 29
----
1
1914

skipif mysql # not compatible
query II rowsort label-2690
SELECT DISTINCT ( + COUNT ( * ) ) AS col2, 66 * 29
----
1
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT - 83 + - + 86 * + ( + ( + 40 ) ) + + + COUNT( * )
----
-3522

skipif mysql # not compatible
query I rowsort label-2691
SELECT - 83 + - + 86 * + ( + ( + 40 ) ) + + + COUNT ( * )
----
-3522

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT - COUNT( * ) + - - 3 - 83 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2692
SELECT - COUNT ( * ) + - - 3 - 83 AS col1
----
-81

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

query I rowsort
SELECT + 36 + 73 AS col1
----
109

query I rowsort
SELECT ALL - 27 * + 98
----
-2646

query II rowsort
SELECT + 12 + + 11 * - 42 AS col1, 63 AS col0
----
-450
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2697
SELECT COALESCE ( - ( - 36 ), + + MAX( DISTINCT 58 ) - - - COUNT( * ) ) DIV + COALESCE ( 63, + + 65 DIV ( - + COUNT( * ) ), - 10 * COUNT( * ), 32 + NULLIF ( - 70 + 65, 7 ) ) + + 57
----
57

skipif mysql # not compatible
query I rowsort label-2697
SELECT COALESCE ( - ( - 36 ), + + MAX ( DISTINCT 58 ) - - - COUNT ( * ) ) / + COALESCE ( 63, + + 65 / ( - + COUNT ( * ) ), - 10 * COUNT ( * ), 32 + NULLIF ( - 70 + 65, 7 ) ) + + 57
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2698
SELECT ALL + 30 AS col2, - COUNT( * ) + - 82 AS col0
----
30
-83

skipif mysql # not compatible
query II rowsort label-2698
SELECT ALL + 30 AS col2, - COUNT ( * ) + - 82 AS col0
----
30
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT ALL 23 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL 23 / - 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2700
SELECT - 34 + + + 7 * ( - CAST( NULL AS SIGNED ) ) + 36 * - - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT - 34 + + + 7 * ( - CAST ( NULL AS INTEGER ) ) + 36 * - - 99 AS col0
----
NULL

query I rowsort
SELECT + 46 * - 20 AS col2
----
-920

query I rowsort
SELECT DISTINCT 58 * - 60 * + 19 * - 37
----
2446440

query I rowsort
SELECT ALL 55 * + + 34 + + 37 col1
----
1907

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2704
SELECT ALL 87 DIV - - CAST( + 24 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL 87 / - - CAST ( + 24 AS INTEGER )
----
3

query I rowsort
SELECT DISTINCT 22 * 23 AS col0
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL - 27 * + COUNT( + - 86 ) - - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - 27 * + COUNT ( + - 86 ) - - 27 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2707
SELECT DISTINCT - - CAST( CAST( + - 0 AS SIGNED ) AS SIGNED ) * - 69 * 0 - - CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - - CAST ( CAST ( + - 0 AS INTEGER ) AS INTEGER ) * - 69 * 0 - - CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - 12 * + 90 + + 74 AS col0
----
-1006

query I rowsort
SELECT + + CASE 36 WHEN - - 71 THEN - 33 ELSE NULL END
----
NULL

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

query II rowsort
SELECT + + 28, + 18 col1
----
28
18

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2713
SELECT 72, + 38 DIV - 8 AS col2
----
72
-4

skipif mysql # not compatible
query II rowsort label-2713
SELECT 72, + 38 / - 8 AS col2
----
72
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT SUM( + + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-2714
SELECT SUM ( + + 98 )
----
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL - 57 * + 29 + 86 - + - 86 * + 15 * + + COUNT( * ) + 81 AS col1
----
-196

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL - 57 * + 29 + 86 - + - 86 * + 15 * + + COUNT ( * ) + 81 AS col1
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT - ( + - COUNT( * ) ) * - CAST( NULL AS SIGNED ) - - ( - 24 ) + - 56
----
NULL

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

query II rowsort
SELECT - + 85, 56 + 63 - + 17 * + 47 AS col0
----
-85
-680

query II rowsort
SELECT ALL + 28 col0, NULLIF ( 29, - 77 - - 44 )
----
28
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - - SUM( DISTINCT - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-2720
SELECT - - SUM ( DISTINCT - - 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT - + 77 + - - CAST( + - ( - 56 ) AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-2721
SELECT - + 77 + - - CAST ( + - ( - 56 ) AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL - 13 * - + CASE + 96 WHEN 44 THEN - 89 * + - COUNT( DISTINCT + 12 ) * 40 + - + 57 END * + 81 + + + 25 - + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - 13 * - + CASE + 96 WHEN 44 THEN - 89 * + - COUNT ( DISTINCT + 12 ) * 40 + - + 57 END * + 81 + + + 25 - + - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - - COUNT( * ) + + ( + MIN( ALL + - 7 ) ) * 71 * - + 63 * + 25 AS col1
----
782776

skipif mysql # not compatible
query I rowsort label-2723
SELECT - - COUNT ( * ) + + ( + MIN ( ALL + - 7 ) ) * 71 * - + 63 * + 25 AS col1
----
782776

query I rowsort
SELECT ALL + 67 + - - 71 col2
----
138

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL + 95 * - CASE - 94 WHEN + + ( - - 78 ) THEN COUNT( * ) * + CAST( NULL AS SIGNED ) WHEN 80 * - - 52 * + 25 * + - 22 - 61 + ( - 7 ) THEN NULL END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + 95 * - CASE - 94 WHEN + + ( - - 78 ) THEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) WHEN 80 * - - 52 * + 25 * + - 22 - 61 + ( - 7 ) THEN NULL END * 88
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 59, - 85 ) + + 9 AS col2
----
68

query I rowsort
SELECT - 71 - 73 * + - 31 AS col1
----
2192

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT DISTINCT + 77 + + 27 * COALESCE ( - 70, + 30 - + 88, - + 81 + - 13 + - + 69 + + + 33 ) * - - 82 - COUNT( * ) AS col1, NULLIF ( + + 56, 71 )
----
-154904
56

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT + 77 + + 27 * COALESCE ( - 70, + 30 - + 88, - + 81 + - 13 + - + 69 + + + 33 ) * - - 82 - COUNT ( * ) AS col1, NULLIF ( + + 56, 71 )
----
-154904
56

query I rowsort
SELECT ALL - 22 + 2
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT 18 + - - COUNT( * ) * 72
----
90

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT 18 + - - COUNT ( * ) * 72
----
90

query I rowsort
SELECT 59 * + 65 * 63
----
241605

query I rowsort
SELECT 95 * - ( 21 ) AS col2
----
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL COUNT( * ) + - - 23
----
24

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL COUNT ( * ) + - - 23
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL 17 + - - ( + COUNT( * ) ) * - 13 * + 35 * - 99 AS col1
----
45062

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL 17 + - - ( + COUNT ( * ) ) * - 13 * + 35 * - 99 AS col1
----
45062

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

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

query I rowsort
SELECT ALL 81 - - + 68
----
149

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

query I rowsort
SELECT + 96 - 67
----
29

query I rowsort
SELECT + 35 * 52 AS col1
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT ALL - + CASE + 52 WHEN + 8 - - 24 * + 26 THEN - + 1 WHEN - CAST( + 90 AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - + CASE + 52 WHEN + 8 - - 24 * + 26 THEN - + 1 WHEN - CAST ( + 90 AS INTEGER ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ( - 52 ) * - 93 AS col0
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL - MAX( DISTINCT 24 ) * + - COUNT( * ) * + + 15
----
360

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - MAX ( DISTINCT 24 ) * + - COUNT ( * ) * + + 15
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + 63 + SUM( DISTINCT - 8 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2745
SELECT + 63 + SUM ( DISTINCT - 8 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT ALL 32 DIV - ( + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL 32 / - ( + 24 )
----
-1

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

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

query I rowsort
SELECT ALL - - 17 * - + 86
----
-1462

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

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

query I rowsort
SELECT ALL 59 * - 26 AS col2
----
-1534

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT 7 DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT 7 / + 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT ALL - CAST( NULL AS SIGNED ) * 91 / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - CAST ( NULL AS INTEGER ) * 91 / + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + 51 * + SUM( - 74 ) AS col1
----
-3774

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 51 * + SUM ( - 74 ) AS col1
----
-3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT + NULLIF ( NULLIF ( 46, + 64 - - + 4 ), 15 * + + 5 * - + 90 * 16 * + + NULLIF ( - - 15, - + CAST( 87 AS SIGNED ) ) + + 99 + ( COALESCE ( 35, MAX( DISTINCT + 4 ), 85 / - 71 ) ) * - 82 * + 43 + + 8 * 25 ) + 15
----
61

skipif mysql # not compatible
query I rowsort label-2754
SELECT + NULLIF ( NULLIF ( 46, + 64 - - + 4 ), 15 * + + 5 * - + 90 * 16 * + + NULLIF ( - - 15, - + CAST ( 87 AS INTEGER ) ) + + 99 + ( COALESCE ( 35, MAX ( DISTINCT + 4 ), 85 / - 71 ) ) * - 82 * + 43 + + 8 * 25 ) + 15
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT - + 75 + + 69 + 45 + MIN( 41 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - + 75 + + 69 + 45 + MIN ( 41 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2756
SELECT DISTINCT + + 12 + + 88 * + CAST( + - SUM( NULLIF ( 44, + - 58 ) ) AS SIGNED )
----
-3860

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + + 12 + + 88 * + CAST ( + - SUM ( NULLIF ( 44, + - 58 ) ) AS INTEGER )
----
-3860

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT MIN( ALL ( - 67 ) ) * + 77, 21 - + CASE - 83 WHEN 96 + - - COUNT( * ) * COUNT( * ) / - MIN( - + 75 ) THEN 11 END AS col2
----
-5159
NULL

skipif mysql # not compatible
query II rowsort label-2757
SELECT MIN ( ALL ( - 67 ) ) * + 77, 21 - + CASE - 83 WHEN 96 + - - COUNT ( * ) * COUNT ( * ) / - MIN ( - + 75 ) THEN 11 END AS col2
----
-5159
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL + MAX( + 10 ) * + - 37 AS col0
----
-370

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + MAX ( + 10 ) * + - 37 AS col0
----
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT 69 DIV - - 29
----
2

skipif mysql # not compatible
query I rowsort label-2761
SELECT 69 / - - 29
----
2

query I rowsort
SELECT ALL 95 + + - 85 * + 69 * + 17 AS col2
----
-99610

query I rowsort
SELECT ALL - 36 + + 72 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT DISTINCT + 81 DIV - - COALESCE ( 26, 18, + - 37 )
----
3

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + 81 / - - COALESCE ( 26, 18, + - 37 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT CASE - 14 WHEN - 45 * 67 * - MAX( - - 9 ) * ( COUNT( DISTINCT - 8 ) ) * 64 - - - 68 * 45 * - + 80 - + 97 + - + 7 * - 24 THEN - 71 + + COUNT( * ) WHEN 10 THEN NULL END * + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT CASE - 14 WHEN - 45 * 67 * - MAX ( - - 9 ) * ( COUNT ( DISTINCT - 8 ) ) * 64 - - - 68 * 45 * - + 80 - + 97 + - + 7 * - 24 THEN - 71 + + COUNT ( * ) WHEN 10 THEN NULL END * + 66 AS col1
----
NULL

query I rowsort
SELECT ALL + 64 * + 25
----
1600

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

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

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

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

query I rowsort
SELECT 78 * ( 21 ) AS col2
----
1638

query I rowsort
SELECT 85 + 81
----
166

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

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

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

query I rowsort
SELECT 94 + + 1 AS col2
----
95

query I rowsort
SELECT ALL - 92 - 71 AS col1
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL CASE 81 WHEN ( ( + 28 ) ) THEN + + 92 WHEN - ( - 87 ) THEN COUNT( * ) * - 82 * + 34 + - - COUNT( * ) WHEN 53 * COUNT( * ) THEN - 17 / + 2 - + ( + COUNT( * ) ) END / 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL CASE 81 WHEN ( ( + 28 ) ) THEN + + 92 WHEN - ( - 87 ) THEN COUNT ( * ) * - 82 * + 34 + - - COUNT ( * ) WHEN 53 * COUNT ( * ) THEN - 17 / + 2 - + ( + COUNT ( * ) ) END / 82
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2778
SELECT COUNT( * ) / + CAST( + 38 AS SIGNED ) * + + 86 * - CAST( NULL AS SIGNED ) + + ( + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT COUNT ( * ) / + CAST ( + 38 AS INTEGER ) * + + 86 * - CAST ( NULL AS INTEGER ) + + ( + 75 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2779
SELECT DISTINCT + COALESCE ( 26, - + 9 ) / + - 31 + 37 * 19 * - 30 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT + COALESCE ( 26, - + 9 ) / + - 31 + 37 * 19 * - 30 - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 92 * + + ( + + 98 ) + ( + + ( + 63 ) ) * 61
----
12859

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

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

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

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

query I rowsort
SELECT DISTINCT - - CASE 72 WHEN - + 62 + - ( 46 ) THEN 5 WHEN - 93 * - 21 * 65 THEN NULL END AS col0
----
NULL

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

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

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

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

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

query I rowsort
SELECT NULLIF ( - + 11, + + 77 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT + 69 * 78 * ( - COUNT( * ) ) + + 95 col2, 31 * 89 AS col0
----
-5287
2759

skipif mysql # not compatible
query II rowsort label-2788
SELECT + 69 * 78 * ( - COUNT ( * ) ) + + 95 col2, 31 * 89 AS col0
----
-5287
2759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2789
SELECT DISTINCT + - COUNT( * ) * + + 50 DIV - 77 * + MIN( ALL 14 ) * - 83
----
0

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT + - COUNT ( * ) * + + 50 / - 77 * + MIN ( ALL 14 ) * - 83
----
0

query II rowsort
SELECT 91 * + - 43 * + 46 AS col1, - 54
----
-179998
-54

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

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

query I rowsort
SELECT ALL - 27 + 70 + - 54
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL MAX( + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL MAX ( + 69 ) AS col0
----
69

query I rowsort
SELECT DISTINCT + 94 + + + 11 + 77
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2795
SELECT ALL MAX( + - 42 ) / - - CAST( NULL AS SIGNED ) / + + MAX( 7 ), - 97 AS col2
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-2795
SELECT ALL MAX ( + - 42 ) / - - CAST ( NULL AS INTEGER ) / + + MAX ( 7 ), - 97 AS col2
----
NULL
-97

query I rowsort
SELECT DISTINCT 42 * - 41 AS col0
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT MIN( + 67 ) * - 43 AS col1
----
-2881

skipif mysql # not compatible
query I rowsort label-2797
SELECT MIN ( + 67 ) * - 43 AS col1
----
-2881

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2798
SELECT ALL 54 + - 56 + - COUNT( * ) * + 9 + 73 * - 66, - 35 DIV - - COUNT( * ) AS col2
----
-4829
-35

skipif mysql # not compatible
query II rowsort label-2798
SELECT ALL 54 + - 56 + - COUNT ( * ) * + 9 + 73 * - 66, - 35 / - - COUNT ( * ) AS col2
----
-4829
-35

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

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

query I rowsort
SELECT ALL 71 * + + 19 * + 51
----
68799

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT + 77 * + - SUM( DISTINCT - + 66 )
----
5082

skipif mysql # not compatible
query I rowsort label-2801
SELECT + 77 * + - SUM ( DISTINCT - + 66 )
----
5082

query I rowsort
SELECT + 36 + 71 + + 73
----
180

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

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

query I rowsort
SELECT DISTINCT 6 * + - 10 col0
----
-60

query I rowsort
SELECT DISTINCT 65 - + 15 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL 41 - SUM( ALL + + 97 )
----
-56

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL 41 - SUM ( ALL + + 97 )
----
-56

query I rowsort
SELECT - COALESCE ( - 33, + 82 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT 70 * + - MIN( 9 ) * 56 * SUM( - 34 )
----
1199520

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT 70 * + - MIN ( 9 ) * 56 * SUM ( - 34 )
----
1199520

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT + 15 * - COUNT( DISTINCT + 5 ) * + 23
----
-345

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + 15 * - COUNT ( DISTINCT + 5 ) * + 23
----
-345

query I rowsort
SELECT ALL COALESCE ( - 75, - - 51 * ( 50 ), 41 ) col0
----
-75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT ALL MAX( ALL 43 ) DIV + - MAX( DISTINCT 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL MAX ( ALL 43 ) / + - MAX ( DISTINCT 25 )
----
-1

query I rowsort
SELECT + ( + 35 ) - 18 AS col1
----
17

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

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL COUNT ( * ) AS col2, - COUNT ( - - ( + + 48 ) )
----
1
-1

query I rowsort
SELECT - 16 * - + 93 AS col2
----
1488

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

skipif mysql # not compatible
query I rowsort label-2816
SELECT - COUNT ( * ) * 23 / - 64 AS col2
----
0

query I rowsort
SELECT ALL + - 37 * + 63 AS col2
----
-2331

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - ( COALESCE ( - 24, 89 + + 72, + - 22, + ( + - 62 ) ) ) - 29 + COUNT( * ) * 46 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2818
SELECT - ( COALESCE ( - 24, 89 + + 72, + - 22, + ( + - 62 ) ) ) - 29 + COUNT ( * ) * 46 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL + + MIN( - 34 ) * 27 + + 75 + - 86 AS col2
----
-929

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + + MIN ( - 34 ) * 27 + + 75 + - 86 AS col2
----
-929

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - + COUNT( * ) * - - 37 * - 88 * + - 69 AS col0
----
-224664

skipif mysql # not compatible
query I rowsort label-2820
SELECT - + COUNT ( * ) * - - 37 * - 88 * + - 69 AS col0
----
-224664

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT ALL + + 97 AS col2, + 46 * - MAX( DISTINCT + - 70 )
----
97
3220

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL + + 97 AS col2, + 46 * - MAX ( DISTINCT + - 70 )
----
97
3220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2822
SELECT - 81 - COUNT( * ) * + 50 DIV 8, + 15 * + 99 * + + ( + 55 ) AS col0
----
-87
81675

skipif mysql # not compatible
query II rowsort label-2822
SELECT - 81 - COUNT ( * ) * + 50 / 8, + 15 * + 99 * + + ( + 55 ) AS col0
----
-87
81675

query I rowsort
SELECT ALL - - 79 * 26 * + 7 + + 96
----
14474

query II rowsort
SELECT + 84, 36 AS col2
----
84
36

query II rowsort
SELECT + 12 AS col2, 65 * - ( + 53 ) AS col0
----
12
-3445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT ALL 70 * + CAST( - + COUNT( * ) AS SIGNED ) + - 76 + COUNT( * )
----
-145

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 70 * + CAST ( - + COUNT ( * ) AS INTEGER ) + - 76 + COUNT ( * )
----
-145

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

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

query I rowsort
SELECT DISTINCT - 55 * - - 59 + + ( - - ( - - 81 ) )
----
-3164

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL - 34 * + 72 * COALESCE ( COUNT( * ), + 68 * - - 98 + - 50 * - + 56 * - - 26 )
----
-2448

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - 34 * + 72 * COALESCE ( COUNT ( * ), + 68 * - - 98 + - 50 * - + 56 * - - 26 )
----
-2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL + NULLIF ( - 6, - COUNT( * ) + - NULLIF ( - 74, - - 88 ) * - + 33 + + + 40 * - 96 ) * 69 - 73 + + 96 * + CAST( NULL AS SIGNED ) + - 41 + + 44 + - - 50 * 23 * + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + NULLIF ( - 6, - COUNT ( * ) + - NULLIF ( - 74, - - 88 ) * - + 33 + + + 40 * - 96 ) * 69 - 73 + + 96 * + CAST ( NULL AS INTEGER ) + - 41 + + 44 + - - 50 * 23 * + 63 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 16 * + 47 AS col1
----
-752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2832
SELECT ALL + 95, CAST( NULL AS SIGNED ) * - + ( - 12 ) AS col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL + 95, CAST ( NULL AS INTEGER ) * - + ( - 12 ) AS col2
----
95
NULL

query I rowsort
SELECT ALL + 63 * + 82 * - 92
----
-475272

query I rowsort
SELECT + 18 + - ( 67 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - 30 * CASE + AVG ( DISTINCT 54 ) WHEN COUNT( * ) * - 27 / 13 THEN 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT - 30 * CASE + AVG ( DISTINCT 54 ) WHEN COUNT ( * ) * - 27 / 13 THEN 47 ELSE NULL END
----
NULL

query I rowsort
SELECT - 15 * + 21 + + + 44
----
-271

query I rowsort
SELECT ALL 0 - - NULLIF ( - 48, + 79 + - - 98 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT MIN( ALL 91 ) AS col2, 72 AS col1
----
91
72

skipif mysql # not compatible
query II rowsort label-2838
SELECT MIN ( ALL 91 ) AS col2, 72 AS col1
----
91
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + 77 * + COUNT( * ) + - 83
----
-6

skipif mysql # not compatible
query I rowsort label-2839
SELECT + 77 * + COUNT ( * ) + - 83
----
-6

query II rowsort
SELECT DISTINCT + 91 - 24, - 35 AS col2
----
67
-35

query I rowsort
SELECT ALL 94 * + 74 AS col2
----
6956

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT ALL 5 DIV 12 * + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL 5 / 12 * + 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT DISTINCT 23 DIV 14
----
1

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT 23 / 14
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2844
SELECT + 52 DIV 60, - 17 * + - 58 * + 48 - + 46 AS col0
----
0
47282

skipif mysql # not compatible
query II rowsort label-2844
SELECT + 52 / 60, - 17 * + - 58 * + 48 - + 46 AS col0
----
0
47282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT + 64 + - CAST( 29 AS SIGNED ) + - 13 + + - 62
----
-40

skipif mysql # not compatible
query I rowsort label-2845
SELECT + 64 + - CAST ( 29 AS INTEGER ) + - 13 + + - 62
----
-40

query I rowsort
SELECT + 69 - - 83 AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT + 28 * - MAX( + - 19 )
----
532

skipif mysql # not compatible
query I rowsort label-2847
SELECT + 28 * - MAX ( + - 19 )
----
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2848
SELECT + CAST( NULL AS SIGNED ) + - - COUNT( * ), 37 - 13 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2848
SELECT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ), 37 - 13 AS col1
----
NULL
24

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

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

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

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

query II rowsort
SELECT + 92 * - 96 AS col2, + 10 AS col1
----
-8832
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL CASE - + 55 WHEN - ( + - 33 ) THEN - NULLIF ( + 81, + COUNT( * ) + - 25 ) + - + 19 ELSE + 69 END * - COUNT( * ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL CASE - + 55 WHEN - ( + - 33 ) THEN - NULLIF ( + 81, + COUNT ( * ) + - 25 ) + - + 19 ELSE + 69 END * - COUNT ( * ) col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL CAST( NULL AS SIGNED ) + 17 * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL CAST ( NULL AS INTEGER ) + 17 * 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + 10 + + 45 * + 38 + - 94 * COUNT( * ) AS col1
----
1626

skipif mysql # not compatible
query I rowsort label-2854
SELECT + 10 + + 45 * + 38 + - 94 * COUNT ( * ) AS col1
----
1626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL + COUNT( * ) * + - 44 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) + - - 70 + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + COUNT ( * ) * + - 44 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - - 70 + - 24 AS col0
----
NULL

query I rowsort
SELECT + - 76 + 49 col2
----
-27

query I rowsort
SELECT DISTINCT 8 + + + 47 * 93
----
4379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT ALL - 74 DIV COALESCE ( + COUNT( * ), - 87 ) + - 59 + 81 + + - 11 + 75
----
12

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL - 74 / COALESCE ( + COUNT ( * ), - 87 ) + - 59 + 81 + + - 11 + 75
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT DISTINCT - NULLIF ( - 28, 12 + - 14 ) DIV - - 29 + 31 + - + 1
----
30

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT - NULLIF ( - 28, 12 + - 14 ) / - - 29 + 31 + - + 1
----
30

query I rowsort
SELECT + 9 * 40 * - - 16 * 77
----
443520

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT + CASE 52 WHEN + + ( + 9 ) THEN ( + + COUNT( * ) ) / AVG ( DISTINCT + 31 ) * - - 38 * - 17 * - + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT + CASE 52 WHEN + + ( + 9 ) THEN ( + + COUNT ( * ) ) / AVG ( DISTINCT + 31 ) * - - 38 * - 17 * - + 89 END
----
NULL

query I rowsort
SELECT ALL 6 * + - ( 66 ) AS col0
----
-396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2863
SELECT - - MAX( 57 ) * - + 30 * + + COUNT( * ) * + + CAST( + - SUM( ALL + + 5 ) AS SIGNED ) * + 77 * 32 + + + CAST( NULL AS SIGNED ) AS col2, - 64 * - - 58 AS col2
----
NULL
-3712

skipif mysql # not compatible
query II rowsort label-2863
SELECT - - MAX ( 57 ) * - + 30 * + + COUNT ( * ) * + + CAST ( + - SUM ( ALL + + 5 ) AS INTEGER ) * + 77 * 32 + + + CAST ( NULL AS INTEGER ) AS col2, - 64 * - - 58 AS col2
----
NULL
-3712

query I rowsort
SELECT ALL + 69 * - 17 AS col1
----
-1173

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT + MAX( DISTINCT + 89 ), - 46 AS col2
----
89
-46

skipif mysql # not compatible
query II rowsort label-2865
SELECT + MAX ( DISTINCT + 89 ), - 46 AS col2
----
89
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2866
SELECT ALL + MIN( + 67 ) DIV + 56 + - ( - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + MIN ( + 67 ) / + 56 + - ( - COUNT ( * ) )
----
2

query I rowsort
SELECT - 81 * + 42
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL - MIN( - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - MIN ( - 96 )
----
96

query I rowsort
SELECT 10 - + + 5
----
5

query I rowsort
SELECT 79 * + 12
----
948

query I rowsort
SELECT ALL - 32 * + + 26 col2
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + 10 * ( - 34 ) * - + ( - 47 ) / - 21 + + 81 + - ( - 8 ) * - COUNT( * ) + - 45 * CASE - 41 WHEN 89 THEN NULLIF ( - + 3, - + 85 + 74 + 52 ) * 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT + 10 * ( - 34 ) * - + ( - 47 ) / - 21 + + 81 + - ( - 8 ) * - COUNT ( * ) + - 45 * CASE - 41 WHEN 89 THEN NULLIF ( - + 3, - + 85 + 74 + 52 ) * 19 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 42 * + 97
----
-4074

query I rowsort
SELECT 4 * + 57 * 55 * + 14
----
175560

onlyif mysql # aggregate syntax: 
query II rowsort label-2875
SELECT ALL - COUNT( * ) * COUNT( - 38 ) AS col2, 80 AS col2
----
-1
80

skipif mysql # not compatible
query II rowsort label-2875
SELECT ALL - COUNT ( * ) * COUNT ( - 38 ) AS col2, 80 AS col2
----
-1
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2876
SELECT - 71 AS col1, + 98 + - CAST( + COUNT( * ) AS SIGNED ) + + 18
----
-71
115

skipif mysql # not compatible
query II rowsort label-2876
SELECT - 71 AS col1, + 98 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 18
----
-71
115

query II rowsort
SELECT 88 + + ( 27 ) AS col0, 81 AS col2
----
115
81

query I rowsort
SELECT 29 + - 18
----
11

query I rowsort
SELECT NULLIF ( + + 26, + 17 ) - - 43 * - 96
----
-4102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2880
SELECT - 34, + COUNT( * ) DIV + 88 col1
----
-34
0

skipif mysql # not compatible
query II rowsort label-2880
SELECT - 34, + COUNT ( * ) / + 88 col1
----
-34
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT ALL COUNT( * ) + 48 + - COUNT( DISTINCT 88 ) + + 62 * + COUNT( * ) - - 82 + + + 18 * - + COUNT( + 99 ) + - 32 * - COUNT( ALL 78 ) DIV - - 88 + - COUNT( * ) - - 19 col1
----
192

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL COUNT ( * ) + 48 + - COUNT ( DISTINCT 88 ) + + 62 * + COUNT ( * ) - - 82 + + + 18 * - + COUNT ( + 99 ) + - 32 * - COUNT ( ALL 78 ) / - - 88 + - COUNT ( * ) - - 19 col1
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL 57 * ( - 86 ) * + + CAST( 72 AS SIGNED ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) / - ( 51 ) + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL 57 * ( - 86 ) * + + CAST ( 72 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - ( 51 ) + + 53 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT 51 DIV - 23
----
-2

skipif mysql # not compatible
query I rowsort label-2883
SELECT 51 / - 23
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL CASE - + 96 WHEN - 66 THEN NULL ELSE + - 93 * + 14 END + + + COUNT( * ) * - 85 * + COUNT( - 71 ) * COUNT( * ) * 83 + - 71 + - 79 + + 8 + - 58
----
-8557

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL CASE - + 96 WHEN - 66 THEN NULL ELSE + - 93 * + 14 END + + + COUNT ( * ) * - 85 * + COUNT ( - 71 ) * COUNT ( * ) * 83 + - 71 + - 79 + + 8 + - 58
----
-8557

query I rowsort
SELECT + ( - - 55 ) * + + 2
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2886
SELECT 21 AS col1, 43 DIV - MAX( COALESCE ( 76, - - 13, - + 76 ) )
----
21
0

skipif mysql # not compatible
query II rowsort label-2886
SELECT 21 AS col1, 43 / - MAX ( COALESCE ( 76, - - 13, - + 76 ) )
----
21
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL 10 + - 72 * MIN( DISTINCT - 25 ) - - 46 * - + ( + - 80 )
----
5490

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL 10 + - 72 * MIN ( DISTINCT - 25 ) - - 46 * - + ( + - 80 )
----
5490

query I rowsort
SELECT - 80 + + 80 * 39 col0
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL + 58 + + + SUM( ALL 38 )
----
96

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + 58 + + + SUM ( ALL 38 )
----
96

query I rowsort
SELECT ALL 37 * 27 col2
----
999

query I rowsort
SELECT 20 * + 41 - - 99
----
919

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT DISTINCT - - ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT - - ( + - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL + 9 + + COUNT( * ) + + + 55 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL + 9 + + COUNT ( * ) + + + 55 AS col1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT NULLIF ( - + 37, MAX( DISTINCT - + 26 ) * - - 78 + + 54 * + 56 - - 78 ) DIV 32 + - 42 + 41
----
-2

skipif mysql # not compatible
query I rowsort label-2894
SELECT NULLIF ( - + 37, MAX ( DISTINCT - + 26 ) * - - 78 + + 54 * + 56 - - 78 ) / 32 + - 42 + 41
----
-2

query II rowsort
SELECT ALL - 86 AS col1, - 0 col2
----
-86
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2896
SELECT ALL - - 87 AS col2, 35 - + MAX( DISTINCT 85 ) * 73 AS col0
----
87
-6170

skipif mysql # not compatible
query II rowsort label-2896
SELECT ALL - - 87 AS col2, 35 - + MAX ( DISTINCT 85 ) * 73 AS col0
----
87
-6170

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

skipif mysql # not compatible
query II rowsort label-2897
SELECT - 47 col0, COUNT ( * ) col2
----
-47
1

query I rowsort
SELECT + 79 - + 25
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2899
SELECT ALL + COUNT( + - 80 ) * + CASE 72 WHEN 0 THEN NULL WHEN 2 THEN - 14 WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN + 45 * 20 - 96 * + - 92 * 10 THEN - + 91 ELSE NULL END AS col0, 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2899
SELECT ALL + COUNT ( + - 80 ) * + CASE 72 WHEN 0 THEN NULL WHEN 2 THEN - 14 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 * 20 - 96 * + - 92 * 10 THEN - + 91 ELSE NULL END AS col0, 28 AS col0
----
NULL
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT + + 68 * + 23 DIV - + COUNT( * ) - + - 9
----
-1555

skipif mysql # not compatible
query I rowsort label-2900
SELECT + + 68 * + 23 / - + COUNT ( * ) - + - 9
----
-1555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2901
SELECT 1 AS col2, + ( - 14 ) * + NULLIF ( + 56, - + 10 * NULLIF ( + - 39, - CASE - 75 WHEN 30 * 63 * - - 86 - 43 + - NULLIF ( 13, - ( + - 42 ) * 31 ) THEN NULL WHEN 32 + 65 * ( NULLIF ( 71, 8 * 57 + - CASE COUNT( * ) + - 30 * + CAST( - 76 AS SIGNED ) WHEN NULLIF ( + 29, 28 ) + 9 THEN + NULLIF ( 13, - 94 + - 75 ) ELSE NULL END ) * COUNT( * ) ) THEN 85 * 47 END ) ) AS col2
----
1
-784

skipif mysql # not compatible
query II rowsort label-2901
SELECT 1 AS col2, + ( - 14 ) * + NULLIF ( + 56, - + 10 * NULLIF ( + - 39, - CASE - 75 WHEN 30 * 63 * - - 86 - 43 + - NULLIF ( 13, - ( + - 42 ) * 31 ) THEN NULL WHEN 32 + 65 * ( NULLIF ( 71, 8 * 57 + - CASE COUNT ( * ) + - 30 * + CAST ( - 76 AS INTEGER ) WHEN NULLIF ( + 29, 28 ) + 9 THEN + NULLIF ( 13, - 94 + - 75 ) ELSE NULL END ) * COUNT ( * ) ) THEN 85 * 47 END ) ) AS col2
----
1
-784

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT DISTINCT - NULLIF ( + - 5, + - COUNT( * ) + - AVG ( - - 70 ) ) AS col2, 89 AS col1
----
5
89

skipif mysql # not compatible
query II rowsort label-2902
SELECT DISTINCT - NULLIF ( + - 5, + - COUNT ( * ) + - AVG ( - - 70 ) ) AS col2, 89 AS col1
----
5
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT CASE 56 WHEN - 31 THEN + 97 + 40 / + NULLIF ( 34, 58 / + - 37 ) WHEN SUM( ALL - 35 ) THEN - 30 + + + 58 - - CAST( 19 AS SIGNED ) * - COALESCE ( - 87, + 24 ) END / COUNT( + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT CASE 56 WHEN - 31 THEN + 97 + 40 / + NULLIF ( 34, 58 / + - 37 ) WHEN SUM ( ALL - 35 ) THEN - 30 + + + 58 - - CAST ( 19 AS INTEGER ) * - COALESCE ( - 87, + 24 ) END / COUNT ( + 3 )
----
NULL

query I rowsort
SELECT DISTINCT 30 * + 63
----
1890

query I rowsort
SELECT DISTINCT 47 * + 65 AS col2
----
3055

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2906
SELECT + 6 * 58 + CAST( + COUNT( * ) AS SIGNED ) AS col2, 40 + COUNT( * ) - - + 50 DIV + - 12 + COALESCE ( 25, COUNT( * ), + 20 * + 4 )
----
349
62

skipif mysql # not compatible
query II rowsort label-2906
SELECT + 6 * 58 + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 40 + COUNT ( * ) - - + 50 / + - 12 + COALESCE ( 25, COUNT ( * ), + 20 * + 4 )
----
349
62

query I rowsort
SELECT 4 * - 4
----
-16

query I rowsort
SELECT 7 + - 43 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT 84 + - COUNT( + 88 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2909
SELECT 84 + - COUNT ( + 88 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT + COUNT( - 23 ), - 29 AS col2
----
1
-29

skipif mysql # not compatible
query II rowsort label-2910
SELECT + COUNT ( - 23 ), - 29 AS col2
----
1
-29

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

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + 74 / - + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT 94 + + MIN( DISTINCT + 74 ) AS col1
----
168

skipif mysql # not compatible
query I rowsort label-2912
SELECT 94 + + MIN ( DISTINCT + 74 ) AS col1
----
168

query I rowsort
SELECT 33 + + 4 AS col0
----
37

query I rowsort
SELECT 39 * 66 AS col2
----
2574

query I rowsort
SELECT ALL - 2 + + 94 AS col2
----
92

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

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

query I rowsort
SELECT DISTINCT - 93 * + 45
----
-4185

query I rowsort
SELECT DISTINCT 16 + + 43 * + 83 AS col1
----
3585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2919
SELECT ( 39 ) - - + COALESCE ( - 99, - + 5, ( - + ( - + CAST( NULL AS SIGNED ) ) ) * + 68 ) AS col2, 98 * - 95 + - COUNT( * ) * - 19 * + CASE + CAST( 83 AS DECIMAL ) WHEN 88 * + 88 THEN 37 END col2
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-2919
SELECT ( 39 ) - - + COALESCE ( - 99, - + 5, ( - + ( - + CAST ( NULL AS INTEGER ) ) ) * + 68 ) AS col2, 98 * - 95 + - COUNT ( * ) * - 19 * + CASE + CAST ( 83 AS REAL ) WHEN 88 * + 88 THEN 37 END col2
----
-60
NULL

query I rowsort
SELECT 76 + 1 AS col0
----
77

query I rowsort
SELECT 22 + - - ( 97 )
----
119

query I rowsort
SELECT ALL - + 47 - - 17 * - 32 + + 49 AS col1
----
-542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2923
SELECT ALL - COUNT( * ) * + CAST( + 35 AS SIGNED ) * + - 60 + COUNT( * ) AS col0
----
2101

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - COUNT ( * ) * + CAST ( + 35 AS INTEGER ) * + - 60 + COUNT ( * ) AS col0
----
2101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2924
SELECT DISTINCT + 36 DIV 80 + - 1 + + 0 * + + 70 * + 41 * + COALESCE ( MAX( + - CASE WHEN + 0 IN ( + 6 ) THEN + ( 62 ) + - 15 * - 54 ELSE NULL END ), + COUNT( * ) ) + - 13
----
-14

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + 36 / 80 + - 1 + + 0 * + + 70 * + 41 * + COALESCE ( MAX ( + - CASE WHEN + 0 IN ( + 6 ) THEN + ( 62 ) + - 15 * - 54 ELSE NULL END ), + COUNT ( * ) ) + - 13
----
-14

query I rowsort
SELECT DISTINCT + ( + 52 ) * - 5 * 77 AS col1
----
-20020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2926
SELECT + + ( + + 13 ) DIV 79 + - + 20 + - - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2926
SELECT + + ( + + 13 ) / 79 + - + 20 + - - COUNT ( * ) AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT ALL - 86 * + 8 + + 17 + 62 DIV + 2
----
-640

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - 86 * + 8 + + 17 + 62 / + 2
----
-640

query I rowsort
SELECT ALL + 28 * - 44 * - 15
----
18480

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + + COUNT( * ) + - + 65 col1
----
-64

skipif mysql # not compatible
query I rowsort label-2929
SELECT + + COUNT ( * ) + - + 65 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT - + COUNT( * ) * - + 52 + + 5
----
57

skipif mysql # not compatible
query I rowsort label-2930
SELECT - + COUNT ( * ) * - + 52 + + 5
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT ALL + 53 AS col2, + CASE 34 WHEN - 50 THEN + COUNT( * ) + + ( ( 42 ) ) END
----
53
NULL

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL + 53 AS col2, + CASE 34 WHEN - 50 THEN + COUNT ( * ) + + ( ( 42 ) ) END
----
53
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT 69 DIV - 53 + - 30 col0
----
-31

skipif mysql # not compatible
query I rowsort label-2932
SELECT 69 / - 53 + - 30 col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT MIN( + ( + 15 ) ) AS col2, + NULLIF ( + 6, 79 ) * - 90
----
15
-540

skipif mysql # not compatible
query II rowsort label-2933
SELECT MIN ( + ( + 15 ) ) AS col2, + NULLIF ( + 6, 79 ) * - 90
----
15
-540

query I rowsort
SELECT + 23 - - 41 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2935
SELECT ALL - 89 * NULLIF ( - 58, + - MIN( - + 46 ) * + 39 * CAST( NULL AS DECIMAL ) + + 29 ) * - 34 + + - 10 + 7
----
-175511

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - 89 * NULLIF ( - 58, + - MIN ( - + 46 ) * + 39 * CAST ( NULL AS REAL ) + + 29 ) * - 34 + + - 10 + 7
----
-175511

query I rowsort
SELECT ALL + 6 * 48 + - 46
----
242

query I rowsort
SELECT + NULLIF ( + 45, 92 ) AS col1
----
45

query I rowsort
SELECT + 11 + - - 71 - + 67 * 88 * 8 * - 7
----
330258

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL COUNT( ALL 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL COUNT ( ALL 93 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT DISTINCT + 25 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + 25 / + 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT + 51 DIV 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 51 / 58 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2942
SELECT - CASE - - CASE + ( + 91 ) WHEN + COUNT( * ) THEN + CAST( NULL AS DECIMAL ) * - 15 WHEN + - 24 + + 71 THEN - 61 END WHEN - 22 + + 96 + + + COUNT( * ) / CAST( + 44 AS SIGNED ) + 56 THEN NULL ELSE + - 52 END + - 47 * - 41
----
1979

skipif mysql # not compatible
query I rowsort label-2942
SELECT - CASE - - CASE + ( + 91 ) WHEN + COUNT ( * ) THEN + CAST ( NULL AS REAL ) * - 15 WHEN + - 24 + + 71 THEN - 61 END WHEN - 22 + + 96 + + + COUNT ( * ) / CAST ( + 44 AS INTEGER ) + 56 THEN NULL ELSE + - 52 END + - 47 * - 41
----
1979

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2943
SELECT ALL CAST( - + COALESCE ( 33, ( 81 ), COUNT( * ) ) AS SIGNED ) col2, - 88 AS col0
----
-33
-88

skipif mysql # not compatible
query II rowsort label-2943
SELECT ALL CAST ( - + COALESCE ( 33, ( 81 ), COUNT ( * ) ) AS INTEGER ) col2, - 88 AS col0
----
-33
-88

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2945
SELECT - 75 * - ( + CAST( NULL AS SIGNED ) ), - 81 * 27 col2
----
NULL
-2187

skipif mysql # not compatible
query II rowsort label-2945
SELECT - 75 * - ( + CAST ( NULL AS INTEGER ) ), - 81 * 27 col2
----
NULL
-2187

onlyif mysql # aggregate syntax: 
query II rowsort label-2946
SELECT DISTINCT + COUNT( 97 ) * ( - 6 ) * - 8 AS col1, + 57 * 63 * MIN( - 51 ) AS col2
----
48
-183141

skipif mysql # not compatible
query II rowsort label-2946
SELECT DISTINCT + COUNT ( 97 ) * ( - 6 ) * - 8 AS col1, + 57 * 63 * MIN ( - 51 ) AS col2
----
48
-183141

query I rowsort
SELECT - COALESCE ( - 92, + 4 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL - SUM( - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL - SUM ( - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT - - SUM( - 96 ) * + ( 26 )
----
-2496

skipif mysql # not compatible
query I rowsort label-2949
SELECT - - SUM ( - 96 ) * + ( 26 )
----
-2496

query I rowsort
SELECT - 14 - 12 + - - 0 * 50 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2951
SELECT ALL + CASE + 44 WHEN 55 THEN - COUNT( * ) * 0 + 76 WHEN NULLIF ( 86, 99 ) + + - 56 THEN NULL WHEN - AVG ( - 74 ) THEN + 54 END * - SUM( 30 ) AS col1, - SUM( DISTINCT 73 )
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-2951
SELECT ALL + CASE + 44 WHEN 55 THEN - COUNT ( * ) * 0 + 76 WHEN NULLIF ( 86, 99 ) + + - 56 THEN NULL WHEN - AVG ( - 74 ) THEN + 54 END * - SUM ( 30 ) AS col1, - SUM ( DISTINCT 73 )
----
NULL
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT ALL + 88 AS col2, MAX( DISTINCT + 70 )
----
88
70

skipif mysql # not compatible
query II rowsort label-2952
SELECT ALL + 88 AS col2, MAX ( DISTINCT + 70 )
----
88
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + 36 * COALESCE ( CASE - 58 WHEN - - COALESCE ( + 3, + 68 ) + 47 THEN NULL WHEN - - 48 THEN - 85 END, 21 * + COUNT( * ) + - 1 ) * - 33
----
-23760

skipif mysql # not compatible
query I rowsort label-2953
SELECT + 36 * COALESCE ( CASE - 58 WHEN - - COALESCE ( + 3, + 68 ) + 47 THEN NULL WHEN - - 48 THEN - 85 END, 21 * + COUNT ( * ) + - 1 ) * - 33
----
-23760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2954
SELECT + 92 * + + CAST( - NULLIF ( - + 85, - 19 * - - COUNT( * ) ) AS SIGNED ) + + 4 AS col0, 42 + 8 + 44 AS col0
----
7824
94

skipif mysql # not compatible
query II rowsort label-2954
SELECT + 92 * + + CAST ( - NULLIF ( - + 85, - 19 * - - COUNT ( * ) ) AS INTEGER ) + + 4 AS col0, 42 + 8 + 44 AS col0
----
7824
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + 29 - + - 3 + COUNT( * ) + - ( + - 27 )
----
60

skipif mysql # not compatible
query I rowsort label-2956
SELECT + 29 - + - 3 + COUNT ( * ) + - ( + - 27 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL COUNT( * ) * - 45 * + + 77 AS col2
----
-3465

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL COUNT ( * ) * - 45 * + + 77 AS col2
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + COUNT( - 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2958
SELECT + COUNT ( - 40 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT - 0 + + - COALESCE ( - 84, - 92 - + ( - 28 ) DIV + 82 * + ( + - 38 ), - + 54 + - 85 DIV + 23 + - + 74 - - - 38 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2959
SELECT - 0 + + - COALESCE ( - 84, - 92 - + ( - 28 ) / + 82 * + ( + - 38 ), - + 54 + - 85 / + 23 + - + 74 - - - 38 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2960
SELECT + CAST( NULL AS SIGNED ) AS col0, CASE ( - 10 ) WHEN - COALESCE ( + - COALESCE ( + COUNT( * ), + - 0 ), ( 33 ) * + 25 + 41 + NULLIF ( + 99, + - 52 + + 68 ) ) THEN + - COALESCE ( - + 59, COUNT( ALL + + 41 ) * COUNT( 28 ), - 52 + 71 ) * - 2 END / + 87 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2960
SELECT + CAST ( NULL AS INTEGER ) AS col0, CASE ( - 10 ) WHEN - COALESCE ( + - COALESCE ( + COUNT ( * ), + - 0 ), ( 33 ) * + 25 + 41 + NULLIF ( + 99, + - 52 + + 68 ) ) THEN + - COALESCE ( - + 59, COUNT ( ALL + + 41 ) * COUNT ( 28 ), - 52 + 71 ) * - 2 END / + 87 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL + COUNT( DISTINCT - - 15 ) * 12 + - + ( SUM( + 73 ) ) * + 21 + - 50 AS col0
----
-1571

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL + COUNT ( DISTINCT - - 15 ) * 12 + - + ( SUM ( + 73 ) ) * + 21 + - 50 AS col0
----
-1571

query I rowsort
SELECT DISTINCT + 1 * - + 14 + - 53
----
-67

query I rowsort
SELECT 84 * - 15 + + ( 13 ) AS col2
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL + ( - 2 ) * 28 + + + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + ( - 2 ) * 28 + + + COUNT ( * )
----
-55

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

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

query I rowsort
SELECT NULLIF ( - - 32, - + 27 ) col1
----
32

query I rowsort
SELECT + 51 + + + 2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2968
SELECT ALL CAST( NULL AS SIGNED ) * + 40 * 47 * + + 75 / - 84 * - 65, ( 53 ) col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-2968
SELECT ALL CAST ( NULL AS INTEGER ) * + 40 * 47 * + + 75 / - 84 * - 65, ( 53 ) col2
----
NULL
53

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

query II rowsort
SELECT - 80 AS col2, + 62 AS col0
----
-80
62

query I rowsort
SELECT ALL - 35 * - - 25 + 40 - - 66 + - 99 * - + 86 * + - COALESCE ( - - 25, + 11, 20 ) AS col2
----
-213619

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT - - CASE + 94 WHEN - COUNT( * ) * COUNT( ALL COALESCE ( - 24, - - 29 ) ) * - + NULLIF ( 29, + 57 * - - COUNT( - 94 ) + - 72 - + + COUNT( * ) + + COUNT( * ) + + COUNT( * ) * 76 + + COUNT( * ) + + CASE + 27 WHEN 14 + 47 THEN 65 WHEN - 31 THEN + 40 * - 42 END * + CASE + 32 WHEN - 86 THEN NULL WHEN 67 THEN 79 * - 18 END ) + CAST( - 9 AS SIGNED ) THEN + 21 ELSE + 6 END
----
6

skipif mysql # not compatible
query I rowsort label-2973
SELECT - - CASE + 94 WHEN - COUNT ( * ) * COUNT ( ALL COALESCE ( - 24, - - 29 ) ) * - + NULLIF ( 29, + 57 * - - COUNT ( - 94 ) + - 72 - + + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) * 76 + + COUNT ( * ) + + CASE + 27 WHEN 14 + 47 THEN 65 WHEN - 31 THEN + 40 * - 42 END * + CASE + 32 WHEN - 86 THEN NULL WHEN 67 THEN 79 * - 18 END ) + CAST ( - 9 AS INTEGER ) THEN + 21 ELSE + 6 END
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT 5 + + 36 + + 26 + - CASE 2 WHEN - CAST( NULL AS SIGNED ) THEN - - CASE 17 WHEN - COALESCE ( MAX( ALL - - 77 ), 40 ) THEN - + ( - ( + - 67 ) ) ELSE 87 * - - 23 END WHEN + - 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT 5 + + 36 + + 26 + - CASE 2 WHEN - CAST ( NULL AS INTEGER ) THEN - - CASE 17 WHEN - COALESCE ( MAX ( ALL - - 77 ), 40 ) THEN - + ( - ( + - 67 ) ) ELSE 87 * - - 23 END WHEN + - 81 THEN NULL END
----
NULL

query I rowsort
SELECT ( + 42 ) + + - 89 col2
----
-47

query II rowsort
SELECT - 15 AS col0, 45 * + 70
----
-15
3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT 85 + - 63 * 55 + - MIN( DISTINCT - 32 ) - - ( + 8 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT 85 + - 63 * 55 + - MIN ( DISTINCT - 32 ) - - ( + 8 ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 32 + - - 68 * + - 37 + + 18
----
-2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL - + 17 / - 1 * + CASE SUM( ALL - 80 ) WHEN + 43 / - - 20 THEN + - MAX( DISTINCT - ( + 26 ) ) END * CAST( NULL AS SIGNED ) + + NULLIF ( + 63, + + 75 * - - NULLIF ( - 12, 25 / + 12 ) ) / 78 * + 17 / 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - + 17 / - 1 * + CASE SUM ( ALL - 80 ) WHEN + 43 / - - 20 THEN + - MAX ( DISTINCT - ( + 26 ) ) END * CAST ( NULL AS INTEGER ) + + NULLIF ( + 63, + + 75 * - - NULLIF ( - 12, 25 / + 12 ) ) / 78 * + 17 / 11
----
NULL

query I rowsort
SELECT - 75 * - - 34
----
-2550

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT + 98 + 46 DIV - 20
----
96

skipif mysql # not compatible
query I rowsort label-2981
SELECT + 98 + 46 / - 20
----
96

query II rowsort
SELECT DISTINCT 94 AS col2, - 63
----
94
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT 77 + + 54 * 71 + - 8 + + 4 + + - 50 * + 85 * - CAST( + - 39 AS SIGNED ) AS col0
----
-161843

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT 77 + + 54 * 71 + - 8 + + 4 + + - 50 * + 85 * - CAST ( + - 39 AS INTEGER ) AS col0
----
-161843

query II rowsort
SELECT ALL - 41 AS col1, 60 - 45
----
-41
15

query I rowsort
SELECT ALL + + 29 + + 87
----
116

query I rowsort
SELECT + 25 + - - 59 AS col2
----
84

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

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

query I rowsort
SELECT DISTINCT + 12 + - - 96 * + - ( 23 )
----
-2196

query I rowsort
SELECT DISTINCT + 96 + + 26 + - 76 * - 93
----
7190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT - 38 DIV + COUNT( * ) + - - 41 * + 60 * + - 30 AS col2
----
-73838

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 38 / + COUNT ( * ) + - - 41 * + 60 * + - 30 AS col2
----
-73838

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL - COUNT( - 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - COUNT ( - 33 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT - COUNT( DISTINCT 71 ) + 11
----
10

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - COUNT ( DISTINCT 71 ) + 11
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT MIN( + + 67 ) * + 86 + - ( COUNT( * ) ) + - 28 - + - NULLIF ( + - 78, - - 88 )
----
5655

skipif mysql # not compatible
query I rowsort label-2993
SELECT MIN ( + + 67 ) * + 86 + - ( COUNT ( * ) ) + - 28 - + - NULLIF ( + - 78, - - 88 )
----
5655

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL - ( + 17 ) + + COALESCE ( + 83, COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - ( + 17 ) + + COALESCE ( + 83, COUNT ( * ) )
----
66

query I rowsort
SELECT 13 * - 55 AS col1
----
-715

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT 32 DIV + 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT 32 / + 57 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - 25 * + SUM( ALL + 2 )
----
-50

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - 25 * + SUM ( ALL + 2 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT 22 - 65 + + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2999
SELECT 22 - 65 + + COUNT ( * ) AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3000
SELECT 58 DIV + 27, - ( - NULLIF ( - COUNT( * ), - - 0 ) ) * - + 94 AS col0
----
2
94

skipif mysql # not compatible
query II rowsort label-3000
SELECT 58 / + 27, - ( - NULLIF ( - COUNT ( * ), - - 0 ) ) * - + 94 AS col0
----
2
94

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

skipif mysql # not compatible
query I rowsort label-3001
SELECT 28 * COUNT ( * )
----
28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT ALL 98 * + + 67, - COUNT( * ) AS col1
----
6566
-1

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL 98 * + + 67, - COUNT ( * ) AS col1
----
6566
-1

query I rowsort
SELECT ALL 74 - - 29 + 36 * - 16
----
-473

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT 48 DIV + 82 * + - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT 48 / + 82 * + - 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT DISTINCT + 73 * - MAX( ALL - 91 ) AS col1
----
6643

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT + 73 * - MAX ( ALL - 91 ) AS col1
----
6643

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3007
SELECT DISTINCT + CASE + 24 WHEN - COUNT( * ) * + 20 * 5 * + 24 * + 16 THEN NULL WHEN + - 44 + - 33 THEN + 94 * + 64 * 84 ELSE NULL END, + 2 * - 80 DIV - 64 AS col1
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3007
SELECT DISTINCT + CASE + 24 WHEN - COUNT ( * ) * + 20 * 5 * + 24 * + 16 THEN NULL WHEN + - 44 + - 33 THEN + 94 * + 64 * 84 ELSE NULL END, + 2 * - 80 / - 64 AS col1
----
NULL
2

query II rowsort
SELECT ALL + 40 * + 76 AS col1, 97 * - 77
----
3040
-7469

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL + 49 + 50 + - 19 - - COUNT( * ) * + - 6 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + 49 + 50 + - 19 - - COUNT ( * ) * + - 6 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL ( + COUNT( * ) ) + - 44 * + 95
----
-4179

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL ( + COUNT ( * ) ) + - 44 * + 95
----
-4179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT 68 * COALESCE ( + - 59, + 60 * + 1 + - 79 + + 53 + - - 59 * 31 + 2 + MIN( DISTINCT - 9 ) + + CAST( MAX( + 66 ) AS SIGNED ) ) + + ( + 85 ) + - 61 * - 8 * 66 col0
----
28281

skipif mysql # not compatible
query I rowsort label-3012
SELECT 68 * COALESCE ( + - 59, + 60 * + 1 + - 79 + + 53 + - - 59 * 31 + 2 + MIN ( DISTINCT - 9 ) + + CAST ( MAX ( + 66 ) AS INTEGER ) ) + + ( + 85 ) + - 61 * - 8 * 66 col0
----
28281

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT + COUNT( * ) * - 21 - + + 42 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + COUNT ( * ) * - 21 - + + 42 AS col1
----
-63

query I rowsort
SELECT - 62 + + 1 - + 5 * - - ( + 21 ) * - 66 AS col2
----
6869

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT 23 * - 80 * - - MAX( 5 ) col1
----
-9200

skipif mysql # not compatible
query I rowsort label-3017
SELECT 23 * - 80 * - - MAX ( 5 ) col1
----
-9200

query I rowsort
SELECT 33 * - 98
----
-3234

query I rowsort
SELECT ALL + 83 + - + 34 AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3020
SELECT ALL 82 + + + COALESCE ( CASE - 36 WHEN - COUNT( ALL + + 63 ) THEN - 17 + - COUNT( * ) + + 97 - - 32 * 24 DIV - 45 DIV - 71 - - COUNT( * ) + - 35 WHEN SUM( - 35 ) THEN 95 * 29 + + 97 + - 72 DIV + 48 WHEN - 62 + COUNT( * ) THEN NULL ELSE NULL END, + 7, 19, 82 ) * 16 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL 82 + + + COALESCE ( CASE - 36 WHEN - COUNT ( ALL + + 63 ) THEN - 17 + - COUNT ( * ) + + 97 - - 32 * 24 / - 45 / - 71 - - COUNT ( * ) + - 35 WHEN SUM ( - 35 ) THEN 95 * 29 + + 97 + - 72 / + 48 WHEN - 62 + COUNT ( * ) THEN NULL ELSE NULL END, + 7, 19, 82 ) * 16 AS col1
----
194

query I rowsort
SELECT DISTINCT + 11 * + 71 AS col0
----
781

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL - CASE - 53 WHEN - - 93 THEN + - NULLIF ( - - 63, + - 33 ) + + 93 WHEN 20 + - 52 THEN + - 99 + + ( - 48 ) ELSE + - 50 + COUNT( * ) + COALESCE ( + + 12, - - 92 + - 0 ) + + - 89 * + 94 * - + 70 END * 56
----
-32792648

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - CASE - 53 WHEN - - 93 THEN + - NULLIF ( - - 63, + - 33 ) + + 93 WHEN 20 + - 52 THEN + - 99 + + ( - 48 ) ELSE + - 50 + COUNT ( * ) + COALESCE ( + + 12, - - 92 + - 0 ) + + - 89 * + 94 * - + 70 END * 56
----
-32792648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3023
SELECT ALL + 46 * + 37 + - CAST( NULL AS SIGNED ) + + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL + 46 * + 37 + - CAST ( NULL AS INTEGER ) + + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL - CASE + 53 WHEN + - AVG ( 64 ) THEN - - NULLIF ( 82, COUNT( * ) * - + 50 * - MIN( DISTINCT + 27 ) + 24 ) / - + 39 / + 88 * + 47 * - MIN( DISTINCT + 45 ) + - + 3 ELSE CASE 45 WHEN + 92 * + - 43 THEN + COUNT( * ) + + COUNT( * ) ELSE NULL END * 47 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - CASE + 53 WHEN + - AVG ( 64 ) THEN - - NULLIF ( 82, COUNT ( * ) * - + 50 * - MIN ( DISTINCT + 27 ) + 24 ) / - + 39 / + 88 * + 47 * - MIN ( DISTINCT + 45 ) + - + 3 ELSE CASE 45 WHEN + 92 * + - 43 THEN + COUNT ( * ) + + COUNT ( * ) ELSE NULL END * 47 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT - 14 / + + CASE - 93 WHEN - + 20 THEN + + ( + + ( - + 47 ) ) ELSE NULL END + + COUNT( * ) * - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT - 14 / + + CASE - 93 WHEN - + 20 THEN + + ( + + ( - + 47 ) ) ELSE NULL END + + COUNT ( * ) * - 65 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT 21 * COUNT( * ) + 2 col0
----
23

skipif mysql # not compatible
query I rowsort label-3027
SELECT 21 * COUNT ( * ) + 2 col0
----
23

query I rowsort
SELECT 48 * - 48 AS col0
----
-2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3029
SELECT ALL - COUNT( * ) * + 68 DIV + 27 AS col2, + NULLIF ( - - 5, + + 4 ) * - + 48 - - 5 + + 11 col1
----
-2
-224

skipif mysql # not compatible
query II rowsort label-3029
SELECT ALL - COUNT ( * ) * + 68 / + 27 AS col2, + NULLIF ( - - 5, + + 4 ) * - + 48 - - 5 + + 11 col1
----
-2
-224

query I rowsort
SELECT - 51 * + 68 + + NULLIF ( 28, + - 51 ) AS col1
----
-3440

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT 32 + - 95 DIV - - 71 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3031
SELECT 32 + - 95 / - - 71 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL 82 * + COUNT( * ) - - + NULLIF ( + 46, + CAST( 36 AS SIGNED ) ) + - - 24 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 82 * + COUNT ( * ) - - + NULLIF ( + 46, + CAST ( 36 AS INTEGER ) ) + - - 24 AS col0
----
152

query I rowsort
SELECT 38 * 77
----
2926

query I rowsort
SELECT 73 * - 18 AS col1
----
-1314

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

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

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

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

query II rowsort
SELECT - 64 * - 81 - 30, + 58 + + 30 AS col0
----
5154
88

query I rowsort
SELECT + + 55 * 8 + + 1 AS col1
----
441

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT DISTINCT - - 75 DIV + 21
----
3

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT - - 75 / + 21
----
3

query I rowsort
SELECT - + 88 + + 85 - - 94 + 43 AS col2
----
134

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

skipif mysql # not compatible
query I rowsort label-3041
SELECT - - COUNT ( * ) / SUM ( + + 8 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3042
SELECT ALL + NULLIF ( + 14, + + CAST( NULL AS SIGNED ) ) * 98 - + 9 + - 85
----
1278

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL + NULLIF ( + 14, + + CAST ( NULL AS INTEGER ) ) * 98 - + 9 + - 85
----
1278

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

query I rowsort
SELECT + + 8 * 9 AS col2
----
72

query I rowsort
SELECT DISTINCT + - 0 * 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT - + COUNT( * ) + + - 98 + - 51 * 81 + + 22 AS col1
----
-4208

skipif mysql # not compatible
query I rowsort label-3046
SELECT - + COUNT ( * ) + + - 98 + - 51 * 81 + + 22 AS col1
----
-4208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3047
SELECT ALL - NULLIF ( - + 31, 7 ) + 55 * + SUM( - CAST( + 73 AS SIGNED ) ) * CAST( NULL AS DECIMAL ) * + CASE 92 WHEN + 81 * - 20 THEN - 60 WHEN 0 THEN - COUNT( * ) - + MIN( 7 ) ELSE - - 19 * - COUNT( * ) END AS col2, + 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-3047
SELECT ALL - NULLIF ( - + 31, 7 ) + 55 * + SUM ( - CAST ( + 73 AS INTEGER ) ) * CAST ( NULL AS REAL ) * + CASE 92 WHEN + 81 * - 20 THEN - 60 WHEN 0 THEN - COUNT ( * ) - + MIN ( 7 ) ELSE - - 19 * - COUNT ( * ) END AS col2, + 10
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT - - COALESCE ( + 76, - - ( + COUNT( * ) ) * - 24 )
----
76

skipif mysql # not compatible
query I rowsort label-3048
SELECT - - COALESCE ( + 76, - - ( + COUNT ( * ) ) * - 24 )
----
76

query I rowsort
SELECT DISTINCT - + 70 + + 86 - - 17 * - - 7 AS col0
----
135

query I rowsort
SELECT ALL 10 + 35
----
45

query I rowsort
SELECT ALL - 67 + - 78 AS col1
----
-145

query II rowsort
SELECT ALL 61 AS col1, - 95 col1
----
61
-95

query I rowsort
SELECT ALL - 87 + - 42 AS col0
----
-129

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3055
SELECT ALL - 18 + + COUNT( * ) * - + 57 DIV 27 + COALESCE ( - CAST( NULL AS SIGNED ), 17, - COUNT( * ) * SUM( - + 46 ) ) DIV - COUNT( * ) AS col0, 26
----
-37
26

skipif mysql # not compatible
query II rowsort label-3055
SELECT ALL - 18 + + COUNT ( * ) * - + 57 / 27 + COALESCE ( - CAST ( NULL AS INTEGER ), 17, - COUNT ( * ) * SUM ( - + 46 ) ) / - COUNT ( * ) AS col0, 26
----
-37
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT - + COUNT( * ) + CAST( + ( 30 ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-3056
SELECT - + COUNT ( * ) + CAST ( + ( 30 ) AS INTEGER )
----
29

query I rowsort
SELECT + + 6 + 59 - - ( - 70 ) AS col1
----
-5

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

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

query I rowsort
SELECT ALL 99 + - 7 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT + + 57 + - 29 + CAST( 92 AS SIGNED ) / - CAST( NULL AS SIGNED ) - + 8 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT + + 57 + - 29 + CAST ( 92 AS INTEGER ) / - CAST ( NULL AS INTEGER ) - + 8 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 12 + + ( + 25 )
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL MIN( + + 2 ) - - 51 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL MIN ( + + 2 ) - - 51 AS col0
----
53

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3066
SELECT ( + CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT + 87 * + + CAST( CASE + 74 WHEN - - 31 THEN - ( - ( + 82 ) ) * + - 90 + 39 + 72 + + 76 + + + CASE - SUM( - 92 ) WHEN 8 THEN 87 / + 56 + - + 67 ELSE NULL END * + NULLIF ( + 67, - + 42 * 46 + + 0 + CAST( ( 71 ) AS SIGNED ) * 91 ) ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT + 87 * + + CAST ( CASE + 74 WHEN - - 31 THEN - ( - ( + 82 ) ) * + - 90 + 39 + 72 + + 76 + + + CASE - SUM ( - 92 ) WHEN 8 THEN 87 / + 56 + - + 67 ELSE NULL END * + NULLIF ( + 67, - + 42 * 46 + + 0 + CAST ( ( 71 ) AS INTEGER ) * 91 ) ELSE NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3068
SELECT ALL 99 DIV - + 47, 88 AS col0
----
-2
88

skipif mysql # not compatible
query II rowsort label-3068
SELECT ALL 99 / - + 47, 88 AS col0
----
-2
88

query I rowsort
SELECT - NULLIF ( + 89, + - 7 ) * + 36 AS col2
----
-3204

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT DISTINCT 16 DIV - - 38
----
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT 16 / - - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT DISTINCT - 8 * + COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT - 8 * + COUNT ( * ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT - CASE + 16 WHEN - - CAST( + + 56 AS SIGNED ) + 48 - + AVG ( + 13 ) * 51 THEN NULL WHEN - 27 + + 45 THEN 41 ELSE NULL END + - - 60 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT - CASE + 16 WHEN - - CAST ( + + 56 AS INTEGER ) + 48 - + AVG ( + 13 ) * 51 THEN NULL WHEN - 27 + + 45 THEN 41 ELSE NULL END + - - 60 * - 58
----
NULL

query II rowsort
SELECT ( 13 ), - 31 * 55 AS col1
----
13
-1705

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL - 90 * - - CASE 76 WHEN - ( - CASE + - 50 WHEN + + COUNT( + - 46 ) THEN 73 ELSE NULL END ) / + 25 THEN NULL ELSE - + 1 + - 51 + 39 END AS col0
----
1170

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL - 90 * - - CASE 76 WHEN - ( - CASE + - 50 WHEN + + COUNT ( + - 46 ) THEN 73 ELSE NULL END ) / + 25 THEN NULL ELSE - + 1 + - 51 + 39 END AS col0
----
1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3075
SELECT + CAST( ( MAX( ALL - 25 ) ) AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3075
SELECT + CAST ( ( MAX ( ALL - 25 ) ) AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT + - 84 + 64 + + 74 * 85 + 58
----
6328

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT ALL + ( + ( + - NULLIF ( COUNT( * ), - COUNT( * ) ) ) ) * - + 80 DIV + 51 + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + ( + ( + - NULLIF ( COUNT ( * ), - COUNT ( * ) ) ) ) * - + 80 / + 51 + - 84
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT - CASE + 2 WHEN + 85 THEN - + COUNT( * ) ELSE NULL END * - 24 + - 29 - + 26 * + 64 * - - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - CASE + 2 WHEN + 85 THEN - + COUNT ( * ) ELSE NULL END * - 24 + - 29 - + 26 * + 64 * - - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3080
SELECT DISTINCT + 92 * - 76 + ( 25 ) + + 43 DIV + COUNT( * )
----
-6924

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + 92 * - 76 + ( 25 ) + + 43 / + COUNT ( * )
----
-6924

query I rowsort
SELECT ALL + - 22 * + ( 98 )
----
-2156

query I rowsort
SELECT ALL + 42 * - 70 * - + 49 + + - 88 + + 30 AS col2
----
144002

onlyif mysql # DIV for integer division: 
query I rowsort label-3083
SELECT - 31 DIV 75 - + 6 DIV - + 42
----
0

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 31 / 75 - + 6 / - + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - COALESCE ( + 40, 65, + COUNT( DISTINCT ( - 78 ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-3084
SELECT - COALESCE ( + 40, 65, + COUNT ( DISTINCT ( - 78 ) ) )
----
-40

query I rowsort
SELECT ALL - + ( - 41 ) * + + 15 + - 79
----
536

query I rowsort
SELECT - 95 * 23
----
-2185

query I rowsort
SELECT ALL - 83 * - 21 col1
----
1743

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - MAX( DISTINCT 10 ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-3088
SELECT - MAX ( DISTINCT 10 ) col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL - 66 * 67 * - - 10 * - - COUNT( * )
----
-44220

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - 66 * 67 * - - 10 * - - COUNT ( * )
----
-44220

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - NULLIF ( MIN( DISTINCT + 22 ), 53 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3090
SELECT - NULLIF ( MIN ( DISTINCT + 22 ), 53 ) AS col1
----
-22

query I rowsort
SELECT + 65 * - 34 AS col0
----
-2210

query I rowsort
SELECT - 35 + - 63 + + ( 28 ) AS col0
----
-70

query I rowsort
SELECT + 41 - + - 35 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + SUM( DISTINCT + 98 ) * 54 col2
----
5292

skipif mysql # not compatible
query I rowsort label-3094
SELECT + SUM ( DISTINCT + 98 ) * 54 col2
----
5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3095
SELECT - 11 + + COUNT( * ) + 92 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT - 11 + + COUNT ( * ) + 92 / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 87 + - ( - 92 ) AS col0, 25 * + 49
----
5
1225

query I rowsort
SELECT DISTINCT 58 * ( - 3 ) AS col1
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3098
SELECT + SUM( - 58 ) + - + CASE - 74 WHEN + ( 94 ) * 74 + + + NULLIF ( - 26, - COUNT( * ) ) + + COUNT( * ) + + + SUM( - 23 ) THEN NULL ELSE 69 DIV - COUNT( * ) + + ( + 32 ) END AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3098
SELECT + SUM ( - 58 ) + - + CASE - 74 WHEN + ( 94 ) * 74 + + + NULLIF ( - 26, - COUNT ( * ) ) + + COUNT ( * ) + + + SUM ( - 23 ) THEN NULL ELSE 69 / - COUNT ( * ) + + ( + 32 ) END AS col1
----
-21

query I rowsort
SELECT ALL 75 * - - 23 AS col2
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT SUM( + - 13 ) * - 22 + - + 42 AS col0
----
244

skipif mysql # not compatible
query I rowsort label-3100
SELECT SUM ( + - 13 ) * - 22 + - + 42 AS col0
----
244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 87 / 48 / + COUNT( DISTINCT + 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 87 / 48 / + COUNT ( DISTINCT + 97 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT ALL - COUNT( * ), + COALESCE ( - + 39, - 59 * - 55, - 26, 59 ) + - 58 * - 85 + + 73 AS col1
----
-1
4964

skipif mysql # not compatible
query II rowsort label-3102
SELECT ALL - COUNT ( * ), + COALESCE ( - + 39, - 59 * - 55, - 26, 59 ) + - 58 * - 85 + + 73 AS col1
----
-1
4964

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

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

query I rowsort
SELECT ALL 15 + + 39 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT 95 * - 26 * COUNT( * ) + - COUNT( * )
----
-2471

skipif mysql # not compatible
query I rowsort label-3105
SELECT 95 * - 26 * COUNT ( * ) + - COUNT ( * )
----
-2471

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - 17 + + SUM( DISTINCT - + NULLIF ( 56, + 32 ) ) * - 5 AS col2
----
263

skipif mysql # not compatible
query I rowsort label-3107
SELECT - 17 + + SUM ( DISTINCT - + NULLIF ( 56, + 32 ) ) * - 5 AS col2
----
263

onlyif mysql # aggregate syntax: 
query II rowsort label-3108
SELECT COALESCE ( + 64, + COALESCE ( COUNT( * ), + COUNT( * ) ) ) * - - 66 * - + 36 + 59 AS col1, 41 + - - COUNT( * ) - + 40 + - 78 + - 4 * + 85
----
-152005
-416

skipif mysql # not compatible
query II rowsort label-3108
SELECT COALESCE ( + 64, + COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) * - - 66 * - + 36 + 59 AS col1, 41 + - - COUNT ( * ) - + 40 + - 78 + - 4 * + 85
----
-152005
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + MIN( + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-3109
SELECT + MIN ( + 48 )
----
48

query I rowsort
SELECT ALL + 11 + 18 - - + 97 AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT ALL 70 + + + 23 - + CAST( COUNT( * ) AS SIGNED ) * + 22 + - + SUM( - + 69 )
----
140

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL 70 + + + 23 - + CAST ( COUNT ( * ) AS INTEGER ) * + 22 + - + SUM ( - + 69 )
----
140

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

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - 42 / + 76 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT + 49 DIV COUNT( * ) * + - 81 AS col1
----
-3969

skipif mysql # not compatible
query I rowsort label-3113
SELECT + 49 / COUNT ( * ) * + - 81 AS col1
----
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ALL + - ( - CASE 0 WHEN - + 65 THEN + + 71 * + 98 + COUNT( * ) * + AVG ( + + ( + 24 ) ) ELSE NULL END ) * 19 * + 37 * + + 38 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + - ( - CASE 0 WHEN - + 65 THEN + + 71 * + 98 + COUNT ( * ) * + AVG ( + + ( + 24 ) ) ELSE NULL END ) * 19 * + 37 * + + 38 * - 63
----
NULL

query II rowsort
SELECT + 46, - 33 * + 20 + - - 52 - - 38 AS col0
----
46
-570

query I rowsort
SELECT - 15 + - - 98 * + - 56
----
-5503

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT 54 + - 23 - - MIN( ALL + 67 ) * - 80
----
-5329

skipif mysql # not compatible
query I rowsort label-3117
SELECT 54 + - 23 - - MIN ( ALL + 67 ) * - 80
----
-5329

query I rowsort
SELECT 13 + - + 61 + + 81
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL - - MAX( DISTINCT - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL - - MAX ( DISTINCT - 24 ) AS col1
----
-24

query I rowsort
SELECT - 56 * + 4
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - + 37 * - 65 * + ( + COUNT( * ) ) + + 12 * + 81 * + 76 AS col0
----
76277

skipif mysql # not compatible
query I rowsort label-3121
SELECT - + 37 * - 65 * + ( + COUNT ( * ) ) + + 12 * + 81 * + 76 AS col0
----
76277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3122
SELECT DISTINCT + 24 - + COALESCE ( COUNT( * ), + 68 + - + 25 + - 56 * - + 37 * - - NULLIF ( 54, + 36 DIV + 96 + 72 + 56 * 97 ) * + + COALESCE ( + - 70, + 88, - + 54, + 71 * - 7 + + COALESCE ( 2, - 33 ) ) + - 35 - + 31 + 88 * 45 ) + 20 DIV 97 * - COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT + 24 - + COALESCE ( COUNT ( * ), + 68 + - + 25 + - 56 * - + 37 * - - NULLIF ( 54, + 36 / + 96 + 72 + 56 * 97 ) * + + COALESCE ( + - 70, + 88, - + 54, + 71 * - 7 + + COALESCE ( 2, - 33 ) ) + - 35 - + 31 + 88 * 45 ) + 20 / 97 * - COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT ALL + NULLIF ( MIN( DISTINCT + - ( - + 34 ) ), 69 ) AS col1, - 78 AS col0
----
34
-78

skipif mysql # not compatible
query II rowsort label-3123
SELECT ALL + NULLIF ( MIN ( DISTINCT + - ( - + 34 ) ), 69 ) AS col1, - 78 AS col0
----
34
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3124
SELECT ALL + COUNT( - 63 ) DIV - + 94 DIV + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + COUNT ( - 63 ) / - + 94 / + 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT 32 + + COUNT( * ) + + 21 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3125
SELECT 32 + + COUNT ( * ) + + 21 AS col0
----
54

query I rowsort
SELECT 42 + 13
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + CASE - - 98 WHEN - 13 THEN 92 + - 16 * 51 / COUNT( * ) / - - 7 ELSE + COALESCE ( - + 74, + NULLIF ( + + 4, + 0 * + ( + + CAST( NULL AS SIGNED ) ) + - 73 + + 13 ) / 1 * + 12, + ( 63 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + CASE - - 98 WHEN - 13 THEN 92 + - 16 * 51 / COUNT ( * ) / - - 7 ELSE + COALESCE ( - + 74, + NULLIF ( + + 4, + 0 * + ( + + CAST ( NULL AS INTEGER ) ) + - 73 + + 13 ) / 1 * + 12, + ( 63 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT DISTINCT 51 AS col1, + COUNT( * ) + 20 * + + 63 * + - 14
----
51
-17639

skipif mysql # not compatible
query II rowsort label-3128
SELECT DISTINCT 51 AS col1, + COUNT ( * ) + 20 * + + 63 * + - 14
----
51
-17639

query I rowsort
SELECT 22 * 52 * + 3
----
3432

query I rowsort
SELECT 58 + 77 - - 98 col1
----
233

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT - 57, + 40 - - SUM( - 39 ) AS col2
----
-57
1

skipif mysql # not compatible
query II rowsort label-3131
SELECT - 57, + 40 - - SUM ( - 39 ) AS col2
----
-57
1

query II rowsort
SELECT ALL 14, - 83 AS col2
----
14
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL - CAST( + ( - ( - + 65 ) ) AS SIGNED ) * - 18
----
1170

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - CAST ( + ( - ( - + 65 ) ) AS INTEGER ) * - 18
----
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-3134
SELECT ALL + COUNT( * ) * - 69, - 92 AS col1
----
-69
-92

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL + COUNT ( * ) * - 69, - 92 AS col1
----
-69
-92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT ALL 71, COUNT( * ) * + - 62 AS col2
----
71
-62

skipif mysql # not compatible
query II rowsort label-3136
SELECT ALL 71, COUNT ( * ) * + - 62 AS col2
----
71
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL - 63 + NULLIF ( + + 2, - COUNT( * ) + 35 ) - + ( + - 69 ) * - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - 63 + NULLIF ( + + 2, - COUNT ( * ) + 35 ) - + ( + - 69 ) * - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT DISTINCT - 45 + + - 87 DIV - 14 + + 8
----
-31

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - 45 + + - 87 / - 14 + + 8
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3139
SELECT COUNT( * ), - CASE 73 WHEN - + 76 THEN + CASE + 99 WHEN - 13 THEN - + 3 WHEN - 40 THEN NULL ELSE NULL END * - SUM( DISTINCT 34 ) + - 58 + + - COUNT( * ) * + CASE + - CAST( NULL AS SIGNED ) WHEN 54 * + + COALESCE ( - 36, 1 ) * - COALESCE ( 6, - 92 * 91 * - + 40 * - 57 * - 84 + - 97 * + 79 ) + + 23 * 4 + ( - 5 ) THEN 66 * 20 END + - 22 * 66 WHEN + 5 THEN + COUNT( * ) * 35 + - 44 WHEN + 30 * - 23 THEN - CAST( - 52 AS SIGNED ) END * 85 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3139
SELECT COUNT ( * ), - CASE 73 WHEN - + 76 THEN + CASE + 99 WHEN - 13 THEN - + 3 WHEN - 40 THEN NULL ELSE NULL END * - SUM ( DISTINCT 34 ) + - 58 + + - COUNT ( * ) * + CASE + - CAST ( NULL AS INTEGER ) WHEN 54 * + + COALESCE ( - 36, 1 ) * - COALESCE ( 6, - 92 * 91 * - + 40 * - 57 * - 84 + - 97 * + 79 ) + + 23 * 4 + ( - 5 ) THEN 66 * 20 END + - 22 * 66 WHEN + 5 THEN + COUNT ( * ) * 35 + - 44 WHEN + 30 * - 23 THEN - CAST ( - 52 AS INTEGER ) END * 85 AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT 92 + + CAST( NULL AS SIGNED ) + ( - - 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT 92 + + CAST ( NULL AS INTEGER ) + ( - - 33 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT + CASE + + 68 WHEN CASE - ( 74 ) WHEN + - CAST( + + 31 AS SIGNED ) THEN + ( + + MAX( ALL - - 32 ) ) ELSE + + 3 END THEN NULL ELSE 8 END
----
8

skipif mysql # not compatible
query I rowsort label-3141
SELECT + CASE + + 68 WHEN CASE - ( 74 ) WHEN + - CAST ( + + 31 AS INTEGER ) THEN + ( + + MAX ( ALL - - 32 ) ) ELSE + + 3 END THEN NULL ELSE 8 END
----
8

query I rowsort
SELECT ALL + 82 + + 97
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT + + CASE + 68 WHEN - NULLIF ( 64, - + 88 ) THEN + 89 + - - 70 WHEN + COUNT( NULLIF ( - CAST( NULL AS SIGNED ), 80 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT + + CASE + 68 WHEN - NULLIF ( 64, - + 88 ) THEN + 89 + - - 70 WHEN + COUNT ( NULLIF ( - CAST ( NULL AS INTEGER ), 80 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT DISTINCT + - 64 DIV + + ( 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + - 64 / + + ( 40 ) AS col0
----
-1

query I rowsort
SELECT 12 * + 32 * + - 97 AS col2
----
-37248

query I rowsort
SELECT ALL - + 14 * 48 AS col2
----
-672

query II rowsort
SELECT 31, 51 AS col0
----
31
51

query II rowsort
SELECT 92 - - 51 col0, ( + + 80 )
----
143
80

query I rowsort
SELECT - 73 * 80 + + 83 col2
----
-5757

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL - MIN( + 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - MIN ( + 88 ) AS col1
----
-88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3152
SELECT + 22 * 90 DIV + 7 + - + 45 + + 73 + COUNT( ALL - 85 ), - 32 AS col1
----
311
-32

skipif mysql # not compatible
query II rowsort label-3152
SELECT + 22 * 90 / + 7 + - + 45 + + 73 + COUNT ( ALL - 85 ), - 32 AS col1
----
311
-32

query I rowsort
SELECT + 40 * + - 70 * - 18
----
50400

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT ALL + 64 DIV + 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + 64 / + 57 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3155
SELECT NULLIF ( + + 16, + CAST( NULL AS DECIMAL ) )
----
16

skipif mysql # not compatible
query I rowsort label-3155
SELECT NULLIF ( + + 16, + CAST ( NULL AS REAL ) )
----
16

query II rowsort
SELECT ALL - + 23 col2, ( - 49 )
----
-23
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT DISTINCT + 36 DIV + - 49 * - - 15 * + 13 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + 36 / + - 49 * - - 15 * + 13 * COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3158
SELECT ALL - + 63 * 18, + COALESCE ( - 22, + CAST( - 20 AS SIGNED ) - + 17 * - 23 * 59 ) * 53 AS col2
----
-1134
-1166

skipif mysql # not compatible
query II rowsort label-3158
SELECT ALL - + 63 * 18, + COALESCE ( - 22, + CAST ( - 20 AS INTEGER ) - + 17 * - 23 * 59 ) * 53 AS col2
----
-1134
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT 38 * - COUNT( * ) + - - ( + + 86 ) + - 63 + + + 27 * - + ( + 79 ) * - 92 AS col0
----
196221

skipif mysql # not compatible
query I rowsort label-3159
SELECT 38 * - COUNT ( * ) + - - ( + + 86 ) + - 63 + + + 27 * - + ( + 79 ) * - 92 AS col0
----
196221

query II rowsort
SELECT ALL 37 AS col2, - 8 AS col2
----
37
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT COUNT( * ) + - + 79 + + 86 + COALESCE ( + - 24, - 52 ) * - 74
----
1784

skipif mysql # not compatible
query I rowsort label-3161
SELECT COUNT ( * ) + - + 79 + + 86 + COALESCE ( + - 24, - 52 ) * - 74
----
1784

query I rowsort
SELECT 32 * + 58 * ( - + 55 )
----
-102080

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT 67 * - + COUNT( * ) AS col0, - ( 29 ) - + 86 AS col0
----
-67
-115

skipif mysql # not compatible
query II rowsort label-3163
SELECT 67 * - + COUNT ( * ) AS col0, - ( 29 ) - + 86 AS col0
----
-67
-115

query I rowsort
SELECT 38 - + 49
----
-11

query I rowsort
SELECT DISTINCT 11 * - 4 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - COALESCE ( - COUNT( * ), 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3166
SELECT - COALESCE ( - COUNT ( * ), 83 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT ALL 46 * - 38 * - - COUNT( * ) * - - 67 * - COUNT( * ) AS col0, - 34 * - 88 * 20 + - - 16 + 69 AS col2
----
117116
59925

skipif mysql # not compatible
query II rowsort label-3167
SELECT ALL 46 * - 38 * - - COUNT ( * ) * - - 67 * - COUNT ( * ) AS col0, - 34 * - 88 * 20 + - - 16 + 69 AS col2
----
117116
59925

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT NULLIF ( + 30, - - COUNT( * ) ) + 42
----
72

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT NULLIF ( + 30, - - COUNT ( * ) ) + 42
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT - COUNT( * ) + - 91 + + + COUNT( * ) * + 58
----
-34

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - COUNT ( * ) + - 91 + + + COUNT ( * ) * + 58
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT + 46 + + CAST( NULL AS SIGNED ) * 3 + - ( + 95 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT + 46 + + CAST ( NULL AS INTEGER ) * 3 + - ( + 95 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT - 10 DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT - 10 / + 52 AS col0
----
0

query I rowsort
SELECT + 22 + + 60 + - 55 + - - NULLIF ( + + ( + - 83 ), 96 ) + - 13
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT ALL - 58 DIV + 10
----
-5

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL - 58 / + 10
----
-5

query I rowsort
SELECT ALL + 4 + - + 65 * - 64 AS col2
----
4164

query I rowsort
SELECT - 74 + - 79 + - + 58
----
-211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT - 92 * - + 85 / + 87 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT - 92 * - + 85 / + 87 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT - 8 + - 4 AS col1, MIN( DISTINCT + 52 )
----
-12
52

skipif mysql # not compatible
query II rowsort label-3177
SELECT - 8 + - 4 AS col1, MIN ( DISTINCT + 52 )
----
-12
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3178
SELECT DISTINCT - + COUNT( * ) * 80 - + 76, COUNT( * ) AS col0
----
-156
1

skipif mysql # not compatible
query II rowsort label-3178
SELECT DISTINCT - + COUNT ( * ) * 80 - + 76, COUNT ( * ) AS col0
----
-156
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT ALL - + 91 DIV - ( 88 )
----
1

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - + 91 / - ( 88 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT - 74 * 81 AS col0, + ( 14 ) - - MAX( + 81 )
----
-5994
95

skipif mysql # not compatible
query II rowsort label-3180
SELECT - 74 * 81 AS col0, + ( 14 ) - - MAX ( + 81 )
----
-5994
95

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

skipif mysql # not compatible
query I rowsort label-3181
SELECT + + 87 * - 21 + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3183
SELECT - COALESCE ( 92, + CAST( NULL AS SIGNED ) DIV - COUNT( * ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3183
SELECT - COALESCE ( 92, + CAST ( NULL AS INTEGER ) / - COUNT ( * ) ) AS col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT 95 DIV 5 + + 23 + + + NULLIF ( 71, + - 84 * 32 + NULLIF ( + 8, - NULLIF ( 53, + ( + COUNT( * ) ) * - 6 - - 22 + - 84 ) DIV - 72 + + - 89 + 24 * + COUNT( + 0 ) * + COUNT( * ) + - 59 + - 8 DIV - 1 ) DIV - + 48 ) col1
----
113

skipif mysql # not compatible
query I rowsort label-3184
SELECT 95 / 5 + + 23 + + + NULLIF ( 71, + - 84 * 32 + NULLIF ( + 8, - NULLIF ( 53, + ( + COUNT ( * ) ) * - 6 - - 22 + - 84 ) / - 72 + + - 89 + 24 * + COUNT ( + 0 ) * + COUNT ( * ) + - 59 + - 8 / - 1 ) / - + 48 ) col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT + ( + 17 ) * NULLIF ( + COUNT( 22 ), + - 77 ) * + 66 - - - 8 + 36
----
1150

skipif mysql # not compatible
query I rowsort label-3185
SELECT + ( + 17 ) * NULLIF ( + COUNT ( 22 ), + - 77 ) * + 66 - - - 8 + 36
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT - + 79 * + 98 * COUNT( * ) col2
----
-7742

skipif mysql # not compatible
query I rowsort label-3186
SELECT - + 79 * + 98 * COUNT ( * ) col2
----
-7742

query I rowsort
SELECT - + 15 * - 91 + - - 41
----
1406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT ALL + - 35 * - + 34 * COUNT( * ) + MAX( DISTINCT + - 69 ) DIV - + 62 - - 21 * - - 3 col0
----
1254

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + - 35 * - + 34 * COUNT ( * ) + MAX ( DISTINCT + - 69 ) / - + 62 - - 21 * - - 3 col0
----
1254

query I rowsort
SELECT ALL 77 * 43 AS col0
----
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + - MAX( + 21 ) * - - 11 * - 78
----
18018

skipif mysql # not compatible
query I rowsort label-3190
SELECT + - MAX ( + 21 ) * - - 11 * - 78
----
18018

query I rowsort
SELECT - - 52 + - 9
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT COUNT( ALL - - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-3192
SELECT COUNT ( ALL - - 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT COUNT( ALL - - 86 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3193
SELECT COUNT ( ALL - - 86 ) AS col2
----
1

query I rowsort
SELECT + 77 + + ( ( - ( + - 99 ) ) ) AS col1
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT + 88 DIV 75
----
1

skipif mysql # not compatible
query I rowsort label-3195
SELECT + 88 / 75
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT + COUNT( + ( + + ( - - 76 ) ) ) * ( - ( + - 62 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3196
SELECT + COUNT ( + ( + + ( - - 76 ) ) ) * ( - ( + - 62 ) ) AS col0
----
62

query I rowsort
SELECT ALL 19 * - - 36 + + 76 AS col2
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT + 6 + + COUNT( * ) + 71
----
78

skipif mysql # not compatible
query I rowsort label-3198
SELECT + 6 + + COUNT ( * ) + 71
----
78

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT MAX( - 99 ) * MIN( - 91 ) + + + 78 AS col1
----
9087

skipif mysql # not compatible
query I rowsort label-3201
SELECT MAX ( - 99 ) * MIN ( - 91 ) + + + 78 AS col1
----
9087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3202
SELECT ALL 52 + - + MAX( DISTINCT 6 ) AS col1, CAST( - 51 AS SIGNED ) * - 14 * - 63 + COUNT( * ) col1
----
46
-44981

skipif mysql # not compatible
query II rowsort label-3202
SELECT ALL 52 + - + MAX ( DISTINCT 6 ) AS col1, CAST ( - 51 AS INTEGER ) * - 14 * - 63 + COUNT ( * ) col1
----
46
-44981

query I rowsort
SELECT + 34 + - 94
----
-60

query II rowsort
SELECT 58 AS col2, - 17 AS col0
----
58
-17

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

query I rowsort
SELECT ALL 93 * + - 95
----
-8835

query I rowsort
SELECT - 80 + - 53
----
-133

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT 83, - COUNT( * ) * 15 + - COUNT( * ) col0
----
83
-16

skipif mysql # not compatible
query II rowsort label-3209
SELECT 83, - COUNT ( * ) * 15 + - COUNT ( * ) col0
----
83
-16

query I rowsort
SELECT ALL 57 * - + 26
----
-1482

query I rowsort
SELECT ALL COALESCE ( 45, - 43 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL CASE + - 85 WHEN + MIN( - 16 ) * + 95 * + + 21 * 54 - + MAX( + + ( - 83 ) ) THEN - 67 WHEN + 7 THEN NULL WHEN + 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL CASE + - 85 WHEN + MIN ( - 16 ) * + 95 * + + 21 * 54 - + MAX ( + + ( - 83 ) ) THEN - 67 WHEN + 7 THEN NULL WHEN + 50 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - ( 63 ) - 64 - - 60 AS col0, - 21 - 50 + 41 + 50 * + 26
----
-67
1270

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - COUNT( - 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3214
SELECT - COUNT ( - 47 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3215
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN + 11 * 19 + + AVG ( DISTINCT 84 ) + - - COUNT( * ) THEN NULL ELSE + - 4 END - + 81 AS col1, 37 * + + COUNT( ALL 56 )
----
-77
37

skipif mysql # not compatible
query II rowsort label-3215
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN + 11 * 19 + + AVG ( DISTINCT 84 ) + - - COUNT ( * ) THEN NULL ELSE + - 4 END - + 81 AS col1, 37 * + + COUNT ( ALL 56 )
----
-77
37

query I rowsort
SELECT - - 69 * + - 90 * + + ( - 43 ) + 88 AS col1
----
267118

query II rowsort
SELECT + 64 AS col2, - 86
----
64
-86

query II rowsort
SELECT DISTINCT + - 21 AS col0, + 10 * + 87 AS col1
----
-21
870

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT + - COUNT( * ) * + - 18 col0
----
18

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT + - COUNT ( * ) * + - 18 col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3220
SELECT ALL 83 * - 90 + - - 65 + + + 95 DIV + 37 + + COUNT( * ) + - 79 AS col2
----
-7481

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL 83 * - 90 + - - 65 + + + 95 / + 37 + + COUNT ( * ) + - 79 AS col2
----
-7481

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT - - NULLIF ( + 44, - + 13 - + 46 ) DIV 97 - - 50
----
50

skipif mysql # not compatible
query I rowsort label-3221
SELECT - - NULLIF ( + 44, - + 13 - + 46 ) / 97 - - 50
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3222
SELECT - 63 DIV - 16 + NULLIF ( + COUNT( * ), - - CASE - 90 WHEN - ( 64 ) * - COUNT( * ) DIV + CASE + 75 WHEN + + CAST( NULL AS DECIMAL ) + - 84 * + 98 THEN + 0 + 94 END THEN NULL ELSE - - 42 * - - CAST( NULL AS SIGNED ) * + - ( 53 ) * - 62 END + - 14 + 85 * 8 * + - 43 )
----
4

skipif mysql # not compatible
query I rowsort label-3222
SELECT - 63 / - 16 + NULLIF ( + COUNT ( * ), - - CASE - 90 WHEN - ( 64 ) * - COUNT ( * ) / + CASE + 75 WHEN + + CAST ( NULL AS REAL ) + - 84 * + 98 THEN + 0 + 94 END THEN NULL ELSE - - 42 * - - CAST ( NULL AS INTEGER ) * + - ( 53 ) * - 62 END + - 14 + 85 * 8 * + - 43 )
----
4

query I rowsort
SELECT DISTINCT + + 54 * 78
----
4212

query I rowsort
SELECT ALL - + 92 * - ( - 45 ) AS col0
----
-4140

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT - - SUM( ALL 36 ) * + + 5, COUNT( * ) AS col1
----
180
1

skipif mysql # not compatible
query II rowsort label-3225
SELECT - - SUM ( ALL 36 ) * + + 5, COUNT ( * ) AS col1
----
180
1

query II rowsort
SELECT 85 AS col2, - 29 col1
----
85
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT ALL + + COALESCE ( + 4, + NULLIF ( 83, + CAST( + + 71 AS SIGNED ) ), 75 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + + COALESCE ( + 4, + NULLIF ( 83, + CAST ( + + 71 AS INTEGER ) ), 75 ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - - 23 + + 36 + + NULLIF ( + - 95, 77 + + 7 + + MAX( - 78 ) + - 81 * + - 67 * + + 40 ) + + - 96 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-3228
SELECT - - 23 + + 36 + + NULLIF ( + - 95, 77 + + 7 + + MAX ( - 78 ) + - 81 * + - 67 * + + 40 ) + + - 96 AS col1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT - 11 * 49 DIV - 93
----
5

skipif mysql # not compatible
query I rowsort label-3229
SELECT - 11 * 49 / - 93
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT DISTINCT - + 75 DIV - 49 + - 11 DIV + 56 col1
----
1

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - + 75 / - 49 + - 11 / + 56 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3231
SELECT + ( + 58 ) * + 61 + - 36 - + 35 + - 13 DIV - CASE - 63 WHEN + 97 * 86 THEN - 23 WHEN AVG ( ALL + ( - 85 ) ) THEN + + COUNT( * ) + - 1 ELSE - + 57 END + + + 33 AS col0
----
3500

skipif mysql # not compatible
query I rowsort label-3231
SELECT + ( + 58 ) * + 61 + - 36 - + 35 + - 13 / - CASE - 63 WHEN + 97 * 86 THEN - 23 WHEN AVG ( ALL + ( - 85 ) ) THEN + + COUNT ( * ) + - 1 ELSE - + 57 END + + + 33 AS col0
----
3500

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ALL - NULLIF ( + - COUNT( * ), + 21 ) + + COALESCE ( + COALESCE ( 66, + - 84 ), - - 87 + ( - + 61 ) ) + - 45
----
22

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - NULLIF ( + - COUNT ( * ), + 21 ) + + COALESCE ( + COALESCE ( 66, + - 84 ), - - 87 + ( - + 61 ) ) + - 45
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL 53 + COUNT( * ) - - NULLIF ( - COUNT( * ), + + COUNT( ALL - - 29 ) + + 20 ) + - + 10
----
43

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL 53 + COUNT ( * ) - - NULLIF ( - COUNT ( * ), + + COUNT ( ALL - - 29 ) + + 20 ) + - + 10
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT 11 + ( CASE + SUM( DISTINCT - 89 ) WHEN - 98 * + 19 * + - 89 THEN NULL ELSE - - 63 END ) - + 80 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT 11 + ( CASE + SUM ( DISTINCT - 89 ) WHEN - 98 * + 19 * + - 89 THEN NULL ELSE - - 63 END ) - + 80 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3235
SELECT ALL + 76 * + ( ( + 4 ) ) AS col0, ( 2 ) * CASE - - 0 WHEN + CAST( NULL AS SIGNED ) + COUNT( DISTINCT + 71 ) THEN NULL WHEN + 78 THEN 20 WHEN + 26 THEN + - 70 - + ( - - 1 ) + - 79 END + + 94 AS col1
----
304
NULL

skipif mysql # not compatible
query II rowsort label-3235
SELECT ALL + 76 * + ( ( + 4 ) ) AS col0, ( 2 ) * CASE - - 0 WHEN + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT + 71 ) THEN NULL WHEN + 78 THEN 20 WHEN + 26 THEN + - 70 - + ( - - 1 ) + - 79 END + + 94 AS col1
----
304
NULL

query I rowsort
SELECT DISTINCT 88 + - 47
----
41

query I rowsort
SELECT 38 - - 45 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT + 58 * 99 * CAST( NULL AS SIGNED ) * - - CASE + + 82 WHEN + COUNT( * ) * - NULLIF ( NULLIF ( - + COUNT( * ), + 11 + 18 ), 46 + - 81 * + + 5 ) + - + 75 THEN NULL WHEN - + 1 THEN NULL ELSE 39 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + 58 * 99 * CAST ( NULL AS INTEGER ) * - - CASE + + 82 WHEN + COUNT ( * ) * - NULLIF ( NULLIF ( - + COUNT ( * ), + 11 + 18 ), 46 + - 81 * + + 5 ) + - + 75 THEN NULL WHEN - + 1 THEN NULL ELSE 39 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3239
SELECT 73 - + 91 AS col1, + 92 + - - 25 DIV + SUM( - 80 )
----
-18
92

skipif mysql # not compatible
query II rowsort label-3239
SELECT 73 - + 91 AS col1, + 92 + - - 25 / + SUM ( - 80 )
----
-18
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT MIN( ALL + + 86 ) * + 39
----
3354

skipif mysql # not compatible
query I rowsort label-3240
SELECT MIN ( ALL + + 86 ) * + 39
----
3354

query I rowsort
SELECT DISTINCT - 86 - - 57 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT 9 DIV 87 * + COALESCE ( + 89, 95 )
----
0

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT 9 / 87 * + COALESCE ( + 89, 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL MIN( ALL + 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL MIN ( ALL + 7 ) col1
----
7

query I rowsort
SELECT 97 + - 25 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT - 26 - COUNT( * ) + 59 col2
----
32

skipif mysql # not compatible
query I rowsort label-3245
SELECT - 26 - COUNT ( * ) + 59 col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT ALL 9 - + - COUNT( * ) AS col0, - 55 + + 53 + - 88 AS col1
----
10
-90

skipif mysql # not compatible
query II rowsort label-3246
SELECT ALL 9 - + - COUNT ( * ) AS col0, - 55 + + 53 + - 88 AS col1
----
10
-90

query II rowsort
SELECT - ( - 15 ), 22 AS col2
----
15
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3248
SELECT ALL + NULLIF ( CAST( + - 71 AS SIGNED ), + COALESCE ( + 39, CAST( SUM( DISTINCT 9 ) AS SIGNED ) ) )
----
-71

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + NULLIF ( CAST ( + - 71 AS INTEGER ), + COALESCE ( + 39, CAST ( SUM ( DISTINCT 9 ) AS INTEGER ) ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL - CASE + 96 WHEN - COUNT( * ) THEN NULL WHEN + 46 * + ( COUNT( * ) ) + - 98 - + 6 + + - 27 * - + 88 * - 18 * - - COUNT( * ) THEN + 62 + + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL - CASE + 96 WHEN - COUNT ( * ) THEN NULL WHEN + 46 * + ( COUNT ( * ) ) + - 98 - + 6 + + - 27 * - + 88 * - 18 * - - COUNT ( * ) THEN + 62 + + 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + NULLIF ( + 40, + - 19 ) + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3250
SELECT + NULLIF ( + 40, + - 19 ) + COUNT ( * )
----
41

query I rowsort
SELECT + 65 * + 67 AS col2
----
4355

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3252
SELECT 48 + + 99 / 31 + - + CAST( NULL AS DECIMAL ) + - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT 48 + + 99 / 31 + - + CAST ( NULL AS REAL ) + - + 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT 57 * - + CAST( NULL AS SIGNED ) * + + SUM( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT 57 * - + CAST ( NULL AS INTEGER ) * + + SUM ( - 41 )
----
NULL

query I rowsort
SELECT DISTINCT - 62 + + 96
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT DISTINCT - CAST( - 85 AS SIGNED ) * + 55 * + 44 AS col0
----
205700

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) * + 55 * + 44 AS col0
----
205700

query I rowsort
SELECT 99 * + 36 + + - 37
----
3527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3257
SELECT 92 AS col1, + ( - + ( SUM( DISTINCT + - 39 ) ) ) + - 71 * - - MAX( - CAST( + 56 AS SIGNED ) )
----
92
4015

skipif mysql # not compatible
query II rowsort label-3257
SELECT 92 AS col1, + ( - + ( SUM ( DISTINCT + - 39 ) ) ) + - 71 * - - MAX ( - CAST ( + 56 AS INTEGER ) )
----
92
4015

query II rowsort
SELECT + 53 AS col0, 30 + - 40
----
53
-10

query I rowsort
SELECT NULLIF ( 33, 92 ) + - 96
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT 57 + - 19 DIV - ( - 37 ) * - 4 + - 89 DIV SUM( DISTINCT + 18 ) + + MAX( 62 ) + + - 93 DIV - ( + - 36 )
----
113

skipif mysql # not compatible
query I rowsort label-3260
SELECT 57 + - 19 / - ( - 37 ) * - 4 + - 89 / SUM ( DISTINCT + 18 ) + + MAX ( 62 ) + + - 93 / - ( + - 36 )
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT ALL - 99 - - 71 * - 80 col2, + COUNT( * )
----
-5779
1

skipif mysql # not compatible
query II rowsort label-3261
SELECT ALL - 99 - - 71 * - 80 col2, + COUNT ( * )
----
-5779
1

query I rowsort
SELECT ALL - COALESCE ( + - 20, COALESCE ( - 78, 27 ) * + 82 ) col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT + 85 * CASE + - 74 WHEN - 8 - - 59 + 9 THEN 76 WHEN - MIN( + 58 ) THEN CAST( - + 23 AS SIGNED ) + + - 98 - - COUNT( * ) + + CAST( + + COUNT( * ) AS SIGNED ) END * + 87 - NULLIF ( + + 37, + + 0 ) + + 18 * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT + 85 * CASE + - 74 WHEN - 8 - - 59 + 9 THEN 76 WHEN - MIN ( + 58 ) THEN CAST ( - + 23 AS INTEGER ) + + - 98 - - COUNT ( * ) + + CAST ( + + COUNT ( * ) AS INTEGER ) END * + 87 - NULLIF ( + + 37, + + 0 ) + + 18 * - 27 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3264
SELECT DISTINCT + 27 * COUNT( ALL + 15 ) * + MAX( - 24 ) AS col2, - COALESCE ( + NULLIF ( + 61, - 31 ), - COUNT( - CAST( + - 28 AS SIGNED ) ) ) + 17 DIV 73
----
-648
-61

skipif mysql # not compatible
query II rowsort label-3264
SELECT DISTINCT + 27 * COUNT ( ALL + 15 ) * + MAX ( - 24 ) AS col2, - COALESCE ( + NULLIF ( + 61, - 31 ), - COUNT ( - CAST ( + - 28 AS INTEGER ) ) ) + 17 / 73
----
-648
-61

query I rowsort
SELECT 82 + + - 13 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3266
SELECT COALESCE ( - + 58, - 56 - 92 + - CAST( 98 AS SIGNED ) * - COUNT( * ) + - 0 * - 67 ) * + 89 + COUNT( * ) + + + SUM( + 73 ) * + + 17 * 40
----
44479

skipif mysql # not compatible
query I rowsort label-3266
SELECT COALESCE ( - + 58, - 56 - 92 + - CAST ( 98 AS INTEGER ) * - COUNT ( * ) + - 0 * - 67 ) * + 89 + COUNT ( * ) + + + SUM ( + 73 ) * + + 17 * 40
----
44479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT SUM( - ( + 59 ) ) * - - CAST( - - 0 AS SIGNED ) * + COUNT( * ) * - 73
----
0

skipif mysql # not compatible
query I rowsort label-3267
SELECT SUM ( - ( + 59 ) ) * - - CAST ( - - 0 AS INTEGER ) * + COUNT ( * ) * - 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT ALL + - 13 * - CAST( - 12 AS SIGNED ) + + 70
----
-86

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL + - 13 * - CAST ( - 12 AS INTEGER ) + + 70
----
-86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT DISTINCT 16 DIV + + NULLIF ( - 43, - 44 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT 16 / + + NULLIF ( - 43, - 44 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT MIN( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-3271
SELECT MIN ( - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3272
SELECT ALL - 79 AS col2, - 37 + COUNT( + 46 ) + 26 + 54 + - + 57 AS col0
----
-79
-13

skipif mysql # not compatible
query II rowsort label-3272
SELECT ALL - 79 AS col2, - 37 + COUNT ( + 46 ) + 26 + 54 + - + 57 AS col0
----
-79
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 12 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT 12 / 60
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( 19, - 4 ) + + + 72 AS col1
----
53

query I rowsort
SELECT - 57 - - 66
----
9

query I rowsort
SELECT ALL 1 + + - 90 AS col1
----
-89

query I rowsort
SELECT DISTINCT - 29 + - 26
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL + 95 * COUNT( * ) + - 50 + + + MAX( ALL - CAST( NULL AS SIGNED ) ) + - COUNT( * ) * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + 95 * COUNT ( * ) + - 50 + + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * + 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3279
SELECT + + CASE + 57 WHEN + 57 * - - 29 THEN NULL WHEN 11 / 47 THEN - 8 + - + 66 + SUM( + 8 ) ELSE NULL END AS col0, - 96 * + COALESCE ( + COUNT( * ), - - 25 * + 80 * 77 + - + 3 + + 15 ) * - - NULLIF ( - 98, - 83 - - + 61 + 86 * + - 36 * + 14 ) AS col0
----
NULL
9408

skipif mysql # not compatible
query II rowsort label-3279
SELECT + + CASE + 57 WHEN + 57 * - - 29 THEN NULL WHEN 11 / 47 THEN - 8 + - + 66 + SUM ( + 8 ) ELSE NULL END AS col0, - 96 * + COALESCE ( + COUNT ( * ), - - 25 * + 80 * 77 + - + 3 + + 15 ) * - - NULLIF ( - 98, - 83 - - + 61 + 86 * + - 36 * + 14 ) AS col0
----
NULL
9408

query I rowsort
SELECT ALL 90 * 73
----
6570

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3281
SELECT + 26 DIV 81 + + CAST( + 13 AS SIGNED ) + + - 78 * + 85 AS col0
----
-6617

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 26 / 81 + + CAST ( + 13 AS INTEGER ) + + - 78 * + 85 AS col0
----
-6617

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT CASE + 82 WHEN COUNT( * ) THEN NULL WHEN - 45 * + + COALESCE ( - 33, 4 ) * + 8 + + - COUNT( * ) - + 3 + - - 42 THEN NULL ELSE + NULLIF ( - + ( 11 ), 65 * + 48 - - 5 ) END
----
-11

skipif mysql # not compatible
query I rowsort label-3282
SELECT CASE + 82 WHEN COUNT ( * ) THEN NULL WHEN - 45 * + + COALESCE ( - 33, 4 ) * + 8 + + - COUNT ( * ) - + 3 + - - 42 THEN NULL ELSE + NULLIF ( - + ( 11 ), 65 * + 48 - - 5 ) END
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3283
SELECT + MIN( - - CAST( + - COALESCE ( - 7, CASE + 65 WHEN 45 THEN NULL ELSE + 0 END ) AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-3283
SELECT + MIN ( - - CAST ( + - COALESCE ( - 7, CASE + 65 WHEN 45 THEN NULL ELSE + 0 END ) AS INTEGER ) )
----
7

query I rowsort
SELECT + 82 + + 7
----
89

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

query I rowsort
SELECT + 81 * ( - NULLIF ( + 36, - - 6 ) ) + 21
----
-2895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT - 64 - - 61 + + CAST( - 3 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3287
SELECT - 64 - - 61 + + CAST ( - 3 AS INTEGER ) AS col1
----
-6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL + COUNT( * ) * NULLIF ( + 70, - 29 + + 90 - - 74 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL + COUNT ( * ) * NULLIF ( + 70, - 29 + + 90 - - 74 ) AS col0
----
70

query I rowsort
SELECT DISTINCT - 86 * + 45 * 95 AS col0
----
-367650

onlyif mysql # DIV for integer division: 
query I rowsort label-3292
SELECT + 28 DIV + + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3292
SELECT + 28 / + + 52 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + COUNT( * ) * 69 - - 45 + - 64 + + + 18
----
68

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + COUNT ( * ) * 69 - - 45 + - 64 + + + 18
----
68

query I rowsort
SELECT ALL + CASE - 40 WHEN - 90 + + + 18 THEN 55 * + 65 WHEN + 46 + - 83 THEN NULL ELSE - 66 END AS col0
----
-66

query II rowsort
SELECT ALL 27 * + 90 AS col2, 7
----
2430
7

query II rowsort
SELECT - 39 * + 22 * 91 * + 75 AS col0, 78
----
-5855850
78

query I rowsort
SELECT 41 * - + CASE 83 WHEN 52 * + 7 THEN + + 1 END * 30 + 28
----
NULL

query I rowsort
SELECT - 74 * - + 98
----
7252

query II rowsort
SELECT 98 col2, + 32 AS col1
----
98
32

query II rowsort
SELECT DISTINCT 49 AS col0, - NULLIF ( + - 91, 40 ) AS col0
----
49
91

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

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

query I rowsort
SELECT - 75 - - 66
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL - COUNT( + - 14 ) + + 72 col0
----
71

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - COUNT ( + - 14 ) + + 72 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - - SUM( + - 69 ) + + - 81
----
-150

skipif mysql # not compatible
query I rowsort label-3306
SELECT - - SUM ( + - 69 ) + + - 81
----
-150

query I rowsort
SELECT - + 10 + ( + ( - 91 ) ) * - - 59 AS col0
----
-5379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT - + 5 - + - 11 + + CAST( NULL AS SIGNED ) / + 18 - - MIN( DISTINCT 30 ) + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT - + 5 - + - 11 + + CAST ( NULL AS INTEGER ) / + 18 - - MIN ( DISTINCT 30 ) + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT ALL 0, + NULLIF ( + - 91, + COUNT( * ) + - + 42 ) + + + COUNT( * ) AS col2
----
0
-90

skipif mysql # not compatible
query II rowsort label-3309
SELECT ALL 0, + NULLIF ( + - 91, + COUNT ( * ) + - + 42 ) + + + COUNT ( * ) AS col2
----
0
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - - NULLIF ( - - COALESCE ( 60, 48 + COALESCE ( - - 51, 14 ) ), + - 87 * - ( + 95 ) * - 99 + 11 + + 88 * ( COUNT( * ) ) * + - COALESCE ( - 98, + 61 ) ) + 36 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3311
SELECT - - NULLIF ( - - COALESCE ( 60, 48 + COALESCE ( - - 51, 14 ) ), + - 87 * - ( + 95 ) * - 99 + 11 + + 88 * ( COUNT ( * ) ) * + - COALESCE ( - 98, + 61 ) ) + 36 AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT + - 30 - - - 62 DIV - + MIN( + 31 )
----
-28

skipif mysql # not compatible
query I rowsort label-3312
SELECT + - 30 - - - 62 / - + MIN ( + 31 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT ALL + + COUNT( * ) + - - SUM( - 28 ) + SUM( + 85 ) * - COUNT( * ), CASE - COUNT( * ) WHEN - 1 - COUNT( * ) * - 66 THEN - + 72 + - 22 + + + 77 * - ( + - 90 ) + + 49 + - - MIN( ALL - ( - 30 ) ) + + COUNT( * ) * + 16 * - 22 * - 62 / - - COUNT( * ) * - - 59 * - 39 END AS col0
----
-112
NULL

skipif mysql # not compatible
query II rowsort label-3313
SELECT ALL + + COUNT ( * ) + - - SUM ( - 28 ) + SUM ( + 85 ) * - COUNT ( * ), CASE - COUNT ( * ) WHEN - 1 - COUNT ( * ) * - 66 THEN - + 72 + - 22 + + + 77 * - ( + - 90 ) + + 49 + - - MIN ( ALL - ( - 30 ) ) + + COUNT ( * ) * + 16 * - 22 * - 62 / - - COUNT ( * ) * - - 59 * - 39 END AS col0
----
-112
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL COUNT( * ) + 15 + - 68 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL COUNT ( * ) + 15 + - 68 AS col2
----
-52

query I rowsort
SELECT - ( + ( + 36 ) ) + 11 + + 54 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3316
SELECT + 14 DIV + 70 + + 69 * - 18 * + + CAST( + ( 38 ) AS SIGNED ) AS col1
----
-47196

skipif mysql # not compatible
query I rowsort label-3316
SELECT + 14 / + 70 + + 69 * - 18 * + + CAST ( + ( 38 ) AS INTEGER ) AS col1
----
-47196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3317
SELECT ALL + 32 col0, ( + NULLIF ( - 59, + COALESCE ( + CAST( - AVG ( DISTINCT - 51 ) AS SIGNED ), + 90 ) * - 6 ) ) AS col1
----
32
-59

skipif mysql # not compatible
query II rowsort label-3317
SELECT ALL + 32 col0, ( + NULLIF ( - 59, + COALESCE ( + CAST ( - AVG ( DISTINCT - 51 ) AS INTEGER ), + 90 ) * - 6 ) ) AS col1
----
32
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT + CASE + MAX( - 47 ) WHEN + 85 * 40 THEN NULL WHEN + + 57 THEN + COALESCE ( 23, + ( + - 70 ) / - - 72 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT + CASE + MAX ( - 47 ) WHEN + 85 * 40 THEN NULL WHEN + + 57 THEN + COALESCE ( 23, + ( + - 70 ) / - - 72 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3319
SELECT + 94 + + - MAX( 95 ) AS col2, + 11 * 93 * 1
----
-1
1023

skipif mysql # not compatible
query II rowsort label-3319
SELECT + 94 + + - MAX ( 95 ) AS col2, + 11 * 93 * 1
----
-1
1023

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT ALL 40 DIV - - COALESCE ( - 10, 26 ) - + 48
----
-52

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL 40 / - - COALESCE ( - 10, 26 ) - + 48
----
-52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3322
SELECT DISTINCT + COALESCE ( + CASE - - COALESCE ( + - CAST( + MIN( ALL - - 34 ) AS SIGNED ), - 34, COUNT( * ) * + - 15 + - - COUNT( * ) ) WHEN - CAST( NULL AS SIGNED ) / + - CASE - 14 WHEN - - COUNT( * ) + COALESCE ( - - COUNT( * ), + - 26, - 24 * + + 73 ) + + 51 - + 5 + - CASE - + ( + 98 ) WHEN 69 THEN - COUNT( - 23 ) + 60 * - COUNT( + NULLIF ( - + 57, + + 13 ) ) ELSE + 70 * 96 END + + MIN( - 24 + 97 / - ( + 82 ) ) * + 1 THEN NULL WHEN + 65 THEN - 84 / + 25 END THEN 75 END, 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT + COALESCE ( + CASE - - COALESCE ( + - CAST ( + MIN ( ALL - - 34 ) AS INTEGER ), - 34, COUNT ( * ) * + - 15 + - - COUNT ( * ) ) WHEN - CAST ( NULL AS INTEGER ) / + - CASE - 14 WHEN - - COUNT ( * ) + COALESCE ( - - COUNT ( * ), + - 26, - 24 * + + 73 ) + + 51 - + 5 + - CASE - + ( + 98 ) WHEN 69 THEN - COUNT ( - 23 ) + 60 * - COUNT ( + NULLIF ( - + 57, + + 13 ) ) ELSE + 70 * 96 END + + MIN ( - 24 + 97 / - ( + 82 ) ) * + 1 THEN NULL WHEN + 65 THEN - 84 / + 25 END THEN 75 END, 66 ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT ALL - 45 * COALESCE ( + - 38, 20, - + 68 DIV - 18 + + 54 ) * + 31 + + + 89
----
53099

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - 45 * COALESCE ( + - 38, 20, - + 68 / - 18 + + 54 ) * + 31 + + + 89
----
53099

query II rowsort
SELECT DISTINCT 93 * 43 AS col0, - 53
----
3999
-53

query I rowsort
SELECT - 16 * - 33 AS col2
----
528

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

skipif mysql # not compatible
query I rowsort label-3326
SELECT + 34 + + - COUNT ( * ) * 77 * + 90 AS col2
----
-6896

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT CASE - 81 WHEN + 75 THEN NULL WHEN COUNT( * ) + + 94 THEN + - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT CASE - 81 WHEN + 75 THEN NULL WHEN COUNT ( * ) + + 94 THEN + - 2 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3328
SELECT - 1 * - - CAST( - - AVG ( + 26 ) AS SIGNED ) - + + 56 AS col0, 90 AS col0
----
-82
90

skipif mysql # not compatible
query II rowsort label-3328
SELECT - 1 * - - CAST ( - - AVG ( + 26 ) AS INTEGER ) - + + 56 AS col0, 90 AS col0
----
-82
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT CASE + - COUNT( * ) WHEN - MIN( 90 ) THEN + + COALESCE ( + COUNT( ALL + 91 ), - MAX( + + 75 ), - 54 * 60, - - 28 ) ELSE 20 END
----
20

skipif mysql # not compatible
query I rowsort label-3329
SELECT CASE + - COUNT ( * ) WHEN - MIN ( 90 ) THEN + + COALESCE ( + COUNT ( ALL + 91 ), - MAX ( + + 75 ), - 54 * 60, - - 28 ) ELSE 20 END
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT - 92 + 59 - + 37 + - 52 DIV - 77 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3330
SELECT - 92 + 59 - + 37 + - 52 / - 77 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT + ( + - MIN( DISTINCT + + 63 ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3331
SELECT + ( + - MIN ( DISTINCT + + 63 ) ) AS col1
----
-63

query I rowsort
SELECT ALL + 99 * + + 18 * - 79 + - 67 AS col1
----
-140845

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - 16 * - 19 + + 25 * COUNT( * )
----
329

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 16 * - 19 + + 25 * COUNT ( * )
----
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3334
SELECT ALL COUNT( * ) DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL COUNT ( * ) / - 66 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3336
SELECT - + COALESCE ( - MIN( DISTINCT - + 12 ), 68 * - COUNT( * ), + + 14 DIV + 63 - 33 ) + + 16 col1
----
4

skipif mysql # not compatible
query I rowsort label-3336
SELECT - + COALESCE ( - MIN ( DISTINCT - + 12 ), 68 * - COUNT ( * ), + + 14 / + 63 - 33 ) + + 16 col1
----
4

query I rowsort
SELECT ALL - - 30 * - 19 + + + 64 AS col1
----
-506

query I rowsort
SELECT + + 14 * - 9 * + 29 * 31
----
-113274

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

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

query I rowsort
SELECT - 9 + 56
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3341
SELECT 88 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT 88 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - + 57 + - 4 AS col0
----
-61

query I rowsort
SELECT 21 * + - 6 AS col0
----
-126

query I rowsort
SELECT DISTINCT - 46 + 65 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT COUNT( ALL - 39 ) + + 26 - 83 DIV 15 + - 64
----
-42

skipif mysql # not compatible
query I rowsort label-3345
SELECT COUNT ( ALL - 39 ) + + 26 - 83 / 15 + - 64
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT - ( + NULLIF ( 66, 53 - + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) * + + AVG ( - 54 ) + + 51 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - ( + NULLIF ( 66, 53 - + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + + AVG ( - 54 ) + + 51 ) ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT ALL ( - SUM( DISTINCT - - 13 ) ) AS col1, 1 * + + 51
----
-13
51

skipif mysql # not compatible
query II rowsort label-3347
SELECT ALL ( - SUM ( DISTINCT - - 13 ) ) AS col1, 1 * + + 51
----
-13
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT COUNT( * ) - + + 90 + - COUNT( * ) + + + 73 + - CAST( - + 26 AS SIGNED ) + - 63 * 50
----
-3141

skipif mysql # not compatible
query I rowsort label-3348
SELECT COUNT ( * ) - + + 90 + - COUNT ( * ) + + + 73 + - CAST ( - + 26 AS INTEGER ) + - 63 * 50
----
-3141

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT 51 - + 73 + ( - + 65 ) DIV - + 3 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3349
SELECT 51 - + 73 + ( - + 65 ) / - + 3 AS col1
----
-1

query II rowsort
SELECT 86 * - + ( + + 65 ) AS col0, 43 AS col2
----
-5590
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL - 13 * - NULLIF ( + + CASE 34 WHEN + 86 * - + 54 + + + COUNT( * ) + 38 - + 14 THEN NULL ELSE - 94 + - 35 * - 13 END, 16 * - 8 * COALESCE ( - 43, + 19 * - - 72 * - 96 ) + 24 ) AS col0
----
4693

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - 13 * - NULLIF ( + + CASE 34 WHEN + 86 * - + 54 + + + COUNT ( * ) + 38 - + 14 THEN NULL ELSE - 94 + - 35 * - 13 END, 16 * - 8 * COALESCE ( - 43, + 19 * - - 72 * - 96 ) + 24 ) AS col0
----
4693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT 57 * - COALESCE ( 52, - 66 DIV - + 75 + - - 80 * + + 52 * 33 + - 4 + COUNT( ALL - ( + - 21 ) ) + - 30 * + - 99, 90 ) AS col1
----
-2964

skipif mysql # not compatible
query I rowsort label-3352
SELECT 57 * - COALESCE ( 52, - 66 / - + 75 + - - 80 * + + 52 * 33 + - 4 + COUNT ( ALL - ( + - 21 ) ) + - 30 * + - 99, 90 ) AS col1
----
-2964

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT 40 DIV 29 + + 17
----
18

skipif mysql # not compatible
query I rowsort label-3353
SELECT 40 / 29 + + 17
----
18

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

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

query I rowsort
SELECT ALL - NULLIF ( 61, + 52 + + 35 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3356
SELECT 76 DIV + + MIN( - 71 ) AS col2, - ( + - 76 )
----
-1
76

skipif mysql # not compatible
query II rowsort label-3356
SELECT 76 / + + MIN ( - 71 ) AS col2, - ( + - 76 )
----
-1
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT 86 - 72 + + + CAST( + 23 AS SIGNED ) col1
----
37

skipif mysql # not compatible
query I rowsort label-3357
SELECT 86 - 72 + + + CAST ( + 23 AS INTEGER ) col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3358
SELECT 66 DIV - 79 * + 68, COUNT( * ) - - - COUNT( * ) + - 65 * + 8 * 83 col1
----
0
-43160

skipif mysql # not compatible
query II rowsort label-3358
SELECT 66 / - 79 * + 68, COUNT ( * ) - - - COUNT ( * ) + - 65 * + 8 * 83 col1
----
0
-43160

query I rowsort
SELECT 72 * - CASE - 43 WHEN - - 96 / + + 39 THEN 21 * - 3 ELSE - 58 END AS col1
----
4176

onlyif mysql # DIV for integer division: 
query II rowsort label-3360
SELECT ( - - 3 ) DIV + ( + 7 ) + - 84 + 60 * + 34 + + + 15, COALESCE ( + - 18, - - 18 ) AS col1
----
1971
-18

skipif mysql # not compatible
query II rowsort label-3360
SELECT ( - - 3 ) / + ( + 7 ) + - 84 + 60 * + 34 + + + 15, COALESCE ( + - 18, - - 18 ) AS col1
----
1971
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT 11 * + - CAST( 2 AS SIGNED ) * - - 5
----
-110

skipif mysql # not compatible
query I rowsort label-3361
SELECT 11 * + - CAST ( 2 AS INTEGER ) * - - 5
----
-110

query II rowsort
SELECT 41 * - ( - 11 ) + - 98 AS col2, NULLIF ( - - 47, - 71 + 31 ) AS col0
----
353
47

query II rowsort
SELECT + 70, - ( 3 ) AS col0
----
70
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL MIN( 41 ) * + ( + 8 ) + - 89 AS col2
----
239

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL MIN ( 41 ) * + ( + 8 ) + - 89 AS col2
----
239

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT 91 DIV - + NULLIF ( 93, - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3365
SELECT 91 / - + NULLIF ( 93, - 59 ) AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3366
SELECT - CAST( NULL AS DECIMAL ) * + 99 / - ( + - 73 ) + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT - CAST ( NULL AS REAL ) * + 99 / - ( + - 73 ) + + 93 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT - ( + + 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3369
SELECT ALL 74 + + + COUNT( * ) * + 29 + + + 26 DIV - 92 + - 38 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL 74 + + + COUNT ( * ) * + 29 + + + 26 / - 92 + - 38 AS col0
----
65

query I rowsort
SELECT ALL ( - - 60 ) + - + 10 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT DISTINCT - 97 + - - ( 23 ) AS col2, 64 + + COUNT( * )
----
-74
65

skipif mysql # not compatible
query II rowsort label-3371
SELECT DISTINCT - 97 + - - ( 23 ) AS col2, 64 + + COUNT ( * )
----
-74
65

query I rowsort
SELECT 56 + + 12 AS col0
----
68

query I rowsort
SELECT DISTINCT + - 56 + 45 AS col1
----
-11

query I rowsort
SELECT ALL + 24 + - 80 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT - 10 - - MIN( 87 ) * + 77
----
6689

skipif mysql # not compatible
query I rowsort label-3375
SELECT - 10 - - MIN ( 87 ) * + 77
----
6689

query II rowsort
SELECT 21 col1, + 61
----
21
61

query I rowsort
SELECT + 10 * 50 + - 9 + + + 8 * + 0 AS col2
----
491

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

skipif mysql # not compatible
query I rowsort label-3378
SELECT - 93 * - - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT - ( - - ( + COUNT( * ) ) ) + ( 21 ) - - SUM( + 45 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - ( - - ( + COUNT ( * ) ) ) + ( 21 ) - - SUM ( + 45 ) AS col2
----
65

query I rowsort
SELECT DISTINCT + + 51 + - 98 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT COALESCE ( + 63, COUNT( * ), 3 * 14 + - 62 )
----
63

skipif mysql # not compatible
query I rowsort label-3381
SELECT COALESCE ( + 63, COUNT ( * ), 3 * 14 + - 62 )
----
63

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

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - COUNT ( * ) - 90 AS col0
----
-91

query I rowsort
SELECT + 59 - + 75
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT ALL - 97 DIV 55 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - 97 / 55 col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3386
SELECT DISTINCT COALESCE ( CASE 10 WHEN ( - MIN( + 31 ) ) THEN + CAST( NULL AS SIGNED ) WHEN - + ( - ( - 94 ) ) + 15 THEN - 11 * - 79 END, 83 + 15 * + - COUNT( * ) ) DIV + + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT COALESCE ( CASE 10 WHEN ( - MIN ( + 31 ) ) THEN + CAST ( NULL AS INTEGER ) WHEN - + ( - ( - 94 ) ) + 15 THEN - 11 * - 79 END, 83 + 15 * + - COUNT ( * ) ) / + + 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - 47 - - 38 + - - 85 + - COALESCE ( - 75, 71, 72 + SUM( + 95 ) ) * 59
----
4501

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - 47 - - 38 + - - 85 + - COALESCE ( - 75, 71, 72 + SUM ( + 95 ) ) * 59
----
4501

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

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

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

skipif mysql # not compatible
query I rowsort label-3389
SELECT 12 * - COUNT ( * ) / - 96 AS col2
----
0

query I rowsort
SELECT 15 + - 66 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL 79 * - 63 - - COUNT( * ) + - - 79
----
-4897

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL 79 * - 63 - - COUNT ( * ) + - - 79
----
-4897

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3393
SELECT MIN( ALL + 58 ) + + + 69 DIV 69 DIV - + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3393
SELECT MIN ( ALL + 58 ) + + + 69 / 69 / - + COUNT ( * ) AS col0
----
57

query I rowsort
SELECT 96 - - ( ( - 39 ) ) * - 59 * + 69
----
158865

onlyif mysql # aggregate syntax: 
query II rowsort label-3395
SELECT 86 + - COUNT( * ) AS col0, 44 col1
----
85
44

skipif mysql # not compatible
query II rowsort label-3395
SELECT 86 + - COUNT ( * ) AS col0, 44 col1
----
85
44

query I rowsort
SELECT 92 * 54 * 10 * 26 * - 61 AS col1
----
-78792480

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + SUM( DISTINCT + + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-3397
SELECT + SUM ( DISTINCT + + 13 ) AS col0
----
13

query I rowsort
SELECT 55 * - 70 + - + 12
----
-3862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT DISTINCT - 44 * - CAST( - 20 AS SIGNED ) + + ( + - 97 ) + 60 + 0 + COUNT( * ) * - 2 * + 9 * - MIN( ALL - 94 )
----
-2609

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT - 44 * - CAST ( - 20 AS INTEGER ) + + ( + - 97 ) + 60 + 0 + COUNT ( * ) * - 2 * + 9 * - MIN ( ALL - 94 )
----
-2609

query I rowsort
SELECT ALL - NULLIF ( + 56, + 77 * + - 56 ) * - ( + 35 ) + - 5 + - 62 * - + 44 * ( - - 45 ) AS col1
----
124715

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT 43 * - 92 + - MIN( - - 84 )
----
-4040

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT 43 * - 92 + - MIN ( - - 84 )
----
-4040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3403
SELECT ALL CAST( NULL AS SIGNED ) / CASE + + CAST( NULL AS SIGNED ) WHEN - 75 THEN - - 39 + 40 END * - 1 * + 58 * - 82 AS col2, - COUNT( - - CAST( + 16 AS SIGNED ) ) + + - COUNT( * )
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-3403
SELECT ALL CAST ( NULL AS INTEGER ) / CASE + + CAST ( NULL AS INTEGER ) WHEN - 75 THEN - - 39 + 40 END * - 1 * + 58 * - 82 AS col2, - COUNT ( - - CAST ( + 16 AS INTEGER ) ) + + - COUNT ( * )
----
NULL
-2

query I rowsort
SELECT + 30 * + 96 + - 41
----
2839

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3406
SELECT 67 * CAST( 67 AS SIGNED ) - + 65 DIV + + 58 AS col0
----
4488

skipif mysql # not compatible
query I rowsort label-3406
SELECT 67 * CAST ( 67 AS INTEGER ) - + 65 / + + 58 AS col0
----
4488

query I rowsort
SELECT NULLIF ( - 71, 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + + ( MIN( DISTINCT + 36 ) ) + - + ( - - 97 ) * - 22 * 79 * + 85 + + + 57
----
14329903

skipif mysql # not compatible
query I rowsort label-3408
SELECT + + ( MIN ( DISTINCT + 36 ) ) + - + ( - - 97 ) * - 22 * 79 * + 85 + + + 57
----
14329903

query I rowsort
SELECT + - 17 + - 48 AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT ALL - COUNT( * ) - + 0 * - CAST( - NULLIF ( 13, - 88 ) AS SIGNED ) * - - 89
----
-1

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - COUNT ( * ) - + 0 * - CAST ( - NULLIF ( 13, - 88 ) AS INTEGER ) * - - 89
----
-1

query I rowsort
SELECT ALL + 68 * + 61 * 88 AS col0
----
365024

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT + - 57 + + + 57 DIV + 10 + + + 51 + + 41 + + + 27 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3412
SELECT + - 57 + + + 57 / + 10 + + + 51 + + 41 + + + 27 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT ALL CASE + 91 WHEN - - ( + + 29 ) * + - 77 + CAST( - 33 AS SIGNED ) THEN NULL WHEN 42 THEN - 41 + + + CAST( - 61 AS SIGNED ) + - 63 + + 93 WHEN + 50 THEN + 54 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL CASE + 91 WHEN - - ( + + 29 ) * + - 77 + CAST ( - 33 AS INTEGER ) THEN NULL WHEN 42 THEN - 41 + + + CAST ( - 61 AS INTEGER ) + - 63 + + 93 WHEN + 50 THEN + 54 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT - - 13 * + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3414
SELECT - - 13 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3415
SELECT + - 16 + - + MIN( - 20 ) DIV - 36 * + + ( - 66 )
----
-16

skipif mysql # not compatible
query I rowsort label-3415
SELECT + - 16 + - + MIN ( - 20 ) / - 36 * + + ( - 66 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + MIN( 8 ) * + 34 * 6
----
1632

skipif mysql # not compatible
query I rowsort label-3416
SELECT + MIN ( 8 ) * + 34 * 6
----
1632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3417
SELECT + + 30 DIV + COUNT( * ), + 88 AS col1
----
30
88

skipif mysql # not compatible
query II rowsort label-3417
SELECT + + 30 / + COUNT ( * ), + 88 AS col1
----
30
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT COUNT( * ) * - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT COUNT ( * ) * - 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3420
SELECT 76 AS col0, + 66 * COUNT( * ) * - - 41
----
76
2706

skipif mysql # not compatible
query II rowsort label-3420
SELECT 76 AS col0, + 66 * COUNT ( * ) * - - 41
----
76
2706

query I rowsort
SELECT + 93 - - 30 + + 31
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT - 89 DIV - 39 + + 10 * + 33 + - 13 + + 46 * ( + 18 ) * - 32
----
-26177

skipif mysql # not compatible
query I rowsort label-3422
SELECT - 89 / - 39 + + 10 * + 33 + - 13 + + 46 * ( + 18 ) * - 32
----
-26177

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT DISTINCT + 17 DIV 40 + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT + 17 / 40 + - 39
----
-39

query II rowsort
SELECT DISTINCT 64 * + + 17 + + + 30, - 7 col2
----
1118
-7

query I rowsort
SELECT + 57 * - 89 AS col1
----
-5073

query I rowsort
SELECT ( 92 ) col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3427
SELECT ALL + 7 * + + 27 + - COUNT( * ) + + 81 * + 51 AS col1, NULLIF ( + 18, + 12 * + 89 ) AS col2
----
4319
18

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL + 7 * + + 27 + - COUNT ( * ) + + 81 * + 51 AS col1, NULLIF ( + 18, + 12 * + 89 ) AS col2
----
4319
18

query I rowsort
SELECT + 21 * 11 * + 79
----
18249

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT + CASE - - SUM( - + 97 ) WHEN + 72 * - ( + 67 ) + + 26 THEN NULL ELSE - ( + + 98 ) * + 53 * - ( + - 18 ) * + COUNT( * ) END + - 69
----
-93561

skipif mysql # not compatible
query I rowsort label-3429
SELECT + CASE - - SUM ( - + 97 ) WHEN + 72 * - ( + 67 ) + + 26 THEN NULL ELSE - ( + + 98 ) * + 53 * - ( + - 18 ) * + COUNT ( * ) END + - 69
----
-93561

query I rowsort
SELECT DISTINCT + 74 * - + ( + + 1 ) * - 26 AS col0
----
1924

onlyif mysql # aggregate syntax: 
query II rowsort label-3431
SELECT - - MIN( - + 82 ) * - - NULLIF ( - 1, - 22 ) AS col1, + 60 AS col1
----
82
60

skipif mysql # not compatible
query II rowsort label-3431
SELECT - - MIN ( - + 82 ) * - - NULLIF ( - 1, - 22 ) AS col1, + 60 AS col1
----
82
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ALL + 2 * + - COUNT( * ) * COUNT( * ) - + - 15 * + 28
----
418

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL + 2 * + - COUNT ( * ) * COUNT ( * ) - + - 15 * + 28
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL + + COALESCE ( NULLIF ( + - 63, + COUNT( * ) ), SUM( ALL 8 ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + + COALESCE ( NULLIF ( + - 63, + COUNT ( * ) ), SUM ( ALL 8 ) ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3434
SELECT DISTINCT - COALESCE ( - CAST( NULL AS DECIMAL ), + COUNT( DISTINCT 47 ) ) * CASE + 9 WHEN - - 14 THEN NULL WHEN + - 66 * + 43 + - + NULLIF ( + 18, - 96 ) THEN - 30 * + + 47 + 48 + - - 73 + + - 69 END + - - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS REAL ), + COUNT ( DISTINCT 47 ) ) * CASE + 9 WHEN - - 14 THEN NULL WHEN + - 66 * + 43 + - + NULLIF ( + 18, - 96 ) THEN - 30 * + + 47 + 48 + - - 73 + + - 69 END + - - 59 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3435
SELECT DISTINCT - CAST( + - 79 AS SIGNED ) DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - CAST ( + - 79 AS INTEGER ) / + 94
----
0

query I rowsort
SELECT + + 0 - + 2 - - - 55
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - - 25 + 69 - + - 21 * + + MAX( ALL - 84 ) - 29 * 73 AS col1
----
-3787

skipif mysql # not compatible
query I rowsort label-3437
SELECT - - 25 + 69 - + - 21 * + + MAX ( ALL - 84 ) - 29 * 73 AS col1
----
-3787

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT - - 76 + MAX( DISTINCT - - 28 ) - - 56 * 97 - - COUNT( * )
----
5537

skipif mysql # not compatible
query I rowsort label-3439
SELECT - - 76 + MAX ( DISTINCT - - 28 ) - - 56 * 97 - - COUNT ( * )
----
5537

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT - + COALESCE ( + COUNT( * ), - - 57 * - - 68 + 28 + - 39 * - 60 - - + 58 DIV - + 64 ) * + - 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3441
SELECT - + COALESCE ( + COUNT ( * ), - - 57 * - - 68 + 28 + - 39 * - 60 - - + 58 / - + 64 ) * + - 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT CASE + 37 WHEN - 80 THEN - 43 + - ( - MIN( DISTINCT - ( + + 64 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT CASE + 37 WHEN - 80 THEN - 43 + - ( - MIN ( DISTINCT - ( + + 64 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL 24 + - SUM( ALL - 29 )
----
53

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL 24 + - SUM ( ALL - 29 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - COUNT( * ) - 25 + - 52 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3444
SELECT - COUNT ( * ) - 25 + - 52 AS col0
----
-78

query I rowsort
SELECT DISTINCT + 0 * 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT + CAST( NULL AS SIGNED ) + - + 31 - - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT + CAST ( NULL AS INTEGER ) + - + 31 - - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - CASE - NULLIF ( - 53, + - 57 * - COUNT( * ) ) WHEN - + 52 THEN - 46 * + 81 / + COUNT( * ) + + 93 + 43 + - 87 WHEN 16 * + - 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT - CASE - NULLIF ( - 53, + - 57 * - COUNT ( * ) ) WHEN - + 52 THEN - 46 * + 81 / + COUNT ( * ) + + 93 + 43 + - 87 WHEN 16 * + - 8 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 82 + + - 76
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL - COUNT( * ) + MIN( + + ( 5 ) ) + + NULLIF ( + 37, - + NULLIF ( - 1, + 5 ) - + 72 ) * 49
----
1817

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - COUNT ( * ) + MIN ( + + ( 5 ) ) + + NULLIF ( + 37, - + NULLIF ( - 1, + 5 ) - + 72 ) * 49
----
1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT ALL CASE 28 WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN 98 * + 74 THEN NULL ELSE NULL END + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL CASE 28 WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN 98 * + 74 THEN NULL ELSE NULL END + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - 70 + - 47 + + CASE - 66 WHEN + 30 THEN 73 * + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT - 70 + - 47 + + CASE - 66 WHEN + 30 THEN 73 * + - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT + 93 DIV - - 40
----
2

skipif mysql # not compatible
query I rowsort label-3452
SELECT + 93 / - - 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL COUNT( DISTINCT + + 22 ) + - NULLIF ( - COUNT( * ), - 17 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL COUNT ( DISTINCT + + 22 ) + - NULLIF ( - COUNT ( * ), - 17 ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT DISTINCT 16 DIV 6 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT 16 / 6 AS col1
----
2

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

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

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

query I rowsort
SELECT ALL 51 * + 0
----
0

query I rowsort
SELECT DISTINCT 63 + + 38 + + 28 + + 49 AS col1
----
178

query I rowsort
SELECT DISTINCT 80 * - ( - - 77 )
----
-6160

query II rowsort
SELECT + 92 + - + 51 AS col1, 15 AS col2
----
41
15

query I rowsort
SELECT - 4 * + 7
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3462
SELECT + 21 + - + 77 + + + ( - - 57 ) + 68 DIV - 12, MIN( + 68 ) + - 26 AS col2
----
-4
42

skipif mysql # not compatible
query II rowsort label-3462
SELECT + 21 + - + 77 + + + ( - - 57 ) + 68 / - 12, MIN ( + 68 ) + - 26 AS col2
----
-4
42

query II rowsort
SELECT 91 AS col2, - 93 AS col1
----
91
-93

query I rowsort
SELECT - 97 * + - 10 * + + 15 + + 50 AS col2
----
14600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT 81 * - 73 + + 24 - + COUNT( * ) + + + 0 + + - 56 + - COUNT( * ) AS col1
----
-5947

skipif mysql # not compatible
query I rowsort label-3466
SELECT 81 * - 73 + + 24 - + COUNT ( * ) + + + 0 + + - 56 + - COUNT ( * ) AS col1
----
-5947

query I rowsort
SELECT ALL 59 * + + 2
----
118

query I rowsort
SELECT COALESCE ( + 66, ( - + ( - + 61 ) ) * + 12 * + 25 * - 4 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL 73 * - COUNT( - + 39 )
----
-73

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL 73 * - COUNT ( - + 39 )
----
-73

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

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

query I rowsort
SELECT 41 + - 43 + 6 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT ( - 39 ) * - COUNT( * ) + - - 94, - ( + 60 ) AS col1
----
133
-60

skipif mysql # not compatible
query II rowsort label-3472
SELECT ( - 39 ) * - COUNT ( * ) + - - 94, - ( + 60 ) AS col1
----
133
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3473
SELECT + + 90 * - - 79 - - - 99 - - 75 * + + 92 - + 13 AS col2, COUNT( + 94 ) * 52 AS col0
----
13898
52

skipif mysql # not compatible
query II rowsort label-3473
SELECT + + 90 * - - 79 - - - 99 - - 75 * + + 92 - + 13 AS col2, COUNT ( + 94 ) * 52 AS col0
----
13898
52

query I rowsort
SELECT ( - + 66 ) * + 58
----
-3828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT + 6 * - 81 * + ( + - CAST( NULL AS SIGNED ) ) * 17 + - 79 + + - CAST( NULL AS SIGNED ) - + 35 + - 33 * + 18 / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 6 * - 81 * + ( + - CAST ( NULL AS INTEGER ) ) * 17 + - 79 + + - CAST ( NULL AS INTEGER ) - + 35 + - 33 * + 18 / + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT 11 + - COUNT( * ) * + - 3 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3476
SELECT 11 + - COUNT ( * ) * + - 3 AS col1
----
14

query I rowsort
SELECT ALL - 69 * 33 AS col2
----
-2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL - - CASE 92 WHEN CASE CASE - + 12 WHEN 61 THEN + + NULLIF ( 0, COUNT( * ) ) * + - 17 WHEN - 78 THEN NULL END WHEN + - 27 THEN - MIN( + + 31 ) * 49 * + CASE 66 WHEN COUNT( * ) THEN - - 59 + - + COUNT( * ) END * 23 * - COALESCE ( + - 90, COUNT( * ) ) * CAST( NULL AS SIGNED ) ELSE + 94 END / 11 THEN NULL WHEN 66 THEN NULL WHEN 23 THEN 49 ELSE + + COUNT( * ) + - 92 END
----
-91

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - - CASE 92 WHEN CASE CASE - + 12 WHEN 61 THEN + + NULLIF ( 0, COUNT ( * ) ) * + - 17 WHEN - 78 THEN NULL END WHEN + - 27 THEN - MIN ( + + 31 ) * 49 * + CASE 66 WHEN COUNT ( * ) THEN - - 59 + - + COUNT ( * ) END * 23 * - COALESCE ( + - 90, COUNT ( * ) ) * CAST ( NULL AS INTEGER ) ELSE + 94 END / 11 THEN NULL WHEN 66 THEN NULL WHEN 23 THEN 49 ELSE + + COUNT ( * ) + - 92 END
----
-91

query II rowsort
SELECT 59 * - 43 AS col2, - 75
----
-2537
-75

query I rowsort
SELECT ALL 2 + + + 46 AS col2
----
48

query I rowsort
SELECT DISTINCT - 66 + - + 67 + 79 AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3482
SELECT ALL + 8 * COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL + 8 * COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL + + COUNT( * ) + - 17 + + 71 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + + COUNT ( * ) + - 17 + + 71 AS col1
----
55

query I rowsort
SELECT ALL + 33 + 69
----
102

query I rowsort
SELECT DISTINCT + 17 + + + 1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT AVG ( CAST( NULL AS SIGNED ) ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT AVG ( CAST ( NULL AS INTEGER ) ) * + - COUNT ( * )
----
NULL

query I rowsort
SELECT 5 * - + 94 AS col2
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT DISTINCT - 41 + + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - 41 + + + COUNT ( * )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT 85 DIV + 15
----
5

skipif mysql # not compatible
query I rowsort label-3489
SELECT 85 / + 15
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT 21 + 43 * - 32 * - - COUNT( * ) * - + 23 AS col1
----
31669

skipif mysql # not compatible
query I rowsort label-3490
SELECT 21 + 43 * - 32 * - - COUNT ( * ) * - + 23 AS col1
----
31669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL - NULLIF ( + - 14, 28 / - 27 * + AVG ( DISTINCT 2 ) + 86 + - - 84 + 60 ) * - - CAST( + 83 AS SIGNED ) * COUNT( * ) + + CASE - + 59 WHEN 27 THEN NULL WHEN + MAX( + 76 ) THEN + 24 END * - NULLIF ( - + 58, MIN( DISTINCT + + 65 ) * + 97 + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - NULLIF ( + - 14, 28 / - 27 * + AVG ( DISTINCT 2 ) + 86 + - - 84 + 60 ) * - - CAST ( + 83 AS INTEGER ) * COUNT ( * ) + + CASE - + 59 WHEN 27 THEN NULL WHEN + MAX ( + 76 ) THEN + 24 END * - NULLIF ( - + 58, MIN ( DISTINCT + + 65 ) * + 97 + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT ALL + 96 + - 70 AS col2, 85 * - - COUNT( + 59 ) * - 74
----
26
-6290

skipif mysql # not compatible
query II rowsort label-3492
SELECT ALL + 96 + - 70 AS col2, 85 * - - COUNT ( + 59 ) * - 74
----
26
-6290

query I rowsort
SELECT DISTINCT + 5 * + + 0 * 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL 10 * + CAST( 31 AS SIGNED ) AS col1
----
310

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL 10 * + CAST ( 31 AS INTEGER ) AS col1
----
310

query I rowsort
SELECT 20 * + 86
----
1720

onlyif mysql # aggregate syntax: 
query II rowsort label-3496
SELECT DISTINCT - 51 * COUNT( * ) AS col1, - CASE + 86 WHEN 14 THEN + NULLIF ( + - 46, 9 + + MIN( DISTINCT + 18 ) + + 34 ) END AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-3496
SELECT DISTINCT - 51 * COUNT ( * ) AS col1, - CASE + 86 WHEN 14 THEN + NULLIF ( + - 46, 9 + + MIN ( DISTINCT + 18 ) + + 34 ) END AS col2
----
-51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3497
SELECT 10 - + 11 / - CASE 38 WHEN + - COUNT( * ) * COUNT( * ) THEN + 24 * + CASE + COUNT( * ) WHEN - ( 28 ) THEN 73 WHEN - - 50 * + CAST( - 93 AS SIGNED ) - - 5 + 1 * COUNT( * ) * - 90 THEN NULL END END - + + MAX( 2 ) * 97 AS col2, + 45 col2
----
NULL
45

skipif mysql # not compatible
query II rowsort label-3497
SELECT 10 - + 11 / - CASE 38 WHEN + - COUNT ( * ) * COUNT ( * ) THEN + 24 * + CASE + COUNT ( * ) WHEN - ( 28 ) THEN 73 WHEN - - 50 * + CAST ( - 93 AS INTEGER ) - - 5 + 1 * COUNT ( * ) * - 90 THEN NULL END END - + + MAX ( 2 ) * 97 AS col2, + 45 col2
----
NULL
45

query I rowsort
SELECT 46 * + + 57
----
2622

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

query I rowsort
SELECT - 87 * 44 * - + 48 AS col2
----
183744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3501
SELECT + CAST( - 78 AS SIGNED ), COUNT( * ) - - - 31 AS col1
----
-78
-30

skipif mysql # not compatible
query II rowsort label-3501
SELECT + CAST ( - 78 AS INTEGER ), COUNT ( * ) - - - 31 AS col1
----
-78
-30

query I rowsort
SELECT 25 - 25 + 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT MAX( DISTINCT - ( - + 94 ) ) * COUNT( DISTINCT 55 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3503
SELECT MAX ( DISTINCT - ( - + 94 ) ) * COUNT ( DISTINCT 55 ) AS col0
----
94

query I rowsort
SELECT ALL + 64 * + 41 - - + 25 col0
----
2649

query I rowsort
SELECT DISTINCT - 31 * 54 col2
----
-1674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT DISTINCT COUNT( * ) * + - 22 DIV - COUNT( * ) + - 29 * COUNT( * ) * 2
----
-36

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT COUNT ( * ) * + - 22 / - COUNT ( * ) + - 29 * COUNT ( * ) * 2
----
-36

query I rowsort
SELECT 36 * - 12 - ( - 67 ) AS col2
----
-365

query I rowsort
SELECT - ( 68 ) * + 15 AS col2
----
-1020

query I rowsort
SELECT ALL + 48 + - - 46 * - - 53
----
2486

query I rowsort
SELECT + 26 * + 36 * - - 51
----
47736

query I rowsort
SELECT NULLIF ( + 69, + - 1 ) * + 75 + + 15 * 44 AS col0
----
5835

query I rowsort
SELECT DISTINCT 18 + - 59
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3513
SELECT ALL - 88 + 86 AS col2, CAST( NULL AS SIGNED )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-3513
SELECT ALL - 88 + 86 AS col2, CAST ( NULL AS INTEGER )
----
-2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT ALL 36 + + 69 col1, + COUNT( * )
----
105
1

skipif mysql # not compatible
query II rowsort label-3514
SELECT ALL 36 + + 69 col1, + COUNT ( * )
----
105
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT CAST( NULL AS SIGNED ) * - 23 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT CAST ( NULL AS INTEGER ) * - 23 + + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT MIN( + 20 ) + - - 56 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3517
SELECT MIN ( + 20 ) + - - 56 + COUNT ( * )
----
77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3519
SELECT ALL + 65 + COUNT( * ) + + - 3 + - 25 DIV - + 59 * ( + COALESCE ( - 54, + 39, + + 39 ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + 65 + COUNT ( * ) + + - 3 + - 25 / - + 59 * ( + COALESCE ( - 54, + 39, + + 39 ) ) AS col1
----
63

query I rowsort
SELECT 11 - + - 52
----
63

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

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

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

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

query I rowsort
SELECT 27 * + 76
----
2052

query II rowsort
SELECT DISTINCT 57 AS col0, 85 * + - 77
----
57
-6545

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3526
SELECT 1 + COUNT( ALL + 18 ) AS col2, - 78 * + COUNT( * )
----
2
-78

skipif mysql # not compatible
query II rowsort label-3526
SELECT 1 + COUNT ( ALL + 18 ) AS col2, - 78 * + COUNT ( * )
----
2
-78

query II rowsort
SELECT - 69 + - 36 * - 88 AS col0, - 55 - 59 AS col2
----
3099
-114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - 57 + - + MIN( DISTINCT - 48 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3529
SELECT - 57 + - + MIN ( DISTINCT - 48 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT - 22, + MAX( - 64 ) AS col2
----
-22
-64

skipif mysql # not compatible
query II rowsort label-3530
SELECT - 22, + MAX ( - 64 ) AS col2
----
-22
-64

query I rowsort
SELECT - 33 + - 4 + - NULLIF ( + 18, - 93 ) * + NULLIF ( ( - 38 ), - - 67 ) + - + 93
----
554

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT - 50 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT - 50 / - 78
----
0

query I rowsort
SELECT ALL + 57 * + 98
----
5586

query II rowsort
SELECT ALL 31 AS col1, ( + + 84 )
----
31
84

query II rowsort
SELECT DISTINCT + 7 AS col1, - 93 AS col2
----
7
-93

query I rowsort
SELECT ALL - ( 15 ) * 73
----
-1095

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT + + NULLIF ( + + COUNT( * ), AVG ( + 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT + + NULLIF ( + + COUNT ( * ), AVG ( + 76 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + COUNT( * ) * 3 + + 87 + + + COUNT( * ) + + 45
----
136

skipif mysql # not compatible
query I rowsort label-3539
SELECT + COUNT ( * ) * 3 + + 87 + + + COUNT ( * ) + + 45
----
136

query I rowsort
SELECT + - NULLIF ( 35, 30 ) * 70 + - 88 AS col1
----
-2538

query II rowsort
SELECT ALL + - 18 col0, - 22 AS col0
----
-18
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3542
SELECT ALL 39 * - 38 + + - CAST( CASE - ( + - CAST( MAX( - 91 ) AS SIGNED ) ) WHEN + COUNT( * ) + + 98 THEN 86 * + + 88 * 97 END AS DECIMAL ) * 54 + - + 77 + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL 39 * - 38 + + - CAST ( CASE - ( + - CAST ( MAX ( - 91 ) AS INTEGER ) ) WHEN + COUNT ( * ) + + 98 THEN 86 * + + 88 * 97 END AS REAL ) * 54 + - + 77 + + 89 AS col1
----
NULL

query I rowsort
SELECT - 10 + 51 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT + 88 * - + NULLIF ( - - ( + 95 ), + 14 ) + - + 90 - + COUNT( NULLIF ( - + 89, 94 ) ) + + 39 * 79 AS col2
----
-5370

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT + 88 * - + NULLIF ( - - ( + 95 ), + 14 ) + - + 90 - + COUNT ( NULLIF ( - + 89, 94 ) ) + + 39 * 79 AS col2
----
-5370

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

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

query I rowsort
SELECT ALL - 74 * - 60 + - 27 - 99 * - 62 + + 64 + + 72 AS col0
----
10687

query II rowsort
SELECT + 1, 91 - + 70 - + + 25 + 32 * NULLIF ( + 30, - 56 ) col2
----
1
956

query I rowsort
SELECT - + 52 * + 8 * - 18 + - - 30 + - 94
----
7424

query I rowsort
SELECT DISTINCT + 25 * 59 + 21 + + 56 + + ( - - 93 ) + + 40 AS col2
----
1685

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

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL COUNT ( * ) * + - 11 + + COUNT ( * ) / + 87 * - + 65 * + 35 AS col2
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL + 32 * - - 5 * COUNT( * ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + 32 * - - 5 * COUNT ( * ) AS col2
----
160

query II rowsort
SELECT + 17 + + 8 AS col1, + 5 AS col2
----
25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL COUNT( - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL COUNT ( - 83 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3555
SELECT MIN( DISTINCT - + 11 ) AS col0, 58 * - COUNT( * )
----
-11
-58

skipif mysql # not compatible
query II rowsort label-3555
SELECT MIN ( DISTINCT - + 11 ) AS col0, 58 * - COUNT ( * )
----
-11
-58

query I rowsort
SELECT + 5 * - + 83 col1
----
-415

query I rowsort
SELECT + 10 * - - 13 AS col2
----
130

query I rowsort
SELECT + 87 + + - 66 * - 85 * - 98 + - 30 AS col1
----
-549723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT - CASE - - 59 WHEN + - 76 * - 16 * + 44 THEN + 31 + - 14 * - - 64 * + COALESCE ( - 21, + COUNT( * ), + MAX( + - 5 ) ) WHEN 34 + + CAST( - + COUNT( * ) AS SIGNED ) - + - COUNT( * ) THEN 70 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT - CASE - - 59 WHEN + - 76 * - 16 * + 44 THEN + 31 + - 14 * - - 64 * + COALESCE ( - 21, + COUNT ( * ), + MAX ( + - 5 ) ) WHEN 34 + + CAST ( - + COUNT ( * ) AS INTEGER ) - + - COUNT ( * ) THEN 70 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3560
SELECT + 74 * + - COALESCE ( + NULLIF ( 4, - 28 ), + + CAST( NULL AS SIGNED ), 59 DIV + 55 ) AS col0
----
-296

skipif mysql # not compatible
query I rowsort label-3560
SELECT + 74 * + - COALESCE ( + NULLIF ( 4, - 28 ), + + CAST ( NULL AS INTEGER ), 59 / + 55 ) AS col0
----
-296

query II rowsort
SELECT - ( - 19 ) AS col1, - 5
----
19
-5

query I rowsort
SELECT ALL CASE + ( 16 ) WHEN + 49 THEN - - 94 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT NULLIF ( + 57, 54 + COUNT( * ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT NULLIF ( + 57, 54 + COUNT ( * ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT + COUNT( * ) + - 68 + - 20 - 6 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-3564
SELECT + COUNT ( * ) + - 68 + - 20 - 6 AS col2
----
-93

query I rowsort
SELECT DISTINCT ( 89 ) * - + 35 AS col2
----
-3115

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL + 22 + 79 * + COUNT( * ) * - 28 AS col2
----
-2190

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + 22 + 79 * + COUNT ( * ) * - 28 AS col2
----
-2190

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - - MAX( ALL 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3567
SELECT - - MAX ( ALL 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT - + 62 + 70 + - 15 * + + 9, CASE 87 WHEN - 85 / + - 79 * + - 95 THEN + SUM( ALL 29 ) + - 2 + - + COUNT( * ) / + 95 ELSE - 80 END AS col2
----
-127
-80

skipif mysql # not compatible
query II rowsort label-3568
SELECT - + 62 + 70 + - 15 * + + 9, CASE 87 WHEN - 85 / + - 79 * + - 95 THEN + SUM ( ALL 29 ) + - 2 + - + COUNT ( * ) / + 95 ELSE - 80 END AS col2
----
-127
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3569
SELECT - - 3 * 99 + - - CAST( + 33 AS SIGNED ) AS col0, - 24 * + + COUNT( * ) + NULLIF ( - 84, 89 )
----
330
-108

skipif mysql # not compatible
query II rowsort label-3569
SELECT - - 3 * 99 + - - CAST ( + 33 AS INTEGER ) AS col0, - 24 * + + COUNT ( * ) + NULLIF ( - 84, 89 )
----
330
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT ALL 37 DIV + 66 + 28 - - 19 + + 15 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL 37 / + 66 + 28 - - 19 + + 15 AS col1
----
62

query I rowsort
SELECT - - 43 * + 36
----
1548

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT - - NULLIF ( + + COUNT( * ), - 56 * - ( + + NULLIF ( - COUNT( * ), 7 ) ) ) * CAST( NULL AS SIGNED ) * 35 * - 82 + + CASE - - 57 WHEN + 20 THEN NULL ELSE - 70 END + + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT - - NULLIF ( + + COUNT ( * ), - 56 * - ( + + NULLIF ( - COUNT ( * ), 7 ) ) ) * CAST ( NULL AS INTEGER ) * 35 * - 82 + + CASE - - 57 WHEN + 20 THEN NULL ELSE - 70 END + + - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3574
SELECT + + ( + - 37 ) AS col2, CASE ( ( + - CAST( NULL AS SIGNED ) ) ) WHEN - + ( + COALESCE ( + 26, - - 65 ) ) + - 20 * 27 THEN NULL WHEN + 17 THEN - 84 + + 20 ELSE - MAX( DISTINCT - 48 ) END + - 41 AS col2
----
-37
7

skipif mysql # not compatible
query II rowsort label-3574
SELECT + + ( + - 37 ) AS col2, CASE ( ( + - CAST ( NULL AS INTEGER ) ) ) WHEN - + ( + COALESCE ( + 26, - - 65 ) ) + - 20 * 27 THEN NULL WHEN + 17 THEN - 84 + + 20 ELSE - MAX ( DISTINCT - 48 ) END + - 41 AS col2
----
-37
7

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

query I rowsort
SELECT + + 27 - 95 * - - 53
----
-5008

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL + 13 DIV - 22 - + 88 DIV 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + 13 / - 22 - + 88 / 34 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT - 65 - + COALESCE ( 6, + + 61 - CAST( NULL AS SIGNED ) + + COUNT( * ), - - 91 - + 77 )
----
-71

skipif mysql # not compatible
query I rowsort label-3578
SELECT - 65 - + COALESCE ( 6, + + 61 - CAST ( NULL AS INTEGER ) + + COUNT ( * ), - - 91 - + 77 )
----
-71

query II rowsort
SELECT DISTINCT + 37 AS col1, 30 * 7
----
37
210

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT ALL + ( - NULLIF ( MAX( - - ( 29 ) ), COUNT( * ) ) ) AS col1, - 24
----
-29
-24

skipif mysql # not compatible
query II rowsort label-3580
SELECT ALL + ( - NULLIF ( MAX ( - - ( 29 ) ), COUNT ( * ) ) ) AS col1, - 24
----
-29
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3581
SELECT - 41 DIV - MIN( DISTINCT + ( - 24 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3581
SELECT - 41 / - MIN ( DISTINCT + ( - 24 ) )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT ALL + MAX( ALL - + CAST( + + 32 AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL + MAX ( ALL - + CAST ( + + 32 AS INTEGER ) )
----
-32

query I rowsort
SELECT ALL + ( + + 61 ) * + 2 AS col1
----
122

query I rowsort
SELECT DISTINCT + 92 * - 33 AS col1
----
-3036

query I rowsort
SELECT - 69 * 3 * 89 + 96 + 5 AS col2
----
-18322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3587
SELECT ALL CASE 28 WHEN - COUNT( * ) + 70 THEN NULL WHEN 94 * ( - - 99 ) + COUNT( * ) THEN + + 46 + + + NULLIF ( + CASE - ( + MIN( DISTINCT 98 ) ) WHEN + 96 THEN ( + NULLIF ( - ( + 17 ), - 34 ) ) * SUM( ALL + 39 ) + ( + MIN( DISTINCT + 54 ) ) * + - CAST( - + 31 AS SIGNED ) * + - 37 END, - 79 + - - 46 + - CAST( NULL AS DECIMAL ) ) + 83 END * - - 14 + - 83 + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL CASE 28 WHEN - COUNT ( * ) + 70 THEN NULL WHEN 94 * ( - - 99 ) + COUNT ( * ) THEN + + 46 + + + NULLIF ( + CASE - ( + MIN ( DISTINCT 98 ) ) WHEN + 96 THEN ( + NULLIF ( - ( + 17 ), - 34 ) ) * SUM ( ALL + 39 ) + ( + MIN ( DISTINCT + 54 ) ) * + - CAST ( - + 31 AS INTEGER ) * + - 37 END, - 79 + - - 46 + - CAST ( NULL AS REAL ) ) + 83 END * - - 14 + - 83 + + 20 AS col1
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT 26 DIV - - 31
----
0

skipif mysql # not compatible
query I rowsort label-3590
SELECT 26 / - - 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT - ( - - 54 ) * MIN( - 47 ) AS col0
----
2538

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - ( - - 54 ) * MIN ( - 47 ) AS col0
----
2538

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT ALL 39 DIV ( - 27 ) DIV - - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL 39 / ( - 27 ) / - - 10 AS col1
----
0

query I rowsort
SELECT DISTINCT 50 + 53 * + 42
----
2276

onlyif mysql # aggregate syntax: 
query II rowsort label-3595
SELECT ALL 73 AS col1, COUNT( * ) + - 89 AS col2
----
73
-88

skipif mysql # not compatible
query II rowsort label-3595
SELECT ALL 73 AS col1, COUNT ( * ) + - 89 AS col2
----
73
-88

query I rowsort
SELECT ALL 85 + + 81
----
166

query I rowsort
SELECT 35 + + ( + 81 )
----
116

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

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - CAST ( NULL AS REAL ) * - 57 AS col0
----
NULL

query II rowsort
SELECT 41 * 20 + 88, 85 AS col0
----
908
85

query I rowsort
SELECT DISTINCT 82 + - 4 * + + 28
----
-30

query I rowsort
SELECT DISTINCT 95 + 24 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL 0 + - 53 * + COUNT( * ) + - 52 + + 93 * + ( - - 67 ) * 39 AS col2
----
242904

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL 0 + - 53 * + COUNT ( * ) + - 52 + + 93 * + ( - - 67 ) * 39 AS col2
----
242904

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL COUNT( * ) * 76 + - 51 * - - 9 AS col0
----
-383

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL COUNT ( * ) * 76 + - 51 * - - 9 AS col0
----
-383

query I rowsort
SELECT 80 + + - 35 + + 17 * - - 36
----
657

query I rowsort
SELECT DISTINCT 57 * 50 * - - 50 AS col1
----
142500

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL 80 + - 31 + - + SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL 80 + - 31 + - + SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL - + 89, 74 col0
----
-89
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT - 76 DIV - 45 - - 82 * - - 61 AS col0
----
5003

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 76 / - 45 - - 82 * - - 61 AS col0
----
5003

query I rowsort
SELECT - 84 * ( - ( 68 ) ) + - 75 + + 55
----
5692

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3612
SELECT 59 + - COUNT( * ) + 60 - - CAST( + CASE + - 29 WHEN 64 - - 85 THEN NULL ELSE - - 69 END AS SIGNED ) * 61 AS col0, 6 + + + 36 + - 73
----
4327
-31

skipif mysql # not compatible
query II rowsort label-3612
SELECT 59 + - COUNT ( * ) + 60 - - CAST ( + CASE + - 29 WHEN 64 - - 85 THEN NULL ELSE - - 69 END AS INTEGER ) * 61 AS col0, 6 + + + 36 + - 73
----
4327
-31

query I rowsort
SELECT 14 * 58 * + 42
----
34104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT 20 + + NULLIF ( 0, - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) col1
----
20

skipif mysql # not compatible
query I rowsort label-3614
SELECT 20 + + NULLIF ( 0, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT CAST( + - 45 AS SIGNED ) * - 2
----
90

skipif mysql # not compatible
query I rowsort label-3615
SELECT CAST ( + - 45 AS INTEGER ) * - 2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT 6 * - + 66 + 75 * + - 64, 84 * - COALESCE ( + - COUNT( * ), + - 81, + + 8 ) AS col1
----
-5196
84

skipif mysql # not compatible
query II rowsort label-3616
SELECT 6 * - + 66 + 75 * + - 64, 84 * - COALESCE ( + - COUNT ( * ), + - 81, + + 8 ) AS col1
----
-5196
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT COUNT( * ) * - + ( 52 ) * 52
----
-2704

skipif mysql # not compatible
query I rowsort label-3618
SELECT COUNT ( * ) * - + ( 52 ) * 52
----
-2704

query I rowsort
SELECT ALL + ( 33 ) * - + 54 - 0
----
-1782

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3621
SELECT DISTINCT - 88, - ( + + ( - 81 ) ) + + + 35 * - 5 * + - 77 / - 52 + - - 58 * CAST( NULL AS SIGNED ) * - ( - + 33 ) / COUNT( * ) * CAST( - + AVG ( + 23 ) AS SIGNED ) AS col0
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-3621
SELECT DISTINCT - 88, - ( + + ( - 81 ) ) + + + 35 * - 5 * + - 77 / - 52 + - - 58 * CAST ( NULL AS INTEGER ) * - ( - + 33 ) / COUNT ( * ) * CAST ( - + AVG ( + 23 ) AS INTEGER ) AS col0
----
-88
NULL

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

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

query II rowsort
SELECT 16 AS col2, 24 AS col0
----
16
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT 29 * SUM( 14 ) AS col2
----
406

skipif mysql # not compatible
query I rowsort label-3624
SELECT 29 * SUM ( 14 ) AS col2
----
406

query I rowsort
SELECT DISTINCT - NULLIF ( + - 74, 26 ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT - ( 48 ) + CASE - + 15 WHEN AVG ( 78 ) THEN MIN( ALL ( - 2 ) ) WHEN - 65 + - + 5 THEN NULL END + - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT - ( 48 ) + CASE - + 15 WHEN AVG ( 78 ) THEN MIN ( ALL ( - 2 ) ) WHEN - 65 + - + 5 THEN NULL END + - - 14 AS col0
----
NULL

query I rowsort
SELECT ALL - 71 + - 12 * - 31
----
301

query II rowsort
SELECT 13 AS col2, - COALESCE ( - 60, + - 60 ) AS col1
----
13
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT - 70 AS col1, + 86 * COUNT( * ) + + 12 AS col2
----
-70
98

skipif mysql # not compatible
query II rowsort label-3629
SELECT - 70 AS col1, + 86 * COUNT ( * ) + + 12 AS col2
----
-70
98

query II rowsort
SELECT - 72, 25 AS col0
----
-72
25

query I rowsort
SELECT 45 * - 10 AS col0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT 80 * + MAX( - 48 ) AS col1
----
-3840

skipif mysql # not compatible
query I rowsort label-3632
SELECT 80 * + MAX ( - 48 ) AS col1
----
-3840

query I rowsort
SELECT DISTINCT - 3 * - 93 AS col0
----
279

query I rowsort
SELECT ALL - 70 * - 18 - + + 0 * 51 col1
----
1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3635
SELECT ALL ( + CASE + 64 WHEN - - ( - COALESCE ( CASE 31 WHEN 64 THEN NULL WHEN + 2 + - CAST( NULL AS DECIMAL ) THEN + - 77 END, + 76 * + CASE - COUNT( * ) WHEN COALESCE ( - + 68, + 19 ) THEN 13 / + + 19 ELSE + CAST( NULL AS SIGNED ) END + + 58 + 89 - COUNT( * ) ) ) THEN - 31 ELSE 59 END )
----
59

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL ( + CASE + 64 WHEN - - ( - COALESCE ( CASE 31 WHEN 64 THEN NULL WHEN + 2 + - CAST ( NULL AS REAL ) THEN + - 77 END, + 76 * + CASE - COUNT ( * ) WHEN COALESCE ( - + 68, + 19 ) THEN 13 / + + 19 ELSE + CAST ( NULL AS INTEGER ) END + + 58 + 89 - COUNT ( * ) ) ) THEN - 31 ELSE 59 END )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT - 54 + + 41 + + + SUM( + NULLIF ( - 1, ( 16 ) * - - 13 ) ) - - 76 + + SUM( + - 51 ) * CASE CASE ( - 32 ) WHEN 96 + 78 THEN - - COUNT( * ) + + 57 WHEN + AVG ( ALL + - 77 ) + + + COUNT( * ) THEN NULL WHEN 70 * + 12 * - 56 THEN NULL END WHEN - MAX( DISTINCT + + 34 ) * - + 11 THEN NULL WHEN - NULLIF ( 28, + - COALESCE ( - 38, + - 25 ) ) / COUNT( * ) / + 21 THEN - 57 ELSE NULL END * COUNT( * ) * 76 * 19 * COUNT( DISTINCT - NULLIF ( 2, 73 * - 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - 54 + + 41 + + + SUM ( + NULLIF ( - 1, ( 16 ) * - - 13 ) ) - - 76 + + SUM ( + - 51 ) * CASE CASE ( - 32 ) WHEN 96 + 78 THEN - - COUNT ( * ) + + 57 WHEN + AVG ( ALL + - 77 ) + + + COUNT ( * ) THEN NULL WHEN 70 * + 12 * - 56 THEN NULL END WHEN - MAX ( DISTINCT + + 34 ) * - + 11 THEN NULL WHEN - NULLIF ( 28, + - COALESCE ( - 38, + - 25 ) ) / COUNT ( * ) / + 21 THEN - 57 ELSE NULL END * COUNT ( * ) * 76 * 19 * COUNT ( DISTINCT - NULLIF ( 2, 73 * - 4 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT DISTINCT + - COUNT( * ) + 5 - + COALESCE ( + COUNT( * ), 4 ) + + 74 * - CASE - COUNT( * ) WHEN + 55 THEN - 83 + - 87 + - + 7 + + COUNT( * ) / 12 - COUNT( + 85 ) * + COUNT( * ) WHEN + - 96 / - 30 + 90 + - NULLIF ( - 71, + 56 ) + MAX( - 10 ) THEN + COUNT( * ) END * - CASE - 72 WHEN - + 47 THEN - + 17 ELSE + 69 * - 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT + - COUNT ( * ) + 5 - + COALESCE ( + COUNT ( * ), 4 ) + + 74 * - CASE - COUNT ( * ) WHEN + 55 THEN - 83 + - 87 + - + 7 + + COUNT ( * ) / 12 - COUNT ( + 85 ) * + COUNT ( * ) WHEN + - 96 / - 30 + 90 + - NULLIF ( - 71, + 56 ) + MAX ( - 10 ) THEN + COUNT ( * ) END * - CASE - 72 WHEN - + 47 THEN - + 17 ELSE + 69 * - 71 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3638
SELECT ALL - 21 + + + CAST( NULL AS DECIMAL ) + - - 63 * - + COUNT( * ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 21 + + + CAST ( NULL AS REAL ) + - - 63 * - + COUNT ( * ) * 28
----
NULL

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

query I rowsort
SELECT 74 + - - 22
----
96

query II rowsort
SELECT - - 18, 7 AS col0
----
18
7

query I rowsort
SELECT 48 + - 34 AS col2
----
14

query I rowsort
SELECT - 70 * + 19 AS col1
----
-1330

query I rowsort
SELECT ALL - 82 * + 27 - - + 78
----
-2136

query I rowsort
SELECT DISTINCT + 47 * - 63 + + 8
----
-2953

query I rowsort
SELECT DISTINCT - + ( + 84 ) AS col1
----
-84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT + 64 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-3648
SELECT + 64 / - 79
----
0

query I rowsort
SELECT - 70 * + 47 AS col2
----
-3290

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT + 34 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-3650
SELECT + 34 / - 89
----
0

query I rowsort
SELECT + 52 - + + 62
----
-10

query I rowsort
SELECT ALL - 22 * + 15 + + 91
----
-239

onlyif mysql # aggregate syntax: 
query II rowsort label-3653
SELECT ALL 67 * + 81 + + ( 84 ) * + 87 * - 74 - COUNT( * ) AS col1, + 77
----
-535366
77

skipif mysql # not compatible
query II rowsort label-3653
SELECT ALL 67 * + 81 + + ( 84 ) * + 87 * - 74 - COUNT ( * ) AS col1, + 77
----
-535366
77

query I rowsort
SELECT ALL 73 * - - 50 + 27 AS col2
----
3677

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3656
SELECT ALL - COUNT( * ) * 53 * + 37 + + 7 * ( 89 ) + - 24 * - - 16, + 68 AS col0
----
-1722
68

skipif mysql # not compatible
query II rowsort label-3656
SELECT ALL - COUNT ( * ) * 53 * + 37 + + 7 * ( 89 ) + - 24 * - - 16, + 68 AS col0
----
-1722
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + 16 * 30 * + COUNT( DISTINCT - 85 ) AS col1
----
480

skipif mysql # not compatible
query I rowsort label-3657
SELECT + 16 * 30 * + COUNT ( DISTINCT - 85 ) AS col1
----
480

query I rowsort
SELECT + NULLIF ( + 64, - 95 ) AS col1
----
64

query I rowsort
SELECT - 80 * - 3 col2
----
240

query I rowsort
SELECT + 92 + - 37 + - 46 AS col2
----
9

query I rowsort
SELECT DISTINCT - 67 * + 76 AS col2
----
-5092

query I rowsort
SELECT ALL + 12 + NULLIF ( 47, - + 65 ) col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT - NULLIF ( - COUNT( * ), - ( - - COUNT( * ) ) ) * 92 * + + 84 + - + SUM( DISTINCT - 35 ) - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT - NULLIF ( - COUNT ( * ), - ( - - COUNT ( * ) ) ) * 92 * + + 84 + - + SUM ( DISTINCT - 35 ) - - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - 44 + + MIN( ALL - - 79 )
----
35

skipif mysql # not compatible
query I rowsort label-3664
SELECT - 44 + + MIN ( ALL - - 79 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - 29 + - 90 + + + 93 + - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3665
SELECT - 29 + - 90 + + + 93 + - COUNT ( * )
----
-27

query I rowsort
SELECT ALL 99 + - 87 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3667
SELECT - SUM( - + 50 ), COALESCE ( - COUNT( * ), + + CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col2
----
50
-1

skipif mysql # not compatible
query II rowsort label-3667
SELECT - SUM ( - + 50 ), COALESCE ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col2
----
50
-1

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

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

query I rowsort
SELECT - - 30 + - 2
----
28

query I rowsort
SELECT ALL + - 26 - 65 AS col2
----
-91

query I rowsort
SELECT - 18 * - 75 + - + 77 AS col1
----
1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3672
SELECT - 88 * - 49 col0, - CAST( - COUNT( * ) AS SIGNED ) + + 60 + - 79 AS col1
----
4312
-18

skipif mysql # not compatible
query II rowsort label-3672
SELECT - 88 * - 49 col0, - CAST ( - COUNT ( * ) AS INTEGER ) + + 60 + - 79 AS col1
----
4312
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT + MAX( - 60 ) col2, 66 + - 85
----
-60
-19

skipif mysql # not compatible
query II rowsort label-3673
SELECT + MAX ( - 60 ) col2, 66 + - 85
----
-60
-19

query I rowsort
SELECT DISTINCT + - 88 - 13
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT CASE + ( - - 13 ) WHEN + - 2 THEN CASE - 91 WHEN - COUNT( * ) THEN + - 58 * - 6 / - 67 + - 90 * - - 57 + 38 + CAST( NULL AS SIGNED ) - + - 81 WHEN + - 65 * 68 + + 59 THEN NULL END * - CASE + 73 WHEN 75 THEN - + 96 WHEN - + NULLIF ( + 67, 86 + + - ( + CAST( + - COUNT( * ) AS SIGNED ) ) ) THEN + AVG ( DISTINCT - 49 ) * AVG ( ALL - CAST( NULL AS SIGNED ) ) END + NULLIF ( - + 46, + 3 ) ELSE 7 END AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3675
SELECT CASE + ( - - 13 ) WHEN + - 2 THEN CASE - 91 WHEN - COUNT ( * ) THEN + - 58 * - 6 / - 67 + - 90 * - - 57 + 38 + CAST ( NULL AS INTEGER ) - + - 81 WHEN + - 65 * 68 + + 59 THEN NULL END * - CASE + 73 WHEN 75 THEN - + 96 WHEN - + NULLIF ( + 67, 86 + + - ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) ) THEN + AVG ( DISTINCT - 49 ) * AVG ( ALL - CAST ( NULL AS INTEGER ) ) END + NULLIF ( - + 46, + 3 ) ELSE 7 END AS col0
----
7

query I rowsort
SELECT ALL + + 21 * - 80 col0
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - - NULLIF ( + + 76, + SUM( 75 ) + - COUNT( * ) ) * - ( - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-3677
SELECT - - NULLIF ( + + 76, + SUM ( 75 ) + - COUNT ( * ) ) * - ( - COUNT ( * ) )
----
76

query I rowsort
SELECT DISTINCT + 65 * + + 48 + 31
----
3151

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT ALL - 59 DIV - - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - 59 / - - 75 AS col2
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3682
SELECT CAST( NULL AS SIGNED ) AS col2, 16 col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-3682
SELECT CAST ( NULL AS INTEGER ) AS col2, 16 col1
----
NULL
16

query II rowsort
SELECT ALL + 75 AS col0, 53
----
75
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT - 51 * - 25 + - - ( 19 ) DIV - - 77 * - 14
----
1275

skipif mysql # not compatible
query I rowsort label-3684
SELECT - 51 * - 25 + - - ( 19 ) / - - 77 * - 14
----
1275

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT 43 * + - 78 + - 80 AS col2, SUM( ALL - NULLIF ( + 54, - - 68 ) )
----
-3434
-54

skipif mysql # not compatible
query II rowsort label-3685
SELECT 43 * + - 78 + - 80 AS col2, SUM ( ALL - NULLIF ( + 54, - - 68 ) )
----
-3434
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3686
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) / - COUNT( * ) / + 18 + + - 92 + + NULLIF ( + + 26, + + 2 / - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) / + 18 + + - 92 + + NULLIF ( + + 26, + + 2 / - 12 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3687
SELECT + CASE 93 WHEN COUNT( * ) THEN 23 * CAST( COALESCE ( COUNT( * ), + + 31 ) AS SIGNED ) END AS col0, CAST( + COUNT( * ) AS SIGNED )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3687
SELECT + CASE 93 WHEN COUNT ( * ) THEN 23 * CAST ( COALESCE ( COUNT ( * ), + + 31 ) AS INTEGER ) END AS col0, CAST ( + COUNT ( * ) AS INTEGER )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3688
SELECT DISTINCT + COUNT( * ) DIV + 95 + 65, 79 AS col0
----
65
79

skipif mysql # not compatible
query II rowsort label-3688
SELECT DISTINCT + COUNT ( * ) / + 95 + 65, 79 AS col0
----
65
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3689
SELECT ALL 94 DIV - - COUNT( * ) + 72 + + COUNT( * ) + + ( + COUNT( * ) )
----
168

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL 94 / - - COUNT ( * ) + 72 + + COUNT ( * ) + + ( + COUNT ( * ) )
----
168

query II rowsort
SELECT ALL + 84 AS col0, 66 - - 32
----
84
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3691
SELECT 43 * + ( - ( - ( - 29 ) ) ) + 89 AS col2, - 15 * - 12 * - 88 * ( - 55 ) * + CASE 1 WHEN 92 THEN + 50 * 36 ELSE + - 83 / 59 / + AVG ( 54 ) * + 37 + - CAST( NULL AS SIGNED ) END + - COALESCE ( - + 76, 75 * - + 29 - - + 47 ) + + SUM( ALL - ( - 39 ) ) AS col0
----
-1158
NULL

skipif mysql # not compatible
query II rowsort label-3691
SELECT 43 * + ( - ( - ( - 29 ) ) ) + 89 AS col2, - 15 * - 12 * - 88 * ( - 55 ) * + CASE 1 WHEN 92 THEN + 50 * 36 ELSE + - 83 / 59 / + AVG ( 54 ) * + 37 + - CAST ( NULL AS INTEGER ) END + - COALESCE ( - + 76, 75 * - + 29 - - + 47 ) + + SUM ( ALL - ( - 39 ) ) AS col0
----
-1158
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3692
SELECT + CASE - 74 WHEN 67 THEN - CASE - + 96 WHEN - 54 * 94 / + CAST( NULL AS SIGNED ) * - ( - 13 ) + CAST( NULL AS SIGNED ) + + NULLIF ( - + 54, - + CAST( NULL AS SIGNED ) * + - COUNT( * ) ) + + CASE - 66 WHEN 92 THEN NULL ELSE + COUNT( * ) END * 40 * - NULLIF ( + 75, 17 * + 71 ) / 84 + 45 - ( - 20 ) * 0 + + 97 * 81 THEN 11 ELSE NULL END + + 94 END * + 52 - + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT + CASE - 74 WHEN 67 THEN - CASE - + 96 WHEN - 54 * 94 / + CAST ( NULL AS INTEGER ) * - ( - 13 ) + CAST ( NULL AS INTEGER ) + + NULLIF ( - + 54, - + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) ) + + CASE - 66 WHEN 92 THEN NULL ELSE + COUNT ( * ) END * 40 * - NULLIF ( + 75, 17 * + 71 ) / 84 + 45 - ( - 20 ) * 0 + + 97 * 81 THEN 11 ELSE NULL END + + 94 END * + 52 - + - 37 AS col1
----
NULL

query II rowsort
SELECT ( - ( + 34 ) ) AS col2, - 63 * + 11 - - 96 AS col2
----
-34
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT 6 * + SUM( 24 ) + - - 46
----
190

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT 6 * + SUM ( 24 ) + - - 46
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL 81 * 37 + + MIN( DISTINCT - 52 ) * + + 60 + 48
----
-75

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL 81 * 37 + + MIN ( DISTINCT - 52 ) * + + 60 + 48
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3696
SELECT + CAST( NULL AS SIGNED ), ( + 62 ) + - COUNT( * ) * - - 76 AS col0
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-3696
SELECT + CAST ( NULL AS INTEGER ), ( + 62 ) + - COUNT ( * ) * - - 76 AS col0
----
NULL
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT DISTINCT 43 * CAST( + 66 AS SIGNED ) - - 87 + - - 93 AS col2
----
3018

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT 43 * CAST ( + 66 AS INTEGER ) - - 87 + - - 93 AS col2
----
3018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3698
SELECT + COALESCE ( - 92, - - CAST( - 7 AS SIGNED ) + + + CASE - - 71 WHEN + 37 THEN NULL WHEN - + COALESCE ( - COALESCE ( + 21, + 71 ), - 13 ) THEN - - 83 - - 30 WHEN + + 29 THEN - SUM( DISTINCT 80 ) ELSE NULL END * 60 ) DIV 68 * + 79 col1
----
-79

skipif mysql # not compatible
query I rowsort label-3698
SELECT + COALESCE ( - 92, - - CAST ( - 7 AS INTEGER ) + + + CASE - - 71 WHEN + 37 THEN NULL WHEN - + COALESCE ( - COALESCE ( + 21, + 71 ), - 13 ) THEN - - 83 - - 30 WHEN + + 29 THEN - SUM ( DISTINCT 80 ) ELSE NULL END * 60 ) / 68 * + 79 col1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL 6 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL 6 / + 78
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT - COUNT( * ) AS col2, 86 * 35
----
-1
3010

skipif mysql # not compatible
query II rowsort label-3700
SELECT - COUNT ( * ) AS col2, 86 * 35
----
-1
3010

query I rowsort
SELECT DISTINCT + 62 * - + 98 AS col2
----
-6076

query I rowsort
SELECT + COALESCE ( 21, + - 17 ) - - 74
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL - MIN( - - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - MIN ( - - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query III rowsort label-3704
SELECT + + 7 * - + 30 + + COUNT( * ) AS col0, + 5, - ( - NULLIF ( - 71, + 44 ) ) AS col2
----
-209
5
-71

skipif mysql # not compatible
query III rowsort label-3704
SELECT + + 7 * - + 30 + + COUNT ( * ) AS col0, + 5, - ( - NULLIF ( - 71, + 44 ) ) AS col2
----
-209
5
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3705
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + MAX( - 9 ) + 31 + + NULLIF ( - 33, CAST( NULL AS SIGNED ) ) / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + CAST ( NULL AS REAL ) * + MAX ( - 9 ) + 31 + + NULLIF ( - 33, CAST ( NULL AS INTEGER ) ) / + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL - COUNT( * ) - - 49 + + 6 + + 21 / + - CAST( NULL AS SIGNED ) * CAST( COALESCE ( + 37, COUNT( * ), + ( - 95 ) / - 18 - + - SUM( DISTINCT + - 29 ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - COUNT ( * ) - - 49 + + 6 + + 21 / + - CAST ( NULL AS INTEGER ) * CAST ( COALESCE ( + 37, COUNT ( * ), + ( - 95 ) / - 18 - + - SUM ( DISTINCT + - 29 ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 71, + ( - 61 ) ) AS col0
----
-71

query I rowsort
SELECT ALL - 69 * - 91
----
6279

query I rowsort
SELECT - + 58 * - 49
----
2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT - 75 + + 15 * - SUM( CAST( + 38 AS SIGNED ) )
----
-645

skipif mysql # not compatible
query I rowsort label-3710
SELECT - 75 + + 15 * - SUM ( CAST ( + 38 AS INTEGER ) )
----
-645

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT ALL + 86 + 11 DIV - 8 - 0
----
85

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + 86 + 11 / - 8 - 0
----
85

query II rowsort
SELECT ALL - 16 AS col1, 70
----
-16
70

query I rowsort
SELECT - 32 + + - 86 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT COUNT( * ) + 14 + + NULLIF ( + 7, + 72 * - 74 ) * MIN( ALL 23 )
----
176

skipif mysql # not compatible
query I rowsort label-3714
SELECT COUNT ( * ) + 14 + + NULLIF ( + 7, + 72 * - 74 ) * MIN ( ALL 23 )
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL + COALESCE ( - + CAST( NULL AS SIGNED ), 11 ) * - 45 AS col0
----
-495

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), 11 ) * - 45 AS col0
----
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT 20 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT 20 / - 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL + COUNT( 54 ) + - 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + COUNT ( 54 ) + - 48 AS col2
----
-47

query I rowsort
SELECT ALL - 75 + - + 99
----
-174

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

skipif mysql # not compatible
query I rowsort label-3719
SELECT COUNT ( * ) / 53 * + - 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT DISTINCT - CAST( - + 78 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - CAST ( - + 78 AS INTEGER ) AS col0
----
78

query I rowsort
SELECT 26 - - - 93 + 72 + + ( + ( + 54 ) ) * + 87 + + 45 AS col2
----
4748

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3722
SELECT ALL - 12 + + 88 * - + CAST( - 98 AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) * 11 + 89 * CAST( NULL AS SIGNED ) AS col2
----
8612
NULL

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL - 12 + + 88 * - + CAST ( - 98 AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) * 11 + 89 * CAST ( NULL AS INTEGER ) AS col2
----
8612
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT SUM( ALL + - ( + - COALESCE ( + COALESCE ( + + ( - - 49 ), ( + 65 ) * - 9, + 53 - - 34 ), + NULLIF ( 94, + - 7 + - 4 ) ) ) ) * - + 47 * - - MAX( - 85 ) - COUNT( * ) - - 97
----
195851

skipif mysql # not compatible
query I rowsort label-3723
SELECT SUM ( ALL + - ( + - COALESCE ( + COALESCE ( + + ( - - 49 ), ( + 65 ) * - 9, + 53 - - 34 ), + NULLIF ( 94, + - 7 + - 4 ) ) ) ) * - + 47 * - - MAX ( - 85 ) - COUNT ( * ) - - 97
----
195851

onlyif mysql # aggregate syntax: 
query II rowsort label-3724
SELECT SUM( DISTINCT - 92 ) * COUNT( * ) + - 61 AS col1, 14 AS col2
----
-153
14

skipif mysql # not compatible
query II rowsort label-3724
SELECT SUM ( DISTINCT - 92 ) * COUNT ( * ) + - 61 AS col1, 14 AS col2
----
-153
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3725
SELECT ALL 15 * + 39, + 71 - 14 / CAST( NULL AS SIGNED ) AS col1
----
585
NULL

skipif mysql # not compatible
query II rowsort label-3725
SELECT ALL 15 * + 39, + 71 - 14 / CAST ( NULL AS INTEGER ) AS col1
----
585
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT 13 * COUNT( * ) - 89 + - 40
----
-116

skipif mysql # not compatible
query I rowsort label-3727
SELECT 13 * COUNT ( * ) - 89 + - 40
----
-116

query I rowsort
SELECT ALL 79 * ( - 59 )
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT COUNT( ALL 44 ) + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3729
SELECT COUNT ( ALL 44 ) + 20 AS col1
----
21

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

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

query I rowsort
SELECT DISTINCT - 91 * - 89
----
8099

query I rowsort
SELECT 34 + + - 45 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT SUM( DISTINCT - 30 ) * + 22 + - 92 AS col1
----
-752

skipif mysql # not compatible
query I rowsort label-3733
SELECT SUM ( DISTINCT - 30 ) * + 22 + - 92 AS col1
----
-752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3734
SELECT + 14 + - - 84 * COUNT( * ) + - NULLIF ( 82, - CAST( NULL AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-3734
SELECT + 14 + - - 84 * COUNT ( * ) + - NULLIF ( 82, - CAST ( NULL AS INTEGER ) )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3735
SELECT ALL COALESCE ( - ( + 66 ), + 81 * - 87 + - ( + 85 ) + + CAST( + - 72 AS SIGNED ) * + COUNT( * ) DIV ( + - 53 ) + - 63 * + - 91 + + 74 )
----
-66

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL COALESCE ( - ( + 66 ), + 81 * - 87 + - ( + 85 ) + + CAST ( + - 72 AS INTEGER ) * + COUNT ( * ) / ( + - 53 ) + - 63 * + - 91 + + 74 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT CAST( - + 47 AS SIGNED ) + 19 * + 40 * - 28
----
-21327

skipif mysql # not compatible
query I rowsort label-3736
SELECT CAST ( - + 47 AS INTEGER ) + 19 * + 40 * - 28
----
-21327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL 67 * + - COALESCE ( 47, + 68, CAST( 56 AS SIGNED ) )
----
-3149

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL 67 * + - COALESCE ( 47, + 68, CAST ( 56 AS INTEGER ) )
----
-3149

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

skipif mysql # not compatible
query I rowsort label-3738
SELECT 3 + + - COUNT ( * ) - + 65 AS col1
----
-63

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

query I rowsort
SELECT 51 * - ( + - 77 )
----
3927

query I rowsort
SELECT - 63 + 1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL + COUNT( * ) + - - 86 - - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + COUNT ( * ) + - - 86 - - COUNT ( * )
----
88

query II rowsort
SELECT - + ( - - 8 ) AS col2, - ( 66 ) + + - 59 * - 30 - - 69
----
-8
1773

query I rowsort
SELECT 59 * 22 AS col0
----
1298

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - ( NULLIF ( COUNT( * ), - 88 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3745
SELECT - ( NULLIF ( COUNT ( * ), - 88 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT + + 16 + NULLIF ( COALESCE ( + 19, COUNT( * ) * - + 60 ), - MIN( DISTINCT - 57 ) ) * + - 4 + + 11 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT + + 16 + NULLIF ( COALESCE ( + 19, COUNT ( * ) * - + 60 ), - MIN ( DISTINCT - 57 ) ) * + - 4 + + 11 AS col2
----
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL + 43 + MAX( + 92 ) - + 90 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + 43 + MAX ( + 92 ) - + 90 AS col0
----
45

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

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

query I rowsort
SELECT 45 + - - 90
----
135

query I rowsort
SELECT 49 * + 51 * - 81
----
-202419

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT COALESCE ( + 37, 87 ) + - - 80 DIV ( + - 43 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3752
SELECT COALESCE ( + 37, 87 ) + - - 80 / ( + - 43 ) AS col0
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-3753
SELECT + 10 DIV 57 + + 95 AS col0, 98 AS col0
----
95
98

skipif mysql # not compatible
query II rowsort label-3753
SELECT + 10 / 57 + + 95 AS col0, 98 AS col0
----
95
98

query I rowsort
SELECT DISTINCT - 63 * - + 41 - ( 16 )
----
2567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT DISTINCT - 8 * - + MIN( - 0 ) DIV - 19 - - ( - ( 63 ) ) col1
----
-63

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - 8 * - + MIN ( - 0 ) / - 19 - - ( - ( 63 ) ) col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT ALL - 18 AS col2, 58 + + COUNT( * ) * + 79 AS col0
----
-18
137

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL - 18 AS col2, 58 + + COUNT ( * ) * + 79 AS col0
----
-18
137

query I rowsort
SELECT 54 * + 83
----
4482

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT 60 DIV - 50
----
-1

skipif mysql # not compatible
query I rowsort label-3758
SELECT 60 / - 50
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3759
SELECT + SUM( + 55 ) * CAST( NULL AS SIGNED ) + - 7 + - 7, 1 + + 5 * - COUNT( * ) col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-3759
SELECT + SUM ( + 55 ) * CAST ( NULL AS INTEGER ) + - 7 + - 7, 1 + + 5 * - COUNT ( * ) col2
----
NULL
-4

query I rowsort
SELECT - 3 * 32 + 77 + - 46 - - 99 + + 66 * - ( ( - 23 ) ) * + - 77 + - NULLIF ( + 36, + 89 ) * + 77
----
-119624

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - 80 * - - 86 - + - NULLIF ( - + COUNT( * ), COUNT( * ) ) * - - 9 AS col0
----
-6889

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - 80 * - - 86 - + - NULLIF ( - + COUNT ( * ), COUNT ( * ) ) * - - 9 AS col0
----
-6889

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + CASE + - COUNT( * ) WHEN + MAX( DISTINCT - 73 ) * 45 * + 99 / - + 44 + 63 + + 18 THEN - + SUM( ALL 96 ) WHEN 85 THEN NULL ELSE + 43 END AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3763
SELECT + CASE + - COUNT ( * ) WHEN + MAX ( DISTINCT - 73 ) * 45 * + 99 / - + 44 + 63 + + 18 THEN - + SUM ( ALL 96 ) WHEN 85 THEN NULL ELSE + 43 END AS col2
----
43

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

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

query II rowsort
SELECT DISTINCT + 89 col0, - 39 + + - 63
----
89
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT DISTINCT - 76, 14 * CAST( NULL AS SIGNED ) col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-3766
SELECT DISTINCT - 76, 14 * CAST ( NULL AS INTEGER ) col1
----
-76
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT DISTINCT - + 2 + CASE - 75 WHEN - + 79 + - ( - + 94 ) * + 35 THEN NULL WHEN + + NULLIF ( - 77, 47 * - 14 * - CAST( NULL AS SIGNED ) ) * + 36 THEN - + 46 * + 23 ELSE 54 + + 78 * 84 END * + + 36
----
237814

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT - + 2 + CASE - 75 WHEN - + 79 + - ( - + 94 ) * + 35 THEN NULL WHEN + + NULLIF ( - 77, 47 * - 14 * - CAST ( NULL AS INTEGER ) ) * + 36 THEN - + 46 * + 23 ELSE 54 + + 78 * 84 END * + + 36
----
237814

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT NULLIF ( + 5, - CAST( NULL AS SIGNED ) / + AVG ( DISTINCT 19 ) + - + 46 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3769
SELECT NULLIF ( + 5, - CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT 19 ) + - + 46 ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3770
SELECT + - 91 * + - NULLIF ( + ( + - 60 ), - COALESCE ( CAST( - + 12 AS SIGNED ), + COUNT( * ) ) )
----
-5460

skipif mysql # not compatible
query I rowsort label-3770
SELECT + - 91 * + - NULLIF ( + ( + - 60 ), - COALESCE ( CAST ( - + 12 AS INTEGER ), + COUNT ( * ) ) )
----
-5460

query I rowsort
SELECT ALL - 86 + 16 AS col2
----
-70

query I rowsort
SELECT - + 80 - - 55
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT - + 41 AS col0, 68 + + - MIN( ALL - 57 ) col0
----
-41
125

skipif mysql # not compatible
query II rowsort label-3773
SELECT - + 41 AS col0, 68 + + - MIN ( ALL - 57 ) col0
----
-41
125

query II rowsort
SELECT 14, - 41 AS col2
----
14
-41

query I rowsort
SELECT ALL - - 60 + - 16 AS col0
----
44

query I rowsort
SELECT DISTINCT - ( 79 ) AS col1
----
-79

query I rowsort
SELECT ALL 80 + - 11 + + 22 + + 65
----
156

query II rowsort
SELECT - 34 AS col1, - 1
----
-34
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3779
SELECT DISTINCT 76 DIV + CAST( - + 23 AS SIGNED ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT 76 / + CAST ( - + 23 AS INTEGER ) col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + 88 - - COUNT( + 7 ) + + 0
----
89

skipif mysql # not compatible
query I rowsort label-3780
SELECT + 88 - - COUNT ( + 7 ) + + 0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL COUNT( * ) + + 84 + - 64 * + COALESCE ( + NULLIF ( + 77, + COALESCE ( + + 33, + + 65 ) ), + + 89, - - 31 * - 20 - - + 26 + NULLIF ( CAST( + + 75 AS SIGNED ), - 49 + - MAX( DISTINCT - + 23 ) + + - 32 ) ) AS col2
----
-4843

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL COUNT ( * ) + + 84 + - 64 * + COALESCE ( + NULLIF ( + 77, + COALESCE ( + + 33, + + 65 ) ), + + 89, - - 31 * - 20 - - + 26 + NULLIF ( CAST ( + + 75 AS INTEGER ), - 49 + - MAX ( DISTINCT - + 23 ) + + - 32 ) ) AS col2
----
-4843

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT - MAX( ALL - + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3782
SELECT - MAX ( ALL - + 40 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT - MAX( ALL + CASE - + 6 WHEN + 95 THEN NULL ELSE 8 + + 10 END ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3783
SELECT - MAX ( ALL + CASE - + 6 WHEN + 95 THEN NULL ELSE 8 + + 10 END ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT - MAX( - - 35 ) * ( - + 15 )
----
525

skipif mysql # not compatible
query I rowsort label-3784
SELECT - MAX ( - - 35 ) * ( - + 15 )
----
525

query I rowsort
SELECT - NULLIF ( + 28, 19 + - 22 * - - 55 ) col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3786
SELECT - CAST( NULL AS SIGNED ) * + - SUM( ALL + - 70 ) * - + 50, - 50 AS col0
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-3786
SELECT - CAST ( NULL AS INTEGER ) * + - SUM ( ALL + - 70 ) * - + 50, - 50 AS col0
----
NULL
-50

query I rowsort
SELECT ALL 40 * 35 AS col1
----
1400

query II rowsort
SELECT 81 AS col2, - 88
----
81
-88

query I rowsort
SELECT DISTINCT 69 * - 30 AS col2
----
-2070

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT ALL MAX( + 52 ) AS col0, + 11 AS col1
----
52
11

skipif mysql # not compatible
query II rowsort label-3790
SELECT ALL MAX ( + 52 ) AS col0, + 11 AS col1
----
52
11

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

query I rowsort
SELECT + 98 * + 9 * - - 88 AS col2
----
77616

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3795
SELECT ALL + COUNT( * ) AS col2, + MIN( + 59 ) AS col1
----
1
59

skipif mysql # not compatible
query II rowsort label-3795
SELECT ALL + COUNT ( * ) AS col2, + MIN ( + 59 ) AS col1
----
1
59

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

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

query I rowsort
SELECT + 62 * + - 49
----
-3038

query I rowsort
SELECT - 68 * + ( 23 )
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT CASE - + 97 WHEN + 79 THEN NULL WHEN + COUNT( 28 ) THEN 45 / - 89 + - 12 ELSE NULL END * - 11 - CASE - 1 WHEN 86 THEN NULL ELSE 83 / - AVG ( + 53 ) + - COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT CASE - + 97 WHEN + 79 THEN NULL WHEN + COUNT ( 28 ) THEN 45 / - 89 + - 12 ELSE NULL END * - 11 - CASE - 1 WHEN 86 THEN NULL ELSE 83 / - AVG ( + 53 ) + - COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT ALL - 42 * 96 - + 17 AS col1
----
-4049

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - MAX( ALL - - 26 ) * - ( 4 ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-3801
SELECT - MAX ( ALL - - 26 ) * - ( 4 ) AS col2
----
104

query I rowsort
SELECT ALL - + 79 * - 51 AS col0
----
4029

query II rowsort
SELECT - 82 AS col2, 96
----
-82
96

query I rowsort
SELECT DISTINCT 50 * - 59 + - 55 AS col1
----
-3005

query I rowsort
SELECT + - NULLIF ( 95, + 8 + + + 20 ) * 12
----
-1140

query I rowsort
SELECT ALL + 83 * 69 + 26
----
5753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT - 71 + - + 0 - 20 + - + NULLIF ( + COUNT( * ), - 14 ) * ( MAX( DISTINCT - 69 ) ) * + 61 + 10 * COUNT( * ) + - 23 DIV - 56 + - 93 col1
----
4035

skipif mysql # not compatible
query I rowsort label-3807
SELECT - 71 + - + 0 - 20 + - + NULLIF ( + COUNT ( * ), - 14 ) * ( MAX ( DISTINCT - 69 ) ) * + 61 + 10 * COUNT ( * ) + - 23 / - 56 + - 93 col1
----
4035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT - + 18 * 37 + + 91 - 9 * + 14 + - 23 - + 90 + - ( + COUNT( * ) ) / + + 30 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT - + 18 * 37 + + 91 - 9 * + 14 + - 23 - + 90 + - ( + COUNT ( * ) ) / + + 30 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT ALL + 99 DIV - + ( + 57 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + 99 / - + ( + 57 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT - COUNT( * ) * 95 / - CAST( NULL AS SIGNED ) * - 49 + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT - COUNT ( * ) * 95 / - CAST ( NULL AS INTEGER ) * - 49 + + 88 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT + MAX( + 35 ) - + CAST( 21 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-3811
SELECT + MAX ( + 35 ) - + CAST ( 21 AS INTEGER )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT - - ( + + CASE - 55 WHEN - + 98 * ( + 80 ) THEN 33 + - - COUNT( * ) ELSE - 44 END ) AS col2, + SUM( ALL - 7 ) col2
----
-44
-7

skipif mysql # not compatible
query II rowsort label-3812
SELECT - - ( + + CASE - 55 WHEN - + 98 * ( + 80 ) THEN 33 + - - COUNT ( * ) ELSE - 44 END ) AS col2, + SUM ( ALL - 7 ) col2
----
-44
-7

query I rowsort
SELECT - 12 + 83
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT ALL - - 7 * - COUNT( * ) * + - 13 + + CASE + 12 WHEN 44 * 54 THEN NULL ELSE - 70 - - 92 END
----
113

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - - 7 * - COUNT ( * ) * + - 13 + + CASE + 12 WHEN 44 * 54 THEN NULL ELSE - 70 - - 92 END
----
113

query I rowsort
SELECT ALL + 82 * - 22 + + 32 AS col1
----
-1772

onlyif mysql # aggregate syntax: 
query II rowsort label-3816
SELECT - + 69 + + COUNT( * ) + 73 * - 42, MAX( 82 ) * - 33 col1
----
-3134
-2706

skipif mysql # not compatible
query II rowsort label-3816
SELECT - + 69 + + COUNT ( * ) + 73 * - 42, MAX ( 82 ) * - 33 col1
----
-3134
-2706

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT ALL 74 * + + 9, NULLIF ( COUNT( * ), + 73 * + COUNT( * ) ) AS col0
----
666
1

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL 74 * + + 9, NULLIF ( COUNT ( * ), + 73 * + COUNT ( * ) ) AS col0
----
666
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT DISTINCT - 47 + + - 46 DIV - 88 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - 47 + + - 46 / - 88 AS col1
----
-47

query I rowsort
SELECT + 64 + - 4 * - 98 AS col2
----
456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3820
SELECT ALL - ( 28 ) - - MIN( ALL - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - ( 28 ) - - MIN ( ALL - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3821
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ), CASE + MAX( + + 85 ) WHEN 26 THEN 42 / + 1 - - + 36 WHEN + 61 / - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) THEN - 81 / + 25 * - - 9 + MIN( DISTINCT - 8 ) * + + COUNT( * ) + MIN( - COALESCE ( 10, - 49 / + 44 * - CAST( NULL AS DECIMAL ) ) ) - 69 * - 84 * + 93 * + 32 ELSE NULL END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3821
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ), CASE + MAX ( + + 85 ) WHEN 26 THEN 42 / + 1 - - + 36 WHEN + 61 / - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) THEN - 81 / + 25 * - - 9 + MIN ( DISTINCT - 8 ) * + + COUNT ( * ) + MIN ( - COALESCE ( 10, - 49 / + 44 * - CAST ( NULL AS REAL ) ) ) - 69 * - 84 * + 93 * + 32 ELSE NULL END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT - MAX( ALL - 51 ) AS col0, - 12 * + - 19
----
51
228

skipif mysql # not compatible
query II rowsort label-3822
SELECT - MAX ( ALL - 51 ) AS col0, - 12 * + - 19
----
51
228

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

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - COUNT ( * ) - + 53 AS col0
----
-54

query I rowsort
SELECT + 46 * + 38
----
1748

query II rowsort
SELECT + 39 + 14 AS col0, ( - 30 ) * 37 - 87
----
53
-1197

query I rowsort
SELECT ALL 10 * - 80 AS col0
----
-800

query I rowsort
SELECT + NULLIF ( 83, 1 ) + 69 AS col2
----
152

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

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL 21 / - 15
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3829
SELECT + 3 + - 47 * CAST( - 17 AS SIGNED ) * - CASE + - 53 WHEN SUM( - 27 ) * - ( 74 ) * + 98 THEN 2 - + 88 ELSE + COALESCE ( - 87, - - 70, ( - 32 ) ) * - 53 - - 78 * - 70 END + + 99 + - ( + + CAST( + 64 AS SIGNED ) ) * 83 + - - 31 - 45 * - 63 + - 72, + 9 DIV 70 DIV 66 + - 85 + - COALESCE ( - 25, ( - - 84 ) ) AS col0
----
675935
-60

skipif mysql # not compatible
query II rowsort label-3829
SELECT + 3 + - 47 * CAST ( - 17 AS INTEGER ) * - CASE + - 53 WHEN SUM ( - 27 ) * - ( 74 ) * + 98 THEN 2 - + 88 ELSE + COALESCE ( - 87, - - 70, ( - 32 ) ) * - 53 - - 78 * - 70 END + + 99 + - ( + + CAST ( + 64 AS INTEGER ) ) * 83 + - - 31 - 45 * - 63 + - 72, + 9 / 70 / 66 + - 85 + - COALESCE ( - 25, ( - - 84 ) ) AS col0
----
675935
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT + ( + 58 ) DIV - 26 col1
----
-2

skipif mysql # not compatible
query I rowsort label-3830
SELECT + ( + 58 ) / - 26 col1
----
-2

query I rowsort
SELECT DISTINCT 91 * 75
----
6825

query I rowsort
SELECT ALL 50 * - 72 * - 87
----
313200

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

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

query I rowsort
SELECT + + ( + - NULLIF ( + 57, - + 96 ) ) * + ( - - 24 )
----
-1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3835
SELECT - ( + - 73 ) / - - COALESCE ( - - 22, - 40, + 53 ) * COALESCE ( + - 18, + + 91 ) * 60 + - COALESCE ( + COUNT( * ), + 6 / + COALESCE ( 75, - - 66 ) + + + 34 ) - + - CAST( NULL AS SIGNED ) + + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT - ( + - 73 ) / - - COALESCE ( - - 22, - 40, + 53 ) * COALESCE ( + - 18, + + 91 ) * 60 + - COALESCE ( + COUNT ( * ), + 6 / + COALESCE ( 75, - - 66 ) + + + 34 ) - + - CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT CASE 25 WHEN + 16 THEN COUNT( * ) * - + SUM( DISTINCT - 42 ) / + - AVG ( ALL + ( + 74 ) ) * + 26 + - + 67 - + 33 * - - 61 * - 91 + - COUNT( * ) + - - 22 * ( COUNT( 17 ) ) / + 0 + - - 54 WHEN + 66 THEN + + 57 + - + ( - 59 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT CASE 25 WHEN + 16 THEN COUNT ( * ) * - + SUM ( DISTINCT - 42 ) / + - AVG ( ALL + ( + 74 ) ) * + 26 + - + 67 - + 33 * - - 61 * - 91 + - COUNT ( * ) + - - 22 * ( COUNT ( 17 ) ) / + 0 + - - 54 WHEN + 66 THEN + + 57 + - + ( - 59 ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 5 + - + 88
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT - 3 + + COUNT( - 39 ) * - 73 * + 93 AS col1, + 76
----
-6792
76

skipif mysql # not compatible
query II rowsort label-3838
SELECT - 3 + + COUNT ( - 39 ) * - 73 * + 93 AS col1, + 76
----
-6792
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT + MIN( - 79 ) AS col0, - 57 * + 37 * + + ( 32 ) AS col1
----
-79
-67488

skipif mysql # not compatible
query II rowsort label-3839
SELECT + MIN ( - 79 ) AS col0, - 57 * + 37 * + + ( 32 ) AS col1
----
-79
-67488

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT + 52 + - SUM( 49 ) * - 60
----
2992

skipif mysql # not compatible
query I rowsort label-3840
SELECT + 52 + - SUM ( 49 ) * - 60
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT CASE + - 46 WHEN - ( - CAST( - + 83 AS SIGNED ) ) * - + COUNT( ALL - 82 ) THEN NULL WHEN 55 * 72 + + MAX( ( - - ( + - 67 ) ) ) THEN + 88 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT CASE + - 46 WHEN - ( - CAST ( - + 83 AS INTEGER ) ) * - + COUNT ( ALL - 82 ) THEN NULL WHEN 55 * 72 + + MAX ( ( - - ( + - 67 ) ) ) THEN + 88 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT DISTINCT + + 35 + - 94 DIV + 81
----
34

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT + + 35 + - 94 / + 81
----
34

query I rowsort
SELECT ALL - - 72 + - 77
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT - 19 * + - COUNT( * ) AS col2, COUNT( * ) * - - ( + - 84 ) AS col1
----
19
-84

skipif mysql # not compatible
query II rowsort label-3844
SELECT - 19 * + - COUNT ( * ) AS col2, COUNT ( * ) * - - ( + - 84 ) AS col1
----
19
-84

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

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

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - 17 - COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT - 41 + + - 91 AS col2
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT - ( + 63 ) DIV - 3 + ( + 49 ) * - 76
----
-3703

skipif mysql # not compatible
query I rowsort label-3848
SELECT - ( + 63 ) / - 3 + ( + 49 ) * - 76
----
-3703

query II rowsort
SELECT - 27 AS col0, + 20 AS col1
----
-27
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT 39 - + ( 54 ) + - COUNT( * ) * + 49 + 21 - + 9
----
-52

skipif mysql # not compatible
query I rowsort label-3850
SELECT 39 - + ( 54 ) + - COUNT ( * ) * + 49 + 21 - + 9
----
-52

query I rowsort
SELECT 48 - + 38
----
10

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

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL CAST ( NULL AS REAL ) - + - 58 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 36 AS col1, + 85
----
36
85

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

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

query I rowsort
SELECT 83 - 28 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + 95 * CASE 73 WHEN + - 53 THEN - - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + 95 * CASE 73 WHEN + - 53 THEN - - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 54 * + 51 AS col2
----
2754

query I rowsort
SELECT DISTINCT + 77 * - 95 AS col2
----
-7315

query I rowsort
SELECT 73 + 70
----
143

query I rowsort
SELECT DISTINCT 9 + + 26
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT DISTINCT + 77 * - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + 77 * - COUNT ( * ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL 44 + + - 17 - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL 44 + + - 17 - - COUNT ( * )
----
28

query I rowsort
SELECT ALL + 59 + - 26 AS col0
----
33

query I rowsort
SELECT DISTINCT - 5 + 32
----
27

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

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL ( + ( COUNT ( * ) ) ) + - 37 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL - COUNT( * ) + + 88
----
87

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL - COUNT ( * ) + + 88
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT - COUNT( * ) / - CASE + - 71 WHEN + ( - 65 ) * + + MAX( - 66 ) * 55 THEN NULL WHEN - - COUNT( * ) - + + 24 + - 7 + - CAST( 60 AS SIGNED ) THEN 34 * 29 + - + 31 END * + + 75 + - AVG ( DISTINCT - - ( + ( - 40 ) ) ) + + 54 * + - NULLIF ( + - ( - - 14 ), 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT - COUNT ( * ) / - CASE + - 71 WHEN + ( - 65 ) * + + MAX ( - 66 ) * 55 THEN NULL WHEN - - COUNT ( * ) - + + 24 + - 7 + - CAST ( 60 AS INTEGER ) THEN 34 * 29 + - + 31 END * + + 75 + - AVG ( DISTINCT - - ( + ( - 40 ) ) ) + + 54 * + - NULLIF ( + - ( - - 14 ), 85 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT + - 17 * - 79 - + 34 - + + 4 + COUNT( * ) + + 61 * - - MAX( + + NULLIF ( - + NULLIF ( + 47, + + 56 / + + 69 + - 13 * + 79 ), 50 ) ) * 63 AS col1, 46 AS col1
----
-179315
46

skipif mysql # not compatible
query II rowsort label-3868
SELECT + - 17 * - 79 - + 34 - + + 4 + COUNT ( * ) + + 61 * - - MAX ( + + NULLIF ( - + NULLIF ( + 47, + + 56 / + + 69 + - 13 * + 79 ), 50 ) ) * 63 AS col1, 46 AS col1
----
-179315
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT + COUNT( * ) * - + ( - 25 ) * + 87 AS col1
----
2175

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT + COUNT ( * ) * - + ( - 25 ) * + 87 AS col1
----
2175

query I rowsort
SELECT 68 * NULLIF ( + 1, ( 70 ) ) + 16 AS col0
----
84

query I rowsort
SELECT ALL + 99 * + 7 + ( 93 )
----
786

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT + 80 - + + 61 DIV - 59 + + 80 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + 80 - + + 61 / - 59 + + 80 AS col1
----
161

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3877
SELECT ALL + NULLIF ( ( - 88 ), 56 * + COUNT( * ) + - 48 + + 53 ) - - 88, 18 AS col1
----
0
18

skipif mysql # not compatible
query II rowsort label-3877
SELECT ALL + NULLIF ( ( - 88 ), 56 * + COUNT ( * ) + - 48 + + 53 ) - - 88, 18 AS col1
----
0
18

query I rowsort
SELECT + 56 * + 23 AS col0
----
1288

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3880
SELECT + COALESCE ( + + COALESCE ( MAX( DISTINCT 90 ), + COALESCE ( 6, - - 67 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) ) - - 81 ), 45 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3880
SELECT + COALESCE ( + + COALESCE ( MAX ( DISTINCT 90 ), + COALESCE ( 6, - - 67 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) ) - - 81 ), 45 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3881
SELECT 51 + - ( - + 90 ) + - ( - CAST( NULL AS SIGNED ) ) - CASE + - 70 WHEN + + 32 THEN 12 END * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT 51 + - ( - + 90 ) + - ( - CAST ( NULL AS INTEGER ) ) - CASE + - 70 WHEN + + 32 THEN 12 END * + 60 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT CAST( NULL AS SIGNED ) * - 38 * + + 12 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT CAST ( NULL AS INTEGER ) * - 38 * + + 12 col0
----
NULL

query II rowsort
SELECT ( + 28 ) * + 54 * + + 29 AS col1, + 41
----
43848
41

query I rowsort
SELECT 48 + - - 88 + 10 + + 47 + + + 23 AS col1
----
216

query II rowsort
SELECT ALL + 62 * + 74 AS col2, - 69 col1
----
4588
-69

query I rowsort
SELECT ALL + 53 * - + 67 AS col1
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT 46 * + MAX( ALL + 49 )
----
2254

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT 46 * + MAX ( ALL + 49 )
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL MIN( ALL - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL MIN ( ALL - - 28 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT 83 + + 72 + - 22 DIV NULLIF ( - 15, AVG ( 40 ) * + 10 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-3890
SELECT 83 + + 72 + - 22 / NULLIF ( - 15, AVG ( 40 ) * + 10 ) AS col1
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT 90 DIV + + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3891
SELECT 90 / + + 9 AS col0
----
10

query I rowsort
SELECT 93 + - 1 + + 7 - - + 38 - + 50 AS col2
----
87

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

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

query I rowsort
SELECT ALL + 90 + + 45 AS col1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT CASE + 68 WHEN - 27 THEN - 79 END + + CAST( - + 62 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT CASE + 68 WHEN - 27 THEN - 79 END + + CAST ( - + 62 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 73 * 50 AS col2
----
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT - COUNT( * ) + - - 6 * + + 52 - 94
----
217

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT - COUNT ( * ) + - - 6 * + + 52 - 94
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL MIN( - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL MIN ( - 93 )
----
-93

query I rowsort
SELECT ALL 38 + 11
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3900
SELECT ALL - 0 + + + ( 42 ) + + 6 * + 12 + 99 * + 40 + + MAX( ALL + 31 ) + + - 27 DIV ( + 23 )
----
4104

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - 0 + + + ( 42 ) + + 6 * + 12 + 99 * + 40 + + MAX ( ALL + 31 ) + + - 27 / ( + 23 )
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - 26 + - MAX( DISTINCT - 41 ) + - 28 * - 39 AS col0
----
1107

skipif mysql # not compatible
query I rowsort label-3901
SELECT - 26 + - MAX ( DISTINCT - 41 ) + - 28 * - 39 AS col0
----
1107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT - 19 + - CAST( + 80 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - 19 + - CAST ( + 80 AS INTEGER )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL - MIN( ALL - 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - MIN ( ALL - 39 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3904
SELECT - - COUNT( ALL 15 ) + - - COUNT( * ) * - - 54 AS col1, + 97 AS col1
----
55
97

skipif mysql # not compatible
query II rowsort label-3904
SELECT - - COUNT ( ALL 15 ) + - - COUNT ( * ) * - - 54 AS col1, + 97 AS col1
----
55
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - - 72 + + - ( + 13 ) + + + CASE - 24 WHEN + 38 + - + 90 + - 81 THEN NULL ELSE - 78 * - MAX( DISTINCT - 25 ) * + - ( COUNT( * ) ) * + 1 + - 4 + + 75 + + 53 END * 15
----
31169

skipif mysql # not compatible
query I rowsort label-3905
SELECT - - 72 + + - ( + 13 ) + + + CASE - 24 WHEN + 38 + - + 90 + - 81 THEN NULL ELSE - 78 * - MAX ( DISTINCT - 25 ) * + - ( COUNT ( * ) ) * + 1 + - 4 + + 75 + + 53 END * 15
----
31169

query I rowsort
SELECT ALL + - 93 * + 57
----
-5301

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT - 76 DIV + 27 - + 0 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3907
SELECT - 76 / + 27 - + 0 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT 22 * - 98 * - CAST( NULL AS SIGNED ) + ( - 21 ) * - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT 22 * - 98 * - CAST ( NULL AS INTEGER ) + ( - 21 ) * - 98 AS col2
----
NULL

query I rowsort
SELECT ALL + - 74 * - 43 - + - 66 AS col0
----
3248

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

query I rowsort
SELECT ALL + - 1 * + + 98 + - 83 + + 21 * 97
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT + + COUNT( DISTINCT 58 ) + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-3912
SELECT + + COUNT ( DISTINCT 58 ) + - 22
----
-21

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

query I rowsort
SELECT + - 81 + - 88
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT - - COUNT( + - 80 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT - - COUNT ( + - 80 ) / - 44
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT ALL - 26 * - CAST( + MIN( - 54 ) AS SIGNED ) + 13 * + 15 AS col2
----
-1209

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - 26 * - CAST ( + MIN ( - 54 ) AS INTEGER ) + 13 * + 15 AS col2
----
-1209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT 15 * + 53 + - CAST( 97 AS SIGNED ) * - - ( - - 36 ) AS col0
----
-2697

skipif mysql # not compatible
query I rowsort label-3918
SELECT 15 * + 53 + - CAST ( 97 AS INTEGER ) * - - ( - - 36 ) AS col0
----
-2697

query I rowsort
SELECT ALL 20 * - 38 AS col0
----
-760

query I rowsort
SELECT + 90 * 19 AS col2
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + 5 * COUNT( * ) * + SUM( 73 )
----
365

skipif mysql # not compatible
query I rowsort label-3921
SELECT + 5 * COUNT ( * ) * + SUM ( 73 )
----
365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3922
SELECT + COALESCE ( + MAX( DISTINCT 77 ), + CASE COUNT( * ) WHEN 15 THEN NULL WHEN - - 68 + 28 * - + COUNT( * ) THEN NULL ELSE 45 DIV + 26 + - 13 * - + 39 * - - CAST( 40 AS SIGNED ) * + + 93 END * + + 35 * - - 25 ) AS col0, 85 * + 99 * - 80
----
77
-673200

skipif mysql # not compatible
query II rowsort label-3922
SELECT + COALESCE ( + MAX ( DISTINCT 77 ), + CASE COUNT ( * ) WHEN 15 THEN NULL WHEN - - 68 + 28 * - + COUNT ( * ) THEN NULL ELSE 45 / + 26 + - 13 * - + 39 * - - CAST ( 40 AS INTEGER ) * + + 93 END * + + 35 * - - 25 ) AS col0, 85 * + 99 * - 80
----
77
-673200

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT COUNT( DISTINCT - 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3923
SELECT COUNT ( DISTINCT - 21 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL 5 * + 21 * + + CASE - 48 WHEN + 99 THEN NULL WHEN - 56 * - 51 THEN + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL 5 * + 21 * + + CASE - 48 WHEN + 99 THEN NULL WHEN - 56 * - 51 THEN + - CAST ( NULL AS INTEGER ) END
----
NULL

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

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

query I rowsort
SELECT + 96 * 11 - + 59 AS col1
----
997

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT + COUNT( * ) - + + COUNT( * ) + - COUNT( * ) - - + 99 * - 78 + - MAX( DISTINCT 34 )
----
-7757

skipif mysql # not compatible
query I rowsort label-3927
SELECT + COUNT ( * ) - + + COUNT ( * ) + - COUNT ( * ) - - + 99 * - 78 + - MAX ( DISTINCT 34 )
----
-7757

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

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

query I rowsort
SELECT + 15 - - 32
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT ALL 27 * + 33 * + - 67 AS col1, COUNT( * )
----
-59697
1

skipif mysql # not compatible
query II rowsort label-3930
SELECT ALL 27 * + 33 * + - 67 AS col1, COUNT ( * )
----
-59697
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT ALL 98 + CAST( + 3 AS SIGNED ) - - 77 AS col1
----
178

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL 98 + CAST ( + 3 AS INTEGER ) - - 77 AS col1
----
178

query I rowsort
SELECT - ( 56 ) col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT ALL + 59 + - MAX( ALL + - 52 ) + - - MAX( + 86 ) * CASE - 27 WHEN - 5 + - - 80 / - 97 * - 19 * - + 55 THEN - AVG ( DISTINCT - 51 ) WHEN - CASE - + 59 WHEN + 36 THEN - - 45 * COUNT( ALL + - 44 ) + + - 19 END * COUNT( DISTINCT 10 ) + - 59 THEN + + 5 * CAST( NULL AS SIGNED ) * - 26 END * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL + 59 + - MAX ( ALL + - 52 ) + - - MAX ( + 86 ) * CASE - 27 WHEN - 5 + - - 80 / - 97 * - 19 * - + 55 THEN - AVG ( DISTINCT - 51 ) WHEN - CASE - + 59 WHEN + 36 THEN - - 45 * COUNT ( ALL + - 44 ) + + - 19 END * COUNT ( DISTINCT 10 ) + - 59 THEN + + 5 * CAST ( NULL AS INTEGER ) * - 26 END * + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( 95 ) + + 21 * 87 * - - 78
----
142411

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

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

query I rowsort
SELECT ALL 91 * + 8 AS col1
----
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3937
SELECT - 3 DIV + 40 * + - 30 * + - ( - 85 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT - 3 / + 40 * + - 30 * + - ( - 85 ) * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT - 62 - 42 + 39 + - 49 + 94 DIV - + COUNT( * ) AS col1
----
-208

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 62 - 42 + 39 + - 49 + 94 / - + COUNT ( * ) AS col1
----
-208

query II rowsort
SELECT - ( - ( 12 ) ), COALESCE ( + COALESCE ( ( + + 51 ), 66 + + + 49, - CASE + 41 WHEN - - 12 THEN NULL ELSE 8 - 64 + - 10 * - 4 END * - + 50 ), - 53, - NULLIF ( + + 70, + 92 ) + + 2 ) AS col1
----
12
51

query I rowsort
SELECT + 49 * + 13
----
637

query I rowsort
SELECT - 55 * 53 AS col0
----
-2915

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT DISTINCT + 42 - MAX( ALL 38 + 12 * + 63 )
----
-752

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + 42 - MAX ( ALL 38 + 12 * + 63 )
----
-752

query I rowsort
SELECT + 26 + 68 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT ALL - 70 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - 70 / 79 AS col0
----
0

query I rowsort
SELECT - 19 * 32
----
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT CASE - COUNT( * ) WHEN COUNT( * ) + ( + CASE + CASE - 89 WHEN COUNT( * ) + 51 THEN + 34 * 96 + 2 END WHEN 7 THEN NULL ELSE + 78 * - ( 10 ) - + COUNT( * ) END ) THEN - 35 WHEN - 1 THEN - 32 + 95 * - 24 END - + COUNT( * )
----
-2313

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT CASE - COUNT ( * ) WHEN COUNT ( * ) + ( + CASE + CASE - 89 WHEN COUNT ( * ) + 51 THEN + 34 * 96 + 2 END WHEN 7 THEN NULL ELSE + 78 * - ( 10 ) - + COUNT ( * ) END ) THEN - 35 WHEN - 1 THEN - 32 + 95 * - 24 END - + COUNT ( * )
----
-2313

query I rowsort
SELECT DISTINCT ( + NULLIF ( 68, 39 ) ) AS col1
----
68

query I rowsort
SELECT ALL + 97 * - 91 col0
----
-8827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT COUNT( * ) DIV 32 - 56 col2
----
-56

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT COUNT ( * ) / 32 - 56 col2
----
-56

query I rowsort
SELECT + 83 + - 78 AS col1
----
5

query I rowsort
SELECT - 60 * + 29
----
-1740

query I rowsort
SELECT ALL - ( 79 ) * - 59
----
4661

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT 61 * COUNT( * ) - + 12 col1
----
49

skipif mysql # not compatible
query I rowsort label-3953
SELECT 61 * COUNT ( * ) - + 12 col1
----
49

query I rowsort
SELECT - 83 * 32
----
-2656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3955
SELECT - COALESCE ( - 73, 99 + NULLIF ( 99, 41 ) ) / 66 + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COALESCE ( - 73, 99 + NULLIF ( 99, 41 ) ) / 66 + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3956
SELECT ALL + COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) * 88 - 86 * 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) * 88 - 86 * 68 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT + SUM( DISTINCT 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT + SUM ( DISTINCT 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL + CASE - 25 WHEN NULLIF ( - COUNT( + 21 ), - 50 - - 98 ) THEN NULL WHEN - 26 THEN + 88 WHEN ( 23 ) THEN NULL ELSE - 0 END
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL + CASE - 25 WHEN NULLIF ( - COUNT ( + 21 ), - 50 - - 98 ) THEN NULL WHEN - 26 THEN + 88 WHEN ( 23 ) THEN NULL ELSE - 0 END
----
0

query I rowsort
SELECT DISTINCT - ( 95 ) * 74 col2
----
-7030

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT - 82 DIV 73 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3960
SELECT - 82 / 73 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT ALL SUM( ALL 72 ) DIV 83 + 37
----
37

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL SUM ( ALL 72 ) / 83 + 37
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT CAST( + 70 AS SIGNED ) * + 40 - CAST( - 75 AS SIGNED ) AS col1
----
2875

skipif mysql # not compatible
query I rowsort label-3962
SELECT CAST ( + 70 AS INTEGER ) * + 40 - CAST ( - 75 AS INTEGER ) AS col1
----
2875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT - SUM( ALL + 93 ) + + CAST( 10 - 8 * - 91 AS SIGNED )
----
645

skipif mysql # not compatible
query I rowsort label-3963
SELECT - SUM ( ALL + 93 ) + + CAST ( 10 - 8 * - 91 AS INTEGER )
----
645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3964
SELECT + 93 * 34 + MIN( ALL 69 + 95 DIV 32 ) AS col0
----
3233

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 93 * 34 + MIN ( ALL 69 + 95 / 32 ) AS col0
----
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL 11 * - NULLIF ( 51, - 83 + MIN( 11 ) ) + - COUNT( ALL - 17 )
----
-562

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL 11 * - NULLIF ( 51, - 83 + MIN ( 11 ) ) + - COUNT ( ALL - 17 )
----
-562

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT - 63 + + MIN( + 5 )
----
-58

skipif mysql # not compatible
query I rowsort label-3966
SELECT - 63 + + MIN ( + 5 )
----
-58

query I rowsort
SELECT + 28 * 42
----
1176

query I rowsort
SELECT + 30 * 73 + 82
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + 45 - + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3969
SELECT + 45 - + COUNT ( * ) AS col0
----
44

query I rowsort
SELECT DISTINCT ( - ( + 65 ) ) * - 30 + 96 AS col2
----
2046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT + COALESCE ( CAST( + 50 AS SIGNED ), + 44 * - 90 )
----
50

skipif mysql # not compatible
query I rowsort label-3971
SELECT + COALESCE ( CAST ( + 50 AS INTEGER ), + 44 * - 90 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT COUNT( * ) + ( 70 ) DIV 20 col2
----
4

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT COUNT ( * ) + ( 70 ) / 20 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT DISTINCT + 18 + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT + 18 + + COUNT ( * )
----
19

query I rowsort
SELECT 73 * + 58 + - 5
----
4229

query I rowsort
SELECT COALESCE ( - 64, + 31 ) + 1 * 60 AS col2
----
-4

query I rowsort
SELECT 8 * 2
----
16

query I rowsort
SELECT 68 * + 63
----
4284

query I rowsort
SELECT DISTINCT ( 64 ) * 20 AS col1
----
1280

query I rowsort
SELECT ALL - - 26 * 69
----
1794

query I rowsort
SELECT 78 + 78 AS col2
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT - + CAST( + CASE 5 WHEN 12 / 65 - - 25 THEN NULL WHEN 60 THEN ( 91 ) / + 79 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT - + CAST ( + CASE 5 WHEN 12 / 65 - - 25 THEN NULL WHEN 60 THEN ( 91 ) / + 79 END AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT 26 * MAX( 44 ) AS col1
----
1144

skipif mysql # not compatible
query I rowsort label-3983
SELECT 26 * MAX ( 44 ) AS col1
----
1144

query I rowsort
SELECT 70 + ( - 91 + + NULLIF ( - 50, 60 ) ) * ( + 24 * - 89 ) AS col0
----
301246

query I rowsort
SELECT ALL 52 * - 53 AS col0
----
-2756

query I rowsort
SELECT - 27 * + 22
----
-594

query I rowsort
SELECT + 36 + 15 AS col2
----
51

query I rowsort
SELECT ALL - COALESCE ( - 45, 37 * 31 ) AS col2
----
45

query I rowsort
SELECT ( - 11 ) * + 90
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT SUM( + 68 ) * + 32 AS col2
----
2176

skipif mysql # not compatible
query I rowsort label-3990
SELECT SUM ( + 68 ) * + 32 AS col2
----
2176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT - 37 DIV 75 + + SUM( + 73 + 66 DIV 91 ) * 11 AS col1
----
803

skipif mysql # not compatible
query I rowsort label-3991
SELECT - 37 / 75 + + SUM ( + 73 + 66 / 91 ) * 11 AS col1
----
803

query I rowsort
SELECT DISTINCT - - ( 30 )
----
30

query I rowsort
SELECT ALL + 43 + 30 * - 33 AS col0
----
-947

query I rowsort
SELECT - 85 + 61
----
-24

query I rowsort
SELECT DISTINCT - 49 + - COALESCE ( + 32, - 59 * - 1 )
----
-81

query I rowsort
SELECT 73 * - ( + 7 )
----
-511

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3997
SELECT 68 DIV - - COALESCE ( COALESCE ( 66, + ( + ( + 56 ) ) * + 91 ), - 37 * 5 ) * COUNT( * ) + 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-3997
SELECT 68 / - - COALESCE ( COALESCE ( 66, + ( + ( + 56 ) ) * + 91 ), - 37 * 5 ) * COUNT ( * ) + 65 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT ALL - 31 * - COUNT( * ) * 24
----
744

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL - 31 * - COUNT ( * ) * 24
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3999
SELECT DISTINCT 63 + - CASE 79 WHEN + CAST( NULL AS SIGNED ) THEN 9 WHEN CASE 40 WHEN - 54 THEN NULL ELSE 9 END THEN NULL WHEN NULLIF ( 94, - 95 - ( - 23 + 97 ) ) * COUNT( * ) THEN 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT 63 + - CASE 79 WHEN + CAST ( NULL AS INTEGER ) THEN 9 WHEN CASE 40 WHEN - 54 THEN NULL ELSE 9 END THEN NULL WHEN NULLIF ( 94, - 95 - ( - 23 + 97 ) ) * COUNT ( * ) THEN 83 END AS col1
----
NULL

query I rowsort
SELECT ALL + 4 + - 67 * 13 AS col0
----
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL - 5 + - + COUNT( - 37 ) + ( + 96 + + 48 )
----
138

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - 5 + - + COUNT ( - 37 ) + ( + 96 + + 48 )
----
138

query I rowsort
SELECT 99 * 1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL 80 + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL 80 + - COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT COUNT( * ) + - + 78 * 58 AS col1
----
-4523

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT COUNT ( * ) + - + 78 * 58 AS col1
----
-4523

query I rowsort
SELECT 15 + - 13
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT 18 DIV - + 2
----
-9

skipif mysql # not compatible
query I rowsort label-4006
SELECT 18 / - + 2
----
-9

query I rowsort
SELECT 89 * + + ( - 7 )
----
-623

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT COUNT( * ) * - + 4 col2
----
-4

skipif mysql # not compatible
query I rowsort label-4008
SELECT COUNT ( * ) * - + 4 col2
----
-4

query I rowsort
SELECT ALL - 42 - 80 * + 86
----
-6922

query I rowsort
SELECT 98 - - 66 + + 11 AS col2
----
175

query I rowsort
SELECT 8 - + 40 - ( + 97 ) * + 86
----
-8374

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT NULLIF ( - 71, + 18 + 54 ) DIV + 6
----
-11

skipif mysql # not compatible
query I rowsort label-4012
SELECT NULLIF ( - 71, + 18 + 54 ) / + 6
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL COALESCE ( - - 45, COUNT( 77 ) ) * 20
----
900

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL COALESCE ( - - 45, COUNT ( 77 ) ) * 20
----
900

query I rowsort
SELECT 14 * 86 AS col0
----
1204

onlyif mysql # DIV for integer division: 
query I rowsort label-4015
SELECT ALL + 97 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + 97 / - 59
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL - CAST( + - SUM( DISTINCT 19 ) AS SIGNED ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - CAST ( + - SUM ( DISTINCT 19 ) AS INTEGER ) AS col2
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4017
SELECT ALL + 54 * - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + 54 * - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT 62 - + - 29 + 12 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT 62 - + - 29 + 12 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT - - MIN( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4019
SELECT - - MIN ( DISTINCT + 76 )
----
76

query I rowsort
SELECT ALL + 63 * - - 18
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT + 24 + - MIN( 64 )
----
-40

skipif mysql # not compatible
query I rowsort label-4021
SELECT + 24 + - MIN ( 64 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL + CASE - 92 WHEN + 60 THEN NULL WHEN 14 * COUNT( * ) THEN - 87 - COUNT( * ) ELSE 29 + 39 END
----
68

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + CASE - 92 WHEN + 60 THEN NULL WHEN 14 * COUNT ( * ) THEN - 87 - COUNT ( * ) ELSE 29 + 39 END
----
68

query I rowsort
SELECT ALL 86 + 45 + 2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + COUNT( ALL - 38 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + COUNT ( ALL - 38 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL COUNT( * ) + - - COALESCE ( + 91, 85, 87 * + 68 ) - COUNT( * ) col1
----
91

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL COUNT ( * ) + - - COALESCE ( + 91, 85, 87 * + 68 ) - COUNT ( * ) col1
----
91

query I rowsort
SELECT DISTINCT + - 56 + - - 91
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL NULLIF ( - + 8, - CASE 0 WHEN + 55 * + 83 + SUM( + 46 + + 30 * 5 ) THEN 83 WHEN + 17 * 47 - + 8 THEN 25 / - 43 ELSE NULL END ) * NULLIF ( COUNT( * ), - 6 ) + + 52
----
44

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL NULLIF ( - + 8, - CASE 0 WHEN + 55 * + 83 + SUM ( + 46 + + 30 * 5 ) THEN 83 WHEN + 17 * 47 - + 8 THEN 25 / - 43 ELSE NULL END ) * NULLIF ( COUNT ( * ), - 6 ) + + 52
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT + COUNT( * ) - 29 + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4028
SELECT + COUNT ( * ) - 29 + - COUNT ( * )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT COUNT( * ) * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT COUNT ( * ) * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT NULLIF ( - 39, + 64 / CASE 11 WHEN - 44 THEN + 22 WHEN - 50 THEN - 28 / + COUNT( * ) END )
----
-39

skipif mysql # not compatible
query I rowsort label-4030
SELECT NULLIF ( - 39, + 64 / CASE 11 WHEN - 44 THEN + 22 WHEN - 50 THEN - 28 / + COUNT ( * ) END )
----
-39

query I rowsort
SELECT 9 * 76 AS col2
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT MAX( ALL 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4032
SELECT MAX ( ALL 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + MIN( DISTINCT + 97 ) * + ( 90 ) + 96 AS col2
----
8826

skipif mysql # not compatible
query I rowsort label-4033
SELECT + MIN ( DISTINCT + 97 ) * + ( 90 ) + 96 AS col2
----
8826

query I rowsort
SELECT ALL - 79 * 94 - - 65
----
-7361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT ALL COUNT( * ) DIV - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL COUNT ( * ) / - 40 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT 73 * 47 DIV + 44 + - 99 * 26 AS col0
----
-2497

skipif mysql # not compatible
query I rowsort label-4036
SELECT 73 * 47 / + 44 + - 99 * 26 AS col0
----
-2497

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL + NULLIF ( MAX( DISTINCT + + 42 ), 42 ) * - 53 - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + NULLIF ( MAX ( DISTINCT + + 42 ), 42 ) * - 53 - - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - 39 + MIN( + COALESCE ( ( - 54 ), + 26 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-4038
SELECT - 39 + MIN ( + COALESCE ( ( - 54 ), + 26 ) ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT + SUM( 58 ) * - 52 * - COUNT( * ) + - 90 AS col2
----
2926

skipif mysql # not compatible
query I rowsort label-4039
SELECT + SUM ( 58 ) * - 52 * - COUNT ( * ) + - 90 AS col2
----
2926

query I rowsort
SELECT - 56 * 7 AS col2
----
-392

query I rowsort
SELECT ALL + NULLIF ( + 98, 31 ) * - 41 col2
----
-4018

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT 10 * - 4 * 39 + COUNT( * )
----
-1559

skipif mysql # not compatible
query I rowsort label-4042
SELECT 10 * - 4 * 39 + COUNT ( * )
----
-1559

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT - 32 - + 46 DIV 26 - - 50 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4043
SELECT - 32 - + 46 / 26 - - 50 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT + CAST( + 6 AS SIGNED ) * + 78
----
468

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT + CAST ( + 6 AS INTEGER ) * + 78
----
468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4045
SELECT - 3 + + + 93 - + MIN( 31 ) DIV + 36 * 99 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4045
SELECT - 3 + + + 93 - + MIN ( 31 ) / + 36 * 99 AS col2
----
90

query II rowsort
SELECT DISTINCT + 56 AS col2, - 63 * + + 39
----
56
-2457

query I rowsort
SELECT ALL COALESCE ( + 90, - 41 - + 67, ( - 49 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - COUNT( * ) + + 93 + + 71
----
163

skipif mysql # not compatible
query I rowsort label-4048
SELECT - COUNT ( * ) + + 93 + + 71
----
163

query I rowsort
SELECT - - 98 * - NULLIF ( 13, 66 ) * - 2 col2
----
2548

query I rowsort
SELECT - - ( - 32 )
----
-32

query I rowsort
SELECT - 91 + + 21
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT - 21, ( + + 28 ) * 90 + - COALESCE ( + MIN( - 92 ), 76 - + 87, 62 * - 6 ) AS col2
----
-21
2612

skipif mysql # not compatible
query II rowsort label-4052
SELECT - 21, ( + + 28 ) * 90 + - COALESCE ( + MIN ( - 92 ), 76 - + 87, 62 * - 6 ) AS col2
----
-21
2612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL + COUNT( * ) / + 95 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL + COUNT ( * ) / + 95 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT - 4 + - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4054
SELECT - 4 + - COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT - 18 + + + NULLIF ( + COUNT( * ), 95 ) * + 52 col2
----
34

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 18 + + + NULLIF ( + COUNT ( * ), 95 ) * + 52 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT + COUNT( 95 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + COUNT ( 95 ) col2
----
1

query I rowsort
SELECT - + 71 + 7 + + 36
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4058
SELECT + 6 AS col2, + COUNT( * ) DIV + 9
----
6
0

skipif mysql # not compatible
query II rowsort label-4058
SELECT + 6 AS col2, + COUNT ( * ) / + 9
----
6
0

query I rowsort
SELECT ALL + 7 * - 60
----
-420

query I rowsort
SELECT DISTINCT - 49 + + + 91 + + - 14 + + 7 * 58 AS col1
----
434

onlyif mysql # DIV for integer division: 
query II rowsort label-4061
SELECT - - 25 AS col2, - 58 + - 20 DIV - 20
----
25
-57

skipif mysql # not compatible
query II rowsort label-4061
SELECT - - 25 AS col2, - 58 + - 20 / - 20
----
25
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - + COALESCE ( + ( + + 44 ), - 36 + + COUNT( * ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4062
SELECT - + COALESCE ( + ( + + 44 ), - 36 + + COUNT ( * ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + + COUNT( * ) + 89
----
90

skipif mysql # not compatible
query I rowsort label-4063
SELECT + + COUNT ( * ) + 89
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL - COUNT( * ) + + - CAST( - + COUNT( * ) AS SIGNED ) * + MIN( - ( 25 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - COUNT ( * ) + + - CAST ( - + COUNT ( * ) AS INTEGER ) * + MIN ( - ( 25 ) )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT + - 47 + - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT + - 47 + - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - NULLIF ( ( - 45 ), MIN( 99 ) ) * 83
----
3735

skipif mysql # not compatible
query I rowsort label-4066
SELECT - NULLIF ( ( - 45 ), MIN ( 99 ) ) * 83
----
3735

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + 90 + MAX( - - ( - 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-4067
SELECT + 90 + MAX ( - - ( - 45 ) )
----
45

query II rowsort
SELECT DISTINCT - 76 AS col2, 49 + - 20 AS col1
----
-76
29

query I rowsort
SELECT + 46 + 87 AS col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4070
SELECT + CAST( NULL AS SIGNED ) * - - 73, 13 * 79 DIV - 22 + + MIN( 81 ) AS col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-4070
SELECT + CAST ( NULL AS INTEGER ) * - - 73, 13 * 79 / - 22 + + MIN ( 81 ) AS col1
----
NULL
35

query I rowsort
SELECT ( ( + 61 ) ) AS col1
----
61

query II rowsort
SELECT + 87 + - + 22 AS col0, 20
----
65
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT - CAST( + 67 AS SIGNED ) * + - 65 AS col0
----
4355

skipif mysql # not compatible
query I rowsort label-4073
SELECT - CAST ( + 67 AS INTEGER ) * + - 65 AS col0
----
4355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT + ( + COALESCE ( 67, - CAST( NULL AS SIGNED ) + 68 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4074
SELECT + ( + COALESCE ( 67, - CAST ( NULL AS INTEGER ) + 68 ) ) AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT + COALESCE ( - 60, - - 95 DIV 74 + 90 DIV 20 ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-4075
SELECT + COALESCE ( - 60, - - 95 / 74 + 90 / 20 ) col0
----
-60

query II rowsort
SELECT ( - 79 ), + 94 AS col2
----
-79
94

query II rowsort
SELECT ( 97 ), - ( - + 39 ) + 63 AS col0
----
97
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT 91 * + + COALESCE ( - - 81, + 73 * + 93 + 39, 18 + + 62 * + COUNT( * ), 0 * 94 )
----
7371

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT 91 * + + COALESCE ( - - 81, + 73 * + 93 + 39, 18 + + 62 * + COUNT ( * ), 0 * 94 )
----
7371

query I rowsort
SELECT + 3 * 4 * - 50
----
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT ALL 15 DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL 15 / - 40 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT + 21 DIV - 7 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4081
SELECT + 21 / - 7 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT + CAST( + 0 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT + CAST ( + 0 AS INTEGER ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT DISTINCT 61 DIV - 67 * + - 80 * 70
----
0

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT 61 / - 67 * + - 80 * 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT - 22 + + COALESCE ( 11, - 76 + COALESCE ( 68, + 77 * + 10 ) * - 26, + 20 * - SUM( ALL + 30 ) + COUNT( * ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4084
SELECT - 22 + + COALESCE ( 11, - 76 + COALESCE ( 68, + 77 * + 10 ) * - 26, + 20 * - SUM ( ALL + 30 ) + COUNT ( * ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT - COUNT( * ) * - + MAX( DISTINCT - ( 70 ) ) + 75
----
5

skipif mysql # not compatible
query I rowsort label-4085
SELECT - COUNT ( * ) * - + MAX ( DISTINCT - ( 70 ) ) + 75
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + ( + + 25 ) - + MIN( DISTINCT - 76 )
----
101

skipif mysql # not compatible
query I rowsort label-4086
SELECT + ( + + 25 ) - + MIN ( DISTINCT - 76 )
----
101

query I rowsort
SELECT + 93 + COALESCE ( - 81, 11 + 13 ) + + 40
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT - CASE + NULLIF ( 28, 23 + 61 ) WHEN - COUNT( * ) THEN + COUNT( DISTINCT 62 ) + 65 ELSE - ( - 85 ) * - 29 + - NULLIF ( + 8, + 76 ) * 92 END AS col0
----
3201

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT - CASE + NULLIF ( 28, 23 + 61 ) WHEN - COUNT ( * ) THEN + COUNT ( DISTINCT 62 ) + 65 ELSE - ( - 85 ) * - 29 + - NULLIF ( + 8, + 76 ) * 92 END AS col0
----
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT COUNT( * ) * - 38 + - 46 + 64 + + 42
----
22

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT COUNT ( * ) * - 38 + - 46 + 64 + + 42
----
22

query II rowsort
SELECT DISTINCT - 69 * - 78 AS col0, - 98
----
5382
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - ( CASE + 10 WHEN + 2 THEN - 61 * COUNT( * ) WHEN + 90 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - ( CASE + 10 WHEN + 2 THEN - 61 * COUNT ( * ) WHEN + 90 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - + COUNT( * ) * 75
----
-75

skipif mysql # not compatible
query I rowsort label-4092
SELECT - + COUNT ( * ) * 75
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT DISTINCT COUNT( 40 ) col2, + 2
----
1
2

skipif mysql # not compatible
query II rowsort label-4093
SELECT DISTINCT COUNT ( 40 ) col2, + 2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT - 4 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT - 4 / - 77
----
0

query I rowsort
SELECT DISTINCT - + 97 - - - COALESCE ( + 22, + 96 ) AS col1
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT ALL - + 80 DIV 2 * - 29 AS col0
----
1160

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - + 80 / 2 * - 29 AS col0
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL - 72 - + CASE WHEN ( 4 ) <> - COUNT( * ) THEN - 37 * 50 ELSE - 30 END AS col2
----
1778

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - 72 - + CASE WHEN ( 4 ) <> - COUNT ( * ) THEN - 37 * 50 ELSE - 30 END AS col2
----
1778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4098
SELECT ALL + NULLIF ( - - 66, - ( CAST( NULL AS SIGNED ) ) + + MAX( DISTINCT 96 ) ) * - MAX( + 70 ) AS col2
----
-4620

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + NULLIF ( - - 66, - ( CAST ( NULL AS INTEGER ) ) + + MAX ( DISTINCT 96 ) ) * - MAX ( + 70 ) AS col2
----
-4620

onlyif mysql # aggregate syntax: 
query II rowsort label-4099
SELECT - 75 col1, MAX( ALL 44 ) AS col2
----
-75
44

skipif mysql # not compatible
query II rowsort label-4099
SELECT - 75 col1, MAX ( ALL 44 ) AS col2
----
-75
44

query I rowsort
SELECT 2 * - + 31
----
-62

query I rowsort
SELECT DISTINCT + 27 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT NULLIF ( + MAX( ALL - 99 ), + 55 ) * - + 2 + - ( COUNT( * ) ) AS col0
----
197

skipif mysql # not compatible
query I rowsort label-4102
SELECT NULLIF ( + MAX ( ALL - 99 ), + 55 ) * - + 2 + - ( COUNT ( * ) ) AS col0
----
197

query I rowsort
SELECT ( - 9 ) * - + 25 AS col0
----
225

onlyif mysql # DIV for integer division: 
query II rowsort label-4104
SELECT - 38 DIV + 12 + + 35 col2, NULLIF ( + 8, - 58 ) DIV 68
----
32
0

skipif mysql # not compatible
query II rowsort label-4104
SELECT - 38 / + 12 + + 35 col2, NULLIF ( + 8, - 58 ) / 68
----
32
0

query I rowsort
SELECT ALL + 10 * - 40
----
-400

query I rowsort
SELECT 14 * + 32 AS col0
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT DISTINCT 74 * - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT 74 * - COUNT ( * ) AS col0
----
-74

query I rowsort
SELECT 19 * - + ( - 9 ) + ( - - 57 ) AS col2
----
228

query I rowsort
SELECT ALL 9 * ( - + ( + 46 ) )
----
-414

query II rowsort
SELECT + 66, 60 * - 2 col0
----
66
-120

query I rowsort
SELECT 17 * 30 * ( - 26 )
----
-13260

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT 52 + COUNT( * ) * 43 col2
----
95

skipif mysql # not compatible
query I rowsort label-4112
SELECT 52 + COUNT ( * ) * 43 col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT ALL 89 + + - COUNT( - 10 ) * + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL 89 + + - COUNT ( - 10 ) * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT + COUNT( * ) * - 2 + - 28 - + 60 col2
----
-90

skipif mysql # not compatible
query I rowsort label-4114
SELECT + COUNT ( * ) * - 2 + - 28 - + 60 col2
----
-90

query I rowsort
SELECT ALL - - 8 + + 31
----
39

query I rowsort
SELECT DISTINCT 51 * - - 88
----
4488

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT ALL - COUNT( * ) + - MIN( ALL - 97 ) AS col1, - 26
----
96
-26

skipif mysql # not compatible
query II rowsort label-4117
SELECT ALL - COUNT ( * ) + - MIN ( ALL - 97 ) AS col1, - 26
----
96
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT 16 * 51 DIV 60 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4118
SELECT 16 * 51 / 60 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL - 60 * + + NULLIF ( - 21, MIN( DISTINCT 95 ) ) + 20 * 63 AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - 60 * + + NULLIF ( - 21, MIN ( DISTINCT 95 ) ) + 20 * 63 AS col1
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT 47 / CAST( NULL AS SIGNED ) + 41 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT 47 / CAST ( NULL AS INTEGER ) + 41 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT CASE - + 26 WHEN - 72 / - 55 THEN NULL WHEN - + COUNT( * ) - - 52 THEN 93 + + COALESCE ( 62, 64 * + 86, + 50 / + 16 ) * 99 ELSE NULL END + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT CASE - + 26 WHEN - 72 / - 55 THEN NULL WHEN - + COUNT ( * ) - - 52 THEN 93 + + COALESCE ( 62, 64 * + 86, + 50 / + 16 ) * 99 ELSE NULL END + 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT - - 49 AS col1, 38 * - - CASE MIN( DISTINCT 55 ) WHEN - COUNT( DISTINCT - 50 ) THEN + 64 * + 51 ELSE NULL END
----
49
NULL

skipif mysql # not compatible
query II rowsort label-4122
SELECT - - 49 AS col1, 38 * - - CASE MIN ( DISTINCT 55 ) WHEN - COUNT ( DISTINCT - 50 ) THEN + 64 * + 51 ELSE NULL END
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4123
SELECT COALESCE ( - 14, 16 * - 4 ) + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-4123
SELECT COALESCE ( - 14, 16 * - 4 ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4124
SELECT - MAX( - - 48 ) * 87 DIV - + NULLIF ( + 91, - 4 * 45 )
----
45

skipif mysql # not compatible
query I rowsort label-4124
SELECT - MAX ( - - 48 ) * 87 / - + NULLIF ( + 91, - 4 * 45 )
----
45

query II rowsort
SELECT 41, + 30 + - 59 + 43 AS col1
----
41
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT + 2 + - COUNT( * ) + + + ( 93 ) * 32 AS col2
----
2977

skipif mysql # not compatible
query I rowsort label-4126
SELECT + 2 + - COUNT ( * ) + + + ( 93 ) * 32 AS col2
----
2977

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT COUNT( ALL - 43 ) * - - 52 col0
----
52

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT COUNT ( ALL - 43 ) * - - 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL - 64 * COUNT( - 45 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - 64 * COUNT ( - 45 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT 9 AS col2, + COUNT( * ) + + - 13 AS col2
----
9
-12

skipif mysql # not compatible
query II rowsort label-4129
SELECT 9 AS col2, + COUNT ( * ) + + - 13 AS col2
----
9
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4130
SELECT 8 + + MAX( ALL + + 73 ) + + COUNT( * ) DIV + 98 - - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4130
SELECT 8 + + MAX ( ALL + + 73 ) + + COUNT ( * ) / + 98 - - COUNT ( * ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4131
SELECT ALL 77, CAST( NULL AS SIGNED ) AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-4131
SELECT ALL 77, CAST ( NULL AS INTEGER ) AS col2
----
77
NULL

query I rowsort
SELECT 82 * + 39 * - 91 * + 12 AS col1
----
-3492216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT 18 + 9 + - 9 + - - CAST( NULL AS SIGNED ) + - 12 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT 18 + 9 + - 9 + - - CAST ( NULL AS INTEGER ) + - 12 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT - COUNT( * ) AS col1, 68 * + - 81 AS col2
----
-1
-5508

skipif mysql # not compatible
query II rowsort label-4134
SELECT - COUNT ( * ) AS col1, 68 * + - 81 AS col2
----
-1
-5508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4135
SELECT 27 + 19 col2, CASE - 55 WHEN 99 * 68 * 2 THEN NULL WHEN - 78 THEN NULLIF ( 63, + ( - 34 ) * CAST( - ( - AVG ( + 64 ) ) * 98 AS SIGNED ) ) * SUM( + 84 + 15 ) END * 0 + 84 AS col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4135
SELECT 27 + 19 col2, CASE - 55 WHEN 99 * 68 * 2 THEN NULL WHEN - 78 THEN NULLIF ( 63, + ( - 34 ) * CAST ( - ( - AVG ( + 64 ) ) * 98 AS INTEGER ) ) * SUM ( + 84 + 15 ) END * 0 + 84 AS col0
----
46
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4136
SELECT 37 DIV + 40 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT 37 / + 40 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL - COUNT( * ) * - ( + + CASE - - 88 WHEN - AVG ( - + 19 ) * 85 - - COUNT( * ) THEN + 67 ELSE + 43 END ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - COUNT ( * ) * - ( + + CASE - - 88 WHEN - AVG ( - + 19 ) * 85 - - COUNT ( * ) THEN + 67 ELSE + 43 END ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT DISTINCT 51 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT 51 / - 28
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4139
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) * + 61 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) * + 61 * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4140
SELECT 27 DIV + ( + + 76 ) * COUNT( * ) AS col1, - 59 - - - 8 - 56 * + 16
----
0
-963

skipif mysql # not compatible
query II rowsort label-4140
SELECT 27 / + ( + + 76 ) * COUNT ( * ) AS col1, - 59 - - - 8 - 56 * + 16
----
0
-963

query II rowsort
SELECT + 7, 16 AS col1
----
7
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT 17 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT 17 / 97 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( - 34 ) + + 24
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL - MIN( DISTINCT - 54 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL - MIN ( DISTINCT - 54 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT 64, MIN( - 33 ) AS col0
----
64
-33

skipif mysql # not compatible
query II rowsort label-4145
SELECT 64, MIN ( - 33 ) AS col0
----
64
-33

query I rowsort
SELECT + 75 * + - 38
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - 86 + + 43 + 58 * - + COUNT( - - 40 ) AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - 86 + + 43 + 58 * - + COUNT ( - - 40 ) AS col2
----
-101

query II rowsort
SELECT + 23, 25 AS col0
----
23
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT 23 * - - SUM( DISTINCT + 23 ) * 67 - + 15 + + - ( 28 )
----
35400

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT 23 * - - SUM ( DISTINCT + 23 ) * 67 - + 15 + + - ( 28 )
----
35400

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT - - COUNT( * ) + + + 44 + - 1 + 10 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT - - COUNT ( * ) + + + 44 + - 1 + 10 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT COUNT( * ) * + COUNT( * ) / + 52 * - + 36 + + ( + + 82 ) - - CAST( NULL AS SIGNED ) / - 87 * 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT COUNT ( * ) * + COUNT ( * ) / + 52 * - + 36 + + ( + + 82 ) - - CAST ( NULL AS INTEGER ) / - 87 * 62 AS col2
----
NULL

query I rowsort
SELECT - 11 * COALESCE ( + - 12, 65, - ( - 14 ) )
----
132

query I rowsort
SELECT ALL - ( 43 ) * - 30 + - ( - 50 )
----
1340

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT + + 18 AS col0, - COUNT( * ) + - - 38 + + ( + 88 )
----
18
125

skipif mysql # not compatible
query II rowsort label-4154
SELECT + + 18 AS col0, - COUNT ( * ) + - - 38 + + ( + 88 )
----
18
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT MAX( - + 12 ) + 63 + - + 90 * 17 AS col2
----
-1479

skipif mysql # not compatible
query I rowsort label-4155
SELECT MAX ( - + 12 ) + 63 + - + 90 * 17 AS col2
----
-1479

query II rowsort
SELECT + 96 AS col2, 38 AS col1
----
96
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + NULLIF ( MIN( DISTINCT 50 ), - 86 )
----
50

skipif mysql # not compatible
query I rowsort label-4157
SELECT + NULLIF ( MIN ( DISTINCT 50 ), - 86 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL 8 * - + COUNT( ALL + 67 )
----
-8

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 8 * - + COUNT ( ALL + 67 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + 78 + - 25 * + CASE + 24 WHEN - ( - 76 ) + 46 * 57 THEN NULL WHEN 33 THEN NULL ELSE COALESCE ( + NULLIF ( COUNT( * ), AVG ( ALL 99 ) ), 63 ) * 88 END
----
-2122

skipif mysql # not compatible
query I rowsort label-4159
SELECT + 78 + - 25 * + CASE + 24 WHEN - ( - 76 ) + 46 * 57 THEN NULL WHEN 33 THEN NULL ELSE COALESCE ( + NULLIF ( COUNT ( * ), AVG ( ALL 99 ) ), 63 ) * 88 END
----
-2122

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + + CASE - COUNT( * ) WHEN + 52 THEN - 38 WHEN + 45 / - 15 + COUNT( DISTINCT - 99 ) THEN NULL ELSE NULL END + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT + + CASE - COUNT ( * ) WHEN + 52 THEN - 38 WHEN + 45 / - 15 + COUNT ( DISTINCT - 99 ) THEN NULL ELSE NULL END + 95
----
NULL

query I rowsort
SELECT ALL - 68 * + 1 AS col2
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4162
SELECT ALL 53 DIV + 65 + COUNT( * ) + 64 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL 53 / + 65 + COUNT ( * ) + 64 AS col1
----
65

query I rowsort
SELECT DISTINCT - 76 - - 9 * ( - 84 ) AS col2
----
-832

query I rowsort
SELECT + 46 - - + 5
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT + ( - 60 ) DIV + 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT + ( - 60 ) / + 87 AS col0
----
0

query I rowsort
SELECT + 34 * - 63 * 56 AS col1
----
-119952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4167
SELECT + 40 * - 98, + NULLIF ( 44, - + CAST( NULL AS SIGNED ) * + + NULLIF ( - COALESCE ( - 40, 56 ), COUNT( * ) * + 99 ) / 91 ) - - ( 20 ) AS col0
----
-3920
64

skipif mysql # not compatible
query II rowsort label-4167
SELECT + 40 * - 98, + NULLIF ( 44, - + CAST ( NULL AS INTEGER ) * + + NULLIF ( - COALESCE ( - 40, 56 ), COUNT ( * ) * + 99 ) / 91 ) - - ( 20 ) AS col0
----
-3920
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT ALL SUM( + 44 ) AS col0, - ( - 17 ) AS col1
----
44
17

skipif mysql # not compatible
query II rowsort label-4168
SELECT ALL SUM ( + 44 ) AS col0, - ( - 17 ) AS col1
----
44
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT ALL - CAST( + ( + 45 ) AS SIGNED ) * - - 44 AS col1
----
-1980

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - CAST ( + ( + 45 ) AS INTEGER ) * - - 44 AS col1
----
-1980

query I rowsort
SELECT + 4 * - 40 AS col0
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL 10 + - ( + COUNT( * ) ) - + 18 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL 10 + - ( + COUNT ( * ) ) - + 18 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4172
SELECT - ( - 23 ), COUNT( * ) * + 33 AS col0
----
23
33

skipif mysql # not compatible
query II rowsort label-4172
SELECT - ( - 23 ), COUNT ( * ) * + 33 AS col0
----
23
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT + MIN( - 71 ) - - + COUNT( * ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-4173
SELECT + MIN ( - 71 ) - - + COUNT ( * ) col2
----
-70

query I rowsort
SELECT + 68 + - 81 + - 14
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT - 74 * - CAST( + 35 AS SIGNED ) AS col0
----
2590

skipif mysql # not compatible
query I rowsort label-4175
SELECT - 74 * - CAST ( + 35 AS INTEGER ) AS col0
----
2590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT 47 * + + CAST( NULL AS SIGNED ) + 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT 47 * + + CAST ( NULL AS INTEGER ) + 2 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4177
SELECT - NULLIF ( + SUM( DISTINCT + 53 ), + 16 ) * + 35 * - - 40 + + COALESCE ( - AVG ( ALL + 88 ), CAST( NULL AS DECIMAL ) * + 41 ) + 56 * CAST( NULL AS SIGNED ) / 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT - NULLIF ( + SUM ( DISTINCT + 53 ), + 16 ) * + 35 * - - 40 + + COALESCE ( - AVG ( ALL + 88 ), CAST ( NULL AS REAL ) * + 41 ) + 56 * CAST ( NULL AS INTEGER ) / 43 col2
----
NULL

query I rowsort
SELECT DISTINCT + 90 * - + ( + 21 ) + - 10
----
-1900

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2, - 31
----
-1
-31

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2, - 31
----
-1
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - - NULLIF ( + + 87, + AVG ( + - ( - 63 ) ) ) + - 64 + COUNT( * ) * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4180
SELECT - - NULLIF ( + + 87, + AVG ( + - ( - 63 ) ) ) + - 64 + COUNT ( * ) * COUNT ( * )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4181
SELECT ALL + 93 * + + 15 * SUM( DISTINCT - 49 ) * + CAST( - 29 AS SIGNED ) + + 32 + - CASE 21 WHEN + 51 + 73 THEN COUNT( * ) WHEN + 75 * - 8 - + MIN( DISTINCT 36 + - CAST( 73 AS SIGNED ) ) * 70 THEN NULL END * 2 + + 51 + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + 93 * + + 15 * SUM ( DISTINCT - 49 ) * + CAST ( - 29 AS INTEGER ) + + 32 + - CASE 21 WHEN + 51 + 73 THEN COUNT ( * ) WHEN + 75 * - 8 - + MIN ( DISTINCT 36 + - CAST ( 73 AS INTEGER ) ) * 70 THEN NULL END * 2 + + 51 + - 53 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT - 68 * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT - 68 * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4183
SELECT ALL 45 * + 66 * MIN( + - 39 ) - + CAST( MIN( ALL - 68 ) AS SIGNED ) DIV - MIN( ALL - 16 * ( 78 * + 73 ) ) AS col0
----
-115830

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL 45 * + 66 * MIN ( + - 39 ) - + CAST ( MIN ( ALL - 68 ) AS INTEGER ) / - MIN ( ALL - 16 * ( 78 * + 73 ) ) AS col0
----
-115830

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4184
SELECT NULLIF ( CAST( NULL AS DECIMAL ), + 2 + + ( + 9 ) + NULLIF ( - 61, 15 + 51 ) ) * COUNT( * ) + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT NULLIF ( CAST ( NULL AS REAL ), + 2 + + ( + 9 ) + NULLIF ( - 61, 15 + 51 ) ) * COUNT ( * ) + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT + + 64 * + ( ( 78 ) ) + COUNT( * ) * - ( + 73 )
----
4919

skipif mysql # not compatible
query I rowsort label-4185
SELECT + + 64 * + ( ( 78 ) ) + COUNT ( * ) * - ( + 73 )
----
4919

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - - COUNT( * ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-4186
SELECT - - COUNT ( * ) * - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - - 38 * - MAX( DISTINCT - + 93 )
----
3534

skipif mysql # not compatible
query I rowsort label-4187
SELECT - - 38 * - MAX ( DISTINCT - + 93 )
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT - - 80 + - 29 + 57 * - COUNT( * ) * - - 36 AS col0
----
-2001

skipif mysql # not compatible
query I rowsort label-4188
SELECT - - 80 + - 29 + 57 * - COUNT ( * ) * - - 36 AS col0
----
-2001

query I rowsort
SELECT - + 69 * 15
----
-1035

query II rowsort
SELECT + - ( 13 ) AS col1, 85 * + 15 * - 58 AS col2
----
-13
-73950

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL + + COUNT( DISTINCT ( - COALESCE ( - 25, - COALESCE ( 62, 41 / 20 + + 31 ) ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL + + COUNT ( DISTINCT ( - COALESCE ( - 25, - COALESCE ( 62, 41 / 20 + + 31 ) ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT DISTINCT + 56 * + - 3 + - - 92 - + CAST( + 70 AS SIGNED )
----
-146

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT + 56 * + - 3 + - - 92 - + CAST ( + 70 AS INTEGER )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL + MIN( ALL + 81 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + MIN ( ALL + 81 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL + MAX( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL + MAX ( 61 ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4195
SELECT ALL 42 * + + 75 - + CAST( CAST( - MIN( DISTINCT - 49 ) AS SIGNED ) AS SIGNED ) + + 92 + + 53 DIV 85 AS col2
----
3193

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 42 * + + 75 - + CAST ( CAST ( - MIN ( DISTINCT - 49 ) AS INTEGER ) AS INTEGER ) + + 92 + + 53 / 85 AS col2
----
3193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT - COUNT( * ) * + 37 * - 94 * - 29 + 65 DIV NULLIF ( 27, - 47 + - 35 ) AS col0
----
-100860

skipif mysql # not compatible
query I rowsort label-4196
SELECT - COUNT ( * ) * + 37 * - 94 * - 29 + 65 / NULLIF ( 27, - 47 + - 35 ) AS col0
----
-100860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4197
SELECT ALL + CASE + - 33 WHEN + 7 - 52 * + 13 * + 68 THEN - CAST( NULL AS SIGNED ) * - NULLIF ( 80 * 17, + 10 + - 52 / 92 ) ELSE + COUNT( ALL CAST( NULL AS DECIMAL ) ) + 69 * 17 END
----
1173

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL + CASE + - 33 WHEN + 7 - 52 * + 13 * + 68 THEN - CAST ( NULL AS INTEGER ) * - NULLIF ( 80 * 17, + 10 + - 52 / 92 ) ELSE + COUNT ( ALL CAST ( NULL AS REAL ) ) + 69 * 17 END
----
1173

query I rowsort
SELECT - - 42 * - 83 AS col0
----
-3486

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4199
SELECT - + ( + NULLIF ( - CAST( NULL AS DECIMAL ), 39 * + - 32 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - + ( + NULLIF ( - CAST ( NULL AS REAL ), 39 * + - 32 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT ALL - CAST( - 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - CAST ( - 57 AS INTEGER ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT - CAST( + - COUNT( * ) AS SIGNED ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT CASE + CAST( SUM( ALL + 36 ) AS SIGNED ) WHEN + CASE + 40 WHEN + 97 * 66 THEN COUNT( * ) END THEN NULL ELSE COUNT( * ) END * 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT CASE + CAST ( SUM ( ALL + 36 ) AS INTEGER ) WHEN + CASE + 40 WHEN + 97 * 66 THEN COUNT ( * ) END THEN NULL ELSE COUNT ( * ) END * 6 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4203
SELECT ALL - 14 + 35 - + COUNT( ( - + COALESCE ( - ( - 72 ), - + NULLIF ( 48, - CASE + NULLIF ( - 17, ( + 52 ) DIV 51 ) WHEN - CAST( ( + 14 ) AS SIGNED ) THEN 1 WHEN COALESCE ( + CAST( 36 AS SIGNED ), + ( - 75 ) ) THEN NULL WHEN 60 * + 27 + + 96 THEN NULL END * 68 ) + 37, + 86 ) ) ) + 36 DIV + 72 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - 14 + 35 - + COUNT ( ( - + COALESCE ( - ( - 72 ), - + NULLIF ( 48, - CASE + NULLIF ( - 17, ( + 52 ) / 51 ) WHEN - CAST ( ( + 14 ) AS INTEGER ) THEN 1 WHEN COALESCE ( + CAST ( 36 AS INTEGER ), + ( - 75 ) ) THEN NULL WHEN 60 * + 27 + + 96 THEN NULL END * 68 ) + 37, + 86 ) ) ) + 36 / + 72 AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT + 4 DIV - - 66 col0
----
0

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 4 / - - 66 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL + 51 + + + CASE + 23 WHEN - COALESCE ( - + 54, - COALESCE ( COUNT( * ), + 52 ) ) - COUNT( * ) THEN + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL + 51 + + + CASE + 23 WHEN - COALESCE ( - + 54, - COALESCE ( COUNT ( * ), + 52 ) ) - COUNT ( * ) THEN + 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT ALL MIN( ALL - 63 ) + - 34, + 47 AS col2
----
-97
47

skipif mysql # not compatible
query II rowsort label-4206
SELECT ALL MIN ( ALL - 63 ) + - 34, + 47 AS col2
----
-97
47

query I rowsort
SELECT + 98 + 41
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - CASE + 59 WHEN - 25 THEN - + 11 WHEN - 54 THEN COUNT( 84 ) + 99 + + 36 * + 78 / - 73 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT - CASE + 59 WHEN - 25 THEN - + 11 WHEN - 54 THEN COUNT ( 84 ) + 99 + + 36 * + 78 / - 73 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4209
SELECT - CAST( NULL AS SIGNED ), CAST( + 45 AS SIGNED ) col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4209
SELECT - CAST ( NULL AS INTEGER ), CAST ( + 45 AS INTEGER ) col1
----
NULL
45

query I rowsort
SELECT DISTINCT 91 + 22
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT DISTINCT COUNT( * ), 22 * + - 80 AS col1
----
1
-1760

skipif mysql # not compatible
query II rowsort label-4211
SELECT DISTINCT COUNT ( * ), 22 * + - 80 AS col1
----
1
-1760

query I rowsort
SELECT DISTINCT 44 * + 13 AS col0
----
572

query I rowsort
SELECT ALL + + ( 86 ) AS col2
----
86

query I rowsort
SELECT + + 58 * - 43 + + + 11
----
-2483

query I rowsort
SELECT ALL + 53 * + - 12
----
-636

onlyif mysql # aggregate syntax: 
query II rowsort label-4216
SELECT DISTINCT COUNT( * ) * + 67 + - 0, - 22 col0
----
67
-22

skipif mysql # not compatible
query II rowsort label-4216
SELECT DISTINCT COUNT ( * ) * + 67 + - 0, - 22 col0
----
67
-22

query I rowsort
SELECT + - ( + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT - SUM( 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4218
SELECT - SUM ( 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT - 2 * + + 27 * - + COALESCE ( - MIN( DISTINCT + - 27 ), - 19 )
----
1458

skipif mysql # not compatible
query I rowsort label-4219
SELECT - 2 * + + 27 * - + COALESCE ( - MIN ( DISTINCT + - 27 ), - 19 )
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - SUM( ALL 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4220
SELECT - SUM ( ALL 86 )
----
-86

query I rowsort
SELECT 24 * - + 65 AS col2
----
-1560

query I rowsort
SELECT ALL - 87 * + 87 AS col2
----
-7569

query I rowsort
SELECT + 96 - - - 66 col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ( + + 80 ) DIV - 51
----
-1

skipif mysql # not compatible
query I rowsort label-4224
SELECT ( + + 80 ) / - 51
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT - 4 * - 88 + - 37 + + CAST( 96 AS SIGNED ) col2
----
411

skipif mysql # not compatible
query I rowsort label-4225
SELECT - 4 * - 88 + - 37 + + CAST ( 96 AS INTEGER ) col2
----
411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT + 49 * - - 87 + + + ( - - CAST( 84 AS SIGNED ) ) AS col2
----
4347

skipif mysql # not compatible
query I rowsort label-4226
SELECT + 49 * - - 87 + + + ( - - CAST ( 84 AS INTEGER ) ) AS col2
----
4347

query I rowsort
SELECT 93 * - 99 col1
----
-9207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4228
SELECT + 66 AS col1, CAST( + + 10 AS SIGNED )
----
66
10

skipif mysql # not compatible
query II rowsort label-4228
SELECT + 66 AS col1, CAST ( + + 10 AS INTEGER )
----
66
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT 2 + + CAST( - + 58 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-4229
SELECT 2 + + CAST ( - + 58 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL + 83 + 93 * - COALESCE ( 37, COUNT( 45 ), + - 59 )
----
-3358

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL + 83 + 93 * - COALESCE ( 37, COUNT ( 45 ), + - 59 )
----
-3358

query II rowsort
SELECT ALL - 83 + 77 col1, 81 AS col2
----
-6
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT COUNT( * ) * + - 4
----
-4

skipif mysql # not compatible
query I rowsort label-4232
SELECT COUNT ( * ) * + - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT 10 * - COUNT( * ) * + 54
----
-540

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT 10 * - COUNT ( * ) * + 54
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT + 38 + + SUM( DISTINCT + 19 ) + - - 39 - + 98 * 42
----
-4020

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + 38 + + SUM ( DISTINCT + 19 ) + - - 39 - + 98 * 42
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL + NULLIF ( 41, + - CASE + 28 WHEN - + 22 * 31 THEN NULL WHEN + - 5 + + 29 * - - 85 * + 33 THEN NULL WHEN SUM( - 90 ) / 18 THEN 44 END * 28 ) + 47 * + 61
----
2908

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + NULLIF ( 41, + - CASE + 28 WHEN - + 22 * 31 THEN NULL WHEN + - 5 + + 29 * - - 85 * + 33 THEN NULL WHEN SUM ( - 90 ) / 18 THEN 44 END * 28 ) + 47 * + 61
----
2908

query I rowsort
SELECT 23 - + 89 * 29 + - ( + 4 ) - - 1
----
-2561

query I rowsort
SELECT ALL 9 * - - 3
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4238
SELECT ALL - 20 - - CAST( - COUNT( * ) AS SIGNED ) + 48
----
27

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - 20 - - CAST ( - COUNT ( * ) AS INTEGER ) + 48
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4239
SELECT ALL 3 - - + 74 + - 77 DIV - 41 AS col2, 53
----
78
53

skipif mysql # not compatible
query II rowsort label-4239
SELECT ALL 3 - - + 74 + - 77 / - 41 AS col2, 53
----
78
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT 68 - - + COUNT( * ) + - 45 + - + 40 * - 66 * 31 + + CAST( 35 AS SIGNED ) AS col2
----
81899

skipif mysql # not compatible
query I rowsort label-4240
SELECT 68 - - + COUNT ( * ) + - 45 + - + 40 * - 66 * 31 + + CAST ( 35 AS INTEGER ) AS col2
----
81899

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4241
SELECT + CAST( 6 AS SIGNED ) + - 25 * 64 DIV - + 59 + 75 * - - 88 * + + 67 * + 28
----
12381633

skipif mysql # not compatible
query I rowsort label-4241
SELECT + CAST ( 6 AS INTEGER ) + - 25 * 64 / - + 59 + 75 * - - 88 * + + 67 * + 28
----
12381633

query I rowsort
SELECT ALL 34 - + ( - 99 )
----
133

query I rowsort
SELECT - 3 * 51 AS col2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT COUNT( * ) * + 11 + - - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4244
SELECT COUNT ( * ) * + 11 + - - COUNT ( * ) AS col1
----
12

query I rowsort
SELECT + 65 * 98 + + 65 col1
----
6435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4246
SELECT - 86 / COUNT( * ) + SUM( + - 50 ) * - CAST( NULL AS SIGNED ) * COALESCE ( + CAST( COUNT( * ) AS SIGNED ), + 2 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 86 / COUNT ( * ) + SUM ( + - 50 ) * - CAST ( NULL AS INTEGER ) * COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), + 2 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT + 78 DIV COUNT( - 8 ) + - - 15
----
93

skipif mysql # not compatible
query I rowsort label-4247
SELECT + 78 / COUNT ( - 8 ) + - - 15
----
93

query I rowsort
SELECT ALL - + 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + ( - COALESCE ( - 55, - 31 * + 60 * 90 + - 12 * - COALESCE ( - COUNT( * ), 34 * 91 + 41 ) + 48 ) )
----
55

skipif mysql # not compatible
query I rowsort label-4249
SELECT + ( - COALESCE ( - 55, - 31 * + 60 * 90 + - 12 * - COALESCE ( - COUNT ( * ), 34 * 91 + 41 ) + 48 ) )
----
55

query I rowsort
SELECT 8 + ( + 27 ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4251
SELECT ALL COALESCE ( + 32, 47 DIV - - 90 + - NULLIF ( + - COALESCE ( CAST( 57 AS SIGNED ), - - 26 + - 27 ), 37 + - 31 DIV 40 ), - COUNT( * ) ) * 32
----
1024

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL COALESCE ( + 32, 47 / - - 90 + - NULLIF ( + - COALESCE ( CAST ( 57 AS INTEGER ), - - 26 + - 27 ), 37 + - 31 / 40 ), - COUNT ( * ) ) * 32
----
1024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL - CASE - + 64 WHEN 12 THEN 46 * - 66 WHEN AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) THEN NULL ELSE 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - CASE - + 64 WHEN 12 THEN 46 * - 66 WHEN AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 44 END
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT DISTINCT - 47 * 96 DIV + + 50 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - 47 * 96 / + + 50 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4254
SELECT COUNT( * ) * CAST( NULL AS DECIMAL ) + - - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT COUNT ( * ) * CAST ( NULL AS REAL ) + - - 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - NULLIF ( 52, - 46 / - + 80 + 70 ) * 27 * + 9 + CASE COUNT( * ) WHEN + 99 THEN NULL ELSE + CASE + ( - 99 ) WHEN - 97 THEN NULL ELSE + 5 END END
----
-12631

skipif mysql # not compatible
query I rowsort label-4255
SELECT - NULLIF ( 52, - 46 / - + 80 + 70 ) * 27 * + 9 + CASE COUNT ( * ) WHEN + 99 THEN NULL ELSE + CASE + ( - 99 ) WHEN - 97 THEN NULL ELSE + 5 END END
----
-12631

query I rowsort
SELECT 77 + + 68
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL 77 + - - NULLIF ( 36, + - 53 ) + - + MIN( + + 66 ) + - 67
----
-20

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL 77 + - - NULLIF ( 36, + - 53 ) + - + MIN ( + + 66 ) + - 67
----
-20

query I rowsort
SELECT - 60 * - - 34 * + - 73
----
148920

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT ALL - ( - + SUM( DISTINCT - 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - ( - + SUM ( DISTINCT - 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT - SUM( DISTINCT - 24 ) + + 97
----
121

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT - SUM ( DISTINCT - 24 ) + + 97
----
121

query I rowsort
SELECT ALL + 51 + - - 33 + - + 65
----
19

query I rowsort
SELECT ALL - ( 21 ) + 54 + - NULLIF ( 71, + + 80 * + 39 + - 47 ) AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT DISTINCT COALESCE ( + 78, CASE 61 WHEN + 51 THEN - 85 * 17 ELSE - + ( - COUNT( * ) ) + + CASE 21 WHEN 26 THEN + 10 - 32 WHEN + MAX( + 77 ) THEN NULL END + + COUNT( * ) * - 83 END + CAST( NULL AS SIGNED ) * - 4 ) + - SUM( ALL - NULLIF ( + 82, - 84 ) )
----
160

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT COALESCE ( + 78, CASE 61 WHEN + 51 THEN - 85 * 17 ELSE - + ( - COUNT ( * ) ) + + CASE 21 WHEN 26 THEN + 10 - 32 WHEN + MAX ( + 77 ) THEN NULL END + + COUNT ( * ) * - 83 END + CAST ( NULL AS INTEGER ) * - 4 ) + - SUM ( ALL - NULLIF ( + 82, - 84 ) )
----
160

query I rowsort
SELECT 43 + 85 * + 78 * ( - 59 ) AS col0
----
-391127

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT 52 * + 53 + - + COUNT( * ) AS col0
----
2755

skipif mysql # not compatible
query I rowsort label-4265
SELECT 52 * + 53 + - + COUNT ( * ) AS col0
----
2755

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT 33 + + COUNT( * ) * - COUNT( + 74 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4266
SELECT 33 + + COUNT ( * ) * - COUNT ( + 74 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT 42 + + 2 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4267
SELECT 42 + + 2 + COUNT ( * )
----
45

query II rowsort
SELECT ALL 49 AS col2, - 4 col1
----
49
-4

query I rowsort
SELECT 58 + 38 col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT 26 AS col2, CASE ( + COUNT( * ) ) WHEN - 51 THEN - + COALESCE ( - AVG ( DISTINCT - 52 ), + + 40, - 78 ) + 56 * CASE 33 WHEN NULLIF ( - ( 66 ), COUNT( * ) + - 59 ) THEN + COALESCE ( + COALESCE ( - SUM( ALL 39 ), - 71 / - COUNT( * ) ), + 68 ) * 38 END ELSE NULL END AS col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-4270
SELECT 26 AS col2, CASE ( + COUNT ( * ) ) WHEN - 51 THEN - + COALESCE ( - AVG ( DISTINCT - 52 ), + + 40, - 78 ) + 56 * CASE 33 WHEN NULLIF ( - ( 66 ), COUNT ( * ) + - 59 ) THEN + COALESCE ( + COALESCE ( - SUM ( ALL 39 ), - 71 / - COUNT ( * ) ), + 68 ) * 38 END ELSE NULL END AS col0
----
26
NULL

query II rowsort
SELECT ALL 58 AS col2, 52 AS col2
----
58
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4272
SELECT 48 * + + 5 DIV COUNT( * ) AS col0
----
240

skipif mysql # not compatible
query I rowsort label-4272
SELECT 48 * + + 5 / COUNT ( * ) AS col0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - NULLIF ( - - 19, - + NULLIF ( + - 23, 60 - + 12 + 33 + - - 50 * - ( - - SUM( DISTINCT 41 ) ) * + COUNT( * ) ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4273
SELECT - NULLIF ( - - 19, - + NULLIF ( + - 23, 60 - + 12 + 33 + - - 50 * - ( - - SUM ( DISTINCT 41 ) ) * + COUNT ( * ) ) ) AS col1
----
-19

query I rowsort
SELECT - 6 * + COALESCE ( + - 47, - 98 )
----
282

query II rowsort
SELECT - 70 AS col1, - 82 AS col1
----
-70
-82

query I rowsort
SELECT + + 76 + + 2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4277
SELECT - NULLIF ( + + 46, ( - + 84 ) * + + 45 / - - 1 / - CAST( NULL AS DECIMAL ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4277
SELECT - NULLIF ( + + 46, ( - + 84 ) * + + 45 / - - 1 / - CAST ( NULL AS REAL ) ) AS col1
----
-46

query I rowsort
SELECT DISTINCT - 43 * + 73
----
-3139

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - + COUNT( * ) * + - NULLIF ( + 57, + + 64 ) - + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4279
SELECT - + COUNT ( * ) * + - NULLIF ( + 57, + + 64 ) - + - COUNT ( * ) AS col1
----
58

query II rowsort
SELECT + + 8 AS col2, 85
----
8
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT - COUNT( * ) * 31
----
-31

skipif mysql # not compatible
query I rowsort label-4281
SELECT - COUNT ( * ) * 31
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4282
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + COALESCE ( - + MIN( + 92 ), - 76, 4 + + 84 ) ) * 81 + + 7 DIV 26 AS col1
----
7452

skipif mysql # not compatible
query I rowsort label-4282
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + COALESCE ( - + MIN ( + 92 ), - 76, 4 + + 84 ) ) * 81 + + 7 / 26 AS col1
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + 78 * + ( - + 19 ) + + + 8 * - COUNT( * )
----
-1490

skipif mysql # not compatible
query I rowsort label-4283
SELECT + 78 * + ( - + 19 ) + + + 8 * - COUNT ( * )
----
-1490

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT - 22 * + - COUNT( DISTINCT - 6 ) * 1 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 22 * + - COUNT ( DISTINCT - 6 ) * 1 AS col0
----
22

query II rowsort
SELECT + 55, 60 AS col2
----
55
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4286
SELECT + - COUNT( * ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT + - COUNT ( * ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4287
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - ( 68 ) + 77 + + + 43 * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - ( 68 ) + 77 + + + 43 * - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + 30 * - + 81 * - + 5 * 50
----
607500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4289
SELECT ALL - 78 * 89 * - 74 + + ( - - 8 ) AS col1, - MAX( CAST( 22 AS SIGNED ) ) + ( 19 ) + + MAX( 6 + 55 ) * 23 AS col2
----
513716
1400

skipif mysql # not compatible
query II rowsort label-4289
SELECT ALL - 78 * 89 * - 74 + + ( - - 8 ) AS col1, - MAX ( CAST ( 22 AS INTEGER ) ) + ( 19 ) + + MAX ( 6 + 55 ) * 23 AS col2
----
513716
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4290
SELECT DISTINCT - COALESCE ( + CAST( NULL AS DECIMAL ), + COUNT( DISTINCT 74 ), + 44 ) * + 93 + + + CASE - + 95 WHEN + 4 THEN NULL ELSE - 66 * + 31 + 14 * 91 END * CASE + 53 + 72 WHEN CAST( NULL AS DECIMAL ) * - NULLIF ( CAST( NULL AS SIGNED ) * - 57, - 11 / COUNT( * ) ) + 66 THEN + 72 + 12 * + MAX( + NULLIF ( - 74, + ( - 45 ) * 82 + 67 ) - 24 * - 94 ) WHEN + 43 * + 66 + - CASE 86 WHEN 84 * 97 - 10 / - 96 THEN - 42 ELSE 99 END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - COALESCE ( + CAST ( NULL AS REAL ), + COUNT ( DISTINCT 74 ), + 44 ) * + 93 + + + CASE - + 95 WHEN + 4 THEN NULL ELSE - 66 * + 31 + 14 * 91 END * CASE + 53 + 72 WHEN CAST ( NULL AS REAL ) * - NULLIF ( CAST ( NULL AS INTEGER ) * - 57, - 11 / COUNT ( * ) ) + 66 THEN + 72 + 12 * + MAX ( + NULLIF ( - 74, + ( - 45 ) * 82 + 67 ) - 24 * - 94 ) WHEN + 43 * + 66 + - CASE 86 WHEN 84 * 97 - 10 / - 96 THEN - 42 ELSE 99 END THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 57 * - 81 + 87 - 17 col2
----
-4547

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT ALL + 82, COUNT( * ) + + 42 col0
----
82
43

skipif mysql # not compatible
query II rowsort label-4292
SELECT ALL + 82, COUNT ( * ) + + 42 col0
----
82
43

query I rowsort
SELECT + 22 * + - 38 AS col2
----
-836

query I rowsort
SELECT DISTINCT 27 - 74
----
-47

query II rowsort
SELECT DISTINCT 95 AS col1, 63 AS col2
----
95
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4296
SELECT - ( 84 ) AS col2, COUNT( * ) / - MIN( + + CAST( NULL AS SIGNED ) ) * + + 59
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-4296
SELECT - ( 84 ) AS col2, COUNT ( * ) / - MIN ( + + CAST ( NULL AS INTEGER ) ) * + + 59
----
-84
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4297
SELECT - COUNT( * ) DIV - 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT - COUNT ( * ) / - 22 AS col1
----
0

query I rowsort
SELECT + 56 * + 57
----
3192

query I rowsort
SELECT ALL 67 * + + 90
----
6030

query I rowsort
SELECT DISTINCT 85 * 80 AS col0
----
6800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4301
SELECT + COUNT( * ) DIV 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4301
SELECT + COUNT ( * ) / 37 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT - ( - 38 ) DIV - 21 + ( 71 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4302
SELECT - ( - 38 ) / - 21 + ( 71 ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-4303
SELECT + - COALESCE ( + 36, + - 8 ) - + + ( + - 25 ) DIV - 11, + 59 + - 80 * + + CASE + 76 WHEN - ( - 98 ) THEN + 55 WHEN 46 * + 12 THEN NULL ELSE NULL END AS col1
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-4303
SELECT + - COALESCE ( + 36, + - 8 ) - + + ( + - 25 ) / - 11, + 59 + - 80 * + + CASE + 76 WHEN - ( - 98 ) THEN + 55 WHEN 46 * + 12 THEN NULL ELSE NULL END AS col1
----
-38
NULL

query I rowsort
SELECT ALL + 46 * + ( - + 2 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT ALL 99 AS col2, COUNT( * ) * + ( + - ( + 33 ) ) * - - ( - - 35 )
----
99
-1155

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL 99 AS col2, COUNT ( * ) * + ( + - ( + 33 ) ) * - - ( - - 35 )
----
99
-1155

query I rowsort
SELECT DISTINCT 91 * + 77 * - 8 + 71 col0
----
-55985

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL MIN( - 71 ) + + 73
----
2

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL MIN ( - 71 ) + + 73
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT - NULLIF ( + 91, COUNT( * ) ) - + 19 + + 14 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4308
SELECT - NULLIF ( + 91, COUNT ( * ) ) - + 19 + + 14 AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT - CAST( NULL AS SIGNED ) * - - 63 * + + AVG ( + 14 ) * - CAST( NULL AS SIGNED ) * 18 + - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT - CAST ( NULL AS INTEGER ) * - - 63 * + + AVG ( + 14 ) * - CAST ( NULL AS INTEGER ) * 18 + - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + - COUNT( * ) + 41 * 51 * - ( 93 ) AS col0
----
-194464

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + - COUNT ( * ) + 41 * 51 * - ( 93 ) AS col0
----
-194464

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT DISTINCT + ( + - 93 ) DIV 39 * - 66 + + + 64
----
196

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT + ( + - 93 ) / 39 * - 66 + + + 64
----
196

query I rowsort
SELECT 9 * 89 + + - NULLIF ( - ( - ( + 94 ) ), + 50 ) + - 32
----
675

query I rowsort
SELECT ALL - + COALESCE ( + - 79, ( - 96 ) ) * + - 27
----
-2133

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT - 31 DIV + - ( - 51 ) + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4314
SELECT - 31 / + - ( - 51 ) + 13 AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT ALL + 31 DIV COUNT( * ) - - - COUNT( * ) + COUNT( * ) + 26
----
57

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + 31 / COUNT ( * ) - - - COUNT ( * ) + COUNT ( * ) + 26
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - - MIN( DISTINCT + + 19 ) + - ( 71 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4316
SELECT - - MIN ( DISTINCT + + 19 ) + - ( 71 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL + - CASE + 51 WHEN 93 * MAX( ALL 78 ) THEN NULL WHEN + 18 THEN NULL WHEN + 50 THEN + + NULLIF ( + 98, + AVG ( DISTINCT + 25 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + - CASE + 51 WHEN 93 * MAX ( ALL 78 ) THEN NULL WHEN + 18 THEN NULL WHEN + 50 THEN + + NULLIF ( + 98, + AVG ( DISTINCT + 25 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4318
SELECT - 70 * + 75 AS col2, COUNT( * ) * - 50
----
-5250
-50

skipif mysql # not compatible
query II rowsort label-4318
SELECT - 70 * + 75 AS col2, COUNT ( * ) * - 50
----
-5250
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + CASE - + ( - + SUM( DISTINCT - 69 ) ) WHEN - + 74 THEN 13 * + ( - 1 ) + - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT + CASE - + ( - + SUM ( DISTINCT - 69 ) ) WHEN - + 74 THEN 13 * + ( - 1 ) + - 28 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 30 * 43 - - 29
----
-1261

query II rowsort
SELECT DISTINCT + ( - 28 ) AS col2, + 81 col1
----
-28
81

query II rowsort
SELECT + NULLIF ( + - ( 87 ), 99 ) + 48, + 47 AS col2
----
-39
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4323
SELECT - 22 DIV - 96 * + - 57
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT - 22 / - 96 * + - 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT + COALESCE ( - 66, + + 4 DIV - - 95 * - - 61 DIV + 63 ) * + + 29
----
-1914

skipif mysql # not compatible
query I rowsort label-4324
SELECT + COALESCE ( - 66, + + 4 / - - 95 * - - 61 / + 63 ) * + + 29
----
-1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4325
SELECT ALL CAST( NULL AS SIGNED ) / + 97 AS col2, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4325
SELECT ALL CAST ( NULL AS INTEGER ) / + 97 AS col2, + COUNT ( * ) AS col0
----
NULL
1

query II rowsort
SELECT - 39 + + 97 AS col0, - 75 * - - ( + + 29 ) AS col2
----
58
-2175

query I rowsort
SELECT DISTINCT + ( - - 87 ) AS col1
----
87

query I rowsort
SELECT DISTINCT 47 * + 99 - - 7 AS col1
----
4660

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + MAX( + 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + MAX ( + 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL + MIN( + + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + MIN ( + + 43 ) AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT + 68 * + CAST( 82 AS SIGNED ) * + COUNT( * )
----
5576

skipif mysql # not compatible
query I rowsort label-4331
SELECT + 68 * + CAST ( 82 AS INTEGER ) * + COUNT ( * )
----
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT 91 * + ( - ( + - COUNT( * ) ) ) * + 54 * + 71
----
348894

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT 91 * + ( - ( + - COUNT ( * ) ) ) * + 54 * + 71
----
348894

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + COUNT( * ) * MAX( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4333
SELECT + COUNT ( * ) * MAX ( 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4334
SELECT MIN( - ( + 29 ) ) + + 11 + + COUNT( * ) * - 81 + - 4 + - CAST( + + 66 AS SIGNED ) * 17 + - ( + - 67 ) * - 61 AS col0
----
-5312

skipif mysql # not compatible
query I rowsort label-4334
SELECT MIN ( - ( + 29 ) ) + + 11 + + COUNT ( * ) * - 81 + - 4 + - CAST ( + + 66 AS INTEGER ) * 17 + - ( + - 67 ) * - 61 AS col0
----
-5312

query I rowsort
SELECT 67 + + 81
----
148

query I rowsort
SELECT DISTINCT 49 + 51 + - - 7 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT DISTINCT MIN( ALL - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT MIN ( ALL - 32 )
----
-32

query II rowsort
SELECT DISTINCT 84 + + + 19, + 97 + 17 + + 31 AS col1
----
103
145

query I rowsort
SELECT DISTINCT NULLIF ( - + 42, - 73 ) AS col2
----
-42

query I rowsort
SELECT ALL + - 79 + + 20 + 48 + - 56
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + ( - + 21 ) + + CASE + - 58 WHEN 77 THEN + - MIN( DISTINCT + 14 ) WHEN 61 * COUNT( DISTINCT - - 21 ) + - 32 THEN - 53 ELSE - ( 73 ) END + + 76 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4341
SELECT + ( - + 21 ) + + CASE + - 58 WHEN 77 THEN + - MIN ( DISTINCT + 14 ) WHEN 61 * COUNT ( DISTINCT - - 21 ) + - 32 THEN - 53 ELSE - ( 73 ) END + + 76 AS col1
----
-18

query I rowsort
SELECT ALL + 93 + - + 45 + COALESCE ( - 77, - 35 ) AS col2
----
-29

query II rowsort
SELECT 94 * - - 18, + 5 - - + 68 AS col2
----
1692
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT 37 + + COALESCE ( - 6, - COUNT( * ) - 29 * + ( + 56 ) ) + 6 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4344
SELECT 37 + + COALESCE ( - 6, - COUNT ( * ) - 29 * + ( + 56 ) ) + 6 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT ( 54 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT ( 54 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 29 + 73 * - - 47
----
3460

query I rowsort
SELECT - ( - 60 ) * - 62
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT 17 * 38 + - 80 + - - COUNT( * )
----
567

skipif mysql # not compatible
query I rowsort label-4348
SELECT 17 * 38 + - 80 + - - COUNT ( * )
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL - COUNT( - 12 ) + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - COUNT ( - 12 ) + - 53
----
-54

query I rowsort
SELECT DISTINCT - + 5 col1
----
-5

query I rowsort
SELECT ALL 9 * + 57 * 35 AS col0
----
17955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4352
SELECT + CASE - 34 WHEN COALESCE ( + 79, + 5 + COUNT( - + ( - 7 ) ) ) * - 27 THEN + CAST( 67 AS SIGNED ) WHEN 60 * COUNT( * ) THEN - 72 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT + CASE - 34 WHEN COALESCE ( + 79, + 5 + COUNT ( - + ( - 7 ) ) ) * - 27 THEN + CAST ( 67 AS INTEGER ) WHEN 60 * COUNT ( * ) THEN - 72 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - 15 * MIN( 47 )
----
-705

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 15 * MIN ( 47 )
----
-705

query I rowsort
SELECT 53 * - - 47 * 1 * 28 * - + 13
----
-906724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4355
SELECT DISTINCT + CASE 33 WHEN + + 90 + - 29 THEN NULL WHEN 10 THEN + - 91 + - 74 END * + + 55 AS col0, + COALESCE ( + COUNT( * ), - - ( - 90 ) + + AVG ( ALL + 7 ) * 93 ) * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4355
SELECT DISTINCT + CASE 33 WHEN + + 90 + - 29 THEN NULL WHEN 10 THEN + - 91 + - 74 END * + + 55 AS col0, + COALESCE ( + COUNT ( * ), - - ( - 90 ) + + AVG ( ALL + 7 ) * 93 ) * - CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT ALL - 91, - 60 * - - 89 + + 27 + - 83 + + 45 + 30 AS col0
----
-91
-5321

query I rowsort
SELECT 27 - 61
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4358
SELECT ALL + 75 * CAST( - 96 AS SIGNED ) DIV + - 72
----
100

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL + 75 * CAST ( - 96 AS INTEGER ) / + - 72
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT 36 - 7 + - 8 * 61 DIV - 99 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4359
SELECT 36 - 7 + - 8 * 61 / - 99 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT ALL NULLIF ( + 38, + + 41 ) DIV + - 75 * - 64 * - ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL NULLIF ( + 38, + + 41 ) / + - 75 * - 64 * - ( 82 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT 43 * + SUM( DISTINCT COALESCE ( + 60, 36 ) )
----
2580

skipif mysql # not compatible
query I rowsort label-4361
SELECT 43 * + SUM ( DISTINCT COALESCE ( + 60, 36 ) )
----
2580

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT ALL - COUNT( * ) AS col2, 43
----
-1
43

skipif mysql # not compatible
query II rowsort label-4362
SELECT ALL - COUNT ( * ) AS col2, 43
----
-1
43

query II rowsort
SELECT + 33 col1, - 61 AS col0
----
33
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT SUM( - 57 ) DIV + 48
----
-1

skipif mysql # not compatible
query I rowsort label-4364
SELECT SUM ( - 57 ) / + 48
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * 99 + + 75 + + 22 + 22 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 99 + + 75 + + 22 + 22 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4366
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, CASE 25 WHEN + + 95 * - 6 THEN NULL ELSE + 76 END * + 81 + + - ( 44 )
----
NULL
6112

skipif mysql # not compatible
query II rowsort label-4366
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, CASE 25 WHEN + + 95 * - 6 THEN NULL ELSE + 76 END * + 81 + + - ( 44 )
----
NULL
6112

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT 52 DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT 52 / 89 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - 30 + + 82 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - 30 + + 82 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 58 * + 49
----
2842

query II rowsort
SELECT + 56 AS col1, - 82
----
56
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT ALL - 40 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - 40 / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL 96 * - MAX( DISTINCT + 89 ) AS col0
----
-8544

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL 96 * - MAX ( DISTINCT + 89 ) AS col0
----
-8544

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT 77 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-4373
SELECT 77 / + 51
----
1

query I rowsort
SELECT ALL - 31 + + + 86 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL MIN( + - 4 ) * - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL MIN ( + - 4 ) * - COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT 31 + ( - MIN( ALL + 20 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT 31 + ( - MIN ( ALL + 20 ) ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT - - ( - ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT - - ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 22 + - 95
----
-117

query I rowsort
SELECT ALL + 64 * - 95
----
-6080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT DISTINCT + COUNT( * ) + + 25 DIV - 55 * + 49 + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + COUNT ( * ) + + 25 / - 55 * + 49 + + 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL COUNT( * ) + + 78 * - + 34
----
-2651

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL COUNT ( * ) + + 78 * - + 34
----
-2651

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT MIN( DISTINCT + 60 ) col1
----
60

skipif mysql # not compatible
query I rowsort label-4382
SELECT MIN ( DISTINCT + 60 ) col1
----
60

query I rowsort
SELECT ALL ( + 12 ) AS col1
----
12

query I rowsort
SELECT 31 + + - 25 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT ALL + ( - 88 ) - - 97 * - 62 * COUNT( * )
----
-6102

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + ( - 88 ) - - 97 * - 62 * COUNT ( * )
----
-6102

onlyif mysql # aggregate syntax: 
query II rowsort label-4386
SELECT ALL - 21 AS col0, - COUNT( * )
----
-21
-1

skipif mysql # not compatible
query II rowsort label-4386
SELECT ALL - 21 AS col0, - COUNT ( * )
----
-21
-1

query I rowsort
SELECT DISTINCT 98 - - COALESCE ( - - 24, - 74 ) AS col1
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - 40 * 6 + - 45 + + ( + 67 ) / 59 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - 40 * 6 + - 45 + + ( + 67 ) / 59 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ( - + 50 ) + - MIN( + + 46 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-4389
SELECT ( - + 50 ) + - MIN ( + + 46 ) AS col0
----
-96

query I rowsort
SELECT ALL - 87 * + + 51 * - - 44 + + + 61
----
-195167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT 0 + - + 46 * + + CASE - COALESCE ( COUNT( + 47 ), 77 ) WHEN COUNT( CAST( NULL AS SIGNED ) ) THEN - - 24 + - CAST( NULL AS SIGNED ) / + COALESCE ( 89, COALESCE ( 39, 68 + COUNT( * ) * 72, + 90 ) ) - - 30 END / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT 0 + - + 46 * + + CASE - COALESCE ( COUNT ( + 47 ), 77 ) WHEN COUNT ( CAST ( NULL AS INTEGER ) ) THEN - - 24 + - CAST ( NULL AS INTEGER ) / + COALESCE ( 89, COALESCE ( 39, 68 + COUNT ( * ) * 72, + 90 ) ) - - 30 END / - 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4392
SELECT 88 DIV + COUNT( * ) + 94 DIV - + 52 + - 15
----
72

skipif mysql # not compatible
query I rowsort label-4392
SELECT 88 / + COUNT ( * ) + 94 / - + 52 + - 15
----
72

query I rowsort
SELECT - 69 * + + 68 AS col1
----
-4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4394
SELECT DISTINCT + MIN( ALL 70 ) * + CAST( NULL AS SIGNED ) * 82 * - CAST( + + 96 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + MIN ( ALL 70 ) * + CAST ( NULL AS INTEGER ) * 82 * - CAST ( + + 96 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4395
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) + + 83 col2, - 89
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-4395
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) + + 83 col2, - 89
----
NULL
-89

query I rowsort
SELECT 77 * + 30 AS col1
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT CASE + - 87 WHEN MIN( - COALESCE ( + 45, 72 ) ) THEN 3 WHEN - + 79 + - 28 THEN ( 64 ) END * - - 12 + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT CASE + - 87 WHEN MIN ( - COALESCE ( + 45, 72 ) ) THEN 3 WHEN - + 79 + - 28 THEN ( 64 ) END * - - 12 + + 89 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 22 * + - 15 AS col0
----
-330

query I rowsort
SELECT ALL ( 10 ) * 21
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT 98 * - 16 + + SUM( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT 98 * - 16 + + SUM ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT COUNT( - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-4401
SELECT COUNT ( - 94 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT CAST( NULL AS SIGNED ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT CAST ( NULL AS INTEGER ) * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT MIN( ALL + + 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4403
SELECT MIN ( ALL + + 68 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT ALL 25 * - 19 + - NULLIF ( - 8, + + COUNT( * ) + 0 ) * COUNT( * ) + - 72 DIV + 9 AS col0
----
-475

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 25 * - 19 + - NULLIF ( - 8, + + COUNT ( * ) + 0 ) * COUNT ( * ) + - 72 / + 9 AS col0
----
-475

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4405
SELECT + CASE - CASE + 60 WHEN - 8 THEN - + 4 - + 78 WHEN + NULLIF ( - ( + COUNT( * ) ), - 19 ) - + 33 THEN NULL WHEN 11 THEN NULL END WHEN - 9 THEN - 30 WHEN - 33 - CAST( + 87 + + 71 AS DECIMAL ) * 53 THEN - 54 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT + CASE - CASE + 60 WHEN - 8 THEN - + 4 - + 78 WHEN + NULLIF ( - ( + COUNT ( * ) ), - 19 ) - + 33 THEN NULL WHEN 11 THEN NULL END WHEN - 9 THEN - 30 WHEN - 33 - CAST ( + 87 + + 71 AS REAL ) * 53 THEN - 54 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT 19 * + ( - SUM( DISTINCT - 55 ) ) + - - 12
----
1057

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT 19 * + ( - SUM ( DISTINCT - 55 ) ) + - - 12
----
1057

onlyif mysql # DIV for integer division: 
query II rowsort label-4407
SELECT DISTINCT 50 DIV - 72 AS col1, 6 + - 33 * + 83 AS col2
----
0
-2733

skipif mysql # not compatible
query II rowsort label-4407
SELECT DISTINCT 50 / - 72 AS col1, 6 + - 33 * + 83 AS col2
----
0
-2733

query II rowsort
SELECT DISTINCT - 17 + - 39 AS col2, ( 49 ) AS col1
----
-56
49

query I rowsort
SELECT ALL 67 + + + 61
----
128

query I rowsort
SELECT - 72 + - 80
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT - + 98 * COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4411
SELECT - + 98 * COUNT ( * ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT ALL - 76 + - 49 DIV - + ( - 43 )
----
-77

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - 76 + - 49 / - + ( - 43 )
----
-77

query I rowsort
SELECT - - 96 + + 5 * - 54
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT - + NULLIF ( - ( - + 94 ), 97 + + - COUNT( * ) * - 88 ) + + CAST( - 65 AS SIGNED ) * + 15 - - + 57 col1
----
-1012

skipif mysql # not compatible
query I rowsort label-4414
SELECT - + NULLIF ( - ( - + 94 ), 97 + + - COUNT ( * ) * - 88 ) + + CAST ( - 65 AS INTEGER ) * + 15 - - + 57 col1
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT - - 95 * 19 * COUNT( * ) AS col1
----
1805

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - - 95 * 19 * COUNT ( * ) AS col1
----
1805

query I rowsort
SELECT ALL - ( + 55 ) AS col2
----
-55

query I rowsort
SELECT DISTINCT 30 * + ( + 93 )
----
2790

query I rowsort
SELECT DISTINCT 43 * + 73 col0
----
3139

query I rowsort
SELECT DISTINCT + - 66 - 11
----
-77

query I rowsort
SELECT + - 97 * 25 * + 41 AS col1
----
-99425

query I rowsort
SELECT - + 69 * - 50 AS col0
----
3450

query I rowsort
SELECT DISTINCT - + 90 * ( + + 65 )
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT + + COUNT( * ) * 21
----
21

skipif mysql # not compatible
query I rowsort label-4423
SELECT + + COUNT ( * ) * 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL - SUM( DISTINCT 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - SUM ( DISTINCT 75 ) AS col1
----
-75

query I rowsort
SELECT DISTINCT ( - 59 ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT CAST( + 62 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4426
SELECT CAST ( + 62 AS INTEGER ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4427
SELECT + CASE - + 40 WHEN + ( - 86 ) THEN 85 * NULLIF ( - 42, COALESCE ( 10, COUNT( * ) * - - 89, ( 21 ) / 11 + + - 10, + 19 ) ) / 74 WHEN + ( + 56 ) * - ( - CAST( MIN( - 1 ) AS SIGNED ) * 82 ) THEN - 39 WHEN ( 3 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT + CASE - + 40 WHEN + ( - 86 ) THEN 85 * NULLIF ( - 42, COALESCE ( 10, COUNT ( * ) * - - 89, ( 21 ) / 11 + + - 10, + 19 ) ) / 74 WHEN + ( + 56 ) * - ( - CAST ( MIN ( - 1 ) AS INTEGER ) * 82 ) THEN - 39 WHEN ( 3 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT ALL 3 DIV - - 22 + - - ( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL 3 / - - 22 + - - ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT 12 * + COUNT( * ) + + + 53 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4429
SELECT 12 * + COUNT ( * ) + + + 53 AS col1
----
65

query I rowsort
SELECT ( - - ( - 53 ) )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4431
SELECT + 63 + + 49 * + SUM( - CAST( NULL AS DECIMAL ) ) * 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT + 63 + + 49 * + SUM ( - CAST ( NULL AS REAL ) ) * 20 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4432
SELECT ALL 46 / - 69 + + 15 * - 33 * - CAST( NULL AS SIGNED ) AS col2, - ( 73 ) * - 2
----
NULL
146

skipif mysql # not compatible
query II rowsort label-4432
SELECT ALL 46 / - 69 + + 15 * - 33 * - CAST ( NULL AS INTEGER ) AS col2, - ( 73 ) * - 2
----
NULL
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + CASE + COUNT( * ) WHEN + 34 * 73 THEN NULLIF ( + 33, + 15 * 50 + - + 66 - + COALESCE ( - 92, NULLIF ( - 89, 96 * + 2 + - 54 ) * - 30, 39 - - 28 * + CASE 91 WHEN 98 * + 86 THEN - CASE 70 WHEN - 15 + 36 THEN NULL WHEN ( - 53 ) THEN + 38 + 61 END END, + 60 ) ) WHEN - NULLIF ( 97, + 38 ) * 29 THEN - 41 + - 19 WHEN + 79 * 93 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT + CASE + COUNT ( * ) WHEN + 34 * 73 THEN NULLIF ( + 33, + 15 * 50 + - + 66 - + COALESCE ( - 92, NULLIF ( - 89, 96 * + 2 + - 54 ) * - 30, 39 - - 28 * + CASE 91 WHEN 98 * + 86 THEN - CASE 70 WHEN - 15 + 36 THEN NULL WHEN ( - 53 ) THEN + 38 + 61 END END, + 60 ) ) WHEN - NULLIF ( 97, + 38 ) * 29 THEN - 41 + - 19 WHEN + 79 * 93 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4434
SELECT + COUNT( * ) DIV - 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4434
SELECT + COUNT ( * ) / - 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT DISTINCT 15 * + - 59 + + CAST( - - 80 AS SIGNED ) + + + 73 + + - 84 AS col1
----
-816

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT 15 * + - 59 + + CAST ( - - 80 AS INTEGER ) + + + 73 + + - 84 AS col1
----
-816

query I rowsort
SELECT ALL + COALESCE ( + - 78, - COALESCE ( + 63, + - 63 ) * 8 * 13, + 27 + - 50 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT CASE 1 WHEN + + COUNT( * ) * - 68 / + 58 THEN + + 48 END * + 88 * + 79 * - AVG ( ALL - + 4 ) * 28 + + 23 + - - ( - - 25 ) * 31 / - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT CASE 1 WHEN + + COUNT ( * ) * - 68 / + 58 THEN + + 48 END * + 88 * + 79 * - AVG ( ALL - + 4 ) * 28 + + 23 + - - ( - - 25 ) * 31 / - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT COALESCE ( - + 58, 94 ) * COUNT( * ) + 90 DIV + MIN( - 54 )
----
-59

skipif mysql # not compatible
query I rowsort label-4438
SELECT COALESCE ( - + 58, 94 ) * COUNT ( * ) + 90 / + MIN ( - 54 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT 26 * + MIN( ALL + 27 ) AS col0
----
702

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT 26 * + MIN ( ALL + 27 ) AS col0
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL - 90 * 81 + + 85 * COUNT( * ) AS col2
----
-7205

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - 90 * 81 + + 85 * COUNT ( * ) AS col2
----
-7205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT - 73 * + + CAST( NULL AS SIGNED ) / + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT - 73 * + + CAST ( NULL AS INTEGER ) / + - 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT CASE 18 WHEN 74 + + - COUNT( ALL - + ( - - 7 ) ) - COUNT( * ) * CASE - 20 WHEN + - 44 * + - 73 / + - COUNT( * ) + + 65 THEN + 66 + + 78 ELSE + 3 END THEN - 92 WHEN ( + 94 ) THEN NULL ELSE - 21 * 87 END
----
-1827

skipif mysql # not compatible
query I rowsort label-4442
SELECT CASE 18 WHEN 74 + + - COUNT ( ALL - + ( - - 7 ) ) - COUNT ( * ) * CASE - 20 WHEN + - 44 * + - 73 / + - COUNT ( * ) + + 65 THEN + 66 + + 78 ELSE + 3 END THEN - 92 WHEN ( + 94 ) THEN NULL ELSE - 21 * 87 END
----
-1827

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT ALL - - 90 * - + 73 + - 5 * COUNT( * ) + - + 25 col0, + 20 + - COALESCE ( - + 41, 82 + + + 24 )
----
-6600
61

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL - - 90 * - + 73 + - 5 * COUNT ( * ) + - + 25 col0, + 20 + - COALESCE ( - + 41, 82 + + + 24 )
----
-6600
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4444
SELECT + NULLIF ( + COALESCE ( - 27, AVG ( DISTINCT + 48 ) DIV + - NULLIF ( - 60, 41 ) * CASE - 41 WHEN + 40 + - 92 + - + COUNT( * ) * + 80 * + ( + COUNT( * ) ) DIV + CAST( NULL AS SIGNED ) DIV + 55 THEN 69 + + CAST( NULL AS SIGNED ) * + 38 ELSE NULL END + 87 ), + ( 11 ) + 78 )
----
-27

skipif mysql # not compatible
query I rowsort label-4444
SELECT + NULLIF ( + COALESCE ( - 27, AVG ( DISTINCT + 48 ) / + - NULLIF ( - 60, 41 ) * CASE - 41 WHEN + 40 + - 92 + - + COUNT ( * ) * + 80 * + ( + COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) / + 55 THEN 69 + + CAST ( NULL AS INTEGER ) * + 38 ELSE NULL END + 87 ), + ( 11 ) + 78 )
----
-27

query I rowsort
SELECT ALL + + 91 * + 93 - - 17
----
8480

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL - COUNT( * ) * COUNT( 20 ) - 13
----
-14

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - COUNT ( * ) * COUNT ( 20 ) - 13
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT COUNT( * ) col2, - 41 - + ( + COUNT( * ) ) * 34 AS col0
----
1
-75

skipif mysql # not compatible
query II rowsort label-4447
SELECT COUNT ( * ) col2, - 41 - + ( + COUNT ( * ) ) * 34 AS col0
----
1
-75

query I rowsort
SELECT ALL 49 * + + 64 AS col1
----
3136

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT DISTINCT - 54 * - + COALESCE ( - 67, + 60 * + 79 DIV - 13, + + 17 ) AS col0
----
-3618

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - 54 * - + COALESCE ( - 67, + 60 * + 79 / - 13, + + 17 ) AS col0
----
-3618

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4450
SELECT ALL - 2, - 15 + - + CAST( - 72 AS SIGNED ) col0
----
-2
57

skipif mysql # not compatible
query II rowsort label-4450
SELECT ALL - 2, - 15 + - + CAST ( - 72 AS INTEGER ) col0
----
-2
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4451
SELECT DISTINCT - 7 * + - 2 * 79 + 46 DIV + 54 - COUNT( * ) - - - 42 * 80, - ( - 50 ) * + COUNT( * ) + + 45 AS col2
----
-2255
95

skipif mysql # not compatible
query II rowsort label-4451
SELECT DISTINCT - 7 * + - 2 * 79 + 46 / + 54 - COUNT ( * ) - - - 42 * 80, - ( - 50 ) * + COUNT ( * ) + + 45 AS col2
----
-2255
95

query I rowsort
SELECT ALL - - 1 * - 45
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4453
SELECT 50, + CAST( NULL AS SIGNED ) AS col1
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4453
SELECT 50, + CAST ( NULL AS INTEGER ) AS col1
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - + 24 - COUNT( * ) * 0 - - - 85
----
-109

skipif mysql # not compatible
query I rowsort label-4454
SELECT - + 24 - COUNT ( * ) * 0 - - - 85
----
-109

query I rowsort
SELECT - 95 + 83
----
-12

query I rowsort
SELECT ALL + 5 * 81
----
405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT - 9 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT - 9 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT ALL + 94 DIV - 26 - - + 59
----
56

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + 94 / - 26 - - + 59
----
56

query I rowsort
SELECT ALL 63 + + - 73
----
-10

query I rowsort
SELECT - 69 - - - 33 AS col1
----
-102

query I rowsort
SELECT ALL + 16 + - + 85 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - 40 + - - 0 * + + 21 + - 95 - - 68 * ( + 26 ) * + COUNT( * ) AS col1
----
1633

skipif mysql # not compatible
query I rowsort label-4462
SELECT - 40 + - - 0 * + + 21 + - 95 - - 68 * ( + 26 ) * + COUNT ( * ) AS col1
----
1633

query II rowsort
SELECT + NULLIF ( 19, - + 56 ) - + + 53 AS col1, 86
----
-34
86

query II rowsort
SELECT 20 AS col2, 30 AS col0
----
20
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4465
SELECT 45 * CAST( - 65 AS SIGNED ) DIV + COUNT( * )
----
-2925

skipif mysql # not compatible
query I rowsort label-4465
SELECT 45 * CAST ( - 65 AS INTEGER ) / + COUNT ( * )
----
-2925

query I rowsort
SELECT 81 + - 7 col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - 44 + - - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - 44 + - - COUNT ( * )
----
-43

query II rowsort
SELECT + 67 * + - 57 + - 61 * - - 48, - 4 AS col0
----
-6747
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4469
SELECT + 92 * + + 79 + 50 + + + CAST( NULL AS DECIMAL ) * AVG ( - 8 ) + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT + 92 * + + 79 + 50 + + + CAST ( NULL AS REAL ) * AVG ( - 8 ) + - 11 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4470
SELECT ALL 80 + - CAST( NULL AS DECIMAL ) + ( - 37 ) - - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL 80 + - CAST ( NULL AS REAL ) + ( - 37 ) - - - 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4471
SELECT ( - + 11 ) / + 75 + - 9 + - 33 + - CASE - CAST( + + SUM( - + 29 ) AS SIGNED ) WHEN - 97 * + 71 * + 40 THEN ( 53 ) * + - 45 + 63 + - ( + COUNT( * ) + ( + 96 ) ) WHEN + 30 * 99 THEN - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT ( - + 11 ) / + 75 + - 9 + - 33 + - CASE - CAST ( + + SUM ( - + 29 ) AS INTEGER ) WHEN - 97 * + 71 * + 40 THEN ( 53 ) * + - 45 + 63 + - ( + COUNT ( * ) + ( + 96 ) ) WHEN + 30 * 99 THEN - 38 END
----
NULL

query I rowsort
SELECT ALL - 44 + + COALESCE ( - 63, - 24 )
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT CASE - 92 WHEN + - 14 * - + CAST( NULL AS SIGNED ) THEN NULL ELSE 13 END + 0
----
13

skipif mysql # not compatible
query I rowsort label-4473
SELECT CASE - 92 WHEN + - 14 * - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 13 END + 0
----
13

query I rowsort
SELECT ALL + 81 + 31 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT ALL CASE - - 7 WHEN - + CASE + - 49 WHEN + 53 THEN - COUNT( * ) + 33 * + - 31 END THEN NULL WHEN - 67 * + SUM( DISTINCT 75 ) + ( + SUM( - 8 ) ) * - ( 45 ) + 95 + + 89 THEN - 78 + 71 END + - CAST( NULL AS SIGNED ) / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL CASE - - 7 WHEN - + CASE + - 49 WHEN + 53 THEN - COUNT ( * ) + 33 * + - 31 END THEN NULL WHEN - 67 * + SUM ( DISTINCT 75 ) + ( + SUM ( - 8 ) ) * - ( 45 ) + 95 + + 89 THEN - 78 + 71 END + - CAST ( NULL AS INTEGER ) / 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL COUNT( - 90 ) + - + 47
----
-46

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL COUNT ( - 90 ) + - + 47
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT MIN( + 59 ) * + 86 + 57 AS col1
----
5131

skipif mysql # not compatible
query I rowsort label-4477
SELECT MIN ( + 59 ) * + 86 + 57 AS col1
----
5131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT MAX( + 78 ) * CAST( NULL AS SIGNED ) + + - 9 * - 22 * - + ( 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT MAX ( + 78 ) * CAST ( NULL AS INTEGER ) + + - 9 * - 22 * - + ( 90 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4479
SELECT + - CAST( NULL AS SIGNED ) AS col0, + 42 + 18 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4479
SELECT + - CAST ( NULL AS INTEGER ) AS col0, + 42 + 18 AS col1
----
NULL
60

query II rowsort
SELECT ALL - 24, + 94 AS col0
----
-24
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT CAST( NULL AS SIGNED ) + + ( MIN( 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT CAST ( NULL AS INTEGER ) + + ( MIN ( 46 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT COUNT( * ), 95 - 40 + - 43 AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-4482
SELECT COUNT ( * ), 95 - 40 + - 43 AS col0
----
1
12

onlyif mysql # DIV for integer division: 
query II rowsort label-4483
SELECT + 65 AS col2, 96 DIV + - 97 AS col1
----
65
0

skipif mysql # not compatible
query II rowsort label-4483
SELECT + 65 AS col2, 96 / + - 97 AS col1
----
65
0

query I rowsort
SELECT ( + 14 ) * - 11 AS col0
----
-154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT - 66 + + + 18 * - COALESCE ( + ( + 83 ), + 72 * + NULLIF ( + ( COALESCE ( + ( CAST( 63 AS SIGNED ) ), - - 63 + - 25 * + 75, + CAST( NULL AS SIGNED ) - 66 ) ), 63 * 1 ) + - 80 * 67 ) + ( 3 ) * MAX( ALL NULLIF ( - 22, 98 ) * 91 ) AS col2
----
-7566

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 66 + + + 18 * - COALESCE ( + ( + 83 ), + 72 * + NULLIF ( + ( COALESCE ( + ( CAST ( 63 AS INTEGER ) ), - - 63 + - 25 * + 75, + CAST ( NULL AS INTEGER ) - 66 ) ), 63 * 1 ) + - 80 * 67 ) + ( 3 ) * MAX ( ALL NULLIF ( - 22, 98 ) * 91 ) AS col2
----
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT + - COUNT( * ) * 71 + 57
----
-14

skipif mysql # not compatible
query I rowsort label-4486
SELECT + - COUNT ( * ) * 71 + 57
----
-14

query I rowsort
SELECT ALL - 9 * - 45 AS col2
----
405

query I rowsort
SELECT DISTINCT + - 23 + 82 AS col1
----
59

query I rowsort
SELECT ALL - - 61 + - 19
----
42

query I rowsort
SELECT ALL + 59 * - - 49 AS col2
----
2891

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT - 6 DIV + - 35
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 6 / + - 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT + 15 + - CAST( NULL AS SIGNED ) - - + ( + 48 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 15 + - CAST ( NULL AS INTEGER ) - - + ( + 48 ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4493
SELECT ALL + ( - ( 86 ) ) + - - 21 + COUNT( * ) DIV COUNT( * ) - + 26
----
-90

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL + ( - ( 86 ) ) + - - 21 + COUNT ( * ) / COUNT ( * ) - + 26
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT + 30 + + - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + 30 + + - COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4495
SELECT ALL + 12 + + 7 AS col1, CAST( + + ( + MAX( 77 ) ) AS SIGNED )
----
19
77

skipif mysql # not compatible
query II rowsort label-4495
SELECT ALL + 12 + + 7 AS col1, CAST ( + + ( + MAX ( 77 ) ) AS INTEGER )
----
19
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT CAST( + + 69 AS SIGNED ) * + 82 * + 62 * - - 83
----
29116068

skipif mysql # not compatible
query I rowsort label-4496
SELECT CAST ( + + 69 AS INTEGER ) * + 82 * + 62 * - - 83
----
29116068

query I rowsort
SELECT 90 * + 95
----
8550

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT 71 / - CASE - + 72 WHEN - - 14 THEN MIN( + 92 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT 71 / - CASE - + 72 WHEN - - 14 THEN MIN ( + 92 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT ALL 92 + - - CASE + - 41 WHEN 24 + 35 - - - 44 * - - 83 / - + COUNT( * ) THEN NULL WHEN - 13 * + - 93 THEN COUNT( DISTINCT 28 ) * + 88 + 80 * 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL 92 + - - CASE + - 41 WHEN 24 + 35 - - - 44 * - - 83 / - + COUNT ( * ) THEN NULL WHEN - 13 * + - 93 THEN COUNT ( DISTINCT 28 ) * + 88 + 80 * 84 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 67 + + - 48 + - ( 54 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4501
SELECT ALL + 86 DIV + + 86
----
1

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + 86 / + + 86
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT 86 * + NULLIF ( + MAX( + 93 ), 65 * + 74 + CASE + 1 WHEN + - 89 THEN + + 98 WHEN 20 THEN + + 40 / - 93 ELSE + NULLIF ( 53, - 66 * + 80 - + 89 ) * - 89 END ) + - COUNT( * ) * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT 86 * + NULLIF ( + MAX ( + 93 ), 65 * + 74 + CASE + 1 WHEN + - 89 THEN + + 98 WHEN 20 THEN + + 40 / - 93 ELSE + NULLIF ( 53, - 66 * + 80 - + 89 ) * - 89 END ) + - COUNT ( * ) * - 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4503
SELECT 6 * + 45 AS col0, - CAST( NULL AS SIGNED ) / - 92 / + 39 AS col0
----
270
NULL

skipif mysql # not compatible
query II rowsort label-4503
SELECT 6 * + 45 AS col0, - CAST ( NULL AS INTEGER ) / - 92 / + 39 AS col0
----
270
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT ALL - 13 * + 4, 83 * COALESCE ( + + 81, + NULLIF ( + 29, + 28 ) ) + - NULLIF ( + + COUNT( * ), + - 50 ) * - + COUNT( * ) * - 30 + CASE + - 64 WHEN 62 / + COUNT( * ) + 25 THEN NULL WHEN COUNT( * ) THEN COUNT( 99 ) / - ( 7 ) END AS col1
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-4504
SELECT ALL - 13 * + 4, 83 * COALESCE ( + + 81, + NULLIF ( + 29, + 28 ) ) + - NULLIF ( + + COUNT ( * ), + - 50 ) * - + COUNT ( * ) * - 30 + CASE + - 64 WHEN 62 / + COUNT ( * ) + 25 THEN NULL WHEN COUNT ( * ) THEN COUNT ( 99 ) / - ( 7 ) END AS col1
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT 12 + COUNT( * ) - - 97 + - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-4505
SELECT 12 + COUNT ( * ) - - 97 + - COUNT ( * )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4506
SELECT ALL - 50 - 93 AS col1, - COALESCE ( ( - 9 ), + + MAX( + 10 ) ) DIV - 76 + - - MIN( - 56 ) * 29 * - 3
----
-143
4872

skipif mysql # not compatible
query II rowsort label-4506
SELECT ALL - 50 - 93 AS col1, - COALESCE ( ( - 9 ), + + MAX ( + 10 ) ) / - 76 + - - MIN ( - 56 ) * 29 * - 3
----
-143
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT DISTINCT + SUM( - - 21 ) * 50 + - 90 + - + 56 + + 64 + - 9 AS col1
----
959

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT + SUM ( - - 21 ) * 50 + - 90 + - + 56 + + 64 + - 9 AS col1
----
959

query I rowsort
SELECT 96 - 46 * - - 51 AS col2
----
-2250

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4509
SELECT 87 * 99 - + ( - - COUNT( * ) ) DIV 82 AS col1, 21
----
8613
21

skipif mysql # not compatible
query II rowsort label-4509
SELECT 87 * 99 - + ( - - COUNT ( * ) ) / 82 AS col1, 21
----
8613
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4510
SELECT DISTINCT - CAST( 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - CAST ( 29 AS INTEGER )
----
-29

query I rowsort
SELECT 52 * + + 57 AS col1
----
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + COUNT( DISTINCT 67 )
----
1

skipif mysql # not compatible
query I rowsort label-4512
SELECT + COUNT ( DISTINCT 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT COUNT( ALL 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4513
SELECT COUNT ( ALL 56 ) AS col2
----
1

query I rowsort
SELECT + 88 - + 13
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT ALL - NULLIF ( - 41, 15 ) DIV + 61 * - 45
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - NULLIF ( - 41, 15 ) / + 61 * - 45
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT - COUNT( - - 22 ) * 71 AS col2, 70
----
-71
70

skipif mysql # not compatible
query II rowsort label-4516
SELECT - COUNT ( - - 22 ) * 71 AS col2, 70
----
-71
70

query I rowsort
SELECT ALL 94 * + 19 * - - 26 AS col1
----
46436

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT + MAX( 57 ) * - 40
----
-2280

skipif mysql # not compatible
query I rowsort label-4518
SELECT + MAX ( 57 ) * - 40
----
-2280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4519
SELECT DISTINCT + 10 * - + 74 * - NULLIF ( - COUNT( * ), - 77 + + ( + 74 ) + CAST( NULL AS DECIMAL ) * 93 ) * ( - 11 )
----
8140

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + 10 * - + 74 * - NULLIF ( - COUNT ( * ), - 77 + + ( + 74 ) + CAST ( NULL AS REAL ) * 93 ) * ( - 11 )
----
8140

query I rowsort
SELECT ALL + 46 + 56 AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4521
SELECT - + COALESCE ( COUNT( * ), - COALESCE ( 64, 78, COUNT( * ) ) * + COALESCE ( - CAST( NULL AS SIGNED ), - + 84 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4521
SELECT - + COALESCE ( COUNT ( * ), - COALESCE ( 64, 78, COUNT ( * ) ) * + COALESCE ( - CAST ( NULL AS INTEGER ), - + 84 ) )
----
-1

query I rowsort
SELECT DISTINCT 65 + 49 AS col0
----
114

query III rowsort
SELECT + 13 * - 80 AS col0, - 44 AS col2, - 84
----
-1040
-44
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4524
SELECT ALL CASE + ( - - 22 ) WHEN 73 THEN - COUNT( + ( 86 ) ) DIV + + COUNT( * ) WHEN - + ( 90 ) * - + ( - 11 ) THEN NULL WHEN - COUNT( * ) * - 36 + + - 58 THEN NULL ELSE + CAST( - - 89 AS SIGNED ) * ( - 45 ) END + + 53
----
-3952

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL CASE + ( - - 22 ) WHEN 73 THEN - COUNT ( + ( 86 ) ) / + + COUNT ( * ) WHEN - + ( 90 ) * - + ( - 11 ) THEN NULL WHEN - COUNT ( * ) * - 36 + + - 58 THEN NULL ELSE + CAST ( - - 89 AS INTEGER ) * ( - 45 ) END + + 53
----
-3952

query I rowsort
SELECT + 57 + - - 71
----
128

query I rowsort
SELECT ALL 4 + + 30
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT + 86 + 81 + - 86 + 5 * - COALESCE ( ( + + COUNT( * ) ), - 89, + 11 * + 25 + + MAX( DISTINCT - 20 ) ) + - 91 DIV 94 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4527
SELECT + 86 + 81 + - 86 + 5 * - COALESCE ( ( + + COUNT ( * ) ), - 89, + 11 * + 25 + + MAX ( DISTINCT - 20 ) ) + - 91 / 94 AS col2
----
76

query II rowsort
SELECT - COALESCE ( 64, - 59 ) AS col0, + 41 AS col0
----
-64
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT + ( 55 ) + - 45 + - 86 - + 12 + - ( + 0 ) + + 58 * ( 9 ) * - + 90 * 57 + 60 + 40 + 22 * 93 DIV - 6 + + - 48 AS col1
----
-2678237

skipif mysql # not compatible
query I rowsort label-4529
SELECT + ( 55 ) + - 45 + - 86 - + 12 + - ( + 0 ) + + 58 * ( 9 ) * - + 90 * 57 + 60 + 40 + 22 * 93 / - 6 + + - 48 AS col1
----
-2678237

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL + COUNT( + - ( 2 ) ) - - 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + COUNT ( + - ( 2 ) ) - - 46 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT + CAST( - 2 AS SIGNED ) * 23
----
-46

skipif mysql # not compatible
query I rowsort label-4531
SELECT + CAST ( - 2 AS INTEGER ) * 23
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT + CASE - 46 WHEN + 8 - + 93 THEN NULL WHEN 9 * - - 90 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 70 + - - 32 / - COALESCE ( - COUNT( * ), - 43 + + COUNT( ALL 78 ), 46 + + 20 ) END * + + COUNT( * ) + - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + CASE - 46 WHEN + 8 - + 93 THEN NULL WHEN 9 * - - 90 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 70 + - - 32 / - COALESCE ( - COUNT ( * ), - 43 + + COUNT ( ALL 78 ), 46 + + 20 ) END * + + COUNT ( * ) + - - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT 3 - - COUNT( * ) * + 16 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT 3 - - COUNT ( * ) * + 16 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - COALESCE ( + COUNT( * ), - + ( + 38 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4534
SELECT - COALESCE ( + COUNT ( * ), - + ( + 38 ) )
----
-1

query I rowsort
SELECT - 32 + 64
----
32

query I rowsort
SELECT - 50 * - 34 AS col0
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT MIN( DISTINCT 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT MIN ( DISTINCT 95 )
----
95

query I rowsort
SELECT - 85 + + 48
----
-37

query I rowsort
SELECT - 14 * 16 AS col1
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - 73 + - ( - SUM( DISTINCT 79 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4540
SELECT - 73 + - ( - SUM ( DISTINCT 79 ) ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL + CASE WHEN NOT + - 10 IS NULL AND NULL IS NULL THEN NULL WHEN - - 39 * - 89 NOT IN ( - + 51 * - - 45, COUNT( * ) / + 67 ) THEN + COUNT( ALL 54 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL + CASE WHEN NOT + - 10 IS NULL AND NULL IS NULL THEN NULL WHEN - - 39 * - 89 NOT IN ( - + 51 * - - 45, COUNT ( * ) / + 67 ) THEN + COUNT ( ALL 54 ) END
----
NULL

query II rowsort
SELECT + 60, + 32 * 70 * - 44 AS col0
----
60
-98560

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - 49 + + 19 * MAX( ALL - + ( + - 34 ) ) * - 44 + 37 AS col1
----
-28436

skipif mysql # not compatible
query I rowsort label-4543
SELECT - 49 + + 19 * MAX ( ALL - + ( + - 34 ) ) * - 44 + 37 AS col1
----
-28436

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - COALESCE ( - + ( - 31 ), - + 56, - 33 ) * + + ( + COALESCE ( NULLIF ( - 49, AVG ( - 43 ) ), 77 - + COUNT( * ) ) ) AS col1
----
1519

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - COALESCE ( - + ( - 31 ), - + 56, - 33 ) * + + ( + COALESCE ( NULLIF ( - 49, AVG ( - 43 ) ), 77 - + COUNT ( * ) ) ) AS col1
----
1519

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4545
SELECT - + 88 DIV + + CAST( 19 AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4545
SELECT - + 88 / + + CAST ( 19 AS INTEGER ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT ALL - - ( - + 64 ) * + - 55 * + - CAST( 97 AS SIGNED )
----
-341440

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - - ( - + 64 ) * + - 55 * + - CAST ( 97 AS INTEGER )
----
-341440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4547
SELECT - + 73 * - 76 + ( - COUNT( * ) ) DIV + - 5 * + - 69 * 48 * - 80
----
5548

skipif mysql # not compatible
query I rowsort label-4547
SELECT - + 73 * - 76 + ( - COUNT ( * ) ) / + - 5 * + - 69 * 48 * - 80
----
5548

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4548
SELECT DISTINCT + + COUNT( * ) AS col2, + COALESCE ( 98, - + CASE - 62 WHEN + 81 DIV 88 THEN + - 36 + + 60 * + 61 + + - 47 DIV + 16 ELSE 39 + - 28 END ) AS col1
----
1
98

skipif mysql # not compatible
query II rowsort label-4548
SELECT DISTINCT + + COUNT ( * ) AS col2, + COALESCE ( 98, - + CASE - 62 WHEN + 81 / 88 THEN + - 36 + + 60 * + 61 + + - 47 / + 16 ELSE 39 + - 28 END ) AS col1
----
1
98

query I rowsort
SELECT - 86 + - - 75
----
-11

query I rowsort
SELECT DISTINCT + COALESCE ( - 11, ( + 8 ), 87 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL - - SUM( - 39 ) * - COUNT( * ) + 61
----
100

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - - SUM ( - 39 ) * - COUNT ( * ) + 61
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4552
SELECT - + 36 + - + CAST( - 9 AS SIGNED ) * NULLIF ( 80, - 3 ) AS col1, + ( + 91 ) * - 11
----
684
-1001

skipif mysql # not compatible
query II rowsort label-4552
SELECT - + 36 + - + CAST ( - 9 AS INTEGER ) * NULLIF ( 80, - 3 ) AS col1, + ( + 91 ) * - 11
----
684
-1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4553
SELECT 61 * + + 39 + ( + ( - + 80 ) ) * 61, + MIN( DISTINCT - 82 ) * - 21 * - + COALESCE ( - CAST( NULL AS SIGNED ), + - 90 * - - 82 ) * + - CAST( NULL AS SIGNED ) * + - 47 + + 41 * - NULLIF ( - 34, + 16 ) + 5 / CASE + 5 WHEN + 55 THEN COALESCE ( 65, - 19, 45 ) END col1
----
-2501
NULL

skipif mysql # not compatible
query II rowsort label-4553
SELECT 61 * + + 39 + ( + ( - + 80 ) ) * 61, + MIN ( DISTINCT - 82 ) * - 21 * - + COALESCE ( - CAST ( NULL AS INTEGER ), + - 90 * - - 82 ) * + - CAST ( NULL AS INTEGER ) * + - 47 + + 41 * - NULLIF ( - 34, + 16 ) + 5 / CASE + 5 WHEN + 55 THEN COALESCE ( 65, - 19, 45 ) END col1
----
-2501
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - + 3 * COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4554
SELECT - + 3 * COUNT ( * ) AS col0
----
-3

query I rowsort
SELECT ALL + COALESCE ( 47, 34 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT - + CAST( - 97 AS SIGNED ) * - + 12 + + 0 + - CAST( + - ( + COALESCE ( - 98, 71, + AVG ( 38 ) ) ) AS SIGNED ) - - 4 * + CAST( + 12 AS SIGNED )
----
-1214

skipif mysql # not compatible
query I rowsort label-4556
SELECT - + CAST ( - 97 AS INTEGER ) * - + 12 + + 0 + - CAST ( + - ( + COALESCE ( - 98, 71, + AVG ( 38 ) ) ) AS INTEGER ) - - 4 * + CAST ( + 12 AS INTEGER )
----
-1214

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT ALL 89 * - 27 + - ( + + COUNT( + 51 ) ) + 48, + 7 AS col0
----
-2356
7

skipif mysql # not compatible
query II rowsort label-4557
SELECT ALL 89 * - 27 + - ( + + COUNT ( + 51 ) ) + 48, + 7 AS col0
----
-2356
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4558
SELECT ALL 45 AS col0, 81 + - ( + + COUNT( * ) )
----
45
80

skipif mysql # not compatible
query II rowsort label-4558
SELECT ALL 45 AS col0, 81 + - ( + + COUNT ( * ) )
----
45
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT - + CAST( + 29 AS SIGNED ) DIV + ( - + 9 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - + CAST ( + 29 AS INTEGER ) / + ( - + 9 ) AS col0
----
3

query I rowsort
SELECT - 55 * - 58
----
3190

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT - 10 DIV - 34 * + - 92 * ( + + 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT - 10 / - 34 * + - 92 * ( + + 96 ) AS col2
----
0

query I rowsort
SELECT ALL - 12 + + 31 * ( - + 40 ) AS col1
----
-1252

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT ALL ( - MAX( DISTINCT 25 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL ( - MAX ( DISTINCT 25 ) ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - 85 * + - 39 AS col2
----
3315

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT + 80 DIV - ( 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-4566
SELECT + 80 / - ( 75 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT + CAST( + 15 AS SIGNED ) * - + 2 - + COUNT( ALL - ( + 51 ) ) + 35 * - + 75
----
-2656

skipif mysql # not compatible
query I rowsort label-4567
SELECT + CAST ( + 15 AS INTEGER ) * - + 2 - + COUNT ( ALL - ( + 51 ) ) + 35 * - + 75
----
-2656

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4568
SELECT ALL 62 * ( + - 58 ) DIV - - COALESCE ( - - 89, CAST( NULL AS SIGNED ) + - 18 + - 96 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL 62 * ( + - 58 ) / - - COALESCE ( - - 89, CAST ( NULL AS INTEGER ) + - 18 + - 96 ) AS col0
----
-40

query I rowsort
SELECT + 33 + + - 51 AS col1
----
-18

query I rowsort
SELECT ALL 39 - - - 16 + + 79
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4571
SELECT - COALESCE ( - COUNT( * ), + COUNT( ALL - + 90 ) * MAX( - CAST( ( 75 ) AS SIGNED ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4571
SELECT - COALESCE ( - COUNT ( * ), + COUNT ( ALL - + 90 ) * MAX ( - CAST ( ( 75 ) AS INTEGER ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT + 26 * - NULLIF ( - 95, - 77 ) AS col2, 94 * COUNT( * ) * + ( 36 )
----
2470
3384

skipif mysql # not compatible
query II rowsort label-4572
SELECT + 26 * - NULLIF ( - 95, - 77 ) AS col2, 94 * COUNT ( * ) * + ( 36 )
----
2470
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT SUM( DISTINCT - - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT SUM ( DISTINCT - - 41 ) AS col2
----
41

query I rowsort
SELECT ALL 85 * - + 18 * - 15 AS col2
----
22950

query I rowsort
SELECT + 90 * - 59 AS col2
----
-5310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT - CAST( - + SUM( DISTINCT - - 50 ) AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-4576
SELECT - CAST ( - + SUM ( DISTINCT - - 50 ) AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT COUNT( * ) * + 67 * + + SUM( ALL + + 38 ) * - + 42 + + - 17 col1
----
-106949

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( * ) * + 67 * + + SUM ( ALL + + 38 ) * - + 42 + + - 17 col1
----
-106949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL CAST( NULL AS SIGNED ) * - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL CAST ( NULL AS INTEGER ) * - 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + - 31 * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4579
SELECT + - 31 * COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT - ( - 41 ) DIV + 51 + - + SUM( ALL - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-4580
SELECT - ( - 41 ) / + 51 + - + SUM ( ALL - 90 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT + SUM( DISTINCT - CAST( 74 AS SIGNED ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4581
SELECT + SUM ( DISTINCT - CAST ( 74 AS INTEGER ) ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4582
SELECT + + 7 - 91 + + 58 + + MIN( - 81 ) DIV + 19 + + NULLIF ( - CAST( + 0 AS SIGNED ), 80 DIV + 47 + 58 ) + + 41 + - COALESCE ( - - 78, + + CASE - CASE - 70 WHEN 72 THEN NULL WHEN + COALESCE ( - 85, - 6 ) * - 29 THEN + 94 ELSE NULL END WHEN MIN( 2 ) + CAST( NULL AS SIGNED ) THEN + 95 WHEN - 20 THEN NULL ELSE NULL END * - 49 ) * - 87 * + 39 DIV - COUNT( * ) col1
----
-264643

skipif mysql # not compatible
query I rowsort label-4582
SELECT + + 7 - 91 + + 58 + + MIN ( - 81 ) / + 19 + + NULLIF ( - CAST ( + 0 AS INTEGER ), 80 / + 47 + 58 ) + + 41 + - COALESCE ( - - 78, + + CASE - CASE - 70 WHEN 72 THEN NULL WHEN + COALESCE ( - 85, - 6 ) * - 29 THEN + 94 ELSE NULL END WHEN MIN ( 2 ) + CAST ( NULL AS INTEGER ) THEN + 95 WHEN - 20 THEN NULL ELSE NULL END * - 49 ) * - 87 * + 39 / - COUNT ( * ) col1
----
-264643

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT - - 46 DIV + - 94 + - - 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT - - 46 / + - 94 + - - 67 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4584
SELECT 32 * + ( COALESCE ( + MIN( - ( 15 ) ), - 32 - CAST( NULL AS SIGNED ) + + ( + 12 ) * + 65 ) ) + + - 44 AS col1, - 0 DIV + 45 * - 74
----
-524
0

skipif mysql # not compatible
query II rowsort label-4584
SELECT 32 * + ( COALESCE ( + MIN ( - ( 15 ) ), - 32 - CAST ( NULL AS INTEGER ) + + ( + 12 ) * + 65 ) ) + + - 44 AS col1, - 0 / + 45 * - 74
----
-524
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4585
SELECT ALL - CAST( NULL AS DECIMAL ) / SUM( ALL - 94 ) + + 96 / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - CAST ( NULL AS REAL ) / SUM ( ALL - 94 ) + + 96 / - 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4586
SELECT ALL + 61 DIV + ( - 13 ) DIV + COUNT( * ) + - 13 + + 94 - - 43 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + 61 / + ( - 13 ) / + COUNT ( * ) + - 13 + + 94 - - 43 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + + 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT ALL + 96 DIV + 1 + 19 + + 26 + + 94 * - + 70 + NULLIF ( + 95, + 85 ) - + ( + + 27 ) AS col0
----
-6371

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + 96 / + 1 + 19 + + 26 + + 94 * - + 70 + NULLIF ( + 95, + 85 ) - + ( + + 27 ) AS col0
----
-6371

onlyif mysql # aggregate syntax: 
query II rowsort label-4589
SELECT + 68 * + 60 col2, COUNT( * ) - 35 + - + 2
----
4080
-36

skipif mysql # not compatible
query II rowsort label-4589
SELECT + 68 * + 60 col2, COUNT ( * ) - 35 + - + 2
----
4080
-36

query I rowsort
SELECT DISTINCT + 19 + 79
----
98

query I rowsort
SELECT - ( + 42 ) - - 42
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT + COALESCE ( - MAX( DISTINCT - 46 ), - 30 DIV + 80 - - + ( + + 85 ) * + 14 ) col1
----
46

skipif mysql # not compatible
query I rowsort label-4592
SELECT + COALESCE ( - MAX ( DISTINCT - 46 ), - 30 / + 80 - - + ( + + 85 ) * + 14 ) col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL - SUM( DISTINCT 27 ) + 86 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - SUM ( DISTINCT 27 ) + 86 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + 53 + + ( + ( - ( - - MIN( DISTINCT + 70 ) ) ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4594
SELECT + 53 + + ( + ( - ( - - MIN ( DISTINCT + 70 ) ) ) ) AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT ALL - 25 * - - 41 * - CAST( + ( 3 ) AS SIGNED ) * 70 * 34 * + 39 AS col1
----
285421500

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - 25 * - - 41 * - CAST ( + ( 3 ) AS INTEGER ) * 70 * 34 * + 39 AS col1
----
285421500

query I rowsort
SELECT DISTINCT - 99 - - 35 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT 90 * SUM( DISTINCT - 75 ) * - - CASE + - 48 WHEN 73 THEN - ( - COUNT( * ) ) * + - 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT 90 * SUM ( DISTINCT - 75 ) * - - CASE + - 48 WHEN 73 THEN - ( - COUNT ( * ) ) * + - 56 END
----
NULL

query I rowsort
SELECT 70 + - - 48 AS col2
----
118

query I rowsort
SELECT 80 + + - 0
----
80

query I rowsort
SELECT 15 * 94
----
1410

query II rowsort
SELECT 86 + - 11 + 63 AS col1, 71
----
138
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4602
SELECT 22 DIV ( + - 77 ), 78 DIV - - MIN( 96 ) + 17 + + - 91 - 99 - - 84 AS col1
----
0
-89

skipif mysql # not compatible
query II rowsort label-4602
SELECT 22 / ( + - 77 ), 78 / - - MIN ( 96 ) + 17 + + - 91 - 99 - - 84 AS col1
----
0
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT COUNT( ALL + 33 ) + + 84 + + 55 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-4603
SELECT COUNT ( ALL + 33 ) + + 84 + + 55 AS col1
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL - 64 DIV + - 6
----
10

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - 64 / + - 6
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4605
SELECT 5 + + 60 DIV - - 59, + 74 * - 22 + - + 64 AS col1, + 86 + - COUNT( * ) AS col1
----
6
-1692
85

skipif mysql # not compatible
query III rowsort label-4605
SELECT 5 + + 60 / - - 59, + 74 * - 22 + - + 64 AS col1, + 86 + - COUNT ( * ) AS col1
----
6
-1692
85

query I rowsort
SELECT DISTINCT + 37 * + 87 * - 96
----
-309024

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT COUNT( * ) + NULLIF ( + + 12, 24 )
----
13

skipif mysql # not compatible
query I rowsort label-4607
SELECT COUNT ( * ) + NULLIF ( + + 12, 24 )
----
13

query I rowsort
SELECT 95 * + 75 AS col0
----
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT COUNT( * ) + - + 14 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4609
SELECT COUNT ( * ) + - + 14 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT 2 DIV + - ( 58 ) * NULLIF ( - 84, 72 )
----
0

skipif mysql # not compatible
query I rowsort label-4610
SELECT 2 / + - ( 58 ) * NULLIF ( - 84, 72 )
----
0

query I rowsort
SELECT 5 * - 76 col0
----
-380

query I rowsort
SELECT 40 + + + 66 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT + 50 * + 74 * 4 * COUNT( DISTINCT + + 64 ) * + - 36 * + ( + 91 )
----
-48484800

skipif mysql # not compatible
query I rowsort label-4613
SELECT + 50 * + 74 * 4 * COUNT ( DISTINCT + + 64 ) * + - 36 * + ( + 91 )
----
-48484800

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - COUNT( * ) + - - 88 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - COUNT ( * ) + - - 88 AS col1
----
87

query I rowsort
SELECT DISTINCT 86 + + ( + 27 ) AS col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL - - CASE - ( - + 50 ) WHEN CAST( - - COUNT( + 33 ) AS SIGNED ) THEN + - NULLIF ( + 37, + - 91 * + COUNT( ALL + 58 ) ) - - COUNT( * ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - - CASE - ( - + 50 ) WHEN CAST ( - - COUNT ( + 33 ) AS INTEGER ) THEN + - NULLIF ( + 37, + - 91 * + COUNT ( ALL + 58 ) ) - - COUNT ( * ) END col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 96 ) + - - ( - 30 ) AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4618
SELECT COUNT( * ) DIV - 60 * + - 83 + + 54
----
54

skipif mysql # not compatible
query I rowsort label-4618
SELECT COUNT ( * ) / - 60 * + - 83 + + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + 10 * 20 * 97 * - 47 * CASE 52 WHEN + 36 THEN + COUNT( * ) WHEN 18 THEN NULL WHEN + - COUNT( * ) / 18 / - - 67 THEN - - 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 10 * 20 * 97 * - 47 * CASE 52 WHEN + 36 THEN + COUNT ( * ) WHEN 18 THEN NULL WHEN + - COUNT ( * ) / 18 / - - 67 THEN - - 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT + 79 AS col0, CASE - 39 WHEN + + COUNT( * ) + + - 33 * + 13 THEN NULL WHEN - 59 THEN - 36 / + 21 END * - + ( + 91 )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-4620
SELECT + 79 AS col0, CASE - 39 WHEN + + COUNT ( * ) + + - 33 * + 13 THEN NULL WHEN - 59 THEN - 36 / + 21 END * - + ( + 91 )
----
79
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4621
SELECT ALL - - 49 AS col2, MIN( ALL - + 96 ) * + COUNT( + - CAST( NULL AS DECIMAL ) ) AS col0
----
49
0

skipif mysql # not compatible
query II rowsort label-4621
SELECT ALL - - 49 AS col2, MIN ( ALL - + 96 ) * + COUNT ( + - CAST ( NULL AS REAL ) ) AS col0
----
49
0

query I rowsort
SELECT ALL - 40 - - - 10 + + - 78 * 15 AS col2
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - 32 + + ( - COUNT( * ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4623
SELECT - 32 + + ( - COUNT ( * ) ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT DISTINCT - CAST( 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT - CAST ( 79 AS INTEGER )
----
-79

query II rowsort
SELECT DISTINCT - 22 AS col2, 13 AS col0
----
-22
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT 0 * - COALESCE ( - 79, - ( - 73 ) * ( 15 ) ) * + - NULLIF ( - MIN( 60 ), - - 94 ) - 61
----
-61

skipif mysql # not compatible
query I rowsort label-4626
SELECT 0 * - COALESCE ( - 79, - ( - 73 ) * ( 15 ) ) * + - NULLIF ( - MIN ( 60 ), - - 94 ) - 61
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4627
SELECT + COUNT( * ) AS col2, MIN( DISTINCT + 17 ) * 43
----
1
731

skipif mysql # not compatible
query II rowsort label-4627
SELECT + COUNT ( * ) AS col2, MIN ( DISTINCT + 17 ) * 43
----
1
731

query I rowsort
SELECT 6 + + 35 AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4629
SELECT DISTINCT - 77 * - COUNT( * ) * + 9 * - 63 AS col2, 49 * + 61 + 66
----
-43659
3055

skipif mysql # not compatible
query II rowsort label-4629
SELECT DISTINCT - 77 * - COUNT ( * ) * + 9 * - 63 AS col2, 49 * + 61 + 66
----
-43659
3055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT - SUM( ALL + 27 ) * - + 84 DIV - 21 AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - SUM ( ALL + 27 ) * - + 84 / - 21 AS col2
----
-108

query I rowsort
SELECT 90 * - - 56 * + 18
----
90720

query I rowsort
SELECT 25 * + + 74
----
1850

query II rowsort
SELECT 7, - 66 AS col1
----
7
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL - 50 * - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - 50 * - COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL SUM( DISTINCT + - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL SUM ( DISTINCT + - 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4636
SELECT 15 * + 36 DIV + - COALESCE ( + COUNT( * ), ( + + 42 ) ) AS col2, 50
----
-540
50

skipif mysql # not compatible
query II rowsort label-4636
SELECT 15 * + 36 / + - COALESCE ( + COUNT ( * ), ( + + 42 ) ) AS col2, 50
----
-540
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4637
SELECT ALL - COALESCE ( + 4, + + 86 - + 18 + 84, + COALESCE ( 7, 27 + - - 62 * - 52 * 21 ) + + ( 77 ) * + 52 ) + - 78 + - COUNT( * ) * - - 84 + - 49 * - 62 * - - COUNT( * ) * + + 13 DIV - COUNT( * )
----
-39660

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - COALESCE ( + 4, + + 86 - + 18 + 84, + COALESCE ( 7, 27 + - - 62 * - 52 * 21 ) + + ( 77 ) * + 52 ) + - 78 + - COUNT ( * ) * - - 84 + - 49 * - 62 * - - COUNT ( * ) * + + 13 / - COUNT ( * )
----
-39660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4638
SELECT ALL 47 AS col2, + 66 * COUNT( * ) + + CASE - + 76 WHEN + 76 THEN - 79 * NULLIF ( + 67, + CAST( - - COUNT( * ) AS SIGNED ) + 44 + ( - ( - 82 ) ) * - 1 * + COALESCE ( - 42, + 30 * - COUNT( * ) * + - 85 * - 99 ) ) - + 15 END * - 27 col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-4638
SELECT ALL 47 AS col2, + 66 * COUNT ( * ) + + CASE - + 76 WHEN + 76 THEN - 79 * NULLIF ( + 67, + CAST ( - - COUNT ( * ) AS INTEGER ) + 44 + ( - ( - 82 ) ) * - 1 * + COALESCE ( - 42, + 30 * - COUNT ( * ) * + - 85 * - 99 ) ) - + 15 END * - 27 col2
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT 5 * - ( - - COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4639
SELECT 5 * - ( - - COUNT ( * ) ) AS col2
----
-5

query I rowsort
SELECT 40 * 18 AS col2
----
720

onlyif mysql # aggregate syntax: 
query II rowsort label-4641
SELECT - 57, SUM( ALL + + 96 ) AS col1
----
-57
96

skipif mysql # not compatible
query II rowsort label-4641
SELECT - 57, SUM ( ALL + + 96 ) AS col1
----
-57
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4642
SELECT DISTINCT + COUNT( * ) + + 94 + - 18 + + 66 * 74 - - + ( ( 4 ) ) + 47 * - + COUNT( * ) * - 95 AS col1, 82
----
9430
82

skipif mysql # not compatible
query II rowsort label-4642
SELECT DISTINCT + COUNT ( * ) + + 94 + - 18 + + 66 * 74 - - + ( ( 4 ) ) + 47 * - + COUNT ( * ) * - 95 AS col1, 82
----
9430
82

query I rowsort
SELECT ALL - 60 + + 66 AS col0
----
6

query I rowsort
SELECT 21 - + NULLIF ( - 65, 18 * - - ( + + 30 ) / 53 / 46 ) AS col0
----
86

query II rowsort
SELECT - 12 AS col0, - 83 AS col1
----
-12
-83

query II rowsort
SELECT ALL - 11 AS col0, 3
----
-11
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4647
SELECT ALL - ( + 42 ) + + NULLIF ( - COUNT( * ), + + 64 * + + 86 ) + + 51 + - 62 - 20 DIV - NULLIF ( + - 34, CAST( 5 AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - ( + 42 ) + + NULLIF ( - COUNT ( * ), + + 64 * + + 86 ) + + 51 + - 62 - 20 / - NULLIF ( + - 34, CAST ( 5 AS INTEGER ) )
----
-54

query II rowsort
SELECT - 68 AS col0, 75 + 18 * 94 AS col0
----
-68
1767

query II rowsort
SELECT ALL + COALESCE ( - 59, - 56 ) + - 10 AS col0, 34 * + 38 AS col1
----
-69
1292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4650
SELECT ALL + ( COUNT( * ) ) * - - CASE + 11 WHEN + 1 + - - 48 + - 29 THEN COUNT( + + 91 ) + - - 9 WHEN + 87 / 75 + COUNT( * ) + + COUNT( * ) - + 78 / + COUNT( * ) THEN - COUNT( * ) ELSE NULL END * CASE + + 58 WHEN ( + CAST( NULL AS DECIMAL ) ) THEN NULL ELSE - 21 END * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL + ( COUNT ( * ) ) * - - CASE + 11 WHEN + 1 + - - 48 + - 29 THEN COUNT ( + + 91 ) + - - 9 WHEN + 87 / 75 + COUNT ( * ) + + COUNT ( * ) - + 78 / + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END * CASE + + 58 WHEN ( + CAST ( NULL AS REAL ) ) THEN NULL ELSE - 21 END * - 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT 30 * COUNT( * ) + 98
----
128

skipif mysql # not compatible
query I rowsort label-4651
SELECT 30 * COUNT ( * ) + 98
----
128

query I rowsort
SELECT - CASE - + 70 WHEN - AVG ( DISTINCT 71 ) THEN - 7 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4653
SELECT COUNT( * ) AS col0, - 25, - - 57 AS col1
----
1
-25
57

skipif mysql # not compatible
query III rowsort label-4653
SELECT COUNT ( * ) AS col0, - 25, - - 57 AS col1
----
1
-25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL 20 * 63 - + - COUNT( * ) + 0 col1
----
1261

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL 20 * 63 - + - COUNT ( * ) + 0 col1
----
1261

query I rowsort
SELECT + 21 + - 10
----
11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4656
SELECT ALL + 80 AS col1, 79 + CASE - CASE + CASE 53 WHEN 43 THEN NULL ELSE - 62 + 65 END WHEN 52 THEN NULL WHEN + CAST( + - CAST( + + CASE - 68 WHEN - CAST( NULL AS SIGNED ) THEN + 38 + + 12 / + - 41 END AS SIGNED ) AS SIGNED ) THEN 88 + - - 93 ELSE NULL END WHEN - 17 THEN NULL WHEN 64 * - CAST( - 25 AS DECIMAL ) THEN 97 * + 4 ELSE NULL END AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL + 80 AS col1, 79 + CASE - CASE + CASE 53 WHEN 43 THEN NULL ELSE - 62 + 65 END WHEN 52 THEN NULL WHEN + CAST ( + - CAST ( + + CASE - 68 WHEN - CAST ( NULL AS INTEGER ) THEN + 38 + + 12 / + - 41 END AS INTEGER ) AS INTEGER ) THEN 88 + - - 93 ELSE NULL END WHEN - 17 THEN NULL WHEN 64 * - CAST ( - 25 AS REAL ) THEN 97 * + 4 ELSE NULL END AS col2
----
80
NULL

query I rowsort
SELECT + CASE + + 2 WHEN - + 19 THEN + - ( 97 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL - 94 * + ( - COUNT( * ) ) * 77 - - 82 AS col1
----
7320

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - 94 * + ( - COUNT ( * ) ) * 77 - - 82 AS col1
----
7320

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL - - 1 * - - COUNT( * ) - 27 + - - 32
----
6

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL - - 1 * - - COUNT ( * ) - 27 + - - 32
----
6

query I rowsort
SELECT ALL + ( - - 92 )
----
92

query I rowsort
SELECT + COALESCE ( - 1, - - NULLIF ( - 25, - 78 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4662
SELECT + 34 * - NULLIF ( + - 24, + 67 * + CAST( + CASE + + 50 WHEN + ( + - 77 ) + + + COALESCE ( - ( COUNT( * ) ), - 13, + 32 ) * + 60 THEN + 67 + + CAST( NULL AS SIGNED ) END AS SIGNED ) ), 46 * + 3 AS col0
----
816
138

skipif mysql # not compatible
query II rowsort label-4662
SELECT + 34 * - NULLIF ( + - 24, + 67 * + CAST ( + CASE + + 50 WHEN + ( + - 77 ) + + + COALESCE ( - ( COUNT ( * ) ), - 13, + 32 ) * + 60 THEN + 67 + + CAST ( NULL AS INTEGER ) END AS INTEGER ) ), 46 * + 3 AS col0
----
816
138

query I rowsort
SELECT ALL 39 * - 13 AS col2
----
-507

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT MAX( + 21 ) AS col2, + 68 + ( 92 ) * - 70
----
21
-6372

skipif mysql # not compatible
query II rowsort label-4664
SELECT MAX ( + 21 ) AS col2, + 68 + ( 92 ) * - 70
----
21
-6372

query I rowsort
SELECT 54 * 84 - 90 AS col0
----
4446

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT SUM( DISTINCT - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-4666
SELECT SUM ( DISTINCT - - 20 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT MAX( + 90 ) col0, 73 + - - 41
----
90
114

skipif mysql # not compatible
query II rowsort label-4667
SELECT MAX ( + 90 ) col0, 73 + - - 41
----
90
114

query I rowsort
SELECT + 14 + - 72
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT - COUNT( * ) DIV - 5 col1
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT - COUNT ( * ) / - 5 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( + 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( + 56 ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4671
SELECT + 32 * - NULLIF ( - CAST( NULL AS DECIMAL ), + + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT + 32 * - NULLIF ( - CAST ( NULL AS REAL ), + + 31 )
----
NULL

query I rowsort
SELECT - 96 * - + 73
----
7008

query I rowsort
SELECT DISTINCT + 19 * + CASE - 80 WHEN + 30 * - 59 THEN NULL WHEN 57 THEN - 7 / + ( + 39 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT COUNT( * ) + 34 * MAX( + 69 ) + + - 3 * - - 65
----
2152

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT COUNT ( * ) + 34 * MAX ( + 69 ) + + - 3 * - - 65
----
2152

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL - MAX( 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - MAX ( 94 ) AS col2
----
-94

query I rowsort
SELECT - + 20 + + - 36 AS col2
----
-56

query I rowsort
SELECT CASE + 61 WHEN - + 39 * + - 64 - 75 THEN NULL ELSE 14 END
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT - - 45 + + - 61 - + + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4678
SELECT - - 45 + + - 61 - + + COUNT ( * )
----
-17

query I rowsort
SELECT ALL - 34 - + + 86 + + - 12 AS col0
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT - 25 + + - 89 * - 89 * - COALESCE ( + 67, + COUNT( * ) * - + MIN( ALL 72 ) + CAST( + MAX( - 29 ) AS SIGNED ) )
----
-530732

skipif mysql # not compatible
query I rowsort label-4680
SELECT - 25 + + - 89 * - 89 * - COALESCE ( + 67, + COUNT ( * ) * - + MIN ( ALL 72 ) + CAST ( + MAX ( - 29 ) AS INTEGER ) )
----
-530732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4681
SELECT - COALESCE ( - 12, + 94, 93 - + CAST( - 25 AS SIGNED ) * 70 + - CASE 91 WHEN + COUNT( * ) DIV COUNT( * ) THEN COUNT( * ) ELSE + 34 DIV - + 26 * - - NULLIF ( + - MIN( ALL - 29 ), 76 ) DIV - COALESCE ( + 69, + COUNT( * ) ) - + ( - 43 ) + 62 + COUNT( * ) * - MIN( + 63 ) END ) + 33 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4681
SELECT - COALESCE ( - 12, + 94, 93 - + CAST ( - 25 AS INTEGER ) * 70 + - CASE 91 WHEN + COUNT ( * ) / COUNT ( * ) THEN COUNT ( * ) ELSE + 34 / - + 26 * - - NULLIF ( + - MIN ( ALL - 29 ), 76 ) / - COALESCE ( + 69, + COUNT ( * ) ) - + ( - 43 ) + 62 + COUNT ( * ) * - MIN ( + 63 ) END ) + 33 AS col2
----
45

query I rowsort
SELECT ALL - - 68 - - 66 + 27 * + 52 * - 58
----
-81298

onlyif mysql # DIV for integer division: 
query I rowsort label-4683
SELECT - 92 DIV + 81 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4683
SELECT - 92 / + 81 AS col0
----
-1

query I rowsort
SELECT ALL + - 55 * - - 63
----
-3465

query I rowsort
SELECT - + 27 * - - 83
----
-2241

query I rowsort
SELECT ALL + 46 * + 40 AS col1
----
1840

query I rowsort
SELECT + + 4 * + 53 + 97 AS col0
----
309

query I rowsort
SELECT + 51 - 98
----
-47

query I rowsort
SELECT + ( 17 ) * ( - + 71 ) AS col1
----
-1207

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT - 14 DIV 11 + 7 + - ( + ( - 29 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 14 / 11 + 7 + - ( + ( - 29 ) )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT - ( + 28 ) + - + 35 AS col2, + 13 * - COUNT( - 79 ) AS col2
----
-63
-13

skipif mysql # not compatible
query II rowsort label-4691
SELECT - ( + 28 ) + - + 35 AS col2, + 13 * - COUNT ( - 79 ) AS col2
----
-63
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL + 94 * + CAST( NULL AS SIGNED ) * - - 35 / + 46 + - + 48 + COUNT( * ) * 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + 94 * + CAST ( NULL AS INTEGER ) * - - 35 / + 46 + - + 48 + COUNT ( * ) * 62 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT - CAST( NULL AS SIGNED ) * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT - CAST ( NULL AS INTEGER ) * + 22
----
NULL

query I rowsort
SELECT + 44 + 93
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + 20 + + + 7 * + 17 * + COUNT( * )
----
139

skipif mysql # not compatible
query I rowsort label-4695
SELECT + 20 + + + 7 * + 17 * + COUNT ( * )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT + 8 * + 29 * - - SUM( + 74 ) * + 40 AS col1
----
686720

skipif mysql # not compatible
query I rowsort label-4696
SELECT + 8 * + 29 * - - SUM ( + 74 ) * + 40 AS col1
----
686720

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + NULLIF ( - 75, + COUNT( * ) / 89 ) * - 24 AS col0
----
1800

skipif mysql # not compatible
query I rowsort label-4697
SELECT + NULLIF ( - 75, + COUNT ( * ) / 89 ) * - 24 AS col0
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT MIN( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-4698
SELECT MIN ( - 69 )
----
-69

query I rowsort
SELECT DISTINCT CASE + - 71 WHEN - - 3 THEN NULL WHEN + - 36 * - 51 - - 44 * 92 THEN - + ( + 86 ) * - - 0 ELSE - 95 + + - 96 + + COALESCE ( + CASE 58 WHEN + 2 + - 14 * 57 THEN 8 * ( - - 22 ) ELSE 64 * - ( 35 ) - 8 END, + 65 + 16 * 33 ) END
----
-2439

query I rowsort
SELECT + 78 * 83
----
6474

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT ALL 70 DIV - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL 70 / - 74 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4702
SELECT - 52 AS col0, 28 DIV 51
----
-52
0

skipif mysql # not compatible
query II rowsort label-4702
SELECT - 52 AS col0, 28 / 51
----
-52
0

query I rowsort
SELECT - 10 / - 63 - 54 * CASE 70 WHEN ( + + 52 ) THEN NULL ELSE - CASE WHEN + 67 IS NULL THEN - 23 END END AS col0
----
NULL

query I rowsort
SELECT CASE COALESCE ( + + 14, + 46 ) WHEN 18 / 68 + 73 THEN 1 + + 50 ELSE NULL END * + 87
----
NULL

query II rowsort
SELECT - ( - 35 ) * + - 79 AS col0, + 87 AS col0
----
-2765
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT + CAST( - + 79 AS SIGNED ) - - 5
----
-74

skipif mysql # not compatible
query I rowsort label-4706
SELECT + CAST ( - + 79 AS INTEGER ) - - 5
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + 53 * - - COUNT( * ) * - 41
----
-2173

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + 53 * - - COUNT ( * ) * - 41
----
-2173

query I rowsort
SELECT 61 * - - 50
----
3050

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - MIN( 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-4709
SELECT - MIN ( 37 )
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4710
SELECT - 70 + ( 39 ), + COUNT( - 53 ) AS col2
----
-31
1

skipif mysql # not compatible
query II rowsort label-4710
SELECT - 70 + ( 39 ), + COUNT ( - 53 ) AS col2
----
-31
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT 99 - + - CAST( 92 AS SIGNED ) AS col1
----
191

skipif mysql # not compatible
query I rowsort label-4711
SELECT 99 - + - CAST ( 92 AS INTEGER ) AS col1
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL - CASE - 12 WHEN - 76 THEN - + 88 - 49 + + 36 * + 88 * 30 * COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - CASE - 12 WHEN - 76 THEN - + 88 - 49 + + 36 * + 88 * 30 * COUNT ( * ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 62 * 51 + + 3
----
3165

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ( + 81 ) * - + 44 + MIN( 96 ) AS col2
----
-3468

skipif mysql # not compatible
query I rowsort label-4714
SELECT ( + 81 ) * - + 44 + MIN ( 96 ) AS col2
----
-3468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4715
SELECT 6 DIV + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4715
SELECT 6 / + + COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - ( - 72 ) + - - 91
----
163

query I rowsort
SELECT ALL - ( + + 41 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT ALL + MAX( ALL 48 ) + NULLIF ( + 8, 19 ) AS col0, COUNT( * )
----
56
1

skipif mysql # not compatible
query II rowsort label-4718
SELECT ALL + MAX ( ALL 48 ) + NULLIF ( + 8, 19 ) AS col0, COUNT ( * )
----
56
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT 89 * - CAST( - + 75 AS SIGNED )
----
6675

skipif mysql # not compatible
query I rowsort label-4719
SELECT 89 * - CAST ( - + 75 AS INTEGER )
----
6675

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT 95 DIV + 66 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4720
SELECT 95 / + 66 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT - SUM( ALL - 33 ) + 84 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - SUM ( ALL - 33 ) + 84 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL - COUNT( DISTINCT + + 67 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - COUNT ( DISTINCT + + 67 ) AS col0
----
-1

query I rowsort
SELECT 15 * - 68 AS col1
----
-1020

query I rowsort
SELECT 28 * - 14 - + 8 AS col0
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT - NULLIF ( 95, COUNT( * ) ) * + 99 - + 25 + - CAST( + 94 AS SIGNED )
----
-9524

skipif mysql # not compatible
query I rowsort label-4725
SELECT - NULLIF ( 95, COUNT ( * ) ) * + 99 - + 25 + - CAST ( + 94 AS INTEGER )
----
-9524

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL + ( CASE + NULLIF ( + - CASE - MIN( - + 58 ) WHEN - COUNT( * ) * COUNT( - ( - 31 ) ) + - 0 THEN 35 WHEN + 14 * + + COUNT( * ) THEN NULL WHEN - 15 / + + 8 + - 43 THEN NULL END, 71 ) WHEN - 78 - + COUNT( * ) * + 80 THEN - + 91 END ) - + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + ( CASE + NULLIF ( + - CASE - MIN ( - + 58 ) WHEN - COUNT ( * ) * COUNT ( - ( - 31 ) ) + - 0 THEN 35 WHEN + 14 * + + COUNT ( * ) THEN NULL WHEN - 15 / + + 8 + - 43 THEN NULL END, 71 ) WHEN - 78 - + COUNT ( * ) * + 80 THEN - + 91 END ) - + + 18
----
NULL

query I rowsort
SELECT ALL 72 - 89 + - - 68
----
51

query I rowsort
SELECT 56 - + 60 AS col1
----
-4

query I rowsort
SELECT 29 + + 17
----
46

query II rowsort
SELECT + 94 - + 98 col0, + 25 * - 19
----
-4
-475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT MAX( - 71 ) + + + 87 DIV + + 32 - 11 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4731
SELECT MAX ( - 71 ) + + + 87 / + + 32 - 11 AS col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT - 17 * - 35 + + 44 DIV + 70
----
595

skipif mysql # not compatible
query I rowsort label-4732
SELECT - 17 * - 35 + + 44 / + 70
----
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4733
SELECT DISTINCT 86 * - 7 * - 62 * - + 16 + - + COUNT( * ) + 45 DIV + - 50 * - 1 * + 14 AS col2, - 49 * + + 49 + + + 74 * - + 84
----
-597185
-8617

skipif mysql # not compatible
query II rowsort label-4733
SELECT DISTINCT 86 * - 7 * - 62 * - + 16 + - + COUNT ( * ) + 45 / + - 50 * - 1 * + 14 AS col2, - 49 * + + 49 + + + 74 * - + 84
----
-597185
-8617

query I rowsort
SELECT 98 + + 24 * - 59
----
-1318

query I rowsort
SELECT - 83 * + + 95 * - - ( + - ( + - 89 ) ) AS col1
----
-701765

query I rowsort
SELECT 45 + - 31 - + 28 AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT COUNT( * ) DIV 4 col2
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT COUNT ( * ) / 4 col2
----
0

query I rowsort
SELECT ALL 71 + + 66 AS col1
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT + 49 DIV + + 22 + + - 37 col1
----
-35

skipif mysql # not compatible
query I rowsort label-4739
SELECT + 49 / + + 22 + + - 37 col1
----
-35

query I rowsort
SELECT DISTINCT ( 36 ) + - COALESCE ( + 84, 99 )
----
-48

query II rowsort
SELECT - 33 * + 83 col2, COALESCE ( + - 26, + - 71 )
----
-2739
-26

query I rowsort
SELECT 14 + 1 + + - 25 col1
----
-10

query I rowsort
SELECT - ( - - 35 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL ( - - COUNT( * ) ) + 68 + + ( + 66 ) * 4 AS col2
----
333

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL ( - - COUNT ( * ) ) + 68 + + ( + 66 ) * 4 AS col2
----
333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT DISTINCT CAST( - COALESCE ( 85, - - ( - COUNT( * ) ) + - + 89 + + 92 + + - 56, + + COUNT( * ) ) AS SIGNED ) + + 52 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT CAST ( - COALESCE ( 85, - - ( - COUNT ( * ) ) + - + 89 + + 92 + + - 56, + + COUNT ( * ) ) AS INTEGER ) + + 52 AS col1
----
-33

query I rowsort
SELECT - 99 + 81
----
-18

query I rowsort
SELECT DISTINCT 22 * + + ( - + 69 ) col0
----
-1518

query I rowsort
SELECT 9 * 59
----
531

query I rowsort
SELECT ALL - 62 * 34 * + 78 + - 7 AS col2
----
-164431

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT + 80 * + COUNT( * ) + + - 82 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4750
SELECT + 80 * + COUNT ( * ) + + - 82 AS col0
----
-2

query I rowsort
SELECT 31 + - 11 * + - 53 AS col0
----
614

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT + 29 * - ( + 46 ) * COUNT( * ) * NULLIF ( - 23, - + 74 ) + + 0 + NULLIF ( 32, 87 + - - 40 + 34 + - 56 ) AS col1
----
30714

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + 29 * - ( + 46 ) * COUNT ( * ) * NULLIF ( - 23, - + 74 ) + + 0 + NULLIF ( 32, 87 + - - 40 + 34 + - 56 ) AS col1
----
30714

query I rowsort
SELECT DISTINCT - 52 * + 43 - - 35 + - 3
----
-2204

query I rowsort
SELECT DISTINCT - 60 * - - 88 AS col2
----
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4755
SELECT DISTINCT COUNT( * ) DIV + - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT COUNT ( * ) / + - 10 AS col1
----
0

query I rowsort
SELECT ALL - 43 * - 30 AS col0
----
1290

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT ALL + SUM( + + 10 ) * - + COALESCE ( - + 70, 58 ), + 53 AS col0
----
700
53

skipif mysql # not compatible
query II rowsort label-4757
SELECT ALL + SUM ( + + 10 ) * - + COALESCE ( - + 70, 58 ), + 53 AS col0
----
700
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - 31 + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4758
SELECT - 31 + - COUNT ( * ) AS col1
----
-32

query I rowsort
SELECT ALL - 98 * 65 AS col1
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + COALESCE ( + - 60, MIN( DISTINCT + ( - 56 ) ) + 42 + 21 * + - 3 )
----
-60

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + COALESCE ( + - 60, MIN ( DISTINCT + ( - 56 ) ) + 42 + 21 * + - 3 )
----
-60

query I rowsort
SELECT - 1 * + 33 col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - + SUM( - 59 ) * + + 24 + - - 78 - 30 * - 31 + COUNT( * ) col0
----
2425

skipif mysql # not compatible
query I rowsort label-4762
SELECT - + SUM ( - 59 ) * + + 24 + - - 78 - 30 * - 31 + COUNT ( * ) col0
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT + - 7 * MAX( DISTINCT + + 20 ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT + - 7 * MAX ( DISTINCT + + 20 ) AS col2
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-4764
SELECT ALL - 75 * + MIN( + 96 ) col2, 1
----
-7200
1

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL - 75 * + MIN ( + 96 ) col2, 1
----
-7200
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT CASE COUNT( * ) WHEN - 57 - 79 THEN - - 36 WHEN 32 THEN COUNT( * ) WHEN 2 / - CASE - 99 WHEN - AVG ( DISTINCT + - 46 ) THEN - - 70 * + CASE + + 98 WHEN - 26 * + 58 + - 86 * - - 1 + 8 - 25 THEN NULL ELSE 79 END - + 52 ELSE + SUM( 59 ) END + - 6 THEN NULL ELSE 84 * + 38 + 68 END AS col2
----
3260

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT CASE COUNT ( * ) WHEN - 57 - 79 THEN - - 36 WHEN 32 THEN COUNT ( * ) WHEN 2 / - CASE - 99 WHEN - AVG ( DISTINCT + - 46 ) THEN - - 70 * + CASE + + 98 WHEN - 26 * + 58 + - 86 * - - 1 + 8 - 25 THEN NULL ELSE 79 END - + 52 ELSE + SUM ( 59 ) END + - 6 THEN NULL ELSE 84 * + 38 + 68 END AS col2
----
3260

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL + COUNT( ALL - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + COUNT ( ALL - 44 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT - 72 * NULLIF ( + + 57, COUNT( * ) * + - 87 * + 98 * - - 94 * - 98 + - ( + 40 ) ) AS col2, COUNT( * ) + - 61 AS col2
----
-4104
-60

skipif mysql # not compatible
query II rowsort label-4767
SELECT - 72 * NULLIF ( + + 57, COUNT ( * ) * + - 87 * + 98 * - - 94 * - 98 + - ( + 40 ) ) AS col2, COUNT ( * ) + - 61 AS col2
----
-4104
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4768
SELECT - + 45 - + + CAST( - - 70 AS SIGNED ) AS col2, + 78
----
-115
78

skipif mysql # not compatible
query II rowsort label-4768
SELECT - + 45 - + + CAST ( - - 70 AS INTEGER ) AS col2, + 78
----
-115
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT - COUNT( ALL - ( + 80 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4769
SELECT - COUNT ( ALL - ( + 80 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4770
SELECT ALL - ( - 31 ) * - 82 AS col2, + 63 - + + ( + 73 ) + CAST( NULL AS SIGNED )
----
-2542
NULL

skipif mysql # not compatible
query II rowsort label-4770
SELECT ALL - ( - 31 ) * - 82 AS col2, + 63 - + + ( + 73 ) + CAST ( NULL AS INTEGER )
----
-2542
NULL

query I rowsort
SELECT - - ( + 98 ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT - - CAST( + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-4772
SELECT - - CAST ( + 64 AS INTEGER )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL COUNT( * ) + + - 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL COUNT ( * ) + + - 19 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - 74 - + ( + COUNT( * ) ) + - 38 * + + 90
----
-3495

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 74 - + ( + COUNT ( * ) ) + - 38 * + + 90
----
-3495

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + + CASE - + 92 WHEN 88 THEN - + COALESCE ( + - 66, COALESCE ( - - SUM( ALL - + COALESCE ( 3, - - 17 + + 79 + - 8 + ( + 28 ) * - 97 * - - 23 ) ), - COUNT( * ) ) * 13 ) END * - 15 + COUNT( * ) + - + SUM( ALL - 87 ) * - 36 / - 4 + + - 73 * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + + CASE - + 92 WHEN 88 THEN - + COALESCE ( + - 66, COALESCE ( - - SUM ( ALL - + COALESCE ( 3, - - 17 + + 79 + - 8 + ( + 28 ) * - 97 * - - 23 ) ), - COUNT ( * ) ) * 13 ) END * - 15 + COUNT ( * ) + - + SUM ( ALL - 87 ) * - 36 / - 4 + + - 73 * - 67
----
NULL

query I rowsort
SELECT + 88 - - 72 AS col0
----
160

query I rowsort
SELECT DISTINCT + 65 * - CASE WHEN NULL IS NOT NULL THEN 63 END
----
NULL

query I rowsort
SELECT DISTINCT - - 64 + - - 81 col1
----
145

query I rowsort
SELECT - 22 + - 29
----
-51

query I rowsort
SELECT + 45 + - 31 AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT + 4 - - + 45 + - - 70 DIV + 64 + 37 col0
----
87

skipif mysql # not compatible
query I rowsort label-4781
SELECT + 4 - - + 45 + - - 70 / + 64 + 37 col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT ALL COALESCE ( - 23, + + 78 ) DIV - - 2 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL COALESCE ( - 23, + + 78 ) / - - 2 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT + 15 * + 52, + CASE 96 WHEN - + 33 * - - COUNT( ALL 96 ) THEN + 73 ELSE - + 53 * 85 END * + 81 + ( - - ( 86 ) ) AS col0
----
780
-364819

skipif mysql # not compatible
query II rowsort label-4783
SELECT + 15 * + 52, + CASE 96 WHEN - + 33 * - - COUNT ( ALL 96 ) THEN + 73 ELSE - + 53 * 85 END * + 81 + ( - - ( 86 ) ) AS col0
----
780
-364819

query I rowsort
SELECT + 80 * 44 * + 72
----
253440

query I rowsort
SELECT + NULLIF ( - 9, - 60 * 66 * ( + 54 ) ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT + NULLIF ( + - COUNT( * ), + - 56 + 73 ) AS col0, 3 * + COUNT( + 98 ) AS col1
----
-1
3

skipif mysql # not compatible
query II rowsort label-4786
SELECT + NULLIF ( + - COUNT ( * ), + - 56 + 73 ) AS col0, 3 * + COUNT ( + 98 ) AS col1
----
-1
3

query I rowsort
SELECT DISTINCT - 8 * 7 * - 21 - + 10
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL CASE + 95 WHEN 72 THEN COALESCE ( - + 54, + + 90, + 34 - NULLIF ( + 67, 57 ) + 2 ) END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL CASE + 95 WHEN 72 THEN COALESCE ( - + 54, + + 90, + 34 - NULLIF ( + 67, 57 ) + 2 ) END / COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ( - CASE + 86 WHEN + + ( + COUNT( * ) ) THEN NULL ELSE + ( - + 67 ) + + + SUM( + 15 ) END ) col2
----
52

skipif mysql # not compatible
query I rowsort label-4789
SELECT ( - CASE + 86 WHEN + + ( + COUNT ( * ) ) THEN NULL ELSE + ( - + 67 ) + + + SUM ( + 15 ) END ) col2
----
52

query I rowsort
SELECT 47 * 63 + 10
----
2971

onlyif mysql # aggregate syntax: 
query II rowsort label-4791
SELECT ALL - 74 * + + COUNT( * ), - 91 AS col2
----
-74
-91

skipif mysql # not compatible
query II rowsort label-4791
SELECT ALL - 74 * + + COUNT ( * ), - 91 AS col2
----
-74
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ( + CASE + ( + + 70 ) WHEN + ( + 54 ) + 43 THEN NULL ELSE - + MAX( - - 29 ) * - 74 + 24 * + + 56 + - + 25 END )
----
3465

skipif mysql # not compatible
query I rowsort label-4792
SELECT ( + CASE + ( + + 70 ) WHEN + ( + 54 ) + 43 THEN NULL ELSE - + MAX ( - - 29 ) * - 74 + 24 * + + 56 + - + 25 END )
----
3465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT + CAST( + CASE + 35 WHEN + 66 THEN + - 59 WHEN + 79 * + 18 THEN - - 36 + + + CASE + 54 WHEN + - COUNT( * ) * - 92 THEN NULL WHEN - 92 THEN + CASE + 25 WHEN 26 * CASE - 43 WHEN 24 / 1 * - + 24 THEN - - 23 / CAST( + CASE - COUNT( * ) WHEN - + 16 THEN NULL ELSE 70 END AS SIGNED ) + - ( 41 ) * - MAX( DISTINCT + 11 ) ELSE NULL END * 92 + 27 THEN 85 WHEN + 13 / 95 THEN NULL ELSE NULL END END ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT + CAST ( + CASE + 35 WHEN + 66 THEN + - 59 WHEN + 79 * + 18 THEN - - 36 + + + CASE + 54 WHEN + - COUNT ( * ) * - 92 THEN NULL WHEN - 92 THEN + CASE + 25 WHEN 26 * CASE - 43 WHEN 24 / 1 * - + 24 THEN - - 23 / CAST ( + CASE - COUNT ( * ) WHEN - + 16 THEN NULL ELSE 70 END AS INTEGER ) + - ( 41 ) * - MAX ( DISTINCT + 11 ) ELSE NULL END * 92 + 27 THEN 85 WHEN + 13 / 95 THEN NULL ELSE NULL END END ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT - 0 DIV - - 91 + 20 col0
----
20

skipif mysql # not compatible
query I rowsort label-4794
SELECT - 0 / - - 91 + 20 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT + SUM( + 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + SUM ( + 77 ) AS col1
----
77

query II rowsort
SELECT ALL + 4 AS col1, 49 AS col0
----
4
49

query I rowsort
SELECT + 19 - 71
----
-52

query I rowsort
SELECT - - 35 + 86 AS col2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL 29 * - COUNT( * ) * + SUM( ALL 90 ) + CAST( 20 AS SIGNED )
----
-2590

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL 29 * - COUNT ( * ) * + SUM ( ALL 90 ) + CAST ( 20 AS INTEGER )
----
-2590

query II rowsort
SELECT + 5, 90 AS col1
----
5
90

query I rowsort
SELECT - 79 - 77
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT + COALESCE ( - CAST( + 62 AS SIGNED ), 95, + MIN( ALL 92 ) * + - 55 - + 55 + - COUNT( * ) * - - 35 + - + 13 ) + - COUNT( * ) + + 31 + 63 * + + 65
----
4063

skipif mysql # not compatible
query I rowsort label-4802
SELECT + COALESCE ( - CAST ( + 62 AS INTEGER ), 95, + MIN ( ALL 92 ) * + - 55 - + 55 + - COUNT ( * ) * - - 35 + - + 13 ) + - COUNT ( * ) + + 31 + 63 * + + 65
----
4063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4803
SELECT - COUNT( * ) AS col0, ( + CASE COALESCE ( AVG ( 16 ), + + ( - ( + + CAST( - COUNT( 48 ) AS DECIMAL ) ) ) ) WHEN 48 + - CAST( 14 AS SIGNED ) - - - COUNT( * ) THEN 6 WHEN - 66 THEN NULL ELSE NULL END ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4803
SELECT - COUNT ( * ) AS col0, ( + CASE COALESCE ( AVG ( 16 ), + + ( - ( + + CAST ( - COUNT ( 48 ) AS REAL ) ) ) ) WHEN 48 + - CAST ( 14 AS INTEGER ) - - - COUNT ( * ) THEN 6 WHEN - 66 THEN NULL ELSE NULL END ) AS col1
----
-1
NULL

query I rowsort
SELECT - 36 + - 87
----
-123

query I rowsort
SELECT - 6 + - 72 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL + COUNT( * ) + - CASE 44 WHEN + MIN( DISTINCT + 97 ) THEN - + 99 * 2 END + + 87 - - 64 * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + COUNT ( * ) + - CASE 44 WHEN + MIN ( DISTINCT + 97 ) THEN - + 99 * 2 END + + 87 - - 64 * + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4807
SELECT - - NULLIF ( CAST( NULL AS DECIMAL ), - 34 ) + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT - - NULLIF ( CAST ( NULL AS REAL ), - 34 ) + - 58 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 69 * + 99
----
-6831

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - + 58 + - 50 * - COUNT( * ) * 21 * COUNT( * )
----
992

skipif mysql # not compatible
query I rowsort label-4809
SELECT - + 58 + - 50 * - COUNT ( * ) * 21 * COUNT ( * )
----
992

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - 78 + + 99 + - COUNT( * ) * 67
----
-46

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - 78 + + 99 + - COUNT ( * ) * 67
----
-46

query I rowsort
SELECT - + 98 * - + ( - - 47 ) AS col2
----
4606

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4812
SELECT ALL CAST( + + 23 AS SIGNED ), - 28 AS col2
----
23
-28

skipif mysql # not compatible
query II rowsort label-4812
SELECT ALL CAST ( + + 23 AS INTEGER ), - 28 AS col2
----
23
-28

query I rowsort
SELECT - ( 77 ) + + 25 AS col1
----
-52

query I rowsort
SELECT DISTINCT ( - 89 ) * + ( + + 57 )
----
-5073

query I rowsort
SELECT DISTINCT + 88 * - 53 * 45
----
-209880

query I rowsort
SELECT ALL + CASE - 67 WHEN + - 98 THEN NULL WHEN 71 * 30 THEN - 5 + - 38 END * 33 + 36 + 6 + + 63 AS col1
----
NULL

query I rowsort
SELECT 70 * + 55 * - 64 + + 41
----
-246359

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4818
SELECT - 96 DIV - CAST( - ( - 85 ) AS SIGNED ) - 89 DIV 20
----
-3

skipif mysql # not compatible
query I rowsort label-4818
SELECT - 96 / - CAST ( - ( - 85 ) AS INTEGER ) - 89 / 20
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT ( 50 ) DIV - 64 + 18 DIV 34 * 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4819
SELECT ( 50 ) / - 64 + 18 / 34 * 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT COUNT( * ) * - 87 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4820
SELECT COUNT ( * ) * - 87 AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT DISTINCT 55 DIV - 24
----
-2

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT 55 / - 24
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-4822
SELECT 49 DIV + + 94 AS col1, 27
----
0
27

skipif mysql # not compatible
query II rowsort label-4822
SELECT 49 / + + 94 AS col1, 27
----
0
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT 55 + - - COUNT( * ) DIV - 35
----
55

skipif mysql # not compatible
query I rowsort label-4823
SELECT 55 + - - COUNT ( * ) / - 35
----
55

query I rowsort
SELECT DISTINCT 7 * - - 7 col2
----
49

query I rowsort
SELECT DISTINCT - 36 + 46
----
10

query II rowsort
SELECT DISTINCT - 25 + + 26, 81 AS col0
----
1
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT - 63 + COUNT( * ) DIV 12 * + - 51 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4827
SELECT - 63 + COUNT ( * ) / 12 * + - 51 AS col1
----
-63

query I rowsort
SELECT 73 + - 48
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT + SUM( 8 ) AS col0, 24 AS col0
----
8
24

skipif mysql # not compatible
query II rowsort label-4829
SELECT + SUM ( 8 ) AS col0, 24 AS col0
----
8
24

query I rowsort
SELECT - NULLIF ( - - 40, - + 93 + - + 41 ) * - 10 * + - 2 + + - 78 + + 99
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL - COUNT( * ) + + 67 - + - COUNT( ALL - + 71 ) - 23 + + COUNT( * ) * - 21
----
23

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - COUNT ( * ) + + 67 - + - COUNT ( ALL - + 71 ) - 23 + + COUNT ( * ) * - 21
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT 99 DIV + - NULLIF ( - 28, + 91 )
----
3

skipif mysql # not compatible
query I rowsort label-4832
SELECT 99 / + - NULLIF ( - 28, + 91 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL ( 14 ) - COUNT( * ) - - 1 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL ( 14 ) - COUNT ( * ) - - 1 AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT 78 - 77 - + COUNT( * ) DIV - - 40 * - 13
----
1

skipif mysql # not compatible
query I rowsort label-4834
SELECT 78 - 77 - + COUNT ( * ) / - - 40 * - 13
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT 22 * - 96 * - - COUNT( * )
----
-2112

skipif mysql # not compatible
query I rowsort label-4835
SELECT 22 * - 96 * - - COUNT ( * )
----
-2112

query II rowsort
SELECT ALL - + 10 * + - 91, 60 col1
----
910
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4837
SELECT NULLIF ( - 73, + AVG ( 37 ) ) * + + 34 + + MIN( - 34 ) AS col1, + 11 DIV - + 86
----
-2516
0

skipif mysql # not compatible
query II rowsort label-4837
SELECT NULLIF ( - 73, + AVG ( 37 ) ) * + + 34 + + MIN ( - 34 ) AS col1, + 11 / - + 86
----
-2516
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - 36 + + + COUNT( DISTINCT - - 29 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 36 + + + COUNT ( DISTINCT - - 29 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT 41 + - COUNT( * ) col1
----
40

skipif mysql # not compatible
query I rowsort label-4839
SELECT 41 + - COUNT ( * ) col1
----
40

query I rowsort
SELECT DISTINCT + 1 * - - 90
----
90

query II rowsort
SELECT ALL 12 AS col1, - 7 AS col2
----
12
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT 15 DIV - - COALESCE ( + - 23, - 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT 15 / - - COALESCE ( + - 23, - 86 ) AS col0
----
0

query I rowsort
SELECT 50 * + - 80
----
-4000

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT + ( - - ( + - 91 ) ) * COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + ( - - ( + - 91 ) ) * COUNT ( * ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4845
SELECT DISTINCT 29 AS col2, CASE 75 WHEN + 79 DIV - + 37 + + 14 * - 35 DIV - 7 THEN 47 + - 35 + 98 DIV + - 62 DIV + - MIN( 66 ) + ( + - 88 ) + + 67 ELSE - - 20 END * + 92 - - COUNT( - - 86 ), 21 + + 19 + - 1 + - + CAST( + 83 AS SIGNED ) * - 93 * - 75 * - 30 col1
----
29
1841
17367789

skipif mysql # not compatible
query III rowsort label-4845
SELECT DISTINCT 29 AS col2, CASE 75 WHEN + 79 / - + 37 + + 14 * - 35 / - 7 THEN 47 + - 35 + 98 / + - 62 / + - MIN ( 66 ) + ( + - 88 ) + + 67 ELSE - - 20 END * + 92 - - COUNT ( - - 86 ), 21 + + 19 + - 1 + - + CAST ( + 83 AS INTEGER ) * - 93 * - 75 * - 30 col1
----
29
1841
17367789

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT 66 + - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4846
SELECT 66 + - COUNT ( * ) AS col1
----
65

query I rowsort
SELECT ALL + 39 + - 89 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - COUNT( - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - COUNT ( - 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + MIN( DISTINCT + 29 ) + + 56
----
85

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + MIN ( DISTINCT + 29 ) + + 56
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT 59 + 12 * - 59 * COUNT( * ) + - + 31 AS col0
----
-680

skipif mysql # not compatible
query I rowsort label-4850
SELECT 59 + 12 * - 59 * COUNT ( * ) + - + 31 AS col0
----
-680

query I rowsort
SELECT ALL 66 + 92
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT 65 * + - ( + CASE - 76 WHEN 79 * COUNT( DISTINCT - + 86 ) / + 68 + - 92 + - + ( COUNT( * ) ) THEN 7 WHEN + 50 THEN NULL WHEN - 73 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT 65 * + - ( + CASE - 76 WHEN 79 * COUNT ( DISTINCT - + 86 ) / + 68 + - 92 + - + ( COUNT ( * ) ) THEN 7 WHEN + 50 THEN NULL WHEN - 73 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL - 39 + - MIN( - 52 ) - + + 11 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - 39 + - MIN ( - 52 ) - + + 11 AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4854
SELECT + 17 AS col2, - COUNT( * ) AS col2
----
17
-1

skipif mysql # not compatible
query II rowsort label-4854
SELECT + 17 AS col2, - COUNT ( * ) AS col2
----
17
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT COUNT( * ) DIV + - 92 + - - 28 + - 94 * 56 * - 60 + - 22 col0
----
315846

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) / + - 92 + - - 28 + - 94 * 56 * - 60 + - 22 col0
----
315846

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT + NULLIF ( + MIN( ALL + 29 ), - + 74 - + COUNT( DISTINCT + 70 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4856
SELECT + NULLIF ( + MIN ( ALL + 29 ), - + 74 - + COUNT ( DISTINCT + 70 ) ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL + 72 + 51 + - COUNT( * ) AS col2
----
122

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + 72 + 51 + - COUNT ( * ) AS col2
----
122

query I rowsort
SELECT 75 - + 78
----
-3

query I rowsort
SELECT + + ( - + 21 ) col2
----
-21

query I rowsort
SELECT 68 + + - 77 AS col1
----
-9

query I rowsort
SELECT ALL - - 70 - + 41
----
29

query II rowsort
SELECT DISTINCT - 86 AS col1, CASE + 80 WHEN - - 44 THEN 5 / - - 51 + + 92 * + 13 WHEN + 83 THEN NULL END AS col2
----
-86
NULL

query I rowsort
SELECT ALL 93 - 78
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT COUNT( * ) * - - 45 * + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT COUNT ( * ) * - - 45 * + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT DISTINCT + COUNT( * ) * - - 53 DIV + - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + COUNT ( * ) * - - 53 / + - COUNT ( * ) AS col2
----
-53

query I rowsort
SELECT + 77 - + ( + 64 ) * + 39 * + 14
----
-34867

query I rowsort
SELECT ALL 51 * - - 10
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + COALESCE ( + 60, - + 31 + COUNT( * ) + - COUNT( * ) * - CASE + - MIN( + + 55 ) WHEN + 10 + + + COUNT( * ) THEN NULL ELSE 14 END ) + NULLIF ( - 78, + 39 * 65 + - 2 + - 27 / - 36 + + + 43 + + - 12 * - 42 ) * + + 60 * + - 54
----
252780

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COALESCE ( + 60, - + 31 + COUNT ( * ) + - COUNT ( * ) * - CASE + - MIN ( + + 55 ) WHEN + 10 + + + COUNT ( * ) THEN NULL ELSE 14 END ) + NULLIF ( - 78, + 39 * 65 + - 2 + - 27 / - 36 + + + 43 + + - 12 * - 42 ) * + + 60 * + - 54
----
252780

query I rowsort
SELECT - + ( 78 )
----
-78

query I rowsort
SELECT + 4 + 49 AS col1
----
53

query I rowsort
SELECT ALL 57 * + 60
----
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT 24 + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4872
SELECT 24 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + 21 + - 62 + - COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-4873
SELECT + 21 + - 62 + - COUNT ( * ) col2
----
-42

query I rowsort
SELECT ALL - 15 * ( 63 ) AS col0
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT - 39 DIV + - 60 * 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT - 39 / + - 60 * 20 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - MAX( - + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-4876
SELECT - MAX ( - + 87 )
----
87

query I rowsort
SELECT + 85 * + COALESCE ( - ( - + 27 ), 41, 89 )
----
2295

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4878
SELECT - 8 DIV + 15 AS col0, CAST( - 39 AS SIGNED )
----
0
-39

skipif mysql # not compatible
query II rowsort label-4878
SELECT - 8 / + 15 AS col0, CAST ( - 39 AS INTEGER )
----
0
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 94 + ( - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 94 + ( - 69 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4880
SELECT - MIN( + 92 ) + + COUNT( * ) DIV - 97
----
-92

skipif mysql # not compatible
query I rowsort label-4880
SELECT - MIN ( + 92 ) + + COUNT ( * ) / - 97
----
-92

query I rowsort
SELECT ALL 78 + + - 24
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL 25 * 38 + + COUNT( * )
----
951

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL 25 * 38 + + COUNT ( * )
----
951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT ALL 75 * CAST( - COALESCE ( - 26, + 58 ) AS SIGNED ) + - COUNT( * ) * 21 AS col2
----
1929

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL 75 * CAST ( - COALESCE ( - 26, + 58 ) AS INTEGER ) + - COUNT ( * ) * 21 AS col2
----
1929

query I rowsort
SELECT ALL + NULLIF ( - NULLIF ( ( + 64 ), + 41 ), + 91 )
----
-64

query I rowsort
SELECT + ( - - 34 ) AS col0
----
34

query II rowsort
SELECT - - 56 + + 80 AS col1, 24 * 55 + + 64
----
136
1384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL - 75 * - - ( NULLIF ( + MIN( DISTINCT + + 75 ), + 76 ) ) - + ( 28 ) + + NULLIF ( + CAST( NULL AS SIGNED ), + + 52 + + 63 - - - COUNT( * ) * + COUNT( DISTINCT ( + 95 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL - 75 * - - ( NULLIF ( + MIN ( DISTINCT + + 75 ), + 76 ) ) - + ( 28 ) + + NULLIF ( + CAST ( NULL AS INTEGER ), + + 52 + + 63 - - - COUNT ( * ) * + COUNT ( DISTINCT ( + 95 ) ) )
----
NULL

query I rowsort
SELECT - 98 + + 47
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT - CAST( NULL AS SIGNED ) + 94 - + 88 + + ( - 90 ) + - 43 + - 83 * + - 10 + - COUNT( * ) * 73 + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT - CAST ( NULL AS INTEGER ) + 94 - + 88 + + ( - 90 ) + - 43 + - 83 * + - 10 + - COUNT ( * ) * 73 + + 83
----
NULL

query I rowsort
SELECT + 39 * + + 19 + 74 + - 5 * + + 36 AS col1
----
635

query I rowsort
SELECT - - 54 * + 98 col2
----
5292

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT - 49 * 35 DIV + 25
----
-68

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - 49 * 35 / + 25
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT + ( - COUNT( * ) ), - 4 AS col0
----
-1
-4

skipif mysql # not compatible
query II rowsort label-4893
SELECT + ( - COUNT ( * ) ), - 4 AS col0
----
-1
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT + + MAX( + - 21 ) + + + 7 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4894
SELECT + + MAX ( + - 21 ) + + + 7 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4895
SELECT + + COALESCE ( 21, + 94 + + 9 - - 36 * + + COALESCE ( 14, - - 72 * + CAST( + + 57 AS SIGNED ) DIV - + 51, + CAST( - CASE + + 73 WHEN + - 13 THEN - 47 + - 57 ELSE + 61 END AS SIGNED ) ) * - 79 ) * - - 39
----
819

skipif mysql # not compatible
query I rowsort label-4895
SELECT + + COALESCE ( 21, + 94 + + 9 - - 36 * + + COALESCE ( 14, - - 72 * + CAST ( + + 57 AS INTEGER ) / - + 51, + CAST ( - CASE + + 73 WHEN + - 13 THEN - 47 + - 57 ELSE + 61 END AS INTEGER ) ) * - 79 ) * - - 39
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT + - 5 + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-4896
SELECT + - 5 + COUNT ( * )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4897
SELECT - COUNT( * ) / - - 23 * - CAST( NULL AS SIGNED ) * 86, COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4897
SELECT - COUNT ( * ) / - - 23 * - CAST ( NULL AS INTEGER ) * 86, COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT ALL + - 2 col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT ALL + 39 DIV - - COUNT( * ) + - - 57 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL + 39 / - - COUNT ( * ) + - - 57 AS col1
----
96

query II rowsort
SELECT ALL 9 AS col0, 36
----
9
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT - NULLIF ( + MIN( ALL 80 ), - COUNT( * ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-4901
SELECT - NULLIF ( + MIN ( ALL 80 ), - COUNT ( * ) ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL ( + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL ( + - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT DISTINCT + 29 * 46 AS col2
----
1334

query I rowsort
SELECT + 21 * - 5 * 9 AS col2
----
-945

query I rowsort
SELECT - CASE + 90 WHEN + 86 THEN - 94 END
----
NULL

query I rowsort
SELECT - 9 - 67 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - 27 * + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4907
SELECT - 27 * + COUNT ( * ) AS col0
----
-27

query II rowsort
SELECT 87 col0, 55 * - 81 * - 48 AS col0
----
87
213840

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT - CASE 62 WHEN - 46 * - + 44 * + - 84 - + 78 THEN - 32 ELSE + ( - 53 ) * SUM( + 50 ) END
----
2650

skipif mysql # not compatible
query I rowsort label-4909
SELECT - CASE 62 WHEN - 46 * - + 44 * + - 84 - + 78 THEN - 32 ELSE + ( - 53 ) * SUM ( + 50 ) END
----
2650

query II rowsort
SELECT + ( + 86 ) + - + 38 AS col0, + 45
----
48
45

query I rowsort
SELECT ALL 91 + - ( + 33 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT COUNT( * ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT COUNT ( * ) + - 67
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT + COUNT( * ) - 98 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-4913
SELECT + COUNT ( * ) - 98 AS col1
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4914
SELECT DISTINCT 94, AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - + 54 - - 74 + + 89 AS col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT 94, AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - + 54 - - 74 + + 89 AS col1
----
94
NULL

query I rowsort
SELECT ALL + 21 + - - 50 AS col2
----
71

query I rowsort
SELECT DISTINCT 99 - - 15 AS col1
----
114

query I rowsort
SELECT COALESCE ( + - 96, - 86 + - + ( - 66 ) )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4918
SELECT ALL 70 * - + COALESCE ( - - COUNT( * ), - + 72 * 55 + - - 0, 98 - - + 63 ) + + + COUNT( * ) - + + 52 - - 74 AS col0, + 84 * - 52 * - 4 + CAST( + 94 AS SIGNED ) AS col2
----
-47
17566

skipif mysql # not compatible
query II rowsort label-4918
SELECT ALL 70 * - + COALESCE ( - - COUNT ( * ), - + 72 * 55 + - - 0, 98 - - + 63 ) + + + COUNT ( * ) - + + 52 - - 74 AS col0, + 84 * - 52 * - 4 + CAST ( + 94 AS INTEGER ) AS col2
----
-47
17566

query I rowsort
SELECT + 76 + 41 col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT CASE ( + 3 ) WHEN - 15 + + 0 THEN 46 + 68 * - + MIN( ALL 36 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT CASE ( + 3 ) WHEN - 15 + + 0 THEN 46 + 68 * - + MIN ( ALL 36 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4921
SELECT - 3 * - CASE - 9 WHEN + 41 THEN NULL WHEN - COUNT( * ) THEN + 70 * + + 74 * + 74 * - 41 END * + 50 + - + 56 + + - 66 + 75 + CAST( + 60 AS SIGNED ) / - ( - 96 ) * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT - 3 * - CASE - 9 WHEN + 41 THEN NULL WHEN - COUNT ( * ) THEN + 70 * + + 74 * + 74 * - 41 END * + 50 + - + 56 + + - 66 + 75 + CAST ( + 60 AS INTEGER ) / - ( - 96 ) * + 5 AS col2
----
NULL

query I rowsort
SELECT 48 * + 89 - - + 66
----
4338

query I rowsort
SELECT DISTINCT - + 90 * 47 col2
----
-4230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT DISTINCT - - CAST( + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT - - CAST ( + 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL + 9 * - COUNT( ALL 84 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + 9 * - COUNT ( ALL 84 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT COALESCE ( + 48, 78, - ( 67 ), - + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-4926
SELECT COALESCE ( + 48, 78, - ( 67 ), - + COUNT ( * ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT DISTINCT + NULLIF ( + COUNT( * ), + + COUNT( * ) ) * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT + NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) * 69 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT 53 DIV + - ( 75 ) * NULLIF ( 14, - 41 * + 14 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4928
SELECT 53 / + - ( 75 ) * NULLIF ( 14, - 41 * + 14 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL + 24 + 62 * - - MIN( - 63 )
----
-3882

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + 24 + 62 * - - MIN ( - 63 )
----
-3882

query I rowsort
SELECT 33 + + 43
----
76

query I rowsort
SELECT ALL - 52 + - 98 AS col1
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT 43 DIV + + 6
----
7

skipif mysql # not compatible
query I rowsort label-4932
SELECT 43 / + + 6
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4933
SELECT CASE - 59 WHEN - 87 THEN 49 * + + 21 + - COALESCE ( + - 58, - 20 * + COUNT( * ), + - 26, AVG ( - CAST( NULL AS SIGNED ) ) ) - - - 6 + - + 11 * 74 + + COUNT( * ) + + 42 * - 24 * + 35 WHEN + + 74 + - CAST( 67 AS DECIMAL ) THEN 59 END + 11 + 49 + + 17 * - + 88 * - + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT CASE - 59 WHEN - 87 THEN 49 * + + 21 + - COALESCE ( + - 58, - 20 * + COUNT ( * ), + - 26, AVG ( - CAST ( NULL AS INTEGER ) ) ) - - - 6 + - + 11 * 74 + + COUNT ( * ) + + 42 * - 24 * + 35 WHEN + + 74 + - CAST ( 67 AS REAL ) THEN 59 END + 11 + 49 + + 17 * - + 88 * - + 58 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT DISTINCT + 98 DIV + 28 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + 98 / + 28 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL COUNT( * ) * + MIN( ALL 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL COUNT ( * ) * + MIN ( ALL 0 ) AS col2
----
0

query I rowsort
SELECT ALL + 80 * 86
----
6880

query I rowsort
SELECT 55 + 57
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT DISTINCT 49 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT 49 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT COUNT( * ) + - 88 + + 75 * + 86
----
6363

skipif mysql # not compatible
query I rowsort label-4939
SELECT COUNT ( * ) + - 88 + + 75 * + 86
----
6363

query I rowsort
SELECT 13 + - 63 * 50 + - 66 * 86
----
-8813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT DISTINCT + - 26 - 27 + - 95 + - - 81 * + - CAST( NULL AS SIGNED ) - + CASE + 35 WHEN + - 28 THEN - AVG ( + + NULLIF ( 9, + 73 * + 83 ) ) WHEN - 0 * + 57 * COUNT( * ) / - 14 THEN 61 END + + 72 + - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT + - 26 - 27 + - 95 + - - 81 * + - CAST ( NULL AS INTEGER ) - + CASE + 35 WHEN + - 28 THEN - AVG ( + + NULLIF ( 9, + 73 * + 83 ) ) WHEN - 0 * + 57 * COUNT ( * ) / - 14 THEN 61 END + + 72 + - ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + 80 + + - COALESCE ( - + MIN( + 63 ), - - 17 + + - 89 + 14 * - 38 + - + 93 - - ( - 53 ) ) + 53 - + COALESCE ( + 24, 14 ) + 49 * - 40 + + 97 * + COUNT( * ) * + + 45
----
2577

skipif mysql # not compatible
query I rowsort label-4942
SELECT + 80 + + - COALESCE ( - + MIN ( + 63 ), - - 17 + + - 89 + 14 * - 38 + - + 93 - - ( - 53 ) ) + 53 - + COALESCE ( + 24, 14 ) + 49 * - 40 + + 97 * + COUNT ( * ) * + + 45
----
2577

query II rowsort
SELECT 66 col1, 18 + + - 13 AS col0
----
66
5

query I rowsort
SELECT - 7 + - - ( - 91 ) col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT COUNT( * ) DIV + - 75
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT COUNT ( * ) / + - 75
----
0

query I rowsort
SELECT - 20 * + 93 AS col2
----
-1860

query II rowsort
SELECT + 64 AS col2, 3
----
64
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT - CAST( NULL AS SIGNED ) + - - 97 + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT - CAST ( NULL AS INTEGER ) + - - 97 + 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT DISTINCT + COUNT( * ) * - 90 AS col0, - 64 col1
----
-90
-64

skipif mysql # not compatible
query II rowsort label-4949
SELECT DISTINCT + COUNT ( * ) * - 90 AS col0, - 64 col1
----
-90
-64

query II rowsort
SELECT + 15 col2, 17 - - 72 * - ( - - 5 )
----
15
-343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4951
SELECT - + CAST( + MAX( ALL COALESCE ( 46, 98 + 58 + + 13 ) ) AS SIGNED ) / + + COUNT( * ) * - 45 + + 48 + - CAST( NULL AS SIGNED ) * - - ( - MAX( + 57 ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT - + CAST ( + MAX ( ALL COALESCE ( 46, 98 + 58 + + 13 ) ) AS INTEGER ) / + + COUNT ( * ) * - 45 + + 48 + - CAST ( NULL AS INTEGER ) * - - ( - MAX ( + 57 ) ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT + CAST( - 44 AS SIGNED ) + + COUNT( ALL - 57 ) - + + 72 + - CASE + - 11 WHEN + - 54 / 46 / 48 * 82 + - - 21 + 42 * - + 68 + 0 THEN NULL ELSE - 98 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4952
SELECT + CAST ( - 44 AS INTEGER ) + + COUNT ( ALL - 57 ) - + + 72 + - CASE + - 11 WHEN + - 54 / 46 / 48 * 82 + - - 21 + 42 * - + 68 + 0 THEN NULL ELSE - 98 END AS col2
----
-17

query I rowsort
SELECT DISTINCT - 72 * - - 9 + + 52 - - + 53
----
-543

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL - COUNT( * ) + + 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - COUNT ( * ) + + 48 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT NULLIF ( - 8, + 49 - - 52 ) + + - 91 DIV - - 65 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4955
SELECT NULLIF ( - 8, + 49 - - 52 ) + + - 91 / - - 65 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL - - COUNT( ALL - ( 3 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL - - COUNT ( ALL - ( 3 ) ) AS col0
----
1

query I rowsort
SELECT ALL + ( + ( + 8 ) ) * + + 7
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4958
SELECT ALL + COUNT( * ) DIV - - 92 * - + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + COUNT ( * ) / - - 92 * - + 75 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4959
SELECT 27 AS col1, - 6 DIV + 75
----
27
0

skipif mysql # not compatible
query II rowsort label-4959
SELECT 27 AS col1, - 6 / + 75
----
27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT COALESCE ( - 98, + 50 ) * + + COUNT( * ) * - 33
----
3234

skipif mysql # not compatible
query I rowsort label-4960
SELECT COALESCE ( - 98, + 50 ) * + + COUNT ( * ) * - 33
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4961
SELECT 69 + - 16 + - CASE + - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 65 END * + - 22 * + 62 AS col2
----
-88607

skipif mysql # not compatible
query I rowsort label-4961
SELECT 69 + - 16 + - CASE + - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 65 END * + - 22 * + 62 AS col2
----
-88607

query I rowsort
SELECT DISTINCT - NULLIF ( + 90, + 77 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT ALL + 93 + - 99 DIV + - 21
----
97

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + 93 + - 99 / + - 21
----
97

query I rowsort
SELECT 59 * + 3 AS col2
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL CAST( 22 AS SIGNED ) + - - 69 + + ( - 12 ) + + - 54 * - 55
----
3049

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL CAST ( 22 AS INTEGER ) + - - 69 + + ( - 12 ) + + - 54 * - 55
----
3049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT CAST( NULL AS SIGNED ) - - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT CAST ( NULL AS INTEGER ) - - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT MAX( 38 ) * 12, COUNT( * ) AS col1
----
456
1

skipif mysql # not compatible
query II rowsort label-4967
SELECT MAX ( 38 ) * 12, COUNT ( * ) AS col1
----
456
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT 58 + - 17 DIV + 24 * 7 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4968
SELECT 58 + - 17 / + 24 * 7 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4969
SELECT 68 + CAST( NULL AS SIGNED ) col2, MAX( ALL 47 ) AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-4969
SELECT 68 + CAST ( NULL AS INTEGER ) col2, MAX ( ALL 47 ) AS col2
----
NULL
47

query I rowsort
SELECT 74 * - - 43 AS col1
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT COALESCE ( - COUNT( DISTINCT + + 78 ), - 20 + + 76 ) * + 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4971
SELECT COALESCE ( - COUNT ( DISTINCT + + 78 ), - 20 + + 76 ) * + 62 AS col0
----
-62

query I rowsort
SELECT DISTINCT - 76 - - 12 - + 76
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT 93 - - 4 + - ( + - 7 ) + + + ( + 14 ) * - 89 * + - 80 * + 94 * + + CASE 28 WHEN - ( 11 ) + + CASE 59 WHEN - 22 + CASE 1 WHEN + - 51 * - - SUM( ALL - 59 ) * - + 40 THEN ( - 34 ) * + + 20 ELSE - 85 * CAST( 35 AS SIGNED ) END THEN - - 27 WHEN - COUNT( * ) / 51 * + 98 * + 83 THEN - CAST( ( 16 ) AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN + CASE + 17 WHEN - 36 THEN NULL WHEN - 90 + - ( + 73 ) THEN + 67 * + SUM( 32 ) WHEN 4 THEN NULL ELSE NULL END THEN + 54 ELSE NULL END + + 36 THEN MAX( 99 ) * + 37 END - 2 * - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT 93 - - 4 + - ( + - 7 ) + + + ( + 14 ) * - 89 * + - 80 * + 94 * + + CASE 28 WHEN - ( 11 ) + + CASE 59 WHEN - 22 + CASE 1 WHEN + - 51 * - - SUM ( ALL - 59 ) * - + 40 THEN ( - 34 ) * + + 20 ELSE - 85 * CAST ( 35 AS INTEGER ) END THEN - - 27 WHEN - COUNT ( * ) / 51 * + 98 * + 83 THEN - CAST ( ( 16 ) AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN + CASE + 17 WHEN - 36 THEN NULL WHEN - 90 + - ( + 73 ) THEN + 67 * + SUM ( 32 ) WHEN 4 THEN NULL ELSE NULL END THEN + 54 ELSE NULL END + + 36 THEN MAX ( 99 ) * + 37 END - 2 * - 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - MAX( 8 ) * + CASE + ( 56 ) WHEN - 62 - - - ( + + 84 ) THEN + 35 * - + 46 WHEN 12 + - COUNT( * ) THEN NULL ELSE 78 END
----
-624

skipif mysql # not compatible
query I rowsort label-4974
SELECT - MAX ( 8 ) * + CASE + ( 56 ) WHEN - 62 - - - ( + + 84 ) THEN + 35 * - + 46 WHEN 12 + - COUNT ( * ) THEN NULL ELSE 78 END
----
-624

query I rowsort
SELECT ALL 21 * - - 56
----
1176

onlyif mysql # a